var bo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function u$(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),n}var S4={exports:{}};/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */S4.exports;(function(e,t){(function(){var n,o="4.17.21",i=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,u="__lodash_placeholder__",f=1,p=2,v=4,_=1,k=2,C=1,$=2,E=4,P=8,I=16,O=32,L=64,S=128,j=256,M=512,q=30,B="...",V=800,G=16,Q=1,X=2,Y=3,Z=1/0,se=9007199254740991,ce=17976931348623157e292,te=0/0,ee=4294967295,ae=ee-1,de=ee>>>1,$e=[["ary",S],["bind",C],["bindKey",$],["curry",P],["curryRight",I],["flip",M],["partial",O],["partialRight",L],["rearg",j]],be="[object Arguments]",me="[object Array]",fe="[object AsyncFunction]",Ae="[object Boolean]",je="[object Date]",Ye="[object DOMException]",_t="[object Error]",xt="[object Function]",we="[object GeneratorFunction]",ve="[object Map]",qe="[object Number]",$t="[object Null]",ut="[object Object]",Ve="[object Promise]",tt="[object Proxy]",ge="[object RegExp]",ye="[object Set]",Te="[object String]",gt="[object Symbol]",yt="[object Undefined]",Xe="[object WeakMap]",Ze="[object WeakSet]",vt="[object ArrayBuffer]",Ut="[object DataView]",Je="[object Float32Array]",We="[object Float64Array]",pt="[object Int8Array]",At="[object Int16Array]",Vt="[object Int32Array]",cn="[object Uint8Array]",fn="[object Uint8ClampedArray]",bn="[object Uint16Array]",kt="[object Uint32Array]",Ne=/\b__p \+= '';/g,nt=/\b(__p \+=) '' \+/g,It=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Zt=/&(?:amp|lt|gt|quot|#39);/g,dn=/[&<>"']/g,Hn=RegExp(Zt.source),Oo=RegExp(dn.source),tn=/<%-([\s\S]+?)%>/g,Fo=/<%([\s\S]+?)%>/g,Yr=/<%=([\s\S]+?)%>/g,Lo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ji=/^\w*$/,On=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hi=/[\\^$.*+?()[\]{}|]/g,Gn=RegExp(Hi.source),Ar=/^\s+/,Xs=/\s/,Qs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,So=/\{\n\/\* \[wrapped with (.+)\] \*/,ss=/,? & /,Dr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Di=/[()=,{}\[\]\/\s]/,xr=/\\(\\)?/g,Wr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yi=/\w*$/,ea=/^[-+]0x[0-9a-f]+$/i,mc=/^0b[01]+$/i,js=/^\[object .+?Constructor\]$/,Ka=/^0o[0-7]+$/i,Ja=/^(?:0|[1-9]\d*)$/,Fi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cs=/($^)/,Fs=/['\n\r\u2028\u2029\\]/g,as="\\ud800-\\udfff",Rl="\\u0300-\\u036f",zs="\\ufe20-\\ufe2f",oi="\\u20d0-\\u20ff",Ss=Rl+zs+oi,ls="\\u2700-\\u27bf",Gr="a-z\\xdf-\\xf6\\xf8-\\xff",Xa="\\xac\\xb1\\xd7\\xf7",Qa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pc="\\u2000-\\u206f",jl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Ke="\\ufe0e\\ufe0f",ze=Xa+Qa+pc+jl,lt="['’]",ft="["+as+"]",ct="["+ze+"]",Nt="["+Ss+"]",qt="\\d+",Kt="["+ls+"]",Xt="["+Gr+"]",nn="[^"+as+ze+qt+ls+Gr+Ie+"]",mn="\\ud83c[\\udffb-\\udfff]",xn="(?:"+Nt+"|"+mn+")",no="[^"+as+"]",Mn="(?:\\ud83c[\\udde6-\\uddff]){2}",To="[\\ud800-\\udbff][\\udc00-\\udfff]",mo="["+Ie+"]",ii="\\u200d",gr="(?:"+Xt+"|"+nn+")",vr="(?:"+mo+"|"+nn+")",gc="(?:"+lt+"(?:d|ll|m|re|s|t|ve))?",Ts="(?:"+lt+"(?:D|LL|M|RE|S|T|VE))?",vc=xn+"?",ta="["+Ke+"]?",Fl="(?:"+ii+"(?:"+[no,Mn,To].join("|")+")"+ta+vc+")*",Vi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_c=ta+vc+Fl,yc="(?:"+[Kt,Mn,To].join("|")+")"+_c,ud="(?:"+[no+Nt+"?",Nt,Mn,To,ft].join("|")+")",el=RegExp(lt,"g"),kh=RegExp(Nt,"g"),bc=RegExp(mn+"(?="+mn+")|"+ud+_c,"g"),hd=RegExp([mo+"?"+Xt+"+"+gc+"(?="+[ct,mo,"$"].join("|")+")",vr+"+"+Ts+"(?="+[ct,mo+gr,"$"].join("|")+")",mo+"?"+gr+"+"+gc,mo+"+"+Ts,mu,Vi,qt,yc].join("|"),"g"),pu=RegExp("["+ii+as+Ss+Ke+"]"),na=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],fd=-1,li={};li[Je]=li[We]=li[pt]=li[At]=li[Vt]=li[cn]=li[fn]=li[bn]=li[kt]=!0,li[be]=li[me]=li[vt]=li[Ae]=li[Ut]=li[je]=li[_t]=li[xt]=li[ve]=li[qe]=li[ut]=li[ge]=li[ye]=li[Te]=li[Xe]=!1;var Yo={};Yo[be]=Yo[me]=Yo[vt]=Yo[Ut]=Yo[Ae]=Yo[je]=Yo[Je]=Yo[We]=Yo[pt]=Yo[At]=Yo[Vt]=Yo[ve]=Yo[qe]=Yo[ut]=Yo[ge]=Yo[ye]=Yo[Te]=Yo[gt]=Yo[cn]=Yo[fn]=Yo[bn]=Yo[kt]=!0,Yo[_t]=Yo[xt]=Yo[Xe]=!1;var re={Ă€:"A",Ă:"A",Ă‚:"A",Ă:"A",Ă„:"A",Ă…:"A",Ă :"a",á:"a",â:"a",ĂŁ:"a",ä:"a",ĂĄ:"a",Ç:"C",ç:"c",Ă:"D",Ă°:"d",Ă:"E",É:"E",ĂŠ:"E",Ă‹:"E",è:"e",Ă©:"e",ĂŞ:"e",Ă«:"e",ĂŚ:"I",ĂŤ:"I",ĂŽ:"I",ĂŹ:"I",ì:"i",Ă:"i",Ă®:"i",ĂŻ:"i",Ă‘:"N",ñ:"n",Ă’:"O",Ă“:"O",Ă”:"O",Ă•:"O",Ă–:"O",Ă:"O",ò:"o",Ăł:"o",Ă´:"o",õ:"o",ö:"o",ø:"o",Ă™:"U",Ăš:"U",Ă›:"U",Ăś:"U",Ăą:"u",Ăş:"u",Ă»:"u",ĂĽ:"u",Ăť:"Y",Ă˝:"y",Ăż:"y",Æ:"Ae",æ:"ae",Ăž:"Th",Ăľ:"th",Ăź:"ss",Ä€:"A",Ä‚:"A",Ä„:"A",Ä:"a",Ä:"a",Ä…:"a",Ć:"C",Ä:"C",ÄŠ:"C",ÄŚ:"C",ć:"c",ĉ:"c",Ä‹:"c",ÄŤ:"c",ÄŽ:"D",Ä:"D",ÄŹ:"d",Ä‘:"d",Ä’:"E",Ä”:"E",Ä–:"E",Ä:"E",Äš:"E",Ä“:"e",Ä•:"e",Ä—:"e",Ä™:"e",Ä›:"e",Äś:"G",Äž:"G",Ä :"G",Ģ:"G",Äť:"g",Äź:"g",ġ:"g",ÄŁ:"g",Ĥ:"H",Ħ:"H",ÄĄ:"h",ħ:"h",Ĩ:"I",ÄŞ:"I",Ĭ:"I",Ä®:"I",Ä°:"I",Ä©:"i",Ä«:"i",Ä:"i",ÄŻ:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Äą:"L",Ä»:"L",Ä˝:"L",Äż:"L",Ĺ:"L",Äş:"l",ÄĽ:"l",Äľ:"l",Ĺ€:"l",Ĺ‚:"l",Ĺ:"N",Ĺ…:"N",Ň:"N",ĹŠ:"N",Ĺ„:"n",ņ:"n",Ĺ:"n",Ĺ‹:"n",ĹŚ:"O",ĹŽ:"O",Ĺ:"O",ĹŤ:"o",ĹŹ:"o",Ĺ‘:"o",Ĺ”:"R",Ĺ–:"R",Ĺ:"R",Ĺ•:"r",Ĺ—:"r",Ĺ™:"r",Ĺš:"S",Ĺś:"S",Ĺž:"S",Ĺ :"S",Ĺ›:"s",Ĺť:"s",Ĺź:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ĹŁ:"t",ĹĄ:"t",ŧ:"t",Ũ:"U",ĹŞ:"U",Ŭ:"U",Ĺ®:"U",Ĺ°:"U",Ų:"U",Ĺ©:"u",Ĺ«:"u",Ĺ:"u",ĹŻ:"u",ű:"u",Ĺł:"u",Ĺ´:"W",ŵ:"w",Ŷ:"Y",Ĺ·:"y",Ÿ:"Y",Ĺą:"Z",Ĺ»:"Z",Ĺ˝:"Z",Ĺş:"z",ĹĽ:"z",Ĺľ:"z",IJ:"IJ",Äł:"ij",Ĺ’:"Oe",Ĺ“:"oe",ʼn:"'n",Ĺż:"s"},Ee={"&":"&","<":"<",">":">",'"':""","'":"'"},et={"&":"&","<":"<",">":">",""":'"',"'":"'"},Lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zn=parseFloat,En=parseInt,po=typeof bo=="object"&&bo&&bo.Object===Object&&bo,Mo=typeof self=="object"&&self&&self.Object===Object&&self,oo=po||Mo||Function("return this")(),No=t&&!t.nodeType&&t,bi=No&&!0&&e&&!e.nodeType&&e,lo=bi&&bi.exports===No,ki=lo&&po.process,Bo=function(){try{var Re=bi&&bi.require&&bi.require("util").types;return Re||ki&&ki.binding&&ki.binding("util")}catch{}}(),A=Bo&&Bo.isArrayBuffer,N=Bo&&Bo.isDate,K=Bo&&Bo.isMap,ne=Bo&&Bo.isRegExp,he=Bo&&Bo.isSet,ue=Bo&&Bo.isTypedArray;function ke(Re,rt,it){switch(it.length){case 0:return Re.call(rt);case 1:return Re.call(rt,it[0]);case 2:return Re.call(rt,it[0],it[1]);case 3:return Re.call(rt,it[0],it[1],it[2])}return Re.apply(rt,it)}function Qe(Re,rt,it,Ft){for(var zt=-1,kn=Re==null?0:Re.length;++zt<kn;){var Cn=Re[zt];rt(Ft,Cn,it(Cn),Re)}return Ft}function He(Re,rt){for(var it=-1,Ft=Re==null?0:Re.length;++it<Ft&&rt(Re[it],it,Re)!==!1;);return Re}function ht(Re,rt){for(var it=Re==null?0:Re.length;it--&&rt(Re[it],it,Re)!==!1;);return Re}function Dt(Re,rt){for(var it=-1,Ft=Re==null?0:Re.length;++it<Ft;)if(!rt(Re[it],it,Re))return!1;return!0}function jt(Re,rt){for(var it=-1,Ft=Re==null?0:Re.length,zt=0,kn=[];++it<Ft;){var Cn=Re[it];rt(Cn,it,Re)&&(kn[zt++]=Cn)}return kn}function St(Re,rt){var it=Re==null?0:Re.length;return!!it&&wi(Re,rt,0)>-1}function Qt(Re,rt,it){for(var Ft=-1,zt=Re==null?0:Re.length;++Ft<zt;)if(it(rt,Re[Ft]))return!0;return!1}function pn(Re,rt){for(var it=-1,Ft=Re==null?0:Re.length,zt=Array(Ft);++it<Ft;)zt[it]=rt(Re[it],it,Re);return zt}function Qn(Re,rt){for(var it=-1,Ft=rt.length,zt=Re.length;++it<Ft;)Re[zt+it]=rt[it];return Re}function io(Re,rt,it,Ft){var zt=-1,kn=Re==null?0:Re.length;for(Ft&&kn&&(it=Re[++zt]);++zt<kn;)it=rt(it,Re[zt],zt,Re);return it}function Or(Re,rt,it,Ft){var zt=Re==null?0:Re.length;for(Ft&&zt&&(it=Re[--zt]);zt--;)it=rt(it,Re[zt],zt,Re);return it}function Ki(Re,rt){for(var it=-1,Ft=Re==null?0:Re.length;++it<Ft;)if(rt(Re[it],it,Re))return!0;return!1}var ka=md("length");function tl(Re){return Re.split("")}function Eo(Re){return Re.match(Dr)||[]}function kc(Re,rt,it){var Ft;return it(Re,function(zt,kn,Cn){if(rt(zt,kn,Cn))return Ft=kn,!1}),Ft}function Io(Re,rt,it,Ft){for(var zt=Re.length,kn=it+(Ft?1:-1);Ft?kn--:++kn<zt;)if(rt(Re[kn],kn,Re))return kn;return-1}function wi(Re,rt,it){return rt===rt?Mg(Re,rt,it):Io(Re,Ff,it)}function vu(Re,rt,it,Ft){for(var zt=it-1,kn=Re.length;++zt<kn;)if(Ft(Re[zt],rt))return zt;return-1}function Ff(Re){return Re!==Re}function Zr(Re,rt){var it=Re==null?0:Re.length;return it?Is(Re,rt)/it:te}function md(Re){return function(rt){return rt==null?n:rt[Re]}}function Es(Re){return function(rt){return Re==null?n:Re[rt]}}function zl(Re,rt,it,Ft,zt){return zt(Re,function(kn,Cn,un){it=Ft?(Ft=!1,kn):rt(it,kn,Cn,un)}),it}function nl(Re,rt){var it=Re.length;for(Re.sort(rt);it--;)Re[it]=Re[it].value;return Re}function Is(Re,rt){for(var it,Ft=-1,zt=Re.length;++Ft<zt;){var kn=rt(Re[Ft]);kn!==n&&(it=it===n?kn:it+kn)}return it}function wh(Re,rt){for(var it=-1,Ft=Array(Re);++it<Re;)Ft[it]=rt(it);return Ft}function Ul(Re,rt){return pn(rt,function(it){return[it,Re[it]]})}function ol(Re){return Re&&Re.slice(0,Bf(Re)+1).replace(Ar,"")}function Ps(Re){return function(rt){return Re(rt)}}function wp(Re,rt){return pn(rt,function(it){return Re[it]})}function _u(Re,rt){return Re.has(rt)}function Ln(Re,rt){for(var it=-1,Ft=Re.length;++it<Ft&&wi(rt,Re[it],0)>-1;);return it}function $h(Re,rt){for(var it=Re.length;it--&&wi(rt,Re[it],0)>-1;);return it}function wa(Re,rt){for(var it=Re.length,Ft=0;it--;)Re[it]===rt&&++Ft;return Ft}var pd=Es(re),sb=Es(Ee);function ab(Re){return"\\"+Lt[Re]}function Lg(Re,rt){return Re==null?n:Re[rt]}function Kr(Re){return pu.test(Re)}function $p(Re){return na.test(Re)}function wc(Re){for(var rt,it=[];!(rt=Re.next()).done;)it.push(rt.value);return it}function zf(Re){var rt=-1,it=Array(Re.size);return Re.forEach(function(Ft,zt){it[++rt]=[zt,Ft]}),it}function Bl(Re,rt){return function(it){return Re(rt(it))}}function As(Re,rt){for(var it=-1,Ft=Re.length,zt=0,kn=[];++it<Ft;){var Cn=Re[it];(Cn===rt||Cn===u)&&(Re[it]=u,kn[zt++]=it)}return kn}function Hl(Re){var rt=-1,it=Array(Re.size);return Re.forEach(function(Ft){it[++rt]=Ft}),it}function Cp(Re){var rt=-1,it=Array(Re.size);return Re.forEach(function(Ft){it[++rt]=[Ft,Ft]}),it}function Mg(Re,rt,it){for(var Ft=it-1,zt=Re.length;++Ft<zt;)if(Re[Ft]===rt)return Ft;return-1}function Uf(Re,rt,it){for(var Ft=it+1;Ft--;)if(Re[Ft]===rt)return Ft;return Ft}function il(Re){return Kr(Re)?Ng(Re):ka(Re)}function cs(Re){return Kr(Re)?Be(Re):tl(Re)}function Bf(Re){for(var rt=Re.length;rt--&&Xs.test(Re.charAt(rt)););return rt}var Sp=Es(et);function Ng(Re){for(var rt=bc.lastIndex=0;bc.test(Re);)++rt;return rt}function Be(Re){return Re.match(bc)||[]}function at(Re){return Re.match(hd)||[]}var Ct=function Re(rt){rt=rt==null?oo:Tt.defaults(oo.Object(),rt,Tt.pick(oo,gu));var it=rt.Array,Ft=rt.Date,zt=rt.Error,kn=rt.Function,Cn=rt.Math,un=rt.Object,Zn=rt.RegExp,Nn=rt.String,ko=rt.TypeError,_r=it.prototype,Lr=kn.prototype,Mr=un.prototype,Us=rt["__core-js_shared__"],rl=Lr.toString,eo=Mr.hasOwnProperty,q6=0,ck=function(){var w=/[^.]+$/.exec(Us&&Us.keys&&Us.keys.IE_PROTO||"");return w?"Symbol(src)_1."+w:""}(),Rg=Mr.toString,Y6=rl.call(un),W6=oo._,G6=Zn("^"+rl.call(eo).replace(Hi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jg=lo?rt.Buffer:n,yu=rt.Symbol,Fg=rt.Uint8Array,dk=jg?jg.allocUnsafe:n,zg=Bl(un.getPrototypeOf,un),uk=un.create,hk=Mr.propertyIsEnumerable,Ch=_r.splice,fk=yu?yu.isConcatSpreadable:n,Tp=yu?yu.iterator:n,Sh=yu?yu.toStringTag:n,Ug=function(){try{var w=Np(un,"defineProperty");return w({},"",{}),w}catch{}}(),Z6=rt.clearTimeout!==oo.clearTimeout&&rt.clearTimeout,K6=Ft&&Ft.now!==oo.Date.now&&Ft.now,J6=rt.setTimeout!==oo.setTimeout&&rt.setTimeout,Bg=Cn.ceil,Ep=Cn.floor,Hg=un.getOwnPropertySymbols,mk=jg?jg.isBuffer:n,Ip=rt.isFinite,Hf=_r.join,Vg=Bl(un.keys,un),yr=Cn.max,dr=Cn.min,pk=Ft.now,gk=rt.parseInt,vk=Cn.random,X6=_r.reverse,lb=Np(rt,"DataView"),Pp=Np(rt,"Map"),cb=Np(rt,"Promise"),Vf=Np(rt,"Set"),Ap=Np(rt,"WeakMap"),Dp=Np(un,"create"),qg=Ap&&new Ap,qf={},Q6=Rp(lb),eC=Rp(Pp),tC=Rp(cb),nC=Rp(Vf),oC=Rp(Ap),Yg=yu?yu.prototype:n,xp=Yg?Yg.valueOf:n,_k=Yg?Yg.toString:n;function Se(w){if(br(w)&&!ho(w)&&!(w instanceof Po)){if(w instanceof sl)return w;if(eo.call(w,"__wrapped__"))return kN(w)}return new sl(w)}var Yf=function(){function w(){}return function(T){if(!ur(T))return{};if(uk)return uk(T);w.prototype=T;var R=new w;return w.prototype=n,R}}();function Wg(){}function sl(w,T){this.__wrapped__=w,this.__actions__=[],this.__chain__=!!T,this.__index__=0,this.__values__=n}Se.templateSettings={escape:tn,evaluate:Fo,interpolate:Yr,variable:"",imports:{_:Se}},Se.prototype=Wg.prototype,Se.prototype.constructor=Se,sl.prototype=Yf(Wg.prototype),sl.prototype.constructor=sl;function Po(w){this.__wrapped__=w,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function iC(){var w=new Po(this.__wrapped__);return w.__actions__=ll(this.__actions__),w.__dir__=this.__dir__,w.__filtered__=this.__filtered__,w.__iteratees__=ll(this.__iteratees__),w.__takeCount__=this.__takeCount__,w.__views__=ll(this.__views__),w}function rC(){if(this.__filtered__){var w=new Po(this);w.__dir__=-1,w.__filtered__=!0}else w=this.clone(),w.__dir__*=-1;return w}function sC(){var w=this.__wrapped__.value(),T=this.__dir__,R=ho(w),ie=T<0,_e=R?w.length:0,Le=bue(0,_e,this.__views__),Ge=Le.start,st=Le.end,bt=st-Ge,Bt=ie?st:Ge-1,Ht=this.__iteratees__,Jt=Ht.length,gn=0,Dn=dr(bt,this.__takeCount__);if(!R||!ie&&_e==bt&&Dn==bt)return VM(w,this.__actions__);var qn=[];e:for(;bt--&&gn<Dn;){Bt+=T;for(var Do=-1,Yn=w[Bt];++Do<Jt;){var Ho=Ht[Do],ri=Ho.iteratee,Wl=Ho.type,Sa=ri(Yn);if(Wl==X)Yn=Sa;else if(!Sa){if(Wl==Q)continue e;break e}}qn[gn++]=Yn}return qn}Po.prototype=Yf(Wg.prototype),Po.prototype.constructor=Po;function gd(w){var T=-1,R=w==null?0:w.length;for(this.clear();++T<R;){var ie=w[T];this.set(ie[0],ie[1])}}function Gg(){this.__data__=Dp?Dp(null):{},this.size=0}function aC(w){var T=this.has(w)&&delete this.__data__[w];return this.size-=T?1:0,T}function lC(w){var T=this.__data__;if(Dp){var R=T[w];return R===l?n:R}return eo.call(T,w)?T[w]:n}function cC(w){var T=this.__data__;return Dp?T[w]!==n:eo.call(T,w)}function dC(w,T){var R=this.__data__;return this.size+=this.has(w)?0:1,R[w]=Dp&&T===n?l:T,this}gd.prototype.clear=Gg,gd.prototype.delete=aC,gd.prototype.get=lC,gd.prototype.has=cC,gd.prototype.set=dC;function vd(w){var T=-1,R=w==null?0:w.length;for(this.clear();++T<R;){var ie=w[T];this.set(ie[0],ie[1])}}function uC(){this.__data__=[],this.size=0}function yk(w){var T=this.__data__,R=al(T,w);if(R<0)return!1;var ie=T.length-1;return R==ie?T.pop():Ch.call(T,R,1),--this.size,!0}function hC(w){var T=this.__data__,R=al(T,w);return R<0?n:T[R][1]}function fC(w){return al(this.__data__,w)>-1}function bk(w,T){var R=this.__data__,ie=al(R,w);return ie<0?(++this.size,R.push([w,T])):R[ie][1]=T,this}vd.prototype.clear=uC,vd.prototype.delete=yk,vd.prototype.get=hC,vd.prototype.has=fC,vd.prototype.set=bk;function _d(w){var T=-1,R=w==null?0:w.length;for(this.clear();++T<R;){var ie=w[T];this.set(ie[0],ie[1])}}function mC(){this.size=0,this.__data__={hash:new gd,map:new(Pp||vd),string:new gd}}function pC(w){var T=Fk(this,w).delete(w);return this.size-=T?1:0,T}function bu(w){return Fk(this,w).get(w)}function kk(w){return Fk(this,w).has(w)}function gC(w,T){var R=Fk(this,w),ie=R.size;return R.set(w,T),this.size+=R.size==ie?0:1,this}_d.prototype.clear=mC,_d.prototype.delete=pC,_d.prototype.get=bu,_d.prototype.has=kk,_d.prototype.set=gC;function Th(w){var T=-1,R=w==null?0:w.length;for(this.__data__=new _d;++T<R;)this.add(w[T])}function vC(w){return this.__data__.set(w,l),this}function on(w){return this.__data__.has(w)}Th.prototype.add=Th.prototype.push=vC,Th.prototype.has=on;function Vl(w){var T=this.__data__=new vd(w);this.size=T.size}function _C(){this.__data__=new vd,this.size=0}function wk(w){var T=this.__data__,R=T.delete(w);return this.size=T.size,R}function ci(w){return this.__data__.get(w)}function Zg(w){return this.__data__.has(w)}function $k(w,T){var R=this.__data__;if(R instanceof vd){var ie=R.__data__;if(!Pp||ie.length<i-1)return ie.push([w,T]),this.size=++R.size,this;R=this.__data__=new _d(ie)}return R.set(w,T),this.size=R.size,this}Vl.prototype.clear=_C,Vl.prototype.delete=wk,Vl.prototype.get=ci,Vl.prototype.has=Zg,Vl.prototype.set=$k;function Kg(w,T){var R=ho(w),ie=!R&&jp(w),_e=!R&&!ie&&Jf(w),Le=!R&&!ie&&!_e&&nv(w),Ge=R||ie||_e||Le,st=Ge?wh(w.length,Nn):[],bt=st.length;for(var Bt in w)(T||eo.call(w,Bt))&&!(Ge&&(Bt=="length"||_e&&(Bt=="offset"||Bt=="parent")||Le&&(Bt=="buffer"||Bt=="byteLength"||Bt=="byteOffset")||Dh(Bt,bt)))&&st.push(Bt);return st}function Ck(w){var T=w.length;return T?w[xC(0,T-1)]:n}function yC(w,T){return zk(ll(w),Eh(T,0,w.length))}function bC(w){return zk(ll(w))}function db(w,T,R){(R!==n&&!wd(w[T],R)||R===n&&!(T in w))&&yd(w,T,R)}function Op(w,T,R){var ie=w[T];(!(eo.call(w,T)&&wd(ie,R))||R===n&&!(T in w))&&yd(w,T,R)}function al(w,T){for(var R=w.length;R--;)if(wd(w[R][0],T))return R;return-1}function kC(w,T,R,ie){return ku(w,function(_e,Le,Ge){T(ie,_e,R(_e),Ge)}),ie}function ub(w,T){return w&&$u(T,Ds(T),w)}function wC(w,T){return w&&$u(T,dl(T),w)}function yd(w,T,R){T=="__proto__"&&Ug?Ug(w,T,{configurable:!0,enumerable:!0,value:R,writable:!0}):w[T]=R}function Jg(w,T){for(var R=-1,ie=T.length,_e=it(ie),Le=w==null;++R<ie;)_e[R]=Le?n:o7(w,T[R]);return _e}function Eh(w,T,R){return w===w&&(R!==n&&(w=w<=R?w:R),T!==n&&(w=w>=T?w:T)),w}function $a(w,T,R,ie,_e,Le){var Ge,st=T&f,bt=T&p,Bt=T&v;if(R&&(Ge=_e?R(w,ie,_e,Le):R(w)),Ge!==n)return Ge;if(!ur(w))return w;var Ht=ho(w);if(Ht){if(Ge=wue(w),!st)return ll(w,Ge)}else{var Jt=oa(w),gn=Jt==xt||Jt==we;if(Jf(w))return WM(w,st);if(Jt==ut||Jt==be||gn&&!_e){if(Ge=bt||gn?{}:hN(w),!st)return bt?uue(w,wC(Ge,w)):due(w,ub(Ge,w))}else{if(!Yo[Jt])return _e?w:{};Ge=$ue(w,Jt,st)}}Le||(Le=new Vl);var Dn=Le.get(w);if(Dn)return Dn;Le.set(w,Ge),UN(w)?w.forEach(function(Yn){Ge.add($a(Yn,T,R,Yn,w,Le))}):FN(w)&&w.forEach(function(Yn,Ho){Ge.set(Ho,$a(Yn,T,R,Ho,w,Le))});var qn=Bt?bt?HC:BC:bt?dl:Ds,Do=Ht?n:qn(w);return He(Do||w,function(Yn,Ho){Do&&(Ho=Yn,Yn=w[Ho]),Op(Ge,Ho,$a(Yn,T,R,Ho,w,Le))}),Ge}function hb(w){var T=Ds(w);return function(R){return Sk(R,w,T)}}function Sk(w,T,R){var ie=R.length;if(w==null)return!ie;for(w=un(w);ie--;){var _e=R[ie],Le=T[_e],Ge=w[_e];if(Ge===n&&!(_e in w)||!Le(Ge))return!1}return!0}function $c(w,T,R){if(typeof w!="function")throw new ko(s);return kb(function(){w.apply(n,R)},T)}function Wf(w,T,R,ie){var _e=-1,Le=St,Ge=!0,st=w.length,bt=[],Bt=T.length;if(!st)return bt;R&&(T=pn(T,Ps(R))),ie?(Le=Qt,Ge=!1):T.length>=i&&(Le=_u,Ge=!1,T=new Th(T));e:for(;++_e<st;){var Ht=w[_e],Jt=R==null?Ht:R(Ht);if(Ht=ie||Ht!==0?Ht:0,Ge&&Jt===Jt){for(var gn=Bt;gn--;)if(T[gn]===Jt)continue e;bt.push(Ht)}else Le(T,Jt,ie)||bt.push(Ht)}return bt}var ku=XM(Cc),Tk=XM(mb,!0);function $C(w,T){var R=!0;return ku(w,function(ie,_e,Le){return R=!!T(ie,_e,Le),R}),R}function Xg(w,T,R){for(var ie=-1,_e=w.length;++ie<_e;){var Le=w[ie],Ge=T(Le);if(Ge!=null&&(st===n?Ge===Ge&&!Yl(Ge):R(Ge,st)))var st=Ge,bt=Le}return bt}function CC(w,T,R,ie){var _e=w.length;for(R=wo(R),R<0&&(R=-R>_e?0:_e+R),ie=ie===n||ie>_e?_e:wo(ie),ie<0&&(ie+=_e),ie=R>ie?0:HN(ie);R<ie;)w[R++]=T;return w}function Ek(w,T){var R=[];return ku(w,function(ie,_e,Le){T(ie,_e,Le)&&R.push(ie)}),R}function ds(w,T,R,ie,_e){var Le=-1,Ge=w.length;for(R||(R=Sue),_e||(_e=[]);++Le<Ge;){var st=w[Le];T>0&&R(st)?T>1?ds(st,T-1,R,ie,_e):Qn(_e,st):ie||(_e[_e.length]=st)}return _e}var fb=QM(),Ik=QM(!0);function Cc(w,T){return w&&fb(w,T,Ds)}function mb(w,T){return w&&Ik(w,T,Ds)}function Sc(w,T){return jt(T,function(R){return xh(w[R])})}function Ih(w,T){T=Zf(T,w);for(var R=0,ie=T.length;w!=null&&R<ie;)w=w[Cu(T[R++])];return R&&R==ie?w:n}function Pk(w,T,R){var ie=T(w);return ho(w)?ie:Qn(ie,R(w))}function Bs(w){return w==null?w===n?yt:$t:Sh&&Sh in un(w)?yue(w):xue(w)}function pb(w,T){return w>T}function SC(w,T){return w!=null&&eo.call(w,T)}function TC(w,T){return w!=null&&T in un(w)}function EC(w,T,R){return w>=dr(T,R)&&w<yr(T,R)}function gb(w,T,R){for(var ie=R?Qt:St,_e=w[0].length,Le=w.length,Ge=Le,st=it(Le),bt=1/0,Bt=[];Ge--;){var Ht=w[Ge];Ge&&T&&(Ht=pn(Ht,Ps(T))),bt=dr(Ht.length,bt),st[Ge]=!R&&(T||_e>=120&&Ht.length>=120)?new Th(Ge&&Ht):n}Ht=w[0];var Jt=-1,gn=st[0];e:for(;++Jt<_e&&Bt.length<bt;){var Dn=Ht[Jt],qn=T?T(Dn):Dn;if(Dn=R||Dn!==0?Dn:0,!(gn?_u(gn,qn):ie(Bt,qn,R))){for(Ge=Le;--Ge;){var Do=st[Ge];if(!(Do?_u(Do,qn):ie(w[Ge],qn,R)))continue e}gn&&gn.push(qn),Bt.push(Dn)}}return Bt}function bd(w,T,R,ie){return Cc(w,function(_e,Le,Ge){T(ie,R(_e),Le,Ge)}),ie}function Tc(w,T,R){T=Zf(T,w),w=gN(w,T);var ie=w==null?w:w[Cu(Pc(T))];return ie==null?n:ke(ie,w,R)}function Ak(w){return br(w)&&Bs(w)==be}function IC(w){return br(w)&&Bs(w)==vt}function PC(w){return br(w)&&Bs(w)==je}function Lp(w,T,R,ie,_e){return w===T?!0:w==null||T==null||!br(w)&&!br(T)?w!==w&&T!==T:AC(w,T,R,ie,Lp,_e)}function AC(w,T,R,ie,_e,Le){var Ge=ho(w),st=ho(T),bt=Ge?me:oa(w),Bt=st?me:oa(T);bt=bt==be?ut:bt,Bt=Bt==be?ut:Bt;var Ht=bt==ut,Jt=Bt==ut,gn=bt==Bt;if(gn&&Jf(w)){if(!Jf(T))return!1;Ge=!0,Ht=!1}if(gn&&!Ht)return Le||(Le=new Vl),Ge||nv(w)?cN(w,T,R,ie,_e,Le):vue(w,T,bt,R,ie,_e,Le);if(!(R&_)){var Dn=Ht&&eo.call(w,"__wrapped__"),qn=Jt&&eo.call(T,"__wrapped__");if(Dn||qn){var Do=Dn?w.value():w,Yn=qn?T.value():T;return Le||(Le=new Vl),_e(Do,Yn,R,ie,Le)}}return gn?(Le||(Le=new Vl),_ue(w,T,R,ie,_e,Le)):!1}function vb(w){return br(w)&&oa(w)==ve}function wu(w,T,R,ie){var _e=R.length,Le=_e,Ge=!ie;if(w==null)return!Le;for(w=un(w);_e--;){var st=R[_e];if(Ge&&st[2]?st[1]!==w[st[0]]:!(st[0]in w))return!1}for(;++_e<Le;){st=R[_e];var bt=st[0],Bt=w[bt],Ht=st[1];if(Ge&&st[2]){if(Bt===n&&!(bt in w))return!1}else{var Jt=new Vl;if(ie)var gn=ie(Bt,Ht,bt,w,T,Jt);if(!(gn===n?Lp(Ht,Bt,_|k,ie,Jt):gn))return!1}}return!0}function Mp(w){if(!ur(w)||Eue(w))return!1;var T=xh(w)?G6:js;return T.test(Rp(w))}function Wo(w){return br(w)&&Bs(w)==ge}function x(w){return br(w)&&oa(w)==ye}function H(w){return br(w)&&Yk(w.length)&&!!li[Bs(w)]}function oe(w){return typeof w=="function"?w:w==null?ul:typeof w=="object"?ho(w)?Kn(w[0],w[1]):wn(w):eR(w)}function le(w){if(!bb(w))return Vg(w);var T=[];for(var R in un(w))eo.call(w,R)&&R!="constructor"&&T.push(R);return T}function Ce(w){if(!ur(w))return Due(w);var T=bb(w),R=[];for(var ie in w)ie=="constructor"&&(T||!eo.call(w,ie))||R.push(ie);return R}function ot(w,T){return w<T}function Ot(w,T){var R=-1,ie=cl(w)?it(w.length):[];return ku(w,function(_e,Le,Ge){ie[++R]=T(_e,Le,Ge)}),ie}function wn(w){var T=qC(w);return T.length==1&&T[0][2]?mN(T[0][0],T[0][1]):function(R){return R===w||wu(R,w,T)}}function Kn(w,T){return WC(w)&&fN(T)?mN(Cu(w),T):function(R){var ie=o7(R,w);return ie===n&&ie===T?i7(R,w):Lp(T,ie,_|k)}}function Ao(w,T,R,ie,_e){w!==T&&fb(T,function(Le,Ge){if(_e||(_e=new Vl),ur(Le))Hs(w,T,Ge,R,Ao,ie,_e);else{var st=ie?ie(ZC(w,Ge),Le,Ge+"",w,T,_e):n;st===n&&(st=Le),db(w,Ge,st)}},dl)}function Hs(w,T,R,ie,_e,Le,Ge){var st=ZC(w,R),bt=ZC(T,R),Bt=Ge.get(bt);if(Bt){db(w,R,Bt);return}var Ht=Le?Le(st,bt,R+"",w,T,Ge):n,Jt=Ht===n;if(Jt){var gn=ho(bt),Dn=!gn&&Jf(bt),qn=!gn&&!Dn&&nv(bt);Ht=bt,gn||Dn||qn?ho(st)?Ht=st:Nr(st)?Ht=ll(st):Dn?(Jt=!1,Ht=WM(bt,!0)):qn?(Jt=!1,Ht=GM(bt,!0)):Ht=[]:wb(bt)||jp(bt)?(Ht=st,jp(st)?Ht=VN(st):(!ur(st)||xh(st))&&(Ht=hN(bt))):Jt=!1}Jt&&(Ge.set(bt,Ht),_e(Ht,bt,ie,Le,Ge),Ge.delete(bt)),db(w,R,Ht)}function Ec(w,T){var R=w.length;if(R)return T+=T<0?R:0,Dh(T,R)?w[T]:n}function kd(w,T,R){T.length?T=pn(T,function(Le){return ho(Le)?function(Ge){return Ih(Ge,Le.length===1?Le[0]:Le)}:Le}):T=[ul];var ie=-1;T=pn(T,Ps(Vn()));var _e=Ot(w,function(Le,Ge,st){var bt=pn(T,function(Bt){return Bt(Le)});return{criteria:bt,index:++ie,value:Le}});return nl(_e,function(Le,Ge){return cue(Le,Ge,R)})}function Jde(w,T){return jM(w,T,function(R,ie){return i7(w,ie)})}function jM(w,T,R){for(var ie=-1,_e=T.length,Le={};++ie<_e;){var Ge=T[ie],st=Ih(w,Ge);R(st,Ge)&&_b(Le,Zf(Ge,w),st)}return Le}function Xde(w){return function(T){return Ih(T,w)}}function DC(w,T,R,ie){var _e=ie?vu:wi,Le=-1,Ge=T.length,st=w;for(w===T&&(T=ll(T)),R&&(st=pn(w,Ps(R)));++Le<Ge;)for(var bt=0,Bt=T[Le],Ht=R?R(Bt):Bt;(bt=_e(st,Ht,bt,ie))>-1;)st!==w&&Ch.call(st,bt,1),Ch.call(w,bt,1);return w}function FM(w,T){for(var R=w?T.length:0,ie=R-1;R--;){var _e=T[R];if(R==ie||_e!==Le){var Le=_e;Dh(_e)?Ch.call(w,_e,1):MC(w,_e)}}return w}function xC(w,T){return w+Ep(vk()*(T-w+1))}function Qde(w,T,R,ie){for(var _e=-1,Le=yr(Bg((T-w)/(R||1)),0),Ge=it(Le);Le--;)Ge[ie?Le:++_e]=w,w+=R;return Ge}function OC(w,T){var R="";if(!w||T<1||T>se)return R;do T%2&&(R+=w),T=Ep(T/2),T&&(w+=w);while(T);return R}function Ro(w,T){return KC(pN(w,T,ul),w+"")}function eue(w){return Ck(ov(w))}function tue(w,T){var R=ov(w);return zk(R,Eh(T,0,R.length))}function _b(w,T,R,ie){if(!ur(w))return w;T=Zf(T,w);for(var _e=-1,Le=T.length,Ge=Le-1,st=w;st!=null&&++_e<Le;){var bt=Cu(T[_e]),Bt=R;if(bt==="__proto__"||bt==="constructor"||bt==="prototype")return w;if(_e!=Ge){var Ht=st[bt];Bt=ie?ie(Ht,bt,st):n,Bt===n&&(Bt=ur(Ht)?Ht:Dh(T[_e+1])?[]:{})}Op(st,bt,Bt),st=st[bt]}return w}var zM=qg?function(w,T){return qg.set(w,T),w}:ul,nue=Ug?function(w,T){return Ug(w,"toString",{configurable:!0,enumerable:!1,value:s7(T),writable:!0})}:ul;function oue(w){return zk(ov(w))}function Ic(w,T,R){var ie=-1,_e=w.length;T<0&&(T=-T>_e?0:_e+T),R=R>_e?_e:R,R<0&&(R+=_e),_e=T>R?0:R-T>>>0,T>>>=0;for(var Le=it(_e);++ie<_e;)Le[ie]=w[ie+T];return Le}function iue(w,T){var R;return ku(w,function(ie,_e,Le){return R=T(ie,_e,Le),!R}),!!R}function Dk(w,T,R){var ie=0,_e=w==null?ie:w.length;if(typeof T=="number"&&T===T&&_e<=de){for(;ie<_e;){var Le=ie+_e>>>1,Ge=w[Le];Ge!==null&&!Yl(Ge)&&(R?Ge<=T:Ge<T)?ie=Le+1:_e=Le}return _e}return LC(w,T,ul,R)}function LC(w,T,R,ie){var _e=0,Le=w==null?0:w.length;if(Le===0)return 0;T=R(T);for(var Ge=T!==T,st=T===null,bt=Yl(T),Bt=T===n;_e<Le;){var Ht=Ep((_e+Le)/2),Jt=R(w[Ht]),gn=Jt!==n,Dn=Jt===null,qn=Jt===Jt,Do=Yl(Jt);if(Ge)var Yn=ie||qn;else Bt?Yn=qn&&(ie||gn):st?Yn=qn&&gn&&(ie||!Dn):bt?Yn=qn&&gn&&!Dn&&(ie||!Do):Dn||Do?Yn=!1:Yn=ie?Jt<=T:Jt<T;Yn?_e=Ht+1:Le=Ht}return dr(Le,ae)}function UM(w,T){for(var R=-1,ie=w.length,_e=0,Le=[];++R<ie;){var Ge=w[R],st=T?T(Ge):Ge;if(!R||!wd(st,bt)){var bt=st;Le[_e++]=Ge===0?0:Ge}}return Le}function BM(w){return typeof w=="number"?w:Yl(w)?te:+w}function ql(w){if(typeof w=="string")return w;if(ho(w))return pn(w,ql)+"";if(Yl(w))return _k?_k.call(w):"";var T=w+"";return T=="0"&&1/w==-Z?"-0":T}function Gf(w,T,R){var ie=-1,_e=St,Le=w.length,Ge=!0,st=[],bt=st;if(R)Ge=!1,_e=Qt;else if(Le>=i){var Bt=T?null:pue(w);if(Bt)return Hl(Bt);Ge=!1,_e=_u,bt=new Th}else bt=T?[]:st;e:for(;++ie<Le;){var Ht=w[ie],Jt=T?T(Ht):Ht;if(Ht=R||Ht!==0?Ht:0,Ge&&Jt===Jt){for(var gn=bt.length;gn--;)if(bt[gn]===Jt)continue e;T&&bt.push(Jt),st.push(Ht)}else _e(bt,Jt,R)||(bt!==st&&bt.push(Jt),st.push(Ht))}return st}function MC(w,T){return T=Zf(T,w),w=gN(w,T),w==null||delete w[Cu(Pc(T))]}function HM(w,T,R,ie){return _b(w,T,R(Ih(w,T)),ie)}function xk(w,T,R,ie){for(var _e=w.length,Le=ie?_e:-1;(ie?Le--:++Le<_e)&&T(w[Le],Le,w););return R?Ic(w,ie?0:Le,ie?Le+1:_e):Ic(w,ie?Le+1:0,ie?_e:Le)}function VM(w,T){var R=w;return R instanceof Po&&(R=R.value()),io(T,function(ie,_e){return _e.func.apply(_e.thisArg,Qn([ie],_e.args))},R)}function NC(w,T,R){var ie=w.length;if(ie<2)return ie?Gf(w[0]):[];for(var _e=-1,Le=it(ie);++_e<ie;)for(var Ge=w[_e],st=-1;++st<ie;)st!=_e&&(Le[_e]=Wf(Le[_e]||Ge,w[st],T,R));return Gf(ds(Le,1),T,R)}function qM(w,T,R){for(var ie=-1,_e=w.length,Le=T.length,Ge={};++ie<_e;){var st=ie<Le?T[ie]:n;R(Ge,w[ie],st)}return Ge}function RC(w){return Nr(w)?w:[]}function jC(w){return typeof w=="function"?w:ul}function Zf(w,T){return ho(w)?w:WC(w,T)?[w]:bN(Ti(w))}var rue=Ro;function Kf(w,T,R){var ie=w.length;return R=R===n?ie:R,!T&&R>=ie?w:Ic(w,T,R)}var YM=Z6||function(w){return oo.clearTimeout(w)};function WM(w,T){if(T)return w.slice();var R=w.length,ie=dk?dk(R):new w.constructor(R);return w.copy(ie),ie}function FC(w){var T=new w.constructor(w.byteLength);return new Fg(T).set(new Fg(w)),T}function sue(w,T){var R=T?FC(w.buffer):w.buffer;return new w.constructor(R,w.byteOffset,w.byteLength)}function aue(w){var T=new w.constructor(w.source,yi.exec(w));return T.lastIndex=w.lastIndex,T}function lue(w){return xp?un(xp.call(w)):{}}function GM(w,T){var R=T?FC(w.buffer):w.buffer;return new w.constructor(R,w.byteOffset,w.length)}function ZM(w,T){if(w!==T){var R=w!==n,ie=w===null,_e=w===w,Le=Yl(w),Ge=T!==n,st=T===null,bt=T===T,Bt=Yl(T);if(!st&&!Bt&&!Le&&w>T||Le&&Ge&&bt&&!st&&!Bt||ie&&Ge&&bt||!R&&bt||!_e)return 1;if(!ie&&!Le&&!Bt&&w<T||Bt&&R&&_e&&!ie&&!Le||st&&R&&_e||!Ge&&_e||!bt)return-1}return 0}function cue(w,T,R){for(var ie=-1,_e=w.criteria,Le=T.criteria,Ge=_e.length,st=R.length;++ie<Ge;){var bt=ZM(_e[ie],Le[ie]);if(bt){if(ie>=st)return bt;var Bt=R[ie];return bt*(Bt=="desc"?-1:1)}}return w.index-T.index}function KM(w,T,R,ie){for(var _e=-1,Le=w.length,Ge=R.length,st=-1,bt=T.length,Bt=yr(Le-Ge,0),Ht=it(bt+Bt),Jt=!ie;++st<bt;)Ht[st]=T[st];for(;++_e<Ge;)(Jt||_e<Le)&&(Ht[R[_e]]=w[_e]);for(;Bt--;)Ht[st++]=w[_e++];return Ht}function JM(w,T,R,ie){for(var _e=-1,Le=w.length,Ge=-1,st=R.length,bt=-1,Bt=T.length,Ht=yr(Le-st,0),Jt=it(Ht+Bt),gn=!ie;++_e<Ht;)Jt[_e]=w[_e];for(var Dn=_e;++bt<Bt;)Jt[Dn+bt]=T[bt];for(;++Ge<st;)(gn||_e<Le)&&(Jt[Dn+R[Ge]]=w[_e++]);return Jt}function ll(w,T){var R=-1,ie=w.length;for(T||(T=it(ie));++R<ie;)T[R]=w[R];return T}function $u(w,T,R,ie){var _e=!R;R||(R={});for(var Le=-1,Ge=T.length;++Le<Ge;){var st=T[Le],bt=ie?ie(R[st],w[st],st,R,w):n;bt===n&&(bt=w[st]),_e?yd(R,st,bt):Op(R,st,bt)}return R}function due(w,T){return $u(w,YC(w),T)}function uue(w,T){return $u(w,dN(w),T)}function Ok(w,T){return function(R,ie){var _e=ho(R)?Qe:kC,Le=T?T():{};return _e(R,w,Vn(ie,2),Le)}}function Qg(w){return Ro(function(T,R){var ie=-1,_e=R.length,Le=_e>1?R[_e-1]:n,Ge=_e>2?R[2]:n;for(Le=w.length>3&&typeof Le=="function"?(_e--,Le):n,Ge&&Ca(R[0],R[1],Ge)&&(Le=_e<3?n:Le,_e=1),T=un(T);++ie<_e;){var st=R[ie];st&&w(T,st,ie,Le)}return T})}function XM(w,T){return function(R,ie){if(R==null)return R;if(!cl(R))return w(R,ie);for(var _e=R.length,Le=T?_e:-1,Ge=un(R);(T?Le--:++Le<_e)&&ie(Ge[Le],Le,Ge)!==!1;);return R}}function QM(w){return function(T,R,ie){for(var _e=-1,Le=un(T),Ge=ie(T),st=Ge.length;st--;){var bt=Ge[w?st:++_e];if(R(Le[bt],bt,Le)===!1)break}return T}}function hue(w,T,R){var ie=T&C,_e=yb(w);function Le(){var Ge=this&&this!==oo&&this instanceof Le?_e:w;return Ge.apply(ie?R:this,arguments)}return Le}function eN(w){return function(T){T=Ti(T);var R=Kr(T)?cs(T):n,ie=R?R[0]:T.charAt(0),_e=R?Kf(R,1).join(""):T.slice(1);return ie[w]()+_e}}function ev(w){return function(T){return io(XN(JN(T).replace(el,"")),w,"")}}function yb(w){return function(){var T=arguments;switch(T.length){case 0:return new w;case 1:return new w(T[0]);case 2:return new w(T[0],T[1]);case 3:return new w(T[0],T[1],T[2]);case 4:return new w(T[0],T[1],T[2],T[3]);case 5:return new w(T[0],T[1],T[2],T[3],T[4]);case 6:return new w(T[0],T[1],T[2],T[3],T[4],T[5]);case 7:return new w(T[0],T[1],T[2],T[3],T[4],T[5],T[6])}var R=Yf(w.prototype),ie=w.apply(R,T);return ur(ie)?ie:R}}function fue(w,T,R){var ie=yb(w);function _e(){for(var Le=arguments.length,Ge=it(Le),st=Le,bt=tv(_e);st--;)Ge[st]=arguments[st];var Bt=Le<3&&Ge[0]!==bt&&Ge[Le-1]!==bt?[]:As(Ge,bt);if(Le-=Bt.length,Le<R)return rN(w,T,Lk,_e.placeholder,n,Ge,Bt,n,n,R-Le);var Ht=this&&this!==oo&&this instanceof _e?ie:w;return ke(Ht,this,Ge)}return _e}function tN(w){return function(T,R,ie){var _e=un(T);if(!cl(T)){var Le=Vn(R,3);T=Ds(T),R=function(st){return Le(_e[st],st,_e)}}var Ge=w(T,R,ie);return Ge>-1?_e[Le?T[Ge]:Ge]:n}}function nN(w){return Ah(function(T){var R=T.length,ie=R,_e=sl.prototype.thru;for(w&&T.reverse();ie--;){var Le=T[ie];if(typeof Le!="function")throw new ko(s);if(_e&&!Ge&&jk(Le)=="wrapper")var Ge=new sl([],!0)}for(ie=Ge?ie:R;++ie<R;){Le=T[ie];var st=jk(Le),bt=st=="wrapper"?VC(Le):n;bt&&GC(bt[0])&&bt[1]==(S|P|O|j)&&!bt[4].length&&bt[9]==1?Ge=Ge[jk(bt[0])].apply(Ge,bt[3]):Ge=Le.length==1&&GC(Le)?Ge[st]():Ge.thru(Le)}return function(){var Bt=arguments,Ht=Bt[0];if(Ge&&Bt.length==1&&ho(Ht))return Ge.plant(Ht).value();for(var Jt=0,gn=R?T[Jt].apply(this,Bt):Ht;++Jt<R;)gn=T[Jt].call(this,gn);return gn}})}function Lk(w,T,R,ie,_e,Le,Ge,st,bt,Bt){var Ht=T&S,Jt=T&C,gn=T&$,Dn=T&(P|I),qn=T&M,Do=gn?n:yb(w);function Yn(){for(var Ho=arguments.length,ri=it(Ho),Wl=Ho;Wl--;)ri[Wl]=arguments[Wl];if(Dn)var Sa=tv(Yn),Gl=wa(ri,Sa);if(ie&&(ri=KM(ri,ie,_e,Dn)),Le&&(ri=JM(ri,Le,Ge,Dn)),Ho-=Gl,Dn&&Ho<Bt){var Rr=As(ri,Sa);return rN(w,T,Lk,Yn.placeholder,R,ri,Rr,st,bt,Bt-Ho)}var $d=Jt?R:this,Lh=gn?$d[w]:w;return Ho=ri.length,st?ri=Oue(ri,st):qn&&Ho>1&&ri.reverse(),Ht&&bt<Ho&&(ri.length=bt),this&&this!==oo&&this instanceof Yn&&(Lh=Do||yb(Lh)),Lh.apply($d,ri)}return Yn}function oN(w,T){return function(R,ie){return bd(R,w,T(ie),{})}}function Mk(w,T){return function(R,ie){var _e;if(R===n&&ie===n)return T;if(R!==n&&(_e=R),ie!==n){if(_e===n)return ie;typeof R=="string"||typeof ie=="string"?(R=ql(R),ie=ql(ie)):(R=BM(R),ie=BM(ie)),_e=w(R,ie)}return _e}}function zC(w){return Ah(function(T){return T=pn(T,Ps(Vn())),Ro(function(R){var ie=this;return w(T,function(_e){return ke(_e,ie,R)})})})}function Nk(w,T){T=T===n?" ":ql(T);var R=T.length;if(R<2)return R?OC(T,w):T;var ie=OC(T,Bg(w/il(T)));return Kr(T)?Kf(cs(ie),0,w).join(""):ie.slice(0,w)}function mue(w,T,R,ie){var _e=T&C,Le=yb(w);function Ge(){for(var st=-1,bt=arguments.length,Bt=-1,Ht=ie.length,Jt=it(Ht+bt),gn=this&&this!==oo&&this instanceof Ge?Le:w;++Bt<Ht;)Jt[Bt]=ie[Bt];for(;bt--;)Jt[Bt++]=arguments[++st];return ke(gn,_e?R:this,Jt)}return Ge}function iN(w){return function(T,R,ie){return ie&&typeof ie!="number"&&Ca(T,R,ie)&&(R=ie=n),T=Oh(T),R===n?(R=T,T=0):R=Oh(R),ie=ie===n?T<R?1:-1:Oh(ie),Qde(T,R,ie,w)}}function Rk(w){return function(T,R){return typeof T=="string"&&typeof R=="string"||(T=Ac(T),R=Ac(R)),w(T,R)}}function rN(w,T,R,ie,_e,Le,Ge,st,bt,Bt){var Ht=T&P,Jt=Ht?Ge:n,gn=Ht?n:Ge,Dn=Ht?Le:n,qn=Ht?n:Le;T|=Ht?O:L,T&=~(Ht?L:O),T&E||(T&=~(C|$));var Do=[w,T,_e,Dn,Jt,qn,gn,st,bt,Bt],Yn=R.apply(n,Do);return GC(w)&&vN(Yn,Do),Yn.placeholder=ie,_N(Yn,w,T)}function UC(w){var T=Cn[w];return function(R,ie){if(R=Ac(R),ie=ie==null?0:dr(wo(ie),292),ie&&Ip(R)){var _e=(Ti(R)+"e").split("e"),Le=T(_e[0]+"e"+(+_e[1]+ie));return _e=(Ti(Le)+"e").split("e"),+(_e[0]+"e"+(+_e[1]-ie))}return T(R)}}var pue=Vf&&1/Hl(new Vf([,-0]))[1]==Z?function(w){return new Vf(w)}:c7;function sN(w){return function(T){var R=oa(T);return R==ve?zf(T):R==ye?Cp(T):Ul(T,w(T))}}function Ph(w,T,R,ie,_e,Le,Ge,st){var bt=T&$;if(!bt&&typeof w!="function")throw new ko(s);var Bt=ie?ie.length:0;if(Bt||(T&=~(O|L),ie=_e=n),Ge=Ge===n?Ge:yr(wo(Ge),0),st=st===n?st:wo(st),Bt-=_e?_e.length:0,T&L){var Ht=ie,Jt=_e;ie=_e=n}var gn=bt?n:VC(w),Dn=[w,T,R,ie,_e,Ht,Jt,Le,Ge,st];if(gn&&Aue(Dn,gn),w=Dn[0],T=Dn[1],R=Dn[2],ie=Dn[3],_e=Dn[4],st=Dn[9]=Dn[9]===n?bt?0:w.length:yr(Dn[9]-Bt,0),!st&&T&(P|I)&&(T&=~(P|I)),!T||T==C)var qn=hue(w,T,R);else T==P||T==I?qn=fue(w,T,st):(T==O||T==(C|O))&&!_e.length?qn=mue(w,T,R,ie):qn=Lk.apply(n,Dn);var Do=gn?zM:vN;return _N(Do(qn,Dn),w,T)}function aN(w,T,R,ie){return w===n||wd(w,Mr[R])&&!eo.call(ie,R)?T:w}function lN(w,T,R,ie,_e,Le){return ur(w)&&ur(T)&&(Le.set(T,w),Ao(w,T,n,lN,Le),Le.delete(T)),w}function gue(w){return wb(w)?n:w}function cN(w,T,R,ie,_e,Le){var Ge=R&_,st=w.length,bt=T.length;if(st!=bt&&!(Ge&&bt>st))return!1;var Bt=Le.get(w),Ht=Le.get(T);if(Bt&&Ht)return Bt==T&&Ht==w;var Jt=-1,gn=!0,Dn=R&k?new Th:n;for(Le.set(w,T),Le.set(T,w);++Jt<st;){var qn=w[Jt],Do=T[Jt];if(ie)var Yn=Ge?ie(Do,qn,Jt,T,w,Le):ie(qn,Do,Jt,w,T,Le);if(Yn!==n){if(Yn)continue;gn=!1;break}if(Dn){if(!Ki(T,function(Ho,ri){if(!_u(Dn,ri)&&(qn===Ho||_e(qn,Ho,R,ie,Le)))return Dn.push(ri)})){gn=!1;break}}else if(!(qn===Do||_e(qn,Do,R,ie,Le))){gn=!1;break}}return Le.delete(w),Le.delete(T),gn}function vue(w,T,R,ie,_e,Le,Ge){switch(R){case Ut:if(w.byteLength!=T.byteLength||w.byteOffset!=T.byteOffset)return!1;w=w.buffer,T=T.buffer;case vt:return!(w.byteLength!=T.byteLength||!Le(new Fg(w),new Fg(T)));case Ae:case je:case qe:return wd(+w,+T);case _t:return w.name==T.name&&w.message==T.message;case ge:case Te:return w==T+"";case ve:var st=zf;case ye:var bt=ie&_;if(st||(st=Hl),w.size!=T.size&&!bt)return!1;var Bt=Ge.get(w);if(Bt)return Bt==T;ie|=k,Ge.set(w,T);var Ht=cN(st(w),st(T),ie,_e,Le,Ge);return Ge.delete(w),Ht;case gt:if(xp)return xp.call(w)==xp.call(T)}return!1}function _ue(w,T,R,ie,_e,Le){var Ge=R&_,st=BC(w),bt=st.length,Bt=BC(T),Ht=Bt.length;if(bt!=Ht&&!Ge)return!1;for(var Jt=bt;Jt--;){var gn=st[Jt];if(!(Ge?gn in T:eo.call(T,gn)))return!1}var Dn=Le.get(w),qn=Le.get(T);if(Dn&&qn)return Dn==T&&qn==w;var Do=!0;Le.set(w,T),Le.set(T,w);for(var Yn=Ge;++Jt<bt;){gn=st[Jt];var Ho=w[gn],ri=T[gn];if(ie)var Wl=Ge?ie(ri,Ho,gn,T,w,Le):ie(Ho,ri,gn,w,T,Le);if(!(Wl===n?Ho===ri||_e(Ho,ri,R,ie,Le):Wl)){Do=!1;break}Yn||(Yn=gn=="constructor")}if(Do&&!Yn){var Sa=w.constructor,Gl=T.constructor;Sa!=Gl&&"constructor"in w&&"constructor"in T&&!(typeof Sa=="function"&&Sa instanceof Sa&&typeof Gl=="function"&&Gl instanceof Gl)&&(Do=!1)}return Le.delete(w),Le.delete(T),Do}function Ah(w){return KC(pN(w,n,CN),w+"")}function BC(w){return Pk(w,Ds,YC)}function HC(w){return Pk(w,dl,dN)}var VC=qg?function(w){return qg.get(w)}:c7;function jk(w){for(var T=w.name+"",R=qf[T],ie=eo.call(qf,T)?R.length:0;ie--;){var _e=R[ie],Le=_e.func;if(Le==null||Le==w)return _e.name}return T}function tv(w){var T=eo.call(Se,"placeholder")?Se:w;return T.placeholder}function Vn(){var w=Se.iteratee||a7;return w=w===a7?oe:w,arguments.length?w(arguments[0],arguments[1]):w}function Fk(w,T){var R=w.__data__;return Tue(T)?R[typeof T=="string"?"string":"hash"]:R.map}function qC(w){for(var T=Ds(w),R=T.length;R--;){var ie=T[R],_e=w[ie];T[R]=[ie,_e,fN(_e)]}return T}function Np(w,T){var R=Lg(w,T);return Mp(R)?R:n}function yue(w){var T=eo.call(w,Sh),R=w[Sh];try{w[Sh]=n;var ie=!0}catch{}var _e=Rg.call(w);return ie&&(T?w[Sh]=R:delete w[Sh]),_e}var YC=Hg?function(w){return w==null?[]:(w=un(w),jt(Hg(w),function(T){return hk.call(w,T)}))}:d7,dN=Hg?function(w){for(var T=[];w;)Qn(T,YC(w)),w=zg(w);return T}:d7,oa=Bs;(lb&&oa(new lb(new ArrayBuffer(1)))!=Ut||Pp&&oa(new Pp)!=ve||cb&&oa(cb.resolve())!=Ve||Vf&&oa(new Vf)!=ye||Ap&&oa(new Ap)!=Xe)&&(oa=function(w){var T=Bs(w),R=T==ut?w.constructor:n,ie=R?Rp(R):"";if(ie)switch(ie){case Q6:return Ut;case eC:return ve;case tC:return Ve;case nC:return ye;case oC:return Xe}return T});function bue(w,T,R){for(var ie=-1,_e=R.length;++ie<_e;){var Le=R[ie],Ge=Le.size;switch(Le.type){case"drop":w+=Ge;break;case"dropRight":T-=Ge;break;case"take":T=dr(T,w+Ge);break;case"takeRight":w=yr(w,T-Ge);break}}return{start:w,end:T}}function kue(w){var T=w.match(So);return T?T[1].split(ss):[]}function uN(w,T,R){T=Zf(T,w);for(var ie=-1,_e=T.length,Le=!1;++ie<_e;){var Ge=Cu(T[ie]);if(!(Le=w!=null&&R(w,Ge)))break;w=w[Ge]}return Le||++ie!=_e?Le:(_e=w==null?0:w.length,!!_e&&Yk(_e)&&Dh(Ge,_e)&&(ho(w)||jp(w)))}function wue(w){var T=w.length,R=new w.constructor(T);return T&&typeof w[0]=="string"&&eo.call(w,"index")&&(R.index=w.index,R.input=w.input),R}function hN(w){return typeof w.constructor=="function"&&!bb(w)?Yf(zg(w)):{}}function $ue(w,T,R){var ie=w.constructor;switch(T){case vt:return FC(w);case Ae:case je:return new ie(+w);case Ut:return sue(w,R);case Je:case We:case pt:case At:case Vt:case cn:case fn:case bn:case kt:return GM(w,R);case ve:return new ie;case qe:case Te:return new ie(w);case ge:return aue(w);case ye:return new ie;case gt:return lue(w)}}function Cue(w,T){var R=T.length;if(!R)return w;var ie=R-1;return T[ie]=(R>1?"& ":"")+T[ie],T=T.join(R>2?", ":" "),w.replace(Qs,`{ /* [wrapped with `+T+`] */ `)}function Sue(w){return ho(w)||jp(w)||!!(fk&&w&&w[fk])}function Dh(w,T){var R=typeof w;return T=T??se,!!T&&(R=="number"||R!="symbol"&&Ja.test(w))&&w>-1&&w%1==0&&w<T}function Ca(w,T,R){if(!ur(R))return!1;var ie=typeof T;return(ie=="number"?cl(R)&&Dh(T,R.length):ie=="string"&&T in R)?wd(R[T],w):!1}function WC(w,T){if(ho(w))return!1;var R=typeof w;return R=="number"||R=="symbol"||R=="boolean"||w==null||Yl(w)?!0:ji.test(w)||!Lo.test(w)||T!=null&&w in un(T)}function Tue(w){var T=typeof w;return T=="string"||T=="number"||T=="symbol"||T=="boolean"?w!=="__proto__":w===null}function GC(w){var T=jk(w),R=Se[T];if(typeof R!="function"||!(T in Po.prototype))return!1;if(w===R)return!0;var ie=VC(R);return!!ie&&w===ie[0]}function Eue(w){return!!ck&&ck in w}var Iue=Us?xh:u7;function bb(w){var T=w&&w.constructor,R=typeof T=="function"&&T.prototype||Mr;return w===R}function fN(w){return w===w&&!ur(w)}function mN(w,T){return function(R){return R==null?!1:R[w]===T&&(T!==n||w in un(R))}}function Pue(w){var T=Vk(w,function(ie){return R.size===d&&R.clear(),ie}),R=T.cache;return T}function Aue(w,T){var R=w[1],ie=T[1],_e=R|ie,Le=_e<(C|$|S),Ge=ie==S&&R==P||ie==S&&R==j&&w[7].length<=T[8]||ie==(S|j)&&T[7].length<=T[8]&&R==P;if(!(Le||Ge))return w;ie&C&&(w[2]=T[2],_e|=R&C?0:E);var st=T[3];if(st){var bt=w[3];w[3]=bt?KM(bt,st,T[4]):st,w[4]=bt?As(w[3],u):T[4]}return st=T[5],st&&(bt=w[5],w[5]=bt?JM(bt,st,T[6]):st,w[6]=bt?As(w[5],u):T[6]),st=T[7],st&&(w[7]=st),ie&S&&(w[8]=w[8]==null?T[8]:dr(w[8],T[8])),w[9]==null&&(w[9]=T[9]),w[0]=T[0],w[1]=_e,w}function Due(w){var T=[];if(w!=null)for(var R in un(w))T.push(R);return T}function xue(w){return Rg.call(w)}function pN(w,T,R){return T=yr(T===n?w.length-1:T,0),function(){for(var ie=arguments,_e=-1,Le=yr(ie.length-T,0),Ge=it(Le);++_e<Le;)Ge[_e]=ie[T+_e];_e=-1;for(var st=it(T+1);++_e<T;)st[_e]=ie[_e];return st[T]=R(Ge),ke(w,this,st)}}function gN(w,T){return T.length<2?w:Ih(w,Ic(T,0,-1))}function Oue(w,T){for(var R=w.length,ie=dr(T.length,R),_e=ll(w);ie--;){var Le=T[ie];w[ie]=Dh(Le,R)?_e[Le]:n}return w}function ZC(w,T){if(!(T==="constructor"&&typeof w[T]=="function")&&T!="__proto__")return w[T]}var vN=yN(zM),kb=J6||function(w,T){return oo.setTimeout(w,T)},KC=yN(nue);function _N(w,T,R){var ie=T+"";return KC(w,Cue(ie,Lue(kue(ie),R)))}function yN(w){var T=0,R=0;return function(){var ie=pk(),_e=G-(ie-R);if(R=ie,_e>0){if(++T>=V)return arguments[0]}else T=0;return w.apply(n,arguments)}}function zk(w,T){var R=-1,ie=w.length,_e=ie-1;for(T=T===n?ie:T;++R<T;){var Le=xC(R,_e),Ge=w[Le];w[Le]=w[R],w[R]=Ge}return w.length=T,w}var bN=Pue(function(w){var T=[];return w.charCodeAt(0)===46&&T.push(""),w.replace(On,function(R,ie,_e,Le){T.push(_e?Le.replace(xr,"$1"):ie||R)}),T});function Cu(w){if(typeof w=="string"||Yl(w))return w;var T=w+"";return T=="0"&&1/w==-Z?"-0":T}function Rp(w){if(w!=null){try{return rl.call(w)}catch{}try{return w+""}catch{}}return""}function Lue(w,T){return He($e,function(R){var ie="_."+R[0];T&R[1]&&!St(w,ie)&&w.push(ie)}),w.sort()}function kN(w){if(w instanceof Po)return w.clone();var T=new sl(w.__wrapped__,w.__chain__);return T.__actions__=ll(w.__actions__),T.__index__=w.__index__,T.__values__=w.__values__,T}function Mue(w,T,R){(R?Ca(w,T,R):T===n)?T=1:T=yr(wo(T),0);var ie=w==null?0:w.length;if(!ie||T<1)return[];for(var _e=0,Le=0,Ge=it(Bg(ie/T));_e<ie;)Ge[Le++]=Ic(w,_e,_e+=T);return Ge}function Nue(w){for(var T=-1,R=w==null?0:w.length,ie=0,_e=[];++T<R;){var Le=w[T];Le&&(_e[ie++]=Le)}return _e}function Rue(){var w=arguments.length;if(!w)return[];for(var T=it(w-1),R=arguments[0],ie=w;ie--;)T[ie-1]=arguments[ie];return Qn(ho(R)?ll(R):[R],ds(T,1))}var jue=Ro(function(w,T){return Nr(w)?Wf(w,ds(T,1,Nr,!0)):[]}),Fue=Ro(function(w,T){var R=Pc(T);return Nr(R)&&(R=n),Nr(w)?Wf(w,ds(T,1,Nr,!0),Vn(R,2)):[]}),zue=Ro(function(w,T){var R=Pc(T);return Nr(R)&&(R=n),Nr(w)?Wf(w,ds(T,1,Nr,!0),n,R):[]});function Uue(w,T,R){var ie=w==null?0:w.length;return ie?(T=R||T===n?1:wo(T),Ic(w,T<0?0:T,ie)):[]}function Bue(w,T,R){var ie=w==null?0:w.length;return ie?(T=R||T===n?1:wo(T),T=ie-T,Ic(w,0,T<0?0:T)):[]}function Hue(w,T){return w&&w.length?xk(w,Vn(T,3),!0,!0):[]}function Vue(w,T){return w&&w.length?xk(w,Vn(T,3),!0):[]}function que(w,T,R,ie){var _e=w==null?0:w.length;return _e?(R&&typeof R!="number"&&Ca(w,T,R)&&(R=0,ie=_e),CC(w,T,R,ie)):[]}function wN(w,T,R){var ie=w==null?0:w.length;if(!ie)return-1;var _e=R==null?0:wo(R);return _e<0&&(_e=yr(ie+_e,0)),Io(w,Vn(T,3),_e)}function $N(w,T,R){var ie=w==null?0:w.length;if(!ie)return-1;var _e=ie-1;return R!==n&&(_e=wo(R),_e=R<0?yr(ie+_e,0):dr(_e,ie-1)),Io(w,Vn(T,3),_e,!0)}function CN(w){var T=w==null?0:w.length;return T?ds(w,1):[]}function Yue(w){var T=w==null?0:w.length;return T?ds(w,Z):[]}function Wue(w,T){var R=w==null?0:w.length;return R?(T=T===n?1:wo(T),ds(w,T)):[]}function Gue(w){for(var T=-1,R=w==null?0:w.length,ie={};++T<R;){var _e=w[T];ie[_e[0]]=_e[1]}return ie}function SN(w){return w&&w.length?w[0]:n}function Zue(w,T,R){var ie=w==null?0:w.length;if(!ie)return-1;var _e=R==null?0:wo(R);return _e<0&&(_e=yr(ie+_e,0)),wi(w,T,_e)}function Kue(w){var T=w==null?0:w.length;return T?Ic(w,0,-1):[]}var Jue=Ro(function(w){var T=pn(w,RC);return T.length&&T[0]===w[0]?gb(T):[]}),Xue=Ro(function(w){var T=Pc(w),R=pn(w,RC);return T===Pc(R)?T=n:R.pop(),R.length&&R[0]===w[0]?gb(R,Vn(T,2)):[]}),Que=Ro(function(w){var T=Pc(w),R=pn(w,RC);return T=typeof T=="function"?T:n,T&&R.pop(),R.length&&R[0]===w[0]?gb(R,n,T):[]});function ehe(w,T){return w==null?"":Hf.call(w,T)}function Pc(w){var T=w==null?0:w.length;return T?w[T-1]:n}function the(w,T,R){var ie=w==null?0:w.length;if(!ie)return-1;var _e=ie;return R!==n&&(_e=wo(R),_e=_e<0?yr(ie+_e,0):dr(_e,ie-1)),T===T?Uf(w,T,_e):Io(w,Ff,_e,!0)}function nhe(w,T){return w&&w.length?Ec(w,wo(T)):n}var ohe=Ro(TN);function TN(w,T){return w&&w.length&&T&&T.length?DC(w,T):w}function ihe(w,T,R){return w&&w.length&&T&&T.length?DC(w,T,Vn(R,2)):w}function rhe(w,T,R){return w&&w.length&&T&&T.length?DC(w,T,n,R):w}var she=Ah(function(w,T){var R=w==null?0:w.length,ie=Jg(w,T);return FM(w,pn(T,function(_e){return Dh(_e,R)?+_e:_e}).sort(ZM)),ie});function ahe(w,T){var R=[];if(!(w&&w.length))return R;var ie=-1,_e=[],Le=w.length;for(T=Vn(T,3);++ie<Le;){var Ge=w[ie];T(Ge,ie,w)&&(R.push(Ge),_e.push(ie))}return FM(w,_e),R}function JC(w){return w==null?w:X6.call(w)}function lhe(w,T,R){var ie=w==null?0:w.length;return ie?(R&&typeof R!="number"&&Ca(w,T,R)?(T=0,R=ie):(T=T==null?0:wo(T),R=R===n?ie:wo(R)),Ic(w,T,R)):[]}function che(w,T){return Dk(w,T)}function dhe(w,T,R){return LC(w,T,Vn(R,2))}function uhe(w,T){var R=w==null?0:w.length;if(R){var ie=Dk(w,T);if(ie<R&&wd(w[ie],T))return ie}return-1}function hhe(w,T){return Dk(w,T,!0)}function fhe(w,T,R){return LC(w,T,Vn(R,2),!0)}function mhe(w,T){var R=w==null?0:w.length;if(R){var ie=Dk(w,T,!0)-1;if(wd(w[ie],T))return ie}return-1}function phe(w){return w&&w.length?UM(w):[]}function ghe(w,T){return w&&w.length?UM(w,Vn(T,2)):[]}function vhe(w){var T=w==null?0:w.length;return T?Ic(w,1,T):[]}function _he(w,T,R){return w&&w.length?(T=R||T===n?1:wo(T),Ic(w,0,T<0?0:T)):[]}function yhe(w,T,R){var ie=w==null?0:w.length;return ie?(T=R||T===n?1:wo(T),T=ie-T,Ic(w,T<0?0:T,ie)):[]}function bhe(w,T){return w&&w.length?xk(w,Vn(T,3),!1,!0):[]}function khe(w,T){return w&&w.length?xk(w,Vn(T,3)):[]}var whe=Ro(function(w){return Gf(ds(w,1,Nr,!0))}),$he=Ro(function(w){var T=Pc(w);return Nr(T)&&(T=n),Gf(ds(w,1,Nr,!0),Vn(T,2))}),Che=Ro(function(w){var T=Pc(w);return T=typeof T=="function"?T:n,Gf(ds(w,1,Nr,!0),n,T)});function She(w){return w&&w.length?Gf(w):[]}function The(w,T){return w&&w.length?Gf(w,Vn(T,2)):[]}function Ehe(w,T){return T=typeof T=="function"?T:n,w&&w.length?Gf(w,n,T):[]}function XC(w){if(!(w&&w.length))return[];var T=0;return w=jt(w,function(R){if(Nr(R))return T=yr(R.length,T),!0}),wh(T,function(R){return pn(w,md(R))})}function EN(w,T){if(!(w&&w.length))return[];var R=XC(w);return T==null?R:pn(R,function(ie){return ke(T,n,ie)})}var Ihe=Ro(function(w,T){return Nr(w)?Wf(w,T):[]}),Phe=Ro(function(w){return NC(jt(w,Nr))}),Ahe=Ro(function(w){var T=Pc(w);return Nr(T)&&(T=n),NC(jt(w,Nr),Vn(T,2))}),Dhe=Ro(function(w){var T=Pc(w);return T=typeof T=="function"?T:n,NC(jt(w,Nr),n,T)}),xhe=Ro(XC);function Ohe(w,T){return qM(w||[],T||[],Op)}function Lhe(w,T){return qM(w||[],T||[],_b)}var Mhe=Ro(function(w){var T=w.length,R=T>1?w[T-1]:n;return R=typeof R=="function"?(w.pop(),R):n,EN(w,R)});function IN(w){var T=Se(w);return T.__chain__=!0,T}function Nhe(w,T){return T(w),w}function Uk(w,T){return T(w)}var Rhe=Ah(function(w){var T=w.length,R=T?w[0]:0,ie=this.__wrapped__,_e=function(Le){return Jg(Le,w)};return T>1||this.__actions__.length||!(ie instanceof Po)||!Dh(R)?this.thru(_e):(ie=ie.slice(R,+R+(T?1:0)),ie.__actions__.push({func:Uk,args:[_e],thisArg:n}),new sl(ie,this.__chain__).thru(function(Le){return T&&!Le.length&&Le.push(n),Le}))});function jhe(){return IN(this)}function Fhe(){return new sl(this.value(),this.__chain__)}function zhe(){this.__values__===n&&(this.__values__=BN(this.value()));var w=this.__index__>=this.__values__.length,T=w?n:this.__values__[this.__index__++];return{done:w,value:T}}function Uhe(){return this}function Bhe(w){for(var T,R=this;R instanceof Wg;){var ie=kN(R);ie.__index__=0,ie.__values__=n,T?_e.__wrapped__=ie:T=ie;var _e=ie;R=R.__wrapped__}return _e.__wrapped__=w,T}function Hhe(){var w=this.__wrapped__;if(w instanceof Po){var T=w;return this.__actions__.length&&(T=new Po(this)),T=T.reverse(),T.__actions__.push({func:Uk,args:[JC],thisArg:n}),new sl(T,this.__chain__)}return this.thru(JC)}function Vhe(){return VM(this.__wrapped__,this.__actions__)}var qhe=Ok(function(w,T,R){eo.call(w,R)?++w[R]:yd(w,R,1)});function Yhe(w,T,R){var ie=ho(w)?Dt:$C;return R&&Ca(w,T,R)&&(T=n),ie(w,Vn(T,3))}function Whe(w,T){var R=ho(w)?jt:Ek;return R(w,Vn(T,3))}var Ghe=tN(wN),Zhe=tN($N);function Khe(w,T){return ds(Bk(w,T),1)}function Jhe(w,T){return ds(Bk(w,T),Z)}function Xhe(w,T,R){return R=R===n?1:wo(R),ds(Bk(w,T),R)}function PN(w,T){var R=ho(w)?He:ku;return R(w,Vn(T,3))}function AN(w,T){var R=ho(w)?ht:Tk;return R(w,Vn(T,3))}var Qhe=Ok(function(w,T,R){eo.call(w,R)?w[R].push(T):yd(w,R,[T])});function efe(w,T,R,ie){w=cl(w)?w:ov(w),R=R&&!ie?wo(R):0;var _e=w.length;return R<0&&(R=yr(_e+R,0)),Wk(w)?R<=_e&&w.indexOf(T,R)>-1:!!_e&&wi(w,T,R)>-1}var tfe=Ro(function(w,T,R){var ie=-1,_e=typeof T=="function",Le=cl(w)?it(w.length):[];return ku(w,function(Ge){Le[++ie]=_e?ke(T,Ge,R):Tc(Ge,T,R)}),Le}),nfe=Ok(function(w,T,R){yd(w,R,T)});function Bk(w,T){var R=ho(w)?pn:Ot;return R(w,Vn(T,3))}function ofe(w,T,R,ie){return w==null?[]:(ho(T)||(T=T==null?[]:[T]),R=ie?n:R,ho(R)||(R=R==null?[]:[R]),kd(w,T,R))}var ife=Ok(function(w,T,R){w[R?0:1].push(T)},function(){return[[],[]]});function rfe(w,T,R){var ie=ho(w)?io:zl,_e=arguments.length<3;return ie(w,Vn(T,4),R,_e,ku)}function sfe(w,T,R){var ie=ho(w)?Or:zl,_e=arguments.length<3;return ie(w,Vn(T,4),R,_e,Tk)}function afe(w,T){var R=ho(w)?jt:Ek;return R(w,qk(Vn(T,3)))}function lfe(w){var T=ho(w)?Ck:eue;return T(w)}function cfe(w,T,R){(R?Ca(w,T,R):T===n)?T=1:T=wo(T);var ie=ho(w)?yC:tue;return ie(w,T)}function dfe(w){var T=ho(w)?bC:oue;return T(w)}function ufe(w){if(w==null)return 0;if(cl(w))return Wk(w)?il(w):w.length;var T=oa(w);return T==ve||T==ye?w.size:le(w).length}function hfe(w,T,R){var ie=ho(w)?Ki:iue;return R&&Ca(w,T,R)&&(T=n),ie(w,Vn(T,3))}var ffe=Ro(function(w,T){if(w==null)return[];var R=T.length;return R>1&&Ca(w,T[0],T[1])?T=[]:R>2&&Ca(T[0],T[1],T[2])&&(T=[T[0]]),kd(w,ds(T,1),[])}),Hk=K6||function(){return oo.Date.now()};function mfe(w,T){if(typeof T!="function")throw new ko(s);return w=wo(w),function(){if(--w<1)return T.apply(this,arguments)}}function DN(w,T,R){return T=R?n:T,T=w&&T==null?w.length:T,Ph(w,S,n,n,n,n,T)}function xN(w,T){var R;if(typeof T!="function")throw new ko(s);return w=wo(w),function(){return--w>0&&(R=T.apply(this,arguments)),w<=1&&(T=n),R}}var QC=Ro(function(w,T,R){var ie=C;if(R.length){var _e=As(R,tv(QC));ie|=O}return Ph(w,ie,T,R,_e)}),ON=Ro(function(w,T,R){var ie=C|$;if(R.length){var _e=As(R,tv(ON));ie|=O}return Ph(T,ie,w,R,_e)});function LN(w,T,R){T=R?n:T;var ie=Ph(w,P,n,n,n,n,n,T);return ie.placeholder=LN.placeholder,ie}function MN(w,T,R){T=R?n:T;var ie=Ph(w,I,n,n,n,n,n,T);return ie.placeholder=MN.placeholder,ie}function NN(w,T,R){var ie,_e,Le,Ge,st,bt,Bt=0,Ht=!1,Jt=!1,gn=!0;if(typeof w!="function")throw new ko(s);T=Ac(T)||0,ur(R)&&(Ht=!!R.leading,Jt="maxWait"in R,Le=Jt?yr(Ac(R.maxWait)||0,T):Le,gn="trailing"in R?!!R.trailing:gn);function Dn(Rr){var $d=ie,Lh=_e;return ie=_e=n,Bt=Rr,Ge=w.apply(Lh,$d),Ge}function qn(Rr){return Bt=Rr,st=kb(Ho,T),Ht?Dn(Rr):Ge}function Do(Rr){var $d=Rr-bt,Lh=Rr-Bt,tR=T-$d;return Jt?dr(tR,Le-Lh):tR}function Yn(Rr){var $d=Rr-bt,Lh=Rr-Bt;return bt===n||$d>=T||$d<0||Jt&&Lh>=Le}function Ho(){var Rr=Hk();if(Yn(Rr))return ri(Rr);st=kb(Ho,Do(Rr))}function ri(Rr){return st=n,gn&&ie?Dn(Rr):(ie=_e=n,Ge)}function Wl(){st!==n&&YM(st),Bt=0,ie=bt=_e=st=n}function Sa(){return st===n?Ge:ri(Hk())}function Gl(){var Rr=Hk(),$d=Yn(Rr);if(ie=arguments,_e=this,bt=Rr,$d){if(st===n)return qn(bt);if(Jt)return YM(st),st=kb(Ho,T),Dn(bt)}return st===n&&(st=kb(Ho,T)),Ge}return Gl.cancel=Wl,Gl.flush=Sa,Gl}var pfe=Ro(function(w,T){return $c(w,1,T)}),gfe=Ro(function(w,T,R){return $c(w,Ac(T)||0,R)});function vfe(w){return Ph(w,M)}function Vk(w,T){if(typeof w!="function"||T!=null&&typeof T!="function")throw new ko(s);var R=function(){var ie=arguments,_e=T?T.apply(this,ie):ie[0],Le=R.cache;if(Le.has(_e))return Le.get(_e);var Ge=w.apply(this,ie);return R.cache=Le.set(_e,Ge)||Le,Ge};return R.cache=new(Vk.Cache||_d),R}Vk.Cache=_d;function qk(w){if(typeof w!="function")throw new ko(s);return function(){var T=arguments;switch(T.length){case 0:return!w.call(this);case 1:return!w.call(this,T[0]);case 2:return!w.call(this,T[0],T[1]);case 3:return!w.call(this,T[0],T[1],T[2])}return!w.apply(this,T)}}function _fe(w){return xN(2,w)}var yfe=rue(function(w,T){T=T.length==1&&ho(T[0])?pn(T[0],Ps(Vn())):pn(ds(T,1),Ps(Vn()));var R=T.length;return Ro(function(ie){for(var _e=-1,Le=dr(ie.length,R);++_e<Le;)ie[_e]=T[_e].call(this,ie[_e]);return ke(w,this,ie)})}),e7=Ro(function(w,T){var R=As(T,tv(e7));return Ph(w,O,n,T,R)}),RN=Ro(function(w,T){var R=As(T,tv(RN));return Ph(w,L,n,T,R)}),bfe=Ah(function(w,T){return Ph(w,j,n,n,n,T)});function kfe(w,T){if(typeof w!="function")throw new ko(s);return T=T===n?T:wo(T),Ro(w,T)}function wfe(w,T){if(typeof w!="function")throw new ko(s);return T=T==null?0:yr(wo(T),0),Ro(function(R){var ie=R[T],_e=Kf(R,0,T);return ie&&Qn(_e,ie),ke(w,this,_e)})}function $fe(w,T,R){var ie=!0,_e=!0;if(typeof w!="function")throw new ko(s);return ur(R)&&(ie="leading"in R?!!R.leading:ie,_e="trailing"in R?!!R.trailing:_e),NN(w,T,{leading:ie,maxWait:T,trailing:_e})}function Cfe(w){return DN(w,1)}function Sfe(w,T){return e7(jC(T),w)}function Tfe(){if(!arguments.length)return[];var w=arguments[0];return ho(w)?w:[w]}function Efe(w){return $a(w,v)}function Ife(w,T){return T=typeof T=="function"?T:n,$a(w,v,T)}function Pfe(w){return $a(w,f|v)}function Afe(w,T){return T=typeof T=="function"?T:n,$a(w,f|v,T)}function Dfe(w,T){return T==null||Sk(w,T,Ds(T))}function wd(w,T){return w===T||w!==w&&T!==T}var xfe=Rk(pb),Ofe=Rk(function(w,T){return w>=T}),jp=Ak(function(){return arguments}())?Ak:function(w){return br(w)&&eo.call(w,"callee")&&!hk.call(w,"callee")},ho=it.isArray,Lfe=A?Ps(A):IC;function cl(w){return w!=null&&Yk(w.length)&&!xh(w)}function Nr(w){return br(w)&&cl(w)}function Mfe(w){return w===!0||w===!1||br(w)&&Bs(w)==Ae}var Jf=mk||u7,Nfe=N?Ps(N):PC;function Rfe(w){return br(w)&&w.nodeType===1&&!wb(w)}function jfe(w){if(w==null)return!0;if(cl(w)&&(ho(w)||typeof w=="string"||typeof w.splice=="function"||Jf(w)||nv(w)||jp(w)))return!w.length;var T=oa(w);if(T==ve||T==ye)return!w.size;if(bb(w))return!le(w).length;for(var R in w)if(eo.call(w,R))return!1;return!0}function Ffe(w,T){return Lp(w,T)}function zfe(w,T,R){R=typeof R=="function"?R:n;var ie=R?R(w,T):n;return ie===n?Lp(w,T,n,R):!!ie}function t7(w){if(!br(w))return!1;var T=Bs(w);return T==_t||T==Ye||typeof w.message=="string"&&typeof w.name=="string"&&!wb(w)}function Ufe(w){return typeof w=="number"&&Ip(w)}function xh(w){if(!ur(w))return!1;var T=Bs(w);return T==xt||T==we||T==fe||T==tt}function jN(w){return typeof w=="number"&&w==wo(w)}function Yk(w){return typeof w=="number"&&w>-1&&w%1==0&&w<=se}function ur(w){var T=typeof w;return w!=null&&(T=="object"||T=="function")}function br(w){return w!=null&&typeof w=="object"}var FN=K?Ps(K):vb;function Bfe(w,T){return w===T||wu(w,T,qC(T))}function Hfe(w,T,R){return R=typeof R=="function"?R:n,wu(w,T,qC(T),R)}function Vfe(w){return zN(w)&&w!=+w}function qfe(w){if(Iue(w))throw new zt(r);return Mp(w)}function Yfe(w){return w===null}function Wfe(w){return w==null}function zN(w){return typeof w=="number"||br(w)&&Bs(w)==qe}function wb(w){if(!br(w)||Bs(w)!=ut)return!1;var T=zg(w);if(T===null)return!0;var R=eo.call(T,"constructor")&&T.constructor;return typeof R=="function"&&R instanceof R&&rl.call(R)==Y6}var n7=ne?Ps(ne):Wo;function Gfe(w){return jN(w)&&w>=-se&&w<=se}var UN=he?Ps(he):x;function Wk(w){return typeof w=="string"||!ho(w)&&br(w)&&Bs(w)==Te}function Yl(w){return typeof w=="symbol"||br(w)&&Bs(w)==gt}var nv=ue?Ps(ue):H;function Zfe(w){return w===n}function Kfe(w){return br(w)&&oa(w)==Xe}function Jfe(w){return br(w)&&Bs(w)==Ze}var Xfe=Rk(ot),Qfe=Rk(function(w,T){return w<=T});function BN(w){if(!w)return[];if(cl(w))return Wk(w)?cs(w):ll(w);if(Tp&&w[Tp])return wc(w[Tp]());var T=oa(w),R=T==ve?zf:T==ye?Hl:ov;return R(w)}function Oh(w){if(!w)return w===0?w:0;if(w=Ac(w),w===Z||w===-Z){var T=w<0?-1:1;return T*ce}return w===w?w:0}function wo(w){var T=Oh(w),R=T%1;return T===T?R?T-R:T:0}function HN(w){return w?Eh(wo(w),0,ee):0}function Ac(w){if(typeof w=="number")return w;if(Yl(w))return te;if(ur(w)){var T=typeof w.valueOf=="function"?w.valueOf():w;w=ur(T)?T+"":T}if(typeof w!="string")return w===0?w:+w;w=ol(w);var R=mc.test(w);return R||Ka.test(w)?En(w.slice(2),R?2:8):ea.test(w)?te:+w}function VN(w){return $u(w,dl(w))}function eme(w){return w?Eh(wo(w),-se,se):w===0?w:0}function Ti(w){return w==null?"":ql(w)}var tme=Qg(function(w,T){if(bb(T)||cl(T)){$u(T,Ds(T),w);return}for(var R in T)eo.call(T,R)&&Op(w,R,T[R])}),qN=Qg(function(w,T){$u(T,dl(T),w)}),Gk=Qg(function(w,T,R,ie){$u(T,dl(T),w,ie)}),nme=Qg(function(w,T,R,ie){$u(T,Ds(T),w,ie)}),ome=Ah(Jg);function ime(w,T){var R=Yf(w);return T==null?R:ub(R,T)}var rme=Ro(function(w,T){w=un(w);var R=-1,ie=T.length,_e=ie>2?T[2]:n;for(_e&&Ca(T[0],T[1],_e)&&(ie=1);++R<ie;)for(var Le=T[R],Ge=dl(Le),st=-1,bt=Ge.length;++st<bt;){var Bt=Ge[st],Ht=w[Bt];(Ht===n||wd(Ht,Mr[Bt])&&!eo.call(w,Bt))&&(w[Bt]=Le[Bt])}return w}),sme=Ro(function(w){return w.push(n,lN),ke(YN,n,w)});function ame(w,T){return kc(w,Vn(T,3),Cc)}function lme(w,T){return kc(w,Vn(T,3),mb)}function cme(w,T){return w==null?w:fb(w,Vn(T,3),dl)}function dme(w,T){return w==null?w:Ik(w,Vn(T,3),dl)}function ume(w,T){return w&&Cc(w,Vn(T,3))}function hme(w,T){return w&&mb(w,Vn(T,3))}function fme(w){return w==null?[]:Sc(w,Ds(w))}function mme(w){return w==null?[]:Sc(w,dl(w))}function o7(w,T,R){var ie=w==null?n:Ih(w,T);return ie===n?R:ie}function pme(w,T){return w!=null&&uN(w,T,SC)}function i7(w,T){return w!=null&&uN(w,T,TC)}var gme=oN(function(w,T,R){T!=null&&typeof T.toString!="function"&&(T=Rg.call(T)),w[T]=R},s7(ul)),vme=oN(function(w,T,R){T!=null&&typeof T.toString!="function"&&(T=Rg.call(T)),eo.call(w,T)?w[T].push(R):w[T]=[R]},Vn),_me=Ro(Tc);function Ds(w){return cl(w)?Kg(w):le(w)}function dl(w){return cl(w)?Kg(w,!0):Ce(w)}function yme(w,T){var R={};return T=Vn(T,3),Cc(w,function(ie,_e,Le){yd(R,T(ie,_e,Le),ie)}),R}function bme(w,T){var R={};return T=Vn(T,3),Cc(w,function(ie,_e,Le){yd(R,_e,T(ie,_e,Le))}),R}var kme=Qg(function(w,T,R){Ao(w,T,R)}),YN=Qg(function(w,T,R,ie){Ao(w,T,R,ie)}),wme=Ah(function(w,T){var R={};if(w==null)return R;var ie=!1;T=pn(T,function(Le){return Le=Zf(Le,w),ie||(ie=Le.length>1),Le}),$u(w,HC(w),R),ie&&(R=$a(R,f|p|v,gue));for(var _e=T.length;_e--;)MC(R,T[_e]);return R});function $me(w,T){return WN(w,qk(Vn(T)))}var Cme=Ah(function(w,T){return w==null?{}:Jde(w,T)});function WN(w,T){if(w==null)return{};var R=pn(HC(w),function(ie){return[ie]});return T=Vn(T),jM(w,R,function(ie,_e){return T(ie,_e[0])})}function Sme(w,T,R){T=Zf(T,w);var ie=-1,_e=T.length;for(_e||(_e=1,w=n);++ie<_e;){var Le=w==null?n:w[Cu(T[ie])];Le===n&&(ie=_e,Le=R),w=xh(Le)?Le.call(w):Le}return w}function Tme(w,T,R){return w==null?w:_b(w,T,R)}function Eme(w,T,R,ie){return ie=typeof ie=="function"?ie:n,w==null?w:_b(w,T,R,ie)}var GN=sN(Ds),ZN=sN(dl);function Ime(w,T,R){var ie=ho(w),_e=ie||Jf(w)||nv(w);if(T=Vn(T,4),R==null){var Le=w&&w.constructor;_e?R=ie?new Le:[]:ur(w)?R=xh(Le)?Yf(zg(w)):{}:R={}}return(_e?He:Cc)(w,function(Ge,st,bt){return T(R,Ge,st,bt)}),R}function Pme(w,T){return w==null?!0:MC(w,T)}function Ame(w,T,R){return w==null?w:HM(w,T,jC(R))}function Dme(w,T,R,ie){return ie=typeof ie=="function"?ie:n,w==null?w:HM(w,T,jC(R),ie)}function ov(w){return w==null?[]:wp(w,Ds(w))}function xme(w){return w==null?[]:wp(w,dl(w))}function Ome(w,T,R){return R===n&&(R=T,T=n),R!==n&&(R=Ac(R),R=R===R?R:0),T!==n&&(T=Ac(T),T=T===T?T:0),Eh(Ac(w),T,R)}function Lme(w,T,R){return T=Oh(T),R===n?(R=T,T=0):R=Oh(R),w=Ac(w),EC(w,T,R)}function Mme(w,T,R){if(R&&typeof R!="boolean"&&Ca(w,T,R)&&(T=R=n),R===n&&(typeof T=="boolean"?(R=T,T=n):typeof w=="boolean"&&(R=w,w=n)),w===n&&T===n?(w=0,T=1):(w=Oh(w),T===n?(T=w,w=0):T=Oh(T)),w>T){var ie=w;w=T,T=ie}if(R||w%1||T%1){var _e=vk();return dr(w+_e*(T-w+zn("1e-"+((_e+"").length-1))),T)}return xC(w,T)}var Nme=ev(function(w,T,R){return T=T.toLowerCase(),w+(R?KN(T):T)});function KN(w){return r7(Ti(w).toLowerCase())}function JN(w){return w=Ti(w),w&&w.replace(Fi,pd).replace(kh,"")}function Rme(w,T,R){w=Ti(w),T=ql(T);var ie=w.length;R=R===n?ie:Eh(wo(R),0,ie);var _e=R;return R-=T.length,R>=0&&w.slice(R,_e)==T}function jme(w){return w=Ti(w),w&&Oo.test(w)?w.replace(dn,sb):w}function Fme(w){return w=Ti(w),w&&Gn.test(w)?w.replace(Hi,"\\$&"):w}var zme=ev(function(w,T,R){return w+(R?"-":"")+T.toLowerCase()}),Ume=ev(function(w,T,R){return w+(R?" ":"")+T.toLowerCase()}),Bme=eN("toLowerCase");function Hme(w,T,R){w=Ti(w),T=wo(T);var ie=T?il(w):0;if(!T||ie>=T)return w;var _e=(T-ie)/2;return Nk(Ep(_e),R)+w+Nk(Bg(_e),R)}function Vme(w,T,R){w=Ti(w),T=wo(T);var ie=T?il(w):0;return T&&ie<T?w+Nk(T-ie,R):w}function qme(w,T,R){w=Ti(w),T=wo(T);var ie=T?il(w):0;return T&&ie<T?Nk(T-ie,R)+w:w}function Yme(w,T,R){return R||T==null?T=0:T&&(T=+T),gk(Ti(w).replace(Ar,""),T||0)}function Wme(w,T,R){return(R?Ca(w,T,R):T===n)?T=1:T=wo(T),OC(Ti(w),T)}function Gme(){var w=arguments,T=Ti(w[0]);return w.length<3?T:T.replace(w[1],w[2])}var Zme=ev(function(w,T,R){return w+(R?"_":"")+T.toLowerCase()});function Kme(w,T,R){return R&&typeof R!="number"&&Ca(w,T,R)&&(T=R=n),R=R===n?ee:R>>>0,R?(w=Ti(w),w&&(typeof T=="string"||T!=null&&!n7(T))&&(T=ql(T),!T&&Kr(w))?Kf(cs(w),0,R):w.split(T,R)):[]}var Jme=ev(function(w,T,R){return w+(R?" ":"")+r7(T)});function Xme(w,T,R){return w=Ti(w),R=R==null?0:Eh(wo(R),0,w.length),T=ql(T),w.slice(R,R+T.length)==T}function Qme(w,T,R){var ie=Se.templateSettings;R&&Ca(w,T,R)&&(T=n),w=Ti(w),T=Gk({},T,ie,aN);var _e=Gk({},T.imports,ie.imports,aN),Le=Ds(_e),Ge=wp(_e,Le),st,bt,Bt=0,Ht=T.interpolate||Cs,Jt="__p += '",gn=Zn((T.escape||Cs).source+"|"+Ht.source+"|"+(Ht===Yr?Wr:Cs).source+"|"+(T.evaluate||Cs).source+"|$","g"),Dn="//# sourceURL="+(eo.call(T,"sourceURL")?(T.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fd+"]")+` `;w.replace(gn,function(Yn,Ho,ri,Wl,Sa,Gl){return ri||(ri=Wl),Jt+=w.slice(Bt,Gl).replace(Fs,ab),Ho&&(st=!0,Jt+=`' + __e(`+Ho+`) + '`),Sa&&(bt=!0,Jt+=`'; `+Sa+`; __p += '`),ri&&(Jt+=`' + ((__t = (`+ri+`)) == null ? '' : __t) + '`),Bt=Gl+Yn.length,Yn}),Jt+=`'; `;var qn=eo.call(T,"variable")&&T.variable;if(!qn)Jt=`with (obj) { `+Jt+` } `;else if(Di.test(qn))throw new zt(a);Jt=(bt?Jt.replace(Ne,""):Jt).replace(nt,"$1").replace(It,"$1;"),Jt="function("+(qn||"obj")+`) { `+(qn?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(st?", __e = _.escape":"")+(bt?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Jt+`return __p }`;var Do=QN(function(){return kn(Le,Dn+"return "+Jt).apply(n,Ge)});if(Do.source=Jt,t7(Do))throw Do;return Do}function epe(w){return Ti(w).toLowerCase()}function tpe(w){return Ti(w).toUpperCase()}function npe(w,T,R){if(w=Ti(w),w&&(R||T===n))return ol(w);if(!w||!(T=ql(T)))return w;var ie=cs(w),_e=cs(T),Le=Ln(ie,_e),Ge=$h(ie,_e)+1;return Kf(ie,Le,Ge).join("")}function ope(w,T,R){if(w=Ti(w),w&&(R||T===n))return w.slice(0,Bf(w)+1);if(!w||!(T=ql(T)))return w;var ie=cs(w),_e=$h(ie,cs(T))+1;return Kf(ie,0,_e).join("")}function ipe(w,T,R){if(w=Ti(w),w&&(R||T===n))return w.replace(Ar,"");if(!w||!(T=ql(T)))return w;var ie=cs(w),_e=Ln(ie,cs(T));return Kf(ie,_e).join("")}function rpe(w,T){var R=q,ie=B;if(ur(T)){var _e="separator"in T?T.separator:_e;R="length"in T?wo(T.length):R,ie="omission"in T?ql(T.omission):ie}w=Ti(w);var Le=w.length;if(Kr(w)){var Ge=cs(w);Le=Ge.length}if(R>=Le)return w;var st=R-il(ie);if(st<1)return ie;var bt=Ge?Kf(Ge,0,st).join(""):w.slice(0,st);if(_e===n)return bt+ie;if(Ge&&(st+=bt.length-st),n7(_e)){if(w.slice(st).search(_e)){var Bt,Ht=bt;for(_e.global||(_e=Zn(_e.source,Ti(yi.exec(_e))+"g")),_e.lastIndex=0;Bt=_e.exec(Ht);)var Jt=Bt.index;bt=bt.slice(0,Jt===n?st:Jt)}}else if(w.indexOf(ql(_e),st)!=st){var gn=bt.lastIndexOf(_e);gn>-1&&(bt=bt.slice(0,gn))}return bt+ie}function spe(w){return w=Ti(w),w&&Hn.test(w)?w.replace(Zt,Sp):w}var ape=ev(function(w,T,R){return w+(R?" ":"")+T.toUpperCase()}),r7=eN("toUpperCase");function XN(w,T,R){return w=Ti(w),T=R?n:T,T===n?$p(w)?at(w):Eo(w):w.match(T)||[]}var QN=Ro(function(w,T){try{return ke(w,n,T)}catch(R){return t7(R)?R:new zt(R)}}),lpe=Ah(function(w,T){return He(T,function(R){R=Cu(R),yd(w,R,QC(w[R],w))}),w});function cpe(w){var T=w==null?0:w.length,R=Vn();return w=T?pn(w,function(ie){if(typeof ie[1]!="function")throw new ko(s);return[R(ie[0]),ie[1]]}):[],Ro(function(ie){for(var _e=-1;++_e<T;){var Le=w[_e];if(ke(Le[0],this,ie))return ke(Le[1],this,ie)}})}function dpe(w){return hb($a(w,f))}function s7(w){return function(){return w}}function upe(w,T){return w==null||w!==w?T:w}var hpe=nN(),fpe=nN(!0);function ul(w){return w}function a7(w){return oe(typeof w=="function"?w:$a(w,f))}function mpe(w){return wn($a(w,f))}function ppe(w,T){return Kn(w,$a(T,f))}var gpe=Ro(function(w,T){return function(R){return Tc(R,w,T)}}),vpe=Ro(function(w,T){return function(R){return Tc(w,R,T)}});function l7(w,T,R){var ie=Ds(T),_e=Sc(T,ie);R==null&&!(ur(T)&&(_e.length||!ie.length))&&(R=T,T=w,w=this,_e=Sc(T,Ds(T)));var Le=!(ur(R)&&"chain"in R)||!!R.chain,Ge=xh(w);return He(_e,function(st){var bt=T[st];w[st]=bt,Ge&&(w.prototype[st]=function(){var Bt=this.__chain__;if(Le||Bt){var Ht=w(this.__wrapped__),Jt=Ht.__actions__=ll(this.__actions__);return Jt.push({func:bt,args:arguments,thisArg:w}),Ht.__chain__=Bt,Ht}return bt.apply(w,Qn([this.value()],arguments))})}),w}function _pe(){return oo._===this&&(oo._=W6),this}function c7(){}function ype(w){return w=wo(w),Ro(function(T){return Ec(T,w)})}var bpe=zC(pn),kpe=zC(Dt),wpe=zC(Ki);function eR(w){return WC(w)?md(Cu(w)):Xde(w)}function $pe(w){return function(T){return w==null?n:Ih(w,T)}}var Cpe=iN(),Spe=iN(!0);function d7(){return[]}function u7(){return!1}function Tpe(){return{}}function Epe(){return""}function Ipe(){return!0}function Ppe(w,T){if(w=wo(w),w<1||w>se)return[];var R=ee,ie=dr(w,ee);T=Vn(T),w-=ee;for(var _e=wh(ie,T);++R<w;)T(R);return _e}function Ape(w){return ho(w)?pn(w,Cu):Yl(w)?[w]:ll(bN(Ti(w)))}function Dpe(w){var T=++q6;return Ti(w)+T}var xpe=Mk(function(w,T){return w+T},0),Ope=UC("ceil"),Lpe=Mk(function(w,T){return w/T},1),Mpe=UC("floor");function Npe(w){return w&&w.length?Xg(w,ul,pb):n}function Rpe(w,T){return w&&w.length?Xg(w,Vn(T,2),pb):n}function jpe(w){return Zr(w,ul)}function Fpe(w,T){return Zr(w,Vn(T,2))}function zpe(w){return w&&w.length?Xg(w,ul,ot):n}function Upe(w,T){return w&&w.length?Xg(w,Vn(T,2),ot):n}var Bpe=Mk(function(w,T){return w*T},1),Hpe=UC("round"),Vpe=Mk(function(w,T){return w-T},0);function qpe(w){return w&&w.length?Is(w,ul):0}function Ype(w,T){return w&&w.length?Is(w,Vn(T,2)):0}return Se.after=mfe,Se.ary=DN,Se.assign=tme,Se.assignIn=qN,Se.assignInWith=Gk,Se.assignWith=nme,Se.at=ome,Se.before=xN,Se.bind=QC,Se.bindAll=lpe,Se.bindKey=ON,Se.castArray=Tfe,Se.chain=IN,Se.chunk=Mue,Se.compact=Nue,Se.concat=Rue,Se.cond=cpe,Se.conforms=dpe,Se.constant=s7,Se.countBy=qhe,Se.create=ime,Se.curry=LN,Se.curryRight=MN,Se.debounce=NN,Se.defaults=rme,Se.defaultsDeep=sme,Se.defer=pfe,Se.delay=gfe,Se.difference=jue,Se.differenceBy=Fue,Se.differenceWith=zue,Se.drop=Uue,Se.dropRight=Bue,Se.dropRightWhile=Hue,Se.dropWhile=Vue,Se.fill=que,Se.filter=Whe,Se.flatMap=Khe,Se.flatMapDeep=Jhe,Se.flatMapDepth=Xhe,Se.flatten=CN,Se.flattenDeep=Yue,Se.flattenDepth=Wue,Se.flip=vfe,Se.flow=hpe,Se.flowRight=fpe,Se.fromPairs=Gue,Se.functions=fme,Se.functionsIn=mme,Se.groupBy=Qhe,Se.initial=Kue,Se.intersection=Jue,Se.intersectionBy=Xue,Se.intersectionWith=Que,Se.invert=gme,Se.invertBy=vme,Se.invokeMap=tfe,Se.iteratee=a7,Se.keyBy=nfe,Se.keys=Ds,Se.keysIn=dl,Se.map=Bk,Se.mapKeys=yme,Se.mapValues=bme,Se.matches=mpe,Se.matchesProperty=ppe,Se.memoize=Vk,Se.merge=kme,Se.mergeWith=YN,Se.method=gpe,Se.methodOf=vpe,Se.mixin=l7,Se.negate=qk,Se.nthArg=ype,Se.omit=wme,Se.omitBy=$me,Se.once=_fe,Se.orderBy=ofe,Se.over=bpe,Se.overArgs=yfe,Se.overEvery=kpe,Se.overSome=wpe,Se.partial=e7,Se.partialRight=RN,Se.partition=ife,Se.pick=Cme,Se.pickBy=WN,Se.property=eR,Se.propertyOf=$pe,Se.pull=ohe,Se.pullAll=TN,Se.pullAllBy=ihe,Se.pullAllWith=rhe,Se.pullAt=she,Se.range=Cpe,Se.rangeRight=Spe,Se.rearg=bfe,Se.reject=afe,Se.remove=ahe,Se.rest=kfe,Se.reverse=JC,Se.sampleSize=cfe,Se.set=Tme,Se.setWith=Eme,Se.shuffle=dfe,Se.slice=lhe,Se.sortBy=ffe,Se.sortedUniq=phe,Se.sortedUniqBy=ghe,Se.split=Kme,Se.spread=wfe,Se.tail=vhe,Se.take=_he,Se.takeRight=yhe,Se.takeRightWhile=bhe,Se.takeWhile=khe,Se.tap=Nhe,Se.throttle=$fe,Se.thru=Uk,Se.toArray=BN,Se.toPairs=GN,Se.toPairsIn=ZN,Se.toPath=Ape,Se.toPlainObject=VN,Se.transform=Ime,Se.unary=Cfe,Se.union=whe,Se.unionBy=$he,Se.unionWith=Che,Se.uniq=She,Se.uniqBy=The,Se.uniqWith=Ehe,Se.unset=Pme,Se.unzip=XC,Se.unzipWith=EN,Se.update=Ame,Se.updateWith=Dme,Se.values=ov,Se.valuesIn=xme,Se.without=Ihe,Se.words=XN,Se.wrap=Sfe,Se.xor=Phe,Se.xorBy=Ahe,Se.xorWith=Dhe,Se.zip=xhe,Se.zipObject=Ohe,Se.zipObjectDeep=Lhe,Se.zipWith=Mhe,Se.entries=GN,Se.entriesIn=ZN,Se.extend=qN,Se.extendWith=Gk,l7(Se,Se),Se.add=xpe,Se.attempt=QN,Se.camelCase=Nme,Se.capitalize=KN,Se.ceil=Ope,Se.clamp=Ome,Se.clone=Efe,Se.cloneDeep=Pfe,Se.cloneDeepWith=Afe,Se.cloneWith=Ife,Se.conformsTo=Dfe,Se.deburr=JN,Se.defaultTo=upe,Se.divide=Lpe,Se.endsWith=Rme,Se.eq=wd,Se.escape=jme,Se.escapeRegExp=Fme,Se.every=Yhe,Se.find=Ghe,Se.findIndex=wN,Se.findKey=ame,Se.findLast=Zhe,Se.findLastIndex=$N,Se.findLastKey=lme,Se.floor=Mpe,Se.forEach=PN,Se.forEachRight=AN,Se.forIn=cme,Se.forInRight=dme,Se.forOwn=ume,Se.forOwnRight=hme,Se.get=o7,Se.gt=xfe,Se.gte=Ofe,Se.has=pme,Se.hasIn=i7,Se.head=SN,Se.identity=ul,Se.includes=efe,Se.indexOf=Zue,Se.inRange=Lme,Se.invoke=_me,Se.isArguments=jp,Se.isArray=ho,Se.isArrayBuffer=Lfe,Se.isArrayLike=cl,Se.isArrayLikeObject=Nr,Se.isBoolean=Mfe,Se.isBuffer=Jf,Se.isDate=Nfe,Se.isElement=Rfe,Se.isEmpty=jfe,Se.isEqual=Ffe,Se.isEqualWith=zfe,Se.isError=t7,Se.isFinite=Ufe,Se.isFunction=xh,Se.isInteger=jN,Se.isLength=Yk,Se.isMap=FN,Se.isMatch=Bfe,Se.isMatchWith=Hfe,Se.isNaN=Vfe,Se.isNative=qfe,Se.isNil=Wfe,Se.isNull=Yfe,Se.isNumber=zN,Se.isObject=ur,Se.isObjectLike=br,Se.isPlainObject=wb,Se.isRegExp=n7,Se.isSafeInteger=Gfe,Se.isSet=UN,Se.isString=Wk,Se.isSymbol=Yl,Se.isTypedArray=nv,Se.isUndefined=Zfe,Se.isWeakMap=Kfe,Se.isWeakSet=Jfe,Se.join=ehe,Se.kebabCase=zme,Se.last=Pc,Se.lastIndexOf=the,Se.lowerCase=Ume,Se.lowerFirst=Bme,Se.lt=Xfe,Se.lte=Qfe,Se.max=Npe,Se.maxBy=Rpe,Se.mean=jpe,Se.meanBy=Fpe,Se.min=zpe,Se.minBy=Upe,Se.stubArray=d7,Se.stubFalse=u7,Se.stubObject=Tpe,Se.stubString=Epe,Se.stubTrue=Ipe,Se.multiply=Bpe,Se.nth=nhe,Se.noConflict=_pe,Se.noop=c7,Se.now=Hk,Se.pad=Hme,Se.padEnd=Vme,Se.padStart=qme,Se.parseInt=Yme,Se.random=Mme,Se.reduce=rfe,Se.reduceRight=sfe,Se.repeat=Wme,Se.replace=Gme,Se.result=Sme,Se.round=Hpe,Se.runInContext=Re,Se.sample=lfe,Se.size=ufe,Se.snakeCase=Zme,Se.some=hfe,Se.sortedIndex=che,Se.sortedIndexBy=dhe,Se.sortedIndexOf=uhe,Se.sortedLastIndex=hhe,Se.sortedLastIndexBy=fhe,Se.sortedLastIndexOf=mhe,Se.startCase=Jme,Se.startsWith=Xme,Se.subtract=Vpe,Se.sum=qpe,Se.sumBy=Ype,Se.template=Qme,Se.times=Ppe,Se.toFinite=Oh,Se.toInteger=wo,Se.toLength=HN,Se.toLower=epe,Se.toNumber=Ac,Se.toSafeInteger=eme,Se.toString=Ti,Se.toUpper=tpe,Se.trim=npe,Se.trimEnd=ope,Se.trimStart=ipe,Se.truncate=rpe,Se.unescape=spe,Se.uniqueId=Dpe,Se.upperCase=ape,Se.upperFirst=r7,Se.each=PN,Se.eachRight=AN,Se.first=SN,l7(Se,function(){var w={};return Cc(Se,function(T,R){eo.call(Se.prototype,R)||(w[R]=T)}),w}(),{chain:!1}),Se.VERSION=o,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(w){Se[w].placeholder=Se}),He(["drop","take"],function(w,T){Po.prototype[w]=function(R){R=R===n?1:yr(wo(R),0);var ie=this.__filtered__&&!T?new Po(this):this.clone();return ie.__filtered__?ie.__takeCount__=dr(R,ie.__takeCount__):ie.__views__.push({size:dr(R,ee),type:w+(ie.__dir__<0?"Right":"")}),ie},Po.prototype[w+"Right"]=function(R){return this.reverse()[w](R).reverse()}}),He(["filter","map","takeWhile"],function(w,T){var R=T+1,ie=R==Q||R==Y;Po.prototype[w]=function(_e){var Le=this.clone();return Le.__iteratees__.push({iteratee:Vn(_e,3),type:R}),Le.__filtered__=Le.__filtered__||ie,Le}}),He(["head","last"],function(w,T){var R="take"+(T?"Right":"");Po.prototype[w]=function(){return this[R](1).value()[0]}}),He(["initial","tail"],function(w,T){var R="drop"+(T?"":"Right");Po.prototype[w]=function(){return this.__filtered__?new Po(this):this[R](1)}}),Po.prototype.compact=function(){return this.filter(ul)},Po.prototype.find=function(w){return this.filter(w).head()},Po.prototype.findLast=function(w){return this.reverse().find(w)},Po.prototype.invokeMap=Ro(function(w,T){return typeof w=="function"?new Po(this):this.map(function(R){return Tc(R,w,T)})}),Po.prototype.reject=function(w){return this.filter(qk(Vn(w)))},Po.prototype.slice=function(w,T){w=wo(w);var R=this;return R.__filtered__&&(w>0||T<0)?new Po(R):(w<0?R=R.takeRight(-w):w&&(R=R.drop(w)),T!==n&&(T=wo(T),R=T<0?R.dropRight(-T):R.take(T-w)),R)},Po.prototype.takeRightWhile=function(w){return this.reverse().takeWhile(w).reverse()},Po.prototype.toArray=function(){return this.take(ee)},Cc(Po.prototype,function(w,T){var R=/^(?:filter|find|map|reject)|While$/.test(T),ie=/^(?:head|last)$/.test(T),_e=Se[ie?"take"+(T=="last"?"Right":""):T],Le=ie||/^find/.test(T);_e&&(Se.prototype[T]=function(){var Ge=this.__wrapped__,st=ie?[1]:arguments,bt=Ge instanceof Po,Bt=st[0],Ht=bt||ho(Ge),Jt=function(Ho){var ri=_e.apply(Se,Qn([Ho],st));return ie&&gn?ri[0]:ri};Ht&&R&&typeof Bt=="function"&&Bt.length!=1&&(bt=Ht=!1);var gn=this.__chain__,Dn=!!this.__actions__.length,qn=Le&&!gn,Do=bt&&!Dn;if(!Le&&Ht){Ge=Do?Ge:new Po(this);var Yn=w.apply(Ge,st);return Yn.__actions__.push({func:Uk,args:[Jt],thisArg:n}),new sl(Yn,gn)}return qn&&Do?w.apply(this,st):(Yn=this.thru(Jt),qn?ie?Yn.value()[0]:Yn.value():Yn)})}),He(["pop","push","shift","sort","splice","unshift"],function(w){var T=_r[w],R=/^(?:push|sort|unshift)$/.test(w)?"tap":"thru",ie=/^(?:pop|shift)$/.test(w);Se.prototype[w]=function(){var _e=arguments;if(ie&&!this.__chain__){var Le=this.value();return T.apply(ho(Le)?Le:[],_e)}return this[R](function(Ge){return T.apply(ho(Ge)?Ge:[],_e)})}}),Cc(Po.prototype,function(w,T){var R=Se[T];if(R){var ie=R.name+"";eo.call(qf,ie)||(qf[ie]=[]),qf[ie].push({name:T,func:R})}}),qf[Lk(n,$).name]=[{name:"wrapper",func:n}],Po.prototype.clone=iC,Po.prototype.reverse=rC,Po.prototype.value=sC,Se.prototype.at=Rhe,Se.prototype.chain=jhe,Se.prototype.commit=Fhe,Se.prototype.next=zhe,Se.prototype.plant=Bhe,Se.prototype.reverse=Hhe,Se.prototype.toJSON=Se.prototype.valueOf=Se.prototype.value=Vhe,Se.prototype.first=Se.prototype.head,Tp&&(Se.prototype[Tp]=Uhe),Se},Tt=Ct();bi?((bi.exports=Tt)._=Tt,No._=Tt):oo._=Tt}).call(bo)})(S4,S4.exports);var rW=S4.exports;const Wpe=Ol(rW);var Fa="top",sc="bottom",ac="right",za="left",h$="auto",cy=[Fa,sc,ac,za],R1="start",T_="end",sW="clippingParents",dA="viewport",Iv="popper",aW="reference",oE=cy.reduce(function(e,t){return e.concat([t+"-"+R1,t+"-"+T_])},[]),uA=[].concat(cy,[h$]).reduce(function(e,t){return e.concat([t,t+"-"+R1,t+"-"+T_])},[]),lW="beforeRead",cW="read",dW="afterRead",uW="beforeMain",hW="main",fW="afterMain",mW="beforeWrite",pW="write",gW="afterWrite",vW=[lW,cW,dW,uW,hW,fW,mW,pW,gW];function eh(e){return e?(e.nodeName||"").toLowerCase():null}function lc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function j1(e){var t=lc(e).Element;return e instanceof t||e instanceof Element}function Gc(e){var t=lc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hA(e){if(typeof ShadowRoot>"u")return!1;var t=lc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Gpe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},i=t.attributes[n]||{},r=t.elements[n];!Gc(r)||!eh(r)||(Object.assign(r.style,o),Object.keys(i).forEach(function(s){var a=i[s];a===!1?r.removeAttribute(s):r.setAttribute(s,a===!0?"":a)}))})}function Zpe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var i=t.elements[o],r=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),a=s.reduce(function(l,d){return l[d]="",l},{});!Gc(i)||!eh(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(l){i.removeAttribute(l)}))})}}const fA={name:"applyStyles",enabled:!0,phase:"write",fn:Gpe,effect:Zpe,requires:["computeStyles"]};function Hu(e){return e.split("-")[0]}var k1=Math.max,T4=Math.min,E_=Math.round;function iE(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function _W(){return!/^((?!chrome|android).)*safari/i.test(iE())}function I_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),i=1,r=1;t&&Gc(e)&&(i=e.offsetWidth>0&&E_(o.width)/e.offsetWidth||1,r=e.offsetHeight>0&&E_(o.height)/e.offsetHeight||1);var s=j1(e)?lc(e):window,a=s.visualViewport,l=!_W()&&n,d=(o.left+(l&&a?a.offsetLeft:0))/i,u=(o.top+(l&&a?a.offsetTop:0))/r,f=o.width/i,p=o.height/r;return{width:f,height:p,top:u,right:d+f,bottom:u+p,left:d,x:d,y:u}}function mA(e){var t=I_(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function yW(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hA(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function _f(e){return lc(e).getComputedStyle(e)}function Kpe(e){return["table","td","th"].indexOf(eh(e))>=0}function rp(e){return((j1(e)?e.ownerDocument:e.document)||window.document).documentElement}function f$(e){return eh(e)==="html"?e:e.assignedSlot||e.parentNode||(hA(e)?e.host:null)||rp(e)}function nR(e){return!Gc(e)||_f(e).position==="fixed"?null:e.offsetParent}function Jpe(e){var t=/firefox/i.test(iE()),n=/Trident/i.test(iE());if(n&&Gc(e)){var o=_f(e);if(o.position==="fixed")return null}var i=f$(e);for(hA(i)&&(i=i.host);Gc(i)&&["html","body"].indexOf(eh(i))<0;){var r=_f(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function K2(e){for(var t=lc(e),n=nR(e);n&&Kpe(n)&&_f(n).position==="static";)n=nR(n);return n&&(eh(n)==="html"||eh(n)==="body"&&_f(n).position==="static")?t:n||Jpe(e)||t}function pA(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function w0(e,t,n){return k1(e,T4(t,n))}function Xpe(e,t,n){var o=w0(e,t,n);return o>n?n:o}function bW(){return{top:0,right:0,bottom:0,left:0}}function kW(e){return Object.assign({},bW(),e)}function wW(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var Qpe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,kW(typeof t!="number"?t:wW(t,cy))};function e1e(e){var t,n=e.state,o=e.name,i=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Hu(n.placement),l=pA(a),d=[za,ac].indexOf(a)>=0,u=d?"height":"width";if(!(!r||!s)){var f=Qpe(i.padding,n),p=mA(r),v=l==="y"?Fa:za,_=l==="y"?sc:ac,k=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],C=s[l]-n.rects.reference[l],$=K2(r),E=$?l==="y"?$.clientHeight||0:$.clientWidth||0:0,P=k/2-C/2,I=f[v],O=E-p[u]-f[_],L=E/2-p[u]/2+P,S=w0(I,L,O),j=l;n.modifiersData[o]=(t={},t[j]=S,t.centerOffset=S-L,t)}}function t1e(e){var t=e.state,n=e.options,o=n.element,i=o===void 0?"[data-popper-arrow]":o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||yW(t.elements.popper,i)&&(t.elements.arrow=i))}const $W={name:"arrow",enabled:!0,phase:"main",fn:e1e,effect:t1e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function P_(e){return e.split("-")[1]}var n1e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function o1e(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:E_(n*i)/i||0,y:E_(o*i)/i||0}}function oR(e){var t,n=e.popper,o=e.popperRect,i=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=s.x,v=p===void 0?0:p,_=s.y,k=_===void 0?0:_,C=typeof u=="function"?u({x:v,y:k}):{x:v,y:k};v=C.x,k=C.y;var $=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),P=za,I=Fa,O=window;if(d){var L=K2(n),S="clientHeight",j="clientWidth";if(L===lc(n)&&(L=rp(n),_f(L).position!=="static"&&a==="absolute"&&(S="scrollHeight",j="scrollWidth")),L=L,i===Fa||(i===za||i===ac)&&r===T_){I=sc;var M=f&&L===O&&O.visualViewport?O.visualViewport.height:L[S];k-=M-o.height,k*=l?1:-1}if(i===za||(i===Fa||i===sc)&&r===T_){P=ac;var q=f&&L===O&&O.visualViewport?O.visualViewport.width:L[j];v-=q-o.width,v*=l?1:-1}}var B=Object.assign({position:a},d&&n1e),V=u===!0?o1e({x:v,y:k},lc(n)):{x:v,y:k};if(v=V.x,k=V.y,l){var G;return Object.assign({},B,(G={},G[I]=E?"0":"",G[P]=$?"0":"",G.transform=(O.devicePixelRatio||1)<=1?"translate("+v+"px, "+k+"px)":"translate3d("+v+"px, "+k+"px, 0)",G))}return Object.assign({},B,(t={},t[I]=E?k+"px":"",t[P]=$?v+"px":"",t.transform="",t))}function i1e(e){var t=e.state,n=e.options,o=n.gpuAcceleration,i=o===void 0?!0:o,r=n.adaptive,s=r===void 0?!0:r,a=n.roundOffsets,l=a===void 0?!0:a,d={placement:Hu(t.placement),variation:P_(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,oR(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,oR(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:i1e,data:{}};var Zk={passive:!0};function r1e(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,r=i===void 0?!0:i,s=o.resize,a=s===void 0?!0:s,l=lc(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(u){u.addEventListener("scroll",n.update,Zk)}),a&&l.addEventListener("resize",n.update,Zk),function(){r&&d.forEach(function(u){u.removeEventListener("scroll",n.update,Zk)}),a&&l.removeEventListener("resize",n.update,Zk)}}const vA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:r1e,data:{}};var s1e={left:"right",right:"left",bottom:"top",top:"bottom"};function E8(e){return e.replace(/left|right|bottom|top/g,function(t){return s1e[t]})}var a1e={start:"end",end:"start"};function iR(e){return e.replace(/start|end/g,function(t){return a1e[t]})}function _A(e){var t=lc(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function yA(e){return I_(rp(e)).left+_A(e).scrollLeft}function l1e(e,t){var n=lc(e),o=rp(e),i=n.visualViewport,r=o.clientWidth,s=o.clientHeight,a=0,l=0;if(i){r=i.width,s=i.height;var d=_W();(d||!d&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:a+yA(e),y:l}}function c1e(e){var t,n=rp(e),o=_A(e),i=(t=e.ownerDocument)==null?void 0:t.body,r=k1(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=k1(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-o.scrollLeft+yA(e),l=-o.scrollTop;return _f(i||n).direction==="rtl"&&(a+=k1(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}function bA(e){var t=_f(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function CW(e){return["html","body","#document"].indexOf(eh(e))>=0?e.ownerDocument.body:Gc(e)&&bA(e)?e:CW(f$(e))}function $0(e,t){var n;t===void 0&&(t=[]);var o=CW(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),r=lc(o),s=i?[r].concat(r.visualViewport||[],bA(o)?o:[]):o,a=t.concat(s);return i?a:a.concat($0(f$(s)))}function rE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function d1e(e,t){var n=I_(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function rR(e,t,n){return t===dA?rE(l1e(e,n)):j1(t)?d1e(t,n):rE(c1e(rp(e)))}function u1e(e){var t=$0(f$(e)),n=["absolute","fixed"].indexOf(_f(e).position)>=0,o=n&&Gc(e)?K2(e):e;return j1(o)?t.filter(function(i){return j1(i)&&yW(i,o)&&eh(i)!=="body"}):[]}function h1e(e,t,n,o){var i=t==="clippingParents"?u1e(e):[].concat(t),r=[].concat(i,[n]),s=r[0],a=r.reduce(function(l,d){var u=rR(e,d,o);return l.top=k1(u.top,l.top),l.right=T4(u.right,l.right),l.bottom=T4(u.bottom,l.bottom),l.left=k1(u.left,l.left),l},rR(e,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function SW(e){var t=e.reference,n=e.element,o=e.placement,i=o?Hu(o):null,r=o?P_(o):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Fa:l={x:s,y:t.y-n.height};break;case sc:l={x:s,y:t.y+t.height};break;case ac:l={x:t.x+t.width,y:a};break;case za:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var d=i?pA(i):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case R1:l[d]=l[d]-(t[u]/2-n[u]/2);break;case T_:l[d]=l[d]+(t[u]/2-n[u]/2);break}}return l}function A_(e,t){t===void 0&&(t={});var n=t,o=n.placement,i=o===void 0?e.placement:o,r=n.strategy,s=r===void 0?e.strategy:r,a=n.boundary,l=a===void 0?sW:a,d=n.rootBoundary,u=d===void 0?dA:d,f=n.elementContext,p=f===void 0?Iv:f,v=n.altBoundary,_=v===void 0?!1:v,k=n.padding,C=k===void 0?0:k,$=kW(typeof C!="number"?C:wW(C,cy)),E=p===Iv?aW:Iv,P=e.rects.popper,I=e.elements[_?E:p],O=h1e(j1(I)?I:I.contextElement||rp(e.elements.popper),l,u,s),L=I_(e.elements.reference),S=SW({reference:L,element:P,strategy:"absolute",placement:i}),j=rE(Object.assign({},P,S)),M=p===Iv?j:L,q={top:O.top-M.top+$.top,bottom:M.bottom-O.bottom+$.bottom,left:O.left-M.left+$.left,right:M.right-O.right+$.right},B=e.modifiersData.offset;if(p===Iv&&B){var V=B[i];Object.keys(q).forEach(function(G){var Q=[ac,sc].indexOf(G)>=0?1:-1,X=[Fa,sc].indexOf(G)>=0?"y":"x";q[G]+=V[X]*Q})}return q}function f1e(e,t){t===void 0&&(t={});var n=t,o=n.placement,i=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,d=l===void 0?uA:l,u=P_(o),f=u?a?oE:oE.filter(function(_){return P_(_)===u}):cy,p=f.filter(function(_){return d.indexOf(_)>=0});p.length===0&&(p=f);var v=p.reduce(function(_,k){return _[k]=A_(e,{placement:k,boundary:i,rootBoundary:r,padding:s})[Hu(k)],_},{});return Object.keys(v).sort(function(_,k){return v[_]-v[k]})}function m1e(e){if(Hu(e)===h$)return[];var t=E8(e);return[iR(e),t,iR(t)]}function p1e(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,r=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,v=n.flipVariations,_=v===void 0?!0:v,k=n.allowedAutoPlacements,C=t.options.placement,$=Hu(C),E=$===C,P=l||(E||!_?[E8(C)]:m1e(C)),I=[C].concat(P).reduce(function($e,be){return $e.concat(Hu(be)===h$?f1e(t,{placement:be,boundary:u,rootBoundary:f,padding:d,flipVariations:_,allowedAutoPlacements:k}):be)},[]),O=t.rects.reference,L=t.rects.popper,S=new Map,j=!0,M=I[0],q=0;q<I.length;q++){var B=I[q],V=Hu(B),G=P_(B)===R1,Q=[Fa,sc].indexOf(V)>=0,X=Q?"width":"height",Y=A_(t,{placement:B,boundary:u,rootBoundary:f,altBoundary:p,padding:d}),Z=Q?G?ac:za:G?sc:Fa;O[X]>L[X]&&(Z=E8(Z));var se=E8(Z),ce=[];if(r&&ce.push(Y[V]<=0),a&&ce.push(Y[Z]<=0,Y[se]<=0),ce.every(function($e){return $e})){M=B,j=!1;break}S.set(B,ce)}if(j)for(var te=_?3:1,ee=function(be){var me=I.find(function(fe){var Ae=S.get(fe);if(Ae)return Ae.slice(0,be).every(function(je){return je})});if(me)return M=me,"break"},ae=te;ae>0;ae--){var de=ee(ae);if(de==="break")break}t.placement!==M&&(t.modifiersData[o]._skip=!0,t.placement=M,t.reset=!0)}}const TW={name:"flip",enabled:!0,phase:"main",fn:p1e,requiresIfExists:["offset"],data:{_skip:!1}};function sR(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function aR(e){return[Fa,ac,sc,za].some(function(t){return e[t]>=0})}function g1e(e){var t=e.state,n=e.name,o=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,s=A_(t,{elementContext:"reference"}),a=A_(t,{altBoundary:!0}),l=sR(s,o),d=sR(a,i,r),u=aR(l),f=aR(d);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const EW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:g1e};function v1e(e,t,n){var o=Hu(e),i=[za,Fa].indexOf(o)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*i,[za,ac].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}function _1e(e){var t=e.state,n=e.options,o=e.name,i=n.offset,r=i===void 0?[0,0]:i,s=uA.reduce(function(u,f){return u[f]=v1e(f,t.rects,r),u},{}),a=s[t.placement],l=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=s}const IW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_1e};function y1e(e){var t=e.state,n=e.name;t.modifiersData[n]=SW({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const kA={name:"popperOffsets",enabled:!0,phase:"read",fn:y1e,data:{}};function b1e(e){return e==="x"?"y":"x"}function k1e(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,r=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,v=p===void 0?!0:p,_=n.tetherOffset,k=_===void 0?0:_,C=A_(t,{boundary:l,rootBoundary:d,padding:f,altBoundary:u}),$=Hu(t.placement),E=P_(t.placement),P=!E,I=pA($),O=b1e(I),L=t.modifiersData.popperOffsets,S=t.rects.reference,j=t.rects.popper,M=typeof k=="function"?k(Object.assign({},t.rects,{placement:t.placement})):k,q=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(L){if(r){var G,Q=I==="y"?Fa:za,X=I==="y"?sc:ac,Y=I==="y"?"height":"width",Z=L[I],se=Z+C[Q],ce=Z-C[X],te=v?-j[Y]/2:0,ee=E===R1?S[Y]:j[Y],ae=E===R1?-j[Y]:-S[Y],de=t.elements.arrow,$e=v&&de?mA(de):{width:0,height:0},be=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bW(),me=be[Q],fe=be[X],Ae=w0(0,S[Y],$e[Y]),je=P?S[Y]/2-te-Ae-me-q.mainAxis:ee-Ae-me-q.mainAxis,Ye=P?-S[Y]/2+te+Ae+fe+q.mainAxis:ae+Ae+fe+q.mainAxis,_t=t.elements.arrow&&K2(t.elements.arrow),xt=_t?I==="y"?_t.clientTop||0:_t.clientLeft||0:0,we=(G=B==null?void 0:B[I])!=null?G:0,ve=Z+je-we-xt,qe=Z+Ye-we,$t=w0(v?T4(se,ve):se,Z,v?k1(ce,qe):ce);L[I]=$t,V[I]=$t-Z}if(a){var ut,Ve=I==="x"?Fa:za,tt=I==="x"?sc:ac,ge=L[O],ye=O==="y"?"height":"width",Te=ge+C[Ve],gt=ge-C[tt],yt=[Fa,za].indexOf($)!==-1,Xe=(ut=B==null?void 0:B[O])!=null?ut:0,Ze=yt?Te:ge-S[ye]-j[ye]-Xe+q.altAxis,vt=yt?ge+S[ye]+j[ye]-Xe-q.altAxis:gt,Ut=v&&yt?Xpe(Ze,ge,vt):w0(v?Ze:Te,ge,v?vt:gt);L[O]=Ut,V[O]=Ut-ge}t.modifiersData[o]=V}}const PW={name:"preventOverflow",enabled:!0,phase:"main",fn:k1e,requiresIfExists:["offset"]};function w1e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $1e(e){return e===lc(e)||!Gc(e)?_A(e):w1e(e)}function C1e(e){var t=e.getBoundingClientRect(),n=E_(t.width)/e.offsetWidth||1,o=E_(t.height)/e.offsetHeight||1;return n!==1||o!==1}function S1e(e,t,n){n===void 0&&(n=!1);var o=Gc(t),i=Gc(t)&&C1e(t),r=rp(t),s=I_(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((eh(t)!=="body"||bA(r))&&(a=$1e(t)),Gc(t)?(l=I_(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=yA(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function T1e(e){var t=new Map,n=new Set,o=[];e.forEach(function(r){t.set(r.name,r)});function i(r){n.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),o.push(r)}return e.forEach(function(r){n.has(r.name)||i(r)}),o}function E1e(e){var t=T1e(e);return vW.reduce(function(n,o){return n.concat(t.filter(function(i){return i.phase===o}))},[])}function I1e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function P1e(e){var t=e.reduce(function(n,o){var i=n[o.name];return n[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var lR={placement:"bottom",modifiers:[],strategy:"absolute"};function cR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function m$(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,i=t.defaultOptions,r=i===void 0?lR:i;return function(a,l,d){d===void 0&&(d=r);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},lR,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],p=!1,v={state:u,setOptions:function($){var E=typeof $=="function"?$(u.options):$;k(),u.options=Object.assign({},r,u.options,E),u.scrollParents={reference:j1(a)?$0(a):a.contextElement?$0(a.contextElement):[],popper:$0(l)};var P=E1e(P1e([].concat(o,u.options.modifiers)));return u.orderedModifiers=P.filter(function(I){return I.enabled}),_(),v.update()},forceUpdate:function(){if(!p){var $=u.elements,E=$.reference,P=$.popper;if(cR(E,P)){u.rects={reference:S1e(E,K2(P),u.options.strategy==="fixed"),popper:mA(P)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(q){return u.modifiersData[q.name]=Object.assign({},q.data)});for(var I=0;I<u.orderedModifiers.length;I++){if(u.reset===!0){u.reset=!1,I=-1;continue}var O=u.orderedModifiers[I],L=O.fn,S=O.options,j=S===void 0?{}:S,M=O.name;typeof L=="function"&&(u=L({state:u,options:j,name:M,instance:v})||u)}}}},update:I1e(function(){return new Promise(function(C){v.forceUpdate(),C(u)})}),destroy:function(){k(),p=!0}};if(!cR(a,l))return v;v.setOptions(d).then(function(C){!p&&d.onFirstUpdate&&d.onFirstUpdate(C)});function _(){u.orderedModifiers.forEach(function(C){var $=C.name,E=C.options,P=E===void 0?{}:E,I=C.effect;if(typeof I=="function"){var O=I({state:u,name:$,instance:v,options:P}),L=function(){};f.push(O||L)}})}function k(){f.forEach(function(C){return C()}),f=[]}return v}}var A1e=m$(),D1e=[vA,kA,gA,fA],x1e=m$({defaultModifiers:D1e}),O1e=[vA,kA,gA,fA,IW,TW,PW,$W,EW],p$=m$({defaultModifiers:O1e});const AW=Object.freeze(Object.defineProperty({__proto__:null,afterMain:fW,afterRead:dW,afterWrite:gW,applyStyles:fA,arrow:$W,auto:h$,basePlacements:cy,beforeMain:uW,beforeRead:lW,beforeWrite:mW,bottom:sc,clippingParents:sW,computeStyles:gA,createPopper:p$,createPopperBase:A1e,createPopperLite:x1e,detectOverflow:A_,end:T_,eventListeners:vA,flip:TW,hide:EW,left:za,main:hW,modifierPhases:vW,offset:IW,placements:uA,popper:Iv,popperGenerator:m$,popperOffsets:kA,preventOverflow:PW,read:cW,reference:aW,right:ac,start:R1,top:Fa,variationPlacements:oE,viewport:dA,write:pW},Symbol.toStringTag,{value:"Module"}));/*! * Bootstrap v5.3.3 (https://getbootstrap.com/) * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */const Xf=new Map,h7={set(e,t,n){Xf.has(e)||Xf.set(e,new Map);const o=Xf.get(e);if(!o.has(t)&&o.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`);return}o.set(t,n)},get(e,t){return Xf.has(e)&&Xf.get(e).get(t)||null},remove(e,t){if(!Xf.has(e))return;const n=Xf.get(e);n.delete(t),n.size===0&&Xf.delete(e)}},L1e=1e6,M1e=1e3,sE="transitionend",DW=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,n)=>`#${CSS.escape(n)}`)),e),N1e=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),R1e=e=>{do e+=Math.floor(Math.random()*L1e);while(document.getElementById(e));return e},j1e=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const o=Number.parseFloat(t),i=Number.parseFloat(n);return!o&&!i?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*M1e)},xW=e=>{e.dispatchEvent(new Event(sE))},lf=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),Km=e=>lf(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(DW(e)):null,dy=e=>{if(!lf(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const o=e.closest("summary");if(o&&o.parentNode!==n||o===null)return!1}return t},Jm=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",OW=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?OW(e.parentNode):null},E4=()=>{},J2=e=>{e.offsetHeight},LW=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,f7=[],F1e=e=>{document.readyState==="loading"?(f7.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of f7)t()}),f7.push(e)):e()},ed=()=>document.documentElement.dir==="rtl",rd=e=>{F1e(()=>{const t=LW();if(t){const n=e.NAME,o=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=o,e.jQueryInterface)}})},Tl=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,MW=(e,t,n=!0)=>{if(!n){Tl(e);return}const o=5,i=j1e(t)+o;let r=!1;const s=({target:a})=>{a===t&&(r=!0,t.removeEventListener(sE,s),Tl(e))};t.addEventListener(sE,s),setTimeout(()=>{r||xW(t)},i)},wA=(e,t,n,o)=>{const i=e.length;let r=e.indexOf(t);return r===-1?!n&&o?e[i-1]:e[0]:(r+=n?1:-1,o&&(r=(r+i)%i),e[Math.max(0,Math.min(r,i-1))])},z1e=/[^.]*(?=\..*)\.|.*/,U1e=/\..*/,B1e=/::\d+$/,m7={};let dR=1;const NW={mouseenter:"mouseover",mouseleave:"mouseout"},H1e=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function RW(e,t){return t&&`${t}::${dR++}`||e.uidEvent||dR++}function jW(e){const t=RW(e);return e.uidEvent=t,m7[t]=m7[t]||{},m7[t]}function V1e(e,t){return function n(o){return $A(o,{delegateTarget:e}),n.oneOff&&en.off(e,o.type,t),t.apply(e,[o])}}function q1e(e,t,n){return function o(i){const r=e.querySelectorAll(t);for(let{target:s}=i;s&&s!==this;s=s.parentNode)for(const a of r)if(a===s)return $A(i,{delegateTarget:s}),o.oneOff&&en.off(e,i.type,t,n),n.apply(s,[i])}}function FW(e,t,n=null){return Object.values(e).find(o=>o.callable===t&&o.delegationSelector===n)}function zW(e,t,n){const o=typeof t=="string",i=o?n:t||n;let r=UW(e);return H1e.has(r)||(r=e),[o,i,r]}function uR(e,t,n,o,i){if(typeof t!="string"||!e)return;let[r,s,a]=zW(t,n,o);t in NW&&(s=(_=>function(k){if(!k.relatedTarget||k.relatedTarget!==k.delegateTarget&&!k.delegateTarget.contains(k.relatedTarget))return _.call(this,k)})(s));const l=jW(e),d=l[a]||(l[a]={}),u=FW(d,s,r?n:null);if(u){u.oneOff=u.oneOff&&i;return}const f=RW(s,t.replace(z1e,"")),p=r?q1e(e,n,s):V1e(e,s);p.delegationSelector=r?n:null,p.callable=s,p.oneOff=i,p.uidEvent=f,d[f]=p,e.addEventListener(a,p,r)}function aE(e,t,n,o,i){const r=FW(t[n],o,i);r&&(e.removeEventListener(n,r,!!i),delete t[n][r.uidEvent])}function Y1e(e,t,n,o){const i=t[n]||{};for(const[r,s]of Object.entries(i))r.includes(o)&&aE(e,t,n,s.callable,s.delegationSelector)}function UW(e){return e=e.replace(U1e,""),NW[e]||e}const en={on(e,t,n,o){uR(e,t,n,o,!1)},one(e,t,n,o){uR(e,t,n,o,!0)},off(e,t,n,o){if(typeof t!="string"||!e)return;const[i,r,s]=zW(t,n,o),a=s!==t,l=jW(e),d=l[s]||{},u=t.startsWith(".");if(typeof r<"u"){if(!Object.keys(d).length)return;aE(e,l,s,r,i?n:null);return}if(u)for(const f of Object.keys(l))Y1e(e,l,f,t.slice(1));for(const[f,p]of Object.entries(d)){const v=f.replace(B1e,"");(!a||t.includes(v))&&aE(e,l,s,p.callable,p.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const o=LW(),i=UW(t),r=t!==i;let s=null,a=!0,l=!0,d=!1;r&&o&&(s=o.Event(t,n),o(e).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented());const u=$A(new Event(t,{bubbles:a,cancelable:!0}),n);return d&&u.preventDefault(),l&&e.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function $A(e,t={}){for(const[n,o]of Object.entries(t))try{e[n]=o}catch{Object.defineProperty(e,n,{configurable:!0,get(){return o}})}return e}function hR(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function p7(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const cf={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${p7(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${p7(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(o=>o.startsWith("bs")&&!o.startsWith("bsConfig"));for(const o of n){let i=o.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=hR(e.dataset[o])}return t},getDataAttribute(e,t){return hR(e.getAttribute(`data-bs-${p7(t)}`))}};class X2{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,n){const o=lf(n)?cf.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof o=="object"?o:{},...lf(n)?cf.getDataAttributes(n):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,n=this.constructor.DefaultType){for(const[o,i]of Object.entries(n)){const r=t[o],s=lf(r)?"element":N1e(r);if(!new RegExp(i).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${s}" but expected type "${i}".`)}}}const W1e="5.3.3";class su extends X2{constructor(t,n){super(),t=Km(t),t&&(this._element=t,this._config=this._getConfig(n),h7.set(this._element,this.constructor.DATA_KEY,this))}dispose(){h7.remove(this._element,this.constructor.DATA_KEY),en.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,n,o=!0){MW(t,n,o)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return h7.get(Km(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return W1e}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const g7=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&n!=="#"?n.trim():null}return t?t.split(",").map(n=>DW(n)).join(","):null},Un={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(n=>n.matches(t))},parents(e,t){const n=[];let o=e.parentNode.closest(t);for(;o;)n.push(o),o=o.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(n=>!Jm(n)&&dy(n))},getSelectorFromElement(e){const t=g7(e);return t&&Un.findOne(t)?t:null},getElementFromSelector(e){const t=g7(e);return t?Un.findOne(t):null},getMultipleElementsFromSelector(e){const t=g7(e);return t?Un.find(t):[]}},g$=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,o=e.NAME;en.on(document,n,`[data-bs-dismiss="${o}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Jm(this))return;const r=Un.getElementFromSelector(this)||this.closest(`.${o}`);e.getOrCreateInstance(r)[t]()})},G1e="alert",Z1e="bs.alert",BW=`.${Z1e}`,K1e=`close${BW}`,J1e=`closed${BW}`,X1e="fade",Q1e="show";class v$ extends su{static get NAME(){return G1e}close(){if(en.trigger(this._element,K1e).defaultPrevented)return;this._element.classList.remove(Q1e);const n=this._element.classList.contains(X1e);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),en.trigger(this._element,J1e),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=v$.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}g$(v$,"close");rd(v$);const ege="button",tge="bs.button",nge=`.${tge}`,oge=".data-api",ige="active",fR='[data-bs-toggle="button"]',rge=`click${nge}${oge}`;class _$ extends su{static get NAME(){return ege}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(ige))}static jQueryInterface(t){return this.each(function(){const n=_$.getOrCreateInstance(this);t==="toggle"&&n[t]()})}}en.on(document,rge,fR,e=>{e.preventDefault();const t=e.target.closest(fR);_$.getOrCreateInstance(t).toggle()});rd(_$);const sge="swipe",uy=".bs.swipe",age=`touchstart${uy}`,lge=`touchmove${uy}`,cge=`touchend${uy}`,dge=`pointerdown${uy}`,uge=`pointerup${uy}`,hge="touch",fge="pen",mge="pointer-event",pge=40,gge={endCallback:null,leftCallback:null,rightCallback:null},vge={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class I4 extends X2{constructor(t,n){super(),this._element=t,!(!t||!I4.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return gge}static get DefaultType(){return vge}static get NAME(){return sge}dispose(){en.off(this._element,uy)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Tl(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=pge)return;const n=t/this._deltaX;this._deltaX=0,n&&Tl(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(en.on(this._element,dge,t=>this._start(t)),en.on(this._element,uge,t=>this._end(t)),this._element.classList.add(mge)):(en.on(this._element,age,t=>this._start(t)),en.on(this._element,lge,t=>this._move(t)),en.on(this._element,cge,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===fge||t.pointerType===hge)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const _ge="carousel",yge="bs.carousel",sp=`.${yge}`,HW=".data-api",bge="ArrowLeft",kge="ArrowRight",wge=500,$b="next",iv="prev",Pv="left",I8="right",$ge=`slide${sp}`,v7=`slid${sp}`,Cge=`keydown${sp}`,Sge=`mouseenter${sp}`,Tge=`mouseleave${sp}`,Ege=`dragstart${sp}`,Ige=`load${sp}${HW}`,Pge=`click${sp}${HW}`,VW="carousel",Kk="active",Age="slide",Dge="carousel-item-end",xge="carousel-item-start",Oge="carousel-item-next",Lge="carousel-item-prev",qW=".active",YW=".carousel-item",Mge=qW+YW,Nge=".carousel-item img",Rge=".carousel-indicators",jge="[data-bs-slide], [data-bs-slide-to]",Fge='[data-bs-ride="carousel"]',zge={[bge]:I8,[kge]:Pv},Uge={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Bge={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Q2 extends su{constructor(t,n){super(t,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Un.findOne(Rge,this._element),this._addEventListeners(),this._config.ride===VW&&this.cycle()}static get Default(){return Uge}static get DefaultType(){return Bge}static get NAME(){return _ge}next(){this._slide($b)}nextWhenVisible(){!document.hidden&&dy(this._element)&&this.next()}prev(){this._slide(iv)}pause(){this._isSliding&&xW(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){en.one(this._element,v7,()=>this.cycle());return}this.cycle()}}to(t){const n=this._getItems();if(t>n.length-1||t<0)return;if(this._isSliding){en.one(this._element,v7,()=>this.to(t));return}const o=this._getItemIndex(this._getActive());if(o===t)return;const i=t>o?$b:iv;this._slide(i,n[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&en.on(this._element,Cge,t=>this._keydown(t)),this._config.pause==="hover"&&(en.on(this._element,Sge,()=>this.pause()),en.on(this._element,Tge,()=>this._maybeEnableCycle())),this._config.touch&&I4.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of Un.find(Nge,this._element))en.on(o,Ege,i=>i.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Pv)),rightCallback:()=>this._slide(this._directionToOrder(I8)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),wge+this._config.interval))}};this._swipeHelper=new I4(this._element,n)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const n=zge[t.key];n&&(t.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const n=Un.findOne(qW,this._indicatorsElement);n.classList.remove(Kk),n.removeAttribute("aria-current");const o=Un.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);o&&(o.classList.add(Kk),o.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const n=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(t,n=null){if(this._isSliding)return;const o=this._getActive(),i=t===$b,r=n||wA(this._getItems(),o,i,this._config.wrap);if(r===o)return;const s=this._getItemIndex(r),a=v=>en.trigger(this._element,v,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(o),to:s});if(a($ge).defaultPrevented||!o||!r)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=r;const u=i?xge:Dge,f=i?Oge:Lge;r.classList.add(f),J2(r),o.classList.add(u),r.classList.add(u);const p=()=>{r.classList.remove(u,f),r.classList.add(Kk),o.classList.remove(Kk,f,u),this._isSliding=!1,a(v7)};this._queueCallback(p,o,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(Age)}_getActive(){return Un.findOne(Mge,this._element)}_getItems(){return Un.find(YW,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return ed()?t===Pv?iv:$b:t===Pv?$b:iv}_orderToDirection(t){return ed()?t===iv?Pv:I8:t===iv?I8:Pv}static jQueryInterface(t){return this.each(function(){const n=Q2.getOrCreateInstance(this,t);if(typeof t=="number"){n.to(t);return}if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}en.on(document,Pge,jge,function(e){const t=Un.getElementFromSelector(this);if(!t||!t.classList.contains(VW))return;e.preventDefault();const n=Q2.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");if(o){n.to(o),n._maybeEnableCycle();return}if(cf.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});en.on(window,Ige,()=>{const e=Un.find(Fge);for(const t of e)Q2.getOrCreateInstance(t)});rd(Q2);const Hge="collapse",Vge="bs.collapse",e3=`.${Vge}`,qge=".data-api",Yge=`show${e3}`,Wge=`shown${e3}`,Gge=`hide${e3}`,Zge=`hidden${e3}`,Kge=`click${e3}${qge}`,_7="show",Bv="collapse",Jk="collapsing",Jge="collapsed",Xge=`:scope .${Bv} .${Bv}`,Qge="collapse-horizontal",eve="width",tve="height",nve=".collapse.show, .collapse.collapsing",lE='[data-bs-toggle="collapse"]',ove={parent:null,toggle:!0},ive={parent:"(null|element)",toggle:"boolean"};class i2 extends su{constructor(t,n){super(t,n),this._isTransitioning=!1,this._triggerArray=[];const o=Un.find(lE);for(const i of o){const r=Un.getSelectorFromElement(i),s=Un.find(r).filter(a=>a===this._element);r!==null&&s.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ove}static get DefaultType(){return ive}static get NAME(){return Hge}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(nve).filter(a=>a!==this._element).map(a=>i2.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||en.trigger(this._element,Yge).defaultPrevented)return;for(const a of t)a.hide();const o=this._getDimension();this._element.classList.remove(Bv),this._element.classList.add(Jk),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(Jk),this._element.classList.add(Bv,_7),this._element.style[o]="",en.trigger(this._element,Wge)},s=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[o]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||en.trigger(this._element,Gge).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,J2(this._element),this._element.classList.add(Jk),this._element.classList.remove(Bv,_7);for(const i of this._triggerArray){const r=Un.getElementFromSelector(i);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Jk),this._element.classList.add(Bv),en.trigger(this._element,Zge)};this._element.style[n]="",this._queueCallback(o,this._element,!0)}_isShown(t=this._element){return t.classList.contains(_7)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=Km(t.parent),t}_getDimension(){return this._element.classList.contains(Qge)?eve:tve}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(lE);for(const n of t){const o=Un.getElementFromSelector(n);o&&this._addAriaAndCollapsedClass([n],this._isShown(o))}}_getFirstLevelChildren(t){const n=Un.find(Xge,this._config.parent);return Un.find(t,this._config.parent).filter(o=>!n.includes(o))}_addAriaAndCollapsedClass(t,n){if(t.length)for(const o of t)o.classList.toggle(Jge,!n),o.setAttribute("aria-expanded",n)}static jQueryInterface(t){const n={};return typeof t=="string"&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){const o=i2.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t]()}})}}en.on(document,Kge,lE,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of Un.getMultipleElementsFromSelector(this))i2.getOrCreateInstance(t,{toggle:!1}).toggle()});rd(i2);const mR="dropdown",rve="bs.dropdown",og=`.${rve}`,CA=".data-api",sve="Escape",pR="Tab",ave="ArrowUp",gR="ArrowDown",lve=2,cve=`hide${og}`,dve=`hidden${og}`,uve=`show${og}`,hve=`shown${og}`,WW=`click${og}${CA}`,GW=`keydown${og}${CA}`,fve=`keyup${og}${CA}`,Av="show",mve="dropup",pve="dropend",gve="dropstart",vve="dropup-center",_ve="dropdown-center",a1='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',yve=`${a1}.${Av}`,P8=".dropdown-menu",bve=".navbar",kve=".navbar-nav",wve=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",$ve=ed()?"top-end":"top-start",Cve=ed()?"top-start":"top-end",Sve=ed()?"bottom-end":"bottom-start",Tve=ed()?"bottom-start":"bottom-end",Eve=ed()?"left-start":"right-start",Ive=ed()?"right-start":"left-start",Pve="top",Ave="bottom",Dve={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},xve={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Vu extends su{constructor(t,n){super(t,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Un.next(this._element,P8)[0]||Un.prev(this._element,P8)[0]||Un.findOne(P8,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Dve}static get DefaultType(){return xve}static get NAME(){return mR}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Jm(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!en.trigger(this._element,uve,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(kve))for(const o of[].concat(...document.body.children))en.on(o,"mouseover",E4);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Av),this._element.classList.add(Av),en.trigger(this._element,hve,t)}}hide(){if(Jm(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!en.trigger(this._element,cve,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))en.off(o,"mouseover",E4);this._popper&&this._popper.destroy(),this._menu.classList.remove(Av),this._element.classList.remove(Av),this._element.setAttribute("aria-expanded","false"),cf.removeDataAttribute(this._menu,"popper"),en.trigger(this._element,dve,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!lf(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${mR.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof AW>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:lf(this._config.reference)?t=Km(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=p$(t,this._menu,n)}_isShown(){return this._menu.classList.contains(Av)}_getPlacement(){const t=this._parent;if(t.classList.contains(pve))return Eve;if(t.classList.contains(gve))return Ive;if(t.classList.contains(vve))return Pve;if(t.classList.contains(_ve))return Ave;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(mve)?n?Cve:$ve:n?Tve:Sve}_detectNavbar(){return this._element.closest(bve)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(cf.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Tl(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:n}){const o=Un.find(wve,this._menu).filter(i=>dy(i));o.length&&wA(o,n,t===gR,!o.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=Vu.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===lve||t.type==="keyup"&&t.key!==pR)return;const n=Un.find(yve);for(const o of n){const i=Vu.getInstance(o);if(!i||i._config.autoClose===!1)continue;const r=t.composedPath(),s=r.includes(i._menu);if(r.includes(i._element)||i._config.autoClose==="inside"&&!s||i._config.autoClose==="outside"&&s||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===pR||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:i._element};t.type==="click"&&(a.clickEvent=t),i._completeHide(a)}}static dataApiKeydownHandler(t){const n=/input|textarea/i.test(t.target.tagName),o=t.key===sve,i=[ave,gR].includes(t.key);if(!i&&!o||n&&!o)return;t.preventDefault();const r=this.matches(a1)?this:Un.prev(this,a1)[0]||Un.next(this,a1)[0]||Un.findOne(a1,t.delegateTarget.parentNode),s=Vu.getOrCreateInstance(r);if(i){t.stopPropagation(),s.show(),s._selectMenuItem(t);return}s._isShown()&&(t.stopPropagation(),s.hide(),r.focus())}}en.on(document,GW,a1,Vu.dataApiKeydownHandler);en.on(document,GW,P8,Vu.dataApiKeydownHandler);en.on(document,WW,Vu.clearMenus);en.on(document,fve,Vu.clearMenus);en.on(document,WW,a1,function(e){e.preventDefault(),Vu.getOrCreateInstance(this).toggle()});rd(Vu);const ZW="backdrop",Ove="fade",vR="show",_R=`mousedown.bs.${ZW}`,Lve={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Mve={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class KW extends X2{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Lve}static get DefaultType(){return Mve}static get NAME(){return ZW}show(t){if(!this._config.isVisible){Tl(t);return}this._append();const n=this._getElement();this._config.isAnimated&&J2(n),n.classList.add(vR),this._emulateAnimation(()=>{Tl(t)})}hide(t){if(!this._config.isVisible){Tl(t);return}this._getElement().classList.remove(vR),this._emulateAnimation(()=>{this.dispose(),Tl(t)})}dispose(){this._isAppended&&(en.off(this._element,_R),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Ove),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Km(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),en.on(t,_R,()=>{Tl(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){MW(t,this._getElement(),this._config.isAnimated)}}const Nve="focustrap",Rve="bs.focustrap",P4=`.${Rve}`,jve=`focusin${P4}`,Fve=`keydown.tab${P4}`,zve="Tab",Uve="forward",yR="backward",Bve={autofocus:!0,trapElement:null},Hve={autofocus:"boolean",trapElement:"element"};class JW extends X2{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Bve}static get DefaultType(){return Hve}static get NAME(){return Nve}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),en.off(document,P4),en.on(document,jve,t=>this._handleFocusin(t)),en.on(document,Fve,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,en.off(document,P4))}_handleFocusin(t){const{trapElement:n}=this._config;if(t.target===document||t.target===n||n.contains(t.target))return;const o=Un.focusableChildren(n);o.length===0?n.focus():this._lastTabNavDirection===yR?o[o.length-1].focus():o[0].focus()}_handleKeydown(t){t.key===zve&&(this._lastTabNavDirection=t.shiftKey?yR:Uve)}}const bR=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",kR=".sticky-top",Xk="padding-right",wR="margin-right";class cE{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Xk,n=>n+t),this._setElementAttributes(bR,Xk,n=>n+t),this._setElementAttributes(kR,wR,n=>n-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Xk),this._resetElementAttributes(bR,Xk),this._resetElementAttributes(kR,wR)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,n,o){const i=this.getWidth(),r=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+i)return;this._saveInitialAttribute(s,n);const a=window.getComputedStyle(s).getPropertyValue(n);s.style.setProperty(n,`${o(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,r)}_saveInitialAttribute(t,n){const o=t.style.getPropertyValue(n);o&&cf.setDataAttribute(t,n,o)}_resetElementAttributes(t,n){const o=i=>{const r=cf.getDataAttribute(i,n);if(r===null){i.style.removeProperty(n);return}cf.removeDataAttribute(i,n),i.style.setProperty(n,r)};this._applyManipulationCallback(t,o)}_applyManipulationCallback(t,n){if(lf(t)){n(t);return}for(const o of Un.find(t,this._element))n(o)}}const Vve="modal",qve="bs.modal",td=`.${qve}`,Yve=".data-api",Wve="Escape",Gve=`hide${td}`,Zve=`hidePrevented${td}`,XW=`hidden${td}`,QW=`show${td}`,Kve=`shown${td}`,Jve=`resize${td}`,Xve=`click.dismiss${td}`,Qve=`mousedown.dismiss${td}`,e_e=`keydown.dismiss${td}`,t_e=`click${td}${Yve}`,$R="modal-open",n_e="fade",CR="show",y7="modal-static",o_e=".modal.show",i_e=".modal-dialog",r_e=".modal-body",s_e='[data-bs-toggle="modal"]',a_e={backdrop:!0,focus:!0,keyboard:!0},l_e={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class yf extends su{constructor(t,n){super(t,n),this._dialog=Un.findOne(i_e,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new cE,this._addEventListeners()}static get Default(){return a_e}static get DefaultType(){return l_e}static get NAME(){return Vve}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||en.trigger(this._element,QW,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add($R),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||en.trigger(this._element,Gve).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(CR),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){en.off(window,td),en.off(this._dialog,td),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new KW({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new JW({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=Un.findOne(r_e,this._dialog);n&&(n.scrollTop=0),J2(this._element),this._element.classList.add(CR);const o=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,en.trigger(this._element,Kve,{relatedTarget:t})};this._queueCallback(o,this._dialog,this._isAnimated())}_addEventListeners(){en.on(this._element,e_e,t=>{if(t.key===Wve){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),en.on(window,Jve,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),en.on(this._element,Qve,t=>{en.one(this._element,Xve,n=>{if(!(this._element!==t.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove($R),this._resetAdjustments(),this._scrollBar.reset(),en.trigger(this._element,XW)})}_isAnimated(){return this._element.classList.contains(n_e)}_triggerBackdropTransition(){if(en.trigger(this._element,Zve).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(y7)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(y7),this._queueCallback(()=>{this._element.classList.remove(y7),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),o=n>0;if(o&&!t){const i=ed()?"paddingLeft":"paddingRight";this._element.style[i]=`${n}px`}if(!o&&t){const i=ed()?"paddingRight":"paddingLeft";this._element.style[i]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const o=yf.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t](n)}})}}en.on(document,t_e,s_e,function(e){const t=Un.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),en.one(t,QW,i=>{i.defaultPrevented||en.one(t,XW,()=>{dy(this)&&this.focus()})});const n=Un.findOne(o_e);n&&yf.getInstance(n).hide(),yf.getOrCreateInstance(t).toggle(this)});g$(yf);rd(yf);const c_e="offcanvas",d_e="bs.offcanvas",Ef=`.${d_e}`,eG=".data-api",u_e=`load${Ef}${eG}`,h_e="Escape",SR="show",TR="showing",ER="hiding",f_e="offcanvas-backdrop",tG=".offcanvas.show",m_e=`show${Ef}`,p_e=`shown${Ef}`,g_e=`hide${Ef}`,IR=`hidePrevented${Ef}`,nG=`hidden${Ef}`,v_e=`resize${Ef}`,__e=`click${Ef}${eG}`,y_e=`keydown.dismiss${Ef}`,b_e='[data-bs-toggle="offcanvas"]',k_e={backdrop:!0,keyboard:!0,scroll:!1},w_e={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Xm extends su{constructor(t,n){super(t,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return k_e}static get DefaultType(){return w_e}static get NAME(){return c_e}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||en.trigger(this._element,m_e,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new cE().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(TR);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(SR),this._element.classList.remove(TR),en.trigger(this._element,p_e,{relatedTarget:t})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||en.trigger(this._element,g_e).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ER),this._backdrop.hide();const n=()=>{this._element.classList.remove(SR,ER),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new cE().reset(),en.trigger(this._element,nG)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){en.trigger(this._element,IR);return}this.hide()},n=!!this._config.backdrop;return new KW({className:f_e,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?t:null})}_initializeFocusTrap(){return new JW({trapElement:this._element})}_addEventListeners(){en.on(this._element,y_e,t=>{if(t.key===h_e){if(this._config.keyboard){this.hide();return}en.trigger(this._element,IR)}})}static jQueryInterface(t){return this.each(function(){const n=Xm.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}en.on(document,__e,b_e,function(e){const t=Un.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Jm(this))return;en.one(t,nG,()=>{dy(this)&&this.focus()});const n=Un.findOne(tG);n&&n!==t&&Xm.getInstance(n).hide(),Xm.getOrCreateInstance(t).toggle(this)});en.on(window,u_e,()=>{for(const e of Un.find(tG))Xm.getOrCreateInstance(e).show()});en.on(window,v_e,()=>{for(const e of Un.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Xm.getOrCreateInstance(e).hide()});g$(Xm);rd(Xm);const $_e=/^aria-[\w-]*$/i,oG={"*":["class","dir","id","lang","role",$_e],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},C_e=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),S_e=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,T_e=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?C_e.has(n)?!!S_e.test(e.nodeValue):!0:t.filter(o=>o instanceof RegExp).some(o=>o.test(n))};function E_e(e,t,n){if(!e.length)return e;if(n&&typeof n=="function")return n(e);const i=new window.DOMParser().parseFromString(e,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const s of r){const a=s.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){s.remove();continue}const l=[].concat(...s.attributes),d=[].concat(t["*"]||[],t[a]||[]);for(const u of l)T_e(u,d)||s.removeAttribute(u.nodeName)}return i.body.innerHTML}const I_e="TemplateFactory",P_e={allowList:oG,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},A_e={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},D_e={entry:"(string|element|function|null)",selector:"(string|element)"};class x_e extends X2{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return P_e}static get DefaultType(){return A_e}static get NAME(){return I_e}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,r]of Object.entries(this._config.content))this._setContent(t,r,i);const n=t.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&n.classList.add(...o.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[n,o]of Object.entries(t))super._typeCheckConfig({selector:n,entry:o},D_e)}_setContent(t,n,o){const i=Un.findOne(o,t);if(i){if(n=this._resolvePossibleFunction(n),!n){i.remove();return}if(lf(n)){this._putElementInTemplate(Km(n),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(n);return}i.textContent=n}}_maybeSanitize(t){return this._config.sanitize?E_e(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Tl(t,[this])}_putElementInTemplate(t,n){if(this._config.html){n.innerHTML="",n.append(t);return}n.textContent=t.textContent}}const O_e="tooltip",L_e=new Set(["sanitize","allowList","sanitizeFn"]),b7="fade",M_e="modal",Qk="show",N_e=".tooltip-inner",PR=`.${M_e}`,AR="hide.bs.modal",Cb="hover",k7="focus",R_e="click",j_e="manual",F_e="hide",z_e="hidden",U_e="show",B_e="shown",H_e="inserted",V_e="click",q_e="focusin",Y_e="focusout",W_e="mouseenter",G_e="mouseleave",Z_e={AUTO:"auto",TOP:"top",RIGHT:ed()?"left":"right",BOTTOM:"bottom",LEFT:ed()?"right":"left"},K_e={allowList:oG,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},J_e={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class hy extends su{constructor(t,n){if(typeof AW>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return K_e}static get DefaultType(){return J_e}static get NAME(){return O_e}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),en.off(this._element.closest(PR),AR,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=en.trigger(this._element,this.constructor.eventName(U_e)),o=(OW(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!o)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(i),en.trigger(this._element,this.constructor.eventName(H_e))),this._popper=this._createPopper(i),i.classList.add(Qk),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))en.on(a,"mouseover",E4);const s=()=>{en.trigger(this._element,this.constructor.eventName(B_e)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||en.trigger(this._element,this.constructor.eventName(F_e)).defaultPrevented)return;if(this._getTipElement().classList.remove(Qk),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))en.off(i,"mouseover",E4);this._activeTrigger[R_e]=!1,this._activeTrigger[k7]=!1,this._activeTrigger[Cb]=!1,this._isHovered=null;const o=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),en.trigger(this._element,this.constructor.eventName(z_e)))};this._queueCallback(o,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const n=this._getTemplateFactory(t).toHtml();if(!n)return null;n.classList.remove(b7,Qk),n.classList.add(`bs-${this.constructor.NAME}-auto`);const o=R1e(this.constructor.NAME).toString();return n.setAttribute("id",o),this._isAnimated()&&n.classList.add(b7),n}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new x_e({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[N_e]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(b7)}_isShown(){return this.tip&&this.tip.classList.contains(Qk)}_createPopper(t){const n=Tl(this._config.placement,[this,t,this._element]),o=Z_e[n.toUpperCase()];return p$(this._element,t,this._getPopperConfig(o))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_resolvePossibleFunction(t){return Tl(t,[this._element])}_getPopperConfig(t){const n={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:o=>{this._getTipElement().setAttribute("data-popper-placement",o.state.placement)}}]};return{...n,...Tl(this._config.popperConfig,[n])}}_setListeners(){const t=this._config.trigger.split(" ");for(const n of t)if(n==="click")en.on(this._element,this.constructor.eventName(V_e),this._config.selector,o=>{this._initializeOnDelegatedTarget(o).toggle()});else if(n!==j_e){const o=n===Cb?this.constructor.eventName(W_e):this.constructor.eventName(q_e),i=n===Cb?this.constructor.eventName(G_e):this.constructor.eventName(Y_e);en.on(this._element,o,this._config.selector,r=>{const s=this._initializeOnDelegatedTarget(r);s._activeTrigger[r.type==="focusin"?k7:Cb]=!0,s._enter()}),en.on(this._element,i,this._config.selector,r=>{const s=this._initializeOnDelegatedTarget(r);s._activeTrigger[r.type==="focusout"?k7:Cb]=s._element.contains(r.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},en.on(this._element.closest(PR),AR,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,n){clearTimeout(this._timeout),this._timeout=setTimeout(t,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const n=cf.getDataAttributes(this._element);for(const o of Object.keys(n))L_e.has(o)&&delete n[o];return t={...n,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:Km(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[n,o]of Object.entries(this._config))this.constructor.Default[n]!==o&&(t[n]=o);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const n=hy.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}rd(hy);const X_e="popover",Q_e=".popover-header",eye=".popover-body",tye={...hy.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},nye={...hy.DefaultType,content:"(null|string|element|function)"};let oye=class iG extends hy{static get Default(){return tye}static get DefaultType(){return nye}static get NAME(){return X_e}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Q_e]:this._getTitle(),[eye]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const n=iG.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}};rd(oye);const iye="scrollspy",rye="bs.scrollspy",SA=`.${rye}`,sye=".data-api",aye=`activate${SA}`,DR=`click${SA}`,lye=`load${SA}${sye}`,cye="dropdown-item",rv="active",dye='[data-bs-spy="scroll"]',w7="[href]",uye=".nav, .list-group",xR=".nav-link",hye=".nav-item",fye=".list-group-item",mye=`${xR}, ${hye} > ${xR}, ${fye}`,pye=".dropdown",gye=".dropdown-toggle",vye={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},_ye={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class y$ extends su{constructor(t,n){super(t,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return vye}static get DefaultType(){return _ye}static get NAME(){return iye}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Km(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(n=>Number.parseFloat(n))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(en.off(this._config.target,DR),en.on(this._config.target,DR,w7,t=>{const n=this._observableSections.get(t.target.hash);if(n){t.preventDefault();const o=this._rootElement||window,i=n.offsetTop-this._element.offsetTop;if(o.scrollTo){o.scrollTo({top:i,behavior:"smooth"});return}o.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),t)}_observerCallback(t){const n=s=>this._targetLinks.get(`#${s.target.id}`),o=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(n(s))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const s of t){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&a){if(o(s),!i)return;continue}!r&&!a&&o(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=Un.find(w7,this._config.target);for(const n of t){if(!n.hash||Jm(n))continue;const o=Un.findOne(decodeURI(n.hash),this._element);dy(o)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,o))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(rv),this._activateParents(t),en.trigger(this._element,aye,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(cye)){Un.findOne(gye,t.closest(pye)).classList.add(rv);return}for(const n of Un.parents(t,uye))for(const o of Un.prev(n,mye))o.classList.add(rv)}_clearActiveClass(t){t.classList.remove(rv);const n=Un.find(`${w7}.${rv}`,t);for(const o of n)o.classList.remove(rv)}static jQueryInterface(t){return this.each(function(){const n=y$.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}en.on(window,lye,()=>{for(const e of Un.find(dye))y$.getOrCreateInstance(e)});rd(y$);const yye="tab",bye="bs.tab",ig=`.${bye}`,kye=`hide${ig}`,wye=`hidden${ig}`,$ye=`show${ig}`,Cye=`shown${ig}`,Sye=`click${ig}`,Tye=`keydown${ig}`,Eye=`load${ig}`,Iye="ArrowLeft",OR="ArrowRight",Pye="ArrowUp",LR="ArrowDown",$7="Home",MR="End",l1="active",NR="fade",C7="show",Aye="dropdown",rG=".dropdown-toggle",Dye=".dropdown-menu",S7=`:not(${rG})`,xye='.list-group, .nav, [role="tablist"]',Oye=".nav-item, .list-group-item",Lye=`.nav-link${S7}, .list-group-item${S7}, [role="tab"]${S7}`,sG='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',T7=`${Lye}, ${sG}`,Mye=`.${l1}[data-bs-toggle="tab"], .${l1}[data-bs-toggle="pill"], .${l1}[data-bs-toggle="list"]`;class D_ extends su{constructor(t){super(t),this._parent=this._element.closest(xye),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),en.on(this._element,Tye,n=>this._keydown(n)))}static get NAME(){return yye}show(){const t=this._element;if(this._elemIsActive(t))return;const n=this._getActiveElem(),o=n?en.trigger(n,kye,{relatedTarget:t}):null;en.trigger(t,$ye,{relatedTarget:n}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(n,t),this._activate(t,n))}_activate(t,n){if(!t)return;t.classList.add(l1),this._activate(Un.getElementFromSelector(t));const o=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(C7);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),en.trigger(t,Cye,{relatedTarget:n})};this._queueCallback(o,t,t.classList.contains(NR))}_deactivate(t,n){if(!t)return;t.classList.remove(l1),t.blur(),this._deactivate(Un.getElementFromSelector(t));const o=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(C7);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),en.trigger(t,wye,{relatedTarget:n})};this._queueCallback(o,t,t.classList.contains(NR))}_keydown(t){if(![Iye,OR,Pye,LR,$7,MR].includes(t.key))return;t.stopPropagation(),t.preventDefault();const n=this._getChildren().filter(i=>!Jm(i));let o;if([$7,MR].includes(t.key))o=n[t.key===$7?0:n.length-1];else{const i=[OR,LR].includes(t.key);o=wA(n,t.target,i,!0)}o&&(o.focus({preventScroll:!0}),D_.getOrCreateInstance(o).show())}_getChildren(){return Un.find(T7,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,n){this._setAttributeIfNotExists(t,"role","tablist");for(const o of n)this._setInitialAttributesOnChild(o)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const n=this._elemIsActive(t),o=this._getOuterElement(t);t.setAttribute("aria-selected",n),o!==t&&this._setAttributeIfNotExists(o,"role","presentation"),n||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const n=Un.getElementFromSelector(t);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,n){const o=this._getOuterElement(t);if(!o.classList.contains(Aye))return;const i=(r,s)=>{const a=Un.findOne(r,o);a&&a.classList.toggle(s,n)};i(rG,l1),i(Dye,C7),o.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(t,n,o){t.hasAttribute(n)||t.setAttribute(n,o)}_elemIsActive(t){return t.classList.contains(l1)}_getInnerElement(t){return t.matches(T7)?t:Un.findOne(T7,t)}_getOuterElement(t){return t.closest(Oye)||t}static jQueryInterface(t){return this.each(function(){const n=D_.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}en.on(document,Sye,sG,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Jm(this)&&D_.getOrCreateInstance(this).show()});en.on(window,Eye,()=>{for(const e of Un.find(Mye))D_.getOrCreateInstance(e)});rd(D_);const Nye="toast",Rye="bs.toast",ap=`.${Rye}`,jye=`mouseover${ap}`,Fye=`mouseout${ap}`,zye=`focusin${ap}`,Uye=`focusout${ap}`,Bye=`hide${ap}`,Hye=`hidden${ap}`,Vye=`show${ap}`,qye=`shown${ap}`,Yye="fade",RR="hide",ew="show",tw="showing",Wye={animation:"boolean",autohide:"boolean",delay:"number"},Gye={animation:!0,autohide:!0,delay:5e3};class b$ extends su{constructor(t,n){super(t,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Gye}static get DefaultType(){return Wye}static get NAME(){return Nye}show(){if(en.trigger(this._element,Vye).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Yye);const n=()=>{this._element.classList.remove(tw),en.trigger(this._element,qye),this._maybeScheduleHide()};this._element.classList.remove(RR),J2(this._element),this._element.classList.add(ew,tw),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||en.trigger(this._element,Bye).defaultPrevented)return;const n=()=>{this._element.classList.add(RR),this._element.classList.remove(tw,ew),en.trigger(this._element,Hye)};this._element.classList.add(tw),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ew),super.dispose()}isShown(){return this._element.classList.contains(ew)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,n){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const o=t.relatedTarget;this._element===o||this._element.contains(o)||this._maybeScheduleHide()}_setListeners(){en.on(this._element,jye,t=>this._onInteraction(t,!0)),en.on(this._element,Fye,t=>this._onInteraction(t,!1)),en.on(this._element,zye,t=>this._onInteraction(t,!0)),en.on(this._element,Uye,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const n=b$.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}g$(b$);rd(b$);var aG={exports:{}};(function(e){(function(t,n){e.exports=n()})(bo,function(){function t(n){if(!(this instanceof t))return new t(n);var o=this,i={searchSelector:"*AND",hideBy:"display:none",diacriticsMap:{}};if(o.options={},["columns","addImportant","searchSelector","hideBy","manualContentHandling","callSearchManually","searchInSpecificColumn","diacriticsMap","didSearch","invert","nonceId"].forEach(function(a){o.options[a]=n[a]||i[a]}),this.options.searchSelector.length>1){var r=o.options.searchSelector.trim();o.options.searchSelector=r.substr(0,1),o.options.searchSelectorMode=r.substr(1).toUpperCase()}if(o.content_tag=document.querySelectorAll(n.contentTag),!o.content_tag)throw new Error("Error! Could not find contentTag element");if(o.content_param=n.contentTag,o.search_tag=document.querySelector(n.searchTag),!o.search_tag&&!o.options.callSearchManually)throw new Error('Error! Provide one of search methods: searchTag or callSearchManually and call .search("phrase") manually');var s=o.search_tag&&o.search_tag.value||"";o.search=function(a,l){var d=o.options.callSearchManually&&typeof a<"u"?a:o.search_tag?o.search_tag.value:"";s!=(s=d)&&(o._applyCSS(s,l),o.options.didSearch&&o.options.didSearch(s))},o._onSearch=function(a){if(a.type=="keydown")return setTimeout(o.search,0);o.search()},o.destroy=function(){o.options.callSearchManually||o._processEventListeners("remove"),o._destroy()},o.options.callSearchManually||o._processEventListeners("add"),o._addStyleTag(),o._setJets(),o._applyCSS(s)}return t.prototype={constructor:t,_processEventListeners:function(n){["input","keydown","change"].forEach((function(o){this.search_tag[n+"EventListener"](o,this._onSearch)}).bind(this))},_applyCSS:function(n,o){for(var i=this.options,r=this.replaceDiacritics(n.trim().toLowerCase().replace(/\s\s+/g," ")).replace(/\\/g,"\\\\"),s=i.searchSelectorMode?r.split(" ").filter(function(v,_,k){return k.indexOf(v)==_}):[r],a=i.searchSelectorMode=="AND",l=new Array(s.length),d=0,u=s.length;d<u;d++)l[d]=(a?this.content_param+">":"")+(i.invert?"":":not(")+"[data-jets"+(typeof o<"u"?"-col-"+o:"")+i.searchSelector+'="'+s[d]+'"]'+(i.invert?"":")");var f=i.hideBy.split(";").filter(Boolean).map(function(v){return v+(i.addImportant?"!important":"")}),p=(a?"":this.content_param+">")+l.join(a?",":"")+"{"+f.join(";")+"}";this.styleTag.innerHTML=r.length?p:""},_addStyleTag:function(){var n=this.options;this.styleTag=document.createElement("style"),typeof n.nonceId<"u"&&this.styleTag.setAttribute("nonce",n.nonceId),document.head.appendChild(this.styleTag)},_getText:function(n){return n&&(n.textContent||n.innerText)||""},_sanitize:function(n){return this.replaceDiacritics(n).trim().replace(/\s+/g," ").toLowerCase()},_getContentTags:function(n){return Array.prototype.slice.call(this.content_tag).reduce(function(o,i){return o.concat(Array.prototype.slice.call(i.querySelectorAll(n||":scope > *")))},[])},_handleSpecificColumns:function(n,o){var i=this;i.options.searchInSpecificColumn&&Array.prototype.slice.call(n.children).map(function(r,s){i.options.columns&&i.options.columns.length&&i.options.columns.indexOf(s)==-1||n[(o||"remove")+"Attribute"]("data-jets-col-"+s,o&&i._sanitize(i._getText(r)))})},_setJets:function(n,o){for(var i=this,r=i._getContentTags(o?"":n),s,a=0,l;l=r[a];a++)l.hasAttribute("data-jets")&&!o||(s=this.options.manualContentHandling?this.options.manualContentHandling(l):i.options.columns&&i.options.columns.length?i.options.columns.map(function(d){return i._getText(l.children[d])}).join(" "):i._getText(l),l.setAttribute("data-jets",i._sanitize(s)),i._handleSpecificColumns(l,"set"))},replaceDiacritics:function(n){var o=this.options.diacriticsMap;for(var i in o)if(o.hasOwnProperty(i))for(var r=0,s=o[i].length;r<s;r++)n=n.replace(new RegExp(o[i][r],"g"),i);return n},update:function(n){this._setJets(":scope > :not([data-jets])",n)},_destroy:function(){this.styleTag.parentNode&&document.head.removeChild(this.styleTag);for(var n=this._getContentTags(),o=0,i;i=n[o];o++)i.removeAttribute("data-jets"),this._handleSpecificColumns(i)}},function(n,o){try{n.querySelector(":scope body")}catch{["querySelector","querySelectorAll"].forEach(function(r){var s=o[r];o[r]=function(a){if(/(^|,)\s*:scope/.test(a)){var l=this.getAttribute("id");this.id="ID_"+Date.now(),a=a.replace(/((^|,)\s*):scope/g,"$1#"+this.getAttribute("id"));var d=n[r](a);return this.id=l,d}else return s.call(this,a)}})}}(window.document,Element.prototype),t})})(aG);var Zye=aG.exports;const Kye=Ol(Zye);//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var lG;function mt(){return lG.apply(null,arguments)}function Jye(e){lG=e}function Xd(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function w1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function vi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function TA(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(vi(e,t))return!1;return!0}function vl(e){return e===void 0}function bf(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function t3(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function cG(e,t){var n=[],o,i=e.length;for(o=0;o<i;++o)n.push(t(e[o],o));return n}function xm(e,t){for(var n in t)vi(t,n)&&(e[n]=t[n]);return vi(t,"toString")&&(e.toString=t.toString),vi(t,"valueOf")&&(e.valueOf=t.valueOf),e}function dh(e,t,n,o){return xG(e,t,n,o,!0).utc()}function Xye(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function $o(e){return e._pf==null&&(e._pf=Xye()),e._pf}var dE;Array.prototype.some?dE=Array.prototype.some:dE=function(e){var t=Object(this),n=t.length>>>0,o;for(o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};function EA(e){var t=null,n=!1,o=e._d&&!isNaN(e._d.getTime());if(o&&(t=$o(e),n=dE.call(t.parsedDateParts,function(i){return i!=null}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(o=o&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=o;else return o;return e._isValid}function k$(e){var t=dh(NaN);return e!=null?xm($o(t),e):$o(t).userInvalidated=!0,t}var jR=mt.momentProperties=[],E7=!1;function IA(e,t){var n,o,i,r=jR.length;if(vl(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),vl(t._i)||(e._i=t._i),vl(t._f)||(e._f=t._f),vl(t._l)||(e._l=t._l),vl(t._strict)||(e._strict=t._strict),vl(t._tzm)||(e._tzm=t._tzm),vl(t._isUTC)||(e._isUTC=t._isUTC),vl(t._offset)||(e._offset=t._offset),vl(t._pf)||(e._pf=$o(t)),vl(t._locale)||(e._locale=t._locale),r>0)for(n=0;n<r;n++)o=jR[n],i=t[o],vl(i)||(e[o]=i);return e}function n3(e){IA(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),E7===!1&&(E7=!0,mt.updateOffset(this),E7=!1)}function Qd(e){return e instanceof n3||e!=null&&e._isAMomentObject!=null}function dG(e){mt.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function sd(e,t){var n=!0;return xm(function(){if(mt.deprecationHandler!=null&&mt.deprecationHandler(null,e),n){var o=[],i,r,s,a=arguments.length;for(r=0;r<a;r++){if(i="",typeof arguments[r]=="object"){i+=` [`+r+"] ";for(s in arguments[0])vi(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[r];o.push(i)}dG(e+` Arguments: `+Array.prototype.slice.call(o).join("")+` `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var FR={};function uG(e,t){mt.deprecationHandler!=null&&mt.deprecationHandler(e,t),FR[e]||(dG(t),FR[e]=!0)}mt.suppressDeprecationWarnings=!1;mt.deprecationHandler=null;function uh(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Qye(e){var t,n;for(n in e)vi(e,n)&&(t=e[n],uh(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function uE(e,t){var n=xm({},e),o;for(o in t)vi(t,o)&&(w1(e[o])&&w1(t[o])?(n[o]={},xm(n[o],e[o]),xm(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)vi(e,o)&&!vi(t,o)&&w1(e[o])&&(n[o]=xm({},n[o]));return n}function PA(e){e!=null&&this.set(e)}var hE;Object.keys?hE=Object.keys:hE=function(e){var t,n=[];for(t in e)vi(e,t)&&n.push(t);return n};var ebe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function tbe(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return uh(o)?o.call(t,n):o}function th(e,t,n){var o=""+Math.abs(e),i=t-o.length,r=e>=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+o}var AA=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,nw=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I7={},a_={};function Fn(e,t,n,o){var i=o;typeof o=="string"&&(i=function(){return this[o]()}),e&&(a_[e]=i),t&&(a_[t[0]]=function(){return th(i.apply(this,arguments),t[1],t[2])}),n&&(a_[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function nbe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function obe(e){var t=e.match(AA),n,o;for(n=0,o=t.length;n<o;n++)a_[t[n]]?t[n]=a_[t[n]]:t[n]=nbe(t[n]);return function(i){var r="",s;for(s=0;s<o;s++)r+=uh(t[s])?t[s].call(i,e):t[s];return r}}function A8(e,t){return e.isValid()?(t=hG(t,e.localeData()),I7[t]=I7[t]||obe(t),I7[t](e)):e.localeData().invalidDate()}function hG(e,t){var n=5;function o(i){return t.longDateFormat(i)||i}for(nw.lastIndex=0;n>=0&&nw.test(e);)e=e.replace(nw,o),nw.lastIndex=0,n-=1;return e}var ibe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function rbe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(AA).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var sbe="Invalid date";function abe(){return this._invalidDate}var lbe="%d",cbe=/\d{1,2}/;function dbe(e){return this._ordinal.replace("%d",e)}var ube={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function hbe(e,t,n,o){var i=this._relativeTime[n];return uh(i)?i(e,t,n,o):i.replace(/%d/i,e)}function fbe(e,t){var n=this._relativeTime[e>0?"future":"past"];return uh(n)?n(t):n.replace(/%s/i,t)}var zR={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ad(e){return typeof e=="string"?zR[e]||zR[e.toLowerCase()]:void 0}function DA(e){var t={},n,o;for(o in e)vi(e,o)&&(n=ad(o),n&&(t[n]=e[o]));return t}var mbe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function pbe(e){var t=[],n;for(n in e)vi(e,n)&&t.push({unit:n,priority:mbe[n]});return t.sort(function(o,i){return o.priority-i.priority}),t}var fG=/\d/,dc=/\d\d/,mG=/\d{3}/,xA=/\d{4}/,w$=/[+-]?\d{6}/,er=/\d\d?/,pG=/\d\d\d\d?/,gG=/\d\d\d\d\d\d?/,$$=/\d{1,3}/,OA=/\d{1,4}/,C$=/[+-]?\d{1,6}/,fy=/\d+/,S$=/[+-]?\d+/,gbe=/Z|[+-]\d\d:?\d\d/gi,T$=/Z|[+-]\d\d(?::?\d\d)?/gi,vbe=/[+-]?\d+(\.\d{1,3})?/,o3=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,my=/^[1-9]\d?/,LA=/^([1-9]\d|\d)/,A4;A4={};function Sn(e,t,n){A4[e]=uh(t)?t:function(o,i){return o&&n?n:t}}function _be(e,t){return vi(A4,e)?A4[e](t._strict,t._locale):new RegExp(ybe(e))}function ybe(e){return df(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,o,i,r){return n||o||i||r}))}function df(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Fc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Qo(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Fc(t)),n}var fE={};function Ui(e,t){var n,o=t,i;for(typeof e=="string"&&(e=[e]),bf(t)&&(o=function(r,s){s[t]=Qo(r)}),i=e.length,n=0;n<i;n++)fE[e[n]]=o}function i3(e,t){Ui(e,function(n,o,i,r){i._w=i._w||{},t(n,i._w,i,r)})}function bbe(e,t,n){t!=null&&vi(fE,e)&&fE[e](t,n._a,n,e)}function E$(e){return e%4===0&&e%100!==0||e%400===0}var pa=0,ef=1,Nu=2,_s=3,Fd=4,tf=5,c1=6,kbe=7,wbe=8;Fn("Y",0,0,function(){var e=this.year();return e<=9999?th(e,4):"+"+e});Fn(0,["YY",2],0,function(){return this.year()%100});Fn(0,["YYYY",4],0,"year");Fn(0,["YYYYY",5],0,"year");Fn(0,["YYYYYY",6,!0],0,"year");Sn("Y",S$);Sn("YY",er,dc);Sn("YYYY",OA,xA);Sn("YYYYY",C$,w$);Sn("YYYYYY",C$,w$);Ui(["YYYYY","YYYYYY"],pa);Ui("YYYY",function(e,t){t[pa]=e.length===2?mt.parseTwoDigitYear(e):Qo(e)});Ui("YY",function(e,t){t[pa]=mt.parseTwoDigitYear(e)});Ui("Y",function(e,t){t[pa]=parseInt(e,10)});function C0(e){return E$(e)?366:365}mt.parseTwoDigitYear=function(e){return Qo(e)+(Qo(e)>68?1900:2e3)};var vG=py("FullYear",!0);function $be(){return E$(this.year())}function py(e,t){return function(n){return n!=null?(_G(this,e,n),mt.updateOffset(this,t),this):r2(this,e)}}function r2(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function _G(e,t,n){var o,i,r,s,a;if(!(!e.isValid()||isNaN(n))){switch(o=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(i?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(i?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(i?o.setUTCHours(n):o.setHours(n));case"Date":return void(i?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}r=n,s=e.month(),a=e.date(),a=a===29&&s===1&&!E$(r)?28:a,i?o.setUTCFullYear(r,s,a):o.setFullYear(r,s,a)}}function Cbe(e){return e=ad(e),uh(this[e])?this[e]():this}function Sbe(e,t){if(typeof e=="object"){e=DA(e);var n=pbe(e),o,i=n.length;for(o=0;o<i;o++)this[n[o].unit](e[n[o].unit])}else if(e=ad(e),uh(this[e]))return this[e](t);return this}function Tbe(e,t){return(e%t+t)%t}var Fr;Array.prototype.indexOf?Fr=Array.prototype.indexOf:Fr=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function MA(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Tbe(t,12);return e+=(t-n)/12,n===1?E$(e)?29:28:31-n%7%2}Fn("M",["MM",2],"Mo",function(){return this.month()+1});Fn("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Fn("MMMM",0,0,function(e){return this.localeData().months(this,e)});Sn("M",er,my);Sn("MM",er,dc);Sn("MMM",function(e,t){return t.monthsShortRegex(e)});Sn("MMMM",function(e,t){return t.monthsRegex(e)});Ui(["M","MM"],function(e,t){t[ef]=Qo(e)-1});Ui(["MMM","MMMM"],function(e,t,n,o){var i=n._locale.monthsParse(e,o,n._strict);i!=null?t[ef]=i:$o(n).invalidMonth=e});var Ebe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),yG="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),bG=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ibe=o3,Pbe=o3;function Abe(e,t){return e?Xd(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||bG).test(t)?"format":"standalone"][e.month()]:Xd(this._months)?this._months:this._months.standalone}function Dbe(e,t){return e?Xd(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[bG.test(t)?"format":"standalone"][e.month()]:Xd(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function xbe(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)r=dh([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?t==="MMM"?(i=Fr.call(this._shortMonthsParse,s),i!==-1?i:null):(i=Fr.call(this._longMonthsParse,s),i!==-1?i:null):t==="MMM"?(i=Fr.call(this._shortMonthsParse,s),i!==-1?i:(i=Fr.call(this._longMonthsParse,s),i!==-1?i:null)):(i=Fr.call(this._longMonthsParse,s),i!==-1?i:(i=Fr.call(this._shortMonthsParse,s),i!==-1?i:null))}function Obe(e,t,n){var o,i,r;if(this._monthsParseExact)return xbe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(i=dh([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[o]&&(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=new RegExp(r.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[o].test(e))return o;if(n&&t==="MMM"&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function kG(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Qo(t);else if(t=e.localeData().monthsParse(t),!bf(t))return e}var n=t,o=e.date();return o=o<29?o:Math.min(o,MA(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function wG(e){return e!=null?(kG(this,e),mt.updateOffset(this,!0),this):r2(this,"Month")}function Lbe(){return MA(this.year(),this.month())}function Mbe(e){return this._monthsParseExact?(vi(this,"_monthsRegex")||$G.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(vi(this,"_monthsShortRegex")||(this._monthsShortRegex=Ibe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Nbe(e){return this._monthsParseExact?(vi(this,"_monthsRegex")||$G.call(this),e?this._monthsStrictRegex:this._monthsRegex):(vi(this,"_monthsRegex")||(this._monthsRegex=Pbe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function $G(){function e(l,d){return d.length-l.length}var t=[],n=[],o=[],i,r,s,a;for(i=0;i<12;i++)r=dh([2e3,i]),s=df(this.monthsShort(r,"")),a=df(this.months(r,"")),t.push(s),n.push(a),o.push(a),o.push(s);t.sort(e),n.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Rbe(e,t,n,o,i,r,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,o,i,r,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,o,i,r,s),a}function s2(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function D4(e,t,n){var o=7+t-n,i=(7+s2(e,0,o).getUTCDay()-t)%7;return-i+o-1}function CG(e,t,n,o,i){var r=(7+n-o)%7,s=D4(e,o,i),a=1+7*(t-1)+r+s,l,d;return a<=0?(l=e-1,d=C0(l)+a):a>C0(e)?(l=e+1,d=a-C0(e)):(l=e,d=a),{year:l,dayOfYear:d}}function a2(e,t,n){var o=D4(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1,r,s;return i<1?(s=e.year()-1,r=i+uf(s,t,n)):i>uf(e.year(),t,n)?(r=i-uf(e.year(),t,n),s=e.year()+1):(s=e.year(),r=i),{week:r,year:s}}function uf(e,t,n){var o=D4(e,t,n),i=D4(e+1,t,n);return(C0(e)-o+i)/7}Fn("w",["ww",2],"wo","week");Fn("W",["WW",2],"Wo","isoWeek");Sn("w",er,my);Sn("ww",er,dc);Sn("W",er,my);Sn("WW",er,dc);i3(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=Qo(e)});function jbe(e){return a2(e,this._week.dow,this._week.doy).week}var Fbe={dow:0,doy:6};function zbe(){return this._week.dow}function Ube(){return this._week.doy}function Bbe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Hbe(e){var t=a2(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Fn("d",0,"do","day");Fn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Fn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Fn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Fn("e",0,0,"weekday");Fn("E",0,0,"isoWeekday");Sn("d",er);Sn("e",er);Sn("E",er);Sn("dd",function(e,t){return t.weekdaysMinRegex(e)});Sn("ddd",function(e,t){return t.weekdaysShortRegex(e)});Sn("dddd",function(e,t){return t.weekdaysRegex(e)});i3(["dd","ddd","dddd"],function(e,t,n,o){var i=n._locale.weekdaysParse(e,o,n._strict);i!=null?t.d=i:$o(n).invalidWeekday=e});i3(["d","e","E"],function(e,t,n,o){t[o]=Qo(e)});function Vbe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function qbe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function NA(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Ybe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),SG="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wbe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Gbe=o3,Zbe=o3,Kbe=o3;function Jbe(e,t){var n=Xd(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?NA(n,this._week.dow):e?n[e.day()]:n}function Xbe(e){return e===!0?NA(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Qbe(e){return e===!0?NA(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function e0e(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)r=dh([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?t==="dddd"?(i=Fr.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Fr.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Fr.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Fr.call(this._weekdaysParse,s),i!==-1||(i=Fr.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Fr.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Fr.call(this._shortWeekdaysParse,s),i!==-1||(i=Fr.call(this._weekdaysParse,s),i!==-1)?i:(i=Fr.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Fr.call(this._minWeekdaysParse,s),i!==-1||(i=Fr.call(this._weekdaysParse,s),i!==-1)?i:(i=Fr.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function t0e(e,t,n){var o,i,r;if(this._weekdaysParseExact)return e0e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(i=dh([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=new RegExp(r.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(n&&t==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(n&&t==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function n0e(e){if(!this.isValid())return e!=null?this:NaN;var t=r2(this,"Day");return e!=null?(e=Vbe(e,this.localeData()),this.add(e-t,"d")):t}function o0e(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function i0e(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=qbe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function r0e(e){return this._weekdaysParseExact?(vi(this,"_weekdaysRegex")||RA.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(vi(this,"_weekdaysRegex")||(this._weekdaysRegex=Gbe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function s0e(e){return this._weekdaysParseExact?(vi(this,"_weekdaysRegex")||RA.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(vi(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Zbe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function a0e(e){return this._weekdaysParseExact?(vi(this,"_weekdaysRegex")||RA.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(vi(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kbe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function RA(){function e(u,f){return f.length-u.length}var t=[],n=[],o=[],i=[],r,s,a,l,d;for(r=0;r<7;r++)s=dh([2e3,1]).day(r),a=df(this.weekdaysMin(s,"")),l=df(this.weekdaysShort(s,"")),d=df(this.weekdays(s,"")),t.push(a),n.push(l),o.push(d),i.push(a),i.push(l),i.push(d);t.sort(e),n.sort(e),o.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function jA(){return this.hours()%12||12}function l0e(){return this.hours()||24}Fn("H",["HH",2],0,"hour");Fn("h",["hh",2],0,jA);Fn("k",["kk",2],0,l0e);Fn("hmm",0,0,function(){return""+jA.apply(this)+th(this.minutes(),2)});Fn("hmmss",0,0,function(){return""+jA.apply(this)+th(this.minutes(),2)+th(this.seconds(),2)});Fn("Hmm",0,0,function(){return""+this.hours()+th(this.minutes(),2)});Fn("Hmmss",0,0,function(){return""+this.hours()+th(this.minutes(),2)+th(this.seconds(),2)});function TG(e,t){Fn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}TG("a",!0);TG("A",!1);function EG(e,t){return t._meridiemParse}Sn("a",EG);Sn("A",EG);Sn("H",er,LA);Sn("h",er,my);Sn("k",er,my);Sn("HH",er,dc);Sn("hh",er,dc);Sn("kk",er,dc);Sn("hmm",pG);Sn("hmmss",gG);Sn("Hmm",pG);Sn("Hmmss",gG);Ui(["H","HH"],_s);Ui(["k","kk"],function(e,t,n){var o=Qo(e);t[_s]=o===24?0:o});Ui(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Ui(["h","hh"],function(e,t,n){t[_s]=Qo(e),$o(n).bigHour=!0});Ui("hmm",function(e,t,n){var o=e.length-2;t[_s]=Qo(e.substr(0,o)),t[Fd]=Qo(e.substr(o)),$o(n).bigHour=!0});Ui("hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[_s]=Qo(e.substr(0,o)),t[Fd]=Qo(e.substr(o,2)),t[tf]=Qo(e.substr(i)),$o(n).bigHour=!0});Ui("Hmm",function(e,t,n){var o=e.length-2;t[_s]=Qo(e.substr(0,o)),t[Fd]=Qo(e.substr(o))});Ui("Hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[_s]=Qo(e.substr(0,o)),t[Fd]=Qo(e.substr(o,2)),t[tf]=Qo(e.substr(i))});function c0e(e){return(e+"").toLowerCase().charAt(0)==="p"}var d0e=/[ap]\.?m?\.?/i,u0e=py("Hours",!0);function h0e(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var IG={calendar:ebe,longDateFormat:ibe,invalidDate:sbe,ordinal:lbe,dayOfMonthOrdinalParse:cbe,relativeTime:ube,months:Ebe,monthsShort:yG,week:Fbe,weekdays:Ybe,weekdaysMin:Wbe,weekdaysShort:SG,meridiemParse:d0e},ir={},Sb={},l2;function f0e(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n<o;n+=1)if(e[n]!==t[n])return n;return o}function UR(e){return e&&e.toLowerCase().replace("_","-")}function m0e(e){for(var t=0,n,o,i,r;t<e.length;){for(r=UR(e[t]).split("-"),n=r.length,o=UR(e[t+1]),o=o?o.split("-"):null;n>0;){if(i=I$(r.slice(0,n).join("-")),i)return i;if(o&&o.length>=n&&f0e(r,o)>=n-1)break;n--}t++}return l2}function p0e(e){return!!(e&&e.match("^[^/\\\\]*$"))}function I$(e){var t=null,n;if(ir[e]===void 0&&typeof module<"u"&&module&&module.exports&&p0e(e))try{t=l2._abbr,n=require,n("./locale/"+e),jm(t)}catch{ir[e]=null}return ir[e]}function jm(e,t){var n;return e&&(vl(t)?n=If(e):n=FA(e,t),n?l2=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),l2._abbr}function FA(e,t){if(t!==null){var n,o=IG;if(t.abbr=e,ir[e]!=null)uG("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=ir[e]._config;else if(t.parentLocale!=null)if(ir[t.parentLocale]!=null)o=ir[t.parentLocale]._config;else if(n=I$(t.parentLocale),n!=null)o=n._config;else return Sb[t.parentLocale]||(Sb[t.parentLocale]=[]),Sb[t.parentLocale].push({name:e,config:t}),null;return ir[e]=new PA(uE(o,t)),Sb[e]&&Sb[e].forEach(function(i){FA(i.name,i.config)}),jm(e),ir[e]}else return delete ir[e],null}function g0e(e,t){if(t!=null){var n,o,i=IG;ir[e]!=null&&ir[e].parentLocale!=null?ir[e].set(uE(ir[e]._config,t)):(o=I$(e),o!=null&&(i=o._config),t=uE(i,t),o==null&&(t.abbr=e),n=new PA(t),n.parentLocale=ir[e],ir[e]=n),jm(e)}else ir[e]!=null&&(ir[e].parentLocale!=null?(ir[e]=ir[e].parentLocale,e===jm()&&jm(e)):ir[e]!=null&&delete ir[e]);return ir[e]}function If(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return l2;if(!Xd(e)){if(t=I$(e),t)return t;e=[e]}return m0e(e)}function v0e(){return hE(ir)}function zA(e){var t,n=e._a;return n&&$o(e).overflow===-2&&(t=n[ef]<0||n[ef]>11?ef:n[Nu]<1||n[Nu]>MA(n[pa],n[ef])?Nu:n[_s]<0||n[_s]>24||n[_s]===24&&(n[Fd]!==0||n[tf]!==0||n[c1]!==0)?_s:n[Fd]<0||n[Fd]>59?Fd:n[tf]<0||n[tf]>59?tf:n[c1]<0||n[c1]>999?c1:-1,$o(e)._overflowDayOfYear&&(t<pa||t>Nu)&&(t=Nu),$o(e)._overflowWeeks&&t===-1&&(t=kbe),$o(e)._overflowWeekday&&t===-1&&(t=wbe),$o(e).overflow=t),e}var _0e=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,y0e=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,b0e=/Z|[+-]\d\d(?::?\d\d)?/,ow=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],P7=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],k0e=/^\/?Date\((-?\d+)/i,w0e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,$0e={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function PG(e){var t,n,o=e._i,i=_0e.exec(o)||y0e.exec(o),r,s,a,l,d=ow.length,u=P7.length;if(i){for($o(e).iso=!0,t=0,n=d;t<n;t++)if(ow[t][1].exec(i[1])){s=ow[t][0],r=ow[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(P7[t][1].exec(i[3])){a=(i[2]||" ")+P7[t][0];break}if(a==null){e._isValid=!1;return}}if(!r&&a!=null){e._isValid=!1;return}if(i[4])if(b0e.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=s+(a||"")+(l||""),BA(e)}else e._isValid=!1}function C0e(e,t,n,o,i,r){var s=[S0e(e),yG.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(i,10)];return r&&s.push(parseInt(r,10)),s}function S0e(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function T0e(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function E0e(e,t,n){if(e){var o=SG.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(o!==i)return $o(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function I0e(e,t,n){if(e)return $0e[e];if(t)return 0;var o=parseInt(n,10),i=o%100,r=(o-i)/100;return r*60+i}function AG(e){var t=w0e.exec(T0e(e._i)),n;if(t){if(n=C0e(t[4],t[3],t[2],t[5],t[6],t[7]),!E0e(t[1],n,e))return;e._a=n,e._tzm=I0e(t[8],t[9],t[10]),e._d=s2.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),$o(e).rfc2822=!0}else e._isValid=!1}function P0e(e){var t=k0e.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(PG(e),e._isValid===!1)delete e._isValid;else return;if(AG(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:mt.createFromInputFallback(e)}mt.createFromInputFallback=sd("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Dv(e,t,n){return e??t??n}function A0e(e){var t=new Date(mt.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function UA(e){var t,n,o=[],i,r,s;if(!e._d){for(i=A0e(e),e._w&&e._a[Nu]==null&&e._a[ef]==null&&D0e(e),e._dayOfYear!=null&&(s=Dv(e._a[pa],i[pa]),(e._dayOfYear>C0(s)||e._dayOfYear===0)&&($o(e)._overflowDayOfYear=!0),n=s2(s,0,e._dayOfYear),e._a[ef]=n.getUTCMonth(),e._a[Nu]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[_s]===24&&e._a[Fd]===0&&e._a[tf]===0&&e._a[c1]===0&&(e._nextDay=!0,e._a[_s]=0),e._d=(e._useUTC?s2:Rbe).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_s]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==r&&($o(e).weekdayMismatch=!0)}}function D0e(e){var t,n,o,i,r,s,a,l,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(r=1,s=4,n=Dv(t.GG,e._a[pa],a2(Qi(),1,4).year),o=Dv(t.W,1),i=Dv(t.E,1),(i<1||i>7)&&(l=!0)):(r=e._locale._week.dow,s=e._locale._week.doy,d=a2(Qi(),r,s),n=Dv(t.gg,e._a[pa],d.year),o=Dv(t.w,d.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(l=!0)):i=r),o<1||o>uf(n,r,s)?$o(e)._overflowWeeks=!0:l!=null?$o(e)._overflowWeekday=!0:(a=CG(n,o,i,r,s),e._a[pa]=a.year,e._dayOfYear=a.dayOfYear)}mt.ISO_8601=function(){};mt.RFC_2822=function(){};function BA(e){if(e._f===mt.ISO_8601){PG(e);return}if(e._f===mt.RFC_2822){AG(e);return}e._a=[],$o(e).empty=!0;var t=""+e._i,n,o,i,r,s,a=t.length,l=0,d,u;for(i=hG(e._f,e._locale).match(AA)||[],u=i.length,n=0;n<u;n++)r=i[n],o=(t.match(_be(r,e))||[])[0],o&&(s=t.substr(0,t.indexOf(o)),s.length>0&&$o(e).unusedInput.push(s),t=t.slice(t.indexOf(o)+o.length),l+=o.length),a_[r]?(o?$o(e).empty=!1:$o(e).unusedTokens.push(r),bbe(r,o,e)):e._strict&&!o&&$o(e).unusedTokens.push(r);$o(e).charsLeftOver=a-l,t.length>0&&$o(e).unusedInput.push(t),e._a[_s]<=12&&$o(e).bigHour===!0&&e._a[_s]>0&&($o(e).bigHour=void 0),$o(e).parsedDateParts=e._a.slice(0),$o(e).meridiem=e._meridiem,e._a[_s]=x0e(e._locale,e._a[_s],e._meridiem),d=$o(e).era,d!==null&&(e._a[pa]=e._locale.erasConvertYear(d,e._a[pa])),UA(e),zA(e)}function x0e(e,t,n){var o;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(o=e.isPM(n),o&&t<12&&(t+=12),!o&&t===12&&(t=0)),t)}function O0e(e){var t,n,o,i,r,s,a=!1,l=e._f.length;if(l===0){$o(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)r=0,s=!1,t=IA({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],BA(t),EA(t)&&(s=!0),r+=$o(t).charsLeftOver,r+=$o(t).unusedTokens.length*10,$o(t).score=r,a?r<o&&(o=r,n=t):(o==null||r<o||s)&&(o=r,n=t,s&&(a=!0));xm(e,n||t)}function L0e(e){if(!e._d){var t=DA(e._i),n=t.day===void 0?t.date:t.day;e._a=cG([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),UA(e)}}function M0e(e){var t=new n3(zA(DG(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function DG(e){var t=e._i,n=e._f;return e._locale=e._locale||If(e._l),t===null||n===void 0&&t===""?k$({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Qd(t)?new n3(zA(t)):(t3(t)?e._d=t:Xd(n)?O0e(e):n?BA(e):N0e(e),EA(e)||(e._d=null),e))}function N0e(e){var t=e._i;vl(t)?e._d=new Date(mt.now()):t3(t)?e._d=new Date(t.valueOf()):typeof t=="string"?P0e(e):Xd(t)?(e._a=cG(t.slice(0),function(n){return parseInt(n,10)}),UA(e)):w1(t)?L0e(e):bf(t)?e._d=new Date(t):mt.createFromInputFallback(e)}function xG(e,t,n,o,i){var r={};return(t===!0||t===!1)&&(o=t,t=void 0),(n===!0||n===!1)&&(o=n,n=void 0),(w1(e)&&TA(e)||Xd(e)&&e.length===0)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=o,M0e(r)}function Qi(e,t,n,o){return xG(e,t,n,o,!1)}var R0e=sd("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Qi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:k$()}),j0e=sd("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Qi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:k$()});function OG(e,t){var n,o;if(t.length===1&&Xd(t[0])&&(t=t[0]),!t.length)return Qi();for(n=t[0],o=1;o<t.length;++o)(!t[o].isValid()||t[o][e](n))&&(n=t[o]);return n}function F0e(){var e=[].slice.call(arguments,0);return OG("isBefore",e)}function z0e(){var e=[].slice.call(arguments,0);return OG("isAfter",e)}var U0e=function(){return Date.now?Date.now():+new Date},Tb=["year","quarter","month","week","day","hour","minute","second","millisecond"];function B0e(e){var t,n=!1,o,i=Tb.length;for(t in e)if(vi(e,t)&&!(Fr.call(Tb,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<i;++o)if(e[Tb[o]]){if(n)return!1;parseFloat(e[Tb[o]])!==Qo(e[Tb[o]])&&(n=!0)}return!0}function H0e(){return this._isValid}function V0e(){return au(NaN)}function P$(e){var t=DA(e),n=t.year||0,o=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,d=t.second||0,u=t.millisecond||0;this._isValid=B0e(t),this._milliseconds=+u+d*1e3+l*6e4+a*1e3*60*60,this._days=+s+r*7,this._months=+i+o*3+n*12,this._data={},this._locale=If(),this._bubble()}function D8(e){return e instanceof P$}function mE(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function q0e(e,t,n){var o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,s;for(s=0;s<o;s++)(n&&e[s]!==t[s]||!n&&Qo(e[s])!==Qo(t[s]))&&r++;return r+i}function LG(e,t){Fn(e,0,0,function(){var n=this.utcOffset(),o="+";return n<0&&(n=-n,o="-"),o+th(~~(n/60),2)+t+th(~~n%60,2)})}LG("Z",":");LG("ZZ","");Sn("Z",T$);Sn("ZZ",T$);Ui(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=HA(T$,e)});var Y0e=/([\+\-]|\d\d)/gi;function HA(e,t){var n=(t||"").match(e),o,i,r;return n===null?null:(o=n[n.length-1]||[],i=(o+"").match(Y0e)||["-",0,0],r=+(i[1]*60)+Qo(i[2]),r===0?0:i[0]==="+"?r:-r)}function VA(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(Qd(e)||t3(e)?e.valueOf():Qi(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),mt.updateOffset(n,!1),n):Qi(e).local()}function pE(e){return-Math.round(e._d.getTimezoneOffset())}mt.updateOffset=function(){};function W0e(e,t,n){var o=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=HA(T$,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=pE(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?RG(this,au(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,mt.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:pE(this)}function G0e(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Z0e(e){return this.utcOffset(0,e)}function K0e(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pE(this),"m")),this}function J0e(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=HA(gbe,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function X0e(e){return this.isValid()?(e=e?Qi(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Q0e(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function e2e(){if(!vl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return IA(e,this),e=DG(e),e._a?(t=e._isUTC?dh(e._a):Qi(e._a),this._isDSTShifted=this.isValid()&&q0e(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function t2e(){return this.isValid()?!this._isUTC:!1}function n2e(){return this.isValid()?this._isUTC:!1}function MG(){return this.isValid()?this._isUTC&&this._offset===0:!1}var o2e=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,i2e=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function au(e,t){var n=e,o=null,i,r,s;return D8(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:bf(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=o2e.exec(e))?(i=o[1]==="-"?-1:1,n={y:0,d:Qo(o[Nu])*i,h:Qo(o[_s])*i,m:Qo(o[Fd])*i,s:Qo(o[tf])*i,ms:Qo(mE(o[c1]*1e3))*i}):(o=i2e.exec(e))?(i=o[1]==="-"?-1:1,n={y:Fp(o[2],i),M:Fp(o[3],i),w:Fp(o[4],i),d:Fp(o[5],i),h:Fp(o[6],i),m:Fp(o[7],i),s:Fp(o[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=r2e(Qi(n.from),Qi(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),r=new P$(n),D8(e)&&vi(e,"_locale")&&(r._locale=e._locale),D8(e)&&vi(e,"_isValid")&&(r._isValid=e._isValid),r}au.fn=P$.prototype;au.invalid=V0e;function Fp(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function BR(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function r2e(e,t){var n;return e.isValid()&&t.isValid()?(t=VA(t,e),e.isBefore(t)?n=BR(e,t):(n=BR(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function NG(e,t){return function(n,o){var i,r;return o!==null&&!isNaN(+o)&&(uG(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=o,o=r),i=au(n,o),RG(this,i,e),this}}function RG(e,t,n,o){var i=t._milliseconds,r=mE(t._days),s=mE(t._months);e.isValid()&&(o=o??!0,s&&kG(e,r2(e,"Month")+s*n),r&&_G(e,"Date",r2(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&mt.updateOffset(e,r||s))}var s2e=NG(1,"add"),a2e=NG(-1,"subtract");function jG(e){return typeof e=="string"||e instanceof String}function l2e(e){return Qd(e)||t3(e)||jG(e)||bf(e)||d2e(e)||c2e(e)||e===null||e===void 0}function c2e(e){var t=w1(e)&&!TA(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,r,s=o.length;for(i=0;i<s;i+=1)r=o[i],n=n||vi(e,r);return t&&n}function d2e(e){var t=Xd(e),n=!1;return t&&(n=e.filter(function(o){return!bf(o)&&jG(e)}).length===0),t&&n}function u2e(e){var t=w1(e)&&!TA(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,r;for(i=0;i<o.length;i+=1)r=o[i],n=n||vi(e,r);return t&&n}function h2e(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function f2e(e,t){arguments.length===1&&(arguments[0]?l2e(arguments[0])?(e=arguments[0],t=void 0):u2e(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Qi(),o=VA(n,this).startOf("day"),i=mt.calendarFormat(this,o)||"sameElse",r=t&&(uh(t[i])?t[i].call(this,n):t[i]);return this.format(r||this.localeData().calendar(i,this,Qi(n)))}function m2e(){return new n3(this)}function p2e(e,t){var n=Qd(e)?e:Qi(e);return this.isValid()&&n.isValid()?(t=ad(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function g2e(e,t){var n=Qd(e)?e:Qi(e);return this.isValid()&&n.isValid()?(t=ad(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function v2e(e,t,n,o){var i=Qd(e)?e:Qi(e),r=Qd(t)?t:Qi(t);return this.isValid()&&i.isValid()&&r.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(o[1]===")"?this.isBefore(r,n):!this.isAfter(r,n))):!1}function _2e(e,t){var n=Qd(e)?e:Qi(e),o;return this.isValid()&&n.isValid()?(t=ad(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(o=n.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf())):!1}function y2e(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function b2e(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function k2e(e,t,n){var o,i,r;if(!this.isValid())return NaN;if(o=VA(e,this),!o.isValid())return NaN;switch(i=(o.utcOffset()-this.utcOffset())*6e4,t=ad(t),t){case"year":r=x8(this,o)/12;break;case"month":r=x8(this,o);break;case"quarter":r=x8(this,o)/3;break;case"second":r=(this-o)/1e3;break;case"minute":r=(this-o)/6e4;break;case"hour":r=(this-o)/36e5;break;case"day":r=(this-o-i)/864e5;break;case"week":r=(this-o-i)/6048e5;break;default:r=this-o}return n?r:Fc(r)}function x8(e,t){if(e.date()<t.date())return-x8(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),o=e.clone().add(n,"months"),i,r;return t-o<0?(i=e.clone().add(n-1,"months"),r=(t-o)/(o-i)):(i=e.clone().add(n+1,"months"),r=(t-o)/(i-o)),-(n+r)||0}mt.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";mt.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function w2e(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $2e(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?A8(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):uh(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",A8(n,"Z")):A8(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function C2e(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,o,i,r;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",r=t+'[")]',this.format(n+o+i+r)}function S2e(e){e||(e=this.isUtc()?mt.defaultFormatUtc:mt.defaultFormat);var t=A8(this,e);return this.localeData().postformat(t)}function T2e(e,t){return this.isValid()&&(Qd(e)&&e.isValid()||Qi(e).isValid())?au({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function E2e(e){return this.from(Qi(),e)}function I2e(e,t){return this.isValid()&&(Qd(e)&&e.isValid()||Qi(e).isValid())?au({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function P2e(e){return this.to(Qi(),e)}function FG(e){var t;return e===void 0?this._locale._abbr:(t=If(e),t!=null&&(this._locale=t),this)}var zG=sd("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function UG(){return this._locale}var x4=1e3,l_=60*x4,O4=60*l_,BG=(365*400+97)*24*O4;function c_(e,t){return(e%t+t)%t}function HG(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-BG:new Date(e,t,n).valueOf()}function VG(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-BG:Date.UTC(e,t,n)}function A2e(e){var t,n;if(e=ad(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?VG:HG,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=c_(t+(this._isUTC?0:this.utcOffset()*l_),O4);break;case"minute":t=this._d.valueOf(),t-=c_(t,l_);break;case"second":t=this._d.valueOf(),t-=c_(t,x4);break}return this._d.setTime(t),mt.updateOffset(this,!0),this}function D2e(e){var t,n;if(e=ad(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?VG:HG,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=O4-c_(t+(this._isUTC?0:this.utcOffset()*l_),O4)-1;break;case"minute":t=this._d.valueOf(),t+=l_-c_(t,l_)-1;break;case"second":t=this._d.valueOf(),t+=x4-c_(t,x4)-1;break}return this._d.setTime(t),mt.updateOffset(this,!0),this}function x2e(){return this._d.valueOf()-(this._offset||0)*6e4}function O2e(){return Math.floor(this.valueOf()/1e3)}function L2e(){return new Date(this.valueOf())}function M2e(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function N2e(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function R2e(){return this.isValid()?this.toISOString():null}function j2e(){return EA(this)}function F2e(){return xm({},$o(this))}function z2e(){return $o(this).overflow}function U2e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Fn("N",0,0,"eraAbbr");Fn("NN",0,0,"eraAbbr");Fn("NNN",0,0,"eraAbbr");Fn("NNNN",0,0,"eraName");Fn("NNNNN",0,0,"eraNarrow");Fn("y",["y",1],"yo","eraYear");Fn("y",["yy",2],0,"eraYear");Fn("y",["yyy",3],0,"eraYear");Fn("y",["yyyy",4],0,"eraYear");Sn("N",qA);Sn("NN",qA);Sn("NNN",qA);Sn("NNNN",X2e);Sn("NNNNN",Q2e);Ui(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){var i=n._locale.erasParse(e,o,n._strict);i?$o(n).era=i:$o(n).invalidEra=e});Sn("y",fy);Sn("yy",fy);Sn("yyy",fy);Sn("yyyy",fy);Sn("yo",e3e);Ui(["y","yy","yyy","yyyy"],pa);Ui(["yo"],function(e,t,n,o){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[pa]=n._locale.eraYearOrdinalParse(e,i):t[pa]=parseInt(e,10)});function B2e(e,t){var n,o,i,r=this._eras||If("en")._eras;for(n=0,o=r.length;n<o;++n){switch(typeof r[n].since){case"string":i=mt(r[n].since).startOf("day"),r[n].since=i.valueOf();break}switch(typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":i=mt(r[n].until).startOf("day").valueOf(),r[n].until=i.valueOf();break}}return r}function H2e(e,t,n){var o,i,r=this.eras(),s,a,l;for(e=e.toUpperCase(),o=0,i=r.length;o<i;++o)if(s=r[o].name.toUpperCase(),a=r[o].abbr.toUpperCase(),l=r[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return r[o];break;case"NNNN":if(s===e)return r[o];break;case"NNNNN":if(l===e)return r[o];break}else if([s,a,l].indexOf(e)>=0)return r[o]}function V2e(e,t){var n=e.since<=e.until?1:-1;return t===void 0?mt(e.since).year():mt(e.since).year()+(t-e.offset)*n}function q2e(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].name;return""}function Y2e(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].narrow;return""}function W2e(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].abbr;return""}function G2e(){var e,t,n,o,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,o=this.clone().startOf("day").valueOf(),i[e].since<=o&&o<=i[e].until||i[e].until<=o&&o<=i[e].since)return(this.year()-mt(i[e].since).year())*n+i[e].offset;return this.year()}function Z2e(e){return vi(this,"_erasNameRegex")||YA.call(this),e?this._erasNameRegex:this._erasRegex}function K2e(e){return vi(this,"_erasAbbrRegex")||YA.call(this),e?this._erasAbbrRegex:this._erasRegex}function J2e(e){return vi(this,"_erasNarrowRegex")||YA.call(this),e?this._erasNarrowRegex:this._erasRegex}function qA(e,t){return t.erasAbbrRegex(e)}function X2e(e,t){return t.erasNameRegex(e)}function Q2e(e,t){return t.erasNarrowRegex(e)}function e3e(e,t){return t._eraYearOrdinalRegex||fy}function YA(){var e=[],t=[],n=[],o=[],i,r,s,a,l,d=this.eras();for(i=0,r=d.length;i<r;++i)s=df(d[i].name),a=df(d[i].abbr),l=df(d[i].narrow),t.push(s),e.push(a),n.push(l),o.push(s),o.push(a),o.push(l);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Fn(0,["gg",2],0,function(){return this.weekYear()%100});Fn(0,["GG",2],0,function(){return this.isoWeekYear()%100});function A$(e,t){Fn(0,[e,e.length],0,t)}A$("gggg","weekYear");A$("ggggg","weekYear");A$("GGGG","isoWeekYear");A$("GGGGG","isoWeekYear");Sn("G",S$);Sn("g",S$);Sn("GG",er,dc);Sn("gg",er,dc);Sn("GGGG",OA,xA);Sn("gggg",OA,xA);Sn("GGGGG",C$,w$);Sn("ggggg",C$,w$);i3(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=Qo(e)});i3(["gg","GG"],function(e,t,n,o){t[o]=mt.parseTwoDigitYear(e)});function t3e(e){return qG.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function n3e(e){return qG.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function o3e(){return uf(this.year(),1,4)}function i3e(){return uf(this.isoWeekYear(),1,4)}function r3e(){var e=this.localeData()._week;return uf(this.year(),e.dow,e.doy)}function s3e(){var e=this.localeData()._week;return uf(this.weekYear(),e.dow,e.doy)}function qG(e,t,n,o,i){var r;return e==null?a2(this,o,i).year:(r=uf(e,o,i),t>r&&(t=r),a3e.call(this,e,t,n,o,i))}function a3e(e,t,n,o,i){var r=CG(e,t,n,o,i),s=s2(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Fn("Q",0,"Qo","quarter");Sn("Q",fG);Ui("Q",function(e,t){t[ef]=(Qo(e)-1)*3});function l3e(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Fn("D",["DD",2],"Do","date");Sn("D",er,my);Sn("DD",er,dc);Sn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ui(["D","DD"],Nu);Ui("Do",function(e,t){t[Nu]=Qo(e.match(er)[0])});var YG=py("Date",!0);Fn("DDD",["DDDD",3],"DDDo","dayOfYear");Sn("DDD",$$);Sn("DDDD",mG);Ui(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Qo(e)});function c3e(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Fn("m",["mm",2],0,"minute");Sn("m",er,LA);Sn("mm",er,dc);Ui(["m","mm"],Fd);var d3e=py("Minutes",!1);Fn("s",["ss",2],0,"second");Sn("s",er,LA);Sn("ss",er,dc);Ui(["s","ss"],tf);var u3e=py("Seconds",!1);Fn("S",0,0,function(){return~~(this.millisecond()/100)});Fn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Fn(0,["SSS",3],0,"millisecond");Fn(0,["SSSS",4],0,function(){return this.millisecond()*10});Fn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Fn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Fn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Fn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Fn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Sn("S",$$,fG);Sn("SS",$$,dc);Sn("SSS",$$,mG);var Om,WG;for(Om="SSSS";Om.length<=9;Om+="S")Sn(Om,fy);function h3e(e,t){t[c1]=Qo(("0."+e)*1e3)}for(Om="S";Om.length<=9;Om+="S")Ui(Om,h3e);WG=py("Milliseconds",!1);Fn("z",0,0,"zoneAbbr");Fn("zz",0,0,"zoneName");function f3e(){return this._isUTC?"UTC":""}function m3e(){return this._isUTC?"Coordinated Universal Time":""}var rn=n3.prototype;rn.add=s2e;rn.calendar=f2e;rn.clone=m2e;rn.diff=k2e;rn.endOf=D2e;rn.format=S2e;rn.from=T2e;rn.fromNow=E2e;rn.to=I2e;rn.toNow=P2e;rn.get=Cbe;rn.invalidAt=z2e;rn.isAfter=p2e;rn.isBefore=g2e;rn.isBetween=v2e;rn.isSame=_2e;rn.isSameOrAfter=y2e;rn.isSameOrBefore=b2e;rn.isValid=j2e;rn.lang=zG;rn.locale=FG;rn.localeData=UG;rn.max=j0e;rn.min=R0e;rn.parsingFlags=F2e;rn.set=Sbe;rn.startOf=A2e;rn.subtract=a2e;rn.toArray=M2e;rn.toObject=N2e;rn.toDate=L2e;rn.toISOString=$2e;rn.inspect=C2e;typeof Symbol<"u"&&Symbol.for!=null&&(rn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});rn.toJSON=R2e;rn.toString=w2e;rn.unix=O2e;rn.valueOf=x2e;rn.creationData=U2e;rn.eraName=q2e;rn.eraNarrow=Y2e;rn.eraAbbr=W2e;rn.eraYear=G2e;rn.year=vG;rn.isLeapYear=$be;rn.weekYear=t3e;rn.isoWeekYear=n3e;rn.quarter=rn.quarters=l3e;rn.month=wG;rn.daysInMonth=Lbe;rn.week=rn.weeks=Bbe;rn.isoWeek=rn.isoWeeks=Hbe;rn.weeksInYear=r3e;rn.weeksInWeekYear=s3e;rn.isoWeeksInYear=o3e;rn.isoWeeksInISOWeekYear=i3e;rn.date=YG;rn.day=rn.days=n0e;rn.weekday=o0e;rn.isoWeekday=i0e;rn.dayOfYear=c3e;rn.hour=rn.hours=u0e;rn.minute=rn.minutes=d3e;rn.second=rn.seconds=u3e;rn.millisecond=rn.milliseconds=WG;rn.utcOffset=W0e;rn.utc=Z0e;rn.local=K0e;rn.parseZone=J0e;rn.hasAlignedHourOffset=X0e;rn.isDST=Q0e;rn.isLocal=t2e;rn.isUtcOffset=n2e;rn.isUtc=MG;rn.isUTC=MG;rn.zoneAbbr=f3e;rn.zoneName=m3e;rn.dates=sd("dates accessor is deprecated. Use date instead.",YG);rn.months=sd("months accessor is deprecated. Use month instead",wG);rn.years=sd("years accessor is deprecated. Use year instead",vG);rn.zone=sd("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",G0e);rn.isDSTShifted=sd("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",e2e);function p3e(e){return Qi(e*1e3)}function g3e(){return Qi.apply(null,arguments).parseZone()}function GG(e){return e}var _i=PA.prototype;_i.calendar=tbe;_i.longDateFormat=rbe;_i.invalidDate=abe;_i.ordinal=dbe;_i.preparse=GG;_i.postformat=GG;_i.relativeTime=hbe;_i.pastFuture=fbe;_i.set=Qye;_i.eras=B2e;_i.erasParse=H2e;_i.erasConvertYear=V2e;_i.erasAbbrRegex=K2e;_i.erasNameRegex=Z2e;_i.erasNarrowRegex=J2e;_i.months=Abe;_i.monthsShort=Dbe;_i.monthsParse=Obe;_i.monthsRegex=Nbe;_i.monthsShortRegex=Mbe;_i.week=jbe;_i.firstDayOfYear=Ube;_i.firstDayOfWeek=zbe;_i.weekdays=Jbe;_i.weekdaysMin=Qbe;_i.weekdaysShort=Xbe;_i.weekdaysParse=t0e;_i.weekdaysRegex=r0e;_i.weekdaysShortRegex=s0e;_i.weekdaysMinRegex=a0e;_i.isPM=c0e;_i.meridiem=h0e;function L4(e,t,n,o){var i=If(),r=dh().set(o,t);return i[n](r,e)}function ZG(e,t,n){if(bf(e)&&(t=e,e=void 0),e=e||"",t!=null)return L4(e,t,n,"month");var o,i=[];for(o=0;o<12;o++)i[o]=L4(e,o,n,"month");return i}function WA(e,t,n,o){typeof e=="boolean"?(bf(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,bf(t)&&(n=t,t=void 0),t=t||"");var i=If(),r=e?i._week.dow:0,s,a=[];if(n!=null)return L4(t,(n+r)%7,o,"day");for(s=0;s<7;s++)a[s]=L4(t,(s+r)%7,o,"day");return a}function v3e(e,t){return ZG(e,t,"months")}function _3e(e,t){return ZG(e,t,"monthsShort")}function y3e(e,t,n){return WA(e,t,n,"weekdays")}function b3e(e,t,n){return WA(e,t,n,"weekdaysShort")}function k3e(e,t,n){return WA(e,t,n,"weekdaysMin")}jm("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Qo(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});mt.lang=sd("moment.lang is deprecated. Use moment.locale instead.",jm);mt.langData=sd("moment.langData is deprecated. Use moment.localeData instead.",If);var Mh=Math.abs;function w3e(){var e=this._data;return this._milliseconds=Mh(this._milliseconds),this._days=Mh(this._days),this._months=Mh(this._months),e.milliseconds=Mh(e.milliseconds),e.seconds=Mh(e.seconds),e.minutes=Mh(e.minutes),e.hours=Mh(e.hours),e.months=Mh(e.months),e.years=Mh(e.years),this}function KG(e,t,n,o){var i=au(t,n);return e._milliseconds+=o*i._milliseconds,e._days+=o*i._days,e._months+=o*i._months,e._bubble()}function $3e(e,t){return KG(this,e,t,1)}function C3e(e,t){return KG(this,e,t,-1)}function HR(e){return e<0?Math.floor(e):Math.ceil(e)}function S3e(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data,i,r,s,a,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=HR(gE(n)+t)*864e5,t=0,n=0),o.milliseconds=e%1e3,i=Fc(e/1e3),o.seconds=i%60,r=Fc(i/60),o.minutes=r%60,s=Fc(r/60),o.hours=s%24,t+=Fc(s/24),l=Fc(JG(t)),n+=l,t-=HR(gE(l)),a=Fc(n/12),n%=12,o.days=t,o.months=n,o.years=a,this}function JG(e){return e*4800/146097}function gE(e){return e*146097/4800}function T3e(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if(e=ad(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,n=this._months+JG(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(gE(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return t*24+o/36e5;case"minute":return t*1440+o/6e4;case"second":return t*86400+o/1e3;case"millisecond":return Math.floor(t*864e5)+o;default:throw new Error("Unknown unit "+e)}}function Pf(e){return function(){return this.as(e)}}var XG=Pf("ms"),E3e=Pf("s"),I3e=Pf("m"),P3e=Pf("h"),A3e=Pf("d"),D3e=Pf("w"),x3e=Pf("M"),O3e=Pf("Q"),L3e=Pf("y"),M3e=XG;function N3e(){return au(this)}function R3e(e){return e=ad(e),this.isValid()?this[e+"s"]():NaN}function rg(e){return function(){return this.isValid()?this._data[e]:NaN}}var j3e=rg("milliseconds"),F3e=rg("seconds"),z3e=rg("minutes"),U3e=rg("hours"),B3e=rg("days"),H3e=rg("months"),V3e=rg("years");function q3e(){return Fc(this.days()/7)}var Vh=Math.round,Hv={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Y3e(e,t,n,o,i){return i.relativeTime(t||1,!!n,e,o)}function W3e(e,t,n,o){var i=au(e).abs(),r=Vh(i.as("s")),s=Vh(i.as("m")),a=Vh(i.as("h")),l=Vh(i.as("d")),d=Vh(i.as("M")),u=Vh(i.as("w")),f=Vh(i.as("y")),p=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),p=p||d<=1&&["M"]||d<n.M&&["MM",d]||f<=1&&["y"]||["yy",f],p[2]=t,p[3]=+e>0,p[4]=o,Y3e.apply(null,p)}function G3e(e){return e===void 0?Vh:typeof e=="function"?(Vh=e,!0):!1}function Z3e(e,t){return Hv[e]===void 0?!1:t===void 0?Hv[e]:(Hv[e]=t,e==="s"&&(Hv.ss=t-1),!0)}function K3e(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,o=Hv,i,r;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(o=Object.assign({},Hv,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),i=this.localeData(),r=W3e(this,!n,o,i),n&&(r=i.pastFuture(+this,r)),i.postformat(r)}var A7=Math.abs;function sv(e){return(e>0)-(e<0)||+e}function D$(){if(!this.isValid())return this.localeData().invalidDate();var e=A7(this._milliseconds)/1e3,t=A7(this._days),n=A7(this._months),o,i,r,s,a=this.asSeconds(),l,d,u,f;return a?(o=Fc(e/60),i=Fc(o/60),e%=60,o%=60,r=Fc(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",d=sv(this._months)!==sv(a)?"-":"",u=sv(this._days)!==sv(a)?"-":"",f=sv(this._milliseconds)!==sv(a)?"-":"",l+"P"+(r?d+r+"Y":"")+(n?d+n+"M":"")+(t?u+t+"D":"")+(i||o||e?"T":"")+(i?f+i+"H":"")+(o?f+o+"M":"")+(e?f+s+"S":"")):"P0D"}var fi=P$.prototype;fi.isValid=H0e;fi.abs=w3e;fi.add=$3e;fi.subtract=C3e;fi.as=T3e;fi.asMilliseconds=XG;fi.asSeconds=E3e;fi.asMinutes=I3e;fi.asHours=P3e;fi.asDays=A3e;fi.asWeeks=D3e;fi.asMonths=x3e;fi.asQuarters=O3e;fi.asYears=L3e;fi.valueOf=M3e;fi._bubble=S3e;fi.clone=N3e;fi.get=R3e;fi.milliseconds=j3e;fi.seconds=F3e;fi.minutes=z3e;fi.hours=U3e;fi.days=B3e;fi.weeks=q3e;fi.months=H3e;fi.years=V3e;fi.humanize=K3e;fi.toISOString=D$;fi.toString=D$;fi.toJSON=D$;fi.locale=FG;fi.localeData=UG;fi.toIsoString=sd("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",D$);fi.lang=zG;Fn("X",0,0,"unix");Fn("x",0,0,"valueOf");Sn("x",S$);Sn("X",vbe);Ui("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Ui("x",function(e,t,n){n._d=new Date(Qo(e))});//! moment.js mt.version="2.30.1";Jye(Qi);mt.fn=rn;mt.min=F0e;mt.max=z0e;mt.now=U0e;mt.utc=dh;mt.unix=p3e;mt.months=v3e;mt.isDate=t3;mt.locale=jm;mt.invalid=k$;mt.duration=au;mt.isMoment=Qd;mt.weekdays=y3e;mt.parseZone=g3e;mt.localeData=If;mt.isDuration=D8;mt.monthsShort=_3e;mt.weekdaysMin=k3e;mt.defineLocale=FA;mt.updateLocale=g0e;mt.locales=v0e;mt.weekdaysShort=b3e;mt.normalizeUnits=ad;mt.relativeTimeRounding=G3e;mt.relativeTimeThreshold=Z3e;mt.calendarFormat=h2e;mt.prototype=rn;mt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const J3e=Object.freeze(Object.defineProperty({__proto__:null,default:mt},Symbol.toStringTag,{value:"Module"}));var X3e={exports:{}},D7={exports:{}};/*! * jQuery JavaScript Library v3.7.1 * https://jquery.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2023-08-28T13:37Z */var VR;function Q3e(){return VR||(VR=1,function(e){(function(t,n){e.exports=t.document?n(t,!0):function(o){if(!o.document)throw new Error("jQuery requires a window with a document");return n(o)}})(typeof window<"u"?window:bo,function(t,n){var o=[],i=Object.getPrototypeOf,r=o.slice,s=o.flat?function(A){return o.flat.call(A)}:function(A){return o.concat.apply([],A)},a=o.push,l=o.indexOf,d={},u=d.toString,f=d.hasOwnProperty,p=f.toString,v=p.call(Object),_={},k=function(N){return typeof N=="function"&&typeof N.nodeType!="number"&&typeof N.item!="function"},C=function(N){return N!=null&&N===N.window},$=t.document,E={type:!0,src:!0,nonce:!0,noModule:!0};function P(A,N,K){K=K||$;var ne,he,ue=K.createElement("script");if(ue.text=A,N)for(ne in E)he=N[ne]||N.getAttribute&&N.getAttribute(ne),he&&ue.setAttribute(ne,he);K.head.appendChild(ue).parentNode.removeChild(ue)}function I(A){return A==null?A+"":typeof A=="object"||typeof A=="function"?d[u.call(A)]||"object":typeof A}var O="3.7.1",L=/HTML$/i,S=function(A,N){return new S.fn.init(A,N)};S.fn=S.prototype={jquery:O,constructor:S,length:0,toArray:function(){return r.call(this)},get:function(A){return A==null?r.call(this):A<0?this[A+this.length]:this[A]},pushStack:function(A){var N=S.merge(this.constructor(),A);return N.prevObject=this,N},each:function(A){return S.each(this,A)},map:function(A){return this.pushStack(S.map(this,function(N,K){return A.call(N,K,N)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(A,N){return(N+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(A,N){return N%2}))},eq:function(A){var N=this.length,K=+A+(A<0?N:0);return this.pushStack(K>=0&&K<N?[this[K]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:o.sort,splice:o.splice},S.extend=S.fn.extend=function(){var A,N,K,ne,he,ue,ke=arguments[0]||{},Qe=1,He=arguments.length,ht=!1;for(typeof ke=="boolean"&&(ht=ke,ke=arguments[Qe]||{},Qe++),typeof ke!="object"&&!k(ke)&&(ke={}),Qe===He&&(ke=this,Qe--);Qe<He;Qe++)if((A=arguments[Qe])!=null)for(N in A)ne=A[N],!(N==="__proto__"||ke===ne)&&(ht&&ne&&(S.isPlainObject(ne)||(he=Array.isArray(ne)))?(K=ke[N],he&&!Array.isArray(K)?ue=[]:!he&&!S.isPlainObject(K)?ue={}:ue=K,he=!1,ke[N]=S.extend(ht,ue,ne)):ne!==void 0&&(ke[N]=ne));return ke},S.extend({expando:"jQuery"+(O+Math.random()).replace(/\D/g,""),isReady:!0,error:function(A){throw new Error(A)},noop:function(){},isPlainObject:function(A){var N,K;return!A||u.call(A)!=="[object Object]"?!1:(N=i(A),N?(K=f.call(N,"constructor")&&N.constructor,typeof K=="function"&&p.call(K)===v):!0)},isEmptyObject:function(A){var N;for(N in A)return!1;return!0},globalEval:function(A,N,K){P(A,{nonce:N&&N.nonce},K)},each:function(A,N){var K,ne=0;if(j(A))for(K=A.length;ne<K&&N.call(A[ne],ne,A[ne])!==!1;ne++);else for(ne in A)if(N.call(A[ne],ne,A[ne])===!1)break;return A},text:function(A){var N,K="",ne=0,he=A.nodeType;if(!he)for(;N=A[ne++];)K+=S.text(N);return he===1||he===11?A.textContent:he===9?A.documentElement.textContent:he===3||he===4?A.nodeValue:K},makeArray:function(A,N){var K=N||[];return A!=null&&(j(Object(A))?S.merge(K,typeof A=="string"?[A]:A):a.call(K,A)),K},inArray:function(A,N,K){return N==null?-1:l.call(N,A,K)},isXMLDoc:function(A){var N=A&&A.namespaceURI,K=A&&(A.ownerDocument||A).documentElement;return!L.test(N||K&&K.nodeName||"HTML")},merge:function(A,N){for(var K=+N.length,ne=0,he=A.length;ne<K;ne++)A[he++]=N[ne];return A.length=he,A},grep:function(A,N,K){for(var ne,he=[],ue=0,ke=A.length,Qe=!K;ue<ke;ue++)ne=!N(A[ue],ue),ne!==Qe&&he.push(A[ue]);return he},map:function(A,N,K){var ne,he,ue=0,ke=[];if(j(A))for(ne=A.length;ue<ne;ue++)he=N(A[ue],ue,K),he!=null&&ke.push(he);else for(ue in A)he=N(A[ue],ue,K),he!=null&&ke.push(he);return s(ke)},guid:1,support:_}),typeof Symbol=="function"&&(S.fn[Symbol.iterator]=o[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(A,N){d["[object "+N+"]"]=N.toLowerCase()});function j(A){var N=!!A&&"length"in A&&A.length,K=I(A);return k(A)||C(A)?!1:K==="array"||N===0||typeof N=="number"&&N>0&&N-1 in A}function M(A,N){return A.nodeName&&A.nodeName.toLowerCase()===N.toLowerCase()}var q=o.pop,B=o.sort,V=o.splice,G="[\\x20\\t\\r\\n\\f]",Q=new RegExp("^"+G+"+|((?:^|[^\\\\])(?:\\\\.)*)"+G+"+$","g");S.contains=function(A,N){var K=N&&N.parentNode;return A===K||!!(K&&K.nodeType===1&&(A.contains?A.contains(K):A.compareDocumentPosition&&A.compareDocumentPosition(K)&16))};var X=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Y(A,N){return N?A==="\0"?"ďż˝":A.slice(0,-1)+"\\"+A.charCodeAt(A.length-1).toString(16)+" ":"\\"+A}S.escapeSelector=function(A){return(A+"").replace(X,Y)};var Z=$,se=a;(function(){var A,N,K,ne,he,ue=se,ke,Qe,He,ht,Dt,jt=S.expando,St=0,Qt=0,pn=$h(),Qn=$h(),io=$h(),Or=$h(),Ki=function(Be,at){return Be===at&&(he=!0),0},ka="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tl="(?:\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Eo="\\["+G+"*("+tl+")(?:"+G+"*([*^$|!~]?=)"+G+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+tl+"))|)"+G+"*\\]",kc=":("+tl+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Eo+")*)|.*)\\)|)",Io=new RegExp(G+"+","g"),wi=new RegExp("^"+G+"*,"+G+"*"),vu=new RegExp("^"+G+"*([>+~]|"+G+")"+G+"*"),Ff=new RegExp(G+"|>"),Zr=new RegExp(kc),md=new RegExp("^"+tl+"$"),Es={ID:new RegExp("^#("+tl+")"),CLASS:new RegExp("^\\.("+tl+")"),TAG:new RegExp("^("+tl+"|[*])"),ATTR:new RegExp("^"+Eo),PSEUDO:new RegExp("^"+kc),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+G+"*(even|odd|(([+-]|)(\\d*)n|)"+G+"*(?:([+-]|)"+G+"*(\\d+)|))"+G+"*\\)|)","i"),bool:new RegExp("^(?:"+ka+")$","i"),needsContext:new RegExp("^"+G+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+G+"*((?:-\\d)?\\d*)"+G+"*\\)|)(?=[^-]|$)","i")},zl=/^(?:input|select|textarea|button)$/i,nl=/^h\d$/i,Is=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,wh=/[+~]/,Ul=new RegExp("\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\([^\\r\\n\\f])","g"),ol=function(Be,at){var Ct="0x"+Be.slice(1)-65536;return at||(Ct<0?String.fromCharCode(Ct+65536):String.fromCharCode(Ct>>10|55296,Ct&1023|56320))},Ps=function(){wc()},wp=Hl(function(Be){return Be.disabled===!0&&M(Be,"fieldset")},{dir:"parentNode",next:"legend"});function _u(){try{return ke.activeElement}catch{}}try{ue.apply(o=r.call(Z.childNodes),Z.childNodes),o[Z.childNodes.length].nodeType}catch{ue={apply:function(at,Ct){se.apply(at,r.call(Ct))},call:function(at){se.apply(at,r.call(arguments,1))}}}function Ln(Be,at,Ct,Tt){var Re,rt,it,Ft,zt,kn,Cn,un=at&&at.ownerDocument,Zn=at?at.nodeType:9;if(Ct=Ct||[],typeof Be!="string"||!Be||Zn!==1&&Zn!==9&&Zn!==11)return Ct;if(!Tt&&(wc(at),at=at||ke,He)){if(Zn!==11&&(zt=Is.exec(Be)))if(Re=zt[1]){if(Zn===9)if(it=at.getElementById(Re)){if(it.id===Re)return ue.call(Ct,it),Ct}else return Ct;else if(un&&(it=un.getElementById(Re))&&Ln.contains(at,it)&&it.id===Re)return ue.call(Ct,it),Ct}else{if(zt[2])return ue.apply(Ct,at.getElementsByTagName(Be)),Ct;if((Re=zt[3])&&at.getElementsByClassName)return ue.apply(Ct,at.getElementsByClassName(Re)),Ct}if(!Or[Be+" "]&&(!ht||!ht.test(Be))){if(Cn=Be,un=at,Zn===1&&(Ff.test(Be)||vu.test(Be))){for(un=wh.test(Be)&&$p(at.parentNode)||at,(un!=at||!_.scope)&&((Ft=at.getAttribute("id"))?Ft=S.escapeSelector(Ft):at.setAttribute("id",Ft=jt)),kn=Bl(Be),rt=kn.length;rt--;)kn[rt]=(Ft?"#"+Ft:":scope")+" "+As(kn[rt]);Cn=kn.join(",")}try{return ue.apply(Ct,un.querySelectorAll(Cn)),Ct}catch{Or(Be,!0)}finally{Ft===jt&&at.removeAttribute("id")}}}return Ng(Be.replace(Q,"$1"),at,Ct,Tt)}function $h(){var Be=[];function at(Ct,Tt){return Be.push(Ct+" ")>N.cacheLength&&delete at[Be.shift()],at[Ct+" "]=Tt}return at}function wa(Be){return Be[jt]=!0,Be}function pd(Be){var at=ke.createElement("fieldset");try{return!!Be(at)}catch{return!1}finally{at.parentNode&&at.parentNode.removeChild(at),at=null}}function sb(Be){return function(at){return M(at,"input")&&at.type===Be}}function ab(Be){return function(at){return(M(at,"input")||M(at,"button"))&&at.type===Be}}function Lg(Be){return function(at){return"form"in at?at.parentNode&&at.disabled===!1?"label"in at?"label"in at.parentNode?at.parentNode.disabled===Be:at.disabled===Be:at.isDisabled===Be||at.isDisabled!==!Be&&wp(at)===Be:at.disabled===Be:"label"in at?at.disabled===Be:!1}}function Kr(Be){return wa(function(at){return at=+at,wa(function(Ct,Tt){for(var Re,rt=Be([],Ct.length,at),it=rt.length;it--;)Ct[Re=rt[it]]&&(Ct[Re]=!(Tt[Re]=Ct[Re]))})})}function $p(Be){return Be&&typeof Be.getElementsByTagName<"u"&&Be}function wc(Be){var at,Ct=Be?Be.ownerDocument||Be:Z;return Ct==ke||Ct.nodeType!==9||!Ct.documentElement||(ke=Ct,Qe=ke.documentElement,He=!S.isXMLDoc(ke),Dt=Qe.matches||Qe.webkitMatchesSelector||Qe.msMatchesSelector,Qe.msMatchesSelector&&Z!=ke&&(at=ke.defaultView)&&at.top!==at&&at.addEventListener("unload",Ps),_.getById=pd(function(Tt){return Qe.appendChild(Tt).id=S.expando,!ke.getElementsByName||!ke.getElementsByName(S.expando).length}),_.disconnectedMatch=pd(function(Tt){return Dt.call(Tt,"*")}),_.scope=pd(function(){return ke.querySelectorAll(":scope")}),_.cssHas=pd(function(){try{return ke.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),_.getById?(N.filter.ID=function(Tt){var Re=Tt.replace(Ul,ol);return function(rt){return rt.getAttribute("id")===Re}},N.find.ID=function(Tt,Re){if(typeof Re.getElementById<"u"&&He){var rt=Re.getElementById(Tt);return rt?[rt]:[]}}):(N.filter.ID=function(Tt){var Re=Tt.replace(Ul,ol);return function(rt){var it=typeof rt.getAttributeNode<"u"&&rt.getAttributeNode("id");return it&&it.value===Re}},N.find.ID=function(Tt,Re){if(typeof Re.getElementById<"u"&&He){var rt,it,Ft,zt=Re.getElementById(Tt);if(zt){if(rt=zt.getAttributeNode("id"),rt&&rt.value===Tt)return[zt];for(Ft=Re.getElementsByName(Tt),it=0;zt=Ft[it++];)if(rt=zt.getAttributeNode("id"),rt&&rt.value===Tt)return[zt]}return[]}}),N.find.TAG=function(Tt,Re){return typeof Re.getElementsByTagName<"u"?Re.getElementsByTagName(Tt):Re.querySelectorAll(Tt)},N.find.CLASS=function(Tt,Re){if(typeof Re.getElementsByClassName<"u"&&He)return Re.getElementsByClassName(Tt)},ht=[],pd(function(Tt){var Re;Qe.appendChild(Tt).innerHTML="<a id='"+jt+"' href='' disabled='disabled'></a><select id='"+jt+"-\r\\' disabled='disabled'><option selected=''></option></select>",Tt.querySelectorAll("[selected]").length||ht.push("\\["+G+"*(?:value|"+ka+")"),Tt.querySelectorAll("[id~="+jt+"-]").length||ht.push("~="),Tt.querySelectorAll("a#"+jt+"+*").length||ht.push(".#.+[+~]"),Tt.querySelectorAll(":checked").length||ht.push(":checked"),Re=ke.createElement("input"),Re.setAttribute("type","hidden"),Tt.appendChild(Re).setAttribute("name","D"),Qe.appendChild(Tt).disabled=!0,Tt.querySelectorAll(":disabled").length!==2&&ht.push(":enabled",":disabled"),Re=ke.createElement("input"),Re.setAttribute("name",""),Tt.appendChild(Re),Tt.querySelectorAll("[name='']").length||ht.push("\\["+G+"*name"+G+"*="+G+`*(?:''|"")`)}),_.cssHas||ht.push(":has"),ht=ht.length&&new RegExp(ht.join("|")),Ki=function(Tt,Re){if(Tt===Re)return he=!0,0;var rt=!Tt.compareDocumentPosition-!Re.compareDocumentPosition;return rt||(rt=(Tt.ownerDocument||Tt)==(Re.ownerDocument||Re)?Tt.compareDocumentPosition(Re):1,rt&1||!_.sortDetached&&Re.compareDocumentPosition(Tt)===rt?Tt===ke||Tt.ownerDocument==Z&&Ln.contains(Z,Tt)?-1:Re===ke||Re.ownerDocument==Z&&Ln.contains(Z,Re)?1:ne?l.call(ne,Tt)-l.call(ne,Re):0:rt&4?-1:1)}),ke}Ln.matches=function(Be,at){return Ln(Be,null,null,at)},Ln.matchesSelector=function(Be,at){if(wc(Be),He&&!Or[at+" "]&&(!ht||!ht.test(at)))try{var Ct=Dt.call(Be,at);if(Ct||_.disconnectedMatch||Be.document&&Be.document.nodeType!==11)return Ct}catch{Or(at,!0)}return Ln(at,ke,null,[Be]).length>0},Ln.contains=function(Be,at){return(Be.ownerDocument||Be)!=ke&&wc(Be),S.contains(Be,at)},Ln.attr=function(Be,at){(Be.ownerDocument||Be)!=ke&&wc(Be);var Ct=N.attrHandle[at.toLowerCase()],Tt=Ct&&f.call(N.attrHandle,at.toLowerCase())?Ct(Be,at,!He):void 0;return Tt!==void 0?Tt:Be.getAttribute(at)},Ln.error=function(Be){throw new Error("Syntax error, unrecognized expression: "+Be)},S.uniqueSort=function(Be){var at,Ct=[],Tt=0,Re=0;if(he=!_.sortStable,ne=!_.sortStable&&r.call(Be,0),B.call(Be,Ki),he){for(;at=Be[Re++];)at===Be[Re]&&(Tt=Ct.push(Re));for(;Tt--;)V.call(Be,Ct[Tt],1)}return ne=null,Be},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(r.apply(this)))},N=S.expr={cacheLength:50,createPseudo:wa,match:Es,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Be){return Be[1]=Be[1].replace(Ul,ol),Be[3]=(Be[3]||Be[4]||Be[5]||"").replace(Ul,ol),Be[2]==="~="&&(Be[3]=" "+Be[3]+" "),Be.slice(0,4)},CHILD:function(Be){return Be[1]=Be[1].toLowerCase(),Be[1].slice(0,3)==="nth"?(Be[3]||Ln.error(Be[0]),Be[4]=+(Be[4]?Be[5]+(Be[6]||1):2*(Be[3]==="even"||Be[3]==="odd")),Be[5]=+(Be[7]+Be[8]||Be[3]==="odd")):Be[3]&&Ln.error(Be[0]),Be},PSEUDO:function(Be){var at,Ct=!Be[6]&&Be[2];return Es.CHILD.test(Be[0])?null:(Be[3]?Be[2]=Be[4]||Be[5]||"":Ct&&Zr.test(Ct)&&(at=Bl(Ct,!0))&&(at=Ct.indexOf(")",Ct.length-at)-Ct.length)&&(Be[0]=Be[0].slice(0,at),Be[2]=Ct.slice(0,at)),Be.slice(0,3))}},filter:{TAG:function(Be){var at=Be.replace(Ul,ol).toLowerCase();return Be==="*"?function(){return!0}:function(Ct){return M(Ct,at)}},CLASS:function(Be){var at=pn[Be+" "];return at||(at=new RegExp("(^|"+G+")"+Be+"("+G+"|$)"))&&pn(Be,function(Ct){return at.test(typeof Ct.className=="string"&&Ct.className||typeof Ct.getAttribute<"u"&&Ct.getAttribute("class")||"")})},ATTR:function(Be,at,Ct){return function(Tt){var Re=Ln.attr(Tt,Be);return Re==null?at==="!=":at?(Re+="",at==="="?Re===Ct:at==="!="?Re!==Ct:at==="^="?Ct&&Re.indexOf(Ct)===0:at==="*="?Ct&&Re.indexOf(Ct)>-1:at==="$="?Ct&&Re.slice(-Ct.length)===Ct:at==="~="?(" "+Re.replace(Io," ")+" ").indexOf(Ct)>-1:at==="|="?Re===Ct||Re.slice(0,Ct.length+1)===Ct+"-":!1):!0}},CHILD:function(Be,at,Ct,Tt,Re){var rt=Be.slice(0,3)!=="nth",it=Be.slice(-4)!=="last",Ft=at==="of-type";return Tt===1&&Re===0?function(zt){return!!zt.parentNode}:function(zt,kn,Cn){var un,Zn,Nn,ko,_r,Lr=rt!==it?"nextSibling":"previousSibling",Mr=zt.parentNode,Us=Ft&&zt.nodeName.toLowerCase(),rl=!Cn&&!Ft,eo=!1;if(Mr){if(rt){for(;Lr;){for(Nn=zt;Nn=Nn[Lr];)if(Ft?M(Nn,Us):Nn.nodeType===1)return!1;_r=Lr=Be==="only"&&!_r&&"nextSibling"}return!0}if(_r=[it?Mr.firstChild:Mr.lastChild],it&&rl){for(Zn=Mr[jt]||(Mr[jt]={}),un=Zn[Be]||[],ko=un[0]===St&&un[1],eo=ko&&un[2],Nn=ko&&Mr.childNodes[ko];Nn=++ko&&Nn&&Nn[Lr]||(eo=ko=0)||_r.pop();)if(Nn.nodeType===1&&++eo&&Nn===zt){Zn[Be]=[St,ko,eo];break}}else if(rl&&(Zn=zt[jt]||(zt[jt]={}),un=Zn[Be]||[],ko=un[0]===St&&un[1],eo=ko),eo===!1)for(;(Nn=++ko&&Nn&&Nn[Lr]||(eo=ko=0)||_r.pop())&&!((Ft?M(Nn,Us):Nn.nodeType===1)&&++eo&&(rl&&(Zn=Nn[jt]||(Nn[jt]={}),Zn[Be]=[St,eo]),Nn===zt)););return eo-=Re,eo===Tt||eo%Tt===0&&eo/Tt>=0}}},PSEUDO:function(Be,at){var Ct,Tt=N.pseudos[Be]||N.setFilters[Be.toLowerCase()]||Ln.error("unsupported pseudo: "+Be);return Tt[jt]?Tt(at):Tt.length>1?(Ct=[Be,Be,"",at],N.setFilters.hasOwnProperty(Be.toLowerCase())?wa(function(Re,rt){for(var it,Ft=Tt(Re,at),zt=Ft.length;zt--;)it=l.call(Re,Ft[zt]),Re[it]=!(rt[it]=Ft[zt])}):function(Re){return Tt(Re,0,Ct)}):Tt}},pseudos:{not:wa(function(Be){var at=[],Ct=[],Tt=Sp(Be.replace(Q,"$1"));return Tt[jt]?wa(function(Re,rt,it,Ft){for(var zt,kn=Tt(Re,null,Ft,[]),Cn=Re.length;Cn--;)(zt=kn[Cn])&&(Re[Cn]=!(rt[Cn]=zt))}):function(Re,rt,it){return at[0]=Re,Tt(at,null,it,Ct),at[0]=null,!Ct.pop()}}),has:wa(function(Be){return function(at){return Ln(Be,at).length>0}}),contains:wa(function(Be){return Be=Be.replace(Ul,ol),function(at){return(at.textContent||S.text(at)).indexOf(Be)>-1}}),lang:wa(function(Be){return md.test(Be||"")||Ln.error("unsupported lang: "+Be),Be=Be.replace(Ul,ol).toLowerCase(),function(at){var Ct;do if(Ct=He?at.lang:at.getAttribute("xml:lang")||at.getAttribute("lang"))return Ct=Ct.toLowerCase(),Ct===Be||Ct.indexOf(Be+"-")===0;while((at=at.parentNode)&&at.nodeType===1);return!1}}),target:function(Be){var at=t.location&&t.location.hash;return at&&at.slice(1)===Be.id},root:function(Be){return Be===Qe},focus:function(Be){return Be===_u()&&ke.hasFocus()&&!!(Be.type||Be.href||~Be.tabIndex)},enabled:Lg(!1),disabled:Lg(!0),checked:function(Be){return M(Be,"input")&&!!Be.checked||M(Be,"option")&&!!Be.selected},selected:function(Be){return Be.parentNode&&Be.parentNode.selectedIndex,Be.selected===!0},empty:function(Be){for(Be=Be.firstChild;Be;Be=Be.nextSibling)if(Be.nodeType<6)return!1;return!0},parent:function(Be){return!N.pseudos.empty(Be)},header:function(Be){return nl.test(Be.nodeName)},input:function(Be){return zl.test(Be.nodeName)},button:function(Be){return M(Be,"input")&&Be.type==="button"||M(Be,"button")},text:function(Be){var at;return M(Be,"input")&&Be.type==="text"&&((at=Be.getAttribute("type"))==null||at.toLowerCase()==="text")},first:Kr(function(){return[0]}),last:Kr(function(Be,at){return[at-1]}),eq:Kr(function(Be,at,Ct){return[Ct<0?Ct+at:Ct]}),even:Kr(function(Be,at){for(var Ct=0;Ct<at;Ct+=2)Be.push(Ct);return Be}),odd:Kr(function(Be,at){for(var Ct=1;Ct<at;Ct+=2)Be.push(Ct);return Be}),lt:Kr(function(Be,at,Ct){var Tt;for(Ct<0?Tt=Ct+at:Ct>at?Tt=at:Tt=Ct;--Tt>=0;)Be.push(Tt);return Be}),gt:Kr(function(Be,at,Ct){for(var Tt=Ct<0?Ct+at:Ct;++Tt<at;)Be.push(Tt);return Be})}},N.pseudos.nth=N.pseudos.eq;for(A in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})N.pseudos[A]=sb(A);for(A in{submit:!0,reset:!0})N.pseudos[A]=ab(A);function zf(){}zf.prototype=N.filters=N.pseudos,N.setFilters=new zf;function Bl(Be,at){var Ct,Tt,Re,rt,it,Ft,zt,kn=Qn[Be+" "];if(kn)return at?0:kn.slice(0);for(it=Be,Ft=[],zt=N.preFilter;it;){(!Ct||(Tt=wi.exec(it)))&&(Tt&&(it=it.slice(Tt[0].length)||it),Ft.push(Re=[])),Ct=!1,(Tt=vu.exec(it))&&(Ct=Tt.shift(),Re.push({value:Ct,type:Tt[0].replace(Q," ")}),it=it.slice(Ct.length));for(rt in N.filter)(Tt=Es[rt].exec(it))&&(!zt[rt]||(Tt=zt[rt](Tt)))&&(Ct=Tt.shift(),Re.push({value:Ct,type:rt,matches:Tt}),it=it.slice(Ct.length));if(!Ct)break}return at?it.length:it?Ln.error(Be):Qn(Be,Ft).slice(0)}function As(Be){for(var at=0,Ct=Be.length,Tt="";at<Ct;at++)Tt+=Be[at].value;return Tt}function Hl(Be,at,Ct){var Tt=at.dir,Re=at.next,rt=Re||Tt,it=Ct&&rt==="parentNode",Ft=Qt++;return at.first?function(zt,kn,Cn){for(;zt=zt[Tt];)if(zt.nodeType===1||it)return Be(zt,kn,Cn);return!1}:function(zt,kn,Cn){var un,Zn,Nn=[St,Ft];if(Cn){for(;zt=zt[Tt];)if((zt.nodeType===1||it)&&Be(zt,kn,Cn))return!0}else for(;zt=zt[Tt];)if(zt.nodeType===1||it)if(Zn=zt[jt]||(zt[jt]={}),Re&&M(zt,Re))zt=zt[Tt]||zt;else{if((un=Zn[rt])&&un[0]===St&&un[1]===Ft)return Nn[2]=un[2];if(Zn[rt]=Nn,Nn[2]=Be(zt,kn,Cn))return!0}return!1}}function Cp(Be){return Be.length>1?function(at,Ct,Tt){for(var Re=Be.length;Re--;)if(!Be[Re](at,Ct,Tt))return!1;return!0}:Be[0]}function Mg(Be,at,Ct){for(var Tt=0,Re=at.length;Tt<Re;Tt++)Ln(Be,at[Tt],Ct);return Ct}function Uf(Be,at,Ct,Tt,Re){for(var rt,it=[],Ft=0,zt=Be.length,kn=at!=null;Ft<zt;Ft++)(rt=Be[Ft])&&(!Ct||Ct(rt,Tt,Re))&&(it.push(rt),kn&&at.push(Ft));return it}function il(Be,at,Ct,Tt,Re,rt){return Tt&&!Tt[jt]&&(Tt=il(Tt)),Re&&!Re[jt]&&(Re=il(Re,rt)),wa(function(it,Ft,zt,kn){var Cn,un,Zn,Nn,ko=[],_r=[],Lr=Ft.length,Mr=it||Mg(at||"*",zt.nodeType?[zt]:zt,[]),Us=Be&&(it||!at)?Uf(Mr,ko,Be,zt,kn):Mr;if(Ct?(Nn=Re||(it?Be:Lr||Tt)?[]:Ft,Ct(Us,Nn,zt,kn)):Nn=Us,Tt)for(Cn=Uf(Nn,_r),Tt(Cn,[],zt,kn),un=Cn.length;un--;)(Zn=Cn[un])&&(Nn[_r[un]]=!(Us[_r[un]]=Zn));if(it){if(Re||Be){if(Re){for(Cn=[],un=Nn.length;un--;)(Zn=Nn[un])&&Cn.push(Us[un]=Zn);Re(null,Nn=[],Cn,kn)}for(un=Nn.length;un--;)(Zn=Nn[un])&&(Cn=Re?l.call(it,Zn):ko[un])>-1&&(it[Cn]=!(Ft[Cn]=Zn))}}else Nn=Uf(Nn===Ft?Nn.splice(Lr,Nn.length):Nn),Re?Re(null,Ft,Nn,kn):ue.apply(Ft,Nn)})}function cs(Be){for(var at,Ct,Tt,Re=Be.length,rt=N.relative[Be[0].type],it=rt||N.relative[" "],Ft=rt?1:0,zt=Hl(function(un){return un===at},it,!0),kn=Hl(function(un){return l.call(at,un)>-1},it,!0),Cn=[function(un,Zn,Nn){var ko=!rt&&(Nn||Zn!=K)||((at=Zn).nodeType?zt(un,Zn,Nn):kn(un,Zn,Nn));return at=null,ko}];Ft<Re;Ft++)if(Ct=N.relative[Be[Ft].type])Cn=[Hl(Cp(Cn),Ct)];else{if(Ct=N.filter[Be[Ft].type].apply(null,Be[Ft].matches),Ct[jt]){for(Tt=++Ft;Tt<Re&&!N.relative[Be[Tt].type];Tt++);return il(Ft>1&&Cp(Cn),Ft>1&&As(Be.slice(0,Ft-1).concat({value:Be[Ft-2].type===" "?"*":""})).replace(Q,"$1"),Ct,Ft<Tt&&cs(Be.slice(Ft,Tt)),Tt<Re&&cs(Be=Be.slice(Tt)),Tt<Re&&As(Be))}Cn.push(Ct)}return Cp(Cn)}function Bf(Be,at){var Ct=at.length>0,Tt=Be.length>0,Re=function(rt,it,Ft,zt,kn){var Cn,un,Zn,Nn=0,ko="0",_r=rt&&[],Lr=[],Mr=K,Us=rt||Tt&&N.find.TAG("*",kn),rl=St+=Mr==null?1:Math.random()||.1,eo=Us.length;for(kn&&(K=it==ke||it||kn);ko!==eo&&(Cn=Us[ko])!=null;ko++){if(Tt&&Cn){for(un=0,!it&&Cn.ownerDocument!=ke&&(wc(Cn),Ft=!He);Zn=Be[un++];)if(Zn(Cn,it||ke,Ft)){ue.call(zt,Cn);break}kn&&(St=rl)}Ct&&((Cn=!Zn&&Cn)&&Nn--,rt&&_r.push(Cn))}if(Nn+=ko,Ct&&ko!==Nn){for(un=0;Zn=at[un++];)Zn(_r,Lr,it,Ft);if(rt){if(Nn>0)for(;ko--;)_r[ko]||Lr[ko]||(Lr[ko]=q.call(zt));Lr=Uf(Lr)}ue.apply(zt,Lr),kn&&!rt&&Lr.length>0&&Nn+at.length>1&&S.uniqueSort(zt)}return kn&&(St=rl,K=Mr),_r};return Ct?wa(Re):Re}function Sp(Be,at){var Ct,Tt=[],Re=[],rt=io[Be+" "];if(!rt){for(at||(at=Bl(Be)),Ct=at.length;Ct--;)rt=cs(at[Ct]),rt[jt]?Tt.push(rt):Re.push(rt);rt=io(Be,Bf(Re,Tt)),rt.selector=Be}return rt}function Ng(Be,at,Ct,Tt){var Re,rt,it,Ft,zt,kn=typeof Be=="function"&&Be,Cn=!Tt&&Bl(Be=kn.selector||Be);if(Ct=Ct||[],Cn.length===1){if(rt=Cn[0]=Cn[0].slice(0),rt.length>2&&(it=rt[0]).type==="ID"&&at.nodeType===9&&He&&N.relative[rt[1].type]){if(at=(N.find.ID(it.matches[0].replace(Ul,ol),at)||[])[0],at)kn&&(at=at.parentNode);else return Ct;Be=Be.slice(rt.shift().value.length)}for(Re=Es.needsContext.test(Be)?0:rt.length;Re--&&(it=rt[Re],!N.relative[Ft=it.type]);)if((zt=N.find[Ft])&&(Tt=zt(it.matches[0].replace(Ul,ol),wh.test(rt[0].type)&&$p(at.parentNode)||at))){if(rt.splice(Re,1),Be=Tt.length&&As(rt),!Be)return ue.apply(Ct,Tt),Ct;break}}return(kn||Sp(Be,Cn))(Tt,at,!He,Ct,!at||wh.test(Be)&&$p(at.parentNode)||at),Ct}_.sortStable=jt.split("").sort(Ki).join("")===jt,wc(),_.sortDetached=pd(function(Be){return Be.compareDocumentPosition(ke.createElement("fieldset"))&1}),S.find=Ln,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,Ln.compile=Sp,Ln.select=Ng,Ln.setDocument=wc,Ln.tokenize=Bl,Ln.escape=S.escapeSelector,Ln.getText=S.text,Ln.isXML=S.isXMLDoc,Ln.selectors=S.expr,Ln.support=S.support,Ln.uniqueSort=S.uniqueSort})();var ce=function(A,N,K){for(var ne=[],he=K!==void 0;(A=A[N])&&A.nodeType!==9;)if(A.nodeType===1){if(he&&S(A).is(K))break;ne.push(A)}return ne},te=function(A,N){for(var K=[];A;A=A.nextSibling)A.nodeType===1&&A!==N&&K.push(A);return K},ee=S.expr.match.needsContext,ae=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function de(A,N,K){return k(N)?S.grep(A,function(ne,he){return!!N.call(ne,he,ne)!==K}):N.nodeType?S.grep(A,function(ne){return ne===N!==K}):typeof N!="string"?S.grep(A,function(ne){return l.call(N,ne)>-1!==K}):S.filter(N,A,K)}S.filter=function(A,N,K){var ne=N[0];return K&&(A=":not("+A+")"),N.length===1&&ne.nodeType===1?S.find.matchesSelector(ne,A)?[ne]:[]:S.find.matches(A,S.grep(N,function(he){return he.nodeType===1}))},S.fn.extend({find:function(A){var N,K,ne=this.length,he=this;if(typeof A!="string")return this.pushStack(S(A).filter(function(){for(N=0;N<ne;N++)if(S.contains(he[N],this))return!0}));for(K=this.pushStack([]),N=0;N<ne;N++)S.find(A,he[N],K);return ne>1?S.uniqueSort(K):K},filter:function(A){return this.pushStack(de(this,A||[],!1))},not:function(A){return this.pushStack(de(this,A||[],!0))},is:function(A){return!!de(this,typeof A=="string"&&ee.test(A)?S(A):A||[],!1).length}});var $e,be=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,me=S.fn.init=function(A,N,K){var ne,he;if(!A)return this;if(K=K||$e,typeof A=="string")if(A[0]==="<"&&A[A.length-1]===">"&&A.length>=3?ne=[null,A,null]:ne=be.exec(A),ne&&(ne[1]||!N))if(ne[1]){if(N=N instanceof S?N[0]:N,S.merge(this,S.parseHTML(ne[1],N&&N.nodeType?N.ownerDocument||N:$,!0)),ae.test(ne[1])&&S.isPlainObject(N))for(ne in N)k(this[ne])?this[ne](N[ne]):this.attr(ne,N[ne]);return this}else return he=$.getElementById(ne[2]),he&&(this[0]=he,this.length=1),this;else return!N||N.jquery?(N||K).find(A):this.constructor(N).find(A);else{if(A.nodeType)return this[0]=A,this.length=1,this;if(k(A))return K.ready!==void 0?K.ready(A):A(S)}return S.makeArray(A,this)};me.prototype=S.fn,$e=S($);var fe=/^(?:parents|prev(?:Until|All))/,Ae={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(A){var N=S(A,this),K=N.length;return this.filter(function(){for(var ne=0;ne<K;ne++)if(S.contains(this,N[ne]))return!0})},closest:function(A,N){var K,ne=0,he=this.length,ue=[],ke=typeof A!="string"&&S(A);if(!ee.test(A)){for(;ne<he;ne++)for(K=this[ne];K&&K!==N;K=K.parentNode)if(K.nodeType<11&&(ke?ke.index(K)>-1:K.nodeType===1&&S.find.matchesSelector(K,A))){ue.push(K);break}}return this.pushStack(ue.length>1?S.uniqueSort(ue):ue)},index:function(A){return A?typeof A=="string"?l.call(S(A),this[0]):l.call(this,A.jquery?A[0]:A):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(A,N){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(A,N))))},addBack:function(A){return this.add(A==null?this.prevObject:this.prevObject.filter(A))}});function je(A,N){for(;(A=A[N])&&A.nodeType!==1;);return A}S.each({parent:function(A){var N=A.parentNode;return N&&N.nodeType!==11?N:null},parents:function(A){return ce(A,"parentNode")},parentsUntil:function(A,N,K){return ce(A,"parentNode",K)},next:function(A){return je(A,"nextSibling")},prev:function(A){return je(A,"previousSibling")},nextAll:function(A){return ce(A,"nextSibling")},prevAll:function(A){return ce(A,"previousSibling")},nextUntil:function(A,N,K){return ce(A,"nextSibling",K)},prevUntil:function(A,N,K){return ce(A,"previousSibling",K)},siblings:function(A){return te((A.parentNode||{}).firstChild,A)},children:function(A){return te(A.firstChild)},contents:function(A){return A.contentDocument!=null&&i(A.contentDocument)?A.contentDocument:(M(A,"template")&&(A=A.content||A),S.merge([],A.childNodes))}},function(A,N){S.fn[A]=function(K,ne){var he=S.map(this,N,K);return A.slice(-5)!=="Until"&&(ne=K),ne&&typeof ne=="string"&&(he=S.filter(ne,he)),this.length>1&&(Ae[A]||S.uniqueSort(he),fe.test(A)&&he.reverse()),this.pushStack(he)}});var Ye=/[^\x20\t\r\n\f]+/g;function _t(A){var N={};return S.each(A.match(Ye)||[],function(K,ne){N[ne]=!0}),N}S.Callbacks=function(A){A=typeof A=="string"?_t(A):S.extend({},A);var N,K,ne,he,ue=[],ke=[],Qe=-1,He=function(){for(he=he||A.once,ne=N=!0;ke.length;Qe=-1)for(K=ke.shift();++Qe<ue.length;)ue[Qe].apply(K[0],K[1])===!1&&A.stopOnFalse&&(Qe=ue.length,K=!1);A.memory||(K=!1),N=!1,he&&(K?ue=[]:ue="")},ht={add:function(){return ue&&(K&&!N&&(Qe=ue.length-1,ke.push(K)),function Dt(jt){S.each(jt,function(St,Qt){k(Qt)?(!A.unique||!ht.has(Qt))&&ue.push(Qt):Qt&&Qt.length&&I(Qt)!=="string"&&Dt(Qt)})}(arguments),K&&!N&&He()),this},remove:function(){return S.each(arguments,function(Dt,jt){for(var St;(St=S.inArray(jt,ue,St))>-1;)ue.splice(St,1),St<=Qe&&Qe--}),this},has:function(Dt){return Dt?S.inArray(Dt,ue)>-1:ue.length>0},empty:function(){return ue&&(ue=[]),this},disable:function(){return he=ke=[],ue=K="",this},disabled:function(){return!ue},lock:function(){return he=ke=[],!K&&!N&&(ue=K=""),this},locked:function(){return!!he},fireWith:function(Dt,jt){return he||(jt=jt||[],jt=[Dt,jt.slice?jt.slice():jt],ke.push(jt),N||He()),this},fire:function(){return ht.fireWith(this,arguments),this},fired:function(){return!!ne}};return ht};function xt(A){return A}function we(A){throw A}function ve(A,N,K,ne){var he;try{A&&k(he=A.promise)?he.call(A).done(N).fail(K):A&&k(he=A.then)?he.call(A,N,K):N.apply(void 0,[A].slice(ne))}catch(ue){K.apply(void 0,[ue])}}S.extend({Deferred:function(A){var N=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],K="pending",ne={state:function(){return K},always:function(){return he.done(arguments).fail(arguments),this},catch:function(ue){return ne.then(null,ue)},pipe:function(){var ue=arguments;return S.Deferred(function(ke){S.each(N,function(Qe,He){var ht=k(ue[He[4]])&&ue[He[4]];he[He[1]](function(){var Dt=ht&&ht.apply(this,arguments);Dt&&k(Dt.promise)?Dt.promise().progress(ke.notify).done(ke.resolve).fail(ke.reject):ke[He[0]+"With"](this,ht?[Dt]:arguments)})}),ue=null}).promise()},then:function(ue,ke,Qe){var He=0;function ht(Dt,jt,St,Qt){return function(){var pn=this,Qn=arguments,io=function(){var Ki,ka;if(!(Dt<He)){if(Ki=St.apply(pn,Qn),Ki===jt.promise())throw new TypeError("Thenable self-resolution");ka=Ki&&(typeof Ki=="object"||typeof Ki=="function")&&Ki.then,k(ka)?Qt?ka.call(Ki,ht(He,jt,xt,Qt),ht(He,jt,we,Qt)):(He++,ka.call(Ki,ht(He,jt,xt,Qt),ht(He,jt,we,Qt),ht(He,jt,xt,jt.notifyWith))):(St!==xt&&(pn=void 0,Qn=[Ki]),(Qt||jt.resolveWith)(pn,Qn))}},Or=Qt?io:function(){try{io()}catch(Ki){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(Ki,Or.error),Dt+1>=He&&(St!==we&&(pn=void 0,Qn=[Ki]),jt.rejectWith(pn,Qn))}};Dt?Or():(S.Deferred.getErrorHook?Or.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(Or.error=S.Deferred.getStackHook()),t.setTimeout(Or))}}return S.Deferred(function(Dt){N[0][3].add(ht(0,Dt,k(Qe)?Qe:xt,Dt.notifyWith)),N[1][3].add(ht(0,Dt,k(ue)?ue:xt)),N[2][3].add(ht(0,Dt,k(ke)?ke:we))}).promise()},promise:function(ue){return ue!=null?S.extend(ue,ne):ne}},he={};return S.each(N,function(ue,ke){var Qe=ke[2],He=ke[5];ne[ke[1]]=Qe.add,He&&Qe.add(function(){K=He},N[3-ue][2].disable,N[3-ue][3].disable,N[0][2].lock,N[0][3].lock),Qe.add(ke[3].fire),he[ke[0]]=function(){return he[ke[0]+"With"](this===he?void 0:this,arguments),this},he[ke[0]+"With"]=Qe.fireWith}),ne.promise(he),A&&A.call(he,he),he},when:function(A){var N=arguments.length,K=N,ne=Array(K),he=r.call(arguments),ue=S.Deferred(),ke=function(Qe){return function(He){ne[Qe]=this,he[Qe]=arguments.length>1?r.call(arguments):He,--N||ue.resolveWith(ne,he)}};if(N<=1&&(ve(A,ue.done(ke(K)).resolve,ue.reject,!N),ue.state()==="pending"||k(he[K]&&he[K].then)))return ue.then();for(;K--;)ve(he[K],ke(K),ue.reject);return ue.promise()}});var qe=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(A,N){t.console&&t.console.warn&&A&&qe.test(A.name)&&t.console.warn("jQuery.Deferred exception: "+A.message,A.stack,N)},S.readyException=function(A){t.setTimeout(function(){throw A})};var $t=S.Deferred();S.fn.ready=function(A){return $t.then(A).catch(function(N){S.readyException(N)}),this},S.extend({isReady:!1,readyWait:1,ready:function(A){(A===!0?--S.readyWait:S.isReady)||(S.isReady=!0,!(A!==!0&&--S.readyWait>0)&&$t.resolveWith($,[S]))}}),S.ready.then=$t.then;function ut(){$.removeEventListener("DOMContentLoaded",ut),t.removeEventListener("load",ut),S.ready()}$.readyState==="complete"||$.readyState!=="loading"&&!$.documentElement.doScroll?t.setTimeout(S.ready):($.addEventListener("DOMContentLoaded",ut),t.addEventListener("load",ut));var Ve=function(A,N,K,ne,he,ue,ke){var Qe=0,He=A.length,ht=K==null;if(I(K)==="object"){he=!0;for(Qe in K)Ve(A,N,Qe,K[Qe],!0,ue,ke)}else if(ne!==void 0&&(he=!0,k(ne)||(ke=!0),ht&&(ke?(N.call(A,ne),N=null):(ht=N,N=function(Dt,jt,St){return ht.call(S(Dt),St)})),N))for(;Qe<He;Qe++)N(A[Qe],K,ke?ne:ne.call(A[Qe],Qe,N(A[Qe],K)));return he?A:ht?N.call(A):He?N(A[0],K):ue},tt=/^-ms-/,ge=/-([a-z])/g;function ye(A,N){return N.toUpperCase()}function Te(A){return A.replace(tt,"ms-").replace(ge,ye)}var gt=function(A){return A.nodeType===1||A.nodeType===9||!+A.nodeType};function yt(){this.expando=S.expando+yt.uid++}yt.uid=1,yt.prototype={cache:function(A){var N=A[this.expando];return N||(N={},gt(A)&&(A.nodeType?A[this.expando]=N:Object.defineProperty(A,this.expando,{value:N,configurable:!0}))),N},set:function(A,N,K){var ne,he=this.cache(A);if(typeof N=="string")he[Te(N)]=K;else for(ne in N)he[Te(ne)]=N[ne];return he},get:function(A,N){return N===void 0?this.cache(A):A[this.expando]&&A[this.expando][Te(N)]},access:function(A,N,K){return N===void 0||N&&typeof N=="string"&&K===void 0?this.get(A,N):(this.set(A,N,K),K!==void 0?K:N)},remove:function(A,N){var K,ne=A[this.expando];if(ne!==void 0){if(N!==void 0)for(Array.isArray(N)?N=N.map(Te):(N=Te(N),N=N in ne?[N]:N.match(Ye)||[]),K=N.length;K--;)delete ne[N[K]];(N===void 0||S.isEmptyObject(ne))&&(A.nodeType?A[this.expando]=void 0:delete A[this.expando])}},hasData:function(A){var N=A[this.expando];return N!==void 0&&!S.isEmptyObject(N)}};var Xe=new yt,Ze=new yt,vt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ut=/[A-Z]/g;function Je(A){return A==="true"?!0:A==="false"?!1:A==="null"?null:A===+A+""?+A:vt.test(A)?JSON.parse(A):A}function We(A,N,K){var ne;if(K===void 0&&A.nodeType===1)if(ne="data-"+N.replace(Ut,"-$&").toLowerCase(),K=A.getAttribute(ne),typeof K=="string"){try{K=Je(K)}catch{}Ze.set(A,N,K)}else K=void 0;return K}S.extend({hasData:function(A){return Ze.hasData(A)||Xe.hasData(A)},data:function(A,N,K){return Ze.access(A,N,K)},removeData:function(A,N){Ze.remove(A,N)},_data:function(A,N,K){return Xe.access(A,N,K)},_removeData:function(A,N){Xe.remove(A,N)}}),S.fn.extend({data:function(A,N){var K,ne,he,ue=this[0],ke=ue&&ue.attributes;if(A===void 0){if(this.length&&(he=Ze.get(ue),ue.nodeType===1&&!Xe.get(ue,"hasDataAttrs"))){for(K=ke.length;K--;)ke[K]&&(ne=ke[K].name,ne.indexOf("data-")===0&&(ne=Te(ne.slice(5)),We(ue,ne,he[ne])));Xe.set(ue,"hasDataAttrs",!0)}return he}return typeof A=="object"?this.each(function(){Ze.set(this,A)}):Ve(this,function(Qe){var He;if(ue&&Qe===void 0)return He=Ze.get(ue,A),He!==void 0||(He=We(ue,A),He!==void 0)?He:void 0;this.each(function(){Ze.set(this,A,Qe)})},null,N,arguments.length>1,null,!0)},removeData:function(A){return this.each(function(){Ze.remove(this,A)})}}),S.extend({queue:function(A,N,K){var ne;if(A)return N=(N||"fx")+"queue",ne=Xe.get(A,N),K&&(!ne||Array.isArray(K)?ne=Xe.access(A,N,S.makeArray(K)):ne.push(K)),ne||[]},dequeue:function(A,N){N=N||"fx";var K=S.queue(A,N),ne=K.length,he=K.shift(),ue=S._queueHooks(A,N),ke=function(){S.dequeue(A,N)};he==="inprogress"&&(he=K.shift(),ne--),he&&(N==="fx"&&K.unshift("inprogress"),delete ue.stop,he.call(A,ke,ue)),!ne&&ue&&ue.empty.fire()},_queueHooks:function(A,N){var K=N+"queueHooks";return Xe.get(A,K)||Xe.access(A,K,{empty:S.Callbacks("once memory").add(function(){Xe.remove(A,[N+"queue",K])})})}}),S.fn.extend({queue:function(A,N){var K=2;return typeof A!="string"&&(N=A,A="fx",K--),arguments.length<K?S.queue(this[0],A):N===void 0?this:this.each(function(){var ne=S.queue(this,A,N);S._queueHooks(this,A),A==="fx"&&ne[0]!=="inprogress"&&S.dequeue(this,A)})},dequeue:function(A){return this.each(function(){S.dequeue(this,A)})},clearQueue:function(A){return this.queue(A||"fx",[])},promise:function(A,N){var K,ne=1,he=S.Deferred(),ue=this,ke=this.length,Qe=function(){--ne||he.resolveWith(ue,[ue])};for(typeof A!="string"&&(N=A,A=void 0),A=A||"fx";ke--;)K=Xe.get(ue[ke],A+"queueHooks"),K&&K.empty&&(ne++,K.empty.add(Qe));return Qe(),he.promise(N)}});var pt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,At=new RegExp("^(?:([+-])=|)("+pt+")([a-z%]*)$","i"),Vt=["Top","Right","Bottom","Left"],cn=$.documentElement,fn=function(A){return S.contains(A.ownerDocument,A)},bn={composed:!0};cn.getRootNode&&(fn=function(A){return S.contains(A.ownerDocument,A)||A.getRootNode(bn)===A.ownerDocument});var kt=function(A,N){return A=N||A,A.style.display==="none"||A.style.display===""&&fn(A)&&S.css(A,"display")==="none"};function Ne(A,N,K,ne){var he,ue,ke=20,Qe=ne?function(){return ne.cur()}:function(){return S.css(A,N,"")},He=Qe(),ht=K&&K[3]||(S.cssNumber[N]?"":"px"),Dt=A.nodeType&&(S.cssNumber[N]||ht!=="px"&&+He)&&At.exec(S.css(A,N));if(Dt&&Dt[3]!==ht){for(He=He/2,ht=ht||Dt[3],Dt=+He||1;ke--;)S.style(A,N,Dt+ht),(1-ue)*(1-(ue=Qe()/He||.5))<=0&&(ke=0),Dt=Dt/ue;Dt=Dt*2,S.style(A,N,Dt+ht),K=K||[]}return K&&(Dt=+Dt||+He||0,he=K[1]?Dt+(K[1]+1)*K[2]:+K[2],ne&&(ne.unit=ht,ne.start=Dt,ne.end=he)),he}var nt={};function It(A){var N,K=A.ownerDocument,ne=A.nodeName,he=nt[ne];return he||(N=K.body.appendChild(K.createElement(ne)),he=S.css(N,"display"),N.parentNode.removeChild(N),he==="none"&&(he="block"),nt[ne]=he,he)}function Zt(A,N){for(var K,ne,he=[],ue=0,ke=A.length;ue<ke;ue++)ne=A[ue],ne.style&&(K=ne.style.display,N?(K==="none"&&(he[ue]=Xe.get(ne,"display")||null,he[ue]||(ne.style.display="")),ne.style.display===""&&kt(ne)&&(he[ue]=It(ne))):K!=="none"&&(he[ue]="none",Xe.set(ne,"display",K)));for(ue=0;ue<ke;ue++)he[ue]!=null&&(A[ue].style.display=he[ue]);return A}S.fn.extend({show:function(){return Zt(this,!0)},hide:function(){return Zt(this)},toggle:function(A){return typeof A=="boolean"?A?this.show():this.hide():this.each(function(){kt(this)?S(this).show():S(this).hide()})}});var dn=/^(?:checkbox|radio)$/i,Hn=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Oo=/^$|^module$|\/(?:java|ecma)script/i;(function(){var A=$.createDocumentFragment(),N=A.appendChild($.createElement("div")),K=$.createElement("input");K.setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),N.appendChild(K),_.checkClone=N.cloneNode(!0).cloneNode(!0).lastChild.checked,N.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!N.cloneNode(!0).lastChild.defaultValue,N.innerHTML="<option></option>",_.option=!!N.lastChild})();var tn={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,"",""]};tn.tbody=tn.tfoot=tn.colgroup=tn.caption=tn.thead,tn.th=tn.td,_.option||(tn.optgroup=tn.option=[1,"<select multiple='multiple'>","</select>"]);function Fo(A,N){var K;return typeof A.getElementsByTagName<"u"?K=A.getElementsByTagName(N||"*"):typeof A.querySelectorAll<"u"?K=A.querySelectorAll(N||"*"):K=[],N===void 0||N&&M(A,N)?S.merge([A],K):K}function Yr(A,N){for(var K=0,ne=A.length;K<ne;K++)Xe.set(A[K],"globalEval",!N||Xe.get(N[K],"globalEval"))}var Lo=/<|&#?\w+;/;function ji(A,N,K,ne,he){for(var ue,ke,Qe,He,ht,Dt,jt=N.createDocumentFragment(),St=[],Qt=0,pn=A.length;Qt<pn;Qt++)if(ue=A[Qt],ue||ue===0)if(I(ue)==="object")S.merge(St,ue.nodeType?[ue]:ue);else if(!Lo.test(ue))St.push(N.createTextNode(ue));else{for(ke=ke||jt.appendChild(N.createElement("div")),Qe=(Hn.exec(ue)||["",""])[1].toLowerCase(),He=tn[Qe]||tn._default,ke.innerHTML=He[1]+S.htmlPrefilter(ue)+He[2],Dt=He[0];Dt--;)ke=ke.lastChild;S.merge(St,ke.childNodes),ke=jt.firstChild,ke.textContent=""}for(jt.textContent="",Qt=0;ue=St[Qt++];){if(ne&&S.inArray(ue,ne)>-1){he&&he.push(ue);continue}if(ht=fn(ue),ke=Fo(jt.appendChild(ue),"script"),ht&&Yr(ke),K)for(Dt=0;ue=ke[Dt++];)Oo.test(ue.type||"")&&K.push(ue)}return jt}var On=/^([^.]*)(?:\.(.+)|)/;function Hi(){return!0}function Gn(){return!1}function Ar(A,N,K,ne,he,ue){var ke,Qe;if(typeof N=="object"){typeof K!="string"&&(ne=ne||K,K=void 0);for(Qe in N)Ar(A,Qe,K,ne,N[Qe],ue);return A}if(ne==null&&he==null?(he=K,ne=K=void 0):he==null&&(typeof K=="string"?(he=ne,ne=void 0):(he=ne,ne=K,K=void 0)),he===!1)he=Gn;else if(!he)return A;return ue===1&&(ke=he,he=function(He){return S().off(He),ke.apply(this,arguments)},he.guid=ke.guid||(ke.guid=S.guid++)),A.each(function(){S.event.add(this,N,he,ne,K)})}S.event={global:{},add:function(A,N,K,ne,he){var ue,ke,Qe,He,ht,Dt,jt,St,Qt,pn,Qn,io=Xe.get(A);if(gt(A))for(K.handler&&(ue=K,K=ue.handler,he=ue.selector),he&&S.find.matchesSelector(cn,he),K.guid||(K.guid=S.guid++),(He=io.events)||(He=io.events=Object.create(null)),(ke=io.handle)||(ke=io.handle=function(Or){return typeof S<"u"&&S.event.triggered!==Or.type?S.event.dispatch.apply(A,arguments):void 0}),N=(N||"").match(Ye)||[""],ht=N.length;ht--;)Qe=On.exec(N[ht])||[],Qt=Qn=Qe[1],pn=(Qe[2]||"").split(".").sort(),Qt&&(jt=S.event.special[Qt]||{},Qt=(he?jt.delegateType:jt.bindType)||Qt,jt=S.event.special[Qt]||{},Dt=S.extend({type:Qt,origType:Qn,data:ne,handler:K,guid:K.guid,selector:he,needsContext:he&&S.expr.match.needsContext.test(he),namespace:pn.join(".")},ue),(St=He[Qt])||(St=He[Qt]=[],St.delegateCount=0,(!jt.setup||jt.setup.call(A,ne,pn,ke)===!1)&&A.addEventListener&&A.addEventListener(Qt,ke)),jt.add&&(jt.add.call(A,Dt),Dt.handler.guid||(Dt.handler.guid=K.guid)),he?St.splice(St.delegateCount++,0,Dt):St.push(Dt),S.event.global[Qt]=!0)},remove:function(A,N,K,ne,he){var ue,ke,Qe,He,ht,Dt,jt,St,Qt,pn,Qn,io=Xe.hasData(A)&&Xe.get(A);if(!(!io||!(He=io.events))){for(N=(N||"").match(Ye)||[""],ht=N.length;ht--;){if(Qe=On.exec(N[ht])||[],Qt=Qn=Qe[1],pn=(Qe[2]||"").split(".").sort(),!Qt){for(Qt in He)S.event.remove(A,Qt+N[ht],K,ne,!0);continue}for(jt=S.event.special[Qt]||{},Qt=(ne?jt.delegateType:jt.bindType)||Qt,St=He[Qt]||[],Qe=Qe[2]&&new RegExp("(^|\\.)"+pn.join("\\.(?:.*\\.|)")+"(\\.|$)"),ke=ue=St.length;ue--;)Dt=St[ue],(he||Qn===Dt.origType)&&(!K||K.guid===Dt.guid)&&(!Qe||Qe.test(Dt.namespace))&&(!ne||ne===Dt.selector||ne==="**"&&Dt.selector)&&(St.splice(ue,1),Dt.selector&&St.delegateCount--,jt.remove&&jt.remove.call(A,Dt));ke&&!St.length&&((!jt.teardown||jt.teardown.call(A,pn,io.handle)===!1)&&S.removeEvent(A,Qt,io.handle),delete He[Qt])}S.isEmptyObject(He)&&Xe.remove(A,"handle events")}},dispatch:function(A){var N,K,ne,he,ue,ke,Qe=new Array(arguments.length),He=S.event.fix(A),ht=(Xe.get(this,"events")||Object.create(null))[He.type]||[],Dt=S.event.special[He.type]||{};for(Qe[0]=He,N=1;N<arguments.length;N++)Qe[N]=arguments[N];if(He.delegateTarget=this,!(Dt.preDispatch&&Dt.preDispatch.call(this,He)===!1)){for(ke=S.event.handlers.call(this,He,ht),N=0;(he=ke[N++])&&!He.isPropagationStopped();)for(He.currentTarget=he.elem,K=0;(ue=he.handlers[K++])&&!He.isImmediatePropagationStopped();)(!He.rnamespace||ue.namespace===!1||He.rnamespace.test(ue.namespace))&&(He.handleObj=ue,He.data=ue.data,ne=((S.event.special[ue.origType]||{}).handle||ue.handler).apply(he.elem,Qe),ne!==void 0&&(He.result=ne)===!1&&(He.preventDefault(),He.stopPropagation()));return Dt.postDispatch&&Dt.postDispatch.call(this,He),He.result}},handlers:function(A,N){var K,ne,he,ue,ke,Qe=[],He=N.delegateCount,ht=A.target;if(He&&ht.nodeType&&!(A.type==="click"&&A.button>=1)){for(;ht!==this;ht=ht.parentNode||this)if(ht.nodeType===1&&!(A.type==="click"&&ht.disabled===!0)){for(ue=[],ke={},K=0;K<He;K++)ne=N[K],he=ne.selector+" ",ke[he]===void 0&&(ke[he]=ne.needsContext?S(he,this).index(ht)>-1:S.find(he,this,null,[ht]).length),ke[he]&&ue.push(ne);ue.length&&Qe.push({elem:ht,handlers:ue})}}return ht=this,He<N.length&&Qe.push({elem:ht,handlers:N.slice(He)}),Qe},addProp:function(A,N){Object.defineProperty(S.Event.prototype,A,{enumerable:!0,configurable:!0,get:k(N)?function(){if(this.originalEvent)return N(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[A]},set:function(K){Object.defineProperty(this,A,{enumerable:!0,configurable:!0,writable:!0,value:K})}})},fix:function(A){return A[S.expando]?A:new S.Event(A)},special:{load:{noBubble:!0},click:{setup:function(A){var N=this||A;return dn.test(N.type)&&N.click&&M(N,"input")&&Xs(N,"click",!0),!1},trigger:function(A){var N=this||A;return dn.test(N.type)&&N.click&&M(N,"input")&&Xs(N,"click"),!0},_default:function(A){var N=A.target;return dn.test(N.type)&&N.click&&M(N,"input")&&Xe.get(N,"click")||M(N,"a")}},beforeunload:{postDispatch:function(A){A.result!==void 0&&A.originalEvent&&(A.originalEvent.returnValue=A.result)}}}};function Xs(A,N,K){if(!K){Xe.get(A,N)===void 0&&S.event.add(A,N,Hi);return}Xe.set(A,N,!1),S.event.add(A,N,{namespace:!1,handler:function(ne){var he,ue=Xe.get(this,N);if(ne.isTrigger&1&&this[N]){if(ue)(S.event.special[N]||{}).delegateType&&ne.stopPropagation();else if(ue=r.call(arguments),Xe.set(this,N,ue),this[N](),he=Xe.get(this,N),Xe.set(this,N,!1),ue!==he)return ne.stopImmediatePropagation(),ne.preventDefault(),he}else ue&&(Xe.set(this,N,S.event.trigger(ue[0],ue.slice(1),this)),ne.stopPropagation(),ne.isImmediatePropagationStopped=Hi)}})}S.removeEvent=function(A,N,K){A.removeEventListener&&A.removeEventListener(N,K)},S.Event=function(A,N){if(!(this instanceof S.Event))return new S.Event(A,N);A&&A.type?(this.originalEvent=A,this.type=A.type,this.isDefaultPrevented=A.defaultPrevented||A.defaultPrevented===void 0&&A.returnValue===!1?Hi:Gn,this.target=A.target&&A.target.nodeType===3?A.target.parentNode:A.target,this.currentTarget=A.currentTarget,this.relatedTarget=A.relatedTarget):this.type=A,N&&S.extend(this,N),this.timeStamp=A&&A.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Gn,isPropagationStopped:Gn,isImmediatePropagationStopped:Gn,isSimulated:!1,preventDefault:function(){var A=this.originalEvent;this.isDefaultPrevented=Hi,A&&!this.isSimulated&&A.preventDefault()},stopPropagation:function(){var A=this.originalEvent;this.isPropagationStopped=Hi,A&&!this.isSimulated&&A.stopPropagation()},stopImmediatePropagation:function(){var A=this.originalEvent;this.isImmediatePropagationStopped=Hi,A&&!this.isSimulated&&A.stopImmediatePropagation(),this.stopPropagation()}},S.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},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(A,N){function K(ne){if($.documentMode){var he=Xe.get(this,"handle"),ue=S.event.fix(ne);ue.type=ne.type==="focusin"?"focus":"blur",ue.isSimulated=!0,he(ne),ue.target===ue.currentTarget&&he(ue)}else S.event.simulate(N,ne.target,S.event.fix(ne))}S.event.special[A]={setup:function(){var ne;if(Xs(this,A,!0),$.documentMode)ne=Xe.get(this,N),ne||this.addEventListener(N,K),Xe.set(this,N,(ne||0)+1);else return!1},trigger:function(){return Xs(this,A),!0},teardown:function(){var ne;if($.documentMode)ne=Xe.get(this,N)-1,ne?Xe.set(this,N,ne):(this.removeEventListener(N,K),Xe.remove(this,N));else return!1},_default:function(ne){return Xe.get(ne.target,A)},delegateType:N},S.event.special[N]={setup:function(){var ne=this.ownerDocument||this.document||this,he=$.documentMode?this:ne,ue=Xe.get(he,N);ue||($.documentMode?this.addEventListener(N,K):ne.addEventListener(A,K,!0)),Xe.set(he,N,(ue||0)+1)},teardown:function(){var ne=this.ownerDocument||this.document||this,he=$.documentMode?this:ne,ue=Xe.get(he,N)-1;ue?Xe.set(he,N,ue):($.documentMode?this.removeEventListener(N,K):ne.removeEventListener(A,K,!0),Xe.remove(he,N))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(A,N){S.event.special[A]={delegateType:N,bindType:N,handle:function(K){var ne,he=this,ue=K.relatedTarget,ke=K.handleObj;return(!ue||ue!==he&&!S.contains(he,ue))&&(K.type=ke.origType,ne=ke.handler.apply(this,arguments),K.type=N),ne}}}),S.fn.extend({on:function(A,N,K,ne){return Ar(this,A,N,K,ne)},one:function(A,N,K,ne){return Ar(this,A,N,K,ne,1)},off:function(A,N,K){var ne,he;if(A&&A.preventDefault&&A.handleObj)return ne=A.handleObj,S(A.delegateTarget).off(ne.namespace?ne.origType+"."+ne.namespace:ne.origType,ne.selector,ne.handler),this;if(typeof A=="object"){for(he in A)this.off(he,N,A[he]);return this}return(N===!1||typeof N=="function")&&(K=N,N=void 0),K===!1&&(K=Gn),this.each(function(){S.event.remove(this,A,K,N)})}});var Qs=/<script|<style|<link/i,So=/checked\s*(?:[^=]|=\s*.checked.)/i,ss=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Dr(A,N){return M(A,"table")&&M(N.nodeType!==11?N:N.firstChild,"tr")&&S(A).children("tbody")[0]||A}function Di(A){return A.type=(A.getAttribute("type")!==null)+"/"+A.type,A}function xr(A){return(A.type||"").slice(0,5)==="true/"?A.type=A.type.slice(5):A.removeAttribute("type"),A}function Wr(A,N){var K,ne,he,ue,ke,Qe,He;if(N.nodeType===1){if(Xe.hasData(A)&&(ue=Xe.get(A),He=ue.events,He)){Xe.remove(N,"handle events");for(he in He)for(K=0,ne=He[he].length;K<ne;K++)S.event.add(N,he,He[he][K])}Ze.hasData(A)&&(ke=Ze.access(A),Qe=S.extend({},ke),Ze.set(N,Qe))}}function yi(A,N){var K=N.nodeName.toLowerCase();K==="input"&&dn.test(A.type)?N.checked=A.checked:(K==="input"||K==="textarea")&&(N.defaultValue=A.defaultValue)}function ea(A,N,K,ne){N=s(N);var he,ue,ke,Qe,He,ht,Dt=0,jt=A.length,St=jt-1,Qt=N[0],pn=k(Qt);if(pn||jt>1&&typeof Qt=="string"&&!_.checkClone&&So.test(Qt))return A.each(function(Qn){var io=A.eq(Qn);pn&&(N[0]=Qt.call(this,Qn,io.html())),ea(io,N,K,ne)});if(jt&&(he=ji(N,A[0].ownerDocument,!1,A,ne),ue=he.firstChild,he.childNodes.length===1&&(he=ue),ue||ne)){for(ke=S.map(Fo(he,"script"),Di),Qe=ke.length;Dt<jt;Dt++)He=he,Dt!==St&&(He=S.clone(He,!0,!0),Qe&&S.merge(ke,Fo(He,"script"))),K.call(A[Dt],He,Dt);if(Qe)for(ht=ke[ke.length-1].ownerDocument,S.map(ke,xr),Dt=0;Dt<Qe;Dt++)He=ke[Dt],Oo.test(He.type||"")&&!Xe.access(He,"globalEval")&&S.contains(ht,He)&&(He.src&&(He.type||"").toLowerCase()!=="module"?S._evalUrl&&!He.noModule&&S._evalUrl(He.src,{nonce:He.nonce||He.getAttribute("nonce")},ht):P(He.textContent.replace(ss,""),He,ht))}return A}function mc(A,N,K){for(var ne,he=N?S.filter(N,A):A,ue=0;(ne=he[ue])!=null;ue++)!K&&ne.nodeType===1&&S.cleanData(Fo(ne)),ne.parentNode&&(K&&fn(ne)&&Yr(Fo(ne,"script")),ne.parentNode.removeChild(ne));return A}S.extend({htmlPrefilter:function(A){return A},clone:function(A,N,K){var ne,he,ue,ke,Qe=A.cloneNode(!0),He=fn(A);if(!_.noCloneChecked&&(A.nodeType===1||A.nodeType===11)&&!S.isXMLDoc(A))for(ke=Fo(Qe),ue=Fo(A),ne=0,he=ue.length;ne<he;ne++)yi(ue[ne],ke[ne]);if(N)if(K)for(ue=ue||Fo(A),ke=ke||Fo(Qe),ne=0,he=ue.length;ne<he;ne++)Wr(ue[ne],ke[ne]);else Wr(A,Qe);return ke=Fo(Qe,"script"),ke.length>0&&Yr(ke,!He&&Fo(A,"script")),Qe},cleanData:function(A){for(var N,K,ne,he=S.event.special,ue=0;(K=A[ue])!==void 0;ue++)if(gt(K)){if(N=K[Xe.expando]){if(N.events)for(ne in N.events)he[ne]?S.event.remove(K,ne):S.removeEvent(K,ne,N.handle);K[Xe.expando]=void 0}K[Ze.expando]&&(K[Ze.expando]=void 0)}}}),S.fn.extend({detach:function(A){return mc(this,A,!0)},remove:function(A){return mc(this,A)},text:function(A){return Ve(this,function(N){return N===void 0?S.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=N)})},null,A,arguments.length)},append:function(){return ea(this,arguments,function(A){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var N=Dr(this,A);N.appendChild(A)}})},prepend:function(){return ea(this,arguments,function(A){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var N=Dr(this,A);N.insertBefore(A,N.firstChild)}})},before:function(){return ea(this,arguments,function(A){this.parentNode&&this.parentNode.insertBefore(A,this)})},after:function(){return ea(this,arguments,function(A){this.parentNode&&this.parentNode.insertBefore(A,this.nextSibling)})},empty:function(){for(var A,N=0;(A=this[N])!=null;N++)A.nodeType===1&&(S.cleanData(Fo(A,!1)),A.textContent="");return this},clone:function(A,N){return A=A??!1,N=N??A,this.map(function(){return S.clone(this,A,N)})},html:function(A){return Ve(this,function(N){var K=this[0]||{},ne=0,he=this.length;if(N===void 0&&K.nodeType===1)return K.innerHTML;if(typeof N=="string"&&!Qs.test(N)&&!tn[(Hn.exec(N)||["",""])[1].toLowerCase()]){N=S.htmlPrefilter(N);try{for(;ne<he;ne++)K=this[ne]||{},K.nodeType===1&&(S.cleanData(Fo(K,!1)),K.innerHTML=N);K=0}catch{}}K&&this.empty().append(N)},null,A,arguments.length)},replaceWith:function(){var A=[];return ea(this,arguments,function(N){var K=this.parentNode;S.inArray(this,A)<0&&(S.cleanData(Fo(this)),K&&K.replaceChild(N,this))},A)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(A,N){S.fn[A]=function(K){for(var ne,he=[],ue=S(K),ke=ue.length-1,Qe=0;Qe<=ke;Qe++)ne=Qe===ke?this:this.clone(!0),S(ue[Qe])[N](ne),a.apply(he,ne.get());return this.pushStack(he)}});var js=new RegExp("^("+pt+")(?!px)[a-z%]+$","i"),Ka=/^--/,Ja=function(A){var N=A.ownerDocument.defaultView;return(!N||!N.opener)&&(N=t),N.getComputedStyle(A)},Fi=function(A,N,K){var ne,he,ue={};for(he in N)ue[he]=A.style[he],A.style[he]=N[he];ne=K.call(A);for(he in N)A.style[he]=ue[he];return ne},Cs=new RegExp(Vt.join("|"),"i");(function(){function A(){if(ht){He.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",ht.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",cn.appendChild(He).appendChild(ht);var Dt=t.getComputedStyle(ht);K=Dt.top!=="1%",Qe=N(Dt.marginLeft)===12,ht.style.right="60%",ue=N(Dt.right)===36,ne=N(Dt.width)===36,ht.style.position="absolute",he=N(ht.offsetWidth/3)===12,cn.removeChild(He),ht=null}}function N(Dt){return Math.round(parseFloat(Dt))}var K,ne,he,ue,ke,Qe,He=$.createElement("div"),ht=$.createElement("div");ht.style&&(ht.style.backgroundClip="content-box",ht.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle=ht.style.backgroundClip==="content-box",S.extend(_,{boxSizingReliable:function(){return A(),ne},pixelBoxStyles:function(){return A(),ue},pixelPosition:function(){return A(),K},reliableMarginLeft:function(){return A(),Qe},scrollboxSize:function(){return A(),he},reliableTrDimensions:function(){var Dt,jt,St,Qt;return ke==null&&(Dt=$.createElement("table"),jt=$.createElement("tr"),St=$.createElement("div"),Dt.style.cssText="position:absolute;left:-11111px;border-collapse:separate",jt.style.cssText="box-sizing:content-box;border:1px solid",jt.style.height="1px",St.style.height="9px",St.style.display="block",cn.appendChild(Dt).appendChild(jt).appendChild(St),Qt=t.getComputedStyle(jt),ke=parseInt(Qt.height,10)+parseInt(Qt.borderTopWidth,10)+parseInt(Qt.borderBottomWidth,10)===jt.offsetHeight,cn.removeChild(Dt)),ke}}))})();function Fs(A,N,K){var ne,he,ue,ke,Qe=Ka.test(N),He=A.style;return K=K||Ja(A),K&&(ke=K.getPropertyValue(N)||K[N],Qe&&ke&&(ke=ke.replace(Q,"$1")||void 0),ke===""&&!fn(A)&&(ke=S.style(A,N)),!_.pixelBoxStyles()&&js.test(ke)&&Cs.test(N)&&(ne=He.width,he=He.minWidth,ue=He.maxWidth,He.minWidth=He.maxWidth=He.width=ke,ke=K.width,He.width=ne,He.minWidth=he,He.maxWidth=ue)),ke!==void 0?ke+"":ke}function as(A,N){return{get:function(){if(A()){delete this.get;return}return(this.get=N).apply(this,arguments)}}}var Rl=["Webkit","Moz","ms"],zs=$.createElement("div").style,oi={};function Ss(A){for(var N=A[0].toUpperCase()+A.slice(1),K=Rl.length;K--;)if(A=Rl[K]+N,A in zs)return A}function ls(A){var N=S.cssProps[A]||oi[A];return N||(A in zs?A:oi[A]=Ss(A)||A)}var Gr=/^(none|table(?!-c[ea]).+)/,Xa={position:"absolute",visibility:"hidden",display:"block"},Qa={letterSpacing:"0",fontWeight:"400"};function pc(A,N,K){var ne=At.exec(N);return ne?Math.max(0,ne[2]-(K||0))+(ne[3]||"px"):N}function jl(A,N,K,ne,he,ue){var ke=N==="width"?1:0,Qe=0,He=0,ht=0;if(K===(ne?"border":"content"))return 0;for(;ke<4;ke+=2)K==="margin"&&(ht+=S.css(A,K+Vt[ke],!0,he)),ne?(K==="content"&&(He-=S.css(A,"padding"+Vt[ke],!0,he)),K!=="margin"&&(He-=S.css(A,"border"+Vt[ke]+"Width",!0,he))):(He+=S.css(A,"padding"+Vt[ke],!0,he),K!=="padding"?He+=S.css(A,"border"+Vt[ke]+"Width",!0,he):Qe+=S.css(A,"border"+Vt[ke]+"Width",!0,he));return!ne&&ue>=0&&(He+=Math.max(0,Math.ceil(A["offset"+N[0].toUpperCase()+N.slice(1)]-ue-He-Qe-.5))||0),He+ht}function Ie(A,N,K){var ne=Ja(A),he=!_.boxSizingReliable()||K,ue=he&&S.css(A,"boxSizing",!1,ne)==="border-box",ke=ue,Qe=Fs(A,N,ne),He="offset"+N[0].toUpperCase()+N.slice(1);if(js.test(Qe)){if(!K)return Qe;Qe="auto"}return(!_.boxSizingReliable()&&ue||!_.reliableTrDimensions()&&M(A,"tr")||Qe==="auto"||!parseFloat(Qe)&&S.css(A,"display",!1,ne)==="inline")&&A.getClientRects().length&&(ue=S.css(A,"boxSizing",!1,ne)==="border-box",ke=He in A,ke&&(Qe=A[He])),Qe=parseFloat(Qe)||0,Qe+jl(A,N,K||(ue?"border":"content"),ke,ne,Qe)+"px"}S.extend({cssHooks:{opacity:{get:function(A,N){if(N){var K=Fs(A,"opacity");return K===""?"1":K}}}},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,N,K,ne){if(!(!A||A.nodeType===3||A.nodeType===8||!A.style)){var he,ue,ke,Qe=Te(N),He=Ka.test(N),ht=A.style;if(He||(N=ls(Qe)),ke=S.cssHooks[N]||S.cssHooks[Qe],K!==void 0){if(ue=typeof K,ue==="string"&&(he=At.exec(K))&&he[1]&&(K=Ne(A,N,he),ue="number"),K==null||K!==K)return;ue==="number"&&!He&&(K+=he&&he[3]||(S.cssNumber[Qe]?"":"px")),!_.clearCloneStyle&&K===""&&N.indexOf("background")===0&&(ht[N]="inherit"),(!ke||!("set"in ke)||(K=ke.set(A,K,ne))!==void 0)&&(He?ht.setProperty(N,K):ht[N]=K)}else return ke&&"get"in ke&&(he=ke.get(A,!1,ne))!==void 0?he:ht[N]}},css:function(A,N,K,ne){var he,ue,ke,Qe=Te(N),He=Ka.test(N);return He||(N=ls(Qe)),ke=S.cssHooks[N]||S.cssHooks[Qe],ke&&"get"in ke&&(he=ke.get(A,!0,K)),he===void 0&&(he=Fs(A,N,ne)),he==="normal"&&N in Qa&&(he=Qa[N]),K===""||K?(ue=parseFloat(he),K===!0||isFinite(ue)?ue||0:he):he}}),S.each(["height","width"],function(A,N){S.cssHooks[N]={get:function(K,ne,he){if(ne)return Gr.test(S.css(K,"display"))&&(!K.getClientRects().length||!K.getBoundingClientRect().width)?Fi(K,Xa,function(){return Ie(K,N,he)}):Ie(K,N,he)},set:function(K,ne,he){var ue,ke=Ja(K),Qe=!_.scrollboxSize()&&ke.position==="absolute",He=Qe||he,ht=He&&S.css(K,"boxSizing",!1,ke)==="border-box",Dt=he?jl(K,N,he,ht,ke):0;return ht&&Qe&&(Dt-=Math.ceil(K["offset"+N[0].toUpperCase()+N.slice(1)]-parseFloat(ke[N])-jl(K,N,"border",!1,ke)-.5)),Dt&&(ue=At.exec(ne))&&(ue[3]||"px")!=="px"&&(K.style[N]=ne,ne=S.css(K,N)),pc(K,ne,Dt)}}}),S.cssHooks.marginLeft=as(_.reliableMarginLeft,function(A,N){if(N)return(parseFloat(Fs(A,"marginLeft"))||A.getBoundingClientRect().left-Fi(A,{marginLeft:0},function(){return A.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(A,N){S.cssHooks[A+N]={expand:function(K){for(var ne=0,he={},ue=typeof K=="string"?K.split(" "):[K];ne<4;ne++)he[A+Vt[ne]+N]=ue[ne]||ue[ne-2]||ue[0];return he}},A!=="margin"&&(S.cssHooks[A+N].set=pc)}),S.fn.extend({css:function(A,N){return Ve(this,function(K,ne,he){var ue,ke,Qe={},He=0;if(Array.isArray(ne)){for(ue=Ja(K),ke=ne.length;He<ke;He++)Qe[ne[He]]=S.css(K,ne[He],!1,ue);return Qe}return he!==void 0?S.style(K,ne,he):S.css(K,ne)},A,N,arguments.length>1)}});function Ke(A,N,K,ne,he){return new Ke.prototype.init(A,N,K,ne,he)}S.Tween=Ke,Ke.prototype={constructor:Ke,init:function(A,N,K,ne,he,ue){this.elem=A,this.prop=K,this.easing=he||S.easing._default,this.options=N,this.start=this.now=this.cur(),this.end=ne,this.unit=ue||(S.cssNumber[K]?"":"px")},cur:function(){var A=Ke.propHooks[this.prop];return A&&A.get?A.get(this):Ke.propHooks._default.get(this)},run:function(A){var N,K=Ke.propHooks[this.prop];return this.options.duration?this.pos=N=S.easing[this.easing](A,this.options.duration*A,0,1,this.options.duration):this.pos=N=A,this.now=(this.end-this.start)*N+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),K&&K.set?K.set(this):Ke.propHooks._default.set(this),this}},Ke.prototype.init.prototype=Ke.prototype,Ke.propHooks={_default:{get:function(A){var N;return A.elem.nodeType!==1||A.elem[A.prop]!=null&&A.elem.style[A.prop]==null?A.elem[A.prop]:(N=S.css(A.elem,A.prop,""),!N||N==="auto"?0:N)},set:function(A){S.fx.step[A.prop]?S.fx.step[A.prop](A):A.elem.nodeType===1&&(S.cssHooks[A.prop]||A.elem.style[ls(A.prop)]!=null)?S.style(A.elem,A.prop,A.now+A.unit):A.elem[A.prop]=A.now}}},Ke.propHooks.scrollTop=Ke.propHooks.scrollLeft={set:function(A){A.elem.nodeType&&A.elem.parentNode&&(A.elem[A.prop]=A.now)}},S.easing={linear:function(A){return A},swing:function(A){return .5-Math.cos(A*Math.PI)/2},_default:"swing"},S.fx=Ke.prototype.init,S.fx.step={};var ze,lt,ft=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function Nt(){lt&&($.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Nt):t.setTimeout(Nt,S.fx.interval),S.fx.tick())}function qt(){return t.setTimeout(function(){ze=void 0}),ze=Date.now()}function Kt(A,N){var K,ne=0,he={height:A};for(N=N?1:0;ne<4;ne+=2-N)K=Vt[ne],he["margin"+K]=he["padding"+K]=A;return N&&(he.opacity=he.width=A),he}function Xt(A,N,K){for(var ne,he=(xn.tweeners[N]||[]).concat(xn.tweeners["*"]),ue=0,ke=he.length;ue<ke;ue++)if(ne=he[ue].call(K,N,A))return ne}function nn(A,N,K){var ne,he,ue,ke,Qe,He,ht,Dt,jt="width"in N||"height"in N,St=this,Qt={},pn=A.style,Qn=A.nodeType&&kt(A),io=Xe.get(A,"fxshow");K.queue||(ke=S._queueHooks(A,"fx"),ke.unqueued==null&&(ke.unqueued=0,Qe=ke.empty.fire,ke.empty.fire=function(){ke.unqueued||Qe()}),ke.unqueued++,St.always(function(){St.always(function(){ke.unqueued--,S.queue(A,"fx").length||ke.empty.fire()})}));for(ne in N)if(he=N[ne],ft.test(he)){if(delete N[ne],ue=ue||he==="toggle",he===(Qn?"hide":"show"))if(he==="show"&&io&&io[ne]!==void 0)Qn=!0;else continue;Qt[ne]=io&&io[ne]||S.style(A,ne)}if(He=!S.isEmptyObject(N),!(!He&&S.isEmptyObject(Qt))){jt&&A.nodeType===1&&(K.overflow=[pn.overflow,pn.overflowX,pn.overflowY],ht=io&&io.display,ht==null&&(ht=Xe.get(A,"display")),Dt=S.css(A,"display"),Dt==="none"&&(ht?Dt=ht:(Zt([A],!0),ht=A.style.display||ht,Dt=S.css(A,"display"),Zt([A]))),(Dt==="inline"||Dt==="inline-block"&&ht!=null)&&S.css(A,"float")==="none"&&(He||(St.done(function(){pn.display=ht}),ht==null&&(Dt=pn.display,ht=Dt==="none"?"":Dt)),pn.display="inline-block")),K.overflow&&(pn.overflow="hidden",St.always(function(){pn.overflow=K.overflow[0],pn.overflowX=K.overflow[1],pn.overflowY=K.overflow[2]})),He=!1;for(ne in Qt)He||(io?"hidden"in io&&(Qn=io.hidden):io=Xe.access(A,"fxshow",{display:ht}),ue&&(io.hidden=!Qn),Qn&&Zt([A],!0),St.done(function(){Qn||Zt([A]),Xe.remove(A,"fxshow");for(ne in Qt)S.style(A,ne,Qt[ne])})),He=Xt(Qn?io[ne]:0,ne,St),ne in io||(io[ne]=He.start,Qn&&(He.end=He.start,He.start=0))}}function mn(A,N){var K,ne,he,ue,ke;for(K in A)if(ne=Te(K),he=N[ne],ue=A[K],Array.isArray(ue)&&(he=ue[1],ue=A[K]=ue[0]),K!==ne&&(A[ne]=ue,delete A[K]),ke=S.cssHooks[ne],ke&&"expand"in ke){ue=ke.expand(ue),delete A[ne];for(K in ue)K in A||(A[K]=ue[K],N[K]=he)}else N[ne]=he}function xn(A,N,K){var ne,he,ue=0,ke=xn.prefilters.length,Qe=S.Deferred().always(function(){delete He.elem}),He=function(){if(he)return!1;for(var jt=ze||qt(),St=Math.max(0,ht.startTime+ht.duration-jt),Qt=St/ht.duration||0,pn=1-Qt,Qn=0,io=ht.tweens.length;Qn<io;Qn++)ht.tweens[Qn].run(pn);return Qe.notifyWith(A,[ht,pn,St]),pn<1&&io?St:(io||Qe.notifyWith(A,[ht,1,0]),Qe.resolveWith(A,[ht]),!1)},ht=Qe.promise({elem:A,props:S.extend({},N),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},K),originalProperties:N,originalOptions:K,startTime:ze||qt(),duration:K.duration,tweens:[],createTween:function(jt,St){var Qt=S.Tween(A,ht.opts,jt,St,ht.opts.specialEasing[jt]||ht.opts.easing);return ht.tweens.push(Qt),Qt},stop:function(jt){var St=0,Qt=jt?ht.tweens.length:0;if(he)return this;for(he=!0;St<Qt;St++)ht.tweens[St].run(1);return jt?(Qe.notifyWith(A,[ht,1,0]),Qe.resolveWith(A,[ht,jt])):Qe.rejectWith(A,[ht,jt]),this}}),Dt=ht.props;for(mn(Dt,ht.opts.specialEasing);ue<ke;ue++)if(ne=xn.prefilters[ue].call(ht,A,Dt,ht.opts),ne)return k(ne.stop)&&(S._queueHooks(ht.elem,ht.opts.queue).stop=ne.stop.bind(ne)),ne;return S.map(Dt,Xt,ht),k(ht.opts.start)&&ht.opts.start.call(A,ht),ht.progress(ht.opts.progress).done(ht.opts.done,ht.opts.complete).fail(ht.opts.fail).always(ht.opts.always),S.fx.timer(S.extend(He,{elem:A,anim:ht,queue:ht.opts.queue})),ht}S.Animation=S.extend(xn,{tweeners:{"*":[function(A,N){var K=this.createTween(A,N);return Ne(K.elem,A,At.exec(N),K),K}]},tweener:function(A,N){k(A)?(N=A,A=["*"]):A=A.match(Ye);for(var K,ne=0,he=A.length;ne<he;ne++)K=A[ne],xn.tweeners[K]=xn.tweeners[K]||[],xn.tweeners[K].unshift(N)},prefilters:[nn],prefilter:function(A,N){N?xn.prefilters.unshift(A):xn.prefilters.push(A)}}),S.speed=function(A,N,K){var ne=A&&typeof A=="object"?S.extend({},A):{complete:K||!K&&N||k(A)&&A,duration:A,easing:K&&N||N&&!k(N)&&N};return S.fx.off?ne.duration=0:typeof ne.duration!="number"&&(ne.duration in S.fx.speeds?ne.duration=S.fx.speeds[ne.duration]:ne.duration=S.fx.speeds._default),(ne.queue==null||ne.queue===!0)&&(ne.queue="fx"),ne.old=ne.complete,ne.complete=function(){k(ne.old)&&ne.old.call(this),ne.queue&&S.dequeue(this,ne.queue)},ne},S.fn.extend({fadeTo:function(A,N,K,ne){return this.filter(kt).css("opacity",0).show().end().animate({opacity:N},A,K,ne)},animate:function(A,N,K,ne){var he=S.isEmptyObject(A),ue=S.speed(N,K,ne),ke=function(){var Qe=xn(this,S.extend({},A),ue);(he||Xe.get(this,"finish"))&&Qe.stop(!0)};return ke.finish=ke,he||ue.queue===!1?this.each(ke):this.queue(ue.queue,ke)},stop:function(A,N,K){var ne=function(he){var ue=he.stop;delete he.stop,ue(K)};return typeof A!="string"&&(K=N,N=A,A=void 0),N&&this.queue(A||"fx",[]),this.each(function(){var he=!0,ue=A!=null&&A+"queueHooks",ke=S.timers,Qe=Xe.get(this);if(ue)Qe[ue]&&Qe[ue].stop&&ne(Qe[ue]);else for(ue in Qe)Qe[ue]&&Qe[ue].stop&&ct.test(ue)&&ne(Qe[ue]);for(ue=ke.length;ue--;)ke[ue].elem===this&&(A==null||ke[ue].queue===A)&&(ke[ue].anim.stop(K),he=!1,ke.splice(ue,1));(he||!K)&&S.dequeue(this,A)})},finish:function(A){return A!==!1&&(A=A||"fx"),this.each(function(){var N,K=Xe.get(this),ne=K[A+"queue"],he=K[A+"queueHooks"],ue=S.timers,ke=ne?ne.length:0;for(K.finish=!0,S.queue(this,A,[]),he&&he.stop&&he.stop.call(this,!0),N=ue.length;N--;)ue[N].elem===this&&ue[N].queue===A&&(ue[N].anim.stop(!0),ue.splice(N,1));for(N=0;N<ke;N++)ne[N]&&ne[N].finish&&ne[N].finish.call(this);delete K.finish})}}),S.each(["toggle","show","hide"],function(A,N){var K=S.fn[N];S.fn[N]=function(ne,he,ue){return ne==null||typeof ne=="boolean"?K.apply(this,arguments):this.animate(Kt(N,!0),ne,he,ue)}}),S.each({slideDown:Kt("show"),slideUp:Kt("hide"),slideToggle:Kt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(A,N){S.fn[A]=function(K,ne,he){return this.animate(N,K,ne,he)}}),S.timers=[],S.fx.tick=function(){var A,N=0,K=S.timers;for(ze=Date.now();N<K.length;N++)A=K[N],!A()&&K[N]===A&&K.splice(N--,1);K.length||S.fx.stop(),ze=void 0},S.fx.timer=function(A){S.timers.push(A),S.fx.start()},S.fx.interval=13,S.fx.start=function(){lt||(lt=!0,Nt())},S.fx.stop=function(){lt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(A,N){return A=S.fx&&S.fx.speeds[A]||A,N=N||"fx",this.queue(N,function(K,ne){var he=t.setTimeout(K,A);ne.stop=function(){t.clearTimeout(he)}})},function(){var A=$.createElement("input"),N=$.createElement("select"),K=N.appendChild($.createElement("option"));A.type="checkbox",_.checkOn=A.value!=="",_.optSelected=K.selected,A=$.createElement("input"),A.value="t",A.type="radio",_.radioValue=A.value==="t"}();var no,Mn=S.expr.attrHandle;S.fn.extend({attr:function(A,N){return Ve(this,S.attr,A,N,arguments.length>1)},removeAttr:function(A){return this.each(function(){S.removeAttr(this,A)})}}),S.extend({attr:function(A,N,K){var ne,he,ue=A.nodeType;if(!(ue===3||ue===8||ue===2)){if(typeof A.getAttribute>"u")return S.prop(A,N,K);if((ue!==1||!S.isXMLDoc(A))&&(he=S.attrHooks[N.toLowerCase()]||(S.expr.match.bool.test(N)?no:void 0)),K!==void 0){if(K===null){S.removeAttr(A,N);return}return he&&"set"in he&&(ne=he.set(A,K,N))!==void 0?ne:(A.setAttribute(N,K+""),K)}return he&&"get"in he&&(ne=he.get(A,N))!==null?ne:(ne=S.find.attr(A,N),ne??void 0)}},attrHooks:{type:{set:function(A,N){if(!_.radioValue&&N==="radio"&&M(A,"input")){var K=A.value;return A.setAttribute("type",N),K&&(A.value=K),N}}}},removeAttr:function(A,N){var K,ne=0,he=N&&N.match(Ye);if(he&&A.nodeType===1)for(;K=he[ne++];)A.removeAttribute(K)}}),no={set:function(A,N,K){return N===!1?S.removeAttr(A,K):A.setAttribute(K,K),K}},S.each(S.expr.match.bool.source.match(/\w+/g),function(A,N){var K=Mn[N]||S.find.attr;Mn[N]=function(ne,he,ue){var ke,Qe,He=he.toLowerCase();return ue||(Qe=Mn[He],Mn[He]=ke,ke=K(ne,he,ue)!=null?He:null,Mn[He]=Qe),ke}});var To=/^(?:input|select|textarea|button)$/i,mo=/^(?:a|area)$/i;S.fn.extend({prop:function(A,N){return Ve(this,S.prop,A,N,arguments.length>1)},removeProp:function(A){return this.each(function(){delete this[S.propFix[A]||A]})}}),S.extend({prop:function(A,N,K){var ne,he,ue=A.nodeType;if(!(ue===3||ue===8||ue===2))return(ue!==1||!S.isXMLDoc(A))&&(N=S.propFix[N]||N,he=S.propHooks[N]),K!==void 0?he&&"set"in he&&(ne=he.set(A,K,N))!==void 0?ne:A[N]=K:he&&"get"in he&&(ne=he.get(A,N))!==null?ne:A[N]},propHooks:{tabIndex:{get:function(A){var N=S.find.attr(A,"tabindex");return N?parseInt(N,10):To.test(A.nodeName)||mo.test(A.nodeName)&&A.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(S.propHooks.selected={get:function(A){var N=A.parentNode;return N&&N.parentNode&&N.parentNode.selectedIndex,null},set:function(A){var N=A.parentNode;N&&(N.selectedIndex,N.parentNode&&N.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this});function ii(A){var N=A.match(Ye)||[];return N.join(" ")}function gr(A){return A.getAttribute&&A.getAttribute("class")||""}function vr(A){return Array.isArray(A)?A:typeof A=="string"?A.match(Ye)||[]:[]}S.fn.extend({addClass:function(A){var N,K,ne,he,ue,ke;return k(A)?this.each(function(Qe){S(this).addClass(A.call(this,Qe,gr(this)))}):(N=vr(A),N.length?this.each(function(){if(ne=gr(this),K=this.nodeType===1&&" "+ii(ne)+" ",K){for(ue=0;ue<N.length;ue++)he=N[ue],K.indexOf(" "+he+" ")<0&&(K+=he+" ");ke=ii(K),ne!==ke&&this.setAttribute("class",ke)}}):this)},removeClass:function(A){var N,K,ne,he,ue,ke;return k(A)?this.each(function(Qe){S(this).removeClass(A.call(this,Qe,gr(this)))}):arguments.length?(N=vr(A),N.length?this.each(function(){if(ne=gr(this),K=this.nodeType===1&&" "+ii(ne)+" ",K){for(ue=0;ue<N.length;ue++)for(he=N[ue];K.indexOf(" "+he+" ")>-1;)K=K.replace(" "+he+" "," ");ke=ii(K),ne!==ke&&this.setAttribute("class",ke)}}):this):this.attr("class","")},toggleClass:function(A,N){var K,ne,he,ue,ke=typeof A,Qe=ke==="string"||Array.isArray(A);return k(A)?this.each(function(He){S(this).toggleClass(A.call(this,He,gr(this),N),N)}):typeof N=="boolean"&&Qe?N?this.addClass(A):this.removeClass(A):(K=vr(A),this.each(function(){if(Qe)for(ue=S(this),he=0;he<K.length;he++)ne=K[he],ue.hasClass(ne)?ue.removeClass(ne):ue.addClass(ne);else(A===void 0||ke==="boolean")&&(ne=gr(this),ne&&Xe.set(this,"__className__",ne),this.setAttribute&&this.setAttribute("class",ne||A===!1?"":Xe.get(this,"__className__")||""))}))},hasClass:function(A){var N,K,ne=0;for(N=" "+A+" ";K=this[ne++];)if(K.nodeType===1&&(" "+ii(gr(K))+" ").indexOf(N)>-1)return!0;return!1}});var gc=/\r/g;S.fn.extend({val:function(A){var N,K,ne,he=this[0];return arguments.length?(ne=k(A),this.each(function(ue){var ke;this.nodeType===1&&(ne?ke=A.call(this,ue,S(this).val()):ke=A,ke==null?ke="":typeof ke=="number"?ke+="":Array.isArray(ke)&&(ke=S.map(ke,function(Qe){return Qe==null?"":Qe+""})),N=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],(!N||!("set"in N)||N.set(this,ke,"value")===void 0)&&(this.value=ke))})):he?(N=S.valHooks[he.type]||S.valHooks[he.nodeName.toLowerCase()],N&&"get"in N&&(K=N.get(he,"value"))!==void 0?K:(K=he.value,typeof K=="string"?K.replace(gc,""):K??"")):void 0}}),S.extend({valHooks:{option:{get:function(A){var N=S.find.attr(A,"value");return N??ii(S.text(A))}},select:{get:function(A){var N,K,ne,he=A.options,ue=A.selectedIndex,ke=A.type==="select-one",Qe=ke?null:[],He=ke?ue+1:he.length;for(ue<0?ne=He:ne=ke?ue:0;ne<He;ne++)if(K=he[ne],(K.selected||ne===ue)&&!K.disabled&&(!K.parentNode.disabled||!M(K.parentNode,"optgroup"))){if(N=S(K).val(),ke)return N;Qe.push(N)}return Qe},set:function(A,N){for(var K,ne,he=A.options,ue=S.makeArray(N),ke=he.length;ke--;)ne=he[ke],(ne.selected=S.inArray(S.valHooks.option.get(ne),ue)>-1)&&(K=!0);return K||(A.selectedIndex=-1),ue}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(A,N){if(Array.isArray(N))return A.checked=S.inArray(S(A).val(),N)>-1}},_.checkOn||(S.valHooks[this].get=function(A){return A.getAttribute("value")===null?"on":A.value})});var Ts=t.location,vc={guid:Date.now()},ta=/\?/;S.parseXML=function(A){var N,K;if(!A||typeof A!="string")return null;try{N=new t.DOMParser().parseFromString(A,"text/xml")}catch{}return K=N&&N.getElementsByTagName("parsererror")[0],(!N||K)&&S.error("Invalid XML: "+(K?S.map(K.childNodes,function(ne){return ne.textContent}).join(` `):A)),N};var Fl=/^(?:focusinfocus|focusoutblur)$/,Vi=function(A){A.stopPropagation()};S.extend(S.event,{trigger:function(A,N,K,ne){var he,ue,ke,Qe,He,ht,Dt,jt,St=[K||$],Qt=f.call(A,"type")?A.type:A,pn=f.call(A,"namespace")?A.namespace.split("."):[];if(ue=jt=ke=K=K||$,!(K.nodeType===3||K.nodeType===8)&&!Fl.test(Qt+S.event.triggered)&&(Qt.indexOf(".")>-1&&(pn=Qt.split("."),Qt=pn.shift(),pn.sort()),He=Qt.indexOf(":")<0&&"on"+Qt,A=A[S.expando]?A:new S.Event(Qt,typeof A=="object"&&A),A.isTrigger=ne?2:3,A.namespace=pn.join("."),A.rnamespace=A.namespace?new RegExp("(^|\\.)"+pn.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,A.result=void 0,A.target||(A.target=K),N=N==null?[A]:S.makeArray(N,[A]),Dt=S.event.special[Qt]||{},!(!ne&&Dt.trigger&&Dt.trigger.apply(K,N)===!1))){if(!ne&&!Dt.noBubble&&!C(K)){for(Qe=Dt.delegateType||Qt,Fl.test(Qe+Qt)||(ue=ue.parentNode);ue;ue=ue.parentNode)St.push(ue),ke=ue;ke===(K.ownerDocument||$)&&St.push(ke.defaultView||ke.parentWindow||t)}for(he=0;(ue=St[he++])&&!A.isPropagationStopped();)jt=ue,A.type=he>1?Qe:Dt.bindType||Qt,ht=(Xe.get(ue,"events")||Object.create(null))[A.type]&&Xe.get(ue,"handle"),ht&&ht.apply(ue,N),ht=He&&ue[He],ht&&ht.apply&>(ue)&&(A.result=ht.apply(ue,N),A.result===!1&&A.preventDefault());return A.type=Qt,!ne&&!A.isDefaultPrevented()&&(!Dt._default||Dt._default.apply(St.pop(),N)===!1)&>(K)&&He&&k(K[Qt])&&!C(K)&&(ke=K[He],ke&&(K[He]=null),S.event.triggered=Qt,A.isPropagationStopped()&&jt.addEventListener(Qt,Vi),K[Qt](),A.isPropagationStopped()&&jt.removeEventListener(Qt,Vi),S.event.triggered=void 0,ke&&(K[He]=ke)),A.result}},simulate:function(A,N,K){var ne=S.extend(new S.Event,K,{type:A,isSimulated:!0});S.event.trigger(ne,null,N)}}),S.fn.extend({trigger:function(A,N){return this.each(function(){S.event.trigger(A,N,this)})},triggerHandler:function(A,N){var K=this[0];if(K)return S.event.trigger(A,N,K,!0)}});var mu=/\[\]$/,_c=/\r?\n/g,yc=/^(?:submit|button|image|reset|file)$/i,ud=/^(?:input|select|textarea|keygen)/i;function el(A,N,K,ne){var he;if(Array.isArray(N))S.each(N,function(ue,ke){K||mu.test(A)?ne(A,ke):el(A+"["+(typeof ke=="object"&&ke!=null?ue:"")+"]",ke,K,ne)});else if(!K&&I(N)==="object")for(he in N)el(A+"["+he+"]",N[he],K,ne);else ne(A,N)}S.param=function(A,N){var K,ne=[],he=function(ue,ke){var Qe=k(ke)?ke():ke;ne[ne.length]=encodeURIComponent(ue)+"="+encodeURIComponent(Qe??"")};if(A==null)return"";if(Array.isArray(A)||A.jquery&&!S.isPlainObject(A))S.each(A,function(){he(this.name,this.value)});else for(K in A)el(K,A[K],N,he);return ne.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var A=S.prop(this,"elements");return A?S.makeArray(A):this}).filter(function(){var A=this.type;return this.name&&!S(this).is(":disabled")&&ud.test(this.nodeName)&&!yc.test(A)&&(this.checked||!dn.test(A))}).map(function(A,N){var K=S(this).val();return K==null?null:Array.isArray(K)?S.map(K,function(ne){return{name:N.name,value:ne.replace(_c,`\r `)}}):{name:N.name,value:K.replace(_c,`\r `)}}).get()}});var kh=/%20/g,bc=/#.*$/,hd=/([?&])_=[^&]*/,pu=/^(.*?):[ \t]*([^\r\n]*)$/mg,na=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,gu=/^(?:GET|HEAD)$/,fd=/^\/\//,li={},Yo={},re="*/".concat("*"),Ee=$.createElement("a");Ee.href=Ts.href;function et(A){return function(N,K){typeof N!="string"&&(K=N,N="*");var ne,he=0,ue=N.toLowerCase().match(Ye)||[];if(k(K))for(;ne=ue[he++];)ne[0]==="+"?(ne=ne.slice(1)||"*",(A[ne]=A[ne]||[]).unshift(K)):(A[ne]=A[ne]||[]).push(K)}}function Lt(A,N,K,ne){var he={},ue=A===Yo;function ke(Qe){var He;return he[Qe]=!0,S.each(A[Qe]||[],function(ht,Dt){var jt=Dt(N,K,ne);if(typeof jt=="string"&&!ue&&!he[jt])return N.dataTypes.unshift(jt),ke(jt),!1;if(ue)return!(He=jt)}),He}return ke(N.dataTypes[0])||!he["*"]&&ke("*")}function zn(A,N){var K,ne,he=S.ajaxSettings.flatOptions||{};for(K in N)N[K]!==void 0&&((he[K]?A:ne||(ne={}))[K]=N[K]);return ne&&S.extend(!0,A,ne),A}function En(A,N,K){for(var ne,he,ue,ke,Qe=A.contents,He=A.dataTypes;He[0]==="*";)He.shift(),ne===void 0&&(ne=A.mimeType||N.getResponseHeader("Content-Type"));if(ne){for(he in Qe)if(Qe[he]&&Qe[he].test(ne)){He.unshift(he);break}}if(He[0]in K)ue=He[0];else{for(he in K){if(!He[0]||A.converters[he+" "+He[0]]){ue=he;break}ke||(ke=he)}ue=ue||ke}if(ue)return ue!==He[0]&&He.unshift(ue),K[ue]}function po(A,N,K,ne){var he,ue,ke,Qe,He,ht={},Dt=A.dataTypes.slice();if(Dt[1])for(ke in A.converters)ht[ke.toLowerCase()]=A.converters[ke];for(ue=Dt.shift();ue;)if(A.responseFields[ue]&&(K[A.responseFields[ue]]=N),!He&&ne&&A.dataFilter&&(N=A.dataFilter(N,A.dataType)),He=ue,ue=Dt.shift(),ue){if(ue==="*")ue=He;else if(He!=="*"&&He!==ue){if(ke=ht[He+" "+ue]||ht["* "+ue],!ke){for(he in ht)if(Qe=he.split(" "),Qe[1]===ue&&(ke=ht[He+" "+Qe[0]]||ht["* "+Qe[0]],ke)){ke===!0?ke=ht[he]:ht[he]!==!0&&(ue=Qe[0],Dt.unshift(Qe[1]));break}}if(ke!==!0)if(ke&&A.throws)N=ke(N);else try{N=ke(N)}catch(jt){return{state:"parsererror",error:ke?jt:"No conversion from "+He+" to "+ue}}}}return{state:"success",data:N}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ts.href,type:"GET",isLocal:na.test(Ts.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":re,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(A,N){return N?zn(zn(A,S.ajaxSettings),N):zn(S.ajaxSettings,A)},ajaxPrefilter:et(li),ajaxTransport:et(Yo),ajax:function(A,N){typeof A=="object"&&(N=A,A=void 0),N=N||{};var K,ne,he,ue,ke,Qe,He,ht,Dt,jt,St=S.ajaxSetup({},N),Qt=St.context||St,pn=St.context&&(Qt.nodeType||Qt.jquery)?S(Qt):S.event,Qn=S.Deferred(),io=S.Callbacks("once memory"),Or=St.statusCode||{},Ki={},ka={},tl="canceled",Eo={readyState:0,getResponseHeader:function(Io){var wi;if(He){if(!ue)for(ue={};wi=pu.exec(he);)ue[wi[1].toLowerCase()+" "]=(ue[wi[1].toLowerCase()+" "]||[]).concat(wi[2]);wi=ue[Io.toLowerCase()+" "]}return wi==null?null:wi.join(", ")},getAllResponseHeaders:function(){return He?he:null},setRequestHeader:function(Io,wi){return He==null&&(Io=ka[Io.toLowerCase()]=ka[Io.toLowerCase()]||Io,Ki[Io]=wi),this},overrideMimeType:function(Io){return He==null&&(St.mimeType=Io),this},statusCode:function(Io){var wi;if(Io)if(He)Eo.always(Io[Eo.status]);else for(wi in Io)Or[wi]=[Or[wi],Io[wi]];return this},abort:function(Io){var wi=Io||tl;return K&&K.abort(wi),kc(0,wi),this}};if(Qn.promise(Eo),St.url=((A||St.url||Ts.href)+"").replace(fd,Ts.protocol+"//"),St.type=N.method||N.type||St.method||St.type,St.dataTypes=(St.dataType||"*").toLowerCase().match(Ye)||[""],St.crossDomain==null){Qe=$.createElement("a");try{Qe.href=St.url,Qe.href=Qe.href,St.crossDomain=Ee.protocol+"//"+Ee.host!=Qe.protocol+"//"+Qe.host}catch{St.crossDomain=!0}}if(St.data&&St.processData&&typeof St.data!="string"&&(St.data=S.param(St.data,St.traditional)),Lt(li,St,N,Eo),He)return Eo;ht=S.event&&St.global,ht&&S.active++===0&&S.event.trigger("ajaxStart"),St.type=St.type.toUpperCase(),St.hasContent=!gu.test(St.type),ne=St.url.replace(bc,""),St.hasContent?St.data&&St.processData&&(St.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(St.data=St.data.replace(kh,"+")):(jt=St.url.slice(ne.length),St.data&&(St.processData||typeof St.data=="string")&&(ne+=(ta.test(ne)?"&":"?")+St.data,delete St.data),St.cache===!1&&(ne=ne.replace(hd,"$1"),jt=(ta.test(ne)?"&":"?")+"_="+vc.guid+++jt),St.url=ne+jt),St.ifModified&&(S.lastModified[ne]&&Eo.setRequestHeader("If-Modified-Since",S.lastModified[ne]),S.etag[ne]&&Eo.setRequestHeader("If-None-Match",S.etag[ne])),(St.data&&St.hasContent&&St.contentType!==!1||N.contentType)&&Eo.setRequestHeader("Content-Type",St.contentType),Eo.setRequestHeader("Accept",St.dataTypes[0]&&St.accepts[St.dataTypes[0]]?St.accepts[St.dataTypes[0]]+(St.dataTypes[0]!=="*"?", "+re+"; q=0.01":""):St.accepts["*"]);for(Dt in St.headers)Eo.setRequestHeader(Dt,St.headers[Dt]);if(St.beforeSend&&(St.beforeSend.call(Qt,Eo,St)===!1||He))return Eo.abort();if(tl="abort",io.add(St.complete),Eo.done(St.success),Eo.fail(St.error),K=Lt(Yo,St,N,Eo),!K)kc(-1,"No Transport");else{if(Eo.readyState=1,ht&&pn.trigger("ajaxSend",[Eo,St]),He)return Eo;St.async&&St.timeout>0&&(ke=t.setTimeout(function(){Eo.abort("timeout")},St.timeout));try{He=!1,K.send(Ki,kc)}catch(Io){if(He)throw Io;kc(-1,Io)}}function kc(Io,wi,vu,Ff){var Zr,md,Es,zl,nl,Is=wi;He||(He=!0,ke&&t.clearTimeout(ke),K=void 0,he=Ff||"",Eo.readyState=Io>0?4:0,Zr=Io>=200&&Io<300||Io===304,vu&&(zl=En(St,Eo,vu)),!Zr&&S.inArray("script",St.dataTypes)>-1&&S.inArray("json",St.dataTypes)<0&&(St.converters["text script"]=function(){}),zl=po(St,zl,Eo,Zr),Zr?(St.ifModified&&(nl=Eo.getResponseHeader("Last-Modified"),nl&&(S.lastModified[ne]=nl),nl=Eo.getResponseHeader("etag"),nl&&(S.etag[ne]=nl)),Io===204||St.type==="HEAD"?Is="nocontent":Io===304?Is="notmodified":(Is=zl.state,md=zl.data,Es=zl.error,Zr=!Es)):(Es=Is,(Io||!Is)&&(Is="error",Io<0&&(Io=0))),Eo.status=Io,Eo.statusText=(wi||Is)+"",Zr?Qn.resolveWith(Qt,[md,Is,Eo]):Qn.rejectWith(Qt,[Eo,Is,Es]),Eo.statusCode(Or),Or=void 0,ht&&pn.trigger(Zr?"ajaxSuccess":"ajaxError",[Eo,St,Zr?md:Es]),io.fireWith(Qt,[Eo,Is]),ht&&(pn.trigger("ajaxComplete",[Eo,St]),--S.active||S.event.trigger("ajaxStop")))}return Eo},getJSON:function(A,N,K){return S.get(A,N,K,"json")},getScript:function(A,N){return S.get(A,void 0,N,"script")}}),S.each(["get","post"],function(A,N){S[N]=function(K,ne,he,ue){return k(ne)&&(ue=ue||he,he=ne,ne=void 0),S.ajax(S.extend({url:K,type:N,dataType:ue,data:ne,success:he},S.isPlainObject(K)&&K))}}),S.ajaxPrefilter(function(A){var N;for(N in A.headers)N.toLowerCase()==="content-type"&&(A.contentType=A.headers[N]||"")}),S._evalUrl=function(A,N,K){return S.ajax({url:A,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(ne){S.globalEval(ne,N,K)}})},S.fn.extend({wrapAll:function(A){var N;return this[0]&&(k(A)&&(A=A.call(this[0])),N=S(A,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&N.insertBefore(this[0]),N.map(function(){for(var K=this;K.firstElementChild;)K=K.firstElementChild;return K}).append(this)),this},wrapInner:function(A){return k(A)?this.each(function(N){S(this).wrapInner(A.call(this,N))}):this.each(function(){var N=S(this),K=N.contents();K.length?K.wrapAll(A):N.append(A)})},wrap:function(A){var N=k(A);return this.each(function(K){S(this).wrapAll(N?A.call(this,K):A)})},unwrap:function(A){return this.parent(A).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(A){return!S.expr.pseudos.visible(A)},S.expr.pseudos.visible=function(A){return!!(A.offsetWidth||A.offsetHeight||A.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Mo={0:200,1223:204},oo=S.ajaxSettings.xhr();_.cors=!!oo&&"withCredentials"in oo,_.ajax=oo=!!oo,S.ajaxTransport(function(A){var N,K;if(_.cors||oo&&!A.crossDomain)return{send:function(ne,he){var ue,ke=A.xhr();if(ke.open(A.type,A.url,A.async,A.username,A.password),A.xhrFields)for(ue in A.xhrFields)ke[ue]=A.xhrFields[ue];A.mimeType&&ke.overrideMimeType&&ke.overrideMimeType(A.mimeType),!A.crossDomain&&!ne["X-Requested-With"]&&(ne["X-Requested-With"]="XMLHttpRequest");for(ue in ne)ke.setRequestHeader(ue,ne[ue]);N=function(Qe){return function(){N&&(N=K=ke.onload=ke.onerror=ke.onabort=ke.ontimeout=ke.onreadystatechange=null,Qe==="abort"?ke.abort():Qe==="error"?typeof ke.status!="number"?he(0,"error"):he(ke.status,ke.statusText):he(Mo[ke.status]||ke.status,ke.statusText,(ke.responseType||"text")!=="text"||typeof ke.responseText!="string"?{binary:ke.response}:{text:ke.responseText},ke.getAllResponseHeaders()))}},ke.onload=N(),K=ke.onerror=ke.ontimeout=N("error"),ke.onabort!==void 0?ke.onabort=K:ke.onreadystatechange=function(){ke.readyState===4&&t.setTimeout(function(){N&&K()})},N=N("abort");try{ke.send(A.hasContent&&A.data||null)}catch(Qe){if(N)throw Qe}},abort:function(){N&&N()}}}),S.ajaxPrefilter(function(A){A.crossDomain&&(A.contents.script=!1)}),S.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 S.globalEval(A),A}}}),S.ajaxPrefilter("script",function(A){A.cache===void 0&&(A.cache=!1),A.crossDomain&&(A.type="GET")}),S.ajaxTransport("script",function(A){if(A.crossDomain||A.scriptAttrs){var N,K;return{send:function(ne,he){N=S("<script>").attr(A.scriptAttrs||{}).prop({charset:A.scriptCharset,src:A.url}).on("load error",K=function(ue){N.remove(),K=null,ue&&he(ue.type==="error"?404:200,ue.type)}),$.head.appendChild(N[0])},abort:function(){K&&K()}}}});var No=[],bi=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var A=No.pop()||S.expando+"_"+vc.guid++;return this[A]=!0,A}}),S.ajaxPrefilter("json jsonp",function(A,N,K){var ne,he,ue,ke=A.jsonp!==!1&&(bi.test(A.url)?"url":typeof A.data=="string"&&(A.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&bi.test(A.data)&&"data");if(ke||A.dataTypes[0]==="jsonp")return ne=A.jsonpCallback=k(A.jsonpCallback)?A.jsonpCallback():A.jsonpCallback,ke?A[ke]=A[ke].replace(bi,"$1"+ne):A.jsonp!==!1&&(A.url+=(ta.test(A.url)?"&":"?")+A.jsonp+"="+ne),A.converters["script json"]=function(){return ue||S.error(ne+" was not called"),ue[0]},A.dataTypes[0]="json",he=t[ne],t[ne]=function(){ue=arguments},K.always(function(){he===void 0?S(t).removeProp(ne):t[ne]=he,A[ne]&&(A.jsonpCallback=N.jsonpCallback,No.push(ne)),ue&&k(he)&&he(ue[0]),ue=he=void 0}),"script"}),_.createHTMLDocument=function(){var A=$.implementation.createHTMLDocument("").body;return A.innerHTML="<form></form><form></form>",A.childNodes.length===2}(),S.parseHTML=function(A,N,K){if(typeof A!="string")return[];typeof N=="boolean"&&(K=N,N=!1);var ne,he,ue;return N||(_.createHTMLDocument?(N=$.implementation.createHTMLDocument(""),ne=N.createElement("base"),ne.href=$.location.href,N.head.appendChild(ne)):N=$),he=ae.exec(A),ue=!K&&[],he?[N.createElement(he[1])]:(he=ji([A],N,ue),ue&&ue.length&&S(ue).remove(),S.merge([],he.childNodes))},S.fn.load=function(A,N,K){var ne,he,ue,ke=this,Qe=A.indexOf(" ");return Qe>-1&&(ne=ii(A.slice(Qe)),A=A.slice(0,Qe)),k(N)?(K=N,N=void 0):N&&typeof N=="object"&&(he="POST"),ke.length>0&&S.ajax({url:A,type:he||"GET",dataType:"html",data:N}).done(function(He){ue=arguments,ke.html(ne?S("<div>").append(S.parseHTML(He)).find(ne):He)}).always(K&&function(He,ht){ke.each(function(){K.apply(this,ue||[He.responseText,ht,He])})}),this},S.expr.pseudos.animated=function(A){return S.grep(S.timers,function(N){return A===N.elem}).length},S.offset={setOffset:function(A,N,K){var ne,he,ue,ke,Qe,He,ht,Dt=S.css(A,"position"),jt=S(A),St={};Dt==="static"&&(A.style.position="relative"),Qe=jt.offset(),ue=S.css(A,"top"),He=S.css(A,"left"),ht=(Dt==="absolute"||Dt==="fixed")&&(ue+He).indexOf("auto")>-1,ht?(ne=jt.position(),ke=ne.top,he=ne.left):(ke=parseFloat(ue)||0,he=parseFloat(He)||0),k(N)&&(N=N.call(A,K,S.extend({},Qe))),N.top!=null&&(St.top=N.top-Qe.top+ke),N.left!=null&&(St.left=N.left-Qe.left+he),"using"in N?N.using.call(A,St):jt.css(St)}},S.fn.extend({offset:function(A){if(arguments.length)return A===void 0?this:this.each(function(he){S.offset.setOffset(this,A,he)});var N,K,ne=this[0];if(ne)return ne.getClientRects().length?(N=ne.getBoundingClientRect(),K=ne.ownerDocument.defaultView,{top:N.top+K.pageYOffset,left:N.left+K.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var A,N,K,ne=this[0],he={top:0,left:0};if(S.css(ne,"position")==="fixed")N=ne.getBoundingClientRect();else{for(N=this.offset(),K=ne.ownerDocument,A=ne.offsetParent||K.documentElement;A&&(A===K.body||A===K.documentElement)&&S.css(A,"position")==="static";)A=A.parentNode;A&&A!==ne&&A.nodeType===1&&(he=S(A).offset(),he.top+=S.css(A,"borderTopWidth",!0),he.left+=S.css(A,"borderLeftWidth",!0))}return{top:N.top-he.top-S.css(ne,"marginTop",!0),left:N.left-he.left-S.css(ne,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var A=this.offsetParent;A&&S.css(A,"position")==="static";)A=A.offsetParent;return A||cn})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(A,N){var K=N==="pageYOffset";S.fn[A]=function(ne){return Ve(this,function(he,ue,ke){var Qe;if(C(he)?Qe=he:he.nodeType===9&&(Qe=he.defaultView),ke===void 0)return Qe?Qe[N]:he[ue];Qe?Qe.scrollTo(K?Qe.pageXOffset:ke,K?ke:Qe.pageYOffset):he[ue]=ke},A,ne,arguments.length)}}),S.each(["top","left"],function(A,N){S.cssHooks[N]=as(_.pixelPosition,function(K,ne){if(ne)return ne=Fs(K,N),js.test(ne)?S(K).position()[N]+"px":ne})}),S.each({Height:"height",Width:"width"},function(A,N){S.each({padding:"inner"+A,content:N,"":"outer"+A},function(K,ne){S.fn[ne]=function(he,ue){var ke=arguments.length&&(K||typeof he!="boolean"),Qe=K||(he===!0||ue===!0?"margin":"border");return Ve(this,function(He,ht,Dt){var jt;return C(He)?ne.indexOf("outer")===0?He["inner"+A]:He.document.documentElement["client"+A]:He.nodeType===9?(jt=He.documentElement,Math.max(He.body["scroll"+A],jt["scroll"+A],He.body["offset"+A],jt["offset"+A],jt["client"+A])):Dt===void 0?S.css(He,ht,Qe):S.style(He,ht,Dt,Qe)},N,ke?he:void 0,ke)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(A,N){S.fn[N]=function(K){return this.on(N,K)}}),S.fn.extend({bind:function(A,N,K){return this.on(A,null,N,K)},unbind:function(A,N){return this.off(A,null,N)},delegate:function(A,N,K,ne){return this.on(N,A,K,ne)},undelegate:function(A,N,K){return arguments.length===1?this.off(A,"**"):this.off(N,A||"**",K)},hover:function(A,N){return this.on("mouseenter",A).on("mouseleave",N||A)}}),S.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,N){S.fn[N]=function(K,ne){return arguments.length>0?this.on(N,null,K,ne):this.trigger(N)}});var lo=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(A,N){var K,ne,he;if(typeof N=="string"&&(K=A[N],N=A,A=K),!!k(A))return ne=r.call(arguments,2),he=function(){return A.apply(N||this,ne.concat(r.call(arguments)))},he.guid=A.guid=A.guid||S.guid++,he},S.holdReady=function(A){A?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=M,S.isFunction=k,S.isWindow=C,S.camelCase=Te,S.type=I,S.now=Date.now,S.isNumeric=function(A){var N=S.type(A);return(N==="number"||N==="string")&&!isNaN(A-parseFloat(A))},S.trim=function(A){return A==null?"":(A+"").replace(lo,"$1")};var ki=t.jQuery,Bo=t.$;return S.noConflict=function(A){return t.$===S&&(t.$=Bo),A&&t.jQuery===S&&(t.jQuery=ki),S},typeof n>"u"&&(t.jQuery=t.$=S),S})}(D7)),D7.exports}const eke=u$(J3e);/** * @version: 3.1 * @author: Dan Grossman http://www.dangrossman.info/ * @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved. * @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php * @website: http://www.daterangepicker.com/ */(function(e){(function(t,n){if(e.exports){var o=typeof window<"u"?window.jQuery:void 0;o||(o=Q3e(),o.fn||(o.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:eke;e.exports=n(i,o)}else t.daterangepicker=n(t.moment,t.jQuery)})(bo,function(t,n){var o=function(i,r,s){if(this.parentEl="body",this.element=n(i),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 r!="object"||r===null)&&(r={}),r=n.extend(this.element.data(),r),typeof r.template!="string"&&!(r.template instanceof n)&&(r.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=r.parentEl&&n(r.parentEl).length?n(r.parentEl):n(this.parentEl),this.container=n(r.template).appendTo(this.parentEl),typeof r.locale=="object"&&(typeof r.locale.direction=="string"&&(this.locale.direction=r.locale.direction),typeof r.locale.format=="string"&&(this.locale.format=r.locale.format),typeof r.locale.separator=="string"&&(this.locale.separator=r.locale.separator),typeof r.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=r.locale.daysOfWeek.slice()),typeof r.locale.monthNames=="object"&&(this.locale.monthNames=r.locale.monthNames.slice()),typeof r.locale.firstDay=="number"&&(this.locale.firstDay=r.locale.firstDay),typeof r.locale.applyLabel=="string"&&(this.locale.applyLabel=r.locale.applyLabel),typeof r.locale.cancelLabel=="string"&&(this.locale.cancelLabel=r.locale.cancelLabel),typeof r.locale.weekLabel=="string"&&(this.locale.weekLabel=r.locale.weekLabel),typeof r.locale.customRangeLabel=="string")){var a=document.createElement("textarea");a.innerHTML=r.locale.customRangeLabel;var l=a.value;this.locale.customRangeLabel=l}if(this.container.addClass(this.locale.direction),typeof r.startDate=="string"&&(this.startDate=t(r.startDate,this.locale.format)),typeof r.endDate=="string"&&(this.endDate=t(r.endDate,this.locale.format)),typeof r.minDate=="string"&&(this.minDate=t(r.minDate,this.locale.format)),typeof r.maxDate=="string"&&(this.maxDate=t(r.maxDate,this.locale.format)),typeof r.startDate=="object"&&(this.startDate=t(r.startDate)),typeof r.endDate=="object"&&(this.endDate=t(r.endDate)),typeof r.minDate=="object"&&(this.minDate=t(r.minDate)),typeof r.maxDate=="object"&&(this.maxDate=t(r.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 r.applyButtonClasses=="string"&&(this.applyButtonClasses=r.applyButtonClasses),typeof r.applyClass=="string"&&(this.applyButtonClasses=r.applyClass),typeof r.cancelButtonClasses=="string"&&(this.cancelButtonClasses=r.cancelButtonClasses),typeof r.cancelClass=="string"&&(this.cancelButtonClasses=r.cancelClass),typeof r.maxSpan=="object"&&(this.maxSpan=r.maxSpan),typeof r.dateLimit=="object"&&(this.maxSpan=r.dateLimit),typeof r.opens=="string"&&(this.opens=r.opens),typeof r.drops=="string"&&(this.drops=r.drops),typeof r.showWeekNumbers=="boolean"&&(this.showWeekNumbers=r.showWeekNumbers),typeof r.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=r.showISOWeekNumbers),typeof r.buttonClasses=="string"&&(this.buttonClasses=r.buttonClasses),typeof r.buttonClasses=="object"&&(this.buttonClasses=r.buttonClasses.join(" ")),typeof r.showDropdowns=="boolean"&&(this.showDropdowns=r.showDropdowns),typeof r.minYear=="number"&&(this.minYear=r.minYear),typeof r.maxYear=="number"&&(this.maxYear=r.maxYear),typeof r.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=r.showCustomRangeLabel),typeof r.singleDatePicker=="boolean"&&(this.singleDatePicker=r.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof r.timePicker=="boolean"&&(this.timePicker=r.timePicker),typeof r.timePickerSeconds=="boolean"&&(this.timePickerSeconds=r.timePickerSeconds),typeof r.timePickerIncrement=="number"&&(this.timePickerIncrement=r.timePickerIncrement),typeof r.timePicker24Hour=="boolean"&&(this.timePicker24Hour=r.timePicker24Hour),typeof r.autoApply=="boolean"&&(this.autoApply=r.autoApply),typeof r.autoUpdateInput=="boolean"&&(this.autoUpdateInput=r.autoUpdateInput),typeof r.linkedCalendars=="boolean"&&(this.linkedCalendars=r.linkedCalendars),typeof r.isInvalidDate=="function"&&(this.isInvalidDate=r.isInvalidDate),typeof r.isCustomDate=="function"&&(this.isCustomDate=r.isCustomDate),typeof r.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=r.alwaysShowCalendars),this.locale.firstDay!=0)for(var d=this.locale.firstDay;d>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),d--;var u,f,p;if(typeof r.startDate>"u"&&typeof r.endDate>"u"&&n(this.element).is(":text")){var v=n(this.element).val(),_=v.split(this.locale.separator);u=f=null,_.length==2?(u=t(_[0],this.locale.format),f=t(_[1],this.locale.format)):this.singleDatePicker&&v!==""&&(u=t(v,this.locale.format),f=t(v,this.locale.format)),u!==null&&f!==null&&(this.setStartDate(u),this.setEndDate(f))}if(typeof r.ranges=="object"){for(p in r.ranges){typeof r.ranges[p][0]=="string"?u=t(r.ranges[p][0],this.locale.format):u=t(r.ranges[p][0]),typeof r.ranges[p][1]=="string"?f=t(r.ranges[p][1],this.locale.format):f=t(r.ranges[p][1]),this.minDate&&u.isBefore(this.minDate)&&(u=this.minDate.clone());var k=this.maxDate;if(this.maxSpan&&k&&u.clone().add(this.maxSpan).isAfter(k)&&(k=u.clone().add(this.maxSpan)),k&&f.isAfter(k)&&(f=k.clone()),!(this.minDate&&f.isBefore(this.minDate,this.timepicker?"minute":"day")||k&&u.isAfter(k,this.timepicker?"minute":"day"))){var a=document.createElement("textarea");a.innerHTML=p;var l=a.value;this.ranges[l]=[u,f]}}var C="<ul>";for(p in this.ranges)C+='<li data-range-key="'+p+'">'+p+"</li>";this.showCustomRangeLabel&&(C+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),C+="</ul>",this.container.find(".ranges").prepend(C)}typeof s=="function"&&(this.callback=s),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 r.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 r.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",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",n.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",n.proxy(this.toggle,this))),this.updateElement()};return o.prototype={constructor:o,setStartDate:function(i){typeof i=="string"&&(this.startDate=t(i,this.locale.format)),typeof i=="object"&&(this.startDate=t(i)),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(i){typeof i=="string"&&(this.endDate=t(i,this.locale.format)),typeof i=="object"&&(this.endDate=t(i)),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 i,r,s;if(this.endDate){if(i=parseInt(this.container.find(".left .hourselect").val(),10),r=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(r)&&(r=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),s=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var a=this.container.find(".left .ampmselect").val();a==="PM"&&i<12&&(i+=12),a==="AM"&&i===12&&(i=0)}}else if(i=parseInt(this.container.find(".right .hourselect").val(),10),r=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(r)&&(r=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),s=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var a=this.container.find(".right .ampmselect").val();a==="PM"&&i<12&&(i+=12),a==="AM"&&i===12&&(i=0)}this.leftCalendar.month.hour(i).minute(r).second(s),this.rightCalendar.month.hour(i).minute(r).second(s)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(i){var $=i=="left"?this.leftCalendar:this.rightCalendar,r=$.month.month(),s=$.month.year(),a=$.month.hour(),l=$.month.minute(),d=$.month.second(),u=t([s,r]).daysInMonth(),f=t([s,r,1]),p=t([s,r,u]),v=t(f).subtract(1,"month").month(),_=t(f).subtract(1,"month").year(),k=t([_,v]).daysInMonth(),C=f.day(),$=[];$.firstDay=f,$.lastDay=p;for(var E=0;E<6;E++)$[E]=[];var P=k-C+this.locale.firstDay+1;P>k&&(P-=7),C==this.locale.firstDay&&(P=k-6);for(var I=t([_,v,P,12,l,d]),O,L,E=0,O=0,L=0;E<42;E++,O++,I=t(I).add(24,"hour"))E>0&&O%7===0&&(O=0,L++),$[L][O]=I.clone().hour(a).minute(l).second(d),I.hour(12),this.minDate&&$[L][O].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&$[L][O].isBefore(this.minDate)&&i=="left"&&($[L][O]=this.minDate.clone()),this.maxDate&&$[L][O].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&$[L][O].isAfter(this.maxDate)&&i=="right"&&($[L][O]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=$:this.rightCalendar.calendar=$;var S=i=="left"?this.minDate:this.startDate,j=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var M='<table class="table-condensed">';M+="<thead>",M+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(M+="<th></th>"),(!S||S.isBefore($.firstDay))&&(!this.linkedCalendars||i=="left")?M+='<th class="prev available"><span></span></th>':M+="<th></th>";var q=this.locale.monthNames[$[1][1].month()]+$[1][1].format(" YYYY");if(this.showDropdowns){for(var B=$[1][1].month(),V=$[1][1].year(),G=j&&j.year()||this.maxYear,Q=S&&S.year()||this.minYear,X=V==Q,Y=V==G,Z='<select class="monthselect">',se=0;se<12;se++)(!X||S&&se>=S.month())&&(!Y||j&&se<=j.month())?Z+="<option value='"+se+"'"+(se===B?" selected='selected'":"")+">"+this.locale.monthNames[se]+"</option>":Z+="<option value='"+se+"'"+(se===B?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[se]+"</option>";Z+="</select>";for(var ce='<select class="yearselect">',te=Q;te<=G;te++)ce+='<option value="'+te+'"'+(te===V?' selected="selected"':"")+">"+te+"</option>";ce+="</select>",q=Z+ce}if(M+='<th colspan="5" class="month">'+q+"</th>",(!j||j.isAfter($.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?M+='<th class="next available"><span></span></th>':M+="<th></th>",M+="</tr>",M+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(M+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(me,fe){M+="<th>"+fe+"</th>"}),M+="</tr>",M+="</thead>",M+="<tbody>",this.endDate==null&&this.maxSpan){var ee=this.startDate.clone().add(this.maxSpan).endOf("day");(!j||ee.isBefore(j))&&(j=ee)}for(var L=0;L<6;L++){M+="<tr>",this.showWeekNumbers?M+='<td class="week">'+$[L][0].week()+"</td>":this.showISOWeekNumbers&&(M+='<td class="week">'+$[L][0].isoWeek()+"</td>");for(var O=0;O<7;O++){var ae=[];$[L][O].isSame(new Date,"day")&&ae.push("today"),$[L][O].isoWeekday()>5&&ae.push("weekend"),$[L][O].month()!=$[1][1].month()&&ae.push("off","ends"),this.minDate&&$[L][O].isBefore(this.minDate,"day")&&ae.push("off","disabled"),j&&$[L][O].isAfter(j,"day")&&ae.push("off","disabled"),this.isInvalidDate($[L][O])&&ae.push("off","disabled"),$[L][O].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&ae.push("active","start-date"),this.endDate!=null&&$[L][O].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&ae.push("active","end-date"),this.endDate!=null&&$[L][O]>this.startDate&&$[L][O]<this.endDate&&ae.push("in-range");var de=this.isCustomDate($[L][O]);de!==!1&&(typeof de=="string"?ae.push(de):Array.prototype.push.apply(ae,de));for(var $e="",be=!1,E=0;E<ae.length;E++)$e+=ae[E]+" ",ae[E]=="disabled"&&(be=!0);be||($e+="available"),M+='<td class="'+$e.replace(/^\s+|\s+$/g,"")+'" data-title="r'+L+"c"+O+'">'+$[L][O].date()+"</td>"}M+="</tr>"}M+="</tbody>",M+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(M)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var r,s,a,l=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(l=this.startDate.clone().add(this.maxSpan)),i=="left")s=this.startDate.clone(),a=this.minDate;else if(i=="right"){s=this.endDate.clone(),a=this.startDate;var d=this.container.find(".drp-calendar.right .calendar-time");if(d.html()!=""&&(s.hour(isNaN(s.hour())?d.find(".hourselect option:selected").val():s.hour()),s.minute(isNaN(s.minute())?d.find(".minuteselect option:selected").val():s.minute()),s.second(isNaN(s.second())?d.find(".secondselect option:selected").val():s.second()),!this.timePicker24Hour)){var u=d.find(".ampmselect option:selected").val();u==="PM"&&s.hour()<12&&s.hour(s.hour()+12),u==="AM"&&s.hour()===12&&s.hour(0)}s.isBefore(this.startDate)&&(s=this.startDate.clone()),l&&s.isAfter(l)&&(s=l.clone())}r='<select class="hourselect">';for(var f=this.timePicker24Hour?0:1,p=this.timePicker24Hour?23:12,v=f;v<=p;v++){var _=v;this.timePicker24Hour||(_=s.hour()>=12?v==12?12:v+12:v==12?0:v);var k=s.clone().hour(_),C=!1;a&&k.minute(59).isBefore(a)&&(C=!0),l&&k.minute(0).isAfter(l)&&(C=!0),_==s.hour()&&!C?r+='<option value="'+v+'" selected="selected">'+v+"</option>":C?r+='<option value="'+v+'" disabled="disabled" class="disabled">'+v+"</option>":r+='<option value="'+v+'">'+v+"</option>"}r+="</select> ",r+=': <select class="minuteselect">';for(var v=0;v<60;v+=this.timePickerIncrement){var $=v<10?"0"+v:v,k=s.clone().minute(v),C=!1;a&&k.second(59).isBefore(a)&&(C=!0),l&&k.second(0).isAfter(l)&&(C=!0),s.minute()==v&&!C?r+='<option value="'+v+'" selected="selected">'+$+"</option>":C?r+='<option value="'+v+'" disabled="disabled" class="disabled">'+$+"</option>":r+='<option value="'+v+'">'+$+"</option>"}if(r+="</select> ",this.timePickerSeconds){r+=': <select class="secondselect">';for(var v=0;v<60;v++){var $=v<10?"0"+v:v,k=s.clone().second(v),C=!1;a&&k.isBefore(a)&&(C=!0),l&&k.isAfter(l)&&(C=!0),s.second()==v&&!C?r+='<option value="'+v+'" selected="selected">'+$+"</option>":C?r+='<option value="'+v+'" disabled="disabled" class="disabled">'+$+"</option>":r+='<option value="'+v+'">'+$+"</option>"}r+="</select> "}if(!this.timePicker24Hour){r+='<select class="ampmselect">';var E="",P="";a&&s.clone().hour(12).minute(0).second(0).isBefore(a)&&(E=' disabled="disabled" class="disabled"'),l&&s.clone().hour(0).minute(0).second(0).isAfter(l)&&(P=' disabled="disabled" class="disabled"'),s.hour()>=12?r+='<option value="AM"'+E+'>AM</option><option value="PM" selected="selected"'+P+">PM</option>":r+='<option value="AM" selected="selected"'+E+'>AM</option><option value="PM"'+P+">PM</option>",r+="</select>"}this.container.find(".drp-calendar."+i+" .calendar-time").html(r)}},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 i={top:0,left:0},r,s=this.drops,a=n(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},a=this.parentEl[0].clientWidth+this.parentEl.offset().left),s){case"auto":r=this.element.offset().top+this.element.outerHeight()-i.top,r+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(r=this.element.offset().top-this.container.outerHeight()-i.top,s="up");break;case"up":r=this.element.offset().top-this.container.outerHeight()-i.top;break;default:r=this.element.offset().top+this.element.outerHeight()-i.top;break}this.container.css({top:0,left:0,right:"auto"});var l=this.container.outerWidth();if(this.container.toggleClass("drop-up",s=="up"),this.opens=="left"){var d=a-this.element.offset().left-this.element.outerWidth();l+d>n(window).width()?this.container.css({top:r,right:"auto",left:9}):this.container.css({top:r,right:d,left:"auto"})}else if(this.opens=="center"){var u=this.element.offset().left-i.left+this.element.outerWidth()/2-l/2;u<0?this.container.css({top:r,right:"auto",left:9}):u+l>n(window).width()?this.container.css({top:r,left:"auto",right:0}):this.container.css({top:r,left:u,right:"auto"})}else{var u=this.element.offset().left-i.left;u+l>n(window).width()?this.container.css({top:r,left:"auto",right:0}):this.container.css({top:r,left:u,right:"auto"})}},show:function(i){this.isShowing||(this._outsideClickProxy=n.proxy(function(r){this.outsideClick(r)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy(function(r){this.move(r)},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(i){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(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(i){this.isShowing?this.hide():this.show()},outsideClick:function(i){var r=n(i.target);i.type=="focusin"||r.closest(this.element).length||r.closest(this.container).length||r.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(i){var r=i.target.getAttribute("data-range-key");if(this.chosenLabel=r,r==this.locale.customRangeLabel)this.showCalendars();else{var s=this.ranges[r];this.startDate=s[0],this.endDate=s[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(i){var r=n(i.target).parents(".drp-calendar");r.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(i){var r=n(i.target).parents(".drp-calendar");r.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(i){if(n(i.target).hasClass("available")){var r=n(i.target).attr("data-title"),s=r.substr(1,1),a=r.substr(3,1),l=n(i.target).parents(".drp-calendar"),d=l.hasClass("left")?this.leftCalendar.calendar[s][a]:this.rightCalendar.calendar[s][a],u=this.leftCalendar,f=this.rightCalendar,p=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(v,_){if(!n(_).hasClass("week")){var k=n(_).attr("data-title"),C=k.substr(1,1),$=k.substr(3,1),E=n(_).parents(".drp-calendar"),P=E.hasClass("left")?u.calendar[C][$]:f.calendar[C][$];P.isAfter(p)&&P.isBefore(d)||P.isSame(d,"day")?n(_).addClass("in-range"):n(_).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var r=n(i.target).attr("data-title"),s=r.substr(1,1),a=r.substr(3,1),l=n(i.target).parents(".drp-calendar"),d=l.hasClass("left")?this.leftCalendar.calendar[s][a]:this.rightCalendar.calendar[s][a];if(this.endDate||d.isBefore(this.startDate,"day")){if(this.timePicker){var u=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var f=this.container.find(".left .ampmselect").val();f==="PM"&&u<12&&(u+=12),f==="AM"&&u===12&&(u=0)}var p=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(p)&&(p=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var v=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;d=d.clone().hour(u).minute(p).second(v)}this.endDate=null,this.setStartDate(d.clone())}else if(!this.endDate&&d.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var u=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var f=this.container.find(".right .ampmselect").val();f==="PM"&&u<12&&(u+=12),f==="AM"&&u===12&&(u=0)}var p=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(p)&&(p=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var v=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;d=d.clone().hour(u).minute(p).second(v)}this.setEndDate(d.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),i.stopPropagation()}},calculateChosenLabel:function(){var i=!0,r=0;for(var s in this.ranges){if(this.timePicker){var a=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(a)==this.ranges[s][0].format(a)&&this.endDate.format(a)==this.ranges[s][1].format(a)){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+r+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[s][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[s][1].format("YYYY-MM-DD")){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+r+")").addClass("active").attr("data-range-key");break}r++}i&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(i){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(i){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(i){var r=n(i.target).closest(".drp-calendar").hasClass("left"),s=r?"left":"right",a=this.container.find(".drp-calendar."+s),l=parseInt(a.find(".monthselect").val(),10),d=a.find(".yearselect").val();r||(d<this.startDate.year()||d==this.startDate.year()&&l<this.startDate.month())&&(l=this.startDate.month(),d=this.startDate.year()),this.minDate&&(d<this.minDate.year()||d==this.minDate.year()&&l<this.minDate.month())&&(l=this.minDate.month(),d=this.minDate.year()),this.maxDate&&(d>this.maxDate.year()||d==this.maxDate.year()&&l>this.maxDate.month())&&(l=this.maxDate.month(),d=this.maxDate.year()),r?(this.leftCalendar.month.month(l).year(d),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(l).year(d),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(i){var r=n(i.target).closest(".drp-calendar"),s=r.hasClass("left"),a=parseInt(r.find(".hourselect").val(),10),l=parseInt(r.find(".minuteselect").val(),10);isNaN(l)&&(l=parseInt(r.find(".minuteselect option:last").val(),10));var d=this.timePickerSeconds?parseInt(r.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var u=r.find(".ampmselect").val();u==="PM"&&a<12&&(a+=12),u==="AM"&&a===12&&(a=0)}if(s){var f=this.startDate.clone();f.hour(a),f.minute(l),f.second(d),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 p=this.endDate.clone();p.hour(a),p.minute(l),p.second(d),this.setEndDate(p)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var i=this.element.val().split(this.locale.separator),r=null,s=null;i.length===2&&(r=t(i[0],this.locale.format),s=t(i[1],this.locale.format)),(this.singleDatePicker||r===null||s===null)&&(r=t(this.element.val(),this.locale.format),s=r),!(!r.isValid()||!s.isValid())&&(this.setStartDate(r),this.setEndDate(s),this.updateView())}},keydown:function(i){(i.keyCode===9||i.keyCode===13)&&this.hide(),i.keyCode===27&&(i.preventDefault(),i.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var i=this.startDate.format(this.locale.format);this.singleDatePicker||(i+=this.locale.separator+this.endDate.format(this.locale.format)),i!==this.element.val()&&this.element.val(i).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(i,r){var s=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,i);return this.each(function(){var a=n(this);a.data("daterangepicker")&&a.data("daterangepicker").remove(),a.data("daterangepicker",new o(a,s,r))}),this},o})})(X3e);function QG(e,t){return function(){return e.apply(t,arguments)}}const{toString:tke}=Object.prototype,{getPrototypeOf:GA}=Object,x$=(e=>t=>{const n=tke.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lu=e=>(e=e.toLowerCase(),t=>x$(t)===e),O$=e=>t=>typeof t===e,{isArray:gy}=Array,c2=O$("undefined");function nke(e){return e!==null&&!c2(e)&&e.constructor!==null&&!c2(e.constructor)&&oc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const eZ=lu("ArrayBuffer");function oke(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&eZ(e.buffer),t}const ike=O$("string"),oc=O$("function"),tZ=O$("number"),L$=e=>e!==null&&typeof e=="object",rke=e=>e===!0||e===!1,O8=e=>{if(x$(e)!=="object")return!1;const t=GA(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ske=lu("Date"),ake=lu("File"),lke=lu("Blob"),cke=lu("FileList"),dke=e=>L$(e)&&oc(e.pipe),uke=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||oc(e.append)&&((t=x$(e))==="formdata"||t==="object"&&oc(e.toString)&&e.toString()==="[object FormData]"))},hke=lu("URLSearchParams"),[fke,mke,pke,gke]=["ReadableStream","Request","Response","Headers"].map(lu),vke=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function r3(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,i;if(typeof e!="object"&&(e=[e]),gy(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let a;for(o=0;o<s;o++)a=r[o],t.call(null,e[a],a,e)}}function nZ(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,i;for(;o-- >0;)if(i=n[o],t===i.toLowerCase())return i;return null}const d1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),oZ=e=>!c2(e)&&e!==d1;function vE(){const{caseless:e}=oZ(this)&&this||{},t={},n=(o,i)=>{const r=e&&nZ(t,i)||i;O8(t[r])&&O8(o)?t[r]=vE(t[r],o):O8(o)?t[r]=vE({},o):gy(o)?t[r]=o.slice():t[r]=o};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&r3(arguments[o],n);return t}const _ke=(e,t,n,{allOwnKeys:o}={})=>(r3(t,(i,r)=>{n&&oc(i)?e[r]=QG(i,n):e[r]=i},{allOwnKeys:o}),e),yke=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bke=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},kke=(e,t,n,o)=>{let i,r,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!o||o(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&GA(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},wke=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},$ke=e=>{if(!e)return null;if(gy(e))return e;let t=e.length;if(!tZ(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Cke=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&GA(Uint8Array)),Ske=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=o.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},Tke=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Eke=lu("HTMLFormElement"),Ike=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,i){return o.toUpperCase()+i}),qR=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Pke=lu("RegExp"),iZ=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};r3(n,(i,r)=>{let s;(s=t(i,r,e))!==!1&&(o[r]=s||i)}),Object.defineProperties(e,o)},Ake=e=>{iZ(e,(t,n)=>{if(oc(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(oc(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Dke=(e,t)=>{const n={},o=i=>{i.forEach(r=>{n[r]=!0})};return gy(e)?o(e):o(String(e).split(t)),n},xke=()=>{},Oke=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,x7="abcdefghijklmnopqrstuvwxyz",YR="0123456789",rZ={DIGIT:YR,ALPHA:x7,ALPHA_DIGIT:x7+x7.toUpperCase()+YR},Lke=(e=16,t=rZ.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Mke(e){return!!(e&&oc(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Nke=e=>{const t=new Array(10),n=(o,i)=>{if(L$(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[i]=o;const r=gy(o)?[]:{};return r3(o,(s,a)=>{const l=n(s,i+1);!c2(l)&&(r[a]=l)}),t[i]=void 0,r}}return o};return n(e,0)},Rke=lu("AsyncFunction"),jke=e=>e&&(L$(e)||oc(e))&&oc(e.then)&&oc(e.catch),sZ=((e,t)=>e?setImmediate:t?((n,o)=>(d1.addEventListener("message",({source:i,data:r})=>{i===d1&&r===n&&o.length&&o.shift()()},!1),i=>{o.push(i),d1.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",oc(d1.postMessage)),Fke=typeof queueMicrotask<"u"?queueMicrotask.bind(d1):typeof process<"u"&&process.nextTick||sZ,Mt={isArray:gy,isArrayBuffer:eZ,isBuffer:nke,isFormData:uke,isArrayBufferView:oke,isString:ike,isNumber:tZ,isBoolean:rke,isObject:L$,isPlainObject:O8,isReadableStream:fke,isRequest:mke,isResponse:pke,isHeaders:gke,isUndefined:c2,isDate:ske,isFile:ake,isBlob:lke,isRegExp:Pke,isFunction:oc,isStream:dke,isURLSearchParams:hke,isTypedArray:Cke,isFileList:cke,forEach:r3,merge:vE,extend:_ke,trim:vke,stripBOM:yke,inherits:bke,toFlatObject:kke,kindOf:x$,kindOfTest:lu,endsWith:wke,toArray:$ke,forEachEntry:Ske,matchAll:Tke,isHTMLForm:Eke,hasOwnProperty:qR,hasOwnProp:qR,reduceDescriptors:iZ,freezeMethods:Ake,toObjectSet:Dke,toCamelCase:Ike,noop:xke,toFiniteNumber:Oke,findKey:nZ,global:d1,isContextDefined:oZ,ALPHABET:rZ,generateString:Lke,isSpecCompliantForm:Mke,toJSONObject:Nke,isAsyncFn:Rke,isThenable:jke,setImmediate:sZ,asap:Fke};function vo(e,t,n,o,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status?i.status:null)}Mt.inherits(vo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Mt.toJSONObject(this.config),code:this.code,status:this.status}}});const aZ=vo.prototype,lZ={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lZ[e]={value:e}});Object.defineProperties(vo,lZ);Object.defineProperty(aZ,"isAxiosError",{value:!0});vo.from=(e,t,n,o,i,r)=>{const s=Object.create(aZ);return Mt.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),vo.call(s,e.message,t,n,o,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const zke=null;function _E(e){return Mt.isPlainObject(e)||Mt.isArray(e)}function cZ(e){return Mt.endsWith(e,"[]")?e.slice(0,-2):e}function WR(e,t,n){return e?e.concat(t).map(function(i,r){return i=cZ(i),!n&&r?"["+i+"]":i}).join(n?".":""):t}function Uke(e){return Mt.isArray(e)&&!e.some(_E)}const Bke=Mt.toFlatObject(Mt,{},null,function(t){return/^is[A-Z]/.test(t)});function M$(e,t,n){if(!Mt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Mt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,C){return!Mt.isUndefined(C[k])});const o=n.metaTokens,i=n.visitor||u,r=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Mt.isSpecCompliantForm(t);if(!Mt.isFunction(i))throw new TypeError("visitor must be a function");function d(_){if(_===null)return"";if(Mt.isDate(_))return _.toISOString();if(!l&&Mt.isBlob(_))throw new vo("Blob is not supported. Use a Buffer instead.");return Mt.isArrayBuffer(_)||Mt.isTypedArray(_)?l&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function u(_,k,C){let $=_;if(_&&!C&&typeof _=="object"){if(Mt.endsWith(k,"{}"))k=o?k:k.slice(0,-2),_=JSON.stringify(_);else if(Mt.isArray(_)&&Uke(_)||(Mt.isFileList(_)||Mt.endsWith(k,"[]"))&&($=Mt.toArray(_)))return k=cZ(k),$.forEach(function(P,I){!(Mt.isUndefined(P)||P===null)&&t.append(s===!0?WR([k],I,r):s===null?k:k+"[]",d(P))}),!1}return _E(_)?!0:(t.append(WR(C,k,r),d(_)),!1)}const f=[],p=Object.assign(Bke,{defaultVisitor:u,convertValue:d,isVisitable:_E});function v(_,k){if(!Mt.isUndefined(_)){if(f.indexOf(_)!==-1)throw Error("Circular reference detected in "+k.join("."));f.push(_),Mt.forEach(_,function($,E){(!(Mt.isUndefined($)||$===null)&&i.call(t,$,Mt.isString(E)?E.trim():E,k,p))===!0&&v($,k?k.concat(E):[E])}),f.pop()}}if(!Mt.isObject(e))throw new TypeError("data must be an object");return v(e),t}function GR(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function ZA(e,t){this._pairs=[],e&&M$(e,this,t)}const dZ=ZA.prototype;dZ.append=function(t,n){this._pairs.push([t,n])};dZ.toString=function(t){const n=t?function(o){return t.call(this,o,GR)}:GR;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Hke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function uZ(e,t,n){if(!t)return e;const o=n&&n.encode||Hke,i=n&&n.serialize;let r;if(i?r=i(t,n):r=Mt.isURLSearchParams(t)?t.toString():new ZA(t,n).toString(o),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Vke{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Mt.forEach(this.handlers,function(o){o!==null&&t(o)})}}const ZR=Vke,hZ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qke=typeof URLSearchParams<"u"?URLSearchParams:ZA,Yke=typeof FormData<"u"?FormData:null,Wke=typeof Blob<"u"?Blob:null,Gke={isBrowser:!0,classes:{URLSearchParams:qke,FormData:Yke,Blob:Wke},protocols:["http","https","file","blob","url","data"]},KA=typeof window<"u"&&typeof document<"u",yE=typeof navigator=="object"&&navigator||void 0,Zke=KA&&(!yE||["ReactNative","NativeScript","NS"].indexOf(yE.product)<0),Kke=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Jke=KA&&window.location.href||"http://localhost",Xke=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:KA,hasStandardBrowserEnv:Zke,hasStandardBrowserWebWorkerEnv:Kke,navigator:yE,origin:Jke},Symbol.toStringTag,{value:"Module"})),Pl={...Xke,...Gke};function Qke(e,t){return M$(e,new Pl.classes.URLSearchParams,Object.assign({visitor:function(n,o,i,r){return Pl.isNode&&Mt.isBuffer(n)?(this.append(o,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function ewe(e){return Mt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function twe(e){const t={},n=Object.keys(e);let o;const i=n.length;let r;for(o=0;o<i;o++)r=n[o],t[r]=e[r];return t}function fZ(e){function t(n,o,i,r){let s=n[r++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=r>=n.length;return s=!s&&Mt.isArray(i)?i.length:s,l?(Mt.hasOwnProp(i,s)?i[s]=[i[s],o]:i[s]=o,!a):((!i[s]||!Mt.isObject(i[s]))&&(i[s]=[]),t(n,o,i[s],r)&&Mt.isArray(i[s])&&(i[s]=twe(i[s])),!a)}if(Mt.isFormData(e)&&Mt.isFunction(e.entries)){const n={};return Mt.forEachEntry(e,(o,i)=>{t(ewe(o),i,n,0)}),n}return null}function nwe(e,t,n){if(Mt.isString(e))try{return(t||JSON.parse)(e),Mt.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const JA={transitional:hZ,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",i=o.indexOf("application/json")>-1,r=Mt.isObject(t);if(r&&Mt.isHTMLForm(t)&&(t=new FormData(t)),Mt.isFormData(t))return i?JSON.stringify(fZ(t)):t;if(Mt.isArrayBuffer(t)||Mt.isBuffer(t)||Mt.isStream(t)||Mt.isFile(t)||Mt.isBlob(t)||Mt.isReadableStream(t))return t;if(Mt.isArrayBufferView(t))return t.buffer;if(Mt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(r){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Qke(t,this.formSerializer).toString();if((a=Mt.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return M$(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return r||i?(n.setContentType("application/json",!1),nwe(t)):t}],transformResponse:[function(t){const n=this.transitional||JA.transitional,o=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Mt.isResponse(t)||Mt.isReadableStream(t))return t;if(t&&Mt.isString(t)&&(o&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?vo.from(a,vo.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pl.classes.FormData,Blob:Pl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Mt.forEach(["delete","get","head","post","put","patch"],e=>{JA.headers[e]={}});const XA=JA,owe=Mt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iwe=e=>{const t={};let n,o,i;return e&&e.split(` `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),o=s.substring(i+1).trim(),!(!n||t[n]&&owe[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},KR=Symbol("internals");function Eb(e){return e&&String(e).trim().toLowerCase()}function L8(e){return e===!1||e==null?e:Mt.isArray(e)?e.map(L8):String(e)}function rwe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const swe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function O7(e,t,n,o,i){if(Mt.isFunction(o))return o.call(this,t,n);if(i&&(t=n),!!Mt.isString(t)){if(Mt.isString(o))return t.indexOf(o)!==-1;if(Mt.isRegExp(o))return o.test(t)}}function awe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function lwe(e,t){const n=Mt.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(i,r,s){return this[o].call(this,t,i,r,s)},configurable:!0})})}class N${constructor(t){t&&this.set(t)}set(t,n,o){const i=this;function r(a,l,d){const u=Eb(l);if(!u)throw new Error("header name must be a non-empty string");const f=Mt.findKey(i,u);(!f||i[f]===void 0||d===!0||d===void 0&&i[f]!==!1)&&(i[f||l]=L8(a))}const s=(a,l)=>Mt.forEach(a,(d,u)=>r(d,u,l));if(Mt.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Mt.isString(t)&&(t=t.trim())&&!swe(t))s(iwe(t),n);else if(Mt.isHeaders(t))for(const[a,l]of t.entries())r(l,a,o);else t!=null&&r(n,t,o);return this}get(t,n){if(t=Eb(t),t){const o=Mt.findKey(this,t);if(o){const i=this[o];if(!n)return i;if(n===!0)return rwe(i);if(Mt.isFunction(n))return n.call(this,i,o);if(Mt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Eb(t),t){const o=Mt.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||O7(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let i=!1;function r(s){if(s=Eb(s),s){const a=Mt.findKey(o,s);a&&(!n||O7(o,o[a],a,n))&&(delete o[a],i=!0)}}return Mt.isArray(t)?t.forEach(r):r(t),i}clear(t){const n=Object.keys(this);let o=n.length,i=!1;for(;o--;){const r=n[o];(!t||O7(this,this[r],r,t,!0))&&(delete this[r],i=!0)}return i}normalize(t){const n=this,o={};return Mt.forEach(this,(i,r)=>{const s=Mt.findKey(o,r);if(s){n[s]=L8(i),delete n[r];return}const a=t?awe(r):String(r).trim();a!==r&&delete n[r],n[a]=L8(i),o[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Mt.forEach(this,(o,i)=>{o!=null&&o!==!1&&(n[i]=t&&Mt.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(i=>o.set(i)),o}static accessor(t){const o=(this[KR]=this[KR]={accessors:{}}).accessors,i=this.prototype;function r(s){const a=Eb(s);o[a]||(lwe(i,s),o[a]=!0)}return Mt.isArray(t)?t.forEach(r):r(t),this}}N$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Mt.reduceDescriptors(N$.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});Mt.freezeMethods(N$);const Yd=N$;function L7(e,t){const n=this||XA,o=t||n,i=Yd.from(o.headers);let r=o.data;return Mt.forEach(e,function(a){r=a.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function mZ(e){return!!(e&&e.__CANCEL__)}function vy(e,t,n){vo.call(this,e??"canceled",vo.ERR_CANCELED,t,n),this.name="CanceledError"}Mt.inherits(vy,vo,{__CANCEL__:!0});function pZ(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new vo("Request failed with status code "+n.status,[vo.ERR_BAD_REQUEST,vo.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function cwe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dwe(e,t){e=e||10;const n=new Array(e),o=new Array(e);let i=0,r=0,s;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),u=o[r];s||(s=d),n[i]=l,o[i]=d;let f=r,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),d-s<t)return;const v=u&&d-u;return v?Math.round(p*1e3/v):void 0}}function uwe(e,t){let n=0,o=1e3/t,i,r;const s=(d,u=Date.now())=>{n=u,i=null,r&&(clearTimeout(r),r=null),e.apply(null,d)};return[(...d)=>{const u=Date.now(),f=u-n;f>=o?s(d,u):(i=d,r||(r=setTimeout(()=>{r=null,s(i)},o-f)))},()=>i&&s(i)]}const M4=(e,t,n=3)=>{let o=0;const i=dwe(50,250);return uwe(r=>{const s=r.loaded,a=r.lengthComputable?r.total:void 0,l=s-o,d=i(l),u=s<=a;o=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:d||void 0,estimated:d&&a&&u?(a-s)/d:void 0,event:r,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},JR=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},XR=e=>(...t)=>Mt.asap(()=>e(...t)),hwe=Pl.hasStandardBrowserEnv?function(){const t=Pl.navigator&&/(msie|trident)/i.test(Pl.navigator.userAgent),n=document.createElement("a");let o;function i(r){let s=r;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=i(window.location.href),function(s){const a=Mt.isString(s)?i(s):s;return a.protocol===o.protocol&&a.host===o.host}}():function(){return function(){return!0}}(),fwe=Pl.hasStandardBrowserEnv?{write(e,t,n,o,i,r){const s=[e+"="+encodeURIComponent(t)];Mt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Mt.isString(o)&&s.push("path="+o),Mt.isString(i)&&s.push("domain="+i),r===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function mwe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pwe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gZ(e,t){return e&&!mwe(t)?pwe(e,t):t}const QR=e=>e instanceof Yd?{...e}:e;function F1(e,t){t=t||{};const n={};function o(d,u,f){return Mt.isPlainObject(d)&&Mt.isPlainObject(u)?Mt.merge.call({caseless:f},d,u):Mt.isPlainObject(u)?Mt.merge({},u):Mt.isArray(u)?u.slice():u}function i(d,u,f){if(Mt.isUndefined(u)){if(!Mt.isUndefined(d))return o(void 0,d,f)}else return o(d,u,f)}function r(d,u){if(!Mt.isUndefined(u))return o(void 0,u)}function s(d,u){if(Mt.isUndefined(u)){if(!Mt.isUndefined(d))return o(void 0,d)}else return o(void 0,u)}function a(d,u,f){if(f in t)return o(d,u);if(f in e)return o(void 0,d)}const l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(d,u)=>i(QR(d),QR(u),!0)};return Mt.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||i,p=f(e[u],t[u],u);Mt.isUndefined(p)&&f!==a||(n[u]=p)}),n}const vZ=e=>{const t=F1({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:a}=t;t.headers=s=Yd.from(s),t.url=uZ(gZ(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(Mt.isFormData(n)){if(Pl.hasStandardBrowserEnv||Pl.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[d,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Pl.hasStandardBrowserEnv&&(o&&Mt.isFunction(o)&&(o=o(t)),o||o!==!1&&hwe(t.url))){const d=i&&r&&fwe.read(r);d&&s.set(i,d)}return t},gwe=typeof XMLHttpRequest<"u",vwe=gwe&&function(e){return new Promise(function(n,o){const i=vZ(e);let r=i.data;const s=Yd.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:d}=i,u,f,p,v,_;function k(){v&&v(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function $(){if(!C)return;const P=Yd.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),O={data:!a||a==="text"||a==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:P,config:e,request:C};pZ(function(S){n(S),k()},function(S){o(S),k()},O),C=null}"onloadend"in C?C.onloadend=$:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout($)},C.onabort=function(){C&&(o(new vo("Request aborted",vo.ECONNABORTED,e,C)),C=null)},C.onerror=function(){o(new vo("Network Error",vo.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let I=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const O=i.transitional||hZ;i.timeoutErrorMessage&&(I=i.timeoutErrorMessage),o(new vo(I,O.clarifyTimeoutError?vo.ETIMEDOUT:vo.ECONNABORTED,e,C)),C=null},r===void 0&&s.setContentType(null),"setRequestHeader"in C&&Mt.forEach(s.toJSON(),function(I,O){C.setRequestHeader(O,I)}),Mt.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),a&&a!=="json"&&(C.responseType=i.responseType),d&&([p,_]=M4(d,!0),C.addEventListener("progress",p)),l&&C.upload&&([f,v]=M4(l),C.upload.addEventListener("progress",f),C.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(u=P=>{C&&(o(!P||P.type?new vy(null,e,C):P),C.abort(),C=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const E=cwe(i.url);if(E&&Pl.protocols.indexOf(E)===-1){o(new vo("Unsupported protocol "+E+":",vo.ERR_BAD_REQUEST,e));return}C.send(r||null)})},_we=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,i;const r=function(d){if(!i){i=!0,a();const u=d instanceof Error?d:this.reason;o.abort(u instanceof vo?u:new vy(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,r(new vo(`timeout ${t} of ms exceeded`,vo.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(r):d.removeEventListener("abort",r)}),e=null)};e.forEach(d=>d.addEventListener("abort",r));const{signal:l}=o;return l.unsubscribe=()=>Mt.asap(a),l}},ywe=_we,bwe=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let o=0,i;for(;o<n;)i=o+t,yield e.slice(o,i),o=i},kwe=async function*(e,t){for await(const n of wwe(e))yield*bwe(n,t)},wwe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}},ej=(e,t,n,o)=>{const i=kwe(e,t);let r=0,s,a=l=>{s||(s=!0,o&&o(l))};return new ReadableStream({async pull(l){try{const{done:d,value:u}=await i.next();if(d){a(),l.close();return}let f=u.byteLength;if(n){let p=r+=f;n(p)}l.enqueue(new Uint8Array(u))}catch(d){throw a(d),d}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},R$=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_Z=R$&&typeof ReadableStream=="function",$we=R$&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),yZ=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Cwe=_Z&&yZ(()=>{let e=!1;const t=new Request(Pl.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),tj=64*1024,bE=_Z&&yZ(()=>Mt.isReadableStream(new Response("").body)),N4={stream:bE&&(e=>e.body)};R$&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!N4[t]&&(N4[t]=Mt.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new vo(`Response type '${t}' is not supported`,vo.ERR_NOT_SUPPORT,o)})})})(new Response);const Swe=async e=>{if(e==null)return 0;if(Mt.isBlob(e))return e.size;if(Mt.isSpecCompliantForm(e))return(await new Request(Pl.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Mt.isArrayBufferView(e)||Mt.isArrayBuffer(e))return e.byteLength;if(Mt.isURLSearchParams(e)&&(e=e+""),Mt.isString(e))return(await $we(e)).byteLength},Twe=async(e,t)=>{const n=Mt.toFiniteNumber(e.getContentLength());return n??Swe(t)},Ewe=R$&&(async e=>{let{url:t,method:n,data:o,signal:i,cancelToken:r,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:p}=vZ(e);d=d?(d+"").toLowerCase():"text";let v=ywe([i,r&&r.toAbortSignal()],s),_;const k=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let C;try{if(l&&Cwe&&n!=="get"&&n!=="head"&&(C=await Twe(u,o))!==0){let O=new Request(t,{method:"POST",body:o,duplex:"half"}),L;if(Mt.isFormData(o)&&(L=O.headers.get("content-type"))&&u.setContentType(L),O.body){const[S,j]=JR(C,M4(XR(l)));o=ej(O.body,tj,S,j)}}Mt.isString(f)||(f=f?"include":"omit");const $="credentials"in Request.prototype;_=new Request(t,{...p,signal:v,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:$?f:void 0});let E=await fetch(_);const P=bE&&(d==="stream"||d==="response");if(bE&&(a||P&&k)){const O={};["status","statusText","headers"].forEach(M=>{O[M]=E[M]});const L=Mt.toFiniteNumber(E.headers.get("content-length")),[S,j]=a&&JR(L,M4(XR(a),!0))||[];E=new Response(ej(E.body,tj,S,()=>{j&&j(),k&&k()}),O)}d=d||"text";let I=await N4[Mt.findKey(N4,d)||"text"](E,e);return!P&&k&&k(),await new Promise((O,L)=>{pZ(O,L,{data:I,headers:Yd.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:_})})}catch($){throw k&&k(),$&&$.name==="TypeError"&&/fetch/i.test($.message)?Object.assign(new vo("Network Error",vo.ERR_NETWORK,e,_),{cause:$.cause||$}):vo.from($,$&&$.code,e,_)}}),kE={http:zke,xhr:vwe,fetch:Ewe};Mt.forEach(kE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nj=e=>`- ${e}`,Iwe=e=>Mt.isFunction(e)||e===null||e===!1,bZ={getAdapter:e=>{e=Mt.isArray(e)?e:[e];const{length:t}=e;let n,o;const i={};for(let r=0;r<t;r++){n=e[r];let s;if(o=n,!Iwe(n)&&(o=kE[(s=String(n)).toLowerCase()],o===void 0))throw new vo(`Unknown adapter '${s}'`);if(o)break;i[s||"#"+r]=o}if(!o){const r=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?r.length>1?`since : `+r.map(nj).join(` `):" "+nj(r[0]):"as no adapter specified";throw new vo("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o},adapters:kE};function M7(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vy(null,e)}function oj(e){return M7(e),e.headers=Yd.from(e.headers),e.data=L7.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bZ.getAdapter(e.adapter||XA.adapter)(e).then(function(o){return M7(e),o.data=L7.call(e,e.transformResponse,o),o.headers=Yd.from(o.headers),o},function(o){return mZ(o)||(M7(e),o&&o.response&&(o.response.data=L7.call(e,e.transformResponse,o.response),o.response.headers=Yd.from(o.response.headers))),Promise.reject(o)})}const kZ="1.7.7",QA={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{QA[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const ij={};QA.transitional=function(t,n,o){function i(r,s){return"[Axios v"+kZ+"] Transitional option '"+r+"'"+s+(o?". "+o:"")}return(r,s,a)=>{if(t===!1)throw new vo(i(s," has been removed"+(n?" in "+n:"")),vo.ERR_DEPRECATED);return n&&!ij[s]&&(ij[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,s,a):!0}};function Pwe(e,t,n){if(typeof e!="object")throw new vo("options must be an object",vo.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let i=o.length;for(;i-- >0;){const r=o[i],s=t[r];if(s){const a=e[r],l=a===void 0||s(a,r,e);if(l!==!0)throw new vo("option "+r+" must be "+l,vo.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new vo("Unknown option "+r,vo.ERR_BAD_OPTION)}}const wE={assertOptions:Pwe,validators:QA},Qf=wE.validators;class R4{constructor(t){this.defaults=t,this.interceptors={request:new ZR,response:new ZR}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const r=i.stack?i.stack.replace(/^.+\n/,""):"";try{o.stack?r&&!String(o.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(o.stack+=` `+r):o.stack=r}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=F1(this.defaults,n);const{transitional:o,paramsSerializer:i,headers:r}=n;o!==void 0&&wE.assertOptions(o,{silentJSONParsing:Qf.transitional(Qf.boolean),forcedJSONParsing:Qf.transitional(Qf.boolean),clarifyTimeoutError:Qf.transitional(Qf.boolean)},!1),i!=null&&(Mt.isFunction(i)?n.paramsSerializer={serialize:i}:wE.assertOptions(i,{encode:Qf.function,serialize:Qf.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=r&&Mt.merge(r.common,r[n.method]);r&&Mt.forEach(["delete","get","head","post","put","patch","common"],_=>{delete r[_]}),n.headers=Yd.concat(s,r);const a=[];let l=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(l=l&&k.synchronous,a.unshift(k.fulfilled,k.rejected))});const d=[];this.interceptors.response.forEach(function(k){d.push(k.fulfilled,k.rejected)});let u,f=0,p;if(!l){const _=[oj.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,d),p=_.length,u=Promise.resolve(n);f<p;)u=u.then(_[f++],_[f++]);return u}p=a.length;let v=n;for(f=0;f<p;){const _=a[f++],k=a[f++];try{v=_(v)}catch(C){k.call(this,C);break}}try{u=oj.call(this,v)}catch(_){return Promise.reject(_)}for(f=0,p=d.length;f<p;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=F1(this.defaults,t);const n=gZ(t.baseURL,t.url);return uZ(n,t.params,t.paramsSerializer)}}Mt.forEach(["delete","get","head","options"],function(t){R4.prototype[t]=function(n,o){return this.request(F1(o||{},{method:t,url:n,data:(o||{}).data}))}});Mt.forEach(["post","put","patch"],function(t){function n(o){return function(r,s,a){return this.request(F1(a||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}R4.prototype[t]=n(),R4.prototype[t+"Form"]=n(!0)});const M8=R4;class eD{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const o=this;this.promise.then(i=>{if(!o._listeners)return;let r=o._listeners.length;for(;r-- >0;)o._listeners[r](i);o._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(a=>{o.subscribe(a),r=a}).then(i);return s.cancel=function(){o.unsubscribe(r)},s},t(function(r,s,a){o.reason||(o.reason=new vy(r,s,a),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new eD(function(i){t=i}),cancel:t}}}const Awe=eD;function Dwe(e){return function(n){return e.apply(null,n)}}function xwe(e){return Mt.isObject(e)&&e.isAxiosError===!0}const $E={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($E).forEach(([e,t])=>{$E[t]=e});const Owe=$E;function wZ(e){const t=new M8(e),n=QG(M8.prototype.request,t);return Mt.extend(n,M8.prototype,t,{allOwnKeys:!0}),Mt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return wZ(F1(e,i))},n}const ns=wZ(XA);ns.Axios=M8;ns.CanceledError=vy;ns.CancelToken=Awe;ns.isCancel=mZ;ns.VERSION=kZ;ns.toFormData=M$;ns.AxiosError=vo;ns.Cancel=ns.CanceledError;ns.all=function(t){return Promise.all(t)};ns.spread=Dwe;ns.isAxiosError=xwe;ns.mergeConfig=F1;ns.AxiosHeaders=Yd;ns.formToJSON=e=>fZ(Mt.isHTMLForm(e)?new FormData(e):e);ns.getAdapter=bZ.getAdapter;ns.HttpStatusCode=Owe;ns.default=ns;const De=ns;window._=Wpe;window.Jets=Kye;window.moment=mt;window.moment.locale("cs");window.axios=De;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";let rj=document.head.querySelector('meta[name="csrf-token"]');rj?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=rj.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token");/** * @vue/shared v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function uc(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Jo={},d_=[],Ks=()=>{},r0=()=>!1,sg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),tD=e=>e.startsWith("onUpdate:"),ei=Object.assign,nD=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lwe=Object.prototype.hasOwnProperty,Ci=(e,t)=>Lwe.call(e,t),$n=Array.isArray,u_=e=>_y(e)==="[object Map]",ag=e=>_y(e)==="[object Set]",sj=e=>_y(e)==="[object Date]",Mwe=e=>_y(e)==="[object RegExp]",Wn=e=>typeof e=="function",uo=e=>typeof e=="string",xl=e=>typeof e=="symbol",Li=e=>e!==null&&typeof e=="object",oD=e=>(Li(e)||Wn(e))&&Wn(e.then)&&Wn(e.catch),$Z=Object.prototype.toString,_y=e=>$Z.call(e),Nwe=e=>_y(e).slice(8,-1),j$=e=>_y(e)==="[object Object]",iD=e=>uo(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fm=uc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rwe=uc("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),F$=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},jwe=/-(\w)/g,Zi=F$(e=>e.replace(jwe,(t,n)=>n?n.toUpperCase():"")),Fwe=/\B([A-Z])/g,El=F$(e=>e.replace(Fwe,"-$1").toLowerCase()),lp=F$(e=>e.charAt(0).toUpperCase()+e.slice(1)),$1=F$(e=>e?`on${lp(e)}`:""),Da=(e,t)=>!Object.is(e,t),h_=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},CZ=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j4=e=>{const t=parseFloat(e);return isNaN(t)?e:t},F4=e=>{const t=uo(e)?Number(e):NaN;return isNaN(t)?e:t};let aj;const z$=()=>aj||(aj=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zwe(e,t){return e+JSON.stringify(t,(n,o)=>typeof o=="function"?o.toString():o)}const Uwe="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",Bwe=uc(Uwe);function Bn(e){if($n(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=uo(o)?SZ(o):Bn(o);if(i)for(const r in i)t[r]=i[r]}return t}else if(uo(e)||Li(e))return e}const Hwe=/;(?![^(]*\))/g,Vwe=/:([^]+)/,qwe=/\/\*[^]*?\*\//g;function SZ(e){const t={};return e.replace(qwe,"").split(Hwe).forEach(n=>{if(n){const o=n.split(Vwe);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function J(e){let t="";if(uo(e))t=e;else if($n(e))for(let n=0;n<e.length;n++){const o=J(e[n]);o&&(t+=o+" ")}else if(Li(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function hs(e){if(!e)return null;let{class:t,style:n}=e;return t&&!uo(t)&&(e.class=J(t)),n&&(e.style=Bn(n)),e}const Ywe="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Wwe="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Gwe="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",Zwe="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Kwe=uc(Ywe),Jwe=uc(Wwe),Xwe=uc(Gwe),Qwe=uc(Zwe),e8e="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",t8e=uc(e8e);function TZ(e){return!!e||e===""}function n8e(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=Qm(e[o],t[o]);return n}function Qm(e,t){if(e===t)return!0;let n=sj(e),o=sj(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=xl(e),o=xl(t),n||o)return e===t;if(n=$n(e),o=$n(t),n||o)return n&&o?n8e(e,t):!1;if(n=Li(e),o=Li(t),n||o){if(!n||!o)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const s in e){const a=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(a&&!l||!a&&l||!Qm(e[s],t[s]))return!1}}return String(e)===String(t)}function U$(e,t){return e.findIndex(n=>Qm(n,t))}const EZ=e=>!!(e&&e.__v_isRef===!0),m=e=>uo(e)?e:e==null?"":$n(e)||Li(e)&&(e.toString===$Z||!Wn(e.toString))?EZ(e)?m(e.value):JSON.stringify(e,IZ,2):String(e),IZ=(e,t)=>EZ(t)?IZ(e,t.value):u_(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[N7(o,r)+" =>"]=i,n),{})}:ag(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>N7(n))}:xl(t)?N7(t):Li(t)&&!$n(t)&&!j$(t)?String(t):t,N7=(e,t="")=>{var n;return xl(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Aa;class B${constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Aa,!t&&Aa&&(this.index=(Aa.scopes||(Aa.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Aa;try{return Aa=this,t()}finally{Aa=n}}}on(){Aa=this}off(){Aa=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function H$(e){return new B$(e)}function rD(){return Aa}function PZ(e,t=!1){Aa&&Aa.cleanups.push(e)}let Yi;const R7=new WeakSet;class x_{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Aa&&Aa.active&&Aa.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,R7.has(this)&&(R7.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||DZ(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,lj(this),xZ(this);const t=Yi,n=Wd;Yi=this,Wd=!0;try{return this.fn()}finally{OZ(this),Yi=t,Wd=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)lD(t);this.deps=this.depsTail=void 0,lj(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?R7.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){CE(this)&&this.run()}get dirty(){return CE(this)}}let AZ=0,S0,T0;function DZ(e,t=!1){if(e.flags|=8,t){e.next=T0,T0=e;return}e.next=S0,S0=e}function sD(){AZ++}function aD(){if(--AZ>0)return;if(T0){let t=T0;for(T0=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;S0;){let t=S0;for(S0=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function xZ(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function OZ(e){let t,n=e.depsTail,o=n;for(;o;){const i=o.prevDep;o.version===-1?(o===n&&(n=i),lD(o),o8e(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=i}e.deps=t,e.depsTail=n}function CE(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(LZ(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function LZ(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===d2))return;e.globalVersion=d2;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!CE(e)){e.flags&=-3;return}const n=Yi,o=Wd;Yi=e,Wd=!0;try{xZ(e);const i=e.fn(e._value);(t.version===0||Da(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Yi=n,Wd=o,OZ(e),e.flags&=-3}}function lD(e,t=!1){const{dep:n,prevSub:o,nextSub:i}=e;if(o&&(o.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)lD(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function o8e(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function MZ(e,t){e.effect instanceof x_&&(e=e.effect.fn);const n=new x_(e);t&&ei(n,t);try{n.run()}catch(i){throw n.stop(),i}const o=n.run.bind(n);return o.effect=n,o}function NZ(e){e.effect.stop()}let Wd=!0;const RZ=[];function cp(){RZ.push(Wd),Wd=!1}function dp(){const e=RZ.pop();Wd=e===void 0?!0:e}function lj(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Yi;Yi=void 0;try{t()}finally{Yi=n}}}let d2=0;class i8e{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class V${constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Yi||!Wd||Yi===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Yi)n=this.activeLink=new i8e(Yi,this),Yi.deps?(n.prevDep=Yi.depsTail,Yi.depsTail.nextDep=n,Yi.depsTail=n):Yi.deps=Yi.depsTail=n,jZ(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Yi.depsTail,n.nextDep=void 0,Yi.depsTail.nextDep=n,Yi.depsTail=n,Yi.deps===n&&(Yi.deps=o)}return n}trigger(t){this.version++,d2++,this.notify(t)}notify(t){sD();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{aD()}}}function jZ(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)jZ(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const z4=new WeakMap,C1=Symbol(""),SE=Symbol(""),u2=Symbol("");function ca(e,t,n){if(Wd&&Yi){let o=z4.get(e);o||z4.set(e,o=new Map);let i=o.get(n);i||(o.set(n,i=new V$),i.map=o,i.key=n),i.track()}}function Kh(e,t,n,o,i,r){const s=z4.get(e);if(!s){d2++;return}const a=l=>{l&&l.trigger()};if(sD(),t==="clear")s.forEach(a);else{const l=$n(e),d=l&&iD(n);if(l&&n==="length"){const u=Number(o);s.forEach((f,p)=>{(p==="length"||p===u2||!xl(p)&&p>=u)&&a(f)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),d&&a(s.get(u2)),t){case"add":l?d&&a(s.get("length")):(a(s.get(C1)),u_(e)&&a(s.get(SE)));break;case"delete":l||(a(s.get(C1)),u_(e)&&a(s.get(SE)));break;case"set":u_(e)&&a(s.get(C1));break}}aD()}function r8e(e,t){const n=z4.get(e);return n&&n.get(t)}function av(e){const t=si(e);return t===e?t:(ca(t,"iterate",u2),Al(e)?t:t.map(da))}function q$(e){return ca(e=si(e),"iterate",u2),e}const s8e={__proto__:null,[Symbol.iterator](){return j7(this,Symbol.iterator,da)},concat(...e){return av(this).concat(...e.map(t=>$n(t)?av(t):t))},entries(){return j7(this,"entries",e=>(e[1]=da(e[1]),e))},every(e,t){return Nh(this,"every",e,t,void 0,arguments)},filter(e,t){return Nh(this,"filter",e,t,n=>n.map(da),arguments)},find(e,t){return Nh(this,"find",e,t,da,arguments)},findIndex(e,t){return Nh(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Nh(this,"findLast",e,t,da,arguments)},findLastIndex(e,t){return Nh(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Nh(this,"forEach",e,t,void 0,arguments)},includes(...e){return F7(this,"includes",e)},indexOf(...e){return F7(this,"indexOf",e)},join(e){return av(this).join(e)},lastIndexOf(...e){return F7(this,"lastIndexOf",e)},map(e,t){return Nh(this,"map",e,t,void 0,arguments)},pop(){return Ib(this,"pop")},push(...e){return Ib(this,"push",e)},reduce(e,...t){return cj(this,"reduce",e,t)},reduceRight(e,...t){return cj(this,"reduceRight",e,t)},shift(){return Ib(this,"shift")},some(e,t){return Nh(this,"some",e,t,void 0,arguments)},splice(...e){return Ib(this,"splice",e)},toReversed(){return av(this).toReversed()},toSorted(e){return av(this).toSorted(e)},toSpliced(...e){return av(this).toSpliced(...e)},unshift(...e){return Ib(this,"unshift",e)},values(){return j7(this,"values",da)}};function j7(e,t,n){const o=q$(e),i=o[t]();return o!==e&&!Al(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.value&&(r.value=n(r.value)),r}),i}const a8e=Array.prototype;function Nh(e,t,n,o,i,r){const s=q$(e),a=s!==e&&!Al(e),l=s[t];if(l!==a8e[t]){const f=l.apply(e,r);return a?da(f):f}let d=n;s!==e&&(a?d=function(f,p){return n.call(this,da(f),p,e)}:n.length>2&&(d=function(f,p){return n.call(this,f,p,e)}));const u=l.call(s,d,o);return a&&i?i(u):u}function cj(e,t,n,o){const i=q$(e);let r=n;return i!==e&&(Al(e)?n.length>3&&(r=function(s,a,l){return n.call(this,s,a,l,e)}):r=function(s,a,l){return n.call(this,s,da(a),l,e)}),i[t](r,...o)}function F7(e,t,n){const o=si(e);ca(o,"iterate",u2);const i=o[t](...n);return(i===-1||i===!1)&&s3(n[0])?(n[0]=si(n[0]),o[t](...n)):i}function Ib(e,t,n=[]){cp(),sD();const o=si(e)[t].apply(e,n);return aD(),dp(),o}const l8e=uc("__proto__,__v_isRef,__isVue"),FZ=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xl));function c8e(e){xl(e)||(e=String(e));const t=si(this);return ca(t,"has",e),t.hasOwnProperty(e)}class zZ{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?YZ:qZ:r?VZ:HZ).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=$n(t);if(!i){let l;if(s&&(l=s8e[n]))return l;if(n==="hasOwnProperty")return c8e}const a=Reflect.get(t,n,Oi(t)?t:o);return(xl(n)?FZ.has(n):l8e(n))||(i||ca(t,"get",n),r)?a:Oi(a)?s&&iD(n)?a:a.value:Li(a)?i?G$(a):hc(a):a}}class UZ extends zZ{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._isShallow){const l=nh(r);if(!Al(o)&&!nh(o)&&(r=si(r),o=si(o)),!$n(t)&&Oi(r)&&!Oi(o))return l?!1:(r.value=o,!0)}const s=$n(t)&&iD(n)?Number(n)<t.length:Ci(t,n),a=Reflect.set(t,n,o,Oi(t)?t:i);return t===si(i)&&(s?Da(o,r)&&Kh(t,"set",n,o):Kh(t,"add",n,o)),a}deleteProperty(t,n){const o=Ci(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&Kh(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!xl(n)||!FZ.has(n))&&ca(t,"has",n),o}ownKeys(t){return ca(t,"iterate",$n(t)?"length":C1),Reflect.ownKeys(t)}}class BZ extends zZ{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const d8e=new UZ,u8e=new BZ,h8e=new UZ(!0),f8e=new BZ(!0),TE=e=>e,iw=e=>Reflect.getPrototypeOf(e);function m8e(e,t,n){return function(...o){const i=this.__v_raw,r=si(i),s=u_(r),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,d=i[e](...o),u=n?TE:t?EE:da;return!t&&ca(r,"iterate",l?SE:C1),{next(){const{value:f,done:p}=d.next();return p?{value:f,done:p}:{value:a?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function rw(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function p8e(e,t){const n={get(i){const r=this.__v_raw,s=si(r),a=si(i);e||(Da(i,a)&&ca(s,"get",i),ca(s,"get",a));const{has:l}=iw(s),d=t?TE:e?EE:da;if(l.call(s,i))return d(r.get(i));if(l.call(s,a))return d(r.get(a));r!==s&&r.get(i)},get size(){const i=this.__v_raw;return!e&&ca(si(i),"iterate",C1),Reflect.get(i,"size",i)},has(i){const r=this.__v_raw,s=si(r),a=si(i);return e||(Da(i,a)&&ca(s,"has",i),ca(s,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const s=this,a=s.__v_raw,l=si(a),d=t?TE:e?EE:da;return!e&&ca(l,"iterate",C1),a.forEach((u,f)=>i.call(r,d(u),d(f),s))}};return ei(n,e?{add:rw("add"),set:rw("set"),delete:rw("delete"),clear:rw("clear")}:{add(i){!t&&!Al(i)&&!nh(i)&&(i=si(i));const r=si(this);return iw(r).has.call(r,i)||(r.add(i),Kh(r,"add",i,i)),this},set(i,r){!t&&!Al(r)&&!nh(r)&&(r=si(r));const s=si(this),{has:a,get:l}=iw(s);let d=a.call(s,i);d||(i=si(i),d=a.call(s,i));const u=l.call(s,i);return s.set(i,r),d?Da(r,u)&&Kh(s,"set",i,r):Kh(s,"add",i,r),this},delete(i){const r=si(this),{has:s,get:a}=iw(r);let l=s.call(r,i);l||(i=si(i),l=s.call(r,i)),a&&a.call(r,i);const d=r.delete(i);return l&&Kh(r,"delete",i,void 0),d},clear(){const i=si(this),r=i.size!==0,s=i.clear();return r&&Kh(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=m8e(i,e,t)}),n}function Y$(e,t){const n=p8e(e,t);return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(Ci(n,i)&&i in o?n:o,i,r)}const g8e={get:Y$(!1,!1)},v8e={get:Y$(!1,!0)},_8e={get:Y$(!0,!1)},y8e={get:Y$(!0,!0)},HZ=new WeakMap,VZ=new WeakMap,qZ=new WeakMap,YZ=new WeakMap;function b8e(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function k8e(e){return e.__v_skip||!Object.isExtensible(e)?0:b8e(Nwe(e))}function hc(e){return nh(e)?e:Z$(e,!1,d8e,g8e,HZ)}function W$(e){return Z$(e,!1,h8e,v8e,VZ)}function G$(e){return Z$(e,!0,u8e,_8e,qZ)}function WZ(e){return Z$(e,!0,f8e,y8e,YZ)}function Z$(e,t,n,o,i){if(!Li(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=k8e(e);if(s===0)return e;const a=new Proxy(e,s===2?o:n);return i.set(e,a),a}function qu(e){return nh(e)?qu(e.__v_raw):!!(e&&e.__v_isReactive)}function nh(e){return!!(e&&e.__v_isReadonly)}function Al(e){return!!(e&&e.__v_isShallow)}function s3(e){return e?!!e.__v_raw:!1}function si(e){const t=e&&e.__v_raw;return t?si(t):e}function cD(e){return!Ci(e,"__v_skip")&&Object.isExtensible(e)&&CZ(e,"__v_skip",!0),e}const da=e=>Li(e)?hc(e):e,EE=e=>Li(e)?G$(e):e;function Oi(e){return e?e.__v_isRef===!0:!1}function In(e){return GZ(e,!1)}function yy(e){return GZ(e,!0)}function GZ(e,t){return Oi(e)?e:new w8e(e,t)}class w8e{constructor(t,n){this.dep=new V$,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:si(t),this._value=n?t:da(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Al(t)||nh(t);t=o?t:si(t),Da(t,n)&&(this._rawValue=t,this._value=o?t:da(t),this.dep.trigger())}}function ZZ(e){e.dep&&e.dep.trigger()}function Et(e){return Oi(e)?e.value:e}function KZ(e){return Wn(e)?e():Et(e)}const $8e={get:(e,t,n)=>t==="__v_raw"?e:Et(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Oi(i)&&!Oi(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function K$(e){return qu(e)?e:new Proxy(e,$8e)}class C8e{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new V$,{get:o,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function dD(e){return new C8e(e)}function uD(e){const t=$n(e)?new Array(e.length):{};for(const n in e)t[n]=JZ(e,n);return t}class S8e{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return r8e(si(this._object),this._key)}}class T8e{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function f_(e,t,n){return Oi(e)?e:Wn(e)?new T8e(e):Li(e)&&arguments.length>1?JZ(e,t,n):In(e)}function JZ(e,t,n){const o=e[t];return Oi(o)?o:new S8e(e,t,n)}class E8e{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new V$(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=d2-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Yi!==this)return DZ(this,!0),!0}get value(){const t=this.dep.track();return LZ(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function I8e(e,t,n=!1){let o,i;return Wn(e)?o=e:(o=e.get,i=e.set),new E8e(o,i,n)}const XZ={GET:"get",HAS:"has",ITERATE:"iterate"},QZ={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},sw={},U4=new WeakMap;let pm;function eK(){return pm}function hD(e,t=!1,n=pm){if(n){let o=U4.get(n);o||U4.set(n,o=[]),o.push(e)}}function P8e(e,t,n=Jo){const{immediate:o,deep:i,once:r,scheduler:s,augmentJob:a,call:l}=n,d=I=>i?I:Al(I)||i===!1||i===0?Jh(I,1):Jh(I);let u,f,p,v,_=!1,k=!1;if(Oi(e)?(f=()=>e.value,_=Al(e)):qu(e)?(f=()=>d(e),_=!0):$n(e)?(k=!0,_=e.some(I=>qu(I)||Al(I)),f=()=>e.map(I=>{if(Oi(I))return I.value;if(qu(I))return d(I);if(Wn(I))return l?l(I,2):I()})):Wn(e)?t?f=l?()=>l(e,2):e:f=()=>{if(p){cp();try{p()}finally{dp()}}const I=pm;pm=u;try{return l?l(e,3,[v]):e(v)}finally{pm=I}}:f=Ks,t&&i){const I=f,O=i===!0?1/0:i;f=()=>Jh(I(),O)}const C=rD(),$=()=>{u.stop(),C&&nD(C.effects,u)};if(r&&t){const I=t;t=(...O)=>{I(...O),$()}}let E=k?new Array(e.length).fill(sw):sw;const P=I=>{if(!(!(u.flags&1)||!u.dirty&&!I))if(t){const O=u.run();if(i||_||(k?O.some((L,S)=>Da(L,E[S])):Da(O,E))){p&&p();const L=pm;pm=u;try{const S=[O,E===sw?void 0:k&&E[0]===sw?[]:E,v];l?l(t,3,S):t(...S),E=O}finally{pm=L}}}else u.run()};return a&&a(P),u=new x_(f),u.scheduler=s?()=>s(P,!1):P,v=I=>hD(I,!1,u),p=u.onStop=()=>{const I=U4.get(u);if(I){if(l)l(I,4);else for(const O of I)O();U4.delete(u)}},t?o?P(!0):E=u.run():s?s(P.bind(null,!0),!0):u.run(),$.pause=u.pause.bind(u),$.resume=u.resume.bind(u),$.stop=$,$}function Jh(e,t=1/0,n){if(t<=0||!Li(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Oi(e))Jh(e.value,t,n);else if($n(e))for(let o=0;o<e.length;o++)Jh(e[o],t,n);else if(ag(e)||u_(e))e.forEach(o=>{Jh(o,t,n)});else if(j$(e)){for(const o in e)Jh(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Jh(e[o],t,n)}return e}/** * @vue/runtime-core v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const tK=[];function A8e(e){tK.push(e)}function D8e(){tK.pop()}function nK(e,t){}const oK={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},x8e={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function lg(e,t,n,o){try{return o?e(...o):e()}catch(i){up(i,t,n)}}function cc(e,t,n,o){if(Wn(e)){const i=lg(e,t,n,o);return i&&oD(i)&&i.catch(r=>{up(r,t,n)}),i}if($n(e)){const i=[];for(let r=0;r<e.length;r++)i.push(cc(e[r],t,n,o));return i}}function up(e,t,n,o=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Jo;if(t){let a=t.parent;const l=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,d)===!1)return}a=a.parent}if(r){cp(),lg(r,null,10,[e,l,d]),dp();return}}O8e(e,n,i,o,s)}function O8e(e,t,n,o=!0,i=!1){if(i)throw e;console.error(e)}const xa=[];let Pu=-1;const m_=[];let gm=null,xv=0;const iK=Promise.resolve();let B4=null;function fa(e){const t=B4||iK;return e?t.then(this?e.bind(this):e):t}function L8e(e){let t=Pu+1,n=xa.length;for(;t<n;){const o=t+n>>>1,i=xa[o],r=f2(i);r<e||r===e&&i.flags&2?t=o+1:n=o}return t}function fD(e){if(!(e.flags&1)){const t=f2(e),n=xa[xa.length-1];!n||!(e.flags&2)&&t>=f2(n)?xa.push(e):xa.splice(L8e(t),0,e),e.flags|=1,rK()}}function rK(){B4||(B4=iK.then(sK))}function h2(e){$n(e)?m_.push(...e):gm&&e.id===-1?gm.splice(xv+1,0,e):e.flags&1||(m_.push(e),e.flags|=1),rK()}function dj(e,t,n=Pu+1){for(;n<xa.length;n++){const o=xa[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;xa.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function H4(e){if(m_.length){const t=[...new Set(m_)].sort((n,o)=>f2(n)-f2(o));if(m_.length=0,gm){gm.push(...t);return}for(gm=t,xv=0;xv<gm.length;xv++){const n=gm[xv];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}gm=null,xv=0}}const f2=e=>e.id==null?e.flags&2?-1:1/0:e.id;function sK(e){const t=Ks;try{for(Pu=0;Pu<xa.length;Pu++){const n=xa[Pu];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),lg(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Pu<xa.length;Pu++){const n=xa[Pu];n&&(n.flags&=-2)}Pu=-1,xa.length=0,H4(),B4=null,(xa.length||m_.length)&&sK()}}let Ov,aw=[];function aK(e,t){var n,o;Ov=e,Ov?(Ov.enabled=!0,aw.forEach(({event:i,args:r})=>Ov.emit(i,...r)),aw=[]):typeof window<"u"&&window.HTMLElement&&!((o=(n=window.navigator)==null?void 0:n.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{aK(r,t)}),setTimeout(()=>{Ov||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,aw=[])},3e3)):aw=[]}let ys=null,J$=null;function m2(e){const t=ys;return ys=e,J$=e&&e.type.__scopeId||null,t}function X$(e){J$=e}function Q$(){J$=null}const mD=e=>F;function F(e,t=ys,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&G4(-1);const r=m2(t);let s;try{s=e(...i)}finally{m2(r),o._d&&G4(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function xe(e,t){if(ys===null)return e;const n=d3(ys),o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,a,l=Jo]=t[i];r&&(Wn(r)&&(r={mounted:r,updated:r}),r.deep&&Jh(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function Du(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];r&&(a.oldValue=r[s].value);let l=a.dir[o];l&&(cp(),cc(l,n,8,[e.el,a,e,t]),dp())}}const lK=Symbol("_vte"),cK=e=>e.__isTeleport,E0=e=>e&&(e.disabled||e.disabled===""),M8e=e=>e&&(e.defer||e.defer===""),uj=e=>typeof SVGElement<"u"&&e instanceof SVGElement,hj=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,IE=(e,t)=>{const n=e&&e.to;return uo(n)?t?t(n):null:n},N8e={name:"Teleport",__isTeleport:!0,process(e,t,n,o,i,r,s,a,l,d){const{mc:u,pc:f,pbc:p,o:{insert:v,querySelector:_,createText:k,createComment:C}}=d,$=E0(t.props);let{shapeFlag:E,children:P,dynamicChildren:I}=t;if(e==null){const O=t.el=k(""),L=t.anchor=k("");v(O,n,o),v(L,n,o);const S=(M,q)=>{E&16&&(i&&i.isCE&&(i.ce._teleportTarget=M),u(P,M,q,i,r,s,a,l))},j=()=>{const M=t.target=IE(t.props,_),q=uK(M,t,k,v);M&&(s!=="svg"&&uj(M)?s="svg":s!=="mathml"&&hj(M)&&(s="mathml"),$||(S(M,q),N8(t,!1)))};$&&(S(n,L),N8(t,!0)),M8e(t.props)?Os(j,r):j()}else{t.el=e.el,t.targetStart=e.targetStart;const O=t.anchor=e.anchor,L=t.target=e.target,S=t.targetAnchor=e.targetAnchor,j=E0(e.props),M=j?n:L,q=j?O:S;if(s==="svg"||uj(L)?s="svg":(s==="mathml"||hj(L))&&(s="mathml"),I?(p(e.dynamicChildren,I,M,i,r,s,a),DD(e,t,!0)):l||f(e,t,M,q,i,r,s,a,!1),$)j?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):lw(t,n,O,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=IE(t.props,_);B&&lw(t,B,null,d,0)}else j&&lw(t,L,S,d,1);N8(t,$)}},remove(e,t,n,{um:o,o:{remove:i}},r){const{shapeFlag:s,children:a,anchor:l,targetStart:d,targetAnchor:u,target:f,props:p}=e;if(f&&(i(d),i(u)),r&&i(l),s&16){const v=r||!E0(p);for(let _=0;_<a.length;_++){const k=a[_];o(k,t,n,v,!!k.dynamicChildren)}}},move:lw,hydrate:R8e};function lw(e,t,n,{o:{insert:o},m:i},r=2){r===0&&o(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:d,props:u}=e,f=r===2;if(f&&o(s,t,n),(!f||E0(u))&&l&16)for(let p=0;p<d.length;p++)i(d[p],t,n,2);f&&o(a,t,n)}function R8e(e,t,n,o,i,r,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:d,createText:u}},f){const p=t.target=IE(t.props,l);if(p){const v=E0(t.props),_=p._lpa||p.firstChild;if(t.shapeFlag&16)if(v)t.anchor=f(s(e),t,a(e),n,o,i,r),t.targetStart=_,t.targetAnchor=_&&s(_);else{t.anchor=s(e);let k=_;for(;k;){if(k&&k.nodeType===8){if(k.data==="teleport start anchor")t.targetStart=k;else if(k.data==="teleport anchor"){t.targetAnchor=k,p._lpa=t.targetAnchor&&s(t.targetAnchor);break}}k=s(k)}t.targetAnchor||uK(p,t,u,d),f(_&&s(_),t,p,n,o,i,r)}N8(t,v)}return t.anchor&&s(t.anchor)}const dK=N8e;function N8(e,t){const n=e.ctx;if(n&&n.ut){let o,i;for(t?(o=e.el,i=e.anchor):(o=e.targetStart,i=e.targetAnchor);o&&o!==i;)o.nodeType===1&&o.setAttribute("data-v-owner",n.uid),o=o.nextSibling;n.ut()}}function uK(e,t,n,o){const i=t.targetStart=n(""),r=t.targetAnchor=n("");return i[lK]=r,e&&(o(i,e),o(r,e)),r}const vm=Symbol("_leaveCb"),cw=Symbol("_enterCb");function e9(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ha(()=>{e.isMounted=!0}),cg(()=>{e.isUnmounting=!0}),e}const Dc=[Function,Array],t9={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Dc,onEnter:Dc,onAfterEnter:Dc,onEnterCancelled:Dc,onBeforeLeave:Dc,onLeave:Dc,onAfterLeave:Dc,onLeaveCancelled:Dc,onBeforeAppear:Dc,onAppear:Dc,onAfterAppear:Dc,onAppearCancelled:Dc},hK=e=>{const t=e.subTree;return t.component?hK(t.component):t},j8e={name:"BaseTransition",props:t9,setup(e,{slots:t}){const n=pr(),o=e9();return()=>{const i=t.default&&a3(t.default(),!0);if(!i||!i.length)return;const r=fK(i),s=si(e),{mode:a}=s;if(o.isLeaving)return z7(r);const l=fj(r);if(!l)return z7(r);let d=z1(l,s,o,n,p=>d=p);l.type!==zr&&oh(l,d);const u=n.subTree,f=u&&fj(u);if(f&&f.type!==zr&&!Nd(l,f)&&hK(n).type!==zr){const p=z1(f,s,o,n);if(oh(f,p),a==="out-in"&&l.type!==zr)return o.isLeaving=!0,p.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave},z7(r);a==="in-out"&&l.type!==zr&&(p.delayLeave=(v,_,k)=>{const C=mK(o,f);C[String(f.key)]=f,v[vm]=()=>{_(),v[vm]=void 0,delete d.delayedLeave},d.delayedLeave=k})}return r}}};function fK(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==zr){t=n;break}}return t}const pD=j8e;function mK(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function z1(e,t,n,o,i){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:v,onAfterLeave:_,onLeaveCancelled:k,onBeforeAppear:C,onAppear:$,onAfterAppear:E,onAppearCancelled:P}=t,I=String(e.key),O=mK(n,e),L=(M,q)=>{M&&cc(M,o,9,q)},S=(M,q)=>{const B=q[1];L(M,q),$n(M)?M.every(V=>V.length<=1)&&B():M.length<=1&&B()},j={mode:s,persisted:a,beforeEnter(M){let q=l;if(!n.isMounted)if(r)q=C||l;else return;M[vm]&&M[vm](!0);const B=O[I];B&&Nd(e,B)&&B.el[vm]&&B.el[vm](),L(q,[M])},enter(M){let q=d,B=u,V=f;if(!n.isMounted)if(r)q=$||d,B=E||u,V=P||f;else return;let G=!1;const Q=M[cw]=X=>{G||(G=!0,X?L(V,[M]):L(B,[M]),j.delayedLeave&&j.delayedLeave(),M[cw]=void 0)};q?S(q,[M,Q]):Q()},leave(M,q){const B=String(e.key);if(M[cw]&&M[cw](!0),n.isUnmounting)return q();L(p,[M]);let V=!1;const G=M[vm]=Q=>{V||(V=!0,q(),Q?L(k,[M]):L(_,[M]),M[vm]=void 0,O[B]===e&&delete O[B])};O[B]=e,v?S(v,[M,G]):G()},clone(M){const q=z1(M,t,n,o,i);return i&&i(q),q}};return j}function z7(e){if(l3(e))return e=eu(e),e.children=null,e}function fj(e){if(!l3(e))return cK(e.type)&&e.children?fK(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Wn(n.default))return n.default()}}function oh(e,t){e.shapeFlag&6&&e.component?(e.transition=t,oh(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function a3(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===pe?(s.patchFlag&128&&i++,o=o.concat(a3(s.children,t,a))):(t||s.type!==zr)&&o.push(a!=null?eu(s,{key:a}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function xo(e,t){return Wn(e)?(()=>ei({name:e.name},t,{setup:e}))():e}function pK(){const e=pr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function gD(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function gK(e){const t=pr(),n=yy(null);if(t){const i=t.refs===Jo?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:r=>n.value=r})}return n}function V4(e,t,n,o,i=!1){if($n(e)){e.forEach((_,k)=>V4(_,t&&($n(t)?t[k]:t),n,o,i));return}if(zm(o)&&!i)return;const r=o.shapeFlag&4?d3(o.component):o.el,s=i?null:r,{i:a,r:l}=e,d=t&&t.r,u=a.refs===Jo?a.refs={}:a.refs,f=a.setupState,p=si(f),v=f===Jo?()=>!1:_=>Ci(p,_);if(d!=null&&d!==l&&(uo(d)?(u[d]=null,v(d)&&(f[d]=null)):Oi(d)&&(d.value=null)),Wn(l))lg(l,a,12,[s,u]);else{const _=uo(l),k=Oi(l);if(_||k){const C=()=>{if(e.f){const $=_?v(l)?f[l]:u[l]:l.value;i?$n($)&&nD($,r):$n($)?$.includes(r)||$.push(r):_?(u[l]=[r],v(l)&&(f[l]=u[l])):(l.value=[r],e.k&&(u[e.k]=l.value))}else _?(u[l]=s,v(l)&&(f[l]=s)):k&&(l.value=s,e.k&&(u[e.k]=s))};s?(C.id=-1,Os(C,n)):C()}}}let mj=!1;const lv=()=>{mj||(console.error("Hydration completed but contains mismatches."),mj=!0)},F8e=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",z8e=e=>e.namespaceURI.includes("MathML"),dw=e=>{if(e.nodeType===1){if(F8e(e))return"svg";if(z8e(e))return"mathml"}},Vv=e=>e.nodeType===8;function U8e(e){const{mt:t,p:n,o:{patchProp:o,createText:i,nextSibling:r,parentNode:s,remove:a,insert:l,createComment:d}}=e,u=(P,I)=>{if(!I.hasChildNodes()){n(null,P,I),H4(),I._vnode=P;return}f(I.firstChild,P,null,null,null),H4(),I._vnode=P},f=(P,I,O,L,S,j=!1)=>{j=j||!!I.dynamicChildren;const M=Vv(P)&&P.data==="[",q=()=>k(P,I,O,L,S,M),{type:B,ref:V,shapeFlag:G,patchFlag:Q}=I;let X=P.nodeType;I.el=P,Q===-2&&(j=!1,I.dynamicChildren=null);let Y=null;switch(B){case Wu:X!==3?I.children===""?(l(I.el=i(""),s(P),P),Y=P):Y=q():(P.data!==I.children&&(lv(),P.data=I.children),Y=r(P));break;case zr:E(P)?(Y=r(P),$(I.el=P.content.firstChild,P,O)):X!==8||M?Y=q():Y=r(P);break;case Um:if(M&&(P=r(P),X=P.nodeType),X===1||X===3){Y=P;const Z=!I.children.length;for(let se=0;se<I.staticCount;se++)Z&&(I.children+=Y.nodeType===1?Y.outerHTML:Y.data),se===I.staticCount-1&&(I.anchor=Y),Y=r(Y);return M?r(Y):Y}else q();break;case pe:M?Y=_(P,I,O,L,S,j):Y=q();break;default:if(G&1)(X!==1||I.type.toLowerCase()!==P.tagName.toLowerCase())&&!E(P)?Y=q():Y=p(P,I,O,L,S,j);else if(G&6){I.slotScopeIds=S;const Z=s(P);if(M?Y=C(P):Vv(P)&&P.data==="teleport start"?Y=C(P,P.data,"teleport end"):Y=r(P),t(I,Z,null,O,L,dw(Z),j),zm(I)){let se;M?(se=b(pe),se.anchor=Y?Y.previousSibling:Z.lastChild):se=P.nodeType===3?z(""):b("div"),se.el=P,I.component.subTree=se}}else G&64?X!==8?Y=q():Y=I.type.hydrate(P,I,O,L,S,j,e,v):G&128&&(Y=I.type.hydrate(P,I,O,L,dw(s(P)),S,j,e,f))}return V!=null&&V4(V,null,L,I),Y},p=(P,I,O,L,S,j)=>{j=j||!!I.dynamicChildren;const{type:M,props:q,patchFlag:B,shapeFlag:V,dirs:G,transition:Q}=I,X=M==="input"||M==="option";if(X||B!==-1){G&&Du(I,null,O,"created");let Y=!1;if(E(P)){Y=XK(null,Q)&&O&&O.vnode.props&&O.vnode.props.appear;const se=P.content.firstChild;Y&&Q.beforeEnter(se),$(se,P,O),I.el=P=se}if(V&16&&!(q&&(q.innerHTML||q.textContent))){let se=v(P.firstChild,I,P,O,L,S,j);for(;se;){uw(P,1)||lv();const ce=se;se=se.nextSibling,a(ce)}}else if(V&8){let se=I.children;se[0]===` `&&(P.tagName==="PRE"||P.tagName==="TEXTAREA")&&(se=se.slice(1)),P.textContent!==se&&(uw(P,0)||lv(),P.textContent=I.children)}if(q){if(X||!j||B&48){const se=P.tagName.includes("-");for(const ce in q)(X&&(ce.endsWith("value")||ce==="indeterminate")||sg(ce)&&!Fm(ce)||ce[0]==="."||se)&&o(P,ce,null,q[ce],void 0,O)}else if(q.onClick)o(P,"onClick",null,q.onClick,void 0,O);else if(B&4&&qu(q.style))for(const se in q.style)q.style[se]}let Z;(Z=q&&q.onVnodeBeforeMount)&&_l(Z,O,I),G&&Du(I,null,O,"beforeMount"),((Z=q&&q.onVnodeMounted)||G||Y)&&sJ(()=>{Z&&_l(Z,O,I),Y&&Q.enter(P),G&&Du(I,null,O,"mounted")},L)}return P.nextSibling},v=(P,I,O,L,S,j,M)=>{M=M||!!I.dynamicChildren;const q=I.children,B=q.length;for(let V=0;V<B;V++){const G=M?q[V]:q[V]=Cl(q[V]),Q=G.type===Wu;P?(Q&&!M&&V+1<B&&Cl(q[V+1]).type===Wu&&(l(i(P.data.slice(G.children.length)),O,r(P)),P.data=G.children),P=f(P,G,L,S,j,M)):Q&&!G.children?l(G.el=i(""),O):(uw(O,1)||lv(),n(null,G,O,null,L,S,dw(O),j))}return P},_=(P,I,O,L,S,j)=>{const{slotScopeIds:M}=I;M&&(S=S?S.concat(M):M);const q=s(P),B=v(r(P),I,q,O,L,S,j);return B&&Vv(B)&&B.data==="]"?r(I.anchor=B):(lv(),l(I.anchor=d("]"),q,B),B)},k=(P,I,O,L,S,j)=>{if(uw(P.parentElement,1)||lv(),I.el=null,j){const B=C(P);for(;;){const V=r(P);if(V&&V!==B)a(V);else break}}const M=r(P),q=s(P);return a(P),n(null,I,q,M,O,L,dw(q),S),M},C=(P,I="[",O="]")=>{let L=0;for(;P;)if(P=r(P),P&&Vv(P)&&(P.data===I&&L++,P.data===O)){if(L===0)return r(P);L--}return P},$=(P,I,O)=>{const L=I.parentNode;L&&L.replaceChild(P,I);let S=O;for(;S;)S.vnode.el===I&&(S.vnode.el=S.subTree.el=P),S=S.parent},E=P=>P.nodeType===1&&P.tagName==="TEMPLATE";return[u,f]}const pj="data-allow-mismatch",B8e={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function uw(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(pj);)e=e.parentElement;const n=e&&e.getAttribute(pj);if(n==null)return!1;if(n==="")return!0;{const o=n.split(",");return t===0&&o.includes("children")?!0:n.split(",").includes(B8e[t])}}const H8e=z$().requestIdleCallback||(e=>setTimeout(e,1)),V8e=z$().cancelIdleCallback||(e=>clearTimeout(e)),vK=(e=1e4)=>t=>{const n=H8e(t,{timeout:e});return()=>V8e(n)};function q8e(e){const{top:t,left:n,bottom:o,right:i}=e.getBoundingClientRect(),{innerHeight:r,innerWidth:s}=window;return(t>0&&t<r||o>0&&o<r)&&(n>0&&n<s||i>0&&i<s)}const _K=e=>(t,n)=>{const o=new IntersectionObserver(i=>{for(const r of i)if(r.isIntersecting){o.disconnect(),t();break}},e);return n(i=>{if(i instanceof Element){if(q8e(i))return t(),o.disconnect(),!1;o.observe(i)}}),()=>o.disconnect()},yK=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},bK=(e=[])=>(t,n)=>{uo(e)&&(e=[e]);let o=!1;const i=s=>{o||(o=!0,r(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},r=()=>{n(s=>{for(const a of e)s.removeEventListener(a,i)})};return n(s=>{for(const a of e)s.addEventListener(a,i,{once:!0})}),r};function Y8e(e,t){if(Vv(e)&&e.data==="["){let n=1,o=e.nextSibling;for(;o;){if(o.nodeType===1){if(t(o)===!1)break}else if(Vv(o))if(o.data==="]"){if(--n===0)break}else o.data==="["&&n++;o=o.nextSibling}}else t(e)}const zm=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function kK(e){Wn(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:i=200,hydrate:r,timeout:s,suspensible:a=!0,onError:l}=e;let d=null,u,f=0;const p=()=>(f++,d=null,v()),v=()=>{let _;return d||(_=d=t().catch(k=>{if(k=k instanceof Error?k:new Error(String(k)),l)return new Promise((C,$)=>{l(k,()=>C(p()),()=>$(k),f+1)});throw k}).then(k=>_!==d&&d?d:(k&&(k.__esModule||k[Symbol.toStringTag]==="Module")&&(k=k.default),u=k,k)))};return xo({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(_,k,C){const $=r?()=>{const E=r(C,P=>Y8e(_,P));E&&(k.bum||(k.bum=[])).push(E)}:C;u?$():v().then(()=>!k.isUnmounted&&$())},get __asyncResolved(){return u},setup(){const _=ms;if(gD(_),u)return()=>U7(u,_);const k=P=>{d=null,up(P,_,13,!o)};if(a&&_.suspense||O_)return v().then(P=>()=>U7(P,_)).catch(P=>(k(P),()=>o?b(o,{error:P}):null));const C=In(!1),$=In(),E=In(!!i);return i&&setTimeout(()=>{E.value=!1},i),s!=null&&setTimeout(()=>{if(!C.value&&!$.value){const P=new Error(`Async component timed out after ${s}ms.`);k(P),$.value=P}},s),v().then(()=>{C.value=!0,_.parent&&l3(_.parent.vnode)&&_.parent.update()}).catch(P=>{k(P),$.value=P}),()=>{if(C.value&&u)return U7(u,_);if($.value&&o)return b(o,{error:$.value});if(n&&!E.value)return b(n)}}})}function U7(e,t){const{ref:n,props:o,children:i,ce:r}=t.vnode,s=b(e,o,i);return s.ref=n,s.ce=r,delete t.vnode.ce,s}const l3=e=>e.type.__isKeepAlive,W8e={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=pr(),o=n.ctx;if(!o.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const i=new Map,r=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:d,um:u,o:{createElement:f}}}=o,p=f("div");o.activate=(E,P,I,O,L)=>{const S=E.component;d(E,P,I,0,a),l(S.vnode,E,P,I,S,a,O,E.slotScopeIds,L),Os(()=>{S.isDeactivated=!1,S.a&&h_(S.a);const j=E.props&&E.props.onVnodeMounted;j&&_l(j,S.parent,E)},a)},o.deactivate=E=>{const P=E.component;Y4(P.m),Y4(P.a),d(E,p,null,1,a),Os(()=>{P.da&&h_(P.da);const I=E.props&&E.props.onVnodeUnmounted;I&&_l(I,P.parent,E),P.isDeactivated=!0},a)};function v(E){B7(E),u(E,n,a,!0)}function _(E){i.forEach((P,I)=>{const O=FE(P.type);O&&!E(O)&&k(I)})}function k(E){const P=i.get(E);P&&(!s||!Nd(P,s))?v(P):s&&B7(s),i.delete(E),r.delete(E)}Co(()=>[e.include,e.exclude],([E,P])=>{E&&_(I=>s0(E,I)),P&&_(I=>!s0(P,I))},{flush:"post",deep:!0});let C=null;const $=()=>{C!=null&&(W4(n.subTree.type)?Os(()=>{i.set(C,hw(n.subTree))},n.subTree.suspense):i.set(C,hw(n.subTree)))};return Ha($),ky($),cg(()=>{i.forEach(E=>{const{subTree:P,suspense:I}=n,O=hw(P);if(E.type===O.type&&E.key===O.key){B7(O);const L=O.component.da;L&&Os(L,I);return}v(E)})}),()=>{if(C=null,!t.default)return s=null;const E=t.default(),P=E[0];if(E.length>1)return s=null,E;if(!ih(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return s=null,P;let I=hw(P);if(I.type===zr)return s=null,I;const O=I.type,L=FE(zm(I)?I.type.__asyncResolved||{}:O),{include:S,exclude:j,max:M}=e;if(S&&(!L||!s0(S,L))||j&&L&&s0(j,L))return I.shapeFlag&=-257,s=I,P;const q=I.key==null?O:I.key,B=i.get(q);return I.el&&(I=eu(I),P.shapeFlag&128&&(P.ssContent=I)),C=q,B?(I.el=B.el,I.component=B.component,I.transition&&oh(I,I.transition),I.shapeFlag|=512,r.delete(q),r.add(q)):(r.add(q),M&&r.size>parseInt(M,10)&&k(r.values().next().value)),I.shapeFlag|=256,s=I,W4(P.type)?P:I}}},wK=W8e;function s0(e,t){return $n(e)?e.some(n=>s0(n,t)):uo(e)?e.split(",").includes(t):Mwe(e)?(e.lastIndex=0,e.test(t)):!1}function vD(e,t){$K(e,"a",t)}function _D(e,t){$K(e,"da",t)}function $K(e,t,n=ms){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(n9(t,o,n),n){let i=n.parent;for(;i&&i.parent;)l3(i.parent.vnode)&&G8e(o,t,n,i),i=i.parent}}function G8e(e,t,n,o){const i=n9(t,e,o,!0);cu(()=>{nD(o[t],i)},n)}function B7(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function hw(e){return e.shapeFlag&128?e.ssContent:e}function n9(e,t,n=ms,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{cp();const a=B1(n),l=cc(t,n,e,s);return a(),dp(),l});return o?i.unshift(r):i.push(r),r}}const Af=e=>(t,n=ms)=>{(!O_||e==="sp")&&n9(e,(...o)=>t(...o),n)},by=Af("bm"),Ha=Af("m"),yD=Af("bu"),ky=Af("u"),cg=Af("bum"),cu=Af("um"),bD=Af("sp"),kD=Af("rtg"),wD=Af("rtc");function $D(e,t=ms){n9("ec",e,t)}const CD="components",Z8e="directives";function y(e,t){return SD(CD,e,!0,t)||e}const CK=Symbol.for("v-ndc");function Dl(e){return uo(e)?SD(CD,e,!1)||e:e||CK}function an(e){return SD(Z8e,e)}function SD(e,t,n=!0,o=!1){const i=ys||ms;if(i){const r=i.type;if(e===CD){const a=FE(r,!1);if(a&&(a===t||a===Zi(t)||a===lp(Zi(t))))return r}const s=gj(i[e]||r[e],t)||gj(i.appContext[e],t);return!s&&o?r:s}}function gj(e,t){return e&&(e[t]||e[Zi(t)]||e[lp(Zi(t))])}function Me(e,t,n,o){let i;const r=n&&n[o],s=$n(e);if(s||uo(e)){const a=s&&qu(e);let l=!1;a&&(l=!Al(e),e=q$(e)),i=new Array(e.length);for(let d=0,u=e.length;d<u;d++)i[d]=t(l?da(e[d]):e[d],d,void 0,r&&r[d])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,r&&r[a])}else if(Li(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,r&&r[l]));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,d=a.length;l<d;l++){const u=a[l];i[l]=t(e[u],u,l,r&&r[l])}}else i=[];return n&&(n[o]=i),i}function os(e,t){for(let n=0;n<t.length;n++){const o=t[n];if($n(o))for(let i=0;i<o.length;i++)e[o[i].name]=o[i].fn;else o&&(e[o.name]=o.key?(...i)=>{const r=o.fn(...i);return r&&(r.key=o.key),r}:o.fn)}return e}function Pt(e,t,n={},o,i){if(ys.ce||ys.parent&&zm(ys.parent)&&ys.parent.ce)return t!=="default"&&(n.name=t),h(),W(pe,null,[b("slot",n,o&&o())],64);let r=e[t];r&&r._c&&(r._d=!1),h();const s=r&&TD(r(n)),a=n.key||s&&s.key,l=W(pe,{key:(a&&!xl(a)?a:`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function TD(e){return e.some(t=>ih(t)?!(t.type===zr||t.type===pe&&!TD(t.children)):!0)?e:null}function Yu(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:$1(o)]=e[o];return n}const PE=e=>e?hJ(e)?d3(e):PE(e.parent):null,I0=ei(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>PE(e.parent),$root:e=>PE(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ED(e),$forceUpdate:e=>e.f||(e.f=()=>{fD(e.update)}),$nextTick:e=>e.n||(e.n=fa.bind(e.proxy)),$watch:e=>u4e.bind(e)}),H7=(e,t)=>e!==Jo&&!e.__isScriptSetup&&Ci(e,t),AE={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:a,appContext:l}=e;let d;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(H7(o,t))return s[t]=1,o[t];if(i!==Jo&&Ci(i,t))return s[t]=2,i[t];if((d=e.propsOptions[0])&&Ci(d,t))return s[t]=3,r[t];if(n!==Jo&&Ci(n,t))return s[t]=4,n[t];DE&&(s[t]=0)}}const u=I0[t];let f,p;if(u)return t==="$attrs"&&ca(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Jo&&Ci(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,Ci(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return H7(i,t)?(i[t]=n,!0):o!==Jo&&Ci(o,t)?(o[t]=n,!0):Ci(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},s){let a;return!!n[s]||e!==Jo&&Ci(e,s)||H7(t,s)||(a=r[0])&&Ci(a,s)||Ci(o,s)||Ci(I0,s)||Ci(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ci(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},K8e=ei({},AE,{get(e,t){if(t!==Symbol.unscopables)return AE.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Bwe(t)}});function SK(){return null}function TK(){return null}function EK(e){}function IK(e){}function PK(){return null}function AK(){}function DK(e,t){return null}function xK(){return LK().slots}function OK(){return LK().attrs}function LK(){const e=pr();return e.setupContext||(e.setupContext=gJ(e))}function p2(e){return $n(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function MK(e,t){const n=p2(e);for(const o in t){if(o.startsWith("__skip"))continue;let i=n[o];i?$n(i)||Wn(i)?i=n[o]={type:i,default:t[o]}:i.default=t[o]:i===null&&(i=n[o]={default:t[o]}),i&&t[`__skip_${o}`]&&(i.skipFactory=!0)}return n}function NK(e,t){return!e||!t?e||t:$n(e)&&$n(t)?e.concat(t):ei({},p2(e),p2(t))}function RK(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function jK(e){const t=pr();let n=e();return NE(),oD(n)&&(n=n.catch(o=>{throw B1(t),o})),[n,()=>B1(t)]}let DE=!0;function J8e(e){const t=ED(e),n=e.proxy,o=e.ctx;DE=!1,t.beforeCreate&&vj(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:a,provide:l,inject:d,created:u,beforeMount:f,mounted:p,beforeUpdate:v,updated:_,activated:k,deactivated:C,beforeDestroy:$,beforeUnmount:E,destroyed:P,unmounted:I,render:O,renderTracked:L,renderTriggered:S,errorCaptured:j,serverPrefetch:M,expose:q,inheritAttrs:B,components:V,directives:G,filters:Q}=t;if(d&&X8e(d,o,null),s)for(const Z in s){const se=s[Z];Wn(se)&&(o[Z]=se.bind(n))}if(i){const Z=i.call(n,n);Li(Z)&&(e.data=hc(Z))}if(DE=!0,r)for(const Z in r){const se=r[Z],ce=Wn(se)?se.bind(n,n):Wn(se.get)?se.get.bind(n,n):Ks,te=!Wn(se)&&Wn(se.set)?se.set.bind(n):Ks,ee=dt({get:ce,set:te});Object.defineProperty(o,Z,{enumerable:!0,configurable:!0,get:()=>ee.value,set:ae=>ee.value=ae})}if(a)for(const Z in a)FK(a[Z],o,n,Z);if(l){const Z=Wn(l)?l.call(n):l;Reflect.ownKeys(Z).forEach(se=>{ic(se,Z[se])})}u&&vj(u,e,"c");function Y(Z,se){$n(se)?se.forEach(ce=>Z(ce.bind(n))):se&&Z(se.bind(n))}if(Y(by,f),Y(Ha,p),Y(yD,v),Y(ky,_),Y(vD,k),Y(_D,C),Y($D,j),Y(wD,L),Y(kD,S),Y(cg,E),Y(cu,I),Y(bD,M),$n(q))if(q.length){const Z=e.exposed||(e.exposed={});q.forEach(se=>{Object.defineProperty(Z,se,{get:()=>n[se],set:ce=>n[se]=ce})})}else e.exposed||(e.exposed={});O&&e.render===Ks&&(e.render=O),B!=null&&(e.inheritAttrs=B),V&&(e.components=V),G&&(e.directives=G),M&&gD(e)}function X8e(e,t,n=Ks){$n(e)&&(e=xE(e));for(const o in e){const i=e[o];let r;Li(i)?"default"in i?r=ts(i.from||o,i.default,!0):r=ts(i.from||o):r=ts(i),Oi(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function vj(e,t,n){cc($n(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function FK(e,t,n,o){let i=o.includes(".")?eJ(n,o):()=>n[o];if(uo(e)){const r=t[e];Wn(r)&&Co(i,r)}else if(Wn(e))Co(i,e.bind(n));else if(Li(e))if($n(e))e.forEach(r=>FK(r,t,n,o));else{const r=Wn(e.handler)?e.handler.bind(n):t[e.handler];Wn(r)&&Co(i,r,e)}}function ED(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!n&&!o?l=t:(l={},i.length&&i.forEach(d=>q4(l,d,s,!0)),q4(l,t,s)),Li(t)&&r.set(t,l),l}function q4(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&q4(e,r,n,!0),i&&i.forEach(s=>q4(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const a=Q8e[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Q8e={data:_j,props:yj,emits:yj,methods:a0,computed:a0,beforeCreate:Ea,created:Ea,beforeMount:Ea,mounted:Ea,beforeUpdate:Ea,updated:Ea,beforeDestroy:Ea,beforeUnmount:Ea,destroyed:Ea,unmounted:Ea,activated:Ea,deactivated:Ea,errorCaptured:Ea,serverPrefetch:Ea,components:a0,directives:a0,watch:t4e,provide:_j,inject:e4e};function _j(e,t){return t?e?function(){return ei(Wn(e)?e.call(this,this):e,Wn(t)?t.call(this,this):t)}:t:e}function e4e(e,t){return a0(xE(e),xE(t))}function xE(e){if($n(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ea(e,t){return e?[...new Set([].concat(e,t))]:t}function a0(e,t){return e?ei(Object.create(null),e,t):t}function yj(e,t){return e?$n(e)&&$n(t)?[...new Set([...e,...t])]:ei(Object.create(null),p2(e),p2(t??{})):t}function t4e(e,t){if(!e)return t;if(!t)return e;const n=ei(Object.create(null),e);for(const o in t)n[o]=Ea(e[o],t[o]);return n}function zK(){return{app:null,config:{isNativeTag:r0,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let n4e=0;function o4e(e,t){return function(o,i=null){Wn(o)||(o=ei({},o)),i!=null&&!Li(i)&&(i=null);const r=zK(),s=new WeakSet,a=[];let l=!1;const d=r.app={_uid:n4e++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:zD,get config(){return r.config},set config(u){},use(u,...f){return s.has(u)||(u&&Wn(u.install)?(s.add(u),u.install(d,...f)):Wn(u)&&(s.add(u),u(d,...f))),d},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),d},component(u,f){return f?(r.components[u]=f,d):r.components[u]},directive(u,f){return f?(r.directives[u]=f,d):r.directives[u]},mount(u,f,p){if(!l){const v=d._ceVNode||b(o,i);return v.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),f&&t?t(v,u):e(v,u,p),l=!0,d._container=u,u.__vue_app__=d,d3(v.component)}},onUnmount(u){a.push(u)},unmount(){l&&(cc(a,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(u,f){return r.provides[u]=f,d},runWithContext(u){const f=S1;S1=d;try{return u()}finally{S1=f}}};return d}}let S1=null;function ic(e,t){if(ms){let n=ms.provides;const o=ms.parent&&ms.parent.provides;o===n&&(n=ms.provides=Object.create(o)),n[e]=t}}function ts(e,t,n=!1){const o=ms||ys;if(o||S1){const i=S1?S1._context.provides:o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Wn(t)?t.call(o&&o.proxy):t}}function UK(){return!!(ms||ys||S1)}const BK={},HK=()=>Object.create(BK),VK=e=>Object.getPrototypeOf(e)===BK;function i4e(e,t,n,o=!1){const i={},r=HK();e.propsDefaults=Object.create(null),qK(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:W$(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function r4e(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,a=si(i),[l]=e.propsOptions;let d=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(i9(e.emitsOptions,p))continue;const v=t[p];if(l)if(Ci(r,p))v!==r[p]&&(r[p]=v,d=!0);else{const _=Zi(p);i[_]=OE(l,a,_,v,e,!1)}else v!==r[p]&&(r[p]=v,d=!0)}}}else{qK(e,t,i,r)&&(d=!0);let u;for(const f in a)(!t||!Ci(t,f)&&((u=El(f))===f||!Ci(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=OE(l,a,f,void 0,e,!0)):delete i[f]);if(r!==a)for(const f in r)(!t||!Ci(t,f))&&(delete r[f],d=!0)}d&&Kh(e.attrs,"set","")}function qK(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(Fm(l))continue;const d=t[l];let u;i&&Ci(i,u=Zi(l))?!r||!r.includes(u)?n[u]=d:(a||(a={}))[u]=d:i9(e.emitsOptions,l)||(!(l in o)||d!==o[l])&&(o[l]=d,s=!0)}if(r){const l=si(n),d=a||Jo;for(let u=0;u<r.length;u++){const f=r[u];n[f]=OE(i,l,f,d[f],e,!Ci(d,f))}}return s}function OE(e,t,n,o,i,r){const s=e[n];if(s!=null){const a=Ci(s,"default");if(a&&o===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&Wn(l)){const{propsDefaults:d}=i;if(n in d)o=d[n];else{const u=B1(i);o=d[n]=l.call(null,t),u()}}else o=l;i.ce&&i.ce._setProp(n,o)}s[0]&&(r&&!a?o=!1:s[1]&&(o===""||o===El(n))&&(o=!0))}return o}const s4e=new WeakMap;function YK(e,t,n=!1){const o=n?s4e:t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},a=[];let l=!1;if(!Wn(e)){const u=f=>{l=!0;const[p,v]=YK(f,t,!0);ei(s,p),v&&a.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!l)return Li(e)&&o.set(e,d_),d_;if($n(r))for(let u=0;u<r.length;u++){const f=Zi(r[u]);bj(f)&&(s[f]=Jo)}else if(r)for(const u in r){const f=Zi(u);if(bj(f)){const p=r[u],v=s[f]=$n(p)||Wn(p)?{type:p}:ei({},p),_=v.type;let k=!1,C=!0;if($n(_))for(let $=0;$<_.length;++$){const E=_[$],P=Wn(E)&&E.name;if(P==="Boolean"){k=!0;break}else P==="String"&&(C=!1)}else k=Wn(_)&&_.name==="Boolean";v[0]=k,v[1]=C,(k||Ci(v,"default"))&&a.push(f)}}const d=[s,a];return Li(e)&&o.set(e,d),d}function bj(e){return e[0]!=="$"&&!Fm(e)}const WK=e=>e[0]==="_"||e==="$stable",ID=e=>$n(e)?e.map(Cl):[Cl(e)],a4e=(e,t,n)=>{if(t._n)return t;const o=F((...i)=>ID(t(...i)),n);return o._c=!1,o},GK=(e,t,n)=>{const o=e._ctx;for(const i in e){if(WK(i))continue;const r=e[i];if(Wn(r))t[i]=a4e(i,r,o);else if(r!=null){const s=ID(r);t[i]=()=>s}}},ZK=(e,t)=>{const n=ID(t);e.slots.default=()=>n},KK=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},l4e=(e,t,n)=>{const o=e.slots=HK();if(e.vnode.shapeFlag&32){const i=t._;i?(KK(o,t,n),n&&CZ(o,"_",i,!0)):GK(t,o)}else t&&ZK(e,t)},c4e=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=Jo;if(o.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:KK(i,t,n):(r=!t.$stable,GK(t,i)),s=t}else t&&(ZK(e,t),s={default:1});if(r)for(const a in i)!WK(a)&&s[a]==null&&delete i[a]},Os=sJ;function PD(e){return JK(e)}function AD(e){return JK(e,U8e)}function JK(e,t){const n=z$();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:a,createComment:l,setText:d,setElementText:u,parentNode:f,nextSibling:p,setScopeId:v=Ks,insertStaticContent:_}=e,k=(we,ve,qe,$t=null,ut=null,Ve=null,tt=void 0,ge=null,ye=!!ve.dynamicChildren)=>{if(we===ve)return;we&&!Nd(we,ve)&&($t=fe(we),ae(we,ut,Ve,!0),we=null),ve.patchFlag===-2&&(ye=!1,ve.dynamicChildren=null);const{type:Te,ref:gt,shapeFlag:yt}=ve;switch(Te){case Wu:C(we,ve,qe,$t);break;case zr:$(we,ve,qe,$t);break;case Um:we==null&&E(ve,qe,$t,tt);break;case pe:V(we,ve,qe,$t,ut,Ve,tt,ge,ye);break;default:yt&1?O(we,ve,qe,$t,ut,Ve,tt,ge,ye):yt&6?G(we,ve,qe,$t,ut,Ve,tt,ge,ye):(yt&64||yt&128)&&Te.process(we,ve,qe,$t,ut,Ve,tt,ge,ye,Ye)}gt!=null&&ut&&V4(gt,we&&we.ref,Ve,ve||we,!ve)},C=(we,ve,qe,$t)=>{if(we==null)o(ve.el=a(ve.children),qe,$t);else{const ut=ve.el=we.el;ve.children!==we.children&&d(ut,ve.children)}},$=(we,ve,qe,$t)=>{we==null?o(ve.el=l(ve.children||""),qe,$t):ve.el=we.el},E=(we,ve,qe,$t)=>{[we.el,we.anchor]=_(we.children,ve,qe,$t,we.el,we.anchor)},P=({el:we,anchor:ve},qe,$t)=>{let ut;for(;we&&we!==ve;)ut=p(we),o(we,qe,$t),we=ut;o(ve,qe,$t)},I=({el:we,anchor:ve})=>{let qe;for(;we&&we!==ve;)qe=p(we),i(we),we=qe;i(ve)},O=(we,ve,qe,$t,ut,Ve,tt,ge,ye)=>{ve.type==="svg"?tt="svg":ve.type==="math"&&(tt="mathml"),we==null?L(ve,qe,$t,ut,Ve,tt,ge,ye):M(we,ve,ut,Ve,tt,ge,ye)},L=(we,ve,qe,$t,ut,Ve,tt,ge)=>{let ye,Te;const{props:gt,shapeFlag:yt,transition:Xe,dirs:Ze}=we;if(ye=we.el=s(we.type,Ve,gt&>.is,gt),yt&8?u(ye,we.children):yt&16&&j(we.children,ye,null,$t,ut,V7(we,Ve),tt,ge),Ze&&Du(we,null,$t,"created"),S(ye,we,we.scopeId,tt,$t),gt){for(const Ut in gt)Ut!=="value"&&!Fm(Ut)&&r(ye,Ut,null,gt[Ut],Ve,$t);"value"in gt&&r(ye,"value",null,gt.value,Ve),(Te=gt.onVnodeBeforeMount)&&_l(Te,$t,we)}Ze&&Du(we,null,$t,"beforeMount");const vt=XK(ut,Xe);vt&&Xe.beforeEnter(ye),o(ye,ve,qe),((Te=gt&>.onVnodeMounted)||vt||Ze)&&Os(()=>{Te&&_l(Te,$t,we),vt&&Xe.enter(ye),Ze&&Du(we,null,$t,"mounted")},ut)},S=(we,ve,qe,$t,ut)=>{if(qe&&v(we,qe),$t)for(let Ve=0;Ve<$t.length;Ve++)v(we,$t[Ve]);if(ut){let Ve=ut.subTree;if(ve===Ve||W4(Ve.type)&&(Ve.ssContent===ve||Ve.ssFallback===ve)){const tt=ut.vnode;S(we,tt,tt.scopeId,tt.slotScopeIds,ut.parent)}}},j=(we,ve,qe,$t,ut,Ve,tt,ge,ye=0)=>{for(let Te=ye;Te<we.length;Te++){const gt=we[Te]=ge?_m(we[Te]):Cl(we[Te]);k(null,gt,ve,qe,$t,ut,Ve,tt,ge)}},M=(we,ve,qe,$t,ut,Ve,tt)=>{const ge=ve.el=we.el;let{patchFlag:ye,dynamicChildren:Te,dirs:gt}=ve;ye|=we.patchFlag&16;const yt=we.props||Jo,Xe=ve.props||Jo;let Ze;if(qe&&zp(qe,!1),(Ze=Xe.onVnodeBeforeUpdate)&&_l(Ze,qe,ve,we),gt&&Du(ve,we,qe,"beforeUpdate"),qe&&zp(qe,!0),(yt.innerHTML&&Xe.innerHTML==null||yt.textContent&&Xe.textContent==null)&&u(ge,""),Te?q(we.dynamicChildren,Te,ge,qe,$t,V7(ve,ut),Ve):tt||se(we,ve,ge,null,qe,$t,V7(ve,ut),Ve,!1),ye>0){if(ye&16)B(ge,yt,Xe,qe,ut);else if(ye&2&&yt.class!==Xe.class&&r(ge,"class",null,Xe.class,ut),ye&4&&r(ge,"style",yt.style,Xe.style,ut),ye&8){const vt=ve.dynamicProps;for(let Ut=0;Ut<vt.length;Ut++){const Je=vt[Ut],We=yt[Je],pt=Xe[Je];(pt!==We||Je==="value")&&r(ge,Je,We,pt,ut,qe)}}ye&1&&we.children!==ve.children&&u(ge,ve.children)}else!tt&&Te==null&&B(ge,yt,Xe,qe,ut);((Ze=Xe.onVnodeUpdated)||gt)&&Os(()=>{Ze&&_l(Ze,qe,ve,we),gt&&Du(ve,we,qe,"updated")},$t)},q=(we,ve,qe,$t,ut,Ve,tt)=>{for(let ge=0;ge<ve.length;ge++){const ye=we[ge],Te=ve[ge],gt=ye.el&&(ye.type===pe||!Nd(ye,Te)||ye.shapeFlag&70)?f(ye.el):qe;k(ye,Te,gt,null,$t,ut,Ve,tt,!0)}},B=(we,ve,qe,$t,ut)=>{if(ve!==qe){if(ve!==Jo)for(const Ve in ve)!Fm(Ve)&&!(Ve in qe)&&r(we,Ve,ve[Ve],null,ut,$t);for(const Ve in qe){if(Fm(Ve))continue;const tt=qe[Ve],ge=ve[Ve];tt!==ge&&Ve!=="value"&&r(we,Ve,ge,tt,ut,$t)}"value"in qe&&r(we,"value",ve.value,qe.value,ut)}},V=(we,ve,qe,$t,ut,Ve,tt,ge,ye)=>{const Te=ve.el=we?we.el:a(""),gt=ve.anchor=we?we.anchor:a("");let{patchFlag:yt,dynamicChildren:Xe,slotScopeIds:Ze}=ve;Ze&&(ge=ge?ge.concat(Ze):Ze),we==null?(o(Te,qe,$t),o(gt,qe,$t),j(ve.children||[],qe,gt,ut,Ve,tt,ge,ye)):yt>0&&yt&64&&Xe&&we.dynamicChildren?(q(we.dynamicChildren,Xe,qe,ut,Ve,tt,ge),(ve.key!=null||ut&&ve===ut.subTree)&&DD(we,ve,!0)):se(we,ve,qe,gt,ut,Ve,tt,ge,ye)},G=(we,ve,qe,$t,ut,Ve,tt,ge,ye)=>{ve.slotScopeIds=ge,we==null?ve.shapeFlag&512?ut.ctx.activate(ve,qe,$t,tt,ye):Q(ve,qe,$t,ut,Ve,tt,ye):X(we,ve,ye)},Q=(we,ve,qe,$t,ut,Ve,tt)=>{const ge=we.component=uJ(we,$t,ut);if(l3(we)&&(ge.ctx.renderer=Ye),fJ(ge,!1,tt),ge.asyncDep){if(ut&&ut.registerDep(ge,Y,tt),!we.el){const ye=ge.subTree=b(zr);$(null,ye,ve,qe)}}else Y(ge,we,ve,qe,ut,Ve,tt)},X=(we,ve,qe)=>{const $t=ve.component=we.component;if(g4e(we,ve,qe))if($t.asyncDep&&!$t.asyncResolved){Z($t,ve,qe);return}else $t.next=ve,$t.update();else ve.el=we.el,$t.vnode=ve},Y=(we,ve,qe,$t,ut,Ve,tt)=>{const ge=()=>{if(we.isMounted){let{next:yt,bu:Xe,u:Ze,parent:vt,vnode:Ut}=we;{const Vt=QK(we);if(Vt){yt&&(yt.el=Ut.el,Z(we,yt,tt)),Vt.asyncDep.then(()=>{we.isUnmounted||ge()});return}}let Je=yt,We;zp(we,!1),yt?(yt.el=Ut.el,Z(we,yt,tt)):yt=Ut,Xe&&h_(Xe),(We=yt.props&&yt.props.onVnodeBeforeUpdate)&&_l(We,vt,yt,Ut),zp(we,!0);const pt=R8(we),At=we.subTree;we.subTree=pt,k(At,pt,f(At.el),fe(At),we,ut,Ve),yt.el=pt.el,Je===null&&ND(we,pt.el),Ze&&Os(Ze,ut),(We=yt.props&&yt.props.onVnodeUpdated)&&Os(()=>_l(We,vt,yt,Ut),ut)}else{let yt;const{el:Xe,props:Ze}=ve,{bm:vt,m:Ut,parent:Je,root:We,type:pt}=we,At=zm(ve);if(zp(we,!1),vt&&h_(vt),!At&&(yt=Ze&&Ze.onVnodeBeforeMount)&&_l(yt,Je,ve),zp(we,!0),Xe&&xt){const Vt=()=>{we.subTree=R8(we),xt(Xe,we.subTree,we,ut,null)};At&&pt.__asyncHydrate?pt.__asyncHydrate(Xe,we,Vt):Vt()}else{We.ce&&We.ce._injectChildStyle(pt);const Vt=we.subTree=R8(we);k(null,Vt,qe,$t,we,ut,Ve),ve.el=Vt.el}if(Ut&&Os(Ut,ut),!At&&(yt=Ze&&Ze.onVnodeMounted)){const Vt=ve;Os(()=>_l(yt,Je,Vt),ut)}(ve.shapeFlag&256||Je&&zm(Je.vnode)&&Je.vnode.shapeFlag&256)&&we.a&&Os(we.a,ut),we.isMounted=!0,ve=qe=$t=null}};we.scope.on();const ye=we.effect=new x_(ge);we.scope.off();const Te=we.update=ye.run.bind(ye),gt=we.job=ye.runIfDirty.bind(ye);gt.i=we,gt.id=we.uid,ye.scheduler=()=>fD(gt),zp(we,!0),Te()},Z=(we,ve,qe)=>{ve.component=we;const $t=we.vnode.props;we.vnode=ve,we.next=null,r4e(we,ve.props,$t,qe),c4e(we,ve.children,qe),cp(),dj(we),dp()},se=(we,ve,qe,$t,ut,Ve,tt,ge,ye=!1)=>{const Te=we&&we.children,gt=we?we.shapeFlag:0,yt=ve.children,{patchFlag:Xe,shapeFlag:Ze}=ve;if(Xe>0){if(Xe&128){te(Te,yt,qe,$t,ut,Ve,tt,ge,ye);return}else if(Xe&256){ce(Te,yt,qe,$t,ut,Ve,tt,ge,ye);return}}Ze&8?(gt&16&&me(Te,ut,Ve),yt!==Te&&u(qe,yt)):gt&16?Ze&16?te(Te,yt,qe,$t,ut,Ve,tt,ge,ye):me(Te,ut,Ve,!0):(gt&8&&u(qe,""),Ze&16&&j(yt,qe,$t,ut,Ve,tt,ge,ye))},ce=(we,ve,qe,$t,ut,Ve,tt,ge,ye)=>{we=we||d_,ve=ve||d_;const Te=we.length,gt=ve.length,yt=Math.min(Te,gt);let Xe;for(Xe=0;Xe<yt;Xe++){const Ze=ve[Xe]=ye?_m(ve[Xe]):Cl(ve[Xe]);k(we[Xe],Ze,qe,null,ut,Ve,tt,ge,ye)}Te>gt?me(we,ut,Ve,!0,!1,yt):j(ve,qe,$t,ut,Ve,tt,ge,ye,yt)},te=(we,ve,qe,$t,ut,Ve,tt,ge,ye)=>{let Te=0;const gt=ve.length;let yt=we.length-1,Xe=gt-1;for(;Te<=yt&&Te<=Xe;){const Ze=we[Te],vt=ve[Te]=ye?_m(ve[Te]):Cl(ve[Te]);if(Nd(Ze,vt))k(Ze,vt,qe,null,ut,Ve,tt,ge,ye);else break;Te++}for(;Te<=yt&&Te<=Xe;){const Ze=we[yt],vt=ve[Xe]=ye?_m(ve[Xe]):Cl(ve[Xe]);if(Nd(Ze,vt))k(Ze,vt,qe,null,ut,Ve,tt,ge,ye);else break;yt--,Xe--}if(Te>yt){if(Te<=Xe){const Ze=Xe+1,vt=Ze<gt?ve[Ze].el:$t;for(;Te<=Xe;)k(null,ve[Te]=ye?_m(ve[Te]):Cl(ve[Te]),qe,vt,ut,Ve,tt,ge,ye),Te++}}else if(Te>Xe)for(;Te<=yt;)ae(we[Te],ut,Ve,!0),Te++;else{const Ze=Te,vt=Te,Ut=new Map;for(Te=vt;Te<=Xe;Te++){const bn=ve[Te]=ye?_m(ve[Te]):Cl(ve[Te]);bn.key!=null&&Ut.set(bn.key,Te)}let Je,We=0;const pt=Xe-vt+1;let At=!1,Vt=0;const cn=new Array(pt);for(Te=0;Te<pt;Te++)cn[Te]=0;for(Te=Ze;Te<=yt;Te++){const bn=we[Te];if(We>=pt){ae(bn,ut,Ve,!0);continue}let kt;if(bn.key!=null)kt=Ut.get(bn.key);else for(Je=vt;Je<=Xe;Je++)if(cn[Je-vt]===0&&Nd(bn,ve[Je])){kt=Je;break}kt===void 0?ae(bn,ut,Ve,!0):(cn[kt-vt]=Te+1,kt>=Vt?Vt=kt:At=!0,k(bn,ve[kt],qe,null,ut,Ve,tt,ge,ye),We++)}const fn=At?d4e(cn):d_;for(Je=fn.length-1,Te=pt-1;Te>=0;Te--){const bn=vt+Te,kt=ve[bn],Ne=bn+1<gt?ve[bn+1].el:$t;cn[Te]===0?k(null,kt,qe,Ne,ut,Ve,tt,ge,ye):At&&(Je<0||Te!==fn[Je]?ee(kt,qe,Ne,2):Je--)}}},ee=(we,ve,qe,$t,ut=null)=>{const{el:Ve,type:tt,transition:ge,children:ye,shapeFlag:Te}=we;if(Te&6){ee(we.component.subTree,ve,qe,$t);return}if(Te&128){we.suspense.move(ve,qe,$t);return}if(Te&64){tt.move(we,ve,qe,Ye);return}if(tt===pe){o(Ve,ve,qe);for(let yt=0;yt<ye.length;yt++)ee(ye[yt],ve,qe,$t);o(we.anchor,ve,qe);return}if(tt===Um){P(we,ve,qe);return}if($t!==2&&Te&1&&ge)if($t===0)ge.beforeEnter(Ve),o(Ve,ve,qe),Os(()=>ge.enter(Ve),ut);else{const{leave:yt,delayLeave:Xe,afterLeave:Ze}=ge,vt=()=>o(Ve,ve,qe),Ut=()=>{yt(Ve,()=>{vt(),Ze&&Ze()})};Xe?Xe(Ve,vt,Ut):Ut()}else o(Ve,ve,qe)},ae=(we,ve,qe,$t=!1,ut=!1)=>{const{type:Ve,props:tt,ref:ge,children:ye,dynamicChildren:Te,shapeFlag:gt,patchFlag:yt,dirs:Xe,cacheIndex:Ze}=we;if(yt===-2&&(ut=!1),ge!=null&&V4(ge,null,qe,we,!0),Ze!=null&&(ve.renderCache[Ze]=void 0),gt&256){ve.ctx.deactivate(we);return}const vt=gt&1&&Xe,Ut=!zm(we);let Je;if(Ut&&(Je=tt&&tt.onVnodeBeforeUnmount)&&_l(Je,ve,we),gt&6)be(we.component,qe,$t);else{if(gt&128){we.suspense.unmount(qe,$t);return}vt&&Du(we,null,ve,"beforeUnmount"),gt&64?we.type.remove(we,ve,qe,Ye,$t):Te&&!Te.hasOnce&&(Ve!==pe||yt>0&&yt&64)?me(Te,ve,qe,!1,!0):(Ve===pe&&yt&384||!ut&>&16)&&me(ye,ve,qe),$t&&de(we)}(Ut&&(Je=tt&&tt.onVnodeUnmounted)||vt)&&Os(()=>{Je&&_l(Je,ve,we),vt&&Du(we,null,ve,"unmounted")},qe)},de=we=>{const{type:ve,el:qe,anchor:$t,transition:ut}=we;if(ve===pe){$e(qe,$t);return}if(ve===Um){I(we);return}const Ve=()=>{i(qe),ut&&!ut.persisted&&ut.afterLeave&&ut.afterLeave()};if(we.shapeFlag&1&&ut&&!ut.persisted){const{leave:tt,delayLeave:ge}=ut,ye=()=>tt(qe,Ve);ge?ge(we.el,Ve,ye):ye()}else Ve()},$e=(we,ve)=>{let qe;for(;we!==ve;)qe=p(we),i(we),we=qe;i(ve)},be=(we,ve,qe)=>{const{bum:$t,scope:ut,job:Ve,subTree:tt,um:ge,m:ye,a:Te}=we;Y4(ye),Y4(Te),$t&&h_($t),ut.stop(),Ve&&(Ve.flags|=8,ae(tt,we,ve,qe)),ge&&Os(ge,ve),Os(()=>{we.isUnmounted=!0},ve),ve&&ve.pendingBranch&&!ve.isUnmounted&&we.asyncDep&&!we.asyncResolved&&we.suspenseId===ve.pendingId&&(ve.deps--,ve.deps===0&&ve.resolve())},me=(we,ve,qe,$t=!1,ut=!1,Ve=0)=>{for(let tt=Ve;tt<we.length;tt++)ae(we[tt],ve,qe,$t,ut)},fe=we=>{if(we.shapeFlag&6)return fe(we.component.subTree);if(we.shapeFlag&128)return we.suspense.next();const ve=p(we.anchor||we.el),qe=ve&&ve[lK];return qe?p(qe):ve};let Ae=!1;const je=(we,ve,qe)=>{we==null?ve._vnode&&ae(ve._vnode,null,null,!0):k(ve._vnode||null,we,ve,null,null,null,qe),ve._vnode=we,Ae||(Ae=!0,dj(),H4(),Ae=!1)},Ye={p:k,um:ae,m:ee,r:de,mt:Q,mc:j,pc:se,pbc:q,n:fe,o:e};let _t,xt;return t&&([_t,xt]=t(Ye)),{render:je,hydrate:_t,createApp:o4e(je,_t)}}function V7({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function zp({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function XK(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function DD(e,t,n=!1){const o=e.children,i=t.children;if($n(o)&&$n(i))for(let r=0;r<o.length;r++){const s=o[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=_m(i[r]),a.el=s.el),!n&&a.patchFlag!==-2&&DD(s,a)),a.type===Wu&&(a.el=s.el)}}function d4e(e){const t=e.slice(),n=[0];let o,i,r,s,a;const l=e.length;for(o=0;o<l;o++){const d=e[o];if(d!==0){if(i=n[n.length-1],e[i]<d){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)a=r+s>>1,e[n[a]]<d?r=a+1:s=a;d<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function QK(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:QK(t)}function Y4(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const xD=Symbol.for("v-scx"),OD=()=>ts(xD);function o9(e,t){return c3(e,null,t)}function LD(e,t){return c3(e,null,{flush:"post"})}function MD(e,t){return c3(e,null,{flush:"sync"})}function Co(e,t,n){return c3(e,t,n)}function c3(e,t,n=Jo){const{immediate:o,deep:i,flush:r,once:s}=n,a=ei({},n),l=t&&o||!t&&r!=="post";let d;if(O_){if(r==="sync"){const v=OD();d=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=Ks,v.resume=Ks,v.pause=Ks,v}}const u=ms;a.call=(v,_,k)=>cc(v,u,_,k);let f=!1;r==="post"?a.scheduler=v=>{Os(v,u&&u.suspense)}:r!=="sync"&&(f=!0,a.scheduler=(v,_)=>{_?v():fD(v)}),a.augmentJob=v=>{t&&(v.flags|=4),f&&(v.flags|=2,u&&(v.id=u.uid,v.i=u))};const p=P8e(e,t,a);return O_&&(d?d.push(p):l&&p()),p}function u4e(e,t,n){const o=this.proxy,i=uo(e)?e.includes(".")?eJ(o,e):()=>o[e]:e.bind(o,o);let r;Wn(t)?r=t:(r=t.handler,n=t);const s=B1(this),a=c3(i,r.bind(o),n);return s(),a}function eJ(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function tJ(e,t,n=Jo){const o=pr(),i=Zi(t),r=El(t),s=nJ(e,i),a=dD((l,d)=>{let u,f=Jo,p;return MD(()=>{const v=e[i];Da(u,v)&&(u=v,d())}),{get(){return l(),n.get?n.get(u):u},set(v){const _=n.set?n.set(v):v;if(!Da(_,u)&&!(f!==Jo&&Da(v,f)))return;const k=o.vnode.props;k&&(t in k||i in k||r in k)&&(`onUpdate:${t}`in k||`onUpdate:${i}`in k||`onUpdate:${r}`in k)||(u=v,d()),o.emit(`update:${t}`,_),Da(v,_)&&Da(v,f)&&!Da(_,p)&&d(),f=v,p=_}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||Jo:a,done:!1}:{done:!0}}}},a}const nJ=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Zi(t)}Modifiers`]||e[`${El(t)}Modifiers`];function h4e(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Jo;let i=n;const r=t.startsWith("update:"),s=r&&nJ(o,t.slice(7));s&&(s.trim&&(i=n.map(u=>uo(u)?u.trim():u)),s.number&&(i=n.map(j4)));let a,l=o[a=$1(t)]||o[a=$1(Zi(t))];!l&&r&&(l=o[a=$1(El(t))]),l&&cc(l,e,6,i);const d=o[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,cc(d,e,6,i)}}function oJ(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},a=!1;if(!Wn(e)){const l=d=>{const u=oJ(d,t,!0);u&&(a=!0,ei(s,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(Li(e)&&o.set(e,null),null):($n(r)?r.forEach(l=>s[l]=null):ei(s,r),Li(e)&&o.set(e,s),s)}function i9(e,t){return!e||!sg(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ci(e,t[0].toLowerCase()+t.slice(1))||Ci(e,El(t))||Ci(e,t))}function R8(e){const{type:t,vnode:n,proxy:o,withProxy:i,propsOptions:[r],slots:s,attrs:a,emit:l,render:d,renderCache:u,props:f,data:p,setupState:v,ctx:_,inheritAttrs:k}=e,C=m2(e);let $,E;try{if(n.shapeFlag&4){const I=i||o,O=I;$=Cl(d.call(O,I,u,f,v,p,_)),E=a}else{const I=t;$=Cl(I.length>1?I(f,{attrs:a,slots:s,emit:l}):I(f,null)),E=t.props?a:m4e(a)}}catch(I){P0.length=0,up(I,e,1),$=b(zr)}let P=$;if(E&&k!==!1){const I=Object.keys(E),{shapeFlag:O}=P;I.length&&O&7&&(r&&I.some(tD)&&(E=p4e(E,r)),P=eu(P,E,!1,!0))}return n.dirs&&(P=eu(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&oh(P,n.transition),$=P,m2(C),$}function f4e(e,t=!0){let n;for(let o=0;o<e.length;o++){const i=e[o];if(ih(i)){if(i.type!==zr||i.children==="v-if"){if(n)return;n=i}}else return}return n}const m4e=e=>{let t;for(const n in e)(n==="class"||n==="style"||sg(n))&&((t||(t={}))[n]=e[n]);return t},p4e=(e,t)=>{const n={};for(const o in e)(!tD(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function g4e(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:a,patchFlag:l}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?kj(o,s,d):!!s;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(s[p]!==o[p]&&!i9(d,p))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:o===s?!1:o?s?kj(o,s,d):!0:!!s;return!1}function kj(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!i9(n,r))return!0}return!1}function ND({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const W4=e=>e.__isSuspense;let LE=0;const v4e={name:"Suspense",__isSuspense:!0,process(e,t,n,o,i,r,s,a,l,d){if(e==null)_4e(t,n,o,i,r,s,a,l,d);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}y4e(e,t,n,o,i,s,a,l,d)}},hydrate:b4e,normalize:k4e},iJ=v4e;function g2(e,t){const n=e.props&&e.props[t];Wn(n)&&n()}function _4e(e,t,n,o,i,r,s,a,l){const{p:d,o:{createElement:u}}=l,f=u("div"),p=e.suspense=rJ(e,i,o,t,f,n,r,s,a,l);d(null,p.pendingBranch=e.ssContent,f,null,o,p,r,s),p.deps>0?(g2(e,"onPending"),g2(e,"onFallback"),d(null,e.ssFallback,t,n,o,null,r,s),p_(p,e.ssFallback)):p.resolve(!1,!0)}function y4e(e,t,n,o,i,r,s,a,{p:l,um:d,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const p=t.ssContent,v=t.ssFallback,{activeBranch:_,pendingBranch:k,isInFallback:C,isHydrating:$}=f;if(k)f.pendingBranch=p,Nd(p,k)?(l(k,p,f.hiddenContainer,null,i,f,r,s,a),f.deps<=0?f.resolve():C&&($||(l(_,v,n,o,i,null,r,s,a),p_(f,v)))):(f.pendingId=LE++,$?(f.isHydrating=!1,f.activeBranch=k):d(k,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),C?(l(null,p,f.hiddenContainer,null,i,f,r,s,a),f.deps<=0?f.resolve():(l(_,v,n,o,i,null,r,s,a),p_(f,v))):_&&Nd(p,_)?(l(_,p,n,o,i,f,r,s,a),f.resolve(!0)):(l(null,p,f.hiddenContainer,null,i,f,r,s,a),f.deps<=0&&f.resolve()));else if(_&&Nd(p,_))l(_,p,n,o,i,f,r,s,a),p_(f,p);else if(g2(t,"onPending"),f.pendingBranch=p,p.shapeFlag&512?f.pendingId=p.component.suspenseId:f.pendingId=LE++,l(null,p,f.hiddenContainer,null,i,f,r,s,a),f.deps<=0)f.resolve();else{const{timeout:E,pendingId:P}=f;E>0?setTimeout(()=>{f.pendingId===P&&f.fallback(v)},E):E===0&&f.fallback(v)}}function rJ(e,t,n,o,i,r,s,a,l,d,u=!1){const{p:f,m:p,um:v,n:_,o:{parentNode:k,remove:C}}=d;let $;const E=w4e(e);E&&t&&t.pendingBranch&&($=t.pendingId,t.deps++);const P=e.props?F4(e.props.timeout):void 0,I=r,O={vnode:e,parent:t,parentComponent:n,namespace:s,container:o,hiddenContainer:i,deps:0,pendingId:LE++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(L=!1,S=!1){const{vnode:j,activeBranch:M,pendingBranch:q,pendingId:B,effects:V,parentComponent:G,container:Q}=O;let X=!1;O.isHydrating?O.isHydrating=!1:L||(X=M&&q.transition&&q.transition.mode==="out-in",X&&(M.transition.afterLeave=()=>{B===O.pendingId&&(p(q,Q,r===I?_(M):r,0),h2(V))}),M&&(k(M.el)===Q&&(r=_(M)),v(M,G,O,!0)),X||p(q,Q,r,0)),p_(O,q),O.pendingBranch=null,O.isInFallback=!1;let Y=O.parent,Z=!1;for(;Y;){if(Y.pendingBranch){Y.effects.push(...V),Z=!0;break}Y=Y.parent}!Z&&!X&&h2(V),O.effects=[],E&&t&&t.pendingBranch&&$===t.pendingId&&(t.deps--,t.deps===0&&!S&&t.resolve()),g2(j,"onResolve")},fallback(L){if(!O.pendingBranch)return;const{vnode:S,activeBranch:j,parentComponent:M,container:q,namespace:B}=O;g2(S,"onFallback");const V=_(j),G=()=>{O.isInFallback&&(f(null,L,q,V,M,null,B,a,l),p_(O,L))},Q=L.transition&&L.transition.mode==="out-in";Q&&(j.transition.afterLeave=G),O.isInFallback=!0,v(j,M,null,!0),Q||G()},move(L,S,j){O.activeBranch&&p(O.activeBranch,L,S,j),O.container=L},next(){return O.activeBranch&&_(O.activeBranch)},registerDep(L,S,j){const M=!!O.pendingBranch;M&&O.deps++;const q=L.vnode.el;L.asyncDep.catch(B=>{up(B,L,0)}).then(B=>{if(L.isUnmounted||O.isUnmounted||O.pendingId!==L.suspenseId)return;L.asyncResolved=!0;const{vnode:V}=L;RE(L,B,!1),q&&(V.el=q);const G=!q&&L.subTree.el;S(L,V,k(q||L.subTree.el),q?null:_(L.subTree),O,s,j),G&&C(G),ND(L,V.el),M&&--O.deps===0&&O.resolve()})},unmount(L,S){O.isUnmounted=!0,O.activeBranch&&v(O.activeBranch,n,L,S),O.pendingBranch&&v(O.pendingBranch,n,L,S)}};return O}function b4e(e,t,n,o,i,r,s,a,l){const d=t.suspense=rJ(t,o,n,e.parentNode,document.createElement("div"),null,i,r,s,a,!0),u=l(e,d.pendingBranch=t.ssContent,n,d,r,s);return d.deps===0&&d.resolve(!1,!0),u}function k4e(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=wj(o?n.default:n),e.ssFallback=o?wj(n.fallback):b(zr)}function wj(e){let t;if(Wn(e)){const n=U1&&e._c;n&&(e._d=!1,h()),e=e(),n&&(e._d=!0,t=ma,aJ())}return $n(e)&&(e=f4e(e)),e=Cl(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function sJ(e,t){t&&t.pendingBranch?$n(e)?t.effects.push(...e):t.effects.push(e):h2(e)}function p_(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,o&&o.subTree===n&&(o.vnode.el=i,ND(o,i))}function w4e(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const pe=Symbol.for("v-fgt"),Wu=Symbol.for("v-txt"),zr=Symbol.for("v-cmt"),Um=Symbol.for("v-stc"),P0=[];let ma=null;function h(e=!1){P0.push(ma=e?null:[])}function aJ(){P0.pop(),ma=P0[P0.length-1]||null}let U1=1;function G4(e){U1+=e,e<0&&ma&&(ma.hasOnce=!0)}function lJ(e){return e.dynamicChildren=U1>0?ma||d_:null,aJ(),U1>0&&ma&&ma.push(e),e}function g(e,t,n,o,i,r){return lJ(c(e,t,n,o,i,r,!0))}function W(e,t,n,o,i){return lJ(b(e,t,n,o,i,!0))}function ih(e){return e?e.__v_isVNode===!0:!1}function Nd(e,t){return e.type===t.type&&e.key===t.key}function cJ(e){}const dJ=({key:e})=>e??null,j8=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?uo(e)||Oi(e)||Wn(e)?{i:ys,r:e,k:t,f:!!n}:e:null);function c(e,t=null,n=null,o=0,i=null,r=e===pe?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dJ(t),ref:t&&j8(t),scopeId:J$,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ys};return a?(RD(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=uo(n)?8:16),U1>0&&!s&&ma&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&ma.push(l),l}const b=$4e;function $4e(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===CK)&&(e=zr),ih(e)){const a=eu(e,t,!0);return n&&RD(a,n),U1>0&&!r&&ma&&(a.shapeFlag&6?ma[ma.indexOf(e)]=a:ma.push(a)),a.patchFlag=-2,a}if(I4e(e)&&(e=e.__vccOpts),t){t=Ws(t);let{class:a,style:l}=t;a&&!uo(a)&&(t.class=J(a)),Li(l)&&(s3(l)&&!$n(l)&&(l=ei({},l)),t.style=Bn(l))}const s=uo(e)?1:W4(e)?128:cK(e)?64:Li(e)?4:Wn(e)?2:0;return c(e,t,n,o,i,s,r,!0)}function Ws(e){return e?s3(e)||VK(e)?ei({},e):e:null}function eu(e,t,n=!1,o=!1){const{props:i,ref:r,patchFlag:s,children:a,transition:l}=e,d=t?Ur(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&dJ(d),ref:t&&t.ref?n&&r?$n(r)?r.concat(j8(t)):[r,j8(t)]:j8(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&eu(e.ssContent),ssFallback:e.ssFallback&&eu(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&oh(u,l.clone(u)),u}function z(e=" ",t=0){return b(Wu,null,e,t)}function wl(e,t){const n=b(Um,null,e);return n.staticCount=t,n}function D(e="",t=!1){return t?(h(),W(zr,null,e)):b(zr,null,e)}function Cl(e){return e==null||typeof e=="boolean"?b(zr):$n(e)?b(pe,null,e.slice()):ih(e)?_m(e):b(Wu,null,String(e))}function _m(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:eu(e)}function RD(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if($n(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),RD(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!VK(t)?t._ctx=ys:i===3&&ys&&(ys.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Wn(t)?(t={default:t,_ctx:ys},n=32):(t=String(t),o&64?(n=16,t=[z(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ur(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=J([t.class,o.class]));else if(i==="style")t.style=Bn([t.style,o.style]);else if(sg(i)){const r=t[i],s=o[i];s&&r!==s&&!($n(r)&&r.includes(s))&&(t[i]=r?[].concat(r,s):s)}else i!==""&&(t[i]=o[i])}return t}function _l(e,t,n,o=null){cc(e,t,7,[n,o])}const C4e=zK();let S4e=0;function uJ(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||C4e,r={uid:S4e++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new B$(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:YK(o,i),emitsOptions:oJ(o,i),emit:null,emitted:null,propsDefaults:Jo,inheritAttrs:o.inheritAttrs,ctx:Jo,data:Jo,props:Jo,attrs:Jo,slots:Jo,refs:Jo,setupState:Jo,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=h4e.bind(null,r),e.ce&&e.ce(r),r}let ms=null;const pr=()=>ms||ys;let Z4,ME;{const e=z$(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};Z4=t("__VUE_INSTANCE_SETTERS__",n=>ms=n),ME=t("__VUE_SSR_SETTERS__",n=>O_=n)}const B1=e=>{const t=ms;return Z4(e),e.scope.on(),()=>{e.scope.off(),Z4(t)}},NE=()=>{ms&&ms.scope.off(),Z4(null)};function hJ(e){return e.vnode.shapeFlag&4}let O_=!1;function fJ(e,t=!1,n=!1){t&&ME(t);const{props:o,children:i}=e.vnode,r=hJ(e);i4e(e,o,r,t),l4e(e,i,n);const s=r?T4e(e,t):void 0;return t&&ME(!1),s}function T4e(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,AE);const{setup:o}=n;if(o){cp();const i=e.setupContext=o.length>1?gJ(e):null,r=B1(e),s=lg(o,e,0,[e.props,i]),a=oD(s);if(dp(),r(),(a||e.sp)&&!zm(e)&&gD(e),a){if(s.then(NE,NE),t)return s.then(l=>{RE(e,l,t)}).catch(l=>{up(l,e,0)});e.asyncDep=s}else RE(e,s,t)}else pJ(e,t)}function RE(e,t,n){Wn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Li(t)&&(e.setupState=K$(t)),pJ(e,n)}let K4,jE;function jD(e){K4=e,jE=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,K8e))}}const mJ=()=>!K4;function pJ(e,t,n){const o=e.type;if(!e.render){if(!t&&K4&&!o.render){const i=o.template||ED(e).template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,d=ei(ei({isCustomElement:r,delimiters:a},s),l);o.render=K4(i,d)}}e.render=o.render||Ks,jE&&jE(e)}{const i=B1(e);cp();try{J8e(e)}finally{dp(),i()}}}const E4e={get(e,t){return ca(e,"get",""),e[t]}};function gJ(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,E4e),slots:e.slots,emit:e.emit,expose:t}}function d3(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(K$(cD(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in I0)return I0[n](e)},has(t,n){return n in t||n in I0}})):e.proxy}function FE(e,t=!0){return Wn(e)?e.displayName||e.name:e.name||t&&e.__name}function I4e(e){return Wn(e)&&"__vccOpts"in e}const dt=(e,t)=>I8e(e,t,O_);function tu(e,t,n){const o=arguments.length;return o===2?Li(t)&&!$n(t)?ih(t)?b(e,null,[t]):b(e,t):b(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ih(n)&&(n=[n]),b(e,t,n))}function vJ(){}function _J(e,t,n,o){const i=n[o];if(i&&FD(i,e))return i;const r=t();return r.memo=e.slice(),r.cacheIndex=o,n[o]=r}function FD(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let o=0;o<n.length;o++)if(Da(n[o],t[o]))return!1;return U1>0&&ma&&ma.push(e),!0}const zD="3.5.12",yJ=Ks,bJ=x8e,kJ=Ov,wJ=aK,P4e={createComponentInstance:uJ,setupComponent:fJ,renderComponentRoot:R8,setCurrentRenderingInstance:m2,isVNode:ih,normalizeVNode:Cl,getComponentPublicInstance:d3,ensureValidVNode:TD,pushWarningContext:A8e,popWarningContext:D8e},$J=P4e,CJ=null,SJ=null,TJ=null;/** * @vue/runtime-dom v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let zE;const $j=typeof window<"u"&&window.trustedTypes;if($j)try{zE=$j.createPolicy("vue",{createHTML:e=>e})}catch{}const EJ=zE?e=>zE.createHTML(e):e=>e,A4e="http://www.w3.org/2000/svg",D4e="http://www.w3.org/1998/Math/MathML",qh=typeof document<"u"?document:null,Cj=qh&&qh.createElement("template"),x4e={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const i=t==="svg"?qh.createElementNS(A4e,e):t==="mathml"?qh.createElementNS(D4e,e):n?qh.createElement(e,{is:n}):qh.createElement(e);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>qh.createTextNode(e),createComment:e=>qh.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qh.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{Cj.innerHTML=EJ(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const a=Cj.content;if(o==="svg"||o==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},em="transition",Pb="animation",L_=Symbol("_vtc"),IJ={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},PJ=ei({},t9,IJ),O4e=e=>(e.displayName="Transition",e.props=PJ,e),nd=O4e((e,{slots:t})=>tu(pD,AJ(e),t)),Up=(e,t=[])=>{$n(e)?e.forEach(n=>n(...t)):e&&e(...t)},Sj=e=>e?$n(e)?e.some(t=>t.length>1):e.length>1:!1;function AJ(e){const t={};for(const V in e)V in IJ||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:d=s,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,_=L4e(i),k=_&&_[0],C=_&&_[1],{onBeforeEnter:$,onEnter:E,onEnterCancelled:P,onLeave:I,onLeaveCancelled:O,onBeforeAppear:L=$,onAppear:S=E,onAppearCancelled:j=P}=t,M=(V,G,Q)=>{hm(V,G?u:a),hm(V,G?d:s),Q&&Q()},q=(V,G)=>{V._isLeaving=!1,hm(V,f),hm(V,v),hm(V,p),G&&G()},B=V=>(G,Q)=>{const X=V?S:E,Y=()=>M(G,V,Q);Up(X,[G,Y]),Tj(()=>{hm(G,V?l:r),Bh(G,V?u:a),Sj(X)||Ej(G,o,k,Y)})};return ei(t,{onBeforeEnter(V){Up($,[V]),Bh(V,r),Bh(V,s)},onBeforeAppear(V){Up(L,[V]),Bh(V,l),Bh(V,d)},onEnter:B(!1),onAppear:B(!0),onLeave(V,G){V._isLeaving=!0;const Q=()=>q(V,G);Bh(V,f),Bh(V,p),xJ(),Tj(()=>{V._isLeaving&&(hm(V,f),Bh(V,v),Sj(I)||Ej(V,o,C,Q))}),Up(I,[V,Q])},onEnterCancelled(V){M(V,!1),Up(P,[V])},onAppearCancelled(V){M(V,!0),Up(j,[V])},onLeaveCancelled(V){q(V),Up(O,[V])}})}function L4e(e){if(e==null)return null;if(Li(e))return[q7(e.enter),q7(e.leave)];{const t=q7(e);return[t,t]}}function q7(e){return F4(e)}function Bh(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[L_]||(e[L_]=new Set)).add(t)}function hm(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[L_];n&&(n.delete(t),n.size||(e[L_]=void 0))}function Tj(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let M4e=0;function Ej(e,t,n,o){const i=e._endId=++M4e,r=()=>{i===e._endId&&o()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:a,propCount:l}=DJ(e,t);if(!s)return o();const d=s+"end";let u=0;const f=()=>{e.removeEventListener(d,p),r()},p=v=>{v.target===e&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),e.addEventListener(d,p)}function DJ(e,t){const n=window.getComputedStyle(e),o=_=>(n[_]||"").split(", "),i=o(`${em}Delay`),r=o(`${em}Duration`),s=Ij(i,r),a=o(`${Pb}Delay`),l=o(`${Pb}Duration`),d=Ij(a,l);let u=null,f=0,p=0;t===em?s>0&&(u=em,f=s,p=r.length):t===Pb?d>0&&(u=Pb,f=d,p=l.length):(f=Math.max(s,d),u=f>0?s>d?em:Pb:null,p=u?u===em?r.length:l.length:0);const v=u===em&&/\b(transform|all)(,|$)/.test(o(`${em}Property`).toString());return{type:u,timeout:f,propCount:p,hasTransform:v}}function Ij(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Pj(n)+Pj(e[o])))}function Pj(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function xJ(){return document.body.offsetHeight}function N4e(e,t,n){const o=e[L_];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const J4=Symbol("_vod"),OJ=Symbol("_vsh"),Vo={beforeMount(e,{value:t},{transition:n}){e[J4]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ab(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Ab(e,!0),o.enter(e)):o.leave(e,()=>{Ab(e,!1)}):Ab(e,t))},beforeUnmount(e,{value:t}){Ab(e,t)}};function Ab(e,t){e.style.display=t?e[J4]:"none",e[OJ]=!t}function R4e(){Vo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const LJ=Symbol("");function UD(e){const t=pr();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(r=>X4(r,i))},o=()=>{const i=e(t.proxy);t.ce?X4(t.ce,i):UE(t.subTree,i),n(i)};by(()=>{LD(o)}),Ha(()=>{const i=new MutationObserver(o);i.observe(t.subTree.el.parentNode,{childList:!0}),cu(()=>i.disconnect())})}function UE(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{UE(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)X4(e.el,t);else if(e.type===pe)e.children.forEach(n=>UE(n,t));else if(e.type===Um){let{el:n,anchor:o}=e;for(;n&&(X4(n,t),n!==o);)n=n.nextSibling}}function X4(e,t){if(e.nodeType===1){const n=e.style;let o="";for(const i in t)n.setProperty(`--${i}`,t[i]),o+=`--${i}: ${t[i]};`;n[LJ]=o}}const j4e=/(^|;)\s*display\s*:/;function F4e(e,t,n){const o=e.style,i=uo(n);let r=!1;if(n&&!i){if(t)if(uo(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&F8(o,a,"")}else for(const s in t)n[s]==null&&F8(o,s,"");for(const s in n)s==="display"&&(r=!0),F8(o,s,n[s])}else if(i){if(t!==n){const s=o[LJ];s&&(n+=";"+s),o.cssText=n,r=j4e.test(n)}}else t&&e.removeAttribute("style");J4 in e&&(e[J4]=r?o.display:"",e[OJ]&&(o.display="none"))}const Aj=/\s*!important$/;function F8(e,t,n){if($n(n))n.forEach(o=>F8(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=z4e(e,t);Aj.test(n)?e.setProperty(El(o),n.replace(Aj,""),"important"):e[o]=n}}const Dj=["Webkit","Moz","ms"],Y7={};function z4e(e,t){const n=Y7[t];if(n)return n;let o=Zi(t);if(o!=="filter"&&o in e)return Y7[t]=o;o=lp(o);for(let i=0;i<Dj.length;i++){const r=Dj[i]+o;if(r in e)return Y7[t]=r}return t}const xj="http://www.w3.org/1999/xlink";function Oj(e,t,n,o,i,r=t8e(t)){o&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(xj,t.slice(6,t.length)):e.setAttributeNS(xj,t,n):n==null||r&&!TZ(n)?e.removeAttribute(t):e.setAttribute(t,r?"":xl(n)?String(n):n)}function Lj(e,t,n,o,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?EJ(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=TZ(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(i||t)}function Xh(e,t,n,o){e.addEventListener(t,n,o)}function U4e(e,t,n,o){e.removeEventListener(t,n,o)}const Mj=Symbol("_vei");function B4e(e,t,n,o,i=null){const r=e[Mj]||(e[Mj]={}),s=r[t];if(o&&s)s.value=o;else{const[a,l]=H4e(t);if(o){const d=r[t]=Y4e(o,i);Xh(e,a,d,l)}else s&&(U4e(e,a,s,l),r[t]=void 0)}}const Nj=/(?:Once|Passive|Capture)$/;function H4e(e){let t;if(Nj.test(e)){t={};let o;for(;o=e.match(Nj);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):El(e.slice(2)),t]}let W7=0;const V4e=Promise.resolve(),q4e=()=>W7||(V4e.then(()=>W7=0),W7=Date.now());function Y4e(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;cc(W4e(o,n.value),t,5,[o])};return n.value=e,n.attached=q4e(),n}function W4e(e,t){if($n(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const Rj=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,G4e=(e,t,n,o,i,r)=>{const s=i==="svg";t==="class"?N4e(e,o,s):t==="style"?F4e(e,n,o):sg(t)?tD(t)||B4e(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Z4e(e,t,o,s))?(Lj(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Oj(e,t,o,s,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!uo(o))?Lj(e,Zi(t),o,r,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Oj(e,t,o,s))};function Z4e(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rj(t)&&Wn(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Rj(t)&&uo(n)?!1:t in e}const jj={};/*! #__NO_SIDE_EFFECTS__ */function BD(e,t,n){const o=xo(e,t);j$(o)&&ei(o,t);class i extends u3{constructor(s){super(o,s,n)}}return i.def=o,i}/*! #__NO_SIDE_EFFECTS__ */const MJ=(e,t)=>BD(e,t,YD),K4e=typeof HTMLElement<"u"?HTMLElement:class{};class u3 extends K4e{constructor(t,n={},o=N_){super(),this._def=t,this._props=n,this._createApp=o,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&o!==N_?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof u3){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,fa(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const i of o)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:s}=o;let a;if(r&&!$n(r))for(const l in r){const d=r[l];(d===Number||d&&d.type===Number)&&(l in this._props&&(this._props[l]=F4(this._props[l])),(a||(a=Object.create(null)))[Zi(l)]=!0)}this._numberProps=a,i&&this._resolveProps(o),this.shadowRoot&&this._applyStyles(s),this._mount(o)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(o=>t(this._def=o,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const o in n)Ci(this,o)||Object.defineProperty(this,o,{get:()=>Et(n[o])})}_resolveProps(t){const{props:n}=t,o=$n(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&o.includes(i)&&this._setProp(i,this[i]);for(const i of o.map(Zi))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let o=n?this.getAttribute(t):jj;const i=Zi(t);n&&this._numberProps&&this._numberProps[i]&&(o=F4(o)),this._setProp(i,o,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,i=!1){n!==this._props[t]&&(n===jj?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(El(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(El(t),n+""):n||this.removeAttribute(El(t))))}_update(){qD(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=b(this._def,ei(t,this._props));return this._instance||(n.ce=o=>{this._instance=o,o.ce=this,o.isCE=!0;const i=(r,s)=>{this.dispatchEvent(new CustomEvent(r,j$(s[0])?ei({detail:s},s[0]):{detail:s}))};o.emit=(r,...s)=>{i(r,s),El(r)!==r&&i(El(r),s)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const o=this._nonce;for(let i=t.length-1;i>=0;i--){const r=document.createElement("style");o&&r.setAttribute("nonce",o),r.textContent=t[i],this.shadowRoot.prepend(r)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const o=n.nodeType===1&&n.getAttribute("slot")||"default";(t[o]||(t[o]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let o=0;o<t.length;o++){const i=t[o],r=i.getAttribute("name")||"default",s=this._slots[r],a=i.parentNode;if(s)for(const l of s){if(n&&l.nodeType===1){const d=n+"-s",u=document.createTreeWalker(l,1);l.setAttribute(d,"");let f;for(;f=u.nextNode();)f.setAttribute(d,"")}a.insertBefore(l,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function HD(e){const t=pr(),n=t&&t.ce;return n||null}function NJ(){const e=HD();return e&&e.shadowRoot}function RJ(e="$style"){{const t=pr();if(!t)return Jo;const n=t.type.__cssModules;if(!n)return Jo;const o=n[e];return o||Jo}}const jJ=new WeakMap,FJ=new WeakMap,Q4=Symbol("_moveCb"),Fj=Symbol("_enterCb"),J4e=e=>(delete e.props.mode,e),X4e=J4e({name:"TransitionGroup",props:ei({},PJ,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=pr(),o=e9();let i,r;return ky(()=>{if(!i.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!n5e(i[0].el,n.vnode.el,s))return;i.forEach(Q4e),i.forEach(e5e);const a=i.filter(t5e);xJ(),a.forEach(l=>{const d=l.el,u=d.style;Bh(d,s),u.transform=u.webkitTransform=u.transitionDuration="";const f=d[Q4]=p=>{p&&p.target!==d||(!p||/transform$/.test(p.propertyName))&&(d.removeEventListener("transitionend",f),d[Q4]=null,hm(d,s))};d.addEventListener("transitionend",f)})}),()=>{const s=si(e),a=AJ(s);let l=s.tag||pe;if(i=[],r)for(let d=0;d<r.length;d++){const u=r[d];u.el&&u.el instanceof Element&&(i.push(u),oh(u,z1(u,a,o,n)),jJ.set(u,u.el.getBoundingClientRect()))}r=t.default?a3(t.default()):[];for(let d=0;d<r.length;d++){const u=r[d];u.key!=null&&oh(u,z1(u,a,o,n))}return b(l,null,r)}}}),r9=X4e;function Q4e(e){const t=e.el;t[Q4]&&t[Q4](),t[Fj]&&t[Fj]()}function e5e(e){FJ.set(e,e.el.getBoundingClientRect())}function t5e(e){const t=jJ.get(e),n=FJ.get(e),o=t.left-n.left,i=t.top-n.top;if(o||i){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${o}px,${i}px)`,r.transitionDuration="0s",e}}function n5e(e,t,n){const o=e.cloneNode(),i=e[L_];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&o.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&o.classList.add(a)),o.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(o);const{hasTransform:s}=DJ(o);return r.removeChild(o),s}const ep=e=>{const t=e.props["onUpdate:modelValue"]||!1;return $n(t)?n=>h_(t,n):t};function o5e(e){e.target.composing=!0}function zj(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Zc=Symbol("_assign"),wt={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[Zc]=ep(i);const r=o||i.props&&i.props.type==="number";Xh(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=j4(a)),e[Zc](a)}),n&&Xh(e,"change",()=>{e.value=e.value.trim()}),t||(Xh(e,"compositionstart",o5e),Xh(e,"compositionend",zj),Xh(e,"change",zj))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:i,number:r}},s){if(e[Zc]=ep(s),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?j4(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||i&&e.value.trim()===l)||(e.value=l))}},h3={deep:!0,created(e,t,n){e[Zc]=ep(n),Xh(e,"change",()=>{const o=e._modelValue,i=M_(e),r=e.checked,s=e[Zc];if($n(o)){const a=U$(o,i),l=a!==-1;if(r&&!l)s(o.concat(i));else if(!r&&l){const d=[...o];d.splice(a,1),s(d)}}else if(ag(o)){const a=new Set(o);r?a.add(i):a.delete(i),s(a)}else s(zJ(e,r))})},mounted:Uj,beforeUpdate(e,t,n){e[Zc]=ep(n),Uj(e,t,n)}};function Uj(e,{value:t,oldValue:n},o){e._modelValue=t;let i;if($n(t))i=U$(t,o.props.value)>-1;else if(ag(t))i=t.has(o.props.value);else{if(t===n)return;i=Qm(t,zJ(e,!0))}e.checked!==i&&(e.checked=i)}const Df={created(e,{value:t},n){e.checked=Qm(t,n.props.value),e[Zc]=ep(n),Xh(e,"change",()=>{e[Zc](M_(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[Zc]=ep(o),t!==n&&(e.checked=Qm(t,o.props.value))}},VD={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const i=ag(t);Xh(e,"change",()=>{const r=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?j4(M_(s)):M_(s));e[Zc](e.multiple?i?new Set(r):r:r[0]),e._assigning=!0,fa(()=>{e._assigning=!1})}),e[Zc]=ep(o)},mounted(e,{value:t}){Bj(e,t)},beforeUpdate(e,t,n){e[Zc]=ep(n)},updated(e,{value:t}){e._assigning||Bj(e,t)}};function Bj(e,t){const n=e.multiple,o=$n(t);if(!(n&&!o&&!ag(t))){for(let i=0,r=e.options.length;i<r;i++){const s=e.options[i],a=M_(s);if(n)if(o){const l=typeof a;l==="string"||l==="number"?s.selected=t.some(d=>String(d)===String(a)):s.selected=U$(t,a)>-1}else s.selected=t.has(a);else if(Qm(M_(s),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function M_(e){return"_value"in e?e._value:e.value}function zJ(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const f3={created(e,t,n){fw(e,t,n,null,"created")},mounted(e,t,n){fw(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){fw(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){fw(e,t,n,o,"updated")}};function UJ(e,t){switch(e){case"SELECT":return VD;case"TEXTAREA":return wt;default:switch(t){case"checkbox":return h3;case"radio":return Df;default:return wt}}}function fw(e,t,n,o,i){const s=UJ(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,o)}function i5e(){wt.getSSRProps=({value:e})=>({value:e}),Df.getSSRProps=({value:e},t)=>{if(t.props&&Qm(t.props.value,e))return{checked:!0}},h3.getSSRProps=({value:e},t)=>{if($n(e)){if(t.props&&U$(e,t.props.value)>-1)return{checked:!0}}else if(ag(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},f3.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=UJ(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const r5e=["ctrl","shift","alt","meta"],s5e={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>r5e.some(n=>e[`${n}Key`]&&!t.includes(n))},Gt=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(i,...r)=>{for(let s=0;s<t.length;s++){const a=s5e[t[s]];if(a&&a(i,t))return}return e(i,...r)})},a5e={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},bs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=El(i.key);if(t.some(s=>s===r||a5e[s]===r))return e(i)})},BJ=ei({patchProp:G4e},x4e);let A0,Hj=!1;function HJ(){return A0||(A0=PD(BJ))}function VJ(){return A0=Hj?A0:AD(BJ),Hj=!0,A0}const qD=(...e)=>{HJ().render(...e)},qJ=(...e)=>{VJ().hydrate(...e)},N_=(...e)=>{const t=HJ().createApp(...e),{mount:n}=t;return t.mount=o=>{const i=WJ(o);if(!i)return;const r=t._component;!Wn(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,YJ(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t},YD=(...e)=>{const t=VJ().createApp(...e),{mount:n}=t;return t.mount=o=>{const i=WJ(o);if(i)return n(i,!0,YJ(i))},t};function YJ(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function WJ(e){return uo(e)?document.querySelector(e):e}let Vj=!1;const GJ=()=>{Vj||(Vj=!0,i5e(),R4e())},l5e=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:pD,BaseTransitionPropsValidators:t9,Comment:zr,DeprecationTypes:TJ,EffectScope:B$,ErrorCodes:oK,ErrorTypeStrings:bJ,Fragment:pe,KeepAlive:wK,ReactiveEffect:x_,Static:Um,Suspense:iJ,Teleport:dK,Text:Wu,TrackOpTypes:XZ,Transition:nd,TransitionGroup:r9,TriggerOpTypes:QZ,VueElement:u3,assertNumber:nK,callWithAsyncErrorHandling:cc,callWithErrorHandling:lg,camelize:Zi,capitalize:lp,cloneVNode:eu,compatUtils:SJ,computed:dt,createApp:N_,createBlock:W,createCommentVNode:D,createElementBlock:g,createElementVNode:c,createHydrationRenderer:AD,createPropsRestProxy:RK,createRenderer:PD,createSSRApp:YD,createSlots:os,createStaticVNode:wl,createTextVNode:z,createVNode:b,customRef:dD,defineAsyncComponent:kK,defineComponent:xo,defineCustomElement:BD,defineEmits:TK,defineExpose:EK,defineModel:AK,defineOptions:IK,defineProps:SK,defineSSRCustomElement:MJ,defineSlots:PK,devtools:kJ,effect:MZ,effectScope:H$,getCurrentInstance:pr,getCurrentScope:rD,getCurrentWatcher:eK,getTransitionRawChildren:a3,guardReactiveProps:Ws,h:tu,handleError:up,hasInjectionContext:UK,hydrate:qJ,hydrateOnIdle:vK,hydrateOnInteraction:bK,hydrateOnMediaQuery:yK,hydrateOnVisible:_K,initCustomFormatter:vJ,initDirectivesForSSR:GJ,inject:ts,isMemoSame:FD,isProxy:s3,isReactive:qu,isReadonly:nh,isRef:Oi,isRuntimeOnly:mJ,isShallow:Al,isVNode:ih,markRaw:cD,mergeDefaults:MK,mergeModels:NK,mergeProps:Ur,nextTick:fa,normalizeClass:J,normalizeProps:hs,normalizeStyle:Bn,onActivated:vD,onBeforeMount:by,onBeforeUnmount:cg,onBeforeUpdate:yD,onDeactivated:_D,onErrorCaptured:$D,onMounted:Ha,onRenderTracked:wD,onRenderTriggered:kD,onScopeDispose:PZ,onServerPrefetch:bD,onUnmounted:cu,onUpdated:ky,onWatcherCleanup:hD,openBlock:h,popScopeId:Q$,provide:ic,proxyRefs:K$,pushScopeId:X$,queuePostFlushCb:h2,reactive:hc,readonly:G$,ref:In,registerRuntimeCompiler:jD,render:qD,renderList:Me,renderSlot:Pt,resolveComponent:y,resolveDirective:an,resolveDynamicComponent:Dl,resolveFilter:CJ,resolveTransitionHooks:z1,setBlockTracking:G4,setDevtoolsHook:wJ,setTransitionHooks:oh,shallowReactive:W$,shallowReadonly:WZ,shallowRef:yy,ssrContextKey:xD,ssrUtils:$J,stop:NZ,toDisplayString:m,toHandlerKey:$1,toHandlers:Yu,toRaw:si,toRef:f_,toRefs:uD,toValue:KZ,transformVNodeArgs:cJ,triggerRef:ZZ,unref:Et,useAttrs:OK,useCssModule:RJ,useCssVars:UD,useHost:HD,useId:pK,useModel:tJ,useSSRContext:OD,useShadowRoot:NJ,useSlots:xK,useTemplateRef:gK,useTransitionState:e9,vModelCheckbox:h3,vModelDynamic:f3,vModelRadio:Df,vModelSelect:VD,vModelText:wt,vShow:Vo,version:zD,warn:yJ,watch:Co,watchEffect:o9,watchPostEffect:LD,watchSyncEffect:MD,withAsyncContext:jK,withCtx:F,withDefaults:DK,withDirectives:xe,withKeys:bs,withMemo:_J,withModifiers:Gt,withScopeId:mD},Symbol.toStringTag,{value:"Module"}));/** * @vue/compiler-core v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const v2=Symbol(""),D0=Symbol(""),WD=Symbol(""),e5=Symbol(""),ZJ=Symbol(""),H1=Symbol(""),KJ=Symbol(""),JJ=Symbol(""),GD=Symbol(""),ZD=Symbol(""),m3=Symbol(""),KD=Symbol(""),XJ=Symbol(""),JD=Symbol(""),XD=Symbol(""),QD=Symbol(""),ex=Symbol(""),tx=Symbol(""),nx=Symbol(""),QJ=Symbol(""),eX=Symbol(""),s9=Symbol(""),t5=Symbol(""),ox=Symbol(""),ix=Symbol(""),_2=Symbol(""),p3=Symbol(""),rx=Symbol(""),BE=Symbol(""),c5e=Symbol(""),HE=Symbol(""),n5=Symbol(""),d5e=Symbol(""),u5e=Symbol(""),sx=Symbol(""),h5e=Symbol(""),f5e=Symbol(""),ax=Symbol(""),tX=Symbol(""),R_={[v2]:"Fragment",[D0]:"Teleport",[WD]:"Suspense",[e5]:"KeepAlive",[ZJ]:"BaseTransition",[H1]:"openBlock",[KJ]:"createBlock",[JJ]:"createElementBlock",[GD]:"createVNode",[ZD]:"createElementVNode",[m3]:"createCommentVNode",[KD]:"createTextVNode",[XJ]:"createStaticVNode",[JD]:"resolveComponent",[XD]:"resolveDynamicComponent",[QD]:"resolveDirective",[ex]:"resolveFilter",[tx]:"withDirectives",[nx]:"renderList",[QJ]:"renderSlot",[eX]:"createSlots",[s9]:"toDisplayString",[t5]:"mergeProps",[ox]:"normalizeClass",[ix]:"normalizeStyle",[_2]:"normalizeProps",[p3]:"guardReactiveProps",[rx]:"toHandlers",[BE]:"camelize",[c5e]:"capitalize",[HE]:"toHandlerKey",[n5]:"setBlockTracking",[d5e]:"pushScopeId",[u5e]:"popScopeId",[sx]:"withCtx",[h5e]:"unref",[f5e]:"isRef",[ax]:"withMemo",[tX]:"isMemoSame"};function m5e(e){Object.getOwnPropertySymbols(e).forEach(t=>{R_[t]=e[t]})}const fc={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function p5e(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:fc}}function y2(e,t,n,o,i,r,s,a=!1,l=!1,d=!1,u=fc){return e&&(a?(e.helper(H1),e.helper(z_(e.inSSR,d))):e.helper(F_(e.inSSR,d)),s&&e.helper(tx)),{type:13,tag:t,props:n,children:o,patchFlag:i,dynamicProps:r,directives:s,isBlock:a,disableTracking:l,isComponent:d,loc:u}}function T1(e,t=fc){return{type:17,loc:t,elements:e}}function Bc(e,t=fc){return{type:15,loc:t,properties:e}}function Br(e,t){return{type:16,loc:fc,key:uo(e)?yo(e,!0):e,value:t}}function yo(e,t=!1,n=fc,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Gd(e,t=fc){return{type:8,loc:t,children:e}}function fs(e,t=[],n=fc){return{type:14,loc:n,callee:e,arguments:t}}function j_(e,t=void 0,n=!1,o=!1,i=fc){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:i}}function VE(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:fc}}function g5e(e,t,n=!1){return{type:20,index:e,value:t,needPauseTracking:n,needArraySpread:!1,loc:fc}}function v5e(e){return{type:21,body:e,loc:fc}}function F_(e,t){return e||t?GD:ZD}function z_(e,t){return e||t?KJ:JJ}function lx(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(F_(o,e.isComponent)),t(H1),t(z_(o,e.isComponent)))}const qj=new Uint8Array([123,123]),Yj=new Uint8Array([125,125]);function Wj(e){return e>=97&&e<=122||e>=65&&e<=90}function Ql(e){return e===32||e===10||e===9||e===12||e===13}function tm(e){return e===47||e===62||Ql(e)}function o5(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const ia={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class _5e{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=qj,this.delimiterClose=Yj,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=qj,this.delimiterClose=Yj}getPos(t){let n=1,o=t+1;for(let i=this.newlines.length-1;i>=0;i--){const r=this.newlines[i];if(t>r){n=i+2,o=t-r;break}}return{column:o,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?tm(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Ql(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const o=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=o}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===ia.TitleEnd||this.currentSequence===ia.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===ia.Cdata[this.sequenceIndex]?++this.sequenceIndex===ia.Cdata.length&&(this.state=28,this.currentSequence=ia.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===ia.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):Wj(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){tm(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(tm(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(o5("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){Ql(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Wj(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||Ql(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Ql(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Ql(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||tm(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||tm(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||tm(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||tm(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||tm(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):Ql(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):Ql(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){Ql(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=ia.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===ia.ScriptEnd[3]?this.startSpecial(ia.ScriptEnd,4):t===ia.StyleEnd[3]?this.startSpecial(ia.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===ia.TitleEnd[3]?this.startSpecial(ia.TitleEnd,4):t===ia.TextareaEnd[3]?this.startSpecial(ia.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===ia.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}function Gj(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function E1(e,t){const n=Gj("MODE",t),o=Gj(e,t);return n===3?o===!0:o!==!1}function b2(e,t,n,...o){return E1(e,t)}function cx(e){throw e}function nX(e){}function lr(e,t,n,o){const i=`https://vuejs.org/error-reference/#compiler-${e}`,r=new SyntaxError(String(i));return r.code=e,r.loc=t,r}const Il=e=>e.type===4&&e.isStatic;function oX(e){switch(e){case"Teleport":case"teleport":return D0;case"Suspense":case"suspense":return WD;case"KeepAlive":case"keep-alive":return e5;case"BaseTransition":case"base-transition":return ZJ}}const y5e=/^\d|[^\$\w\xA0-\uFFFF]/,dx=e=>!y5e.test(e),b5e=/[A-Za-z_$\xA0-\uFFFF]/,k5e=/[\.\?\w$\xA0-\uFFFF]/,w5e=/\s+[.[]\s*|\s*[.[]\s+/g,iX=e=>e.type===4?e.content:e.loc.source,$5e=e=>{const t=iX(e).trim().replace(w5e,a=>a.trim());let n=0,o=[],i=0,r=0,s=null;for(let a=0;a<t.length;a++){const l=t.charAt(a);switch(n){case 0:if(l==="[")o.push(n),n=1,i++;else if(l==="(")o.push(n),n=2,r++;else if(!(a===0?b5e:k5e).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(o.push(n),n=3,s=l):l==="["?i++:l==="]"&&(--i||(n=o.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")o.push(n),n=3,s=l;else if(l==="(")r++;else if(l===")"){if(a===t.length-1)return!1;--r||(n=o.pop())}break;case 3:l===s&&(n=o.pop(),s=null);break}}return!i&&!r},rX=$5e,C5e=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,S5e=e=>C5e.test(iX(e)),T5e=S5e;function zc(e,t,n=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===7&&(n||i.exp)&&(uo(t)?i.name===t:t.test(i.name)))return i}}function a9(e,t,n=!1,o=!1){for(let i=0;i<e.props.length;i++){const r=e.props[i];if(r.type===6){if(n)continue;if(r.name===t&&(r.value||o))return r}else if(r.name==="bind"&&(r.exp||o)&&u1(r.arg,t))return r}}function u1(e,t){return!!(e&&Il(e)&&e.content===t)}function E5e(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function G7(e){return e.type===5||e.type===2}function I5e(e){return e.type===7&&e.name==="slot"}function i5(e){return e.type===1&&e.tagType===3}function r5(e){return e.type===1&&e.tagType===2}const P5e=new Set([_2,p3]);function sX(e,t=[]){if(e&&!uo(e)&&e.type===14){const n=e.callee;if(!uo(n)&&P5e.has(n))return sX(e.arguments[0],t.concat(e))}return[e,t]}function s5(e,t,n){let o,i=e.type===13?e.props:e.arguments[2],r=[],s;if(i&&!uo(i)&&i.type===14){const a=sX(i);i=a[0],r=a[1],s=r[r.length-1]}if(i==null||uo(i))o=Bc([t]);else if(i.type===14){const a=i.arguments[0];!uo(a)&&a.type===15?Zj(t,a)||a.properties.unshift(t):i.callee===rx?o=fs(n.helper(t5),[Bc([t]),i]):i.arguments.unshift(Bc([t])),!o&&(o=i)}else i.type===15?(Zj(t,i)||i.properties.unshift(t),o=i):(o=fs(n.helper(t5),[Bc([t]),i]),s&&s.callee===p3&&(s=r[r.length-2]));e.type===13?s?s.arguments[0]=o:e.props=o:s?s.arguments[0]=o:e.arguments[2]=o}function Zj(e,t){let n=!1;if(e.key.type===4){const o=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===o)}return n}function k2(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,o)=>n==="-"?"_":e.charCodeAt(o).toString())}`}function A5e(e){return e.type===14&&e.callee===ax?e.arguments[1].returns:e}const D5e=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,aX={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:r0,isPreTag:r0,isIgnoreNewlineTag:r0,isCustomElement:r0,onError:cx,onWarn:nX,comments:!1,prefixIdentifiers:!1};let Si=aX,w2=null,hf="",aa=null,ui=null,pl="",Hh=-1,Qp=-1,ux=0,ym=!1,qE=null;const or=[],Ir=new _5e(or,{onerr:Rh,ontext(e,t){mw(Ys(e,t),e,t)},ontextentity(e,t,n){mw(e,t,n)},oninterpolation(e,t){if(ym)return mw(Ys(e,t),e,t);let n=e+Ir.delimiterOpen.length,o=t-Ir.delimiterClose.length;for(;Ql(hf.charCodeAt(n));)n++;for(;Ql(hf.charCodeAt(o-1));)o--;let i=Ys(n,o);i.includes("&")&&(i=Si.decodeEntities(i,!1)),YE({type:5,content:U8(i,!1,jr(n,o)),loc:jr(e,t)})},onopentagname(e,t){const n=Ys(e,t);aa={type:1,tag:n,ns:Si.getNamespace(n,or[0],Si.ns),tagType:0,props:[],children:[],loc:jr(e-1,t),codegenNode:void 0}},onopentagend(e){Jj(e)},onclosetag(e,t){const n=Ys(e,t);if(!Si.isVoidTag(n)){let o=!1;for(let i=0;i<or.length;i++)if(or[i].tag.toLowerCase()===n.toLowerCase()){o=!0,i>0&&Rh(24,or[0].loc.start.offset);for(let s=0;s<=i;s++){const a=or.shift();z8(a,t,s<i)}break}o||Rh(23,lX(e,60))}},onselfclosingtag(e){const t=aa.tag;aa.isSelfClosing=!0,Jj(e),or[0]&&or[0].tag===t&&z8(or.shift(),e)},onattribname(e,t){ui={type:6,name:Ys(e,t),nameLoc:jr(e,t),value:void 0,loc:jr(e)}},ondirname(e,t){const n=Ys(e,t),o=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!ym&&o===""&&Rh(26,e),ym||o==="")ui={type:6,name:n,nameLoc:jr(e,t),value:void 0,loc:jr(e)};else if(ui={type:7,name:o,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[yo("prop")]:[],loc:jr(e)},o==="pre"){ym=Ir.inVPre=!0,qE=aa;const i=aa.props;for(let r=0;r<i.length;r++)i[r].type===7&&(i[r]=B5e(i[r]))}},ondirarg(e,t){if(e===t)return;const n=Ys(e,t);if(ym)ui.name+=n,h1(ui.nameLoc,t);else{const o=n[0]!=="[";ui.arg=U8(o?n:n.slice(1,-1),o,jr(e,t),o?3:0)}},ondirmodifier(e,t){const n=Ys(e,t);if(ym)ui.name+="."+n,h1(ui.nameLoc,t);else if(ui.name==="slot"){const o=ui.arg;o&&(o.content+="."+n,h1(o.loc,t))}else{const o=yo(n,!0,jr(e,t));ui.modifiers.push(o)}},onattribdata(e,t){pl+=Ys(e,t),Hh<0&&(Hh=e),Qp=t},onattribentity(e,t,n){pl+=e,Hh<0&&(Hh=t),Qp=n},onattribnameend(e){const t=ui.loc.start.offset,n=Ys(t,e);ui.type===7&&(ui.rawName=n),aa.props.some(o=>(o.type===7?o.rawName:o.name)===n)&&Rh(2,t)},onattribend(e,t){if(aa&&ui){if(h1(ui.loc,t),e!==0)if(pl.includes("&")&&(pl=Si.decodeEntities(pl,!0)),ui.type===6)ui.name==="class"&&(pl=dX(pl).trim()),e===1&&!pl&&Rh(13,t),ui.value={type:2,content:pl,loc:e===1?jr(Hh,Qp):jr(Hh-1,Qp+1)},Ir.inSFCRoot&&aa.tag==="template"&&ui.name==="lang"&&pl&&pl!=="html"&&Ir.enterRCDATA(o5("</template"),0);else{let n=0;ui.exp=U8(pl,!1,jr(Hh,Qp),0,n),ui.name==="for"&&(ui.forParseResult=O5e(ui.exp));let o=-1;ui.name==="bind"&&(o=ui.modifiers.findIndex(i=>i.content==="sync"))>-1&&b2("COMPILER_V_BIND_SYNC",Si,ui.loc,ui.rawName)&&(ui.name="model",ui.modifiers.splice(o,1))}(ui.type!==7||ui.name!=="pre")&&aa.props.push(ui)}pl="",Hh=Qp=-1},oncomment(e,t){Si.comments&&YE({type:3,content:Ys(e,t),loc:jr(e-4,t+3)})},onend(){const e=hf.length;for(let t=0;t<or.length;t++)z8(or[t],e-1),Rh(24,or[t].loc.start.offset)},oncdata(e,t){or[0].ns!==0?mw(Ys(e,t),e,t):Rh(1,e-9)},onprocessinginstruction(e){(or[0]?or[0].ns:Si.ns)===0&&Rh(21,e-1)}}),Kj=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,x5e=/^\(|\)$/g;function O5e(e){const t=e.loc,n=e.content,o=n.match(D5e);if(!o)return;const[,i,r]=o,s=(f,p,v=!1)=>{const _=t.start.offset+p,k=_+f.length;return U8(f,!1,jr(_,k),0,v?1:0)},a={source:s(r.trim(),n.indexOf(r,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(x5e,"").trim();const d=i.indexOf(l),u=l.match(Kj);if(u){l=l.replace(Kj,"").trim();const f=u[1].trim();let p;if(f&&(p=n.indexOf(f,d+l.length),a.key=s(f,p,!0)),u[2]){const v=u[2].trim();v&&(a.index=s(v,n.indexOf(v,a.key?p+f.length:d+l.length),!0))}}return l&&(a.value=s(l,d,!0)),a}function Ys(e,t){return hf.slice(e,t)}function Jj(e){Ir.inSFCRoot&&(aa.innerLoc=jr(e+1,e+1)),YE(aa);const{tag:t,ns:n}=aa;n===0&&Si.isPreTag(t)&&ux++,Si.isVoidTag(t)?z8(aa,e):(or.unshift(aa),(n===1||n===2)&&(Ir.inXML=!0)),aa=null}function mw(e,t,n){{const r=or[0]&&or[0].tag;r!=="script"&&r!=="style"&&e.includes("&")&&(e=Si.decodeEntities(e,!1))}const o=or[0]||w2,i=o.children[o.children.length-1];i&&i.type===2?(i.content+=e,h1(i.loc,n)):o.children.push({type:2,content:e,loc:jr(t,n)})}function z8(e,t,n=!1){n?h1(e.loc,lX(t,60)):h1(e.loc,L5e(t,62)+1),Ir.inSFCRoot&&(e.children.length?e.innerLoc.end=ei({},e.children[e.children.length-1].loc.end):e.innerLoc.end=ei({},e.innerLoc.start),e.innerLoc.source=Ys(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:i,children:r}=e;if(ym||(o==="slot"?e.tagType=2:Xj(e)?e.tagType=3:N5e(e)&&(e.tagType=1)),Ir.inRCDATA||(e.children=cX(r)),i===0&&Si.isIgnoreNewlineTag(o)){const s=r[0];s&&s.type===2&&(s.content=s.content.replace(/^\r?\n/,""))}i===0&&Si.isPreTag(o)&&ux--,qE===e&&(ym=Ir.inVPre=!1,qE=null),Ir.inXML&&(or[0]?or[0].ns:Si.ns)===0&&(Ir.inXML=!1);{const s=e.props;if(!Ir.inSFCRoot&&E1("COMPILER_NATIVE_TEMPLATE",Si)&&e.tag==="template"&&!Xj(e)){const l=or[0]||w2,d=l.children.indexOf(e);l.children.splice(d,1,...e.children)}const a=s.find(l=>l.type===6&&l.name==="inline-template");a&&b2("COMPILER_INLINE_TEMPLATE",Si,a.loc)&&e.children.length&&(a.value={type:2,content:Ys(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function L5e(e,t){let n=e;for(;hf.charCodeAt(n)!==t&&n<hf.length-1;)n++;return n}function lX(e,t){let n=e;for(;hf.charCodeAt(n)!==t&&n>=0;)n--;return n}const M5e=new Set(["if","else","else-if","for","slot"]);function Xj({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&M5e.has(t[n].name))return!0}return!1}function N5e({tag:e,props:t}){if(Si.isCustomElement(e))return!1;if(e==="component"||R5e(e.charCodeAt(0))||oX(e)||Si.isBuiltInComponent&&Si.isBuiltInComponent(e)||Si.isNativeTag&&!Si.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const o=t[n];if(o.type===6){if(o.name==="is"&&o.value){if(o.value.content.startsWith("vue:"))return!0;if(b2("COMPILER_IS_ON_ELEMENT",Si,o.loc))return!0}}else if(o.name==="bind"&&u1(o.arg,"is")&&b2("COMPILER_IS_ON_ELEMENT",Si,o.loc))return!0}return!1}function R5e(e){return e>64&&e<91}const j5e=/\r\n/g;function cX(e,t){const n=Si.whitespace!=="preserve";let o=!1;for(let i=0;i<e.length;i++){const r=e[i];if(r.type===2)if(ux)r.content=r.content.replace(j5e,` `);else if(F5e(r.content)){const s=e[i-1]&&e[i-1].type,a=e[i+1]&&e[i+1].type;!s||!a||n&&(s===3&&(a===3||a===1)||s===1&&(a===3||a===1&&z5e(r.content)))?(o=!0,e[i]=null):r.content=" "}else n&&(r.content=dX(r.content))}return o?e.filter(Boolean):e}function F5e(e){for(let t=0;t<e.length;t++)if(!Ql(e.charCodeAt(t)))return!1;return!0}function z5e(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function dX(e){let t="",n=!1;for(let o=0;o<e.length;o++)Ql(e.charCodeAt(o))?n||(t+=" ",n=!0):(t+=e[o],n=!1);return t}function YE(e){(or[0]||w2).children.push(e)}function jr(e,t){return{start:Ir.getPos(e),end:t==null?t:Ir.getPos(t),source:t==null?t:Ys(e,t)}}function U5e(e){return jr(e.start.offset,e.end.offset)}function h1(e,t){e.end=Ir.getPos(t),e.source=Ys(e.start.offset,t)}function B5e(e){const t={type:6,name:e.rawName,nameLoc:jr(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function U8(e,t=!1,n,o=0,i=0){return yo(e,t,n,o)}function Rh(e,t,n){Si.onError(lr(e,jr(t,t)))}function H5e(){Ir.reset(),aa=null,ui=null,pl="",Hh=-1,Qp=-1,or.length=0}function V5e(e,t){if(H5e(),hf=e,Si=ei({},aX),t){let i;for(i in t)t[i]!=null&&(Si[i]=t[i])}Ir.mode=Si.parseMode==="html"?1:Si.parseMode==="sfc"?2:0,Ir.inXML=Si.ns===1||Si.ns===2;const n=t&&t.delimiters;n&&(Ir.delimiterOpen=o5(n[0]),Ir.delimiterClose=o5(n[1]));const o=w2=p5e([],e);return Ir.parse(hf),o.loc=jr(0,e.length),o.children=cX(o.children),w2=null,o}function q5e(e,t){B8(e,void 0,t,uX(e,e.children[0]))}function uX(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!r5(t)}function B8(e,t,n,o=!1,i=!1){const{children:r}=e,s=[];for(let u=0;u<r.length;u++){const f=r[u];if(f.type===1&&f.tagType===0){const p=o?0:ec(f,n);if(p>0){if(p>=2){f.codegenNode.patchFlag=-1,s.push(f);continue}}else{const v=f.codegenNode;if(v.type===13){const _=v.patchFlag;if((_===void 0||_===512||_===1)&&fX(f,n)>=2){const k=mX(f);k&&(v.props=n.hoist(k))}v.dynamicProps&&(v.dynamicProps=n.hoist(v.dynamicProps))}}}else if(f.type===12&&(o?0:ec(f,n))>=2){s.push(f);continue}if(f.type===1){const p=f.tagType===1;p&&n.scopes.vSlot++,B8(f,e,n,!1,i),p&&n.scopes.vSlot--}else if(f.type===11)B8(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let p=0;p<f.branches.length;p++)B8(f.branches[p],e,n,f.branches[p].children.length===1,i)}let a=!1;if(s.length===r.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&$n(e.codegenNode.children))e.codegenNode.children=l(T1(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!$n(e.codegenNode.children)&&e.codegenNode.children.type===15){const u=d(e.codegenNode,"default");u&&(u.returns=l(T1(u.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!$n(t.codegenNode.children)&&t.codegenNode.children.type===15){const u=zc(e,"slot",!0),f=u&&u.arg&&d(t.codegenNode,u.arg);f&&(f.returns=l(T1(f.returns)),a=!0)}}if(!a)for(const u of s)u.codegenNode=n.cache(u.codegenNode);function l(u){const f=n.cache(u);return i&&n.hmr&&(f.needArraySpread=!0),f}function d(u,f){if(u.children&&!$n(u.children)&&u.children.type===15){const p=u.children.properties.find(v=>v.key===f||v.key.content===f);return p&&p.value}}s.length&&n.transformHoist&&n.transformHoist(r,n,e)}function ec(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const o=n.get(e);if(o!==void 0)return o;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let s=3;const a=fX(e,t);if(a===0)return n.set(e,0),0;a<s&&(s=a);for(let l=0;l<e.children.length;l++){const d=ec(e.children[l],t);if(d===0)return n.set(e,0),0;d<s&&(s=d)}if(s>1)for(let l=0;l<e.props.length;l++){const d=e.props[l];if(d.type===7&&d.name==="bind"&&d.exp){const u=ec(d.exp,t);if(u===0)return n.set(e,0),0;u<s&&(s=u)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(H1),t.removeHelper(z_(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(F_(t.inSSR,i.isComponent))}return n.set(e,s),s}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ec(e.content,t);case 4:return e.constType;case 8:let r=3;for(let s=0;s<e.children.length;s++){const a=e.children[s];if(uo(a)||xl(a))continue;const l=ec(a,t);if(l===0)return 0;l<r&&(r=l)}return r;case 20:return 2;default:return 0}}const Y5e=new Set([ox,ix,_2,p3]);function hX(e,t){if(e.type===14&&!uo(e.callee)&&Y5e.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ec(n,t);if(n.type===14)return hX(n,t)}return 0}function fX(e,t){let n=3;const o=mX(e);if(o&&o.type===15){const{properties:i}=o;for(let r=0;r<i.length;r++){const{key:s,value:a}=i[r],l=ec(s,t);if(l===0)return l;l<n&&(n=l);let d;if(a.type===4?d=ec(a,t):a.type===14?d=hX(a,t):d=0,d===0)return d;d<n&&(n=d)}}return n}function mX(e){const t=e.codegenNode;if(t.type===13)return t.props}function W5e(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:i=!1,cacheHandlers:r=!1,nodeTransforms:s=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:d=Ks,isCustomElement:u=Ks,expressionPlugins:f=[],scopeId:p=null,slotted:v=!0,ssr:_=!1,inSSR:k=!1,ssrCssVars:C="",bindingMetadata:$=Jo,inline:E=!1,isTS:P=!1,onError:I=cx,onWarn:O=nX,compatConfig:L}){const S=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),j={filename:t,selfName:S&&lp(Zi(S[1])),prefixIdentifiers:n,hoistStatic:o,hmr:i,cacheHandlers:r,nodeTransforms:s,directiveTransforms:a,transformHoist:l,isBuiltInComponent:d,isCustomElement:u,expressionPlugins:f,scopeId:p,slotted:v,ssr:_,inSSR:k,ssrCssVars:C,bindingMetadata:$,inline:E,isTS:P,onError:I,onWarn:O,compatConfig:L,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(M){const q=j.helpers.get(M)||0;return j.helpers.set(M,q+1),M},removeHelper(M){const q=j.helpers.get(M);if(q){const B=q-1;B?j.helpers.set(M,B):j.helpers.delete(M)}},helperString(M){return`_${R_[j.helper(M)]}`},replaceNode(M){j.parent.children[j.childIndex]=j.currentNode=M},removeNode(M){const q=j.parent.children,B=M?q.indexOf(M):j.currentNode?j.childIndex:-1;!M||M===j.currentNode?(j.currentNode=null,j.onNodeRemoved()):j.childIndex>B&&(j.childIndex--,j.onNodeRemoved()),j.parent.children.splice(B,1)},onNodeRemoved:Ks,addIdentifiers(M){},removeIdentifiers(M){},hoist(M){uo(M)&&(M=yo(M)),j.hoists.push(M);const q=yo(`_hoisted_${j.hoists.length}`,!1,M.loc,2);return q.hoisted=M,q},cache(M,q=!1){const B=g5e(j.cached.length,M,q);return j.cached.push(B),B}};return j.filters=new Set,j}function G5e(e,t){const n=W5e(e,t);l9(e,n),t.hoistStatic&&q5e(e,n),t.ssr||Z5e(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Z5e(e,t){const{helper:n}=t,{children:o}=e;if(o.length===1){const i=o[0];if(uX(e,i)&&i.codegenNode){const r=i.codegenNode;r.type===13&&lx(r,t),e.codegenNode=r}else e.codegenNode=i}else if(o.length>1){let i=64;e.codegenNode=y2(t,n(v2),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function K5e(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];uo(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=o,l9(i,t))}}function l9(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r<n.length;r++){const s=n[r](e,t);if(s&&($n(s)?o.push(...s):o.push(s)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(m3);break;case 5:t.ssr||t.helper(s9);break;case 9:for(let r=0;r<e.branches.length;r++)l9(e.branches[r],t);break;case 10:case 11:case 1:case 0:K5e(e,t);break}t.currentNode=e;let i=o.length;for(;i--;)o[i]()}function pX(e,t){const n=uo(e)?o=>o===e:o=>e.test(o);return(o,i)=>{if(o.type===1){const{props:r}=o;if(o.tagType===3&&r.some(I5e))return;const s=[];for(let a=0;a<r.length;a++){const l=r[a];if(l.type===7&&n(l.name)){r.splice(a,1),a--;const d=t(o,l,i);d&&s.push(d)}}return s}}}const c9="/*@__PURE__*/",gX=e=>`${R_[e]}: _${R_[e]}`;function J5e(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:o=!1,filename:i="template.vue.html",scopeId:r=null,optimizeImports:s=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:d="vue/server-renderer",ssr:u=!1,isTS:f=!1,inSSR:p=!1}){const v={mode:t,prefixIdentifiers:n,sourceMap:o,filename:i,scopeId:r,optimizeImports:s,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:d,ssr:u,isTS:f,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(k){return`_${R_[k]}`},push(k,C=-2,$){v.code+=k},indent(){_(++v.indentLevel)},deindent(k=!1){k?--v.indentLevel:_(--v.indentLevel)},newline(){_(v.indentLevel)}};function _(k){v.push(` `+" ".repeat(k),0)}return v}function X5e(e,t={}){const n=J5e(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:i,prefixIdentifiers:r,indent:s,deindent:a,newline:l,scopeId:d,ssr:u}=n,f=Array.from(e.helpers),p=f.length>0,v=!r&&o!=="module";Q5e(e,n);const k=u?"ssrRender":"render",$=(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${k}(${$}) {`),s(),v&&(i("with (_ctx) {"),s(),p&&(i(`const { ${f.map(gX).join(", ")} } = _Vue `,-1),l())),e.components.length&&(Z7(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Z7(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Z7(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let E=0;E<e.temps;E++)i(`${E>0?", ":""}_temp${E}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` `,0),l()),u||i("return "),e.codegenNode?ga(e.codegenNode,n):i("null"),v&&(a(),i("}")),a(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Q5e(e,t){const{ssr:n,prefixIdentifiers:o,push:i,newline:r,runtimeModuleName:s,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,d=a,u=Array.from(e.helpers);if(u.length>0&&(i(`const _Vue = ${d} `,-1),e.hoists.length)){const f=[GD,ZD,m3,KD,XJ].filter(p=>u.includes(p)).map(gX).join(", ");i(`const { ${f} } = _Vue `,-1)}e$e(e.hoists,t),r(),i("return ")}function Z7(e,t,{helper:n,push:o,newline:i,isTS:r}){const s=n(t==="filter"?ex:t==="component"?JD:QD);for(let a=0;a<e.length;a++){let l=e[a];const d=l.endsWith("__self");d&&(l=l.slice(0,-6)),o(`const ${k2(l,t)} = ${s}(${JSON.stringify(l)}${d?", true":""})${r?"!":""}`),a<e.length-1&&i()}}function e$e(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o();for(let i=0;i<e.length;i++){const r=e[i];r&&(n(`const _hoisted_${i+1} = `),ga(r,t),o())}t.pure=!1}function hx(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),g3(e,t,n),n&&t.deindent(),t.push("]")}function g3(e,t,n=!1,o=!0){const{push:i,newline:r}=t;for(let s=0;s<e.length;s++){const a=e[s];uo(a)?i(a,-3):$n(a)?hx(a,t):ga(a,t),s<e.length-1&&(n?(o&&i(","),r()):o&&i(", "))}}function ga(e,t){if(uo(e)){t.push(e,-3);return}if(xl(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:ga(e.codegenNode,t);break;case 2:t$e(e,t);break;case 4:vX(e,t);break;case 5:n$e(e,t);break;case 12:ga(e.codegenNode,t);break;case 8:_X(e,t);break;case 3:i$e(e,t);break;case 13:r$e(e,t);break;case 14:a$e(e,t);break;case 15:l$e(e,t);break;case 17:c$e(e,t);break;case 18:d$e(e,t);break;case 19:u$e(e,t);break;case 20:h$e(e,t);break;case 21:g3(e.body,t,!0,!1);break}}function t$e(e,t){t.push(JSON.stringify(e.content),-3,e)}function vX(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function n$e(e,t){const{push:n,helper:o,pure:i}=t;i&&n(c9),n(`${o(s9)}(`),ga(e.content,t),n(")")}function _X(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];uo(o)?t.push(o,-3):ga(o,t)}}function o$e(e,t){const{push:n}=t;if(e.type===8)n("["),_X(e,t),n("]");else if(e.isStatic){const o=dx(e.content)?e.content:JSON.stringify(e.content);n(o,-2,e)}else n(`[${e.content}]`,-3,e)}function i$e(e,t){const{push:n,helper:o,pure:i}=t;i&&n(c9),n(`${o(m3)}(${JSON.stringify(e.content)})`,-3,e)}function r$e(e,t){const{push:n,helper:o,pure:i}=t,{tag:r,props:s,children:a,patchFlag:l,dynamicProps:d,directives:u,isBlock:f,disableTracking:p,isComponent:v}=e;let _;l&&(_=String(l)),u&&n(o(tx)+"("),f&&n(`(${o(H1)}(${p?"true":""}), `),i&&n(c9);const k=f?z_(t.inSSR,v):F_(t.inSSR,v);n(o(k)+"(",-2,e),g3(s$e([r,s,a,_,d]),t),n(")"),f&&n(")"),u&&(n(", "),ga(u,t),n(")"))}function s$e(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function a$e(e,t){const{push:n,helper:o,pure:i}=t,r=uo(e.callee)?e.callee:o(e.callee);i&&n(c9),n(r+"(",-2,e),g3(e.arguments,t),n(")")}function l$e(e,t){const{push:n,indent:o,deindent:i,newline:r}=t,{properties:s}=e;if(!s.length){n("{}",-2,e);return}const a=s.length>1||!1;n(a?"{":"{ "),a&&o();for(let l=0;l<s.length;l++){const{key:d,value:u}=s[l];o$e(d,t),n(": "),ga(u,t),l<s.length-1&&(n(","),r())}a&&i(),n(a?"}":" }")}function c$e(e,t){hx(e.elements,t)}function d$e(e,t){const{push:n,indent:o,deindent:i}=t,{params:r,returns:s,body:a,newline:l,isSlot:d}=e;d&&n(`_${R_[sx]}(`),n("(",-2,e),$n(r)?g3(r,t):r&&ga(r,t),n(") => "),(l||a)&&(n("{"),o()),s?(l&&n("return "),$n(s)?hx(s,t):ga(s,t)):a&&ga(a,t),(l||a)&&(i(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function u$e(e,t){const{test:n,consequent:o,alternate:i,newline:r}=e,{push:s,indent:a,deindent:l,newline:d}=t;if(n.type===4){const f=!dx(n.content);f&&s("("),vX(n,t),f&&s(")")}else s("("),ga(n,t),s(")");r&&a(),t.indentLevel++,r||s(" "),s("? "),ga(o,t),t.indentLevel--,r&&d(),r||s(" "),s(": ");const u=i.type===19;u||t.indentLevel++,ga(i,t),u||t.indentLevel--,r&&l(!0)}function h$e(e,t){const{push:n,helper:o,indent:i,deindent:r,newline:s}=t,{needPauseTracking:a,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),a&&(i(),n(`${o(n5)}(-1),`),s(),n("(")),n(`_cache[${e.index}] = `),ga(e.value,t),a&&(n(`).cacheIndex = ${e.index},`),s(),n(`${o(n5)}(1),`),s(),n(`_cache[${e.index}]`),r()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const f$e=pX(/^(if|else|else-if)$/,(e,t,n)=>m$e(e,t,n,(o,i,r)=>{const s=n.parent.children;let a=s.indexOf(o),l=0;for(;a-->=0;){const d=s[a];d&&d.type===9&&(l+=d.branches.length)}return()=>{if(r)o.codegenNode=eF(i,l,n);else{const d=p$e(o.codegenNode);d.alternate=eF(i,l+o.branches.length-1,n)}}}));function m$e(e,t,n,o){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(lr(28,t.loc)),t.exp=yo("true",!1,i)}if(t.name==="if"){const i=Qj(e,t),r={type:9,loc:U5e(e.loc),branches:[i]};if(n.replaceNode(r),o)return o(r,i,!0)}else{const i=n.parent.children;let r=i.indexOf(e);for(;r-->=-1;){const s=i[r];if(s&&s.type===3){n.removeNode(s);continue}if(s&&s.type===2&&!s.content.trim().length){n.removeNode(s);continue}if(s&&s.type===9){t.name==="else-if"&&s.branches[s.branches.length-1].condition===void 0&&n.onError(lr(30,e.loc)),n.removeNode();const a=Qj(e,t);s.branches.push(a);const l=o&&o(s,a,!1);l9(a,n),l&&l(),n.currentNode=null}else n.onError(lr(30,e.loc));break}}}function Qj(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!zc(e,"for")?e.children:[e],userKey:a9(e,"key"),isTemplateIf:n}}function eF(e,t,n){return e.condition?VE(e.condition,tF(e,t,n),fs(n.helper(m3),['""',"true"])):tF(e,t,n)}function tF(e,t,n){const{helper:o}=n,i=Br("key",yo(`${t}`,!1,fc,2)),{children:r}=e,s=r[0];if(r.length!==1||s.type!==1)if(r.length===1&&s.type===11){const l=s.codegenNode;return s5(l,i,n),l}else{let l=64;return y2(n,o(v2),Bc([i]),r,l,void 0,void 0,!0,!1,!1,e.loc)}else{const l=s.codegenNode,d=A5e(l);return d.type===13&&lx(d,n),s5(d,i,n),l}}function p$e(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const g$e=(e,t,n)=>{const{modifiers:o,loc:i}=e,r=e.arg;let{exp:s}=e;if(s&&s.type===4&&!s.content.trim()&&(s=void 0),!s){if(r.type!==4||!r.isStatic)return n.onError(lr(52,r.loc)),{props:[Br(r,yo("",!0,i))]};yX(e),s=e.exp}return r.type!==4?(r.children.unshift("("),r.children.push(') || ""')):r.isStatic||(r.content=`${r.content} || ""`),o.some(a=>a.content==="camel")&&(r.type===4?r.isStatic?r.content=Zi(r.content):r.content=`${n.helperString(BE)}(${r.content})`:(r.children.unshift(`${n.helperString(BE)}(`),r.children.push(")"))),n.inSSR||(o.some(a=>a.content==="prop")&&nF(r,"."),o.some(a=>a.content==="attr")&&nF(r,"^")),{props:[Br(r,s)]}},yX=(e,t)=>{const n=e.arg,o=Zi(n.content);e.exp=yo(o,!1,n.loc)},nF=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},v$e=pX("for",(e,t,n)=>{const{helper:o,removeHelper:i}=n;return _$e(e,t,n,r=>{const s=fs(o(nx),[r.source]),a=i5(e),l=zc(e,"memo"),d=a9(e,"key",!1,!0);d&&d.type===7&&!d.exp&&yX(d);const u=d&&(d.type===6?d.value?yo(d.value.content,!0):void 0:d.exp),f=d&&u?Br("key",u):null,p=r.source.type===4&&r.source.constType>0,v=p?64:d?128:256;return r.codegenNode=y2(n,o(v2),void 0,s,v,void 0,void 0,!0,!p,!1,e.loc),()=>{let _;const{children:k}=r,C=k.length!==1||k[0].type!==1,$=r5(e)?e:a&&e.children.length===1&&r5(e.children[0])?e.children[0]:null;if($?(_=$.codegenNode,a&&f&&s5(_,f,n)):C?_=y2(n,o(v2),f?Bc([f]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(_=k[0].codegenNode,a&&f&&s5(_,f,n),_.isBlock!==!p&&(_.isBlock?(i(H1),i(z_(n.inSSR,_.isComponent))):i(F_(n.inSSR,_.isComponent))),_.isBlock=!p,_.isBlock?(o(H1),o(z_(n.inSSR,_.isComponent))):o(F_(n.inSSR,_.isComponent))),l){const E=j_(WE(r.parseResult,[yo("_cached")]));E.body=v5e([Gd(["const _memo = (",l.exp,")"]),Gd(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(tX)}(_cached, _memo)) return _cached`]),Gd(["const _item = ",_]),yo("_item.memo = _memo"),yo("return _item")]),s.arguments.push(E,yo("_cache"),yo(String(n.cached.length))),n.cached.push(null)}else s.arguments.push(j_(WE(r.parseResult),_,!0))}})});function _$e(e,t,n,o){if(!t.exp){n.onError(lr(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(lr(32,t.loc));return}bX(i);const{addIdentifiers:r,removeIdentifiers:s,scopes:a}=n,{source:l,value:d,key:u,index:f}=i,p={type:11,loc:t.loc,source:l,valueAlias:d,keyAlias:u,objectIndexAlias:f,parseResult:i,children:i5(e)?e.children:[e]};n.replaceNode(p),a.vFor++;const v=o&&o(p);return()=>{a.vFor--,v&&v()}}function bX(e,t){e.finalized||(e.finalized=!0)}function WE({value:e,key:t,index:n},o=[]){return y$e([e,t,n,...o])}function y$e(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,o)=>n||yo("_".repeat(o+1),!1))}const oF=yo("undefined",!1),b$e=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=zc(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},k$e=(e,t,n,o)=>j_(e,n,!1,!0,n.length?n[0].loc:o);function w$e(e,t,n=k$e){t.helper(sx);const{children:o,loc:i}=e,r=[],s=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=zc(e,"slot",!0);if(l){const{arg:C,exp:$}=l;C&&!Il(C)&&(a=!0),r.push(Br(C||yo("default",!0),n($,void 0,o,i)))}let d=!1,u=!1;const f=[],p=new Set;let v=0;for(let C=0;C<o.length;C++){const $=o[C];let E;if(!i5($)||!(E=zc($,"slot",!0))){$.type!==3&&f.push($);continue}if(l){t.onError(lr(37,E.loc));break}d=!0;const{children:P,loc:I}=$,{arg:O=yo("default",!0),exp:L,loc:S}=E;let j;Il(O)?j=O?O.content:"default":a=!0;const M=zc($,"for"),q=n(L,M,P,I);let B,V;if(B=zc($,"if"))a=!0,s.push(VE(B.exp,pw(O,q,v++),oF));else if(V=zc($,/^else(-if)?$/,!0)){let G=C,Q;for(;G--&&(Q=o[G],Q.type===3););if(Q&&i5(Q)&&zc(Q,/^(else-)?if$/)){let X=s[s.length-1];for(;X.alternate.type===19;)X=X.alternate;X.alternate=V.exp?VE(V.exp,pw(O,q,v++),oF):pw(O,q,v++)}else t.onError(lr(30,V.loc))}else if(M){a=!0;const G=M.forParseResult;G?(bX(G),s.push(fs(t.helper(nx),[G.source,j_(WE(G),pw(O,q),!0)]))):t.onError(lr(32,M.loc))}else{if(j){if(p.has(j)){t.onError(lr(38,S));continue}p.add(j),j==="default"&&(u=!0)}r.push(Br(O,q))}}if(!l){const C=($,E)=>{const P=n($,void 0,E,i);return t.compatConfig&&(P.isNonScopedSlot=!0),Br("default",P)};d?f.length&&f.some($=>kX($))&&(u?t.onError(lr(39,f[0].loc)):r.push(C(void 0,f))):r.push(C(void 0,o))}const _=a?2:H8(e.children)?3:1;let k=Bc(r.concat(Br("_",yo(_+"",!1))),i);return s.length&&(k=fs(t.helper(eX),[k,T1(s)])),{slots:k,hasDynamicSlots:a}}function pw(e,t,n){const o=[Br("name",e),Br("fn",t)];return n!=null&&o.push(Br("key",yo(String(n),!0))),Bc(o)}function H8(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||H8(n.children))return!0;break;case 9:if(H8(n.branches))return!0;break;case 10:case 11:if(H8(n.children))return!0;break}}return!1}function kX(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():kX(e.content)}const wX=new WeakMap,$$e=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:o,props:i}=e,r=e.tagType===1;let s=r?C$e(e,t):`"${o}"`;const a=Li(s)&&s.callee===XD;let l,d,u=0,f,p,v,_=a||s===D0||s===WD||!r&&(o==="svg"||o==="foreignObject"||o==="math");if(i.length>0){const k=$X(e,t,void 0,r,a);l=k.props,u=k.patchFlag,p=k.dynamicPropNames;const C=k.directives;v=C&&C.length?T1(C.map($=>T$e($,t))):void 0,k.shouldUseBlock&&(_=!0)}if(e.children.length>0)if(s===e5&&(_=!0,u|=1024),r&&s!==D0&&s!==e5){const{slots:C,hasDynamicSlots:$}=w$e(e,t);d=C,$&&(u|=1024)}else if(e.children.length===1&&s!==D0){const C=e.children[0],$=C.type,E=$===5||$===8;E&&ec(C,t)===0&&(u|=1),E||$===2?d=C:d=e.children}else d=e.children;p&&p.length&&(f=E$e(p)),e.codegenNode=y2(t,s,l,d,u===0?void 0:u,f,v,!!_,!1,r,e.loc)};function C$e(e,t,n=!1){let{tag:o}=e;const i=GE(o),r=a9(e,"is",!1,!0);if(r)if(i||E1("COMPILER_IS_ON_ELEMENT",t)){let a;if(r.type===6?a=r.value&&yo(r.value.content,!0):(a=r.exp,a||(a=yo("is",!1,r.arg.loc))),a)return fs(t.helper(XD),[a])}else r.type===6&&r.value.content.startsWith("vue:")&&(o=r.value.content.slice(4));const s=oX(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(JD),t.components.add(o),k2(o,"component"))}function $X(e,t,n=e.props,o,i,r=!1){const{tag:s,loc:a,children:l}=e;let d=[];const u=[],f=[],p=l.length>0;let v=!1,_=0,k=!1,C=!1,$=!1,E=!1,P=!1,I=!1;const O=[],L=q=>{d.length&&(u.push(Bc(iF(d),a)),d=[]),q&&u.push(q)},S=()=>{t.scopes.vFor>0&&d.push(Br(yo("ref_for",!0),yo("true")))},j=({key:q,value:B})=>{if(Il(q)){const V=q.content,G=sg(V);if(G&&(!o||i)&&V.toLowerCase()!=="onclick"&&V!=="onUpdate:modelValue"&&!Fm(V)&&(E=!0),G&&Fm(V)&&(I=!0),G&&B.type===14&&(B=B.arguments[0]),B.type===20||(B.type===4||B.type===8)&&ec(B,t)>0)return;V==="ref"?k=!0:V==="class"?C=!0:V==="style"?$=!0:V!=="key"&&!O.includes(V)&&O.push(V),o&&(V==="class"||V==="style")&&!O.includes(V)&&O.push(V)}else P=!0};for(let q=0;q<n.length;q++){const B=n[q];if(B.type===6){const{loc:V,name:G,nameLoc:Q,value:X}=B;let Y=!0;if(G==="ref"&&(k=!0,S()),G==="is"&&(GE(s)||X&&X.content.startsWith("vue:")||E1("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(Br(yo(G,!0,Q),yo(X?X.content:"",Y,X?X.loc:V)))}else{const{name:V,arg:G,exp:Q,loc:X,modifiers:Y}=B,Z=V==="bind",se=V==="on";if(V==="slot"){o||t.onError(lr(40,X));continue}if(V==="once"||V==="memo"||V==="is"||Z&&u1(G,"is")&&(GE(s)||E1("COMPILER_IS_ON_ELEMENT",t))||se&&r)continue;if((Z&&u1(G,"key")||se&&p&&u1(G,"vue:before-update"))&&(v=!0),Z&&u1(G,"ref")&&S(),!G&&(Z||se)){if(P=!0,Q)if(Z){if(S(),L(),E1("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(Q);continue}u.push(Q)}else L({type:14,loc:X,callee:t.helper(rx),arguments:o?[Q]:[Q,"true"]});else t.onError(lr(Z?34:35,X));continue}Z&&Y.some(te=>te.content==="prop")&&(_|=32);const ce=t.directiveTransforms[V];if(ce){const{props:te,needRuntime:ee}=ce(B,e,t);!r&&te.forEach(j),se&&G&&!Il(G)?L(Bc(te,a)):d.push(...te),ee&&(f.push(B),xl(ee)&&wX.set(B,ee))}else Rwe(V)||(f.push(B),p&&(v=!0))}}let M;if(u.length?(L(),u.length>1?M=fs(t.helper(t5),u,a):M=u[0]):d.length&&(M=Bc(iF(d),a)),P?_|=16:(C&&!o&&(_|=2),$&&!o&&(_|=4),O.length&&(_|=8),E&&(_|=32)),!v&&(_===0||_===32)&&(k||I||f.length>0)&&(_|=512),!t.inSSR&&M)switch(M.type){case 15:let q=-1,B=-1,V=!1;for(let X=0;X<M.properties.length;X++){const Y=M.properties[X].key;Il(Y)?Y.content==="class"?q=X:Y.content==="style"&&(B=X):Y.isHandlerKey||(V=!0)}const G=M.properties[q],Q=M.properties[B];V?M=fs(t.helper(_2),[M]):(G&&!Il(G.value)&&(G.value=fs(t.helper(ox),[G.value])),Q&&($||Q.value.type===4&&Q.value.content.trim()[0]==="["||Q.value.type===17)&&(Q.value=fs(t.helper(ix),[Q.value])));break;case 14:break;default:M=fs(t.helper(_2),[fs(t.helper(p3),[M])]);break}return{props:M,directives:f,patchFlag:_,dynamicPropNames:O,shouldUseBlock:v}}function iF(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const i=e[o];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const r=i.key.content,s=t.get(r);s?(r==="style"||r==="class"||sg(r))&&S$e(s,i):(t.set(r,i),n.push(i))}return n}function S$e(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=T1([e.value,t.value],e.loc)}function T$e(e,t){const n=[],o=wX.get(e);o?n.push(t.helperString(o)):(t.helper(QD),t.directives.add(e.name),n.push(k2(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const r=yo("true",!1,i);n.push(Bc(e.modifiers.map(s=>Br(s,r)),i))}return T1(n,e.loc)}function E$e(e){let t="[";for(let n=0,o=e.length;n<o;n++)t+=JSON.stringify(e[n]),n<o-1&&(t+=", ");return t+"]"}function GE(e){return e==="component"||e==="Component"}const I$e=(e,t)=>{if(r5(e)){const{children:n,loc:o}=e,{slotName:i,slotProps:r}=P$e(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;r&&(s[2]=r,a=3),n.length&&(s[3]=j_([],n,!1,!1,o),a=4),t.scopeId&&!t.slotted&&(a=5),s.splice(a),e.codegenNode=fs(t.helper(QJ),s,o)}};function P$e(e,t){let n='"default"',o;const i=[];for(let r=0;r<e.props.length;r++){const s=e.props[r];if(s.type===6)s.value&&(s.name==="name"?n=JSON.stringify(s.value.content):(s.name=Zi(s.name),i.push(s)));else if(s.name==="bind"&&u1(s.arg,"name")){if(s.exp)n=s.exp;else if(s.arg&&s.arg.type===4){const a=Zi(s.arg.content);n=s.exp=yo(a,!1,s.arg.loc)}}else s.name==="bind"&&s.arg&&Il(s.arg)&&(s.arg.content=Zi(s.arg.content)),i.push(s)}if(i.length>0){const{props:r,directives:s}=$X(e,t,i,!1,!1);o=r,s.length&&t.onError(lr(36,s[0].loc))}return{slotName:n,slotProps:o}}const CX=(e,t,n,o)=>{const{loc:i,modifiers:r,arg:s}=e;!e.exp&&!r.length&&n.onError(lr(35,i));let a;if(s.type===4)if(s.isStatic){let f=s.content;f.startsWith("vue:")&&(f=`vnode-${f.slice(4)}`);const p=t.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?$1(Zi(f)):`on:${f}`;a=yo(p,!0,s.loc)}else a=Gd([`${n.helperString(HE)}(`,s,")"]);else a=s,a.children.unshift(`${n.helperString(HE)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let d=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const f=rX(l),p=!(f||T5e(l)),v=l.content.includes(";");(p||d&&f)&&(l=Gd([`${p?"$event":"(...args)"} => ${v?"{":"("}`,l,v?"}":")"]))}let u={props:[Br(a,l||yo("() => {}",!1,i))]};return o&&(u=o(u)),d&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(f=>f.key.isHandlerKey=!0),u},A$e=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let o,i=!1;for(let r=0;r<n.length;r++){const s=n[r];if(G7(s)){i=!0;for(let a=r+1;a<n.length;a++){const l=n[a];if(G7(l))o||(o=n[r]=Gd([s],s.loc)),o.children.push(" + ",l),n.splice(a,1),a--;else{o=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(r=>r.type===7&&!t.directiveTransforms[r.name])&&e.tag!=="template")))for(let r=0;r<n.length;r++){const s=n[r];if(G7(s)||s.type===8){const a=[];(s.type!==2||s.content!==" ")&&a.push(s),!t.ssr&&ec(s,t)===0&&a.push("1"),n[r]={type:12,content:s,loc:s.loc,codegenNode:fs(t.helper(KD),a)}}}}},rF=new WeakSet,D$e=(e,t)=>{if(e.type===1&&zc(e,"once",!0))return rF.has(e)||t.inVOnce||t.inSSR?void 0:(rF.add(e),t.inVOnce=!0,t.helper(n5),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},SX=(e,t,n)=>{const{exp:o,arg:i}=e;if(!o)return n.onError(lr(41,e.loc)),gw();const r=o.loc.source.trim(),s=o.type===4?o.content:r,a=n.bindingMetadata[r];if(a==="props"||a==="props-aliased")return n.onError(lr(44,o.loc)),gw();const l=!1;if(!s.trim()||!rX(o)&&!l)return n.onError(lr(42,o.loc)),gw();const d=i||yo("modelValue",!0),u=i?Il(i)?`onUpdate:${Zi(i.content)}`:Gd(['"onUpdate:" + ',i]):"onUpdate:modelValue";let f;const p=n.isTS?"($event: any)":"$event";f=Gd([`${p} => ((`,o,") = $event)"]);const v=[Br(d,e.exp),Br(u,f)];if(e.modifiers.length&&t.tagType===1){const _=e.modifiers.map(C=>C.content).map(C=>(dx(C)?C:JSON.stringify(C))+": true").join(", "),k=i?Il(i)?`${i.content}Modifiers`:Gd([i,' + "Modifiers"']):"modelModifiers";v.push(Br(k,yo(`{ ${_} }`,!1,e.loc,2)))}return gw(v)};function gw(e=[]){return{props:e}}const x$e=/[\w).+\-_$\]]/,O$e=(e,t)=>{E1("COMPILER_FILTERS",t)&&(e.type===5?a5(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&a5(n.exp,t)}))};function a5(e,t){if(e.type===4)sF(e,t);else for(let n=0;n<e.children.length;n++){const o=e.children[n];typeof o=="object"&&(o.type===4?sF(o,t):o.type===8?a5(e,t):o.type===5&&a5(o.content,t))}}function sF(e,t){const n=e.content;let o=!1,i=!1,r=!1,s=!1,a=0,l=0,d=0,u=0,f,p,v,_,k=[];for(v=0;v<n.length;v++)if(p=f,f=n.charCodeAt(v),o)f===39&&p!==92&&(o=!1);else if(i)f===34&&p!==92&&(i=!1);else if(r)f===96&&p!==92&&(r=!1);else if(s)f===47&&p!==92&&(s=!1);else if(f===124&&n.charCodeAt(v+1)!==124&&n.charCodeAt(v-1)!==124&&!a&&!l&&!d)_===void 0?(u=v+1,_=n.slice(0,v).trim()):C();else{switch(f){case 34:i=!0;break;case 39:o=!0;break;case 96:r=!0;break;case 40:d++;break;case 41:d--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(f===47){let $=v-1,E;for(;$>=0&&(E=n.charAt($),E===" ");$--);(!E||!x$e.test(E))&&(s=!0)}}_===void 0?_=n.slice(0,v).trim():u!==0&&C();function C(){k.push(n.slice(u,v).trim()),u=v+1}if(k.length){for(v=0;v<k.length;v++)_=L$e(_,k[v],t);e.content=_,e.ast=void 0}}function L$e(e,t,n){n.helper(ex);const o=t.indexOf("(");if(o<0)return n.filters.add(t),`${k2(t,"filter")}(${e})`;{const i=t.slice(0,o),r=t.slice(o+1);return n.filters.add(i),`${k2(i,"filter")}(${e}${r!==")"?","+r:r}`}}const aF=new WeakSet,M$e=(e,t)=>{if(e.type===1){const n=zc(e,"memo");return!n||aF.has(e)?void 0:(aF.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&o.type===13&&(e.tagType!==1&&lx(o,t),e.codegenNode=fs(t.helper(ax),[n.exp,j_(void 0,o),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function N$e(e){return[[D$e,f$e,M$e,v$e,O$e,I$e,$$e,b$e,A$e],{on:CX,bind:g$e,model:SX}]}function R$e(e,t={}){const n=t.onError||cx,o=t.mode==="module";t.prefixIdentifiers===!0?n(lr(47)):o&&n(lr(48));const i=!1;t.cacheHandlers&&n(lr(49)),t.scopeId&&!o&&n(lr(50));const r=ei({},t,{prefixIdentifiers:i}),s=uo(e)?V5e(e,r):e,[a,l]=N$e();return G5e(s,ei({},r,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:ei({},l,t.directiveTransforms||{})})),X5e(s,r)}const j$e=()=>({props:[]});/** * @vue/compiler-dom v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const TX=Symbol(""),EX=Symbol(""),IX=Symbol(""),PX=Symbol(""),ZE=Symbol(""),AX=Symbol(""),DX=Symbol(""),xX=Symbol(""),OX=Symbol(""),LX=Symbol("");m5e({[TX]:"vModelRadio",[EX]:"vModelCheckbox",[IX]:"vModelText",[PX]:"vModelSelect",[ZE]:"vModelDynamic",[AX]:"withModifiers",[DX]:"withKeys",[xX]:"vShow",[OX]:"Transition",[LX]:"TransitionGroup"});let cv;function F$e(e,t=!1){return cv||(cv=document.createElement("div")),t?(cv.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,cv.children[0].getAttribute("foo")):(cv.innerHTML=e,cv.textContent)}const z$e={parseMode:"html",isVoidTag:Qwe,isNativeTag:e=>Kwe(e)||Jwe(e)||Xwe(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:F$e,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return OX;if(e==="TransitionGroup"||e==="transition-group")return LX},getNamespace(e,t,n){let o=t?t.ns:n;if(t&&o===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(o=0);else t&&o===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(o=0);if(o===0){if(e==="svg")return 1;if(e==="math")return 2}return o}},U$e=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:yo("style",!0,t.loc),exp:B$e(t.value.content,t.loc),modifiers:[],loc:t.loc})})},B$e=(e,t)=>{const n=SZ(e);return yo(JSON.stringify(n),!1,t,3)};function Bm(e,t){return lr(e,t)}const H$e=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Bm(53,i)),t.children.length&&(n.onError(Bm(54,i)),t.children.length=0),{props:[Br(yo("innerHTML",!0,i),o||yo("",!0))]}},V$e=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Bm(55,i)),t.children.length&&(n.onError(Bm(56,i)),t.children.length=0),{props:[Br(yo("textContent",!0),o?ec(o,n)>0?o:fs(n.helperString(s9),[o],i):yo("",!0))]}},q$e=(e,t,n)=>{const o=SX(e,t,n);if(!o.props.length||t.tagType===1)return o;e.arg&&n.onError(Bm(58,e.arg.loc));const{tag:i}=t,r=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||r){let s=IX,a=!1;if(i==="input"||r){const l=a9(t,"type");if(l){if(l.type===7)s=ZE;else if(l.value)switch(l.value.content){case"radio":s=TX;break;case"checkbox":s=EX;break;case"file":a=!0,n.onError(Bm(59,e.loc));break}}else E5e(t)&&(s=ZE)}else i==="select"&&(s=PX);a||(o.needRuntime=n.helper(s))}else n.onError(Bm(57,e.loc));return o.props=o.props.filter(s=>!(s.key.type===4&&s.key.content==="modelValue")),o},Y$e=uc("passive,once,capture"),W$e=uc("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),G$e=uc("left,right"),MX=uc("onkeyup,onkeydown,onkeypress"),Z$e=(e,t,n,o)=>{const i=[],r=[],s=[];for(let a=0;a<t.length;a++){const l=t[a].content;l==="native"&&b2("COMPILER_V_ON_NATIVE",n)||Y$e(l)?s.push(l):G$e(l)?Il(e)?MX(e.content.toLowerCase())?i.push(l):r.push(l):(i.push(l),r.push(l)):W$e(l)?r.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:r,eventOptionModifiers:s}},lF=(e,t)=>Il(e)&&e.content.toLowerCase()==="onclick"?yo(t,!0):e.type!==4?Gd(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,K$e=(e,t,n)=>CX(e,t,n,o=>{const{modifiers:i}=e;if(!i.length)return o;let{key:r,value:s}=o.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:d}=Z$e(r,i,n,e.loc);if(l.includes("right")&&(r=lF(r,"onContextmenu")),l.includes("middle")&&(r=lF(r,"onMouseup")),l.length&&(s=fs(n.helper(AX),[s,JSON.stringify(l)])),a.length&&(!Il(r)||MX(r.content.toLowerCase()))&&(s=fs(n.helper(DX),[s,JSON.stringify(a)])),d.length){const u=d.map(lp).join("");r=Il(r)?yo(`${r.content}${u}`,!0):Gd(["(",r,`) + "${u}"`])}return{props:[Br(r,s)]}}),J$e=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Bm(61,i)),{props:[],needRuntime:n.helper(xX)}},X$e=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},Q$e=[U$e],e9e={cloak:j$e,html:H$e,text:V$e,model:q$e,on:K$e,show:J$e};function t9e(e,t={}){return R$e(e,ei({},z$e,t,{nodeTransforms:[X$e,...Q$e,...t.nodeTransforms||[]],directiveTransforms:ei({},e9e,t.directiveTransforms||{}),transformHoist:null}))}/** * vue v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const cF=Object.create(null);function NX(e,t){if(!uo(e))if(e.nodeType)e=e.innerHTML;else return Ks;const n=zwe(e,t),o=cF[n];if(o)return o;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const i=ei({hoistStatic:!0,onError:void 0,onWarn:Ks},t);!i.isCustomElement&&typeof customElements<"u"&&(i.isCustomElement=a=>!!customElements.get(a));const{code:r}=t9e(e,i),s=new Function("Vue",r)(l5e);return s._rc=!0,cF[n]=s}jD(NX);const n9e=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:pD,BaseTransitionPropsValidators:t9,Comment:zr,DeprecationTypes:TJ,EffectScope:B$,ErrorCodes:oK,ErrorTypeStrings:bJ,Fragment:pe,KeepAlive:wK,ReactiveEffect:x_,Static:Um,Suspense:iJ,Teleport:dK,Text:Wu,TrackOpTypes:XZ,Transition:nd,TransitionGroup:r9,TriggerOpTypes:QZ,VueElement:u3,assertNumber:nK,callWithAsyncErrorHandling:cc,callWithErrorHandling:lg,camelize:Zi,capitalize:lp,cloneVNode:eu,compatUtils:SJ,compile:NX,computed:dt,createApp:N_,createBlock:W,createCommentVNode:D,createElementBlock:g,createElementVNode:c,createHydrationRenderer:AD,createPropsRestProxy:RK,createRenderer:PD,createSSRApp:YD,createSlots:os,createStaticVNode:wl,createTextVNode:z,createVNode:b,customRef:dD,defineAsyncComponent:kK,defineComponent:xo,defineCustomElement:BD,defineEmits:TK,defineExpose:EK,defineModel:AK,defineOptions:IK,defineProps:SK,defineSSRCustomElement:MJ,defineSlots:PK,devtools:kJ,effect:MZ,effectScope:H$,getCurrentInstance:pr,getCurrentScope:rD,getCurrentWatcher:eK,getTransitionRawChildren:a3,guardReactiveProps:Ws,h:tu,handleError:up,hasInjectionContext:UK,hydrate:qJ,hydrateOnIdle:vK,hydrateOnInteraction:bK,hydrateOnMediaQuery:yK,hydrateOnVisible:_K,initCustomFormatter:vJ,initDirectivesForSSR:GJ,inject:ts,isMemoSame:FD,isProxy:s3,isReactive:qu,isReadonly:nh,isRef:Oi,isRuntimeOnly:mJ,isShallow:Al,isVNode:ih,markRaw:cD,mergeDefaults:MK,mergeModels:NK,mergeProps:Ur,nextTick:fa,normalizeClass:J,normalizeProps:hs,normalizeStyle:Bn,onActivated:vD,onBeforeMount:by,onBeforeUnmount:cg,onBeforeUpdate:yD,onDeactivated:_D,onErrorCaptured:$D,onMounted:Ha,onRenderTracked:wD,onRenderTriggered:kD,onScopeDispose:PZ,onServerPrefetch:bD,onUnmounted:cu,onUpdated:ky,onWatcherCleanup:hD,openBlock:h,popScopeId:Q$,provide:ic,proxyRefs:K$,pushScopeId:X$,queuePostFlushCb:h2,reactive:hc,readonly:G$,ref:In,registerRuntimeCompiler:jD,render:qD,renderList:Me,renderSlot:Pt,resolveComponent:y,resolveDirective:an,resolveDynamicComponent:Dl,resolveFilter:CJ,resolveTransitionHooks:z1,setBlockTracking:G4,setDevtoolsHook:wJ,setTransitionHooks:oh,shallowReactive:W$,shallowReadonly:WZ,shallowRef:yy,ssrContextKey:xD,ssrUtils:$J,stop:NZ,toDisplayString:m,toHandlerKey:$1,toHandlers:Yu,toRaw:si,toRef:f_,toRefs:uD,toValue:KZ,transformVNodeArgs:cJ,triggerRef:ZZ,unref:Et,useAttrs:OK,useCssModule:RJ,useCssVars:UD,useHost:HD,useId:pK,useModel:tJ,useSSRContext:OD,useShadowRoot:NJ,useSlots:xK,useTemplateRef:gK,useTransitionState:e9,vModelCheckbox:h3,vModelDynamic:f3,vModelRadio:Df,vModelSelect:VD,vModelText:wt,vShow:Vo,version:zD,warn:yJ,watch:Co,watchEffect:o9,watchPostEffect:LD,watchSyncEffect:MD,withAsyncContext:jK,withCtx:F,withDefaults:DK,withDirectives:xe,withKeys:bs,withMemo:_J,withModifiers:Gt,withScopeId:mD},Symbol.toStringTag,{value:"Module"}));/*! * shared v9.14.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const l5=typeof window<"u",hp=(e,t=!1)=>t?Symbol.for(e):Symbol(e),o9e=(e,t,n)=>i9e({l:e,k:t,s:n}),i9e=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ps=e=>typeof e=="number"&&isFinite(e),r9e=e=>jX(e)==="[object Date]",tp=e=>jX(e)==="[object RegExp]",d9=e=>ao(e)&&Object.keys(e).length===0,Js=Object.assign;let dF;const Qh=()=>dF||(dF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function uF(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const s9e=Object.prototype.hasOwnProperty;function c5(e,t){return s9e.call(e,t)}const Xi=Array.isArray,Gi=e=>typeof e=="function",yn=e=>typeof e=="string",Uo=e=>typeof e=="boolean",gi=e=>e!==null&&typeof e=="object",a9e=e=>gi(e)&&Gi(e.then)&&Gi(e.catch),RX=Object.prototype.toString,jX=e=>RX.call(e),ao=e=>{if(!gi(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},l9e=e=>e==null?"":Xi(e)||ao(e)&&e.toString===RX?JSON.stringify(e,null,2):String(e);function c9e(e,t=""){return e.reduce((n,o,i)=>i===0?n+o:n+t+o,"")}function u9(e){let t=e;return()=>++t}function d9e(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const vw=e=>!gi(e)||Xi(e);function V8(e,t){if(vw(e)||vw(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:o,des:i}=n.pop();Object.keys(o).forEach(r=>{gi(o[r])&&!gi(i[r])&&(i[r]=Array.isArray(o[r])?[]:{}),vw(i[r])||vw(o[r])?i[r]=o[r]:n.push({src:o[r],des:i[r]})})}}/*! * message-compiler v9.14.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function u9e(e,t,n){return{line:e,column:t,offset:n}}function d5(e,t,n){const o={start:e,end:t};return n!=null&&(o.source=n),o}const h9e=/\{([0-9a-zA-Z]+)\}/g;function FX(e,...t){return t.length===1&&f9e(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(h9e,(n,o)=>t.hasOwnProperty(o)?t[o]:"")}const zX=Object.assign,hF=e=>typeof e=="string",f9e=e=>e!==null&&typeof e=="object";function UX(e,t=""){return e.reduce((n,o,i)=>i===0?n+o:n+t+o,"")}const fx={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},m9e={[fx.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function p9e(e,t,...n){const o=FX(m9e[e]||"",...n||[]),i={message:String(o),code:e};return t&&(i.location=t),i}const Xn={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},g9e={[Xn.EXPECTED_TOKEN]:"Expected token: '{0}'",[Xn.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Xn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Xn.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Xn.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Xn.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Xn.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Xn.EMPTY_PLACEHOLDER]:"Empty placeholder",[Xn.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Xn.INVALID_LINKED_FORMAT]:"Invalid linked format",[Xn.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Xn.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Xn.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Xn.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Xn.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Xn.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function wy(e,t,n={}){const{domain:o,messages:i,args:r}=n,s=FX((i||g9e)[e]||"",...r||[]),a=new SyntaxError(String(s));return a.code=e,t&&(a.location=t),a.domain=o,a}function v9e(e){throw e}const jh=" ",_9e="\r",Pa=` `,y9e=String.fromCharCode(8232),b9e=String.fromCharCode(8233);function k9e(e){const t=e;let n=0,o=1,i=1,r=0;const s=S=>t[S]===_9e&&t[S+1]===Pa,a=S=>t[S]===Pa,l=S=>t[S]===b9e,d=S=>t[S]===y9e,u=S=>s(S)||a(S)||l(S)||d(S),f=()=>n,p=()=>o,v=()=>i,_=()=>r,k=S=>s(S)||l(S)||d(S)?Pa:t[S],C=()=>k(n),$=()=>k(n+r);function E(){return r=0,u(n)&&(o++,i=0),s(n)&&n++,n++,i++,t[n]}function P(){return s(n+r)&&r++,r++,t[n+r]}function I(){n=0,o=1,i=1,r=0}function O(S=0){r=S}function L(){const S=n+r;for(;S!==n;)E();r=0}return{index:f,line:p,column:v,peekOffset:_,charAt:k,currentChar:C,currentPeek:$,next:E,peek:P,reset:I,resetPeek:O,skipToPeek:L}}const nm=void 0,w9e=".",fF="'",$9e="tokenizer";function C9e(e,t={}){const n=t.location!==!1,o=k9e(e),i=()=>o.index(),r=()=>u9e(o.line(),o.column(),o.index()),s=r(),a=i(),l={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},d=()=>l,{onError:u}=t;function f(ge,ye,Te,...gt){const yt=d();if(ye.column+=Te,ye.offset+=Te,u){const Xe=n?d5(yt.startLoc,ye):null,Ze=wy(ge,Xe,{domain:$9e,args:gt});u(Ze)}}function p(ge,ye,Te){ge.endLoc=r(),ge.currentType=ye;const gt={type:ye};return n&&(gt.loc=d5(ge.startLoc,ge.endLoc)),Te!=null&&(gt.value=Te),gt}const v=ge=>p(ge,14);function _(ge,ye){return ge.currentChar()===ye?(ge.next(),ye):(f(Xn.EXPECTED_TOKEN,r(),0,ye),"")}function k(ge){let ye="";for(;ge.currentPeek()===jh||ge.currentPeek()===Pa;)ye+=ge.currentPeek(),ge.peek();return ye}function C(ge){const ye=k(ge);return ge.skipToPeek(),ye}function $(ge){if(ge===nm)return!1;const ye=ge.charCodeAt(0);return ye>=97&&ye<=122||ye>=65&&ye<=90||ye===95}function E(ge){if(ge===nm)return!1;const ye=ge.charCodeAt(0);return ye>=48&&ye<=57}function P(ge,ye){const{currentType:Te}=ye;if(Te!==2)return!1;k(ge);const gt=$(ge.currentPeek());return ge.resetPeek(),gt}function I(ge,ye){const{currentType:Te}=ye;if(Te!==2)return!1;k(ge);const gt=ge.currentPeek()==="-"?ge.peek():ge.currentPeek(),yt=E(gt);return ge.resetPeek(),yt}function O(ge,ye){const{currentType:Te}=ye;if(Te!==2)return!1;k(ge);const gt=ge.currentPeek()===fF;return ge.resetPeek(),gt}function L(ge,ye){const{currentType:Te}=ye;if(Te!==8)return!1;k(ge);const gt=ge.currentPeek()===".";return ge.resetPeek(),gt}function S(ge,ye){const{currentType:Te}=ye;if(Te!==9)return!1;k(ge);const gt=$(ge.currentPeek());return ge.resetPeek(),gt}function j(ge,ye){const{currentType:Te}=ye;if(!(Te===8||Te===12))return!1;k(ge);const gt=ge.currentPeek()===":";return ge.resetPeek(),gt}function M(ge,ye){const{currentType:Te}=ye;if(Te!==10)return!1;const gt=()=>{const Xe=ge.currentPeek();return Xe==="{"?$(ge.peek()):Xe==="@"||Xe==="%"||Xe==="|"||Xe===":"||Xe==="."||Xe===jh||!Xe?!1:Xe===Pa?(ge.peek(),gt()):V(ge,!1)},yt=gt();return ge.resetPeek(),yt}function q(ge){k(ge);const ye=ge.currentPeek()==="|";return ge.resetPeek(),ye}function B(ge){const ye=k(ge),Te=ge.currentPeek()==="%"&&ge.peek()==="{";return ge.resetPeek(),{isModulo:Te,hasSpace:ye.length>0}}function V(ge,ye=!0){const Te=(yt=!1,Xe="",Ze=!1)=>{const vt=ge.currentPeek();return vt==="{"?Xe==="%"?!1:yt:vt==="@"||!vt?Xe==="%"?!0:yt:vt==="%"?(ge.peek(),Te(yt,"%",!0)):vt==="|"?Xe==="%"||Ze?!0:!(Xe===jh||Xe===Pa):vt===jh?(ge.peek(),Te(!0,jh,Ze)):vt===Pa?(ge.peek(),Te(!0,Pa,Ze)):!0},gt=Te();return ye&&ge.resetPeek(),gt}function G(ge,ye){const Te=ge.currentChar();return Te===nm?nm:ye(Te)?(ge.next(),Te):null}function Q(ge){const ye=ge.charCodeAt(0);return ye>=97&&ye<=122||ye>=65&&ye<=90||ye>=48&&ye<=57||ye===95||ye===36}function X(ge){return G(ge,Q)}function Y(ge){const ye=ge.charCodeAt(0);return ye>=97&&ye<=122||ye>=65&&ye<=90||ye>=48&&ye<=57||ye===95||ye===36||ye===45}function Z(ge){return G(ge,Y)}function se(ge){const ye=ge.charCodeAt(0);return ye>=48&&ye<=57}function ce(ge){return G(ge,se)}function te(ge){const ye=ge.charCodeAt(0);return ye>=48&&ye<=57||ye>=65&&ye<=70||ye>=97&&ye<=102}function ee(ge){return G(ge,te)}function ae(ge){let ye="",Te="";for(;ye=ce(ge);)Te+=ye;return Te}function de(ge){C(ge);const ye=ge.currentChar();return ye!=="%"&&f(Xn.EXPECTED_TOKEN,r(),0,ye),ge.next(),"%"}function $e(ge){let ye="";for(;;){const Te=ge.currentChar();if(Te==="{"||Te==="}"||Te==="@"||Te==="|"||!Te)break;if(Te==="%")if(V(ge))ye+=Te,ge.next();else break;else if(Te===jh||Te===Pa)if(V(ge))ye+=Te,ge.next();else{if(q(ge))break;ye+=Te,ge.next()}else ye+=Te,ge.next()}return ye}function be(ge){C(ge);let ye="",Te="";for(;ye=Z(ge);)Te+=ye;return ge.currentChar()===nm&&f(Xn.UNTERMINATED_CLOSING_BRACE,r(),0),Te}function me(ge){C(ge);let ye="";return ge.currentChar()==="-"?(ge.next(),ye+=`-${ae(ge)}`):ye+=ae(ge),ge.currentChar()===nm&&f(Xn.UNTERMINATED_CLOSING_BRACE,r(),0),ye}function fe(ge){return ge!==fF&&ge!==Pa}function Ae(ge){C(ge),_(ge,"'");let ye="",Te="";for(;ye=G(ge,fe);)ye==="\\"?Te+=je(ge):Te+=ye;const gt=ge.currentChar();return gt===Pa||gt===nm?(f(Xn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),gt===Pa&&(ge.next(),_(ge,"'")),Te):(_(ge,"'"),Te)}function je(ge){const ye=ge.currentChar();switch(ye){case"\\":case"'":return ge.next(),`\\${ye}`;case"u":return Ye(ge,ye,4);case"U":return Ye(ge,ye,6);default:return f(Xn.UNKNOWN_ESCAPE_SEQUENCE,r(),0,ye),""}}function Ye(ge,ye,Te){_(ge,ye);let gt="";for(let yt=0;yt<Te;yt++){const Xe=ee(ge);if(!Xe){f(Xn.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${ye}${gt}${ge.currentChar()}`);break}gt+=Xe}return`\\${ye}${gt}`}function _t(ge){return ge!=="{"&&ge!=="}"&&ge!==jh&&ge!==Pa}function xt(ge){C(ge);let ye="",Te="";for(;ye=G(ge,_t);)Te+=ye;return Te}function we(ge){let ye="",Te="";for(;ye=X(ge);)Te+=ye;return Te}function ve(ge){const ye=Te=>{const gt=ge.currentChar();return gt==="{"||gt==="%"||gt==="@"||gt==="|"||gt==="("||gt===")"||!gt||gt===jh?Te:(Te+=gt,ge.next(),ye(Te))};return ye("")}function qe(ge){C(ge);const ye=_(ge,"|");return C(ge),ye}function $t(ge,ye){let Te=null;switch(ge.currentChar()){case"{":return ye.braceNest>=1&&f(Xn.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),ge.next(),Te=p(ye,2,"{"),C(ge),ye.braceNest++,Te;case"}":return ye.braceNest>0&&ye.currentType===2&&f(Xn.EMPTY_PLACEHOLDER,r(),0),ge.next(),Te=p(ye,3,"}"),ye.braceNest--,ye.braceNest>0&&C(ge),ye.inLinked&&ye.braceNest===0&&(ye.inLinked=!1),Te;case"@":return ye.braceNest>0&&f(Xn.UNTERMINATED_CLOSING_BRACE,r(),0),Te=ut(ge,ye)||v(ye),ye.braceNest=0,Te;default:{let yt=!0,Xe=!0,Ze=!0;if(q(ge))return ye.braceNest>0&&f(Xn.UNTERMINATED_CLOSING_BRACE,r(),0),Te=p(ye,1,qe(ge)),ye.braceNest=0,ye.inLinked=!1,Te;if(ye.braceNest>0&&(ye.currentType===5||ye.currentType===6||ye.currentType===7))return f(Xn.UNTERMINATED_CLOSING_BRACE,r(),0),ye.braceNest=0,Ve(ge,ye);if(yt=P(ge,ye))return Te=p(ye,5,be(ge)),C(ge),Te;if(Xe=I(ge,ye))return Te=p(ye,6,me(ge)),C(ge),Te;if(Ze=O(ge,ye))return Te=p(ye,7,Ae(ge)),C(ge),Te;if(!yt&&!Xe&&!Ze)return Te=p(ye,13,xt(ge)),f(Xn.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,Te.value),C(ge),Te;break}}return Te}function ut(ge,ye){const{currentType:Te}=ye;let gt=null;const yt=ge.currentChar();switch((Te===8||Te===9||Te===12||Te===10)&&(yt===Pa||yt===jh)&&f(Xn.INVALID_LINKED_FORMAT,r(),0),yt){case"@":return ge.next(),gt=p(ye,8,"@"),ye.inLinked=!0,gt;case".":return C(ge),ge.next(),p(ye,9,".");case":":return C(ge),ge.next(),p(ye,10,":");default:return q(ge)?(gt=p(ye,1,qe(ge)),ye.braceNest=0,ye.inLinked=!1,gt):L(ge,ye)||j(ge,ye)?(C(ge),ut(ge,ye)):S(ge,ye)?(C(ge),p(ye,12,we(ge))):M(ge,ye)?(C(ge),yt==="{"?$t(ge,ye)||gt:p(ye,11,ve(ge))):(Te===8&&f(Xn.INVALID_LINKED_FORMAT,r(),0),ye.braceNest=0,ye.inLinked=!1,Ve(ge,ye))}}function Ve(ge,ye){let Te={type:14};if(ye.braceNest>0)return $t(ge,ye)||v(ye);if(ye.inLinked)return ut(ge,ye)||v(ye);switch(ge.currentChar()){case"{":return $t(ge,ye)||v(ye);case"}":return f(Xn.UNBALANCED_CLOSING_BRACE,r(),0),ge.next(),p(ye,3,"}");case"@":return ut(ge,ye)||v(ye);default:{if(q(ge))return Te=p(ye,1,qe(ge)),ye.braceNest=0,ye.inLinked=!1,Te;const{isModulo:yt,hasSpace:Xe}=B(ge);if(yt)return Xe?p(ye,0,$e(ge)):p(ye,4,de(ge));if(V(ge))return p(ye,0,$e(ge));break}}return Te}function tt(){const{currentType:ge,offset:ye,startLoc:Te,endLoc:gt}=l;return l.lastType=ge,l.lastOffset=ye,l.lastStartLoc=Te,l.lastEndLoc=gt,l.offset=i(),l.startLoc=r(),o.currentChar()===nm?p(l,14):Ve(o,l)}return{nextToken:tt,currentOffset:i,currentPosition:r,context:d}}const S9e="parser",T9e=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function E9e(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(t||n,16);return o<=55295||o>=57344?String.fromCodePoint(o):"ďż˝"}}}function I9e(e={}){const t=e.location!==!1,{onError:n,onWarn:o}=e;function i(P,I,O,L,...S){const j=P.currentPosition();if(j.offset+=L,j.column+=L,n){const M=t?d5(O,j):null,q=wy(I,M,{domain:S9e,args:S});n(q)}}function r(P,I,O,L,...S){const j=P.currentPosition();if(j.offset+=L,j.column+=L,o){const M=t?d5(O,j):null;o(p9e(I,M,S))}}function s(P,I,O){const L={type:P};return t&&(L.start=I,L.end=I,L.loc={start:O,end:O}),L}function a(P,I,O,L){L&&(P.type=L),t&&(P.end=I,P.loc&&(P.loc.end=O))}function l(P,I){const O=P.context(),L=s(3,O.offset,O.startLoc);return L.value=I,a(L,P.currentOffset(),P.currentPosition()),L}function d(P,I){const O=P.context(),{lastOffset:L,lastStartLoc:S}=O,j=s(5,L,S);return j.index=parseInt(I,10),P.nextToken(),a(j,P.currentOffset(),P.currentPosition()),j}function u(P,I,O){const L=P.context(),{lastOffset:S,lastStartLoc:j}=L,M=s(4,S,j);return M.key=I,O===!0&&(M.modulo=!0),P.nextToken(),a(M,P.currentOffset(),P.currentPosition()),M}function f(P,I){const O=P.context(),{lastOffset:L,lastStartLoc:S}=O,j=s(9,L,S);return j.value=I.replace(T9e,E9e),P.nextToken(),a(j,P.currentOffset(),P.currentPosition()),j}function p(P){const I=P.nextToken(),O=P.context(),{lastOffset:L,lastStartLoc:S}=O,j=s(8,L,S);return I.type!==12?(i(P,Xn.UNEXPECTED_EMPTY_LINKED_MODIFIER,O.lastStartLoc,0),j.value="",a(j,L,S),{nextConsumeToken:I,node:j}):(I.value==null&&i(P,Xn.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,Cd(I)),j.value=I.value||"",a(j,P.currentOffset(),P.currentPosition()),{node:j})}function v(P,I){const O=P.context(),L=s(7,O.offset,O.startLoc);return L.value=I,a(L,P.currentOffset(),P.currentPosition()),L}function _(P){const I=P.context(),O=s(6,I.offset,I.startLoc);let L=P.nextToken();if(L.type===9){const S=p(P);O.modifier=S.node,L=S.nextConsumeToken||P.nextToken()}switch(L.type!==10&&i(P,Xn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Cd(L)),L=P.nextToken(),L.type===2&&(L=P.nextToken()),L.type){case 11:L.value==null&&i(P,Xn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Cd(L)),O.key=v(P,L.value||"");break;case 5:L.value==null&&i(P,Xn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Cd(L)),O.key=u(P,L.value||"");break;case 6:L.value==null&&i(P,Xn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Cd(L)),O.key=d(P,L.value||"");break;case 7:L.value==null&&i(P,Xn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Cd(L)),O.key=f(P,L.value||"");break;default:{i(P,Xn.UNEXPECTED_EMPTY_LINKED_KEY,I.lastStartLoc,0);const S=P.context(),j=s(7,S.offset,S.startLoc);return j.value="",a(j,S.offset,S.startLoc),O.key=j,a(O,S.offset,S.startLoc),{nextConsumeToken:L,node:O}}}return a(O,P.currentOffset(),P.currentPosition()),{node:O}}function k(P){const I=P.context(),O=I.currentType===1?P.currentOffset():I.offset,L=I.currentType===1?I.endLoc:I.startLoc,S=s(2,O,L);S.items=[];let j=null,M=null;do{const V=j||P.nextToken();switch(j=null,V.type){case 0:V.value==null&&i(P,Xn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Cd(V)),S.items.push(l(P,V.value||""));break;case 6:V.value==null&&i(P,Xn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Cd(V)),S.items.push(d(P,V.value||""));break;case 4:M=!0;break;case 5:V.value==null&&i(P,Xn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Cd(V)),S.items.push(u(P,V.value||"",!!M)),M&&(r(P,fx.USE_MODULO_SYNTAX,I.lastStartLoc,0,Cd(V)),M=null);break;case 7:V.value==null&&i(P,Xn.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Cd(V)),S.items.push(f(P,V.value||""));break;case 8:{const G=_(P);S.items.push(G.node),j=G.nextConsumeToken||null;break}}}while(I.currentType!==14&&I.currentType!==1);const q=I.currentType===1?I.lastOffset:P.currentOffset(),B=I.currentType===1?I.lastEndLoc:P.currentPosition();return a(S,q,B),S}function C(P,I,O,L){const S=P.context();let j=L.items.length===0;const M=s(1,I,O);M.cases=[],M.cases.push(L);do{const q=k(P);j||(j=q.items.length===0),M.cases.push(q)}while(S.currentType!==14);return j&&i(P,Xn.MUST_HAVE_MESSAGES_IN_PLURAL,O,0),a(M,P.currentOffset(),P.currentPosition()),M}function $(P){const I=P.context(),{offset:O,startLoc:L}=I,S=k(P);return I.currentType===14?S:C(P,O,L,S)}function E(P){const I=C9e(P,zX({},e)),O=I.context(),L=s(0,O.offset,O.startLoc);return t&&L.loc&&(L.loc.source=P),L.body=$(I),e.onCacheKey&&(L.cacheKey=e.onCacheKey(P)),O.currentType!==14&&i(I,Xn.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,P[O.offset]||""),a(L,I.currentOffset(),I.currentPosition()),L}return{parse:E}}function Cd(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function P9e(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function mF(e,t){for(let n=0;n<e.length;n++)mx(e[n],t)}function mx(e,t){switch(e.type){case 1:mF(e.cases,t),t.helper("plural");break;case 2:mF(e.items,t);break;case 6:{mx(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function A9e(e,t={}){const n=P9e(e);n.helper("normalize"),e.body&&mx(e.body,n);const o=n.context();e.helpers=Array.from(o.helpers)}function D9e(e){const t=e.body;return t.type===2?pF(t):t.cases.forEach(n=>pF(n)),e}function pF(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const o=e.items[n];if(!(o.type===3||o.type===9)||o.value==null)break;t.push(o.value)}if(t.length===e.items.length){e.static=UX(t);for(let n=0;n<e.items.length;n++){const o=e.items[n];(o.type===3||o.type===9)&&delete o.value}}}}const x9e="minifier";function Lv(e){switch(e.t=e.type,e.type){case 0:{const t=e;Lv(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let o=0;o<n.length;o++)Lv(n[o]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let o=0;o<n.length;o++)Lv(n[o]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Lv(t.key),t.k=t.key,delete t.key,t.modifier&&(Lv(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw wy(Xn.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:x9e,args:[e.type]})}delete e.type}const O9e="parser";function L9e(e,t){const{sourceMap:n,filename:o,breakLineCode:i,needIndent:r}=t,s=t.location!==!1,a={filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};s&&e.loc&&(a.source=e.loc.source);const l=()=>a;function d(C,$){a.code+=C}function u(C,$=!0){const E=$?i:"";d(r?E+" ".repeat(C):E)}function f(C=!0){const $=++a.indentLevel;C&&u($)}function p(C=!0){const $=--a.indentLevel;C&&u($)}function v(){u(a.indentLevel)}return{context:l,push:d,indent:f,deindent:p,newline:v,helper:C=>`_${C}`,needIndent:()=>a.needIndent}}function M9e(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),U_(e,t.key),t.modifier?(e.push(", "),U_(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function N9e(e,t){const{helper:n,needIndent:o}=e;e.push(`${n("normalize")}([`),e.indent(o());const i=t.items.length;for(let r=0;r<i&&(U_(e,t.items[r]),r!==i-1);r++)e.push(", ");e.deindent(o()),e.push("])")}function R9e(e,t){const{helper:n,needIndent:o}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(o());const i=t.cases.length;for(let r=0;r<i&&(U_(e,t.cases[r]),r!==i-1);r++)e.push(", ");e.deindent(o()),e.push("])")}}function j9e(e,t){t.body?U_(e,t.body):e.push("null")}function U_(e,t){const{helper:n}=e;switch(t.type){case 0:j9e(e,t);break;case 1:R9e(e,t);break;case 2:N9e(e,t);break;case 6:M9e(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw wy(Xn.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:O9e,args:[t.type]})}}const F9e=(e,t={})=>{const n=hF(t.mode)?t.mode:"normal",o=hF(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,s=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=L9e(e,{mode:n,filename:o,sourceMap:i,breakLineCode:r,needIndent:s});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${UX(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),U_(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:d,map:u}=l.context();return{ast:e,code:d,map:u?u.toJSON():void 0}};function z9e(e,t={}){const n=zX({},t),o=!!n.jit,i=!!n.minify,r=n.optimize==null?!0:n.optimize,a=I9e(n).parse(e);return o?(r&&D9e(a),i&&Lv(a),{ast:a,code:""}):(A9e(a,n),F9e(a,n))}/*! * core-base v9.14.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function U9e(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Qh().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Qh().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Qh().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const fp=[];fp[0]={w:[0],i:[3,0],"[":[4],o:[7]};fp[1]={w:[1],".":[2],"[":[4],o:[7]};fp[2]={w:[2],i:[3,0],0:[3,0]};fp[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};fp[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};fp[5]={"'":[4,0],o:8,l:[5,0]};fp[6]={'"':[4,0],o:8,l:[6,0]};const B9e=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function H9e(e){return B9e.test(e)}function V9e(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function q9e(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Y9e(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:H9e(t)?V9e(t):"*"+t}function W9e(e){const t=[];let n=-1,o=0,i=0,r,s,a,l,d,u,f;const p=[];p[0]=()=>{s===void 0?s=a:s+=a},p[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},p[2]=()=>{p[0](),i++},p[3]=()=>{if(i>0)i--,o=4,p[0]();else{if(i=0,s===void 0||(s=Y9e(s),s===!1))return!1;p[1]()}};function v(){const _=e[n+1];if(o===5&&_==="'"||o===6&&_==='"')return n++,a="\\"+_,p[0](),!0}for(;o!==null;)if(n++,r=e[n],!(r==="\\"&&v())){if(l=q9e(r),f=fp[o],d=f[l]||f.l||8,d===8||(o=d[0],d[1]!==void 0&&(u=p[d[1]],u&&(a=r,u()===!1))))return;if(o===7)return t}}const gF=new Map;function G9e(e,t){return gi(e)?e[t]:null}function Z9e(e,t){if(!gi(e))return null;let n=gF.get(t);if(n||(n=W9e(t),n&&gF.set(t,n)),!n)return null;const o=n.length;let i=e,r=0;for(;r<o;){const s=i[n[r]];if(s===void 0||Gi(i))return null;i=s,r++}return i}const K9e=e=>e,J9e=e=>"",X9e="text",Q9e=e=>e.length===0?"":c9e(e),e6e=l9e;function vF(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function t6e(e){const t=ps(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ps(e.named.count)||ps(e.named.n))?ps(e.named.count)?e.named.count:ps(e.named.n)?e.named.n:t:t}function n6e(e,t){t.count||(t.count=e),t.n||(t.n=e)}function o6e(e={}){const t=e.locale,n=t6e(e),o=gi(e.pluralRules)&&yn(t)&&Gi(e.pluralRules[t])?e.pluralRules[t]:vF,i=gi(e.pluralRules)&&yn(t)&&Gi(e.pluralRules[t])?vF:void 0,r=$=>$[o(n,$.length,i)],s=e.list||[],a=$=>s[$],l=e.named||{};ps(e.pluralIndex)&&n6e(n,l);const d=$=>l[$];function u($){const E=Gi(e.messages)?e.messages($):gi(e.messages)?e.messages[$]:!1;return E||(e.parent?e.parent.message($):J9e)}const f=$=>e.modifiers?e.modifiers[$]:K9e,p=ao(e.processor)&&Gi(e.processor.normalize)?e.processor.normalize:Q9e,v=ao(e.processor)&&Gi(e.processor.interpolate)?e.processor.interpolate:e6e,_=ao(e.processor)&&yn(e.processor.type)?e.processor.type:X9e,C={list:a,named:d,plural:r,linked:($,...E)=>{const[P,I]=E;let O="text",L="";E.length===1?gi(P)?(L=P.modifier||L,O=P.type||O):yn(P)&&(L=P||L):E.length===2&&(yn(P)&&(L=P||L),yn(I)&&(O=I||O));const S=u($)(C),j=O==="vnode"&&Xi(S)&&L?S[0]:S;return L?f(L)(j,O):j},message:u,type:_,interpolate:v,normalize:p,values:Js({},s,l)};return C}let $2=null;function i6e(e){$2=e}function r6e(e,t,n){$2&&$2.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const s6e=a6e("function:translate");function a6e(e){return t=>$2&&$2.emit(e,t)}const BX=fx.__EXTEND_POINT__,Bp=u9(BX),l6e={NOT_FOUND_KEY:BX,FALLBACK_TO_TRANSLATE:Bp(),CANNOT_FORMAT_NUMBER:Bp(),FALLBACK_TO_NUMBER_FORMAT:Bp(),CANNOT_FORMAT_DATE:Bp(),FALLBACK_TO_DATE_FORMAT:Bp(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Bp(),__EXTEND_POINT__:Bp()},HX=Xn.__EXTEND_POINT__,Hp=u9(HX),zd={INVALID_ARGUMENT:HX,INVALID_DATE_ARGUMENT:Hp(),INVALID_ISO_DATE_ARGUMENT:Hp(),NOT_SUPPORT_NON_STRING_MESSAGE:Hp(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Hp(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Hp(),NOT_SUPPORT_LOCALE_TYPE:Hp(),__EXTEND_POINT__:Hp()};function ju(e){return wy(e,null,void 0)}function px(e,t){return t.locale!=null?_F(t.locale):_F(e.locale)}let K7;function _F(e){if(yn(e))return e;if(Gi(e)){if(e.resolvedOnce&&K7!=null)return K7;if(e.constructor.name==="Function"){const t=e();if(a9e(t))throw ju(zd.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return K7=t}else throw ju(zd.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ju(zd.NOT_SUPPORT_LOCALE_TYPE)}function c6e(e,t,n){return[...new Set([n,...Xi(t)?t:gi(t)?Object.keys(t):yn(t)?[t]:[n]])]}function VX(e,t,n){const o=yn(n)?n:B_,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let r=i.__localeChainCache.get(o);if(!r){r=[];let s=[n];for(;Xi(s);)s=yF(r,s,t);const a=Xi(t)||!ao(t)?t:t.default?t.default:null;s=yn(a)?[a]:a,Xi(s)&&yF(r,s,!1),i.__localeChainCache.set(o,r)}return r}function yF(e,t,n){let o=!0;for(let i=0;i<t.length&&Uo(o);i++){const r=t[i];yn(r)&&(o=d6e(e,t[i],n))}return o}function d6e(e,t,n){let o;const i=t.split("-");do{const r=i.join("-");o=u6e(e,r,n),i.splice(-1,1)}while(i.length&&o===!0);return o}function u6e(e,t,n){let o=!1;if(!e.includes(t)&&(o=!0,t)){o=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(Xi(n)||ao(n))&&n[i]&&(o=n[i])}return o}const h6e="9.14.1",h9=-1,B_="en-US",bF="",kF=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function f6e(){return{upper:(e,t)=>t==="text"&&yn(e)?e.toUpperCase():t==="vnode"&&gi(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&yn(e)?e.toLowerCase():t==="vnode"&&gi(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&yn(e)?kF(e):t==="vnode"&&gi(e)&&"__v_isVNode"in e?kF(e.children):e}}let qX;function wF(e){qX=e}let YX;function m6e(e){YX=e}let WX;function p6e(e){WX=e}let GX=null;const g6e=e=>{GX=e},v6e=()=>GX;let ZX=null;const $F=e=>{ZX=e},_6e=()=>ZX;let CF=0;function y6e(e={}){const t=Gi(e.onWarn)?e.onWarn:d9e,n=yn(e.version)?e.version:h6e,o=yn(e.locale)||Gi(e.locale)?e.locale:B_,i=Gi(o)?B_:o,r=Xi(e.fallbackLocale)||ao(e.fallbackLocale)||yn(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,s=ao(e.messages)?e.messages:{[i]:{}},a=ao(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=ao(e.numberFormats)?e.numberFormats:{[i]:{}},d=Js({},e.modifiers||{},f6e()),u=e.pluralRules||{},f=Gi(e.missing)?e.missing:null,p=Uo(e.missingWarn)||tp(e.missingWarn)?e.missingWarn:!0,v=Uo(e.fallbackWarn)||tp(e.fallbackWarn)?e.fallbackWarn:!0,_=!!e.fallbackFormat,k=!!e.unresolving,C=Gi(e.postTranslation)?e.postTranslation:null,$=ao(e.processor)?e.processor:null,E=Uo(e.warnHtmlMessage)?e.warnHtmlMessage:!0,P=!!e.escapeParameter,I=Gi(e.messageCompiler)?e.messageCompiler:qX,O=Gi(e.messageResolver)?e.messageResolver:YX||G9e,L=Gi(e.localeFallbacker)?e.localeFallbacker:WX||c6e,S=gi(e.fallbackContext)?e.fallbackContext:void 0,j=e,M=gi(j.__datetimeFormatters)?j.__datetimeFormatters:new Map,q=gi(j.__numberFormatters)?j.__numberFormatters:new Map,B=gi(j.__meta)?j.__meta:{};CF++;const V={version:n,cid:CF,locale:o,fallbackLocale:r,messages:s,modifiers:d,pluralRules:u,missing:f,missingWarn:p,fallbackWarn:v,fallbackFormat:_,unresolving:k,postTranslation:C,processor:$,warnHtmlMessage:E,escapeParameter:P,messageCompiler:I,messageResolver:O,localeFallbacker:L,fallbackContext:S,onWarn:t,__meta:B};return V.datetimeFormats=a,V.numberFormats=l,V.__datetimeFormatters=M,V.__numberFormatters=q,__INTLIFY_PROD_DEVTOOLS__&&r6e(V,n,B),V}function gx(e,t,n,o,i){const{missing:r,onWarn:s}=e;if(r!==null){const a=r(e,n,t,i);return yn(a)?a:t}else return t}function Db(e,t,n){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function b6e(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function k6e(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let o=n+1;o<t.length;o++)if(b6e(e,t[o]))return!0;return!1}function J7(e){return n=>w6e(n,e)}function w6e(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const o=n,i=o.c||o.cases;return e.plural(i.reduce((r,s)=>[...r,SF(e,s)],[]))}else return SF(e,n)}function SF(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const o=(t.i||t.items).reduce((i,r)=>[...i,KE(e,r)],[]);return e.normalize(o)}}function KE(e,t){const n=t.t||t.type;switch(n){case 3:{const o=t;return o.v||o.value}case 9:{const o=t;return o.v||o.value}case 4:{const o=t;return e.interpolate(e.named(o.k||o.key))}case 5:{const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index))}case 6:{const o=t,i=o.m||o.modifier;return e.linked(KE(e,o.k||o.key),i?KE(e,i):void 0,e.type)}case 7:{const o=t;return o.v||o.value}case 8:{const o=t;return o.v||o.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const KX=e=>e;let qv=Object.create(null);const H_=e=>gi(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function JX(e,t={}){let n=!1;const o=t.onError||v9e;return t.onError=i=>{n=!0,o(i)},{...z9e(e,t),detectError:n}}const $6e=(e,t)=>{if(!yn(e))throw ju(zd.NOT_SUPPORT_NON_STRING_MESSAGE);{Uo(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||KX)(e),i=qv[o];if(i)return i;const{code:r,detectError:s}=JX(e,t),a=new Function(`return ${r}`)();return s?a:qv[o]=a}};function C6e(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&yn(e)){Uo(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||KX)(e),i=qv[o];if(i)return i;const{ast:r,detectError:s}=JX(e,{...t,location:!1,jit:!0}),a=J7(r);return s?a:qv[o]=a}else{const n=e.cacheKey;if(n){const o=qv[n];return o||(qv[n]=J7(e))}else return J7(e)}}const TF=()=>"",Uc=e=>Gi(e);function EF(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:i,messageCompiler:r,fallbackLocale:s,messages:a}=e,[l,d]=JE(...t),u=Uo(d.missingWarn)?d.missingWarn:e.missingWarn,f=Uo(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,p=Uo(d.escapeParameter)?d.escapeParameter:e.escapeParameter,v=!!d.resolvedMessage,_=yn(d.default)||Uo(d.default)?Uo(d.default)?r?l:()=>l:d.default:n?r?l:()=>l:"",k=n||_!=="",C=px(e,d);p&&S6e(d);let[$,E,P]=v?[l,C,a[C]||{}]:XX(e,l,C,s,f,u),I=$,O=l;if(!v&&!(yn(I)||H_(I)||Uc(I))&&k&&(I=_,O=I),!v&&(!(yn(I)||H_(I)||Uc(I))||!yn(E)))return i?h9:l;let L=!1;const S=()=>{L=!0},j=Uc(I)?I:QX(e,l,E,I,O,S);if(L)return I;const M=I6e(e,E,P,d),q=o6e(M),B=T6e(e,j,q),V=o?o(B,l):B;if(__INTLIFY_PROD_DEVTOOLS__){const G={timestamp:Date.now(),key:yn(l)?l:Uc(I)?I.key:"",locale:E||(Uc(I)?I.locale:""),format:yn(I)?I:Uc(I)?I.source:"",message:V};G.meta=Js({},e.__meta,v6e()||{}),s6e(G)}return V}function S6e(e){Xi(e.list)?e.list=e.list.map(t=>yn(t)?uF(t):t):gi(e.named)&&Object.keys(e.named).forEach(t=>{yn(e.named[t])&&(e.named[t]=uF(e.named[t]))})}function XX(e,t,n,o,i,r){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:d}=e,u=d(e,o,n);let f={},p,v=null;const _="translate";for(let k=0;k<u.length&&(p=u[k],f=s[p]||{},(v=l(f,t))===null&&(v=f[t]),!(yn(v)||H_(v)||Uc(v)));k++)if(!k6e(p,u)){const C=gx(e,t,p,r,_);C!==t&&(v=C)}return[v,p,f]}function QX(e,t,n,o,i,r){const{messageCompiler:s,warnHtmlMessage:a}=e;if(Uc(o)){const d=o;return d.locale=d.locale||n,d.key=d.key||t,d}if(s==null){const d=()=>o;return d.locale=n,d.key=t,d}const l=s(o,E6e(e,n,i,o,a,r));return l.locale=n,l.key=t,l.source=o,l}function T6e(e,t,n){return t(n)}function JE(...e){const[t,n,o]=e,i={};if(!yn(t)&&!ps(t)&&!Uc(t)&&!H_(t))throw ju(zd.INVALID_ARGUMENT);const r=ps(t)?String(t):(Uc(t),t);return ps(n)?i.plural=n:yn(n)?i.default=n:ao(n)&&!d9(n)?i.named=n:Xi(n)&&(i.list=n),ps(o)?i.plural=o:yn(o)?i.default=o:ao(o)&&Js(i,o),[r,i]}function E6e(e,t,n,o,i,r){return{locale:t,key:n,warnHtmlMessage:i,onError:s=>{throw r&&r(s),s},onCacheKey:s=>o9e(t,n,s)}}function I6e(e,t,n,o){const{modifiers:i,pluralRules:r,messageResolver:s,fallbackLocale:a,fallbackWarn:l,missingWarn:d,fallbackContext:u}=e,p={locale:t,modifiers:i,pluralRules:r,messages:v=>{let _=s(n,v);if(_==null&&u){const[,,k]=XX(u,v,t,a,l,d);_=s(k,v)}if(yn(_)||H_(_)){let k=!1;const $=QX(e,v,t,_,v,()=>{k=!0});return k?TF:$}else return Uc(_)?_:TF}};return e.processor&&(p.processor=e.processor),o.list&&(p.list=o.list),o.named&&(p.named=o.named),ps(o.plural)&&(p.pluralIndex=o.plural),p}function IF(e,...t){const{datetimeFormats:n,unresolving:o,fallbackLocale:i,onWarn:r,localeFallbacker:s}=e,{__datetimeFormatters:a}=e,[l,d,u,f]=XE(...t),p=Uo(u.missingWarn)?u.missingWarn:e.missingWarn;Uo(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const v=!!u.part,_=px(e,u),k=s(e,i,_);if(!yn(l)||l==="")return new Intl.DateTimeFormat(_,f).format(d);let C={},$,E=null;const P="datetime format";for(let L=0;L<k.length&&($=k[L],C=n[$]||{},E=C[l],!ao(E));L++)gx(e,l,$,p,P);if(!ao(E)||!yn($))return o?h9:l;let I=`${$}__${l}`;d9(f)||(I=`${I}__${JSON.stringify(f)}`);let O=a.get(I);return O||(O=new Intl.DateTimeFormat($,Js({},E,f)),a.set(I,O)),v?O.formatToParts(d):O.format(d)}const eQ=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function XE(...e){const[t,n,o,i]=e,r={};let s={},a;if(yn(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ju(zd.INVALID_ISO_DATE_ARGUMENT);const d=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(d);try{a.toISOString()}catch{throw ju(zd.INVALID_ISO_DATE_ARGUMENT)}}else if(r9e(t)){if(isNaN(t.getTime()))throw ju(zd.INVALID_DATE_ARGUMENT);a=t}else if(ps(t))a=t;else throw ju(zd.INVALID_ARGUMENT);return yn(n)?r.key=n:ao(n)&&Object.keys(n).forEach(l=>{eQ.includes(l)?s[l]=n[l]:r[l]=n[l]}),yn(o)?r.locale=o:ao(o)&&(s=o),ao(i)&&(s=i),[r.key||"",a,r,s]}function PF(e,t,n){const o=e;for(const i in n){const r=`${t}__${i}`;o.__datetimeFormatters.has(r)&&o.__datetimeFormatters.delete(r)}}function AF(e,...t){const{numberFormats:n,unresolving:o,fallbackLocale:i,onWarn:r,localeFallbacker:s}=e,{__numberFormatters:a}=e,[l,d,u,f]=QE(...t),p=Uo(u.missingWarn)?u.missingWarn:e.missingWarn;Uo(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const v=!!u.part,_=px(e,u),k=s(e,i,_);if(!yn(l)||l==="")return new Intl.NumberFormat(_,f).format(d);let C={},$,E=null;const P="number format";for(let L=0;L<k.length&&($=k[L],C=n[$]||{},E=C[l],!ao(E));L++)gx(e,l,$,p,P);if(!ao(E)||!yn($))return o?h9:l;let I=`${$}__${l}`;d9(f)||(I=`${I}__${JSON.stringify(f)}`);let O=a.get(I);return O||(O=new Intl.NumberFormat($,Js({},E,f)),a.set(I,O)),v?O.formatToParts(d):O.format(d)}const tQ=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function QE(...e){const[t,n,o,i]=e,r={};let s={};if(!ps(t))throw ju(zd.INVALID_ARGUMENT);const a=t;return yn(n)?r.key=n:ao(n)&&Object.keys(n).forEach(l=>{tQ.includes(l)?s[l]=n[l]:r[l]=n[l]}),yn(o)?r.locale=o:ao(o)&&(s=o),ao(i)&&(s=i),[r.key||"",a,r,s]}function DF(e,t,n){const o=e;for(const i in n){const r=`${t}__${i}`;o.__numberFormatters.has(r)&&o.__numberFormatters.delete(r)}}U9e();function P6e(){return nQ().__VUE_DEVTOOLS_GLOBAL_HOOK__}function nQ(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const A6e=typeof Proxy=="function",D6e="devtools-plugin:setup",x6e="plugin:settings:set";let dv,eI;function O6e(){var e;return dv!==void 0||(typeof window<"u"&&window.performance?(dv=!0,eI=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(dv=!0,eI=globalThis.perf_hooks.performance):dv=!1),dv}function L6e(){return O6e()?eI.now():Date.now()}class M6e{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const s in t.settings){const a=t.settings[s];o[s]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},o);try{const s=localStorage.getItem(i),a=JSON.parse(s);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(s){try{localStorage.setItem(i,JSON.stringify(s))}catch{}r=s},now(){return L6e()}},n&&n.on(x6e,(s,a)=>{s===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(s,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(s,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(d=>{this.targetQueue.push({method:a,args:l,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function N6e(e,t){const n=e,o=nQ(),i=P6e(),r=A6e&&n.enableEarlyProxy;if(i&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(D6e,e,t);else{const s=r?new M6e(n,i):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*! * vue-i18n v9.14.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const R6e="9.14.1";function j6e(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Qh().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Qh().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Qh().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Qh().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Qh().__INTLIFY_PROD_DEVTOOLS__=!1)}const oQ=l6e.__EXTEND_POINT__,Fh=u9(oQ);Fh(),Fh(),Fh(),Fh(),Fh(),Fh(),Fh(),Fh(),Fh();const iQ=zd.__EXTEND_POINT__,hl=u9(iQ),ws={UNEXPECTED_RETURN_TYPE:iQ,INVALID_ARGUMENT:hl(),MUST_BE_CALL_SETUP_TOP:hl(),NOT_INSTALLED:hl(),NOT_AVAILABLE_IN_LEGACY_MODE:hl(),REQUIRED_VALUE:hl(),INVALID_VALUE:hl(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:hl(),NOT_INSTALLED_WITH_PROVIDE:hl(),UNEXPECTED_ERROR:hl(),NOT_COMPATIBLE_LEGACY_VUE_I18N:hl(),BRIDGE_SUPPORT_VUE_2_ONLY:hl(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:hl(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:hl(),__EXTEND_POINT__:hl()};function Rs(e,...t){return wy(e,null,void 0)}const tI=hp("__translateVNode"),nI=hp("__datetimeParts"),oI=hp("__numberParts"),rQ=hp("__setPluralRules"),sQ=hp("__injectWithOption"),iI=hp("__dispose");function C2(e){if(!gi(e))return e;for(const t in e)if(c5(e,t))if(!t.includes("."))gi(e[t])&&C2(e[t]);else{const n=t.split("."),o=n.length-1;let i=e,r=!1;for(let s=0;s<o;s++){if(n[s]in i||(i[n[s]]={}),!gi(i[n[s]])){r=!0;break}i=i[n[s]]}r||(i[n[o]]=e[t],delete e[t]),gi(i[n[o]])&&C2(i[n[o]])}return e}function f9(e,t){const{messages:n,__i18n:o,messageResolver:i,flatJson:r}=t,s=ao(n)?n:Xi(o)?{}:{[e]:{}};if(Xi(o)&&o.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:d}=a;l?(s[l]=s[l]||{},V8(d,s[l])):V8(d,s)}else yn(a)&&V8(JSON.parse(a),s)}),i==null&&r)for(const a in s)c5(s,a)&&C2(s[a]);return s}function aQ(e){return e.type}function lQ(e,t,n){let o=gi(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=f9(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const i=Object.keys(o);i.length&&i.forEach(r=>{e.mergeLocaleMessage(r,o[r])});{if(gi(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(gi(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function xF(e){return b(Wu,null,e,0)}const OF="__INTLIFY_META__",LF=()=>[],F6e=()=>!1;let MF=0;function NF(e){return(t,n,o,i)=>e(n,o,pr()||void 0,i)}const z6e=()=>{const e=pr();let t=null;return e&&(t=aQ(e)[OF])?{[OF]:t}:null};function vx(e={},t){const{__root:n,__injectWithOption:o}=e,i=n===void 0,r=e.flatJson,s=l5?In:yy,a=!!e.translateExistCompatible;let l=Uo(e.inheritLocale)?e.inheritLocale:!0;const d=s(n&&l?n.locale.value:yn(e.locale)?e.locale:B_),u=s(n&&l?n.fallbackLocale.value:yn(e.fallbackLocale)||Xi(e.fallbackLocale)||ao(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:d.value),f=s(f9(d.value,e)),p=s(ao(e.datetimeFormats)?e.datetimeFormats:{[d.value]:{}}),v=s(ao(e.numberFormats)?e.numberFormats:{[d.value]:{}});let _=n?n.missingWarn:Uo(e.missingWarn)||tp(e.missingWarn)?e.missingWarn:!0,k=n?n.fallbackWarn:Uo(e.fallbackWarn)||tp(e.fallbackWarn)?e.fallbackWarn:!0,C=n?n.fallbackRoot:Uo(e.fallbackRoot)?e.fallbackRoot:!0,$=!!e.fallbackFormat,E=Gi(e.missing)?e.missing:null,P=Gi(e.missing)?NF(e.missing):null,I=Gi(e.postTranslation)?e.postTranslation:null,O=n?n.warnHtmlMessage:Uo(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const S=n?n.modifiers:ao(e.modifiers)?e.modifiers:{};let j=e.pluralRules||n&&n.pluralRules,M;M=(()=>{i&&$F(null);const Ze={version:R6e,locale:d.value,fallbackLocale:u.value,messages:f.value,modifiers:S,pluralRules:j,missing:P===null?void 0:P,missingWarn:_,fallbackWarn:k,fallbackFormat:$,unresolving:!0,postTranslation:I===null?void 0:I,warnHtmlMessage:O,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Ze.datetimeFormats=p.value,Ze.numberFormats=v.value,Ze.__datetimeFormatters=ao(M)?M.__datetimeFormatters:void 0,Ze.__numberFormatters=ao(M)?M.__numberFormatters:void 0;const vt=y6e(Ze);return i&&$F(vt),vt})(),Db(M,d.value,u.value);function B(){return[d.value,u.value,f.value,p.value,v.value]}const V=dt({get:()=>d.value,set:Ze=>{d.value=Ze,M.locale=d.value}}),G=dt({get:()=>u.value,set:Ze=>{u.value=Ze,M.fallbackLocale=u.value,Db(M,d.value,Ze)}}),Q=dt(()=>f.value),X=dt(()=>p.value),Y=dt(()=>v.value);function Z(){return Gi(I)?I:null}function se(Ze){I=Ze,M.postTranslation=Ze}function ce(){return E}function te(Ze){Ze!==null&&(P=NF(Ze)),E=Ze,M.missing=P}const ee=(Ze,vt,Ut,Je,We,pt)=>{B();let At;try{__INTLIFY_PROD_DEVTOOLS__,i||(M.fallbackContext=n?_6e():void 0),At=Ze(M)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(M.fallbackContext=void 0)}if(Ut!=="translate exists"&&ps(At)&&At===h9||Ut==="translate exists"&&!At){const[Vt,cn]=vt();return n&&C?Je(n):We(Vt)}else{if(pt(At))return At;throw Rs(ws.UNEXPECTED_RETURN_TYPE)}};function ae(...Ze){return ee(vt=>Reflect.apply(EF,null,[vt,...Ze]),()=>JE(...Ze),"translate",vt=>Reflect.apply(vt.t,vt,[...Ze]),vt=>vt,vt=>yn(vt))}function de(...Ze){const[vt,Ut,Je]=Ze;if(Je&&!gi(Je))throw Rs(ws.INVALID_ARGUMENT);return ae(vt,Ut,Js({resolvedMessage:!0},Je||{}))}function $e(...Ze){return ee(vt=>Reflect.apply(IF,null,[vt,...Ze]),()=>XE(...Ze),"datetime format",vt=>Reflect.apply(vt.d,vt,[...Ze]),()=>bF,vt=>yn(vt))}function be(...Ze){return ee(vt=>Reflect.apply(AF,null,[vt,...Ze]),()=>QE(...Ze),"number format",vt=>Reflect.apply(vt.n,vt,[...Ze]),()=>bF,vt=>yn(vt))}function me(Ze){return Ze.map(vt=>yn(vt)||ps(vt)||Uo(vt)?xF(String(vt)):vt)}const Ae={normalize:me,interpolate:Ze=>Ze,type:"vnode"};function je(...Ze){return ee(vt=>{let Ut;const Je=vt;try{Je.processor=Ae,Ut=Reflect.apply(EF,null,[Je,...Ze])}finally{Je.processor=null}return Ut},()=>JE(...Ze),"translate",vt=>vt[tI](...Ze),vt=>[xF(vt)],vt=>Xi(vt))}function Ye(...Ze){return ee(vt=>Reflect.apply(AF,null,[vt,...Ze]),()=>QE(...Ze),"number format",vt=>vt[oI](...Ze),LF,vt=>yn(vt)||Xi(vt))}function _t(...Ze){return ee(vt=>Reflect.apply(IF,null,[vt,...Ze]),()=>XE(...Ze),"datetime format",vt=>vt[nI](...Ze),LF,vt=>yn(vt)||Xi(vt))}function xt(Ze){j=Ze,M.pluralRules=j}function we(Ze,vt){return ee(()=>{if(!Ze)return!1;const Ut=yn(vt)?vt:d.value,Je=$t(Ut),We=M.messageResolver(Je,Ze);return a?We!=null:H_(We)||Uc(We)||yn(We)},()=>[Ze],"translate exists",Ut=>Reflect.apply(Ut.te,Ut,[Ze,vt]),F6e,Ut=>Uo(Ut))}function ve(Ze){let vt=null;const Ut=VX(M,u.value,d.value);for(let Je=0;Je<Ut.length;Je++){const We=f.value[Ut[Je]]||{},pt=M.messageResolver(We,Ze);if(pt!=null){vt=pt;break}}return vt}function qe(Ze){const vt=ve(Ze);return vt??(n?n.tm(Ze)||{}:{})}function $t(Ze){return f.value[Ze]||{}}function ut(Ze,vt){if(r){const Ut={[Ze]:vt};for(const Je in Ut)c5(Ut,Je)&&C2(Ut[Je]);vt=Ut[Ze]}f.value[Ze]=vt,M.messages=f.value}function Ve(Ze,vt){f.value[Ze]=f.value[Ze]||{};const Ut={[Ze]:vt};if(r)for(const Je in Ut)c5(Ut,Je)&&C2(Ut[Je]);vt=Ut[Ze],V8(vt,f.value[Ze]),M.messages=f.value}function tt(Ze){return p.value[Ze]||{}}function ge(Ze,vt){p.value[Ze]=vt,M.datetimeFormats=p.value,PF(M,Ze,vt)}function ye(Ze,vt){p.value[Ze]=Js(p.value[Ze]||{},vt),M.datetimeFormats=p.value,PF(M,Ze,vt)}function Te(Ze){return v.value[Ze]||{}}function gt(Ze,vt){v.value[Ze]=vt,M.numberFormats=v.value,DF(M,Ze,vt)}function yt(Ze,vt){v.value[Ze]=Js(v.value[Ze]||{},vt),M.numberFormats=v.value,DF(M,Ze,vt)}MF++,n&&l5&&(Co(n.locale,Ze=>{l&&(d.value=Ze,M.locale=Ze,Db(M,d.value,u.value))}),Co(n.fallbackLocale,Ze=>{l&&(u.value=Ze,M.fallbackLocale=Ze,Db(M,d.value,u.value))}));const Xe={id:MF,locale:V,fallbackLocale:G,get inheritLocale(){return l},set inheritLocale(Ze){l=Ze,Ze&&n&&(d.value=n.locale.value,u.value=n.fallbackLocale.value,Db(M,d.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:Q,get modifiers(){return S},get pluralRules(){return j||{}},get isGlobal(){return i},get missingWarn(){return _},set missingWarn(Ze){_=Ze,M.missingWarn=_},get fallbackWarn(){return k},set fallbackWarn(Ze){k=Ze,M.fallbackWarn=k},get fallbackRoot(){return C},set fallbackRoot(Ze){C=Ze},get fallbackFormat(){return $},set fallbackFormat(Ze){$=Ze,M.fallbackFormat=$},get warnHtmlMessage(){return O},set warnHtmlMessage(Ze){O=Ze,M.warnHtmlMessage=Ze},get escapeParameter(){return L},set escapeParameter(Ze){L=Ze,M.escapeParameter=Ze},t:ae,getLocaleMessage:$t,setLocaleMessage:ut,mergeLocaleMessage:Ve,getPostTranslationHandler:Z,setPostTranslationHandler:se,getMissingHandler:ce,setMissingHandler:te,[rQ]:xt};return Xe.datetimeFormats=X,Xe.numberFormats=Y,Xe.rt=de,Xe.te=we,Xe.tm=qe,Xe.d=$e,Xe.n=be,Xe.getDateTimeFormat=tt,Xe.setDateTimeFormat=ge,Xe.mergeDateTimeFormat=ye,Xe.getNumberFormat=Te,Xe.setNumberFormat=gt,Xe.mergeNumberFormat=yt,Xe[sQ]=o,Xe[tI]=je,Xe[nI]=_t,Xe[oI]=Ye,Xe}function U6e(e){const t=yn(e.locale)?e.locale:B_,n=yn(e.fallbackLocale)||Xi(e.fallbackLocale)||ao(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,o=Gi(e.missing)?e.missing:void 0,i=Uo(e.silentTranslationWarn)||tp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Uo(e.silentFallbackWarn)||tp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=Uo(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=ao(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,u=Gi(e.postTranslation)?e.postTranslation:void 0,f=yn(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,v=Uo(e.sync)?e.sync:!0;let _=e.messages;if(ao(e.sharedMessages)){const L=e.sharedMessages;_=Object.keys(L).reduce((j,M)=>{const q=j[M]||(j[M]={});return Js(q,L[M]),j},_||{})}const{__i18n:k,__root:C,__injectWithOption:$}=e,E=e.datetimeFormats,P=e.numberFormats,I=e.flatJson,O=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:_,flatJson:I,datetimeFormats:E,numberFormats:P,missing:o,missingWarn:i,fallbackWarn:r,fallbackRoot:s,fallbackFormat:a,modifiers:l,pluralRules:d,postTranslation:u,warnHtmlMessage:f,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:v,translateExistCompatible:O,__i18n:k,__root:C,__injectWithOption:$}}function rI(e={},t){{const n=vx(U6e(e)),{__extender:o}=e,i={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return Uo(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=Uo(r)?!r:r},get silentFallbackWarn(){return Uo(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=Uo(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[s,a,l]=r,d={};let u=null,f=null;if(!yn(s))throw Rs(ws.INVALID_ARGUMENT);const p=s;return yn(a)?d.locale=a:Xi(a)?u=a:ao(a)&&(f=a),Xi(l)?u=l:ao(l)&&(f=l),Reflect.apply(n.t,n,[p,u||f||{},d])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[s,a,l]=r,d={plural:1};let u=null,f=null;if(!yn(s))throw Rs(ws.INVALID_ARGUMENT);const p=s;return yn(a)?d.locale=a:ps(a)?d.plural=a:Xi(a)?u=a:ao(a)&&(f=a),yn(l)?d.locale=l:Xi(l)?u=l:ao(l)&&(f=l),Reflect.apply(n.t,n,[p,u||f||{},d])},te(r,s){return n.te(r,s)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,s){n.setLocaleMessage(r,s)},mergeLocaleMessage(r,s){n.mergeLocaleMessage(r,s)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,s){n.setDateTimeFormat(r,s)},mergeDateTimeFormat(r,s){n.mergeDateTimeFormat(r,s)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,s){n.setNumberFormat(r,s)},mergeNumberFormat(r,s){n.mergeNumberFormat(r,s)},getChoiceIndex(r,s){return-1}};return i.__extender=o,i}}const _x={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function B6e({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((o,i)=>[...o,...i.type===pe?i.children:[i]],[]):t.reduce((n,o)=>{const i=e[o];return i&&(n[o]=i()),n},{})}function cQ(e){return pe}const H6e=xo({name:"i18n-t",props:Js({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ps(e)||!isNaN(e)}},_x),setup(e,t){const{slots:n,attrs:o}=t,i=e.i18n||yx({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(f=>f!=="_"),s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=yn(e.plural)?+e.plural:e.plural);const a=B6e(t,r),l=i[tI](e.keypath,a,s),d=Js({},o),u=yn(e.tag)||gi(e.tag)?e.tag:cQ();return tu(u,d,l)}}}),RF=H6e;function V6e(e){return Xi(e)&&!yn(e[0])}function dQ(e,t,n,o){const{slots:i,attrs:r}=t;return()=>{const s={part:!0};let a={};e.locale&&(s.locale=e.locale),yn(e.format)?s.key=e.format:gi(e.format)&&(yn(e.format.key)&&(s.key=e.format.key),a=Object.keys(e.format).reduce((p,v)=>n.includes(v)?Js({},p,{[v]:e.format[v]}):p,{}));const l=o(e.value,s,a);let d=[s.key];Xi(l)?d=l.map((p,v)=>{const _=i[p.type],k=_?_({[p.type]:p.value,index:v,parts:l}):[p.value];return V6e(k)&&(k[0].key=`${p.type}-${v}`),k}):yn(l)&&(d=[l]);const u=Js({},r),f=yn(e.tag)||gi(e.tag)?e.tag:cQ();return tu(f,u,d)}}const q6e=xo({name:"i18n-n",props:Js({value:{type:Number,required:!0},format:{type:[String,Object]}},_x),setup(e,t){const n=e.i18n||yx({useScope:e.scope,__useComponent:!0});return dQ(e,t,tQ,(...o)=>n[oI](...o))}}),jF=q6e,Y6e=xo({name:"i18n-d",props:Js({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},_x),setup(e,t){const n=e.i18n||yx({useScope:e.scope,__useComponent:!0});return dQ(e,t,eQ,(...o)=>n[nI](...o))}}),FF=Y6e;function W6e(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function G6e(e){const t=s=>{const{instance:a,modifiers:l,value:d}=s;if(!a||!a.$)throw Rs(ws.UNEXPECTED_ERROR);const u=W6e(e,a.$),f=zF(d);return[Reflect.apply(u.t,u,[...UF(f)]),u]};return{created:(s,a)=>{const[l,d]=t(a);l5&&e.global===d&&(s.__i18nWatcher=Co(d.locale,()=>{a.instance&&a.instance.$forceUpdate()})),s.__composer=d,s.textContent=l},unmounted:s=>{l5&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:a})=>{if(s.__composer){const l=s.__composer,d=zF(a);s.textContent=Reflect.apply(l.t,l,[...UF(d)])}},getSSRProps:s=>{const[a]=t(s);return{textContent:a}}}}function zF(e){if(yn(e))return{path:e};if(ao(e)){if(!("path"in e))throw Rs(ws.REQUIRED_VALUE,"path");return e}else throw Rs(ws.INVALID_VALUE)}function UF(e){const{path:t,locale:n,args:o,choice:i,plural:r}=e,s={},a=o||{};return yn(n)&&(s.locale=n),ps(i)&&(s.plural=i),ps(r)&&(s.plural=r),[t,a,s]}function Z6e(e,t,...n){const o=ao(n[0])?n[0]:{},i=!!o.useI18nComponentName;(Uo(o.globalInstall)?o.globalInstall:!0)&&([i?"i18n":RF.name,"I18nT"].forEach(s=>e.component(s,RF)),[jF.name,"I18nN"].forEach(s=>e.component(s,jF)),[FF.name,"I18nD"].forEach(s=>e.component(s,FF))),e.directive("t",G6e(t))}function K6e(e,t,n){return{beforeCreate(){const o=pr();if(!o)throw Rs(ws.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=BF(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=rI(r);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=BF(e,i);else{this.$i18n=rI({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&lQ(t,i,i),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,s)=>this.$i18n.te(r,s),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(o,this.$i18n)},mounted(){},unmounted(){const o=pr();if(!o)throw Rs(ws.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(o),delete this.$i18n}}}function BF(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[rQ](t.pluralizationRules||e.pluralizationRules);const n=f9(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(o=>e.mergeLocaleMessage(o,n[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),e}const J6e=hp("global-vue-i18n");function X6e(e={},t){const n=__VUE_I18N_LEGACY_API__&&Uo(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=Uo(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[s,a]=Q6e(e,n),l=hp("");function d(p){return r.get(p)||null}function u(p,v){r.set(p,v)}function f(p){r.delete(p)}{const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(v,..._){if(v.__VUE_I18N_SYMBOL__=l,v.provide(v.__VUE_I18N_SYMBOL__,p),ao(_[0])){const $=_[0];p.__composerExtend=$.__composerExtend,p.__vueI18nExtend=$.__vueI18nExtend}let k=null;!n&&o&&(k=lCe(v,p.global)),__VUE_I18N_FULL_INSTALL__&&Z6e(v,p,..._),__VUE_I18N_LEGACY_API__&&n&&v.mixin(K6e(a,a.__composer,p));const C=v.unmount;v.unmount=()=>{k&&k(),p.dispose(),C()}},get global(){return a},dispose(){s.stop()},__instances:r,__getInstance:d,__setInstance:u,__deleteInstance:f};return p}}function yx(e={}){const t=pr();if(t==null)throw Rs(ws.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Rs(ws.NOT_INSTALLED);const n=eCe(t),o=nCe(n),i=aQ(t),r=tCe(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Rs(ws.NOT_AVAILABLE_IN_LEGACY_MODE);return sCe(t,r,o,e)}if(r==="global")return lQ(o,e,i),o;if(r==="parent"){let l=oCe(n,t,e.__useComponent);return l==null&&(l=o),l}const s=n;let a=s.__getInstance(t);if(a==null){const l=Js({},e);"__i18n"in i&&(l.__i18n=i.__i18n),o&&(l.__root=o),a=vx(l),s.__composerExtend&&(a[iI]=s.__composerExtend(a)),rCe(s,t,a),s.__setInstance(t,a)}return a}function Q6e(e,t,n){const o=H$();{const i=__VUE_I18N_LEGACY_API__&&t?o.run(()=>rI(e)):o.run(()=>vx(e));if(i==null)throw Rs(ws.UNEXPECTED_ERROR);return[o,i]}}function eCe(e){{const t=ts(e.isCE?J6e:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Rs(e.isCE?ws.NOT_INSTALLED_WITH_PROVIDE:ws.UNEXPECTED_ERROR);return t}}function tCe(e,t){return d9(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function nCe(e){return e.mode==="composition"?e.global:e.global.__composer}function oCe(e,t,n=!1){let o=null;const i=t.root;let r=iCe(t,n);for(;r!=null;){const s=e;if(e.mode==="composition")o=s.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(r);a!=null&&(o=a.__composer,n&&o&&!o[sQ]&&(o=null))}if(o!=null||i===r)break;r=r.parent}return o}function iCe(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function rCe(e,t,n){Ha(()=>{},t),cu(()=>{const o=n;e.__deleteInstance(t);const i=o[iI];i&&(i(),delete o[iI])},t)}function sCe(e,t,n,o={}){const i=t==="local",r=yy(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Rs(ws.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=Uo(o.inheritLocale)?o.inheritLocale:!yn(o.locale),a=In(!i||s?n.locale.value:yn(o.locale)?o.locale:B_),l=In(!i||s?n.fallbackLocale.value:yn(o.fallbackLocale)||Xi(o.fallbackLocale)||ao(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:a.value),d=In(f9(a.value,o)),u=In(ao(o.datetimeFormats)?o.datetimeFormats:{[a.value]:{}}),f=In(ao(o.numberFormats)?o.numberFormats:{[a.value]:{}}),p=i?n.missingWarn:Uo(o.missingWarn)||tp(o.missingWarn)?o.missingWarn:!0,v=i?n.fallbackWarn:Uo(o.fallbackWarn)||tp(o.fallbackWarn)?o.fallbackWarn:!0,_=i?n.fallbackRoot:Uo(o.fallbackRoot)?o.fallbackRoot:!0,k=!!o.fallbackFormat,C=Gi(o.missing)?o.missing:null,$=Gi(o.postTranslation)?o.postTranslation:null,E=i?n.warnHtmlMessage:Uo(o.warnHtmlMessage)?o.warnHtmlMessage:!0,P=!!o.escapeParameter,I=i?n.modifiers:ao(o.modifiers)?o.modifiers:{},O=o.pluralRules||i&&n.pluralRules;function L(){return[a.value,l.value,d.value,u.value,f.value]}const S=dt({get:()=>r.value?r.value.locale.value:a.value,set:ve=>{r.value&&(r.value.locale.value=ve),a.value=ve}}),j=dt({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:ve=>{r.value&&(r.value.fallbackLocale.value=ve),l.value=ve}}),M=dt(()=>r.value?r.value.messages.value:d.value),q=dt(()=>u.value),B=dt(()=>f.value);function V(){return r.value?r.value.getPostTranslationHandler():$}function G(ve){r.value&&r.value.setPostTranslationHandler(ve)}function Q(){return r.value?r.value.getMissingHandler():C}function X(ve){r.value&&r.value.setMissingHandler(ve)}function Y(ve){return L(),ve()}function Z(...ve){return r.value?Y(()=>Reflect.apply(r.value.t,null,[...ve])):Y(()=>"")}function se(...ve){return r.value?Reflect.apply(r.value.rt,null,[...ve]):""}function ce(...ve){return r.value?Y(()=>Reflect.apply(r.value.d,null,[...ve])):Y(()=>"")}function te(...ve){return r.value?Y(()=>Reflect.apply(r.value.n,null,[...ve])):Y(()=>"")}function ee(ve){return r.value?r.value.tm(ve):{}}function ae(ve,qe){return r.value?r.value.te(ve,qe):!1}function de(ve){return r.value?r.value.getLocaleMessage(ve):{}}function $e(ve,qe){r.value&&(r.value.setLocaleMessage(ve,qe),d.value[ve]=qe)}function be(ve,qe){r.value&&r.value.mergeLocaleMessage(ve,qe)}function me(ve){return r.value?r.value.getDateTimeFormat(ve):{}}function fe(ve,qe){r.value&&(r.value.setDateTimeFormat(ve,qe),u.value[ve]=qe)}function Ae(ve,qe){r.value&&r.value.mergeDateTimeFormat(ve,qe)}function je(ve){return r.value?r.value.getNumberFormat(ve):{}}function Ye(ve,qe){r.value&&(r.value.setNumberFormat(ve,qe),f.value[ve]=qe)}function _t(ve,qe){r.value&&r.value.mergeNumberFormat(ve,qe)}const xt={get id(){return r.value?r.value.id:-1},locale:S,fallbackLocale:j,messages:M,datetimeFormats:q,numberFormats:B,get inheritLocale(){return r.value?r.value.inheritLocale:s},set inheritLocale(ve){r.value&&(r.value.inheritLocale=ve)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(d.value)},get modifiers(){return r.value?r.value.modifiers:I},get pluralRules(){return r.value?r.value.pluralRules:O},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:p},set missingWarn(ve){r.value&&(r.value.missingWarn=ve)},get fallbackWarn(){return r.value?r.value.fallbackWarn:v},set fallbackWarn(ve){r.value&&(r.value.missingWarn=ve)},get fallbackRoot(){return r.value?r.value.fallbackRoot:_},set fallbackRoot(ve){r.value&&(r.value.fallbackRoot=ve)},get fallbackFormat(){return r.value?r.value.fallbackFormat:k},set fallbackFormat(ve){r.value&&(r.value.fallbackFormat=ve)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:E},set warnHtmlMessage(ve){r.value&&(r.value.warnHtmlMessage=ve)},get escapeParameter(){return r.value?r.value.escapeParameter:P},set escapeParameter(ve){r.value&&(r.value.escapeParameter=ve)},t:Z,getPostTranslationHandler:V,setPostTranslationHandler:G,getMissingHandler:Q,setMissingHandler:X,rt:se,d:ce,n:te,tm:ee,te:ae,getLocaleMessage:de,setLocaleMessage:$e,mergeLocaleMessage:be,getDateTimeFormat:me,setDateTimeFormat:fe,mergeDateTimeFormat:Ae,getNumberFormat:je,setNumberFormat:Ye,mergeNumberFormat:_t};function we(ve){ve.locale.value=a.value,ve.fallbackLocale.value=l.value,Object.keys(d.value).forEach(qe=>{ve.mergeLocaleMessage(qe,d.value[qe])}),Object.keys(u.value).forEach(qe=>{ve.mergeDateTimeFormat(qe,u.value[qe])}),Object.keys(f.value).forEach(qe=>{ve.mergeNumberFormat(qe,f.value[qe])}),ve.escapeParameter=P,ve.fallbackFormat=k,ve.fallbackRoot=_,ve.fallbackWarn=v,ve.missingWarn=p,ve.warnHtmlMessage=E}return by(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Rs(ws.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const ve=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=ve.locale.value,l.value=ve.fallbackLocale.value,d.value=ve.messages.value,u.value=ve.datetimeFormats.value,f.value=ve.numberFormats.value):i&&we(ve)}),xt}const aCe=["locale","fallbackLocale","availableLocales"],HF=["t","rt","d","n","tm","te"];function lCe(e,t){const n=Object.create(null);return aCe.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r)throw Rs(ws.UNEXPECTED_ERROR);const s=Oi(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,i,s)}),e.config.globalProperties.$i18n=n,HF.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r||!r.value)throw Rs(ws.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,r)}),()=>{delete e.config.globalProperties.$i18n,HF.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}j6e();__INTLIFY_JIT_COMPILATION__?wF(C6e):wF($6e);m6e(Z9e);p6e(VX);if(__INTLIFY_PROD_DEVTOOLS__){const e=Qh();e.__INTLIFY__=!0,i6e(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}/*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT */var bx="store";function cCe(e){return e===void 0&&(e=null),ts(e!==null?e:bx)}function dCe(e,t){return e.filter(t)[0]}function sI(e,t){if(t===void 0&&(t=[]),e===null||typeof e!="object")return e;var n=dCe(t,function(i){return i.original===e});if(n)return n.copy;var o=Array.isArray(e)?[]:{};return t.push({original:e,copy:o}),Object.keys(e).forEach(function(i){o[i]=sI(e[i],t)}),o}function $y(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function uQ(e){return e!==null&&typeof e=="object"}function uCe(e){return e&&typeof e.then=="function"}function hCe(e,t){return function(){return e(t)}}function hQ(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}}function fQ(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;m9(e,n,[],e._modules.root,!0),kx(e,n,t)}function kx(e,t,n){var o=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,s={},a={},l=H$(!0);l.run(function(){$y(r,function(d,u){s[u]=hCe(d,e),a[u]=dt(function(){return s[u]()}),Object.defineProperty(e.getters,u,{get:function(){return a[u].value},enumerable:!0})})}),e._state=hc({data:t}),e._scope=l,e.strict&&vCe(e),o&&n&&e._withCommit(function(){o.data=null}),i&&i.stop()}function m9(e,t,n,o,i){var r=!n.length,s=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=o),!r&&!i){var a=wx(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=o.state})}var d=o.context=fCe(e,s,n);o.forEachMutation(function(u,f){var p=s+f;mCe(e,p,u,d)}),o.forEachAction(function(u,f){var p=u.root?f:s+f,v=u.handler||u;pCe(e,p,v,d)}),o.forEachGetter(function(u,f){var p=s+f;gCe(e,p,u,d)}),o.forEachChild(function(u,f){m9(e,t,n.concat(f),u,i)})}function fCe(e,t,n){var o=t==="",i={dispatch:o?e.dispatch:function(r,s,a){var l=u5(r,s,a),d=l.payload,u=l.options,f=l.type;return(!u||!u.root)&&(f=t+f),e.dispatch(f,d)},commit:o?e.commit:function(r,s,a){var l=u5(r,s,a),d=l.payload,u=l.options,f=l.type;(!u||!u.root)&&(f=t+f),e.commit(f,d,u)}};return Object.defineProperties(i,{getters:{get:o?function(){return e.getters}:function(){return mQ(e,t)}},state:{get:function(){return wx(e.state,n)}}}),i}function mQ(e,t){if(!e._makeLocalGettersCache[t]){var n={},o=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,o)===t){var r=i.slice(o);Object.defineProperty(n,r,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function mCe(e,t,n,o){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(s){n.call(e,o.state,s)})}function pCe(e,t,n,o){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(s){var a=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},s);return uCe(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function gCe(e,t,n,o){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(r){return n(o.state,o.getters,r.state,r.getters)})}function vCe(e){Co(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function wx(e,t){return t.reduce(function(n,o){return n[o]},e)}function u5(e,t,n){return uQ(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var _Ce="vuex bindings",VF="vuex:mutations",X7="vuex:actions",uv="vuex",yCe=0;function bCe(e,t){N6e({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[_Ce]},function(n){n.addTimelineLayer({id:VF,label:"Vuex Mutations",color:qF}),n.addTimelineLayer({id:X7,label:"Vuex Actions",color:qF}),n.addInspector({id:uv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(o){if(o.app===e&&o.inspectorId===uv)if(o.filter){var i=[];_Q(i,t._modules.root,o.filter,""),o.rootNodes=i}else o.rootNodes=[vQ(t._modules.root,"")]}),n.on.getInspectorState(function(o){if(o.app===e&&o.inspectorId===uv){var i=o.nodeId;mQ(t,i),o.state=$Ce(SCe(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(o){if(o.app===e&&o.inspectorId===uv){var i=o.nodeId,r=o.path;i!=="root"&&(r=i.split("/").filter(Boolean).concat(r)),t._withCommit(function(){o.set(t._state.data,r,o.state.value)})}}),t.subscribe(function(o,i){var r={};o.payload&&(r.payload=o.payload),r.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(uv),n.sendInspectorState(uv),n.addTimelineEvent({layerId:VF,event:{time:Date.now(),title:o.type,data:r}})}),t.subscribeAction({before:function(o,i){var r={};o.payload&&(r.payload=o.payload),o._id=yCe++,o._time=Date.now(),r.state=i,n.addTimelineEvent({layerId:X7,event:{time:o._time,title:o.type,groupId:o._id,subtitle:"start",data:r}})},after:function(o,i){var r={},s=Date.now()-o._time;r.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},o.payload&&(r.payload=o.payload),r.state=i,n.addTimelineEvent({layerId:X7,event:{time:Date.now(),title:o.type,groupId:o._id,subtitle:"end",data:r}})}})})}var qF=8702998,kCe=6710886,wCe=16777215,pQ={label:"namespaced",textColor:wCe,backgroundColor:kCe};function gQ(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function vQ(e,t){return{id:t||"root",label:gQ(t),tags:e.namespaced?[pQ]:[],children:Object.keys(e._children).map(function(n){return vQ(e._children[n],t+n+"/")})}}function _Q(e,t,n,o){o.includes(n)&&e.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:t.namespaced?[pQ]:[]}),Object.keys(t._children).forEach(function(i){_Q(e,t._children[i],n,o+i+"/")})}function $Ce(e,t,n){t=n==="root"?t:t[n];var o=Object.keys(t),i={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(o.length){var r=CCe(t);i.getters=Object.keys(r).map(function(s){return{key:s.endsWith("/")?gQ(s):s,editable:!1,value:aI(function(){return r[s]})}})}return i}function CCe(e){var t={};return Object.keys(e).forEach(function(n){var o=n.split("/");if(o.length>1){var i=t,r=o.pop();o.forEach(function(s){i[s]||(i[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),i=i[s]._custom.value}),i[r]=aI(function(){return e[n]})}else t[n]=aI(function(){return e[n]})}),t}function SCe(e,t){var n=t.split("/").filter(function(o){return o});return n.reduce(function(o,i,r){var s=o[i];if(!s)throw new Error('Missing module "'+i+'" for path "'+t+'".');return r===n.length-1?s:s._children},t==="root"?e:e.root._children)}function aI(e){try{return e()}catch(t){return t}}var du=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var o=t.state;this.state=(typeof o=="function"?o():o)||{}},yQ={namespaced:{configurable:!0}};yQ.namespaced.get=function(){return!!this._rawModule.namespaced};du.prototype.addChild=function(t,n){this._children[t]=n};du.prototype.removeChild=function(t){delete this._children[t]};du.prototype.getChild=function(t){return this._children[t]};du.prototype.hasChild=function(t){return t in this._children};du.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};du.prototype.forEachChild=function(t){$y(this._children,t)};du.prototype.forEachGetter=function(t){this._rawModule.getters&&$y(this._rawModule.getters,t)};du.prototype.forEachAction=function(t){this._rawModule.actions&&$y(this._rawModule.actions,t)};du.prototype.forEachMutation=function(t){this._rawModule.mutations&&$y(this._rawModule.mutations,t)};Object.defineProperties(du.prototype,yQ);var dg=function(t){this.register([],t,!1)};dg.prototype.get=function(t){return t.reduce(function(n,o){return n.getChild(o)},this.root)};dg.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(o,i){return n=n.getChild(i),o+(n.namespaced?i+"/":"")},"")};dg.prototype.update=function(t){bQ([],this.root,t)};dg.prototype.register=function(t,n,o){var i=this;o===void 0&&(o=!0);var r=new du(n,o);if(t.length===0)this.root=r;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],r)}n.modules&&$y(n.modules,function(a,l){i.register(t.concat(l),a,o)})};dg.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),o=t[t.length-1],i=n.getChild(o);i&&i.runtime&&n.removeChild(o)};dg.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),o=t[t.length-1];return n?n.hasChild(o):!1};function bQ(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return;bQ(e.concat(o),t.getChild(o),n.modules[o])}}function TCe(e){return new Va(e)}var Va=function(t){var n=this;t===void 0&&(t={});var o=t.plugins;o===void 0&&(o=[]);var i=t.strict;i===void 0&&(i=!1);var r=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new dg(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var s=this,a=this,l=a.dispatch,d=a.commit;this.dispatch=function(p,v){return l.call(s,p,v)},this.commit=function(p,v,_){return d.call(s,p,v,_)},this.strict=i;var u=this._modules.root.state;m9(this,u,[],this._modules.root),kx(this,u),o.forEach(function(f){return f(n)})},$x={state:{configurable:!0}};Va.prototype.install=function(t,n){t.provide(n||bx,this),t.config.globalProperties.$store=this;var o=this._devtools!==void 0?this._devtools:!1;o&&bCe(t,this)};$x.state.get=function(){return this._state.data};$x.state.set=function(e){};Va.prototype.commit=function(t,n,o){var i=this,r=u5(t,n,o),s=r.type,a=r.payload,l={type:s,payload:a},d=this._mutations[s];d&&(this._withCommit(function(){d.forEach(function(f){f(a)})}),this._subscribers.slice().forEach(function(u){return u(l,i.state)}))};Va.prototype.dispatch=function(t,n){var o=this,i=u5(t,n),r=i.type,s=i.payload,a={type:r,payload:s},l=this._actions[r];if(l){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(a,o.state)})}catch{}var d=l.length>1?Promise.all(l.map(function(u){return u(s)})):l[0](s);return new Promise(function(u,f){d.then(function(p){try{o._actionSubscribers.filter(function(v){return v.after}).forEach(function(v){return v.after(a,o.state)})}catch{}u(p)},function(p){try{o._actionSubscribers.filter(function(v){return v.error}).forEach(function(v){return v.error(a,o.state,p)})}catch{}f(p)})})}};Va.prototype.subscribe=function(t,n){return hQ(t,this._subscribers,n)};Va.prototype.subscribeAction=function(t,n){var o=typeof t=="function"?{before:t}:t;return hQ(o,this._actionSubscribers,n)};Va.prototype.watch=function(t,n,o){var i=this;return Co(function(){return t(i.state,i.getters)},n,Object.assign({},o))};Va.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};Va.prototype.registerModule=function(t,n,o){o===void 0&&(o={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),m9(this,this.state,t,this._modules.get(t),o.preserveState),kx(this,this.state)};Va.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var o=wx(n.state,t.slice(0,-1));delete o[t[t.length-1]]}),fQ(this)};Va.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Va.prototype.hotUpdate=function(t){this._modules.update(t),fQ(this,!0)};Va.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(Va.prototype,$x);var sn=g9(function(e,t){var n={};return p9(t).forEach(function(o){var i=o.key,r=o.val;n[i]=function(){var a=this.$store.state,l=this.$store.getters;if(e){var d=v9(this.$store,"mapState",e);if(!d)return;a=d.context.state,l=d.context.getters}return typeof r=="function"?r.call(this,a,l):a[r]},n[i].vuex=!0}),n}),kQ=g9(function(e,t){var n={};return p9(t).forEach(function(o){var i=o.key,r=o.val;n[i]=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var d=this.$store.commit;if(e){var u=v9(this.$store,"mapMutations",e);if(!u)return;d=u.context.commit}return typeof r=="function"?r.apply(this,[d].concat(a)):d.apply(this.$store,[r].concat(a))}}),n}),Oe=g9(function(e,t){var n={};return p9(t).forEach(function(o){var i=o.key,r=o.val;r=e+r,n[i]=function(){if(!(e&&!v9(this.$store,"mapGetters",e)))return this.$store.getters[r]},n[i].vuex=!0}),n}),V1=g9(function(e,t){var n={};return p9(t).forEach(function(o){var i=o.key,r=o.val;n[i]=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var d=this.$store.dispatch;if(e){var u=v9(this.$store,"mapActions",e);if(!u)return;d=u.context.dispatch}return typeof r=="function"?r.apply(this,[d].concat(a)):d.apply(this.$store,[r].concat(a))}}),n}),ECe=function(e){return{mapState:sn.bind(null,e),mapGetters:Oe.bind(null,e),mapMutations:kQ.bind(null,e),mapActions:V1.bind(null,e)}};function p9(e){return ICe(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function ICe(e){return Array.isArray(e)||uQ(e)}function g9(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function v9(e,t,n){var o=e._modulesNamespaceMap[n];return o}function PCe(e){e===void 0&&(e={});var t=e.collapsed;t===void 0&&(t=!0);var n=e.filter;n===void 0&&(n=function(u,f,p){return!0});var o=e.transformer;o===void 0&&(o=function(u){return u});var i=e.mutationTransformer;i===void 0&&(i=function(u){return u});var r=e.actionFilter;r===void 0&&(r=function(u,f){return!0});var s=e.actionTransformer;s===void 0&&(s=function(u){return u});var a=e.logMutations;a===void 0&&(a=!0);var l=e.logActions;l===void 0&&(l=!0);var d=e.logger;return d===void 0&&(d=console),function(u){var f=sI(u.state);typeof d>"u"||(a&&u.subscribe(function(p,v){var _=sI(v);if(n(p,f,_)){var k=GF(),C=i(p),$="mutation "+p.type+k;YF(d,$,t),d.log("%c prev state","color: #9E9E9E; font-weight: bold",o(f)),d.log("%c mutation","color: #03A9F4; font-weight: bold",C),d.log("%c next state","color: #4CAF50; font-weight: bold",o(_)),WF(d)}f=_}),l&&u.subscribeAction(function(p,v){if(r(p,v)){var _=GF(),k=s(p),C="action "+p.type+_;YF(d,C,t),d.log("%c action","color: #03A9F4; font-weight: bold",k),WF(d)}}))}}function YF(e,t,n){var o=n?e.groupCollapsed:e.group;try{o.call(e,t)}catch{e.log(t)}}function WF(e){try{e.groupEnd()}catch{e.log("—— log end ——")}}function GF(){var e=new Date;return" @ "+_w(e.getHours(),2)+":"+_w(e.getMinutes(),2)+":"+_w(e.getSeconds(),2)+"."+_w(e.getMilliseconds(),3)}function ACe(e,t){return new Array(t+1).join(e)}function _w(e,t){return ACe("0",t-e.toString().length)+e}var DCe={version:"4.1.0",Store:Va,storeKey:bx,createStore:TCe,useStore:cCe,mapState:sn,mapMutations:kQ,mapGetters:Oe,mapActions:V1,createNamespacedHelpers:ECe,createLogger:PCe};const xCe=DCe;var wQ={exports:{}};/*! * vue-scrollto v2.20.0 * (c) 2019 Randjelovic Igor * @license MIT */(function(e,t){(function(n,o){e.exports=o()})(bo,function(){function n(ee){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(ae){return typeof ae}:n=function(ae){return ae&&typeof Symbol=="function"&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae},n(ee)}function o(){return o=Object.assign||function(ee){for(var ae=1;ae<arguments.length;ae++){var de=arguments[ae];for(var $e in de)Object.prototype.hasOwnProperty.call(de,$e)&&(ee[$e]=de[$e])}return ee},o.apply(this,arguments)}var i=4,r=.001,s=1e-7,a=10,l=11,d=1/(l-1),u=typeof Float32Array=="function";function f(ee,ae){return 1-3*ae+3*ee}function p(ee,ae){return 3*ae-6*ee}function v(ee){return 3*ee}function _(ee,ae,de){return((f(ae,de)*ee+p(ae,de))*ee+v(ae))*ee}function k(ee,ae,de){return 3*f(ae,de)*ee*ee+2*p(ae,de)*ee+v(ae)}function C(ee,ae,de,$e,be){var me,fe,Ae=0;do fe=ae+(de-ae)/2,me=_(fe,$e,be)-ee,me>0?de=fe:ae=fe;while(Math.abs(me)>s&&++Ae<a);return fe}function $(ee,ae,de,$e){for(var be=0;be<i;++be){var me=k(ae,de,$e);if(me===0)return ae;var fe=_(ae,de,$e)-ee;ae-=fe/me}return ae}function E(ee){return ee}var P=function(ae,de,$e,be){if(!(0<=ae&&ae<=1&&0<=$e&&$e<=1))throw new Error("bezier x values must be in [0, 1] range");if(ae===de&&$e===be)return E;for(var me=u?new Float32Array(l):new Array(l),fe=0;fe<l;++fe)me[fe]=_(fe*d,ae,$e);function Ae(je){for(var Ye=0,_t=1,xt=l-1;_t!==xt&&me[_t]<=je;++_t)Ye+=d;--_t;var we=(je-me[_t])/(me[_t+1]-me[_t]),ve=Ye+we*d,qe=k(ve,ae,$e);return qe>=r?$(je,ve,ae,$e):qe===0?ve:C(je,Ye,Ye+d,ae,$e)}return function(Ye){return Ye===0?0:Ye===1?1:_(Ae(Ye),de,be)}},I={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},O=!1;try{var L=Object.defineProperty({},"passive",{get:function(){O=!0}});window.addEventListener("test",null,L)}catch{}var S={$:function(ae){return typeof ae!="string"?ae:document.querySelector(ae)},on:function(ae,de,$e){var be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{passive:!1};de instanceof Array||(de=[de]);for(var me=0;me<de.length;me++)ae.addEventListener(de[me],$e,O?be:!1)},off:function(ae,de,$e){de instanceof Array||(de=[de]);for(var be=0;be<de.length;be++)ae.removeEventListener(de[be],$e)},cumulativeOffset:function(ae){var de=0,$e=0;do de+=ae.offsetTop||0,$e+=ae.offsetLeft||0,ae=ae.offsetParent;while(ae);return{top:de,left:$e}}},j=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],M={container:"body",duration:500,lazy:!0,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function q(ee){M=o({},M,ee)}var B=function(){var ae,de,$e,be,me,fe,Ae,je,Ye,_t,xt,we,ve,qe,$t,ut,Ve,tt,ge,ye,Te,gt,yt,Xe=function(Ne){je&&(yt=Ne,ye=!0)},Ze,vt,Ut,Je;function We(kt){var Ne=kt.scrollTop;return kt.tagName.toLowerCase()==="body"&&(Ne=Ne||document.documentElement.scrollTop),Ne}function pt(kt){var Ne=kt.scrollLeft;return kt.tagName.toLowerCase()==="body"&&(Ne=Ne||document.documentElement.scrollLeft),Ne}function At(){Te=S.cumulativeOffset(de),gt=S.cumulativeOffset(ae),we&&($t=gt.left-Te.left+fe,tt=$t-qe),ve&&(Ve=gt.top-Te.top+fe,ge=Ve-ut)}function Vt(kt){if(ye)return cn();vt||(vt=kt),me||At(),Ut=kt-vt,Je=Math.min(Ut/$e,1),Je=Ze(Je),fn(de,ut+ge*Je,qe+tt*Je),Ut<$e?window.requestAnimationFrame(Vt):cn()}function cn(){ye||fn(de,Ve,$t),vt=!1,S.off(de,j,Xe),ye&&xt&&xt(yt,ae),!ye&&_t&&_t(ae)}function fn(kt,Ne,nt){ve&&(kt.scrollTop=Ne),we&&(kt.scrollLeft=nt),kt.tagName.toLowerCase()==="body"&&(ve&&(document.documentElement.scrollTop=Ne),we&&(document.documentElement.scrollLeft=nt))}function bn(kt,Ne){var nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n(Ne)==="object"?nt=Ne:typeof Ne=="number"&&(nt.duration=Ne),ae=S.$(kt),!ae)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+kt);if(de=S.$(nt.container||M.container),$e=nt.hasOwnProperty("duration")?nt.duration:M.duration,me=nt.hasOwnProperty("lazy")?nt.lazy:M.lazy,be=nt.easing||M.easing,fe=nt.hasOwnProperty("offset")?nt.offset:M.offset,Ae=nt.hasOwnProperty("force")?nt.force!==!1:M.force,je=nt.hasOwnProperty("cancelable")?nt.cancelable!==!1:M.cancelable,Ye=nt.onStart||M.onStart,_t=nt.onDone||M.onDone,xt=nt.onCancel||M.onCancel,we=nt.x===void 0?M.x:nt.x,ve=nt.y===void 0?M.y:nt.y,typeof fe=="function"&&(fe=fe(ae,de)),qe=pt(de),ut=We(de),At(),ye=!1,!Ae){var It=de.tagName.toLowerCase()==="body"?document.documentElement.clientHeight||window.innerHeight:de.offsetHeight,Zt=ut,dn=Zt+It,Hn=Ve-fe,Oo=Hn+ae.offsetHeight;if(Hn>=Zt&&Oo<=dn){_t&&_t(ae);return}}if(Ye&&Ye(ae),!ge&&!tt){_t&&_t(ae);return}return typeof be=="string"&&(be=I[be]||I.ease),Ze=P.apply(P,be),S.on(de,j,Xe,{passive:!0}),window.requestAnimationFrame(Vt),function(){yt=null,ye=!0}}return bn},V=B(),G=[];function Q(ee){for(var ae=0;ae<G.length;++ae)if(G[ae].el===ee)return G.splice(ae,1),!0;return!1}function X(ee){for(var ae=0;ae<G.length;++ae)if(G[ae].el===ee)return G[ae]}function Y(ee){var ae=X(ee);return ae||(G.push(ae={el:ee,binding:{}}),ae)}function Z(ee){var ae=Y(this).binding;if(ae.value){if(ee.preventDefault(),typeof ae.value=="string")return V(ae.value);V(ae.value.el||ae.value.element,ae.value)}}var se={bind:function(ae,de){Y(ae).binding=de,S.on(ae,"click",Z)},unbind:function(ae){Q(ae),S.off(ae,"click",Z)},update:function(ae,de){Y(ae).binding=de}},ce={bind:se.bind,unbind:se.unbind,update:se.update,beforeMount:se.bind,unmounted:se.unbind,updated:se.update,scrollTo:V,bindings:G},te=function(ae,de){de&&q(de),ae.directive("scroll-to",ce);var $e=ae.config.globalProperties||ae.prototype;$e.$scrollTo=ce.scrollTo};return typeof window<"u"&&window.Vue&&(window.VueScrollTo=ce,window.VueScrollTo.setDefaults=q,window.VueScrollTo.scroller=B,window.Vue.use&&window.Vue.use(te)),ce.install=te,ce})})(wQ);var OCe=wQ.exports;const LCe=Ol(OCe);var $Q={exports:{}};(function(e,t){(function(){var n={expires:"1d",path:"; path=/",domain:"",secure:"",sameSite:"; SameSite=Lax",partitioned:""},o={install:function(i,r){r&&this.config(r.expires,r.path,r.domain,r.secure,r.sameSite,r.partitioned),i.prototype&&(i.prototype.$cookies=this),i.config&&i.config.globalProperties&&(i.config.globalProperties.$cookies=this,i.provide("$cookies",this)),i.$cookies=this},config:function(i,r,s,a,l,d){n.expires=i||"1d",n.path=r?"; path="+r:"; path=/",n.domain=s?"; domain="+s:"",n.secure=a?"; Secure":"",n.sameSite=l?"; SameSite="+l:"; SameSite=Lax",n.partitioned=d?"; Partitioned":""},get:function(i){var r=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(r&&(r.substring(0,1)==="{"&&r.substring(r.length-1,r.length)==="}"||r.substring(0,1)==="["&&r.substring(r.length-1,r.length)==="]"))try{r=JSON.parse(r)}catch{return r}return r},set:function(i,r,s,a,l,d,u,f){if(i){if(/^(?:expires|max\-age|path|domain|secure|SameSite)$/i.test(i))throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"] current key name: '+i)}else throw new Error("Cookie name is not found in the first argument.");r&&typeof r=="object"&&(r=JSON.stringify(r));var p="";if(s=s===void 0?n.expires:s,s&&s!==0)switch(s.constructor){case Number:s===1/0||s===-1?p="; expires=Fri, 31 Dec 9999 23:59:59 GMT":p="; max-age="+s;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(s)){var v=s.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(s.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":p="; max-age="+ +v*2592e3;break;case"d":p="; max-age="+ +v*86400;break;case"h":p="; max-age="+ +v*3600;break;case"min":p="; max-age="+ +v*60;break;case"s":p="; max-age="+v;break;case"y":p="; max-age="+ +v*31104e3;break}}else p="; expires="+s;break;case Date:p="; expires="+s.toUTCString();break}return document.cookie=encodeURIComponent(i)+"="+encodeURIComponent(r)+p+(l?"; domain="+l:n.domain)+(a?"; path="+a:n.path)+(d===void 0?n.secure:d?"; Secure":"")+(u===void 0?n.sameSite:u?"; SameSite="+u:"")+(f===void 0?n.partitioned:f?"; Partitioned":""),this},remove:function(i,r,s){return!i||!this.isKey(i)?!1:(document.cookie=encodeURIComponent(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(s?"; domain="+s:n.domain)+(r?"; path="+r:n.path)+"; SameSite=Lax",!0)},isKey:function(i){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){if(!document.cookie)return[];for(var i=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),r=0;r<i.length;r++)i[r]=decodeURIComponent(i[r]);return i}};e.exports=o,typeof window<"u"&&(window.$cookies=o)})()})($Q);var MCe=$Q.exports;const NCe=Ol(MCe);var RCe=Object.defineProperty,jCe=Object.defineProperties,FCe=Object.getOwnPropertyDescriptors,ZF=Object.getOwnPropertySymbols,zCe=Object.prototype.hasOwnProperty,UCe=Object.prototype.propertyIsEnumerable,KF=(e,t,n)=>t in e?RCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hv=(e,t)=>{for(var n in t||(t={}))zCe.call(t,n)&&KF(e,n,t[n]);if(ZF)for(var n of ZF(t))UCe.call(t,n)&&KF(e,n,t[n]);return e},JF=(e,t)=>jCe(e,FCe(t));const BCe={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(e){this.autoscroll&&e&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var e;const t=((e=this.$refs.dropdownMenu)==null?void 0:e.children[this.typeAheadPointer])||!1;if(t){const n=this.getDropdownViewport(),{top:o,bottom:i,height:r}=t.getBoundingClientRect();if(o<n.top)return this.$refs.dropdownMenu.scrollTop=t.offsetTop;if(i>n.bottom)return this.$refs.dropdownMenu.scrollTop=t.offsetTop-(n.height-r)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},HCe={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let e=0;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},open(e){e&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let e=this.typeAheadPointer-1;e>=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown(){for(let e=this.typeAheadPointer+1;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadSelect(){const e=this.filteredOptions[this.typeAheadPointer];e&&this.selectable(e)&&this.select(e)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},VCe={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(e){this.mutableLoading=e}},methods:{toggleLoading(e=null){return e==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=e}}},Cx=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},qCe={},YCe={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},WCe=c("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),GCe=[WCe];function ZCe(e,t){return h(),g("svg",YCe,GCe)}const KCe=Cx(qCe,[["render",ZCe]]),JCe={},XCe={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},QCe=c("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),e7e=[QCe];function t7e(e,t){return h(),g("svg",XCe,e7e)}const n7e=Cx(JCe,[["render",t7e]]),XF={Deselect:KCe,OpenIndicator:n7e},o7e={mounted(e,{instance:t}){if(t.appendToBody){const{height:n,top:o,left:i,width:r}=t.$refs.toggle.getBoundingClientRect();let s=window.scrollX||window.pageXOffset,a=window.scrollY||window.pageYOffset;e.unbindPosition=t.calculatePosition(e,t,{width:r+"px",left:s+i+"px",top:a+o+n+"px"}),document.body.appendChild(e)}},unmounted(e,{instance:t}){t.appendToBody&&(e.unbindPosition&&typeof e.unbindPosition=="function"&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}};function i7e(e){const t={};return Object.keys(e).sort().forEach(n=>{t[n]=e[n]}),JSON.stringify(t)}let r7e=0;function s7e(){return++r7e}const a7e={components:hv({},XF),directives:{appendToBody:o7e},mixins:[BCe,HCe,VCe],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:e=>e},selectable:{type:Function,default:e=>!0},getOptionLabel:{type:Function,default(e){return typeof e=="object"?e.hasOwnProperty(this.label)?e[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(e)}. https://vue-select.org/api/props.html#getoptionlabel`):e}},getOptionKey:{type:Function,default(e){if(typeof e!="object")return e;try{return e.hasOwnProperty("id")?e.id:i7e(e)}catch(t){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option. https://vue-select.org/api/props.html#getoptionkey`,e,t)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(e,t,n){return(t||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(e,t){return e.filter(n=>{let o=this.getOptionLabel(n);return typeof o=="number"&&(o=o.toString()),this.filterBy(n,o,t)})}},createOption:{type:Function,default(e){return typeof this.optionList[0]=="object"?{[this.label]:e}:e}},resetOnOptionsChange:{default:!1,validator:e=>["function","boolean"].includes(typeof e)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:e,multiple:t}){return e&&!t}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(e,t)=>e},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(e,t,{width:n,top:o,left:i}){e.style.top=o,e.style.left=i,e.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:e,open:t,mutableLoading:n}){return e?!1:t&&!n}},uid:{type:[String,Number],default:()=>s7e()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let e=this.modelValue;return this.isTrackingValues&&(e=this.$data._value),e!=null&&e!==""?[].concat(e):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const e={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:hv({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:t=>this.search=t.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:e,listFooter:e,header:JF(hv({},e),{deselect:this.deselect}),footer:JF(hv({},e),{deselect:this.deselect})}},childComponents(){return hv(hv({},XF),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const e=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return e;const t=this.search.length?this.filter(e,this.search,this):e;if(this.taggable&&this.search.length){const n=this.createOption(this.search);this.optionExists(n)||t.unshift(n)}return t},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(e,t){const n=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(e,t,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&n()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple(){this.clearSelection()},open(e){this.$emit(e?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(e){Array.isArray(e)?this.$data._value=e.map(t=>this.findOptionFromReducedValue(t)):this.$data._value=this.findOptionFromReducedValue(e)},select(e){this.$emit("option:selecting",e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&(this.$emit("option:created",e),this.pushTag(e)),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit("option:selected",e)),this.onAfterSelect(e)},deselect(e){this.$emit("option:deselecting",e),this.updateValue(this.selectedValue.filter(t=>!this.optionComparator(t,e))),this.$emit("option:deselected",e)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(e){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(e){typeof this.modelValue>"u"&&(this.$data._value=e),e!==null&&(Array.isArray(e)?e=e.map(t=>this.reduce(t)):e=this.reduce(e)),this.$emit("update:modelValue",e)},toggleDropdown(e){const t=e.target!==this.searchEl;t&&e.preventDefault();const n=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||n.filter(Boolean).some(o=>o.contains(e.target)||o===e.target)){e.preventDefault();return}this.open&&t?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(e){return this.selectedValue.some(t=>this.optionComparator(t,e))},isOptionDeselectable(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},optionComparator(e,t){return this.getOptionKey(e)===this.getOptionKey(t)},findOptionFromReducedValue(e){const t=o=>JSON.stringify(this.reduce(o))===JSON.stringify(e),n=[...this.options,...this.pushedTags].filter(t);return n.length===1?n[0]:n.find(o=>this.optionComparator(o,this.$data._value))||e},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let e=null;this.multiple&&(e=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(e)}},optionExists(e){return this.optionList.some(t=>this.optionComparator(t,e))},normalizeOptionForSlot(e){return typeof e=="object"?e:{[this.label]:e}},pushTag(e){this.pushedTags.push(e)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:e,multiple:t}=this;this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:t})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(e){const t=i=>(i.preventDefault(),!this.isComposing&&this.typeAheadSelect()),n={8:i=>this.maybeDeleteValue(),9:i=>this.onTab(),27:i=>this.onEscape(),38:i=>(i.preventDefault(),this.typeAheadUp()),40:i=>(i.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(i=>n[i]=t);const o=this.mapKeydown(n,this);if(typeof o[e.keyCode]=="function")return o[e.keyCode](e)}}},l7e=["dir"],c7e=["id","aria-expanded","aria-owns"],d7e={ref:"selectedOptions",class:"vs__selected-options"},u7e=["disabled","title","aria-label","onClick"],h7e={ref:"actions",class:"vs__actions"},f7e=["disabled"],m7e={class:"vs__spinner"},p7e=["id"],g7e=["id","aria-selected","onMouseover","onClick"],v7e={key:0,class:"vs__no-options"},_7e=z(" Sorry, no matching options. "),y7e=["id"];function b7e(e,t,n,o,i,r){const s=an("append-to-body");return h(),g("div",{dir:n.dir,class:J(["v-select",r.stateClasses])},[Pt(e.$slots,"header",hs(Ws(r.scope.header))),c("div",{id:`vs${n.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":r.dropdownOpen.toString(),"aria-owns":`vs${n.uid}__listbox`,"aria-label":"Search for option",onMousedown:t[1]||(t[1]=a=>r.toggleDropdown(a))},[c("div",d7e,[(h(!0),g(pe,null,Me(r.selectedValue,(a,l)=>Pt(e.$slots,"selected-option-container",{option:r.normalizeOptionForSlot(a),deselect:r.deselect,multiple:n.multiple,disabled:n.disabled},()=>[(h(),g("span",{key:n.getOptionKey(a),class:"vs__selected"},[Pt(e.$slots,"selected-option",hs(Ws(r.normalizeOptionForSlot(a))),()=>[z(m(n.getOptionLabel(a)),1)]),n.multiple?(h(),g("button",{key:0,ref_for:!0,ref:d=>i.deselectButtons[l]=d,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(a)}`,"aria-label":`Deselect ${n.getOptionLabel(a)}`,onClick:d=>r.deselect(a)},[(h(),W(Dl(r.childComponents.Deselect)))],8,u7e)):D("",!0)]))])),256)),Pt(e.$slots,"search",hs(Ws(r.scope.search)),()=>[c("input",Ur({class:"vs__search"},r.scope.search.attributes,Yu(r.scope.search.events)),null,16)])],512),c("div",h7e,[xe(c("button",{ref:"clearButton",disabled:n.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:t[0]||(t[0]=(...a)=>r.clearSelection&&r.clearSelection(...a))},[(h(),W(Dl(r.childComponents.Deselect)))],8,f7e),[[Vo,r.showClearButton]]),Pt(e.$slots,"open-indicator",hs(Ws(r.scope.openIndicator)),()=>[n.noDrop?D("",!0):(h(),W(Dl(r.childComponents.OpenIndicator),hs(Ur({key:0},r.scope.openIndicator.attributes)),null,16))]),Pt(e.$slots,"spinner",hs(Ws(r.scope.spinner)),()=>[xe(c("div",m7e,"Loading...",512),[[Vo,e.mutableLoading]])])],512)],40,c7e),b(nd,{name:n.transition},{default:F(()=>[r.dropdownOpen?xe((h(),g("ul",{id:`vs${n.uid}__listbox`,ref:"dropdownMenu",key:`vs${n.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:t[2]||(t[2]=Gt((...a)=>r.onMousedown&&r.onMousedown(...a),["prevent"])),onMouseup:t[3]||(t[3]=(...a)=>r.onMouseUp&&r.onMouseUp(...a))},[Pt(e.$slots,"list-header",hs(Ws(r.scope.listHeader))),(h(!0),g(pe,null,Me(r.filteredOptions,(a,l)=>(h(),g("li",{id:`vs${n.uid}__option-${l}`,key:n.getOptionKey(a),role:"option",class:J(["vs__dropdown-option",{"vs__dropdown-option--deselect":r.isOptionDeselectable(a)&&l===e.typeAheadPointer,"vs__dropdown-option--selected":r.isOptionSelected(a),"vs__dropdown-option--highlight":l===e.typeAheadPointer,"vs__dropdown-option--disabled":!n.selectable(a)}]),"aria-selected":l===e.typeAheadPointer?!0:null,onMouseover:d=>n.selectable(a)?e.typeAheadPointer=l:null,onClick:Gt(d=>n.selectable(a)?r.select(a):null,["prevent","stop"])},[Pt(e.$slots,"option",hs(Ws(r.normalizeOptionForSlot(a))),()=>[z(m(n.getOptionLabel(a)),1)])],42,g7e))),128)),r.filteredOptions.length===0?(h(),g("li",v7e,[Pt(e.$slots,"no-options",hs(Ws(r.scope.noOptions)),()=>[_7e])])):D("",!0),Pt(e.$slots,"list-footer",hs(Ws(r.scope.listFooter)))],40,p7e)),[[s]]):(h(),g("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,y7e))]),_:3},8,["name"]),Pt(e.$slots,"footer",hs(Ws(r.scope.footer)))],10,l7e)}const k7e=Cx(a7e,[["render",b7e]]);var CQ={exports:{}};const Sx=u$(n9e);(function(e,t){(function(o,i){e.exports=i(Sx)})(bo,n=>(()=>{var o={597:(de,$e)=>{Object.defineProperty($e,"__esModule",{value:!0}),$e.default=(be,me)=>{const fe=be.__vccOpts||be;for(const[Ae,je]of me)fe[Ae]=je;return fe}},594:de=>{de.exports=n}},i={};function r(de){var $e=i[de];if($e!==void 0)return $e.exports;var be=i[de]={exports:{}};return o[de](be,be.exports,r),be.exports}r.d=(de,$e)=>{for(var be in $e)r.o($e,be)&&!r.o(de,be)&&Object.defineProperty(de,be,{enumerable:!0,get:$e[be]})},r.o=(de,$e)=>Object.prototype.hasOwnProperty.call(de,$e),r.r=de=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(de,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(de,"__esModule",{value:!0})};var s={};r.r(s),r.d(s,{Component:()=>ce,LoadingPlugin:()=>ee,default:()=>ae,useLoading:()=>te});var a=r(594);function l(de){var $e;typeof de.remove<"u"?de.remove():($e=de.parentNode)==null||$e.removeChild(de)}function d(de,$e,be){let me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const fe=(0,a.h)(de,$e,me),Ae=document.createElement("div");return Ae.classList.add("vld-container"),be.appendChild(Ae),(0,a.render)(fe,Ae),fe.component}function u(){return typeof window<"u"}const f=u()?window.HTMLElement:Object,p=["aria-busy"],v={class:"vl-icon"};function _(de,$e,be,me,fe,Ae){return(0,a.openBlock)(),(0,a.createBlock)(a.Transition,{name:de.transition},{default:(0,a.withCtx)(()=>[(0,a.withDirectives)((0,a.createElementVNode)("div",{tabindex:"0",class:(0,a.normalizeClass)(["vl-overlay vl-active",{"vl-full-page":de.isFullPage}]),"aria-busy":de.isActive,"aria-label":"Loading",style:(0,a.normalizeStyle)({zIndex:de.zIndex})},[(0,a.createElementVNode)("div",{class:"vl-background",onClick:$e[0]||($e[0]=(0,a.withModifiers)(function(){return de.cancel&&de.cancel(...arguments)},["prevent"])),style:(0,a.normalizeStyle)(de.bgStyle)},null,4),(0,a.createElementVNode)("div",v,[(0,a.renderSlot)(de.$slots,"before"),(0,a.renderSlot)(de.$slots,"default",{},()=>[((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(de.loader),{color:de.color,width:de.width,height:de.height},null,8,["color","width","height"]))]),(0,a.renderSlot)(de.$slots,"after")])],14,p),[[a.vShow,de.isActive]])]),_:3},8,["name"])}const k={mounted(){this.enforceFocus&&document.addEventListener("focusin",this.focusIn)},methods:{focusIn(de){if(!this.isActive||de.target===this.$el||this.$el.contains(de.target))return;let $e=this.container?this.container:this.isFullPage?null:this.$el.parentElement;(this.isFullPage||$e&&$e.contains(de.target))&&(de.preventDefault(),this.$el.focus())}},beforeUnmount(){document.removeEventListener("focusin",this.focusIn)}},C=["width","height","stroke"];function $(de,$e,be,me,fe,Ae){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",{viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:de.width,height:de.height,stroke:de.color},$e[0]||($e[0]=[(0,a.createStaticVNode)('<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".25" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.8s" repeatCount="indefinite"></animateTransform></path></g></g>',1)]),8,C)}const E=(0,a.defineComponent)({name:"spinner",props:{color:{type:String,default:"#000"},height:{type:Number,default:64},width:{type:Number,default:64}}});var P=r(597);const O=(0,P.default)(E,[["render",$]]),L=["fill","width","height"];function S(de,$e,be,me,fe,Ae){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",{viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:de.color,width:de.width,height:de.height},$e[0]||($e[0]=[(0,a.createStaticVNode)('<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity="0.3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>',3)]),8,L)}const j=(0,a.defineComponent)({name:"dots",props:{color:{type:String,default:"#000"},height:{type:Number,default:240},width:{type:Number,default:60}}}),q=(0,P.default)(j,[["render",S]]),B=["height","width","fill"];function V(de,$e,be,me,fe,Ae){return(0,a.openBlock)(),(0,a.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",height:de.height,width:de.width,fill:de.color},$e[0]||($e[0]=[(0,a.createStaticVNode)('<rect x="0" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="10" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="20" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate></rect>',3)]),8,B)}const G=(0,a.defineComponent)({name:"bars",props:{color:{type:String,default:"#000"},height:{type:Number,default:40},width:{type:Number,default:40}}}),Y={Spinner:O,Dots:q,Bars:(0,P.default)(G,[["render",V]])},Z=(0,a.defineComponent)({name:"VueLoading",mixins:[k],props:{active:Boolean,programmatic:Boolean,container:[Object,Function,f],isFullPage:{type:Boolean,default:!0},enforceFocus:{type:Boolean,default:!0},lockScroll:Boolean,transition:{type:String,default:"fade"},canCancel:Boolean,onCancel:{type:Function,default:()=>{}},color:String,backgroundColor:String,opacity:Number,width:Number,height:Number,zIndex:Number,loader:{type:String,default:"spinner"}},components:Y,emits:["hide","update:active"],data(){return{isActive:this.active}},mounted(){document.addEventListener("keyup",this.keyPress)},methods:{cancel(){!this.canCancel||!this.isActive||(this.hide(),this.onCancel.apply(null,arguments))},hide(){this.$emit("hide"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(()=>{const de=this.$el.parentElement;(0,a.render)(null,de),l(de)},150))},disableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.add("vl-shown")},enableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.remove("vl-shown")},keyPress(de){de.keyCode===27&&this.cancel()}},watch:{active(de){this.isActive=de},isActive:{handler(de){de?this.disableScroll():this.enableScroll()},immediate:!0}},computed:{bgStyle(){return{background:this.backgroundColor,opacity:this.opacity}}},beforeUnmount(){document.removeEventListener("keyup",this.keyPress)}}),ce=(0,P.default)(Z,[["render",_]]);function te(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{show(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:de,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$e;const Ae={...de,...be,...{programmatic:!0,lockScroll:!0,isFullPage:!1,active:!0}};let je=Ae.container;Ae.container||(je=document.body,Ae.isFullPage=!0);const Ye={...$e,...me};return{hide:d(ce,Ae,je,Ye).ctx.hide}}}}const ee=function(de){let $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const me=te($e,be);de.config.globalProperties.$loading=me,de.provide("$loading",me)},ae=ce;return s})())})(CQ);var SQ=CQ.exports;const Rt=Ol(SQ);function Yv(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var TQ={exports:{}};/*! localForage -- Offline Storage, Improved Version 1.10.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(o,i,r){function s(d,u){if(!i[d]){if(!o[d]){var f=typeof Yv=="function"&&Yv;if(!u&&f)return f(d,!0);if(a)return a(d,!0);var p=new Error("Cannot find module '"+d+"'");throw p.code="MODULE_NOT_FOUND",p}var v=i[d]={exports:{}};o[d][0].call(v.exports,function(_){var k=o[d][1][_];return s(k||_)},v,v.exports,n,o,i,r)}return i[d].exports}for(var a=typeof Yv=="function"&&Yv,l=0;l<r.length;l++)s(r[l]);return s}({1:[function(n,o,i){(function(r){var s=r.MutationObserver||r.WebKitMutationObserver,a;if(s){var l=0,d=new s(_),u=r.document.createTextNode("");d.observe(u,{characterData:!0}),a=function(){u.data=l=++l%2}}else if(!r.setImmediate&&typeof r.MessageChannel<"u"){var f=new r.MessageChannel;f.port1.onmessage=_,a=function(){f.port2.postMessage(0)}}else"document"in r&&"onreadystatechange"in r.document.createElement("script")?a=function(){var C=r.document.createElement("script");C.onreadystatechange=function(){_(),C.onreadystatechange=null,C.parentNode.removeChild(C),C=null},r.document.documentElement.appendChild(C)}:a=function(){setTimeout(_,0)};var p,v=[];function _(){p=!0;for(var C,$,E=v.length;E;){for($=v,v=[],C=-1;++C<E;)$[C]();E=v.length}p=!1}o.exports=k;function k(C){v.push(C)===1&&!p&&a()}}).call(this,typeof bo<"u"?bo:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,o,i){var r=n(1);function s(){}var a={},l=["REJECTED"],d=["FULFILLED"],u=["PENDING"];o.exports=f;function f(O){if(typeof O!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,O!==s&&k(this,O)}f.prototype.catch=function(O){return this.then(null,O)},f.prototype.then=function(O,L){if(typeof O!="function"&&this.state===d||typeof L!="function"&&this.state===l)return this;var S=new this.constructor(s);if(this.state!==u){var j=this.state===d?O:L;v(S,j,this.outcome)}else this.queue.push(new p(S,O,L));return S};function p(O,L,S){this.promise=O,typeof L=="function"&&(this.onFulfilled=L,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}p.prototype.callFulfilled=function(O){a.resolve(this.promise,O)},p.prototype.otherCallFulfilled=function(O){v(this.promise,this.onFulfilled,O)},p.prototype.callRejected=function(O){a.reject(this.promise,O)},p.prototype.otherCallRejected=function(O){v(this.promise,this.onRejected,O)};function v(O,L,S){r(function(){var j;try{j=L(S)}catch(M){return a.reject(O,M)}j===O?a.reject(O,new TypeError("Cannot resolve promise with itself")):a.resolve(O,j)})}a.resolve=function(O,L){var S=C(_,L);if(S.status==="error")return a.reject(O,S.value);var j=S.value;if(j)k(O,j);else{O.state=d,O.outcome=L;for(var M=-1,q=O.queue.length;++M<q;)O.queue[M].callFulfilled(L)}return O},a.reject=function(O,L){O.state=l,O.outcome=L;for(var S=-1,j=O.queue.length;++S<j;)O.queue[S].callRejected(L);return O};function _(O){var L=O&&O.then;if(O&&(typeof O=="object"||typeof O=="function")&&typeof L=="function")return function(){L.apply(O,arguments)}}function k(O,L){var S=!1;function j(V){S||(S=!0,a.reject(O,V))}function M(V){S||(S=!0,a.resolve(O,V))}function q(){L(M,j)}var B=C(q);B.status==="error"&&j(B.value)}function C(O,L){var S={};try{S.value=O(L),S.status="success"}catch(j){S.status="error",S.value=j}return S}f.resolve=$;function $(O){return O instanceof this?O:a.resolve(new this(s),O)}f.reject=E;function E(O){var L=new this(s);return a.reject(L,O)}f.all=P;function P(O){var L=this;if(Object.prototype.toString.call(O)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=O.length,j=!1;if(!S)return this.resolve([]);for(var M=new Array(S),q=0,B=-1,V=new this(s);++B<S;)G(O[B],B);return V;function G(Q,X){L.resolve(Q).then(Y,function(Z){j||(j=!0,a.reject(V,Z))});function Y(Z){M[X]=Z,++q===S&&!j&&(j=!0,a.resolve(V,M))}}}f.race=I;function I(O){var L=this;if(Object.prototype.toString.call(O)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=O.length,j=!1;if(!S)return this.resolve([]);for(var M=-1,q=new this(s);++M<S;)B(O[M]);return q;function B(V){L.resolve(V).then(function(G){j||(j=!0,a.resolve(q,G))},function(G){j||(j=!0,a.reject(q,G))})}}},{1:1}],3:[function(n,o,i){(function(r){typeof r.Promise!="function"&&(r.Promise=n(2))}).call(this,typeof bo<"u"?bo:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,o,i){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie};function s(Ie,Ke){if(!(Ie instanceof Ke))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=a();function d(){try{if(!l||!l.open)return!1;var Ie=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),Ke=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!Ie||Ke)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function u(Ie,Ke){Ie=Ie||[],Ke=Ke||{};try{return new Blob(Ie,Ke)}catch(ct){if(ct.name!=="TypeError")throw ct;for(var ze=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,lt=new ze,ft=0;ft<Ie.length;ft+=1)lt.append(Ie[ft]);return lt.getBlob(Ke.type)}}typeof Promise>"u"&&n(3);var f=Promise;function p(Ie,Ke){Ke&&Ie.then(function(ze){Ke(null,ze)},function(ze){Ke(ze)})}function v(Ie,Ke,ze){typeof Ke=="function"&&Ie.then(Ke),typeof ze=="function"&&Ie.catch(ze)}function _(Ie){return typeof Ie!="string"&&(console.warn(Ie+" used as a key, but it is not a string."),Ie=String(Ie)),Ie}function k(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var C="local-forage-detect-blob-support",$=void 0,E={},P=Object.prototype.toString,I="readonly",O="readwrite";function L(Ie){for(var Ke=Ie.length,ze=new ArrayBuffer(Ke),lt=new Uint8Array(ze),ft=0;ft<Ke;ft++)lt[ft]=Ie.charCodeAt(ft);return ze}function S(Ie){return new f(function(Ke){var ze=Ie.transaction(C,O),lt=u([""]);ze.objectStore(C).put(lt,"key"),ze.onabort=function(ft){ft.preventDefault(),ft.stopPropagation(),Ke(!1)},ze.oncomplete=function(){var ft=navigator.userAgent.match(/Chrome\/(\d+)/),ct=navigator.userAgent.match(/Edge\//);Ke(ct||!ft||parseInt(ft[1],10)>=43)}}).catch(function(){return!1})}function j(Ie){return typeof $=="boolean"?f.resolve($):S(Ie).then(function(Ke){return $=Ke,$})}function M(Ie){var Ke=E[Ie.name],ze={};ze.promise=new f(function(lt,ft){ze.resolve=lt,ze.reject=ft}),Ke.deferredOperations.push(ze),Ke.dbReady?Ke.dbReady=Ke.dbReady.then(function(){return ze.promise}):Ke.dbReady=ze.promise}function q(Ie){var Ke=E[Ie.name],ze=Ke.deferredOperations.pop();if(ze)return ze.resolve(),ze.promise}function B(Ie,Ke){var ze=E[Ie.name],lt=ze.deferredOperations.pop();if(lt)return lt.reject(Ke),lt.promise}function V(Ie,Ke){return new f(function(ze,lt){if(E[Ie.name]=E[Ie.name]||ae(),Ie.db)if(Ke)M(Ie),Ie.db.close();else return ze(Ie.db);var ft=[Ie.name];Ke&&ft.push(Ie.version);var ct=l.open.apply(l,ft);Ke&&(ct.onupgradeneeded=function(Nt){var qt=ct.result;try{qt.createObjectStore(Ie.storeName),Nt.oldVersion<=1&&qt.createObjectStore(C)}catch(Kt){if(Kt.name==="ConstraintError")console.warn('The database "'+Ie.name+'" has been upgraded from version '+Nt.oldVersion+" to version "+Nt.newVersion+', but the storage "'+Ie.storeName+'" already exists.');else throw Kt}}),ct.onerror=function(Nt){Nt.preventDefault(),lt(ct.error)},ct.onsuccess=function(){var Nt=ct.result;Nt.onversionchange=function(qt){qt.target.close()},ze(Nt),q(Ie)}})}function G(Ie){return V(Ie,!1)}function Q(Ie){return V(Ie,!0)}function X(Ie,Ke){if(!Ie.db)return!0;var ze=!Ie.db.objectStoreNames.contains(Ie.storeName),lt=Ie.version<Ie.db.version,ft=Ie.version>Ie.db.version;if(lt&&(Ie.version!==Ke&&console.warn('The database "'+Ie.name+`" can't be downgraded from version `+Ie.db.version+" to version "+Ie.version+"."),Ie.version=Ie.db.version),ft||ze){if(ze){var ct=Ie.db.version+1;ct>Ie.version&&(Ie.version=ct)}return!0}return!1}function Y(Ie){return new f(function(Ke,ze){var lt=new FileReader;lt.onerror=ze,lt.onloadend=function(ft){var ct=btoa(ft.target.result||"");Ke({__local_forage_encoded_blob:!0,data:ct,type:Ie.type})},lt.readAsBinaryString(Ie)})}function Z(Ie){var Ke=L(atob(Ie.data));return u([Ke],{type:Ie.type})}function se(Ie){return Ie&&Ie.__local_forage_encoded_blob}function ce(Ie){var Ke=this,ze=Ke._initReady().then(function(){var lt=E[Ke._dbInfo.name];if(lt&<.dbReady)return lt.dbReady});return v(ze,Ie,Ie),ze}function te(Ie){M(Ie);for(var Ke=E[Ie.name],ze=Ke.forages,lt=0;lt<ze.length;lt++){var ft=ze[lt];ft._dbInfo.db&&(ft._dbInfo.db.close(),ft._dbInfo.db=null)}return Ie.db=null,G(Ie).then(function(ct){return Ie.db=ct,X(Ie)?Q(Ie):ct}).then(function(ct){Ie.db=Ke.db=ct;for(var Nt=0;Nt<ze.length;Nt++)ze[Nt]._dbInfo.db=ct}).catch(function(ct){throw B(Ie,ct),ct})}function ee(Ie,Ke,ze,lt){lt===void 0&&(lt=1);try{var ft=Ie.db.transaction(Ie.storeName,Ke);ze(null,ft)}catch(ct){if(lt>0&&(!Ie.db||ct.name==="InvalidStateError"||ct.name==="NotFoundError"))return f.resolve().then(function(){if(!Ie.db||ct.name==="NotFoundError"&&!Ie.db.objectStoreNames.contains(Ie.storeName)&&Ie.version<=Ie.db.version)return Ie.db&&(Ie.version=Ie.db.version+1),Q(Ie)}).then(function(){return te(Ie).then(function(){ee(Ie,Ke,ze,lt-1)})}).catch(ze);ze(ct)}}function ae(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function de(Ie){var Ke=this,ze={db:null};if(Ie)for(var lt in Ie)ze[lt]=Ie[lt];var ft=E[ze.name];ft||(ft=ae(),E[ze.name]=ft),ft.forages.push(Ke),Ke._initReady||(Ke._initReady=Ke.ready,Ke.ready=ce);var ct=[];function Nt(){return f.resolve()}for(var qt=0;qt<ft.forages.length;qt++){var Kt=ft.forages[qt];Kt!==Ke&&ct.push(Kt._initReady().catch(Nt))}var Xt=ft.forages.slice(0);return f.all(ct).then(function(){return ze.db=ft.db,G(ze)}).then(function(nn){return ze.db=nn,X(ze,Ke._defaultConfig.version)?Q(ze):nn}).then(function(nn){ze.db=ft.db=nn,Ke._dbInfo=ze;for(var mn=0;mn<Xt.length;mn++){var xn=Xt[mn];xn!==Ke&&(xn._dbInfo.db=ze.db,xn._dbInfo.version=ze.version)}})}function $e(Ie,Ke){var ze=this;Ie=_(Ie);var lt=new f(function(ft,ct){ze.ready().then(function(){ee(ze._dbInfo,I,function(Nt,qt){if(Nt)return ct(Nt);try{var Kt=qt.objectStore(ze._dbInfo.storeName),Xt=Kt.get(Ie);Xt.onsuccess=function(){var nn=Xt.result;nn===void 0&&(nn=null),se(nn)&&(nn=Z(nn)),ft(nn)},Xt.onerror=function(){ct(Xt.error)}}catch(nn){ct(nn)}})}).catch(ct)});return p(lt,Ke),lt}function be(Ie,Ke){var ze=this,lt=new f(function(ft,ct){ze.ready().then(function(){ee(ze._dbInfo,I,function(Nt,qt){if(Nt)return ct(Nt);try{var Kt=qt.objectStore(ze._dbInfo.storeName),Xt=Kt.openCursor(),nn=1;Xt.onsuccess=function(){var mn=Xt.result;if(mn){var xn=mn.value;se(xn)&&(xn=Z(xn));var no=Ie(xn,mn.key,nn++);no!==void 0?ft(no):mn.continue()}else ft()},Xt.onerror=function(){ct(Xt.error)}}catch(mn){ct(mn)}})}).catch(ct)});return p(lt,Ke),lt}function me(Ie,Ke,ze){var lt=this;Ie=_(Ie);var ft=new f(function(ct,Nt){var qt;lt.ready().then(function(){return qt=lt._dbInfo,P.call(Ke)==="[object Blob]"?j(qt.db).then(function(Kt){return Kt?Ke:Y(Ke)}):Ke}).then(function(Kt){ee(lt._dbInfo,O,function(Xt,nn){if(Xt)return Nt(Xt);try{var mn=nn.objectStore(lt._dbInfo.storeName);Kt===null&&(Kt=void 0);var xn=mn.put(Kt,Ie);nn.oncomplete=function(){Kt===void 0&&(Kt=null),ct(Kt)},nn.onabort=nn.onerror=function(){var no=xn.error?xn.error:xn.transaction.error;Nt(no)}}catch(no){Nt(no)}})}).catch(Nt)});return p(ft,ze),ft}function fe(Ie,Ke){var ze=this;Ie=_(Ie);var lt=new f(function(ft,ct){ze.ready().then(function(){ee(ze._dbInfo,O,function(Nt,qt){if(Nt)return ct(Nt);try{var Kt=qt.objectStore(ze._dbInfo.storeName),Xt=Kt.delete(Ie);qt.oncomplete=function(){ft()},qt.onerror=function(){ct(Xt.error)},qt.onabort=function(){var nn=Xt.error?Xt.error:Xt.transaction.error;ct(nn)}}catch(nn){ct(nn)}})}).catch(ct)});return p(lt,Ke),lt}function Ae(Ie){var Ke=this,ze=new f(function(lt,ft){Ke.ready().then(function(){ee(Ke._dbInfo,O,function(ct,Nt){if(ct)return ft(ct);try{var qt=Nt.objectStore(Ke._dbInfo.storeName),Kt=qt.clear();Nt.oncomplete=function(){lt()},Nt.onabort=Nt.onerror=function(){var Xt=Kt.error?Kt.error:Kt.transaction.error;ft(Xt)}}catch(Xt){ft(Xt)}})}).catch(ft)});return p(ze,Ie),ze}function je(Ie){var Ke=this,ze=new f(function(lt,ft){Ke.ready().then(function(){ee(Ke._dbInfo,I,function(ct,Nt){if(ct)return ft(ct);try{var qt=Nt.objectStore(Ke._dbInfo.storeName),Kt=qt.count();Kt.onsuccess=function(){lt(Kt.result)},Kt.onerror=function(){ft(Kt.error)}}catch(Xt){ft(Xt)}})}).catch(ft)});return p(ze,Ie),ze}function Ye(Ie,Ke){var ze=this,lt=new f(function(ft,ct){if(Ie<0){ft(null);return}ze.ready().then(function(){ee(ze._dbInfo,I,function(Nt,qt){if(Nt)return ct(Nt);try{var Kt=qt.objectStore(ze._dbInfo.storeName),Xt=!1,nn=Kt.openKeyCursor();nn.onsuccess=function(){var mn=nn.result;if(!mn){ft(null);return}Ie===0||Xt?ft(mn.key):(Xt=!0,mn.advance(Ie))},nn.onerror=function(){ct(nn.error)}}catch(mn){ct(mn)}})}).catch(ct)});return p(lt,Ke),lt}function _t(Ie){var Ke=this,ze=new f(function(lt,ft){Ke.ready().then(function(){ee(Ke._dbInfo,I,function(ct,Nt){if(ct)return ft(ct);try{var qt=Nt.objectStore(Ke._dbInfo.storeName),Kt=qt.openKeyCursor(),Xt=[];Kt.onsuccess=function(){var nn=Kt.result;if(!nn){lt(Xt);return}Xt.push(nn.key),nn.continue()},Kt.onerror=function(){ft(Kt.error)}}catch(nn){ft(nn)}})}).catch(ft)});return p(ze,Ie),ze}function xt(Ie,Ke){Ke=k.apply(this,arguments);var ze=this.config();Ie=typeof Ie!="function"&&Ie||{},Ie.name||(Ie.name=Ie.name||ze.name,Ie.storeName=Ie.storeName||ze.storeName);var lt=this,ft;if(!Ie.name)ft=f.reject("Invalid arguments");else{var ct=Ie.name===ze.name&<._dbInfo.db,Nt=ct?f.resolve(lt._dbInfo.db):G(Ie).then(function(qt){var Kt=E[Ie.name],Xt=Kt.forages;Kt.db=qt;for(var nn=0;nn<Xt.length;nn++)Xt[nn]._dbInfo.db=qt;return qt});Ie.storeName?ft=Nt.then(function(qt){if(qt.objectStoreNames.contains(Ie.storeName)){var Kt=qt.version+1;M(Ie);var Xt=E[Ie.name],nn=Xt.forages;qt.close();for(var mn=0;mn<nn.length;mn++){var xn=nn[mn];xn._dbInfo.db=null,xn._dbInfo.version=Kt}var no=new f(function(Mn,To){var mo=l.open(Ie.name,Kt);mo.onerror=function(ii){var gr=mo.result;gr.close(),To(ii)},mo.onupgradeneeded=function(){var ii=mo.result;ii.deleteObjectStore(Ie.storeName)},mo.onsuccess=function(){var ii=mo.result;ii.close(),Mn(ii)}});return no.then(function(Mn){Xt.db=Mn;for(var To=0;To<nn.length;To++){var mo=nn[To];mo._dbInfo.db=Mn,q(mo._dbInfo)}}).catch(function(Mn){throw(B(Ie,Mn)||f.resolve()).catch(function(){}),Mn})}}):ft=Nt.then(function(qt){M(Ie);var Kt=E[Ie.name],Xt=Kt.forages;qt.close();for(var nn=0;nn<Xt.length;nn++){var mn=Xt[nn];mn._dbInfo.db=null}var xn=new f(function(no,Mn){var To=l.deleteDatabase(Ie.name);To.onerror=function(){var mo=To.result;mo&&mo.close(),Mn(To.error)},To.onblocked=function(){console.warn('dropInstance blocked for database "'+Ie.name+'" until all open connections are closed')},To.onsuccess=function(){var mo=To.result;mo&&mo.close(),no(mo)}});return xn.then(function(no){Kt.db=no;for(var Mn=0;Mn<Xt.length;Mn++){var To=Xt[Mn];q(To._dbInfo)}}).catch(function(no){throw(B(Ie,no)||f.resolve()).catch(function(){}),no})})}return p(ft,Ke),ft}var we={_driver:"asyncStorage",_initStorage:de,_support:d(),iterate:be,getItem:$e,setItem:me,removeItem:fe,clear:Ae,length:je,key:Ye,keys:_t,dropInstance:xt};function ve(){return typeof openDatabase=="function"}var qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t="~~local_forage_type~",ut=/^~~local_forage_type~([^~]+)~/,Ve="__lfsc__:",tt=Ve.length,ge="arbf",ye="blob",Te="si08",gt="ui08",yt="uic8",Xe="si16",Ze="si32",vt="ur16",Ut="ui32",Je="fl32",We="fl64",pt=tt+ge.length,At=Object.prototype.toString;function Vt(Ie){var Ke=Ie.length*.75,ze=Ie.length,lt,ft=0,ct,Nt,qt,Kt;Ie[Ie.length-1]==="="&&(Ke--,Ie[Ie.length-2]==="="&&Ke--);var Xt=new ArrayBuffer(Ke),nn=new Uint8Array(Xt);for(lt=0;lt<ze;lt+=4)ct=qe.indexOf(Ie[lt]),Nt=qe.indexOf(Ie[lt+1]),qt=qe.indexOf(Ie[lt+2]),Kt=qe.indexOf(Ie[lt+3]),nn[ft++]=ct<<2|Nt>>4,nn[ft++]=(Nt&15)<<4|qt>>2,nn[ft++]=(qt&3)<<6|Kt&63;return Xt}function cn(Ie){var Ke=new Uint8Array(Ie),ze="",lt;for(lt=0;lt<Ke.length;lt+=3)ze+=qe[Ke[lt]>>2],ze+=qe[(Ke[lt]&3)<<4|Ke[lt+1]>>4],ze+=qe[(Ke[lt+1]&15)<<2|Ke[lt+2]>>6],ze+=qe[Ke[lt+2]&63];return Ke.length%3===2?ze=ze.substring(0,ze.length-1)+"=":Ke.length%3===1&&(ze=ze.substring(0,ze.length-2)+"=="),ze}function fn(Ie,Ke){var ze="";if(Ie&&(ze=At.call(Ie)),Ie&&(ze==="[object ArrayBuffer]"||Ie.buffer&&At.call(Ie.buffer)==="[object ArrayBuffer]")){var lt,ft=Ve;Ie instanceof ArrayBuffer?(lt=Ie,ft+=ge):(lt=Ie.buffer,ze==="[object Int8Array]"?ft+=Te:ze==="[object Uint8Array]"?ft+=gt:ze==="[object Uint8ClampedArray]"?ft+=yt:ze==="[object Int16Array]"?ft+=Xe:ze==="[object Uint16Array]"?ft+=vt:ze==="[object Int32Array]"?ft+=Ze:ze==="[object Uint32Array]"?ft+=Ut:ze==="[object Float32Array]"?ft+=Je:ze==="[object Float64Array]"?ft+=We:Ke(new Error("Failed to get type for BinaryArray"))),Ke(ft+cn(lt))}else if(ze==="[object Blob]"){var ct=new FileReader;ct.onload=function(){var Nt=$t+Ie.type+"~"+cn(this.result);Ke(Ve+ye+Nt)},ct.readAsArrayBuffer(Ie)}else try{Ke(JSON.stringify(Ie))}catch(Nt){console.error("Couldn't convert value into a JSON string: ",Ie),Ke(null,Nt)}}function bn(Ie){if(Ie.substring(0,tt)!==Ve)return JSON.parse(Ie);var Ke=Ie.substring(pt),ze=Ie.substring(tt,pt),lt;if(ze===ye&&ut.test(Ke)){var ft=Ke.match(ut);lt=ft[1],Ke=Ke.substring(ft[0].length)}var ct=Vt(Ke);switch(ze){case ge:return ct;case ye:return u([ct],{type:lt});case Te:return new Int8Array(ct);case gt:return new Uint8Array(ct);case yt:return new Uint8ClampedArray(ct);case Xe:return new Int16Array(ct);case vt:return new Uint16Array(ct);case Ze:return new Int32Array(ct);case Ut:return new Uint32Array(ct);case Je:return new Float32Array(ct);case We:return new Float64Array(ct);default:throw new Error("Unkown type: "+ze)}}var kt={serialize:fn,deserialize:bn,stringToBuffer:Vt,bufferToString:cn};function Ne(Ie,Ke,ze,lt){Ie.executeSql("CREATE TABLE IF NOT EXISTS "+Ke.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],ze,lt)}function nt(Ie){var Ke=this,ze={db:null};if(Ie)for(var lt in Ie)ze[lt]=typeof Ie[lt]!="string"?Ie[lt].toString():Ie[lt];var ft=new f(function(ct,Nt){try{ze.db=openDatabase(ze.name,String(ze.version),ze.description,ze.size)}catch(qt){return Nt(qt)}ze.db.transaction(function(qt){Ne(qt,ze,function(){Ke._dbInfo=ze,ct()},function(Kt,Xt){Nt(Xt)})},Nt)});return ze.serializer=kt,ft}function It(Ie,Ke,ze,lt,ft,ct){Ie.executeSql(ze,lt,ft,function(Nt,qt){qt.code===qt.SYNTAX_ERR?Nt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Ke.storeName],function(Kt,Xt){Xt.rows.length?ct(Kt,qt):Ne(Kt,Ke,function(){Kt.executeSql(ze,lt,ft,ct)},ct)},ct):ct(Nt,qt)},ct)}function Zt(Ie,Ke){var ze=this;Ie=_(Ie);var lt=new f(function(ft,ct){ze.ready().then(function(){var Nt=ze._dbInfo;Nt.db.transaction(function(qt){It(qt,Nt,"SELECT * FROM "+Nt.storeName+" WHERE key = ? LIMIT 1",[Ie],function(Kt,Xt){var nn=Xt.rows.length?Xt.rows.item(0).value:null;nn&&(nn=Nt.serializer.deserialize(nn)),ft(nn)},function(Kt,Xt){ct(Xt)})})}).catch(ct)});return p(lt,Ke),lt}function dn(Ie,Ke){var ze=this,lt=new f(function(ft,ct){ze.ready().then(function(){var Nt=ze._dbInfo;Nt.db.transaction(function(qt){It(qt,Nt,"SELECT * FROM "+Nt.storeName,[],function(Kt,Xt){for(var nn=Xt.rows,mn=nn.length,xn=0;xn<mn;xn++){var no=nn.item(xn),Mn=no.value;if(Mn&&(Mn=Nt.serializer.deserialize(Mn)),Mn=Ie(Mn,no.key,xn+1),Mn!==void 0){ft(Mn);return}}ft()},function(Kt,Xt){ct(Xt)})})}).catch(ct)});return p(lt,Ke),lt}function Hn(Ie,Ke,ze,lt){var ft=this;Ie=_(Ie);var ct=new f(function(Nt,qt){ft.ready().then(function(){Ke===void 0&&(Ke=null);var Kt=Ke,Xt=ft._dbInfo;Xt.serializer.serialize(Ke,function(nn,mn){mn?qt(mn):Xt.db.transaction(function(xn){It(xn,Xt,"INSERT OR REPLACE INTO "+Xt.storeName+" (key, value) VALUES (?, ?)",[Ie,nn],function(){Nt(Kt)},function(no,Mn){qt(Mn)})},function(xn){if(xn.code===xn.QUOTA_ERR){if(lt>0){Nt(Hn.apply(ft,[Ie,Kt,ze,lt-1]));return}qt(xn)}})})}).catch(qt)});return p(ct,ze),ct}function Oo(Ie,Ke,ze){return Hn.apply(this,[Ie,Ke,ze,1])}function tn(Ie,Ke){var ze=this;Ie=_(Ie);var lt=new f(function(ft,ct){ze.ready().then(function(){var Nt=ze._dbInfo;Nt.db.transaction(function(qt){It(qt,Nt,"DELETE FROM "+Nt.storeName+" WHERE key = ?",[Ie],function(){ft()},function(Kt,Xt){ct(Xt)})})}).catch(ct)});return p(lt,Ke),lt}function Fo(Ie){var Ke=this,ze=new f(function(lt,ft){Ke.ready().then(function(){var ct=Ke._dbInfo;ct.db.transaction(function(Nt){It(Nt,ct,"DELETE FROM "+ct.storeName,[],function(){lt()},function(qt,Kt){ft(Kt)})})}).catch(ft)});return p(ze,Ie),ze}function Yr(Ie){var Ke=this,ze=new f(function(lt,ft){Ke.ready().then(function(){var ct=Ke._dbInfo;ct.db.transaction(function(Nt){It(Nt,ct,"SELECT COUNT(key) as c FROM "+ct.storeName,[],function(qt,Kt){var Xt=Kt.rows.item(0).c;lt(Xt)},function(qt,Kt){ft(Kt)})})}).catch(ft)});return p(ze,Ie),ze}function Lo(Ie,Ke){var ze=this,lt=new f(function(ft,ct){ze.ready().then(function(){var Nt=ze._dbInfo;Nt.db.transaction(function(qt){It(qt,Nt,"SELECT key FROM "+Nt.storeName+" WHERE id = ? LIMIT 1",[Ie+1],function(Kt,Xt){var nn=Xt.rows.length?Xt.rows.item(0).key:null;ft(nn)},function(Kt,Xt){ct(Xt)})})}).catch(ct)});return p(lt,Ke),lt}function ji(Ie){var Ke=this,ze=new f(function(lt,ft){Ke.ready().then(function(){var ct=Ke._dbInfo;ct.db.transaction(function(Nt){It(Nt,ct,"SELECT key FROM "+ct.storeName,[],function(qt,Kt){for(var Xt=[],nn=0;nn<Kt.rows.length;nn++)Xt.push(Kt.rows.item(nn).key);lt(Xt)},function(qt,Kt){ft(Kt)})})}).catch(ft)});return p(ze,Ie),ze}function On(Ie){return new f(function(Ke,ze){Ie.transaction(function(lt){lt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(ft,ct){for(var Nt=[],qt=0;qt<ct.rows.length;qt++)Nt.push(ct.rows.item(qt).name);Ke({db:Ie,storeNames:Nt})},function(ft,ct){ze(ct)})},function(lt){ze(lt)})})}function Hi(Ie,Ke){Ke=k.apply(this,arguments);var ze=this.config();Ie=typeof Ie!="function"&&Ie||{},Ie.name||(Ie.name=Ie.name||ze.name,Ie.storeName=Ie.storeName||ze.storeName);var lt=this,ft;return Ie.name?ft=new f(function(ct){var Nt;Ie.name===ze.name?Nt=lt._dbInfo.db:Nt=openDatabase(Ie.name,"","",0),Ie.storeName?ct({db:Nt,storeNames:[Ie.storeName]}):ct(On(Nt))}).then(function(ct){return new f(function(Nt,qt){ct.db.transaction(function(Kt){function Xt(no){return new f(function(Mn,To){Kt.executeSql("DROP TABLE IF EXISTS "+no,[],function(){Mn()},function(mo,ii){To(ii)})})}for(var nn=[],mn=0,xn=ct.storeNames.length;mn<xn;mn++)nn.push(Xt(ct.storeNames[mn]));f.all(nn).then(function(){Nt()}).catch(function(no){qt(no)})},function(Kt){qt(Kt)})})}):ft=f.reject("Invalid arguments"),p(ft,Ke),ft}var Gn={_driver:"webSQLStorage",_initStorage:nt,_support:ve(),iterate:dn,getItem:Zt,setItem:Oo,removeItem:tn,clear:Fo,length:Yr,key:Lo,keys:ji,dropInstance:Hi};function Ar(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Xs(Ie,Ke){var ze=Ie.name+"/";return Ie.storeName!==Ke.storeName&&(ze+=Ie.storeName+"/"),ze}function Qs(){var Ie="_localforage_support_test";try{return localStorage.setItem(Ie,!0),localStorage.removeItem(Ie),!1}catch{return!0}}function So(){return!Qs()||localStorage.length>0}function ss(Ie){var Ke=this,ze={};if(Ie)for(var lt in Ie)ze[lt]=Ie[lt];return ze.keyPrefix=Xs(Ie,Ke._defaultConfig),So()?(Ke._dbInfo=ze,ze.serializer=kt,f.resolve()):f.reject()}function Dr(Ie){var Ke=this,ze=Ke.ready().then(function(){for(var lt=Ke._dbInfo.keyPrefix,ft=localStorage.length-1;ft>=0;ft--){var ct=localStorage.key(ft);ct.indexOf(lt)===0&&localStorage.removeItem(ct)}});return p(ze,Ie),ze}function Di(Ie,Ke){var ze=this;Ie=_(Ie);var lt=ze.ready().then(function(){var ft=ze._dbInfo,ct=localStorage.getItem(ft.keyPrefix+Ie);return ct&&(ct=ft.serializer.deserialize(ct)),ct});return p(lt,Ke),lt}function xr(Ie,Ke){var ze=this,lt=ze.ready().then(function(){for(var ft=ze._dbInfo,ct=ft.keyPrefix,Nt=ct.length,qt=localStorage.length,Kt=1,Xt=0;Xt<qt;Xt++){var nn=localStorage.key(Xt);if(nn.indexOf(ct)===0){var mn=localStorage.getItem(nn);if(mn&&(mn=ft.serializer.deserialize(mn)),mn=Ie(mn,nn.substring(Nt),Kt++),mn!==void 0)return mn}}});return p(lt,Ke),lt}function Wr(Ie,Ke){var ze=this,lt=ze.ready().then(function(){var ft=ze._dbInfo,ct;try{ct=localStorage.key(Ie)}catch{ct=null}return ct&&(ct=ct.substring(ft.keyPrefix.length)),ct});return p(lt,Ke),lt}function yi(Ie){var Ke=this,ze=Ke.ready().then(function(){for(var lt=Ke._dbInfo,ft=localStorage.length,ct=[],Nt=0;Nt<ft;Nt++){var qt=localStorage.key(Nt);qt.indexOf(lt.keyPrefix)===0&&ct.push(qt.substring(lt.keyPrefix.length))}return ct});return p(ze,Ie),ze}function ea(Ie){var Ke=this,ze=Ke.keys().then(function(lt){return lt.length});return p(ze,Ie),ze}function mc(Ie,Ke){var ze=this;Ie=_(Ie);var lt=ze.ready().then(function(){var ft=ze._dbInfo;localStorage.removeItem(ft.keyPrefix+Ie)});return p(lt,Ke),lt}function js(Ie,Ke,ze){var lt=this;Ie=_(Ie);var ft=lt.ready().then(function(){Ke===void 0&&(Ke=null);var ct=Ke;return new f(function(Nt,qt){var Kt=lt._dbInfo;Kt.serializer.serialize(Ke,function(Xt,nn){if(nn)qt(nn);else try{localStorage.setItem(Kt.keyPrefix+Ie,Xt),Nt(ct)}catch(mn){(mn.name==="QuotaExceededError"||mn.name==="NS_ERROR_DOM_QUOTA_REACHED")&&qt(mn),qt(mn)}})})});return p(ft,ze),ft}function Ka(Ie,Ke){if(Ke=k.apply(this,arguments),Ie=typeof Ie!="function"&&Ie||{},!Ie.name){var ze=this.config();Ie.name=Ie.name||ze.name,Ie.storeName=Ie.storeName||ze.storeName}var lt=this,ft;return Ie.name?ft=new f(function(ct){Ie.storeName?ct(Xs(Ie,lt._defaultConfig)):ct(Ie.name+"/")}).then(function(ct){for(var Nt=localStorage.length-1;Nt>=0;Nt--){var qt=localStorage.key(Nt);qt.indexOf(ct)===0&&localStorage.removeItem(qt)}}):ft=f.reject("Invalid arguments"),p(ft,Ke),ft}var Ja={_driver:"localStorageWrapper",_initStorage:ss,_support:Ar(),iterate:xr,getItem:Di,setItem:js,removeItem:mc,clear:Dr,length:ea,key:Wr,keys:yi,dropInstance:Ka},Fi=function(Ke,ze){return Ke===ze||typeof Ke=="number"&&typeof ze=="number"&&isNaN(Ke)&&isNaN(ze)},Cs=function(Ke,ze){for(var lt=Ke.length,ft=0;ft<lt;){if(Fi(Ke[ft],ze))return!0;ft++}return!1},Fs=Array.isArray||function(Ie){return Object.prototype.toString.call(Ie)==="[object Array]"},as={},Rl={},zs={INDEXEDDB:we,WEBSQL:Gn,LOCALSTORAGE:Ja},oi=[zs.INDEXEDDB._driver,zs.WEBSQL._driver,zs.LOCALSTORAGE._driver],Ss=["dropInstance"],ls=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Ss),Gr={description:"",driver:oi.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Xa(Ie,Ke){Ie[Ke]=function(){var ze=arguments;return Ie.ready().then(function(){return Ie[Ke].apply(Ie,ze)})}}function Qa(){for(var Ie=1;Ie<arguments.length;Ie++){var Ke=arguments[Ie];if(Ke)for(var ze in Ke)Ke.hasOwnProperty(ze)&&(Fs(Ke[ze])?arguments[0][ze]=Ke[ze].slice():arguments[0][ze]=Ke[ze])}return arguments[0]}var pc=function(){function Ie(Ke){s(this,Ie);for(var ze in zs)if(zs.hasOwnProperty(ze)){var lt=zs[ze],ft=lt._driver;this[ze]=ft,as[ft]||this.defineDriver(lt)}this._defaultConfig=Qa({},Gr),this._config=Qa({},this._defaultConfig,Ke),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return Ie.prototype.config=function(ze){if((typeof ze>"u"?"undefined":r(ze))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var lt in ze){if(lt==="storeName"&&(ze[lt]=ze[lt].replace(/\W/g,"_")),lt==="version"&&typeof ze[lt]!="number")return new Error("Database version must be a number.");this._config[lt]=ze[lt]}return"driver"in ze&&ze.driver?this.setDriver(this._config.driver):!0}else return typeof ze=="string"?this._config[ze]:this._config},Ie.prototype.defineDriver=function(ze,lt,ft){var ct=new f(function(Nt,qt){try{var Kt=ze._driver,Xt=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!ze._driver){qt(Xt);return}for(var nn=ls.concat("_initStorage"),mn=0,xn=nn.length;mn<xn;mn++){var no=nn[mn],Mn=!Cs(Ss,no);if((Mn||ze[no])&&typeof ze[no]!="function"){qt(Xt);return}}var To=function(){for(var gr=function(ta){return function(){var Fl=new Error("Method "+ta+" is not implemented by the current driver"),Vi=f.reject(Fl);return p(Vi,arguments[arguments.length-1]),Vi}},vr=0,gc=Ss.length;vr<gc;vr++){var Ts=Ss[vr];ze[Ts]||(ze[Ts]=gr(Ts))}};To();var mo=function(gr){as[Kt]&&console.info("Redefining LocalForage driver: "+Kt),as[Kt]=ze,Rl[Kt]=gr,Nt()};"_support"in ze?ze._support&&typeof ze._support=="function"?ze._support().then(mo,qt):mo(!!ze._support):mo(!0)}catch(ii){qt(ii)}});return v(ct,lt,ft),ct},Ie.prototype.driver=function(){return this._driver||null},Ie.prototype.getDriver=function(ze,lt,ft){var ct=as[ze]?f.resolve(as[ze]):f.reject(new Error("Driver not found."));return v(ct,lt,ft),ct},Ie.prototype.getSerializer=function(ze){var lt=f.resolve(kt);return v(lt,ze),lt},Ie.prototype.ready=function(ze){var lt=this,ft=lt._driverSet.then(function(){return lt._ready===null&&(lt._ready=lt._initDriver()),lt._ready});return v(ft,ze,ze),ft},Ie.prototype.setDriver=function(ze,lt,ft){var ct=this;Fs(ze)||(ze=[ze]);var Nt=this._getSupportedDrivers(ze);function qt(){ct._config.driver=ct.driver()}function Kt(mn){return ct._extend(mn),qt(),ct._ready=ct._initStorage(ct._config),ct._ready}function Xt(mn){return function(){var xn=0;function no(){for(;xn<mn.length;){var Mn=mn[xn];return xn++,ct._dbInfo=null,ct._ready=null,ct.getDriver(Mn).then(Kt).catch(no)}qt();var To=new Error("No available storage method found.");return ct._driverSet=f.reject(To),ct._driverSet}return no()}}var nn=this._driverSet!==null?this._driverSet.catch(function(){return f.resolve()}):f.resolve();return this._driverSet=nn.then(function(){var mn=Nt[0];return ct._dbInfo=null,ct._ready=null,ct.getDriver(mn).then(function(xn){ct._driver=xn._driver,qt(),ct._wrapLibraryMethodsWithReady(),ct._initDriver=Xt(Nt)})}).catch(function(){qt();var mn=new Error("No available storage method found.");return ct._driverSet=f.reject(mn),ct._driverSet}),v(this._driverSet,lt,ft),this._driverSet},Ie.prototype.supports=function(ze){return!!Rl[ze]},Ie.prototype._extend=function(ze){Qa(this,ze)},Ie.prototype._getSupportedDrivers=function(ze){for(var lt=[],ft=0,ct=ze.length;ft<ct;ft++){var Nt=ze[ft];this.supports(Nt)&<.push(Nt)}return lt},Ie.prototype._wrapLibraryMethodsWithReady=function(){for(var ze=0,lt=ls.length;ze<lt;ze++)Xa(this,ls[ze])},Ie.prototype.createInstance=function(ze){return new Ie(ze)},Ie}(),jl=new pc;o.exports=jl},{3:3}]},{},[4])(4)})})(TQ);var w7e=TQ.exports;const $7e=Ol(w7e);var C7e=function(t){return S7e(t)&&!T7e(t)};function S7e(e){return!!e&&typeof e=="object"}function T7e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||P7e(e)}var E7e=typeof Symbol=="function"&&Symbol.for,I7e=E7e?Symbol.for("react.element"):60103;function P7e(e){return e.$$typeof===I7e}function A7e(e){return Array.isArray(e)?[]:{}}function S2(e,t){return t.clone!==!1&&t.isMergeableObject(e)?V_(A7e(e),e,t):e}function D7e(e,t,n){return e.concat(t).map(function(o){return S2(o,n)})}function x7e(e,t){if(!t.customMerge)return V_;var n=t.customMerge(e);return typeof n=="function"?n:V_}function O7e(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function QF(e){return Object.keys(e).concat(O7e(e))}function EQ(e,t){try{return t in e}catch{return!1}}function L7e(e,t){return EQ(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function M7e(e,t,n){var o={};return n.isMergeableObject(e)&&QF(e).forEach(function(i){o[i]=S2(e[i],n)}),QF(t).forEach(function(i){L7e(e,i)||(EQ(e,i)&&n.isMergeableObject(t[i])?o[i]=x7e(i,n)(e[i],t[i],n):o[i]=S2(t[i],n))}),o}function V_(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||D7e,n.isMergeableObject=n.isMergeableObject||C7e,n.cloneUnlessOtherwiseSpecified=S2;var o=Array.isArray(t),i=Array.isArray(e),r=o===i;return r?o?n.arrayMerge(e,t,n):M7e(e,t,n):S2(t,n)}V_.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(o,i){return V_(o,i,n)},{})};var N7e=V_,R7e=N7e;const j7e=Ol(R7e);let lI;lI=class{get length(){return Object.keys(this).length}key(e){return Object.keys(this)[e]}setItem(e,t){this[e]=t.toString()}getItem(e){return this[e]}removeItem(e){delete this[e]}clear(){for(let e of Object.keys(this))delete this[e]}};class F7e{constructor(){this._queue=[],this._flushing=!1}enqueue(t){return this._queue.push(t),this._flushing?Promise.resolve():this.flushQueue()}flushQueue(){this._flushing=!0;const t=()=>{const n=this._queue.shift();if(n)return n.then(t);this._flushing=!1};return Promise.resolve(t())}}const z7e={replaceArrays:{arrayMerge:(e,t,n)=>t},concatArrays:{arrayMerge:(e,t,n)=>e.concat(...t)}};function xb(e,t,n){return j7e(e,t,z7e[n])}let Ob=JSON;class U7e{constructor(t){this._mutex=new F7e,this.subscriber=o=>i=>o.subscribe(i),typeof t>"u"&&(t={}),this.key=t.key!=null?t.key:"vuex",this.subscribed=!1,this.supportCircular=t.supportCircular||!1,this.supportCircular&&(Ob=require("flatted")),this.mergeOption=t.mergeOption||"replaceArrays";let n=!0;try{window.localStorage.getItem("")}catch{n=!1}if(t.storage)this.storage=t.storage;else if(n)this.storage=window.localStorage;else if(lI)this.storage=new lI;else throw new Error("Neither 'window' is defined, nor 'MockStorage' is available");this.reducer=t.reducer!=null?t.reducer:t.modules==null?o=>o:o=>t.modules.reduce((i,r)=>xb(i,{[r]:o[r]},this.mergeOption),{}),this.filter=t.filter||(o=>!0),this.strictMode=t.strictMode||!1,this.RESTORE_MUTATION=function(i,r){const s=xb(i,r||{},this.mergeOption);for(const a of Object.keys(s))this._vm.$set(i,a,s[a])},this.asyncStorage=t.asyncStorage||!1,this.asyncStorage?(this.restoreState=t.restoreState!=null?t.restoreState:(o,i)=>i.getItem(o).then(r=>typeof r=="string"?this.supportCircular?Ob.parse(r||"{}"):JSON.parse(r||"{}"):r||{}),this.saveState=t.saveState!=null?t.saveState:(o,i,r)=>r.setItem(o,this.asyncStorage?xb({},i||{},this.mergeOption):this.supportCircular?Ob.stringify(i):JSON.stringify(i)),this.plugin=o=>{o.restored=this.restoreState(this.key,this.storage).then(i=>{this.strictMode?o.commit("RESTORE_MUTATION",i):o.replaceState(xb(o.state,i||{},this.mergeOption)),this.subscriber(o)((r,s)=>{this.filter(r)&&this._mutex.enqueue(this.saveState(this.key,this.reducer(s),this.storage))}),this.subscribed=!0})}):(this.restoreState=t.restoreState!=null?t.restoreState:(o,i)=>{const r=i.getItem(o);return typeof r=="string"?this.supportCircular?Ob.parse(r||"{}"):JSON.parse(r||"{}"):r||{}},this.saveState=t.saveState!=null?t.saveState:(o,i,r)=>r.setItem(o,this.supportCircular?Ob.stringify(i):JSON.stringify(i)),this.plugin=o=>{const i=this.restoreState(this.key,this.storage);this.strictMode?o.commit("RESTORE_MUTATION",i):o.replaceState(xb(o.state,i||{},this.mergeOption)),this.subscriber(o)((r,s)=>{this.filter(r)&&this.saveState(this.key,this.reducer(s),this.storage)}),this.subscribed=!0})}}const B7e=U7e;var IQ={exports:{}},PQ={exports:{}};/*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */(function(e,t){(function(n,o){e.exports=o()})(bo,function(){return o={686:function(r,u,a){a.d(u,{default:function(){return j}});var u=a(279),l=a.n(u),u=a(370),d=a.n(u),u=a(817),f=a.n(u);function p(M){try{return document.execCommand(M)}catch{return}}var v=function(M){return M=f()(M),p("cut"),M};function _(G,q){var B,V,G=(B=G,V=document.documentElement.getAttribute("dir")==="rtl",(G=document.createElement("textarea")).style.fontSize="12pt",G.style.border="0",G.style.padding="0",G.style.margin="0",G.style.position="absolute",G.style[V?"right":"left"]="-9999px",V=window.pageYOffset||document.documentElement.scrollTop,G.style.top="".concat(V,"px"),G.setAttribute("readonly",""),G.value=B,G);return q.container.appendChild(G),q=f()(G),p("copy"),G.remove(),q}var k=function(M){var q=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body},B="";return typeof M=="string"?B=_(M,q):M instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(M==null?void 0:M.type)?B=_(M.value,q):(B=f()(M),p("copy")),B};function C(M){return(C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q})(M)}var $=function(){var V=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},B=V.action,M=B===void 0?"copy":B,q=V.container,B=V.target,V=V.text;if(M!=="copy"&&M!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(B!==void 0){if(!B||C(B)!=="object"||B.nodeType!==1)throw new Error('Invalid "target" value, use a valid Element');if(M==="copy"&&B.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(M==="cut"&&(B.hasAttribute("readonly")||B.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}return V?k(V,{container:q}):B?M==="cut"?v(B):k(B,{container:q}):void 0};function E(M){return(E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q})(M)}function P(M,q){for(var B=0;B<q.length;B++){var V=q[B];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(M,V.key,V)}}function I(M,q){return(I=Object.setPrototypeOf||function(B,V){return B.__proto__=V,B})(M,q)}function O(M){var q=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var B,V=L(M);return B=q?(B=L(this).constructor,Reflect.construct(V,arguments,B)):V.apply(this,arguments),V=this,!(B=B)||E(B)!=="object"&&typeof B!="function"?function(G){if(G!==void 0)return G;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(V):B}}function L(M){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)})(M)}function S(M,q){if(M="data-clipboard-".concat(M),q.hasAttribute(M))return q.getAttribute(M)}var j=function(){(function(Q,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");Q.prototype=Object.create(X&&X.prototype,{constructor:{value:Q,writable:!0,configurable:!0}}),X&&I(Q,X)})(G,l());var M,q,B,V=O(G);function G(Q,X){var Y;return function(Z){if(!(Z instanceof G))throw new TypeError("Cannot call a class as a function")}(this),(Y=V.call(this)).resolveOptions(X),Y.listenClick(Q),Y}return M=G,B=[{key:"copy",value:function(Q){var X=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body};return k(Q,X)}},{key:"cut",value:function(Q){return v(Q)}},{key:"isSupported",value:function(){var Q=0<arguments.length&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Q=typeof Q=="string"?[Q]:Q,X=!!document.queryCommandSupported;return Q.forEach(function(Y){X=X&&!!document.queryCommandSupported(Y)}),X}}],(q=[{key:"resolveOptions",value:function(){var Q=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Q.action=="function"?Q.action:this.defaultAction,this.target=typeof Q.target=="function"?Q.target:this.defaultTarget,this.text=typeof Q.text=="function"?Q.text:this.defaultText,this.container=E(Q.container)==="object"?Q.container:document.body}},{key:"listenClick",value:function(Q){var X=this;this.listener=d()(Q,"click",function(Y){return X.onClick(Y)})}},{key:"onClick",value:function(Z){var X=Z.delegateTarget||Z.currentTarget,Y=this.action(X)||"copy",Z=$({action:Y,container:this.container,target:this.target(X),text:this.text(X)});this.emit(Z?"success":"error",{action:Y,text:Z,trigger:X,clearSelection:function(){X&&X.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Q){return S("action",Q)}},{key:"defaultTarget",value:function(Q){if(Q=S("target",Q),Q)return document.querySelector(Q)}},{key:"defaultText",value:function(Q){return S("text",Q)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&P(M.prototype,q),B&&P(M,B),G}()},828:function(r){var s;typeof Element>"u"||Element.prototype.matches||((s=Element.prototype).matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector),r.exports=function(a,l){for(;a&&a.nodeType!==9;){if(typeof a.matches=="function"&&a.matches(l))return a;a=a.parentNode}}},438:function(r,s,a){var l=a(828);function d(u,f,p,v,_){var k=(function(C,$,E,P){return function(I){I.delegateTarget=l(I.target,$),I.delegateTarget&&P.call(C,I)}}).apply(this,arguments);return u.addEventListener(p,k,_),{destroy:function(){u.removeEventListener(p,k,_)}}}r.exports=function(u,f,p,v,_){return typeof u.addEventListener=="function"?d.apply(null,arguments):typeof p=="function"?d.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(k){return d(k,f,p,v,_)}))}},879:function(r,s){s.node=function(a){return a!==void 0&&a instanceof HTMLElement&&a.nodeType===1},s.nodeList=function(a){var l=Object.prototype.toString.call(a);return a!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in a&&(a.length===0||s.node(a[0]))},s.string=function(a){return typeof a=="string"||a instanceof String},s.fn=function(a){return Object.prototype.toString.call(a)==="[object Function]"}},370:function(r,s,a){var l=a(879),d=a(438);r.exports=function(u,f,p){if(!u&&!f&&!p)throw new Error("Missing required arguments");if(!l.string(f))throw new TypeError("Second argument must be a String");if(!l.fn(p))throw new TypeError("Third argument must be a Function");if(l.node(u))return $=f,E=p,(C=u).addEventListener($,E),{destroy:function(){C.removeEventListener($,E)}};if(l.nodeList(u))return v=u,_=f,k=p,Array.prototype.forEach.call(v,function(P){P.addEventListener(_,k)}),{destroy:function(){Array.prototype.forEach.call(v,function(P){P.removeEventListener(_,k)})}};if(l.string(u))return u=u,f=f,p=p,d(document.body,u,f,p);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var v,_,k,C,$,E}},817:function(r){r.exports=function(s){var a,l=s.nodeName==="SELECT"?(s.focus(),s.value):s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"?((a=s.hasAttribute("readonly"))||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),a||s.removeAttribute("readonly"),s.value):(s.hasAttribute("contenteditable")&&s.focus(),l=window.getSelection(),(a=document.createRange()).selectNodeContents(s),l.removeAllRanges(),l.addRange(a),l.toString());return l}},279:function(r){function s(){}s.prototype={on:function(a,l,d){var u=this.e||(this.e={});return(u[a]||(u[a]=[])).push({fn:l,ctx:d}),this},once:function(a,l,d){var u=this;function f(){u.off(a,f),l.apply(d,arguments)}return f._=l,this.on(a,f,d)},emit:function(a){for(var l=[].slice.call(arguments,1),d=((this.e||(this.e={}))[a]||[]).slice(),u=0,f=d.length;u<f;u++)d[u].fn.apply(d[u].ctx,l);return this},off:function(a,l){var d=this.e||(this.e={}),u=d[a],f=[];if(u&&l)for(var p=0,v=u.length;p<v;p++)u[p].fn!==l&&u[p].fn._!==l&&f.push(u[p]);return f.length?d[a]=f:delete d[a],this}},r.exports=s,r.exports.TinyEmitter=s}},i={},n.n=function(r){var s=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(s,{a:s}),s},n.d=function(r,s){for(var a in s)n.o(s,a)&&!n.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:s[a]})},n.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s)},n(686).default;function n(r){if(i[r])return i[r].exports;var s=i[r]={exports:{}};return o[r](s,s.exports,n),s.exports}var o,i})})(PQ);var H7e=PQ.exports;(function(e,t){var n=H7e,o={autoSetContainer:!1,appendToBody:!0},i={install:function(r){var s=r.version.slice(0,2)==="3."?r.config.globalProperties:r.prototype;s.$clipboardConfig=o,s.$copyText=function(a,l){return new Promise(function(d,u){var f=document.createElement("button"),p=new n(f,{text:function(){return a},action:function(){return"copy"},container:typeof l=="object"?l:document.body});p.on("success",function(v){p.destroy(),d(v)}),p.on("error",function(v){p.destroy(),u(v)}),o.appendToBody&&document.body.appendChild(f),f.click(),o.appendToBody&&document.body.removeChild(f)})},r.directive("clipboard",{bind:function(a,l,d){if(l.arg==="success")a._vClipboard_success=l.value;else if(l.arg==="error")a._vClipboard_error=l.value;else{var u=new n(a,{text:function(){return l.value},action:function(){return l.arg==="cut"?"cut":"copy"},container:o.autoSetContainer?a:void 0});u.on("success",function(f){var p=a._vClipboard_success;p&&p(f)}),u.on("error",function(f){var p=a._vClipboard_error;p&&p(f)}),a._vClipboard=u}},update:function(a,l){l.arg==="success"?a._vClipboard_success=l.value:l.arg==="error"?a._vClipboard_error=l.value:(a._vClipboard.text=function(){return l.value},a._vClipboard.action=function(){return l.arg==="cut"?"cut":"copy"})},unbind:function(a,l){a._vClipboard&&(l.arg==="success"?delete a._vClipboard_success:l.arg==="error"?delete a._vClipboard_error:(a._vClipboard.destroy(),delete a._vClipboard))}})},config:o};e.exports=i})(IQ);var V7e=IQ.exports;const q7e=Ol(V7e);/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT */const Mv=typeof document<"u";function AQ(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Y7e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&AQ(e.default)}const xi=Object.assign;function Q7(e,t){const n={};for(const o in t){const i=t[o];n[o]=nu(i)?i.map(e):e(i)}return n}const x0=()=>{},nu=Array.isArray,DQ=/#/g,W7e=/&/g,G7e=/\//g,Z7e=/=/g,K7e=/\?/g,xQ=/\+/g,J7e=/%5B/g,X7e=/%5D/g,OQ=/%5E/g,Q7e=/%60/g,LQ=/%7B/g,eSe=/%7C/g,MQ=/%7D/g,tSe=/%20/g;function Tx(e){return encodeURI(""+e).replace(eSe,"|").replace(J7e,"[").replace(X7e,"]")}function nSe(e){return Tx(e).replace(LQ,"{").replace(MQ,"}").replace(OQ,"^")}function cI(e){return Tx(e).replace(xQ,"%2B").replace(tSe,"+").replace(DQ,"%23").replace(W7e,"%26").replace(Q7e,"`").replace(LQ,"{").replace(MQ,"}").replace(OQ,"^")}function oSe(e){return cI(e).replace(Z7e,"%3D")}function iSe(e){return Tx(e).replace(DQ,"%23").replace(K7e,"%3F")}function rSe(e){return e==null?"":iSe(e).replace(G7e,"%2F")}function T2(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const sSe=/\/$/,aSe=e=>e.replace(sSe,"");function eS(e,t,n="/"){let o,i={},r="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(o=t.slice(0,l),r=t.slice(l+1,a>-1?a:t.length),i=e(r)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=uSe(o??t,n),{fullPath:o+(r&&"?")+r+s,path:o,query:i,hash:T2(s)}}function lSe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ez(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function cSe(e,t,n){const o=t.matched.length-1,i=n.matched.length-1;return o>-1&&o===i&&q_(t.matched[o],n.matched[i])&&NQ(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q_(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function NQ(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!dSe(e[n],t[n]))return!1;return!0}function dSe(e,t){return nu(e)?tz(e,t):nu(t)?tz(t,e):e===t}function tz(e,t){return nu(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function uSe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),i=o[o.length-1];(i===".."||i===".")&&o.push("");let r=n.length-1,s,a;for(s=0;s<o.length;s++)if(a=o[s],a!==".")if(a==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+o.slice(s).join("/")}const om={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var E2;(function(e){e.pop="pop",e.push="push"})(E2||(E2={}));var O0;(function(e){e.back="back",e.forward="forward",e.unknown=""})(O0||(O0={}));function hSe(e){if(!e)if(Mv){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),aSe(e)}const fSe=/^[^#]+#/;function mSe(e,t){return e.replace(fSe,"#")+t}function pSe(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const _9=()=>({left:window.scrollX,top:window.scrollY});function gSe(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=pSe(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nz(e,t){return(history.state?history.state.position-t:-1)+e}const dI=new Map;function vSe(e,t){dI.set(e,t)}function _Se(e){const t=dI.get(e);return dI.delete(e),t}let ySe=()=>location.protocol+"//"+location.host;function RQ(e,t){const{pathname:n,search:o,hash:i}=t,r=e.indexOf("#");if(r>-1){let a=i.includes(e.slice(r))?e.slice(r).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),ez(l,"")}return ez(n,e)+o+i}function bSe(e,t,n,o){let i=[],r=[],s=null;const a=({state:p})=>{const v=RQ(e,location),_=n.value,k=t.value;let C=0;if(p){if(n.value=v,t.value=p,s&&s===_){s=null;return}C=k?p.position-k.position:0}else o(v);i.forEach($=>{$(n.value,_,{delta:C,type:E2.pop,direction:C?C>0?O0.forward:O0.back:O0.unknown})})};function l(){s=n.value}function d(p){i.push(p);const v=()=>{const _=i.indexOf(p);_>-1&&i.splice(_,1)};return r.push(v),v}function u(){const{history:p}=window;p.state&&p.replaceState(xi({},p.state,{scroll:_9()}),"")}function f(){for(const p of r)p();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:d,destroy:f}}function oz(e,t,n,o=!1,i=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:i?_9():null}}function kSe(e){const{history:t,location:n}=window,o={value:RQ(e,n)},i={value:t.state};i.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(l,d,u){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:ySe()+e+l;try{t[u?"replaceState":"pushState"](d,"",p),i.value=d}catch(v){console.error(v),n[u?"replace":"assign"](p)}}function s(l,d){const u=xi({},t.state,oz(i.value.back,l,i.value.forward,!0),d,{position:i.value.position});r(l,u,!0),o.value=l}function a(l,d){const u=xi({},i.value,t.state,{forward:l,scroll:_9()});r(u.current,u,!0);const f=xi({},oz(o.value,l,null),{position:u.position+1},d);r(l,f,!1),o.value=l}return{location:o,state:i,push:a,replace:s}}function wSe(e){e=hSe(e);const t=kSe(e),n=bSe(e,t.state,t.location,t.replace);function o(r,s=!0){s||n.pauseListeners(),history.go(r)}const i=xi({location:"",base:e,go:o,createHref:mSe.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function $Se(e){return typeof e=="string"||e&&typeof e=="object"}function jQ(e){return typeof e=="string"||typeof e=="symbol"}const FQ=Symbol("");var iz;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(iz||(iz={}));function Y_(e,t){return xi(new Error,{type:e,[FQ]:!0},t)}function zh(e,t){return e instanceof Error&&FQ in e&&(t==null||!!(e.type&t))}const rz="[^/]+?",CSe={sensitive:!1,strict:!1,start:!0,end:!0},SSe=/[.+*?^${}()[\]/\\]/g;function TSe(e,t){const n=xi({},CSe,t),o=[];let i=n.start?"^":"";const r=[];for(const d of e){const u=d.length?[]:[90];n.strict&&!d.length&&(i+="/");for(let f=0;f<d.length;f++){const p=d[f];let v=40+(n.sensitive?.25:0);if(p.type===0)f||(i+="/"),i+=p.value.replace(SSe,"\\$&"),v+=40;else if(p.type===1){const{value:_,repeatable:k,optional:C,regexp:$}=p;r.push({name:_,repeatable:k,optional:C});const E=$||rz;if(E!==rz){v+=10;try{new RegExp(`(${E})`)}catch(I){throw new Error(`Invalid custom RegExp for param "${_}" (${E}): `+I.message)}}let P=k?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;f||(P=C&&d.length<2?`(?:/${P})`:"/"+P),C&&(P+="?"),i+=P,v+=20,C&&(v+=-8),k&&(v+=-20),E===".*"&&(v+=-50)}u.push(v)}o.push(u)}if(n.strict&&n.end){const d=o.length-1;o[d][o[d].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function a(d){const u=d.match(s),f={};if(!u)return null;for(let p=1;p<u.length;p++){const v=u[p]||"",_=r[p-1];f[_.name]=v&&_.repeatable?v.split("/"):v}return f}function l(d){let u="",f=!1;for(const p of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const v of p)if(v.type===0)u+=v.value;else if(v.type===1){const{value:_,repeatable:k,optional:C}=v,$=_ in d?d[_]:"";if(nu($)&&!k)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const E=nu($)?$.join("/"):$;if(!E)if(C)p.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${_}"`);u+=E}}return u||"/"}return{re:s,score:o,keys:r,parse:a,stringify:l}}function ESe(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function zQ(e,t){let n=0;const o=e.score,i=t.score;for(;n<o.length&&n<i.length;){const r=ESe(o[n],i[n]);if(r)return r;n++}if(Math.abs(i.length-o.length)===1){if(sz(o))return 1;if(sz(i))return-1}return i.length-o.length}function sz(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ISe={type:0,value:""},PSe=/[a-zA-Z0-9_]/;function ASe(e){if(!e)return[[]];if(e==="/")return[[ISe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${d}": ${v}`)}let n=0,o=n;const i=[];let r;function s(){r&&i.push(r),r=[]}let a=0,l,d="",u="";function f(){d&&(n===0?r.push({type:0,value:d}):n===1||n===2||n===3?(r.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:d,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(d&&f(),s()):l===":"?(f(),n=1):p();break;case 4:p(),n=o;break;case 1:l==="("?n=2:PSe.test(l)?p():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),f(),s(),i}function DSe(e,t,n){const o=TSe(ASe(e.path),n),i=xi(o,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function xSe(e,t){const n=[],o=new Map;t=dz({strict:!1,end:!0,sensitive:!1},t);function i(f){return o.get(f)}function r(f,p,v){const _=!v,k=lz(f);k.aliasOf=v&&v.record;const C=dz(t,f),$=[k];if("alias"in f){const I=typeof f.alias=="string"?[f.alias]:f.alias;for(const O of I)$.push(lz(xi({},k,{components:v?v.record.components:k.components,path:O,aliasOf:v?v.record:k})))}let E,P;for(const I of $){const{path:O}=I;if(p&&O[0]!=="/"){const L=p.record.path,S=L[L.length-1]==="/"?"":"/";I.path=p.record.path+(O&&S+O)}if(E=DSe(I,p,C),v?v.alias.push(E):(P=P||E,P!==E&&P.alias.push(E),_&&f.name&&!cz(E)&&s(f.name)),UQ(E)&&l(E),k.children){const L=k.children;for(let S=0;S<L.length;S++)r(L[S],E,v&&v.children[S])}v=v||E}return P?()=>{s(P)}:x0}function s(f){if(jQ(f)){const p=o.get(f);p&&(o.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&o.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function l(f){const p=MSe(f,n);n.splice(p,0,f),f.record.name&&!cz(f)&&o.set(f.record.name,f)}function d(f,p){let v,_={},k,C;if("name"in f&&f.name){if(v=o.get(f.name),!v)throw Y_(1,{location:f});C=v.record.name,_=xi(az(p.params,v.keys.filter(P=>!P.optional).concat(v.parent?v.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),f.params&&az(f.params,v.keys.map(P=>P.name))),k=v.stringify(_)}else if(f.path!=null)k=f.path,v=n.find(P=>P.re.test(k)),v&&(_=v.parse(k),C=v.record.name);else{if(v=p.name?o.get(p.name):n.find(P=>P.re.test(p.path)),!v)throw Y_(1,{location:f,currentLocation:p});C=v.record.name,_=xi({},p.params,f.params),k=v.stringify(_)}const $=[];let E=v;for(;E;)$.unshift(E.record),E=E.parent;return{name:C,path:k,params:_,matched:$,meta:LSe($)}}e.forEach(f=>r(f));function u(){n.length=0,o.clear()}return{addRoute:r,resolve:d,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:i}}function az(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function lz(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:OSe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function OSe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function cz(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function LSe(e){return e.reduce((t,n)=>xi(t,n.meta),{})}function dz(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function MSe(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;zQ(e,t[r])<0?o=r:n=r+1}const i=NSe(e);return i&&(o=t.lastIndexOf(i,o-1)),o}function NSe(e){let t=e;for(;t=t.parent;)if(UQ(t)&&zQ(e,t)===0)return t}function UQ({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function RSe(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<o.length;++i){const r=o[i].replace(xQ," "),s=r.indexOf("="),a=T2(s<0?r:r.slice(0,s)),l=s<0?null:T2(r.slice(s+1));if(a in t){let d=t[a];nu(d)||(d=t[a]=[d]),d.push(l)}else t[a]=l}return t}function uz(e){let t="";for(let n in e){const o=e[n];if(n=oSe(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(nu(o)?o.map(r=>r&&cI(r)):[o&&cI(o)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function jSe(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=nu(o)?o.map(i=>i==null?null:""+i):o==null?o:""+o)}return t}const FSe=Symbol(""),hz=Symbol(""),Ex=Symbol(""),BQ=Symbol(""),uI=Symbol("");function Lb(){let e=[];function t(o){return e.push(o),()=>{const i=e.indexOf(o);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function bm(e,t,n,o,i,r=s=>s()){const s=o&&(o.enterCallbacks[i]=o.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const d=p=>{p===!1?l(Y_(4,{from:n,to:t})):p instanceof Error?l(p):$Se(p)?l(Y_(2,{from:t,to:p})):(s&&o.enterCallbacks[i]===s&&typeof p=="function"&&s.push(p),a())},u=r(()=>e.call(o&&o.instances[i],t,n,d));let f=Promise.resolve(u);e.length<3&&(f=f.then(d)),f.catch(p=>l(p))})}function tS(e,t,n,o,i=r=>r()){const r=[];for(const s of e)for(const a in s.components){let l=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(AQ(l)){const u=(l.__vccOpts||l)[t];u&&r.push(bm(u,n,o,s,a,i))}else{let d=l();r.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const f=Y7e(u)?u.default:u;s.mods[a]=u,s.components[a]=f;const v=(f.__vccOpts||f)[t];return v&&bm(v,n,o,s,a,i)()}))}}return r}function fz(e){const t=ts(Ex),n=ts(BQ),o=dt(()=>{const l=Et(e.to);return t.resolve(l)}),i=dt(()=>{const{matched:l}=o.value,{length:d}=l,u=l[d-1],f=n.matched;if(!u||!f.length)return-1;const p=f.findIndex(q_.bind(null,u));if(p>-1)return p;const v=mz(l[d-2]);return d>1&&mz(u)===v&&f[f.length-1].path!==v?f.findIndex(q_.bind(null,l[d-2])):p}),r=dt(()=>i.value>-1&&HSe(n.params,o.value.params)),s=dt(()=>i.value>-1&&i.value===n.matched.length-1&&NQ(n.params,o.value.params));function a(l={}){return BSe(l)?t[Et(e.replace)?"replace":"push"](Et(e.to)).catch(x0):Promise.resolve()}return{route:o,href:dt(()=>o.value.href),isActive:r,isExactActive:s,navigate:a}}const zSe=xo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:fz,setup(e,{slots:t}){const n=hc(fz(e)),{options:o}=ts(Ex),i=dt(()=>({[pz(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[pz(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:tu("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}}),USe=zSe;function BSe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function HSe(e,t){for(const n in t){const o=t[n],i=e[n];if(typeof o=="string"){if(o!==i)return!1}else if(!nu(i)||i.length!==o.length||o.some((r,s)=>r!==i[s]))return!1}return!0}function mz(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const pz=(e,t,n)=>e??t??n,VSe=xo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=ts(uI),i=dt(()=>e.route||o.value),r=ts(hz,0),s=dt(()=>{let d=Et(r);const{matched:u}=i.value;let f;for(;(f=u[d])&&!f.components;)d++;return d}),a=dt(()=>i.value.matched[s.value]);ic(hz,dt(()=>s.value+1)),ic(FSe,a),ic(uI,i);const l=In();return Co(()=>[l.value,a.value,e.name],([d,u,f],[p,v,_])=>{u&&(u.instances[f]=d,v&&v!==u&&d&&d===p&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),d&&u&&(!v||!q_(u,v)||!p)&&(u.enterCallbacks[f]||[]).forEach(k=>k(d))},{flush:"post"}),()=>{const d=i.value,u=e.name,f=a.value,p=f&&f.components[u];if(!p)return gz(n.default,{Component:p,route:d});const v=f.props[u],_=v?v===!0?d.params:typeof v=="function"?v(d):v:null,C=tu(p,xi({},_,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return gz(n.default,{Component:C,route:d})||C}}});function gz(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qSe=VSe;function YSe(e){const t=xSe(e.routes,e),n=e.parseQuery||RSe,o=e.stringifyQuery||uz,i=e.history,r=Lb(),s=Lb(),a=Lb(),l=yy(om);let d=om;Mv&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Q7.bind(null,fe=>""+fe),f=Q7.bind(null,rSe),p=Q7.bind(null,T2);function v(fe,Ae){let je,Ye;return jQ(fe)?(je=t.getRecordMatcher(fe),Ye=Ae):Ye=fe,t.addRoute(Ye,je)}function _(fe){const Ae=t.getRecordMatcher(fe);Ae&&t.removeRoute(Ae)}function k(){return t.getRoutes().map(fe=>fe.record)}function C(fe){return!!t.getRecordMatcher(fe)}function $(fe,Ae){if(Ae=xi({},Ae||l.value),typeof fe=="string"){const ve=eS(n,fe,Ae.path),qe=t.resolve({path:ve.path},Ae),$t=i.createHref(ve.fullPath);return xi(ve,qe,{params:p(qe.params),hash:T2(ve.hash),redirectedFrom:void 0,href:$t})}let je;if(fe.path!=null)je=xi({},fe,{path:eS(n,fe.path,Ae.path).path});else{const ve=xi({},fe.params);for(const qe in ve)ve[qe]==null&&delete ve[qe];je=xi({},fe,{params:f(ve)}),Ae.params=f(Ae.params)}const Ye=t.resolve(je,Ae),_t=fe.hash||"";Ye.params=u(p(Ye.params));const xt=lSe(o,xi({},fe,{hash:nSe(_t),path:Ye.path})),we=i.createHref(xt);return xi({fullPath:xt,hash:_t,query:o===uz?jSe(fe.query):fe.query||{}},Ye,{redirectedFrom:void 0,href:we})}function E(fe){return typeof fe=="string"?eS(n,fe,l.value.path):xi({},fe)}function P(fe,Ae){if(d!==fe)return Y_(8,{from:Ae,to:fe})}function I(fe){return S(fe)}function O(fe){return I(xi(E(fe),{replace:!0}))}function L(fe){const Ae=fe.matched[fe.matched.length-1];if(Ae&&Ae.redirect){const{redirect:je}=Ae;let Ye=typeof je=="function"?je(fe):je;return typeof Ye=="string"&&(Ye=Ye.includes("?")||Ye.includes("#")?Ye=E(Ye):{path:Ye},Ye.params={}),xi({query:fe.query,hash:fe.hash,params:Ye.path!=null?{}:fe.params},Ye)}}function S(fe,Ae){const je=d=$(fe),Ye=l.value,_t=fe.state,xt=fe.force,we=fe.replace===!0,ve=L(je);if(ve)return S(xi(E(ve),{state:typeof ve=="object"?xi({},_t,ve.state):_t,force:xt,replace:we}),Ae||je);const qe=je;qe.redirectedFrom=Ae;let $t;return!xt&&cSe(o,Ye,je)&&($t=Y_(16,{to:qe,from:Ye}),ee(Ye,Ye,!0,!1)),($t?Promise.resolve($t):q(qe,Ye)).catch(ut=>zh(ut)?zh(ut,2)?ut:te(ut):se(ut,qe,Ye)).then(ut=>{if(ut){if(zh(ut,2))return S(xi({replace:we},E(ut.to),{state:typeof ut.to=="object"?xi({},_t,ut.to.state):_t,force:xt}),Ae||qe)}else ut=V(qe,Ye,!0,we,_t);return B(qe,Ye,ut),ut})}function j(fe,Ae){const je=P(fe,Ae);return je?Promise.reject(je):Promise.resolve()}function M(fe){const Ae=$e.values().next().value;return Ae&&typeof Ae.runWithContext=="function"?Ae.runWithContext(fe):fe()}function q(fe,Ae){let je;const[Ye,_t,xt]=WSe(fe,Ae);je=tS(Ye.reverse(),"beforeRouteLeave",fe,Ae);for(const ve of Ye)ve.leaveGuards.forEach(qe=>{je.push(bm(qe,fe,Ae))});const we=j.bind(null,fe,Ae);return je.push(we),me(je).then(()=>{je=[];for(const ve of r.list())je.push(bm(ve,fe,Ae));return je.push(we),me(je)}).then(()=>{je=tS(_t,"beforeRouteUpdate",fe,Ae);for(const ve of _t)ve.updateGuards.forEach(qe=>{je.push(bm(qe,fe,Ae))});return je.push(we),me(je)}).then(()=>{je=[];for(const ve of xt)if(ve.beforeEnter)if(nu(ve.beforeEnter))for(const qe of ve.beforeEnter)je.push(bm(qe,fe,Ae));else je.push(bm(ve.beforeEnter,fe,Ae));return je.push(we),me(je)}).then(()=>(fe.matched.forEach(ve=>ve.enterCallbacks={}),je=tS(xt,"beforeRouteEnter",fe,Ae,M),je.push(we),me(je))).then(()=>{je=[];for(const ve of s.list())je.push(bm(ve,fe,Ae));return je.push(we),me(je)}).catch(ve=>zh(ve,8)?ve:Promise.reject(ve))}function B(fe,Ae,je){a.list().forEach(Ye=>M(()=>Ye(fe,Ae,je)))}function V(fe,Ae,je,Ye,_t){const xt=P(fe,Ae);if(xt)return xt;const we=Ae===om,ve=Mv?history.state:{};je&&(Ye||we?i.replace(fe.fullPath,xi({scroll:we&&ve&&ve.scroll},_t)):i.push(fe.fullPath,_t)),l.value=fe,ee(fe,Ae,je,we),te()}let G;function Q(){G||(G=i.listen((fe,Ae,je)=>{if(!be.listening)return;const Ye=$(fe),_t=L(Ye);if(_t){S(xi(_t,{replace:!0}),Ye).catch(x0);return}d=Ye;const xt=l.value;Mv&&vSe(nz(xt.fullPath,je.delta),_9()),q(Ye,xt).catch(we=>zh(we,12)?we:zh(we,2)?(S(we.to,Ye).then(ve=>{zh(ve,20)&&!je.delta&&je.type===E2.pop&&i.go(-1,!1)}).catch(x0),Promise.reject()):(je.delta&&i.go(-je.delta,!1),se(we,Ye,xt))).then(we=>{we=we||V(Ye,xt,!1),we&&(je.delta&&!zh(we,8)?i.go(-je.delta,!1):je.type===E2.pop&&zh(we,20)&&i.go(-1,!1)),B(Ye,xt,we)}).catch(x0)}))}let X=Lb(),Y=Lb(),Z;function se(fe,Ae,je){te(fe);const Ye=Y.list();return Ye.length?Ye.forEach(_t=>_t(fe,Ae,je)):console.error(fe),Promise.reject(fe)}function ce(){return Z&&l.value!==om?Promise.resolve():new Promise((fe,Ae)=>{X.add([fe,Ae])})}function te(fe){return Z||(Z=!fe,Q(),X.list().forEach(([Ae,je])=>fe?je(fe):Ae()),X.reset()),fe}function ee(fe,Ae,je,Ye){const{scrollBehavior:_t}=e;if(!Mv||!_t)return Promise.resolve();const xt=!je&&_Se(nz(fe.fullPath,0))||(Ye||!je)&&history.state&&history.state.scroll||null;return fa().then(()=>_t(fe,Ae,xt)).then(we=>we&&gSe(we)).catch(we=>se(we,fe,Ae))}const ae=fe=>i.go(fe);let de;const $e=new Set,be={currentRoute:l,listening:!0,addRoute:v,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:k,resolve:$,options:e,push:I,replace:O,go:ae,back:()=>ae(-1),forward:()=>ae(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:Y.add,isReady:ce,install(fe){const Ae=this;fe.component("RouterLink",USe),fe.component("RouterView",qSe),fe.config.globalProperties.$router=Ae,Object.defineProperty(fe.config.globalProperties,"$route",{enumerable:!0,get:()=>Et(l)}),Mv&&!de&&l.value===om&&(de=!0,I(i.location).catch(_t=>{}));const je={};for(const _t in om)Object.defineProperty(je,_t,{get:()=>l.value[_t],enumerable:!0});fe.provide(Ex,Ae),fe.provide(BQ,W$(je)),fe.provide(uI,l);const Ye=fe.unmount;$e.add(fe),fe.unmount=function(){$e.delete(fe),$e.size<1&&(d=om,G&&G(),G=null,l.value=om,de=!1,Z=!1),Ye()}}};function me(fe){return fe.reduce((Ae,je)=>Ae.then(()=>M(je)),Promise.resolve())}return be}function WSe(e,t){const n=[],o=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;s<r;s++){const a=t.matched[s];a&&(e.matched.find(d=>q_(d,a))?o.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(d=>q_(d,l))||i.push(l))}return[n,o,i]}const GSe={cz:{achievements:{title:"OcenÄ›nĂ",types:{total_paid_to_author:{name:"Celková odmÄ›na v KÄŤ",title:"{1000} PrvnĂ tisĂcovka je vaše. Moc gratulujeme, je to velká vÄ›c!|[1001,*] Dalšà milnĂk pokoĹ™en! Na UÄŤitelnici jste si vydÄ›lali uĹľ pĹ™es {value} KÄŤ.",text:"",text_share:"",suffix:"KÄŤ"},total_products_sold:{name:"CelkovĂ˝ poÄŤet prodanĂ˝ch materiálĹŻ",title:"{1} PrávÄ› si od vás nÄ›kdo koupil prvnĂ materiál. Gratulujeme!|[2,*] UĹľ jste prodali pĹ™es {value} materiálĹŻ. Tleskáme!",text:"",text_share:"{value} mĂ˝ch materiálĹŻ uĹľ pomáhá ve vĂ˝uce. DĂky moc, motivuje mÄ› to tvoĹ™it dál!",suffix:"ks"},total_approved_products:{name:"CelkovĂ˝ poÄŤet materiálĹŻ v prodeji",title:"{1} VĂ˝bornÄ›, máte zveĹ™ejnÄ›nĂ˝ váš prvnĂ materiál na UÄŤitelnici. Dobrá práce!|[2,*] Nahráli jste uĹľ celkem {value} materiálĹŻ. Jde vám to pÄ›knÄ› od ruky!",text:"",text_share:"TvoĹ™it mÄ› prostÄ› bavĂ! Na UÄŤitelnici uĹľ mám {value} materiálĹŻ.",suffix:""},total_product_ratings:{name:"CelkovĂ˝ poÄŤet hodnocenĂ u materiálĹŻ",title:"{10} Vaše materiály uĹľ zĂskaly prvnĂch 10 hodnocenĂ. To je skvÄ›lĂ©!|[11,*] Vaše materiály zĂskaly uĹľ {value} hodnocenĂ. Je vidÄ›t, Ĺľe se lĂbĂ! ",text:"",text_share:"Moje materiály se lĂbĂ! UĹľ mám od ostatnĂch {value} hodnocenĂ.",suffix:""},total_followers:{name:"CelkovĂ˝ poÄŤet sledujĂcĂch",title:"{1} UĹľ se o vás vĂ! Máte na UÄŤitelnici svĂ©ho prvnĂho sledujĂcĂho. |[2,*] LidĂ© si vás všĂmajĂ! Sleduje vás uĹľ {value} uĹľivatelĹŻ. ",text:"",text_share:"SledujĂ mÄ›! A vĹŻbec mi to nevadĂ. Na UÄŤitelnici mám totiĹľ uĹľ {value} sledujĂcĂch.",suffix:""},total_promo_product_downloads:{name:"CelkovĂ˝ poÄŤet staĹľenĂ promo materiálĹŻ",title:"{50} UĹľ 50 lidĂ si stáhlo váš promo materiál. Paráda!|[51,*] Váš promo materiál si stáhlo uĹľ {value} lidĂ. Je skvÄ›lĂ©, Ĺľe je tvoĹ™Ăte!",text:"",text_share:"MĹŻj promo materiál jde na draÄŤku! Stáhlo si ho uĹľ pĹ™es {value} lidĂ.",suffix:""},product_bestseller_in_month:{name:"Materiál se stal bestsellerem ",title:"[1,*] Tento materiál se lidem lĂbĂ. Dostal se mezi bestsellery UÄŤitelnice za mÄ›sĂc {month}.",text:"",text_share:"TvoĹ™Ăm bestsellery! Na UÄŤitelnici se totiĹľ za {month} nejvĂce prodával mĹŻj materiál. ",suffix:""},summarization:{name:"ShrnutĂ",title:"ShrnutĂ!",text:"PodĂvejte se, jak se vám zatĂm daĹ™ilo.",suffix:""}},sharing:{invalid_type:"NeznámĂ˝ typ sdĂlenĂ.",title:"Nenechte si takovĂ˝ ĂşspÄ›ch pro sebe",text:"ĂšspÄ›chy se majĂ slavit. PojÄŹte se s tĂm svĂ˝m pochlubit na Facebooku nebo Instagramu. Podklady jsme vám pĹ™ipravili, aĹĄ s tĂm nemáte práci. "},summarization:{title:"Jsme rádi, Ĺľe vás na UÄŤitelnici máme. Tady je pĹ™ehled toho, jak se vám zatĂm daĹ™ilo",text:"ShrnutĂ mapuje celou vaši dobu na UÄŤitelnici aĹľ do dneška. Jakmile dosáhnete dalšĂch milnĂkĹŻ, dáme vám vÄ›dÄ›t, aĹĄ vám dĹŻleĹľitĂ© momenty neuniknou.",subtitle:"Prodeje",other_numbers:"Dalšà zajĂmavá ÄŤĂsla"},dashboard:{share:"Pochlubit se",details:"Podrobnosti"}},auth:{failed:"Tyto pĹ™ihlašovacĂ Ăşdaje neodpovĂdajĂ ĹľadnĂ©mu záznamu.",email:"Tyto pĹ™ihlašovacĂ Ăşdaje neodpovĂdajĂ ĹľadnĂ©mu záznamu.",password:"ZadanĂ© heslo nenĂ správnĂ©",throttle:"PĹ™Ăliš mnoho pokusĹŻ o pĹ™ihlášenĂ. Zkuste to prosĂm znovu za {seconds} vteĹ™in.",login:"PĹ™ihlášenĂ",facebook:"PĹ™ihlášenĂ pĹ™es Facebook",to_login:"PĹ™ihlásit se",logout:"OdhlášenĂ",log_self_out:"Odhlásit se",confirmation_success:"VĂ˝bornÄ›, účet máte aktivnĂ. PodĂvejte se na nejnovÄ›jšà materiály na UÄŤitelnici.",invalid_confirmation_code:"Tento odkaz jiĹľ nenĂ platnĂ˝. Účet máte jiĹľ pravdÄ›podobnÄ› aktivnĂ. PĹ™ihlaste se pod svĂ˝m emailem a heslem, kterĂ© jste zadali pĹ™i registraci.",not_confirmed_email:"Váš účet ještÄ› nenĂ aktivnĂ. PodĂvejte se do svĂ©ho emailovĂ©ho účtu, kam jsme poslali odkaz, kterĂ˝m svĹŻj účet aktivujete. Pokud Vám email nedorazil, napište nám na info@ucitelnice.cz a podĂváme se na to spoleÄŤnÄ›.",not_confirmed_message:"Váš účet ještÄ› nenĂ aktivnĂ",not_confirmed_infobox_title:"Váš účet nenĂ aktivnĂ",not_confirmed_infobox_text:["StaÄŤĂ si jej aktivovat kliknutĂm na odkaz, kterĂ˝ jsme vám zaslali na e-mail:",". Ale moc to neodkládejte, účet bez aktivace funguje jen 48 hodin. Pokud vám e-mail nedorazil, nechte si ho","zaslat znova"],blocked_user:"UÄŤet je blokován",merged_into_not_found:"UĹľivatel, do kterĂ©ho byl tento účet slouÄŤen neexistuje. Kontaktujte podporu.",not_authorized:"Pod tĂmto účtem nelze poĹľadovanou stránku zobrazit.",register:"Registrace",to_register:"Registrovat se",forgot_password:"ZapomenutĂ© heslo",reset_password:"Obnova hesla",remember_me:"ZĹŻstat pĹ™ihlášen",fb_denied:"PĹ™i pĹ™ihlášenĂ pĹ™es Facebook se vyskytla chyba. Zkuste pĹ™ihlášenĂ opakovat, pĹ™ĂpadnÄ› se zaregistruje napĹ™Ămo.",fb_no_email:"Facebook nám neposkytl Vašà emailovou adresu, bez nĂ nenĂ moĹľnĂ© dokonÄŤit registraci. Zaregistrujte se napĹ™Ămo, prosĂm."},cart:{checkout:"Pokladna",messages:{already_present:"Materiál jiĹľ máte ve svĂ©m košĂku",already_bought:"Materiál jiĹľ máte zakoupen",not_present:"Materiál se nenacházĂ v košĂku",removed:"Materiál byl odstranÄ›n z košĂku",added:"Materiál byl pĹ™idán do košĂku",set_as_school:"Nakupujete na školnà účet",set_as_user:"Nakupujete na osobnà účet",log_in:"Pro zakoupenĂ produkut musĂte bĂ˝t pĹ™ihlašen.",completed:"Objednávka byla zpracována.",error:"Platba se nezdaĹ™ila, zkuste to prosĂm znovu",wish_added:"Materiál byl pĹ™idán do oblibenĂ˝ch.",wish_removed:"Materiál byl odebrán z oblĂbenĂ˝ch.",user_cart_empty:"KošĂk uĹľivatele je prázdnĂ˝",user_insufficient_credit:"UĹľĂvatel nemá dostateÄŤnĂ˝ kredit",gopay_error:"Platba online skonÄŤila chybou."},navigate:"PĹ™ejĂt do košĂku",set_as_school:"Chci nakupovat na školu",set_as_personal:"Chci nakupovat jen pro sebe",add_into_cart:"PĹ™idat do košĂku",add_to_cart_short:"Do košĂku",into_cart:"Do košĂku",product_already_in_cart:"Materiál jiĹľ máte v košĂku",already_button:"JiĹľ v košĂku",already_bought:"Materiál jiĹľ máte zakoupenĂ˝",pay_total:"Cena celkem",with_vat:"s DPH",login_register_prompt:{title:"VytvoĹ™te si účet nebo se pĹ™ihlaste:",list:["MĹŻĹľete se pak ke svĂ˝m materiálĹŻm vracet","PohlĂdáme, Ĺľe nenakoupĂte omylem materiál vĂcekrát","UšetĹ™Ăte ÄŤas – UÄŤitelnice si bude pamatovat vaše preference i Ăşdaje"]},modal:{continue:"PokraÄŤovat v nákupu",cart:"Zaplatit vše"},empty:{headline:"V košĂku zatĂm nic nemáte",text:"Zkuste materiály vyhledat. Nebo zaÄŤnÄ›te tĂm, Ĺľe si prohlĂ©dnete nejprodávanÄ›jšà materiály na UÄŤitelnici."},table:{header:{items:"PĹ™ehled materiálĹŻ v košĂku",price:"Cena s DPH",wish:"PĹ™ehled materiálĹŻ v oblĂbenĂ˝ch"},remove:"Odstranit",total:"Celkem s DPH"},payment:{credit:{button:"Zaplatit z kreditu",help:""},instant:"Koupit hned",gateway:{button:"PokraÄŤovat k platbÄ›",help:""},add_credit:{button:"DobĂt osobnĂ kredit",help:"S kreditem nakoupĂte materiály na jeden klik."}},order:{statistics:{from:"Od",to:"Do",apply:"OK",cancel:"ZpÄ›t"}},"thank-you-headline":"DÄ›kujeme za Váš nákup.","thank-you-text":"ZakoupenĂm materiálĹŻ podporujete konkrĂ©tnĂ autory v jejich práci. DÄ›kujeme, Ĺľe zakoupenĂ© materiály pouĹľĂváte pouze k vlastnĂ potĹ™ebÄ› a nešĂĹ™Ăte je rozesĂlánĂm, sdĂlenĂm ÄŤi kopĂrovánĂm dále.",voucher:{order:"Objednat",text:"DárkovĂ˝ poukaz",is_left:"Na dárkovĂ©m poukazu zbyde"},discount:{text:"UplatnÄ›ná sleva s kĂłdem"},pending:{heading:"NásledujĂcĂ objednávka ÄŤeká na zaplacenĂ.",content:"OBJEDNĂVKA ÄŚ. {number} v hodnotÄ› {total} KÄŤ"},go_back_and_buy_more:"PokraÄŤovat v nákupu",order_with_zero_sum:"Odeslat objednávku",cart_type:{personal:"osobnĂ licence",school:"školnĂ licence",personal_description:"Materiály mĹŻĹľete pouĹľĂvat pouze vy",school_description:"Materiály mohou pouĹľĂvat všichni kolegovĂ©",choose:"Zvolte si licenci"},cart_type_capitalized:{personal:"OsobnĂ licence",school:"Ĺ kolnĂ licence"},for_school_prompt:{title:"Nakupujete pro školu?",text_no_school:"MrknÄ›te na informace o UÄŤitelnici pro školy. SdĂlejte materiály s kolegy, nakupujte se školskĂ˝m budgetem a mnohem vĂc!",button_no_school:"ZjistÄ›te vĂce o UÄŤitelnici pro školy",text_school:"VyuĹľijte školnĂho účtu a sdĂlejte materiály i se svĂ˝mi kolegy.",button_school:"Koupit všechny materiály v košĂku na školnà účet"},saved_total:"Celkem ušetĹ™Ăte",info:"Po zaplacenĂ najdete materiály ve svĂ©m účtu",school_info:"Materiály budou dostupnĂ© všem vašim kolegĹŻm",guest_query:"Kam vám materiály pošleme?",edit_invoice_data_modal:{title:"Upravit fakturaÄŤnĂ Ăşdaje",text:"FacturaÄŤnĂ Ăşdaje budou zmÄ›nÄ›ny i pro dalšà objednávky."}},contact:{welcome:{headline:"Jsme tu pro vás",headline_logged:"Jsme tu pro vás.",text:"KaĹľdĂ˝ den nám mĹŻĹľete zavolat, napsat nebo nás potkat u nás v kanceláři.",text_logged:"Dotaz, nápad nebo dobrá rada? Jsme kniha otevĹ™ená. Ptejte se."},main:{headline:"Kam se nám ozvat",headline_logged:"PotĹ™ebujete nÄ›co Ĺ™ešit?",cols:[{headline:"Máte dotaz?",text:["MrknÄ›te do","ÄŚastĂ˝ch otázek",". Nenašli jste odpověď? Zkuste to v našĂ","FacebookovĂ© skupinÄ›."]},{headline:"PotĹ™ebujete poradit?",text:"Napište nám na e-mail. Moc rádi odpovĂme.",text_logged:"Napište nám zprávu. Moc rádi odpovĂme.",button:"Napsat zprávu"},{headline:"Máte nápad na zlepšenĂ?",text:"Miriam a Jakub uĹľ se na nÄ› těšĂ!"}]},legal_info:{headline:"FakturaÄŤnĂ adresa",addr_ico_dic:["UÄŤitelnice s.r.o.","PĹ™ĂÄŤná 1892/4","110 00 Praha 1 - NovĂ© MÄ›sto","IÄŚO: 08643636","DIÄŚ: CZ08643636"],text:"SpoleÄŤnost zapsaná v obchodnĂm rejstĹ™Ăku vedenĂ©m MÄ›stskĂ˝m soudem v Praze pod spisovou znaÄŤkou C 322533.",conditions:"VšeobecnĂ© obchodnĂ podmĂnky",personal:"Jak nakládáme s osobnĂmi Ăşdaji?",where_office:"Kde máme kancelář?",office_address:["PraĹľskĂ© kreativnĂ centrum","StaromÄ›stskĂ© nám. 4/1","110 00 Praha - StarĂ© MÄ›sto"]},need_help:{title:"PotĹ™ebujete pomoct?",title_long:"NevĂte si rady se zaloĹľenĂm školnĂho účtu? Rádi vám pomĹŻĹľeme na"}},pohoda:{export:"Pohoda export",proforma_invoice:"ZálohovĂ© faktury",invoice:"DaĹovĂ© doklady",user:{invoice_credit:"UĹľivatel - DaĹovĂ© doklady (Kredit)"},school:{summary_invoice:"Ĺ kola - SouhrnnĂ© faktury (NepouĹľĂva se)",proforma_invoice:"Ĺ kola - ZálohovĂ© faktury",invoice:"Ĺ kola - DaĹovĂ© doklady"},invoice_incoming:"PĹ™ijatĂ© faktury"},messenger:{send:"Odeslat",all:"NaÄŤĂst všechny",start_of_conversation:"Začátek konverzace",create_message:"Napsat zprávu",message_write:"napište zprávu",last_message:"PoslednĂ zpráva",last_activity:"PoslednĂ aktivita",send_user_mail:"Zaslat uĹľivateli upozornÄ›nĂ",new_messages_line:"NovĂ© zprávy",empty:"ZatĂm jste si s uĹľivatelem nevymÄ›nili žádnĂ© zprávy",role:{author:"Autor",user:"ZákaznĂk",admin:"Admin"},admin:{notification_type:{none:"NeposĂlat notifikaci",common:"Obecná notifikace",product:"Notifikace materiálu",complaint:"Notifikace reklamace"},number_of_selling_products:"PoÄŤet materiálĹŻ v prodeji",transactions:"Platby",documents:"Doklady",edit:"Editovat uĹľivatele",copy_email:"ZkopĂrovat email",copied:"ZkopĂrovanĂ©!"}},validation:{accepted:"{attribute} musĂ bĂ˝t pĹ™ijat.",active_url:"Zadejte platnou URL adresu vÄŤetnÄ› https://",after:"{attribute} musĂ bĂ˝t datum po {date}.",after_or_equal:"The {attribute} must be a date after or equal to {date}.",alpha:"{attribute} mĹŻĹľe obsahovat pouze pĂsmena.",alpha_dash:"{attribute} mĹŻĹľe obsahovat pouze pĂsmena, ÄŤĂslice, pomlÄŤky a podtrĹľĂtka. ÄŚeskĂ© znaky (á, Ă©, Ă, Ăł, Ăş, ĹŻ, Ĺľ, š, ÄŤ, Ĺ™, ÄŹ, ĹĄ, Ĺ) nejsou podporovány.",alpha_num:"{attribute} mĹŻĹľe obsahovat pouze pĂsmena a ÄŤĂslice.",array:"{attribute} musĂ bĂ˝t pole.",before:"{attribute} musĂ bĂ˝t datum pĹ™ed {date}.",before_or_equal:"The {attribute} must be a date before or equal to {date}.",between:{numeric:"{attribute} musĂ bĂ˝t hodnota mezi {min} a {max}.",file:"{attribute} musĂ bĂ˝t vÄ›tšà neĹľ {min} a menšà neĹľ {max} KilobytĹŻ.",string:"{attribute} musĂ bĂ˝t delšà neĹľ {min} a kratšà neĹľ {max} znakĹŻ.",array:"{attribute} musĂ obsahovat nejmĂ©nÄ› {min} a nesmĂ obsahovat vĂce neĹľ {max} prvkĹŻ."},boolean:"{attribute} musĂ bĂ˝t true nebo false",confirmed:"{attribute} nebylo odsouhlaseno.",date:"{attribute} musĂ bĂ˝t platnĂ© datum.",date_format:"{attribute} nenĂ platnĂ˝ formát data podle {format}.",different:"{attribute} a {other} se musĂ lišit.",digits:"{attribute} musĂ bĂ˝t {digits} pozic dlouhĂ©.",digits_between:"{attribute} musĂ bĂ˝t dlouhĂ© nejmĂ©nÄ› {min} a nejvĂce {max} pozic.",dimensions:"{attribute} má neplatnĂ© rozmÄ›ry.",distinct:"{attribute} má duplicitnĂ hodnotu.",email:"{attribute} nemá platnĂ˝ formát.",exists:"Zvolená hodnota pro {attribute} nenĂ platná.",file:"{attribute} musĂ bĂ˝t soubor.",filled:"{attribute} musĂ bĂ˝t vyplnÄ›no.",image_filled:"MusĂ bĂ˝t nahrán obrázek.",image:"{attribute} musĂ bĂ˝t obrázek.",in:"Zvolená hodnota pro {attribute} je neplatná.",in_array:"{attribute} nenĂ obsaĹľen v {other}.",integer:"{attribute} musĂ bĂ˝t celĂ© ÄŤĂslo.",ip:"{attribute} musĂ bĂ˝t platnou IP adresou.",ipv4:"The {attribute} must be a valid IPv4 address.",ipv6:"The {attribute} must be a valid IPv6 address.",json:"{attribute} musĂ bĂ˝t platnĂ˝ JSON Ĺ™etÄ›zec.",max:{numeric:"{attribute} musĂ bĂ˝t nižšà neĹľ {max}.",file:"{attribute} musĂ bĂ˝t menšà neĹľ {max} KilobytĹŻ.",string:"{attribute} musĂ bĂ˝t kratšà neĹľ {max} znakĹŻ.",array:"{attribute} nesmĂ obsahovat vĂce neĹľ {max} prvkĹŻ."},mimes:"{attribute} musĂ bĂ˝t jeden z následujĂcĂch datovĂ˝ch typĹŻ {values}.",mimetypes:"{attribute} musĂ bĂ˝t jeden z následujĂcĂch datovĂ˝ch typĹŻ {values}.",min:{numeric:"{attribute} musĂ bĂ˝t vÄ›tšà neĹľ {min}.",file:"{attribute} musĂ bĂ˝t vÄ›tšà neĹľ {min} KilobytĹŻ.",string:"{attribute} musĂ bĂ˝t delšà neĹľ {min} znakĹŻ.",array:"{attribute} musĂ obsahovat vĂce neĹľ {min} prvkĹŻ."},not_in:"Zvolená hodnota pro {attribute} je neplatná.",numeric:"{attribute} musĂ bĂ˝t ÄŤĂslo.",present:"{attribute} musĂ bĂ˝t vyplnÄ›no.",regex:"{attribute} nemá správnĂ˝ formát.",required_value:"MusĂ bĂ˝t vyplnÄ›na hodnota.",required:"{attribute} musĂ bĂ˝t vyplnÄ›no.",required_if:"{attribute} musĂ bĂ˝t vyplnÄ›no pokud {other} je {value}.",required_unless:"{attribute} musĂ bĂ˝t vyplnÄ›no dokud {other} je v {values}.",required_with:"{attribute} musĂ bĂ˝t vyplnÄ›no pokud {values} je vyplnÄ›no.",required_with_all:"{attribute} musĂ bĂ˝t vyplnÄ›no pokud {values} je zvoleno.",required_without:"{attribute} musĂ bĂ˝t vyplnÄ›no pokud {values} nenĂ vyplnÄ›no.",required_without_all:"{attribute} musĂ bĂ˝t vyplnÄ›no pokud nenà žádnĂ© z {values} zvoleno.",same:"{attribute} a {other} se musĂ shodovat.",size:{numeric:"{attribute} musĂ bĂ˝t pĹ™esnÄ› {size}.",file:"{attribute} musĂ mĂt pĹ™esnÄ› {size} KilobytĹŻ.",string:"{attribute} musĂ bĂ˝t pĹ™esnÄ› {size} znakĹŻ dlouhĂ˝.",array:"{attribute} musĂ obsahovat právÄ› {size} prvkĹŻ."},string:"{attribute} musĂ bĂ˝t zadán.",timezone:"{attribute} musĂ bĂ˝t platná ÄŤasová zĂłna.",unique:"{attribute} je jiĹľ registrován.",uploaded:"NahrávánĂ {attribute} se nezdaĹ™ilo.",url:"Formát {attribute} musĂ bĂ˝t ve tvaru napr. www.mujweb.cz",recaptcha:"Chyba automatickĂ©ho ověřenĂ registrace.",check_required:"ProsĂm, zkontrolujte všechna povinná pole.",csrf:{token_mismatch:"Stránka expirovala. UloĹľte si text a znovu ji naÄŤtÄ›te."},counts:{exactly:"MusĂte zvolit právÄ› {what}",at_least:"MusĂte zvolit alespoĹ {what}",at_most:"MĹŻĹľete zvolit maximálnÄ› {what}"},categories:{degree_of_education:"{count} stupĹĹŻ vzdelánĂ | {count} stupeĹ vzdelánĂ | {count} stupnÄ› vzdelánĂ | {count} stupĹĹŻ vzdelánĂ",class:"{count} roÄŤnĂkĹŻ | {count} roÄŤnĂk | {count} roÄŤnĂky | {count} roÄŤnĂkĹŻ",subject:"{count} pĹ™edmÄ›tĹŻ | {count} pĹ™edmÄ›t | {count} pĹ™edmÄ›ty | {count} pĹ™edmÄ›tĹŻ"},custom:{"attribute-name":{"rule-name":"custom-message"},code:{string:["VloĹľenej voucher nenĂ platnĂ˝"],required:["VloĹľenej voucher nenĂ platnĂ˝"],size:["VloĹľenej voucher nenĂ platnĂ˝"]},cover_img:{required:"VloĹľte prosĂm hlavnĂ obrázek.",image:"Lze nahrát pouze obrázky.",too_big:"Obrázek je pĹ™Ăliš velikĂ˝. Maximálni velikost je 5MB."},price:{min:"MinimálnĂ cena materiálu je 20 KÄŤ"},web:{url:"Zadejte prosĂm web ve formátu s https:// nebo http://."},conditions:{required:"Pro registraci musĂte souhlasit s pomĂnkami.",accepted:"Pro registraci musĂte souhlasit s pomĂnkami."},product_condition:{required:"Pro nahránĂ produktu je nutnĂ© souhlasit s ObchodnĂmi podmĂnkami.",accepted:"Pro nahránĂ produktu je nutnĂ© souhlasit s ObchodnĂmi podmĂnkami."},voucher_conditions:{required:"Pro objednanĂ musĂte souhlasit s pomĂnkami.",accepted:"Pro objednanĂ musĂte souhlasit s pomĂnkami."},author_condition:{required:"MusĂte souhlasit s pomĂnkami.",accepted:"MusĂte souhlasit s pomĂnkami."},author_url_unique:"Tuto URL jiĹľ pouĹľĂvá jinĂ˝ autor",vop_condition:{required:"MusĂte souhlasit s podmĂnkami.",accepted:"MusĂte souhlasit s podmĂnkami."},text:{required:"Text musĂ bĂ˝t vyplnÄ›n."},reason:{required:"Zadejte dĹŻvod Ăşpravy"},webinar_url_stream:{required:"Zadejte URL webináře.",url:"Zadaná URL má špatnĂ˝ formát."},webinar_starts_at:{required:"Zadejte datum a ÄŤas začátku webináře."},published_at:{required:"Zadejte datum a ÄŤas publikovánĂ."},file:{required:" Pro odeslánĂ produktu je nutnĂ© nahrát soubor. MĹŻĹľete vyuĹľĂt uloĹľenĂ konceptu."},title:{required:"Název je dĹŻleĹľitĂ˝. VystihnÄ›te to podstatnĂ©."},short_description:{required:"DoplĹte krátkĂ˝ popis a zaujmÄ›te zákaznĂky."},description:{required:"Napište, ÄŤeho se materiál tĂ˝ká."},pages:{required:"VyplĹte poÄŤet stránek."},file_type:{required:"Vyberte, jakĂ© typy souborĹŻ materiál obsahuje."},video:{length:"VloĹľte adresu odkazu pĹ™esnÄ› v tomto formátu: https://www.youtube.com/watch?v=9wq0KIIoJWk",url:"VloĹľte adresu odkazu pĹ™esnÄ› v tomto formátu: https://www.youtube.com/watch?v=9wq0KIIoJWk"},first_name:{required:"KĹ™estnĂ jmĂ©no je povinnĂ©."},last_name:{required:"PĹ™ĂjmenĂ je povinnĂ©."},full_name:{required:"JmĂ©no a pĹ™ĂjmenĂ je povinnĂ©.",atleast_two_words:"JmĂ©no a pĹ™ĂjmenĂ musĂ obsahovat dvÄ› slova."},promo_product:{required:"MusĂ bĂ˝t nahrán promo materiál."},email:{required:"Pole email je povinnĂ©.",email:"Email nemá platnĂ˝ formát."},images:{required:"Nahrajte do galerie alespoĹ jeden obrázek."},invoice_company:{required:"VyplĹte název organizace."},invoice_ico:{required:"VyplĹte IÄŚO.",format:"ChybnĂ˝ formát IÄŚO. Zadejte 8-mĂstnĂ© ÄŤĂslo bez mezer."},invoice_address:{required:"VyplĹte ulici a popisnĂ© ÄŤĂslo."},invoice_city:{required:"VyplĹte mÄ›sto."},invoice_psc:{required:"VyplĹte PSÄŚ."},invoice_dic:{required:"VyplĹte DIÄŚ.",format:'ChybnĂ˝ formát DIÄŚ. Zadejte ÄŤĂslo ve formátu "CZ12345678".'},commission:{required:"VyplĹte provizi"},contractor_company:{required:"JmĂ©no a pĹ™ĂjmenĂ je povinnĂ©."},password:{required:"Heslo je povinnĂ©."},password_confirmation:{no_match:"Hesla se nezhodujĂ."},gdpr:{have_to_accept:"MusĂte souhlasit s podmĂnkami."},employee_checkbox:{have_to_accept:"PotĹ™ebujeme Vaše prohlášenĂ a souhlas s obchodnĂmi podmĂnkami."},budget_amount:{required:"Částka musĂ býť vyplnÄ›na.",min:"Minimálnà částka musĂ bĂ˝t alespoĹ {min} KÄŤ"},employee_budget_amount:{required:"Částka musĂ býť vyplnÄ›na.",min:"Minimálnà částka musĂ bĂ˝t vĂce jak 1 KÄŤ",max_update:"Částka pĹ™esahuje dostupnĂ˝ školnĂ rozpoÄŤet ({budget} KÄŤ)."},school_budget_amount:{required:"Částka musĂ býť vyplnÄ›na.",min:"Minimálnà částka musĂ bĂ˝t vĂce jak 1 KÄŤ",max_remove:"Částka pĹ™esahuje školnĂ rozpoÄŤet ({budget} KÄŤ)."},promo_material:{title:{required:"Název je povinnĂ˝.",min_length:"Název musĂ obsahovat nejmĂ©nÄ› {min} znaky.",max_length:"Název mĹŻĹľe obsahovat nejvĂc {max} znakĹŻ."},description:{required:"Krátky popis je povinnĂ˝.",min_length:"Krátky popis musĂ obsahovat nejmĂ©nÄ› {min} znaky.",max_length:"Krátky popis mĹŻĹľe obsahovat nejvĂc {max} znakĹŻ."}},discount_code:{required:"SlevovĂ˝ kĂłd musĂ bĂ˝t vyplnÄ›n."}},attributes:{password:"Heslo",city:"Mesto",psc:"PSÄŚ",first_name:"JmĂ©no",last_name:"PĹ™ijmenĂ",country:"Stát",address:"Adresa",credit:"Kredit",email:"Email",price:"Cena",web:"Web stránka",category_theme_id:"TĂ©mata",category_class_id:"TĹ™Ăda",category_subject_id:"Predmet",category_format_id:"Formát",guide:"Návod",files_short_description:"Obsah materiálu",files_types:"Typ materiálu",full_description:"Popis",description:"Popis",title:"Název",short_description:"KrátkĂ˝ popis",pages:"Poćet stránek",comment:"Kometář",invoice_company:"Název organizace",invoice_ico:"IÄŚO",invoice_dic:"DIÄŚ",invoice_address:"Ulica a ÄŤĂslo",invoice_city:"MÄ›sto",invoice_psc:"PsÄŤ",invoice_data:"FakturaÄŤnĂ Ăşdaje","participant_amounts.*":"Částka",file:"Soubor",reason:"DĹŻvod Ăşpravy",amount:"Částka"}},app:{action:{saved:"ZmÄ›na byla uloĹľena"}},product:{ucitelnice_list:"Materiály na UÄŤitelnici",name:"Název materiálu",find:"NajĂt materiál",added:"PĹ™idanĂ˝ materiál",added_multiple:"PĹ™idanĂ© materiály",added_already:"Material byl pĹ™idán",add_to_revision:"PĹ™idat do revize",removed:"OdebranĂ˝ materiál",new_product:"Nahrát materiál",edit_product:"Editace",download:"Stáhnout materiál",edit:"Upravit materiál",delete_product:"Smazat materiál",delete:"Smazat",delete_title:"SmazánĂ materiálu",delete_prompt:"SkuteÄŤnÄ› si pĹ™ejete smazat materiál",delete_yes:"Smazat",delete_no:"Zrušit",delete_reason:"DĹŻvod smazánĂ",delete_reason_placeholder:"ProsĂm vyplĹte dĹŻvod smazánĂ",restore:"Obnovit",material:"Materiál",materials:"Materiály",categories:"Kategorie",users_materials:"Materiály od všech uĹľivatelĹŻ",pending:"ÄŚeká",notpending:"OstatnĂ",approved:"Schváleno",draft:"Draft",review_the_fix:"Opraveno",wait_for_approve:"ÄŚeká na schválenĂ",unknown:"NeznámĂ˝ stav",no_files:"Soubor nenahrán",review:"Revize",disapproved:"Neschválen",not_for_sale:"NenĂ v prodeji",product_is_not_for_sale:"Materiál nenĂ v prodeji",admin_note:"Komentář",admin_note_edit_success:"Komentář byl upraven",published:"Zve",show_all:"Zobrazit všechny materiály",show_more:"Zobrazit dalšà materiály",average_grade:"prĹŻmÄ›rná známka materiálĹŻ",sum_materials:"VystavenĂ˝ch materiálĹŻ",best_grades:"NejlĂ©pe hodnocenĂ©",most_downloaded:"NejstahovanÄ›jšĂ",best_price:"NejlevnÄ›jšĂ",newest:"NejnovÄ›jšĂ",alphabetically:"AbecednÄ›",all_materials:"Všechny materiály ({count})",all:"Všechny materiály",sames_materials:"PodobnĂ© materiály",searched_materials:"VyhledanĂ© materiály",cover_img:"HlavnĂ obrázek",image_upload:"NahránĂ obrázkĹŻ",step:"Krok",file_upload:"NahránĂ souboru",upload_a_file:"Nahrát soubor",downloads_count:"PoÄŤet staĹľenĂ",message:"Zpráva",your_materials:"Vaše materiály",topMonth:" TOP 30 dnĂ",topWeek:" TOP 7 dnĂ",orderBy:"SeĹ™adit podle",create_date:"Datum nahránĂ",edit_images:"Editace obrázkĹŻ",edit_profile:"Editovat profil",write_to_author:"Napsat autorovi",more_files_info_text:"Pokud materiál obsahuje vĂce souborĹŻ, vytvoĹ™te z nich ",more_files_info_link:"jeden ZIP soubor.",reason:"DĹŻvod Ăşpravy",reason_text:"Text dĹŻvodu opravy posĂláme zákaznĂkĹŻm, aby vÄ›dÄ›li, co pĹ™esnÄ› se zmÄ›nilo. BuÄŹte prosĂm konkrĂ©tnĂ. Do pole nepište obecnĂ© vÄ›ci jako napĹ™.: oprava.",reason_checkbox:"Informovat zákaznĂka o zmÄ›nÄ› v materiálu.",reason_placeholder:"NapĹ™. ChybnĂ˝ zápis ÄŤĂsel na str. 9 a 17 (ve dvou kartiÄŤkách).",reason_info:"PodĂvejte se, jak a kde zákaznĂk zmÄ›nu uvidĂ.",basic_info:{title:"ZákladnĂ informace",number_of_pages:"PoÄŤet stran",image_sources:"Zdroje obrázkĹŻ",file_type_prompt:"V jakĂ©m programu lze tento soubor otevĹ™Ăt?",create_complaint:"Upozornit na problĂ©m s materiálem"},category_type:{class:"TĹ™Ăda",subject:"PĹ™edmÄ›t",theme:"TĂ©mata",format:"Formát materiálu",holiday:"Svátky",kind:"Typ materiálu",type_file:"Typ souboru",no_class:"Žádná tĹ™Ăda",no_subject:"ŽádnĂ˝ pĹ™edmÄ›t",no_theme:"Žádná tĂ©mata",no_format:"ŽádnĂ˝ formát materiálu",no_kind:"ŽádnĂ˝ typ materiálu",no_type_file:"ŽádnĂ˝ typ souboru"},categories_vat_modifiable:{locked_message:"Ăšprava kategoriĂ / DPH byla zamÄŤena",unlocked_message:"Ăšprava kategoriĂ / DPH byla odemÄŤena"},worthy_product:"HodnotnĂ˝ materiál",similar_products:"Dalšà materiály, kterĂ© se uÄŤitelĹŻm lĂbĂ",edit_files:"Editace souboru",image:"Profilová fotografie",comment:{edit:"Ăšprava komentáře k materiálu",add:"PĹ™idáni komentáře k materiálu"},image_upload_after_created:"Obrázek lze nahrát aĹľ po vytvoĹ™enĂ.",theme:"TĂ©mata",class:"TĹ™Ăda",subject:"PĹ™edmÄ›t",format:"Typ materiálu",tags:"Tagy",email:"Email",password:"Heslo",password_confirmation:"PotvrzenĂ hesla",first_name:"JmĂ©no",last_name:"PĹ™ijmenĂ",public_alias:"JmĂ©no profilu",facebook:"Odkaz na Facebook",instagram:"Odkaz na Instagram",youtube:"Odkaz na Youtube",address:"Adresa",city:"MÄ›sto",psc:"PSÄŚ",web:"Web stránka",ico:"IÄŚ",could_be_interested_in:"MĹŻĹľe vás zajĂmat",sells_count:"prodejĹŻ",sales:"PoÄŤet prodejĹŻ",image_recommendations:"Tip: JakĂ© obrázky lze pouĹľĂvat?",more_info:"VĂce informacĂ.",recommeded:{success:"Materiál byl doporuÄŤen"},unrecomeded:{success:"Materiál byl odebrán z doporuÄŤenĂ˝ch"},invoice_company:"JmĂ©no a pĹ™ĂjmenĂ (název)",invoice_name_surname:"JmĂ©no a pĹ™ĂjmenĂ",invoice_ico:"IÄŚO",invoice_dic:"DIÄŚ",invoice_address:"Ulice, ÄŤ.p.",invoice_city:"MÄ›sto",invoice_psc:"PSÄŚ",invoice_data:"FakturaÄŤnĂ Ăşdaje",contractor_company:"Název ",contractor_ico:"IÄŚO",contractor_dic:"DIÄŚ",contractor_address:"Ulice, ÄŤĂslo popisnĂ©",contractor_city:"MÄ›sto",contractor_psc:"PsÄŤ",contractor_town:"Krajina",contractor_custom_invoice_acknowledgement:"Text pro právnickou osobu",created_at:"Datum vytvoĹ™enĂ",country:"Stát",images:"Obrázky",to_skep:"PrejsĹĄ do košĂku",added_to_skep:"PRODUKT BYL PĹIDĂN DO KOĹ ĂŤKU",continue_to_shop:"pokraÄŤovaĹĄ v nákupu",title:"Materiál",short_description:"KrátkĂ˝ popis",description:"Popis",pages:"PoÄŤet stránek",files_types:"Typ materiálu",files_short_description:"Obsah materiálu",guide:"Návod",rating:"HodnocenĂ",rating_count:"hodnocenĂ",rate:"Hodnotit",price:"Cena",status:"Stav",hide:"SkrĂ˝t materiál",hidden:"Schováno",shown:"Zobrazeno",unhide:"Zobrazit materiál",search:"Vyhledat materiál",author:"Autor",downloaded:"PoÄŤet stáhnutĂ",downloaded_short:"StaĹľenĂ",total_to_pay:{title:"OdmÄ›na",tooltip:"Jedná se o souhrnnou odmÄ›nu, kterou jste zĂskali prodejem tohoto materiálu. VĂ˝poÄŤet je orientaÄŤnĂ, nezohledĹuje pĹ™Ăpadnou zmÄ›nu ceny materiálu."},file_type:"Typy souborĹŻ",full_description:"VĂce o produktu",full:"Materiály plnĂ©",material_content:"Obsah materiálu",video:"Odkaz na Youtube",sells:{title:"Prodeje",yesterday:{title:"Top produkty za vÄŤera",empty:"Pro vÄŤerejšà den jsme nenašli žádnĂ© Ăşdaje o prodejĂch"},overview:{title:"PĹ™ehled prodejĹŻ",show_more:"Zobrazit podrobnĂ© statistiky"}},"images[]":"Obrázky",empty_result:"ŽádnĂ© materiály nenalezeny.",not_found:{title:"ŽádnĂ˝ materiál nenalezen.",text:{message:["Pro pojem","u nás zatĂm materiály nemáme."],advice:"Zkuste vyhledávánĂ s pĹ™esnÄ›jšĂm názvem. Nebo si moĹľná vyberete z nabĂdky nĂĹľe?"},select:{message:"Pro zadanĂ˝ vĂ˝bÄ›r jsme nic nenašli.",advice:"Zkuste zadat vyhledávánĂ mĂ©nÄ› specifickĂ©. Nebo si moĹľná vyberete z nabĂdky nĂĹľe?"}},deleted:"VymazanĂ©",refresh:"Obnovit",pictures_from:"Zdroj obrázkĹŻ",bank_account:"ÄŚĂslo bankovnĂho účtu:",products:"{count} produktĹŻ |{count} produkt |{count} produkty |{count} produktĹŻ",materials_count:"{count} materiálĹŻ |{count} materiál |{count} materiály |{count} materiálĹŻ",recommended:"DoporuÄŤenĂ© materiály",recommended_more:"Dalšà doporuÄŤenĂ© materiály",count:"PoÄŤet materiálĹŻ",price_brutto:"Cena s DPH",vat:{vat:"DPH",price:{label:"Částka, ze kterĂ© se poÄŤĂtá vaše odmÄ›na",info:""},total_vat:{label:"Částka DPH (posĂláme státu)",info:""},price_brutto:{label:"Cena s DPH (platĂ zákaznĂk)",info:""},cannot_set_lower:["Pokud chcete zvolit nižšà sazbu DPH,","napište nám prosĂm","dĹŻvod zmÄ›ny."],more_info:{10:"pracovnĂ listy a vše, co sloužà pro pĹ™Ămou vĂ˝uku dÄ›tĂ",21:"pomĹŻcky pro uÄŤitele, organizĂ©ry, diáře, diplomy pro dÄ›ti, kalendáře"}},already_bought:"Zakoupeno",editor:{headline_new:"NahrávanĂ novĂ©ho materiálu",headline_update:"Ăšprava existujĂcĂho materiálu",header:{general:"ZákladnĂ informace o materiálu",description:"Popis materiálu",categories:"Kategorie materiálu",themes:"TĂ©mata materiálu",images:"Obrázky materiálu",files:"NahránĂ souborĹŻ",image_sources:{title:"Zdroje obrázkĹŻ",text:"DobrĂ˝ obrázek prodává. VybĂrejte ho peÄŤlivÄ› a uvádÄ›jte zdroje, pokud nenĂ vlastnĂ tvorby."},file_upload:"NahránĂ souboru",commission:"Provize"},commission_in:"Provize v %",file:{reason_info:"Popis zmÄ›n",uploaded_files:"NahranĂ© soubory"},footer:{cancel:"Zrušit nahrávánĂ",draft:"UloĹľit jako koncept",save_and_validate:"UloĹľit a odeslat ke schválenĂ",validate:"Odeslat ke schválenĂ",publish:"Publikovat",save_changes:"UloĹľit zmÄ›ny",continue_categories:"PokraÄŤovat na kategorie",continue_file_upload:"PokraÄŤovat na nahránĂ souborĹŻ"},has_no_images:"Neobsahuje obrázky",has_product_images:"Obsahuje fotky z reálnĂ©ho pouĹľitĂ materiálu",characters:"{n}/{m} znakĹŻ",title:{label:"Název materiálu",placeholder:"Jak se materiál jmenuje?"},short_description:{label:"KrátkĂ˝ popis",placeholder:"Zkuste jej blĂĹľe popsat."},price:{label:"Cena",placeholder:"MinimálnÄ› 20 KÄŤ",choose_vat:"Jakou zvolit?",minimum_text:" MinimálnĂ cena materiálu je 20 KÄŤ, pokud chcete nabĂdnout materiál zdarma, nahrajte ho v sekci <br> <b>Promo a slevy > Promo materiál</b>"},full_description:{placeholder:"Popište detailnÄ› svĹŻj materiál. Pro koho je urÄŤen nebo jak s nĂm lze pracovat?"},gallery:{cover_image:{title:"NáhledovĂ˝ obrázek",text:"NáhledovĂ˝ obrázek rozhoduje o nákupu u vĂce neĹľ 90 % pĹ™ĂpadĹŻ. SnaĹľte se, aby zaujal na prvnĂ pohled.",insert:"Nahrajte náhledovĂ˝ obrázek",tips:"ÄŚtvercovĂ˝ formát .png nebo .jpg. IdeálnĂ je rozmÄ›r 1500px Ă— 1500px"},images:{title:"Galerie materiálu",text:"Nahrajte tĹ™eba fotky reálnĂ©ho pouĹľitĂ materiálu ve vĂ˝uce a dalšà doplĹujĂcĂ obrázky. RozmÄ›ry necháme na vás."}},pages_placeholder:"0",has_video:"K materiálu mám i video",only_on_ucitelnice:{label:"Pouze na UÄŤitelnici",tooltip:"",author_already_set:"Nastaveno na všechny vaše materiály. ZmÄ›nit to mĹŻĹľete v nastavenĂ e-shopu."},black_and_white_print:{label:"ÄŚernobĂlĂ˝ tisk",tooltip:"Materiál obsahuje ÄŤernobĂlou variantu nebo je šetrnĂ˝ na spotĹ™ebu barvy pĹ™i tisku. (Neobsahuje barevnĂ© pozadĂ ani velkĂ© mnoĹľstvĂ obrázkĹŻ)"},print_and_use:{label:"Vytiskni a uÄŤ",tooltip:"Materiál je plnÄ› pouĹľitelnĂ˝ ihned po vytištÄ›nĂ. Žádná pĹ™Ăprava, žádnĂ© stĹ™ĂhánĂ apod."},categories:{class:"StupeĹ vzdÄ›lánĂ",class_child:"Chcete upĹ™esnit roÄŤnĂk?",subject:"PĹ™edmÄ›t",kind:"Typ materiálu",theme:"TĂ©mata",format:"Formát materiálu",holiday:"Svátky"},video:{placeholder:"https://www.youtube.com/watch?v=xxxxxxxxxxx"},webinar:{title:"Webinář",checkbox:"Webinář povolen",starts_at:"Začátek webináře (datum+ÄŤas)",redirect_at:"PĹ™esmÄ›rovánĂ URL (datum+ÄŤas)",url_stream:"URL stream"},published_at:{checkbox:"Publikovat okamĹľitÄ›",label:"Datum a ÄŤas publikovánĂ",plan:"NaplánovánĂ publikovánĂ"},required_categories:{title:"Kategorie materiálu",text:"SnaĹľte se materiál co nejpĹ™esnÄ›ji zaĹ™adit. DĂky tomu vaše materiály zákaznĂci snadnÄ›ji objevĂ.",specify:"Chcete ještÄ› upĹ™esnit {subject}? (nepovinnĂ©)"},additional_categories:{title:"DoplĹujĂcĂ kategorie materiálu",text:"Podle ÄŤeho ještÄ› mohou lidĂ© vás materiál objevit?",search:{theme:"Hledej tĂ©mata...",kind:"Hledej typy...",format:"Hledej formáty...",holiday:"Hledej svátky..."}},hmat:"H-mat material",mmat:"Montessori material",upload_limit:{info:{title:"Nahrávejte maximálnÄ› {limit} materiály dennÄ›, dÄ›kujeme",text:"Materiály kaĹľdĂ˝ všednĂ den jednotlivÄ› kontrolujeme a v pĹ™ĂpadÄ›, Ĺľe je potĹ™eba je nÄ›jak upravit, posĂláme zpÄ›tnou vazbu formou revize. Nahrávejte nám proto prosĂm ke schválenĂ vĹľdy maximálnÄ› 3 materiály dennÄ› (pĹ™ĂpadnÄ› {limit} materiály za celĂ˝ vĂkend). VĂce jich v jeden den od jednoho autora stejnÄ› neschválĂme. DÄ›kujeme, Ĺľe nám pomáháte celĂ˝ schvalovacĂ proces udrĹľet co nejvĂce rychlĂ˝ a efektivnĂ. TĂ˝m UÄŤitelnice"},warning:{title:"Dnes ste nahráli uĹľ {limit} materiály",text:"Všechny materiály jednotlivÄ› kontrolujeme a v pĹ™ĂpadÄ›, Ĺľe je potĹ™eba je nÄ›jak upravit, posĂláme zpÄ›tnou vazbu formou revize. Nahrávejte nám proto prosĂm ke schválenĂ vĹľdy maximálnÄ› {limit} materiály najednou, vĂce jich v jeden den od jednoho autora na naše stránky neschválĂme. OpaÄŤnĂ˝ postup nás navĂc zbyteÄŤnÄ› zahlcuje a prodluĹľuje celĂ˝ schvalovacĂ proces."}}},preferences:{multiple_subjects:"VĂce pĹ™edmÄ›tĹŻ"},distance_education:{title:"DistanÄŤnĂ vĂ˝uka",info:"Tento materiál je vhodnĂ˝ pro vyuĹľitĂ pĹ™i distanÄŤnĂ vĂ˝uce. Lze jej poskytnout žákĹŻm pro vyuĹľitĂ doma. UPOZORNÄšNĂŤ: Materiál je chránÄ›n autorskĂ˝mi právy, nesmĂ bĂ˝t dostupnĂ˝ veĹ™ejnÄ› na internetu."},emails:{vat:{update:{subject:"ZmÄ›na sazby DPH u materiálu {title}"}},created:{unverified:{subject:"NovĂ˝ materiál {title} byl ĂşspěšnÄ› nahrán a ÄŤeká na schválenĂ"}},deleted:{more_than_one_sells:"SmazánĂ materiálu od autora ({title})"}},not_available:{title:"Materiál jiĹľ nenĂ v prodeji",text:["Tento materiál se jiĹľ neprodává. Vyhledejte jinĂ˝ materiál nebo si zobrazte ","katalog materiálĹŻ."]},admin:{feedback:{reason:"JinĂ˝ dĹŻvod - Nadpis",email_text:"OsobnĂ poznámka na konci emailu",another_reason_note:"JinĂ˝ dĹŻvod - Popis",send_product_revision:"Revize - zpÄ›tná vazba k materiálu",send_product_rejection:"ZamĂtnutĂ - zpÄ›tná vazba k materiálu",choose_reasons:"DĹŻvody",send_feedback:"Odeslat",send_email:"Poslat email",email_preview:"Náhled emailu",email_sent:"Email odeslán",email_not_sent:"Email neodeslán"},feedback_reasons:{another:"JinĂ˝ dĹŻvod"},categories:{change_success:"Kategorie a tĂ©mata zmÄ›nÄ›nĂ©"}},revision_modal:{revision:{title:"Materiál v revizi"},info:["Milá autorko, milĂ˝ autore,<br/><br/>váš produkt","je velmi zdaĹ™ilĂ˝. NeĹľ ho však dáme k dispozici ostatnĂm, poprosĂm vás o pár drobnĂ˝ch Ăşprav (viz nĂĹľe). DĂky tomu bude váš materiál ještÄ› lepšà a zvýšĂte tak šance, Ĺľe o vaši práci bude ještÄ› vÄ›tšà zájem.<br/><br/>"],not_approved:{title:"NeschválenĂ˝ materiál"},more_in_email:"VĂce informacĂ jsme vám poslali na email"},best_sellers:"NejprodávanÄ›jšà materiály",not_sold_yet:"ŽádnĂ© prodeje",promo:{downloads:{count:"PoÄŤet staĹľenĂ",count_empty:"PoÄŤet staĹľenĂ",reset_info:"S nahránĂm novĂ©ho promo materiálu se poÄŤĂtadlo resetuje. PoslednĂ nahránĂ {date}."}},choose:"Vybrat produkty"},credit:{title_short:"Kredity",title:"DobitĂ kreditu",headline:"Dobijte si kredit, aĹĄ mĹŻĹľete hned nakupovat ",teaser:"PĹ™i platbÄ› kartou nebo okamĹľitĂ˝m pĹ™evodem vám kredit pĹ™ipĂšeme hned. Kredit mĹŻĹľete vyuĹľĂt jen pro osobnĂ nákupy. ",info:["DĂky placenĂ z kreditu se uĹľ s niÄŤĂm nemusĂte zdrĹľovat. Jednou kliknete a stahujete.","VĂce o platbÄ› z kreditu."],info_modal:{headline:"Jak funguje placenĂ z kreditu?",steps:["Dobijete libovolnou výši kreditu","Vyberete si materiály","Hned po odeÄŤtenĂ kreditu je máte k dispozici"]},personal_warning:["Pozor, dobĂjĂte osobnĂ kredit. Cesta ke školnĂmu kreditu vede","tudy"],actual:"AktuálnĂ stav kreditu",actual_personal:"Stav osobnĂho kreditu",available:"Máte k dispozici {amount} KÄŤ v kreditech",amount:{title:"Kredit k dobitĂ (min. {amount} KÄŤ)",label:"Částka k dobitĂ",inquiry:"Kolik chcete dobĂt?",custom:"Vlastnà částka",set:"Nastavit částku",info:"Dobijete:",placeholder:"NapĹ™. 200 KÄŤ",error:{min:"Minimálnà částka pro dobitĂ kreditu je {amount} KÄŤ",max:"Maximálnà částka pro dobitĂ kreditu je {amount} KÄŤ",required:"Částka k dobitĂ je povinná"}},payment:{title:"Jak budete platit?",last_title:"Platit jako poslednÄ›?",info:"Kredit najdete na účtu hned, jak platba dorazĂ.",last_info:"Naposledy ste zvolili tuto platebnĂ metodu.",last:"Naposledy zvolená metoda",link:"K platbÄ›",how:"Vyberte variantu",change:"Zvolit jinou platebnĂ metodu",payment_card:{title:"PlatebnĂ karta",text:"PĹ™i platbÄ› kartou obdrĹľĂte kredit hned po zaplacenĂ."},bank_account:{title:"OkamĹľitá platba pĹ™evodem",text:"DĂky okamĹľitĂ©mu pĹ™evodu obdrĹľĂte kredit hned po zaplacenĂ."}},confirmation:{title:"Kredit jste ĂşspěšnÄ› dobili",info:["Kredity uĹľ jsou na vašem účtu, a vy mĹŻĹľete","vyrazit na nákup","materiálĹŻ."],proforma:{title:"DobitĂ bankovnĂm pĹ™evodem",info:"Kredit najdete na účtu hned, jak platba dorazĂ. VÄ›tšina plateb se pĹ™ipĂše okamĹľitÄ›, ale mĹŻĹľete to trvat i jeden pracovnĂ den."}},fio:{headline:"DobitĂ kreditu bankovnĂm pĹ™evodem"},success:"PĹ™ipsali jsme vám kredit",school_manager_info:["Ĺ kolnĂ kredit dobijete ","zde"],please_login:"Pro zobrazenĂ ĂşdajĹŻ k dobitĂ se pĹ™ihlaste",account_details:"Kredit vám dobijeme hned, jak nám platba dorazĂ na účet. Trvá to maximálnÄ› dva dny.",account_number:"ÄŚĂslo účtu",variable_symbol:"VariabilnĂ symbol",footnote:"K párovánĂ plateb pouĹľĂváme variabilnĂ symbol. Zkontrolujte proto, jestli jste zadali správnĂ˝ symbol.",payment_gateway:"VyuĹľijte platebnĂ bránu, vyberte si metodu, která vyhovuje právÄ› vám a kredit budete mĂt dobitĂ˝ hned.",payment_gateway_button:"DobitĂ kreditu pĹ™es platebnĂ bránu",with_bonus:"Dostali jste od nás bonusovĂ˝ kĂłd? Dobijte si libovolnou částku a pĹ™ipĂšeme vám kredit navĂc.",with_bonus_button:"DobĂt kredit s bonusovĂ˝m kĂłdem",with_voucher:"Zde uplatnĂte voucher z dárkovĂ©ho poukazu.",with_voucher_button:"Uplatnit voucher",bonus_confirm:"KliknutĂm na tlaÄŤĂtko DobĂt kredit budete pĹ™esmÄ›rováni na platebnĂ bránu, kde si zvolĂte zpĹŻsob platby (kartou online, bankovnĂm pĹ™evodem,...)",increase:"DobĂt kredit",increase_info:"Dobijte si kredit a nakupujte jednĂm kliknutĂm"},proformainvoice:{headline:"ZálohovĂ© faktury",orders:"Objednávky",top_up:"DobĂjenĂ kreditu",type:{proforma:"Fio",gopay:"GoPay"},table:{regenerate:"PĹ™egenerovat",name:"JmĂ©no",email:"Email",number:"ÄŚĂslo",created_at:"Datum vytvoĹ™enĂ",status:"Stav",type:"Typ"},messages:{confirmed:"Objednávka potvrzena",regenerated:"Faktura pĹ™egenerovaná",error:"Chyba pĹ™i spracovánĂ objednávky"}},payment:{confirm:"Potvrdit platbu",to_pay:"UĹľ staÄŤĂ jenom zaplatit.",summary_in_email:"Souhrn a Ăşdaje k platbÄ› najdete takĂ© na e-mailu ",type:{how:"Jak budete platit?",choose:"Vyberte platebnĂ metodu",how_last:"Platit jako poslednÄ›?",text:"Po zaplacenĂ si materiály stáhnete pĹ™Ămo z UÄŤitelnice. AĹľ bude vše pĹ™ipraveno, dáme vám vÄ›dÄ›t na e-mail.",how_can_you_pay:"Vyberte variantu",payment_card:{title:"Kartou",text:"Materiály ke staĹľenĂ hned po zaplacenĂ",type:{payment_card:"PlatebnĂ karta",gpay:"Google pay",apple_pay:"Apple pay"}},bank_account:{title:"Online pĹ™evodem",text:"Materiály stáhnete hned po zaplacenĂ. Pokud tento zpĹŻsob platby vaše banka nepodporuje, vyberte klasickou platbu pĹ™evodem. KterĂ© banky to podporujĂ?"},online:"Zaplatit online",gateway:{repeat:{title:"Platba se nezdaĹ™ila nebo jste se rozhodli pro jinou platebnĂ metodu? Bez problĂ©mĹŻ zaplaĹĄte online kliknutĂm na tlaÄŤĂtko nĂĹľe."}},proforma:{title:"BankovnĂm pĹ™evodem (QR platba)",text:["VÄ›tšina plateb dorazĂ","okamĹľitÄ›",", ale mĹŻĹľe to trvat i jeden pracovnĂ den."],tooltip:"V internetovĂ©m nebo mobilnĂm bankovnictvĂ zvolte OkamĹľitou platbu a penĂze se na náš účet pĹ™ipĂšou hned, vÄŤetnÄ› vĂkendĹŻ a svátkĹŻ.",repeat:{title:"OkamĹľitá platba pĹ™evodem",text:"Jakmile budou penĂze na našem účtu, pošleme vám e-mail s intrukcemi ke staĹľenĂ materiálu."}},credit:{title:"Kreditem"}},expired:{title:"Odkaz jiĹľ nenĂ platnĂ˝, nechte si poslat novĂ˝",text:["Nechte si na váš e-mail","poslat novĂ˝. Z nÄ›j si pak stáhnete svĂ© materiály. Aby byl váš nákup v bezpeÄŤĂ, odkaz na staĹľenĂ má platnost 48 hodin."],resend:{title:"Odeslat materiály znovu na",failed:"Odkaz se nepodaĹ™ilo odeslat. Zkuste to prosĂm znovu."}},returned:"Platba byla vrácena",school_accounting_email:"Komu dalšĂmu chcete zaslat doklad?",back_to_cart:"ZpÄ›t do košĂku",submit_order:"DokonÄŤit objednávku",order_overview:{title:"Souhrn objednávky",voucher:"Poukaz",discount:"SlevovĂ˝ kĂłd",author_discounts:"AutorskĂ© slevy"},by_credit:"Zaplaceno z kreditu",success:{paid:["VĂ˝bornÄ›, máte zaplaceno! Vaše materiály jsou pĹ™ipravenĂ© ke staĹľenĂ. Najdete je takĂ© uloĹľenĂ© ve svĂ©m","účtu"],paid_guest:"VĂ˝bornÄ›, máte zaplaceno! Vaše materiály jsou pĹ™ipravenĂ© ke staĹľenĂ. Najdete je takĂ© ve svĂ©m e-mailu",thanks_download_registered_expired_link:"Vaše materiály jsou pĹ™ipraveny! Pro staĹľenĂ se prosĂm pĹ™ihlaste.",downloads_button:"K materiálĹŻm",summary:{download_all_products:"Stáhnout všechny materiály"},need_help:{title:"PotĹ™ebujete pomoct?",text:["Podivejte se na","ÄŚastĂ© dotazy.","Nenašli jste odpovÄ›d? OzvÄ›te se nám."]},join_community:{title:"MrknÄ›te na naši komunitu",text:"PĹ™idejte se do našà komunity autorĹŻ a uÄŤitelĹŻ. SdĂlejte nápady, hledejte inspiraci a podpoĹ™te ostatnĂ."},proforma:{title:"DÄ›kujeme za objednávku!",text:"Souhrn a Ăşdaje k platbÄ› najdete na e-mailu",instructions:{title:"OkamĹľitá platba pĹ™evodem",text:"Jakmile budou penĂze na našem účtu, pošleme vám e-mail s intrukcemi ke staĹľenĂ materiálu. Dejte pozor, abyste odeslali pĹ™esnou částku a nespletli variabilnĂ symbol. Vaši platbu bychom pak museli dohledat ruÄŤnÄ› a materiály budete mĂt pozdÄ›ji."}},credit_order:{title:"VĂ˝bornÄ›, máte zaplaceno!",text:"Souhrn najdete na e-mailu",button:"ZpÄ›t na hlavnĂ stránku"},account_number:"ÄŚĂslo účtu",variable_symbol:"VariabilnĂ symbol",amount_to_send:"Částka",qr_alt:"Platba QR kĂłdem"},guest:{email:"Na tento e-mail vám pošleme odkaz ke staĹľenĂ materiálĹŻ."},copy_payment_url:"KopĂrovat platebnĂ URL",copy_paid_url:"KopĂrovat URL souhrnu objednávky"},user:{unknown:"NeznámĂ˝ uĹľivatel",me:"Profil",id:"ID",user:"UĹľivatel",first_name:"JmĂ©no",last_name:"PĹ™ijmenĂ",address:"Adresa",city:"MÄ›sto",web:"Web stránka",psc:"PSÄŚ",country:"Stát",email:"E-mail",school:"Ĺ kola",verify:"OveriĹĄ",password:"Heslo",new_password:"NovĂ© heslo",password_confirmation:"PotvrzenĂ hesla",blocked_user:"Blokován",blocked_users:"BlokovanĂ uĹľivatelĂ©",non_blocked_user:"Neblokován",status:"Stav",authors_materials:"Materiály od autora",author:"Autor",make_user:"PonĂĹľiĹĄ zpÄ›t na uĹľivatele",add_commission:"NastavenĂ procent provize",commission_value:"Zadejte procento provize",commission:"Provize",transactions:"Platby",contractor:"Ăšdaje autora",conversation:"Konverzace",impersonation:"Impersonace",activity:"Aktivita",activate:{title:"Aktivace e-mailu uĹľivatele",text:"Opravdu chcete aktivovat e-mail uĹľivatele? UĹľivatel nepotvrdil, Ĺľe e-mail patřà skuteÄŤnÄ› jemu.",warning:{title:"VAROVĂNĂŤ: Aktivace e-mailu neregistrovanĂ©ho uĹľivatele",text:'UĹľivatel ještÄ› nebyl registrován a má roli "guest". AktivacĂ se uĹľivatel stane registrovanĂ˝m uĹľivatelem s rolĂ "user" bez nastavenĂ hesla. UĹľivatel se bude mĂt moĹľnost pĹ™ihlásit aĹľ po resetu hesla.'}},merge:{title:"PĹ™ipojenĂ uĹľivatele",warning:{title:"VAROVĂNĂŤ: PĹ™ipojenĂ neregistrovanĂ©ho uĹľivatele",text:"UĹľivatel ještÄ› nebyl registrován a zároveĹ nebylo potvrzeno, Ĺľe e-mail patřà skuteÄŤnÄ› jemu."}},register:"Registrovat",invoice_data:{title:"FakturaÄŤnĂ Ăşdaje",edited:"FakturaÄŤnĂ Ăşdaje byly upraveny",my_invoice_info:"Moje fakturaÄŤnĂ Ăşdaje"},account_selected:"VybranĂ˝ účet",make_invoice_data:"Vyplnte prosĂm fakturaÄŤnĂ Ăşdaje",next:"Dalšà poukaz",wish_materials:"Seznam přánĂ",unregistered:"NeregistrovanĂ",register_now:"Nemáte ještÄ› účet? Zaregistrujte se zde.",be_author:"Stát se autorem",became_author:"Stali jste se autorem",be_author_info:"NásledujĂcĂ Ăşdaje budou pouĹľity striktnÄ› pro účely automatizovanĂ©ho vystavovánĂ dokladĹŻ (generovánĂ faktur za prodanĂ© materiály) a následnĂ©ho zpracovánĂ vyúčtovánĂ. Na zpracovánĂ osobnĂch ĂşdajĹŻ se vztahujĂ stejná pravidla jako na všechny dalšà osobnĂ Ăşdaje na webu Ucitelnice.cz",images_source:"Napište prosĂm zdroj svĂ˝ch obrázkĹŻ (kreslĂm si sama/sám, z webu – konkrĂ©tnĂ stránka, ...)",how_to_use_commercial_images:"Jak na obrázky pro komerÄŤnĂ pouĹľitĂ?",my_profile:"MĹŻj profil",form:{credit:{goPay:"DobitĂ GoPay (KÄŤ)",payout:"DobitĂ vĂ˝platu (KÄŤ)",marketing:"DobitĂ marketing (KÄŤ)",other:"DobitĂ ostatnĂ (KÄŤ)",comment:"Komentář k pĹ™idáni kreditu",add:"DobĂt kredit"}},vat_payer:"Plátce DPH",account:{main:{title:"Hlavnà účet",text:"Hlavnà účet k tomuto účtu je",link:"PĹ™ejĂt na hlavnà účet"},merged:"Tento účet byl slouÄŤen",newly_connected:"NovÄ› pĹ™ipojenĂ˝ účet",additional:{connect:"PĹ™ipojit dalšà účet",connected:"Účet pĹ™ipojen"}},author_gender:{male:{nom:"autor",gen:"autora"},female:{nom:"autorka",gen:"autorky"}},credit:"Kredit",personal_credit:"OsobnĂ kredit",credits:"kreditĹŻ",add_credit:"DobĂt kredit",value_credit:"Zadejte částku k dobitĂ v KÄŤ min. 100 KÄŤ",add_value_credit:"DobitĂ libovolnĂ© částky pro pohodlnejšà přÚtĂ nákupy...",add_value_credit_short:"DobitĂ libovolnĂ© částky pro pohodlnejšà přÚtĂ nákupy...",value_credit_comment:"Komentář k pĹ™idáni kreditu",credit_other:"Kredit ostatnĂ",credit_goPay:"Kredit goPay",remove_credit:"Odebrat kredit",remove_value_credit:"Zadejte částku k odebránĂ v KÄŤ",remove_value_comment:"Komentář k odebránĂ kreditu",remove_value_credit_short:"OdebránĂ libovolnĂ© částky z kreditu ...",author_rating:"HodnocenĂ autora",author_sold_materials:"ProdejĹŻ celkem",user_overview:"PĹ™ehled",password_change:"ZmÄ›nit heslo",personal_settings_upper:"OSOBNĂŤ NASTAVENĂŤ",settings:"NastavenĂ profilu",bought_materials:"ZakoupenĂ© materiály",own_materials:"VystavenĂ© materiály",currency:"KÄŤ",account_amount:"AKTUĂLNĂŤ STAV ÚČTU",user_pays:"MOJE PLATBY",dashboard:"Dashboard",admin:"Administrator",all_materials:"Materiály",all_users:"UĹľivatelĂ©",all_authors:"AutoĹ™i",voucher_code:"Kod",voucher_amount:"Hodnota",authors:"AutoĹ™i",send_message:"Poslat zprávu",note:"Poznámka",commission_for_user:"OdmÄ›na pro autora",favourite_authors:"OblĂbenĂ autoĹ™i",number_of_products:"PoÄŤet produktĹŻ",no_favourite_users:"ŽádnĂ oblĂbenĂ autoĹ™i",unfavourite_all:"Zrušit sledovánĂ všech",verified_author:"OvěřenĂ˝ autor",search_by_email:"Vyhledejte uĹľivatele podle e-mailu",email_not_found:"UĹľivatel s danĂ˝m e-mailem nebyl nalezen",email_already_exists:"UĹľivatel s danĂ˝m e-mailem jiĹľ existuje",not_selected:"UĹľivatel nebyl zvolen",actions:{block:"Blokovat uĹľivatele",unblock:"Odblokovat uĹľivatele",verify:"NastaviĹĄ uĹľivatele jako ověřenĂ©ho",unverify:"NastaviĹĄ uĹľivatele jako neověřenĂ©ho",confirm:"Aktivovat uĹľivatele",reset_password:'Resetovat heslo na "ucitelnice"',are_you_sure:"SkuteÄŤne?"},messages:{confirmed:"UĹľivatel aktivován",reset_password:"Heslo bylo resetováno",password_change_success:"ZmÄ›na hesla byla Ăşspěšná",preferences_update_success:"Vaše zájmy byly uloĹľeny",invoice_info_update_success:"ZmÄ›na fakturaÄŤnĂch ĂşdajĂş byla Ăşspěšná",school_left:"Ĺ kola opuštÄ›na"},vop_accepted:"VOP akceptovány.",vop_already_accepted:"VOP byly jiĹľ dĹ™Ăve akceptovány.",menu:{invoices_orders:"Doklady a objednávky"},preferences:{headline:"Nastavte si vaše preference",text:"UÄŤitelnice se vám pĹ™izpĹŻsobĂ. Vyberte si svĂ© kombinace pĹ™edmÄ›tĹŻ a tĹ™Ăd.",button:"NASTAVIT PREFERENCE"},professional_focus:{edit_success:"Vaše zaměřenĂ bylo uloĹľeno",text:"Abychom vám mohli nabĂzet relevantnÄ›jšà materiály, vyberte prosĂm, kde uÄŤĂte (jaká oblast vás zajĂmá). DÄ›kujeme.",headline:"Vyberte svĂ© zaměřenĂ",save:"UloĹľit",options:{kindergarten:"MateĹ™ská škola",first_stage_elementary_school:"PrvnĂ stupeĹ ZĹ ",second_stage_elementary_school:"DruhĂ˝ stupeĹ ZĹ ",high_school:"StĹ™ednà škola"}},editor:{header:{image_sources:"Zdroje obrázkĹŻ"},info:{image_sources:["DodrĹľovánĂ autorskĂ˝ch práv je dĹŻleĹľitĂ©. UveÄŹte zdroj obrázkĹŻ (","s licencĂ pro komerÄŤnĂ pouĹľitĂ","), aĹĄ máme jistotu, Ĺľe je vše v pořádku."]},button:{save:"UloĹľit"},public_alias:{placeholder:"Název e-shopu",help_tooltip:"Pokud nemáte název, pouĹľijeme vaše jmĂ©no a pĹ™ĂjmenĂ."},image:{label:"VloĹľit profilovĂ˝ obrázek",too_big_error:"Obrázek je pĹ™Ăliš velikĂ˝. Maximálni velikost je 2MB.",error:"PĹ™i nahrávánĂ obrázku se vyskytla chyba."},preferences:{headline:"Vaše preference",text:"Preference urÄŤujĂ, jakĂ© druhy materiálĹŻ uvidĂte na hlavnĂ stránce po pĹ™ihlášenĂ. ZároveĹ mĹŻĹľete snadno filtrovat pĹ™i vyhledávánĂ v katalogu materiálĹŻ.",undefined:"Nemám preference",class:{headline:"JakĂ© je vaše zaměřenĂ?",label:"TĹ™Ăda",placeholder:"Vyberte tĹ™Ădu",empty:"Žádne tĹ™Ădy nenalezeny",options:{undefined:"Nemám preference",kindergarten:"MateĹ™ská škola",first_stage_elementary_school:"PrvnĂ stupeĹ ZĹ ",second_stage_elementary_school:"DruhĂ˝ stupeĹ ZĹ ",high_school:"StĹ™ednà škola"}},subject:{headline:"KterĂ© pĹ™edmÄ›ty vyuÄŤujete?",label:"PĹ™edmÄ›t",placeholder:"Vyberte pĹ™edmÄ›t",empty:"Žádne pĹ™edmÄ›ty nenalezeny",add:"PĹ™idat dalšà pĹ™edmÄ›t",remove:"Odebrat pĹ™edmÄ›t"},save:"UloĹľit preference",saved:"Preference uloĹľeny!",add:"PĹ™idat zájem",remove:"Odebrat zájem",previous_empty_error:"Pro pĹ™idánĂ dalšà kombinace je nutnĂ© vyplniĹĄ pĹ™edcházejĂcĂ kombinaci.",error_name_3_chars:"Je nutnĂ© aby Název stránek obsahoval nejmĂ©nÄ› 3 znaky"},image_sources:{title:"Seznam zdrojĹŻ",name:{label:"Zdroj",placeholder:"Odkud je obrázek?"},link:{label:"Odkaz",placeholder:"https://..."},add:"PĹ™idat zdroj",own_images:"PouĹľĂvám vlastnĂ autorskĂ© obrázky",error_nothing_selected:"Je nutnĂ© vyplnit nejmĂ©nÄ› jeden zdroj obrázkĹŻ nebo zvolit ' PouĹľĂvám vlastnĂ autorskĂ© obrázky ' "},invoice_ico:{label:"IÄŚO"},invoice_dic:{label:"DIÄŚ"},contractor_details:{ico:"IÄŚO",dic:"DIÄŚ",address:"Ulice, ÄŤĂslo popisnĂ©",city:"MÄ›sto",psc:"PSÄŚ",country:"Krajina",bank_account_number:"ÄŚĂslo bankovnĂho účtu",company:"JmĂ©no a pĹ™ĂjmenĂ",legal_person_text:"Text pro právnickou osobu"},success_message:"Profil ĂşspešnÄ› upraven."},news_for_author:"Aktuality",image_sources:"Zdroje obrázkĹŻ: ",own_images:"VlastnĂ autorskĂ© obrázky",has_no_images:"Neobsahuje obrázky",no_school:"Váš účet nenĂ pĹ™ipojen k žádnĂ©mu školnĂmu účtu.",guest:{register:{teaser:{headline:"Účet na UÄŤitelnici se vĹľdycky hodĂ",text_0:"MĹŻĹľete se ke svĂ˝m materiálĹŻm kdykoliv vrátit",text_1:"PohlĂdáme, Ĺľe nenakoupĂte materiál vĂcekrát",text_2:"UšetĹ™Ăte ÄŤas – UÄŤitelnice si bude pamatovat vaše preference i Ăşdaje"},create_account:"VytvoĹ™te si účet s emailem"}}},filter:{title:"Materiály na UÄŤitelnici",search:"Hledat v materiálech...",search_result:"VĂ˝sledky vyhledávánĂ pro:",degree_education:"RoÄŤnĂk",subject:"PĹ™edmÄ›t",format:"Typ materiálu",search_btn:"Vyhledat",clear:"Zrušit filtr",whole:{navbar:"Vyhledat celou kategorii",filter:"Vybrat celou kategorii"},specify:{navbar:"Kategorie",filter:"UpĹ™esnit"},subject_placeholder:"Zvolte pĹ™edmÄ›t",specify_title:"UpĹ™esnit vĂ˝bÄ›r",word_not_found:"ZadanĂ© slovo nenalezeno.",showed_text:"Zobrazeno {count} z {total} produktĹŻ od {authorsCount} autorĹŻ.",products_total:"Celkem {total} produktĹŻ.",shown_count_of_total_products:"Zobrazeno {count} z {total} produktĹŻ.",specify_class:"Pro upĹ™esnÄ›nĂ pĹ™edmÄ›tĹŻ zvolte konkrĂ©tnĂ stupeĹ vzdÄ›lánĂ",product:{found:{title:"NalezenĂ© materiály",count:"nalezenĂ˝ch materiálĹŻ"}},category:{product_missing:"ŽádnĂ˝ materiál ve vĂ˝bÄ›ru nemá tuto kategorii"},sort:{default:"DoporuÄŤenĂ©",approved_at:"NejnovÄ›jšĂ",month:"Top 30 dnĂ",week:"Top 7 dnĂ",most_downloaded:"NejstahovanÄ›jšĂ",discount_amount:"Nejvyššà sleva",recommended:"DoporuÄŤenĂ©"},preferences:{check:"Zapnout mĂ© preference"},placeholder:{text:"ZaÄŤnÄ›te psát...",select:"Vyberte si..."},choose:{type:"Vyberte typ...",category:"Vyberte kategorii...",section:"Vyberte sekci..."},homepage_search:{placeholder:"Hledejte uÄŤivo, tĂ©mata nebo tĹ™eba autory",search_products:"Vyhledat v materiálech",no_result:"Pro tenhle vĂ˝raz u nás zatĂm nic nemáme",search_history:"Naposledy hledanĂ©",remove_search_history:"Vymazat historii",blogs:"Blogy",author:"Autor",subjects:"PĹ™edmÄ›ty",themes:"TĂ©mata",kinds:"Typy materiálĹŻ",formats:"Formáty materiálĹŻ",holidays:"Svátky",curriculum:"UÄŤivo",popular:"UÄŤitelĂ© právÄ› nejÄŤastÄ›ji hledajĂ"},dashboard_search:{author:"Autor",product:"Materiál"}},massnotification:{editor:{headline:"HromadnĂ© zprávy pro uĹľivatele",contents:"Obsah",subject:"PĹ™edmÄ›t e-mailu",subject_placeholder:"PĹ™edmÄ›t zprávy v e-mailu",message_content:"Obsah zprávy",message_placeholder:"Obsah zprávy pro uĹľivatele",only_for_authors:"Odeslat jenom autorĹŻm",show_in_email:"Zobrazit obsah zprávy v e-mailu",cancel:"Zrušit zmÄ›ny",publish:"Odeslat",message_sent_success:"Zpráva byla odeslána.",validation:{subject_required:"PĹ™edmÄ›t je povinnĂ˝",content_required:"Obsah je povinnĂ˝"}}},login:{headline:"PĹ™ihlaste se",text:"Jste tady poprvĂ©?",register:"Registrujte se",login_register:"PĹ™ihlásit / VytvoĹ™it účet",form:{email:{label:"E-mail",placeholder:"Váš e-mail"},password:{label:"Vaše heslo",placeholder:"Vaše heslo"},forgot_password:"ZapomnÄ›li jste heslo?",stay_logged_in:"ZĹŻstat pĹ™ihlášenĂ˝",login:"PĹ™ihlásit se",or:"NEBO",login_facebook:"PĹ™ihlaste se pĹ™es Facebook"},success:"PĹ™ihlášenĂ bylo ĂşspěšnĂ©",activated:"Váš účet jiĹľ byl aktivován. MĹŻĹľete se pĹ™ihlásit.",not_activated:{headline:"Váš účet nenĂ aktivnĂ",text:["PodĂvejte se do svĂ© e-mailovĂ© schránky, kam jsme vám poslali odkaz k aktivaci účtu.","Nic vám nepĹ™išlo? Nechte si e-mail poslat znovu. ChvĂli poÄŤkejte, tĹ™eba se jen nÄ›kde zatoulal. Zkontrolujte takĂ© Spam sloĹľku.","Pořád nic? Napište nám na","a spoleÄŤnÄ› to vyĹ™ešĂme."],resend_link:"Zaslat e-mail znovu",cancel:"PokraÄŤovat bez pĹ™ihlášenĂ",messages:{sent:"Odkaz k aktivaci účtu znovu byl odeslán."}},verified:{title:"VĂ˝bornÄ›, účet máte aktivnĂ.",text:"PodĂvejte se na nejnovÄ›jšà materiály na UÄŤitelnici"},created:"VidĂme, Ĺľe účet uĹľ máte. PĹ™ihlaste se, aĹĄ máte všechny svĂ© materiály pohromadÄ›."},currency:{short:"KÄŤ"},authorstats:{headline:"Statistiky",table:{header:{date:"Datum",total:"CelkovĂ˝ pĹ™Ăjem",sells:"Prodeje",visitors:"NávštÄ›vy",conversion:"Konverze",total_to_pay:"OdmÄ›na"},footer:{sum:"Celkem"}},day:"PĹ™ĂrĹŻstek za vÄŤerejšà den",month:{select:"MÄ›sĂc",total_to_pay:"OdmÄ›na za tento mÄ›sĂc",sells:"Prodáno tento mÄ›sĂc",sells_change:"ZmÄ›na oproti minulĂ©mu mÄ›sĂci",sells_change_tooltip:"Procento udává pĹ™ĂrĹŻstek nebo pokles trĹľeb oproti stejnĂ©mu obdobĂ v minulĂ©m mÄ›sĂci.",visitors:"NávštÄ›vnĂkĹŻ tento mÄ›sĂc",conversion:"Konverze tento mÄ›sĂc"},product:{headline:"Jak si vede tento materiál?"},author:{headline:"Jak si vedete?"}},infobox:{types:{error:"Chyba",info:"InformativnĂ",new:"Novinka",warning:"VĂ˝straha"},editor:{flash:{edit_success:"Infobox upraven",create_success:"Infobox vytvoĹ™en",delete_success:"Infobox odstranen",showing:"Infobox se zobrazuje na webu.",hide:"Infobox se ĂşspěšnÄ› skryl."},validation:{title_required:"Nadpis je povinnĂ˝",title_max_length:"Nadpis mĹŻĹľe mĂt pouze 80 znakĹŻ",text_required:"Obsah je povinnĂ˝"},info_types:{error:"ChybovĂ˝ infobox se zobrazuje na všech stránkach a <b>nejde zavĹ™Ăt uĹľivatelem</b>.",info:"InformativnĂ infobox se zobrazuje <b>jen na hlavnĂ stránce</b> a jde zavĹ™Ăt uĹľivatelem.",new:"Infobox typu novinka se zobrazuje na všech stránkach a jde zavĹ™Ăt uĹľivatelem.",warning:"VĂ˝strahovĂ˝ infobox se zobrazuje na všech stránkach a jde zavĹ™Ăt uĹľivatelem."},headline:"Editace infoboxu",contents:"Obsah",infobox_type:"Typ infoboxu",title:"Nadpis",text:"Obsah boxu",link_title:"Text odkazu",link_href:"Odkaz",only_for_authors:"Zobrazovat jen autorĹŻm",infobox_showing:"Infobox je zobrazen",infobox_not_showing:"Infobox nenĂ zobrazen",save:"UloĹľit zmÄ›ny",cancel:"Zrušit zmÄ›ny",characters:"znakĹŻ",starts_at:{label:"Platnost od",placeholder:"AktuálnĂ ÄŤas"},ends_at:{label:"Platnost do",placeholder:"ManuálnĂ zrušenĂ"}}},review:{title:"Co o UÄŤitelnici Ĺ™ĂkajĂ zákaznĂci a autoĹ™i?",tabs:{all:"Všechny reference",author:"AutoĹ™i",customer:"ZákaznĂci"},role:{author:"Autor",customer:"ZákaznĂk",director:"Ĺeditel"}},category:{title:"Kategorie",choosen:"VybratĂ© kategorie",class:"StupeĹ vzdÄ›lánĂ",subject:"PĹ™edmÄ›t",subsubject:"PodpĹ™edmÄ›t",theme:"TĂ©ma",skill:"Dovednost",kind:"Typ materiálu",format:"Formát materiálu",holiday:"Svátek",kindergarten:"MateĹ™ská škola",headline:{class:"StupnÄ› vzdÄ›lánĂ",subject:"PĹ™edmÄ›ty",subsubject:"PodpĹ™edmÄ›ty",skill:"Dovednosti",theme:"TĂ©mata",kind:"Typy materiálu",format:"Formáty materiálu",holiday:"Svátky"},dropdown:{category:"Kategorie",class:"Stupne vzdÄ›lánĂ",subject:"PĹ™edmÄ›ty",theme:"TĂ©mata",kind:"Typy materiálĹŻ",format:"Formáty materiálĹŻ",holiday:"Svátky"},category:{subject:"Kategorie pĹ™edmÄ›tĹŻ"},subheadline:{class:"RoÄŤnĂky",subject:"PodpĹ™edmÄ›ty",theme:"PodtĂ©mata",kind:"Podtypy",format:"Podformáty",holiday:"Podsvátky"},empty:{class:"StupeĹ vzdÄ›lánĂ zatĂm nebol vytvoĹ™en",subject:"PĹ™edmet zatĂm nebyl vytvoĹ™en",theme:"TĂ©ma zatĂm nebylo vytvoĹ™eno",kind:"Typ materiálu zatĂm nebyl vytvoĹ™en",format:"Formát materiálu zatĂm nebyl vytvoĹ™en",holiday:"Svátek zatĂm nebyl vytvoĹ™en"},search:{class:"Vyhledejte stupeĹ...",subject:"Vyhledejte pĹ™edmÄ›t...",theme:"Vyhledejte tĂ©ma...",kind:"Vyhledejte typ...",format:"Vyhledejte format...",holiday:"Vyhledejte svátek..."},add:{button:{class_subject:"PĹ™idat pĹ™edmÄ›t",class_subsubject:"PĹ™idat podpĹ™edmÄ›t",class:"VytvoĹ™it stupeĹ",subject:"VytvoĹ™it pĹ™edmÄ›t",theme:"VytvoĹ™it tĂ©ma",kind:"VytvoĹ™it typ",format:"VytvoĹ™it format",holiday:"VytvoĹ™it svátek"},title:{class_subject:"PĹ™idánĂ pĹ™edmÄ›tu",class_subsubject:"PĹ™idánĂ podpĹ™edmÄ›tu",class_subject_category:"PĹ™idánĂ kategorie pĹ™edmÄ›tu",class:"VytvoĹ™enĂ stupnÄ›",subject:"VytvoĹ™enĂ pĹ™edmÄ›tu",theme:"VytvoĹ™enĂ tĂ©matu",kind:"VytvoĹ™enĂ typu",format:"VytvoĹ™enĂ formátu",holiday:"VytvoĹ™enĂ svátku"},input:{class:"Název stupnÄ›",subject:"Název pĹ™edmÄ›tu",theme:"Název tĂ©matu",kind:"Název typu",format:"Název formatu",holiday:"Název svátku"},select:{placeholder:"Vyberte pĹ™edmÄ›t..."}},choose:{class:"Zvolte stupeĹ",subject:"Zvolte pĹ™edmÄ›t",theme:"Zvolte tĂ©ma",kind:"Zvolte typ",format:"Zvolte formát",holiday:"Zvolte svátek"},subadd:{button:{class:"VytvoĹ™it roÄŤnĂk",subject:"VytvoĹ™it část",theme:"VytvoĹ™it podtĂ©ma",kind:"VytvoĹ™it podtyp",format:"VytvoĹ™it podformat",holiday:"VytvoĹ™it podsvátek"},input:{class:"Název roÄŤnĂku",subject:"Název části",theme:"Název podtĂ©matu",kind:"Název podtypu",format:"Název podformatu",holiday:"Název podsvátku"}},edit:{default:"Upravit kategorie",class:"Upravit stupeĹ",subject:"Upravit pĹ™edmÄ›t",theme:"Upravit tĂ©ma",kind:"Upravit typ",format:"Upravit format",name:"Upravit název",holiday:"Upravit svátek",disabled:"Kategorie jiĹľ byly zkontrolovány, v tuto chvĂli je tedy jiĹľ nelze upravovat."},update:{title:{class:"Ăšprava stupnÄ›",subject:"Ăšprava pĹ™edmÄ›tu",theme:"Ăšprava tĂ©matu",kind:"Ăšprava typu",format:"Ăšprava formatu",holiday:"Ăšprava svátku"}},subedit:{class:"Upravit roÄŤnĂk",subject:"Upravit část",theme:"Upravit podtĂ©ma",kind:"Upravit podtyp",format:"Upravit podformat",holiday:"Upravit podsvátek"},remove:{button:{class:"Smazat stupeĹ",subject:"Smazat pĹ™edmÄ›t",class_subject:"Odebrat pĹ™edmÄ›t",class_subsubject:"Odebrat podpĹ™edmÄ›t",theme:"Smazat tĂ©ma",kind:"Smazat typ",format:"Smazat format",holiday:"Smazat svátek"},title:{class:"SmazánĂ stupnÄ›",subject:"SmazánĂ pĹ™edmÄ›tu",class_subject:"OdebránĂ pĹ™edmÄ›tu",class_subsubject:"OdebránĂ podpĹ™edmÄ›tu",theme:"SmazánĂ tĂ©matu",kind:"SmazánĂ typu",format:"SmazánĂ formatu",holiday:"SmazánĂ svátku"},modal:{headline:{class:"Opravdu chcete smazat stupeĹ?",subject:"Opravdu chcete smazat pĹ™edmÄ›t?",class_subject:"Opravdu chcete odebrat pĹ™edmÄ›t?",class_subsubject:"Opravdu chcete odebrat podpĹ™edmÄ›t?",theme:"Opravdu chcete smazat tĂ©ma?",kind:"Opravdu chcete smazat typ?",format:"Opravdu chcete smazat format?",holiday:"Opravdu chcete smazat svátek?"},cancel:"Zrušit",confirm:{category:"Smazat",class_subject:"Odebrat"}}},subremove:{class:"Smazat roÄŤnĂk",subject:"Smazat část",class_subject:"Odebrat část",theme:"Smazat podtĂ©ma",kind:"Smazat podtyp",format:"Smazat podformat",holiday:"Smazat podsvátek"},confirm:"Potvrdit",cancel:"Zrušit",start_typing:"ZaÄŤnete psát...",message:{category:{add:"KategĂłrie byla vytvoĹ™ena.",remove:"Kategorie byla vymazána.",update:"Kategorie byla aktualizována."},class_subject:{add:"PĹ™edmÄ›t byl pĹ™idán ke kategorii.",remove:"PĹ™edmÄ›t byl odebrán z kategorie."}}},wishlist:{remove:"Odebrat z oblĂbenĂ˝ch"},author_product_group:{title:"Skupiny materiálĹŻ",text:"VytvoĹ™te skupiny materiálĹŻ a usnadnÄ›te svĂ˝m zákaznĂkĹŻm orientaci mezi vašimi materiály - aĹĄ uĹľ to bude podle tĂ©matu, roÄŤnĂku, vaše doporuÄŤenĂ nebo jinĂ˝ vĂ˝bÄ›r. Obrázek nahrajte v rozmÄ›ru 668 x 240 pixelĹŻ.",canva:"Ĺ ablona v CanvÄ›",settings:"NastavenĂ skupin",name:"Název skupiny",hidden:"SkrytĂ© skupiny",empty:"Žádná skupina",not_found:"Skupina nebyla nalezena",create:{button:"PĹ™idat skupinu",title:"VytvoĹ™eni skupiny materiálĹŻ",basic:"ZákladnĂ informace",image_upload:"Nahrajte náhledovĂ˝ obrázek skupiny",image_format:"DoporuÄŤenĂ˝ formát .png nebo .jpg. IdeálnĂ je rozmÄ›r 1500px Ă— 1500px",product:{name:"Název materiálu",choose:"Materiály",find:"NajĂt materiál"},message:"Skupina vytvoĹ™ena"},update:{title:"Ăšprava skupiny materiálĹŻ",message:"Skupina upravena"},hide:{message:"Skupina skryta",error_message:"Bylo dosaĹľeno maximálnĂho poÄŤtu zobrazenĂ˝ch skupin"},show:{message:"Skupina zobrazena"},delete:{title:"SmazánĂ skupiny materiálĹŻ",text:"Opravdu si pĹ™ejete smazat skupinu materiálĹŻ?",message:"Skupina smazána"},reorder:{message:"PoĹ™adĂ skupin aktualizováno"}},complaints:{complaints:"Reklamace",product:"Reklamujete",new_complaint:"Nová reklamace",send_new_complaint:"Odeslat",open_complaints:"AktuálnĂ reklamace",closed_complaints:"UkonÄŤenĂ© reklamace",closed_complaint:"UkonÄŤená reklamace",user:"ZákaznĂk",date:"Datum",open:"OtevĹ™Ăt",to_order:"Detail produktu",close_complaint:"UkonÄŤit reklamaci",report_complaint:"Reklamovat",text:"DĹŻvod:",bought_price:"Zaplacená suma za všechny licence:",created:"Reklamace byla vytvoĹ™ena.",in_complaint:"Reklamováno",updated:"Status aktualizován",accepted:"Reklamace byla akceptována a částka byla navrácena uĹľivateli formou kreditu.",rejected:"Reklamace byla zamĂtnuta",accept:"Akceptovat reklamaci a vrátit uĹľivateli kredit",reject:"ZamĂtnout reklamaci",comment:"Poznámka",customer:"ZákaznĂk",author:"Autor",name:"JmĂ©no",email:"E-mail",date_of_complaint:"Datum reklamace",reason_of_complaint:"DĹŻvod reklamace",state:"Stav reklamace",customer_note:"Poznámka zákaznĂka",product_price:"Cena produktu",product_created:"Materiál vytvoĹ™en",n_of_updates:"PoÄŤet aktualizacĂ",n_of_complaints:"PoÄŤet reklamacĂ produktu",notes_and_status:"Poznámky a status reklamace",add_note:"PĹ™idat poznámku",waiting_for:"ÄŚeká se na:",buttons:{reject:"ZamĂtnout reklamaci",return:"Vrátit kredit a odebrat materiál",fix:"Opravit",fix_credit_return:"Opravit a vrátit kredit",close:"UzavĹ™Ăt reklamaci"},message:{content:"Obsah zprávy",send:"Poslat zprávu",customer:{title:"Zpráva pro zákaznĂka",info:"Zpráva se zákaznĂkovi zobrazĂ v soukromĂ˝ch zprávách na UÄŤitelnici.",placeholder:"Obsah zprávy pro uĹľivatele"},author:{title:"Zpráva pro autora",info:"Zpráva se zobrazĂ v soukromĂ˝ch zprávách na UÄŤitelnici. ZákaznĂkovi zároveĹ pĹ™ijde informativnĂ e-mail, Ĺľe je reklamace v Ĺ™ešenĂ.",placeholder:"Obsah zprávy pro autora"}},note:{title:"Vaše poznámka k reklamaci",info:"Poznámka se zobrazuje jen administrátorĹŻm UÄŤitelnice. ZákaznĂk ani autor ji neuvidĂ.",placeholder:"Obsah poznámky",button:"PĹ™idat poznámku"},return_modal:{title:"Vrátit kredit a odebrat produkt",info:"Zpráva s odĹŻvodnÄ›nĂm strhnutĂ penÄ›z se odešle autorovi na e-mail.",placeholder:"PĹŻvodnĂ zpráva/poznámka od zákaznĂka - Kuba bude mĂt moĹľnost ji tady opravit.",button:"Vrátit kredit a odebrat produkt"},reject_modal:{title:"DĹŻvod zamĂtnutĂ",info:"UveÄŹte dĹŻvod zamĂtnutĂ reklamace. Tento dĹŻvod pĹ™ijde zákaznĂkovi na e-mail.",placeholder:"DĹŻvod zamĂtnutĂ reklamace",button:"ZamĂtnout reklamaci"},change_state_modal:{title:"ZmÄ›na stavu",info:"Volitelná poznámka k zmnÄ›nÄ› stavu.",text:"",placeholder:"Admin poznámka",button:"ZmÄ›nit stav"},create_modal:{title:{initial:"Co s materiálem nenĂ v pořádku?",more:"Ĺeknete nám vĂc?"},error:"PĹ™i vytvářenĂ reklamace se vyskytla chyba.",saved:"DÄ›kujeme za zpÄ›tnou vazbu, materiál co nejdĹ™Ăve zkontrolujeme.",text:"Chyby se stávajĂ. DÄ›kujeme, Ĺľe nám je pomáháte najĂt.",cancel:"Zrušit",continue:"PokraÄŤovat",submit:"Nahlásit materiál",label:"ProblĂ©m s materiálem",back:"ZpÄ›t",instructions:{error:"NĂĹľe prosĂm napište, jakou chybu jste našli. ÄŚĂm konkrĂ©tnÄ›ji, tĂm lĂ©pe. DĂky tomu mĹŻĹľe autor materiál vylepšit a chyby opravit. DÄ›kujeme.",incomplete:"Všechny materiály kontrolujeme, ale nÄ›kdy se pĹ™i nahrávánĂ stane chyba. Autor nahraje část materiálu nebo omylem jinĂ˝. Co konkrĂ©tnÄ› je špatnÄ› v tomto pĹ™ĂpadÄ›?",low_quality:"Kvalita je pro nás dĹŻleĹľitá a Vašeho feedbacku si vážĂme. Pokud s materiálem nejste spokojeni nebo jste ÄŤekali nÄ›co jinĂ©ho, napište nám prosĂm konkrĂ©tnĂ dĹŻvody a v pĹ™ĂpadÄ› uznánĂ Vám vrátĂme kredit..",technical_error:["Technická chyba mĹŻĹľe bĂ˝t zpĹŻsobena i nastavenĂm Vašeho poÄŤĂtaÄŤe a s materiálem je všechno v pořádku. NejÄŤastÄ›jšà pĹ™ĂÄŤiny mĹŻĹľete odstranit sami s pomocĂ našeho návodu.","Nejde mi otevĹ™Ăt soubor","ProblĂ©my se zobrazenĂm a tiskem PDF","Pokud problĂ©m pĹ™etrvává, napište nám prosĂm detaily. ÄŚĂm konkrĂ©tnÄ›ji problĂ©m popĂšete, tĂm lĂ©pe Vám budeme moct poradit."]},placeholder:{error:"NapĹ™.: Na stranÄ› 13 je chybnĂ˝ pĹ™Ăklad 1+2",incomplete:"NapĹ™.: V popisu je uvedeno 13 stran, ale soubor má pouze 4 stránky.",low_quality:"NapĹ™.: Podle popisu jsem ÄŤekal širšà moĹľnosti vyuĹľitĂ a lepšà grafickĂ© zpracovánĂ.",technical_error:"NapĹ™.: Mám Office365 a prezentace mi nejde otevĹ™Ăt. PĂše to tuto chybu: Aplikace Power point nemĹŻĹľe otevĹ™Ăt soubor, protoĹľe formát nebo pĹ™Ăpona nejsou platnĂ©."}},table:{reason:"DĹŻvody revize",state:"Stav"},detail:"Podrobnosti reklamace",send_message:"Poslat zprávu",status:["ÄŚeká na vyĹ™ĂzenĂ","ÄŚeká na autora","ÄŚeká na zákaznĂka","Uznáno"],types:{error:{short:"Chyba",long:"V materiálu je chyba"},incomplete:{short:"NekompletnĂ materiál",long:"Soubor je nekompletnĂ"},low_quality:{short:"NekvalitnĂ materiál",long:"Chci vrátit penĂze, soubor je nekvalitnĂ"},technical_error:{short:"Technická chyba",long:"Materiál nemĹŻĹľu pouĹľĂt (technická chyba)"}},states:{waiting_admin:"ÄŚeká na vyĹ™ĂzenĂ",waiting_customer:"ÄŚeká na zákaznĂka",waiting_author:"ÄŚeká na autora",rejected:"VyĹ™Ăzeno",accepted_returned:"Uznáno",accepted_to_fix_with_credit_return:"ÄŚeká na opravu (vrácen kredit)",accepted_to_fix:"ÄŚeká na opravu",accepted_fixed:"Opraveno"},customer_states:{waiting_admin:"ÄŚeká na vyĹ™ĂzenĂ",waiting_customer:"ÄŚekáme na Vaši reakci",waiting_author:"ÄŚeká na autora",rejected:"VyĹ™Ăzeno",accepted_returned:"Uznáno",accepted_to_fix_with_credit_return:"ÄŚeká na opravu (vrácen kredit)",accepted_to_fix:"ÄŚeká na opravu",accepted_fixed:"Opraveno"},author_states:{waiting_admin:"ÄŚeká na vyĹ™ĂzenĂ",waiting_customer:"ÄŚeká na zákaznĂka",waiting_author:"ÄŚeká na vás",rejected:"VyĹ™Ăzeno",accepted_returned:"Uznáno",accepted_to_fix:"ÄŚeká na opravu",accepted_to_fix_with_credit_return:"ÄŚeká na opravu",accepted_fixed:"Opraveno"},emails:{admin:{new:{subject:"PĹ™ijatá reklamace"}},customer:{author_notified:{subject:"Vaši reklamaci jsme pĹ™edali autorovi"},received:{subject:"Vaši reklamaci jsme pĹ™ijali"},rejected:{subject:"Vaši reklamaci jsme uzavĹ™eli"},returned:{subject:"Reklamaci jsme vyĹ™Ădili. VrátĂme Vám penĂze."},to_fix:{subject:"DÄ›kujeme za zpÄ›tnou vazbu. Materiál opravĂme."},to_fix_credit_return:{subject:"Reklamaci jsme vyĹ™Ădili. Materiál opravĂme a vrátĂme kredit."},notification:{subject:"Reklamaci Ĺ™ešĂme. PotĹ™ebujeme vĂce informacĂ."}},author:{returned:{subject:"ZákaznĂk vrátil materiál"},to_fix:{subject:"Opravte prosĂm chybu v reklamovanĂ©m materiálu"},to_fix_credit_return:{subject:"Opravte prosĂm chybu v reklamovanĂ©m materiálu"},to_fix_reminder:{subject:"Opravte prosĂm chybu v reklamovanĂ©m materiálu"},notification:{subject:"DoplĹte prosĂm informace k reklamaci"}},school:{returned:{subject:"VracĂme Vám kredit za reklamovanĂ˝ materiál."},to_fix_credit_return:{subject:"Reklamaci jsme vyĹ™Ădili. Materiál opravĂme a vrátĂme Vám penĂze."}}},logs:{prefix:{waiting_admin:"",waiting_customer:"Zpráva pro zákaznĂka:",waiting_author:"Zpráva pro autora:",rejected:"DĹŻvod zamĂtnutĂ:",accepted_returned:"Vrátit kredit a odebrat produkt.",accepted_to_fix:"Oprava chyby bez vrácenĂ penÄ›z.",accepted_to_fix_with_credit_return:"VrácenĂ penÄ›z a oprava chyby.",accepted_fixed:"",note:"Poznámka"}}},home:{headline:"VĂ˝uka, která bavĂ vás i vaše dÄ›ti",headline_logged:"VĂtejte zpÄ›t!",subheadline:"PrověřenĂ© materiály od stovek uÄŤitelĹŻ na jednom mĂstÄ›. Jen si vybrat.",tree:{cards:[{title:"MateĹ™ská škola",description:"kterĂ© vám pomohou s aktivitami pro dÄ›ti od třà do šesti let"},{title:"1. stupeĹ ZĹ ",description:"kterĂ© vám pomohou s vĂ˝ukou žákĹŻ od prvnĂ do pátĂ© tĹ™Ădy"},{title:"2. stupeĹ ZĹ ",description:"kterĂ© vám pomohou s vĂ˝ukou žákĹŻ od šestĂ© do devátĂ© tĹ™Ădy"},{title:"StĹ™ednà škola",description:"kterĂ© vám pomohou s vĂ˝ukou studentĹŻ od prvnĂho roÄŤnĂku do maturity"}],show_more:"MrknÄ›te na nÄ›"},author:{headline:["UÄŤitelĂ© pomáhajĂ uÄŤitelĹŻm.","Zapojte se a tvoĹ™te i vy."],description:"TrávĂte veÄŤery pĹ™Ăpravou na hodiny a v šuplĂku máte plno materiálĹŻ, kterĂ© jste vytvoĹ™ili? Nenechte je tam jen tak leĹľet. StaĹte se autorem, podÄ›lte se o nÄ› a ještÄ› si nÄ›co pĹ™ivydÄ›lejte.",show_more:"Jak se stát autorem?"},blog:{headline:"Tipy a nápady na vĂ˝uku, která nenudĂ",minutes:"{count} minut| {count} minut| {count} minuty| {count} minut",new:"NovĂ©",show_more:"Dalšà články"},preference:{top:{headline:"Nastavte si svĂ© preference",description:"StaÄŤĂ si jen vybrat, kterĂ© materiály vás zajĂmajĂ a pro jakĂ© roÄŤnĂky, a je to.",class:"TĹ™Ădy",subject:"PĹ™edmÄ›ty",link:"Vybrat jinĂ˝ pĹ™edmÄ›t",cancel:"ZpÄ›t",save:"UloĹľit vĂ˝bÄ›r"},bottom:{headline:["Upravte si UÄŤitelnici","podle sebe"],description:"TĹ™eba podle roÄŤnĂku nebo tĂ©mat, která vás zajĂmajĂ.",link:"PĹ™ejĂt do nastavenĂ"}},info:{headline:"UÄŤitelnice v kostce",blocks:[{headline:"KdyĹľ se Ĺ™ekne UÄŤitelnice...",description:"...vybavĂme si mĂsto, kde se potkávajĂ uÄŤitelĂ©, rodiÄŤe, autoĹ™i materiálĹŻ a všichni, kterĂ˝m nenĂ jedno, jak se dÄ›ti ve školách nebo doma vzdÄ›lávajĂ."},{headline:"ProÄŤ tu jsme?",description:"Doba je rychlá. Pomáháme uÄŤitelĹŻm zĹŻstat v obraze, reagovat na novinky vÄŤas a uvolnit si ruce od tvorby stále novĂ˝ch materiálĹŻ."},{headline:"Pomáháme školám",description:"K UÄŤitelnici se pĹ™ipojujĂ dalšà a dalšà školy, a z toho máme radost. VĂce škol totiĹľ znamená vĂce zapojenĂ˝ch uÄŤitelĹŻ a pestĹ™ejšà hodiny pro dÄ›ti."}]}},invoices:{title:"Doklady",headline:"FA karta & pĹ™evod",generating:"Doklad se generuje",table:{regenerate:"PĹ™egenerovat",name:"JmĂ©no",email:"Email",number:"ÄŚĂslo",from:"Od",to:"Do",amount:"Suma",created_at:"Datum vytvoĹ™enĂ",invoiced_at:"Datum vystavenĂ"},messages:{confirmed:"Objednávka potvrzena",regenerated:"Faktura pĹ™egenerovaná",error:"Chyba pĹ™i spracovánĂ objednávky",created:"Faktura vytvoĹ™ena",no_recent_sell:"V poslednĂm obdobĂ nebyl uskuteÄŤnÄ›n žádnĂ˝ nákup."},buttons:{create:"Vygenerovat fakturu"},archive_showe:"Ke staršĂm dokladĹŻm tudy",in_year:"Faktury za rok",pdf_missing:"Fakturu se nepovedlo stáhnout. Kontaktujte zákaznickou podporu."},voucher:{voucher:"DárkovĂ˝ poukaz",vouchers:"Poukazy",own:"Mám dárkovĂ˝ poukaz",headline:["Aby uÄŤitelĂ© na pĹ™Ăpravu nebyli sami.","Darujte jim poukaz na UÄŤitelnici."],text:"Vy vyberete hodnotu poukazu, a obdarovanĂ˝ pak sám vybere materiály, kterĂ© se mu zrovna hodĂ. ",choose:"O jakĂ˝ dárkovĂ˝ poukaz máte zájem?",aprox_for_3_products:"PĹ™ibliĹľnÄ› na 3 materiály",aprox_for_more_than_5_products:"PĹ™ibliĹľnÄ› na {count} materiálĹŻ",email:{headline:"Kam vám pošleme dárkovĂ˝ poukaz?",text:"Na e-mail vám pošleme návod na zaplacenĂ, potvrzenĂ i dárkovĂ˝ poukaz ve formátu PDF, kterĂ˝ mĹŻĹľete obdarovanĂ©mu jednoduše pĹ™eposlat nebo vytisknout.",label:"E-mail pro zaslánĂ poukazu"},choose_payment_type:"Vybrat platebnĂ metodu",payment:{choose:"Vyberte variantu",payment_card:{title:"PlatebnĂ karta",text:"PĹ™i platbÄ› kartou obdrĹľĂte poukaz na email hned po zaplacenĂ."},bank_account:{title:"OkamĹľitá platba pĹ™evodem",text:"DĂky okamĹľitĂ©mu pĹ™evodu obdrĹľĂte poukaz na email hned po zaplacenĂ. Pokud vaše banka tento zpĹŻsob platby nepodporuje, vyberte nĂĹľe klasickou platbu pĹ™evodem, která probÄ›hne do 2 pracovnĂch dnĹŻ."},proforma:{title:"Klasická platba pĹ™evodem (1-2 pracovnĂ dny)",text:"Poukaz vám pošleme hned, jakmile se platba pĹ™ipĂše na náš bankovnà účet."},submit:"Koupit dárkovĂ˝ poukaz"},promo:{headline:"DárkovĂ˝ poukaz:",items:{"1_year":"PlatĂ rok od zakoupenĂ",immediate:"Je moĹľnĂ© vyuĹľĂt okamĹľitÄ› po zaplacenĂ",for_credit:"K nakoupenĂ materiálĹŻ nebo kreditu"},alt_image:"Voucher promo obrázek"},success:{back_button:"ZpÄ›t na hlavnĂ stránku",gateway:{title:"VĂ˝bornÄ›, máte zaplaceno!",text:"DárkovĂ˝ poukaz najdete na e-mailu"},proforma:{title:"DÄ›kujeme za vaši objednávku!",text:"Souhrn a Ăşdaje k platbÄ› najdete na e-mailu",instructions:{title:"Pokyny k platbÄ› zálohovou fakturou",text:"Jakmile budou penĂze na našem účtu, pošleme e-mail s dárkovĂ˝m poukazem na zadanĂ˝ e-mail. Dejte pozor, abyste odeslali pĹ™esnou částku a nespletli variabilnĂ symbol. Vaši platbu bychom pak museli dohledat ruÄŤnÄ›."}}},new_code:"Vygenerovat novĂ˝ kĂłd",title:"DárkovĂ˝ poukaz",table:{valid:"Nákup/Expirace",code:"KĂłd",amount:"Částka/UplatnÄ›no",email:"Mail",note:"Poznámka"},manual_cancel:"ManuálnĂ zrušenĂ",now:"AktuálnĂ ÄŤas",create:{headline:"VytvoĹ™enĂ voucheru",type:"Typ",amount:"Hodnota v korunách",send_to:"Odeslat na mail (nepovinnĂ©)",note:"Poznámka (nepovinnĂ©)",valid_from:"PlatnĂ˝ od",valid_to:"PlatnĂ˝ do",cancel:"Zrušit",create:"VytvoĹ™it voucher",success:"Voucher byl vytvoĹ™enĂ˝",error:"Chyba pĹ™i vytvářenĂ voucheru",max_chars:" znakĹŻ",required:"Toto pole je povinnĂ©",error_amount:"Hodnota nenĂ vyplnÄ›na správnÄ›.",error_email:"Email je moc dlouhĂ˝.",error_valid_from:"PlatnĂ˝ od musĂ bĂ˝t pozdÄ›ji neĹľ dnešnĂ˝ datum."},cart:{title:"Máte dárkovĂ˝ poukaz?",apply:{text:"UplatnÄ›te ho pro nákup kreditĹŻ ",text_discount:"Pro uplatnÄ›nĂ dárkovĂ©ho voucheru kliknÄ›te",link:"ZDE"}},edit:{headline:"Editace",cancel:"Zrušit",remove:"Smazat voucher",submit:"UloĹľit zmÄ›ny",valid_to:"Expirace",success:"Voucher byl editován"},remove:{headline:"Opravdu chcete smazat voucher ",text:"Tato akce je nevratná. ZákaznĂk pĹ™ijde o voucher.",back:"ZpÄ›t",success:"Voucher byl smazanĂ˝"},generatePDF_success:"Faktura byla vygenerována",pdf:{expiration_text:"Platnost poukazu<br>do {date}",never:"bez konce"},invalid:"KĂłd nenĂ platnĂ˝",applied:"Poukaz byl uplatnÄ›n.",validation:{email:{required:"Zadejte prosĂm email, kam pošleme poukaz a informace o platbÄ›."}},buy:"Zakupte dárkovĂ˝ poukaz",buy_short:"Zakoupit poukaz",gift:{title:"VÄ›nujte dárkovĂ˝ poukaz",text:"Narozeniny, Vánoce, konec školnĂho roku? Nelámejte si hlavu nad vhodnĂ˝m dárkem, vyberte hodnotu poukazu a vĂ˝bÄ›r materiálĹŻ nechte na obdarovanĂ©m."},apply_code:{button:"VyuĹľĂt dárkovĂ˝ poukaz",label:"KĂłd",placeholder:"Zadejte kĂłd dárkovĂ©ho poukazu",submit:"VloĹľit"},apply:{title:"PouĹľĂt kĂłd",info:["DárkovĂ© poukazy sloužà k dobitĂ osobnĂho kreditu, za kterĂ˝ mĹŻĹľete následnÄ› nakoupit materiály.","VyplĹte pÄ›timĂstnĂ˝ kĂłd, kterĂ˝ najdete na svĂ©m dárkovĂ©m poukazu."]}},footer:{clean:{main_page:"HlavnĂ stránka",faq:"ÄŚastĂ© dotazy",for_authors:"Pro autory",about:"O nás"},main:{text:"O kousek lepšà hodiny pro žáky, o velkĂ˝ kus jednoduššà pĹ™Ăprava pro uÄŤitele.",cols:[{headline:"O uÄŤitelnici",items:["AutoĹ™i","O nás","Co o nás Ĺ™ĂkajĂ","Spolupráce","Kontakt"]},{headline:"Pro uÄŤitele",items:["ÄŚastĂ© otázky","Stát se autorem","Webináře","Blog","DárkovĂ© poukazy"]},{headline:"Pro školy",items:["Jak zaloĹľit školnà účet","ÄŚastĂ© otázky","BroĹľura pro školy","Manuál pro účetnĂ"]},{headline:"ObecnĂ© informace",items:["VšeobecnĂ© obchodnĂ podmĂnky","Jak nakládáme s osobnĂmi Ăşdaji"]}]},cooperation:{headline:"Spolupracujeme",images_alt:["Nadace Karla JaneÄŤka","Matemág","HodnotovĂ© vzdÄ›lávánĂ Cyril Mooney","Silou hlasu"]}},register:{headline:"VytvoĹ™te si účet",create:"VytvoĹ™it účet",text:"UĹľ máte svĹŻj účet?",login:"PĹ™ihlaste se.",form:{name_surname:{label:"Vaše jmĂ©no a pĹ™ĂjmenĂ",placeholder:"Vaše jmĂ©no a pĹ™ĂjmenĂ",will_be:"UloĹľenĂ© jmĂ©no a pĹ™ĂjmenĂ bude ve tvaru"},email:{label:"Váš e-mail",placeholder:"Váš e-mail"},password:{label:"Vaše heslo",placeholder:"Vaše heslo",placeholder_long:"Nastavte si heslo..."},register:"VytvoĹ™it účet"},success:"Registrace byla Ăşspěšná",thanks:{headline:"A jste s námi",text:{1:"V e-mailu uĹľ jen staÄŤĂ kliknout na odkaz pro potvrzenĂ registrace.",2:"Nic vám nepĹ™išlo? ChvĂli poÄŤkejte, nÄ›kdy to pár minut trvá. Zkontrolujte takĂ© Spam sloĹľku.",3:"Pořád nic? Napište nám na ",4:"a spoleÄŤne to vyĹ™ešĂme."},text_cart:{1:"Registrace je hotová. TeÄŹ mĹŻĹľete dokonÄŤit svĹŻj nákup.",2:"NezapomeĹte se podĂvat do svĂ© e-mailovĂ© schránky, kam jsme vám poslali odkaz k ativaci účtu. Na aktivaci máte 2 dny.",3:"Máte dotaz? Napište nám na ",4:" a spoleÄŤne to vyĹ™ešĂme."},login:"PĹ™ihlásit se",home:"Prozkoumat UÄŤitelnici",stay:"PokraÄŤovat",continue_shopping:"PokraÄŤovat v nákupu"}},about:{welcome:{headline:["Nebojte, nejste na to sami.","Máte UÄŤitelnici."],text:["I my vĂme, Ĺľe uÄŤitelstvĂ mĹŻĹľe bĂ˝t nÄ›kdy nároÄŤnĂ©, kdyĹľ se poĹľadavky na vĂ˝uku neustále zvyšujĂ. A proto tu je UÄŤitelnice - pomáhá uÄŤitelĹŻm drĹľet krok s nejnovÄ›jšĂmi trendy a uvolnit si ruce od nároÄŤnĂ© tvorby novĂ˝ch materiálĹŻ. PĹ™Ăprava na vĂ˝uku jednoduššà a hodiny zábavnÄ›jšà pro žáky.","PĹ™idejte se taky! AĹĄ uĹľ jako autor, uÄŤitel nebo tĹ™eba rodiÄŤ."]},founders:{headline:"UÄŤitelnici tvoĹ™Ăte hlavnÄ› vy. A tento tĂ˝m s tĂm pomáhá:",people:{jakub:{name:"Jakub",role:"Zakladatel",text:"Kapitán UÄŤitelnice, kterĂ˝ se stará o to, aby celá UÄŤitelnice šlapala jak má. Pod palcem má taky business a nutnou právniÄŤinu. "},miriam:{name:"Miriam",role:"Zakladatelka",text:"Odbornice na 1. stupeĹ a marketing v jednom. Stará se o vás na našich sociálnĂch sĂtĂch a poradĂ, jak vytvoĹ™it ty nejlepšà materiály, kterĂ© prodávajĂ."},sara:{name:"Sára",role:"Zákaznická podpora",text:"Pravá ruka našich zákaznĂkĹŻ, která se stará o jejich potĹ™eby a dotazy. DohlĂžà takĂ© na to, aby se na UÄŤitelnici objevily jen opravdu kvalitnĂ materiály."},anna:{name:"Anna",role:"Tvorba obsahu",text:"Stará se o naše newslettery, webináře a blog. ZaĹ™izuje obsah a koordinuje autory, aby bylo pořád co ÄŤĂst."},alice:{name:"Alice",role:"Ĺ kolnà účty",text:"Alice se stará o spolupráci se školami a dalšĂmi organizacemi. KromÄ› toho se kouká na naše data a snažà se z nich vyÄŤĂst, jak se UÄŤitelnici dařà a co vylepšit."},alena:{name:"Alena",text:"Dává UÄŤitelnici pĹ™ĂvÄ›tivou tvář."},radek:{name:"Radek",text:"Navrhuje UÄŤitelnici tak, aby se vám s nĂ dobĹ™e pracovalo."}},img_alt:"HázenĂ kloboukĹŻ",additional:{show:"Zobrazit dalšĂ",hide:"ZavĹ™Ăt",title:"Dalšà v našem tĂ˝mu",people:{filip:{name:"Filip",text:"VyvĂjĂ UÄŤitelnici tak, aby na ni byl 100% spoleh."},tomas:{name:"Tomáš",text:"VĂ˝vojář, kterĂ˝ se stará o to, aby vyhledávánĂ a nákup šel hladce."},peter:{name:"Peter",text:"VĂ˝vojář, kterĂ˝ má pod palcem školnà účty a vše pro autory."},lenka:{name:"Lenka",text:"PĂše texty na UÄŤitelnici tak, aby se vám pĹ™ĂjemnÄ› ÄŤetly."},vojta:{name:"Vojta",text:"KreslĂ všechny ilustrace, aby mÄ›la UÄŤitelnice duši."}}}},timeline:{headline:"Jak šel ÄŤas s UÄŤitelnicĂ",text:"Jak se promÄ›nil jeden nápad z roku 2018 v nejvyuĹľĂvanÄ›jšà stránku pro UÄŤitele v ÄŚesku.",items:[{date:"Leden 2017",title:"PrvnĂ nápad",text:"V lednu 2017 jsme si Ĺ™ekli, Ĺľe by bylo fajn pomoci ÄŤeskĂ˝m uÄŤitelĹŻm s sdĂlenĂm skvÄ›lĂ˝ch nápadĹŻ a dobrĂ© praxe z vĂ˝uky."},{date:"Leden 2018",title:"SpouštĂme UÄŤitelnici",text:"Po roce pĹ™Ăprav jsme v lednu 2018 spustili UÄŤitelnici s 300 materiály od 12 autorek."},{date:"Srpen 2019",title:"UÄŤitelnice na plnĂ˝ Ăşvazek",text:"BÄ›hem dalšĂch rokĹŻ jsme projekt rozvĂjeli ve volnĂ©m ÄŤase. S tĂm, jak materiálĹŻ pĹ™ibĂ˝valo, zaÄŤala nám práce pĹ™erĹŻstat pĹ™es hlavu. A tak se v srpnu 2019 Jakub rozhodl do toho skoÄŤit na plno."},{date:"Leden 2020",title:"UÄŤitelnice jako firma",text:"UÄŤitelnie dál rostla a zájem byla tak velkĂ˝, Ĺľe jsme se rozhodli vše zformalizovat a v lednu 2020 jsme zaloĹľili spoleÄŤnost UÄŤitelnice s.r.o."},{date:"Prosinec 2020",title:"1. webinář",text:["V prosinci 2020 jsme se rozhodli rozšĂĹ™it naši nabĂdku pro uÄŤitele a vysĂlali jsme prvnĂ webinář. Od tĂ© doby uĹľ probÄ›hlo na","15 webinářů","a to je teprve začátek."]},{date:"Prosinec 2021",title:"Ĺ kolnà účty",text:"O rok pozdÄ›ji spatĹ™ily svÄ›tlo svÄ›ta školnà účty. UÄŤitelĂ© jsou nadšenĂ z materiálĹŻ, ale ÄŤasto si je musĂ platit z vlastnĂ kapsy. Ĺ kolnà účty jsou tu pro školy, kterĂ© chtÄ›jĂ vyuĹľĂvat UÄŤitelnici ve velkĂ©m. Za prvnĂ dva roky se jich zapojilo pĹ™es 700 a ÄŤĂslo pořád stoupá."},{date:"ÄŚerven 2022",title:"50 pĹ™ĂspÄ›vkĹŻ na blogu",text:"Blogujeme! Od začátku chceme nabĂzet nejen materiály, ale i praktickĂ© tipy a inspiraci od ostatnĂch uÄŤitelĹŻ. V ÄŤervnu 2022 jsme pokoĹ™ili hranici 50 blogovĂ˝ch ÄŤlánkĹŻ s tipy, kterĂ© mĹŻĹľete hned aplikovat ve svĂ˝ch hodinách."},{date:"Prosinec 2022",title:"Stovky autorĹŻ",text:"V prosinci 2022 máme uĹľ vĂce neĹľ 400 autorĹŻ na UÄŤitelnici, kteřà svĂ© materiály nabĂzĂ i mimo ÄŚesko."},{date:"Rok 2022",title:"12 do tuctu",text:"UÄŤitelnici nedÄ›láme ve dvou lidech. PodaĹ™ilo se nám v poslednĂm roce rozšĂĹ™it tĂ˝m z poÄŤtu 6 lidĂ na souÄŤasnĂ˝ch 12. Je to jĂzda a těšĂme se na spoustu novinek a vylepšenou UÄŤitelnici po všech smÄ›rech."},{date:"Ăšnor 2023",title:"Nová UÄŤitelnice",text:"K 5. narozeninám UÄŤitelnice jsme spustili novĂ˝ web. PĹ™ehlednÄ›jšà a pĹ™ĂvÄ›tivÄ›jšà design domovskĂ© stránky, osobnĂ preference, pokroÄŤilĂ© vyhledávánĂ materiálĹŻ a nová struktura kategoriĂ."},{date:"ÄŚerven 2023",title:"E-shop pro autory",text:"IntenzivnÄ› jsme pracovali na autorskĂ˝ch e-shopech. NovĂ© funkce umoĹľnĂ autorkám a autorĹŻm lepšà prezentaci, snadnÄ›jšà sdĂlenĂ a pĹ™ehlednÄ›jšà nabĂdku vytvoĹ™enĂ˝ch materiálĹŻ."},{date:"ĹĂjen 2023",title:"RekordnĂ ÄŤĂsla",text:"V prĹŻmÄ›ru si cestu na UÄŤitelnici našlo kaĹľdĂ˝ den vĂce neĹľ 7 500 návštÄ›vnĂkĹŻ. ZároveĹ jsme dosáhli milnĂku 20 000 prodávanĂ˝ch materiálĹŻ. Z toho máme radost, ale vnĂmáme i velkou zodpovÄ›dnost. AĹĄ uĹľ v pĹ™ehlednosti nabĂdky, tak i v zachovánĂ kvality jednotlivĂ˝ch materiálĹŻ. Na schvalovánĂ si dáváme záleĹľet - ze všech nahranĂ˝ch materiálĹŻ se jich do prodeje dostane 68 %."},{date:"Prosinec 2023",title:"30 webinářů",text:"PoslednĂ letošnĂ webinář mÄ›l ÄŤĂslo 30. NovĂ© nápady a zdroje pro vĂ˝uku vám pĹ™edalo 14 lektorĹŻ, z nich 4 s ocenÄ›nĂm Global Teacher Prize. NejpopulárnÄ›jšà webinář z konce zářà vidÄ›lo pĹ™es 4 000 uÄŤitelĹŻ. Všechny záznamy najdete na našem youtube kanále."}]},stats:{materials:"prodanĂ˝ch materiálĹŻ",children:"dÄ›tĂ má dĂky UÄŤitelnici pestĹ™ejšà hodiny",schools:"zapojenĂ˝ch škol",authors:"AutorĹŻ na UÄŤitelnici",employees:"LidĂ v UÄŤitelnice tĂ˝mu",imgs_alt_text:"Palce nahoru"},reviews:{headline:"Reference lidĂ, co nás majĂ rádi"},additional_info:{headline:["VytvářĂme","prostor pro sdĂlenĂ materiálĹŻ"],text:["KaĹľdĂ˝ den uÄŤitelĂ© vyuĹľĂvajĂ svĂ© zkušenosti, odbornost a nápady, aby vytvoĹ™ili tisĂce materiálĹŻ, dĂky kterĂ˝m jsou jejich hodiny zajĂmavĂ©, zábavnĂ©, uĹľiteÄŤnĂ©, pĹ™ĂnosnĂ© a žáci z nich vytěžili maximum.","Tyto materiály ale ÄŤasto zapadnou do šuplĂkĹŻ a ostatnĂ uÄŤitelĂ© a žáci z nich nemajĂ uĹľitek.","Jak by ale mohlo ÄŤeskĂ© vzdÄ›lávánĂ vypadat, kdyby všichni uÄŤitelĂ© sdĂleli svĂ© skvÄ›lĂ© a osvÄ›dÄŤenĂ© nápady s ostatnĂmi kolegy?","Nadchla vás myšlenka UÄŤitelnice? PĹ™idejte se k nám"],buttons:{write_us:"Napište nám!",register:"Registrujte se"},ten:"Desatero UÄŤitelnice"}},cooperation:{headline:"Spolupracujeme",text:"UÄŤitelnici nedÄ›láme s klapkami na oÄŤĂch. Rádi si necháme poradit a ÄŤasto sdĂlĂme zkušenosti s tÄ›mi nejlepšĂmi v oboru. A toto jsou oni.",organizations:{headline:"SpoleÄŤnosti se kterĂ˝mi spolupracujeme",items:[{name:"321 dĂlna - Nadace LKJ",description:"PodnikatelskĂ©ho akcelerátoru “321 dĂlna”, kterĂ˝ vznikl pod záštitou Nadace Lilie & Karla JaneÄŤkovĂ˝ch jsme se zúčastnili poprvĂ© v roce 2017. TĂ˝mu NLKJ a komunitÄ› okolo nÄ›j vděčĂme za mnoho cennĂ˝ch rad, kterĂ© nám pomohly posunout UÄŤitelnici o mnoho krokĹŻ dál. PravidelnÄ› se takĂ© účastnĂme tematickĂ˝ch seminářů, na kterĂ˝ch ÄŤerpáme inspiraci pro dalšà podnikatelskĂ˝ rozvoj.",link:"https://321dilna.cz/"},{name:"Digikoalice",description:"DigitálnĂ gramotnost a schopnost pohybu v online prostĹ™edĂ povaĹľujeme za základ modernĂho vzdÄ›lávánĂ. To se pomocĂ UÄŤitelnici snaĹľĂme nabĂdnout dalšĂm uÄŤitelĹŻm. Bez neustálĂ©ho rozvoje vlastnĂch digitálnĂch dovednostĂ by náš projekt ani nemohl existovat. I proto jsme ÄŤleny Digikoalice, která vznikla pod záštitou MĹ MT.",link:"https://digikoalice.cz/"},{name:"Magic Education",description:"S Petrem nás spojuje nejen fakt, Ĺľe jsme spoleÄŤnÄ› absolvovali podnikatelskĂ˝ akcelerátor “321 dĂlna” od Nadace Lilie & Karla JaneÄŤkovĂ˝ch, ale zejmĂ©na snaha o to, udÄ›lat uÄŤenĂ zábavnÄ›jšà pro žáky i uÄŤitele. ZároveĹ vzájemnÄ› sdĂlĂme zkušenosti z vĂ˝voje vzdÄ›lávacĂch nástrojĹŻ pro uÄŤitele, tak aby se i samotnĂ uÄŤitelĂ© mohli neustále posouvat ve svĂ© práci. Petr stojĂ za aplikacĂ Matemág a aktuálnÄ› pracuje na projektu DVPP kurzy.",link:"http://magiceducation.cz/"},{name:"Orffova spoleÄŤnost",description:"ÄŚeská Orffova spoleÄŤnost pracuje s vĂ˝ukou hudby velmi unikátnĂm, tvoĹ™ivĂ˝m zpĹŻsobem. Spojuje nás snaha o inovativnĂ a neotĹ™elĂ˝ pĹ™Ăstup ke vzdÄ›lávánĂ. Na našich webinářĂch jste mÄ›li moĹľnost se s jejich originálnĂmi vĂ˝ukovĂ˝mi metodami seznámit dĂky JiĹ™inÄ› JiĹ™iÄŤkovĂ© a Lence PobudovĂ©. Pokud jste webináře s lektorkami z ÄŚeskĂ© Orffovy spoleÄŤnosti promeškali, mĹŻĹľete se na nÄ› podĂvat zde a zde. Materiály jednĂ© z lektorek, Lenky PobudovĂ©, si dokonce mĹŻĹľete zakoupit i u nás na UÄŤitelnici.",link:"http://www.orff.cz/"},{name:"HodnotovĂ© vzdÄ›lávánĂ Cyril Mooney",description:"Podporujeme koncept hodnotovĂ©ho vzdÄ›lávánĂ, kterĂ© stavĂ na prvnĂ mĂsto budovánĂ zdravĂ˝ch mezilidskĂ˝ch vztahĹŻ. I proto jsme se spoleÄŤnÄ› rádi stali partnery happeningu #JSEMLASKAVEC, pořádanĂ©ho NadacĂ Lilie & Karla JaneÄŤkovĂ˝ch, kterĂ˝ motivuje školáky ke konánĂ dobrĂ˝ch skutkĹŻ. Materiály zakladatelky konceptu hodnotovĂ©ho vzdÄ›lávánĂ, Lindy JandejskovĂ©, naleznete i u nás na UÄŤitelnici.",link:"https://hvcm.cz/"},{name:"UÄŤĂme se venku",description:"UÄŤĂme se venku je iniciativou, která si klade za cĂl dostat dÄ›ti pĹ™i uÄŤenĂ vĂce ven, mimo budovu školy. Ĺ Ăřà myšlenku, Ĺľe uÄŤenĂ venku je pro dÄ›ti normálnĂ a pĹ™ĂnosnĂ©. PomocĂ propracovanĂ˝ch metodik, seminářů a online kurzĹŻ pomáhajĂ zájemcĹŻm hledat cesty, jak s dÄ›tmi uÄŤenĂ venku realizovat. KlĂÄŤovĂ ÄŤlenovĂ© tĂ˝mu UÄŤĂme se venku – Martin KĹ™ĂĹľ a Justina Danišová byli lektory jednoho z našich probÄ›hlĂ˝ch webinářů."},{name:"TEREZA, vzdÄ›lávacĂ centrum",description:"Organizace, která vytvářà vzdÄ›lávacĂ programy pro uÄŤitele a rodiÄŤe se zaměřenĂm na aktivnĂ pĂ©ÄŤi o ĹľivotnĂ prostĹ™edĂ. UsilujĂ o to, aby se dÄ›ti uÄŤily o pĹ™ĂrodÄ› a skuteÄŤnĂ©m svÄ›tÄ› vlastnĂm proĹľitkem, bádánĂm a realizacĂ svĂ˝ch projektĹŻ. V programech Ekoškola, BadatelĂ© a Les ve škole se vzdÄ›lává pĹ™es 200 00 dÄ›tĂ na vĂce neĹľ tisĂcovce škol."},{name:"ALBI",description:"Albi nabĂzĂ vzdÄ›lávacĂ program pro školy s názvem Ĺ kola s hrou. Ten podporuje pedagogy a nabĂzĂ aktivnĂ vyuĹľitĂ her, zážitkĹŻ a interaktivnĂch pomĹŻcek v mateĹ™skĂ˝ch, základnĂch a stĹ™ednĂch školách a smysluplnou zábavu pro dÄ›ti ve volnĂ©m ÄŤase. TĂ˝m Ĺ kola s hrou tvořà k Albi hrám takĂ© kompletnĂ metodickou podporu pro pedagogy dle RVP.",link:"https://www.skolashrou.cz/"}]},individuals:{headline:"Jednotlivci se kterĂ˝mi spolupracujeme",items:[{name:"PhDr. Petra Vallin",description:"Petra byla prvnĂ hostujĂcĂ lektorkou našich tolik oblĂbenĂ˝ch webinářů. Sama o sobÄ› Ĺ™Ăká, Ĺľe se ráda vÄ›nuje vĂce projektĹŻm najednou, ale nejvĂce ÄŤasu vÄ›nuje lektorovánĂ uÄŤitelĹŻ, jak uÄŤit modernĂmi zpĹŻsoby. Je prĹŻkopnicĂ metody CLIL v ÄŚeskĂ© republice. Ta spoÄŤĂvá v integraci vĂ˝uky uÄŤiva jak danĂ©ho pĹ™edmÄ›tu, tak i cizĂho jazyka. DocházĂ tak pĹ™irozenÄ› k propojenĂ jazykovĂ© vĂ˝uky a vyuÄŤovanĂ©ho pĹ™edmÄ›tu.",link:"https://www.petravallin.cz/"},{name:"Mgr. Magdalena Málková",description:"Magda patřà mezi jedny z prvnĂch autorek, nabĂzejĂcĂch u nás svoje materiály. Je pravidelnou lektorkou našich webinářů, ale hlavnÄ› je naprosto skvÄ›lou uÄŤitelkou, která byla dokonce v roce 2022 ocenÄ›na v anketÄ› Global Teacher Prize. Je takĂ© ÄŤlenkou správnĂ rady HejnĂ©ho metody.",link:"https://www.youtube.com/watch?v=O6JVeseVbaQ&ab_channel=EDUin"},{name:"prof. PhDr. Jan Hábl, Ph.D.",description:"Jan svou pracovnĂ ÄŤinnost zaměřuje zejmĂ©na na problematiku etiky, formovánĂ lidskĂ©ho charakteru a historii vzdÄ›lávánĂ, pĹ™edevšĂm v souvislosti se studiem dĂla J. A. KomenskĂ©ho a jeho odkazu. KomenskĂ©ho myšlenky se snažà propojovat se souÄŤasnĂ˝m pojetĂm dobra, lidskosti a etiky. Byl u nás lektorem dvoudĂlnĂ©ho webináře vÄ›novanĂ©mu právÄ› odkazu J. A. KomenskĂ©ho pro dnešnà školstvĂ.",link:"https://www.uhk.cz/cs/osoba/1526/jan-habl"},{name:"Mgr. Marcela PĹ™ibylová",description:"Marcela je nadšenou uÄŤitelkou, která ráda zkoušà novĂ© metody a aktivity tak, aby dÄ›ti motivovala ke vzdÄ›lávánĂ. Specializuje se zejmĂ©na, ale rozhodnÄ› ne vĂ˝hradnÄ›, na hudebnĂ vĂ˝chovu. VÄ›nuje se takĂ© lektorovánĂ inspirativnĂch seminářů a webinářů pro pedagogy. Na UÄŤitelnici mĹŻĹľete nalĂ©zt jak jejĂ materiály, tak zpÄ›tnÄ› zhlĂ©dnout jejĂ webináře, zaměřenĂ© na integrovanou tematickou vĂ˝uku a vĂ˝uku novĂ© informatiky pro 1. stupeĹ.",link:"https://www.youtube.com/watch?v=UCLpgFjhwbM&ab_channel=EDUin"},{name:"Mgr. Ivana Hrubá Eliášová",description:"Ivana je aktivnĂ a podnikavou uÄŤitelkou na volnĂ© noze, která ráda vyuĹľĂvá modernĂch technologiĂ, protoĹľe věřĂ, Ĺľe jsou nejen nezbytnostĂ pĹ™i vĂ˝uce, ale uÄŤitelĹŻm zároveŠšetřà drahocennĂ˝ ÄŤas. Základem pro ni je, aby uÄŤenĂ zaujalo žáka, ale bavilo i uÄŤitele. Je aktivnĂ autorkou materiálĹŻ na UÄŤitelnici, vidÄ›t jste ji mohli zároveĹ na jednom z našich webinářů.",link:"http://interaktivka.cz/ivana-hruba-eliasova"},{name:"Mgr. Lenka Pobudová",description:"Lenky specializacĂ je hudebnĂ vĂ˝chova a ÄŤeskĂ˝ jazyk. Je lektorkou Orffovy spoleÄŤnosti, která pracuje s pracuje s vĂ˝ukou hudby velmi unikátnĂm, tvoĹ™ivĂ˝m zpĹŻsobem. Je takĂ© autorkou webu Jak na hudebku, jejĂ materiály mĹŻĹľete nalĂ©zt samozĹ™ejmÄ› i u nás na UÄŤitelnici. JejĂ pĹ™Ăstup k uÄŤenĂ hudebnĂ vĂ˝chovy jste mÄ›li moĹľnost poznat u nás na webináři Jak na hudebku na 2. stupni."},{name:"Mgr. JiĹ™ina JiĹ™iÄŤková",description:"JiĹ™ina je lektorkou ÄŚeskĂ© Orffovy spoleÄŤnosti, vede zážitkovĂ© hudebnĂ workshopy pro dÄ›ti, ale i pro uÄŤitele. Ve svĂ© vĂ˝uce aplikuje ÄŤinnostnĂ, komplexnĂ a zážitkovĂ˝ pĹ™Ăstup k hudebnĂ vĂ˝chovÄ›. Byla lektorkou jednĂm z našich webinářů zaměřenĂ˝ch právÄ› na vĂ˝uku hudebnĂ vĂ˝chovy."},{name:"Roman Göttlicher",description:"Roman je vĂtÄ›zem Global Teacher Prize z roku 2023. UÄŤĂ na stĹ™ednĂ odbornĂ© škole ve FrĂ˝dku-MĂstku obÄŤanskou vĂ˝chovu a dÄ›jepis. Ve svĂ©m pĹ™Ăstupu rád vyuĹľĂvá badatelskĂ˝ styl vĂ˝uky, právÄ› na toto tĂ©ma byl zaměřenĂ˝ i webinář na UÄŤitelnici, kterĂ˝ Roman vedl."},{name:"Eva Ĺ idelková",description:"Eva je nadšenou uÄŤitelkou ÄŤeštiny a dÄ›jepisu na malĂ© venkovskĂ© škole a velice oblĂbenou autorkou na UÄŤitelnici. V jejĂch materiálech najdete kartiÄŤky, stolnĂ hry, vše kolem ÄŤtenářstvĂ a práce s textem. Byla u nás takĂ© lektorkou velice ĂşspěšnĂ©ho webináře zaměřenĂ©ho na motivaci žákĹŻ na 2. stupni k ÄŤetbÄ›."},{name:"Tereza VĂtková",description:"Terezku mnoho z vás zná urÄŤitÄ› jako PanÄŤelku na cestách. Terezka je jednou z našich nejpopulárnÄ›jšĂch autorek, a takĂ© lektorkou nÄ›kolika webinářů na UÄŤitelnici na rozmanitá tĂ©mata. UÄŤĂ primárnÄ› informatiku, ráda vyuĹľĂvá projektovou vĂ˝uku a pĹ™i svĂ© vĂ˝uce se snažà dÄ›ti vĂ©st hlavnÄ› ke spolupráci. JejĂm mottem je, Ĺľe neuÄŤĂ pĹ™edmÄ›ty, ale dÄ›ti. Je takĂ© iniciátorkou velmi populárnĂho adventnĂho kalendáře na UÄŤitelnici, kde zákaznĂci najdou kaĹľdĂ˝ den ke staĹľenĂ zdarma jeden materiál od nÄ›jakĂ©ho z oblĂbenĂ˝ch autorĹŻ právÄ› z UÄŤitelnice."}]},support:{headline:"Podporujeme",items:[{name:"Silou Hlasu",description:"Dita (zakladatelka spolku Silou hlasu) s Jakubem (spoluzakladatel UÄŤitelnice) chodili do stejnĂ© základnà školy, o kterĂ© oba shodnÄ› prohlašujĂ, Ĺľe v nich vybudovala velmi pozitivnĂ vztah ke vzdÄ›lávánĂ. Spojuje nás snaha pomáhat ostatnĂm lidem právÄ› skrze vzdÄ›lávánĂ.",link:"https://silouhlasu.cz/"},{name:"Den pro školu",description:"Den pro školu je skvÄ›lá iniciativa, kterou má pod palcem Nadace ÄŚeskĂ© spoĹ™itelny. Snažà se spojit uÄŤitele s dobrovolnĂky z rĹŻznĂ˝ch profesĂ. S myšlenkou inovativnĂho a praktickĂ©ho projektu souznĂme a rádi doporuÄŤujeme dále.",link:"https://www.denproskolu.cz/"}]},school:{headline:"Ĺ koly se kterĂ˝mi spolupracujeme",items:[{name:"ZĹ Eduard",description:"ZĹ Eduard je malá rodinná škola, která svou vĂ˝uku obohacuje o prvky alternativnĂch škol. AktivnÄ› vyuĹľĂvajĂ naše materiály a dÄ›ti pĹ™i vzdÄ›lávánĂ vedou k zodpovÄ›dnosti, spolupráci a vlastnĂm názorĹŻm. Do běžnĂ©ho chodu se snažà v maximálnĂ mĂĹ™e zapojovat i rodiÄŤe a nabĂzejĂ dÄ›tem i mnoho volnoÄŤasovĂ˝ch aktivit."},{name:"ZĹ Pavlišovská",description:"Jedná se o základnà školu, do kterĂ© chodili Jakub a Miriam. Na skvÄ›lou tamÄ›jšà panĂ Ĺ™editelku oba vzpomĂnajĂ jako na ÄŤlovÄ›ka, kterĂ˝ zásadnÄ› ovlivnil jejich pohled na vzdÄ›lávánĂ, a tĂm i jejich budoucĂ pracovnĂ dráhu. Je tak stěžejnĂ i pro samotnĂ˝ vznik UÄŤitelnice. Oba s vedenĂm školy zĹŻstávajĂ v aktivnĂm kontaktu a vnĂmajĂ ji jako vzor modernà školy. Nebude tedy pĹ™Ăliš pĹ™ekvapivĂ©, Ĺľe ZĹ Pavlišovská patřà mezi skalnĂ uĹľivatele UÄŤitelnice."}]}},section:{title:"Sekce",messages:{created:"Sekce vytvoĹ™ena",deleted:"Sekce smazána",updated:"Sekce aktualizována",reorder:"PoĹ™adĂ aktualizováno",attached:"Materiál pĹ™idán",detached:"Materiál odebrán",activated:"Sekce zobrazena",deactivated:"Sekce skryta",already_present:"Materiál je jiĹľ v sekci",not_present:"Product v sekci nenĂ"},card:{show:"Zobrazit",show_more:"Zobrazit dalšà materiály v kategorii"},show_more:"Dalšà materiály ({count})",show_more_without_count:"Dalšà materiály",favourite_authors_show_more:"Zobrazit {count} materiálĹŻ od oblĂbenĂ˝ch autorĹŻ",favourite_authors_show_more_all:"Zobrazit všechny materiály od oblĂbenĂ˝ch autorĹŻ",materials_show_more:"Zobrazit všech {count} materiálĹŻ",card_validation_error:"Pred pĹ™idanĂm dalšà karty vyplĹte všechny Ăşdaje.",image_upload_after_created:"Obrázky lze nahrát aĹľ po vytvoĹ™enĂ sekce."},product_rating:{modal:{heading:"HodnocenĂ materiálu",instructions:"ÄŚeho si na materiálu cenĂte?"},cancel:"Zrušit",submit:"Hodnotit",button:{rate:"Hodnotit",rated:"Hodnoceno"},allowed_values:{original_idea:"OriginálnĂ nápad",beautifully_made:"KrásnÄ› zpracováno",children_love_it:"DÄ›ti to milujĂ",no_preparation_needed:"Lze vyuĹľĂt ihned bez pĹ™Ăpravy",good_value:"SkvÄ›lá hodnota za danĂ© penĂze",contains_practical_tips:"PraktickĂ© tipy, jak materiál pouĹľĂt",use_very_ofter:"VyuĹľĂvám velmi ÄŤasto",quality_methodical_description:"KvalitnÄ› popsaná metodika"},validation:{already_rated:"Tenhle produkt jste jiĹľ jednou hodnotili."},stored:"HodnocenĂ uloĹľeno.",detail:{title:"Co o materiálu Ĺ™ĂkajĂ ostatnĂ?",how_do_you_like_it:{title:"Jak se produkt lĂbĂ vám?",subtitle:"Dejte ostatnĂm vÄ›det, co si o produktu myslĂte.",button:"PĹ™idat hodnocenĂ"}},email_invitation:{thanks:"HodnocenĂ uloĹľeno. DÄ›kujeme.",all_already_rated:"VybranĂ© materiály jiĹľ byli hodnoceny.",see_other_materials:"ProhlĂ©dnout jinĂ© materiály",rate_all_bought_materials:"Hodnotit všechny materiály"}},administration:{sidebar:{items:["Materiály","UĹľivatelĂ©","Ĺ koly","Správa obsahu","Finance","Zprávy"],footer:{blog:"Blog",ucitelnice:"Web UÄŤitelnice"}},close:"ZavĹ™Ăt",cancel:"Zrušit",save:"UloĹľit",back:"ZpÄ›t",add:"PĹ™idat",confirm:"Potvrdit",remove:"Odebrat",delete:"Smazat",restore:"Obnovit",show:"Zobrazit",show_preview:"Zobrazit náhled",hide:"SkrĂ˝t",edit:"Upravit",update:"Upravit",update_image:"Upravit obrázek",confirm_send:"Potvrdit a odeslat",cancel_filter:"ZrušiĹĄ filtr",text:"Text",create:"VytvoĹ™it",copy:"KopĂrovat",not_filled:"Nezadáno",not_found:"Stránka nebyla nalezena",invoice_deleted:"SmazanĂ©",male:"MuĹľ",female:"Ĺ˝ena",paid:"Vyplaceno",comment:{title:"Komentář",updated:"Komentář byl upraven",show_full:"Zobrazit celĂ˝ komentář",hide_full:"SkrĂ˝t celĂ˝ komentář"},dashboard:{search:{title:"VyhledávánĂ",placeholder:"Vyhledej jmĂ©no, ÄŤĂslo dokladu, materiál"},products:{title:"Materiály",text:"materiálĹŻ",daily_increase:{title:"DennĂ pĹ™ĂrĹŻstek",week_diff:"zmÄ›na oproti minulĂ©mu tĂ˝dnu"},to_inspect:{title:"Kontrola materiálĹŻ",approvals:"materiálĹŻ ke schválenĂ",revisions:"materiálĹŻ v revizi"},to_actualize:{title:"K aktualizaci",show_more:"Zobrazit vĂce"},complaints:{title:"Reklamace",new:"novĂ˝ch reklamacĂ",open:"otevĹ™enĂ˝ch reklamacĂ"}},sells:{title:"Statistiky prodeje",daily:{title:"DennĂ trĹľby",week_diff:"zmÄ›na oproti minulĂ©mu tĂ˝dnu"},school:{title:"TrĹľby škol",credit_pay:"platba kreditem",order_pay:"platba objednávky",week_diff:"zmÄ›na oproti minulĂ©mu tĂ˝dnu"},cashflow:{title:"Cashflow",recharged:"DobitĂ˝ kredit",spent:"UtracenĂ˝ kredit"}},users:{title:"UĹľivatelĂ©",new:{title:"NovĂ uĹľĂvatelĂ©",week_diff:"zmÄ›na oproti minulĂ©mu tĂ˝dnu"}}},product:{title:"Materiály",sells:{today:"ProdanĂ˝ch materiálĹŻ dnes",total:"ProdanĂ˝ch materiálĹŻ celkem",various:"ProdanĂ˝ch rĹŻznĂ˝ch materiálĹŻ",new_authors:"Prodeje od novĂ˝ch autorĹŻ"},tab:{all:"Všechny materiály",complaints:"Reklamace",updates:"Aktualizace"},search:{placeholder:"Vyhledejte materiál, autora...",control_mode:"MĂłd kontroly",filter:"Filtr"},date:{placeholder:"Datum nahránĂ"},filter:{state:{title:"Stav",option:{approved:"Schváleno",review_the_fix:"Opraveno",disapproved:"ZamĂtnuto",review:"V revizi",deleted:"Smazáno",wait_for_approve:"ÄŚeká na schválenĂ",pending:"ÄŚeká",notpending:"OstatnĂ",draft:"Draft",unknown:"NeznámĂ˝ stav",no_files:"Soubor nenahrán",not_for_sale:"Neprodává se"}},tags:{title:"Tagy",options:{only_on_ucitelnice:"Pouze na UÄŤitelnici"}}},table:{header:{id:"Id",product:"Materiál",author:"Autor",customer:"ZákaznĂk",price:"Cena",sold:"Prodáno",date:"Datum",state:"Stav",reason:"DĹŻvod",sells:"Prodeje",update_reason:"DĹŻvod aktualizace"},item:{upload:"Nahráno:",author:{copy_email:"KopĂrovat email",show:"Zobrazit",write_message:"Napsat zprávu"}},not_found:{all:"Materiál nebyl nalezen",complaints:"Reklamace nebyla nalezena",updates:"Aktualizace nebyla nalezena"}},detail:{header:{title:"Detail materiálu",download:"Stáhnout materiál",hide:"SkrĂ˝t",unhide:"Zobrazit",menu:{title:"Menu",edit:"Upravit materiál",recommend:"OznaÄŤit jako doporuÄŤenĂ©",recommend_remove:"Odebrat z doporuÄŤenĂ˝ch",show_in_eshop:"Zobrazit materiál v e-shopu",edit_as_author:"Upravit materiál jako autor"}},tab:{info:"Informace",log:"Záznamy"},edit:{title:"Ăšprava materiálu",save:"UloĹľit",cancel:"Zrušit",success:"Materiál upraven",success_categories:"Kategorie byly aktualizovány"},control:{title:"Kontrola",text:"Tady budou vypsány poslednĂ dĹŻvody k navrácenĂ k revizi z pĹ™edpĹ™ipravenĂ©ho seznamu dĹŻvodĹŻ. (náhledovĂ˝ obrázek, prĹŻvodnĂ list,...)",approve:"Schválit",review:"Revidovat",review_edit:"Upravit revizi",disapprove:"ZamĂtnut",disapprove_edit:"Upravit zamĂtnutĂ",not_for_sale:"Odebrat z prodeje",for_sale:"PĹ™idat do prodeje",not_valid:"NevalidnĂ materiál",states:{disapproved:"ZamĂtnutĂ",review:"Revize"},edit:"Upravit"},description:{title:"DetailnĂ popis",show_more:"Zobrazit celĂ˝ popis",show_less:"SkrĂ˝t celĂ˝ popis"},general:{title:"ObecnĂ©",created_at:"Datum vytvoĹ™enĂ",approved_at:"Datum schválenĂ",published_at:"Datum zveĹ™ejnÄ›nĂ",price:"Cena",price_netto:"Cena (bez DPH)",vat:"DPH",vat_with_type:"DPH (novĂ©)"},category:{title:"ZaĹ™azenĂ",class:"TĹ™Ăda",subjects:"PĹ™edmÄ›ty",theme:"TĂ©mata",kind:"Typ materiálu",format:"Formát materiálu",holiday:"Svátky"},file:{title:"Soubor",name:"Název souboru",type:"Typ souboru",pages:"PoÄŤet stran",images:"Zdroje obrázkĹŻ"},stats:{title:"Statistiky",sells:"Prodáno",favorites:"V oblĂbenĂ˝ch",ratings:"PoÄŤet hodnocenĂ"},log:{log:"Záznam",participant:"ÚčastnĂk",note:"Poznámka",search:"Vyhledejte účastnĂka...",not_found:"Záznam nebyl nalezen",type:{creation:"VytvoĹ™enĂ",approval:"SchválenĂ",revision:"Revize",reject:"ZamĂtnutĂ",complaint:"Reklamace",modification:"Aktualizace",removal:"SmazánĂ"},date:"Datum záznamu",filter:{type:"Typ záznamu",date:"Datum"}}},complaint:{date:{placeholder:"Datum reklamace"},filter:{state:{title:"Stav"},reason:{title:"DĹŻvod"},tags:{title:"Tagy",options:{only_on_ucitelnice:"Pouze na UÄŤitelnici"}}},header:{title:"Detail reklamace",back:"ZpÄ›t",add_note:"PridaĹĄ poznámku",solve:"VyĹ™ešit reklamaci"},info:{title:"Reklamace ÄŤ.",reason:"DĂşvod reklamace",note:"Poznámka zákaznĂka",product:{title:"Materiál",created_at:"Dátum nahratia",price:"Cena materiálu",complaints:"PoÄŤet reklamacĂ"},customer:"ZákaznĂk",author:"Autor materiálu"},log:{date:"Dátum",action:"Akce"},resolution:{title:"ĹešenĂ reklamace",buttons:{confirm:"VyĹ™ešit",cancel:"Zrušit",email_preview:"Náhled emailu"},actions:{select:{fix:"Opravit",reject:"ZamĂtnout",close:"UzavĹ™Ăt",close_no_action:"OznaÄŤit za vyĹ™ĂzenĂ© (bez poslánĂ emailu)"},check:{refund:"Vrátit kredit",remove_product:"Odebrat materiál"}},note:{title:"PĹ™idánĂ poznámky",save:"PĹ™idat",label:"Poznámka",placeholder:"Napište poznámku..."}},message:{addNote:"Poznámka pĹ™idána",reject:"Reklamace zamĂtnuta",close:"Reklamace uzavĹ™ena",fix:"Reklamace ÄŤeká na opravu bez vrácenĂ penÄ›z",fixWithRefund:"Reklamace ÄŤeká na opravu s vrácenĂm penÄ›z",message:"Zpráva odeslána"}},update:{filter:{state:{title:"Stav",option:{approved:"Schváleno",review_the_fix:"Opraveno",disapproved:"ZamĂtnuto"}},reason:{title:"DĹŻvod",option:{approved:"Schváleno",review_the_fix:"Opraveno",disapproved:"ZamĂtnuto"}}},confirm_send:"PotvrzenĂ a odeslánĂ aktualizace",delete:"SmazánĂ aktualizace"}},users:{title:"UĹľivatelĂ©",search:{placeholder:"Vyhledejte uĹľivatele podle jmĂ©na, emailu, ...",date_placeholder:"Datum nákupu",filter:"Filtr"},table:{header:{id:"Id",name:"JmĂ©no",school:"Ĺ kola",credit:"Kredit",last_login:"PĹ™ihlášenĂ",last_order:"Nákup",status:"Stav účtu"},item:{status:{active:"aktivovanĂ˝",activate:"Aktivovat",blocked:"blokovanĂ˝"},buttons:{block:"Blokovat",unblock:"Odblokovat",write_message:"Napsat zprávu",transactions:"Zobrazit transakce",invoices:"Zobrazit faktury"},messages:{blocked:"Blokován",cant_block_self:"NemĹŻĹľete blokovat sám sebe.",unblocked:"Odblokován",activated:"Aktivován"}},not_found:{user:"UĹľivatel nebyl nalezen"},filter:{state:{title:"Stav",options:{blocked:"Blokován",not_blocked:"Neblokován",confirmed:"AktivovanĂ˝",not_confirmed:"NeaktivovanĂ˝"}},role:{title:"Role",options:{author:"Autor",user:"UĹľivatel",admin:"Admin"}},school:{title:"Ĺ kola",options:{school:"Má školu",no_school:"Nemá školu"}},tags:{title:"Tagy",options:{verified:"OvěřenĂ˝ autor",only_on_ucitelnice:"Pouze na UÄŤitelnici",is_organization:"Organizace",has_discount:"Má naplánovanou slevu"}}}},detail:{header:{title:"Detail uĹľivatele",chat:"Napsat zprávu",edit:"Upravit Ăşdaje",author_settings:"Detail autora"},info:{email:"Email",email_accounting:"ÚčetnĂ email",school:"Ĺ kola",product_count:{personal:"OsobnĂch materiálĹŻ",school:"Ĺ kolnĂch materiálĹŻ"},public_alias:"E-shop",invoice_info:"FakturaÄŤnĂ Ăşdaje",company:"Název organizace",address:"Adresa",city:"MÄ›sto",postcode:"PSÄŚ",ico:"IÄŚO",dic:"DIÄŚ"},discount:{amount_text:"Nastavená sleva: {amount}%",only_on_exclusive_products_suffix:'pouze na materiály "Jen na UÄŤitelnici"',all_suffix:"na všechny materiály"},stats:{cart:"KošĂk",wishlist:"OblĂbenĂ© materiály",credit:"Kredit"},edit:{title:"Ăšprava ĂşdajĹŻ uĹľivatele",general:{title:"ObecnĂ©",first_name:{label:"JmĂ©no",placeholder:"Zadejte jmĂ©no"},last_name:{label:"PĹ™ĂjmenĂ",placeholder:"Zadejte pĹ™ĂjmenĂ"},email:{label:"E-mail",placeholder:"Zadejte e-mail"}},invoice_info:{title:"FakturaÄŤnĂ Ăşdaje",invoice_company:{label:"Název organizace",placeholder:"Jazyková škola s.r.o."},invoice_ico:{label:"IÄŚO",placeholder:"12345678"},invoice_dic:{label:"DIÄŚ (nepovinnĂ©)",placeholder:"CZ12345678"},invoice_address:{label:"Ulice a ÄŤĂslo popisnĂ©",placeholder:"Okrajová 1111/9"},invoice_city:{label:"MÄ›sto",placeholder:"Lohenice"},invoice_psc:{label:"PSÄŚ",placeholder:"333 00"}},author_info:{title:"Ăšdaje autora",contractor_company:{label:"Název",placeholder:"..."},contractor_address:{label:"Ulice, ÄŤĂslo popisnĂ©",placeholder:"Okrajová 1111/9"},contractor_city:{label:"MÄ›sto",placeholder:"Lohenice"},contractor_psc:{label:"PSÄŚ",placeholder:"333 00"},contractor_ico:{label:"IÄŚO",placeholder:"12345678"},contractor_dic:{label:"DIÄŚ",placeholder:"CZ12345678"},contractor_bank_account:{label:"ÄŚĂslo bankovnĂho účtu",placeholder:"0123..."},contractor_country:{label:"Krajina",placeholder:"ÄŚeská Repuplika"},custom_invoice_acknowledgement:{label:"Text pro právnickou osobu",placeholder:"..."}},success:"Ăšdaje uĹľivatele zmÄ›nÄ›ny"},cart:{title:"KošĂk uĹľivatele",total:"Celková hodnota",last_update:"PoslednĂ zmÄ›na"},wishlist:{title:"OblĂbenĂ© materiály uĹľivatele",total:"Celková hodnota",last_update:"PoslednĂ zmÄ›na"},credit:{title:"Ăšprava kreditu",add:"PĹ™idat",remove:"Odebrat",amount:{label:"MnoĹľstvĂ kreditu",placeholder:"napĹ™. 10",amount_required:"MnoĹľstvĂ kreditu je povinnĂ©.",add:{error_min:"MusĂte pĹ™idat minimálnÄ› 1 kredit.",success:"Kredit by pĹ™idán"},remove:{error_min:"MusĂte odebrat minimálnÄ› 1 kredit.",error_max:"MĹŻĹľete odebrat maximálnÄ› {amount} kreditĹŻ. VĂc uĹľivatel nemá.",success:"Kredit by odebrán"}},note:{label:"Poznámka",placeholder:"DĹŻvod zmÄ›ny kreditu ...",required:"Poznámka je povinná."}},tabs:{downloads:"ZakoupenĂ© materiály",finances:"Finance",settings:"NastavenĂ"},downloads:{search:{placeholder:"VyhledávánĂ ...",date_placeholder:"Zakoupeno"},header:{id:"Id",title:"Materiál",author:"Autor",bought_at:"Zakoupeno",price:"Cena",proforma_invoice:"Zálohová faktura",invoice:"DaĹovĂ˝ doklad"},item:{actions:{download:"Stáhnout materiál"},uploaded_at:"Nahráno"},not_found:"Materiál nebyl nalezen"},finances:{tabs:{orders:"Objednávky",credit:"Kredit",payments:"Platby",credit_transfers:"Kredity"}},settings:{edit:{title:"Upravit Ăşdaje",text:"Editace jmĂ©na, e-mailu, fakturaÄŤnĂch ĂşdajĹŻ, ...",button:"Upravit"},confirm:{title:"Aktivovat",text:"Aktivace účtu manuálnÄ›",button_confirm:"Aktivovat",button_confirmed:"AktivovanĂ˝"},block:{title:"Blokovat účet",text:"UĹľivatel nebude mĂt pĹ™Ăstup do svĂ©ho účtu",button:"Blokovat"},password_reset:{title:"Resetovat heslo",text:"NastavĂ uĹľivateli defaultnĂ heslo ’ucitelnice’",button:"Resetovat",success:"Heslo bylo resetováno.",sidebar:{title:"ResetovánĂ hesla",text:"Opravdu chcete resetovat heslo? NutnĂ© upozornit uĹľivatele na nutnost nastavenĂ novĂ©ho hesla.",button:"Resetovat"}}}},author_detail:{header:{title:"Detail autora",title_not_author:"Detail autora (uĹľivatel nenĂ autor)",public_profile:"VeĹ™ejnĂ˝ profil",user_detail:"Detail uĹľivatele"},stats:{uploaded_products:"NahranĂ˝ch materiálĹŻ",sells_this_month:"TrĹľby tento mÄ›sĂc",number_of_favourites:"PoÄŤet oblĂbenĂ˝ch",commission_total:"Provize celkem"},tabs:{products:"Materiály autora",settlements:"VyúčtovánĂ",settings:"NastavenĂ"},products:{filter:{search:"Vyhledej materiál",date:"VytvoĹ™eno"},table:{header:{id:"Id",product:"Materiál",created_at:"VytvoĹ™eno",price:"Cena",sold:"Prodáno",state:"Stav"},not_found:"ŽádnĂ© materiály nenalezeny",actions:{download:"Stáhnout materiál",edit:"Upravit materiál",delete:"Smazat materiál"}}},settlements:{filter:{search:"Vyhledej...",date:"Rok",status:{title:"Stav vĂ˝platy",options:{paid:"Vyplaceno",requested:"Zažádáno",pay:"Vyplatit"}}},table:{header:{date:"Datum",invoice:"Faktura od autora",to_pay:"OdmÄ›na",status:"Stav vĂ˝platy"},not_found:"ŽádnĂ© vyúčtovánĂ nenalezeno",status:{paid:"Vyplaceno",requested:"Zažádáno",pay:"Zažádat"},actions:{export_xls:"Stáhnout XLS"}}},settings:{edit:{title:"Upravit Ăşdaje",text:"MoĹľnost editovat Ăşdaje autora",button:"Upravit"},verified:{title:"OvěřenĂ˝ autor",text:"NastavĂ autorovi pĹ™Ăznak ověřenĂ.",success:"PĹ™Ăznak ověřenĂ nastaven"},hmat:{title:"H-mat",text:"NastavĂ autorovi pĹ™Ăznak h-mat.",success:"PĹ™Ăznak h-mat nastaven"},mmat:{title:"Montessori",text:"NastavĂ autorovi pĹ™Ăznak Montessori.",success:"PĹ™Ăznak Montessori nastaven"},role:{title:"Role autora",text:"NastavĂ autorovi roli autora.",success:"Role nastavena"}}}},school:{state:{registered:"Registrovaná škola",unregistered:"Neregistrovaná škola"},list:{header:{title:"Ĺ koly",stat:{active:"PoÄŤet aktivnĂch škol",new:"NovĂ˝ch školnĂch materiálĹŻ",yesterdaySpent:"VÄŤera utraceno ve školách"}},search:{placeholder:"Vyhledejte školu, správce, školnĂho uĹľivatele..."},filter:{registered:{title:"Registrace",option:{registered:"Registrovaná",unregistered:"Neregistrovaná"}}},table:{header:{school:"Ĺ kola",admin:"Správce",student:"PoÄŤet žákĹŻ",order:"PoÄŤet objednávek",teacher:"PoÄŤet uÄŤitelĂş",registered:"Registrace"},content:[],not_found:"Ĺ kola nebyla nalezena"}},detail:{header:{back:"ZpÄ›t",title:"Detail školy"},info:{address:"Adresa",ico:"IÄŚO",credit:"Kredit",capacity:"Kapacita",vat:"VAT ID",izo:"IZO",red_izo:"RED IZO"},invoice_info:{title:"FakturaÄŤnĂ Ăşdaje",invoice_company:"Název organizace",invoice_ico:"FakturaÄŤnĂ IÄŚO",invoice_dic:"FakturaÄŤnĂ DIÄŚ",invoice_address:"FakturaÄŤnĂ adresa",invoice_psc:"FakturaÄŤnĂ PSÄŚ",invoice_city:"FakturaÄŤnĂ mÄ›sto"},tab:{user:"KolegovĂ©",finance:"Finance",product:"Ĺ kolnĂ materiály"},credit:{title:"Ăšprava školnĂho kreditu",amount:"Částka",expires_at:"Expirace: {expires_at}",extend:"ProdlouĹľit",expiry_date:"NovĂ˝ datum expirace"},list:{user:{search:{placeholder:"Vyhledejte kolegu podle jmĂ©na, emailu, ..."},table:{header:{colleague:"Kolega",state:"Stav účtu",balance:"DostupnĂ˝ rozpoÄŤet"},content:[],not_found:"UĹľivatel nebyl nalezen"},add:{button:"PĹ™idat kolegu",title:"PĹ™idánĂ kolegu"},confirm:{button:"Schválit"},remove:{title:"OdebránĂ uĹľivatele",subtitle:"Opravdu chcete odebrat uĹľivatele",button:"Odebrat"},block:{title:"BlokovánĂ uĹľivatele",subtitle:"Opravdu chcete zablokovat uĹľivatele",button:"Zablokovat"},unblock:{title:"OdblokovánĂ uĹľivatele",subtitle:"Opravdu chcete odblokovat uĹľivatele",button:"Odblokovat"},credit:{add:{button:"PĹ™idat kredit",title:"PĹ™idanà školnĂho kreditu uĹľivatele"},remove:{button:"Odebrat kredit",title:"Odebránà školnĂho kreditu uĹľivatele"}}},finance:{tab:{order:"Objednávky",payment:"Platby",credit_transfer:"Kredity"},order:{search:{placeholder:"Vyhledejte objednávku..."},credit_order:{button:"VytvoĹ™it objednávku kreditu",sidepanel:{title:"VytvoĹ™enĂ objednávky kreditu",text:"VytvoĹ™enĂ objednávky kreditu jako kdyĹľ to dÄ›lá správce",placeholder:"Částka v KÄŤ",label:"Částka",button:"VytvoĹ™it"}},date:"Datum objednávky...",filter:{type:{title:"Typ",options:{product:"Materiály",credit:"Kredit",summary:"SouhrnnĂ˝ daĹovĂ˝ doklad",orders_summary:"PĹ™ehled objednávek"}},payment_type:{title:"Typ platby",options:{proforma:"PĹ™evod",gateway:"PlatebnĂ brána",credit:"Kredit",admin:"Admin"}},payment_state:{title:"Stav platby",options:{unpaid:"Nezaplaceno",paid:"Zaplaceno"}}},table:{header:{date:"Datum",user:"UĹľivatel",type:"Typ",payment_type:"Typ platby",amount:"Částka",proforma_invoice:"Zálohová faktura",invoice:"DaĹovĂ˝ doklad",payment_state:"Stav platby"},content:{doc:{paymentAwait:"ÄŚeká na zaplacenĂ",deleted:"SmazanĂ©"}},not_found:"Objednávka nebyla nalezena"},delete:{title:"SmazánĂ objednávky",subtitle:"SkuteÄŤnÄ› si pĹ™ejete smazat objednávku?",button:"Smazat"},confirm:{title:"PotvrzenĂ platby objednávky",subtitle:"SkuteÄŤnÄ› si pĹ™ejete potvrdit platbu objednávky?",button:"Potvrdit"}}},product:{search:{placeholder:"Vyhledejte materiál, autora..."},date:"Datum zakoupenĂ",table:{header:{id:"ID",product:"Materiál",autor:"Autor",bought:"Zakoupeno",price:"Cena",proformaInvoice:"Zálohová faktura",invoice:"DaĹovĂ˝ doklad"},not_found:"Materiál nebyl nalezen"},download:{button:"Stáhnout materiál"}}}},add:{button:"PĹ™idat školu",header:{title:"PĹ™idánà školy",add:"PĹ™idat",cancel:"Zrušit"},general:{title:"ObecnĂ©",name:"Název školy",capacity:"Kapacita"},address:{title:"Adresa",street:"Ulice",serial:"ÄŚ.p.",city:"MÄ›sto",zip:"PSÄŚ"},organization:{title:"Organizace",ico:"IÄŚO",vat:"VAT ID",izo:"IZO",redIzo:"RED IZO"},accounting:{title:"ÚčetnĂ Ăşdaje",email:"ÚčetnĂ e-mail"}},edit:{button:"Upravit Ăşdaje",title:"Ăšprava ĂşdajĹŻ školy"}},content:{header:{title:"Správa obsahu",stat:{sell:{today:"ProdanĂ˝ch materiálĹŻ dnes",all:"ProdanĂ˝ch materiálĹŻ celkem",various:"ProdanĂ˝ch rĹŻznĂ˝ch materiálĹŻ",author:"Prodeje od novĂ˝ch autorĹŻ"}}},tab:{homepage:"ĂšvodnĂ stránka",category:"Kategorie",search:"VyhledávánĂ",blog:"Blog",product_upload_lock:"UzamknutĂ nahrávánĂ materiálĹŻ"},section:{new:"NovĂ© sekce",shown:"ZobrazenĂ© sekce",hidden:"SkrytĂ© sekce",create:{button:"VytvoĹ™it sekci",title:"VytvoĹ™enĂ sekce",name:"Název",description:"Popis",product:{title:"VĂ˝bÄ›r materiálĹŻ",type_label:"Typ",type:{latest:"NejnovÄ›jšà vĂ˝bÄ›r",random:"NáhodnĂ˝ vĂ˝bÄ›r",favourite_author:"VĂ˝bÄ›r oblĂbenĂ˝ch autorĹŻ",manual:"RuÄŤnĂ vĂ˝bÄ›r",class_subject:"VĂ˝bÄ›r z pĹ™edmÄ›tĹŻ stupnÄ›",category:"VĂ˝bÄ›r z kategoriĂ",section:"VĂ˝bÄ›r ze sekciĂ",preference:"VĂ˝bÄ›r z preferenciĂ",only_on_ucitelnice:"VĂ˝bÄ›r Pouze na UÄŤitelnici",organization:"VĂ˝bÄ›r z organizacĂ"},id:"ID nebo název materiálu",count:"PoÄŤet zobrazenĂ˝ch materialĹŻ",category:"Kategorie",add:"Vybrat materiál",added:"PĹ™idanĂ© materiály",added_already:"Materiál jiĹľ byl pĹ™idán"}},update:{title:"Ăšprava sekce"},delete:{title:"SmazánĂ sekce",subtitle:"Opravdu si pĹ™ejete smazat sekci?"},product_count:"PoÄŤet pĹ™iĹ™azenĂ˝ch materiálĹŻ",sort_tooltip:"Typ sekce",sort_unknown:"NeznámĂ˝",sort:{latest:"NejnovÄ›jšà vĂ˝bÄ›r",random:"NáhodnĂ˝ vĂ˝bÄ›r",favourite_author:"VĂ˝bÄ›r oblĂbenĂ˝ch autorĹŻ",manual:"RuÄŤnĂ vĂ˝bÄ›r",class_subject:"VĂ˝bÄ›r z pĹ™edmÄ›tĹŻ stupnÄ›",category:"VĂ˝bÄ›r z kategoriĂ",section:"VĂ˝bÄ›r ze sekciĂ",preference:"VĂ˝bÄ›r z preferenciĂ",only_on_ucitelnice:"VĂ˝bÄ›r Pouze na UÄŤitelnici",organization:"VĂ˝bÄ›r z organizacĂ"},move:"ZmÄ›na poĹ™adĂ potáhnutĂm",search:"Vyhledej sekci...",not_found:"Sekce nenalezena"},infobox:{recent:"NovĂ© infoboxy",shown:"ZobrazenĂ© infoboxy",hidden:"SkrytĂ© infoboxy",create:{button:"VytvoĹ™it infobox",title:"VytvoĹ™enĂ infoboxu"},update:{title:"Ăšprava infoboxu"},delete:{title:"SmazánĂ infoboxu",subtitle:"Opravdu si pĹ™ejete smazat infobox?"},search:"Vyhledej infobox...",not_found:"Infobox nenalezen"},category:{tab:["Organizace pĹ™edmÄ›tĹŻ","StupnÄ›","PĹ™edmÄ›ty","TĂ©mata","Typy materiálĹŻ","Formáty materiálĹŻ","Svátky","Obrázky kategoriĂ"],delete_prompt:{with_children:['Kategorie "{name}":',"a jejĂ podkategorie majĂ {products_count} pĹ™iĹ™azenĂ˝ch produktĹŻ. Všechny vazby na tuto kategorii budou smazány,","{children_count} podkategoriĂ. Všechny tyto podkategorie a jejich vazby na produkty budou smazány."],no_children:['Kategorie "{name}":',"má {products_count} pĹ™iĹ™azenĂ˝ch produktĹŻ. Všechny vazby na tuto kategorii budou smazány,","nemá žádne podkategorie."]},images:{no_image:"ŽádnĂ˝ obrázek",invalid_file:"Ĺ patnĂ˝ typ souboru.",success:"Obrázek byl ĂşspěšnÄ› nahrán a zmÄ›nÄ›n.",sidepanel:{title:"Ăšprava obrázku kategorie",current_image:"AktuálnĂ obrázek",upload_info:"Obrázek bude automaticky zmÄ›nÄ›n hned po nahránĂ.",upload_new:"NahránĂ novĂ©ho obrázku",upload_change:"NahrazenĂ obrázku"}}},search:{tab:["NejÄŤasteji hledajĂ"],defaults:{title:"UÄŤitelĂ© právÄ› nejÄŤastÄ›ji hledajĂ",form:{title:{label:"Název odkazu",placeholder:"napĹ™. ZvĂĹ™ata"},link:{label:"Suffix odkazu (za https://www.ucitelnice.cz)",placeholder:"napĹ™. /materialy?section=zvirata"},hide:"SkrĂ˝t",hidden:"SkrytĂ©",success:"NejÄŤastÄ›ji hledanĂ© vĂ˝razy uloĹľeny."}}},blog:{posts:{title:"DoporuÄŤenĂ© ÄŤlánky",search_placeholder:"Vyhledejte ÄŤlánek...",no_posts:"ŽádnĂ© ÄŤlánky nebyly nalezeny"},themes:{title:"OblĂbená tĂ©mata",search_placeholder:"Vyhledejte tĂ©ma...",no_themes:"Žádná tĂ©mata nebyla nalezena"}},product_upload_lock:{title:"UzamknutĂ nahrávánĂ materiálĹŻ",recent:{title:"NovĂ©"},shown:{title:"ZobrazenĂ©"},hidden:{title:"SkrytĂ©"},not_found:"UzamknutĂ nahrávánĂ materiálĹŻ nebylo nalezeno",image_updated:"Obrázek byl ĂşspěšnÄ› zmÄ›nÄ›n",create:{title:"VytvoĹ™enĂ uzamknutĂ nahrávánĂ materiálĹŻ",name:"Název",description:"Popis",valid_from:"Platnost od",valid_to:"Platnost do",image:"Obrázek",is_active:"AktivnĂ"},update:{title:"Ăšprava uzamknutĂ nahrávánĂ materiálĹŻ",name:"Název",description:"Popis",valid_from:"Platnost od",valid_to:"Platnost do",image:"Obrázek",is_active:"AktivnĂ"},delete:{title:"SmazánĂ uzamknutĂ nahrávánĂ materiálĹŻ",subtitle:"Opravdu chcete smazat toto uzamknutĂ nahrávánĂ materiálĹŻ?"}}},finance:{header:{title:"Finance",stat:{sell:{today:"ProdanĂ˝ch materiálĹŻ dnes",all:"ProdanĂ˝ch materiálĹŻ celkem",various:"ProdanĂ˝ch rĹŻznĂ˝ch materiálĹŻ",author:"Prodeje od novĂ˝ch autorĹŻ"}}},tab:{order:"Objednávky",author:"VĂ˝platy autorĹŻm",voucher:"DárkovĂ© poukazy a slevy"},order:{search:{placeholder:"Vyhledejte objednávku..."},filter:{date:"Datum objednávky",account_type:{title:"Typ účtu",options:{school:"Ĺ kolnĂ",user:"OsobnĂ"}},payment_type:{title:"Typ platby",options:{proforma:"PĹ™evod",gateway:"PlatebnĂ brána",credit:"Kredit",voucher:"DárkovĂ˝ poukaz",admin:"Admin"}},type:{title:"Typ",options:{product:"Materiály",credit:"Kredit",voucher:"DárkovĂ˝ poukaz"}},payment_state:{title:"Stav platby",options:{paid:"Zaplaceno",unpaid:"Nezaplaceno"}}},table:{header:{user:"UĹľivatel",proforma_invoice:"Zálohová faktĂşra",invoice:"DaĹovĂ˝ doklad",date:"Datum",account_type:"Typ účtu",payment_type:"Typ platby",purchase:"Typ",amount:"Částka",status:"Stav platby"},content:{account_type:{user:"Osobni",school:"Ĺ kolnĂ"},payment:{proforma:"PĹ™evod",bank_transfer:"PĹ™evod",gateway:"PlatebnĂ brána",credit:"Kredit",voucher:"DárkovĂ˝ poukaz",admin:"Admin"},purchase:{product:"Materiály",credit:"Kredit",voucher:"DárkovĂ˝ poukaz"},status:{paid:"Zaplaceno",unpaid:"Nezaplaceno",deleted:"Smazáno"}},not_found:"Objednávka nebyla nalezena"},action:{show:"Zobrazit",download:"Stáhnout",copy:"KopĂrovat URL",update:"Aktualizovat",update_success:"Doklad ĂşspěšnÄ› pĹ™egenerován",pay_success:"Doklad ĂşspěšnÄ› zaplacen",pay_not_supported:"Tento typ dokladu nelze zaplatit jako admin",update_not_supported:"Tento typ dokladu nelze pĹ™egenerovat jako admin"}},author:{summary:{order:{title:"BakovnĂ pĹ™Ăkazy celkem",action:"Odeslat k podpisu",sidebar_title:"OdeslánĂ bankovnĂch pĹ™ĂkazĹŻ k podpisu",sidebar_text:"Opravdu si pĹ™ejete odeslat bankovnĂ pĹ™Ăkazy k podpisu?"},pay:{title:"K vyplacenĂ celkem",action:"ZobraziĹĄ detail",detail:{title:"K vyplacenĂ",cancel:"ZavĹ™Ăt",vat_payers_only:"Pouze plátci DPH",table:{header:{id:"ID",name:"JmĂ©no",email:"E-mail",amount:"Částka"}}}}},search:{placeholder:"Vyhledejte autora..."},filter:{date:"Datum"},table:{header:{id:"ID",name:"Autor",amount:"Částka",vs:"VariabilnĂ symbol",date:"Datum"},not_found:"VĂ˝plata nebyla nalezena"}},credit:{filter:{date:"Vyberte datum..."},summary:{user:{title:"OsobnĂ kredit",change:"Zmena oproti minulĂ©mu obdobĂ"},school:{title:"Ĺ kolnĂ kredit",change:"Zmena oproti minulĂ©mu obdobĂ"},other:{title:"OstatnĂ",change:"Zmena oproti minulĂ©mu obdobĂ"}},table:{header:[],not_found:"Záznam nebyl nalezen"}},voucher:{tabs:{vouchers_and_discounts:"DárkovĂ© poukazy a slevy",author_discounts:"AutorskĂ© slevy"},author_discounts:{author_discounts_setup_from:"NastavenĂ autorskĂ˝ch slev zobrazeno od",only_on_exclusive_products:'Pouze pro produkty "Jen na UÄŤitelnici"',create_success:"Autorská sleva ĂşspěšnÄ› vytvoĹ™ena",update_success:"Autorská sleva ĂşspěšnÄ› upravena",remove_success:"Autorská sleva ĂşspěšnÄ› smazána",planned:{title:"PlánovanĂ© nastavenĂ:",info:"V tomto rozmezĂ bude probĂhat automatická autorská sleva na všechny produkty podle nastavenĂ autorĹŻ."},active:{title:"AktivnĂ nastavenĂ:",info:"Práve probĂha automatická autorská sleva na všechny produkty podle nastavenĂ autorĹŻ."},author_can_edit_from:"NastavenĂ pro autory viditelnĂ© od",no_active_now:"Momentálne nejsou naplánovánĂ© automatickĂ© autorskĂ© slevy.",edit_discount:{title:"Ăšprava nastavenĂ",action:"Upravit nastavenĂ"},create_new_discount:{title:"VytvoĹ™enĂ novĂ©ho nastavenĂ",action:"VytvoĹ™it novĂ© nastavenĂ"},new_discount_note:["VAROVĂNĂŤ!","AktuálnĂ nastavenĂ automatickĂ˝ch autorskĂ˝ch slev bude smazáno!",'AutomatickĂ© autorskĂ© slevy nastavenĂ© autory, kteřà nezaškrtli checkbox "Ponechat nastavenĂ" budou smazány!',"Pro zobrazenĂ upozornÄ›nĂ o celostránkovĂ© slevÄ› v nastavenĂ autora je nutnĂ© vytvoĹ™it i celostránkovou slevu."],delete:{button:"Smazat autorskou slevu",confirmation:"Opravdu si pĹ™ejete smazat autorskou slevu?"}},search:{placeholder:"Vyhledejte kĂłd, e-mail nebo částku..."},filter:{type:{title:"Typ",options:{voucher:"DárkovĂ˝ poukaz",discount:"Sleva"}},valid:{title:"Platnost",options:{valid:"PlatnĂ˝",expired:"NeplatnĂ˝"}},created_by:{title:"VytvoĹ™eno",options:{user:"UĹľivatelem",admin:"Adminem"}}},table:{header:{date:"Nákup",expiration:"Expirace",code:"KĂłd",amount:"Částka / Sleva",email:"E-mail",note:"Poznámka"},content:{applied_amount:"UplatnÄ›no"},by_admin:"VytvoĹ™eno adminem",not_found:"KĂłd nebyl nalezen"},action:{create:{button:"VytvoĹ™it kĂłd",buttonSide:"VytvoĹ™it",title:"VytvoĹ™enĂ kĂłdu",type:"Typ",amountDiscount:"Částka / Sleva",code:"KĂłd",email:"Odeslat na email",note:"Poznámka",from:"PlatnĂ˝ od",author_discounts_setup_from:"NastavenĂ autorskĂ˝ch slev zobrazeno od",author_discounts_setup_to:"NastavenĂ autorskĂ˝ch slev zobrazeno do",to:"PlatnĂ˝ do"},code_warning:"POZOR: KĂłd zadejte beze háčkĹŻ, čárek a bez mezer pĹ™ed a za kĂłdem. Všechny tyto znaky jsou automaticky odstranÄ›ny pĹ™i zadánĂ kĂłdu v košĂku. V kĂłdu nezáležà na velkĂ˝ch a malĂ˝ch pĂsmenech.",download:"Stáhnout",edit:{button:"Upravit",buttonSide:"UloĹľit",title:"Ăšprava kĂłdu"},delete:{button:"Smazat",title:"SmazánĂ kĂłdu",subtitle:"SkuteÄŤnÄ› si pĹ™ejete smazat kĂłd?"}}}},message:{header:{title:"Zprávy",stat:{sell:{today:"ProdanĂ˝ch materiálĹŻ dnes",all:"ProdanĂ˝ch materiálĹŻ celkem",various:"ProdanĂ˝ch rĹŻznĂ˝ch materiálĹŻ",author:"Prodeje od novĂ˝ch autorĹŻ"}}},tab:{"message ":"Zprávy",infobox:"Infobox",notification:"Aktuality autorĹŻm"},search:{placeholder:"Vyhledejte text zprávy, autora..."},table:{header:{user:"UĹľivatel",message:"Zpráva",last_activity:"Aktivita"},not_found:"Konverzace nebyla nalezena"},notification:{table:{header:{title:"Aktualita",content:"Text zprávy",published_at:"ÄŚas publikace",last_activity:"Aktivita"},already_published:"Aktualita jiĹľ byla publikována",not_found:"Konverzace nebyla nalezena"},create:{title:"VytvoĹ™enĂ aktuality",button:"VytvoĹ™it aktualitu",message:"Aktualita vytvoĹ™ena"},update:{title:"Ăšprava aktuality",message:"Aktualita upravena"},delete:{title:"SmazánĂ aktuality",message:"Aktualita smazána",text:"Opravdu si pĹ™ejete smazat aktualitu?"}}},payment:{search:{placeholder:"Vyhledejte platbu..."},date:"Datum platby",filter:{type:{title:"Typ platby",options:{gateway:"PlatebnĂ brána",proforma:"PĹ™evod",credit:"Kredit",voucher:"DárkovĂ˝ poukaz",admin:"Admin"}},order_type:{title:"Typ objednávky",options:{credit:"Kredit",product:"Materiály",voucher:"DárkovĂ˝ poukaz"}}},table:{header:{id:"Id",type:"Typ platby",order_type:"Typ objednávky",admin:"Admin",user:"UĹľivatel",order:"Objednávka",amount:"Suma",confirmed_at:"Datum potvrzenĂ",created_at:"Datum vytvoĹ™enĂ",note:"Komentář"},content:{type:{gateway:"PlatebnĂ brána",proforma:"PĹ™evod",credit:"Kredit",voucher:"DárkovĂ˝ poukaz",admin:"Admin"},order_type:{credit:"Kredit",product:"Materiály",voucher:"DárkovĂ˝ poukaz"}},not_found:"Platby nebyla nalezena"}},credit_transfer:{search:{placeholder:"Vyhledejte transakci..."},date:"Datum transakce",filter:{type:{title:"Typ",options:{order:"Objednávka",payment:"Platba",complaint_return:"Reklamace",unknown:"NeznámĂ˝",admin:"Admin"}}},table:{header:{id:"Id",type:"Typ",entity:"Entita",amount:"Suma",confirmed_at:"Datum potvrzenĂ",created_at:"Datum vytvoĹ™enĂ",note:"Poznámka"},content:{type:{order:"Objednávka",payment:"Platba",complaint_return:"Reklamace",unknown:"NeznámĂ˝",admin:"Admin"}},not_found:"Transakce nebyla nalezena"}}},settlements:{invoices:{headline:"Doklady ke staĹľenĂ",interval:{info:"Doklad si mĹŻĹľete kdykoli vystavit i sami.",last_invoiced_at:"PoslednĂ doklad byl vystavenĂ˝",never:"Nikdy",button:"Vystavit doklad",in_progress:"Vystavuji..."}},orders:{headline:"PĹ™ehled objednávek",table:{headline:{unfinished:"NedokonÄŤenĂ© objednávky",paid:"ZaplacenĂ© objednávky",credit_order:"DobitĂ kreditu"},number:"ÄŚĂslo",date:"Datum",amount:"Suma"}},author:{request:"Zažádat o odeslánĂ",requested:"Zažádáno",requested_info:"PenĂze posĂláme kaĹľdĂ˝ tĂ˝den, obvykle ve stĹ™edu.",sent:"Odesláno",table:{month:"MÄ›sĂc",title:{billing:"Souhrn prodejĹŻ v danĂ©m mÄ›sĂci",license_invoice:"Faktura na licenÄŤnĂ poplatek"},billing:"VyúčtovánĂ",license_invoice:"Faktura",total_to_pay:"K vĂ˝platÄ›",payout:"VĂ˝plata"}},billing:"VyúčtovánĂ",sent_to:"VĂ˝plata bude poslána na"},navigation:{categories:{class:"StupeĹ vzdÄ›lánĂ",subject:"PĹ™edmÄ›t",theme:"TĂ©mata",kind:"Typ materiálu",format:"Formát materiálu",holiday:"Svátky"},for_authors:"Pro autory",for_schools:"Pro školy",my_account:"MĹŻj účet",login:"PĹ™ihlášenĂ",my_shop:"MĹŻj e-shop",links:{blog:"Blog",webinar:"Webináře",partner:"Kurzy",help:"NápovÄ›da",contact:"Kontakt"},user_menu:{user_dashboard:"UĹľivatelskĂ˝ profil",author_dashboard:"AutorskĂ˝ profil",school_dashboard:"Ĺ kolnà účet",admin_dashboard:"Admin"},search:{button:"Hledat",default:"Mohlo by se vám hodit",log:{title:"Naposledy hledanĂ©",delete:"Smazat historii",delete_from:"Smazat z historie"},not_found:{text:"Zkuste vyhledávánĂ s pĹ™esnÄ›jšĂm názvem. Nebo si moĹľná vyberete z nabĂdky nĂĹľe?"},recommended:{title:"DoporuÄŤenĂ˝ obsah"},trending:{title:"UÄŤitelĂ© právÄ› nejÄŤastÄ›ji hledajĂ"},unavailable:{title:"VyhledávánĂ je momentálnÄ› nedostupnĂ©",text:"Zkuste to za chvĂli. MĹŻĹľete pĹ™ejĂt do katalogu materiálĹŻ a materiály si vyfiltrovat."}}},authoronboarding:{form_page:{title:"StaĹte se autorem a zapojte se do komunity, která mÄ›nĂ vzdÄ›lávánĂ v ÄŚesku",form:{title:"K registraci potĹ™ebujeme následujĂcĂ Ăşdaje",description:["NejdĹ™Ăve budeme potĹ™ebovat vaše fakturaÄŤnĂ Ăşdaje. DĂky nim za vás budeme moct automaticky vystavit fakturu, abyste mÄ›li o starost mĂĹ. Potom uĹľ vám jen pošleme penĂze z prodeje na účet. Materiály mĹŻĹľete prodávat buÄŹ jako","OSVÄŚ nebo podle autorskĂ©ho zákona."],your_data:"Vaše fakturaÄŤnĂ Ăşdaje",is_vat_payer:"Jsem plátce DPH",image_sources_text:["Je rozdĂl vytvoĹ™it si materiál do tĹ™Ădy a na prodej. Obrázky pouĹľitĂ© v materiálech musĂ mĂt licenci pro komerÄŤnĂ pouĹľitĂ. Proto u kaĹľdĂ©ho materiálu ukazujeme zdroj obrázkĹŻ. PodĂvejte se na","naše tipy a doporuÄŤenĂ k obrázkĹŻm.","UveÄŹte prosĂm, odkud pocházejĂ vaše obrázky nejÄŤastÄ›ji (vlastnĂ obrázky, konkrĂ©tnĂ fotobanka, ...). Tyto zdroje se uložà a budou se zobrazovat u všech vašich produktĹŻ. Nebudete je tak muset vyplĹovat s kaĹľdĂ˝m dalšĂm nahranĂ˝m materiálem."]}},thanks_page:{thanks:"DÄ›kujeme za registraci!",thanks_text:`NovÄ› jste dĹŻleĹľitou součástĂ UÄŤitelnice. TěšĂme se na vaše prvnĂ nahranĂ© materiály. Do začátku jsme pro vás pĹ™ipravili nÄ›kolik tipĹŻ, na co pĹ™i tvorbÄ› materiálu nezapomenout. MĹŻĹľete si projĂt takĂ© odpovÄ›di na nejÄŤastÄ›jšà otázky nováčkĹŻ mezi autory.`,footer_text:["Prozkoumejte náš","web pro autory",". Nenašli jste odpovÄ›d? OzvÄ›te se nám."]}},blog:{index:{headline:"PĹ™ĂbÄ›hy UÄŤitelnice",search_bar:{placeholder:"Hledat ÄŤlánek",search_button:"Vyhledat"},headline_search_text:"VĂ˝sledky pro text:",headline_search_theme:"VĂ˝sledky pro tĂ©ma:",last:"NejnovÄ›jšĂ",daily:"ÄŚlánek dne",most_read:"NejÄŤtenÄ›jšĂ",more:"StojĂ za pĹ™eÄŤtenĂ",themes:{title:"OblĂbená tĂ©mata"},recommended:{headline:"DoporuÄŤujeme pĹ™eÄŤĂst",text:"PĂšeme pro vás, protoĹľe nás to bavĂ."},latest:{headline:"Naše poslednĂ ÄŤlánky",text:"PĂšeme pro vás, protoĹľe nás to bavĂ.",show_all_button:"OstatnĂ ÄŤlánky"},not_found:"ŽádnĂ˝ blog nenalezen"},title_plural:"Blogy",show_more:"Zobrazit dalšà články",read_blog:"PĹ™eÄŤĂst ÄŤlánek",watch_webinar:"ShlĂ©dnout weibnář",show_more_short:"vĂce",our_last_blogs:"Naše poslednĂ ÄŤlánky",our_last_blogs_text:"PĹ™eÄŤtÄ›te si dalšà tipy a nápady na vĂ˝uku, která nenudĂ."},order:{messages:{unknown_error:"VybranĂ˝ typ platby je momentálnÄ› nedostupnĂ˝. Zvolte prosĂm jinĂ˝ spĹŻsob platby.",gopay_error:"Online platba je momentálnÄ› nedostupná. Zvolte prosĂm jinĂ˝ spĹŻsob platby.",processing:"Vaši platbu zpracováváme.",already_confirmed:"Objednávka jiĹľ byla zaplacena. DÄ›kujeme."},delete:{title:"SmazánĂ objednávky",question:"SkuteÄŤnÄ› si pĹ™ejete smazat objednávku?",message:"Objednávka byla smazána"},complete:"DokonÄŤit objednávku",pay:"Zaplatit objednávku",restore:{message:"Objednávka byla obnovena"},product:"Objednávky materiálĹŻ",credit:"DobitĂ kreditu",exception:{confirmed:"Objednávka jiĹľ je potvrzená.",cannot_be_deleted:"Objednávka je v stavu, kdy nemĹŻĹľe bĂ˝t smazána."},summary:{title:"DÄ›kujeme za objednávku! Vaše materiály jsou pĹ™ipravenĂ© ke staĹľenĂ"}},webinar:{title:"Webinář",title_plural:"Webináře",show_more:"Zobrazit dalšà webináře",available_range:"Webinář bude pĹ™ĂstupnĂ˝ {start} v {end}.",start:"Začátek je v {start}",connect:"PĹ™ipojit se na webinář",thanks:"DÄ›kujeme za zakoupenĂ webináře",ended:"Webinář jiĹľ probÄ›hl a právÄ› z nÄ›j pĹ™ipravujeme záznam. Pošleme Vám email, aĹľ bude pĹ™ipravenĂ˝ ke staĹľenĂ.",signature:["TěšĂme se,","tĂ˝m UÄŤitelnice.cz"],webinar_starts_in:"Webinář zaÄŤne za",register:"Zaregistrovat se",back_to_webinars:"ZpÄ›t na webináře",recording_link:"Odkaz na záznam z webináře",recommended_webinars:"Mohlo by se Vám lĂbit",show:"Zobrazit",index:{title:"VzdÄ›lávacĂ webináře pro uÄŤitele",text:"Hledáte novĂ© podnÄ›ty, nápady a zdroje pro svou vĂ˝uku? SĂ©rie vzdÄ›lávacĂch webinářů zdarma nabĂzĂ konkrĂ©tnĂ tipy a nástroje, kterĂ© mĹŻĹľete okamĹľitÄ› vyuĹľĂt ve svĂ˝ch hodinách.",teasers:{public_stream:'VeĹ™ejnĂ˝ stream zdarma na <a target="_blank" href="https://www.youtube.com/ucitelnice">Youtube</a> a <a target="_blank" href="https://www.facebook.com/ucitelnice">Facebooku</a>',certificate:"Pro registrovanĂ© certifikát a prezentace",recording:'Záznamy dostupnĂ© ke zhlĂ©dnutĂ <a href="#zaznamy">v archivu</a>'},upcoming:"NadcházejĂcĂ webinář",upcoming_common_text:'Webinář sledujte na <a target="_blank" href="https://www.youtube.com/ucitelnice">Youtube</a> nebo <a target="_blank" href="https://www.facebook.com/ucitelnice">Facebooku</a>, pĹ™ĂpadnÄ› sledujte zpÄ›tnÄ› ze záznamu. Pokud se zaregistrujete, zĂskáte certifikát a prezentaci z webináře.',next_upcoming:"Dalšà plánovanĂ© webináře",watch_from_recordings:"Sledujte ze záznamu",lecturers:"LektoĹ™i",recordings_from_year:"Záznamy z roku {year}"}},author:{title:"Autor",title_plural:"AutoĹ™i",promo:{join:"PĹ™idejte se k autorĹŻm",become:"VytáhnÄ›te svĂ© nápady ze šuplĂku",register:"Zaregistrujte se a okamĹľitÄ› nahrávejte vlastnĂ vĂ˝ukovĂ© materiály. Inspirujte ostatnĂ uÄŤitele a zĂskejte odmÄ›nu za svou práci.",want_to_join:"Stát se autorem"},become:{button:"Stát se autorem",welcome:{headline:"Nenechte svĂ© materiály v šuplĂku. StaĹte se autorem.",text:"Máte dobrĂ© nápady? PodÄ›lte se o nÄ› a pomozte nám mÄ›nit vzdÄ›lávánĂ v ÄŚesku. AĹĄ majĂ dÄ›ti pestĹ™ejšà hodiny a uÄŤitelĂ© jednoduššà pĹ™Ăpravu.",benefits:{headline:["AutorskĂ˝ účet má spoustu vĂ˝hod. Tady jsou","4 nejvÄ›tšĂ",":"],check:["VĂce neĹľ 33 tisĂc spokojenĂ˝ch zákaznĂkĹŻ","AutomatizovanĂ˝ systĂ©m pro prodej","SdĂlĂme know-how, jak tvoĹ™it kvalitnĂ materiály","Stále novĂ© funkce pro zákaznĂky i autory"]}},process:{headline:["Jak se stát autorem?","Jednoduše!"],steps:{1:{title:"Zaregistrujte se",description:"VytvoĹ™te si na UÄŤitelnici autorskĂ˝ účet. Nezabere vám to vĂc neĹľ tĹ™i minuty."},2:{title:"Nahrajte materiál",description:"Vyberte materiál, o kterĂ˝ se chcete podÄ›lit se svÄ›tem a pĹ™idejte lákavĂ˝ náhledovĂ˝ obrázek."},3:{title:"Rychlá kontrola a je to",description:"My zkontrolujeme, Ĺľe všechno sedĂ, nic nechybĂ ani nepĹ™ebĂ˝vá a voilĂ ... je z vás autor."}},confirm:"Jdu do toho"},stats:{headline:"AutorĹŻ uĹľ máme pĹ™es 400. PĹ™idáte se?",items:["Vyplaceno autorĹŻm","ZákaznĂkĹŻ uÄŤitelnice","DennĂ návštÄ›vnost"]}},invoice:{title:"FakturaÄŤnĂ Ăşdaje autora",usage:"Tyto Ăşdaje pouĹľijeme pro mÄ›sĂÄŤnĂ vyúčtovánĂ."},page:{title:"Všichni autoĹ™i na jednom mĂstÄ›",text:"A proto vznikla UÄŤitelnice. UÄŤitelnice je mĂsto, kde nejen uÄŤitelĂ© prodávajĂ a nakupujĂ originálnĂ a v praxi vyzkoušenĂ© materiály pro vĂ˝uku.",search:{label:"Hledat mezi autory",placeholder:"Zadejte jmĂ©no autora"}},favourite:{add:"Sledovat autora",remove:"PĹ™estat sledovat",is_already:"Sledován",short:{add:"Sledovat",remove:"Nesledovat",is_already:"Sledován"},added:"Autor pĹ™idán do sledovanĂ˝ch",removed:"Autor odebrán ze sledovanĂ˝ch"},n_followers:"{count} sledujĂcĂch| {count} sledujĂcĂ| {count} sledujĂcĂch",count_followers:"PoÄŤet sledujĂcĂch",description:{show_more:"Zobrazit vĂce",show_less:"Zobrazit mĂ©nÄ›"},show_more:"Zobrazit dalšà autory",products:{featured:"VybranĂ© materiály",featured_add:"PĹ™idat vybranĂ˝ materiál",all:"Všechny materiály",exclusive:"Vaše materiály jen na UÄŤitelnici",discount_all:"Sleva na všechny materiály {discount} %",discount_selected:"Sleva na vybranĂ© materiály {discount} %",discount_exclusive:"Sleva na vybranĂ© materiály {discount} %",discount_active_none:"Sleva {discount} % s kĂłdem {code}",approval_info:{title:"Jak schvalujeme materiály?",list:["kaĹľdĂ˝ materiál otevĂráme a kontrolujeme","materiály schvalujeme vĹľdy ve všednĂ dny dopoledne","je-li s vašĂm materiálem vše v pořádku, obvykle je schválen do 24 hodin","máme-li k vašemu materiálu nÄ›jakĂ© doporuÄŤenĂ, informujeme vás o tom ve zprávÄ› nebo e-mailu"]}},progress:"Jak si vedete",promo_product:{title:"UKĂZKOVĂť MATERIĂL",download:"Stáhnout materiál zdarma",pill:"UkázkovĂ˝ materiál zdarma"},follower:{count:"PoÄŤet sledujĂcĂch",count_suffix:"sledujĂcĂch"},product_stats_info:"PodrobnĂ© statistiky najdete v detailu kaĹľdĂ©ho materiálu",product_not_found:"Autor zatĂm nenabĂzà žádnĂ© materiály",image_sources:{update_message:"Zdroje obrázkĹŻ upraveny"},preferences:{empty:"Nemám zaměřenĂ"},discount:{title:"Bonusová slevová akce ve dnech",info_0:"Vyberte jeden nebo vĂce materiálĹŻ prodávanĂ˝ch",info_1:"jen na UÄŤitelnici",info_2:"a zapojte se do slevovĂ© akce. UÄŤitelnice pĹ™idá {amount}% slevu na všechny vaše materiály.",info_link:"PodrobnĂ© podmĂnky akce a dalšà benefity pro materiály prodávanĂ© jen na UÄŤitelnici.",select:{text_0:"Máte",text_1:"jen na UÄŤitelnici.",link_text_2:"Jak vybrat dalšĂ?",text_3:"Sleva platĂ pro vybranĂ© materiály pouze po dobu akce, lze ji kdykoliv upravit.",title:"Zvolte výši slevy na všechny svĂ© materiály. Nastavená sleva platĂ pouze po dobu akce, lze ji kdykoliv upravit.",no_discount:"Nechci nastavit slevu"},selected:{title:"Nastavili jste {discount}% slevu na vybranĂ© materiály.",text_0:"Sleva platĂ na",text_1:"K vašà slevÄ› dá UÄŤitelnice dalšĂch {discount} % na všechny vaše produkty.",link_text_3:"VĂce o slevovĂ© akci."},valid_range:"PlatĂ ve dnech",saved:"Sleva uloĹľena",no_changes:"ŽádnĂ© zmÄ›ny",automatic_discount_saved:"NastavenĂ bylo uloĹľeno"},settlement:{confirm:{title:"PotvrzenĂ vyplacenà částky pro autora",text:"Opravdu si pĹ™ejete potvrdit vyplacenà částky?"},bank_number:"ÄŚĂslo účtu pro vĂ˝platu",vat_payer_payout_tooltip:"Jako plátce DPH pošlete fakturu k proplacenĂ na e-mail info{'@'}ucitelnice.cz."},id:"IÄŚ",vat_id:"DIÄŚ",commission:"OdmÄ›na autora",hmat_commission:"OdmÄ›na za H-materiály",link:"Odkaz na váš účet",profile_image_upload:"NahránĂ profilovĂ©ho obrázku",profile_updated:"Profil upraven",slug_not_available:"Tuto URL jiĹľ pouĹľĂvá jinĂ˝ autor",only_on_ucitelnice_updated:'PĹ™Ăznak "Pouze na UÄŤitelnici" byl upraven.',organization:{title:"Organizace",not_found:"Organizace nebyla nalezena",next:"Dalšà organizace"},not_found:"Autor nebyl nalezen",appeal:{verified:"Pro odemknutĂ tĂ©to funkce je tĹ™eba bĂ˝t ověřenĂ˝m autorem.",product_count:"Pro odemknutĂ tĂ©to funkce nahrajte ješte {count}",product_count_verified:["Po nahránĂ {count} materiálĹŻ se mĹŻĹľete stát ověřenĂ˝m autorem a zĂskáte pĹ™Ăstup","k nÄ›kolika uĹľiteÄŤnĂ˝m funkcĂm."],product_count_advanced:["Po nahránĂ {count} materiálĹŻ se stanete pokroÄŤilĂ˝m autorem a zĂskate","dalšà uĹľiteÄŤnĂ© funkce."]},only:"Jen pro autory",notification:{type:{custom_notification:"Aktualita",product_notification:"Materiály",achievement:"OcenÄ›nĂ"},product_notification:{approval:{title:'Materiál "{product}" byl schválen.'},revision:{title:'Materiál "{product}" byl vrácen k revizi.'},rejection:{title:'Materiál "{product}" byl zamĂtnut.'},complaint:{title:'Materiál "{product}" byl reklamován.'}},achievement:{summarization:{title:"ShrnutĂ!",text:"PodĂvejte se, jak se vám zatĂm daĹ™ilo."},total_paid_to_author:{title:"PLACEHOLDER: Celková vĂ˝plata",text:"PLACEHOLDER: Za vaše materiály bylo vyplaceno {number} KÄŤ."},total_products_sold:{title:"PLACEHOLDER: Gratulujeme, právÄ› ste prodali {number} materiálĹŻ!",text:"PLACEHOLDER: Predali ste vaše prvĂ© materiály."}}}},dashboard:{author:{header:{payout_text:"Prodeje za vÄŤerejšek",total_sells:"ProdanĂ© materiály",others_see:"Jak vidĂ mĹŻj profil ostatnĂ?",tabs:{overview:"PĹ™ehled",live:"AktuálnÄ›",products:"NahranĂ© materiály",stats:"Statistiky",billing:"VyúčtovánĂ",product_group:"Skupiny materiálĹŻ",marketing:"Promo a slevy",settings:"NastavenĂ"}},news:{title:"Novinky",back:"ZpÄ›t na novinky",empty:"ŽádnĂ© novinky",tabs:{all:"Vše",news:"Aktuality",products:"Materiály",achievements:"OcenÄ›nĂ"}},progress:{track:{prefix:"Nahrajte ješte ",gold:"Jste jednĂm z našich nejlepšĂch autorĹŻ.",silver:["a mĹŻĹľete se stát ověřenĂ˝m autorem. Ten se vyznaÄŤuje stabilnÄ› vysokou kvalitou materiálĹŻ, nemusĂ ÄŤekat na schvalovánĂ a má k dispozici","dalšà uĹľiteÄŤnĂ© funkce.","Dosáhli jste hranice 50 nahranĂ˝ch materiálĹŻ. UĹľ brzy se Vám ozveme ohlednÄ› statusu “OvěřenĂ˝ autor“."],bronze:["a zĂskejte","rozšĂĹ™enĂ© funkce","pro svĹŻj e-shop."]},list:{headline:"Jak zaÄŤĂt prodávat?",text:"SplĹte následujĂcĂ Ăşkoly a zpĹ™ĂstupnÄ›te si statistiky prodejĹŻ.",items:{title:["VytvoĹ™te si autorskĂ˝ profil","Nahrajte profilovĂ˝ obrázek","VyplĹte Ăşdaje “O sobě”","ProjdÄ›te si checklist pro pĹ™Ăpravu prvnĂho materiálu","Nahrajte svĹŻj prvnĂ materiál","VytvoĹ™te promo materiál zdarma"],text:["Gratulujeme, uĹľ jen pár krokĹŻ k tomu, abyste se stali plnohodnotnĂ˝m autorem na UÄŤitelnici.","ProfilovĂ˝ obrázek je jako vaše logo. ZákaznĂci tak na prvnĂ pohled poznajĂ váš profil.","PĹ™edstavte se svĂ˝m zákaznĂkĹŻm ÄŤĂm jsou vaše materiály unikátnĂ.","Materiály by mÄ›ly mĂt urÄŤitĂ© standardy, kterĂ© je dobrĂ© dodrĹľovat, aby se vám daĹ™ilo prodávat.","Jakmile schválĂme prvnĂ materiál, mĹŻĹľete zaÄŤĂt prodávat.","PĹ™ipravte pro svĂ© zákaznĂky ochutnávku vašà práce, kterou si stáhnou zdarma."]}},list_new:{items:{title:["Nahrajte profilovĂ˝ obrázek","VyplĹte Ăşdaje “O sobě”","ProjdÄ›te si checklist pro pĹ™Ăpravu prvnĂho materiálu","Nahrajte svĹŻj prvnĂ materiál","VytvoĹ™te promo materiál zdarma","ZĂskejte rozšĂrenĂ© funkce"],text:["ProfilovĂ˝ obrázek je jako vaše logo. ZákaznĂci tak na prvnĂ pohled poznajĂ váš profil.","PĹ™edstavte se svĂ˝m zákaznĂkĹŻm ÄŤĂm jsou vaše materiály unikátnĂ.","Materiály by mÄ›ly mĂt urÄŤitĂ© standardy, kterĂ© je dobrĂ© dodrĹľovat, aby se vám daĹ™ilo prodávat.","Jakmile schválĂme prvnĂ materiál, mĹŻĹľete zaÄŤĂt prodávat.","PĹ™ipravte pro svĂ© zákaznĂky ochutnávku vašà práce, kterou si stáhnou zdarma.",["Nahrajte ještÄ› "," materiálĹŻ a ","zĂskejte rozšĂĹ™enĂ© ","funkce pro svĹŻj e-shop."]]}}},tips:{headline:"Inspirace pro autory",gold_silver:["Kategorie. ProÄŤ jsou tak dĹŻleĹľitĂ©?","Autorem na UÄŤitelnici. Jak podnikat jednoduše?","DigitálnĂ tvorba. V ÄŤem dÄ›lat materiály?","Fonty. Jak se odlišit a kde je najĂt?"],bronze:["PrĹŻvodnĂ list. ProÄŤ je dĹŻleĹľitĂ˝?","NáhledovĂ˝ obrázek. Jak zaujmout zákaznĂky?","Obrázky. Kde je hledat a jak je správnÄ› pouĹľĂt?","Dalšà otázky autorĹŻ"]},feedback:{headline:"ZpÄ›tná vazba",text:"Moc rádi si pĹ™eÄŤteme váš názor na fungovánĂ UÄŤitelnice. Nebojte se nám napsat, jak se vám tu lĂbĂ. ",button:"Napsat zpÄ›tnou vazbu"},products:{headline:{default:"NahranĂ© materiály",latest:"Naposledy nahranĂ© materiály",top:"Vaše TOP 7 produkty"},tabs:["Všechny materiály","Materiály k revizi","Reklamace"]},add_more_products:{products:"materiálĹŻ | materiál | materiály | materiálĹŻ"},statistics:{header:{weekly:{tooltip:"MezitĂ˝dennĂ srovnánĂ: vĂ˝dÄ›lek v aktuálnĂm tĂ˝dnu oproti stejnĂ©mu obdobĂ v minulĂ©m tĂ˝dnu.",earn:"OdmÄ›na tento tĂ˝den",sells:"Prodáno tento tĂ˝den"},monthly:{tooltip:"Procento vydÄ›lanĂ˝ch penÄ›z oproti minulĂ©mu mÄ›sĂci. 100% znamená dosaĹľenĂ stejnĂ©ho vĂ˝dÄ›lku jako minulĂ˝ mÄ›sĂc.",earn:"OdmÄ›na za mÄ›sĂc",sells:"Prodáno tento mÄ›sĂc"}}},checklist_changed:"NastavenĂ checklistu aktualizováno",marketing:{promo_product:"Promo materiál",discounts:"Slevy"},settings:{tabs:{profile_image:"ProfilovĂ˝ obrázek",informations:"ZákladnĂ informace",socials:"SociálnĂ sĂtÄ›",image_sources:"Zdroje obrázkĹŻ",author_presentation:"Promo materiál",cover_image:"ĂšvodnĂ obrázek",featured_products:"VybranĂ© materiály",invoice_data:"Vaše fakturaÄŤnĂ Ăşdaje",product_groups:"Skupiny materiálĹŻ"},basic_settings:{title:"AutorskĂ˝ profil",info_text:"Rozepište se o svĂ© práci a materiálech. ÄŚĂm vĂc toho prozradĂte, tĂm lĂ©pe se budou prodávat. Tak se toho nebojte.",name:"Vaše jmĂ©no",name_update_link:"ZmÄ›nit v nastavenà účtu",public_alias:"Název e-shopu",url:"VlastnĂ URL",slug_placeholder:"nazev-eshopu",href:"Webová stránka",description:"NÄ›co málo o vás",description_placeholder:"Rozepište se vĂce o sobÄ› a svĂ˝ch materiálech.",social:{title:"SociálnĂ sĂtÄ›",web:"Odkaz na vaši webovou stránku nebo blog",facebook:"Odkaz na váš Facebook účet",instagram:"Odkaz na váš Instagram účet",youtube:"Odkaz na váš YouTube účet"},only_on_ucitelnice:{title:"Všechny materiály jsou prodávány pouze na UÄŤitelnici",text:"ZaškrtnutĂm budou oznaÄŤeny všechny vaše materiály. V editaci produktu lze oznaÄŤit jen vybranĂ© materiály.",tooltip:["zobrazenĂ v chystanĂ© sekci “Jen na UÄŤitelnici”","moĹľnost vĂ˝bÄ›ru do FB reklamy","zapojenĂ do speciálnĂch promo akcĂ","pĹ™ednostnĂ zaĹ™azenĂ do newsletteru"]},info:{title:"ZákladnĂ informace",basic:"ZákladnĂ Ăşdaje"},image:{title:"ProfilovĂ˝ obrázek",heading:"Vyberte obrázek",local_title:"Vybrat soubor",drop:"PĹ™etáhnÄ›te sem soubory",or:"nebo",button:"Vyberte soubor",upload:"Nahrát",uploading:"NahrávánĂ...",cancel:"Zrušit",message_update:"ProfilovĂ˝ obrázek ĂşspěšnÄ› zmÄ›nenĂ˝",message_delete:"ProfilovĂ˝ obrázek ĂşspěšnÄ› zmazán"},focus:{title:"JakĂ© je vaše hlavnĂ zaměřenĂ?",text:"ZobrazĂ se ve vašem profilu a zlepšà doporuÄŤovánĂ ve vyhledávánĂ."},save_button:"UloĹľit"},images_sources:{validation_message:"ProsĂm, zkontrolujte všechna pole."},featured_products:{info:"MĹŻĹľete si vybrat aĹľ ÄŤtyĹ™i materiály, kterĂ© zobrazĂte svĂ˝m zákaznĂkĹŻm v hornà části profilu. VybĂrejte takovĂ©, kterĂ© by urÄŤitÄ› nemÄ›li minout.",messages:{already_present:"Materiál je jiĹľ pĹ™idán",not_present:"Materiál nenĂ pĹ™idán",attached:"Materiál byl pĹ™idán",detached:"Materiál byl odebrán"}},promo_material:{text:["Promo materiál sloužà jako ukázka vašà práce. ZákaznĂci tak majà šanci zdarma zjistit jak vaše materiály vypadajĂ a pravdÄ›podobnÄ›ji si koupĂ plnĂ© verze.","Promo materiál se zobrazĂ v samostatnĂ©m bloku na profilu, nenĂ zaĹ™azen do seznamu nahranĂ˝ch materiálĹŻ k prodeji."],share:"SdĂlet promo materiál",delete:{button:"Smazat promo materiál",title:"SmazánĂ promo materiálu",text:"Opravdu si pĹ™ejete smazat promo materiál?"},cover_image:"NáhledovĂ˝ obrázek",file:{title:"NahránĂ souboru",text:"Pokud materiál obsahuje vĂce souborĹŻ, vytvoĹ™te z nich jeden ZIP soubor."},details:{basic_info:"ZákladnĂ informace",title:{label:"Název",placeholder:"Název materiálu ..."},description:{label:"Popis",placeholder:"Popište v krátkosti materiál ..."}},categories:"Kategorie materiálu",button:"UloĹľit",messages:{file_uploaded:"Soubor nahrazen.",details_saved:"ZmÄ›ny uloĹľeny.",deleted:"Promo materiál byl smazán."}},cover_image:{info:"ĂšvodnĂ obrázek je to prvnĂ, co zákaznĂk uvidĂ a na základÄ› ÄŤeho si udÄ›lá pĹ™edstavu o vašà práci. Vyberte tedy obrázek, kterĂ˝ vás a vaše materiály dobĹ™e vystihuje.",tip:["TIP:","Obrázek mĹŻĹľete obmÄ›Ĺovat i ÄŤastÄ›ji. TĹ™eba podle sezĂłny nebo svĂ˝ch nejnovÄ›jšĂch materiálĹŻ."],headline:["JakĂ© jsou rozmÄ›ry ĂşvodnĂho obrázku?","Nahrajte ĂşvodnĂ obrázek"],resolution:"MinimálnĂ rozmÄ›r 1170px x 108px",canva_template:"Ĺ ablona v CanvÄ›",messages:{saved:"ĂšvodnĂ obrázek nastaven"}}}},user:{header:{become_author:"Stát se autorem",credit_amount:"Stav osobnĂho kreditu",school_credit:"Stav školnĂho kreditu",my_school:"Moje škola",school_management:"Správa školnĂho účtu"},tabs:["ZakoupenĂ© materiály","OblĂbenĂ© materiály","Finance","NastavenĂ"],products:{user:"OsobnĂ materiály",school:"Ĺ kolnĂ materiály",no_products:{title:"ZatĂm jste si u nás nic nekoupili",title_wishlist:"ZatĂm jste si do oblĂbenĂ˝ch materiálĹŻ nic neuloĹľili",text:"Chcete se podĂvat na ty nejoblĂbenÄ›jšĂ, jestli by se nehodily i vám?",text_wishlist:"Jakmile si nÄ›jakĂ˝ materiál oznaÄŤĂte srdĂÄŤkem, najdete ho tady. Po zakoupenĂ zmizĂ.",button:"ProhlĂ©dnout materiály",footer_text:"NemĹŻĹľete najĂt jiĹľ zakoupenĂ© materiály? MoĹľná jste se omylem pĹ™ihlásili jinĂ˝m e-mailem (napĹ™. pĹ™es Facebook).",footer_link:"PĹ™ihlásit se pod jinĂ˝m účtem"}},wishlist:{title:"OblĂbenĂ© materiály",add_to_cart_all:"VloĹľit vše do košĂku",table:{products:"Materiál",price:"Cena s DPH",add_to_cart:"VloĹľit do košĂku",already_in_cart:"JiĹľ v košĂku",remove_from_wishlist:"Odebrat"},banner:{title:"V oblĂbenĂ˝ch máte materiály za ",text:"Prozkoumejte školnà účty a sdĂlejte vaše oblĂbenĂ© materiály s kolegy.",link_text:"VĂce o školnĂch účtech"}},messages:{title:"Zprávy",ucitelnice:"Chatujte s UÄŤitelnicĂ",send:"Odeslat",placeholder:"Vaše zpráva ...",search_label:"Vyhledejte uĹľivatele",load_all:"NaÄŤĂst všechny správy",no_messages:"Sem nám klidnÄ› mĹŻĹľete napsat. Vše ÄŤteme a co nejdĹ™Ăve odpovĂme.",faq:{title:"ÄŚasto se ptáte",author:["PrĹŻvodnĂ list. ProÄŤ je dĹŻleĹľitĂ˝?","NáhledovĂ˝ obrázek. Jak zaujmout zákaznĂky?","Obrázky. Kde je hledat a jak je správnÄ› pouĹľĂt?","ÄŚastĂ© otázky autorĹŻ"],customer:["MĹŻĹľu se takĂ© stát autorem?","Soubor mi nejde otevĹ™Ăt. Co s tĂm?","PDF se tiskne špatnÄ›. Jak to Ĺ™ešit?","MĹŻĹľe mi materiály zaplatit škola?"]}},finances:{title:"Všechny platby hezky pohromadÄ›",text:"DaĹovĂ˝ doklad jsme vám hned po zaplacenĂ poslali na e-mail. V tabulce nĂĹľe se k nim mĹŻĹľete kdykoliv vrátit. V pĹ™ĂpadÄ› jakĂ˝chkoliv otázek",credit_order_button:"DobĂt kredit",invoice_info:"FakturaÄŤnĂ Ăşdaje",update_invoice_info:"Upravit",tabs:["DaĹovĂ© doklady","NeuhrazenĂ© objednávky","ZaplacenĂ© objednávky","DobitĂ kreditu"],tables:{date:"Datum vystavenĂ",amount:"Částka",invoice_number:"ÄŚĂslo faktury",order_number:"Objednávka ÄŤ.",invoice:"Faktura",proforma_invoice:"Zálohová faktura",no_documents:"ŽádnĂ© doklady",no_unfinished_orders:"ŽádnĂ© nedokonÄŤenĂ© objednávky",no_paid_orders:"ŽádnĂ© zaplacenĂ© objednávky",no_credit_orders:"ŽádnĂ© dobitĂ kreditu"}},settings:{tabs:{1:"Profil",2:"Heslo",3:"Vaše zájmy",4:"FakturaÄŤnĂ Ăşdaje",5:"Vaše škola"},profile:{title:"UĹľivatelskĂ˝ profil",text:"Upravte si jmĂ©no nebo vyberte, co vás nejvĂce zajĂmá. Tak vám vám mĹŻĹľeme nabĂzet materiály, kterĂ© se vám budou nejlĂ©pe hodit.",name_surname_label:"Vaše jmĂ©no",name_surname_placeholder:"Vaše jmĂ©no",email_label:"Váš e-mail",email_placeholder:"Váš e-mail",email_tooltip:"PotĹ™ebujete zmÄ›nit e-mail? Napište nám zprávu.",save:"UloĹľit nastavenĂ"},password:{title:"NastavenĂ hesla",text:"Heslo si nastavte tak, aby bylo dostateÄŤnÄ› bezpeÄŤnĂ©. Velmi silná hesla obsahujĂ typicky vĂce neĹľ 8 znakĹŻ, mix velkĂ˝ch a malĂ˝ch pĂsmen, ÄŤĂslic a speciálnĂch znakĹŻ. Ale volba je na vás.",new_password:"NovĂ© heslo",password_confirmation:"PotvrzenĂ hesla",new_password_placeholder:"Vaše novĂ© heslo",password_confirmation_placeholder:"Znovu zadejte Vaše novĂ© heslo",save:"ZmÄ›nit heslo"},preferences:{title:"Vaše zájmy",text:"Podle zájmĹŻ vám budeme zobrazovat na prvnĂch mĂstech materiály, kterĂ© se vás tĂ˝kajĂ. Vyberte si, co chcete vĂdat.",save:"UloĹľit zájmy"},invoice_info:{title:"FakturaÄŤnĂ Ăşdaje",text:["Ăšdaje se zobrazĂ na všech dokladech. Pokud sdĂlĂte materiály v rámci školy, zkuste prozkoumat","školnà účet"],save:"UloĹľit zmÄ›ny",form:{first_name:{label:"JmĂ©no",placeholder:""},last_name:{label:"PĹ™ĂjmenĂ",placeholder:""},invoice_company:{label:"Název organizace",placeholder:"Jazyková škola s.r.o."},invoice_ico:{label:"IÄŚO",placeholder:"12345678"},invoice_dic:{label:"DIÄŚ (nepovinnĂ©)",placeholder:"CZ12345678"},invoice_address:{label:"Ulice a ÄŤĂslo popisnĂ©",placeholder:"Okrajová 1111/9"},invoice_city:{label:"MÄ›sto",placeholder:"Lohenice"},invoice_psc:{label:"PSÄŚ",placeholder:"333 00"}},school_ad:{title:"Chcete sdĂlet materiály?",text:"PodĂvejte se na UÄŤitelnici pro školy. Je na sdĂlenĂ mezi kolegy jako stvoĹ™ená.",button:"UÄŤitelnice pro školy"}},school:{title:"Vaše škola",text:"Je to vaše škola? Pokud uĹľ to neplatĂ, mĹŻĹľete ji kdykoliv opustit. NezapomeĹte ale, Ĺľe ztratĂte pĹ™Ăstup ke sdĂlenĂ˝m školnĂm materiálĹŻm.",credit_increase_text:"Ĺ kolnĂ kredit mĹŻĹľe dobĂt správce vašà školy",leave:{button:"Opustit školu",not_yours:"NenĂ to vaše škola, nebo k nĂ uĹľ nechcete bĂ˝t pĹ™iĹ™azen?",modal:{title:"OpuštÄ›nà školy",text:"Opravdu chcete opustit školu? ZtratĂte tĂm pĹ™Ăstup ke sdĂlenĂ˝m materiálĹŻm a nebudete moci nakupovat za školnĂ kredity.",button:"Opustit",cancel:"Zrušit"}}}}}},newsletter:{headline:"Objevte, co funguje ve vĂ˝uce právÄ› teÄŹ",text:"KaĹľdĂ˝ ÄŤtvrtek vám pošleme newsletter s peÄŤlivÄ› vybranĂ˝mi tipy na hotovĂ© materiály, nápady do vĂ˝uky, pozvánĂ na webináře a speciálnĂ akce.",form:{email:{placeholder:"Zadejte váš e-mail",label:"Váš e-mail"},submit:"Chci novinky",message:{success_headline:"DÄ›kujeme!",error_short:"Vyskytla se chyba",success:"Za okamĹľik vám dorazĂ potvrzovacĂ e-mail.",error:"PĹ™i registraci do newsletteru se vyskytla chyba. Zkuste to prosĂm pozdÄ›ji."},gdpr:"Zásady zpracovánĂ osobnĂch ĂşdajĹŻ"}},settlement_payments:{send:"Odeslat k podpisu",sent:"PlatebnĂ pĹ™Ăkazy byly zaslány do Fio Banky.",error:"PĹ™i zasĂlánĂ platebnĂch pĹ™ĂkazĹŻ se vyskytla chyba.",warning:"[WARNING] PĹ™i zasĂlánĂ platebnĂch pĹ™ĂkazĹŻ se vyskytla varovánĂ. Platby byly zpracovány, ale pro jistotu to skontrolujte v Fio Bank.",nothing_to_send:"Nemám žádnĂ© pĹ™Ăkazy k poslánĂ.",table:{name:"JmĂ©no",amount:"Částka",variable_symbol:"VS",date:"Datum",sum:"Spolu:"},nothing_to_show:"MomentálnÄ› nejsou žádnĂ© pĹ™Ăkazy ÄŤekajĂcĂ k poslánĂ."},pagination:{previous:"« pĹ™edchozĂ",next:"dalšà »"},creditinvoices:{headline:"FA kredit"},school:{title:"Ĺ koly",info:{welcome:{headline:"Ĺ kolnĂ materiály pro vás i vaše kolegy",text:"ZaloĹľte spoleÄŤnĂ˝ účet pro celou vaši školu. Vše platĂte z jednoho účtu, a co koupĂte, mohou pouĹľĂvat všichni vaši kolegovĂ©. NeomezenÄ› a napořád.",advantages:{text:["Ĺ kolnà účet má spoustu vĂ˝hod. Tady jsou ","4 nejvÄ›tšĂ"],items:["Všechny materiály sdĂlĂte s ostatnĂmi","Platby Ĺ™ešà pĹ™Ămo škola","O materiály nikdy nepĹ™ijdete","KolegovĂ© se vzájemnÄ› inspirujĂ"]}},functionality:{headline:"Jak to celĂ© funguje?",1:{headline:"Stanete se správcem pro celou školu",text:"Je jedno jestli jste Ĺ™editel, zástupce nebo uÄŤitel. Zaregistrovat školu mĹŻĹľou všichni. Jeden z vás bude mĂt pak celĂ˝ účet pod palcem.",link:"Co všechno dÄ›lá správce?"},2:{headline:"PĹ™izvete svĂ© kolegy",text:"PozvÄ›te do vašà UÄŤitelnice ty, kteřà uĹľ uÄŤitelskĂ˝ účet majĂ, ale i ĂşplnĂ© nováčky. AĹĄ mĹŻĹľete sdĂlet všechny materiály spoleÄŤnÄ›.",link:"Na co se ÄŤasto ptáte?"},3:{headline:"A nikdo na to uĹľ nebude sám",text:"SpoleÄŤnÄ› s kolegy si vymÄ›nĂte zkušenosti, nasdĂlĂte, kterĂ© materiály dobĹ™e fungujĂ, nebo co dÄ›ti bavilo.",link:"ZjistÄ›te, zda u vás uĹľ máte UÄŤitelnici"}},summary:{headline:["Ĺ kolnà účet","v kostce"],items:["ZakoupenĂ© materiály patřà škole a ne jednotlivĂ˝m uÄŤitelĹŻm. KdyĹľ nÄ›kdo odejde, o žádnĂ© materiály nepĹ™ijdete.","MĂsto toho, aby si kaĹľdĂ˝ poradil sám, radĂ se s ostatnĂmi. VĂ˝uka je dĂky tomu pestĹ™ejšà pro uÄŤitele i žáky.","Doklady od nákupĹŻ všech uÄŤitelĹŻ najdete na jednom mĂstÄ›.","NovĂ© materiály mĹŻĹľete kdykoliv dokoupit, aby vám v digitálnĂ knihovnÄ› nic nechybÄ›lo.","Účtenky k proplacenĂ putujĂ jednĂm klikem rovnou do účtárny."],button:"VytvoĹ™it školnà účet"},faq:{headline:"ÄŚastĂ© dotazy ke školnĂm účtĹŻm",text:["NĂĹľe najdete odpovÄ›di na otázky, se kterĂ˝mi se na nás ÄŤasto obracĂte. Pokud nenajdete odpověď nebo si s něčĂm nevĂte rady, napište nám na e-mail","nebo rovnou zavolejte na telefonnĂ ÄŤĂslo ",". Rádi vám poradĂme."]}},comment:{add:"PĹ™idáni komentáře ku škole",edit:"Ăšprava komentáře ku škole"},menu:"Ĺ kolnà účet",management:"Správa školy",register:"Registrace školy",register_online:"ZaloĹľte si školnà účet online",back:"ZpÄ›t na školu",missclick:"Bylo to omylem? Dej nám vÄ›det.",your_school:"Vaše škola",amount:"částka",credits:"školnĂch kreditĹŻ",join:"PĹ™idat se ke škole",leave:{title:"Opustit školu",prompt:"SkuteÄŤne chcete opustit školu?"},not_logged_in:"Nejste pĹ™ihlášen k žádnĂ© škole",error:{already_in_school:"UĹľ jste zaregistrován ve škole",you_need_to_login:"MusĂte se pĹ™ihlásit"},not_selected:"Váš účet nemá vybranou školu",select_mine:"Vybrat školu ve kterĂ© uÄŤĂm",steps:{1:"1. Vaše škola",2:"2. Ĺ kolnà účet",3:"3. PotvrzenĂ"},user_dashboard:{sidebar:{title:"Dobità školnĂ©ho kreditu",text:"Kredit školy mĹŻĹľe dobĂt pouze správce. Dejte mu vÄ›dÄ›t, Ĺľe máte zájem o dalšà materiály z UÄŤitelnice.",manager:"Správce"}},vop:{title:"Se spuštÄ›nĂm školnĂch účtĹŻ vstoupĂ v platnost novĂ© VšeobecnĂ© obchodnĂ podmĂnky.",points_title:"Co se zmÄ›nilo?",points:["Lze si zaloĹľit školnà účet (pouze školy, kterĂ© eviduje MĹ MT)","Pokud kupuje materiál škola, je povinna vyuĹľĂt školnĂ licenci","Ĺ kola mĹŻĹľe poskytnout materiál pouze tÄ›m uĹľivatelĹŻm, se kterĂ˝mi má uzavĹ™en pracovnÄ›-právnĂ vztah","Ĺ kola mĹŻĹľe dobĂt kredit, kterĂ˝ pak uĹľivatelĂ© tĂ©to školy mohou ÄŤerpat"],show_all:"CelĂ© znÄ›nĂ najdete zde.",show_more:"VĂce informacĂ o školnĂch účtech najdete zde."},step:{pick:{text:"V jakĂ© škole pracujete?",placeholder:"Zadejte název školy, mÄ›sto, ulici, IÄŚO nebo IZO",not_found:"BohuĹľel jsme žádnou školu nenašli. Vyhledejte ji napĹ™. podle IÄŚO",ico:"IÄŚO",found_schools:"VyhledanĂ© školy",picked_school:"Vaše škola",manager_name:"JmĂ©no správce",manager_email:"KontaktnĂ e-mail správce",message_registered:"Dobrá zpráva! Vaše škola uĹľ UÄŤitelnici má.",message_unregistered:"Vaše škola zatĂm účet na UÄŤitelnici nemá. PojÄŹte ho vytvoĹ™it.",button_registered:"PĹ™idejte se k vašà škole",button_unregistered:"VytvoĹ™it školnà účet"},registered:{headline:["Dobrá zpráva!"," Vaše škola uĹľ UÄŤitelnici má. PĹ™idejte se."],text:"Co teÄŹ bude dál?",list:["Zkontrolujte vaše Ăşdaje.","My odešleme vaši žádost s Ăşdaji pĹ™Ămo správci školnĂho účtu.","Jakmile správce schválĂ vaši žádost, dáme vám hned vÄ›dÄ›t na e-mail.","Pak uĹľ mĹŻĹľete rovnou vybĂrat materiály."],form:{title:"Jsou vaše Ăşdaje v pořádku?",name:{label:"Vaše jmĂ©no",placeholder:"Zadejte vaše jmĂ©no a pĹ™ijmenĂ"},email:{label:"Váš e-mail",placeholder:"Zadejte váš kontaktnĂ e-mail",cant_change_text:"Zde e-mail nelze zmÄ›nit. MĹŻĹľete se odhlásit a pĹ™ihlásit/registrovat pod jinĂ˝m účtem (e-mailem)"},note:{label:"Poznámka pro správce školy",placeholder:"Napište poznámku správci školy..."},checkbox:'Prohlašuji, Ĺľe pracuji ve výše uvedenĂ© škole a souhlasĂm s <a href="/informace/podminky-nakupu" target="_blank">obchodnĂmi podmĂnkami</a>',button:"Odeslat žádost a pĹ™idat se ke školnĂmu účtu"},saved:"Žádost jsme odeslali správci."},unregistered:{headline:"Je to vaše škola?",text:"Co ÄŤekat od správcovstvà školnĂho účtu?",list:["Schvalujete pĹ™Ăstupy svĂ˝ch kolegĹŻ","Staráte se o finance, doklady a dobĂjenĂ kreditu","Budete to vy, s kĂ˝m budeme Ĺ™ešit všechny vaše poĹľadavky a dotazy","Pak uĹľ mĹŻĹľete rovnou vybĂrat materiály."],list_footer:["SprávcovstvĂ nemusĂ bĂ˝t navĹľdy. Roli mĹŻĹľete kdykoliv pĹ™edat nÄ›komu jinĂ©mu.","KlidnÄ› se ozvÄ›te",", pokud máte dalšà otázky nebo nápad, co zlepšit. Jsme kniha otevĹ™ená."],form:{title:"JeštÄ› kontakt na vás, a je to.",text:"ZobrazĂ se vašim kolegĹŻm, aĹľ se budou chtĂt pĹ™idat k vašemu školnĂmu účtu.",name:{label:"Vaše jmĂ©no",placeholder:"Zadejte Vaše jmĂ©no a pĹ™ijmenĂ"},email:{label:"Váš e-mail",placeholder:"Zadejte Váš kontaktnĂ e-mail"},checkbox:'Prohlašuji, Ĺľe pracuji ve výše uvedenĂ© škole a souhlasĂm s <a href="/informace/podminky-nakupu" target="_blank">obchodnĂmi podmĂnkami</a>',button:"VytvoĹ™it školnà účet"},saved:"Ĺ kolnà účet aktivovanĂ˝."}},thanks:{registered:{title:"Vaše žádost uĹľ putuje ke správci školnĂho účtu"},unregistered:{title:"A je to! Váš školnà účet je na svÄ›tÄ›.",text:"Do mailu jsme vám poslali vše, co budete pro rozjezd účtu na UÄŤitelnici potĹ™ebovat.",button:"Prozkoumat UÄŤitelnici"},help:{title:"PotĹ™ebujete poradit?",text:"VyuĹľite naše internĂ© správy a napĂšte nám. Team UÄŤitelnice sa vám bude rád venovaĹĄ.",write_message:"Napsat zprávu"}},login:{text:["Ke školnĂmu uÄŤtu se mĹŻĹľete pĹ™idat jakmile se pĹ™ihlásĂte. ","Pokud ještÄ› osobnà účet nemáte, vytvoĹ™te si ho ","tady bÄ›hem chvilky"],button_login:"PĹ™ihlásit se",button_register:"VytvoĹ™it osobnà účet",headline:"PĹ™ihlaste se do svĂ©ho účtu"},advertisement:{registered:{headline:"ProÄŤ školnà účty?",checks:["SdĂlenĂ materiálĹŻ mezi uÄŤiteli ve vašà škole","Nákupy materiálĹŻ za vás platà škola","PĹ™Ăstup ke všem školnĂm materiálĹŻm","Navzájem se s kolegy inspirujete a sdĂlĂte doporuÄŤenĂ"]},unregistered:{headline:"ZaloĹľenà školy na UÄŤitelnici bez rizika",checks:["Registrovat školu mĹŻĹľe uÄŤitel i Ĺ™editel. Je to jedno.","Správce mĹŻĹľete pozdÄ›ji klidnÄ› zmÄ›nit","Nejlepšà správce je ten, kdo uĹľ UÄŤitelnici aktivnÄ› pouĹľĂvá","PlatĂte pouze za materiály, kterĂ© si vyberete. ŽádnĂ˝ paušál."]}},email:{unregistered:{subject:"Ĺ kolnà účet máte pĹ™ipravenĂ˝"},registered:{employee:{subject:"Odeslali jsme žádost o pĹ™Ăstup ke školnĂmu účtu"},confirmed:{subject:"Vaše žádost o pĹ™Ăstup ke školnĂmu účtu byla schválena"},manager:{subject:"Žádost o pĹ™Ăstup ke školnĂmu účtu"}}},admin:{school:{headline:"Administrace školy",budget:{whole_budget:"CelkovĂ˝ dostupnĂ˝ rozpoÄŤet",add:"PĹ™idat rozpoÄŤet",remove:"Odebrat rozpoÄŤet",modal:{comment:{label:"Komentář",placeholder:"Komentář k ĂşpravÄ› školnĂho kreditu"},add:{title:"PĹ™idat rozpoÄŤet škole",text:"PĹ™idánĂ rozpoÄŤtu škole textovĂ˝ popis",label:"Částka pro pĹ™idánĂ",placeholder:"Zadejte částku pro pĹ™idánĂ"},remove:{title:"Odebrat rozpoÄŤet škole",text:"Odebrat rozpoÄŤet škole textovĂ˝ popis",label:"Částka pro odebránĂ",placeholder:"Zadejte částku pro odebránĂ"},after_change:"Po uloĹľenĂ bude školnĂ rozpoÄŤet:",button:"UloĹľit"},messages:{budget_added:"Ĺ kolnĂ rozpoÄŤet pĹ™idán",budget_removed:"Ĺ kolnĂ rozpoÄŤet odebrán",budget_less_than_amount:"NemĹŻĹľete odebrát vĂce rozpoÄŤtu jak škola má",invoice_confirmed:"PoloĹľka byla potvrzena"}},tabs:{employees:{title:"KolegovĂ©",budget:"RozpoÄŤet pro zamÄ›stnance",add_manager_role:"PĹ™idat správce",remove_manager_role:"Odebrat správce"},finances:{title:"Doklady a objednávky",children:{invoices:"Faktury",transactions:"Platby"}},downloads:{title:"Ĺ kolnĂ materiály"}}},all_schools:{headline:"Seznam škol",all:"Všechny školy",registered:"RegistrovanĂ© školy",adding:"PĹ™idanà školy"},add_school:{headline:"PĹ™idanà školy",errors:{required:"PovinnĂ© pole",required_izo:"PovinnĂ©. Pokud nenĂ, zadat 9+IÄŚO",max_chars:"Max. 190 znakĹŻ"},form:{name:{label:"Název",placeholder:"Zadejte název"},address:{label:"Ulice a ÄŤĂslo",placeholder:"Zadejte ulici a ÄŤĂslo"},city:{label:"MÄ›sto",placeholder:"Zadejte mÄ›sto"},postcode:{label:"PoštovnĂ smÄ›rovĂ© ÄŤĂslo",placeholder:"Zadejte poštovnĂ smÄ›rovĂ© ÄŤĂslo"},capacity:{label:"Kapacita",placeholder:"Zadejte kapacitu"},ico:{label:"IÄŚO",placeholder:"Zadejte IÄŚ organizace"},vat_id:{label:"VAT ID",placeholder:"Zadejte IÄŚ pro daĹ z pĹ™idanĂ© hodnoty"},izo:{label:"IZO",placeholder:"Zadejte ident. znak organizace"},red_izo:{label:"RED IZO",placeholder:"Zadejte resortnĂ ident. právnickĂ© osoby"},submit_button:"PĹ™idat"}},add_user:{headline:"PĹ™idánĂ uĹľivatele do školy",email:"E-mail uĹľivatele",selected:"VybranĂ˝ uĹľivatel",submit_button:"PĹ™idat",cancel_button:"Zrušit"},search:{label:"VyhledávanĂ",placeholder:"ZaÄŤnÄ›te psát...",button:"VYHLEDAT"},table:{school:"Ĺ kola",budget:"DostupnĂ˝ rozpoÄŤet",spent:"Utraceno",employees_count:"PoÄŤet uĹľivatelĹŻ",students_count:"PoÄŤet žákĹŻ"},messages:{school_added:"Ĺ kola byla Ăşspěšne pĹ™idáná"}},manager:{tabs:{titles:["KolegovĂ©","Finance","Ĺ kolnĂ materiály"],colleagues:{title:"Vaši kolegovĂ© na UÄŤitelnici",whole_budget:{text:"Celkem",tooltip:"placeholder_whole_budget"},divided_budget:{text:"PĹ™idÄ›lenĂ˝ kredit",tooltip:"placeholder_divided_budget"},budget_to_divide:{text:"ZbĂ˝vá pĹ™idÄ›lit",tooltip:"placeholder_budget_to_divide"},invite_button:"Pozvat kolegy"},finances:{title:"Finance",tabs:{invoice:"Doklady",monthly_sells:"MÄ›sĂÄŤnĂ pĹ™ehled nákupĹŻ"},credit_order:{title:"Dobità školnĂho kreditu",proforma:{title:"DobitĂ na zálohovou fakturu",text:"Napište kolik potĹ™ebujete dobĂt a vytvoĹ™te si zálohovou fakturu. Jakmile ji zaplatĂte, kredit vám automaticky pĹ™ipĂšeme."},input:{label:"Částka k dobitĂ",placeholder:"2000 KÄŤ"},discount:{have:"Mám slevovĂ˝ kĂłd",label:"SlevovĂ˝ kĂłd",submit:"Uplatnit kĂłd",success_text:"Po zaplacenĂ vám pĹ™idáme {amount}% kreditu ZDARMA.",error_text:"NeplatnĂ˝ slevovĂ˝ kĂłd"},submit:"VytvoĹ™it zálohovou fakturu",how_it_works:{show_more:"Chci vÄ›dÄ›t vĂce",title:"Jak dobitĂ kreditu funguje?",text:["ZakoupenĂ˝ kredit mĹŻĹľete s kolegy vyuĹľĂvat aĹľ 15 mÄ›sĂcĹŻ a vybranĂ© materiály máte k dispozici hned, kdyĹľ je nejvĂc potĹ™ebujete.","DaĹovĂ˝ doklad posĂláme hned na e-mail. Všechny doklady, vÄŤetnÄ› poloĹľkovĂ©ho souhrnu, najdete takĂ© v sekci Finance ve svĂ©m školnĂm účtu.","Kredit platĂ 15 mÄ›sĂcĹŻ. PĹ™ed vypršenĂm vám to ještÄ› pĹ™ipomeneme, aĹĄ o nÄ›j nepĹ™ijdete.","Kredit mĹŻĹľete dobĂt i tĂm, Ĺľe pošlete na náš účet 290171999/2010 libovolnou částku a pĹ™idáte IÄŚO svĂ© školy jako variabilnĂ symbol (VS). To se hodĂ tĹ™eba pĹ™i zaloĹľenĂ trvalĂ©ho pĹ™Ăkazu. "]},question:"NevĂte si rady? Pište, volejte. Jsme na pĹ™Ăjmu.",success_text:{title:"Ăšdaje k platbÄ›",text_1:"Zálohovou fakturu Vám pošleme na e-mail",text_2:"nebo si ji za pár minut mĹŻĹľete stáhnout zde.",payment_info:{account_number:"ÄŚĂslo účtu",variable_symbol:"VariabilnĂ symbol",amount:"Částka",qr:"Platba pomocĂ QR kĂłdu"}},amount:{label:"Částka k dobitĂ v KÄŤ",placeholder:"2 000 KÄŤ",error:"Pro vytvoĹ™enĂ zálohovĂ© faktury vyplĹte částku."},success:"Zálohová faktura vytvoĹ™ena",error:"NÄ›co se nepovedlo. Zkuste to prosĂm znovu.",accounting_email_saved:"E-mail k zasĂlánĂ dokladĹŻ zmÄ›nen"},info:{request_change:"Zažádat o zmÄ›nu ĂşdajĹŻ",accounting_email:{title:"ÚčetnĂ e-mail",no_email:"ŽádnĂ˝ e-mail pro zaslánĂ dokladu",sidebar:{title:"ZmÄ›na účetnĂho e-mailu",headline:"Kam posĂlat účetnĂ e-maily?",text:"Všechny potĹ™ebnĂ© účetnĂ informace mĹŻĹľeme za vás odesĂlat pĹ™Ămo účetnĂ. Zadejte e-mail, kam je posĂlat.",label:"ÚčetnĂ e-mail",placeholder:"Zadejte e-mail"},label:"E-mail pro zaslánĂ dokladu",placeholder:"NapĹ™. ",tooltip:"Na váš a takĂ© na tento email budeme posĂlat všechny účetnĂ doklady. MĹŻĹľete ho kdykoliv zmÄ›nit.",success:"E-mail pro zaslánĂ dokladu uloĹľen"},manager:{title:"Správce školy",tooltip:"Všechny doklady pĹ™ijdou na e-mail správce školy. Pokud je chcete posĂlat i nÄ›komu dalšĂmu, vyuĹľijte e-mail pro účetnĂ."},license_type:{title:"Typ školnĂ licence",tooltip:"Informace o velikosti vašà školy zĂskáváme z rejstĹ™Ăku MĹ MT. Cena je {number} násobek osobnĂ licence. Ĺ kolnĂ licence opravĹuje zakoupenĂ© materiály vyuĹľĂvat všemi uÄŤiteli z vašà školy."}},invoices:{title:"Ĺ kolnĂ finance",text:"DaĹovĂ˝ doklad jsme vám hned po zaplacenĂ poslali na e-mail. V tabulce dole je pak máte všechny pohromadÄ›, abyste se k nim mohli kdykoliv vrátit. Máte nÄ›jakĂ© otázky?",table:{year:"Rok",date:"Datum",type:"Druh",amount:"Částka",order_number:"ÄŚ. objednávky",proforma_invoice:"Zálohová faktura",invoice:"DaĹovĂ˝ doklad",pending:"ÄŚeká na zaplacenĂ",delete:"Smazat",deleted:"Smazáno",delete_success:"Záznam byl smazán",restore_success:"Záznam byl obnoven",download:"Stáhnout"},type:{product:"Materiály",credit_proforma:"DobitĂ kreditu - zálohová faktura",credit:"Kredit",order:"Objednávka",summary:"SouhrnnĂ˝ daĹovĂ˝ doklad",orders_summary:"PĹ™ehled objednávek",undefined:"NeznámĂ˝"},confirmation:"PotvrzenĂ o platbÄ›",generate_summary:{success:"DaĹovĂ˝ doklad byl vygenerovanĂ˝",error:"Všechny nákupy ze školnĂho kreditu jiĹľ majĂ vygenerovanĂ˝ daĹovĂ˝ doklad."}},orders_summary:{table:{month:"MÄ›sĂc",product_count:"MateriálĹŻ",spent:"Ăštrata",invoice:"Doklad"}},invoices_archive:{title:"Archiv školnĂch dokladĹŻ",text:["BÄ›hem roku 2022 jsme pĹ™ešli na jednoduššà systĂ©m evidence faktur. U staršĂch nákupĹŻ je proto struktura dokladĹŻ jiná, neĹľ jste zvyklĂ. PotĹ™ebujete poradit? Volejte na "," nebo napište ",". Spolu to vyĹ™ešĂme."]},invoice_data:{title:{text:"FakturaÄŤnĂ Ăşdaje školy"},invoice_ico:"IÄŚO",invoice_dic:"DIÄŚ",email:"E-mail pro doklady"},children:{proforma:"ZálohovĂ© faktury",invoices:"DaĹovĂ© doklady"}},downloads:{title:"Ĺ kolnĂ materiály",headline:"ZakoupenĂ© materiály"}},budget:"Ĺ kolnĂ kredit celkem",credit_how:{title:"Jak rozdÄ›lit školnĂ kredit?",text1:"Ze školnĂho kreditu mohou nakupovat materiály všichni uĹľivatelĂ© bez omezenĂ.",text2:"ÄŚerpánĂ lze ale takĂ© omezit. KaĹľdĂ©mu uĹľivateli pĹ™idÄ›lĂte částku, kterou mĹŻĹľe za materiály utratit. Tuto částku mĹŻĹľete kdykoliv upravit.",tip:'Po pĹ™erozdÄ›lenĂ kreditu zkontrolujte, Ĺľe je u poloĹľky "ZbĂ˝vá pĹ™idÄ›lit" 0 KÄŤ, abyste mÄ›li jistotu, Ĺľe vyuĹľijete celĂ˝ školnĂ kredit.'},errors:{leave_self:"Správce nemĹŻĹľe opustit školu",remove_self:"Správce nemĹŻĹľe odebrat sám sebe",amount:"Částka musĂ bĂ˝t celĂ© kladnĂ© ÄŤislo",not_enough_budget:"NemĹŻĹľete kolegovi pĹ™iradit vĂce jako je váš rozpoÄŤet k rozdelenĂ",add_failed:"PĹ™idánĂ kreditu se nezdaĹ™ilo",remove_failed:"OdebránĂ kreditu se nezdaĹ™ilo",remove_at_0:"Kredit tohto kolegu je jiĹľ nulovĂ˝"}},employees:{table:{name_and_email:"Kolega",status:{title:"Stav účtu",tooltip:"placeholder_status",note:"Poznámka uĹľivatele:"},budget:{title:"DostupnĂ˝ rozpoÄŤet",tooltip:"placeholder_budget"},spent:{title:"Utraceno",title_md:"Utraceno za rok",tooltip:"Utraceno celkem za rok"},buttons:{add:"PĹ™idat uĹľivatele",remove:"Odebrat",confirm:"Schválit",decline:"Neschválit",add_credit:"DobĂt kredit",add_school_credit:"DobĂt školnĂ kredit",remove_credit:"Odebrat kredit",remove_credit_not_divided:"Odebrat kredit mĹŻĹľete aĹľ po jeho pĹ™idelenĂ",update_credit:"Upravit kredit",update:"Upravit",block:"Zablokovat",unblock:"Odblokovat",add_admin:"PĹ™idat správce",remove_admin:"Odebrat správce"}},budget_modal:{add_budget:{title:"PĹ™iĹ™azenĂ kreditu",text:"PĹ™irazenĂm kreditu nastavĂte uĹľivateli limit, kolik mĹŻĹľe vyÄŤerpat. ZbĂ˝vajĂcĂ kredit rozdÄ›lte mezi ostatnĂ uĹľivatele, aby ho bylo moĹľnĂ© vyuĹľĂt.",label:"Kolik kreditu chcete pĹ™iĹ™adit?"},remove_budget:{title:"OdebránĂ kreditu",text:"Zvolte částku, o kterou uĹľivateli snĂĹľĂte limit k ÄŤerpánĂ kreditu. Jestli uĹľĂvatel nemá nastavenĂ˝ limit pro ÄŤerpánĂ, mĹŻĹľe uĹľĂvat celĂ˝ školnĂ kredit.",label:"Kolik kreditu chcete odebrat?"},update:{title:"Ăšprava výše kreditu uĹľivatele",text:"Zde nastavĂte uĹľivateli limit, kterĂ˝ mĹŻĹľe vyÄŤerpat. ZbĂ˝vajĂcĂ kredit rozdÄ›lte mezi ostatnĂ uĹľivatele, aby ho vyuĹľili.",label:"Výše kreditu"},left:"zbĂ˝vá pro ostatnĂ kolegy",left_for_employee:"Kredit uĹľivatele:",cancel:"Zrušit",add:"PĹ™iĹ™adit",remove:"Odebrat"},block_modal:{block:{title:"Opravdu chcete zablokovat uĹľivatele ",text:"Po zablokovánĂ ztratĂ pĹ™Ăstup k zakoupenĂ˝m materiálĹŻm školy. PozdÄ›ji ho mĹŻĹľete odblokovat.",block:"Zablokovat uĹľivatele"},unblock:{title:"Opravdu chcete odblokovat uĹľivatele ",text:"OdblokovánĂm zĂská pĹ™Ăstup k zakoupenĂ˝m materiálĹŻm školy. PĹ™Ăstup mu mĹŻĹľete opÄ›t odebrat.",unblock:"Odblokovat uĹľivatele"},cancel:"Zrušit"},invite_modal:{title:"PozvÄ›te vaše kolegy na UÄŤitelnici",text:["UmoĹľnÄ›te svĂ˝m kolegĹŻm vzájemnÄ› sdĂlet materiály a vyuĹľĂvat dalšĂch vĂ˝hod školnĂho účtu.","ZkopĂrujte tento odkaz a pošlete jim ho tĹ™eba e-mailem."],tooltip:"ZkopĂrovat",cancel:"ZavĹ™Ăt okno"},remove_modal:{title:"OdebránĂ uĹľivatele",text:"Opravdu chcete odebrat uĹľivatele? ZtratĂ tĂm pĹ™Ăstup k zakoupenĂ˝m materiálĹŻm školy. UĹľivatele ale mĹŻĹľete v budoucnu pozvat do školy znovu.",remove:"Odebrat",cancel:"Zrušit"},status:{waiting:"ÄŚeká na schválenĂ",manager:"Správce",teacher:"UĹľivatel",blocked:"Zablokován",left:"Odebrán"},messages:{added:"UĹľivatel byl pĹ™idán",removed:"UĹľivatel byl odebrán",blocked:"UĹľivatel byl zablokován",unblocked:"UĹľivatel byl odblokován.",confirmed:"PĹ™Ăstup byl schválen",declined:"PĹ™Ăstup byl zamĂtnut",budget_added:"RozpoÄŤet pĹ™idán",budget_removed:"RozpoÄŤet odebrán",credit_updated:"Ĺ kolnĂ kredit uĹľivatele upraven",made_manager:"Správce pĹ™idelen",removed_manager:"Správce odebrán",email_link_expired:"Platnost odkazu vypršela"},errors:{already_in_school:"UĹľivatel je jiĹľ zaregistrován v nÄ›jakĂ© škole"}},cart:{title:"KošĂk - nákup pro školu",top_up:"DobĂt školnĂ kredit",order:"Jednorázová platba",change:{modal:{title:"PĹ™idánĂ do košĂku",to_personal:{text:["Uklikli jste se? V košĂku máte materiály se školnĂ licencĂ. AktuálnÄ› nepodporujeme kombinovanĂ© nákupy. Zakupte školnĂ licenci pro tento materiál nebo ","vyprázdnÄ›te košĂk"],cta:"Koupit školnĂ licenci"},to_school:{text:"Uklikli jste se? V košĂku máte materiály s osobnĂ licencĂ. AktuálnÄ› nepodporujeme kombinovanĂ© nákupy. ZmÄ›Ĺte všechny licence na školnĂ, nebo zvolte moĹľnost zakoupit pro sebe.",cta:"ZmÄ›nit košĂk na školnĂ licence"},price_suffix:",- za školnĂ licenci",to_cart:"Do košĂku",cancel:"Zrušit"}},payment:{credit:{cta:"Zaplatit ze školnĂho kreditu",not_enough:"Pro dobitĂ kreditu kontaktujte správce školy, e-mail najdete nĂĹľe",help_manager:"NevĂte si rady s koupà školnĂho kreditu? Napište nám na",help_employee:"DocházĂ vám školnĂ kredit? OzvÄ›te se správci školy na e-mail:"}}},credit_available:"Máte k dispozici {amount} KÄŤ v školnĂch kreditech",credit:"Ĺ kolnĂ kredit",credit_title:"Ĺ kolnĂ kredity",credit_expires:"Expirace kreditu: {expiry_date}",level:{kindergarten:"MateĹ™ská škola",elementary_first:"1. stupeĹ ZĹ ",elementary_second:"2. stupeĹ ZĹ ",high:"StĹ™ednà škola"},account:"Ĺ kolnà účet",for:"pro školy",for_yours:"pro vaši školu"},faq:{page:"NejÄŤastÄ›jšà otázky a odpovÄ›di",users:"NejÄŤastÄ›jšà dotazy",be_author:"ÄŚastĂ© dotazy",authors:"ÄŚastĂ© dotazy novĂ˝ch autorĹŻ",fist_material_tips:"Jak na prvnĂ nahránĂ materiálu?",not_found:"Nenašli jste, co jste hledali?",need_tips:"NevĂte si s něčĂm rady?",general:"ObecnĂ© dotazy"},vop:{payment:{voucher:'ZakoupenĂm dárkovĂ©ho poukazu souhlasĂte s <a href="https://soubory.ucitelnice.cz/obchodni-podminky.pdf" target="_blank">obchodnĂmi podmĂnkami</a> a <a href="https://soubory.ucitelnice.cz/Zasady-zpracovani-osobnich-udaju-Ucitelnice-s-r-o.pdf" target="_blank">zásadami zpracovánĂ osobnĂch ĂşdajĹŻ</a>.',product:'DokonÄŤenĂm objednávky souhlasĂte s <a href="https://soubory.ucitelnice.cz/obchodni-podminky.pdf" target="_blank">obchodnĂmi podmĂnkami</a> a <a href="https://soubory.ucitelnice.cz/Zasady-zpracovani-osobnich-udaju-Ucitelnice-s-r-o.pdf" target="_blank">zásadami zpracovánĂ osobnĂch ĂşdajĹŻ</a>.'},user:{become_author:'PĹ™eÄŤetl/a jsem si <a href="https://soubory.ucitelnice.cz/obchodni-podminky.pdf" target="_blank">obchodnĂ podmĂnky</a> a <a href="https://soubory.ucitelnice.cz/Zasady-zpracovani-osobnich-udaju-Ucitelnice-s-r-o.pdf" target="_blank">zásady zpracovánĂ osobnĂch ĂşdajĹŻ</a> a souhlasĂm s nimi.',register:'SouhlasĂm s <a href="https://soubory.ucitelnice.cz/obchodni-podminky.pdf" target="_blank">obchodnĂmi podmĂnkami</a> a se <a href="https://soubory.ucitelnice.cz/Zasady-zpracovani-osobnich-udaju-Ucitelnice-s-r-o.pdf" target="_blank">zásadami zpracovánĂ osobnĂch ĂşdajĹŻ</a>.'},product:{upload:'NahránĂm materiálu na UÄŤitelnici souhlasĂte s <a href="https://soubory.ucitelnice.cz/obchodni-podminky.pdf" target="_blank">obchodnĂmi podmĂnkami</a> a se <a href="https://soubory.ucitelnice.cz/Zasady-zpracovani-osobnich-udaju-Ucitelnice-s-r-o.pdf" target="_blank">zásadami zpracovánĂ osobnĂch ĂşdajĹŻ</a>.'}},messages:{new_product:"Materiál byl uloĹľen",edit_product:"Materiál byl upraven",edit_product_state:"Stav produktu byl upraven",delete_product:"Materiál byl vymazán",restore_product:"Materiál byl obnoven",add_credit:"Kredit byl pĹ™idán",credit_send_to_account:"Částka byla odeslána",credit_send_to_account_invalid_amount:"Částka nesmĂ bĂ˝t vyššà neĹľ stav účtu k vĂ˝platÄ› za danĂ˝ mÄ›sĂc.",used_bonus_voucher:"KĂłd jiĹľ byl pouĹľit",invalid_bonus_voucher:"Voucher nenĂ platnĂ˝",only_for_newly_registered:"Voucher je platnĂ˝ jen pro novÄ› registrovanĂ©",remove_credit:"Kredit byl odebran",cannot_remove_credit:"Částku nenĂ moĹľnĂ© odebrat",please_login:"ZadanĂ˝ email uĹľ je registrován. PĹ™ihlaste se, prosĂm.",add_commission:"Provize byla pridaná",author_to_user:"Autor byl ponĂĹľen na uĹľĂvatele",new_category:"Kategorie byla pĹ™idána",edit_category:"Kategorie byla upravena",delete_category:"Kategorie byla smazana",bad_code:"Kod neexistuje",voucher_delete:"Voucher smazán",new_voucher:"Voucher vytvoĹ™en",edit_voucher:"Voucher upraven",hide_product:"Stav produktu byl zmÄ›nÄ›n",wait_for_payment:"Vaši platbu zpracováváme. Jakmile platbu obdrĹľĂme, zakoupenĂ© poukazy pošleme na email",bad_bank_account:"ÄŚĂslo bankovnĂho účtu nenĂ správnĂ©.",need_vop:"Je nutnĂ© akceptovat VšeobecnĂ© obchodnĂ podmĂnky",product_update_reason:"Zadejte dĹŻvod Ăşpravy",wait_for_credit:"Vaši platbu zpracováváme. Jakmile platbu obdrĹľĂme, zakoupenĂ© materiály si budete moct stáhnout v ",edit_password:"Heslo bylo zmÄ›neno",new_user:"UĹľĂvatel byl vytvoĹ™en",edit_user:"UĹľĂvatel byl upraven",verify_success:"UĹľĂvatel byl ověřen",verify_user:"Status uĹľĂvatele byl zmÄ›nen",block_user:"Stav uĹľĂvatele byl zmÄ›nen",invoice_success:"FakturaÄŤnĂ Ăşdaje byly uloĹľeny",invoice_fail:"FakturaÄŤnĂ Ăşdaje nejsou správny",voucher_canceled:"Platba se nezdaĹ™ila. Pokud máte o DárkovĂ˝ poukaz zájem, objednejte si ho prosĂm znovu.",invoice_regenerated:"Faktura byla pĹ™edána do fronty na pĹ™egenerovánĂ",comment_is_required:"Komentář musĂ bĂ˝t vyplnÄ›n",text_is_required:"DĹŻvod musĂ bĂ˝t vyplnÄ›n.",product_delete_reviewed:"AtribĂşt produktu ĂşspěšnÄ› nastaven",image:{uploaded:"Obrázek byl nahrán",deleted:"Obrázek byl smazán"},product:{file:{destroyed:"Soubor byl smazán",uploaded:"Soubor byl nahrán",not_uploaded:"Soubor nebyl nahrán: "},image:{uploaded:"Obrázek byl nahrán",destroyed:"Obrázek byl smazán"}}},discount:{title:"Sleva",title_plural:"Slevy",set:"Nastavit slevu",author:{title:"Autorská sleva"},settings:{title:"NastavenĂ slevy",info:"UdÄ›lejte si vlastnĂ kampaĹ nebo se pĹ™ipojte k akci UÄŤitelnice a podpoĹ™te svĂ© prodeje."},code:{title:"SlevovĂ˝ kĂłd",enter_here:"Sem vloĹľte svĹŻj kĂłd",enter:"VloĹľit slevovĂ˝ kĂłd",own:"Mám slevovĂ˝ kĂłd",not_entered:"SlevovĂ˝ kĂłd nebyl vloĹľen"},own:"Mám slevovĂ˝ poukaz",table:{valid:"Nákup/Expirace",code:"KĂłd",discount:"Sleva",used:"UplatnÄ›no",note:"Poznámka"},manual_cancel:"ManuálnĂ zrušenĂ",now:"AktuálnĂ ÄŤas",plan:{title:"Naplánovat slevu",info:"KaĹľdĂ˝ rok si mĹŻĹľete naplánovat dvÄ› slevovĂ© akce. Doba mezi nimi musĂ bĂ˝t alespoĹ 30 dnĂ."},mine:{title:"Moje slevy",text:"ZlevnÄ›nĂ© materiály se dobĹ™e prodávajĂ. Zkuste obÄŤas slevu na svĂ© materiály nabĂdnout. K vĂ˝roÄŤĂ, narozeninám nebo jen tak."},planned:{empty:"AktuálnÄ› nemáte naplánovanĂ© žádnĂ© slevy",my:{title:"Kalendář naplánovanĂ˝ch slev",text:"AktuálnÄ› máte naplánovanĂ© tyto slevy"}},graphics:{title:"Grafika ke sdĂlenĂ slevy",invalid_type:"NeplatnĂ˝ typ"},maximum_reached:"Na tento rok uĹľ máte naplánovanĂ˝ maximálnĂ poÄŤet autorskĂ˝ch slev.",create:{headline:"VytvoĹ™enĂ kĂłdu",type:"Druh",discount:"Sleva v %",code:"Název slevovĂ©ho kĂłdu",note:"Poznámka (nepovinnĂ©)",valid_from:"PlatnĂ˝ od",valid_to:"PlatnĂ˝ do",cancel:"Zrušit",create:"VytvoĹ™it slevovĂ˝ kĂłd",success:"SlevovĂ˝ kĂłd byl vytvoĹ™enĂ˝",error:"Chyba pĹ™i vytvářenĂ slevovĂ©ho kĂłdu",error_discount:"Sleva musĂ byt v rozsahu 0-100.",error_code_unique:"TakovĂ˝ slevovĂ˝ kĂłd jiĹľ existuje.",error_code_length:"Název slevovĂ©ho kĂłdu nenĂ správnÄ› vyplnÄ›n.",error_valid_from:"PlatnĂ˝ od musĂ bĂ˝t pozdÄ›ji neĹľ dnešnĂ˝ datum."},edit:{headline:"Editace",cancel:"Zrušit",remove:"Smazat kĂłd",submit:"UloĹľit zmÄ›ny",success:"KĂłd byl editován"},remove:{headline:"Opravdu chcete slevovĂ˝ kĂłd ",text:"Tato akce je nevratná. slevovĂ˝ kĂłd pĹ™estane fungovat.",back:"ZpÄ›t",success:"KĂłd byl smazanĂ˝",success_public:"Sleva byla odebrána"},box:{title:"SLEVY AĹ˝ 20 %",time_left:"Do konce akce ještÄ› zbĂ˝vá",code:"+ DALĹ ĂŤCH {value} % NA CELĂť NĂKUP S KĂ“DEM"},apply:{button:"Uplatnit kĂłd",success:"Sleva {amount} % byla uplatnÄ›na",error:"NeplatnĂ˝ kĂłd"},amount:{title:"Výše slevy",info:"Vyššà zvolená sleva má obvykle vÄ›tšà efekt v prodejĂch."},product_count:"PoÄŤet materiálĂş ve slevÄ›",start:{title:"TermĂn slevovĂ© akce",info:"Nastavte si datum, kdy zaÄŤne sleva platit"},duration:{title:"DĂ©lka slevovĂ© akce",info:"Zvolte si jeden nebo dva dny, kdy bude sleva aktivnĂ."},product_selection:{title:"VĂ˝bÄ›r materiálĹŻ",info:"Zvolte si materiály, na kterĂ© chcete nastavit slevu."},delete:{title:"Smazáni slevy",query:"Opravdu chcete smazat slevu?"},state:{planned:"Naplánovaná",active:"ProbĂha",expired:"JiĹľ probÄ›hla"},type:{all_products:"Všechny materiály",selected_products:"VybranĂ© materiály",select_products:"Vybrat materiály"},created:"Sleva byla vytvoĹ™ena",updated:"Sleva byla upravena",deleted:"Sleva byla smazána",saved:"Sleva byla uloĹľena",deactivated:"Sleva byla predÄŤasnÄ› ukonÄŤena",created_error:"Slevu jiĹľ nelze vytvoĹ™it",updated_error:"Slevu jiĹľ nelze upravit",deleted_error:"Slevu jiĹľ nelze smazat",deactivated_error:"Slevu nelze pĹ™edÄŤasnÄ› ukonÄŤit",automatic:{title:"AutomatickĂ© slevy",title_short:"Akce",title_ucitelnice:"Akce UÄŤitelnice",how_it_works:"Jak to funguje?",title_long:"Akce UÄŤitelnice",info:["PĹ™ipojte se k celostránkovĂ© akci a znásobte svĂ© prodeje.","Zvolte výši slevy a za UÄŤitelnici pĹ™idáme dalšĂch {amount} %."],info_no_discount:"MomentálnÄ› nenĂ naplánovaná žádná celostránková sleva.",set:"Máte nastavenou slevu {amount} % na všechny materiály",disabled_tooltip:"V danĂ©m ÄŤase máte nastavenou individuálnĂ slevu. ZmÄ›Ĺte datum individuálnĂ slevy ({from} - {to})",calendar:{title:"Kalendář plánovanĂ˝ch akcĂ",text:"Nejbližšà celostránkova sleva bude {from} - {to}"},add:{title:"PĹ™ipojte se nastavenĂm slevy všech vašich materiálĹŻ",text:"Zvolte si výšku slevy na všechny vaše materiály v ÄŤase akce. Vyššà sleva obvykle pĹ™inese vÄ›tšà prodeje"},reminder:"BlĂžà se celostránková sleva UÄŤitelnice {from} - {to}. PĹ™ipojte se k nĂ i vy.",keep:"Ponechat toto nastavenĂ i pro budoucĂ akce UÄŤitelnice",ignore:"Nechci se zapojit"},individual:{title:"IndividuálnĂ slevy",year_limit:{text:"Tento rok mĹŻĹľete nastavit ještÄ›",limit:"{count} autorskĂ˝ch slev |{count} autorskĂş slevu |{count} autorskĂ© slevy |{count} autorskĂ˝ch slev"}},deactivate:{title:"PĹ™edÄŤasnĂ© ukonÄŤenĂ",action:"PĹ™edÄŤasnÄ› ukonÄŤit",query:"Opravdu si pĹ™ejete pĹ™edÄŤasnÄ› ukonÄŤit slevu?"},info_modal:{headline:"Jak fungujĂ celostránkovĂ© slevy?",steps:["UÄŤitelnice naplánuje slevovou akci","Vám staÄŤĂ jednĂm klikem nastavit si výši slevy","Prodejte aĹľ 5x vĂce materiálĹŻ bÄ›hem akce"]}},stickytoolbar:{common:{headline:"ObecnĂ©",send_message:"Poslat zprávu",cart:"KošĂk uĹľivatele",wishlist:"OblĂbenĂ© materiály",favourite_authors:"OblĂbenĂ autoĹ™i",items_already_bought:"ZakoupenĂ© materiály",create_interval_invoice:"Vygenerovat fakturu"},profile_management:{headline:"Správa profilu",activate:"Aktivovat uĹľivatele",edit:"Editovat profil",invoice_data:"FakturaÄŤnĂ Ăşdaje",password_reset:"Resetovat heslo",transactions:"Platby"},author_settings:{headline:"Autor",author_materials:"Materiály autora",author_data:"Ăšdaje autora",commission:"Provize",monthly_invoices:"VyúčtovánĂ",author_to_user:"Odebrat roli autora",verify_author_true:"Zrušit ověřenĂ autora",verify_author_false:"Ověřit autora",hmat:"H-mat",mmat:"Montessori"}},passwords:{password:"Heslo musĂ obsahovat alespoĹ 6 znakĹŻ a musĂ se shodovat s ověřenĂm.",reset:"Heslo bylo obnoveno!",sent:"E-mail s instrukcemi k obnovenĂ hesla byl odeslán!",token:"Platnost odkazu ke zmÄ›nÄ› hesla vypršela. Nechte si poslat novĂ˝ odkaz.",user:"NepodaĹ™ilo se najĂt uĹľivatele s touto e-mailovou adresou.",throttled:"PĹ™Ăliš mnoho poĹľadavkĹŻ",forgot:{headline:"Obnova hesla",text:"Na e-mail vám pošleme odkaz pro nastavenĂ novĂ©ho hesla. ",email:{label:"Váš e-mail",placeholder:"Zadejte e-mail"},button:"Zaslat odkaz na novĂ© heslo",login:"Zpátky na pĹ™ihlášenĂ"},reset_form:{headline:"Vaše novĂ© heslo",text:"Nastavte si novĂ© heslo pro váš účet",password:{label:"Vaše novĂ© heslo",placeholder:"Vaše novĂ© heslo"},button:"Nastavit novĂ© heslo",login:"Zpátky na pĹ™ihlášenĂ"}},fileupload:{label_invalid_field:"Soubor nenĂ validnĂ",label_file_waiting_for_size:"VypoÄŤĂtavánĂ velikosti souboru",label_file_size_not_available:"Velikost se nepodaĹ™ilo spoÄŤĂtat",label_file_load_error:"Chyba pĹ™i naÄŤĂtanĂ souboru",label_file_loading:"NaÄŤĂtanĂ",label_file_processing:"NahrávánĂ",label_file_processing_complete:"ĂšspěšnÄ› nahráno",label_file_processing_aborted:"NahrávanĂ pĹ™erušeno",label_file_processing_error_422:"NesprávnĂ˝ typ souboru.",label_file_processing_error:"Chyba pĹ™i nahrávánĂ",label_tap_to_cancel:"zrušit",label_tap_to_retry:"Zkusit znovu",label_file_type_not_allowed:"NesprávnĂ˝ typ souboru",file_validate_type_label_expected_types:"MĹŻĹľete nahrát pouze soubory typu:",label_max_total_file_size_exceeded:"PĹ™ekroÄŤili jste maximálnĂ velikost souboru.",label_max_total_file_size:"MaximálnĂ velikost souboru je",insert_file_for_upload:"Nahrajte soubor",insert_image_for_upload:"Nahrajte obrázek",can_upload_zip_pdf_pptx:"Nahrajte PDF nebo ZIP soubor",insert_images_to_gallery:"Nahrajte obrázky do galerie",arbitrary_dimensions:"ReálnĂ© fotky nebo náhledy stránek mohou mĂt maximálnÄ› 5MB",max_n_mb:"MaximálnĂ velkost obrázku je {size} MB.",repeat:"opakovat",image_not_valid:"NÄ›kterĂ˝ z obrázkĹŻ nenĂ validnĂ",label_image_waiting_for_size:"VypoÄŤĂtavánĂ velikosti obrázku",label_image_load_error:"Chyba pĹ™i naÄŤĂtanĂ obrázku",cover_image_format:"ĂšvodnĂ obrázek by mÄ›l bĂ˝t ve formátu PNG nebo JPG",image_format:"Obrázek by mÄ›l bĂ˝t ve formátu PNG nebo JPG"},public:{ucitelnice_email:"info{'@'}ucitelnice.cz",ucitelnice_phone:"603 883 606",ucitelnice_phone_long:"+420603883606",brand:"UÄŤitelnice.cz",voucher_page_title:"DárkovĂ© poukazy | UÄŤitelnice.cz",voucher_page_description:"Ĺ kola hrou - kupte dárkovĂ˝ poukaz a udÄ›lejte radost panĂ uÄŤitelce. NovĂ© nápady, kterĂ© jsou osvÄ›dÄŤenĂ© v praxi. ZábavnĂ© hodiny s minimálnĂ pĹ™Ăpravou. Aktivity, kterĂ© dÄ›ti bavĂ. AĹĄ si panĂ uÄŤitelka vybere to nejlepšĂ.",voucher_page_keywords:"dárek k vysvÄ›dÄŤenĂ, dárek panĂ uÄŤitelce, dárkovĂ˝ poukaz, vĂ˝ukovĂ© materiály, škola hrou",unlimited:"Neomezeno",video:"Video",item:{confirmed:"PoloĹľka je potvrzena",deleted:"PoloĹľka je smazána"},design:"Dizajn",text_color:{title:"Barva textu",select:"Vyberte barvu textu..."},colors:{black:"ÄŚerná",white:"BĂlá"},locked:"Zamknuto",details:"Podrobnosti",overviews:"PĹ™ehledy",show_in_admin:"Zobrazit v adminu",copy:"ZkopĂrovat",copy_url:"ZkopĂrovat URL",save:"UloĹľit",save_select:"UloĹľit vĂ˝bÄ›r",continue:"DalšĂ",choose_view:"Vyberte zobrazenĂ",cancel:"Zrušit",explore:"Prozkoumat",close:"ZavĹ™Ăt",delete:"Smazat",add:"PĹ™idat",remove:"Odebrat",create:"VytvoĹ™it",download:"Stáhnout",search:"Vyhledat",promote:"Promovat",lock:"Zamknout",unlock:"Odemknout",select_one:"Vyber jeden",select_all:"Vybrat všechny",all:"Všechny",update:"Upravit",hide:"SkrĂ˝t",terminate:"UkonÄŤit",restore:"Obnovit",connect:"PĹ™ipojit",acknowledge:"RozumĂm",return:"Vrátit",pay:"Zaplatit",show:"Zobrazit",password_hide:"SkrĂ˝t heslo",password_show:"Zobrazit heslo",show_all:"Zobrazit vše",show_all_long:"Zobrazit všechny",upload_new:"Nahrát novĂ˝",activate:"Aktivovat",deactivate:"Deaktivovat",edit:"Editace",done:"Hotovo",next:"DalšĂ",previous:"PĹ™edchozĂ",title:"Název",description:"Popis",name:"Název novĂ© kategorie",name_change:"Název kategorie",theme:"TĂ©ma",class:"TĹ™Ăda",subject:"PĹ™edmÄ›t",format:"Typ materiálu",add_category:"PĹ™idat Kategorii",edit_category:"Editace kategoriĂ",send_password_reset_link:"Odeslat odkaz na zmÄ›nu hesla",reset_password:"ObnovenĂ hesla",order_number:"Objednávka ÄŤ.",make_order_again:"Opakovat platbu",order_canceled:"Objednávka byla zrušena",send:"Odeslat",percent:"Percentá",valid_from:"PlatnĂ˝ od",valid_to:"PlatnĂ˝ do",for_new_users:"Jen pro novĂ© uĹľivatele",raise_credit:"DobĂjĂte kredit s bonusem",preview:{show:"Zobrazit náhled",hide:"SkrĂ˝t náhled"},image:{title:"Obrázek",insert:"VloĹľte obrázek",format:"PodporovanĂ˝ formát .png nebo .jpg",remove_title:"SmazánĂ obrázku",remove_prompt:"Opravdu chcete smazat obrázek?"},card_background:"PozadĂ karty",catalog_background:"PozadĂ v katalogu",author:"Autor",data_update:"Pro zmÄ›nu ĂşdajĹŻ nám",images:"Obrázky",vouchers:"DárkovĂ˝ poukaz",create_voucher:"VytvoĹ™it dárkovĂ˝ poukaz",create_bonus_voucher:"NovĂ˝ bonus dárkovĂ˝ poukaz",edit_voucher:"Upravit dárkovĂ˝ poukaz",apply:"Uplatnit",apply_voucher:"Uplatnit dárkovĂ˝ poukaz",voucher_code:"Zadejte kod dárkovĂ©ho poukazu",voucher_title:"UplatnenĂ dárkovĂ©ho poukazu pro dobitĂ kreditu",cart:"KošĂk",personal_cart:"OsobnĂ košĂk",school_cart:"Ĺ kolnĂ košĂk",cart_count:"V košĂku máte {count} materiálĹŻ| V košĂku máte {count} materiál| V košĂku máte {count} materiály| V košĂku máte {count} materiálĹŻ",filter:"Filtrovat",orders:"Statistiky prodeje",user_transactions:"Platby uĹľivatele",type:"Typ",order:"Objednávka",amount:"Částka",payment:"Platba",confirmation:"PotvrzenĂ",create_date:"Datum vytvoĹ™enĂ",commentary:"Komentář",commentary_write:"Napište komentář...",admin:"Admin",gopay:"GoPay",marketing:"Marketing",payout:"Vyplaceno",left_to_pay:"K vyplacenĂ",voucher:"DárkovĂ˝ poukaz",messages:"Zprávy",overall:"Celkem",message:"Zpráva",message_new:"Nová zpráva",message_new_flash:"Máte novou zprávu",message_show:"Zobrazit zprávu",public_voucher:"DárkovĂ© poukazy",public_voucher_text:"Hledáte dárek pro uÄŤitele? Darujte poukaz na materiály.",make_invoice:"Vystavit zálohovou fakturu",update_invoice:"Upravit fakturaÄŤnĂ Ăşdaje",fill_invoice:"VyplĹte prosĂm fakturaÄŤnĂ Ăşdaje",invoice_number:"ÄŚislo faktury",wishlist_invoices:"KošĂk - faktury",admin_menu:"Admin",message_to_customer:"Zpráva pro zakaznĂka",message_to_author:"Zpráva pro autora",status_waiting_on_author:"Nastavit status ÄŚeká na autora",status_waiting_on_customer:"Nastavit status ÄŚeká na zákaznĂka",author_materials:"Materiály autora",beta:"Beta verze",new_message:"BÄ›hem psanĂ Vašà odpovÄ›di byla doruÄŤena nová zpráva",message_sent:"Vaše zpráva byla odeslána",message_us:"Napište nám",more_data:"ÄŽalšà údaje",choice:"Vybrali jste",remove_all_filters:"Zrušit všechny filtry",show_more:"zobrazit dalšĂ",materials:"Materiály",faq:"ÄŚastĂ© dotazy",about:"O nás",sales:"Pravidla nákupu",contact:"Kontakt",blog:"Blog",export:"Export uĹľĂvatelĹŻ",account:"MĹŻj účet",my_products:"Moje materiály",vat_level:"Jak správnÄ› zvolit DPH?",author_tips:"Tipy pro autory",webinars:"Webináře",ucitelnice_welcome:{title:"VĂtejte na UÄŤitelnici",who_are_you:"My jsme UÄŤitelnice, kdo jste vy?"},description_missing:"ChybÄ›jĂcĂ popis",enter:"Vstoupit",dash:"–",dots:"...",and:"a",credit:"Kredit",wallet:"Peněženka",up_button_text:"NAHORU",search_button_text:"Vyhledat",left_search_text:"VYHLEDĂVĂNĂŤ",pending:"ÄŚeká",approved:"Schváleno",review:"Revize",disapproved:"Neschváleno",not_for_sale:"Neprodává se",not_found:"Nenalezeno",draft:"Draft",paid:"Zaplaceno",share:{title:"Grafika pro sociálnĂ sĂtÄ›",image_generation_button_pending:"Generuji obrázek",image_generation_dispatched:"Obrázek pro sdĂlenĂ se zaÄŤal generovat. Bude vám brzy k dispozici.",image_generation_failed:"Obrázek pro sdĂlenĂ se nepodaĹ™ilo vygenerovat. Zkuste to prosĂm znovu.",image_generation_success:"Obrázek pro sdĂlenĂ je pĹ™ipravenĂ˝. MĹŻĹľete si ho stáhnout.",type:{facebook:"PĹ™ĂspÄ›vek na Facebook",instagram_post:"PĹ™ĂspÄ›vek na Instagram",instagram_story:"PĹ™ĂbÄ›h na Instagram"}},invoices:"FaktĂşry",proforma_invoices:"ZálohovĂ© faktĂşry",pohoda_export:"Pohoda export",homepage_sections:"Customizace Homepage",infobox:"Info Box",mass_notification:"HromadnĂ© zprávy",vouchers_new_navigation:"DárkovĂ© poukazy a marketingovĂ© kĂłdy",vouchers_new:"DárkovĂ© poukazy",discounts:"MarketingovĂ© kĂłdy",discount:"Sleva",already_bought:"JiĹľ zakoupeno",product:"Materiál",products:"VĂ˝ukovĂ© materiály",back_to_search:"ZpÄ›t na vyhledanĂ©",back:"ZpÄ›t",rate:"Oznámkuj jako ve škole",buy:{title:"Koupit pro sebe",text:"MĹŻĹľete pouĹľĂt pouze vy",simple:"Koupit",extended:"Zakoupit"},buy_as_school:{title:"Koupit pro celou školu",text:"Materiál si mohou stáhnout i všichni kolegovĂ©"},comment:{edit:"Ăšprava komentáře ku škole",add:"PĹ™idáni komentáře ku škole"},start_writting:"ZaÄŤni psát...",note:{write:"Napište poznámku..."},registration:"Registrace",register:"Zaregistrovat se",non_applied:"NeuplanenĂ©",applied:"UplatnenĂ©",wish:"OblĂbenĂ© materiály",empty_wish:"ZatĂm jste si do oblĂbenĂ˝ch materiálĹŻ nic neuloĹľili",to_wish:"PĹ™idat do oblĂbenĂ˝ch",all_to_cart:"Materiály do košĂku",add_to_cart:"VloĹľit do košĂku",add_all_to_cart:"VloĹľit vše do košĂku",gdpr:"Jak nakládáme s osobnĂmi Ăşdaji",credit_overview:"PĹ™ehled kreditĹŻ",product_updates:"Aktualizace produktĹŻ",id:"ID",unauthorized:"Nemáte dostateÄŤná oprávnÄ›nĂ",faq_heading:"NejÄŤastÄ›jšà dotazy",faq_keywords:"faq, nejÄŤastejšà dotazy",blog_keywords:"blog, ÄŤlánky",blog_recent:"NejnovÄ›jšà články",webinar_keywords:"webináře, školenĂ, vzdÄ›lávánĂ",unknown_error:"PĹ™i zpracovánĂ poĹľadavku se vyskytla chyba",never:"Nikdy",optional:"(nepovinnĂ©)",slash_optional:"- nepovinnĂ©",text_us:"nám napište",reach_us:"ozvÄ›te se nám",account_no:"2901717999/2010",record_not_foud:"Nebyl nalezen žádnĂ˝ záznam",months:["Leden","Ăšnor","BĹ™ezen","Duben","KvÄ›ten","ÄŚerven","ÄŚervenec","Srpen","ZářĂ","ĹĂjen","Listopad","Prosinec"],yesterday:"VÄŤera",day:"den",days:"{count} dnĹŻ |{count} den |{count} dny |{count} dnĹŻ",week:"TĂ˝den",week_last:"PoslednĂch 7 dnĂ",month:"MÄ›sĂc",month_actual:"AktuálnĂ mÄ›sĂc",image_changed:"Obrázek byl zmÄ›nÄ›n",image_deleted:"Obrázek byl smazán",new_profile:"NovĂ˝ profil",back_to_profile:"ZpÄ›t na profil",array:"Pole",square:"ÄŚtverec",free_select:"VolnĂ˝ vĂ˝bÄ›r",find_out_more:"Zjistit vĂce",time:{days:"DNĹ®| DEN| DNY| DNĹ®",hours:"HODIN| HODINA| HODINY| HODIN",minutes:"MINUT| MINUTA| MINUTY| MINUT",seconds:"VTEĹIN| VTEĹINA| VTEĹINY| VTEĹIN"},partner:{title:"DoporuÄŤujeme sluĹľby od našich partnerĹŻ",text:"Vyberte si kurzy nebo workshopy, kterĂ© posunou vás a vaše žáky."},difference:{weekly:"ZmÄ›na oproti minulĂ©mu tĂ˝dnu",monthly:"ZmÄ›na oproti minulĂ©mu mÄ›sĂci"},last_days:"PoslednĂch {count} dnĂ",vat_included:"vÄŤ. DPH",vat:"DPH",vop_agree:"SouhlasĂm s VOP",year:"Rok",more:"dalšĂch",ucitelnice_note:"Poznámky UÄŤitelnice",write_us:"nám klidnÄ› napište.",here_in_moment:"tady bÄ›hem chvilky",total_profit:"CelkovĂ˝ zisk",start_here:"ZaÄŤnÄ›te tady",step:"Krok {step}/{total}:",from:"od",to:"do",upload_break:{christmas:{title:"Dejte si nohy nahoru a vezmÄ›te do ruky talĂĹ™ s cukrovĂm!",text:"MomentálnÄ› nenĂ moĹľnĂ© nahrávat ke schválenĂ novĂ© materiály. Ve dnech 23. - 26.12. tĂ˝m UÄŤitelnice odpoÄŤĂvá a trávĂ Vánoce u svĂ˝ch rodinnĂ˝ch krbĹŻ. VraĹĄte se sem nahrát novĂ˝ materiál 27. prosince. Budeme se na vás těšit."},easter:{title:"Namalujte vajĂÄŤka nebo si jen uĹľĂvejte jarnĂho slunĂÄŤka.",text:"MomentálnÄ› nenĂ moĹľnĂ© nahrávat ke schválenĂ novĂ© materiály. Ve dnech 29. - 31. 3. tĂ˝m UÄŤitelnice odpoÄŤĂvá a uĹľĂvá si velikonoÄŤnĂch dnĹŻ se svĂ˝mi blĂzkĂ˝mi. VraĹĄte se sem nahrát novĂ˝ materiál v pondÄ›lĂ 1. dubna, budeme se na vás těšit. KrásnĂ© Velikonoce vám pĹ™eje tĂ˝m UÄŤitelnice."}},state:"Stav",date:"Datum",duration:"Doba trvánĂ",planned:"Naplánovaná",plan:"Naplánovat"},lefttopay:{headline:"K vyplacenĂ",table:{name:"JmĂ©no a pĹ™ĂjmenĂ",id:"ID",amount:"Suma všech penÄ›z k vĂ˝platÄ›"}},download:{headline:"ZakoupenĂ© materiály",headline_user:"UĹľ jste u nás nakoupili",tabs:{user:"OsobnĂ materiály",school:"Ĺ kolnĂ materiály"},download_materials:"Stáhnout materiály","no-files":"Tenhle materiál nemá žádnĂ© soubory",table:{material:"Materiál",price:"Cena",date:"Datum",complaint:"Reklamace",download:"StaĹľenĂ"},to_download:"Ke staĹľenĂ",invoice:"FAKTURA",invoice_regenerate:"PĹ™egenerovat fakturu","go-to-download":"PĹ™ejĂt ke staĹľenĂ","download-invoices":"Stáhnout vybranĂ© faktury",invoices_headline:"VyúčtovánĂ",show_invoices:"Zobrazit vyúčtovánĂ",download_monthly_invoice:"Stáhnout faktury",bought:"Zakoupeno",updated_at:"Aktualizováno: ",in_complaint:"V reklamaci: ",search:{headline:"VyhledávanĂ",class:"TĹ™Ăda",subject:"PĹ™edmÄ›t",button:"VYHLEDAT"},download:"Stáhnout",file_type:"Formát",author:"Autor",price:"Zakoupeno za",show_less:"SkrĂ˝t",go_to_product_button:"Detail materiálu",buy_licences:"Dokoupit licence",report:"Nahlásit materiál",info:"Informace",rating:"HodnocenĂ"},transactions:{by:{system:"SystĂ©m",payout:"VĂ˝plata"},table:{header:{confirmed_at:"Datum potvrzenĂ"}}},clipboard:{copy:"ZkopĂrovat do schránky",copied:"ZkopĂrováno",failed:"Chyba pĹ™i kopĂrovanĂ",promo_product_link:"Odkaz na váš promo materiál byl zkopĂrován do schránky."},email:{name:"Ucitelnice.cz",confirm_subject:"PotvrzenĂ registrace na Ucitelnice.cz",confirm_body:"VĂtejte na UÄŤitelnici. ZbĂ˝vá uĹľ jen poslednĂ krok k dokonÄŤenĂ registrace. SvĹŻj účet aktivujete kliknutĂm na následujĂcĂ tlaÄŤĂtko:",complaint_title:"Reklamace",complaint_reported:"Byla pĹ™idána nová reklamace s dĹŻvodem:",complaint_closed:"Vaša reklamace byla uzavĹ™ena.",signature_thanks:"DÄ›kujeme za Váš zájem!",team:"TĂ˝m UÄŤitelnice.cz",credit_subject:"Informace o zmÄ›nÄ› kreditu",credit_title:"Ucitelnice.cz - zmÄ›na kreditu",credit_body:"DobrĂ˝ den, Váš kredit byl zmenen o: {amount} KÄŤ",credit_signature:"PÄ›knĂ˝ den",newAuthorUser_subject:"Jak vytvoĹ™it ĂşspěšnĂ˝ produkt?",productApprovedSubject:"VĂ˝bornÄ›! Váš produkt {product_name} na UÄŤitelnici byl schválen!",productApprovedFirstTimeSubject:"VĂ˝bornÄ›! Váš prvnĂ produkt -- {product_name} — na UÄŤitelnici byl schválen",newUserWelcome_subject:"VĂtejte na UÄŤitelnici",forUser_subject:"Nová zpráva",forUser_subject_product:"ZpÄ›tná vazba na Váš produkt",forUser_subject_complaint:"Reklamaci Ĺ™ešĂme",forUser_title:"Nová zpráva od UÄŤitelnice.cz",forAdmin_subject:"Nová zpráva od uĹľivatele {name} ",forAdmin_title:"Nová zpráva od uĹľivatele {name}",forAdmin_body:"Máte novou zprávu: ",to_message:"Zobrazit novou zprávu",gift_cards:"UÄŤitelnice.cz | DárkovĂ˝ poukaz",waiting_gift_card:"Objednávka voucheru - ÄŤeká sa na potvrzenĂ platby",productUpdatedSubject:"Novinky u materiálu {title}",webinarUpdatedSubject:"Záznam webináře a certifikát ke staĹľenĂ",webinarStartsAtReminderSubject:"UĹľ dnes v {time} zaÄŤĂná webinář {title}",order:{created_subject:"Objednávka je zaplacena. Materiály máte pĹ™ipravenĂ© ke staĹľenĂ.",paid_subject:"Platba pĹ™ijata",confirmation:{gateway:{subject:"DÄ›kujeme za Vaši objednávku!"},proforma:{subject:"DÄ›kujeme za Vaši objednávku!"}},paid:{gateway:{subject:"Platba probÄ›hla v pořádku! Materiály máte pĹ™ipravenĂ© ke staĹľenĂ"},proforma:{subject:"Platba probÄ›hla v pořádku! Materiály máte pĹ™ipravenĂ© ke staĹľenĂ."}},webinar:" DÄ›kujeme za nákup webináře. PĹ™ipojte se {date} v {time}"},credit_order:{subject:"ZmÄ›na kreditu",title:"UÄŚITELNICE.cz"},school_credit_order_created:{accountant:{subject:"Zálohová faktura k objednávce ÄŤ. {number}",title:"UÄŚITELNICE.cz"},manager:{subject:"Dobità školnĂho kreditu - informace k platbÄ›",title:"UÄŚITELNICE.cz"}},school_credit_order_invoiced:{accountant:{subject:"DaĹovĂ˝ doklad k objednávce ÄŤ. {number}",title:"UÄŚITELNICE.cz"},manager:{subject:"Dobità školnĂho kreditu - daĹovĂ˝ doklad",title:"UÄŚITELNICE.cz"}},school_order_created:{accountant:{subject:"Zálohová faktura k objednávce ÄŤ. {number}",title:"UÄŚITELNICE.cz"}},school_order_invoiced:{accountant:{subject:"DaĹovĂ˝ doklad k objednávce ÄŤ. {number}",title:"UÄŚITELNICE.cz"},employee:{subject:"Platba probÄ›hla v pořádku. Materiály máte pĹ™ipravenĂ© ke staĹľenĂ",title:"UÄŚITELNICE.cz"}},school_order_credit_created:{employee:{subject:"Platba probÄ›hla v pořádku. Materiály máte pĹ™ipravenĂ© ke staĹľenĂ",title:"UÄŚITELNICE.cz"}},school_credit_convert_confirmation:{subject:"UÄŤitelnice pro školy - novinky a daĹovĂ˝ doklad"},school_summarized_tax_document:{subject:"PosĂláme souhrnnĂ˝ daĹovĂ˝ doklad z UÄŤitelnice"},businessOrderPaid:{subject:"Faktura je zaplacena. Materiály máte pĹ™ipravenĂ© ke staĹľenĂ.",title:"Ucitelnice.cz | Faktura zaplacena"},credit:{subject:"ZmÄ›na kreditu",title:"UÄŚITELNICE.cz"},settlementPaid:{subject:"VyúčtovánĂ {date}",title:"UÄŚITELNICE.cz"},unpaidOrder:{subject:"UpozornÄ›nĂ na neuhrazenou objednávku",title:"UÄŚITELNICE.cz"},proforma:{subject:"Proforma objednavka"},mass:{subject:"Test Hromadna zprava",title:"Test Hromadna zprava"},product:{updated_categories:{subject:'Kategorie u materiálu "{title}" byly upraveny'}},voucher:{confirmation:{proforma:{subject:"DÄ›kujeme za Vaši objednávku!"}},paid:{subject:"DÄ›kujeme za Vaši objednávku!"}},product_rating:{subject:"HodnocenĂ produktĹŻ"},admin_product_feedback:{subject:{revision:"UĹľ jen pár Ăşprav a váš produkt -- {product_name} -- na UÄŤitelnici bude schválen!",revision_first:"UĹľ jen pár Ăşprav a váš prvnĂ produkt -- {product_name} -- na UÄŤitelnici bude schválen!",not_approved:"Váš produkt -- {product_name} — na UÄŤitelnici nebyl schválen, pojÄŹme se spoleÄŤnÄ› podĂvat, co s tĂm.",not_approved_first:"Váš produkt -- {product_name} — na UÄŤitelnici nebyl schválen, pojÄŹme se spoleÄŤnÄ› podĂvat, co s tĂm."},reasons:{image:{headline:"NáhledovĂ˝ obrázek",text:["Je dĹŻleĹľitĂ© zaujmout a odlišit se na prvnĂ pohled. NáhledovĂ˝ obrázek má vĹľdy ÄŤtvercovĂ˝ formát a obsahuje ty nejdĹŻleĹľitÄ›jšà informace o nabĂzenĂ©m materiálu. Zkontrolujte si prosĂm, Ĺľe je z náhledu zĹ™ejmĂ©, ÄŤeho se danĂ˝ materiál tĂ˝ká a pro koho je urÄŤenĂ˝.","VizuálnĂ atraktivitu vĹľdy zvyšuje to, pokud náhledovĂ˝ obrázek obsahuje fotky reálnĂ©ho, jiĹľ vyrobenĂ©ho materiálu.",'VĂce jsme se o náhledovĂ˝ch obrázcĂch rozepsali <a href="https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/prezentace-materi%C3%A1lu#h.j1p5u2x7ehsc" target="_blank">zde.</a>']},expensive:{headline:"Cena",text:['Cenu si u nás všichni autoĹ™i nastavujĂ sami dle svĂ©ho nejlepšĂho vÄ›domĂ a svÄ›domĂ. NicmĂ©nÄ› na základÄ› našich zkušenostĂ doporuÄŤuji cenu vašeho vzdÄ›lávacĂho materiálu zmÄ›nit. NezapomeĹte, Ĺľe cena nereflektuje pouze ÄŤas, kterĂ˝ jste s tvorbou materiálu strávili, ale musĂ bĂ˝t takĂ© akceptovatelná zákaznĂkem. VĂce o tom, jak postupovat pĹ™i nastavovánĂ ceny, jsme napsali <a href="https://autori.ucitelnice.cz/jak-na-prodej-materi%C3%A1l%C5%AF#h.p_AH5eSlA6qef7" target="_blank"> zde.</a>']},graphics_manufacturing:{headline:"Galerie obrázkĹŻ",text:["Je dĹŻleĹľitĂ© ukázat potenciálnĂm zájemcĹŻm, co v digitálnĂm souboru zĂskajĂ. Nikdo pĹ™ece nechce kupovat zajĂce v pytli.","Nahrajte tedy, prosĂm, náhledy materiálu. V pĹ™ĂpadÄ› celĂ˝ch stránek pĹ™es nÄ› nezapomeĹte dát nÄ›jakĂ˝ vodoznak, dĂky kterĂ©mu znemoĹľnĂte tisk náhledu.","Do galerie obrázkĹŻ se nejvĂce hodĂ fotky jiĹľ vypracovanĂ©ho materiálu, ale tĹ™eba takĂ© momentky ze tĹ™Ădy, kde je aktivita pouĹľĂvána v praxi. Nenahrávejte fotky v nĂzkĂ© kvalitÄ›"]},image_sources:{headline:"PouĹľitĂ© obrázky",text:['S pouĹľitĂm obrázkĹŻ v prodejnĂch materiálech je to, obzvlášť pro zaÄŤĂnajĂcĂho autora, trochu sloĹľitÄ›jšĂ. RozhodnÄ› nelze obrázky jen tak stáhnout z Googlu nebo Pinterestu. Obrázky musĂ bĂ˝t ve vysokĂ© kvalitÄ› a zároveĹ musĂ mĂt licenci pro komerÄŤnĂ pouĹľitĂ (CC0). VĂce k pouĹľĂvánĂ obrázkĹŻ v materiálech, kterĂ© chcete prodávat, jsme se rozepsali <a href="https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/jak-na-obr%C3%A1zky-v-materi%C3%A1lech" target="_blank">zde.</a>']},product_scale:{headline:"Rozsah",text:['VidĂm, Ĺľe jste si s vašĂm materiálem <a href="{product_link}" class="fst-italic">{product_name}</a> dal/a práci. ZatĂm je jeho rozsah ale pĹ™Ăliš malĂ˝ na to, abych ho mohla schválit k prodeji. V souÄŤasnĂ© podobÄ› ho mĹŻĹľete nabĂdnout na svĂ©m profilu zdarma jako ukázku svĂ© práce. Promo materiál na svĹŻj autorskĂ˝ profil pĹ™idáte <a href="https://www.ucitelnice.cz/dashboard/marketing/promo-material" target="_blank">ZDE</a>.',"MĹŻĹľete ho ale takĂ© rozšĂĹ™it tĹ™eba o dalšà aktivity a moĹľnosti vyuĹľitĂ. ZvýšĂte tak hodnotu vašeho produktu a já ho potĂ© ráda pĹ™idám do našà nabĂdky."]},intro_page:{headline:"PrĹŻvodnĂ list",text:["PrĹŻvodnĂ list je vlastnÄ› nÄ›co jako návod k pouĹľitĂ. MusĂ bĂ˝t pĹ™Ămou součástĂ danĂ©ho materiálu, pĹ™ipravenĂ˝ k vytištÄ›nĂ spolu s nĂm, tak aby mÄ›l zákaznĂk pokyny k práci s danĂ˝m vĂ˝ukovĂ˝m materiálem vĹľdy k dispozici. KdyĹľ se k materiálu vrátĂ za nÄ›jakou dobu, dĂky prĹŻvodnĂmu listu bude opÄ›t vÄ›dÄ›t, jak jej správnÄ› pouĹľĂt a nebude muset tyto instrukce na UÄŤitelnici sloĹľitÄ› dohledávat. ","Obsahuje nejen základnĂ parametry materiálu (obsah, návod k vytvoĹ™enĂ, licenÄŤnĂ podmĂnky, pro koho je vytvoĹ™en,...), ale hlavnÄ› vaše vlastnĂ zkušenosti, tipy a doporuÄŤenĂ, jak ho pĹ™i práci s dÄ›tmi co nejlĂ©pe vyuĹľĂt. ÄŚĂm vĂce svĂ˝ch zkušenostĂ dáte k dispozici, tĂm vĂce usnadnĂte svĂ˝m kolegĹŻm pouĹľitĂ vašeho materiálu v praxi. TakĂ© tĂm zvyšujete atraktivitu a hodnotu svĂ©ho materiálu a zároveĹ i svoji dĹŻvÄ›ryhodnost jako autora vĂ˝ukovĂ˝ch materiálĹŻ.",'VĂce jsme se o prĹŻvodnĂm listu rozepsali <a href="https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/pr%C5%AFvodn%C3%AD-list-jak-pracovat-s-materi%C3%A1lem" target="_blank">zde.</a>']},product_description:{headline:"Popis",text:["Váš popis musĂ potenciálnĂho kupujĂcĂho pĹ™esvÄ›dÄŤit o kvalitÄ› vámi nabĂzenĂ©ho produktu. ZároveĹ by si z nÄ›j mÄ›l zákaznĂk takĂ© udÄ›lat jasnou pĹ™edstavu, co od vašeho produktu ÄŤekat. MusĂte tedy popis zvolit dostateÄŤnÄ› jasnĂ˝, a zároveĹ atraktivnĂ. Popište ostatnĂm, co pĹ™esnÄ› v nÄ›m zákaznĂci najdou, v ÄŤem je skvÄ›lĂ˝, pro jak starĂ© dÄ›ti se dá vyuĹľĂt. NebuÄŹte zbyteÄŤnÄ› strozĂ, vašĂm cĂlem je pĹ™ece nalákat ostatnĂ, aby si váš skvÄ›lĂ˝ materiál, kterĂ©mu jste vÄ›novali mnoho ÄŤasu a ĂşsilĂ, koupili."]},copyright:{headline:"Autorská práva",text:['VážĂme si autorĹŻ všech velkĂ˝ch i malĂ˝ch dÄ›l po celĂ©m svÄ›tÄ›. Ve vašem produktu <a href="{product_link}" class="fst-italic">{product_name}</a> porušujete, byĹĄ moĹľná nevÄ›domky, nĂĹľe popsaná autorská práva.']},multiply_sign:{headline:'ZnamĂ©nko "krát"',text:['Váš materiál jsem prozatĂm neschválila, protoĹľe v nÄ›m pouĹľĂváte nesprávnĂ˝ znak pro znamĂ©nko krát. Je to hodnÄ› ÄŤastá chyba, ale oprava nenĂ vĹŻbec sloĹľitá, proto jsem pro autory natoÄŤila krátkĂ© video, kde se dozvĂte, jak znamĂ©nko krát psát správnÄ›. Najdete ho <a href="https://autori.ucitelnice.cz/video-tutori%C3%A1ly#h.p_AOEwq-HwBQEb" target="_blank">zde.</a>']},not_one_pdf:{headline:"NeslouÄŤenĂ© PDF",text:['Pro zákaznĂka je uĹľivatelsky pĹ™ĂvÄ›tivÄ›jšĂ, kdyĹľ si stahuje jeden PDF soubor neĹľ zazipovanĂ˝ soubor s mnoha vloĹľenĂ˝mi PDF stránkami (spousta uĹľivatelĹŻ má s otevĹ™enĂm problĂ©my). Pokud to tedy lze (vzhledem k charakteru materiálu), vĹľdy preferujeme, kdyĹľ autor nahraje jeden PDF dokument. JednotlivĂ© PDF stránky mĹŻĹľete jednoduše slouÄŤit v nÄ›jakĂ©m online programu. Já osobnÄ› nejradÄ›ji pouĹľĂvám <a href="https://www.ilovepdf.com/merge_pdf" target="_blank">tento.</a>']},pdf_instead_image:{headline:"UloĹľenĂ v PDF mĂsto JPG/PNG",text:["V souboru jsou nahranĂ© kartiÄŤky v nestandardnĂm formátu JPG/PNG, coĹľ je pro zákaznĂky uĹľivatelsky nepĹ™ĂjemnĂ©. ÄŚasto ani nevÄ›dĂ, jak si takovĂ˝ formát správnÄ› vytisknout. To se tĂ˝ká i uloĹľenĂ©ho formátu. Spousta jednotlivĂ˝ch JPG/PNG obrázkĹŻ, kterĂ© si zákaznĂci musĂ nejprve otevĹ™Ăt a pak aĹľ tisknout, jsou uĹľivatelsky nepohodlnĂ©. ProsĂm uloĹľte stránky v PDF formátu, je-li to moĹľnĂ©, tak v jednom souboru, nikoliv jednotlivÄ›."]},pages_not_a4:{headline:"Stránky nejsou ve formátu A4",text:["Stránky nejsou na formátu A4 a proto je nelze vytisknout správnÄ›.","Zkuste si zadat tisk ve vĂ˝chozĂm nastavenĂ tiskárny a v náhledu uvidĂte, jak by se zákaznĂkĹŻm materiál vytiskl.","Nejen z tÄ›chto dĹŻvodĹŻ velice doporuÄŤujeme si pĹ™ipravenĂ© materiály doma tisknout - objevĂte chyby ve formátovánĂ, jinĂ© chyby a navĂc budete mĂt hotovĂ˝ produkt, kterĂ˝ mĹŻĹľete nafotit a zvýšit tak jeho i svoji dĹŻvÄ›ryhodnost (= materiál nÄ›kdo opravdu pouĹľĂvá, pĹ™emýšlel nad nĂm)."]},presentation_wrong_format:{headline:"Prezentace ve špatnĂ©m formátu",text:["DoporuÄŤujeme uloĹľit a nahrát soubor ve formátu PPSX, kterĂ˝ zobrazĂ dokument pouze pro ÄŤtenĂ a nebude moĹľnĂ© jej upravovat. To je vĂ˝hodnĂ© hned ze dvou dĹŻvodĹŻ.","1) Nikdo nebude moci vašà prezentaci dále upravovat a pouĹľĂvat s jinĂ˝mi Ăşmysly, neĹľ jste mÄ›l/a vy.",'2) Prezentace se pĹ™i otevĹ™enĂ "nerozsype" a "nerozbije", jak se ÄŤasto stává.']},pdf_instead_docx:{headline:"UloĹľenĂ v PDF mĂsto DOCX",text:["ProsĂm uloĹľte všechny soubory jako dokument pdf. Tento formát preferujeme ze dvou dĹŻvodĹŻ:",'1) ZákaznĂkĹŻm se dokument zobrazĂ tak, jak jste ho vytvoĹ™il/a (stejnĂ© formátovánĂ, fonty,...) a "nerozsype" se jim po otevĹ™enĂ, protoĹľe tĹ™eba majĂ jinou verzi Office neĹľ máte vy.',"2) PĹ™edejdete tĂm (alespoŠčásteÄŤnÄ›) tomu, Ĺľe by lidĂ© libovolnÄ› zasahovali do vašeho materiálu a dÄ›lali v nÄ›m zmÄ›ny, kterĂ© si nepĹ™ejete."]},mistakes:{headline:"Chyby",text:["Materiály nekontrolujeme po pravopisnĂ©, gramatickĂ© nebo stylistickĂ© stránce. NicmĂ©nÄ› ve Vašem materiálu jsem si nÄ›kolika takovĂ˝chto chyb (nebo pĹ™eklepĹŻ) všimla. ProsĂm o jejich opravu a zároveĹ o kontrolu celĂ©ho materiálu."]},age_category:{headline:"ZaĹ™azenĂ do vÄ›kovĂ© kategorie",text:["ProsĂm o zaĹ™azenĂ do správnĂ© vÄ›kovĂ© kategorie. Takto zpracovanĂ˝ materiál urÄŤitÄ› nenĂ univerzálnÄ› vhodnĂ˝ pro dÄ›ti z mateĹ™inky a zároveĹ i pro deváťáky.","NezapomeĹte, Ĺľe kategorie nesloužà jen pro vyhledávánĂ materiálu, ale takĂ© pro orientaci uÄŤitelĹŻ (obzvláštÄ› tÄ›ch zaÄŤĂnajĂcĂch a studentĹŻ), jestli ho autor tvoĹ™il tak, aby ho mohli pouĹľĂt ve svĂ© tĹ™ĂdÄ›/roÄŤnĂku."]},color_print:{headline:"BarevnĂ˝ tisk",text:["DoporuÄŤuji zvážit, jestli je nutnĂ©, aby bylo v materiálu pouĹľito tolik barvy (obzvlášť na pozadĂ).","Naše zkušenost je, Ĺľe panĂ uÄŤitelky preferujĂ ÄŤernobĂlĂ© materiály (nenĂ-li barva v materiálu samozĹ™ejmÄ› funkÄŤnĂ) a následnĂ˝ pĹ™ĂpadnĂ˝ tisk na barevnĂ© papĂry, protoĹľe tisk (jakĂ˝koliv, natoĹľ barevnĂ˝) je stále ve školách problĂ©m. A barevnĂ˝ materiál a tedy nutnost barevnĂ©ho toneru, je pro velkou spoustu uÄŤitelĹŻ opravdu dĹŻvod, proÄŤ se rozhodnou materiál si nekoupit.","IdeálnĂ je, kdyĹľ soubor obsahuje obÄ› varianty a zákaznĂk si mĹŻĹľe vybrat, jakĂ˝ bude tisknout.","PĹ™ĂpadnĂ© pĹ™ebarvenĂ barev na šedou problĂ©m neĹ™ešĂ, tohoto lze dosáhnout i prostĂ˝m vytištÄ›nĂm barevnĂ©ho materiálu na tiskárnÄ› bez barevnĂ©ho toneru. V takovĂ©m pĹ™ĂpadÄ› by uÄŤitelĂ© vypotĹ™ebovávali zbyteÄŤnÄ› toner na pozadĂ, kterĂ© v ÄŚB verzi nemá žádnĂ˝ vĂ˝znam. ÄŚernobĂlá verze má bĂ˝t z podstaty vÄ›ci šetrnÄ›jšà na tisk a má tedy spotĹ™ebovat co nejmĂ©nÄ› barvy."]},missing_solution:{headline:"ChybĂ Ĺ™ešenĂ",text:["U takovĂ˝chto typĹŻ produktĹŻ je nezbytnĂ©, aby obsahovaly i správná Ĺ™ešenĂ. ProsĂm o doplnÄ›nĂ. BuÄŹ jako samokontrolu rovnou pro žáky nebo kontrolu pro panĂ uÄŤitelky."]},bib_source:{headline:"DoplnÄ›nĂ zdroje informacĂ",text:["V materiálu pracujete s bibliografickĂ˝mi informacemi. Je dĹŻleĹľitĂ©, aby zákaznĂci vÄ›dÄ›li, z jakĂ©ho zdroje jste ÄŤerpal/a, aby si pĹ™edkládanĂ© informace mohli pĹ™ĂpadnÄ› dohledat nebo ověřit."]},real_name:{headline:"UvedenĂ reálnĂ©ho jmĂ©na a pĹ™ĂjmenĂ",text:["ChtÄ›la bych vás poprosit o editaci vašeho profilu a vyplnÄ›nĂ skuteÄŤnĂ©ho jmĂ©na a pĹ™ĂjmenĂ. Je to dĹŻleĹľitĂ© proto, abychom na UÄŤitelnici vÄ›dÄ›li s kĂ˝m spolupracujeme a komunikujeme. ZároveĹ je to fĂ©r i vĹŻÄŤi vašim zákaznĂkĹŻm, kterĂ˝m svou transparentnostĂ dáváte najevo, Ĺľe si za vašà pracĂ stojĂte a nestydĂte se za nĂ (a proto za ni koneckoncĹŻ poĹľadujete i nÄ›jakĂ© penĂze).",'Vaše reálnĂ© jmĂ©no a pĹ™ĂjmenĂ mĹŻĹľete upravit ve <a href="https://www.ucitelnice.cz/profil/nastaveni/profil" target="_blank">vašem uĹľivatelskĂ©m profilu</a> v nastavenĂ. ','Vaše obchodnĂ jmĂ©no potom v nastavenĂ stránky <a href="https://www.ucitelnice.cz/dashboard/nastaveni/informace" target="_blank">MĹŻj e-shop.</a>']},canva_templates:{headline:"VyuĹľĂvánà šablon z Canvy",text:['Váš materiál jsem zatĂm neschválila, protoĹľe bych se chtÄ›la ujistit, Ĺľe jste pĹ™i tvorbÄ› nevyuĹľĂval/a pĹ™edpĹ™ipravenĂ© šablony z Canvy. PosĂlám pro jistotu naše <a href="https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/jak-pracovat-v-canv%C4%9B" target="_blank">vyjádĹ™enĂ ke CanvÄ›</a>, kde najdete informace k tomu, jak v CanvÄ› tvoĹ™it, abyste mohli materiály následnÄ› prodávat.',"Je dĹŻleĹľitĂ© zaÄŤĂnat vĹľdy na prázdnĂ© stránce a prvky si na stránku naskládat podle sebe, nepouĹľĂvat (neupravovat si) pĹ™edpĹ™ipravenĂ© šablony. DÄ›kuji za vaše vyjádĹ™enĂ"]},meaningless_file_name:{headline:"NesmyslnĂ˝ název souboru",text:["JmĂ©no stahovanĂ©ho souboru zákaznĂkovi nijak pĹ™i hledánĂ toho správnĂ©ho uloĹľenĂ©ho materiálu v jeho poÄŤĂtaÄŤi nepomĹŻĹľe. VlastnÄ› ani vám - jako autorovi. Soubory vĹľdy ukládejte pod takovĂ˝m názvem, ze kterĂ©ho je hned zĹ™ejmĂ©, co obsahujĂ."]},small_border:{headline:"Text naformátovanĂ˝ pĹ™Ăliš k okraji stránky",text:["Na nÄ›kterĂ˝ch stránkách máte text naformátovanĂ˝ aĹľ k samĂ©mu okraji stránky, pĹ™i tisku se tak stránka nevytiskne kompletnĂ a okraje budou chybÄ›t. Poprosila bych vás tedy o vÄ›tšà odsazenĂ textu od okraje u tÄ›chto stránek."]},no_watermark:{headline:"ChybĂ vodoznak u náhledovĂ˝ch obrázkĹŻ",text:["UrÄŤitÄ› se nejedná o chybu, ale o doporuÄŤenĂ z našà strany. Dejte si pĹ™es náhledovĂ© obrázky materiálu nÄ›jakĂ˝ text/vodoznak, aĹĄ zamezĂte nekontrolovanĂ©mu stahovánĂ a ukládánĂ materiálu bez jeho zakoupenĂ."]},similar_cover_images:{headline:"PodobnĂ© náhledovĂ© obrázky",text:["U náhledovĂ˝ch obrázkĹŻ bych doporuÄŤila je od sebe nÄ›jak vizuálnÄ› odlišovat. LidĂ© opravdu neÄŤtou a orientujĂ se podle obrázkĹŻ. KdyĹľ tedy budou od vás vĂdat tyto stejnĂ© náhledovĂ© obrázky, nebudou na nÄ› klikat, protoĹľe si budou myslet, Ĺľe uĹľ je vidÄ›li. DoporuÄŤujeme, vytvoĹ™it si vlastnĂ rozpoznatelnĂ˝ vizuálnĂ styl, kde se budou mÄ›nit napĹ™Ăklad barvy, obrázky, fotky atd. a náhledovĂ˝ obrázek tedy bude mĂt, v konkurenci dalšĂch, šanci zaujmout."]},duplicate_product:{headline:"DuplicitnĂ materiál",text:["Tento váš materiál jsem oznaÄŤila jako neschválenĂ˝ a to proto, Ĺľe mi pĹ™ipadá, Ĺľe je duplicitnĂ k vašemu jiĹľ zveĹ™ejnÄ›nĂ©mu materiálu. Je moĹľnĂ©, Ĺľe mi nÄ›co uniká a nÄ›co jsem pĹ™ehlĂ©dla, kaĹľdopádnÄ› z náhledu, galerie, popisu i samotnĂ©ho materiálu se mi opravdu zdá, Ĺľe se jedná o totoĹľnĂ© produkty. Pokud tomu tak nenĂ, prosĂm o upĹ™esnÄ›nĂ, v ÄŤem se materiály lišà a o jejich vĂ˝raznÄ›jšà odlišenĂ v popisu, náhledu, galerii, aby to nebylo pro zákaznĂky matoucĂ, dÄ›kuji."]},trimino_license:{headline:"Trimino nevhodnĂ© pro komerÄŤnĂ vyuĹľitĂ",text:['Váš materiál je vytvoĹ™en v generátoru na <a href="https://schule.paul-matthies.de/Trimino.php" target="_blank">webovĂ˝ch stránkách</a>, kde je v licenÄŤnĂch podmĂnkách (dole na stránce) uvedeno, Ĺľe materiály nemohou bĂ˝t pouĹľity pro komerÄŤnà účely.',"Co s tĂm? BuÄŹ mĹŻĹľete materiál nabĂdnout ve svĂ©m e-shopu jako promo materiál, neboli ukázku vašà práce zdarma. Nebo si vytvoĹ™it šablonu a udÄ›lat vše od začátku. "]},dobble_copyright:{headline:"Dobble - autorská práva",text:['Vzhledem k autorskĂ˝m právĹŻm, nelze pouĹľĂvat u aktivit typu "Dobble" toto slovo. Hry na tomto principu pojmenováváme a zaĹ™azujeme do kategorie "PostĹ™ehovky". ProsĂm o Ăşpravu názvu, popisu, náhledovĂ©ho obrázku a prĹŻvodnĂho listu.']},connecting_comma:{headline:"Napojovacà čárka",text:['ProsĂm o doplnÄ›nĂ napojovacà čárky, tak aby pĂsmena zaÄŤĂnala vĹľdy “na lince” a dÄ›ti si nefixovaly špatnĂ˝ tvar pĂsmene. Napojovacà čárku napĂšete pomocĂ symbolu "paragraf" >>> §']},math_signs:{headline:"Metodická chyba - matematická znamĂ©nka",text:["Mezi znázorĹovanĂ© objekty nelze vkládat matematická znamĂ©nka, pĹ™estoĹľe totiĹľ pĹ™Ăklad vypadá jako ilustrativnĂ, realitÄ› neodpovĂdá. TakovĂ©to obrázky znázorĹujĂ modely jednotlivĂ˝ch ÄŤĂsel, nikoliv model operace sÄŤĂtánĂ. NavĂc v běžnĂ©m ĹľivotÄ› nesÄŤĂtáme/neodÄŤĂtáme pĹ™edmÄ›ty (ty k sobÄ› pĹ™idáváme, odebĂráme je), tedy znamĂ©nka sÄŤĂtánĂ/odÄŤĂtánĂ nepouĹľĂváme mezi objekty, ale pouze mezi ÄŤĂsly."]},update_for_current_year:{headline:"Aktualizace produktu na aktuálnĂ rok",text:["ProsĂm o aktualizaci produktu na aktuálnĂ rok/y. Aktualizaci prosĂm proveÄŹte ve všech částech produktu, kde se tato informace vyskytuje, zejmĂ©na v názvu a popisu produktu, náhledovĂ©m obrázku a pak v samotnĂ©m materiálu. Moc dÄ›kujeme za spolupráci."]},add_year_to_preview:{headline:"DoplnÄ›nĂ roku do popisku a náhledu produktu",text:["ProsĂm o doplnÄ›nĂ roku do popisu produktu a zejmĂ©na na náhledovĂ˝ obrázek. Je to z toho dĹŻvodu, Ĺľe materiál nenĂ univerzálnĂ a bude fungovat pouze pro konkrĂ©tnĂ rok. DĂky tĂ©to obsaĹľenĂ© informaci vás budeme moci přÚtĂ rok kontaktovat s prosbou o aktualizaci. DÄ›kuji za spolupráci."]}}}}},en:{auth:{failed:"These credentials do not match our records.",throttle:"Too many login attempts. Please try again in {seconds} seconds."},validation:{accepted:"The {attribute} must be accepted.",active_url:"The {attribute} is not a valid URL.",after:"The {attribute} must be a date after {date}.",after_or_equal:"The {attribute} must be a date after or equal to {date}.",alpha:"The {attribute} may only contain letters.",alpha_dash:"The {attribute} may only contain letters, numbers, and dashes.",alpha_num:"The {attribute} may only contain letters and numbers.",array:"The {attribute} must be an array.",before:"The {attribute} must be a date before {date}.",before_or_equal:"The {attribute} must be a date before or equal to {date}.",between:{numeric:"The {attribute} must be between {min} and {max}.",file:"The {attribute} must be between {min} and {max} kilobytes.",string:"The {attribute} must be between {min} and {max} characters.",array:"The {attribute} must have between {min} and {max} items."},boolean:"The {attribute} field must be true or false.",confirmed:"The {attribute} confirmation does not match.",date:"The {attribute} is not a valid date.",date_format:"The {attribute} does not match the format {format}.",different:"The {attribute} and {other} must be different.",digits:"The {attribute} must be {digits} digits.",digits_between:"The {attribute} must be between {min} and {max} digits.",dimensions:"The {attribute} has invalid image dimensions.",distinct:"The {attribute} field has a duplicate value.",email:"The {attribute} must be a valid email address.",exists:"The selected {attribute} is invalid.",file:"The {attribute} must be a file.",filled:"The {attribute} field must have a value.",image:"The {attribute} must be an image.",in:"The selected {attribute} is invalid.",in_array:"The {attribute} field does not exist in {other}.",integer:"The {attribute} must be an integer.",ip:"The {attribute} must be a valid IP address.",ipv4:"The {attribute} must be a valid IPv4 address.",ipv6:"The {attribute} must be a valid IPv6 address.",json:"The {attribute} must be a valid JSON string.",max:{numeric:"The {attribute} may not be greater than {max}.",file:"The {attribute} may not be greater than {max} kilobytes.",string:"The {attribute} may not be greater than {max} characters.",array:"The {attribute} may not have more than {max} items."},mimes:"The {attribute} must be a file of type: {values}.",mimetypes:"The {attribute} must be a file of type: {values}.",min:{numeric:"The {attribute} must be at least {min}.",file:"The {attribute} must be at least {min} kilobytes.",string:"The {attribute} must be at least {min} characters.",array:"The {attribute} must have at least {min} items."},not_in:"The selected {attribute} is invalid.",numeric:"The {attribute} must be a number.",present:"The {attribute} field must be present.",regex:"The {attribute} format is invalid.",required:"The {attribute} field is required.",required_if:"The {attribute} field is required when {other} is {value}.",required_unless:"The {attribute} field is required unless {other} is in {values}.",required_with:"The {attribute} field is required when {values} is present.",required_with_all:"The {attribute} field is required when {values} is present.",required_without:"The {attribute} field is required when {values} is not present.",required_without_all:"The {attribute} field is required when none of {values} are present.",same:"The {attribute} and {other} must match.",size:{numeric:"The {attribute} must be {size}.",file:"The {attribute} must be {size} kilobytes.",string:"The {attribute} must be {size} characters.",array:"The {attribute} must contain {size} items."},string:"The {attribute} must be a string.",timezone:"The {attribute} must be a valid zone.",unique:"The {attribute} has already been taken.",uploaded:"The {attribute} failed to upload.",url:"The {attribute} format is invalid.",custom:{"attribute-name":{"rule-name":"custom-message"}},attributes:[]},pagination:{previous:"« Previous",next:"Next »"},passwords:{password:"Passwords must be at least six characters and match the confirmation.",reset:"Your password has been reset!",sent:"We have e-mailed your password reset link!",token:"This password reset token is invalid.",user:"We can't find a user with that e-mail address."}},sk:{auth:{failed:"Prihlasovacie Ăşdaje nie sĂş správne.",throttle:"PrekroÄŤenĂ˝ limit pokusov. SkĂşste znovu o {seconds} sekĂşnd."},validation:{accepted:"{attribute} musĂ byĹĄ akceptovanĂ˝.",active_url:"{attribute} má neplatnĂş URL adresu.",after:"{attribute} musĂ byĹĄ dátum po {date}.",after_or_equal:"{attribute} musĂ byĹĄ dátum po alebo presne {date}.",alpha:"{attribute} mĂ´Ĺľe obsahovaĹĄ len pĂsmená.",alpha_dash:"{attribute} mĂ´Ĺľe obsahovaĹĄ len pĂsmená, ÄŤĂsla a pomlÄŤky.",alpha_num:"{attribute} mĂ´Ĺľe obsahovaĹĄ len pĂsmená, ÄŤĂsla.",array:"{attribute} musĂ byĹĄ pole.",before:"{attribute} musĂ byĹĄ dátum pred {date}.",before_or_equal:"{attribute} musĂ byĹĄ dátum pred alebo presne {date}.",between:{numeric:"{attribute} musĂ maĹĄ rozsah {min} - {max}.",file:"{attribute} musĂ maĹĄ rozsah {min} - {max} kilobajtov.",string:"{attribute} musĂ maĹĄ rozsah {min} - {max} znakov.",array:"{attribute} musĂ maĹĄ rozsah {min} - {max} prvkov."},boolean:"{attribute} musĂ byĹĄ pravda alebo nepravda.",confirmed:"{attribute} konfirmácia sa nezhoduje.",date:"{attribute} má neplatnĂ˝ dátum.",date_format:"{attribute} sa nezhoduje s formátom {format}.",different:"{attribute} a {other} musia byĹĄ odlišnĂ©.",digits:"{attribute} musĂ maĹĄ {digits} ÄŤĂslic.",digits_between:"{attribute} musĂ maĹĄ rozsah {min} aĹľ {max} ÄŤĂslic.",dimensions:"{attribute} má neplatnĂ© rozmery obrázku.",distinct:"{attribute} je duplicitnĂ˝.",email:"{attribute} má neplatnĂ˝ formát.",exists:"oznaÄŤenĂ˝ {attribute} je neplatnĂ˝.",file:"{attribute} musĂ byĹĄ sĂşbor.",filled:"{attribute} je poĹľadovanĂ©.",image:"{attribute} musĂ byĹĄ obrázok.",in:"oznaÄŤenĂ˝ {attribute} je neplatnĂ˝.",in_array:"{attribute} sa nenachádza v {other}.",integer:"{attribute} musĂ byĹĄ celĂ© ÄŤĂslo.",ip:"{attribute} musĂ byĹĄ platná IP adresa.",ipv4:"{attribute} musĂ byĹĄ platná IPv4 adresa.",ipv6:"{attribute} musĂ byĹĄ platná IPv6 adresa.",json:"{attribute} musĂ byĹĄ platnĂ˝ JSON reĹĄazec.",max:{numeric:"{attribute} nemĂ´Ĺľe byĹĄ väčšà ako {max}.",file:"{attribute} nemĂ´Ĺľe byĹĄ väčšà ako {max} kilobajtov.",string:"{attribute} nemĂ´Ĺľe byĹĄ väčšà ako {max} znakov.",array:"{attribute} nemĂ´Ĺľe maĹĄ viac ako {max} prvkov."},mimes:"{attribute} musĂ byĹĄ sĂşbor s koncovkou: {values}.",mimetypes:"{attribute} musĂ byĹĄ sĂşbor s koncovkou: {values}.",min:{numeric:"{attribute} musĂ maĹĄ aspoĹ {min}.",file:"{attribute} musĂ maĹĄ aspoĹ {min} kilobajtov.",string:"{attribute} musĂ maĹĄ aspoĹ {min} znakov.",array:"{attribute} musĂ maĹĄ aspoĹ {min} prvkov."},not_in:"oznaÄŤenĂ˝ {attribute} je neplatnĂ˝.",numeric:"{attribute} musĂ byĹĄ ÄŤĂslo.",present:"{attribute} musĂ byĹĄ odoslanĂ˝.",regex:"{attribute} má neplatnĂ˝ formát.",required:"{attribute} je poĹľadovanĂ©.",required_if:"{attribute} je poĹľadovanĂ© keÄŹ {other} je {value}.",required_unless:"{attribute} je poĹľadovanĂ©, okrem prĂpadu keÄŹ {other} je v {values}.",required_with:"{attribute} je poĹľadovanĂ© keÄŹ {values} je prĂtomnĂ©.",required_with_all:"{attribute} je poĹľadovanĂ© ak {values} je nastavenĂ©.",required_without:"{attribute} je poĹľadovanĂ© keÄŹ {values} nie je prĂtomnĂ©.",required_without_all:"{attribute} je poĹľadovanĂ© ak Ĺľiadne z {values} nie je nastavenĂ©.",same:"{attribute} a {other} sa musia zhodovaĹĄ.",size:{numeric:"{attribute} musĂ byĹĄ {size}.",file:"{attribute} musĂ maĹĄ {size} kilobajtov.",string:"{attribute} musĂ maĹĄ {size} znakov.",array:"{attribute} musĂ obsahovaĹĄ {size} prvkov."},string:"{attribute} musĂ byĹĄ reĹĄazec znakov.",timezone:"{attribute} musĂ byĹĄ platnĂ© ÄŤasovĂ© pásmo.",unique:"{attribute} uĹľ existuje.",uploaded:"Nepodarilo sa nahraĹĄ {attribute}.",url:"{attribute} musĂ maĹĄ formát URL.",custom:{"attribute-name":{"rule-name":"custom-message"}},attributes:[]},pagination:{previous:"« PredchádzajĂşca",next:"NasledujĂşca »"},passwords:{password:"Heslo sa musĂ zhodovaĹĄ a obsahovaĹĄ najmenej šesĹĄ znakov.",reset:"Heslo bolo zmenenĂ©!",sent:"Pripomienka k zmene hesla bola odoslaná!",token:"Klúč pre obnovu hesla je neplatnĂ˝.",user:"Nepodarilo sa nájsĹĄ pouĹľĂvateÄľa s touto e-mailovou adresou."},public:{login:"PrihlásenĂ",logout:"OdhlásenĂ",confirmation_success:"Email Ăşspešne potvrzenĂ",invalid_confirmation_code:"NevalidnĂ potvrzovacĂ kĂłd",register:"Registrace",personal_settings:"OsobnĂ© nastavenĂ"},email:{confirm_subject:"UÄŤitelnice - PotvrzenĂ registrace"}}};function fv(e,t,n=null,o=null,i=null){window.events.emit("flash",{message:e,type:t,timeout:n,component:o,componentData:i})}function Fe(e,t=null,n=null,o=null,i=null){var r,s,a;if(e===null&&o){fv(e,t,n,o,i);return}if(typeof e=="string"&&t!==null){fv(e,t,n);return}if(e!=null&&e.status){(r=e.data)!=null&&r.message&&fv(e.data.message,"success",n);return}if(e!=null&&e.response){let l=e.response;if((l==null?void 0:l.status)===500){fv(500,"error",n);return}if((s=l==null?void 0:l.data)!=null&&s.errors){Object.entries(l.data.errors).forEach(([,u])=>{u.forEach(f=>{fv(f,"error",n)})});return}(a=l.data)!=null&&a.message&&fv(l.data.message,"error",n)}}const nS="1em",ZSe={top:{container:{flexDirection:"column"},legend:{order:-1,margin:0,marginBottom:nS}},right:{container:{},legend:{flexDirection:"column",margin:0,marginLeft:nS}},bottom:{container:{flexDirection:"column"},legend:{}},left:{container:{},legend:{flexDirection:"column",order:-1,margin:0,marginRight:nS}}};function Ad(e){return Number(e.toPrecision(15))}function KSe({el:e,onResize:t}){const n=In(0),o=In(0),i=new ResizeObserver(s=>{if(!e.value)return;const a=s[0];n.value=a.contentRect.width,o.value=a.contentRect.height;/* istanbul ignore else -- @preserve */t&&t(n.value,o.value)});Co(e,(s,a)=>{a&&i.unobserve(a),s&&i.observe(s)},{immediate:!0});const r=()=>{i.disconnect()};return pr()&&cu(()=>{r()}),{width:n,height:o,stop:r}}const vz=["#FF6384","#36A2EB","#FFCE56","#F58231","#46F0F0","#D2F53C","#911EB4","#F032E6","#3CB44B","#FFE119","#E6194B","#FABEBE","#008080","#E6BEFF","#0082C8","#AA6E28","#FFFAC8","#800000","#AAFFC3","#808000","#FFD8B1","#000080","#808080","#000000"],HQ=()=>{let e=0,t=!1;return()=>{e===0&&t&&console.warn("Ran out of default colors, reusing colors");const n=vz[e];return e=(e+1)%vz.length,e===0&&(t=!0),n}},JSe=["title"],XSe=xo({__name:"DonutSections",props:{sections:{},startAngle:{},total:{}},emits:["section-click","section-mouseenter","section-mouseleave","section-mouseover","section-mouseout","section-mousemove"],setup(e,{emit:t}){const n=e,o=t,i=dt(()=>({transform:`rotate(${n.startAngle}deg)`})),r=dt(()=>{let s=0;const a=HQ(),l=[];n.sections.forEach(f=>{const p=Ad(360*(f.value/(n.total||1))),v=f.color||a(),_=Ad(s+p);if(_>180){const k=Ad(180-s),C=Ad(p-k);l.push({baseSection:f,degree:k,color:v},{baseSection:f,degree:C,color:v})}else l.push({baseSection:f,degree:p,color:v});s=_,s>=180&&(s=Ad(s-180))});const d=[];s=0;let u=0;return l.forEach(f=>{if(f.degree===0)return;let[p,v]=["cdc-section-right",-180];s>=180&&([p,v]=["cdc-section-left",180]);const _={backgroundColor:f.color,transform:`rotate(${Ad(v+f.degree)}deg)`},k={transform:`rotate(${u}deg)`};s=Ad(s+f.degree),s===180?u=0:u=Ad(u+f.degree);const C={click:$=>o("section-click",{section:f.baseSection,event:$}),mouseenter:$=>o("section-mouseenter",{section:f.baseSection,event:$}),mouseleave:$=>o("section-mouseleave",{section:f.baseSection,event:$}),mouseover:$=>o("section-mouseover",{section:f.baseSection,event:$}),mouseout:$=>o("section-mouseout",{section:f.baseSection,event:$}),mousemove:$=>o("section-mousemove",{section:f.baseSection,event:$})};d.push({baseSection:f.baseSection,degree:f.degree,color:f.color,className:p,fillerStyles:_,sectionStyles:k,listeners:C})}),d});return(s,a)=>(h(),g("div",{class:"cdc-sections",style:Bn(i.value)},[(h(!0),g(pe,null,Me(r.value,(l,d)=>(h(),g("div",Ur({key:d,class:["cdc-section",l.className],style:l.sectionStyles},Yu(l.listeners,!0)),[c("div",{class:"cdc-filler",style:Bn(l.fillerStyles),title:l.baseSection.label||""},null,12,JSe)],16))),128))],4))}}),QSe=["title"],eTe=xo({__name:"DonutChart",props:{size:{default:250},unit:{default:"px"},thickness:{default:20},text:{default:""},autoAdjustTextSize:{type:Boolean,default:!0},background:{default:"#ffffff"},foreground:{default:"#eeeeee"},sections:{default:()=>[]},total:{default:100},hasLegend:{type:Boolean,default:!1},legendPlacement:{default:"bottom"},startAngle:{default:0},suppressValidationWarnings:{type:Boolean,default:!1}},emits:["section-click","section-mouseenter","section-mouseleave","section-mouseover","section-mouseout","section-mousemove"],setup(e,{emit:t}){const n=e,o=t,i=In(),r=dt(()=>{const p=HQ();return n.sections.map((v,_)=>({label:v.label||`Section ${_+1}`,value:`${v.value} (${Ad(v.value/(n.total||1))*100}%)`,styles:{backgroundColor:v.color||p()}}))}),s=In("1em"),a=()=>{if(!n.autoAdjustTextSize){s.value="1em";return}const p=.08;let v=n.size;if(n.unit!=="px"){/* istanbul ignore else -- @preserve */i.value?v=i.value.clientWidth:v=null}s.value=v?`${Ad(v*p)}px`:"1em"};KSe({el:i,onResize:a}),Co(()=>n.autoAdjustTextSize,p=>{p?window.addEventListener("resize",a):window.removeEventListener("resize",a),a()});const l=dt(()=>n.hasLegend?ZSe[n.legendPlacement]:null),d=dt(()=>{const p=`${n.size}${n.unit}`;return{width:p,paddingBottom:p,backgroundColor:n.foreground}}),u=dt(()=>{const p=100-n.thickness,v=`${p}%`,_=`calc(50% - ${p/2}%)`;return{height:v,width:v,top:_,left:_,backgroundColor:n.background}}),f=dt(()=>({fontSize:s.value}));return Co(()=>n.size,()=>{n.suppressValidationWarnings||n.size<0&&console.warn("vue-css-donut-chart: `size` must be a positive number")},{immediate:!0}),Co(()=>n.thickness,()=>{n.suppressValidationWarnings||(n.thickness<0||n.thickness>100)&&console.warn("vue-css-donut-chart: `thickness` must be between 0 and 100")},{immediate:!0}),Co([()=>n.total,()=>n.sections],()=>{if(!n.suppressValidationWarnings){if(n.total<0){console.warn("vue-css-donut-chart: `total` must be a positive number");return}Ad(n.sections.reduce((p,v)=>p+(typeof v.value=="number"?v.value:0),0))>n.total&&console.warn("vue-css-donut-chart: Sum of section values exceeds `total`")}},{immediate:!0,deep:!0}),(p,v)=>{var _;return h(),g("div",{class:"cdc-container",style:Bn((_=l.value)==null?void 0:_.container)},[c("div",{ref_key:"donutEl",ref:i,class:"cdc",style:Bn(d.value)},[b(XSe,{sections:n.sections,"start-angle":n.startAngle,total:n.total,onSectionClick:v[0]||(v[0]=k=>o("section-click",k.section,k.event)),onSectionMouseenter:v[1]||(v[1]=k=>o("section-mouseenter",k.section,k.event)),onSectionMouseleave:v[2]||(v[2]=k=>o("section-mouseleave",k.section,k.event)),onSectionMouseover:v[3]||(v[3]=k=>o("section-mouseover",k.section,k.event)),onSectionMouseout:v[4]||(v[4]=k=>o("section-mouseout",k.section,k.event)),onSectionMousemove:v[5]||(v[5]=k=>o("section-mousemove",k.section,k.event))},null,8,["sections","start-angle","total"]),c("div",{class:"cdc-overlay",style:Bn(u.value)},[c("div",{class:"cdc-text",style:Bn(f.value)},[Pt(p.$slots,"default",{},()=>[z(m(p.text),1)])],4)],4)],4),Pt(p.$slots,"legend",{},()=>{var k;return[p.hasLegend?(h(),g("div",{key:0,class:"cdc-legend",style:Bn((k=l.value)==null?void 0:k.legend)},[(h(!0),g(pe,null,Me(r.value,(C,$)=>(h(),g("span",{key:$,class:"cdc-legend-item",title:C.value},[c("span",{class:"cdc-legend-item-color",style:Bn(C.styles)},null,4),c("span",null,m(C.label),1)],8,QSe))),128))],4)):D("",!0)]})],4)}}}),tTe={install(e){e.component("VcDonut",eTe)}},VQ=Object.prototype.toString;function qQ(e){switch(VQ.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return q1(e,Error)}}function Cy(e,t){return VQ.call(e)===`[object ${t}]`}function Ix(e){return Cy(e,"ErrorEvent")}function _z(e){return Cy(e,"DOMError")}function nTe(e){return Cy(e,"DOMException")}function ff(e){return Cy(e,"String")}function Px(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ax(e){return e===null||Px(e)||typeof e!="object"&&typeof e!="function"}function W_(e){return Cy(e,"Object")}function y9(e){return typeof Event<"u"&&q1(e,Event)}function oTe(e){return typeof Element<"u"&&q1(e,Element)}function iTe(e){return Cy(e,"RegExp")}function b9(e){return!!(e&&e.then&&typeof e.then=="function")}function rTe(e){return W_(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function sTe(e){return typeof e=="number"&&e!==e}function q1(e,t){try{return e instanceof t}catch{return!1}}function YQ(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function g_(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function yz(e,t){if(!Array.isArray(e))return"";const n=[];for(let o=0;o<e.length;o++){const i=e[o];try{YQ(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function aTe(e,t,n=!1){return ff(e)?iTe(t)?t.test(e):ff(t)?n?e===t:e.includes(t):!1:!1}function k9(e,t=[],n=!1){return t.some(o=>aTe(e,o,n))}function lTe(e,t,n=250,o,i,r,s){if(!r.exception||!r.exception.values||!s||!q1(s.originalException,Error))return;const a=r.exception.values.length>0?r.exception.values[r.exception.values.length-1]:void 0;a&&(r.exception.values=cTe(hI(e,t,i,s.originalException,o,r.exception.values,a,0),n))}function hI(e,t,n,o,i,r,s,a){if(r.length>=n+1)return r;let l=[...r];if(q1(o[i],Error)){bz(s,a);const d=e(t,o[i]),u=l.length;kz(d,i,u,a),l=hI(e,t,n,o[i],i,[d,...l],d,u)}return Array.isArray(o.errors)&&o.errors.forEach((d,u)=>{if(q1(d,Error)){bz(s,a);const f=e(t,d),p=l.length;kz(f,`errors[${u}]`,p,a),l=hI(e,t,n,d,i,[f,...l],f,p)}}),l}function bz(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function kz(e,t,n,o){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:o}}function cTe(e,t){return e.map(n=>(n.value&&(n.value=g_(n.value,t)),n))}function yw(e){return e&&e.Math==Math?e:void 0}const Ai=typeof globalThis=="object"&&yw(globalThis)||typeof window=="object"&&yw(window)||typeof self=="object"&&yw(self)||typeof global=="object"&&yw(global)||function(){return this}()||{};function Dx(){return Ai}function WQ(e,t,n){const o=n||Ai,i=o.__SENTRY__=o.__SENTRY__||{};return i[e]||(i[e]=t())}const xx=Dx(),dTe=80;function GQ(e,t={}){if(!e)return"<unknown>";try{let n=e;const o=5,i=[];let r=0,s=0;const a=" > ",l=a.length;let d;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||dTe;for(;n&&r++<o&&(d=uTe(n,u),!(d==="html"||r>1&&s+i.length*l+d.length>=f));)i.push(d),s+=d.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function uTe(e,t){const n=e,o=[];let i,r,s,a,l;if(!n||!n.tagName)return"";if(xx.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;o.push(n.tagName.toLowerCase());const d=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(d&&d.length)d.forEach(f=>{o.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&o.push(`#${n.id}`),i=n.className,i&&ff(i))for(r=i.split(/\s+/),l=0;l<r.length;l++)o.push(`.${r[l]}`);const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)s=u[l],a=n.getAttribute(s),a&&o.push(`[${s}="${a}"]`);return o.join("")}function hTe(){try{return xx.document.location.href}catch{return""}}function fTe(e){if(!xx.HTMLElement)return null;let t=e;const n=5;for(let o=0;o<n;o++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const v3=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,mTe="Sentry Logger ",fI=["debug","info","warn","error","log","assert","trace"],h5={};function w9(e){if(!("console"in Ai))return e();const t=Ai.console,n={},o=Object.keys(h5);o.forEach(i=>{const r=h5[i];n[i]=t[i],t[i]=r});try{return e()}finally{o.forEach(i=>{t[i]=n[i]})}}function pTe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return v3?fI.forEach(n=>{t[n]=(...o)=>{e&&w9(()=>{Ai.console[n](`${mTe}[${n}]:`,...o)})}}):fI.forEach(n=>{t[n]=()=>{}}),t}const to=pTe(),gTe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function vTe(e){return e==="http"||e==="https"}function _3(e,t=!1){const{host:n,path:o,pass:i,port:r,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${r?`:${r}`:""}/${o&&`${o}/`}${s}`}function _Te(e){const t=gTe.exec(e);if(!t){w9(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,o,i="",r,s="",a]=t.slice(1);let l="",d=a;const u=d.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),d=u.pop()),d){const f=d.match(/^\d+/);f&&(d=f[0])}return ZQ({host:r,pass:i,path:l,projectId:d,port:s,protocol:n,publicKey:o})}function ZQ(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function yTe(e){if(!v3)return!0;const{port:t,projectId:n,protocol:o}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(to.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?vTe(o)?t&&isNaN(parseInt(t,10))?(to.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(to.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):(to.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function bTe(e){const t=typeof e=="string"?_Te(e):ZQ(e);if(!(!t||!yTe(t)))return t}class Ru extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Zs(e,t,n){if(!(t in e))return;const o=e[t],i=n(o);typeof i=="function"&&KQ(i,o),e[t]=i}function Y1(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{v3&&to.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function KQ(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Y1(e,"__sentry_original__",t)}catch{}}function Ox(e){return e.__sentry_original__}function kTe(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function JQ(e){if(qQ(e))return{message:e.message,name:e.name,stack:e.stack,...$z(e)};if(y9(e)){const t={type:e.type,target:wz(e.target),currentTarget:wz(e.currentTarget),...$z(e)};return typeof CustomEvent<"u"&&q1(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function wz(e){try{return oTe(e)?GQ(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function $z(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function wTe(e,t=40){const n=Object.keys(JQ(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return g_(n[0],t);for(let o=n.length;o>0;o--){const i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:g_(i,t)}return""}function nf(e){return mI(e,new Map)}function mI(e,t){if($Te(e)){const n=t.get(e);if(n!==void 0)return n;const o={};t.set(e,o);for(const i of Object.keys(e))typeof e[i]<"u"&&(o[i]=mI(e[i],t));return o}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const o=[];return t.set(e,o),e.forEach(i=>{o.push(mI(i,t))}),o}return e}function $Te(e){if(!W_(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const XQ=50,Cz=/\(error: (.*)\)/,Sz=/captureMessage|captureException/;function QQ(...e){const t=e.sort((n,o)=>n[0]-o[0]).map(n=>n[1]);return(n,o=0)=>{const i=[],r=n.split(` `);for(let s=o;s<r.length;s++){const a=r[s];if(a.length>1024)continue;const l=Cz.test(a)?a.replace(Cz,"$1"):a;if(!l.match(/\S*Error: /)){for(const d of t){const u=d(l);if(u){i.push(u);break}}if(i.length>=XQ)break}}return STe(i)}}function CTe(e){return Array.isArray(e)?QQ(...e):e}function STe(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Sz.test(t[t.length-1].function||"")&&(t.pop(),Sz.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,XQ).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const oS="<anonymous>";function np(e){try{return!e||typeof e!="function"?oS:e.name||oS}catch{return oS}}const q8={},Tz={};function ug(e,t){q8[e]=q8[e]||[],q8[e].push(t)}function hg(e,t){Tz[e]||(t(),Tz[e]=!0)}function Zd(e,t){const n=e&&q8[e];if(n)for(const o of n)try{o(t)}catch(i){v3&&to.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${np(o)} Error:`,i)}}function TTe(e){const t="console";ug(t,e),hg(t,ETe)}function ETe(){"console"in Ai&&fI.forEach(function(e){e in Ai.console&&Zs(Ai.console,e,function(t){return h5[e]=t,function(...n){Zd("console",{args:n,level:e});const i=h5[e];i&&i.apply(Ai.console,n)}})})}function Kc(){const e=Ai,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const o=new Uint8Array(1);return t.getRandomValues(o),o[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,o=>(o^(n()&15)>>o/4).toString(16))}function eee(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Em(e){const{message:t,event_id:n}=e;if(t)return t;const o=eee(e);return o?o.type&&o.value?`${o.type}: ${o.value}`:o.type||o.value||n||"<unknown>":n||"<unknown>"}function pI(e,t,n){const o=e.exception=e.exception||{},i=o.values=o.values||[],r=i[0]=i[0]||{};r.value||(r.value=t||""),r.type||(r.type=n||"Error")}function I2(e,t){const n=eee(e);if(!n)return;const o={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...o,...i,...t},t&&"data"in t){const r={...i&&i.data,...t.data};n.mechanism.data=r}}function Ez(e){if(e&&e.__sentry_captured__)return!0;try{Y1(e,"__sentry_captured__",!0)}catch{}return!1}function tee(e){return Array.isArray(e)?e:[e]}const Nv=Ai,ITe=1e3;let Iz,gI,vI;function PTe(e){const t="dom";ug(t,e),hg(t,ATe)}function ATe(){if(!Nv.document)return;const e=Zd.bind(null,"dom"),t=Pz(e,!0);Nv.document.addEventListener("click",t,!1),Nv.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=Nv[n]&&Nv[n].prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(Zs(o,"addEventListener",function(i){return function(r,s,a){if(r==="click"||r=="keypress")try{const l=this,d=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},u=d[r]=d[r]||{refCount:0};if(!u.handler){const f=Pz(e);u.handler=f,i.call(this,r,f,a)}u.refCount++}catch{}return i.call(this,r,s,a)}}),Zs(o,"removeEventListener",function(i){return function(r,s,a){if(r==="click"||r=="keypress")try{const l=this,d=l.__sentry_instrumentation_handlers__||{},u=d[r];u&&(u.refCount--,u.refCount<=0&&(i.call(this,r,u.handler,a),u.handler=void 0,delete d[r]),Object.keys(d).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,r,s,a)}}))})}function DTe(e){if(e.type!==gI)return!1;try{if(!e.target||e.target._sentryId!==vI)return!1}catch{}return!0}function xTe(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Pz(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const o=OTe(n);if(xTe(n.type,o))return;Y1(n,"_sentryCaptured",!0),o&&!o._sentryId&&Y1(o,"_sentryId",Kc());const i=n.type==="keypress"?"input":n.type;DTe(n)||(e({event:n,name:i,global:t}),gI=n.type,vI=o?o._sentryId:void 0),clearTimeout(Iz),Iz=Nv.setTimeout(()=>{vI=void 0,gI=void 0},ITe)}}function OTe(e){try{return e.target}catch{return null}}const _I=Dx();function nee(){if(!("fetch"in _I))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function yI(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function LTe(){if(typeof EdgeRuntime=="string")return!0;if(!nee())return!1;if(yI(_I.fetch))return!0;let e=!1;const t=_I.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=yI(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){v3&&to.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function MTe(e){const t="fetch";ug(t,e),hg(t,NTe)}function NTe(){LTe()&&Zs(Ai,"fetch",function(e){return function(...t){const{method:n,url:o}=RTe(t),i={args:t,fetchData:{method:n,url:o},startTimestamp:Date.now()};return Zd("fetch",{...i}),e.apply(Ai,t).then(r=>{const s={...i,endTimestamp:Date.now(),response:r};return Zd("fetch",s),r},r=>{const s={...i,endTimestamp:Date.now(),error:r};throw Zd("fetch",s),r})}})}function bI(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Az(e){return typeof e=="string"?e:e?bI(e,"url")?e.url:e.toString?e.toString():"":""}function RTe(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,o]=e;return{url:Az(n),method:bI(o,"method")?String(o.method).toUpperCase():"GET"}}const t=e[0];return{url:Az(t),method:bI(t,"method")?String(t.method).toUpperCase():"GET"}}let bw=null;function jTe(e){const t="error";ug(t,e),hg(t,FTe)}function FTe(){bw=Ai.onerror,Ai.onerror=function(e,t,n,o,i){return Zd("error",{column:o,error:i,line:n,msg:e,url:t}),bw&&!bw.__SENTRY_LOADER__?bw.apply(this,arguments):!1},Ai.onerror.__SENTRY_INSTRUMENTED__=!0}let kw=null;function zTe(e){const t="unhandledrejection";ug(t,e),hg(t,UTe)}function UTe(){kw=Ai.onunhandledrejection,Ai.onunhandledrejection=function(e){return Zd("unhandledrejection",e),kw&&!kw.__SENTRY_LOADER__?kw.apply(this,arguments):!0},Ai.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const ww=Dx();function BTe(){const e=ww.chrome,t=e&&e.app&&e.app.runtime,n="history"in ww&&!!ww.history.pushState&&!!ww.history.replaceState;return!t&&n}const Mb=Ai;let $w;function oee(e){const t="history";ug(t,e),hg(t,HTe)}function HTe(){if(!BTe())return;const e=Mb.onpopstate;Mb.onpopstate=function(...n){const o=Mb.location.href,i=$w;if($w=o,Zd("history",{from:i,to:o}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...o){const i=o.length>2?o[2]:void 0;if(i){const r=$w,s=String(i);$w=s,Zd("history",{from:r,to:s})}return n.apply(this,o)}}Zs(Mb.history,"pushState",t),Zs(Mb.history,"replaceState",t)}const VTe=Ai,l0="__sentry_xhr_v3__";function qTe(e){const t="xhr";ug(t,e),hg(t,YTe)}function YTe(){if(!VTe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Zs(e,"open",function(t){return function(...n){const o=Date.now(),i=ff(n[0])?n[0].toUpperCase():void 0,r=WTe(n[1]);if(!i||!r)return t.apply(this,n);this[l0]={method:i,url:r,request_headers:{}},i==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const a=this[l0];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}const l={args:[i,r],endTimestamp:Date.now(),startTimestamp:o,xhr:this};Zd("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Zs(this,"onreadystatechange",function(a){return function(...l){return s(),a.apply(this,l)}}):this.addEventListener("readystatechange",s),Zs(this,"setRequestHeader",function(a){return function(...l){const[d,u]=l,f=this[l0];return f&&ff(d)&&ff(u)&&(f.request_headers[d.toLowerCase()]=u),a.apply(this,l)}}),t.apply(this,n)}}),Zs(e,"send",function(t){return function(...n){const o=this[l0];if(!o)return t.apply(this,n);n[0]!==void 0&&(o.body=n[0]);const i={args:[o.method,o.url],startTimestamp:Date.now(),xhr:this};return Zd("xhr",i),t.apply(this,n)}})}function WTe(e){if(ff(e))return e;try{return e.toString()}catch{}}function GTe(){return"npm"}function ZTe(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let r=0;r<t.length;r++)if(t[r]===i)return!0;return t.push(i),!1}function o(i){if(e)t.delete(i);else for(let r=0;r<t.length;r++)if(t[r]===i){t.splice(r,1);break}}return[n,o]}function km(e,t=100,n=1/0){try{return kI("",e,t,n)}catch(o){return{ERROR:`**non-serializable** (${o})`}}}function iee(e,t=3,n=100*1024){const o=km(e,t);return QTe(o)>n?iee(e,t-1,n):o}function kI(e,t,n=1/0,o=1/0,i=ZTe()){const[r,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!sTe(t))return t;const a=KTe(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return a.replace("object ","");if(r(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const v=d.toJSON();return kI("",v,l-1,o,i)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const p=JQ(t);for(const v in p){if(!Object.prototype.hasOwnProperty.call(p,v))continue;if(f>=o){u[v]="[MaxProperties ~]";break}const _=p[v];u[v]=kI(v,_,l-1,o,i),f++}return s(t),u}function KTe(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(YQ(t))return"[VueViewModel]";if(rTe(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${np(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=JTe(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function JTe(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function XTe(e){return~-encodeURI(e).split(/%..|./).length}function QTe(e){return XTe(JSON.stringify(e))}var Yh;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const o=2;e[e.REJECTED=o]="REJECTED"})(Yh||(Yh={}));function G_(e){return new Sy(t=>{t(e)})}function Lx(e){return new Sy((t,n)=>{n(e)})}let Sy=class e1{constructor(t){e1.prototype.__init.call(this),e1.prototype.__init2.call(this),e1.prototype.__init3.call(this),e1.prototype.__init4.call(this),this._state=Yh.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new e1((o,i)=>{this._handlers.push([!1,r=>{if(!t)o(r);else try{o(t(r))}catch(s){i(s)}},r=>{if(!n)i(r);else try{o(n(r))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new e1((n,o)=>{let i,r;return this.then(s=>{r=!1,i=s,t&&t()},s=>{r=!0,i=s,t&&t()}).then(()=>{if(r){o(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Yh.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Yh.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Yh.PENDING){if(b9(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Yh.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Yh.RESOLVED&&n[1](this._value),this._state===Yh.REJECTED&&n[2](this._value),n[0]=!0)})}}};function eEe(e){const t=[];function n(){return e===void 0||t.length<e}function o(s){return t.splice(t.indexOf(s),1)[0]}function i(s){if(!n())return Lx(new Ru("Not adding Promise because buffer limit was reached."));const a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>o(a)).then(null,()=>o(a).then(null,()=>{})),a}function r(s){return new Sy((a,l)=>{let d=t.length;if(!d)return a(!0);const u=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(f=>{G_(f).then(()=>{--d||(clearTimeout(u),a(!0))},l)})})}return{$:t,add:i,drain:r}}function iS(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",o=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:o,relative:t[5]+n+o}}const tEe=["fatal","error","warning","log","info","debug"];function nEe(e){return e==="warn"?"warning":tEe.includes(e)?e:"log"}const ree=1e3;function y3(){return Date.now()/ree}function oEe(){const{performance:e}=Ai;if(!e||!e.now)return y3;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/ree}const Mx=oEe();(()=>{const{performance:e}=Ai;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,r=i<t,s=e.timing&&e.timing.navigationStart,l=typeof s=="number"?Math.abs(s+n-o):t,d=l<t;return r||d?i<=l?e.timeOrigin:s:o})();function Ty(e,t=[]){return[e,t]}function iEe(e,t){const[n,o]=e;return[n,[...o,t]]}function Dz(e,t){const n=e[1];for(const o of n){const i=o[0].type;if(t(o,i))return!0}return!1}function wI(e,t){return(t||new TextEncoder).encode(e)}function rEe(e,t){const[n,o]=e;let i=JSON.stringify(n);function r(s){typeof i=="string"?i=typeof s=="string"?i+s:[wI(i,t),s]:i.push(typeof s=="string"?wI(s,t):s)}for(const s of o){const[a,l]=s;if(r(` ${JSON.stringify(a)} `),typeof l=="string"||l instanceof Uint8Array)r(l);else{let d;try{d=JSON.stringify(l)}catch{d=JSON.stringify(km(l))}r(d)}}return typeof i=="string"?i:sEe(i)}function sEe(e){const t=e.reduce((i,r)=>i+r.length,0),n=new Uint8Array(t);let o=0;for(const i of e)n.set(i,o),o+=i.length;return n}function aEe(e,t){const n=typeof e.data=="string"?wI(e.data,t):e.data;return[nf({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const lEe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function xz(e){return lEe[e]}function see(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function cEe(e,t,n,o){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&o&&{dsn:_3(o)},...i&&{trace:nf({...i})}}}function dEe(e,t,n){const o=[{type:"client_report"},{timestamp:n||y3(),discarded_events:e}];return Ty(t?{dsn:t}:{},[o])}const uEe=60*1e3;function hEe(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const o=Date.parse(`${e}`);return isNaN(o)?uEe:o-t}function fEe(e,t){return e[t]||e.all||0}function mEe(e,t,n=Date.now()){return fEe(e,t)>n}function pEe(e,{statusCode:t,headers:n},o=Date.now()){const i={...e},r=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(r)for(const a of r.trim().split(",")){const[l,d,,,u]=a.split(":",5),f=parseInt(l,10),p=(isNaN(f)?60:f)*1e3;if(!d)i.all=o+p;else for(const v of d.split(";"))v==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(i[v]=o+p):i[v]=o+p}else s?i.all=o+hEe(s,o):t===429&&(i.all=o+60*1e3);return i}const Wi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,$9="production";function Nx(){return WQ("globalEventProcessors",()=>[])}function gEe(e){Nx().push(e)}function f5(e,t,n,o=0){return new Sy((i,r)=>{const s=e[o];if(t===null||typeof s!="function")i(t);else{const a=s({...t},n);Wi&&s.id&&a===null&&to.log(`Event processor "${s.id}" dropped event`),b9(a)?a.then(l=>f5(e,l,n,o+1).then(i)).then(null,r):f5(e,a,n,o+1).then(i).then(null,r)}})}function aee(e){const t=Mx(),n={sid:Kc(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>vEe(n)};return e&&W1(n,e),n}function W1(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Mx(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Kc()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function lee(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),W1(e,n)}function vEe(e){return nf({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const _Ee=1;function yEe(e){const{spanId:t,traceId:n}=e.spanContext(),{data:o,op:i,parent_span_id:r,status:s,tags:a,origin:l}=P2(e);return nf({data:o,op:i,parent_span_id:r,span_id:t,status:s,tags:a,trace_id:n,origin:l})}function bEe(e){return typeof e=="number"?Oz(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Oz(e.getTime()):Mx()}function Oz(e){return e>9999999999?e/1e3:e}function P2(e){return kEe(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function kEe(e){return typeof e.getSpanJSON=="function"}function cee(e){const{traceFlags:t}=e.spanContext();return!!(t&_Ee)}function wEe(e,t,n,o,i,r){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Kc(),timestamp:t.timestamp||y3()},d=n.integrations||e.integrations.map(C=>C.name);$Ee(l,e),TEe(l,d),t.type===void 0&&CEe(l,e.stackParser);const u=IEe(o,n.captureContext);n.mechanism&&I2(l,n.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],p=zEe().getScopeData();if(r){const C=r.getScopeData();Rz(p,C)}if(u){const C=u.getScopeData();Rz(p,C)}const v=[...n.attachments||[],...p.attachments];v.length&&(n.attachments=v),vee(l,p);const _=[...f,...Nx(),...p.eventProcessors];return f5(_,l,n).then(C=>(C&&SEe(C),typeof s=="number"&&s>0?EEe(C,s,a):C))}function $Ee(e,t){const{environment:n,release:o,dist:i,maxValueLength:r=250}=t;"environment"in e||(e.environment="environment"in t?n:$9),e.release===void 0&&o!==void 0&&(e.release=o),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=g_(e.message,r));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=g_(s.value,r));const a=e.request;a&&a.url&&(a.url=g_(a.url,r))}const Lz=new WeakMap;function CEe(e,t){const n=Ai._sentryDebugIds;if(!n)return;let o;const i=Lz.get(t);i?o=i:(o=new Map,Lz.set(t,o));const r=Object.keys(n).reduce((s,a)=>{let l;const d=o.get(a);d?l=d:(l=t(a),o.set(a,l));for(let u=l.length-1;u>=0;u--){const f=l[u];if(f.filename){s[f.filename]=n[a];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=r[a.filename])})})}catch{}}function SEe(e){const t={};try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(o=>{n.push({type:"sourcemap",code_file:o,debug_id:t[o]})})}function TEe(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function EEe(e,t,n){if(!e)return null;const o={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:km(i.data,t,n)}}))},...e.user&&{user:km(e.user,t,n)},...e.contexts&&{contexts:km(e.contexts,t,n)},...e.extra&&{extra:km(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&o.contexts&&(o.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(o.contexts.trace.data=km(e.contexts.trace.data,t,n))),e.spans&&(o.spans=e.spans.map(i=>{const r=P2(i).data;return r&&(i.data=km(r,t,n)),i})),o}function IEe(e,t){if(!t)return e;const n=e?e.clone():new A2;return n.update(t),n}function PEe(e){if(e)return AEe(e)?{captureContext:e}:xEe(e)?{captureContext:e}:e}function AEe(e){return e instanceof A2||typeof e=="function"}const DEe=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function xEe(e){return Object.keys(e).some(t=>DEe.includes(t))}function dee(e,t){return hh().captureException(e,PEe(t))}function uee(e,t){return hh().captureEvent(e,t)}function G1(e,t){hh().addBreadcrumb(e,t)}function OEe(...e){const t=hh();if(e.length===2){const[n,o]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,o(n))):t.withScope(o)}return t.withScope(e[0])}function qa(){return hh().getClient()}function mp(){return hh().getScope()}function Mz(e){const t=qa(),n=b3(),o=mp(),{release:i,environment:r=$9}=t&&t.getOptions()||{},{userAgent:s}=Ai.navigator||{},a=aee({release:i,environment:r,user:o.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&W1(l,{status:"exited"}),hee(),n.setSession(a),o.setSession(a),a}function hee(){const e=b3(),t=mp(),n=t.getSession()||e.getSession();n&&lee(n),fee(),e.setSession(),t.setSession()}function fee(){const e=b3(),t=mp(),n=qa(),o=t.getSession()||e.getSession();o&&n&&n.captureSession&&n.captureSession(o)}function Nz(e=!1){if(e){hee();return}fee()}function mee(e){return e.transaction}function pee(e,t,n){const o=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:r}=n&&n.getUser()||{},s=nf({environment:o.environment||$9,release:o.release,user_segment:r,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function gee(e){const t=qa();if(!t)return{};const n=pee(P2(e).trace_id||"",t,mp()),o=mee(e);if(!o)return n;const i=o&&o._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:r,source:s}=o.metadata;r!=null&&(n.sample_rate=`${r}`);const a=P2(o);return s&&s!=="url"&&(n.transaction=a.description),n.sampled=String(cee(o)),t.emit&&t.emit("createDsc",n),n}function vee(e,t){const{fingerprint:n,span:o,breadcrumbs:i,sdkProcessingMetadata:r}=t;LEe(e,t),o&&REe(e,o),jEe(e,n),MEe(e,i),NEe(e,r)}function Rz(e,t){const{extra:n,tags:o,user:i,contexts:r,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:d,eventProcessors:u,attachments:f,propagationContext:p,transactionName:v,span:_}=t;Nb(e,"extra",n),Nb(e,"tags",o),Nb(e,"user",i),Nb(e,"contexts",r),Nb(e,"sdkProcessingMetadata",a),s&&(e.level=s),v&&(e.transactionName=v),_&&(e.span=_),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function Nb(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[t][o]=n[o])}}function LEe(e,t){const{extra:n,tags:o,user:i,contexts:r,level:s,transactionName:a}=t,l=nf(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const d=nf(o);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const u=nf(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=nf(r);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),a&&(e.transaction=a)}function MEe(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function NEe(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function REe(e,t){e.contexts={trace:yEe(t),...e.contexts};const n=mee(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:gee(t),...e.sdkProcessingMetadata};const o=P2(n).description;o&&(e.tags={transaction:o,...e.tags})}}function jEe(e,t){e.fingerprint=e.fingerprint?tee(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const FEe=100;let rS,A2=class Y8{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=jz()}static clone(t){return t?t.clone():new Y8}clone(){const t=new Y8;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&W1(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof Y8){const o=n.getScopeData();this._tags={...this._tags,...o.tags},this._extra={...this._extra,...o.extra},this._contexts={...this._contexts,...o.contexts},o.user&&Object.keys(o.user).length&&(this._user=o.user),o.level&&(this._level=o.level),o.fingerprint.length&&(this._fingerprint=o.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),o.propagationContext&&(this._propagationContext=o.propagationContext)}else if(W_(n)){const o=t;this._tags={...this._tags,...o.tags},this._extra={...this._extra,...o.extra},this._contexts={...this._contexts,...o.contexts},o.user&&(this._user=o.user),o.level&&(this._level=o.level),o.fingerprint&&(this._fingerprint=o.fingerprint),o.requestSession&&(this._requestSession=o.requestSession),o.propagationContext&&(this._propagationContext=o.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=jz(),this}addBreadcrumb(t,n){const o=typeof n=="number"?n:FEe;if(o<=0)return this;const i={timestamp:y3(),...t},r=this._breadcrumbs;return r.push(i),this._breadcrumbs=r.length>o?r.slice(-o):r,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:o,_tags:i,_extra:r,_user:s,_level:a,_fingerprint:l,_eventProcessors:d,_propagationContext:u,_sdkProcessingMetadata:f,_transactionName:p,_span:v}=this;return{breadcrumbs:t,attachments:n,contexts:o,tags:i,extra:r,user:s,level:a,fingerprint:l||[],eventProcessors:d,propagationContext:u,sdkProcessingMetadata:f,transactionName:p,span:v}}applyToEvent(t,n={},o=[]){vee(t,this.getScopeData());const i=[...o,...Nx(),...this._eventProcessors];return f5(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const o=n&&n.event_id?n.event_id:Kc();if(!this._client)return to.warn("No client configured on scope - will not capture exception!"),o;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:o},this),o}captureMessage(t,n,o){const i=o&&o.event_id?o.event_id:Kc();if(!this._client)return to.warn("No client configured on scope - will not capture message!"),i;const r=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:r,...o,event_id:i},this),i}captureEvent(t,n){const o=n&&n.event_id?n.event_id:Kc();return this._client?(this._client.captureEvent(t,{...n,event_id:o},this),o):(to.warn("No client configured on scope - will not capture event!"),o)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function zEe(){return rS||(rS=new A2),rS}function jz(){return{traceId:Kc(),spanId:Kc().substring(16)}}const D2="7.119.2",_ee=parseFloat(D2),UEe=100;let yee=class{constructor(t,n,o,i=_ee){this._version=i;let r;n?r=n:(r=new A2,r.setClient(t));let s;o?s=o:(s=new A2,s.setClient(t)),this._stack=[{scope:r}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let o;try{o=t(n)}catch(i){throw this.popScope(),i}return b9(o)?o.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),o)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const o=this._lastEventId=n&&n.event_id?n.event_id:Kc(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:o}),o}captureMessage(t,n,o){const i=this._lastEventId=o&&o.event_id?o.event_id:Kc(),r=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:r,...o,event_id:i}),i}captureEvent(t,n){const o=n&&n.event_id?n.event_id:Kc();return t.type||(this._lastEventId=o),this.getScope().captureEvent(t,{...n,event_id:o}),o}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:o,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:s=UEe}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:y3(),...t},d=r?w9(()=>r(l,n)):l;d!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",d,n),o.addBreadcrumb(d,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:o}=this.getStackTop();o&&t(n)}run(t){const n=Fz(this);try{t(this)}finally{Fz(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return Wi&&to.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const o=this._callExtensionMethod("startTransaction",t,n);return Wi&&!o&&(this.getClient()?to.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `):to.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),o}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,o=n.getSession();o&&lee(o),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:o}=this.getStackTop(),{release:i,environment:r=$9}=o&&o.getOptions()||{},{userAgent:s}=Ai.navigator||{},a=aee({release:i,environment:r,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&W1(l,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),o=t.getSession();o&&n&&n.captureSession&&n.captureSession(o)}_callExtensionMethod(t,...n){const i=C9().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);Wi&&to.warn(`Extension method ${t} couldn't be found, doing nothing.`)}};function C9(){return Ai.__SENTRY__=Ai.__SENTRY__||{extensions:{},hub:void 0},Ai}function Fz(e){const t=C9(),n=$I(t);return bee(t,e),n}function hh(){const e=C9();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return BEe(e)}function b3(){return hh().getIsolationScope()}function BEe(e=C9()){return(!HEe(e)||$I(e).isOlderThan(_ee))&&bee(e,new yee),$I(e)}function HEe(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function $I(e){return WQ("hub",()=>new yee,e)}function bee(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function kee(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=qa(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function zz(e){if(!kee())return;const t=qEe(e),n=hh(),o=e.scope?e.scope.getSpan():CI();if(e.onlyIfParent&&!o)return;const s=(e.scope||mp()).clone();return VEe(n,{parentSpan:o,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function CI(){return mp().getSpan()}function VEe(e,{parentSpan:t,spanContext:n,forceTransaction:o,scope:i}){if(!kee())return;const r=b3();let s;if(t&&!o)s=t.startChild(n);else if(t){const a=gee(t),{traceId:l,spanId:d}=t.spanContext(),u=cee(t);s=e.startTransaction({traceId:l,parentSpanId:d,parentSampled:u,...n,metadata:{dynamicSamplingContext:a,...n.metadata}})}else{const{traceId:a,dsc:l,parentSpanId:d,sampled:u}={...r.getPropagationContext(),...i.getPropagationContext()};s=e.startTransaction({traceId:a,parentSpanId:d,parentSampled:u,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}return i.setSpan(s),GEe(s,i,r),s}function qEe(e){if(e.startTime){const t={...e};return t.startTimestamp=bEe(e.startTime),delete t.startTime,t}return e}const YEe="_sentryScope",WEe="_sentryIsolationScope";function GEe(e,t,n){e&&(Y1(e,WEe,n),Y1(e,YEe,t))}function ZEe(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function KEe(e,t,n,o){const i=see(n),r={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!o&&t&&{dsn:_3(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ty(r,[s])}function JEe(e,t,n,o){const i=see(n),r=e.type&&e.type!=="replay_event"?e.type:"event";ZEe(e,n&&n.sdk);const s=cEe(e,i,o,t);return delete e.sdkProcessingMetadata,Ty(s,[[{type:r},e]])}const XEe="7";function QEe(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function eIe(e){return`${QEe(e)}${e.projectId}/envelope/`}function tIe(e,t){return kTe({sentry_key:e.publicKey,sentry_version:XEe,...t&&{sentry_client:`${t.name}/${t.version}`}})}function nIe(e,t={}){const n=typeof t=="string"?t:t.tunnel,o=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${eIe(e)}?${tIe(e,o)}`}const Uz=[];function oIe(e){const t={};return e.forEach(n=>{const{name:o}=n,i=t[o];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[o]=n)}),Object.keys(t).map(n=>t[n])}function iIe(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let o;Array.isArray(n)?o=[...t,...n]:typeof n=="function"?o=tee(n(t)):o=t;const i=oIe(o),r=sIe(i,s=>s.name==="Debug");if(r!==-1){const[s]=i.splice(r,1);i.push(s)}return i}function rIe(e,t){const n={};return t.forEach(o=>{o&&wee(e,o,n)}),n}function Bz(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function wee(e,t,n){if(n[t.name]){Wi&&to.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Uz.indexOf(t.name)===-1&&(t.setupOnce(gEe,hh),Uz.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const o=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,r)=>o(i,r,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const o=t.processEvent.bind(t),i=Object.assign((r,s)=>o(r,s,e),{id:t.name});e.addEventProcessor(i)}Wi&&to.log(`Integration installed: ${t.name}`)}function sIe(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function pp(e,t){return Object.assign(function(...o){return t(...o)},{id:e})}function aIe(e){let t="";for(const n of e){const o=Object.entries(n.tags),i=o.length>0?`|#${o.map(([r,s])=>`${r}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} `}return t}function lIe(e,t,n,o){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),o&&t&&(i.dsn=_3(t));const r=cIe(e);return Ty(i,[r])}function cIe(e){const t=aIe(e);return[{type:"statsd",length:t.length},t]}const Hz="Not capturing exception because it's already been captured.";class dIe{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=bTe(t.dsn):Wi&&to.warn("No DSN provided, client will not send events."),this._dsn){const n=nIe(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,o){if(Ez(t)){Wi&&to.log(Hz);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(r=>this._captureEvent(r,n,o)).then(r=>{i=r})),i}captureMessage(t,n,o,i){let r=o&&o.event_id;const s=Px(t)?t:String(t),a=Ax(t)?this.eventFromMessage(s,n,o):this.eventFromException(t,o);return this._process(a.then(l=>this._captureEvent(l,o,i)).then(l=>{r=l})),r}captureEvent(t,n,o){if(n&&n.originalException&&Ez(n.originalException)){Wi&&to.log(Hz);return}let i=n&&n.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,s||o).then(a=>{i=a})),i}captureSession(t){typeof t.release!="string"?Wi&&to.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),W1(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(o=>n.flush(t).then(i=>o&&i))):G_(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return Wi&&to.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];wee(this,t,this._integrations),n||Bz(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let o=JEe(t,this._dsn,this._options._metadata,this._options.tunnel);for(const r of n.attachments||[])o=iEe(o,aEe(r,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(o);i&&i.then(r=>this.emit("afterSendEvent",t,r),null)}sendSession(t){const n=KEe(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,o){if(this._options.sendClientReports){const i=typeof o=="number"?o:1,r=`${t}:${n}`;Wi&&to.log(`Recording outcome: "${r}"${i>1?` (${i} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+i}}captureAggregateMetrics(t){Wi&&to.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=lIe(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(o=>o(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=rIe(this,t),Bz(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let o=!1,i=!1;const r=n.exception&&n.exception.values;if(r){i=!0;for(const l of r){const d=l.mechanism;if(d&&d.handled===!1){o=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&o)&&(W1(t,{...o&&{status:"crashed"},errors:t.errors||Number(i||o)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Sy(n=>{let o=0;const i=1,r=setInterval(()=>{this._numProcessing==0?(clearInterval(r),n(!0)):(o+=i,t&&o>=t&&(clearInterval(r),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,o,i=b3()){const r=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),wEe(r,t,n,o,this,i).then(a=>{if(a===null)return a;const l={...i.getPropagationContext(),...o?o.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&l){const{traceId:u,spanId:f,parentSpanId:p,dsc:v}=l;a.contexts={trace:{trace_id:u,span_id:f,parent_span_id:p},...a.contexts};const _=v||pee(u,this,o);a.sdkProcessingMetadata={dynamicSamplingContext:_,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},o){return this._processEvent(t,n,o).then(i=>i.event_id,i=>{if(Wi){const r=i;r.logLevel==="log"?to.log(r.message):to.warn(r)}})}_processEvent(t,n,o){const i=this.getOptions(),{sampleRate:r}=i,s=Cee(t),a=$ee(t),l=t.type||"error",d=`before send for type \`${l}\``;if(a&&typeof r=="number"&&Math.random()>r)return this.recordDroppedEvent("sample_rate","error",t),Lx(new Ru(`Discarding event because it's not included in the random sample (sampling rate = ${r})`,"log"));const u=l==="replay_event"?"replay":l,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,o,p).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",u,t),new Ru("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return v;const k=hIe(i,v,n);return uIe(k,d)}).then(v=>{if(v===null){if(this.recordDroppedEvent("before_send",u,t),s){const $=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",$)}throw new Ru(`${d} returned \`null\`, will not send event.`,"log")}const _=o&&o.getSession();if(!s&&_&&this._updateSessionFromEvent(_,v),s){const C=v.sdkProcessingMetadata&&v.sdkProcessingMetadata.spanCountBeforeProcessing||0,$=v.spans?v.spans.length:0,E=C-$;E>0&&this.recordDroppedEvent("before_send","span",E)}const k=v.transaction_info;if(s&&k&&v.transaction!==t.transaction){const C="custom";v.transaction_info={...k,source:C}}return this.sendEvent(v,n),v}).then(null,v=>{throw v instanceof Ru?v:(this.captureException(v,{data:{__sentry__:!0},originalException:v}),new Ru(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${v}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{Wi&&to.error("Error while sending event:",n)});Wi&&to.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[o,i]=n.split(":");return{reason:o,category:i,quantity:t[n]}})}}function uIe(e,t){const n=`${t} must return \`null\` or a valid event.`;if(b9(e))return e.then(o=>{if(!W_(o)&&o!==null)throw new Ru(n);return o},o=>{throw new Ru(`${t} rejected with ${o}`)});if(!W_(e)&&e!==null)throw new Ru(n);return e}function hIe(e,t,n){const{beforeSend:o,beforeSendTransaction:i}=e;if($ee(t)&&o)return o(t,n);if(Cee(t)&&i){if(t.spans){const r=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:r}}return i(t,n)}return t}function $ee(e){return e.type===void 0}function Cee(e){return e.type==="transaction"}function fIe(e,t){t.debug===!0&&(Wi?to.enable():w9(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),mp().update(t.initialScope);const o=new e(t);mIe(o),pIe(o)}function mIe(e){const n=hh().getStackTop();n.client=e,n.scope.setClient(e)}function pIe(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const gIe=30;function See(e,t,n=eEe(e.bufferSize||gIe)){let o={};const i=s=>n.drain(s);function r(s){const a=[];if(Dz(s,(f,p)=>{const v=xz(p);if(mEe(o,v)){const _=Vz(f,p);e.recordDroppedEvent("ratelimit_backoff",v,_)}else a.push(f)}),a.length===0)return G_();const l=Ty(s[0],a),d=f=>{Dz(l,(p,v)=>{const _=Vz(p,v);e.recordDroppedEvent(f,xz(v),_)})},u=()=>t({body:rEe(l,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&Wi&&to.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),o=pEe(o,f),f),f=>{throw d("network_error"),f});return n.add(u).then(f=>f,f=>{if(f instanceof Ru)return Wi&&to.error("Skipped sending event because buffer is full."),d("queue_overflow"),G_();throw f})}return r.__sentry__baseTransport__=!0,{send:r,flush:i}}function Vz(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function vIe(e,t,n=[t],o="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(r=>({name:`${o}:@sentry/${r}`,version:D2})),version:D2}),e._metadata=i}const _Ie=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],yIe=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Tee="InboundFilters",bIe=(e={})=>({name:Tee,setupOnce(){},processEvent(t,n,o){const i=o.getOptions(),r=kIe(e,i);return wIe(t,r)?null:t}}),Eee=bIe;pp(Tee,Eee);function kIe(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:_Ie],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:yIe],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function wIe(e,t){return t.ignoreInternal&&IIe(e)?(Wi&&to.warn(`Event dropped due to being internal Sentry Error. Event: ${Em(e)}`),!0):$Ie(e,t.ignoreErrors)?(Wi&&to.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${Em(e)}`),!0):CIe(e,t.ignoreTransactions)?(Wi&&to.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${Em(e)}`),!0):SIe(e,t.denyUrls)?(Wi&&to.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${Em(e)}. Url: ${m5(e)}`),!0):TIe(e,t.allowUrls)?!1:(Wi&&to.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${Em(e)}. Url: ${m5(e)}`),!0)}function $Ie(e,t){return e.type||!t||!t.length?!1:EIe(e).some(n=>k9(n,t))}function CIe(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?k9(n,t):!1}function SIe(e,t){if(!t||!t.length)return!1;const n=m5(e);return n?k9(n,t):!1}function TIe(e,t){if(!t||!t.length)return!0;const n=m5(e);return n?k9(n,t):!0}function EIe(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Wi&&t.length===0&&to.error(`Could not extract message for event ${Em(e)}`),t}function IIe(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function PIe(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function m5(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?PIe(t):null}catch{return Wi&&to.error(`Cannot extract url for event ${Em(e)}`),null}}let qz;const Iee="FunctionToString",Yz=new WeakMap,AIe=()=>({name:Iee,setupOnce(){qz=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Ox(this),n=Yz.has(qa())&&t!==void 0?t:this;return qz.apply(n,e)}}catch{}},setup(e){Yz.set(e,!0)}}),Pee=AIe;pp(Iee,Pee);const Pi=Ai;let SI=0;function Aee(){return SI>0}function DIe(){SI++,setTimeout(()=>{SI--})}function Z_(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(Ox(e))return e}catch{return e}const o=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const r=i.map(s=>Z_(s,t));return e.apply(this,r)}catch(r){throw DIe(),OEe(s=>{s.addEventProcessor(a=>(t.mechanism&&(pI(a,void 0,void 0),I2(a,t.mechanism)),a.extra={...a.extra,arguments:i},a)),dee(r)}),r}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}catch{}KQ(o,e),Y1(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get(){return e.name}})}catch{}return o}const of=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Dee(e,t){const n=Rx(e,t),o={type:t&&t.name,value:MIe(t)};return n.length&&(o.stacktrace={frames:n}),o.type===void 0&&o.value===""&&(o.value="Unrecoverable error caught"),o}function xIe(e,t,n,o){const i=qa(),r=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:y9(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:jIe(t,{isUnhandledRejection:o})}]},extra:{__serialized__:iee(t,r)}};if(n){const a=Rx(e,n);a.length&&(s.exception.values[0].stacktrace={frames:a})}return s}function sS(e,t){return{exception:{values:[Dee(e,t)]}}}function Rx(e,t){const n=t.stacktrace||t.stack||"",o=LIe(t);try{return e(n,o)}catch{}return[]}const OIe=/Minified React error #\d+;/i;function LIe(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(OIe.test(e.message))return 1}return 0}function MIe(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function NIe(e,t,n,o){const i=n&&n.syntheticException||void 0,r=jx(e,t,i,o);return I2(r),r.level="error",n&&n.event_id&&(r.event_id=n.event_id),G_(r)}function RIe(e,t,n="info",o,i){const r=o&&o.syntheticException||void 0,s=TI(e,t,r,i);return s.level=n,o&&o.event_id&&(s.event_id=o.event_id),G_(s)}function jx(e,t,n,o,i){let r;if(Ix(t)&&t.error)return sS(e,t.error);if(_z(t)||nTe(t)){const s=t;if("stack"in t)r=sS(e,t);else{const a=s.name||(_z(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;r=TI(e,l,n,o),pI(r,l)}return"code"in s&&(r.tags={...r.tags,"DOMException.code":`${s.code}`}),r}return qQ(t)?sS(e,t):W_(t)||y9(t)?(r=xIe(e,t,n,i),I2(r,{synthetic:!0}),r):(r=TI(e,t,n,o),pI(r,`${t}`,void 0),I2(r,{synthetic:!0}),r)}function TI(e,t,n,o){const i={};if(o&&n){const r=Rx(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(Px(t)){const{__sentry_template_string__:r,__sentry_template_values__:s}=t;return i.logentry={message:r,params:s},i}return i.message=t,i}function jIe(e,{isUnhandledRejection:t}){const n=wTe(e),o=t?"promise rejection":"exception";return Ix(e)?`Event \`ErrorEvent\` captured as ${o} with message \`${e.message}\``:y9(e)?`Event \`${FIe(e)}\` (type=${e.type}) captured as ${o}`:`Object captured as ${o} with keys: ${n}`}function FIe(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function zIe(e,{metadata:t,tunnel:n,dsn:o}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!o&&{dsn:_3(o)}},r=UIe(e);return Ty(i,[r])}function UIe(e){return[{type:"user_report"},e]}class BIe extends dIe{constructor(t){const n=Pi.SENTRY_SDK_SOURCE||GTe();vIe(t,"browser",["browser"],n),super(t),t.sendClientReports&&Pi.document&&Pi.document.addEventListener("visibilitychange",()=>{Pi.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return NIe(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",o){return RIe(this._options.stackParser,t,n,o,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){of&&to.warn("SDK not enabled, will not capture user feedback.");return}const n=zIe(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,o)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){of&&to.log("No outcomes to send");return}if(!this._dsn){of&&to.log("No dsn provided, will not send outcomes");return}of&&to.log("Sending outcomes:",t);const n=dEe(t,this._options.tunnel&&_3(this._dsn));this._sendEnvelope(n)}}let c0;function HIe(){if(c0)return c0;if(yI(Pi.fetch))return c0=Pi.fetch.bind(Pi);const e=Pi.document;let t=Pi.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const o=n.contentWindow;o&&o.fetch&&(t=o.fetch),e.head.removeChild(n)}catch(n){of&&to.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return c0=t.bind(Pi)}function VIe(){c0=void 0}function qIe(e,t=HIe()){let n=0,o=0;function i(r){const s=r.body.length;n+=s,o++;const a={body:r.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&o<15,...e.fetchOptions};try{return t(e.url,a).then(l=>(n-=s,o--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return VIe(),n-=s,o--,Lx(l)}}return See(e,i)}const YIe=4;function WIe(e){function t(n){return new Sy((o,i)=>{const r=new XMLHttpRequest;r.onerror=i,r.onreadystatechange=()=>{r.readyState===YIe&&o({statusCode:r.status,headers:{"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")}})},r.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&r.setRequestHeader(s,e.headers[s]);r.send(n.body)})}return See(e,t)}const S9="?",GIe=30,ZIe=40,KIe=50;function Fx(e,t,n,o){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),o!==void 0&&(i.colno=o),i}const JIe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,XIe=/\((\S*)(?::(\d+))(?::(\d+))\)/,QIe=e=>{const t=JIe.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const r=XIe.exec(t[2]);r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3])}const[o,i]=xee(t[1]||S9,t[2]);return Fx(i,o,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},ePe=[GIe,QIe],tPe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,nPe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,oPe=e=>{const t=tPe.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const r=nPe.exec(t[3]);r&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]="")}let o=t[3],i=t[1]||S9;return[i,o]=xee(i,o),Fx(o,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},iPe=[KIe,oPe],rPe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,sPe=e=>{const t=rPe.exec(e);return t?Fx(t[2],t[1]||S9,+t[3],t[4]?+t[4]:void 0):void 0},aPe=[ZIe,sPe],lPe=[ePe,iPe,aPe],cPe=QQ(...lPe),xee=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,o=e.indexOf("safari-web-extension")!==-1;return n||o?[e.indexOf("@")!==-1?e.split("@")[0]:S9,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Cw=1024,Oee="Breadcrumbs",dPe=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Oee,setupOnce(){},setup(n){t.console&&TTe(fPe(n)),t.dom&&PTe(hPe(n,t.dom)),t.xhr&&qTe(mPe(n)),t.fetch&&MTe(pPe(n)),t.history&&oee(gPe(n)),t.sentry&&n.on&&n.on("beforeSendEvent",uPe(n))}}},Lee=dPe;pp(Oee,Lee);function uPe(e){return function(n){qa()===e&&G1({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Em(n)},{event:n})}}function hPe(e,t){return function(o){if(qa()!==e)return;let i,r,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Cw&&(of&&to.warn(`\`dom.maxStringLength\` cannot exceed ${Cw}, but a value of ${a} was configured. Sentry will use ${Cw} instead.`),a=Cw),typeof s=="string"&&(s=[s]);try{const d=o.event,u=vPe(d)?d.target:d;i=GQ(u,{keyAttrs:s,maxStringLength:a}),r=fTe(u)}catch{i="<unknown>"}if(i.length===0)return;const l={category:`ui.${o.name}`,message:i};r&&(l.data={"ui.component_name":r}),G1(l,{event:o.event,name:o.name,global:o.global})}}function fPe(e){return function(n){if(qa()!==e)return;const o={category:"console",data:{arguments:n.args,logger:"console"},level:nEe(n.level),message:yz(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)o.message=`Assertion failed: ${yz(n.args.slice(1)," ")||"console.assert"}`,o.data.arguments=n.args.slice(1);else return;G1(o,{input:n.args,level:n.level})}}function mPe(e){return function(n){if(qa()!==e)return;const{startTimestamp:o,endTimestamp:i}=n,r=n.xhr[l0];if(!o||!i||!r)return;const{method:s,url:a,status_code:l,body:d}=r,u={method:s,url:a,status_code:l},f={xhr:n.xhr,input:d,startTimestamp:o,endTimestamp:i};G1({category:"xhr",data:u,type:"http"},f)}}function pPe(e){return function(n){if(qa()!==e)return;const{startTimestamp:o,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const r=n.fetchData,s={data:n.error,input:n.args,startTimestamp:o,endTimestamp:i};G1({category:"fetch",data:r,level:"error",type:"http"},s)}else{const r=n.response,s={...n.fetchData,status_code:r&&r.status},a={input:n.args,response:r,startTimestamp:o,endTimestamp:i};G1({category:"fetch",data:s,type:"http"},a)}}}function gPe(e){return function(n){if(qa()!==e)return;let o=n.from,i=n.to;const r=iS(Pi.location.href);let s=o?iS(o):void 0;const a=iS(i);(!s||!s.path)&&(s=r),r.protocol===a.protocol&&r.host===a.host&&(i=a.relative),r.protocol===s.protocol&&r.host===s.host&&(o=s.relative),G1({category:"navigation",data:{from:o,to:i}})}}function vPe(e){return!!e&&!!e.target}const Mee="Dedupe",_Pe=()=>{let e;return{name:Mee,setupOnce(){},processEvent(t){if(t.type)return t;try{if(yPe(t,e))return of&&to.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Nee=_Pe;pp(Mee,Nee);function yPe(e,t){return t?!!(bPe(e,t)||kPe(e,t)):!1}function bPe(e,t){const n=e.message,o=t.message;return!(!n&&!o||n&&!o||!n&&o||n!==o||!jee(e,t)||!Ree(e,t))}function kPe(e,t){const n=Wz(t),o=Wz(e);return!(!n||!o||n.type!==o.type||n.value!==o.value||!jee(e,t)||!Ree(e,t))}function Ree(e,t){let n=Gz(e),o=Gz(t);if(!n&&!o)return!0;if(n&&!o||!n&&o||(n=n,o=o,o.length!==n.length))return!1;for(let i=0;i<o.length;i++){const r=o[i],s=n[i];if(r.filename!==s.filename||r.lineno!==s.lineno||r.colno!==s.colno||r.function!==s.function)return!1}return!0}function jee(e,t){let n=e.fingerprint,o=t.fingerprint;if(!n&&!o)return!0;if(n&&!o||!n&&o)return!1;n=n,o=o;try{return n.join("")===o.join("")}catch{return!1}}function Wz(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Gz(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const Fee="GlobalHandlers",wPe=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Fee,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&($Pe(n),Zz("onerror")),t.onunhandledrejection&&(CPe(n),Zz("onunhandledrejection"))}}},zee=wPe;pp(Fee,zee);function $Pe(e){jTe(t=>{const{stackParser:n,attachStacktrace:o}=Bee();if(qa()!==e||Aee())return;const{msg:i,url:r,line:s,column:a,error:l}=t,d=l===void 0&&ff(i)?EPe(i,r,s,a):Uee(jx(n,l||i,void 0,o,!1),r,s,a);d.level="error",uee(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function CPe(e){zTe(t=>{const{stackParser:n,attachStacktrace:o}=Bee();if(qa()!==e||Aee())return;const i=SPe(t),r=Ax(i)?TPe(i):jx(n,i,void 0,o,!0);r.level="error",uee(r,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function SPe(e){if(Ax(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function TPe(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function EPe(e,t,n,o){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let r=Ix(e)?e.message:e,s="Error";const a=r.match(i);return a&&(s=a[1],r=a[2]),Uee({exception:{values:[{type:s,value:r}]}},t,n,o)}function Uee(e,t,n,o){const i=e.exception=e.exception||{},r=i.values=i.values||[],s=r[0]=r[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],d=isNaN(parseInt(o,10))?void 0:o,u=isNaN(parseInt(n,10))?void 0:n,f=ff(t)&&t.length>0?t:hTe();return l.length===0&&l.push({colno:d,filename:f,function:"?",in_app:!0,lineno:u}),e}function Zz(e){of&&to.log(`Global Handler attached: ${e}`)}function Bee(){const e=qa();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Hee="HttpContext",IPe=()=>({name:Hee,setupOnce(){},preprocessEvent(e){if(!Pi.navigator&&!Pi.location&&!Pi.document)return;const t=e.request&&e.request.url||Pi.location&&Pi.location.href,{referrer:n}=Pi.document||{},{userAgent:o}=Pi.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...o&&{"User-Agent":o}},r={...e.request,...t&&{url:t},headers:i};e.request=r}}),Vee=IPe;pp(Hee,Vee);const PPe="cause",APe=5,qee="LinkedErrors",DPe=(e={})=>{const t=e.limit||APe,n=e.key||PPe;return{name:qee,setupOnce(){},preprocessEvent(o,i,r){const s=r.getOptions();lTe(Dee,s.stackParser,s.maxValueLength,n,t,o,i)}}},Yee=DPe;pp(qee,Yee);const xPe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Wee="TryCatch",OPe=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Wee,setupOnce(){t.setTimeout&&Zs(Pi,"setTimeout",Kz),t.setInterval&&Zs(Pi,"setInterval",Kz),t.requestAnimationFrame&&Zs(Pi,"requestAnimationFrame",LPe),t.XMLHttpRequest&&"XMLHttpRequest"in Pi&&Zs(XMLHttpRequest.prototype,"send",MPe);const n=t.eventTarget;n&&(Array.isArray(n)?n:xPe).forEach(NPe)}}},Gee=OPe;pp(Wee,Gee);function Kz(e){return function(...t){const n=t[0];return t[0]=Z_(n,{mechanism:{data:{function:np(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function LPe(e){return function(t){return e.apply(this,[Z_(t,{mechanism:{data:{function:"requestAnimationFrame",handler:np(e)},handled:!1,type:"instrument"}})])}}function MPe(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Zs(n,i,function(r){const s={mechanism:{data:{function:i,handler:np(r)},handled:!1,type:"instrument"}},a=Ox(r);return a&&(s.mechanism.data.handler=np(a)),Z_(r,s)})}),e.apply(this,t)}}function NPe(e){const t=Pi,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Zs(n,"addEventListener",function(o){return function(i,r,s){try{typeof r.handleEvent=="function"&&(r.handleEvent=Z_(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:np(r),target:e},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[i,Z_(r,{mechanism:{data:{function:"addEventListener",handler:np(r),target:e},handled:!1,type:"instrument"}}),s])}}),Zs(n,"removeEventListener",function(o){return function(i,r,s){const a=r;try{const l=a&&a.__sentry_wrapped__;l&&o.call(this,i,l,s)}catch{}return o.call(this,i,a,s)}}))}const RPe=[Eee(),Pee(),Gee(),Lee(),zee(),Yee(),Nee(),Vee()];function Zee(e){return[...RPe]}function jPe(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=Zee()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Pi.SENTRY_RELEASE&&Pi.SENTRY_RELEASE.id&&(e.release=Pi.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:CTe(e.stackParser||cPe),integrations:iIe(e),transport:e.transport||(nee()?qIe:WIe)};fIe(BIe,t),e.autoSessionTracking&&FPe()}function FPe(){if(typeof Pi.document>"u"){of&&to.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Mz({ignoreDuration:!0}),Nz(),oee(({from:e,to:t})=>{e!==void 0&&e!==t&&(Mz({ignoreDuration:!0}),Nz())})}const zPe=Object.prototype.toString;function UPe(e,t){return zPe.call(e)===`[object ${t}]`}function Kee(e){return UPe(e,"Object")}function zx(e){return!!(e&&e.then&&typeof e.then=="function")}function Sw(e){return e&&e.Math==Math?e:void 0}const Jc=typeof globalThis=="object"&&Sw(globalThis)||typeof window=="object"&&Sw(window)||typeof self=="object"&&Sw(self)||typeof global=="object"&&Sw(global)||function(){return this}()||{};function Jee(e,t,n){const o=n||Jc,i=o.__SENTRY__=o.__SENTRY__||{};return i[e]||(i[e]=t())}const BPe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,HPe="Sentry Logger ",Jz=["debug","info","warn","error","log","assert","trace"],Xz={};function k3(e){if(!("console"in Jc))return e();const t=Jc.console,n={},o=Object.keys(Xz);o.forEach(i=>{const r=Xz[i];n[i]=t[i],t[i]=r});try{return e()}finally{o.forEach(i=>{t[i]=n[i]})}}function VPe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return BPe?Jz.forEach(n=>{t[n]=(...o)=>{e&&k3(()=>{Jc.console[n](`${HPe}[${n}]:`,...o)})}}):Jz.forEach(n=>{t[n]=()=>{}}),t}const rf=VPe();function f1(e){return EI(e,new Map)}function EI(e,t){if(qPe(e)){const n=t.get(e);if(n!==void 0)return n;const o={};t.set(e,o);for(const i of Object.keys(e))typeof e[i]<"u"&&(o[i]=EI(e[i],t));return o}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const o=[];return t.set(e,o),e.forEach(i=>{o.push(EI(i,t))}),o}return e}function qPe(e){if(!Kee(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function Gu(){const e=Jc,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const o=new Uint8Array(1);return t.getRandomValues(o),o[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,o=>(o^(n()&15)>>o/4).toString(16))}function Xee(e){return Array.isArray(e)?e:[e]}var Wh;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const o=2;e[e.REJECTED=o]="REJECTED"})(Wh||(Wh={}));let YPe=class t1{constructor(t){t1.prototype.__init.call(this),t1.prototype.__init2.call(this),t1.prototype.__init3.call(this),t1.prototype.__init4.call(this),this._state=Wh.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new t1((o,i)=>{this._handlers.push([!1,r=>{if(!t)o(r);else try{o(t(r))}catch(s){i(s)}},r=>{if(!n)i(r);else try{o(n(r))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new t1((n,o)=>{let i,r;return this.then(s=>{r=!1,i=s,t&&t()},s=>{r=!0,i=s,t&&t()}).then(()=>{if(r){o(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Wh.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Wh.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Wh.PENDING){if(zx(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Wh.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Wh.RESOLVED&&n[1](this._value),this._state===Wh.REJECTED&&n[2](this._value),n[0]=!0)})}}};const Qee=1e3;function Ux(){return Date.now()/Qee}function WPe(){const{performance:e}=Jc;if(!e||!e.now)return Ux;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Qee}const Bx=WPe();(()=>{const{performance:e}=Jc;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,r=i<t,s=e.timing&&e.timing.navigationStart,l=typeof s=="number"?Math.abs(s+n-o):t,d=l<t;return r||d?i<=l?e.timeOrigin:s:o})();const W8=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ete="production";function GPe(){return Jee("globalEventProcessors",()=>[])}function II(e,t,n,o=0){return new YPe((i,r)=>{const s=e[o];if(t===null||typeof s!="function")i(t);else{const a=s({...t},n);W8&&s.id&&a===null&&rf.log(`Event processor "${s.id}" dropped event`),zx(a)?a.then(l=>II(e,l,n,o+1).then(i)).then(null,r):II(e,a,n,o+1).then(i).then(null,r)}})}function ZPe(e){const t=Bx(),n={sid:Gu(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>JPe(n)};return e&&T9(n,e),n}function T9(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Bx(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Gu()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function KPe(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),T9(e,n)}function JPe(e){return f1({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const XPe=1;function QPe(e){const{spanId:t,traceId:n}=e.spanContext(),{data:o,op:i,parent_span_id:r,status:s,tags:a,origin:l}=x2(e);return f1({data:o,op:i,parent_span_id:r,span_id:t,status:s,tags:a,trace_id:n,origin:l})}function x2(e){return eAe(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function eAe(e){return typeof e.getSpanJSON=="function"}function tAe(e){const{traceFlags:t}=e.spanContext();return!!(t&XPe)}function nAe(e){if(e)return oAe(e)?{captureContext:e}:rAe(e)?{captureContext:e}:e}function oAe(e){return e instanceof PI||typeof e=="function"}const iAe=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function rAe(e){return Object.keys(e).some(t=>iAe.includes(t))}function sAe(e,t){return Hx().captureException(e,nAe(t))}function tte(){return Hx().getClient()}function aAe(){return Hx().getScope()}function nte(e){return e.transaction}function lAe(e,t,n){const o=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:r}=n&&n.getUser()||{},s=f1({environment:o.environment||ete,release:o.release,user_segment:r,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function cAe(e){const t=tte();if(!t)return{};const n=lAe(x2(e).trace_id||"",t,aAe()),o=nte(e);if(!o)return n;const i=o&&o._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:r,source:s}=o.metadata;r!=null&&(n.sample_rate=`${r}`);const a=x2(o);return s&&s!=="url"&&(n.transaction=a.description),n.sampled=String(tAe(o)),t.emit&&t.emit("createDsc",n),n}function dAe(e,t){const{fingerprint:n,span:o,breadcrumbs:i,sdkProcessingMetadata:r}=t;uAe(e,t),o&&mAe(e,o),pAe(e,n),hAe(e,i),fAe(e,r)}function uAe(e,t){const{extra:n,tags:o,user:i,contexts:r,level:s,transactionName:a}=t,l=f1(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const d=f1(o);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const u=f1(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=f1(r);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),a&&(e.transaction=a)}function hAe(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function fAe(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function mAe(e,t){e.contexts={trace:QPe(t),...e.contexts};const n=nte(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:cAe(t),...e.sdkProcessingMetadata};const o=x2(n).description;o&&(e.tags={transaction:o,...e.tags})}}function pAe(e,t){e.fingerprint=e.fingerprint?Xee(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const gAe=100;let PI=class G8{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Qz()}static clone(t){return t?t.clone():new G8}clone(){const t=new G8;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&T9(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof G8){const o=n.getScopeData();this._tags={...this._tags,...o.tags},this._extra={...this._extra,...o.extra},this._contexts={...this._contexts,...o.contexts},o.user&&Object.keys(o.user).length&&(this._user=o.user),o.level&&(this._level=o.level),o.fingerprint.length&&(this._fingerprint=o.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),o.propagationContext&&(this._propagationContext=o.propagationContext)}else if(Kee(n)){const o=t;this._tags={...this._tags,...o.tags},this._extra={...this._extra,...o.extra},this._contexts={...this._contexts,...o.contexts},o.user&&(this._user=o.user),o.level&&(this._level=o.level),o.fingerprint&&(this._fingerprint=o.fingerprint),o.requestSession&&(this._requestSession=o.requestSession),o.propagationContext&&(this._propagationContext=o.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Qz(),this}addBreadcrumb(t,n){const o=typeof n=="number"?n:gAe;if(o<=0)return this;const i={timestamp:Ux(),...t},r=this._breadcrumbs;return r.push(i),this._breadcrumbs=r.length>o?r.slice(-o):r,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:o,_tags:i,_extra:r,_user:s,_level:a,_fingerprint:l,_eventProcessors:d,_propagationContext:u,_sdkProcessingMetadata:f,_transactionName:p,_span:v}=this;return{breadcrumbs:t,attachments:n,contexts:o,tags:i,extra:r,user:s,level:a,fingerprint:l||[],eventProcessors:d,propagationContext:u,sdkProcessingMetadata:f,transactionName:p,span:v}}applyToEvent(t,n={},o=[]){dAe(t,this.getScopeData());const i=[...o,...GPe(),...this._eventProcessors];return II(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const o=n&&n.event_id?n.event_id:Gu();if(!this._client)return rf.warn("No client configured on scope - will not capture exception!"),o;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:o},this),o}captureMessage(t,n,o){const i=o&&o.event_id?o.event_id:Gu();if(!this._client)return rf.warn("No client configured on scope - will not capture message!"),i;const r=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:r,...o,event_id:i},this),i}captureEvent(t,n){const o=n&&n.event_id?n.event_id:Gu();return this._client?(this._client.captureEvent(t,{...n,event_id:o},this),o):(rf.warn("No client configured on scope - will not capture event!"),o)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function Qz(){return{traceId:Gu(),spanId:Gu().substring(16)}}const vAe="7.119.2",ote=parseFloat(vAe),_Ae=100;let ite=class{constructor(t,n,o,i=ote){this._version=i;let r;n?r=n:(r=new PI,r.setClient(t));let s;o?s=o:(s=new PI,s.setClient(t)),this._stack=[{scope:r}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let o;try{o=t(n)}catch(i){throw this.popScope(),i}return zx(o)?o.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),o)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const o=this._lastEventId=n&&n.event_id?n.event_id:Gu(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:o}),o}captureMessage(t,n,o){const i=this._lastEventId=o&&o.event_id?o.event_id:Gu(),r=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:r,...o,event_id:i}),i}captureEvent(t,n){const o=n&&n.event_id?n.event_id:Gu();return t.type||(this._lastEventId=o),this.getScope().captureEvent(t,{...n,event_id:o}),o}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:o,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:s=_Ae}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:Ux(),...t},d=r?k3(()=>r(l,n)):l;d!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",d,n),o.addBreadcrumb(d,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:o}=this.getStackTop();o&&t(n)}run(t){const n=eU(this);try{t(this)}finally{eU(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return W8&&rf.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const o=this._callExtensionMethod("startTransaction",t,n);return W8&&!o&&(this.getClient()?rf.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `):rf.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),o}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,o=n.getSession();o&&KPe(o),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:o}=this.getStackTop(),{release:i,environment:r=ete}=o&&o.getOptions()||{},{userAgent:s}=Jc.navigator||{},a=ZPe({release:i,environment:r,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&T9(l,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),o=t.getSession();o&&n&&n.captureSession&&n.captureSession(o)}_callExtensionMethod(t,...n){const i=E9().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);W8&&rf.warn(`Extension method ${t} couldn't be found, doing nothing.`)}};function E9(){return Jc.__SENTRY__=Jc.__SENTRY__||{extensions:{},hub:void 0},Jc}function eU(e){const t=E9(),n=AI(t);return rte(t,e),n}function Hx(){const e=E9();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return yAe(e)}function yAe(e=E9()){return(!bAe(e)||AI(e).isOlderThan(ote))&&rte(e,new ite),AI(e)}function bAe(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function AI(e){return Jee("hub",()=>new ite,e)}function rte(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function kAe(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=tte(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const Z8="sentry.source",DI="sentry.origin";function wAe(e,t){return Object.assign(function(...o){return t(...o)},{id:e})}const ste=["activate","mount","update"],$Ae=/(?:^|[-_])(\w)/g,CAe=e=>e.replace($Ae,t=>t.toUpperCase()).replace(/[-_]/g,""),SAe="<Root>",aS="<Anonymous>",TAe=(e,t)=>e.repeat?e.repeat(t):e,L0=(e,t)=>{if(!e)return aS;if(e.$root===e)return SAe;if(!e.$options)return aS;const n=e.$options;let o=n.name||n._componentTag;const i=n.__file;if(!o&&i){const r=i.match(/([^/\\]+)\.vue$/);r&&(o=r[1])}return(o?`<${CAe(o)}>`:aS)+(i&&t!==!1?` at ${i}`:"")},EAe=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const i=t[t.length-1];if(i.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[i,n],n=0)}t.push(e),e=e.$parent}return` found in ${t.map((i,r)=>`${(r===0?"---> ":TAe(" ",5+r*2))+(Array.isArray(i)?`${L0(i[0])}... (${i[1]} recursive calls)`:L0(i))}`).join(` `)}`}return` (found in ${L0(e)})`},IAe=(e,t)=>{const{errorHandler:n,warnHandler:o,silent:i}=e.config;e.config.errorHandler=(r,s,a)=>{const l=L0(s,!1),d=s?EAe(s):"",u={componentName:l,lifecycleHook:a,trace:d};if(t.attachProps&&s&&(s.$options&&s.$options.propsData?u.propsData=s.$options.propsData:s.$props&&(u.propsData=s.$props)),setTimeout(()=>{sAe(r,{captureContext:{contexts:{vue:u}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,r,s,a),t.logErrors){const f=typeof console<"u",p=`Error in ${a}: "${r&&r.toString()}"`;o?o.call(null,p,s,d):f&&!i&&k3(()=>{console.error(`[Vue warn]: ${p}${d}`)})}}},PAe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,tU="ui.vue",AAe={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function DAe(){return mp().getTransaction()}function xAe(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.end(t),e.$root.$_sentryRootSpan=void 0)},n)}const OAe=e=>{const t=(e.hooks||[]).concat(ste).filter((o,i,r)=>r.indexOf(o)===i),n={};for(const o of t){const i=AAe[o];if(!i){PAe&&rf.warn(`Unknown hook: ${o}`);continue}for(const r of i)n[r]=function(){const s=this.$root===this;s&&CI()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||zz({name:"Application Render",op:`${tU}.render`,origin:"auto.ui.vue"}));const a=L0(this,!1),l=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(a)>-1:e.trackComponents;if(!(!s&&!l))if(this.$_sentrySpans=this.$_sentrySpans||{},r==i[0]){if(this.$root&&this.$root.$_sentryRootSpan||CI()){const u=this.$_sentrySpans[o];u&&u.end(),this.$_sentrySpans[o]=zz({name:`Vue <${a}>`,op:`${tU}.${o}`,origin:"auto.ui.vue"})}}else{const d=this.$_sentrySpans[o];if(!d)return;d.end(),xAe(this,Bx(),e.timeout)}}}return n},LAe=Jc,MAe={Vue:LAe.Vue,attachProps:!0,logErrors:!0,hooks:ste,timeout:2e3,trackComponents:!1},ate="Vue",NAe=(e={})=>({name:ate,setupOnce(){},setup(t){RAe(t,e)}}),lte=NAe;wAe(ate,lte);function RAe(e,t){const n={...MAe,...e.getOptions(),...t};if(!n.Vue&&!n.app){k3(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?Xee(n.app).forEach(i=>nU(i,n)):n.Vue&&nU(n.Vue,n)}const nU=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&k3(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),IAe(e,t),kAe(t)&&e.mixin(OAe({...t,...t.tracingOptions}))};function jAe(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:D2}],version:D2}},defaultIntegrations:[...Zee(),lte()],...e};jPe(t)}function FAe(e,t={}){return(n,o=!0,i=!0)=>{o&&Pi&&Pi.location&&n({name:Pi.location.pathname,op:"pageload",attributes:{[DI]:"auto.pageload.vue",[Z8]:"url"}}),zAe(e,{routeLabel:t.routeLabel||"name",instrumentNavigation:i,instrumentPageLoad:o},n)}}function zAe(e,t,n){e.onError(o=>dee(o,{mechanism:{handled:!1}})),e.beforeEach((o,i,r)=>{const s=i.name==null&&i.matched.length===0,a={[DI]:"auto.navigation.vue"};for(const u of Object.keys(o.params))a[`params.${u}`]=o.params[u];for(const u of Object.keys(o.query)){const f=o.query[u];f&&(a[`query.${u}`]=f)}let l=o.path,d="url";if(o.name&&t.routeLabel!=="path"?(l=o.name.toString(),d="custom"):o.matched[0]&&o.matched[0].path&&(l=o.matched[0].path,d="route"),t.instrumentPageLoad&&s){const u=DAe();u&&((x2(u).data||{})[Z8]!=="custom"&&(u.updateName(l),u.setAttribute(Z8,d)),u.setAttributes({...a,[DI]:"auto.pageload.vue"}))}t.instrumentNavigation&&!s&&(a[Z8]=d,n({name:l,op:"navigation",attributes:a})),r&&r()})}const UAe=Object.prototype.toString;function Vx(e,t){return UAe.call(e)===`[object ${t}]`}function Hm(e){return Vx(e,"String")}function cte(e){return Vx(e,"Object")}function dte(e){return Vx(e,"RegExp")}function gp(e){return!!(e&&e.then&&typeof e.then=="function")}function BAe(e){return typeof e=="number"&&e!==e}function oU(e,t){try{return e instanceof t}catch{return!1}}function HAe(e,t,n=!1){return Hm(e)?dte(t)?t.test(e):Hm(t)?n?e===t:e.includes(t):!1:!1}function VAe(e,t=[],n=!1){return t.some(o=>HAe(e,o,n))}function Tw(e){return e&&e.Math==Math?e:void 0}const cr=typeof globalThis=="object"&&Tw(globalThis)||typeof window=="object"&&Tw(window)||typeof self=="object"&&Tw(self)||typeof global=="object"&&Tw(global)||function(){return this}()||{};function qx(){return cr}function ute(e,t,n){const o=n||cr,i=o.__SENTRY__=o.__SENTRY__||{};return i[e]||(i[e]=t())}const M0=qx(),qAe=80;function p5(e,t={}){if(!e)return"<unknown>";try{let n=e;const o=5,i=[];let r=0,s=0;const a=" > ",l=a.length;let d;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||qAe;for(;n&&r++<o&&(d=YAe(n,u),!(d==="html"||r>1&&s+i.length*l+d.length>=f));)i.push(d),s+=d.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function YAe(e,t){const n=e,o=[];let i,r,s,a,l;if(!n||!n.tagName)return"";if(M0.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;o.push(n.tagName.toLowerCase());const d=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(d&&d.length)d.forEach(f=>{o.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&o.push(`#${n.id}`),i=n.className,i&&Hm(i))for(r=i.split(/\s+/),l=0;l<r.length;l++)o.push(`.${r[l]}`);const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)s=u[l],a=n.getAttribute(s),a&&o.push(`[${s}="${a}"]`);return o.join("")}function WAe(e){return M0.document&&M0.document.querySelector?M0.document.querySelector(e):null}function GAe(e){if(!M0.HTMLElement)return null;let t=e;const n=5;for(let o=0;o<n;o++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const w3=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ZAe="Sentry Logger ",iU=["debug","info","warn","error","log","assert","trace"],rU={};function hte(e){if(!("console"in cr))return e();const t=cr.console,n={},o=Object.keys(rU);o.forEach(i=>{const r=rU[i];n[i]=t[i],t[i]=r});try{return e()}finally{o.forEach(i=>{t[i]=n[i]})}}function KAe(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return w3?iU.forEach(n=>{t[n]=(...o)=>{e&&hte(()=>{cr.console[n](`${ZAe}[${n}]:`,...o)})}}):iU.forEach(n=>{t[n]=()=>{}}),t}const ln=KAe();function JAe(e,t=!1){const{host:n,path:o,pass:i,port:r,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${r?`:${r}`:""}/${o&&`${o}/`}${s}`}function Ma(e,t,n){if(!(t in e))return;const o=e[t],i=n(o);typeof i=="function"&&XAe(i,o),e[t]=i}function g5(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{w3&&ln.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function XAe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,g5(e,"__sentry_original__",t)}catch{}}function Ud(e){return xI(e,new Map)}function xI(e,t){if(QAe(e)){const n=t.get(e);if(n!==void 0)return n;const o={};t.set(e,o);for(const i of Object.keys(e))typeof e[i]<"u"&&(o[i]=xI(e[i],t));return o}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const o=[];return t.set(e,o),e.forEach(i=>{o.push(xI(i,t))}),o}return e}function QAe(e){if(!cte(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const lS="<anonymous>";function fte(e){try{return!e||typeof e!="function"?lS:e.name||lS}catch{return lS}}const K8={},sU={};function $3(e,t){K8[e]=K8[e]||[],K8[e].push(t)}function C3(e,t){sU[e]||(t(),sU[e]=!0)}function mf(e,t){const n=e&&K8[e];if(n)for(const o of n)try{o(t)}catch(i){w3&&ln.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${fte(o)} Error:`,i)}}function gs(){const e=cr,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const o=new Uint8Array(1);return t.getRandomValues(o),o[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,o=>(o^(n()&15)>>o/4).toString(16))}function OI(e){return Array.isArray(e)?e:[e]}const LI=qx();function eDe(){if(!("fetch"in LI))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function aU(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function tDe(){if(typeof EdgeRuntime=="string")return!0;if(!eDe())return!1;if(aU(LI.fetch))return!0;let e=!1;const t=LI.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=aU(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){w3&&ln.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function nDe(e){const t="fetch";$3(t,e),C3(t,oDe)}function oDe(){tDe()&&Ma(cr,"fetch",function(e){return function(...t){const{method:n,url:o}=iDe(t),i={args:t,fetchData:{method:n,url:o},startTimestamp:Date.now()};return mf("fetch",{...i}),e.apply(cr,t).then(r=>{const s={...i,endTimestamp:Date.now(),response:r};return mf("fetch",s),r},r=>{const s={...i,endTimestamp:Date.now(),error:r};throw mf("fetch",s),r})}})}function MI(e,t){return!!e&&typeof e=="object"&&!!e[t]}function lU(e){return typeof e=="string"?e:e?MI(e,"url")?e.url:e.toString?e.toString():"":""}function iDe(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,o]=e;return{url:lU(n),method:MI(o,"method")?String(o.method).toUpperCase():"GET"}}const t=e[0];return{url:lU(t),method:MI(t,"method")?String(t.method).toUpperCase():"GET"}}let Ew=null;function rDe(e){const t="error";$3(t,e),C3(t,sDe)}function sDe(){Ew=cr.onerror,cr.onerror=function(e,t,n,o,i){return mf("error",{column:o,error:i,line:n,msg:e,url:t}),Ew&&!Ew.__SENTRY_LOADER__?Ew.apply(this,arguments):!1},cr.onerror.__SENTRY_INSTRUMENTED__=!0}let Iw=null;function aDe(e){const t="unhandledrejection";$3(t,e),C3(t,lDe)}function lDe(){Iw=cr.onunhandledrejection,cr.onunhandledrejection=function(e){return mf("unhandledrejection",e),Iw&&!Iw.__SENTRY_LOADER__?Iw.apply(this,arguments):!0},cr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Pw=qx();function cDe(){const e=Pw.chrome,t=e&&e.app&&e.app.runtime,n="history"in Pw&&!!Pw.history.pushState&&!!Pw.history.replaceState;return!t&&n}const Rb=cr;let Aw;function dDe(e){const t="history";$3(t,e),C3(t,uDe)}function uDe(){if(!cDe())return;const e=Rb.onpopstate;Rb.onpopstate=function(...n){const o=Rb.location.href,i=Aw;if(Aw=o,mf("history",{from:i,to:o}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...o){const i=o.length>2?o[2]:void 0;if(i){const r=Aw,s=String(i);Aw=s,mf("history",{from:r,to:s})}return n.apply(this,o)}}Ma(Rb.history,"pushState",t),Ma(Rb.history,"replaceState",t)}const hDe=cr,d0="__sentry_xhr_v3__";function fDe(e){const t="xhr";$3(t,e),C3(t,mDe)}function mDe(){if(!hDe.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Ma(e,"open",function(t){return function(...n){const o=Date.now(),i=Hm(n[0])?n[0].toUpperCase():void 0,r=pDe(n[1]);if(!i||!r)return t.apply(this,n);this[d0]={method:i,url:r,request_headers:{}},i==="POST"&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const a=this[d0];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}const l={args:[i,r],endTimestamp:Date.now(),startTimestamp:o,xhr:this};mf("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Ma(this,"onreadystatechange",function(a){return function(...l){return s(),a.apply(this,l)}}):this.addEventListener("readystatechange",s),Ma(this,"setRequestHeader",function(a){return function(...l){const[d,u]=l,f=this[d0];return f&&Hm(d)&&Hm(u)&&(f.request_headers[d.toLowerCase()]=u),a.apply(this,l)}}),t.apply(this,n)}}),Ma(e,"send",function(t){return function(...n){const o=this[d0];if(!o)return t.apply(this,n);n[0]!==void 0&&(o.body=n[0]);const i={args:[o.method,o.url],startTimestamp:Date.now(),xhr:this};return mf("xhr",i),t.apply(this,n)}})}function pDe(e){if(Hm(e))return e;try{return e.toString()}catch{}}function gDe(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function vDe(){return!gDe()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function m1(e,t){return e.require(t)}function Z1(e){let t;try{t=m1(module,e)}catch{}try{const{cwd:n}=m1(module,"process");t=m1(module,`${n()}/node_modules/${e}`)}catch{}return t}var Gh;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const o=2;e[e.REJECTED=o]="REJECTED"})(Gh||(Gh={}));class wm{constructor(t){wm.prototype.__init.call(this),wm.prototype.__init2.call(this),wm.prototype.__init3.call(this),wm.prototype.__init4.call(this),this._state=Gh.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new wm((o,i)=>{this._handlers.push([!1,r=>{if(!t)o(r);else try{o(t(r))}catch(s){i(s)}},r=>{if(!n)i(r);else try{o(n(r))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new wm((n,o)=>{let i,r;return this.then(s=>{r=!1,i=s,t&&t()},s=>{r=!0,i=s,t&&t()}).then(()=>{if(r){o(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Gh.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Gh.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Gh.PENDING){if(gp(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Gh.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Gh.RESOLVED&&n[1](this._value),this._state===Gh.REJECTED&&n[2](this._value),n[0]=!0)})}}}function I9(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",o=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:o,relative:t[5]+n+o}}function v5(e){return e.split(/[\?#]/,1)[0]}function _5(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function _De(e,t={}){const n=e.method&&e.method.toUpperCase();let o="",i="url";t.customRoute||e.route?(o=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,i="route"):(e.originalUrl||e.url)&&(o=v5(e.originalUrl||e.url||""));let r="";return t.method&&n&&(r+=n),t.method&&t.path&&(r+=" "),t.path&&o&&(r+=o),[r,i]}const mte=1e3;function Yx(){return Date.now()/mte}function yDe(){const{performance:e}=cr;if(!e||!e.now)return Yx;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/mte}const S3=yDe(),od=(()=>{const{performance:e}=cr;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,r=i<t,s=e.timing&&e.timing.navigationStart,l=typeof s=="number"?Math.abs(s+n-o):t,d=l<t;return r||d?i<=l?e.timeOrigin:s:o})(),NI="baggage",pte="sentry-",bDe=/^sentry-/,kDe=8192;function wDe(e){if(!Hm(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((o,i)=>{const r=cU(i);for(const s of Object.keys(r))o[s]=r[s];return o},{});else{if(!e)return;t=cU(e)}const n=Object.entries(t).reduce((o,[i,r])=>{if(i.match(bDe)){const s=i.slice(pte.length);o[s]=r}return o},{});if(Object.keys(n).length>0)return n}function gte(e){if(!e)return;const t=Object.entries(e).reduce((n,[o,i])=>(i&&(n[`${pte}${o}`]=i),n),{});return $De(t)}function cU(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,o])=>(t[n]=o,t),{})}function $De(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,o],i)=>{const r=`${encodeURIComponent(n)}=${encodeURIComponent(o)}`,s=i===0?r:`${t},${r}`;return s.length>kDe?(w3&&ln.warn(`Not adding key: ${n} with val: ${o} to baggage header due to exceeding baggage size limits.`),t):s},"")}const CDe=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function SDe(e){if(!e)return;const t=e.match(CDe);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function TDe(e,t){const n=SDe(e),o=wDe(t),{traceId:i,parentSpanId:r,parentSampled:s}=n||{};return n?{traceId:i||gs(),parentSpanId:r||gs().substring(16),spanId:gs().substring(16),sampled:s,dsc:o||{}}:{traceId:i||gs(),spanId:gs().substring(16)}}function Wx(e=gs(),t=gs().substring(16),n){let o="";return n!==void 0&&(o=n?"-1":"-0"),`${e}-${t}${o}`}function EDe(e,t=[]){return[e,t]}function Xo(e){let t,n=e[0],o=1;for(;o<e.length;){const i=e[o],r=e[o+1];if(o+=2,(i==="optionalAccess"||i==="optionalCall")&&n==null)return;i==="access"||i==="optionalAccess"?(t=n,n=r(n)):(i==="call"||i==="optionalCall")&&(n=r((...s)=>n.call(t,...s)),t=void 0)}return n}const pi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vte="production";function IDe(){return ute("globalEventProcessors",()=>[])}function RI(e,t,n,o=0){return new wm((i,r)=>{const s=e[o];if(t===null||typeof s!="function")i(t);else{const a=s({...t},n);pi&&s.id&&a===null&&ln.log(`Event processor "${s.id}" dropped event`),gp(a)?a.then(l=>RI(e,l,n,o+1).then(i)).then(null,r):RI(e,a,n,o+1).then(i).then(null,r)}})}function PDe(e){const t=S3(),n={sid:gs(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>DDe(n)};return e&&P9(n,e),n}function P9(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||S3(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:gs()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ADe(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),P9(e,n)}function DDe(e){return Ud({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const xDe=0,_te=1;function Gx(e){const{spanId:t,traceId:n}=e.spanContext(),{data:o,op:i,parent_span_id:r,status:s,tags:a,origin:l}=va(e);return Ud({data:o,op:i,parent_span_id:r,span_id:t,status:s,tags:a,trace_id:n,origin:l})}function A9(e){const{traceId:t,spanId:n}=e.spanContext(),o=Zx(e);return Wx(t,n,o)}function D9(e){return typeof e=="number"?dU(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?dU(e.getTime()):S3()}function dU(e){return e>9999999999?e/1e3:e}function va(e){return ODe(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function ODe(e){return typeof e.getSpanJSON=="function"}function Zx(e){const{traceFlags:t}=e.spanContext();return!!(t&_te)}function LDe(...e){const t=xf();if(e.length===2){const[n,o]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,o(n))):t.withScope(o)}return t.withScope(e[0])}function Ey(){return xf().getClient()}function Iy(){return xf().getScope()}function y5(e){return e.transaction}function Kx(e,t,n){const o=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:r}=n&&n.getUser()||{},s=Ud({environment:o.environment||vte,release:o.release,user_segment:r,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function K_(e){const t=Ey();if(!t)return{};const n=Kx(va(e).trace_id||"",t,Iy()),o=y5(e);if(!o)return n;const i=o&&o._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:r,source:s}=o.metadata;r!=null&&(n.sample_rate=`${r}`);const a=va(o);return s&&s!=="url"&&(n.transaction=a.description),n.sampled=String(Zx(o)),t.emit&&t.emit("createDsc",n),n}function MDe(e,t){const{fingerprint:n,span:o,breadcrumbs:i,sdkProcessingMetadata:r}=t;NDe(e,t),o&&FDe(e,o),zDe(e,n),RDe(e,i),jDe(e,r)}function NDe(e,t){const{extra:n,tags:o,user:i,contexts:r,level:s,transactionName:a}=t,l=Ud(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const d=Ud(o);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const u=Ud(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=Ud(r);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),a&&(e.transaction=a)}function RDe(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function jDe(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function FDe(e,t){e.contexts={trace:Gx(t),...e.contexts};const n=y5(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:K_(t),...e.sdkProcessingMetadata};const o=va(n).description;o&&(e.tags={transaction:o,...e.tags})}}function zDe(e,t){e.fingerprint=e.fingerprint?OI(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const UDe=100;class v_{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=uU()}static clone(t){return t?t.clone():new v_}clone(){const t=new v_;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&P9(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof v_){const o=n.getScopeData();this._tags={...this._tags,...o.tags},this._extra={...this._extra,...o.extra},this._contexts={...this._contexts,...o.contexts},o.user&&Object.keys(o.user).length&&(this._user=o.user),o.level&&(this._level=o.level),o.fingerprint.length&&(this._fingerprint=o.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),o.propagationContext&&(this._propagationContext=o.propagationContext)}else if(cte(n)){const o=t;this._tags={...this._tags,...o.tags},this._extra={...this._extra,...o.extra},this._contexts={...this._contexts,...o.contexts},o.user&&(this._user=o.user),o.level&&(this._level=o.level),o.fingerprint&&(this._fingerprint=o.fingerprint),o.requestSession&&(this._requestSession=o.requestSession),o.propagationContext&&(this._propagationContext=o.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=uU(),this}addBreadcrumb(t,n){const o=typeof n=="number"?n:UDe;if(o<=0)return this;const i={timestamp:Yx(),...t},r=this._breadcrumbs;return r.push(i),this._breadcrumbs=r.length>o?r.slice(-o):r,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:o,_tags:i,_extra:r,_user:s,_level:a,_fingerprint:l,_eventProcessors:d,_propagationContext:u,_sdkProcessingMetadata:f,_transactionName:p,_span:v}=this;return{breadcrumbs:t,attachments:n,contexts:o,tags:i,extra:r,user:s,level:a,fingerprint:l||[],eventProcessors:d,propagationContext:u,sdkProcessingMetadata:f,transactionName:p,span:v}}applyToEvent(t,n={},o=[]){MDe(t,this.getScopeData());const i=[...o,...IDe(),...this._eventProcessors];return RI(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const o=n&&n.event_id?n.event_id:gs();if(!this._client)return ln.warn("No client configured on scope - will not capture exception!"),o;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:o},this),o}captureMessage(t,n,o){const i=o&&o.event_id?o.event_id:gs();if(!this._client)return ln.warn("No client configured on scope - will not capture message!"),i;const r=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:r,...o,event_id:i},this),i}captureEvent(t,n){const o=n&&n.event_id?n.event_id:gs();return this._client?(this._client.captureEvent(t,{...n,event_id:o},this),o):(ln.warn("No client configured on scope - will not capture event!"),o)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function uU(){return{traceId:gs(),spanId:gs().substring(16)}}const BDe="7.114.0",yte=parseFloat(BDe),HDe=100;class bte{constructor(t,n,o,i=yte){this._version=i;let r;n?r=n:(r=new v_,r.setClient(t));let s;o?s=o:(s=new v_,s.setClient(t)),this._stack=[{scope:r}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let o;try{o=t(n)}catch(i){throw this.popScope(),i}return gp(o)?o.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),o)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const o=this._lastEventId=n&&n.event_id?n.event_id:gs(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:o}),o}captureMessage(t,n,o){const i=this._lastEventId=o&&o.event_id?o.event_id:gs(),r=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:r,...o,event_id:i}),i}captureEvent(t,n){const o=n&&n.event_id?n.event_id:gs();return t.type||(this._lastEventId=o),this.getScope().captureEvent(t,{...n,event_id:o}),o}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:o,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:s=HDe}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:Yx(),...t},d=r?hte(()=>r(l,n)):l;d!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",d,n),o.addBreadcrumb(d,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:o}=this.getStackTop();o&&t(n)}run(t){const n=hU(this);try{t(this)}finally{hU(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return pi&&ln.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const o=this._callExtensionMethod("startTransaction",t,n);return pi&&!o&&(this.getClient()?ln.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `):ln.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),o}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,o=n.getSession();o&&ADe(o),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:o}=this.getStackTop(),{release:i,environment:r=vte}=o&&o.getOptions()||{},{userAgent:s}=cr.navigator||{},a=PDe({release:i,environment:r,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&P9(l,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),o=t.getSession();o&&n&&n.captureSession&&n.captureSession(o)}_callExtensionMethod(t,...n){const i=fg().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);pi&&ln.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function fg(){return cr.__SENTRY__=cr.__SENTRY__||{extensions:{},hub:void 0},cr}function hU(e){const t=fg(),n=jI(t);return kte(t,e),n}function xf(){const e=fg();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return VDe(e)}function Jx(){return xf().getIsolationScope()}function VDe(e=fg()){return(!YDe(e)||jI(e).isOlderThan(yte))&&kte(e,new bte),jI(e)}function qDe(e,t={}){const n=fg();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function YDe(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function jI(e){return ute("hub",()=>new bte,e)}function kte(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function K1(e){return(e||xf()).getScope().getTransaction()}let fU=!1;function WDe(){fU||(fU=!0,rDe(FI),aDe(FI))}function FI(){const e=K1();if(e){const t="internal_error";pi&&ln.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}FI.tag="sentry_tracingErrorCallback";var mU;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const o="unauthenticated";e.Unauthenticated=o;const i="permission_denied";e.PermissionDenied=i;const r="not_found";e.NotFound=r;const s="resource_exhausted";e.ResourceExhausted=s;const a="invalid_argument";e.InvalidArgument=a;const l="unimplemented";e.Unimplemented=l;const d="unavailable";e.Unavailable=d;const u="internal_error";e.InternalError=u;const f="unknown_error";e.UnknownError=f;const p="cancelled";e.Cancelled=p;const v="already_exists";e.AlreadyExists=v;const _="failed_precondition";e.FailedPrecondition=_;const k="aborted";e.Aborted=k;const C="out_of_range";e.OutOfRange=C;const $="data_loss";e.DataLoss=$})(mU||(mU={}));function GDe(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Xx(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=GDe(t);n!=="unknown_error"&&e.setStatus(n)}function ZDe(e,t,n=()=>{}){let o;try{o=e()}catch(i){throw t(i),n(),i}return KDe(o,t,n)}function KDe(e,t,n){return gp(e)?e.then(o=>(n(),o),o=>{throw t(o),n(),o}):(n(),e)}function Py(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Ey(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function JDe(e,t){const n=Cte(e);return qDe(()=>LDe(e.scope,o=>{const i=xf(),r=o.getSpan(),a=e.onlyIfParent&&!r?void 0:$te(i,{parentSpan:r,spanContext:n,forceTransaction:e.forceTransaction,scope:o});return ZDe(()=>t(a),()=>{if(a){const{status:l}=va(a);(!l||l==="ok")&&a.setStatus("internal_error")}},()=>a&&a.end())}))}function wte(e){if(!Py())return;const t=Cte(e),n=xf(),o=e.scope?e.scope.getSpan():XDe();if(e.onlyIfParent&&!o)return;const s=(e.scope||Iy()).clone();return $te(n,{parentSpan:o,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function XDe(){return Iy().getSpan()}function $te(e,{parentSpan:t,spanContext:n,forceTransaction:o,scope:i}){if(!Py())return;const r=Jx();let s;if(t&&!o)s=t.startChild(n);else if(t){const a=K_(t),{traceId:l,spanId:d}=t.spanContext(),u=Zx(t);s=e.startTransaction({traceId:l,parentSpanId:d,parentSampled:u,...n,metadata:{dynamicSamplingContext:a,...n.metadata}})}else{const{traceId:a,dsc:l,parentSpanId:d,sampled:u}={...r.getPropagationContext(),...i.getPropagationContext()};s=e.startTransaction({traceId:a,parentSpanId:d,parentSampled:u,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}return i.setSpan(s),QDe(s,i,r),s}function Cte(e){if(e.startTime){const t={...e};return t.startTimestamp=D9(e.startTime),delete t.startTime,t}return e}const Ste="_sentryScope",Tte="_sentryIsolationScope";function QDe(e,t,n){e&&(g5(e,Tte,n),g5(e,Ste,t))}function exe(e){return{scope:e[Ste],isolationScope:e[Tte]}}const Vm="sentry.source",Wv="sentry.sample_rate",Dw="sentry.op",p1="sentry.origin",txe="profile_id";class Ete{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class x9{constructor(t={}){this._traceId=t.traceId||gs(),this._spanId=t.spanId||gs().substring(16),this._startTime=t.startTimestamp||S3(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[p1]:t.origin||"manual",[Dw]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[Dw]}set op(t){this.setAttribute(Dw,t)}get origin(){return this._attributes[p1]}set origin(t){this.setAttribute(p1,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:o}=this;return{spanId:t,traceId:n,traceFlags:o?_te:xDe}}startChild(t){const n=new x9({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const o=y5(this);if(n.transaction=o,pi&&o){const i=t&&t.op||"< unknown op >",r=va(n).description||"< unknown name >",s=o.spanContext().spanId,a=`[Tracing] Starting '${i}' span on transaction '${r}' (${s}).`;ln.log(a),this._logMessage=a}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return Xx(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=y5(this);if(pi&&n&&n.spanContext().spanId!==this._spanId){const o=this._logMessage;o&&ln.log(o.replace("Starting","Finishing"))}this._endTime=D9(t)}toTraceparent(){return A9(this)}toContext(){return Ud({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return Gx(this)}getSpanJSON(){return Ud({data:this._getData(),description:this._name,op:this._attributes[Dw],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[p1],_metrics_summary:void 0,profile_id:this._attributes[txe],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,o=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!o&&!i))return o&&i?{...t,...n}:o?t:n}}class Ite extends x9{constructor(t,n){super(t),this._contexts={},this._hub=n||xf(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const o=this._metadata.dynamicSamplingContext;o&&(this._frozenDynamicSamplingContext={...o})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Vm]&&{source:this._attributes[Vm]},...this._attributes[Wv]&&{sampleRate:this._attributes[Wv]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(Vm,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Ete(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,o=""){this._measurements[t]={value:n,unit:o}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=D9(t),o=this._finishTransaction(n);if(o)return this._hub.captureEvent(o)}toContext(){const t=super.toContext();return Ud({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return K_(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(pi&&ln.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){pi&&ln.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const o=this.spanRecorder?this.spanRecorder.spans.filter(u=>u!==this&&va(u).timestamp):[];if(this._trimEnd&&o.length>0){const u=o.map(f=>va(f).timestamp).filter(Boolean);this._endTime=u.reduce((f,p)=>f>p?f:p)}const{scope:i,isolationScope:r}=exe(this),{metadata:s}=this,{source:a}=s,l={contexts:{...this._contexts,trace:Gx(this)},spans:o,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:i,capturedSpanIsolationScope:r,...Ud({dynamicSamplingContext:K_(this)})},_metrics_summary:void 0,...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(pi&&ln.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),pi&&ln.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),l}}const J8={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},nxe="finishReason",mv=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class oxe extends Ete{constructor(t,n,o,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=o}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...o)=>(this._popActivity(t.spanContext().spanId),n.apply(t,o)),va(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class ixe extends Ite{constructor(t,n,o=J8.idleTimeout,i=J8.finalTimeout,r=J8.heartbeatInterval,s=!1,a=!1){super(t,n),this._idleHub=n,this._idleTimeout=o,this._finalTimeout=i,this._heartbeatInterval=r,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=mv[4],this._autoFinishAllowed=!a,s&&(pi&&ln.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=mv[3],this.end())},this._finalTimeout)}end(t){const n=D9(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(nxe,this._finishReason),this.spanRecorder){pi&&ln.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const o of this._beforeFinishCallbacks)o(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(o=>{if(o.spanContext().spanId===this.spanContext().spanId)return!0;va(o).timestamp||(o.setStatus("cancelled"),o.end(n),pi&&ln.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(o,void 0,2)));const{start_timestamp:i,timestamp:r}=va(o),s=i&&i<n,a=(this._finalTimeout+this._idleTimeout)/1e3,l=r&&i&&r-i<a;if(pi){const d=JSON.stringify(o,void 0,2);s?l||ln.log("[Tracing] discarding Span since it finished after Transaction final timeout",d):ln.log("[Tracing] discarding Span since it happened after Transaction was finished",d)}return s&&l}),pi&&ln.log("[Tracing] flushing IdleTransaction")}else pi&&ln.log("[Tracing] No active IdleTransaction");if(this._onScope){const o=this._idleHub.getScope();o.getTransaction()===this&&o.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=i=>{this._finished||this._pushActivity(i)},o=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new oxe(n,o,this.spanContext().spanId,t),pi&&ln.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=mv[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(pi&&ln.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=mv[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),pi&&ln.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,pi&&ln.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(pi&&ln.log(`[Tracing] popActivity ${t}`),delete this.activities[t],pi&&ln.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=S3();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=mv[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(pi&&ln.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=mv[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){pi&&ln.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Pte(e,t,n){if(!Py(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Wv,Number(e.sampled)),e;let o;return typeof t.tracesSampler=="function"?(o=t.tracesSampler(n),e.setAttribute(Wv,Number(o))):n.parentSampled!==void 0?o=n.parentSampled:typeof t.tracesSampleRate<"u"?(o=t.tracesSampleRate,e.setAttribute(Wv,Number(o))):(o=1,e.setAttribute(Wv,o)),Ate(o)?o?(e.sampled=Math.random()<o,e.sampled?(pi&&ln.log(`[Tracing] starting ${e.op} transaction - ${va(e).description}`),e):(pi&&ln.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),e)):(pi&&ln.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(pi&&ln.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function Ate(e){return BAe(e)||!(typeof e=="number"||typeof e=="boolean")?(pi&&ln.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(pi&&ln.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function rxe(){const t=this.getScope().getSpan();return t?{"sentry-trace":A9(t)}:{}}function sxe(e,t){const n=this.getClient(),o=n&&n.getOptions()||{},i=o.instrumenter||"sentry",r=e.instrumenter||"sentry";i!==r&&(pi&&ln.error(`A transaction was started with instrumenter=\`${r}\`, but the SDK is configured with the \`${i}\` instrumenter. The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new Ite(e,this);return s=Pte(s,o,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(o._experiments&&o._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function pU(e,t,n,o,i,r,s,a=!1){const l=e.getClient(),d=l&&l.getOptions()||{};let u=new ixe(t,e,n,o,s,i,a);return u=Pte(u,d,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...r}),u.isRecording()&&u.initSpanRecorder(d._experiments&&d._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",u),u}function Dte(){const e=fg();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=sxe),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=rxe),WDe())}function axe(e,t,n){const o=K1();o&&o.setMeasurement(e,t,n)}function lxe(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=JAe(t));const o=e.map(cxe);return EDe(n,o)}function cxe(e){return[{type:"span"},e]}const so=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function mg(e){const t=Xo([e,"call",o=>o(),"access",o=>o.getClient,"call",o=>o(),"optionalAccess",o=>o.getOptions,"call",o=>o()]);return(Xo([t,"optionalAccess",o=>o.instrumenter])||"sentry")!=="sentry"}class O9{static __initStatic(){this.id="Express"}constructor(t={}){this.name=O9.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}setupOnce(t,n){if(!this._router){so&&ln.error("ExpressIntegration is missing an Express instance");return}if(mg(n)){so&&ln.log("Express Integration is skipped because of instrumenter configuration.");return}hxe(this._router,this._methods),fxe(this._router)}}O9.__initStatic();function gU(e,t){const n=e.length;switch(n){case 2:return function(o,i){const r=i.__sentry_transaction;if(r){const s=r.startChild({description:e.name,op:`middleware.express.${t}`,origin:"auto.middleware.express"});i.once("finish",()=>{s.end()})}return e.call(this,o,i)};case 3:return function(o,i,r){const s=i.__sentry_transaction,a=Xo([s,"optionalAccess",l=>l.startChild,"call",l=>l({description:e.name,op:`middleware.express.${t}`,origin:"auto.middleware.express"})]);e.call(this,o,i,function(...l){Xo([a,"optionalAccess",d=>d.end,"call",d=>d()]),r.call(this,...l)})};case 4:return function(o,i,r,s){const a=r.__sentry_transaction,l=Xo([a,"optionalAccess",d=>d.startChild,"call",d=>d({description:e.name,op:`middleware.express.${t}`,origin:"auto.middleware.express"})]);e.call(this,o,i,r,function(...d){Xo([l,"optionalAccess",u=>u.end,"call",u=>u()]),s.call(this,...d)})};default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${n}`)}}function dxe(e,t){return e.map(n=>typeof n=="function"?gU(n,t):Array.isArray(n)?n.map(o=>typeof o=="function"?gU(o,t):o):n)}function uxe(e,t){const n=e[t];return e[t]=function(...o){return n.call(this,...dxe(o,t))},e}function hxe(e,t=[]){t.forEach(n=>uxe(e,n))}function fxe(e){const t="settings"in e;t&&e._router===void 0&&e.lazyrouter&&e.lazyrouter();const n=t?e._router:e;if(!n){so&&ln.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),so&&ln.debug("Routing instrumentation is currently only supported in Express 4.");return}const o=Object.getPrototypeOf(n),i=o.process_params;o.process_params=function(s,a,l,d,u){l._reconstructedRoute||(l._reconstructedRoute="");const{layerRoutePath:f,isRegex:p,isArray:v,numExtraSegments:_}=pxe(s);(f||p||v)&&(l._hasParameters=!0);let k;f?k=f:k=_xe(l.originalUrl,l._reconstructedRoute,s.path)||"";const C=k.split("/").filter(P=>P.length>0&&(p||v||!P.includes("*"))).join("/");C&&C.length>0&&(l._reconstructedRoute+=`/${C}${p?"/":""}`);const $=_5(v5(l.originalUrl||""))+_,E=_5(l._reconstructedRoute);if($===E){l._hasParameters||l._reconstructedRoute!==l.originalUrl&&(l._reconstructedRoute=l.originalUrl?v5(l.originalUrl):l.originalUrl);const P=d.__sentry_transaction,I=P&&va(P).data||{};if(P&&I[Vm]!=="custom"){const O=l._reconstructedRoute||"/",[L,S]=_De(l,{path:!0,method:!0,customRoute:O});P.updateName(L),P.setAttribute(Vm,S)}}return i.call(this,s,a,l,d,u)}}const mxe=(e,t,n)=>{if(!e||!t||!n||Object.keys(n).length===0||!Xo([n,"access",d=>d[0],"optionalAccess",d=>d.offset]))return;const o=n.sort((d,u)=>d.offset-u.offset),r=new RegExp(t,`${t.flags}d`).exec(e);if(!r||!r.indices)return;const[,...s]=r.indices;if(s.length!==o.length)return;let a=e,l=0;return s.forEach((d,u)=>{if(d){const[f,p]=d,v=a.substring(0,f-l),_=`:${o[u].name}`,k=a.substring(p-l);a=v+_+k,l=l+(p-f-_.length)}}),a};function pxe(e){let t=Xo([e,"access",s=>s.route,"optionalAccess",s=>s.path]);const n=dte(t),o=Array.isArray(t);if(!t){const[s]=cr.process.versions.node.split(".").map(Number);s>=16&&(t=mxe(e.path,e.regexp,e.keys))}if(!t)return{isRegex:n,isArray:o,numExtraSegments:0};const i=o?Math.max(gxe(t)-_5(e.path||""),0):0;return{layerRoutePath:vxe(o,t),isRegex:n,isArray:o,numExtraSegments:i}}function gxe(e){return e.reduce((t,n)=>t+_5(n.toString()),0)}function vxe(e,t){return e?t.map(n=>n.toString()).join(","):t&&t.toString()}function _xe(e,t,n){const o=v5(e||""),i=Xo([o,"optionalAccess",l=>l.split,"call",l=>l("/"),"access",l=>l.filter,"call",l=>l(d=>!!d)]);let r=0;const s=Xo([t,"optionalAccess",l=>l.split,"call",l=>l("/"),"access",l=>l.filter,"call",l=>l(d=>!!d),"access",l=>l.length])||0;return Xo([n,"optionalAccess",l=>l.split,"call",l=>l("/"),"access",l=>l.filter,"call",l=>l(d=>Xo([i,"optionalAccess",u=>u[s+r]])===d?(r+=1,!0):!1),"access",l=>l.join,"call",l=>l("/")])}class L9{static __initStatic(){this.id="Postgres"}constructor(t={}){this.name=L9.id,this._usePgNative=!!t.usePgNative,this._module=t.module}loadDependency(){return this._module=this._module||Z1("pg")}setupOnce(t,n){if(mg(n)){so&&ln.log("Postgres Integration is skipped because of instrumenter configuration.");return}const o=this.loadDependency();if(!o){so&&ln.error("Postgres Integration was unable to require `pg` package.");return}const i=this._usePgNative?Xo([o,"access",r=>r.native,"optionalAccess",r=>r.Client]):o.Client;if(!i){so&&ln.error("Postgres Integration was unable to access 'pg-native' bindings.");return}Ma(i.prototype,"query",function(r){return function(s,a,l){const u=n().getScope().getSpan(),f={"db.system":"postgresql"};try{this.database&&(f["db.name"]=this.database),this.host&&(f["server.address"]=this.host),this.port&&(f["server.port"]=this.port),this.user&&(f["db.user"]=this.user)}catch{}const p=Xo([u,"optionalAccess",_=>_.startChild,"call",_=>_({description:typeof s=="string"?s:s.text,op:"db",origin:"auto.db.postgres",data:f})]);if(typeof l=="function")return r.call(this,s,a,function(_,k){Xo([p,"optionalAccess",C=>C.end,"call",C=>C()]),l(_,k)});if(typeof a=="function")return r.call(this,s,function(_,k){Xo([p,"optionalAccess",C=>C.end,"call",C=>C()]),a(_,k)});const v=typeof a<"u"?r.call(this,s,a):r.call(this,s);return gp(v)?v.then(_=>(Xo([p,"optionalAccess",k=>k.end,"call",k=>k()]),_)):(Xo([p,"optionalAccess",_=>_.end,"call",_=>_()]),v)}})}}L9.__initStatic();class M9{static __initStatic(){this.id="Mysql"}constructor(){this.name=M9.id}loadDependency(){return this._module=this._module||Z1("mysql/lib/Connection.js")}setupOnce(t,n){if(mg(n)){so&&ln.log("Mysql Integration is skipped because of instrumenter configuration.");return}const o=this.loadDependency();if(!o){so&&ln.error("Mysql Integration was unable to require `mysql` package.");return}let i;try{o.prototype.connect=new Proxy(o.prototype.connect,{apply(a,l,d){return i||(i=l.config),a.apply(l,d)}})}catch{so&&ln.error("Mysql Integration was unable to instrument `mysql` config.")}function r(){return i?{"server.address":i.host,"server.port":i.port,"db.user":i.user}:{}}function s(a){if(!a)return;const l=r();Object.keys(l).forEach(d=>{a.setAttribute(d,l[d])}),a.end()}Ma(o,"createQuery",function(a){return function(l,d,u){const p=n().getScope().getSpan(),v=Xo([p,"optionalAccess",k=>k.startChild,"call",k=>k({description:typeof l=="string"?l:l.sql,op:"db",origin:"auto.db.mysql",data:{"db.system":"mysql"}})]);if(typeof u=="function")return a.call(this,l,d,function(k,C,$){s(v),u(k,C,$)});if(typeof d=="function")return a.call(this,l,function(k,C,$){s(v),d(k,C,$)});const _=a.call(this,l,d);return _.on("end",()=>{s(v)}),_}})}}M9.__initStatic();const yxe=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],bxe={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};function kxe(e){return e&&typeof e=="object"&&e.once&&typeof e.once=="function"}class N9{static __initStatic(){this.id="Mongo"}constructor(t={}){this.name=N9.id,this._operations=Array.isArray(t.operations)?t.operations:yxe,this._describeOperations="describeOperations"in t?t.describeOperations:!0,this._useMongoose=!!t.useMongoose}loadDependency(){const t=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||Z1(t)}setupOnce(t,n){if(mg(n)){so&&ln.log("Mongo Integration is skipped because of instrumenter configuration.");return}const o=this.loadDependency();if(!o){const i=this._useMongoose?"mongoose":"mongodb";so&&ln.error(`Mongo Integration was unable to require \`${i}\` package.`);return}this._instrumentOperations(o.Collection,this._operations,n)}_instrumentOperations(t,n,o){n.forEach(i=>this._patchOperation(t,i,o))}_patchOperation(t,n,o){if(!(n in t.prototype))return;const i=this._getSpanContextFromOperationArguments.bind(this);Ma(t.prototype,n,function(r){return function(...s){const a=s[s.length-1],l=o(),d=l.getScope(),u=l.getClient(),f=d.getSpan(),p=Xo([u,"optionalAccess",_=>_.getOptions,"call",_=>_(),"access",_=>_.sendDefaultPii]);if(typeof a!="function"||n==="mapReduce"&&s.length===2){const _=Xo([f,"optionalAccess",C=>C.startChild,"call",C=>C(i(this,n,s,p))]),k=r.call(this,...s);if(gp(k))return k.then(C=>(Xo([_,"optionalAccess",$=>$.end,"call",$=>$()]),C));if(kxe(k)){const C=k;try{C.once("close",()=>{Xo([_,"optionalAccess",$=>$.end,"call",$=>$()])})}catch{Xo([_,"optionalAccess",E=>E.end,"call",E=>E()])}return C}else return Xo([_,"optionalAccess",C=>C.end,"call",C=>C()]),k}const v=Xo([f,"optionalAccess",_=>_.startChild,"call",_=>_(i(this,n,s.slice(0,-1)))]);return r.call(this,...s.slice(0,-1),function(_,k){Xo([v,"optionalAccess",C=>C.end,"call",C=>C()]),a(_,k)})}})}_getSpanContextFromOperationArguments(t,n,o,i=!1){const r={"db.system":"mongodb","db.name":t.dbName,"db.operation":n,"db.mongodb.collection":t.collectionName},s={op:"db",origin:"auto.db.mongo",description:n,data:r},a=bxe[n],l=Array.isArray(this._describeOperations)?this._describeOperations.includes(n):this._describeOperations;if(!a||!l||!i)return s;try{if(n==="mapReduce"){const[d,u]=o;r[a[0]]=typeof d=="string"?d:d.name||"<anonymous>",r[a[1]]=typeof u=="string"?u:u.name||"<anonymous>"}else for(let d=0;d<a.length;d++)r[`db.mongodb.${a[d]}`]=JSON.stringify(o[d])}catch{}return s}}N9.__initStatic();function wxe(e){return!!e&&!!e.$use}class R9{static __initStatic(){this.id="Prisma"}constructor(t={}){if(this.name=R9.id,wxe(t.client)&&!t.client._sentryInstrumented){g5(t.client,"_sentryInstrumented",!0);const n={};try{const o=t.client._engineConfig;if(o){const{activeProvider:i,clientVersion:r}=o;i&&(n["db.system"]=i),r&&(n["db.prisma.version"]=r)}}catch{}t.client.$use((o,i)=>{if(mg(xf))return i(o);const r=o.action,s=o.model;return JDe({name:s?`${s} ${r}`:r,onlyIfParent:!0,op:"db.prisma",attributes:{[p1]:"auto.db.prisma"},data:{...n,"db.operation":r}},()=>i(o))})}else so&&ln.warn("Unsupported Prisma client provided to PrismaIntegration. Provided client:",t.client)}setupOnce(){}}R9.__initStatic();class j9{static __initStatic(){this.id="GraphQL"}constructor(){this.name=j9.id}loadDependency(){return this._module=this._module||Z1("graphql/execution/execute.js")}setupOnce(t,n){if(mg(n)){so&&ln.log("GraphQL Integration is skipped because of instrumenter configuration.");return}const o=this.loadDependency();if(!o){so&&ln.error("GraphQL Integration was unable to require graphql/execution package.");return}Ma(o,"execute",function(i){return function(...r){const s=n().getScope(),a=s.getSpan(),l=Xo([a,"optionalAccess",u=>u.startChild,"call",u=>u({description:"execute",op:"graphql.execute",origin:"auto.graphql.graphql"})]);Xo([s,"optionalAccess",u=>u.setSpan,"call",u=>u(l)]);const d=i.call(this,...r);return gp(d)?d.then(u=>(Xo([l,"optionalAccess",f=>f.end,"call",f=>f()]),Xo([s,"optionalAccess",f=>f.setSpan,"call",f=>f(a)]),u)):(Xo([l,"optionalAccess",u=>u.end,"call",u=>u()]),Xo([s,"optionalAccess",u=>u.setSpan,"call",u=>u(a)]),d)}})}}j9.__initStatic();class F9{static __initStatic(){this.id="Apollo"}constructor(t={useNestjs:!1}){this.name=F9.id,this._useNest=!!t.useNestjs}loadDependency(){return this._useNest?this._module=this._module||Z1("@nestjs/graphql"):this._module=this._module||Z1("apollo-server-core"),this._module}setupOnce(t,n){if(mg(n)){so&&ln.log("Apollo Integration is skipped because of instrumenter configuration.");return}if(this._useNest){const o=this.loadDependency();if(!o){so&&ln.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package.");return}Ma(o.GraphQLFactory.prototype,"mergeWithSchema",function(i){return function(...r){return Ma(this.resolversExplorerService,"explore",function(s){return function(){const a=OI(s.call(this));return vU(a,n)}}),i.call(this,...r)}})}else{const o=this.loadDependency();if(!o){so&&ln.error("Apollo Integration was unable to require apollo-server-core package.");return}Ma(o.ApolloServerBase.prototype,"constructSchema",function(i){return function(){if(!this.config.resolvers)return so&&(this.config.schema?(ln.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property.If you are using NestJS with Apollo, please use `Sentry.Integrations.Apollo({ useNestjs: true })` instead."),ln.warn()):this.config.modules&&ln.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property."),ln.error("Skipping tracing as no resolvers found on the `ApolloServer` instance.")),i.call(this);const r=OI(this.config.resolvers);return this.config.resolvers=vU(r,n),i.call(this)}})}}}F9.__initStatic();function vU(e,t){return e.map(n=>(Object.keys(n).forEach(o=>{Object.keys(n[o]).forEach(i=>{typeof n[o][i]=="function"&&$xe(n,o,i,t)})}),n))}function $xe(e,t,n,o){Ma(e[t],n,function(i){return function(...r){const a=o().getScope().getSpan(),l=Xo([a,"optionalAccess",u=>u.startChild,"call",u=>u({description:`${t}.${n}`,op:"graphql.resolve",origin:"auto.graphql.apollo"})]),d=i.call(this,...r);return gp(d)?d.then(u=>(Xo([l,"optionalAccess",f=>f.end,"call",f=>f()]),u)):(Xo([l,"optionalAccess",u=>u.end,"call",u=>u()]),d)}})}const _o=cr;function Cxe(){_o.document?_o.document.addEventListener("visibilitychange",()=>{const e=K1();if(_o.document.hidden&&e){const t="cancelled",{op:n,status:o}=va(e);so&&ln.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),o||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):so&&ln.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const T3=(e,t,n)=>{let o,i;return r=>{t.value>=0&&(r||n)&&(i=t.value-(o||0),(i||o===void 0)&&(o=t.value,t.delta=i,e(t)))}},Sxe=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Txe=()=>{const e=_o.performance.timing,t=_o.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const o in e)o!=="navigationStart"&&o!=="toJSON"&&(n[o]=Math.max(e[o]-e.navigationStart,0));return n},z9=()=>_o.__WEB_VITALS_POLYFILL__?_o.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Txe()):_o.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Qx=()=>{const e=z9();return e&&e.activationStart||0},E3=(e,t)=>{const n=z9();let o="navigate";return n&&(_o.document&&_o.document.prerendering||Qx()>0?o="prerender":o=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Sxe(),navigationType:o}},Ay=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const o=new PerformanceObserver(i=>{t(i.getEntries())});return o.observe(Object.assign({type:e,buffered:!0},n||{})),o}}catch{}},I3=(e,t)=>{const n=o=>{(o.type==="pagehide"||_o.document.visibilityState==="hidden")&&(e(o),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};_o.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},Exe=(e,t={})=>{const n=E3("CLS",0);let o,i=0,r=[];const s=l=>{l.forEach(d=>{if(!d.hadRecentInput){const u=r[0],f=r[r.length-1];i&&r.length!==0&&d.startTime-f.startTime<1e3&&d.startTime-u.startTime<5e3?(i+=d.value,r.push(d)):(i=d.value,r=[d]),i>n.value&&(n.value=i,n.entries=r,o&&o())}})},a=Ay("layout-shift",s);if(a){o=T3(e,n,t.reportAllChanges);const l=()=>{s(a.takeRecords()),o(!0)};return I3(l),l}};let b5=-1;const Ixe=()=>{_o.document&&_o.document.visibilityState&&(b5=_o.document.visibilityState==="hidden"&&!_o.document.prerendering?0:1/0)},Pxe=()=>{I3(({timeStamp:e})=>{b5=e},!0)},eO=()=>(b5<0&&(Ixe(),Pxe()),{get firstHiddenTime(){return b5}}),Axe=e=>{const t=eO(),n=E3("FID");let o;const i=a=>{a.startTime<t.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entries.push(a),o(!0))},r=a=>{a.forEach(i)},s=Ay("first-input",r);o=T3(e,n),s&&I3(()=>{r(s.takeRecords()),s.disconnect()},!0)};let xte=0,cS=1/0,xw=0;const Dxe=e=>{e.forEach(t=>{t.interactionId&&(cS=Math.min(cS,t.interactionId),xw=Math.max(xw,t.interactionId),xte=xw?(xw-cS)/7+1:0)})};let zI;const xxe=()=>zI?xte:performance.interactionCount||0,Oxe=()=>{"interactionCount"in performance||zI||(zI=Ay("event",Dxe,{type:"event",buffered:!0,durationThreshold:0}))},Ote=()=>xxe(),_U=10,Zh=[],dS={},yU=e=>{const t=Zh[Zh.length-1],n=dS[e.interactionId];if(n||Zh.length<_U||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const o={id:e.interactionId,latency:e.duration,entries:[e]};dS[o.id]=o,Zh.push(o)}Zh.sort((o,i)=>i.latency-o.latency),Zh.splice(_U).forEach(o=>{delete dS[o.id]})}},Lxe=()=>{const e=Math.min(Zh.length-1,Math.floor(Ote()/50));return Zh[e]},Mxe=(e,t)=>{t=t||{},Oxe();const n=E3("INP");let o;const i=s=>{s.forEach(l=>{l.interactionId&&yU(l),l.entryType==="first-input"&&!Zh.some(u=>u.entries.some(f=>l.duration===f.duration&&l.startTime===f.startTime))&&yU(l)});const a=Lxe();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,o())},r=Ay("event",i,{durationThreshold:t.durationThreshold||40});o=T3(e,n,t.reportAllChanges),r&&(r.observe({type:"first-input",buffered:!0}),I3(()=>{i(r.takeRecords()),n.value<0&&Ote()>0&&(n.value=0,n.entries=[]),o(!0)}))},bU={},Nxe=e=>{const t=eO(),n=E3("LCP");let o;const i=s=>{const a=s[s.length-1];if(a){const l=Math.max(a.startTime-Qx(),0);l<t.firstHiddenTime&&(n.value=l,n.entries=[a],o())}},r=Ay("largest-contentful-paint",i);if(r){o=T3(e,n);const s=()=>{bU[n.id]||(i(r.takeRecords()),r.disconnect(),bU[n.id]=!0,o(!0))};return["keydown","click"].forEach(a=>{_o.document&&addEventListener(a,s,{once:!0,capture:!0})}),I3(s,!0),s}},UI=e=>{_o.document&&(_o.document.prerendering?addEventListener("prerenderingchange",()=>UI(e),!0):_o.document.readyState!=="complete"?addEventListener("load",()=>UI(e),!0):setTimeout(e,0))},Rxe=(e,t)=>{t=t||{};const n=E3("TTFB"),o=T3(e,n,t.reportAllChanges);UI(()=>{const i=z9();if(i){if(n.value=Math.max(i.responseStart-Qx(),0),n.value<0||n.value>performance.now())return;n.entries=[i],o(!0)}})},N0={},k5={};let Lte,Mte,Nte,Rte,jte;function jxe(e,t=!1){return P3("cls",e,Hxe,Lte,t)}function Fxe(e,t=!1){return P3("lcp",e,qxe,Nte,t)}function zxe(e){return P3("ttfb",e,Yxe,Rte)}function Uxe(e){return P3("fid",e,Vxe,Mte)}function Bxe(e){return P3("inp",e,Wxe,jte)}function O2(e,t){return Fte(e,t),k5[e]||(Gxe(e),k5[e]=!0),zte(e,t)}function Dy(e,t){const n=N0[e];if(!(!n||!n.length))for(const o of n)try{o(t)}catch(i){so&&ln.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${fte(o)} Error:`,i)}}function Hxe(){return Exe(e=>{Dy("cls",{metric:e}),Lte=e},{reportAllChanges:!0})}function Vxe(){return Axe(e=>{Dy("fid",{metric:e}),Mte=e})}function qxe(){return Nxe(e=>{Dy("lcp",{metric:e}),Nte=e})}function Yxe(){return Rxe(e=>{Dy("ttfb",{metric:e}),Rte=e})}function Wxe(){return Mxe(e=>{Dy("inp",{metric:e}),jte=e})}function P3(e,t,n,o,i=!1){Fte(e,t);let r;return k5[e]||(r=n(),k5[e]=!0),o&&t({metric:o}),zte(e,t,i?r:void 0)}function Gxe(e){const t={};e==="event"&&(t.durationThreshold=0),Ay(e,n=>{Dy(e,{entries:n})},t)}function Fte(e,t){N0[e]=N0[e]||[],N0[e].push(t)}function zte(e,t,n){return()=>{n&&n();const o=N0[e];if(!o)return;const i=o.indexOf(t);i!==-1&&o.splice(i,1)}}function uS(e){return typeof e=="number"&&isFinite(e)}function J_(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const Zxe=2147483647;function vs(e){return e/1e3}function tO(){return _o&&_o.addEventListener&&_o.performance}let kU=0,Sr={},Au,R0;function Kxe(){const e=tO();if(e&&od){e.mark&&_o.performance.mark("sentry-tracing-init");const t=nOe(),n=eOe(),o=tOe(),i=oOe();return()=>{t(),n(),o(),i()}}return()=>{}}function Jxe(){O2("longtask",({entries:e})=>{for(const t of e){const n=K1();if(!n)return;const o=vs(od+t.startTime),i=vs(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:o,endTimestamp:o+i})}})}function Xxe(){O2("event",({entries:e})=>{for(const t of e){const n=K1();if(!n)return;if(t.name==="click"){const o=vs(od+t.startTime),i=vs(t.duration),r={description:p5(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:o,endTimestamp:o+i},s=GAe(t.target);s&&(r.attributes={"ui.component_name":s}),n.startChild(r)}}})}function Qxe(e,t){if(tO()&&od){const o=iOe(e,t);return()=>{o()}}return()=>{}}function eOe(){return jxe(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(so&&ln.log("[Measurements] Adding CLS"),Sr.cls={value:e.value,unit:""},R0=t)},!0)}function tOe(){return Fxe(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(so&&ln.log("[Measurements] Adding LCP"),Sr.lcp={value:e.value,unit:"millisecond"},Au=t)},!0)}function nOe(){return Uxe(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=vs(od),o=vs(t.startTime);so&&ln.log("[Measurements] Adding FID"),Sr.fid={value:e.value,unit:"millisecond"},Sr["mark.fid"]={value:n+o,unit:"second"}})}function oOe(){return zxe(({metric:e})=>{e.entries[e.entries.length-1]&&(so&&ln.log("[Measurements] Adding TTFB"),Sr.ttfb={value:e.value,unit:"millisecond"})})}const wU={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function iOe(e,t){return Bxe(({metric:n})=>{if(n.value===void 0)return;const o=n.entries.find(P=>P.duration===n.value&&wU[P.name]!==void 0),i=Ey();if(!o||!i)return;const r=wU[o.name],s=i.getOptions(),a=vs(od+o.startTime),l=vs(n.value),d=o.interactionId!==void 0?e[o.interactionId]:void 0;if(d===void 0)return;const{routeName:u,parentContext:f,activeTransaction:p,user:v,replayId:_}=d,k=v!==void 0?v.email||v.id||v.ip_address:void 0,C=p!==void 0?p.getProfileId():void 0,$=new x9({startTimestamp:a,endTimestamp:a+l,op:`ui.interaction.${r}`,name:p5(o.target),attributes:{release:s.release,environment:s.environment,transaction:u,...k!==void 0&&k!==""?{user:k}:{},...C!==void 0?{profile_id:C}:{},..._!==void 0?{replay_id:_}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),E=fOe(f,s,t);if(E&&Math.random()<E){const P=$?lxe([$],i.getDsn()):void 0,I=i&&i.getTransport();I&&P&&I.send(P).then(null,O=>{so&&ln.error("Error while sending interaction:",O)});return}})}function rOe(e){const t=tO();if(!t||!_o.performance.getEntries||!od)return;so&&ln.log("[Tracing] Adding & adjusting spans using Performance API");const n=vs(od),o=t.getEntries(),{op:i,start_timestamp:r}=va(e);if(o.slice(kU).forEach(s=>{const a=vs(s.startTime),l=vs(s.duration);if(!(e.op==="navigation"&&r&&n+a<r))switch(s.entryType){case"navigation":{aOe(e,s,n);break}case"mark":case"paint":case"measure":{sOe(e,s,a,l,n);const d=eO(),u=s.startTime<d.firstHiddenTime;s.name==="first-paint"&&u&&(so&&ln.log("[Measurements] Adding FP"),Sr.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&u&&(so&&ln.log("[Measurements] Adding FCP"),Sr.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{cOe(e,s,s.name,a,l,n);break}}}),kU=Math.max(o.length-1,0),dOe(e),i==="pageload"){hOe(Sr),["fcp","fp","lcp"].forEach(a=>{if(!Sr[a]||!r||n>=r)return;const l=Sr[a].value,d=n+vs(l),u=Math.abs((d-r)*1e3),f=u-l;so&&ln.log(`[Measurements] Normalized ${a} from ${l} to ${u} (${f})`),Sr[a].value=u});const s=Sr["mark.fid"];s&&Sr.fid&&(J_(e,{description:"first input delay",endTimestamp:s.value+vs(Sr.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete Sr["mark.fid"]),"fcp"in Sr||delete Sr.cls,Object.keys(Sr).forEach(a=>{axe(a,Sr[a].value,Sr[a].unit)}),uOe(e)}Au=void 0,R0=void 0,Sr={}}function sOe(e,t,n,o,i){const r=i+n,s=r+o;return J_(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:r}),r}function aOe(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(o=>{Ow(e,t,o,n)}),Ow(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Ow(e,t,"fetch",n,"cache","domainLookupStart"),Ow(e,t,"domainLookup",n,"DNS"),lOe(e,t,n)}function Ow(e,t,n,o,i,r){const s=r?t[r]:t[`${n}End`],a=t[`${n}Start`];!a||!s||J_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:o+vs(a),endTimestamp:o+vs(s)})}function lOe(e,t,n){t.responseEnd&&(J_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+vs(t.requestStart),endTimestamp:n+vs(t.responseEnd)}),J_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+vs(t.responseStart),endTimestamp:n+vs(t.responseEnd)}))}function cOe(e,t,n,o,i,r){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=I9(n),a={};hS(a,t,"transferSize","http.response_transfer_size"),hS(a,t,"encodedBodySize","http.response_content_length"),hS(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=n.includes(_o.location.origin);const l=r+o,d=l+i;J_(e,{description:n.replace(_o.location.origin,""),endTimestamp:d,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:a})}function dOe(e){const t=_o.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),uS(n.rtt)&&(Sr["connection.rtt"]={value:n.rtt,unit:"millisecond"})),uS(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),uS(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function uOe(e){Au&&(so&&ln.log("[Measurements] Adding LCP Data"),Au.element&&e.setTag("lcp.element",p5(Au.element)),Au.id&&e.setTag("lcp.id",Au.id),Au.url&&e.setTag("lcp.url",Au.url.trim().slice(0,200)),e.setTag("lcp.size",Au.size)),R0&&R0.sources&&(so&&ln.log("[Measurements] Adding CLS Data"),R0.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,p5(t.node))))}function hS(e,t,n,o){const i=t[n];i!=null&&i<Zxe&&(e[o]=i)}function hOe(e){const t=z9();if(!t)return;const{responseStart:n,requestStart:o}=t;o<=n&&(so&&ln.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-o,unit:"millisecond"})}function fOe(e,t,n){if(!Py(t))return!1;let o;return e!==void 0&&typeof t.tracesSampler=="function"?o=t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:_o.location}):e!==void 0&&e.sampled!==void 0?o=e.sampled:typeof t.tracesSampleRate<"u"?o=t.tracesSampleRate:o=1,Ate(o)?o===!0?n:o===!1?0:o*n:(so&&ln.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function mOe(e,t,n,o,i="auto.http.browser"){if(!Py()||!e.fetchData)return;const r=t(e.fetchData.url);if(e.endTimestamp&&r){const v=e.fetchData.__span;if(!v)return;const _=o[v];_&&(vOe(_,e),delete o[v]);return}const s=Iy(),a=Ey(),{method:l,url:d}=e.fetchData,u=gOe(d),f=u?I9(u).host:void 0,p=r?wte({name:`${l} ${d}`,onlyIfParent:!0,attributes:{url:d,type:"fetch","http.method":l,"http.url":u,"server.address":f,[p1]:i},op:"http.client"}):void 0;if(p&&(e.fetchData.__span=p.spanContext().spanId,o[p.spanContext().spanId]=p),n(e.fetchData.url)&&a){const v=e.args[0];e.args[1]=e.args[1]||{};const _=e.args[1];_.headers=pOe(v,a,s,_,p)}return p}function pOe(e,t,n,o,i){const r=i||n.getSpan(),s=Jx(),{traceId:a,spanId:l,sampled:d,dsc:u}={...s.getPropagationContext(),...n.getPropagationContext()},f=r?A9(r):Wx(a,l,d),p=gte(u||(r?K_(r):Kx(a,t,n))),v=o.headers||(typeof Request<"u"&&oU(e,Request)?e.headers:void 0);if(v)if(typeof Headers<"u"&&oU(v,Headers)){const _=new Headers(v);return _.append("sentry-trace",f),p&&_.append(NI,p),_}else if(Array.isArray(v)){const _=[...v,["sentry-trace",f]];return p&&_.push([NI,p]),_}else{const _="baggage"in v?v.baggage:void 0,k=[];return Array.isArray(_)?k.push(..._):_&&k.push(_),p&&k.push(p),{...v,"sentry-trace":f,baggage:k.length>0?k.join(","):void 0}}else return{"sentry-trace":f,baggage:p}}function gOe(e){try{return new URL(e).href}catch{return}}function vOe(e,t){if(t.response){Xx(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const o=parseInt(n);o>0&&e.setAttribute("http.response_content_length",o)}}else t.error&&e.setStatus("internal_error");e.end()}const BI=["localhost",/^\/(?!\/)/],HI={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:BI,tracePropagationTargets:BI};function _Oe(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:o,tracingOrigins:i,shouldCreateSpanForRequest:r,enableHTTPTimings:s}={traceFetch:HI.traceFetch,traceXHR:HI.traceXHR,...e},a=typeof r=="function"?r:u=>!0,l=u=>wOe(u,o||i),d={};t&&nDe(u=>{const f=mOe(u,a,l,d);if(f){const p=Ute(u.fetchData.url),v=p?I9(p).host:void 0;f.setAttributes({"http.url":p,"server.address":v})}s&&f&&$U(f)}),n&&fDe(u=>{const f=$Oe(u,a,l,d);s&&f&&$U(f)})}function yOe(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function $U(e){const{url:t}=va(e).data||{};if(!t||typeof t!="string")return;const n=O2("resource",({entries:o})=>{o.forEach(i=>{yOe(i)&&i.name.endsWith(t)&&(kOe(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function bOe(e){let t="unknown",n="unknown",o="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=o==="h"?"http":o,n=e.split(o)[1];break}o+=i}return o===e&&(t=o),{name:t,version:n}}function Su(e=0){return((od||performance.timeOrigin)+e)/1e3}function kOe(e){const{name:t,version:n}=bOe(e.nextHopProtocol),o=[];return o.push(["network.protocol.version",n],["network.protocol.name",t]),od?[...o,["http.request.redirect_start",Su(e.redirectStart)],["http.request.fetch_start",Su(e.fetchStart)],["http.request.domain_lookup_start",Su(e.domainLookupStart)],["http.request.domain_lookup_end",Su(e.domainLookupEnd)],["http.request.connect_start",Su(e.connectStart)],["http.request.secure_connection_start",Su(e.secureConnectionStart)],["http.request.connection_end",Su(e.connectEnd)],["http.request.request_start",Su(e.requestStart)],["http.request.response_start",Su(e.responseStart)],["http.request.response_end",Su(e.responseEnd)]]:o}function wOe(e,t){return VAe(e,t||BI)}function $Oe(e,t,n,o){const i=e.xhr,r=i&&i[d0];if(!Py()||!i||i.__sentry_own_request__||!r)return;const s=t(r.url);if(e.endTimestamp&&s){const v=i.__sentry_xhr_span_id__;if(!v)return;const _=o[v];_&&r.status_code!==void 0&&(Xx(_,r.status_code),_.end(),delete o[v]);return}const a=Iy(),l=Jx(),d=Ute(r.url),u=d?I9(d).host:void 0,f=s?wte({name:`${r.method} ${r.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":r.method,"http.url":d,url:r.url,"server.address":u,[p1]:"auto.http.browser"},op:"http.client"}):void 0;f&&(i.__sentry_xhr_span_id__=f.spanContext().spanId,o[i.__sentry_xhr_span_id__]=f);const p=Ey();if(i.setRequestHeader&&n(r.url)&&p){const{traceId:v,spanId:_,sampled:k,dsc:C}={...l.getPropagationContext(),...a.getPropagationContext()},$=f?A9(f):Wx(v,_,k),E=gte(C||(f?K_(f):Kx(v,p,a)));COe(i,$,E)}return f}function COe(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(NI,n)}catch{}}function Ute(e){try{return new URL(e,_o.location.origin).href}catch{return}}function SOe(e,t=!0,n=!0){if(!_o||!_o.location){so&&ln.warn("Could not initialize routing instrumentation due to invalid location");return}let o=_o.location.href,i;t&&(i=e({name:_o.location.pathname,startTimestamp:od?od/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&dDe(({to:r,from:s})=>{if(s===void 0&&o&&o.indexOf(r)!==-1){o=void 0;return}s!==r&&(o=void 0,i&&(so&&ln.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:_o.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const TOe="BrowserTracing",EOe={...J8,markBackgroundTransactions:!0,routingInstrumentation:SOe,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...HI},CU=10;let IOe=class{constructor(t){this.name=TOe,this._hasSetTracePropagationTargets=!1,Dte(),so&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...EOe,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=Kxe(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Qxe(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Jxe(),this.options._experiments.enableInteractions&&Xxe(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),r=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:a,startTransactionOnPageLoad:l,markBackgroundTransactions:d,traceFetch:u,traceXHR:f,shouldCreateSpanForRequest:p,enableHTTPTimings:v,_experiments:_}=this.options,k=r&&r.tracePropagationTargets,C=k||this.options.tracePropagationTargets;so&&this._hasSetTracePropagationTargets&&k&&ln.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s($=>{const E=this._createRouteTransaction($);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(E,$,n),E},l,a),d&&Cxe(),_.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),_Oe({traceFetch:u,traceXHR:f,tracePropagationTargets:C,shouldCreateSpanForRequest:p,enableHTTPTimings:v})}_createRouteTransaction(t){if(!this._getCurrentHub){so&&ln.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:o,idleTimeout:i,finalTimeout:r,heartbeatInterval:s}=this.options,a=t.op==="pageload";let l;if(a){const v=a?SU("sentry-trace"):"",_=a?SU("baggage"):void 0,{traceId:k,dsc:C,parentSpanId:$,sampled:E}=TDe(v,_);l={traceId:k,parentSpanId:$,parentSampled:E,...t,metadata:{...t.metadata,dynamicSamplingContext:C},trimEnd:!0}}else l={trimEnd:!0,...t};const d=typeof o=="function"?o(l):l,u=d===void 0?{...l,sampled:!1}:d;u.metadata=u.name!==l.name?{...u.metadata,source:"custom"}:u.metadata,this._latestRoute.name=u.name,this._latestRoute.context=u,u.sampled===!1&&so&&ln.log(`[Tracing] Will not send ${u.op} transaction because of beforeNavigate.`),so&&ln.log(`[Tracing] Starting ${u.op} transaction on scope`);const{location:f}=_o,p=pU(n,u,i,r,!0,{location:f},s,a);return a&&_o.document&&(_o.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(_o.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(_o.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(v=>{this._collectWebVitals(),rOe(v)}),p}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:o,finalTimeout:i,heartbeatInterval:r}=this.options,s="ui.action.click",a=K1();if(a&&a.op&&["navigation","pageload"].includes(a.op)){so&&ln.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){so&&ln.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){so&&ln.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:d}=_o,u={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[Vm]:this._latestRoute.context?POe(this._latestRoute.context):"url"}};t=pU(l,u,o,i,!0,{location:d},r)};["click"].forEach(o=>{_o.document&&addEventListener(o,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:n})=>{const o=Ey(),i=o!==void 0&&o.getIntegrationByName!==void 0?o.getIntegrationByName("Replay"):void 0,r=i!==void 0?i.getReplayId():void 0,s=K1(),a=Iy(),l=a!==void 0?a.getUser():void 0;n.forEach(d=>{if(AOe(d)){const u=d.interactionId;if(u===void 0)return;const f=this._interactionIdToRouteNameMapping[u],p=d.duration,v=d.startTime,_=Object.keys(this._interactionIdToRouteNameMapping),k=_.length>0?_.reduce((C,$)=>this._interactionIdToRouteNameMapping[C].duration<this._interactionIdToRouteNameMapping[$].duration?C:$):void 0;if(d.entryType==="first-input"&&_.map($=>this._interactionIdToRouteNameMapping[$]).some($=>$.duration===p&&$.startTime===v)||!u)return;if(f)f.duration=Math.max(f.duration,p);else if(_.length<CU||k===void 0||p>this._interactionIdToRouteNameMapping[k].duration){const C=this._latestRoute.name,$=this._latestRoute.context;C&&$&&(k&&Object.keys(this._interactionIdToRouteNameMapping).length>=CU&&delete this._interactionIdToRouteNameMapping[k],this._interactionIdToRouteNameMapping[u]={routeName:C,duration:p,parentContext:$,user:l,activeTransaction:s,replayId:r,startTime:v})}}})};O2("event",t),O2("first-input",t)}};function SU(e){const t=WAe(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function POe(e){const t=e.attributes&&e.attributes[Vm],n=e.data&&e.data[Vm],o=e.metadata&&e.metadata.source;return t||n||o}function AOe(e){return"duration"in e}function DOe(){const e=fg();if(!e.__SENTRY__)return;const t={mongodb(){const o=m1(module,"./node/integrations/mongo");return new o.Mongo},mongoose(){const o=m1(module,"./node/integrations/mongo");return new o.Mongo},mysql(){const o=m1(module,"./node/integrations/mysql");return new o.Mysql},pg(){const o=m1(module,"./node/integrations/postgres");return new o.Postgres}},n=Object.keys(t).filter(o=>!!Z1(o)).map(o=>{try{return t[o]()}catch{return}}).filter(o=>o);n.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...n])}function xOe(){Dte(),vDe()&&DOe()}const OOe=IOe,LOe={BrowserTracing:OOe,Apollo:F9,Express:O9,GraphQL:j9,Mongo:N9,Mysql:M9,Postgres:L9,Prisma:R9};(typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__)&&xOe();var MOe=Object.defineProperty,NOe=(e,t,n)=>t in e?MOe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jn=(e,t,n)=>(NOe(e,typeof t!="symbol"?t+"":t,n),n),Lw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bte(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ROe=Object.prototype,jOe=ROe.hasOwnProperty;function FOe(e,t){return e!=null&&jOe.call(e,t)}var zOe=FOe,UOe=Array.isArray,uu=UOe,BOe=typeof Lw=="object"&&Lw&&Lw.Object===Object&&Lw,Hte=BOe,HOe=Hte,VOe=typeof self=="object"&&self&&self.Object===Object&&self,qOe=HOe||VOe||Function("return this")(),fh=qOe,YOe=fh,WOe=YOe.Symbol,U9=WOe,TU=U9,Vte=Object.prototype,GOe=Vte.hasOwnProperty,ZOe=Vte.toString,jb=TU?TU.toStringTag:void 0;function KOe(e){var t=GOe.call(e,jb),n=e[jb];try{e[jb]=void 0;var o=!0}catch{}var i=ZOe.call(e);return o&&(t?e[jb]=n:delete e[jb]),i}var JOe=KOe,XOe=Object.prototype,QOe=XOe.toString;function eLe(e){return QOe.call(e)}var tLe=eLe,EU=U9,nLe=JOe,oLe=tLe,iLe="[object Null]",rLe="[object Undefined]",IU=EU?EU.toStringTag:void 0;function sLe(e){return e==null?e===void 0?rLe:iLe:IU&&IU in Object(e)?nLe(e):oLe(e)}var mh=sLe;function aLe(e){return e!=null&&typeof e=="object"}var hu=aLe,lLe=mh,cLe=hu,dLe="[object Symbol]";function uLe(e){return typeof e=="symbol"||cLe(e)&&lLe(e)==dLe}var nO=uLe,hLe=uu,fLe=nO,mLe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pLe=/^\w*$/;function gLe(e,t){if(hLe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||fLe(e)?!0:pLe.test(e)||!mLe.test(e)||t!=null&&e in Object(t)}var oO=gLe;function vLe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Of=vLe,_Le=mh,yLe=Of,bLe="[object AsyncFunction]",kLe="[object Function]",wLe="[object GeneratorFunction]",$Le="[object Proxy]";function CLe(e){if(!yLe(e))return!1;var t=_Le(e);return t==kLe||t==wLe||t==bLe||t==$Le}var pg=CLe,SLe=fh,TLe=SLe["__core-js_shared__"],ELe=TLe,fS=ELe,PU=function(){var e=/[^.]+$/.exec(fS&&fS.keys&&fS.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ILe(e){return!!PU&&PU in e}var PLe=ILe,ALe=Function.prototype,DLe=ALe.toString;function xLe(e){if(e!=null){try{return DLe.call(e)}catch{}try{return e+""}catch{}}return""}var qte=xLe,OLe=pg,LLe=PLe,MLe=Of,NLe=qte,RLe=/[\\^$.*+?()[\]{}|]/g,jLe=/^\[object .+?Constructor\]$/,FLe=Function.prototype,zLe=Object.prototype,ULe=FLe.toString,BLe=zLe.hasOwnProperty,HLe=RegExp("^"+ULe.call(BLe).replace(RLe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function VLe(e){if(!MLe(e)||LLe(e))return!1;var t=OLe(e)?HLe:jLe;return t.test(NLe(e))}var qLe=VLe;function YLe(e,t){return e==null?void 0:e[t]}var WLe=YLe,GLe=qLe,ZLe=WLe;function KLe(e,t){var n=ZLe(e,t);return GLe(n)?n:void 0}var gg=KLe,JLe=gg,XLe=JLe(Object,"create"),B9=XLe,AU=B9;function QLe(){this.__data__=AU?AU(null):{},this.size=0}var eMe=QLe;function tMe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nMe=tMe,oMe=B9,iMe="__lodash_hash_undefined__",rMe=Object.prototype,sMe=rMe.hasOwnProperty;function aMe(e){var t=this.__data__;if(oMe){var n=t[e];return n===iMe?void 0:n}return sMe.call(t,e)?t[e]:void 0}var lMe=aMe,cMe=B9,dMe=Object.prototype,uMe=dMe.hasOwnProperty;function hMe(e){var t=this.__data__;return cMe?t[e]!==void 0:uMe.call(t,e)}var fMe=hMe,mMe=B9,pMe="__lodash_hash_undefined__";function gMe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mMe&&t===void 0?pMe:t,this}var vMe=gMe,_Me=eMe,yMe=nMe,bMe=lMe,kMe=fMe,wMe=vMe;function xy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}xy.prototype.clear=_Me;xy.prototype.delete=yMe;xy.prototype.get=bMe;xy.prototype.has=kMe;xy.prototype.set=wMe;var $Me=xy;function CMe(){this.__data__=[],this.size=0}var SMe=CMe;function TMe(e,t){return e===t||e!==e&&t!==t}var Oy=TMe,EMe=Oy;function IMe(e,t){for(var n=e.length;n--;)if(EMe(e[n][0],t))return n;return-1}var H9=IMe,PMe=H9,AMe=Array.prototype,DMe=AMe.splice;function xMe(e){var t=this.__data__,n=PMe(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():DMe.call(t,n,1),--this.size,!0}var OMe=xMe,LMe=H9;function MMe(e){var t=this.__data__,n=LMe(t,e);return n<0?void 0:t[n][1]}var NMe=MMe,RMe=H9;function jMe(e){return RMe(this.__data__,e)>-1}var FMe=jMe,zMe=H9;function UMe(e,t){var n=this.__data__,o=zMe(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var BMe=UMe,HMe=SMe,VMe=OMe,qMe=NMe,YMe=FMe,WMe=BMe;function Ly(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ly.prototype.clear=HMe;Ly.prototype.delete=VMe;Ly.prototype.get=qMe;Ly.prototype.has=YMe;Ly.prototype.set=WMe;var V9=Ly,GMe=gg,ZMe=fh,KMe=GMe(ZMe,"Map"),iO=KMe,DU=$Me,JMe=V9,XMe=iO;function QMe(){this.size=0,this.__data__={hash:new DU,map:new(XMe||JMe),string:new DU}}var eNe=QMe;function tNe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var nNe=tNe,oNe=nNe;function iNe(e,t){var n=e.__data__;return oNe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var q9=iNe,rNe=q9;function sNe(e){var t=rNe(this,e).delete(e);return this.size-=t?1:0,t}var aNe=sNe,lNe=q9;function cNe(e){return lNe(this,e).get(e)}var dNe=cNe,uNe=q9;function hNe(e){return uNe(this,e).has(e)}var fNe=hNe,mNe=q9;function pNe(e,t){var n=mNe(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}var gNe=pNe,vNe=eNe,_Ne=aNe,yNe=dNe,bNe=fNe,kNe=gNe;function My(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}My.prototype.clear=vNe;My.prototype.delete=_Ne;My.prototype.get=yNe;My.prototype.has=bNe;My.prototype.set=kNe;var rO=My,Yte=rO,wNe="Expected a function";function sO(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wNe);var n=function(){var o=arguments,i=t?t.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=e.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(sO.Cache||Yte),n}sO.Cache=Yte;var $Ne=sO,CNe=$Ne,SNe=500;function TNe(e){var t=CNe(e,function(o){return n.size===SNe&&n.clear(),o}),n=t.cache;return t}var ENe=TNe,INe=ENe,PNe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ANe=/\\(\\)?/g,DNe=INe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(PNe,function(n,o,i,r){t.push(i?r.replace(ANe,"$1"):o||n)}),t}),xNe=DNe;function ONe(e,t){for(var n=-1,o=e==null?0:e.length,i=Array(o);++n<o;)i[n]=t(e[n],n,e);return i}var LNe=ONe,xU=U9,MNe=LNe,NNe=uu,RNe=nO,jNe=1/0,OU=xU?xU.prototype:void 0,LU=OU?OU.toString:void 0;function Wte(e){if(typeof e=="string")return e;if(NNe(e))return MNe(e,Wte)+"";if(RNe(e))return LU?LU.call(e):"";var t=e+"";return t=="0"&&1/e==-jNe?"-0":t}var FNe=Wte,zNe=FNe;function UNe(e){return e==null?"":zNe(e)}var BNe=UNe,HNe=uu,VNe=oO,qNe=xNe,YNe=BNe;function WNe(e,t){return HNe(e)?e:VNe(e,t)?[e]:qNe(YNe(e))}var Gte=WNe,GNe=mh,ZNe=hu,KNe="[object Arguments]";function JNe(e){return ZNe(e)&&GNe(e)==KNe}var XNe=JNe,MU=XNe,QNe=hu,Zte=Object.prototype,eRe=Zte.hasOwnProperty,tRe=Zte.propertyIsEnumerable,nRe=MU(function(){return arguments}())?MU:function(e){return QNe(e)&&eRe.call(e,"callee")&&!tRe.call(e,"callee")},aO=nRe,oRe=9007199254740991,iRe=/^(?:0|[1-9]\d*)$/;function rRe(e,t){var n=typeof e;return t=t??oRe,!!t&&(n=="number"||n!="symbol"&&iRe.test(e))&&e>-1&&e%1==0&&e<t}var lO=rRe,sRe=9007199254740991;function aRe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sRe}var cO=aRe,lRe=nO,cRe=1/0;function dRe(e){if(typeof e=="string"||lRe(e))return e;var t=e+"";return t=="0"&&1/e==-cRe?"-0":t}var Y9=dRe,uRe=Gte,hRe=aO,fRe=uu,mRe=lO,pRe=cO,gRe=Y9;function vRe(e,t,n){t=uRe(t,e);for(var o=-1,i=t.length,r=!1;++o<i;){var s=gRe(t[o]);if(!(r=e!=null&&n(e,s)))break;e=e[s]}return r||++o!=i?r:(i=e==null?0:e.length,!!i&&pRe(i)&&mRe(s,i)&&(fRe(e)||hRe(e)))}var Kte=vRe,_Re=zOe,yRe=Kte;function bRe(e,t){return e!=null&&yRe(e,t,_Re)}var Jte=bRe,kRe=mh,wRe=hu,$Re="[object Date]";function CRe(e){return wRe(e)&&kRe(e)==$Re}var SRe=CRe;function TRe(e){return function(t){return e(t)}}var Xte=TRe,L2={},ERe={get exports(){return L2},set exports(e){L2=e}};(function(e,t){var n=Hte,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,r=i&&i.exports===o,s=r&&n.process,a=function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=a})(ERe,L2);var IRe=SRe,PRe=Xte,NU=L2,RU=NU&&NU.isDate,ARe=RU?PRe(RU):IRe,DRe=ARe,xRe=mh,ORe=uu,LRe=hu,MRe="[object String]";function NRe(e){return typeof e=="string"||!ORe(e)&&LRe(e)&&xRe(e)==MRe}var Fu=NRe;function RRe(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}var Qte=RRe,jRe=V9;function FRe(){this.__data__=new jRe,this.size=0}var zRe=FRe;function URe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var BRe=URe;function HRe(e){return this.__data__.get(e)}var VRe=HRe;function qRe(e){return this.__data__.has(e)}var YRe=qRe,WRe=V9,GRe=iO,ZRe=rO,KRe=200;function JRe(e,t){var n=this.__data__;if(n instanceof WRe){var o=n.__data__;if(!GRe||o.length<KRe-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new ZRe(o)}return n.set(e,t),this.size=n.size,this}var XRe=JRe,QRe=V9,eje=zRe,tje=BRe,nje=VRe,oje=YRe,ije=XRe;function Ny(e){var t=this.__data__=new QRe(e);this.size=t.size}Ny.prototype.clear=eje;Ny.prototype.delete=tje;Ny.prototype.get=nje;Ny.prototype.has=oje;Ny.prototype.set=ije;var dO=Ny,rje="__lodash_hash_undefined__";function sje(e){return this.__data__.set(e,rje),this}var aje=sje;function lje(e){return this.__data__.has(e)}var cje=lje,dje=rO,uje=aje,hje=cje;function w5(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new dje;++t<n;)this.add(e[t])}w5.prototype.add=w5.prototype.push=uje;w5.prototype.has=hje;var fje=w5;function mje(e,t){return e.has(t)}var pje=mje,gje=fje,vje=Qte,_je=pje,yje=1,bje=2;function kje(e,t,n,o,i,r){var s=n&yje,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var d=r.get(e),u=r.get(t);if(d&&u)return d==t&&u==e;var f=-1,p=!0,v=n&bje?new gje:void 0;for(r.set(e,t),r.set(t,e);++f<a;){var _=e[f],k=t[f];if(o)var C=s?o(k,_,f,t,e,r):o(_,k,f,e,t,r);if(C!==void 0){if(C)continue;p=!1;break}if(v){if(!vje(t,function($,E){if(!_je(v,E)&&(_===$||i(_,$,n,o,r)))return v.push(E)})){p=!1;break}}else if(!(_===k||i(_,k,n,o,r))){p=!1;break}}return r.delete(e),r.delete(t),p}var ene=kje,wje=fh,$je=wje.Uint8Array,tne=$je;function Cje(e){var t=-1,n=Array(e.size);return e.forEach(function(o,i){n[++t]=[i,o]}),n}var Sje=Cje;function Tje(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var Eje=Tje,jU=U9,FU=tne,Ije=Oy,Pje=ene,Aje=Sje,Dje=Eje,xje=1,Oje=2,Lje="[object Boolean]",Mje="[object Date]",Nje="[object Error]",Rje="[object Map]",jje="[object Number]",Fje="[object RegExp]",zje="[object Set]",Uje="[object String]",Bje="[object Symbol]",Hje="[object ArrayBuffer]",Vje="[object DataView]",zU=jU?jU.prototype:void 0,mS=zU?zU.valueOf:void 0;function qje(e,t,n,o,i,r,s){switch(n){case Vje:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Hje:return!(e.byteLength!=t.byteLength||!r(new FU(e),new FU(t)));case Lje:case Mje:case jje:return Ije(+e,+t);case Nje:return e.name==t.name&&e.message==t.message;case Fje:case Uje:return e==t+"";case Rje:var a=Aje;case zje:var l=o&xje;if(a||(a=Dje),e.size!=t.size&&!l)return!1;var d=s.get(e);if(d)return d==t;o|=Oje,s.set(e,t);var u=Pje(a(e),a(t),o,i,r,s);return s.delete(e),u;case Bje:if(mS)return mS.call(e)==mS.call(t)}return!1}var Yje=qje;function Wje(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}var Gje=Wje,Zje=Gje,Kje=uu;function Jje(e,t,n){var o=t(e);return Kje(e)?o:Zje(o,n(e))}var Xje=Jje;function Qje(e,t){for(var n=-1,o=e==null?0:e.length,i=0,r=[];++n<o;){var s=e[n];t(s,n,e)&&(r[i++]=s)}return r}var eFe=Qje;function tFe(){return[]}var nFe=tFe,oFe=eFe,iFe=nFe,rFe=Object.prototype,sFe=rFe.propertyIsEnumerable,UU=Object.getOwnPropertySymbols,aFe=UU?function(e){return e==null?[]:(e=Object(e),oFe(UU(e),function(t){return sFe.call(e,t)}))}:iFe,lFe=aFe;function cFe(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var dFe=cFe,X_={},uFe={get exports(){return X_},set exports(e){X_=e}};function hFe(){return!1}var fFe=hFe;(function(e,t){var n=fh,o=fFe,i=t&&!t.nodeType&&t,r=i&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===i,a=s?n.Buffer:void 0,l=a?a.isBuffer:void 0,d=l||o;e.exports=d})(uFe,X_);var mFe=mh,pFe=cO,gFe=hu,vFe="[object Arguments]",_Fe="[object Array]",yFe="[object Boolean]",bFe="[object Date]",kFe="[object Error]",wFe="[object Function]",$Fe="[object Map]",CFe="[object Number]",SFe="[object Object]",TFe="[object RegExp]",EFe="[object Set]",IFe="[object String]",PFe="[object WeakMap]",AFe="[object ArrayBuffer]",DFe="[object DataView]",xFe="[object Float32Array]",OFe="[object Float64Array]",LFe="[object Int8Array]",MFe="[object Int16Array]",NFe="[object Int32Array]",RFe="[object Uint8Array]",jFe="[object Uint8ClampedArray]",FFe="[object Uint16Array]",zFe="[object Uint32Array]",Ji={};Ji[xFe]=Ji[OFe]=Ji[LFe]=Ji[MFe]=Ji[NFe]=Ji[RFe]=Ji[jFe]=Ji[FFe]=Ji[zFe]=!0;Ji[vFe]=Ji[_Fe]=Ji[AFe]=Ji[yFe]=Ji[DFe]=Ji[bFe]=Ji[kFe]=Ji[wFe]=Ji[$Fe]=Ji[CFe]=Ji[SFe]=Ji[TFe]=Ji[EFe]=Ji[IFe]=Ji[PFe]=!1;function UFe(e){return gFe(e)&&pFe(e.length)&&!!Ji[mFe(e)]}var BFe=UFe,HFe=BFe,VFe=Xte,BU=L2,HU=BU&&BU.isTypedArray,qFe=HU?VFe(HU):HFe,uO=qFe,YFe=dFe,WFe=aO,GFe=uu,ZFe=X_,KFe=lO,JFe=uO,XFe=Object.prototype,QFe=XFe.hasOwnProperty;function eze(e,t){var n=GFe(e),o=!n&&WFe(e),i=!n&&!o&&ZFe(e),r=!n&&!o&&!i&&JFe(e),s=n||o||i||r,a=s?YFe(e.length,String):[],l=a.length;for(var d in e)(t||QFe.call(e,d))&&!(s&&(d=="length"||i&&(d=="offset"||d=="parent")||r&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||KFe(d,l)))&&a.push(d);return a}var nne=eze,tze=Object.prototype;function nze(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||tze;return e===n}var hO=nze;function oze(e,t){return function(n){return e(t(n))}}var one=oze,ize=one,rze=ize(Object.keys,Object),sze=rze,aze=hO,lze=sze,cze=Object.prototype,dze=cze.hasOwnProperty;function uze(e){if(!aze(e))return lze(e);var t=[];for(var n in Object(e))dze.call(e,n)&&n!="constructor"&&t.push(n);return t}var hze=uze,fze=pg,mze=cO;function pze(e){return e!=null&&mze(e.length)&&!fze(e)}var A3=pze,gze=nne,vze=hze,_ze=A3;function yze(e){return _ze(e)?gze(e):vze(e)}var fO=yze,bze=Xje,kze=lFe,wze=fO;function $ze(e){return bze(e,wze,kze)}var Cze=$ze,VU=Cze,Sze=1,Tze=Object.prototype,Eze=Tze.hasOwnProperty;function Ize(e,t,n,o,i,r){var s=n&Sze,a=VU(e),l=a.length,d=VU(t),u=d.length;if(l!=u&&!s)return!1;for(var f=l;f--;){var p=a[f];if(!(s?p in t:Eze.call(t,p)))return!1}var v=r.get(e),_=r.get(t);if(v&&_)return v==t&&_==e;var k=!0;r.set(e,t),r.set(t,e);for(var C=s;++f<l;){p=a[f];var $=e[p],E=t[p];if(o)var P=s?o(E,$,p,t,e,r):o($,E,p,e,t,r);if(!(P===void 0?$===E||i($,E,n,o,r):P)){k=!1;break}C||(C=p=="constructor")}if(k&&!C){var I=e.constructor,O=t.constructor;I!=O&&"constructor"in e&&"constructor"in t&&!(typeof I=="function"&&I instanceof I&&typeof O=="function"&&O instanceof O)&&(k=!1)}return r.delete(e),r.delete(t),k}var Pze=Ize,Aze=gg,Dze=fh,xze=Aze(Dze,"DataView"),Oze=xze,Lze=gg,Mze=fh,Nze=Lze(Mze,"Promise"),Rze=Nze,jze=gg,Fze=fh,zze=jze(Fze,"Set"),Uze=zze,Bze=gg,Hze=fh,Vze=Bze(Hze,"WeakMap"),qze=Vze,VI=Oze,qI=iO,YI=Rze,WI=Uze,GI=qze,ine=mh,Ry=qte,qU="[object Map]",Yze="[object Object]",YU="[object Promise]",WU="[object Set]",GU="[object WeakMap]",ZU="[object DataView]",Wze=Ry(VI),Gze=Ry(qI),Zze=Ry(YI),Kze=Ry(WI),Jze=Ry(GI),n1=ine;(VI&&n1(new VI(new ArrayBuffer(1)))!=ZU||qI&&n1(new qI)!=qU||YI&&n1(YI.resolve())!=YU||WI&&n1(new WI)!=WU||GI&&n1(new GI)!=GU)&&(n1=function(e){var t=ine(e),n=t==Yze?e.constructor:void 0,o=n?Ry(n):"";if(o)switch(o){case Wze:return ZU;case Gze:return qU;case Zze:return YU;case Kze:return WU;case Jze:return GU}return t});var Xze=n1,pS=dO,Qze=ene,eUe=Yje,tUe=Pze,KU=Xze,JU=uu,XU=X_,nUe=uO,oUe=1,QU="[object Arguments]",eB="[object Array]",Mw="[object Object]",iUe=Object.prototype,tB=iUe.hasOwnProperty;function rUe(e,t,n,o,i,r){var s=JU(e),a=JU(t),l=s?eB:KU(e),d=a?eB:KU(t);l=l==QU?Mw:l,d=d==QU?Mw:d;var u=l==Mw,f=d==Mw,p=l==d;if(p&&XU(e)){if(!XU(t))return!1;s=!0,u=!1}if(p&&!u)return r||(r=new pS),s||nUe(e)?Qze(e,t,n,o,i,r):eUe(e,t,l,n,o,i,r);if(!(n&oUe)){var v=u&&tB.call(e,"__wrapped__"),_=f&&tB.call(t,"__wrapped__");if(v||_){var k=v?e.value():e,C=_?t.value():t;return r||(r=new pS),i(k,C,n,o,r)}}return p?(r||(r=new pS),tUe(e,t,n,o,i,r)):!1}var sUe=rUe,aUe=sUe,nB=hu;function rne(e,t,n,o,i){return e===t?!0:e==null||t==null||!nB(e)&&!nB(t)?e!==e&&t!==t:aUe(e,t,n,o,rne,i)}var sne=rne,lUe=dO,cUe=sne,dUe=1,uUe=2;function hUe(e,t,n,o){var i=n.length,r=i,s=!o;if(e==null)return!r;for(e=Object(e);i--;){var a=n[i];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<r;){a=n[i];var l=a[0],d=e[l],u=a[1];if(s&&a[2]){if(d===void 0&&!(l in e))return!1}else{var f=new lUe;if(o)var p=o(d,u,l,e,t,f);if(!(p===void 0?cUe(u,d,dUe|uUe,o,f):p))return!1}}return!0}var fUe=hUe,mUe=Of;function pUe(e){return e===e&&!mUe(e)}var ane=pUe,gUe=ane,vUe=fO;function _Ue(e){for(var t=vUe(e),n=t.length;n--;){var o=t[n],i=e[o];t[n]=[o,i,gUe(i)]}return t}var yUe=_Ue;function bUe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var lne=bUe,kUe=fUe,wUe=yUe,$Ue=lne;function CUe(e){var t=wUe(e);return t.length==1&&t[0][2]?$Ue(t[0][0],t[0][1]):function(n){return n===e||kUe(n,e,t)}}var SUe=CUe,TUe=Gte,EUe=Y9;function IUe(e,t){t=TUe(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[EUe(t[n++])];return n&&n==o?e:void 0}var cne=IUe,PUe=cne;function AUe(e,t,n){var o=e==null?void 0:PUe(e,t);return o===void 0?n:o}var g1=AUe;function DUe(e,t){return e!=null&&t in Object(e)}var xUe=DUe,OUe=xUe,LUe=Kte;function MUe(e,t){return e!=null&&LUe(e,t,OUe)}var NUe=MUe,RUe=sne,jUe=g1,FUe=NUe,zUe=oO,UUe=ane,BUe=lne,HUe=Y9,VUe=1,qUe=2;function YUe(e,t){return zUe(e)&&UUe(t)?BUe(HUe(e),t):function(n){var o=jUe(n,e);return o===void 0&&o===t?FUe(n,e):RUe(t,o,VUe|qUe)}}var WUe=YUe;function GUe(e){return e}var mO=GUe;function ZUe(e){return function(t){return t==null?void 0:t[e]}}var KUe=ZUe,JUe=cne;function XUe(e){return function(t){return JUe(t,e)}}var QUe=XUe,eBe=KUe,tBe=QUe,nBe=oO,oBe=Y9;function iBe(e){return nBe(e)?eBe(oBe(e)):tBe(e)}var rBe=iBe,sBe=SUe,aBe=WUe,lBe=mO,cBe=uu,dBe=rBe;function uBe(e){return typeof e=="function"?e:e==null?lBe:typeof e=="object"?cBe(e)?aBe(e[0],e[1]):sBe(e):dBe(e)}var dne=uBe;function hBe(e){return function(t,n,o){for(var i=-1,r=Object(t),s=o(t),a=s.length;a--;){var l=s[e?a:++i];if(n(r[l],l,r)===!1)break}return t}}var fBe=hBe,mBe=fBe,pBe=mBe(),une=pBe,gBe=une,vBe=fO;function _Be(e,t){return e&&gBe(e,t,vBe)}var hne=_Be,yBe=A3;function bBe(e,t){return function(n,o){if(n==null)return n;if(!yBe(n))return e(n,o);for(var i=n.length,r=t?i:-1,s=Object(n);(t?r--:++r<i)&&o(s[r],r,s)!==!1;);return n}}var kBe=bBe,wBe=hne,$Be=kBe,CBe=$Be(wBe),SBe=CBe,TBe=SBe;function EBe(e,t){var n;return TBe(e,function(o,i,r){return n=t(o,i,r),!n}),!!n}var IBe=EBe,PBe=Oy,ABe=A3,DBe=lO,xBe=Of;function OBe(e,t,n){if(!xBe(n))return!1;var o=typeof t;return(o=="number"?ABe(n)&&DBe(t,n.length):o=="string"&&t in n)?PBe(n[t],e):!1}var pO=OBe,LBe=Qte,MBe=dne,NBe=IBe,RBe=uu,jBe=pO;function FBe(e,t,n){var o=RBe(e)?LBe:NBe;return n&&jBe(e,t,n)&&(t=void 0),o(e,MBe(t))}var zBe=FBe,UBe=mh,BBe=hu,HBe="[object Boolean]";function VBe(e){return e===!0||e===!1||BBe(e)&&UBe(e)==HBe}var qBe=VBe,YBe=mh,WBe=hu,GBe="[object Number]";function ZBe(e){return typeof e=="number"||WBe(e)&&YBe(e)==GBe}var ou=ZBe,KBe=gg,JBe=function(){try{var e=KBe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),fne=JBe,oB=fne;function XBe(e,t,n){t=="__proto__"&&oB?oB(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var W9=XBe,QBe=W9,eHe=Oy,tHe=Object.prototype,nHe=tHe.hasOwnProperty;function oHe(e,t,n){var o=e[t];(!(nHe.call(e,t)&&eHe(o,n))||n===void 0&&!(t in e))&&QBe(e,t,n)}var iHe=oHe,rHe=W9,sHe=hne,aHe=dne;function lHe(e,t){var n={};return t=aHe(t),sHe(e,function(o,i,r){rHe(n,i,t(o,i,r))}),n}var cHe=lHe;function dHe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var mne=dHe,uHe=mne,iB=Math.max;function hHe(e,t,n){return t=iB(t===void 0?e.length-1:t,0),function(){for(var o=arguments,i=-1,r=iB(o.length-t,0),s=Array(r);++i<r;)s[i]=o[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=o[i];return a[t]=n(s),uHe(e,this,a)}}var fHe=hHe;function mHe(e){return function(){return e}}var pHe=mHe,gHe=pHe,rB=fne,vHe=mO,_He=rB?function(e,t){return rB(e,"toString",{configurable:!0,enumerable:!1,value:gHe(t),writable:!0})}:vHe,yHe=_He,bHe=800,kHe=16,wHe=Date.now;function $He(e){var t=0,n=0;return function(){var o=wHe(),i=kHe-(o-n);if(n=o,i>0){if(++t>=bHe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var CHe=$He,SHe=yHe,THe=CHe,EHe=THe(SHe),IHe=EHe,PHe=mO,AHe=fHe,DHe=IHe;function xHe(e,t){return DHe(AHe(e,t,PHe),e+"")}var gO=xHe;function OHe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var LHe=OHe,MHe=Of,NHe=hO,RHe=LHe,jHe=Object.prototype,FHe=jHe.hasOwnProperty;function zHe(e){if(!MHe(e))return RHe(e);var t=NHe(e),n=[];for(var o in e)o=="constructor"&&(t||!FHe.call(e,o))||n.push(o);return n}var UHe=zHe,BHe=nne,HHe=UHe,VHe=A3;function qHe(e){return VHe(e)?BHe(e,!0):HHe(e)}var vO=qHe,YHe=gO,WHe=Oy,GHe=pO,ZHe=vO,pne=Object.prototype,KHe=pne.hasOwnProperty,JHe=YHe(function(e,t){e=Object(e);var n=-1,o=t.length,i=o>2?t[2]:void 0;for(i&&GHe(t[0],t[1],i)&&(o=1);++n<o;)for(var r=t[n],s=ZHe(r),a=-1,l=s.length;++a<l;){var d=s[a],u=e[d];(u===void 0||WHe(u,pne[d])&&!KHe.call(e,d))&&(e[d]=r[d])}return e}),sB=JHe,XHe=W9,QHe=Oy;function eVe(e,t,n){(n!==void 0&&!QHe(e[t],n)||n===void 0&&!(t in e))&&XHe(e,t,n)}var gne=eVe,$5={},tVe={get exports(){return $5},set exports(e){$5=e}};(function(e,t){var n=fh,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,r=i&&i.exports===o,s=r?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;function l(d,u){if(u)return d.slice();var f=d.length,p=a?a(f):new d.constructor(f);return d.copy(p),p}e.exports=l})(tVe,$5);var aB=tne;function nVe(e){var t=new e.constructor(e.byteLength);return new aB(t).set(new aB(e)),t}var oVe=nVe,iVe=oVe;function rVe(e,t){var n=t?iVe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var sVe=rVe;function aVe(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var lVe=aVe,cVe=Of,lB=Object.create,dVe=function(){function e(){}return function(t){if(!cVe(t))return{};if(lB)return lB(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),uVe=dVe,hVe=one,fVe=hVe(Object.getPrototypeOf,Object),vne=fVe,mVe=uVe,pVe=vne,gVe=hO;function vVe(e){return typeof e.constructor=="function"&&!gVe(e)?mVe(pVe(e)):{}}var _Ve=vVe,yVe=A3,bVe=hu;function kVe(e){return bVe(e)&&yVe(e)}var wVe=kVe,$Ve=mh,CVe=vne,SVe=hu,TVe="[object Object]",EVe=Function.prototype,IVe=Object.prototype,_ne=EVe.toString,PVe=IVe.hasOwnProperty,AVe=_ne.call(Object);function DVe(e){if(!SVe(e)||$Ve(e)!=TVe)return!1;var t=CVe(e);if(t===null)return!0;var n=PVe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&_ne.call(n)==AVe}var xVe=DVe;function OVe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var yne=OVe,LVe=iHe,MVe=W9;function NVe(e,t,n,o){var i=!n;n||(n={});for(var r=-1,s=t.length;++r<s;){var a=t[r],l=o?o(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),i?MVe(n,a,l):LVe(n,a,l)}return n}var RVe=NVe,jVe=RVe,FVe=vO;function zVe(e){return jVe(e,FVe(e))}var UVe=zVe,cB=gne,BVe=$5,HVe=sVe,VVe=lVe,qVe=_Ve,dB=aO,uB=uu,YVe=wVe,WVe=X_,GVe=pg,ZVe=Of,KVe=xVe,JVe=uO,hB=yne,XVe=UVe;function QVe(e,t,n,o,i,r,s){var a=hB(e,n),l=hB(t,n),d=s.get(l);if(d){cB(e,n,d);return}var u=r?r(a,l,n+"",e,t,s):void 0,f=u===void 0;if(f){var p=uB(l),v=!p&&WVe(l),_=!p&&!v&&JVe(l);u=l,p||v||_?uB(a)?u=a:YVe(a)?u=VVe(a):v?(f=!1,u=BVe(l,!0)):_?(f=!1,u=HVe(l,!0)):u=[]:KVe(l)||dB(l)?(u=a,dB(a)?u=XVe(a):(!ZVe(a)||GVe(a))&&(u=qVe(l))):f=!1}f&&(s.set(l,u),i(u,l,o,r,s),s.delete(l)),cB(e,n,u)}var eqe=QVe,tqe=dO,nqe=gne,oqe=une,iqe=eqe,rqe=Of,sqe=vO,aqe=yne;function bne(e,t,n,o,i){e!==t&&oqe(t,function(r,s){if(i||(i=new tqe),rqe(r))iqe(e,t,s,n,bne,o,i);else{var a=o?o(aqe(e,s),r,s+"",e,t,i):void 0;a===void 0&&(a=r),nqe(e,s,a)}},sqe)}var kne=bne,lqe=kne,fB=Of;function wne(e,t,n,o,i,r){return fB(e)&&fB(t)&&(r.set(t,e),lqe(e,t,void 0,wne,r),r.delete(t)),e}var cqe=wne,dqe=gO,uqe=pO;function hqe(e){return dqe(function(t,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(r=e.length>3&&typeof r=="function"?(i--,r):void 0,s&&uqe(n[0],n[1],s)&&(r=i<3?void 0:r,i=1),t=Object(t);++o<i;){var a=n[o];a&&e(t,a,o,r)}return t})}var fqe=hqe,mqe=kne,pqe=fqe,gqe=pqe(function(e,t,n,o){mqe(e,t,n,o)}),vqe=gqe,_qe=mne,yqe=gO,bqe=cqe,kqe=vqe,wqe=yqe(function(e){return e.push(void 0,bqe),_qe(kqe,void 0,e)}),M2=wqe;function $qe(e){return e&&e.length?e[0]:void 0}var $ne=$qe;function Cqe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Gv=Cqe;const Sqe=e=>Object.prototype.toString.call(e).slice(8,-1),__=e=>DRe(e)&&!isNaN(e.getTime()),kf=e=>Sqe(e)==="Object",Cne=Jte,mB=(e,t)=>zBe(t,n=>Jte(e,n)),zi=(e,t,n="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length<t;)e=`${n}${e}`;return e},Xc=e=>Array.isArray(e),sf=e=>Xc(e)&&e.length>0,C5=e=>e==null?null:document&&Fu(e)?document.querySelector(e):e.$el??e,Im=(e,t,n,o=void 0)=>{e.removeEventListener(t,n,o)},Pm=(e,t,n,o=void 0)=>(e.addEventListener(t,n,o),()=>Im(e,t,n,o)),X8=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),Nw=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},Sne=(e,...t)=>{const n={};let o;for(o in e)t.includes(o)||(n[o]=e[o]);return n},Tne=(e,t)=>{const n={};return t.forEach(o=>{o in e&&(n[o]=e[o])}),n};function Tqe(e,t,n){return Math.min(Math.max(e,t),n)}var S5={},Eqe={get exports(){return S5},set exports(e){S5=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(o){if(o===null||o===!0||o===!1)return NaN;var i=Number(o);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}e.exports=t.default})(Eqe,S5);const Iqe=Bte(S5);var T5={},Pqe={get exports(){return T5},set exports(e){T5=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(o){var i=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return i.setUTCFullYear(o.getFullYear()),o.getTime()-i.getTime()}e.exports=t.default})(Pqe,T5);const pB=Bte(T5);function Aqe(e,t){var n=Lqe(t);return n.formatToParts?xqe(n,e):Oqe(n,e)}var Dqe={year:0,month:1,day:2,hour:3,minute:4,second:5};function xqe(e,t){try{for(var n=e.formatToParts(t),o=[],i=0;i<n.length;i++){var r=Dqe[n[i].type];r>=0&&(o[r]=parseInt(n[i].value,10))}return o}catch(s){if(s instanceof RangeError)return[NaN];throw s}}function Oqe(e,t){var n=e.format(t).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[o[3],o[1],o[2],o[4],o[5],o[6]]}var gS={};function Lqe(e){if(!gS[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";gS[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return gS[e]}function Ene(e,t,n,o,i,r,s){var a=new Date(0);return a.setUTCFullYear(e,t,n),a.setUTCHours(o,i,r,s),a}var gB=36e5,Mqe=6e4,vS={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Nqe(e,t,n){var o,i;if(!e||(o=vS.timezoneZ.exec(e),o))return 0;var r;if(o=vS.timezoneHH.exec(e),o)return r=parseInt(o[1],10),vB(r)?-(r*gB):NaN;if(o=vS.timezoneHHMM.exec(e),o){r=parseInt(o[1],10);var s=parseInt(o[2],10);return vB(r,s)?(i=Math.abs(r)*gB+s*Mqe,r>0?-i:i):NaN}if(Fqe(e)){t=new Date(t||Date.now());var a=n?t:Rqe(t),l=ZI(a,e),d=n?l:jqe(t,l,e);return-d}return NaN}function Rqe(e){return Ene(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function ZI(e,t){var n=Aqe(e,t),o=Ene(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),i=e.getTime(),r=i%1e3;return i-=r>=0?r:1e3+r,o-i}function jqe(e,t,n){var o=e.getTime(),i=o-t,r=ZI(new Date(i),n);if(t===r)return t;i-=r-t;var s=ZI(new Date(i),n);return r===s?r:Math.max(r,s)}function vB(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var _B={};function Fqe(e){if(_B[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),_B[e]=!0,!0}catch{return!1}}var zqe=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const Uqe=zqe;var _S=36e5,yB=6e4,Bqe=2,La={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Uqe};function Hqe(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},o=n.additionalDigits==null?Bqe:Iqe(n.additionalDigits);if(o!==2&&o!==1&&o!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=Vqe(e),r=qqe(i.date,o),s=r.year,a=r.restDateString,l=Yqe(a,s);if(isNaN(l))return new Date(NaN);if(l){var d=l.getTime(),u=0,f;if(i.time&&(u=Wqe(i.time),isNaN(u)))return new Date(NaN);if(i.timeZone||n.timeZone){if(f=Nqe(i.timeZone||n.timeZone,new Date(d+u)),isNaN(f))return new Date(NaN)}else f=pB(new Date(d+u)),f=pB(new Date(d+u+f));return new Date(d+u+f)}else return new Date(NaN)}function Vqe(e){var t={},n=La.dateTimePattern.exec(e),o;if(n?(t.date=n[1],o=n[3]):(n=La.datePattern.exec(e),n?(t.date=n[1],o=n[2]):(t.date=null,o=e)),o){var i=La.timeZone.exec(o);i?(t.time=o.replace(i[1],""),t.timeZone=i[1].trim()):t.time=o}return t}function qqe(e,t){var n=La.YYY[t],o=La.YYYYY[t],i;if(i=La.YYYY.exec(e)||o.exec(e),i){var r=i[1];return{year:parseInt(r,10),restDateString:e.slice(r.length)}}if(i=La.YY.exec(e)||n.exec(e),i){var s=i[1];return{year:parseInt(s,10)*100,restDateString:e.slice(s.length)}}return{year:null}}function Yqe(e,t){if(t===null)return null;var n,o,i,r;if(e.length===0)return o=new Date(0),o.setUTCFullYear(t),o;if(n=La.MM.exec(e),n)return o=new Date(0),i=parseInt(n[1],10)-1,kB(t,i)?(o.setUTCFullYear(t,i),o):new Date(NaN);if(n=La.DDD.exec(e),n){o=new Date(0);var s=parseInt(n[1],10);return Kqe(t,s)?(o.setUTCFullYear(t,0,s),o):new Date(NaN)}if(n=La.MMDD.exec(e),n){o=new Date(0),i=parseInt(n[1],10)-1;var a=parseInt(n[2],10);return kB(t,i,a)?(o.setUTCFullYear(t,i,a),o):new Date(NaN)}if(n=La.Www.exec(e),n)return r=parseInt(n[1],10)-1,wB(t,r)?bB(t,r):new Date(NaN);if(n=La.WwwD.exec(e),n){r=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return wB(t,r,l)?bB(t,r,l):new Date(NaN)}return null}function Wqe(e){var t,n,o;if(t=La.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),yS(n)?n%24*_S:NaN;if(t=La.HHMM.exec(e),t)return n=parseInt(t[1],10),o=parseFloat(t[2].replace(",",".")),yS(n,o)?n%24*_S+o*yB:NaN;if(t=La.HHMMSS.exec(e),t){n=parseInt(t[1],10),o=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return yS(n,o,i)?n%24*_S+o*yB+i*1e3:NaN}return null}function bB(e,t,n){t=t||0,n=n||0;var o=new Date(0);o.setUTCFullYear(e,0,4);var i=o.getUTCDay()||7,r=t*7+n+1-i;return o.setUTCDate(o.getUTCDate()+r),o}var Gqe=[31,28,31,30,31,30,31,31,30,31,30,31],Zqe=[31,29,31,30,31,30,31,31,30,31,30,31];function Ine(e){return e%400===0||e%4===0&&e%100!==0}function kB(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var o=Ine(e);if(o&&n>Zqe[t]||!o&&n>Gqe[t])return!1}return!0}function Kqe(e,t){if(t<1)return!1;var n=Ine(e);return!(n&&t>366||!n&&t>365)}function wB(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function yS(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}function ya(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Q8(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Q8=function(n){return typeof n}:Q8=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Q8(e)}function Lf(e){ya(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Q8(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function jy(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var Jqe={};function _O(){return Jqe}function J1(e,t){var n,o,i,r,s,a,l,d;ya(1,arguments);var u=_O(),f=jy((n=(o=(i=(r=t==null?void 0:t.weekStartsOn)!==null&&r!==void 0?r:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&o!==void 0?o:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Lf(e),v=p.getDay(),_=(v<f?7:0)+v-f;return p.setDate(p.getDate()-_),p.setHours(0,0,0,0),p}function $B(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Xqe=6048e5;function Qqe(e,t,n){ya(2,arguments);var o=J1(e,n),i=J1(t,n),r=o.getTime()-$B(o),s=i.getTime()-$B(i);return Math.round((r-s)/Xqe)}function eYe(e){ya(1,arguments);var t=Lf(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function tYe(e){ya(1,arguments);var t=Lf(e);return t.setDate(1),t.setHours(0,0,0,0),t}function nYe(e,t){return ya(1,arguments),Qqe(eYe(e),tYe(e),t)+1}function oYe(e,t){var n,o,i,r,s,a,l,d;ya(1,arguments);var u=Lf(e),f=u.getFullYear(),p=_O(),v=jy((n=(o=(i=(r=t==null?void 0:t.firstWeekContainsDate)!==null&&r!==void 0?r:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&o!==void 0?o:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setFullYear(f+1,0,v),_.setHours(0,0,0,0);var k=J1(_,t),C=new Date(0);C.setFullYear(f,0,v),C.setHours(0,0,0,0);var $=J1(C,t);return u.getTime()>=k.getTime()?f+1:u.getTime()>=$.getTime()?f:f-1}function iYe(e,t){var n,o,i,r,s,a,l,d;ya(1,arguments);var u=_O(),f=jy((n=(o=(i=(r=t==null?void 0:t.firstWeekContainsDate)!==null&&r!==void 0?r:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&o!==void 0?o:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=oYe(e,t),v=new Date(0);v.setFullYear(p,0,f),v.setHours(0,0,0,0);var _=J1(v,t);return _}var rYe=6048e5;function sYe(e,t){ya(1,arguments);var n=Lf(e),o=J1(n,t).getTime()-iYe(n,t).getTime();return Math.round(o/rYe)+1}function E5(e){return ya(1,arguments),J1(e,{weekStartsOn:1})}function aYe(e){ya(1,arguments);var t=Lf(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var i=E5(o),r=new Date(0);r.setFullYear(n,0,4),r.setHours(0,0,0,0);var s=E5(r);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function lYe(e){ya(1,arguments);var t=aYe(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var o=E5(n);return o}var cYe=6048e5;function dYe(e){ya(1,arguments);var t=Lf(e),n=E5(t).getTime()-lYe(t).getTime();return Math.round(n/cYe)+1}function Oa(e,t){ya(2,arguments);var n=Lf(e),o=jy(t);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}function I5(e,t){ya(2,arguments);var n=Lf(e),o=jy(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var i=n.getDate(),r=new Date(n.getTime());r.setMonth(n.getMonth()+o+1,0);var s=r.getDate();return i>=s?r:(n.setFullYear(r.getFullYear(),r.getMonth(),i),n)}function CB(e,t){ya(2,arguments);var n=jy(t);return I5(e,n*12)}const uYe={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function hYe({monthComps:e,prevMonthComps:t,nextMonthComps:n},o){const i=[],{firstDayOfWeek:r,firstWeekday:s,isoWeeknumbers:a,weeknumbers:l,numDays:d,numWeeks:u}=e,f=s+(s<r?sa:0)-r;let p=!0,v=!1,_=!1,k=0;const C=new Intl.DateTimeFormat(o.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let $=t.numDays-f+1,E=t.numDays-$+1,P=Math.floor(($-1)/sa+1),I=1,O=t.numWeeks,L=1,S=t.month,j=t.year;const M=new Date,q=M.getDate(),B=M.getMonth()+1,V=M.getFullYear();for(let G=1;G<=iWe;G++){for(let Q=1,X=r;Q<=sa;Q++,X+=X===sa?1-sa:1){p&&X===s&&($=1,E=e.numDays,P=Math.floor(($-1)/sa+1),I=Math.floor((d-$)/sa+1),O=1,L=u,S=e.month,j=e.year,p=!1,v=!0);const Y=o.getDateFromParams(j,S,$,0,0,0,0),Z=o.getDateFromParams(j,S,$,12,0,0,0),se=o.getDateFromParams(j,S,$,23,59,59,999),ce=Y,te=`${zi(j,4)}-${zi(S,2)}-${zi($,2)}`,ee=Q,ae=sa-Q,de=l[G-1],$e=a[G-1],be=$===q&&S===B&&j===V,me=v&&$===1,fe=v&&$===d,Ae=G===1,je=G===u,Ye=Q===1,_t=Q===sa,xt=zne(j,S,$);i.push({locale:o,id:te,position:++k,label:$.toString(),ariaLabel:C.format(new Date(j,S-1,$)),day:$,dayFromEnd:E,weekday:X,weekdayPosition:ee,weekdayPositionFromEnd:ae,weekdayOrdinal:P,weekdayOrdinalFromEnd:I,week:O,weekFromEnd:L,weekPosition:G,weeknumber:de,isoWeeknumber:$e,month:S,year:j,date:ce,startDate:Y,endDate:se,noonDate:Z,dayIndex:xt,isToday:be,isFirstDay:me,isLastDay:fe,isDisabled:!v,isFocusable:!v,isFocused:!1,inMonth:v,inPrevMonth:p,inNextMonth:_,onTop:Ae,onBottom:je,onLeft:Ye,onRight:_t,classes:[`id-${te}`,`day-${$}`,`day-from-end-${E}`,`weekday-${X}`,`weekday-position-${ee}`,`weekday-ordinal-${P}`,`weekday-ordinal-from-end-${I}`,`week-${O}`,`week-from-end-${L}`,{"is-today":be,"is-first-day":me,"is-last-day":fe,"in-month":v,"in-prev-month":p,"in-next-month":_,"on-top":Ae,"on-bottom":je,"on-left":Ye,"on-right":_t}]}),v&&fe?(v=!1,_=!0,$=1,E=d,P=1,I=Math.floor((d-$)/sa+1),O=1,L=n.numWeeks,S=n.month,j=n.year):($++,E--,P=Math.floor(($-1)/sa+1),I=Math.floor((d-$)/sa+1))}O++,L--}return i}function fYe(e,t,n,o){const i=e.reduce((r,s,a)=>{const l=Math.floor(a/7);let d=r[l];return d||(d={id:`week-${l+1}`,title:"",week:s.week,weekPosition:s.weekPosition,weeknumber:s.weeknumber,isoWeeknumber:s.isoWeeknumber,weeknumberDisplay:t?s.weeknumber:n?s.isoWeeknumber:void 0,days:[]},r[l]=d),d.days.push(s),r},Array(e.length/sa));return i.forEach(r=>{const s=r.days[0],a=r.days[r.days.length-1];s.month===a.month?r.title=`${o.formatDate(s.date,"MMMM YYYY")}`:s.year===a.year?r.title=`${o.formatDate(s.date,"MMM")} - ${o.formatDate(a.date,"MMM YYYY")}`:r.title=`${o.formatDate(s.date,"MMM YYYY")} - ${o.formatDate(a.date,"MMM YYYY")}`}),i}function mYe(e,t){return e.days.map(n=>({label:t.formatDate(n.date,t.masks.weekdays),weekday:n.weekday}))}function pYe(e,t){return`${t}.${zi(e,2)}`}function Pne(e,t,n){return Tne(n.getDateParts(n.toDate(e)),uYe[t])}function Ane({day:e,week:t,month:n,year:o},i,r,s){if(r==="daily"&&e){const a=new Date(o,n-1,e),l=Oa(a,i);return{day:l.getDate(),month:l.getMonth()+1,year:l.getFullYear()}}else if(r==="weekly"&&t){const l=s.getMonthParts(n,o).firstDayOfMonth,d=Oa(l,(t-1+i)*7),u=s.getDateParts(d);return{week:u.week,month:u.month,year:u.year}}else{const a=new Date(o,n-1,1),l=I5(a,i);return{month:l.getMonth()+1,year:l.getFullYear()}}}function zu(e){return e!=null&&e.month!=null&&e.year!=null}function KI(e,t){return!zu(e)||!zu(t)?!1:(e=e,t=t,e.year!==t.year?e.year<t.year:e.month&&t.month&&e.month!==t.month?e.month<t.month:e.week&&t.week&&e.week!==t.week?e.week<t.week:e.day&&t.day&&e.day!==t.day?e.day<t.day:!1)}function P5(e,t){return!zu(e)||!zu(t)?!1:(e=e,t=t,e.year!==t.year?e.year>t.year:e.month&&t.month&&e.month!==t.month?e.month>t.month:e.week&&t.week&&e.week!==t.week?e.week>t.week:e.day&&t.day&&e.day!==t.day?e.day>t.day:!1)}function gYe(e,t,n){return(e||!1)&&!KI(e,t)&&!P5(e,n)}function vYe(e,t){return!e&&t||e&&!t?!1:!e&&!t?!0:(e=e,t=t,e.year===t.year&&e.month===t.month&&e.week===t.week&&e.day===t.day)}function _Ye(e,t,n,o){if(!zu(e)||!zu(t))return[];const i=[];for(;!P5(e,t);)i.push(e),e=Ane(e,1,n,o);return i}function Dne(e){const{day:t,week:n,month:o,year:i}=e;let r=`${i}-${zi(o,2)}`;return n&&(r=`${r}-w${n}`),t&&(r=`${r}-${zi(t,2)}`),r}function yYe(e,t){const{month:n,year:o,showWeeknumbers:i,showIsoWeeknumbers:r}=e,s=new Date(o,n-1,15),a=t.getMonthParts(n,o),l=t.getPrevMonthParts(n,o),d=t.getNextMonthParts(n,o),u=hYe({monthComps:a,prevMonthComps:l,nextMonthComps:d},t),f=fYe(u,i,r,t),p=mYe(f[0],t);return{id:Dne(e),month:n,year:o,monthTitle:t.formatDate(s,t.masks.title),shortMonthLabel:t.formatDate(s,"MMM"),monthLabel:t.formatDate(s,"MMMM"),shortYearLabel:o.toString().substring(2),yearLabel:o.toString(),monthComps:a,prevMonthComps:l,nextMonthComps:d,days:u,weeks:f,weekdays:p}}function bYe(e,t){const{day:n,week:o,view:i,trimWeeks:r}=e,s={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(i){case"daily":{let a=s.days.find(d=>d.inMonth);n?a=s.days.find(d=>d.day===n&&d.inMonth)||a:o&&(a=s.days.find(d=>d.week===o&&d.inMonth));const l=s.weeks[a.week-1];s.viewWeeks=[l],s.viewDays=[a],s.week=a.week,s.weekTitle=l.title,s.day=a.day,s.dayTitle=a.ariaLabel,s.title=s.dayTitle;break}case"weekly":{s.week=o||1;const a=s.weeks[s.week-1];s.viewWeeks=[a],s.viewDays=a.days,s.weekTitle=a.title,s.title=s.weekTitle;break}default:{s.title=s.monthTitle,s.viewWeeks=s.weeks.slice(0,r?s.monthComps.numWeeks:void 0),s.viewDays=s.days;break}}return s}class SB{constructor(t,n,o){jn(this,"keys",[]),jn(this,"store",{}),this.size=t,this.createKey=n,this.createItem=o}get(...t){const n=this.createKey(...t);return this.store[n]}getOrSet(...t){const n=this.createKey(...t);if(this.store[n])return this.store[n];const o=this.createItem(...t);if(this.keys.length>=this.size){const i=this.keys.shift();i!=null&&delete this.store[i]}return this.keys.push(n),this.store[n]=o,o}}let TB=class e4{constructor(t,n=new A5){jn(this,"order"),jn(this,"locale"),jn(this,"start",null),jn(this,"end",null),jn(this,"repeat",null);var o;this.locale=n;const{start:i,end:r,span:s,order:a,repeat:l}=t;__(i)&&(this.start=n.getDateParts(i)),__(r)?this.end=n.getDateParts(r):this.start!=null&&s&&(this.end=n.getDateParts(Oa(this.start.date,s-1))),this.order=a??0,l&&(this.repeat=new D5({from:(o=this.start)==null?void 0:o.date,...l},{locale:this.locale}))}static fromMany(t,n){return(Xc(t)?t:[t]).filter(o=>o).map(o=>e4.from(o,n))}static from(t,n){if(t instanceof e4)return t;const o={start:null,end:null};return t!=null&&(Xc(t)?(o.start=t[0]??null,o.end=t[1]??null):kf(t)?Object.assign(o,t):(o.start=t,o.end=t)),o.start!=null&&(o.start=new Date(o.start)),o.end!=null&&(o.end=new Date(o.end)),new e4(o,n)}get opts(){const{order:t,locale:n}=this;return{order:t,locale:n}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:t,end:n}=this;return t&&n&&t.year===n.year&&t.month===n.month&&t.day===n.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(t){var n,o;return((n=this.start)==null?void 0:n.dayIndex)===t.dayIndex||!!((o=this.repeat)!=null&&o.passes(t))}intersectsDay(t){return this.intersectsDayRange(t,t)}intersectsRange(t){var n,o;return this.intersectsDayRange(((n=t.start)==null?void 0:n.dayIndex)??-1/0,((o=t.end)==null?void 0:o.dayIndex)??1/0)}intersectsDayRange(t,n){return!(this.start&&this.start.dayIndex>n||this.end&&this.end.dayIndex<t)}};class kYe{constructor(){jn(this,"records",{})}render(t,n,o){var i,r,s,a;let l=null;const d=o[0].dayIndex,u=o[o.length-1].dayIndex;return n.hasRepeat?o.forEach(f=>{var p,v;if(n.startsOnDay(f)){const _=n.daySpan<1/0?n.daySpan:1;l={startDay:f.dayIndex,startTime:((p=n.start)==null?void 0:p.time)??0,endDay:f.dayIndex+_-1,endTime:((v=n.end)==null?void 0:v.time)??t4},this.getRangeRecords(t).push(l)}}):n.intersectsDayRange(d,u)&&(l={startDay:((i=n.start)==null?void 0:i.dayIndex)??-1/0,startTime:((r=n.start)==null?void 0:r.time)??-1/0,endDay:((s=n.end)==null?void 0:s.dayIndex)??1/0,endTime:((a=n.end)==null?void 0:a.time)??1/0},this.getRangeRecords(t).push(l)),l}getRangeRecords(t){let n=this.records[t.key];return n||(n={ranges:[],data:t},this.records[t.key]=n),n.ranges}getCell(t,n){return this.getCells(n).find(r=>r.data.key===t)}cellExists(t,n){const o=this.records[t];return o==null?!1:o.ranges.some(i=>i.startDay<=n&&i.endDay>=n)}getCells(t){const n=Object.values(this.records),o=[],{dayIndex:i}=t;return n.forEach(({data:r,ranges:s})=>{s.filter(a=>a.startDay<=i&&a.endDay>=i).forEach(a=>{const l=i===a.startDay,d=i===a.endDay,u=l?a.startTime:0,f=new Date(t.startDate.getTime()+u),p=d?a.endTime:t4,v=new Date(t.endDate.getTime()+p),_=u===0&&p===t4,k=r.order||0;o.push({...a,data:r,onStart:l,onEnd:d,startTime:u,startDate:f,endTime:p,endDate:v,allDay:_,order:k})})}),o.sort((r,s)=>r.order-s.order),o}}const wf={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYYĺą´MćśDć—Ą"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};wf.en=wf["en-US"];wf.es=wf["es-ES"];wf.no=wf.nb;wf.zh=wf["zh-CN"];const wYe=Object.entries(wf).reduce((e,[t,{dow:n,L:o}])=>(e[t]={id:t,firstDayOfWeek:n,masks:{L:o}},e),{}),$Ye="MMMM YYYY",CYe="W",SYe="MMM",TYe="h A",EYe=["L","YYYY-MM-DD","YYYY/MM/DD"],IYe=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],PYe=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],AYe=["h:mm A"],DYe=["HH:mm"],xYe="WWW, MMM D, YYYY",OYe=["L","YYYY-MM-DD","YYYY/MM/DD"],LYe="iso",MYe="YYYY-MM-DDTHH:mm:ss.SSSZ",NYe={title:$Ye,weekdays:CYe,navMonths:SYe,hours:TYe,input:EYe,inputDateTime:IYe,inputDateTime24hr:PYe,inputTime:AYe,inputTime24hr:DYe,dayPopover:xYe,data:OYe,model:LYe,iso:MYe},RYe=300,jYe=60,FYe=80,zYe={maxSwipeTime:RYe,minHorizontalSwipeDistance:jYe,maxVerticalSwipeDistance:FYe},UYe={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:zYe,masks:NYe,locales:wYe,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},JI=hc(UYe),BYe=dt(()=>cHe(JI.locales,e=>(e.masks=M2(e.masks,JI.masks),e))),op=e=>typeof window<"u"&&Cne(window.__vcalendar__,e)?g1(window.__vcalendar__,e):g1(JI,e),HYe=12,VYe=5;function qYe(e,t){const n=new Intl.DateTimeFormat().resolvedOptions().locale;let o;Fu(e)?o=e:Cne(e,"id")&&(o=e.id),o=(o||n).toLowerCase();const i=Object.keys(t),r=l=>i.find(d=>d.toLowerCase()===l);o=r(o)||r(o.substring(0,2))||n;const s={...t["en-IE"],...t[o],id:o,monthCacheSize:HYe,pageCacheSize:VYe};return kf(e)?M2(e,s):s}let A5=class{constructor(t=void 0,n){jn(this,"id"),jn(this,"daysInWeek"),jn(this,"firstDayOfWeek"),jn(this,"masks"),jn(this,"timezone"),jn(this,"hourLabels"),jn(this,"dayNames"),jn(this,"dayNamesShort"),jn(this,"dayNamesShorter"),jn(this,"dayNamesNarrow"),jn(this,"monthNames"),jn(this,"monthNamesShort"),jn(this,"relativeTimeNames"),jn(this,"amPm",["am","pm"]),jn(this,"monthCache"),jn(this,"pageCache");const{id:o,firstDayOfWeek:i,masks:r,monthCacheSize:s,pageCacheSize:a}=qYe(t,BYe.value);this.monthCache=new SB(s,fWe,mWe),this.pageCache=new SB(a,Dne,yYe),this.id=o,this.daysInWeek=sa,this.firstDayOfWeek=Tqe(i,1,sa),this.masks=r,this.timezone=n||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=bS("long",this.id),this.dayNamesShort=bS("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(l=>l.substring(0,2)),this.dayNamesNarrow=bS("narrow",this.id),this.monthNames=xB("long",this.id),this.monthNamesShort=xB("short",this.id),this.relativeTimeNames=vWe(this.id)}formatDate(t,n){return wWe(t,n,this)}parseDate(t,n){return OB(t,n,this)}toDate(t,n={}){const o=new Date(NaN);let i=o;const{fillDate:r,mask:s,patch:a,rules:l}=n;if(ou(t)?(n.type="number",i=new Date(+t)):Fu(t)?(n.type="string",i=t?OB(t,s||"iso",this):o):__(t)?(n.type="date",i=new Date(t.getTime())):yO(t)&&(n.type="object",i=this.getDateFromParts(t)),i&&(a||l)){let d=this.getDateParts(i);if(a&&r!=null){const u=this.getDateParts(this.toDate(r));d=this.getDateParts(this.toDate({...u,...Tne(d,oWe[a])}))}l&&(d=kWe(d,l)),i=this.getDateFromParts(d)}return i||o}toDateOrNull(t,n={}){const o=this.toDate(t,n);return isNaN(o.getTime())?null:o}fromDate(t,{type:n,mask:o}={}){switch(n){case"number":return t?t.getTime():NaN;case"string":return t?this.formatDate(t,o||"iso"):"";case"object":return t?this.getDateParts(t):null;default:return t?new Date(t):null}}range(t){return TB.from(t,this)}ranges(t){return TB.fromMany(t,this)}getDateParts(t){return hWe(t,this)}getDateFromParts(t){return Bne(t,this.timezone)}getDateFromParams(t,n,o,i,r,s,a){return this.getDateFromParts({year:t,month:n,day:o,hours:i,minutes:r,seconds:s,milliseconds:a})}getPage(t){const n=this.pageCache.getOrSet(t,this);return bYe(t,n)}getMonthParts(t,n){const{firstDayOfWeek:o}=this;return this.monthCache.getOrSet(t,n,o)}getThisMonthParts(){const t=new Date;return this.getMonthParts(t.getMonth()+1,t.getFullYear())}getPrevMonthParts(t,n){return t===1?this.getMonthParts(12,n-1):this.getMonthParts(t-1,n)}getNextMonthParts(t,n){return t===12?this.getMonthParts(1,n+1):this.getMonthParts(t+1,n)}getHourLabels(){return gWe().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}};var Rv=(e=>(e.Any="any",e.All="all",e))(Rv||{}),xne=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(xne||{}),One=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(One||{}),Lne=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(Lne||{});class YYe{constructor(t,n,o){jn(this,"validated",!0),this.type=t,this.interval=n,this.from=o,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(t){if(!this.validated)return!0;const{date:n}=t;switch(this.type){case"days":return bO(this.from.date,n)%this.interval===0;case"weeks":return dWe(this.from.date,n)%this.interval===0;case"months":return uWe(this.from.date,n)%this.interval===0;case"years":return Une(this.from.date,n)%this.interval===0;default:return!1}}}class Fy{constructor(t,n,o,i){jn(this,"components",[]),this.type=t,this.validator=o,this.getter=i,this.components=this.normalizeComponents(n)}static create(t,n){switch(t){case"days":return new WYe(n);case"weekdays":return new GYe(n);case"weeks":return new ZYe(n);case"months":return new KYe(n);case"years":return new JYe(n)}}normalizeComponents(t){if(this.validator(t))return[t];if(!Xc(t))return[];const n=[];return t.forEach(o=>{if(!this.validator(o)){console.error(`Component value ${o} in invalid for "${this.type}" rule. This rule will be skipped.`);return}n.push(o)}),n}passes(t){return this.getter(t).some(i=>this.components.includes(i))}}class WYe extends Fy{constructor(t){super("days",t,eWe,({day:n,dayFromEnd:o})=>[n,-o])}}class GYe extends Fy{constructor(t){super("weekdays",t,XI,({weekday:n})=>[n])}}class ZYe extends Fy{constructor(t){super("weeks",t,tWe,({week:n,weekFromEnd:o})=>[n,-o])}}class KYe extends Fy{constructor(t){super("months",t,nWe,({month:n})=>[n])}}class JYe extends Fy{constructor(t){super("years",t,ou,({year:n})=>[n])}}class XYe{constructor(t,n){jn(this,"components"),this.type=t,this.components=this.normalizeComponents(n)}normalizeArrayConfig(t){const n=[];return t.forEach((o,i)=>{if(ou(o)){if(i===0)return;if(!EB(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!XI(o)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],o])}else Xc(o)&&n.push(...this.normalizeArrayConfig(o))}),n}normalizeComponents(t){const n=[];return t.forEach((o,i)=>{if(ou(o)){if(i===0)return;if(!EB(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!XI(o)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}n.push([t[0],o])}else Xc(o)&&n.push(...this.normalizeArrayConfig(o))}),n}passes(t){const{weekday:n,weekdayOrdinal:o,weekdayOrdinalFromEnd:i}=t;return this.components.some(([r,s])=>(r===o||r===-i)&&n===s)}}class QYe{constructor(t){jn(this,"type","function"),jn(this,"validated",!0),this.fn=t,pg(t)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(t){return this.validated?this.fn(t):!0}}class D5{constructor(t,n={},o){jn(this,"validated",!0),jn(this,"config"),jn(this,"type",Rv.Any),jn(this,"from"),jn(this,"until"),jn(this,"rules",[]),jn(this,"locale",new A5),this.parent=o,n.locale&&(this.locale=n.locale),this.config=t,pg(t)?(this.type=Rv.All,this.rules=[new QYe(t)]):Xc(t)?(this.type=Rv.Any,this.rules=t.map(i=>new D5(i,n,this))):kf(t)?(this.type=Rv.All,this.from=t.from?this.locale.getDateParts(t.from):o==null?void 0:o.from,this.until=t.until?this.locale.getDateParts(t.until):o==null?void 0:o.until,this.rules=this.getObjectRules(t)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(t){const n=[];if(t.every&&(Fu(t.every)&&(t.every=[1,`${t.every}s`]),Xc(t.every))){const[o=1,i=xne.Days]=t.every;n.push(new YYe(i,o,this.from))}return Object.values(One).forEach(o=>{o in t&&n.push(Fy.create(o,t[o]))}),Object.values(Lne).forEach(o=>{o in t&&n.push(new XYe(o,t[o]))}),t.on!=null&&(Xc(t.on)||(t.on=[t.on]),n.push(new D5(t.on,{locale:this.locale},this.parent))),n}passes(t){return this.validated?this.from&&t.dayIndex<=this.from.dayIndex||this.until&&t.dayIndex>=this.until.dayIndex?!1:this.type===Rv.Any?this.rules.some(n=>n.passes(t)):this.rules.every(n=>n.passes(t)):!0}}function eWe(e){return ou(e)?e>=1&&e<=31:!1}function XI(e){return ou(e)?e>=1&&e<=7:!1}function tWe(e){return ou(e)?e>=-6&&e<=-1||e>=1&&e<=6:!1}function nWe(e){return ou(e)?e>=1&&e<=12:!1}function EB(e){return!(!ou(e)||e<-5||e>5||e===0)}const oWe={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},sa=7,iWe=6,Mne=1e3,Nne=Mne*60,Rne=Nne*60,t4=Rne*24,rWe=[31,28,31,30,31,30,31,31,30,31,30,31],sWe=["L","iso"],u0={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},jne=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,aWe=/\[([^]*?)\]/gm,IB={D(e){return e.day},DD(e){return zi(e.day,2)},d(e){return e.weekday-1},dd(e){return zi(e.weekday-1,2)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return zi(e.month,2)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substr(2)},YYYY(e){return zi(e.year,4)},h(e){return e.hours%12||12},hh(e){return zi(e.hours%12||12,2)},H(e){return e.hours},HH(e){return zi(e.hours,2)},m(e){return e.minutes},mm(e){return zi(e.minutes,2)},s(e){return e.seconds},ss(e){return zi(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return zi(Math.round(e.milliseconds/10),2)},SSS(e){return zi(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${zi(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${zi(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${zi(Math.floor(Math.abs(t)/60),2)}:${zi(Math.abs(t)%60,2)}`}},im=/\d\d?/,lWe=/\d{3}/,cWe=/\d{4}/,Fb=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,PB=()=>{},AB=e=>(t,n,o)=>{const i=o[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(t.month=i)},Bi={D:[im,(e,t)=>{e.day=t}],Do:[new RegExp(im.source+Fb.source),(e,t)=>{e.day=parseInt(t,10)}],d:[im,PB],W:[Fb,PB],M:[im,(e,t)=>{e.month=t-1}],MMM:[Fb,AB("monthNamesShort")],MMMM:[Fb,AB("monthNames")],YY:[im,(e,t)=>{const o=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?o-1:o}${t}`}],YYYY:[cWe,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=t*100}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=t*10}],SSS:[lWe,(e,t)=>{e.milliseconds=t}],h:[im,(e,t)=>{e.hours=t}],m:[im,(e,t)=>{e.minutes=t}],s:[im,(e,t)=>{e.seconds=t}],a:[Fb,(e,t,n)=>{const o=t.toLowerCase();o===n.amPm[0]?e.isPm=!1:o===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const o=+n[1]*60+parseInt(n[2],10);e.timezoneOffset=n[0]==="+"?o:-o}}]};Bi.DD=Bi.D;Bi.dd=Bi.d;Bi.WWWW=Bi.WWW=Bi.WW=Bi.W;Bi.MM=Bi.M;Bi.mm=Bi.m;Bi.hh=Bi.H=Bi.HH=Bi.h;Bi.ss=Bi.s;Bi.A=Bi.a;Bi.ZZZZ=Bi.ZZZ=Bi.ZZ=Bi.Z;function Fne(e,t){return(sf(e)&&e||[Fu(e)&&e||"YYYY-MM-DD"]).map(n=>sWe.reduce((o,i)=>o.replace(i,t.masks[i]||""),n))}function yO(e){return kf(e)&&"year"in e&&"month"in e&&"day"in e}function DB(e,t=1){const n=e.getDay()+1,o=n>=t?t-n:-(7-(t-n));return Oa(e,o)}function zne(e,t,n){const o=Date.UTC(e,t-1,n);return bO(new Date(0),new Date(o))}function bO(e,t){return Math.round((t.getTime()-e.getTime())/t4)}function dWe(e,t){return Math.ceil(bO(DB(e),DB(t))/7)}function Une(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function uWe(e,t){return Une(e,t)*12+(t.getMonth()-e.getMonth())}function Bne(e,t=""){const n=new Date,{year:o=n.getFullYear(),month:i=n.getMonth()+1,day:r=n.getDate(),hours:s=0,minutes:a=0,seconds:l=0,milliseconds:d=0}=e;if(t){const u=`${zi(o,4)}-${zi(i,2)}-${zi(r,2)}T${zi(s,2)}:${zi(a,2)}:${zi(l,2)}.${zi(d,3)}`;return Hqe(u,{timeZone:t})}return new Date(o,i-1,r,s,a,l,d)}function hWe(e,t){let n=new Date(e.getTime());t.timezone&&(n=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),n.setMilliseconds(e.getMilliseconds()));const o=n.getMilliseconds(),i=n.getSeconds(),r=n.getMinutes(),s=n.getHours(),a=o+i*Mne+r*Nne+s*Rne,l=n.getMonth()+1,d=n.getFullYear(),u=t.getMonthParts(l,d),f=n.getDate(),p=u.numDays-f+1,v=n.getDay()+1,_=Math.floor((f-1)/7+1),k=Math.floor((u.numDays-f)/7+1),C=Math.ceil((f+Math.abs(u.firstWeekday-u.firstDayOfWeek))/7),$=u.numWeeks-C+1,E=u.weeknumbers[C],P=zne(d,l,f);return{milliseconds:o,seconds:i,minutes:r,hours:s,time:a,day:f,dayFromEnd:p,weekday:v,weekdayOrdinal:_,weekdayOrdinalFromEnd:k,week:C,weekFromEnd:$,weeknumber:E,month:l,year:d,date:n,dateTime:n.getTime(),dayIndex:P,timezoneOffset:0,isValid:!0}}function fWe(e,t,n){return`${t}-${e}-${n}`}function mWe(e,t,n){const o=t%4===0&&t%100!==0||t%400===0,i=new Date(t,e-1,1),r=i.getDay()+1,s=e===2&&o?29:rWe[e-1],a=n-1,l=nYe(i,{weekStartsOn:a}),d=[],u=[];for(let f=0;f<l;f++){const p=Oa(i,f*7);d.push(sYe(p,{weekStartsOn:a})),u.push(dYe(p))}return{firstDayOfWeek:n,firstDayOfMonth:i,inLeapYear:o,firstWeekday:r,numDays:s,numWeeks:l,month:e,year:t,weeknumbers:d,isoWeeknumbers:u}}function pWe(){const e=[];for(let i=0;i<sa;i++)e.push(Bne({year:2020,month:1,day:5+i,hours:12}));return e}function bS(e,t=void 0){const n=new Intl.DateTimeFormat(t,{weekday:e});return pWe().map(o=>n.format(o))}function gWe(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function vWe(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(e);return t.reduce((o,i)=>{const r=n.formatToParts(100,i);return o[i]=r[1].unit,o},{})}function Hne(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function xB(e,t=void 0){const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return Hne().map(o=>n.format(o))}function _We(e,t,n){return ou(t)?t===e:Xc(t)?t.includes(e):pg(t)?t(e,n):!(t.min!=null&&t.min>e||t.max!=null&&t.max<e||t.interval!=null&&e%t.interval!==0)}function h0(e,t,n){const o=[],[i,r,s]=t;for(let a=i;a<=r;a++)(n==null||_We(a,n,e))&&o.push({value:a,label:zi(a,s)});return o}function yWe(e,t){return{milliseconds:h0(e,u0.milliseconds,t.milliseconds),seconds:h0(e,u0.seconds,t.seconds),minutes:h0(e,u0.minutes,t.minutes),hours:h0(e,u0.hours,t.hours)}}function bWe(e,t,n,o){const r=h0(e,t,o).reduce((s,a)=>{if(a.disabled)return s;if(isNaN(s))return a.value;const l=Math.abs(s-n);return Math.abs(a.value-n)<l?a.value:s},NaN);return isNaN(r)?n:r}function kWe(e,t){const n={...e};return Object.entries(t).forEach(([o,i])=>{const r=u0[o],s=e[o];n[o]=bWe(e,r,s,i)}),n}function OB(e,t,n){return Fne(t,n).map(i=>{if(typeof i!="string")throw new Error("Invalid mask");let r=e;if(r.length>1e3)return!1;let s=!0;const a={};if(i.replace(jne,u=>{if(Bi[u]){const f=Bi[u],p=r.search(f[0]);~p?r.replace(f[0],v=>(f[1](a,v,n),r=r.substr(p+v.length),v)):s=!1}return Bi[u]?"":u.slice(1,u.length-1)}),!s)return!1;const l=new Date;a.hours!=null&&(a.isPm===!0&&+a.hours!=12?a.hours=+a.hours+12:a.isPm===!1&&+a.hours==12&&(a.hours=0));let d;return a.timezoneOffset!=null?(a.minutes=+(a.minutes||0)-+a.timezoneOffset,d=new Date(Date.UTC(a.year||l.getFullYear(),a.month||0,a.day||1,a.hours||0,a.minutes||0,a.seconds||0,a.milliseconds||0))):d=n.getDateFromParts({year:a.year||l.getFullYear(),month:(a.month||0)+1,day:a.day||1,hours:a.hours||0,minutes:a.minutes||0,seconds:a.seconds||0,milliseconds:a.milliseconds||0}),d}).find(i=>i)||new Date(e)}function wWe(e,t,n){if(e==null)return"";let o=Fne(t,n)[0];/Z$/.test(o)&&(n.timezone="utc");const i=[];o=o.replace(aWe,(s,a)=>(i.push(a),"??"));const r=n.getDateParts(e);return o=o.replace(jne,s=>s in IB?IB[s](r,n):s.slice(1,s.length-1)),o.replace(/\?\?/g,()=>i.shift())}let $We=0;class Vne{constructor(t,n,o){jn(this,"key",""),jn(this,"hashcode",""),jn(this,"highlight",null),jn(this,"content",null),jn(this,"dot",null),jn(this,"bar",null),jn(this,"event",null),jn(this,"popover",null),jn(this,"customData",null),jn(this,"ranges"),jn(this,"hasRanges",!1),jn(this,"order",0),jn(this,"pinPage",!1),jn(this,"maxRepeatSpan",0),jn(this,"locale");const{dates:i}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++$We),this.locale=o,n.normalizeGlyphs(this),this.ranges=o.ranges(i??[]),this.hasRanges=!!sf(this.ranges),this.maxRepeatSpan=this.ranges.filter(r=>r.hasRepeat).map(r=>r.daySpan).reduce((r,s)=>Math.max(r,s),0)}intersectsRange({start:t,end:n}){if(t==null||n==null)return!1;const o=this.ranges.filter(s=>!s.hasRepeat);for(const s of o)if(s.intersectsDayRange(t.dayIndex,n.dayIndex))return!0;const i=this.ranges.filter(s=>s.hasRepeat);if(!i.length)return!1;let r=t;for(this.maxRepeatSpan>1&&(r=this.locale.getDateParts(Oa(r.date,-this.maxRepeatSpan)));r.dayIndex<=n.dayIndex;){for(const s of i)if(s.startsOnDay(r))return!0;r=this.locale.getDateParts(Oa(r.date,1))}return!1}}function QI(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function N2(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function qne(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function Yne(e){const{visibility:t}=e,n=t==="click",o=t==="hover",i=t==="hover-focus",r=t==="focus";e.autoHide=!n;let s=!1,a=!1;const l=_=>{n&&(qne({...e,target:e.target||_.currentTarget}),_.stopPropagation())},d=_=>{s||(s=!0,(o||i)&&QI({...e,target:e.target||_.currentTarget}))},u=()=>{s&&(s=!1,(o||i&&!a)&&N2(e))},f=_=>{a||(a=!0,(r||i)&&QI({...e,target:e.target||_.currentTarget}))},p=_=>{a&&!X8(_.currentTarget,_.relatedTarget)&&(a=!1,(r||i&&!s)&&N2(e))},v={};switch(e.visibility){case"click":v.click=l;break;case"hover":v.mousemove=d,v.mouseleave=u;break;case"focus":v.focusin=f,v.focusout=p;break;case"hover-focus":v.mousemove=d,v.mouseleave=u,v.focusin=f,v.focusout=p;break}return v}const LB=e=>{const t=C5(e);if(t==null)return;const n=t.popoverHandlers;!n||!n.length||(n.forEach(o=>o()),delete t.popoverHandlers)},MB=(e,t)=>{const n=C5(e);if(n==null)return;const o=[],i=Yne(t);Object.entries(i).forEach(([r,s])=>{o.push(Pm(n,r,s))}),n.popoverHandlers=o},Wne={mounted(e,t){const{value:n}=t;n&&MB(e,n)},updated(e,t){const{oldValue:n,value:o}=t,i=n==null?void 0:n.visibility,r=o==null?void 0:o.visibility;i!==r&&(i&&(LB(e),r||N2(n)),r&&MB(e,o))},unmounted(e){LB(e)}},CWe=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:o,maxVerticalSwipeDistance:i})=>{if(!e||!e.addEventListener||!pg(t))return null;let r=0,s=0,a=null,l=!1;function d(f){const p=f.changedTouches[0];r=p.screenX,s=p.screenY,a=new Date().getTime(),l=!0}function u(f){if(!l||!a)return;l=!1;const p=f.changedTouches[0],v=p.screenX-r,_=p.screenY-s;if(new Date().getTime()-a<n&&Math.abs(v)>=o&&Math.abs(_)<=i){const C={toLeft:!1,toRight:!1};v<0?C.toLeft=!0:C.toRight=!0,t(C)}}return Pm(e,"touchstart",d,{passive:!0}),Pm(e,"touchend",u,{passive:!0}),()=>{Im(e,"touchstart",d),Im(e,"touchend",u)}},n4={},SWe=(e,t=10)=>{n4[e]=Date.now()+t},TWe=(e,t)=>{if(e in n4){const n=n4[e];if(Date.now()<n)return;delete n4[e]}t()};function Gne(){return typeof window<"u"}function EWe(e){return Gne()&&e in window}function IWe(e){const t=In(!1),n=dt(()=>t.value?"dark":"light");let o,i;function r(v){t.value=v.matches}function s(){EWe("matchMedia")&&(o=window.matchMedia("(prefers-color-scheme: dark)"),o.addEventListener("change",r),t.value=o.matches)}function a(){const{selector:v=":root",darkClass:_="dark"}=e.value,k=document.querySelector(v);t.value=k.classList.contains(_)}function l(v){const{selector:_=":root",darkClass:k="dark"}=v;if(Gne()&&_&&k){const C=document.querySelector(_);C&&(i=new MutationObserver(a),i.observe(C,{attributes:!0,attributeFilter:["class"]}),t.value=C.classList.contains(k))}}function d(){f();const v=typeof e.value;v==="string"&&e.value.toLowerCase()==="system"?s():v==="object"?l(e.value):t.value=!!e.value}const u=Co(()=>e.value,()=>d(),{immediate:!0});function f(){o&&(o.removeEventListener("change",r),o=void 0),i&&(i.disconnect(),i=void 0)}function p(){f(),u()}return cu(()=>p()),{isDark:t,displayMode:n,cleanup:p}}const PWe=["base","start","end","startEnd"],AWe=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],DWe={base:{},start:{},end:{}};function kO(e,t,n=DWe){let o=e,i={};t===!0||Fu(t)?(o=Fu(t)?t:o,i={...n}):kf(t)&&(mB(t,PWe)?i={...t}:i={base:{...t},start:{...t},end:{...t}});const r=M2(i,{start:i.startEnd,end:i.startEnd},n);return Object.entries(r).forEach(([s,a])=>{let l=o;a===!0||Fu(a)?(l=Fu(a)?a:l,r[s]={color:l}):kf(a)&&(mB(a,AWe)?r[s]={...a}:r[s]={}),M2(r[s],{color:l})}),r}class xWe{constructor(){jn(this,"type","highlight")}normalizeConfig(t,n){return kO(t,n,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(t){t.highlights=[],t.content||(t.content=[])}render({data:t,onStart:n,onEnd:o},i){const{key:r,highlight:s}=t;if(!s)return;const{highlights:a}=i,{base:l,start:d,end:u}=s;n&&o?a.push({...d,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]}):n?(a.push({...l,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${l.fillMode}`,l.class]}),a.push({...d,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})):o?(a.push({...l,key:`${r}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${l.fillMode}`,l.class]}),a.push({...u,key:r,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-bg-${u.fillMode}`,u.class],contentClass:[`vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,u.contentClass]})):a.push({...l,key:`${r}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]})}}class wO{constructor(t,n){jn(this,"type",""),jn(this,"collectionType",""),this.type=t,this.collectionType=n}normalizeConfig(t,n){return kO(t,n)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:n,onEnd:o},i){const{key:r}=t,s=t[this.type];if(!r||!s)return;const a=i[this.collectionType],{base:l,start:d,end:u}=s;n?a.push({...d,key:r,class:[`vc-${this.type} vc-${this.type}-start vc-${d.color} vc-attr`,d.class]}):o?a.push({...u,key:r,class:[`vc-${this.type} vc-${this.type}-end vc-${u.color} vc-attr`,u.class]}):a.push({...l,key:r,class:[`vc-${this.type} vc-${this.type}-base vc-${l.color} vc-attr`,l.class]})}}class OWe extends wO{constructor(){super("content","content")}normalizeConfig(t,n){return kO("base",n)}}class LWe extends wO{constructor(){super("dot","dots")}}class MWe extends wO{constructor(){super("bar","bars")}}class NWe{constructor(t){jn(this,"color"),jn(this,"renderers",[new OWe,new xWe,new LWe,new MWe]),this.color=t}normalizeGlyphs(t){this.renderers.forEach(n=>{const o=n.type;t[o]!=null&&(t[o]=n.normalizeConfig(this.color,t[o]))})}prepareRender(t={}){return this.renderers.forEach(n=>{n.prepareRender(t)}),t}render(t,n){this.renderers.forEach(o=>{o.render(t,n)})}}const Zne=Symbol("__vc_base_context__"),Kne={color:{type:String,default:()=>op("color")},isDark:{type:[Boolean,String,Object],default:()=>op("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function Jne(e){const t=dt(()=>e.color??""),n=dt(()=>e.isDark??!1),{displayMode:o}=IWe(n),i=dt(()=>new NWe(t.value)),r=dt(()=>{if(e.locale instanceof A5)return e.locale;const p=kf(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new A5(p,e.timezone)}),s=dt(()=>r.value.masks),a=dt(()=>e.minDate),l=dt(()=>e.maxDate),d=dt(()=>{const p=e.disabledDates?[...e.disabledDates]:[];return a.value!=null&&p.push({start:null,end:Oa(r.value.toDate(a.value),-1)}),l.value!=null&&p.push({start:Oa(r.value.toDate(l.value),1),end:null}),r.value.ranges(p)}),u=dt(()=>new Vne({key:"disabled",dates:d.value,order:100},i.value,r.value)),f={color:t,isDark:n,displayMode:o,theme:i,locale:r,masks:s,minDate:a,maxDate:l,disabledDates:d,disabledAttribute:u};return ic(Zne,f),f}function RWe(e){return ts(Zne,()=>Jne(e),!0)}function Xne(e){return`__vc_slot_${e}__`}function Qne(e,t={}){Object.keys(e).forEach(n=>{ic(Xne(t[n]??n),e[n])})}function eoe(e){return ts(Xne(e),null)}const jWe={...Kne,view:{type:String,default:"monthly",validator(e){return["daily","weekly","monthly"].includes(e)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>op("titlePosition")},navVisibility:{type:String,default:()=>op("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},FWe=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],toe=Symbol("__vc_calendar_context__");function zWe(e,{slots:t,emit:n}){const o=In(null),i=In(null),r=In(new Date().getDate()),s=In(!1),a=In(Symbol()),l=In(Symbol()),d=In(e.view),u=In([]),f=In("");let p=null,v=null;Qne(t);const{theme:_,color:k,displayMode:C,locale:$,masks:E,minDate:P,maxDate:I,disabledAttribute:O,disabledDates:L}=RWe(e),S=dt(()=>e.rows*e.columns),j=dt(()=>e.step||S.value),M=dt(()=>$ne(u.value)??null),q=dt(()=>Gv(u.value)??null),B=dt(()=>e.minPage||(P.value?ae(P.value):null)),V=dt(()=>e.maxPage||(I.value?ae(I.value):null)),G=dt(()=>e.navVisibility),Q=dt(()=>!!e.showWeeknumbers),X=dt(()=>!!e.showIsoWeeknumbers),Y=dt(()=>d.value==="monthly"),Z=dt(()=>d.value==="weekly"),se=dt(()=>d.value==="daily"),ce=()=>{s.value=!0,n("transition-start")},te=()=>{s.value=!1,n("transition-end"),p&&(p.resolve(!0),p=null)},ee=(kt,Ne,nt=d.value)=>Ane(kt,Ne,nt,$.value),ae=kt=>Pne(kt,d.value,$.value),de=kt=>{!O.value||!je.value||(kt.isDisabled=je.value.cellExists(O.value.key,kt.dayIndex))},$e=kt=>{kt.isFocusable=kt.inMonth&&kt.day===r.value},be=(kt,Ne)=>{for(const nt of kt)for(const It of nt.days)if(Ne(It)===!1)return},me=dt(()=>u.value.reduce((kt,Ne)=>(kt.push(...Ne.viewDays),kt),[])),fe=dt(()=>{const kt=[];return(e.attributes||[]).forEach((Ne,nt)=>{!Ne||!Ne.dates||kt.push(new Vne({...Ne,order:Ne.order||0},_.value,$.value))}),O.value&&kt.push(O.value),kt}),Ae=dt(()=>sf(fe.value)),je=dt(()=>{const kt=new kYe;return fe.value.forEach(Ne=>{Ne.ranges.forEach(nt=>{kt.render(Ne,nt,me.value)})}),kt}),Ye=dt(()=>me.value.reduce((kt,Ne)=>(kt[Ne.dayIndex]={day:Ne,cells:[]},kt[Ne.dayIndex].cells.push(...je.value.getCells(Ne)),kt),{})),_t=(kt,Ne)=>{const nt=e.showWeeknumbers||e.showIsoWeeknumbers;return nt==null?"":qBe(nt)?nt?"left":"":nt.startsWith("right")?Ne>1?"right":nt:kt>1?"left":nt},xt=()=>{var kt,Ne;if(!Ae.value)return null;const nt=fe.value.find(dn=>dn.pinPage)||fe.value[0];if(!nt||!nt.hasRanges)return null;const[It]=nt.ranges,Zt=((kt=It.start)==null?void 0:kt.date)||((Ne=It.end)==null?void 0:Ne.date);return Zt?ae(Zt):null},we=()=>{if(zu(M.value))return M.value;const kt=xt();return zu(kt)?kt:ae(new Date)},ve=(kt,Ne={})=>{const{view:nt=d.value,position:It=1,force:Zt}=Ne,dn=It>0?1-It:-(S.value+It);let Hn=ee(kt,dn,nt),Oo=ee(Hn,S.value-1,nt);return Zt||(KI(Hn,B.value)?Hn=B.value:P5(Oo,V.value)&&(Hn=ee(V.value,1-S.value)),Oo=ee(Hn,S.value-1)),{fromPage:Hn,toPage:Oo}},qe=(kt,Ne,nt="")=>{if(nt==="none"||nt==="fade")return nt;if((kt==null?void 0:kt.view)!==(Ne==null?void 0:Ne.view))return"fade";const It=P5(Ne,kt),Zt=KI(Ne,kt);return!It&&!Zt?"fade":nt==="slide-v"?Zt?"slide-down":"slide-up":Zt?"slide-right":"slide-left"},$t=(kt={})=>new Promise((Ne,nt)=>{const{position:It=1,force:Zt=!1,transition:dn}=kt,Hn=zu(kt.page)?kt.page:we(),{fromPage:Oo}=ve(Hn,{position:It,force:Zt}),tn=[];for(let Fo=0;Fo<S.value;Fo++){const Yr=ee(Oo,Fo),Lo=Fo+1,ji=Math.ceil(Lo/e.columns),On=e.rows-ji+1,Hi=Lo%e.columns||e.columns,Gn=e.columns-Hi+1,Ar=_t(Hi,Gn);tn.push($.value.getPage({...Yr,view:d.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:Lo,row:ji,rowFromEnd:On,column:Hi,columnFromEnd:Gn,showWeeknumbers:Q.value,showIsoWeeknumbers:X.value,weeknumberPosition:Ar}))}f.value=qe(u.value[0],tn[0],dn),u.value=tn,f.value&&f.value!=="none"?p={resolve:Ne,reject:nt}:Ne(!0)}),ut=kt=>{const Ne=M.value??ae(new Date);return ee(Ne,kt)},Ve=(kt,Ne={})=>{const nt=zu(kt)?kt:ae(kt);return Object.assign(Ne,ve(nt,{...Ne,force:!0})),_Ye(Ne.fromPage,Ne.toPage,d.value,$.value).map(Zt=>gYe(Zt,B.value,V.value)).some(Zt=>Zt)},tt=(kt,Ne={})=>Ve(ut(kt),Ne),ge=dt(()=>tt(-j.value)),ye=dt(()=>tt(j.value)),Te=async(kt,Ne={})=>!Ne.force&&!Ve(kt,Ne)?!1:(Ne.fromPage&&!vYe(Ne.fromPage,M.value)&&(N2({id:a.value,hideDelay:0}),Ne.view&&(SWe("view",10),d.value=Ne.view),await $t({...Ne,page:Ne.fromPage,position:1,force:!0}),n("did-move",u.value)),!0),gt=(kt,Ne={})=>Te(ut(kt),Ne),yt=()=>gt(-j.value),Xe=()=>gt(j.value),Ze=kt=>{const Ne=Y.value?".in-month":"",nt=`.id-${$.value.getDayId(kt)}${Ne}`,It=`${nt}.vc-focusable, ${nt} .vc-focusable`,Zt=o.value;if(Zt){const dn=Zt.querySelector(It);if(dn)return dn.focus(),!0}return!1},vt=async(kt,Ne={})=>Ze(kt)?!0:(await Te(kt,Ne),Ze(kt)),Ut=(kt,Ne)=>{r.value=kt.day,n("dayclick",kt,Ne)},Je=(kt,Ne)=>{n("daymouseenter",kt,Ne)},We=(kt,Ne)=>{n("daymouseleave",kt,Ne)},pt=(kt,Ne)=>{r.value=kt.day,i.value=kt,kt.isFocused=!0,n("dayfocusin",kt,Ne)},At=(kt,Ne)=>{i.value=null,kt.isFocused=!1,n("dayfocusout",kt,Ne)},Vt=(kt,Ne)=>{n("daykeydown",kt,Ne);const nt=kt.noonDate;let It=null;switch(Ne.key){case"ArrowLeft":{It=Oa(nt,-1);break}case"ArrowRight":{It=Oa(nt,1);break}case"ArrowUp":{It=Oa(nt,-7);break}case"ArrowDown":{It=Oa(nt,7);break}case"Home":{It=Oa(nt,-kt.weekdayPosition+1);break}case"End":{It=Oa(nt,kt.weekdayPositionFromEnd);break}case"PageUp":{Ne.altKey?It=CB(nt,-1):It=I5(nt,-1);break}case"PageDown":{Ne.altKey?It=CB(nt,1):It=I5(nt,1);break}}It&&(Ne.preventDefault(),vt(It).catch())},cn=kt=>{const Ne=i.value;Ne!=null&&Vt(Ne,kt)},fn=(kt,Ne)=>{n("weeknumberclick",kt,Ne)};$t({page:e.initialPage,position:e.initialPagePosition}),Ha(()=>{!e.disablePageSwipe&&o.value&&(v=CWe(o.value,({toLeft:kt=!1,toRight:Ne=!1})=>{kt?Xe():Ne&&yt()},op("touch")))}),cu(()=>{u.value=[],v&&v()}),Co(()=>$.value,()=>{$t()}),Co(()=>S.value,()=>$t()),Co(()=>e.view,()=>d.value=e.view),Co(()=>d.value,()=>{TWe("view",()=>{$t()}),n("update:view",d.value)}),Co(()=>r.value,()=>{be(u.value,kt=>$e(kt))}),o9(()=>{n("update:pages",u.value),be(u.value,kt=>{de(kt),$e(kt)})});const bn={emit:n,containerRef:o,focusedDay:i,inTransition:s,navPopoverId:a,dayPopoverId:l,view:d,pages:u,transitionName:f,theme:_,color:k,displayMode:C,locale:$,masks:E,attributes:fe,disabledAttribute:O,disabledDates:L,attributeContext:je,days:me,dayCells:Ye,count:S,step:j,firstPage:M,lastPage:q,canMovePrev:ge,canMoveNext:ye,minPage:B,maxPage:V,isMonthly:Y,isWeekly:Z,isDaily:se,navVisibility:G,showWeeknumbers:Q,showIsoWeeknumbers:X,getDateAddress:ae,canMove:Ve,canMoveBy:tt,move:Te,moveBy:gt,movePrev:yt,moveNext:Xe,onTransitionBeforeEnter:ce,onTransitionAfterEnter:te,tryFocusDate:Ze,focusDate:vt,onKeydown:cn,onDayKeydown:Vt,onDayClick:Ut,onDayMouseenter:Je,onDayMouseleave:We,onDayFocusin:pt,onDayFocusout:At,onWeeknumberClick:fn};return ic(toe,bn),bn}function vg(){const e=ts(toe);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const UWe=xo({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(e,{emit:t}){let n;const o=In();let i=null,r=null;const s=hc({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function a(te){te&&(s.direction=te.split("-")[0])}function l({placement:te,options:ee}){a(te||(ee==null?void 0:ee.placement))}const d=dt(()=>({placement:s.placement,strategy:s.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:l},...s.modifiers||[]],onFirstUpdate:l})),u=dt(()=>{const te=s.direction==="left"||s.direction==="right";let ee="";if(s.placement){const ae=s.placement.split("-");ae.length>1&&(ee=ae[1])}return["start","top","left"].includes(ee)?te?"top":"left":["end","bottom","right"].includes(ee)?te?"bottom":"right":te?"middle":"center"});function f(){r&&(r.destroy(),r=null)}function p(){fa(()=>{const te=C5(s.target);!te||!o.value||(r&&r.state.elements.reference!==te&&f(),r?r.update():r=p$(te,o.value,d.value))})}function v(te){Object.assign(s,Sne(te,"force"))}function _(te,ee){clearTimeout(n),te>0?n=setTimeout(ee,te):ee()}function k(te){return!te||!r?!1:C5(te)===r.state.elements.reference}async function C(te={}){s.force||(te.force&&(s.force=!0),_(te.showDelay??e.showDelay,()=>{s.isVisible&&(s.force=!1),v({...te,isVisible:!0}),p()}))}function $(te={}){r&&(te.target&&!k(te.target)||s.force||(te.force&&(s.force=!0),_(te.hideDelay??e.hideDelay,()=>{s.isVisible||(s.force=!1),s.isVisible=!1})))}function E(te={}){te.target!=null&&(s.isVisible&&k(te.target)?$(te):C(te))}function P(te){if(!r)return;const ee=r.state.elements.reference;if(!o.value||!ee)return;const ae=te.target;X8(o.value,ae)||X8(ee,ae)||$({force:!0})}function I(te){(te.key==="Esc"||te.key==="Escape")&&$()}function O({detail:te}){!te.id||te.id!==e.id||C(te)}function L({detail:te}){!te.id||te.id!==e.id||$(te)}function S({detail:te}){!te.id||te.id!==e.id||E(te)}function j(){Pm(document,"keydown",I),Pm(document,"click",P),Pm(document,"show-popover",O),Pm(document,"hide-popover",L),Pm(document,"toggle-popover",S)}function M(){Im(document,"keydown",I),Im(document,"click",P),Im(document,"show-popover",O),Im(document,"hide-popover",L),Im(document,"toggle-popover",S)}function q(te){t("before-show",te)}function B(te){s.force=!1,t("after-show",te)}function V(te){t("before-hide",te)}function G(te){s.force=!1,f(),t("after-hide",te)}function Q(te){te.stopPropagation()}function X(){s.isHovered=!0,s.isInteractive&&["hover","hover-focus"].includes(s.visibility)&&C()}function Y(){if(s.isHovered=!1,!r)return;const te=r.state.elements.reference;s.autoHide&&!s.isFocused&&(!te||te!==document.activeElement)&&["hover","hover-focus"].includes(s.visibility)&&$()}function Z(){s.isFocused=!0,s.isInteractive&&["focus","hover-focus"].includes(s.visibility)&&C()}function se(te){["focus","hover-focus"].includes(s.visibility)&&(!te.relatedTarget||!X8(o.value,te.relatedTarget))&&(s.isFocused=!1,!s.isHovered&&s.autoHide&&$())}function ce(){i!=null&&(i.disconnect(),i=null)}return Co(()=>o.value,te=>{ce(),te&&(i=new ResizeObserver(()=>{r&&r.update()}),i.observe(te))}),Co(()=>s.placement,a,{immediate:!0}),Ha(()=>{j()}),cu(()=>{f(),ce(),M()}),{...uD(s),popoverRef:o,alignment:u,hide:$,setupPopper:p,beforeEnter:q,afterEnter:B,beforeLeave:V,afterLeave:G,onClick:Q,onMouseOver:X,onMouseLeave:Y,onFocusIn:Z,onFocusOut:se}}}),vp=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n};function BWe(e,t,n,o,i,r){return h(),g("div",{class:J(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s)),onMouseover:t[1]||(t[1]=(...s)=>e.onMouseOver&&e.onMouseOver(...s)),onMouseleave:t[2]||(t[2]=(...s)=>e.onMouseLeave&&e.onMouseLeave(...s)),onFocusin:t[3]||(t[3]=(...s)=>e.onFocusIn&&e.onFocusIn(...s)),onFocusout:t[4]||(t[4]=(...s)=>e.onFocusOut&&e.onFocusOut(...s))},[b(nd,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:F(()=>[e.isVisible?(h(),g("div",Ur({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[Pt(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[z(m(e.data),1)]),c("span",{class:J(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):D("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const $O=vp(UWe,[["render",BWe]]),HWe={class:"vc-day-popover-row"},VWe={key:0,class:"vc-day-popover-row-indicator"},qWe={class:"vc-day-popover-row-label"},YWe=xo({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,n=dt(()=>{const{content:o,highlight:i,dot:r,bar:s,popover:a}=t.attribute;return a&&a.hideIndicator?null:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:i?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${i.base.color}`}:r?{class:`vc-dot vc-attr vc-${r.base.color}`}:s?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${s.base.color}`}:null});return(o,i)=>(h(),g("div",HWe,[Et(n)?(h(),g("div",VWe,[c("span",{class:J(Et(n).class)},null,2)])):D("",!0),c("div",qWe,[Pt(o.$slots,"default",{},()=>[z(m(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),WWe={inheritAttrs:!1},Hc=xo({...WWe,__name:"CalendarSlot",props:{name:null},setup(e){const n=eoe(e.name);return(o,i)=>Et(n)?(h(),W(Dl(Et(n)),hs(Ur({key:0},o.$attrs)),null,16)):Pt(o.$slots,"default",{key:1})}}),GWe={class:"vc-day-popover-container"},ZWe={key:0,class:"vc-day-popover-header"},KWe=xo({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:n,color:o,masks:i,locale:r}=vg();function s(l,d){return r.value.formatDate(l,d)}function a(l){return r.value.formatDate(l.date,i.value.dayPopover)}return(l,d)=>(h(),W($O,{id:Et(t),class:J([`vc-${Et(o)}`,`vc-${Et(n)}`])},{default:F(({data:{day:u,attributes:f},hide:p})=>[b(Hc,{name:"day-popover",day:u,"day-title":a(u),attributes:f,format:s,masks:Et(i),hide:p},{default:F(()=>[c("div",GWe,[Et(i).dayPopover?(h(),g("div",ZWe,m(a(u)),1)):D("",!0),(h(!0),g(pe,null,Me(f,v=>(h(),W(YWe,{key:v.key,attribute:v},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),JWe={},XWe={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},QWe=c("polyline",{points:"9 18 15 12 9 6"},null,-1),eGe=[QWe];function tGe(e,t){return h(),g("svg",XWe,eGe)}const nGe=vp(JWe,[["render",tGe]]),oGe={},iGe={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},rGe=c("polyline",{points:"15 18 9 12 15 6"},null,-1),sGe=[rGe];function aGe(e,t){return h(),g("svg",iGe,sGe)}const lGe=vp(oGe,[["render",aGe]]),cGe={},dGe={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},uGe=c("polyline",{points:"6 9 12 15 18 9"},null,-1),hGe=[uGe];function fGe(e,t){return h(),g("svg",dGe,hGe)}const mGe=vp(cGe,[["render",fGe]]),pGe={},gGe={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},vGe=c("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),_Ge=[vGe];function yGe(e,t){return h(),g("svg",gGe,_Ge)}const bGe=vp(pGe,[["render",yGe]]),kGe=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:mGe,IconChevronLeft:lGe,IconChevronRight:nGe,IconClock:bGe},Symbol.toStringTag,{value:"Module"})),Q_=xo({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(e){const t=e,n=dt(()=>t.width||t.size),o=dt(()=>t.height||t.size),i=dt(()=>kGe[`Icon${t.name}`]);return(r,s)=>(h(),W(Dl(Et(i)),{width:Et(n),height:Et(o),class:"vc-base-icon"},null,8,["width","height"]))}}),wGe=["disabled"],$Ge={key:1,class:"vc-title-wrapper"},CGe={type:"button",class:"vc-title"},SGe=["disabled"],noe=xo({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(e){const t=e,{navPopoverId:n,navVisibility:o,canMovePrev:i,movePrev:r,canMoveNext:s,moveNext:a}=vg(),l=dt(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),d=dt(()=>{const{page:k}=t;return{id:n.value,visibility:o.value,placement:l.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:k},isInteractive:!0}}),u=dt(()=>t.page.titlePosition.includes("left")),f=dt(()=>t.page.titlePosition.includes("right")),p=dt(()=>t.layout?t.layout:u.value?"tu-pn":f.value?"pn-tu":"p-tu-n;"),v=dt(()=>({prev:p.value.includes("p")&&!t.hideArrows,title:p.value.includes("t")&&!t.hideTitle,next:p.value.includes("n")&&!t.hideArrows})),_=dt(()=>({gridTemplateColumns:p.value.split("").map(C=>{switch(C){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(k,C)=>(h(),g("div",{class:J(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:Bn(Et(_))},[Et(v).prev?(h(),g("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!Et(i),onClick:C[0]||(C[0]=(...$)=>Et(r)&&Et(r)(...$)),onKeydown:C[1]||(C[1]=bs((...$)=>Et(r)&&Et(r)(...$),["space","enter"]))},[b(Hc,{name:"header-prev-button",disabled:!Et(i)},{default:F(()=>[b(Q_,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,wGe)):D("",!0),Et(v).title?(h(),g("div",$Ge,[b(Hc,{name:"header-title-wrapper"},{default:F(()=>[xe((h(),g("button",CGe,[b(Hc,{name:"header-title",title:e.page.title},{default:F(()=>[c("span",null,m(e.page.title),1)]),_:1},8,["title"])])),[[Et(Wne),Et(d)]])]),_:1})])):D("",!0),Et(v).next?(h(),g("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!Et(s),onClick:C[2]||(C[2]=(...$)=>Et(a)&&Et(a)(...$)),onKeydown:C[3]||(C[3]=bs((...$)=>Et(a)&&Et(a)(...$),["space","enter"]))},[b(Hc,{name:"header-next-button",disabled:!Et(s)},{default:F(()=>[b(Q_,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,SGe)):D("",!0)],6))}}),ooe=Symbol("__vc_page_context__");function TGe(e){const{locale:t,getDateAddress:n,canMove:o}=vg();function i(a,l){const{month:d,year:u}=n(new Date);return Hne().map((f,p)=>{const v=p+1;return{month:v,year:a,id:pYe(v,a),label:t.value.formatDate(f,l),ariaLabel:t.value.formatDate(f,"MMMM"),isActive:v===e.value.month&&a===e.value.year,isCurrent:v===d&&a===u,isDisabled:!o({month:v,year:a},{position:e.value.position})}})}function r(a,l){const{year:d}=n(new Date),{position:u}=e.value,f=[];for(let p=a;p<=l;p+=1){const v=[...Array(12).keys()].some(_=>o({month:_+1,year:p},{position:u}));f.push({year:p,id:p.toString(),label:p.toString(),ariaLabel:p.toString(),isActive:p===e.value.year,isCurrent:p===d,isDisabled:!v})}return f}const s={page:e,getMonthItems:i,getYearItems:r};return ic(ooe,s),s}function ioe(){const e=ts(ooe);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const EGe={class:"vc-nav-header"},IGe=["disabled"],PGe=["disabled"],AGe={class:"vc-nav-items"},DGe=["data-id","aria-label","disabled","onClick","onKeydown"],xGe=xo({__name:"CalendarNav",setup(e){const{masks:t,move:n}=vg(),{page:o,getMonthItems:i,getYearItems:r}=ioe(),s=In(!0),a=12,l=In(o.value.year),d=In(p(o.value.year)),u=In(null);function f(){setTimeout(()=>{if(u.value==null)return;const ae=u.value.querySelector(".vc-nav-item:not(:disabled)");ae&&ae.focus()},10)}function p(ae){return Math.floor(ae/a)}function v(){s.value=!s.value}function _(ae){return ae*a}function k(ae){return a*(ae+1)-1}function C(){Z.value&&(s.value&&E(),I())}function $(){se.value&&(s.value&&P(),O())}function E(){l.value--}function P(){l.value++}function I(){d.value--}function O(){d.value++}const L=dt(()=>i(l.value,t.value.navMonths).map(ae=>({...ae,click:()=>n({month:ae.month,year:ae.year},{position:o.value.position})}))),S=dt(()=>i(l.value-1,t.value.navMonths)),j=dt(()=>S.value.some(ae=>!ae.isDisabled)),M=dt(()=>i(l.value+1,t.value.navMonths)),q=dt(()=>M.value.some(ae=>!ae.isDisabled)),B=dt(()=>r(_(d.value),k(d.value)).map(ae=>({...ae,click:()=>{l.value=ae.year,s.value=!0,f()}}))),V=dt(()=>r(_(d.value-1),k(d.value-1))),G=dt(()=>V.value.some(ae=>!ae.isDisabled)),Q=dt(()=>r(_(d.value+1),k(d.value+1))),X=dt(()=>Q.value.some(ae=>!ae.isDisabled)),Y=dt(()=>s.value?L.value:B.value),Z=dt(()=>s.value?j.value:G.value),se=dt(()=>s.value?q.value:X.value),ce=dt(()=>$ne(B.value.map(ae=>ae.year))),te=dt(()=>Gv(B.value.map(ae=>ae.year))),ee=dt(()=>s.value?l.value:`${ce.value} - ${te.value}`);return o9(()=>{l.value=o.value.year,f()}),Co(()=>l.value,ae=>d.value=p(ae)),Ha(()=>f()),(ae,de)=>(h(),g("div",{class:"vc-nav-container",ref_key:"navContainer",ref:u},[c("div",EGe,[c("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!Et(Z),onClick:C,onKeydown:de[0]||(de[0]=$e=>Et(Nw)($e,C))},[b(Hc,{name:"nav-prev-button",move:C,disabled:!Et(Z)},{default:F(()=>[b(Q_,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,IGe),c("button",{type:"button",class:"vc-nav-title vc-focus",onClick:v,onKeydown:de[1]||(de[1]=$e=>Et(Nw)($e,v))},m(Et(ee)),33),c("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!Et(se),onClick:$,onKeydown:de[2]||(de[2]=$e=>Et(Nw)($e,$))},[b(Hc,{name:"nav-next-button",move:$,disabled:!Et(se)},{default:F(()=>[b(Q_,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,PGe)]),c("div",AGe,[(h(!0),g(pe,null,Me(Et(Y),$e=>(h(),g("button",{key:$e.label,type:"button","data-id":$e.id,"aria-label":$e.ariaLabel,class:J(["vc-nav-item vc-focus",[$e.isActive?"is-active":$e.isCurrent?"is-current":""]]),disabled:$e.isDisabled,onClick:$e.click,onKeydown:be=>Et(Nw)(be,$e.click)},m($e.label),43,DGe))),128))])],512))}}),roe=xo({__name:"CalendarPageProvider",props:{page:null},setup(e){return TGe(f_(e,"page")),(n,o)=>Pt(n.$slots,"default")}}),OGe=xo({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:n,displayMode:o}=vg();return(i,r)=>(h(),W($O,{id:Et(t),class:J(["vc-nav-popover-container",`vc-${Et(n)}`,`vc-${Et(o)}`])},{default:F(({data:s})=>[b(roe,{page:s.page},{default:F(()=>[b(Hc,{name:"nav"},{default:F(()=>[b(xGe)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),LGe=xo({directives:{popover:Wne},components:{CalendarSlot:Hc},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:n,attributeContext:o,dayPopoverId:i,onDayClick:r,onDayMouseenter:s,onDayMouseleave:a,onDayFocusin:l,onDayFocusout:d,onDayKeydown:u}=vg(),f=dt(()=>e.day),p=dt(()=>o.value.getCells(f.value)),v=dt(()=>p.value.map(X=>X.data)),_=dt(()=>({...f.value,attributes:v.value,attributeCells:p.value}));function k({data:X},{popovers:Y}){const{key:Z,customData:se,popover:ce}=X;if(!ce)return;const te=sB({key:Z,customData:se,attribute:X},{...ce},{visibility:ce.label?"hover":"click",placement:"bottom",isInteractive:!ce.label});Y.splice(0,0,te)}const C=dt(()=>{const X={...n.value.prepareRender({}),popovers:[]};return p.value.forEach(Y=>{n.value.render(Y,X),k(Y,X)}),X}),$=dt(()=>C.value.highlights),E=dt(()=>!!sf($.value)),P=dt(()=>C.value.content),I=dt(()=>C.value.dots),O=dt(()=>!!sf(I.value)),L=dt(()=>C.value.bars),S=dt(()=>!!sf(L.value)),j=dt(()=>C.value.popovers),M=dt(()=>j.value.map(X=>X.attribute)),q=eoe("day-content"),B=dt(()=>["vc-day",...f.value.classes,{"vc-day-box-center-center":!q},{"is-not-in-month":!e.day.inMonth}]),V=dt(()=>{let X;f.value.isFocusable?X="0":X="-1";const Y=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":f.value.isDisabled},g1(Gv($.value),"contentClass"),g1(Gv(P.value),"class")||""],Z={...g1(Gv($.value),"contentStyle"),...g1(Gv(P.value),"style")};return{class:Y,style:Z,tabindex:X,"aria-label":f.value.ariaLabel,"aria-disabled":!!f.value.isDisabled,role:"button"}}),G=dt(()=>({click(X){r(_.value,X)},mouseenter(X){s(_.value,X)},mouseleave(X){a(_.value,X)},focusin(X){l(_.value,X)},focusout(X){d(_.value,X)},keydown(X){u(_.value,X)}})),Q=dt(()=>sf(j.value)?sB({id:i.value,data:{day:f,attributes:M.value}},...j.value):null);return{attributes:v,attributeCells:p,bars:L,dayClasses:B,dayContentProps:V,dayContentEvents:G,dayPopover:Q,glyphs:C,dots:I,hasDots:O,hasBars:S,highlights:$,hasHighlights:E,locale:t,popovers:j}}}),MGe={key:0,class:"vc-highlights vc-day-layer"},NGe={key:1,class:"vc-day-layer vc-day-box-center-bottom"},RGe={class:"vc-dots"},jGe={key:2,class:"vc-day-layer vc-day-box-center-bottom"},FGe={class:"vc-bars"};function zGe(e,t,n,o,i,r){const s=y("CalendarSlot"),a=an("popover");return h(),g("div",{class:J(e.dayClasses)},[e.hasHighlights?(h(),g("div",MGe,[(h(!0),g(pe,null,Me(e.highlights,({key:l,wrapperClass:d,class:u,style:f})=>(h(),g("div",{key:l,class:J(d)},[c("div",{class:J(u),style:Bn(f)},null,6)],2))),128))])):D("",!0),b(s,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:F(()=>[xe((h(),g("div",Ur(e.dayContentProps,Yu(e.dayContentEvents,!0)),[z(m(e.day.label),1)],16)),[[a,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(h(),g("div",NGe,[c("div",RGe,[(h(!0),g(pe,null,Me(e.dots,({key:l,class:d,style:u})=>(h(),g("span",{key:l,class:J(d),style:Bn(u)},null,6))),128))])])):D("",!0),e.hasBars?(h(),g("div",jGe,[c("div",FGe,[(h(!0),g(pe,null,Me(e.bars,({key:l,class:d,style:u})=>(h(),g("span",{key:l,class:J(d),style:Bn(u)},null,6))),128))])])):D("",!0)],2)}const UGe=vp(LGe,[["render",zGe]]),BGe={class:"vc-weekdays"},HGe=["onClick"],VGe={inheritAttrs:!1},qGe=xo({...VGe,__name:"CalendarPage",setup(e){const{page:t}=ioe(),{onWeeknumberClick:n}=vg();return(o,i)=>(h(),g("div",{class:J(["vc-pane",`row-${Et(t).row}`,`row-from-end-${Et(t).rowFromEnd}`,`column-${Et(t).column}`,`column-from-end-${Et(t).columnFromEnd}`]),ref:"pane"},[b(noe,{page:Et(t),"is-lg":"","hide-arrows":""},null,8,["page"]),c("div",{class:J(["vc-weeks",{[`vc-show-weeknumbers-${Et(t).weeknumberPosition}`]:Et(t).weeknumberPosition}])},[c("div",BGe,[(h(!0),g(pe,null,Me(Et(t).weekdays,({weekday:r,label:s},a)=>(h(),g("div",{key:a,class:J(`vc-weekday vc-weekday-${r}`)},m(s),3))),128))]),(h(!0),g(pe,null,Me(Et(t).viewWeeks,r=>(h(),g("div",{key:`weeknumber-${r.weeknumber}`,class:"vc-week"},[Et(t).weeknumberPosition?(h(),g("div",{key:0,class:J(["vc-weeknumber",`is-${Et(t).weeknumberPosition}`])},[c("span",{class:J(["vc-weeknumber-content"]),onClick:s=>Et(n)(r,s)},m(r.weeknumberDisplay),9,HGe)],2)):D("",!0),(h(!0),g(pe,null,Me(r.days,s=>(h(),W(UGe,{key:s.id,day:s},null,8,["day"]))),128))]))),128))],2)],2))}}),YGe=xo({components:{CalendarHeader:noe,CalendarPage:qGe,CalendarNavPopover:OGe,CalendarDayPopover:KWe,CalendarPageProvider:roe,CalendarSlot:Hc},props:jWe,emit:FWe,setup(e,{emit:t,slots:n}){return zWe(e,{emit:t,slots:n})}}),WGe={class:"vc-pane-header-wrapper"};function GGe(e,t,n,o,i,r){const s=y("CalendarHeader"),a=y("CalendarPage"),l=y("CalendarSlot"),d=y("CalendarPageProvider"),u=y("CalendarDayPopover"),f=y("CalendarNavPopover");return h(),g(pe,null,[c("div",Ur({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},e.$attrs,{class:["vc-container",`vc-${e.view}`,`vc-${e.color}`,`vc-${e.displayMode}`,{"vc-expanded":e.expanded,"vc-bordered":!e.borderless,"vc-transparent":e.transparent}],onMouseup:t[0]||(t[0]=Gt(()=>{},["prevent"])),ref:"containerRef"}),[c("div",{class:J(["vc-pane-container",{"in-transition":e.inTransition}])},[c("div",WGe,[e.firstPage?(h(),W(s,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):D("",!0)]),b(nd,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:F(()=>[(h(),g("div",{key:e.pages[0].id,class:"vc-pane-layout",style:Bn({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(h(!0),g(pe,null,Me(e.pages,p=>(h(),W(d,{key:p.id,page:p},{default:F(()=>[b(l,{name:"page",page:p},{default:F(()=>[b(a)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),b(l,{name:"footer"})],2)],16),b(u),b(f)],64)}const ZGe=vp(YGe,[["render",GGe]]),soe=Symbol("__vc_date_picker_context__"),KGe={...Kne,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>op("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>op("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},JGe=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function XGe(e,{emit:t,slots:n}){Qne(n,{footer:"dp-footer"});const o=Jne(e),{locale:i,masks:r,disabledAttribute:s}=o,a=In(!1),l=In(Symbol()),d=In(null),u=In(null),f=In(["",""]),p=In(null),v=In(null);let _,k,C=!0;const $=dt(()=>e.isRange||e.modelModifiers.range===!0),E=dt(()=>$.value&&d.value!=null?d.value.start:null),P=dt(()=>$.value&&d.value!=null?d.value.end:null),I=dt(()=>e.mode.toLowerCase()==="date"),O=dt(()=>e.mode.toLowerCase()==="datetime"),L=dt(()=>e.mode.toLowerCase()==="time"),S=dt(()=>!!u.value),j=dt(()=>{let Ne="date";e.modelModifiers.number&&(Ne="number"),e.modelModifiers.string&&(Ne="string");const nt=r.value.modelValue||"iso";return de({type:Ne,mask:nt})}),M=dt(()=>tt(u.value??d.value)),q=dt(()=>L.value?e.is24hr?r.value.inputTime24hr:r.value.inputTime:O.value?e.is24hr?r.value.inputDateTime24hr:r.value.inputDateTime:r.value.input),B=dt(()=>/[Hh]/g.test(q.value)),V=dt(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(q.value)),G=dt(()=>{if(B.value&&V.value)return"dateTime";if(V.value)return"date";if(B.value)return"time"}),Q=dt(()=>{var Ne;const nt=((Ne=p.value)==null?void 0:Ne.$el.previousElementSibling)??void 0;return M2({},e.popover,op("datePicker.popover"),{target:nt})}),X=dt(()=>Yne({...Q.value,id:l.value})),Y=dt(()=>$.value?{start:f.value[0],end:f.value[1]}:f.value[0]),Z=dt(()=>{const Ne=["start","end"].map(nt=>({input:$t(nt),change:ut(nt),keyup:Ve,...e.popover&&X.value}));return $.value?{start:Ne[0],end:Ne[1]}:Ne[0]}),se=dt(()=>{if(!fe(d.value))return null;const Ne={key:"select-drag",...e.selectAttribute,dates:d.value,pinPage:!0},{dot:nt,bar:It,highlight:Zt,content:dn}=Ne;return!nt&&!It&&!Zt&&!dn&&(Ne.highlight=!0),Ne}),ce=dt(()=>{if(!$.value||!fe(u.value))return null;const Ne={key:"select-drag",...e.dragAttribute,dates:u.value},{dot:nt,bar:It,highlight:Zt,content:dn}=Ne;return!nt&&!It&&!Zt&&!dn&&(Ne.highlight={startEnd:{fillMode:"outline"}}),Ne}),te=dt(()=>{const Ne=Xc(e.attributes)?[...e.attributes]:[];return ce.value?Ne.unshift(ce.value):se.value&&Ne.unshift(se.value),Ne}),ee=dt(()=>de(e.rules==="auto"?ae():e.rules??{}));function ae(){const Ne={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},nt=I.value?0:e.timeAccuracy;return[0,1].map(It=>{switch(nt){case 0:return{hours:Ne.hr[It],minutes:Ne.min[It],seconds:Ne.sec[It],milliseconds:Ne.ms[It]};case 1:return{minutes:Ne.min[It],seconds:Ne.sec[It],milliseconds:Ne.ms[It]};case 3:return{milliseconds:Ne.ms[It]};case 4:return{};default:return{seconds:Ne.sec[It],milliseconds:Ne.ms[It]}}})}function de(Ne){return Xc(Ne)?Ne.length===1?[Ne[0],Ne[0]]:Ne:[Ne,Ne]}function $e(Ne){return de(Ne).map((nt,It)=>({...nt,rules:ee.value[It]}))}function be(Ne){return Ne==null?!1:ou(Ne)?!isNaN(Ne):__(Ne)?!isNaN(Ne.getTime()):Fu(Ne)?Ne!=="":yO(Ne)}function me(Ne){return kf(Ne)&&"start"in Ne&&"end"in Ne&&be(Ne.start??null)&&be(Ne.end??null)}function fe(Ne){return me(Ne)||be(Ne)}function Ae(Ne,nt){if(Ne==null&&nt==null)return!0;if(Ne==null||nt==null)return!1;const It=__(Ne),Zt=__(nt);return It&&Zt?Ne.getTime()===nt.getTime():It||Zt?!1:Ae(Ne.start,nt.start)&&Ae(Ne.end,nt.end)}function je(Ne){return!fe(Ne)||!s.value?!1:s.value.intersectsRange(i.value.range(Ne))}function Ye(Ne,nt,It,Zt){if(!fe(Ne))return null;if(me(Ne)){const dn=i.value.toDate(Ne.start,{...nt[0],fillDate:E.value??void 0,patch:It}),Hn=i.value.toDate(Ne.end,{...nt[1],fillDate:P.value??void 0,patch:It});return At({start:dn,end:Hn},Zt)}return i.value.toDateOrNull(Ne,{...nt[0],fillDate:d.value,patch:It})}function _t(Ne,nt){return me(Ne)?{start:i.value.fromDate(Ne.start,nt[0]),end:i.value.fromDate(Ne.end,nt[1])}:$.value?null:i.value.fromDate(Ne,nt[0])}function xt(Ne,nt={}){return clearTimeout(_),new Promise(It=>{const{debounce:Zt=0,...dn}=nt;Zt>0?_=window.setTimeout(()=>{It(we(Ne,dn))},Zt):It(we(Ne,dn))})}function we(Ne,{config:nt=j.value,patch:It="dateTime",clearIfEqual:Zt=!1,formatInput:dn=!0,hidePopover:Hn=!1,dragging:Oo=S.value,targetPriority:tn,moveToValue:Fo=!1}={}){const Yr=$e(nt);let Lo=Ye(Ne,Yr,It,tn);if(je(Lo)){if(Oo)return null;Lo=d.value,Hn=!1}else Lo==null&&e.isRequired?Lo=d.value:Lo!=null&&Ae(d.value,Lo)&&Zt&&(Lo=null);const On=Oo?u:d,Hi=!Ae(On.value,Lo);On.value=Lo,Oo||(u.value=null);const Gn=_t(Lo,j.value);return Hi&&(C=!1,t(Oo?"drag":"update:modelValue",Gn),fa(()=>C=!0)),Hn&&!Oo&&We(),dn&&ve(),Fo&&fa(()=>fn(tn??"start")),Gn}function ve(){fa(()=>{const Ne=$e({type:"string",mask:q.value}),nt=_t(u.value??d.value,Ne);$.value?f.value=[nt&&nt.start,nt&&nt.end]:f.value=[nt,""]})}function qe(Ne,nt,It){f.value.splice(nt==="start"?0:1,1,Ne);const Zt=$.value?{start:f.value[0],end:f.value[1]||f.value[0]}:Ne,dn={type:"string",mask:q.value};xt(Zt,{...It,config:dn,patch:G.value,targetPriority:nt,moveToValue:!0})}function $t(Ne){return nt=>{e.updateOnInput&&qe(nt.currentTarget.value,Ne,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function ut(Ne){return nt=>{qe(nt.currentTarget.value,Ne,{formatInput:!0,hidePopover:!1})}}function Ve(Ne){Ne.key==="Escape"&&xt(d.value,{formatInput:!0,hidePopover:!0})}function tt(Ne){return $.value?[Ne&&Ne.start?i.value.getDateParts(Ne.start):null,Ne&&Ne.end?i.value.getDateParts(Ne.end):null]:[Ne?i.value.getDateParts(Ne):null]}function ge(){u.value=null,ve()}function ye(Ne){t("popover-will-show",Ne)}function Te(Ne){t("popover-did-show",Ne)}function gt(Ne){ge(),t("popover-will-hide",Ne)}function yt(Ne){t("popover-did-hide",Ne)}function Xe(Ne){const nt={patch:"date",formatInput:!0,hidePopover:!0};if($.value){const It=!S.value;It?k={start:Ne.startDate,end:Ne.endDate}:k!=null&&(k.end=Ne.date),xt(k,{...nt,dragging:It})}else xt(Ne.date,{...nt,clearIfEqual:!e.isRequired})}function Ze(Ne,nt){Xe(Ne),t("dayclick",Ne,nt)}function vt(Ne,nt){switch(nt.key){case" ":case"Enter":{Xe(Ne),nt.preventDefault();break}case"Escape":We()}t("daykeydown",Ne,nt)}function Ut(Ne,nt){!S.value||k==null||(k.end=Ne.date,xt(At(k),{patch:"date",formatInput:!0}))}function Je(Ne={}){QI({...Q.value,...Ne,isInteractive:!0,id:l.value})}function We(Ne={}){N2({hideDelay:10,force:!0,...Q.value,...Ne,id:l.value})}function pt(Ne){qne({...Q.value,...Ne,isInteractive:!0,id:l.value})}function At(Ne,nt){const{start:It,end:Zt}=Ne;if(It>Zt)switch(nt){case"start":return{start:It,end:It};case"end":return{start:Zt,end:Zt};default:return{start:Zt,end:It}}return{start:It,end:Zt}}async function Vt(Ne,nt={}){return v.value==null?!1:v.value.move(Ne,nt)}async function cn(Ne,nt={}){return v.value==null?!1:v.value.moveBy(Ne,nt)}async function fn(Ne,nt={}){const It=d.value;if(v.value==null||!fe(It))return!1;const Zt=Ne!=="end",dn=Zt?1:-1,Hn=me(It)?Zt?It.start:It.end:It,Oo=Pne(Hn,"monthly",i.value);return v.value.move(Oo,{position:dn,...nt})}Co(()=>e.isRange,Ne=>{Ne&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),Co(()=>$.value,()=>{we(null,{formatInput:!0})}),Co(()=>q.value,()=>ve()),Co(()=>e.modelValue,Ne=>{C&&we(Ne,{formatInput:!0,hidePopover:!1})}),Co(()=>ee.value,()=>{kf(e.rules)&&we(e.modelValue,{formatInput:!0,hidePopover:!1})}),Co(()=>e.timezone,()=>{we(d.value,{formatInput:!0})});const bn=de(j.value);d.value=Ye(e.modelValue??null,bn,"dateTime"),Ha(()=>{we(e.modelValue,{formatInput:!0,hidePopover:!1})}),fa(()=>a.value=!0);const kt={...o,showCalendar:a,datePickerPopoverId:l,popoverRef:p,popoverEvents:X,calendarRef:v,isRange:$,isTimeMode:L,isDateTimeMode:O,is24hr:f_(e,"is24hr"),hideTimeHeader:f_(e,"hideTimeHeader"),timeAccuracy:f_(e,"timeAccuracy"),isDragging:S,inputValue:Y,inputEvents:Z,dateParts:M,attributes:te,rules:ee,move:Vt,moveBy:cn,moveToValue:fn,updateValue:xt,showPopover:Je,hidePopover:We,togglePopover:pt,onDayClick:Ze,onDayKeydown:vt,onDayMouseEnter:Ut,onPopoverBeforeShow:ye,onPopoverAfterShow:Te,onPopoverBeforeHide:gt,onPopoverAfterHide:yt};return ic(soe,kt),kt}function CO(){const e=ts(soe);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const QGe=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],eZe=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function tZe(e){const t=CO(),{locale:n,isRange:o,isTimeMode:i,dateParts:r,rules:s,is24hr:a,hideTimeHeader:l,timeAccuracy:d,updateValue:u}=t;function f(V){V=Object.assign(v.value,V);let G=null;if(o.value){const Q=p.value?V:r.value[0],X=p.value?r.value[1]:V;G={start:Q,end:X}}else G=V;u(G,{patch:"time",targetPriority:p.value?"start":"end",moveToValue:!0})}const p=dt(()=>e.position===0),v=dt(()=>r.value[e.position]||{isValid:!1}),_=dt(()=>yO(v.value)),k=dt(()=>!!v.value.isValid),C=dt(()=>!l.value&&k.value),$=dt(()=>{if(!_.value)return null;let V=n.value.toDate(v.value);return v.value.hours===24&&(V=new Date(V.getTime()-1)),V}),E=dt({get(){return v.value.hours},set(V){f({hours:V})}}),P=dt({get(){return v.value.minutes},set(V){f({minutes:V})}}),I=dt({get(){return v.value.seconds},set(V){f({seconds:V})}}),O=dt({get(){return v.value.milliseconds},set(V){f({milliseconds:V})}}),L=dt({get(){return v.value.hours<12},set(V){V=String(V).toLowerCase()=="true";let G=E.value;V&&G>=12?G-=12:!V&&G<12&&(G+=12),f({hours:G})}}),S=dt(()=>yWe(v.value,s.value[e.position])),j=dt(()=>QGe.filter(V=>S.value.hours.some(G=>G.value===V.value))),M=dt(()=>eZe.filter(V=>S.value.hours.some(G=>G.value===V.value))),q=dt(()=>a.value?S.value.hours:L.value?j.value:M.value),B=dt(()=>{const V=[];return sf(j.value)&&V.push({value:!0,label:"AM"}),sf(M.value)&&V.push({value:!1,label:"PM"}),V});return{...t,showHeader:C,timeAccuracy:d,parts:v,isValid:k,date:$,hours:E,minutes:P,seconds:I,milliseconds:O,options:S,hourOptions:q,isAM:L,isAMOptions:B,is24hr:a}}const nZe=["value"],oZe=["value","disabled"],iZe={key:1,class:"vc-base-sizer","aria-hidden":"true"},rZe={inheritAttrs:!1},zb=xo({...rZe,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,n=dt(()=>{const o=t.options.find(i=>i.value===t.modelValue);return o==null?void 0:o.label});return(o,i)=>(h(),g("div",{class:J(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[c("select",Ur(o.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:i[0]||(i[0]=r=>o.$emit("update:modelValue",r.target.value))}),[(h(!0),g(pe,null,Me(e.options,r=>(h(),g("option",{key:r.value,value:r.value,disabled:r.disabled},m(r.label),9,oZe))),128))],16,nZe),e.showIcon?(h(),W(Q_,{key:0,name:"ChevronDown",size:"18"})):D("",!0),e.fitContent?(h(),g("div",iZe,m(Et(n)),1)):D("",!0)],2))}}),sZe={key:0,class:"vc-time-header"},aZe={class:"vc-time-weekday"},lZe={class:"vc-time-month"},cZe={class:"vc-time-day"},dZe={class:"vc-time-year"},uZe={class:"vc-time-select-group"},hZe=c("span",{class:"vc-time-colon"},":",-1),fZe=c("span",{class:"vc-time-colon"},":",-1),mZe=c("span",{class:"vc-time-decimal"},".",-1),NB=xo({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const o=tZe(e);t(o);const{locale:i,isValid:r,date:s,hours:a,minutes:l,seconds:d,milliseconds:u,options:f,hourOptions:p,isTimeMode:v,isAM:_,isAMOptions:k,is24hr:C,showHeader:$,timeAccuracy:E}=o;return(P,I)=>(h(),g("div",{class:J(["vc-time-picker",[{"vc-invalid":!Et(r),"vc-attached":!Et(v)}]])},[b(Hc,{name:"time-header"},{default:F(()=>[Et($)&&Et(s)?(h(),g("div",sZe,[c("span",aZe,m(Et(i).formatDate(Et(s),"WWW")),1),c("span",lZe,m(Et(i).formatDate(Et(s),"MMM")),1),c("span",cZe,m(Et(i).formatDate(Et(s),"D")),1),c("span",dZe,m(Et(i).formatDate(Et(s),"YYYY")),1)])):D("",!0)]),_:1}),c("div",uZe,[b(Q_,{name:"Clock",size:"17"}),b(zb,{modelValue:Et(a),"onUpdate:modelValue":I[0]||(I[0]=O=>Oi(a)?a.value=O:null),modelModifiers:{number:!0},options:Et(p),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),Et(E)>1?(h(),g(pe,{key:0},[hZe,b(zb,{modelValue:Et(l),"onUpdate:modelValue":I[1]||(I[1]=O=>Oi(l)?l.value=O:null),modelModifiers:{number:!0},options:Et(f).minutes,class:"vc-time-select-minutes","align-left":Et(E)===2},null,8,["modelValue","options","align-left"])],64)):D("",!0),Et(E)>2?(h(),g(pe,{key:1},[fZe,b(zb,{modelValue:Et(d),"onUpdate:modelValue":I[2]||(I[2]=O=>Oi(d)?d.value=O:null),modelModifiers:{number:!0},options:Et(f).seconds,class:"vc-time-select-seconds","align-left":Et(E)===3},null,8,["modelValue","options","align-left"])],64)):D("",!0),Et(E)>3?(h(),g(pe,{key:2},[mZe,b(zb,{modelValue:Et(u),"onUpdate:modelValue":I[3]||(I[3]=O=>Oi(u)?u.value=O:null),modelModifiers:{number:!0},options:Et(f).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):D("",!0),Et(C)?D("",!0):(h(),W(zb,{key:3,modelValue:Et(_),"onUpdate:modelValue":I[4]||(I[4]=O=>Oi(_)?_.value=O:null),options:Et(k)},null,8,["modelValue","options"]))])],2))}}),aoe=xo({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:n,color:o,displayMode:i,isDateTimeMode:r,isTimeMode:s,isRange:a,onDayClick:l,onDayMouseEnter:d,onDayKeydown:u}=CO(),f=a.value?[0,1]:[0];return(p,v)=>Et(s)?(h(),g("div",{key:0,class:J(`vc-container vc-bordered vc-${Et(o)} vc-${Et(i)}`)},[(h(!0),g(pe,null,Me(Et(f),_=>(h(),W(NB,{key:_,position:_},null,8,["position"]))),128))],2)):(h(),W(ZGe,{key:1,attributes:Et(t),ref_key:"calendarRef",ref:n,onDayclick:Et(l),onDaymouseenter:Et(d),onDaykeydown:Et(u)},{footer:F(()=>[Et(r)?(h(!0),g(pe,{key:0},Me(Et(f),_=>(h(),W(NB,{key:_,position:_},null,8,["position"]))),128)):D("",!0),b(Hc,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),pZe={inheritAttrs:!1},gZe=xo({...pZe,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:n,displayMode:o,popoverRef:i,onPopoverBeforeShow:r,onPopoverAfterShow:s,onPopoverBeforeHide:a,onPopoverAfterHide:l}=CO();return(d,u)=>(h(),W($O,{id:Et(t),placement:"bottom-start",class:J(`vc-date-picker-content vc-${Et(n)} vc-${Et(o)}`),ref_key:"popoverRef",ref:i,onBeforeShow:Et(r),onAfterShow:Et(s),onBeforeHide:Et(a),onAfterHide:Et(l)},{default:F(()=>[b(aoe,hs(Ws(d.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),vZe=xo({inheritAttrs:!1,emits:JGe,props:KGe,components:{DatePickerBase:aoe,DatePickerPopover:gZe},setup(e,t){const n=XGe(e,t),o=hc(Sne(n,"calendarRef","popoverRef"));return{...n,slotCtx:o}}});function _Ze(e,t,n,o,i,r){const s=y("DatePickerPopover"),a=y("DatePickerBase");return e.$slots.default?(h(),g(pe,{key:0},[Pt(e.$slots,"default",hs(Ws(e.slotCtx))),b(s,hs(Ws(e.$attrs)),null,16)],64)):(h(),W(a,hs(Ur({key:1},e.$attrs)),null,16))}const yZe=vp(vZe,[["render",_Ze]]),bZe=["top","right","bottom","left"],RB=["start","end"],jB=bZe.reduce((e,t)=>e.concat(t,t+"-"+RB[0],t+"-"+RB[1]),[]),R2=Math.min,o1=Math.max,kZe={left:"right",right:"left",bottom:"top",top:"bottom"},wZe={start:"end",end:"start"};function eP(e,t,n){return o1(e,R2(t,n))}function _g(e,t){return typeof e=="function"?e(t):e}function rh(e){return e.split("-")[0]}function Kd(e){return e.split("-")[1]}function loe(e){return e==="x"?"y":"x"}function SO(e){return e==="y"?"height":"width"}function X1(e){return["top","bottom"].includes(rh(e))?"y":"x"}function TO(e){return loe(X1(e))}function coe(e,t,n){n===void 0&&(n=!1);const o=Kd(e),i=TO(e),r=SO(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=O5(s)),[s,O5(s)]}function $Ze(e){const t=O5(e);return[x5(e),t,x5(t)]}function x5(e){return e.replace(/start|end/g,t=>wZe[t])}function CZe(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function SZe(e,t,n,o){const i=Kd(e);let r=CZe(rh(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(x5)))),r}function O5(e){return e.replace(/left|right|bottom|top/g,t=>kZe[t])}function TZe(e){return{top:0,right:0,bottom:0,left:0,...e}}function doe(e){return typeof e!="number"?TZe(e):{top:e,right:e,bottom:e,left:e}}function j0(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function FB(e,t,n){let{reference:o,floating:i}=e;const r=X1(t),s=TO(t),a=SO(s),l=rh(t),d=r==="y",u=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[a]/2-i[a]/2;let v;switch(l){case"top":v={x:u,y:o.y-i.height};break;case"bottom":v={x:u,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:f};break;case"left":v={x:o.x-i.width,y:f};break;default:v={x:o.x,y:o.y}}switch(Kd(t)){case"start":v[s]-=p*(n&&d?-1:1);break;case"end":v[s]+=p*(n&&d?-1:1);break}return v}const EZe=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:f}=FB(d,o,l),p=o,v={},_=0;for(let k=0;k<a.length;k++){const{name:C,fn:$}=a[k],{x:E,y:P,data:I,reset:O}=await $({x:u,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:v,rects:d,platform:s,elements:{reference:e,floating:t}});u=E??u,f=P??f,v={...v,[C]:{...v[C],...I}},O&&_<=50&&(_++,typeof O=="object"&&(O.placement&&(p=O.placement),O.rects&&(d=O.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:u,y:f}=FB(d,p,l)),k=-1)}return{x:u,y:f,placement:p,strategy:i,middlewareData:v}};async function G9(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:v=0}=_g(t,e),_=doe(v),C=a[p?f==="floating"?"reference":"floating":f],$=j0(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(C)))==null||n?C:C.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:d,rootBoundary:u,strategy:l})),E=f==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,P=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),I=await(r.isElement==null?void 0:r.isElement(P))?await(r.getScale==null?void 0:r.getScale(P))||{x:1,y:1}:{x:1,y:1},O=j0(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:P,strategy:l}):E);return{top:($.top-O.top+_.top)/I.y,bottom:(O.bottom-$.bottom+_.bottom)/I.y,left:($.left-O.left+_.left)/I.x,right:(O.right-$.right+_.right)/I.x}}const IZe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:l}=t,{element:d,padding:u=0}=_g(e,t)||{};if(d==null)return{};const f=doe(u),p={x:n,y:o},v=TO(i),_=SO(v),k=await s.getDimensions(d),C=v==="y",$=C?"top":"left",E=C?"bottom":"right",P=C?"clientHeight":"clientWidth",I=r.reference[_]+r.reference[v]-p[v]-r.floating[_],O=p[v]-r.reference[v],L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let S=L?L[P]:0;(!S||!await(s.isElement==null?void 0:s.isElement(L)))&&(S=a.floating[P]||r.floating[_]);const j=I/2-O/2,M=S/2-k[_]/2-1,q=R2(f[$],M),B=R2(f[E],M),V=q,G=S-k[_]-B,Q=S/2-k[_]/2+j,X=eP(V,Q,G),Y=!l.arrow&&Kd(i)!=null&&Q!==X&&r.reference[_]/2-(Q<V?q:B)-k[_]/2<0,Z=Y?Q<V?Q-V:Q-G:0;return{[v]:p[v]+Z,data:{[v]:X,centerOffset:Q-X-Z,...Y&&{alignmentOffset:Z}},reset:Y}}});function PZe(e,t,n){return(e?[...n.filter(i=>Kd(i)===e),...n.filter(i=>Kd(i)!==e)]:n.filter(i=>rh(i)===i)).filter(i=>e?Kd(i)===e||(t?x5(i)!==i:!1):!0)}const AZe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i;const{rects:r,middlewareData:s,placement:a,platform:l,elements:d}=t,{crossAxis:u=!1,alignment:f,allowedPlacements:p=jB,autoAlignment:v=!0,..._}=_g(e,t),k=f!==void 0||p===jB?PZe(f||null,v,p):p,C=await G9(t,_),$=((n=s.autoPlacement)==null?void 0:n.index)||0,E=k[$];if(E==null)return{};const P=coe(E,r,await(l.isRTL==null?void 0:l.isRTL(d.floating)));if(a!==E)return{reset:{placement:k[0]}};const I=[C[rh(E)],C[P[0]],C[P[1]]],O=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:E,overflows:I}],L=k[$+1];if(L)return{data:{index:$+1,overflows:O},reset:{placement:L}};const S=O.map(q=>{const B=Kd(q.placement);return[q.placement,B&&u?q.overflows.slice(0,2).reduce((V,G)=>V+G,0):q.overflows[0],q.overflows]}).sort((q,B)=>q[1]-B[1]),M=((i=S.filter(q=>q[2].slice(0,Kd(q[0])?2:3).every(B=>B<=0))[0])==null?void 0:i[0])||S[0][0];return M!==a?{data:{index:$+1,overflows:O},reset:{placement:M}}:{}}}},DZe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:a,platform:l,elements:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:k=!0,...C}=_g(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const $=rh(i),E=X1(a),P=rh(a)===a,I=await(l.isRTL==null?void 0:l.isRTL(d.floating)),O=p||(P||!k?[O5(a)]:$Ze(a)),L=_!=="none";!p&&L&&O.push(...SZe(a,k,_,I));const S=[a,...O],j=await G9(t,C),M=[];let q=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&M.push(j[$]),f){const Q=coe(i,s,I);M.push(j[Q[0]],j[Q[1]])}if(q=[...q,{placement:i,overflows:M}],!M.every(Q=>Q<=0)){var B,V;const Q=(((B=r.flip)==null?void 0:B.index)||0)+1,X=S[Q];if(X)return{data:{index:Q,overflows:q},reset:{placement:X}};let Y=(V=q.filter(Z=>Z.overflows[0]<=0).sort((Z,se)=>Z.overflows[1]-se.overflows[1])[0])==null?void 0:V.placement;if(!Y)switch(v){case"bestFit":{var G;const Z=(G=q.filter(se=>{if(L){const ce=X1(se.placement);return ce===E||ce==="y"}return!0}).map(se=>[se.placement,se.overflows.filter(ce=>ce>0).reduce((ce,te)=>ce+te,0)]).sort((se,ce)=>se[1]-ce[1])[0])==null?void 0:G[0];Z&&(Y=Z);break}case"initialPlacement":Y=a;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};async function xZe(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=rh(n),a=Kd(n),l=X1(n)==="y",d=["left","top"].includes(s)?-1:1,u=r&&l?-1:1,f=_g(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:_}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof _=="number"&&(v=a==="end"?_*-1:_),l?{x:v*u,y:p*d}:{x:p*d,y:v*u}}const OZe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:s,middlewareData:a}=t,l=await xZe(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},LZe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:C=>{let{x:$,y:E}=C;return{x:$,y:E}}},...l}=_g(e,t),d={x:n,y:o},u=await G9(t,l),f=X1(rh(i)),p=loe(f);let v=d[p],_=d[f];if(r){const C=p==="y"?"top":"left",$=p==="y"?"bottom":"right",E=v+u[C],P=v-u[$];v=eP(E,v,P)}if(s){const C=f==="y"?"top":"left",$=f==="y"?"bottom":"right",E=_+u[C],P=_-u[$];_=eP(E,_,P)}const k=a.fn({...t,[p]:v,[f]:_});return{...k,data:{x:k.x-n,y:k.y-o,enabled:{[p]:r,[f]:s}}}}}},MZe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:i,rects:r,platform:s,elements:a}=t,{apply:l=()=>{},...d}=_g(e,t),u=await G9(t,d),f=rh(i),p=Kd(i),v=X1(i)==="y",{width:_,height:k}=r.floating;let C,$;f==="top"||f==="bottom"?(C=f,$=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):($=f,C=p==="end"?"top":"bottom");const E=k-u.top-u.bottom,P=_-u.left-u.right,I=R2(k-u[C],E),O=R2(_-u[$],P),L=!t.middlewareData.shift;let S=I,j=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=P),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=E),L&&!p){const q=o1(u.left,0),B=o1(u.right,0),V=o1(u.top,0),G=o1(u.bottom,0);v?j=_-2*(q!==0||B!==0?q+B:o1(u.left,u.right)):S=k-2*(V!==0||G!==0?V+G:o1(u.top,u.bottom))}await l({...t,availableWidth:j,availableHeight:S});const M=await s.getDimensions(a.floating);return _!==M.width||k!==M.height?{reset:{rects:!0}}:{}}}};function Vc(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zu(e){return Vc(e).getComputedStyle(e)}const zB=Math.min,F0=Math.max,L5=Math.round;function uoe(e){const t=Zu(e);let n=parseFloat(t.width),o=parseFloat(t.height);const i=e.offsetWidth,r=e.offsetHeight,s=L5(n)!==i||L5(o)!==r;return s&&(n=i,o=r),{width:n,height:o,fallback:s}}function ip(e){return foe(e)?(e.nodeName||"").toLowerCase():""}let Rw;function hoe(){if(Rw)return Rw;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Rw=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Rw):navigator.userAgent}function Ku(e){return e instanceof Vc(e).HTMLElement}function qm(e){return e instanceof Vc(e).Element}function foe(e){return e instanceof Vc(e).Node}function UB(e){return typeof ShadowRoot>"u"?!1:e instanceof Vc(e).ShadowRoot||e instanceof ShadowRoot}function Z9(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=Zu(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function NZe(e){return["table","td","th"].includes(ip(e))}function tP(e){const t=/firefox/i.test(hoe()),n=Zu(e),o=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!o&&o!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(i=>n.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const r=n.contain;return r!=null&&r.includes(i)})}function moe(){return!/^((?!chrome|android).)*safari/i.test(hoe())}function EO(e){return["html","body","#document"].includes(ip(e))}function poe(e){return qm(e)?e:e.contextElement}const goe={x:1,y:1};function y_(e){const t=poe(e);if(!Ku(t))return goe;const n=t.getBoundingClientRect(),{width:o,height:i,fallback:r}=uoe(t);let s=(r?L5(n.width):n.width)/o,a=(r?L5(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}function j2(e,t,n,o){var i,r;t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=poe(e);let l=goe;t&&(o?qm(o)&&(l=y_(o)):l=y_(e));const d=a?Vc(a):window,u=!moe()&&n;let f=(s.left+(u&&((i=d.visualViewport)==null?void 0:i.offsetLeft)||0))/l.x,p=(s.top+(u&&((r=d.visualViewport)==null?void 0:r.offsetTop)||0))/l.y,v=s.width/l.x,_=s.height/l.y;if(a){const k=Vc(a),C=o&&qm(o)?Vc(o):o;let $=k.frameElement;for(;$&&o&&C!==k;){const E=y_($),P=$.getBoundingClientRect(),I=getComputedStyle($);P.x+=($.clientLeft+parseFloat(I.paddingLeft))*E.x,P.y+=($.clientTop+parseFloat(I.paddingTop))*E.y,f*=E.x,p*=E.y,v*=E.x,_*=E.y,f+=P.x,p+=P.y,$=Vc($).frameElement}}return{width:v,height:_,top:p,right:f+v,bottom:p+_,left:f,x:f,y:p}}function Ym(e){return((foe(e)?e.ownerDocument:e.document)||window.document).documentElement}function K9(e){return qm(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function voe(e){return j2(Ym(e)).left+K9(e).scrollLeft}function F2(e){if(ip(e)==="html")return e;const t=e.assignedSlot||e.parentNode||UB(e)&&e.host||Ym(e);return UB(t)?t.host:t}function _oe(e){const t=F2(e);return EO(t)?t.ownerDocument.body:Ku(t)&&Z9(t)?t:_oe(t)}function M5(e,t){var n;t===void 0&&(t=[]);const o=_oe(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),r=Vc(o);return i?t.concat(r,r.visualViewport||[],Z9(o)?o:[]):t.concat(o,M5(o))}function BB(e,t,n){return t==="viewport"?j0(function(o,i){const r=Vc(o),s=Ym(o),a=r.visualViewport;let l=s.clientWidth,d=s.clientHeight,u=0,f=0;if(a){l=a.width,d=a.height;const p=moe();(p||!p&&i==="fixed")&&(u=a.offsetLeft,f=a.offsetTop)}return{width:l,height:d,x:u,y:f}}(e,n)):qm(t)?j0(function(o,i){const r=j2(o,!0,i==="fixed"),s=r.top+o.clientTop,a=r.left+o.clientLeft,l=Ku(o)?y_(o):{x:1,y:1};return{width:o.clientWidth*l.x,height:o.clientHeight*l.y,x:a*l.x,y:s*l.y}}(t,n)):j0(function(o){const i=Ym(o),r=K9(o),s=o.ownerDocument.body,a=F0(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),l=F0(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let d=-r.scrollLeft+voe(o);const u=-r.scrollTop;return Zu(s).direction==="rtl"&&(d+=F0(i.clientWidth,s.clientWidth)-a),{width:a,height:l,x:d,y:u}}(Ym(e)))}function HB(e){return Ku(e)&&Zu(e).position!=="fixed"?e.offsetParent:null}function VB(e){const t=Vc(e);let n=HB(e);for(;n&&NZe(n)&&Zu(n).position==="static";)n=HB(n);return n&&(ip(n)==="html"||ip(n)==="body"&&Zu(n).position==="static"&&!tP(n))?t:n||function(o){let i=F2(o);for(;Ku(i)&&!EO(i);){if(tP(i))return i;i=F2(i)}return null}(e)||t}function RZe(e,t,n){const o=Ku(t),i=Ym(t),r=j2(e,!0,n==="fixed",t);let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&n!=="fixed")if((ip(t)!=="body"||Z9(i))&&(s=K9(t)),Ku(t)){const l=j2(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else i&&(a.x=voe(i));return{x:r.left+s.scrollLeft-a.x,y:r.top+s.scrollTop-a.y,width:r.width,height:r.height}}const jZe={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const r=n==="clippingAncestors"?function(d,u){const f=u.get(d);if(f)return f;let p=M5(d).filter(C=>qm(C)&&ip(C)!=="body"),v=null;const _=Zu(d).position==="fixed";let k=_?F2(d):d;for(;qm(k)&&!EO(k);){const C=Zu(k),$=tP(k);(_?$||v:$||C.position!=="static"||!v||!["absolute","fixed"].includes(v.position))?v=C:p=p.filter(E=>E!==k),k=F2(k)}return u.set(d,p),p}(t,this._c):[].concat(n),s=[...r,o],a=s[0],l=s.reduce((d,u)=>{const f=BB(t,u,i);return d.top=F0(f.top,d.top),d.right=zB(f.right,d.right),d.bottom=zB(f.bottom,d.bottom),d.left=F0(f.left,d.left),d},BB(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=Ku(n),r=Ym(n);if(n===r)return t;let s={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((i||!i&&o!=="fixed")&&((ip(n)!=="body"||Z9(r))&&(s=K9(n)),Ku(n))){const d=j2(n);a=y_(n),l.x=d.x+n.clientLeft,l.y=d.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}},isElement:qm,getDimensions:function(e){return Ku(e)?uoe(e):e.getBoundingClientRect()},getOffsetParent:VB,getDocumentElement:Ym,getScale:y_,async getElementRects(e){let{reference:t,floating:n,strategy:o}=e;const i=this.getOffsetParent||VB,r=this.getDimensions;return{reference:RZe(t,await i(n),o),floating:{x:0,y:0,...await r(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Zu(e).direction==="rtl"},FZe=(e,t,n)=>{const o=new Map,i={platform:jZe,...n},r={...i.platform,_c:o};return EZe(e,t,{...i,platform:r})};function yoe(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?yoe(e[n],t[n]):e[n]=t[n])}const pf={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:0,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function z2(e,t){let n=pf.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=pf.themes[n.$extend]||{}:(n=null,o=pf[t]):n=null;while(n);return o}function zZe(e){const t=[e];let n=pf.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=pf.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function qB(e){const t=[e];let n=pf.themes[e]||{};do n.$extend?(t.push(n.$extend),n=pf.themes[n.$extend]||{}):n=null;while(n);return t}let Q1=!1;if(typeof window<"u"){Q1=!1;try{const e=Object.defineProperty({},"passive",{get(){Q1=!0}});window.addEventListener("test",null,e)}catch{}}let boe=!1;typeof window<"u"&&typeof navigator<"u"&&(boe=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const koe=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),YB={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},WB={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function GB(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function kS(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Rd=[];let Vp=null;const ZB={};function KB(e){let t=ZB[e];return t||(t=ZB[e]=[]),t}let nP=function(){};typeof window<"u"&&(nP=window.Element);function di(e){return function(t){return z2(t.theme,e)}}const wS="__floating-vue__popper",woe=()=>xo({name:"VPopper",provide(){return{[wS]:{parentPopper:this}}},inject:{[wS]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:di("disabled")},positioningDisabled:{type:Boolean,default:di("positioningDisabled")},placement:{type:String,default:di("placement"),validator:e=>koe.includes(e)},delay:{type:[String,Number,Object],default:di("delay")},distance:{type:[Number,String],default:di("distance")},skidding:{type:[Number,String],default:di("skidding")},triggers:{type:Array,default:di("triggers")},showTriggers:{type:[Array,Function],default:di("showTriggers")},hideTriggers:{type:[Array,Function],default:di("hideTriggers")},popperTriggers:{type:Array,default:di("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:di("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:di("popperHideTriggers")},container:{type:[String,Object,nP,Boolean],default:di("container")},boundary:{type:[String,nP],default:di("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:di("strategy")},autoHide:{type:[Boolean,Function],default:di("autoHide")},handleResize:{type:Boolean,default:di("handleResize")},instantMove:{type:Boolean,default:di("instantMove")},eagerMount:{type:Boolean,default:di("eagerMount")},popperClass:{type:[String,Array,Object],default:di("popperClass")},computeTransformOrigin:{type:Boolean,default:di("computeTransformOrigin")},autoMinSize:{type:Boolean,default:di("autoMinSize")},autoSize:{type:[Boolean,String],default:di("autoSize")},autoMaxSize:{type:Boolean,default:di("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:di("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:di("preventOverflow")},overflowPadding:{type:[Number,String],default:di("overflowPadding")},arrowPadding:{type:[Number,String],default:di("arrowPadding")},arrowOverflow:{type:Boolean,default:di("arrowOverflow")},flip:{type:Boolean,default:di("flip")},shift:{type:Boolean,default:di("shift")},shiftCrossAxis:{type:Boolean,default:di("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:di("noAutoFocus")},disposeTimeout:{type:Number,default:di("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[wS])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var o,i;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(OZe({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(AZe({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(LZe({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(DZe({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(IZe({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:i,middlewareData:r})=>{let s;const{centerOffset:a}=r.arrow;return o.startsWith("top")||o.startsWith("bottom")?s=Math.abs(a)>i.reference.width/2:s=Math.abs(a)>i.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:i,placement:r,middlewareData:s})=>{var a;if((a=s.autoSize)!=null&&a.skip)return{};let l,d;return r.startsWith("top")||r.startsWith("bottom")?l=i.reference.width:d=i.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=d!=null?`${d}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(MZe({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:i})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const n=await FZe(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Vp&&this.instantMove&&Vp.instantMove&&Vp!==this.parentPopper){Vp.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Vp=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await kS(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...M5(this.$_referenceNode),...M5(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),o=n.parentNode.getBoundingClientRect(),i=t.x+t.width/2-(o.left+n.offsetLeft),r=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${i}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<Rd.length;n++)t=Rd[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Rd.push(this),document.body.classList.add("v-popper--some-open");for(const t of qB(this.theme))KB(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await kS(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,GB(Rd,this),Rd.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of qB(this.theme)){const o=KB(n);GB(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Vp===this&&(Vp=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await kS(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,YB,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],YB,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,WB,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],WB,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(o=>o.addEventListener(t,n,Q1?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,i){let r=n;o!=null&&(r=typeof o=="function"?o(r):o),r.forEach(s=>{const a=t[s];a&&this.$_registerEventListeners(e,a,i)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:i,handler:r}=n;!e||e===i?o.forEach(s=>s.removeEventListener(i,r)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const o=n.getAttribute(e);o&&(n.removeAttribute(e),n.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const o=e[n];o==null?t.removeAttribute(n):t.setAttribute(n,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(z0>=e.left&&z0<=e.right&&U0>=e.top&&U0<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=z0-fm,o=U0-mm,i=t.left+t.width/2-fm+(t.top+t.height/2)-mm+t.width+t.height,r=fm+n*i,s=mm+o*i;return jw(fm,mm,r,s,t.left,t.top,t.left,t.bottom)||jw(fm,mm,r,s,t.left,t.top,t.right,t.top)||jw(fm,mm,r,s,t.right,t.top,t.right,t.bottom)||jw(fm,mm,r,s,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(boe?(document.addEventListener("touchstart",JB,Q1?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",BZe,Q1?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",JB,!0),window.addEventListener("click",UZe,!0)),window.addEventListener("resize",qZe));function JB(e){for(let t=0;t<Rd.length;t++){const n=Rd[t];try{const o=n.popperNode();n.$_mouseDownContains=o.contains(e.target)}catch{}}}function UZe(e){$oe(e)}function BZe(e){$oe(e,!0)}function $oe(e,t=!1){const n={};for(let o=Rd.length-1;o>=0;o--){const i=Rd[o];try{const r=i.$_containsGlobalTarget=HZe(i,e);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!n[i.randomId]&&XB(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let a=i.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let s=i.parentPopper;for(;s&&XB(s,s.$_containsGlobalTarget,e);)s.$_handleGlobalClose(e,t),s=s.parentPopper}})}catch{}}}function HZe(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function XB(e,t,n){return n.closeAllPopover||n.closePopover&&t||VZe(e,n)&&!t}function VZe(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function qZe(e){for(let t=0;t<Rd.length;t++)Rd[t].$_computePosition(e)}let fm=0,mm=0,z0=0,U0=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{fm=z0,mm=U0,z0=e.clientX,U0=e.clientY},Q1?{passive:!0}:void 0);function jw(e,t,n,o,i,r,s,a){const l=((s-i)*(t-r)-(a-r)*(e-i))/((a-r)*(n-e)-(s-i)*(o-t)),d=((n-e)*(t-r)-(o-t)*(e-i))/((a-r)*(n-e)-(s-i)*(o-t));return l>=0&&l<=1&&d>=0&&d<=1}const YZe={extends:woe()},J9=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n};function WZe(e,t,n,o,i,r){return h(),g("div",{ref:"reference",class:J(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Pt(e.$slots,"default",hs(Ws(e.slotData)))],2)}const GZe=J9(YZe,[["render",WZe]]);function ZZe(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let o4;function oP(){oP.init||(oP.init=!0,o4=ZZe()!==-1)}var X9={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){oP(),fa(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",o4&&this.$el.appendChild(e),e.data="about:blank",o4||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!o4&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const KZe=mD();X$("data-v-b329ee4c");const JZe={class:"resize-observer",tabindex:"-1"};Q$();const XZe=KZe((e,t,n,o,i,r)=>(h(),W("div",JZe)));X9.render=XZe;X9.__scopeId="data-v-b329ee4c";X9.__file="src/components/ResizeObserver.vue";const Coe=(e="theme")=>({computed:{themeClass(){return zZe(this[e])}}}),QZe=xo({name:"VPopperContent",components:{ResizeObserver:X9},mixins:[Coe()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),eKe=["id","aria-hidden","tabindex","data-popper-placement"],tKe={ref:"inner",class:"v-popper__inner"},nKe=c("div",{class:"v-popper__arrow-outer"},null,-1),oKe=c("div",{class:"v-popper__arrow-inner"},null,-1),iKe=[nKe,oKe];function rKe(e,t,n,o,i,r){const s=y("ResizeObserver");return h(),g("div",{id:e.popperId,ref:"popover",class:J(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Bn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=bs(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[c("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),c("div",{class:"v-popper__wrapper",style:Bn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[c("div",tKe,[e.mounted?(h(),g(pe,{key:0},[c("div",null,[Pt(e.$slots,"default")]),e.handleResize?(h(),W(s,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):D("",!0)],64)):D("",!0)],512),c("div",{ref:"arrow",class:"v-popper__arrow-container",style:Bn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},iKe,4)],4)],46,eKe)}const Soe=J9(QZe,[["render",rKe]]),Toe={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},sKe=xo({name:"VPopperWrapper",components:{Popper:GZe,PopperContent:Soe},mixins:[Toe,Coe("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Element,Boolean],default:void 0},boundary:{type:[String,Element],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function aKe(e,t,n,o,i,r){const s=y("PopperContent"),a=y("Popper");return h(),W(a,Ur({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:F(({popperId:l,isShown:d,shouldMountContent:u,skipTransition:f,autoHide:p,show:v,hide:_,handleResize:k,onResize:C,classes:$,result:E})=>[Pt(e.$slots,"default",{shown:d,show:v,hide:_}),b(s,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:d,mounted:u,"skip-transition":f,"auto-hide":p,"handle-resize":k,classes:$,result:E,onHide:_,onResize:C},{default:F(()=>[Pt(e.$slots,"popper",{shown:d,hide:_})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const IO=J9(sKe,[["render",aKe]]),lKe={...IO,name:"VDropdown",vPopperTheme:"dropdown"},cKe={...IO,name:"VMenu",vPopperTheme:"menu"},dKe={...IO,name:"VTooltip",vPopperTheme:"tooltip"},uKe=xo({name:"VTooltipDirective",components:{Popper:woe(),PopperContent:Soe},mixins:[Toe],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>z2(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>z2(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(o=>this.onResult(t,o)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),hKe=["innerHTML"],fKe=["textContent"];function mKe(e,t,n,o,i,r){const s=y("PopperContent"),a=y("Popper");return h(),W(a,Ur({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:F(({popperId:l,isShown:d,shouldMountContent:u,skipTransition:f,autoHide:p,hide:v,handleResize:_,onResize:k,classes:C,result:$})=>[b(s,{ref:"popperContent",class:J({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:d,mounted:u,"skip-transition":f,"auto-hide":p,"handle-resize":_,classes:C,result:$,onHide:v,onResize:k},{default:F(()=>[e.html?(h(),g("div",{key:0,innerHTML:e.finalContent},null,8,hKe)):(h(),g("div",{key:1,textContent:m(e.finalContent)},null,8,fKe))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const pKe=J9(uKe,[["render",mKe]]),Eoe="v-popper--has-tooltip";function gKe(e,t){let n=e.placement;if(!n&&t)for(const o of koe)t[o]&&(n=o);return n||(n=z2(e.theme||"tooltip","placement")),n}function Ioe(e,t,n){let o;const i=typeof t;return i==="string"?o={content:t}:t&&i==="object"?o=t:o={content:!1},o.placement=gKe(o,n),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let $S,U2,vKe=0;function _Ke(){if($S)return;U2=In([]),$S=N_({name:"VTooltipDirectiveApp",setup(){return{directives:U2}},render(){return this.directives.map(t=>tu(pKe,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),$S.mount(e)}function yKe(e,t,n){_Ke();const o=In(Ioe(e,t,n)),i=In(!1),r={id:vKe++,options:o,shown:i};return U2.value.push(r),e.classList&&e.classList.add(Eoe),e.$_popper={options:o,item:r,show(){i.value=!0},hide(){i.value=!1}}}function Poe(e){if(e.$_popper){const t=U2.value.indexOf(e.$_popper.item);t!==-1&&U2.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Eoe)}function QB(e,{value:t,modifiers:n}){const o=Ioe(e,t,n);if(!o.content||z2(o.theme||"tooltip","disabled"))Poe(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=o):i=yKe(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}const bKe={beforeMount:QB,updated:QB,beforeUnmount(e){Poe(e)}};function eH(e){e.addEventListener("click",Aoe),e.addEventListener("touchstart",Doe,Q1?{passive:!0}:!1)}function tH(e){e.removeEventListener("click",Aoe),e.removeEventListener("touchstart",Doe),e.removeEventListener("touchend",xoe),e.removeEventListener("touchcancel",Ooe)}function Aoe(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Doe(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",xoe),t.addEventListener("touchcancel",Ooe)}}function xoe(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-o.screenY)<20&&Math.abs(n.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Ooe(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const kKe={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&eH(e)},updated(e,{value:t,oldValue:n,modifiers:o}){e.$_closePopoverModifiers=o,t!==n&&(typeof t>"u"||t?eH(e):tH(e))},beforeUnmount(e){tH(e)}};function wKe(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,yoe(pf,t),e.directive("tooltip",bKe),e.directive("close-popper",kKe),e.component("VTooltip",dKe),e.component("VDropdown",lKe),e.component("VMenu",cKe))}const $Ke={version:"2.0.0",install:wKe,options:pf};function Loe(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(i){i(n)}),(o=e.get("*"))&&o.slice().map(function(i){i(t,n)})}}}class yg extends Error{}class CKe extends yg{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class SKe extends yg{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class TKe extends yg{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Zv extends yg{}class Moe extends yg{constructor(t){super(`Invalid unit ${t}`)}}class la extends yg{}class rm extends yg{constructor(){super("Zone is an abstract class")}}const vn="numeric",iu="short",rc="long",N5={year:vn,month:vn,day:vn},Noe={year:vn,month:iu,day:vn},EKe={year:vn,month:iu,day:vn,weekday:iu},Roe={year:vn,month:rc,day:vn},joe={year:vn,month:rc,day:vn,weekday:rc},Foe={hour:vn,minute:vn},zoe={hour:vn,minute:vn,second:vn},Uoe={hour:vn,minute:vn,second:vn,timeZoneName:iu},Boe={hour:vn,minute:vn,second:vn,timeZoneName:rc},Hoe={hour:vn,minute:vn,hourCycle:"h23"},Voe={hour:vn,minute:vn,second:vn,hourCycle:"h23"},qoe={hour:vn,minute:vn,second:vn,hourCycle:"h23",timeZoneName:iu},Yoe={hour:vn,minute:vn,second:vn,hourCycle:"h23",timeZoneName:rc},Woe={year:vn,month:vn,day:vn,hour:vn,minute:vn},Goe={year:vn,month:vn,day:vn,hour:vn,minute:vn,second:vn},Zoe={year:vn,month:iu,day:vn,hour:vn,minute:vn},Koe={year:vn,month:iu,day:vn,hour:vn,minute:vn,second:vn},IKe={year:vn,month:iu,day:vn,weekday:iu,hour:vn,minute:vn},Joe={year:vn,month:rc,day:vn,hour:vn,minute:vn,timeZoneName:iu},Xoe={year:vn,month:rc,day:vn,hour:vn,minute:vn,second:vn,timeZoneName:iu},Qoe={year:vn,month:rc,day:vn,weekday:rc,hour:vn,minute:vn,timeZoneName:rc},eie={year:vn,month:rc,day:vn,weekday:rc,hour:vn,minute:vn,second:vn,timeZoneName:rc};class D3{get type(){throw new rm}get name(){throw new rm}get ianaName(){return this.name}get isUniversal(){throw new rm}offsetName(t,n){throw new rm}formatOffset(t,n){throw new rm}offset(t){throw new rm}equals(t){throw new rm}get isValid(){throw new rm}}let CS=null;class Q9 extends D3{static get instance(){return CS===null&&(CS=new Q9),CS}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:o}){return cie(t,n,o)}formatOffset(t,n){return B0(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let i4={};function PKe(e){return i4[e]||(i4[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),i4[e]}const AKe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function DKe(e,t){const n=e.format(t).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,r,s,a,l,d,u]=o;return[s,i,r,a,l,d,u]}function xKe(e,t){const n=e.formatToParts(t),o=[];for(let i=0;i<n.length;i++){const{type:r,value:s}=n[i],a=AKe[r];r==="era"?o[a]=s:ro(a)||(o[a]=parseInt(s,10))}return o}let Fw={};class Cf extends D3{static create(t){return Fw[t]||(Fw[t]=new Cf(t)),Fw[t]}static resetCache(){Fw={},i4={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Cf.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:o}){return cie(t,n,o,this.name)}formatOffset(t,n){return B0(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const o=PKe(this.name);let[i,r,s,a,l,d,u]=o.formatToParts?xKe(o,n):DKe(o,n);a==="BC"&&(i=-Math.abs(i)+1);const p=t6({year:i,month:r,day:s,hour:l===24?0:l,minute:d,second:u,millisecond:0});let v=+n;const _=v%1e3;return v-=_>=0?_:1e3+_,(p-v)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let nH={};function OKe(e,t={}){const n=JSON.stringify([e,t]);let o=nH[n];return o||(o=new Intl.ListFormat(e,t),nH[n]=o),o}let iP={};function rP(e,t={}){const n=JSON.stringify([e,t]);let o=iP[n];return o||(o=new Intl.DateTimeFormat(e,t),iP[n]=o),o}let sP={};function LKe(e,t={}){const n=JSON.stringify([e,t]);let o=sP[n];return o||(o=new Intl.NumberFormat(e,t),sP[n]=o),o}let aP={};function MKe(e,t={}){const{base:n,...o}=t,i=JSON.stringify([e,o]);let r=aP[i];return r||(r=new Intl.RelativeTimeFormat(e,t),aP[i]=r),r}let f0=null;function NKe(){return f0||(f0=new Intl.DateTimeFormat().resolvedOptions().locale,f0)}let oH={};function RKe(e){let t=oH[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,oH[e]=t}return t}function jKe(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let o,i;try{o=rP(e).resolvedOptions(),i=e}catch{const l=e.substring(0,n);o=rP(l).resolvedOptions(),i=l}const{numberingSystem:r,calendar:s}=o;return[i,r,s]}}function FKe(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function zKe(e){const t=[];for(let n=1;n<=12;n++){const o=Rn.utc(2009,n,1);t.push(e(o))}return t}function UKe(e){const t=[];for(let n=1;n<=7;n++){const o=Rn.utc(2016,11,13+n);t.push(e(o))}return t}function zw(e,t,n,o){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):o(t)}function BKe(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class HKe{constructor(t,n,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:i,floor:r,...s}=o;if(!n||Object.keys(s).length>0){const a={useGrouping:!1,...o};o.padTo>0&&(a.minimumIntegerDigits=o.padTo),this.inf=LKe(t,a)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):OO(t,3);return Qr(n,this.padTo)}}}class VKe{constructor(t,n,o){this.opts=o,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const s=-1*(t.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&Cf.create(a).valid?(i=a,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const r={...this.opts};r.timeZone=r.timeZone||i,this.dtf=rP(n,r)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:o}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class qKe{constructor(t,n,o){this.opts={style:"long",...o},!n&&aie()&&(this.rtf=MKe(t,o))}format(t,n){return this.rtf?this.rtf.format(t,n):mJe(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const YKe={firstDay:1,minimalDays:4,weekend:[6,7]};class Ii{static fromOpts(t){return Ii.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,o,i,r=!1){const s=t||fr.defaultLocale,a=s||(r?"en-US":NKe()),l=n||fr.defaultNumberingSystem,d=o||fr.defaultOutputCalendar,u=lP(i)||fr.defaultWeekSettings;return new Ii(a,l,d,u,s)}static resetCache(){f0=null,iP={},sP={},aP={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:o,weekSettings:i}={}){return Ii.create(t,n,o,i)}constructor(t,n,o,i,r){const[s,a,l]=jKe(t);this.locale=s,this.numberingSystem=n||a||null,this.outputCalendar=o||l||null,this.weekSettings=i,this.intl=FKe(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=BKe(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Ii.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,lP(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return zw(this,t,hie,()=>{const o=n?{month:t,day:"numeric"}:{month:t},i=n?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=zKe(r=>this.extract(r,o,"month"))),this.monthsCache[i][t]})}weekdays(t,n=!1){return zw(this,t,pie,()=>{const o=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=UKe(r=>this.extract(r,o,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return zw(this,void 0,()=>gie,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Rn.utc(2016,11,13,9),Rn.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return zw(this,t,vie,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Rn.utc(-40,1,1),Rn.utc(2017,1,1)].map(o=>this.extract(o,n,"era"))),this.eraCache[t]})}extract(t,n,o){const i=this.dtFormatter(t,n),r=i.formatToParts(),s=r.find(a=>a.type.toLowerCase()===o);return s?s.value:null}numberFormatter(t={}){return new HKe(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new VKe(t,this.intl,n)}relFormatter(t={}){return new qKe(this.intl,this.isEnglish(),t)}listFormatter(t={}){return OKe(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:lie()?RKe(this.locale):YKe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let SS=null;class Na extends D3{static get utcInstance(){return SS===null&&(SS=new Na(0)),SS}static instance(t){return t===0?Na.utcInstance:new Na(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Na(n6(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${B0(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${B0(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return B0(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class WKe extends D3{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Am(e,t){if(ro(e)||e===null)return t;if(e instanceof D3)return e;if(QKe(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Q9.instance:n==="utc"||n==="gmt"?Na.utcInstance:Na.parseSpecifier(n)||Cf.create(e)}else return Wm(e)?Na.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new WKe(e)}const PO={arab:"[Ů -Ů©]",arabext:"[Ű°-Űą]",bali:"[á-á™]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[ďĽ-9]",gujr:"[૦-ŕ«Ż]",hanidec:"[〇|一|二|三|ĺ››|äş”|ĺ…|ä¸|ĺ…«|äąť]",khmr:"[áź -áź©]",knda:"[೦-೯]",laoo:"[ŕ»-ŕ»™]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[á -á ™]",mymr:"[á€-á‰]",orya:"[ŕ¦-ŕŻ]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[ŕą-ŕą™]",tibt:"[༠-༩]",latn:"\\d"},iH={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},GKe=PO.hanidec.replace(/[\[|\]]/g,"").split("");function ZKe(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const o=e.charCodeAt(n);if(e[n].search(PO.hanidec)!==-1)t+=GKe.indexOf(e[n]);else for(const i in iH){const[r,s]=iH[i];o>=r&&o<=s&&(t+=o-r)}}return parseInt(t,10)}else return t}let jv={};function KKe(){jv={}}function Sd({numberingSystem:e},t=""){const n=e||"latn";return jv[n]||(jv[n]={}),jv[n][t]||(jv[n][t]=new RegExp(`${PO[n]}${t}`)),jv[n][t]}let rH=()=>Date.now(),sH="system",aH=null,lH=null,cH=null,dH=60,uH,hH=null;class fr{static get now(){return rH}static set now(t){rH=t}static set defaultZone(t){sH=t}static get defaultZone(){return Am(sH,Q9.instance)}static get defaultLocale(){return aH}static set defaultLocale(t){aH=t}static get defaultNumberingSystem(){return lH}static set defaultNumberingSystem(t){lH=t}static get defaultOutputCalendar(){return cH}static set defaultOutputCalendar(t){cH=t}static get defaultWeekSettings(){return hH}static set defaultWeekSettings(t){hH=lP(t)}static get twoDigitCutoffYear(){return dH}static set twoDigitCutoffYear(t){dH=t%100}static get throwOnInvalid(){return uH}static set throwOnInvalid(t){uH=t}static resetCaches(){Ii.resetCache(),Cf.resetCache(),Rn.resetCache(),KKe()}}class Bd{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const tie=[0,31,59,90,120,151,181,212,243,273,304,334],nie=[0,31,60,91,121,152,182,213,244,274,305,335];function qc(e,t){return new Bd("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function AO(e,t,n){const o=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const i=o.getUTCDay();return i===0?7:i}function oie(e,t,n){return n+(x3(e)?nie:tie)[t-1]}function iie(e,t){const n=x3(e)?nie:tie,o=n.findIndex(r=>r<t),i=t-n[o];return{month:o+1,day:i}}function DO(e,t){return(e-t+7)%7+1}function R5(e,t=4,n=1){const{year:o,month:i,day:r}=e,s=oie(o,i,r),a=DO(AO(o,i,r),n);let l=Math.floor((s-a+14-t)/7),d;return l<1?(d=o-1,l=B2(d,t,n)):l>B2(o,t,n)?(d=o+1,l=1):d=o,{weekYear:d,weekNumber:l,weekday:a,...o6(e)}}function fH(e,t=4,n=1){const{weekYear:o,weekNumber:i,weekday:r}=e,s=DO(AO(o,1,t),n),a=b_(o);let l=i*7+r-s-7+t,d;l<1?(d=o-1,l+=b_(d)):l>a?(d=o+1,l-=b_(o)):d=o;const{month:u,day:f}=iie(d,l);return{year:d,month:u,day:f,...o6(e)}}function TS(e){const{year:t,month:n,day:o}=e,i=oie(t,n,o);return{year:t,ordinal:i,...o6(e)}}function mH(e){const{year:t,ordinal:n}=e,{month:o,day:i}=iie(t,n);return{year:t,month:o,day:i,...o6(e)}}function pH(e,t){if(!ro(e.localWeekday)||!ro(e.localWeekNumber)||!ro(e.localWeekYear)){if(!ro(e.weekday)||!ro(e.weekNumber)||!ro(e.weekYear))throw new Zv("Cannot mix locale-based week fields with ISO-based week fields");return ro(e.localWeekday)||(e.weekday=e.localWeekday),ro(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),ro(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function JKe(e,t=4,n=1){const o=e6(e.weekYear),i=Yc(e.weekNumber,1,B2(e.weekYear,t,n)),r=Yc(e.weekday,1,7);return o?i?r?!1:qc("weekday",e.weekday):qc("week",e.weekNumber):qc("weekYear",e.weekYear)}function XKe(e){const t=e6(e.year),n=Yc(e.ordinal,1,b_(e.year));return t?n?!1:qc("ordinal",e.ordinal):qc("year",e.year)}function rie(e){const t=e6(e.year),n=Yc(e.month,1,12),o=Yc(e.day,1,j5(e.year,e.month));return t?n?o?!1:qc("day",e.day):qc("month",e.month):qc("year",e.year)}function sie(e){const{hour:t,minute:n,second:o,millisecond:i}=e,r=Yc(t,0,23)||t===24&&n===0&&o===0&&i===0,s=Yc(n,0,59),a=Yc(o,0,59),l=Yc(i,0,999);return r?s?a?l?!1:qc("millisecond",i):qc("second",o):qc("minute",n):qc("hour",t)}function ro(e){return typeof e>"u"}function Wm(e){return typeof e=="number"}function e6(e){return typeof e=="number"&&e%1===0}function QKe(e){return typeof e=="string"}function eJe(e){return Object.prototype.toString.call(e)==="[object Date]"}function aie(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function lie(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function tJe(e){return Array.isArray(e)?e:[e]}function gH(e,t,n){if(e.length!==0)return e.reduce((o,i)=>{const r=[t(i),i];return o&&n(o[0],r[0])===o[0]?o:r},null)[1]}function nJe(e,t){return t.reduce((n,o)=>(n[o]=e[o],n),{})}function ey(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function lP(e){if(e==null)return null;if(typeof e!="object")throw new la("Week settings must be an object");if(!Yc(e.firstDay,1,7)||!Yc(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Yc(t,1,7)))throw new la("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Yc(e,t,n){return e6(e)&&e>=t&&e<=n}function oJe(e,t){return e-t*Math.floor(e/t)}function Qr(e,t=2){const n=e<0;let o;return n?o="-"+(""+-e).padStart(t,"0"):o=(""+e).padStart(t,"0"),o}function $m(e){if(!(ro(e)||e===null||e===""))return parseInt(e,10)}function qp(e){if(!(ro(e)||e===null||e===""))return parseFloat(e)}function xO(e){if(!(ro(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function OO(e,t,n=!1){const o=10**t;return(n?Math.trunc:Math.round)(e*o)/o}function x3(e){return e%4===0&&(e%100!==0||e%400===0)}function b_(e){return x3(e)?366:365}function j5(e,t){const n=oJe(t-1,12)+1,o=e+(t-n)/12;return n===2?x3(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function t6(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function vH(e,t,n){return-DO(AO(e,1,t),n)+t-1}function B2(e,t=4,n=1){const o=vH(e,t,n),i=vH(e+1,t,n);return(b_(e)-o+i)/7}function cP(e){return e>99?e:e>fr.twoDigitCutoffYear?1900+e:2e3+e}function cie(e,t,n,o=null){const i=new Date(e),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(r.timeZone=o);const s={timeZoneName:t,...r},a=new Intl.DateTimeFormat(n,s).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function n6(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const o=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-o:o;return n*60+i}function die(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new la(`Invalid unit value ${e}`);return t}function F5(e,t){const n={};for(const o in e)if(ey(e,o)){const i=e[o];if(i==null)continue;n[t(o)]=die(i)}return n}function B0(e,t){const n=Math.trunc(Math.abs(e/60)),o=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Qr(n,2)}:${Qr(o,2)}`;case"narrow":return`${i}${n}${o>0?`:${o}`:""}`;case"techie":return`${i}${Qr(n,2)}${Qr(o,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function o6(e){return nJe(e,["hour","minute","second","millisecond"])}const iJe=["January","February","March","April","May","June","July","August","September","October","November","December"],uie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rJe=["J","F","M","A","M","J","J","A","S","O","N","D"];function hie(e){switch(e){case"narrow":return[...rJe];case"short":return[...uie];case"long":return[...iJe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const fie=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],mie=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],sJe=["M","T","W","T","F","S","S"];function pie(e){switch(e){case"narrow":return[...sJe];case"short":return[...mie];case"long":return[...fie];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const gie=["AM","PM"],aJe=["Before Christ","Anno Domini"],lJe=["BC","AD"],cJe=["B","A"];function vie(e){switch(e){case"narrow":return[...cJe];case"short":return[...lJe];case"long":return[...aJe];default:return null}}function dJe(e){return gie[e.hour<12?0:1]}function uJe(e,t){return pie(t)[e.weekday-1]}function hJe(e,t){return hie(t)[e.month-1]}function fJe(e,t){return vie(t)[e.year<0?0:1]}function mJe(e,t,n="always",o=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&r){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${i[e][0]}`;case-1:return f?"yesterday":`last ${i[e][0]}`;case 0:return f?"today":`this ${i[e][0]}`}}const s=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,d=i[e],u=o?l?d[1]:d[2]||d[1]:l?i[e][0]:e;return s?`${a} ${u} ago`:`in ${a} ${u}`}function _H(e,t){let n="";for(const o of e)o.literal?n+=o.val:n+=t(o.val);return n}const pJe={D:N5,DD:Noe,DDD:Roe,DDDD:joe,t:Foe,tt:zoe,ttt:Uoe,tttt:Boe,T:Hoe,TT:Voe,TTT:qoe,TTTT:Yoe,f:Woe,ff:Zoe,fff:Joe,ffff:Qoe,F:Goe,FF:Koe,FFF:Xoe,FFFF:eie};class ua{static create(t,n={}){return new ua(t,n)}static parseFormat(t){let n=null,o="",i=!1;const r=[];for(let s=0;s<t.length;s++){const a=t.charAt(s);a==="'"?(o.length>0&&r.push({literal:i||/^\s+$/.test(o),val:o}),n=null,o="",i=!i):i||a===n?o+=a:(o.length>0&&r.push({literal:/^\s+$/.test(o),val:o}),o=a,n=a)}return o.length>0&&r.push({literal:i||/^\s+$/.test(o),val:o}),r}static macroTokenToFormatOpts(t){return pJe[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return Qr(t,n);const o={...this.opts};return n>0&&(o.padTo=n),this.loc.numberFormatter(o).format(t)}formatDateTimeFromString(t,n){const o=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",r=(v,_)=>this.loc.extract(t,v,_),s=v=>t.isOffsetFixed&&t.offset===0&&v.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,v.format):"",a=()=>o?dJe(t):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(v,_)=>o?hJe(t,v):r(_?{month:v}:{month:v,day:"numeric"},"month"),d=(v,_)=>o?uJe(t,v):r(_?{weekday:v}:{weekday:v,month:"long",day:"numeric"},"weekday"),u=v=>{const _=ua.macroTokenToFormatOpts(v);return _?this.formatWithSystemDefault(t,_):v},f=v=>o?fJe(t,v):r({era:v},"era"),p=v=>{switch(v){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return i?r({day:"numeric"},"day"):this.num(t.day);case"dd":return i?r({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?r({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?r({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?r({month:"numeric"},"month"):this.num(t.month);case"MM":return i?r({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?r({year:"numeric"},"year"):this.num(t.year);case"yy":return i?r({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?r({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?r({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(v)}};return _H(ua.parseFormat(n),p)}formatDurationFromString(t,n){const o=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=l=>d=>{const u=o(d);return u?this.num(l.get(u),d.length):d},r=ua.parseFormat(n),s=r.reduce((l,{literal:d,val:u})=>d?l:l.concat(u),[]),a=t.shiftTo(...s.map(o).filter(l=>l));return _H(r,i(a))}}const _ie=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function zy(...e){const t=e.reduce((n,o)=>n+o.source,"");return RegExp(`^${t}$`)}function Uy(...e){return t=>e.reduce(([n,o,i],r)=>{const[s,a,l]=r(t,i);return[{...n,...s},a||o,l]},[{},null,1]).slice(0,2)}function By(e,...t){if(e==null)return[null,null];for(const[n,o]of t){const i=n.exec(e);if(i)return o(i)}return[null,null]}function yie(...e){return(t,n)=>{const o={};let i;for(i=0;i<e.length;i++)o[e[i]]=$m(t[n+i]);return[o,null,n+i]}}const bie=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gJe=`(?:${bie.source}?(?:\\[(${_ie.source})\\])?)?`,LO=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,kie=RegExp(`${LO.source}${gJe}`),MO=RegExp(`(?:T${kie.source})?`),vJe=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,_Je=/(\d{4})-?W(\d\d)(?:-?(\d))?/,yJe=/(\d{4})-?(\d{3})/,bJe=yie("weekYear","weekNumber","weekDay"),kJe=yie("year","ordinal"),wJe=/(\d{4})-(\d\d)-(\d\d)/,wie=RegExp(`${LO.source} ?(?:${bie.source}|(${_ie.source}))?`),$Je=RegExp(`(?: ${wie.source})?`);function k_(e,t,n){const o=e[t];return ro(o)?n:$m(o)}function CJe(e,t){return[{year:k_(e,t),month:k_(e,t+1,1),day:k_(e,t+2,1)},null,t+3]}function Hy(e,t){return[{hours:k_(e,t,0),minutes:k_(e,t+1,0),seconds:k_(e,t+2,0),milliseconds:xO(e[t+3])},null,t+4]}function O3(e,t){const n=!e[t]&&!e[t+1],o=n6(e[t+1],e[t+2]),i=n?null:Na.instance(o);return[{},i,t+3]}function L3(e,t){const n=e[t]?Cf.create(e[t]):null;return[{},n,t+1]}const SJe=RegExp(`^T?${LO.source}$`),TJe=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function EJe(e){const[t,n,o,i,r,s,a,l,d]=e,u=t[0]==="-",f=l&&l[0]==="-",p=(v,_=!1)=>v!==void 0&&(_||v&&u)?-v:v;return[{years:p(qp(n)),months:p(qp(o)),weeks:p(qp(i)),days:p(qp(r)),hours:p(qp(s)),minutes:p(qp(a)),seconds:p(qp(l),l==="-0"),milliseconds:p(xO(d),f)}]}const IJe={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function NO(e,t,n,o,i,r,s){const a={year:t.length===2?cP($m(t)):$m(t),month:uie.indexOf(n)+1,day:$m(o),hour:$m(i),minute:$m(r)};return s&&(a.second=$m(s)),e&&(a.weekday=e.length>3?fie.indexOf(e)+1:mie.indexOf(e)+1),a}const PJe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function AJe(e){const[,t,n,o,i,r,s,a,l,d,u,f]=e,p=NO(t,i,o,n,r,s,a);let v;return l?v=IJe[l]:d?v=0:v=n6(u,f),[p,new Na(v)]}function DJe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const xJe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,OJe=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,LJe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function yH(e){const[,t,n,o,i,r,s,a]=e;return[NO(t,i,o,n,r,s,a),Na.utcInstance]}function MJe(e){const[,t,n,o,i,r,s,a]=e;return[NO(t,a,n,o,i,r,s),Na.utcInstance]}const NJe=zy(vJe,MO),RJe=zy(_Je,MO),jJe=zy(yJe,MO),FJe=zy(kie),$ie=Uy(CJe,Hy,O3,L3),zJe=Uy(bJe,Hy,O3,L3),UJe=Uy(kJe,Hy,O3,L3),BJe=Uy(Hy,O3,L3);function HJe(e){return By(e,[NJe,$ie],[RJe,zJe],[jJe,UJe],[FJe,BJe])}function VJe(e){return By(DJe(e),[PJe,AJe])}function qJe(e){return By(e,[xJe,yH],[OJe,yH],[LJe,MJe])}function YJe(e){return By(e,[TJe,EJe])}const WJe=Uy(Hy);function GJe(e){return By(e,[SJe,WJe])}const ZJe=zy(wJe,$Je),KJe=zy(wie),JJe=Uy(Hy,O3,L3);function XJe(e){return By(e,[ZJe,$ie],[KJe,JJe])}const bH="Invalid Duration",Cie={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},QJe={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Cie},xc=146097/400,pv=146097/4800,eXe={years:{quarters:4,months:12,weeks:xc/7,days:xc,hours:xc*24,minutes:xc*24*60,seconds:xc*24*60*60,milliseconds:xc*24*60*60*1e3},quarters:{months:3,weeks:xc/28,days:xc/4,hours:xc*24/4,minutes:xc*24*60/4,seconds:xc*24*60*60/4,milliseconds:xc*24*60*60*1e3/4},months:{weeks:pv/7,days:pv,hours:pv*24,minutes:pv*24*60,seconds:pv*24*60*60,milliseconds:pv*24*60*60*1e3},...Cie},v1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tXe=v1.slice(0).reverse();function sm(e,t,n=!1){const o={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new mi(o)}function Sie(e,t){let n=t.milliseconds??0;for(const o of tXe.slice(1))t[o]&&(n+=t[o]*e[o].milliseconds);return n}function kH(e,t){const n=Sie(e,t)<0?-1:1;v1.reduceRight((o,i)=>{if(ro(t[i]))return o;if(o){const r=t[o]*n,s=e[i][o],a=Math.floor(r/s);t[i]+=a*n,t[o]-=a*s*n}return i},null),v1.reduce((o,i)=>{if(ro(t[i]))return o;if(o){const r=t[o]%1;t[o]-=r,t[i]+=r*e[o][i]}return i},null)}function nXe(e){const t={};for(const[n,o]of Object.entries(e))o!==0&&(t[n]=o);return t}class mi{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let o=n?eXe:QJe;t.matrix&&(o=t.matrix),this.values=t.values,this.loc=t.loc||Ii.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(t,n){return mi.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new la(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new mi({values:F5(t,mi.normalizeUnit),loc:Ii.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Wm(t))return mi.fromMillis(t);if(mi.isDuration(t))return t;if(typeof t=="object")return mi.fromObject(t);throw new la(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[o]=YJe(t);return o?mi.fromObject(o,n):mi.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[o]=GJe(t);return o?mi.fromObject(o,n):mi.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new la("need to specify a reason the Duration is invalid");const o=t instanceof Bd?t:new Bd(t,n);if(fr.throwOnInvalid)throw new TKe(o);return new mi({invalid:o})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new Moe(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const o={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?ua.create(this.loc,o).formatDurationFromString(this,t):bH}toHuman(t={}){if(!this.isValid)return bH;const n=v1.map(o=>{const i=this.values[o];return ro(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:o.slice(0,-1)}).format(i)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=OO(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Rn.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Sie(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=mi.fromDurationLike(t),o={};for(const i of v1)(ey(n.values,i)||ey(this.values,i))&&(o[i]=n.get(i)+this.get(i));return sm(this,{values:o},!0)}minus(t){if(!this.isValid)return this;const n=mi.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const o of Object.keys(this.values))n[o]=die(t(this.values[o],o));return sm(this,{values:n},!0)}get(t){return this[mi.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...F5(t,mi.normalizeUnit)};return sm(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:o,matrix:i}={}){const s={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:o};return sm(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return kH(this.matrix,t),sm(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=nXe(this.normalize().shiftToAll().toObject());return sm(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>mi.normalizeUnit(s));const n={},o={},i=this.toObject();let r;for(const s of v1)if(t.indexOf(s)>=0){r=s;let a=0;for(const d in o)a+=this.matrix[d][s]*o[d],o[d]=0;Wm(i[s])&&(a+=i[s]);const l=Math.trunc(a);n[s]=l,o[s]=(a*1e3-l*1e3)/1e3}else Wm(i[s])&&(o[s]=i[s]);for(const s in o)o[s]!==0&&(n[r]+=s===r?o[s]:o[s]/this.matrix[r][s]);return kH(this.matrix,n),sm(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return sm(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(o,i){return o===void 0||o===0?i===void 0||i===0:o===i}for(const o of v1)if(!n(this.values[o],t.values[o]))return!1;return!0}}const gv="Invalid Interval";function oXe(e,t){return!e||!e.isValid?Cr.invalid("missing or invalid start"):!t||!t.isValid?Cr.invalid("missing or invalid end"):t<e?Cr.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Cr{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new la("need to specify a reason the Interval is invalid");const o=t instanceof Bd?t:new Bd(t,n);if(fr.throwOnInvalid)throw new SKe(o);return new Cr({invalid:o})}static fromDateTimes(t,n){const o=Ub(t),i=Ub(n),r=oXe(o,i);return r??new Cr({start:o,end:i})}static after(t,n){const o=mi.fromDurationLike(n),i=Ub(t);return Cr.fromDateTimes(i,i.plus(o))}static before(t,n){const o=mi.fromDurationLike(n),i=Ub(t);return Cr.fromDateTimes(i.minus(o),i)}static fromISO(t,n){const[o,i]=(t||"").split("/",2);if(o&&i){let r,s;try{r=Rn.fromISO(o,n),s=r.isValid}catch{s=!1}let a,l;try{a=Rn.fromISO(i,n),l=a.isValid}catch{l=!1}if(s&&l)return Cr.fromDateTimes(r,a);if(s){const d=mi.fromISO(i,n);if(d.isValid)return Cr.after(r,d)}else if(l){const d=mi.fromISO(o,n);if(d.isValid)return Cr.before(a,d)}}return Cr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const o=this.start.startOf(t,n);let i;return n!=null&&n.useLocaleWeeks?i=this.end.reconfigure({locale:o.locale}):i=this.end,i=i.startOf(t,n),Math.floor(i.diff(o,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?Cr.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Ub).filter(s=>this.contains(s)).sort((s,a)=>s.toMillis()-a.toMillis()),o=[];let{s:i}=this,r=0;for(;i<this.e;){const s=n[r]||this.e,a=+s>+this.e?this.e:s;o.push(Cr.fromDateTimes(i,a)),i=a,r+=1}return o}splitBy(t){const n=mi.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:o}=this,i=1,r;const s=[];for(;o<this.e;){const a=this.start.plus(n.mapUnits(l=>l*i));r=+a>+this.e?this.e:a,s.push(Cr.fromDateTimes(o,r)),o=r,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,o=this.e<t.e?this.e:t.e;return n>=o?null:Cr.fromDateTimes(n,o)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,o=this.e>t.e?this.e:t.e;return Cr.fromDateTimes(n,o)}static merge(t){const[n,o]=t.sort((i,r)=>i.s-r.s).reduce(([i,r],s)=>r?r.overlaps(s)||r.abutsStart(s)?[i,r.union(s)]:[i.concat([r]),s]:[i,s],[[],null]);return o&&n.push(o),n}static xor(t){let n=null,o=0;const i=[],r=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...r),a=s.sort((l,d)=>l.time-d.time);for(const l of a)o+=l.type==="s"?1:-1,o===1?n=l.time:(n&&+n!=+l.time&&i.push(Cr.fromDateTimes(n,l.time)),n=null);return Cr.merge(i)}difference(...t){return Cr.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:gv}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=N5,n={}){return this.isValid?ua.create(this.s.loc.clone(n),t).formatInterval(this):gv}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:gv}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:gv}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:gv}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:gv}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):mi.invalid(this.invalidReason)}mapEndpoints(t){return Cr.fromDateTimes(t(this.s),t(this.e))}}class Kv{static hasDST(t=fr.defaultZone){const n=Rn.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Cf.isValidZone(t)}static normalizeZone(t){return Am(t,fr.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Ii.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Ii.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Ii.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||Ii.create(n,o,r)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||Ii.create(n,o,r)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null}={}){return(i||Ii.create(n,o,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null}={}){return(i||Ii.create(n,o,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Ii.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Ii.create(n,null,"gregory").eras(t)}static features(){return{relative:aie(),localeWeek:lie()}}}function wH(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=n(t)-n(e);return Math.floor(mi.fromMillis(o).as("days"))}function iXe(e,t,n){const o=[["years",(l,d)=>d.year-l.year],["quarters",(l,d)=>d.quarter-l.quarter+(d.year-l.year)*4],["months",(l,d)=>d.month-l.month+(d.year-l.year)*12],["weeks",(l,d)=>{const u=wH(l,d);return(u-u%7)/7}],["days",wH]],i={},r=e;let s,a;for(const[l,d]of o)n.indexOf(l)>=0&&(s=l,i[l]=d(e,t),a=r.plus(i),a>t?(i[l]--,e=r.plus(i),e>t&&(a=e,i[l]--,e=r.plus(i))):e=a);return[e,i,a,s]}function rXe(e,t,n,o){let[i,r,s,a]=iXe(e,t,n);const l=t-i,d=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);d.length===0&&(s<t&&(s=i.plus({[a]:1})),s!==i&&(r[a]=(r[a]||0)+l/(s-i)));const u=mi.fromObject(r,o);return d.length>0?mi.fromMillis(l,o).shiftTo(...d).plus(u):u}const sXe="missing Intl.DateTimeFormat.formatToParts support";function $i(e,t=n=>n){return{regex:e,deser:([n])=>t(ZKe(n))}}const aXe=String.fromCharCode(160),Tie=`[ ${aXe}]`,Eie=new RegExp(Tie,"g");function lXe(e){return e.replace(/\./g,"\\.?").replace(Eie,Tie)}function $H(e){return e.replace(/\./g,"").replace(Eie," ").toLowerCase()}function Td(e,t){return e===null?null:{regex:RegExp(e.map(lXe).join("|")),deser:([n])=>e.findIndex(o=>$H(n)===$H(o))+t}}function CH(e,t){return{regex:e,deser:([,n,o])=>n6(n,o),groups:t}}function Uw(e){return{regex:e,deser:([t])=>t}}function cXe(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function dXe(e,t){const n=Sd(t),o=Sd(t,"{2}"),i=Sd(t,"{3}"),r=Sd(t,"{4}"),s=Sd(t,"{6}"),a=Sd(t,"{1,2}"),l=Sd(t,"{1,3}"),d=Sd(t,"{1,6}"),u=Sd(t,"{1,9}"),f=Sd(t,"{2,4}"),p=Sd(t,"{4,6}"),v=C=>({regex:RegExp(cXe(C.val)),deser:([$])=>$,literal:!0}),k=(C=>{if(e.literal)return v(C);switch(C.val){case"G":return Td(t.eras("short"),0);case"GG":return Td(t.eras("long"),0);case"y":return $i(d);case"yy":return $i(f,cP);case"yyyy":return $i(r);case"yyyyy":return $i(p);case"yyyyyy":return $i(s);case"M":return $i(a);case"MM":return $i(o);case"MMM":return Td(t.months("short",!0),1);case"MMMM":return Td(t.months("long",!0),1);case"L":return $i(a);case"LL":return $i(o);case"LLL":return Td(t.months("short",!1),1);case"LLLL":return Td(t.months("long",!1),1);case"d":return $i(a);case"dd":return $i(o);case"o":return $i(l);case"ooo":return $i(i);case"HH":return $i(o);case"H":return $i(a);case"hh":return $i(o);case"h":return $i(a);case"mm":return $i(o);case"m":return $i(a);case"q":return $i(a);case"qq":return $i(o);case"s":return $i(a);case"ss":return $i(o);case"S":return $i(l);case"SSS":return $i(i);case"u":return Uw(u);case"uu":return Uw(a);case"uuu":return $i(n);case"a":return Td(t.meridiems(),0);case"kkkk":return $i(r);case"kk":return $i(f,cP);case"W":return $i(a);case"WW":return $i(o);case"E":case"c":return $i(n);case"EEE":return Td(t.weekdays("short",!1),1);case"EEEE":return Td(t.weekdays("long",!1),1);case"ccc":return Td(t.weekdays("short",!0),1);case"cccc":return Td(t.weekdays("long",!0),1);case"Z":case"ZZ":return CH(new RegExp(`([+-]${a.source})(?::(${o.source}))?`),2);case"ZZZ":return CH(new RegExp(`([+-]${a.source})(${o.source})?`),2);case"z":return Uw(/[a-z_+-/]{1,256}?/i);case" ":return Uw(/[^\S\n\r]/);default:return v(C)}})(e)||{invalidReason:sXe};return k.token=e,k}const uXe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function hXe(e,t,n){const{type:o,value:i}=e;if(o==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const r=t[o];let s=o;o==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let a=uXe[s];if(typeof a=="object"&&(a=a[r]),a)return{literal:!1,val:a}}function fXe(e){return[`^${e.map(n=>n.regex).reduce((n,o)=>`${n}(${o.source})`,"")}$`,e]}function mXe(e,t,n){const o=e.match(t);if(o){const i={};let r=1;for(const s in n)if(ey(n,s)){const a=n[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(o.slice(r,r+l))),r+=l}return[o,i]}else return[o,{}]}function pXe(e){const t=r=>{switch(r){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,o;return ro(e.z)||(n=Cf.create(e.z)),ro(e.Z)||(n||(n=new Na(e.Z)),o=e.Z),ro(e.q)||(e.M=(e.q-1)*3+1),ro(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),ro(e.u)||(e.S=xO(e.u)),[Object.keys(e).reduce((r,s)=>{const a=t(s);return a&&(r[a]=e[s]),r},{}),n,o]}let ES=null;function gXe(){return ES||(ES=Rn.fromMillis(1555555555555)),ES}function vXe(e,t){if(e.literal)return e;const n=ua.macroTokenToFormatOpts(e.val),o=Die(n,t);return o==null||o.includes(void 0)?e:o}function Iie(e,t){return Array.prototype.concat(...e.map(n=>vXe(n,t)))}class Pie{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Iie(ua.parseFormat(n),t),this.units=this.tokens.map(o=>dXe(o,t)),this.disqualifyingUnit=this.units.find(o=>o.invalidReason),!this.disqualifyingUnit){const[o,i]=fXe(this.units);this.regex=RegExp(o,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[n,o]=mXe(t,this.regex,this.handlers),[i,r,s]=o?pXe(o):[null,null,void 0];if(ey(o,"a")&&ey(o,"H"))throw new Zv("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:o,result:i,zone:r,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Aie(e,t,n){return new Pie(e,n).explainFromTokens(t)}function _Xe(e,t,n){const{result:o,zone:i,specificOffset:r,invalidReason:s}=Aie(e,t,n);return[o,i,r,s]}function Die(e,t){if(!e)return null;const o=ua.create(t,e).dtFormatter(gXe()),i=o.formatToParts(),r=o.resolvedOptions();return i.map(s=>hXe(s,e,r))}const IS="Invalid DateTime",SH=864e13;function m0(e){return new Bd("unsupported zone",`the zone "${e.name}" is not supported`)}function PS(e){return e.weekData===null&&(e.weekData=R5(e.c)),e.weekData}function AS(e){return e.localWeekData===null&&(e.localWeekData=R5(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Yp(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Rn({...n,...t,old:n})}function xie(e,t,n){let o=e-t*60*1e3;const i=n.offset(o);if(t===i)return[o,t];o-=(i-t)*60*1e3;const r=n.offset(o);return i===r?[o,i]:[e-Math.min(i,r)*60*1e3,Math.max(i,r)]}function Bw(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function r4(e,t,n){return xie(t6(e),t,n)}function TH(e,t){const n=e.o,o=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,r={...e.c,year:o,month:i,day:Math.min(e.c.day,j5(o,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=mi.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=t6(r);let[l,d]=xie(a,n,e.zone);return s!==0&&(l+=s,d=e.zone.offset(l)),{ts:l,o:d}}function vv(e,t,n,o,i,r){const{setZone:s,zone:a}=n;if(e&&Object.keys(e).length!==0||t){const l=t||a,d=Rn.fromObject(e,{...n,zone:l,specificOffset:r});return s?d:d.setZone(a)}else return Rn.invalid(new Bd("unparsable",`the input "${i}" can't be parsed as ${o}`))}function Hw(e,t,n=!0){return e.isValid?ua.create(Ii.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function DS(e,t){const n=e.c.year>9999||e.c.year<0;let o="";return n&&e.c.year>=0&&(o+="+"),o+=Qr(e.c.year,n?6:4),t?(o+="-",o+=Qr(e.c.month),o+="-",o+=Qr(e.c.day)):(o+=Qr(e.c.month),o+=Qr(e.c.day)),o}function EH(e,t,n,o,i,r){let s=Qr(e.c.hour);return t?(s+=":",s+=Qr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(s+=":")):s+=Qr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(s+=Qr(e.c.second),(e.c.millisecond!==0||!o)&&(s+=".",s+=Qr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!r?s+="Z":e.o<0?(s+="-",s+=Qr(Math.trunc(-e.o/60)),s+=":",s+=Qr(Math.trunc(-e.o%60))):(s+="+",s+=Qr(Math.trunc(e.o/60)),s+=":",s+=Qr(Math.trunc(e.o%60)))),r&&(s+="["+e.zone.ianaName+"]"),s}const Oie={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},yXe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},bXe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Lie=["year","month","day","hour","minute","second","millisecond"],kXe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],wXe=["year","ordinal","hour","minute","second","millisecond"];function $Xe(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Moe(e);return t}function IH(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return $Xe(e)}}function CXe(e){return a4[e]||(s4===void 0&&(s4=fr.now()),a4[e]=e.offset(s4)),a4[e]}function PH(e,t){const n=Am(t.zone,fr.defaultZone);if(!n.isValid)return Rn.invalid(m0(n));const o=Ii.fromObject(t);let i,r;if(ro(e.year))i=fr.now();else{for(const l of Lie)ro(e[l])&&(e[l]=Oie[l]);const s=rie(e)||sie(e);if(s)return Rn.invalid(s);const a=CXe(n);[i,r]=r4(e,a,n)}return new Rn({ts:i,zone:n,loc:o,o:r})}function AH(e,t,n){const o=ro(n.round)?!0:n.round,i=(s,a)=>(s=OO(s,o||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(s,a)),r=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return i(r(n.unit),n.unit);for(const s of n.units){const a=r(s);if(Math.abs(a)>=1)return i(a,s)}return i(e>t?-0:0,n.units[n.units.length-1])}function DH(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let s4,a4={};class Rn{constructor(t){const n=t.zone||fr.defaultZone;let o=t.invalid||(Number.isNaN(t.ts)?new Bd("invalid input"):null)||(n.isValid?null:m0(n));this.ts=ro(t.ts)?fr.now():t.ts;let i=null,r=null;if(!o)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,r]=[t.old.c,t.old.o];else{const a=Wm(t.o)&&!t.old?t.o:n.offset(this.ts);i=Bw(this.ts,a),o=Number.isNaN(i.year)?new Bd("invalid input"):null,i=o?null:i,r=o?null:a}this._zone=n,this.loc=t.loc||Ii.create(),this.invalid=o,this.weekData=null,this.localWeekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}static now(){return new Rn({})}static local(){const[t,n]=DH(arguments),[o,i,r,s,a,l,d]=n;return PH({year:o,month:i,day:r,hour:s,minute:a,second:l,millisecond:d},t)}static utc(){const[t,n]=DH(arguments),[o,i,r,s,a,l,d]=n;return t.zone=Na.utcInstance,PH({year:o,month:i,day:r,hour:s,minute:a,second:l,millisecond:d},t)}static fromJSDate(t,n={}){const o=eJe(t)?t.valueOf():NaN;if(Number.isNaN(o))return Rn.invalid("invalid input");const i=Am(n.zone,fr.defaultZone);return i.isValid?new Rn({ts:o,zone:i,loc:Ii.fromObject(n)}):Rn.invalid(m0(i))}static fromMillis(t,n={}){if(Wm(t))return t<-SH||t>SH?Rn.invalid("Timestamp out of range"):new Rn({ts:t,zone:Am(n.zone,fr.defaultZone),loc:Ii.fromObject(n)});throw new la(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Wm(t))return new Rn({ts:t*1e3,zone:Am(n.zone,fr.defaultZone),loc:Ii.fromObject(n)});throw new la("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const o=Am(n.zone,fr.defaultZone);if(!o.isValid)return Rn.invalid(m0(o));const i=Ii.fromObject(n),r=F5(t,IH),{minDaysInFirstWeek:s,startOfWeek:a}=pH(r,i),l=fr.now(),d=ro(n.specificOffset)?o.offset(l):n.specificOffset,u=!ro(r.ordinal),f=!ro(r.year),p=!ro(r.month)||!ro(r.day),v=f||p,_=r.weekYear||r.weekNumber;if((v||u)&&_)throw new Zv("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&u)throw new Zv("Can't mix ordinal dates with month/day");const k=_||r.weekday&&!v;let C,$,E=Bw(l,d);k?(C=kXe,$=yXe,E=R5(E,s,a)):u?(C=wXe,$=bXe,E=TS(E)):(C=Lie,$=Oie);let P=!1;for(const q of C){const B=r[q];ro(B)?P?r[q]=$[q]:r[q]=E[q]:P=!0}const I=k?JKe(r,s,a):u?XKe(r):rie(r),O=I||sie(r);if(O)return Rn.invalid(O);const L=k?fH(r,s,a):u?mH(r):r,[S,j]=r4(L,d,o),M=new Rn({ts:S,zone:o,o:j,loc:i});return r.weekday&&v&&t.weekday!==M.weekday?Rn.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${M.toISO()}`):M.isValid?M:Rn.invalid(M.invalid)}static fromISO(t,n={}){const[o,i]=HJe(t);return vv(o,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[o,i]=VJe(t);return vv(o,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[o,i]=qJe(t);return vv(o,i,n,"HTTP",n)}static fromFormat(t,n,o={}){if(ro(t)||ro(n))throw new la("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:r=null}=o,s=Ii.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),[a,l,d,u]=_Xe(s,t,n);return u?Rn.invalid(u):vv(a,l,o,`format ${n}`,t,d)}static fromString(t,n,o={}){return Rn.fromFormat(t,n,o)}static fromSQL(t,n={}){const[o,i]=XJe(t);return vv(o,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new la("need to specify a reason the DateTime is invalid");const o=t instanceof Bd?t:new Bd(t,n);if(fr.throwOnInvalid)throw new CKe(o);return new Rn({invalid:o})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const o=Die(t,Ii.fromObject(n));return o?o.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return Iie(ua.parseFormat(t),Ii.fromObject(n)).map(i=>i.val).join("")}static resetCache(){s4=void 0,a4={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?PS(this).weekYear:NaN}get weekNumber(){return this.isValid?PS(this).weekNumber:NaN}get weekday(){return this.isValid?PS(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?AS(this).weekday:NaN}get localWeekNumber(){return this.isValid?AS(this).weekNumber:NaN}get localWeekYear(){return this.isValid?AS(this).weekYear:NaN}get ordinal(){return this.isValid?TS(this.c).ordinal:NaN}get monthShort(){return this.isValid?Kv.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Kv.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Kv.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Kv.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,o=t6(this.c),i=this.zone.offset(o-t),r=this.zone.offset(o+t),s=this.zone.offset(o-i*n),a=this.zone.offset(o-r*n);if(s===a)return[this];const l=o-s*n,d=o-a*n,u=Bw(l,s),f=Bw(d,a);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[Yp(this,{ts:l}),Yp(this,{ts:d})]:[this]}get isInLeapYear(){return x3(this.year)}get daysInMonth(){return j5(this.year,this.month)}get daysInYear(){return this.isValid?b_(this.year):NaN}get weeksInWeekYear(){return this.isValid?B2(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?B2(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:o,calendar:i}=ua.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:o,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Na.instance(t),n)}toLocal(){return this.setZone(fr.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:o=!1}={}){if(t=Am(t,fr.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||o){const r=t.offset(this.ts),s=this.toObject();[i]=r4(s,r,t)}return Yp(this,{ts:i,zone:t})}else return Rn.invalid(m0(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:o}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:o});return Yp(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=F5(t,IH),{minDaysInFirstWeek:o,startOfWeek:i}=pH(n,this.loc),r=!ro(n.weekYear)||!ro(n.weekNumber)||!ro(n.weekday),s=!ro(n.ordinal),a=!ro(n.year),l=!ro(n.month)||!ro(n.day),d=a||l,u=n.weekYear||n.weekNumber;if((d||s)&&u)throw new Zv("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Zv("Can't mix ordinal dates with month/day");let f;r?f=fH({...R5(this.c,o,i),...n},o,i):ro(n.ordinal)?(f={...this.toObject(),...n},ro(n.day)&&(f.day=Math.min(j5(f.year,f.month),f.day))):f=mH({...TS(this.c),...n});const[p,v]=r4(f,this.o,this.zone);return Yp(this,{ts:p,o:v})}plus(t){if(!this.isValid)return this;const n=mi.fromDurationLike(t);return Yp(this,TH(this,n))}minus(t){if(!this.isValid)return this;const n=mi.fromDurationLike(t).negate();return Yp(this,TH(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const o={},i=mi.normalizeUnit(t);switch(i){case"years":o.month=1;case"quarters":case"months":o.day=1;case"weeks":case"days":o.hour=0;case"hours":o.minute=0;case"minutes":o.second=0;case"seconds":o.millisecond=0;break}if(i==="weeks")if(n){const r=this.loc.getStartOfWeek(),{weekday:s}=this;s<r&&(o.weekNumber=this.weekNumber-1),o.weekday=r}else o.weekday=1;if(i==="quarters"){const r=Math.ceil(this.month/3);o.month=(r-1)*3+1}return this.set(o)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?ua.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):IS}toLocaleString(t=N5,n={}){return this.isValid?ua.create(this.loc.clone(n),t).formatDateTime(this):IS}toLocaleParts(t={}){return this.isValid?ua.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:o=!1,includeOffset:i=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const s=t==="extended";let a=DS(this,s);return a+="T",a+=EH(this,s,n,o,i,r),a}toISODate({format:t="extended"}={}){return this.isValid?DS(this,t==="extended"):null}toISOWeekDate(){return Hw(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:o=!0,includePrefix:i=!1,extendedZone:r=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+EH(this,s==="extended",n,t,o,r):null}toRFC2822(){return Hw(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Hw(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?DS(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:o=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(o&&(i+=" "),n?i+="z":t&&(i+="ZZ")),Hw(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():IS}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",o={}){if(!this.isValid||!t.isValid)return mi.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...o},r=tJe(n).map(mi.normalizeUnit),s=t.valueOf()>this.valueOf(),a=s?this:t,l=s?t:this,d=rXe(a,l,r,i);return s?d.negate():d}diffNow(t="milliseconds",n={}){return this.diff(Rn.now(),t,n)}until(t){return this.isValid?Cr.fromDateTimes(this,t):this}hasSame(t,n,o){if(!this.isValid)return!1;const i=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(n,o)<=i&&i<=r.endOf(n,o)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Rn.fromObject({},{zone:this.zone}),o=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],r=t.unit;return Array.isArray(t.unit)&&(i=t.unit,r=void 0),AH(n,this.plus(o),{...t,numeric:"always",units:i,unit:r})}toRelativeCalendar(t={}){return this.isValid?AH(t.base||Rn.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Rn.isDateTime))throw new la("min requires all arguments be DateTimes");return gH(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Rn.isDateTime))throw new la("max requires all arguments be DateTimes");return gH(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,o={}){const{locale:i=null,numberingSystem:r=null}=o,s=Ii.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});return Aie(s,t,n)}static fromStringExplain(t,n,o={}){return Rn.fromFormatExplain(t,n,o)}static buildFormatParser(t,n={}){const{locale:o=null,numberingSystem:i=null}=n,r=Ii.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return new Pie(r,t)}static fromFormatParser(t,n,o={}){if(ro(t)||ro(n))throw new la("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:r=null}=o,s=Ii.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});if(!s.equals(n.locale))throw new la(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${n.locale}`);const{result:a,zone:l,specificOffset:d,invalidReason:u}=n.explainFromTokens(t);return u?Rn.invalid(u):vv(a,l,o,`format ${n.format}`,t,d)}static get DATE_SHORT(){return N5}static get DATE_MED(){return Noe}static get DATE_MED_WITH_WEEKDAY(){return EKe}static get DATE_FULL(){return Roe}static get DATE_HUGE(){return joe}static get TIME_SIMPLE(){return Foe}static get TIME_WITH_SECONDS(){return zoe}static get TIME_WITH_SHORT_OFFSET(){return Uoe}static get TIME_WITH_LONG_OFFSET(){return Boe}static get TIME_24_SIMPLE(){return Hoe}static get TIME_24_WITH_SECONDS(){return Voe}static get TIME_24_WITH_SHORT_OFFSET(){return qoe}static get TIME_24_WITH_LONG_OFFSET(){return Yoe}static get DATETIME_SHORT(){return Woe}static get DATETIME_SHORT_WITH_SECONDS(){return Goe}static get DATETIME_MED(){return Zoe}static get DATETIME_MED_WITH_SECONDS(){return Koe}static get DATETIME_MED_WITH_WEEKDAY(){return IKe}static get DATETIME_FULL(){return Joe}static get DATETIME_FULL_WITH_SECONDS(){return Xoe}static get DATETIME_HUGE(){return Qoe}static get DATETIME_HUGE_WITH_SECONDS(){return eie}}function Ub(e){if(Rn.isDateTime(e))return e;if(e&&e.valueOf&&Wm(e.valueOf()))return Rn.fromJSDate(e);if(e&&typeof e=="object")return Rn.fromObject(e);throw new la(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function SXe(e,t){var n=t[typeof e=="string"?e.toUpperCase():e];return typeof n=="number"?n:1}function TXe(e,t,n){if(e){var o=e.toLowerCase().split(/[-_]/),i=o[0],r=i,s;if(o[1]&&o[1].length===4?(r+="_"+o[1],s=o[2]):s=o[1],s||(s=t[r]||t[i]),s)return SXe(s.match(/^\d+$/)?Number(s):s,n)}return 1}var EXe={en:"US",hi:"IN",deva:"IN",te:"IN",mr:"IN",ta:"IN",gu:"IN",kn:"IN",or:"IN",ml:"IN",pa:"IN",bho:"IN",awa:"IN",as:"IN",mwr:"IN",mai:"IN",mag:"IN",bgc:"IN",hne:"IN",dcc:"IN",bn:"BD",beng:"BD",rkt:"BD",dz:"BT",tibt:"BT",tn:"BW",am:"ET",ethi:"ET",om:"ET",quc:"GT",id:"ID",jv:"ID",su:"ID",mad:"ID",ms_arab:"ID",he:"IL",hebr:"IL",jam:"JM",ja:"JP",jpan:"JP",km:"KH",khmr:"KH",ko:"KR",kore:"KR",lo:"LA",laoo:"LA",mh:"MH",my:"MM",mymr:"MM",mt:"MT",ne:"NP",fil:"PH",ceb:"PH",ilo:"PH",ur:"PK",pa_arab:"PK",lah:"PK",ps:"PK",sd:"PK",skr:"PK",gn:"PY",th:"TH",thai:"TH",tts:"TH",zh_hant:"TW",hant:"TW",sm:"WS",zu:"ZA",sn:"ZW",arq:"DZ",ar:"EG",arab:"EG",arz:"EG",fa:"IR",az_arab:"IR",dv:"MV",thaa:"MV"},IXe={AG:0,ATG:0,28:0,AS:0,ASM:0,16:0,BD:0,BGD:0,50:0,BR:0,BRA:0,76:0,BS:0,BHS:0,44:0,BT:0,BTN:0,64:0,BW:0,BWA:0,72:0,BZ:0,BLZ:0,84:0,CA:0,CAN:0,124:0,CO:0,COL:0,170:0,DM:0,DMA:0,212:0,DO:0,DOM:0,214:0,ET:0,ETH:0,231:0,GT:0,GTM:0,320:0,GU:0,GUM:0,316:0,HK:0,HKG:0,344:0,HN:0,HND:0,340:0,ID:0,IDN:0,360:0,IL:0,ISR:0,376:0,IN:0,IND:0,356:0,JM:0,JAM:0,388:0,JP:0,JPN:0,392:0,KE:0,KEN:0,404:0,KH:0,KHM:0,116:0,KR:0,KOR:0,410:0,LA:0,LA0:0,418:0,MH:0,MHL:0,584:0,MM:0,MMR:0,104:0,MO:0,MAC:0,446:0,MT:0,MLT:0,470:0,MX:0,MEX:0,484:0,MZ:0,MOZ:0,508:0,NI:0,NIC:0,558:0,NP:0,NPL:0,524:0,PA:0,PAN:0,591:0,PE:0,PER:0,604:0,PH:0,PHL:0,608:0,PK:0,PAK:0,586:0,PR:0,PRI:0,630:0,PT:0,PRT:0,620:0,PY:0,PRY:0,600:0,SA:0,SAU:0,682:0,SG:0,SGP:0,702:0,SV:0,SLV:0,222:0,TH:0,THA:0,764:0,TT:0,TTO:0,780:0,TW:0,TWN:0,158:0,UM:0,UMI:0,581:0,US:0,USA:0,840:0,VE:0,VEN:0,862:0,VI:0,VIR:0,850:0,WS:0,WSM:0,882:0,YE:0,YEM:0,887:0,ZA:0,ZAF:0,710:0,ZW:0,ZWE:0,716:0,AE:6,ARE:6,784:6,AF:6,AFG:6,4:6,BH:6,BHR:6,48:6,DJ:6,DJI:6,262:6,DZ:6,DZA:6,12:6,EG:6,EGY:6,818:6,IQ:6,IRQ:6,368:6,IR:6,IRN:6,364:6,JO:6,JOR:6,400:6,KW:6,KWT:6,414:6,LY:6,LBY:6,434:6,OM:6,OMN:6,512:6,QA:6,QAT:6,634:6,SD:6,SDN:6,729:6,SY:6,SYR:6,760:6,MV:5,MDV:5,462:5};function PXe(e){return TXe(e,EXe,IXe)}var AXe=Object.defineProperty,DXe=Object.defineProperties,xXe=Object.getOwnPropertyDescriptors,xH=Object.getOwnPropertySymbols,OXe=Object.prototype.hasOwnProperty,LXe=Object.prototype.propertyIsEnumerable,dP=(e,t,n)=>t in e?AXe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MXe=(e,t)=>{for(var n in t||(t={}))OXe.call(t,n)&&dP(e,n,t[n]);if(xH)for(var n of xH(t))LXe.call(t,n)&&dP(e,n,t[n]);return e},NXe=(e,t)=>DXe(e,xXe(t)),xS=(e,t,n)=>(dP(e,typeof t!="symbol"?t+"":t,n),n);function RXe(e){Ha(()=>{document.addEventListener("keydown",e)}),cu(()=>{document.removeEventListener("keydown",e)})}function OH(e){const t=Rn.fromISO(e);return t.isValid?t:void 0}function jXe(e,t){return!e||!t||e<=t}function Mie(e,t,n){const o=e==null?void 0:e.year,i=t==null?void 0:t.year;return!jXe(e,t)||!!o&&n<o||!!i&&n>i}function Nie(e,t,n,o){const i=e==null?void 0:e.month,r=t==null?void 0:t.month;return Mie(e,t,n)||!!i&&e.year===n&&o<e.month||!!r&&t.year===n&&o>t.month}function FXe(e,t,n,o,i){const r=e==null?void 0:e.day,s=t==null?void 0:t.day;return Nie(e,t,n,o)||!!r&&e.month===o&&e.year===n&&i<e.day||!!s&&t.month===o&&t.year===n&&i>t.day}function LH(e,t,n){return e!==null&&n<e||t!==null&&n>t}function zXe(e,t,n){const o=Rn.local(e,t,1);if(!o.isValid)return[];const i=7*(6-1),r=(7-o.weekday+n)%7,s=(7-r)%7,a=o.daysInMonth,l=i-(a-r-(r?0:7)),d=o.minus({month:1}).daysInMonth,u=o.minus({month:1}),f=o.plus({month:1});return[...Array(a+s+l)].map((p,v)=>v+1<=s?{year:u.year,month:u.month,day:d+(v+1-s)}:v>=s+a?{year:f.year,month:f.month,day:v+1-(s+a)}:{year:e,month:t,day:v+1-s})}function UXe(){return PXe(fr.defaultLocale)||7}function Rie(e){return e.charAt(0).toUpperCase()+e.slice(1)}function OS(e){return String(e).padStart(2,"0")}function BXe(e){const t=e-1;let n=Kv.weekdays("short").map(o=>Rie(o));return n=n.concat(n.splice(0,t)),n}function jie(){return[...Kv.months().map(e=>Rie(e))]}function HXe(e){return[...Array(Math.ceil(24/e))].map((t,n)=>n*e)}function VXe(e){return[...Array(Math.ceil(60/e))].map((t,n)=>n*e)}function qXe(e){return[...Array(201)].map((t,n)=>e-100+n)}const Fie=e=>(X$("data-v-1c9d4ddb"),e=e(),Q$(),e),YXe={class:"calendar"},WXe={class:"navigation"},GXe=Fie(()=>c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 61.3 102.8"},[c("path",{fill:"none",stroke:"#444","stroke-width":"14","stroke-miterlimit":"10",d:"M56.3 97.8L9.9 51.4 56.3 5"})],-1)),ZXe=[GXe],KXe={class:"current--month"},JXe=Fie(()=>c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 61.3 102.8"},[c("path",{fill:"none",stroke:"#444","stroke-width":"14","stroke-miterlimit":"10",d:"M56.3 97.8L9.9 51.4 56.3 5"})],-1)),XXe=[JXe],QXe={class:"month"},eQe=["onClick"],tQe=xo({__name:"DatetimeCalendar",props:{year:{},month:{},day:{default:void 0},disabled:{default:()=>[]},minDate:{default:void 0},maxDate:{default:void 0},weekStart:{default:1}},emits:["change"],setup(e,{emit:t}){const n=e,o=In(Rn.fromObject({year:n.year.valueOf(),month:n.month.valueOf()},{zone:"UTC"})),i=BXe(n.weekStart),r=jie(),s=dt(()=>o.value.year),a=dt(()=>o.value.month),l=dt(()=>r[a.value-1]),d=dt(()=>zXe(s.value,a.value,n.weekStart).map((v,_)=>({key:_,number:v.day,selected:n.year===v.year&&n.month===v.month&&n.day===v.day,disabled:v.month!==a.value||n.disabled.includes(v.day)||FXe(n.minDate,n.maxDate,s.value,a.value,v.day)}))),u=v=>{v.disabled||t("change",{year:s.value,month:a.value,day:v.number})},f=()=>{o.value=o.value.minus({month:1})},p=()=>{o.value=o.value.plus({month:1})};return(v,_)=>(h(),g("div",YXe,[c("div",WXe,[c("div",{class:"navigation--previous",onClick:f},ZXe),c("div",KXe,m(l.value)+" "+m(s.value),1),c("div",{class:"navigation--next",onClick:p},XXe)]),c("div",QXe,[(h(!0),g(pe,null,Me(Et(i),k=>(h(),g("div",{key:k,class:"month__weekday"},m(k),1))),128)),(h(!0),g(pe,null,Me(d.value,k=>(h(),g("div",{key:k.key,class:J(["month__day",{selected:k.selected,disabled:k.disabled}]),onClick:C=>u(k)},[c("span",null,[c("span",null,m(k.number),1)])],10,eQe))),128))])]))}}),Vy=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},nQe=Vy(tQe,[["__scopeId","data-v-1c9d4ddb"]]);function z5(e,t){const n=()=>{var o,i,r;if(e.value){const s=(o=e.value)==null?void 0:o.querySelector(t);(r=(i=e.value).scrollTo)==null||r.call(i,{top:s?s.offsetTop-152:0,behavior:"auto"})}};return Ha(n),ky(n),n}const oQe={class:"container"},iQe=["onClick"],rQe=xo({__name:"DatetimeMonthPicker",props:{year:{},month:{},minDate:{},maxDate:{}},emits:["change"],setup(e,{emit:t}){const n=e,o=dt(()=>jie().map((s,a)=>({key:a,number:++a,label:s,selected:a===n.month,disabled:!(a+1)||Nie(n.minDate,n.maxDate,n.year,a)}))),i=In(null);z5(i,".selected");const r=s=>{s.disabled||t("change",s.number,10)};return(s,a)=>(h(),g("div",oQe,[c("div",{ref_key:"monthList",ref:i,class:"list"},[(h(!0),g(pe,null,Me(o.value,l=>(h(),g("div",{key:l.key,class:J(["item",{selected:l.selected,disabled:l.disabled}]),onClick:d=>r(l)},m(l.label),11,iQe))),128))],512)]))}}),sQe=Vy(rQe,[["__scopeId","data-v-49c60518"]]),aQe=["onClick"],lQe=["onClick"],cQe={key:0,ref:"suffixList",class:"list list--suffix"},dQe=xo({__name:"DatetimeTimePicker",props:{hour:{},minute:{},use12Hour:{type:Boolean,default:!1},hourStep:{default:1},minuteStep:{default:1},minTime:{default:void 0},maxTime:{default:void 0}},emits:["change"],setup(e,{emit:t}){const n=e,o=dt(()=>n.minTime?parseInt(n.minTime.split(":")[0],10):null),i=dt(()=>n.maxTime?parseInt(n.maxTime.split(":")[0],10):null),r=dt(()=>HXe(n.hourStep).filter(k=>n.use12Hour?n.hour<12?k<12:k>=12:!0).map(k=>({key:k,number:k,label:OS(k),selected:k===n.hour,disabled:LH(o.value,i.value,k)}))),s=dt(()=>n.minTime&&o.value===n.hour?parseInt(n.minTime.split(":")[1],10):null),a=dt(()=>n.maxTime&&i.value===n.hour?parseInt(n.maxTime.split(":")[1],10):null),l=dt(()=>VXe(n.minuteStep).map(k=>({key:k,number:k,label:OS(k),selected:k===n.minute,disabled:LH(s.value,a.value,k)}))),d=In(null),u=In(null);z5(d,".selected"),z5(u,".selected");const f=k=>{k.disabled||t("change",{hour:k.number})},p=k=>{k.disabled||t("change",{minute:k.number})},v=k=>{k==="am"&&n.hour>=12&&t("change",{hour:n.hour-12,suffixTouched:!0}),k==="pm"&&n.hour<12&&t("change",{hour:n.hour+12,suffixTouched:!0})},_=k=>n.use12Hour?k%12?k%12:12:k;return(k,C)=>(h(),g("div",{class:J(["container",{"with-suffix":k.use12Hour}])},[c("div",{ref_key:"hourList",ref:d,class:"list list--hour"},[(h(!0),g(pe,null,Me(r.value,$=>(h(),g("div",{key:$.key,class:J(["item",{selected:$.selected,disabled:$.disabled}]),onClick:E=>f($)},m(Et(OS)(_($.number))),11,aQe))),128))],512),c("div",{ref_key:"minuteList",ref:u,class:"list list--minute"},[(h(!0),g(pe,null,Me(l.value,$=>(h(),g("div",{key:$.key,class:J(["item",{selected:$.selected,disabled:$.disabled}]),onClick:E=>p($)},m($.label),11,lQe))),128))],512),k.use12Hour?(h(),g("div",cQe,[c("div",{class:J(["item",{selected:k.hour<12}]),onClick:C[0]||(C[0]=$=>v("am"))}," am ",2),c("div",{class:J(["item",{selected:k.hour>=12}]),onClick:C[1]||(C[1]=$=>v("pm"))}," pm ",2)],512)):D("",!0)],2))}}),uQe=Vy(dQe,[["__scopeId","data-v-3b2f97c5"]]),hQe={class:"container"},fQe=["onClick"],mQe=xo({__name:"DatetimeYearPicker",props:{year:{},minDate:{},maxDate:{}},emits:["change"],setup(e,{emit:t}){const n=e,o=dt(()=>qXe(n.year).map(s=>({key:s,number:s,selected:s===n.year,disabled:!s||Mie(n.minDate,n.maxDate,s)}))),i=In(null);z5(i,".selected");const r=s=>{s.disabled||t("change",s.number,10)};return(s,a)=>(h(),g("div",hQe,[c("div",{ref_key:"yearList",ref:i,class:"list"},[(h(!0),g(pe,null,Me(o.value,l=>(h(),g("div",{key:l.key,class:J(["item",{selected:l.selected,disabled:l.disabled}]),onClick:d=>r(l)},m(l.number),11,fQe))),128))],512)]))}}),pQe=Vy(mQe,[["__scopeId","data-v-050926bb"]]),gQe=["time"],vQe=["date"],_Qe=["date","time"],zie="end";class l4{constructor(t=[]){xS(this,"flow"),xS(this,"endStatus",zie),xS(this,"diversionNext"),this.flow=t,this.diversionNext=null}step(t){return t>=0&&this.flow.length>t?this.flow[t]:this.endStatus}first(){return this.step(0)}next(t){if(this.diversionNext){const n=this.diversionNext;return this.diversionNext=null,n}return this.step(this.flow.indexOf(t)+1)}diversion(t){this.diversionNext=t}}const yQe=e=>new l4(e),bQe=e=>{switch(e){case"datetime":return new l4(_Qe);case"date":return new l4(vQe);case"time":return new l4(gQe);default:throw new TypeError(`Cannot create flow type of ${e}`)}},kQe={class:"popup"},wQe={class:"header"},$Qe={key:0,class:"title"},CQe={class:"popup__body"},SQe={class:"actions"},TQe=xo({__name:"DatetimePopup",props:{datetime:{},phrases:{default:()=>({cancel:"Cancel",ok:"Ok"})},type:{default:"date"},use12Hour:{type:Boolean,default:!1},hourStep:{default:1},minuteStep:{default:1},minDatetime:{default:void 0},maxDatetime:{default:void 0},auto:{type:Boolean,default:!1},weekStart:{default:1},flow:{default:void 0},title:{default:""}},emits:["cancel","confirm"],setup(e,{emit:t}){var n;const o=e,i=o.flow?yQe(o.flow):bQe(o.type),r=In((n=o.datetime)!=null?n:Rn.now()),s=In(i.first());let a={};const l=()=>{s.value=i.next(s.value),a={},s.value===zie&&t("confirm",r.value)};RXe(S=>{switch(S.key){case"Escape":case"Tab":t("cancel");break;case"Enter":l();break}});const d=dt(()=>r.value.year),u=dt(()=>r.value.month),f=dt(()=>r.value.day),p=dt(()=>r.value.hour),v=dt(()=>r.value.minute),_=dt(()=>r.value.toLocaleString({month:"long",day:"numeric"})),k=dt(()=>o.minDatetime&&o.minDatetime.year===d.value&&o.minDatetime.month===u.value&&o.minDatetime.day===f.value?o.minDatetime.toFormat("HH:mm"):void 0),C=dt(()=>o.maxDatetime&&o.maxDatetime.year===d.value&&o.maxDatetime.month===u.value&&o.maxDatetime.day===f.value?o.maxDatetime.toFormat("HH:mm"):void 0),$=()=>{s.value="year",i.diversion("date")},E=()=>{s.value="month",i.diversion("date")},P=S=>{r.value=r.value.set({year:S}),o.auto&&l()},I=S=>{r.value=r.value.set({month:S}),o.auto&&l()},O=S=>{r.value=r.value.set({year:S==null?void 0:S.year,month:S==null?void 0:S.month,day:S==null?void 0:S.day}),o.auto&&l()},L=S=>{S.suffixTouched&&(a.suffix=!0),Number.isInteger(S.hour)&&(r.value=r.value.set({hour:S==null?void 0:S.hour}),a.hour=!0),Number.isInteger(S.minute)&&(r.value=r.value.set({minute:S==null?void 0:S.minute}),a.minutes=!0)};return(S,j)=>(h(),g("div",kQe,[c("div",wQe,[S.title?(h(),g("div",$Qe,m(S.title),1)):D("",!0),S.type!=="time"?(h(),g("div",{key:1,class:"year",onClick:$},m(d.value),1)):D("",!0),S.type!=="time"?(h(),g("div",{key:2,class:"month",onClick:E},m(_.value),1)):D("",!0)]),c("div",CQe,[s.value==="year"?(h(),W(pQe,{key:0,"min-date":S.minDatetime,"max-date":S.maxDatetime,year:d.value,onChange:P},null,8,["min-date","max-date","year"])):D("",!0),s.value==="month"?(h(),W(sQe,{key:1,"min-date":S.minDatetime,"max-date":S.maxDatetime,year:d.value,month:u.value,onChange:I},null,8,["min-date","max-date","year","month"])):D("",!0),s.value==="date"?(h(),W(nQe,{key:2,year:d.value,month:u.value,day:f.value,"min-date":S.minDatetime,"max-date":S.maxDatetime,"week-start":S.weekStart,onChange:O},null,8,["year","month","day","min-date","max-date","week-start"])):D("",!0),s.value==="time"?(h(),W(uQe,{key:3,hour:p.value,minute:v.value,"use12-hour":S.use12Hour,"hour-step":S.hourStep,"minute-step":S.minuteStep,"min-time":k.value,"max-time":C.value,onChange:L},null,8,["hour","minute","use12-hour","hour-step","minute-step","min-time","max-time"])):D("",!0)]),c("div",SQe,[c("div",{class:"actions__button cancel",onClick:j[0]||(j[0]=M=>t("cancel"))},[Pt(S.$slots,"button-cancel__internal",{step:s.value},()=>[z(m(S.phrases.cancel),1)],!0)]),c("div",{class:"actions__button confirm",onClick:j[1]||(j[1]=M=>l())},[Pt(S.$slots,"button-confirm__internal",{step:s.value},()=>[z(m(S.phrases.ok),1)],!0)])])]))}}),Uie=Vy(TQe,[["__scopeId","data-v-084d9cec"]]),EQe=["id","value"],IQe=["onClick"],PQe={inheritAttrs:!1},AQe=xo(NXe(MXe({},PQe),{__name:"DateTime",props:{modelValue:{default:""},valueZone:{default:"UTC"},inputId:{default:void 0},inputClass:{default:""},inputStyle:{default:""},hiddenName:{default:""},zone:{default:"local"},format:{default:void 0},type:{default:"date"},color:{default:"#3f51b5"},phrases:{default:()=>({cancel:"Cancel",ok:"Ok"})},use12Hour:{type:Boolean,default:!1},hourStep:{default:1},minuteStep:{default:1},minDatetime:{default:void 0},maxDatetime:{default:void 0},auto:{type:Boolean,default:!1},weekStart:{default:UXe},flow:{default:void 0},title:{default:""},hideBackdrop:{type:Boolean,default:!1},backdropClick:{type:Boolean,default:!0},fixedDate:{type:Boolean,default:!1},fixedTime:{type:Boolean,default:!1}},emits:["input","close","update:modelValue"],setup(e,{emit:t}){const n=e,o=dt(()=>({"--primary-color":n.color})),i=dt(()=>{if(n.type==="datetime"){if(n.fixedDate)return"time";if(n.fixedTime)return"date"}return n.type}),r=In(!1),s=dt({get(){return OH(n.modelValue)},set($){$&&t("update:modelValue",$.toISO())}}),a=dt(()=>{let $=n.format;if(!$)switch(n.type){case"date":$=Rn.DATE_MED;break;case"time":$=Rn.TIME_24_SIMPLE;break;case"datetime":$=Rn.DATETIME_MED;break;default:return""}return typeof $=="string"?s.value?Rn.fromISO(n.modelValue).setZone(n.zone).toFormat($):"":s.value?s.value.setZone(n.zone).toLocaleString($):""}),l=dt(()=>n.minDatetime?Rn.fromISO(n.minDatetime).setZone(n.zone):void 0),d=dt(()=>n.maxDatetime?Rn.fromISO(n.maxDatetime).setZone(n.zone):void 0),u=()=>{let $=Rn.utc().setZone(n.zone).set({second:0,millisecond:0});if(l.value&&$<l.value&&($=l.value.set({second:0,millisecond:0})),d.value&&$>d.value&&($=d.value.set({second:0,millisecond:0})),n.minuteStep===1)return $;const E=Math.round($.minute/n.minuteStep)*n.minuteStep;return E===60?$.plus({hours:1}).set({minute:0}):$.set({minute:E})},f=dt(()=>s.value?s.value.setZone(n.zone):u()),p=()=>{var $;let E=s.value;E&&n.type==="date"&&(E=E.startOf("day")),t("input",($=E==null?void 0:E.toISO())!=null?$:"")};Ha(()=>{p()});const v=$=>{$.target.blur(),r.value=!0},_=()=>{r.value=!1,t("close")},k=$=>{s.value=$.toUTC(),p(),_()},C=()=>{n.backdropClick&&_()};return Co(()=>n.modelValue,$=>{s.value=OH($)}),($,E)=>(h(),g("div",{class:J(["vdatetime",$.$attrs.class]),style:Bn(o.value)},[Pt($.$slots,"before",{},void 0,!0),c("input",Ur({id:$.inputId,class:["vdatetime-input",$.inputClass],style:$.inputStyle,type:"text",value:a.value},$.$attrs,{onClick:v,onFocus:v}),null,16,EQe),Pt($.$slots,"after",{},void 0,!0),b(r9,{name:"vdatetime-fade",tag:"div"},{default:F(()=>[r.value&&!$.hideBackdrop?(h(),g("div",{key:"overlay",class:"vdatetime-overlay",onClick:Gt(C,["self"])},null,8,IQe)):D("",!0),r.value?(h(),W(Uie,{key:"popup",type:i.value,datetime:f.value,phrases:$.phrases,"use12-hour":$.use12Hour,"hour-step":$.hourStep,"minute-step":$.minuteStep,"min-datetime":l.value,"max-datetime":d.value,auto:$.auto,"week-start":$.weekStart,flow:$.flow,title:$.title,onConfirm:k,onCancel:_},null,8,["type","datetime","phrases","use12-hour","hour-step","minute-step","min-datetime","max-datetime","auto","week-start","flow","title"])):D("",!0)]),_:1})],6))}})),RO=Vy(AQe,[["__scopeId","data-v-09cfd25a"]]);function Bie(){return{install:e=>{e.component("DateTime",RO),e.component("DateTimePopup",Uie)}}}const DQe="__VERSION__";Bie.version=DQe;var Hie={exports:{}};/*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */(function(e,t){(function(o,i){e.exports=i()})(typeof self<"u"?self:bo,function(){return function(n){var o={};function i(r){if(o[r])return o[r].exports;var s=o[r]={i:r,l:!1,exports:{}};return n[r].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=o,i.d=function(r,s,a){i.o(r,s)||Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:a})},i.n=function(r){var s=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(s,"a",s),s},i.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s)},i.p="",i(i.s=109)}([function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(17),s=i(18),a=i(19),l=i(45),d=i(46),u=i(47),f=i(48),p=i(49),v=i(12),_=i(32),k=i(33),C=i(31),$=i(1),E={Scope:$.Scope,create:$.create,find:$.find,query:$.query,register:$.register,Container:r.default,Format:s.default,Leaf:a.default,Embed:f.default,Scroll:l.default,Block:u.default,Inline:d.default,Text:p.default,Attributor:{Attribute:v.default,Class:_.default,Style:k.default,Store:C.default}};o.default=E},function(n,o,i){var r=this&&this.__extends||function(){var C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,E){$.__proto__=E}||function($,E){for(var P in E)E.hasOwnProperty(P)&&($[P]=E[P])};return function($,E){C($,E);function P(){this.constructor=$}$.prototype=E===null?Object.create(E):(P.prototype=E.prototype,new P)}}();Object.defineProperty(o,"__esModule",{value:!0});var s=function(C){r($,C);function $(E){var P=this;return E="[Parchment] "+E,P=C.call(this,E)||this,P.message=E,P.name=P.constructor.name,P}return $}(Error);o.ParchmentError=s;var a={},l={},d={},u={};o.DATA_KEY="__blot";var f;(function(C){C[C.TYPE=3]="TYPE",C[C.LEVEL=12]="LEVEL",C[C.ATTRIBUTE=13]="ATTRIBUTE",C[C.BLOT=14]="BLOT",C[C.INLINE=7]="INLINE",C[C.BLOCK=11]="BLOCK",C[C.BLOCK_BLOT=10]="BLOCK_BLOT",C[C.INLINE_BLOT=6]="INLINE_BLOT",C[C.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",C[C.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",C[C.ANY=15]="ANY"})(f=o.Scope||(o.Scope={}));function p(C,$){var E=_(C);if(E==null)throw new s("Unable to create "+C+" blot");var P=E,I=C instanceof Node||C.nodeType===Node.TEXT_NODE?C:P.create($);return new P(I,$)}o.create=p;function v(C,$){return $===void 0&&($=!1),C==null?null:C[o.DATA_KEY]!=null?C[o.DATA_KEY].blot:$?v(C.parentNode,$):null}o.find=v;function _(C,$){$===void 0&&($=f.ANY);var E;if(typeof C=="string")E=u[C]||a[C];else if(C instanceof Text||C.nodeType===Node.TEXT_NODE)E=u.text;else if(typeof C=="number")C&f.LEVEL&f.BLOCK?E=u.block:C&f.LEVEL&f.INLINE&&(E=u.inline);else if(C instanceof HTMLElement){var P=(C.getAttribute("class")||"").split(/\s+/);for(var I in P)if(E=l[P[I]],E)break;E=E||d[C.tagName]}return E==null?null:$&f.LEVEL&E.scope&&$&f.TYPE&E.scope?E:null}o.query=_;function k(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];if(C.length>1)return C.map(function(I){return k(I)});var E=C[0];if(typeof E.blotName!="string"&&typeof E.attrName!="string")throw new s("Invalid definition");if(E.blotName==="abstract")throw new s("Cannot register abstract class");if(u[E.blotName||E.attrName]=E,typeof E.keyName=="string")a[E.keyName]=E;else if(E.className!=null&&(l[E.className]=E),E.tagName!=null){Array.isArray(E.tagName)?E.tagName=E.tagName.map(function(I){return I.toUpperCase()}):E.tagName=E.tagName.toUpperCase();var P=Array.isArray(E.tagName)?E.tagName:[E.tagName];P.forEach(function(I){(d[I]==null||E.className==null)&&(d[I]=E)})}return E}o.register=k},function(n,o,i){var r=i(51),s=i(11),a=i(3),l=i(20),d=String.fromCharCode(0),u=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};u.prototype.insert=function(f,p){var v={};return f.length===0?this:(v.insert=f,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(v.attributes=p),this.push(v))},u.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},u.prototype.retain=function(f,p){if(f<=0)return this;var v={retain:f};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(v.attributes=p),this.push(v)},u.prototype.push=function(f){var p=this.ops.length,v=this.ops[p-1];if(f=a(!0,{},f),typeof v=="object"){if(typeof f.delete=="number"&&typeof v.delete=="number")return this.ops[p-1]={delete:v.delete+f.delete},this;if(typeof v.delete=="number"&&f.insert!=null&&(p-=1,v=this.ops[p-1],typeof v!="object"))return this.ops.unshift(f),this;if(s(f.attributes,v.attributes)){if(typeof f.insert=="string"&&typeof v.insert=="string")return this.ops[p-1]={insert:v.insert+f.insert},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof v.retain=="number")return this.ops[p-1]={retain:v.retain+f.retain},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this}}return p===this.ops.length?this.ops.push(f):this.ops.splice(p,0,f),this},u.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},u.prototype.filter=function(f){return this.ops.filter(f)},u.prototype.forEach=function(f){this.ops.forEach(f)},u.prototype.map=function(f){return this.ops.map(f)},u.prototype.partition=function(f){var p=[],v=[];return this.forEach(function(_){var k=f(_)?p:v;k.push(_)}),[p,v]},u.prototype.reduce=function(f,p){return this.ops.reduce(f,p)},u.prototype.changeLength=function(){return this.reduce(function(f,p){return p.insert?f+l.length(p):p.delete?f-p.delete:f},0)},u.prototype.length=function(){return this.reduce(function(f,p){return f+l.length(p)},0)},u.prototype.slice=function(f,p){f=f||0,typeof p!="number"&&(p=1/0);for(var v=[],_=l.iterator(this.ops),k=0;k<p&&_.hasNext();){var C;k<f?C=_.next(f-k):(C=_.next(p-k),v.push(C)),k+=l.length(C)}return new u(v)},u.prototype.compose=function(f){var p=l.iterator(this.ops),v=l.iterator(f.ops),_=[],k=v.peek();if(k!=null&&typeof k.retain=="number"&&k.attributes==null){for(var C=k.retain;p.peekType()==="insert"&&p.peekLength()<=C;)C-=p.peekLength(),_.push(p.next());k.retain-C>0&&v.next(k.retain-C)}for(var $=new u(_);p.hasNext()||v.hasNext();)if(v.peekType()==="insert")$.push(v.next());else if(p.peekType()==="delete")$.push(p.next());else{var E=Math.min(p.peekLength(),v.peekLength()),P=p.next(E),I=v.next(E);if(typeof I.retain=="number"){var O={};typeof P.retain=="number"?O.retain=E:O.insert=P.insert;var L=l.attributes.compose(P.attributes,I.attributes,typeof P.retain=="number");if(L&&(O.attributes=L),$.push(O),!v.hasNext()&&s($.ops[$.ops.length-1],O)){var S=new u(p.rest());return $.concat(S).chop()}}else typeof I.delete=="number"&&typeof P.retain=="number"&&$.push(I)}return $.chop()},u.prototype.concat=function(f){var p=new u(this.ops.slice());return f.ops.length>0&&(p.push(f.ops[0]),p.ops=p.ops.concat(f.ops.slice(1))),p},u.prototype.diff=function(f,p){if(this.ops===f.ops)return new u;var v=[this,f].map(function(E){return E.map(function(P){if(P.insert!=null)return typeof P.insert=="string"?P.insert:d;var I=E===f?"on":"with";throw new Error("diff() called "+I+" non-document")}).join("")}),_=new u,k=r(v[0],v[1],p),C=l.iterator(this.ops),$=l.iterator(f.ops);return k.forEach(function(E){for(var P=E[1].length;P>0;){var I=0;switch(E[0]){case r.INSERT:I=Math.min($.peekLength(),P),_.push($.next(I));break;case r.DELETE:I=Math.min(P,C.peekLength()),C.next(I),_.delete(I);break;case r.EQUAL:I=Math.min(C.peekLength(),$.peekLength(),P);var O=C.next(I),L=$.next(I);s(O.insert,L.insert)?_.retain(I,l.attributes.diff(O.attributes,L.attributes)):_.push(L).delete(I);break}P-=I}}),_.chop()},u.prototype.eachLine=function(f,p){p=p||` `;for(var v=l.iterator(this.ops),_=new u,k=0;v.hasNext();){if(v.peekType()!=="insert")return;var C=v.peek(),$=l.length(C)-v.peekLength(),E=typeof C.insert=="string"?C.insert.indexOf(p,$)-$:-1;if(E<0)_.push(v.next());else if(E>0)_.push(v.next(E));else{if(f(_,v.next(1).attributes||{},k)===!1)return;k+=1,_=new u}}_.length()>0&&f(_,{},k)},u.prototype.transform=function(f,p){if(p=!!p,typeof f=="number")return this.transformPosition(f,p);for(var v=l.iterator(this.ops),_=l.iterator(f.ops),k=new u;v.hasNext()||_.hasNext();)if(v.peekType()==="insert"&&(p||_.peekType()!=="insert"))k.retain(l.length(v.next()));else if(_.peekType()==="insert")k.push(_.next());else{var C=Math.min(v.peekLength(),_.peekLength()),$=v.next(C),E=_.next(C);if($.delete)continue;E.delete?k.push(E):k.retain(C,l.attributes.transform($.attributes,E.attributes,p))}return k.chop()},u.prototype.transformPosition=function(f,p){p=!!p;for(var v=l.iterator(this.ops),_=0;v.hasNext()&&_<=f;){var k=v.peekLength(),C=v.peekType();if(v.next(),C==="delete"){f-=Math.min(k,f-_);continue}else C==="insert"&&(_<f||!p)&&(f+=k);_+=k}return f},n.exports=u},function(n,o){var i=Object.prototype.hasOwnProperty,r=Object.prototype.toString,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=function(v){return typeof Array.isArray=="function"?Array.isArray(v):r.call(v)==="[object Array]"},d=function(v){if(!v||r.call(v)!=="[object Object]")return!1;var _=i.call(v,"constructor"),k=v.constructor&&v.constructor.prototype&&i.call(v.constructor.prototype,"isPrototypeOf");if(v.constructor&&!_&&!k)return!1;var C;for(C in v);return typeof C>"u"||i.call(v,C)},u=function(v,_){s&&_.name==="__proto__"?s(v,_.name,{enumerable:!0,configurable:!0,value:_.newValue,writable:!0}):v[_.name]=_.newValue},f=function(v,_){if(_==="__proto__")if(i.call(v,_)){if(a)return a(v,_).value}else return;return v[_]};n.exports=function p(){var v,_,k,C,$,E,P=arguments[0],I=1,O=arguments.length,L=!1;for(typeof P=="boolean"&&(L=P,P=arguments[1]||{},I=2),(P==null||typeof P!="object"&&typeof P!="function")&&(P={});I<O;++I)if(v=arguments[I],v!=null)for(_ in v)k=f(P,_),C=f(v,_),P!==C&&(L&&C&&(d(C)||($=l(C)))?($?($=!1,E=k&&l(k)?k:[]):E=k&&d(k)?k:{},u(P,{name:_,newValue:p(L,E,C)})):typeof C<"u"&&u(P,{name:_,newValue:C}));return P}},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BlockEmbed=o.bubbleFormats=void 0;var r=function(){function B(V,G){for(var Q=0;Q<G.length;Q++){var X=G[Q];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(V,X.key,X)}}return function(V,G,Q){return G&&B(V.prototype,G),Q&&B(V,Q),V}}(),s=function B(V,G,Q){V===null&&(V=Function.prototype);var X=Object.getOwnPropertyDescriptor(V,G);if(X===void 0){var Y=Object.getPrototypeOf(V);return Y===null?void 0:B(Y,G,Q)}else{if("value"in X)return X.value;var Z=X.get;return Z===void 0?void 0:Z.call(Q)}},a=i(3),l=P(a),d=i(2),u=P(d),f=i(0),p=P(f),v=i(16),_=P(v),k=i(6),C=P(k),$=i(7),E=P($);function P(B){return B&&B.__esModule?B:{default:B}}function I(B,V){if(!(B instanceof V))throw new TypeError("Cannot call a class as a function")}function O(B,V){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:B}function L(B,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);B.prototype=Object.create(V&&V.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(B,V):B.__proto__=V)}var S=1,j=function(B){L(V,B);function V(){return I(this,V),O(this,(V.__proto__||Object.getPrototypeOf(V)).apply(this,arguments))}return r(V,[{key:"attach",value:function(){s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"attach",this).call(this),this.attributes=new p.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new u.default().insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(Q,X){var Y=p.default.query(Q,p.default.Scope.BLOCK_ATTRIBUTE);Y!=null&&this.attributes.attribute(Y,X)}},{key:"formatAt",value:function(Q,X,Y,Z){this.format(Y,Z)}},{key:"insertAt",value:function(Q,X,Y){if(typeof X=="string"&&X.endsWith(` `)){var Z=p.default.create(M.blotName);this.parent.insertBefore(Z,Q===0?this:this.next),Z.insertAt(0,X.slice(0,-1))}else s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"insertAt",this).call(this,Q,X,Y)}}]),V}(p.default.Embed);j.scope=p.default.Scope.BLOCK_BLOT;var M=function(B){L(V,B);function V(G){I(this,V);var Q=O(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,G));return Q.cache={},Q}return r(V,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(p.default.Leaf).reduce(function(Q,X){return X.length()===0?Q:Q.insert(X.value(),q(X))},new u.default).insert(` `,q(this))),this.cache.delta}},{key:"deleteAt",value:function(Q,X){s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"deleteAt",this).call(this,Q,X),this.cache={}}},{key:"formatAt",value:function(Q,X,Y,Z){X<=0||(p.default.query(Y,p.default.Scope.BLOCK)?Q+X===this.length()&&this.format(Y,Z):s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"formatAt",this).call(this,Q,Math.min(X,this.length()-Q-1),Y,Z),this.cache={})}},{key:"insertAt",value:function(Q,X,Y){if(Y!=null)return s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"insertAt",this).call(this,Q,X,Y);if(X.length!==0){var Z=X.split(` `),se=Z.shift();se.length>0&&(Q<this.length()-1||this.children.tail==null?s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"insertAt",this).call(this,Math.min(Q,this.length()-1),se):this.children.tail.insertAt(this.children.tail.length(),se),this.cache={});var ce=this;Z.reduce(function(te,ee){return ce=ce.split(te,!0),ce.insertAt(0,ee),ee.length},Q+se.length)}}},{key:"insertBefore",value:function(Q,X){var Y=this.children.head;s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"insertBefore",this).call(this,Q,X),Y instanceof _.default&&Y.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"length",this).call(this)+S),this.cache.length}},{key:"moveChildren",value:function(Q,X){s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"moveChildren",this).call(this,Q,X),this.cache={}}},{key:"optimize",value:function(Q){s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"optimize",this).call(this,Q),this.cache={}}},{key:"path",value:function(Q){return s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"path",this).call(this,Q,!0)}},{key:"removeChild",value:function(Q){s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"removeChild",this).call(this,Q),this.cache={}}},{key:"split",value:function(Q){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(X&&(Q===0||Q>=this.length()-S)){var Y=this.clone();return Q===0?(this.parent.insertBefore(Y,this),this):(this.parent.insertBefore(Y,this.next),Y)}else{var Z=s(V.prototype.__proto__||Object.getPrototypeOf(V.prototype),"split",this).call(this,Q,X);return this.cache={},Z}}}]),V}(p.default.Block);M.blotName="block",M.tagName="P",M.defaultChild="break",M.allowedChildren=[C.default,p.default.Embed,E.default];function q(B){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B==null||(typeof B.formats=="function"&&(V=(0,l.default)(V,B.formats())),B.parent==null||B.parent.blotName=="scroll"||B.parent.statics.scope!==B.statics.scope)?V:q(B.parent,V)}o.bubbleFormats=q,o.BlockEmbed=j,o.default=M},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.overload=o.expandConfig=void 0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},s=function(){function ce(te,ee){var ae=[],de=!0,$e=!1,be=void 0;try{for(var me=te[Symbol.iterator](),fe;!(de=(fe=me.next()).done)&&(ae.push(fe.value),!(ee&&ae.length===ee));de=!0);}catch(Ae){$e=!0,be=Ae}finally{try{!de&&me.return&&me.return()}finally{if($e)throw be}}return ae}return function(te,ee){if(Array.isArray(te))return te;if(Symbol.iterator in Object(te))return ce(te,ee);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function ce(te,ee){for(var ae=0;ae<ee.length;ae++){var de=ee[ae];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(te,de.key,de)}}return function(te,ee,ae){return ee&&ce(te.prototype,ee),ae&&ce(te,ae),te}}();i(50);var l=i(2),d=q(l),u=i(14),f=q(u),p=i(8),v=q(p),_=i(9),k=q(_),C=i(0),$=q(C),E=i(15),P=q(E),I=i(3),O=q(I),L=i(10),S=q(L),j=i(34),M=q(j);function q(ce){return ce&&ce.__esModule?ce:{default:ce}}function B(ce,te,ee){return te in ce?Object.defineProperty(ce,te,{value:ee,enumerable:!0,configurable:!0,writable:!0}):ce[te]=ee,ce}function V(ce,te){if(!(ce instanceof te))throw new TypeError("Cannot call a class as a function")}var G=(0,S.default)("quill"),Q=function(){a(ce,null,[{key:"debug",value:function(ee){ee===!0&&(ee="log"),S.default.level(ee)}},{key:"find",value:function(ee){return ee.__quill||$.default.find(ee)}},{key:"import",value:function(ee){return this.imports[ee]==null&&G.error("Cannot import "+ee+". Are you sure it was registered?"),this.imports[ee]}},{key:"register",value:function(ee,ae){var de=this,$e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof ee!="string"){var be=ee.attrName||ee.blotName;typeof be=="string"?this.register("formats/"+be,ee,ae):Object.keys(ee).forEach(function(me){de.register(me,ee[me],ae)})}else this.imports[ee]!=null&&!$e&&G.warn("Overwriting "+ee+" with",ae),this.imports[ee]=ae,(ee.startsWith("blots/")||ee.startsWith("formats/"))&&ae.blotName!=="abstract"?$.default.register(ae):ee.startsWith("modules")&&typeof ae.register=="function"&&ae.register()}}]);function ce(te){var ee=this,ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(V(this,ce),this.options=X(te,ae),this.container=this.options.container,this.container==null)return G.error("Invalid Quill container",te);this.options.debug&&ce.debug(this.options.debug);var de=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new v.default,this.scroll=$.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new P.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(v.default.events.EDITOR_CHANGE,function(be){be===v.default.events.TEXT_CHANGE&&ee.root.classList.toggle("ql-blank",ee.editor.isBlank())}),this.emitter.on(v.default.events.SCROLL_UPDATE,function(be,me){var fe=ee.selection.lastRange,Ae=fe&&fe.length===0?fe.index:void 0;Y.call(ee,function(){return ee.editor.update(null,me,Ae)},be)});var $e=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+de+"<p><br></p></div>");this.setContents($e),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return a(ce,[{key:"addContainer",value:function(ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof ee=="string"){var de=ee;ee=document.createElement("div"),ee.classList.add(de)}return this.container.insertBefore(ee,ae),ee}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ee,ae,de){var $e=this,be=Z(ee,ae,de),me=s(be,4);return ee=me[0],ae=me[1],de=me[3],Y.call(this,function(){return $e.editor.deleteText(ee,ae)},de,ee,-1*ae)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(ee),this.container.classList.toggle("ql-disabled",!ee)}},{key:"focus",value:function(){var ee=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=ee,this.scrollIntoView()}},{key:"format",value:function(ee,ae){var de=this,$e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;return Y.call(this,function(){var be=de.getSelection(!0),me=new d.default;if(be==null)return me;if($.default.query(ee,$.default.Scope.BLOCK))me=de.editor.formatLine(be.index,be.length,B({},ee,ae));else{if(be.length===0)return de.selection.format(ee,ae),me;me=de.editor.formatText(be.index,be.length,B({},ee,ae))}return de.setSelection(be,v.default.sources.SILENT),me},$e)}},{key:"formatLine",value:function(ee,ae,de,$e,be){var me=this,fe=void 0,Ae=Z(ee,ae,de,$e,be),je=s(Ae,4);return ee=je[0],ae=je[1],fe=je[2],be=je[3],Y.call(this,function(){return me.editor.formatLine(ee,ae,fe)},be,ee,0)}},{key:"formatText",value:function(ee,ae,de,$e,be){var me=this,fe=void 0,Ae=Z(ee,ae,de,$e,be),je=s(Ae,4);return ee=je[0],ae=je[1],fe=je[2],be=je[3],Y.call(this,function(){return me.editor.formatText(ee,ae,fe)},be,ee,0)}},{key:"getBounds",value:function(ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,de=void 0;typeof ee=="number"?de=this.selection.getBounds(ee,ae):de=this.selection.getBounds(ee.index,ee.length);var $e=this.container.getBoundingClientRect();return{bottom:de.bottom-$e.top,height:de.height,left:de.left-$e.left,right:de.right-$e.left,top:de.top-$e.top,width:de.width}}},{key:"getContents",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-ee,de=Z(ee,ae),$e=s(de,2);return ee=$e[0],ae=$e[1],this.editor.getContents(ee,ae)}},{key:"getFormat",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof ee=="number"?this.editor.getFormat(ee,ae):this.editor.getFormat(ee.index,ee.length)}},{key:"getIndex",value:function(ee){return ee.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(ee){return this.scroll.leaf(ee)}},{key:"getLine",value:function(ee){return this.scroll.line(ee)}},{key:"getLines",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof ee!="number"?this.scroll.lines(ee.index,ee.length):this.scroll.lines(ee,ae)}},{key:"getModule",value:function(ee){return this.theme.modules[ee]}},{key:"getSelection",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return ee&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-ee,de=Z(ee,ae),$e=s(de,2);return ee=$e[0],ae=$e[1],this.editor.getText(ee,ae)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ee,ae,de){var $e=this,be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ce.sources.API;return Y.call(this,function(){return $e.editor.insertEmbed(ee,ae,de)},be,ee)}},{key:"insertText",value:function(ee,ae,de,$e,be){var me=this,fe=void 0,Ae=Z(ee,0,de,$e,be),je=s(Ae,4);return ee=je[0],fe=je[2],be=je[3],Y.call(this,function(){return me.editor.insertText(ee,ae,fe)},be,ee,ae.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(ee,ae,de){this.clipboard.dangerouslyPasteHTML(ee,ae,de)}},{key:"removeFormat",value:function(ee,ae,de){var $e=this,be=Z(ee,ae,de),me=s(be,4);return ee=me[0],ae=me[1],de=me[3],Y.call(this,function(){return $e.editor.removeFormat(ee,ae)},de,ee)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(ee){var ae=this,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API;return Y.call(this,function(){ee=new d.default(ee);var $e=ae.getLength(),be=ae.editor.deleteText(0,$e),me=ae.editor.applyDelta(ee),fe=me.ops[me.ops.length-1];fe!=null&&typeof fe.insert=="string"&&fe.insert[fe.insert.length-1]===` `&&(ae.editor.deleteText(ae.getLength()-1,1),me.delete(1));var Ae=be.compose(me);return Ae},de)}},{key:"setSelection",value:function(ee,ae,de){if(ee==null)this.selection.setRange(null,ae||ce.sources.API);else{var $e=Z(ee,ae,de),be=s($e,4);ee=be[0],ae=be[1],de=be[3],this.selection.setRange(new E.Range(ee,ae),de),de!==v.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API,de=new d.default().insert(ee);return this.setContents(de,ae)}},{key:"update",value:function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,ae=this.scroll.update(ee);return this.selection.update(ee),ae}},{key:"updateContents",value:function(ee){var ae=this,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API;return Y.call(this,function(){return ee=new d.default(ee),ae.editor.applyDelta(ee,de)},de,!0)}}]),ce}();Q.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},Q.events=v.default.events,Q.sources=v.default.sources,Q.version="1.3.7",Q.imports={delta:d.default,parchment:$.default,"core/module":k.default,"core/theme":M.default};function X(ce,te){if(te=(0,O.default)(!0,{container:ce,modules:{clipboard:!0,keyboard:!0,history:!0}},te),!te.theme||te.theme===Q.DEFAULTS.theme)te.theme=M.default;else if(te.theme=Q.import("themes/"+te.theme),te.theme==null)throw new Error("Invalid theme "+te.theme+". Did you register it?");var ee=(0,O.default)(!0,{},te.theme.DEFAULTS);[ee,te].forEach(function($e){$e.modules=$e.modules||{},Object.keys($e.modules).forEach(function(be){$e.modules[be]===!0&&($e.modules[be]={})})});var ae=Object.keys(ee.modules).concat(Object.keys(te.modules)),de=ae.reduce(function($e,be){var me=Q.import("modules/"+be);return me==null?G.error("Cannot load "+be+" module. Are you sure you registered it?"):$e[be]=me.DEFAULTS||{},$e},{});return te.modules!=null&&te.modules.toolbar&&te.modules.toolbar.constructor!==Object&&(te.modules.toolbar={container:te.modules.toolbar}),te=(0,O.default)(!0,{},Q.DEFAULTS,{modules:de},ee,te),["bounds","container","scrollingContainer"].forEach(function($e){typeof te[$e]=="string"&&(te[$e]=document.querySelector(te[$e]))}),te.modules=Object.keys(te.modules).reduce(function($e,be){return te.modules[be]&&($e[be]=te.modules[be]),$e},{}),te}function Y(ce,te,ee,ae){if(this.options.strict&&!this.isEnabled()&&te===v.default.sources.USER)return new d.default;var de=ee==null?null:this.getSelection(),$e=this.editor.delta,be=ce();if(de!=null&&(ee===!0&&(ee=de.index),ae==null?de=se(de,be,te):ae!==0&&(de=se(de,ee,ae,te)),this.setSelection(de,v.default.sources.SILENT)),be.length()>0){var me,fe=[v.default.events.TEXT_CHANGE,be,$e,te];if((me=this.emitter).emit.apply(me,[v.default.events.EDITOR_CHANGE].concat(fe)),te!==v.default.sources.SILENT){var Ae;(Ae=this.emitter).emit.apply(Ae,fe)}}return be}function Z(ce,te,ee,ae,de){var $e={};return typeof ce.index=="number"&&typeof ce.length=="number"?typeof te!="number"?(de=ae,ae=ee,ee=te,te=ce.length,ce=ce.index):(te=ce.length,ce=ce.index):typeof te!="number"&&(de=ae,ae=ee,ee=te,te=0),(typeof ee>"u"?"undefined":r(ee))==="object"?($e=ee,de=ae):typeof ee=="string"&&(ae!=null?$e[ee]=ae:de=ee),de=de||v.default.sources.API,[ce,te,$e,de]}function se(ce,te,ee,ae){if(ce==null)return null;var de=void 0,$e=void 0;if(te instanceof d.default){var be=[ce.index,ce.index+ce.length].map(function(je){return te.transformPosition(je,ae!==v.default.sources.USER)}),me=s(be,2);de=me[0],$e=me[1]}else{var fe=[ce.index,ce.index+ce.length].map(function(je){return je<te||je===te&&ae===v.default.sources.USER?je:ee>=0?je+ee:Math.max(te,je+ee)}),Ae=s(fe,2);de=Ae[0],$e=Ae[1]}return new E.Range(de,$e-de)}o.expandConfig=X,o.overload=Z,o.default=Q},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function C($,E){for(var P=0;P<E.length;P++){var I=E[P];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty($,I.key,I)}}return function($,E,P){return E&&C($.prototype,E),P&&C($,P),$}}(),s=function C($,E,P){$===null&&($=Function.prototype);var I=Object.getOwnPropertyDescriptor($,E);if(I===void 0){var O=Object.getPrototypeOf($);return O===null?void 0:C(O,E,P)}else{if("value"in I)return I.value;var L=I.get;return L===void 0?void 0:L.call(P)}},a=i(7),l=f(a),d=i(0),u=f(d);function f(C){return C&&C.__esModule?C:{default:C}}function p(C,$){if(!(C instanceof $))throw new TypeError("Cannot call a class as a function")}function v(C,$){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:C}function _(C,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);C.prototype=Object.create($&&$.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(C,$):C.__proto__=$)}var k=function(C){_($,C);function $(){return p(this,$),v(this,($.__proto__||Object.getPrototypeOf($)).apply(this,arguments))}return r($,[{key:"formatAt",value:function(P,I,O,L){if($.compare(this.statics.blotName,O)<0&&u.default.query(O,u.default.Scope.BLOT)){var S=this.isolate(P,I);L&&S.wrap(O,L)}else s($.prototype.__proto__||Object.getPrototypeOf($.prototype),"formatAt",this).call(this,P,I,O,L)}},{key:"optimize",value:function(P){if(s($.prototype.__proto__||Object.getPrototypeOf($.prototype),"optimize",this).call(this,P),this.parent instanceof $&&$.compare(this.statics.blotName,this.parent.statics.blotName)>0){var I=this.parent.isolate(this.offset(),this.length());this.moveChildren(I),I.wrap(this)}}}],[{key:"compare",value:function(P,I){var O=$.order.indexOf(P),L=$.order.indexOf(I);return O>=0||L>=0?O-L:P===I?0:P<I?-1:1}}]),$}(u.default.Inline);k.allowedChildren=[k,u.default.Embed,l.default],k.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],o.default=k},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(0),s=a(r);function a(p){return p&&p.__esModule?p:{default:p}}function l(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function d(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var f=function(p){u(v,p);function v(){return l(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(s.default.Text);o.default=f},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function E(P,I){for(var O=0;O<I.length;O++){var L=I[O];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}return function(P,I,O){return I&&E(P.prototype,I),O&&E(P,O),P}}(),s=function E(P,I,O){P===null&&(P=Function.prototype);var L=Object.getOwnPropertyDescriptor(P,I);if(L===void 0){var S=Object.getPrototypeOf(P);return S===null?void 0:E(S,I,O)}else{if("value"in L)return L.value;var j=L.get;return j===void 0?void 0:j.call(O)}},a=i(54),l=f(a),d=i(10),u=f(d);function f(E){return E&&E.__esModule?E:{default:E}}function p(E,P){if(!(E instanceof P))throw new TypeError("Cannot call a class as a function")}function v(E,P){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:E}function _(E,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);E.prototype=Object.create(P&&P.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(E,P):E.__proto__=P)}var k=(0,u.default)("quill:events"),C=["selectionchange","mousedown","mouseup","click"];C.forEach(function(E){document.addEventListener(E,function(){for(var P=arguments.length,I=Array(P),O=0;O<P;O++)I[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(L){if(L.__quill&&L.__quill.emitter){var S;(S=L.__quill.emitter).handleDOM.apply(S,I)}})})});var $=function(E){_(P,E);function P(){p(this,P);var I=v(this,(P.__proto__||Object.getPrototypeOf(P)).call(this));return I.listeners={},I.on("error",k.error),I}return r(P,[{key:"emit",value:function(){k.log.apply(k,arguments),s(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(O){for(var L=arguments.length,S=Array(L>1?L-1:0),j=1;j<L;j++)S[j-1]=arguments[j];(this.listeners[O.type]||[]).forEach(function(M){var q=M.node,B=M.handler;(O.target===q||q.contains(O.target))&&B.apply(void 0,[O].concat(S))})}},{key:"listenDOM",value:function(O,L,S){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:L,handler:S})}}]),P}(l.default);$.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},$.sources={API:"api",SILENT:"silent",USER:"user"},o.default=$},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});function r(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}var s=function a(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r(this,a),this.quill=l,this.options=d};s.DEFAULTS={},o.default=s},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=["error","warn","log","info"],s="warn";function a(d){if(r.indexOf(d)<=r.indexOf(s)){for(var u,f=arguments.length,p=Array(f>1?f-1:0),v=1;v<f;v++)p[v-1]=arguments[v];(u=console)[d].apply(u,p)}}function l(d){return r.reduce(function(u,f){return u[f]=a.bind(console,f,d),u},{})}a.level=l.level=function(d){s=d},o.default=l},function(n,o,i){var r=Array.prototype.slice,s=i(52),a=i(53),l=n.exports=function(p,v,_){return _||(_={}),p===v?!0:p instanceof Date&&v instanceof Date?p.getTime()===v.getTime():!p||!v||typeof p!="object"&&typeof v!="object"?_.strict?p===v:p==v:f(p,v,_)};function d(p){return p==null}function u(p){return!(!p||typeof p!="object"||typeof p.length!="number"||typeof p.copy!="function"||typeof p.slice!="function"||p.length>0&&typeof p[0]!="number")}function f(p,v,_){var k,C;if(d(p)||d(v)||p.prototype!==v.prototype)return!1;if(a(p))return a(v)?(p=r.call(p),v=r.call(v),l(p,v,_)):!1;if(u(p)){if(!u(v)||p.length!==v.length)return!1;for(k=0;k<p.length;k++)if(p[k]!==v[k])return!1;return!0}try{var $=s(p),E=s(v)}catch{return!1}if($.length!=E.length)return!1;for($.sort(),E.sort(),k=$.length-1;k>=0;k--)if($[k]!=E[k])return!1;for(k=$.length-1;k>=0;k--)if(C=$[k],!l(p[C],v[C],_))return!1;return typeof p==typeof v}},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(1),s=function(){function a(l,d,u){u===void 0&&(u={}),this.attrName=l,this.keyName=d;var f=r.Scope.TYPE&r.Scope.ATTRIBUTE;u.scope!=null?this.scope=u.scope&r.Scope.LEVEL|f:this.scope=r.Scope.ATTRIBUTE,u.whitelist!=null&&(this.whitelist=u.whitelist)}return a.keys=function(l){return[].map.call(l.attributes,function(d){return d.name})},a.prototype.add=function(l,d){return this.canAdd(l,d)?(l.setAttribute(this.keyName,d),!0):!1},a.prototype.canAdd=function(l,d){var u=r.query(l,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return u==null?!1:this.whitelist==null?!0:typeof d=="string"?this.whitelist.indexOf(d.replace(/["']/g,""))>-1:this.whitelist.indexOf(d)>-1},a.prototype.remove=function(l){l.removeAttribute(this.keyName)},a.prototype.value=function(l){var d=l.getAttribute(this.keyName);return this.canAdd(l,d)&&d?d:""},a}();o.default=s},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.Code=void 0;var r=function(){function j(M,q){var B=[],V=!0,G=!1,Q=void 0;try{for(var X=M[Symbol.iterator](),Y;!(V=(Y=X.next()).done)&&(B.push(Y.value),!(q&&B.length===q));V=!0);}catch(Z){G=!0,Q=Z}finally{try{!V&&X.return&&X.return()}finally{if(G)throw Q}}return B}return function(M,q){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return j(M,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function j(M,q){for(var B=0;B<q.length;B++){var V=q[B];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(M,V.key,V)}}return function(M,q,B){return q&&j(M.prototype,q),B&&j(M,B),M}}(),a=function j(M,q,B){M===null&&(M=Function.prototype);var V=Object.getOwnPropertyDescriptor(M,q);if(V===void 0){var G=Object.getPrototypeOf(M);return G===null?void 0:j(G,q,B)}else{if("value"in V)return V.value;var Q=V.get;return Q===void 0?void 0:Q.call(B)}},l=i(2),d=E(l),u=i(0),f=E(u),p=i(4),v=E(p),_=i(6),k=E(_),C=i(7),$=E(C);function E(j){return j&&j.__esModule?j:{default:j}}function P(j,M){if(!(j instanceof M))throw new TypeError("Cannot call a class as a function")}function I(j,M){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:j}function O(j,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);j.prototype=Object.create(M&&M.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(j,M):j.__proto__=M)}var L=function(j){O(M,j);function M(){return P(this,M),I(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return M}(k.default);L.blotName="code",L.tagName="CODE";var S=function(j){O(M,j);function M(){return P(this,M),I(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return s(M,[{key:"delta",value:function(){var B=this,V=this.domNode.textContent;return V.endsWith(` `)&&(V=V.slice(0,-1)),V.split(` `).reduce(function(G,Q){return G.insert(Q).insert(` `,B.formats())},new d.default)}},{key:"format",value:function(B,V){if(!(B===this.statics.blotName&&V)){var G=this.descendant($.default,this.length()-1),Q=r(G,1),X=Q[0];X!=null&&X.deleteAt(X.length()-1,1),a(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"format",this).call(this,B,V)}}},{key:"formatAt",value:function(B,V,G,Q){if(V!==0&&!(f.default.query(G,f.default.Scope.BLOCK)==null||G===this.statics.blotName&&Q===this.statics.formats(this.domNode))){var X=this.newlineIndex(B);if(!(X<0||X>=B+V)){var Y=this.newlineIndex(B,!0)+1,Z=X-Y+1,se=this.isolate(Y,Z),ce=se.next;se.format(G,Q),ce instanceof M&&ce.formatAt(0,B-Y+V-Z,G,Q)}}}},{key:"insertAt",value:function(B,V,G){if(G==null){var Q=this.descendant($.default,B),X=r(Q,2),Y=X[0],Z=X[1];Y.insertAt(Z,V)}}},{key:"length",value:function(){var B=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` `)?B:B+1}},{key:"newlineIndex",value:function(B){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(V)return this.domNode.textContent.slice(0,B).lastIndexOf(` `);var G=this.domNode.textContent.slice(B).indexOf(` `);return G>-1?B+G:-1}},{key:"optimize",value:function(B){this.domNode.textContent.endsWith(` `)||this.appendChild(f.default.create("text",` `)),a(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,B);var V=this.next;V!=null&&V.prev===this&&V.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===V.statics.formats(V.domNode)&&(V.optimize(B),V.moveChildren(this),V.remove())}},{key:"replace",value:function(B){a(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"replace",this).call(this,B),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(V){var G=f.default.find(V);G==null?V.parentNode.removeChild(V):G instanceof f.default.Embed?G.remove():G.unwrap()})}}],[{key:"create",value:function(B){var V=a(M.__proto__||Object.getPrototypeOf(M),"create",this).call(this,B);return V.setAttribute("spellcheck",!1),V}},{key:"formats",value:function(){return!0}}]),M}(v.default);S.blotName="code-block",S.tagName="PRE",S.TAB=" ",o.Code=L,o.default=S},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},s=function(){function ce(te,ee){var ae=[],de=!0,$e=!1,be=void 0;try{for(var me=te[Symbol.iterator](),fe;!(de=(fe=me.next()).done)&&(ae.push(fe.value),!(ee&&ae.length===ee));de=!0);}catch(Ae){$e=!0,be=Ae}finally{try{!de&&me.return&&me.return()}finally{if($e)throw be}}return ae}return function(te,ee){if(Array.isArray(te))return te;if(Symbol.iterator in Object(te))return ce(te,ee);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function ce(te,ee){for(var ae=0;ae<ee.length;ae++){var de=ee[ae];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(te,de.key,de)}}return function(te,ee,ae){return ee&&ce(te.prototype,ee),ae&&ce(te,ae),te}}(),l=i(2),d=V(l),u=i(20),f=V(u),p=i(0),v=V(p),_=i(13),k=V(_),C=i(24),$=V(C),E=i(4),P=V(E),I=i(16),O=V(I),L=i(21),S=V(L),j=i(11),M=V(j),q=i(3),B=V(q);function V(ce){return ce&&ce.__esModule?ce:{default:ce}}function G(ce,te,ee){return te in ce?Object.defineProperty(ce,te,{value:ee,enumerable:!0,configurable:!0,writable:!0}):ce[te]=ee,ce}function Q(ce,te){if(!(ce instanceof te))throw new TypeError("Cannot call a class as a function")}var X=/^[ -~]*$/,Y=function(){function ce(te){Q(this,ce),this.scroll=te,this.delta=this.getDelta()}return a(ce,[{key:"applyDelta",value:function(ee){var ae=this,de=!1;this.scroll.update();var $e=this.scroll.length();return this.scroll.batchStart(),ee=se(ee),ee.reduce(function(be,me){var fe=me.retain||me.delete||me.insert.length||1,Ae=me.attributes||{};if(me.insert!=null){if(typeof me.insert=="string"){var je=me.insert;je.endsWith(` `)&&de&&(de=!1,je=je.slice(0,-1)),be>=$e&&!je.endsWith(` `)&&(de=!0),ae.scroll.insertAt(be,je);var Ye=ae.scroll.line(be),_t=s(Ye,2),xt=_t[0],we=_t[1],ve=(0,B.default)({},(0,E.bubbleFormats)(xt));if(xt instanceof P.default){var qe=xt.descendant(v.default.Leaf,we),$t=s(qe,1),ut=$t[0];ve=(0,B.default)(ve,(0,E.bubbleFormats)(ut))}Ae=f.default.attributes.diff(ve,Ae)||{}}else if(r(me.insert)==="object"){var Ve=Object.keys(me.insert)[0];if(Ve==null)return be;ae.scroll.insertAt(be,Ve,me.insert[Ve])}$e+=fe}return Object.keys(Ae).forEach(function(tt){ae.scroll.formatAt(be,fe,tt,Ae[tt])}),be+fe},0),ee.reduce(function(be,me){return typeof me.delete=="number"?(ae.scroll.deleteAt(be,me.delete),be):be+(me.retain||me.insert.length||1)},0),this.scroll.batchEnd(),this.update(ee)}},{key:"deleteText",value:function(ee,ae){return this.scroll.deleteAt(ee,ae),this.update(new d.default().retain(ee).delete(ae))}},{key:"formatLine",value:function(ee,ae){var de=this,$e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys($e).forEach(function(be){if(!(de.scroll.whitelist!=null&&!de.scroll.whitelist[be])){var me=de.scroll.lines(ee,Math.max(ae,1)),fe=ae;me.forEach(function(Ae){var je=Ae.length();if(!(Ae instanceof k.default))Ae.format(be,$e[be]);else{var Ye=ee-Ae.offset(de.scroll),_t=Ae.newlineIndex(Ye+fe)-Ye+1;Ae.formatAt(Ye,_t,be,$e[be])}fe-=je})}}),this.scroll.optimize(),this.update(new d.default().retain(ee).retain(ae,(0,S.default)($e)))}},{key:"formatText",value:function(ee,ae){var de=this,$e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys($e).forEach(function(be){de.scroll.formatAt(ee,ae,be,$e[be])}),this.update(new d.default().retain(ee).retain(ae,(0,S.default)($e)))}},{key:"getContents",value:function(ee,ae){return this.delta.slice(ee,ee+ae)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(ee,ae){return ee.concat(ae.delta())},new d.default)}},{key:"getFormat",value:function(ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,de=[],$e=[];ae===0?this.scroll.path(ee).forEach(function(me){var fe=s(me,1),Ae=fe[0];Ae instanceof P.default?de.push(Ae):Ae instanceof v.default.Leaf&&$e.push(Ae)}):(de=this.scroll.lines(ee,ae),$e=this.scroll.descendants(v.default.Leaf,ee,ae));var be=[de,$e].map(function(me){if(me.length===0)return{};for(var fe=(0,E.bubbleFormats)(me.shift());Object.keys(fe).length>0;){var Ae=me.shift();if(Ae==null)return fe;fe=Z((0,E.bubbleFormats)(Ae),fe)}return fe});return B.default.apply(B.default,be)}},{key:"getText",value:function(ee,ae){return this.getContents(ee,ae).filter(function(de){return typeof de.insert=="string"}).map(function(de){return de.insert}).join("")}},{key:"insertEmbed",value:function(ee,ae,de){return this.scroll.insertAt(ee,ae,de),this.update(new d.default().retain(ee).insert(G({},ae,de)))}},{key:"insertText",value:function(ee,ae){var de=this,$e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ae=ae.replace(/\r\n/g,` `).replace(/\r/g,` `),this.scroll.insertAt(ee,ae),Object.keys($e).forEach(function(be){de.scroll.formatAt(ee,ae.length,be,$e[be])}),this.update(new d.default().retain(ee).insert(ae,(0,S.default)($e)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var ee=this.scroll.children.head;return ee.statics.blotName!==P.default.blotName||ee.children.length>1?!1:ee.children.head instanceof O.default}},{key:"removeFormat",value:function(ee,ae){var de=this.getText(ee,ae),$e=this.scroll.line(ee+ae),be=s($e,2),me=be[0],fe=be[1],Ae=0,je=new d.default;me!=null&&(me instanceof k.default?Ae=me.newlineIndex(fe)-fe+1:Ae=me.length()-fe,je=me.delta().slice(fe,fe+Ae-1).insert(` `));var Ye=this.getContents(ee,ae+Ae),_t=Ye.diff(new d.default().insert(de).concat(je)),xt=new d.default().retain(ee).concat(_t);return this.applyDelta(xt)}},{key:"update",value:function(ee){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,$e=this.delta;if(ae.length===1&&ae[0].type==="characterData"&&ae[0].target.data.match(X)&&v.default.find(ae[0].target)){var be=v.default.find(ae[0].target),me=(0,E.bubbleFormats)(be),fe=be.offset(this.scroll),Ae=ae[0].oldValue.replace($.default.CONTENTS,""),je=new d.default().insert(Ae),Ye=new d.default().insert(be.value()),_t=new d.default().retain(fe).concat(je.diff(Ye,de));ee=_t.reduce(function(xt,we){return we.insert?xt.insert(we.insert,me):xt.push(we)},new d.default),this.delta=$e.compose(ee)}else this.delta=this.getDelta(),(!ee||!(0,M.default)($e.compose(ee),this.delta))&&(ee=$e.diff(this.delta,de));return ee}}]),ce}();function Z(ce,te){return Object.keys(te).reduce(function(ee,ae){return ce[ae]==null||(te[ae]===ce[ae]?ee[ae]=te[ae]:Array.isArray(te[ae])?te[ae].indexOf(ce[ae])<0&&(ee[ae]=te[ae].concat([ce[ae]])):ee[ae]=[te[ae],ce[ae]]),ee},{})}function se(ce){return ce.reduce(function(te,ee){if(ee.insert===1){var ae=(0,S.default)(ee.attributes);return delete ae.image,te.insert({image:ee.attributes.image},ae)}if(ee.attributes!=null&&(ee.attributes.list===!0||ee.attributes.bullet===!0)&&(ee=(0,S.default)(ee),ee.attributes.list?ee.attributes.list="ordered":(ee.attributes.list="bullet",delete ee.attributes.bullet)),typeof ee.insert=="string"){var de=ee.insert.replace(/\r\n/g,` `).replace(/\r/g,` `);return te.insert(de,ee.attributes)}return te.push(ee)},new d.default)}o.default=Y},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.Range=void 0;var r=function(){function j(M,q){var B=[],V=!0,G=!1,Q=void 0;try{for(var X=M[Symbol.iterator](),Y;!(V=(Y=X.next()).done)&&(B.push(Y.value),!(q&&B.length===q));V=!0);}catch(Z){G=!0,Q=Z}finally{try{!V&&X.return&&X.return()}finally{if(G)throw Q}}return B}return function(M,q){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return j(M,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function j(M,q){for(var B=0;B<q.length;B++){var V=q[B];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(M,V.key,V)}}return function(M,q,B){return q&&j(M.prototype,q),B&&j(M,B),M}}(),a=i(0),l=$(a),d=i(21),u=$(d),f=i(11),p=$(f),v=i(8),_=$(v),k=i(10),C=$(k);function $(j){return j&&j.__esModule?j:{default:j}}function E(j){if(Array.isArray(j)){for(var M=0,q=Array(j.length);M<j.length;M++)q[M]=j[M];return q}else return Array.from(j)}function P(j,M){if(!(j instanceof M))throw new TypeError("Cannot call a class as a function")}var I=(0,C.default)("quill:selection"),O=function j(M){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;P(this,j),this.index=M,this.length=q},L=function(){function j(M,q){var B=this;P(this,j),this.emitter=q,this.scroll=M,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){B.mouseDown||setTimeout(B.update.bind(B,_.default.sources.USER),1)}),this.emitter.on(_.default.events.EDITOR_CHANGE,function(V,G){V===_.default.events.TEXT_CHANGE&&G.length()>0&&B.update(_.default.sources.SILENT)}),this.emitter.on(_.default.events.SCROLL_BEFORE_UPDATE,function(){if(B.hasFocus()){var V=B.getNativeRange();V!=null&&V.start.node!==B.cursor.textNode&&B.emitter.once(_.default.events.SCROLL_UPDATE,function(){try{B.setNativeRange(V.start.node,V.start.offset,V.end.node,V.end.offset)}catch{}})}}),this.emitter.on(_.default.events.SCROLL_OPTIMIZE,function(V,G){if(G.range){var Q=G.range,X=Q.startNode,Y=Q.startOffset,Z=Q.endNode,se=Q.endOffset;B.setNativeRange(X,Y,Z,se)}}),this.update(_.default.sources.SILENT)}return s(j,[{key:"handleComposition",value:function(){var q=this;this.root.addEventListener("compositionstart",function(){q.composing=!0}),this.root.addEventListener("compositionend",function(){if(q.composing=!1,q.cursor.parent){var B=q.cursor.restore();if(!B)return;setTimeout(function(){q.setNativeRange(B.startNode,B.startOffset,B.endNode,B.endOffset)},1)}})}},{key:"handleDragging",value:function(){var q=this;this.emitter.listenDOM("mousedown",document.body,function(){q.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){q.mouseDown=!1,q.update(_.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(q,B){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[q])){this.scroll.update();var V=this.getNativeRange();if(!(V==null||!V.native.collapsed||l.default.query(q,l.default.Scope.BLOCK))){if(V.start.node!==this.cursor.textNode){var G=l.default.find(V.start.node,!1);if(G==null)return;if(G instanceof l.default.Leaf){var Q=G.split(V.start.offset);G.parent.insertBefore(this.cursor,Q)}else G.insertBefore(this.cursor,V.start.node);this.cursor.attach()}this.cursor.format(q,B),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(q){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,V=this.scroll.length();q=Math.min(q,V-1),B=Math.min(q+B,V-1)-q;var G=void 0,Q=this.scroll.leaf(q),X=r(Q,2),Y=X[0],Z=X[1];if(Y==null)return null;var se=Y.position(Z,!0),ce=r(se,2);G=ce[0],Z=ce[1];var te=document.createRange();if(B>0){te.setStart(G,Z);var ee=this.scroll.leaf(q+B),ae=r(ee,2);if(Y=ae[0],Z=ae[1],Y==null)return null;var de=Y.position(Z,!0),$e=r(de,2);return G=$e[0],Z=$e[1],te.setEnd(G,Z),te.getBoundingClientRect()}else{var be="left",me=void 0;return G instanceof Text?(Z<G.data.length?(te.setStart(G,Z),te.setEnd(G,Z+1)):(te.setStart(G,Z-1),te.setEnd(G,Z),be="right"),me=te.getBoundingClientRect()):(me=Y.domNode.getBoundingClientRect(),Z>0&&(be="right")),{bottom:me.top+me.height,height:me.height,left:me[be],right:me[be],top:me.top,width:0}}}},{key:"getNativeRange",value:function(){var q=document.getSelection();if(q==null||q.rangeCount<=0)return null;var B=q.getRangeAt(0);if(B==null)return null;var V=this.normalizeNative(B);return I.info("getNativeRange",V),V}},{key:"getRange",value:function(){var q=this.getNativeRange();if(q==null)return[null,null];var B=this.normalizedToRange(q);return[B,q]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(q){var B=this,V=[[q.start.node,q.start.offset]];q.native.collapsed||V.push([q.end.node,q.end.offset]);var G=V.map(function(Y){var Z=r(Y,2),se=Z[0],ce=Z[1],te=l.default.find(se,!0),ee=te.offset(B.scroll);return ce===0?ee:te instanceof l.default.Container?ee+te.length():ee+te.index(se,ce)}),Q=Math.min(Math.max.apply(Math,E(G)),this.scroll.length()-1),X=Math.min.apply(Math,[Q].concat(E(G)));return new O(X,Q-X)}},{key:"normalizeNative",value:function(q){if(!S(this.root,q.startContainer)||!q.collapsed&&!S(this.root,q.endContainer))return null;var B={start:{node:q.startContainer,offset:q.startOffset},end:{node:q.endContainer,offset:q.endOffset},native:q};return[B.start,B.end].forEach(function(V){for(var G=V.node,Q=V.offset;!(G instanceof Text)&&G.childNodes.length>0;)if(G.childNodes.length>Q)G=G.childNodes[Q],Q=0;else if(G.childNodes.length===Q)G=G.lastChild,Q=G instanceof Text?G.data.length:G.childNodes.length+1;else break;V.node=G,V.offset=Q}),B}},{key:"rangeToNative",value:function(q){var B=this,V=q.collapsed?[q.index]:[q.index,q.index+q.length],G=[],Q=this.scroll.length();return V.forEach(function(X,Y){X=Math.min(Q-1,X);var Z=void 0,se=B.scroll.leaf(X),ce=r(se,2),te=ce[0],ee=ce[1],ae=te.position(ee,Y!==0),de=r(ae,2);Z=de[0],ee=de[1],G.push(Z,ee)}),G.length<2&&(G=G.concat(G)),G}},{key:"scrollIntoView",value:function(q){var B=this.lastRange;if(B!=null){var V=this.getBounds(B.index,B.length);if(V!=null){var G=this.scroll.length()-1,Q=this.scroll.line(Math.min(B.index,G)),X=r(Q,1),Y=X[0],Z=Y;if(B.length>0){var se=this.scroll.line(Math.min(B.index+B.length,G)),ce=r(se,1);Z=ce[0]}if(!(Y==null||Z==null)){var te=q.getBoundingClientRect();V.top<te.top?q.scrollTop-=te.top-V.top:V.bottom>te.bottom&&(q.scrollTop+=V.bottom-te.bottom)}}}}},{key:"setNativeRange",value:function(q,B){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:q,G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:B,Q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(I.info("setNativeRange",q,B,V,G),!(q!=null&&(this.root.parentNode==null||q.parentNode==null||V.parentNode==null))){var X=document.getSelection();if(X!=null)if(q!=null){this.hasFocus()||this.root.focus();var Y=(this.getNativeRange()||{}).native;if(Y==null||Q||q!==Y.startContainer||B!==Y.startOffset||V!==Y.endContainer||G!==Y.endOffset){q.tagName=="BR"&&(B=[].indexOf.call(q.parentNode.childNodes,q),q=q.parentNode),V.tagName=="BR"&&(G=[].indexOf.call(V.parentNode.childNodes,V),V=V.parentNode);var Z=document.createRange();Z.setStart(q,B),Z.setEnd(V,G),X.removeAllRanges(),X.addRange(Z)}}else X.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(q){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.default.sources.API;if(typeof B=="string"&&(V=B,B=!1),I.info("setRange",q),q!=null){var G=this.rangeToNative(q);this.setNativeRange.apply(this,E(G).concat([B]))}else this.setNativeRange(null);this.update(V)}},{key:"update",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_.default.sources.USER,B=this.lastRange,V=this.getRange(),G=r(V,2),Q=G[0],X=G[1];if(this.lastRange=Q,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,p.default)(B,this.lastRange)){var Y;!this.composing&&X!=null&&X.native.collapsed&&X.start.node!==this.cursor.textNode&&this.cursor.restore();var Z=[_.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(B),q];if((Y=this.emitter).emit.apply(Y,[_.default.events.EDITOR_CHANGE].concat(Z)),q!==_.default.sources.SILENT){var se;(se=this.emitter).emit.apply(se,Z)}}}}]),j}();function S(j,M){try{M.parentNode}catch{return!1}return M instanceof Text&&(M=M.parentNode),j.contains(M)}o.Range=O,o.default=L},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function _(k,C){for(var $=0;$<C.length;$++){var E=C[$];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,C,$){return C&&_(k.prototype,C),$&&_(k,$),k}}(),s=function _(k,C,$){k===null&&(k=Function.prototype);var E=Object.getOwnPropertyDescriptor(k,C);if(E===void 0){var P=Object.getPrototypeOf(k);return P===null?void 0:_(P,C,$)}else{if("value"in E)return E.value;var I=E.get;return I===void 0?void 0:I.call($)}},a=i(0),l=d(a);function d(_){return _&&_.__esModule?_:{default:_}}function u(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}function f(_,k){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:_}function p(_,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);_.prototype=Object.create(k&&k.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(_,k):_.__proto__=k)}var v=function(_){p(k,_);function k(){return u(this,k),f(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,[{key:"insertInto",value:function($,E){$.children.length===0?s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertInto",this).call(this,$,E):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),k}(l.default.Embed);v.blotName="break",v.tagName="BR",o.default=v},function(n,o,i){var r=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var _ in v)v.hasOwnProperty(_)&&(p[_]=v[_])};return function(p,v){f(p,v);function _(){this.constructor=p}p.prototype=v===null?Object.create(v):(_.prototype=v.prototype,new _)}}();Object.defineProperty(o,"__esModule",{value:!0});var s=i(44),a=i(30),l=i(1),d=function(f){r(p,f);function p(v){var _=f.call(this,v)||this;return _.build(),_}return p.prototype.appendChild=function(v){this.insertBefore(v)},p.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(v){v.attach()})},p.prototype.build=function(){var v=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(_){try{var k=u(_);v.insertBefore(k,v.children.head||void 0)}catch(C){if(C instanceof l.ParchmentError)return;throw C}})},p.prototype.deleteAt=function(v,_){if(v===0&&_===this.length())return this.remove();this.children.forEachAt(v,_,function(k,C,$){k.deleteAt(C,$)})},p.prototype.descendant=function(v,_){var k=this.children.find(_),C=k[0],$=k[1];return v.blotName==null&&v(C)||v.blotName!=null&&C instanceof v?[C,$]:C instanceof p?C.descendant(v,$):[null,-1]},p.prototype.descendants=function(v,_,k){_===void 0&&(_=0),k===void 0&&(k=Number.MAX_VALUE);var C=[],$=k;return this.children.forEachAt(_,k,function(E,P,I){(v.blotName==null&&v(E)||v.blotName!=null&&E instanceof v)&&C.push(E),E instanceof p&&(C=C.concat(E.descendants(v,P,$))),$-=I}),C},p.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),f.prototype.detach.call(this)},p.prototype.formatAt=function(v,_,k,C){this.children.forEachAt(v,_,function($,E,P){$.formatAt(E,P,k,C)})},p.prototype.insertAt=function(v,_,k){var C=this.children.find(v),$=C[0],E=C[1];if($)$.insertAt(E,_,k);else{var P=k==null?l.create("text",_):l.create(_,k);this.appendChild(P)}},p.prototype.insertBefore=function(v,_){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(k){return v instanceof k}))throw new l.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,_)},p.prototype.length=function(){return this.children.reduce(function(v,_){return v+_.length()},0)},p.prototype.moveChildren=function(v,_){this.children.forEach(function(k){v.insertBefore(k,_)})},p.prototype.optimize=function(v){if(f.prototype.optimize.call(this,v),this.children.length===0)if(this.statics.defaultChild!=null){var _=l.create(this.statics.defaultChild);this.appendChild(_),_.optimize(v)}else this.remove()},p.prototype.path=function(v,_){_===void 0&&(_=!1);var k=this.children.find(v,_),C=k[0],$=k[1],E=[[this,v]];return C instanceof p?E.concat(C.path($,_)):(C!=null&&E.push([C,$]),E)},p.prototype.removeChild=function(v){this.children.remove(v)},p.prototype.replace=function(v){v instanceof p&&v.moveChildren(this),f.prototype.replace.call(this,v)},p.prototype.split=function(v,_){if(_===void 0&&(_=!1),!_){if(v===0)return this;if(v===this.length())return this.next}var k=this.clone();return this.parent.insertBefore(k,this.next),this.children.forEachAt(v,this.length(),function(C,$,E){C=C.split($,_),k.appendChild(C)}),k},p.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},p.prototype.update=function(v,_){var k=this,C=[],$=[];v.forEach(function(E){E.target===k.domNode&&E.type==="childList"&&(C.push.apply(C,E.addedNodes),$.push.apply($,E.removedNodes))}),$.forEach(function(E){if(!(E.parentNode!=null&&E.tagName!=="IFRAME"&&document.body.compareDocumentPosition(E)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var P=l.find(E);P!=null&&(P.domNode.parentNode==null||P.domNode.parentNode===k.domNode)&&P.detach()}}),C.filter(function(E){return E.parentNode==k.domNode}).sort(function(E,P){return E===P?0:E.compareDocumentPosition(P)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(E){var P=null;E.nextSibling!=null&&(P=l.find(E.nextSibling));var I=u(E);(I.next!=P||I.next==null)&&(I.parent!=null&&I.parent.removeChild(k),k.insertBefore(I,P||void 0))})},p}(a.default);function u(f){var p=l.find(f);if(p==null)try{p=l.create(f)}catch{p=l.create(l.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(_){p.domNode.appendChild(_)}),f.parentNode&&f.parentNode.replaceChild(p.domNode,f),p.attach()}return p}o.default=d},function(n,o,i){var r=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var _ in v)v.hasOwnProperty(_)&&(p[_]=v[_])};return function(p,v){f(p,v);function _(){this.constructor=p}p.prototype=v===null?Object.create(v):(_.prototype=v.prototype,new _)}}();Object.defineProperty(o,"__esModule",{value:!0});var s=i(12),a=i(31),l=i(17),d=i(1),u=function(f){r(p,f);function p(v){var _=f.call(this,v)||this;return _.attributes=new a.default(_.domNode),_}return p.formats=function(v){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return v.tagName.toLowerCase()},p.prototype.format=function(v,_){var k=d.query(v);k instanceof s.default?this.attributes.attribute(k,_):_&&k!=null&&(v!==this.statics.blotName||this.formats()[v]!==_)&&this.replaceWith(v,_)},p.prototype.formats=function(){var v=this.attributes.values(),_=this.statics.formats(this.domNode);return _!=null&&(v[this.statics.blotName]=_),v},p.prototype.replaceWith=function(v,_){var k=f.prototype.replaceWith.call(this,v,_);return this.attributes.copy(k),k},p.prototype.update=function(v,_){var k=this;f.prototype.update.call(this,v,_),v.some(function(C){return C.target===k.domNode&&C.type==="attributes"})&&this.attributes.build()},p.prototype.wrap=function(v,_){var k=f.prototype.wrap.call(this,v,_);return k instanceof p&&k.statics.scope===this.statics.scope&&this.attributes.move(k),k},p}(l.default);o.default=u},function(n,o,i){var r=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var p in f)f.hasOwnProperty(p)&&(u[p]=f[p])};return function(u,f){d(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(o,"__esModule",{value:!0});var s=i(30),a=i(1),l=function(d){r(u,d);function u(){return d!==null&&d.apply(this,arguments)||this}return u.value=function(f){return!0},u.prototype.index=function(f,p){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(p,1):-1},u.prototype.position=function(f,p){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(v+=1),[this.parent.domNode,v]},u.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},u.scope=a.Scope.INLINE_BLOT,u}(s.default);o.default=l},function(n,o,i){var r=i(11),s=i(3),a={attributes:{compose:function(d,u,f){typeof d!="object"&&(d={}),typeof u!="object"&&(u={});var p=s(!0,{},u);f||(p=Object.keys(p).reduce(function(_,k){return p[k]!=null&&(_[k]=p[k]),_},{}));for(var v in d)d[v]!==void 0&&u[v]===void 0&&(p[v]=d[v]);return Object.keys(p).length>0?p:void 0},diff:function(d,u){typeof d!="object"&&(d={}),typeof u!="object"&&(u={});var f=Object.keys(d).concat(Object.keys(u)).reduce(function(p,v){return r(d[v],u[v])||(p[v]=u[v]===void 0?null:u[v]),p},{});return Object.keys(f).length>0?f:void 0},transform:function(d,u,f){if(typeof d!="object")return u;if(typeof u=="object"){if(!f)return u;var p=Object.keys(u).reduce(function(v,_){return d[_]===void 0&&(v[_]=u[_]),v},{});return Object.keys(p).length>0?p:void 0}}},iterator:function(d){return new l(d)},length:function(d){return typeof d.delete=="number"?d.delete:typeof d.retain=="number"?d.retain:typeof d.insert=="string"?d.insert.length:1}};function l(d){this.ops=d,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(d){d||(d=1/0);var u=this.ops[this.index];if(u){var f=this.offset,p=a.length(u);if(d>=p-f?(d=p-f,this.index+=1,this.offset=0):this.offset+=d,typeof u.delete=="number")return{delete:d};var v={};return u.attributes&&(v.attributes=u.attributes),typeof u.retain=="number"?v.retain=d:typeof u.insert=="string"?v.insert=u.insert.substr(f,d):v.insert=u.insert,v}else return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,u=this.index,f=this.next(),p=this.ops.slice(this.index);return this.offset=d,this.index=u,[f].concat(p)}else return[]},n.exports=a},function(n,o){var i=function(){function r(k,C){return C!=null&&k instanceof C}var s;try{s=Map}catch{s=function(){}}var a;try{a=Set}catch{a=function(){}}var l;try{l=Promise}catch{l=function(){}}function d(k,C,$,E,P){typeof C=="object"&&($=C.depth,E=C.prototype,P=C.includeNonEnumerable,C=C.circular);var I=[],O=[],L=typeof Buffer<"u";typeof C>"u"&&(C=!0),typeof $>"u"&&($=1/0);function S(j,M){if(j===null)return null;if(M===0)return j;var q,B;if(typeof j!="object")return j;if(r(j,s))q=new s;else if(r(j,a))q=new a;else if(r(j,l))q=new l(function(te,ee){j.then(function(ae){te(S(ae,M-1))},function(ae){ee(S(ae,M-1))})});else if(d.__isArray(j))q=[];else if(d.__isRegExp(j))q=new RegExp(j.source,_(j)),j.lastIndex&&(q.lastIndex=j.lastIndex);else if(d.__isDate(j))q=new Date(j.getTime());else{if(L&&Buffer.isBuffer(j))return Buffer.allocUnsafe?q=Buffer.allocUnsafe(j.length):q=new Buffer(j.length),j.copy(q),q;r(j,Error)?q=Object.create(j):typeof E>"u"?(B=Object.getPrototypeOf(j),q=Object.create(B)):(q=Object.create(E),B=E)}if(C){var V=I.indexOf(j);if(V!=-1)return O[V];I.push(j),O.push(q)}r(j,s)&&j.forEach(function(te,ee){var ae=S(ee,M-1),de=S(te,M-1);q.set(ae,de)}),r(j,a)&&j.forEach(function(te){var ee=S(te,M-1);q.add(ee)});for(var G in j){var Q;B&&(Q=Object.getOwnPropertyDescriptor(B,G)),!(Q&&Q.set==null)&&(q[G]=S(j[G],M-1))}if(Object.getOwnPropertySymbols)for(var X=Object.getOwnPropertySymbols(j),G=0;G<X.length;G++){var Y=X[G],Z=Object.getOwnPropertyDescriptor(j,Y);Z&&!Z.enumerable&&!P||(q[Y]=S(j[Y],M-1),Z.enumerable||Object.defineProperty(q,Y,{enumerable:!1}))}if(P)for(var se=Object.getOwnPropertyNames(j),G=0;G<se.length;G++){var ce=se[G],Z=Object.getOwnPropertyDescriptor(j,ce);Z&&Z.enumerable||(q[ce]=S(j[ce],M-1),Object.defineProperty(q,ce,{enumerable:!1}))}return q}return S(k,$)}d.clonePrototype=function(C){if(C===null)return null;var $=function(){};return $.prototype=C,new $};function u(k){return Object.prototype.toString.call(k)}d.__objToStr=u;function f(k){return typeof k=="object"&&u(k)==="[object Date]"}d.__isDate=f;function p(k){return typeof k=="object"&&u(k)==="[object Array]"}d.__isArray=p;function v(k){return typeof k=="object"&&u(k)==="[object RegExp]"}d.__isRegExp=v;function _(k){var C="";return k.global&&(C+="g"),k.ignoreCase&&(C+="i"),k.multiline&&(C+="m"),C}return d.__getRegExpFlags=_,d}();typeof n=="object"&&n.exports&&(n.exports=i)},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function q(B,V){var G=[],Q=!0,X=!1,Y=void 0;try{for(var Z=B[Symbol.iterator](),se;!(Q=(se=Z.next()).done)&&(G.push(se.value),!(V&&G.length===V));Q=!0);}catch(ce){X=!0,Y=ce}finally{try{!Q&&Z.return&&Z.return()}finally{if(X)throw Y}}return G}return function(B,V){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return q(B,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function q(B,V){for(var G=0;G<V.length;G++){var Q=V[G];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(B,Q.key,Q)}}return function(B,V,G){return V&&q(B.prototype,V),G&&q(B,G),B}}(),a=function q(B,V,G){B===null&&(B=Function.prototype);var Q=Object.getOwnPropertyDescriptor(B,V);if(Q===void 0){var X=Object.getPrototypeOf(B);return X===null?void 0:q(X,V,G)}else{if("value"in Q)return Q.value;var Y=Q.get;return Y===void 0?void 0:Y.call(G)}},l=i(0),d=I(l),u=i(8),f=I(u),p=i(4),v=I(p),_=i(16),k=I(_),C=i(13),$=I(C),E=i(25),P=I(E);function I(q){return q&&q.__esModule?q:{default:q}}function O(q,B){if(!(q instanceof B))throw new TypeError("Cannot call a class as a function")}function L(q,B){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:q}function S(q,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);q.prototype=Object.create(B&&B.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(q,B):q.__proto__=B)}function j(q){return q instanceof v.default||q instanceof p.BlockEmbed}var M=function(q){S(B,q);function B(V,G){O(this,B);var Q=L(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,V));return Q.emitter=G.emitter,Array.isArray(G.whitelist)&&(Q.whitelist=G.whitelist.reduce(function(X,Y){return X[Y]=!0,X},{})),Q.domNode.addEventListener("DOMNodeInserted",function(){}),Q.optimize(),Q.enable(),Q}return s(B,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(G,Q){var X=this.line(G),Y=r(X,2),Z=Y[0],se=Y[1],ce=this.line(G+Q),te=r(ce,1),ee=te[0];if(a(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"deleteAt",this).call(this,G,Q),ee!=null&&Z!==ee&&se>0){if(Z instanceof p.BlockEmbed||ee instanceof p.BlockEmbed){this.optimize();return}if(Z instanceof $.default){var ae=Z.newlineIndex(Z.length(),!0);if(ae>-1&&(Z=Z.split(ae+1),Z===ee)){this.optimize();return}}else if(ee instanceof $.default){var de=ee.newlineIndex(0);de>-1&&ee.split(de+1)}var $e=ee.children.head instanceof k.default?null:ee.children.head;Z.moveChildren(ee,$e),Z.remove()}this.optimize()}},{key:"enable",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",G)}},{key:"formatAt",value:function(G,Q,X,Y){this.whitelist!=null&&!this.whitelist[X]||(a(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"formatAt",this).call(this,G,Q,X,Y),this.optimize())}},{key:"insertAt",value:function(G,Q,X){if(!(X!=null&&this.whitelist!=null&&!this.whitelist[Q])){if(G>=this.length())if(X==null||d.default.query(Q,d.default.Scope.BLOCK)==null){var Y=d.default.create(this.statics.defaultChild);this.appendChild(Y),X==null&&Q.endsWith(` `)&&(Q=Q.slice(0,-1)),Y.insertAt(0,Q,X)}else{var Z=d.default.create(Q,X);this.appendChild(Z)}else a(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"insertAt",this).call(this,G,Q,X);this.optimize()}}},{key:"insertBefore",value:function(G,Q){if(G.statics.scope===d.default.Scope.INLINE_BLOT){var X=d.default.create(this.statics.defaultChild);X.appendChild(G),G=X}a(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"insertBefore",this).call(this,G,Q)}},{key:"leaf",value:function(G){return this.path(G).pop()||[null,-1]}},{key:"line",value:function(G){return G===this.length()?this.line(G-1):this.descendant(j,G)}},{key:"lines",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,X=function Y(Z,se,ce){var te=[],ee=ce;return Z.children.forEachAt(se,ce,function(ae,de,$e){j(ae)?te.push(ae):ae instanceof d.default.Container&&(te=te.concat(Y(ae,de,ee))),ee-=$e}),te};return X(this,G,Q)}},{key:"optimize",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(a(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"optimize",this).call(this,G,Q),G.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,G,Q))}},{key:"path",value:function(G){return a(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"path",this).call(this,G).slice(1)}},{key:"update",value:function(G){if(this.batch!==!0){var Q=f.default.sources.USER;typeof G=="string"&&(Q=G),Array.isArray(G)||(G=this.observer.takeRecords()),G.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,Q,G),a(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"update",this).call(this,G.concat([])),G.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,Q,G)}}}]),B}(d.default.Scroll);M.blotName="scroll",M.className="ql-editor",M.tagName="DIV",M.defaultChild="block",M.allowedChildren=[v.default,p.BlockEmbed,P.default],o.default=M},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.SHORTKEY=o.default=void 0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(me){return typeof me}:function(me){return me&&typeof Symbol=="function"&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me},s=function(){function me(fe,Ae){var je=[],Ye=!0,_t=!1,xt=void 0;try{for(var we=fe[Symbol.iterator](),ve;!(Ye=(ve=we.next()).done)&&(je.push(ve.value),!(Ae&&je.length===Ae));Ye=!0);}catch(qe){_t=!0,xt=qe}finally{try{!Ye&&we.return&&we.return()}finally{if(_t)throw xt}}return je}return function(fe,Ae){if(Array.isArray(fe))return fe;if(Symbol.iterator in Object(fe))return me(fe,Ae);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function me(fe,Ae){for(var je=0;je<Ae.length;je++){var Ye=Ae[je];Ye.enumerable=Ye.enumerable||!1,Ye.configurable=!0,"value"in Ye&&(Ye.writable=!0),Object.defineProperty(fe,Ye.key,Ye)}}return function(fe,Ae,je){return Ae&&me(fe.prototype,Ae),je&&me(fe,je),fe}}(),l=i(21),d=q(l),u=i(11),f=q(u),p=i(3),v=q(p),_=i(2),k=q(_),C=i(20),$=q(C),E=i(0),P=q(E),I=i(5),O=q(I),L=i(10),S=q(L),j=i(9),M=q(j);function q(me){return me&&me.__esModule?me:{default:me}}function B(me,fe,Ae){return fe in me?Object.defineProperty(me,fe,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):me[fe]=Ae,me}function V(me,fe){if(!(me instanceof fe))throw new TypeError("Cannot call a class as a function")}function G(me,fe){if(!me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe&&(typeof fe=="object"||typeof fe=="function")?fe:me}function Q(me,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof fe);me.prototype=Object.create(fe&&fe.prototype,{constructor:{value:me,enumerable:!1,writable:!0,configurable:!0}}),fe&&(Object.setPrototypeOf?Object.setPrototypeOf(me,fe):me.__proto__=fe)}var X=(0,S.default)("quill:keyboard"),Y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Z=function(me){Q(fe,me),a(fe,null,[{key:"match",value:function(je,Ye){return Ye=be(Ye),["altKey","ctrlKey","metaKey","shiftKey"].some(function(_t){return!!Ye[_t]!==je[_t]&&Ye[_t]!==null})?!1:Ye.key===(je.which||je.keyCode)}}]);function fe(Ae,je){V(this,fe);var Ye=G(this,(fe.__proto__||Object.getPrototypeOf(fe)).call(this,Ae,je));return Ye.bindings={},Object.keys(Ye.options.bindings).forEach(function(_t){_t==="list autofill"&&Ae.scroll.whitelist!=null&&!Ae.scroll.whitelist.list||Ye.options.bindings[_t]&&Ye.addBinding(Ye.options.bindings[_t])}),Ye.addBinding({key:fe.keys.ENTER,shiftKey:null},ae),Ye.addBinding({key:fe.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Ye.addBinding({key:fe.keys.BACKSPACE},{collapsed:!0},ce),Ye.addBinding({key:fe.keys.DELETE},{collapsed:!0},te)):(Ye.addBinding({key:fe.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},ce),Ye.addBinding({key:fe.keys.DELETE},{collapsed:!0,suffix:/^.?$/},te)),Ye.addBinding({key:fe.keys.BACKSPACE},{collapsed:!1},ee),Ye.addBinding({key:fe.keys.DELETE},{collapsed:!1},ee),Ye.addBinding({key:fe.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},ce),Ye.listen(),Ye}return a(fe,[{key:"addBinding",value:function(je){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xt=be(je);if(xt==null||xt.key==null)return X.warn("Attempted to add invalid keyboard binding",xt);typeof Ye=="function"&&(Ye={handler:Ye}),typeof _t=="function"&&(_t={handler:_t}),xt=(0,v.default)(xt,Ye,_t),this.bindings[xt.key]=this.bindings[xt.key]||[],this.bindings[xt.key].push(xt)}},{key:"listen",value:function(){var je=this;this.quill.root.addEventListener("keydown",function(Ye){if(!Ye.defaultPrevented){var _t=Ye.which||Ye.keyCode,xt=(je.bindings[_t]||[]).filter(function(We){return fe.match(Ye,We)});if(xt.length!==0){var we=je.quill.getSelection();if(!(we==null||!je.quill.hasFocus())){var ve=je.quill.getLine(we.index),qe=s(ve,2),$t=qe[0],ut=qe[1],Ve=je.quill.getLeaf(we.index),tt=s(Ve,2),ge=tt[0],ye=tt[1],Te=we.length===0?[ge,ye]:je.quill.getLeaf(we.index+we.length),gt=s(Te,2),yt=gt[0],Xe=gt[1],Ze=ge instanceof P.default.Text?ge.value().slice(0,ye):"",vt=yt instanceof P.default.Text?yt.value().slice(Xe):"",Ut={collapsed:we.length===0,empty:we.length===0&&$t.length()<=1,format:je.quill.getFormat(we),offset:ut,prefix:Ze,suffix:vt},Je=xt.some(function(We){if(We.collapsed!=null&&We.collapsed!==Ut.collapsed||We.empty!=null&&We.empty!==Ut.empty||We.offset!=null&&We.offset!==Ut.offset)return!1;if(Array.isArray(We.format)){if(We.format.every(function(pt){return Ut.format[pt]==null}))return!1}else if(r(We.format)==="object"&&!Object.keys(We.format).every(function(pt){return We.format[pt]===!0?Ut.format[pt]!=null:We.format[pt]===!1?Ut.format[pt]==null:(0,f.default)(We.format[pt],Ut.format[pt])}))return!1;return We.prefix!=null&&!We.prefix.test(Ut.prefix)||We.suffix!=null&&!We.suffix.test(Ut.suffix)?!1:We.handler.call(je,we,Ut)!==!0});Je&&Ye.preventDefault()}}}})}}]),fe}(M.default);Z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},Z.DEFAULTS={bindings:{bold:$e("bold"),italic:$e("italic"),underline:$e("underline"),indent:{key:Z.keys.TAB,format:["blockquote","indent","list"],handler:function(fe,Ae){if(Ae.collapsed&&Ae.offset!==0)return!0;this.quill.format("indent","+1",O.default.sources.USER)}},outdent:{key:Z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(fe,Ae){if(Ae.collapsed&&Ae.offset!==0)return!0;this.quill.format("indent","-1",O.default.sources.USER)}},"outdent backspace":{key:Z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(fe,Ae){Ae.format.indent!=null?this.quill.format("indent","-1",O.default.sources.USER):Ae.format.list!=null&&this.quill.format("list",!1,O.default.sources.USER)}},"indent code-block":de(!0),"outdent code-block":de(!1),"remove tab":{key:Z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(fe){this.quill.deleteText(fe.index-1,1,O.default.sources.USER)}},tab:{key:Z.keys.TAB,handler:function(fe){this.quill.history.cutoff();var Ae=new k.default().retain(fe.index).delete(fe.length).insert(" ");this.quill.updateContents(Ae,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(fe.index+1,O.default.sources.SILENT)}},"list empty enter":{key:Z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(fe,Ae){this.quill.format("list",!1,O.default.sources.USER),Ae.format.indent&&this.quill.format("indent",!1,O.default.sources.USER)}},"checklist enter":{key:Z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(fe){var Ae=this.quill.getLine(fe.index),je=s(Ae,2),Ye=je[0],_t=je[1],xt=(0,v.default)({},Ye.formats(),{list:"checked"}),we=new k.default().retain(fe.index).insert(` `,xt).retain(Ye.length()-_t-1).retain(1,{list:"unchecked"});this.quill.updateContents(we,O.default.sources.USER),this.quill.setSelection(fe.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:Z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(fe,Ae){var je=this.quill.getLine(fe.index),Ye=s(je,2),_t=Ye[0],xt=Ye[1],we=new k.default().retain(fe.index).insert(` `,Ae.format).retain(_t.length()-xt-1).retain(1,{header:null});this.quill.updateContents(we,O.default.sources.USER),this.quill.setSelection(fe.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(fe,Ae){var je=Ae.prefix.length,Ye=this.quill.getLine(fe.index),_t=s(Ye,2),xt=_t[0],we=_t[1];if(we>je)return!0;var ve=void 0;switch(Ae.prefix.trim()){case"[]":case"[ ]":ve="unchecked";break;case"[x]":ve="checked";break;case"-":case"*":ve="bullet";break;default:ve="ordered"}this.quill.insertText(fe.index," ",O.default.sources.USER),this.quill.history.cutoff();var qe=new k.default().retain(fe.index-we).delete(je+1).retain(xt.length()-2-we).retain(1,{list:ve});this.quill.updateContents(qe,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(fe.index-je,O.default.sources.SILENT)}},"code exit":{key:Z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(fe){var Ae=this.quill.getLine(fe.index),je=s(Ae,2),Ye=je[0],_t=je[1],xt=new k.default().retain(fe.index+Ye.length()-_t-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(xt,O.default.sources.USER)}},"embed left":se(Z.keys.LEFT,!1),"embed left shift":se(Z.keys.LEFT,!0),"embed right":se(Z.keys.RIGHT,!1),"embed right shift":se(Z.keys.RIGHT,!0)}};function se(me,fe){var Ae,je=me===Z.keys.LEFT?"prefix":"suffix";return Ae={key:me,shiftKey:fe,altKey:null},B(Ae,je,/^$/),B(Ae,"handler",function(_t){var xt=_t.index;me===Z.keys.RIGHT&&(xt+=_t.length+1);var we=this.quill.getLeaf(xt),ve=s(we,1),qe=ve[0];return qe instanceof P.default.Embed?(me===Z.keys.LEFT?fe?this.quill.setSelection(_t.index-1,_t.length+1,O.default.sources.USER):this.quill.setSelection(_t.index-1,O.default.sources.USER):fe?this.quill.setSelection(_t.index,_t.length+1,O.default.sources.USER):this.quill.setSelection(_t.index+_t.length+1,O.default.sources.USER),!1):!0}),Ae}function ce(me,fe){if(!(me.index===0||this.quill.getLength()<=1)){var Ae=this.quill.getLine(me.index),je=s(Ae,1),Ye=je[0],_t={};if(fe.offset===0){var xt=this.quill.getLine(me.index-1),we=s(xt,1),ve=we[0];if(ve!=null&&ve.length()>1){var qe=Ye.formats(),$t=this.quill.getFormat(me.index-1,1);_t=$.default.attributes.diff(qe,$t)||{}}}var ut=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(fe.prefix)?2:1;this.quill.deleteText(me.index-ut,ut,O.default.sources.USER),Object.keys(_t).length>0&&this.quill.formatLine(me.index-ut,ut,_t,O.default.sources.USER),this.quill.focus()}}function te(me,fe){var Ae=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(fe.suffix)?2:1;if(!(me.index>=this.quill.getLength()-Ae)){var je={},Ye=0,_t=this.quill.getLine(me.index),xt=s(_t,1),we=xt[0];if(fe.offset>=we.length()-1){var ve=this.quill.getLine(me.index+1),qe=s(ve,1),$t=qe[0];if($t){var ut=we.formats(),Ve=this.quill.getFormat(me.index,1);je=$.default.attributes.diff(ut,Ve)||{},Ye=$t.length()}}this.quill.deleteText(me.index,Ae,O.default.sources.USER),Object.keys(je).length>0&&this.quill.formatLine(me.index+Ye-1,Ae,je,O.default.sources.USER)}}function ee(me){var fe=this.quill.getLines(me),Ae={};if(fe.length>1){var je=fe[0].formats(),Ye=fe[fe.length-1].formats();Ae=$.default.attributes.diff(Ye,je)||{}}this.quill.deleteText(me,O.default.sources.USER),Object.keys(Ae).length>0&&this.quill.formatLine(me.index,1,Ae,O.default.sources.USER),this.quill.setSelection(me.index,O.default.sources.SILENT),this.quill.focus()}function ae(me,fe){var Ae=this;me.length>0&&this.quill.scroll.deleteAt(me.index,me.length);var je=Object.keys(fe.format).reduce(function(Ye,_t){return P.default.query(_t,P.default.Scope.BLOCK)&&!Array.isArray(fe.format[_t])&&(Ye[_t]=fe.format[_t]),Ye},{});this.quill.insertText(me.index,` `,je,O.default.sources.USER),this.quill.setSelection(me.index+1,O.default.sources.SILENT),this.quill.focus(),Object.keys(fe.format).forEach(function(Ye){je[Ye]==null&&(Array.isArray(fe.format[Ye])||Ye!=="link"&&Ae.quill.format(Ye,fe.format[Ye],O.default.sources.USER))})}function de(me){return{key:Z.keys.TAB,shiftKey:!me,format:{"code-block":!0},handler:function(Ae){var je=P.default.query("code-block"),Ye=Ae.index,_t=Ae.length,xt=this.quill.scroll.descendant(je,Ye),we=s(xt,2),ve=we[0],qe=we[1];if(ve!=null){var $t=this.quill.getIndex(ve),ut=ve.newlineIndex(qe,!0)+1,Ve=ve.newlineIndex($t+qe+_t),tt=ve.domNode.textContent.slice(ut,Ve).split(` `);qe=0,tt.forEach(function(ge,ye){me?(ve.insertAt(ut+qe,je.TAB),qe+=je.TAB.length,ye===0?Ye+=je.TAB.length:_t+=je.TAB.length):ge.startsWith(je.TAB)&&(ve.deleteAt(ut+qe,je.TAB.length),qe-=je.TAB.length,ye===0?Ye-=je.TAB.length:_t-=je.TAB.length),qe+=ge.length+1}),this.quill.update(O.default.sources.USER),this.quill.setSelection(Ye,_t,O.default.sources.SILENT)}}}}function $e(me){return{key:me[0].toUpperCase(),shortKey:!0,handler:function(Ae,je){this.quill.format(me,!je.format[me],O.default.sources.USER)}}}function be(me){if(typeof me=="string"||typeof me=="number")return be({key:me});if((typeof me>"u"?"undefined":r(me))==="object"&&(me=(0,d.default)(me,!1)),typeof me.key=="string")if(Z.keys[me.key.toUpperCase()]!=null)me.key=Z.keys[me.key.toUpperCase()];else if(me.key.length===1)me.key=me.key.toUpperCase().charCodeAt(0);else return null;return me.shortKey&&(me[Y]=me.shortKey,delete me.shortKey),me}o.default=Z,o.SHORTKEY=Y},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function $(E,P){var I=[],O=!0,L=!1,S=void 0;try{for(var j=E[Symbol.iterator](),M;!(O=(M=j.next()).done)&&(I.push(M.value),!(P&&I.length===P));O=!0);}catch(q){L=!0,S=q}finally{try{!O&&j.return&&j.return()}finally{if(L)throw S}}return I}return function(E,P){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return $(E,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function $(E,P,I){E===null&&(E=Function.prototype);var O=Object.getOwnPropertyDescriptor(E,P);if(O===void 0){var L=Object.getPrototypeOf(E);return L===null?void 0:$(L,P,I)}else{if("value"in O)return O.value;var S=O.get;return S===void 0?void 0:S.call(I)}},a=function(){function $(E,P){for(var I=0;I<P.length;I++){var O=P[I];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(E,O.key,O)}}return function(E,P,I){return P&&$(E.prototype,P),I&&$(E,I),E}}(),l=i(0),d=p(l),u=i(7),f=p(u);function p($){return $&&$.__esModule?$:{default:$}}function v($,E){if(!($ instanceof E))throw new TypeError("Cannot call a class as a function")}function _($,E){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:$}function k($,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);$.prototype=Object.create(E&&E.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf($,E):$.__proto__=E)}var C=function($){k(E,$),a(E,null,[{key:"value",value:function(){}}]);function E(P,I){v(this,E);var O=_(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,P));return O.selection=I,O.textNode=document.createTextNode(E.CONTENTS),O.domNode.appendChild(O.textNode),O._length=0,O}return a(E,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(I,O){if(this._length!==0)return s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,I,O);for(var L=this,S=0;L!=null&&L.statics.scope!==d.default.Scope.BLOCK_BLOT;)S+=L.offset(L.parent),L=L.parent;L!=null&&(this._length=E.CONTENTS.length,L.optimize(),L.formatAt(S,E.CONTENTS.length,I,O),this._length=0)}},{key:"index",value:function(I,O){return I===this.textNode?0:s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"index",this).call(this,I,O)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var I=this.textNode,O=this.selection.getNativeRange(),L=void 0,S=void 0,j=void 0;if(O!=null&&O.start.node===I&&O.end.node===I){var M=[I,O.start.offset,O.end.offset];L=M[0],S=M[1],j=M[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==E.CONTENTS){var q=this.textNode.data.split(E.CONTENTS).join("");this.next instanceof f.default?(L=this.next.domNode,this.next.insertAt(0,q),this.textNode.data=E.CONTENTS):(this.textNode.data=q,this.parent.insertBefore(d.default.create(this.textNode),this),this.textNode=document.createTextNode(E.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),S!=null){var B=[S,j].map(function(G){return Math.max(0,Math.min(L.data.length,G-1))}),V=r(B,2);return S=V[0],j=V[1],{startNode:L,startOffset:S,endNode:L,endOffset:j}}}}},{key:"update",value:function(I,O){var L=this;if(I.some(function(j){return j.type==="characterData"&&j.target===L.textNode})){var S=this.restore();S&&(O.range=S)}}},{key:"value",value:function(){return""}}]),E}(d.default.Embed);C.blotName="cursor",C.className="ql-cursor",C.tagName="span",C.CONTENTS="\uFEFF",o.default=C},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(0),s=d(r),a=i(4),l=d(a);function d(_){return _&&_.__esModule?_:{default:_}}function u(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}function f(_,k){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:_}function p(_,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);_.prototype=Object.create(k&&k.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(_,k):_.__proto__=k)}var v=function(_){p(k,_);function k(){return u(this,k),f(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return k}(s.default.Container);v.allowedChildren=[l.default,a.BlockEmbed,v],o.default=v},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.ColorStyle=o.ColorClass=o.ColorAttributor=void 0;var r=function(){function C($,E){for(var P=0;P<E.length;P++){var I=E[P];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty($,I.key,I)}}return function($,E,P){return E&&C($.prototype,E),P&&C($,P),$}}(),s=function C($,E,P){$===null&&($=Function.prototype);var I=Object.getOwnPropertyDescriptor($,E);if(I===void 0){var O=Object.getPrototypeOf($);return O===null?void 0:C(O,E,P)}else{if("value"in I)return I.value;var L=I.get;return L===void 0?void 0:L.call(P)}},a=i(0),l=d(a);function d(C){return C&&C.__esModule?C:{default:C}}function u(C,$){if(!(C instanceof $))throw new TypeError("Cannot call a class as a function")}function f(C,$){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:C}function p(C,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);C.prototype=Object.create($&&$.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(C,$):C.__proto__=$)}var v=function(C){p($,C);function $(){return u(this,$),f(this,($.__proto__||Object.getPrototypeOf($)).apply(this,arguments))}return r($,[{key:"value",value:function(P){var I=s($.prototype.__proto__||Object.getPrototypeOf($.prototype),"value",this).call(this,P);return I.startsWith("rgb(")?(I=I.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+I.split(",").map(function(O){return("00"+parseInt(O).toString(16)).slice(-2)}).join("")):I}}]),$}(l.default.Attributor.Style),_=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),k=new v("color","color",{scope:l.default.Scope.INLINE});o.ColorAttributor=v,o.ColorClass=_,o.ColorStyle=k},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.sanitize=o.default=void 0;var r=function(){function k(C,$){for(var E=0;E<$.length;E++){var P=$[E];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(C,P.key,P)}}return function(C,$,E){return $&&k(C.prototype,$),E&&k(C,E),C}}(),s=function k(C,$,E){C===null&&(C=Function.prototype);var P=Object.getOwnPropertyDescriptor(C,$);if(P===void 0){var I=Object.getPrototypeOf(C);return I===null?void 0:k(I,$,E)}else{if("value"in P)return P.value;var O=P.get;return O===void 0?void 0:O.call(E)}},a=i(6),l=d(a);function d(k){return k&&k.__esModule?k:{default:k}}function u(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}function f(k,C){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:k}function p(k,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);k.prototype=Object.create(C&&C.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(k,C):k.__proto__=C)}var v=function(k){p(C,k);function C(){return u(this,C),f(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"format",value:function(E,P){if(E!==this.statics.blotName||!P)return s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"format",this).call(this,E,P);P=this.constructor.sanitize(P),this.domNode.setAttribute("href",P)}}],[{key:"create",value:function(E){var P=s(C.__proto__||Object.getPrototypeOf(C),"create",this).call(this,E);return E=this.sanitize(E),P.setAttribute("href",E),P.setAttribute("rel","noopener noreferrer"),P.setAttribute("target","_blank"),P}},{key:"formats",value:function(E){return E.getAttribute("href")}},{key:"sanitize",value:function(E){return _(E,this.PROTOCOL_WHITELIST)?E:this.SANITIZED_URL}}]),C}(l.default);v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",v.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function _(k,C){var $=document.createElement("a");$.href=k;var E=$.href.slice(0,$.href.indexOf(":"));return C.indexOf(E)>-1}o.default=v,o.sanitize=_},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},s=function(){function C($,E){for(var P=0;P<E.length;P++){var I=E[P];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty($,I.key,I)}}return function($,E,P){return E&&C($.prototype,E),P&&C($,P),$}}(),a=i(23),l=f(a),d=i(107),u=f(d);function f(C){return C&&C.__esModule?C:{default:C}}function p(C,$){if(!(C instanceof $))throw new TypeError("Cannot call a class as a function")}var v=0;function _(C,$){C.setAttribute($,C.getAttribute($)!=="true")}var k=function(){function C($){var E=this;p(this,C),this.select=$,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){E.togglePicker()}),this.label.addEventListener("keydown",function(P){switch(P.keyCode){case l.default.keys.ENTER:E.togglePicker();break;case l.default.keys.ESCAPE:E.escape(),P.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return s(C,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),_(this.label,"aria-expanded"),_(this.options,"aria-hidden")}},{key:"buildItem",value:function(E){var P=this,I=document.createElement("span");return I.tabIndex="0",I.setAttribute("role","button"),I.classList.add("ql-picker-item"),E.hasAttribute("value")&&I.setAttribute("data-value",E.getAttribute("value")),E.textContent&&I.setAttribute("data-label",E.textContent),I.addEventListener("click",function(){P.selectItem(I,!0)}),I.addEventListener("keydown",function(O){switch(O.keyCode){case l.default.keys.ENTER:P.selectItem(I,!0),O.preventDefault();break;case l.default.keys.ESCAPE:P.escape(),O.preventDefault();break}}),I}},{key:"buildLabel",value:function(){var E=document.createElement("span");return E.classList.add("ql-picker-label"),E.innerHTML=u.default,E.tabIndex="0",E.setAttribute("role","button"),E.setAttribute("aria-expanded","false"),this.container.appendChild(E),E}},{key:"buildOptions",value:function(){var E=this,P=document.createElement("span");P.classList.add("ql-picker-options"),P.setAttribute("aria-hidden","true"),P.tabIndex="-1",P.id="ql-picker-options-"+v,v+=1,this.label.setAttribute("aria-controls",P.id),this.options=P,[].slice.call(this.select.options).forEach(function(I){var O=E.buildItem(I);P.appendChild(O),I.selected===!0&&E.selectItem(O)}),this.container.appendChild(P)}},{key:"buildPicker",value:function(){var E=this;[].slice.call(this.select.attributes).forEach(function(P){E.container.setAttribute(P.name,P.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var E=this;this.close(),setTimeout(function(){return E.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,I=this.container.querySelector(".ql-selected");if(E!==I&&(I!=null&&I.classList.remove("ql-selected"),E!=null&&(E.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(E.parentNode.children,E),E.hasAttribute("data-value")?this.label.setAttribute("data-value",E.getAttribute("data-value")):this.label.removeAttribute("data-value"),E.hasAttribute("data-label")?this.label.setAttribute("data-label",E.getAttribute("data-label")):this.label.removeAttribute("data-label"),P))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":r(Event))==="object"){var O=document.createEvent("Event");O.initEvent("change",!0,!0),this.select.dispatchEvent(O)}this.close()}}},{key:"update",value:function(){var E=void 0;if(this.select.selectedIndex>-1){var P=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];E=this.select.options[this.select.selectedIndex],this.selectItem(P)}else this.selectItem(null);var I=E!=null&&E!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",I)}}]),C}();o.default=k},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(0),s=X(r),a=i(5),l=X(a),d=i(4),u=X(d),f=i(16),p=X(f),v=i(25),_=X(v),k=i(24),C=X(k),$=i(35),E=X($),P=i(6),I=X(P),O=i(22),L=X(O),S=i(7),j=X(S),M=i(55),q=X(M),B=i(42),V=X(B),G=i(23),Q=X(G);function X(Y){return Y&&Y.__esModule?Y:{default:Y}}l.default.register({"blots/block":u.default,"blots/block/embed":d.BlockEmbed,"blots/break":p.default,"blots/container":_.default,"blots/cursor":C.default,"blots/embed":E.default,"blots/inline":I.default,"blots/scroll":L.default,"blots/text":j.default,"modules/clipboard":q.default,"modules/history":V.default,"modules/keyboard":Q.default}),s.default.register(u.default,p.default,C.default,I.default,L.default,j.default),o.default=l.default},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(1),s=function(){function a(l){this.domNode=l,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(a.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),a.create=function(l){if(this.tagName==null)throw new r.ParchmentError("Blot definition missing tagName");var d;return Array.isArray(this.tagName)?(typeof l=="string"&&(l=l.toUpperCase(),parseInt(l).toString()===l&&(l=parseInt(l))),typeof l=="number"?d=document.createElement(this.tagName[l-1]):this.tagName.indexOf(l)>-1?d=document.createElement(l):d=document.createElement(this.tagName[0])):d=document.createElement(this.tagName),this.className&&d.classList.add(this.className),d},a.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},a.prototype.clone=function(){var l=this.domNode.cloneNode(!1);return r.create(l)},a.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},a.prototype.deleteAt=function(l,d){var u=this.isolate(l,d);u.remove()},a.prototype.formatAt=function(l,d,u,f){var p=this.isolate(l,d);if(r.query(u,r.Scope.BLOT)!=null&&f)p.wrap(u,f);else if(r.query(u,r.Scope.ATTRIBUTE)!=null){var v=r.create(this.statics.scope);p.wrap(v),v.format(u,f)}},a.prototype.insertAt=function(l,d,u){var f=u==null?r.create("text",d):r.create(d,u),p=this.split(l);this.parent.insertBefore(f,p)},a.prototype.insertInto=function(l,d){d===void 0&&(d=null),this.parent!=null&&this.parent.children.remove(this);var u=null;l.children.insertBefore(this,d),d!=null&&(u=d.domNode),(this.domNode.parentNode!=l.domNode||this.domNode.nextSibling!=u)&&l.domNode.insertBefore(this.domNode,u),this.parent=l,this.attach()},a.prototype.isolate=function(l,d){var u=this.split(l);return u.split(d),u},a.prototype.length=function(){return 1},a.prototype.offset=function(l){return l===void 0&&(l=this.parent),this.parent==null||this==l?0:this.parent.children.offset(this)+this.parent.offset(l)},a.prototype.optimize=function(l){this.domNode[r.DATA_KEY]!=null&&delete this.domNode[r.DATA_KEY].mutations},a.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},a.prototype.replace=function(l){l.parent!=null&&(l.parent.insertBefore(this,l.next),l.remove())},a.prototype.replaceWith=function(l,d){var u=typeof l=="string"?r.create(l,d):l;return u.replace(this),u},a.prototype.split=function(l,d){return l===0?this:this.next},a.prototype.update=function(l,d){},a.prototype.wrap=function(l,d){var u=typeof l=="string"?r.create(l,d):l;return this.parent!=null&&this.parent.insertBefore(u,this.next),u.appendChild(this),u},a.blotName="abstract",a}();o.default=s},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(12),s=i(32),a=i(33),l=i(1),d=function(){function u(f){this.attributes={},this.domNode=f,this.build()}return u.prototype.attribute=function(f,p){p?f.add(this.domNode,p)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},u.prototype.build=function(){var f=this;this.attributes={};var p=r.default.keys(this.domNode),v=s.default.keys(this.domNode),_=a.default.keys(this.domNode);p.concat(v).concat(_).forEach(function(k){var C=l.query(k,l.Scope.ATTRIBUTE);C instanceof r.default&&(f.attributes[C.attrName]=C)})},u.prototype.copy=function(f){var p=this;Object.keys(this.attributes).forEach(function(v){var _=p.attributes[v].value(p.domNode);f.format(v,_)})},u.prototype.move=function(f){var p=this;this.copy(f),Object.keys(this.attributes).forEach(function(v){p.attributes[v].remove(p.domNode)}),this.attributes={}},u.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(p,v){return p[v]=f.attributes[v].value(f.domNode),p},{})},u}();o.default=d},function(n,o,i){var r=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var p in f)f.hasOwnProperty(p)&&(u[p]=f[p])};return function(u,f){d(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(o,"__esModule",{value:!0});var s=i(12);function a(d,u){var f=d.getAttribute("class")||"";return f.split(/\s+/).filter(function(p){return p.indexOf(u+"-")===0})}var l=function(d){r(u,d);function u(){return d!==null&&d.apply(this,arguments)||this}return u.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(p){return p.split("-").slice(0,-1).join("-")})},u.prototype.add=function(f,p){return this.canAdd(f,p)?(this.remove(f),f.classList.add(this.keyName+"-"+p),!0):!1},u.prototype.remove=function(f){var p=a(f,this.keyName);p.forEach(function(v){f.classList.remove(v)}),f.classList.length===0&&f.removeAttribute("class")},u.prototype.value=function(f){var p=a(f,this.keyName)[0]||"",v=p.slice(this.keyName.length+1);return this.canAdd(f,v)?v:""},u}(s.default);o.default=l},function(n,o,i){var r=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var p in f)f.hasOwnProperty(p)&&(u[p]=f[p])};return function(u,f){d(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(o,"__esModule",{value:!0});var s=i(12);function a(d){var u=d.split("-"),f=u.slice(1).map(function(p){return p[0].toUpperCase()+p.slice(1)}).join("");return u[0]+f}var l=function(d){r(u,d);function u(){return d!==null&&d.apply(this,arguments)||this}return u.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(p){var v=p.split(":");return v[0].trim()})},u.prototype.add=function(f,p){return this.canAdd(f,p)?(f.style[a(this.keyName)]=p,!0):!1},u.prototype.remove=function(f){f.style[a(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},u.prototype.value=function(f){var p=f.style[a(this.keyName)];return this.canAdd(f,p)?p:""},u}(s.default);o.default=l},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function l(d,u){for(var f=0;f<u.length;f++){var p=u[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}return function(d,u,f){return u&&l(d.prototype,u),f&&l(d,f),d}}();function s(l,d){if(!(l instanceof d))throw new TypeError("Cannot call a class as a function")}var a=function(){function l(d,u){s(this,l),this.quill=d,this.options=u,this.modules={}}return r(l,[{key:"init",value:function(){var u=this;Object.keys(this.options.modules).forEach(function(f){u.modules[f]==null&&u.addModule(f)})}},{key:"addModule",value:function(u){var f=this.quill.constructor.import("modules/"+u);return this.modules[u]=new f(this.quill,this.options.modules[u]||{}),this.modules[u]}}]),l}();a.DEFAULTS={modules:{}},a.themes={default:a},o.default=a},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function $(E,P){for(var I=0;I<P.length;I++){var O=P[I];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(E,O.key,O)}}return function(E,P,I){return P&&$(E.prototype,P),I&&$(E,I),E}}(),s=function $(E,P,I){E===null&&(E=Function.prototype);var O=Object.getOwnPropertyDescriptor(E,P);if(O===void 0){var L=Object.getPrototypeOf(E);return L===null?void 0:$(L,P,I)}else{if("value"in O)return O.value;var S=O.get;return S===void 0?void 0:S.call(I)}},a=i(0),l=f(a),d=i(7),u=f(d);function f($){return $&&$.__esModule?$:{default:$}}function p($,E){if(!($ instanceof E))throw new TypeError("Cannot call a class as a function")}function v($,E){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:$}function _($,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);$.prototype=Object.create(E&&E.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf($,E):$.__proto__=E)}var k="\uFEFF",C=function($){_(E,$);function E(P){p(this,E);var I=v(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,P));return I.contentNode=document.createElement("span"),I.contentNode.setAttribute("contenteditable",!1),[].slice.call(I.domNode.childNodes).forEach(function(O){I.contentNode.appendChild(O)}),I.leftGuard=document.createTextNode(k),I.rightGuard=document.createTextNode(k),I.domNode.appendChild(I.leftGuard),I.domNode.appendChild(I.contentNode),I.domNode.appendChild(I.rightGuard),I}return r(E,[{key:"index",value:function(I,O){return I===this.leftGuard?0:I===this.rightGuard?1:s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"index",this).call(this,I,O)}},{key:"restore",value:function(I){var O=void 0,L=void 0,S=I.data.split(k).join("");if(I===this.leftGuard)if(this.prev instanceof u.default){var j=this.prev.length();this.prev.insertAt(j,S),O={startNode:this.prev.domNode,startOffset:j+S.length}}else L=document.createTextNode(S),this.parent.insertBefore(l.default.create(L),this),O={startNode:L,startOffset:S.length};else I===this.rightGuard&&(this.next instanceof u.default?(this.next.insertAt(0,S),O={startNode:this.next.domNode,startOffset:S.length}):(L=document.createTextNode(S),this.parent.insertBefore(l.default.create(L),this.next),O={startNode:L,startOffset:S.length}));return I.data=k,O}},{key:"update",value:function(I,O){var L=this;I.forEach(function(S){if(S.type==="characterData"&&(S.target===L.leftGuard||S.target===L.rightGuard)){var j=L.restore(S.target);j&&(O.range=j)}})}}]),E}(l.default.Embed);o.default=C},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.AlignStyle=o.AlignClass=o.AlignAttribute=void 0;var r=i(0),s=a(r);function a(p){return p&&p.__esModule?p:{default:p}}var l={scope:s.default.Scope.BLOCK,whitelist:["right","center","justify"]},d=new s.default.Attributor.Attribute("align","align",l),u=new s.default.Attributor.Class("align","ql-align",l),f=new s.default.Attributor.Style("align","text-align",l);o.AlignAttribute=d,o.AlignClass=u,o.AlignStyle=f},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.BackgroundStyle=o.BackgroundClass=void 0;var r=i(0),s=l(r),a=i(26);function l(f){return f&&f.__esModule?f:{default:f}}var d=new s.default.Attributor.Class("background","ql-bg",{scope:s.default.Scope.INLINE}),u=new a.ColorAttributor("background","background-color",{scope:s.default.Scope.INLINE});o.BackgroundClass=d,o.BackgroundStyle=u},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.DirectionStyle=o.DirectionClass=o.DirectionAttribute=void 0;var r=i(0),s=a(r);function a(p){return p&&p.__esModule?p:{default:p}}var l={scope:s.default.Scope.BLOCK,whitelist:["rtl"]},d=new s.default.Attributor.Attribute("direction","dir",l),u=new s.default.Attributor.Class("direction","ql-direction",l),f=new s.default.Attributor.Style("direction","direction",l);o.DirectionAttribute=d,o.DirectionClass=u,o.DirectionStyle=f},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.FontClass=o.FontStyle=void 0;var r=function(){function $(E,P){for(var I=0;I<P.length;I++){var O=P[I];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(E,O.key,O)}}return function(E,P,I){return P&&$(E.prototype,P),I&&$(E,I),E}}(),s=function $(E,P,I){E===null&&(E=Function.prototype);var O=Object.getOwnPropertyDescriptor(E,P);if(O===void 0){var L=Object.getPrototypeOf(E);return L===null?void 0:$(L,P,I)}else{if("value"in O)return O.value;var S=O.get;return S===void 0?void 0:S.call(I)}},a=i(0),l=d(a);function d($){return $&&$.__esModule?$:{default:$}}function u($,E){if(!($ instanceof E))throw new TypeError("Cannot call a class as a function")}function f($,E){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:$}function p($,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);$.prototype=Object.create(E&&E.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf($,E):$.__proto__=E)}var v={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},_=new l.default.Attributor.Class("font","ql-font",v),k=function($){p(E,$);function E(){return u(this,E),f(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return r(E,[{key:"value",value:function(I){return s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"value",this).call(this,I).replace(/["']/g,"")}}]),E}(l.default.Attributor.Style),C=new k("font","font-family",v);o.FontStyle=C,o.FontClass=_},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.SizeStyle=o.SizeClass=void 0;var r=i(0),s=a(r);function a(u){return u&&u.__esModule?u:{default:u}}var l=new s.default.Attributor.Class("size","ql-size",{scope:s.default.Scope.INLINE,whitelist:["small","large","huge"]}),d=new s.default.Attributor.Style("size","font-size",{scope:s.default.Scope.INLINE,whitelist:["10px","18px","32px"]});o.SizeClass=l,o.SizeStyle=d},function(n,o,i){n.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.getLastChangeIndex=o.default=void 0;var r=function(){function P(I,O){for(var L=0;L<O.length;L++){var S=O[L];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(I,S.key,S)}}return function(I,O,L){return O&&P(I.prototype,O),L&&P(I,L),I}}(),s=i(0),a=p(s),l=i(5),d=p(l),u=i(9),f=p(u);function p(P){return P&&P.__esModule?P:{default:P}}function v(P,I){if(!(P instanceof I))throw new TypeError("Cannot call a class as a function")}function _(P,I){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:P}function k(P,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);P.prototype=Object.create(I&&I.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(P,I):P.__proto__=I)}var C=function(P){k(I,P);function I(O,L){v(this,I);var S=_(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,O,L));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(d.default.events.EDITOR_CHANGE,function(j,M,q,B){j!==d.default.events.TEXT_CHANGE||S.ignoreChange||(!S.options.userOnly||B===d.default.sources.USER?S.record(M,q):S.transform(M))}),S.quill.keyboard.addBinding({key:"Z",shortKey:!0},S.undo.bind(S)),S.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},S.redo.bind(S)),/Win/i.test(navigator.platform)&&S.quill.keyboard.addBinding({key:"Y",shortKey:!0},S.redo.bind(S)),S}return r(I,[{key:"change",value:function(L,S){if(this.stack[L].length!==0){var j=this.stack[L].pop();this.stack[S].push(j),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(j[L],d.default.sources.USER),this.ignoreChange=!1;var M=E(j[L]);this.quill.setSelection(M)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(L,S){if(L.ops.length!==0){this.stack.redo=[];var j=this.quill.getContents().diff(S),M=Date.now();if(this.lastRecorded+this.options.delay>M&&this.stack.undo.length>0){var q=this.stack.undo.pop();j=j.compose(q.undo),L=q.redo.compose(L)}else this.lastRecorded=M;this.stack.undo.push({redo:L,undo:j}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(L){this.stack.undo.forEach(function(S){S.undo=L.transform(S.undo,!0),S.redo=L.transform(S.redo,!0)}),this.stack.redo.forEach(function(S){S.undo=L.transform(S.undo,!0),S.redo=L.transform(S.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),I}(f.default);C.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function $(P){var I=P.ops[P.ops.length-1];return I==null?!1:I.insert!=null?typeof I.insert=="string"&&I.insert.endsWith(` `):I.attributes!=null?Object.keys(I.attributes).some(function(O){return a.default.query(O,a.default.Scope.BLOCK)!=null}):!1}function E(P){var I=P.reduce(function(L,S){return L+=S.delete||0,L},0),O=P.length()-I;return $(P)&&(O-=1),O}o.default=C,o.getLastChangeIndex=E},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BaseTooltip=void 0;var r=function(){function ae(de,$e){for(var be=0;be<$e.length;be++){var me=$e[be];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(de,me.key,me)}}return function(de,$e,be){return $e&&ae(de.prototype,$e),be&&ae(de,be),de}}(),s=function ae(de,$e,be){de===null&&(de=Function.prototype);var me=Object.getOwnPropertyDescriptor(de,$e);if(me===void 0){var fe=Object.getPrototypeOf(de);return fe===null?void 0:ae(fe,$e,be)}else{if("value"in me)return me.value;var Ae=me.get;return Ae===void 0?void 0:Ae.call(be)}},a=i(3),l=M(a),d=i(2),u=M(d),f=i(8),p=M(f),v=i(23),_=M(v),k=i(34),C=M(k),$=i(59),E=M($),P=i(60),I=M(P),O=i(28),L=M(O),S=i(61),j=M(S);function M(ae){return ae&&ae.__esModule?ae:{default:ae}}function q(ae,de){if(!(ae instanceof de))throw new TypeError("Cannot call a class as a function")}function B(ae,de){if(!ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de&&(typeof de=="object"||typeof de=="function")?de:ae}function V(ae,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof de);ae.prototype=Object.create(de&&de.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(ae,de):ae.__proto__=de)}var G=[!1,"center","right","justify"],Q=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],X=[!1,"serif","monospace"],Y=["1","2","3",!1],Z=["small",!1,"large","huge"],se=function(ae){V(de,ae);function de($e,be){q(this,de);var me=B(this,(de.__proto__||Object.getPrototypeOf(de)).call(this,$e,be)),fe=function Ae(je){if(!document.body.contains($e.root))return document.body.removeEventListener("click",Ae);me.tooltip!=null&&!me.tooltip.root.contains(je.target)&&document.activeElement!==me.tooltip.textbox&&!me.quill.hasFocus()&&me.tooltip.hide(),me.pickers!=null&&me.pickers.forEach(function(Ye){Ye.container.contains(je.target)||Ye.close()})};return $e.emitter.listenDOM("click",document.body,fe),me}return r(de,[{key:"addModule",value:function(be){var me=s(de.prototype.__proto__||Object.getPrototypeOf(de.prototype),"addModule",this).call(this,be);return be==="toolbar"&&this.extendToolbar(me),me}},{key:"buildButtons",value:function(be,me){be.forEach(function(fe){var Ae=fe.getAttribute("class")||"";Ae.split(/\s+/).forEach(function(je){if(je.startsWith("ql-")&&(je=je.slice(3),me[je]!=null))if(je==="direction")fe.innerHTML=me[je][""]+me[je].rtl;else if(typeof me[je]=="string")fe.innerHTML=me[je];else{var Ye=fe.value||"";Ye!=null&&me[je][Ye]&&(fe.innerHTML=me[je][Ye])}})})}},{key:"buildPickers",value:function(be,me){var fe=this;this.pickers=be.map(function(je){if(je.classList.contains("ql-align"))return je.querySelector("option")==null&&ee(je,G),new I.default(je,me.align);if(je.classList.contains("ql-background")||je.classList.contains("ql-color")){var Ye=je.classList.contains("ql-background")?"background":"color";return je.querySelector("option")==null&&ee(je,Q,Ye==="background"?"#ffffff":"#000000"),new E.default(je,me[Ye])}else return je.querySelector("option")==null&&(je.classList.contains("ql-font")?ee(je,X):je.classList.contains("ql-header")?ee(je,Y):je.classList.contains("ql-size")&&ee(je,Z)),new L.default(je)});var Ae=function(){fe.pickers.forEach(function(Ye){Ye.update()})};this.quill.on(p.default.events.EDITOR_CHANGE,Ae)}}]),de}(C.default);se.DEFAULTS=(0,l.default)(!0,{},C.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var de=this,$e=this.container.querySelector("input.ql-image[type=file]");$e==null&&($e=document.createElement("input"),$e.setAttribute("type","file"),$e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),$e.classList.add("ql-image"),$e.addEventListener("change",function(){if($e.files!=null&&$e.files[0]!=null){var be=new FileReader;be.onload=function(me){var fe=de.quill.getSelection(!0);de.quill.updateContents(new u.default().retain(fe.index).delete(fe.length).insert({image:me.target.result}),p.default.sources.USER),de.quill.setSelection(fe.index+1,p.default.sources.SILENT),$e.value=""},be.readAsDataURL($e.files[0])}}),this.container.appendChild($e)),$e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var ce=function(ae){V(de,ae);function de($e,be){q(this,de);var me=B(this,(de.__proto__||Object.getPrototypeOf(de)).call(this,$e,be));return me.textbox=me.root.querySelector('input[type="text"]'),me.listen(),me}return r(de,[{key:"listen",value:function(){var be=this;this.textbox.addEventListener("keydown",function(me){_.default.match(me,"enter")?(be.save(),me.preventDefault()):_.default.match(me,"escape")&&(be.cancel(),me.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),me!=null?this.textbox.value=me:be!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+be)||""),this.root.setAttribute("data-mode",be)}},{key:"restoreFocus",value:function(){var be=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=be}},{key:"save",value:function(){var be=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var me=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",be,p.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",be,p.default.sources.USER)),this.quill.root.scrollTop=me;break}case"video":be=te(be);case"formula":{if(!be)break;var fe=this.quill.getSelection(!0);if(fe!=null){var Ae=fe.index+fe.length;this.quill.insertEmbed(Ae,this.root.getAttribute("data-mode"),be,p.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Ae+1," ",p.default.sources.USER),this.quill.setSelection(Ae+2,p.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),de}(j.default);function te(ae){var de=ae.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||ae.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return de?(de[1]||"https")+"://www.youtube.com/embed/"+de[2]+"?showinfo=0":(de=ae.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(de[1]||"https")+"://player.vimeo.com/video/"+de[2]+"/":ae}function ee(ae,de){var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;de.forEach(function(be){var me=document.createElement("option");be===$e?me.setAttribute("selected","selected"):me.setAttribute("value",be),ae.appendChild(me)})}o.BaseTooltip=ce,o.default=se},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];this.insertBefore(a[0],null),a.length>1&&this.append.apply(this,a.slice(1))},s.prototype.contains=function(a){for(var l,d=this.iterator();l=d();)if(l===a)return!0;return!1},s.prototype.insertBefore=function(a,l){a&&(a.next=l,l!=null?(a.prev=l.prev,l.prev!=null&&(l.prev.next=a),l.prev=a,l===this.head&&(this.head=a)):this.tail!=null?(this.tail.next=a,a.prev=this.tail,this.tail=a):(a.prev=null,this.head=this.tail=a),this.length+=1)},s.prototype.offset=function(a){for(var l=0,d=this.head;d!=null;){if(d===a)return l;l+=d.length(),d=d.next}return-1},s.prototype.remove=function(a){this.contains(a)&&(a.prev!=null&&(a.prev.next=a.next),a.next!=null&&(a.next.prev=a.prev),a===this.head&&(this.head=a.next),a===this.tail&&(this.tail=a.prev),this.length-=1)},s.prototype.iterator=function(a){return a===void 0&&(a=this.head),function(){var l=a;return a!=null&&(a=a.next),l}},s.prototype.find=function(a,l){l===void 0&&(l=!1);for(var d,u=this.iterator();d=u();){var f=d.length();if(a<f||l&&a===f&&(d.next==null||d.next.length()!==0))return[d,a];a-=f}return[null,0]},s.prototype.forEach=function(a){for(var l,d=this.iterator();l=d();)a(l)},s.prototype.forEachAt=function(a,l,d){if(!(l<=0))for(var u=this.find(a),f=u[0],p=u[1],v,_=a-p,k=this.iterator(f);(v=k())&&_<a+l;){var C=v.length();a>_?d(v,a-_,Math.min(l,_+C-a)):d(v,0,Math.min(C,a+l-_)),_+=C}},s.prototype.map=function(a){return this.reduce(function(l,d){return l.push(a(d)),l},[])},s.prototype.reduce=function(a,l){for(var d,u=this.iterator();d=u();)l=a(l,d);return l},s}();o.default=r},function(n,o,i){var r=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var _ in v)v.hasOwnProperty(_)&&(p[_]=v[_])};return function(p,v){f(p,v);function _(){this.constructor=p}p.prototype=v===null?Object.create(v):(_.prototype=v.prototype,new _)}}();Object.defineProperty(o,"__esModule",{value:!0});var s=i(17),a=i(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},d=100,u=function(f){r(p,f);function p(v){var _=f.call(this,v)||this;return _.scroll=_,_.observer=new MutationObserver(function(k){_.update(k)}),_.observer.observe(_.domNode,l),_.attach(),_}return p.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},p.prototype.deleteAt=function(v,_){this.update(),v===0&&_===this.length()?this.children.forEach(function(k){k.remove()}):f.prototype.deleteAt.call(this,v,_)},p.prototype.formatAt=function(v,_,k,C){this.update(),f.prototype.formatAt.call(this,v,_,k,C)},p.prototype.insertAt=function(v,_,k){this.update(),f.prototype.insertAt.call(this,v,_,k)},p.prototype.optimize=function(v,_){var k=this;v===void 0&&(v=[]),_===void 0&&(_={}),f.prototype.optimize.call(this,_);for(var C=[].slice.call(this.observer.takeRecords());C.length>0;)v.push(C.pop());for(var $=function(O,L){L===void 0&&(L=!0),!(O==null||O===k)&&O.domNode.parentNode!=null&&(O.domNode[a.DATA_KEY].mutations==null&&(O.domNode[a.DATA_KEY].mutations=[]),L&&$(O.parent))},E=function(O){O.domNode[a.DATA_KEY]==null||O.domNode[a.DATA_KEY].mutations==null||(O instanceof s.default&&O.children.forEach(E),O.optimize(_))},P=v,I=0;P.length>0;I+=1){if(I>=d)throw new Error("[Parchment] Maximum optimize iterations reached");for(P.forEach(function(O){var L=a.find(O.target,!0);L!=null&&(L.domNode===O.target&&(O.type==="childList"?($(a.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(S){var j=a.find(S,!1);$(j,!1),j instanceof s.default&&j.children.forEach(function(M){$(M,!1)})})):O.type==="attributes"&&$(L.prev)),$(L))}),this.children.forEach(E),P=[].slice.call(this.observer.takeRecords()),C=P.slice();C.length>0;)v.push(C.pop())}},p.prototype.update=function(v,_){var k=this;_===void 0&&(_={}),v=v||this.observer.takeRecords(),v.map(function(C){var $=a.find(C.target,!0);return $==null?null:$.domNode[a.DATA_KEY].mutations==null?($.domNode[a.DATA_KEY].mutations=[C],$):($.domNode[a.DATA_KEY].mutations.push(C),null)}).forEach(function(C){C==null||C===k||C.domNode[a.DATA_KEY]==null||C.update(C.domNode[a.DATA_KEY].mutations||[],_)}),this.domNode[a.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,_),this.optimize(v,_)},p.blotName="scroll",p.defaultChild="block",p.scope=a.Scope.BLOCK_BLOT,p.tagName="DIV",p}(s.default);o.default=u},function(n,o,i){var r=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var v in p)p.hasOwnProperty(v)&&(f[v]=p[v])};return function(f,p){u(f,p);function v(){this.constructor=f}f.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}}();Object.defineProperty(o,"__esModule",{value:!0});var s=i(18),a=i(1);function l(u,f){if(Object.keys(u).length!==Object.keys(f).length)return!1;for(var p in u)if(u[p]!==f[p])return!1;return!0}var d=function(u){r(f,u);function f(){return u!==null&&u.apply(this,arguments)||this}return f.formats=function(p){if(p.tagName!==f.tagName)return u.formats.call(this,p)},f.prototype.format=function(p,v){var _=this;p===this.statics.blotName&&!v?(this.children.forEach(function(k){k instanceof s.default||(k=k.wrap(f.blotName,!0)),_.attributes.copy(k)}),this.unwrap()):u.prototype.format.call(this,p,v)},f.prototype.formatAt=function(p,v,_,k){if(this.formats()[_]!=null||a.query(_,a.Scope.ATTRIBUTE)){var C=this.isolate(p,v);C.format(_,k)}else u.prototype.formatAt.call(this,p,v,_,k)},f.prototype.optimize=function(p){u.prototype.optimize.call(this,p);var v=this.formats();if(Object.keys(v).length===0)return this.unwrap();var _=this.next;_ instanceof f&&_.prev===this&&l(v,_.formats())&&(_.moveChildren(this),_.remove())},f.blotName="inline",f.scope=a.Scope.INLINE_BLOT,f.tagName="SPAN",f}(s.default);o.default=d},function(n,o,i){var r=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var p in f)f.hasOwnProperty(p)&&(u[p]=f[p])};return function(u,f){d(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(o,"__esModule",{value:!0});var s=i(18),a=i(1),l=function(d){r(u,d);function u(){return d!==null&&d.apply(this,arguments)||this}return u.formats=function(f){var p=a.query(u.blotName).tagName;if(f.tagName!==p)return d.formats.call(this,f)},u.prototype.format=function(f,p){a.query(f,a.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!p?this.replaceWith(u.blotName):d.prototype.format.call(this,f,p))},u.prototype.formatAt=function(f,p,v,_){a.query(v,a.Scope.BLOCK)!=null?this.format(v,_):d.prototype.formatAt.call(this,f,p,v,_)},u.prototype.insertAt=function(f,p,v){if(v==null||a.query(p,a.Scope.INLINE)!=null)d.prototype.insertAt.call(this,f,p,v);else{var _=this.split(f),k=a.create(p,v);_.parent.insertBefore(k,_)}},u.prototype.update=function(f,p){navigator.userAgent.match(/Trident/)?this.build():d.prototype.update.call(this,f,p)},u.blotName="block",u.scope=a.Scope.BLOCK_BLOT,u.tagName="P",u}(s.default);o.default=l},function(n,o,i){var r=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var f in u)u.hasOwnProperty(f)&&(d[f]=u[f])};return function(d,u){l(d,u);function f(){this.constructor=d}d.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(o,"__esModule",{value:!0});var s=i(19),a=function(l){r(d,l);function d(){return l!==null&&l.apply(this,arguments)||this}return d.formats=function(u){},d.prototype.format=function(u,f){l.prototype.formatAt.call(this,0,this.length(),u,f)},d.prototype.formatAt=function(u,f,p,v){u===0&&f===this.length()?this.format(p,v):l.prototype.formatAt.call(this,u,f,p,v)},d.prototype.formats=function(){return this.statics.formats(this.domNode)},d}(s.default);o.default=a},function(n,o,i){var r=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var p in f)f.hasOwnProperty(p)&&(u[p]=f[p])};return function(u,f){d(u,f);function p(){this.constructor=u}u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(o,"__esModule",{value:!0});var s=i(19),a=i(1),l=function(d){r(u,d);function u(f){var p=d.call(this,f)||this;return p.text=p.statics.value(p.domNode),p}return u.create=function(f){return document.createTextNode(f)},u.value=function(f){var p=f.data;return p.normalize&&(p=p.normalize()),p},u.prototype.deleteAt=function(f,p){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+p)},u.prototype.index=function(f,p){return this.domNode===f?p:-1},u.prototype.insertAt=function(f,p,v){v==null?(this.text=this.text.slice(0,f)+p+this.text.slice(f),this.domNode.data=this.text):d.prototype.insertAt.call(this,f,p,v)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(f){d.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(f,p){return[this.domNode,f]},u.prototype.split=function(f,p){if(p===void 0&&(p=!1),!p){if(f===0)return this;if(f===this.length())return this.next}var v=a.create(this.domNode.splitText(f));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},u.prototype.update=function(f,p){var v=this;f.some(function(_){return _.type==="characterData"&&_.target===v.domNode})&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=a.Scope.INLINE_BLOT,u}(s.default);o.default=l},function(n,o,i){var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(a,l){return arguments.length>1&&!this.contains(a)==!l?l:s.call(this,a)}}String.prototype.startsWith||(String.prototype.startsWith=function(a,l){return l=l||0,this.substr(l,a.length)===a}),String.prototype.endsWith||(String.prototype.endsWith=function(a,l){var d=this.toString();(typeof l!="number"||!isFinite(l)||Math.floor(l)!==l||l>d.length)&&(l=d.length),l-=a.length;var u=d.indexOf(a,l);return u!==-1&&u===l}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(l){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof l!="function")throw new TypeError("predicate must be a function");for(var d=Object(this),u=d.length>>>0,f=arguments[1],p,v=0;v<u;v++)if(p=d[v],l.call(f,p,v,d))return p}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,o){var i=-1,r=1,s=0;function a(I,O,L){if(I==O)return I?[[s,I]]:[];(L<0||I.length<L)&&(L=null);var S=f(I,O),j=I.substring(0,S);I=I.substring(S),O=O.substring(S),S=p(I,O);var M=I.substring(I.length-S);I=I.substring(0,I.length-S),O=O.substring(0,O.length-S);var q=l(I,O);return j&&q.unshift([s,j]),M&&q.push([s,M]),_(q),L!=null&&(q=$(q,L)),q=E(q),q}function l(I,O){var L;if(!I)return[[r,O]];if(!O)return[[i,I]];var S=I.length>O.length?I:O,j=I.length>O.length?O:I,M=S.indexOf(j);if(M!=-1)return L=[[r,S.substring(0,M)],[s,j],[r,S.substring(M+j.length)]],I.length>O.length&&(L[0][0]=L[2][0]=i),L;if(j.length==1)return[[i,I],[r,O]];var q=v(I,O);if(q){var B=q[0],V=q[1],G=q[2],Q=q[3],X=q[4],Y=a(B,G),Z=a(V,Q);return Y.concat([[s,X]],Z)}return d(I,O)}function d(I,O){for(var L=I.length,S=O.length,j=Math.ceil((L+S)/2),M=j,q=2*j,B=new Array(q),V=new Array(q),G=0;G<q;G++)B[G]=-1,V[G]=-1;B[M+1]=0,V[M+1]=0;for(var Q=L-S,X=Q%2!=0,Y=0,Z=0,se=0,ce=0,te=0;te<j;te++){for(var ee=-te+Y;ee<=te-Z;ee+=2){var ae=M+ee,de;ee==-te||ee!=te&&B[ae-1]<B[ae+1]?de=B[ae+1]:de=B[ae-1]+1;for(var $e=de-ee;de<L&&$e<S&&I.charAt(de)==O.charAt($e);)de++,$e++;if(B[ae]=de,de>L)Z+=2;else if($e>S)Y+=2;else if(X){var be=M+Q-ee;if(be>=0&&be<q&&V[be]!=-1){var me=L-V[be];if(de>=me)return u(I,O,de,$e)}}}for(var fe=-te+se;fe<=te-ce;fe+=2){var be=M+fe,me;fe==-te||fe!=te&&V[be-1]<V[be+1]?me=V[be+1]:me=V[be-1]+1;for(var Ae=me-fe;me<L&&Ae<S&&I.charAt(L-me-1)==O.charAt(S-Ae-1);)me++,Ae++;if(V[be]=me,me>L)ce+=2;else if(Ae>S)se+=2;else if(!X){var ae=M+Q-fe;if(ae>=0&&ae<q&&B[ae]!=-1){var de=B[ae],$e=M+de-ae;if(me=L-me,de>=me)return u(I,O,de,$e)}}}}return[[i,I],[r,O]]}function u(I,O,L,S){var j=I.substring(0,L),M=O.substring(0,S),q=I.substring(L),B=O.substring(S),V=a(j,M),G=a(q,B);return V.concat(G)}function f(I,O){if(!I||!O||I.charAt(0)!=O.charAt(0))return 0;for(var L=0,S=Math.min(I.length,O.length),j=S,M=0;L<j;)I.substring(M,j)==O.substring(M,j)?(L=j,M=L):S=j,j=Math.floor((S-L)/2+L);return j}function p(I,O){if(!I||!O||I.charAt(I.length-1)!=O.charAt(O.length-1))return 0;for(var L=0,S=Math.min(I.length,O.length),j=S,M=0;L<j;)I.substring(I.length-j,I.length-M)==O.substring(O.length-j,O.length-M)?(L=j,M=L):S=j,j=Math.floor((S-L)/2+L);return j}function v(I,O){var L=I.length>O.length?I:O,S=I.length>O.length?O:I;if(L.length<4||S.length*2<L.length)return null;function j(Z,se,ce){for(var te=Z.substring(ce,ce+Math.floor(Z.length/4)),ee=-1,ae="",de,$e,be,me;(ee=se.indexOf(te,ee+1))!=-1;){var fe=f(Z.substring(ce),se.substring(ee)),Ae=p(Z.substring(0,ce),se.substring(0,ee));ae.length<Ae+fe&&(ae=se.substring(ee-Ae,ee)+se.substring(ee,ee+fe),de=Z.substring(0,ce-Ae),$e=Z.substring(ce+fe),be=se.substring(0,ee-Ae),me=se.substring(ee+fe))}return ae.length*2>=Z.length?[de,$e,be,me,ae]:null}var M=j(L,S,Math.ceil(L.length/4)),q=j(L,S,Math.ceil(L.length/2)),B;if(!M&&!q)return null;q?M?B=M[4].length>q[4].length?M:q:B=q:B=M;var V,G,Q,X;I.length>O.length?(V=B[0],G=B[1],Q=B[2],X=B[3]):(Q=B[0],X=B[1],V=B[2],G=B[3]);var Y=B[4];return[V,G,Q,X,Y]}function _(I){I.push([s,""]);for(var O=0,L=0,S=0,j="",M="",q;O<I.length;)switch(I[O][0]){case r:S++,M+=I[O][1],O++;break;case i:L++,j+=I[O][1],O++;break;case s:L+S>1?(L!==0&&S!==0&&(q=f(M,j),q!==0&&(O-L-S>0&&I[O-L-S-1][0]==s?I[O-L-S-1][1]+=M.substring(0,q):(I.splice(0,0,[s,M.substring(0,q)]),O++),M=M.substring(q),j=j.substring(q)),q=p(M,j),q!==0&&(I[O][1]=M.substring(M.length-q)+I[O][1],M=M.substring(0,M.length-q),j=j.substring(0,j.length-q))),L===0?I.splice(O-S,L+S,[r,M]):S===0?I.splice(O-L,L+S,[i,j]):I.splice(O-L-S,L+S,[i,j],[r,M]),O=O-L-S+(L?1:0)+(S?1:0)+1):O!==0&&I[O-1][0]==s?(I[O-1][1]+=I[O][1],I.splice(O,1)):O++,S=0,L=0,j="",M="";break}I[I.length-1][1]===""&&I.pop();var B=!1;for(O=1;O<I.length-1;)I[O-1][0]==s&&I[O+1][0]==s&&(I[O][1].substring(I[O][1].length-I[O-1][1].length)==I[O-1][1]?(I[O][1]=I[O-1][1]+I[O][1].substring(0,I[O][1].length-I[O-1][1].length),I[O+1][1]=I[O-1][1]+I[O+1][1],I.splice(O-1,1),B=!0):I[O][1].substring(0,I[O+1][1].length)==I[O+1][1]&&(I[O-1][1]+=I[O+1][1],I[O][1]=I[O][1].substring(I[O+1][1].length)+I[O+1][1],I.splice(O+1,1),B=!0)),O++;B&&_(I)}var k=a;k.INSERT=r,k.DELETE=i,k.EQUAL=s,n.exports=k;function C(I,O){if(O===0)return[s,I];for(var L=0,S=0;S<I.length;S++){var j=I[S];if(j[0]===i||j[0]===s){var M=L+j[1].length;if(O===M)return[S+1,I];if(O<M){I=I.slice();var q=O-L,B=[j[0],j[1].slice(0,q)],V=[j[0],j[1].slice(q)];return I.splice(S,1,B,V),[S+1,I]}else L=M}}throw new Error("cursor_pos is out of bounds!")}function $(I,O){var L=C(I,O),S=L[1],j=L[0],M=S[j],q=S[j+1];if(M==null)return I;if(M[0]!==s)return I;if(q!=null&&M[1]+q[1]===q[1]+M[1])return S.splice(j,2,q,M),P(S,j,2);if(q!=null&&q[1].indexOf(M[1])===0){S.splice(j,2,[q[0],M[1]],[0,M[1]]);var B=q[1].slice(M[1].length);return B.length>0&&S.splice(j+2,0,[q[0],B]),P(S,j,3)}else return I}function E(I){for(var O=!1,L=function(q){return q.charCodeAt(0)>=56320&&q.charCodeAt(0)<=57343},S=function(q){return q.charCodeAt(q.length-1)>=55296&&q.charCodeAt(q.length-1)<=56319},j=2;j<I.length;j+=1)I[j-2][0]===s&&S(I[j-2][1])&&I[j-1][0]===i&&L(I[j-1][1])&&I[j][0]===r&&L(I[j][1])&&(O=!0,I[j-1][1]=I[j-2][1].slice(-1)+I[j-1][1],I[j][1]=I[j-2][1].slice(-1)+I[j][1],I[j-2][1]=I[j-2][1].slice(0,-1));if(!O)return I;for(var M=[],j=0;j<I.length;j+=1)I[j][1].length>0&&M.push(I[j]);return M}function P(I,O,L){for(var S=O+L-1;S>=0&&S>=O-1;S--)if(S+1<I.length){var j=I[S],M=I[S+1];j[0]===M[1]&&I.splice(S,2,[j[0],j[1]+M[1]])}return I}},function(n,o){o=n.exports=typeof Object.keys=="function"?Object.keys:i,o.shim=i;function i(r){var s=[];for(var a in r)s.push(a);return s}},function(n,o){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";o=n.exports=i?r:s,o.supported=r;function r(a){return Object.prototype.toString.call(a)=="[object Arguments]"}o.unsupported=s;function s(a){return a&&typeof a=="object"&&typeof a.length=="number"&&Object.prototype.hasOwnProperty.call(a,"callee")&&!Object.prototype.propertyIsEnumerable.call(a,"callee")||!1}},function(n,o){var i=Object.prototype.hasOwnProperty,r="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(r=!1));function a(d,u,f){this.fn=d,this.context=u,this.once=f||!1}function l(){this._events=new s,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,p;if(this._eventsCount===0)return u;for(p in f=this._events)i.call(f,p)&&u.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u,f){var p=r?r+u:u,v=this._events[p];if(f)return!!v;if(!v)return[];if(v.fn)return[v.fn];for(var _=0,k=v.length,C=new Array(k);_<k;_++)C[_]=v[_].fn;return C},l.prototype.emit=function(u,f,p,v,_,k){var C=r?r+u:u;if(!this._events[C])return!1;var $=this._events[C],E=arguments.length,P,I;if($.fn){switch($.once&&this.removeListener(u,$.fn,void 0,!0),E){case 1:return $.fn.call($.context),!0;case 2:return $.fn.call($.context,f),!0;case 3:return $.fn.call($.context,f,p),!0;case 4:return $.fn.call($.context,f,p,v),!0;case 5:return $.fn.call($.context,f,p,v,_),!0;case 6:return $.fn.call($.context,f,p,v,_,k),!0}for(I=1,P=new Array(E-1);I<E;I++)P[I-1]=arguments[I];$.fn.apply($.context,P)}else{var O=$.length,L;for(I=0;I<O;I++)switch($[I].once&&this.removeListener(u,$[I].fn,void 0,!0),E){case 1:$[I].fn.call($[I].context);break;case 2:$[I].fn.call($[I].context,f);break;case 3:$[I].fn.call($[I].context,f,p);break;case 4:$[I].fn.call($[I].context,f,p,v);break;default:if(!P)for(L=1,P=new Array(E-1);L<E;L++)P[L-1]=arguments[L];$[I].fn.apply($[I].context,P)}}return!0},l.prototype.on=function(u,f,p){var v=new a(f,p||this),_=r?r+u:u;return this._events[_]?this._events[_].fn?this._events[_]=[this._events[_],v]:this._events[_].push(v):(this._events[_]=v,this._eventsCount++),this},l.prototype.once=function(u,f,p){var v=new a(f,p||this,!0),_=r?r+u:u;return this._events[_]?this._events[_].fn?this._events[_]=[this._events[_],v]:this._events[_].push(v):(this._events[_]=v,this._eventsCount++),this},l.prototype.removeListener=function(u,f,p,v){var _=r?r+u:u;if(!this._events[_])return this;if(!f)return--this._eventsCount===0?this._events=new s:delete this._events[_],this;var k=this._events[_];if(k.fn)k.fn===f&&(!v||k.once)&&(!p||k.context===p)&&(--this._eventsCount===0?this._events=new s:delete this._events[_]);else{for(var C=0,$=[],E=k.length;C<E;C++)(k[C].fn!==f||v&&!k[C].once||p&&k[C].context!==p)&&$.push(k[C]);$.length?this._events[_]=$.length===1?$[0]:$:--this._eventsCount===0?this._events=new s:delete this._events[_]}return this},l.prototype.removeAllListeners=function(u){var f;return u?(f=r?r+u:u,this._events[f]&&(--this._eventsCount===0?this._events=new s:delete this._events[f])):(this._events=new s,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=r,l.EventEmitter=l,typeof n<"u"&&(n.exports=l)},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.matchText=o.matchSpacing=o.matchNewline=o.matchBlot=o.matchAttributor=o.default=void 0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ve){return typeof Ve}:function(Ve){return Ve&&typeof Symbol=="function"&&Ve.constructor===Symbol&&Ve!==Symbol.prototype?"symbol":typeof Ve},s=function(){function Ve(tt,ge){var ye=[],Te=!0,gt=!1,yt=void 0;try{for(var Xe=tt[Symbol.iterator](),Ze;!(Te=(Ze=Xe.next()).done)&&(ye.push(Ze.value),!(ge&&ye.length===ge));Te=!0);}catch(vt){gt=!0,yt=vt}finally{try{!Te&&Xe.return&&Xe.return()}finally{if(gt)throw yt}}return ye}return function(tt,ge){if(Array.isArray(tt))return tt;if(Symbol.iterator in Object(tt))return Ve(tt,ge);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function Ve(tt,ge){for(var ye=0;ye<ge.length;ye++){var Te=ge[ye];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(tt,Te.key,Te)}}return function(tt,ge,ye){return ge&&Ve(tt.prototype,ge),ye&&Ve(tt,ye),tt}}(),l=i(3),d=V(l),u=i(2),f=V(u),p=i(0),v=V(p),_=i(5),k=V(_),C=i(10),$=V(C),E=i(9),P=V(E),I=i(36),O=i(37),L=i(13),S=V(L),j=i(26),M=i(38),q=i(39),B=i(40);function V(Ve){return Ve&&Ve.__esModule?Ve:{default:Ve}}function G(Ve,tt,ge){return tt in Ve?Object.defineProperty(Ve,tt,{value:ge,enumerable:!0,configurable:!0,writable:!0}):Ve[tt]=ge,Ve}function Q(Ve,tt){if(!(Ve instanceof tt))throw new TypeError("Cannot call a class as a function")}function X(Ve,tt){if(!Ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt&&(typeof tt=="object"||typeof tt=="function")?tt:Ve}function Y(Ve,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof tt);Ve.prototype=Object.create(tt&&tt.prototype,{constructor:{value:Ve,enumerable:!1,writable:!0,configurable:!0}}),tt&&(Object.setPrototypeOf?Object.setPrototypeOf(Ve,tt):Ve.__proto__=tt)}var Z=(0,$.default)("quill:clipboard"),se="__ql-matcher",ce=[[Node.TEXT_NODE,ut],[Node.TEXT_NODE,ve],["br",_t],[Node.ELEMENT_NODE,ve],[Node.ELEMENT_NODE,Ye],[Node.ELEMENT_NODE,qe],[Node.ELEMENT_NODE,je],[Node.ELEMENT_NODE,$t],["li",we],["b",Ae.bind(Ae,"bold")],["i",Ae.bind(Ae,"italic")],["style",xt]],te=[I.AlignAttribute,M.DirectionAttribute].reduce(function(Ve,tt){return Ve[tt.keyName]=tt,Ve},{}),ee=[I.AlignStyle,O.BackgroundStyle,j.ColorStyle,M.DirectionStyle,q.FontStyle,B.SizeStyle].reduce(function(Ve,tt){return Ve[tt.keyName]=tt,Ve},{}),ae=function(Ve){Y(tt,Ve);function tt(ge,ye){Q(this,tt);var Te=X(this,(tt.__proto__||Object.getPrototypeOf(tt)).call(this,ge,ye));return Te.quill.root.addEventListener("paste",Te.onPaste.bind(Te)),Te.container=Te.quill.addContainer("ql-clipboard"),Te.container.setAttribute("contenteditable",!0),Te.container.setAttribute("tabindex",-1),Te.matchers=[],ce.concat(Te.options.matchers).forEach(function(gt){var yt=s(gt,2),Xe=yt[0],Ze=yt[1];!ye.matchVisual&&Ze===qe||Te.addMatcher(Xe,Ze)}),Te}return a(tt,[{key:"addMatcher",value:function(ye,Te){this.matchers.push([ye,Te])}},{key:"convert",value:function(ye){if(typeof ye=="string")return this.container.innerHTML=ye.replace(/\>\r?\n +\</g,"><"),this.convert();var Te=this.quill.getFormat(this.quill.selection.savedRange.index);if(Te[S.default.blotName]){var gt=this.container.innerText;return this.container.innerHTML="",new f.default().insert(gt,G({},S.default.blotName,Te[S.default.blotName]))}var yt=this.prepareMatching(),Xe=s(yt,2),Ze=Xe[0],vt=Xe[1],Ut=fe(this.container,Ze,vt);return be(Ut,` `)&&Ut.ops[Ut.ops.length-1].attributes==null&&(Ut=Ut.compose(new f.default().retain(Ut.length()-1).delete(1))),Z.log("convert",this.container.innerHTML,Ut),this.container.innerHTML="",Ut}},{key:"dangerouslyPasteHTML",value:function(ye,Te){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k.default.sources.API;if(typeof ye=="string")this.quill.setContents(this.convert(ye),Te),this.quill.setSelection(0,k.default.sources.SILENT);else{var yt=this.convert(Te);this.quill.updateContents(new f.default().retain(ye).concat(yt),gt),this.quill.setSelection(ye+yt.length(),k.default.sources.SILENT)}}},{key:"onPaste",value:function(ye){var Te=this;if(!(ye.defaultPrevented||!this.quill.isEnabled())){var gt=this.quill.getSelection(),yt=new f.default().retain(gt.index),Xe=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(k.default.sources.SILENT),setTimeout(function(){yt=yt.concat(Te.convert()).delete(gt.length),Te.quill.updateContents(yt,k.default.sources.USER),Te.quill.setSelection(yt.length()-gt.length,k.default.sources.SILENT),Te.quill.scrollingContainer.scrollTop=Xe,Te.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ye=this,Te=[],gt=[];return this.matchers.forEach(function(yt){var Xe=s(yt,2),Ze=Xe[0],vt=Xe[1];switch(Ze){case Node.TEXT_NODE:gt.push(vt);break;case Node.ELEMENT_NODE:Te.push(vt);break;default:[].forEach.call(ye.container.querySelectorAll(Ze),function(Ut){Ut[se]=Ut[se]||[],Ut[se].push(vt)});break}}),[Te,gt]}}]),tt}(P.default);ae.DEFAULTS={matchers:[],matchVisual:!0};function de(Ve,tt,ge){return(typeof tt>"u"?"undefined":r(tt))==="object"?Object.keys(tt).reduce(function(ye,Te){return de(ye,Te,tt[Te])},Ve):Ve.reduce(function(ye,Te){return Te.attributes&&Te.attributes[tt]?ye.push(Te):ye.insert(Te.insert,(0,d.default)({},G({},tt,ge),Te.attributes))},new f.default)}function $e(Ve){if(Ve.nodeType!==Node.ELEMENT_NODE)return{};var tt="__ql-computed-style";return Ve[tt]||(Ve[tt]=window.getComputedStyle(Ve))}function be(Ve,tt){for(var ge="",ye=Ve.ops.length-1;ye>=0&&ge.length<tt.length;--ye){var Te=Ve.ops[ye];if(typeof Te.insert!="string")break;ge=Te.insert+ge}return ge.slice(-1*tt.length)===tt}function me(Ve){if(Ve.childNodes.length===0)return!1;var tt=$e(Ve);return["block","list-item"].indexOf(tt.display)>-1}function fe(Ve,tt,ge){return Ve.nodeType===Ve.TEXT_NODE?ge.reduce(function(ye,Te){return Te(Ve,ye)},new f.default):Ve.nodeType===Ve.ELEMENT_NODE?[].reduce.call(Ve.childNodes||[],function(ye,Te){var gt=fe(Te,tt,ge);return Te.nodeType===Ve.ELEMENT_NODE&&(gt=tt.reduce(function(yt,Xe){return Xe(Te,yt)},gt),gt=(Te[se]||[]).reduce(function(yt,Xe){return Xe(Te,yt)},gt)),ye.concat(gt)},new f.default):new f.default}function Ae(Ve,tt,ge){return de(ge,Ve,!0)}function je(Ve,tt){var ge=v.default.Attributor.Attribute.keys(Ve),ye=v.default.Attributor.Class.keys(Ve),Te=v.default.Attributor.Style.keys(Ve),gt={};return ge.concat(ye).concat(Te).forEach(function(yt){var Xe=v.default.query(yt,v.default.Scope.ATTRIBUTE);Xe!=null&&(gt[Xe.attrName]=Xe.value(Ve),gt[Xe.attrName])||(Xe=te[yt],Xe!=null&&(Xe.attrName===yt||Xe.keyName===yt)&&(gt[Xe.attrName]=Xe.value(Ve)||void 0),Xe=ee[yt],Xe!=null&&(Xe.attrName===yt||Xe.keyName===yt)&&(Xe=ee[yt],gt[Xe.attrName]=Xe.value(Ve)||void 0))}),Object.keys(gt).length>0&&(tt=de(tt,gt)),tt}function Ye(Ve,tt){var ge=v.default.query(Ve);if(ge==null)return tt;if(ge.prototype instanceof v.default.Embed){var ye={},Te=ge.value(Ve);Te!=null&&(ye[ge.blotName]=Te,tt=new f.default().insert(ye,ge.formats(Ve)))}else typeof ge.formats=="function"&&(tt=de(tt,ge.blotName,ge.formats(Ve)));return tt}function _t(Ve,tt){return be(tt,` `)||tt.insert(` `),tt}function xt(){return new f.default}function we(Ve,tt){var ge=v.default.query(Ve);if(ge==null||ge.blotName!=="list-item"||!be(tt,` `))return tt;for(var ye=-1,Te=Ve.parentNode;!Te.classList.contains("ql-clipboard");)(v.default.query(Te)||{}).blotName==="list"&&(ye+=1),Te=Te.parentNode;return ye<=0?tt:tt.compose(new f.default().retain(tt.length()-1).retain(1,{indent:ye}))}function ve(Ve,tt){return be(tt,` `)||(me(Ve)||tt.length()>0&&Ve.nextSibling&&me(Ve.nextSibling))&&tt.insert(` `),tt}function qe(Ve,tt){if(me(Ve)&&Ve.nextElementSibling!=null&&!be(tt,` `)){var ge=Ve.offsetHeight+parseFloat($e(Ve).marginTop)+parseFloat($e(Ve).marginBottom);Ve.nextElementSibling.offsetTop>Ve.offsetTop+ge*1.5&&tt.insert(` `)}return tt}function $t(Ve,tt){var ge={},ye=Ve.style||{};return ye.fontStyle&&$e(Ve).fontStyle==="italic"&&(ge.italic=!0),ye.fontWeight&&($e(Ve).fontWeight.startsWith("bold")||parseInt($e(Ve).fontWeight)>=700)&&(ge.bold=!0),Object.keys(ge).length>0&&(tt=de(tt,ge)),parseFloat(ye.textIndent||0)>0&&(tt=new f.default().insert(" ").concat(tt)),tt}function ut(Ve,tt){var ge=Ve.data;if(Ve.parentNode.tagName==="O:P")return tt.insert(ge.trim());if(ge.trim().length===0&&Ve.parentNode.classList.contains("ql-clipboard"))return tt;if(!$e(Ve.parentNode).whiteSpace.startsWith("pre")){var ye=function(gt,yt){return yt=yt.replace(/[^\u00a0]/g,""),yt.length<1&>?" ":yt};ge=ge.replace(/\r\n/g," ").replace(/\n/g," "),ge=ge.replace(/\s\s+/g,ye.bind(ye,!0)),(Ve.previousSibling==null&&me(Ve.parentNode)||Ve.previousSibling!=null&&me(Ve.previousSibling))&&(ge=ge.replace(/^\s+/,ye.bind(ye,!1))),(Ve.nextSibling==null&&me(Ve.parentNode)||Ve.nextSibling!=null&&me(Ve.nextSibling))&&(ge=ge.replace(/\s+$/,ye.bind(ye,!1)))}return tt.insert(ge)}o.default=ae,o.matchAttributor=je,o.matchBlot=Ye,o.matchNewline=ve,o.matchSpacing=qe,o.matchText=ut},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function _(k,C){for(var $=0;$<C.length;$++){var E=C[$];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,C,$){return C&&_(k.prototype,C),$&&_(k,$),k}}(),s=function _(k,C,$){k===null&&(k=Function.prototype);var E=Object.getOwnPropertyDescriptor(k,C);if(E===void 0){var P=Object.getPrototypeOf(k);return P===null?void 0:_(P,C,$)}else{if("value"in E)return E.value;var I=E.get;return I===void 0?void 0:I.call($)}},a=i(6),l=d(a);function d(_){return _&&_.__esModule?_:{default:_}}function u(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}function f(_,k){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:_}function p(_,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);_.prototype=Object.create(k&&k.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(_,k):_.__proto__=k)}var v=function(_){p(k,_);function k(){return u(this,k),f(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,[{key:"optimize",value:function($){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"optimize",this).call(this,$),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),k}(l.default);v.blotName="bold",v.tagName=["STRONG","B"],o.default=v},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.addControls=o.default=void 0;var r=function(){function B(V,G){var Q=[],X=!0,Y=!1,Z=void 0;try{for(var se=V[Symbol.iterator](),ce;!(X=(ce=se.next()).done)&&(Q.push(ce.value),!(G&&Q.length===G));X=!0);}catch(te){Y=!0,Z=te}finally{try{!X&&se.return&&se.return()}finally{if(Y)throw Z}}return Q}return function(V,G){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return B(V,G);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function B(V,G){for(var Q=0;Q<G.length;Q++){var X=G[Q];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(V,X.key,X)}}return function(V,G,Q){return G&&B(V.prototype,G),Q&&B(V,Q),V}}(),a=i(2),l=$(a),d=i(0),u=$(d),f=i(5),p=$(f),v=i(10),_=$(v),k=i(9),C=$(k);function $(B){return B&&B.__esModule?B:{default:B}}function E(B,V,G){return V in B?Object.defineProperty(B,V,{value:G,enumerable:!0,configurable:!0,writable:!0}):B[V]=G,B}function P(B,V){if(!(B instanceof V))throw new TypeError("Cannot call a class as a function")}function I(B,V){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:B}function O(B,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);B.prototype=Object.create(V&&V.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(B,V):B.__proto__=V)}var L=(0,_.default)("quill:toolbar"),S=function(B){O(V,B);function V(G,Q){P(this,V);var X=I(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,G,Q));if(Array.isArray(X.options.container)){var Y=document.createElement("div");M(Y,X.options.container),G.container.parentNode.insertBefore(Y,G.container),X.container=Y}else typeof X.options.container=="string"?X.container=document.querySelector(X.options.container):X.container=X.options.container;if(!(X.container instanceof HTMLElement)){var Z;return Z=L.error("Container required for toolbar",X.options),I(X,Z)}return X.container.classList.add("ql-toolbar"),X.controls=[],X.handlers={},Object.keys(X.options.handlers).forEach(function(se){X.addHandler(se,X.options.handlers[se])}),[].forEach.call(X.container.querySelectorAll("button, select"),function(se){X.attach(se)}),X.quill.on(p.default.events.EDITOR_CHANGE,function(se,ce){se===p.default.events.SELECTION_CHANGE&&X.update(ce)}),X.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){var se=X.quill.selection.getRange(),ce=r(se,1),te=ce[0];X.update(te)}),X}return s(V,[{key:"addHandler",value:function(Q,X){this.handlers[Q]=X}},{key:"attach",value:function(Q){var X=this,Y=[].find.call(Q.classList,function(se){return se.indexOf("ql-")===0});if(Y){if(Y=Y.slice(3),Q.tagName==="BUTTON"&&Q.setAttribute("type","button"),this.handlers[Y]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Y]==null){L.warn("ignoring attaching to disabled format",Y,Q);return}if(u.default.query(Y)==null){L.warn("ignoring attaching to nonexistent format",Y,Q);return}}var Z=Q.tagName==="SELECT"?"change":"click";Q.addEventListener(Z,function(se){var ce=void 0;if(Q.tagName==="SELECT"){if(Q.selectedIndex<0)return;var te=Q.options[Q.selectedIndex];te.hasAttribute("selected")?ce=!1:ce=te.value||!1}else Q.classList.contains("ql-active")?ce=!1:ce=Q.value||!Q.hasAttribute("value"),se.preventDefault();X.quill.focus();var ee=X.quill.selection.getRange(),ae=r(ee,1),de=ae[0];if(X.handlers[Y]!=null)X.handlers[Y].call(X,ce);else if(u.default.query(Y).prototype instanceof u.default.Embed){if(ce=prompt("Enter "+Y),!ce)return;X.quill.updateContents(new l.default().retain(de.index).delete(de.length).insert(E({},Y,ce)),p.default.sources.USER)}else X.quill.format(Y,ce,p.default.sources.USER);X.update(de)}),this.controls.push([Y,Q])}}},{key:"update",value:function(Q){var X=Q==null?{}:this.quill.getFormat(Q);this.controls.forEach(function(Y){var Z=r(Y,2),se=Z[0],ce=Z[1];if(ce.tagName==="SELECT"){var te=void 0;if(Q==null)te=null;else if(X[se]==null)te=ce.querySelector("option[selected]");else if(!Array.isArray(X[se])){var ee=X[se];typeof ee=="string"&&(ee=ee.replace(/\"/g,'\\"')),te=ce.querySelector('option[value="'+ee+'"]')}te==null?(ce.value="",ce.selectedIndex=-1):te.selected=!0}else if(Q==null)ce.classList.remove("ql-active");else if(ce.hasAttribute("value")){var ae=X[se]===ce.getAttribute("value")||X[se]!=null&&X[se].toString()===ce.getAttribute("value")||X[se]==null&&!ce.getAttribute("value");ce.classList.toggle("ql-active",ae)}else ce.classList.toggle("ql-active",X[se]!=null)})}}]),V}(C.default);S.DEFAULTS={};function j(B,V,G){var Q=document.createElement("button");Q.setAttribute("type","button"),Q.classList.add("ql-"+V),G!=null&&(Q.value=G),B.appendChild(Q)}function M(B,V){Array.isArray(V[0])||(V=[V]),V.forEach(function(G){var Q=document.createElement("span");Q.classList.add("ql-formats"),G.forEach(function(X){if(typeof X=="string")j(Q,X);else{var Y=Object.keys(X)[0],Z=X[Y];Array.isArray(Z)?q(Q,Y,Z):j(Q,Y,Z)}}),B.appendChild(Q)})}function q(B,V,G){var Q=document.createElement("select");Q.classList.add("ql-"+V),G.forEach(function(X){var Y=document.createElement("option");X!==!1?Y.setAttribute("value",X):Y.setAttribute("selected","selected"),Q.appendChild(Y)}),B.appendChild(Q)}S.DEFAULTS={container:null,handlers:{clean:function(){var V=this,G=this.quill.getSelection();if(G!=null)if(G.length==0){var Q=this.quill.getFormat();Object.keys(Q).forEach(function(X){u.default.query(X,u.default.Scope.INLINE)!=null&&V.quill.format(X,!1)})}else this.quill.removeFormat(G,p.default.sources.USER)},direction:function(V){var G=this.quill.getFormat().align;V==="rtl"&&G==null?this.quill.format("align","right",p.default.sources.USER):!V&&G==="right"&&this.quill.format("align",!1,p.default.sources.USER),this.quill.format("direction",V,p.default.sources.USER)},indent:function(V){var G=this.quill.getSelection(),Q=this.quill.getFormat(G),X=parseInt(Q.indent||0);if(V==="+1"||V==="-1"){var Y=V==="+1"?1:-1;Q.direction==="rtl"&&(Y*=-1),this.quill.format("indent",X+Y,p.default.sources.USER)}},link:function(V){V===!0&&(V=prompt("Enter link URL:")),this.quill.format("link",V,p.default.sources.USER)},list:function(V){var G=this.quill.getSelection(),Q=this.quill.getFormat(G);V==="check"?Q.list==="checked"||Q.list==="unchecked"?this.quill.format("list",!1,p.default.sources.USER):this.quill.format("list","unchecked",p.default.sources.USER):this.quill.format("list",V,p.default.sources.USER)}}},o.default=S,o.addControls=M},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function _(k,C){for(var $=0;$<C.length;$++){var E=C[$];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,C,$){return C&&_(k.prototype,C),$&&_(k,$),k}}(),s=function _(k,C,$){k===null&&(k=Function.prototype);var E=Object.getOwnPropertyDescriptor(k,C);if(E===void 0){var P=Object.getPrototypeOf(k);return P===null?void 0:_(P,C,$)}else{if("value"in E)return E.value;var I=E.get;return I===void 0?void 0:I.call($)}},a=i(28),l=d(a);function d(_){return _&&_.__esModule?_:{default:_}}function u(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}function f(_,k){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:_}function p(_,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);_.prototype=Object.create(k&&k.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(_,k):_.__proto__=k)}var v=function(_){p(k,_);function k(C,$){u(this,k);var E=f(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,C));return E.label.innerHTML=$,E.container.classList.add("ql-color-picker"),[].slice.call(E.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(P){P.classList.add("ql-primary")}),E}return r(k,[{key:"buildItem",value:function($){var E=s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"buildItem",this).call(this,$);return E.style.backgroundColor=$.getAttribute("value")||"",E}},{key:"selectItem",value:function($,E){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"selectItem",this).call(this,$,E);var P=this.label.querySelector(".ql-color-label"),I=$&&$.getAttribute("data-value")||"";P&&(P.tagName==="line"?P.style.stroke=I:P.style.fill=I)}}]),k}(l.default);o.default=v},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function _(k,C){for(var $=0;$<C.length;$++){var E=C[$];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,C,$){return C&&_(k.prototype,C),$&&_(k,$),k}}(),s=function _(k,C,$){k===null&&(k=Function.prototype);var E=Object.getOwnPropertyDescriptor(k,C);if(E===void 0){var P=Object.getPrototypeOf(k);return P===null?void 0:_(P,C,$)}else{if("value"in E)return E.value;var I=E.get;return I===void 0?void 0:I.call($)}},a=i(28),l=d(a);function d(_){return _&&_.__esModule?_:{default:_}}function u(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}function f(_,k){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:_}function p(_,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);_.prototype=Object.create(k&&k.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(_,k):_.__proto__=k)}var v=function(_){p(k,_);function k(C,$){u(this,k);var E=f(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,C));return E.container.classList.add("ql-icon-picker"),[].forEach.call(E.container.querySelectorAll(".ql-picker-item"),function(P){P.innerHTML=$[P.getAttribute("data-value")||""]}),E.defaultItem=E.container.querySelector(".ql-selected"),E.selectItem(E.defaultItem),E}return r(k,[{key:"selectItem",value:function($,E){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"selectItem",this).call(this,$,E),$=$||this.defaultItem,this.label.innerHTML=$.innerHTML}}]),k}(l.default);o.default=v},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function l(d,u){for(var f=0;f<u.length;f++){var p=u[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}return function(d,u,f){return u&&l(d.prototype,u),f&&l(d,f),d}}();function s(l,d){if(!(l instanceof d))throw new TypeError("Cannot call a class as a function")}var a=function(){function l(d,u){var f=this;s(this,l),this.quill=d,this.boundsContainer=u||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return r(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var f=u.left+u.width/2-this.root.offsetWidth/2,p=u.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=p+"px",this.root.classList.remove("ql-flip");var v=this.boundsContainer.getBoundingClientRect(),_=this.root.getBoundingClientRect(),k=0;if(_.right>v.right&&(k=v.right-_.right,this.root.style.left=f+k+"px"),_.left<v.left&&(k=v.left-_.left,this.root.style.left=f+k+"px"),_.bottom>v.bottom){var C=_.bottom-_.top,$=u.bottom-u.top+C;this.root.style.top=p-$+"px",this.root.classList.add("ql-flip")}return k}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();o.default=a},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function q(B,V){var G=[],Q=!0,X=!1,Y=void 0;try{for(var Z=B[Symbol.iterator](),se;!(Q=(se=Z.next()).done)&&(G.push(se.value),!(V&&G.length===V));Q=!0);}catch(ce){X=!0,Y=ce}finally{try{!Q&&Z.return&&Z.return()}finally{if(X)throw Y}}return G}return function(B,V){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return q(B,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function q(B,V,G){B===null&&(B=Function.prototype);var Q=Object.getOwnPropertyDescriptor(B,V);if(Q===void 0){var X=Object.getPrototypeOf(B);return X===null?void 0:q(X,V,G)}else{if("value"in Q)return Q.value;var Y=Q.get;return Y===void 0?void 0:Y.call(G)}},a=function(){function q(B,V){for(var G=0;G<V.length;G++){var Q=V[G];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(B,Q.key,Q)}}return function(B,V,G){return V&&q(B.prototype,V),G&&q(B,G),B}}(),l=i(3),d=P(l),u=i(8),f=P(u),p=i(43),v=P(p),_=i(27),k=P(_),C=i(15),$=i(41),E=P($);function P(q){return q&&q.__esModule?q:{default:q}}function I(q,B){if(!(q instanceof B))throw new TypeError("Cannot call a class as a function")}function O(q,B){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:q}function L(q,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);q.prototype=Object.create(B&&B.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(q,B):q.__proto__=B)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],j=function(q){L(B,q);function B(V,G){I(this,B),G.modules.toolbar!=null&&G.modules.toolbar.container==null&&(G.modules.toolbar.container=S);var Q=O(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,V,G));return Q.quill.container.classList.add("ql-snow"),Q}return a(B,[{key:"extendToolbar",value:function(G){G.container.classList.add("ql-snow"),this.buildButtons([].slice.call(G.container.querySelectorAll("button")),E.default),this.buildPickers([].slice.call(G.container.querySelectorAll("select")),E.default),this.tooltip=new M(this.quill,this.options.bounds),G.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(Q,X){G.handlers.link.call(G,!X.format.link)})}}]),B}(v.default);j.DEFAULTS=(0,d.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(B){if(B){var V=this.quill.getSelection();if(V==null||V.length==0)return;var G=this.quill.getText(V);/^\S+@\S+\.\S+$/.test(G)&&G.indexOf("mailto:")!==0&&(G="mailto:"+G);var Q=this.quill.theme.tooltip;Q.edit("link",G)}else this.quill.format("link",!1)}}}}});var M=function(q){L(B,q);function B(V,G){I(this,B);var Q=O(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,V,G));return Q.preview=Q.root.querySelector("a.ql-preview"),Q}return a(B,[{key:"listen",value:function(){var G=this;s(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(Q){G.root.classList.contains("ql-editing")?G.save():G.edit("link",G.preview.textContent),Q.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(Q){if(G.linkRange!=null){var X=G.linkRange;G.restoreFocus(),G.quill.formatText(X,"link",!1,f.default.sources.USER),delete G.linkRange}Q.preventDefault(),G.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(Q,X,Y){if(Q!=null){if(Q.length===0&&Y===f.default.sources.USER){var Z=G.quill.scroll.descendant(k.default,Q.index),se=r(Z,2),ce=se[0],te=se[1];if(ce!=null){G.linkRange=new C.Range(Q.index-te,ce.length());var ee=k.default.formats(ce.domNode);G.preview.textContent=ee,G.preview.setAttribute("href",ee),G.show(),G.position(G.quill.getBounds(G.linkRange));return}}else delete G.linkRange;G.hide()}})}},{key:"show",value:function(){s(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),B}(p.BaseTooltip);M.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),o.default=j},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(29),s=Te(r),a=i(36),l=i(38),d=i(64),u=i(65),f=Te(u),p=i(66),v=Te(p),_=i(67),k=Te(_),C=i(37),$=i(26),E=i(39),P=i(40),I=i(56),O=Te(I),L=i(68),S=Te(L),j=i(27),M=Te(j),q=i(69),B=Te(q),V=i(70),G=Te(V),Q=i(71),X=Te(Q),Y=i(72),Z=Te(Y),se=i(73),ce=Te(se),te=i(13),ee=Te(te),ae=i(74),de=Te(ae),$e=i(75),be=Te($e),me=i(57),fe=Te(me),Ae=i(41),je=Te(Ae),Ye=i(28),_t=Te(Ye),xt=i(59),we=Te(xt),ve=i(60),qe=Te(ve),$t=i(61),ut=Te($t),Ve=i(108),tt=Te(Ve),ge=i(62),ye=Te(ge);function Te(gt){return gt&>.__esModule?gt:{default:gt}}s.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":C.BackgroundClass,"attributors/class/color":$.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":E.FontClass,"attributors/class/size":P.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":C.BackgroundStyle,"attributors/style/color":$.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":E.FontStyle,"attributors/style/size":P.SizeStyle},!0),s.default.register({"formats/align":a.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":d.IndentClass,"formats/background":C.BackgroundStyle,"formats/color":$.ColorStyle,"formats/font":E.FontClass,"formats/size":P.SizeClass,"formats/blockquote":f.default,"formats/code-block":ee.default,"formats/header":v.default,"formats/list":k.default,"formats/bold":O.default,"formats/code":te.Code,"formats/italic":S.default,"formats/link":M.default,"formats/script":B.default,"formats/strike":G.default,"formats/underline":X.default,"formats/image":Z.default,"formats/video":ce.default,"formats/list/item":_.ListItem,"modules/formula":de.default,"modules/syntax":be.default,"modules/toolbar":fe.default,"themes/bubble":tt.default,"themes/snow":ye.default,"ui/icons":je.default,"ui/picker":_t.default,"ui/icon-picker":qe.default,"ui/color-picker":we.default,"ui/tooltip":ut.default},!0),o.default=s.default},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.IndentClass=void 0;var r=function(){function k(C,$){for(var E=0;E<$.length;E++){var P=$[E];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(C,P.key,P)}}return function(C,$,E){return $&&k(C.prototype,$),E&&k(C,E),C}}(),s=function k(C,$,E){C===null&&(C=Function.prototype);var P=Object.getOwnPropertyDescriptor(C,$);if(P===void 0){var I=Object.getPrototypeOf(C);return I===null?void 0:k(I,$,E)}else{if("value"in P)return P.value;var O=P.get;return O===void 0?void 0:O.call(E)}},a=i(0),l=d(a);function d(k){return k&&k.__esModule?k:{default:k}}function u(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}function f(k,C){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:k}function p(k,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);k.prototype=Object.create(C&&C.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(k,C):k.__proto__=C)}var v=function(k){p(C,k);function C(){return u(this,C),f(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"add",value:function(E,P){if(P==="+1"||P==="-1"){var I=this.value(E)||0;P=P==="+1"?I+1:I-1}return P===0?(this.remove(E),!0):s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"add",this).call(this,E,P)}},{key:"canAdd",value:function(E,P){return s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"canAdd",this).call(this,E,P)||s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"canAdd",this).call(this,E,parseInt(P))}},{key:"value",value:function(E){return parseInt(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"value",this).call(this,E))||void 0}}]),C}(l.default.Attributor.Class),_=new v("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});o.IndentClass=_},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(4),s=a(r);function a(p){return p&&p.__esModule?p:{default:p}}function l(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function d(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var f=function(p){u(v,p);function v(){return l(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(s.default);f.blotName="blockquote",f.tagName="blockquote",o.default=f},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function v(_,k){for(var C=0;C<k.length;C++){var $=k[C];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(_,$.key,$)}}return function(_,k,C){return k&&v(_.prototype,k),C&&v(_,C),_}}(),s=i(4),a=l(s);function l(v){return v&&v.__esModule?v:{default:v}}function d(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function u(v,_){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:v}function f(v,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);v.prototype=Object.create(_&&_.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(v,_):v.__proto__=_)}var p=function(v){f(_,v);function _(){return d(this,_),u(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return r(_,null,[{key:"formats",value:function(C){return this.tagName.indexOf(C.tagName)+1}}]),_}(a.default);p.blotName="header",p.tagName=["H1","H2","H3","H4","H5","H6"],o.default=p},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.ListItem=void 0;var r=function(){function I(O,L){for(var S=0;S<L.length;S++){var j=L[S];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(O,j.key,j)}}return function(O,L,S){return L&&I(O.prototype,L),S&&I(O,S),O}}(),s=function I(O,L,S){O===null&&(O=Function.prototype);var j=Object.getOwnPropertyDescriptor(O,L);if(j===void 0){var M=Object.getPrototypeOf(O);return M===null?void 0:I(M,L,S)}else{if("value"in j)return j.value;var q=j.get;return q===void 0?void 0:q.call(S)}},a=i(0),l=v(a),d=i(4),u=v(d),f=i(25),p=v(f);function v(I){return I&&I.__esModule?I:{default:I}}function _(I,O,L){return O in I?Object.defineProperty(I,O,{value:L,enumerable:!0,configurable:!0,writable:!0}):I[O]=L,I}function k(I,O){if(!(I instanceof O))throw new TypeError("Cannot call a class as a function")}function C(I,O){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:I}function $(I,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);I.prototype=Object.create(O&&O.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(I,O):I.__proto__=O)}var E=function(I){$(O,I);function O(){return k(this,O),C(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return r(O,[{key:"format",value:function(S,j){S===P.blotName&&!j?this.replaceWith(l.default.create(this.statics.scope)):s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,S,j)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,j){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,j),this):(this.parent.unwrap(),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,S,j))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:s(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,S)}}]),O}(u.default);E.blotName="list-item",E.tagName="LI";var P=function(I){$(O,I),r(O,null,[{key:"create",value:function(S){var j=S==="ordered"?"OL":"UL",M=s(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,j);return(S==="checked"||S==="unchecked")&&M.setAttribute("data-checked",S==="checked"),M}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function O(L){k(this,O);var S=C(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L)),j=function(q){if(q.target.parentNode===L){var B=S.statics.formats(L),V=l.default.find(q.target);B==="checked"?V.format("list","unchecked"):B==="unchecked"&&V.format("list","checked")}};return L.addEventListener("touchstart",j),L.addEventListener("mousedown",j),S}return r(O,[{key:"format",value:function(S,j){this.children.length>0&&this.children.tail.format(S,j)}},{key:"formats",value:function(){return _({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,j){if(S instanceof E)s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,S,j);else{var M=j==null?this.length():j.offset(this),q=this.split(M);q.parent.insertBefore(S,q)}}},{key:"optimize",value:function(S){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,S);var j=this.next;j!=null&&j.prev===this&&j.statics.blotName===this.statics.blotName&&j.domNode.tagName===this.domNode.tagName&&j.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(j.moveChildren(this),j.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var j=l.default.create(this.statics.defaultChild);S.moveChildren(j),this.appendChild(j)}s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,S)}}]),O}(p.default);P.blotName="list",P.scope=l.default.Scope.BLOCK_BLOT,P.tagName=["OL","UL"],P.defaultChild="list-item",P.allowedChildren=[E],o.ListItem=E,o.default=P},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(56),s=a(r);function a(p){return p&&p.__esModule?p:{default:p}}function l(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function d(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var f=function(p){u(v,p);function v(){return l(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(s.default);f.blotName="italic",f.tagName=["EM","I"],o.default=f},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function _(k,C){for(var $=0;$<C.length;$++){var E=C[$];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,C,$){return C&&_(k.prototype,C),$&&_(k,$),k}}(),s=function _(k,C,$){k===null&&(k=Function.prototype);var E=Object.getOwnPropertyDescriptor(k,C);if(E===void 0){var P=Object.getPrototypeOf(k);return P===null?void 0:_(P,C,$)}else{if("value"in E)return E.value;var I=E.get;return I===void 0?void 0:I.call($)}},a=i(6),l=d(a);function d(_){return _&&_.__esModule?_:{default:_}}function u(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}function f(_,k){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:_}function p(_,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);_.prototype=Object.create(k&&k.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(_,k):_.__proto__=k)}var v=function(_){p(k,_);function k(){return u(this,k),f(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,null,[{key:"create",value:function($){return $==="super"?document.createElement("sup"):$==="sub"?document.createElement("sub"):s(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,$)}},{key:"formats",value:function($){if($.tagName==="SUB")return"sub";if($.tagName==="SUP")return"super"}}]),k}(l.default);v.blotName="script",v.tagName=["SUB","SUP"],o.default=v},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(6),s=a(r);function a(p){return p&&p.__esModule?p:{default:p}}function l(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function d(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var f=function(p){u(v,p);function v(){return l(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(s.default);f.blotName="strike",f.tagName="S",o.default=f},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=i(6),s=a(r);function a(p){return p&&p.__esModule?p:{default:p}}function l(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function d(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var f=function(p){u(v,p);function v(){return l(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(s.default);f.blotName="underline",f.tagName="U",o.default=f},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function C($,E){for(var P=0;P<E.length;P++){var I=E[P];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty($,I.key,I)}}return function($,E,P){return E&&C($.prototype,E),P&&C($,P),$}}(),s=function C($,E,P){$===null&&($=Function.prototype);var I=Object.getOwnPropertyDescriptor($,E);if(I===void 0){var O=Object.getPrototypeOf($);return O===null?void 0:C(O,E,P)}else{if("value"in I)return I.value;var L=I.get;return L===void 0?void 0:L.call(P)}},a=i(0),l=u(a),d=i(27);function u(C){return C&&C.__esModule?C:{default:C}}function f(C,$){if(!(C instanceof $))throw new TypeError("Cannot call a class as a function")}function p(C,$){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:C}function v(C,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);C.prototype=Object.create($&&$.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(C,$):C.__proto__=$)}var _=["alt","height","width"],k=function(C){v($,C);function $(){return f(this,$),p(this,($.__proto__||Object.getPrototypeOf($)).apply(this,arguments))}return r($,[{key:"format",value:function(P,I){_.indexOf(P)>-1?I?this.domNode.setAttribute(P,I):this.domNode.removeAttribute(P):s($.prototype.__proto__||Object.getPrototypeOf($.prototype),"format",this).call(this,P,I)}}],[{key:"create",value:function(P){var I=s($.__proto__||Object.getPrototypeOf($),"create",this).call(this,P);return typeof P=="string"&&I.setAttribute("src",this.sanitize(P)),I}},{key:"formats",value:function(P){return _.reduce(function(I,O){return P.hasAttribute(O)&&(I[O]=P.getAttribute(O)),I},{})}},{key:"match",value:function(P){return/\.(jpe?g|gif|png)$/.test(P)||/^data:image\/.+;base64/.test(P)}},{key:"sanitize",value:function(P){return(0,d.sanitize)(P,["http","https","data"])?P:"//:0"}},{key:"value",value:function(P){return P.getAttribute("src")}}]),$}(l.default.Embed);k.blotName="image",k.tagName="IMG",o.default=k},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0});var r=function(){function C($,E){for(var P=0;P<E.length;P++){var I=E[P];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty($,I.key,I)}}return function($,E,P){return E&&C($.prototype,E),P&&C($,P),$}}(),s=function C($,E,P){$===null&&($=Function.prototype);var I=Object.getOwnPropertyDescriptor($,E);if(I===void 0){var O=Object.getPrototypeOf($);return O===null?void 0:C(O,E,P)}else{if("value"in I)return I.value;var L=I.get;return L===void 0?void 0:L.call(P)}},a=i(4),l=i(27),d=u(l);function u(C){return C&&C.__esModule?C:{default:C}}function f(C,$){if(!(C instanceof $))throw new TypeError("Cannot call a class as a function")}function p(C,$){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:C}function v(C,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);C.prototype=Object.create($&&$.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(C,$):C.__proto__=$)}var _=["height","width"],k=function(C){v($,C);function $(){return f(this,$),p(this,($.__proto__||Object.getPrototypeOf($)).apply(this,arguments))}return r($,[{key:"format",value:function(P,I){_.indexOf(P)>-1?I?this.domNode.setAttribute(P,I):this.domNode.removeAttribute(P):s($.prototype.__proto__||Object.getPrototypeOf($.prototype),"format",this).call(this,P,I)}}],[{key:"create",value:function(P){var I=s($.__proto__||Object.getPrototypeOf($),"create",this).call(this,P);return I.setAttribute("frameborder","0"),I.setAttribute("allowfullscreen",!0),I.setAttribute("src",this.sanitize(P)),I}},{key:"formats",value:function(P){return _.reduce(function(I,O){return P.hasAttribute(O)&&(I[O]=P.getAttribute(O)),I},{})}},{key:"sanitize",value:function(P){return d.default.sanitize(P)}},{key:"value",value:function(P){return P.getAttribute("src")}}]),$}(a.BlockEmbed);k.blotName="video",k.className="ql-video",k.tagName="IFRAME",o.default=k},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.FormulaBlot=void 0;var r=function(){function P(I,O){for(var L=0;L<O.length;L++){var S=O[L];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(I,S.key,S)}}return function(I,O,L){return O&&P(I.prototype,O),L&&P(I,L),I}}(),s=function P(I,O,L){I===null&&(I=Function.prototype);var S=Object.getOwnPropertyDescriptor(I,O);if(S===void 0){var j=Object.getPrototypeOf(I);return j===null?void 0:P(j,O,L)}else{if("value"in S)return S.value;var M=S.get;return M===void 0?void 0:M.call(L)}},a=i(35),l=v(a),d=i(5),u=v(d),f=i(9),p=v(f);function v(P){return P&&P.__esModule?P:{default:P}}function _(P,I){if(!(P instanceof I))throw new TypeError("Cannot call a class as a function")}function k(P,I){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:P}function C(P,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);P.prototype=Object.create(I&&I.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(P,I):P.__proto__=I)}var $=function(P){C(I,P);function I(){return _(this,I),k(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return r(I,null,[{key:"create",value:function(L){var S=s(I.__proto__||Object.getPrototypeOf(I),"create",this).call(this,L);return typeof L=="string"&&(window.katex.render(L,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",L)),S}},{key:"value",value:function(L){return L.getAttribute("data-value")}}]),I}(l.default);$.blotName="formula",$.className="ql-formula",$.tagName="SPAN";var E=function(P){C(I,P),r(I,null,[{key:"register",value:function(){u.default.register($,!0)}}]);function I(){_(this,I);var O=k(this,(I.__proto__||Object.getPrototypeOf(I)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return I}(p.default);o.FormulaBlot=$,o.default=E},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.CodeToken=o.CodeBlock=void 0;var r=function(){function L(S,j){for(var M=0;M<j.length;M++){var q=j[M];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(S,q.key,q)}}return function(S,j,M){return j&&L(S.prototype,j),M&&L(S,M),S}}(),s=function L(S,j,M){S===null&&(S=Function.prototype);var q=Object.getOwnPropertyDescriptor(S,j);if(q===void 0){var B=Object.getPrototypeOf(S);return B===null?void 0:L(B,j,M)}else{if("value"in q)return q.value;var V=q.get;return V===void 0?void 0:V.call(M)}},a=i(0),l=k(a),d=i(5),u=k(d),f=i(9),p=k(f),v=i(13),_=k(v);function k(L){return L&&L.__esModule?L:{default:L}}function C(L,S){if(!(L instanceof S))throw new TypeError("Cannot call a class as a function")}function $(L,S){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:L}function E(L,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);L.prototype=Object.create(S&&S.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(L,S):L.__proto__=S)}var P=function(L){E(S,L);function S(){return C(this,S),$(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return r(S,[{key:"replaceWith",value:function(M){this.domNode.textContent=this.domNode.textContent,this.attach(),s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,M)}},{key:"highlight",value:function(M){var q=this.domNode.textContent;this.cachedText!==q&&((q.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=M(q),this.domNode.normalize(),this.attach()),this.cachedText=q)}}]),S}(_.default);P.className="ql-syntax";var I=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),O=function(L){E(S,L),r(S,null,[{key:"register",value:function(){u.default.register(I,!0),u.default.register(P,!0)}}]);function S(j,M){C(this,S);var q=$(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,j,M));if(typeof q.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var B=null;return q.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(B),B=setTimeout(function(){q.highlight(),B=null},q.options.interval)}),q.highlight(),q}return r(S,[{key:"highlight",value:function(){var M=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var q=this.quill.getSelection();this.quill.scroll.descendants(P).forEach(function(B){B.highlight(M.options.highlight)}),this.quill.update(u.default.sources.SILENT),q!=null&&this.quill.setSelection(q,u.default.sources.SILENT)}}}]),S}(p.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(L){var S=window.hljs.highlightAuto(L);return S.value}}(),interval:1e3},o.CodeBlock=P,o.CodeToken=I,o.default=O},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,o){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,o){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,o){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,o){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,o){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BubbleTooltip=void 0;var r=function S(j,M,q){j===null&&(j=Function.prototype);var B=Object.getOwnPropertyDescriptor(j,M);if(B===void 0){var V=Object.getPrototypeOf(j);return V===null?void 0:S(V,M,q)}else{if("value"in B)return B.value;var G=B.get;return G===void 0?void 0:G.call(q)}},s=function(){function S(j,M){for(var q=0;q<M.length;q++){var B=M[q];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(j,B.key,B)}}return function(j,M,q){return M&&S(j.prototype,M),q&&S(j,q),j}}(),a=i(3),l=C(a),d=i(8),u=C(d),f=i(43),p=C(f),v=i(15),_=i(41),k=C(_);function C(S){return S&&S.__esModule?S:{default:S}}function $(S,j){if(!(S instanceof j))throw new TypeError("Cannot call a class as a function")}function E(S,j){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:S}function P(S,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);S.prototype=Object.create(j&&j.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(S,j):S.__proto__=j)}var I=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(S){P(j,S);function j(M,q){$(this,j),q.modules.toolbar!=null&&q.modules.toolbar.container==null&&(q.modules.toolbar.container=I);var B=E(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,M,q));return B.quill.container.classList.add("ql-bubble"),B}return s(j,[{key:"extendToolbar",value:function(q){this.tooltip=new L(this.quill,this.options.bounds),this.tooltip.root.appendChild(q.container),this.buildButtons([].slice.call(q.container.querySelectorAll("button")),k.default),this.buildPickers([].slice.call(q.container.querySelectorAll("select")),k.default)}}]),j}(p.default);O.DEFAULTS=(0,l.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(j){j?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var L=function(S){P(j,S);function j(M,q){$(this,j);var B=E(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,M,q));return B.quill.on(u.default.events.EDITOR_CHANGE,function(V,G,Q,X){if(V===u.default.events.SELECTION_CHANGE)if(G!=null&&G.length>0&&X===u.default.sources.USER){B.show(),B.root.style.left="0px",B.root.style.width="",B.root.style.width=B.root.offsetWidth+"px";var Y=B.quill.getLines(G.index,G.length);if(Y.length===1)B.position(B.quill.getBounds(G));else{var Z=Y[Y.length-1],se=B.quill.getIndex(Z),ce=Math.min(Z.length()-1,G.index+G.length-se),te=B.quill.getBounds(new v.Range(se,ce));B.position(te)}}else document.activeElement!==B.textbox&&B.quill.hasFocus()&&B.hide()}),B}return s(j,[{key:"listen",value:function(){var q=this;r(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){q.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!q.root.classList.contains("ql-hidden")){var B=q.quill.getSelection();B!=null&&q.position(q.quill.getBounds(B))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(q){var B=r(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"position",this).call(this,q),V=this.root.querySelector(".ql-tooltip-arrow");if(V.style.marginLeft="",B===0)return B;V.style.marginLeft=-1*B-V.offsetWidth/2+"px"}}]),j}(f.BaseTooltip);L.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),o.BubbleTooltip=L,o.default=O},function(n,o,i){n.exports=i(63)}]).default})})(Hie);var xQe=Hie.exports;const LS=Ol(xQe);var Uu=-1,Hd=1,Sl=0;function H2(e,t,n,o){if(e===t)return e?[[Sl,e]]:[];if(n!=null){var i=RQe(e,t,n);if(i)return i}var r=jO(e,t),s=e.substring(0,r);e=e.substring(r),t=t.substring(r),r=FO(e,t);var a=e.substring(e.length-r);e=e.substring(0,e.length-r),t=t.substring(0,t.length-r);var l=OQe(e,t);return s&&l.unshift([Sl,s]),a&&l.push([Sl,a]),Vie(l,o),l}function OQe(e,t){var n;if(!e)return[[Hd,t]];if(!t)return[[Uu,e]];var o=e.length>t.length?e:t,i=e.length>t.length?t:e,r=o.indexOf(i);if(r!==-1)return n=[[Hd,o.substring(0,r)],[Sl,i],[Hd,o.substring(r+i.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Uu),n;if(i.length===1)return[[Uu,e],[Hd,t]];var s=MQe(e,t);if(s){var a=s[0],l=s[1],d=s[2],u=s[3],f=s[4],p=H2(a,d),v=H2(l,u);return p.concat([[Sl,f]],v)}return LQe(e,t)}function LQe(e,t){for(var n=e.length,o=t.length,i=Math.ceil((n+o)/2),r=i,s=2*i,a=new Array(s),l=new Array(s),d=0;d<s;d++)a[d]=-1,l[d]=-1;a[r+1]=0,l[r+1]=0;for(var u=n-o,f=u%2!==0,p=0,v=0,_=0,k=0,C=0;C<i;C++){for(var $=-C+p;$<=C-v;$+=2){var E=r+$,P;$===-C||$!==C&&a[E-1]<a[E+1]?P=a[E+1]:P=a[E-1]+1;for(var I=P-$;P<n&&I<o&&e.charAt(P)===t.charAt(I);)P++,I++;if(a[E]=P,P>n)v+=2;else if(I>o)p+=2;else if(f){var O=r+u-$;if(O>=0&&O<s&&l[O]!==-1){var L=n-l[O];if(P>=L)return MH(e,t,P,I)}}}for(var S=-C+_;S<=C-k;S+=2){var O=r+S,L;S===-C||S!==C&&l[O-1]<l[O+1]?L=l[O+1]:L=l[O-1]+1;for(var j=L-S;L<n&&j<o&&e.charAt(n-L-1)===t.charAt(o-j-1);)L++,j++;if(l[O]=L,L>n)k+=2;else if(j>o)_+=2;else if(!f){var E=r+u-S;if(E>=0&&E<s&&a[E]!==-1){var P=a[E],I=r+P-E;if(L=n-L,P>=L)return MH(e,t,P,I)}}}}return[[Uu,e],[Hd,t]]}function MH(e,t,n,o){var i=e.substring(0,n),r=t.substring(0,o),s=e.substring(n),a=t.substring(o),l=H2(i,r),d=H2(s,a);return l.concat(d)}function jO(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),i=o,r=0;n<i;)e.substring(r,i)==t.substring(r,i)?(n=i,r=n):o=i,i=Math.floor((o-n)/2+n);return qie(e.charCodeAt(i-1))&&i--,i}function FO(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,o=Math.min(e.length,t.length),i=o,r=0;n<i;)e.substring(e.length-i,e.length-r)==t.substring(t.length-i,t.length-r)?(n=i,r=n):o=i,i=Math.floor((o-n)/2+n);return Yie(e.charCodeAt(e.length-i))&&i--,i}function MQe(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||o.length*2<n.length)return null;function i(v,_,k){for(var C=v.substring(k,k+Math.floor(v.length/4)),$=-1,E="",P,I,O,L;($=_.indexOf(C,$+1))!==-1;){var S=jO(v.substring(k),_.substring($)),j=FO(v.substring(0,k),_.substring(0,$));E.length<j+S&&(E=_.substring($-j,$)+_.substring($,$+S),P=v.substring(0,k-j),I=v.substring(k+S),O=_.substring(0,$-j),L=_.substring($+S))}return E.length*2>=v.length?[P,I,O,L,E]:null}var r=i(n,o,Math.ceil(n.length/4)),s=i(n,o,Math.ceil(n.length/2)),a;if(!r&&!s)return null;s?r?a=r[4].length>s[4].length?r:s:a=s:a=r;var l,d,u,f;e.length>t.length?(l=a[0],d=a[1],u=a[2],f=a[3]):(u=a[0],f=a[1],l=a[2],d=a[3]);var p=a[4];return[l,d,u,f,p]}function Vie(e,t){e.push([Sl,""]);for(var n=0,o=0,i=0,r="",s="",a;n<e.length;){if(n<e.length-1&&!e[n][1]){e.splice(n,1);continue}switch(e[n][0]){case Hd:i++,s+=e[n][1],n++;break;case Uu:o++,r+=e[n][1],n++;break;case Sl:var l=n-i-o-1;if(t){if(l>=0&&Gie(e[l][1])){var d=e[l][1].slice(-1);if(e[l][1]=e[l][1].slice(0,-1),r=d+r,s=d+s,!e[l][1]){e.splice(l,1),n--;var u=l-1;e[u]&&e[u][0]===Hd&&(i++,s=e[u][1]+s,u--),e[u]&&e[u][0]===Uu&&(o++,r=e[u][1]+r,u--),l=u}}if(Wie(e[n][1])){var d=e[n][1].charAt(0);e[n][1]=e[n][1].slice(1),r+=d,s+=d}}if(n<e.length-1&&!e[n][1]){e.splice(n,1);break}if(r.length>0||s.length>0){r.length>0&&s.length>0&&(a=jO(s,r),a!==0&&(l>=0?e[l][1]+=s.substring(0,a):(e.splice(0,0,[Sl,s.substring(0,a)]),n++),s=s.substring(a),r=r.substring(a)),a=FO(s,r),a!==0&&(e[n][1]=s.substring(s.length-a)+e[n][1],s=s.substring(0,s.length-a),r=r.substring(0,r.length-a)));var f=i+o;r.length===0&&s.length===0?(e.splice(n-f,f),n=n-f):r.length===0?(e.splice(n-f,f,[Hd,s]),n=n-f+1):s.length===0?(e.splice(n-f,f,[Uu,r]),n=n-f+1):(e.splice(n-f,f,[Uu,r],[Hd,s]),n=n-f+2)}n!==0&&e[n-1][0]===Sl?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,i=0,o=0,r="",s="";break}}e[e.length-1][1]===""&&e.pop();var p=!1;for(n=1;n<e.length-1;)e[n-1][0]===Sl&&e[n+1][0]===Sl&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),p=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),p=!0)),n++;p&&Vie(e,t)}function qie(e){return e>=55296&&e<=56319}function Yie(e){return e>=56320&&e<=57343}function Wie(e){return Yie(e.charCodeAt(0))}function Gie(e){return qie(e.charCodeAt(e.length-1))}function NQe(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function MS(e,t,n,o){return Gie(e)||Wie(o)?null:NQe([[Sl,e],[Uu,t],[Hd,n],[Sl,o]])}function RQe(e,t,n){var o=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,r=e.length,s=t.length;if(o.length===0&&(i===null||i.length===0)){var a=o.index,l=e.slice(0,a),d=e.slice(a),u=i?i.index:null;e:{var f=a+s-r;if(u!==null&&u!==f||f<0||f>s)break e;var p=t.slice(0,f),v=t.slice(f);if(v!==d)break e;var _=Math.min(a,f),k=l.slice(0,_),C=p.slice(0,_);if(k!==C)break e;var $=l.slice(_),E=p.slice(_);return MS(k,$,E,d)}e:{if(u!==null&&u!==a)break e;var P=a,p=t.slice(0,P),v=t.slice(P);if(p!==l)break e;var I=Math.min(r-P,s-P),O=d.slice(d.length-I),L=v.slice(v.length-I);if(O!==L)break e;var $=d.slice(0,d.length-I),E=v.slice(0,v.length-I);return MS(l,$,E,O)}}if(o.length>0&&i&&i.length===0)e:{var k=e.slice(0,o.index),O=e.slice(o.index+o.length),_=k.length,I=O.length;if(s<_+I)break e;var C=t.slice(0,_),L=t.slice(s-I);if(k!==C||O!==L)break e;var $=e.slice(_,r-I),E=t.slice(_,s-I);return MS(k,$,E,O)}return null}function i6(e,t,n){return H2(e,t,n,!0)}i6.INSERT=Hd;i6.DELETE=Uu;i6.EQUAL=Sl;var jQe=i6,U5={exports:{}};U5.exports;(function(e,t){var n=200,o="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",d="[object Error]",u="[object Function]",f="[object GeneratorFunction]",p="[object Map]",v="[object Number]",_="[object Object]",k="[object Promise]",C="[object RegExp]",$="[object Set]",E="[object String]",P="[object Symbol]",I="[object WeakMap]",O="[object ArrayBuffer]",L="[object DataView]",S="[object Float32Array]",j="[object Float64Array]",M="[object Int8Array]",q="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",Q="[object Uint16Array]",X="[object Uint32Array]",Y=/[\\^$.*+?()[\]{}|]/g,Z=/\w*$/,se=/^\[object .+?Constructor\]$/,ce=/^(?:0|[1-9]\d*)$/,te={};te[r]=te[s]=te[O]=te[L]=te[a]=te[l]=te[S]=te[j]=te[M]=te[q]=te[B]=te[p]=te[v]=te[_]=te[C]=te[$]=te[E]=te[P]=te[V]=te[G]=te[Q]=te[X]=!0,te[d]=te[u]=te[I]=!1;var ee=typeof bo=="object"&&bo&&bo.Object===Object&&bo,ae=typeof self=="object"&&self&&self.Object===Object&&self,de=ee||ae||Function("return this")(),$e=t&&!t.nodeType&&t,be=$e&&!0&&e&&!e.nodeType&&e,me=be&&be.exports===$e;function fe(re,Ee){return re.set(Ee[0],Ee[1]),re}function Ae(re,Ee){return re.add(Ee),re}function je(re,Ee){for(var et=-1,Lt=re?re.length:0;++et<Lt&&Ee(re[et],et,re)!==!1;);return re}function Ye(re,Ee){for(var et=-1,Lt=Ee.length,zn=re.length;++et<Lt;)re[zn+et]=Ee[et];return re}function _t(re,Ee,et,Lt){var zn=-1,En=re?re.length:0;for(Lt&&En&&(et=re[++zn]);++zn<En;)et=Ee(et,re[zn],zn,re);return et}function xt(re,Ee){for(var et=-1,Lt=Array(re);++et<re;)Lt[et]=Ee(et);return Lt}function we(re,Ee){return re==null?void 0:re[Ee]}function ve(re){var Ee=!1;if(re!=null&&typeof re.toString!="function")try{Ee=!!(re+"")}catch{}return Ee}function qe(re){var Ee=-1,et=Array(re.size);return re.forEach(function(Lt,zn){et[++Ee]=[zn,Lt]}),et}function $t(re,Ee){return function(et){return re(Ee(et))}}function ut(re){var Ee=-1,et=Array(re.size);return re.forEach(function(Lt){et[++Ee]=Lt}),et}var Ve=Array.prototype,tt=Function.prototype,ge=Object.prototype,ye=de["__core-js_shared__"],Te=function(){var re=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||"");return re?"Symbol(src)_1."+re:""}(),gt=tt.toString,yt=ge.hasOwnProperty,Xe=ge.toString,Ze=RegExp("^"+gt.call(yt).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=me?de.Buffer:void 0,Ut=de.Symbol,Je=de.Uint8Array,We=$t(Object.getPrototypeOf,Object),pt=Object.create,At=ge.propertyIsEnumerable,Vt=Ve.splice,cn=Object.getOwnPropertySymbols,fn=vt?vt.isBuffer:void 0,bn=$t(Object.keys,Object),kt=To(de,"DataView"),Ne=To(de,"Map"),nt=To(de,"Promise"),It=To(de,"Set"),Zt=To(de,"WeakMap"),dn=To(Object,"create"),Hn=Vi(kt),Oo=Vi(Ne),tn=Vi(nt),Fo=Vi(It),Yr=Vi(Zt),Lo=Ut?Ut.prototype:void 0,ji=Lo?Lo.valueOf:void 0;function On(re){var Ee=-1,et=re?re.length:0;for(this.clear();++Ee<et;){var Lt=re[Ee];this.set(Lt[0],Lt[1])}}function Hi(){this.__data__=dn?dn(null):{}}function Gn(re){return this.has(re)&&delete this.__data__[re]}function Ar(re){var Ee=this.__data__;if(dn){var et=Ee[re];return et===o?void 0:et}return yt.call(Ee,re)?Ee[re]:void 0}function Xs(re){var Ee=this.__data__;return dn?Ee[re]!==void 0:yt.call(Ee,re)}function Qs(re,Ee){var et=this.__data__;return et[re]=dn&&Ee===void 0?o:Ee,this}On.prototype.clear=Hi,On.prototype.delete=Gn,On.prototype.get=Ar,On.prototype.has=Xs,On.prototype.set=Qs;function So(re){var Ee=-1,et=re?re.length:0;for(this.clear();++Ee<et;){var Lt=re[Ee];this.set(Lt[0],Lt[1])}}function ss(){this.__data__=[]}function Dr(re){var Ee=this.__data__,et=ls(Ee,re);if(et<0)return!1;var Lt=Ee.length-1;return et==Lt?Ee.pop():Vt.call(Ee,et,1),!0}function Di(re){var Ee=this.__data__,et=ls(Ee,re);return et<0?void 0:Ee[et][1]}function xr(re){return ls(this.__data__,re)>-1}function Wr(re,Ee){var et=this.__data__,Lt=ls(et,re);return Lt<0?et.push([re,Ee]):et[Lt][1]=Ee,this}So.prototype.clear=ss,So.prototype.delete=Dr,So.prototype.get=Di,So.prototype.has=xr,So.prototype.set=Wr;function yi(re){var Ee=-1,et=re?re.length:0;for(this.clear();++Ee<et;){var Lt=re[Ee];this.set(Lt[0],Lt[1])}}function ea(){this.__data__={hash:new On,map:new(Ne||So),string:new On}}function mc(re){return Mn(this,re).delete(re)}function js(re){return Mn(this,re).get(re)}function Ka(re){return Mn(this,re).has(re)}function Ja(re,Ee){return Mn(this,re).set(re,Ee),this}yi.prototype.clear=ea,yi.prototype.delete=mc,yi.prototype.get=js,yi.prototype.has=Ka,yi.prototype.set=Ja;function Fi(re){this.__data__=new So(re)}function Cs(){this.__data__=new So}function Fs(re){return this.__data__.delete(re)}function as(re){return this.__data__.get(re)}function Rl(re){return this.__data__.has(re)}function zs(re,Ee){var et=this.__data__;if(et instanceof So){var Lt=et.__data__;if(!Ne||Lt.length<n-1)return Lt.push([re,Ee]),this;et=this.__data__=new yi(Lt)}return et.set(re,Ee),this}Fi.prototype.clear=Cs,Fi.prototype.delete=Fs,Fi.prototype.get=as,Fi.prototype.has=Rl,Fi.prototype.set=zs;function oi(re,Ee){var et=ud(re)||yc(re)?xt(re.length,String):[],Lt=et.length,zn=!!Lt;for(var En in re)(Ee||yt.call(re,En))&&!(zn&&(En=="length"||Ts(En,Lt)))&&et.push(En);return et}function Ss(re,Ee,et){var Lt=re[Ee];(!(yt.call(re,Ee)&&_c(Lt,et))||et===void 0&&!(Ee in re))&&(re[Ee]=et)}function ls(re,Ee){for(var et=re.length;et--;)if(_c(re[et][0],Ee))return et;return-1}function Gr(re,Ee){return re&&mn(Ee,fd(Ee),re)}function Xa(re,Ee,et,Lt,zn,En,po){var Mo;if(Lt&&(Mo=En?Lt(re,zn,En,po):Lt(re)),Mo!==void 0)return Mo;if(!na(re))return re;var oo=ud(re);if(oo){if(Mo=gr(re),!Ee)return nn(re,Mo)}else{var No=ii(re),bi=No==u||No==f;if(bc(re))return ze(re,Ee);if(No==_||No==r||bi&&!En){if(ve(re))return En?re:{};if(Mo=vr(bi?{}:re),!Ee)return xn(re,Gr(Mo,re))}else{if(!te[No])return En?re:{};Mo=gc(re,No,Xa,Ee)}}po||(po=new Fi);var lo=po.get(re);if(lo)return lo;if(po.set(re,Mo),!oo)var ki=et?no(re):fd(re);return je(ki||re,function(Bo,A){ki&&(A=Bo,Bo=re[A]),Ss(Mo,A,Xa(Bo,Ee,et,Lt,A,re,po))}),Mo}function Qa(re){return na(re)?pt(re):{}}function pc(re,Ee,et){var Lt=Ee(re);return ud(re)?Lt:Ye(Lt,et(re))}function jl(re){return Xe.call(re)}function Ie(re){if(!na(re)||ta(re))return!1;var Ee=hd(re)||ve(re)?Ze:se;return Ee.test(Vi(re))}function Ke(re){if(!Fl(re))return bn(re);var Ee=[];for(var et in Object(re))yt.call(re,et)&&et!="constructor"&&Ee.push(et);return Ee}function ze(re,Ee){if(Ee)return re.slice();var et=new re.constructor(re.length);return re.copy(et),et}function lt(re){var Ee=new re.constructor(re.byteLength);return new Je(Ee).set(new Je(re)),Ee}function ft(re,Ee){var et=Ee?lt(re.buffer):re.buffer;return new re.constructor(et,re.byteOffset,re.byteLength)}function ct(re,Ee,et){var Lt=Ee?et(qe(re),!0):qe(re);return _t(Lt,fe,new re.constructor)}function Nt(re){var Ee=new re.constructor(re.source,Z.exec(re));return Ee.lastIndex=re.lastIndex,Ee}function qt(re,Ee,et){var Lt=Ee?et(ut(re),!0):ut(re);return _t(Lt,Ae,new re.constructor)}function Kt(re){return ji?Object(ji.call(re)):{}}function Xt(re,Ee){var et=Ee?lt(re.buffer):re.buffer;return new re.constructor(et,re.byteOffset,re.length)}function nn(re,Ee){var et=-1,Lt=re.length;for(Ee||(Ee=Array(Lt));++et<Lt;)Ee[et]=re[et];return Ee}function mn(re,Ee,et,Lt){et||(et={});for(var zn=-1,En=Ee.length;++zn<En;){var po=Ee[zn],Mo=Lt?Lt(et[po],re[po],po,et,re):void 0;Ss(et,po,Mo===void 0?re[po]:Mo)}return et}function xn(re,Ee){return mn(re,mo(re),Ee)}function no(re){return pc(re,fd,mo)}function Mn(re,Ee){var et=re.__data__;return vc(Ee)?et[typeof Ee=="string"?"string":"hash"]:et.map}function To(re,Ee){var et=we(re,Ee);return Ie(et)?et:void 0}var mo=cn?$t(cn,Object):li,ii=jl;(kt&&ii(new kt(new ArrayBuffer(1)))!=L||Ne&&ii(new Ne)!=p||nt&&ii(nt.resolve())!=k||It&&ii(new It)!=$||Zt&&ii(new Zt)!=I)&&(ii=function(re){var Ee=Xe.call(re),et=Ee==_?re.constructor:void 0,Lt=et?Vi(et):void 0;if(Lt)switch(Lt){case Hn:return L;case Oo:return p;case tn:return k;case Fo:return $;case Yr:return I}return Ee});function gr(re){var Ee=re.length,et=re.constructor(Ee);return Ee&&typeof re[0]=="string"&&yt.call(re,"index")&&(et.index=re.index,et.input=re.input),et}function vr(re){return typeof re.constructor=="function"&&!Fl(re)?Qa(We(re)):{}}function gc(re,Ee,et,Lt){var zn=re.constructor;switch(Ee){case O:return lt(re);case a:case l:return new zn(+re);case L:return ft(re,Lt);case S:case j:case M:case q:case B:case V:case G:case Q:case X:return Xt(re,Lt);case p:return ct(re,Lt,et);case v:case E:return new zn(re);case C:return Nt(re);case $:return qt(re,Lt,et);case P:return Kt(re)}}function Ts(re,Ee){return Ee=Ee??i,!!Ee&&(typeof re=="number"||ce.test(re))&&re>-1&&re%1==0&&re<Ee}function vc(re){var Ee=typeof re;return Ee=="string"||Ee=="number"||Ee=="symbol"||Ee=="boolean"?re!=="__proto__":re===null}function ta(re){return!!Te&&Te in re}function Fl(re){var Ee=re&&re.constructor,et=typeof Ee=="function"&&Ee.prototype||ge;return re===et}function Vi(re){if(re!=null){try{return gt.call(re)}catch{}try{return re+""}catch{}}return""}function mu(re){return Xa(re,!0,!0)}function _c(re,Ee){return re===Ee||re!==re&&Ee!==Ee}function yc(re){return kh(re)&&yt.call(re,"callee")&&(!At.call(re,"callee")||Xe.call(re)==r)}var ud=Array.isArray;function el(re){return re!=null&&pu(re.length)&&!hd(re)}function kh(re){return gu(re)&&el(re)}var bc=fn||Yo;function hd(re){var Ee=na(re)?Xe.call(re):"";return Ee==u||Ee==f}function pu(re){return typeof re=="number"&&re>-1&&re%1==0&&re<=i}function na(re){var Ee=typeof re;return!!re&&(Ee=="object"||Ee=="function")}function gu(re){return!!re&&typeof re=="object"}function fd(re){return el(re)?oi(re):Ke(re)}function li(){return[]}function Yo(){return!1}e.exports=mu})(U5,U5.exports);var Zie=U5.exports,B5={exports:{}};B5.exports;(function(e,t){var n=200,o="__lodash_hash_undefined__",i=1,r=2,s=9007199254740991,a="[object Arguments]",l="[object Array]",d="[object AsyncFunction]",u="[object Boolean]",f="[object Date]",p="[object Error]",v="[object Function]",_="[object GeneratorFunction]",k="[object Map]",C="[object Number]",$="[object Null]",E="[object Object]",P="[object Promise]",I="[object Proxy]",O="[object RegExp]",L="[object Set]",S="[object String]",j="[object Symbol]",M="[object Undefined]",q="[object WeakMap]",B="[object ArrayBuffer]",V="[object DataView]",G="[object Float32Array]",Q="[object Float64Array]",X="[object Int8Array]",Y="[object Int16Array]",Z="[object Int32Array]",se="[object Uint8Array]",ce="[object Uint8ClampedArray]",te="[object Uint16Array]",ee="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,de=/^\[object .+?Constructor\]$/,$e=/^(?:0|[1-9]\d*)$/,be={};be[G]=be[Q]=be[X]=be[Y]=be[Z]=be[se]=be[ce]=be[te]=be[ee]=!0,be[a]=be[l]=be[B]=be[u]=be[V]=be[f]=be[p]=be[v]=be[k]=be[C]=be[E]=be[O]=be[L]=be[S]=be[q]=!1;var me=typeof bo=="object"&&bo&&bo.Object===Object&&bo,fe=typeof self=="object"&&self&&self.Object===Object&&self,Ae=me||fe||Function("return this")(),je=t&&!t.nodeType&&t,Ye=je&&!0&&e&&!e.nodeType&&e,_t=Ye&&Ye.exports===je,xt=_t&&me.process,we=function(){try{return xt&&xt.binding&&xt.binding("util")}catch{}}(),ve=we&&we.isTypedArray;function qe(re,Ee){for(var et=-1,Lt=re==null?0:re.length,zn=0,En=[];++et<Lt;){var po=re[et];Ee(po,et,re)&&(En[zn++]=po)}return En}function $t(re,Ee){for(var et=-1,Lt=Ee.length,zn=re.length;++et<Lt;)re[zn+et]=Ee[et];return re}function ut(re,Ee){for(var et=-1,Lt=re==null?0:re.length;++et<Lt;)if(Ee(re[et],et,re))return!0;return!1}function Ve(re,Ee){for(var et=-1,Lt=Array(re);++et<re;)Lt[et]=Ee(et);return Lt}function tt(re){return function(Ee){return re(Ee)}}function ge(re,Ee){return re.has(Ee)}function ye(re,Ee){return re==null?void 0:re[Ee]}function Te(re){var Ee=-1,et=Array(re.size);return re.forEach(function(Lt,zn){et[++Ee]=[zn,Lt]}),et}function gt(re,Ee){return function(et){return re(Ee(et))}}function yt(re){var Ee=-1,et=Array(re.size);return re.forEach(function(Lt){et[++Ee]=Lt}),et}var Xe=Array.prototype,Ze=Function.prototype,vt=Object.prototype,Ut=Ae["__core-js_shared__"],Je=Ze.toString,We=vt.hasOwnProperty,pt=function(){var re=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");return re?"Symbol(src)_1."+re:""}(),At=vt.toString,Vt=RegExp("^"+Je.call(We).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cn=_t?Ae.Buffer:void 0,fn=Ae.Symbol,bn=Ae.Uint8Array,kt=vt.propertyIsEnumerable,Ne=Xe.splice,nt=fn?fn.toStringTag:void 0,It=Object.getOwnPropertySymbols,Zt=cn?cn.isBuffer:void 0,dn=gt(Object.keys,Object),Hn=mo(Ae,"DataView"),Oo=mo(Ae,"Map"),tn=mo(Ae,"Promise"),Fo=mo(Ae,"Set"),Yr=mo(Ae,"WeakMap"),Lo=mo(Object,"create"),ji=Vi(Hn),On=Vi(Oo),Hi=Vi(tn),Gn=Vi(Fo),Ar=Vi(Yr),Xs=fn?fn.prototype:void 0,Qs=Xs?Xs.valueOf:void 0;function So(re){var Ee=-1,et=re==null?0:re.length;for(this.clear();++Ee<et;){var Lt=re[Ee];this.set(Lt[0],Lt[1])}}function ss(){this.__data__=Lo?Lo(null):{},this.size=0}function Dr(re){var Ee=this.has(re)&&delete this.__data__[re];return this.size-=Ee?1:0,Ee}function Di(re){var Ee=this.__data__;if(Lo){var et=Ee[re];return et===o?void 0:et}return We.call(Ee,re)?Ee[re]:void 0}function xr(re){var Ee=this.__data__;return Lo?Ee[re]!==void 0:We.call(Ee,re)}function Wr(re,Ee){var et=this.__data__;return this.size+=this.has(re)?0:1,et[re]=Lo&&Ee===void 0?o:Ee,this}So.prototype.clear=ss,So.prototype.delete=Dr,So.prototype.get=Di,So.prototype.has=xr,So.prototype.set=Wr;function yi(re){var Ee=-1,et=re==null?0:re.length;for(this.clear();++Ee<et;){var Lt=re[Ee];this.set(Lt[0],Lt[1])}}function ea(){this.__data__=[],this.size=0}function mc(re){var Ee=this.__data__,et=ze(Ee,re);if(et<0)return!1;var Lt=Ee.length-1;return et==Lt?Ee.pop():Ne.call(Ee,et,1),--this.size,!0}function js(re){var Ee=this.__data__,et=ze(Ee,re);return et<0?void 0:Ee[et][1]}function Ka(re){return ze(this.__data__,re)>-1}function Ja(re,Ee){var et=this.__data__,Lt=ze(et,re);return Lt<0?(++this.size,et.push([re,Ee])):et[Lt][1]=Ee,this}yi.prototype.clear=ea,yi.prototype.delete=mc,yi.prototype.get=js,yi.prototype.has=Ka,yi.prototype.set=Ja;function Fi(re){var Ee=-1,et=re==null?0:re.length;for(this.clear();++Ee<et;){var Lt=re[Ee];this.set(Lt[0],Lt[1])}}function Cs(){this.size=0,this.__data__={hash:new So,map:new(Oo||yi),string:new So}}function Fs(re){var Ee=To(this,re).delete(re);return this.size-=Ee?1:0,Ee}function as(re){return To(this,re).get(re)}function Rl(re){return To(this,re).has(re)}function zs(re,Ee){var et=To(this,re),Lt=et.size;return et.set(re,Ee),this.size+=et.size==Lt?0:1,this}Fi.prototype.clear=Cs,Fi.prototype.delete=Fs,Fi.prototype.get=as,Fi.prototype.has=Rl,Fi.prototype.set=zs;function oi(re){var Ee=-1,et=re==null?0:re.length;for(this.__data__=new Fi;++Ee<et;)this.add(re[Ee])}function Ss(re){return this.__data__.set(re,o),this}function ls(re){return this.__data__.has(re)}oi.prototype.add=oi.prototype.push=Ss,oi.prototype.has=ls;function Gr(re){var Ee=this.__data__=new yi(re);this.size=Ee.size}function Xa(){this.__data__=new yi,this.size=0}function Qa(re){var Ee=this.__data__,et=Ee.delete(re);return this.size=Ee.size,et}function pc(re){return this.__data__.get(re)}function jl(re){return this.__data__.has(re)}function Ie(re,Ee){var et=this.__data__;if(et instanceof yi){var Lt=et.__data__;if(!Oo||Lt.length<n-1)return Lt.push([re,Ee]),this.size=++et.size,this;et=this.__data__=new Fi(Lt)}return et.set(re,Ee),this.size=et.size,this}Gr.prototype.clear=Xa,Gr.prototype.delete=Qa,Gr.prototype.get=pc,Gr.prototype.has=jl,Gr.prototype.set=Ie;function Ke(re,Ee){var et=yc(re),Lt=!et&&_c(re),zn=!et&&!Lt&&el(re),En=!et&&!Lt&&!zn&&gu(re),po=et||Lt||zn||En,Mo=po?Ve(re.length,String):[],oo=Mo.length;for(var No in re)(Ee||We.call(re,No))&&!(po&&(No=="length"||zn&&(No=="offset"||No=="parent")||En&&(No=="buffer"||No=="byteLength"||No=="byteOffset")||gc(No,oo)))&&Mo.push(No);return Mo}function ze(re,Ee){for(var et=re.length;et--;)if(mu(re[et][0],Ee))return et;return-1}function lt(re,Ee,et){var Lt=Ee(re);return yc(re)?Lt:$t(Lt,et(re))}function ft(re){return re==null?re===void 0?M:$:nt&&nt in Object(re)?ii(re):Fl(re)}function ct(re){return na(re)&&ft(re)==a}function Nt(re,Ee,et,Lt,zn){return re===Ee?!0:re==null||Ee==null||!na(re)&&!na(Ee)?re!==re&&Ee!==Ee:qt(re,Ee,et,Lt,Nt,zn)}function qt(re,Ee,et,Lt,zn,En){var po=yc(re),Mo=yc(Ee),oo=po?l:vr(re),No=Mo?l:vr(Ee);oo=oo==a?E:oo,No=No==a?E:No;var bi=oo==E,lo=No==E,ki=oo==No;if(ki&&el(re)){if(!el(Ee))return!1;po=!0,bi=!1}if(ki&&!bi)return En||(En=new Gr),po||gu(re)?mn(re,Ee,et,Lt,zn,En):xn(re,Ee,oo,et,Lt,zn,En);if(!(et&i)){var Bo=bi&&We.call(re,"__wrapped__"),A=lo&&We.call(Ee,"__wrapped__");if(Bo||A){var N=Bo?re.value():re,K=A?Ee.value():Ee;return En||(En=new Gr),zn(N,K,et,Lt,En)}}return ki?(En||(En=new Gr),no(re,Ee,et,Lt,zn,En)):!1}function Kt(re){if(!pu(re)||vc(re))return!1;var Ee=bc(re)?Vt:de;return Ee.test(Vi(re))}function Xt(re){return na(re)&&hd(re.length)&&!!be[ft(re)]}function nn(re){if(!ta(re))return dn(re);var Ee=[];for(var et in Object(re))We.call(re,et)&&et!="constructor"&&Ee.push(et);return Ee}function mn(re,Ee,et,Lt,zn,En){var po=et&i,Mo=re.length,oo=Ee.length;if(Mo!=oo&&!(po&&oo>Mo))return!1;var No=En.get(re);if(No&&En.get(Ee))return No==Ee;var bi=-1,lo=!0,ki=et&r?new oi:void 0;for(En.set(re,Ee),En.set(Ee,re);++bi<Mo;){var Bo=re[bi],A=Ee[bi];if(Lt)var N=po?Lt(A,Bo,bi,Ee,re,En):Lt(Bo,A,bi,re,Ee,En);if(N!==void 0){if(N)continue;lo=!1;break}if(ki){if(!ut(Ee,function(K,ne){if(!ge(ki,ne)&&(Bo===K||zn(Bo,K,et,Lt,En)))return ki.push(ne)})){lo=!1;break}}else if(!(Bo===A||zn(Bo,A,et,Lt,En))){lo=!1;break}}return En.delete(re),En.delete(Ee),lo}function xn(re,Ee,et,Lt,zn,En,po){switch(et){case V:if(re.byteLength!=Ee.byteLength||re.byteOffset!=Ee.byteOffset)return!1;re=re.buffer,Ee=Ee.buffer;case B:return!(re.byteLength!=Ee.byteLength||!En(new bn(re),new bn(Ee)));case u:case f:case C:return mu(+re,+Ee);case p:return re.name==Ee.name&&re.message==Ee.message;case O:case S:return re==Ee+"";case k:var Mo=Te;case L:var oo=Lt&i;if(Mo||(Mo=yt),re.size!=Ee.size&&!oo)return!1;var No=po.get(re);if(No)return No==Ee;Lt|=r,po.set(re,Ee);var bi=mn(Mo(re),Mo(Ee),Lt,zn,En,po);return po.delete(re),bi;case j:if(Qs)return Qs.call(re)==Qs.call(Ee)}return!1}function no(re,Ee,et,Lt,zn,En){var po=et&i,Mo=Mn(re),oo=Mo.length,No=Mn(Ee),bi=No.length;if(oo!=bi&&!po)return!1;for(var lo=oo;lo--;){var ki=Mo[lo];if(!(po?ki in Ee:We.call(Ee,ki)))return!1}var Bo=En.get(re);if(Bo&&En.get(Ee))return Bo==Ee;var A=!0;En.set(re,Ee),En.set(Ee,re);for(var N=po;++lo<oo;){ki=Mo[lo];var K=re[ki],ne=Ee[ki];if(Lt)var he=po?Lt(ne,K,ki,Ee,re,En):Lt(K,ne,ki,re,Ee,En);if(!(he===void 0?K===ne||zn(K,ne,et,Lt,En):he)){A=!1;break}N||(N=ki=="constructor")}if(A&&!N){var ue=re.constructor,ke=Ee.constructor;ue!=ke&&"constructor"in re&&"constructor"in Ee&&!(typeof ue=="function"&&ue instanceof ue&&typeof ke=="function"&&ke instanceof ke)&&(A=!1)}return En.delete(re),En.delete(Ee),A}function Mn(re){return lt(re,fd,gr)}function To(re,Ee){var et=re.__data__;return Ts(Ee)?et[typeof Ee=="string"?"string":"hash"]:et.map}function mo(re,Ee){var et=ye(re,Ee);return Kt(et)?et:void 0}function ii(re){var Ee=We.call(re,nt),et=re[nt];try{re[nt]=void 0;var Lt=!0}catch{}var zn=At.call(re);return Lt&&(Ee?re[nt]=et:delete re[nt]),zn}var gr=It?function(re){return re==null?[]:(re=Object(re),qe(It(re),function(Ee){return kt.call(re,Ee)}))}:li,vr=ft;(Hn&&vr(new Hn(new ArrayBuffer(1)))!=V||Oo&&vr(new Oo)!=k||tn&&vr(tn.resolve())!=P||Fo&&vr(new Fo)!=L||Yr&&vr(new Yr)!=q)&&(vr=function(re){var Ee=ft(re),et=Ee==E?re.constructor:void 0,Lt=et?Vi(et):"";if(Lt)switch(Lt){case ji:return V;case On:return k;case Hi:return P;case Gn:return L;case Ar:return q}return Ee});function gc(re,Ee){return Ee=Ee??s,!!Ee&&(typeof re=="number"||$e.test(re))&&re>-1&&re%1==0&&re<Ee}function Ts(re){var Ee=typeof re;return Ee=="string"||Ee=="number"||Ee=="symbol"||Ee=="boolean"?re!=="__proto__":re===null}function vc(re){return!!pt&&pt in re}function ta(re){var Ee=re&&re.constructor,et=typeof Ee=="function"&&Ee.prototype||vt;return re===et}function Fl(re){return At.call(re)}function Vi(re){if(re!=null){try{return Je.call(re)}catch{}try{return re+""}catch{}}return""}function mu(re,Ee){return re===Ee||re!==re&&Ee!==Ee}var _c=ct(function(){return arguments}())?ct:function(re){return na(re)&&We.call(re,"callee")&&!kt.call(re,"callee")},yc=Array.isArray;function ud(re){return re!=null&&hd(re.length)&&!bc(re)}var el=Zt||Yo;function kh(re,Ee){return Nt(re,Ee)}function bc(re){if(!pu(re))return!1;var Ee=ft(re);return Ee==v||Ee==_||Ee==d||Ee==I}function hd(re){return typeof re=="number"&&re>-1&&re%1==0&&re<=s}function pu(re){var Ee=typeof re;return re!=null&&(Ee=="object"||Ee=="function")}function na(re){return re!=null&&typeof re=="object"}var gu=ve?tt(ve):Xt;function fd(re){return ud(re)?Ke(re):nn(re)}function li(){return[]}function Yo(){return!1}e.exports=kh})(B5,B5.exports);var Kie=B5.exports,zO={},Jie=bo&&bo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zO,"__esModule",{value:!0});var FQe=Jie(Zie),zQe=Jie(Kie),uP;(function(e){function t(r,s,a){r===void 0&&(r={}),s===void 0&&(s={}),typeof r!="object"&&(r={}),typeof s!="object"&&(s={});var l=FQe.default(s);a||(l=Object.keys(l).reduce(function(u,f){return l[f]!=null&&(u[f]=l[f]),u},{}));for(var d in r)r[d]!==void 0&&s[d]===void 0&&(l[d]=r[d]);return Object.keys(l).length>0?l:void 0}e.compose=t;function n(r,s){r===void 0&&(r={}),s===void 0&&(s={}),typeof r!="object"&&(r={}),typeof s!="object"&&(s={});var a=Object.keys(r).concat(Object.keys(s)).reduce(function(l,d){return zQe.default(r[d],s[d])||(l[d]=s[d]===void 0?null:s[d]),l},{});return Object.keys(a).length>0?a:void 0}e.diff=n;function o(r,s){r===void 0&&(r={}),s===void 0&&(s={}),r=r||{};var a=Object.keys(s).reduce(function(l,d){return s[d]!==r[d]&&r[d]!==void 0&&(l[d]=s[d]),l},{});return Object.keys(r).reduce(function(l,d){return r[d]!==s[d]&&s[d]===void 0&&(l[d]=null),l},a)}e.invert=o;function i(r,s,a){if(a===void 0&&(a=!1),typeof r!="object")return s;if(typeof s=="object"){if(!a)return s;var l=Object.keys(s).reduce(function(d,u){return r[u]===void 0&&(d[u]=s[u]),d},{});return Object.keys(l).length>0?l:void 0}}e.transform=i})(uP||(uP={}));zO.default=uP;var Vw={},qw={},NH;function UQe(){if(NH)return qw;NH=1;var e=bo&&bo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(qw,"__esModule",{value:!0});var t=e(Xie()),n=function(){function o(i){this.ops=i,this.index=0,this.offset=0}return o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(i){i||(i=1/0);var r=this.ops[this.index];if(r){var s=this.offset,a=t.default.length(r);if(i>=a-s?(i=a-s,this.index+=1,this.offset=0):this.offset+=i,typeof r.delete=="number")return{delete:i};var l={};return r.attributes&&(l.attributes=r.attributes),typeof r.retain=="number"?l.retain=i:typeof r.insert=="string"?l.insert=r.insert.substr(s,i):l.insert=r.insert,l}else return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},o.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var i=this.offset,r=this.index,s=this.next(),a=this.ops.slice(this.index);return this.offset=i,this.index=r,[s].concat(a)}else return[]},o}();return qw.default=n,qw}var RH;function Xie(){if(RH)return Vw;RH=1;var e=bo&&bo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Vw,"__esModule",{value:!0});var t=e(UQe()),n;return function(o){function i(s){return new t.default(s)}o.iterator=i;function r(s){return typeof s.delete=="number"?s.delete:typeof s.retain=="number"?s.retain:typeof s.insert=="string"?s.insert.length:1}o.length=r}(n||(n={})),Vw.default=n,Vw}var M3=bo&&bo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Yw=M3(jQe),BQe=M3(Zie),NS=M3(Kie),Bb=M3(zO),Vs=M3(Xie()),HQe=String.fromCharCode(0),VQe=function(){function e(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}return e.prototype.insert=function(t,n){var o={};return typeof t=="string"&&t.length===0?this:(o.insert=t,n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(o.attributes=n),this.push(o))},e.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},e.prototype.retain=function(t,n){if(t<=0)return this;var o={retain:t};return n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(o.attributes=n),this.push(o)},e.prototype.push=function(t){var n=this.ops.length,o=this.ops[n-1];if(t=BQe.default(t),typeof o=="object"){if(typeof t.delete=="number"&&typeof o.delete=="number")return this.ops[n-1]={delete:o.delete+t.delete},this;if(typeof o.delete=="number"&&t.insert!=null&&(n-=1,o=this.ops[n-1],typeof o!="object"))return this.ops.unshift(t),this;if(NS.default(t.attributes,o.attributes)){if(typeof t.insert=="string"&&typeof o.insert=="string")return this.ops[n-1]={insert:o.insert+t.insert},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof o.retain=="number")return this.ops[n-1]={retain:o.retain+t.retain},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this}}return n===this.ops.length?this.ops.push(t):this.ops.splice(n,0,t),this},e.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},e.prototype.filter=function(t){return this.ops.filter(t)},e.prototype.forEach=function(t){this.ops.forEach(t)},e.prototype.map=function(t){return this.ops.map(t)},e.prototype.partition=function(t){var n=[],o=[];return this.forEach(function(i){var r=t(i)?n:o;r.push(i)}),[n,o]},e.prototype.reduce=function(t,n){return this.ops.reduce(t,n)},e.prototype.changeLength=function(){return this.reduce(function(t,n){return n.insert?t+Vs.default.length(n):n.delete?t-n.delete:t},0)},e.prototype.length=function(){return this.reduce(function(t,n){return t+Vs.default.length(n)},0)},e.prototype.slice=function(t,n){t===void 0&&(t=0),n===void 0&&(n=1/0);for(var o=[],i=Vs.default.iterator(this.ops),r=0;r<n&&i.hasNext();){var s=void 0;r<t?s=i.next(t-r):(s=i.next(n-r),o.push(s)),r+=Vs.default.length(s)}return new e(o)},e.prototype.compose=function(t){var n=Vs.default.iterator(this.ops),o=Vs.default.iterator(t.ops),i=[],r=o.peek();if(r!=null&&typeof r.retain=="number"&&r.attributes==null){for(var s=r.retain;n.peekType()==="insert"&&n.peekLength()<=s;)s-=n.peekLength(),i.push(n.next());r.retain-s>0&&o.next(r.retain-s)}for(var a=new e(i);n.hasNext()||o.hasNext();)if(o.peekType()==="insert")a.push(o.next());else if(n.peekType()==="delete")a.push(n.next());else{var l=Math.min(n.peekLength(),o.peekLength()),d=n.next(l),u=o.next(l);if(typeof u.retain=="number"){var f={};typeof d.retain=="number"?f.retain=l:f.insert=d.insert;var p=Bb.default.compose(d.attributes,u.attributes,typeof d.retain=="number");if(p&&(f.attributes=p),a.push(f),!o.hasNext()&&NS.default(a.ops[a.ops.length-1],f)){var v=new e(n.rest());return a.concat(v).chop()}}else typeof u.delete=="number"&&typeof d.retain=="number"&&a.push(u)}return a.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e;var o=[this,t].map(function(l){return l.map(function(d){if(d.insert!=null)return typeof d.insert=="string"?d.insert:HQe;var u=l===t?"on":"with";throw new Error("diff() called "+u+" non-document")}).join("")}),i=new e,r=Yw.default(o[0],o[1],n),s=Vs.default.iterator(this.ops),a=Vs.default.iterator(t.ops);return r.forEach(function(l){for(var d=l[1].length;d>0;){var u=0;switch(l[0]){case Yw.default.INSERT:u=Math.min(a.peekLength(),d),i.push(a.next(u));break;case Yw.default.DELETE:u=Math.min(d,s.peekLength()),s.next(u),i.delete(u);break;case Yw.default.EQUAL:u=Math.min(s.peekLength(),a.peekLength(),d);var f=s.next(u),p=a.next(u);NS.default(f.insert,p.insert)?i.retain(u,Bb.default.diff(f.attributes,p.attributes)):i.push(p).delete(u);break}d-=u}}),i.chop()},e.prototype.eachLine=function(t,n){n===void 0&&(n=` `);for(var o=Vs.default.iterator(this.ops),i=new e,r=0;o.hasNext();){if(o.peekType()!=="insert")return;var s=o.peek(),a=Vs.default.length(s)-o.peekLength(),l=typeof s.insert=="string"?s.insert.indexOf(n,a)-a:-1;if(l<0)i.push(o.next());else if(l>0)i.push(o.next(l));else{if(t(i,o.next(1).attributes||{},r)===!1)return;r+=1,i=new e}}i.length()>0&&t(i,{},r)},e.prototype.invert=function(t){var n=new e;return this.reduce(function(o,i){if(i.insert)n.delete(Vs.default.length(i));else{if(i.retain&&i.attributes==null)return n.retain(i.retain),o+i.retain;if(i.delete||i.retain&&i.attributes){var r=i.delete||i.retain,s=t.slice(o,o+r);return s.forEach(function(a){i.delete?n.push(a):i.retain&&i.attributes&&n.retain(Vs.default.length(a),Bb.default.invert(i.attributes,a.attributes))}),o+r}}return o},0),n.chop()},e.prototype.transform=function(t,n){if(n===void 0&&(n=!1),n=!!n,typeof t=="number")return this.transformPosition(t,n);for(var o=t,i=Vs.default.iterator(this.ops),r=Vs.default.iterator(o.ops),s=new e;i.hasNext()||r.hasNext();)if(i.peekType()==="insert"&&(n||r.peekType()!=="insert"))s.retain(Vs.default.length(i.next()));else if(r.peekType()==="insert")s.push(r.next());else{var a=Math.min(i.peekLength(),r.peekLength()),l=i.next(a),d=r.next(a);if(l.delete)continue;d.delete?s.push(d):s.retain(a,Bb.default.transform(l.attributes,d.attributes,n))}return s.chop()},e.prototype.transformPosition=function(t,n){n===void 0&&(n=!1),n=!!n;for(var o=Vs.default.iterator(this.ops),i=0;o.hasNext()&&i<=t;){var r=o.peekLength(),s=o.peekType();if(o.next(),s==="delete"){t-=Math.min(r,t-i);continue}else s==="insert"&&(i<t||!n)&&(t+=r);i+=r}return t},e.Op=Vs.default,e.AttributeMap=Bb.default,e}(),qQe=VQe;const YQe=Ol(qQe);/*! * VueQuill @vueup/vue-quill v1.2.0 * https://vueup.github.io/vue-quill/ * * Includes quill v1.3.7 * https://quilljs.com/ * * Copyright (c) 2023 Ahmad Luthfi Masruri * Released under the MIT license * Date: 2023-05-12T08:44:03.742Z */const jH={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},WQe=xo({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:e=>["delta","html","text"].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:e=>["snow","bubble",""].includes(e)},toolbar:{type:[String,Array,Object],required:!1,validator:e=>typeof e=="string"&&e!==""?e.charAt(0)==="#"?!0:Object.keys(jH).indexOf(e)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(e,t)=>{Ha(()=>{r()}),cg(()=>{n=null});let n,o;const i=In(),r=()=>{var B;if(i.value){if(o=s(),e.modules)if(Array.isArray(e.modules))for(const V of e.modules)LS.register(`modules/${V.name}`,V.module);else LS.register(`modules/${e.modules.name}`,e.modules.module);n=new LS(i.value,o),P(e.content),n.on("text-change",f),n.on("selection-change",v),n.on("editor-change",_),e.theme!=="bubble"&&i.value.classList.remove("ql-bubble"),e.theme!=="snow"&&i.value.classList.remove("ql-snow"),(B=n.getModule("toolbar"))===null||B===void 0||B.container.addEventListener("mousedown",V=>{V.preventDefault()}),t.emit("ready",n)}},s=()=>{const B={};if(e.theme!==""&&(B.theme=e.theme),e.readOnly&&(B.readOnly=e.readOnly),e.placeholder&&(B.placeholder=e.placeholder),e.toolbar&&e.toolbar!==""&&(B.modules={toolbar:(()=>{if(typeof e.toolbar=="object")return e.toolbar;if(typeof e.toolbar=="string")return e.toolbar.charAt(0)==="#"?e.toolbar:jH[e.toolbar]})()}),e.modules){const V=(()=>{var G,Q;const X={};if(Array.isArray(e.modules))for(const Y of e.modules)X[Y.name]=(G=Y.options)!==null&&G!==void 0?G:{};else X[e.modules.name]=(Q=e.modules.options)!==null&&Q!==void 0?Q:{};return X})();B.modules=Object.assign({},B.modules,V)}return Object.assign({},e.globalOptions,e.options,B)},a=B=>typeof B=="object"&&B?B.slice():B,l=B=>Object.values(B.ops).some(V=>!V.retain||Object.keys(V).length!==1);let d;const u=B=>{if(typeof d==typeof B){if(B===d)return!0;if(typeof B=="object"&&B&&typeof d=="object"&&d)return!l(d.diff(B))}return!1},f=(B,V,G)=>{d=a(E()),u(e.content)||t.emit("update:content",d),t.emit("textChange",{delta:B,oldContents:V,source:G})},p=In(),v=(B,V,G)=>{p.value=!!(n!=null&&n.hasFocus()),t.emit("selectionChange",{range:B,oldRange:V,source:G})};Co(p,B=>{B?t.emit("focus",i):t.emit("blur",i)});const _=(...B)=>{B[0]==="text-change"&&t.emit("editorChange",{name:B[0],delta:B[1],oldContents:B[2],source:B[3]}),B[0]==="selection-change"&&t.emit("editorChange",{name:B[0],range:B[1],oldRange:B[2],source:B[3]})},k=()=>i.value,C=()=>{var B;return(B=n==null?void 0:n.getModule("toolbar"))===null||B===void 0?void 0:B.container},$=()=>{if(n)return n;throw`The quill editor hasn't been instantiated yet, make sure to call this method when the editor ready or use v-on:ready="onReady(quill)" event instead.`},E=(B,V)=>e.contentType==="html"?L():e.contentType==="text"?I(B,V):n==null?void 0:n.getContents(B,V),P=(B,V="api")=>{const G=B||(e.contentType==="delta"?new YQe:"");e.contentType==="html"?S(G):e.contentType==="text"?O(G,V):n==null||n.setContents(G,V),d=a(G)},I=(B,V)=>{var G;return(G=n==null?void 0:n.getText(B,V))!==null&&G!==void 0?G:""},O=(B,V="api")=>{n==null||n.setText(B,V)},L=()=>{var B;return(B=n==null?void 0:n.root.innerHTML)!==null&&B!==void 0?B:""},S=B=>{n&&(n.root.innerHTML=B)},j=(B,V="api")=>{const G=n==null?void 0:n.clipboard.convert(B);G&&(n==null||n.setContents(G,V))},M=()=>{n==null||n.focus()},q=()=>{fa(()=>{var B;!t.slots.toolbar&&n&&((B=n.getModule("toolbar"))===null||B===void 0||B.container.remove()),r()})};return Co(()=>e.content,B=>{if(!n||!B||u(B))return;const V=n.getSelection();V&&fa(()=>n==null?void 0:n.setSelection(V)),P(B)},{deep:!0}),Co(()=>e.enable,B=>{n&&n.enable(B)}),{editor:i,getEditor:k,getToolbar:C,getQuill:$,getContents:E,setContents:P,getHTML:L,setHTML:S,pasteHTML:j,focus:M,getText:I,setText:O,reinit:q}},render(){var e,t;return[(t=(e=this.$slots).toolbar)===null||t===void 0?void 0:t.call(e),tu("div",{ref:"editor",...this.$attrs})]}});var Hb=function(e){return e&&e.Math===Math&&e},Ya=Hb(typeof globalThis=="object"&&globalThis)||Hb(typeof window=="object"&&window)||Hb(typeof self=="object"&&self)||Hb(typeof bo=="object"&&bo)||Hb(typeof bo=="object"&&bo)||function(){return this}()||Function("return this")(),UO={},Ll=function(e){try{return!!e()}catch{return!0}},GQe=Ll,ph=!GQe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),ZQe=Ll,Qie=!ZQe(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),KQe=Qie,Ww=Function.prototype.call,N3=KQe?Ww.bind(Ww):function(){return Ww.apply(Ww,arguments)},ere={},tre={}.propertyIsEnumerable,nre=Object.getOwnPropertyDescriptor,JQe=nre&&!tre.call({1:2},1);ere.f=JQe?function(t){var n=nre(this,t);return!!n&&n.enumerable}:tre;var ore=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},ire=Qie,rre=Function.prototype,hP=rre.call,XQe=ire&&rre.bind.bind(hP,hP),ld=ire?XQe:function(e){return function(){return hP.apply(e,arguments)}},sre=ld,QQe=sre({}.toString),eet=sre("".slice),BO=function(e){return eet(QQe(e),8,-1)},tet=ld,net=Ll,oet=BO,RS=Object,iet=tet("".split),ret=net(function(){return!RS("z").propertyIsEnumerable(0)})?function(e){return oet(e)==="String"?iet(e,""):RS(e)}:RS,are=function(e){return e==null},set=are,aet=TypeError,HO=function(e){if(set(e))throw new aet("Can't call method on "+e);return e},cet=ret,det=HO,r6=function(e){return cet(det(e))},jS=typeof document=="object"&&document.all,cd=typeof jS>"u"&&jS!==void 0?function(e){return typeof e=="function"||e===jS}:function(e){return typeof e=="function"},uet=cd,Mf=function(e){return typeof e=="object"?e!==null:uet(e)},FS=Ya,het=cd,fet=function(e){return het(e)?e:void 0},s6=function(e,t){return arguments.length<2?fet(FS[e]):FS[e]&&FS[e][t]},met=ld,VO=met({}.isPrototypeOf),pet=Ya,FH=pet.navigator,zH=FH&&FH.userAgent,get=zH?String(zH):"",lre=Ya,zS=get,UH=lre.process,BH=lre.Deno,HH=UH&&UH.versions||BH&&BH.version,VH=HH&&HH.v8,Od,H5;VH&&(Od=VH.split("."),H5=Od[0]>0&&Od[0]<4?1:+(Od[0]+Od[1]));!H5&&zS&&(Od=zS.match(/Edge\/(\d+)/),(!Od||Od[1]>=74)&&(Od=zS.match(/Chrome\/(\d+)/),Od&&(H5=+Od[1])));var vet=H5,qH=vet,_et=Ll,yet=Ya,bet=yet.String,cre=!!Object.getOwnPropertySymbols&&!_et(function(){var e=Symbol("symbol detection");return!bet(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qH&&qH<41}),ket=cre,dre=ket&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wet=s6,$et=cd,Cet=VO,Tet=dre,Eet=Object,ure=Tet?function(e){return typeof e=="symbol"}:function(e){var t=wet("Symbol");return $et(t)&&Cet(t.prototype,Eet(e))},Iet=String,Pet=function(e){try{return Iet(e)}catch{return"Object"}},Aet=cd,Det=Pet,xet=TypeError,hre=function(e){if(Aet(e))return e;throw new xet(Det(e)+" is not a function")},Oet=hre,Let=are,Met=function(e,t){var n=e[t];return Let(n)?void 0:Oet(n)},US=N3,BS=cd,HS=Mf,Net=TypeError,Ret=function(e,t){var n,o;if(t==="string"&&BS(n=e.toString)&&!HS(o=US(n,e))||BS(n=e.valueOf)&&!HS(o=US(n,e))||t!=="string"&&BS(n=e.toString)&&!HS(o=US(n,e)))return o;throw new Net("Can't convert object to primitive value")},fre={exports:{}},YH=Ya,jet=Object.defineProperty,qO=function(e,t){try{jet(YH,e,{value:t,configurable:!0,writable:!0})}catch{YH[e]=t}return t},Fet=Ya,zet=qO,WH="__core-js_shared__",GH=fre.exports=Fet[WH]||zet(WH,{});(GH.versions||(GH.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});var YO=fre.exports,ZH=YO,WO=function(e,t){return ZH[e]||(ZH[e]=t||{})},Uet=HO,Bet=Object,mre=function(e){return Bet(Uet(e))},Het=ld,Vet=mre,qet=Het({}.hasOwnProperty),Nf=Object.hasOwn||function(t,n){return qet(Vet(t),n)},Yet=ld,Wet=0,Get=Math.random(),Zet=Yet(1 .toString),pre=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Zet(++Wet+Get,36)},Ket=Ya,Jet=WO,KH=Nf,Xet=pre,Qet=cre,ett=dre,Jv=Ket.Symbol,VS=Jet("wks"),ttt=ett?Jv.for||Jv:Jv&&Jv.withoutSetter||Xet,qy=function(e){return KH(VS,e)||(VS[e]=Qet&&KH(Jv,e)?Jv[e]:ttt("Symbol."+e)),VS[e]},ntt=N3,JH=Mf,XH=ure,ott=Met,itt=Ret,rtt=qy,stt=TypeError,att=rtt("toPrimitive"),ltt=function(e,t){if(!JH(e)||XH(e))return e;var n=ott(e,att),o;if(n){if(t===void 0&&(t="default"),o=ntt(n,e,t),!JH(o)||XH(o))return o;throw new stt("Can't convert object to primitive value")}return t===void 0&&(t="number"),itt(e,t)},ctt=ltt,dtt=ure,gre=function(e){var t=ctt(e,"string");return dtt(t)?t:t+""},utt=Ya,QH=Mf,fP=utt.document,htt=QH(fP)&&QH(fP.createElement),vre=function(e){return htt?fP.createElement(e):{}},ftt=ph,mtt=Ll,ptt=vre,_re=!ftt&&!mtt(function(){return Object.defineProperty(ptt("div"),"a",{get:function(){return 7}}).a!==7}),gtt=ph,vtt=N3,_tt=ere,ytt=ore,btt=r6,ktt=gre,wtt=Nf,$tt=_re,eV=Object.getOwnPropertyDescriptor;UO.f=gtt?eV:function(t,n){if(t=btt(t),n=ktt(n),$tt)try{return eV(t,n)}catch{}if(wtt(t,n))return ytt(!vtt(_tt.f,t,n),t[n])};var bg={},Ctt=ph,Stt=Ll,yre=Ctt&&Stt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Ttt=Mf,Ett=String,Itt=TypeError,Yy=function(e){if(Ttt(e))return e;throw new Itt(Ett(e)+" is not an object")},Ptt=ph,Att=_re,Dtt=yre,Gw=Yy,tV=gre,xtt=TypeError,qS=Object.defineProperty,Ott=Object.getOwnPropertyDescriptor,YS="enumerable",WS="configurable",GS="writable";bg.f=Ptt?Dtt?function(t,n,o){if(Gw(t),n=tV(n),Gw(o),typeof t=="function"&&n==="prototype"&&"value"in o&&GS in o&&!o[GS]){var i=Ott(t,n);i&&i[GS]&&(t[n]=o.value,o={configurable:WS in o?o[WS]:i[WS],enumerable:YS in o?o[YS]:i[YS],writable:!1})}return qS(t,n,o)}:qS:function(t,n,o){if(Gw(t),n=tV(n),Gw(o),Att)try{return qS(t,n,o)}catch{}if("get"in o||"set"in o)throw new xtt("Accessors not supported");return"value"in o&&(t[n]=o.value),t};var Ltt=ph,Mtt=bg,Ntt=ore,GO=Ltt?function(e,t,n){return Mtt.f(e,t,Ntt(1,n))}:function(e,t,n){return e[t]=n,e},bre={exports:{}},mP=ph,Rtt=Nf,kre=Function.prototype,jtt=mP&&Object.getOwnPropertyDescriptor,ZO=Rtt(kre,"name"),Ftt=ZO&&(function(){}).name==="something",ztt=ZO&&(!mP||mP&&jtt(kre,"name").configurable),wre={EXISTS:ZO,PROPER:Ftt,CONFIGURABLE:ztt},Utt=ld,Btt=cd,pP=YO,Htt=Utt(Function.toString);Btt(pP.inspectSource)||(pP.inspectSource=function(e){return Htt(e)});var Vtt=pP.inspectSource,qtt=Ya,Ytt=cd,nV=qtt.WeakMap,Wtt=Ytt(nV)&&/native code/.test(String(nV)),Gtt=WO,Ztt=pre,oV=Gtt("keys"),$re=function(e){return oV[e]||(oV[e]=Ztt(e))},KO={},Ktt=Wtt,Cre=Ya,Jtt=Mf,Xtt=GO,ZS=Nf,KS=YO,Qtt=$re,ent=KO,iV="Object already initialized",gP=Cre.TypeError,tnt=Cre.WeakMap,V5,V2,q5,nnt=function(e){return q5(e)?V2(e):V5(e,{})},ont=function(e){return function(t){var n;if(!Jtt(t)||(n=V2(t)).type!==e)throw new gP("Incompatible receiver, "+e+" required");return n}};if(Ktt||KS.state){var Tu=KS.state||(KS.state=new tnt);Tu.get=Tu.get,Tu.has=Tu.has,Tu.set=Tu.set,V5=function(e,t){if(Tu.has(e))throw new gP(iV);return t.facade=e,Tu.set(e,t),t},V2=function(e){return Tu.get(e)||{}},q5=function(e){return Tu.has(e)}}else{var _v=Qtt("state");ent[_v]=!0,V5=function(e,t){if(ZS(e,_v))throw new gP(iV);return t.facade=e,Xtt(e,_v,t),t},V2=function(e){return ZS(e,_v)?e[_v]:{}},q5=function(e){return ZS(e,_v)}}var JO={set:V5,get:V2,has:q5,enforce:nnt,getterFor:ont},XO=ld,int=Ll,rnt=cd,Zw=Nf,vP=ph,snt=wre.CONFIGURABLE,ant=Vtt,Sre=JO,lnt=Sre.enforce,cnt=Sre.get,rV=String,c4=Object.defineProperty,dnt=XO("".slice),unt=XO("".replace),hnt=XO([].join),fnt=vP&&!int(function(){return c4(function(){},"length",{value:8}).length!==8}),mnt=String(String).split("String"),pnt=bre.exports=function(e,t,n){dnt(rV(t),0,7)==="Symbol("&&(t="["+unt(rV(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Zw(e,"name")||snt&&e.name!==t)&&(vP?c4(e,"name",{value:t,configurable:!0}):e.name=t),fnt&&n&&Zw(n,"arity")&&e.length!==n.arity&&c4(e,"length",{value:n.arity});try{n&&Zw(n,"constructor")&&n.constructor?vP&&c4(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var o=lnt(e);return Zw(o,"source")||(o.source=hnt(mnt,typeof t=="string"?t:"")),e};Function.prototype.toString=pnt(function(){return rnt(this)&&cnt(this).source||ant(this)},"toString");var Tre=bre.exports,gnt=cd,vnt=bg,_nt=Tre,ynt=qO,a6=function(e,t,n,o){o||(o={});var i=o.enumerable,r=o.name!==void 0?o.name:t;if(gnt(n)&&_nt(n,r,o),o.global)i?e[t]=n:ynt(t,n);else{try{o.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=n:vnt.f(e,t,{value:n,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},QO={},bnt=Math.ceil,knt=Math.floor,wnt=Math.trunc||function(t){var n=+t;return(n>0?knt:bnt)(n)},$nt=wnt,Ere=function(e){var t=+e;return t!==t||t===0?0:$nt(t)},Cnt=Ere,Snt=Math.max,Tnt=Math.min,Ent=function(e,t){var n=Cnt(e);return n<0?Snt(n+t,0):Tnt(n,t)},Int=Ere,Pnt=Math.min,Ant=function(e){var t=Int(e);return t>0?Pnt(t,9007199254740991):0},Dnt=Ant,xnt=function(e){return Dnt(e.length)},Ont=r6,Lnt=Ent,Mnt=xnt,sV=function(e){return function(t,n,o){var i=Ont(t),r=Mnt(i);if(r===0)return!e&&-1;var s=Lnt(o,r),a;if(e&&n!==n){for(;r>s;)if(a=i[s++],a!==a)return!0}else for(;r>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Nnt={includes:sV(!0),indexOf:sV(!1)},Rnt=ld,JS=Nf,jnt=r6,Fnt=Nnt.indexOf,znt=KO,aV=Rnt([].push),Ire=function(e,t){var n=jnt(e),o=0,i=[],r;for(r in n)!JS(znt,r)&&JS(n,r)&&aV(i,r);for(;t.length>o;)JS(n,r=t[o++])&&(~Fnt(i,r)||aV(i,r));return i},eL=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Unt=Ire,Bnt=eL,Hnt=Bnt.concat("length","prototype");QO.f=Object.getOwnPropertyNames||function(t){return Unt(t,Hnt)};var Pre={};Pre.f=Object.getOwnPropertySymbols;var Vnt=s6,qnt=ld,Ynt=QO,Wnt=Pre,Gnt=Yy,Znt=qnt([].concat),Knt=Vnt("Reflect","ownKeys")||function(t){var n=Ynt.f(Gnt(t)),o=Wnt.f;return o?Znt(n,o(t)):n},lV=Nf,Jnt=Knt,Xnt=UO,Qnt=bg,eot=function(e,t,n){for(var o=Jnt(t),i=Qnt.f,r=Xnt.f,s=0;s<o.length;s++){var a=o[s];!lV(e,a)&&!(n&&lV(n,a))&&i(e,a,r(t,a))}},tot=Ll,not=cd,oot=/#|\.prototype\./,R3=function(e,t){var n=rot[iot(e)];return n===aot?!0:n===sot?!1:not(t)?tot(t):!!t},iot=R3.normalize=function(e){return String(e).replace(oot,".").toLowerCase()},rot=R3.data={},sot=R3.NATIVE="N",aot=R3.POLYFILL="P",Are=R3,Kw=Ya,lot=UO.f,cot=GO,dot=a6,uot=qO,hot=eot,fot=Are,Dre=function(e,t){var n=e.target,o=e.global,i=e.stat,r,s,a,l,d,u;if(o?s=Kw:i?s=Kw[n]||uot(n,{}):s=Kw[n]&&Kw[n].prototype,s)for(a in t){if(d=t[a],e.dontCallGetSet?(u=lot(s,a),l=u&&u.value):l=s[a],r=fot(o?a:n+(i?".":"#")+a,e.forced),!r&&l!==void 0){if(typeof d==typeof l)continue;hot(d,l)}(e.sham||l&&l.sham)&&cot(d,"sham",!0),dot(s,a,d,e)}},mot=Ire,pot=eL,xre=Object.keys||function(t){return mot(t,pot)},got=Dre,vot=mre,Ore=xre,_ot=Ll,yot=_ot(function(){Ore(1)});got({target:"Object",stat:!0,forced:yot},{keys:function(t){return Ore(vot(t))}});var bot=qy,kot=bot("toStringTag"),Lre={};Lre[kot]="z";var tL=String(Lre)==="[object z]",wot=tL,$ot=cd,d4=BO,Cot=qy,Sot=Cot("toStringTag"),Tot=Object,Eot=d4(function(){return arguments}())==="Arguments",Iot=function(e,t){try{return e[t]}catch{}},Mre=wot?d4:function(e){var t,n,o;return e===void 0?"Undefined":e===null?"Null":typeof(n=Iot(t=Tot(e),Sot))=="string"?n:Eot?d4(t):(o=d4(t))==="Object"&&$ot(t.callee)?"Arguments":o},Pot=tL,Aot=Mre,Dot=Pot?{}.toString:function(){return"[object "+Aot(this)+"]"},xot=tL,Oot=a6,Lot=Dot;xot||Oot(Object.prototype,"toString",Lot,{unsafe:!0});var Mot=ld,Not=hre,Rot=function(e,t,n){try{return Mot(Not(Object.getOwnPropertyDescriptor(e,t)[n]))}catch{}},jot=Mf,Fot=function(e){return jot(e)||e===null},zot=Fot,Uot=String,Bot=TypeError,Hot=function(e){if(zot(e))return e;throw new Bot("Can't set "+Uot(e)+" as a prototype")},Vot=Rot,qot=Mf,Yot=HO,Wot=Hot,Got=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},n;try{n=Vot(Object.prototype,"__proto__","set"),n(t,[]),e=t instanceof Array}catch{}return function(i,r){return Yot(i),Wot(r),qot(i)&&(e?n(i,r):i.__proto__=r),i}}():void 0),Zot=cd,Kot=Mf,cV=Got,Jot=function(e,t,n){var o,i;return cV&&Zot(o=t.constructor)&&o!==n&&Kot(i=o.prototype)&&i!==n.prototype&&cV(e,i),e},Nre={},Xot=ph,Qot=yre,eit=bg,tit=Yy,nit=r6,oit=xre;Nre.f=Xot&&!Qot?Object.defineProperties:function(t,n){tit(t);for(var o=nit(n),i=oit(n),r=i.length,s=0,a;r>s;)eit.f(t,a=i[s++],o[a]);return t};var iit=s6,rit=iit("document","documentElement"),sit=Yy,ait=Nre,dV=eL,lit=KO,cit=rit,dit=vre,uit=$re,uV=">",hV="<",_P="prototype",yP="script",Rre=uit("IE_PROTO"),XS=function(){},jre=function(e){return hV+yP+uV+e+hV+"/"+yP+uV},fV=function(e){e.write(jre("")),e.close();var t=e.parentWindow.Object;return e=null,t},hit=function(){var e=dit("iframe"),t="java"+yP+":",n;return e.style.display="none",cit.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(jre("document.F=Object")),n.close(),n.F},Jw,u4=function(){try{Jw=new ActiveXObject("htmlfile")}catch{}u4=typeof document<"u"?document.domain&&Jw?fV(Jw):hit():fV(Jw);for(var e=dV.length;e--;)delete u4[_P][dV[e]];return u4()};lit[Rre]=!0;var Fre=Object.create||function(t,n){var o;return t!==null?(XS[_P]=sit(t),o=new XS,XS[_P]=null,o[Rre]=t):o=u4(),n===void 0?o:ait.f(o,n)},fit=Mf,mit=BO,pit=qy,git=pit("match"),vit=function(e){var t;return fit(e)&&((t=e[git])!==void 0?!!t:mit(e)==="RegExp")},_it=Mre,yit=String,nL=function(e){if(_it(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return yit(e)},bit=Yy,zre=function(){var e=bit(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},kit=N3,wit=Nf,$it=VO,Cit=zre,mV=RegExp.prototype,Ure=function(e){var t=e.flags;return t===void 0&&!("flags"in mV)&&!wit(e,"flags")&&$it(mV,e)?kit(Cit,e):t},oL=Ll,Sit=Ya,iL=Sit.RegExp,rL=oL(function(){var e=iL("a","y");return e.lastIndex=2,e.exec("abcd")!==null}),Tit=rL||oL(function(){return!iL("a","y").sticky}),Eit=rL||oL(function(){var e=iL("^r","gy");return e.lastIndex=2,e.exec("str")!==null}),Bre={BROKEN_CARET:Eit,MISSED_STICKY:Tit,UNSUPPORTED_Y:rL},Iit=bg.f,Pit=function(e,t,n){n in e||Iit(e,n,{configurable:!0,get:function(){return t[n]},set:function(o){t[n]=o}})},pV=Tre,Ait=bg,Dit=function(e,t,n){return n.get&&pV(n.get,t,{getter:!0}),n.set&&pV(n.set,t,{setter:!0}),Ait.f(e,t,n)},xit=s6,Oit=Dit,Lit=qy,Mit=ph,gV=Lit("species"),Nit=function(e){var t=xit(e);Mit&&t&&!t[gV]&&Oit(t,gV,{configurable:!0,get:function(){return this}})},Rit=Ll,jit=Ya,Fit=jit.RegExp,Hre=Rit(function(){var e=Fit(".","s");return!(e.dotAll&&e.test(` `)&&e.flags==="s")}),zit=Ll,Uit=Ya,Bit=Uit.RegExp,Vre=zit(function(){var e=Bit("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Hit=ph,sL=Ya,j3=ld,Vit=Are,qit=Jot,Yit=GO,Wit=Fre,Git=QO.f,vV=VO,Zit=vit,_V=nL,Kit=Ure,qre=Bre,Jit=Pit,Xit=a6,Qit=Ll,ert=Nf,trt=JO.enforce,nrt=Nit,ort=qy,Yre=Hre,Wre=Vre,irt=ort("match"),Gm=sL.RegExp,Fv=Gm.prototype,rrt=sL.SyntaxError,srt=j3(Fv.exec),Y5=j3("".charAt),yV=j3("".replace),bV=j3("".indexOf),kV=j3("".slice),art=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I1=/a/g,QS=/a/g,lrt=new Gm(I1)!==I1,Gre=qre.MISSED_STICKY,crt=qre.UNSUPPORTED_Y,drt=Hit&&(!lrt||Gre||Yre||Wre||Qit(function(){return QS[irt]=!1,Gm(I1)!==I1||Gm(QS)===QS||String(Gm(I1,"i"))!=="/a/i"})),urt=function(e){for(var t=e.length,n=0,o="",i=!1,r;n<=t;n++){if(r=Y5(e,n),r==="\\"){o+=r+Y5(e,++n);continue}!i&&r==="."?o+="[\\s\\S]":(r==="["?i=!0:r==="]"&&(i=!1),o+=r)}return o},hrt=function(e){for(var t=e.length,n=0,o="",i=[],r=Wit(null),s=!1,a=!1,l=0,d="",u;n<=t;n++){if(u=Y5(e,n),u==="\\")u+=Y5(e,++n);else if(u==="]")s=!1;else if(!s)switch(!0){case u==="[":s=!0;break;case u==="(":if(o+=u,kV(e,n+1,n+3)==="?:")continue;srt(art,kV(e,n+1))&&(n+=2,a=!0),l++;continue;case(u===">"&&a):if(d===""||ert(r,d))throw new rrt("Invalid capture group name");r[d]=!0,i[i.length]=[d,l],a=!1,d="";continue}a?d+=u:o+=u}return[o,i]};if(Vit("RegExp",drt)){for(var Wp=function(t,n){var o=vV(Fv,this),i=Zit(t),r=n===void 0,s=[],a=t,l,d,u,f,p,v;if(!o&&i&&r&&t.constructor===Wp)return t;if((i||vV(Fv,t))&&(t=t.source,r&&(n=Kit(a))),t=t===void 0?"":_V(t),n=n===void 0?"":_V(n),a=t,Yre&&"dotAll"in I1&&(d=!!n&&bV(n,"s")>-1,d&&(n=yV(n,/s/g,""))),l=n,Gre&&"sticky"in I1&&(u=!!n&&bV(n,"y")>-1,u&&crt&&(n=yV(n,/y/g,""))),Wre&&(f=hrt(t),t=f[0],s=f[1]),p=qit(Gm(t,n),o?this:Fv,Wp),(d||u||s.length)&&(v=trt(p),d&&(v.dotAll=!0,v.raw=Wp(urt(t),l)),u&&(v.sticky=!0),s.length&&(v.groups=s)),t!==a)try{Yit(p,"source",a===""?"(?:)":a)}catch{}return p},wV=Git(Gm),$V=0;wV.length>$V;)Jit(Wp,Gm,wV[$V++]);Fv.constructor=Wp,Wp.prototype=Fv,Xit(sL,"RegExp",Wp,{constructor:!0})}nrt("RegExp");var Xv=N3,l6=ld,frt=nL,mrt=zre,prt=Bre,grt=WO,vrt=Fre,_rt=JO.get,yrt=Hre,brt=Vre,krt=grt("native-string-replace",String.prototype.replace),W5=RegExp.prototype.exec,bP=W5,wrt=l6("".charAt),$rt=l6("".indexOf),Crt=l6("".replace),eT=l6("".slice),kP=function(){var e=/a/,t=/b*/g;return Xv(W5,e,"a"),Xv(W5,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),Zre=prt.BROKEN_CARET,wP=/()??/.exec("")[1]!==void 0,Srt=kP||wP||Zre||yrt||brt;Srt&&(bP=function(t){var n=this,o=_rt(n),i=frt(t),r=o.raw,s,a,l,d,u,f,p;if(r)return r.lastIndex=n.lastIndex,s=Xv(bP,r,i),n.lastIndex=r.lastIndex,s;var v=o.groups,_=Zre&&n.sticky,k=Xv(mrt,n),C=n.source,$=0,E=i;if(_&&(k=Crt(k,"y",""),$rt(k,"g")===-1&&(k+="g"),E=eT(i,n.lastIndex),n.lastIndex>0&&(!n.multiline||n.multiline&&wrt(i,n.lastIndex-1)!==` `)&&(C="(?: "+C+")",E=" "+E,$++),a=new RegExp("^(?:"+C+")",k)),wP&&(a=new RegExp("^"+C+"$(?!\\s)",k)),kP&&(l=n.lastIndex),d=Xv(W5,_?a:n,E),_?d?(d.input=eT(d.input,$),d[0]=eT(d[0],$),d.index=n.lastIndex,n.lastIndex+=d[0].length):n.lastIndex=0:kP&&d&&(n.lastIndex=n.global?d.index+d[0].length:l),wP&&d&&d.length>1&&Xv(krt,d[0],a,function(){for(u=1;u<arguments.length-2;u++)arguments[u]===void 0&&(d[u]=void 0)}),d&&v)for(d.groups=f=vrt(null),u=0;u<v.length;u++)p=v[u],f[p[0]]=d[p[1]];return d});var Trt=bP,Ert=Dre,CV=Trt;Ert({target:"RegExp",proto:!0,forced:/./.exec!==CV},{exec:CV});var Irt=wre.PROPER,Prt=a6,Art=Yy,SV=nL,Drt=Ll,xrt=Ure,aL="toString",Kre=RegExp.prototype,Jre=Kre[aL],Ort=Drt(function(){return Jre.call({source:"a",flags:"b"})!=="/a/b"}),Lrt=Irt&&Jre.name!==aL;(Ort||Lrt)&&Prt(Kre,aL,function(){var t=Art(this),n=SV(t.source),o=SV(xrt(t));return"/"+n+"/"+o},{unsafe:!0});function h4(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h4=function(n){return typeof n}:h4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},h4(e)}function Mrt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TV(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Nrt(e,t,n){return t&&TV(e.prototype,t),n&&TV(e,n),e}var Xre=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.localStorage;Mrt(this,e),this.storage=window.localStorage,this.namespace="pro_",this.storage=t}return Nrt(e,[{key:"config",value:function(n){if(n===!1){this.namespace="";return}n&&(this.namespace=n)}},{key:"clearStorage",value:function(n){var o={errMsg:"clearStorage:ok"};if(n){var i=n.success,r=n.fail,s=n.complete;try{this.clearStorageSync(),i&&i(o),s&&s(o)}catch{var a={errMsg:"clearStorage:fail"};return r&&r(a),s&&s(a),Promise.reject(a)}}return Promise.resolve(o)}},{key:"clearStorageSync",value:function(){for(var n=[],o=0;o<this.storage.length;o++){var i=this.storage.key(o);if(i){var r=new RegExp("^".concat(this.namespace,".+"),"i");r.test(i)&&n.push(i)}}for(var s in n)this.storage.removeItem(n[s])}},{key:"getStorage",value:function(n){var o=n.key,i=n.success,r=n.fail,s=n.complete,a={errMsg:"getStorage:ok"},l={errMsg:"getStorage:ok",data:""},d=this.getItem(o),u=d.result,f=d.data;if(u){var p=f;l.data=p.value}else return a.errMsg="getStorage:fail data not found",r&&r(a),s&&s(a),Promise.reject(a);return i&&i(l),s&&s(l),Promise.resolve(l)}},{key:"getStorageInfo",value:function(n){var o={errMsg:"getStorageInfo:ok"};if(n){var i=n.success,r=n.complete,s=n.fail;try{var a=this.getStorageInfoSync();i&&i(a),r&&r(o)}catch{s&&s(o),r&&r(o)}}return Promise.resolve(o)}},{key:"getStorageInfoSync",value:function(){return{keys:Object.keys(this.storage),limitSize:0,currentSize:0,keysLength:this.storage.length}}},{key:"hasKey",value:function(n){var o=this.getItem(n);return o.result}},{key:"isExpire",value:function(n){var o=this.getItem(n);if(o.result){var i=o.data;return i.expire===null?!1:i.expire<new Date().getTime()}return!1}},{key:"key",value:function(n){return this.storage.key(n)}},{key:"removeStorage",value:function(n){var o=n.key,i=n.success,r=n.fail,s=n.complete,a={errMsg:"removeStorage:ok"};return this.hasKey(o)?(this.removeStorageSync(o),i&&i(a),s&&s(a),Promise.resolve(a)):(a.errMsg="key ".concat(o," not exists !"),r&&r(a),s&&s(a),Promise.reject(a))}},{key:"removeStorageSync",value:function(n){return this.storage.removeItem(this.getItemKey(n))}},{key:"setStorage",value:function(n){var o=n.key,i=n.data,r=n.success,s=n.fail,a=n.complete,l={errMsg:"setStorage:ok"};try{return this.setStorageSync(o,i),this.hasKey(o)?(r&&r(l),a&&a(l),Promise.resolve(l)):(l.errMsg="key ".concat(o," setStorage2:fail"),s&&s(l),a&&a(l),Promise.reject(l))}catch{return l.errMsg="key ".concat(o," setStorage:fail"),s&&s(l),a&&a(l),Promise.reject(l)}}},{key:"setStorageSync",value:function(n,o,i){var r={value:o,expire:i?new Date().getTime()+i:null},s=JSON.stringify(r);this.storage.setItem(this.getItemKey(n),s)}},{key:"getItemKey",value:function(n){return this.namespace+n}},{key:"getItem",value:function(n){try{var o,i=this.storage.getItem(this.getItemKey(n));if(i!==null&&(o=JSON.parse(i)),o&&h4(o)==="object"&&"expire"in o&&"value"in o)return{result:!0,data:o}}catch{return{result:!1}}return{result:!1}}},{key:"getStorageSync",value:function(n){var o=this.getItem(n);if(o.result){var i=o.data;if(!this.isExpire(n))return i.value}}}]),e}(),H0;(function(e){e.Session="session",e.Local="local",e.WebSQL="webSQL",e.IndexDB="indexDB"})(H0||(H0={}));var tT=new Xre,Rrt={install:function(t,n){var o,i={storage:(n==null?void 0:n.storage)||H0.Local,namespace:(o=n==null?void 0:n.namespace)!==null&&o!==void 0?o:"pro_"};if(typeof window>"u")throw new Error('Vue3Storage: Storage "'.concat(i.storage,'" is not supported'));var r;switch(i.storage){case H0.Local:r=window.localStorage;break;case H0.Session:r=window.sessionStorage;break;default:throw new Error('Vue3Storage: Storage "'.concat(i.storage,'" is not supported yet'))}tT=new Xre(r),tT.config(i.namespace),t.config.globalProperties.$storage=tT}};const U=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},jrt={props:{icon:{type:String,default:"box"},width:{type:[Number,String],default:16},height:{type:[Number,String],default:16},iconColor:{type:String,default:"currentColor"},size:{type:Number,default:1},spin:{type:Boolean,default:!1}}},Frt=["width","height","aria-labelledby"],zrt=["fill"],Urt=["fill"],Brt=["fill"],Hrt=["fill"],Vrt=["fill"],qrt={key:5,fill:"none"},Yrt=["stroke"],Wrt=["stroke"],Grt=["stroke"],Zrt=["stroke"],Krt=["fill"],Jrt=["fill"],Xrt=["fill"],Qrt=["fill"],est=["fill"],tst=["fill"],nst=["fill"],ost=["fill"],ist=["fill"],rst=["fill"],sst=["fill"],ast=["fill"],lst=["fill"],cst=["fill"],dst=["fill"],ust=["fill"],hst=["fill"],fst=["fill"],mst=["fill"],pst=["fill"],gst=["fill"],vst=["fill"],_st=["fill"],yst=["fill"],bst=["fill"],kst=["fill"],wst=["fill"],$st=["fill"],Cst=["fill"],Sst=["fill"],Tst=["fill"],Est=["fill"],Ist=["fill"],Pst=["fill"],Ast=["fill"],Dst=["fill"],xst=["fill"],Ost=["fill"],Lst=["fill"],Mst=["fill"],Nst=["fill"],Rst=["fill"],jst=["fill"],Fst=["fill"],zst=["fill"],Ust=["fill"],Bst=["fill"],Hst=["fill"],Vst=["fill"],qst=["fill"],Yst=["fill"],Wst=["fill"],Gst=["fill"],Zst=["fill"],Kst=["fill"],Jst=["fill"],Xst=["fill"],Qst=["fill"],eat=["fill"],tat=["fill"],nat=["fill"],oat=["fill"],iat=["fill"],rat=["fill"],sat=["fill"],aat=["fill"],lat=["fill"],cat=["fill"],dat=["fill"],uat=["fill"],hat=["fill"],fat=["fill"],mat=["fill"],pat=["fill"],gat={key:78,fill:"none"},vat={key:79,fill:"none"},_at=["stroke"],yat={key:80,fill:"none"},bat=["fill"],kat={key:82,fill:"none"},wat=["fill"],$at=["fill"],Cat=["fill"],Sat=["fill"],Tat=["fill"],Eat=["fill"],Iat=["fill"],Pat=["fill"],Aat=["fill"],Dat=["fill"],xat=["fill"],Oat={key:94,fill:"none"},Lat={key:95,fill:"none"},Mat=["stroke"],Nat=["fill"],Rat=["fill"],jat=["fill"],Fat=["fill"];function zat(e,t,n,o,i,r){return h(),g("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.width*n.size,height:n.height*n.size,viewBox:"0 0 24 24","aria-labelledby":n.icon,role:"img",class:J({spin:n.spin})},[n.icon==="history"?(h(),g("g",{key:0,fill:n.iconColor},t[0]||(t[0]=[c("path",{"fill-rule":"evenodd",d:"M4.92895 4.92893C8.83419 1.02369 15.1659 1.02369 19.0711 4.92894C22.9763 8.83418 22.9763 15.1658 19.0711 19.0711C15.1659 22.9763 8.83419 22.9763 4.92895 19.0711C4.53843 18.6805 4.53843 18.0474 4.92895 17.6569C5.31948 17.2663 5.95264 17.2663 6.34317 17.6569C9.46735 20.781 14.5327 20.781 17.6569 17.6569C20.7811 14.5327 20.7811 9.46734 17.6569 6.34314C14.5327 3.21895 9.46735 3.21895 6.34317 6.34315C4.77987 7.90644 3.99901 9.9537 4.00002 12.004L4 14C3.99999 14.5523 3.55227 15 2.99999 15C2.44771 15 1.99999 14.5522 2 13.9999L2.00002 12.0047C1.99889 9.44553 2.9754 6.88249 4.92895 4.92893Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M0.292893 11.2929C0.683417 10.9023 1.31658 10.9023 1.70711 11.2929L3 12.5857L4.29289 11.2929C4.68342 10.9023 5.31658 10.9023 5.70711 11.2929C6.09763 11.6834 6.09763 12.3165 5.70711 12.7071L3.70711 14.7071C3.31658 15.0976 2.68342 15.0976 2.29289 14.7071L0.292893 12.7071C-0.0976311 12.3165 -0.0976311 11.6834 0.292893 11.2929Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M11 7C11.5523 7 12 7.44772 12 8V12H16C16.5523 12 17 12.4477 17 13C17 13.5522 16.5523 14 16 14H11C10.4477 14 10 13.5522 10 13V8C10 7.44772 10.4477 7 11 7Z"},null,-1)]),8,zrt)):D("",!0),n.icon==="back-up-arrow"?(h(),g("g",{key:1,fill:n.iconColor},t[1]||(t[1]=[c("path",{d:"M6.69727 6.19629V5.19629H5.69727V6.19629H6.69727ZM16.5968 17.51C16.9873 17.9005 17.6205 17.9005 18.011 17.51C18.4015 17.1195 18.4015 16.4863 18.011 16.0958L16.5968 17.51ZM7.69727 14.6816V6.19629H5.69727V14.6816H7.69727ZM6.69727 7.19629H15.1825V5.19629H6.69727V7.19629ZM5.99016 6.9034L16.5968 17.51L18.011 16.0958L7.40437 5.48918L5.99016 6.9034Z"},null,-1)]),8,Urt)):D("",!0),n.icon==="basket"?(h(),g("g",{key:2,fill:n.iconColor},t[2]||(t[2]=[c("path",{"fill-rule":"evenodd",d:"M10 2C10.5523 2 11 2.44771 11 3L11 5C11 5.55228 10.5523 6 10 6C9.44772 6 9 5.55228 9 5L9 3C9 2.44772 9.44771 2 10 2ZM14 2C14.5523 2 15 2.44772 15 3V5C15 5.55228 14.5523 6 14 6C13.4477 6 13 5.55228 13 5V3C13 2.44772 13.4477 2 14 2ZM3.38666 10.0326C3.07034 10.0011 2.65335 10 2 10V8L2.04602 8C2.07634 8 2.10646 8 2.13638 8H21.8636C21.8935 8 21.9237 8 21.954 8L22 8V10C21.3467 10 20.9297 10.0011 20.6133 10.0326C20.3159 10.0621 20.2049 10.1113 20.1426 10.1498C20.0626 10.1994 19.99 10.26 19.9269 10.3299C19.8778 10.3843 19.8096 10.4847 19.7273 10.772C19.6398 11.0776 19.5641 11.4877 19.4472 12.1305L18.5706 16.9519C18.4368 17.6879 18.3204 18.3285 18.1608 18.8387C17.9888 19.3886 17.7343 19.9016 17.2531 20.3033C16.7719 20.7049 16.2216 20.8635 15.6498 20.9343C15.1193 21.0001 14.4681 21 13.7201 21H10.2799C9.53186 21 8.88072 21.0001 8.3502 20.9343C7.77839 20.8635 7.22814 20.7049 6.74691 20.3033C6.26568 19.9016 6.01119 19.3886 5.83919 18.8387C5.67961 18.3285 5.56317 17.6879 5.4294 16.9519L4.55279 12.1305C4.43591 11.4877 4.36019 11.0776 4.27269 10.772C4.19042 10.4847 4.12221 10.3843 4.0731 10.3299C4.01003 10.26 3.9374 10.1994 3.85738 10.1498C3.79507 10.1113 3.68409 10.0621 3.38666 10.0326ZM17.8735 10H6.12652C6.15131 10.0732 6.17413 10.1471 6.19544 10.2215C6.31355 10.634 6.40606 11.143 6.51229 11.7274L7.3867 16.5367C7.534 17.3468 7.62982 17.8638 7.748 18.2417C7.8579 18.5931 7.95306 18.7049 8.02841 18.7678C8.10375 18.8306 8.23079 18.9043 8.59614 18.9495C8.98903 18.9982 9.51484 19 10.3383 19H13.6617C14.4852 19 15.011 18.9982 15.4039 18.9495C15.7692 18.9043 15.8963 18.8306 15.9716 18.7678C16.0469 18.7049 16.1421 18.5931 16.252 18.2417C16.3702 17.8638 16.466 17.3468 16.6133 16.5367L17.4877 11.7274C17.5939 11.143 17.6865 10.634 17.8046 10.2215C17.8259 10.1471 17.8487 10.0732 17.8735 10ZM9.3356 12.0136C9.88037 11.9228 10.3956 12.2908 10.4864 12.8356L10.9864 15.8356C11.0772 16.3804 10.7092 16.8956 10.1644 16.9864C9.61963 17.0772 9.1044 16.7092 9.01361 16.1644L8.51361 13.1644C8.42281 12.6196 8.79083 12.1044 9.3356 12.0136ZM14.6643 12.0136C15.2091 12.1044 15.5771 12.6196 15.4863 13.1644L14.9863 16.1644C14.8955 16.7092 14.3803 17.0772 13.8355 16.9864C13.2907 16.8956 12.9227 16.3804 13.0135 15.8356L13.5135 12.8356C13.6043 12.2908 14.1195 11.9228 14.6643 12.0136Z"},null,-1)]),8,Brt)):D("",!0),n.icon==="chat"?(h(),g("g",{key:3,fill:n.iconColor},t[3]||(t[3]=[c("path",{"fill-rule":"evenodd",d:"M3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12V17.1199C21 17.5185 21 17.8624 20.9823 18.1476C20.9637 18.4476 20.9228 18.7483 20.8108 19.0484C20.5068 19.8637 19.8637 20.5068 19.0484 20.8108C18.7483 20.9228 18.4476 20.9637 18.1476 20.9823C17.8624 21 17.5185 21 17.1199 21H12C7.02944 21 3 16.9706 3 12ZM12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19H17.0909C17.5266 19 17.8079 18.9996 18.0237 18.9862C18.2315 18.9733 18.3115 18.9511 18.3495 18.9369C18.6212 18.8356 18.8356 18.6212 18.9369 18.3495C18.9511 18.3115 18.9733 18.2315 18.9862 18.0237C18.9996 17.8079 19 17.5266 19 17.0909V12C19 8.13401 15.866 5 12 5Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M8 11C8 10.4477 8.44772 10 9 10H15C15.5523 10 16 10.4477 16 11C16 11.5523 15.5523 12 15 12H9C8.44772 12 8 11.5523 8 11Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M11 15C11 14.4477 11.4477 14 12 14H15C15.5523 14 16 14.4477 16 15C16 15.5523 15.5523 16 15 16H12C11.4477 16 11 15.5523 11 15Z"},null,-1)]),8,Hrt)):D("",!0),n.icon==="cog"?(h(),g("g",{key:4,fill:n.iconColor},t[4]||(t[4]=[c("path",{"fill-rule":"evenodd",d:"M11.283 1.92621e-06H12.7169C12.9306 -2.04418e-05 13.1409 -4.24195e-05 13.321 0.0119806C13.5196 0.0252465 13.7527 0.0563326 13.9968 0.152835C14.4877 0.346948 14.8917 0.712493 15.1337 1.1817C15.254 1.41496 15.3081 1.64382 15.3411 1.84015C15.3709 2.01808 15.3918 2.22735 15.4131 2.44006L15.4158 2.46757C15.4624 2.93362 15.4918 3.21867 15.5282 3.42104C15.5309 3.4363 15.5336 3.45026 15.5361 3.46299C15.5469 3.45579 15.5587 3.44781 15.5714 3.43896C15.7403 3.32161 15.9626 3.14078 16.3251 2.84419L16.3464 2.8267C16.5119 2.69131 16.6746 2.55812 16.8216 2.45343C16.9837 2.33791 17.1838 2.21436 17.4338 2.13449C17.9367 1.97383 18.4808 2.00096 18.9652 2.21087C19.2061 2.31522 19.3929 2.45807 19.5427 2.58914C19.6785 2.70795 19.8272 2.8567 19.9784 3.00789L19.9979 3.02738L20.9922 4.02165C21.1433 4.17278 21.292 4.32146 21.4108 4.45725C21.5419 4.60709 21.6847 4.7939 21.7891 5.03473C21.999 5.51915 22.0261 6.06324 21.8655 6.56612C21.7856 6.81615 21.6621 7.01625 21.5465 7.17839C21.4418 7.32535 21.3086 7.48812 21.1732 7.65357L21.1558 7.67492C20.8592 8.03743 20.6783 8.25972 20.561 8.42857C20.5521 8.4413 20.5441 8.45305 20.5369 8.46386C20.5497 8.46641 20.5636 8.46908 20.5789 8.47182C20.7813 8.50824 21.0663 8.53756 21.5324 8.58416L21.5599 8.58692C21.7727 8.60817 21.9819 8.62907 22.1599 8.65895C22.3562 8.69191 22.5851 8.74604 22.8183 8.86636C23.2875 9.10836 23.653 9.51226 23.8472 10.0032C23.9437 10.2473 23.9748 10.4804 23.988 10.679C24 10.8591 24 11.0694 24 11.2832V12.717C24 12.9307 24 13.1409 23.988 13.3209C23.9748 13.5195 23.9437 13.7526 23.8472 13.9966C23.6531 14.4877 23.2875 14.8917 22.8181 15.1337C22.5849 15.254 22.3561 15.3081 22.1598 15.3411C21.9819 15.3709 21.7726 15.3918 21.5599 15.4131L21.5325 15.4158C21.0666 15.4624 20.7816 15.4917 20.5793 15.5281C20.564 15.5309 20.5501 15.5335 20.5373 15.5361C20.5445 15.5469 20.5525 15.5586 20.5614 15.5714C20.6787 15.7402 20.8594 15.9624 21.1559 16.3247L21.1735 16.3462C21.3088 16.5115 21.4419 16.6742 21.5466 16.8211C21.662 16.9832 21.7856 17.1832 21.8654 17.4331C22.0262 17.9362 21.9991 18.4805 21.789 18.9651C21.6847 19.2058 21.5419 19.3925 21.4108 19.5423C21.2921 19.678 21.1434 19.8267 20.9923 19.9777L19.9785 20.9916C19.8273 21.1428 19.6786 21.2916 19.5428 21.4104C19.3929 21.5414 19.2061 21.6843 18.9653 21.7886C18.4809 21.9986 17.9368 22.0257 17.4339 21.865C17.1839 21.7852 16.9838 21.6616 16.8216 21.5461C16.6747 21.4414 16.5119 21.3082 16.3465 21.1728L16.3297 21.1591L16.325 21.1554C15.9625 20.8588 15.7403 20.6779 15.5715 20.5606C15.5587 20.5517 15.547 20.5437 15.5362 20.5365C15.5336 20.5493 15.531 20.5632 15.5282 20.5785C15.4918 20.7809 15.4625 21.066 15.4159 21.5322L15.4131 21.5596C15.3919 21.7725 15.3709 21.9818 15.341 22.1599C15.3081 22.3562 15.2539 22.5852 15.1335 22.8185C14.8916 23.2875 14.4878 23.653 13.997 23.8471C13.7529 23.9436 13.5197 23.9747 13.321 23.988C13.1409 24 12.9305 24 12.7167 24H11.2832C11.0694 24 10.8591 24 10.679 23.988C10.4804 23.9748 10.2473 23.9437 10.0032 23.8472C9.51227 23.653 9.10836 23.2875 8.86636 22.8183C8.74604 22.5851 8.69191 22.3562 8.65895 22.1599C8.62907 21.9819 8.60817 21.7727 8.58692 21.56L8.58417 21.5324C8.53756 21.0663 8.50824 20.7813 8.47182 20.5789C8.46908 20.5636 8.46641 20.5497 8.46386 20.537C8.45305 20.5442 8.4413 20.5521 8.42857 20.561C8.26009 20.6781 8.03841 20.8584 7.67733 21.1538C7.67652 21.1545 7.6757 21.1551 7.67489 21.1558L7.65349 21.1733C7.48805 21.3087 7.32528 21.4419 7.17833 21.5466C7.01618 21.6621 6.81607 21.7857 6.56605 21.8655C6.06318 22.0262 5.51911 21.999 5.03471 21.7892C4.79387 21.6848 4.60705 21.542 4.4572 21.4109C4.32142 21.2921 4.17275 21.1434 4.02162 20.9922L3.02734 19.998L3.00777 19.9784C2.8566 19.8272 2.70788 19.6786 2.58909 19.5428C2.45801 19.3929 2.31516 19.2061 2.21081 18.9653C2.00092 18.4809 1.97378 17.9368 2.13443 17.4339C2.2143 17.1839 2.33786 16.9838 2.45338 16.8216C2.55808 16.6747 2.69128 16.5119 2.82668 16.3464L2.84416 16.3251C3.14076 15.9626 3.3216 15.7403 3.43895 15.5714C3.4478 15.5587 3.45578 15.5469 3.46298 15.5361C3.45025 15.5336 3.43629 15.5309 3.42103 15.5282C3.21866 15.4918 2.93362 15.4624 2.46756 15.4158L2.44005 15.4131C2.22734 15.3918 2.01808 15.3709 1.84015 15.3411C1.64382 15.3081 1.41497 15.254 1.1817 15.1337C0.712492 14.8917 0.346946 14.4877 0.152834 13.9968C0.0563323 13.7527 0.0252463 13.5196 0.0119804 13.321C-4.24195e-05 13.1409 -2.04421e-05 12.9306 1.92588e-06 12.7169V11.2833C-2.04421e-05 11.0694 -4.25496e-05 10.8591 0.0119867 10.679C0.0252597 10.4803 0.0563623 10.2472 0.152914 10.003C0.34702 9.51223 0.712456 9.10843 1.18151 8.86645C1.41482 8.74608 1.64374 8.69193 1.84011 8.65895C2.0181 8.62907 2.22742 8.60816 2.44018 8.5869L2.4677 8.58415C2.46803 8.58412 2.46737 8.58419 2.4677 8.58415C2.93329 8.53759 3.21915 8.50819 3.42142 8.47178C3.43668 8.46904 3.45064 8.46637 3.46338 8.46382C3.45617 8.45301 3.44818 8.44125 3.43933 8.42851C3.32194 8.2596 3.14105 8.03724 2.84435 7.67461L2.82684 7.65321C2.6914 7.4877 2.55814 7.32487 2.45341 7.17786C2.33785 7.01566 2.21425 6.81547 2.13439 6.56534C1.97387 6.06262 2.001 5.51877 2.21074 5.03453C2.31509 4.79359 2.45799 4.6067 2.58911 4.4568C2.70795 4.32094 2.85673 4.17219 3.00797 4.02099C3.01448 4.01448 3.021 4.00796 3.02752 4.00144L4.00205 3.02691C4.00857 3.02039 4.01509 3.01386 4.02161 3.00735C4.17275 2.85617 4.32145 2.70744 4.45726 2.58864C4.6071 2.45756 4.79392 2.31471 5.03476 2.21035C5.51916 2.00047 6.06322 1.97334 6.5661 2.13398C6.81614 2.21385 7.01627 2.33743 7.17841 2.45295C7.32537 2.55766 7.48815 2.69087 7.65363 2.82628L7.67502 2.84379C8.03748 3.14035 8.25976 3.32117 8.4286 3.43852C8.44134 3.44738 8.45311 3.45538 8.46392 3.46258C8.46647 3.44985 8.46914 3.43589 8.47188 3.42064C8.50828 3.21832 8.53759 2.93335 8.58418 2.46742L8.58693 2.43995C8.60817 2.22729 8.62907 2.01808 8.65894 1.84018C8.69189 1.64391 8.74599 1.41512 8.86624 1.1819C9.10827 0.712535 9.51232 0.34687 10.0034 0.152751C10.2475 0.0563012 10.4805 0.0252326 10.6791 0.0119739C10.8591 -4.24195e-05 11.0693 -2.04418e-05 11.283 1.92621e-06ZM17.7067 19.4667L17.7021 19.4629L17.6756 19.4413C17.3541 19.1781 17.0646 18.9413 16.8166 18.7689C16.5693 18.5971 16.2293 18.3902 15.8103 18.3338C15.0335 18.2293 14.2602 18.5496 13.7848 19.1728C13.5283 19.509 13.4342 19.8958 13.3809 20.1921C13.3274 20.4894 13.2902 20.8617 13.2489 21.2753L13.2449 21.3151C13.2198 21.5661 13.2057 21.7014 13.1894 21.7985C13.1887 21.8027 13.188 21.8065 13.1873 21.8102C13.1836 21.8105 13.1797 21.8108 13.1756 21.811C13.0773 21.8176 12.9413 21.8182 12.6891 21.8182H11.3108C11.0586 21.8182 10.9227 21.8176 10.8244 21.8111C10.8203 21.8108 10.8163 21.8105 10.8127 21.8102C10.812 21.8066 10.8113 21.8027 10.8106 21.7986C10.7943 21.7014 10.7803 21.5663 10.7552 21.3153L10.7512 21.2755C10.7098 20.8619 10.6726 20.4898 10.6191 20.1925C10.5658 19.8961 10.4717 19.5094 10.2152 19.1732C9.73981 18.55 8.96661 18.2298 8.18976 18.3342C7.77075 18.3906 7.43071 18.5975 7.18343 18.7694C6.93539 18.9417 6.64591 19.1786 6.32429 19.4418L6.29328 19.4672C6.28942 19.4703 6.28558 19.4735 6.28179 19.4766C6.09389 19.6303 5.99095 19.7136 5.91233 19.7696C5.90893 19.7721 5.9057 19.7743 5.90267 19.7765C5.89986 19.774 5.89688 19.7715 5.89374 19.7687C5.81961 19.7039 5.72313 19.6082 5.54478 19.4298L4.57012 18.4552C4.39177 18.2768 4.2961 18.1804 4.23125 18.1062C4.2285 18.1031 4.22592 18.1001 4.22351 18.0973C4.22563 18.0943 4.2279 18.091 4.23032 18.0876C4.28747 18.0074 4.37308 17.9019 4.5328 17.7067L4.55817 17.6757C4.82133 17.3541 5.0582 17.0646 5.23058 16.8166C5.40243 16.5693 5.60933 16.2293 5.66569 15.8103C5.77019 15.0334 5.44991 14.2602 4.82667 13.7847C4.49055 13.5283 4.10382 13.4342 3.80746 13.3808C3.51018 13.3273 3.13799 13.2901 2.72448 13.2488L2.68466 13.2448C2.4337 13.2197 2.29856 13.2057 2.20144 13.1894C2.19732 13.1887 2.19344 13.188 2.18979 13.1873C2.18951 13.1837 2.18923 13.1797 2.18895 13.1756C2.18239 13.0773 2.18182 12.9414 2.18182 12.6892V11.3109C2.18182 11.0586 2.18239 10.9227 2.18895 10.8244C2.18923 10.8203 2.18951 10.8164 2.18979 10.8127C2.19344 10.812 2.19732 10.8113 2.20144 10.8106C2.2985 10.7943 2.4335 10.7803 2.68409 10.7552C2.68385 10.7552 2.68432 10.7552 2.68409 10.7552L2.72461 10.7512C3.13824 10.7098 3.51053 10.6726 3.80789 10.6191C4.10434 10.5657 4.49116 10.4716 4.82734 10.215C5.45032 9.73964 5.7705 8.96666 5.66614 8.18999C5.60982 7.77087 5.40287 7.43074 5.23098 7.18339C5.05856 6.93529 4.82161 6.64573 4.55836 6.32401L4.53299 6.293C4.3732 6.09771 4.28756 5.99214 4.23039 5.91189C4.22796 5.90849 4.22569 5.90527 4.22357 5.90223C4.22598 5.89941 4.22856 5.89644 4.23131 5.8933C4.29618 5.81914 4.39189 5.72263 4.5703 5.54422L5.54483 4.56968C5.72318 4.39133 5.81966 4.29565 5.89379 4.23081C5.89693 4.22806 5.89991 4.22548 5.90272 4.22306C5.90576 4.22519 5.90899 4.22746 5.91239 4.22989C5.99263 4.28706 6.09817 4.37268 6.29341 4.53242L6.32439 4.55777C6.64597 4.82092 6.93541 5.05775 7.18339 5.23011C7.4306 5.40193 7.77054 5.60881 8.18943 5.66522C8.96653 5.76988 9.74003 5.44949 10.2155 4.82599C10.4718 4.48992 10.5659 4.1033 10.6192 3.80701C10.6727 3.50982 10.7099 3.13775 10.7512 2.72436L10.7552 2.68452C10.7803 2.43363 10.7943 2.29853 10.8106 2.20143C10.8113 2.19731 10.812 2.19343 10.8126 2.18978C10.8163 2.1895 10.8203 2.18922 10.8244 2.18894C10.9227 2.18239 11.0585 2.18182 11.3107 2.18182H12.6892C12.9414 2.18182 13.0773 2.18239 13.1756 2.18895C13.1797 2.18923 13.1837 2.18951 13.1873 2.18979C13.188 2.19344 13.1887 2.19732 13.1894 2.20144C13.2057 2.29856 13.2197 2.4337 13.2448 2.68467L13.2488 2.72449C13.2902 3.138 13.3273 3.51018 13.3808 3.80746C13.4342 4.10383 13.5283 4.49055 13.7847 4.82667C14.2602 5.44992 15.0334 5.77021 15.8103 5.66569C16.2293 5.60933 16.5693 5.40244 16.8166 5.23059C17.0646 5.05821 17.3541 4.82134 17.6757 4.55817L17.7067 4.53283C17.9019 4.37312 18.0074 4.28752 18.0876 4.23037C18.091 4.22795 18.0942 4.22568 18.0972 4.22356C18.1001 4.22597 18.103 4.22855 18.1062 4.2313C18.1803 4.29614 18.2768 4.39181 18.4551 4.57015L19.4298 5.54485C19.6081 5.72319 19.7038 5.81966 19.7687 5.89379C19.7714 5.89693 19.774 5.89991 19.7764 5.90272C19.7743 5.90575 19.772 5.90898 19.7696 5.91238C19.7124 5.99259 19.6268 6.0981 19.4671 6.29331L19.4418 6.32429C19.1786 6.64591 18.9417 6.93539 18.7693 7.18343C18.5975 7.43071 18.3906 7.77073 18.3342 8.18972C18.2297 8.96659 18.55 9.73981 19.1732 10.2153C19.5094 10.4717 19.8961 10.5658 20.1925 10.6191C20.4898 10.6726 20.862 10.7098 21.2755 10.7512L21.3153 10.7552C21.5663 10.7803 21.7014 10.7943 21.7986 10.8106C21.8027 10.8113 21.8066 10.812 21.8102 10.8127C21.8105 10.8163 21.8108 10.8203 21.8111 10.8244C21.8176 10.9227 21.8182 11.0586 21.8182 11.3108V12.6893C21.8182 12.9415 21.8176 13.0773 21.8111 13.1756C21.8108 13.1797 21.8105 13.1837 21.8102 13.1873C21.8066 13.188 21.8027 13.1887 21.7986 13.1894C21.7014 13.2057 21.5663 13.2197 21.3154 13.2448L21.2756 13.2488C20.8622 13.2901 20.4901 13.3273 20.1929 13.3808C19.8967 13.4341 19.5101 13.5282 19.174 13.7844C18.5504 14.2599 18.23 15.0335 18.3347 15.8107C18.3911 16.2295 18.598 16.5694 18.7698 16.8166C18.9421 17.0645 19.1789 17.3539 19.442 17.6754L19.4673 17.7064C19.627 17.9015 19.7125 18.007 19.7696 18.0871C19.7721 18.0905 19.7743 18.0938 19.7765 18.0968C19.774 18.0996 19.7715 18.1026 19.7687 18.1057C19.7039 18.1798 19.6083 18.2763 19.43 18.4545L18.4552 19.4294C18.2768 19.6077 18.1803 19.7034 18.1062 19.7682C18.1031 19.771 18.1001 19.7735 18.0973 19.776C18.0943 19.7738 18.091 19.7716 18.0876 19.7691C18.0074 19.712 17.9019 19.6264 17.7067 19.4667ZM12 8.72727C10.1925 8.72727 8.72727 10.1925 8.72727 12C8.72727 13.8075 10.1925 15.2727 12 15.2727C13.8075 15.2727 15.2727 13.8075 15.2727 12C15.2727 10.1925 13.8075 8.72727 12 8.72727ZM6.54546 12C6.54546 8.98754 8.98754 6.54546 12 6.54546C15.0125 6.54546 17.4545 8.98754 17.4545 12C17.4545 15.0125 15.0125 17.4545 12 17.4545C8.98754 17.4545 6.54546 15.0125 6.54546 12ZM3.50376 8.48055L3.94377 9.05717Z"},null,-1)]),8,Vrt)):D("",!0),n.icon==="dashboard"?(h(),g("g",qrt,[c("rect",{x:"4",y:"4",width:"6",height:"6",rx:"1",stroke:n.iconColor,"stroke-width":"2","stroke-linejoin":"round"},null,8,Yrt),c("rect",{x:"4",y:"14",width:"6",height:"6",rx:"1",stroke:n.iconColor,"stroke-width":"2","stroke-linejoin":"round"},null,8,Wrt),c("rect",{x:"14",y:"14",width:"6",height:"6",rx:"1",stroke:n.iconColor,"stroke-width":"2","stroke-linejoin":"round"},null,8,Grt),c("rect",{x:"14",y:"4",width:"6",height:"6",rx:"1",stroke:n.iconColor,"stroke-width":"2","stroke-linejoin":"round"},null,8,Zrt)])):D("",!0),n.icon==="connected"?(h(),g("g",{key:6,fill:n.iconColor},t[5]||(t[5]=[c("path",{d:"M10.8619 8.0288C10.7369 7.76774 10.667 7.47535 10.667 7.16663C10.667 6.06206 11.5624 5.16663 12.667 5.16663C13.7716 5.16663 14.667 6.06206 14.667 7.16663C14.667 8.2712 13.7716 9.16663 12.667 9.16663C12.3582 9.16663 12.0657 9.09664 11.8046 8.97166L11.4483 9.32795C11.1294 9.64694 10.8543 9.92202 10.6067 10.123C10.3439 10.3362 10.0551 10.5148 9.69648 10.581C9.45666 10.6252 9.21076 10.6252 8.97094 10.581C8.61234 10.5148 8.32347 10.3362 8.06073 10.123C7.8131 9.92202 7.53805 9.64694 7.21909 9.32795L7.19564 9.3045C6.84656 8.95542 6.62049 8.73054 6.43321 8.57857C6.25499 8.43395 6.17047 8.4055 6.1213 8.39644C6.04136 8.38169 5.95939 8.38169 5.87945 8.39644C5.83028 8.4055 5.74577 8.43395 5.56754 8.57857C5.38026 8.73054 5.15419 8.95542 4.80511 9.3045L4.47203 9.63758C4.59701 9.8987 4.66699 10.1912 4.66699 10.5C4.66699 11.6045 3.77156 12.5 2.66699 12.5C1.56242 12.5 0.666992 11.6045 0.666992 10.5C0.666992 9.39539 1.56242 8.49996 2.66699 8.49996C2.97572 8.49996 3.2681 8.56991 3.52917 8.69483L3.88576 8.33823C4.20472 8.01924 4.47977 7.74417 4.7274 7.54323C4.99014 7.33003 5.27901 7.15136 5.63761 7.08522C5.87743 7.04098 6.12332 7.04098 6.36315 7.08522C6.72174 7.15136 7.01062 7.33003 7.27335 7.54323C7.52098 7.74416 7.79602 8.01923 8.11498 8.33822L8.13845 8.36169C8.48752 8.71076 8.71359 8.93564 8.90088 9.08761C9.0791 9.23223 9.16362 9.26068 9.21279 9.26975C9.29273 9.28449 9.37469 9.28449 9.45463 9.26975C9.5038 9.26068 9.58832 9.23223 9.76654 9.08761C9.95383 8.93564 10.1799 8.71076 10.529 8.36169L10.8619 8.0288Z"},null,-1)]),8,Krt)):D("",!0),n.icon==="document"?(h(),g("g",{key:7,fill:n.iconColor},t[6]||(t[6]=[c("path",{"fill-rule":"evenodd",d:"M13.5786 4.00664C13.5 4.00067 13.3906 4.00001 13.1716 4.00001H9C8.02893 4.00001 7.40122 4.00213 6.93871 4.06431C6.50497 4.12263 6.36902 4.21678 6.2929 4.2929C6.21677 4.36902 6.12263 4.50497 6.06431 4.93871C6.00213 5.40122 6 6.02893 6 7.00001V17C6 17.9711 6.00213 18.5988 6.06431 19.0613C6.12263 19.495 6.21677 19.631 6.2929 19.7071C6.36902 19.7832 6.50497 19.8774 6.93871 19.9357C7.40121 19.9979 8.02893 20 9 20H15C15.9711 20 16.5988 19.9979 17.0613 19.9357C17.495 19.8774 17.631 19.7832 17.7071 19.7071C17.7832 19.631 17.8774 19.495 17.9357 19.0613C17.9979 18.5988 18 17.9711 18 17V8.82843C18 8.60941 17.9993 8.50004 17.9934 8.42142L17.993 8.41711L17.9902 8.41382C17.9389 8.354 17.862 8.2762 17.7071 8.12133L13.8787 4.2929C13.7238 4.13803 13.646 4.06116 13.5862 4.00979L13.5829 4.00698L13.5786 4.00664ZM13.2564 1.99975C13.5728 1.99836 13.9753 1.99658 14.3512 2.15225C14.727 2.30792 15.0104 2.59382 15.2331 2.81855C15.2535 2.83916 15.2735 2.85925 15.2929 2.87869L19.1213 6.70711C19.1408 6.72654 19.1608 6.74646 19.1815 6.76689C19.4062 6.98964 19.6921 7.27304 19.8478 7.64885C20.0034 8.02467 20.0017 8.42723 20.0003 8.74365C20.0001 8.77267 20 8.80096 20 8.82843L20 17.0658C20.0001 17.9523 20.0001 18.7161 19.9179 19.3278C19.8297 19.9833 19.631 20.6117 19.1213 21.1213C18.6117 21.631 17.9833 21.8297 17.3278 21.9179C16.7161 22.0001 15.9523 22.0001 15.0658 22H8.9342C8.0477 22.0001 7.28388 22.0001 6.67221 21.9179C6.0167 21.8297 5.38835 21.631 4.87868 21.1213C4.36902 20.6117 4.17028 19.9833 4.08215 19.3278C3.99991 18.7161 3.99995 17.9523 4 17.0658L4 7.00001C4 6.97799 4 6.95605 4 6.93418C3.99995 6.04769 3.99991 5.28388 4.08215 4.67222C4.17028 4.0167 4.36902 3.38835 4.87868 2.87869C5.38835 2.36902 6.0167 2.17028 6.67221 2.08215C7.28387 1.99991 8.04769 1.99996 8.93417 2C8.95604 2.00001 8.97799 2.00001 9 2.00001H13.1716C13.1991 2.00001 13.2273 1.99988 13.2564 1.99975Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M8 13C8 12.4477 8.44772 12 9 12H15C15.5523 12 16 12.4477 16 13C16 13.5523 15.5523 14 15 14H9C8.44772 14 8 13.5523 8 13Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M8 17C8 16.4477 8.44772 16 9 16H13C13.5523 16 14 16.4477 14 17C14 17.5523 13.5523 18 13 18H9C8.44772 18 8 17.5523 8 17Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M12 7.00001V3.00001H14V7.00001C14 7.49968 14.0021 7.77384 14.0277 7.96403C14.028 7.96651 14.0284 7.96894 14.0287 7.97131C14.0311 7.97165 14.0335 7.97198 14.036 7.97231C14.2262 7.99788 14.5003 8.00001 15 8.00001H19V10H15C14.9818 10 14.9637 10 14.9456 10C14.5215 10.0001 14.1094 10.0002 13.7695 9.95448C13.3863 9.90296 12.949 9.77744 12.5858 9.41422C12.2226 9.05101 12.0971 8.61373 12.0455 8.23053C11.9998 7.89061 11.9999 7.47848 12 7.05442C12 7.0363 12 7.01816 12 7.00001Z"},null,-1)]),8,Jrt)):D("",!0),n.icon==="file"?(h(),g("g",{key:8,fill:n.iconColor},t[7]||(t[7]=[c("path",{"clip-rule":"evenodd",d:"M13.5786 4.00664C13.5 4.00067 13.3906 4.00001 13.1716 4.00001H9C8.02893 4.00001 7.40122 4.00213 6.93871 4.06431C6.50497 4.12263 6.36902 4.21678 6.2929 4.2929C6.21677 4.36902 6.12263 4.50497 6.06431 4.93871C6.00213 5.40122 6 6.02893 6 7.00001V17C6 17.9711 6.00213 18.5988 6.06431 19.0613C6.12263 19.495 6.21677 19.631 6.2929 19.7071C6.36902 19.7832 6.50497 19.8774 6.93871 19.9357C7.40121 19.9979 8.02893 20 9 20H15C15.9711 20 16.5988 19.9979 17.0613 19.9357C17.495 19.8774 17.631 19.7832 17.7071 19.7071C17.7832 19.631 17.8774 19.495 17.9357 19.0613C17.9979 18.5988 18 17.9711 18 17V8.82843C18 8.60941 17.9993 8.50004 17.9934 8.42142L17.993 8.41711L17.9902 8.41382C17.9389 8.354 17.862 8.2762 17.7071 8.12133L13.8787 4.2929C13.7238 4.13803 13.646 4.06116 13.5862 4.00979L13.5829 4.00698L13.5786 4.00664ZM13.2564 1.99975C13.5728 1.99836 13.9753 1.99658 14.3512 2.15225C14.727 2.30792 15.0104 2.59382 15.2331 2.81855C15.2535 2.83916 15.2735 2.85925 15.2929 2.87869L19.1213 6.70711C19.1408 6.72654 19.1608 6.74646 19.1815 6.76689C19.4062 6.98964 19.6921 7.27304 19.8478 7.64885C20.0034 8.02467 20.0017 8.42723 20.0003 8.74365C20.0001 8.77267 20 8.80096 20 8.82843L20 17.0658C20.0001 17.9523 20.0001 18.7161 19.9179 19.3278C19.8297 19.9833 19.631 20.6117 19.1213 21.1213C18.6117 21.631 17.9833 21.8297 17.3278 21.9179C16.7161 22.0001 15.9523 22.0001 15.0658 22H8.9342C8.0477 22.0001 7.28388 22.0001 6.67221 21.9179C6.0167 21.8297 5.38835 21.631 4.87868 21.1213C4.36902 20.6117 4.17028 19.9833 4.08215 19.3278C3.99991 18.7161 3.99995 17.9523 4 17.0658L4 7.00001C4 6.97799 4 6.95605 4 6.93418C3.99995 6.04769 3.99991 5.28388 4.08215 4.67222C4.17028 4.0167 4.36902 3.38835 4.87868 2.87869C5.38835 2.36902 6.0167 2.17028 6.67221 2.08215C7.28387 1.99991 8.04769 1.99996 8.93417 2C8.95604 2.00001 8.97799 2.00001 9 2.00001H13.1716C13.1991 2.00001 13.2273 1.99988 13.2564 1.99975Z"},null,-1),c("path",{"clip-rule":"evenodd",d:"M12 7.00001V3.00001H14V7.00001C14 7.49968 14.0021 7.77384 14.0277 7.96403C14.028 7.96651 14.0284 7.96894 14.0287 7.97131C14.0311 7.97165 14.0335 7.97198 14.036 7.97231C14.2262 7.99788 14.5003 8.00001 15 8.00001H19V10H15C14.9818 10 14.9637 10 14.9456 10C14.5215 10.0001 14.1094 10.0002 13.7695 9.95448C13.3863 9.90296 12.949 9.77744 12.5858 9.41422C12.2226 9.05101 12.0971 8.61373 12.0455 8.23053C11.9998 7.89061 11.9999 7.47848 12 7.05442C12 7.0363 12 7.01816 12 7.00001Z"},null,-1)]),8,Xrt)):D("",!0),n.icon==="date"?(h(),g("g",{key:9,fill:n.iconColor},t[8]||(t[8]=[c("path",{"clip-rule":"evenodd",d:"M6.93417 5C6.95604 5 6.97799 5 7 5L17.0658 5C17.9523 4.99995 18.7161 4.9999 19.3278 5.08214C19.9833 5.17027 20.6117 5.36902 21.1213 5.87868C21.631 6.38834 21.8297 7.01669 21.9179 7.67221C22.0001 8.28387 22.0001 9.0477 22 9.93419V17.0658C22.0001 17.9523 22.0001 18.7161 21.9179 19.3278C21.8297 19.9833 21.631 20.6117 21.1213 21.1213C20.6117 21.631 19.9833 21.8297 19.3278 21.9179C18.7161 22.0001 17.9523 22.0001 17.0658 22H6.9342C6.0477 22.0001 5.28388 22.0001 4.67221 21.9179C4.0167 21.8297 3.38835 21.631 2.87868 21.1213C2.36902 20.6117 2.17028 19.9833 2.08215 19.3278C1.99991 18.7161 1.99995 17.9523 2 17.0658L2 10C2 9.97798 2 9.95604 2 9.93417C1.99995 9.04768 1.99991 8.28387 2.08215 7.67221C2.17028 7.01669 2.36902 6.38834 2.87868 5.87868C3.38835 5.36902 4.0167 5.17027 4.67221 5.08214C5.28387 4.9999 6.04769 4.99995 6.93417 5ZM4.93871 7.06431C4.50497 7.12262 4.36902 7.21677 4.2929 7.29289C4.21677 7.36902 4.12263 7.50496 4.06431 7.9387C4.00213 8.40121 4 9.02892 4 10V17C4 17.9711 4.00213 18.5988 4.06431 19.0613C4.12263 19.495 4.21677 19.631 4.2929 19.7071C4.36902 19.7832 4.50497 19.8774 4.93871 19.9357C5.40122 19.9979 6.02893 20 7 20H17C17.9711 20 18.5988 19.9979 19.0613 19.9357C19.495 19.8774 19.631 19.7832 19.7071 19.7071C19.7832 19.631 19.8774 19.495 19.9357 19.0613C19.9979 18.5988 20 17.9711 20 17V10C20 9.02892 19.9979 8.40121 19.9357 7.9387C19.8774 7.50496 19.7832 7.36902 19.7071 7.29289C19.631 7.21677 19.495 7.12262 19.0613 7.06431C18.5988 7.00212 17.9711 7 17 7H7C6.02893 7 5.40122 7.00212 4.93871 7.06431Z"},null,-1),c("path",{d:"M3 10C3 8.11438 3 7.17157 3.58579 6.58579C4.17158 6 5.11439 6 7 6H17C18.8856 6 19.8284 6 20.4142 6.58579C21 7.17157 21 8.11438 21 10H3Z"},null,-1),c("path",{"clip-rule":"evenodd",d:"M7 2C7.55229 2 8 2.44772 8 3L8 6C8 6.55229 7.55229 7 7 7C6.44772 7 6 6.55228 6 6L6 3C6 2.44771 6.44772 2 7 2Z"},null,-1),c("path",{"clip-rule":"evenodd",d:"M17 2C17.5523 2 18 2.44772 18 3V6C18 6.55229 17.5523 7 17 7C16.4477 7 16 6.55228 16 6L16 3C16 2.44771 16.4477 2 17 2Z"},null,-1)]),8,Qrt)):D("",!0),n.icon==="edit"?(h(),g("g",{key:10,fill:n.iconColor},t[9]||(t[9]=[c("path",{"fill-rule":"evenodd",d:"M5.82886 12.8176C5.68691 12.9574 5.39226 13.2474 5.18193 13.6189C4.97159 13.9904 4.87446 14.3923 4.82766 14.5859L4.81492 14.6381L4.15139 17.2923L4.14249 17.3275C4.10831 17.4622 4.03763 17.7409 4.01215 18.0013C3.98176 18.3119 3.95466 19.1457 4.64217 19.8332C5.32969 20.5207 6.16348 20.4936 6.47407 20.4632C6.7345 20.4377 7.01312 20.367 7.14784 20.3329L7.18308 20.324L9.83721 19.6604L9.8894 19.6477C10.083 19.6009 10.4849 19.5038 10.8564 19.2934C11.2279 19.0831 11.518 18.7884 11.6577 18.6465L11.6955 18.6083L18.9453 11.3585C19.2281 11.0761 19.5649 10.7397 19.8154 10.4114C20.1178 10.015 20.4754 9.40601 20.4754 8.58579C20.4754 7.76556 20.1178 7.15653 19.8154 6.76019C19.5649 6.43185 19.2281 6.09553 18.9453 5.81304L18.6623 5.53006C18.3798 5.24722 18.0435 4.91047 17.7152 4.65996C17.3188 4.35755 16.7098 4 15.8896 4C15.0693 4 14.4603 4.35755 14.064 4.65996C13.7356 4.91047 13.3993 5.24721 13.1168 5.53005L5.86706 12.7799L5.82886 12.8176ZM13.8896 7.58574L7.28128 14.1941C7.08663 14.3887 6.9893 14.486 6.92233 14.6043C6.85535 14.7226 6.82197 14.8562 6.75521 15.1232L6.09168 17.7773C6.00142 18.1384 5.95629 18.3189 6.05638 18.419C6.15647 18.5191 6.337 18.4739 6.69801 18.3837L9.35214 17.7201C9.6192 17.6534 9.75272 17.62 9.87101 17.553C9.9893 17.486 10.0866 17.3887 10.2813 17.1941L16.8896 10.5857L13.8896 7.58574Z"},null,-1)]),8,est)):D("",!0),n.icon==="filter"?(h(),g("g",{key:11,fill:n.iconColor},t[10]||(t[10]=[wl('<path fill-rule="evenodd" d="M5 13C4.44772 13 4 12.5523 4 12L4 4C4 3.44771 4.44771 3 5 3C5.55228 3 6 3.44771 6 4L6 12C6 12.5523 5.55228 13 5 13Z"></path><path fill-rule="evenodd" d="M19 21C18.4477 21 18 20.5523 18 20L18 18C18 17.4477 18.4477 17 19 17C19.5523 17 20 17.4477 20 18V20C20 20.5523 19.5523 21 19 21Z"></path><path fill-rule="evenodd" d="M5 21C4.44772 21 4 20.5523 4 20L4 16C4 15.4477 4.44771 15 5 15C5.55228 15 6 15.4477 6 16L6 20C6 20.5523 5.55228 21 5 21Z"></path><path fill-rule="evenodd" d="M19 13C18.4477 13 18 12.5523 18 12L18 4C18 3.44771 18.4477 3 19 3C19.5523 3 20 3.44771 20 4L20 12C20 12.5523 19.5523 13 19 13Z"></path><path fill-rule="evenodd" d="M12 8C11.4477 8 11 7.55228 11 7V4C11 3.44772 11.4477 3 12 3C12.5523 3 13 3.44772 13 4V7C13 7.55228 12.5523 8 12 8Z"></path><path fill-rule="evenodd" d="M12 21C11.4477 21 11 20.5523 11 20L11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12L13 20C13 20.5523 12.5523 21 12 21Z"></path><path fill-rule="evenodd" d="M5 13C4.44772 13 4 13.4477 4 14C4 14.5523 4.44771 15 5 15C5.55228 15 6 14.5523 6 14C6 13.4477 5.55228 13 5 13ZM2 14C2 12.3431 3.34315 11 5 11C6.65685 11 8 12.3431 8 14C8 15.6569 6.65685 17 5 17C3.34315 17 2 15.6569 2 14Z"></path><path fill-rule="evenodd" d="M12 8C11.4477 8 11 8.44772 11 9C11 9.55228 11.4477 10 12 10C12.5523 10 13 9.55228 13 9C13 8.44772 12.5523 8 12 8ZM9 9C9 7.34315 10.3431 6 12 6C13.6569 6 15 7.34315 15 9C15 10.6569 13.6569 12 12 12C10.3431 12 9 10.6569 9 9Z"></path><path fill-rule="evenodd" d="M19 14C18.4477 14 18 14.4477 18 15C18 15.5523 18.4477 16 19 16C19.5523 16 20 15.5523 20 15C20 14.4477 19.5523 14 19 14ZM16 15C16 13.3431 17.3431 12 19 12C20.6569 12 22 13.3431 22 15C22 16.6569 20.6569 18 19 18C17.3431 18 16 16.6569 16 15Z"></path>',9)]),8,tst)):D("",!0),n.icon==="materials"?(h(),g("g",{key:12,fill:n.iconColor},t[11]||(t[11]=[c("path",{"fill-rule":"evenodd",d:"M9.00002 18C10.1046 18 11 18.8954 11 20H13C13 18.8954 13.8955 18 15 18L19.0544 18C19.4785 18.0001 19.8906 18.0002 20.2305 17.9545C20.6137 17.903 21.051 17.7774 21.4142 17.4142C21.7775 17.051 21.903 16.6137 21.9545 16.2305C22.0002 15.8906 22.0001 15.4785 22 15.0544V5.9456C22.0001 5.52153 22.0002 5.10941 21.9545 4.76949C21.903 4.38629 21.7775 3.94902 21.4142 3.5858C21.051 3.22259 20.6137 3.09706 20.2305 3.04554C19.8906 2.99984 19.4785 2.99992 19.0544 3.00001L17.9294 3.00001C16.5753 2.99998 15.4587 2.99995 14.575 3.11877C13.6471 3.24351 12.8277 3.51548 12.1716 4.17159C12.1112 4.23197 12.0541 4.29374 12 4.35685C11.946 4.29374 11.8888 4.23197 11.8284 4.17159C11.1723 3.51548 10.3529 3.24351 9.42508 3.11877C8.54132 2.99995 7.42471 2.99998 6.07059 3.00001L4.94561 3.00001C4.52154 2.99992 4.10941 2.99984 3.7695 3.04554C3.38629 3.09706 2.94902 3.22259 2.5858 3.5858C2.22259 3.94902 2.09706 4.38629 2.04554 4.76949C1.99984 5.10941 1.99992 5.52153 2.00001 5.94559L2.00001 15.0544C1.99992 15.4785 1.99984 15.8906 2.04554 16.2305C2.09706 16.6137 2.22259 17.051 2.5858 17.4142C2.94902 17.7774 3.38629 17.903 3.7695 17.9545C4.10941 18.0002 4.52153 18.0001 4.94559 18L9.00002 18ZM5.00001 5.00001C4.50034 5.00001 4.22618 5.00214 4.03599 5.02771L4.02871 5.02871L4.02771 5.03599C4.00214 5.22618 4.00001 5.50034 4.00001 6.00001V15C4.00001 15.4997 4.00214 15.7738 4.02771 15.964L4.02871 15.9713L4.03599 15.9723C4.22618 15.9979 4.50034 16 5.00001 16H9.00002C9.72859 16 10.4117 16.1948 11 16.5351V10C11 8.55753 10.9979 7.57627 10.8991 6.84145C10.8042 6.13539 10.6368 5.80837 10.4142 5.5858C10.1917 5.36323 9.86464 5.19586 9.15858 5.10093C8.42376 5.00214 7.4425 5.00001 6.00002 5.00001H5.00001ZM19 5.00001C19.4997 5.00001 19.7739 5.00214 19.964 5.02771L19.9713 5.02871L19.9723 5.03599C19.9979 5.22618 20 5.50034 20 6.00001V15C20 15.4997 19.9979 15.7738 19.9723 15.964L19.9713 15.9713L19.964 15.9723C19.7739 15.9979 19.4997 16 19 16H15C14.2714 16 13.5884 16.1948 13 16.5351V10C13 8.55753 13.0021 7.57627 13.1009 6.84145C13.1959 6.13539 13.3632 5.80837 13.5858 5.5858C13.8084 5.36323 14.1354 5.19586 14.8415 5.10093C15.5763 5.00214 16.5575 5.00001 18 5.00001H19Z"},null,-1)]),8,nst)):D("",!0),n.icon==="male"?(h(),g("g",{key:13,fill:n.iconColor},t[12]||(t[12]=[c("path",{"fill-rule":"evenodd",d:"M12 5H19V12H17V8.41421L13.1716 12.2426C13.6951 13.033 14 13.9809 14 15C14 17.7614 11.7614 20 9 20C6.23858 20 4 17.7614 4 15C4 12.2386 6.23858 10 9 10C10.0191 10 10.967 10.3049 11.7574 10.8284L15.5858 7H12V5ZM9 12C7.34315 12 6 13.3431 6 15C6 16.6569 7.34315 18 9 18C10.6569 18 12 16.6569 12 15C12 13.3431 10.6569 12 9 12Z"},null,-1)]),8,ost)):D("",!0),n.icon==="female"?(h(),g("g",{key:14,fill:n.iconColor},t[13]||(t[13]=[c("path",{"fill-rule":"evenodd",d:"M12 6C13.6569 6 15 7.34315 15 9C15 10.6569 13.6569 12 12 12C10.3431 12 9 10.6569 9 9C9 7.34315 10.3431 6 12 6ZM17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 11.7614 9.23858 14 12 14C14.7614 14 17 11.7614 17 9Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M13 19V21H11V19H9V17H11V13H13V17H15V19H13Z"},null,-1)]),8,ist)):D("",!0),n.icon==="minus-circle"?(h(),g("g",{key:15,fill:n.iconColor},t[14]||(t[14]=[c("path",{"fill-rule":"evenodd",d:"M12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M16.5 13H7.5V11H16.5V13Z"},null,-1)]),8,rst)):D("",!0),n.icon==="lock"?(h(),g("g",{key:16,fill:n.iconColor},t[15]||(t[15]=[c("path",{"fill-rule":"evenodd",d:"M7.93417 8C7.95604 8 7.97799 8 8 8L16.0658 8C16.9523 7.99995 17.7161 7.99991 18.3278 8.08214C18.9833 8.17027 19.6117 8.36902 20.1213 8.87868C20.631 9.38834 20.8297 10.0167 20.9179 10.6722C21.0001 11.2839 21.0001 12.0477 21 12.9342L21 15.0705C21 16.4247 21.0001 17.5413 20.8813 18.4251C20.7565 19.3529 20.4845 20.1723 19.8284 20.8284C19.1723 21.4845 18.3529 21.7565 17.4251 21.8812C16.5413 22.0001 15.4247 22 14.0706 22H9.92943C8.57531 22 7.4587 22.0001 6.57494 21.8812C5.64711 21.7565 4.82769 21.4845 4.17158 20.8284C3.51547 20.1723 3.2435 19.3529 3.11876 18.4251C2.99994 17.5413 2.99997 16.4247 3 15.0706L3 13C3 12.978 3 12.956 3 12.9342C2.99995 12.0477 2.99991 11.2839 3.08215 10.6722C3.17028 10.0167 3.36902 9.38834 3.87868 8.87868C4.38835 8.36902 5.0167 8.17027 5.67221 8.08214C6.28387 7.99991 7.04769 7.99995 7.93417 8ZM5.93871 10.0643C5.50497 10.1226 5.36902 10.2168 5.2929 10.2929C5.21677 10.369 5.12263 10.505 5.06431 10.9387C5.00213 11.4012 5 12.0289 5 13V15C5 16.4425 5.00213 17.4237 5.10092 18.1586C5.19585 18.8646 5.36322 19.1916 5.58579 19.4142C5.80836 19.6368 6.13538 19.8042 6.84144 19.8991C7.57626 19.9979 8.55752 20 10 20H14C15.4425 20 16.4238 19.9979 17.1586 19.8991C17.8646 19.8042 18.1916 19.6368 18.4142 19.4142C18.6368 19.1916 18.8042 18.8646 18.8991 18.1586C18.9979 17.4237 19 16.4425 19 15V13C19 12.0289 18.9979 11.4012 18.9357 10.9387C18.8774 10.505 18.7832 10.369 18.7071 10.2929C18.631 10.2168 18.495 10.1226 18.0613 10.0643C17.5988 10.0021 16.9711 10 16 10H8C7.02893 10 6.40122 10.0021 5.93871 10.0643Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7V8C17 8.55228 16.5523 9 16 9C15.4477 9 15 8.55228 15 8V7C15 5.34315 13.6569 4 12 4C10.3432 4 9 5.34315 9 7V8C9 8.55228 8.55229 9 8 9C7.44772 9 7 8.55228 7 8V7Z"},null,-1),c("path",{d:"M14 15C14 16.1046 13.1046 17 12 17C10.8954 17 10 16.1046 10 15C10 13.8954 10.8954 13 12 13C13.1046 13 14 13.8954 14 15Z"},null,-1)]),8,sst)):D("",!0),n.icon==="unlock"?(h(),g("g",{key:17,fill:n.iconColor},t[16]||(t[16]=[c("path",{"fill-rule":"evenodd",d:"M7.93417 8.00021C7.95604 8.00021 7.97799 8.00021 8 8.00021L16.0658 8.00021C16.9523 8.00016 17.7161 8.00012 18.3278 8.08235C18.9833 8.17048 19.6117 8.36923 20.1213 8.87889C20.631 9.38855 20.8297 10.0169 20.9179 10.6724C21.0001 11.2841 21.0001 12.0479 21 12.9344L21 15.0708C21 16.4249 21.0001 17.5415 20.8813 18.4253C20.7565 19.3531 20.4845 20.1725 19.8284 20.8286C19.1723 21.4847 18.3529 21.7567 17.4251 21.8815C16.5413 22.0003 15.4247 22.0002 14.0706 22.0002H9.92943C8.57531 22.0002 7.4587 22.0003 6.57494 21.8815C5.64711 21.7567 4.82769 21.4847 4.17158 20.8286C3.51547 20.1725 3.2435 19.3531 3.11876 18.4253C2.99994 17.5415 2.99997 16.4249 3 15.0708L3 13.0002C3 12.9782 3 12.9562 3 12.9344C2.99995 12.0479 2.99991 11.2841 3.08215 10.6724C3.17028 10.0169 3.36902 9.38855 3.87868 8.87889C4.38835 8.36923 5.0167 8.17048 5.67221 8.08235C6.28387 8.00012 7.04769 8.00016 7.93417 8.00021ZM5.93871 10.0645C5.50497 10.1228 5.36902 10.217 5.2929 10.2931C5.21677 10.3692 5.12263 10.5052 5.06431 10.9389C5.00213 11.4014 5 12.0291 5 13.0002V15.0002C5 16.4427 5.00213 17.424 5.10092 18.1588C5.19585 18.8648 5.36322 19.1919 5.58579 19.4144C5.80836 19.637 6.13538 19.8044 6.84144 19.8993C7.57626 19.9981 8.55752 20.0002 10 20.0002H14C15.4425 20.0002 16.4238 19.9981 17.1586 19.8993C17.8646 19.8044 18.1916 19.637 18.4142 19.4144C18.6368 19.1919 18.8042 18.8648 18.8991 18.1588C18.9979 17.424 19 16.4427 19 15.0002V13.0002C19 12.0291 18.9979 11.4014 18.9357 10.9389C18.8774 10.5052 18.7832 10.3692 18.7071 10.2931C18.631 10.217 18.495 10.1228 18.0613 10.0645C17.5988 10.0023 16.9711 10.0002 16 10.0002H8C7.02893 10.0002 6.40122 10.0023 5.93871 10.0645Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M6.83355 2.76709C9.0531 0.844902 12.2838 0.643749 14.7246 2.27576C16.7746 3.64643 17.8757 6.05651 17.5698 8.50346L17.4922 9.12405C17.4237 9.67207 16.924 10.0608 16.3759 9.9923C15.8279 9.92381 15.4392 9.42402 15.5077 8.876L15.5852 8.25541C15.7973 6.55918 15.034 4.8885 13.613 3.93836C11.921 2.80704 9.68145 2.94648 8.14286 4.27894L7.32453 4.98763C6.90704 5.34919 6.27551 5.30385 5.91395 4.88636C5.5524 4.46887 5.59774 3.83733 6.01523 3.47578L6.83355 2.76709Z"},null,-1),c("path",{d:"M14 15C14 16.1046 13.1046 17 12 17C10.8954 17 10 16.1046 10 15C10 13.8954 10.8954 13 12 13C13.1046 13 14 13.8954 14 15Z"},null,-1)]),8,ast)):D("",!0),n.icon==="plus-circle"?(h(),g("g",{key:18,fill:n.iconColor},t[17]||(t[17]=[c("path",{"fill-rule":"evenodd",d:"M12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M11 16V8H13V16H11Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M16 11H8V13H16V11Z"},null,-1)]),8,lst)):D("",!0),n.icon==="school"?(h(),g("g",{key:19,fill:n.iconColor},t[18]||(t[18]=[c("path",{"fill-rule":"evenodd",d:"M6.51614 2.00001C6.18069 1.99994 5.84693 1.99987 5.56519 2.03356C5.24403 2.07196 4.88253 2.16391 4.54992 2.4236C4.21732 2.68329 4.04044 3.0117 3.92529 3.31395C3.82427 3.57912 3.74339 3.90292 3.6621 4.22837L2.44239 9.10723C2.39835 9.28333 2.35663 9.45018 2.32875 9.59219C2.29927 9.74233 2.27133 9.92915 2.28534 10.1355C2.34075 10.9514 2.88726 11.6513 3.66532 11.903C3.78155 11.9406 3.89507 11.9623 3.99997 11.9753L3.99997 17.0658C3.99992 17.9523 3.99988 18.7161 4.08211 19.3278C4.17025 19.9833 4.36899 20.6117 4.87865 21.1213C5.38832 21.631 6.01667 21.8297 6.67218 21.9179C7.28384 22.0001 8.04766 22.0001 8.93414 22H15.0658C15.9523 22.0001 16.7161 22.0001 17.3278 21.9179C17.9833 21.8297 18.6116 21.631 19.1213 21.1213C19.631 20.6117 19.8297 19.9833 19.9178 19.3278C20.0001 18.7161 20 17.9523 20 17.0658L20 11.9753C20.1049 11.9623 20.2184 11.9406 20.3346 11.903C21.1127 11.6513 21.6592 10.9514 21.7146 10.1355C21.7286 9.92915 21.7007 9.74233 21.6712 9.59219C21.6433 9.45019 21.6016 9.28336 21.5576 9.10728L20.3379 4.2284C20.2566 3.90294 20.1757 3.57913 20.0747 3.31395C19.9595 3.0117 19.7826 2.68329 19.45 2.4236C19.1174 2.16391 18.7559 2.07196 18.4348 2.03356C18.153 1.99987 17.8193 1.99994 17.4838 2.00001H6.51614ZM18 11.9186C17.4174 11.78 16.898 11.4727 16.5 11.0459C15.9635 11.6209 15.2064 11.98 14.3751 11.9992C14.34 12 14.3026 12 14.2593 12H14.2406C14.1973 12 14.1599 12 14.1249 11.9992C13.2935 11.98 12.5365 11.6209 12 11.0459C11.4634 11.6209 10.7064 11.98 9.87508 11.9992C9.84005 12 9.80259 12 9.75931 12H9.74063C9.69735 12 9.65989 12 9.62486 11.9992C8.79352 11.98 8.03646 11.6209 7.49993 11.0459C7.10192 11.4727 6.58255 11.78 5.99997 11.9186V17C5.99997 17.9711 6.0021 18.5988 6.06428 19.0613C6.1226 19.495 6.21674 19.631 6.29287 19.7071C6.36899 19.7832 6.50494 19.8774 6.93868 19.9357C7.31649 19.9865 7.80455 19.9972 8.49997 19.9994V16C8.49997 14.8954 9.3954 14 10.5 14H13.5C14.6045 14 15.5 14.8954 15.5 16V19.9994C16.1954 19.9972 16.6835 19.9865 17.0613 19.9357C17.495 19.8774 17.631 19.7832 17.7071 19.7071C17.7832 19.631 17.8774 19.495 17.9357 19.0613C17.9979 18.5988 18 17.9711 18 17V11.9186ZM5.79426 4.02597L5.79648 4.02017L5.80265 4.01941C5.95099 4.00167 6.1622 4.00001 6.56152 4.00001H17.4384C17.8377 4.00001 18.0489 4.00167 18.1973 4.01941L18.2035 4.02017L18.2057 4.02597C18.2589 4.16558 18.3117 4.37008 18.4086 4.75748L19.6122 9.57193C19.6631 9.77571 19.6919 9.89198 19.7087 9.97751L19.7118 9.9941L19.6923 9.9952C19.6024 9.99972 19.4786 10 19.2641 10C18.676 10 18.5513 9.9935 18.4673 9.97393C18.1537 9.90087 17.8945 9.68126 17.7709 9.38392C17.7376 9.30397 17.7115 9.18664 17.6171 8.62018L17.6152 8.60846C17.605 8.54714 17.5935 8.47862 17.5825 8.42364C17.5767 8.3946 17.5665 8.34641 17.551 8.29349L17.5502 8.29046C17.5409 8.25846 17.499 8.11364 17.3934 7.96656C16.9545 7.35553 16.0455 7.35553 15.6066 7.96656C15.5009 8.11364 15.459 8.25846 15.4498 8.29046L15.4489 8.29349C15.4334 8.34641 15.4233 8.3946 15.4174 8.42364C15.4064 8.47862 15.395 8.54714 15.3848 8.60846L15.3013 9.10942C15.2918 9.16652 15.2897 9.17862 15.288 9.18718C15.1998 9.65027 14.8001 9.98884 14.3288 9.99974C14.3201 9.99995 14.3079 10 14.25 10C14.1921 10 14.1798 9.99995 14.1711 9.99974C13.6998 9.98884 13.3001 9.65027 13.2119 9.18718C13.2103 9.17862 13.2082 9.16652 13.1987 9.10942L13.1152 8.60846C13.105 8.54714 13.0935 8.47862 13.0825 8.42364C13.0767 8.3946 13.0665 8.34641 13.051 8.29349L13.0502 8.29046C13.0409 8.25846 12.999 8.11364 12.8934 7.96656C12.4545 7.35553 11.5455 7.35553 11.1066 7.96656C11.0009 8.11362 10.9591 8.25842 10.9498 8.29044L10.9489 8.29349C10.9334 8.34641 10.9233 8.3946 10.9174 8.42364C10.9064 8.47861 10.895 8.54712 10.8848 8.60845L10.8013 9.10942C10.7918 9.16652 10.7897 9.17862 10.788 9.18718C10.6998 9.65027 10.3001 9.98884 9.82884 9.99974C9.82013 9.99995 9.80785 10 9.74997 10C9.69209 10 9.67981 9.99995 9.6711 9.99974C9.1998 9.98884 8.80013 9.65027 8.7119 9.18718C8.71027 9.17862 8.70818 9.16652 8.69867 9.10942L8.61518 8.6085C8.60497 8.54716 8.59355 8.47863 8.58251 8.42364C8.57669 8.3946 8.56652 8.34641 8.55104 8.29349L8.55016 8.29045C8.5409 8.25844 8.49902 8.11363 8.39338 7.96656C7.95448 7.35553 7.04546 7.35553 6.60656 7.96656C6.50091 8.11364 6.45904 8.25845 6.44978 8.29046L6.44891 8.29349C6.43342 8.34641 6.42325 8.3946 6.41743 8.42364C6.40639 8.47862 6.39498 8.54715 6.38476 8.60848L6.38282 8.62018C6.28841 9.18664 6.26233 9.30397 6.22909 9.38392C6.10546 9.68126 5.84622 9.90087 5.5326 9.97393C5.44863 9.9935 5.32391 10 4.73588 10C4.52134 10 4.39758 9.99972 4.30762 9.9952L4.28812 9.9941L4.29128 9.97751C4.30807 9.89197 4.33682 9.77571 4.38777 9.57193L5.59138 4.75748C5.68823 4.37008 5.74107 4.16558 5.79426 4.02597ZM13.5 20H10.5V16H13.5V20Z"},null,-1)]),8,cst)):D("",!0),n.icon==="user-box"?(h(),g("g",{key:20,fill:n.iconColor},t[19]||(t[19]=[c("path",{"fill-rule":"evenodd",d:"M8 10C8 7.79086 9.79086 6 12 6C14.2091 6 16 7.79086 16 10C16 12.2091 14.2091 14 12 14C9.79086 14 8 12.2091 8 10ZM12 8C10.8954 8 10 8.89543 10 10C10 11.1046 10.8954 12 12 12C13.1046 12 14 11.1046 14 10C14 8.89543 13.1046 8 12 8Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M2 10C2 6.22876 2 4.34315 3.17157 3.17157C4.34315 2 6.22876 2 10 2H14C17.7712 2 19.6569 2 20.8284 3.17157C22 4.34315 22 6.22876 22 10V14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V10ZM10 4H14C15.9422 4 17.1976 4.00425 18.1226 4.12861C18.9901 4.24524 19.262 4.43354 19.4142 4.58579C19.5665 4.73803 19.7548 5.00993 19.8714 5.87741C19.9958 6.80242 20 8.05784 20 10V14C20 15.9422 19.9958 17.1976 19.8714 18.1226C19.7548 18.9901 19.5665 19.262 19.4142 19.4142C19.288 19.5405 19.0794 19.6915 18.5172 19.8059C18.0358 18.7516 17.2226 17.8502 16.1913 17.1907C14.9724 16.4114 13.4993 16 12 16C10.5006 16 9.02755 16.4114 7.80871 17.1907C6.77744 17.8502 5.96415 18.7516 5.48276 19.8059C4.92057 19.6915 4.71204 19.5405 4.58579 19.4142C4.43354 19.262 4.24524 18.9901 4.12861 18.1226C4.00425 17.1976 4 15.9422 4 14V10C4 8.05784 4.00425 6.80242 4.12861 5.87741C4.24524 5.00993 4.43354 4.73803 4.58579 4.58579C4.73803 4.43354 5.00993 4.24524 5.87741 4.12861C6.80242 4.00425 8.05784 4 10 4ZM7.68589 19.9853C8.33096 19.9991 9.09012 20 10 20H14C14.9099 20 15.669 19.9991 16.3141 19.9853C16.0093 19.5692 15.6065 19.1908 15.1138 18.8757C14.237 18.315 13.1423 18 12 18C10.8577 18 9.76303 18.315 8.88614 18.8757C8.39345 19.1908 7.9907 19.5692 7.68589 19.9853Z"},null,-1)]),8,dst)):D("",!0),n.icon==="wallet"?(h(),g("g",{key:21,fill:n.iconColor},t[20]||(t[20]=[c("path",{"fill-rule":"evenodd",d:"M19.0544 22C19.0363 22 19.0181 22 19 22L6.93416 22C6.04768 22.0001 5.28386 22.0001 4.6722 21.9179C4.01669 21.8297 3.38834 21.631 2.87867 21.1213C2.36901 20.6117 2.17027 19.9833 2.08213 19.3278C1.9999 18.7161 1.99994 17.9523 1.99999 17.0658L1.99999 6.5C1.99999 4.56701 3.567 3 5.49999 3L19.2857 3C19.297 3 19.3102 2.99987 19.325 2.99971C19.4623 2.99831 19.7418 2.99545 19.9954 3.08418C20.4263 3.23495 20.765 3.57371 20.9158 4.00458C21.0045 4.25814 21.0017 4.5377 21.0003 4.67496C21.0001 4.6898 21 4.70298 21 4.71429C21 4.77414 21 4.83312 21.0001 4.89125C21.0008 5.91445 21.0013 6.67586 20.7755 7.32112C20.6824 7.58722 20.5624 7.84015 20.4187 8.07673C20.7522 8.14347 21.1093 8.28087 21.4142 8.58579C21.7774 8.949 21.9029 9.38628 21.9545 9.76948C22.0002 10.1094 22.0001 10.5215 22 10.9456C22 10.9637 22 10.9818 22 11L22 19C22 19.0182 22 19.0363 22 19.0544C22.0001 19.4785 22.0002 19.8906 21.9545 20.2305C21.9029 20.6137 21.7774 21.051 21.4142 21.4142C21.051 21.7774 20.6137 21.903 20.2305 21.9545C19.8906 22.0002 19.4785 22.0001 19.0544 22ZM15.7143 10C15.7741 10 15.8331 10 15.8912 10.0001C16.005 10.0002 16.1155 10.0002 16.223 10L19 10C19.4997 10 19.7738 10.0021 19.964 10.0277C19.9665 10.028 19.9689 10.0284 19.9713 10.0287C19.9716 10.0311 19.972 10.0335 19.9723 10.036C19.9979 10.2262 20 10.5003 20 11V12H17C16.9818 12 16.9637 12 16.9456 12C16.5215 11.9999 16.1094 11.9998 15.7695 12.0455C15.3863 12.097 14.949 12.2226 14.5858 12.5858C14.2226 12.949 14.097 13.3863 14.0455 13.7695C13.9998 14.1094 13.9999 14.5215 14 14.9456C14 14.9637 14 14.9818 14 15C14 15.0182 14 15.0363 14 15.0544C13.9999 15.4785 13.9998 15.8906 14.0455 16.2305C14.097 16.6137 14.2226 17.051 14.5858 17.4142C14.949 17.7774 15.3863 17.903 15.7695 17.9545C16.1094 18.0002 16.5215 18.0001 16.9456 18C16.9637 18 16.9818 18 17 18H20V19C20 19.4997 19.9979 19.7738 19.9723 19.964C19.972 19.9665 19.9716 19.9689 19.9713 19.9713C19.9689 19.9716 19.9665 19.972 19.964 19.9723C19.7738 19.9979 19.4997 20 19 20L6.99999 20C6.02891 20 5.4012 19.9979 4.9387 19.9357C4.50496 19.8774 4.36901 19.7832 4.29289 19.7071C4.21676 19.631 4.12262 19.495 4.0643 19.0613C4.00212 18.5988 3.99999 17.9711 3.99999 17L3.99999 9.66319C4.45462 9.87916 4.9632 10 5.49999 10H15.7143ZM15.7143 8C16.9949 8 17.3802 7.98586 17.6605 7.88777C18.235 7.68674 18.6867 7.23505 18.8878 6.66056C18.9781 6.40227 18.9972 6.05485 18.9997 5L5.49999 5C4.67157 5 3.99999 5.67157 3.99999 6.5C3.99999 7.32843 4.67157 8 5.49999 8H15.7143ZM20 16V14H17C16.5003 14 16.2262 14.0021 16.036 14.0277C16.0335 14.028 16.0311 14.0284 16.0287 14.0287C16.0283 14.0311 16.028 14.0335 16.0277 14.036C16.0021 14.2262 16 14.5003 16 15C16 15.4997 16.0021 15.7738 16.0277 15.964C16.028 15.9665 16.0283 15.9689 16.0287 15.9713C16.0311 15.9716 16.0335 15.972 16.036 15.9723C16.2262 15.9979 16.5003 16 17 16H20Z"},null,-1)]),8,ust)):D("",!0),n.icon==="web"?(h(),g("g",{key:22,fill:n.iconColor},t[21]||(t[21]=[wl('<path fill-rule="evenodd" d="M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"></path><path fill-rule="evenodd" d="M15.3955 7.36476C16.3957 6.96435 17.2277 6.40158 17.8381 5.74203L19.3059 7.1005C18.4689 8.00493 17.378 8.72541 16.1388 9.2215C14.8989 9.71787 13.5307 9.98186 12.1451 9.9991C10.7594 10.0163 9.38158 9.78649 8.12278 9.32209C6.86472 8.85796 5.7462 8.16688 4.87314 7.28728L6.29262 5.87835C6.93534 6.52588 7.79532 7.06952 8.81502 7.44571C9.83399 7.82163 10.9678 8.01359 12.1202 7.99925C13.2726 7.98492 14.3961 7.76488 15.3955 7.36476Z"></path><path fill-rule="evenodd" d="M15.3955 16.6352C16.3957 17.0357 17.2277 17.5984 17.8381 18.258L19.3059 16.8995C18.4689 15.9951 17.378 15.2746 16.1388 14.7785C14.8989 14.2821 13.5307 14.0181 12.1451 14.0009C10.7594 13.9837 9.38158 14.2135 8.12278 14.6779C6.86472 15.142 5.7462 15.8331 4.87314 16.7127L6.29262 18.1216C6.93534 17.4741 7.79532 16.9305 8.81502 16.5543C9.83399 16.1784 10.9678 15.9864 12.1202 16.0007C13.2726 16.0151 14.3961 16.2351 15.3955 16.6352Z"></path><path fill-rule="evenodd" d="M11 20V4H13V20H11Z"></path><path fill-rule="evenodd" d="M4 11H20V13H4V11Z"></path>',5)]),8,hst)):D("",!0),n.icon==="wishlist"?(h(),g("g",{key:23,fill:n.iconColor},t[22]||(t[22]=[c("path",{"fill-rule":"evenodd",d:"M18.9984 7.14033C17.4864 5.19159 14.4515 5.51841 13.3891 7.74437C12.8315 8.91271 11.1685 8.91271 10.6108 7.74437C9.54845 5.51841 6.51357 5.1916 5.00161 7.14033L4.69226 7.53906C3.3632 9.25206 3.5551 11.6949 5.13534 13.1794L12 19.628L18.8646 13.1794C20.4449 11.6949 20.6368 9.25206 19.3077 7.53905L18.9984 7.14033ZM12 6.15842C13.9769 3.25699 18.329 3.0149 20.5785 5.91434L20.8879 6.31306C22.8493 8.84112 22.5661 12.4463 20.234 14.637L13.2814 21.1683C13.2748 21.1745 13.2681 21.1808 13.2613 21.1871C13.1598 21.2826 13.0374 21.3977 12.9198 21.4883C12.781 21.5952 12.5726 21.7302 12.2888 21.7859C12.0981 21.8233 11.9019 21.8233 11.7111 21.7859C11.4274 21.7302 11.219 21.5952 11.0802 21.4883C10.9626 21.3977 10.8402 21.2826 10.7386 21.1871C10.7319 21.1808 10.7252 21.1745 10.7186 21.1683L3.76599 14.637C1.43387 12.4463 1.15066 8.84113 3.11209 6.31306L3.42144 5.91434C5.671 3.01491 10.0231 3.25699 12 6.15842Z"},null,-1)]),8,fst)):D("",!0),n.icon==="wishlist-full"?(h(),g("g",{key:24,fill:n.iconColor},t[23]||(t[23]=[c("path",{d:"M4.45067 13.9082L11.4033 20.4395C11.6428 20.6644 11.7625 20.7769 11.9037 20.8046C11.9673 20.8171 12.0327 20.8171 12.0963 20.8046C12.2375 20.7769 12.3572 20.6644 12.5967 20.4395L19.5493 13.9082C21.5055 12.0706 21.743 9.0466 20.0978 6.92607L19.7885 6.52734C17.8203 3.99058 13.8696 4.41601 12.4867 7.31365C12.2913 7.72296 11.7087 7.72296 11.5133 7.31365C10.1304 4.41601 6.17972 3.99058 4.21154 6.52735L3.90219 6.92607C2.25695 9.0466 2.4945 12.0706 4.45067 13.9082Z","stroke-width":"2"},null,-1)]),8,mst)):D("",!0),n.icon==="wishlist-off"?(h(),g("g",{key:25,fill:n.iconColor},t[24]||(t[24]=[wl('<path fill-rule="evenodd" d="M5.00008 20C4.60955 19.6095 4.60955 18.9763 5.00007 18.5858L19.5859 4.00002C19.9764 3.60949 20.6096 3.60949 21.0001 4.00002C21.3906 4.39054 21.3906 5.02371 21.0001 5.41423L6.41429 20C6.02377 20.3905 5.3906 20.3905 5.00008 20Z"></path><path d="M18.0505 4.12111C15.8874 3.41222 13.3718 4.14503 12 6.15842C10.0231 3.25699 5.671 3.01491 3.42144 5.91434L3.11209 6.31307C1.15066 8.84113 1.43387 12.4463 3.76599 14.6371L5.70914 16.4624L7.12404 15.0475L5.13534 13.1794C3.5551 11.6949 3.3632 9.25206 4.69226 7.53906L5.00161 7.14034C6.51357 5.1916 9.54845 5.51842 10.6108 7.74437C11.1685 8.91271 12.8315 8.91271 13.3891 7.74437C13.9674 6.5328 15.13 5.88386 16.3133 5.85824L18.0505 4.12111Z"></path><path d="M7.85324 15.7325L6.43834 17.1474L7.89675 18.5175L9.31165 17.1026L7.85324 15.7325Z"></path><path d="M19.1187 7.29548L18.9984 7.14033C18.5944 6.61974 18.0819 6.26154 17.5272 6.05857L19.0286 4.55716C19.5898 4.8802 20.1056 5.31674 20.544 5.87025L19.1187 7.29548Z"></path><path d="M10.0409 17.7876L12 19.628L18.8646 13.1794C20.2695 11.8597 20.5771 9.78257 19.6943 8.13417L21.1506 6.67786C22.818 9.1782 22.4561 12.5496 20.234 14.6371L13.2613 21.1871C13.1598 21.2826 13.0374 21.3977 12.9198 21.4883C12.781 21.5952 12.5726 21.7302 12.2888 21.7859C12.0981 21.8233 11.9019 21.8233 11.7111 21.7859C11.4274 21.7302 11.219 21.5952 11.0802 21.4883C10.9626 21.3977 10.8402 21.2826 10.7386 21.1871L8.62595 19.2025L10.0409 17.7876Z"></path>',5)]),8,pst)):D("",!0),n.icon==="message"?(h(),g("g",{key:26,fill:n.iconColor},t[25]||(t[25]=[c("path",{"fill-rule":"evenodd",d:"M7.93417 5C7.95604 5 7.97799 5 8 5L16.0658 5C16.9523 4.99995 17.7161 4.99991 18.3278 5.08215C18.9833 5.17028 19.6117 5.36902 20.1213 5.87868C20.631 6.38835 20.8297 7.0167 20.9179 7.67221C21.0001 8.28388 21.0001 9.0477 21 9.9342V14.0658C21.0001 14.9523 21.0001 15.7161 20.9179 16.3278C20.8297 16.9833 20.631 17.6117 20.1213 18.1213C19.6117 18.631 18.9833 18.8297 18.3278 18.9179C17.7161 19.0001 16.9523 19.0001 16.0658 19H7.93417C7.04769 19.0001 6.28387 19.0001 5.67221 18.9179C5.0167 18.8297 4.38835 18.631 3.87868 18.1213C3.36902 17.6117 3.17028 16.9833 3.08215 16.3278C2.99991 15.7161 2.99995 14.9523 3 14.0658L3 10C3 9.97799 3 9.95604 3 9.93417C2.99995 9.04769 2.99991 8.28387 3.08215 7.67221C3.17028 7.0167 3.36902 6.38835 3.87868 5.87868C4.38835 5.36902 5.0167 5.17028 5.67221 5.08215C6.28387 4.99991 7.04769 4.99995 7.93417 5ZM5.93871 7.06431C5.50497 7.12263 5.36902 7.21677 5.2929 7.2929C5.21677 7.36902 5.12263 7.50497 5.06431 7.93871C5.00213 8.40122 5 9.02893 5 10V14C5 14.9711 5.00213 15.5988 5.06431 16.0613C5.12263 16.495 5.21677 16.631 5.2929 16.7071C5.36902 16.7832 5.50497 16.8774 5.93871 16.9357C6.40122 16.9979 7.02893 17 8 17H16C16.9711 17 17.5988 16.9979 18.0613 16.9357C18.495 16.8774 18.631 16.7832 18.7071 16.7071C18.7832 16.631 18.8774 16.495 18.9357 16.0613C18.9979 15.5988 19 14.9711 19 14V10C19 9.02893 18.9979 8.40122 18.9357 7.93871C18.8774 7.50497 18.7832 7.36902 18.7071 7.2929C18.631 7.21677 18.495 7.12263 18.0613 7.06431C17.5988 7.00213 16.9711 7 16 7H8C7.02893 7 6.40122 7.00213 5.93871 7.06431Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M10.6584 13.4472L3.55279 9.89443L4.44722 8.10558L11.5528 11.6584C11.8343 11.7991 12.1657 11.7991 12.4472 11.6584L19.5528 8.10558L20.4472 9.89443L13.3416 13.4472C12.4971 13.8695 11.5029 13.8695 10.6584 13.4472Z"},null,-1)]),8,gst)):D("",!0),n.icon==="user"?(h(),g("g",{key:27,fill:n.iconColor},t[26]||(t[26]=[c("path",{"fill-rule":"evenodd",d:"M6.63113 16.3732C8.19383 15.4738 10.0805 15 12 15C13.9195 15 15.8062 15.4738 17.3689 16.3732C18.931 17.2722 20.1188 18.5702 20.6691 20.1106C20.8549 20.6307 20.584 21.203 20.0639 21.3888C19.5438 21.5746 18.9715 21.3036 18.7857 20.7835C18.4245 19.7723 17.6035 18.8157 16.3713 18.1066C15.1397 17.3978 13.6027 17 12 17C10.3974 17 8.86033 17.3978 7.62872 18.1066C6.39653 18.8157 5.57558 19.7723 5.21432 20.7835C5.02851 21.3036 4.45626 21.5746 3.93617 21.3888C3.41608 21.203 3.1451 20.6307 3.33091 20.1106C3.88124 18.5702 5.06902 17.2722 6.63113 16.3732Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M12 5C10.3432 5 9.00002 6.34315 9.00002 8C9.00002 9.65685 10.3432 11 12 11C13.6569 11 15 9.65685 15 8C15 6.34315 13.6569 5 12 5ZM7.00002 8C7.00002 5.23858 9.23859 3 12 3C14.7614 3 17 5.23858 17 8C17 10.7614 14.7614 13 12 13C9.23859 13 7.00002 10.7614 7.00002 8Z"},null,-1)]),8,vst)):D("",!0),n.icon==="copy"?(h(),g("g",{key:28,fill:n.iconColor},t[27]||(t[27]=[c("path",{"fill-rule":"evenodd",d:"M7.93417 3C7.95604 3 7.97799 3 8 3L11.032 3C11.4706 2.99999 11.8491 2.99998 12.1624 3.02135C12.4922 3.04386 12.8221 3.09336 13.1481 3.22837C13.8831 3.53285 14.4672 4.11687 14.7716 4.85195C14.9066 5.17788 14.9562 5.50779 14.9787 5.83762C15 6.15088 15 6.52937 15 6.96802V7H13C13 6.52038 12.9995 6.21074 12.9833 5.97376C12.9677 5.74577 12.9411 5.65894 12.9239 5.61732C12.8224 5.37229 12.6277 5.17762 12.3827 5.07613C12.3411 5.05889 12.2542 5.03227 12.0262 5.01672C11.7893 5.00055 11.4796 5 11 5H8C7.02893 5 6.40122 5.00213 5.93871 5.06431C5.50497 5.12263 5.36902 5.21677 5.2929 5.2929C5.21677 5.36902 5.12263 5.50497 5.06431 5.93871C5.00213 6.40122 5 7.02893 5 8V11C5 11.4796 5.00055 11.7893 5.01672 12.0262C5.03227 12.2542 5.05889 12.3411 5.07613 12.3827C5.17762 12.6277 5.37229 12.8224 5.61732 12.9239C5.65894 12.9411 5.74577 12.9677 5.97376 12.9833C6.21074 12.9995 6.52038 13 7 13V15H6.96802C6.52937 15 6.15088 15 5.83762 14.9787C5.50779 14.9562 5.17788 14.9066 4.85195 14.7716C4.11687 14.4672 3.53285 13.8831 3.22837 13.1481C3.09336 12.8221 3.04386 12.4922 3.02135 12.1624C2.99998 11.8491 2.99999 11.4706 3 11.032L3 8C3 7.97799 3 7.95604 3 7.93417C2.99995 7.04769 2.99991 6.28387 3.08215 5.67221C3.17028 5.0167 3.36902 4.38835 3.87868 3.87868C4.38835 3.36902 5.0167 3.17028 5.67221 3.08215C6.28387 2.99991 7.04769 2.99995 7.93417 3Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M13.9342 9C13.956 9 13.978 9 14 9H16C16.022 9 16.044 9 16.0658 9C16.9523 8.99995 17.7161 8.99991 18.3278 9.08215C18.9833 9.17028 19.6117 9.36902 20.1213 9.87868C20.631 10.3883 20.8297 11.0167 20.9179 11.6722C21.0001 12.2839 21.0001 13.0477 21 13.9342V16.0658C21.0001 16.9523 21.0001 17.7161 20.9179 18.3278C20.8297 18.9833 20.631 19.6117 20.1213 20.1213C19.6117 20.631 18.9833 20.8297 18.3278 20.9179C17.7161 21.0001 16.9523 21.0001 16.0658 21H13.9342C13.0477 21.0001 12.2839 21.0001 11.6722 20.9179C11.0167 20.8297 10.3883 20.631 9.87868 20.1213C9.36902 19.6117 9.17028 18.9833 9.08215 18.3278C8.99991 17.7161 8.99995 16.9523 9 16.0658C9 16.044 9 16.022 9 16V14C9 13.978 9 13.956 9 13.9342C8.99995 13.0477 8.99991 12.2839 9.08215 11.6722C9.17028 11.0167 9.36902 10.3883 9.87868 9.87868C10.3883 9.36902 11.0167 9.17028 11.6722 9.08215C12.2839 8.99991 13.0477 8.99995 13.9342 9ZM11.9387 11.0643C11.505 11.1226 11.369 11.2168 11.2929 11.2929C11.2168 11.369 11.1226 11.505 11.0643 11.9387C11.0021 12.4012 11 13.0289 11 14V16C11 16.9711 11.0021 17.5988 11.0643 18.0613C11.1226 18.495 11.2168 18.631 11.2929 18.7071C11.369 18.7832 11.505 18.8774 11.9387 18.9357C12.4012 18.9979 13.0289 19 14 19H16C16.9711 19 17.5988 18.9979 18.0613 18.9357C18.495 18.8774 18.631 18.7832 18.7071 18.7071C18.7832 18.631 18.8774 18.495 18.9357 18.0613C18.9979 17.5988 19 16.9711 19 16V14C19 13.0289 18.9979 12.4012 18.9357 11.9387C18.8774 11.505 18.7832 11.369 18.7071 11.2929C18.631 11.2168 18.495 11.1226 18.0613 11.0643C17.5988 11.0021 16.9711 11 16 11H14C13.0289 11 12.4012 11.0021 11.9387 11.0643Z"},null,-1)]),8,_st)):D("",!0),n.icon==="check"?(h(),g("g",{key:29,fill:n.iconColor},t[28]||(t[28]=[c("path",{"fill-rule":"evenodd",d:"M18.6332 5.22604C19.0607 5.57577 19.1237 6.20579 18.7739 6.63324L10.381 16.8913C9.70231 17.7208 8.49044 17.8679 7.63306 17.2248L4.39997 14.8C3.95814 14.4686 3.8686 13.8418 4.19997 13.4C4.53134 12.9582 5.15814 12.8686 5.59997 13.2L8.83306 15.6248L17.226 5.36676C17.5757 4.93932 18.2058 4.87631 18.6332 5.22604Z"},null,-1)]),8,yst)):D("",!0),n.icon==="checkbox-on"?(h(),g("g",{key:30,fill:n.iconColor},[c("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM10.71 16.29C10.32 16.68 9.69 16.68 9.3 16.29L5.71 12.7C5.32 12.31 5.32 11.68 5.71 11.29C6.1 10.9 6.73 10.9 7.12 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.71 16.29Z",fill:n.iconColor},null,8,kst)],8,bst)):D("",!0),n.icon==="checkbox-off"?(h(),g("g",{key:31,fill:n.iconColor},[c("path",{d:"M19 5V19H5V5H19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z",fill:n.iconColor},null,8,$st)],8,wst)):D("",!0),n.icon==="search"?(h(),g("g",{key:32,fill:n.iconColor},t[29]||(t[29]=[c("path",{"fill-rule":"evenodd",d:"M11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C12.9036 19 14.652 18.3351 16.0255 17.2249C16.0661 17.4016 16.1552 17.5694 16.2929 17.7071L19.2929 20.7071C19.6834 21.0976 20.3166 21.0976 20.7071 20.7071C21.0976 20.3166 21.0976 19.6834 20.7071 19.2929L17.7071 16.2929C17.5694 16.1552 17.4016 16.0661 17.2249 16.0255C18.3351 14.652 19 12.9036 19 11C19 6.58172 15.4183 3 11 3ZM5 11C5 7.68629 7.68629 5 11 5C14.3137 5 17 7.68629 17 11C17 14.3137 14.3137 17 11 17C7.68629 17 5 14.3137 5 11Z"},null,-1)]),8,Cst)):D("",!0),n.icon==="calendar"?(h(),g("g",{key:33,fill:n.iconColor},t[30]||(t[30]=[c("path",{"fill-rule":"evenodd",d:"M6.93417 5C6.95604 5 6.97799 5 7 5L17.0658 5C17.9523 4.99995 18.7161 4.9999 19.3278 5.08214C19.9833 5.17027 20.6117 5.36902 21.1213 5.87868C21.631 6.38834 21.8297 7.01669 21.9179 7.67221C22.0001 8.28387 22.0001 9.0477 22 9.93419V17.0658C22.0001 17.9523 22.0001 18.7161 21.9179 19.3278C21.8297 19.9833 21.631 20.6117 21.1213 21.1213C20.6117 21.631 19.9833 21.8297 19.3278 21.9179C18.7161 22.0001 17.9523 22.0001 17.0658 22H6.9342C6.0477 22.0001 5.28388 22.0001 4.67221 21.9179C4.0167 21.8297 3.38835 21.631 2.87868 21.1213C2.36902 20.6117 2.17028 19.9833 2.08215 19.3278C1.99991 18.7161 1.99995 17.9523 2 17.0658L2 10C2 9.97798 2 9.95604 2 9.93417C1.99995 9.04768 1.99991 8.28387 2.08215 7.67221C2.17028 7.01669 2.36902 6.38834 2.87868 5.87868C3.38835 5.36902 4.0167 5.17027 4.67221 5.08214C5.28387 4.9999 6.04769 4.99995 6.93417 5ZM4.93871 7.06431C4.50497 7.12262 4.36902 7.21677 4.2929 7.29289C4.21677 7.36902 4.12263 7.50496 4.06431 7.9387C4.00213 8.40121 4 9.02892 4 10V17C4 17.9711 4.00213 18.5988 4.06431 19.0613C4.12263 19.495 4.21677 19.631 4.2929 19.7071C4.36902 19.7832 4.50497 19.8774 4.93871 19.9357C5.40122 19.9979 6.02893 20 7 20H17C17.9711 20 18.5988 19.9979 19.0613 19.9357C19.495 19.8774 19.631 19.7832 19.7071 19.7071C19.7832 19.631 19.8774 19.495 19.9357 19.0613C19.9979 18.5988 20 17.9711 20 17V10C20 9.02892 19.9979 8.40121 19.9357 7.9387C19.8774 7.50496 19.7832 7.36902 19.7071 7.29289C19.631 7.21677 19.495 7.12262 19.0613 7.06431C18.5988 7.00212 17.9711 7 17 7H7C6.02893 7 5.40122 7.00212 4.93871 7.06431Z"},null,-1),c("path",{d:"M3 10C3 8.11438 3 7.17157 3.58579 6.58579C4.17158 6 5.11439 6 7 6H17C18.8856 6 19.8284 6 20.4142 6.58579C21 7.17157 21 8.11438 21 10H3Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M7 2C7.55229 2 8 2.44772 8 3L8 6C8 6.55229 7.55229 7 7 7C6.44772 7 6 6.55228 6 6L6 3C6 2.44771 6.44772 2 7 2Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M17 2C17.5523 2 18 2.44772 18 3V6C18 6.55229 17.5523 7 17 7C16.4477 7 16 6.55228 16 6L16 3C16 2.44771 16.4477 2 17 2Z"},null,-1)]),8,Sst)):D("",!0),n.icon==="alert"?(h(),g("svg",{key:34,fill:n.iconColor},t[31]||(t[31]=[c("path",{"fill-rule":"evenodd",d:"M13.732 3C12.9622 1.66667 11.0377 1.66667 10.2679 3L1.6076 18C0.837803 19.3333 1.80005 21 3.33965 21H20.6602C22.1998 21 23.162 19.3333 22.3922 18L13.732 3ZM12.6549 14.945H11.3289L10.9779 11.5V8.89999H12.9929V11.5L12.6549 14.945ZM13.0969 17.064C13.0969 17.675 12.6029 18.169 11.9919 18.169C11.3809 18.169 10.8869 17.675 10.8869 17.064C10.8869 16.453 11.3809 15.959 11.9919 15.959C12.6029 15.959 13.0969 16.453 13.0969 17.064Z"},null,-1)]),8,Tst)):D("",!0),n.icon==="close"?(h(),g("g",{key:35,fill:n.iconColor},t[32]||(t[32]=[c("path",{"fill-rule":"evenodd",d:"M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L12 10.5858L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L13.4142 12L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L12 13.4142L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L10.5858 12L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z"},null,-1)]),8,Est)):D("",!0),n.icon==="done"?(h(),g("svg",{key:36,fill:n.iconColor},t[33]||(t[33]=[c("path",{"fill-rule":"evenodd",d:"M18.6332 5.22604C19.0607 5.57577 19.1237 6.20579 18.7739 6.63324L10.381 16.8913C9.70231 17.7208 8.49044 17.8679 7.63306 17.2248L4.39997 14.8C3.95814 14.4686 3.8686 13.8418 4.19997 13.4C4.53134 12.9582 5.15814 12.8686 5.59997 13.2L8.83306 15.6248L17.226 5.36676C17.5757 4.93932 18.2058 4.87631 18.6332 5.22604Z"},null,-1)]),8,Ist)):D("",!0),n.icon==="download"?(h(),g("g",{key:37,fill:n.iconColor},t[34]||(t[34]=[c("path",{"fill-rule":"evenodd",d:"M6.29289 9.70711L7.70711 8.29289L11 11.5858L11 5C11 4.44771 11.4477 4 12 4C12.5523 4 13 4.44771 13 5V11.5858L16.2929 8.29289L17.7071 9.70711L12 15.4142L6.29289 9.70711Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M6 16V17C6 17.5523 6.44772 18 7 18L17 18C17.5523 18 18 17.5523 18 17V16H20V17C20 18.6569 18.6569 20 17 20H7C5.34315 20 4 18.6569 4 17V16H6Z"},null,-1)]),8,Pst)):D("",!0),n.icon==="grip-dots-vertical"?(h(),g("g",{key:38,fill:n.iconColor},t[35]||(t[35]=[wl('<path fill-rule="evenodd" d="M8 10C8 9.44772 8.22386 9 8.5 9H10.5C10.7761 9 11 9.44772 11 10C11 10.5523 10.7761 11 10.5 11H8.5C8.22386 11 8 10.5523 8 10Z"></path><path fill-rule="evenodd" d="M13 10C13 9.44772 13.2239 9 13.5 9H15.5C15.7761 9 16 9.44772 16 10C16 10.5523 15.7761 11 15.5 11H13.5C13.2239 11 13 10.5523 13 10Z"></path><path fill-rule="evenodd" d="M8 6C8 5.44772 8.22386 5 8.5 5H10.5C10.7761 5 11 5.44772 11 6C11 6.55228 10.7761 7 10.5 7H8.5C8.22386 7 8 6.55228 8 6Z"></path><path fill-rule="evenodd" d="M13 6C13 5.44772 13.2239 5 13.5 5H15.5C15.7761 5 16 5.44772 16 6C16 6.55228 15.7761 7 15.5 7H13.5C13.2239 7 13 6.55228 13 6Z"></path><path fill-rule="evenodd" d="M8 14C8 13.4477 8.22386 13 8.5 13H10.5C10.7761 13 11 13.4477 11 14C11 14.5523 10.7761 15 10.5 15H8.5C8.22386 15 8 14.5523 8 14Z"></path><path fill-rule="evenodd" d="M13 14C13 13.4477 13.2239 13 13.5 13H15.5C15.7761 13 16 13.4477 16 14C16 14.5523 15.7761 15 15.5 15H13.5C13.2239 15 13 14.5523 13 14Z"></path><path fill-rule="evenodd" d="M8 18C8 17.4477 8.22386 17 8.5 17H10.5C10.7761 17 11 17.4477 11 18C11 18.5523 10.7761 19 10.5 19H8.5C8.22386 19 8 18.5523 8 18Z"></path><path fill-rule="evenodd" d="M13 18C13 17.4477 13.2239 17 13.5 17H15.5C15.7761 17 16 17.4477 16 18C16 18.5523 15.7761 19 15.5 19H13.5C13.2239 19 13 18.5523 13 18Z"></path>',8)]),8,Ast)):D("",!0),n.icon==="refresh"?(h(),g("g",{key:39,fill:n.iconColor},t[36]||(t[36]=[c("path",{"fill-rule":"evenodd",d:"M13.2929 14.2929L14.7071 15.7071L11.4142 19L14.7071 22.2929L13.2929 23.7071L8.58579 19L13.2929 14.2929Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M17.5622 7.63399C17.0839 7.91013 16.92 8.52172 17.1962 9.00001C17.7228 9.91213 18 10.9468 18 12C18 13.0532 17.7228 14.0879 17.1962 15C16.6695 15.9121 15.9121 16.6696 15 17.1962C14.0879 17.7228 13.0532 18 12 18C11.4477 18 11 18.4477 11 19C11 19.5523 11.4477 20 12 20C13.4043 20 14.7838 19.6304 16 18.9282C17.2162 18.2261 18.2261 17.2162 18.9282 16C19.6304 14.7839 20 13.4043 20 12C20 10.5957 19.6304 9.21617 18.9282 8.00001C18.6521 7.52172 18.0405 7.35785 17.5622 7.63399Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M10.7071 9.70712L9.29289 8.29291L12.5858 5.00001L9.29289 1.70712L10.7071 0.292908L15.4142 5.00001L10.7071 9.70712Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M6.43782 16.366C6.91611 16.0899 7.07999 15.4783 6.80385 15C6.27724 14.0879 6 13.0532 6 12C6 10.9468 6.27724 9.91213 6.80385 9.00001C7.33046 8.0879 8.08788 7.33047 9 6.80386C9.91212 6.27725 10.9468 6.00001 12 6.00001C12.5523 6.00001 13 5.5523 13 5.00001C13 4.44773 12.5523 4.00001 12 4.00001C10.5957 4.00001 9.21615 4.36966 8 5.07181C6.78385 5.77396 5.77394 6.78386 5.0718 8.00001C4.36965 9.21617 4 10.5957 4 12C4 13.4043 4.36965 14.7839 5.0718 16C5.34794 16.4783 5.95953 16.6422 6.43782 16.366Z"},null,-1)]),8,Dst)):D("",!0),n.icon==="show"?(h(),g("g",{key:40,fill:n.iconColor},t[37]||(t[37]=[c("path",{"fill-rule":"evenodd",d:"M12 6C7.12963 6 4.36293 9.79405 3.32374 11.6125C3.26666 11.7124 3.22582 11.7841 3.19244 11.8464C3.16926 11.8897 3.15454 11.9196 3.14506 11.9404C3.15715 11.9622 3.17594 11.9935 3.20579 12.0394C3.24585 12.101 3.29433 12.1715 3.36133 12.2687C3.97253 13.1554 5.09889 14.6117 6.61334 15.8373C8.13111 17.0656 9.95988 18 12 18C14.0401 18 15.8688 17.0656 17.3866 15.8373C18.9011 14.6117 20.0274 13.1554 20.6386 12.2687C20.7056 12.1715 20.7541 12.101 20.7942 12.0394C20.824 11.9935 20.8428 11.9622 20.8549 11.9404C20.8454 11.9196 20.8307 11.8897 20.8075 11.8464C20.7741 11.7841 20.7333 11.7124 20.6762 11.6125C19.637 9.79405 16.8703 6 12 6ZM1.58728 10.6202C2.69919 8.67446 5.98183 4 12 4C18.0181 4 21.3007 8.67446 22.4127 10.6202C22.4255 10.6426 22.4387 10.6656 22.4523 10.6891C22.6388 11.0118 22.887 11.4416 22.8624 12.0257C22.8377 12.6105 22.5494 13.0244 22.3328 13.3353C22.3165 13.3587 22.3007 13.3815 22.2853 13.4037C21.6163 14.3743 20.3648 16 18.6448 17.3919C16.9281 18.7812 14.666 20 12 20C9.33395 20 7.07182 18.7812 5.35517 17.3919C3.63519 16 2.38361 14.3743 1.7146 13.4037C1.69928 13.3815 1.68341 13.3587 1.66713 13.3353C1.45057 13.0244 1.16223 12.6105 1.13757 12.0257C1.11292 11.4416 1.36119 11.0118 1.54761 10.6891C1.5612 10.6656 1.57447 10.6426 1.58728 10.6202Z"},null,-1),c("path",{d:"M16 12C16 14.2091 14.2091 16 12 16C9.79083 16 7.99997 14.2091 7.99997 12C7.99997 9.79086 9.79083 8 12 8C14.2091 8 16 9.79086 16 12Z"},null,-1)]),8,xst)):D("",!0),n.icon==="delete"?(h(),g("g",{key:41,fill:n.iconColor},t[38]||(t[38]=[c("path",{"fill-rule":"evenodd",d:"M10 16C9.44772 16 9 15.5523 9 15L9 12C9 11.4477 9.44771 11 10 11C10.5523 11 11 11.4477 11 12L11 15C11 15.5523 10.5523 16 10 16Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M14 16C13.4477 16 13 15.5523 13 15V12C13 11.4477 13.4477 11 14 11C14.5523 11 15 11.4477 15 12V15C15 15.5523 14.5523 16 14 16Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M4.02624 8.01671C3.78926 8.00054 3.47962 8 3 8V6C3.0107 6 3.02136 6 3.03198 6C3.05346 6 3.07478 6 3.09597 6H20.904C20.9252 6 20.9465 6 20.968 6L21 6V8C20.5204 8 20.2107 8.00054 19.9738 8.01671C19.7458 8.03227 19.6589 8.05888 19.6173 8.07612C19.3723 8.17761 19.1776 8.37229 19.0761 8.61732C19.0589 8.65893 19.0323 8.74576 19.0167 8.97376C19.0005 9.21074 19 9.52038 19 10L19 16.0658C19.0001 16.9523 19.0001 17.7161 18.9179 18.3278C18.8297 18.9833 18.631 19.6117 18.1213 20.1213C17.6117 20.631 16.9833 20.8297 16.3278 20.9179C15.7161 21.0001 14.9523 21.0001 14.0658 21H9.93417C9.04768 21.0001 8.28387 21.0001 7.67221 20.9179C7.01669 20.8297 6.38834 20.631 5.87868 20.1213C5.36902 19.6117 5.17027 18.9833 5.08214 18.3278C4.9999 17.7161 4.99995 16.9523 5 16.0658L5 10C5 9.52038 4.99946 9.21074 4.98329 8.97376C4.96773 8.74576 4.94112 8.65893 4.92388 8.61732C4.82239 8.37229 4.62771 8.17761 4.38268 8.07612C4.34107 8.05888 4.25424 8.03227 4.02624 8.01671ZM17.1728 8H6.8272C6.92099 8.27761 6.95955 8.55764 6.97865 8.83762C7.00002 9.15087 7.00001 9.52936 7 9.96801L7 16C7 16.9711 7.00212 17.5988 7.06431 18.0613C7.12262 18.495 7.21677 18.631 7.29289 18.7071C7.36902 18.7832 7.50496 18.8774 7.9387 18.9357C8.40121 18.9979 9.02892 19 10 19H14C14.9711 19 15.5988 18.9979 16.0613 18.9357C16.495 18.8774 16.631 18.7832 16.7071 18.7071C16.7832 18.631 16.8774 18.495 16.9357 18.0613C16.9979 17.5988 17 16.9711 17 16V9.96801C17 9.52936 17 9.15087 17.0213 8.83762C17.0405 8.55764 17.079 8.27761 17.1728 8Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M13.4059 2.12123C12.982 2.0399 12.4892 2 12 2C11.5108 2 11.018 2.0399 10.5941 2.12123C10.3821 2.16189 10.1746 2.21529 9.98663 2.28562C9.81588 2.34951 9.58299 2.45558 9.38595 2.63942C8.98214 3.01618 8.96021 3.64897 9.33698 4.05278C9.6925 4.43384 10.276 4.47484 10.68 4.16168C10.6823 4.16078 10.6848 4.15982 10.6875 4.15881C10.7408 4.13884 10.8335 4.11176 10.9709 4.08542C11.2455 4.03274 11.6087 4 12 4C12.3913 4 12.7545 4.03274 13.0291 4.08542C13.1665 4.11176 13.2592 4.13884 13.3125 4.1588C13.3152 4.15982 13.3177 4.16078 13.32 4.16168C13.724 4.47484 14.3075 4.43384 14.663 4.05278C15.0398 3.64897 15.0179 3.01618 14.614 2.63942C14.417 2.45558 14.1841 2.34951 14.0134 2.28562C13.8254 2.21529 13.6179 2.16189 13.4059 2.12123Z"},null,-1)]),8,Ost)):D("",!0),n.icon==="transaction"?(h(),g("g",{key:42,fill:n.iconColor},t[39]||(t[39]=[c("path",{"fill-rule":"evenodd",d:"M7.29289 3.29291L8.70711 4.70712L6.41421 7.00001L18 7.00001C19.6569 7.00001 21 8.34316 21 10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10C19 9.44773 18.5523 9.00001 18 9.00001L6.41421 9.00001L8.70711 11.2929L7.29289 12.7071L2.58579 8.00001L7.29289 3.29291Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M16.7071 11.2929L15.2929 12.7071L17.5858 15H5C4.44772 15 4 14.5523 4 14C4 13.4477 3.55228 13 3 13C2.44772 13 2 13.4477 2 14C2 15.6569 3.34315 17 5 17H17.5858L15.2929 19.2929L16.7071 20.7071L21.4142 16L16.7071 11.2929Z"},null,-1)]),8,Lst)):D("",!0),n.icon==="materials"?(h(),g("g",{key:43,fill:n.iconColor},t[40]||(t[40]=[c("path",{"fill-rule":"evenodd",d:"M8.99998 18C10.1046 18 11 18.8954 11 20H13C13 18.8954 13.8954 18 15 18L19.0544 18C19.4785 18.0001 19.8906 18.0002 20.2305 17.9545C20.6137 17.903 21.051 17.7774 21.4142 17.4142C21.7774 17.051 21.9029 16.6137 21.9545 16.2305C22.0002 15.8906 22.0001 15.4785 22 15.0544V5.9456C22.0001 5.52153 22.0002 5.10941 21.9545 4.76949C21.9029 4.38629 21.7774 3.94902 21.4142 3.5858C21.051 3.22259 20.6137 3.09706 20.2305 3.04554C19.8906 2.99984 19.4785 2.99992 19.0544 3.00001L17.9294 3.00001C16.5753 2.99998 15.4587 2.99995 14.5749 3.11877C13.6471 3.24351 12.8277 3.51548 12.1716 4.17159C12.1112 4.23197 12.0541 4.29374 12 4.35685C11.9459 4.29374 11.8888 4.23197 11.8284 4.17159C11.1723 3.51548 10.3529 3.24351 9.42505 3.11877C8.54129 2.99995 7.42468 2.99998 6.07056 3.00001L4.94558 3.00001C4.52151 2.99992 4.10938 2.99984 3.76946 3.04554C3.38626 3.09706 2.94899 3.22259 2.58577 3.5858C2.22255 3.94902 2.09703 4.38629 2.04551 4.76949C1.99981 5.10941 1.99989 5.52153 1.99998 5.94559L1.99998 15.0544C1.99989 15.4785 1.99981 15.8906 2.04551 16.2305C2.09703 16.6137 2.22255 17.051 2.58577 17.4142C2.94899 17.7774 3.38626 17.903 3.76946 17.9545C4.10938 18.0002 4.5215 18.0001 4.94556 18L8.99998 18ZM4.99998 5.00001C4.50031 5.00001 4.22615 5.00214 4.03596 5.02771L4.02868 5.02871L4.02768 5.03599C4.00211 5.22618 3.99998 5.50034 3.99998 6.00001V15C3.99998 15.4997 4.00211 15.7738 4.02768 15.964L4.02868 15.9713L4.03596 15.9723C4.22615 15.9979 4.50031 16 4.99998 16H8.99998C9.72856 16 10.4116 16.1948 11 16.5351V10C11 8.55753 10.9979 7.57627 10.8991 6.84145C10.8041 6.13539 10.6368 5.80837 10.4142 5.5858C10.1916 5.36323 9.86461 5.19586 9.15855 5.10093C8.42373 5.00214 7.44247 5.00001 5.99998 5.00001H4.99998ZM19 5.00001C19.4997 5.00001 19.7738 5.00214 19.964 5.02771L19.9713 5.02871L19.9723 5.03599C19.9979 5.22618 20 5.50034 20 6.00001V15C20 15.4997 19.9979 15.7738 19.9723 15.964L19.9713 15.9713L19.964 15.9723C19.7738 15.9979 19.4997 16 19 16H15C14.2714 16 13.5883 16.1948 13 16.5351V10C13 8.55753 13.0021 7.57627 13.1009 6.84145C13.1958 6.13539 13.3632 5.80837 13.5858 5.5858C13.8083 5.36323 14.1354 5.19586 14.8414 5.10093C15.5762 5.00214 16.5575 5.00001 18 5.00001H19Z"},null,-1)]),8,Mst)):D("",!0),n.icon==="hide"?(h(),g("g",{key:44,fill:n.iconColor},t[41]||(t[41]=[c("path",{"fill-rule":"evenodd",d:"M15.9202 12.7988C15.9726 12.5407 16 12.2736 16 12C16 9.79088 14.2091 8.00001 12 8.00001C11.7265 8.00001 11.4593 8.02747 11.2012 8.07979L15.9202 12.7988ZM8.66677 9.78801C8.24548 10.4216 8.00001 11.1821 8.00001 12C8.00001 14.2092 9.79087 16 12 16C12.8179 16 13.5785 15.7545 14.212 15.3333L8.66677 9.78801Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M16.5191 17.6405L15.0499 16.1712C14.0776 16.6805 13.0477 17 12 17C10.4742 17 8.98616 16.3224 7.65914 15.3677C6.34002 14.4186 5.26409 13.2558 4.58386 12.43C4.48409 12.3088 4.40958 12.2182 4.34785 12.1385C4.29899 12.0754 4.26786 12.0315 4.24756 12C4.26786 11.9685 4.29899 11.9246 4.34785 11.8615C4.40958 11.7818 4.48409 11.6912 4.58386 11.5701C5.24928 10.7622 6.29335 9.63188 7.57331 8.69465L6.14458 7.26592C4.79643 8.29618 3.72247 9.47006 3.04009 10.2985C3.01651 10.3272 2.99192 10.3566 2.96662 10.3869C2.6532 10.7624 2.22974 11.2696 2.22974 12C2.22974 12.7304 2.65318 13.2377 2.9666 13.6131C2.99183 13.6433 3.01657 13.6729 3.04009 13.7015C3.77996 14.5998 4.98018 15.9041 6.49111 16.9912C7.99416 18.0725 9.89008 19 12 19C13.67 19 15.206 18.419 16.5191 17.6405ZM8.80682 5.68552C9.79062 5.26873 10.8643 5.00001 12 5.00001C14.1099 5.00001 16.0059 5.92749 17.5089 7.00886C19.0198 8.09591 20.2201 9.40026 20.9599 10.2985C20.9835 10.3272 21.0081 10.3566 21.0334 10.3869C21.3468 10.7623 21.7703 11.2696 21.7703 12C21.7703 12.7304 21.3468 13.2377 21.0334 13.6131C21.0081 13.6434 20.9835 13.6728 20.9599 13.7015C20.4733 14.2923 19.7874 15.0589 18.945 15.8237L17.529 14.4077C18.3089 13.7081 18.9539 12.9912 19.4162 12.43C19.5159 12.3088 19.5904 12.2182 19.6522 12.1385C19.701 12.0754 19.7322 12.0315 19.7525 12C19.7322 11.9685 19.701 11.9246 19.6522 11.8615C19.5904 11.7818 19.5159 11.6912 19.4162 11.5701C18.7359 10.7442 17.66 9.5814 16.3409 8.63235C15.0139 7.67761 13.5258 7.00001 12 7.00001C11.449 7.00001 10.9029 7.08838 10.3676 7.24626L8.80682 5.68552Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M20.2929 18.7071L4.2929 2.70712L5.70712 1.29291L21.7071 17.2929L20.2929 18.7071Z"},null,-1)]),8,Nst)):D("",!0),n.icon==="menu"?(h(),g("g",{key:45,fill:n.iconColor},t[42]||(t[42]=[c("path",{"fill-rule":"evenodd",d:"M4 7C4 6.44772 4.44772 6 5 6H19C19.5523 6 20 6.44772 20 7C20 7.55228 19.5523 8 19 8H5C4.44772 8 4 7.55228 4 7Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M4 12C4 11.4477 4.44772 11 5 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H5C4.44772 13 4 12.5523 4 12Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M4 17C4 16.4477 4.44772 16 5 16H19C19.5523 16 20 16.4477 20 17C20 17.5523 19.5523 18 19 18H5C4.44772 18 4 17.5523 4 17Z"},null,-1)]),8,Rst)):D("",!0),n.icon==="menu-kebab"?(h(),g("g",{key:46,fill:n.iconColor},t[43]||(t[43]=[c("path",{d:"M13.5 6C13.5 6.82843 12.8284 7.5 12 7.5C11.1716 7.5 10.5 6.82843 10.5 6C10.5 5.17157 11.1716 4.5 12 4.5C12.8284 4.5 13.5 5.17157 13.5 6Z"},null,-1),c("path",{d:"M13.5 12C13.5 12.8284 12.8284 13.5 12 13.5C11.1716 13.5 10.5 12.8284 10.5 12C10.5 11.1716 11.1716 10.5 12 10.5C12.8284 10.5 13.5 11.1716 13.5 12Z"},null,-1),c("path",{d:"M13.5 18C13.5 18.8284 12.8284 19.5 12 19.5C11.1716 19.5 10.5 18.8284 10.5 18C10.5 17.1716 11.1716 16.5 12 16.5C12.8284 16.5 13.5 17.1716 13.5 18Z"},null,-1)]),8,jst)):D("",!0),n.icon==="bag"?(h(),g("g",{key:47,fill:n.iconColor},t[44]||(t[44]=[c("path",{"fill-rule":"evenodd",d:"M17 8.00129V8C17 5.23858 14.7614 3 12 3C9.23858 3 7 5.23858 7 8V8.00129C6.43735 8.00499 5.93865 8.01931 5.51471 8.07436C4.89847 8.15438 4.30687 8.33421 3.80895 8.79236C3.31103 9.25051 3.0827 9.82514 2.95178 10.4326C2.82998 10.9977 2.77105 11.7053 2.703 12.5226L2.1792 18.8081C2.14103 19.2651 2.10428 19.7051 2.12412 20.069C2.14637 20.4768 2.24473 20.9518 2.61505 21.3542C2.98536 21.7567 3.45051 21.8941 3.85509 21.9502C4.21604 22.0002 4.65756 22.0001 5.11611 22H18.8839C19.3424 22.0001 19.784 22.0002 20.1449 21.9502C20.5495 21.8941 21.0147 21.7567 21.385 21.3542C21.7553 20.9518 21.8537 20.4768 21.8759 20.069C21.8958 19.7051 21.859 19.2651 21.8208 18.8082L21.297 12.5225C21.229 11.7054 21.17 10.9977 21.0483 10.4326C20.9173 9.82514 20.689 9.25051 20.1911 8.79236C19.6932 8.33421 19.1016 8.15438 18.4853 8.07436C18.0614 8.01931 17.5627 8.00499 17 8.00129ZM7 12C7 12.5523 7.44772 13 8 13C8.55228 13 9 12.5523 9 12V10H15V12C15 12.5523 15.4477 13 16 13C16.5523 13 17 12.5523 17 12V10.0016C17.5303 10.0053 17.918 10.0175 18.2278 10.0577C18.6285 10.1097 18.7607 10.194 18.8369 10.2641C18.913 10.3342 19.008 10.4589 19.0931 10.854C19.1843 11.277 19.2343 11.8535 19.3091 12.7509L19.823 18.917C19.8676 19.4531 19.8902 19.7516 19.8789 19.96L19.8784 19.968L19.8705 19.9691C19.6637 19.9977 19.3644 20 18.8264 20H5.17361C4.63562 20 4.33628 19.9977 4.12949 19.9691L4.12161 19.968L4.12116 19.96C4.10979 19.7516 4.13239 19.4531 4.17707 18.917L4.69091 12.7509C4.76569 11.8535 4.81571 11.277 4.90689 10.854C4.99203 10.4589 5.087 10.3342 5.16317 10.2641C5.23934 10.194 5.37151 10.1097 5.77226 10.0577C6.08203 10.0175 6.46968 10.0053 7 10.0016V12ZM9 8.00001L15 8C15 6.34315 13.6569 5 12 5C10.3431 5 9 6.34315 9 8.00001Z"},null,-1)]),8,Fst)):D("",!0),n.icon==="star"?(h(),g("g",{key:48,fill:n.iconColor},t[45]||(t[45]=[c("path",{d:"M10.3074 7.21989C10.9494 5.61921 11.2705 4.81886 11.7921 4.70794C11.9292 4.67877 12.071 4.67877 12.2081 4.70794C12.7297 4.81886 13.0507 5.61921 13.6928 7.21989C14.0579 8.13017 14.2405 8.58531 14.5821 8.89488C14.6779 8.98171 14.7819 9.05904 14.8927 9.12579C15.2875 9.36377 15.7804 9.40791 16.7662 9.4962C18.435 9.64565 19.2693 9.72037 19.5241 10.1961C19.5769 10.2946 19.6128 10.4013 19.6303 10.5117C19.7148 11.0447 19.1014 11.6028 17.8746 12.7189L17.5339 13.0289C16.9604 13.5507 16.6736 13.8116 16.5077 14.1372C16.4082 14.3325 16.3415 14.5428 16.3102 14.7598C16.2581 15.1215 16.3421 15.5 16.51 16.257L16.5701 16.5274C16.8713 17.885 17.0219 18.5637 16.8339 18.8974C16.665 19.1971 16.3539 19.3889 16.0103 19.4053C15.6278 19.4236 15.0888 18.9844 14.0109 18.106C13.3007 17.5273 12.9455 17.2379 12.5513 17.1249C12.1911 17.0216 11.8091 17.0216 11.4488 17.1249C11.0546 17.2379 10.6995 17.5273 9.98929 18.106C8.91132 18.9844 8.37233 19.4236 7.98981 19.4053C7.64621 19.3889 7.33517 19.1971 7.1663 18.8974C6.97831 18.5637 7.1289 17.885 7.4301 16.5274L7.49011 16.257C7.65806 15.5 7.74204 15.1215 7.68992 14.7598C7.65866 14.5428 7.59195 14.3325 7.49245 14.1372C7.32657 13.8116 7.0398 13.5507 6.46626 13.0289L6.12558 12.7189C4.8988 11.6028 4.2854 11.0447 4.36987 10.5117C4.38737 10.4013 4.42325 10.2946 4.47602 10.1961C4.73082 9.72037 5.5652 9.64565 7.23396 9.4962C8.21975 9.40791 8.71264 9.36377 9.10748 9.12579C9.21823 9.05904 9.32224 8.98171 9.41806 8.89488C9.75967 8.58531 9.94224 8.13017 10.3074 7.21989Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M11.584 3.72982C11.8583 3.67148 12.1418 3.67148 12.4161 3.72982C13.1459 3.88502 13.5439 4.48748 13.7833 4.9266C14.0375 5.39296 14.2965 6.03872 14.5972 6.78859L14.6209 6.8476C14.8097 7.31821 14.929 7.61352 15.0395 7.83316C15.1422 8.03712 15.2066 8.11132 15.2536 8.15387C15.3015 8.19729 15.3535 8.23595 15.4089 8.26933C15.4623 8.30151 15.5523 8.34218 15.7804 8.38213C16.0251 8.425 16.346 8.45456 16.8554 8.50018L16.9204 8.506C17.6991 8.57569 18.3762 8.63629 18.8862 8.74627C19.3775 8.85221 20.0541 9.06748 20.4057 9.72399C20.5112 9.92104 20.583 10.1344 20.618 10.3552C20.7341 11.0882 20.3302 11.6661 20.0036 12.0473C19.6665 12.4408 19.1679 12.8943 18.596 13.4145L18.2069 13.7686C17.5754 14.3431 17.462 14.467 17.3988 14.5911C17.349 14.6888 17.3156 14.7939 17.3 14.9024C17.2801 15.0403 17.3014 15.2069 17.4863 16.0404L17.5562 16.3552C17.6984 16.9961 17.8188 17.5389 17.8763 17.9617C17.9278 18.3406 17.9788 18.9025 17.7051 19.3883C17.3673 19.9877 16.7453 20.3714 16.0581 20.4042C15.5011 20.4308 15.0218 20.133 14.7063 19.917C14.3543 19.6759 13.9233 19.3247 13.4145 18.91L13.3792 18.8812C13.0129 18.5827 12.7791 18.393 12.5891 18.26C12.4092 18.1341 12.3249 18.1003 12.2757 18.0862C12.0956 18.0345 11.9046 18.0345 11.7244 18.0862C11.6753 18.1003 11.591 18.1341 11.4111 18.26C11.2211 18.393 10.9873 18.5827 10.621 18.8812L10.5857 18.91C10.0768 19.3247 9.64582 19.6759 9.29381 19.917C8.97833 20.133 8.49905 20.4308 7.9421 20.4042C7.25491 20.3714 6.63282 19.9877 6.29508 19.3883C6.02137 18.9025 6.07236 18.3406 6.12387 17.9617C6.18133 17.5389 6.30178 16.9961 6.44399 16.3552L6.51385 16.0404C6.69877 15.2069 6.72001 15.0403 6.70015 14.9024C6.68452 14.7939 6.65116 14.6888 6.60141 14.5911C6.53817 14.467 6.4248 14.3431 5.7933 13.7686L5.45263 13.4586C5.43643 13.4439 5.42028 13.4292 5.4042 13.4146C4.83228 12.8943 4.3337 12.4408 3.9966 12.0473C3.66999 11.6661 3.26603 11.0882 3.3822 10.3552C3.41719 10.1344 3.48895 9.92105 3.59449 9.72398C3.9461 9.06748 4.62267 8.85221 5.11396 8.74627C5.62398 8.63629 6.30107 8.57569 7.07978 8.506C7.10136 8.50407 7.12302 8.50213 7.14476 8.50018C7.65417 8.45456 7.97502 8.425 8.21977 8.38213C8.44783 8.34218 8.53788 8.30151 8.59127 8.26933C8.64665 8.23595 8.69865 8.19729 8.74656 8.15387C8.79352 8.11132 8.85798 8.03712 8.96061 7.83316C9.07113 7.61352 9.19048 7.31821 9.37926 6.8476C9.38718 6.82786 9.39507 6.80818 9.40293 6.78857C9.70367 6.03871 9.96266 5.39295 10.2169 4.9266C10.4563 4.48748 10.8543 3.88502 11.584 3.72982ZM11.9729 5.88391C11.7824 6.23344 11.5667 6.7665 11.2355 7.59218L11.2215 7.62716C11.0509 8.05242 10.9004 8.42758 10.7472 8.73215C10.5818 9.06072 10.3842 9.36887 10.0896 9.63589C9.94583 9.76613 9.7898 9.88213 9.62368 9.98226C9.28224 10.1881 8.92842 10.2884 8.56488 10.3521C8.22716 10.4113 7.82152 10.4476 7.36066 10.4889L7.32316 10.4922C6.46043 10.5695 5.90948 10.6207 5.53555 10.7013C5.5184 10.705 5.5022 10.7087 5.48692 10.7123C5.49586 10.723 5.50535 10.7343 5.51542 10.7461C5.7611 11.0328 6.16392 11.4019 6.79854 11.9792L7.13921 12.2892C7.17246 12.3194 7.20547 12.3494 7.23822 12.3791C7.71335 12.8101 8.1323 13.1902 8.38349 13.6833C8.53274 13.9762 8.63281 14.2918 8.6797 14.6172C8.75862 15.1649 8.63531 15.717 8.49546 16.343C8.48582 16.3862 8.4761 16.4297 8.46637 16.4736L8.40636 16.744C8.25165 17.4413 8.15045 17.9014 8.10564 18.2311C8.10162 18.2606 8.09828 18.2877 8.09551 18.3124C8.11638 18.2989 8.13908 18.2837 8.1637 18.2669C8.43821 18.0789 8.80391 17.782 9.3576 17.3308L9.38342 17.3098C9.71648 17.0383 10.007 16.8016 10.264 16.6216C10.5378 16.43 10.8281 16.2626 11.1732 16.1636C11.7136 16.0087 12.2866 16.0087 12.827 16.1636C13.172 16.2626 13.4623 16.43 13.7361 16.6216C13.9932 16.8016 14.2837 17.0383 14.6167 17.3097L14.6426 17.3308C15.1962 17.782 15.5619 18.0789 15.8365 18.2669C15.8611 18.2837 15.8838 18.2989 15.9046 18.3124C15.9019 18.2877 15.8985 18.2606 15.8945 18.2311C15.8497 17.9014 15.7485 17.4413 15.5938 16.744L15.5338 16.4736C15.5241 16.4297 15.5143 16.3862 15.5047 16.343C15.3648 15.717 15.2415 15.1649 15.3205 14.6172C15.3673 14.2918 15.4674 13.9762 15.6167 13.6833C15.8679 13.1902 16.2868 12.8101 16.7619 12.3791C16.7947 12.3494 16.8277 12.3194 16.8609 12.2892L17.2016 11.9792C17.8362 11.4019 18.2391 11.0328 18.4847 10.7461C18.4948 10.7343 18.5043 10.723 18.5132 10.7123C18.498 10.7087 18.4818 10.705 18.4646 10.7013C18.0907 10.6207 17.5397 10.5695 16.677 10.4922L16.6395 10.4889C16.1786 10.4476 15.773 10.4113 15.4353 10.3521C15.0717 10.2884 14.7179 10.1881 14.3765 9.98226C14.2104 9.88213 14.0543 9.76613 13.9106 9.63589C13.6159 9.36887 13.4183 9.06072 13.253 8.73215C13.0997 8.42758 12.9493 8.05242 12.7787 7.62716L12.7647 7.59218C12.4335 6.7665 12.2178 6.23344 12.0272 5.88391C12.0178 5.86661 12.0088 5.85037 12.0001 5.83513C11.9914 5.85037 11.9823 5.86661 11.9729 5.88391ZM18.7429 10.7857C18.7428 10.7857 18.7425 10.7855 18.7418 10.7851L18.7429 10.7857ZM18.6509 10.5171C18.6513 10.516 18.6515 10.5155 18.6516 10.5155L18.6509 10.5171ZM8.08497 18.5296C8.08522 18.5312 8.0853 18.532 8.08528 18.532L8.08497 18.5296ZM5.3486 10.5155C5.34862 10.5155 5.34888 10.5161 5.34931 10.5172L5.3486 10.5155ZM5.25849 10.785C5.25772 10.7855 5.25731 10.7857 5.2573 10.7857L5.25849 10.785Z"},null,-1)]),8,zst)):D("",!0),n.icon==="arrow-left"?(h(),g("g",{key:49,fill:n.iconColor},t[46]||(t[46]=[c("path",{"fill-rule":"evenodd",d:"M8.29289 7.29291L9.70711 8.70712L7.41421 11H17C17.5523 11 18 11.4477 18 12C18 12.5523 17.5523 13 17 13H7.41421L9.70711 15.2929L8.29289 16.7071L3.58578 12L8.29289 7.29291Z"},null,-1)]),8,Ust)):D("",!0),n.icon==="arrow-right"?(h(),g("g",{key:50,fill:n.iconColor},t[47]||(t[47]=[c("path",{"fill-rule":"evenodd",d:"M14.7071 7.29291L13.2929 8.70712L15.5858 11H6C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13H15.5858L13.2929 15.2929L14.7071 16.7071L19.4142 12L14.7071 7.29291Z"},null,-1)]),8,Bst)):D("",!0),n.icon==="arrow-down"?(h(),g("g",{key:51,fill:n.iconColor},t[48]||(t[48]=[c("path",{"fill-rule":"evenodd",d:"M7.29289 14.7071L8.70711 13.2929L11 15.5858L11 6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6L13 15.5858L15.2929 13.2929L16.7071 14.7071L12 19.4142L7.29289 14.7071Z"},null,-1)]),8,Hst)):D("",!0),n.icon==="arrow-up"?(h(),g("g",{key:52,fill:n.iconColor},t[49]||(t[49]=[c("path",{"fill-rule":"evenodd",d:"M16.7071 9.29289L15.2929 10.7071L13 8.41421L13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18L11 8.41421L8.70711 10.7071L7.29289 9.29289L12 4.58578L16.7071 9.29289Z"},null,-1)]),8,Vst)):D("",!0),n.icon==="chevron-down"?(h(),g("g",{key:53,fill:n.iconColor},t[50]||(t[50]=[c("path",{"fill-rule":"evenodd",d:"M18.7071 9.70711L17.2929 8.2929L12 13.5858L6.70709 8.2929L5.29288 9.70711L12 16.4142L18.7071 9.70711Z"},null,-1)]),8,qst)):D("",!0),n.icon==="chevron-up"?(h(),g("g",{key:54,fill:n.iconColor},t[51]||(t[51]=[c("path",{"fill-rule":"evenodd",d:"M18.7071 14.2929L17.2929 15.7071L12 10.4142L6.70709 15.7071L5.29288 14.2929L12 7.58578L18.7071 14.2929Z"},null,-1)]),8,Yst)):D("",!0),n.icon==="chevron-left"?(h(),g("g",{key:55,fill:n.iconColor},t[52]||(t[52]=[c("path",{"fill-rule":"evenodd",d:"M14.2929 5.29291L15.7071 6.70712L10.4142 12L15.7071 17.2929L14.2929 18.7071L7.58578 12L14.2929 5.29291Z"},null,-1)]),8,Wst)):D("",!0),n.icon==="chevron-right"?(h(),g("g",{key:56,fill:n.iconColor},t[53]||(t[53]=[c("path",{"fill-rule":"evenodd",d:"M9.70711 5.29291L8.2929 6.70712L13.5858 12L8.2929 17.2929L9.70711 18.7071L16.4142 12L9.70711 5.29291Z"},null,-1)]),8,Gst)):D("",!0),n.icon==="rating"?(h(),g("g",{key:57,fill:n.iconColor},t[54]||(t[54]=[wl('<path fill-rule="evenodd" d="M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z"></path><path fill-rule="evenodd" d="M7.12532 15.1013C7.48687 14.6838 8.11841 14.6384 8.5359 15C8.88694 15.304 9.39187 15.5565 10 15.7321C10.6081 15.9076 11.2978 16 12 16C12.7022 16 13.3919 15.9076 14 15.7321C14.6081 15.5565 15.1131 15.304 15.4641 15C15.8816 14.6384 16.5131 14.6838 16.8747 15.1013C17.2362 15.5188 17.1909 16.1503 16.7734 16.5119C16.1391 17.0612 15.3457 17.4252 14.5547 17.6536C13.7478 17.8865 12.8695 18 12 18C11.1305 18 10.2522 17.8865 9.4453 17.6536C8.65431 17.4252 7.86087 17.0612 7.22659 16.5119C6.8091 16.1503 6.76376 15.5188 7.12532 15.1013Z"></path><path d="M10 10C10 10.5523 9.55228 11 9 11C8.44772 11 8 10.5523 8 10C8 9.44772 8.44772 9 9 9C9.55228 9 10 9.44772 10 10Z"></path><path fill-rule="evenodd" d="M10.5 10C10.5 10.8284 9.82843 11.5 9 11.5C8.17157 11.5 7.5 10.8284 7.5 10C7.5 9.17157 8.17157 8.5 9 8.5C9.82843 8.5 10.5 9.17157 10.5 10ZM9 11C9.55228 11 10 10.5523 10 10C10 9.44772 9.55228 9 9 9C8.44772 9 8 9.44772 8 10C8 10.5523 8.44772 11 9 11Z"></path><path d="M16 10C16 10.5523 15.5523 11 15 11C14.4477 11 14 10.5523 14 10C14 9.44772 14.4477 9 15 9C15.5523 9 16 9.44772 16 10Z"></path><path fill-rule="evenodd" d="M16.5 10C16.5 10.8284 15.8284 11.5 15 11.5C14.1716 11.5 13.5 10.8284 13.5 10C13.5 9.17157 14.1716 8.5 15 8.5C15.8284 8.5 16.5 9.17157 16.5 10ZM15 11C15.5523 11 16 10.5523 16 10C16 9.44772 15.5523 9 15 9C14.4477 9 14 9.44772 14 10C14 10.5523 14.4477 11 15 11Z"></path>',6)]),8,Zst)):D("",!0),n.icon==="check-circle"?(h(),g("g",{key:58,fill:n.iconColor},t[55]||(t[55]=[c("path",{"fill-rule":"evenodd",d:"M12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M16.7682 9.64018L11.0672 16.4814L7.29289 12.7071L8.70711 11.2929L10.9328 13.5186L15.2318 8.35982L16.7682 9.64018Z"},null,-1)]),8,Kst)):D("",!0),n.icon==="check-fill"?(h(),g("g",{key:59,fill:n.iconColor},t[56]||(t[56]=[c("path",{"fill-rule":"evenodd",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM11.7682 15.6402L16.7682 9.64018L15.2318 8.35982L10.9328 13.5186L8.70711 11.2929L7.29289 12.7071L10.2929 15.7071L11.0672 16.4814L11.7682 15.6402Z"},null,-1)]),8,Jst)):D("",!0),n.icon==="block"?(h(),g("g",{key:60,fill:n.iconColor},t[57]||(t[57]=[c("path",{"fill-rule":"evenodd",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM7.5 13.125H16.5V10.875H7.5V13.125Z"},null,-1)]),8,Xst)):D("",!0),n.icon==="video"?(h(),g("g",{key:61,fill:n.iconColor},t[58]||(t[58]=[c("path",{"fill-rule":"evenodd",d:"M9.44801 2.99998C9.46212 2.99999 9.47635 3 9.49071 3H14.5093C14.5237 3 14.5379 2.99999 14.552 2.99998C14.7556 2.99989 14.9335 2.99981 15.1053 3.01948C15.993 3.12116 16.7892 3.61322 17.2771 4.36172C17.3715 4.50656 17.451 4.66574 17.542 4.84789C17.5483 4.86052 17.5547 4.87326 17.5611 4.88611L18.382 6.52786C18.5266 6.81722 18.8224 7 19.1459 7C20.7222 7 22 8.27782 22 9.8541V14.9066C22 15.8669 22 16.6593 21.9379 17.3005C21.8731 17.968 21.7337 18.5763 21.3869 19.1281C21.0672 19.6369 20.6369 20.0672 20.1281 20.3869C19.5763 20.7337 18.968 20.8731 18.3005 20.9378C17.6593 21 16.8669 21 15.9066 21H8.09337C7.13307 21 6.34066 21 5.6995 20.9378C5.03197 20.8731 4.42374 20.7337 3.87187 20.3869C3.36306 20.0672 2.93281 19.6369 2.6131 19.1281C2.26634 18.5763 2.12689 17.968 2.06215 17.3005C1.99997 16.6593 1.99998 15.8669 2 14.9066L2 9.8541C2 8.27782 3.27783 7 4.8541 7C5.17761 7 5.47336 6.81722 5.61804 6.52786L6.43891 4.88611C6.44533 4.87327 6.45169 4.86053 6.45799 4.84791C6.54897 4.66575 6.62847 4.50657 6.72289 4.36172C7.21082 3.61322 8.00699 3.12116 8.89468 3.01948C9.06646 2.99981 9.24439 2.99989 9.44801 2.99998ZM9.49071 4.99999C9.2206 4.99999 9.16544 5.00155 9.12227 5.00649C8.82638 5.04038 8.56099 5.2044 8.39834 5.4539C8.37461 5.49031 8.34856 5.53894 8.22776 5.78054L7.40689 7.42229C6.92343 8.38921 5.93516 9 4.8541 9C4.3824 9 4 9.38239 4 9.8541V14.8571C4 15.8793 4.0011 16.5742 4.05281 17.1074C4.10303 17.6252 4.19349 17.8841 4.30655 18.0641C4.46641 18.3185 4.68153 18.5336 4.93594 18.6934C5.11588 18.8065 5.37475 18.897 5.89256 18.9472C6.42575 18.9989 7.1207 19 8.14286 19H15.8571C16.8793 19 17.5743 18.9989 18.1074 18.9472C18.6253 18.897 18.8841 18.8065 19.0641 18.6934C19.3185 18.5336 19.5336 18.3185 19.6935 18.0641C19.8065 17.8841 19.897 17.6252 19.9472 17.1074C19.9989 16.5742 20 15.8793 20 14.8571V9.8541C20 9.38239 19.6176 9 19.1459 9C18.0648 9 17.0766 8.38921 16.5931 7.42229L15.7722 5.78054C15.6514 5.53895 15.6254 5.49031 15.6017 5.4539C15.439 5.2044 15.1736 5.04038 14.8777 5.00649C14.8346 5.00155 14.7794 4.99999 14.5093 4.99999H9.49071Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M12 15C13.1046 15 14 14.1046 14 13C14 11.8954 13.1046 11 12 11C10.8954 11 10 11.8954 10 13C10 14.1046 10.8954 15 12 15ZM12 17C14.2091 17 16 15.2091 16 13C16 10.7909 14.2091 9 12 9C9.79086 9 8 10.7909 8 13C8 15.2091 9.79086 17 12 17Z"},null,-1)]),8,Qst)):D("",!0),n.icon==="verified-author"?(h(),g("g",{key:62,fill:n.iconColor},t[59]||(t[59]=[c("path",{"fill-rule":"evenodd",d:"M9.09717 2.4306C11.3111 1.75901 13.6894 1.87585 15.8269 2.76121C17.9643 3.64657 19.7286 5.24566 20.8192 7.28604C21.9098 9.32641 22.2592 11.6818 21.8079 13.9509C21.3565 16.22 20.1323 18.2624 18.3439 19.7301C16.5555 21.1978 14.3136 22 12 22C11.4477 22 11 21.5523 11 21C11 20.4477 11.4477 20 12 20C13.8509 20 15.6444 19.3582 17.0752 18.1841C18.5059 17.0099 19.4852 15.376 19.8463 13.5607C20.2074 11.7454 19.9279 9.86113 19.0554 8.22883C18.1829 6.59653 16.7714 5.31725 15.0615 4.60897C13.3515 3.90068 11.4489 3.80721 9.67774 4.34448C7.90659 4.88175 6.37653 6.01652 5.34826 7.55544C4.31999 9.09436 3.85712 10.9422 4.03854 12.7841C4.21995 14.6261 5.03442 16.3481 6.34316 17.6569C6.73368 18.0474 6.73368 18.6805 6.34316 19.0711C5.95263 19.4616 5.31947 19.4616 4.92895 19.0711C3.29302 17.4351 2.27494 15.2826 2.04817 12.9802C1.8214 10.6778 2.39998 8.36795 3.68532 6.4443C4.97066 4.52065 6.88324 3.10219 9.09717 2.4306Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M16.6402 9.23178C16.2159 8.87822 15.5854 8.93554 15.2318 9.35982L11.6338 13.6774C11.2871 14.0934 11.0922 14.3238 10.9366 14.4653C10.9346 14.4672 10.9326 14.4689 10.9306 14.4707C10.9285 14.4691 10.9264 14.4675 10.9242 14.4659C10.7564 14.339 10.5415 14.1272 10.1585 13.7443L8.70712 12.2929C8.3166 11.9024 7.68343 11.9024 7.29291 12.2929C6.90238 12.6834 6.90238 13.3166 7.29291 13.7071L8.7443 15.1585C8.75793 15.1721 8.77153 15.1857 8.78511 15.1993C9.11161 15.5259 9.42571 15.8402 9.71795 16.0611C10.0453 16.3087 10.474 16.5415 11.0234 16.5165C11.5729 16.4916 11.9787 16.221 12.2823 15.9448C12.5534 15.6983 12.8377 15.3569 13.1333 15.0021C13.1456 14.9873 13.1579 14.9725 13.1703 14.9577L16.7682 10.6402C17.1218 10.2159 17.0645 9.58535 16.6402 9.23178Z"},null,-1)]),8,eat)):D("",!0),n.icon==="home"?(h(),g("g",{key:63,fill:n.iconColor},t[60]||(t[60]=[c("path",{"fill-rule":"evenodd",d:"M10.8813 5.38459C10.3413 5.74126 9.69737 6.29078 8.74607 7.10618L7.74607 7.96333C6.6457 8.9065 6.34459 9.19277 6.183 9.54409C6.02142 9.89542 6.00003 10.3103 6.00003 11.7596V16C6.00003 16.9711 6.00215 17.5988 6.06433 18.0613C6.12265 18.495 6.2168 18.631 6.29292 18.7071C6.36905 18.7832 6.50499 18.8774 6.93873 18.9357C7.40124 18.9979 8.02895 19 9.00003 19H15C15.9711 19 16.5988 18.9979 17.0613 18.9357C17.4951 18.8774 17.631 18.7832 17.7071 18.7071C17.7833 18.631 17.8774 18.495 17.9357 18.0613C17.9979 17.5988 18 16.9711 18 16V11.7596C18 10.3103 17.9786 9.89542 17.8171 9.54409C17.6555 9.19277 17.3544 8.9065 16.254 7.96333L15.254 7.10618C14.3027 6.29078 13.6587 5.74126 13.1187 5.38459C12.6021 5.04337 12.2846 4.95123 12 4.95123C11.7154 4.95123 11.398 5.04337 10.8813 5.38459ZM9.77912 3.71572C10.4716 3.25838 11.1749 2.95123 12 2.95123C12.8252 2.95123 13.5285 3.25838 14.2209 3.71572C14.8781 4.14974 15.6167 4.7829 16.507 5.54601L17.5556 6.44481C17.604 6.4863 17.6518 6.52722 17.699 6.56762C18.5896 7.32965 19.2662 7.90863 19.6341 8.70838C20.0019 9.50813 20.0011 10.3987 20.0001 11.5708C20.0001 11.6329 20 11.6959 20 11.7596L20 16.0658C20.0001 16.9523 20.0001 17.7161 19.9179 18.3278C19.8298 18.9833 19.631 19.6117 19.1213 20.1213C18.6117 20.631 17.9833 20.8297 17.3278 20.9179C16.7162 21.0001 15.9523 21.0001 15.0658 21H8.93422C8.04772 21.0001 7.2839 21.0001 6.67224 20.9179C6.01672 20.8297 5.38837 20.631 4.87871 20.1213C4.36905 19.6117 4.1703 18.9833 4.08217 18.3278C3.99993 17.7161 3.99998 16.9523 4.00003 16.0658L4.00003 11.7596C4.00003 11.6959 3.99997 11.6329 3.99992 11.5708C3.99891 10.3987 3.99814 9.50813 4.36598 8.70838C4.73381 7.90863 5.41046 7.32965 6.30104 6.56763C6.34826 6.52722 6.39608 6.48631 6.44449 6.44481L7.44449 5.58767C7.46074 5.57374 7.47694 5.55985 7.4931 5.54601C8.38334 4.7829 9.12198 4.14974 9.77912 3.71572Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M8.50003 15C8.50003 13.8954 9.39546 13 10.5 13H13.5C14.6046 13 15.5 13.8954 15.5 15V20C15.5 20.5523 15.0523 21 14.5 21C13.9477 21 13.5 20.5523 13.5 20V15H10.5V20C10.5 20.5523 10.0523 21 9.50003 21C8.94774 21 8.50003 20.5523 8.50003 20V15Z"},null,-1)]),8,tat)):D("",!0),n.icon==="phone"?(h(),g("g",{key:64,fill:n.iconColor},t[61]||(t[61]=[c("path",{"fill-rule":"evenodd",d:"M7.00062 4.41481C5.48461 5.99099 5.32968 8.43954 6.64702 10.196L7.82859 11.7714C9.07938 13.4391 10.5609 14.9206 12.2286 16.1714L13.804 17.353C15.5605 18.6703 18.009 18.5154 19.5852 16.9994L17 14.4142L15.9789 15.4354C15.5122 15.902 14.7993 16.0177 14.2091 15.7225C11.6422 14.4391 9.56088 12.3578 8.27745 9.79094C7.98232 9.20067 8.09801 8.48778 8.56465 8.02114L9.5858 6.99999L7.00062 4.41481ZM5.64814 2.93765C6.39476 2.19103 7.60527 2.19103 8.35189 2.93765L11 5.58578C11.7811 6.36682 11.7811 7.63315 11 8.4142L10.2205 9.19373C11.2664 11.1388 12.8612 12.7336 14.8063 13.7795L15.5858 13C16.3668 12.2189 17.6332 12.2189 18.4142 13L21.0624 15.6481C21.809 16.3947 21.809 17.6052 21.0624 18.3519C18.7852 20.629 15.1803 20.8852 12.604 18.953L11.0286 17.7714C9.20925 16.4069 7.59309 14.7908 6.22859 12.9714L5.04702 11.396C3.11483 8.81974 3.37103 5.21476 5.64814 2.93765Z"},null,-1)]),8,nat)):D("",!0),n.icon==="close-circle"?(h(),g("g",{key:65,fill:n.iconColor},t[62]||(t[62]=[c("path",{"fill-rule":"evenodd",d:"M18.364 5.63604C21.8787 9.15076 21.8787 14.8492 18.364 18.364C14.8492 21.8787 9.15076 21.8787 5.63604 18.364C2.12132 14.8492 2.12132 9.15076 5.63604 5.63604C9.15076 2.12132 14.8492 2.12132 18.364 5.63604ZM9.61351 8.02252L12 10.409L14.3865 8.02252L15.9775 9.61351L13.591 12L15.9775 14.3865L14.3865 15.9775L12 13.591L9.61351 15.9775L8.02252 14.3865L10.409 12L8.02252 9.61351L9.61351 8.02252Z"},null,-1)]),8,oat)):D("",!0),n.icon==="secure"?(h(),g("g",{key:66,fill:n.iconColor},t[63]||(t[63]=[c("path",{"fill-rule":"evenodd",d:"M20.2208 5.19464L13.5194 2.31292C12.5491 1.89569 11.4509 1.89569 10.4806 2.31292L3.77925 5.19464C3.30651 5.39793 3 5.86434 3 6.3804V13.157C3 15.6567 4.20316 18.0026 6.23045 19.4556L10.5054 22.5194C11.3995 23.1602 12.6005 23.1602 13.4946 22.5194L17.7696 19.4556C19.7968 18.0026 21 15.6567 21 13.157V6.3804C21 5.86434 20.6935 5.39793 20.2208 5.19464ZM16.8611 10.2109C17.3047 9.6545 17.2148 8.84267 16.6603 8.39759C16.1058 7.95251 15.2968 8.04271 14.8532 8.59906L10.6077 13.9239L9.052 12.3629C8.54989 11.8591 7.73582 11.8591 7.23372 12.3629C6.73162 12.8667 6.73162 13.6836 7.23372 14.1874L9.29728 16.2579C10.1101 17.0734 11.4489 16.999 12.1669 16.0984L16.8611 10.2109Z"},null,-1)]),8,iat)):D("",!0),n.icon==="user-add"?(h(),g("g",{key:67,fill:n.iconColor},t[64]||(t[64]=[c("path",{"fill-rule":"evenodd",d:"M12 5C10.3432 5 9.00002 6.34315 9.00002 8C9.00002 9.65685 10.3432 11 12 11C13.6569 11 15 9.65685 15 8C15 6.34315 13.6569 5 12 5ZM7.00002 8C7.00002 5.23858 9.23859 3 12 3C14.7614 3 17 5.23858 17 8C17 10.7614 14.7614 13 12 13C9.23859 13 7.00002 10.7614 7.00002 8Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M13.3267 15.0759C12.8886 15.0255 12.4452 15 12 15C10.0805 15 8.19383 15.4738 6.63113 16.3732C5.06902 17.2722 3.88124 18.5702 3.33091 20.1106C3.1451 20.6307 3.41608 21.203 3.93617 21.3888C4.45626 21.5746 5.02851 21.3036 5.21432 20.7835C5.57558 19.7723 6.39653 18.8157 7.62872 18.1066C8.64272 17.523 9.86375 17.1503 11.158 17.0368C11.4889 16.0601 12.3091 15.3092 13.3267 15.0759Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M18 12.75C18.6904 12.75 19.25 13.3096 19.25 14L19.25 22C19.25 22.6904 18.6904 23.25 18 23.25C17.3097 23.25 16.75 22.6904 16.75 22L16.75 14C16.75 13.3096 17.3097 12.75 18 12.75Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M23.25 18C23.25 18.6904 22.6904 19.25 22 19.25H14C13.3097 19.25 12.75 18.6904 12.75 18C12.75 17.3096 13.3097 16.75 14 16.75L22 16.75C22.6904 16.75 23.25 17.3096 23.25 18Z"},null,-1)]),8,rat)):D("",!0),n.icon==="gift"?(h(),g("g",{key:68,fill:n.iconColor},t[65]||(t[65]=[wl('<path fill-rule="evenodd" d="M4.94561 7.00001C4.96372 7.00001 4.98186 7.00001 5.00001 7.00001H19C19.0182 7.00001 19.0363 7.00001 19.0544 7.00001C19.4785 6.99992 19.8906 6.99984 20.2305 7.04554C20.6137 7.09706 21.051 7.22258 21.4142 7.5858C21.7774 7.94901 21.903 8.38629 21.9545 8.76949C22.0002 9.10941 22.0001 9.52155 22 9.94562C22 9.96373 22 9.98186 22 10V11.5265C22 11.7365 22.0001 11.9412 21.9882 12.1152C21.9752 12.3056 21.9447 12.5313 21.8478 12.7654C21.6448 13.2554 21.2554 13.6448 20.7654 13.8478C20.5313 13.9447 20.3056 13.9752 20.1152 13.9882C19.9412 14.0001 19.7365 14 19.5265 14L19.5 14C19.2534 14 19.1185 14.0006 19.0209 14.0072C19.0164 14.0075 19.0121 14.0078 19.0082 14.0081C19.0078 14.0121 19.0075 14.0164 19.0072 14.0209C19.0006 14.1185 19 14.2534 19 14.5V18C19 18.0182 19 18.0363 19 18.0544C19.0001 18.4785 19.0002 18.8906 18.9545 19.2305C18.903 19.6137 18.7774 20.051 18.4142 20.4142C18.051 20.7774 17.6137 20.903 17.2305 20.9545C16.8906 21.0002 16.4785 21.0001 16.0544 21C16.0363 21 16.0182 21 16 21H8.00001C7.98186 21 7.96372 21 7.9456 21C7.52153 21.0001 7.10941 21.0002 6.7695 20.9545C6.38629 20.903 5.94902 20.7774 5.5858 20.4142C5.22259 20.051 5.09706 19.6137 5.04554 19.2305C4.99984 18.8906 4.99992 18.4785 5.00001 18.0544C5.00001 18.0363 5.00001 18.0182 5.00001 18V14.5C5.00001 14.2534 4.99947 14.1185 4.99282 14.0209C4.99251 14.0164 4.9922 14.0121 4.99188 14.0081C4.98789 14.0078 4.98363 14.0075 4.9791 14.0072C4.88158 14.0006 4.74667 14 4.50001 14L4.47353 14C4.26349 14 4.05887 14.0001 3.88479 13.9882C3.69442 13.9752 3.46869 13.9447 3.23465 13.8478C2.74459 13.6448 2.35524 13.2554 2.15226 12.7654C2.05531 12.5313 2.02484 12.3056 2.01185 12.1152C1.99997 11.9412 1.99999 11.7365 2.00001 11.5265C2.00001 11.5177 2.00001 11.5088 2.00001 11.5V10C2.00001 9.98186 2.00001 9.96372 2.00001 9.94561C1.99992 9.52154 1.99984 9.10941 2.04554 8.76949C2.09706 8.38629 2.22259 7.94901 2.5858 7.5858C2.94902 7.22258 3.38629 7.09706 3.76949 7.04554C4.10941 6.99984 4.52154 6.99992 4.94561 7.00001ZM4.02871 9.02871C4.02838 9.03108 4.02804 9.03351 4.02771 9.03599C4.00214 9.22618 4.00001 9.50034 4.00001 10V11.5C4.00001 11.7467 4.00056 11.8816 4.00721 11.9791C4.00752 11.9836 4.00783 11.9879 4.00815 11.9919C4.01214 11.9922 4.01639 11.9925 4.02093 11.9928C4.11845 11.9995 4.25336 12 4.50001 12C4.50885 12 4.51767 12 4.52648 12C4.73653 12 4.94116 12 5.11524 12.0118C5.30561 12.0248 5.53134 12.0553 5.76538 12.1523C6.25544 12.3552 6.64478 12.7446 6.84777 13.2346C6.94472 13.4687 6.97519 13.6944 6.98818 13.8848C7.00006 14.0589 7.00004 14.2635 7.00002 14.4735L7.00001 18C7.00001 18.4997 7.00214 18.7738 7.02771 18.964C7.02804 18.9665 7.02837 18.9689 7.02871 18.9713C7.03108 18.9717 7.03351 18.972 7.03599 18.9723C7.22618 18.9979 7.50034 19 8.00001 19H16C16.4997 19 16.7738 18.9979 16.964 18.9723C16.9665 18.972 16.9689 18.9717 16.9713 18.9713C16.9717 18.9689 16.972 18.9665 16.9723 18.964C16.9979 18.7738 17 18.4997 17 18L17 14.4735C17 14.2635 17 14.0589 17.0118 13.8848C17.0248 13.6944 17.0553 13.4687 17.1523 13.2346C17.3552 12.7446 17.7446 12.3552 18.2346 12.1523C18.4687 12.0553 18.6944 12.0248 18.8848 12.0118C19.0589 12 19.2635 12 19.4735 12L19.5 12C19.7467 12 19.8816 11.9995 19.9791 11.9928C19.9836 11.9925 19.9879 11.9922 19.9919 11.9919C19.9922 11.9879 19.9925 11.9836 19.9928 11.9791C19.9995 11.8816 20 11.7467 20 11.5V10C20 9.50034 19.9979 9.22618 19.9723 9.03599C19.972 9.03351 19.9717 9.03108 19.9713 9.02871C19.9689 9.02837 19.9665 9.02804 19.964 9.02771C19.7738 9.00214 19.4997 9.00001 19 9.00001H5.00001C4.50034 9.00001 4.22618 9.00214 4.03599 9.02771C4.03351 9.02804 4.03108 9.02837 4.02871 9.02871Z"></path><path fill-rule="evenodd" d="M4.00001 13C4.00001 12.4477 4.44773 12 5.00001 12H19C19.5523 12 20 12.4477 20 13C20 13.5523 19.5523 14 19 14H5.00001C4.44773 14 4.00001 13.5523 4.00001 13Z"></path><path fill-rule="evenodd" d="M12 6.00001C12.5523 6.00001 13 6.44773 13 7.00001V20C13 20.5523 12.5523 21 12 21C11.4477 21 11 20.5523 11 20V7.00001C11 6.44773 11.4477 6.00001 12 6.00001Z"></path><path fill-rule="evenodd" d="M7.00839 4.72356C6.51231 4.5582 6.00001 4.92744 6.00001 5.45036V5.63247C6.00001 6.01872 6.24718 6.36164 6.61361 6.48379L8.31624 7.05133C8.84019 7.22598 9.12335 7.7923 8.9487 8.31624C8.77405 8.84018 8.20773 9.12334 7.68379 8.9487L5.98115 8.38115C4.79804 7.98678 4.00001 6.87958 4.00001 5.63247V5.45036C4.00001 3.56233 5.8497 2.22915 7.64084 2.8262C9.21873 3.35216 10.6525 4.23827 11.8286 5.41435L12.7071 6.29291C13.0976 6.68343 13.0976 7.3166 12.7071 7.70712C12.3166 8.09764 11.6834 8.09764 11.2929 7.70712L10.4144 6.82856C9.45782 5.87203 8.29171 5.15134 7.00839 4.72356Z"></path><path fill-rule="evenodd" d="M16.9916 4.72356C17.4877 4.5582 18 4.92744 18 5.45036V5.63247C18 6.01872 17.7529 6.36164 17.3864 6.48379L15.6838 7.05133C15.1598 7.22598 14.8767 7.7923 15.0513 8.31624C15.226 8.84018 15.7923 9.12334 16.3162 8.9487L18.0189 8.38115C19.202 7.98678 20 6.87958 20 5.63247V5.45036C20 3.56233 18.1503 2.22915 16.3592 2.8262C14.7813 3.35216 13.3475 4.23827 12.1715 5.41435L11.2929 6.29291C10.9024 6.68343 10.9024 7.3166 11.2929 7.70712C11.6834 8.09764 12.3166 8.09764 12.7071 7.70712L13.5857 6.82856C14.5422 5.87203 15.7083 5.15134 16.9916 4.72356Z"></path>',5)]),8,sat)):D("",!0),n.icon==="facebook"?(h(),g("g",{key:69,fill:n.iconColor},t[66]||(t[66]=[c("g",{"clip-path":"url(#clip0_13907_104360)"},[c("path",{d:"M24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 17.9895 4.3882 22.954 10.125 23.8542V15.4688H7.07812V12H10.125V9.35625C10.125 6.34875 11.9166 4.6875 14.6576 4.6875C15.9701 4.6875 17.3438 4.92188 17.3438 4.92188V7.875H15.8306C14.34 7.875 13.875 8.80008 13.875 9.75V12H17.2031L16.6711 15.4688H13.875V23.8542C19.6118 22.954 24 17.9895 24 12Z"})],-1),c("defs",null,[c("clipPath",{id:"clip0_13907_104360"},[c("rect",{width:"24",height:"24",fill:"white"})])],-1)]),8,aat)):D("",!0),n.icon==="youtube"?(h(),g("g",{key:70,fill:n.iconColor},t[67]||(t[67]=[c("path",{d:"M23.7609 7.20005C23.7609 7.20005 23.5266 5.54536 22.8047 4.8188C21.8906 3.86255 20.8688 3.85786 20.4 3.80161C17.0438 3.55786 12.0047 3.55786 12.0047 3.55786H11.9953C11.9953 3.55786 6.95625 3.55786 3.6 3.80161C3.13125 3.85786 2.10938 3.86255 1.19531 4.8188C0.473438 5.54536 0.24375 7.20005 0.24375 7.20005C0.24375 7.20005 0 9.14536 0 11.086V12.9047C0 14.8454 0.239062 16.7907 0.239062 16.7907C0.239062 16.7907 0.473437 18.4454 1.19062 19.1719C2.10469 20.1282 3.30469 20.0954 3.83906 20.1985C5.76094 20.3813 12 20.4375 12 20.4375C12 20.4375 17.0438 20.4282 20.4 20.1891C20.8688 20.1329 21.8906 20.1282 22.8047 19.1719C23.5266 18.4454 23.7609 16.7907 23.7609 16.7907C23.7609 16.7907 24 14.85 24 12.9047V11.086C24 9.14536 23.7609 7.20005 23.7609 7.20005ZM9.52031 15.1125V8.36724L16.0031 11.7516L9.52031 15.1125Z"},null,-1)]),8,lat)):D("",!0),n.icon==="upload"?(h(),g("g",{key:71,fill:n.iconColor},t[68]||(t[68]=[c("path",{"fill-rule":"evenodd",d:"M12 2C9.55912 2 7.4608 3.45744 6.52373 5.54534C6.44011 5.73166 6.38425 5.85598 6.34206 5.94471C6.33167 5.96657 6.32326 5.98381 6.31654 5.99729L6.29677 5.99799C6.23318 5.99989 6.14598 6 6 6C3.79086 6 2 7.79086 2 10C2 12.2091 3.79086 14 6 14H6.17157L8.17157 12H6C4.89543 12 4 11.1046 4 10C4 8.89543 4.89543 8 6 8L6.06419 8.0001C6.27176 8.00057 6.51342 8.00111 6.71431 7.96068C6.92683 7.91791 7.17254 7.84692 7.414 7.69062C7.65546 7.53433 7.82083 7.33923 7.94687 7.16285C8.03371 7.04134 8.10219 6.90047 8.14829 6.8035C8.20111 6.69243 8.26605 6.54772 8.34352 6.37511L8.34839 6.36427C8.97472 4.96871 10.3753 4 12 4C13.6247 4 15.0253 4.96871 15.6516 6.36427L15.6565 6.37511C15.7339 6.54772 15.7989 6.69243 15.8517 6.8035C15.8978 6.90047 15.9663 7.04134 16.0531 7.16285C16.1792 7.33923 16.3445 7.53433 16.586 7.69062C16.8275 7.84692 17.0732 7.91791 17.2857 7.96068C17.4866 8.00111 17.7282 8.00057 17.9358 8.0001L18 8C19.1046 8 20 8.89543 20 10C20 11.1046 19.1046 12 18 12H15.8284L17.8284 14H18C20.2091 14 22 12.2091 22 10C22 7.79086 20.2091 6 18 6C17.854 6 17.7668 5.99989 17.7032 5.99799L17.6835 5.99729C17.6767 5.98381 17.6683 5.96657 17.6579 5.94471C17.6158 5.85598 17.5599 5.73166 17.4763 5.54534C16.5392 3.45744 14.4409 2 12 2ZM6.29756 6.03369C6.29743 6.0339 6.29755 6.03369 6.29756 6.03369V6.03369ZM17.7024 6.03369C17.7024 6.03369 17.7026 6.03393 17.7024 6.03369V6.03369Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M7.29289 15.2929L8.70711 16.7071L11 14.4142V21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21V14.4142L15.2929 16.7071L16.7071 15.2929L12 10.5858L7.29289 15.2929Z"},null,-1)]),8,cat)):D("",!0),n.icon==="radio-off"?(h(),g("g",{key:72,fill:n.iconColor},t[69]||(t[69]=[c("path",{"fill-rule":"evenodd",d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z"},null,-1)]),8,dat)):D("",!0),n.icon==="new-tab-left"?(h(),g("g",{key:73,fill:n.iconColor},t[70]||(t[70]=[c("path",{"fill-rule":"evenodd",d:"M2 2H11V4H5.41421L13.7071 12.2929C14.0976 12.6834 14.0976 13.3166 13.7071 13.7071C13.3166 14.0976 12.6834 14.0976 12.2929 13.7071L4 5.41421V11H2V2Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M17.0996 5.04616C16.6009 5.00096 15.953 5 15 5C14.4477 5 14 4.55228 14 4C14 3.44772 14.4477 3 15 3L15.046 3C15.9415 2.99998 16.6805 2.99997 17.2802 3.05432C17.9039 3.11085 18.4744 3.23242 19 3.5359C19.6081 3.88697 20.113 4.39192 20.4641 5C20.7676 5.52564 20.8892 6.09615 20.9457 6.71983C21 7.31953 21 8.05851 21 8.95399V14.0705C21 15.4247 21.0001 16.5413 20.8812 17.4251C20.7565 18.3529 20.4845 19.1723 19.8284 19.8284C19.1723 20.4845 18.3529 20.7565 17.4251 20.8812C16.5413 21.0001 15.4247 21 14.0705 21H8.95399C8.05851 21 7.31953 21 6.71983 20.9457C6.09615 20.8892 5.52564 20.7676 5 20.4641C4.39192 20.113 3.88697 19.6081 3.5359 19C3.23242 18.4744 3.11085 17.9039 3.05432 17.2802C2.99997 16.6805 2.99998 15.9415 3 15.046L3 15C3 14.4477 3.44772 14 4 14C4.55228 14 5 14.4477 5 15C5 15.953 5.00096 16.6009 5.04616 17.0996C5.09011 17.5846 5.16951 17.8295 5.26795 18C5.44349 18.304 5.69596 18.5565 6 18.732C6.17051 18.8305 6.41539 18.9099 6.90036 18.9538C7.39908 18.999 8.04698 19 9 19H14C15.4425 19 16.4237 18.9979 17.1586 18.8991C17.8646 18.8042 18.1916 18.6368 18.4142 18.4142C18.6368 18.1916 18.8042 17.8646 18.8991 17.1586C18.9979 16.4237 19 15.4425 19 14V9C19 8.04698 18.999 7.39908 18.9538 6.90036C18.9099 6.41539 18.8305 6.17051 18.7321 6C18.5565 5.69596 18.304 5.44349 18 5.26795C17.8295 5.16951 17.5846 5.09011 17.0996 5.04616Z"},null,-1)]),8,uat)):D("",!0),n.icon==="new-tab"?(h(),g("g",{key:74,fill:n.iconColor},t[71]||(t[71]=[c("path",{"fill-rule":"evenodd",d:"M21 2H12V4H17.5858L9.29289 12.2929C8.90237 12.6834 8.90237 13.3166 9.29289 13.7071C9.68342 14.0976 10.3166 14.0976 10.7071 13.7071L19 5.41421V11H21V2Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M5.90036 5.04616C6.39908 5.00096 7.04698 5 8 5C8.55229 5 9 4.55228 9 4C9 3.44772 8.55229 3 8 3L7.95396 3C7.05849 2.99998 6.31952 2.99997 5.71983 3.05432C5.09615 3.11085 4.52564 3.23242 4 3.5359C3.39192 3.88697 2.88697 4.39192 2.5359 5C2.23242 5.52564 2.11085 6.09615 2.05432 6.71983C1.99997 7.31953 1.99999 8.05851 2 8.95399V14.0705C1.99997 15.4247 1.99993 16.5413 2.11875 17.4251C2.2435 18.3529 2.51546 19.1723 3.17157 19.8284C3.82768 20.4845 4.64711 20.7565 5.57494 20.8812C6.4587 21.0001 7.57532 21 8.92946 21H14.046C14.9415 21 15.6805 21 16.2802 20.9457C16.9039 20.8892 17.4744 20.7676 18 20.4641C18.6081 20.113 19.113 19.6081 19.4641 19C19.7676 18.4744 19.8892 17.9039 19.9457 17.2802C20 16.6805 20 15.9415 20 15.046V15C20 14.4477 19.5523 14 19 14C18.4477 14 18 14.4477 18 15C18 15.953 17.999 16.6009 17.9538 17.0996C17.9099 17.5846 17.8305 17.8295 17.7321 18C17.5565 18.304 17.304 18.5565 17 18.732C16.8295 18.8305 16.5846 18.9099 16.0996 18.9538C15.6009 18.999 14.953 19 14 19H9C7.55752 19 6.57625 18.9979 5.84143 18.8991C5.13538 18.8042 4.80836 18.6368 4.58579 18.4142C4.36322 18.1916 4.19584 17.8646 4.10092 17.1586C4.00213 16.4237 4 15.4425 4 14V9C4 8.04698 4.00096 7.39908 4.04616 6.90036C4.09011 6.41539 4.16951 6.17051 4.26795 6C4.44349 5.69596 4.69596 5.44349 5 5.26795C5.17051 5.16951 5.41539 5.09011 5.90036 5.04616Z"},null,-1)]),8,hat)):D("",!0),n.icon==="info-circle"?(h(),g("g",{key:75,fill:n.iconColor},t[72]||(t[72]=[c("path",{"fill-rule":"evenodd",d:"M12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M11 7.5C11 6.94772 11.4477 6.5 12 6.5C12.5523 6.5 13 6.94772 13 7.5C13 8.05228 12.5523 8.5 12 8.5C11.4477 8.5 11 8.05228 11 7.5Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M13 10V17H11V10H13Z"},null,-1)]),8,fat)):D("",!0),n.icon==="delete-circle"?(h(),g("g",{key:76,fill:n.iconColor},t[73]||(t[73]=[c("path",{"fill-rule":"evenodd",d:"M12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M15.7072 9.70677L9.7072 15.7068L8.29299 14.2926L14.293 8.29255L15.7072 9.70677Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M8.29289 9.70711L14.2929 15.7071L15.7071 14.2929L9.70711 8.29289L8.29289 9.70711Z"},null,-1)]),8,mat)):D("",!0),n.icon==="info-fill"?(h(),g("g",{key:77,fill:n.iconColor},t[74]||(t[74]=[c("path",{"fill-rule":"evenodd",d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM13 8C13 8.55228 12.5523 9 12 9C11.4477 9 11 8.55228 11 8C11 7.44772 11.4477 7 12 7C12.5523 7 13 7.44772 13 8ZM13 17V11H11V17H13Z"},null,-1)]),8,pat)):D("",!0),n.icon==="graph"?(h(),g("g",gat,t[75]||(t[75]=[c("circle",{cx:"12",cy:"12",r:"9",stroke:"#1B2A4E","stroke-width":"2"},null,-1),c("path",{d:"M12 12H21",stroke:"#1B2A4E","stroke-width":"2","stroke-linecap":"round"},null,-1),c("path",{d:"M12 3V11.9379C12 11.9777 12.0158 12.0158 12.0439 12.0439L18 18",stroke:"#1B2A4E","stroke-width":"2","stroke-linecap":"round"},null,-1)]))):D("",!0),n.icon==="trend"?(h(),g("g",vat,[c("path",{d:"M17 9L13.9558 13.5662C13.5299 14.2051 12.5728 14.1455 12.2294 13.4587L11.7706 12.5413C11.4272 11.8545 10.4701 11.7949 10.0442 12.4338L7 17",stroke:n.iconColor,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,_at),t[76]||(t[76]=c("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",stroke:"#1B2A4E","stroke-width":"2"},null,-1))])):D("",!0),n.icon==="time"?(h(),g("g",yat,t[77]||(t[77]=[c("circle",{cx:"12",cy:"12",r:"9",stroke:"#1B2A4E","stroke-width":"2"},null,-1),c("path",{d:"M16.5 12H12.25C12.1119 12 12 11.8881 12 11.75V8.5",stroke:"#1B2A4E","stroke-width":"2","stroke-linecap":"round"},null,-1)]))):D("",!0),n.icon==="settings"?(h(),g("svg",{key:81,fill:n.iconColor},t[78]||(t[78]=[c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.3428 1H12.6571C12.8531 0.999981 13.0459 0.999961 13.2109 1.01098C13.393 1.02314 13.6066 1.05164 13.8304 1.1401C14.2804 1.31804 14.6507 1.65312 14.8725 2.08323C14.9828 2.29705 15.0324 2.50684 15.0626 2.68681C15.09 2.84991 15.1092 3.04174 15.1287 3.23672L15.1312 3.26194C15.1739 3.68915 15.2008 3.95045 15.2342 4.13595C15.2367 4.14994 15.2391 4.16274 15.2415 4.17441C15.2514 4.16781 15.2621 4.16049 15.2738 4.15238C15.4286 4.04481 15.6323 3.87905 15.9646 3.60718L15.9842 3.59114C16.1359 3.46704 16.2851 3.34494 16.4198 3.24897C16.5684 3.14309 16.7518 3.02983 16.981 2.95662C17.442 2.80934 17.9408 2.83422 18.3848 3.02663C18.6056 3.12229 18.7768 3.25323 18.9142 3.37338C19.0387 3.48229 19.175 3.61864 19.3135 3.75723L19.3314 3.7751L20.2428 4.68652C20.3814 4.82505 20.5177 4.96134 20.6266 5.08581C20.7467 5.22317 20.8777 5.39441 20.9733 5.61517C21.1658 6.05922 21.1906 6.55797 21.0434 7.01895C20.9701 7.24814 20.8569 7.43157 20.751 7.58019C20.655 7.7149 20.5329 7.86411 20.4088 8.01577L20.3928 8.03534C20.1209 8.36764 19.9551 8.57141 19.8476 8.72619C19.8395 8.73786 19.8321 8.74863 19.8255 8.75854C19.8372 8.76088 19.85 8.76332 19.864 8.76584C20.0495 8.79923 20.3108 8.8261 20.738 8.86882L20.7633 8.87134C20.9583 8.89082 21.1501 8.90998 21.3132 8.93737C21.4932 8.96759 21.703 9.01721 21.9168 9.1275C22.3469 9.34933 22.682 9.71958 22.8599 10.1696C22.9484 10.3933 22.9769 10.607 22.989 10.7891C23 10.9542 23 11.1469 23 11.3429V12.6572C23 12.8531 23 13.0459 22.989 13.2108C22.9769 13.3929 22.9484 13.6065 22.86 13.8302C22.682 14.2804 22.3469 14.6507 21.9166 14.8726C21.7028 14.9828 21.4931 15.0324 21.3132 15.0626C21.1501 15.09 20.9583 15.1092 20.7633 15.1287L20.7381 15.1312C20.3111 15.1739 20.0498 15.2008 19.8644 15.2341C19.8504 15.2366 19.8376 15.2391 19.8259 15.2414C19.8325 15.2513 19.8398 15.2621 19.8479 15.2738C19.9555 15.4285 20.1212 15.6322 20.3929 15.9644L20.409 15.984C20.5331 16.1356 20.6551 16.2847 20.751 16.4193C20.8569 16.5679 20.9701 16.7513 21.0433 16.9803C21.1907 17.4415 21.1658 17.9405 20.9733 18.3847C20.8776 18.6053 20.7467 18.7765 20.6266 18.9138C20.5178 19.0382 20.3815 19.1744 20.243 19.3129L19.3136 20.2423C19.175 20.3809 19.0387 20.5173 18.9142 20.6262C18.7769 20.7463 18.6056 20.8773 18.3849 20.9729C17.9408 21.1653 17.442 21.1902 16.981 21.0429C16.7519 20.9697 16.5684 20.8565 16.4198 20.7506C16.2851 20.6546 16.1359 20.5325 15.9843 20.4084L15.9689 20.3958L15.9646 20.3924C15.6323 20.1205 15.4286 19.9547 15.2738 19.8472C15.2622 19.8391 15.2514 19.8318 15.2415 19.8252C15.2392 19.8368 15.2367 19.8496 15.2342 19.8636C15.2008 20.0492 15.1739 20.3105 15.1312 20.7378L15.1287 20.763C15.1092 20.9581 15.09 21.15 15.0626 21.3132C15.0324 21.4932 14.9828 21.7031 14.8724 21.917C14.6506 22.3469 14.2805 22.6819 13.8306 22.8598C13.6068 22.9483 13.3931 22.9769 13.2109 22.989C13.0458 23 12.853 23 12.657 23H11.3429C11.1469 23 10.9542 23 10.7891 22.989C10.607 22.9769 10.3933 22.9484 10.1696 22.8599C9.71958 22.682 9.34933 22.3469 9.1275 21.9168C9.01721 21.703 8.96759 21.4932 8.93737 21.3132C8.90998 21.1501 8.89082 20.9583 8.87134 20.7633L8.86882 20.7381C8.8261 20.3108 8.79923 20.0495 8.76584 19.864C8.76332 19.85 8.76088 19.8372 8.75854 19.8255C8.74863 19.8321 8.73786 19.8395 8.72619 19.8476C8.57175 19.9549 8.36855 20.1202 8.03756 20.391L8.0157 20.4089C7.86405 20.533 7.71484 20.6551 7.58014 20.7511C7.4315 20.8569 7.24807 20.9702 7.01888 21.0434C6.55791 21.1907 6.05919 21.1658 5.61515 20.9734C5.39438 20.8777 5.22313 20.7468 5.08577 20.6266C4.9613 20.5178 4.82502 20.3814 4.68649 20.2429L3.77506 19.3315L3.75712 19.3135C3.61855 19.175 3.48223 19.0387 3.37333 18.9142C3.25318 18.7768 3.12223 18.6056 3.02657 18.3848C2.83417 17.9408 2.8093 17.4421 2.95656 16.9811C3.02977 16.7519 3.14304 16.5685 3.24893 16.4198C3.3449 16.2851 3.46701 16.1359 3.59112 15.9842L3.60715 15.9647C3.87903 15.6324 4.0448 15.4286 4.15237 15.2738C4.16048 15.2621 4.1678 15.2514 4.1744 15.2415C4.16273 15.2391 4.14994 15.2367 4.13595 15.2342C3.95044 15.2008 3.68915 15.1739 3.26193 15.1312L3.23671 15.1287C3.04173 15.1092 2.84991 15.09 2.6868 15.0626C2.50684 15.0324 2.29705 14.9828 2.08323 14.8725C1.65312 14.6507 1.31803 14.2804 1.1401 13.8304C1.05164 13.6066 1.02314 13.393 1.01098 13.2109C0.999961 13.0459 0.999981 12.8531 1 12.6571V11.343C0.999981 11.147 0.999961 10.9542 1.01099 10.7891C1.02315 10.607 1.05167 10.3932 1.14017 10.1694C1.3181 9.71955 1.65308 9.34939 2.08305 9.12758C2.29692 9.01724 2.50676 8.96761 2.68677 8.93738C2.84992 8.90998 3.0418 8.89081 3.23684 8.87133L3.26206 8.86881C3.68885 8.82613 3.95089 8.79917 4.13631 8.7658C4.15029 8.76329 4.16309 8.76085 4.17476 8.75851C4.16816 8.7486 4.16083 8.73782 4.15272 8.72614C4.04512 8.5713 3.87929 8.36747 3.60732 8.03506L3.59127 8.01545C3.46711 7.86373 3.34497 7.71447 3.24896 7.57971C3.14303 7.43102 3.02973 7.24751 2.95652 7.01823C2.80938 6.55741 2.83425 6.05888 3.02651 5.61499C3.12217 5.39413 3.25316 5.22281 3.37336 5.0854C3.48229 4.96087 3.61867 4.82451 3.75731 4.68591C3.76328 4.67994 3.76925 4.67396 3.77523 4.66799L4.66855 3.77467C4.67453 3.76869 4.6805 3.76271 4.68647 3.75674C4.82503 3.61816 4.96133 3.48182 5.08582 3.37292C5.22318 3.25277 5.39443 3.12181 5.6152 3.02616C6.05923 2.83377 6.55796 2.80889 7.01892 2.95615C7.24813 3.02937 7.43158 3.14264 7.58021 3.24854C7.71493 3.34452 7.86414 3.46663 8.01583 3.59076L8.03544 3.60681C8.3677 3.87866 8.57145 4.04441 8.72622 4.15198C8.7379 4.1601 8.74868 4.16743 8.7586 4.17404C8.76094 4.16236 8.76338 4.14957 8.76589 4.13558C8.79926 3.95013 8.82613 3.6889 8.86884 3.26181L8.87135 3.23662C8.89083 3.04168 8.90998 2.8499 8.93736 2.68684C8.96757 2.50692 9.01716 2.29719 9.12739 2.08341C9.34925 1.65316 9.71963 1.31796 10.1698 1.14002C10.3935 1.05161 10.6071 1.02313 10.7892 1.01098C10.9541 0.999961 11.1469 0.999981 11.3428 1ZM17.2311 18.8445L17.2027 18.8212C16.9079 18.58 16.6426 18.3629 16.4152 18.2049C16.1886 18.0473 15.8769 17.8577 15.4928 17.806C14.7807 17.7102 14.0719 18.0038 13.636 18.5751C13.401 18.8832 13.3147 19.2378 13.2658 19.5095C13.2168 19.782 13.1827 20.1232 13.1448 20.5023L13.1411 20.5388C13.1181 20.769 13.1052 20.8929 13.0902 20.982C13.0896 20.9858 13.089 20.9893 13.0884 20.9927C13.085 20.9929 13.0814 20.9932 13.0776 20.9935C12.9875 20.9995 12.8629 21 12.6316 21H11.3682C11.137 21 11.0125 20.9995 10.9224 20.9935C10.9186 20.9932 10.915 20.993 10.9116 20.9927C10.911 20.9894 10.9104 20.9858 10.9098 20.982C10.8948 20.893 10.8819 20.7691 10.8589 20.5391L10.8552 20.5025C10.8174 20.1235 10.7833 19.7823 10.7342 19.5098C10.6853 19.2381 10.599 18.8836 10.364 18.5755C9.92816 18.0042 9.21939 17.7106 8.50728 17.8064C8.12319 17.8581 7.81149 18.0477 7.58481 18.2052C7.35744 18.3633 7.09208 18.5804 6.79726 18.8216L6.76884 18.8449C6.7653 18.8478 6.76178 18.8507 6.75831 18.8535C6.58607 18.9944 6.49171 19.0708 6.41963 19.1222C6.41652 19.1244 6.41356 19.1265 6.41078 19.1284C6.4082 19.1262 6.40548 19.1238 6.4026 19.1213C6.33464 19.0619 6.24621 18.9742 6.08272 18.8107L5.18928 17.9172C5.02579 17.7538 4.93809 17.6653 4.87865 17.5974C4.87613 17.5945 4.87376 17.5918 4.87155 17.5892C4.8735 17.5864 4.87558 17.5835 4.8778 17.5803C4.93019 17.5068 5.00865 17.4101 5.15506 17.2311L5.17832 17.2027C5.41956 16.9079 5.63669 16.6426 5.7947 16.4152C5.95223 16.1885 6.14188 15.8768 6.19355 15.4928C6.28935 14.7806 5.99575 14.0718 5.42445 13.636C5.11634 13.401 4.76184 13.3147 4.49017 13.2658C4.21767 13.2167 3.87649 13.1826 3.49745 13.1448L3.46094 13.1411C3.23089 13.1181 3.10702 13.1052 3.01798 13.0902C3.01421 13.0896 3.01065 13.089 3.00731 13.0884C3.00705 13.085 3.00679 13.0814 3.00654 13.0776C3.00052 12.9875 3 12.863 3 12.6318V11.3683C3 11.1371 3.00052 11.0125 3.00654 10.9224C3.0068 10.9186 3.00705 10.915 3.00731 10.9116C3.01066 10.911 3.01421 10.9104 3.01799 10.9098C3.10696 10.8948 3.23071 10.8819 3.46042 10.8589L3.49756 10.8552C3.87672 10.8173 4.21799 10.7832 4.49057 10.7342C4.76231 10.6853 5.1169 10.5989 5.42506 10.3638C5.99613 9.92801 6.28963 9.21944 6.19396 8.50749C6.14234 8.1233 5.95264 7.81151 5.79507 7.58478C5.63701 7.35735 5.41981 7.09192 5.1785 6.79701L5.15524 6.76858C5.00877 6.58956 4.93026 6.4928 4.87786 6.41923C4.87563 6.41612 4.87355 6.41316 4.8716 6.41038C4.87382 6.4078 4.87618 6.40507 4.8787 6.40219C4.93816 6.33421 5.0259 6.24575 5.18944 6.0822L6.08276 5.18888C6.24625 5.02539 6.33469 4.93768 6.40264 4.87824C6.40552 4.87572 6.40825 4.87336 6.41083 4.87114C6.41362 4.87309 6.41657 4.87518 6.41969 4.8774C6.49324 4.9298 6.58999 5.00829 6.76896 5.15472L6.79736 5.17796C7.09214 5.41917 7.35746 5.63628 7.58478 5.79427C7.81139 5.95177 8.123 6.14141 8.50698 6.19312C9.21932 6.28906 9.92836 5.99536 10.3642 5.42383C10.5992 5.11576 10.6854 4.76136 10.7343 4.48976C10.7833 4.21734 10.8174 3.87627 10.8553 3.49733L10.8589 3.46081C10.8819 3.23083 10.8948 3.10699 10.9098 3.01798C10.9104 3.0142 10.911 3.01065 10.9116 3.0073C10.915 3.00705 10.9186 3.00679 10.9224 3.00653C11.0125 3.00052 11.137 3 11.3681 3H12.6318C12.863 3 12.9875 3.00052 13.0776 3.00654C13.0814 3.00679 13.085 3.00705 13.0884 3.00731C13.089 3.01065 13.0896 3.01421 13.0902 3.01798C13.1052 3.10702 13.1181 3.23089 13.1411 3.46095L13.1448 3.49745C13.1826 3.8765 13.2167 4.21767 13.2658 4.49017C13.3147 4.76184 13.401 5.11634 13.636 5.42445C14.0718 5.99576 14.7806 6.28936 15.4928 6.19355C15.8768 6.14189 16.1885 5.95224 16.4152 5.79471C16.6426 5.63669 16.9079 5.41956 17.2027 5.17832L17.2311 5.15509C17.41 5.00869 17.5068 4.93023 17.5803 4.87784C17.5834 4.87562 17.5864 4.87354 17.5891 4.87159C17.5917 4.87381 17.5944 4.87617 17.5973 4.87869C17.6653 4.93813 17.7537 5.02583 17.9172 5.18931L18.8107 6.08278C18.9741 6.24626 19.0618 6.33469 19.1213 6.40264C19.1238 6.40552 19.1262 6.40825 19.1284 6.41082C19.1264 6.41361 19.1243 6.41656 19.1221 6.41968C19.0697 6.49321 18.9913 6.58993 18.8449 6.76887L18.8216 6.79727C18.5804 7.09209 18.3633 7.35744 18.2052 7.58481C18.0477 7.81148 17.8581 8.12317 17.8064 8.50725C17.7106 9.21937 18.0042 9.92817 18.5755 10.364C18.8836 10.599 19.2381 10.6853 19.5098 10.7342C19.7823 10.7833 20.1235 10.8174 20.5025 10.8552L20.539 10.8589C20.7691 10.8819 20.893 10.8948 20.982 10.9098C20.9858 10.9104 20.9893 10.911 20.9927 10.9116C20.993 10.915 20.9932 10.9186 20.9935 10.9224C20.9995 11.0125 21 11.137 21 11.3682V12.6319C21 12.863 20.9995 12.9875 20.9935 13.0776C20.9932 13.0814 20.993 13.085 20.9927 13.0884C20.9894 13.089 20.9858 13.0896 20.982 13.0903C20.893 13.1052 20.7691 13.1181 20.5391 13.1411L20.5027 13.1448C20.1237 13.1826 19.7826 13.2167 19.5102 13.2657C19.2386 13.3146 18.8842 13.4008 18.5762 13.6357C18.0046 14.0716 17.7108 14.7807 17.8068 15.4931C17.8585 15.877 18.0481 16.1886 18.2056 16.4152C18.3636 16.6425 18.5807 16.9078 18.8218 17.2025L18.845 17.2308C18.9914 17.4097 19.0698 17.5064 19.1222 17.5799C19.1244 17.583 19.1265 17.5859 19.1284 17.5887C19.1262 17.5913 19.1239 17.594 19.1213 17.5969C19.0619 17.6648 18.9742 17.7532 18.8108 17.9167L17.9172 18.8103C17.7538 18.9737 17.6653 19.0614 17.5974 19.1209C17.5945 19.1234 17.5918 19.1258 17.5892 19.128C17.5864 19.126 17.5835 19.1239 17.5803 19.1217C17.5068 19.0693 17.4101 18.9909 17.2311 18.8445ZM12 9C10.3432 9 9 10.3432 9 12C9 13.6569 10.3432 15 12 15C13.6569 15 15 13.6569 15 12C15 10.3432 13.6569 9 12 9ZM7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12ZM4.21178 8.77384L4.61513 9.30241L4.21178 8.77384Z"},null,-1)]),8,bat)):D("",!0),n.icon==="pin"?(h(),g("g",kat,t[79]||(t[79]=[c("path",{d:"M14.6358 3.90949C15.2888 3.47412 15.6153 3.25643 15.9711 3.29166C16.3269 3.32689 16.6044 3.60439 17.1594 4.15938L19.8406 6.84062C20.3956 7.39561 20.6731 7.67311 20.7083 8.02888C20.7436 8.38465 20.5259 8.71118 20.0905 9.36424L18.4419 11.8372C17.88 12.68 17.5991 13.1013 17.3749 13.5511C17.2086 13.8845 17.0659 14.2292 16.9476 14.5825C16.7882 15.0591 16.6889 15.5557 16.4902 16.5489L16.2992 17.5038C16.2986 17.5072 16.2982 17.5089 16.298 17.5101C16.1556 18.213 15.3414 18.5419 14.7508 18.1351C14.7497 18.1344 14.7483 18.1334 14.7455 18.1315V18.1315C14.7322 18.1223 14.7255 18.1177 14.7189 18.1131C11.2692 15.7225 8.27754 12.7308 5.88691 9.28108C5.88233 9.27448 5.87772 9.26782 5.86851 9.25451V9.25451C5.86655 9.25169 5.86558 9.25028 5.86486 9.24924C5.45815 8.65858 5.78704 7.84444 6.4899 7.70202C6.49113 7.70177 6.49282 7.70144 6.49618 7.70076L7.45114 7.50977C8.44433 7.31113 8.94092 7.21182 9.4175 7.05236C9.77083 6.93415 10.1155 6.79139 10.4489 6.62514C10.8987 6.40089 11.32 6.11998 12.1628 5.55815L14.6358 3.90949Z",stroke:"#1B2A4E","stroke-width":"2"},null,-1),c("path",{d:"M5 19L9.5 14.5",stroke:"#1B2A4E","stroke-width":"2","stroke-linecap":"round"},null,-1)]))):D("",!0),n.icon==="link"?(h(),g("g",{key:83,fill:n.iconColor},t[80]||(t[80]=[c("path",{"fill-rule":"evenodd",d:"M7 9C5.34315 9 4 10.3431 4 12C4 13.6569 5.34315 15 7 15H10C10.5523 15 11 15.4477 11 16C11 16.5523 10.5523 17 10 17H7C4.23858 17 2 14.7614 2 12C2 9.23858 4.23858 7 7 7H10C10.5523 7 11 7.44772 11 8C11 8.55228 10.5523 9 10 9H7Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M7 12C7 11.4477 7.44772 11 8 11H16C16.5523 11 17 11.4477 17 12C17 12.5523 16.5523 13 16 13H8C7.44772 13 7 12.5523 7 12Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M17 9C18.6569 9 20 10.3431 20 12C20 13.6569 18.6569 15 17 15H14C13.4477 15 13 15.4477 13 16C13 16.5523 13.4477 17 14 17H17C19.7614 17 22 14.7614 22 12C22 9.23858 19.7614 7 17 7H14C13.4477 7 13 7.44772 13 8C13 8.55228 13.4477 9 14 9H17Z"},null,-1)]),8,wat)):D("",!0),n.icon==="logout"?(h(),g("g",{key:84,fill:n.iconColor},t[81]||(t[81]=[c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.21913 6.37531L6.78087 7.6247L4.08063 11H11C11.5523 11 12 11.4477 12 12C12 12.5523 11.5523 13 11 13H4.08063L6.78087 16.3753L5.21913 17.6247L0.719376 12L5.21913 6.37531Z"},null,-1),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.8189 3.66837C17.963 3.68905 16.8297 3.87552 15.178 4.1508L13.5068 4.42933C12.6833 4.56658 12.1573 4.6561 11.7726 4.77061C11.4147 4.87717 11.301 4.97236 11.237 5.04789C11.173 5.12341 11.0978 5.25128 11.0515 5.62183C11.0018 6.02009 11 6.55367 11 7.38851V8.13194H9V7.38851C9 7.36877 9 7.3491 9 7.32949C8.99995 6.57083 8.99992 5.91097 9.06695 5.37405C9.13918 4.79556 9.30096 4.2391 9.71094 3.75514C10.1209 3.27117 10.6432 3.02011 11.202 2.85376C11.7205 2.69937 12.3714 2.59093 13.1198 2.46625C13.1391 2.46302 13.1585 2.45979 13.178 2.45655L14.9253 2.16533C16.4821 1.90583 17.7561 1.69346 18.7705 1.66895C19.8294 1.64337 20.7885 1.81419 21.5855 2.48931C22.3825 3.16443 22.7086 4.0824 22.8575 5.1311C23.0001 6.13579 23 7.42735 23 9.00559V14.9944C23 16.5727 23.0001 17.8642 22.8575 18.8689C22.7086 19.9176 22.3825 20.8356 21.5855 21.5107C20.7885 22.1858 19.8294 22.3566 18.7705 22.3311C17.7561 22.3066 16.4821 22.0942 14.9253 21.8347L13.1198 21.5338C12.3714 21.4091 11.7205 21.3006 11.202 21.1463C10.6432 20.9799 10.1209 20.7288 9.71094 20.2449C9.30096 19.7609 9.13918 19.2045 9.06695 18.626C8.99992 18.089 8.99995 17.4292 9 16.6705L9 16.066H11V16.6115C11 17.4463 11.0018 17.9799 11.0515 18.3782C11.0978 18.7487 11.173 18.8766 11.237 18.9521C11.301 19.0277 11.4147 19.1228 11.7726 19.2294C12.1573 19.3439 12.6833 19.4334 13.5068 19.5707L15.178 19.8492C16.8297 20.1245 17.963 20.311 18.8189 20.3316C19.6467 20.3516 20.0288 20.2082 20.2927 19.9847C20.5567 19.7611 20.7609 19.4078 20.8773 18.5879C20.9976 17.7403 21 16.5917 21 14.9172V9.08277C21 7.4083 20.9976 6.25972 20.8773 5.41215C20.7609 4.59226 20.5567 4.23892 20.2927 4.01535C20.0288 3.79178 19.6467 3.64837 18.8189 3.66837Z"},null,-1)]),8,$at)):D("",!0),n.icon==="instagram"?(h(),g("g",{key:85,fill:n.iconColor},t[82]||(t[82]=[wl('<g clip-path="url(#clip0_13907_104361)"><path d="M12 2.16094C15.2063 2.16094 15.5859 2.175 16.8469 2.23125C18.0188 2.28281 18.6516 2.47969 19.0734 2.64375C19.6313 2.85938 20.0344 3.12188 20.4516 3.53906C20.8734 3.96094 21.1313 4.35938 21.3469 4.91719C21.5109 5.33906 21.7078 5.97656 21.7594 7.14375C21.8156 8.40937 21.8297 8.78906 21.8297 11.9906C21.8297 15.1969 21.8156 15.5766 21.7594 16.8375C21.7078 18.0094 21.5109 18.6422 21.3469 19.0641C21.1313 19.6219 20.8687 20.025 20.4516 20.4422C20.0297 20.8641 19.6313 21.1219 19.0734 21.3375C18.6516 21.5016 18.0141 21.6984 16.8469 21.75C15.5813 21.8062 15.2016 21.8203 12 21.8203C8.79375 21.8203 8.41406 21.8062 7.15313 21.75C5.98125 21.6984 5.34844 21.5016 4.92656 21.3375C4.36875 21.1219 3.96563 20.8594 3.54844 20.4422C3.12656 20.0203 2.86875 19.6219 2.65313 19.0641C2.48906 18.6422 2.29219 18.0047 2.24063 16.8375C2.18438 15.5719 2.17031 15.1922 2.17031 11.9906C2.17031 8.78438 2.18438 8.40469 2.24063 7.14375C2.29219 5.97187 2.48906 5.33906 2.65313 4.91719C2.86875 4.35938 3.13125 3.95625 3.54844 3.53906C3.97031 3.11719 4.36875 2.85938 4.92656 2.64375C5.34844 2.47969 5.98594 2.28281 7.15313 2.23125C8.41406 2.175 8.79375 2.16094 12 2.16094ZM12 0C8.74219 0 8.33438 0.0140625 7.05469 0.0703125C5.77969 0.126563 4.90313 0.332812 4.14375 0.628125C3.35156 0.9375 2.68125 1.34531 2.01563 2.01562C1.34531 2.68125 0.9375 3.35156 0.628125 4.13906C0.332812 4.90313 0.126563 5.775 0.0703125 7.05C0.0140625 8.33437 0 8.74219 0 12C0 15.2578 0.0140625 15.6656 0.0703125 16.9453C0.126563 18.2203 0.332812 19.0969 0.628125 19.8563C0.9375 20.6484 1.34531 21.3188 2.01563 21.9844C2.68125 22.65 3.35156 23.0625 4.13906 23.3672C4.90313 23.6625 5.775 23.8687 7.05 23.925C8.32969 23.9812 8.7375 23.9953 11.9953 23.9953C15.2531 23.9953 15.6609 23.9812 16.9406 23.925C18.2156 23.8687 19.0922 23.6625 19.8516 23.3672C20.6391 23.0625 21.3094 22.65 21.975 21.9844C22.6406 21.3188 23.0531 20.6484 23.3578 19.8609C23.6531 19.0969 23.8594 18.225 23.9156 16.95C23.9719 15.6703 23.9859 15.2625 23.9859 12.0047C23.9859 8.74688 23.9719 8.33906 23.9156 7.05938C23.8594 5.78438 23.6531 4.90781 23.3578 4.14844C23.0625 3.35156 22.6547 2.68125 21.9844 2.01562C21.3188 1.35 20.6484 0.9375 19.8609 0.632812C19.0969 0.3375 18.225 0.13125 16.95 0.075C15.6656 0.0140625 15.2578 0 12 0Z"></path><path d="M12 5.83594C8.59688 5.83594 5.83594 8.59688 5.83594 12C5.83594 15.4031 8.59688 18.1641 12 18.1641C15.4031 18.1641 18.1641 15.4031 18.1641 12C18.1641 8.59688 15.4031 5.83594 12 5.83594ZM12 15.9984C9.79219 15.9984 8.00156 14.2078 8.00156 12C8.00156 9.79219 9.79219 8.00156 12 8.00156C14.2078 8.00156 15.9984 9.79219 15.9984 12C15.9984 14.2078 14.2078 15.9984 12 15.9984Z"></path><path d="M19.8469 5.59214C19.8469 6.38902 19.2 7.03121 18.4078 7.03121C17.6109 7.03121 16.9688 6.38433 16.9688 5.59214C16.9688 4.79527 17.6156 4.15308 18.4078 4.15308C19.2 4.15308 19.8469 4.79996 19.8469 5.59214Z"></path></g><defs><clipPath id="clip0_13907_104361"><rect width="24" height="24" fill="white"></rect></clipPath></defs>',2)]),8,Cat)):D("",!0),n.icon==="pinterest"?(h(),g("g",{key:86,fill:n.iconColor},t[83]||(t[83]=[c("g",{"clip-path":"url(#clip0_17968_37654)"},[c("path",{"clip-rule":"evenodd",d:"M12 0.178711C5.373 0.178711 0 5.55071 0 12.1787C0 17.2627 3.163 21.6047 7.627 23.3527C7.522 22.4037 7.427 20.9477 7.669 19.9117C7.887 18.9747 9.076 13.9467 9.076 13.9467C9.076 13.9467 8.717 13.2277 8.717 12.1647C8.717 10.4967 9.684 9.25071 10.888 9.25071C11.911 9.25071 12.406 10.0197 12.406 10.9407C12.406 11.9697 11.751 13.5087 11.412 14.9357C11.129 16.1297 12.011 17.1047 13.189 17.1047C15.322 17.1047 16.961 14.8557 16.961 11.6097C16.961 8.73671 14.897 6.72771 11.949 6.72771C8.535 6.72771 6.531 9.28871 6.531 11.9347C6.531 12.9657 6.928 14.0727 7.424 14.6727C7.522 14.7917 7.536 14.8967 7.507 15.0177L7.174 16.3777C7.121 16.5977 7 16.6447 6.772 16.5387C5.273 15.8407 4.336 13.6497 4.336 11.8897C4.336 8.10471 7.086 4.62771 12.265 4.62771C16.428 4.62771 19.663 7.59471 19.663 11.5587C19.663 15.6947 17.056 19.0227 13.436 19.0227C12.22 19.0227 11.077 18.3917 10.686 17.6447L9.938 20.4977C9.667 21.5407 8.936 22.8477 8.446 23.6437C9.57 23.9907 10.763 24.1787 12 24.1787C18.627 24.1787 24 18.8057 24 12.1787C24 5.55071 18.627 0.178711 12 0.178711V0.178711Z"})],-1),c("defs",null,[c("clipPath",{id:"clip0_17968_37654"},[c("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.178711)"})])],-1)]),8,Sat)):D("",!0),n.icon==="flag"?(h(),g("g",{key:87,fill:n.iconColor},t[84]||(t[84]=[c("path",{"fill-rule":"evenodd",d:"M6.47648 3.99997C6.48479 3.99999 6.49262 4 6.49994 4H10.3819C10.3905 4 10.3992 4 10.4081 3.99999C10.5345 3.99991 10.6948 3.99982 10.8381 4.01464C11.0147 4.03289 11.2456 4.07946 11.4795 4.22403C11.7134 4.36859 11.8584 4.55431 11.9536 4.70405C12.031 4.82565 12.1026 4.9691 12.159 5.08211C12.163 5.09009 12.1669 5.09792 12.1708 5.10558L12.618 6L17.4999 6C17.5073 6 17.5151 5.99999 17.5234 5.99997C17.6168 5.99981 17.7696 5.99953 17.9075 6.01807C18.0865 6.04213 18.3804 6.11274 18.6338 6.36612C18.8872 6.6195 18.9578 6.91347 18.9819 7.09244C19.0004 7.23037 19.0001 7.38313 19 7.47654C19 7.48485 18.9999 7.49269 18.9999 7.5V14.5C18.9999 14.5073 19 14.5152 19 14.5235C19.0001 14.6169 19.0004 14.7696 18.9819 14.9076C18.9578 15.0865 18.8872 15.3805 18.6338 15.6339C18.3804 15.8873 18.0865 15.9579 17.9075 15.9819C17.7696 16.0005 17.6168 16.0002 17.5234 16C17.5151 16 17.5073 16 17.4999 16H12.618C12.6094 16 12.6007 16 12.5917 16C12.4654 16.0001 12.3051 16.0002 12.1617 15.9854C11.9852 15.9671 11.7543 15.9205 11.5204 15.776C11.2865 15.6314 11.1415 15.4457 11.0463 15.296C10.9689 15.1744 10.8973 15.0309 10.8408 14.9179C10.8369 14.9099 10.833 14.9021 10.8291 14.8944L10.3819 14H6.99994V19C6.99994 19.5523 6.55223 20 5.99994 20C5.44766 20 4.99994 19.5523 4.99994 19V5.5C4.99994 5.49269 4.99993 5.48485 4.99991 5.47654C4.99974 5.38313 4.99947 5.23037 5.01801 5.09244C5.04207 4.91347 5.11268 4.6195 5.36606 4.36612C5.61944 4.11274 5.91341 4.04213 6.09238 4.01807C6.23031 3.99953 6.38307 3.99981 6.47648 3.99997ZM6.99994 12H10.3819C10.3905 12 10.3992 12 10.4081 12C10.5345 11.9999 10.6948 11.9998 10.8381 12.0146C11.0147 12.0329 11.2456 12.0795 11.4795 12.224C11.7134 12.3686 11.8584 12.5543 11.9536 12.704C12.031 12.8257 12.1026 12.9691 12.159 13.0821C12.163 13.0901 12.1669 13.0979 12.1708 13.1056L12.618 14H16.9999V8H12.618C12.6094 8 12.6007 8.00001 12.5917 8.00001C12.4654 8.00009 12.3051 8.00019 12.1617 7.98537C11.9852 7.96711 11.7543 7.92054 11.5204 7.77598C11.2865 7.63142 11.1415 7.4457 11.0463 7.29596C10.9689 7.17435 10.8973 7.03091 10.8408 6.91789C10.8369 6.90991 10.833 6.90209 10.8291 6.89443L10.3819 6H6.99994V12Z"},null,-1)]),8,Tat)):D("",!0),n.icon==="distance-education"?(h(),g("g",{key:88,fill:n.iconColor},t[85]||(t[85]=[c("path",{"fill-rule":"evenodd",d:"M5.29292 20.7071L6.70714 19.2929L4.41424 17L21 17C21.5523 17 22 16.5523 22 16C22 15.4477 21.5523 15 21 15L4.41424 15L6.70714 12.7071L5.29292 11.2929L0.585815 16L5.29292 20.7071Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M18.7071 12.7071L17.2929 11.2929L19.5858 9.00001H13C12.4477 9.00001 12 8.5523 12 8.00001C12 7.44773 12.4477 7.00001 13 7.00001H19.5858L17.2929 4.70712L18.7071 3.29291L23.4142 8.00001L18.7071 12.7071Z"},null,-1)]),8,Eat)):D("",!0),n.icon==="swap"?(h(),g("g",{key:89,fill:n.iconColor},t[86]||(t[86]=[c("path",{"fill-rule":"evenodd",d:"M5.29292 20.7071L6.70714 19.2929L4.41424 17L21 17C21.5523 17 22 16.5523 22 16C22 15.4477 21.5523 15 21 15L4.41424 15L6.70714 12.7071L5.29292 11.2929L0.585815 16L5.29292 20.7071Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M18.7071 12.7071L17.2929 11.2929L19.5858 9.00001H13C12.4477 9.00001 12 8.5523 12 8.00001C12 7.44773 12.4477 7.00001 13 7.00001H19.5858L17.2929 4.70712L18.7071 3.29291L23.4142 8.00001L18.7071 12.7071Z"},null,-1)]),8,Iat)):D("",!0),n.icon==="question"?(h(),g("g",{key:90,fill:n.iconColor},t[87]||(t[87]=[c("path",{"fill-rule":"evenodd",d:"M12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z"},null,-1),c("path",{d:"M12.5 18C12.5 18.2761 12.2761 18.5 12 18.5C11.7239 18.5 11.5 18.2761 11.5 18C11.5 17.7239 11.7239 17.5 12 17.5C12.2761 17.5 12.5 17.7239 12.5 18Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M11 18C11 17.4477 11.4477 17 12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M8 10C8 7.79086 9.79086 6 12 6H12.0943C14.2514 6 16 7.74864 16 9.90569V10.4189C16 11.7935 15.1204 13.014 13.8162 13.4487C13.3288 13.6112 13 14.0673 13 14.5811V16H11V14.5811C11 13.2065 11.8796 11.986 13.1838 11.5513C13.6712 11.3888 14 10.9327 14 10.4189V9.90569C14 8.85321 13.1468 8 12.0943 8H12C10.8954 8 10 8.89543 10 10H8Z"},null,-1)]),8,Pat)):D("",!0),n.icon==="payoff"?(h(),g("g",{key:91,fill:n.iconColor},t[88]||(t[88]=[c("path",{"fill-rule":"evenodd",d:"M8.70711 5.29289L7.29289 6.70711L11.5858 11H4C3.44771 11 3 11.4477 3 12C3 12.5523 3.44771 13 4 13H11.5858L7.29289 17.2929L8.70711 18.7071L15.4142 12L8.70711 5.29289Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M19 19V5L21 5V19H19Z"},null,-1)]),8,Aat)):D("",!0),n.icon==="mail"?(h(),g("g",{key:92,fill:n.iconColor,"clip-path":"url(#clip0_18299_917)"},t[89]||(t[89]=[c("path",{d:"M12.042 23.648C4.229 23.648 0 18.772 0 12.477C0 5.74999 4.762 0.35199 13.276 0.35199C19.49 0.35199 24 4.38999 24 9.95299C24 18.665 13.67 20.965 14.188 15.995C13.478 17.103 12.334 18.349 10.135 18.349C7.619 18.349 6.055 16.507 6.055 13.542C6.055 9.09799 8.976 5.34299 12.434 5.34299C14.093 5.34299 15.234 6.21899 15.711 7.56399L16.175 5.93199H18.513C18.269 6.76399 16.192 14.459 16.192 14.459C15.544 17.125 17.542 17.172 19.314 15.756C22.643 13.176 22.815 6.42899 18.316 3.61499C13.495 0.72399 2.521 2.51299 2.521 12.308C2.521 17.919 6.471 21.689 12.35 21.689C15.786 21.689 17.892 20.759 19.645 19.741L20.822 21.439C19.111 22.405 16.361 23.648 12.042 23.648ZM9.698 9.34299C8.983 10.683 8.521 12.419 8.521 13.767C8.521 17.377 12.043 17.4 13.773 14.006C14.485 12.612 14.944 10.835 14.944 9.47699C14.944 6.55999 11.449 6.04299 9.698 9.34299Z"},null,-1)]),8,Dat)):D("",!0),n.icon==="share"?(h(),g("g",{key:93,fill:n.iconColor},t[90]||(t[90]=[c("path",{"clip-rule":"evenodd",d:"M6.29289 9.29289L7.70711 10.7071L11 7.41421L11 14C11 14.5523 11.4477 15 12 15C12.5523 15 13 14.5523 13 14V7.41421L16.2929 10.7071L17.7071 9.29289L12 3.58578L6.29289 9.29289Z"},null,-1),c("path",{"clip-rule":"evenodd",d:"M6 16V17C6 17.5523 6.44772 18 7 18L17 18C17.5523 18 18 17.5523 18 17V16H20V17C20 18.6569 18.6569 20 17 20L7 20C5.34315 20 4 18.6569 4 17V16H6Z"},null,-1)]),8,xat)):D("",!0),n.icon==="credit_card"?(h(),g("svg",Oat,t[91]||(t[91]=[c("rect",{x:"3",y:"6",width:"18",height:"13",rx:"2",stroke:"#384C74","stroke-width":"2"},null,-1),c("path",{d:"M7 15H7.01",stroke:"#384C74","stroke-width":"2","stroke-linecap":"round"},null,-1),c("path",{d:"M4 11H21",stroke:"#384C74","stroke-width":"2","stroke-linecap":"round"},null,-1)]))):D("",!0),n.icon==="diamond"?(h(),g("g",Lat,[c("path",{d:"M12 20L3.81257 10.9029C3.41689 10.4632 3.21905 10.2434 3.16702 9.9684C3.11498 9.6934 3.21882 9.41649 3.4265 8.86268L4.27669 6.59551C4.74749 5.34003 4.98289 4.7123 5.49681 4.35615C6.01073 4 6.68116 4 8.022 4H15.978C17.3188 4 17.9893 4 18.5032 4.35615C19.0171 4.7123 19.2525 5.34003 19.7233 6.59551L20.5735 8.86268C20.7812 9.41649 20.885 9.6934 20.833 9.9684C20.7809 10.2434 20.5831 10.4632 20.1874 10.9029L12 20ZM12 20L15.9375 9M12 20L8.0625 9M20.4375 10L15.9375 9M15.9375 9L14.25 5M15.9375 9H8.0625M9.75 5L8.0625 9M8.0625 9L3.5625 10",stroke:n.iconColor,"stroke-width":"1.2","stroke-linecap":"round"},null,8,Mat)])):D("",!0),n.icon==="play"?(h(),g("g",{key:96,fill:n.iconColor},t[92]||(t[92]=[c("path",{"fill-rule":"evenodd",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM10.7828 7.99043L16.4265 11.1258C17.1123 11.5068 17.1123 12.4932 16.4265 12.8742L10.7828 16.0096C9.98293 16.4539 9 15.8756 9 14.9606V9.03942C9 8.12444 9.98293 7.54607 10.7828 7.99043Z"},null,-1)]),8,Nat)):D("",!0),n.icon==="trophy"?(h(),g("g",{key:97,fill:n.iconColor},t[93]||(t[93]=[c("path",{d:"M9.5 9.5C9.5 8.94772 9.94772 8.5 10.5 8.5H13.5C14.0523 8.5 14.5 8.94772 14.5 9.5C14.5 10.0523 14.0523 10.5 13.5 10.5H10.5C9.94772 10.5 9.5 10.0523 9.5 9.5Z"},null,-1),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.97137 5.88499C7.50444 5.05209 8.43774 4.5 9.5 4.5H14.5C15.5623 4.5 16.4956 5.0521 17.0286 5.88499C17.4634 5.63986 17.9653 5.5 18.5 5.5C20.1565 5.5 21.5 6.84224 21.5 8.49945V10.5C21.5 12.0255 20.8891 13.2277 20.3087 14.0257C20.0172 14.4266 19.7257 14.7365 19.5044 14.9486C19.3933 15.055 19.2987 15.138 19.2288 15.1966C19.1938 15.226 19.1649 15.2493 19.1432 15.2666L19.1159 15.2879L19.1065 15.2951L19.1029 15.2978L19.1013 15.299C19.1013 15.299 19.1029 15.2978 19.1 15.3C18.6582 15.6314 18.0314 15.5418 17.7 15.1C17.3697 14.6596 17.4576 14.0353 17.8958 13.7031L17.9018 13.6985C17.9093 13.6925 17.9234 13.6812 17.9431 13.6647C17.9826 13.6315 18.0442 13.5778 18.1206 13.5046C18.2743 13.3573 18.4828 13.1359 18.6913 12.8493C19.1109 12.2723 19.5 11.4745 19.5 10.5V8.49945C19.5 7.94752 19.0526 7.5 18.5 7.5C17.9477 7.5 17.5 7.94772 17.5 8.5V11.3593C17.5 13.031 16.6645 14.5922 15.2735 15.5195L13.1094 16.9622C13.0735 16.9862 13.037 17.0088 13 17.0302V19.5H16.5C17.0523 19.5 17.5 19.9477 17.5 20.5C17.5 21.0523 17.0523 21.5 16.5 21.5H7.5C6.94772 21.5 6.5 21.0523 6.5 20.5C6.5 19.9477 6.94772 19.5 7.5 19.5H11V17.0302C10.963 17.0088 10.9265 16.9862 10.8906 16.9622L8.7265 15.5195C7.33551 14.5922 6.5 13.031 6.5 11.3593V8.5C6.5 7.94772 6.05228 7.5 5.5 7.5C4.94736 7.5 4.5 7.94752 4.5 8.49945V10.5C4.5 11.4745 4.88906 12.2723 5.30874 12.8493C5.51718 13.1359 5.7257 13.3573 5.87941 13.5046C5.95583 13.5778 6.01743 13.6315 6.05693 13.6647C6.07664 13.6812 6.09072 13.6925 6.09824 13.6985L6.10417 13.7031C6.54239 14.0353 6.63033 14.6596 6.3 15.1C5.96863 15.5418 5.34183 15.6314 4.9 15.3L5.5 14.5C4.9 15.3 4.9 15.3 4.9 15.3L4.89866 15.299L4.89712 15.2978L4.89351 15.2951L4.88409 15.2879L4.85684 15.2666C4.83506 15.2493 4.80617 15.226 4.77119 15.1966C4.70132 15.138 4.60667 15.055 4.49559 14.9486C4.2743 14.7365 3.98282 14.4266 3.69126 14.0257C3.11094 13.2277 2.5 12.0255 2.5 10.5V8.49945C2.5 6.84224 3.8435 5.5 5.5 5.5C6.03465 5.5 6.53664 5.63986 6.97137 5.88499ZM8.5 7.5C8.5 6.94772 8.94772 6.5 9.5 6.5H14.5C15.0523 6.5 15.5 6.94772 15.5 7.5V11.3593C15.5 12.3623 14.9987 13.299 14.1641 13.8554L12 15.2981L9.8359 13.8554C9.0013 13.299 8.5 12.3623 8.5 11.3593V7.5Z"},null,-1)]),8,Rat)):D("",!0),n.icon==="archive"?(h(),g("g",{key:98,fill:n.iconColor},t[94]||(t[94]=[c("path",{"fill-rule":"evenodd",d:"M21 10V15C21 17.8284 21 19.2426 20.1213 20.1213C19.2426 21 17.8284 21 15 21H9C6.17158 21 4.75736 21 3.87868 20.1213C3 19.2426 3 17.8284 3 15V10C3 10.9319 3 11.3978 3.15225 11.7654C3.35523 12.2554 3.74458 12.6448 4.23464 12.8478C4.60218 13 5.06812 13 6 13H6.67545C7.25646 13 7.54697 13 7.77888 13.1338C7.83746 13.1676 7.89246 13.2072 7.94303 13.2521C8.14327 13.4298 8.23513 13.7054 8.41887 14.2566L8.54416 14.6325C8.76416 15.2925 8.87417 15.6225 9.13605 15.8112C9.39794 16 9.7458 16 10.4415 16H13.5585C14.2542 16 14.6021 16 14.864 15.8112C15.1258 15.6225 15.2358 15.2925 15.4559 14.6325L15.5811 14.2566C15.7649 13.7054 15.8567 13.4298 16.057 13.2521C16.1076 13.2072 16.1626 13.1676 16.2211 13.1338C16.453 13 16.7435 13 17.3246 13H18C18.9319 13 19.3978 13 19.7654 12.8478C20.2554 12.6448 20.6448 12.2554 20.8478 11.7654C21 11.3978 21 10.9319 21 10Z"},null,-1),c("path",{"fill-rule":"evenodd",d:"M6.93417 2C6.95604 2 6.97799 2 7 2L17.0658 2C17.9523 1.99995 18.7161 1.99991 19.3278 2.08215C19.9833 2.17028 20.6117 2.36902 21.1213 2.87868C21.631 3.38835 21.8297 4.0167 21.9179 4.67221C22.0001 5.28388 22.0001 6.0477 22 6.9342V17.0658C22.0001 17.9523 22.0001 18.7161 21.9179 19.3278C21.8297 19.9833 21.631 20.6117 21.1213 21.1213C20.6117 21.631 19.9833 21.8297 19.3278 21.9179C18.7161 22.0001 17.9523 22.0001 17.0658 22H6.9342C6.0477 22.0001 5.28388 22.0001 4.67221 21.9179C4.0167 21.8297 3.38835 21.631 2.87868 21.1213C2.36902 20.6117 2.17028 19.9833 2.08215 19.3278C1.99991 18.7161 1.99995 17.9523 2 17.0658L2 7C2 6.97799 2 6.95604 2 6.93417C1.99995 6.04769 1.99991 5.28387 2.08215 4.67221C2.17028 4.0167 2.36902 3.38835 2.87868 2.87868C3.38835 2.36902 4.0167 2.17028 4.67221 2.08215C5.28387 1.99991 6.04769 1.99995 6.93417 2ZM4.93871 4.06431C4.50497 4.12263 4.36902 4.21677 4.2929 4.2929C4.21677 4.36902 4.12263 4.50497 4.06431 4.93871C4.00213 5.40122 4 6.02893 4 7V17C4 17.9711 4.00213 18.5988 4.06431 19.0613C4.12263 19.495 4.21677 19.631 4.2929 19.7071C4.36902 19.7832 4.50497 19.8774 4.93871 19.9357C5.40122 19.9979 6.02893 20 7 20H17C17.9711 20 18.5988 19.9979 19.0613 19.9357C19.495 19.8774 19.631 19.7832 19.7071 19.7071C19.7832 19.631 19.8774 19.495 19.9357 19.0613C19.9979 18.5988 20 17.9711 20 17V7C20 6.02893 19.9979 5.40122 19.9357 4.93871C19.8774 4.50497 19.7832 4.36902 19.7071 4.2929C19.631 4.21677 19.495 4.12263 19.0613 4.06431C18.5988 4.00213 17.9711 4 17 4H7C6.02893 4 5.40122 4.00213 4.93871 4.06431Z"},null,-1)]),8,jat)):D("",!0),n.icon==="page"?(h(),g("g",{key:99,fill:n.iconColor},t[95]||(t[95]=[c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.3157 3.34061C11.2501 3.33562 11.159 3.33507 10.9765 3.33507H7.50017C6.69093 3.33507 6.16784 3.33684 5.78242 3.38866C5.42097 3.43726 5.30768 3.51571 5.24424 3.57915C5.18081 3.64259 5.10235 3.75588 5.05376 4.11733C5.00194 4.50275 5.00017 5.02584 5.00017 5.83507V14.1684C5.00017 14.9776 5.00194 15.5007 5.05376 15.8862C5.10235 16.2476 5.18081 16.3609 5.24424 16.4243C5.30768 16.4878 5.42097 16.5662 5.78242 16.6148C6.16784 16.6666 6.69093 16.6684 7.50017 16.6684H12.5002C13.3094 16.6684 13.8325 16.6666 14.2179 16.6148C14.5794 16.5662 14.6927 16.4878 14.7561 16.4243C14.8195 16.3609 14.898 16.2476 14.9466 15.8862C14.9984 15.5007 15.0002 14.9776 15.0002 14.1684V7.35876C15.0002 7.17624 14.9996 7.0851 14.9946 7.01959L14.9944 7.01599L14.992 7.01325C14.9492 6.9634 14.8852 6.89857 14.7561 6.76951L11.5657 3.57915C11.4367 3.45009 11.3718 3.38603 11.322 3.34323L11.3192 3.34089L11.3157 3.34061ZM11.0471 1.6682C11.3108 1.66703 11.6463 1.66555 11.9595 1.79527C12.2726 1.925 12.5088 2.16325 12.6944 2.35053C12.7115 2.3677 12.7281 2.38445 12.7442 2.40064L15.9346 5.591C15.9508 5.60719 15.9675 5.62378 15.9847 5.64081C16.172 5.82644 16.4102 6.0626 16.54 6.37578C16.6697 6.68896 16.6682 7.02443 16.667 7.28811C16.6669 7.31229 16.6668 7.33586 16.6668 7.35876L16.6668 14.2233C16.6669 14.962 16.6669 15.5985 16.5984 16.1082C16.5249 16.6545 16.3593 17.1781 15.9346 17.6028C15.5099 18.0276 14.9863 18.1932 14.44 18.2666C13.9303 18.3352 13.2938 18.3351 12.555 18.3351H7.44533C6.70658 18.3351 6.07006 18.3352 5.56034 18.2666C5.01408 18.1932 4.49045 18.0276 4.06573 17.6028C3.64101 17.1781 3.47539 16.6545 3.40195 16.1082C3.33342 15.5985 3.33346 14.962 3.3335 14.2233L3.3335 5.83507C3.3335 5.81673 3.3335 5.79844 3.3335 5.78022C3.33346 5.04148 3.33342 4.40496 3.40195 3.89525C3.47539 3.34898 3.64101 2.82536 4.06573 2.40064C4.49045 1.97592 5.01408 1.8103 5.56034 1.73686C6.07006 1.66833 6.70657 1.66836 7.44531 1.66841C7.46353 1.66841 7.48182 1.66841 7.50017 1.66841H10.9765C10.9994 1.66841 11.023 1.6683 11.0471 1.6682Z"},null,-1),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.66683 10.8351C6.66683 10.3748 7.03993 10.0017 7.50017 10.0017H12.5002C12.9604 10.0017 13.3335 10.3748 13.3335 10.8351C13.3335 11.2953 12.9604 11.6684 12.5002 11.6684H7.50017C7.03993 11.6684 6.66683 11.2953 6.66683 10.8351Z"},null,-1),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.66683 14.1684C6.66683 13.7082 7.03993 13.3351 7.50017 13.3351H10.8335C11.2937 13.3351 11.6668 13.7082 11.6668 14.1684C11.6668 14.6286 11.2937 15.0017 10.8335 15.0017H7.50017C7.03993 15.0017 6.66683 14.6286 6.66683 14.1684Z"},null,-1),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.0002 5.83507V2.50174H11.6668V5.83507C11.6668 6.25147 11.6686 6.47993 11.6899 6.63843C11.6902 6.64049 11.6905 6.64252 11.6907 6.6445C11.6927 6.64477 11.6947 6.64505 11.6968 6.64533C11.8553 6.66664 12.0838 6.66841 12.5002 6.66841H15.8335V8.33507H12.5002C12.485 8.33507 12.4699 8.33508 12.4548 8.33508C12.1014 8.33515 11.758 8.33522 11.4747 8.29713C11.1554 8.2542 10.791 8.1496 10.4883 7.84692C10.1856 7.54424 10.081 7.17984 10.0381 6.86051C10 6.57724 10.0001 6.23381 10.0002 5.88041C10.0002 5.86532 10.0002 5.8502 10.0002 5.83507Z"},null,-1)]),8,Fat)):D("",!0)],10,Frt)}const Ue=U(jrt,[["render",zat]]),Uat={components:{AppIcon:Ue}},Bat={class:"bg-success-light p-5 rounded border-start-5-success"},Hat={class:"text-success-dark mb-3"},Vat={class:"text-gray-700 large"};function qat(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Bat,[c("h3",Hat,[b(s,{icon:"check",height:"24",width:"24",class:"me-1"}),z(" "+m(e.$t("login.verified.title")),1)]),c("div",Vat,m(e.$t("login.verified.text")),1)])}const Yat=U(Uat,[["render",qat]]),Wat={components:{AppIcon:Ue},computed:{...Oe({auth:"auth/auth"})}},Gat={class:"d-flex flex-column align-items-center justify-content-center text-center h-3dot55rem"},Zat={class:"mb-1"},Kat={class:"mb-0 fw-medium text-gray-700"},Jat=["href"],Xat={class:"mb-1"},Qat={class:"mb-0 fw-medium text-gray-700"},elt=["href"];function tlt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Gat,[!e.auth.loading&&!e.auth.check?(h(),g(pe,{key:0},[c("h3",Zat,m(e.$t("home.headline")),1),c("p",Kat,[z(m(e.$t("home.subheadline"))+" ",1),c("a",{class:"d-inline-flex align-items-center link-dark text-decoration-underline-hover",href:e.ziggyRoute("materialy")},[z(m(e.$t("public.show_all_long"))+" ",1),b(s,{icon:"chevron-right",class:"",height:"24",width:"24"})],8,Jat)])],64)):!e.auth.loading&&e.auth.check?(h(),g(pe,{key:1},[c("h3",Xat,m(e.$t("home.headline_logged")),1),c("p",Qat,[z(m(e.$t("home.subheadline"))+" ",1),c("a",{class:"d-inline-flex align-items-center link-dark text-decoration-underline-hover",href:e.ziggyRoute("materialy")},[z(m(e.$t("product.all"))+" ",1),b(s,{icon:"chevron-right",class:"",height:"24",width:"24"})],8,elt)])],64)):D("",!0)])}const nlt=U(Wat,[["render",tlt]]),olt=""+new URL("cards-circle-71ef9f91.svg",import.meta.url).href,ilt={components:{AppIcon:Ue},props:{sectionLink:String,hrefTarget:{type:String,default:"_self"}},data(){return{cardsCircle:olt}}},rlt={class:"d-flex flex-column align-items-center justify-content-center bg-primary-5 border-radius-8px shadow-low shadow-mid-hover mh-21dot9375rem mt-3"},slt=["src"],alt={class:"text-gray-800 medium"},llt={class:"d-flex justify-content-center"},clt=["href","target"];function dlt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",rlt,[c("img",{src:i.cardsCircle,width:"125",height:"125",class:"mb-4"},null,8,slt),c("p",alt,m(e.$t("section.card.show_more")),1),c("div",llt,[c("a",{href:n.sectionLink,class:"btn btn-primary btn-sm btn-center",onClick:t[0]||(t[0]=a=>e.$emit("clicked")),target:n.hrefTarget},[z(m(e.$t("section.card.show"))+" ",1),b(s,{icon:"arrow-right",class:"ms-icon"})],8,clt)])])}const ult=U(ilt,[["render",dlt]]),hlt={components:{AppIcon:Ue},props:{altText:{type:String,default(){return""}},image:{type:String,default(){return""}},isVerified:{type:Boolean,default(){return!1}},maxWidth:String,maxHeight:String,width:{type:String,default(){return"38px"}},height:{type:String,default(){return"38px"}},verifiedSize:{type:String,default(){return null}}},computed:{maxWidthStyle(){return"max-width: "+this.maxWidth+";"},maxHeightStyle(){return"max-height: "+this.maxHeight+";"},widthStyle(){return"width: "+this.width+";"},heightStyle(){return"height: "+this.height+";"},verifiedSizeComputed(){return this.verifiedSize==="xs"?.5:this.verifiedSize==="lg"?1.5:1}}},flt={class:"d-flex align-items-center"},mlt=["src","alt"];function plt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",flt,[c("img",{src:n.image,alt:n.altText,style:Bn(r.maxWidthStyle+r.maxHeightStyle+r.widthStyle+r.heightStyle+"object-fit: cover;"),class:J(["rounded-circle",{"border border-success object-fit-cover me-neg-3":n.isVerified}])},null,14,mlt),n.isVerified?(h(),W(s,{key:0,class:J(["bg-white text-success position-relative rounded",n.verifiedSize==="xs"?"start-9px top-neg-7px":"start-0 top-neg-13px"]),icon:"verified-author",size:r.verifiedSizeComputed,style:{"--flink-secondary-color":"white","--flink-secondary-opacity":"1"}},null,8,["class","size"])):D("",!0)])}const lL=U(hlt,[["render",plt]]),glt={props:{rank:{type:Number,default:null}},data(){return{colors:{1:"#FFC642",2:"#A5A4DA",3:"#FC8B67"},cornerColors:{1:"#FC8B67",2:"#565861",3:"#804F4C"}}}},vlt={class:"position-absolute top-neg-0dot5rem start-0dot5rem"},_lt={width:"49",height:"73",viewBox:"0 0 49 73",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ylt=["fill"],blt={filter:"url(#filter0_dddd_16927_103847)"},klt=["fill"],wlt={class:"position-absolute start-25 top-0dot6875rem fw-bold small d-flex flex-column align-items-center text-white"};function $lt(e,t,n,o,i,r){return h(),g("div",vlt,[(h(),g("svg",_lt,[c("path",{d:"M4.97665 3.00006L43.2995 3.00003C44.435 3.25268 44.6733 4.82745 45 8H3C3.24751 4.53139 3.54452 3.0405 4.97665 3.00006Z",fill:i.cornerColors[n.rank]},null,8,ylt),c("g",blt,[c("path",{d:"M5 3H43.0543C42.6503 3.25747 42.5709 4.74903 42.5001 8V51L24.0001 59.5L5.50005 51V8C5.4851 4.85104 5.44995 3.26477 5 3Z",fill:i.colors[n.rank]},null,8,klt),t[0]||(t[0]=c("text",null,[c("textPath",{href:"#P",startoffset:"50","text-anchor":"middle","dominant-baseline":"middle",fill:"green","font-size":"14px"})],-1))]),t[1]||(t[1]=wl('<defs><filter id="filter0_dddd_16927_103847" x="0" y="0" width="48.0547" height="72.5" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="-1"></feOffset><feGaussianBlur stdDeviation="1"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.482353 0 0 0 0 0.52549 0 0 0 0 0.705882 0 0 0 0.05 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_16927_103847"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="1"></feOffset><feGaussianBlur stdDeviation="1"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.172549 0 0 0 0 0.207843 0 0 0 0 0.34902 0 0 0 0.05 0"></feColorMatrix><feBlend mode="normal" in2="effect1_dropShadow_16927_103847" result="effect2_dropShadow_16927_103847"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.482353 0 0 0 0 0.52549 0 0 0 0 0.705882 0 0 0 0.04 0"></feColorMatrix><feBlend mode="normal" in2="effect2_dropShadow_16927_103847" result="effect3_dropShadow_16927_103847"></feBlend><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="8"></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.481181 0 0 0 0 0.525778 0 0 0 0 0.704167 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="effect3_dropShadow_16927_103847" result="effect4_dropShadow_16927_103847"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect4_dropShadow_16927_103847" result="shape"></feBlend></filter></defs>',1))])),c("span",wlt,m("TOP"+n.rank),1)])}const Qre=U(glt,[["render",$lt]]),Clt={props:{prefix:String,amount:Number,validFrom:String,validTo:String},data(){return{moment:mt}}},Slt={key:0,class:"d-flex align-items-center justify-content-end position-relative"},Tlt={key:0,width:"20",height:"24",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Elt={key:1,width:"17",height:"19",viewBox:"0 0 17 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ilt={key:1,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Plt(e,t,n,o,i,r){return h(),g("div",null,[n.prefix||n.amount?(h(),g("div",Slt,[n.prefix?(h(),g("svg",Tlt,t[0]||(t[0]=[c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.3368 0H20V24H13.2874C12.8141 24 12.3561 23.8321 11.9949 23.5263L0.725398 13.9829C-0.191403 13.2065 -0.221702 11.8027 0.660741 10.9875L11.9796 0.530935C12.3491 0.189575 12.8337 0 13.3368 0ZM13 14C14.1046 14 15 13.1046 15 12C15 10.8954 14.1046 10 13 10C11.8954 10 11 10.8954 11 12C11 13.1046 11.8954 14 13 14Z",fill:"#DF4759"},null,-1)]))):(h(),g("svg",Elt,t[1]||(t[1]=[c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5479 0H17V19H10.4986C10.0264 19 9.56952 18.833 9.20869 18.5285L0.733786 11.3762C-0.186419 10.5997 -0.216793 9.19197 0.669057 8.37641L9.19328 0.528613C9.5625 0.188687 10.046 0 10.5479 0ZM12.5 11C13.3284 11 14 10.3284 14 9.5C14 8.67157 13.3284 8 12.5 8C11.6716 8 11 8.67157 11 9.5C11 10.3284 11.6716 11 12.5 11Z",fill:"#DF4759"},null,-1)]))),c("div",{class:J(["d-flex rounded-tag align-items-center bg-danger text-white text-nowrap text-end small px-1",n.prefix?"medium":"small"]),style:Bn(n.prefix?"height: 24px;":"height: 19px;")},[n.prefix?(h(),g(pe,{key:0},[z(m(n.prefix),1)],64)):D("",!0),n.amount?(h(),g(pe,{key:1},[z(m(e.$t("public.dash")+n.amount+" %"),1)],64)):D("",!0),n.validFrom&&n.validTo?(h(),g(pe,{key:2},[z(m(" ("+i.moment(n.validFrom).format("DD.MM.YYYY")+" - "+i.moment(n.validTo).format("DD.MM.YYYY")+")"),1)],64)):D("",!0)],6)])):(h(),g("svg",Ilt,t[2]||(t[2]=[c("path",{d:"M10.8979 0.29292C10.7104 0.105368 10.456 0 10.1908 0H0.999999C0.447714 0 0 0.447715 0 1V10.1948C0 10.46 0.105357 10.7144 0.292893 10.9019L12.6841 23.2931C13.0745 23.6835 13.7076 23.6836 14.0981 23.2932L23.2926 14.1031C23.6833 13.7126 23.6833 13.0793 23.2928 12.6887L10.8979 0.29292ZM6.414 6.414C5.633 7.195 4.368 7.195 3.585 6.415C2.804 5.632 2.804 4.367 3.585 3.586C4.367 2.804 5.633 2.805 6.414 3.585C7.196 4.367 7.195 5.632 6.414 6.414Z",fill:"#DF4759"},null,-1)])))])}const c6=U(Clt,[["render",Plt]]),Alt={props:{product:Object,marginEndPrice:{type:Number,default:3},showSchoolPrice:{type:Boolean,default:!1}},methods:{removePriceSuffix(e){return typeof e=="string"&&e.includes(" CZK")?e.replace(" CZK",""):e}},computed:{priceBruttoAllDiscounts(){return this.product.author_discount?this.showSchoolPrice?this.product.author_discount.new_school_price:this.product.author_discount.new_price:this.priceBrutto},priceBrutto(){return this.showSchoolPrice?this.product.school_price_brutto:this.product.price_brutto},isDiscountValid(){const e=mt(),t=mt(this.product.author_discount.valid_from),n=mt(this.product.author_discount.valid_to);return e.isBetween(t,n,null,"[]")}}},Dlt={key:0},xlt={key:0,class:"text-nowrap"},Olt={class:"fw-bold text-danger text-nowrap"},Llt={key:1},Mlt={class:"text-nowrap"};function Nlt(e,t,n,o,i,r){return r.priceBruttoAllDiscounts?(h(),g("span",Dlt,[n.product.author_discount&&r.isDiscountValid?(h(),g("span",xlt,[c("span",{class:J(["text-decoration-line-through fw-light text-gray-700 text-nowrap","me-"+n.marginEndPrice])},m(r.removePriceSuffix(r.priceBrutto.toLocaleString())+" "+e.$t("currency.short")),3),c("span",Olt,m(r.removePriceSuffix(r.priceBruttoAllDiscounts.toLocaleString())+" "+e.$t("currency.short")),1)])):(h(),g("span",Llt,[c("span",Mlt,m(r.removePriceSuffix(r.priceBruttoAllDiscounts.toLocaleString())+" "+e.$t("currency.short")),1)]))])):D("",!0)}const Wy=U(Alt,[["render",Nlt]]),Rlt={props:{color:String,small:{type:Boolean,default:!0},medium:{type:Boolean,default:!1},large:{type:Boolean,default:!1}},computed:{fontSize(){return this.large?"large":this.medium?"medium":this.small?"small":"large"}}};function jlt(e,t,n,o,i,r){return n.color=="primary"?(h(),g("span",{key:0,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-primary text-white px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="secondary"?(h(),g("span",{key:1,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-secondary text-primary px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="success"?(h(),g("span",{key:2,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-success-light text-success px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="success-primary"?(h(),g("span",{key:3,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-success text-white px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="danger"?(h(),g("span",{key:4,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-danger-light text-danger px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="danger-primary"?(h(),g("span",{key:5,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-danger text-white px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="warning"?(h(),g("span",{key:6,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-warning-light text-warning px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="warning-dark"?(h(),g("span",{key:7,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-warning-infobox text-white px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="gold"?(h(),g("span",{key:8,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-old-gold text-white px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="gray"?(h(),g("span",{key:9,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-gray-300 text-gray-900 bg-gray-400-hover px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="muted"?(h(),g("span",{key:10,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-gray-300 text-gray-700 px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="disabled"?(h(),g("span",{key:11,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-transparent text-manatee-gray px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="purple"?(h(),g("span",{key:12,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-purple-light text-purple px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="purple-dark"?(h(),g("span",{key:13,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-purple-light text-purple-dark px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):n.color=="pink"?(h(),g("span",{key:14,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap bg-pink-light text-persian-pink px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2)):(h(),g("span",{key:15,class:J([[r.fontSize],"badge rounded-pill d-inline-flex align-items-center justify-content-center text-nowrap px-2 py-1 fw-light"])},[Pt(e.$slots,"default")],2))}const Ni=U(Rlt,[["render",jlt]]),Flt={components:{AppIcon:Ue,Pill:Ni},props:{count:Number,short:Boolean}};function zlt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("Pill"),l=an("tooltip");return n.count>0?xe((h(),W(a,{key:0,color:"success"},{default:F(()=>[b(s,{icon:"rating",height:"12",width:"12",class:"me-icon"}),z(" "+m(n.count)+" "+m(n.short?"":e.$t("product.rating_count")),1)]),_:1})),[[l,{content:n.short?n.count+" "+e.$t("product.rating_count"):null,delay:{show:500,hide:100},triggers:["hover"]},void 0,{bottom:!0}]]):D("",!0)}const ese=U(Flt,[["render",zlt]]),Ult={components:{AppIcon:Ue,ProductRatingCountPill:ese},props:{product:Object,isBought:Boolean}},Blt={class:"d-flex"},Hlt={key:0,class:"h-1dot5rem px-2 me-1 rounded-pill text-primary bg-primary-10 small d-flex align-items-center justify-content-center"},Vlt={key:1,class:"h-1dot5rem px-2 me-1 rounded-pill text-primary bg-primary-10 small d-flex align-items-center justify-content-center"},qlt={key:2,class:"h-1dot5rem px-2 me-1 rounded-pill text-primary bg-primary-10 small d-flex align-items-center justify-content-center"};function Ylt(e,t,n,o,i,r){const s=y("ProductRatingCountPill"),a=y("AppIcon"),l=an("tooltip");return h(),g("div",Blt,[b(s,{count:n.product.ratings_count,short:""},null,8,["count"]),n.product.video&&!n.isBought?xe((h(),g("div",Hlt,[b(a,{icon:"video",height:"12",width:"12"})])),[[l,{content:"Video",delay:{show:500,hide:100},triggers:["hover"]},void 0,{bottom:!0}]]):D("",!0),n.product.is_distance_education_usable&&!n.isBought?xe((h(),g("div",Vlt,[b(a,{icon:"distance-education"})])),[[l,{content:e.$t("product.distance_education.title"),delay:{show:500,hide:100},triggers:["hover"]},void 0,{bottom:!0}]]):D("",!0),n.product.only_on_ucitelnice?xe((h(),g("div",qlt,[b(a,{icon:"diamond",class:"text-purple"})])),[[l,{content:e.$t("product.editor.only_on_ucitelnice.label"),delay:{show:500,hide:100},triggers:["hover"]},void 0,{bottom:!0}]]):D("",!0)])}const tse=U(Ult,[["render",Ylt]]),Wlt=e=>e.product_id?e.product_id:e.id?e.id:null,d6={getProductId:Wlt},F3=e=>{const t=e.analytics?Object.entries(e.analytics.categories).filter(([n])=>/^category\d*$/.test(n)).reduce((n,[o,i])=>(n[`item_${o}`]=i,n),{}):{};return{item_id:d6.getProductId(e),item_name:e.title,price:e.price,...t}},Glt=()=>{let e=0;const t=(n,o)=>{window.gtag&&typeof window.gtag=="function"?(window.gtag("event",n,o),e=0):(e++,e<10&&setTimeout(()=>{t(n,o)},500))};return t},Gy=Glt(),z3=(e,t)=>{Gy(e,{currency:"CZK",...t})},Zlt=e=>{const t=F3(e);z3("view_item",{value:e.price,items:[t]})},Klt=e=>{const t=F3(e);z3("add_to_cart",{value:e.price,items:[t]})},Jlt=e=>{const t=F3(e);z3("add_to_wishlist",{value:e.price,items:[t]})},Xlt=e=>e.reduce((n,o)=>n+o.price,0).toFixed(2),Qlt=e=>{const t=Xlt(Object.values(e)),n=Object.values(e).map(F3);z3("begin_checkout",{value:t,items:n})},ect=e=>{const t=e.total,n=e.items.map(F3);z3("purchase",{value:t,transaction_id:e.id,type:e.type,paid:e.paid,items:n})},tct=e=>{Gy("navigation_category_type_open",{name:e})},nct=e=>{Gy("navigation_category_select",{id:e.id,name:e.name})},oct=(e,t)=>{Gy("homepage_section_clicked",{id:e.id,title:e.title,element:t})},ict=()=>{Gy("login_shown")},rct=()=>{Gy("register_shown")},gh={viewItem:Zlt,addToCart:Klt,addToWishlist:Jlt,beginCheckout:Qlt,purchase:ect,navigationCategoryTypeOpen:tct,navigationCategorySelect:nct,homepageSectionClicked:oct,loginShown:ict,registerShown:rct},sct=e=>{const t=Object.values(e.analytics.categories);B3("ViewContent",{value:e.price,content_name:e.title,content_category:t,content_ids:[d6.getProductId(e)],content_type:"product"})},act=e=>{const t=e.analytics?Object.values(e.analytics.categories):[];B3("AddToCart",{value:e.price,content_name:e.title,content_category:t,content_ids:[d6.getProductId(e)],content_type:"product"})},lct=e=>{const t=Object.values(e.analytics.categories);B3("AddToWishlist",{value:e.price,content_name:e.title,content_category:t,content_ids:[d6.getProductId(e)],content_type:"product"})},cct=e=>e.reduce((n,o)=>n+o.price,0).toFixed(2),dct=e=>{B3("InitiateCheckout",{value:cct(Object.values(e)),content_ids:Object.values(e).map(t=>t.id),content_type:"product"})},uct=e=>{B3("Purchase",{value:e.total,content_ids:e.items.map(t=>t.id),type:e.type,paid:e.paid,content_type:"product"})},hct=e=>{U3("NavigationCategoryTypeOpen",{name:e})},fct=e=>{U3("NavigationCategorySelect",{id:e.id,name:e.name})},mct=()=>{U3("LoginShown")},pct=()=>{U3("RegisterShown")},gct=()=>{let e=0;const t=(n,o)=>{window.fbq&&typeof window.fbq=="function"?(window.fbq("track",n,o),e=0):(e++,e<10&&setTimeout(()=>{t(n,o)},500))};return t},U3=gct(),B3=(e,t)=>{U3(e,{currency:"CZK",...t})},H3={viewContent:sct,addToCart:act,addToWishlist:lct,initiateCheckout:dct,purchase:uct,navigationCategoryTypeOpen:hct,navigationCategorySelect:fct,loginShown:mct,registerShown:pct},V3=e=>{window.hj&&typeof window.hj=="function"&&window.hj("event",e)},vct=e=>{V3(e)},_ct=()=>{V3("login_shown")},yct=()=>{V3("register_shown")},bct=()=>{V3("guest_checkout")},kct=()=>{V3("begin_search_navbar")},q3={specialPageView:vct,loginShown:_ct,registerShown:yct,guestCheckout:bct,navbarSearchBegin:kct},u6=e=>{window.mixpanel&&typeof window.mixpanel.track=="function"&&window.mixpanel.track(e)},wct=()=>{u6("navbar.click.blog")},$ct=()=>{u6("navbar.click.webinare")},Cct=()=>{u6("navbar.click.napoveda")},Sct=()=>{u6("navbar.click.kontakt")},h6={navigationBlogClicked:wct,navigationWebinarClicked:$ct,navigationHelpClicked:Cct,navigationContactClicked:Sct},vh=(e,t={})=>window.plausible?(window.plausible(e,{props:t}),!0):!1,Tct=e=>{let t={navbar:"register--navbar",cart:"register--cart",guestOrder:"register--guestOrder"}[e];return t?vh(t):!1},Ect=e=>{let t={navbar:"login--navbar",cart:"login--cart"}[e];return t?vh(t):!1},Ict=e=>{gh.viewItem(e),H3.viewContent(e)},Pct=(e,t)=>{let n={detail:"addToCart--product",card:"addToCart--card",wishlist:"addToCart--wishlist",search:"addToCart--search"}[t];return gh.addToCart(e),H3.addToCart(e),!n||!e||!e.id?!1:(t==="box"&&cL(e),vh(n,{product_id:e.id}))},cL=e=>!e||!e.id?!1:vh("product--interested",{product_id:e.id}),Act=e=>!e||!e.id?!1:vh("product--exit",{product_id:e.id}),Dct=(e,t)=>!e||!t?!1:vh("product--author",{product_id:e,product_a_id:t}),xct=(e,t)=>!e||!t?!1:vh("product--recommended",{product_id:e,product_recommended_id:t}),Oct=(e,t)=>{let n={detail:"addToWishlist--product",card:"addToWishlist--card"}[t];return gh.addToWishlist(e),H3.addToWishlist(e),!n||!e||!e.id?!1:(t==="box"&&cL(e),vh(n,{product_id:e.id}))},Lct=()=>vh("BuyAll--wishlist"),Mct=e=>{let t={filter:"FirstAction--filter",product:"FirstAction--product",cta:"FirstAction--CTA",navbar:"FirstAction--navbar",category:"FirstAction--category",blog:"FirstAction--blog"}[e];return t?vh(t):!1},Nct=(e,t=!1)=>{t?q3.guestCheckout():(gh.beginCheckout(e),H3.initiateCheckout(e))},Rct=e=>{gh.purchase(e),H3.purchase(e)},jct=e=>{q3.specialPageView(e)},Fct=e=>{gh.navigationCategoryTypeOpen(e)},zct=e=>{gh.navigationCategorySelect(e)},Uct=(e,t)=>{gh.homepageSectionClicked(e,t)},Bct=()=>{h6.navigationBlogClicked()},Hct=()=>{h6.navigationWebinarClicked()},Vct=()=>{h6.navigationHelpClicked()},qct=()=>{h6.navigationContactClicked()},Yct=()=>{gh.loginShown(),q3.loginShown()},Wct=()=>{gh.registerShown(),q3.registerShown()},Gct=()=>{q3.navbarSearchBegin()},ai={login:Ect,register:Tct,viewItem:Ict,addToCart:Pct,addAllToCartFromWishlist:Lct,addToWishlist:Oct,productInterested:cL,productExit:Act,productAuthor:Dct,productRecommended:xct,homepageFirstVisit:Mct,checkout:Nct,purchase:Rct,specialUrlPageView:jct,navigationCategoryTypeOpen:Fct,navigationCategorySelect:zct,homepageSectionClicked:Uct,navigationBlogClicked:Bct,navigationWebinarClicked:Hct,navigationHelpClicked:Vct,navigationContactClicked:qct,loginShown:Yct,registerShown:Wct,navbarSearchOpened:Gct},Zct={props:{product:{type:Object,required:!0},context:{type:String,default:null},tooltipHidden:{type:Boolean,default:!1},classCustom:{type:String,default:"btn btn-primary btn-center w-100"}},computed:{...sn({loading:e=>e.cart.loading}),...Oe({isInCart:"cart/isItemInCart"}),added(){return this.isInCart(this.product.id)}},methods:{add(){this.isMobile&&ai.viewItem(this.product),this.$store.dispatch("cart/add",{productId:this.product.id,asSchool:!1,context:this.context})},handleResize(){this.isMobile=window.matchMedia("(hover: none)").matches}},created(){window.addEventListener("resize",this.handleResize)},beforeUnmount(){window.removeEventListener("resize",this.handleResize)}},Kct=["disabled"];function Jct(e,t,n,o,i,r){const s=y("app-icon"),a=an("tooltip");return xe((h(),g("div",null,[c("button",{id:"product-cart-add-button",onClick:t[0]||(t[0]=Gt((...l)=>r.add&&r.add(...l),["prevent"])),disabled:r.added,class:J(n.classCustom),"data-lb-action":"cart-add"},[Pt(e.$slots,"default",{},()=>[e.loading?(h(),W(s,{key:1,icon:"cog",spin:""})):(h(),W(s,{key:0,icon:"basket"}))])],10,Kct)])),[[a,{content:n.tooltipHidden?null:r.added?e.$t("cart.already_button"):e.$t("cart.add_into_cart"),delay:{show:500,hide:100},triggers:["hover","click"]},void 0,{bottom:!0}]])}const f6=U(Zct,[["render",Jct]]),Xct={props:{product:{type:Object,required:!0},context:{type:String,default:null},tooltipHidden:{type:Boolean,default:!1},classCustom:{type:String,default:null}},computed:{...Oe({auth:"auth/auth",isInCart:"cart/isItemInCart"}),...sn({loading:e=>e.wishlist.loading}),addedToCart(){return this.isInCart(this.product.id)}},methods:{add(){this.isMobile&&ai.viewItem(this.product),this.auth.check?this.$store.dispatch("wishlist/add",{product:this.product,context:this.context}):window.loginRegisterModal(window.location.href)},handleResize(){this.isMobile=window.matchMedia("(hover: none)").matches}},mounted(){this.handleResize()},created(){window.addEventListener("resize",this.handleResize)},beforeUnmount(){window.removeEventListener("resize",this.handleResize)}},Qct={key:0};function edt(e,t,n,o,i,r){const s=y("app-icon"),a=an("tooltip");return r.addedToCart?D("",!0):xe((h(),g("div",Qct,[c("button",{id:"product-wishlist-add-button",class:J(n.classCustom),onClick:t[0]||(t[0]=(...l)=>r.add&&r.add(...l)),"data-lb-action":"wishlist-add"},[Pt(e.$slots,"default",{},()=>[e.loading?(h(),W(s,{key:1,icon:"cog",spin:""})):(h(),W(s,{key:0,icon:"wishlist"}))])],2)])),[[a,{content:n.tooltipHidden?null:e.$t("public.to_wish"),delay:{show:500,hide:100},triggers:["hover","click"]},void 0,{bottom:!0}]])}const nse=U(Xct,[["render",edt]]),tdt={props:{product:{type:Object,required:!0},context:{type:String,default:null},tooltipHidden:{type:Boolean,default:!1}},computed:{...sn({loading:e=>e.wishlist.loading})},methods:{remove(){this.$store.dispatch("wishlist/remove",this.product.id)}}};function ndt(e,t,n,o,i,r){const s=y("app-icon"),a=an("tooltip");return xe((h(),g("button",{id:"product-wishlist-remove-button",onClick:t[0]||(t[0]=(...l)=>r.remove&&r.remove(...l)),"data-lb-action":"wishlist-remove","data-action-attitude":"negative"},[Pt(e.$slots,"default",{},()=>[e.loading?(h(),W(s,{key:1,icon:"cog",spin:""})):(h(),W(s,{key:0,icon:"wishlist-off"}))])])),[[a,{content:n.tooltipHidden?null:e.$t("wishlist.remove"),delay:{show:500,hide:100},triggers:["hover","click"]},void 0,{bottom:!0}]])}const dL=U(tdt,[["render",ndt]]),odt={components:{WishlistProductAddButton:nse,WishlistProductRemoveButton:dL},props:{product:{type:Object,required:!0}},computed:{...Oe({isAdded:"wishlist/isAdded"})}};function idt(e,t,n,o,i,r){const s=y("WishlistProductAddButton"),a=y("WishlistProductRemoveButton");return h(),g("div",null,[e.isAdded(n.product.id)?(h(),W(a,{key:1,product:n.product,class:"btn btn-sm btn-primary btn-center h-1dot875rem",context:"card"},null,8,["product"])):(h(),W(s,{key:0,product:n.product,"class-custom":"btn btn-sm btn-primary btn-center h-1dot875rem",context:"card"},null,8,["product"]))])}const rdt=U(odt,[["render",idt]]),sdt={components:{ProductPrice:Wy,ProductCardTopBadge:Qre,UserIcon:lL,AppIcon:Ue,DiscountIcon:c6,ProductCardTags:tse,CartProductAddButton:f6,WishlistProductCardButton:rdt},props:{product:Object,isWebinar:{type:Boolean,default:!1},occurance:String,hrefTarget:{type:String,default:"_self"}},data(){return{hover:!1,authorHover:!1,isMobile:!1,moment:mt}},computed:{...Oe({boughtAllProductsIds:"auth/getDownloads"}),recommendationData(){return this.product.recommendation_configuration?this.product.id+"|"+this.product.recommendation_configuration+"|"+this.occurance:null},isBought(){return this.boughtAllProductsIds.includes(Number(this.product.id))},isAuthorDiscount(){const e=mt();return this.product.author_discount&&mt(this.product.author_discount.valid_from).isBefore(e)&&mt(this.product.author_discount.valid_to).isAfter(e)},isDiscountValid(){const e=mt(),t=mt(this.product.author_discount.valid_from),n=mt(this.product.author_discount.valid_to);return e.isBetween(t,n,null,"[]")}},methods:{handleHover(e){this.isMobile||(ai.viewItem(this.product),this.hover=e)},handleResize(){this.isMobile=window.matchMedia("(hover: none)").matches}},created(){window.addEventListener("resize",this.handleResize)},beforeUnmount(){window.removeEventListener("resize",this.handleResize)}},adt=["data-product-recommendation"],ldt={class:"overflow-hidden h-0 pb-100"},cdt=["href","target"],ddt=["src","alt"],udt={class:"p-1"},hdt={class:"d-flex"},fdt=["href","target"],mdt={class:"d-flex justify-content-between align-items-center"},pdt=["href","target"],gdt={class:"d-flex justify-content-between align-items-center"},vdt={class:"d-flex align-items-center mh-1dot875rem"},_dt={key:0},ydt={key:0,class:"h-1dot5rem px-2 me-1 d-flex align-items-center rounded-pill bg-gray-300 text-gray-700 small d-flex align-items-center justify-content-center"},bdt={key:1,class:"d-flex"},kdt={key:0},wdt=["href"];function $dt(e,t,n,o,i,r){const s=y("ProductCardTopBadge"),a=y("UserIcon"),l=y("AppIcon"),d=y("DiscountIcon"),u=y("ProductCardTags"),f=y("ProductPrice"),p=y("WishlistProductCardButton"),v=y("CartProductAddButton"),_=an("tooltip");return h(),g("div",{class:J(["product--card--new position-relative mt-3 rounded border p-2 shadow-low shadow-mid-hover bg-white mh-16dot875rem",[n.product.rank>0?"border-bestseller-"+n.product.rank:""]]),"data-product-recommendation":r.recommendationData,onMouseover:t[4]||(t[4]=k=>r.handleHover(!0)),onMouseleave:t[5]||(t[5]=k=>r.handleHover(!1))},[n.product.rank>0?(h(),W(s,{key:0,rank:n.product.rank},null,8,["rank"])):D("",!0),c("div",ldt,[c("a",{class:"text-decoration-none",id:"product-show-by-image-button",href:n.product.web_url,onClick:t[0]||(t[0]=k=>e.$emit("analytics")),target:n.hrefTarget},[c("img",{src:n.product.cover_img_thumbnail,alt:n.product.title,class:"border rounded object-fit-cover w-100 h-auto object-position-right"},null,8,ddt)],8,cdt)]),c("div",udt,[c("div",hdt,[c("a",{id:"product-show-by-title-button",href:n.product.web_url,onClick:t[1]||(t[1]=k=>e.$emit("analytics")),class:"d-flex align-items-center link-dark small-md-down mt-1 mb-1 text-gray-900 fw-medium text-truncate-2-line text-decoration-none small",target:n.hrefTarget},m(n.product.title),9,fdt)]),c("div",mdt,[c("a",{href:e.ziggyRoute("user.show",n.product.author.id),class:"d-flex justify-content-start align-items-center py-1 text-gray-700 link-dark text-truncate text-decoration-none",onMouseover:t[2]||(t[2]=k=>i.authorHover=!0),onMouseleave:t[3]||(t[3]=k=>i.authorHover=!1),target:n.hrefTarget},[b(a,{"alt-text":n.product.author.first_name+" "+n.product.author.last_name,image:n.product.author.image_thumbnail,height:"28px",width:"28px",class:"mw-1dot25rem me-2"},null,8,["alt-text","image"]),n.product.author.public_alias!==null?(h(),g("p",{key:0,class:J(["mb-0 me-1 small fw-medium text-truncate text-gray-700",{"text-decoration-underline":i.authorHover}])},m(n.product.author.public_alias),3)):(h(),g("p",{key:1,class:J(["mb-0 me-1 small fw-medium text-truncate text-gray-700",{"text-decoration-underline":i.authorHover}])},m(n.product.author.first_name)+" "+m(n.product.author.last_name),3)),n.product.author.is_verified?(h(),W(l,{key:2,icon:"check-fill",height:"14",width:"14",class:"text-success"})):D("",!0)],40,pdt),n.product.author_discount&&r.isDiscountValid?(h(),W(d,{key:0,amount:n.product.author_discount.amount,class:"ms-2"},null,8,["amount"])):D("",!0)]),c("div",gdt,[b(u,{product:n.product,"is-bought":r.isBought},null,8,["product","is-bought"]),c("div",vdt,[i.hover?(h(),g("div",bdt,[r.isBought?xe((h(),g("div",kdt,[c("a",{class:"btn btn-sm btn-primary d-flex align-items-center justify-content-center h-1dot875rem mw-2dot5975 text-decoration-none",href:e.ziggyRoute("downloads.download",{product:n.product.id})},[b(l,{icon:"download",height:"18",width:"18"})],8,wdt)])),[[_,{content:e.$t("download.download"),delay:{show:500,hide:100},triggers:["hover","click"]},void 0,{bottom:!0}]]):(h(),g(pe,{key:1},[b(p,{product:n.product,context:"card"},null,8,["product"]),b(v,{product:n.product,"class-custom":"btn btn-primary btn-sm btn-center ms-1 h-1dot875rem",context:"card"},null,8,["product"])],64))])):(h(),g("div",_dt,[r.isBought?(h(),g("div",ydt,[b(l,{icon:"check",height:"12",width:"12",class:"me-icon"}),z(" "+m(e.$t("download.bought")),1)])):(h(),W(f,{key:1,product:n.product,"margin-end-price":1},null,8,["product"]))]))])])])],42,adt)}const m6=U(sdt,[["render",$dt]]);function $P(e,t,n){var o,i,r,s,a;t==null&&(t=100);function l(){var u=Date.now()-s;u<t&&u>=0?o=setTimeout(l,t-u):(o=null,n||(a=e.apply(r,i),r=i=null))}var d=function(){r=this,i=arguments,s=Date.now();var u=n&&!o;return o||(o=setTimeout(l,t)),u&&(a=e.apply(r,i),r=i=null),a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.flush=function(){o&&(a=e.apply(r,i),r=i=null,clearTimeout(o),o=null)},d}$P.debounce=$P;var is=$P;const Cdt={components:{ProductCard:m6,ProductCardShowMore:ult},props:{products:{type:Array,default(){return[]}},occurance:{type:String,default:null},horizontalScrollMobile:{type:Boolean,default:!1},maxProducts:{type:Number,default:5},section:{type:Object,default:null},maxProductsMobile:{type:Number,default:10},hrefTarget:{type:String,default:"_self"}},data(){return{isLowerThanLg:!1,definedColHorizBig:[3,4,5]}},methods:{resizeCallback(){this.isLowerThanLg=window.innerWidth<992},homepageSectionClicked(e){this.section&&ai.homepageSectionClicked(this.section,e)}},computed:{productsMobile(){return this.products.slice(0,Math.max(this.maxProductsMobile,this.maxProducts))},productsDesktop(){return this.products.slice(0,this.maxProducts)},productsToDisplay(){return this.isLowerThanLg?this.productsMobile:this.productsDesktop},colHorizBigClass(){return this.definedColHorizBig.includes(this.maxProducts)?"col-horiz-big-"+this.maxProducts:"col-horiz-big-5"}},created(){this.resizeCallback(),this.resizeCallback=is.debounce(this.resizeCallback,100),window.addEventListener("resize",this.resizeCallback)},unmounted(){window.removeEventListener("resize",this.resizeCallback)}};function Sdt(e,t,n,o,i,r){const s=y("ProductCard"),a=y("ProductCardShowMore");return h(),g("div",{class:J(["row",{"horizontal-scroll-mobile":n.horizontalScrollMobile}])},[(h(!0),g(pe,null,Me(r.productsToDisplay,l=>(h(),g("div",{key:l.id,class:J(["px-2",[n.horizontalScrollMobile?r.colHorizBigClass:"col-lg-3 col-xl-2dot4"]])},[b(s,{"href-target":n.hrefTarget,product:l,occurance:n.occurance,onAnalytics:t[0]||(t[0]=d=>{e.$emit("analytics-product"),r.homepageSectionClicked("card")})},null,8,["href-target","product","occurance"])],2))),128)),n.section&&n.section.link?(h(),g("div",{key:0,class:J(["d-block d-lg-none",[n.horizontalScrollMobile?r.colHorizBigClass:"col-lg-3 col-xl-2dot4"]])},[b(a,{"section-link":n.section.link,onClicked:t[1]||(t[1]=l=>r.homepageSectionClicked("card_show_more")),"href-target":n.hrefTarget},null,8,["section-link","href-target"])],2)):D("",!0)],2)}const p6=U(Cdt,[["render",Sdt]]),Tdt={props:{section:Object,horizontalScrollMobile:Boolean},methods:{homepageSectionClicked(e){ai.homepageSectionClicked(this.section,e)}}},Edt={class:"row"},Idt=["href"],Pdt={class:"flex-grow-1 d-flex flex-column align-items-center justify-content-center mb-2 h-8dot125rem"},Adt=["src","alt"],Ddt={class:"fw-bold mb-0"};function xdt(e,t,n,o,i,r){return h(),g("div",Edt,[(h(!0),g(pe,null,Me(n.section.categories,s=>(h(),g("div",{key:s.id,class:"col-12 col-sm mb-4"},[c("a",{href:e.ziggyRoute("materialy",{category:JSON.stringify([s.id])}),class:"d-flex flex-column border border-2 rounded bg-primary-5 text-center p-4 shadow-hover cursor-pointer link-dark",onClick:t[0]||(t[0]=a=>r.homepageSectionClicked("category"))},[c("div",Pdt,[c("img",{src:s.image_path,alt:s.name,class:"maxh-8dot125rem maxw-8dot125rem"},null,8,Adt)]),c("p",Ddt,m(s.name),1)],8,Idt)]))),128))])}const Odt=U(Tdt,[["render",xdt]]);var EV=function(){return Math.random().toString(36).substring(2)},Ldt=xo({name:"ContentLoader",props:{width:{type:[Number,String]},height:{type:[Number,String]},viewBox:{type:String},preserveAspectRatio:{type:String,default:"xMidYMid meet"},speed:{type:Number,default:2},baseUrl:{type:String,default:""},primaryColor:{type:String,default:"#f9f9f9"},secondaryColor:{type:String,default:"#ecebeb"},primaryOpacity:{type:Number,default:1},secondaryOpacity:{type:Number,default:1},uniqueKey:{type:String},animate:{type:Boolean,default:!0}},setup:function(t){var n=dt(function(){return t.uniqueKey?"".concat(t.uniqueKey,"-idClip"):EV()}),o=dt(function(){return t.uniqueKey?"".concat(t.uniqueKey,"-idGradient"):EV()}),i=dt(function(){var a;return(a=t.width)!==null&&a!==void 0?a:400}),r=dt(function(){var a;return(a=t.height)!==null&&a!==void 0?a:130}),s=dt(function(){var a;return(a=t.viewBox)!==null&&a!==void 0?a:"0 0 ".concat(i.value," ").concat(r.value)});return{idClip:n,idGradient:o,computedViewBox:s}},render:function(){return b("svg",{width:this.width,height:this.height,viewBox:this.computedViewBox,version:"1.1",preserveAspectRatio:this.preserveAspectRatio},[b("rect",{style:{fill:"url(".concat(this.baseUrl,"#").concat(this.idGradient,")")},"clip-path":"url(".concat(this.baseUrl,"#").concat(this.idClip,")"),x:"0",y:"0",width:"100%",height:"100%"},null),b("defs",null,[b("clipPath",{id:this.idClip},[this.$slots.default?this.$slots.default():b("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"},null)]),b("linearGradient",{id:this.idGradient},[b("stop",{offset:"0%","stop-color":this.primaryColor,"stop-opacity":this.primaryOpacity},[this.animate?b("animate",{attributeName:"offset",values:"-2; 1",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null]),b("stop",{offset:"50%","stop-color":this.secondaryColor,"stop-opacity":this.secondaryOpacity},[this.animate?b("animate",{attributeName:"offset",values:"-1.5; 1.5",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null]),b("stop",{offset:"100%","stop-color":this.primaryColor,"stop-opacity":this.primaryOpacity},[this.animate?b("animate",{attributeName:"offset",values:"-1; 2",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null])])])])}});const Mdt={components:{ContentLoader:Ldt}},Ndt={viewBox:"0 0 248 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rdt(e,t,n,o,i,r){const s=y("ContentLoader");return h(),g("div",null,[(h(),g("svg",Ndt,[t[1]||(t[1]=c("rect",{x:"0.5",width:"247",height:"340",rx:"8",fill:"#F6F8FE"},null,-1)),t[2]||(t[2]=c("rect",{x:"0.5",width:"247",height:"340",rx:"8",fill:"#F6F8FE"},null,-1)),b(s,{width:"248",height:"340",viewBox:"0 0 248 314",primaryColor:"#f6f8fe",secondaryColor:"#ebeffd"},{default:F(()=>t[0]||(t[0]=[c("rect",{x:"12.5",y:"12",width:"223",height:"221",rx:"4"},null,-1),c("rect",{x:"42.5",y:"257",width:"164",height:"24",rx:"4"},null,-1),c("rect",{x:"61.5",y:"297",width:"126",height:"16",rx:"4"},null,-1)])),_:1})]))])}const ose=U(Mdt,[["render",Rdt]]),jdt={components:{ProductCardGhost:ose},props:{horizontalScrollMobile:{type:Boolean,default:!1},px:{type:Number,default:2},mt:{type:Number,default:3},count:{type:Number,default:5}}};function Fdt(e,t,n,o,i,r){const s=y("ProductCardGhost");return h(),g("div",{class:J(["row",{"horizontal-scroll-mobile":n.horizontalScrollMobile}])},[(h(!0),g(pe,null,Me(n.count,a=>(h(),g("div",{key:a,class:J([n.horizontalScrollMobile?"col-horiz-big-"+n.count:"col-lg-3 col-xl-2dot4","px-"+n.px])},[b(s,{class:J("mt-"+n.mt)},null,8,["class"])],2))),128))],2)}const ise=U(jdt,[["render",Fdt]]);const zdt={props:{section:{type:Object,default:()=>({id:null,name:null,description:null,slug:null})},image:null},data(){return{itemHover:!1}}},Udt=["href"],Bdt={class:"h4 text-white fw-bold mb-2"},Hdt={class:"medium fw-medium mb-2"},Vdt=["src","alt"];function qdt(e,t,n,o,i,r){const s=y("app-icon");return h(),g("div",{class:"position-relative border-radius-8px shadow-hover mh-6dot25rem h-100",onMouseover:t[0]||(t[0]=a=>i.itemHover=!0),onMouseleave:t[1]||(t[1]=a=>i.itemHover=!1)},[c("a",{href:n.section.link,class:"position-absolute py-5 px-4 w-100 h-100 rounded cursor-pointer link-white"},[c("h4",Bdt,m(n.section.title),1),c("p",Hdt,m(n.section.description),1),c("div",null,[c("button",{class:J(["btn btn-sm btn-center custom-invisible-button",{"custom-invisible-button-hover":i.itemHover}])},[z(m(e.$t("public.explore"))+" ",1),b(s,{icon:"arrow-right",class:"ms-icon"})],2)])],8,Udt),n.section.card_img?(h(),g("img",{key:0,src:n.section.card_img,class:"h-100 w-100",alt:n.section.title+" logo"},null,8,Vdt)):D("",!0)],32)}const rse=U(zdt,[["render",qdt],["__scopeId","data-v-371376c0"]]),sse=""+new URL("large_gift-d5014afd.png",import.meta.url).href,Ydt={components:{AppIcon:Ue},data(){return{largeGift:sse}}},Wdt=["href"],Gdt={class:"d-flex flex-column gap-2"},Zdt={class:"fw-bold mb-0"},Kdt={class:"medium mb-0"},Jdt={class:"btn btn-primary btn-sm btn-center"},Xdt=["src","alt"];function Qdt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("a",{class:"p-4 shadow-hover border border-gray-400 position-relative d-block text-dark h-100 border-radius-8px mh-6dot25rem",href:e.ziggyRoute("voucher.index")},[c("div",Gdt,[c("h4",Zdt,m(e.$t("public.public_voucher")),1),c("p",Kdt,m(e.$t("public.public_voucher_text")),1),c("div",null,[c("button",Jdt,[z(m(e.$t("voucher.buy_short"))+" ",1),b(s,{icon:"chevron-right",class:"ms-2"})])])]),c("img",{src:i.largeGift,alt:e.$t("voucher.promo.alt_image"),class:"position-absolute bottom-0 end-0 z-index-neg-1 w-75"},null,8,Xdt)],8,Wdt)}const ase=U(Ydt,[["render",Qdt]]),eut={components:{VoucherPromoSection:ase,SectionSection:rse},props:{section:Object,horizontalScrollMobile:{type:Boolean,default:!1}},methods:{homepageSectionClicked(e){ai.homepageSectionClicked(this.section,e)}}};function tut(e,t,n,o,i,r){const s=y("VoucherPromoSection"),a=y("SectionSection");return h(),g("div",{class:J(["row",{"horizontal-scroll-mobile":n.horizontalScrollMobile}])},[(h(!0),g(pe,null,Me(n.section.children,(l,d)=>(h(),g("div",{key:d,class:J(["px-1 col-lg",{"col-section-list":n.horizontalScrollMobile}])},[l.type==="static"?(h(),W(s,{key:0})):(h(),W(a,{key:1,section:l,image:l.card_img,onClick:t[0]||(t[0]=u=>r.homepageSectionClicked("section"))},null,8,["section","image"]))],2))),128))],2)}const nut=U(eut,[["render",tut]]);const out={components:{VoucherPromoSection:ase,AppIcon:Ue,SectionSection:rse},props:{section:Object},data(){return{scrollPosition:0,itemWidth:0,visibleItems:0,totalWidth:0,canScrollLeft:!1,canScrollRight:!1}},methods:{updateDimensions(){this.$nextTick(()=>{this.$refs.carousel&&this.$refs.carousel.children.length>0&&(this.itemWidth=this.$refs.carousel.children[0].offsetWidth,this.visibleItems=Math.floor(this.$refs.carousel.offsetWidth/this.itemWidth),this.totalWidth=this.$refs.carousel.scrollWidth,this.canScrollLeft=this.scrollPosition>0,this.canScrollRight=this.scrollPosition<this.totalWidth-this.$refs.carousel.offsetWidth)})},scrollLeft(){if(this.$refs.carousel){const e=this.itemWidth*this.visibleItems;this.scrollPosition=Math.max(0,this.scrollPosition-e),this.updateDimensions()}else console.error("carousel ref is undefined in scrollLeft")},scrollRight(){if(this.$refs.carousel){const e=this.itemWidth*this.visibleItems;this.scrollPosition=Math.min(this.totalWidth-this.$refs.carousel.offsetWidth,this.scrollPosition+e),this.updateDimensions()}else console.error("carousel ref is undefined in scrollRight")},homepageSectionClicked(e){ai.homepageSectionClicked(this.section,e)}},watch:{section:{handler:"updateDimensions",deep:!0,immediate:!0},scrollPosition(){this.updateDimensions()}},mounted(){this.$nextTick(()=>{setTimeout(()=>{this.updateDimensions(),window.addEventListener("resize",this.updateDimensions)},0)})},beforeUnmount(){window.removeEventListener("resize",this.updateDimensions)}},iut={class:"position-relative"},rut={class:"overflow-hidden"};function sut(e,t,n,o,i,r){const s=y("AppIcon"),a=y("VoucherPromoSection"),l=y("SectionSection");return h(),g("div",iut,[i.canScrollLeft?(h(),g("button",{key:0,onClick:t[0]||(t[0]=(...d)=>r.scrollLeft&&r.scrollLeft(...d)),class:"position-absolute start-0 top-50 translate-middle-y btn btn-secondary p-2 ms-neg-7 bg-primary-hover text-white-hover text-white-active"},[b(s,{icon:"chevron-left",height:24,width:24})])):D("",!0),c("div",rut,[c("div",{class:"d-flex carousel-container",style:Bn({transform:`translateX(-${i.scrollPosition}px)`}),ref:"carousel"},[(h(!0),g(pe,null,Me(n.section.children,(d,u)=>(h(),g("div",{key:u,class:"col-12 col-md-6 col-lg-4 col-xl-3 px-1"},[d.type==="static"?(h(),W(a,{key:0})):(h(),W(l,{key:1,section:d,image:d.card_img,onClick:t[1]||(t[1]=f=>r.homepageSectionClicked("section"))},null,8,["section","image"]))]))),128))],4)]),i.canScrollRight?(h(),g("button",{key:1,onClick:t[2]||(t[2]=(...d)=>r.scrollRight&&r.scrollRight(...d)),class:"position-absolute end-0 top-50 translate-middle-y btn btn-secondary p-2 me-neg-7 bg-primary-hover text-white-hover text-white-active"},[b(s,{icon:"chevron-right",height:24,width:24})])):D("",!0)])}const aut=U(out,[["render",sut],["__scopeId","data-v-90c66425"]]),lut={components:{SectionSectionListLgUp:aut,SectionSectionLgDown:nut},props:{section:Object},computed:{sectionsWithStaticSection(){let e={...this.section};const t=this.section.children.slice();let n={type:"static"};return t.length<4?t.push(n):t.splice(3,0,n),e.children=t,e}}};function cut(e,t,n,o,i,r){const s=y("SectionSectionListLgUp"),a=y("SectionSectionLgDown");return h(),g("div",null,[b(s,{class:"d-none d-lg-block",section:r.sectionsWithStaticSection},null,8,["section"]),b(a,{class:"d-lg-none",section:r.sectionsWithStaticSection,"horizontal-scroll-mobile":!0},null,8,["section"])])}const dut=U(lut,[["render",cut]]),uut={components:{Pill:Ni},props:{preferences:Array}},hut={class:"mh-1dot9125rem"},fut=["href"];function mut(e,t,n,o,i,r){const s=y("Pill");return h(),g("div",hut,[(h(!0),g(pe,null,Me(n.preferences,(a,l)=>(h(),W(s,{key:+l,class:J(["bg-primary-10 text-gray-800 mt-2",l==n.preferences.length-1?"me-1":"me-2"])},{default:F(()=>[z(m(a.name),1)]),_:2},1032,["class"]))),128)),n.preferences.length?(h(),g("a",{key:0,href:e.ziggyRoute("user.dashboard.settings.profile"),class:"btn btn-sm btn-tertiary small"},m(e.$t("administration.edit")),9,fut)):D("",!0)])}const put=U(uut,[["render",mut]]),gut={components:{PreferencePillList:put},props:{section:{type:Object,default:null},loading:{type:Boolean,default:!1},meta:{type:Object,default:()=>({total:0})}},data(){return{subjectIdSelected:null}},computed:{sectionLink(){let e=new URL(this.section.link),t=new URLSearchParams(e.search);if(this.subjectIdSelected){let n=t.get("category")?t.get("category").replace(/[\[\]']+/g,"").split(","):[];n.includes(this.subjectIdSelected.toString())||n.push(this.subjectIdSelected),t.set("category","["+n.join(",")+"]")}return e.search=t.toString(),e.toString()}},methods:{homepageSectionClicked(e){ai.homepageSectionClicked(this.section,e)},selectSubject(e){this.subjectIdSelected===e?(window.eventBus.emit("section-subject-selected",{sectionId:this.section.id,subjectId:null}),this.subjectIdSelected=null):(window.eventBus.emit("section-subject-selected",{sectionId:this.section.id,subjectId:e}),this.subjectIdSelected=e)}}},vut={class:"d-flex justify-content-between align-items-end"},_ut=["href"],yut={key:0,class:"text-gray-700 fw-medium mb-0"},but={key:2,class:"d-flex flex-wrap gap-2 gap-md-3 gap-lg-4 mt-2"},kut=["onClick"],wut={key:0,class:"d-none d-lg-block flex-shrink-0"},$ut=["href"],Cut=["href"],Sut=["href"];function Tut(e,t,n,o,i,r){const s=y("PreferencePillList"),a=y("app-icon");return h(),g("div",vut,[c("div",null,[c("a",{href:n.section.link,class:"h4 link-dark fw-bold text-decoration-underline-hover",onClick:t[0]||(t[0]=l=>r.homepageSectionClicked("title"))},m(n.section.title),9,_ut),n.section.description?(h(),g("p",yut,m(n.section.description),1)):D("",!0),n.section.type==="preference"?(h(),W(s,{key:1,preferences:n.section.preferences},null,8,["preferences"])):D("",!0),n.section.type==="class_subject"?(h(),g("div",but,[(h(!0),g(pe,null,Me(n.section.subjects,(l,d)=>(h(),g("div",{key:d,class:J(["text-gray-700 fw-medium cursor-pointer",{"text-primary":l.id==i.subjectIdSelected}]),onClick:u=>r.selectSubject(l.id)},m(l.name),11,kut))),128))])):D("",!0)]),!n.loading&&!(n.section.type=="category"&&n.section.categories.length>1)?(h(),g("div",wut,[n.section.type==="latest"?(h(),g("a",{key:0,href:n.section.link,class:"btn btn-primary btn-center btn-sm fw-medium",onClick:t[1]||(t[1]=l=>{e.$emit("analytics-cta"),r.homepageSectionClicked("button")})},[z(m(e.$t("product.all_materials",{count:n.meta.total.toLocaleString()}))+" ",1),b(a,{icon:"materials",class:"ms-icon"})],8,$ut)):n.section.type=="organization"?(h(),g("a",{key:1,href:e.ziggyRoute("author.organization"),class:"btn btn-secondary btn-center btn-sm fw-medium",onClick:t[2]||(t[2]=l=>{e.$emit("analytics-cta"),r.homepageSectionClicked("button")})},[z(m(e.$t("author.organization.next"))+" ",1),b(a,{icon:"arrow-right",class:"ms-icon"})],8,Cut)):(h(),g("a",{key:2,href:r.sectionLink,class:"btn btn-secondary btn-center btn-sm fw-medium",onClick:t[3]||(t[3]=l=>{e.$emit("analytics-cta"),r.homepageSectionClicked("button")})},[z(m(e.$t("section.show_more_without_count"))+" ",1),b(a,{icon:"arrow-right",class:"ms-icon"})],8,Sut))])):D("",!0)])}const Eut=U(gut,[["render",Tut]]);var Iut=Error,Put=EvalError,Aut=RangeError,Dut=ReferenceError,lse=SyntaxError,Y3=TypeError,xut=URIError,Out=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var r=Object.getOwnPropertySymbols(t);if(r.length!==1||r[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0},IV=typeof Symbol<"u"&&Symbol,Lut=Out,Mut=function(){return typeof IV!="function"||typeof Symbol!="function"||typeof IV("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Lut()},nT={__proto__:null,foo:{}},Nut=Object,Rut=function(){return{__proto__:nT}.foo===nT.foo&&!(nT instanceof Nut)},jut="Function.prototype.bind called on incompatible ",Fut=Object.prototype.toString,zut=Math.max,Uut="[object Function]",PV=function(t,n){for(var o=[],i=0;i<t.length;i+=1)o[i]=t[i];for(var r=0;r<n.length;r+=1)o[r+t.length]=n[r];return o},But=function(t,n){for(var o=[],i=n||0,r=0;i<t.length;i+=1,r+=1)o[r]=t[i];return o},Hut=function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n},Vut=function(t){var n=this;if(typeof n!="function"||Fut.apply(n)!==Uut)throw new TypeError(jut+n);for(var o=But(arguments,1),i,r=function(){if(this instanceof i){var u=n.apply(this,PV(o,arguments));return Object(u)===u?u:this}return n.apply(t,PV(o,arguments))},s=zut(0,n.length-o.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+Hut(a,",")+"){ return binder.apply(this,arguments); }")(r),n.prototype){var d=function(){};d.prototype=n.prototype,i.prototype=new d,d.prototype=null}return i},qut=Vut,uL=Function.prototype.bind||qut,Yut=Function.prototype.call,Wut=Object.prototype.hasOwnProperty,Gut=uL,Zut=Gut.call(Yut,Wut),Go,Kut=Iut,Jut=Put,Xut=Aut,Qut=Dut,ty=lse,w_=Y3,eht=xut,cse=Function,oT=function(e){try{return cse('"use strict"; return ('+e+").constructor;")()}catch{}},P1=Object.getOwnPropertyDescriptor;if(P1)try{P1({},"")}catch{P1=null}var iT=function(){throw new w_},tht=P1?function(){try{return arguments.callee,iT}catch{try{return P1(arguments,"callee").get}catch{return iT}}}():iT,yv=Mut(),nht=Rut(),Ls=Object.getPrototypeOf||(nht?function(e){return e.__proto__}:null),zv={},oht=typeof Uint8Array>"u"||!Ls?Go:Ls(Uint8Array),A1={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Go:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Go:ArrayBuffer,"%ArrayIteratorPrototype%":yv&&Ls?Ls([][Symbol.iterator]()):Go,"%AsyncFromSyncIteratorPrototype%":Go,"%AsyncFunction%":zv,"%AsyncGenerator%":zv,"%AsyncGeneratorFunction%":zv,"%AsyncIteratorPrototype%":zv,"%Atomics%":typeof Atomics>"u"?Go:Atomics,"%BigInt%":typeof BigInt>"u"?Go:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Go:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Go:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Go:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Kut,"%eval%":eval,"%EvalError%":Jut,"%Float32Array%":typeof Float32Array>"u"?Go:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Go:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Go:FinalizationRegistry,"%Function%":cse,"%GeneratorFunction%":zv,"%Int8Array%":typeof Int8Array>"u"?Go:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Go:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Go:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":yv&&Ls?Ls(Ls([][Symbol.iterator]())):Go,"%JSON%":typeof JSON=="object"?JSON:Go,"%Map%":typeof Map>"u"?Go:Map,"%MapIteratorPrototype%":typeof Map>"u"||!yv||!Ls?Go:Ls(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Go:Promise,"%Proxy%":typeof Proxy>"u"?Go:Proxy,"%RangeError%":Xut,"%ReferenceError%":Qut,"%Reflect%":typeof Reflect>"u"?Go:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Go:Set,"%SetIteratorPrototype%":typeof Set>"u"||!yv||!Ls?Go:Ls(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Go:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":yv&&Ls?Ls(""[Symbol.iterator]()):Go,"%Symbol%":yv?Symbol:Go,"%SyntaxError%":ty,"%ThrowTypeError%":tht,"%TypedArray%":oht,"%TypeError%":w_,"%Uint8Array%":typeof Uint8Array>"u"?Go:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Go:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Go:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Go:Uint32Array,"%URIError%":eht,"%WeakMap%":typeof WeakMap>"u"?Go:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Go:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Go:WeakSet};if(Ls)try{null.error}catch(e){var iht=Ls(Ls(e));A1["%Error.prototype%"]=iht}var rht=function e(t){var n;if(t==="%AsyncFunction%")n=oT("async function () {}");else if(t==="%GeneratorFunction%")n=oT("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=oT("async function* () {}");else if(t==="%AsyncGenerator%"){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ls&&(n=Ls(i.prototype))}return A1[t]=n,n},AV={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},W3=uL,G5=Zut,sht=W3.call(Function.call,Array.prototype.concat),aht=W3.call(Function.apply,Array.prototype.splice),DV=W3.call(Function.call,String.prototype.replace),Z5=W3.call(Function.call,String.prototype.slice),lht=W3.call(Function.call,RegExp.prototype.exec),cht=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,dht=/\\(\\)?/g,uht=function(t){var n=Z5(t,0,1),o=Z5(t,-1);if(n==="%"&&o!=="%")throw new ty("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&n!=="%")throw new ty("invalid intrinsic syntax, expected opening `%`");var i=[];return DV(t,cht,function(r,s,a,l){i[i.length]=a?DV(l,dht,"$1"):s||r}),i},hht=function(t,n){var o=t,i;if(G5(AV,o)&&(i=AV[o],o="%"+i[0]+"%"),G5(A1,o)){var r=A1[o];if(r===zv&&(r=rht(o)),typeof r>"u"&&!n)throw new w_("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:o,value:r}}throw new ty("intrinsic "+t+" does not exist!")},Zy=function(t,n){if(typeof t!="string"||t.length===0)throw new w_("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new w_('"allowMissing" argument must be a boolean');if(lht(/^%?[^%]*%?$/,t)===null)throw new ty("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=uht(t),i=o.length>0?o[0]:"",r=hht("%"+i+"%",n),s=r.name,a=r.value,l=!1,d=r.alias;d&&(i=d[0],aht(o,sht([0,1],d)));for(var u=1,f=!0;u<o.length;u+=1){var p=o[u],v=Z5(p,0,1),_=Z5(p,-1);if((v==='"'||v==="'"||v==="`"||_==='"'||_==="'"||_==="`")&&v!==_)throw new ty("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(l=!0),i+="."+p,s="%"+i+"%",G5(A1,s))a=A1[s];else if(a!=null){if(!(p in a)){if(!n)throw new w_("base intrinsic for "+t+" exists, but the property is not available.");return}if(P1&&u+1>=o.length){var k=P1(a,p);f=!!k,f&&"get"in k&&!("originalValue"in k.get)?a=k.get:a=a[p]}else f=G5(a,p),a=a[p];f&&!l&&(A1[s]=a)}}return a},dse={exports:{}},rT,xV;function hL(){if(xV)return rT;xV=1;var e=Zy,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return rT=t,rT}var fht=Zy,f4=fht("%Object.getOwnPropertyDescriptor%",!0);if(f4)try{f4([],"length")}catch{f4=null}var use=f4,OV=hL(),mht=lse,bv=Y3,LV=use,pht=function(t,n,o){if(!t||typeof t!="object"&&typeof t!="function")throw new bv("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new bv("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new bv("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new bv("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new bv("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new bv("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,r=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!LV&&LV(t,n);if(OV)OV(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:o,writable:r===null&&l?l.writable:!r});else if(a||!i&&!r&&!s)t[n]=o;else throw new mht("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},CP=hL(),hse=function(){return!!CP};hse.hasArrayLengthDefineBug=function(){if(!CP)return null;try{return CP([],"length",{value:1}).length!==1}catch{return!0}};var ght=hse,vht=Zy,MV=pht,_ht=ght(),NV=use,RV=Y3,yht=vht("%Math.floor%"),bht=function(t,n){if(typeof t!="function")throw new RV("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||yht(n)!==n)throw new RV("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],i=!0,r=!0;if("length"in t&&NV){var s=NV(t,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(r=!1)}return(i||r||!o)&&(_ht?MV(t,"length",n,!0,!0):MV(t,"length",n)),t};(function(e){var t=uL,n=Zy,o=bht,i=Y3,r=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,r),l=hL(),d=n("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new i("a function is required");var v=a(t,s,arguments);return o(v,1+d(0,p.length-(arguments.length-1)),!0)};var u=function(){return a(t,r,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u})(dse);var kht=dse.exports,fse=Zy,mse=kht,wht=mse(fse("String.prototype.indexOf")),$ht=function(t,n){var o=fse(t,!!n);return typeof o=="function"&&wht(t,".prototype.")>-1?mse(o):o};const Cht={},Sht=Object.freeze(Object.defineProperty({__proto__:null,default:Cht},Symbol.toStringTag,{value:"Module"})),Tht=u$(Sht);var fL=typeof Map=="function"&&Map.prototype,sT=Object.getOwnPropertyDescriptor&&fL?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,K5=fL&&sT&&typeof sT.get=="function"?sT.get:null,jV=fL&&Map.prototype.forEach,mL=typeof Set=="function"&&Set.prototype,aT=Object.getOwnPropertyDescriptor&&mL?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,J5=mL&&aT&&typeof aT.get=="function"?aT.get:null,FV=mL&&Set.prototype.forEach,Eht=typeof WeakMap=="function"&&WeakMap.prototype,V0=Eht?WeakMap.prototype.has:null,Iht=typeof WeakSet=="function"&&WeakSet.prototype,q0=Iht?WeakSet.prototype.has:null,Pht=typeof WeakRef=="function"&&WeakRef.prototype,zV=Pht?WeakRef.prototype.deref:null,Aht=Boolean.prototype.valueOf,Dht=Object.prototype.toString,xht=Function.prototype.toString,Oht=String.prototype.match,pL=String.prototype.slice,Lm=String.prototype.replace,Lht=String.prototype.toUpperCase,UV=String.prototype.toLowerCase,pse=RegExp.prototype.test,BV=Array.prototype.concat,Mu=Array.prototype.join,Mht=Array.prototype.slice,HV=Math.floor,SP=typeof BigInt=="function"?BigInt.prototype.valueOf:null,lT=Object.getOwnPropertySymbols,TP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ny=typeof Symbol=="function"&&typeof Symbol.iterator=="object",_a=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ny||"symbol")?Symbol.toStringTag:null,gse=Object.prototype.propertyIsEnumerable,VV=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function qV(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||pse.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var o=e<0?-HV(-e):HV(e);if(o!==e){var i=String(o),r=pL.call(t,i.length+1);return Lm.call(i,n,"$&_")+"."+Lm.call(Lm.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Lm.call(t,n,"$&_")}var EP=Tht,YV=EP.custom,WV=_se(YV)?YV:null,Nht=function e(t,n,o,i){var r=n||{};if(Cm(r,"quoteStyle")&&r.quoteStyle!=="single"&&r.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Cm(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Cm(r,"customInspect")?r.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Cm(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Cm(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=r.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return bse(t,r);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?qV(t,l):l}if(typeof t=="bigint"){var d=String(t)+"n";return a?qV(t,d):d}var u=typeof r.depth>"u"?5:r.depth;if(typeof o>"u"&&(o=0),o>=u&&u>0&&typeof t=="object")return IP(t)?"[Array]":"[Object]";var f=eft(r,o);if(typeof i>"u")i=[];else if(yse(i,t)>=0)return"[Circular]";function p(G,Q,X){if(Q&&(i=Mht.call(i),i.push(Q)),X){var Y={depth:r.depth};return Cm(r,"quoteStyle")&&(Y.quoteStyle=r.quoteStyle),e(G,Y,o+1,i)}return e(G,r,o+1,i)}if(typeof t=="function"&&!GV(t)){var v=qht(t),_=Xw(t,p);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(_.length>0?" { "+Mu.call(_,", ")+" }":"")}if(_se(t)){var k=ny?Lm.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):TP.call(t);return typeof t=="object"&&!ny?Vb(k):k}if(Jht(t)){for(var C="<"+UV.call(String(t.nodeName)),$=t.attributes||[],E=0;E<$.length;E++)C+=" "+$[E].name+"="+vse(Rht($[E].value),"double",r);return C+=">",t.childNodes&&t.childNodes.length&&(C+="..."),C+="</"+UV.call(String(t.nodeName))+">",C}if(IP(t)){if(t.length===0)return"[]";var P=Xw(t,p);return f&&!Qht(P)?"["+PP(P,f)+"]":"[ "+Mu.call(P,", ")+" ]"}if(Fht(t)){var I=Xw(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!gse.call(t,"cause")?"{ ["+String(t)+"] "+Mu.call(BV.call("[cause]: "+p(t.cause),I),", ")+" }":I.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Mu.call(I,", ")+" }"}if(typeof t=="object"&&s){if(WV&&typeof t[WV]=="function"&&EP)return EP(t,{depth:u-o});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Yht(t)){var O=[];return jV&&jV.call(t,function(G,Q){O.push(p(Q,t,!0)+" => "+p(G,t))}),ZV("Map",K5.call(t),O,f)}if(Zht(t)){var L=[];return FV&&FV.call(t,function(G){L.push(p(G,t))}),ZV("Set",J5.call(t),L,f)}if(Wht(t))return cT("WeakMap");if(Kht(t))return cT("WeakSet");if(Ght(t))return cT("WeakRef");if(Uht(t))return Vb(p(Number(t)));if(Hht(t))return Vb(p(SP.call(t)));if(Bht(t))return Vb(Aht.call(t));if(zht(t))return Vb(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof bo<"u"&&t===bo)return"{ [object globalThis] }";if(!jht(t)&&!GV(t)){var S=Xw(t,p),j=VV?VV(t)===Object.prototype:t instanceof Object||t.constructor===Object,M=t instanceof Object?"":"null prototype",q=!j&&_a&&Object(t)===t&&_a in t?pL.call(_p(t),8,-1):M?"Object":"",B=j||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",V=B+(q||M?"["+Mu.call(BV.call([],q||[],M||[]),": ")+"] ":"");return S.length===0?V+"{}":f?V+"{"+PP(S,f)+"}":V+"{ "+Mu.call(S,", ")+" }"}return String(t)};function vse(e,t,n){var o=(n.quoteStyle||t)==="double"?'"':"'";return o+e+o}function Rht(e){return Lm.call(String(e),/"/g,""")}function IP(e){return _p(e)==="[object Array]"&&(!_a||!(typeof e=="object"&&_a in e))}function jht(e){return _p(e)==="[object Date]"&&(!_a||!(typeof e=="object"&&_a in e))}function GV(e){return _p(e)==="[object RegExp]"&&(!_a||!(typeof e=="object"&&_a in e))}function Fht(e){return _p(e)==="[object Error]"&&(!_a||!(typeof e=="object"&&_a in e))}function zht(e){return _p(e)==="[object String]"&&(!_a||!(typeof e=="object"&&_a in e))}function Uht(e){return _p(e)==="[object Number]"&&(!_a||!(typeof e=="object"&&_a in e))}function Bht(e){return _p(e)==="[object Boolean]"&&(!_a||!(typeof e=="object"&&_a in e))}function _se(e){if(ny)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!TP)return!1;try{return TP.call(e),!0}catch{}return!1}function Hht(e){if(!e||typeof e!="object"||!SP)return!1;try{return SP.call(e),!0}catch{}return!1}var Vht=Object.prototype.hasOwnProperty||function(e){return e in this};function Cm(e,t){return Vht.call(e,t)}function _p(e){return Dht.call(e)}function qht(e){if(e.name)return e.name;var t=Oht.call(xht.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function yse(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function Yht(e){if(!K5||!e||typeof e!="object")return!1;try{K5.call(e);try{J5.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Wht(e){if(!V0||!e||typeof e!="object")return!1;try{V0.call(e,V0);try{q0.call(e,q0)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Ght(e){if(!zV||!e||typeof e!="object")return!1;try{return zV.call(e),!0}catch{}return!1}function Zht(e){if(!J5||!e||typeof e!="object")return!1;try{J5.call(e);try{K5.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Kht(e){if(!q0||!e||typeof e!="object")return!1;try{q0.call(e,q0);try{V0.call(e,V0)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Jht(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function bse(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return bse(pL.call(e,0,t.maxStringLength),t)+o}var i=Lm.call(Lm.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Xht);return vse(i,"single",t)}function Xht(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Lht.call(t.toString(16))}function Vb(e){return"Object("+e+")"}function cT(e){return e+" { ? }"}function ZV(e,t,n,o){var i=o?PP(n,o):Mu.call(n,", ");return e+" ("+t+") {"+i+"}"}function Qht(e){for(var t=0;t<e.length;t++)if(yse(e[t],` `)>=0)return!1;return!0}function eft(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Mu.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Mu.call(Array(t+1),n)}}function PP(e,t){if(e.length===0)return"";var n=` `+t.prev+t.base;return n+Mu.call(e,","+n)+` `+t.prev}function Xw(e,t){var n=IP(e),o=[];if(n){o.length=e.length;for(var i=0;i<e.length;i++)o[i]=Cm(e,i)?t(e[i],e):""}var r=typeof lT=="function"?lT(e):[],s;if(ny){s={};for(var a=0;a<r.length;a++)s["$"+r[a]]=r[a]}for(var l in e)Cm(e,l)&&(n&&String(Number(l))===l&&l<e.length||ny&&s["$"+l]instanceof Symbol||(pse.call(/[^\w$]/,l)?o.push(t(l,e)+": "+t(e[l],e)):o.push(l+": "+t(e[l],e))));if(typeof lT=="function")for(var d=0;d<r.length;d++)gse.call(e,r[d])&&o.push("["+t(r[d])+"]: "+t(e[r[d]],e));return o}var kse=Zy,Ky=$ht,tft=Nht,nft=Y3,Qw=kse("%WeakMap%",!0),e8=kse("%Map%",!0),oft=Ky("WeakMap.prototype.get",!0),ift=Ky("WeakMap.prototype.set",!0),rft=Ky("WeakMap.prototype.has",!0),sft=Ky("Map.prototype.get",!0),aft=Ky("Map.prototype.set",!0),lft=Ky("Map.prototype.has",!0),gL=function(e,t){for(var n=e,o;(o=n.next)!==null;n=o)if(o.key===t)return n.next=o.next,o.next=e.next,e.next=o,o},cft=function(e,t){var n=gL(e,t);return n&&n.value},dft=function(e,t,n){var o=gL(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}},uft=function(e,t){return!!gL(e,t)},hft=function(){var t,n,o,i={assert:function(r){if(!i.has(r))throw new nft("Side channel does not contain "+tft(r))},get:function(r){if(Qw&&r&&(typeof r=="object"||typeof r=="function")){if(t)return oft(t,r)}else if(e8){if(n)return sft(n,r)}else if(o)return cft(o,r)},has:function(r){if(Qw&&r&&(typeof r=="object"||typeof r=="function")){if(t)return rft(t,r)}else if(e8){if(n)return lft(n,r)}else if(o)return uft(o,r);return!1},set:function(r,s){Qw&&r&&(typeof r=="object"||typeof r=="function")?(t||(t=new Qw),ift(t,r,s)):e8?(n||(n=new e8),aft(n,r,s)):(o||(o={key:{},next:null}),dft(o,r,s))}};return i},fft=String.prototype.replace,mft=/%20/g,dT={RFC1738:"RFC1738",RFC3986:"RFC3986"},vL={default:dT.RFC3986,formatters:{RFC1738:function(e){return fft.call(e,mft,"+")},RFC3986:function(e){return String(e)}},RFC1738:dT.RFC1738,RFC3986:dT.RFC3986},pft=vL,uT=Object.prototype.hasOwnProperty,r1=Array.isArray,Eu=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),gft=function(t){for(;t.length>1;){var n=t.pop(),o=n.obj[n.prop];if(r1(o)){for(var i=[],r=0;r<o.length;++r)typeof o[r]<"u"&&i.push(o[r]);n.obj[n.prop]=i}}},wse=function(t,n){for(var o=n&&n.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(o[i]=t[i]);return o},vft=function e(t,n,o){if(!n)return t;if(typeof n!="object"){if(r1(t))t.push(n);else if(t&&typeof t=="object")(o&&(o.plainObjects||o.allowPrototypes)||!uT.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return r1(t)&&!r1(n)&&(i=wse(t,o)),r1(t)&&r1(n)?(n.forEach(function(r,s){if(uT.call(t,s)){var a=t[s];a&&typeof a=="object"&&r&&typeof r=="object"?t[s]=e(a,r,o):t.push(r)}else t[s]=r}),t):Object.keys(n).reduce(function(r,s){var a=n[s];return uT.call(r,s)?r[s]=e(r[s],a,o):r[s]=a,r},i)},_ft=function(t,n){return Object.keys(n).reduce(function(o,i){return o[i]=n[i],o},t)},yft=function(e,t,n){var o=e.replace(/\+/g," ");if(n==="iso-8859-1")return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch{return o}},hT=1024,bft=function(t,n,o,i,r){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),o==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;l+=hT){for(var d=s.length>=hT?s.slice(l,l+hT):s,u=[],f=0;f<d.length;++f){var p=d.charCodeAt(f);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||r===pft.RFC1738&&(p===40||p===41)){u[u.length]=d.charAt(f);continue}if(p<128){u[u.length]=Eu[p];continue}if(p<2048){u[u.length]=Eu[192|p>>6]+Eu[128|p&63];continue}if(p<55296||p>=57344){u[u.length]=Eu[224|p>>12]+Eu[128|p>>6&63]+Eu[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|d.charCodeAt(f)&1023),u[u.length]=Eu[240|p>>18]+Eu[128|p>>12&63]+Eu[128|p>>6&63]+Eu[128|p&63]}a+=u.join("")}return a},kft=function(t){for(var n=[{obj:{o:t},prop:"o"}],o=[],i=0;i<n.length;++i)for(var r=n[i],s=r.obj[r.prop],a=Object.keys(s),l=0;l<a.length;++l){var d=a[l],u=s[d];typeof u=="object"&&u!==null&&o.indexOf(u)===-1&&(n.push({obj:s,prop:d}),o.push(u))}return gft(n),t},wft=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},$ft=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Cft=function(t,n){return[].concat(t,n)},Sft=function(t,n){if(r1(t)){for(var o=[],i=0;i<t.length;i+=1)o.push(n(t[i]));return o}return n(t)},$se={arrayToObject:wse,assign:_ft,combine:Cft,compact:kft,decode:yft,encode:bft,isBuffer:$ft,isRegExp:wft,maybeMap:Sft,merge:vft},Cse=hft,m4=$se,Y0=vL,Tft=Object.prototype.hasOwnProperty,Sse={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},xu=Array.isArray,Eft=Array.prototype.push,Tse=function(e,t){Eft.apply(e,xu(t)?t:[t])},Ift=Date.prototype.toISOString,KV=Y0.default,us={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:m4.encode,encodeValuesOnly:!1,format:KV,formatter:Y0.formatters[KV],indices:!1,serializeDate:function(t){return Ift.call(t)},skipNulls:!1,strictNullHandling:!1},Pft=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},fT={},Aft=function e(t,n,o,i,r,s,a,l,d,u,f,p,v,_,k,C,$,E){for(var P=t,I=E,O=0,L=!1;(I=I.get(fT))!==void 0&&!L;){var S=I.get(t);if(O+=1,typeof S<"u"){if(S===O)throw new RangeError("Cyclic object value");L=!0}typeof I.get(fT)>"u"&&(O=0)}if(typeof u=="function"?P=u(n,P):P instanceof Date?P=v(P):o==="comma"&&xu(P)&&(P=m4.maybeMap(P,function(te){return te instanceof Date?v(te):te})),P===null){if(s)return d&&!C?d(n,us.encoder,$,"key",_):n;P=""}if(Pft(P)||m4.isBuffer(P)){if(d){var j=C?n:d(n,us.encoder,$,"key",_);return[k(j)+"="+k(d(P,us.encoder,$,"value",_))]}return[k(n)+"="+k(String(P))]}var M=[];if(typeof P>"u")return M;var q;if(o==="comma"&&xu(P))C&&d&&(P=m4.maybeMap(P,d)),q=[{value:P.length>0?P.join(",")||null:void 0}];else if(xu(u))q=u;else{var B=Object.keys(P);q=f?B.sort(f):B}var V=l?n.replace(/\./g,"%2E"):n,G=i&&xu(P)&&P.length===1?V+"[]":V;if(r&&xu(P)&&P.length===0)return G+"[]";for(var Q=0;Q<q.length;++Q){var X=q[Q],Y=typeof X=="object"&&typeof X.value<"u"?X.value:P[X];if(!(a&&Y===null)){var Z=p&&l?X.replace(/\./g,"%2E"):X,se=xu(P)?typeof o=="function"?o(G,Z):G:G+(p?"."+Z:"["+Z+"]");E.set(t,O);var ce=Cse();ce.set(fT,E),Tse(M,e(Y,se,o,i,r,s,a,l,o==="comma"&&C&&xu(P)?null:d,u,f,p,v,_,k,C,$,ce))}}return M},Dft=function(t){if(!t)return us;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||us.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=Y0.default;if(typeof t.format<"u"){if(!Tft.call(Y0.formatters,t.format))throw new TypeError("Unknown format option provided.");o=t.format}var i=Y0.formatters[o],r=us.filter;(typeof t.filter=="function"||xu(t.filter))&&(r=t.filter);var s;if(t.arrayFormat in Sse?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=us.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:us.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:us.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:us.allowEmptyArrays,arrayFormat:s,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:us.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?us.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:us.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:us.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:us.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:us.encodeValuesOnly,filter:r,format:o,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:us.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:us.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:us.strictNullHandling}},xft=function(e,t){var n=e,o=Dft(t),i,r;typeof o.filter=="function"?(r=o.filter,n=r("",n)):xu(o.filter)&&(r=o.filter,i=r);var s=[];if(typeof n!="object"||n===null)return"";var a=Sse[o.arrayFormat],l=a==="comma"&&o.commaRoundTrip;i||(i=Object.keys(n)),o.sort&&i.sort(o.sort);for(var d=Cse(),u=0;u<i.length;++u){var f=i[u];o.skipNulls&&n[f]===null||Tse(s,Aft(n[f],f,a,l,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,d))}var p=s.join(o.delimiter),v=o.addQueryPrefix===!0?"?":"";return o.charsetSentinel&&(o.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),p.length>0?v+p:""},oy=$se,AP=Object.prototype.hasOwnProperty,Oft=Array.isArray,$r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:oy.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},Lft=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Ese=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Mft="utf8=%26%2310003%3B",Nft="utf8=%E2%9C%93",Rft=function(t,n){var o={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,r),a=-1,l,d=n.charset;if(n.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===Nft?d="utf-8":s[l]===Mft&&(d="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var u=s[l],f=u.indexOf("]="),p=f===-1?u.indexOf("="):f+1,v,_;p===-1?(v=n.decoder(u,$r.decoder,d,"key"),_=n.strictNullHandling?null:""):(v=n.decoder(u.slice(0,p),$r.decoder,d,"key"),_=oy.maybeMap(Ese(u.slice(p+1),n),function(C){return n.decoder(C,$r.decoder,d,"value")})),_&&n.interpretNumericEntities&&d==="iso-8859-1"&&(_=Lft(_)),u.indexOf("[]=")>-1&&(_=Oft(_)?[_]:_);var k=AP.call(o,v);k&&n.duplicates==="combine"?o[v]=oy.combine(o[v],_):(!k||n.duplicates==="last")&&(o[v]=_)}return o},jft=function(e,t,n,o){for(var i=o?t:Ese(t,n),r=e.length-1;r>=0;--r){var s,a=e[r];if(a==="[]"&&n.parseArrays)s=n.allowEmptyArrays&&(i===""||n.strictNullHandling&&i===null)?[]:[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,d=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,u=parseInt(d,10);!n.parseArrays&&d===""?s={0:i}:!isNaN(u)&&a!==d&&String(u)===d&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(s=[],s[u]=i):d!=="__proto__"&&(s[d]=i)}i=s}return i},Fft=function(t,n,o,i){if(t){var r=o.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=o.depth>0&&s.exec(r),d=l?r.slice(0,l.index):r,u=[];if(d){if(!o.plainObjects&&AP.call(Object.prototype,d)&&!o.allowPrototypes)return;u.push(d)}for(var f=0;o.depth>0&&(l=a.exec(r))!==null&&f<o.depth;){if(f+=1,!o.plainObjects&&AP.call(Object.prototype,l[1].slice(1,-1))&&!o.allowPrototypes)return;u.push(l[1])}if(l){if(o.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+o.depth+" and strictDepth is true");u.push("["+r.slice(l.index)+"]")}return jft(u,n,o,i)}},zft=function(t){if(!t)return $r;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?$r.charset:t.charset,o=typeof t.duplicates>"u"?$r.duplicates:t.duplicates;if(o!=="combine"&&o!=="first"&&o!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:$r.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:$r.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:$r.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:$r.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:$r.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:$r.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:$r.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:$r.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:$r.decoder,delimiter:typeof t.delimiter=="string"||oy.isRegExp(t.delimiter)?t.delimiter:$r.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:$r.depth,duplicates:o,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:$r.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:$r.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:$r.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:$r.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:$r.strictNullHandling}},Uft=function(e,t){var n=zft(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var o=typeof e=="string"?Rft(e,n):e,i=n.plainObjects?Object.create(null):{},r=Object.keys(o),s=0;s<r.length;++s){var a=r[s],l=Fft(a,o[a],n,typeof e=="string");i=oy.merge(i,l,n)}return n.allowSparse===!0?i:oy.compact(i)},Bft=xft,Hft=Uft,Vft=vL,Ise={formats:Vft,parse:Hft,stringify:Bft};class mT{constructor(t,n,o){this.name=t,this.definition=n,this.bindings=n.bindings??{},this.wheres=n.wheres??{},this.config=o}get template(){const t=`${this.origin}/${this.definition.uri}`.replace(/\/+$/,"");return t===""?"/":t}get origin(){return this.config.absolute?this.definition.domain?`${this.config.url.match(/^\w+:\/\//)[0]}${this.definition.domain}${this.config.port?`:${this.config.port}`:""}`:this.config.url:""}get parameterSegments(){var t;return((t=this.template.match(/{[^}?]+\??}/g))==null?void 0:t.map(n=>({name:n.replace(/{|\??}/g,""),required:!/\?}$/.test(n)})))??[]}matchesUrl(t){if(!this.definition.methods.includes("GET"))return!1;const n=this.template.replace(/(\/?){([^}?]*)(\??)}/g,(s,a,l,d)=>{var f;const u=`(?<${l}>${((f=this.wheres[l])==null?void 0:f.replace(/(^\^)|(\$$)/g,""))||"[^/?]+"})`;return d?`(${a}${u})?`:`${a}${u}`}).replace(/^\w+:\/\//,""),[o,i]=t.replace(/^\w+:\/\//,"").split("?"),r=new RegExp(`^${n}/?$`).exec(decodeURI(o));if(r){for(const s in r.groups)r.groups[s]=typeof r.groups[s]=="string"?decodeURIComponent(r.groups[s]):r.groups[s];return{params:r.groups,query:Ise.parse(i)}}return!1}compile(t){return this.parameterSegments.length?this.template.replace(/{([^}?]+)(\??)}/g,(o,i,r)=>{if(!r&&[null,void 0].includes(t[i]))throw new Error(`Ziggy error: '${i}' parameter is required for route '${this.name}'.`);if(this.wheres[i]&&!new RegExp(`^${r?`(${this.wheres[i]})?`:this.wheres[i]}$`).test(t[i]??""))throw new Error(`Ziggy error: '${i}' parameter does not match required format '${this.wheres[i]}' for route '${this.name}'.`);return encodeURI(t[i]??"").replace(/%7C/g,"|").replace(/%25/g,"%").replace(/\$/g,"%24")}).replace(`${this.origin}//`,`${this.origin}/`).replace(/\/+$/,""):this.template}}class qft extends String{constructor(t,n,o=!0,i){if(super(),this._config=i??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),this._config={...this._config,absolute:o},t){if(!this._config.routes[t])throw new Error(`Ziggy error: route '${t}' is not in the route list.`);this._route=new mT(t,this._config.routes[t],this._config),this._params=this._parse(n)}}toString(){const t=Object.keys(this._params).filter(n=>!this._route.parameterSegments.some(({name:o})=>o===n)).filter(n=>n!=="_query").reduce((n,o)=>({...n,[o]:this._params[o]}),{});return this._route.compile(this._params)+Ise.stringify({...t,...this._params._query},{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:(n,o)=>typeof n=="boolean"?Number(n):o(n)})}_unresolve(t){t?this._config.absolute&&t.startsWith("/")&&(t=this._location().host+t):t=this._currentUrl();let n={};const[o,i]=Object.entries(this._config.routes).find(([r,s])=>n=new mT(r,s,this._config).matchesUrl(t))||[void 0,void 0];return{name:o,...n,route:i}}_currentUrl(){const{host:t,pathname:n,search:o}=this._location();return(this._config.absolute?t+n:n.replace(this._config.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+o}current(t,n){const{name:o,params:i,query:r,route:s}=this._unresolve();if(!t)return o;const a=new RegExp(`^${t.replace(/\./g,"\\.").replace(/\*/g,".*")}$`).test(o);if([null,void 0].includes(n)||!a)return a;const l=new mT(o,s,this._config);n=this._parse(n,l);const d={...i,...r};if(Object.values(n).every(f=>!f)&&!Object.values(d).some(f=>f!==void 0))return!0;const u=(f,p)=>Object.entries(f).every(([v,_])=>Array.isArray(_)&&Array.isArray(p[v])?_.every(k=>p[v].includes(k)):typeof _=="object"&&typeof p[v]=="object"&&_!==null&&p[v]!==null?u(_,p[v]):p[v]==_);return u(n,d)}_location(){var i,r,s;const{host:t="",pathname:n="",search:o=""}=typeof window<"u"?window.location:{};return{host:((i=this._config.location)==null?void 0:i.host)??t,pathname:((r=this._config.location)==null?void 0:r.pathname)??n,search:((s=this._config.location)==null?void 0:s.search)??o}}get params(){const{params:t,query:n}=this._unresolve();return{...t,...n}}has(t){return Object.keys(this._config.routes).includes(t)}_parse(t={},n=this._route){t??(t={}),t=["string","number"].includes(typeof t)?[t]:t;const o=n.parameterSegments.filter(({name:i})=>!this._config.defaults[i]);return Array.isArray(t)?t=t.reduce((i,r,s)=>o[s]?{...i,[o[s].name]:r}:typeof r=="object"?{...i,...r}:{...i,[r]:""},{}):o.length===1&&!t[o[0].name]&&(t.hasOwnProperty(Object.values(n.bindings)[0])||t.hasOwnProperty("id"))&&(t={[o[0].name]:t}),{...this._defaults(n),...this._substituteBindings(t,n)}}_defaults(t){return t.parameterSegments.filter(({name:n})=>this._config.defaults[n]).reduce((n,{name:o},i)=>({...n,[o]:this._config.defaults[o]}),{})}_substituteBindings(t,{bindings:n,parameterSegments:o}){return Object.entries(t).reduce((i,[r,s])=>{if(!s||typeof s!="object"||Array.isArray(s)||!o.some(({name:a})=>a===r))return{...i,[r]:s};if(!s.hasOwnProperty(n[r]))if(s.hasOwnProperty("id"))n[r]="id";else throw new Error(`Ziggy error: object passed as '${r}' parameter is missing route model binding key '${n[r]}'.`);return{...i,[r]:s[n[r]]}},{})}valueOf(){return this.toString()}check(t){return this.has(t)}}function Pse(e,t,n,o){const i=new qft(e,t,n,o);return e?i.toString():i}const _L={url:"https://www.ucitelnice.cz",port:null,defaults:{},routes:{"debugbar.openhandler":{uri:"_debugbar/open",methods:["GET","HEAD"]},"debugbar.clockwork":{uri:"_debugbar/clockwork/{id}",methods:["GET","HEAD"],parameters:["id"]},"debugbar.assets.css":{uri:"_debugbar/assets/stylesheets",methods:["GET","HEAD"]},"debugbar.assets.js":{uri:"_debugbar/assets/javascript",methods:["GET","HEAD"]},"debugbar.cache.delete":{uri:"_debugbar/cache/{key}/{tags?}",methods:["DELETE"],parameters:["key","tags"]},"debugbar.queries.explain":{uri:"_debugbar/queries/explain",methods:["POST"]},imagecache:{uri:"img/cache/{template}/{filename}",methods:["GET","HEAD"],wheres:{filename:"[ \\w\\.\\/\\-\\@\\(\\)\\=]+"},parameters:["template","filename"]},"ignition.healthCheck":{uri:"_ignition/health-check",methods:["GET","HEAD"]},"ignition.executeSolution":{uri:"_ignition/execute-solution",methods:["POST"]},"ignition.updateConfig":{uri:"_ignition/update-config",methods:["POST"]},"service-access.upload-plausible":{uri:"api/sa/upload-plausible",methods:["POST"]},"service-access.blog.generate-preview-url":{uri:"api/sa/blog/generate-preview-url/{post}",methods:["GET","HEAD"],parameters:["post"],bindings:{post:"id"}},"service-access.cms.author-info":{uri:"api/sa/cms/author-info/{user}",methods:["GET","HEAD"],parameters:["user"]},"service-access.cms.author-search":{uri:"api/sa/cms/author-search",methods:["GET","HEAD"]},"service-access.cms.product-search":{uri:"api/sa/cms/product-search",methods:["GET","HEAD"]},"service-access.cms.products":{uri:"api/sa/cms/products",methods:["GET","HEAD"]},"upload.":{uri:"{wildcard}",methods:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"],wheres:{wildcard:".*"},domain:"upload.ucitelnice.cz",parameters:["wildcard"]},default:{uri:"/",methods:["GET","HEAD"]},materialy:{uri:"materialy",methods:["GET","HEAD"]},"settlement.show":{uri:"vyuctovani",methods:["GET","HEAD"]},"page.cooperation":{uri:"informace/spolupracujeme",methods:["GET","HEAD"]},"page.about":{uri:"informace/o-nas",methods:["GET","HEAD"]},"page.contact":{uri:"informace/kontakt",methods:["GET","HEAD"]},"page.vatLevel":{uri:"informace/sazba-dph",methods:["GET","HEAD"]},page:{uri:"informace/{slug}",methods:["GET","HEAD"],parameters:["slug"]},"faq.page":{uri:"caste-dotazy",methods:["GET","HEAD"]},faq:{uri:"caste-dotazy/obecne/{id?}",methods:["GET","HEAD"],parameters:["id"]},"faq.school":{uri:"caste-dotazy/skolni-ucty/{id?}",methods:["GET","HEAD"],parameters:["id"]},"blog.index":{uri:"blog",methods:["GET","HEAD"]},"blog.draft.show":{uri:"blog/preview/{post}",methods:["GET","HEAD"],parameters:["post"],bindings:{post:"id"}},"blog.show":{uri:"blog/{slug}",methods:["GET","HEAD"],parameters:["slug"]},"old-blog.index":{uri:"ob/index",methods:["GET","HEAD"]},"old-blog.show":{uri:"ob/{slug}",methods:["GET","HEAD"],parameters:["slug"]},"webinars.index":{uri:"webinare",methods:["GET","HEAD"]},"webinars.show":{uri:"webinar/{slug}",methods:["GET","HEAD"],parameters:["slug"]},"rating.invitation.index":{uri:"hodnoceni",methods:["GET","HEAD"]},"api.search":{uri:"api/search",methods:["GET","HEAD"]},"api.search.default":{uri:"api/search-default",methods:["GET","HEAD"]},"api.settlements2019":{uri:"api/monthly-invoices-2019/{user}",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"api.settlement_payment.store":{uri:"api/vyuctovani/vyplatit",methods:["POST"]},"api.admin.settlement_payment.index":{uri:"api/admin/settlement-payments",methods:["GET","HEAD"]},"api.admin.settlement_payment.sendAll":{uri:"api/admin/settlement-payments/sendAll",methods:["PATCH"]},"api.category.index":{uri:"api/category",methods:["GET","HEAD"]},"api.category.index.for_products":{uri:"api/category/for-products/{products_type}",methods:["GET","HEAD"],parameters:["products_type"]},"api.category.index.for_author":{uri:"api/category/for-author/{user}",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"api.category.index.flatTree":{uri:"api/categories",methods:["GET","HEAD"]},"api.category.class.subject.index":{uri:"api/categories-class-subject",methods:["GET","HEAD"]},"api.category.class.subject.flat.index":{uri:"api/categories-class-subject-flat",methods:["GET","HEAD"]},"api.wishlist.get":{uri:"api/wishlist/get",methods:["GET","HEAD"]},"api.wishlist.add":{uri:"api/wishlist/add/{product}",methods:["POST"],parameters:["product"],bindings:{product:"id"}},"api.wishlist.to_cart":{uri:"api/wishlist/vse-do-kosiku",methods:["GET","HEAD"]},"api.review.index":{uri:"api/reviews",methods:["GET","HEAD"]},"api.favourite.authors":{uri:"api/favourite-author/{user}",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"api.favourite.from.table":{uri:"api/favourite-author/{user}/{author}",methods:["POST"],parameters:["user","author"],bindings:{user:"id",author:"id"}},"api.invoices2019.index":{uri:"api/invoices2019",methods:["GET","HEAD"]},"api.invoices2019.download":{uri:"api/invoices2019/download",methods:["GET","HEAD"]},"api.credit.place":{uri:"api/dobiti-kreditu/objednat",methods:["POST"]},"api.section.index":{uri:"api/section",methods:["GET","HEAD"]},"api.infobox.list":{uri:"api/infobox/list",methods:["GET","HEAD"]},"api.newsletter.register":{uri:"api/newsletter",methods:["POST"]},"api.voucher.order.place":{uri:"api/voucher/order/place",methods:["POST"]},"api.voucher.check":{uri:"api/voucher/check/{code}",methods:["GET","HEAD"],parameters:["code"]},"api.code.check":{uri:"api/code/check/{code}",methods:["GET","HEAD"],parameters:["code"]},"api.invoice.index":{uri:"api/invoices",methods:["GET","HEAD"]},"api.complaint.store":{uri:"api/complaints",methods:["POST"]},"api.vop.accept":{uri:"api/vop",methods:["PATCH"]},"api.curriculum.show":{uri:"api/curriculum/show/{id}",methods:["GET","HEAD"],parameters:["id"]},"api.blog.index":{uri:"api/blogs",methods:["GET","HEAD"]},"api.blog.homepage.index":{uri:"api/blogs-homepage",methods:["GET","HEAD"]},"api.blog.mostRead":{uri:"api/blog/most-read",methods:["GET","HEAD"]},"api.blog.themes":{uri:"api/blog/themes",methods:["GET","HEAD"]},"api.webinar.index":{uri:"api/webinars",methods:["GET","HEAD"]},"api.webinar.detail":{uri:"api/webinar/{slug}",methods:["GET","HEAD"],parameters:["slug"]},"admin.pohoda.index":{uri:"admin/pohoda-export",methods:["GET","HEAD"]},"admin.pohoda.export":{uri:"admin/pohoda-export",methods:["POST"]},"administration.index":{uri:"administration",methods:["GET","HEAD"]},"administration.messages":{uri:"administration/message",methods:["GET","HEAD"]},"administration.product.detail":{uri:"administration/product/detail/{id}",methods:["GET","HEAD"],parameters:["id"]},"administration.product.complaint.detail":{uri:"administration/product/complaint/detail/{complaint}",methods:["GET","HEAD"],parameters:["complaint"]},"administration.user.detail":{uri:"administration/user/detail/{id}",methods:["GET","HEAD"],parameters:["id"]},"administration.product.all":{uri:"administration/product/list/all",methods:["GET","HEAD"]},"administration.administration":{uri:"administration/{any}",methods:["GET","HEAD"],wheres:{any:"^((?!api).)*?"},parameters:["any"]},"administration.api.dashboard.search":{uri:"administration/api/dashboard/search",methods:["GET","HEAD"]},"administration.api.product.list":{uri:"administration/api/product/list",methods:["GET","HEAD"]},"administration.api.product.open.count":{uri:"administration/api/product/open/count",methods:["GET","HEAD"]},"administration.api.product.detail":{uri:"administration/api/product/detail/{id}",methods:["GET","HEAD"],parameters:["id"]},"administration.api.product.detail.logs":{uri:"administration/api/product/detail/{id}/logs",methods:["POST"],parameters:["id"]},"administration.api.product.toggleHide":{uri:"administration/api/product/toggleHide/{product}",methods:["PATCH"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.update.admin":{uri:"administration/api/product/update/admin/{product}",methods:["PUT"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.update.admin_note":{uri:"administration/api/product/update/admin-note/{product}",methods:["PATCH"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.categories_vat_modifiable.toggle":{uri:"administration/api/product/categories-vat-modifiable/toggle/{product}",methods:["PATCH"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.recommend":{uri:"administration/api/product/recommend/{product}",methods:["PATCH"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.recommend.remove":{uri:"administration/api/product/recommend/remove/{product}",methods:["PATCH"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.show":{uri:"administration/api/product/show/{product}",methods:["GET","HEAD"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.save_draft":{uri:"administration/api/product/update/{product}",methods:["PUT"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.update.cover_image":{uri:"administration/api/product/update/cover-image/{product}",methods:["POST"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.update.status":{uri:"administration/api/product/update/status/{product?}",methods:["PATCH"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.update.status.email.preview":{uri:"administration/api/product/update/status/{product}/preview",methods:["GET","HEAD"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.publish":{uri:"administration/api/product/publish/{product}",methods:["PATCH"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.upload_image":{uri:"administration/api/product/upload/image/{product}",methods:["POST"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.toggle.worthy":{uri:"administration/api/product/set-worthy/{product}",methods:["PATCH"],parameters:["product"],bindings:{product:"id"}},"administration.api.product.complaint.list":{uri:"administration/api/product/complaint/list",methods:["GET","HEAD"]},"administration.api.product.complaint.open.count":{uri:"administration/api/product/complaint/open/count",methods:["GET","HEAD"]},"administration.api.product.complaint.detail":{uri:"administration/api/product/complaint/detail/{complaint}",methods:["GET","HEAD"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.addNote":{uri:"administration/api/product/complaint/{complaint}/addNote",methods:["POST"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.fix":{uri:"administration/api/product/complaint/{complaint}/fix",methods:["POST"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.fixWithRefund":{uri:"administration/api/product/complaint/{complaint}/fixWithRefund",methods:["POST"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.reject":{uri:"administration/api/product/complaint/{complaint}/reject",methods:["POST"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.close":{uri:"administration/api/product/complaint/{complaint}/close",methods:["POST"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.messageAuthor":{uri:"administration/api/product/complaint/{complaint}/messageAuthor",methods:["POST"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.messageCustomer":{uri:"administration/api/product/complaint/{complaint}/messageCustomer",methods:["POST"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.message.author.store.preview":{uri:"administration/api/product/complaint/{complaint}/message/author/preview",methods:["GET","HEAD"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.message.customer.store.preview":{uri:"administration/api/product/complaint/{complaint}/message/customer/preview",methods:["GET","HEAD"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.message.state.rejected.update.preview":{uri:"administration/api/product/complaint/{complaint}/state/rejected/preview",methods:["GET","HEAD"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.message.state.returned.update.preview":{uri:"administration/api/product/complaint/{complaint}/state/returned/preview",methods:["GET","HEAD"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.message.state.toFix.update.preview":{uri:"administration/api/product/complaint/{complaint}/state/to-fix/preview",methods:["GET","HEAD"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.complaint.message.state.toFix.update.credit.return.preview":{uri:"administration/api/product/complaint/{complaint}/state/to-fix/preview-credit-return",methods:["GET","HEAD"],parameters:["complaint"],bindings:{complaint:"id"}},"administration.api.product.update.list":{uri:"administration/api/product/update/list",methods:["GET","HEAD"]},"administration.api.product.update.open.count":{uri:"administration/api/product/update/open/count",methods:["GET","HEAD"]},"administration.api.product.update.confirm":{uri:"administration/api/product/update/confirm/{productUpdates}",methods:["POST"],parameters:["productUpdates"],bindings:{productUpdates:"id"}},"administration.api.product.update.delete":{uri:"administration/api/product/update/delete/{productUpdates}",methods:["POST"],parameters:["productUpdates"],bindings:{productUpdates:"id"}},"administration.api.user.all":{uri:"administration/api/user/all",methods:["GET","HEAD"]},"administration.api.user.activate":{uri:"administration/api/user/activate/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.block":{uri:"administration/api/user/block/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.unblock":{uri:"administration/api/user/unblock/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.detail":{uri:"administration/api/user/detail/{user}",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.downloads":{uri:"administration/api/user/detail/{user}/downloads",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.orders":{uri:"administration/api/user/detail/{user}/orders",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.payments":{uri:"administration/api/user/detail/{user}/payments",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.credit_transfers":{uri:"administration/api/user/detail/{user}/creditTransfers",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.impersonate":{uri:"administration/api/user/detail/{user}/impersonate",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.changeCredit":{uri:"administration/api/user/detail/credit/change/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.updateInfo":{uri:"administration/api/user/detail/info/update/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.updateIsAuthor":{uri:"administration/api/user/detail/info/update-is-author/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.updateIsVerified":{uri:"administration/api/user/detail/info/update-is-verified/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.updateIsHmat":{uri:"administration/api/user/detail/info/update-is-hmat/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.updateIsMmat":{uri:"administration/api/user/detail/info/update-is-mmat/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.resetPassword":{uri:"administration/api/user/detail/info/reset-password/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.author.products":{uri:"administration/api/user/detail/author/{user}/products",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.author.settlements":{uri:"administration/api/user/detail/author/{user}/settlements",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.author.stats":{uri:"administration/api/user/detail/author/{user}/stats",methods:["POST"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.author.discount.automatic.show":{uri:"administration/api/user/detail/author/{user}/automatic/show",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.author.discount.individual.index":{uri:"administration/api/user/detail/author/{user}/individual/index",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"administration.api.user.search":{uri:"administration/api/user/search/{email}",methods:["GET","HEAD"],parameters:["email"]},"administration.api.user.merge":{uri:"administration/api/user/merge/{user}/{userToMerge}",methods:["PATCH"],parameters:["user","userToMerge"],bindings:{user:"id",userToMerge:"id"}},"administration.api.user.order.delete":{uri:"administration/api/user/order/{order}/delete",methods:["DELETE"],parameters:["order"],bindings:{order:"id"}},"administration.api.user.order.restore":{uri:"administration/api/user/order/{order}/restore",methods:["PATCH"],parameters:["order"]},"administration.api.user.credit_order.delete":{uri:"administration/api/user/credit-order/{order}/delete",methods:["DELETE"],parameters:["order"],bindings:{order:"id"}},"administration.api.user.credit_order.restore":{uri:"administration/api/user/credit-order/{order}/restore",methods:["PATCH"],parameters:["order"]},"administration.api.user.voucher_order.delete":{uri:"administration/api/user/voucher-order/{order}/delete",methods:["DELETE"],parameters:["order"],bindings:{order:"id"}},"administration.api.user.voucher_order.restore":{uri:"administration/api/user/voucher-order/{order}/restore",methods:["PATCH"],parameters:["order"]},"administration.api.school.list":{uri:"administration/api/school/list",methods:["GET","HEAD"]},"administration.api.school.add":{uri:"administration/api/school/add",methods:["POST"]},"administration.api.school.detail":{uri:"administration/api/school/{school}/detail",methods:["GET","HEAD"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.update":{uri:"administration/api/school/{school}/update",methods:["PATCH"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.admin_note.update":{uri:"administration/api/school/{school}/admin-note/update",methods:["PATCH"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.update.budget.add":{uri:"administration/api/school/{school}/update/budget/add",methods:["POST"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.update.budget.remove":{uri:"administration/api/school/{school}/update/budget/remove",methods:["POST"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.update.accounting.email":{uri:"administration/api/school/{school}/update/accounting-email",methods:["POST"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.update.credit-expiry-date":{uri:"administration/api/school/{school}/update/credit-expiry-date",methods:["POST"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.employee.index":{uri:"administration/api/school/{school}/employee/index",methods:["GET","HEAD"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.employee.create":{uri:"administration/api/school/{school}/employee/{user}/create",methods:["POST"],parameters:["school","user"],bindings:{school:"id",user:"id"}},"administration.api.school.employee.confirm":{uri:"administration/api/school/employee/{employee}/confirm",methods:["PATCH"],parameters:["employee"],bindings:{employee:"id"}},"administration.api.school.employee.decline":{uri:"administration/api/school/employee/{employee}/decline",methods:["PATCH"],parameters:["employee"],bindings:{employee:"id"}},"administration.api.school.employee.credit.update":{uri:"administration/api/school/employee/{employee}/credit/update",methods:["PATCH"],parameters:["employee"],bindings:{employee:"id"}},"administration.api.school.employee.manager_role.add":{uri:"administration/api/school/employee/{employee}/manager-role/add",methods:["PATCH"],parameters:["employee"]},"administration.api.school.employee.manager_role.remove":{uri:"administration/api/school/employee/{employee}/manager-role/remove",methods:["PATCH"],parameters:["employee"]},"administration.api.school.employee.delete":{uri:"administration/api/school/employee/{employee}/delete",methods:["DELETE"],parameters:["employee"],bindings:{employee:"id"}},"administration.api.school.order.list":{uri:"administration/api/school/{school}/order/list",methods:["GET","HEAD"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.credit_order.place":{uri:"administration/api/school/{school}/credit-order/place",methods:["POST"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.credit_order.delete":{uri:"administration/api/school/credit-order/{order}/delete",methods:["DELETE"],parameters:["order"],bindings:{order:"id"}},"administration.api.school.credit_order.restore":{uri:"administration/api/school/credit-order/{order}/restore",methods:["PATCH"],parameters:["order"]},"administration.api.school.order.delete":{uri:"administration/api/school/order/{order}/delete",methods:["DELETE"],parameters:["order"],bindings:{order:"id"}},"administration.api.school.order.restore":{uri:"administration/api/school/order/{order}/restore",methods:["PATCH"],parameters:["order"]},"administration.api.school.payment.list":{uri:"administration/api/school/{school}/payment/list",methods:["GET","HEAD"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.credit_transfer.list":{uri:"administration/api/school/{school}/credit-transfer/list",methods:["GET","HEAD"],parameters:["school"],bindings:{school:"id"}},"administration.api.school.download.list":{uri:"administration/api/school/{school}/download/list",methods:["GET","HEAD"],parameters:["school"],bindings:{school:"id"}},"administration.api.content.section.recent":{uri:"administration/api/content/section/recent",methods:["GET","HEAD"]},"administration.api.content.section.shown":{uri:"administration/api/content/section/shown",methods:["GET","HEAD"]},"administration.api.content.section.hidden":{uri:"administration/api/content/section/hidden",methods:["GET","HEAD"]},"administration.api.content.section.create":{uri:"administration/api/content/section/create",methods:["POST"]},"administration.api.content.section.update":{uri:"administration/api/content/section/{section}/update",methods:["PATCH"],parameters:["section"],bindings:{section:"id"}},"administration.api.content.section.card_img.update":{uri:"administration/api/content/section/card-img/update",methods:["POST"]},"administration.api.content.section.catalog_img.update":{uri:"administration/api/content/section/catalog-img/update",methods:["POST"]},"administration.api.content.section.delete":{uri:"administration/api/content/section/{section}/delete",methods:["DELETE"],parameters:["section"],bindings:{section:"id"}},"administration.api.content.section.reorder":{uri:"administration/api/content/section/reorder",methods:["PATCH"]},"administration.api.content.section.show":{uri:"administration/api/content/section/{section}/show",methods:["PATCH"],parameters:["section"],bindings:{section:"id"}},"administration.api.content.section.hide":{uri:"administration/api/content/section/{section}/hide",methods:["PATCH"],parameters:["section"],bindings:{section:"id"}},"administration.api.content.section.products":{uri:"administration/api/content/section/products",methods:["GET","HEAD"]},"administration.api.content.section.productsAdded":{uri:"administration/api/content/section/products-added",methods:["POST"]},"administration.api.content.section.categories":{uri:"administration/api/content/section/categories",methods:["GET","HEAD"]},"administration.api.content.infobox.recent":{uri:"administration/api/content/infobox/recent",methods:["GET","HEAD"]},"administration.api.content.infobox.shown":{uri:"administration/api/content/infobox/shown",methods:["GET","HEAD"]},"administration.api.content.infobox.hidden":{uri:"administration/api/content/infobox/hidden",methods:["GET","HEAD"]},"administration.api.content.infobox.create":{uri:"administration/api/content/infobox/create",methods:["POST"]},"administration.api.content.infobox.update":{uri:"administration/api/content/infobox/{infobox}/update",methods:["PATCH"],parameters:["infobox"],bindings:{infobox:"id"}},"administration.api.content.infobox.delete":{uri:"administration/api/content/infobox/{infobox}/delete",methods:["DELETE"],parameters:["infobox"],bindings:{infobox:"id"}},"administration.api.content.infobox.show":{uri:"administration/api/content/infobox/{infobox}/show",methods:["PATCH"],parameters:["infobox"],bindings:{infobox:"id"}},"administration.api.content.infobox.hide":{uri:"administration/api/content/infobox/{infobox}/hide",methods:["PATCH"],parameters:["infobox"],bindings:{infobox:"id"}},"administration.api.content.category.list":{uri:"administration/api/content/category/list",methods:["GET","HEAD"]},"administration.api.content.category.create":{uri:"administration/api/content/category/create",methods:["POST"]},"administration.api.content.category.update":{uri:"administration/api/content/category/{category}/update",methods:["PATCH"],parameters:["category"],bindings:{category:"id"}},"administration.api.content.category.update.image":{uri:"administration/api/content/category/{category}/update/image",methods:["POST"],parameters:["category"],bindings:{category:"id"}},"administration.api.content.category.delete":{uri:"administration/api/content/category/{category}/delete",methods:["DELETE"],parameters:["category"],bindings:{category:"id"}},"administration.api.content.category.delete.info":{uri:"administration/api/content/category/{category}/delete-info",methods:["GET","HEAD"],parameters:["category"],bindings:{category:"id"}},"administration.api.content.category.class-subject.list":{uri:"administration/api/content/category/class-subject/list",methods:["GET","HEAD"]},"administration.api.content.category.class-subject.add":{uri:"administration/api/content/category/class-subject/{parent}/add/{category}",methods:["POST"],parameters:["parent","category"],bindings:{parent:"id",category:"id"}},"administration.api.content.category.class-subject.remove":{uri:"administration/api/content/category/class-subject/{parent}/remove/{category}",methods:["DELETE"],parameters:["parent","category"],bindings:{parent:"id",category:"id"}},"administration.api.content.search.defaults":{uri:"administration/api/content/search/defaults",methods:["GET","HEAD"]},"administration.api.content.search.defaults.save":{uri:"administration/api/content/search/defaults/save",methods:["POST"]},"administration.api.content.blog.posts":{uri:"administration/api/content/blog/posts",methods:["GET","HEAD"]},"administration.api.content.blog.themes":{uri:"administration/api/content/blog/themes",methods:["GET","HEAD"]},"administration.api.content.blog.mostRead":{uri:"administration/api/content/blog/most-read",methods:["GET","HEAD"]},"administration.api.content.blog.favouriteThemes":{uri:"administration/api/content/blog/favourite-themes",methods:["GET","HEAD"]},"administration.api.content.blog.reorderMostRead":{uri:"administration/api/content/blog/most-read/reorder",methods:["PATCH"]},"administration.api.content.blog.reorderFavouriteThemes":{uri:"administration/api/content/blog/favourite-themes/reorder",methods:["PATCH"]},"administration.api.content.product_upload_lock.index_recent":{uri:"administration/api/content/product-upload-lock/index-recent",methods:["GET","HEAD"]},"administration.api.content.product_upload_lock.index_shown":{uri:"administration/api/content/product-upload-lock/index-shown",methods:["GET","HEAD"]},"administration.api.content.product_upload_lock.index_hidden":{uri:"administration/api/content/product-upload-lock/index-hidden",methods:["GET","HEAD"]},"administration.api.content.product_upload_lock.create":{uri:"administration/api/content/product-upload-lock/create",methods:["POST"]},"administration.api.content.product_upload_lock.update":{uri:"administration/api/content/product-upload-lock/{productUploadLock}/update",methods:["PATCH"],parameters:["productUploadLock"],bindings:{productUploadLock:"id"}},"administration.api.content.product_upload_lock.image_update":{uri:"administration/api/content/product-upload-lock/image/update",methods:["POST"]},"administration.api.content.product_upload_lock.delete":{uri:"administration/api/content/product-upload-lock/{productUploadLock}/delete",methods:["DELETE"],parameters:["productUploadLock"],bindings:{productUploadLock:"id"}},"administration.api.finance.order.list":{uri:"administration/api/finance/order/list",methods:["GET","HEAD"]},"administration.api.finance.author.list":{uri:"administration/api/finance/author/list",methods:["GET","HEAD"]},"administration.api.finance.author.settlement_payments":{uri:"administration/api/finance/author/settlement-payments",methods:["GET","HEAD"]},"administration.api.finance.settlement.index":{uri:"administration/api/finance/settlement/index",methods:["GET","HEAD"]},"administration.api.finance.settlement.confirm":{uri:"administration/api/finance/settlement/{user}/confirm",methods:["POST"],parameters:["user"]},"administration.api.finance.credit.list":{uri:"administration/api/finance/credit/list",methods:["GET","HEAD"]},"administration.api.finance.invoice.regenerate":{uri:"administration/api/finance/invoice/regenerate",methods:["POST"]},"administration.api.finance.order.pay":{uri:"administration/api/finance/order/pay",methods:["POST"]},"administration.api.finance.invoice.download":{uri:"administration/api/finance/invoice/download",methods:["GET","HEAD"]},"administration.api.finance.voucher.index":{uri:"administration/api/finance/voucher/index",methods:["GET","HEAD"]},"administration.api.finance.voucher.list":{uri:"administration/api/finance/voucher/list",methods:["GET","HEAD"]},"administration.api.finance.voucher.add":{uri:"administration/api/finance/voucher/add",methods:["POST"]},"administration.api.finance.voucher.edit":{uri:"administration/api/finance/voucher/edit/{voucher}",methods:["PATCH"],parameters:["voucher"],bindings:{voucher:"id"}},"administration.api.finance.voucher.remove":{uri:"administration/api/finance/voucher/remove/{voucher}",methods:["DELETE"],parameters:["voucher"],bindings:{voucher:"id"}},"administration.api.finance.voucher.pdf":{uri:"administration/api/finance/voucher/pdf/{voucher}",methods:["GET","HEAD"],parameters:["voucher"],bindings:{voucher:"id"}},"administration.api.finance.discount.index":{uri:"administration/api/finance/discount/index",methods:["GET","HEAD"]},"administration.api.finance.discount.add":{uri:"administration/api/finance/discount/add",methods:["POST"]},"administration.api.finance.discount.edit":{uri:"administration/api/finance/discount/edit/{discount}",methods:["PATCH"],parameters:["discount"],bindings:{discount:"id"}},"administration.api.finance.discount.remove":{uri:"administration/api/finance/discount/remove/{discount}",methods:["DELETE"],parameters:["discount"],bindings:{discount:"id"}},"administration.api.finance.authorDiscount.index":{uri:"administration/api/finance/author-discount/index",methods:["GET","HEAD"]},"administration.api.finance.authorDiscount.create":{uri:"administration/api/finance/author-discount/create",methods:["POST"]},"administration.api.finance.authorDiscount.update":{uri:"administration/api/finance/author-discount/update/{authorDiscountAutomaticSettings}",methods:["PATCH"],parameters:["authorDiscountAutomaticSettings"],bindings:{authorDiscountAutomaticSettings:"id"}},"administration.api.finance.authorDiscount.remove":{uri:"administration/api/finance/author-discount/remove/{authorDiscountAutomaticSettings}",methods:["DELETE"],parameters:["authorDiscountAutomaticSettings"],bindings:{authorDiscountAutomaticSettings:"id"}},"administration.api.message.index":{uri:"administration/api/message/index",methods:["GET","HEAD"]},"administration.api.message.show":{uri:"administration/api/message/show/{conversation}",methods:["GET","HEAD"],parameters:["conversation"],bindings:{conversation:"id"}},"administration.api.message.send":{uri:"administration/api/message/send/{user}",methods:["POST"],parameters:["user"],bindings:{user:"id"}},"administration.api.message.find":{uri:"administration/api/message/find/{user}",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"administration.api.custom_notification.index":{uri:"administration/api/custom_notification/index",methods:["GET","HEAD"]},"administration.api.custom_notification.create":{uri:"administration/api/custom_notification/create",methods:["POST"]},"administration.api.custom_notification.update":{uri:"administration/api/custom_notification/{notification}/update",methods:["PATCH"],parameters:["notification"],bindings:{notification:"id"}},"administration.api.custom_notification.delete":{uri:"administration/api/custom_notification/{notification}/delete",methods:["DELETE"],parameters:["notification"],bindings:{notification:"id"}},"administration.api.mass-notification.send":{uri:"administration/api/mass-notifications/send",methods:["POST"]},login:{uri:"prihlaseni",methods:["GET","HEAD"]},"login.not_confirmed":{uri:"prihlaseni/ucet/neaktivni",methods:["GET","HEAD"]},"login.confirm.resend":{uri:"prihlaseni/preposlat-potvrzeni",methods:["PATCH"]},"login.confirm.resend.url":{uri:"prihlaseni/preposlat-potvrzeni/url/{email}",methods:["GET","HEAD"],parameters:["email"]},logout:{uri:"odhlaseni",methods:["POST"]},register:{uri:"registrace",methods:["GET","HEAD"]},"user.store":{uri:"registrace",methods:["POST"]},"register.thanks":{uri:"registrace/dekujeme",methods:["GET","HEAD"]},"register.confirm":{uri:"registrace/potvrzeni/{code}",methods:["GET","HEAD"],parameters:["code"]},"password.request":{uri:"obnova/hesla",methods:["GET","HEAD"]},"password.email":{uri:"obnova/email",methods:["POST"]},"password.reset":{uri:"obnova/hesla/{token}",methods:["GET","HEAD"],parameters:["token"]},"facebook.redirect":{uri:"redirect",methods:["GET","HEAD"]},"facebook.callback":{uri:"callback",methods:["GET","HEAD"]},"guest.invoice_data.update":{uri:"guest/invoice-data/update",methods:["POST"]},"user.be_author.index":{uri:"stat-se-autorem",methods:["GET","HEAD"]},"user.be_author.form":{uri:"stat-se-autorem/registrace",methods:["GET","HEAD"]},"user.be_author.thanks":{uri:"stat-se-autorem/dekujeme",methods:["GET","HEAD"]},"user.not_authorized":{uri:"neopravneni",methods:["GET","HEAD"]},"user.be_author.store":{uri:"stat-se-autorem/potvrzeni/{user}",methods:["POST"],parameters:["user"],bindings:{user:"id"}},"api.":{uri:"api/user",methods:["GET","HEAD"]},"api.auth":{uri:"api/auth",methods:["GET","HEAD"]},"api.auth.downloads":{uri:"api/auth/downloads",methods:["GET","HEAD"]},"api.auth.name.set":{uri:"api/auth/name/set",methods:["PATCH"]},"api.downloads":{uri:"api/downloads",methods:["GET","HEAD"]},"api.professional.focus.edit":{uri:"api/{user}/professional-focus",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"api.user.preferences":{uri:"api/user/preferences",methods:["GET","HEAD"]},"api.user.show.editor":{uri:"api/user/editor/{user}",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"api.user.update.editor.image":{uri:"api/user/editor/image/{user}",methods:["POST"],parameters:["user"],bindings:{user:"id"}},"user.dashboard.index":{uri:"profil",methods:["GET","HEAD"]},"user.dashboard.downloads":{uri:"profil/materialy",methods:["GET","HEAD"]},"user.dashboard.downloads.user":{uri:"profil/materialy/osobni",methods:["GET","HEAD"]},"user.dashboard.downloads.school":{uri:"profil/materialy/skolni",methods:["GET","HEAD"]},"user.dashboard.wishlist":{uri:"profil/seznam-prani",methods:["GET","HEAD"]},"user.dashboard.messages":{uri:"profil/zpravy",methods:["GET","HEAD"]},"user.dashboard.finances":{uri:"profil/finance",methods:["GET","HEAD"]},"user.dashboard.finances.documents":{uri:"profil/finance/danove-doklady",methods:["GET","HEAD"]},"user.dashboard.finances.unfinished_orders":{uri:"profil/finance/neuhrazene-objednavky",methods:["GET","HEAD"]},"user.dashboard.finances.paid_orders":{uri:"profil/finance/zaplacene-objednavky",methods:["GET","HEAD"]},"user.dashboard.finances.credit_orders":{uri:"profil/finance/dobiti-kreditu",methods:["GET","HEAD"]},"user.dashboard.settings":{uri:"profil/nastaveni",methods:["GET","HEAD"]},"user.dashboard.settings.profile":{uri:"profil/nastaveni/profil",methods:["GET","HEAD"]},"user.dashboard.settings.password":{uri:"profil/nastaveni/heslo",methods:["GET","HEAD"]},"user.dashboard.settings.preferences":{uri:"profil/nastaveni/zajmy",methods:["GET","HEAD"]},"user.dashboard.settings.invoice_info":{uri:"profil/nastaveni/fakturacni-udaje",methods:["GET","HEAD"]},"user.dashboard.settings.school":{uri:"profil/nastaveni/skola",methods:["GET","HEAD"]},"user.dashboard.api.index":{uri:"profil/api/user-info",methods:["GET","HEAD"]},"user.dashboard.api.update.profile":{uri:"profil/api/update-name",methods:["POST"]},"user.dashboard.api.update.password":{uri:"profil/api/update-password",methods:["POST"]},"user.dashboard.api.update.preferences":{uri:"profil/api/update-preferences/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"user.dashboard.api.update.invoice.info":{uri:"profil/api/update-invoice-info",methods:["POST"]},"user.dashboard.api.wishlist":{uri:"profil/api/user-wishlist",methods:["GET","HEAD"]},"user.dashboard.api.wishlist.remove":{uri:"profil/api/user-wishlist-remove/{product}",methods:["POST"],parameters:["product"],bindings:{product:"id"}},"user.dashboard.api.messages":{uri:"profil/api/user-messages",methods:["GET","HEAD"]},"user.dashboard.api.messages.send":{uri:"profil/api/user-messages/send",methods:["POST"]},"user.dashboard.api.finances.documents":{uri:"profil/api/finances/documents",methods:["GET","HEAD"]},"user.dashboard.api.finances.unfinished.orders":{uri:"profil/api/finances/unfinished-orders",methods:["GET","HEAD"]},"user.dashboard.api.finances.paid.orders":{uri:"profil/api/finances/paid-orders",methods:["GET","HEAD"]},"user.dashboard.api.finances.credit.orders":{uri:"profil/api/finances/credit-orders",methods:["GET","HEAD"]},"downloads.download":{uri:"zakoupene-materialy/stazeni/{product}",methods:["GET","HEAD"],parameters:["product"],bindings:{product:"id"}},"downloads.download.guest":{uri:"zakoupene-materialy/stazeni-host/{orderItem}",methods:["GET","HEAD"],parameters:["orderItem"],bindings:{orderItem:"id"}},"downloads.mail.link":{uri:"zakoupene-materialy/email",methods:["GET","HEAD"]},"user.show":{uri:"author/{id}",methods:["GET","HEAD"],parameters:["id"]},"user.show.product_group":{uri:"author/{id}/{slug}",methods:["GET","HEAD"],parameters:["id","slug"]},"api.author.show":{uri:"api/author/show/{id?}",methods:["GET","HEAD"],parameters:["id"]},"api.author.slug.test_availability":{uri:"api/author/{user}/slug/{slug}/test-availability",methods:["GET","HEAD"],parameters:["user","slug"],bindings:{user:"id"}},"api.author.image.delete":{uri:"api/author/{user}/image/delete",methods:["DELETE"],parameters:["user"],bindings:{user:"id"}},"api.author.image_sources.update":{uri:"api/author/{user}/image-sources",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"api.author.discount.generateShareImage":{uri:"api/author/discount/{discount}/share-image",methods:["GET","HEAD"],parameters:["discount"],bindings:{discount:"id"}},"api.author.discount.generateShareImageStatus":{uri:"api/author/discount/{discount}/check-image-status",methods:["GET","HEAD"],parameters:["discount"],bindings:{discount:"id"}},"api.author.discount.downloadImage":{uri:"api/author/discount/{discount}/download-image",methods:["GET","HEAD"],parameters:["discount"],bindings:{discount:"id"}},"api.author.discount.individual.index":{uri:"api/author/discount/individual/index",methods:["GET","HEAD"]},"api.author.discount.individual.show":{uri:"api/author/discount/individual/show/{discount}",methods:["GET","HEAD"],parameters:["discount"],bindings:{discount:"id"}},"api.author.discount.individual.invalid_dates":{uri:"api/author/discount/individual/invalid-dates/{discount?}",methods:["GET","HEAD"],parameters:["discount"],bindings:{discount:"id"}},"api.author.discount.individual.invalid_years":{uri:"api/author/discount/individual/invalid-years/{discount?}",methods:["GET","HEAD"],parameters:["discount"],bindings:{discount:"id"}},"api.author.discount.individual.create":{uri:"api/author/discount/individual/create",methods:["POST"]},"api.author.discount.individual.update":{uri:"api/author/discount/individual/{discount}/update",methods:["PATCH"],parameters:["discount"],bindings:{discount:"id"}},"api.author.discount.individual.delete":{uri:"api/author/discount/individual/{discount}/delete",methods:["DELETE"],parameters:["discount"],bindings:{discount:"id"}},"api.author.discount.individual.deactivate":{uri:"api/author/discount/individual/{discount}/deactivate",methods:["DELETE"],parameters:["discount"],bindings:{discount:"id"}},"api.author.discount.automatic.show":{uri:"api/author/discount/automatic/show",methods:["GET","HEAD"]},"api.author.discount.automatic.update":{uri:"api/author/discount/automatic/update",methods:["POST"]},"api.author.product.vat.compute":{uri:"api/author/product/{product}/vat/compute",methods:["POST"],parameters:["product"],bindings:{product:"id"}},"api.author.product_group.index":{uri:"api/author/product-group/index",methods:["GET","HEAD"]},"api.author.product_group.show":{uri:"api/author/product-group/show",methods:["POST"]},"api.author.product_group.reorder":{uri:"api/author/product-group/reorder",methods:["PATCH"]},"api.author.product_group.showOrCreate":{uri:"api/author/product-group/showOrCreate",methods:["GET","HEAD"]},"api.author.product_group.update":{uri:"api/author/product-group/{group}/update",methods:["PATCH"],parameters:["group"],bindings:{group:"id"}},"api.author.product_group.hiddenToggle":{uri:"api/author/product-group/{group}/hiddenToggle",methods:["PATCH"],parameters:["group"],bindings:{group:"id"}},"api.author.product_group.delete":{uri:"api/author/product-group/{group}/delete",methods:["DELETE"],parameters:["group"],bindings:{group:"id"}},"api.author.product_group.image.upload":{uri:"api/author/product-group/{group}/image/upload",methods:["POST"],parameters:["group"],bindings:{group:"id"}},"api.author.product_group.image.delete":{uri:"api/author/product-group/{group}/image/delete",methods:["DELETE"],parameters:["group"],bindings:{group:"id"}},"api.author.product_group.products":{uri:"api/author/product-group/products",methods:["GET","HEAD"]},"api.author.product_group.productsAdded":{uri:"api/author/product-group/{group}/products-added",methods:["POST"],parameters:["group"],bindings:{group:"id"}},"api.author.notification.index":{uri:"api/author/notification/index",methods:["GET","HEAD"]},"api.author.notification.show":{uri:"api/author/notification/show/{notification}",methods:["POST"],parameters:["notification"],bindings:{notification:"id"}},"api.author.achievement.show":{uri:"api/author/achievement/show/{achievement}",methods:["GET","HEAD"],parameters:["achievement"],bindings:{achievement:"id"}},"api.author.achievement.generateShareImage":{uri:"api/author/achievement/share-image/{achievement}",methods:["GET","HEAD"],parameters:["achievement"],bindings:{achievement:"id"}},"api.author.achievement.generateShareImageStatus":{uri:"api/author/achievement/check-image-status/{achievement}",methods:["GET","HEAD"],parameters:["achievement"],bindings:{achievement:"id"}},"api.author.achievement.downloadImage":{uri:"api/author/achievement/download-image/{achievement}",methods:["GET","HEAD"],parameters:["achievement"],bindings:{achievement:"id"}},"api.author.favourite":{uri:"api/author/{author}",methods:["POST"],parameters:["author"],bindings:{author:"id"}},"api.author.stats.periods":{uri:"api/author/stats/stats/periods",methods:["GET","HEAD"]},"api.author.stats.monthly":{uri:"api/author/stats/stats/monthly",methods:["POST"]},"api.author.stats.product.monthly":{uri:"api/author/stats/stats/product/monthly",methods:["POST"]},"api.author.stats.products.topYesterday":{uri:"api/author/stats/stats/products/top-yesterday",methods:["GET","HEAD"]},"api.author.discount_automatic_settings.show":{uri:"api/author/discount-automatic-settings/show",methods:["GET","HEAD"]},"api.author.product_upload_lock.show_active":{uri:"api/author/product-upload-lock/show-active",methods:["GET","HEAD"]},"api.user.authors":{uri:"api/authors",methods:["GET","HEAD"]},"api.user.authors.random":{uri:"api/authors/random",methods:["GET","HEAD"]},"api.user.authors.count":{uri:"api/authors/count",methods:["GET","HEAD"]},"api.user.organizations":{uri:"api/organizations",methods:["GET","HEAD"]},"dashboard.index":{uri:"dashboard",methods:["GET","HEAD"]},"dashboard.actualities":{uri:"dashboard/aktualne",methods:["GET","HEAD"]},"dashboard.actualities.overview":{uri:"dashboard/aktualne/prehled/oceneni",methods:["GET","HEAD"]},"dashboard.actualities.news":{uri:"dashboard/aktualne/novinky/{id}",methods:["GET","HEAD"],parameters:["id"]},"dashboard.actualities.achievements":{uri:"dashboard/aktualne/oceneni/{id}",methods:["GET","HEAD"],parameters:["id"]},"dashboard.actualities.sells":{uri:"dashboard/aktualne/prehled-prodeju",methods:["GET","HEAD"]},"dashboard.products":{uri:"dashboard/materialy",methods:["GET","HEAD"]},"dashboard.products.all":{uri:"dashboard/materialy/vsechny",methods:["GET","HEAD"]},"dashboard.products.revision":{uri:"dashboard/materialy/v-revizi",methods:["GET","HEAD"]},"dashboard.products.complaints":{uri:"dashboard/materialy/reklamace",methods:["GET","HEAD"]},"dashboard.product_groups":{uri:"dashboard/skupiny-materialu",methods:["GET","HEAD"]},"dashboard.marketing.":{uri:"dashboard/marketing",methods:["GET","HEAD"]},"dashboard.marketing.promo":{uri:"dashboard/marketing/promo-material",methods:["GET","HEAD"]},"dashboard.marketing.discount":{uri:"dashboard/marketing/slevy",methods:["GET","HEAD"]},"dashboard.marketing.discount.overview":{uri:"dashboard/marketing/slevy/prehled",methods:["GET","HEAD"]},"dashboard.marketing.discount.individual.settings":{uri:"dashboard/marketing/slevy/autorske/nastaveni/{discount?}",methods:["GET","HEAD"],parameters:["discount"]},"dashboard.marketing.discount.automatic.settings":{uri:"dashboard/marketing/slevy/ucitelnice/nastaveni/{discount?}",methods:["GET","HEAD"],parameters:["discount"]},"dashboard.finances":{uri:"dashboard/vyuctovani",methods:["GET","HEAD"]},"dashboard.settings.cover_image":{uri:"dashboard/nastaveni/uvodni-obrazek",methods:["GET","HEAD"]},"dashboard.settings.profile_image":{uri:"dashboard/nastaveni/profilovy-obrazek",methods:["GET","HEAD"]},"dashboard.settings.informations":{uri:"dashboard/nastaveni/informace",methods:["GET","HEAD"]},"dashboard.settings.socials":{uri:"dashboard/nastaveni/socialni-site",methods:["GET","HEAD"]},"dashboard.settings.images":{uri:"dashboard/nastaveni/zdroje-obrazku",methods:["GET","HEAD"]},"dashboard.api.products":{uri:"dashboard/api/products",methods:["GET","HEAD"]},"dashboard.api.products.exclusive":{uri:"dashboard/api/products/exclusive",methods:["GET","HEAD"]},"dashboard.api.revisions":{uri:"dashboard/api/revisions",methods:["GET","HEAD"]},"dashboard.api.complaints":{uri:"dashboard/api/complaints",methods:["GET","HEAD"]},"dashboard.api.author":{uri:"dashboard/api/{user}",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"dashboard.api.basic.settings.update":{uri:"dashboard/api/basic-settings/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"dashboard.api.basic.settings.update.only-on-ucitelnice":{uri:"dashboard/api/basic-settings-only-on-ucitelnice/{user}",methods:["PATCH"],parameters:["user"],bindings:{user:"id"}},"dashboard.api.basic.settings.checklist.update":{uri:"dashboard/api/checklist-read",methods:["POST"]},"dashboard.api.settlements":{uri:"dashboard/api/monthly-invoices/{year}",methods:["GET","HEAD"],parameters:["year"]},"dashboard.api.cover.image.update":{uri:"dashboard/api/cover-image",methods:["POST"]},"dashboard.api.cover.image.delete":{uri:"dashboard/api/cover-image",methods:["DELETE"]},"dashboard.api.promo.product.show":{uri:"dashboard/api/promo-product/show",methods:["GET","HEAD"]},"dashboard.api.promo.product.update":{uri:"dashboard/api/promo-product/update",methods:["POST"]},"dashboard.api.promo.product.delete":{uri:"dashboard/api/promo-product/delete",methods:["DELETE"]},"dashboard.api.promo.product.downloadsCountIncrease":{uri:"dashboard/api/promo-product/{promoProduct}/downloads-count/increase",methods:["GET","HEAD"],parameters:["promoProduct"],bindings:{promoProduct:"id"}},"dashboard.api.promo.product.file.upload":{uri:"dashboard/api/promo-product/file/upload",methods:["POST"]},"dashboard.api.promo.product.image.upload":{uri:"dashboard/api/promo-product/image/upload",methods:["POST"]},"dashboard.api.promo.product.image.delete":{uri:"dashboard/api/promo-product/image/delete",methods:["DELETE"]},"dashboard.api.product.in.revision":{uri:"dashboard/api/product-in-revision/{product}",methods:["GET","HEAD"],parameters:["product"],bindings:{product:"id"}},"author.achievement.shareImageView":{uri:"author/achievement/{achievement}/share-image",methods:["GET","HEAD"],parameters:["achievement"],bindings:{achievement:"id"}},"author.discount.shareImageView":{uri:"author/discount/{discount}/share-image",methods:["GET","HEAD"],parameters:["discount"],bindings:{discount:"id"}},"product.not_available":{uri:"produkt-nedostupny",methods:["GET","HEAD"]},"product.api.images":{uri:"produkt/api/{product}/images",methods:["GET","HEAD"],parameters:["product"],bindings:{product:"id"}},"product.create":{uri:"produkt/novy",methods:["GET","HEAD"]},"product.hide":{uri:"produkt/{product}/hide",methods:["GET","HEAD"],parameters:["product"],bindings:{product:"id"}},"product.download_files":{uri:"produkt/{product}/file/{file}/download",methods:["GET","HEAD"],parameters:["product","file"],bindings:{product:"id",file:"id"}},"product.store_files":{uri:"produkt/files/{product}",methods:["POST"],parameters:["product"],bindings:{product:"id"}},"product.file.destroy":{uri:"produkt/file/{productFiles}/mazani",methods:["DELETE"],parameters:["productFiles"],bindings:{productFiles:"id"}},"product.image.destroy":{uri:"produkt/obrazek/{productImage}/mazani",methods:["DELETE"],parameters:["productImage"],bindings:{productImage:"id"}},"product.edit":{uri:"produkt/modifikacia/{product}",methods:["GET","HEAD"],parameters:["product"],bindings:{product:"id"}},"product.show":{uri:"produkt/{id?}",methods:["GET","HEAD"],parameters:["id"]},"product.webinar":{uri:"produkt/{product}/webinar",methods:["GET","HEAD"],parameters:["product"],bindings:{product:"id"}},"api.product.index":{uri:"api/products",methods:["GET","HEAD"]},"api.product.recommended":{uri:"api/recommended",methods:["GET","HEAD"]},"api.products.counts":{uri:"api/products/counts",methods:["GET","HEAD"]},"api.product.show":{uri:"api/product/{id}",methods:["GET","HEAD"],parameters:["id"]},"api.product.preview":{uri:"api/product/{product}/preview",methods:["GET","HEAD"],parameters:["product"],bindings:{product:"id"}},"api.product.destroy":{uri:"api/product/{product}/destroy",methods:["PATCH"],parameters:["product"],bindings:{product:"id"}},"api.product.restore":{uri:"api/product/{id}/restore",methods:["PATCH"],parameters:["id"]},"api.products.404":{uri:"api/produkty/nenalezen",methods:["GET","HEAD"]},"api.product.rating.index":{uri:"api/rating",methods:["GET","HEAD"]},"api.product.rating.load":{uri:"api/rating/{product}",methods:["GET","HEAD"],parameters:["product"],bindings:{product:"id"}},"api.product.rating.store":{uri:"api/product/{product}/rate",methods:["POST"],parameters:["product"],bindings:{product:"id"}},"api.product.rating.store.signed":{uri:"api/product/{product}/user/{user}/rate",methods:["POST"],parameters:["product","user"],bindings:{product:"id",user:"id"}},"api.promo-product.user.download":{uri:"api/promo-product/u/{user}/download",methods:["GET","HEAD"],parameters:["user"],bindings:{user:"id"}},"api.promo-product.download":{uri:"api/promo-product/{product}/download",methods:["GET","HEAD"],parameters:["product"],bindings:{product:"id"}},"cart.index":{uri:"kosik",methods:["GET","HEAD"]},"cart.loggedInIndex":{uri:"uzivatelsky-kosik",methods:["GET","HEAD"]},"cart.automaticLogIn":{uri:"mail-kosik",methods:["GET","HEAD"]},"order.payment.index":{uri:"objednavka/platba/vyber-metody",methods:["GET","HEAD"]},"order.payment.show":{uri:"objednavka/platba/{order}",methods:["GET","HEAD"],parameters:["order"],bindings:{order:"uuid"}},"order.payment.processed":{uri:"objednavka/platba/{payment}/zpracovano",methods:["GET","HEAD"],parameters:["payment"],bindings:{payment:"id"}},"order.payment.waiting":{uri:"objednavka/platba/ceka-na-potvrzeni/{order}",methods:["GET","HEAD"],parameters:["order"],bindings:{order:"uuid"}},"order.payment.confirmed":{uri:"objednavka/platba/potvrzeno/{order}",methods:["GET","HEAD"],parameters:["order"],bindings:{order:"uuid"}},"order.summary.show":{uri:"objednavka/souhrn/{order}",methods:["GET","HEAD"],parameters:["order"],bindings:{order:"uuid"}},"credit.payment.processed":{uri:"dobiti-kreditu/platba/{payment}/dokonceni",methods:["GET","HEAD"],parameters:["payment"],bindings:{payment:"id"}},"credit.payment.notify":{uri:"dobiti-kreditu/platba/{payment}/notifikace",methods:["GET","HEAD"],parameters:["payment"]},"voucher.index":{uri:"darkovy-poukaz",methods:["GET","HEAD"]},"voucher.confirmed":{uri:"darkovy-poukaz/potvrzeno/{voucher}",methods:["GET","HEAD"],parameters:["voucher"],bindings:{voucher:"id"}},"voucher.proforma":{uri:"darkovy-poukaz/prevod/{voucher}",methods:["GET","HEAD"],parameters:["voucher"],bindings:{voucher:"id"}},"voucher.download":{uri:"darkovy-poukaz/download/{voucher}",methods:["GET","HEAD"],parameters:["voucher"]},"voucher.payment.processed":{uri:"darkovy-poukaz/platba/{payment}/dokonceni",methods:["GET","HEAD"],parameters:["payment"],bindings:{payment:"id"}},"voucher.payment.notify":{uri:"darkovy-poukaz/platba/{payment}/notifikace",methods:["GET","HEAD"],parameters:["payment"]},"api.cart.index":{uri:"api/cart",methods:["GET","HEAD"]},"api.cart.setAsSchool":{uri:"api/cart/set-as-school",methods:["PATCH"]},"api.cart.setAsPersonal":{uri:"api/cart/set-as-personal",methods:["PATCH"]},"api.cart.add":{uri:"api/cart/{product}",methods:["PUT"],parameters:["product"],bindings:{product:"id"}},"api.cart.remove":{uri:"api/cart/{product}",methods:["DELETE"],parameters:["product"],bindings:{product:"id"}},"api.cart.discount.add":{uri:"api/cart-code/{code}",methods:["PATCH"],parameters:["code"]},"api.cart.discount.remove":{uri:"api/cart-code",methods:["DELETE"]},"api.cart.guest_checkout":{uri:"api/cart/guest-checkout",methods:["POST"]},"api.order.place":{uri:"api/objednavka/vytvorit",methods:["POST"]},"api.order.expedited.place":{uri:"api/objednavka/zrychlene/vytvorit",methods:["POST"]},"api.order.expedited.rollback":{uri:"api/objednavka/zrychlene/vratit",methods:["POST"]},"api.order.payment.gateway":{uri:"api/objednavka/platba/brana/{order}",methods:["POST"],parameters:["order"],bindings:{order:"uuid"}},"api.order.payment.notify":{uri:"api/objednavka/platba/{payment}/notifikace",methods:["GET","HEAD"],parameters:["payment"]},"api.order.summary.url.generate":{uri:"api/objednavka/souhrn/{order}/url/generate",methods:["POST"],parameters:["order"],bindings:{order:"uuid"}},"api.order.summary.mail.resend":{uri:"api/objednavka/souhrn/{order}/mail/resend",methods:["POST"],parameters:["order"],bindings:{order:"uuid"}},"api.discount.show":{uri:"api/discount/show",methods:["GET","HEAD"]},"api.authorDiscount.show":{uri:"api/author-discount/show",methods:["GET","HEAD"]},"school.index":{uri:"skola",methods:["GET","HEAD"]},"school.register":{uri:"skola/registrace",methods:["GET","HEAD"]},"school.register.school":{uri:"skola/registrace/{school}",methods:["GET","HEAD"],parameters:["school"]},"school.api.index":{uri:"skola/api/index",methods:["GET","HEAD"]},"school.api.unregistered.register":{uri:"skola/api/unregistered/{school}/register",methods:["POST"],parameters:["school"],bindings:{school:"id"}},"school.api.registered.register":{uri:"skola/api/registered/{school}/register",methods:["POST"],parameters:["school"],bindings:{school:"id"}},"school.employee.api.manager":{uri:"skola/employee/api/manager",methods:["GET","HEAD"]},"school.employee.api.leave":{uri:"skola/employee/api/leave",methods:["POST"]},"school.employee.api.download.index":{uri:"skola/employee/api/download/index",methods:["GET","HEAD"]},"school.manager.home":{uri:"skola/sprava",methods:["GET","HEAD"]},"school.manager.colleagues":{uri:"skola/sprava/kolegove",methods:["GET","HEAD"]},"school.manager.finance":{uri:"skola/sprava/finance",methods:["GET","HEAD"]},"school.manager.finance.order":{uri:"skola/sprava/finance/doklady",methods:["GET","HEAD"]},"school.manager.finance.order.archive":{uri:"skola/sprava/finance/doklady/archiv",methods:["GET","HEAD"]},"school.manager.finance.orders_summary":{uri:"skola/sprava/finance/mesicni-prehled-nakupu",methods:["GET","HEAD"]},"school.manager.downloads":{uri:"skola/sprava/materialy",methods:["GET","HEAD"]},"school.manager.api.show":{uri:"skola/sprava/api/show",methods:["GET","HEAD"]},"school.manager.api.accounting.email.update":{uri:"skola/sprava/api/accounting-email/update",methods:["PATCH"]},"school.manager.api.employee.index":{uri:"skola/sprava/api/employee/index",methods:["GET","HEAD"]},"school.manager.api.employee.confirm":{uri:"skola/sprava/api/employee/{employee}/confirm",methods:["PATCH"],parameters:["employee"],bindings:{employee:"id"}},"school.manager.api.employee.decline":{uri:"skola/sprava/api/employee/{employee}/decline",methods:["PATCH"],parameters:["employee"],bindings:{employee:"id"}},"school.manager.api.employee.credit.update":{uri:"skola/sprava/api/employee/{employee}/credit/update",methods:["PATCH"],parameters:["employee"],bindings:{employee:"id"}},"school.manager.api.employee.delete":{uri:"skola/sprava/api/employee/{employee}/delete",methods:["DELETE"],parameters:["employee"],bindings:{employee:"id"}},"school.manager.api.employee.mail.confirm":{uri:"skola/sprava/api/employee/{employee}/mail/confirm",methods:["GET","HEAD"],parameters:["employee"],bindings:{employee:"id"}},"school.manager.api.employee.mail.decline":{uri:"skola/sprava/api/employee/{employee}/mail/decline",methods:["GET","HEAD"],parameters:["employee"],bindings:{employee:"id"}},"school.manager.api.invoice.index":{uri:"skola/sprava/api/invoice/index",methods:["GET","HEAD"]},"school.manager.api.invoice.first_year":{uri:"skola/sprava/api/invoice/first-year",methods:["GET","HEAD"]},"school.manager.api.invoice.archive.index":{uri:"skola/sprava/api/invoice/archive/index",methods:["GET","HEAD"]},"school.manager.api.credit_order.place":{uri:"skola/sprava/api/credit-order/create",methods:["POST"]},"school.manager.api.credit_order.delete":{uri:"skola/sprava/api/credit-order/{order}/delete",methods:["DELETE"],parameters:["order"],bindings:{order:"id"}},"school.manager.api.credit_order.discount.validate":{uri:"skola/sprava/api/credit-order/discount/validate",methods:["POST"]},"school.manager.api.order.delete":{uri:"skola/sprava/api/order/{order}/delete",methods:["DELETE"],parameters:["order"],bindings:{order:"id"}},"school.manager.api.order.first_year":{uri:"skola/sprava/api/order/first-year",methods:["GET","HEAD"]},"school.manager.api.order.summary.index":{uri:"skola/sprava/api/order/summary/index",methods:["GET","HEAD"]},"review.index":{uri:"reference",methods:["GET","HEAD"]},"author.author":{uri:"autori/autori",methods:["GET","HEAD"]},"author.organization":{uri:"autori/organizace",methods:["GET","HEAD"]},downloads:{uri:"zakoupene-materialy",methods:["GET","HEAD"]},"downloads.user":{uri:"zakoupene-materialy/osobni",methods:["GET","HEAD"]},"downloads.school":{uri:"zakoupene-materialy/skolni",methods:["GET","HEAD"]},"school.invite":{uri:"inv/{code}",methods:["GET","HEAD"],parameters:["code"]},laskavec:{uri:"laskavec",methods:["GET","HEAD"]},newsletter:{uri:"newsletter",methods:["GET","HEAD"]},"page.author_onboarding":{uri:"desatero",methods:["GET","HEAD"]},"author.show.public":{uri:"{author_slug}",methods:["GET","HEAD"],parameters:["author_slug"]},"author.show.public.product_group":{uri:"{author_slug}/{group_slug}",methods:["GET","HEAD"],parameters:["author_slug","group_slug"]}}};typeof window<"u"&&typeof window.Ziggy<"u"&&Object.assign(_L.routes,window.Ziggy.routes);function Pe(e,t,n){return Pse(e,t,n,_L)}const Yft=e=>De.get(Pe("api.user.organizations",e)),Ase={index:Yft},Wft={props:{section:{type:Object,default:null}},data(){return{organizations:{data:[]},loading:!1,primaryColor:window.primaryColor}},methods:{loadAuthors(){this.loading=!0,Ase.index({page:1,perPage:4,order:"random"}).then(e=>{this.organizations=e.data,this.loading=!1})}},created(){this.loadAuthors()}},Gft={class:"row"},Zft=["href"],Kft=["src","alt"],Jft={class:"fw-bold mb-0"},Xft={class:"mb-0"};function Qft(e,t,n,o,i,r){return h(),g("div",Gft,[(h(!0),g(pe,null,Me(i.organizations.data,s=>(h(),g("div",{class:"col-12 col-md-6 col-lg-3 px-2",key:s.id},[c("a",{href:e.ziggyRoute("user.show",{id:s.id}),class:"content-box rounded border border-primary-10 d-flex flex-column align-items-center link-dark shadow-low-hover text-gray-800 text-center mt-3"},[c("img",{src:s.image_detail,height:"64",alt:s.public_alias??s.first_name+" "+s.last_name,class:"mb-2"},null,8,Kft),c("p",Jft,m(s.public_alias??s.first_name+" "+s.last_name),1),c("p",Xft,m(s.products_count_lang),1)],8,Zft)]))),128))])}const emt=U(Wft,[["render",Qft]]),tmt={components:{SectionProductList:p6,SectionGhost:ise,SectionCategoryList:Odt,SectionSectionList:dut,SectionHeader:Eut,SectionOrganizationList:emt},props:{section:{type:Object,default:null},horizontalScrollMobile:{type:Boolean,default:!1}},data(){return{products:[],meta:{total:0},loading:!1}},computed:{...Oe({boughtAllProductsIds:"auth/getDownloads"}),classId(){if(this.section.type=="class_subject"){let e=this.section.categories.find(t=>t.type=="class");return e?e.id:null}else return null}},methods:{loadProducts(e=null){this.loading=!0,De.get(this.sectionApiLink(e)).then(t=>{this.products=t.data.data,this.meta=t.data.meta,this.loading=!1})},sectionApiLink(e){let t=new URL(this.section.api_link),n=new URLSearchParams(t.search);return this.section.type==="class_subject"&&(n.delete("section"),n.set("orderBy","approved_at"),n.set("category",`[${e||null},${this.classId?this.classId:null}]`)),t.search=n.toString(),t.toString()}},mounted(){window.eventBus.on("section-subject-selected",e=>{e.sectionId===this.section.id&&this.loadProducts(e.subjectId)})},created(){this.loadProducts()}};function nmt(e,t,n,o,i,r){const s=y("SectionHeader"),a=y("SectionGhost"),l=y("SectionCategoryList"),d=y("SectionSectionList"),u=y("SectionOrganizationList"),f=y("SectionProductList");return h(),g("div",null,[n.section.type!=="section"?(h(),W(s,{key:0,section:n.section,loading:i.loading,meta:i.meta},null,8,["section","loading","meta"])):D("",!0),i.loading?(h(),W(a,{key:1,"horizontal-scroll-mobile":n.horizontalScrollMobile,count:n.section.type=="section"?4:n.section.desktop_products_count,px:n.section.type=="section"?1:2,mt:n.section.type=="section"?0:3},null,8,["horizontal-scroll-mobile","count","px","mt"])):n.section.type=="category"&&n.section.categories.length>1?(h(),W(l,{key:2,section:n.section,"horizontal-scroll-mobile":n.horizontalScrollMobile},null,8,["section","horizontal-scroll-mobile"])):n.section.type=="section"&&n.section.children.length>1?(h(),W(d,{key:3,section:n.section,"horizontal-scroll-mobile":n.horizontalScrollMobile},null,8,["section","horizontal-scroll-mobile"])):n.section.type=="organization"?(h(),W(u,{key:4,section:n.section,"horizontal-scroll-mobile":n.horizontalScrollMobile},null,8,["section","horizontal-scroll-mobile"])):(h(),W(f,{key:5,products:i.products,section:n.section,"max-products":n.section.desktop_products_count,"max-products-mobile":n.section.mobile_products_count,"horizontal-scroll-mobile":n.horizontalScrollMobile},null,8,["products","section","max-products","max-products-mobile","horizontal-scroll-mobile"]))])}const omt=U(tmt,[["render",nmt]]);const imt={methods:{beforeEnter(e){requestAnimationFrame(()=>{e.style.height||(e.style.height="0px"),e.style.display=null})},enter(e){requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.style.height=`${e.scrollHeight}px`})})},afterEnter(e){e.style.height=null,this.$emit("opened")},beforeLeave(e){requestAnimationFrame(()=>{e.style.height||(e.style.height=`${e.offsetHeight}px`)})},leave(e){requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.style.height="0px"})})},afterLeave(e){e.style.height=null,this.$emit("closed")}}};function rmt(e,t,n,o,i,r){return h(),g("div",null,[b(nd,{"enter-active-class":"enter-active","leave-active-class":"leave-active",onBeforeEnter:r.beforeEnter,onEnter:r.enter,onAfterEnter:r.afterEnter,onBeforeLeave:r.beforeLeave,onLeave:r.leave,onAfterLeave:r.afterLeave},{default:F(()=>[Pt(e.$slots,"default",{},void 0,!0)]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])])}const qo=U(imt,[["render",rmt],["__scopeId","data-v-8793623a"]]);const smt={components:{TransitionCollapseHeight:qo,AppIcon:Ue,Loading:Rt},data(){return{primaryColor:window.primaryColor,loading:!1,hidden:!1,topClassSelected:{}}},computed:{...Oe({categories:"category/getCategories",classSubjects:"category/getCategoriesClassSubject",auth:"auth/auth",preferences:"user/getPreferences",preferencesLoading:"user/preferencesLoading"}),classes(){return this.categories.class.filter(e=>!e.hidden_in_navigation)},subjectsFiltered(){let e=[],t=this.classSubjects.find(o=>o.id==this.topClassSelected.id);if(!t)return e;let n=t.children.filter(o=>o.id!=61);if(this.topClassSelected.id==5)e=n.slice(0,6);else{let o=[33,34,35,37,38,40,44,47,339],i=n.map(r=>r.children).reduce((r,s)=>r.concat(s),[]);e=n.concat(i).filter(r=>o.includes(r.id))}return e},preferencesClass:{get(){return this.$store.getters["user/getPreferencesIdsClass"]},set(e){this.$store.commit("user/setPreferencesIdsClass",e)}},preferencesSubject:{get(){return this.$store.getters["user/getPreferencesIdsSubject"]},set(e){this.$store.commit("user/setPreferencesIdsSubject",e)}}},methods:{hide(){this.hidden=!0},save(){if(this.loading=!0,this.preferencesClass.includes(this.topClassSelected.id)&&this.preferencesClass.length>1){const e=this.preferencesClass.indexOf(this.topClassSelected.id);e>-1&&this.preferencesClass.splice(e,1)}this.$store.dispatch("user/updatePreferences",{userId:this.auth.id}).then(()=>{window.flash(this.$t("user.editor.preferences.saved"),"success"),this.loading=!1,this.hide()}).catch(e=>{window.flash(e.message,"error"),this.loading=!1})},toggleTopClass(e){this.topClassSelected.id==e.id?(this.topClassSelected={},this.preferencesClass=[]):(this.topClassSelected=e,this.preferencesClass=[e.id])},toggleClass(e){if(this.preferencesClass.includes(e)){const t=this.preferencesClass.indexOf(e);t>-1&&this.preferencesClass.splice(t,1)}else this.preferencesClass.push(e)},toggleSubject(e){if(this.preferencesSubject.includes(e)){const t=this.preferencesSubject.indexOf(e);t>-1&&this.preferencesSubject.splice(t,1)}else this.preferencesSubject.push(e)}},mounted(){this.$store.dispatch("category/load"),this.$store.dispatch("category/loadClassSubject")},watch:{preferencesClass(e){this.topClassSelected.children&&this.topClassSelected.children.map(n=>n.id).every(n=>e.includes(n))&&(this.preferencesClass=[this.topClassSelected.id])}}},amt={key:0,class:"rounded bg-white shadow text-start p-3 vl-parent mt-6"},lmt={class:"d-flex justify-content-between"},cmt={class:"mb-0"},dmt={class:"medium text-gray-700 mb-0"},umt=["onClick"],hmt={key:0},fmt={class:"mt-3 mb-3"},mmt={class:"text-gray-700 medium mb-1"},pmt=["onClick"],gmt={class:"mb-3"},vmt={class:"text-gray-700 medium mb-1"},_mt=["onClick"],ymt=["href"];function bmt(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("TransitionCollapseHeight"),d=an("tooltip");return h(),W(l,null,{default:F(()=>[e.auth.check&&!e.preferencesLoading&&!e.preferences.class.length&&!e.preferences.subject.length&&!i.hidden?(h(),g("div",amt,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=u=>i.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",lmt,[c("div",null,[c("p",cmt,[z(m(e.$t("home.preference.top.headline"))+" ",1),b(a,{icon:"filter",width:"24",height:"24",class:"ms-1"})]),c("p",dmt,m(e.$t("home.preference.top.description")),1)]),c("div",null,[xe(c("button",{type:"button",class:"btn-close",onClick:t[1]||(t[1]=(...u)=>r.hide&&r.hide(...u))},null,512),[[d,{content:e.$t("public.hide"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])]),t[5]||(t[5]=c("hr",{class:"mt-3 mb-2"},null,-1)),(h(!0),g(pe,null,Me(r.classes,(u,f)=>(h(),g("button",{key:f,class:J([{active:r.preferencesClass.includes(u.id)},"btn select-badge medium fw-medium text-gray-800 px-3 py-2 fw-light mt-2 me-2"]),onClick:p=>r.toggleTopClass(u)},m(u.name),11,umt))),128)),b(l,null,{default:F(()=>[r.preferencesClass.length?(h(),g("div",hmt,[c("div",fmt,[c("p",mmt,m(e.$t("home.preference.top.class")),1),(h(!0),g(pe,null,Me(i.topClassSelected.children,(u,f)=>(h(),g("button",{key:f,class:J([{active:r.preferencesClass.includes(u.id)},"btn select-badge medium fw-medium text-gray-800 px-3 py-2 fw-light mt-2 me-2"]),onClick:p=>r.toggleClass(u.id)},m(u.name),11,pmt))),128))]),c("div",gmt,[c("div",null,[c("p",vmt,m(e.$t("home.preference.top.subject")),1),(h(!0),g(pe,null,Me(r.subjectsFiltered,(u,f)=>(h(),g("button",{key:f,class:J([{active:r.preferencesSubject.includes(u.id)},"btn select-badge medium fw-medium text-gray-800 px-3 py-2 fw-light mt-2 me-2"]),onClick:p=>r.toggleSubject(u.id)},m(u.name),11,_mt))),128))]),c("a",{href:e.ziggyRoute("user.dashboard.settings.profile"),class:"btn btn-sm btn-tertiary medium mt-2"},m(e.$t("home.preference.top.link")),9,ymt)]),t[4]||(t[4]=c("hr",{class:"my-3"},null,-1)),c("button",{class:"btn btn-sm btn-link medium",onClick:t[2]||(t[2]=(...u)=>r.hide&&r.hide(...u))},m(e.$t("home.preference.top.cancel")),1),c("button",{class:"btn btn-sm btn-primary medium",onClick:t[3]||(t[3]=(...u)=>r.save&&r.save(...u))},m(e.$t("home.preference.top.save")),1)])):D("",!0)]),_:1})])):D("",!0)]),_:1})}const kmt=U(smt,[["render",bmt],["__scopeId","data-v-852df433"]]),wmt={components:{HomeSection:omt,PreferenceAppealTop:kmt},props:{sectionsImmediate:{type:Array,default:()=>[]}},computed:{...Oe({sections:"section/getSections",sectionLoading:"section/getLoading"})},methods:{analyticsCta(){this.$store.dispatch("homepageAnalytics/clickCta")},analyticsProduct(){this.$store.dispatch("homepageAnalytics/clickProduct")}},mounted(){this.sectionsImmediate.length>0?this.$store.commit("section/setSections",this.sectionsImmediate):this.$store.dispatch("section/load")}},$mt={class:"mh-50rem"},Cmt={class:"d-flex justify-content-center"},Smt={class:"d-flex flex-column gap-6 mt-6"};function Tmt(e,t,n,o,i,r){const s=y("HomeSection"),a=y("PreferenceAppealTop");return h(),g("div",$mt,[(h(!0),g(pe,null,Me(e.sections.filter(l=>l.type=="section"),l=>(h(),W(s,{key:l.id,section:l,onAnalyticsCta:r.analyticsCta,onAnalyticsProduct:r.analyticsProduct,"horizontal-scroll-mobile":""},null,8,["section","onAnalyticsCta","onAnalyticsProduct"]))),128)),c("div",Cmt,[b(a,{class:"w-100 w-lg-75 w-xl-50"})]),c("div",Smt,[(h(!0),g(pe,null,Me(e.sections.filter(l=>l.type!=="section"),l=>(h(),W(s,{key:l.id,section:l,onAnalyticsCta:r.analyticsCta,onAnalyticsProduct:r.analyticsProduct,"horizontal-scroll-mobile":""},null,8,["section","onAnalyticsCta","onAnalyticsProduct"]))),128))])])}const Emt=U(wmt,[["render",Tmt]]),Imt={components:{AppIcon:Ue},computed:{...Oe({auth:"auth/auth",preferences:"user/getPreferences",preferencesLoading:"user/preferencesLoading"})}},Pmt={key:0,class:"d-flex justify-content-between align-items-center border-start-5-primary rounded bg-primary-5 p-4"},Amt={class:"mb-2"},Dmt={class:"text-primary"},xmt=["innerHTML"],Omt=["href"];function Lmt(e,t,n,o,i,r){const s=y("AppIcon");return e.auth.check&&!e.preferencesLoading&&!e.preferences.class.length&&!e.preferences.subject.length?(h(),g("div",Pmt,[c("div",null,[c("h3",Amt,[b(s,{icon:"filter",width:"24",height:"24",class:"me-1"}),z(" "+m(e.$t("home.preference.bottom.headline.0"))+" ",1),c("span",Dmt,m(e.$t("home.preference.bottom.headline.1")),1)]),c("p",{class:"mb-0 text-gray-700",innerHTML:e.$t("home.preference.bottom.description")},null,8,xmt)]),c("a",{href:e.ziggyRoute("user.dashboard.settings.profile"),class:"btn btn-primary"},[z(m(e.$t("home.preference.bottom.link"))+" ",1),b(s,{icon:"arrow-right",width:"24",height:"24",class:"ms-2"})],8,Omt)])):D("",!0)}const Mmt=U(Imt,[["render",Lmt]]),Dse=""+new URL("pestrejsi_hodiny-7af4a4f1.svg",import.meta.url).href,Nmt={components:{AppIcon:Ue},data(){return{pestrejsiHodiny:Dse}}},Rmt={class:"bg-primary-20 rounded px-5 py-4 d-flex flex-column-reverse flex-md-row align-items-center justify-content-between mh-12dot5rem"},jmt={class:"d-flex flex-column justify-content-between h-100"},Fmt={class:"small fw-medium mb-1"},zmt={class:"fw-bold mb-0"},Umt={class:"fw-medium"},Bmt=["href"],Hmt=["src","alt"];function Vmt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Rmt,[c("div",jmt,[c("div",null,[c("p",Fmt,m(e.$t("author.promo.join")),1),c("p",zmt,m(e.$t("author.promo.become")),1),c("p",Umt,m(e.$t("author.promo.register")),1)]),c("div",null,[c("a",{class:"btn btn-primary btn-sm",href:e.ziggyRoute("user.be_author.index")},[z(m(e.$t("author.promo.want_to_join"))+" ",1),b(s,{icon:"chevron-right",class:"ms-icon"})],8,Bmt)])]),c("img",{src:i.pestrejsiHodiny,alt:e.$t("about.stats.imgs_alt_text"),height:"123.837"},null,8,Hmt)])}const qmt=U(Nmt,[["render",Vmt]]),Ymt={components:{AppIcon:Ue},data(){return{largeGift:sse}}},Wmt={class:"bg-white border border-primary-20 rounded px-5 py-4 position-relative mh-12dot5rem"},Gmt={class:"w-75 h-100 d-flex flex-column justify-content-between"},Zmt={class:"small fw-medium mb-1"},Kmt={class:"fw-bold mb-0"},Jmt={class:"fw-medium"},Xmt=["href"],Qmt=["src","alt"];function ept(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Wmt,[c("div",Gmt,[c("div",null,[c("p",Zmt,m(e.$t("voucher.vouchers")),1),c("p",Kmt,m(e.$t("voucher.gift.title")),1),c("p",Jmt,m(e.$t("voucher.gift.text")),1)]),c("div",null,[c("a",{class:"btn btn-primary btn-sm",href:e.ziggyRoute("voucher.index")},[z(m(e.$t("public.buy.extended"))+" ",1),b(s,{icon:"chevron-right",class:"ms-icon"})],8,Xmt)])]),c("img",{src:i.largeGift,alt:e.$t("voucher.promo.alt_image"),height:"180",class:"position-absolute bottom-0 end-0"},null,8,Qmt)])}const tpt=U(Ymt,[["render",ept]]),npt={components:{AuthorPromo:qmt,VoucherPromo:tpt}},opt={class:"row"},ipt={class:"col-12 col-lg-6 mb-3 mb-lg-0"},rpt={class:"col-12 col-lg-6"};function spt(e,t,n,o,i,r){const s=y("AuthorPromo"),a=y("VoucherPromo");return h(),g("div",opt,[c("div",ipt,[b(s,{class:"h-100"})]),c("div",rpt,[b(a,{class:"h-100"})])])}const apt=U(npt,[["render",spt]]),lpt={components:{UserIcon:lL},props:{parent:String,icon:{type:String,default:null},iconSize:String,name:String,role:String,isVerified:Boolean,showIcon:Boolean},data(){return{}}},cpt={class:"d-flex"},dpt={key:1,class:"flex-grow-1 w-100 align-self-center"},upt={class:"text-white-600"},hpt={key:2,class:"flex-grow-1 w-100 align-self-center"},fpt={class:"medium text-gray-600"},mpt={class:"small text-gray-600 text-uppercase"},ppt={class:"small text-gray-600"},gpt={class:"small text-gray-700 m-0"};function vpt(e,t,n,o,i,r){const s=y("UserIcon");return h(),g("div",cpt,[n.showIcon&&n.icon?(h(),W(s,{key:0,image:n.icon,"alt-text":n.name,"is-verified":n.isVerified,class:"me-2",height:n.iconSize,width:n.iconSize},null,8,["image","alt-text","is-verified","height","width"])):D("",!0),n.iconSize=="36px"?(h(),g("div",dpt,[c("span",upt,m(n.name),1)])):D("",!0),n.iconSize=="32px"?(h(),g("div",hpt,[c("span",fpt,m(n.name),1)])):n.iconSize=="30px"?(h(),g("div",{key:3,class:J(["flex-grow-1 w-100 align-self-center",{"ms-1":n.showIcon}])},[c("span",mpt,m(n.name),1)],2)):n.iconSize=="24px"?(h(),g("div",{key:4,class:J(["flex-grow-1 w-100 align-self-center",{"ms-1":n.showIcon}])},[c("span",ppt,m(n.name),1)],2)):(h(),g("div",{key:5,class:J(["flex-grow-1",{"ms-1":n.showIcon}])},[c("p",gpt,m(n.name+", "+n.role),1)],2))])}const yL=U(lpt,[["render",vpt]]),sh={validation:{promo_product:{title:{min_length:3,max_length:80},description:{min_length:3,max_length:240}},slug:{max_length:30,valid:e=>{const t=new RegExp(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);return e?t.test(e):!0}}},discount:{allowed_amounts:[5,10,15,20]},getAuthorPublicUrl(e){if(e.slug)return Pe("author.show.public",e.slug);if(e.id)return Pe("user.show",e.id)}};const _pt={components:{AppIcon:Ue,UserBlock:yL,Pill:Ni},props:{blog:{type:Object},size:{type:String,default:"default"},showReadButton:{type:Boolean,default:!1},twoLineDescription:{type:Boolean,default:!1}},computed:{imageSize(){return this.size==="small"?"col-12 col-md-3":this.size==="large"?"col-12 col-md-4":"col-12 col-md-3"},titleSize(){return this.size==="small"?"medium":this.size==="large"?"h4":"large"},titleMarginBottom(){return this.size==="small"||this.size==="large"?null:"mb-1"},authorName(){return this.blog.author?this.blog.author.name:"No author"},authorLink(){return this.blog&&this.blog.author?sh.getAuthorPublicUrl(this.blog.author):null}},methods:{isNew(e){return mt(e.published_at_iso).isSameOrAfter(mt().add(-1,"months"))}},data(){return{hover:!1,descriptionHidden:!0}}},ypt=["href"],bpt=["src"],kpt={class:"small text-gray-700"},wpt=["href"],$pt={key:0,class:"text-gray-700 medium mb-1"},Cpt={key:0,class:"text-gray-700 medium mb-1 full-description"},Spt={key:1,class:"text-gray-700 medium mb-1 hidden-description"},Tpt=["href"],Ept=["href"],Ipt={class:"small text-gray-700"};function Ppt(e,t,n,o,i,r){var u,f;const s=y("Pill"),a=y("UserBlock"),l=y("AppIcon"),d=an("tooltip");return h(),g("div",{class:J(["row",{"border rounded shadow-hover pb-3 pt-3 pt-lg-0 pb-lg-0":n.size==="large","align-items-center":!n.twoLineDescription}])},[c("a",{class:J(r.imageSize),href:e.ziggyRoute("blog.show",n.blog.slug),onMouseover:t[0]||(t[0]=p=>i.hover=!0),onMouseleave:t[1]||(t[1]=p=>i.hover=!1),onClick:t[2]||(t[2]=p=>e.$emit("analytics"))},[c("img",{class:"border-radius-5px border img-fluid blog-img",src:n.blog.thumbnail},null,8,bpt)],42,ypt),c("div",{class:J(["d-flex flex-column justify-content-between col-12",[n.size==="large"?"col-md-8":"col-md-9"]])},[c("div",null,[c("div",{class:J([r.titleMarginBottom,{"d-none":n.size==="large"}])},[c("span",kpt,m(n.blog.published_at)+" "+m(n.blog.read_length?" | "+e.$tc("home.blog.minutes",n.blog.read_length):""),1),r.isNew(n.blog)?(h(),W(s,{key:0,color:"success",class:"small ms-1"},{default:F(()=>[z(m(e.$t("home.blog.new")),1)]),_:1})):D("",!0)],2),c("a",{class:J([[r.titleSize,{"text-decoration-underline":i.hover}],"fw-bold link-dark text-gray-800 mb-1"]),href:e.ziggyRoute("blog.show",n.blog.slug),onMouseover:t[3]||(t[3]=p=>i.hover=!0),onMouseleave:t[4]||(t[4]=p=>i.hover=!1),onClick:t[5]||(t[5]=p=>e.$emit("analytics"))},m(n.blog.title),43,wpt),n.size!=="small"?(h(),g(pe,{key:0},[n.twoLineDescription?(h(),g("div",{key:1,onClick:t[6]||(t[6]=p=>i.descriptionHidden=!i.descriptionHidden),"aria-label":"Toggle description",class:"cursor-pointer"},[i.descriptionHidden?xe((h(),g("p",Spt,[z(m(n.blog.excerpt),1)])),[[d,{content:e.$t("blog.show_more_short"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):(h(),g("p",Cpt,m(n.blog.excerpt),1))])):(h(),g("p",$pt,m(n.blog.excerpt),1))],64)):D("",!0)]),c("div",{class:J(["d-flex flex-wrap gap-3 justify-content-between align-items-center",{"border-top pt-2":n.size==="large"}])},[r.authorLink?(h(),g("a",{key:0,href:r.authorLink,class:"text-decoration-underline-hover"},[n.size!=="small"?(h(),W(a,{key:0,icon:(u=n.blog.author)==null?void 0:u.image_thumbnail,name:r.authorName,"icon-size":"24px",class:"mb-1","show-icon":!0},null,8,["icon","name"])):D("",!0)],8,Tpt)):(h(),g(pe,{key:1},[n.size!=="small"?(h(),W(a,{key:0,icon:(f=n.blog.author)==null?void 0:f.image_thumbnail,name:r.authorName,"icon-size":"24px",class:"mb-1","show-icon":!0},null,8,["icon","name"])):D("",!0)],64)),n.showReadButton?(h(),g("a",{key:2,href:e.ziggyRoute("blog.show",n.blog.slug),target:"_blank",class:"btn btn-primary btn-sm"},[b(l,{icon:"page",class:"me-1",height:"20",width:"20"}),z(" "+m(e.$t("blog.read_blog")),1)],8,Ept)):D("",!0),c("div",{class:J([r.titleMarginBottom,{"d-none":n.size!=="large"}])},[c("span",Ipt,m(n.blog.published_at),1),r.isNew(n.blog)?(h(),W(s,{key:0,color:"success",class:"small ms-1"},{content:F(()=>[z(m(e.$t("home.blog.new")),1)]),_:1})):D("",!0)],2)],2)],2)],2)}const Jy=U(_pt,[["render",Ppt],["__scopeId","data-v-b9af86bc"]]),Apt=(e,t)=>De.get(Pe("api.blog.index",{page:e,...t})),Dpt=()=>De.get(Pe("api.blog.homepage.index")),xpt=()=>De.get(Pe("api.blog.mostRead")),Opt=()=>De.get(Pe("api.blog.themes")),W0={index:Apt,homePageIndex:Dpt,mostRead:xpt,themes:Opt},bL=""+new URL("jakub-81a78d91.jpg",import.meta.url).href,Lpt={components:{UserBlock:yL,Pill:Ni},props:{blog:{type:Object,default:()=>({title:"Dummy title",summary:"Dummy summary",published_at:"2022-06-07",slug:"",featured_images:[{path:"https://i0.wp.com/reviveyouthandfamily.org/wp-content/uploads/2016/11/house-placeholder.jpg?ssl=1"}],user_id:1,custom_author:"Dummy author"})},size:{type:String,default:"default"}},computed:{imageSize(){return this.size=="small"?"col-3":this.size=="large"?"col-4":"col-3"},titleSize(){return this.size=="small"?"medium":this.size=="large"?"h4":"large"},titleMarginBottom(){return this.size=="small"||this.size=="large"?null:"mb-1"}},methods:{isNew(e){return mt(e.published_at).isSameOrAfter(mt().add(-1,"months"))}},data(){return{moment:mt,custom_author_image:bL,read_length:8,hover:!1}}},Mpt=["href"],Npt=["src"],Rpt={class:"small text-gray-700"},jpt=["href"],Fpt={key:0,class:"text-gray-700 medium mb-1"},zpt={class:"small text-gray-700"};function Upt(e,t,n,o,i,r){const s=y("Pill"),a=y("UserBlock");return h(),g("div",{class:J(["row align-items-center",{"border rounded shadow-hover pb-3 pt-3 pt-lg-0 pb-lg-0":n.size=="large"}])},[c("a",{class:J(r.imageSize),href:e.ziggyRoute("old-blog.show",n.blog.slug),onMouseover:t[0]||(t[0]=l=>i.hover=!0),onMouseleave:t[1]||(t[1]=l=>i.hover=!1),onClick:t[2]||(t[2]=l=>e.$emit("analytics"))},[c("img",{class:"border-radius-5px border img-fluid",src:n.blog.featured_images[0].path,alt:"blog image"},null,8,Npt)],42,Mpt),c("div",{class:J(["d-flex flex-column justify-content-between",[n.size==="large"?"col-8":"col-9"]])},[c("div",null,[c("div",{class:J([r.titleMarginBottom,{"d-none":n.size=="large"}])},[c("span",Rpt,m(i.moment(String(n.blog.published_at)).format("DD. MM. YYYY")),1),r.isNew(n.blog)?(h(),W(s,{key:0,color:"success",class:"small ms-1"},{default:F(()=>[z(m(e.$t("home.blog.new")),1)]),_:1})):D("",!0)],2),c("a",{class:J([[r.titleSize,{"text-decoration-underline":i.hover}],"fw-bold link-dark text-gray-800 mb-1"]),href:e.ziggyRoute("old-blog.show",n.blog.slug),onMouseover:t[3]||(t[3]=l=>i.hover=!0),onMouseleave:t[4]||(t[4]=l=>i.hover=!1),onClick:t[5]||(t[5]=l=>e.$emit("analytics"))},m(n.blog.title),43,jpt),n.size!="small"?(h(),g("p",Fpt,m(n.blog.summary),1)):D("",!0)]),c("div",{class:J(["d-flex justify-content-between align-items-center",{"border-top pt-2":n.size=="large"}])},[n.size!="small"?(h(),W(a,{key:0,icon:i.custom_author_image,name:n.blog.custom_author,"icon-size":"24px",class:"mb-1","show-icon":!1},null,8,["icon","name"])):D("",!0),c("div",{class:J([r.titleMarginBottom,{"d-none":n.size!="large"}])},[c("span",zpt,m(i.moment(String(n.blog.published_at)).format("DD. MM. YYYY")),1),r.isNew(n.blog)?(h(),W(s,{key:0,color:"success",class:"small ms-1"},{default:F(()=>[z(m(e.$t("home.blog.new")),1)]),_:1})):D("",!0)],2)],2)],2)],2)}const kL=U(Lpt,[["render",Upt]]),Bpt={components:{BlogOldItem:kL,AppIcon:Ue,BlogItem:Jy,Loading:Rt},data(){return{primaryColor:window.primaryColor,blogAPI:W0,list:[],loading:!1,useOldBlogApi:!1}},methods:{load(){this.loading=!0,W0.homePageIndex().then(e=>{this.list=e.data.data,e.data.use_old_blog_api&&(this.useOldBlogApi=!0),this.loading=!1}).catch(()=>{this.loading=!1})},clickBlog(){this.$store.dispatch("homepageAnalytics/clickBlog")}},mounted(){this.load()}},Hpt={class:"vl-parent mh-4rem"},Vpt={key:0},qpt={class:"mb-0"},Ypt={class:"row mb-6"},Wpt={class:"d-flex justify-content-center pb-3"},Gpt=["href"];function Zpt(e,t,n,o,i,r){const s=y("Loading"),a=y("BlogOldItem"),l=y("BlogItem"),d=y("AppIcon");return h(),g("div",Hpt,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=u=>i.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),i.loading?D("",!0):(h(),g("div",Vpt,[c("h2",qpt,m(e.$t("home.blog.headline")),1),c("div",Ypt,[(h(!0),g(pe,null,Me(i.list.slice(0,4),(u,f)=>(h(),g("div",{key:f,class:"col-12 col-lg-6"},[i.useOldBlogApi?(h(),W(a,{key:0,blog:u,class:"mt-5",onAnalytics:r.clickBlog},null,8,["blog","onAnalytics"])):(h(),W(l,{key:1,blog:u,class:"mt-5",onAnalytics:r.clickBlog},null,8,["blog","onAnalytics"]))]))),128))]),c("div",Wpt,[c("a",{href:e.ziggyRoute("blog.index"),class:"btn btn-secondary btn-center",onClick:t[1]||(t[1]=(...u)=>r.clickBlog&&r.clickBlog(...u))},[z(m(e.$t("home.blog.show_more"))+" ",1),b(d,{icon:"arrow-right",class:"ms-icon"})],8,Gpt)])]))])}const Kpt=U(Bpt,[["render",Zpt]]),Jpt=""+new URL("komunita_1-e805ef74.svg",import.meta.url).href,Xpt=""+new URL("nase_mise-bffa9940.svg",import.meta.url).href,Qpt=""+new URL("zapojeni_skol-3f12808b.svg",import.meta.url).href,e1t={data(){return{komunita_1:Jpt,nase_mise:Xpt,zapojeni_skol:Qpt}}},t1t={class:"row"},n1t={class:"col-12 z-index-1"},o1t={class:"content-box shadow text-center p-6 mb-neg-7dot8125rem mt-xl-34rem mt-lg-31rem mt-md-29rem mt-4 z-index-1"},i1t={class:"row mb-5"},r1t={class:"row"},s1t={class:"col-12 col-md-4"},a1t=["src"],l1t={class:"mt-4 mb-3"},c1t={class:"row justify-content-center"},d1t={class:"col-12 col-sm-8 col-md-12"},u1t={class:"text-gray-600 m-0"},h1t={class:"col-12 col-md-4 mt-6 mt-md-0"},f1t=["src"],m1t={class:"mt-4 mb-3"},p1t={class:"row justify-content-center"},g1t={class:"col-12 col-sm-8 col-md-12"},v1t={class:"p-0 m-0 text-gray-600"},_1t={class:"col-12 col-md-4 mt-6 mt-md-0"},y1t=["src"],b1t={class:"mt-4 mb-3"},k1t={class:"row justify-content-center"},w1t={class:"col-12 col-sm-8 col-md-12"},$1t={class:"p-0 m-0 text-gray-600"};function C1t(e,t,n,o,i,r){return h(),g("div",t1t,[c("div",n1t,[c("div",o1t,[c("div",i1t,[c("h2",null,m(e.$t("home.info.headline")),1)]),c("div",r1t,[c("div",s1t,[c("img",{src:i.komunita_1,height:"70"},null,8,a1t),c("h4",l1t,m(e.$t("home.info.blocks.0.headline")),1),c("div",c1t,[c("div",d1t,[c("p",u1t,m(e.$t("home.info.blocks.0.description")),1)])])]),c("div",h1t,[c("img",{src:i.nase_mise,height:"70"},null,8,f1t),c("h4",m1t,m(e.$t("home.info.blocks.1.headline")),1),c("div",p1t,[c("div",g1t,[c("p",v1t,m(e.$t("home.info.blocks.1.description")),1)])])]),c("div",_1t,[c("img",{src:i.zapojeni_skol,height:"70"},null,8,y1t),c("h4",b1t,m(e.$t("home.info.blocks.2.headline")),1),c("div",k1t,[c("div",w1t,[c("p",$1t,m(e.$t("home.info.blocks.2.description")),1)])])])])])])])}const S1t=U(e1t,[["render",C1t]]),T1t={components:{HomeHeader:nlt,HomeSectionList:Emt,UserVerifiedSuccess:Yat,PreferenceAppealBottom:Mmt,HomePromo:apt,HomeBlogList:Kpt,HomeInfo:S1t},props:{emailVerified:{type:Boolean,default:!1},sectionsImmediate:{type:Array,default:()=>[]}},computed:{...Oe({auth:"auth/auth"})}},E1t={class:"mt-6"},I1t={class:"d-flex flex-column gap-6"};function P1t(e,t,n,o,i,r){const s=y("UserVerifiedSuccess"),a=y("HomeHeader"),l=y("HomeSectionList"),d=y("PreferenceAppealBottom"),u=y("HomePromo"),f=y("HomeBlogList"),p=y("HomeInfo");return h(),g("div",E1t,[c("div",I1t,[n.emailVerified?(h(),W(s,{key:0})):D("",!0),b(a),b(l,{"sections-immediate":n.sectionsImmediate},null,8,["sections-immediate"]),b(d),b(u),b(f)]),b(p)])}const JV=U(T1t,[["render",P1t]]),A1t={components:{AppIcon:Ue},props:{id:{type:String,required:!0},value:{type:Boolean,required:!0},label:{type:String,required:!0},isInvalid:{type:Boolean,default:!1},invalidMessage:{type:String,default:""},disabled:{type:Boolean,default:!1},tooltip:{type:String,default:""}}},D1t={class:"form-group d-inline-flex flex-wrap align-items-center"},x1t=["for"],O1t=["id","checked","disabled"],L1t=["innerHTML"],M1t={key:1,class:"invalid-feedback d-block"};function N1t(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return h(),g("div",D1t,[c("label",{for:n.id,class:"cursor-pointer"},[c("input",{id:n.id,type:"checkbox",checked:n.value,disabled:n.disabled,onChange:t[0]||(t[0]=l=>e.$emit("update:value",l.target.checked)),class:J(["check-box-input cursor-pointer me-2",{"is-invalid":n.isInvalid}])},null,42,O1t),c("span",{innerHTML:n.label,class:J({"text-muted":n.disabled})},null,10,L1t)],8,x1t),n.tooltip?xe((h(),W(s,{key:0,icon:"info-circle",class:"cursor-pointer ms-1"},null,512)),[[a,{content:n.tooltip,delay:{show:200,hide:100},triggers:["hover","click"]},void 0,{right:!0}]]):D("",!0),n.isInvalid?(h(),g("div",M1t,m(n.invalidMessage),1)):D("",!0)])}const ba=U(A1t,[["render",N1t]]),R1t={components:{CheckboxInput:ba},props:{checked:{type:Boolean,default:!1},preferences:Object,filter:Object},computed:{checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}},filterModel:{get(){return this.filter},set(e){this.$emit("update:filter",e)}},filterIds(){return this.filterModel.category.map(e=>e.id)}},watch:{checkedModel(e){this.preferences&&(e?(this.preferences.class.forEach(t=>{this.filterIds.includes(t.id)||this.filterModel.category.push(t)}),this.preferences.subject.forEach(t=>{this.filterIds.includes(t.id)||this.filterModel.category.push(t)})):(this.preferences.class.forEach(t=>{const n=this.filterIds.indexOf(t.id);n>-1&&this.filterModel.category.splice(n,1)}),this.preferences.subject.forEach(t=>{const n=this.filterIds.indexOf(t.id);n>-1&&this.filterModel.category.splice(n,1)}))),this.$emit("updated",e)}}};function j1t(e,t,n,o,i,r){const s=y("CheckboxInput");return h(),W(s,{id:"preferences",value:r.checkedModel,"onUpdate:value":t[0]||(t[0]=a=>r.checkedModel=a),label:e.$t("filter.preferences.check"),class:"medium"},null,8,["value","label"])}const F1t=U(R1t,[["render",j1t]]),g6={collapseAllFilterAccordions(){window.$(".collapse.show.filter-accordion").collapse("hide")},hideAllOffcanvas(){window.$(".offcanvas-close").click()}},z1t=5,U1t={components:{AppIcon:Ue},props:{item:{type:Object,default(){return{}}},checked:Array,isTitle:{type:Boolean,default:!1},customText:{type:String,default:null},isFromNavbar:{type:Boolean,default:!1},isSubsubitem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data(){return{analytics:ai}},computed:{...Oe({categories:"category/getCategories"}),checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}},checkModelItem(){return this.checked?this.checkedModel.find(e=>e.id==this.itemModel.id):null},isItemChecked(){return!!this.checkModelItem},itemModel(){return{id:this.item.id,type:this.item.type,name:this.item.name,parent_id:this.item.parent_id,children:this.item.children,prefix:this.item.prefix,hidden_in_navigation:this.item.hidden_in_navigation}},name(){return this.customText?this.customText:this.item.name}},methods:{toggle(){g6.hideAllOffcanvas(),this.isItemChecked?this.uncheck():this.check(),this.$emit("updated")},check(){if(this.checked&&!this.isItemChecked){this.checkedModel.push(this.itemModel);const e=this.checkedModel.map(t=>t.id).indexOf(this.itemModel.parent_id);e>-1&&this.checkedModel.splice(e,1),this.itemModel.children&&this.itemModel.children.forEach(t=>{const n=this.checkedModel.map(o=>o.id).indexOf(t.id);n>-1&&this.checkedModel.splice(n,1)})}},uncheck(){if(this.isItemChecked){const e=this.checkedModel.indexOf(this.checkModelItem);e>-1&&this.checkedModel.splice(e,1)}},isKindegartenSubject(e){let t=this.categories.subject.find(n=>n&&n.id===406);return t.id==e.id||t.children.map(n=>n.id).includes(e.id)},customRoute(e){return this.isKindegartenSubject(e)?this.ziggyRoute("materialy",{category:JSON.stringify([z1t,e.id])}):this.ziggyRoute("materialy",{category:JSON.stringify([e.id])})}}},B1t={key:0},H1t={key:0,class:"my-0dot125 w-100"},V1t=["href"],q1t={class:"px-2 py-1 my-0dot125"},Y1t={key:1,class:"d-lg-none mt-2 mb-2"},W1t={key:0},G1t=["href"],Z1t={class:"p-2dot5 ms-5"};function K1t(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return n.isSubsubitem&&n.isFromNavbar?D("",!0):xe((h(),g("div",B1t,[r.itemModel.hidden_in_navigation?D("",!0):(h(),g("div",{key:0,class:J(["d-none d-lg-block",{"ms-3":n.isSubsubitem,"text-gray-400":n.disabled}])},[n.isFromNavbar?(h(),g("div",{key:1,onClick:t[1]||(t[1]=l=>i.analytics.navigationCategorySelect(n.item))},[c("a",{class:J(["text-gray-800 medium",{"text-gray-600 font-italic-important":n.isSubsubitem,"text-primary-hover":!n.disabled,"text-gray-400-important":n.disabled}]),href:n.disabled?null:r.customRoute(n.item)},[c("div",q1t,m(r.name),1)],10,V1t)])):(h(),g("div",H1t,[c("div",{class:J(["d-flex align-items-center justify-content-between medium border-radius-5px px-2 py-1",{"text-primary bg-primary-10":r.isItemChecked,"text-gray-600 font-italic-important":n.isSubsubitem,"text-primary-hover cursor-pointer":!n.disabled,"text-gray-400-important":n.disabled}]),onClick:t[0]||(t[0]=l=>n.disabled?null:r.toggle())},[z(m(r.name)+" ",1),r.isItemChecked?(h(),W(s,{key:0,icon:"close",width:16,height:16,class:"ms-icon cursor-pointer"})):D("",!0)],2)]))],2)),!r.itemModel.hidden_in_navigation&&!n.disabled?(h(),g("div",Y1t,[n.isFromNavbar?(h(),g("div",{key:1,onClick:t[3]||(t[3]=l=>i.analytics.navigationCategorySelect(n.item))},[c("a",{class:"text-gray-800 medium text-primary-hover",href:r.customRoute(n.item)},[c("div",Z1t,m(r.name),1)],8,G1t)])):(h(),g("div",W1t,[c("div",{class:J(["d-flex align-items-center justify-content-between medium border-radius-5px p-2dot5 ms-5 cursor-pointer text-primary-hover",{"text-primary bg-primary-10":r.isItemChecked}]),onClick:t[2]||(t[2]=(...l)=>r.toggle&&r.toggle(...l))},[z(m(r.name)+" ",1),r.isItemChecked?(h(),W(s,{key:0,icon:"close",width:16,height:16,class:"ms-icon cursor-pointer"})):D("",!0)],2)]))])):D("",!0)])),[[a,{content:n.disabled?e.$t("filter.category.product_missing"):null,delay:{show:1500,hide:100},triggers:["hover","click"]}]])}const yp=U(U1t,[["render",K1t]]),J1t={components:{AppIcon:Ue},props:{index:{type:[String,Number],default:"1"},parent:{type:String,default:"accordion"},scroll:{type:Boolean,default:!1},initOpened:{type:Boolean,default:!1},useOpenTitleBackground:{type:Boolean,default:!0},hoverTitleBackground:{type:Boolean,default:!1},titlePaddingX:{type:String,default:"0"},bodyPaddingX:{type:String,default:"2"},bodyPaddingY:{type:String,default:"3"},chevronSize:{type:Object,default(){return{height:24,width:24}}},titleToggle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},additionalClass:{type:String,default:null}},data(){return{isClosed:!0,headerHover:!1}},methods:{toggleClick(){this.titleToggle?this.$refs[this.parent+this.index+"header"].click():this.$refs[this.parent+this.index+"chevron"].click()},open(){this.isClosed&&!this.disabled&&this.toggleClick(),this.scroll&&this.$nextTick(()=>{this.$scrollTo(this.$refs[this.parent+this.index+"item"],{offset:-150})}),this.$emit("open",!0)},close(){this.disabled||(this.toggleClick(),this.$emit("open",this.isClosed))},toggle(){this.disabled||(this.isClosed?this.$emit("open",this.isOpen):(this.scroll&&this.$nextTick(()=>{this.$scrollTo(this.$refs[this.parent+this.index+"item"],{offset:-150})}),this.$emit("open",this.isOpen)),this.toggleClick())},mouseOverHeader(){this.headerHover=!0,this.$emit("header-hover",!0)},mouseLeaveHeader(){this.headerHover=!1,this.$emit("header-hover",!1)}},computed:{isOpen(){return!this.isClosed}},mounted(){this.$refs.body.addEventListener("hide.bs.collapse",()=>{this.isClosed=!0}),this.$refs.body.addEventListener("show.bs.collapse",()=>{this.isClosed=!1}),this.isClosed=!this.initOpened}},X1t=["id"],Q1t=["id"],egt=["id","data-bs-toggle","data-bs-target","aria-controls"],tgt=["id"],ngt=["data-bs-toggle","data-bs-target","aria-controls"],ogt=["id","aria-labelledby","data-bs-parent"],igt=["id"];function rgt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",{id:n.parent+n.index+"item",ref:n.parent+n.index+"item"},[c("div",{class:J(["d-flex align-items-center",{"bg-secondary":r.isOpen&&n.useOpenTitleBackground||n.hoverTitleBackground&&i.headerHover}]),onMouseover:t[2]||(t[2]=(...a)=>r.mouseOverHeader&&r.mouseOverHeader(...a)),onMouseleave:t[3]||(t[3]=(...a)=>r.mouseLeaveHeader&&r.mouseLeaveHeader(...a))},[c("div",{class:J(["flex-grow-1 header",{open:r.isOpen}]),ref:n.parent+n.index+"header",id:n.parent+n.index+"-heading"},[n.titleToggle?(h(),g("div",{key:0,class:J(["d-flex align-items-center justify-content-between cursor-pointer","px-"+n.titlePaddingX]),id:n.parent+n.index+"-title",onClick:t[0]||(t[0]=(...a)=>r.toggle&&r.toggle(...a)),"data-bs-toggle":n.disabled?"":"collapse","data-bs-target":"#"+n.parent+n.index+"-collapse","aria-expanded":"false","aria-controls":n.parent+n.index+"-collapse"},[Pt(e.$slots,"title"),c("div",{class:"px-2dot5 pe-0",ref:n.parent+n.index+"chevron"},[b(s,{icon:"chevron-down",height:n.chevronSize.height,width:n.chevronSize.width,class:"chevron"},null,8,["height","width"])],512)],10,egt)):(h(),g("div",{key:1,class:J(["d-flex align-items-center justify-content-between","px-"+n.titlePaddingX]),id:n.parent+n.index+"-title"},[Pt(e.$slots,"title"),c("div",{class:"px-2dot5 cursor-pointer pe-0",ref:n.parent+n.index+"chevron",onClick:t[1]||(t[1]=(...a)=>r.toggle&&r.toggle(...a)),"data-bs-toggle":n.disabled?"":"collapse","data-bs-target":"#"+n.parent+n.index+"-collapse","aria-expanded":"false","aria-controls":n.parent+n.index+"-collapse"},[b(s,{icon:"chevron-down",height:n.chevronSize.height,width:n.chevronSize.width,class:"chevron"},null,8,["height","width"])],8,ngt)],10,tgt))],10,Q1t)],34),c("div",{class:J(["collapse",[n.initOpened?"show":"",n.additionalClass?n.additionalClass:""]]),id:n.parent+n.index+"-collapse","aria-labelledby":n.parent+n.index+"-heading","data-bs-parent":"#"+n.parent,ref:"body"},[c("div",{id:n.parent+n.index+"-body",class:J(["px-"+n.bodyPaddingX,"py-"+n.bodyPaddingY])},[Pt(e.$slots,"body")],10,igt)],10,ogt)],8,X1t)}const Ml=U(J1t,[["render",rgt]]),sgt={components:{AccordionItem:Ml,CategorySelectDropdownItem:yp},props:{checked:{type:Array,default:()=>[]},items:{type:Array,default:()=>[]},itemsAuthor:{type:Array,default:()=>[]},isFromNavbar:{type:Boolean,default:!1},isFromAuthor:{type:Boolean,default:!1},idSuffix:{type:String,default:"0"}},computed:{checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}},accordionParentId(){return"accordion-categories-class-"+(this.isFromNavbar?"navigation":"filter")+this.$t("public.dash")+this.idSuffix},itemsFiltered(){return this.items.filter(e=>!e.hidden_in_navigation&&(this.itemsAuthor.includes(e.id)||!this.isFromAuthor))}},methods:{checkedChildren(e){return this.isFromNavbar?[]:this.checked.filter(t=>t.parent_id===e||e===t.id)}}},agt={class:"row w-44rem w-md-20rem d-none d-lg-flex"},lgt={class:"d-lg-none"},cgt=["id"],dgt={class:"pt-3 pb-3 w-100 d-flex justify-content-between"},ugt={key:0},hgt={class:"small fw-bold text-uppercase mt-3 mb-3 text-gray-500 ms-5 ps-2dot5"},fgt={key:1};function mgt(e,t,n,o,i,r){const s=y("CategorySelectDropdownItem"),a=y("AccordionItem");return h(),g("div",null,[c("div",agt,[(h(!0),g(pe,null,Me(n.items.filter(l=>!l.hidden_in_navigation),(l,d)=>(h(),g("div",{key:d,class:"col"},[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase",item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[0]||(t[0]=u=>r.checkedModel=u),"is-title":"",onUpdated:t[1]||(t[1]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(l.children,(u,f)=>(h(),g("div",{key:f},[b(s,{"is-from-navbar":n.isFromNavbar,item:u,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(u.id),checked:r.checkedModel,"onUpdate:checked":t[2]||(t[2]=p=>r.checkedModel=p),onUpdated:t[3]||(t[3]=p=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"])]))),128))]))),128))]),c("div",lgt,[c("div",{id:r.accordionParentId},[(h(!0),g(pe,null,Me(r.itemsFiltered,(l,d)=>(h(),W(a,{key:d,index:String(d),parent:r.accordionParentId,"title-padding-x":"3","additional-class":"filter-accordion",class:J({"border-bottom-2":d!==r.itemsFiltered.length-1}),"body-padding-x":"0","body-padding-y":"0"},{title:F(()=>[c("div",dgt,[z(m(l.name)+" ",1),xe(c("div",{class:"circle-number-filter me-0 medium fw-bold"},m(r.checkedChildren(l.id).length),513),[[Vo,!n.isFromNavbar&&r.checkedChildren(l.id).length>0]])])]),body:F(()=>[l.children?(h(),g("div",ugt,[b(s,{"is-from-navbar":n.isFromNavbar,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[4]||(t[4]=u=>r.checkedModel=u),"is-title":"",class:"border-bottom-2 border-bottom-last-none","custom-text":e.$tm("filter.whole")[n.isFromNavbar?"navbar":"filter"],onUpdated:t[5]||(t[5]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked","custom-text"]),c("div",hgt,m(e.$tm("filter.specify")[n.isFromNavbar?"navbar":"filter"]),1),(h(!0),g(pe,null,Me(l.children,(u,f)=>(h(),g("div",{key:f},[b(s,{"is-from-navbar":n.isFromNavbar,item:u,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(u.id),checked:r.checkedModel,"onUpdate:checked":t[6]||(t[6]=p=>r.checkedModel=p),onUpdated:t[7]||(t[7]=p=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"])]))),128))])):(h(),g("div",fgt,[b(s,{"is-from-navbar":n.isFromNavbar,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[8]||(t[8]=u=>r.checkedModel=u),class:"border-bottom-2 border-bottom-last-none",onUpdated:t[9]||(t[9]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"])]))]),_:2},1032,["index","parent","class"]))),128))],8,cgt)])])}const v6=U(sgt,[["render",mgt]]),eg={keys:{1:"none",5:"kindergarten",20:"first_stage_elementary_school",21:"second_stage_elementary_school",22:"high_school"},ids:{subject:{main_subjects:367,foreign_languages:369,educations:368,additional:108,cross_curricula_topics:386},theme:{seasons:211,environment:299,nature:361,human_and_health:362,roles:363,others:364,school_year:366,animals:393,entertainment_and_hobbies:394,food:395,daily_life:396,culture:397,plants:405},kind:{classroom_decorations:57,powerpoint_activities:210,card_games:306,pencil_activities:330,games:348,diaries:351,various:354,cooperation:408,methods_and_teaching_strategies:412},format:{teaching_products_and_tests:399,teaching_cards_and_interactive_products:400,fun_and_musical_activities:401,creative_activities:402,multimedia_products:403,literary_creation:404},holiday:{religious_holidays:380,historical_and_national_celebrations:381,environment:382,family_celebrations_and_traditions:383,international_and_cultural_celebrations:384}}},pgt={components:{AccordionItem:Ml,CategorySelectDropdownItem:yp},props:{checked:Array,items:Array,itemsAuthor:Array,isFromNavbar:{type:Boolean,default:!1},isFromAuthor:{type:Boolean,default:!1},idSuffix:{type:String,default:"0"}},data(){return{subjectIds:eg.ids.subject,defaultIds:Object.values(eg.ids.subject)}},computed:{checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}},accordionParentId(){return"accordion-categories-subject-"+(this.isFromNavbar?"navigation":"filter")+this.$t("public.dash")+this.idSuffix},getMainSubjects(){return this.isFromNavbar?this.getItemChildren(this.subjectIds.main_subjects):this.getItemChildren(this.subjectIds.main_subjects).slice(0,2)},itemsFiltered(){return this.defaultIds.map(e=>this.items.find(t=>t.id==e&&t.hidden_in_navigation===!1&&(this.itemsAuthor.includes(t.id)||!this.isFromAuthor))).filter(e=>e)}},methods:{getItem(e){return this.items.length?this.items.find(t=>t.id==e):{}},getItemChildren(e){let t=window._.cloneDeep(this.getItem(e));return t&&t.children&&t.children.length?t.children:[]},checkedChildren(e){return this.isFromNavbar?[]:this.checked.filter(t=>t.parent_id===e||e===t.id)}},watch:{}},ggt={class:"row d-none d-lg-flex"},vgt={class:"col"},_gt={key:0,class:"col mt-1dot875rem"},ygt={class:"col"},bgt={class:"col"},kgt={class:"col"},wgt={class:"col"},$gt={class:"d-lg-none"},Cgt=["id"],Sgt={class:"pt-3 pb-3 w-100 d-flex justify-content-between"},Tgt={key:0},Egt={class:"small fw-bold text-uppercase mt-3 mb-3 text-gray-500 ms-5 ps-2dot5"},Igt={key:1};function Pgt(e,t,n,o,i,r){const s=y("CategorySelectDropdownItem"),a=y("AccordionItem");return h(),g("div",null,[c("div",ggt,[c("div",vgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.subjectIds.main_subjects),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.subjectIds.main_subjects),checked:r.checkedModel,"onUpdate:checked":t[0]||(t[0]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[1]||(t[1]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getMainSubjects,(l,d)=>(h(),g("div",{key:"main"+d},[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,item:l,checked:r.checkedModel,"onUpdate:checked":t[2]||(t[2]=u=>r.checkedModel=u),onUpdated:t[3]||(t[3]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(l.children,(u,f)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(u.id),key:"main-sub"+f,"is-from-navbar":n.isFromNavbar,item:u,checked:r.checkedModel,"onUpdate:checked":t[4]||(t[4]=p=>r.checkedModel=p),onUpdated:t[5]||(t[5]=p=>e.$emit("updated")),"is-subsubitem":""},null,8,["disabled","is-from-navbar","item","checked"]))),128))]))),128))]),n.isFromNavbar?D("",!0):(h(),g("div",_gt,[(h(!0),g(pe,null,Me(r.getItemChildren(i.subjectIds.main_subjects).slice(2),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),key:"main"+d,"is-from-navbar":n.isFromNavbar,item:l,checked:r.checkedModel,"onUpdate:checked":t[6]||(t[6]=u=>r.checkedModel=u),onUpdated:t[7]||(t[7]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))])),c("div",ygt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.subjectIds.foreign_languages),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.subjectIds.foreign_languages),checked:r.checkedModel,"onUpdate:checked":t[8]||(t[8]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[9]||(t[9]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.subjectIds.foreign_languages),(l,d)=>(h(),g("div",{key:"langs"+d},[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,item:l,checked:r.checkedModel,"onUpdate:checked":t[10]||(t[10]=u=>r.checkedModel=u),onUpdated:t[11]||(t[11]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(l.children,(u,f)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(u.id),key:"main-sub"+f,"is-from-navbar":n.isFromNavbar,item:u,checked:r.checkedModel,"onUpdate:checked":t[12]||(t[12]=p=>r.checkedModel=p),onUpdated:t[13]||(t[13]=p=>e.$emit("updated")),"is-subsubitem":""},null,8,["disabled","is-from-navbar","item","checked"]))),128))]))),128))]),c("div",bgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.subjectIds.educations),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.subjectIds.educations),checked:r.checkedModel,"onUpdate:checked":t[14]||(t[14]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[15]||(t[15]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.subjectIds.educations),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:"educations"+d,item:l,checked:r.checkedModel,"onUpdate:checked":t[16]||(t[16]=u=>r.checkedModel=u),onUpdated:t[17]||(t[17]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))]),c("div",kgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.subjectIds.additional),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.subjectIds.additional),checked:r.checkedModel,"onUpdate:checked":t[18]||(t[18]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[19]||(t[19]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.subjectIds.additional),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:"additional"+d,item:l,checked:r.checkedModel,"onUpdate:checked":t[20]||(t[20]=u=>r.checkedModel=u),onUpdated:t[21]||(t[21]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))]),c("div",wgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.subjectIds.cross_curricula_topics),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.subjectIds.cross_curricula_topics),checked:r.checkedModel,"onUpdate:checked":t[22]||(t[22]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[23]||(t[23]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.subjectIds.cross_curricula_topics),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:"cross-topics"+d,item:l,checked:r.checkedModel,"onUpdate:checked":t[24]||(t[24]=u=>r.checkedModel=u),onUpdated:t[25]||(t[25]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))])]),c("div",$gt,[c("div",{id:r.accordionParentId},[(h(!0),g(pe,null,Me(r.itemsFiltered,(l,d)=>(h(),W(a,{key:l.id,index:String(d),"title-padding-x":"3","additional-class":"filter-accordion",parent:r.accordionParentId,class:J({"border-bottom-2":d!==r.itemsFiltered.length-1}),"body-padding-x":"0","body-padding-y":"0"},{title:F(()=>[c("div",Sgt,[z(m(l.name)+" ",1),xe(c("div",{class:"circle-number-filter me-0 medium fw-bold"},m(r.checkedChildren(l.id).length),513),[[Vo,!n.isFromNavbar&&r.checkedChildren(l.id).length>0]])])]),body:F(()=>[l.children?(h(),g("div",Tgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,item:l,checked:r.checkedModel,"onUpdate:checked":t[26]||(t[26]=u=>r.checkedModel=u),"is-title":"",class:"border-bottom-2 border-bottom-last-none","custom-text":e.$tm("filter.whole")[n.isFromNavbar?"navbar":"filter"],onUpdated:t[27]||(t[27]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked","custom-text"]),c("div",Egt,m(e.$tm("filter.specify")[n.isFromNavbar?"navbar":"filter"]),1),(h(!0),g(pe,null,Me(l.children,u=>(h(),g("div",{key:u.id},[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(u.id),"is-from-navbar":n.isFromNavbar,item:u,checked:r.checkedModel,"onUpdate:checked":t[28]||(t[28]=f=>r.checkedModel=f),onUpdated:t[29]||(t[29]=f=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"])]))),128))])):(h(),g("div",Igt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,item:l,checked:r.checkedModel,"onUpdate:checked":t[30]||(t[30]=u=>r.checkedModel=u),class:"border-bottom-2 border-bottom-last-none",onUpdated:t[31]||(t[31]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"])]))]),_:2},1032,["index","parent","class"]))),128))],8,Cgt)])])}const Agt=U(pgt,[["render",Pgt]]),Dgt={components:{CategorySelectDropdownItem:yp},props:{checked:Array,items:Array,itemsAuthor:Array,isFromNavbar:{type:Boolean,default:!1},isFromAuthor:{type:Boolean,default:!1}},computed:{checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}},topLevelSubject(){return this.items.filter(e=>e.id===406)[0]}},methods:{updateCheckedModel(){this.$emit("updated")}}},xgt={class:"right-items-row-3 w-33rem w-lg-down-auto"};function Ogt(e,t,n,o,i,r){const s=y("CategorySelectDropdownItem");return h(),g("div",null,[n.isFromNavbar?(h(),W(s,{key:0,checked:r.checkedModel,"onUpdate:checked":t[0]||(t[0]=a=>r.checkedModel=a),item:r.topLevelSubject,"is-from-navbar":n.isFromNavbar,onUpdated:r.updateCheckedModel,class:"fw-bold text-uppercase",disabled:n.isFromAuthor&&!n.itemsAuthor.includes(r.topLevelSubject.id),"is-title":""},null,8,["checked","item","is-from-navbar","onUpdated","disabled"])):D("",!0),c("div",xgt,[(h(!0),g(pe,null,Me(r.topLevelSubject.children,(a,l)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,onUpdated:r.updateCheckedModel,key:a.name+l,item:a,checked:r.checkedModel,"onUpdate:checked":t[1]||(t[1]=d=>r.checkedModel=d),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(a.id)},null,8,["is-from-navbar","onUpdated","item","checked","disabled"]))),128))])])}const xse=U(Dgt,[["render",Ogt]]),pT=5,gT=20,vT=21,_T=22,Lgt={components:{CategorySelectDropdownSubjectDefault:Agt,CategorySelectDropdownSubjectKindergarten:xse},props:{checked:{type:Array,default:()=>[]},items:{type:Array,default:()=>[]},itemsAuthor:{type:Array,default:()=>[]},isFromAuthor:{type:Boolean,default:!1},isFromNavbar:{type:Boolean,default:!1},idSuffix:{type:String,default:"0"},categories:{type:Object,default:()=>({class:[],subject:[],theme:[],kind:[],format:[]})},existingSubjectIds:{type:Array,default:()=>[]}},methods:{findClassSubjectClassChildren(e){return this.classSubjects.length>1?this.classSubjects.find(t=>t.id===e).children:[]},findClassChildren(e){let t=this.categories.class.find(n=>n.id===e);return t&&t.children?t.children:[]},filterByCategoryIds(e){return this.existingSubjectIds?e.filter(t=>this.existingSubjectIds.includes(t.id)?t.children&&t.children.length>0?{...t,children:this.filterByCategoryIds(t.children)}:!0:!1):e},pluckCategoryIdsRecursive(e){return e.reduce((t,n)=>[...t,n.id,...n.children?this.pluckCategoryIdsRecursive(n.children):[]],[])}},computed:{...Oe({classSubjects:"category/getCategoriesClassSubject"}),checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}},kindergartenIds(){return this.findClassChildren(pT).map(e=>e.id).concat(pT)},elementarySchoolFirstIds(){return this.findClassChildren(gT).map(e=>e.id).concat(gT)},elementarySchoolSecondIds(){return this.findClassChildren(vT).map(e=>e.id).concat(vT)},highSchoolIds(){return this.findClassChildren(_T).map(e=>e.id).concat(_T)},anyKindergartenClassSelected(){return this.checkedModel&&!!this.checkedModel.find(e=>this.kindergartenIds.includes(e.id))},isElementarySchoolFirstSelected(){return this.checkedModel&&!!this.checkedModel.find(e=>this.elementarySchoolFirstIds.includes(e.id))},isElementarySchoolSecondSelected(){return this.checkedModel&&!!this.checkedModel.find(e=>this.elementarySchoolSecondIds.includes(e.id))},isHighSchoolSelected(){return this.checkedModel&&!!this.checkedModel.find(e=>this.highSchoolIds.includes(e.id))},areDefaultSubjects(){let e=[this.anyKindergartenClassSelected,this.isElementarySchoolFirstSelected,this.isElementarySchoolSecondSelected,this.isHighSchoolSelected].filter(t=>t===!0).length;return e===0||e>1},kindergartenSubjects(){return this.filterByCategoryIds(this.findClassSubjectClassChildren(pT))},elementarySchoolFirstSubjects(){return this.filterByCategoryIds(this.findClassSubjectClassChildren(gT))},elementarySchoolSecondSubjects(){return this.filterByCategoryIds(this.findClassSubjectClassChildren(vT))},highSchoolSubjects(){return this.filterByCategoryIds(this.findClassSubjectClassChildren(_T))},kindergartenSubjectIds(){return this.classSubjects.length>1?this.pluckCategoryIdsRecursive(this.kindergartenSubjects):[]},filteredSubjects(){return this.anyKindergartenClassSelected||this.anyKindergartenSubjectSelected?this.kindergartenSubjects:this.areDefaultSubjects?this.items?this.items.filter(e=>!this.kindergartenSubjectIds.includes(e.id)):[]:this.isElementarySchoolFirstSelected?this.elementarySchoolFirstSubjects:this.isElementarySchoolSecondSelected?this.elementarySchoolSecondSubjects:this.isHighSchoolSelected?this.highSchoolSubjects:[]},isEmpty(){return this.filteredSubjects.length===0||this.filteredSubjects.every(e=>e.hidden_in_navigation)},anyKindergartenSubjectSelected(){return this.checkedModel&&this.checkedModel.some(e=>this.kindergartenSubjectIds.includes(e.id))}}},Mgt={key:0,class:"text-gray-700 small mb-2 ms-2"};function Ngt(e,t,n,o,i,r){const s=y("CategorySelectDropdownSubjectKindergarten"),a=y("CategorySelectDropdownSubjectDefault");return h(),g("div",null,[r.areDefaultSubjects&&!n.isFromNavbar?(h(),g("p",Mgt,m(e.$t("filter.specify_class")),1)):D("",!0),!r.areDefaultSubjects&&r.anyKindergartenClassSelected||r.anyKindergartenSubjectSelected?(h(),W(s,{key:1,checked:r.checkedModel,items:r.filteredSubjects,"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,"is-from-navbar":n.isFromNavbar,onUpdated:t[0]||(t[0]=l=>e.$emit("updated"))},null,8,["checked","items","items-author","is-from-author","is-from-navbar"])):(h(),W(a,{key:2,checked:r.checkedModel,items:r.filteredSubjects,"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,"is-from-navbar":n.isFromNavbar,"id-suffix":n.idSuffix,onUpdated:t[1]||(t[1]=l=>e.$emit("updated"))},null,8,["checked","items","items-author","is-from-author","is-from-navbar","id-suffix"]))])}const _6=U(Lgt,[["render",Ngt]]),Rgt={components:{AccordionItem:Ml,CategorySelectDropdownItem:yp},props:{checked:{type:Array,default:()=>[]},items:{type:Array,default:()=>[]},itemsAuthor:{type:Array,default:()=>[]},isFromAuthor:{type:Boolean,default:!1},isFromNavbar:{type:Boolean,default:!1},idSuffix:{type:String,default:"0"}},data(){return{themeIds:eg.ids.theme}},computed:{checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}},accordionParentId(){return"accordion-categories-theme"+this.items[0].id+(this.isFromNavbar?"navigation":"filter")+this.$t("public.dash")+this.idSuffix}},methods:{checkedChildren(e){return this.isFromNavbar?[]:this.checked.filter(t=>t.parent_id===e||e===t.id)},getItem(e){return this.items.length?this.items.find(t=>t.id==e):{}},getItemChildren(e){let t=window._.cloneDeep(this.getItem(e));return t&&t.children&&t.children.length?t.children:[]}}},jgt={class:"row d-none d-lg-flex"},Fgt={class:"col"},zgt={class:"mb-2"},Ugt={class:"col"},Bgt={class:"mb-2"},Hgt={class:"mb-2"},Vgt={class:"col"},qgt={class:"mb-2"},Ygt={class:"col"},Wgt={class:"mb-2"},Ggt={class:"col"},Zgt={class:"mb-2"},Kgt={class:"col"},Jgt={class:"mb-2"},Xgt={class:"d-lg-none"},Qgt=["id"],evt={class:"pt-3 pb-3 w-100 d-flex justify-content-between"},tvt={key:0},nvt={class:"small fw-bold text-uppercase mt-3 mb-3 text-gray-500 ms-5 ps-2dot5"},ovt={key:1};function ivt(e,t,n,o,i,r){const s=y("CategorySelectDropdownItem"),a=y("AccordionItem");return h(),g("div",null,[c("div",jgt,[c("div",Fgt,[c("div",zgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.school_year),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.school_year),checked:r.checkedModel,"onUpdate:checked":t[0]||(t[0]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[1]||(t[1]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.school_year),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[2]||(t[2]=u=>r.checkedModel=u),onUpdated:t[3]||(t[3]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))]),c("div",null,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.human_and_health),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.human_and_health),checked:r.checkedModel,"onUpdate:checked":t[4]||(t[4]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[5]||(t[5]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.human_and_health),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[6]||(t[6]=u=>r.checkedModel=u),onUpdated:t[7]||(t[7]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))])]),c("div",Ugt,[c("div",Bgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.nature),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.nature),checked:r.checkedModel,"onUpdate:checked":t[8]||(t[8]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[9]||(t[9]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.nature),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[10]||(t[10]=u=>r.checkedModel=u),onUpdated:t[11]||(t[11]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))]),c("div",Hgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.food),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.food),checked:r.checkedModel,"onUpdate:checked":t[12]||(t[12]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[13]||(t[13]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.food),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[14]||(t[14]=u=>r.checkedModel=u),onUpdated:t[15]||(t[15]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))]),c("div",null,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.plants),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.plants),checked:r.checkedModel,"onUpdate:checked":t[16]||(t[16]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[17]||(t[17]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.plants),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[18]||(t[18]=u=>r.checkedModel=u),onUpdated:t[19]||(t[19]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))])]),c("div",Vgt,[c("div",qgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.environment),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.environment),checked:r.checkedModel,"onUpdate:checked":t[20]||(t[20]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[21]||(t[21]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.environment),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[22]||(t[22]=u=>r.checkedModel=u),onUpdated:t[23]||(t[23]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))]),c("div",null,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.culture),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.culture),checked:r.checkedModel,"onUpdate:checked":t[24]||(t[24]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[25]||(t[25]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.culture),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[26]||(t[26]=u=>r.checkedModel=u),onUpdated:t[27]||(t[27]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))])]),c("div",Ygt,[c("div",Wgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.daily_life),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.daily_life),checked:r.checkedModel,"onUpdate:checked":t[28]||(t[28]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[29]||(t[29]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.daily_life),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[30]||(t[30]=u=>r.checkedModel=u),onUpdated:t[31]||(t[31]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))]),c("div",null,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.entertainment_and_hobbies),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.entertainment_and_hobbies),checked:r.checkedModel,"onUpdate:checked":t[32]||(t[32]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[33]||(t[33]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.entertainment_and_hobbies),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[34]||(t[34]=u=>r.checkedModel=u),onUpdated:t[35]||(t[35]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))])]),c("div",Ggt,[c("div",Zgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.animals),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.animals),checked:r.checkedModel,"onUpdate:checked":t[36]||(t[36]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[37]||(t[37]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.animals),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[38]||(t[38]=u=>r.checkedModel=u),onUpdated:t[39]||(t[39]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))]),c("div",null,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.seasons),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.seasons),checked:r.checkedModel,"onUpdate:checked":t[40]||(t[40]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[41]||(t[41]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.seasons),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[42]||(t[42]=u=>r.checkedModel=u),onUpdated:t[43]||(t[43]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))])]),c("div",Kgt,[c("div",Jgt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.roles),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.roles),checked:r.checkedModel,"onUpdate:checked":t[44]||(t[44]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[45]||(t[45]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.roles),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[46]||(t[46]=u=>r.checkedModel=u),onUpdated:t[47]||(t[47]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))]),c("div",null,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.themeIds.others),"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.themeIds.others),checked:r.checkedModel,"onUpdate:checked":t[48]||(t[48]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[49]||(t[49]=l=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.themeIds.others),(l,d)=>(h(),W(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,key:d,item:l,checked:r.checkedModel,"onUpdate:checked":t[50]||(t[50]=u=>r.checkedModel=u),onUpdated:t[51]||(t[51]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"]))),128))])])]),c("div",Xgt,[n.items.length>0?(h(),g("div",{key:0,id:r.accordionParentId},[(h(!0),g(pe,null,Me(n.items.filter(l=>!l.hidden_in_navigation&&(this.itemsAuthor.includes(l.id)||!this.isFromAuthor)),(l,d)=>(h(),W(a,{key:d,index:String(d),"title-padding-x":"3","additional-class":"filter-accordion",parent:r.accordionParentId,class:J({"border-bottom-2":d!==n.items.length-1}),"body-padding-x":"0","body-padding-y":"0"},{title:F(()=>[c("div",evt,[z(m(l.name)+" ",1),xe(c("div",{class:"circle-number-filter me-0 medium fw-bold"},m(r.checkedChildren(l.id).length),513),[[Vo,!n.isFromNavbar&&r.checkedChildren(l.id).length>0]])])]),body:F(()=>[l.children?(h(),g("div",tvt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,item:l,checked:r.checkedModel,"onUpdate:checked":t[52]||(t[52]=u=>r.checkedModel=u),"is-title":"",class:"border-bottom-2","custom-text":e.$tm("filter.whole")[n.isFromNavbar?"navbar":"filter"],onUpdated:t[53]||(t[53]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked","custom-text"]),c("div",nvt,m(e.$tm("filter.specify")[n.isFromNavbar?"navbar":"filter"]),1),(h(!0),g(pe,null,Me(l.children,(u,f)=>(h(),g("div",{key:f},[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(u.id),"is-from-navbar":n.isFromNavbar,item:u,checked:r.checkedModel,"onUpdate:checked":t[54]||(t[54]=p=>r.checkedModel=p),onUpdated:t[55]||(t[55]=p=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"])]))),128))])):(h(),g("div",ovt,[b(s,{disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"is-from-navbar":n.isFromNavbar,item:l,checked:r.checkedModel,"onUpdate:checked":t[56]||(t[56]=u=>r.checkedModel=u),class:"border-bottom-2",onUpdated:t[57]||(t[57]=u=>e.$emit("updated"))},null,8,["disabled","is-from-navbar","item","checked"])]))]),_:2},1032,["index","parent","class"]))),128))],8,Qgt)):D("",!0)])])}const y6=U(Rgt,[["render",ivt]]),rvt={components:{AccordionItem:Ml,CategorySelectDropdownItem:yp},props:{checked:{type:Array,default:()=>[]},items:{type:Array,default:()=>[]},itemsAuthor:{type:Array,default:()=>[]},isFromAuthor:{type:Boolean,default:!1},isFromNavbar:{type:Boolean,default:!1},idSuffix:{type:String,default:"0"}},computed:{checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}},accordionParentId(){return"accordion-categories-kind"+this.items[0].id+(this.isFromNavbar?"navigation":"filter")+this.$t("public.dash")+this.idSuffix}},data(){return{hover:!1,activeTab:0,kindIds:eg.ids.kind}},methods:{openTab(e){this.activeTab=e},checkedChildren(e){return this.isFromNavbar?[]:this.checked.filter(t=>t.parent_id===e||e===t.id)},getItem(e){return this.items.length?this.items.find(t=>t.id==e):{}},getItemChildren(e){let t=window._.cloneDeep(this.getItem(e));return t&&t.children&&t.children.length?t.children:[]}}},svt={class:"row d-none d-lg-flex"},avt={class:"col"},lvt={class:"mb-2"},cvt={class:"col"},dvt={class:"mb-2"},uvt={class:"col"},hvt={class:"col"},fvt={class:"col"},mvt={class:"col"},pvt={class:"d-lg-none"},gvt=["id"],vvt={class:"pt-3 pb-3 w-100 d-flex justify-content-between"},_vt={key:0},yvt={class:"small fw-bold text-uppercase mt-3 mb-3 text-gray-500 ms-5 ps-2dot5"},bvt={key:1};function kvt(e,t,n,o,i,r){const s=y("CategorySelectDropdownItem"),a=y("AccordionItem");return h(),g("div",null,[c("div",svt,[c("div",avt,[c("div",lvt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.kindIds.games),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.kindIds.games),checked:r.checkedModel,"onUpdate:checked":t[0]||(t[0]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[1]||(t[1]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.kindIds.games),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[2]||(t[2]=u=>r.checkedModel=u),onUpdated:t[3]||(t[3]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))]),c("div",null,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.kindIds.pencil_activities),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.kindIds.pencil_activities),checked:r.checkedModel,"onUpdate:checked":t[4]||(t[4]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[5]||(t[5]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.kindIds.pencil_activities),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[6]||(t[6]=u=>r.checkedModel=u),onUpdated:t[7]||(t[7]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))])]),c("div",cvt,[c("div",dvt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.kindIds.card_games),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.kindIds.card_games),checked:r.checkedModel,"onUpdate:checked":t[8]||(t[8]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[9]||(t[9]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.kindIds.card_games),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[10]||(t[10]=u=>r.checkedModel=u),onUpdated:t[11]||(t[11]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))]),c("div",null,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.kindIds.diaries),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.kindIds.diaries),checked:r.checkedModel,"onUpdate:checked":t[12]||(t[12]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[13]||(t[13]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.kindIds.diaries),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[14]||(t[14]=u=>r.checkedModel=u),onUpdated:t[15]||(t[15]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))])]),c("div",uvt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.kindIds.classroom_decorations),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.kindIds.classroom_decorations),checked:r.checkedModel,"onUpdate:checked":t[16]||(t[16]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[17]||(t[17]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.kindIds.classroom_decorations),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[18]||(t[18]=u=>r.checkedModel=u),onUpdated:t[19]||(t[19]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128)),b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.kindIds.cooperation),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.kindIds.cooperation),checked:r.checkedModel,"onUpdate:checked":t[20]||(t[20]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[21]||(t[21]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.kindIds.cooperation),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[22]||(t[22]=u=>r.checkedModel=u),onUpdated:t[23]||(t[23]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))]),c("div",hvt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.kindIds.powerpoint_activities),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.kindIds.powerpoint_activities),checked:r.checkedModel,"onUpdate:checked":t[24]||(t[24]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[25]||(t[25]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.kindIds.powerpoint_activities),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[26]||(t[26]=u=>r.checkedModel=u),onUpdated:t[27]||(t[27]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))]),c("div",fvt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.kindIds.various),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.kindIds.various),checked:r.checkedModel,"onUpdate:checked":t[28]||(t[28]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[29]||(t[29]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.kindIds.various),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[30]||(t[30]=u=>r.checkedModel=u),onUpdated:t[31]||(t[31]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))]),c("div",mvt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.kindIds.methods_and_teaching_strategies),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.kindIds.methods_and_teaching_strategies),checked:r.checkedModel,"onUpdate:checked":t[32]||(t[32]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[33]||(t[33]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.kindIds.methods_and_teaching_strategies),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[34]||(t[34]=u=>r.checkedModel=u),onUpdated:t[35]||(t[35]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))])]),c("div",pvt,[n.items.length>0?(h(),g("div",{key:0,id:r.accordionParentId},[(h(!0),g(pe,null,Me(n.items.filter(l=>!l.hidden_in_navigation&&(this.itemsAuthor.includes(l.id)||!this.isFromAuthor)),(l,d)=>(h(),W(a,{key:d,index:String(d),"title-padding-x":"3","additional-class":"filter-accordion",parent:r.accordionParentId,class:J({"border-bottom-2":d!==n.items.length-1}),"body-padding-x":"0","body-padding-y":"0"},{title:F(()=>[c("div",vvt,[z(m(l.name)+" ",1),xe(c("div",{class:"circle-number-filter me-0 medium fw-bold"},m(r.checkedChildren(l.id).length),513),[[Vo,!n.isFromNavbar&&r.checkedChildren(l.id).length>0]])])]),body:F(()=>[l.children?(h(),g("div",_vt,[b(s,{"is-from-navbar":n.isFromNavbar,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[36]||(t[36]=u=>r.checkedModel=u),"is-title":"",class:"border-bottom-2","custom-text":e.$tm("filter.whole")[n.isFromNavbar?"navbar":"filter"],onUpdated:t[37]||(t[37]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked","custom-text"]),c("div",yvt,m(e.$tm("filter.specify")[n.isFromNavbar?"navbar":"filter"]),1),(h(!0),g(pe,null,Me(l.children,(u,f)=>(h(),g("div",{key:f},[b(s,{"is-from-navbar":n.isFromNavbar,item:u,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(u.id),checked:r.checkedModel,"onUpdate:checked":t[38]||(t[38]=p=>r.checkedModel=p),onUpdated:t[39]||(t[39]=p=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"])]))),128))])):(h(),g("div",bvt,[b(s,{"is-from-navbar":n.isFromNavbar,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[40]||(t[40]=u=>r.checkedModel=u),class:"border-bottom-2",onUpdated:t[41]||(t[41]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"])]))]),_:2},1032,["index","parent","class"]))),128))],8,gvt)):D("",!0)])])}const b6=U(rvt,[["render",kvt]]),wvt={components:{AccordionItem:Ml,CategorySelectDropdownItem:yp},props:{checked:{type:Array,default:()=>[]},items:{type:Array,default:()=>[]},itemsAuthor:{type:Array,default:()=>[]},isFromAuthor:{type:Boolean,default:!1},isFromNavbar:{type:Boolean,default:!1},idSuffix:{type:String,default:"0"}},data(){return{holidayIds:eg.ids.holiday,hover:!1,activeTab:0}},computed:{checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}},accordionParentId(){return"accordion-categories-holiday"+this.items[0].id+(this.isFromNavbar?"navigation":"filter")+this.$t("public.dash")+this.idSuffix}},methods:{openTab(e){this.activeTab=e},checkedChildren(e){return this.isFromNavbar?[]:this.checked.filter(t=>t.parent_id===e||e===t.id)},getItem(e){return this.items.length?this.items.find(t=>t.id==e):{}},getItemChildren(e){let t=window._.cloneDeep(this.getItem(e));return t&&t.children&&t.children.length?t.children:[]}}},$vt={class:"row d-none d-lg-flex"},Cvt={class:"col"},Svt={class:"col"},Tvt={class:"mb-2"},Evt={class:"col"},Ivt={class:"col"},Pvt={class:"d-lg-none"},Avt=["id"],Dvt={class:"pt-3 pb-3 w-100 d-flex justify-content-between"},xvt={key:0},Ovt={class:"small fw-bold text-uppercase mt-3 mb-3 text-gray-500 ms-5 ps-2dot5"},Lvt={key:1};function Mvt(e,t,n,o,i,r){const s=y("CategorySelectDropdownItem"),a=y("AccordionItem");return h(),g("div",null,[c("div",$vt,[c("div",Cvt,[b(s,{checked:r.checkedModel,"onUpdate:checked":t[0]||(t[0]=l=>r.checkedModel=l),"is-from-navbar":n.isFromNavbar,item:r.getItem(i.holidayIds.religious_holidays),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.holidayIds.religious_holidays),onUpdated:t[1]||(t[1]=l=>e.$emit("updated")),class:"fw-bold text-uppercase mt-3 mt-md-0","is-title":""},null,8,["checked","is-from-navbar","item","disabled"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.holidayIds.religious_holidays),(l,d)=>(h(),W(s,{checked:r.checkedModel,"onUpdate:checked":t[2]||(t[2]=u=>r.checkedModel=u),"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),onUpdated:t[3]||(t[3]=u=>e.$emit("updated"))},null,8,["checked","is-from-navbar","item","disabled"]))),128))]),c("div",Svt,[c("div",Tvt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.holidayIds.historical_and_national_celebrations),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.holidayIds.historical_and_national_celebrations),checked:r.checkedModel,"onUpdate:checked":t[4]||(t[4]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[5]||(t[5]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.holidayIds.historical_and_national_celebrations),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[6]||(t[6]=u=>r.checkedModel=u),onUpdated:t[7]||(t[7]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))]),c("div",null,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.holidayIds.environment),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.holidayIds.environment),checked:r.checkedModel,"onUpdate:checked":t[8]||(t[8]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[9]||(t[9]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.holidayIds.environment),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[10]||(t[10]=u=>r.checkedModel=u),onUpdated:t[11]||(t[11]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))])]),c("div",Evt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.holidayIds.family_celebrations_and_traditions),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.holidayIds.family_celebrations_and_traditions),checked:r.checkedModel,"onUpdate:checked":t[12]||(t[12]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[13]||(t[13]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.holidayIds.family_celebrations_and_traditions),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[14]||(t[14]=u=>r.checkedModel=u),onUpdated:t[15]||(t[15]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))]),c("div",Ivt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.holidayIds.international_and_cultural_celebrations),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.holidayIds.international_and_cultural_celebrations),checked:r.checkedModel,"onUpdate:checked":t[16]||(t[16]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[17]||(t[17]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.holidayIds.international_and_cultural_celebrations),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[18]||(t[18]=u=>r.checkedModel=u),onUpdated:t[19]||(t[19]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))])]),c("div",Pvt,[n.items.length>0?(h(),g("div",{key:0,id:r.accordionParentId},[(h(!0),g(pe,null,Me(n.items.filter(l=>!l.hidden_in_navigation&&(this.itemsAuthor.includes(l.id)||!this.isFromAuthor)),(l,d)=>(h(),W(a,{key:d,index:String(d),"title-padding-x":"3","additional-class":"filter-accordion",parent:r.accordionParentId,class:J({"border-bottom-2":d!==n.items.length-1}),"body-padding-x":"0","body-padding-y":"0"},{title:F(()=>[c("div",Dvt,[z(m(l.name)+" ",1),xe(c("div",{class:"circle-number-filter me-0 medium fw-bold"},m(r.checkedChildren(l.id).length),513),[[Vo,!n.isFromNavbar&&r.checkedChildren(l.id).length>0]])])]),body:F(()=>[l.children?(h(),g("div",xvt,[b(s,{checked:r.checkedModel,"onUpdate:checked":t[20]||(t[20]=u=>r.checkedModel=u),"is-from-navbar":n.isFromNavbar,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),"custom-text":e.$tm("filter.whole")[n.isFromNavbar?"navbar":"filter"],class:"border-bottom-2","is-title":"",onUpdated:t[21]||(t[21]=u=>e.$emit("updated"))},null,8,["checked","is-from-navbar","item","disabled","custom-text"]),c("div",Ovt,m(e.$tm("filter.specify")[n.isFromNavbar?"navbar":"filter"]),1),(h(!0),g(pe,null,Me(l.children,(u,f)=>(h(),g("div",{key:f},[b(s,{"is-from-navbar":n.isFromNavbar,item:u,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(u.id),checked:r.checkedModel,"onUpdate:checked":t[22]||(t[22]=p=>r.checkedModel=p),onUpdated:t[23]||(t[23]=p=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"])]))),128))])):(h(),g("div",Lvt,[b(s,{"is-from-navbar":n.isFromNavbar,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[24]||(t[24]=u=>r.checkedModel=u),class:"border-bottom-2",onUpdated:t[25]||(t[25]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"])]))]),_:2},1032,["index","parent","class"]))),128))],8,Avt)):D("",!0)])])}const k6=U(wvt,[["render",Mvt]]),Nvt={components:{AccordionItem:Ml,CategorySelectDropdownItem:yp},props:{checked:{type:Array,default:()=>[]},items:{type:Array,default:()=>[]},itemsAuthor:{type:Array,default:()=>[]},isFromAuthor:{type:Boolean,default:!1},isFromNavbar:{type:Boolean,default:!1},idSuffix:{type:String,default:"0"}},data(){return{formatIds:eg.ids.format}},computed:{checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}},accordionParentId(){return"accordion-categories-format"+this.items[0].id+(this.isFromNavbar?"navigation":"filter")+this.$t("public.dash")+this.idSuffix}},methods:{checkedChildren(e){return this.isFromNavbar?[]:this.checked.filter(t=>t.parent_id===e||e===t.id)},getItem(e){return this.items.length?this.items.find(t=>t.id==e):{}},getItemChildren(e){let t=window._.cloneDeep(this.getItem(e));return t&&t.children&&t.children.length?t.children:[]}}},Rvt={class:"row d-none d-lg-flex"},jvt={class:"col"},Fvt={class:"col"},zvt={class:"mb-2"},Uvt={class:"col"},Bvt={class:"col"},Hvt={class:"mb-2"},Vvt={class:"d-lg-none"},qvt=["id"],Yvt={class:"pt-3 pb-3 w-100 d-flex justify-content-between"},Wvt={key:0},Gvt={class:"small fw-bold text-uppercase mt-3 mb-3 text-gray-500 ms-5 ps-2dot5"},Zvt={key:1};function Kvt(e,t,n,o,i,r){const s=y("CategorySelectDropdownItem"),a=y("AccordionItem");return h(),g("div",null,[c("div",Rvt,[c("div",jvt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.formatIds.teaching_products_and_tests),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.formatIds.teaching_products_and_tests),checked:r.checkedModel,"onUpdate:checked":t[0]||(t[0]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[1]||(t[1]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.formatIds.teaching_products_and_tests),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[2]||(t[2]=u=>r.checkedModel=u),onUpdated:t[3]||(t[3]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))]),c("div",Fvt,[c("div",zvt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.formatIds.teaching_cards_and_interactive_products),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.formatIds.teaching_cards_and_interactive_products),checked:r.checkedModel,"onUpdate:checked":t[4]||(t[4]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[5]||(t[5]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.formatIds.teaching_cards_and_interactive_products),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[6]||(t[6]=u=>r.checkedModel=u),onUpdated:t[7]||(t[7]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))]),c("div",null,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.formatIds.fun_and_musical_activities),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.formatIds.fun_and_musical_activities),checked:r.checkedModel,"onUpdate:checked":t[8]||(t[8]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[9]||(t[9]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.formatIds.fun_and_musical_activities),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[10]||(t[10]=u=>r.checkedModel=u),onUpdated:t[11]||(t[11]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))])]),c("div",Uvt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.formatIds.creative_activities),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.formatIds.creative_activities),checked:r.checkedModel,"onUpdate:checked":t[12]||(t[12]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[13]||(t[13]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.formatIds.creative_activities),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[14]||(t[14]=u=>r.checkedModel=u),onUpdated:t[15]||(t[15]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))]),c("div",Bvt,[c("div",Hvt,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.formatIds.multimedia_products),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.formatIds.multimedia_products),checked:r.checkedModel,"onUpdate:checked":t[16]||(t[16]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[17]||(t[17]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.formatIds.multimedia_products),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[18]||(t[18]=u=>r.checkedModel=u),onUpdated:t[19]||(t[19]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))]),c("div",null,[b(s,{"is-from-navbar":n.isFromNavbar,class:"fw-bold text-uppercase mt-3 mt-md-0",item:r.getItem(i.formatIds.literary_creation),disabled:n.isFromAuthor&&!n.itemsAuthor.includes(i.formatIds.literary_creation),checked:r.checkedModel,"onUpdate:checked":t[20]||(t[20]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[21]||(t[21]=l=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]),(h(!0),g(pe,null,Me(r.getItemChildren(i.formatIds.literary_creation),(l,d)=>(h(),W(s,{"is-from-navbar":n.isFromNavbar,key:d,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[22]||(t[22]=u=>r.checkedModel=u),onUpdated:t[23]||(t[23]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"]))),128))])])]),c("div",Vvt,[n.items.length>0?(h(),g("div",{key:0,id:r.accordionParentId},[(h(!0),g(pe,null,Me(n.items.filter(l=>!l.hidden_in_navigation&&(this.itemsAuthor.includes(l.id)||!this.isFromAuthor)),(l,d)=>(h(),W(a,{key:d,index:String(d),"title-padding-x":"3","additional-class":"filter-accordion",parent:r.accordionParentId,class:J({"border-bottom-2":d!==n.items.length-1}),"body-padding-x":"0","body-padding-y":"0"},{title:F(()=>[c("div",Yvt,[z(m(l.name)+" ",1),xe(c("div",{class:"circle-number-filter me-0 medium fw-bold"},m(r.checkedChildren(l.id).length),513),[[Vo,!n.isFromNavbar&&r.checkedChildren(l.id).length>0]])])]),body:F(()=>[l.children?(h(),g("div",Wvt,[b(s,{"is-from-navbar":n.isFromNavbar,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[24]||(t[24]=u=>r.checkedModel=u),"is-title":"",class:"border-bottom-2","custom-text":e.$tm("filter.whole")[n.isFromNavbar?"navbar":"filter"],onUpdated:t[25]||(t[25]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked","custom-text"]),c("div",Gvt,m(e.$tm("filter.specify")[n.isFromNavbar?"navbar":"filter"]),1),(h(!0),g(pe,null,Me(l.children,(u,f)=>(h(),g("div",{key:f},[b(s,{"is-from-navbar":n.isFromNavbar,item:u,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(u.id),checked:r.checkedModel,"onUpdate:checked":t[26]||(t[26]=p=>r.checkedModel=p),onUpdated:t[27]||(t[27]=p=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"])]))),128))])):(h(),g("div",Zvt,[b(s,{"is-from-navbar":n.isFromNavbar,item:l,disabled:n.isFromAuthor&&!n.itemsAuthor.includes(l.id),checked:r.checkedModel,"onUpdate:checked":t[28]||(t[28]=u=>r.checkedModel=u),class:"border-bottom-2",onUpdated:t[29]||(t[29]=u=>e.$emit("updated"))},null,8,["is-from-navbar","item","disabled","checked"])]))]),_:2},1032,["index","parent","class"]))),128))],8,qvt)):D("",!0)])])}const w6=U(Nvt,[["render",Kvt]]);const yT=5,Jvt={components:{AppIcon:Ue,CategorySelectDropdownClass:v6,CategorySelectDropdownSubject:_6,CategorySelectDropdownTheme:y6,CategorySelectDropdownKind:b6,CategorySelectDropdownHoliday:k6,CategorySelectDropdownFormat:w6},props:{type:String,items:{type:Array,default:()=>[]},itemsAuthor:{type:Array,default:()=>[]},isFromAuthor:{type:Boolean,default:!1},checked:{type:Array,default:()=>[]},categories:{type:Object,default:()=>({class:[],subject:[],theme:[],kind:[],format:[]})},existingSubjectIds:{type:Array,default:()=>[]}},data(){return{isEmpty:!1,isOpen:!1}},computed:{...sn("search",{searchIsOpen:"isOpen"}),...Oe({classSubjects:"category/getCategoriesClassSubject"}),anyChecked(){return this.checkedType.length>0},checkedType(){return this.checked.filter(e=>e.type==this.type)},checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}},itemsEmpty(){return this.type==="subject"&&this.$refs["dropdown-subject"]?this.$refs["dropdown-subject"].isEmpty:this.items.length<1},kindergartenIds(){return this.findClassChildren(yT).map(e=>e.id).concat(yT)},anyKindergartenClassSelected(){return this.checked.some(e=>this.kindergartenIds.includes(e.id))},kindergartenSubjects(){return this.filterByCategoryIds(this.findClassSubjectClassChildren(yT))},kindergartenSubjectIds(){return this.kindergartenSubjects.map(e=>e.id)},anyKindergartenSubjectSelected(){return this.checked.some(e=>this.kindergartenSubjectIds.includes(e.id))}},methods:{toggle(){this.isOpen=!this.isOpen},findClassChildren(e){let t=this.categories.class.find(n=>n.id===e);return t&&t.children?t.children:[]},findClassSubjectClassChildren(e){return this.classSubjects.length>1?this.classSubjects.find(t=>t.id===e).children:[]},filterByCategoryIds(e){return this.existingSubjectIds?e.filter(t=>this.existingSubjectIds.includes(t.id)?t.children&&t.children.length>0?{...t,children:this.filterByCategoryIds(t.children)}:!0:!1):e},pluckCategoryIdsRecursive(e){return e.reduce((t,n)=>[...t,n.id,...n.children?this.pluckCategoryIdsRecursive(n.children):[]],[])},hideDropdown(){this.$refs.select.classList.remove("show"),this.$refs.dropdown.classList.remove("show")}},watch:{searchIsOpen(){this.searchIsOpen&&this.hideDropdown()},checkedModel(){this.hideDropdown()}}},Xvt=["data-bs-toggle"],Qvt={class:"text-truncate"},e_t={class:"d-flex align-items-center"},t_t={class:"dropdown-menu w-100 dropdown-menu-start cursor-default medium p-3",ref:"dropdown"},n_t={class:"w-100 d-flex justify-content-center"};function o_t(e,t,n,o,i,r){const s=y("AppIcon"),a=y("CategorySelectDropdownClass"),l=y("CategorySelectDropdownSubject"),d=y("CategorySelectDropdownTheme"),u=y("CategorySelectDropdownKind"),f=y("CategorySelectDropdownFormat"),p=y("CategorySelectDropdownHoliday");return h(),g("div",{class:J(["medium cursor-pointer",{"bg-primary-5 text-primary":r.anyChecked}])},[c("div",{class:J(["border border-radius-5px border-primary-20 p-2dot5 d-flex align-items-center justify-content-between select mh-3dot25rem position-up-fix",{"cursor-not-allowed opacity-0dot7":i.isEmpty}]),"data-bs-display":"static","data-bs-toggle":[i.isEmpty?"null":"dropdown"],"aria-expanded":!1,"data-bs-auto-close":"outside",ref:"select"},[c("div",Qvt,m(n.type=="subject"&&(r.anyKindergartenClassSelected||r.anyKindergartenSubjectSelected)?e.$t("category.skill"):e.$tm("navigation.categories")[n.type]),1),c("div",e_t,[xe(c("div",{class:"circle-number-filter medium fw-bold"},m(r.checkedType.length),513),[[Vo,r.anyChecked]]),b(s,{icon:"chevron-down",width:"20",height:"20",class:"chevron"})])],10,Xvt),xe(c("div",t_t,[c("div",n_t,[n.type=="class"?(h(),W(a,{key:0,items:n.items,"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:r.checkedModel,"onUpdate:checked":t[0]||(t[0]=v=>r.checkedModel=v),onUpdated:t[1]||(t[1]=v=>e.$emit("updated"))},null,8,["items","items-author","is-from-author","checked"])):D("",!0),n.type=="subject"?(h(),W(l,{key:1,items:n.items,"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:r.checkedModel,"onUpdate:checked":t[2]||(t[2]=v=>r.checkedModel=v),onUpdated:t[3]||(t[3]=v=>e.$emit("updated")),categories:n.categories,"existing-subject-ids":n.existingSubjectIds,ref:"dropdown-subject"},null,8,["items","items-author","is-from-author","checked","categories","existing-subject-ids"])):D("",!0),n.type=="theme"?(h(),W(d,{key:2,items:n.items,"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:r.checkedModel,"onUpdate:checked":t[4]||(t[4]=v=>r.checkedModel=v),onUpdated:t[5]||(t[5]=v=>e.$emit("updated"))},null,8,["items","items-author","is-from-author","checked"])):D("",!0),n.type=="kind"?(h(),W(u,{key:3,items:n.items,"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:r.checkedModel,"onUpdate:checked":t[6]||(t[6]=v=>r.checkedModel=v),onUpdated:t[7]||(t[7]=v=>e.$emit("updated"))},null,8,["items","items-author","is-from-author","checked"])):D("",!0),n.type=="format"?(h(),W(f,{key:4,items:n.items,"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:r.checkedModel,"onUpdate:checked":t[8]||(t[8]=v=>r.checkedModel=v),onUpdated:t[9]||(t[9]=v=>e.$emit("updated"))},null,8,["items","items-author","is-from-author","checked"])):D("",!0),n.type=="holiday"?(h(),W(p,{key:5,items:n.items,"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:r.checkedModel,"onUpdate:checked":t[10]||(t[10]=v=>r.checkedModel=v),onUpdated:t[11]||(t[11]=v=>e.$emit("updated"))},null,8,["items","items-author","is-from-author","checked"])):D("",!0)])],512),[[Vo,!r.itemsEmpty]])],2)}const i_t=U(Jvt,[["render",o_t],["__scopeId","data-v-948f5043"]]),r_t={components:{AppIcon:Ue},props:{title:{type:String,default:null},px:{type:String,default:"2dot5"},py:{type:String,default:"2"}},methods:{removeItem(){this.$emit("removed")}}},s_t={class:"d-flex align-items-center"};function a_t(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",{class:J(["d-inline-block badge rounded-pill small bg-primary-10 text-primary fw-medium m-1",["px-"+n.px,"py-"+n.py]])},[c("div",s_t,[z(m(n.title)+" ",1),c("div",{onClick:t[0]||(t[0]=(...a)=>r.removeItem&&r.removeItem(...a))},[b(s,{icon:"close",class:"ms-icon cursor-pointer"})])])],2)}const Ose=U(r_t,[["render",a_t]]);const l_t={components:{AppIcon:Ue},props:{position:{type:String,default:"start"},id:String,bgColor:{type:String,default:null}},computed:{bgColorStyle(){return this.bgColor?"background-color: "+this.bgColor+";":""}}},c_t=["id","aria-labelledby"],d_t=["id"],u_t={key:0},h_t={key:1,class:"btn btn-sm btn-tertiary text-gray-900 offcanvas-close",type:"button","data-bs-dismiss":"offcanvas","aria-label":"Close"},f_t={class:"offcanvas-body"},m_t={key:0,class:"offcanvas-footer w-100"};function p_t(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",{class:J(["offcanvas","offcanvas-"+n.position]),tabindex:"-1",id:n.id+"-offcanvas","aria-labelledby":"offcanvas"+n.id+"Label",style:Bn(r.bgColorStyle)},[c("div",{class:"offcanvas-header px-2 py-3",id:"offcanvas"+n.id+"Label"},[c("div",null,[Pt(e.$slots,"title",{},void 0,!0)]),e.$slots.button?(h(),g("span",u_t,[Pt(e.$slots,"button",{},void 0,!0)])):(h(),g("button",h_t,[b(s,{icon:"close",width:"24",height:"24"})]))],8,d_t),c("div",f_t,[Pt(e.$slots,"content",{},void 0,!0),e.$slots.footer?(h(),g("div",m_t,[Pt(e.$slots,"footer",{},void 0,!0)])):D("",!0)])],14,c_t)}const wL=U(l_t,[["render",p_t],["__scopeId","data-v-cb898aef"]]),g_t={props:{checked:Array,showCancelFilter:Boolean,categories:{type:Object,default:()=>({class:[],subject:[],theme:[],kind:[],format:[]})},itemsAuthor:Array,isFromAuthor:Boolean,existingSubjectIds:Array},components:{AppIcon:Ue,OffcanvasSidebar:wL,CategorySelectDropdownFormat:w6,CategorySelectDropdownTheme:y6,CategorySelectDropdownKind:b6,CategorySelectDropdownHoliday:k6,CategorySelectDropdownSubject:_6,CategorySelectDropdownClass:v6},computed:{...Oe({categoryLoading:"category/loading"})},data(){return{activeTab:"subject",bootstrapOffcanvas:null}},methods:{toggleCategory(e,t=!1){t||(this.activeTab=e)},checkedChildren(e){return this.checked?this.checked.filter(t=>t.type===e):[]},isValueEmpty(e,t){return t==="subject"&&this.$refs["dropdown-subject-offcanvas"]?this.$refs["dropdown-subject-offcanvas"].isEmpty:e.length<1}},mounted(){document.getElementById("catalog-filter-offcanvas").addEventListener("show.bs.offcanvas",g6.collapseAllFilterAccordions)}},v_t={class:"mb-0 ps-2 d-flex align-items-center"},__t={class:"p-3 medium"},y_t=["data-bs-toggle","data-bs-target","aria-label","onClick"],b_t={class:"p-3"},k_t={class:"border-top-2"},w_t={class:"d-flex flex-wrap align-center"},$_t={class:"btn btn-tertiary btn-sm text-gray-900 d-flex align-center",type:"button","data-bs-toggle":"offcanvas","data-bs-target":"#catalog-filter-offcanvas","aria-expanded":"false","aria-label":"Toggle catalog filter"},C_t={key:0,class:"mb-0"},S_t={class:"p-3 medium"};function T_t(e,t,n,o,i,r){const s=y("AppIcon"),a=y("OffcanvasSidebar"),l=y("CategorySelectDropdownClass"),d=y("CategorySelectDropdownSubject"),u=y("CategorySelectDropdownTheme"),f=y("CategorySelectDropdownKind"),p=y("CategorySelectDropdownFormat"),v=y("CategorySelectDropdownHoliday");return h(),g("div",null,[b(a,{id:"catalog-filter",ref:"main-offcanvas",position:"end"},os({title:F(()=>[c("h2",v_t,[b(s,{icon:"filter",height:"24",width:"24",class:"me-2"}),z(" "+m(e.$t("filter.specify_title")),1)])]),_:2},[e.categoryLoading?void 0:{name:"content",fn:F(()=>[c("div",__t,[(h(!0),g(pe,null,Me(n.categories,(_,k,C)=>(h(),g("div",{key:C,class:J(["p-3 w-100 d-flex justify-content-between",{"opacity-half cursor-not-allowed":r.isValueEmpty(_,k),"border-bottom-2":C!==Object.keys(n.categories).length-1}]),type:"button","data-bs-toggle":r.isValueEmpty(_,k)?"":"offcanvas","data-bs-target":r.isValueEmpty(_,k)?"":"#category-catalog-offcanvas","aria-expanded":"false","aria-label":r.isValueEmpty(_,k)?"":"Toggle "+k+" catalog filter",onClick:$=>r.toggleCategory(k,r.isValueEmpty(_,k))},[z(m(e.$tm("navigation.categories")[k])+" ",1),xe(c("div",{class:"circle-number-filter me-0 medium fw-bold"},m(r.checkedChildren(k).length),513),[[Vo,r.checkedChildren(k).length>0]])],10,y_t))),128))])]),key:"0"},n.showCancelFilter?{name:"footer",fn:F(()=>[c("div",b_t,[c("div",k_t,[c("button",{class:"btn btn-tertiary btn-danger medium w-100 mt-2",onClick:t[0]||(t[0]=_=>e.$emit("clearFilter"))},m(e.$t("filter.clear")),1)])])]),key:"1"}:void 0]),1536),b(a,{id:"category-catalog",position:"end"},{title:F(()=>[c("div",w_t,[c("button",$_t,[b(s,{icon:"chevron-left",height:"24",width:"24"})]),i.activeTab?(h(),g("h2",C_t,m(e.$tm("navigation.categories")[i.activeTab]),1)):D("",!0)])]),content:F(()=>[c("div",S_t,[i.activeTab==="class"?(h(),W(l,{key:0,items:n.categories[i.activeTab],"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:n.checked,"id-suffix":"1",onUpdated:t[1]||(t[1]=_=>e.$emit("updated"))},null,8,["items","items-author","is-from-author","checked"])):D("",!0),xe(b(d,{items:n.categories[i.activeTab],"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:n.checked,"id-suffix":"1",categories:n.categories,onUpdated:t[2]||(t[2]=_=>e.$emit("updated")),"existing-subject-ids":n.existingSubjectIds,ref:"dropdown-subject-offcanvas"},null,8,["items","items-author","is-from-author","checked","categories","existing-subject-ids"]),[[Vo,i.activeTab==="subject"]]),i.activeTab==="theme"?(h(),W(u,{key:1,items:n.categories[i.activeTab],"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:n.checked,"id-suffix":"1",onUpdated:t[3]||(t[3]=_=>e.$emit("updated"))},null,8,["items","items-author","is-from-author","checked"])):D("",!0),i.activeTab==="kind"?(h(),W(f,{key:2,items:n.categories[i.activeTab],"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:n.checked,"id-suffix":"1",onUpdated:t[4]||(t[4]=_=>e.$emit("updated"))},null,8,["items","items-author","is-from-author","checked"])):D("",!0),i.activeTab==="format"?(h(),W(p,{key:3,items:n.categories[i.activeTab],"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:n.checked,onUpdated:t[5]||(t[5]=_=>e.$emit("updated"))},null,8,["items","items-author","is-from-author","checked"])):D("",!0),i.activeTab==="holiday"?(h(),W(v,{key:4,items:n.categories[i.activeTab],"items-author":n.itemsAuthor,"is-from-author":n.isFromAuthor,checked:n.checked,onUpdated:t[6]||(t[6]=_=>e.$emit("updated"))},null,8,["items","items-author","is-from-author","checked"])):D("",!0)])]),_:1})])}const E_t=U(g_t,[["render",T_t]]);const I_t={components:{CategoryCatalogOffcanvasFilter:E_t,AppIcon:Ue,ProductListPreferenceCheck:F1t,CategorySelectBlock:i_t,SelectedTag:Ose,TransitionCollapseHeight:qo},props:{authorId:{type:Number,default:null}},computed:{...sn("section",{section:"section"}),...Oe({categories:"category/getCategories",categoriesFlat:"category/getCategoriesFlat",preferences:"user/getPreferences",categoriesForAuthor:"category/getCategoriesForAuthor"}),isFromAuthor(){return this.authorId!==null},showPreferenceCheck(){return(this.preferences.class&&this.preferences.class.length||this.preferences.subject&&this.preferences.subject.length)&&!this.isFromAuthor},preferencesClassIds(){return this.preferences.class.map(e=>e.id)},preferencesSubjectIds(){return this.preferences.subject.map(e=>e.id)},preferencesActive(){return this.anyPreferenceActive?this.filter.category.filter(e=>this.preferencesClassIds.includes(e.id)||this.preferencesSubjectIds.includes(e.id)):[]},filtersActive(){return this.anyPreferenceActive?this.filter.category.filter(e=>!this.preferencesClassIds.includes(e.id)&&!this.preferencesSubjectIds.includes(e.id)):this.filter.category},anyFilterOrPreferenceActive(){return this.anyFilterActive||this.anyPreferenceActive},anyFilterAndPreferenceActive(){return this.anyFilterActive&&this.anyPreferenceActive},anyFilterActive(){return!!(this.filtersActive&&this.filtersActive.length)},existingSubjectIds(){return this.categoriesFlat.subject?this.categoriesFlat.subject.map(e=>e.id):[]},checkedFilterExtendedCount(){return this.filter.category.filter(e=>e&&["format","holiday"].includes(e.type)).length}},data(){return{filterSet:!1,anyPreferenceActive:!1,filter:{category:[]},isLowerThanLg:!1,filterExtended:!1}},methods:{toggleFilterExtended(){this.filterExtended=!this.filterExtended},removeFilterItem(e){let t=this.filter.category.find(o=>o.id==e.id);const n=this.filter.category.indexOf(t);n>-1&&this.filter.category.splice(n,1),this.section.type=="category"&&this.section.categories.map(o=>o.id).includes(e.id)?this.updateQuery(!0,!0):this.updateQuery(!0)},showPreferenceTag(e){return this.filter.category.find(t=>t.id==e.id)},showFilterTag(e){return!this.preference||!this.preferences.class.find(t=>t.id==e.id)&&!this.preferences.subject.find(t=>t.id==e.id)},updateQuery(e,t=!1){let n=Object.fromEntries(Object.entries(this.$route.query).filter(([,o])=>o));e&&(n.page=1),t&&(n.section=void 0),this.filter.category&&(n.category=this.filter.category.length?JSON.stringify(this.filter.category.map(o=>o.id)):void 0),n.preference=JSON.stringify(this.anyPreferenceActive),this.$router.push({name:this.$route.name,query:n}).catch(()=>{})},setFilterFromQuery(e=!1){if(this.$route.query.category)try{let t=JSON.parse(this.$route.query.category);e&&(this.filter.category=[]),t!=null&&t.includes&&Object.values(this.categoriesFlat).forEach(o=>{let i=o.filter(r=>t.includes(r.id));this.filter.category=this.filter.category.concat(i)})}catch(t){if(t.name!=="SyntaxError")throw t}if(this.$route.query.preference){let t=JSON.parse(this.$route.query.preference);this.anyPreferenceActive=t}},clearFilter(){this.anyPreferenceActive=!1,this.filter.category=[],this.section.type=="category"?this.updateQuery(!0,!0):this.updateQuery(!0),g6.hideAllOffcanvas()},tagTitle(e){return e.prefix?e.prefix+" - "+e.name:e.name},resizeCallback(){this.isLowerThanLg=window.innerWidth<992}},created(){this.authorId&&this.$store.dispatch("category/loadForAuthor",{authorId:this.authorId}),this.$store.dispatch("category/load"),this.$store.dispatch("category/loadFlatTree"),this.resizeCallback(),this.resizeCallback=is.debounce(this.resizeCallback,100),window.addEventListener("scroll",this.isFilterSticky),window.addEventListener("resize",this.resizeCallback)},unmounted(){window.removeEventListener("scroll",this.isFilterSticky),window.removeEventListener("resize",this.resizeCallback)},mounted(){window.eventBus.on("navigation-category-no-reload",()=>{console.log("navigation-category-no-reload"),this.filterSet&&this.setFilterFromQuery(!0)})},watch:{categoriesFlat(){!this.filterSet&&this.categoriesFlat&&this.categoriesFlat.class&&this.categoriesFlat.class.length&&(this.setFilterFromQuery(),this.filterSet=!0)},preferencesActive(e,t){t.length>e.length&&(this.anyPreferenceActive=!1)}}},P_t={class:"mb-3 mb-lg-5"},A_t={class:"d-flex align-items-center"},D_t={class:"d-lg-none col-auto ms-auto"},x_t={class:"btn btn-primary btn-sm d-flex align-items-center border-radius-4px",type:"button","data-bs-toggle":"offcanvas","data-bs-target":"#catalog-filter-offcanvas","aria-expanded":"false","aria-label":"Toggle catalog filter"},O_t={key:0,class:"bg-success rounded-circle h-0dot5rem w-0dot5rem ms-2"},L_t={class:"d-none d-lg-flex position-relative mt-3",id:"product-filter-row"},M_t={class:"flex-grow-1 pe-2"},N_t={class:"row"},R_t={key:0,class:"row"},j_t={class:"p-2"},F_t={class:"position-relative"},z_t={key:0,class:"position-absolute btn-center top-0 end-0 circle-number fw-bold small w-1dot25rem h-1dot25rem bg-secondary text-primary cursor-default mt-5 me-0"},U_t={class:"medium"};function B_t(e,t,n,o,i,r){const s=y("ProductListPreferenceCheck"),a=y("AppIcon"),l=y("CategoryCatalogOffcanvasFilter"),d=y("CategorySelectBlock"),u=y("TransitionCollapseHeight"),f=y("SelectedTag");return h(),g("div",P_t,[c("div",A_t,[r.showPreferenceCheck?(h(),W(s,{key:0,checked:i.anyPreferenceActive,"onUpdate:checked":t[0]||(t[0]=p=>i.anyPreferenceActive=p),preferences:e.preferences,filter:i.filter,"onUpdate:filter":t[1]||(t[1]=p=>i.filter=p),onUpdated:t[2]||(t[2]=p=>r.updateQuery(!0))},null,8,["checked","preferences","filter"])):D("",!0),c("div",D_t,[c("button",x_t,[b(a,{icon:"filter",height:"24",width:"24",class:"me-icon"}),z(" "+m(e.$t("filter.specify.filter"))+" ",1),r.anyFilterOrPreferenceActive?(h(),g("span",O_t)):D("",!0)]),i.isLowerThanLg?(h(),W(l,{key:0,checked:i.filter.category,"onUpdate:checked":t[3]||(t[3]=p=>i.filter.category=p),onClearFilter:r.clearFilter,"show-cancel-filter":r.anyFilterOrPreferenceActive,categories:e.categories,"items-author":e.categoriesForAuthor,"is-from-author":r.isFromAuthor,onUpdated:t[4]||(t[4]=p=>r.updateQuery(!0)),"existing-subject-ids":r.existingSubjectIds},null,8,["checked","onClearFilter","show-cancel-filter","categories","items-author","is-from-author","existing-subject-ids"])):D("",!0)])]),c("div",L_t,[c("div",M_t,[c("div",N_t,[(h(),g(pe,null,Me(["class","subject","theme","kind"],(p,v)=>c("div",{key:v,class:"col-12 col-md-3 p-2"},[i.isLowerThanLg?D("",!0):(h(),W(d,{key:0,class:"mb-3 mb-md-0",type:p,items:e.categories[p],"items-author":e.categoriesForAuthor,"is-from-author":r.isFromAuthor,checked:i.filter.category,"onUpdate:checked":t[5]||(t[5]=_=>i.filter.category=_),onUpdated:t[6]||(t[6]=_=>r.updateQuery(!0)),categories:e.categories,"existing-subject-ids":r.existingSubjectIds},null,8,["type","items","items-author","is-from-author","checked","categories","existing-subject-ids"]))])),64))]),b(u,null,{default:F(()=>[i.filterExtended?(h(),g("div",R_t,[(h(),g(pe,null,Me(["format","holiday"],(p,v)=>c("div",{key:v,class:"col-12 col-md-3 p-2"},[i.isLowerThanLg?D("",!0):(h(),W(d,{key:0,class:"mb-3 mb-md-0",type:p,items:e.categories[p],"items-author":e.categoriesForAuthor,"is-from-author":r.isFromAuthor,checked:i.filter.category,"onUpdate:checked":t[7]||(t[7]=_=>i.filter.category=_),onUpdated:t[8]||(t[8]=_=>r.updateQuery(!0)),categories:e.categories,"existing-subject-ids":r.existingSubjectIds},null,8,["type","items","items-author","is-from-author","checked","categories","existing-subject-ids"]))])),64))])):D("",!0)]),_:1})]),c("div",j_t,[c("div",F_t,[c("button",{class:J(["btn btn-circle p-2dot5",r.checkedFilterExtendedCount?"btn-primary":"btn-secondary"]),onClick:t[9]||(t[9]=(...p)=>r.toggleFilterExtended&&r.toggleFilterExtended(...p))},[b(a,{icon:"filter",class:J(r.checkedFilterExtendedCount?"text-white":"text-gray-700"),height:"24",width:"24"},null,8,["class"])],2),r.checkedFilterExtendedCount?(h(),g("div",z_t,m(r.checkedFilterExtendedCount),1)):D("",!0)])])]),c("div",{class:J(["d-flex align-items-center flex-wrap flex-lg-nowrap overflow-x-lg-auto",{"mt-3":r.preferencesActive.length||r.filtersActive.length}]),id:"catalog-filter-tags"},[c("div",{class:J(["d-flex align-items-center",{"pe-2 me-2 border-end-2":!!r.preferencesActive.length&&r.anyFilterAndPreferenceActive}])},[(h(!0),g(pe,null,Me(r.preferencesActive,(p,v)=>(h(),g("div",{key:v},[b(f,{title:r.tagTitle(p),onRemoved:_=>r.removeFilterItem(p)},null,8,["title","onRemoved"])]))),128))],2),(h(!0),g(pe,null,Me(r.filtersActive,(p,v)=>(h(),g("span",{key:v},[b(f,{title:r.tagTitle(p),onRemoved:_=>r.removeFilterItem(p)},null,8,["title","onRemoved"])]))),128)),r.anyFilterOrPreferenceActive?(h(),g("button",{key:0,class:"btn btn-sm btn-tertiary btn-danger my-2 ms-1 white-space-nowrap",onClick:t[10]||(t[10]=(...p)=>r.clearFilter&&r.clearFilter(...p))},[c("span",U_t,m(e.$t("filter.clear")),1)])):D("",!0)],2)])}const H_t=U(I_t,[["render",B_t],["__scopeId","data-v-d7a31aa8"]]),V_t="recommended",q_t={components:{AppIcon:Ue},props:{query:{type:Object},hideLugisBoxSort:{type:Boolean}},data(){return{showOrderByDiscountAmount:!1,isDefaultOrderBy:!1}},computed:{...sn({authorDiscountAutomaticSettings:e=>e.discount.author_discount_automatic_settings}),queryModel:{get(){return this.query},set(e){this.$emit("update:query",e)}}},methods:{sort(e){if(this.queryModel.orderBy!==e){let t=Object.fromEntries(Object.entries(this.queryModel).filter(([,n])=>n));this.queryModel.page!==1&&(t.page=1),t.orderBy=e,this.$router.push({name:this.$route.name,query:t}).catch(()=>{})}},recomputeDiscountAmountOrdering(){this.authorDiscountAutomaticSettings?this.showOrderByDiscountAmount=this.authorDiscountAutomaticSettings.is_valid:this.showOrderByDiscountAmount=!1}},mounted(){this.queryModel.orderBy==="default"&&(this.queryModel.orderBy=V_t,this.isDefaultOrderBy=!0),this.$store.dispatch("discount/authorDiscountAutomaticSettingsShow").then(()=>{this.recomputeDiscountAmountOrdering(),this.showOrderByDiscountAmount&&this.isDefaultOrderBy&&(this.sort("discount_amount"),this.isDefaultOrderBy=!1)}).catch(()=>{})}},Y_t={class:"medium btn-group cursor-pointer"},W_t={class:"dropdown-toggle px-2dot5","data-bs-toggle":"dropdown","aria-expanded":"false"},G_t={class:"dropdown-menu dropdown-menu-end"},Z_t={class:"dropdown-item medium d-flex align-items-center",type:"button"},K_t={class:"dropdown-item medium d-flex align-items-center",type:"button"},J_t={class:"dropdown-item medium d-flex align-items-center",type:"button"},X_t={class:"dropdown-item medium d-flex align-items-center",type:"button"},Q_t={class:"dropdown-item medium d-flex align-items-center",type:"button"},eyt={class:"dropdown-item medium d-flex align-items-center",type:"button"};function tyt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Y_t,[c("div",W_t,m(e.$tm("filter.sort")[r.queryModel.orderBy]),1),c("ul",G_t,[n.hideLugisBoxSort?D("",!0):(h(),g("li",{key:0,onClick:t[0]||(t[0]=a=>r.sort("recommended"))},[c("button",Z_t,[r.queryModel.orderBy==="recommended"||r.queryModel.orderBy==="default"?(h(),W(s,{key:0,icon:"check-fill",class:"me-1",height:"16",width:"16"})):D("",!0),z(" "+m(e.$t("filter.sort.recommended")),1)])])),c("li",{onClick:t[1]||(t[1]=a=>r.sort("approved_at"))},[c("button",K_t,[r.queryModel.orderBy==="approved_at"?(h(),W(s,{key:0,icon:"check-fill",class:"me-1",height:"16",width:"16"})):D("",!0),z(" "+m(e.$t("filter.sort.approved_at")),1)])]),c("li",{onClick:t[2]||(t[2]=a=>r.sort("month"))},[c("button",J_t,[r.queryModel.orderBy==="month"?(h(),W(s,{key:0,icon:"check-fill",class:"me-1",height:"16",width:"16"})):D("",!0),z(" "+m(e.$t("filter.sort.month")),1)])]),c("li",{onClick:t[3]||(t[3]=a=>r.sort("week"))},[c("button",X_t,[r.queryModel.orderBy==="week"?(h(),W(s,{key:0,icon:"check-fill",class:"me-1",height:"16",width:"16"})):D("",!0),z(" "+m(e.$t("filter.sort.week")),1)])]),c("li",{onClick:t[4]||(t[4]=a=>r.sort("most_downloaded"))},[c("button",Q_t,[r.queryModel.orderBy==="most_downloaded"?(h(),W(s,{key:0,icon:"check-fill",class:"me-1",height:"16",width:"16"})):D("",!0),z(" "+m(e.$t("filter.sort.most_downloaded")),1)])]),i.showOrderByDiscountAmount?(h(),g("li",{key:1,onClick:t[5]||(t[5]=a=>r.sort("discount_amount"))},[c("button",eyt,[r.queryModel.orderBy==="discount_amount"?(h(),W(s,{key:0,icon:"check-fill",class:"me-1",height:"16",width:"16"})):D("",!0),z(" "+m(e.$t("filter.sort.discount_amount")),1)])])):D("",!0)])])}const nyt=U(q_t,[["render",tyt]]),oyt=e=>De.get(Pe("api.curriculum.show",e)),iyt={show:oyt};const ryt={components:{AppIcon:Ue,ProductFilter:H_t,ProductListSortSelect:nyt},props:{query:{type:Object,default(){return{monthlyTheme:!1,recommendedProducts:!1,favouriteAuthors:!1}}},showTitle:{type:Boolean,default:!0},productCount:Number,authorId:{type:Number,default:null},hideLuigisBoxSort:{type:Boolean,default:!1}},computed:{...sn("section",{section:"section"}),showTitleLocalQuery(){return!this.query.monthlyTheme&&!this.query.recommendedProducts&&!this.query.favouriteAuthors}},data(){return{curriculum:null}},methods:{setCurriculumFromQuery(){this.query.curriculum?iyt.show(this.query.curriculum).then(e=>{this.curriculum=e.data.result}).catch(e=>{console.log(e)}):this.curriculum=void 0},clearSearch(){let e=Object.fromEntries(Object.entries(this.query).filter(([,t])=>t));e.text=void 0,e.curriculum=void 0,this.$router.push({name:this.$route.name,query:e}).then(()=>{}).catch(()=>{})},clearSection(){let e=Object.fromEntries(Object.entries(this.query).filter(([,t])=>t));e.section=void 0,this.$store.commit("section/resetSectionDetails"),e.orderBy="default",this.$router.push({name:this.$route.name,query:e}).catch(()=>{})}},mounted(){this.setCurriculumFromQuery()},watch:{query(){this.setCurriculumFromQuery()}}},syt={key:0},ayt={class:"row d-none d-lg-flex"},lyt={key:0,class:"w-100 position-relative mt-neg-5"},cyt=["src","alt"],dyt={class:"w-0"},uyt={class:"d-flex justify-content-center"},hyt={key:1,class:"text-start mb-3 mt-2 materials-header text-lg-center"},fyt={key:2,class:"d-flex justify-content-center align-items-center text-center mb-4"},myt={class:"medium"},pyt={class:"d-flex flex-wrap align-items-center justify-content-center"},gyt={class:"fw-bold mb-0"},vyt={class:"w-0"},_yt={class:"d-flex flex-column flex-md-row align-items-start align-items-md-center justify-content-between py-lg-down-3 border-y-lg-down"},yyt={class:"medium fw-bold d-none d-lg-block"},byt={class:"d-flex align-items-center justify-content-between w-md-down-100"},kyt={class:"medium border-end border-end-md-2 pe-2dot5 px-md-2dot5"},wyt={class:"fw-bold"};function $yt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ProductFilter"),l=y("ProductListSortSelect");return h(),g("div",null,[n.showTitle&&r.showTitleLocalQuery?(h(),g("div",syt,[e.section.id&&n.query.section.length?(h(),g("div",{key:0,class:J(["mb-4",{"h-lg-11dot5rem h-xl-14rem h-xxl-16dot5rem":e.section.catalog_img}])},[c("div",ayt,[e.section.catalog_img?(h(),g("div",lyt,[c("img",{src:e.section.catalog_img,alt:e.section.title,class:"position-absolute start-0 w-100 z-index-neg-1"},null,8,cyt)])):D("",!0)]),c("div",{class:J(["d-flex justify-content-center align-items-center",{"mt-4 mt-md-0 mt-xl-4":e.section.catalog_img}])},[c("h1",{class:"text-center text-lg-down-gray-900 mb-0",style:Bn("color: "+e.section.text_color)},m(e.section.title),5),c("div",dyt,[e.section.type!=="category"?(h(),g("button",{key:0,class:"cursor-pointer btn btn-link btn-sm text-lg-down-gray-900",onClick:t[0]||(t[0]=(...d)=>r.clearSection&&r.clearSection(...d)),style:Bn("color: "+e.section.text_color)},[b(s,{icon:"close-circle",width:"30",height:"30"})],4)):D("",!0)])],2),c("div",uyt,[e.section.description?(h(),g("p",{key:0,class:"w-lg-40 text-center text-gray-700 text-lg-down-gray-700 mt-3 mb-0",style:Bn("color: "+e.section.text_color)},m(e.section.description),5)):D("",!0)])],2)):!n.query.text&&!i.curriculum?(h(),g("h1",hyt,m(e.$t("filter.title")),1)):D("",!0),n.query.text||i.curriculum?(h(),g("div",fyt,[c("div",null,[c("span",myt,m(e.$t("filter.search_result")),1),c("div",pyt,[c("h2",gyt,m("“"+(i.curriculum?i.curriculum.name:n.query.text+"”")),1),c("div",vyt,[c("button",{class:"cursor-pointer btn btn-link text-gray-400 text-gray-900-hover btn-sm",onClick:t[1]||(t[1]=(...d)=>r.clearSearch&&r.clearSearch(...d))},[b(s,{icon:"close-circle",width:"30",height:"30"})])])])])])):D("",!0)])):D("",!0),b(a,{query:n.query,"author-id":n.authorId},null,8,["query","author-id"]),c("div",_yt,[c("div",yyt,m(e.$t("filter.product.found.title")),1),c("div",byt,[c("div",kyt,[c("span",wyt,m(n.productCount.toLocaleString()),1),z(" "+m(e.$t("filter.product.found.count")),1)]),b(l,{query:n.query,"hide-lugis-box-sort":n.hideLuigisBoxSort},null,8,["query","hide-lugis-box-sort"])])])])}const Cyt=U(ryt,[["render",$yt],["__scopeId","data-v-6560553e"]]),Lse=""+new URL("product_not_found-2075a415.svg",import.meta.url).href,Syt={props:{query:{type:Object,default(){return{author:0,text:"",section:"",category:""}}},emptyMessage:{type:String,default(){return null}}},data(){return{productNotFound:Lse}},computed:{emptyMessageModel(){return this.emptyMessage?this.emptyMessage:this.query&&this.query.text&&this.query.text.length&&(!this.query.category||!this.query.category.length)?this.$t("product.not_found.text.message.0")+' <span class="fw-bold">'+this.query.text+"</span> "+this.$t("product.not_found.text.message.1"):this.$t("product.not_found.select.message")},advice(){return this.query&&this.query.text&&this.query.text.length&&(!this.query.category||!this.query.category.length)?this.$t("product.not_found.text.advice"):this.$t("product.not_found.select.advice")}}},Tyt={class:"bg-primary-5 text-center py-6 border-radius-5px"},Eyt=["src"],Iyt=["innerHTML"],Pyt={class:"medium text-gray-700 mb-0"};function Ayt(e,t,n,o,i,r){return h(),g("div",Tyt,[c("img",{src:i.productNotFound,height:"94.44",class:"mb-3"},null,8,Eyt),c("h3",{class:"text-gray-800 mb-1",innerHTML:r.emptyMessageModel},null,8,Iyt),c("p",Pyt,m(r.advice),1)])}const Dyt=U(Syt,[["render",Ayt]]),Wa={fileTypes:[{label:"ZIP",value:"ZIP"},{label:"PDF",value:"PDF"},{label:"PPSX",value:"PPSX"},{label:"PPTX",value:"PPTX"},{label:"JPG",value:"JPG"},{label:"PNG",value:"PNG"},{label:"NOTEBOOK",value:"NOTEBOOK"},{label:"MP3",value:"MP3"},{label:"MP4",value:"MP4"},{label:"AVI",value:"AVI"}],occurence:{cart:"CART",not_found:"PRODUCT_NOT_FOUND",detail:"PRODUCT_DETAIL",page_not_found:"PAGE_NOT_FOUND"},editor:{categories:{degree_of_education:{min_count:1,max_count:1},class:{min_count:0,max_count:3},subject:{min_count:1,max_count:3},theme:{min_count:0,max_count:3},kind:{min_count:0,max_count:3},format:{min_count:0,max_count:3},holiday:{min_count:0,max_count:3}}},promo_product:{editor:{categories:{degree_of_education:{min_count:0,max_count:1},class:{min_count:0,max_count:3},subject:{min_count:0,max_count:3},theme:{min_count:0,max_count:3},kind:{min_count:0,max_count:3},format:{min_count:0,max_count:3},holiday:{min_count:0,max_count:3}}}}},xyt="505843-620673",tc={BASE_URL:"https://live.luigisbox.com",TRACKER_ID:xyt,RESPONSE_TYPE:"arraybuffer",AUTOCOMPLETE_TYPE:"curriculum:3,subject:3,theme:3,kind:3,format:3,holiday:3,product:4,author:4,blog:2,webinar:2",HIT_FIELDS:"id,title,name,web_url,image_link,price_brutto,school_price_brutto,author_discount",TOP_ITEMS_TYPE:"product:3"},Oyt=async e=>{const t={q:e,tracker_id:tc.TRACKER_ID,type:tc.AUTOCOMPLETE_TYPE,hit_fields:tc.HIT_FIELDS},n=await G3(`${tc.BASE_URL}/autocomplete/v2`,t),o=$L(n.hits),i=Mse(o),r=Object.keys(i).map(s=>({type:s,items:i[s]}));return{...n,hits:r}},Lyt=async()=>{const e={tracker_id:tc.TRACKER_ID,type:tc.TOP_ITEMS_TYPE,hit_fields:tc.HIT_FIELDS},t=await G3(`${tc.BASE_URL}/v1/top_items`,e),n=$L(t.hits),o=Mse(n);return{...t,hits:o.product}},Myt=async()=>{const e={tracker_id:tc.TRACKER_ID};return await G3(`${tc.BASE_URL}/v2/trending_queries`,e)},Nyt=async(e,t)=>{const n=e.section==="pouze-na-ucitelnici",o=e.category||n,i=o?"POST":"GET",r=o?Uyt(e.category,t,n):null,s={page:Number(e.page)||1,size:Number(e.size)||20,tracker_id:tc.TRACKER_ID,f:["type:product"],...e.text&&{q:e.text}},a=await G3(`${tc.BASE_URL}/search`,s,i,r),d=$L(a.results.hits).map(f=>f.attributes),u={current_page:s.page,per_page:s.size,last_page:Math.ceil(Math.min(a.results.total_hits,1e4)/s.size),total:a.results.total_hits};return{products:d,pagination:u}},G3=async(e,t,n="GET",o=null)=>{try{const i=await De({url:e,method:n,data:o,params:t,responseType:tc.RESPONSE_TYPE});return Ryt(i)}catch(i){await jyt(i,e,t)}},Ryt=e=>{const n=new TextDecoder("utf-8").decode(new Uint8Array(e.data));return JSON.parse(n)},jyt=async(e,t,n)=>{var i;switch((i=e.response)==null?void 0:i.status){case 401:throw new Error("Authentication failed");case 400:throw console.debug("[LB] Request body:",n),new Error("Bad Request");case 413:throw new Error("Payload Too Large");case 408:return await G3(t,n);case 429:throw XV("Too Many Requests"),new Error("Too Many Requests");case 500:case 502:case 503:throw Fyt(),XV("Server Error"),new Error("Server Error");default:throw new Error("Request error")}},XV=e=>{console.log("Notify support@luigisbox.com:",e)},Fyt=()=>{console.log("Check luigisboxstatus.com...")},$L=e=>e.map(zyt),zyt=e=>{var r,s,a,l,d,u,f,p;const{attributes:t,nested:n}=e;if(Array.isArray(t.web_url)&&t.web_url.length>0)try{const v=new URL(t.web_url[0]);e.relative_url=v.pathname+v.search}catch{console.error("Invalid URL:",t.web_url[0])}["name","author_discount","id","only_on_ucitelnice","rank","ratings_count","vat","is_distance_education_usable","cover_img_thumbnail","short_description"].forEach(v=>{Array.isArray(t[v])&&t[v].length>0&&(t[v]=t[v][0])});const o=n==null?void 0:n.find(v=>v.type==="author");o&&(t.author={...o.attributes,id:((r=o.attributes.id)==null?void 0:r[0])??null,first_name:((s=o.attributes.first_name)==null?void 0:s[0])??null,last_name:((a=o.attributes.last_name)==null?void 0:a[0])??null,public_alias:o.attributes.public_alias_count===1?((l=o.attributes.public_alias)==null?void 0:l[0])??null:null,slug:o.attributes.slug_count===1?((d=o.attributes.slug)==null?void 0:d[0])??null:null,is_verified:((u=o.attributes.is_verified)==null?void 0:u[0])??null,image_thumbnail:((f=o.attributes.image_thumbnail)==null?void 0:f[0])??null,name:((p=o.attributes.name)==null?void 0:p[0])??null});const i=n==null?void 0:n.filter(v=>v.type==="category");return t.categories=(i==null?void 0:i.map(v=>v.url.split("_")[1]))??[],t.analytics=(i==null?void 0:i.reduce((v,_,k)=>(k===0?v.category=_.attributes.title:k<5&&(v[`category_${k+1}`]=_.attributes.title),v),{categories:[]}))??{categories:[]},e},Mse=e=>e.reduce((t,n)=>{const{type:o,attributes:i,...r}=n,{id:s,...a}=i;return t[o]||(t[o]=[]),t[o].push({...r,...a,id:Number(s),type:o}),t},{}),Uyt=(e,t,n=!1)=>{const o={},i=[];if(n&&i.push({filter:"only_on_ucitelnice:true"}),e){Byt(e).forEach(s=>{for(const a in t){const d=t[a].find(u=>u.id===s);if(d){const u=d.name;o[a]||(o[a]=[]),o[a].push(`category:${u}`);break}}});for(const s in o)o[s].length>1?i.push({or:o[s].map(a=>({filter:a}))}):i.push({filter:o[s][0]})}return{filters:{product:{and:i}}}},Byt=e=>decodeURIComponent(e).replace(/[\[\]]/g,"").split(",").map(Number),p4={autocomplete:Oyt,topItems:Lyt,trendingQueries:Myt,search:Nyt},Z3={clickOutside:{bind:function(e,t,n){e.clickOutsideEvent=function(o){e==o.target||e.contains(o.target)||n.context[t.expression](o)},document.body.addEventListener("click",e.clickOutsideEvent)},unbind:function(e){document.body.removeEventListener("click",e.clickOutsideEvent)}},stripHTML(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}},Hyt={product:"Product",category:"CollectionPage",class:"CollectionPage",subject:"CollectionPage",theme:"CollectionPage",kind:"CollectionPage",format:"CollectionPage",holiday:"CollectionPage",author:"Brand",blog:"Article",webinar:"Article",query:"SearchAction",curriculum:"SearchAction"};function Vyt(e){return e.price_brutto?Number(e.price_brutto.replace(" CZK","")):0}function qyt(e,t,n){if(!e.title)return console.error("Item title is undefined"),null;t||(console.warn(`Unknown type for item: ${e}`),t="Unknown");const o={"@type":["ListItem",t],position:n.toString(),name:Z3.stripHTML(e.title),url:e.type+"_"+e.id};return e.type==="product"&&(o.offers={"@type":"Offer",priceCurrency:"CZK",price:Vyt(e)}),o}function Yyt(e,t,n){const i=e.map((r,s)=>{const a=Hyt[r.type]||"Unknown";return qyt(r,a,1+s)}).filter(r=>r!==null);return{"@context":"http://schema.org","@type":"SearchAction",query:t,result:{"@type":"ItemList",name:n==="autocomplete"?"Autocomplete":"Search Results",itemListElement:i}}}function CL(e,t,n,o="autocomplete"){const i=Yyt(e,t,o),r=JSON.stringify(i,null,2);let s=document.getElementById(n);s?s.textContent=r:(s=document.createElement("script"),s.type="application/ld+json",s.id=n,s.textContent=r,document.head.appendChild(s)),window.Luigis&&typeof window.Luigis.Scan=="function"?window.Luigis.Scan(`#${n}`,"."+n):console.warn("Luigis.Scan function is not available.")}const QV=["recommended","default"],eq=20,Wyt={components:{ProductCardGhost:ose,ProductCard:m6,ProductListHeader:Cyt,AppIcon:Ue,ProductNotFoundBox:Dyt},props:{query:{type:Object,default(){return{author:0,text:"",orderBy:"approved_at",page:1,section:""}}},showTitle:{type:Boolean,default:!0},emptyMessage:String,authorId:{type:Number,default:null}},data(){return{primaryColor:window.primaryColor,page:this.query.page?Number(this.query.page):1,filter:{text:this.query.text?this.query.text.split(","):[],orderBy:this.query.orderBy?this.query.orderBy:"approved_at",section:this.query.section?this.query.section:""},windowWidth:window.innerWidth,productConfig:Wa,jsonLdId:"search-not-found",jsonLdType:"search",hideLuigisBoxSort:!1}},computed:{...Oe({discountIsActive:"discount/getIsActive",products:"productList/products",productsAlternative:"productList/productsAlternative",loading:"productList/loading",pagination:"productList/pagination",authorsCount:"productList/authorsCount",categoriesFlat:"category/getCategoriesFlat",categoriesFlatLoading:"category/loadingFlat",auth:"auth/auth",section:"section/getSection"}),...sn({discount:e=>e.discount.detail,sectionLoading:e=>e.section.loading,infoboxesShownCount:e=>e.infobox.list.filter(t=>t.show).length}),queryModel:{get(){return this.query},set(e){this.$emit("update:query",e)}},alternativesCount(){return this.windowWidth>767&&this.windowWidth<992?6:this.windowWidth>575&&this.windowWidth<768?4:5},alternativesFiltered(){return this.productsAlternative?this.productsAlternative.slice(0,this.alternativesCount):[]}},methods:{serializeTextFilter(e){return Array.from(e).join(",")},...V1("section",{loadSections:"load",selectSection:"selectSection"}),...V1("productList",{loadProductsInternal:"loadProducts"}),analytics(){},addAuthorIdToQuery(){this.authorId&&(this.queryModel.author=this.authorId)},onResize(){this.windowWidth=window.innerWidth},useLuigisBoxSearch(e){return!((e.onlyVerifiedAuthors||e.onlyVerifiedAuthors===null)&&(e.onlyVerifiedAuthors===1||e.onlyVerifiedAuthors==="1"||e.onlyVerifiedAuthors===null)||(e.blackAndWhitePrint||e.blackAndWhitePrint===null)&&(e.blackAndWhitePrint===1||e.blackAndWhitePrint==="1"||e.blackAndWhitePrint===null)||this.section&&this.section.type&&["manual","favourite_author"].includes(this.section.type))},loadProducts(e){if(this.hideLuigisBoxSort=!this.useLuigisBoxSearch(e),!this.hideLuigisBoxSort&&QV.includes(e.orderBy)){if(e.size=eq,this.$store.commit("productList/setLoading",!0),this.categoriesFlatLoading){setTimeout(()=>{this.loadProducts(e)},200);return}p4.search(e,this.categoriesFlat,this.auth.id).then(t=>{this.$store.commit("productList/setProducts",t.products),this.$store.commit("productList/setPagination",t.pagination),this.$store.commit("productList/setLoading",!1),this.updateJsonLd()}).catch(()=>{this.$store.commit("productList/setLoading",!1)})}else QV.includes(e.orderBy)&&(e.orderBy="approved_at"),e.perPage=eq,this.loadProductsInternal(e)},updateJsonLd(){this.products.length===0&&CL([],this.queryModel.text,this.jsonLdId,this.jsonLdType)}},mounted(){this.queryModel.text.length>0,this.addAuthorIdToQuery(),this.loadProducts(this.queryModel),this.$nextTick(()=>{window.addEventListener("resize",this.onResize)})},beforeUnmount(){window.removeEventListener("resize",this.onResize)},created(){this.queryModel.section&&this.loadSections().then(()=>{this.selectSection(this.queryModel.section)})},watch:{page(e){let t=Object.fromEntries(Object.entries(this.queryModel).filter(([,n])=>n));t.page=e.toString(),this.$router.push({name:this.$route.name,query:t}).catch(()=>{}),this.$scrollTo("#products",{offset:-400})},queryModel(e){this.page=Number(e.page),this.addAuthorIdToQuery(),this.loadProducts(this.queryModel)},products(){this.analytics()}}},Gyt={key:0,class:"row"},Zyt={key:1},Kyt={key:0,class:"row"},Jyt={key:0,class:"d-flex justify-content-center mt-5"},Xyt={key:2,class:"d-flex justify-content-center align-items-center btn btn-tertiary btn-pager border"},Qyt={class:"d-flex justify-content-center align-items-center btn btn-primary btn-pager border"},ebt={key:7,class:"d-flex justify-content-center align-items-center btn btn-tertiary btn-pager border"},tbt={class:"fw-bold medium"},nbt={key:0,class:"row"};function obt(e,t,n,o,i,r){const s=y("ProductListHeader"),a=y("ProductCardGhost"),l=y("ProductCard"),d=y("AppIcon"),u=y("ProductNotFoundBox");return e.sectionLoading?D("",!0):(h(),g("div",{key:0,class:J(["mb-6",{"mt-4":e.infoboxesShownCount>0||e.discountIsActive}])},[b(s,{query:r.queryModel,"author-id":n.authorId,"product-count":e.loading?0:e.pagination.total,"show-title":n.showTitle,"hide-luigis-box-sort":i.hideLuigisBoxSort},null,8,["query","author-id","product-count","show-title","hide-luigis-box-sort"]),e.loading?(h(),g("div",Gyt,[(h(),g(pe,null,Me(4,f=>c("div",{key:f,class:"col-xs-12 col-sm-6 col-md-4 col-lg-3 px-2"},[b(a)])),64))])):(h(),g("div",Zyt,[e.products.length?(h(),g("div",Kyt,[(h(!0),g(pe,null,Me(e.products,f=>(h(),g("div",{key:f.id,id:"products",class:"col-xs-12 col-sm-6 col-md-4 col-lg-3 px-2"},[b(l,{product:f},null,8,["product"])]))),128)),e.pagination.last_page>1?(h(),g("div",Jyt,[i.page>1?(h(),g("a",{key:0,onClick:t[0]||(t[0]=f=>i.page--),class:"d-flex justify-content-center align-items-center btn btn-tertiary btn-pager btn-pager-left"},[b(d,{icon:"arrow-left"})])):D("",!0),i.page>1?(h(),g("a",{key:1,onClick:t[1]||(t[1]=f=>i.page=1),class:"d-flex justify-content-center align-items-center btn btn-tertiary btn-pager border"},m("1"))):D("",!0),i.page>4?(h(),g("a",Xyt,m(e.$t("public.dots")),1)):D("",!0),i.page-2>1?(h(),g("a",{key:3,onClick:t[2]||(t[2]=f=>i.page-=2),class:"d-flex justify-content-center align-items-center btn btn-tertiary btn-pager border"},m(i.page-2),1)):D("",!0),i.page-1>1?(h(),g("a",{key:4,onClick:t[3]||(t[3]=f=>i.page-=1),class:"d-flex justify-content-center align-items-center btn btn-tertiary btn-pager border"},m(i.page-1),1)):D("",!0),c("a",Qyt,m(i.page),1),i.page+1<e.pagination.last_page?(h(),g("a",{key:5,onClick:t[4]||(t[4]=f=>i.page+=1),class:"d-flex justify-content-center align-items-center btn btn-tertiary btn-pager border"},m(i.page+1),1)):D("",!0),i.page+2<e.pagination.last_page?(h(),g("a",{key:6,onClick:t[5]||(t[5]=f=>i.page+=2),class:"d-flex justify-content-center align-items-center btn btn-tertiary btn-pager border"},m(i.page+2),1)):D("",!0),i.page+3<e.pagination.last_page?(h(),g("a",ebt,m(e.$t("public.dots")),1)):D("",!0),i.page<e.pagination.last_page?(h(),g("a",{key:8,onClick:t[6]||(t[6]=f=>i.page=e.pagination.last_page),class:"d-flex justify-content-center align-items-center btn btn-tertiary btn-pager border"},m(e.pagination.last_page),1)):D("",!0),i.page<e.pagination.last_page?(h(),g("a",{key:9,onClick:t[7]||(t[7]=f=>i.page++),class:"d-flex justify-content-center align-items-center btn btn-tertiary btn-pager border btn-pager-right"},[b(d,{icon:"arrow-right"})])):D("",!0)])):D("",!0)])):(h(),g("div",{key:1,class:J(i.jsonLdId)},[b(u,{query:r.queryModel,class:"mb-4","empty-message":n.emptyMessage},null,8,["query","empty-message"]),c("p",tbt,m(e.$t("product.could_be_interested_in")),1),r.alternativesFiltered.length?(h(),g("div",nbt,[(h(!0),g(pe,null,Me(r.alternativesFiltered,f=>(h(),g("div",{key:f.id,id:"products-alternative",class:"col-xs-12 col-sm-6 col-md-4 col-lg-2dot4 px-2"},[b(l,{product:f,occurance:i.productConfig.occurence.not_found},null,8,["product","occurance"])]))),128))])):D("",!0)],2))]))],2))}const Nse=U(Wyt,[["render",obt]]),ibt={props:{routes:Array,titles:Array,notifications:{type:Array,default(){return[]}},paddingX:Number,borderColor:{type:String,default:"primary"}}},rbt={class:"tabs mh-2dot875rem"},sbt=["onClick"],abt=["href"];function lbt(e,t,n,o,i,r){const s=y("router-link");return h(),g("div",rbt,[c("ul",{class:J(["tabList","px-"+n.paddingX])},[(h(!0),g(pe,null,Me(n.titles,(a,l)=>(h(),W(s,{key:l,to:{name:n.routes[l]},custom:""},{default:F(({href:d,isActive:u,navigate:f})=>[c("li",{onClick:f,class:J([u&&"active","border-"+n.borderColor])},[c("a",{href:d},m(a),9,abt),n.notifications[l]&&n.notifications[l].number?(h(),g("span",{key:0,class:J(["notification","notification-"+n.notifications[l].color])},m(n.notifications[l].number),3)):D("",!0),n.notifications[l]&&n.notifications[l].text?(h(),g("span",{key:1,class:J(["badge rounded-pill ms-2 fw-light","notification-"+n.notifications[l].color])},m(n.notifications[l].text),3)):D("",!0)],10,sbt)]),_:2},1032,["to"]))),128))],2)])}const qr=U(ibt,[["render",lbt]]),cbt={components:{TabList:qr,AppIcon:Ue},props:{query:Object},data(){return{tab:{titles:["Autori","SpolupracujĂci organizace"],routes:["author.author","author.organization"]}}}},dbt={class:"mt-6 d-flex flex-column gap-3"},ubt={class:"col-12 col-md-6"},hbt=["href"];function fbt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("TabList"),l=y("router-view");return h(),g("div",dbt,[c("div",ubt,[c("h2",null,m(e.$t("author.page.title")),1),c("p",null,m(e.$t("author.page.text")),1),c("a",{href:e.ziggyRoute("user.be_author.index")},[z(m(e.$t("author.become.button"))+" ",1),b(s,{icon:"chevron-right",height:20,width:20,class:"ms-icon"})],8,hbt)]),b(a,{titles:i.tab.titles,routes:i.tab.routes,"padding-x":0},null,8,["titles","routes"]),b(l,{query:n.query},null,8,["query"])])}const mbt=U(cbt,[["render",fbt]]),pbt={components:{AppIcon:Ue},props:{placeholder:String,query:Object},data(){return{searchModel:""}},methods:{load(){let e=Object.fromEntries(Object.entries(this.query).filter(([,t])=>t));e.page!==1&&(e.page=1),this.searchModel?e.search=this.searchModel:e.search=void 0,this.$router.push({name:this.$route.name,query:e}).catch(()=>{})}},mounted(){this.loadDebounce=is.debounce(this.load,500),this.searchModel=this.query.search},watch:{searchModel(){this.loadDebounce()},query:{handler(){this.searchModel=this.query.search},deep:!0}}},gbt={class:"input-group"},vbt=["placeholder"];function _bt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",null,[c("div",gbt,[xe(c("input",{type:"search",class:"border-end-0 form-control input-outline-none-focus",id:"search",name:"search","onUpdate:modelValue":t[0]||(t[0]=a=>i.searchModel=a),placeholder:n.placeholder},null,8,vbt),[[wt,i.searchModel]]),c("span",{class:"input-group-text cursor-pointer",onClick:t[1]||(t[1]=(...a)=>r.load&&r.load(...a))},[b(s,{icon:"search",height:"24",width:"24",class:"bg-white text-primary"})])])])}const Rse=U(pbt,[["render",_bt]]);const ybt={components:{AppIcon:Ue},computed:{...Oe({categories:"category/getCategories"}),categoryClasses(){return this.categories?this.categories.class:[]}},methods:{updateQuery(e){if(!e||!e.id)return;const t=this.$route.query.top_class_preference?JSON.parse(this.$route.query.top_class_preference):[],n=t.indexOf(e.id);n>-1?t.splice(n,1):t.push(e.id),this.$router.push({query:{...this.$route.query,top_class_preference:JSON.stringify(t)}})},isActive(e){return!e||!e.id?!1:(this.$route.query.top_class_preference?JSON.parse(this.$route.query.top_class_preference):[]).includes(e.id)}}},bbt={class:"d-flex gap-3"},kbt=["onClick"];function wbt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",null,[c("div",bbt,[(h(!0),g(pe,null,Me(r.categoryClasses.slice(0,r.categoryClasses.length-1),(a,l)=>(h(),g("div",{key:l,class:J(["d-flex align-items-center","discount-select-badge","bg-primary-5","text-nowrap","small","fw-medium","text-gray-800","px-3","py-2","fw-light",{"border-primary bg-primary-10-important text-primary-important":r.isActive(a)}]),onClick:d=>r.updateQuery(a)},[r.isActive(a)?(h(),W(s,{key:0,icon:"close",class:"me-icon"})):D("",!0),z(" "+m(a.name),1)],10,kbt))),128))])])}const jse=U(ybt,[["render",wbt]]),$bt={emits:["pagination-change-page"],props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1}},computed:{isApiResource(){return!!this.data.meta},currentPage(){var e;return this.isApiResource?this.data.meta.current_page:(e=this.data.current_page)!=null?e:null},firstPageUrl(){var e,t,n,o,i;return(i=(o=(t=this.data.first_page_url)!=null?t:(e=this.data.meta)==null?void 0:e.first_page_url)!=null?o:(n=this.data.links)==null?void 0:n.first)!=null?i:null},from(){var e;return this.isApiResource?this.data.meta.from:(e=this.data.from)!=null?e:null},lastPage(){var e;return this.isApiResource?this.data.meta.last_page:(e=this.data.last_page)!=null?e:null},lastPageUrl(){var e,t,n,o,i;return(i=(o=(t=this.data.last_page_url)!=null?t:(e=this.data.meta)==null?void 0:e.last_page_url)!=null?o:(n=this.data.links)==null?void 0:n.last)!=null?i:null},nextPageUrl(){var e,t,n,o,i;return(i=(o=(t=this.data.next_page_url)!=null?t:(e=this.data.meta)==null?void 0:e.next_page_url)!=null?o:(n=this.data.links)==null?void 0:n.next)!=null?i:null},perPage(){var e;return this.isApiResource?this.data.meta.per_page:(e=this.data.per_page)!=null?e:null},prevPageUrl(){var e,t,n,o,i;return(i=(o=(t=this.data.prev_page_url)!=null?t:(e=this.data.meta)==null?void 0:e.prev_page_url)!=null?o:(n=this.data.links)==null?void 0:n.prev)!=null?i:null},to(){var e;return this.isApiResource?this.data.meta.to:(e=this.data.to)!=null?e:null},total(){var e;return this.isApiResource?this.data.meta.total:(e=this.data.total)!=null?e:null},pageRange(){if(this.limit===-1)return 0;if(this.limit===0)return this.lastPage;for(var e=this.currentPage,t=this.keepLength,n=this.lastPage,o=this.limit,i=e-o,r=e+o,s=(o+2)*2,a=(o+2)*2-1,l=[],d=[],u,f=1;f<=n;f++)(f===1||f===n||f>=i&&f<=r||t&&f<s&&e<s-2||t&&f>n-a&&e>n-a+2)&&l.push(f);return l.forEach(function(p){u&&(p-u===2?d.push(u+1):p-u!==1&&d.push("...")),d.push(p),u=p}),d}},methods:{previousPage(){this.selectPage(this.currentPage-1)},nextPage(){this.selectPage(this.currentPage+1)},selectPage(e){e==="..."||e===this.currentPage||this.$emit("pagination-change-page",e)}},render(){return this.$slots.default({data:this.data,limit:this.limit,computed:{isApiResource:this.isApiResource,currentPage:this.currentPage,firstPageUrl:this.firstPageUrl,from:this.from,lastPage:this.lastPage,lastPageUrl:this.lastPageUrl,nextPageUrl:this.nextPageUrl,perPage:this.perPage,prevPageUrl:this.prevPageUrl,to:this.to,total:this.total,pageRange:this.pageRange},prevButtonEvents:{click:e=>{e.preventDefault(),this.previousPage()}},nextButtonEvents:{click:e=>{e.preventDefault(),this.nextPage()}},pageButtonEvents:e=>({click:t=>{t.preventDefault(),this.selectPage(e)}})})}},Cbt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Sbt={compatConfig:{MODE:3},inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderlessPagination:$bt},props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},showDisabled:{type:Boolean,default:!1},keepLength:{type:Boolean,default:!1},size:{type:String,default:"default",validator:e=>["small","default","large"].indexOf(e)!==-1},align:{type:String,default:"left",validator:e=>["left","center","right"].indexOf(e)!==-1}},methods:{onPaginationChangePage(e){this.$emit("pagination-change-page",e)}}},Tbt=["tabindex"],Ebt=c("span",{"aria-hidden":"true"},"«",-1),Ibt=["aria-current"],Pbt=["tabindex"],Abt=c("span",{"aria-hidden":"true"},"»",-1);function Dbt(e,t,n,o,i,r){const s=y("RenderlessPagination");return h(),W(s,{data:n.data,limit:n.limit,"keep-length":n.keepLength,onPaginationChangePage:r.onPaginationChangePage},{default:F(a=>[a.computed.total>a.computed.perPage?(h(),g("ul",Ur({key:0},e.$attrs,{class:["pagination",{"pagination-sm":n.size=="small","pagination-lg":n.size=="large","justify-content-center":n.align=="center","justify-content-end":n.align=="right"}]}),[a.computed.prevPageUrl||n.showDisabled?(h(),g("li",{key:0,class:J(["page-item pagination-prev-nav",{disabled:!a.computed.prevPageUrl}])},[c("a",Ur({class:"page-link",href:"#","aria-label":"Previous",tabindex:!a.computed.prevPageUrl&&-1},Yu(a.prevButtonEvents,!0)),[Pt(e.$slots,"prev-nav",{},()=>[Ebt])],16,Tbt)],2)):D("",!0),(h(!0),g(pe,null,Me(a.computed.pageRange,(l,d)=>(h(),g("li",{class:J(["page-item pagination-page-nav",{active:l==a.computed.currentPage}]),key:d},[c("a",Ur({class:"page-link",href:"#"},Yu(a.pageButtonEvents(l),!0),{"aria-current":l==a.computed.currentPage?"page":null}),m(l),17,Ibt)],2))),128)),a.computed.nextPageUrl||n.showDisabled?(h(),g("li",{key:1,class:J(["page-item pagination-next-nav",{disabled:!a.computed.nextPageUrl}])},[c("a",Ur({class:"page-link",href:"#","aria-label":"Next",tabindex:!a.computed.nextPageUrl&&-1},Yu(a.nextButtonEvents,!0)),[Pt(e.$slots,"next-nav",{},()=>[Abt])],16,Pbt)],2)):D("",!0)],16)):D("",!0)]),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}const Ri=Cbt(Sbt,[["render",Dbt]]),xbt=e=>De.get(Pe("api.author.show",e)),Obt=e=>De.get(Pe("api.user.authors",e)),Lbt=()=>De.get(Pe("api.user.authors.random")),Mbt=()=>De.get(Pe("api.user.authors.count")),Nbt=(e,t)=>De.patch(Pe("dashboard.api.basic.settings.update",{user:e}),t),Rbt=(e,t)=>De.patch(Pe("dashboard.api.basic.settings.update.only-on-ucitelnice",{user:e}),t),jbt=(e,t)=>De.patch(Pe("api.author.image_sources.update",{user:e}),t),Fbt=(e,t)=>De.get(Pe("api.author.slug.test_availability",{user:e,slug:t})),zbt=(e,t)=>De.post(Pe("api.author.favourite",{author:e}),{is_adding:t}),Ubt=e=>De.post(Pe("dashboard.api.basic.settings.checklist.update"),{checklist:e}),Bbt=e=>De.get(Pe("dashboard.api.all.products"),e),Hbt=e=>De.get(Pe("dashboard.api.settlements",{year:e})),Ju={show:xbt,index:Obt,indexRandom:Lbt,count:Mbt,update:Nbt,updateImageSources:jbt,slugTestAvailability:Fbt,addToFavourite:zbt,checklistUpdate:Ubt,products:Bbt,settlements:Hbt,updateOnlyOnUcitelnice:Rbt};const Vbt={components:{AppIcon:Ue},props:{small:{type:Boolean,default:!1},short:{type:Boolean,default:!1},author:{type:Object,default:()=>({is_favourite_author:!1})},parentHovered:{type:Boolean,default:!1},context:{type:String,default:"default"}},data(){return{elemHovered:!1,loading:!1}},computed:{hovered(){return this.elemHovered||this.parentHovered},...Oe({auth:"auth/auth",isFavouriteAuthor:"auth/isFavouriteAuthor"}),isFavourite(){return this.isFavouriteAuthor(this.author.id)},addText(){return this.small||this.short?this.$t("author.favourite.short.add"):this.$t("author.favourite.add")},removeText(){return(this.small||this.short)&&this.context!=="search"?this.$t("author.favourite.short.remove"):this.$t("author.favourite.remove")},isAlreadyText(){return this.small||this.short?this.$t("author.favourite.short.is_already"):this.$t("author.favourite.is_already")},shownText(){return this.hovered?this.isFavourite?this.removeText:this.addText:this.isFavourite?this.isAlreadyText:this.addText}},methods:{changeFavouriteState(){this.loading||(this.auth.check?(this.loading=!0,Ju.addToFavourite(this.author.id,!this.isFavourite).then(()=>{this.isFavourite?window.flash(this.$t("author.favourite.removed"),"success"):window.flash(this.$t("author.favourite.added"),"success"),this.$store.dispatch("author/show",this.author.id),this.$store.commit("auth/setLoaded",!1),this.$store.dispatch("auth/load")}).catch(e=>{window.flash(e)}).finally(()=>{this.loading=!1})):window.loginRegisterModal(window.location.href))}}},qbt=["disabled","data-lb-action","data-action-attitude"];function Ybt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:J(["btn btn-sm btn-center me-0 text-nowrap",[!r.hovered&&r.isFavourite?"btn-tertiary":"btn-primary",r.isFavourite&&n.context==="search"&&!i.elemHovered?"fake-disabled":""]]),disabled:i.loading,onMouseleave:t[0]||(t[0]=a=>i.elemHovered=!1),onMouseover:t[1]||(t[1]=a=>i.elemHovered=!0),onClick:t[2]||(t[2]=Gt(a=>r.changeFavouriteState(),["prevent"])),"data-lb-action":r.isFavourite?"author-unfollow":"author-follow","data-action-attitude":r.isFavourite?"negative":"positive"},[c("span",{class:J(["text-nowrap",{small:n.small}])},m(r.shownText),3),r.isFavourite&&!r.hovered?(h(),W(s,{key:0,icon:"check",height:"20",width:"20",class:"ms-1"})):D("",!0)],42,qbt)}const SL=U(Vbt,[["render",Ybt],["__scopeId","data-v-3d69e1bd"]]),Wbt={props:{discount:{type:Number,required:!0},bgColor:{type:String,default:"#DF4759"},textColor:{type:String,default:"#FFFFFF"},size:{type:String,default:"51px"},padding:{type:String,default:"15px 6px"},gap:{type:String,default:"10px"},borderRadius:{type:String,default:"100px"}}};function Gbt(e,t,n,o,i,r){return h(),g("div",{class:"fw-bold d-flex flex-column justify-content-center align-items-center",style:Bn({width:n.size,height:n.size,padding:n.padding,gap:n.gap,borderRadius:n.borderRadius,backgroundColor:n.bgColor,color:n.textColor})},m("-"+n.discount+"%"),5)}const Zbt=U(Wbt,[["render",Gbt]]),Kbt={components:{Pill:Ni}};function Jbt(e,t,n,o,i,r){const s=y("Pill");return h(),W(s,{color:"success-primary",class:"fw-medium"},{default:F(()=>[z(m(e.$t("public.new_profile")),1)]),_:1})}const Fse=U(Kbt,[["render",Jbt]]),Xbt={components:{Pill:Ni}};function Qbt(e,t,n,o,i,r){const s=y("app-icon"),a=y("Pill");return h(),W(a,{color:"success",class:"d-flex align-items-center"},{default:F(()=>[b(s,{icon:"gift",class:"me-1"}),z(" "+m(e.$t("author.promo_product.pill")),1)]),_:1})}const e0t=U(Xbt,[["render",Qbt]]),t0t={components:{AuthorAddToFavouriteButton:SL,Pill:Ni,AppIcon:Ue,AuthorNewPill:Fse,AuthorPromoProductPill:e0t,AuthorDiscountBubble:Zbt},props:{author:{type:Object,required:!0}},data(){return{divStyle:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 1) 175%)"}}},methods:{updateBackgroundColor(e){const t=e.target,n=document.createElement("canvas"),o=n.getContext("2d");n.width=t.width,n.height=t.height,o.drawImage(t,0,0,t.width,t.height);const i=o.getImageData(0,0,t.width,t.height).data,r={};let s=0,a=[0,0,0];for(let l=0;l<i.length;l+=4){const d=i[l],u=i[l+1],f=i[l+2];if(d>215&&u>215&&f>215||d<40&&u<40&&f<40)continue;const p=`${d},${u},${f}`;r[p]=(r[p]||0)+1,r[p]>s&&(s=r[p],a=[d,u,f])}this.divStyle.background=`linear-gradient(180deg, rgba(${a.join(",")}, 0.8) 0%, rgba(255, 255, 255, 1) 175%)`}}},n0t=["href"],o0t={class:"d-flex flex-column flex-grow-1 gap-3 position-relative align-items-center py-3 overflow-hidden"},i0t={key:2,class:"position-absolute overflow-hidden h-7dot1875rem w-100 mt-neg-3"},r0t=["src","alt"],s0t={key:3,class:"position-absolute overflow-hidden h-7dot1875rem w-100 mt-neg-3"},a0t=["src","alt"],l0t={class:"d-flex flex-column align-items-center gap-1"},c0t={class:"text-center"},d0t={class:"text-gray-800 fw-medium mb-0"},u0t={key:0,class:"text-gray-700 fw-medium medium mb-0"},h0t={class:"medium text-gray-700 d-flex align-items-center gap-2"},f0t={class:"d-flex align-items-center text-nowrap"},m0t={class:"d-flex align-items-center text-nowrap"},p0t={class:"d-flex flex-wrap gap-2 mt-1"},g0t={class:"d-flex justify-content-center border-top border-primary-10 py-3"};function v0t(e,t,n,o,i,r){const s=y("AuthorNewPill"),a=y("AuthorDiscountBubble"),l=y("AppIcon"),d=y("Pill"),u=y("AuthorPromoProductPill"),f=y("AuthorAddToFavouriteButton");return h(),g("a",{href:e.ziggyRoute("user.show",{id:n.author.id}),class:"d-flex flex-column rounded border border-primary-10 mb-3 shadow-low-hover"},[c("div",o0t,[n.author.is_author_new?(h(),W(s,{key:0,class:"position-absolute start-0 top-0 mt-3 ms-3"})):D("",!0),n.author.discount?(h(),W(a,{key:1,discount:n.author.discount.discount,class:"position-absolute end-0 top-0 mt-3 me-3"},null,8,["discount"])):D("",!0),n.author.cover_img?(h(),g("div",i0t,[c("img",{src:n.author.cover_img,class:"position-absolute border-bottom border-1 border-primary-10 object-fit-cover blurred h-7dot1875rem w-100 z-index-neg-1",alt:n.author.public_alias??n.author.first_name+" "+n.author.last_name},null,8,r0t)])):(h(),g("div",s0t,[c("div",{style:Bn(i.divStyle),class:"position-absolute border-bottom border-1 border-primary-10 blurred h-100 h-7dot1875rem w-100 z-index-neg-1"},null,4)])),c("img",{src:n.author.image_detail,class:"rounded-circle object-fit-cover bg-white border border-2 border-primary-10 mt-4",width:"102",height:"102",alt:n.author.public_alias??n.author.first_name+" "+n.author.last_name,onLoad:t[0]||(t[0]=(...p)=>r.updateBackgroundColor&&r.updateBackgroundColor(...p))},null,40,a0t),c("div",l0t,[c("div",c0t,[c("p",d0t,m(n.author.public_alias??n.author.first_name+" "+n.author.last_name),1),n.author.public_alias&&n.author.first_name+" "+n.author.last_name!=n.author.public_alias?(h(),g("p",u0t,m(n.author.first_name+" "+n.author.last_name),1)):D("",!0)]),c("div",h0t,[c("div",f0t,[b(l,{icon:"materials",class:"me-1"}),z(" "+m(n.author.products_count_lang),1)]),t[1]||(t[1]=z(" "+m("|")+" ")),c("div",m0t,[b(l,{icon:"user",class:"me-1"}),z(" "+m(n.author.followers_count),1)])]),c("div",p0t,[n.author.top_class_preference?(h(),W(d,{key:0,color:"muted"},{default:F(()=>[z(m(n.author.top_class_preference.name),1)]),_:1})):D("",!0),n.author.promo_product?(h(),W(u,{key:1})):D("",!0)])])]),c("div",g0t,[b(f,{author:n.author,class:"btn-tertiary",short:""},null,8,["author"])])],8,n0t)}const zse=U(t0t,[["render",v0t]]),_0t={components:{Loading:Rt,QuerySearch:Rse,Bootstrap5Pagination:Ri,AuthorTopClassPreferenceSelect:jse,AuthorCard:zse},props:{query:Object},data(){return{authors:{data:[]},loading:!1,primaryColor:window.primaryColor}},methods:{loadAuthors(){this.loading=!0,Ju.index({search:this.query.search,top_class_preference:this.query.top_class_preference,page:this.query.page,perPage:12}).then(e=>{this.authors=e.data,this.loading=!1})},setPage(e){let t=Object.fromEntries(Object.entries(this.query).filter(([,n])=>n));t.page=e,this.$router.push({name:this.$route.name,query:t}).catch(()=>{})}},created(){this.loadAuthors()},watch:{query(){this.loadAuthors()}}},y0t={class:"row mb-5"},b0t={class:"d-flex flex-column gap-3 col-12 col-md-6 col-lg-4"},k0t={class:"row vl-parent mh-8"},w0t={key:0,class:"text-center text-muted"};function $0t(e,t,n,o,i,r){const s=y("QuerySearch"),a=y("AuthorTopClassPreferenceSelect"),l=y("Loading"),d=y("AuthorCard"),u=y("Bootstrap5Pagination");return h(),g("div",null,[c("div",y0t,[c("div",b0t,[b(s,{placeholder:e.$t("author.page.search.placeholder"),query:n.query},null,8,["placeholder","query"]),b(a)])]),c("div",k0t,[b(l,{active:i.loading,"onUpdate:active":t[0]||(t[0]=f=>i.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),!i.loading&&i.authors.data.length===0?(h(),g("h4",w0t,m(e.$t("author.not_found")),1)):D("",!0),(h(!0),g(pe,null,Me(i.authors.data,f=>(h(),g("div",{key:f.id,class:"col-12 col-md-6 col-lg-4 d-flex"},[b(d,{author:f,class:"flex-grow-1"},null,8,["author"])]))),128))]),i.loading?D("",!0):(h(),W(u,{key:0,data:i.authors,limit:1,onPaginationChangePage:r.setPage,class:"mt-4 z-index-neg-1",align:"center"},null,8,["data","onPaginationChangePage"]))])}const C0t=U(_0t,[["render",$0t]]),S0t={components:{Loading:Rt,QuerySearch:Rse,Bootstrap5Pagination:Ri,AuthorTopClassPreferenceSelect:jse,AuthorCard:zse},props:{query:Object},data(){return{organizations:{data:[]},loading:!1,primaryColor:window.primaryColor}},methods:{loadAuthors(){this.loading=!0,Ase.index({search:this.query.search,top_class_preference:this.query.top_class_preference,page:this.query.page,perPage:12}).then(e=>{this.organizations=e.data,this.loading=!1})},setPage(e){let t=Object.fromEntries(Object.entries(this.query).filter(([,n])=>n));t.page=e,this.$router.push({name:this.$route.name,query:t}).catch(()=>{})}},created(){this.loadAuthors()},watch:{query(){this.loadAuthors()}}},T0t={class:"row mb-5"},E0t={class:"d-flex flex-column gap-3 col-12 col-md-6 col-lg-4"},I0t={class:"row vl-parent mh-8"},P0t={key:0,class:"text-center text-muted"};function A0t(e,t,n,o,i,r){const s=y("QuerySearch"),a=y("AuthorTopClassPreferenceSelect"),l=y("Loading"),d=y("AuthorCard"),u=y("Bootstrap5Pagination");return h(),g("div",null,[c("div",T0t,[c("div",E0t,[b(s,{placeholder:e.$t("author.page.search.placeholder"),query:n.query},null,8,["placeholder","query"]),b(a)])]),c("div",I0t,[b(l,{active:i.loading,"onUpdate:active":t[0]||(t[0]=f=>i.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),!i.loading&&i.organizations.data.length===0?(h(),g("h4",P0t,m(e.$t("author.organization.not_found")),1)):D("",!0),(h(!0),g(pe,null,Me(i.organizations.data,f=>(h(),g("div",{key:f.id,class:"col-12 col-md-6 col-lg-4 d-flex"},[b(d,{author:f,class:"flex-grow-1"},null,8,["author"])]))),128))]),i.loading?D("",!0):(h(),W(u,{key:0,data:i.organizations,limit:1,onPaginationChangePage:r.setPage,class:"mt-4 z-index-neg-1",align:"center"},null,8,["data","onPaginationChangePage"]))])}const D0t=U(S0t,[["render",A0t]]),x0t={computed:{...sn({coverImage:e=>e.author.detail.cover_img})}},O0t=["src"];function L0t(e,t,n,o,i,r){return e.coverImage?(h(),g("img",{key:0,src:e.coverImage,class:"author-cover-image-height author-cover-image-rounded border h-100 w-100 object-fit-cover",alt:"Cover Image"},null,8,O0t)):D("",!0)}const M0t=U(x0t,[["render",L0t]]),N0t={components:{AppIcon:Ue,DiscountIcon:c6,Pill:Ni,AuthorNewPill:Fse},computed:{...Oe({author:"author/getDetail",discountIsActive:"discount/getIsActive"}),...sn({discount:e=>e.discount.detail}),discountPrefix(){return this.discount&&this.discount.discount&&this.discount.code?this.$t("author.products.discount_active_none",{discount:this.discount.discount,code:this.discount.code}):null},discountIconPrefix(){return this.author&&this.author.author_discount?this.author.author_discount.type=="selected_products"?this.$t("author.products.discount_selected",{discount:this.author.author_discount.discount}):this.$t("author.products.discount_all",{discount:this.author.author_discount.discount}):this.discountPrefix}}},R0t={class:"d-flex align-items-center flex-wrap"},j0t={class:"mb-0"},F0t={key:0,class:"mb-2 mt-2 medium text-gray-700"};function z0t(e,t,n,o,i,r){const s=y("AppIcon"),a=y("AuthorNewPill"),l=y("DiscountIcon"),d=y("Pill");return h(),g("div",null,[c("div",R0t,[c("h3",j0t,m(e.author.public_alias?e.author.public_alias:e.author.first_name+" "+e.author.last_name),1),e.author.is_verified?(h(),W(s,{key:0,icon:"check-fill",class:"text-success ms-icon",width:"24",height:"24"})):D("",!0),e.author.is_author_new?(h(),W(a,{key:1,class:"d-none d-lg-block ms-2"})):D("",!0),(e.discountIsActive||e.author.author_discount)&&r.discountIconPrefix?(h(),W(l,{key:2,prefix:r.discountIconPrefix,amount:null,class:"ms-2"},null,8,["prefix"])):D("",!0)]),e.author.public_alias?(h(),g("p",F0t,m(e.author.first_name+" "+e.author.last_name),1)):D("",!0),c("div",null,[e.author.professional_focus_name?(h(),W(d,{key:0,color:"muted",class:"d-inline-block fw-medium small"},{default:F(()=>[z(m(e.author.professional_focus_name),1)]),_:1})):D("",!0)])])}const U0t=U(N0t,[["render",z0t]]),B0t={data(){return{showFullDescription:!1,isChildOverflown:!1,observer:null}},computed:{...Oe({author:"author/getDetail"})},methods:{updateOverflown(){let e="author-description";const t=document.getElementById(e);t||(this.isChildOverflown=!1),t.hasChildNodes()||(this.isChildOverflown=!1);const n=t.getBoundingClientRect().bottom;for(let o=0;o<t.children.length;o++)if(t.children[o].getBoundingClientRect().bottom>n){this.isChildOverflown=!0;return}this.isChildOverflown=!1},initObserver(){const e=()=>{this.$nextTick(()=>{this.updateOverflown()})},t=new MutationObserver(e);t.observe(this.$refs["author-description"],{subtree:!1,childList:!0}),this.observer=t}},mounted(){this.initObserver()},beforeUnmount(){this.observer&&this.observer.disconnect()}},H0t=["innerHTML"];function V0t(e,t,n,o,i,r){return h(),g("div",null,[c("p",{class:J(["medium text-gray-700 mb-0 transition-author-description",i.showFullDescription?"transition-author-description-long maxh-4000rem":"maxh-4rem overflow-hidden"]),innerHTML:e.author.description,id:"author-description",ref:"author-description"},null,10,H0t),i.isChildOverflown?(h(),g(pe,{key:0},[i.showFullDescription?(h(),g("button",{key:1,onClick:t[1]||(t[1]=s=>i.showFullDescription=!1),class:"btn btn-sm btn-link px-0"},m(e.$t("author.description.show_less")),1)):(h(),g("button",{key:0,onClick:t[0]||(t[0]=s=>i.showFullDescription=!0),class:"btn btn-sm btn-link px-0"},m(e.$t("author.description.show_more")),1))],64)):D("",!0)])}const q0t=U(B0t,[["render",V0t]]),Y0t={components:{AppIcon:Ue},computed:{...Oe({author:"author/getDetail"})}},W0t={class:"text-wrap text-sm-nowrap"},G0t=["href"],Z0t=["href"],K0t=["href"],J0t=["href"],X0t=["href"];function Q0t(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",W0t,[e.author.web?(h(),g("a",{key:0,class:"link-gray-800 mx-1",target:"_blank",href:e.author.web},[b(s,{icon:"web",height:"24",width:"24"})],8,G0t)):D("",!0),e.author.facebook?(h(),g("a",{key:1,class:"link-gray-800 mx-1",target:"_blank",href:e.author.facebook},[b(s,{icon:"facebook",height:"24",width:"24"})],8,Z0t)):D("",!0),e.author.instagram?(h(),g("a",{key:2,class:"link-gray-800 mx-1",target:"_blank",href:e.author.instagram},[b(s,{icon:"instagram",height:"24",width:"24"})],8,K0t)):D("",!0),e.author.youtube?(h(),g("a",{key:3,class:"link-gray-800 mx-1",target:"_blank",href:e.author.youtube},[b(s,{icon:"youtube",height:"24",width:"24"})],8,J0t)):D("",!0),e.author.pinterest?(h(),g("a",{key:4,class:"link-gray-800 mx-1",target:"_blank",href:e.author.pinterest},[b(s,{icon:"pinterest",height:"24",width:"24"})],8,X0t)):D("",!0)])}const e2t=U(Y0t,[["render",Q0t]]),t2t={computed:{...Oe({author:"author/getDetail"})}},n2t={class:"d-flex flex-wrap"},o2t={class:"medium text-gray-700 mb-0 me-5"},i2t={class:"fw-bold"},r2t={class:"medium text-gray-700 mb-0"},s2t={class:"fw-bold"};function a2t(e,t,n,o,i,r){return h(),g("div",n2t,[c("p",o2t,[z(m(e.$t("product.count")+": ")+" ",1),c("span",i2t,m(e.author.products_count),1)]),c("p",r2t,[z(m(e.$t("author.count_followers")+": ")+" ",1),c("span",s2t,m(e.author.is_favourite_of),1)])])}const l2t=U(t2t,[["render",a2t]]),c2t={components:{AuthorAddToFavouriteButton:SL,AuthorPublicBlock:U0t,AuthorPublicDescription:q0t,AuthorPublicContact:e2t,AuthorPublicStats:l2t},computed:{...Oe({author:"author/getDetail"})}},d2t={class:"d-flex"},u2t={class:"me-3 me-md-5"},h2t=["src","alt"],f2t=["src","alt"],m2t={class:"d-flex justify-content-center d-md-none mt-3"},p2t={class:"flex-grow-1"},g2t={class:"d-flex justify-content-between mb-2"},v2t={class:"row align-items-end"},_2t={class:"col-12 col-md-7 col-xl-6"},y2t={class:"col-12 col-md-5 col-xl-6"};function b2t(e,t,n,o,i,r){const s=y("AuthorAddToFavouriteButton"),a=y("AuthorPublicBlock"),l=y("AuthorPublicStats"),d=y("AuthorPublicDescription"),u=y("AuthorPublicContact");return h(),g("div",d2t,[c("div",u2t,[c("img",{src:e.author.image_detail,alt:e.author.first_name+" "+e.author.last_name,width:"220",height:"220",class:"rounded-circle border object-fit-cover d-none d-md-block"},null,8,h2t),c("img",{src:e.author.image_detail,alt:e.author.first_name+" "+e.author.last_name,width:"80",height:"80",class:"rounded-circle border object-fit-cover d-block d-md-none"},null,8,f2t),c("div",m2t,[b(s,{small:""})])]),c("div",p2t,[c("div",g2t,[b(a),c("div",null,[b(s,{author:e.author,class:"d-none d-md-block"},null,8,["author"])])]),b(l,{ref:"author-public-stats",class:"mb-3"},null,512),c("div",v2t,[c("div",_2t,[b(d)]),c("div",y2t,[b(u,{class:"text-end mt-3"})])])])])}const k2t=U(c2t,[["render",b2t]]),w2t={components:{AuthorPublicHeader:k2t,AuthorCoverImage:M0t},props:{author:Object,query:Object},computed:{...Oe({loadingProductGroup:"authorProductGroup/getLoading",loadingProducts:"productList/loading"}),loading(){return this.loadingProductGroup||this.loadingProducts}},mounted(){this.$store.commit("author/setDetail",this.author)},watch:{loading(e){!e&&"promo-material"in this.$route.query&&this.$nextTick(()=>{this.$scrollTo(window.$("#publicPromoProduct")[0],{offset:-200})})}}},$2t={class:"mb-6 mt-3"},C2t={class:"mt-4"};function S2t(e,t,n,o,i,r){const s=y("AuthorCoverImage"),a=y("AuthorPublicHeader"),l=y("router-view");return h(),g("div",$2t,[Pt(e.$slots,"default"),b(s,{class:"mb-3"}),c("div",C2t,[b(a,{class:"mb-0 mb-5"}),t[0]||(t[0]=c("hr",{class:"my-5"},null,-1)),b(l,{query:n.query,"author-id":n.author.id},null,8,["query","author-id"])])])}const tq=U(w2t,[["render",S2t]]);const T2t={};function E2t(e,t,n,o,i,r){return h(),g("div",null,t[0]||(t[0]=[wl('<svg width="58" height="58" viewBox="0 0 58 58" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-3ddc8c4a><g clip-path="url(#clip0_106_6052)" data-v-3ddc8c4a><path d="M48.2735 17.9476L40.1958 16.6671C43.0063 14.6794 45.0457 11.6067 45.626 7.94641C45.7885 6.92099 45.089 5.95795 44.0636 5.79539C39.312 5.04212 34.7411 6.93268 31.8529 10.3745C30.1707 6.20814 26.4087 2.99656 21.6572 2.2433C20.6317 2.08074 19.6687 2.78022 19.5061 3.80564C18.9259 7.46594 19.915 11.0187 21.9729 13.7782L13.8951 12.4976C12.8697 12.3351 11.9066 13.0345 11.7441 14.06L6.29404 48.4385C6.13149 49.4639 6.83097 50.4269 7.85638 50.5895L42.2348 56.0395C43.2602 56.2021 44.2233 55.5026 44.3858 54.4772L49.8358 20.0986C49.9984 19.0732 49.2989 18.1102 48.2735 17.9476ZM43.6918 34.8425L30.216 32.7062L32.3523 19.2303L45.8281 21.3666L43.6918 34.8425ZM41.3446 9.41324C39.9952 12.7629 36.8175 15.071 33.2146 15.3182C34.5641 11.9685 37.7419 9.66042 41.3446 9.41324ZM29.0289 14.6546C25.6792 13.3051 23.3712 10.1274 23.1239 6.5246C26.4735 7.87406 28.7816 11.0518 29.0289 14.6546ZM28.6389 18.6416L26.5026 32.1175L13.0268 29.9812L15.1631 16.5053L28.6389 18.6416ZM12.4381 33.6945L25.9139 35.8308L23.7776 49.3068L10.3017 47.1705L12.4381 33.6945ZM27.491 49.8954L29.6273 36.4195L43.1031 38.5558L40.9668 52.0318L27.4909 49.8955L27.491 49.8954Z" fill="#F2F2F2" data-v-3ddc8c4a></path></g><defs data-v-3ddc8c4a><clipPath id="clip0_106_6052" data-v-3ddc8c4a><rect width="49.9106" height="49.9106" fill="white" transform="translate(7.81445) rotate(9.00812)" data-v-3ddc8c4a></rect></clipPath></defs></svg><svg width="49" height="58" viewBox="0 0 49 58" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-3ddc8c4a><g clip-path="url(#clip0_106_6050)" data-v-3ddc8c4a><path d="M44.0968 12.4562L36.0418 13.8727C38.053 11.0789 38.982 7.51 38.3401 3.85999C38.1603 2.83746 37.1856 2.15431 36.1631 2.33412C31.4249 3.16735 27.7174 6.44187 26.1057 10.636C23.1599 7.24333 18.5578 5.43006 13.8197 6.26327C12.7971 6.44309 12.114 7.41777 12.2938 8.44031C12.9357 12.0903 15.0266 15.1282 17.8701 17.0682L9.81506 18.4847C8.79253 18.6645 8.10937 19.6392 8.28919 20.6618L14.3177 54.9436C14.4975 55.9661 15.4722 56.6493 16.4948 56.4694L50.7765 50.4409C51.799 50.2611 52.4821 49.2864 52.3023 48.2639L46.2738 13.9821C46.094 12.9596 45.1193 12.2764 44.0968 12.4562ZM45.2596 29.9226L31.8216 32.2857L29.4585 18.8478L42.8965 16.4847L45.2596 29.9226ZM34.7687 6.63963C34.5822 10.2461 32.328 13.4622 29.0015 14.868C29.1881 11.2614 31.4423 8.04524 34.7687 6.63963ZM24.8275 15.6019C21.2211 15.4153 18.0049 13.1611 16.5992 9.83468C20.2056 10.0212 23.4218 12.2754 24.8275 15.6019ZM25.7556 19.499L28.1187 32.9369L14.6808 35.3L12.3177 21.8621L25.7556 19.499ZM15.3319 39.0029L28.7699 36.6398L31.133 50.0779L17.6951 52.441L15.3319 39.0029ZM34.8359 49.4266L32.4728 35.9886L45.9107 33.6255L48.2738 47.0636L34.8359 49.4267L34.8359 49.4266Z" fill="#F2F2F2" data-v-3ddc8c4a></path></g><defs data-v-3ddc8c4a><clipPath id="clip0_106_6050" data-v-3ddc8c4a><rect width="49.9106" height="49.9106" fill="white" transform="translate(0 8.64453) rotate(-9.97363)" data-v-3ddc8c4a></rect></clipPath></defs></svg><svg width="231" height="184" viewBox="0 0 231 184" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-3ddc8c4a><g clip-path="url(#clip0_106_6048)" data-v-3ddc8c4a><path d="M190.829 89.0114L162.797 79.3318C174.089 74.012 183.313 64.3305 187.7 51.6284C188.928 48.07 187.04 44.1892 183.481 42.9604C166.992 37.2665 149.477 41.1266 136.988 51.5892C133.616 35.6499 122.215 21.8043 105.726 16.1105C102.167 14.8818 98.2865 16.7703 97.0578 20.3287C92.6716 33.0308 93.9569 46.3414 99.5597 57.4951L71.5278 47.8154C67.9694 46.5866 64.0886 48.4752 62.8599 52.0336L21.6637 171.335C20.4349 174.893 22.3235 178.774 25.8819 180.003L145.183 221.199C148.741 222.428 152.622 220.539 153.851 216.981L195.047 97.6794C196.276 94.1209 194.387 90.2402 190.829 89.0114ZM163.788 146.437L117.023 130.289L133.172 83.5244L179.936 99.6727L163.788 146.437ZM171.486 54.1587C164.55 65.2653 151.744 71.4969 138.724 70.1017C145.661 58.9949 158.466 52.7632 171.486 54.1587ZM124.199 65.0856C113.092 58.1495 106.861 45.3441 108.256 32.3241C119.362 39.2603 125.594 52.0656 124.199 65.0856ZM120.285 79.0747L104.137 125.839L57.3729 109.691L73.5212 62.9264L120.285 79.0747ZM52.9231 122.577L99.6875 138.725L83.5391 185.49L36.7747 169.342L52.9231 122.577ZM96.4254 189.939L112.574 143.175L159.338 159.323L143.19 206.088L96.4252 189.94L96.4254 189.939Z" fill="#F2F2F2" data-v-3ddc8c4a></path></g><defs data-v-3ddc8c4a><clipPath id="clip0_106_6048" data-v-3ddc8c4a><rect width="180.977" height="180.977" fill="white" transform="translate(59.0703) rotate(19.0504)" data-v-3ddc8c4a></rect></clipPath></defs></svg>',3)]))}const I2t=U(T2t,[["render",E2t],["__scopeId","data-v-3ddc8c4a"]]);const P2t={components:{SvgGiftBackground:I2t,AppIcon:Ue},computed:{...Oe({author:"author/getDetail"}),categoriesByType(){return this.categories?{class:this.categories.filter(e=>e.type==="class"),subject:this.categories.filter(e=>e.type==="subject"),format:this.categories.filter(e=>e.type==="format"),theme:this.categories.filter(e=>e.type==="theme"),kind:this.categories.filter(e=>e.type==="kind")}:{}},categories(){return this.author.promo_product.categories}},methods:{downloadsCountIncrease(){this.$store.dispatch("authorPromoProduct/downloadsCountIncrease",this.author.promo_product.id)}}},A2t={class:"bg-alabaster rounded row p-4 justify-content-center position-relative"},D2t={class:"col-auto px-0 me-0 me-md-4"},x2t=["src","alt"],O2t={class:"col-12 col-md z-index-1"},L2t={class:"row justify-content-center"},M2t={class:"col-12 col-lg-8"},N2t={class:"small text-gray-700 mb-1"},R2t={class:"mb-1"},j2t={class:"medium text-gray-800 mb-1"},F2t={class:"row"},z2t={class:"col-12 col-sm-6 mt-3"},U2t={class:"text-gray-800 medium mb-0"},B2t={key:0},H2t={class:"col-12 col-sm-6 mt-3"},V2t={class:"text-gray-800 medium mb-0"},q2t={key:0},Y2t={class:"col-12 col-sm-6 mt-3"},W2t={class:"text-gray-800 medium mb-0"},G2t={key:0},Z2t={class:"col-12 col-sm-6 mt-3"},K2t={class:"text-gray-800 medium mb-0"},J2t={key:0},X2t={class:"col mt-4 mt-lg-0 text-lg-end text-center px-0"},Q2t=["href"];function e3t(e,t,n,o,i,r){const s=y("AppIcon"),a=y("SvgGiftBackground");return h(),g("div",A2t,[c("div",D2t,[c("img",{src:e.author.promo_product.img_path,alt:e.author.promo_product.title,class:"img-fluid border rounded w-100 maxh-20dot8125rem maxh-md-15dot625rem mb-4 mb-lg-0 w-auto"},null,8,x2t)]),c("div",O2t,[c("div",L2t,[c("div",M2t,[c("p",N2t,m(e.$t("author.promo_product.title")),1),c("h3",R2t,m(e.author.promo_product.title),1),c("p",j2t,m(e.author.promo_product.description),1),c("div",F2t,[c("div",z2t,[c("p",U2t,m(e.$t("category.headline.class")),1),r.categoriesByType.class.length?(h(!0),g(pe,{key:1},Me(r.categoriesByType.class,l=>(h(),g("span",{class:"me-1",key:l.id},m(l.name),1))),128)):(h(),g("span",B2t,m(e.$t("public.dash")),1))]),c("div",H2t,[c("p",V2t,m(e.$t("category.headline.subject")),1),r.categoriesByType.subject.length?(h(!0),g(pe,{key:1},Me(r.categoriesByType.subject,l=>(h(),g("span",{class:"me-1",key:l.id},m(l.name),1))),128)):(h(),g("span",q2t,m(e.$t("public.dash")),1))]),c("div",Y2t,[c("p",W2t,m(e.$t("category.headline.theme")),1),r.categoriesByType.theme.length?(h(!0),g(pe,{key:1},Me(r.categoriesByType.theme,l=>(h(),g("span",{class:"me-1",key:l.id},m(l.name),1))),128)):(h(),g("span",G2t,m(e.$t("public.dash")),1))]),c("div",Z2t,[c("p",K2t,m(e.$t("category.kind")),1),r.categoriesByType.kind.length?(h(!0),g(pe,{key:1},Me(r.categoriesByType.kind,l=>(h(),g("span",{class:"me-1",key:l.id},m(l.name),1))),128)):(h(),g("span",J2t,m(e.$t("public.dash")),1))])])]),c("div",X2t,[e.author.promo_product?(h(),g("a",{key:0,href:e.author.promo_product.download_url,target:"_blank",class:"btn btn-tertiary btn-center btn-sm",onClick:t[0]||(t[0]=(...l)=>r.downloadsCountIncrease&&r.downloadsCountIncrease(...l))},[z(m(e.$t("author.promo_product.download"))+" ",1),b(s,{icon:"download",height:"20",width:"20",class:"ms-icon"})],8,Q2t)):D("",!0)])])]),b(a,{class:"gift-background p-0"})])}const t3t=U(P2t,[["render",e3t],["__scopeId","data-v-eff03bc6"]]),n3t={props:{group:Object},computed:{routeName(){return this.$route.name=="author.show.profile"?"author.show.product_group":"author.show.public.product_group"},routeParams(){return this.$route.name=="author.show.profile"?{id:this.$route.params.id,slug:this.group.slug}:{author_slug:this.$route.params.author_slug,group_slug:this.group.slug}}}},o3t={class:"d-flex flex-column rounded border h-100"},i3t=["src"],r3t={class:"py-3 px-4"},s3t={class:"mb-0"},a3t={class:"small text-gray-700 mb-0"};function l3t(e,t,n,o,i,r){const s=y("router-link");return h(),W(s,{to:{name:r.routeName,params:r.routeParams},class:"link-dark text-decoration-underline-hover"},{default:F(()=>[c("div",o3t,[c("div",{class:J(["border-radius-bottom-none flex-grow-1 rounded d-flex justify-content-center align-items-center overflow-hidden border-bottom",[n.group.cover_img?"":"h-author-product-group bg-empty-"+n.group.id%6]])},[n.group.cover_img?(h(),g("img",{key:0,src:n.group.cover_img,class:"h-100 w-100 overflow-hidden",alt:"Thumbnail"},null,8,i3t)):D("",!0)],2),c("div",r3t,[c("h4",s3t,m(n.group.title),1),c("p",a3t,m(e.$tc("product.materials_count",{count:n.group.product_count})),1)])])]),_:1},8,["to"])}const c3t=U(n3t,[["render",l3t]]),d3t={components:{AuthorPublicProductGroupBox:c3t},props:{authorId:Number},computed:{...Oe({groups:"authorProductGroup/getShown"})},mounted(){this.$store.dispatch("authorProductGroup/index",{user:this.authorId,shown:!0})}},u3t={class:"row"};function h3t(e,t,n,o,i,r){const s=y("AuthorPublicProductGroupBox");return h(),g("div",u3t,[(h(!0),g(pe,null,Me(e.groups,a=>(h(),g("div",{key:a.id,class:"col-12 col-lg-4 col-md-6 mb-5"},[b(s,{group:a},null,8,["group"])]))),128))])}const f3t=U(d3t,[["render",h3t]]),m3t={components:{AuthorPublicProductGroupList:f3t,ProductList:Nse,AuthorPublicPromo:t3t},props:{authorId:Number,query:{type:Object,default(){return{text:[],category:[],page:1}}}},computed:{...Oe({author:"author/getDetail",groups:"authorProductGroup/getShown"})},mounted(){ai.specialUrlPageView("pageview-author-shop")}},p3t={key:1,class:"my-0"},g3t={class:"text-center mt-5 mb-6"};function v3t(e,t,n,o,i,r){const s=y("AuthorPublicProductGroupList"),a=y("AuthorPublicPromo"),l=y("ProductList");return h(),g("div",null,[b(s,{"author-id":n.authorId},null,8,["author-id"]),e.author.promo_product?(h(),W(a,{key:0,id:"publicPromoProduct",class:"mb-5"})):D("",!0),e.author.promo_product||e.groups.length?(h(),g("hr",p3t)):D("",!0),c("h3",g3t,m(e.$t("author.products.all")+" "+e.$tm("user.author_gender")[e.author.gender?e.author.gender:"female"].gen),1),b(l,{"author-id":n.authorId,query:n.query,"show-title":!1,"empty-message":e.$t("author.product_not_found")},null,8,["author-id","query","empty-message"])])}const nq=U(m3t,[["render",v3t]]),_3t={components:{AppIcon:Ue,Loading:Rt,ProductCard:m6},props:{authorId:Number},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({group:"authorProductGroup/getDetail",loading:"authorProductGroup/getDetailLoading"}),routeBackName(){return this.$route.name=="author.show.product_group"?"author.show.profile":"author.show.public.profile"},routeBackParams(){return this.$route.name=="author.show.product_group"?{id:this.$route.params.id}:{author_slug:this.$route.params.author_slug}}},mounted(){this.$store.dispatch("authorProductGroup/show",{user:this.authorId,slug:this.$route.name=="author.show.product_group"?this.$route.params.slug:this.$route.params.group_slug,public:!0}),ai.specialUrlPageView("pageview-author-group")}},y3t={class:"vl-parent mh-8 mt-6"},b3t={key:0},k3t={class:"position-absolute"},w3t={class:"btn btn-sm btn-center btn-secondary"},$3t={class:"row"},C3t={key:0,class:"text-center text-gray-600 mb-0"},S3t={class:"text-center mb-5"};function T3t(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("router-link"),d=y("ProductCard");return h(),g("div",y3t,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.loading?D("",!0):(h(),g("div",b3t,[c("div",k3t,[b(l,{to:{name:r.routeBackName,params:r.routeBackParams}},{default:F(()=>[c("button",w3t,[b(a,{icon:"arrow-left",class:"me-icon"}),z(" "+m(e.$t("public.back_to_profile")),1)])]),_:1},8,["to"])]),c("div",$3t,[e.group.title?(h(),g(pe,{key:1},[c("h2",S3t,m(e.group.title),1),(h(!0),g(pe,null,Me(e.group.products,u=>(h(),g("div",{key:u.id,id:"author-group-products",class:"col-xs-12 col-sm-6 col-md-4 col-lg-3 px-2"},[b(d,{product:u},null,8,["product"])]))),128))],64)):(h(),g("h3",C3t,m(e.$t("author_product_group.not_found")),1))])]))])}const oq=U(_3t,[["render",T3t]]),E3t=""+new URL("school_localization-4d3a08a6.svg",import.meta.url).href,I3t={components:{AppIcon:Ue},props:{type:{type:String,default:"info"},icon:{type:Boolean,default:!0},verticalAlign:{type:String,default:"center"}}};function P3t(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",{class:J(["d-flex","align-items-"+n.verticalAlign])},[n.icon?(h(),g("span",{key:0,class:J({"mt-1":n.verticalAlign=="start"})},[n.type=="info"?(h(),W(s,{key:0,icon:"info-circle",class:"me-icon text-success"})):D("",!0),n.type=="success"?(h(),W(s,{key:1,icon:"check-circle",class:"me-icon text-success"})):D("",!0),n.type=="failure"?(h(),W(s,{key:2,icon:"delete-circle",class:"me-icon text-failure"})):D("",!0)],2)):D("",!0),c("span",{class:J(["flex-grow-1","text-"+n.type])},[Pt(e.$slots,"default")],2)],2)}const A3t=U(I3t,[["render",P3t]]),D3t={props:{pickedSchool:{type:Object,default(){return{manager:null}}},showManager:{type:Boolean,default:!1}},computed:{pickedSchoolInfo(){if(this.pickedSchool===null)return"";{let e=this.pickedSchool;return e.name+", "+e.city+", "+e.address}}}},x3t={class:"p-4 bg-primary-5 border-radius-8px"},O3t={class:"text-gray-600 medium"},L3t=["innerHTML"],M3t={key:0,class:"d-flex mt-5 flex-wrap"},N3t={class:"me-6"},R3t={class:"medium text-gray-600"},j3t={class:"mb-0"},F3t={class:"medium text-gray-600"},z3t={class:"mb-0"};function U3t(e,t,n,o,i,r){return h(),g("div",x3t,[c("span",O3t,m(e.$t("school.step.pick.picked_school")),1),c("p",{class:"mb-0",innerHTML:r.pickedSchoolInfo},null,8,L3t),n.showManager&&n.pickedSchool&&n.pickedSchool.manager?(h(),g("div",M3t,[c("div",N3t,[c("span",R3t,m(e.$t("school.step.pick.manager_name")),1),c("p",j3t,m(n.pickedSchool.manager.first_name+" "+n.pickedSchool.manager.last_name),1)]),c("div",null,[c("span",F3t,m(e.$t("school.step.pick.manager_email")),1),c("p",z3t,m(n.pickedSchool.manager.email),1)])])):D("",!0)])}const K3=U(D3t,[["render",U3t]]),B3t={props:{school:{type:Object,default(){return{izo:null}}}}},H3t={class:"cursor-pointer bg-primary-5 bg-primary-10-hover rounded ms-auto ms-md-down-none w-md-down-100 p-2"},V3t={class:"row"},q3t={class:"col-auto"},Y3t={class:"col-auto ml-auto"},W3t={class:"row"},G3t={class:"col-12 medium"};function Z3t(e,t,n,o,i,r){return h(),g("div",H3t,[c("div",V3t,[c("div",q3t,m(n.school.name),1),c("div",Y3t,m(e.$t("school.step.pick.ico")+": "+n.school.ico),1)]),c("div",W3t,[c("div",G3t,m(n.school.address+", "+n.school.postcode+" "+n.school.city),1)])])}const K3t=U(B3t,[["render",Z3t]]),J3t={props:{isInputError:{type:Boolean,default(){return!1}},placeholder:{type:String,default(){return""}},errorMessage:{type:String,default(){return""}},value:{type:String,default(){return""}}},computed:{valueModel:{set(e){this.$emit("update:value",e)},get(){return this.value}}}},X3t={class:"flex-grow-1"},Q3t={class:"input-group has-validation"},ekt=["placeholder"],tkt={key:0,class:"invalid-feedback"};function nkt(e,t,n,o,i,r){return h(),g("div",X3t,[c("div",Q3t,[xe(c("input",{id:"search",class:J({"form-control":!0,"is-invalid":n.isInputError}),placeholder:n.placeholder,type:"text",name:"search","onUpdate:modelValue":t[0]||(t[0]=s=>r.valueModel=s)},null,10,ekt),[[wt,r.valueModel]]),Pt(e.$slots,"label"),n.isInputError?(h(),g("span",tkt,m(n.errorMessage),1)):D("",!0)])])}const okt=U(J3t,[["render",nkt]]),ikt=e=>De.get(Pe("school.api.index",e)),rkt=(e,t)=>De.post(Pe("school.api.unregistered.register",e),t),skt=(e,t)=>De.post(Pe("school.api.registered.register",e),t),akt=()=>De.get(Pe("school.employee.api.manager")),lkt=()=>De.post(Pe("school.employee.api.leave")),ckt=()=>De.get(Pe("school.manager.api.show")),dkt=e=>De.patch(Pe("school.manager.api.accounting.email.update"),{accounting_email:e}),tg={index:ikt,manager:akt,leave:lkt,unregistreredRegister:rkt,registreredRegister:skt,show:ckt,accountingEmailUpdate:dkt},ukt={components:{Loading:Rt,Notification:A3t,PickedSchoolCard:K3,SchoolInputSelectCard:K3t,TextSearchInput:okt,TransitionCollapseHeight:qo,AppIcon:Ue},props:{user:{type:Object,default(){return null}}},data(){return{schoolsLoading:!1,primaryColor:window.primaryColor,pickedSchool:null,schools:[],searchText:null,closeResults:!1,searchEdited:!1,schoolLocalization:E3t}},methods:{chooseSchool(){this.pickedSchool&&this.$emit("school",this.pickedSchool)},selectSchool(e){this.closeResults=!0,this.pickedSchool=e},loadFilteredSchools(){if(this.searchText.length<1){this.schools=[];return}this.closeResults=!0,this.schoolsLoading=!0,tg.index({searchUnregistered:this.searchText}).then(e=>{this.schoolsLoading=!1,this.schools=e.data.schools,this.closeResults=!1,this.searchEdited||(this.searchEdited=!0)}).catch(e=>{this.schoolsLoading=!1,window.flash(e,"error")})}},computed:{isInputError(){return this.searchEdited?this.schools.length<1&&!this.schoolsLoading:!1},showResults(){return this.closeResults||this.schools.length<1?!1:this.searchText?this.searchText.length>0:!1}},created(){this.loadFilteredSchools=is.debounce(this.loadFilteredSchools,500)},watch:{searchText(){this.loadFilteredSchools()}}},hkt={class:"content-box shadow vl-parent p-5"},fkt={class:"text-center mb-4"},mkt={class:"row justify-content-center text-center"},pkt=["src"],gkt={class:"text-center mb-5"},vkt={class:"row"},_kt={class:"col-12 col-xl-12"},ykt={key:0,class:"school-select-container p-3 pt-0"},bkt={class:"text-gray-600 position-sticky pt-3 mb-2"},kkt=["onClick"],wkt={key:0,class:"row"},$kt={class:"col-12 mt-3"},Ckt={key:0,class:"row mt-4"},Skt={class:"col-12 mt-5"},Tkt={key:1,class:"row mt-4"},Ekt={class:"col-12 mt-5"};function Ikt(e,t,n,o,i,r){const s=y("Loading"),a=y("TextSearchInput"),l=y("SchoolInputSelectCard"),d=y("TransitionCollapseHeight"),u=y("PickedSchoolCard"),f=y("Notification"),p=y("AppIcon");return h(),g("div",hkt,[b(s,{active:i.schoolsLoading,"onUpdate:active":t[0]||(t[0]=v=>i.schoolsLoading=v),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("h3",fkt,m(e.$t("school.register_online")),1),c("div",mkt,[c("img",{src:i.schoolLocalization,height:"125",class:"mb-3"},null,8,pkt)]),c("h4",gkt,m(e.$t("school.step.pick.text")),1),c("div",vkt,[c("div",_kt,[b(a,{value:i.searchText,"onUpdate:value":t[1]||(t[1]=v=>i.searchText=v),placeholder:e.$t("school.step.pick.placeholder"),"is-input-error":r.isInputError,"error-message":e.$t("school.step.pick.not_found")},null,8,["value","placeholder","is-input-error","error-message"]),b(d,null,{default:F(()=>[r.showResults?(h(),g("div",ykt,[c("div",bkt,m(e.$t("school.step.pick.found_schools")),1),(h(!0),g(pe,null,Me(i.schools,v=>(h(),g("div",{key:v.izo,onClick:_=>r.selectSchool(v),class:"mt-2 mb-2"},[b(l,{school:v},null,8,["school"])],8,kkt))),128))])):D("",!0)]),_:1})])]),i.pickedSchool?(h(),g("div",wkt,[c("div",$kt,[b(u,{"picked-school":i.pickedSchool,"show-manager":!1,class:"py-3"},null,8,["picked-school"]),i.pickedSchool.registered?(h(),g("div",Ckt,[b(f,{type:"success"},{default:F(()=>[z(m(e.$t("school.step.pick.message_registered")),1)]),_:1}),c("div",Skt,[c("button",{class:"btn btn-primary btn-center w-100",onClick:t[2]||(t[2]=(...v)=>r.chooseSchool&&r.chooseSchool(...v))},[z(m(e.$t("school.step.pick.button_registered"))+" ",1),b(p,{icon:"arrow-right",class:"ms-icon",height:"20",width:"20"})])])])):(h(),g("div",Tkt,[b(f,{type:"failure"},{default:F(()=>[z(m(e.$t("school.step.pick.message_unregistered")),1)]),_:1}),c("div",Ekt,[c("button",{class:"btn btn-primary btn-center w-100",onClick:t[3]||(t[3]=(...v)=>r.chooseSchool&&r.chooseSchool(...v))},[z(m(e.$t("school.step.pick.button_unregistered"))+" ",1),b(p,{icon:"arrow-right",class:"ms-icon",height:"20",width:"20"})])])]))])])):D("",!0)])}const Pkt=U(ukt,[["render",Ikt]]),Akt={components:{AppIcon:Ue},props:{iconMarginEnd:{type:String,default:"2"}}},Dkt={class:"d-flex align-items-center"};function xkt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Dkt,[b(s,{icon:"verified-author",class:J(["text-gray-700","me-"+n.iconMarginEnd]),height:"24",width:"24"},null,8,["class"]),Pt(e.$slots,"default")])}const TL=U(Akt,[["render",xkt]]),Okt={components:{CheckListItem:TL}},Lkt={class:"row"},Mkt={class:"mb-4"},Nkt={class:"mb-0 text-gray-800"},Rkt={class:"row"},jkt={class:"fw-bold text-gray-800 mt-2"},Fkt={style:{"pointer-events":"none",cursor:"default","text-decoration":"none",color:"#42ba96 !important"}},zkt={class:"row"},Ukt={class:"col-12 col-lg-6 my-2"},Bkt={class:"col-12 col-lg-6 my-2"},Hkt={class:"col-12 col-lg-6 my-2"},Vkt={class:"col-12 col-lg-6 my-2"};function qkt(e,t,n,o,i,r){const s=y("CheckListItem");return h(),g("div",null,[c("div",Lkt,[c("h1",Mkt,m(e.$t("school.info.welcome.headline")),1),c("p",Nkt,m(e.$t("school.info.welcome.text")),1)]),t[0]||(t[0]=c("hr",{class:"mt-4 mb-5"},null,-1)),c("div",Rkt,[c("p",jkt,[z(m(e.$t("school.info.welcome.advantages.text.0"))+" ",1),c("a",Fkt,m(e.$t("school.info.welcome.advantages.text.1")),1)]),c("div",zkt,[c("div",Ukt,[b(s,null,{default:F(()=>[z(m(e.$t("school.info.welcome.advantages.items.0")),1)]),_:1})]),c("div",Bkt,[b(s,null,{default:F(()=>[z(m(e.$t("school.info.welcome.advantages.items.1")),1)]),_:1})]),c("div",Hkt,[b(s,null,{default:F(()=>[z(m(e.$t("school.info.welcome.advantages.items.2")),1)]),_:1})]),c("div",Vkt,[b(s,null,{default:F(()=>[z(m(e.$t("school.info.welcome.advantages.items.3")),1)]),_:1})])])])])}const Ykt=U(Okt,[["render",qkt]]),Wkt=""+new URL("keys-962209b0.svg",import.meta.url).href,Gkt=""+new URL("doors-860a8029.svg",import.meta.url).href,Use=""+new URL("pointing_fingers-413e0f1d.svg",import.meta.url).href,Zkt={props:{image:String,headline:String,text:String,linkText:String,linkLocation:Function}},Kkt=["src"],Jkt={class:"mb-2"},Xkt={class:"medium text-gray-600"};function Qkt(e,t,n,o,i,r){return h(),g("div",null,[c("img",{class:"mb-4 position-relative z-index-1",src:n.image,height:"80"},null,8,Kkt),c("h4",Jkt,m(n.headline),1),c("p",Xkt,m(n.text),1)])}const ewt=U(Zkt,[["render",Qkt]]),twt=""+new URL("school-line-39119d39.png",import.meta.url).href,nwt={components:{SchoolInfoCard:ewt},data(){return{keys:Wkt,doors:Gkt,pointing_fingers:Use,schoolLine:twt}},methods:{scrollToSchoolSearch(){this.$scrollTo("#sectionSchoolSearch",{offset:-150})},scrollToFaq(){this.$scrollTo("#sectionFaq",{offset:-150})},scrollToFirstFaq(){this.$emit("scroll-to-first-faq")}}},owt={class:"text-center"},iwt={class:"mb-6"},rwt={class:"d-none d-lg-block position-relative"},swt={class:"position-absolute start-0 mt-3 ms-20 z-index-0"},awt=["src"],lwt={class:"d-none d-lg-block position-relative"},cwt={class:"position-absolute end-0 mt-3 me-20 z-index-0"},dwt=["src"],uwt={class:"row"},hwt={class:"col-12 col-lg-4 mb-6 mb-lg-0"},fwt={class:"col-12 col-lg-4 mb-6 mb-lg-0"},mwt={class:"col-12 col-lg-4 mb-6 mb-lg-0"};function pwt(e,t,n,o,i,r){const s=y("SchoolInfoCard");return h(),g("div",owt,[c("h2",iwt,m(e.$t("school.info.functionality.headline")),1),c("div",rwt,[c("div",swt,[c("img",{src:i.schoolLine},null,8,awt)])]),c("div",lwt,[c("div",cwt,[c("img",{src:i.schoolLine},null,8,dwt)])]),c("div",uwt,[c("div",hwt,[b(s,{image:i.keys,headline:e.$t("school.info.functionality.1.headline"),text:e.$t("school.info.functionality.1.text")},null,8,["image","headline","text"])]),c("div",fwt,[b(s,{image:i.doors,headline:e.$t("school.info.functionality.2.headline"),text:e.$t("school.info.functionality.2.text")},null,8,["image","headline","text"])]),c("div",mwt,[b(s,{image:i.pointing_fingers,headline:e.$t("school.info.functionality.3.headline"),text:e.$t("school.info.functionality.3.text")},null,8,["image","headline","text"])])])])}const gwt=U(nwt,[["render",pwt]]),vwt={components:{CheckListItem:TL},props:{items:Array,iconMarginEnd:{type:String,default:"2"},itemMarginBottom:{type:String,default:"4"},textSize:{type:String,default:"large"}}};function _wt(e,t,n,o,i,r){const s=y("CheckListItem");return h(),g("div",null,[(h(!0),g(pe,null,Me(n.items,(a,l)=>(h(),W(s,{class:J(["mb-none-last","mb-"+n.itemMarginBottom]),key:l,"icon-margin-end":n.iconMarginEnd},{default:F(()=>[c("span",{class:J(n.textSize)},m(a),3)]),_:2},1032,["icon-margin-end","class"]))),128))])}const Bse=U(vwt,[["render",_wt]]),ywt=""+new URL("school_ucitelnice-f3c91a1f.svg",import.meta.url).href,bwt={components:{CheckList:Bse},data(){return{schoolUcitelnice:ywt}},methods:{scrollToSchoolSearch(){this.$scrollTo("#sectionSchoolSearch",{offset:-150})}}},kwt={class:"row d-flex align-items-center"},wwt={class:"col-12 col-md-6"},$wt={class:"mb-5"},Cwt={class:"link-primary",style:{"pointer-events":"none",cursor:"default","text-decoration":"none"}},Swt={class:"row pe-6 mb-5"},Twt={class:"col-12 col-md-6 mt-6 mt-md-0"},Ewt=["src","alt"];function Iwt(e,t,n,o,i,r){const s=y("CheckList");return h(),g("div",kwt,[c("div",wwt,[c("h2",$wt,[c("a",Cwt,m(e.$t("school.info.summary.headline.0")),1),z(" "+m(e.$t("school.info.summary.headline.1")),1)]),c("div",Swt,[b(s,{items:e.$tm("school.info.summary.items"),"item-margin-bottom":"5"},null,8,["items"])]),c("div",null,[c("a",{href:"",onClick:t[0]||(t[0]=Gt((...a)=>r.scrollToSchoolSearch&&r.scrollToSchoolSearch(...a),["prevent"])),class:"btn btn-primary px-5 py-2"},m(e.$t("school.info.summary.button")),1)])]),c("div",Twt,[c("img",{src:i.schoolUcitelnice,alt:e.$t("school.account"),class:"img-fluid",style:{"-webkit-filter":"filter: drop-shadow(0px 8px 16px rgba(21, 41, 53, 0.1))",filter:"drop-shadow(0px 8px 16px rgba(21, 41, 53, 0.1))"}},null,8,Ewt)])])}const Pwt=U(bwt,[["render",Iwt]]),X5={showAddBudgetDiscount:!0,budget:{min_value:1},faq:{1:{subtitle:"Registrace",items:{1:{short:"Platà škola za registraci nÄ›jakĂ˝ poplatek? Je registrace závazná?",long:"<p>Registrace je zdarma a k niÄŤemu se nezavazujete. NeplatĂ se žádnĂ˝ mÄ›sĂÄŤnĂ paušál, pouze za konkrĂ©tnĂ materiály, kterĂ© si vyberete. MĹŻĹľete si koupit jenom jeden materiál nebo dobĂt kredit malou částkou a vyzkoušet si, jestli je to pro vás to pravĂ©.</p>"},2:{short:"Naše škola váhá s registracà školnĂho účtu. Máte pro nás nÄ›jaká doporuÄŤenĂ nebo tipy?",long:'<p>PĹ™ipravili jsme pro vás <a href="https://soubory.ucitelnice.cz/ucitelnice-pro-skoly.pdf" target="_blank">tahák k UÄŤitelnici pro školy</a> - sepsali jsme do nÄ›j to nejdĹŻleĹľitÄ›jšà o UÄŤitelnici a o tom, a jak vám mĹŻĹľe pomoct ve škole. VyuĹľijete ho tĹ™eba pro pĹ™edstavenĂ vedenà školy nebo vašim kolegĹŻm.</p><p>Máte dalšà otázky nebo chcete prodiskutovat moĹľnosti konkrĂ©tnÄ› pro vaši školu? Napište nám e-mail na <a href="mailto:info@ucitelnice.cz" target="_blank">info@ucitelnice.cz</a> nebo zavolejte na <a href="tel:603 883 606" target="_blank">603 883 606</a>. Rádi vám pomĹŻĹľeme.</p>'},3:{short:"Co má na starost správce školnĂho účtu?",long:'<p>Správce má celou vaši UÄŤitelnici pod palcem.</p><ul><li>Schvaluje žádosti o pĹ™Ăstup všech vašich kolegĹŻ.</li><li>Spravuje finance, doklady a dobĂjĂ kredit.</li><li>Je styÄŤnou osobou pro kontakt s UÄŤitelnicĂ.</li></ul><p>Správcem nemusĂ bĂ˝t jen Ĺ™editel školy, ale i jeho zástupce nebo uÄŤitel. A svou roli správce mĹŻĹľe kdykoliv pĹ™edat nÄ›komu jinĂ©mu. Jen je tĹ™eba mĂt soukromĂ˝ účet na UÄŤitelnici.</p><p>JeštÄ› ho nemáte? <a href="/registrace">Zaregistrujte se</a>.</p>'},4:{short:"MĹŻĹľu se ke školnĂmu účtu pĹ™ipojit i s osobnĂm e-mailem?",long:"<p>Ano, naopak doporuÄŤujeme vyuĹľĂt vaši stávajĂcĂ registraci. NenĂ nutnĂ© vytvářet novĂ˝ účet se školnĂm e-mailem. Ĺ kolnĂ materiály budete mĂt od osobnĂch pĹ™ehlednÄ› oddÄ›lenĂ© a správce školnĂho účtu má v pĹ™ĂpadÄ› potĹ™eby moĹľnost kontroly, kdo má pĹ™Ăstup ke školnĂm materiálĹŻm nebo kreditu.</p>"}}},2:{subtitle:"Správa školnĂho účtu",items:{5:{short:"Jak mohu pĹ™idat uÄŤitele ke školnĂmu účtu?",long:"<p>V administraci najdete jedineÄŤnĂ˝ odkaz pozvánky, ten jednoduše rozešlete kolegĹŻm napĹ™. e-mailem.</p><p>UÄŤitelĂ©, kteřà UÄŤitelnici pouĹľĂvali pĹ™ed zaloĹľenĂm školnĂho účtu se mohou pĹ™ipojit pod svĂ˝m souÄŤasnĂ˝m účtem, nenĂ nutnĂ© zakládat novĂ˝.</p>"},6:{short:"Lze jednotlivĂ˝m uÄŤitelĹŻm omezit dostupnĂ˝ kredit?",long:"<p>Maximálnà částku, kterou mohou za materiály uĹľivatelĂ© utratit, nastavĂte ve se správÄ› Ĺ kolnĂho účtu. Nákupy budete mĂt pod kontrolou a limity mĹŻĹľete kdykoliv upravit, snĂĹľit nebo odebrat.</p>"},7:{short:"Jak odebrat uÄŤitele ze školnĂho účtu?",long:'<p>Ve <a href="/skola/sprava/kolegove">správÄ› školy</a> kliknÄ›te u danĂ©ho uĹľivatele na tlaÄŤĂtko "Odebrat uĹľivatele".</p><p>Typicky tuto moĹľnost vyuĹľijete v pĹ™ĂpadÄ› odchodu nÄ›kterĂ©ho z kolegĹŻ nebo pokud se nÄ›kdo omylem pĹ™ihlásĂ pod jinĂ˝m účtem.</p>'}}},3:{subtitle:"Platba a doklady",items:{8:{short:"Jak zaúčtovat platbu kreditu? Jak a kdy dostaneme daĹovĂ˝ doklad?",long:'<p>Po pĹ™ipsánĂ platby na náš účet, vám automaticky vystavĂme daĹovĂ˝ doklad. AĹĄ jde o dobitĂ kreditu nebo objednávku konkrĂ©tnĂch materiálĹŻ. MĹŻĹľete si dobĂt kredit, celou částku ihned zaúčtovat a kredit vyÄŤerpat pozdÄ›ji (ideálnĂ napĹ™. pro vyÄŤerpánĂ rozpoÄŤtĹŻ).</p><p>DaĹovĂ© doklady vĹľdy posĂláme na e-mail uĹľivatele, kterĂ˝ objednávku provedl (nejÄŤastÄ›ji správce školy). Pokud máte uloĹľenĂ˝ e-mail pro potĹ™eby účetnictvĂ (napĹ™. účetnĂ nebo Ĺ™editel), všechny doklady pošleme i tam. Správce školy má pak uloĹľenĂ© všechny doklady i pĹ™Ămo na <a href="/skola/sprava/objednavky">UÄŤitelnici</a></p>'},9:{short:"Jak se dobijĂ kredit na školnà účet?",long:'<p>Kredit dobijete dvÄ›ma zpĹŻsoby:</p><ol><li>Ve <a href="/skola/sprava/objednavky">SprávÄ› školy</a> si vygenerujte zálohovou fakturu na libovolnou částku. Po uhrazenĂ vám pĹ™ipĂšeme kredit.</li><li>Pokud nepotĹ™ebujete zálohovou fakturu, pošlete libovolnou částku na účet ÄŤ. 2901717999/2010 a jako VS zvolte IÄŚO svĂ© školy, kterou jste zaregistrovali. Tento zpĹŻsob je vhodnĂ˝ pro pravidelnĂ© platby, kdyĹľ chcete mĂt stejnĂ˝ VS.</li></ol>'},10:{short:"Jak dlouho lze ÄŤerpat dobitĂ˝ kredit?",long:"<p>Kredit platĂ 15 mÄ›sĂcĹŻ od dobitĂ.</p><p>PĹ™ed koncem platnosti vám pošleme upozornÄ›nĂ, abyste kredit nezapomnÄ›li vyÄŤerpat.</p>"},11:{short:"Kde zjistĂm, jakĂ© materiály jsme si za kredit koupili?",long:'<p>K poslednĂmu dni v mÄ›sĂci pro vás automaticky pĹ™ipravĂme dokument s pĹ™ehledem ÄŤerpánĂ kreditu, tj. všech nakoupenĂ˝ch materiálĹŻ od všech uĹľivatelĹŻ v danĂ©m mÄ›sĂci.</p><p>PĹ™ehled najdete ve <a href="https://www.ucitelnice.cz/skola/sprava/finance/mesicni-prehled-nakupu">správÄ› financĂ</a>.</p>'}}},4:{subtitle:"Materiály",items:{11:{short:"Kdo mĹŻĹľe pouĹľĂvat zakoupenĂ© školnĂ materiály?",long:"<p>Materiály koupenĂ© ze školnĂho účtu patřà škole a mohou se sdĂlet mezi kolegy danĂ© školy. V pĹ™ĂpadÄ› odchodu uÄŤitele, materiály zĹŻstávajà škole.</p>"},12:{short:"Je moĹľnĂ© pĹ™evĂ©st dĹ™Ăve zakoupenĂ© materiály pod školnà účet a sdĂlet je s kolegy?",long:"<p>To z dĹŻvodu obchodnĂch a licenÄŤnĂch podmĂnek bohuĹľel moĹľnĂ© nenĂ. Materiály zakoupenĂ© pĹ™ed spuštÄ›nĂm školnĂch účtĹŻ byly licencovanĂ© pouze pro osobnĂ pouĹľitĂ a obchodnĂ podmĂnky nám neumoĹľĹujĂ takovĂ© materiály nabĂdnout právnickĂ© osobÄ›, tedy škole.</p>"},13:{short:"MĹŻĹľu si koupit materiály jen pro sebe, i kdyĹľ jsem součástà školnĂho účtu?",long:"<p>Ano. StaÄŤĂ vybrat moĹľnost Koupit pro sebe a zaplatit objednávku.</p><p>V rámci jednĂ© objednávky nejde koupit část pro sebe a část pro školu, ale to vám vĹľdy pĹ™ipomeneme.</p><p>SoukromÄ› zakoupenĂ© materiály pak budete mĂt oddÄ›lenĂ© od školnĂch, aĹĄ se v tom neztratĂte.</p>"}}}}},Awt={props:{target:{type:String,default:"_blank"}}},Dwt=["href","target"];function xwt(e,t,n,o,i,r){return h(),g("a",{href:"mailto:"+e.$t("public.ucitelnice_email"),target:n.target},m(e.$t("public.ucitelnice_email")),9,Dwt)}const Xy=U(Awt,[["render",xwt]]);const Owt={components:{ContactEmailAnchor:Xy,AccordionItem:Ml},props:{data:Object,showTitle:{type:Boolean,default:!0},initOpenedIndex:{type:Number,default:-1}}},Lwt={key:0},Mwt={class:"mb-4"},Nwt=["href"],Rwt={class:"my-3"},jwt=["id"],Fwt={class:"accordion-title"},zwt=["innerHTML"];function Uwt(e,t,n,o,i,r){const s=y("ContactEmailAnchor"),a=y("AccordionItem");return h(),g("div",null,[n.showTitle?(h(),g("h3",Lwt,m(e.$t("school.info.faq.headline")),1)):D("",!0),c("p",Mwt,[z(m(e.$t("school.info.faq.text.0"))+" ",1),b(s),z(" "+m(e.$t("school.info.faq.text.1"))+" ",1),c("a",{href:"tel:"+e.$t("public.ucitelnice_phone_long"),target:"_blank"},m(e.$t("public.ucitelnice_phone")),9,Nwt),z(" "+m(e.$t("school.info.faq.text.2")),1)]),(h(!0),g(pe,null,Me(n.data,(l,d)=>(h(),g("div",{key:d},[c("h4",Rwt,m(l.subtitle),1),c("div",{class:"row faq-accordion",id:"accordions-school"+d},[(h(!0),g(pe,null,Me(l.items,(u,f)=>(h(),W(a,{class:"col-12",key:f,index:e.$t("public.dash")+f,parent:"accordions-school"+d,ref_for:!0,ref:"accordion","init-opened":Number(f)===n.initOpenedIndex},{title:F(()=>[c("div",Fwt,m(u.short),1)]),body:F(()=>[c("div",{class:"accordion-body pb-5",innerHTML:u.long},null,8,zwt)]),_:2},1032,["index","parent","init-opened"]))),128))],8,jwt)]))),128))])}const Hse=U(Owt,[["render",Uwt],["__scopeId","data-v-7f347c39"]]),Bwt={components:{SchoolFaqAccordion:Hse},data(){return{accordionData:X5.faq}},methods:{openFirstFaq(){this.$refs.accordion.openItem(0)}}},Hwt={class:"row justify-content-center",id:"sectionFaq"},Vwt={class:"text-center mb-5"},qwt={class:"col-12 col-md-8"},Ywt={class:"content-box shadow rounded p-5 mt-2"};function Wwt(e,t,n,o,i,r){const s=y("SchoolFaqAccordion");return h(),g("div",Hwt,[c("h2",Vwt,m(e.$t("school.info.faq.headline")),1),c("div",qwt,[c("div",Ywt,[b(s,{data:i.accordionData,"show-title":!1},null,8,["data"])])])])}const Gwt=U(Bwt,[["render",Wwt]]),Jd={email:"info@ucitelnice.cz",email_idea:"napady@ucitelnice.cz",phone:{local:"603 883 606",global:"+420603883606"}},Zwt={components:{SchoolPicker:Pkt,SchoolWelcome:Ykt,SchoolFunctionality:gwt,SchoolSummary:Pwt,SchoolFaq:Gwt},props:{user:{type:Object,default(){return{first_name:"",last_name:"",email:""}}},inviteSchool:{type:Object,default(){return{izo:null}}}},data(){return{pickedSchool:{izo:null,name:"",registered:!1},firstFaqOpen:!1,email:Jd.email}},methods:{picked(e){this.pickedSchool=e,window.location.href="/skola/registrace/"+this.pickedSchool.id},openFirstFaq(){this.$refs.schoolFaq.openFirstFaq()}}},Kwt={class:"col-12 mt-5"},Jwt={class:"row d-flex align-items-center mt-5 mb-6"},Xwt={class:"col-12 col-md-7"},Qwt={class:"col-12 col-md-5 mt-6 mt-md-0",id:"sectionSchoolSearch"},e8t={class:"px-4 mb-0 text-gray-800"},t8t=["href"],n8t={class:"w-full-page bg-primary-5"},o8t={class:"container maxw-82dot5rem"},i8t={class:"row"},r8t={class:"col-12 mt-6 mb-6"},s8t={class:"row"},a8t={class:"col-12 mt-6 mb-6"},l8t={class:"mt-5"},c8t={class:"row"},d8t={class:"col-12 mt-6 z-index-1"};function u8t(e,t,n,o,i,r){const s=y("SchoolWelcome"),a=y("SchoolPicker"),l=y("SchoolFunctionality"),d=y("SchoolSummary"),u=y("SchoolFaq");return h(),g("div",Kwt,[c("div",Jwt,[c("div",Xwt,[b(s)]),c("div",Qwt,[b(a,{onSchool:r.picked,user:n.user,"invite-school":n.inviteSchool,class:"mb-3"},null,8,["onSchool","user","invite-school"]),c("p",e8t,[z(m(e.$t("contact.need_help.title_long"))+" ",1),c("a",{href:"mailto:"+i.email},m(i.email),9,t8t)])])]),c("div",n8t,[c("div",o8t,[c("div",i8t,[c("div",r8t,[b(l,{onScrollToFirstFaq:r.openFirstFaq,class:"mt-2"},null,8,["onScrollToFirstFaq"])])])])]),c("div",s8t,[c("div",a8t,[c("div",l8t,[b(d,{class:"mt-2"})])])]),c("div",c8t,[c("div",d8t,[b(u,{class:"mt-2 mb-neg-36dot25rem",ref:"schoolFaq"},null,512)])])])}const Vse=U(Zwt,[["render",u8t]]),kg=e=>{if(e=Et(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let t in e)return!0;return!1}return!!String(e).length},qse=e=>(e=Et(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function wg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o=>(o=Et(o),!kg(o)||t.every(i=>(i.lastIndex=0,i.test(o))))}wg(/^[a-zA-Z]*$/);wg(/^[a-zA-Z0-9]*$/);var h8t=wg(/^\d*(\.\d+)?$/),DP={$validator:h8t,$message:"Value must be numeric",$params:{type:"numeric"}};const f8t=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;var m8t=wg(f8t),Rf={$validator:m8t,$message:"Value is not a valid email address",$params:{type:"email"}};function p8t(e){return t=>!kg(t)||qse(t)<=Et(e)}function hi(e){return{$validator:p8t(e),$message:t=>{let{$params:n}=t;return`The maximum length allowed is ${n.max}`},$params:{max:e,type:"maxLength"}}}function g8t(e){return t=>!kg(t)||qse(t)>=Et(e)}function Ua(e){return{$validator:g8t(e),$message:t=>{let{$params:n}=t;return`This field should be at least ${n.min} characters long`},$params:{min:e,type:"minLength"}}}function v8t(e){return typeof e=="string"&&(e=e.trim()),kg(e)}var Yt={$validator:v8t,$message:"Value is required",$params:{type:"required"}};const iq=(e,t)=>e?kg(typeof t=="string"?t.trim():t):!0;function _8t(e){return function(t,n){if(typeof e!="function")return iq(Et(e),t);const o=e.call(this,t,n);return iq(o,t)}}function Ld(e){return{$validator:_8t(e),$message:"The value is required",$params:{type:"requiredIf",prop:e}}}function y8t(e){return t=>Et(t)===Et(e)}function $6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"other";return{$validator:y8t(e),$message:n=>`The value must be equal to the ${t} value`,$params:{equalTo:e,otherName:t,type:"sameAs"}}}const b8t=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;var k8t=wg(b8t),nc={$validator:k8t,$message:"The value is not a valid URL address",$params:{type:"url"}};function w8t(e){return t=>!kg(t)||(!/\s/.test(t)||t instanceof Date)&&+t>=+Et(e)}function Ra(e){return{$validator:w8t(e),$message:t=>{let{$params:n}=t;return`The minimum value allowed is ${n.min}`},$params:{min:e,type:"minValue"}}}function $8t(e){return t=>!kg(t)||(!/\s/.test(t)||t instanceof Date)&&+t<=+Et(e)}var Vd=e=>({$validator:$8t(e),$message:t=>{let{$params:n}=t;return`The maximum value allowed is ${n.max}`},$params:{max:e,type:"maxValue"}});wg(/(^[0-9]*$)|(^-[0-9]+$)/);wg(/^[-]?\d*(\.\d+)?$/);function rq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function Sm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rq(Object(n),!0).forEach(function(o){C8t(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rq(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function C8t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sq(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((n,o)=>(t.includes(o)||(n[o]=Et(e[o])),n),{})}function Q5(e){return typeof e=="function"}function S8t(e){return qu(e)||nh(e)}function Yse(e,t,n){let o=e;const i=t.split(".");for(let r=0;r<i.length;r++){if(!o[i[r]])return n;o=o[i[r]]}return o}function bT(e,t,n){return dt(()=>e.some(o=>Yse(t,o,{[n]:!1})[n]))}function aq(e,t,n){return dt(()=>e.reduce((o,i)=>{const r=Yse(t,i,{[n]:!1})[n]||[];return o.concat(r)},[]))}function Wse(e,t,n,o){return e.call(o,Et(t),Et(n),o)}function Gse(e){return e.$valid!==void 0?!e.$valid:!e}function T8t(e,t,n,o,i,r,s){let{$lazy:a,$rewardEarly:l}=i,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],u=arguments.length>8?arguments[8]:void 0,f=arguments.length>9?arguments[9]:void 0,p=arguments.length>10?arguments[10]:void 0;const v=In(!!o.value),_=In(0);n.value=!1;const k=Co([t,o].concat(d,p),()=>{if(a&&!o.value||l&&!f.value&&!n.value)return;let C;try{C=Wse(e,t,u,s)}catch($){C=Promise.reject($)}_.value++,n.value=!!_.value,v.value=!1,Promise.resolve(C).then($=>{_.value--,n.value=!!_.value,r.value=$,v.value=Gse($)}).catch($=>{_.value--,n.value=!!_.value,r.value=$,v.value=!0})},{immediate:!0,deep:typeof t=="object"});return{$invalid:v,$unwatch:k}}function E8t(e,t,n,o,i,r,s,a){let{$lazy:l,$rewardEarly:d}=o;const u=()=>({}),f=dt(()=>{if(l&&!n.value||d&&!a.value)return!1;let p=!0;try{const v=Wse(e,t,s,r);i.value=v,p=Gse(v)}catch(v){i.value=v}return p});return{$unwatch:u,$invalid:f}}function I8t(e,t,n,o,i,r,s,a,l,d,u){const f=In(!1),p=e.$params||{},v=In(null);let _,k;e.$async?{$invalid:_,$unwatch:k}=T8t(e.$validator,t,f,n,o,v,i,e.$watchTargets,l,d,u):{$invalid:_,$unwatch:k}=E8t(e.$validator,t,n,o,v,i,l,d);const C=e.$message;return{$message:Q5(C)?dt(()=>C(sq({$pending:f,$invalid:_,$params:sq(p),$model:t,$response:v,$validator:r,$propertyPath:a,$property:s}))):C||"",$params:p,$pending:f,$invalid:_,$response:v,$unwatch:k}}function P8t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=Et(e),n=Object.keys(t),o={},i={},r={};let s=null;return n.forEach(a=>{const l=t[a];switch(!0){case Q5(l.$validator):o[a]=l;break;case Q5(l):o[a]={$validator:l};break;case a==="$validationGroups":s=l;break;case a.startsWith("$"):r[a]=l;break;default:i[a]=l}}),{rules:o,nestedValidators:i,config:r,validationGroups:s}}const A8t="__root";function D8t(e,t,n,o,i,r,s,a,l){const d=Object.keys(e),u=o.get(i,e),f=In(!1),p=In(!1),v=In(0);if(u){if(!u.$partial)return u;u.$unwatch(),f.value=u.$dirty.value}const _={$dirty:f,$path:i,$touch:()=>{f.value||(f.value=!0)},$reset:()=>{f.value&&(f.value=!1)},$commit:()=>{}};return d.length?(d.forEach(k=>{_[k]=I8t(e[k],t,_.$dirty,r,s,k,n,i,l,p,v)}),_.$externalResults=dt(()=>a.value?[].concat(a.value).map((k,C)=>({$propertyPath:i,$property:n,$validator:"$externalResults",$uid:`${i}-externalResult-${C}`,$message:k,$params:{},$response:null,$pending:!1})):[]),_.$invalid=dt(()=>{const k=d.some(C=>Et(_[C].$invalid));return p.value=k,!!_.$externalResults.value.length||k}),_.$pending=dt(()=>d.some(k=>Et(_[k].$pending))),_.$error=dt(()=>_.$dirty.value?_.$pending.value||_.$invalid.value:!1),_.$silentErrors=dt(()=>d.filter(k=>Et(_[k].$invalid)).map(k=>{const C=_[k];return hc({$propertyPath:i,$property:n,$validator:k,$uid:`${i}-${k}`,$message:C.$message,$params:C.$params,$response:C.$response,$pending:C.$pending})}).concat(_.$externalResults.value)),_.$errors=dt(()=>_.$dirty.value?_.$silentErrors.value:[]),_.$unwatch=()=>d.forEach(k=>{_[k].$unwatch()}),_.$commit=()=>{p.value=!0,v.value=Date.now()},o.set(i,e,_),_):(u&&o.set(i,e,_),_)}function x8t(e,t,n,o,i,r,s){const a=Object.keys(e);return a.length?a.reduce((l,d)=>(l[d]=xP({validations:e[d],state:t,key:d,parentKey:n,resultsCache:o,globalConfig:i,instance:r,externalResults:s}),l),{}):{}}function O8t(e,t,n){const o=dt(()=>[t,n].filter(_=>_).reduce((_,k)=>_.concat(Object.values(Et(k))),[])),i=dt({get(){return e.$dirty.value||(o.value.length?o.value.every(_=>_.$dirty):!1)},set(_){e.$dirty.value=_}}),r=dt(()=>{const _=Et(e.$silentErrors)||[],k=o.value.filter(C=>(Et(C).$silentErrors||[]).length).reduce((C,$)=>C.concat(...$.$silentErrors),[]);return _.concat(k)}),s=dt(()=>{const _=Et(e.$errors)||[],k=o.value.filter(C=>(Et(C).$errors||[]).length).reduce((C,$)=>C.concat(...$.$errors),[]);return _.concat(k)}),a=dt(()=>o.value.some(_=>_.$invalid)||Et(e.$invalid)||!1),l=dt(()=>o.value.some(_=>Et(_.$pending))||Et(e.$pending)||!1),d=dt(()=>o.value.some(_=>_.$dirty)||o.value.some(_=>_.$anyDirty)||i.value),u=dt(()=>i.value?l.value||a.value:!1),f=()=>{e.$touch(),o.value.forEach(_=>{_.$touch()})},p=()=>{e.$commit(),o.value.forEach(_=>{_.$commit()})},v=()=>{e.$reset(),o.value.forEach(_=>{_.$reset()})};return o.value.length&&o.value.every(_=>_.$dirty)&&f(),{$dirty:i,$errors:s,$invalid:a,$anyDirty:d,$error:u,$pending:l,$touch:f,$reset:v,$silentErrors:r,$commit:p}}function xP(e){let{validations:t,state:n,key:o,parentKey:i,childResults:r,resultsCache:s,globalConfig:a={},instance:l,externalResults:d}=e;const u=i?`${i}.${o}`:o,{rules:f,nestedValidators:p,config:v,validationGroups:_}=P8t(t),k=Sm(Sm({},a),v),C=o?dt(()=>{const te=Et(n);return te?Et(te[o]):void 0}):n,$=Sm({},Et(d)||{}),E=dt(()=>{const te=Et(d);return o?te?Et(te[o]):void 0:te}),P=D8t(f,C,o,s,u,k,l,E,n),I=x8t(p,C,u,s,k,l,E),O={};_&&Object.entries(_).forEach(te=>{let[ee,ae]=te;O[ee]={$invalid:bT(ae,I,"$invalid"),$error:bT(ae,I,"$error"),$pending:bT(ae,I,"$pending"),$errors:aq(ae,I,"$errors"),$silentErrors:aq(ae,I,"$silentErrors")}});const{$dirty:L,$errors:S,$invalid:j,$anyDirty:M,$error:q,$pending:B,$touch:V,$reset:G,$silentErrors:Q,$commit:X}=O8t(P,I,r),Y=o?dt({get:()=>Et(C),set:te=>{L.value=!0;const ee=Et(n),ae=Et(d);ae&&(ae[o]=$[o]),Oi(ee[o])?ee[o].value=te:ee[o]=te}}):null;o&&k.$autoDirty&&Co(C,()=>{L.value||V();const te=Et(d);te&&(te[o]=$[o])},{flush:"sync"});async function Z(){return V(),k.$rewardEarly&&(X(),await fa()),await fa(),new Promise(te=>{if(!B.value)return te(!j.value);const ee=Co(B,()=>{te(!j.value),ee()})})}function se(te){return(r.value||{})[te]}function ce(){Oi(d)?d.value=$:Object.keys($).length===0?Object.keys(d).forEach(te=>{delete d[te]}):Object.assign(d,$)}return hc(Sm(Sm(Sm({},P),{},{$model:Y,$dirty:L,$error:q,$errors:S,$invalid:j,$anyDirty:M,$pending:B,$touch:V,$reset:G,$path:u||A8t,$silentErrors:Q,$validate:Z,$commit:X},r&&{$getResultsForChild:se,$clearExternalResults:ce,$validationGroups:O}),I))}class L8t{constructor(){this.storage=new Map}set(t,n,o){this.storage.set(t,{rules:n,result:o})}checkRulesValidity(t,n,o){const i=Object.keys(o),r=Object.keys(n);return r.length!==i.length||!r.every(a=>i.includes(a))?!1:r.every(a=>n[a].$params?Object.keys(n[a].$params).every(l=>Et(o[a].$params[l])===Et(n[a].$params[l])):!0)}get(t,n){const o=this.storage.get(t);if(!o)return;const{rules:i,result:r}=o,s=this.checkRulesValidity(t,n,i),a=r.$unwatch?r.$unwatch:()=>({});return s?r:{$dirty:r.$dirty,$partial:!0,$unwatch:a}}}const g4={COLLECT_ALL:!0,COLLECT_NONE:!1},lq=Symbol("vuelidate#injectChildResults"),cq=Symbol("vuelidate#removeChildResults");function M8t(e){let{$scope:t,instance:n}=e;const o={},i=In([]),r=dt(()=>i.value.reduce((u,f)=>(u[f]=Et(o[f]),u),{}));function s(u,f){let{$registerAs:p,$scope:v,$stopPropagation:_}=f;_||t===g4.COLLECT_NONE||v===g4.COLLECT_NONE||t!==g4.COLLECT_ALL&&t!==v||(o[p]=u,i.value.push(p))}n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],s);function a(u){i.value=i.value.filter(f=>f!==u),delete o[u]}n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],a);const l=ts(lq,[]);ic(lq,n.__vuelidateInjectInstances);const d=ts(cq,[]);return ic(cq,n.__vuelidateRemoveInstances),{childResults:r,sendValidationResultsToParent:l,removeValidationResultsFromParent:d}}function Zse(e){return new Proxy(e,{get(t,n){return typeof t[n]=="object"?Zse(t[n]):dt(()=>t[n])}})}let dq=0;function Pn(e,t){var n;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(o=e,e=void 0,t=void 0);let{$registerAs:i,$scope:r=g4.COLLECT_ALL,$stopPropagation:s,$externalResults:a,currentVueInstance:l}=o;const d=l||((n=pr())===null||n===void 0?void 0:n.proxy),u=d?d.$options:{};i||(dq+=1,i=`_vuelidate_${dq}`);const f=In({}),p=new L8t,{childResults:v,sendValidationResultsToParent:_,removeValidationResultsFromParent:k}=d?M8t({$scope:r,instance:d}):{childResults:In({})};if(!e&&u.validations){const C=u.validations;t=In({}),by(()=>{t.value=d,Co(()=>Q5(C)?C.call(t.value,new Zse(t.value)):C,$=>{f.value=xP({validations:$,state:t,childResults:v,resultsCache:p,globalConfig:o,instance:d,externalResults:a||d.vuelidateExternalResults})},{immediate:!0})}),o=u.validationsConfig||o}else{const C=Oi(e)||S8t(e)?e:hc(e||{});Co(C,$=>{f.value=xP({validations:$,state:t,childResults:v,resultsCache:p,globalConfig:o,instance:d??{},externalResults:a})},{immediate:!0})}return d&&(_.forEach(C=>C(f,{$registerAs:i,$scope:r,$stopPropagation:s})),cg(()=>k.forEach(C=>C(i)))),dt(()=>Sm(Sm({},Et(f.value)),v.value))}const N8t={components:{CheckList:Bse},props:{registered:{type:Boolean,default:!1}}},R8t={class:"content-box shadow-mid p-4"},j8t={key:0},F8t={class:"text-gray-800 mb-4"},z8t={class:"row"},U8t={key:1},B8t={class:"text-gray-800 mb-4"},H8t={class:"row"};function V8t(e,t,n,o,i,r){const s=y("CheckList");return h(),g("div",R8t,[n.registered?(h(),g("div",j8t,[c("h4",F8t,m(e.$t("school.advertisement.registered.headline")),1),c("div",z8t,[b(s,{items:e.$tm("school.advertisement.registered.checks"),"text-size":"medium"},null,8,["items"])])])):D("",!0),n.registered?D("",!0):(h(),g("div",U8t,[c("h4",B8t,m(e.$t("school.advertisement.unregistered.headline")),1),c("div",H8t,[b(s,{items:e.$tm("school.advertisement.unregistered.checks"),"text-size":"medium"},null,8,["items"])])]))])}const Kse=U(N8t,[["render",V8t]]),q8t={methods:{openLoginModal(e="login"){window.loginRegisterModal(window.location.href,e)}}},Y8t={class:"mb-3"},W8t={class:"mb-5"},G8t={class:"text-gray-600 mb-0"},Z8t={class:"text-gray-600 mb-0"};function K8t(e,t,n,o,i,r){return h(),g("div",null,[c("h4",Y8t,m(e.$t("school.login.headline")),1),c("div",W8t,[c("p",G8t,m(e.$t("school.login.text.0")),1),c("p",Z8t,[z(m(e.$t("school.login.text.1"))+" ",1),c("span",{class:"cursor-pointer text-primary",onClick:t[0]||(t[0]=s=>r.openLoginModal("register"))},m(e.$t("public.here_in_moment")+"."),1)])]),c("button",{class:"btn btn-secondary me-4",onClick:t[1]||(t[1]=s=>r.openLoginModal("register"))},m(e.$t("school.login.button_register")),1),c("button",{class:"btn btn-primary mt-0",onClick:t[2]||(t[2]=s=>r.openLoginModal("login"))},m(e.$t("school.login.button_login")),1)])}const Jse=U(q8t,[["render",K8t]]),J8t={components:{PickedSchoolCard:K3,Loading:Rt,LoginPrompt:Jse,SchoolRegisterAd:Kse,AppIcon:Ue,CheckboxInput:ba},props:{school:{type:Object,default(){return{izo:null,name:"",registered:!0}}},user:{type:Object,default(){return{first_name:"",last_name:"",email:""}}}},data(){return{employee_checkbox:!1,note:"",loading:!1,primaryColor:window.primaryColor}},validations:{employee_checkbox:{required:Yt,sameAs:$6(!0)},note:{}},methods:{submit(){if(this.v$.$touch(),this.v$.$invalid)return;this.loading=!0;const e={employee_checkbox:this.employee_checkbox,note:this.note};tg.registreredRegister(this.school.id,e).then(t=>{this.loading=!1,window.flash(t.data.message,"success");let n=t.data.school;this.$emit("next",n)}).catch(t=>{var n,o,i,r;this.loading=!1,(o=(n=t==null?void 0:t.response)==null?void 0:n.data)!=null&&o.errors?Object.entries(t.response.data.errors).forEach(([,a])=>{a.forEach(l=>{window.flash(l,"error")})}):(r=(i=t==null?void 0:t.response)==null?void 0:i.data)!=null&&r.message&&window.flash(t.response.data.message,"error")})}},setup(){return{v$:Pn()}}},X8t={class:"vl-parent"},Q8t={class:"row"},e4t={class:"col-12 col-lg-8 pe-4"},t4t={class:"mb-4"},n4t={class:"text-success"},o4t={class:"row"},i4t={class:"col-12 col-lg-8 pe-4"},r4t={class:"row"},s4t={class:"col-12 mb-5"},a4t={key:0},l4t={class:"mb-4"},c4t={class:"col-12 mb-5"},d4t={class:"form-group"},u4t={for:"note",class:"form-label"},h4t=["placeholder"],f4t={class:"col-12 mb-5"},m4t={class:"d-flex justify-content-end"},p4t={key:1},g4t={class:"col-12 col-lg-4 ps-4"};function v4t(e,t,n,o,i,r){const s=y("Loading"),a=y("PickedSchoolCard"),l=y("CheckboxInput"),d=y("AppIcon"),u=y("LoginPrompt"),f=y("SchoolRegisterAd");return h(),g("div",X8t,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=p=>i.loading=p),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",Q8t,[c("div",e4t,[c("h2",t4t,[c("span",n4t,m(e.$t("school.step.registered.headline.0")),1),z(" "+m(e.$t("school.step.registered.headline.1")),1)])])]),c("div",o4t,[c("div",i4t,[c("div",r4t,[c("div",s4t,[b(a,{"picked-school":n.school,"show-manager":!0},null,8,["picked-school"])])]),n.user?(h(),g("div",a4t,[c("h4",l4t,m(e.$t("school.step.registered.text")),1),c("ol",null,[(h(!0),g(pe,null,Me(e.$tm("school.step.registered.text.list"),(p,v)=>(h(),g("li",{key:v},m(p),1))),128))]),t[5]||(t[5]=c("hr",{class:"my-5"},null,-1)),c("form",{onSubmit:t[4]||(t[4]=Gt(()=>{},["prevent"]))},[c("div",c4t,[c("div",d4t,[c("label",u4t,m(e.$t("school.step.registered.form.note.label")),1),xe(c("input",{id:"note",class:J({"form-control":!0,"is-invalid":o.v$.note.$error}),placeholder:e.$t("school.step.registered.form.note.placeholder"),type:"text",name:"note","onUpdate:modelValue":t[1]||(t[1]=p=>o.v$.note.$model=p)},null,10,h4t),[[wt,o.v$.note.$model]])])]),c("div",f4t,[b(l,{id:"employee_checkbox",value:o.v$.employee_checkbox.$model,"onUpdate:value":t[2]||(t[2]=p=>o.v$.employee_checkbox.$model=p),label:e.$t("school.step.registered.form.checkbox"),"is-invalid":o.v$.employee_checkbox.$error,"invalid-message":e.$t("validation.custom.employee_checkbox.have_to_accept")},null,8,["value","label","is-invalid","invalid-message"])]),c("div",m4t,[c("button",{id:"submit_button",class:"btn btn-primary btn-center",onClick:t[3]||(t[3]=Gt((...p)=>r.submit&&r.submit(...p),["prevent"]))},[z(m(e.$t("school.step.registered.form.button"))+" ",1),b(d,{icon:"arrow-right",class:"ms-icon",height:"20",width:"20"})])])],32)])):D("",!0),n.user?D("",!0):(h(),g("div",p4t,[b(u)]))]),c("div",g4t,[b(f,{registered:n.school.registered},null,8,["registered"])])])])}const _4t=U(J8t,[["render",v4t]]),y4t={components:{AppIcon:Ue,PickedSchoolCard:K3,Loading:Rt,LoginPrompt:Jse,SchoolRegisterAd:Kse,CheckboxInput:ba},props:{school:{type:Object,default(){return{izo:null,name:"",registered:!1}}},user:{type:Object,default(){return{first_name:"",last_name:"",email:""}}}},data(){return{employee_checkbox:!1,loading:!1,primaryColor:window.primaryColor}},validations:{employee_checkbox:{required:Yt,sameAs:$6(!0)}},methods:{submit(){if(this.v$.$touch(),this.v$.$invalid)return;this.loading=!0;const e={employee_checkbox:this.employee_checkbox};tg.unregistreredRegister(this.school.id,e).then(t=>{this.loading=!1,window.flash(t.data.message,"success");let n=t.data.school;n.registered=!1,this.$emit("next",n)}).catch(t=>{var n,o,i,r;this.loading=!1,(o=(n=t==null?void 0:t.response)==null?void 0:n.data)!=null&&o.errors?Object.entries(t.response.data.errors).forEach(([,a])=>{a.forEach(l=>{window.flash(l,"error")})}):(r=(i=t==null?void 0:t.response)==null?void 0:i.data)!=null&&r.message&&window.flash(t.response.data.message,"error")})}},setup(){return{v$:Pn()}}},b4t={class:"vl-parent pe-6 pb-6"},k4t={class:"row"},w4t={class:"col-12 col-lg-8 pe-4"},$4t={class:"mb-4"},C4t={class:"row"},S4t={class:"col-12 col-lg-8 pe-4"},T4t={class:"row"},E4t={class:"col-12 mb-5"},I4t={key:0},P4t={class:"mb-4"},A4t={class:"mb-5"},D4t=["href"],x4t={class:"row"},O4t={class:"col-12 mb-5"},L4t={class:"d-flex justify-content-end"},M4t={key:1},N4t={class:"col-12 col-lg-4 ps-4"};function R4t(e,t,n,o,i,r){const s=y("Loading"),a=y("PickedSchoolCard"),l=y("CheckboxInput"),d=y("AppIcon"),u=y("LoginPrompt"),f=y("SchoolRegisterAd");return h(),g("div",b4t,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=p=>i.loading=p),color:i.primaryColor,"is-full-page":!0},null,8,["active","color"]),c("div",k4t,[c("div",w4t,[c("h2",$4t,m(e.$t("school.step.unregistered.headline")),1)])]),c("div",C4t,[c("div",S4t,[c("div",T4t,[c("div",E4t,[b(a,{"picked-school":n.school,"show-manager":!1},null,8,["picked-school"])])]),n.user?(h(),g("div",I4t,[c("h4",P4t,m(e.$t("school.step.unregistered.text")),1),c("ol",A4t,[(h(!0),g(pe,null,Me(e.$tm("school.step.unregistered.list"),(p,v)=>(h(),g("li",{key:v},m(p),1))),128))]),c("p",null,[z(m(e.$t("school.step.unregistered.list_footer.0"))+" ",1),t[4]||(t[4]=c("br",null,null,-1)),c("a",{class:"link-primary",href:e.ziggyRoute("user.dashboard.messages")},m(e.$t("school.step.unregistered.list_footer.1")),9,D4t),z(" "+m(e.$t("school.step.unregistered.list_footer.2")),1)]),t[5]||(t[5]=c("hr",{class:"my-5"},null,-1)),c("form",{onSubmit:t[3]||(t[3]=Gt(()=>{},["prevent"]))},[c("div",x4t,[c("div",O4t,[b(l,{id:"employee_checkbox",value:o.v$.employee_checkbox.$model,"onUpdate:value":t[1]||(t[1]=p=>o.v$.employee_checkbox.$model=p),label:e.$t("school.step.unregistered.form.checkbox"),"is-invalid":o.v$.employee_checkbox.$error,"invalid-message":e.$t("validation.custom.employee_checkbox.have_to_accept")},null,8,["value","label","is-invalid","invalid-message"])])]),c("div",L4t,[c("button",{id:"submit_button",class:"btn btn-primary btn-center",onClick:t[2]||(t[2]=Gt((...p)=>r.submit&&r.submit(...p),["prevent"]))},[z(m(e.$t("school.step.unregistered.form.button"))+" ",1),b(d,{icon:"arrow-right",class:"ms-icon",height:"20",width:"20"})])])],32)])):D("",!0),n.user?D("",!0):(h(),g("div",M4t,[b(u)]))]),c("div",N4t,[b(f,{registered:n.school.registered},null,8,["registered"])])])])}const j4t=U(y4t,[["render",R4t]]),F4t=""+new URL("advice_needed-081ddc68.svg",import.meta.url).href,z4t=""+new URL("improvement_idea-5ea2d36f.svg",import.meta.url).href,U4t=""+new URL("inquiry-d2328e99.svg",import.meta.url).href,Xse=""+new URL("kids_group-ee90e6ea.svg",import.meta.url).href,B4t={components:{AppIcon:Ue},props:{ig:{default:!0},fb:{default:!0},yt:{default:!0},pt:{default:!0},color:{default:"#384C74"}}},H4t={class:"d-inline-flex gap-3"},V4t={key:0,class:"d-block",href:"https://www.instagram.com/ucitelnice/",target:"_blank"},q4t={key:1,class:"d-block",href:"https://www.facebook.com/groups/ucitelnice/",target:"_blank"},Y4t={key:2,class:"d-block",href:"https://www.youtube.com/channel/UCqLn_2wgJ0rbYH-xUJxBRyg/featured",target:"_blank"},W4t={key:3,class:"d-block",href:"https://cz.pinterest.com/ucitelnice/u%C4%8Ditelnice/",target:"_blank"};function G4t(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",H4t,[n.ig?(h(),g("a",V4t,[b(s,{icon:"instagram","icon-color":n.color,height:"25",width:"25"},null,8,["icon-color"])])):D("",!0),n.fb?(h(),g("a",q4t,[b(s,{icon:"facebook","icon-color":n.color,height:"25",width:"25"},null,8,["icon-color"])])):D("",!0),n.yt?(h(),g("a",Y4t,[b(s,{icon:"youtube","icon-color":n.color,height:"25",width:"25"},null,8,["icon-color"])])):D("",!0),n.pt?(h(),g("a",W4t,[b(s,{icon:"pinterest","icon-color":n.color,height:"25",width:"25"},null,8,["icon-color"])])):D("",!0)])}const Qse=U(B4t,[["render",G4t]]),Z4t={components:{AppIcon:Ue},data(){return{email:Jd.email,phoneLocal:Jd.phone.local,phoneGlobal:Jd.phone.global}},computed:{...Oe("auth",{auth:"auth"})},methods:{toggle(){this.auth.is_admin?window.open(this.ziggyRoute("administration.messages","_blank")):this.$store.commit("sidebarChat/toggleChatOpen")}}},K4t={class:"mt-4"},J4t=["href"],X4t=["href"];function Q4t(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",null,[e.auth.id?(h(),g("button",{key:0,target:"_blank",class:"btn btn-primary d-block",onClick:t[0]||(t[0]=Gt((...a)=>r.toggle&&r.toggle(...a),["prevent"]))},[z(m(e.$t("contact.main.cols.1.button"))+" ",1),b(s,{icon:"message",width:"20",height:"20",class:"ms-2"})])):D("",!0),c("div",K4t,[c("a",{href:"mailto:"+i.email,target:"_blank",class:"d-block mb-2"},[b(s,{icon:"mail",width:"20",height:"20",class:"me-icon"}),z(" "+m(i.email),1)],8,J4t),c("a",{href:"tel:"+i.phoneGlobal,target:"_blank",class:"d-block"},[b(s,{icon:"phone",width:"20",height:"20",class:"me-icon"}),z(" "+m(i.phoneLocal),1)],8,X4t)])])}const e5t=U(Z4t,[["render",Q4t]]),t5t={components:{AppIcon:Ue},data(){return{email:Jd.email,phoneLocal:Jd.phone.local,phoneGlobal:Jd.phone.global}}},n5t={class:"text-start"},o5t=["href"],i5t=["href"];function r5t(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",n5t,[c("a",{href:"mailto:"+i.email,target:"_blank",class:"d-block mb-2"},[b(s,{icon:"mail",width:"20",height:"20",class:"me-3"}),z(" "+m(i.email),1)],8,o5t),c("a",{href:"tel:"+i.phoneGlobal,target:"_blank",class:"d-block"},[b(s,{icon:"phone",width:"20",height:"20",class:"me-3"}),z(" "+m(i.phoneLocal),1)],8,i5t)])}const s5t=U(t5t,[["render",r5t]]);const a5t={components:{AppIcon:Ue},data(){return{email_idea:Jd.email_idea}}},l5t={class:"text-start"},c5t=["href"];function d5t(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",l5t,[c("a",{href:"mailto:"+i.email_idea,target:"_blank",class:"d-block mb-2"},[b(s,{icon:"mail",width:"20",height:"20",class:"me-3"}),z(" "+m(i.email_idea),1)],8,c5t)])}const u5t=U(a5t,[["render",d5t],["__scopeId","data-v-6237d3ea"]]),h5t={components:{AppIcon:Ue},data(){return{email:Jd.email}}},f5t={class:"text-start"},m5t=["href"];function p5t(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",f5t,[c("a",{href:"mailto:"+i.email,target:"_blank",class:"d-block mb-2"},[b(s,{icon:"mail",width:"20",height:"20",class:"me-3"}),z(" "+m(i.email),1)],8,m5t)])}const g5t=U(h5t,[["render",p5t]]),v5t={components:{SocialsIcons:Qse,SendMessageLink:e5t,MailPhoneContact:s5t,IdeaMailPhoneContact:u5t,MailContact:g5t},props:{image:String,title:String,text:String,component:String,noIcon:{type:Boolean,default:!1},contentStart:{type:Boolean,default:!1}}},_5t=["src"],y5t={class:"text-gray-800 mb-3"},b5t=["innerHTML"];function k5t(e,t,n,o,i,r){return h(),g("div",{class:J(n.contentStart?"text-start":"text-center")},[n.noIcon?D("",!0):(h(),g("img",{key:0,class:"mb-2dot5",src:n.image,height:"80"},null,8,_5t)),c("h4",y5t,m(n.title),1),c("p",{class:"text-gray-600 mb-4",innerHTML:n.text},null,8,b5t),c("div",{class:J(["d-flex mt-1",n.contentStart?"justify-content-start":"justify-content-center"])},[(h(),W(Dl(n.component)))],2)],2)}const w5t=U(v5t,[["render",k5t]]),$5t={components:{ContactCard:w5t},props:{authorCard:{type:Boolean,default:!1},questionCard:{type:Boolean,default:!1},adviceCard:{type:Boolean,default:!1},improveCard:{type:Boolean,default:!1},helpCard:{type:Boolean,default:!1},communityCard:{type:Boolean,default:!1},noIcons:{type:Boolean,default:!1},contentStart:{type:Boolean,default:!1}},computed:{...Oe({auth:"auth/auth"}),cardAuthorText(){return this.$t("authoronboarding.thanks_page.footer_text.0")+' <a href="https://autori.ucitelnice.cz/za%C4%8D%C3%ADn%C3%A1me" target="_blank" class="fw-bold">'+this.$t("authoronboarding.thanks_page.footer_text.1")+"</a> "+this.$t("authoronboarding.thanks_page.footer_text.2")},cardQuestionText(){return this.$t("contact.main.cols.0.text.0")+' <a href="/caste-dotazy">'+this.$t("contact.main.cols.0.text.1")+"</a>"+this.$t("contact.main.cols.0.text.2")+' <a href="https://www.facebook.com/groups/ucitelnice/">'+this.$t("contact.main.cols.0.text.3")+"</a>"},cardHelpText(){return this.$t("payment.success.need_help.text.0")+' <a href="'+this.ziggyRoute("faq")+'" target="_blank" class="text-decoration-none">'+this.$t("payment.success.need_help.text.1")+"</a> "+this.$t("payment.success.need_help.text.2")}},data(){return{advice_needed:F4t,improvement_idea:z4t,inquiry:U4t,kids_group:Xse}}},C5t={class:"row"},S5t={key:0,class:"col-12 col-md mb-6 mb-md-0"},T5t={key:1,class:"col-12 col-md mb-6 mb-md-0"},E5t={key:2,class:"col-12 col-md mb-6 mb-md-0"},I5t={key:3,class:"col-12 col-md mb-6 mb-md-0"},P5t={key:4,class:"col-12 col-md mb-6 mb-md-0"},A5t={key:5,class:"col-12 col-md mb-6 mb-md-0"};function D5t(e,t,n,o,i,r){const s=y("ContactCard");return h(),g("div",C5t,[n.authorCard?(h(),g("div",S5t,[b(s,{image:i.inquiry,title:e.$t("faq.not_found"),text:r.cardAuthorText,component:"MailPhoneContact","no-icon":n.noIcons,"content-start":n.contentStart},null,8,["image","title","text","no-icon","content-start"])])):D("",!0),n.questionCard?(h(),g("div",T5t,[b(s,{image:i.inquiry,title:e.$t("contact.main.cols.0.headline"),text:r.cardQuestionText,component:"SocialsIcons","no-icon":n.noIcons,"content-start":n.contentStart},null,8,["image","title","text","no-icon","content-start"])])):D("",!0),n.adviceCard?(h(),g("div",E5t,[b(s,{image:i.advice_needed,title:e.$t("contact.main.cols.1.headline"),text:e.auth.id?e.$t("contact.main.cols.1.text_logged"):e.$t("contact.main.cols.1.text"),component:e.auth.id?"SendMessageLink":"MailContact","no-icon":n.noIcons,"content-start":n.contentStart},null,8,["image","title","text","component","no-icon","content-start"])])):D("",!0),n.improveCard?(h(),g("div",I5t,[b(s,{image:i.improvement_idea,title:e.$t("contact.main.cols.2.headline"),text:e.$t("contact.main.cols.2.text"),component:"IdeaMailPhoneContact","no-icon":n.noIcons,"content-start":n.contentStart},null,8,["image","title","text","no-icon","content-start"])])):D("",!0),n.helpCard?(h(),g("div",P5t,[b(s,{image:i.advice_needed,title:e.$t("payment.success.need_help.title"),text:r.cardHelpText,component:"MailPhoneContact","no-icon":n.noIcons,"content-start":n.contentStart},null,8,["image","title","text","no-icon","content-start"])])):D("",!0),n.communityCard?(h(),g("div",A5t,[b(s,{image:i.kids_group,title:e.$t("payment.success.join_community.title"),text:e.$t("payment.success.join_community.text"),component:"SocialsIcons","no-icon":n.noIcons,"content-start":n.contentStart},null,8,["image","title","text","no-icon","content-start"])])):D("",!0)])}const _h=U($5t,[["render",D5t]]),x5t=""+new URL("school_success-ebad6d76.svg",import.meta.url).href,O5t={components:{ContactCards:_h,PickedSchoolCard:K3,AppIcon:Ue},props:{school:{type:Object,default(){return{izo:null,name:"",registered:!1}}}},data(){return{schoolSuccess:x5t}},computed:{type(){return this.school.registered?"registered":"unregistered"}}},L5t={class:"text-center mb-5"},M5t=["src"],N5t={key:0},R5t={class:"m-0"},j5t={key:1},F5t={class:"mb-3"},z5t={class:"mb-5"},U5t=["href"],B5t={key:0,class:"row mb-6"},H5t={class:"col-12"};function V5t(e,t,n,o,i,r){const s=y("AppIcon"),a=y("PickedSchoolCard"),l=y("ContactCards");return h(),g("div",null,[c("div",L5t,[c("img",{class:"mb-5",src:i.schoolSuccess,height:"180",width:"180"},null,8,M5t),n.school.registered?(h(),g("div",N5t,[c("h2",R5t,m(e.$t("school.thanks.registered.title")),1)])):(h(),g("div",j5t,[c("h2",F5t,m(e.$t("school.thanks.unregistered.title")),1),c("h4",z5t,m(e.$t("school.thanks.unregistered.text")),1),c("a",{href:e.ziggyRoute("default"),class:"btn btn-primary btn-center"},[z(m(e.$t("school.thanks.unregistered.button"))+" ",1),b(s,{icon:"arrow-right",class:"ms-icon",height:"20",width:"20"})],8,U5t)]))]),n.school.izo?(h(),g("div",B5t,[c("div",H5t,[b(a,{"picked-school":n.school,"show-manager":!0},null,8,["picked-school"])])])):D("",!0),b(l,{"help-card":"","community-card":""})])}const q5t=U(O5t,[["render",V5t]]),Y5t={components:{SchoolRegisterNotExist:j4t,SchoolRegisterExist:_4t,SchoolRegisterThanks:q5t},props:{user:{type:Object,default(){return{first_name:"",last_name:"",email:""}}},inviteSchool:{type:Object,default(){return{izo:null}}},step:{type:Number,default(){return 1}}},data(){return{pageStep:1,schoolsLoading:!1,pickedSchool:{izo:null,name:"",registered:!1}}},methods:{changeStep(e){this.pageStep=e,window.scrollTo(0,0)},picked(e){this.pickedSchool=e,this.changeStep(1)},submitted(e){this.pickedSchool=e,this.changeStep(2)}},mounted(){this.step!==1&&(this.pageStep=this.step),this.pickedSchool=this.inviteSchool},watch:{pageStep(e){this.$router.push({name:this.$route.name,params:this.$route.params,query:{step:Number(e)}})}}},W5t={class:"col-12 mt-6"},G5t={key:0,class:"row justify-content-center"},Z5t={key:0,class:"col-12 mb-10rem"},K5t={key:1,class:"col-12 col-lg-8 mb-5rem"};function J5t(e,t,n,o,i,r){const s=y("SchoolRegisterExist"),a=y("SchoolRegisterNotExist"),l=y("SchoolRegisterThanks");return h(),g("div",W5t,[i.pickedSchool.izo?(h(),g("div",G5t,[i.pageStep==1?(h(),g("div",Z5t,[i.pickedSchool.registered?(h(),W(s,{key:0,school:i.pickedSchool,onNext:r.submitted,user:n.user},null,8,["school","onNext","user"])):(h(),W(a,{key:1,school:i.pickedSchool,onNext:r.submitted,user:n.user},null,8,["school","onNext","user"]))])):(h(),g("div",K5t,[b(l,{school:i.pickedSchool},null,8,["school"])]))])):D("",!0)])}const X5t=U(Y5t,[["render",J5t]]),Q5t={props:{color:{type:String,default(){return"#F6F8FE"}},header:{type:Element},offset:{type:Number,default(){return 40}},borderBottom:{type:Boolean,default(){return!1}}},data(){return{height:0,width:0,resizeObserver:null}},methods:{computeDimensions(){this.$nextTick(()=>{this.height=this.header.offsetHeight+this.offset,this.width=window.screen.width})},initResizeObserver(){this.$nextTick(()=>{this.resizeObserver=new ResizeObserver(this.computeDimensions),this.resizeObserver.observe(window.document.body)})}},mounted(){this.computeDimensions(),this.computeDimensions=is.debounce(this.computeDimensions,50),!this.resizeObserver&&this.header&&this.initResizeObserver()},beforeUnmount(){this.resizeObserver&&this.resizeObserver.unobserve(window.document.body)},watch:{header(){this.resizeObserver||this.initResizeObserver()}}},e$t=["height"],t$t=["width","fill"];function n$t(e,t,n,o,i,r){return h(),g("svg",{class:J(["position-absolute start-0 end-0 z-index-neg-1 w-100",{"border-bottom border-gray-400":n.borderBottom}]),height:i.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("rect",{class:"h-100",width:i.width,height:1,fill:n.color},null,8,t$t)],10,e$t)}const $g=U(Q5t,[["render",n$t]]),o$t={props:{image:String},computed:{pillColor(){return"success-primary"}}},i$t=["src"],r$t=["src"];function s$t(e,t,n,o,i,r){return h(),g("div",null,[c("img",{src:n.image,alt:"Author image",class:"object-fit-cover rounded-circle border mb-1 d-none d-md-block",width:"133",height:"133"},null,8,i$t),c("img",{src:n.image,alt:"Author image",class:"object-fit-cover rounded-circle border mb-1 d-block d-md-none",width:"100",height:"100"},null,8,r$t)])}const a$t=U(o$t,[["render",s$t]]),l$t={props:{id:{type:Number,default:null},slug:{type:String,default:null}},computed:{link(){return this.slug?this.ziggyRoute("author.show.public",this.slug):this.id?this.ziggyRoute("user.show",this.id):null}}},c$t=["href"];function d$t(e,t,n,o,i,r){const s=y("app-icon");return h(),g("a",{href:r.link,target:"_blank",class:"d-inline-flex link-gray-800 medium flex-row-reverse flex-md-row align-items-center"},[z(m(e.$t("dashboard.author.header.others_see"))+" ",1),b(s,{icon:"chevron-right",width:"20",height:"20",class:"ms-0 ms-md-icon me-icon me-md-0"})],8,c$t)}const u$t=U(l$t,[["render",d$t]]),h$t={components:{AppIcon:Ue}},f$t=["href"];function m$t(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("a",{class:"btn btn-primary btn-center btn-sm",href:e.ziggyRoute("product.create")},[z(m(e.$t("product.new_product"))+" ",1),b(s,{icon:"upload",class:"ms-icon",height:"20",width:"20"})],8,f$t)}const p$t=U(h$t,[["render",m$t]]),g$t={components:{AppIcon:Ue,AuthorDashboardHeaderImage:a$t,AuthorDashboardPublicLink:u$t,AuthorProductUploadButton:p$t},computed:{...Oe({author:"author/getDetail"})}},v$t={class:"d-flex flex-row-reverse flex-md-row align-items-start align-items-md-center"},_$t={class:"flex-grow-1 d-flex flex-column flex-md-row justify-content-between"},y$t={class:"ms-4"},b$t={class:"d-flex align-items-center"},k$t={class:"mb-1"},w$t={class:"d-flex flex-column flex-md-row gap-md-3 mb-1"},$$t={key:0,class:"text-gray-800 medium fw-medium mb-0"},C$t={class:"text-gray-800 medium mb-0"},S$t={class:"text-gray-800 medium mb-0"},T$t={class:"mt-3 mt-md-0"};function E$t(e,t,n,o,i,r){const s=y("AuthorDashboardHeaderImage"),a=y("AppIcon"),l=y("AuthorDashboardPublicLink"),d=y("AuthorProductUploadButton");return h(),g("div",v$t,[b(s,{class:"col-auto position-relative",image:e.author.image_detail},null,8,["image"]),c("div",_$t,[c("div",y$t,[c("div",b$t,[c("h3",k$t,m(e.author.public_alias?e.author.public_alias:e.author.first_name+" "+e.author.last_name),1),e.author.badge==1?(h(),W(a,{key:0,icon:"check-fill",width:"24",height:"24",class:"text-success ms-2"})):D("",!0)]),c("div",w$t,[e.author.public_alias?(h(),g("p",$$t,m(e.author.first_name+" "+e.author.last_name),1)):D("",!0),c("p",C$t,m(e.$tc("author.n_followers",{count:e.author.favourite_of_count})),1),c("p",S$t,m(e.$tc("product.materials_count",{count:e.author.products_count})),1)]),b(l,{id:e.author.id,slug:e.author.slug},null,8,["id","slug"])]),c("div",T$t,[b(d)])])])}const I$t=U(g$t,[["render",E$t]]),P$t={components:{TabList:qr,AuthorDashboardBlock:I$t,GrayBackgroundComponent:$g},data(){return{routes:["dashboard/aktualne","dashboard/materialy","dashboard/skupiny-materialu","dashboard/marketing","dashboard/vyuctovani","dashboard/nastaveni"],titles:[this.$t("dashboard.author.header.tabs.live"),this.$t("dashboard.author.header.tabs.products"),this.$t("dashboard.author.header.tabs.product_group"),this.$t("dashboard.author.header.tabs.marketing"),this.$t("dashboard.author.header.tabs.billing"),this.$t("dashboard.author.header.tabs.settings")]}},computed:{...Oe({author:"author/getDetail"}),notifications(){return[null,{number:this.author.complaints_count+this.author.products_in_revision_count,color:"danger"},null,this.discountAutomaticNotification,null]},...sn({discount:e=>e.discount.detail}),showDiscountAutomaticNotification(){return this.discount&&this.discount.id},discountAutomaticNotification(){return this.showDiscountAutomaticNotification?{text:this.$t("discount.automatic.title_short")+"!",color:"warning"}:null}},mounted(){this.$store.dispatch("discount/show")}},A$t={ref:"dashboard-header",class:"w-100"},D$t={class:"py-4"},x$t={class:"row"},O$t={class:"col px-3"};function L$t(e,t,n,o,i,r){const s=y("GrayBackgroundComponent"),a=y("AuthorDashboardBlock"),l=y("TabList");return h(),g("div",A$t,[b(s,{header:e.$refs["dashboard-header"],offset:0,"border-bottom":"",color:"white"},null,8,["header"]),c("div",D$t,[b(a)]),c("div",x$t,[c("div",O$t,[b(l,{class:"border-none",routes:i.routes,titles:i.titles,notifications:r.notifications,"padding-x":0},null,8,["routes","titles","notifications"])])])],512)}const M$t=U(P$t,[["render",L$t]]),N$t={components:{AuthorDashboardHeader:M$t},props:{author:{type:Object,default(){return null}}},mounted(){this.$store.commit("author/setDetail",this.author)}},R$t={class:"mb-6"};function j$t(e,t,n,o,i,r){const s=y("AuthorDashboardHeader"),a=y("router-view");return h(),g("div",R$t,[b(s),b(a,{class:"mt-5"})])}const F$t=U(N$t,[["render",j$t]]),z$t={created(){this.$store.dispatch("authorNotification/resetListsAndPaginations")}};function U$t(e,t,n,o,i,r){const s=y("router-view");return h(),g("div",null,[b(s)])}const B$t=U(z$t,[["render",U$t]]),H$t={components:{TabList:qr,AppIcon:Ue},data(){return{tabs:{titles:Object.values(this.$tm("dashboard.author.news.tabs")),routes:["dashboard/aktualne/prehled/vse","dashboard/aktualne/prehled/aktuality","dashboard/aktualne/prehled/materialy","dashboard/aktualne/prehled/oceneni"]},activeTab:null,productCountFinal:10}},computed:{...Oe({author:"author/getDetail"}),...sn({hasImage:e=>e.author.detail.has_image,hasPromo:e=>!!e.author.detail.has_promo,description:e=>e.author.detail.description}),has10products(){return this.author.products_count>=this.productCountFinal},anyProduct(){return this.author?this.author.products_count>0:!1},allItemsChecked(){return this.hasImage&&this.description&&this.author.checklist_read&&this.anyProduct&&this.hasPromo&&this.has10products}}},V$t={class:"rounded border border-primary-20 h-100"},q$t={class:"px-4 pt-3 border-bottom border-primary-20"},Y$t={class:"d-flex flex-wrap align-items-center justify-content-between mb-2"},W$t={class:"d-flex align-items-center mb-0"},G$t={class:"pt-0"};function Z$t(e,t,n,o,i,r){const s=y("AppIcon"),a=y("TabList"),l=y("router-view");return h(),g("div",V$t,[c("div",q$t,[c("div",Y$t,[c("h4",W$t,[b(s,{icon:"time",width:24,height:24,class:"me-icon"}),z(" "+m(e.$t("dashboard.author.news.title")),1)])]),c("div",G$t,[b(a,{titles:i.tabs.titles,routes:i.tabs.routes,"padding-x":0,class:"mb-0 notification-tabs border-none"},null,8,["titles","routes"])])]),b(l,{"all-items-checked":r.allItemsChecked},null,8,["all-items-checked"])])}const K$t=U(H$t,[["render",Z$t]]),J$t={props:{color:{type:String,default:"#5AA700"},dividend:{type:Number,default:1},divisor:{type:Number,default:100},size:{type:Number,default:72},thickness:{type:Number,default:15},backgroundColor:{type:String,default:"#FFFFFF"},foregroundColor:{type:String,default:"transparent"},startAngle:{type:Number,default:180}},computed:{sections(){return[{value:this.dividend,color:this.color}]},total(){return Math.max(this.divisor,this.dividend)}}};function X$t(e,t,n,o,i,r){const s=y("vc-donut");return h(),W(s,{background:n.backgroundColor,foreground:n.foregroundColor,size:n.size,unit:"px",thickness:n.thickness,sections:r.sections,total:r.total,"start-angle":n.startAngle,"auto-adjust-text-size":!1},{default:F(()=>[c("div",{style:Bn({color:this.color})},[Pt(e.$slots,"default")],4)]),_:3},8,["background","foreground","size","thickness","sections","total","start-angle"])}const Q$t=U(J$t,[["render",X$t]]),e9t={components:{PieChart:Q$t},props:{color:String,backgroundColor:{type:String,default:"#ffffff"},foregroundColor:{type:String,default:"transparent"},dividend:Number,divisor:{type:Number,default:100}},computed:{sections(){return[{value:this.dividend,color:this.color}]}}};function t9t(e,t,n,o,i,r){const s=y("PieChart");return h(),g("div",null,[b(s,{size:54,thickness:15,divisor:n.divisor,dividend:n.dividend,color:n.color,startAngle:0,"background-color":n.backgroundColor,"foreground-color":n.foregroundColor},{default:F(()=>[z(m(n.dividend+"/"+n.divisor),1)]),_:1},8,["divisor","dividend","color","background-color","foreground-color"])])}const eae=U(e9t,[["render",t9t]]),ks={linkTree:"https://linktr.ee/ucitelnice",author:{material:{workFlow:"https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/pr%C5%AFvodn%C3%AD-list-jak-pracovat-s-materi%C3%A1lem",presentation:"https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/prezentace-materi%C3%A1lu",titleImage:"https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/prezentace-materi%C3%A1lu#h.j1p5u2x7ehsc",category:"https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/kategorie",images:"https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/jak-na-obr%C3%A1zky-v-materi%C3%A1lech",imageRecommendations:"http://soubory.ucitelnice.cz/Jak%C3%A9%20obr%C3%A1zky%20lze%20pou%C5%BE%C3%ADvat.pdf",creation:"https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/v-%C4%8Dem-tvo%C5%99it-materi%C3%A1ly",font:"https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/jak-na-v%C3%BDb%C4%9Br-font%C5%AF",checkList:"https://autori.ucitelnice.cz/checklist",complaint:"https://autori.ucitelnice.cz/vase-podnikani/reklamace-a-aktualizace-materi%C3%A1l%C5%AF"},levelStructure:"https://autori.ucitelnice.cz/info/autorska-struktura",business:"https://autori.ucitelnice.cz/vase-podnikani",faq:"https://autori.ucitelnice.cz/info/caste-otazky-autoru",feedback:"https://autori.ucitelnice.cz/zp%C4%9Btn%C3%A1-vazba",schoolAccount:"https://autori.ucitelnice.cz/aktuality/skolni-ucty",category:"https://autori.ucitelnice.cz/kategorie"},files:{personalDataProcessing:"https://soubory.ucitelnice.cz/Zasady-zpracovani-osobnich-udaju-Ucitelnice-s-r-o.pdf",businessConditions:"https://soubory.ucitelnice.cz/obchodni-podminky.pdf"},vop:"https://soubory.ucitelnice.cz/obchodni-podminky.pdf",schools:{schoolInfoSheet:"https://soubory.ucitelnice.cz/ucitelnice-pro-skoly.pdf",accountantManual:"https://soubory.ucitelnice.cz/ucitelnice-pro-skoly-navod.pdf"},youtubeVideoId(e){if(!e||e.length===0)return!1;if(e===28)return e.split("/").slice(-1).pop();let t=e.split("v=")[1],n=t.indexOf("&");return n!==-1?t.substring(0,n):t},youtubeVideoRegexId(e){let t=/(https?:\/\/)?(((m|www)\.)?(youtube(-nocookie)?|youtube.googleapis)\.com.*(v\/|v=|vi=|vi\/|e\/|embed\/|user\/.*\/u\/\d+\/)|youtu\.be\/)([_0-9a-z-]+)/i,n=e.match(t)[8];return n&&n.length===11?n:!1}},n9t={components:{AppIcon:Ue,Pill:Ni,SmallPieChart:eae},data(){return{hover:!1,productCountFinal:10}},computed:{...Oe({author:"author/getDetail"}),...sn({hasImage:e=>e.author.detail.has_image,hasPromo:e=>!!e.author.detail.has_promo,description:e=>e.author.detail.description,badge:e=>e.author.detail.badge}),items(){return[{id:0,model:this.hasImage,emit:this.goToSettingsProfileImage},{id:1,model:this.hasDescription,emit:this.goToSettingsInformations},{id:2,model:this.checklist,emit:this.gotToCheckList},{id:3,model:this.anyProduct,href:this.ziggyRoute("product.create")},{id:4,model:this.hasPromo,emit:this.goToPromoMaterial},{id:5,model:this.has10products,href:"https://autori.ucitelnice.cz/info/autorska-struktura"}]},itemsFiltered(){return this.items.filter(e=>!e.model)},allItemsChecked(){return this.hasImage&&this.description&&this.author.checklist_read&&this.anyProduct&&this.hasPromo&&this.has10products},hasDescription(){return this.description&&this.description.length>0},checklist:{get(){return this.author?this.author.checklist_read:!1},set(e){this.author.checklist_read===!1&&(this.loading=!0,Ju.checklistUpdate(e).then(()=>{this.author.checklist_read=e,this.loading=!1}))}},anyProduct(){return this.author?this.author.products_count>0:!1},has10products(){return this.author.products_count>=this.productCountFinal},productCountFinalRequired(){return this.productCountFinal-this.author.products_count}},methods:{goToSettingsProfileImage(){this.$router.push({name:"dashboard/nastaveni/profilovy-obrazek"})},goToSettingsInformations(){this.$router.push({name:"dashboard/nastaveni/informace"})},goToPromoMaterial(){this.$router.push({name:"dashboard/marketing/promo-material"})},gotToCheckList(){window.open(ks.author.material.checkList,"_blank"),this.checklist=!0}}},o9t={key:0,class:"bg-white rounded shadow"},i9t={class:"d-flex align-items-center border-bottom border-primary-20 px-4 py-3"},r9t={class:"mb-0"},s9t={class:"px-4 py-3"},a9t=["href","onClick"],l9t={class:"flex-grow-1 d-flex justify-content-between"},c9t={key:0,class:"medium text-gray-700 mb-0"},d9t={key:1,class:"medium text-gray-700 mb-0"},u9t={class:"fw-bold"},h9t={href:"https://autori.ucitelnice.cz/info/autorska-struktura",target:"_blank"};function f9t(e,t,n,o,i,r){const s=y("AppIcon"),a=y("Pill"),l=y("SmallPieChart");return r.allItemsChecked?D("",!0):(h(),g("div",o9t,[c("div",i9t,[b(s,{icon:"pin",height:24,width:24,class:"me-icon"}),c("h4",r9t,m(e.$t("public.start_here")),1)]),c("div",s9t,[(h(!0),g(pe,null,Me(r.itemsFiltered.slice(0,1),d=>(h(),g("a",{key:d.id,class:"d-flex gap-3 link-gray-800 cursor-pointer",href:d.href??null,onClick:u=>d.emit?d.emit():null,onMouseover:t[0]||(t[0]=()=>{i.hover=!0}),onMouseleave:t[1]||(t[1]=()=>{i.hover=!1})},[c("div",null,[b(a,{color:"success"},{default:F(()=>[z(m(e.$t("public.step",{step:r.items.length-r.itemsFiltered.length+1,total:r.items.length})),1)]),_:1})]),c("div",l9t,[c("div",null,[c("p",{class:J(["mb-0",{"text-decoration-underline":i.hover}])},m(e.$tm("dashboard.author.progress.list_new.items.title")[d.id]),3),d.id!==5?(h(),g("p",c9t,m(e.$tm("dashboard.author.progress.list_new.items.text")[d.id]),1)):(h(),g("p",d9t,[z(m(e.$tm("dashboard.author.progress.list_new.items.text.5.0"))+" ",1),c("span",u9t,m(r.productCountFinalRequired),1),z(" "+m(e.$t("dashboard.author.progress.list_new.items.text.5.1"))+" ",1),c("a",h9t,m(e.$t("dashboard.author.progress.list_new.items.text.5.2")),1),z(" "+m(e.$t("dashboard.author.progress.list_new.items.text.5.3")),1)]))]),d.id==5?(h(),W(l,{key:0,dividend:e.author.products_count,divisor:i.productCountFinal,color:"#000000","foreground-color":"#EBEFFD"},null,8,["dividend","divisor"])):D("",!0)])],40,a9t))),128))])]))}const m9t=U(n9t,[["render",f9t]]);const p9t={props:{selected:String},data(){return{date:mt().toDate(),moment:mt,options:[{label:"yesterday",string:this.$t("public.yesterday")},{label:"week",string:this.$t("public.week_last")},{label:"month",string:this.$t("public.month_actual")},{label:"overall",string:this.$t("public.overall")}]}},computed:{selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}}}},g9t={class:"form-group"};function v9t(e,t,n,o,i,r){const s=y("v-select");return h(),g("div",g9t,[b(s,{label:"string",class:"style-chooser border border-primary-20 bg-primary-10 rounded-pill",modelValue:r.selectedModel,"onUpdate:modelValue":t[0]||(t[0]=a=>r.selectedModel=a),options:i.options,reduce:a=>a.label,"close-on-select":!0,searchable:!1,clearable:!1,placeholder:e.$t("filter.placeholder.select")},null,8,["modelValue","options","reduce","placeholder"])])}const _9t=U(p9t,[["render",v9t]]),y9t={components:{AppIcon:Ue,Loading:Rt,AuthorSellsPeriodSelect:_9t},data(){return{primaryColor:window.primaryColor,periodSelected:"yesterday"}},computed:{...sn({loading:e=>e.authorStats.loading}),...Oe({periods:"authorStats/getPeriods"}),statSelected(){return this.periods[this.periodSelected]},visits(){return this.statSelected.visits!=null?Number(this.statSelected.visits).toLocaleString():"–"},sells(){return Number(this.statSelected.sells).toLocaleString()},conversion(){return this.statSelected.conversion!=null?this.statSelected.conversion.toFixed(2)+" %":"–"},totalToPay(){return Number(this.statSelected.totalToPay).toLocaleString()+" "+this.$t("currency.short")}},methods:{load(){this.$store.dispatch("authorStats/periods")}},mounted(){this.load()}},b9t={class:"bg-primary-5 rounded border border-primary-20"},k9t={class:"d-flex flex-wrap justify-content-between px-4 py-3 border-bottom border-primary-20"},w9t={class:"d-flex align-items-center mb-0"},$9t={class:"d-flex align-items-center fw-medium"},C9t={class:"px-4 py-3 vl-parent mh-4rem"},S9t={class:"d-flex gap-4"},T9t={class:"text-gray-700 small mb-2"},E9t={class:"text-gray-800 mb-0"},I9t={class:"text-gray-700 small mb-2"},P9t={class:"text-gray-800 mb-0"},A9t={class:"text-gray-700 small mb-2"},D9t={class:"text-gray-800 mb-0"},x9t={class:"text-gray-700 small mb-2"},O9t={class:"text-gray-800 mb-0"};function L9t(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link"),l=y("Loading"),d=y("AuthorSellsPeriodSelect");return h(),g("div",b9t,[c("div",k9t,[c("h4",w9t,[b(s,{icon:"graph",width:24,height:24,class:"me-icon"}),z(" "+m(e.$t("product.sells.overview.title")),1)]),b(a,{class:"mt-2 mt-md-0",to:{name:"dashboard/aktualne/prehled-prodeju"}},{default:F(()=>[c("a",$9t,[z(m(e.$t("product.sells.overview.show_more"))+" ",1),b(s,{icon:"chevron-right",class:"ms-icon"})])]),_:1})]),c("div",C9t,[b(l,{active:e.loading,"onUpdate:active":t[0]||(t[0]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(d,{class:"d-inline-block mb-3",selected:i.periodSelected,"onUpdate:selected":t[1]||(t[1]=u=>i.periodSelected=u)},null,8,["selected"]),c("div",S9t,[c("div",null,[c("p",T9t,m(e.$t("authorstats.table.header.visitors")),1),c("h2",E9t,m(r.visits),1)]),c("div",null,[c("p",I9t,m(e.$t("authorstats.table.header.sells")),1),c("h2",P9t,m(r.sells),1)]),c("div",null,[c("p",A9t,m(e.$t("authorstats.table.header.conversion")),1),c("h2",D9t,m(r.conversion),1)]),c("div",null,[c("p",x9t,m(e.$t("authorstats.table.header.total_to_pay")),1),c("h2",O9t,m(r.totalToPay),1)])])])])}const M9t=U(y9t,[["render",L9t]]),N9t=()=>De.get(Pe("api.author.stats.periods")),R9t=e=>De.post(Pe("api.author.stats.monthly"),{date:e}),j9t=(e,t)=>De.post(Pe("administration.api.user.author.stats",{user:e}),{date:t}),F9t=(e,t)=>De.post(Pe("api.author.stats.product.monthly"),{product:e,date:t}),z9t=()=>De.get(Pe("api.author.stats.products.topYesterday")),p0={periods:N9t,monthly:R9t,monthlyAdmin:j9t,productMonthly:F9t,productsTopYesterday:z9t},U9t={components:{Loading:Rt},data(){return{products:[],loading:!1,primaryColor:window.primaryColor}},methods:{load(){this.loading=!0,p0.productsTopYesterday().then(e=>{this.products=e.data.data,this.loading=!1}).catch(()=>{this.loading=!1})}},mounted(){this.load()}},B9t={class:"rounded border border-primary-20"},H9t={class:"px-4 py-3 border-bottom border-primary-20"},V9t={class:"d-flex align-items-center mb-0"},q9t={key:0,class:"d-flex justify-content-center align-items-center medium h-10dot0625rem px-4 py-3 vl-parent"},Y9t={key:0,class:"text-center text-gray-500 mb-0"},W9t={key:1,class:"medium px-4 py-3 h-10dot0625rem overflow-auto scrollbar-modern"},G9t={class:"row text-gray-700 small"},Z9t={class:"col-8"},K9t={class:"col-2 text-end"},J9t={class:"col-2 text-end"},X9t=["href"],Q9t={class:"col-8"},e6t={class:"d-inline-block w-1rem"},t6t={class:"col-2 text-end"},n6t={class:"col-2 text-end"};function o6t(e,t,n,o,i,r){const s=y("app-icon"),a=y("Loading");return h(),g("div",B9t,[c("div",H9t,[c("h4",V9t,[b(s,{icon:"trend",width:24,height:24,class:"me-icon"}),z(" "+m(e.$t("product.sells.yesterday.title")),1)])]),i.products.length?(h(),g("div",W9t,[c("div",G9t,[c("div",Z9t,[t[1]||(t[1]=c("div",{class:"d-inline-block w-1rem"},null,-1)),z(" "+m(e.$t("product.name")),1)]),c("div",K9t,m(e.$t("product.sells.title")),1),c("div",J9t,m(e.$t("public.total_profit")),1)]),(h(!0),g(pe,null,Me(i.products,(l,d)=>(h(),g("a",{key:d,href:l.url,class:"row fw-medium link-dark mt-3"},[c("div",Q9t,[c("div",e6t,m(d+1),1),z(" "+m(l.title),1)]),c("div",t6t,m(l.sells),1),c("div",n6t,m(l.total_to_pay+" "+e.$t("currency.short")),1)],8,X9t))),128))])):(h(),g("div",q9t,[b(a,{active:i.loading,"onUpdate:active":t[0]||(t[0]=l=>i.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),i.loading?D("",!0):(h(),g("p",Y9t,m(e.$t("product.sells.yesterday.empty")),1))]))])}const i6t=U(U9t,[["render",o6t]]),r6t={components:{AppIcon:Ue,ProductCardTags:tse,ProductPrice:Wy,ProductCardTopBadge:Qre},props:{product:Object}},s6t={class:"bg-white rounded border shadow-low shadow-mid-hover bg-white p-2 mh-16dot875rem"},a6t=["href"],l6t=["src","alt"],c6t={class:"d-flex justify-content-between align-items-center border-bottom py-2 mh-2dot5rem"},d6t={class:"d-flex justify-content-center pt-2"},u6t=["href"];function h6t(e,t,n,o,i,r){const s=y("ProductCardTopBadge"),a=y("ProductCardTags"),l=y("ProductPrice"),d=y("AppIcon");return h(),g("div",s6t,[n.product.rank>0?(h(),W(s,{key:0,rank:n.product.rank},null,8,["rank"])):D("",!0),c("a",{href:n.product.url},[c("img",{src:n.product.cover_img_thumbnail,alt:n.product.title,class:"object-fit-cover w-100"},null,8,l6t)],8,a6t),c("div",c6t,[b(a,{product:n.product},null,8,["product"]),b(l,{product:n.product,class:"medium text-gray-800"},null,8,["product"])]),c("div",d6t,[c("a",{href:e.ziggyRoute("product.edit",{product:n.product.id,update:!0}),class:"btn btn-tertiary btn-sm btn-center"},[z(m(e.$t("public.update"))+" ",1),b(d,{icon:"edit",width:"20",height:"20",class:"ms-icon"})],8,u6t)])])}const f6t=U(r6t,[["render",h6t]]),m6t={components:{AuthorProductCard:f6t,AppIcon:Ue},computed:{...Oe({author:"author/getDetail"}),anyProduct(){return this.author.products_count>0}}},p6t={key:0},g6t={class:"d-flex align-items-center mb-4"},v6t={class:"row horizontal-scroll-mobile"};function _6t(e,t,n,o,i,r){const s=y("AppIcon"),a=y("AuthorProductCard");return r.anyProduct?(h(),g("div",p6t,[c("h3",g6t,[b(s,{icon:"materials",width:24,height:24,class:"me-icon"}),z(" "+m(e.$t("dashboard.author.products.headline.latest")),1)]),c("div",v6t,[(h(!0),g(pe,null,Me(e.author.most_recent_products,l=>(h(),g("div",{key:l.id,class:"col-horiz-big-5"},[b(a,{product:l},null,8,["product"])]))),128))])])):D("",!0)}const y6t=U(m6t,[["render",_6t]]),b6t={components:{AuthorNotificationContainer:K$t,AuthorProgressListNew:m9t,AuthorSellsOverview:M9t,AuthorSellsYesterday:i6t,AuthorDashboardProductList:y6t},computed:{...Oe({author:"author/getDetail"})}},k6t={class:"row mb-5"},w6t={class:"col-12 col-lg-5 mb-4 mb-lg-0"},$6t={class:"col-12 col-lg-7"};function C6t(e,t,n,o,i,r){const s=y("AuthorNotificationContainer"),a=y("AuthorProgressListNew"),l=y("AuthorSellsOverview"),d=y("AuthorSellsYesterday"),u=y("AuthorDashboardProductList");return h(),g("div",null,[c("div",k6t,[c("div",w6t,[b(s)]),c("div",$6t,[b(a,{class:"mb-4"}),b(l,{class:"mb-4"}),b(d)])]),b(u)])}const S6t=U(b6t,[["render",C6t]]),T6t={components:{Pill:Ni,AppIcon:Ue,Loading:Rt},props:{notificationProp:{type:Object,default:()=>null},backButtonHidden:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor}},computed:{...sn({loading:e=>e.authorNotification.loading,notificationStore:e=>e.authorNotification.detail,lastOpened:e=>e.authorNotification.lastOpenedTab}),notification(){return this.notificationProp?this.notificationProp:this.notificationStore},pillColor(){return this.notification.type=="custom_notification"?"pink":this.notification.type=="product_notification"?"purple":null},backRoute(){return this.lastOpened==="news"?{name:"dashboard/aktualne/prehled/aktuality"}:{name:"dashboard/aktualne/prehled"}}},mounted(){let e=this.notificationProp?this.notificationProp.id:this.$route.params.id;this.$store.dispatch("authorNotification/show",e)}},E6t={class:"btn btn-secondary btn-sm btn-center mb-4"},I6t={class:"mh-4rem vl-parent"},P6t={class:"d-flex align-items-center mb-3"},A6t={class:"medium text-gray-700 mb-0"},D6t={class:"mb-4"},x6t=["innerHTML"];function O6t(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link"),l=y("Loading"),d=y("Pill");return h(),g("div",null,[n.backButtonHidden?D("",!0):(h(),W(a,{key:0,to:r.backRoute},{default:F(()=>[c("button",E6t,[b(s,{icon:"arrow-left",class:"me-icon"}),z(" "+m(e.$t("dashboard.author.news.back")),1)])]),_:1},8,["to"])),c("div",I6t,[b(l,{active:e.loading,"onUpdate:active":t[0]||(t[0]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.loading?D("",!0):(h(),g("div",{key:0,class:J(["col-12 border border-primary-20 rounded p-4",{"col-lg-8 col-xl-6":!n.fullWidth}])},[c("div",P6t,[b(d,{color:r.pillColor,class:"me-icon"},{default:F(()=>[z(m(e.$tm("author.notification.type")[r.notification.type]),1)]),_:1},8,["color"]),c("p",A6t,m(r.notification.published_at),1)]),c("h3",D6t,m(r.notification.title),1),c("p",{class:"text-break mb-0",innerHTML:r.notification.content},null,8,x6t)],2))])])}const EL=U(T6t,[["render",O6t]]),L6t={props:{selected:Object,dateMin:{type:Date,default:()=>null},labelHidden:{type:Boolean,default:()=>!1}},data(){return{date:mt().toDate(),moment:mt}},computed:{options(){return this.getDatesArray(this.dateMin,this.date)},selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}}},methods:{dateMonthYear(e){const t=new Intl.DateTimeFormat(document.documentElement.lang,{month:"long"}),n=new Date(e);let o=t.format(n.setMonth(n.getMonth())),i=n.getFullYear();return{month:o[0].toUpperCase()+o.slice(1),year:i}},dateMonthYearString(e){let t=this.dateMonthYear(e);return t.month+" "+t.year},getDatesArray(e,t){var n=[],o=mt(t);for(e=mt(e);o>=e;)n.push({date:o,string:this.dateMonthYearString(o)}),o=mt(o).subtract(1,"months");return n}},mounted(){this.$nextTick(()=>{this.selectedModel=this.options[0].date})}},M6t={class:"form-group form-floating"},N6t={key:0,class:"form-label"};function R6t(e,t,n,o,i,r){const s=y("v-select");return h(),g("div",M6t,[b(s,{label:"string",class:"form-control",modelValue:r.selectedModel,"onUpdate:modelValue":t[0]||(t[0]=a=>r.selectedModel=a),options:r.options,reduce:a=>a.date,"close-on-select":!0,searchable:!1,clearable:!1,placeholder:e.$t("filter.placeholder.select")},null,8,["modelValue","options","reduce","placeholder"]),n.labelHidden?D("",!0):(h(),g("label",N6t,m(e.$t("authorstats.month.select")),1))])}const j6t=U(L6t,[["render",R6t]]),F6t={},z6t={class:"row mx-0 py-2 bg-gray-300 small fw-bold text-uppercase text-gray-800"};function U6t(e,t,n,o,i,r){return h(),g("div",z6t,[Pt(e.$slots,"default")])}const ti=U(F6t,[["render",U6t]]),B6t={},H6t={class:"row mx-0 px-0 py-3 align-items-center border-bottom-2 d-flex medium"};function V6t(e,t,n,o,i,r){return h(),g("div",H6t,[Pt(e.$slots,"default")])}const ni=U(B6t,[["render",V6t]]),q6t={components:{FlexTableHead:ti,FlexTableRow:ni},props:{dateSelected:Object},data(){return{primaryColor:window.primaryColor,moment:mt}},computed:{...Oe({stats:"authorStats/getStats"})}},Y6t={key:0},W6t={class:"col-12 d-lg-none"},G6t={class:"col-4 d-none d-lg-flex"},Z6t={class:"col-2 d-none d-lg-flex"},K6t={class:"col-2 d-none d-lg-flex"},J6t={class:"col-2 d-none d-lg-flex"},X6t={class:"col-2 d-none d-lg-flex"},Q6t={class:"col-6 col-lg-4"},eCt={class:"medium text-gray-600 mb-0 d-lg-none"},tCt={class:"col-6 col-lg-2"},nCt={class:"medium text-gray-600 mb-0 d-lg-none"},oCt={class:"col-6 col-lg-2"},iCt={class:"medium text-gray-600 mb-0 d-lg-none mt-4"},rCt={class:"col-6 col-lg-2"},sCt={class:"medium text-gray-600 mb-0 d-lg-none mt-4"},aCt={class:"col-6 col-lg-2"},lCt={class:"medium text-gray-600 mb-0 d-lg-none mt-4"};function cCt(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("FlexTableRow");return e.stats.length?(h(),g("div",Y6t,[b(s,null,{default:F(()=>[c("div",W6t,m(e.$t("dashboard.author.header.tabs.stats")),1),c("div",G6t,m(e.$t("authorstats.table.header.date")),1),c("div",Z6t,m(e.$t("authorstats.table.header.sells")),1),c("div",K6t,m(e.$t("authorstats.table.header.visitors")),1),c("div",J6t,m(e.$t("authorstats.table.header.conversion")),1),c("div",X6t,m(e.$t("authorstats.table.header.total_to_pay")),1)]),_:1}),(h(!0),g(pe,null,Me(e.stats,(l,d)=>(h(),W(a,{key:d,class:J({"border-none":d==e.stats.length-1})},{default:F(()=>[c("div",Q6t,[c("p",eCt,m(e.$t("authorstats.table.header.date")),1),z(" "+m(i.moment(l.date).format("D. M. Y")),1)]),c("div",tCt,[c("p",nCt,m(e.$t("authorstats.table.header.sells")),1),z(" "+m(l.sells?l.sells:0),1)]),c("div",oCt,[c("p",iCt,m(e.$t("authorstats.table.header.visitors")),1),z(" "+m(l.visitors?l.visitors:0),1)]),c("div",rCt,[c("p",sCt,m(e.$t("authorstats.table.header.conversion")),1),z(" "+m(l.conversion?l.conversion.toFixed(2)+" %":"0 %"),1)]),c("div",aCt,[c("p",lCt,m(e.$t("authorstats.table.header.total_to_pay")),1),z(" "+m(l.total_to_pay?l.total_to_pay:0)+" "+m(" "+e.$t("currency.short")),1)])]),_:2},1032,["class"]))),128))])):D("",!0)}const dCt=U(q6t,[["render",cCt]]),uCt={components:{Loading:Rt,Pill:Ni,MonthSelect:j6t,AuthorStatisticsTable:dCt},props:{product:{type:Object,default:null},tableShown:{type:Boolean,default:!1},fromAdmin:{type:Boolean,default:!1},id:{type:Number,default:null}},data(){return{primaryColor:window.primaryColor,moment:mt,dateSelected:mt()}},computed:{...Oe({auth:"auth/auth",loading:"authorStats/isLoading",dateMin:"authorStats/getDateMin",stats:"authorStats/getStatsHeader"}),lastMonthSelected(){var e,t;return((e=this.dateSelected)==null?void 0:e.year())==mt().year()&&((t=this.dateSelected)==null?void 0:t.month())==mt().month()}},methods:{statColor(e){return e>0?"success":e<0?"danger":"gray-900"},statSign(e){return e>0?"+":""},loadProductStats(){this.product.id&&this.$store.dispatch("authorStats/productMonthly",{productId:this.product.id,date:this.dateSelected})},loadAuthorStats(){this.fromAdmin?this.$store.dispatch("authorStats/monthlyAdmin",{userId:this.id,date:this.dateSelected}):this.$store.dispatch("authorStats/monthly",{date:this.dateSelected})},loadStats(){this.product?this.loadProductStats():this.loadAuthorStats()}},watch:{dateSelected(){this.loadStats()},product(){this.loadStats()},auth(){this.loadStats()}}},hCt={class:"d-flex flex-column flex-md-row justify-content-between mb-5"},fCt={class:"mb-5 mb-md-3"},mCt={class:"col-12 col-md-6 col-xl-4"},pCt={class:"vl-parent mh-4dot9625rem"},gCt={key:0},vCt={class:"row"},_Ct={class:"col-12 col-lg-2dot4 border-end-lg-2 border-end-none py-3 py-lg-0"},yCt={class:"d-flex flex-column align-items-center justify-content-center text-center h-100"},bCt={class:"medium mb-0"},kCt={class:"col-12 col-lg-2dot4 border-end-lg-2 border-end-none py-3 py-lg-0"},wCt={class:"d-flex flex-column align-items-center justify-content-center text-center h-100"},$Ct={class:"medium mb-0"},CCt={class:"col-12 col-lg-2dot4 border-end-lg-2 border-end-none py-3 py-lg-0"},SCt={class:"d-flex flex-column align-items-center justify-content-center text-center h-100"},TCt={class:"medium mb-0"},ECt={class:"col-12 col-lg-2dot4 border-end-lg-2 border-end-none pt-3 pt-lg-0"},ICt={class:"d-flex flex-column align-items-center justify-content-center text-center h-100"},PCt={class:"medium mb-0"},ACt={class:"col-12 col-lg-2dot4 pb-3 pb-lg-0"},DCt={class:"d-flex flex-column align-items-center justify-content-center text-center h-100"},xCt={class:"medium mb-0"};function OCt(e,t,n,o,i,r){const s=y("MonthSelect"),a=y("Loading"),l=y("Pill"),d=y("AuthorStatisticsTable"),u=an("tooltip");return h(),g("div",null,[c("div",hCt,[c("h3",fCt,m(n.product?e.$t("authorstats.product.headline"):e.$t("authorstats.author.headline")),1),c("div",mCt,[b(s,{selected:i.dateSelected,"onUpdate:selected":t[0]||(t[0]=f=>i.dateSelected=f),"date-min":e.dateMin},null,8,["selected","date-min"])])]),c("div",pCt,[b(a,{active:e.loading,"onUpdate:active":t[1]||(t[1]=f=>e.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.loading?D("",!0):(h(),g("div",gCt,[c("div",vCt,[c("div",_Ct,[c("div",yCt,[c("h2",{class:J({"mb-0":r.lastMonthSelected&&e.stats.visitors.increase})},m(Number(e.stats.visitors.sum).toLocaleString()),3),r.lastMonthSelected&&e.stats.visitors.increase?xe((h(),W(l,{key:0,color:r.statColor(e.stats.visitors.increase)},{default:F(()=>[z(m("+"+e.stats.visitors.increase.toLocaleString()),1)]),_:1},8,["color"])),[[u,{content:e.$t("authorstats.day"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0),c("p",bCt,m(e.$t("authorstats.month.visitors")),1)])]),c("div",kCt,[c("div",wCt,[c("h2",{class:J({"mb-0":r.lastMonthSelected&&e.stats.sells.increase})},m(Number(e.stats.sells.sum).toLocaleString()),3),r.lastMonthSelected&&e.stats.sells.increase?xe((h(),W(l,{key:0,color:r.statColor(e.stats.sells.increase)},{default:F(()=>[z(m("+"+e.stats.sells.increase.toLocaleString()),1)]),_:1},8,["color"])),[[u,{content:e.$t("authorstats.day"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0),c("p",$Ct,m(e.$t("authorstats.month.sells")),1)])]),c("div",CCt,[c("div",SCt,[c("h2",{class:J("text-"+r.statColor(e.stats.sells_change))},m(r.statSign(e.stats.sells_change)+e.stats.sells_change.toFixed(2)+" %"),3),xe((h(),g("p",TCt,[z(m(e.$t("authorstats.month.sells_change")),1)])),[[u,{content:e.$t("authorstats.month.sells_change_tooltip"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])]),c("div",ECt,[c("div",ICt,[c("h2",null,m(e.stats.conversion.toFixed(2)+" %"),1),c("p",PCt,m(e.$t("authorstats.month.conversion")),1)])]),c("div",ACt,[c("div",DCt,[c("h2",{class:J({"mb-0":r.lastMonthSelected&&e.stats.total_to_pay.increase})},m(Number(e.stats.total_to_pay.sum).toLocaleString()+" "+e.$t("currency.short")),3),r.lastMonthSelected&&e.stats.total_to_pay.increase?xe((h(),W(l,{key:0,color:r.statColor(e.stats.total_to_pay.increase)},{default:F(()=>[z(m("+"+e.stats.total_to_pay.increase.toLocaleString()),1)]),_:1},8,["color"])),[[u,{content:e.$t("authorstats.day"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0),c("p",xCt,m(e.$t("authorstats.month.total_to_pay")),1)])])]),n.tableShown?(h(),W(d,{key:0,class:"mt-5"})):D("",!0)]))])])}const tae=U(uCt,[["render",OCt]]),LCt={components:{AuthorStats:tae}},MCt={class:"btn btn-secondary btn-sm btn-center mb-4"};function NCt(e,t,n,o,i,r){const s=y("app-icon"),a=y("router-link"),l=y("AuthorStats");return h(),g("div",null,[b(a,{to:{name:"dashboard/aktualne/prehled"}},{default:F(()=>[c("button",MCt,[b(s,{icon:"arrow-left",class:"me-icon"}),z(" "+m(e.$t("dashboard.author.news.back")),1)])]),_:1}),b(l,{class:"bg-white rounded border border-primary-20 p-4","table-shown":"","from-admin":!1})])}const RCt=U(LCt,[["render",NCt]]),jCt={components:{TabList:qr,Loading:Rt},data(){return{routes:["dashboard/materialy/vsechny",null,null],notifications:[0,null,null],loadingProductsTab:!0,loadingRevisionsTab:!0,loadingComplaintsTab:!0,primaryColor:window.primaryColor}},computed:{...Oe({author:"author/getDetail",revisions:"authorRevisions/getList",complaints:"authorComplaints/getList"}),loading(){return this.loadingProductsTab||this.loadingRevisionsTab||this.loadingComplaintsTab},titles(){return[this.$t("dashboard.author.products.tabs.0"),null,null]}},methods:{setComplaintsTab(){this.routes[1]="dashboard/materialy/reklamace",this.titles[1]=this.$t("dashboard.author.products.tabs.2"),this.notifications[1]={number:this.complaints.length,color:"danger"}},setRevisionsTab(){this.routes[2]="dashboard/materialy/revize",this.titles[2]=this.$t("dashboard.author.products.tabs.1"),this.notifications[2]={number:this.revisions.length,color:"danger"}},load(){this.$store.dispatch("authorProducts/load").then(()=>{this.loadingProductsTab=!1}),this.$store.dispatch("authorComplaints/load").then(e=>{e.data.data.length>0&&this.setComplaintsTab(),this.loadingRevisionsTab=!1}),this.$store.dispatch("authorRevisions/load").then(e=>{e.data.data.length>0&&this.setRevisionsTab(),this.loadingComplaintsTab=!1})}},mounted(){this.load()}},FCt={class:"vl-parent mh-4rem"},zCt={key:0,class:"bg-white rounded border border-primary-20 p-4"},UCt={class:"mb-3"};function BCt(e,t,n,o,i,r){const s=y("Loading"),a=y("TabList"),l=y("router-view");return h(),g("div",FCt,[b(s,{active:r.loading,"onUpdate:active":t[0]||(t[0]=d=>r.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),r.loading?D("",!0):(h(),g("div",zCt,[c("h3",UCt,m(e.$t("dashboard.author.products.headline.default")),1),b(a,{class:"mb-5",routes:i.routes.filter(d=>d!==null),titles:r.titles.filter(d=>d!==null),notifications:i.notifications.filter(d=>d!==null)},null,8,["routes","titles","notifications"]),b(l)]))])}const HCt=U(jCt,[["render",BCt]]),VCt={components:{AppIcon:Ue},props:{product:Object,iconOnly:Boolean},methods:{openSidebar(){this.$store.dispatch("sidebar/open",{type:"product-delete",data:this.product})}}};function qCt(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return n.iconOnly?xe((h(),g("button",{key:0,class:"btn btn-center btn-danger btn-tertiary btn-sm",onClick:t[0]||(t[0]=(...l)=>r.openSidebar&&r.openSidebar(...l))},[b(s,{icon:"delete",height:"20",width:"20"})])),[[a,{content:e.$t("product.delete"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):(h(),g("button",{key:1,class:"btn btn-center btn-danger btn-tertiary btn-sm",onClick:t[1]||(t[1]=(...l)=>r.openSidebar&&r.openSidebar(...l))},[z(m(e.$t("product.delete"))+" ",1),b(s,{icon:"delete",height:"20",width:"20",class:"ms-icon"})]))}const nae=U(VCt,[["render",qCt]]),ja={list:{routes:["administration/product/list/all","administration/product/list/complaint","administration/product/list/update"]},detail:{routes:["administration/product/detail/info","administration/product/detail/log/list"]},statusDeletedId:7,statusHiddenId:8,state:[{id:0,color:"secondary",key:"pending",string:"ÄŚeká na schválenĂ"},{id:1,color:"success",key:"approved",string:"Schváleno"},{id:2,color:"warning",key:"review",string:"V revizi"},{id:3,color:"danger",key:"disapproved",string:"ZamĂtnuto"},{id:4,color:"disabled",key:"not_for_sale",string:"Neprodává se"},{id:5,color:"disabled",key:"draft",string:"Draft"},{id:6,color:"muted",key:"wait_for_approve",string:"Opraveno"},{id:7,color:"disabled",key:"deleted",string:"Smazáno"},{id:8,color:"disabled",key:"hidden",string:"Schováno"}],complaint:{state:{"ÄŚeká na zákaznĂka":"secondary",Uznáno:"success",Opraveno:"success","ÄŚeká na vyĹ™ĂzenĂ":"danger","ÄŚeká na autora":"warning","ÄŚeká na opravu (vrácen kredit)":"warning","ÄŚeká na opravu":"warning",VyĹ™Ăzeno:"muted"},action:{select:["fix","reject","close","close_no_action"],check:["refund","remove_product"]},openedStates:["waiting_admin","waiting_customer","waiting_author"]},log:{type:{creation:{color:"muted"},approval:{color:"success"},complaint:{color:"danger"},modification:{color:"secondary"},revision:{color:"warning"},reject:{color:"danger"},removal:{color:"muted"}}}},YCt={components:{Pill:Ni},props:{status:Number},data(){return{states:ja.state}}};function WCt(e,t,n,o,i,r){const s=y("Pill");return h(),g("div",null,[b(s,{color:i.states.find(a=>a.id==n.status).color},{default:F(()=>[z(m(i.states.find(a=>a.id==n.status).string),1)]),_:1},8,["color"])])}const J3=U(YCt,[["render",WCt]]),GCt={props:{categories:Array,value:Array,label:String,multiple:{type:Boolean,default:!1}},computed:{valueModel:{get(){return this.value},set(e){this.$emit("update:value",e)}}},methods:{isThirdLevel(e){return e.parent_id&&this.categories.find(t=>t.id==e.parent_id)&&this.categories.find(t=>t.id==e.parent_id).parent_id},isSecondLevel(e){return e.parent_id},isFirstLevel(e){return!e.parent_id}}},ZCt={class:"form-group form-floating"},KCt={key:0,class:"font-italic-important ms-3"},JCt={key:1,class:"ms-1"},XCt={key:2,class:"fw-bold"},QCt={key:3},e7t={class:"form-label"};function t7t(e,t,n,o,i,r){const s=y("v-select");return h(),g("div",ZCt,[b(s,{label:"name",class:"form-control",multiple:n.multiple,modelValue:r.valueModel,"onUpdate:modelValue":t[0]||(t[0]=a=>r.valueModel=a),options:n.categories,"close-on-select":!0,placeholder:e.$t("filter.placeholder.select")},{"no-options":F(()=>[z(m(e.$t("filter.word_not_found")),1)]),option:F(a=>[r.isThirdLevel(a)?(h(),g("span",KCt,m("- "+a.name),1)):r.isSecondLevel(a)?(h(),g("span",JCt,m("- "+a.name),1)):r.isFirstLevel(a)?(h(),g("span",XCt,m(a.name),1)):(h(),g("span",QCt,m(a.name),1))]),_:1},8,["multiple","modelValue","options","placeholder"]),c("label",e7t,m(n.label),1)])}const oae=U(GCt,[["render",t7t]]),n7t={components:{CategorySelect:oae,AppIcon:Ue},props:{filter:{type:Object,default(){return{text:[],category:{class:[],subject:[]}}}},total:{type:Number,default(){return 0}},categories:{type:Object,default(){return{class:[],subject:[]}}},loading:Boolean},data(){return{primaryColor:window.primaryColor,selectedCategories:{class:[],subject:[]},text:""}},computed:{filterModel:{get(){return this.filter},set(e){this.$emit("update:filter",e)}},isActive(){return this.filter.text.length>0||this.filter.category.class.length>0||this.filter.category.subject.length>0},classesFiltered(){return this.categories.class.filter(e=>!this.filter.category.class.map(t=>t.id).includes(e.id.toString())&&!this.filter.category.class.map(t=>t.id).includes(e.parent_id.toString()))},subjectsFiltered(){return this.categories.subject.filter(e=>!this.filter.category.subject.map(t=>t.id).includes(e.id.toString())&&!this.filter.category.subject.map(t=>t.id).includes(e.parent_id.toString()))}},methods:{update(){this.text.length>0&&(this.filterModel.text.push(this.text),this.text=""),this.filterModel.category.class.push(...this.selectedCategories.class),this.filterModel.category.subject.push(...this.selectedCategories.subject),this.selectedCategories={class:[],subject:[]}},clear(){this.filterModel={text:[],category:{class:[],subject:[]}}},removeItem(e,t){e==="text"?this.filterModel.text=this.filterModel.text.filter(function(n){return n!==t}):e==="class"?this.filterModel.category.class=this.filterModel.category.class.filter(function(n){return n.id!==t}):e==="subject"&&(this.filterModel.category.subject=this.filterModel.category.subject.filter(function(n){return n.id!==t}))},getItemLabel(e){let t=null;return Object.values(this.categories).forEach(n=>{let o=n.find(i=>i.id===Number(e));if(o)return t=o,!0}),t==null?void 0:t.name}}},o7t={class:"row"},i7t={class:"flex-grow-1"},r7t={class:"form-group form-floating"},s7t=["placeholder"],a7t={class:"form-label",for:"text"},l7t={class:"col-12 col-lg-2 ms-lg-4 mt-3 mt-lg-0"},c7t={class:"col-12 col-lg-2 ms-lg-4 mt-3 mt-lg-0"},d7t={class:"ms-lg-4 mt-3 mt-lg-0"},u7t={key:0,class:"pt-3 pb-2"},h7t={class:"h5 mb-0"},f7t=["onClick"],m7t=["onClick"],p7t=["onClick"],g7t={key:1},v7t={class:"mb-0"};function _7t(e,t,n,o,i,r){const s=y("CategorySelect"),a=y("AppIcon");return h(),g("div",o7t,[c("div",{class:"d-flex flex-column flex-lg-row",onKeyup:t[4]||(t[4]=bs((...l)=>r.update&&r.update(...l),["enter"]))},[c("div",i7t,[c("div",r7t,[xe(c("input",{type:"text",placeholder:e.$t("filter.search"),class:"form-control","onUpdate:modelValue":t[0]||(t[0]=l=>i.text=l),id:"text"},null,8,s7t),[[wt,i.text]]),c("label",a7t,m(e.$t("filter.search")),1)])]),c("div",l7t,[b(s,{id:"class",value:i.selectedCategories.class,"onUpdate:value":t[1]||(t[1]=l=>i.selectedCategories.class=l),categories:r.classesFiltered,label:e.$t("filter.degree_education"),multiple:""},null,8,["value","categories","label"])]),c("div",c7t,[b(s,{id:"subject",value:i.selectedCategories.subject,"onUpdate:value":t[2]||(t[2]=l=>i.selectedCategories.subject=l),categories:r.subjectsFiltered,label:e.$t("filter.subject"),multiple:""},null,8,["value","categories","label"])]),c("div",d7t,[c("button",{class:"btn btn-primary btn-center w-100",onClick:t[3]||(t[3]=(...l)=>r.update&&r.update(...l))},[z(m(e.$t("filter.search_btn"))+" ",1),b(a,{icon:"search",height:"20",width:"20",class:"ms-icon"})])])],32),r.isActive?(h(),g("div",u7t,[c("div",h7t,[(h(!0),g(pe,null,Me(r.filterModel.text,(l,d)=>(h(),g("span",{class:"badge bg-light text-primary fw-normal cursor-pointer me-2 mb-2",key:d,onClick:u=>r.removeItem("text",l)},[z(m(l)+" ",1),b(a,{icon:"close",height:"20",width:"20"})],8,f7t))),128)),(h(!0),g(pe,null,Me(r.filterModel.category.class,l=>(h(),g("span",{class:"badge bg-light text-primary fw-normal cursor-pointer me-2 mb-2",key:l.id,onClick:d=>r.removeItem("class",l.id)},[z(m(r.getItemLabel(l.id))+" ",1),b(a,{icon:"close",height:"20",width:"20"})],8,m7t))),128)),(h(!0),g(pe,null,Me(r.filterModel.category.subject,l=>(h(),g("span",{class:"badge bg-light text-primary fw-normal cursor-pointer me-2 mb-2",key:l.id,onClick:d=>r.removeItem("subject",l.id)},[z(m(r.getItemLabel(l.id))+" ",1),b(a,{icon:"close",height:"20",width:"20"})],8,p7t))),128))])])):D("",!0),r.isActive&&!n.loading?(h(),g("div",g7t,[c("p",v7t,[z(m(e.$t("filter.products_total",{total:n.total}))+" ",1),c("a",{href:"#",onClick:t[5]||(t[5]=Gt((...l)=>r.clear&&r.clear(...l),["prevent"]))},[c("u",null,m(e.$t("filter.clear")),1)])])])):D("",!0)])}const C6=U(n7t,[["render",_7t]]),y7t={components:{FlexTableHead:ti,FlexTableRow:ni,ProductDeleteButton:nae,ProductStatus:J3,DownloadListFilter:C6,Loading:Rt,AppIcon:Ue,TransitionCollapseHeight:qo,ProductRatingCountPill:ese},props:{query:{type:Object,default(){return{text:"",category:""}}}},data(){return{primaryColor:window.primaryColor,productConfig:ja,openedItem:-1,hover:-1,filter:{category:{subject:[],class:[]},text:[]}}},computed:{...Oe({filterStore:"authorProducts/getComponentFilters",products:"authorProducts/getList",loading:"authorProducts/getLoading",categories:"category/getCategoriesForProducts"}),categoryFilter(){let e=[];this.filter.category.class.forEach(o=>{e.push(o.id)});let t=[];this.filter.category.subject.forEach(o=>{t.push(o.id)});let n=[];return e.length>0&&n.push(e.join(",")),t.length>0&&n.push(t.join(",")),n.join(",")},textFilter(){return this.filter.text.join(",")},combinedFilter(){return{category:this.categoryFilter.length>0?this.categoryFilter:null,text:this.textFilter.length>0?this.textFilter:null}}},methods:{navigate(e){window.location.href=this.ziggyRoute("product.show",e)},toggleOpen(e){this.openedItem===e?this.openedItem=-1:this.openedItem=e},productStatus(e){return e.deleted?this.productConfig.statusDeletedId:e.hidden?this.productConfig.statusHiddenId:e.status},load(){this.$store.dispatch("authorProducts/load")},setCategoriesFromQuery(e){let t=[];return e.split(",").forEach(n=>{t.push({id:n,label:""})}),{class:t,format:[],subject:[]}},setFilters(){this.$store.commit("authorProducts/setComponentFilters",this.filter),this.$store.commit("authorProducts/setFilters",this.combinedFilter)},filterInput(){this.setFilters(),this.load()},serializeCategoryFilter(e){let t=[];e.class.forEach(i=>{t.push(i.id)});let n=[];e.subject.forEach(i=>{n.push(i.id)});let o=[];return t.length>0&&o.push(t.join(",")),n.length>0&&o.push(n.join(",")),o.join(",")},serializeTextFilter(e){return Array.from(e).join(",")},setFilterFromQuery(){this.filter={category:this.query.category?this.setCategoriesFromQuery(this.query.category):{class:[],subject:[]},text:this.query.text?this.query.text.split(","):[]}},setQueryFromFilter(e){this.$router.push({name:this.$route.name,query:{text:this.serializeTextFilter(e.text),category:this.serializeCategoryFilter(e.category)}}).catch(()=>{})}},watch:{combinedFilter(){this.$store.commit("authorProducts/setFilters",this.combinedFilter),this.$store.commit("authorProducts/setComponentFilters",this.filter)},filterStore:{deep:!0,handler(e){this.setQueryFromFilter(e)}},query(){this.setFilterFromQuery(),this.filterInput()}},mounted(){this.$store.dispatch("category/loadForProducts","uploads"),this.filterStore.text.length||this.filterStore.category.subject.length||this.filterStore.category.class.length?(this.filter=this.filterStore,this.setQueryFromFilter(this.filter)):this.setFilterFromQuery(),this.filterInput()}},b7t={key:0,class:"mh-4rem vl-parent"},k7t={key:1},w7t={class:"col-12 col-md-6"},$7t={class:"col-12 col-md-1 d-none d-lg-flex"},C7t={class:"col-12 col-md-2 d-none d-lg-flex"},S7t={class:"col-12 col-md-1 d-none d-lg-flex"},T7t={class:"col-12 col-md-2 d-none d-lg-flex align-items-center"},E7t={class:"col-12 col-md-6 d-flex ps-0"},I7t=["onMouseover","onClick"],P7t=["src","alt"],A7t={class:"text-truncate"},D7t={class:"col-12 col-md-1 d-none d-lg-flex"},x7t={class:"col-12 col-md-2 d-none d-lg-flex"},O7t={class:"col-12 col-md-1 d-none d-lg-flex"},L7t={class:"col-12 col-md-2 d-flex align-items-center pe-0 d-none d-lg-flex"},M7t={class:"flex-grow-1"},N7t=["href"],R7t={class:"d-lg-none rounded bg-primary-5 mb-3"},j7t={class:"row p-3"},F7t={class:"col-6 mb-4"},z7t={class:"medium text-gray-600 mb-0"},U7t={class:"col-6 mb-4"},B7t={class:"medium text-gray-600 mb-0"},H7t={class:"col-6 mb-4"},V7t={class:"medium text-gray-600 mb-0"},q7t={class:"col-6 mb-4"},Y7t={class:"d-flex align-items-center"},W7t={class:"medium text-gray-600 mb-0"},G7t={class:"col-12 col-sm-6 mt-3"},Z7t=["href"],K7t={class:"col-12 col-sm-6 mt-3"};function J7t(e,t,n,o,i,r){const s=y("DownloadListFilter"),a=y("Loading"),l=y("AppIcon"),d=y("FlexTableHead"),u=y("ProductRatingCountPill"),f=y("ProductStatus"),p=y("ProductDeleteButton"),v=y("FlexTableRow"),_=y("TransitionCollapseHeight"),k=an("tooltip");return h(),g("div",null,[b(s,{class:"mb-4",filter:i.filter,"onUpdate:filter":t[0]||(t[0]=C=>i.filter=C),total:e.products.length,categories:e.categories,loading:e.loading},null,8,["filter","total","categories","loading"]),e.loading?(h(),g("div",b7t,[b(a,{active:e.loading,"onUpdate:active":t[1]||(t[1]=C=>e.loading=C),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):D("",!0),!e.loading&&e.products.length>0?(h(),g("div",k7t,[b(d,null,{default:F(()=>[c("div",w7t,m(e.$t("product.title")),1),c("div",$7t,m(e.$t("product.price")),1),c("div",C7t,m(e.$t("product.status")),1),c("div",S7t,m(e.$t("product.downloaded_short")),1),c("div",T7t,[z(m(e.$t("product.total_to_pay.title"))+" ",1),xe(b(l,{icon:"info-circle",class:"ms-1"},null,512),[[k,{content:e.$t("product.total_to_pay.tooltip"),delay:{show:500,hide:100},triggers:["hover"]}]])])]),_:1}),(h(!0),g(pe,null,Me(e.products,(C,$)=>(h(),g("div",{key:C.id,class:J(["border-bottom",{"border-none":$==e.products.length-1}])},[b(v,{class:"border-none cursor-pointer cursor-lg-default bg-primary-5-hover",onClick:E=>r.toggleOpen($)},{default:F(()=>[c("div",E7t,[c("div",{class:"d-flex align-items-center cursor-pointer text-truncate",onMouseover:E=>i.hover=$,onMouseleave:t[2]||(t[2]=E=>i.hover=-1),onClick:Gt(E=>r.navigate(C.id),["prevent","stop"])},[c("img",{src:C.cover_img_thumbnail,alt:C.name,height:"40",width:"40",class:"rounded border object-fit-cover me-3"},null,8,P7t),c("div",A7t,[c("div",{class:J(["text-truncate large",{"text-decoration-underline":i.hover==$}])},m(C.title),3),b(u,{count:C.ratings_count},null,8,["count"])])],40,I7t)]),c("div",D7t,m(C.price_brutto+" "+e.$t("currency.short")),1),c("div",x7t,[b(f,{status:r.productStatus(C),class:"text-truncate"},null,8,["status"])]),c("div",O7t,m(C.sells.toLocaleString()),1),c("div",L7t,[c("div",M7t,m(C.total_to_pay.toLocaleString()+" "+e.$t("currency.short")),1),xe((h(),g("a",{class:"btn btn-tertiary btn-sm btn-center",href:e.ziggyRoute("product.edit",{product:C.id,update:!0})},[b(l,{icon:"edit",width:"20",height:"20"})],8,N7t)),[[k,{content:e.$t("product.edit_product"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),b(p,{product:C,"icon-only":""},null,8,["product"])])]),_:2},1032,["onClick"]),b(_,null,{default:F(()=>[xe(c("div",R7t,[c("div",j7t,[c("div",F7t,[c("p",z7t,m(e.$t("product.price")),1),z(" "+m(C.price_brutto+" "+e.$t("currency.short")),1)]),c("div",U7t,[c("p",B7t,m(e.$t("product.status")),1),b(f,{status:r.productStatus(C),class:"text-truncate"},null,8,["status"])]),c("div",H7t,[c("p",V7t,m(e.$t("product.downloaded_short")),1),z(" "+m(C.sells.toLocaleString()),1)]),c("div",q7t,[c("div",Y7t,[c("p",W7t,m(e.$t("product.total_to_pay.title")),1),xe(b(l,{icon:"info-circle",class:"ms-1"},null,512),[[k,{content:e.$t("product.total_to_pay.tooltip"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),z(" "+m(C.total_to_pay.toLocaleString()+" "+e.$t("currency.short")),1)]),t[3]||(t[3]=c("div",{class:"px-3"},[c("hr",{class:"m-0",style:{height:"0px","border-width":"2px"}})],-1)),c("div",G7t,[c("a",{class:"btn btn-secondary btn-center w-100",href:e.ziggyRoute("product.edit",{product:C.id,update:!0})},[z(m(e.$t("product.edit_product"))+" ",1),b(l,{icon:"edit",width:"20",height:"20",class:"ms-icon"})],8,Z7t)]),c("div",K7t,[b(p,{class:"btn-secondary btn-md w-100",product:C},null,8,["product"])])])],512),[[Vo,i.openedItem===$]])]),_:2},1024)],2))),128))])):D("",!0)])}const X7t=U(y7t,[["render",J7t]]),Q7t={components:{FlexTableHead:ti,FlexTableRow:ni,DownloadListFilter:C6,Loading:Rt,AppIcon:Ue,TransitionCollapseHeight:qo},props:{states:{type:Array,default(){return[]}},query:{type:Object,default(){return{text:"",category:""}}}},data(){return{primaryColor:window.primaryColor,openedItem:-1,hover:-1,filter:{category:{subject:[],class:[]},text:[]}}},computed:{...Oe({filterStore:"authorRevisions/getComponentFilters",products:"authorRevisions/getList",loading:"authorRevisions/getLoading",categories:"category/getCategoriesForProducts"}),categoryFilter(){let e=[];this.filter.category.class.forEach(o=>{e.push(o.id)});let t=[];this.filter.category.subject.forEach(o=>{t.push(o.id)});let n=[];return e.length>0&&n.push(e.join(",")),t.length>0&&n.push(t.join(",")),n.join(",")},textFilter(){return this.filter.text.join(",")},combinedFilter(){return{category:this.categoryFilter.length>0?this.categoryFilter:null,text:this.textFilter.length>0?this.textFilter:null}}},methods:{toggleOpen(e){this.openedItem===e?this.openedItem=-1:this.openedItem=e},openSidebarProductRevisionShow(e){this.$store.dispatch("sidebar/open",{type:"product-revision-show",data:e})},navigate(e){window.location.href=this.ziggyRoute("product.show",e)},load(){this.$store.dispatch("authorRevisions/load")},setCategoriesFromQuery(e){let t=[];return e.split(",").forEach(n=>{t.push({id:n,label:""})}),{class:t,format:[],subject:[]}},filterInput(){this.$store.commit("authorRevisions/setComponentFilters",this.filter),this.$store.commit("authorRevisions/setFilters",this.combinedFilter),this.load()},serializeCategoryFilter(e){let t=[];e.class.forEach(i=>{t.push(i.id)});let n=[];e.subject.forEach(i=>{n.push(i.id)});let o=[];return t.length>0&&o.push(t.join(",")),n.length>0&&o.push(n.join(",")),o.join(",")},serializeTextFilter(e){return Array.from(e).join(",")},setFilterFromQuery(){this.filter={category:this.query.category?this.setCategoriesFromQuery(this.query.category):{class:[],subject:[]},text:this.query.text?this.query.text.split(","):[]}},setQueryFromFilter(e){this.$router.push({name:this.$route.name,query:{text:this.serializeTextFilter(e.text),category:this.serializeCategoryFilter(e.category)}}).catch(()=>{})}},watch:{combinedFilter(){this.$store.commit("authorRevisions/setFilters",this.combinedFilter),this.$store.commit("authorRevisions/setComponentFilters",this.filter),this.load()},filterStore:{deep:!0,handler(){this.setQueryFromFilter(this.filter)}},query(){this.setFilterFromQuery(),this.filterInput()}},mounted(){this.filterStore.text.length||this.filterStore.category.subject.length||this.filterStore.category.class.length?(this.filter=this.filterStore,this.setQueryFromFilter(this.filter)):this.setFilterFromQuery(),this.filterInput()}},eSt={key:0,class:"mh-4rem vl-parent"},tSt={key:1},nSt={class:"col-12 col-md-7"},oSt={class:"col-12 col-md-2 d-none d-lg-flex"},iSt={class:"col-12 col-md-3 d-none d-lg-flex"},rSt={class:"col-12 col-md-7 d-flex ps-0"},sSt=["onMouseover","onClick"],aSt=["src"],lSt={class:"col-12 col-md-2 d-none d-lg-flex"},cSt={class:"col-12 col-md-3 d-flex align-items-center pe-0 d-none d-lg-flex"},dSt={class:"flex-grow-1"},uSt={key:0},hSt={key:1},fSt=["onClick"],mSt=["href"],pSt={class:"d-lg-none rounded bg-primary-5 mb-3"},gSt={class:"row p-3"},vSt={class:"col-6 mb-4"},_St={class:"medium text-gray-600 mb-0"},ySt={class:"col-6 mb-4"},bSt={class:"medium text-gray-600 mb-0"},kSt={key:0},wSt={key:1},$St={class:"col-12 col-sm-6 mt-3"},CSt=["onClick"],SSt={class:"col-12 col-sm-6 mt-3"},TSt=["href"];function ESt(e,t,n,o,i,r){const s=y("DownloadListFilter"),a=y("Loading"),l=y("FlexTableHead"),d=y("AppIcon"),u=y("FlexTableRow"),f=y("TransitionCollapseHeight"),p=an("tooltip");return h(),g("div",null,[b(s,{class:"mb-4",filter:i.filter,"onUpdate:filter":t[0]||(t[0]=v=>i.filter=v),total:e.products.length,categories:e.categories,loading:e.loading},null,8,["filter","total","categories","loading"]),e.loading?(h(),g("div",eSt,[b(a,{active:e.loading,"onUpdate:active":t[1]||(t[1]=v=>e.loading=v),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):D("",!0),!e.loading&&e.products.length>0?(h(),g("div",tSt,[b(l,null,{default:F(()=>[c("div",nSt,m(e.$t("product.material")),1),c("div",oSt,m(e.$t("complaints.date")),1),c("div",iSt,m(e.$t("complaints.table.reason")),1)]),_:1}),(h(!0),g(pe,null,Me(e.products,(v,_)=>(h(),g("div",{key:v.id,class:J(["border-bottom",{"border-none":_==e.products.length-1}])},[b(u,{class:"border-none cursor-pointer cursor-lg-default bg-primary-5-hover",onClick:k=>r.toggleOpen(_)},{default:F(()=>[c("div",rSt,[c("div",{class:"d-flex align-items-center cursor-pointer",onMouseover:k=>i.hover=_,onMouseleave:t[2]||(t[2]=k=>i.hover=-1),onClick:Gt(k=>r.navigate(v.id),["prevent","stop"])},[c("img",{src:v.cover_img_thumbnail,height:"40",width:"40",class:"rounded border object-fit-cover me-3"},null,8,aSt),c("div",{class:J(["text-truncate large",{"text-decoration-underline":i.hover==_}])},m(v.title),3)],40,sSt)]),c("div",lSt,m(new Date(v.updated_at).toLocaleDateString()),1),c("div",cSt,[c("div",dSt,[(h(!0),g(pe,null,Me(v.revision.reasons,(k,C)=>(h(),g("span",{key:C},[k.type==null?xe((h(),g("span",uSt,[z(m(k.custom_title)+" ",1),b(d,{icon:"info-circle",class:"ms-1"}),c("span",{class:J({"d-none":C==v.revision.reasons.length-1})},", ",2)])),[[p,{content:k.custom_text,delay:{show:500,hide:100},triggers:["hover","click"]}]]):(h(),g("span",hSt,[z(m(e.$tm("email.admin_product_feedback.reasons")[k.type].headline)+" ",1),c("span",{class:J({"d-none":C==v.revision.reasons.length-1})},m(","),2)]))]))),128))]),c("button",{class:"btn btn-tertiary btn-center btn-sm",onClick:k=>r.openSidebarProductRevisionShow(v)},[b(d,{icon:"info-circle",width:"20",height:"20"})],8,fSt),xe((h(),g("a",{class:"btn btn-tertiary btn-center btn-sm",href:e.ziggyRoute("product.edit",v.id)},[b(d,{icon:"edit",width:"20",height:"20"})],8,mSt)),[[p,{content:e.$t("product.edit_product"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])]),_:2},1032,["onClick"]),b(f,null,{default:F(()=>[xe(c("div",pSt,[c("div",gSt,[c("div",vSt,[c("p",_St,m(e.$t("complaints.date")),1),z(" "+m(new Date(v.updated_at).toLocaleDateString()),1)]),c("div",ySt,[c("p",bSt,m(e.$t("complaints.table.reason")),1),(h(!0),g(pe,null,Me(v.revision.reasons,(k,C)=>(h(),g("span",{key:C},[k.type==null?xe((h(),g("span",kSt,[z(m(k.custom_title)+" ",1),b(d,{icon:"info-circle",class:"ms-1"}),c("span",{class:J({"d-none":C==v.revision.reasons.length-1})},m(","),2)])),[[p,{content:k.custom_text,delay:{show:500,hide:100},triggers:["hover","click"]}]]):(h(),g("span",wSt,[z(m(e.$tm("email.admin_product_feedback.reasons")[k.type].headline)+" ",1),c("span",{class:J({"d-none":C==v.revision.reasons.length-1})},m(","),2)]))]))),128))]),t[3]||(t[3]=c("div",{class:"px-3"},[c("hr",{class:"m-0",style:{height:"0px","border-width":"2px"}})],-1)),c("div",$St,[c("button",{class:"btn btn-secondary btn-center w-100",onClick:k=>r.openSidebarProductRevisionShow(v)},[z(m(e.$t("public.details"))+" ",1),b(d,{icon:"info-circle",width:"20",height:"20",class:"ms-icon"})],8,CSt)]),c("div",SSt,[c("a",{class:"btn btn-secondary btn-center w-100",href:e.ziggyRoute("product.edit",v.id)},[z(m(e.$t("product.edit_product"))+" ",1),b(d,{icon:"edit",width:"20",height:"20",class:"ms-icon"})],8,TSt)])])],512),[[Vo,i.openedItem===_]])]),_:2},1024)],2))),128))])):D("",!0)])}const ISt=U(Q7t,[["render",ESt]]),PSt={components:{FlexTableHead:ti,FlexTableRow:ni,Loading:Rt,AppIcon:Ue,TransitionCollapseHeight:qo},props:{query:{type:Object,default(){return{text:"",category:""}}}},data(){return{primaryColor:window.primaryColor,openedItem:-1,hover:-1,filter:{category:{subject:[],class:[]},text:[]}}},computed:{...Oe({filterStore:"authorComplaints/getComponentFilters",complaints:"authorComplaints/getList",loading:"authorComplaints/getLoading"}),categoryFilter(){let e=[];this.filter.category.class.forEach(o=>{e.push(o.id)});let t=[];this.filter.category.subject.forEach(o=>{t.push(o.id)});let n=[];return e.length>0&&n.push(e.join(",")),t.length>0&&n.push(t.join(",")),n.join(",")},textFilter(){return this.filter.text.join(",")},combinedFilter(){return{category:this.categoryFilter.length>0?this.categoryFilter:null,text:this.textFilter.length>0?this.textFilter:null}}},methods:{toggleOpen(e){this.openedItem===e?this.openedItem=-1:this.openedItem=e},openSidebarComplaint(e){let t={...e,title:e.order_item.title,isAuthor:!0};this.$store.dispatch("sidebar/open",{type:"complaint-show",data:t})},navigate(e){window.location.href=this.ziggyRoute("product.show",e)},load(){this.$store.dispatch("authorComplaints/load")},setCategoriesFromQuery(e){let t=[];return e.split(",").forEach(n=>{t.push({id:n,label:""})}),{class:t,format:[],subject:[]}},filterInput(){this.$store.commit("authorComplaints/setComponentFilters",this.filter),this.$store.commit("authorComplaints/setFilters",this.combinedFilter),this.load()},serializeCategoryFilter(e){let t=[];e.class.forEach(i=>{t.push(i.id)});let n=[];e.subject.forEach(i=>{n.push(i.id)});let o=[];return t.length>0&&o.push(t.join(",")),n.length>0&&o.push(n.join(",")),o.join(",")},serializeTextFilter(e){return Array.from(e).join(",")},setFilterFromQuery(){this.filter={category:this.query.category?this.setCategoriesFromQuery(this.query.category):{class:[],subject:[]},text:this.query.text?this.query.text.split(","):[]}}},watch:{combinedFilter(){this.filterInput()},filterStore:{deep:!0,handler(e){this.$router.push({name:this.$route.name,query:{text:this.serializeTextFilter(e.text),category:this.serializeCategoryFilter(e.category)}}).catch(()=>{})}},query(){this.setFilterFromQuery(),this.filterInput()}},mounted(){this.load()}},ASt={class:"mh-4rem vl-parent"},DSt={key:0},xSt={class:"col-12 col-md-7"},OSt={class:"col-12 col-md-2 d-none d-lg-flex"},LSt={class:"col-12 col-md-3 d-none d-lg-flex"},MSt={class:"col-12 col-md-7 d-flex ps-0"},NSt=["onMouseover","onClick"],RSt=["src"],jSt={class:"col-12 col-md-2 d-none d-lg-flex"},FSt={class:"col-12 col-md-3 d-flex align-items-center justify-content-between complaint-state-wrapper pe-0 d-none d-lg-flex"},zSt={class:"flex-grow-1"},USt=["onClick"],BSt=["href"],HSt={class:"d-lg-none rounded bg-primary-5 mb-3"},VSt={class:"row p-3"},qSt={class:"col-6 mb-4"},YSt={class:"medium text-gray-600 mb-0"},WSt={class:"col-6 mb-4"},GSt={class:"medium text-gray-600 mb-0"},ZSt={class:"col-12 col-sm-6 mt-3"},KSt=["onClick"],JSt={class:"col-12 col-sm-6 mt-3"},XSt=["href"];function QSt(e,t,n,o,i,r){const s=y("Loading"),a=y("FlexTableHead"),l=y("AppIcon"),d=y("FlexTableRow"),u=y("TransitionCollapseHeight"),f=an("tooltip");return h(),g("div",null,[c("div",ASt,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=p=>e.loading=p),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.loading?D("",!0):(h(),g("div",DSt,[b(a,null,{default:F(()=>[c("div",xSt,m(e.$t("product.material")),1),c("div",OSt,m(e.$t("complaints.date")),1),c("div",LSt,m(e.$t("complaints.table.state")),1)]),_:1}),(h(!0),g(pe,null,Me(e.complaints,(p,v)=>(h(),g("div",{key:p.id,class:J(["border-bottom",{"border-none":v==e.complaints.length-1}])},[b(d,{class:"border-none cursor-pointer cursor-lg-default bg-primary-5-hover",onClick:_=>r.toggleOpen(v)},{default:F(()=>[c("div",MSt,[c("div",{class:"d-flex align-items-center cursor-pointer",onMouseover:_=>i.hover=v,onMouseleave:t[1]||(t[1]=_=>i.hover=-1),onClick:Gt(_=>r.navigate(p.order_item.product_id),["prevent","stop"])},[c("img",{src:p.order_item.cover_img_thumbnail,height:"40",width:"40",class:"rounded border object-fit-cover me-3"},null,8,RSt),c("div",{class:J(["text-truncate large",{"text-decoration-underline":i.hover==v}])},m(p.order_item.title),3)],40,NSt)]),c("div",jSt,m(p.updated_at),1),c("div",FSt,[c("div",zSt,[p.has_product_updates?(h(),g("div",{key:0,class:J(["complaint-state",p.state])},m(e.$t("complaints.author_states.accepted_fixed")),3)):(h(),g("div",{key:1,class:J(["complaint-state",p.state])},m(e.$tm("complaints.author_states")[p.state]),3))]),c("button",{class:"btn btn-tertiary btn-center btn-sm",onClick:_=>r.openSidebarComplaint(p)},[b(l,{icon:"info-circle",width:"20",height:"20"})],8,USt),xe((h(),g("a",{class:"btn btn-tertiary btn-center btn-sm",href:e.ziggyRoute("product.edit",p.order_item.product_id)},[b(l,{icon:"edit",width:"20",height:"20"})],8,BSt)),[[f,{content:e.$t("product.edit_product"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])]),_:2},1032,["onClick"]),b(u,null,{default:F(()=>[xe(c("div",HSt,[c("div",VSt,[c("div",qSt,[c("p",YSt,m(e.$t("complaints.date")),1),z(" "+m(p.updated_at),1)]),c("div",WSt,[c("p",GSt,m(e.$t("complaints.table.state")),1),p.has_product_updates?(h(),g("div",{key:0,class:J(["complaint-state",p.state])},m(e.$t("complaints.author_states.accepted_fixed")),3)):(h(),g("div",{key:1,class:J(["complaint-state",p.state])},m(e.$tm("complaints.author_states")[p.state]),3))]),t[2]||(t[2]=c("div",{class:"px-3"},[c("hr",{class:"m-0",style:{height:"0px","border-width":"2px"}})],-1)),c("div",ZSt,[c("button",{class:"btn btn-secondary btn-center w-100",onClick:_=>r.openSidebarComplaint(p)},[z(m(e.$t("public.details"))+" ",1),b(l,{icon:"info-circle",width:"20",height:"20",class:"ms-icon"})],8,KSt)]),c("div",JSt,[c("a",{class:"btn btn-secondary btn-center w-100",href:e.ziggyRoute("product.edit",p.order_item.product_id)},[z(m(e.$t("product.edit_product"))+" ",1),b(l,{icon:"edit",width:"20",height:"20",class:"ms-icon"})],8,XSt)])])],512),[[Vo,i.openedItem===v]])]),_:2},1024)],2))),128))]))])])}const eTt=U(PSt,[["render",QSt]]),tTt=e=>De.post(Pe("api.settlement_payment.store"),{settlement_id:e}),nTt={store:tTt},oTt={components:{Pill:Ni,AppIcon:Ue},props:{settlementId:Number,leftToPay:Number,status:String},data(){return{loading:!1,statusMutable:this.status}},methods:{sendPayment(){this.loading||(this.loading=!0,nTt.store(this.settlementId).then(e=>{e.status===200&&(window.flash(e.data.message,"success"),this.statusMutable=e.data.status,this.loading=!1)}).catch(e=>{(e.response.status===422||e.response.status===400)&&e.response.data.errors&&e.response.data.errors.amount&&window.flash(e.response.data.errors.amount[0],"error"),this.loading=!1}))}},computed:{...Oe({auth:"auth/auth"}),isVatPayer(){return this.auth?this.auth.is_vat_payer??!1:!1}}},iTt={key:0},rTt=["disabled"];function sTt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("Pill"),l=an("tooltip");return h(),g("span",null,[i.statusMutable==="pay"?xe((h(),g("span",iTt,[c("button",{class:"btn btn-primary btn-sm",onClick:t[0]||(t[0]=(...d)=>r.sendPayment&&r.sendPayment(...d)),disabled:i.loading||r.isVatPayer},[i.loading?(h(),W(s,{key:0,icon:"cog",width:"16",height:"16",class:"me-1",spin:!0})):D("",!0),z(" "+m(e.$t("settlements.author.request")),1)],8,rTt)])),[[l,{content:r.isVatPayer?e.$t("author.settlement.vat_payer_payout_tooltip"):"",delay:{show:500,hide:100},triggers:["hover","click"]}]]):i.statusMutable==="paid"?(h(),W(a,{key:1,color:"success",class:"small py-2"},{default:F(()=>[z(m(e.$t("settlements.author.sent")),1)]),_:1})):i.statusMutable==="requested"?xe((h(),W(a,{key:2,color:"warning",class:"small py-2"},{default:F(()=>[z(m(e.$t("settlements.author.requested")),1)]),_:1})),[[l,{content:e.$t("settlements.author.requested_info"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0)])}const aTt=U(oTt,[["render",sTt]]),lTt={props:{year:[String,Number]},components:{FlexTableRow:ni,FlexTableHead:ti,PaySettlementForMonth:aTt,Loading:Rt,AppIcon:Ue},data(){return{url:this.files,settlements:[],loading:!1,primaryColor:window.primaryColor,moment:mt}},computed:{...Oe({auth:"auth/auth"})},mounted(){this.loading=!0,Ju.settlements(this.year).then(e=>{this.settlements=e.data.settlements,this.loading=!1}).catch(e=>{throw e.response&&e.response.status===403&&(window.location.href="/"),e}),this.moment.updateLocale("cs",{months:this.$tm("public.months")})}},cTt={class:"vl-parent mh-4rem"},dTt={key:0},uTt={class:"col"},hTt={class:"col d-none d-lg-flex"},fTt={class:"col-2 d-none d-lg-flex"},mTt={class:"col-2 d-none d-lg-flex"},pTt={class:"col-3 d-none d-lg-flex"},gTt={class:"col-12 col-lg capitalize"},vTt={class:"col-6 col-lg"},_Tt={class:"medium text-gray-600 mt-4 d-lg-none"},yTt={class:"col-6 col-lg-2"},bTt={class:"medium text-gray-600 mt-4 d-lg-none"},kTt={class:"d-flex"},wTt=["href"],$Tt=["href"],CTt={class:"col-6 col-lg-2"},STt={class:"medium text-gray-600 mt-4 d-lg-none"},TTt={class:"d-flex"},ETt=["href"],ITt=["href"],PTt={class:"col-6 col-lg-3"},ATt={class:"medium text-gray-600 mt-4 d-lg-none"};function DTt(e,t,n,o,i,r){const s=y("Loading"),a=y("FlexTableHead"),l=y("AppIcon"),d=y("PaySettlementForMonth"),u=y("FlexTableRow"),f=an("tooltip");return h(),g("div",cTt,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=p=>i.loading=p),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),i.loading?D("",!0):(h(),g("div",dTt,[b(a,null,{default:F(()=>[c("div",uTt,m(e.$t("settlements.author.table.month")),1),c("div",hTt,m(e.$t("settlements.author.table.total_to_pay")),1),c("div",fTt,m(e.$t("settlements.author.table.billing")),1),c("div",mTt,m(e.$t("settlements.author.table.license_invoice")),1),c("div",pTt,m(e.$t("settlements.author.table.payout")),1)]),_:1}),(h(!0),g(pe,null,Me(i.settlements,(p,v)=>(h(),W(u,{key:p.id,class:J({"border-none":v==i.settlements.length-1})},{default:F(()=>[c("div",gTt,m(i.moment(p.from).format("MMMM YYYY")),1),c("div",vTt,[c("p",_Tt,m(e.$t("settlements.author.table.total_to_pay")),1),z(" "+m(p.total_to_pay+" "+e.$t("currency.short")),1)]),c("div",yTt,[c("p",bTt,m(e.$t("settlements.author.table.billing")),1),c("div",kTt,[p.sheet_url?xe((h(),g("a",{key:0,class:"btn btn-tertiary btn-center btn-sm d-none d-lg-flex",href:p.sheet_url,target:"_blank"},[b(l,{icon:"download",width:"20",height:"20"})],8,wTt)),[[f,{content:e.$t("download.download"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0),p.sheet_url?(h(),g("a",{key:1,class:"btn btn-secondary btn-center w-100 d-lg-none",href:p.sheet_url,target:"_blank"},[z(m(e.$t("download.download"))+" ",1),b(l,{icon:"download",width:"20",height:"20",class:"ms-icon"})],8,$Tt)):D("",!0)])]),c("div",CTt,[c("p",STt,m(e.$t("settlements.author.table.license_invoice")),1),c("div",TTt,[p.commission_invoice_pdf_url?xe((h(),g("a",{key:0,class:"btn btn-tertiary btn-center btn-sm d-none d-lg-flex",href:p.commission_invoice_pdf_url,target:"_blank"},[b(l,{icon:"download",width:"20",height:"20"})],8,ETt)),[[f,{content:e.$t("download.download"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0),p.commission_invoice_pdf_url?(h(),g("a",{key:1,class:"btn btn-secondary btn-center w-100 d-lg-none",href:p.commission_invoice_pdf_url,target:"_blank"},[z(m(e.$t("download.download"))+" ",1),b(l,{icon:"download",width:"20",height:"20",class:"ms-icon"})],8,ITt)):D("",!0)])]),c("div",PTt,[c("p",ATt,m(e.$t("settlements.author.table.payout")),1),b(d,{"settlement-id":p.id,"left-to-pay":p.total_left_to_pay,status:p.status},null,8,["settlement-id","left-to-pay","status"])])]),_:2},1032,["class"]))),128))]))])}const xTt=U(lTt,[["render",DTt]]),OTt={components:{AppIcon:Ue},computed:{...Oe({author:"author/getDetail",auth:"auth/auth"})},methods:{toggle(){this.auth.is_admin?window.open(this.ziggyRoute("administration.messages","_blank")):this.$store.commit("sidebarChat/toggleChatOpen")}}},LTt={class:"text-gray-600"},MTt={class:"d-flex align-items-center"},NTt={class:"text-gray-800 fw-medium mb-0"},RTt={class:"medium"},jTt={class:"medium"},FTt={class:"medium"},zTt={key:0,class:"medium"};function UTt(e,t,n,o,i,r){var l,d,u,f,p,v,_,k,C;const s=y("AppIcon"),a=an("tooltip");return h(),g("div",LTt,[c("div",MTt,[c("p",NTt,m(e.$t("author.invoice.title")),1),xe(b(s,{icon:"info-circle",class:"ms-icon tooltip-icon icon-14"},null,512),[[a,{content:e.$t("author.invoice.usage"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),t[7]||(t[7]=c("hr",{class:"my-3"},null,-1)),c("div",RTt,[z(m((l=e.author.contractor_details)==null?void 0:l.contractor_company)+" ",1),t[1]||(t[1]=c("br",null,null,-1)),z(" "+m((d=e.author.contractor_details)==null?void 0:d.contractor_address)+" ",1),t[2]||(t[2]=c("br",null,null,-1)),z(" "+m((u=e.author.contractor_details)==null?void 0:u.contractor_psc)+" "+m((f=e.author.contractor_details)==null?void 0:f.contractor_city)+" ",1),t[3]||(t[3]=c("br",null,null,-1)),t[4]||(t[4]=c("br",null,null,-1)),z(" "+m((p=e.author.contractor_details)!=null&&p.contractor_ico?e.$t("author.id")+": "+((v=e.author.contractor_details)==null?void 0:v.contractor_ico):e.$t("public.dash"))+" ",1),t[5]||(t[5]=c("br",null,null,-1)),z(" "+m((_=e.author.contractor_details)!=null&&_.contractor_dic?e.$t("author.vat_id")+": "+((k=e.author.contractor_details)==null?void 0:k.contractor_dic):e.$t("public.dash")),1)]),t[8]||(t[8]=c("hr",{class:"my-3"},null,-1)),c("div",jTt,[z(m(e.$t("author.settlement.bank_number"))+" ",1),t[6]||(t[6]=c("br",null,null,-1)),z(" "+m((C=e.author.contractor_details)==null?void 0:C.contractor_bank_account),1)]),t[9]||(t[9]=c("hr",{class:"my-3"},null,-1)),c("div",FTt,m(e.$t("author.commission")+": "+e.author.commission+" %"),1),e.author.is_hmat?(h(),g("div",zTt,m(e.$t("author.hmat_commission")+": "+e.author.hmat_commission+" %"),1)):D("",!0),t[10]||(t[10]=c("hr",{class:"my-3"},null,-1)),c("div",{class:"medium link-primary cursor-pointer",onClick:t[0]||(t[0]=(...$)=>r.toggle&&r.toggle(...$))},m(e.$t("public.data_update")+" "+e.$t("messenger.message_write")),1)])}const BTt=U(OTt,[["render",UTt]]),HTt={components:{AuthorSettlementsTable:xTt,AuthorInvoiceInfo:BTt},data(){return{activeTab:0}},computed:{years(){let e=new Date().getFullYear();return Array.from({length:e-2019},(t,n)=>e-n)}}},VTt={class:"row"},qTt={class:"col-12 col-lg-9 px-0 px-md-2dot5"},YTt={class:"bg-white rounded border border-primary-20 p-4"},WTt={class:"mb-5"},GTt={id:"tabs",class:"tabs mb-5"},ZTt={class:"tabList"},KTt=["onClick"],JTt={class:"col-12 col-lg-3 mt-md-4 mt-lg-0 px-0 px-md-2dot5"};function XTt(e,t,n,o,i,r){const s=y("AuthorSettlementsTable"),a=y("AuthorInvoiceInfo");return h(),g("div",VTt,[c("div",qTt,[c("div",YTt,[c("h3",WTt,m(e.$t("settlements.billing")),1),c("div",GTt,[c("ul",ZTt,[(h(!0),g(pe,null,Me(r.years,(l,d)=>(h(),g("li",{key:d,onClick:Gt(u=>i.activeTab=d,["prevent"]),class:J({active:i.activeTab===d})},m(e.$t("public.year")+" "+l),11,KTt))),128))])]),(h(!0),g(pe,null,Me(r.years,(l,d)=>(h(),g("div",{key:d},[i.activeTab===d?(h(),W(s,{key:0,year:l},null,8,["year"])):D("",!0)]))),128))])]),t[0]||(t[0]=c("hr",{class:"d-md-none my-3"},null,-1)),c("div",JTt,[b(a,{class:"bg-white rounded border border-primary-20 p-4"})])])}const QTt=U(HTt,[["render",XTt]]),ru={settings_permissions:{undefined:{},1:{basic_settings:!0,image_sources:!0,promo_material:!0,discount:!0,cover_img:!0,product_groups:!0},2:{basic_settings:!0,image_sources:!0,promo_material:!0,discount:!0,cover_img:!0,product_groups:!0},3:{basic_settings:!0,image_sources:!0,promo_material:!0,discount:!0,cover_img:!0,product_groups:!1}},badge_requirements:{undefined:{},NaN:{},1:{number_of_products:50},2:{number_of_products:10},3:{number_of_products:1}}},eEt={components:{AppIcon:Ue,Pill:Ni},computed:{...sn({badge:e=>e.author.detail.badge,discount:e=>e.discount.detail}),showDiscountAutomaticNotification(){return this.discount&&this.discount.id}},methods:{hasPermission(e){return ru.settings_permissions[this.badge][e]}},mounted(){this.$store.dispatch("discount/show")}},tEt={class:"py-2 bg-white medium"},nEt={id:"tabs",class:"tabs"},oEt={class:"tabList-vertical"},iEt=["onClick"],rEt=["onClick"],sEt=["onClick"],aEt=["onClick"];function lEt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link"),l=y("Pill"),d=an("tooltip");return h(),g("div",tEt,[c("div",nEt,[c("ul",oEt,[b(a,{to:{name:"dashboard/marketing/promo-material"},custom:""},{default:F(({isActive:u,navigate:f})=>[r.hasPermission("promo_material")?(h(),g("li",{key:0,onClick:f,class:J([u&&"active"])},m(e.$t("dashboard.author.marketing.promo_product")),11,iEt)):xe((h(),g("li",{key:1,class:J(["locked",[u&&"active"]]),onClick:f},[z(m(e.$t("dashboard.author.marketing.promo_product"))+" ",1),b(s,{icon:"lock",width:"20",height:"20",class:"ms-icon"})],10,rEt)),[[d,{content:e.$t("public.locked"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),_:1}),b(a,{to:{name:"dashboard/marketing/slevy"},custom:""},{default:F(({isActive:u,navigate:f})=>[r.hasPermission("discount")?(h(),g("li",{key:0,onClick:f,class:J([u&&"active"])},[z(m(e.$t("dashboard.author.marketing.discounts"))+" ",1),r.showDiscountAutomaticNotification?(h(),W(l,{key:0,color:"warning-dark",class:"ms-2"},{default:F(()=>[z(m(e.$t("discount.automatic.title_short")+"!"),1)]),_:1})):D("",!0)],10,sEt)):xe((h(),g("li",{key:1,class:J(["locked",[u&&"active"]]),onClick:f},[z(m(e.$t("dashboard.author.marketing.discounts"))+" ",1),b(s,{icon:"lock",width:"20",height:"20",class:"ms-icon"})],10,aEt)),[[d,{content:e.$t("public.locked"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),_:1})])])])}const cEt=U(eEt,[["render",lEt]]),dEt={components:{AuthorMarketingTabList:cEt}},uEt={class:"row"},hEt={class:"col-12 col-md-3 col-xl-2 px-0 px-md-2dot5"},fEt={class:"col-12 col-md-9 col-xl-10 px-0 px-md-2dot5"};function mEt(e,t,n,o,i,r){const s=y("AuthorMarketingTabList"),a=y("router-view");return h(),g("div",uEt,[c("div",hEt,[b(s,{class:"bg-white rounded border border-primary-20 p-0 pb-md-2"})]),t[0]||(t[0]=c("hr",{class:"d-md-none my-3"},null,-1)),c("div",fEt,[b(a)])])}const pEt=U(dEt,[["render",mEt]]);/*! * FilePond 4.31.4 * Licensed under MIT, https://opensource.org/licenses/MIT/ * Please visit https://pqina.nl/filepond/ for details. */const gEt=e=>e instanceof HTMLElement,vEt=(e,t=[],n=[])=>{const o={...e},i=[],r=[],s=()=>({...o}),a=()=>{const _=[...i];return i.length=0,_},l=()=>{const _=[...r];r.length=0,_.forEach(({type:k,data:C})=>{d(k,C)})},d=(_,k,C)=>{if(C&&!document.hidden){r.push({type:_,data:k});return}v[_]&&v[_](k),i.push({type:_,data:k})},u=(_,...k)=>p[_]?p[_](...k):null,f={getState:s,processActionQueue:a,processDispatchQueue:l,dispatch:d,query:u};let p={};t.forEach(_=>{p={..._(o),...p}});let v={};return n.forEach(_=>{v={..._(d,u,o),...v}}),f},_Et=(e,t,n)=>{if(typeof n=="function"){e[t]=n;return}Object.defineProperty(e,t,{...n})},Pr=(e,t)=>{for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])},Zm=e=>{const t={};return Pr(e,n=>{_Et(t,n,e[n])}),t},$s=(e,t,n=null)=>{if(n===null)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},yEt="http://www.w3.org/2000/svg",bEt=["svg","path"],uq=e=>bEt.includes(e),e$=(e,t,n={})=>{typeof t=="object"&&(n=t,t=null);const o=uq(e)?document.createElementNS(yEt,e):document.createElement(e);return t&&(uq(e)?$s(o,"class",t):o.className=t),Pr(n,(i,r)=>{$s(o,i,r)}),o},kEt=e=>(t,n)=>{typeof n<"u"&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)},wEt=(e,t)=>(n,o)=>(typeof o<"u"?t.splice(o,0,n):t.push(n),n),$Et=(e,t)=>n=>(t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n),CEt=(()=>typeof window<"u"&&typeof window.document<"u")(),iae=()=>CEt,SEt=iae()?e$("svg"):{},TEt="children"in SEt?e=>e.children.length:e=>e.childNodes.length,rae=(e,t,n,o)=>{const i=n[0]||e.left,r=n[1]||e.top,s=i+e.width,a=r+e.height*(o[1]||1),l={element:{...e},inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:i,top:r,right:s,bottom:a}};return t.filter(d=>!d.isRectIgnored()).map(d=>d.rect).forEach(d=>{hq(l.inner,{...d.inner}),hq(l.outer,{...d.outer})}),fq(l.inner),l.outer.bottom+=l.element.marginBottom,l.outer.right+=l.element.marginRight,fq(l.outer),l},hq=(e,t)=>{t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},fq=e=>{e.width=e.right-e.left,e.height=e.bottom-e.top},_1=e=>typeof e=="number",EEt=(e,t,n,o=.001)=>Math.abs(e-t)<o&&Math.abs(n)<o,IEt=({stiffness:e=.5,damping:t=.75,mass:n=10}={})=>{let o=null,i=null,r=0,s=!1;const d=Zm({interpolate:(u,f)=>{if(s)return;if(!(_1(o)&&_1(i))){s=!0,r=0;return}const p=-(i-o)*e;r+=p/n,i+=r,r*=t,EEt(i,o,r)||f?(i=o,r=0,s=!0,d.onupdate(i),d.oncomplete(i)):d.onupdate(i)},target:{set:u=>{if(_1(u)&&!_1(i)&&(i=u),o===null&&(o=u,i=u),o=u,i===o||typeof o>"u"){s=!0,r=0,d.onupdate(i),d.oncomplete(i);return}s=!1},get:()=>o},resting:{get:()=>s},onupdate:u=>{},oncomplete:u=>{}});return d},PEt=e=>e<.5?2*e*e:-1+(4-2*e)*e,AEt=({duration:e=500,easing:t=PEt,delay:n=0}={})=>{let o=null,i,r,s=!0,a=!1,l=null;const u=Zm({interpolate:(f,p)=>{s||l===null||(o===null&&(o=f),!(f-o<n)&&(i=f-o-n,i>=e||p?(i=1,r=a?0:1,u.onupdate(r*l),u.oncomplete(r*l),s=!0):(r=i/e,u.onupdate((i>=0?t(a?1-r:r):0)*l))))},target:{get:()=>a?0:l,set:f=>{if(l===null){l=f,u.onupdate(f),u.oncomplete(f);return}f<l?(l=1,a=!0):(a=!1,l=f),s=!1,o=null}},resting:{get:()=>s},onupdate:f=>{},oncomplete:f=>{}});return u},mq={spring:IEt,tween:AEt},DEt=(e,t,n)=>{const o=e[t]&&typeof e[t][n]=="object"?e[t][n]:e[t]||e,i=typeof o=="string"?o:o.type,r=typeof o=="object"?{...o}:{};return mq[i]?mq[i](r):null},IL=(e,t,n,o=!1)=>{t=Array.isArray(t)?t:[t],t.forEach(i=>{e.forEach(r=>{let s=r,a=()=>n[r],l=d=>n[r]=d;typeof r=="object"&&(s=r.key,a=r.getter||a,l=r.setter||l),!(i[s]&&!o)&&(i[s]={get:a,set:l})})})},xEt=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:o})=>{const i={...t},r=[];return Pr(e,(s,a)=>{const l=DEt(a);if(!l)return;l.onupdate=u=>{t[s]=u},l.target=i[s],IL([{key:s,setter:u=>{l.target!==u&&(l.target=u)},getter:()=>t[s]}],[n,o],t,!0),r.push(l)}),{write:s=>{let a=document.hidden,l=!0;return r.forEach(d=>{d.resting||(l=!1),d.interpolate(s,a)}),l},destroy:()=>{}}},OEt=e=>(t,n)=>{e.addEventListener(t,n)},LEt=e=>(t,n)=>{e.removeEventListener(t,n)},MEt=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:o,viewState:i,view:r})=>{const s=[],a=OEt(r.element),l=LEt(r.element);return o.on=(d,u)=>{s.push({type:d,fn:u}),a(d,u)},o.off=(d,u)=>{s.splice(s.findIndex(f=>f.type===d&&f.fn===u),1),l(d,u)},{write:()=>!0,destroy:()=>{s.forEach(d=>{l(d.type,d.fn)})}}},NEt=({mixinConfig:e,viewProps:t,viewExternalAPI:n})=>{IL(e,n,t)},Ta=e=>e!=null,REt={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},jEt=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:o,view:i})=>{const r={...t},s={};IL(e,[n,o],t);const a=()=>[t.translateX||0,t.translateY||0],l=()=>[t.scaleX||0,t.scaleY||0],d=()=>i.rect?rae(i.rect,i.childViews,a(),l()):null;return n.rect={get:d},o.rect={get:d},e.forEach(u=>{t[u]=typeof r[u]>"u"?REt[u]:r[u]}),{write:()=>{if(FEt(s,t))return zEt(i.element,t),Object.assign(s,{...t}),!0},destroy:()=>{}}},FEt=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const n in t)if(t[n]!==e[n])return!0;return!1},zEt=(e,{opacity:t,perspective:n,translateX:o,translateY:i,scaleX:r,scaleY:s,rotateX:a,rotateY:l,rotateZ:d,originX:u,originY:f,width:p,height:v})=>{let _="",k="";(Ta(u)||Ta(f))&&(k+=`transform-origin: ${u||0}px ${f||0}px;`),Ta(n)&&(_+=`perspective(${n}px) `),(Ta(o)||Ta(i))&&(_+=`translate3d(${o||0}px, ${i||0}px, 0) `),(Ta(r)||Ta(s))&&(_+=`scale3d(${Ta(r)?r:1}, ${Ta(s)?s:1}, 1) `),Ta(d)&&(_+=`rotateZ(${d}rad) `),Ta(a)&&(_+=`rotateX(${a}rad) `),Ta(l)&&(_+=`rotateY(${l}rad) `),_.length&&(k+=`transform:${_};`),Ta(t)&&(k+=`opacity:${t};`,t===0&&(k+="visibility:hidden;"),t<1&&(k+="pointer-events:none;")),Ta(v)&&(k+=`height:${v}px;`),Ta(p)&&(k+=`width:${p}px;`);const C=e.elementCurrentStyle||"";(k.length!==C.length||k!==C)&&(e.style.cssText=k,e.elementCurrentStyle=k)},UEt={styles:jEt,listeners:MEt,animations:xEt,apis:NEt},pq=(e={},t={},n={})=>(t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=t.offsetParent===null,e),rs=({tag:e="div",name:t=null,attributes:n={},read:o=()=>{},write:i=()=>{},create:r=()=>{},destroy:s=()=>{},filterFrameActionsForChild:a=(v,_)=>_,didCreateView:l=()=>{},didWriteView:d=()=>{},ignoreRect:u=!1,ignoreRectUpdate:f=!1,mixins:p=[]}={})=>(v,_={})=>{const k=e$(e,`filepond--${t}`,n),C=window.getComputedStyle(k,null),$=pq();let E=null,P=!1;const I=[],O=[],L={},S={},j=[i],M=[o],q=[s],B=()=>k,V=()=>I.concat(),G=()=>L,Q=me=>(fe,Ae)=>fe(me,Ae),X=()=>E||(E=rae($,I,[0,0],[1,1]),E),Y=()=>C,Z=()=>{E=null,I.forEach(Ae=>Ae._read()),!(f&&$.width&&$.height)&&pq($,k,C);const fe={root:$e,props:_,rect:$};M.forEach(Ae=>Ae(fe))},se=(me,fe,Ae)=>{let je=fe.length===0;return j.forEach(Ye=>{Ye({props:_,root:$e,actions:fe,timestamp:me,shouldOptimize:Ae})===!1&&(je=!1)}),O.forEach(Ye=>{Ye.write(me)===!1&&(je=!1)}),I.filter(Ye=>!!Ye.element.parentNode).forEach(Ye=>{Ye._write(me,a(Ye,fe),Ae)||(je=!1)}),I.forEach((Ye,_t)=>{Ye.element.parentNode||($e.appendChild(Ye.element,_t),Ye._read(),Ye._write(me,a(Ye,fe),Ae),je=!1)}),P=je,d({props:_,root:$e,actions:fe,timestamp:me}),je},ce=()=>{O.forEach(me=>me.destroy()),q.forEach(me=>{me({root:$e,props:_})}),I.forEach(me=>me._destroy())},te={element:{get:B},style:{get:Y},childViews:{get:V}},ee={...te,rect:{get:X},ref:{get:G},is:me=>t===me,appendChild:kEt(k),createChildView:Q(v),linkView:me=>(I.push(me),me),unlinkView:me=>{I.splice(I.indexOf(me),1)},appendChildView:wEt(k,I),removeChildView:$Et(k,I),registerWriter:me=>j.push(me),registerReader:me=>M.push(me),registerDestroyer:me=>q.push(me),invalidateLayout:()=>k.layoutCalculated=!1,dispatch:v.dispatch,query:v.query},ae={element:{get:B},childViews:{get:V},rect:{get:X},resting:{get:()=>P},isRectIgnored:()=>u,_read:Z,_write:se,_destroy:ce},de={...te,rect:{get:()=>$}};Object.keys(p).sort((me,fe)=>me==="styles"?1:fe==="styles"?-1:0).forEach(me=>{const fe=UEt[me]({mixinConfig:p[me],viewProps:_,viewState:S,viewInternalAPI:ee,viewExternalAPI:ae,view:Zm(de)});fe&&O.push(fe)});const $e=Zm(ee);r({root:$e,props:_});const be=TEt(k);return I.forEach((me,fe)=>{$e.appendChild(me.element,be+fe)}),l($e),Zm(ae)},BEt=(e,t,n=60)=>{const o="__framePainter";if(window[o]){window[o].readers.push(e),window[o].writers.push(t);return}window[o]={readers:[e],writers:[t]};const i=window[o],r=1e3/n;let s=null,a=null,l=null,d=null;const u=()=>{document.hidden?(l=()=>window.setTimeout(()=>f(performance.now()),r),d=()=>window.clearTimeout(a)):(l=()=>window.requestAnimationFrame(f),d=()=>window.cancelAnimationFrame(a))};document.addEventListener("visibilitychange",()=>{d&&d(),u(),f(performance.now())});const f=p=>{a=l(f),s||(s=p);const v=p-s;v<=r||(s=p-v%r,i.readers.forEach(_=>_()),i.writers.forEach(_=>_(p)))};return u(),f(performance.now()),{pause:()=>{d(a)}}},Ga=(e,t)=>({root:n,props:o,actions:i=[],timestamp:r,shouldOptimize:s})=>{i.filter(a=>e[a.type]).forEach(a=>e[a.type]({root:n,props:o,action:a.data,timestamp:r,shouldOptimize:s})),t&&t({root:n,props:o,actions:i,timestamp:r,shouldOptimize:s})},gq=(e,t)=>t.parentNode.insertBefore(e,t),vq=(e,t)=>t.parentNode.insertBefore(e,t.nextSibling),S6=e=>Array.isArray(e),Sf=e=>e==null,HEt=e=>e.trim(),T6=e=>""+e,VEt=(e,t=",")=>Sf(e)?[]:S6(e)?e:T6(e).split(t).map(HEt).filter(n=>n.length),sae=e=>typeof e=="boolean",aae=e=>sae(e)?e:e==="true",Ba=e=>typeof e=="string",lae=e=>_1(e)?e:Ba(e)?T6(e).replace(/[a-z]+/gi,""):0,v4=e=>parseInt(lae(e),10),_q=e=>parseFloat(lae(e)),Qy=e=>_1(e)&&isFinite(e)&&Math.floor(e)===e,yq=(e,t=1e3)=>{if(Qy(e))return e;let n=T6(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),v4(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),v4(n)*t):v4(n)},y1=e=>typeof e=="function",qEt=e=>{let t=self,n=e.split("."),o=null;for(;o=n.shift();)if(t=t[o],!t)return null;return t},bq={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},YEt=e=>{const t={};return t.url=Ba(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},Pr(bq,n=>{t[n]=WEt(n,e[n],bq[n],t.timeout,t.headers)}),t.process=e.process||Ba(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},WEt=(e,t,n,o,i)=>{if(t===null)return null;if(typeof t=="function")return t;const r={url:n==="GET"||n==="PATCH"?`?${e}=`:"",method:n,headers:i,withCredentials:!1,timeout:o,onload:null,ondata:null,onerror:null};if(Ba(t))return r.url=t,r;if(Object.assign(r,t),Ba(r.headers)){const s=r.headers.split(/:(.+)/);r.headers={header:s[0],value:s[1]}}return r.withCredentials=aae(r.withCredentials),r},GEt=e=>YEt(e),ZEt=e=>e===null,Ns=e=>typeof e=="object"&&e!==null,KEt=e=>Ns(e)&&Ba(e.url)&&Ns(e.process)&&Ns(e.revert)&&Ns(e.restore)&&Ns(e.fetch),OP=e=>S6(e)?"array":ZEt(e)?"null":Qy(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":KEt(e)?"api":typeof e,JEt=e=>e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'),XEt={array:VEt,boolean:aae,int:e=>OP(e)==="bytes"?yq(e):v4(e),number:_q,float:_q,bytes:yq,string:e=>y1(e)?e:T6(e),function:e=>qEt(e),serverapi:GEt,object:e=>{try{return JSON.parse(JEt(e))}catch{return null}}},QEt=(e,t)=>XEt[t](e),cae=(e,t,n)=>{if(e===t)return e;let o=OP(e);if(o!==n){const i=QEt(e,n);if(o=OP(i),i===null)throw`Trying to assign value with incorrect type to "${option}", allowed type: "${n}"`;e=i}return e},eIt=(e,t)=>{let n=e;return{enumerable:!0,get:()=>n,set:o=>{n=cae(o,e,t)}}},tIt=e=>{const t={};return Pr(e,n=>{const o=e[n];t[n]=eIt(o[0],o[1])}),Zm(t)},nIt=e=>({items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:tIt(e)}),E6=(e,t="-")=>e.split(/(?=[A-Z])/).map(n=>n.toLowerCase()).join(t),oIt=(e,t)=>{const n={};return Pr(t,o=>{n[o]={get:()=>e.getState().options[o],set:i=>{e.dispatch(`SET_${E6(o,"_").toUpperCase()}`,{value:i})}}}),n},iIt=e=>(t,n,o)=>{const i={};return Pr(e,r=>{const s=E6(r,"_").toUpperCase();i[`SET_${s}`]=a=>{try{o.options[r]=a.value}catch{}t(`DID_SET_${s}`,{value:o.options[r]})}}),i},rIt=e=>t=>{const n={};return Pr(e,o=>{n[`GET_${E6(o,"_").toUpperCase()}`]=i=>t.options[o]}),n},Wc={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},PL=()=>Math.random().toString(36).substring(2,11),AL=(e,t)=>e.splice(t,1),sIt=(e,t)=>{t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)},I6=()=>{const e=[],t=(o,i)=>{AL(e,e.findIndex(r=>r.event===o&&(r.cb===i||!i)))},n=(o,i,r)=>{e.filter(s=>s.event===o).map(s=>s.cb).forEach(s=>sIt(()=>s(...i),r))};return{fireSync:(o,...i)=>{n(o,i,!0)},fire:(o,...i)=>{n(o,i,!1)},on:(o,i)=>{e.push({event:o,cb:i})},onOnce:(o,i)=>{e.push({event:o,cb:(...r)=>{t(o,i),i(...r)}})},off:t}},dae=(e,t,n)=>{Object.getOwnPropertyNames(e).filter(o=>!n.includes(o)).forEach(o=>Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o)))},aIt=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],bl=e=>{const t={};return dae(e,t,aIt),t},lIt=e=>{e.forEach((t,n)=>{t.released&&AL(e,n)})},fo={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},xs={INPUT:1,LIMBO:2,LOCAL:3},uae=e=>/[^0-9]+/.exec(e),hae=()=>uae(1.1.toLocaleString())[0],cIt=()=>{const e=hae(),t=1e3.toLocaleString(),n=1e3.toString();return t!==n?uae(t)[0]:e==="."?",":"."},Wt={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},DL=[],Dd=(e,t,n)=>new Promise((o,i)=>{const r=DL.filter(a=>a.key===e).map(a=>a.cb);if(r.length===0){o(t);return}const s=r.shift();r.reduce((a,l)=>a.then(d=>l(d,n)),s(t,n)).then(a=>o(a)).catch(a=>i(a))}),Cg=(e,t,n)=>DL.filter(o=>o.key===e).map(o=>o.cb(t,n)),dIt=(e,t)=>DL.push({key:e,cb:t}),uIt=e=>Object.assign(Qv,e),t$=()=>({...Qv}),hIt=e=>{Pr(e,(t,n)=>{Qv[t]&&(Qv[t][0]=cae(n,Qv[t][0],Qv[t][1]))})},Qv={id:[null,Wt.STRING],name:["filepond",Wt.STRING],disabled:[!1,Wt.BOOLEAN],className:[null,Wt.STRING],required:[!1,Wt.BOOLEAN],captureMethod:[null,Wt.STRING],allowSyncAcceptAttribute:[!0,Wt.BOOLEAN],allowDrop:[!0,Wt.BOOLEAN],allowBrowse:[!0,Wt.BOOLEAN],allowPaste:[!0,Wt.BOOLEAN],allowMultiple:[!1,Wt.BOOLEAN],allowReplace:[!0,Wt.BOOLEAN],allowRevert:[!0,Wt.BOOLEAN],allowRemove:[!0,Wt.BOOLEAN],allowProcess:[!0,Wt.BOOLEAN],allowReorder:[!1,Wt.BOOLEAN],allowDirectoriesOnly:[!1,Wt.BOOLEAN],storeAsFile:[!1,Wt.BOOLEAN],forceRevert:[!1,Wt.BOOLEAN],maxFiles:[null,Wt.INT],checkValidity:[!1,Wt.BOOLEAN],itemInsertLocationFreedom:[!0,Wt.BOOLEAN],itemInsertLocation:["before",Wt.STRING],itemInsertInterval:[75,Wt.INT],dropOnPage:[!1,Wt.BOOLEAN],dropOnElement:[!0,Wt.BOOLEAN],dropValidation:[!1,Wt.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],Wt.ARRAY],instantUpload:[!0,Wt.BOOLEAN],maxParallelUploads:[2,Wt.INT],allowMinimumUploadDuration:[!0,Wt.BOOLEAN],chunkUploads:[!1,Wt.BOOLEAN],chunkForce:[!1,Wt.BOOLEAN],chunkSize:[5e6,Wt.INT],chunkRetryDelays:[[500,1e3,3e3],Wt.ARRAY],server:[null,Wt.SERVER_API],fileSizeBase:[1e3,Wt.INT],labelFileSizeBytes:["bytes",Wt.STRING],labelFileSizeKilobytes:["KB",Wt.STRING],labelFileSizeMegabytes:["MB",Wt.STRING],labelFileSizeGigabytes:["GB",Wt.STRING],labelDecimalSeparator:[hae(),Wt.STRING],labelThousandsSeparator:[cIt(),Wt.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',Wt.STRING],labelInvalidField:["Field contains invalid files",Wt.STRING],labelFileWaitingForSize:["Waiting for size",Wt.STRING],labelFileSizeNotAvailable:["Size not available",Wt.STRING],labelFileCountSingular:["file in list",Wt.STRING],labelFileCountPlural:["files in list",Wt.STRING],labelFileLoading:["Loading",Wt.STRING],labelFileAdded:["Added",Wt.STRING],labelFileLoadError:["Error during load",Wt.STRING],labelFileRemoved:["Removed",Wt.STRING],labelFileRemoveError:["Error during remove",Wt.STRING],labelFileProcessing:["Uploading",Wt.STRING],labelFileProcessingComplete:["Upload complete",Wt.STRING],labelFileProcessingAborted:["Upload cancelled",Wt.STRING],labelFileProcessingError:["Error during upload",Wt.STRING],labelFileProcessingRevertError:["Error during revert",Wt.STRING],labelTapToCancel:["tap to cancel",Wt.STRING],labelTapToRetry:["tap to retry",Wt.STRING],labelTapToUndo:["tap to undo",Wt.STRING],labelButtonRemoveItem:["Remove",Wt.STRING],labelButtonAbortItemLoad:["Abort",Wt.STRING],labelButtonRetryItemLoad:["Retry",Wt.STRING],labelButtonAbortItemProcessing:["Cancel",Wt.STRING],labelButtonUndoItemProcessing:["Undo",Wt.STRING],labelButtonRetryItemProcessing:["Retry",Wt.STRING],labelButtonProcessItem:["Upload",Wt.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',Wt.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',Wt.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',Wt.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',Wt.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',Wt.STRING],oninit:[null,Wt.FUNCTION],onwarning:[null,Wt.FUNCTION],onerror:[null,Wt.FUNCTION],onactivatefile:[null,Wt.FUNCTION],oninitfile:[null,Wt.FUNCTION],onaddfilestart:[null,Wt.FUNCTION],onaddfileprogress:[null,Wt.FUNCTION],onaddfile:[null,Wt.FUNCTION],onprocessfilestart:[null,Wt.FUNCTION],onprocessfileprogress:[null,Wt.FUNCTION],onprocessfileabort:[null,Wt.FUNCTION],onprocessfilerevert:[null,Wt.FUNCTION],onprocessfile:[null,Wt.FUNCTION],onprocessfiles:[null,Wt.FUNCTION],onremovefile:[null,Wt.FUNCTION],onpreparefile:[null,Wt.FUNCTION],onupdatefiles:[null,Wt.FUNCTION],onreorderfiles:[null,Wt.FUNCTION],beforeDropFile:[null,Wt.FUNCTION],beforeAddFile:[null,Wt.FUNCTION],beforeRemoveFile:[null,Wt.FUNCTION],beforePrepareFile:[null,Wt.FUNCTION],stylePanelLayout:[null,Wt.STRING],stylePanelAspectRatio:[null,Wt.STRING],styleItemPanelAspectRatio:[null,Wt.STRING],styleButtonRemoveItemPosition:["left",Wt.STRING],styleButtonProcessItemPosition:["right",Wt.STRING],styleLoadIndicatorPosition:["right",Wt.STRING],styleProgressIndicatorPosition:["right",Wt.STRING],styleButtonRemoveItemAlign:[!1,Wt.BOOLEAN],files:[[],Wt.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],Wt.ARRAY]},b1=(e,t)=>Sf(t)?e[0]||null:Qy(t)?e[t]||null:(typeof t=="object"&&(t=t.id),e.find(n=>n.id===t)||null),fae=e=>{if(Sf(e))return e;if(/:/.test(e)){const t=e.split(":");return t[1]/t[0]}return parseFloat(e)},jd=e=>e.filter(t=>!t.archived),fIt={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4};let t8=null;const mIt=()=>{if(t8===null)try{const e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));const t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,t8=t.files.length===1}catch{t8=!1}return t8},pIt=[fo.LOAD_ERROR,fo.PROCESSING_ERROR,fo.PROCESSING_REVERT_ERROR],gIt=[fo.LOADING,fo.PROCESSING,fo.PROCESSING_QUEUED,fo.INIT],vIt=[fo.PROCESSING_COMPLETE],_It=e=>pIt.includes(e.status),yIt=e=>gIt.includes(e.status),bIt=e=>vIt.includes(e.status),kq=e=>Ns(e.options.server)&&(Ns(e.options.server.process)||y1(e.options.server.process)),kIt=e=>({GET_STATUS:()=>{const t=jd(e.items),{EMPTY:n,ERROR:o,BUSY:i,IDLE:r,READY:s}=fIt;return t.length===0?n:t.some(_It)?o:t.some(yIt)?i:t.some(bIt)?s:r},GET_ITEM:t=>b1(e.items,t),GET_ACTIVE_ITEM:t=>b1(jd(e.items),t),GET_ACTIVE_ITEMS:()=>jd(e.items),GET_ITEMS:()=>e.items,GET_ITEM_NAME:t=>{const n=b1(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:t=>{const n=b1(e.items,t);return n?n.fileSize:null},GET_STYLES:()=>Object.keys(e.options).filter(t=>/^style/.test(t)).map(t=>({name:t,value:e.options[t]})),GET_PANEL_ASPECT_RATIO:()=>/circle/.test(e.options.stylePanelLayout)?1:fae(e.options.stylePanelAspectRatio),GET_ITEM_PANEL_ASPECT_RATIO:()=>e.options.styleItemPanelAspectRatio,GET_ITEMS_BY_STATUS:t=>jd(e.items).filter(n=>n.status===t),GET_TOTAL_ITEMS:()=>jd(e.items).length,SHOULD_UPDATE_FILE_INPUT:()=>e.options.storeAsFile&&mIt()&&!kq(e),IS_ASYNC:()=>kq(e),GET_FILE_SIZE_LABELS:t=>({labelBytes:t("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:t("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:t("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:t("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0})}),wIt=e=>{const t=jd(e.items).length;if(!e.options.allowMultiple)return t===0;const n=e.options.maxFiles;return n===null||t<n},mae=(e,t,n)=>Math.max(Math.min(n,e),t),$It=(e,t,n)=>e.splice(t,0,n),CIt=(e,t,n)=>Sf(t)?null:typeof n>"u"?(e.push(t),t):(n=mae(n,0,e.length),$It(e,n,t),t),LP=e=>/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e),X3=e=>`${e}`.split("/").pop().split("?").shift(),P6=e=>e.split(".").pop(),SIt=e=>{if(typeof e!="string")return"";const t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?t==="jpeg"?"jpg":t:""},qb=(e,t="")=>(t+e).slice(-t.length),pae=(e=new Date)=>`${e.getFullYear()}-${qb(e.getMonth()+1,"00")}-${qb(e.getDate(),"00")}_${qb(e.getHours(),"00")}-${qb(e.getMinutes(),"00")}-${qb(e.getSeconds(),"00")}`,iy=(e,t,n=null,o=null)=>{const i=typeof n=="string"?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return i.lastModifiedDate=new Date,e._relativePath&&(i._relativePath=e._relativePath),Ba(t)||(t=pae()),t&&o===null&&P6(t)?i.name=t:(o=o||SIt(i.type),i.name=t+(o?"."+o:"")),i},TIt=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,gae=(e,t)=>{const n=TIt();if(n){const o=new n;return o.append(e),o.getBlob(t)}return new Blob([e],{type:t})},EIt=(e,t)=>{const n=new ArrayBuffer(e.length),o=new Uint8Array(n);for(let i=0;i<e.length;i++)o[i]=e.charCodeAt(i);return gae(n,t)},vae=e=>(/^data:(.+);/.exec(e)||[])[1]||null,IIt=e=>e.split(",")[1].replace(/\s/g,""),PIt=e=>atob(IIt(e)),AIt=e=>{const t=vae(e),n=PIt(e);return EIt(n,t)},DIt=(e,t,n)=>iy(AIt(e),t,null,n),xIt=e=>{if(!/^content-disposition:/i.test(e))return null;const t=e.split(/filename=|filename\*=.+''/).splice(1).map(n=>n.trim().replace(/^["']|[;"']{0,2}$/g,"")).filter(n=>n.length);return t.length?decodeURI(t[t.length-1]):null},OIt=e=>{if(/content-length:/i.test(e)){const t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},LIt=e=>/x-content-transfer-id:/i.test(e)&&(e.split(":")[1]||"").trim()||null,xL=e=>{const t={source:null,name:null,size:null},n=e.split(` `);for(let o of n){const i=xIt(o);if(i){t.name=i;continue}const r=OIt(o);if(r){t.size=r;continue}const s=LIt(o);if(s){t.source=s;continue}}return t},MIt=e=>{const t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=()=>t.progress,o=()=>{t.request&&t.request.abort&&t.request.abort()},i=()=>{const a=t.source;s.fire("init",a),a instanceof File?s.fire("load",a):a instanceof Blob?s.fire("load",iy(a,a.name)):LP(a)?s.fire("load",DIt(a)):r(a)},r=a=>{if(!e){s.fire("error",{type:"error",body:"Can't load URL",code:400});return}t.timestamp=Date.now(),t.request=e(a,l=>{t.duration=Date.now()-t.timestamp,t.complete=!0,l instanceof Blob&&(l=iy(l,l.name||X3(a))),s.fire("load",l instanceof Blob?l:l?l.body:null)},l=>{s.fire("error",typeof l=="string"?{type:"error",code:0,body:l}:l)},(l,d,u)=>{if(u&&(t.size=u),t.duration=Date.now()-t.timestamp,!l){t.progress=null;return}t.progress=d/u,s.fire("progress",t.progress)},()=>{s.fire("abort")},l=>{const d=xL(typeof l=="string"?l:l.headers);s.fire("meta",{size:t.size||d.size,filename:d.name,source:d.source})})},s={...I6(),setSource:a=>t.source=a,getProgress:n,abort:o,load:i};return s},wq=e=>/GET|HEAD/.test(e),D1=(e,t,n)=>{const o={onheaders:()=>{},onprogress:()=>{},onload:()=>{},ontimeout:()=>{},onerror:()=>{},onabort:()=>{},abort:()=>{i=!0,s.abort()}};let i=!1,r=!1;n={method:"POST",headers:{},withCredentials:!1,...n},t=encodeURI(t),wq(n.method)&&e&&(t=`${t}${encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))}`);const s=new XMLHttpRequest,a=wq(n.method)?s:s.upload;return a.onprogress=l=>{i||o.onprogress(l.lengthComputable,l.loaded,l.total)},s.onreadystatechange=()=>{s.readyState<2||s.readyState===4&&s.status===0||r||(r=!0,o.onheaders(s))},s.onload=()=>{s.status>=200&&s.status<300?o.onload(s):o.onerror(s)},s.onerror=()=>o.onerror(s),s.onabort=()=>{i=!0,o.onabort()},s.ontimeout=()=>o.ontimeout(s),s.open(n.method,t,!0),Qy(n.timeout)&&(s.timeout=n.timeout),Object.keys(n.headers).forEach(l=>{const d=unescape(encodeURIComponent(n.headers[l]));s.setRequestHeader(l,d)}),n.responseType&&(s.responseType=n.responseType),n.withCredentials&&(s.withCredentials=!0),s.send(e),o},Hr=(e,t,n,o)=>({type:e,code:t,body:n,headers:o}),x1=e=>t=>{e(Hr("error",0,"Timeout",t.getAllResponseHeaders()))},$q=e=>/\?/.test(e),G0=(...e)=>{let t="";return e.forEach(n=>{t+=$q(t)&&$q(n)?n.replace(/\?/,"&"):n}),t},kT=(e="",t)=>{if(typeof t=="function")return t;if(!t||!Ba(t.url))return null;const n=t.onload||(i=>i),o=t.onerror||(i=>null);return(i,r,s,a,l,d)=>{const u=D1(i,G0(e,t.url),{...t,responseType:"blob"});return u.onload=f=>{const p=f.getAllResponseHeaders(),v=xL(p).name||X3(i);r(Hr("load",f.status,t.method==="HEAD"?null:iy(n(f.response),v),p))},u.onerror=f=>{s(Hr("error",f.status,o(f.response)||f.statusText,f.getAllResponseHeaders()))},u.onheaders=f=>{d(Hr("headers",f.status,null,f.getAllResponseHeaders()))},u.ontimeout=x1(s),u.onprogress=a,u.onabort=l,u}},Oc={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},NIt=(e,t,n,o,i,r,s,a,l,d,u)=>{const f=[],{chunkTransferId:p,chunkServer:v,chunkSize:_,chunkRetryDelays:k}=u,C={serverId:p,aborted:!1},$=t.ondata||(Q=>Q),E=t.onload||((Q,X)=>X==="HEAD"?Q.getResponseHeader("Upload-Offset"):Q.response),P=t.onerror||(Q=>null),I=Q=>{const X=new FormData;Ns(i)&&X.append(n,JSON.stringify(i));const Y=typeof t.headers=="function"?t.headers(o,i):{...t.headers,"Upload-Length":o.size},Z={...t,headers:Y},se=D1($(X),G0(e,t.url),Z);se.onload=ce=>Q(E(ce,Z.method)),se.onerror=ce=>s(Hr("error",ce.status,P(ce.response)||ce.statusText,ce.getAllResponseHeaders())),se.ontimeout=x1(s)},O=Q=>{const X=G0(e,v.url,C.serverId),Z={headers:typeof t.headers=="function"?t.headers(C.serverId):{...t.headers},method:"HEAD"},se=D1(null,X,Z);se.onload=ce=>Q(E(ce,Z.method)),se.onerror=ce=>s(Hr("error",ce.status,P(ce.response)||ce.statusText,ce.getAllResponseHeaders())),se.ontimeout=x1(s)},L=Math.floor(o.size/_);for(let Q=0;Q<=L;Q++){const X=Q*_,Y=o.slice(X,X+_,"application/offset+octet-stream");f[Q]={index:Q,size:Y.size,offset:X,data:Y,file:o,progress:0,retries:[...k],status:Oc.QUEUED,error:null,request:null,timeout:null}}const S=()=>r(C.serverId),j=Q=>Q.status===Oc.QUEUED||Q.status===Oc.ERROR,M=Q=>{if(C.aborted)return;if(Q=Q||f.find(j),!Q){f.every(te=>te.status===Oc.COMPLETE)&&S();return}Q.status=Oc.PROCESSING,Q.progress=null;const X=v.ondata||(te=>te),Y=v.onerror||(te=>null),Z=G0(e,v.url,C.serverId),se=typeof v.headers=="function"?v.headers(Q):{...v.headers,"Content-Type":"application/offset+octet-stream","Upload-Offset":Q.offset,"Upload-Length":o.size,"Upload-Name":o.name},ce=Q.request=D1(X(Q.data),Z,{...v,headers:se});ce.onload=()=>{Q.status=Oc.COMPLETE,Q.request=null,V()},ce.onprogress=(te,ee,ae)=>{Q.progress=te?ee:null,B()},ce.onerror=te=>{Q.status=Oc.ERROR,Q.request=null,Q.error=Y(te.response)||te.statusText,q(Q)||s(Hr("error",te.status,Y(te.response)||te.statusText,te.getAllResponseHeaders()))},ce.ontimeout=te=>{Q.status=Oc.ERROR,Q.request=null,q(Q)||x1(s)(te)},ce.onabort=()=>{Q.status=Oc.QUEUED,Q.request=null,l()}},q=Q=>Q.retries.length===0?!1:(Q.status=Oc.WAITING,clearTimeout(Q.timeout),Q.timeout=setTimeout(()=>{M(Q)},Q.retries.shift()),!0),B=()=>{const Q=f.reduce((Y,Z)=>Y===null||Z.progress===null?null:Y+Z.progress,0);if(Q===null)return a(!1,0,0);const X=f.reduce((Y,Z)=>Y+Z.size,0);a(!0,Q,X)},V=()=>{f.filter(X=>X.status===Oc.PROCESSING).length>=1||M()},G=()=>{f.forEach(Q=>{clearTimeout(Q.timeout),Q.request&&Q.request.abort()})};return C.serverId?O(Q=>{C.aborted||(f.filter(X=>X.offset<Q).forEach(X=>{X.status=Oc.COMPLETE,X.progress=X.size}),V())}):I(Q=>{C.aborted||(d(Q),C.serverId=Q,V())}),{abort:()=>{C.aborted=!0,G()}}},RIt=(e,t,n,o)=>(i,r,s,a,l,d,u)=>{if(!i)return;const f=o.chunkUploads,p=f&&i.size>o.chunkSize,v=f&&(p||o.chunkForce);if(i instanceof Blob&&v)return NIt(e,t,n,i,r,s,a,l,d,u,o);const _=t.ondata||(O=>O),k=t.onload||(O=>O),C=t.onerror||(O=>null),$=typeof t.headers=="function"?t.headers(i,r)||{}:{...t.headers},E={...t,headers:$};var P=new FormData;Ns(r)&&P.append(n,JSON.stringify(r)),(i instanceof Blob?[{name:null,file:i}]:i).forEach(O=>{P.append(n,O.file,O.name===null?O.file.name:`${O.name}${O.file.name}`)});const I=D1(_(P),G0(e,t.url),E);return I.onload=O=>{s(Hr("load",O.status,k(O.response),O.getAllResponseHeaders()))},I.onerror=O=>{a(Hr("error",O.status,C(O.response)||O.statusText,O.getAllResponseHeaders()))},I.ontimeout=x1(a),I.onprogress=l,I.onabort=d,I},jIt=(e="",t,n,o)=>typeof t=="function"?(...i)=>t(n,...i,o):!t||!Ba(t.url)?null:RIt(e,t,n,o),Yb=(e="",t)=>{if(typeof t=="function")return t;if(!t||!Ba(t.url))return(i,r)=>r();const n=t.onload||(i=>i),o=t.onerror||(i=>null);return(i,r,s)=>{const a=D1(i,e+t.url,t);return a.onload=l=>{r(Hr("load",l.status,n(l.response),l.getAllResponseHeaders()))},a.onerror=l=>{s(Hr("error",l.status,o(l.response)||l.statusText,l.getAllResponseHeaders()))},a.ontimeout=x1(s),a}},_ae=(e=0,t=1)=>e+Math.random()*(t-e),FIt=(e,t=1e3,n=0,o=25,i=250)=>{let r=null;const s=Date.now(),a=()=>{let l=Date.now()-s,d=_ae(o,i);l+d>t&&(d=l+d-t);let u=l/t;if(u>=1||document.hidden){e(1);return}e(u),r=setTimeout(a,d)};return t>0&&a(),{clear:()=>{clearTimeout(r)}}},zIt=(e,t)=>{const n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},{allowMinimumUploadDuration:o}=t,i=(u,f)=>{const p=()=>{n.duration===0||n.progress===null||d.fire("progress",d.getProgress())},v=()=>{n.complete=!0,d.fire("load-perceived",n.response.body)};d.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=FIt(_=>{n.perceivedProgress=_,n.perceivedDuration=Date.now()-n.timestamp,p(),n.response&&n.perceivedProgress===1&&!n.complete&&v()},o?_ae(750,1500):0),n.request=e(u,f,_=>{n.response=Ns(_)?_:{type:"load",code:200,body:`${_}`,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,d.fire("load",n.response.body),(!o||o&&n.perceivedProgress===1)&&v()},_=>{n.perceivedPerformanceUpdater.clear(),d.fire("error",Ns(_)?_:{type:"error",code:0,body:`${_}`})},(_,k,C)=>{n.duration=Date.now()-n.timestamp,n.progress=_?k/C:null,p()},()=>{n.perceivedPerformanceUpdater.clear(),d.fire("abort",n.response?n.response.body:null)},_=>{d.fire("transfer",_)})},r=()=>{n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},s=()=>{r(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},a=o?()=>n.progress?Math.min(n.progress,n.perceivedProgress):null:()=>n.progress||null,l=o?()=>Math.min(n.duration,n.perceivedDuration):()=>n.duration,d={...I6(),process:i,abort:r,getProgress:a,getDuration:l,reset:s};return d},yae=e=>e.substring(0,e.lastIndexOf("."))||e,UIt=e=>{let t=[e.name,e.size,e.type];return e instanceof Blob||LP(e)?t[0]=e.name||pae():LP(e)?(t[1]=e.length,t[2]=vae(e)):Ba(e)&&(t[0]=X3(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},O1=e=>!!(e instanceof File||e instanceof Blob&&e.name),bae=e=>{if(!Ns(e))return e;const t=S6(e)?[]:{};for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n];t[n]=o&&Ns(o)?bae(o):o}return t},BIt=(e=null,t=null,n=null)=>{const o=PL(),i={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?fo.PROCESSING_COMPLETE:fo.INIT,activeLoader:null,activeProcessor:null};let r=null;const s={},a=j=>i.status=j,l=(j,...M)=>{i.released||i.frozen||L.fire(j,...M)},d=()=>P6(i.file.name),u=()=>i.file.type,f=()=>i.file.size,p=()=>i.file,v=(j,M,q)=>{if(i.source=j,L.fireSync("init"),i.file){L.fireSync("load-skip");return}i.file=UIt(j),M.on("init",()=>{l("load-init")}),M.on("meta",B=>{i.file.size=B.size,i.file.filename=B.filename,B.source&&(e=xs.LIMBO,i.serverFileReference=B.source,i.status=fo.PROCESSING_COMPLETE),l("load-meta")}),M.on("progress",B=>{a(fo.LOADING),l("load-progress",B)}),M.on("error",B=>{a(fo.LOAD_ERROR),l("load-request-error",B)}),M.on("abort",()=>{a(fo.INIT),l("load-abort")}),M.on("load",B=>{i.activeLoader=null;const V=Q=>{i.file=O1(Q)?Q:i.file,e===xs.LIMBO&&i.serverFileReference?a(fo.PROCESSING_COMPLETE):a(fo.IDLE),l("load")},G=Q=>{i.file=B,l("load-meta"),a(fo.LOAD_ERROR),l("load-file-error",Q)};if(i.serverFileReference){V(B);return}q(B,V,G)}),M.setSource(j),i.activeLoader=M,M.load()},_=()=>{i.activeLoader&&i.activeLoader.load()},k=()=>{if(i.activeLoader){i.activeLoader.abort();return}a(fo.INIT),l("load-abort")},C=(j,M)=>{if(i.processingAborted){i.processingAborted=!1;return}if(a(fo.PROCESSING),r=null,!(i.file instanceof Blob)){L.on("load",()=>{C(j,M)});return}j.on("load",V=>{i.transferId=null,i.serverFileReference=V}),j.on("transfer",V=>{i.transferId=V}),j.on("load-perceived",V=>{i.activeProcessor=null,i.transferId=null,i.serverFileReference=V,a(fo.PROCESSING_COMPLETE),l("process-complete",V)}),j.on("start",()=>{l("process-start")}),j.on("error",V=>{i.activeProcessor=null,a(fo.PROCESSING_ERROR),l("process-error",V)}),j.on("abort",V=>{i.activeProcessor=null,i.serverFileReference=V,a(fo.IDLE),l("process-abort"),r&&r()}),j.on("progress",V=>{l("process-progress",V)});const q=V=>{i.archived||j.process(V,{...s})},B=console.error;M(i.file,q,B),i.activeProcessor=j},$=()=>{i.processingAborted=!1,a(fo.PROCESSING_QUEUED)},E=()=>new Promise(j=>{if(!i.activeProcessor){i.processingAborted=!0,a(fo.IDLE),l("process-abort"),j();return}r=()=>{j()},i.activeProcessor.abort()}),P=(j,M)=>new Promise((q,B)=>{const V=i.serverFileReference!==null?i.serverFileReference:i.transferId;if(V===null){q();return}j(V,()=>{i.serverFileReference=null,i.transferId=null,q()},G=>{if(!M){q();return}a(fo.PROCESSING_REVERT_ERROR),l("process-revert-error"),B(G)}),a(fo.IDLE),l("process-revert")}),I=(j,M,q)=>{const B=j.split("."),V=B[0],G=B.pop();let Q=s;B.forEach(X=>Q=Q[X]),JSON.stringify(Q[G])!==JSON.stringify(M)&&(Q[G]=M,l("metadata-update",{key:V,value:s[V],silent:q}))},L={id:{get:()=>o},origin:{get:()=>e,set:j=>e=j},serverId:{get:()=>i.serverFileReference},transferId:{get:()=>i.transferId},status:{get:()=>i.status},filename:{get:()=>i.file.name},filenameWithoutExtension:{get:()=>yae(i.file.name)},fileExtension:{get:d},fileType:{get:u},fileSize:{get:f},file:{get:p},relativePath:{get:()=>i.file._relativePath},source:{get:()=>i.source},getMetadata:j=>bae(j?s[j]:s),setMetadata:(j,M,q)=>{if(Ns(j)){const B=j;return Object.keys(B).forEach(V=>{I(V,B[V],M)}),j}return I(j,M,q),M},extend:(j,M)=>S[j]=M,abortLoad:k,retryLoad:_,requestProcessing:$,abortProcessing:E,load:v,process:C,revert:P,...I6(),freeze:()=>i.frozen=!0,release:()=>i.released=!0,released:{get:()=>i.released},archive:()=>i.archived=!0,archived:{get:()=>i.archived},setFile:j=>i.file=j},S=Zm(L);return S},HIt=(e,t)=>Sf(t)?0:Ba(t)?e.findIndex(n=>n.id===t):-1,Cq=(e,t)=>{const n=HIt(e,t);if(!(n<0))return e[n]||null},Sq=(e,t,n,o,i,r)=>{const s=D1(null,e,{method:"GET",responseType:"blob"});return s.onload=a=>{const l=a.getAllResponseHeaders(),d=xL(l).name||X3(e);t(Hr("load",a.status,iy(a.response,d),l))},s.onerror=a=>{n(Hr("error",a.status,a.statusText,a.getAllResponseHeaders()))},s.onheaders=a=>{r(Hr("headers",a.status,null,a.getAllResponseHeaders()))},s.ontimeout=x1(n),s.onprogress=o,s.onabort=i,s},Tq=e=>(e.indexOf("//")===0&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]),VIt=e=>(e.indexOf(":")>-1||e.indexOf("//")>-1)&&Tq(location.href)!==Tq(e),n8=e=>(...t)=>y1(e)?e(...t):e,qIt=e=>!O1(e.file),wT=(e,t)=>{clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout(()=>{e("DID_UPDATE_ITEMS",{items:jd(t.items)})},0)},Eq=(e,...t)=>new Promise(n=>{if(!e)return n(!0);const o=e(...t);if(o==null)return n(!0);if(typeof o=="boolean")return n(o);typeof o.then=="function"&&o.then(n)}),$T=(e,t)=>{e.items.sort((n,o)=>t(bl(n),bl(o)))},Lc=(e,t)=>({query:n,success:o=()=>{},failure:i=()=>{},...r}={})=>{const s=b1(e.items,n);if(!s){i({error:Hr("error",0,"Item not found"),file:null});return}t(s,o,i,r||{})},YIt=(e,t,n)=>({ABORT_ALL:()=>{jd(n.items).forEach(o=>{o.freeze(),o.abortLoad(),o.abortProcessing()})},DID_SET_FILES:({value:o=[]})=>{const i=o.map(s=>({source:s.source?s.source:s,options:s.options}));let r=jd(n.items);r.forEach(s=>{i.find(a=>a.source===s.source||a.source===s.file)||e("REMOVE_ITEM",{query:s,remove:!1})}),r=jd(n.items),i.forEach((s,a)=>{r.find(l=>l.source===s.source||l.file===s.source)||e("ADD_ITEM",{...s,interactionMethod:Wc.NONE,index:a})})},DID_UPDATE_ITEM_METADATA:({id:o,action:i,change:r})=>{r.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout(()=>{const s=Cq(n.items,o);if(!t("IS_ASYNC")){Dd("SHOULD_PREPARE_OUTPUT",!1,{item:s,query:t,action:i,change:r}).then(u=>{const f=t("GET_BEFORE_PREPARE_FILE");f&&(u=f(s,u)),u&&e("REQUEST_PREPARE_OUTPUT",{query:o,item:s,success:p=>{e("DID_PREPARE_OUTPUT",{id:o,file:p})}},!0)});return}s.origin===xs.LOCAL&&e("DID_LOAD_ITEM",{id:s.id,error:null,serverFileReference:s.source});const a=()=>{setTimeout(()=>{e("REQUEST_ITEM_PROCESSING",{query:o})},32)},l=u=>{s.revert(Yb(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(u?a:()=>{}).catch(()=>{})},d=u=>{s.abortProcessing().then(u?a:()=>{})};if(s.status===fo.PROCESSING_COMPLETE)return l(n.options.instantUpload);if(s.status===fo.PROCESSING)return d(n.options.instantUpload);n.options.instantUpload&&a()},0))},MOVE_ITEM:({query:o,index:i})=>{const r=b1(n.items,o);if(!r)return;const s=n.items.indexOf(r);i=mae(i,0,n.items.length-1),s!==i&&n.items.splice(i,0,n.items.splice(s,1)[0])},SORT:({compare:o})=>{$T(n,o),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:({items:o,index:i,interactionMethod:r,success:s=()=>{},failure:a=()=>{}})=>{let l=i;if(i===-1||typeof i>"u"){const v=t("GET_ITEM_INSERT_LOCATION"),_=t("GET_TOTAL_ITEMS");l=v==="before"?0:_}const d=t("GET_IGNORED_FILES"),u=v=>O1(v)?!d.includes(v.name.toLowerCase()):!Sf(v),p=o.filter(u).map(v=>new Promise((_,k)=>{e("ADD_ITEM",{interactionMethod:r,source:v.source||v,success:_,failure:k,index:l++,options:v.options||{}})}));Promise.all(p).then(s).catch(a)},ADD_ITEM:({source:o,index:i=-1,interactionMethod:r,success:s=()=>{},failure:a=()=>{},options:l={}})=>{if(Sf(o)){a({error:Hr("error",0,"No source"),file:null});return}if(O1(o)&&n.options.ignoredFiles.includes(o.name.toLowerCase()))return;if(!wIt(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){const E=Hr("warning",0,"Max files");e("DID_THROW_MAX_FILES",{source:o,error:E}),a({error:E,file:null});return}const $=jd(n.items)[0];if($.status===fo.PROCESSING_COMPLETE||$.status===fo.PROCESSING_REVERT_ERROR){const E=t("GET_FORCE_REVERT");if($.revert(Yb(n.options.server.url,n.options.server.revert),E).then(()=>{E&&e("ADD_ITEM",{source:o,index:i,interactionMethod:r,success:s,failure:a,options:l})}).catch(()=>{}),E)return}e("REMOVE_ITEM",{query:$.id})}const d=l.type==="local"?xs.LOCAL:l.type==="limbo"?xs.LIMBO:xs.INPUT,u=BIt(d,d===xs.INPUT?null:o,l.file);Object.keys(l.metadata||{}).forEach($=>{u.setMetadata($,l.metadata[$])}),Cg("DID_CREATE_ITEM",u,{query:t,dispatch:e});const f=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(i=f==="before"?-1:n.items.length),CIt(n.items,u,i),y1(f)&&o&&$T(n,f);const p=u.id;u.on("init",()=>{e("DID_INIT_ITEM",{id:p})}),u.on("load-init",()=>{e("DID_START_ITEM_LOAD",{id:p})}),u.on("load-meta",()=>{e("DID_UPDATE_ITEM_META",{id:p})}),u.on("load-progress",$=>{e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:p,progress:$})}),u.on("load-request-error",$=>{const E=n8(n.options.labelFileLoadError)($);if($.code>=400&&$.code<500){e("DID_THROW_ITEM_INVALID",{id:p,error:$,status:{main:E,sub:`${$.code} (${$.body})`}}),a({error:$,file:bl(u)});return}e("DID_THROW_ITEM_LOAD_ERROR",{id:p,error:$,status:{main:E,sub:n.options.labelTapToRetry}})}),u.on("load-file-error",$=>{e("DID_THROW_ITEM_INVALID",{id:p,error:$.status,status:$.status}),a({error:$.status,file:bl(u)})}),u.on("load-abort",()=>{e("REMOVE_ITEM",{query:p})}),u.on("load-skip",()=>{u.on("metadata-update",$=>{O1(u.file)&&e("DID_UPDATE_ITEM_METADATA",{id:p,change:$})}),e("COMPLETE_LOAD_ITEM",{query:p,item:u,data:{source:o,success:s}})}),u.on("load",()=>{const $=E=>{if(!E){e("REMOVE_ITEM",{query:p});return}u.on("metadata-update",P=>{e("DID_UPDATE_ITEM_METADATA",{id:p,change:P})}),Dd("SHOULD_PREPARE_OUTPUT",!1,{item:u,query:t}).then(P=>{const I=t("GET_BEFORE_PREPARE_FILE");I&&(P=I(u,P));const O=()=>{e("COMPLETE_LOAD_ITEM",{query:p,item:u,data:{source:o,success:s}}),wT(e,n)};if(P){e("REQUEST_PREPARE_OUTPUT",{query:p,item:u,success:L=>{e("DID_PREPARE_OUTPUT",{id:p,file:L}),O()}},!0);return}O()})};Dd("DID_LOAD_ITEM",u,{query:t,dispatch:e}).then(()=>{Eq(t("GET_BEFORE_ADD_FILE"),bl(u)).then($)}).catch(E=>{if(!E||!E.error||!E.status)return $(!1);e("DID_THROW_ITEM_INVALID",{id:p,error:E.error,status:E.status})})}),u.on("process-start",()=>{e("DID_START_ITEM_PROCESSING",{id:p})}),u.on("process-progress",$=>{e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:p,progress:$})}),u.on("process-error",$=>{e("DID_THROW_ITEM_PROCESSING_ERROR",{id:p,error:$,status:{main:n8(n.options.labelFileProcessingError)($),sub:n.options.labelTapToRetry}})}),u.on("process-revert-error",$=>{e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:p,error:$,status:{main:n8(n.options.labelFileProcessingRevertError)($),sub:n.options.labelTapToRetry}})}),u.on("process-complete",$=>{e("DID_COMPLETE_ITEM_PROCESSING",{id:p,error:null,serverFileReference:$}),e("DID_DEFINE_VALUE",{id:p,value:$})}),u.on("process-abort",()=>{e("DID_ABORT_ITEM_PROCESSING",{id:p})}),u.on("process-revert",()=>{e("DID_REVERT_ITEM_PROCESSING",{id:p}),e("DID_DEFINE_VALUE",{id:p,value:null})}),e("DID_ADD_ITEM",{id:p,index:i,interactionMethod:r}),wT(e,n);const{url:v,load:_,restore:k,fetch:C}=n.options.server||{};u.load(o,MIt(d===xs.INPUT?Ba(o)&&VIt(o)&&C?kT(v,C):Sq:d===xs.LIMBO?kT(v,k):kT(v,_)),($,E,P)=>{Dd("LOAD_FILE",$,{query:t}).then(E).catch(P)})},REQUEST_PREPARE_OUTPUT:({item:o,success:i,failure:r=()=>{}})=>{const s={error:Hr("error",0,"Item not found"),file:null};if(o.archived)return r(s);Dd("PREPARE_OUTPUT",o.file,{query:t,item:o}).then(a=>{Dd("COMPLETE_PREPARE_OUTPUT",a,{query:t,item:o}).then(l=>{if(o.archived)return r(s);i(l)})})},COMPLETE_LOAD_ITEM:({item:o,data:i})=>{const{success:r,source:s}=i,a=t("GET_ITEM_INSERT_LOCATION");if(y1(a)&&s&&$T(n,a),e("DID_LOAD_ITEM",{id:o.id,error:null,serverFileReference:o.origin===xs.INPUT?null:s}),r(bl(o)),o.origin===xs.LOCAL){e("DID_LOAD_LOCAL_ITEM",{id:o.id});return}if(o.origin===xs.LIMBO){e("DID_COMPLETE_ITEM_PROCESSING",{id:o.id,error:null,serverFileReference:s}),e("DID_DEFINE_VALUE",{id:o.id,value:o.serverId||s});return}t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:o.id})},RETRY_ITEM_LOAD:Lc(n,o=>{o.retryLoad()}),REQUEST_ITEM_PREPARE:Lc(n,(o,i,r)=>{e("REQUEST_PREPARE_OUTPUT",{query:o.id,item:o,success:s=>{e("DID_PREPARE_OUTPUT",{id:o.id,file:s}),i({file:o,output:s})},failure:r},!0)}),REQUEST_ITEM_PROCESSING:Lc(n,(o,i,r)=>{if(!(o.status===fo.IDLE||o.status===fo.PROCESSING_ERROR)){const a=()=>e("REQUEST_ITEM_PROCESSING",{query:o,success:i,failure:r}),l=()=>document.hidden?a():setTimeout(a,32);o.status===fo.PROCESSING_COMPLETE||o.status===fo.PROCESSING_REVERT_ERROR?o.revert(Yb(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(l).catch(()=>{}):o.status===fo.PROCESSING&&o.abortProcessing().then(l);return}o.status!==fo.PROCESSING_QUEUED&&(o.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:o.id}),e("PROCESS_ITEM",{query:o,success:i,failure:r},!0))}),PROCESS_ITEM:Lc(n,(o,i,r)=>{const s=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",fo.PROCESSING).length===s){n.processingQueue.push({id:o.id,success:i,failure:r});return}if(o.status===fo.PROCESSING)return;const l=()=>{const u=n.processingQueue.shift();if(!u)return;const{id:f,success:p,failure:v}=u,_=b1(n.items,f);if(!_||_.archived){l();return}e("PROCESS_ITEM",{query:f,success:p,failure:v},!0)};o.onOnce("process-complete",()=>{i(bl(o)),l();const u=n.options.server;if(n.options.instantUpload&&o.origin===xs.LOCAL&&y1(u.remove)){const v=()=>{};o.origin=xs.LIMBO,n.options.server.remove(o.source,v,v)}t("GET_ITEMS_BY_STATUS",fo.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")}),o.onOnce("process-error",u=>{r({error:u,file:bl(o)}),l()});const d=n.options;o.process(zIt(jIt(d.server.url,d.server.process,d.name,{chunkTransferId:o.transferId,chunkServer:d.server.patch,chunkUploads:d.chunkUploads,chunkForce:d.chunkForce,chunkSize:d.chunkSize,chunkRetryDelays:d.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(u,f,p)=>{Dd("PREPARE_OUTPUT",u,{query:t,item:o}).then(v=>{e("DID_PREPARE_OUTPUT",{id:o.id,file:v}),f(v)}).catch(p)})}),RETRY_ITEM_PROCESSING:Lc(n,o=>{e("REQUEST_ITEM_PROCESSING",{query:o})}),REQUEST_REMOVE_ITEM:Lc(n,o=>{Eq(t("GET_BEFORE_REMOVE_FILE"),bl(o)).then(i=>{i&&e("REMOVE_ITEM",{query:o})})}),RELEASE_ITEM:Lc(n,o=>{o.release()}),REMOVE_ITEM:Lc(n,(o,i,r,s)=>{const a=()=>{const d=o.id;Cq(n.items,d).archive(),e("DID_REMOVE_ITEM",{error:null,id:d,item:o}),wT(e,n),i(bl(o))},l=n.options.server;o.origin===xs.LOCAL&&l&&y1(l.remove)&&s.remove!==!1?(e("DID_START_ITEM_REMOVE",{id:o.id}),l.remove(o.source,()=>a(),d=>{e("DID_THROW_ITEM_REMOVE_ERROR",{id:o.id,error:Hr("error",0,d,null),status:{main:n8(n.options.labelFileRemoveError)(d),sub:n.options.labelTapToRetry}})})):((s.revert&&o.origin!==xs.LOCAL&&o.serverId!==null||n.options.chunkUploads&&o.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&o.revert(Yb(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),a())}),ABORT_ITEM_LOAD:Lc(n,o=>{o.abortLoad()}),ABORT_ITEM_PROCESSING:Lc(n,o=>{if(o.serverId){e("REVERT_ITEM_PROCESSING",{id:o.id});return}o.abortProcessing().then(()=>{n.options.instantUpload&&e("REMOVE_ITEM",{query:o.id})})}),REQUEST_REVERT_ITEM_PROCESSING:Lc(n,o=>{if(!n.options.instantUpload){e("REVERT_ITEM_PROCESSING",{query:o});return}const i=a=>{a&&e("REVERT_ITEM_PROCESSING",{query:o})},r=t("GET_BEFORE_REMOVE_FILE");if(!r)return i(!0);const s=r(bl(o));if(s==null)return i(!0);if(typeof s=="boolean")return i(s);typeof s.then=="function"&&s.then(i)}),REVERT_ITEM_PROCESSING:Lc(n,o=>{o.revert(Yb(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(()=>{(n.options.instantUpload||qIt(o))&&e("REMOVE_ITEM",{query:o.id})}).catch(()=>{})}),SET_OPTIONS:({options:o})=>{const i=Object.keys(o),r=WIt.filter(a=>i.includes(a));[...r,...Object.keys(o).filter(a=>!r.includes(a))].forEach(a=>{e(`SET_${E6(a,"_").toUpperCase()}`,{value:o[a]})})}}),WIt=["server"],OL=e=>e,Tf=e=>document.createElement(e),Vr=(e,t)=>{let n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},Iq=(e,t,n,o)=>{const i=(o%360-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},GIt=(e,t,n,o,i,r)=>{const s=Iq(e,t,n,i),a=Iq(e,t,n,o);return["M",s.x,s.y,"A",n,n,0,r,0,a.x,a.y].join(" ")},ZIt=(e,t,n,o,i)=>{let r=1;return i>o&&i-o<=.5&&(r=0),o>i&&o-i>=.5&&(r=0),GIt(e,t,n,Math.min(.9999,o)*360,Math.min(.9999,i)*360,r)},KIt=({root:e,props:t})=>{t.spin=!1,t.progress=0,t.opacity=0;const n=e$("svg");e.ref.path=e$("path",{"stroke-width":2,"stroke-linecap":"round"}),n.appendChild(e.ref.path),e.ref.svg=n,e.appendChild(n)},JIt=({root:e,props:t})=>{if(t.opacity===0)return;t.align&&(e.element.dataset.align=t.align);const n=parseInt($s(e.ref.path,"stroke-width"),10),o=e.rect.element.width*.5;let i=0,r=0;t.spin?(i=0,r=.5):(i=0,r=t.progress);const s=ZIt(o,o,o-n,i,r);$s(e.ref.path,"d",s),$s(e.ref.path,"stroke-opacity",t.spin||t.progress>0?1:0)},Pq=rs({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:KIt,write:JIt,mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),XIt=({root:e,props:t})=>{e.element.innerHTML=(t.icon||"")+`<span>${t.label}</span>`,t.isDisabled=!1},QIt=({root:e,props:t})=>{const{isDisabled:n}=t,o=e.query("GET_DISABLED")||t.opacity===0;o&&!n?(t.isDisabled=!0,$s(e.element,"disabled","disabled")):!o&&n&&(t.isDisabled=!1,e.element.removeAttribute("disabled"))},kae=rs({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:XIt,write:QIt}),wae=(e,t=".",n=1e3,o={})=>{const{labelBytes:i="bytes",labelKilobytes:r="KB",labelMegabytes:s="MB",labelGigabytes:a="GB"}=o;e=Math.round(Math.abs(e));const l=n,d=n*n,u=n*n*n;return e<l?`${e} ${i}`:e<d?`${Math.floor(e/l)} ${r}`:e<u?`${Aq(e/d,1,t)} ${s}`:`${Aq(e/u,2,t)} ${a}`},Aq=(e,t,n)=>e.toFixed(t).split(".").filter(o=>o!=="0").join(n),ePt=({root:e,props:t})=>{const n=Tf("span");n.className="filepond--file-info-main",$s(n,"aria-hidden","true"),e.appendChild(n),e.ref.fileName=n;const o=Tf("span");o.className="filepond--file-info-sub",e.appendChild(o),e.ref.fileSize=o,Vr(o,e.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),Vr(n,OL(e.query("GET_ITEM_NAME",t.id)))},MP=({root:e,props:t})=>{Vr(e.ref.fileSize,wae(e.query("GET_ITEM_SIZE",t.id),".",e.query("GET_FILE_SIZE_BASE"),e.query("GET_FILE_SIZE_LABELS",e.query))),Vr(e.ref.fileName,OL(e.query("GET_ITEM_NAME",t.id)))},Dq=({root:e,props:t})=>{if(Qy(e.query("GET_ITEM_SIZE",t.id))){MP({root:e,props:t});return}Vr(e.ref.fileSize,e.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},tPt=rs({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:Ga({DID_LOAD_ITEM:MP,DID_UPDATE_ITEM_META:MP,DID_THROW_ITEM_LOAD_ERROR:Dq,DID_THROW_ITEM_INVALID:Dq}),didCreateView:e=>{Cg("CREATE_VIEW",{...e,view:e})},create:ePt,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),$ae=e=>Math.round(e*100),nPt=({root:e})=>{const t=Tf("span");t.className="filepond--file-status-main",e.appendChild(t),e.ref.main=t;const n=Tf("span");n.className="filepond--file-status-sub",e.appendChild(n),e.ref.sub=n,Cae({root:e,action:{progress:null}})},Cae=({root:e,action:t})=>{const n=t.progress===null?e.query("GET_LABEL_FILE_LOADING"):`${e.query("GET_LABEL_FILE_LOADING")} ${$ae(t.progress)}%`;Vr(e.ref.main,n),Vr(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},oPt=({root:e,action:t})=>{const n=t.progress===null?e.query("GET_LABEL_FILE_PROCESSING"):`${e.query("GET_LABEL_FILE_PROCESSING")} ${$ae(t.progress)}%`;Vr(e.ref.main,n),Vr(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},iPt=({root:e})=>{Vr(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING")),Vr(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},rPt=({root:e})=>{Vr(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_ABORTED")),Vr(e.ref.sub,e.query("GET_LABEL_TAP_TO_RETRY"))},sPt=({root:e})=>{Vr(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),Vr(e.ref.sub,e.query("GET_LABEL_TAP_TO_UNDO"))},xq=({root:e})=>{Vr(e.ref.main,""),Vr(e.ref.sub,"")},Wb=({root:e,action:t})=>{Vr(e.ref.main,t.status.main),Vr(e.ref.sub,t.status.sub)},aPt=rs({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:Ga({DID_LOAD_ITEM:xq,DID_REVERT_ITEM_PROCESSING:xq,DID_REQUEST_ITEM_PROCESSING:iPt,DID_ABORT_ITEM_PROCESSING:rPt,DID_COMPLETE_ITEM_PROCESSING:sPt,DID_UPDATE_ITEM_PROCESS_PROGRESS:oPt,DID_UPDATE_ITEM_LOAD_PROGRESS:Cae,DID_THROW_ITEM_LOAD_ERROR:Wb,DID_THROW_ITEM_INVALID:Wb,DID_THROW_ITEM_PROCESSING_ERROR:Wb,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Wb,DID_THROW_ITEM_REMOVE_ERROR:Wb}),didCreateView:e=>{Cg("CREATE_VIEW",{...e,view:e})},create:nPt,mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),NP={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},RP=[];Pr(NP,e=>{RP.push(e)});const Jl=e=>{if(jP(e)==="right")return 0;const t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},lPt=e=>e.ref.buttonAbortItemLoad.rect.element.width,o8=e=>Math.floor(e.ref.buttonRemoveItem.rect.element.height/4),cPt=e=>Math.floor(e.ref.buttonRemoveItem.rect.element.left/2),dPt=e=>e.query("GET_STYLE_LOAD_INDICATOR_POSITION"),uPt=e=>e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION"),jP=e=>e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION"),hPt={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:dPt},processProgressIndicator:{opacity:0,align:uPt},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},Oq={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Jl},status:{translateX:Jl}},CT={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},e_={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Jl},status:{translateX:Jl,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:Jl},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:jP},info:{translateX:Jl},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:jP},buttonRemoveItem:{opacity:1},info:{translateX:Jl},status:{opacity:1,translateX:Jl}},DID_LOAD_ITEM:Oq,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Jl},status:{translateX:Jl}},DID_START_ITEM_PROCESSING:CT,DID_REQUEST_ITEM_PROCESSING:CT,DID_UPDATE_ITEM_PROCESS_PROGRESS:CT,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:Jl}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Jl},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:Oq},fPt=rs({create:({root:e})=>{e.element.innerHTML=e.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),mPt=({root:e,props:t})=>{const n=Object.keys(NP).reduce((_,k)=>(_[k]={...NP[k]},_),{}),{id:o}=t,i=e.query("GET_ALLOW_REVERT"),r=e.query("GET_ALLOW_REMOVE"),s=e.query("GET_ALLOW_PROCESS"),a=e.query("GET_INSTANT_UPLOAD"),l=e.query("IS_ASYNC"),d=e.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");let u;l?s&&!i?u=_=>!/RevertItemProcessing/.test(_):!s&&i?u=_=>!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(_):!s&&!i&&(u=_=>!/Process/.test(_)):u=_=>!/Process/.test(_);const f=u?RP.filter(u):RP.concat();if(a&&i&&(n.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",n.RevertItemProcessing.icon="GET_ICON_REMOVE"),l&&!i){const _=e_.DID_COMPLETE_ITEM_PROCESSING;_.info.translateX=cPt,_.info.translateY=o8,_.status.translateY=o8,_.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(l&&!s&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(_=>{e_[_].status.translateY=o8}),e_.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=lPt),d&&i){n.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";const _=e_.DID_COMPLETE_ITEM_PROCESSING;_.info.translateX=Jl,_.status.translateY=o8,_.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}r||(n.RemoveItem.disabled=!0),Pr(n,(_,k)=>{const C=e.createChildView(kae,{label:e.query(k.label),icon:e.query(k.icon),opacity:0});f.includes(_)&&e.appendChildView(C),k.disabled&&(C.element.setAttribute("disabled","disabled"),C.element.setAttribute("hidden","hidden")),C.element.dataset.align=e.query(`GET_STYLE_${k.align}`),C.element.classList.add(k.className),C.on("click",$=>{$.stopPropagation(),!k.disabled&&e.dispatch(k.action,{query:o})}),e.ref[`button${_}`]=C}),e.ref.processingCompleteIndicator=e.appendChildView(e.createChildView(fPt)),e.ref.processingCompleteIndicator.element.dataset.align=e.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),e.ref.info=e.appendChildView(e.createChildView(tPt,{id:o})),e.ref.status=e.appendChildView(e.createChildView(aPt,{id:o}));const p=e.appendChildView(e.createChildView(Pq,{opacity:0,align:e.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));p.element.classList.add("filepond--load-indicator"),e.ref.loadProgressIndicator=p;const v=e.appendChildView(e.createChildView(Pq,{opacity:0,align:e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));v.element.classList.add("filepond--process-indicator"),e.ref.processProgressIndicator=v,e.ref.activeStyles=[]},pPt=({root:e,actions:t,props:n})=>{gPt({root:e,actions:t,props:n});let o=t.concat().filter(i=>/^DID_/.test(i.type)).reverse().find(i=>e_[i.type]);if(o){e.ref.activeStyles=[];const i=e_[o.type];Pr(hPt,(r,s)=>{const a=e.ref[r];Pr(s,(l,d)=>{const u=i[r]&&typeof i[r][l]<"u"?i[r][l]:d;e.ref.activeStyles.push({control:a,key:l,value:u})})})}e.ref.activeStyles.forEach(({control:i,key:r,value:s})=>{i[r]=typeof s=="function"?s(e):s})},gPt=Ga({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:({root:e,action:t})=>{e.ref.buttonAbortItemProcessing.label=t.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:({root:e,action:t})=>{e.ref.buttonAbortItemLoad.label=t.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:({root:e,action:t})=>{e.ref.buttonAbortItemRemoval.label=t.value},DID_REQUEST_ITEM_PROCESSING:({root:e})=>{e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:({root:e})=>{e.ref.loadProgressIndicator.spin=!0,e.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:({root:e})=>{e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:({root:e,action:t})=>{e.ref.loadProgressIndicator.spin=!1,e.ref.loadProgressIndicator.progress=t.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:({root:e,action:t})=>{e.ref.processProgressIndicator.spin=!1,e.ref.processProgressIndicator.progress=t.progress}}),vPt=rs({create:mPt,write:pPt,didCreateView:e=>{Cg("CREATE_VIEW",{...e,view:e})},name:"file"}),_Pt=({root:e,props:t})=>{e.ref.fileName=Tf("legend"),e.appendChild(e.ref.fileName),e.ref.file=e.appendChildView(e.createChildView(vPt,{id:t.id})),e.ref.data=!1},yPt=({root:e,props:t})=>{Vr(e.ref.fileName,OL(e.query("GET_ITEM_NAME",t.id)))},bPt=rs({create:_Pt,ignoreRect:!0,write:Ga({DID_LOAD_ITEM:yPt}),didCreateView:e=>{Cg("CREATE_VIEW",{...e,view:e})},tag:"fieldset",name:"file-wrapper"}),Lq={type:"spring",damping:.6,mass:7},kPt=({root:e,props:t})=>{[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:Lq},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:Lq},styles:["translateY"]}}].forEach(n=>{wPt(e,n,t.name)}),e.element.classList.add(`filepond--${t.name}`),e.ref.scalable=null},wPt=(e,t,n)=>{const o=rs({name:`panel-${t.name} filepond--${n}`,mixins:t.mixins,ignoreRectUpdate:!0}),i=e.createChildView(o,t.props);e.ref[t.name]=e.appendChildView(i)},$Pt=({root:e,props:t})=>{if((e.ref.scalable===null||t.scalable!==e.ref.scalable)&&(e.ref.scalable=sae(t.scalable)?t.scalable:!0,e.element.dataset.scalable=e.ref.scalable),!t.height)return;const n=e.ref.top.rect.element,o=e.ref.bottom.rect.element,i=Math.max(n.height+o.height,t.height);e.ref.center.translateY=n.height,e.ref.center.scaleY=(i-n.height-o.height)/100,e.ref.bottom.translateY=i-o.height},Sae=rs({name:"panel",read:({root:e,props:t})=>t.heightCurrent=e.ref.bottom.translateY,write:$Pt,create:kPt,ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),CPt=e=>{const t=e.map(o=>o.id);let n;return{setIndex:o=>{n=o},getIndex:()=>n,getItemIndex:o=>t.indexOf(o.id)}},Mq={type:"spring",stiffness:.75,damping:.45,mass:10},Nq="spring",Rq={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},SPt=({root:e,props:t})=>{if(e.ref.handleClick=o=>e.dispatch("DID_ACTIVATE_ITEM",{id:t.id}),e.element.id=`filepond--item-${t.id}`,e.element.addEventListener("click",e.ref.handleClick),e.ref.container=e.appendChildView(e.createChildView(bPt,{id:t.id})),e.ref.panel=e.appendChildView(e.createChildView(Sae,{name:"item-panel"})),e.ref.panel.height=null,t.markedForRemoval=!1,!e.query("GET_ALLOW_REORDER"))return;e.element.dataset.dragState="idle";const n=o=>{if(!o.isPrimary)return;let i=!1;const r={x:o.pageX,y:o.pageY};t.dragOrigin={x:e.translateX,y:e.translateY},t.dragCenter={x:o.offsetX,y:o.offsetY};const s=CPt(e.query("GET_ACTIVE_ITEMS"));e.dispatch("DID_GRAB_ITEM",{id:t.id,dragState:s});const a=f=>{if(!f.isPrimary)return;f.stopPropagation(),f.preventDefault(),t.dragOffset={x:f.pageX-r.x,y:f.pageY-r.y},t.dragOffset.x*t.dragOffset.x+t.dragOffset.y*t.dragOffset.y>16&&!i&&(i=!0,e.element.removeEventListener("click",e.ref.handleClick)),e.dispatch("DID_DRAG_ITEM",{id:t.id,dragState:s})},l=f=>{f.isPrimary&&(t.dragOffset={x:f.pageX-r.x,y:f.pageY-r.y},u())},d=()=>{u()},u=()=>{document.removeEventListener("pointercancel",d),document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",l),e.dispatch("DID_DROP_ITEM",{id:t.id,dragState:s}),i&&setTimeout(()=>e.element.addEventListener("click",e.ref.handleClick),0)};document.addEventListener("pointercancel",d),document.addEventListener("pointermove",a),document.addEventListener("pointerup",l)};e.element.addEventListener("pointerdown",n)},TPt=Ga({DID_UPDATE_PANEL_HEIGHT:({root:e,action:t})=>{e.height=t.height}}),EPt=Ga({DID_GRAB_ITEM:({root:e,props:t})=>{t.dragOrigin={x:e.translateX,y:e.translateY}},DID_DRAG_ITEM:({root:e})=>{e.element.dataset.dragState="drag"},DID_DROP_ITEM:({root:e,props:t})=>{t.dragOffset=null,t.dragOrigin=null,e.element.dataset.dragState="drop"}},({root:e,actions:t,props:n,shouldOptimize:o})=>{e.element.dataset.dragState==="drop"&&e.scaleX<=1&&(e.element.dataset.dragState="idle");let i=t.concat().filter(s=>/^DID_/.test(s.type)).reverse().find(s=>Rq[s.type]);i&&i.type!==n.currentState&&(n.currentState=i.type,e.element.dataset.filepondItemState=Rq[n.currentState]||"");const r=e.query("GET_ITEM_PANEL_ASPECT_RATIO")||e.query("GET_PANEL_ASPECT_RATIO");r?o||(e.height=e.rect.element.width*r):(TPt({root:e,actions:t,props:n}),!e.height&&e.ref.container.rect.element.height>0&&(e.height=e.ref.container.rect.element.height)),o&&(e.ref.panel.height=null),e.ref.panel.height=e.height}),IPt=rs({create:SPt,write:EPt,destroy:({root:e,props:t})=>{e.element.removeEventListener("click",e.ref.handleClick),e.dispatch("RELEASE_ITEM",{query:t.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:Nq,scaleY:Nq,translateX:Mq,translateY:Mq,opacity:{type:"tween",duration:150}}}});var LL=(e,t)=>Math.max(1,Math.floor((e+1)/t));const ML=(e,t,n)=>{if(!n)return;const o=e.rect.element.width,i=t.length;let r=null;if(i===0||n.top<t[0].rect.element.top)return-1;const a=t[0].rect.element,l=a.marginLeft+a.marginRight,d=a.width+l,u=LL(o,d);if(u===1){for(let v=0;v<i;v++){const _=t[v],k=_.rect.outer.top+_.rect.element.height*.5;if(n.top<k)return v}return i}const f=a.marginTop+a.marginBottom,p=a.height+f;for(let v=0;v<i;v++){const _=v%u,k=Math.floor(v/u),C=_*d,$=k*p,E=$-a.marginTop,P=C+d,I=$+p+a.marginBottom;if(n.top<I&&n.top>E){if(n.left<P)return v;v!==i-1?r=v:r=null}}return r!==null?r:i},i8={height:0,width:0,get getHeight(){return this.height},set setHeight(e){(this.height===0||e===0)&&(this.height=e)},get getWidth(){return this.width},set setWidth(e){(this.width===0||e===0)&&(this.width=e)},setDimensions:function(e,t){(this.height===0||e===0)&&(this.height=e),(this.width===0||t===0)&&(this.width=t)}},PPt=({root:e})=>{$s(e.element,"role","list"),e.ref.lastItemSpanwDate=Date.now()},APt=({root:e,action:t})=>{const{id:n,index:o,interactionMethod:i}=t;e.ref.addIndex=o;const r=Date.now();let s=r,a=1;if(i!==Wc.NONE){a=0;const l=e.query("GET_ITEM_INSERT_INTERVAL"),d=r-e.ref.lastItemSpanwDate;s=d<l?r+(l-d):r}e.ref.lastItemSpanwDate=s,e.appendChildView(e.createChildView(IPt,{spawnDate:s,id:n,opacity:a,interactionMethod:i}),o)},jq=(e,t,n,o=0,i=1)=>{e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(e.opacity===0&&DPt(e,t,n,o,i),e.scaleX=1,e.scaleY=1,e.opacity=1))},DPt=(e,t,n,o,i)=>{e.interactionMethod===Wc.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===Wc.DROP?(e.translateX=null,e.translateX=t-o*20,e.translateY=null,e.translateY=n-i*10,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===Wc.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===Wc.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},xPt=({root:e,action:t})=>{const{id:n}=t,o=e.childViews.find(i=>i.id===n);o&&(o.scaleX=.9,o.scaleY=.9,o.opacity=0,o.markedForRemoval=!0)},ST=e=>e.rect.element.height+e.rect.element.marginBottom*.5+e.rect.element.marginTop*.5,OPt=e=>e.rect.element.width+e.rect.element.marginLeft*.5+e.rect.element.marginRight*.5,LPt=({root:e,action:t})=>{const{id:n,dragState:o}=t,i=e.query("GET_ITEM",{id:n}),r=e.childViews.find(C=>C.id===n),s=e.childViews.length,a=o.getItemIndex(i);if(!r)return;const l={x:r.dragOrigin.x+r.dragOffset.x+r.dragCenter.x,y:r.dragOrigin.y+r.dragOffset.y+r.dragCenter.y},d=ST(r),u=OPt(r);let f=Math.floor(e.rect.outer.width/u);f>s&&(f=s);const p=Math.floor(s/f+1);i8.setHeight=d*p,i8.setWidth=u*f;var v={y:Math.floor(l.y/d),x:Math.floor(l.x/u),getGridIndex:function(){return l.y>i8.getHeight||l.y<0||l.x>i8.getWidth||l.x<0?a:this.y*f+this.x},getColIndex:function(){const $=e.query("GET_ACTIVE_ITEMS"),E=e.childViews.filter(B=>B.rect.element.height),P=$.map(B=>E.find(V=>V.id===B.id)),I=P.findIndex(B=>B===r),O=ST(r),L=P.length;let S=L,j=0,M=0,q=0;for(let B=0;B<L;B++)if(j=ST(P[B]),q=M,M=q+j,l.y<M){if(I>B){if(l.y<q+O){S=B;break}continue}S=B;break}return S}};const _=f>1?v.getGridIndex():v.getColIndex();e.dispatch("MOVE_ITEM",{query:r,index:_});const k=o.getIndex();if(k===void 0||k!==_){if(o.setIndex(_),k===void 0)return;e.dispatch("DID_REORDER_ITEMS",{items:e.query("GET_ACTIVE_ITEMS"),origin:a,target:_})}},MPt=Ga({DID_ADD_ITEM:APt,DID_REMOVE_ITEM:xPt,DID_DRAG_ITEM:LPt}),NPt=({root:e,props:t,actions:n,shouldOptimize:o})=>{MPt({root:e,props:t,actions:n});const{dragCoordinates:i}=t,r=e.rect.element.width,s=e.childViews.filter(P=>P.rect.element.height),a=e.query("GET_ACTIVE_ITEMS").map(P=>s.find(I=>I.id===P.id)).filter(P=>P),l=i?ML(e,a,i):null,d=e.ref.addIndex||null;e.ref.addIndex=null;let u=0,f=0,p=0;if(a.length===0)return;const v=a[0].rect.element,_=v.marginTop+v.marginBottom,k=v.marginLeft+v.marginRight,C=v.width+k,$=v.height+_,E=LL(r,C);if(E===1){let P=0,I=0;a.forEach((O,L)=>{if(l){let M=L-l;M===-2?I=-_*.25:M===-1?I=-_*.75:M===0?I=_*.75:M===1?I=_*.25:I=0}o&&(O.translateX=null,O.translateY=null),O.markedForRemoval||jq(O,0,P+I);let j=(O.rect.element.height+_)*(O.markedForRemoval?O.opacity:1);P+=j})}else{let P=0,I=0;a.forEach((O,L)=>{L===l&&(u=1),L===d&&(p+=1),O.markedForRemoval&&O.opacity<.5&&(f-=1);const S=L+p+u+f,j=S%E,M=Math.floor(S/E),q=j*C,B=M*$,V=Math.sign(q-P),G=Math.sign(B-I);P=q,I=B,!O.markedForRemoval&&(o&&(O.translateX=null,O.translateY=null),jq(O,q,B,V,G))})}},RPt=(e,t)=>t.filter(n=>n.data&&n.data.id?e.id===n.data.id:!0),jPt=rs({create:PPt,write:NPt,tag:"ul",name:"list",didWriteView:({root:e})=>{e.childViews.filter(t=>t.markedForRemoval&&t.opacity===0&&t.resting).forEach(t=>{t._destroy(),e.removeChildView(t)})},filterFrameActionsForChild:RPt,mixins:{apis:["dragCoordinates"]}}),FPt=({root:e,props:t})=>{e.ref.list=e.appendChildView(e.createChildView(jPt)),t.dragCoordinates=null,t.overflowing=!1},zPt=({root:e,props:t,action:n})=>{e.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(t.dragCoordinates={left:n.position.scopeLeft-e.ref.list.rect.element.left,top:n.position.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},UPt=({props:e})=>{e.dragCoordinates=null},BPt=Ga({DID_DRAG:zPt,DID_END_DRAG:UPt}),HPt=({root:e,props:t,actions:n})=>{if(BPt({root:e,props:t,actions:n}),e.ref.list.dragCoordinates=t.dragCoordinates,t.overflowing&&!t.overflow&&(t.overflowing=!1,e.element.dataset.state="",e.height=null),t.overflow){const o=Math.round(t.overflow);o!==e.height&&(t.overflowing=!0,e.element.dataset.state="overflow",e.height=o)}},VPt=rs({create:FPt,write:HPt,name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),qd=(e,t,n,o="")=>{n?$s(e,t,o):e.removeAttribute(t)},qPt=e=>{if(!(!e||e.value==="")){try{e.value=""}catch{}if(e.value){const t=Tf("form"),n=e.parentNode,o=e.nextSibling;t.appendChild(e),t.reset(),o?n.insertBefore(e,o):n.appendChild(e)}}},YPt=({root:e,props:t})=>{e.element.id=`filepond--browser-${t.id}`,$s(e.element,"name",e.query("GET_NAME")),$s(e.element,"aria-controls",`filepond--assistant-${t.id}`),$s(e.element,"aria-labelledby",`filepond--drop-label-${t.id}`),Tae({root:e,action:{value:e.query("GET_ACCEPTED_FILE_TYPES")}}),Eae({root:e,action:{value:e.query("GET_ALLOW_MULTIPLE")}}),Iae({root:e,action:{value:e.query("GET_ALLOW_DIRECTORIES_ONLY")}}),FP({root:e}),Pae({root:e,action:{value:e.query("GET_REQUIRED")}}),Aae({root:e,action:{value:e.query("GET_CAPTURE_METHOD")}}),e.ref.handleChange=n=>{if(!e.element.value)return;const o=Array.from(e.element.files).map(i=>(i._relativePath=i.webkitRelativePath,i));setTimeout(()=>{t.onload(o),qPt(e.element)},250)},e.element.addEventListener("change",e.ref.handleChange)},Tae=({root:e,action:t})=>{e.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&qd(e.element,"accept",!!t.value,t.value?t.value.join(","):"")},Eae=({root:e,action:t})=>{qd(e.element,"multiple",t.value)},Iae=({root:e,action:t})=>{qd(e.element,"webkitdirectory",t.value)},FP=({root:e})=>{const t=e.query("GET_DISABLED"),n=e.query("GET_ALLOW_BROWSE"),o=t||!n;qd(e.element,"disabled",o)},Pae=({root:e,action:t})=>{t.value?e.query("GET_TOTAL_ITEMS")===0&&qd(e.element,"required",!0):qd(e.element,"required",!1)},Aae=({root:e,action:t})=>{qd(e.element,"capture",!!t.value,t.value===!0?"":t.value)},Fq=({root:e})=>{const{element:t}=e;e.query("GET_TOTAL_ITEMS")>0?(qd(t,"required",!1),qd(t,"name",!1)):(qd(t,"name",!0,e.query("GET_NAME")),e.query("GET_CHECK_VALIDITY")&&t.setCustomValidity(""),e.query("GET_REQUIRED")&&qd(t,"required",!0))},WPt=({root:e})=>{e.query("GET_CHECK_VALIDITY")&&e.element.setCustomValidity(e.query("GET_LABEL_INVALID_FIELD"))},GPt=rs({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:YPt,destroy:({root:e})=>{e.element.removeEventListener("change",e.ref.handleChange)},write:Ga({DID_LOAD_ITEM:Fq,DID_REMOVE_ITEM:Fq,DID_THROW_ITEM_INVALID:WPt,DID_SET_DISABLED:FP,DID_SET_ALLOW_BROWSE:FP,DID_SET_ALLOW_DIRECTORIES_ONLY:Iae,DID_SET_ALLOW_MULTIPLE:Eae,DID_SET_ACCEPTED_FILE_TYPES:Tae,DID_SET_CAPTURE_METHOD:Aae,DID_SET_REQUIRED:Pae})}),zq={ENTER:13,SPACE:32},ZPt=({root:e,props:t})=>{const n=Tf("label");$s(n,"for",`filepond--browser-${t.id}`),$s(n,"id",`filepond--drop-label-${t.id}`),e.ref.handleKeyDown=o=>{(o.keyCode===zq.ENTER||o.keyCode===zq.SPACE)&&(o.preventDefault(),e.ref.label.click())},e.ref.handleClick=o=>{o.target===n||n.contains(o.target)||e.ref.label.click()},n.addEventListener("keydown",e.ref.handleKeyDown),e.element.addEventListener("click",e.ref.handleClick),Dae(n,t.caption),e.appendChild(n),e.ref.label=n},Dae=(e,t)=>{e.innerHTML=t;const n=e.querySelector(".filepond--label-action");return n&&$s(n,"tabindex","0"),t},KPt=rs({name:"drop-label",ignoreRect:!0,create:ZPt,destroy:({root:e})=>{e.ref.label.addEventListener("keydown",e.ref.handleKeyDown),e.element.removeEventListener("click",e.ref.handleClick)},write:Ga({DID_SET_LABEL_IDLE:({root:e,action:t})=>{Dae(e.ref.label,t.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),JPt=rs({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),XPt=({root:e})=>{const t=e.rect.element.width*.5,n=e.rect.element.height*.5;e.ref.blob=e.appendChildView(e.createChildView(JPt,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:t,translateY:n}))},QPt=({root:e,action:t})=>{if(!e.ref.blob){XPt({root:e});return}e.ref.blob.translateX=t.position.scopeLeft,e.ref.blob.translateY=t.position.scopeTop,e.ref.blob.scaleX=1,e.ref.blob.scaleY=1,e.ref.blob.opacity=1},eAt=({root:e})=>{e.ref.blob&&(e.ref.blob.opacity=0)},tAt=({root:e})=>{e.ref.blob&&(e.ref.blob.scaleX=2.5,e.ref.blob.scaleY=2.5,e.ref.blob.opacity=0)},nAt=({root:e,props:t,actions:n})=>{oAt({root:e,props:t,actions:n});const{blob:o}=e.ref;n.length===0&&o&&o.opacity===0&&(e.removeChildView(o),e.ref.blob=null)},oAt=Ga({DID_DRAG:QPt,DID_DROP:tAt,DID_END_DRAG:eAt}),iAt=rs({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:nAt}),xae=(e,t)=>{try{const n=new DataTransfer;t.forEach(o=>{o instanceof File?n.items.add(o):n.items.add(new File([o],o.name,{type:o.type}))}),e.files=n.files}catch{return!1}return!0},rAt=({root:e})=>e.ref.fields={},A6=(e,t)=>e.ref.fields[t],NL=e=>{e.query("GET_ACTIVE_ITEMS").forEach(t=>{e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])})},Uq=({root:e})=>NL(e),sAt=({root:e,action:t})=>{const i=!(e.query("GET_ITEM",t.id).origin===xs.LOCAL)&&e.query("SHOULD_UPDATE_FILE_INPUT"),r=Tf("input");r.type=i?"file":"hidden",r.name=e.query("GET_NAME"),e.ref.fields[t.id]=r,NL(e)},aAt=({root:e,action:t})=>{const n=A6(e,t.id);if(!n||(t.serverFileReference!==null&&(n.value=t.serverFileReference),!e.query("SHOULD_UPDATE_FILE_INPUT")))return;const o=e.query("GET_ITEM",t.id);xae(n,[o.file])},lAt=({root:e,action:t})=>{e.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout(()=>{const n=A6(e,t.id);n&&xae(n,[t.file])},0)},cAt=({root:e})=>{e.element.disabled=e.query("GET_DISABLED")},dAt=({root:e,action:t})=>{const n=A6(e,t.id);n&&(n.parentNode&&n.parentNode.removeChild(n),delete e.ref.fields[t.id])},uAt=({root:e,action:t})=>{const n=A6(e,t.id);n&&(t.value===null?n.removeAttribute("value"):n.type!="file"&&(n.value=t.value),NL(e))},hAt=Ga({DID_SET_DISABLED:cAt,DID_ADD_ITEM:sAt,DID_LOAD_ITEM:aAt,DID_REMOVE_ITEM:dAt,DID_DEFINE_VALUE:uAt,DID_PREPARE_OUTPUT:lAt,DID_REORDER_ITEMS:Uq,DID_SORT_ITEMS:Uq}),fAt=rs({tag:"fieldset",name:"data",create:rAt,write:hAt,ignoreRect:!0}),mAt=e=>"getRootNode"in e?e.getRootNode():document,pAt=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],gAt=["css","csv","html","txt"],vAt={zip:"zip|compressed",epub:"application/epub+zip"},Oae=(e="")=>(e=e.toLowerCase(),pAt.includes(e)?"image/"+(e==="jpg"?"jpeg":e==="svg"?"svg+xml":e):gAt.includes(e)?"text/"+e:vAt[e]||""),RL=e=>new Promise((t,n)=>{const o=SAt(e);if(o.length&&!_At(e))return t(o);yAt(e).then(t)}),_At=e=>e.files?e.files.length>0:!1,yAt=e=>new Promise((t,n)=>{const o=(e.items?Array.from(e.items):[]).filter(i=>bAt(i)).map(i=>kAt(i));if(!o.length){t(e.files?Array.from(e.files):[]);return}Promise.all(o).then(i=>{const r=[];i.forEach(s=>{r.push.apply(r,s)}),t(r.filter(s=>s).map(s=>(s._relativePath||(s._relativePath=s.webkitRelativePath),s)))}).catch(console.error)}),bAt=e=>{if(Lae(e)){const t=jL(e);if(t)return t.isFile||t.isDirectory}return e.kind==="file"},kAt=e=>new Promise((t,n)=>{if(CAt(e)){wAt(jL(e)).then(t).catch(n);return}t([e.getAsFile()])}),wAt=e=>new Promise((t,n)=>{const o=[];let i=0,r=0;const s=()=>{r===0&&i===0&&t(o)},a=l=>{i++;const d=l.createReader(),u=()=>{d.readEntries(f=>{if(f.length===0){i--,s();return}f.forEach(p=>{p.isDirectory?a(p):(r++,p.file(v=>{const _=$At(v);p.fullPath&&(_._relativePath=p.fullPath),o.push(_),r--,s()}))}),u()},n)};u()};a(e)}),$At=e=>{if(e.type.length)return e;const t=e.lastModifiedDate,n=e.name,o=Oae(P6(e.name));return o.length&&(e=e.slice(0,e.size,o),e.name=n,e.lastModifiedDate=t),e},CAt=e=>Lae(e)&&(jL(e)||{}).isDirectory,Lae=e=>"webkitGetAsEntry"in e,jL=e=>e.webkitGetAsEntry(),SAt=e=>{let t=[];try{if(t=EAt(e),t.length)return t;t=TAt(e)}catch{}return t},TAt=e=>{let t=e.getData("url");return typeof t=="string"&&t.length?[t]:[]},EAt=e=>{let t=e.getData("text/html");if(typeof t=="string"&&t.length){const n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},n$=[],L1=e=>({pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}),IAt=(e,t,n)=>{const o=PAt(t),i={element:e,filterElement:n,state:null,ondrop:()=>{},onenter:()=>{},ondrag:()=>{},onexit:()=>{},onload:()=>{},allowdrop:()=>{}};return i.destroy=o.addListener(i),i},PAt=e=>{const t=n$.find(o=>o.element===e);if(t)return t;const n=AAt(e);return n$.push(n),n},AAt=e=>{const t=[],n={dragenter:xAt,dragover:OAt,dragleave:MAt,drop:LAt},o={};Pr(n,(r,s)=>{o[r]=s(e,t),e.addEventListener(r,o[r],!1)});const i={element:e,addListener:r=>(t.push(r),()=>{t.splice(t.indexOf(r),1),t.length===0&&(n$.splice(n$.indexOf(i),1),Pr(n,s=>{e.removeEventListener(s,o[s],!1)}))})};return i},DAt=(e,t)=>("elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)),FL=(e,t)=>{const n=mAt(t),o=DAt(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return o===t||t.contains(o)};let Mae=null;const r8=(e,t)=>{try{e.dropEffect=t}catch{}},xAt=(e,t)=>n=>{n.preventDefault(),Mae=n.target,t.forEach(o=>{const{element:i,onenter:r}=o;FL(n,i)&&(o.state="enter",r(L1(n)))})},OAt=(e,t)=>n=>{n.preventDefault();const o=n.dataTransfer;RL(o).then(i=>{let r=!1;t.some(s=>{const{filterElement:a,element:l,onenter:d,onexit:u,ondrag:f,allowdrop:p}=s;r8(o,"copy");const v=p(i);if(!v){r8(o,"none");return}if(FL(n,l)){if(r=!0,s.state===null){s.state="enter",d(L1(n));return}if(s.state="over",a&&!v){r8(o,"none");return}f(L1(n))}else a&&!r&&r8(o,"none"),s.state&&(s.state=null,u(L1(n)))})})},LAt=(e,t)=>n=>{n.preventDefault();const o=n.dataTransfer;RL(o).then(i=>{t.forEach(r=>{const{filterElement:s,element:a,ondrop:l,onexit:d,allowdrop:u}=r;if(r.state=null,!(s&&!FL(n,a))){if(!u(i))return d(L1(n));l(L1(n),i)}})})},MAt=(e,t)=>n=>{Mae===n.target&&t.forEach(o=>{const{onexit:i}=o;o.state=null,i(L1(n))})},NAt=(e,t,n)=>{e.classList.add("filepond--hopper");const{catchesDropsOnPage:o,requiresDropOnElement:i,filterItems:r=u=>u}=n,s=IAt(e,o?document.documentElement:e,i);let a="",l="";s.allowdrop=u=>t(r(u)),s.ondrop=(u,f)=>{const p=r(f);if(!t(p)){d.ondragend(u);return}l="drag-drop",d.onload(p,u)},s.ondrag=u=>{d.ondrag(u)},s.onenter=u=>{l="drag-over",d.ondragstart(u)},s.onexit=u=>{l="drag-exit",d.ondragend(u)};const d={updateHopperState:()=>{a!==l&&(e.dataset.hopperState=l,a=l)},onload:()=>{},ondragstart:()=>{},ondrag:()=>{},ondragend:()=>{},destroy:()=>{s.destroy()}};return d};let zP=!1;const $_=[],Nae=e=>{const t=document.activeElement;if(t&&(/textarea|input/i.test(t.nodeName)||t.getAttribute("contenteditable")==="true")){let o=!1,i=t;for(;i!==document.body;){if(i.classList.contains("filepond--root")){o=!0;break}i=i.parentNode}if(!o)return}RL(e.clipboardData).then(o=>{o.length&&$_.forEach(i=>i(o))})},RAt=e=>{$_.includes(e)||($_.push(e),!zP&&(zP=!0,document.addEventListener("paste",Nae)))},jAt=e=>{AL($_,$_.indexOf(e)),$_.length===0&&(document.removeEventListener("paste",Nae),zP=!1)},FAt=()=>{const e=n=>{t.onload(n)},t={destroy:()=>{jAt(e)},onload:()=>{}};return RAt(e),t},zAt=({root:e,props:t})=>{e.element.id=`filepond--assistant-${t.id}`,$s(e.element,"role","status"),$s(e.element,"aria-live","polite"),$s(e.element,"aria-relevant","additions")};let Bq=null,Hq=null;const TT=[],D6=(e,t)=>{e.element.textContent=t},UAt=e=>{e.element.textContent=""},Rae=(e,t,n)=>{const o=e.query("GET_TOTAL_ITEMS");D6(e,`${n} ${t}, ${o} ${o===1?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL")}`),clearTimeout(Hq),Hq=setTimeout(()=>{UAt(e)},1500)},jae=e=>e.element.parentNode.contains(document.activeElement),BAt=({root:e,action:t})=>{if(!jae(e))return;e.element.textContent="";const n=e.query("GET_ITEM",t.id);TT.push(n.filename),clearTimeout(Bq),Bq=setTimeout(()=>{Rae(e,TT.join(", "),e.query("GET_LABEL_FILE_ADDED")),TT.length=0},750)},HAt=({root:e,action:t})=>{if(!jae(e))return;const n=t.item;Rae(e,n.filename,e.query("GET_LABEL_FILE_REMOVED"))},VAt=({root:e,action:t})=>{const o=e.query("GET_ITEM",t.id).filename,i=e.query("GET_LABEL_FILE_PROCESSING_COMPLETE");D6(e,`${o} ${i}`)},Vq=({root:e,action:t})=>{const o=e.query("GET_ITEM",t.id).filename,i=e.query("GET_LABEL_FILE_PROCESSING_ABORTED");D6(e,`${o} ${i}`)},s8=({root:e,action:t})=>{const o=e.query("GET_ITEM",t.id).filename;D6(e,`${t.status.main} ${o} ${t.status.sub}`)},qAt=rs({create:zAt,ignoreRect:!0,ignoreRectUpdate:!0,write:Ga({DID_LOAD_ITEM:BAt,DID_REMOVE_ITEM:HAt,DID_COMPLETE_ITEM_PROCESSING:VAt,DID_ABORT_ITEM_PROCESSING:Vq,DID_REVERT_ITEM_PROCESSING:Vq,DID_THROW_ITEM_REMOVE_ERROR:s8,DID_THROW_ITEM_LOAD_ERROR:s8,DID_THROW_ITEM_INVALID:s8,DID_THROW_ITEM_PROCESSING_ERROR:s8}),tag:"span",name:"assistant"}),Fae=(e,t="-")=>e.replace(new RegExp(`${t}.`,"g"),n=>n.charAt(1).toUpperCase()),zae=(e,t=16,n=!0)=>{let o=Date.now(),i=null;return(...r)=>{clearTimeout(i);const s=Date.now()-o,a=()=>{o=Date.now(),e(...r)};s<t?n||(i=setTimeout(a,t-s)):a()}},YAt=1e6,o$=e=>e.preventDefault(),WAt=({root:e,props:t})=>{const n=e.query("GET_ID");n&&(e.element.id=n);const o=e.query("GET_CLASS_NAME");o&&o.split(" ").filter(l=>l.length).forEach(l=>{e.element.classList.add(l)}),e.ref.label=e.appendChildView(e.createChildView(KPt,{...t,translateY:null,caption:e.query("GET_LABEL_IDLE")})),e.ref.list=e.appendChildView(e.createChildView(VPt,{translateY:null})),e.ref.panel=e.appendChildView(e.createChildView(Sae,{name:"panel-root"})),e.ref.assistant=e.appendChildView(e.createChildView(qAt,{...t})),e.ref.data=e.appendChildView(e.createChildView(fAt,{...t})),e.ref.measure=Tf("div"),e.ref.measure.style.height="100%",e.element.appendChild(e.ref.measure),e.ref.bounds=null,e.query("GET_STYLES").filter(l=>!Sf(l.value)).map(({name:l,value:d})=>{e.element.dataset[l]=d}),e.ref.widthPrevious=null,e.ref.widthUpdated=zae(()=>{e.ref.updateHistory=[],e.dispatch("DID_RESIZE_ROOT")},250),e.ref.previousAspectRatio=null,e.ref.updateHistory=[];const i=window.matchMedia("(pointer: fine) and (hover: hover)").matches,r="PointerEvent"in window;e.query("GET_ALLOW_REORDER")&&r&&!i&&(e.element.addEventListener("touchmove",o$,{passive:!1}),e.element.addEventListener("gesturestart",o$));const s=e.query("GET_CREDITS");if(s.length===2){const l=document.createElement("a");l.className="filepond--credits",l.href=s[0],l.tabIndex=-1,l.target="_blank",l.rel="noopener noreferrer",l.textContent=s[1],e.element.appendChild(l),e.ref.credits=l}},GAt=({root:e,props:t,actions:n})=>{if(QAt({root:e,props:t,actions:n}),n.filter(L=>/^DID_SET_STYLE_/.test(L.type)).filter(L=>!Sf(L.data.value)).map(({type:L,data:S})=>{const j=Fae(L.substring(8).toLowerCase(),"_");e.element.dataset[j]=S.value,e.invalidateLayout()}),e.rect.element.hidden)return;e.rect.element.width!==e.ref.widthPrevious&&(e.ref.widthPrevious=e.rect.element.width,e.ref.widthUpdated());let o=e.ref.bounds;o||(o=e.ref.bounds=JAt(e),e.element.removeChild(e.ref.measure),e.ref.measure=null);const{hopper:i,label:r,list:s,panel:a}=e.ref;i&&i.updateHopperState();const l=e.query("GET_PANEL_ASPECT_RATIO"),d=e.query("GET_ALLOW_MULTIPLE"),u=e.query("GET_TOTAL_ITEMS"),f=d?e.query("GET_MAX_FILES")||YAt:1,p=u===f,v=n.find(L=>L.type==="DID_ADD_ITEM");if(p&&v){const L=v.data.interactionMethod;r.opacity=0,d?r.translateY=-40:L===Wc.API?r.translateX=40:L===Wc.BROWSE?r.translateY=40:r.translateY=30}else p||(r.opacity=1,r.translateX=0,r.translateY=0);const _=ZAt(e),k=KAt(e),C=r.rect.element.height,$=!d||p?0:C,E=p?s.rect.element.marginTop:0,P=u===0?0:s.rect.element.marginBottom,I=$+E+k.visual+P,O=$+E+k.bounds+P;if(s.translateY=Math.max(0,$-s.rect.element.marginTop)-_.top,l){const L=e.rect.element.width,S=L*l;l!==e.ref.previousAspectRatio&&(e.ref.previousAspectRatio=l,e.ref.updateHistory=[]);const j=e.ref.updateHistory;j.push(L);const M=2;if(j.length>M*2){const B=j.length,V=B-10;let G=0;for(let Q=B;Q>=V;Q--)if(j[Q]===j[Q-2]&&G++,G>=M)return}a.scalable=!1,a.height=S;const q=S-$-(P-_.bottom)-(p?E:0);k.visual>q?s.overflow=q:s.overflow=null,e.height=S}else if(o.fixedHeight){a.scalable=!1;const L=o.fixedHeight-$-(P-_.bottom)-(p?E:0);k.visual>L?s.overflow=L:s.overflow=null}else if(o.cappedHeight){const L=I>=o.cappedHeight,S=Math.min(o.cappedHeight,I);a.scalable=!0,a.height=L?S:S-_.top-_.bottom;const j=S-$-(P-_.bottom)-(p?E:0);I>o.cappedHeight&&k.visual>j?s.overflow=j:s.overflow=null,e.height=Math.min(o.cappedHeight,O-_.top-_.bottom)}else{const L=u>0?_.top+_.bottom:0;a.scalable=!0,a.height=Math.max(C,I-L),e.height=Math.max(C,O-L)}e.ref.credits&&a.heightCurrent&&(e.ref.credits.style.transform=`translateY(${a.heightCurrent}px)`)},ZAt=e=>{const t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},KAt=e=>{let t=0,n=0;const o=e.ref.list,i=o.childViews[0],r=i.childViews.filter(E=>E.rect.element.height),s=e.query("GET_ACTIVE_ITEMS").map(E=>r.find(P=>P.id===E.id)).filter(E=>E);if(s.length===0)return{visual:t,bounds:n};const a=i.rect.element.width,l=ML(i,s,o.dragCoordinates),d=s[0].rect.element,u=d.marginTop+d.marginBottom,f=d.marginLeft+d.marginRight,p=d.width+f,v=d.height+u,_=typeof l<"u"&&l>=0?1:0,k=s.find(E=>E.markedForRemoval&&E.opacity<.45)?-1:0,C=s.length+_+k,$=LL(a,p);return $===1?s.forEach(E=>{const P=E.rect.element.height+u;n+=P,t+=P*E.opacity}):(n=Math.ceil(C/$)*v,t=n),{visual:t,bounds:n}},JAt=e=>{const t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:t===0?null:t}},zL=(e,t)=>{const n=e.query("GET_ALLOW_REPLACE"),o=e.query("GET_ALLOW_MULTIPLE"),i=e.query("GET_TOTAL_ITEMS");let r=e.query("GET_MAX_FILES");const s=t.length;return!o&&s>1?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Hr("warning",0,"Max files")}),!0):(r=o?r:1,!o&&n?!1:Qy(r)&&i+s>r?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Hr("warning",0,"Max files")}),!0):!1)},XAt=(e,t,n)=>{const o=e.childViews[0];return ML(o,t,{left:n.scopeLeft-o.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},qq=e=>{const t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),o=t&&!n;if(o&&!e.ref.hopper){const i=NAt(e.element,r=>{const s=e.query("GET_BEFORE_DROP_FILE")||(()=>!0);return e.query("GET_DROP_VALIDATION")?r.every(l=>Cg("ALLOW_HOPPER_ITEM",l,{query:e.query}).every(d=>d===!0)&&s(l)):!0},{filterItems:r=>{const s=e.query("GET_IGNORED_FILES");return r.filter(a=>O1(a)?!s.includes(a.name.toLowerCase()):!0)},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});i.onload=(r,s)=>{const l=e.ref.list.childViews[0].childViews.filter(u=>u.rect.element.height),d=e.query("GET_ACTIVE_ITEMS").map(u=>l.find(f=>f.id===u.id)).filter(u=>u);Dd("ADD_ITEMS",r,{dispatch:e.dispatch}).then(u=>{if(zL(e,u))return!1;e.dispatch("ADD_ITEMS",{items:u,index:XAt(e.ref.list,d,s),interactionMethod:Wc.DROP})}),e.dispatch("DID_DROP",{position:s}),e.dispatch("DID_END_DRAG",{position:s})},i.ondragstart=r=>{e.dispatch("DID_START_DRAG",{position:r})},i.ondrag=zae(r=>{e.dispatch("DID_DRAG",{position:r})}),i.ondragend=r=>{e.dispatch("DID_END_DRAG",{position:r})},e.ref.hopper=i,e.ref.drip=e.appendChildView(e.createChildView(iAt))}else!o&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},Yq=(e,t)=>{const n=e.query("GET_ALLOW_BROWSE"),o=e.query("GET_DISABLED"),i=n&&!o;i&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(GPt,{...t,onload:r=>{Dd("ADD_ITEMS",r,{dispatch:e.dispatch}).then(s=>{if(zL(e,s))return!1;e.dispatch("ADD_ITEMS",{items:s,index:-1,interactionMethod:Wc.BROWSE})})}}),0):!i&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},Wq=e=>{const t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),o=t&&!n;o&&!e.ref.paster?(e.ref.paster=FAt(),e.ref.paster.onload=i=>{Dd("ADD_ITEMS",i,{dispatch:e.dispatch}).then(r=>{if(zL(e,r))return!1;e.dispatch("ADD_ITEMS",{items:r,index:-1,interactionMethod:Wc.PASTE})})}):!o&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},QAt=Ga({DID_SET_ALLOW_BROWSE:({root:e,props:t})=>{Yq(e,t)},DID_SET_ALLOW_DROP:({root:e})=>{qq(e)},DID_SET_ALLOW_PASTE:({root:e})=>{Wq(e)},DID_SET_DISABLED:({root:e,props:t})=>{qq(e),Wq(e),Yq(e,t),e.query("GET_DISABLED")?e.element.dataset.disabled="disabled":e.element.removeAttribute("data-disabled")}}),eDt=rs({name:"root",read:({root:e})=>{e.ref.measure&&(e.ref.measureHeight=e.ref.measure.offsetHeight)},create:WAt,write:GAt,destroy:({root:e})=>{e.ref.paster&&e.ref.paster.destroy(),e.ref.hopper&&e.ref.hopper.destroy(),e.element.removeEventListener("touchmove",o$),e.element.removeEventListener("gesturestart",o$)},mixins:{styles:["height"]}}),tDt=(e={})=>{let t=null;const n=t$(),o=vEt(nIt(n),[kIt,rIt(n)],[YIt,iIt(n)]);o.dispatch("SET_OPTIONS",{options:e});const i=()=>{document.hidden||o.dispatch("KICK")};document.addEventListener("visibilitychange",i);let r=null,s=!1,a=!1,l=null,d=null;const u=()=>{s||(s=!0),clearTimeout(r),r=setTimeout(()=>{s=!1,l=null,d=null,a&&(a=!1,o.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",u);const f=eDt(o,{id:PL()});let p=!1,v=!1;const _={_read:()=>{s&&(d=window.innerWidth,l||(l=d),!a&&d!==l&&(o.dispatch("DID_START_RESIZE"),a=!0)),v&&p&&(p=f.element.offsetParent===null),!p&&(f._read(),v=f.rect.element.hidden)},_write:Y=>{const Z=o.processActionQueue().filter(se=>!/^SET_/.test(se.type));p&&!Z.length||(E(Z),p=f._write(Y,Z,a),lIt(o.query("GET_ITEMS")),p&&o.processDispatchQueue())}},k=Y=>Z=>{const se={type:Y};if(!Z)return se;if(Z.hasOwnProperty("error")&&(se.error=Z.error?{...Z.error}:null),Z.status&&(se.status={...Z.status}),Z.file&&(se.output=Z.file),Z.source)se.file=Z.source;else if(Z.item||Z.id){const ce=Z.item?Z.item:o.query("GET_ITEM",Z.id);se.file=ce?bl(ce):null}return Z.items&&(se.items=Z.items.map(bl)),/progress/.test(Y)&&(se.progress=Z.progress),Z.hasOwnProperty("origin")&&Z.hasOwnProperty("target")&&(se.origin=Z.origin,se.target=Z.target),se},C={DID_DESTROY:k("destroy"),DID_INIT:k("init"),DID_THROW_MAX_FILES:k("warning"),DID_INIT_ITEM:k("initfile"),DID_START_ITEM_LOAD:k("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:k("addfileprogress"),DID_LOAD_ITEM:k("addfile"),DID_THROW_ITEM_INVALID:[k("error"),k("addfile")],DID_THROW_ITEM_LOAD_ERROR:[k("error"),k("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[k("error"),k("removefile")],DID_PREPARE_OUTPUT:k("preparefile"),DID_START_ITEM_PROCESSING:k("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:k("processfileprogress"),DID_ABORT_ITEM_PROCESSING:k("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:k("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:k("processfiles"),DID_REVERT_ITEM_PROCESSING:k("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[k("error"),k("processfile")],DID_REMOVE_ITEM:k("removefile"),DID_UPDATE_ITEMS:k("updatefiles"),DID_ACTIVATE_ITEM:k("activatefile"),DID_REORDER_ITEMS:k("reorderfiles")},$=Y=>{const Z={pond:X,...Y};delete Z.type,f.element.dispatchEvent(new CustomEvent(`FilePond:${Y.type}`,{detail:Z,bubbles:!0,cancelable:!0,composed:!0}));const se=[];Y.hasOwnProperty("error")&&se.push(Y.error),Y.hasOwnProperty("file")&&se.push(Y.file);const ce=["type","error","file"];Object.keys(Y).filter(ee=>!ce.includes(ee)).forEach(ee=>se.push(Y[ee])),X.fire(Y.type,...se);const te=o.query(`GET_ON${Y.type.toUpperCase()}`);te&&te(...se)},E=Y=>{Y.length&&Y.filter(Z=>C[Z.type]).forEach(Z=>{const se=C[Z.type];(Array.isArray(se)?se:[se]).forEach(ce=>{Z.type==="DID_INIT_ITEM"?$(ce(Z.data)):setTimeout(()=>{$(ce(Z.data))},0)})})},P=Y=>o.dispatch("SET_OPTIONS",{options:Y}),I=Y=>o.query("GET_ACTIVE_ITEM",Y),O=Y=>new Promise((Z,se)=>{o.dispatch("REQUEST_ITEM_PREPARE",{query:Y,success:ce=>{Z(ce)},failure:ce=>{se(ce)}})}),L=(Y,Z={})=>new Promise((se,ce)=>{M([{source:Y,options:Z}],{index:Z.index}).then(te=>se(te&&te[0])).catch(ce)}),S=Y=>Y.file&&Y.id,j=(Y,Z)=>(typeof Y=="object"&&!S(Y)&&!Z&&(Z=Y,Y=void 0),o.dispatch("REMOVE_ITEM",{...Z,query:Y}),o.query("GET_ACTIVE_ITEM",Y)===null),M=(...Y)=>new Promise((Z,se)=>{const ce=[],te={};if(S6(Y[0]))ce.push.apply(ce,Y[0]),Object.assign(te,Y[1]||{});else{const ee=Y[Y.length-1];typeof ee=="object"&&!(ee instanceof Blob)&&Object.assign(te,Y.pop()),ce.push(...Y)}o.dispatch("ADD_ITEMS",{items:ce,index:te.index,interactionMethod:Wc.API,success:Z,failure:se})}),q=()=>o.query("GET_ACTIVE_ITEMS"),B=Y=>new Promise((Z,se)=>{o.dispatch("REQUEST_ITEM_PROCESSING",{query:Y,success:ce=>{Z(ce)},failure:ce=>{se(ce)}})}),V=(...Y)=>{const Z=Array.isArray(Y[0])?Y[0]:Y,se=Z.length?Z:q();return Promise.all(se.map(O))},G=(...Y)=>{const Z=Array.isArray(Y[0])?Y[0]:Y;if(!Z.length){const se=q().filter(ce=>!(ce.status===fo.IDLE&&ce.origin===xs.LOCAL)&&ce.status!==fo.PROCESSING&&ce.status!==fo.PROCESSING_COMPLETE&&ce.status!==fo.PROCESSING_REVERT_ERROR);return Promise.all(se.map(B))}return Promise.all(Z.map(B))},Q=(...Y)=>{const Z=Array.isArray(Y[0])?Y[0]:Y;let se;typeof Z[Z.length-1]=="object"?se=Z.pop():Array.isArray(Y[0])&&(se=Y[1]);const ce=q();return Z.length?Z.map(ee=>_1(ee)?ce[ee]?ce[ee].id:null:ee).filter(ee=>ee).map(ee=>j(ee,se)):Promise.all(ce.map(ee=>j(ee,se)))},X={...I6(),..._,...oIt(o,n),setOptions:P,addFile:L,addFiles:M,getFile:I,processFile:B,prepareFile:O,removeFile:j,moveFile:(Y,Z)=>o.dispatch("MOVE_ITEM",{query:Y,index:Z}),getFiles:q,processFiles:G,removeFiles:Q,prepareFiles:V,sort:Y=>o.dispatch("SORT",{compare:Y}),browse:()=>{var Y=f.element.querySelector("input[type=file]");Y&&Y.click()},destroy:()=>{X.fire("destroy",f.element),o.dispatch("ABORT_ALL"),f._destroy(),window.removeEventListener("resize",u),document.removeEventListener("visibilitychange",i),o.dispatch("DID_DESTROY")},insertBefore:Y=>gq(f.element,Y),insertAfter:Y=>vq(f.element,Y),appendTo:Y=>Y.appendChild(f.element),replaceElement:Y=>{gq(f.element,Y),Y.parentNode.removeChild(Y),t=Y},restoreElement:()=>{t&&(vq(t,f.element),f.element.parentNode.removeChild(f.element),t=null)},isAttachedTo:Y=>f.element===Y||t===Y,element:{get:()=>f.element},status:{get:()=>o.query("GET_STATUS")}};return o.dispatch("DID_INIT"),Zm(X)},Uae=(e={})=>{const t={};return Pr(t$(),(o,i)=>{t[o]=i[0]}),tDt({...t,...e})},nDt=e=>e.charAt(0).toLowerCase()+e.slice(1),oDt=e=>Fae(e.replace(/^data-/,"")),Bae=(e,t)=>{Pr(t,(n,o)=>{Pr(e,(i,r)=>{const s=new RegExp(n);if(!s.test(i)||(delete e[i],o===!1))return;if(Ba(o)){e[o]=r;return}const l=o.group;Ns(o)&&!e[l]&&(e[l]={}),e[l][nDt(i.replace(s,""))]=r}),o.mapping&&Bae(e[o.group],o.mapping)})},iDt=(e,t={})=>{const n=[];Pr(e.attributes,i=>{n.push(e.attributes[i])});const o=n.filter(i=>i.name).reduce((i,r)=>{const s=$s(e,r.name);return i[oDt(r.name)]=s===r.name?!0:s,i},{});return Bae(o,t),o},rDt=(e,t={})=>{const n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};Cg("SET_ATTRIBUTE_TO_OPTION_MAP",n);const o={...t},i=iDt(e.nodeName==="FIELDSET"?e.querySelector("input[type=file]"):e,n);Object.keys(i).forEach(s=>{Ns(i[s])?(Ns(o[s])||(o[s]={}),Object.assign(o[s],i[s])):o[s]=i[s]}),o.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map(s=>({source:s.value,options:{type:s.dataset.type}})));const r=Uae(o);return e.files&&Array.from(e.files).forEach(s=>{r.addFile(s)}),r.replaceElement(e),r},sDt=(...e)=>gEt(e[0])?rDt(...e):Uae(...e),aDt=["fire","_read","_write"],Gq=e=>{const t={};return dae(e,t,aDt),t},lDt=(e,t)=>e.replace(/(?:{([a-zA-Z]+)})/g,(n,o)=>t[o]),cDt=e=>{const t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),o=new Worker(n);return{transfer:(i,r)=>{},post:(i,r,s)=>{const a=PL();o.onmessage=l=>{l.data.id===a&&r(l.data.message)},o.postMessage({id:a,message:i},s)},terminate:()=>{o.terminate(),URL.revokeObjectURL(n)}}},dDt=e=>new Promise((t,n)=>{const o=new Image;o.onload=()=>{t(o)},o.onerror=i=>{n(i)},o.src=e}),Hae=(e,t)=>{const n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},uDt=e=>Hae(e,e.name),Zq=[],hDt=e=>{if(Zq.includes(e))return;Zq.push(e);const t=e({addFilter:dIt,utils:{Type:Wt,forin:Pr,isString:Ba,isFile:O1,toNaturalFileSize:wae,replaceInString:lDt,getExtensionFromFilename:P6,getFilenameWithoutExtension:yae,guesstimateMimeType:Oae,getFileFromBlob:iy,getFilenameFromURL:X3,createRoute:Ga,createWorker:cDt,createView:rs,createItemAPI:bl,loadImage:dDt,copyFile:uDt,renameFile:Hae,createBlob:gae,applyFilterChain:Dd,text:Vr,getNumericAspectRatioFromString:fae},views:{fileActionButton:kae}});uIt(t.options)},fDt=()=>Object.prototype.toString.call(window.operamini)==="[object OperaMini]",mDt=()=>"Promise"in window,pDt=()=>"slice"in Blob.prototype,gDt=()=>"URL"in window&&"createObjectURL"in window.URL,vDt=()=>"visibilityState"in document,_Dt=()=>"performance"in window,yDt=()=>"supports"in(window.CSS||{}),bDt=()=>/MSIE|Trident/.test(window.navigator.userAgent),UP=(()=>{const e=iae()&&!fDt()&&vDt()&&mDt()&&pDt()&&gDt()&&_Dt()&&(yDt()||bDt());return()=>e})(),am={apps:[]},kDt="filepond",Sg=()=>{};let i$={},_4=Sg,ET=Sg,Kq=Sg,Jq=Sg,BP=Sg,Xq=Sg,Qq=Sg;if(UP()){BEt(()=>{am.apps.forEach(n=>n._read())},n=>{am.apps.forEach(o=>o._write(n))});const e=()=>{document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:UP,create:_4,destroy:ET,parse:Kq,find:Jq,registerPlugin:BP,setOptions:Qq}})),document.removeEventListener("DOMContentLoaded",e)};document.readyState!=="loading"?setTimeout(()=>e(),0):document.addEventListener("DOMContentLoaded",e);const t=()=>Pr(t$(),(n,o)=>{i$[n]=o[1]});i$={},t(),_4=(...n)=>{const o=sDt(...n);return o.on("destroy",ET),am.apps.push(o),Gq(o)},ET=n=>{const o=am.apps.findIndex(i=>i.isAttachedTo(n));return o>=0?(am.apps.splice(o,1)[0].restoreElement(),!0):!1},Kq=n=>Array.from(n.querySelectorAll(`.${kDt}`)).filter(r=>!am.apps.find(s=>s.isAttachedTo(r))).map(r=>_4(r)),Jq=n=>{const o=am.apps.find(i=>i.isAttachedTo(n));return o?Gq(o):null},BP=(...n)=>{n.forEach(hDt),t()},Xq=()=>{const n={};return Pr(t$(),(o,i)=>{n[o]=i[0]}),n},Qq=n=>(Ns(n)&&(am.apps.forEach(o=>{o.setOptions(n)}),hIt(n)),Xq())}/*! * vue-filepond v7.0.4 * A handy FilePond adapter component for Vue * * Copyright (c) 2023 PQINA * https://pqina.nl/filepond * * Licensed under the MIT license. */const wDt=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"],$Dt=UP(),CDt=e=>({string:String,boolean:Boolean,array:Array,function:Function,int:Number,serverapi:Object,object:Object})[e],a8={},IT=[],PT=[];let SDt={};const UL=(...e)=>{BP(...e),IT.length=0;for(const t in i$){if(/^on/.test(t)){IT.push(t);continue}let n=[String,CDt(i$[t])];t=="labelFileProcessingError"&&n.push(Function),a8[t]={type:n,default:void 0}}return{name:"FilePond",props:a8,render(){const t=Object.entries({id:this.id,name:this.name,type:"file",class:this.className,required:this.required,multiple:this.allowMultiple,accept:this.acceptedFileTypes,capture:this.captureMethod}).reduce((n,[o,i])=>(i!==void 0&&(n[o]=i),n),{});return tu("div",{class:{"filepond--wrapper":!0}},[tu("input",t)])},created(){this.watchers=Object.keys(a8).map(t=>this.$watch(t,n=>{this._pond&&(this._pond[t]=n)}))},mounted(){if(!$Dt)return;this._element=this.$el.querySelector("input");const t=IT.reduce((o,i)=>(o[i]=(...r)=>{this.$emit("input",this._pond?this._pond.getFiles():[]),this.$emit(i.substr(2),...r)},o),{}),n={};Object.keys(a8).forEach(o=>{this[o]!==void 0&&(n[o]=this[o])}),this._pond=_4(this._element,Object.assign({},SDt,t,n)),Object.keys(this._pond).filter(o=>!wDt.includes(o)).forEach(o=>{this[o]=this._pond[o]}),PT.push(this._pond)},beforeUnmount(){const{detached:t}=this.$options;if(!this.$el.offsetParent){t.call(this);return}const n=(i,r)=>{const a=((i[0]||{}).removedNodes||[])[0];!a||!a.contains(this.$el)||(r.disconnect(),t.call(this))};new MutationObserver(n).observe(document.documentElement,{childList:!0,subtree:!0})},detached(){if(this.watchers.forEach(n=>n()),!this._pond)return;this._pond.destroy();const t=PT.indexOf(this._pond);t>=0&&PT.splice(t,1),this._pond=null}}};/*! * FilePondPluginFileValidateSize 2.2.8 * Licensed under MIT, https://opensource.org/licenses/MIT/ * Please visit https://pqina.nl/filepond/ for details. */const BL=({addFilter:e,utils:t})=>{const{Type:n,replaceInString:o,toNaturalFileSize:i}=t;return e("ALLOW_HOPPER_ITEM",(r,{query:s})=>{if(!s("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;const a=s("GET_MAX_FILE_SIZE");if(a!==null&&r.size>a)return!1;const l=s("GET_MIN_FILE_SIZE");return!(l!==null&&r.size<l)}),e("LOAD_FILE",(r,{query:s})=>new Promise((a,l)=>{if(!s("GET_ALLOW_FILE_SIZE_VALIDATION"))return a(r);const d=s("GET_FILE_VALIDATE_SIZE_FILTER");if(d&&!d(r))return a(r);const u=s("GET_MAX_FILE_SIZE");if(u!==null&&r.size>u){l({status:{main:s("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:o(s("GET_LABEL_MAX_FILE_SIZE"),{filesize:i(u,".",s("GET_FILE_SIZE_BASE"),s("GET_FILE_SIZE_LABELS",s))})}});return}const f=s("GET_MIN_FILE_SIZE");if(f!==null&&r.size<f){l({status:{main:s("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:o(s("GET_LABEL_MIN_FILE_SIZE"),{filesize:i(f,".",s("GET_FILE_SIZE_BASE"),s("GET_FILE_SIZE_LABELS",s))})}});return}const p=s("GET_MAX_TOTAL_FILE_SIZE");if(p!==null&&s("GET_ACTIVE_ITEMS").reduce((_,k)=>_+k.fileSize,0)>p){l({status:{main:s("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:o(s("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:i(p,".",s("GET_FILE_SIZE_BASE"),s("GET_FILE_SIZE_LABELS",s))})}});return}a(r)})),{options:{allowFileSizeValidation:[!0,n.BOOLEAN],maxFileSize:[null,n.INT],minFileSize:[null,n.INT],maxTotalFileSize:[null,n.INT],fileValidateSizeFilter:[null,n.FUNCTION],labelMinFileSizeExceeded:["File is too small",n.STRING],labelMinFileSize:["Minimum file size is {filesize}",n.STRING],labelMaxFileSizeExceeded:["File is too large",n.STRING],labelMaxFileSize:["Maximum file size is {filesize}",n.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",n.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",n.STRING]}}},TDt=typeof window<"u"&&typeof window.document<"u";TDt&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:BL}));const EDt={components:{SmallPieChart:eae,AppIcon:Ue},props:{numberOfProducts:Number,badge:Number,isOnlyBadge1:{type:Boolean,default:!1}},data(){return{authorLevelStructureLink:ks.author.levelStructure}},computed:{numberOfProductsNeeded(){return this.badge===1?!1:this.isOnlyBadge1?ru.badge_requirements[1].number_of_products:ru.badge_requirements[this.badge-1].number_of_products},numberOfMissingProducts(){return Math.max(0,this.numberOfProductsNeeded-this.numberOfProducts)}}},IDt={class:"row"},PDt={class:"col-12"},ADt={class:"h3 mb-3 d-flex align-items-center"},DDt={class:"col-12 mb-3"},xDt={class:"text-gray-600 mb-0"},ODt={key:0,class:"col-12 bg-light mt-3 p-3"},LDt={class:"row align-items-center"},MDt={class:"col-auto"},NDt={class:"col-auto"},RDt={key:0,class:"mb-0"},jDt={key:1,class:"mb-0"},FDt={key:2,class:"medium text-gray-600 mb-0"},zDt=["href"],UDt={key:3,class:"medium text-gray-600 mb-0"},BDt=["href"];function HDt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("SmallPieChart");return h(),g("div",IDt,[c("div",PDt,[c("h1",ADt,[Pt(e.$slots,"header"),b(s,{icon:"lock",width:"24",height:"24",class:"ms-icon"})])]),c("div",DDt,[c("p",xDt,[Pt(e.$slots,"text")])]),r.numberOfProductsNeeded?(h(),g("div",ODt,[c("div",LDt,[c("div",MDt,[b(a,{dividend:n.numberOfProducts,divisor:r.numberOfProductsNeeded,"background-color":"#F4F7FB","foreground-color":"white"},null,8,["dividend","divisor"])]),c("div",NDt,[n.isOnlyBadge1?(h(),g("p",RDt,m(e.$t("author.appeal.verified")),1)):(h(),g("p",jDt,m(e.$t("author.appeal.product_count",{count:r.numberOfMissingProducts})+" "+e.$tc("dashboard.author.add_more_products.products",r.numberOfMissingProducts)+"."),1)),n.badge===2||n.badge===3&&n.isOnlyBadge1?(h(),g("p",FDt,[z(m(e.$t("author.appeal.product_count_verified.0",{count:r.numberOfProductsNeeded}))+" ",1),c("a",{href:i.authorLevelStructureLink,target:"_blank",class:"text-gray-600 text-decoration-underline"},m(e.$t("author.appeal.product_count_verified.1")),9,zDt)])):D("",!0),n.badge===3&&!n.isOnlyBadge1?(h(),g("p",UDt,[z(m(e.$t("author.appeal.product_count_advanced.0",{count:r.numberOfProductsNeeded}))+" ",1),c("a",{href:i.authorLevelStructureLink,target:"_blank",class:"text-gray-600 text-decoration-underline"},m(e.$t("author.appeal.product_count_advanced.1")),9,BDt)])):D("",!0)])])])):D("",!0)])}const Tg=U(EDt,[["render",HDt]]);const eY=0,VDt=406,qDt={components:{TransitionCollapseHeight:qo},props:{editorConfig:{type:Object,default:Wa.editor},productCategories:Array,disabled:{type:Boolean,default:!1}},data(){return{categoryInfoLink:ks.author.category,test:0}},validations(){return{degree_of_education_length:{required:Yt,minValue:Ra(this.editorConfig.categories.degree_of_education.min_count),maxValue:Vd(this.editorConfig.categories.degree_of_education.max_count)},class_length:{required:Yt,minValue:Ra(this.editorConfig.categories.class.min_count),maxValue:Vd(this.editorConfig.categories.class.max_count)},subject_length:{required:Yt,minValue:Ra(this.editorConfig.categories.subject.min_count),maxValue:Vd(this.editorConfig.categories.subject.max_count)}}},methods:{chooseClass(e){let t=this.categories.filter(n=>n.type!=="class"&&n.type!=="subject"||n.id===e.id);this.toggleCategory(e,t)},chooseClassChild(e){this.toggleCategory(e)},isSelected(e){return!!this.categories.find(t=>t.id===e)},toggleCategory(e,t=null,n=!0){if(t||(t=this.categories),e&&this.isSelected(e.id)){let o=this.categories.findIndex(i=>i.id===e.id);o>-1&&n&&(t.splice(o,1),this.categories=t)}else t.push({id:e.id,parent_id:e.parent_id,type:e.type}),this.categories=t},canSelectClassChild(e){return this.isSelected(e.id)?!0:this.class_length<this.editorConfig.categories.class.max_count},canSelectSubjectChild(e){return this.isSelected(e.id)?!0:this.subject_length<this.editorConfig.categories.subject.max_count},selectReduce(e){if(e)return{id:e.id,parent_id:e.parent_id,type:e.type}},subjects(){if(this.classSubjects.length>0){let e=this.classSubjects.find(r=>r.id===this.chosenClass.id),t=[];e?t=e.children.reduce((r,s)=>s.children&&s.children.length>0?r.concat(s.children):r.concat(s),[]):t=this.allCategories.subject.filter(r=>r.id!=VDt);let n=t.filter(r=>!r.hidden_in_product_editor),o=t.filter(r=>r.hidden_in_product_editor),i=[];return o.forEach(r=>{i.push(...r.children)}),[...n,...i]}}},computed:{...Oe({allCategories:"category/getCategories",classSubjects:"category/getCategoriesClassSubject"}),categories:{get(){return this.productCategories},set(e){this.$emit("updateProductCategories",e)}},chosenClass(){if(this.categoriesByType.class.length>0){let e=this.categoriesByType.class[0],t=null;return e.parent_id?(this.categories.some(n=>n.id===e.parent_id)||this.toggleCategory(this.allCategories.class.find(n=>n.id===e.parent_id)),t=e.parent_id):t=e.id,this.allCategories.class.find(n=>n.id===t)}return null},chosenSubjects:{get(){let e=new Set;this.categoriesByType.subject.forEach(n=>{if(e.add(n.id),n.parent_id){let o=this.subjects().find(i=>i&&i.id===n.parent_id);o&&!o.hidden_in_product_editor&&(this.categories.some(i=>i.id===n.parent_id)||this.toggleCategory(this.subjects().find(i=>i&&i.id===n.parent_id)),e.add(n.parent_id))}});let t=this.subjects();return t?t.filter(n=>n&&e.has(n.id)):[]},set(e){let t=this.categories.filter(n=>n.type!=="subject");this.categories=[...t,...e]}},degree_of_education_length(){return this.categoriesByType.class.filter(e=>e.parent_id===eY||e.parent_id===null).length},class_length(){return this.categoriesByType.class.filter(e=>e.parent_id!==eY&&e.parent_id!==null).length},subject_length(){return this.categoriesByType.subject.length},categoriesByType(){return this.categories?{class:this.categories.filter(e=>e.type==="class"),subject:this.categories.filter(e=>e.type==="subject"),format:this.categories.filter(e=>e.type==="format"),theme:this.categories.filter(e=>e.type==="theme"),kind:this.categories.filter(e=>e.type==="kind")}:{}}},setup(){return{v$:Pn()}}},YDt={key:0},WDt={class:"fw-medium large mt-3 mb-0"},GDt={key:0,class:"text-danger mt-3"},ZDt={class:"d-flex flex-wrap mt-3"},KDt=["disabled","onClick"],JDt={key:0},XDt={key:0},QDt={class:"fw-medium large mt-3 mb-3"},ext={key:0,class:"text-danger mt-3"},txt={key:1,class:"text-danger mt-3"},nxt={class:"d-flex flex-wrap"},oxt=["onClick","disabled"],ixt={class:"fw-medium large mt-3 mb-3"},rxt={key:1,class:"text-danger mt-3 mb-3"},sxt={key:2,class:"text-danger mt-3 mb-3"},axt={class:"form-group form-floating mb-3"},lxt={for:"type",class:"small"},cxt={key:0},dxt={class:"fw-medium large mb-3"},uxt={class:"d-flex flex-wrap"},hxt=["onClick","disabled"];function fxt(e,t,n,o,i,r){const s=y("v-select"),a=y("TransitionCollapseHeight"),l=an("tooltip");return e.allCategories&&e.classSubjects?(h(),g("div",YDt,[Pt(e.$slots,"title",{},void 0,!0),Pt(e.$slots,"text",{},void 0,!0),c("p",WDt,m(e.$t("product.editor.categories.class")),1),o.v$.degree_of_education_length&&o.v$.degree_of_education_length.$error?(h(),g("div",GDt,m(e.$t("validation.counts.exactly",{what:e.$tc("validation.categories.degree_of_education",n.editorConfig.categories.degree_of_education.min_count,{count:n.editorConfig.categories.degree_of_education.min_count})})),1)):D("",!0),c("div",ZDt,[(h(!0),g(pe,null,Me(e.allCategories.class,d=>xe((h(),g("div",{key:d.id,class:"mb-3 me-2"},[c("button",{class:J(["btn select-badge py-1 px-2 fw-medium small",{active:r.isSelected(d.id)}]),disabled:n.disabled,onClick:u=>r.chooseClass(d)},m(d.name),11,KDt)])),[[l,{content:n.disabled?e.$t("category.edit.disabled"):null,delay:{show:500,hide:100},triggers:["hover","click"]}]])),128))]),b(a,null,{default:F(()=>[r.chosenClass?(h(),g("div",JDt,[r.chosenClass.children&&r.chosenClass.children.length>0?(h(),g("div",XDt,[c("p",QDt,[z(m(e.$t("product.editor.categories.class_child"))+" ",1),c("span",{class:J({"text-danger":o.v$.class_length&&o.v$.class_length.$error})},m("("+r.class_length+"/"+n.editorConfig.categories.class.max_count+")"),3)]),o.v$.class_length&&o.v$.class_length.$error&&o.v$.class_length.minValue.$invalid?(h(),g("div",ext,m(e.$t("validation.counts.at_least",{what:e.$tc("validation.categories.class",n.editorConfig.categories.class.min_count,{count:n.editorConfig.categories.class.min_count})})),1)):D("",!0),o.v$.class_length&&o.v$.class_length.$error&&o.v$.class_length.maxValue.$invalid?(h(),g("div",txt,m(e.$t("validation.counts.at_most",{what:e.$tc("validation.categories.class",n.editorConfig.categories.class.max_count,{count:n.editorConfig.categories.class.max_count})})),1)):D("",!0),c("div",nxt,[(h(!0),g(pe,null,Me(r.chosenClass.children,d=>xe((h(),g("div",{key:d.id,class:"mb-3 me-2"},[c("button",{class:J(["btn select-badge py-1 px-2 fw-medium small",{active:r.isSelected(d.id)}]),onClick:u=>r.chooseClassChild(d),disabled:!r.canSelectClassChild(d)||n.disabled},m(d.name),11,oxt)])),[[l,{content:n.disabled?e.$t("category.edit.disabled"):null,delay:{show:500,hide:100},triggers:["hover","click"]}]])),128))])])):D("",!0),c("p",ixt,[z(m(e.$t("product.editor.categories.subject"))+" ",1),c("span",{class:J({"text-danger":o.v$.subject_length&&o.v$.subject_length.$error})},m("("+r.subject_length+"/"+n.editorConfig.categories.subject.max_count+")"),3)]),o.v$.subject_length&&o.v$.subject_length.$error&&o.v$.subject_length.minValue.$invalid?(h(),g("div",rxt,m(e.$t("validation.counts.at_least",{what:e.$tc("validation.categories.subject",n.editorConfig.categories.subject.min_count,{count:n.editorConfig.categories.subject.min_count})})),1)):D("",!0),o.v$.subject_length&&o.v$.subject_length.$error&&o.v$.subject_length.maxValue.$invalid?(h(),g("div",sxt,m(e.$t("validation.counts.at_most",{what:e.$tc("validation.categories.subject",n.editorConfig.categories.subject.max_count,{count:n.editorConfig.categories.subject.max_count})})),1)):D("",!0),xe((h(),g("div",axt,[b(s,{id:"class-subject",label:"name",multiple:"",class:"form-control",modelValue:r.chosenSubjects,"onUpdate:modelValue":t[0]||(t[0]=d=>r.chosenSubjects=d),options:r.subjects(),reduce:r.selectReduce,placeholder:e.$t("filter.subject_placeholder"),"close-on-select":!0,"no-drop":r.subject_length===n.editorConfig.categories.subject.max_count,disabled:n.disabled},{"no-options":F(()=>[z(m(e.$t("filter.word_not_found")),1)]),option:F(d=>[z(m(d.name),1)]),_:1},8,["modelValue","options","reduce","placeholder","no-drop","disabled"]),c("label",lxt,m(e.$t("product.editor.categories.subject")),1)])),[[l,{content:n.disabled?e.$t("category.edit.disabled"):null,delay:{show:500,hide:100},triggers:["hover","click"]}]]),(h(!0),g(pe,null,Me(r.chosenSubjects,d=>(h(),g("div",{key:d.id},[d.children&&d.children.length>0?(h(),g("div",cxt,[c("p",dxt,m(e.$t("product.editor.required_categories.specify",{subject:d.name.toLowerCase()})),1),c("div",uxt,[(h(!0),g(pe,null,Me(d.children,u=>xe((h(),g("div",{key:u.id,class:"mb-3 me-2"},[c("button",{class:J(["btn select-badge py-1 px-2 fw-medium small",{active:r.isSelected(u.id)}]),onClick:f=>r.toggleCategory(u),disabled:!r.canSelectSubjectChild(u)||n.disabled},m(u.name),11,hxt)])),[[l,{content:n.disabled?e.$t("category.edit.disabled"):null,delay:{show:500,hide:100},triggers:["hover","click"]}]])),128))])])):D("",!0)]))),128))])):D("",!0)]),_:1})])):D("",!0)}const Vae=U(qDt,[["render",fxt],["__scopeId","data-v-fbc77b98"]]);const mxt={components:{AppIcon:Ue},props:{disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingPosition:{type:String,default:"before"},value:{type:Boolean,default:!1},id:{type:String,default:"primary"},tooltip:{type:String,default:null}},computed:{checkedValue:{get(){return this.value},set(e){this.loading||this.$emit("update:value",e)}}}},pxt=["for"],gxt=["disabled","id"];function vxt(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return h(),g("div",null,[xe((h(),g("label",{for:n.id+"_toggle",class:J([{active:r.checkedValue,"cursor-default":n.disabled},"toggle-button d-inline-flex flex-wrap align-items-center"])},[Pt(e.$slots,"textBefore",{},void 0,!0),b(nd,{name:"bounce"},{default:F(()=>[n.loading&&n.loadingPosition==="before"?(h(),W(s,{key:0,class:"text-primary me-icon position-relative",icon:"cog",spin:!0,height:"16",width:"16"})):D("",!0)]),_:1}),xe(c("input",{type:"checkbox",disabled:n.disabled,id:n.id+"_toggle","onUpdate:modelValue":t[0]||(t[0]=l=>r.checkedValue=l)},null,8,gxt),[[h3,r.checkedValue]]),t[1]||(t[1]=c("span",{class:"toggle-switch"},null,-1)),b(nd,{name:"bounce"},{default:F(()=>[n.loading&&n.loadingPosition==="after"?(h(),W(s,{key:0,class:"text-primary ms-icon",icon:"cog",spin:!0,height:"16",width:"16"})):D("",!0)]),_:1}),Pt(e.$slots,"textAfter",{},void 0,!0)],10,pxt)),[[a,{content:n.disabled?n.tooltip:null,delay:{show:500,hide:100},triggers:["hover","click"]}]])])}const eb=U(mxt,[["render",vxt],["__scopeId","data-v-5d96a6d4"]]),_xt={components:{ToggleButton:eb},props:{disabled:{type:Boolean,default:!1}},computed:{...Oe({product:"product/getProductData",auth:"auth/auth"}),is_hmat:{get(){return this.product.is_hmat},set(e){this.$store.dispatch("product/updateIsHmat",{isHmat:e})}}}},yxt={class:"ms-2"};function bxt(e,t,n,o,i,r){const s=y("ToggleButton");return h(),g("div",null,[b(s,{value:r.is_hmat,"onUpdate:value":t[0]||(t[0]=a=>r.is_hmat=a),disabled:n.disabled,tooltip:n.disabled?e.$t("category.edit.disabled"):null,id:"is_hmat"},{textAfter:F(()=>[c("span",yxt,m(e.$t("product.editor.hmat")),1)]),_:1},8,["value","disabled","tooltip"])])}const kxt=U(_xt,[["render",bxt]]),wxt={components:{ToggleButton:eb},props:{disabled:{type:Boolean,default:!1}},computed:{...Oe({product:"product/getProductData",auth:"auth/auth"}),is_mmat:{get(){return this.product.is_mmat},set(e){this.$store.dispatch("product/updateIsMmat",{isMmat:e})}}}},$xt={class:"ms-2"};function Cxt(e,t,n,o,i,r){const s=y("ToggleButton");return h(),g("div",null,[b(s,{value:r.is_mmat,"onUpdate:value":t[0]||(t[0]=a=>r.is_mmat=a),disabled:n.disabled,tooltip:n.disabled?e.$t("category.edit.disabled"):null,id:"is_mmat"},{textAfter:F(()=>[c("span",$xt,m(e.$t("product.editor.mmat")),1)]),_:1},8,["value","disabled","tooltip"])])}const Sxt=U(wxt,[["render",Cxt]]),Txt={components:{AccordionItem:Ml,ProductEditorIsHmatCheckbox:kxt,ProductEditorIsMmatCheckbox:Sxt},props:{editorConfig:{type:Object,default:Wa.editor},productCategories:Array,showHmatBox:{type:Boolean,default:!1},showMmatBox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data(){return{categoryTypes:["theme","kind","format","holiday"],searchText:{theme:"",kind:"",format:"",holiday:""},results:{theme:{},kind:{},format:{},holiday:{},init:!0}}},validations(){return{theme_length:{required:Yt,minValue:Ra(this.editorConfig.categories.theme.min_count),maxValue:Vd(this.editorConfig.categories.theme.max_count)},kind_length:{required:Yt,minValue:Ra(this.editorConfig.categories.kind.min_count),maxValue:Vd(this.editorConfig.categories.kind.max_count)},format_length:{required:Yt,minValue:Ra(this.editorConfig.categories.format.min_count),maxValue:Vd(this.editorConfig.categories.format.max_count)},holiday_length:{required:Yt,minValue:Ra(this.editorConfig.categories.holiday.min_count),maxValue:Vd(this.editorConfig.categories.holiday.max_count)}}},computed:{...Oe({allCategories:"category/getCategories",auth:"auth/auth"}),categories:{get(){return this.productCategories},set(e){this.v$.theme_length.$touch(),this.v$.kind_length.$touch(),this.v$.format_length.$touch(),this.v$.holiday_length.$touch(),this.$emit("updateProductCategories",e)}},theme_length(){return this.categoriesByType.theme.length},kind_length(){return this.categoriesByType.kind.length},format_length(){return this.categoriesByType.format.length},holiday_length(){return this.categoriesByType.holiday.length},categoriesByType(){return this.categories?{class:this.categories.filter(e=>e.type==="class"),subject:this.categories.filter(e=>e.type==="subject"),format:this.categories.filter(e=>e.type==="format"),theme:this.categories.filter(e=>e.type==="theme"),kind:this.categories.filter(e=>e.type==="kind"),holiday:this.categories.filter(e=>e.type==="holiday")}:{}}},methods:{isSelected(e){return!!this.categories.find(t=>t.id===e)},canSelectCategory(e){return!!(this.isSelected(e.id)||this[e.type+"_length"]<this.editorConfig.categories[e.type].max_count)},selectCategory(e){if(this.canSelectCategory(e))if(this.isSelected(e.id)){let t=this.categories.findIndex(n=>n.id===e.id);if(t>-1){let n=this.categories;n.splice(t,1),this.categories=n}}else{let t=this.categories;t.push({id:e.id,type:e.type,parent_id:e.parent_id}),this.categories=t}},accordionOpened(){this.searchText={theme:"",kind:"",format:"",holiday:""},this.results.init&&(this.results={...this.allCategories},this.init=!1)},prepareRegex(e){let t=window._.deburr(this.searchText[e].replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"));return new RegExp(t,"ig")},filteredCategories(e){if(this.allCategories[e]){if(this.searchText[e]){let t=this.prepareRegex(e),n=[];return this.allCategories[e].forEach(o=>{let i={...o};i.children=o.children.filter(r=>t.test(window._.deburr(r.name))),i.children.length>0&&n.push(i)}),n}return this.allCategories[e]}},filterItems(e){let t=this.filteredCategories(e);this.results[e]=t}},mounted(){this.filterItems=is.debounce(this.filterItems,50)},watch:{"searchText.theme"(){this.filterItems("theme")},"searchText.kind"(){this.filterItems("kind")},"searchText.format"(){this.filterItems("format")},"searchText.holiday"(){this.filterItems("holiday")}},setup(){return{v$:Pn()}}},Ext={key:0},Ixt=["onUpdate:modelValue","placeholder"],Pxt={class:"my-3"},Axt={key:0},Dxt={key:0},xxt={class:"text-gray-800 medium fw-medium mb-3"},Oxt={class:"d-flex flex-wrap"},Lxt=["disabled","onClick"],Mxt={key:1,class:"text-gray-700 medium mb-0"},Nxt={class:"d-flex gap-4"};function Rxt(e,t,n,o,i,r){const s=y("AccordionItem"),a=y("ProductEditorIsMmatCheckbox"),l=y("ProductEditorIsHmatCheckbox"),d=an("tooltip");return e.allCategories?(h(),g("div",Ext,[Pt(e.$slots,"title"),Pt(e.$slots,"text"),(h(!0),g(pe,null,Me(i.categoryTypes,u=>(h(),W(s,{id:"accordion",key:u,index:u,scroll:!1,class:J(["accordion-item",{"border-bottom-2":u!=i.categoryTypes[i.categoryTypes.length-1]}]),"use-open-title-background":!1,"body-padding-y":"0","body-padding-x":"0",onOpen:r.accordionOpened},{title:F(()=>[c("p",{class:J(["my-3",{"text-danger":o.v$[u+"_length"]&&o.v$[u+"_length"].$error}])},m(e.$tm("product.editor.categories")[u])+" "+m("("+r.categoriesByType[u].length+"/"+n.editorConfig.categories[u].max_count+")"),3)]),body:F(()=>[xe(c("input",{class:"form-control","onUpdate:modelValue":f=>i.searchText[u]=f,placeholder:e.$tm("product.editor.additional_categories.search")[u]},null,8,Ixt),[[wt,i.searchText[u]]]),c("div",Pxt,[i.results[u].length>0?(h(),g("div",Axt,[(h(!0),g(pe,null,Me(i.results[u],(f,p)=>(h(),g("div",{key:f.id,class:J({"mb-3":p!=i.results[u].length-1})},[f.children.length>0&&!f.hidden_in_product_editor?(h(),g("div",Dxt,[c("p",xxt,m(f.name),1),xe((h(),g("div",Oxt,[(h(!0),g(pe,null,Me(f.children.filter(v=>v.hidden_in_product_editor===!1),(v,_)=>(h(),g("button",{key:_,class:J(["btn select-badge small fw-medium px-2 py-1 text-gray-800 me-2dot5 mb-2dot5",{active:r.isSelected(v.id)}]),disabled:!r.canSelectCategory(v)||n.disabled,onClick:k=>r.selectCategory(v)},m(v.name),11,Lxt))),128))])),[[d,{content:n.disabled?e.$t("category.edit.disabled"):null,delay:{show:500,hide:100},triggers:["hover","click"]}]])])):D("",!0)],2))),128))])):(h(),g("p",Mxt,m(e.$t("filter.word_not_found")),1))])]),_:2},1032,["index","class","onOpen"]))),128)),c("div",Nxt,[n.showMmatBox&&(e.auth.is_mmat||e.auth.is_admin)?(h(),W(a,{key:0,disabled:n.disabled,class:"mt-3"},null,8,["disabled"])):D("",!0),n.showHmatBox&&(e.auth.is_hmat||e.auth.is_admin)?(h(),W(l,{key:1,disabled:n.disabled,class:"mt-3"},null,8,["disabled"])):D("",!0)])])):D("",!0)}const qae=U(Txt,[["render",Rxt]]),jxt={components:{AdditionalCategoriesEditor:qae,RequiredCategoriesEditor:Vae},props:{categories:{type:Array}},data(){return{promoEditorConfig:Wa.promo_product.editor}},methods:{updateCategories(e){this.$emit("updateCategories",e)}},mounted(){this.$store.dispatch("category/loadClassSubject"),this.$store.dispatch("category/load")}};function Fxt(e,t,n,o,i,r){const s=y("RequiredCategoriesEditor"),a=y("AdditionalCategoriesEditor");return h(),g("div",null,[b(s,{"editor-config":i.promoEditorConfig,"product-categories":n.categories,onUpdateProductCategories:r.updateCategories,ref:"requiredCategoriesEditor"},null,8,["editor-config","product-categories","onUpdateProductCategories"]),b(a,{"product-categories":n.categories,"editor-config":i.promoEditorConfig,onUpdateProductCategories:r.updateCategories},null,8,["product-categories","editor-config","onUpdateProductCategories"])])}const zxt=U(jxt,[["render",Fxt]]),Uxt={props:{dropSide:{type:String,default:"down"},menuAlign:{type:String,default:"start"},autoClose:{type:String,default:"true"}}},Bxt=["data-bs-toggle","data-bs-auto-close"];function Hxt(e,t,n,o,i,r){return h(),g("div",{class:J(["drop"+n.dropSide,n.dropSide==="end"||n.dropSide==="start"?"btn-group":""])},[c("div",{"data-bs-toggle":e.$slots.dropdown?"dropdown":"","aria-expanded":"false","data-bs-auto-close":n.autoClose,class:"cursor-pointer"},[Pt(e.$slots,"button")],8,Bxt),e.$slots.dropdown?(h(),g("div",{key:0,class:J(["dropdown-menu",["dropdown-menu-"+n.menuAlign]])},[Pt(e.$slots,"dropdown")],2)):D("",!0)],2)}const Eg=U(Uxt,[["render",Hxt]]);class HL{constructor(){this.type="service",this.name="",this.invisible=!1,this.noRecolor=!1,this.icon="",this.color="#333",this.template=()=>"",this.handlers=()=>{},this.stop=()=>{},this.supports=()=>!0}}let g0={};const Yae=e=>{const t={};for(const n in e)if(e.hasOwnProperty(n))if(typeof e[n]=="object"){const o=Yae(e[n]);for(const i in o)o.hasOwnProperty(i)&&(t[n+"."+i]=o[i])}else t[n]=e[n];return t},Vxt=e=>{g0=Yae(e)},Xl=(e,t)=>{try{let n=g0[e];return typeof t=="string"&&(t=[t]),t&&t.forEach((o,i)=>{n=n.replace(`$${i+1}$`,o)}),g0.helper&&typeof g0.helper=="function"&&(n=g0.helper(n)),n}catch{return""}},tY=e=>{if(!e)return[];const t=[];return typeof e=="string"?t.push(...Array.prototype.slice.call(document.querySelectorAll(e))):Array.isArray(e)?e.forEach(n=>{typeof n=="string"?t.push(...Array.prototype.slice.call(document.querySelectorAll(n))):t.push(n)}):t.push(e),t},nY=[],Tr=(e,t,n)=>{nY.find(i=>i.element===e&&i.type===t)||(e.addEventListener(t,n),nY.push({element:e,type:t}))},AT=e=>{if(window.requestAnimationFrame)return window.requestAnimationFrame(e);setTimeout(()=>{e(0)},100)},qxt=(e,t)=>new Promise(n=>{AT(()=>{const o=t.parentElement,i=t.getBoundingClientRect();if(!o)return;const r=o.getBoundingClientRect();i.height<i.width?(t.style.height=`${r.height}px`,t.style.width="auto"):(t.style.width=`${r.width}px`,t.style.height="auto"),AT(()=>{const s=t.getBoundingClientRect();s.height>r.height?(t.style.height=`${r.height}px`,t.style.width="auto"):s.width>r.width&&(t.style.width=`${r.width}px`,t.style.height="auto"),AT(()=>{const a=e.uppload.container.querySelector(".uppload-effect");a&&(a.style.opacity="1"),n()})})})}),Yxt=(e,t)=>new Promise(n=>{const o=URL.createObjectURL(e),i=document.createElement("canvas"),r=document.createElement("img"),s=t.maxSize||[t.maxWidth||1/0,t.maxHeight||1/0];r.src=o,r.onload=()=>{const a=t.compressionToMime||"image/jpeg",l=t.compression||1,d=r.width/r.height;r.width>s[0]&&(r.width=s[0],r.height=r.width*(1/d)),r.height>s[1]&&(r.height=s[1],r.width=r.height*d),i.width=r.width,i.height=r.height;const u=i.getContext("2d");if(!u)return n(e);u.clearRect(0,0,i.width,i.height),u.drawImage(r,0,0,i.width,i.height),y4(i,a,l).then(f=>{if(f)return n(f);n(e)})},Tr(r,"error",()=>n(e))}),Wxt=e=>{const t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(t.length),i=new Uint8Array(o);for(let r=0;r<t.length;r++)i[r]=t.charCodeAt(r);return new Blob([o],{type:n})},y4=(e,t,n)=>new Promise((o,i)=>{const r=e.getContext("2d");let s=!1;if(r)try{const a=r.getImageData(0,0,e.width,e.height).data;for(let l=0;l<a.length;l+=4)a[l+3]<255&&(s=!0)}catch{}if(s&&t!=="image/webp"&&(t=void 0,n=void 0),typeof e.toBlob=="function")e.toBlob(a=>{a&&o(a),i(new Error("errors.image_error"))},t,n);else if(typeof e.toDataURL=="function"){const a=e.toDataURL(t,n);o(Wxt(a))}else i(new Error("errors.image_error"))}),oY=(e,t)=>t.noRecolor?e:e.replace(/#000/g,t.color||"#000");var Wae=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],HP=Wae.join(","),VL=typeof Element>"u"?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function qL(e,t){t=t||{};var n=[],o=[],i=e.querySelectorAll(HP);t.includeContainer&&VL.call(e,HP)&&(i=Array.prototype.slice.apply(i),i.unshift(e));var r,s,a;for(r=0;r<i.length;r++)s=i[r],Gae(s)&&(a=Kae(s),a===0?n.push(s):o.push({documentOrder:r,tabIndex:a,node:s}));var l=o.sort(Jxt).map(function(d){return d.node}).concat(n);return l}qL.isTabbable=Gxt;qL.isFocusable=Kxt;function Gae(e){return!(!Zae(e)||tOt(e)||Kae(e)<0)}function Gxt(e){if(!e)throw new Error("No node provided");return VL.call(e,HP)===!1?!1:Gae(e)}function Zae(e){return!(e.disabled||Qxt(e)||iOt(e))}var Zxt=Wae.concat("iframe").join(",");function Kxt(e){if(!e)throw new Error("No node provided");return VL.call(e,Zxt)===!1?!1:Zae(e)}function Kae(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?Xxt(e)?0:e.tabIndex:t}function Jxt(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function Xxt(e){return e.contentEditable==="true"}function Jae(e){return e.tagName==="INPUT"}function Qxt(e){return Jae(e)&&e.type==="hidden"}function eOt(e){return Jae(e)&&e.type==="radio"}function tOt(e){return eOt(e)&&!oOt(e)}function nOt(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function oOt(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=nOt(t);return!n||n===e}function iOt(e){return e.offsetParent===null||getComputedStyle(e).visibility==="hidden"}var rOt=qL,sOt=lOt,aOt=Object.prototype.hasOwnProperty;function lOt(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var o in n)aOt.call(n,o)&&(e[o]=n[o])}return e}var iY=rOt,cOt=sOt,rY,sY=function(){var e=[];return{activateTrap:function(t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var o=e.indexOf(t);o===-1||e.splice(o,1),e.push(t)},deactivateTrap:function(t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}();function dOt(e,t){var n=document,o=typeof e=="string"?n.querySelector(e):e,i=cOt({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),r={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},s={activate:a,deactivate:l,pause:d,unpause:u};return s;function a(S){if(!r.active){O(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=n.activeElement;var j=S&&S.onActivate?S.onActivate:i.onActivate;return j&&j(),f(),s}}function l(S){if(r.active){clearTimeout(rY),p(),r.active=!1,r.paused=!1,sY.deactivateTrap(s);var j=S&&S.onDeactivate!==void 0?S.onDeactivate:i.onDeactivate;j&&j();var M=S&&S.returnFocus!==void 0?S.returnFocus:i.returnFocusOnDeactivate;return M&&aY(function(){L(k(r.nodeFocusedBeforeActivation))}),s}}function d(){r.paused||!r.active||(r.paused=!0,p())}function u(){!r.paused||!r.active||(r.paused=!1,O(),f())}function f(){if(r.active)return sY.activateTrap(s),rY=aY(function(){L(_())}),n.addEventListener("focusin",$,!0),n.addEventListener("mousedown",C,{capture:!0,passive:!1}),n.addEventListener("touchstart",C,{capture:!0,passive:!1}),n.addEventListener("click",I,{capture:!0,passive:!1}),n.addEventListener("keydown",E,{capture:!0,passive:!1}),s}function p(){if(r.active)return n.removeEventListener("focusin",$,!0),n.removeEventListener("mousedown",C,!0),n.removeEventListener("touchstart",C,!0),n.removeEventListener("click",I,!0),n.removeEventListener("keydown",E,!0),s}function v(S){var j=i[S],M=j;if(!j)return null;if(typeof j=="string"&&(M=n.querySelector(j),!M))throw new Error("`"+S+"` refers to no known node");if(typeof j=="function"&&(M=j(),!M))throw new Error("`"+S+"` did not return a node");return M}function _(){var S;if(v("initialFocus")!==null?S=v("initialFocus"):o.contains(n.activeElement)?S=n.activeElement:S=r.firstTabbableNode||v("fallbackFocus"),!S)throw new Error("Your focus-trap needs to have at least one focusable element");return S}function k(S){var j=v("setReturnFocus");return j||S}function C(S){if(!o.contains(S.target)){if(i.clickOutsideDeactivates){l({returnFocus:!iY.isFocusable(S.target)});return}i.allowOutsideClick&&i.allowOutsideClick(S)||S.preventDefault()}}function $(S){o.contains(S.target)||S.target instanceof Document||(S.stopImmediatePropagation(),L(r.mostRecentlyFocusedNode||_()))}function E(S){if(i.escapeDeactivates!==!1&&hOt(S)){S.preventDefault(),l();return}if(fOt(S)){P(S);return}}function P(S){if(O(),S.shiftKey&&S.target===r.firstTabbableNode){S.preventDefault(),L(r.lastTabbableNode);return}if(!S.shiftKey&&S.target===r.lastTabbableNode){S.preventDefault(),L(r.firstTabbableNode);return}}function I(S){i.clickOutsideDeactivates||o.contains(S.target)||i.allowOutsideClick&&i.allowOutsideClick(S)||(S.preventDefault(),S.stopImmediatePropagation())}function O(){var S=iY(o);r.firstTabbableNode=S[0]||_(),r.lastTabbableNode=S[S.length-1]||_()}function L(S){if(S!==n.activeElement){if(!S||!S.focus){L(_());return}S.focus(),r.mostRecentlyFocusedNode=S,uOt(S)&&S.select()}}}function uOt(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"}function hOt(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27}function fOt(e){return e.key==="Tab"||e.keyCode===9}function aY(e){return setTimeout(e,0)}var mOt=dOt;const pOt=Ol(mOt);function gOt(e){return e=e||Object.create(null),{on:function(n,o){(e[n]||(e[n]=[])).push(o)},off:function(n,o){e[n]&&e[n].splice(e[n].indexOf(o)>>>0,1)},emit:function(n,o){(e[n]||[]).slice().map(function(i){i(o)}),(e["*"]||[]).slice().map(function(i){i(n,o)})}}}const vOt=(e,t,n)=>{try{return new File([e],t||"file_name",{lastModified:(n||new Date).getTime(),type:e.type})}catch{return e}},lY=(e,t,n,o)=>({name:t,blob:e,lastModified:o,type:n}),DT=e=>{const t=e.blob;return e.lastModified=e.lastModified||new Date,vOt(t,e.name,e.lastModified)};class cY extends HL{constructor(){super(...arguments),this.name="default",this.invisible=!0,this.template=()=>`<p>${Xl("services.default.heading")}</p>`}}class dY extends HL{constructor(){super(...arguments),this.name="uploading",this.invisible=!0,this.template=()=>`<div class="uppload-loader"> <div></div> <p class="uppload-loader-text">${Xl("uploading")}<span class="progress"></span></p> </div>`}}class _Ot{constructor(t){this.services=[new cY,new dY],this.effects=[],this.isOpen=!1,this.activeService="default",this.activeEffect="",this.file={blob:new Blob},this.lang={},this.emitter=gOt(),this.uploadProgress=0,this.inline=!1,this.transitionDuration=300,this.settings={},this.updateSettings(t||{});const n=document.createElement("div");this.renderContainer(),n.classList.add("uppload-container");const o=document.body;o&&o.appendChild(n),this.container=n,this.focusTrap=pOt(this.container,{initialFocus:()=>this.container.querySelector("button")}),requestAnimationFrame(()=>this.update()),this.emitter.on("processing",()=>{const i=this.container.querySelector(".processing-loader");i&&i.classList.add("visible")}),this.emitter.on("process",()=>{const i=this.container.querySelector(".processing-loader");i&&i.classList.remove("visible")})}updateSettings(t){this.settings=Object.assign(Object.assign({},this.settings),t),this.emitter.emit("settingsUpdated",t),t.lang&&Vxt(t.lang),t.defaultService&&(this.activeService=t.defaultService),t.lang&&(this.lang=t.lang),t.transitionDuration&&(this.transitionDuration=t.transitionDuration),t.uploader&&(this.uploader=t.uploader),this.inline=!!t.inline,this.update()}ready(){this.settings.value&&this.bind(this.settings.value),this.renderContainer(),this.emitter.emit("ready")}bind(t){this.settings.bind&&(tY(this.settings.bind).forEach(o=>{o.nodeName==="IMG"?o.setAttribute("src",t):o.setAttribute("value",t)}),this.emitter.emit("bind"))}use(t){Array.isArray(t)?t.forEach(n=>this.install(n)):this.install(t)}remove(t){this.services=this.services.filter(n=>n.name!==t),this.effects=this.effects.filter(n=>n.name!==t),this.update(),this.emitter.emit("remove",t)}updatePlugins(t){const n=t(this.services),o=n.filter(s=>s.type==="service"),i=!!o.filter(s=>s.name==="default").length;!!o.filter(s=>s.name==="uploading").length||o.unshift(new dY),i||o.unshift(new cY),this.services=o,this.effects=n.filter(s=>s.type==="effect"),this.update()}install(t){t.supports()&&(t.type==="service"?(this.services.filter(o=>o.name===t.name).length||this.services.push(t),this.ready()):t.type==="effect"&&(this.effects.filter(o=>o.name===t.name).length||this.effects.push(t),this.ready()))}modalOpen(){return this.isOpen}open(){if(this.isOpen)return;this.isOpen=!0,this.file={blob:new Blob},this.activeService="default",this.activeEffect="";const t=this.container.querySelector(`input[type=radio][value='${this.activeService}']`);t&&t.setAttribute("checked","checked"),this.container.style.transition=`${this.transitionDuration}ms`,this.container.style.opacity="0",this.update();let n=this.settings.defaultService;this.services.length===3&&this.navigate(this.services[2].name),n&&this.navigate(n),Tr(document.body,"keyup",o=>{o.key==="Escape"&&this.open&&this.close()}),setTimeout(()=>{this.container.style.opacity="1"},1),this.emitter.emit("open")}close(){this.isOpen&&(this.stopCurrentService(),this.isOpen=!1,this.emitter.emit("close"),this.container.style.opacity="0",setTimeout(()=>this.update(),this.transitionDuration))}toggle(){this.modalOpen()?this.close():this.open()}update(){if(!this.container)return;this.hideHelp(),this.settings.customClass&&this.container.classList.add(this.settings.customClass),this.inline&&this.container.classList.add("uppload-inline");const t=this.container.querySelector(".uppload-active-container");t&&(t.innerHTML=this.render());const n=this.container.querySelector("aside");n&&this.activeService!=="default"&&!this.activeEffect&&(n.style.display="block");const o=this.container.querySelector(".effects-nav");n&&o&&this.activeEffect?(o.style.display="",n.style.display="none"):n&&o&&this.activeService==="default"?(n.style.display="none",o.style.display="none"):n&&o&&(n.style.display="",o.style.display="none");const i=this.container.querySelector(".uppload-effect");i&&(i.style.display=this.activeEffect?"":"none"),window.requestAnimationFrame(()=>this.handlers()),this.isOpen?(this.container.classList.add("visible"),this.focusTrap.activate()):(this.container.classList.remove("visible"),this.focusTrap.deactivate());const r=this.container.querySelector("footer.effects-nav .effects-tabs");if(r){const l=r.parentElement;if(l){let d=0;l.querySelectorAll(".effects-continue").forEach(p=>{const v=p.getBoundingClientRect();d+=v.width});const f=l.getBoundingClientRect();r.style.width=`${f.width-d}px`}}const s=this.container.querySelector("aside");s&&this.services.length===3&&s.classList.add("uppload-services--single");const a=this.container.querySelector(".uppload-help");a&&(a.classList.remove("visible"),Tr(a,"click",()=>this.hideHelp()))}getNavbar(t=!1){return`<${t?"nav":"div"} class="uppload-services"> ${this.services.filter(n=>!n.invisible).map(n=>`<div data-uppload-service="${n.name}" class="uppload-service-name"> ${t?`<input type="radio" id="uppload-service-radio-${n.name}" value="${n.name}" name="uppload-radio">`:""} <${t?`label for="uppload-service-radio-${n.name}"`:"button"} data-uppload-service="${n.name}"> ${n.icon.indexOf("http")===0?`<img class="service-icon" alt="" src="${n.icon}">`:oY(n.icon,n)} <span>${this.lang.services&&this.lang.services[n.name]&&this.lang.services[n.name].title?this.lang.services[n.name].title:n.name}</span> </${t?"label":"button"}> </div>`).join("")} </${t?"nav":"div"}>`}getEffectsNavbar(){return`<div class="effects-continue"> <button class="effects-continue--cancel">${Xl("cancel")}</button> </div><div class="effects-tabs"><div class="effects-tabs-flow"> ${this.effects.map(t=>` <input type="radio" id="uppload-effect-radio-${t.name}" value="${t.name}" name="uppload-effect-radio"> <label for="uppload-effect-radio-${t.name}"> ${t.icon.indexOf("http")===0?`<img class="effect-icon" alt="" src="${t.icon}">`:oY(t.icon,t)} <span>${this.lang.effects&&this.lang.effects[t.name]&&this.lang.effects[t.name].title?this.lang.effects[t.name].title:t.name}</span> </label> `).join("")} </div></div><div class="effects-continue"> <button class="effects-continue--upload">${Xl("upload")}</button> </div>`}renderContainer(){this.container&&(this.container.innerHTML=` <div class="uppload-modal"> <div class="processing-loader"></div> <aside style="display: none"> ${this.getNavbar(!0)} </aside> <section> ${this.error?`<div class="uppload-error">${this.error}</div>`:""} <div class="uppload-active-container"></div> <footer style="display: none" class="effects-nav">${this.getEffectsNavbar()}</footer> </section> <div class="uppload-help-loading"> <div class="uppload-loader"> <div></div> <p class="uppload-loader-text">${Xl("help.loading")}</p> </div> </div> <div class="uppload-help"> <div><button><span>${Xl("help.close")}</span><span aria-hidden="true">×</span></button></div> <iframe></iframe> </div> </div> <div class="uppload-modal-bg"> <button class="uppload-close" aria-label="${Xl("close")}">×</button> </div> `)}render(){return` ${this.error?`<div class="uppload-error">${this.error}</div>`:""} ${this.activeEffect?`<div class="uppload-effect uppload-effect--${this.activeEffect||"none"}"> ${this.activeEffect&&this.file?this.renderActiveEffect(this.file):""} </div>`:`<div class="uppload-service uppload-service--${this.activeService}"> ${this.activeEffect&&this.file?"":this.renderActiveService()} ${this.activeService==="default"?this.getNavbar():""} </div>`}`}renderActiveService(){const t=this.services.filter(n=>n.name===this.activeService);if(t.length){const n=t[0];return requestAnimationFrame(()=>{typeof n.handlers=="function"&&n.handlers({next:this.next.bind(this),upload:this.upload.bind(this),uploadMultiple:this.uploadMultiple.bind(this),handle:this.handle.bind(this),showHelp:this.showHelp.bind(this),uppload:this,translate:Xl})}),`${typeof n.template=="function"?n.template({translate:Xl,uppload:this}):""}`}}renderActiveEffect(t){const n=this.effects.filter(o=>o.name===this.activeEffect);if(n.length){const o=n[0];return requestAnimationFrame(()=>{typeof o.handlers=="function"&&o.handlers({next:this.next.bind(this),upload:this.upload.bind(this),uploadMultiple:this.uploadMultiple.bind(this),handle:this.handle.bind(this),showHelp:this.showHelp.bind(this),uppload:this,translate:Xl})}),` <div class="active-effect-container">${typeof o.template=="function"?o.template({file:t,translate:Xl}):""}</div> `}}uploadMultiple(t){return this.emitter.emit("before-upload"),new Promise(n=>{this.navigate("uploading"),this.uploader&&typeof this.uploader=="function"?this.uploader(t,this.updateProgress.bind(this)).then(o=>{this.navigate("default"),n(o),this.emitter.emit("upload",o),this.close()}).catch(o=>this.handle(o)):this.handle(new Error("no-uploader"))})}hideHelp(){const t=this.container.querySelector(".uppload-help"),n=this.container.querySelector(".uppload-help-loading"),o=this.container.querySelector("aside"),i=this.container.querySelector("section");n&&n.classList.remove("visible"),t&&t.classList.remove("visible"),o&&(o.style.display=""),i&&(i.style.display=""),this.emitter.emit("hide-help")}showHelp(t){this.emitter.emit("help",t);const n=this.container.querySelector("aside");n&&(n.style.display="none");const o=this.container.querySelector("section");o&&(o.style.display="none");const i=this.container.querySelector(".uppload-help-loading");i&&i.classList.add("visible");const r=this.container.querySelector(".uppload-help");if(r){const s=r.querySelector("iframe");s&&(s.setAttribute("src",`https://uppload.js.org/help${t}`),Tr(s,"load",()=>{r.classList.add("visible"),i&&i.classList.remove("visible")}),Tr(s,"error",()=>{this.hideHelp()}))}}next(t){if(this.emitter.emit("next",t),this.file=t,!this.activeEffect)if(this.effects.length&&t.type&&t.type.indexOf("image/")===0)this.activeEffect=this.effects[0].name,this.update();else return this.upload(DT(t));const n=this.container.querySelector(`input[name='uppload-effect-radio'][value='${this.activeEffect}']`);n&&n.setAttribute("checked","checked")}compress(t){return this.settings.compressionFromMimes&&this.settings.compressionFromMimes.indexOf(t.type)===-1?new Promise(n=>n(t)):typeof this.settings.compressor=="function"?this.settings.compressor(t):Yxt(t,this.settings)}upload(t){return this.emitter.emit("before-upload",t),new Promise((n,o)=>{this.navigate("uploading");let i=lY(t);try{typeof t.name=="string"&&(i=lY(t,t.name,t.type,new Date(t.lastModified)))}catch{}this.uploader&&typeof this.uploader=="function"?this.compress(t).then(r=>(this.settings.compression&&this.emitter.emit("compress",r),r)).then(r=>(i.blob=r,DT(i))).then(r=>this.uploader(r,this.updateProgress.bind(this))).then(r=>{this.bind(r),this.navigate("default"),n(r),this.emitter.emit("upload",r),this.close()}).catch(r=>this.handle(r)):o("no-uploader")})}handle(t){this.error=Xl(t.message)||t.message,this.emitter.emit("error",this.error),this.update(),this.activeService==="uploading"&&this.navigate("default"),setTimeout(()=>{this.error=void 0,this.update()},4e3)}handlers(){const t=()=>this.open(),n=()=>this.close();this.container.querySelectorAll(".uppload-service--default .uppload-service-name button").forEach(u=>{Tr(u,"click",p=>{const v=u.getAttribute("data-uppload-service");if(v){this.navigate(v);const k=this.container.querySelector(`[data-uppload-service="${v}"]`);if(k&&k.parentElement){let C=0,$=0;const E=k.getBoundingClientRect(),P=k.parentElement.getBoundingClientRect();C=E.top-P.top,$=E.left-P.left;const I=k.parentElement.parentElement;try{I&&I.scrollTo($,C)}catch{}}}const _=this.container.querySelector(`input[type=radio][value='${v}']`);return _&&_.setAttribute("checked","checked"),p.preventDefault(),!1})}),this.container.querySelectorAll(".uppload-services input[type='radio']").forEach(u=>{Tr(u,"change",p=>{const v=this.container.querySelector("[name='uppload-radio']:checked");if(!v)return;const _=v.value;this.navigate(_)})}),this.container.querySelectorAll(".effects-nav input[type='radio']").forEach(u=>{Tr(u,"change",p=>{const v=this.container.querySelector("[name='uppload-effect-radio']:checked");if(!v)return;const _=v.value;this.activeEffect=_,this.update()})});const s=this.container.querySelector(".uppload-modal-bg"),a=this.container.querySelector(".uppload-close");s&&!this.settings.disableModalClickClose?Tr(s,"click",n):a&&Tr(a,"click",n),this.settings.call&&tY(this.settings.call).forEach(f=>{Tr(f,"click",t)});const l=this.container.querySelector(".effects-continue--cancel");l&&Tr(l,"click",()=>{this.file={blob:new Blob},this.activeService="default",this.activeEffect="",this.update()});const d=this.container.querySelector(".effects-continue--upload");d&&Tr(d,"click",()=>{this.file&&(this.activeService="",this.activeEffect="",this.upload(DT(this.file)))})}stopCurrentService(){const t=this.services.filter(n=>n.name===this.activeService);t.length&&t[0].stop()}navigate(t){if(!this.services.filter(o=>o.name===t).length)throw new Error("invalid-service");this.stopCurrentService(),this.activeService=t,this.update();const n=this.container.querySelector(".uppload-active-container input, .uppload-active-container button");n&&n.focus()}on(t,n){return this.emitter.on(t,n)}off(t,n){return this.emitter.off(t,n)}updateProgress(t){this.uploadProgress=t;const n=this.container.querySelector(".uppload-loader-text .progress");n&&(n.innerHTML=`${parseInt(t.toString())}%`),this.emitter.emit("progress",this.updateProgress)}}class yOt{constructor(){this.type="effect",this.name="",this.invisible=!1,this.noRecolor=!1,this.color="#000",this.icon="",this.template=()=>"",this.handlers=()=>{},this.supports=()=>!0}}const uY={upload:"Upload",cancel:"Cancel",close:"Close",uploading:"Uploading...",uploaded:"Uploaded",fetching:"Getting your image from $1$...",poweredBy:"Powered by $1$",needHelp:"Need help?",units:{px:"px","%":"%",deg:"°"},errors:{response_not_ok:"We got an error fetching this file",unable_to_search:"We got an error searching",invalid_service_url:"This is not $A$ $1$ URL",invalid_url:"This URL seems to be invalid",upload_aborted:"Your upload was cancelled",upload_error:"We got an error uploading this file",file_type_not_allowed:"This file type is not allowed",file_too_large:"Your file should be smaller than $1$"},help:{loading:"Loading help...",close:"Close help"},services:{default:{heading:"Select an image"},local:{title:"Choose file",button:"Select a file",or:"or",drop:"Drop files here"},camera:{title:"Camera",button:"Click photo",switch:"Switch camera",waiting:"Waiting for permission...",unableToRead:"We're not able to read your camera's video. This may be because you didn't grant the required permission, or because your device doesn't support camera access."},microlink:{button:"Import from $1$",label:"$1$ $2$ URL",placeholder:"Enter $A$ $1$ $2$ URL",type:"post"},url:{title:"Direct URL",label:"Image URL",placeholder:"Enter an image URL"},instagram:{title:"Instagram"},facebook:{title:"Facebook"},flickr:{title:"Flickr",type:"photo"},ninegag:{title:"9GAG",type:"photo"},deviantart:{title:"DeviantArt"},artstation:{title:"ArtStation"},twitter:{title:"Twitter",type:"image tweet"},pinterest:{title:"Pinterest",type:"pin"},flipboard:{title:"Flipboard",type:"article"},fotki:{title:"Fotki",type:"photo"},linkedin:{title:"LinkedIn"},reddit:{title:"Reddit"},tumblr:{title:"Tumblr"},weheartit:{title:"We Heart It"},screenshot:{title:"Screenshot",button:"Take screenshot",label:"Webpage URL",placeholder:"Enter a webpage URL",loading:"Taking a screenshot..."},search:{button:"Search on $1$",label:"Find an image",placeholder:"Search for something",imagesPoweredBy:"Images powered by $1$"},giphy:{title:"GIPHY"},unsplash:{title:"Unsplash"},pixabay:{title:"Pixabay"},pexels:{title:"Pexels"}},effects:{preview:{title:"Preview"},filters:{title:"Filters"},crop:{title:"Crop",aspectRatios:{free:"Free",square:"Square"}},rotate:{title:"Rotate"},flip:{title:"Flip",buttons:{horizontal:"Horizontal",vertical:"Vertical"}},sharpen:{title:"Sharpen"},blur:{title:"Blur"},brightness:{title:"Brightness"},contrast:{title:"Contrast"},grayscale:{title:"Grayscale"},"hue-rotate":{title:"Hue rotate"},invert:{title:"Invert"},saturate:{title:"Saturate"},sepia:{title:"Sepia"}},helper:e=>{const t="$A$";for(;e.indexOf(t)!==-1;){const n=e.indexOf(t);e.length>n+3&&(["a","e","i","o","u"].indexOf(e[n+4].toLowerCase())!==-1?e=e.replace(t,"an"):e=e.replace(t,"a"))}return e}};class bOt extends HL{constructor({mimeTypes:t,maxFileSize:n}={}){super(),this.name="local",this.icon='<svg aria-hidden="true" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M177 56L125 4l-3-2v57h57c0-2-1-3-2-3z"/><path d="M173 113h8V75h-66c-5 0-8-4-8-8V1H27c-4 0-8 4-8 8v184c0 4 4 8 8 8h65v-8c0-45 36-80 81-80z"/><path d="M173 128c-36 0-65 29-65 64s29 64 65 64c35 0 64-29 64-64s-29-64-64-64zm27 63h-14v33c0 2-2 3-4 3h-20c-2 0-3-1-3-3v-33h-14c-3 0-5-3-3-5l28-30c1-2 3-2 5 0l27 30c2 2 1 5-2 5z"/></g></svg>',this.color="#34495e",this.mimeTypes=["image/gif","image/jpeg","image/jpg","image/png"],this.maxFileSize=1/0,this.template=o=>`<div class="drop-area"> <div>${o.translate("services.local.drop")}</div> <em>${o.translate("services.local.or")}</em> <button class="uppload-button uppload-button--cta" style="background: ${this.color}">${o.translate("services.local.button")}</button> </div> <div class="alternate-input"> <input type="file" accept="${this.mimeTypes.join()}"${o.uppload.settings.multiple?" multiple":""}></div><button class="need-help-link"><span>${Xl("needHelp")}</span aria-hidden="true"><span>?</span></button>`,this.handlers=o=>{const i=o.uppload.container.querySelector(".drop-area");i&&(Tr(i,"drop",a=>this.dropHandler(o,a)),Tr(i,"dragover",a=>this.dragHandler(o,a)),Tr(i,"dragend",a=>this.dragStop(o,a)),Tr(i,"dragexit",a=>this.dragStop(o,a)),Tr(i,"dragleave",a=>this.dragStop(o,a)),Tr(i,"click",a=>this.fileSelect(o,a)));const r=o.uppload.container.querySelector(".alternate-input input[type=file]");r&&Tr(r,"change",a=>this.getFile(o,a));const s=o.uppload.container.querySelector(".need-help-link");s&&Tr(s,"click",()=>o.showHelp("/services/local"))},t&&(this.mimeTypes=t),n&&(this.maxFileSize=n)}getFile(t,n){n.preventDefault();const o=n.target.files;let i=null;if(o){if(t.uppload.settings.multiple&&o.length>1)return t.uploadMultiple(Array.from(o));for(let r=0;r<o.length;r++){const s=o[r];this.mimeTypes.indexOf(s.type)!==-1&&(s.size<this.maxFileSize?i=s:t.handle(new Error(t.translate("errors.file_too_large",`${this.maxFileSize} bytes`))))}}i&&i&&t.next({blob:i,size:i.size,type:i.type,lastModified:i.lastModified?new Date(i.lastModified):void 0,name:i.name})}fileSelect(t,n){const o=t.uppload.container.querySelector(".alternate-input input[type=file]");o&&o.click()}dragStop(t,n){const o=t.uppload.container.querySelector(".drop-area");o&&o.classList.remove("drop-area-active")}dragHandler(t,n){n.preventDefault();const o=t.uppload.container.querySelector(".drop-area");o&&o.classList.add("drop-area-active")}dropHandler(t,n){n.preventDefault(),this.dragStop(t,n);let o=null;if(n.dataTransfer&&n.dataTransfer.items)for(let i=0;i<n.dataTransfer.items.length;i++){const r=n.dataTransfer.items[i];r.kind==="file"&&this.mimeTypes.indexOf(r.type)!==-1&&(o=r.getAsFile(),(!o||o.size>this.maxFileSize)&&(o=null,t.handle(new Error(t.translate("errors.file_too_large",`${this.maxFileSize} bytes`)))))}o&&o&&t.next({blob:o,size:o.size,type:o.type,lastModified:o.lastModified?new Date(o.lastModified):void 0,name:o.name})}}/*! * Cropper.js v1.6.2 * https://fengyuanchen.github.io/cropperjs * * Copyright 2015-present Chen Fengyuan * Released under the MIT license * * Date: 2024-04-21T07:43:05.335Z */function hY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function Xae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hY(Object(n),!0).forEach(function(o){COt(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hY(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function kOt(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qae(e){var t=kOt(e,"string");return typeof t=="symbol"?t:t+""}function VP(e){"@babel/helpers - typeof";return VP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VP(e)}function wOt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fY(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Qae(o.key),o)}}function $Ot(e,t,n){return t&&fY(e.prototype,t),n&&fY(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function COt(e,t,n){return t=Qae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ele(e){return SOt(e)||TOt(e)||EOt(e)||IOt()}function SOt(e){if(Array.isArray(e))return qP(e)}function TOt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EOt(e,t){if(e){if(typeof e=="string")return qP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qP(e,t)}}function qP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function IOt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x6=typeof window<"u"&&typeof window.document<"u",ah=x6?window:{},YL=x6&&ah.document.documentElement?"ontouchstart"in ah.document.documentElement:!1,WL=x6?"PointerEvent"in ah:!1,rr="cropper",GL="all",tle="crop",nle="move",ole="zoom",Gp="e",Zp="w",kv="s",lm="n",Gb="ne",Zb="nw",Kb="se",Jb="sw",YP="".concat(rr,"-crop"),mY="".concat(rr,"-disabled"),$l="".concat(rr,"-hidden"),pY="".concat(rr,"-hide"),POt="".concat(rr,"-invisible"),r$="".concat(rr,"-modal"),WP="".concat(rr,"-move"),q2="".concat(rr,"Action"),l8="".concat(rr,"Preview"),ZL="crop",ile="move",rle="none",GP="crop",ZP="cropend",KP="cropmove",JP="cropstart",gY="dblclick",AOt=YL?"touchstart":"mousedown",DOt=YL?"touchmove":"mousemove",xOt=YL?"touchend touchcancel":"mouseup",vY=WL?"pointerdown":AOt,_Y=WL?"pointermove":DOt,yY=WL?"pointerup pointercancel":xOt,bY="ready",kY="resize",wY="wheel",XP="zoom",$Y="image/jpeg",OOt=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,LOt=/^data:/,MOt=/^data:image\/jpeg;base64,/,NOt=/^img|canvas$/i,sle=200,ale=100,CY={viewMode:0,dragMode:ZL,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:sle,minContainerHeight:ale,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},ROt='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',jOt=Number.isNaN||ah.isNaN;function Zo(e){return typeof e=="number"&&!jOt(e)}var SY=function(t){return t>0&&t<1/0};function xT(e){return typeof e>"u"}function ng(e){return VP(e)==="object"&&e!==null}var FOt=Object.prototype.hasOwnProperty;function t_(e){if(!ng(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&FOt.call(n,"isPrototypeOf")}catch{return!1}}function yl(e){return typeof e=="function"}var zOt=Array.prototype.slice;function lle(e){return Array.from?Array.from(e):zOt.call(e)}function es(e,t){return e&&yl(t)&&(Array.isArray(e)||Zo(e.length)?lle(e).forEach(function(n,o){t.call(e,n,o,e)}):ng(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)})),e}var ar=Object.assign||function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return ng(t)&&o.length>0&&o.forEach(function(r){ng(r)&&Object.keys(r).forEach(function(s){t[s]=r[s]})}),t},UOt=/\.\d*(?:0|9){12}\d*$/;function C_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return UOt.test(e)?Math.round(e*t)/t:e}var BOt=/^width|height|left|top|marginLeft|marginTop$/;function Mm(e,t){var n=e.style;es(t,function(o,i){BOt.test(i)&&Zo(o)&&(o="".concat(o,"px")),n[i]=o})}function HOt(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function Ms(e,t){if(t){if(Zo(e.length)){es(e,function(o){Ms(o,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function Xu(e,t){if(t){if(Zo(e.length)){es(e,function(n){Xu(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function n_(e,t,n){if(t){if(Zo(e.length)){es(e,function(o){n_(o,t,n)});return}n?Ms(e,t):Xu(e,t)}}var VOt=/([a-z\d])([A-Z])/g;function KL(e){return e.replace(VOt,"$1-$2").toLowerCase()}function QP(e,t){return ng(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(KL(t)))}function Y2(e,t,n){ng(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(KL(t)),n)}function qOt(e,t){if(ng(e[t]))try{delete e[t]}catch{e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch{e.dataset[t]=void 0}else e.removeAttribute("data-".concat(KL(t)))}var cle=/\s\s*/,dle=function(){var e=!1;if(x6){var t=!1,n=function(){},o=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(r){t=r}});ah.addEventListener("test",n,o),ah.removeEventListener("test",n,o)}return e}();function Ed(e,t,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=n;t.trim().split(cle).forEach(function(r){if(!dle){var s=e.listeners;s&&s[r]&&s[r][n]&&(i=s[r][n],delete s[r][n],Object.keys(s[r]).length===0&&delete s[r],Object.keys(s).length===0&&delete e.listeners)}e.removeEventListener(r,i,o)})}function jc(e,t,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=n;t.trim().split(cle).forEach(function(r){if(o.once&&!dle){var s=e.listeners,a=s===void 0?{}:s;i=function(){delete a[r][n],e.removeEventListener(r,i,o);for(var d=arguments.length,u=new Array(d),f=0;f<d;f++)u[f]=arguments[f];n.apply(e,u)},a[r]||(a[r]={}),a[r][n]&&e.removeEventListener(r,a[r][n],o),a[r][n]=i,e.listeners=a}e.addEventListener(r,i,o)})}function S_(e,t,n){var o;return yl(Event)&&yl(CustomEvent)?o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(o=document.createEvent("CustomEvent"),o.initCustomEvent(t,!0,!0,n)),e.dispatchEvent(o)}function ule(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var OT=ah.location,YOt=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function TY(e){var t=e.match(YOt);return t!==null&&(t[1]!==OT.protocol||t[2]!==OT.hostname||t[3]!==OT.port)}function EY(e){var t="timestamp=".concat(new Date().getTime());return e+(e.indexOf("?")===-1?"?":"&")+t}function Z0(e){var t=e.rotate,n=e.scaleX,o=e.scaleY,i=e.translateX,r=e.translateY,s=[];Zo(i)&&i!==0&&s.push("translateX(".concat(i,"px)")),Zo(r)&&r!==0&&s.push("translateY(".concat(r,"px)")),Zo(t)&&t!==0&&s.push("rotate(".concat(t,"deg)")),Zo(n)&&n!==1&&s.push("scaleX(".concat(n,")")),Zo(o)&&o!==1&&s.push("scaleY(".concat(o,")"));var a=s.length?s.join(" "):"none";return{WebkitTransform:a,msTransform:a,transform:a}}function WOt(e){var t=Xae({},e),n=0;return es(e,function(o,i){delete t[i],es(t,function(r){var s=Math.abs(o.startX-r.startX),a=Math.abs(o.startY-r.startY),l=Math.abs(o.endX-r.endX),d=Math.abs(o.endY-r.endY),u=Math.sqrt(s*s+a*a),f=Math.sqrt(l*l+d*d),p=(f-u)/u;Math.abs(p)>Math.abs(n)&&(n=p)})}),n}function c8(e,t){var n=e.pageX,o=e.pageY,i={endX:n,endY:o};return t?i:Xae({startX:n,startY:o},i)}function GOt(e){var t=0,n=0,o=0;return es(e,function(i){var r=i.startX,s=i.startY;t+=r,n+=s,o+=1}),t/=o,n/=o,{pageX:t,pageY:n}}function Nm(e){var t=e.aspectRatio,n=e.height,o=e.width,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",r=SY(o),s=SY(n);if(r&&s){var a=n*t;i==="contain"&&a>o||i==="cover"&&a<o?n=o/t:o=n*t}else r?n=o/t:s&&(o=n*t);return{width:o,height:n}}function ZOt(e){var t=e.width,n=e.height,o=e.degree;if(o=Math.abs(o)%180,o===90)return{width:n,height:t};var i=o%90*Math.PI/180,r=Math.sin(i),s=Math.cos(i),a=t*s+n*r,l=t*r+n*s;return o>90?{width:l,height:a}:{width:a,height:l}}function KOt(e,t,n,o){var i=t.aspectRatio,r=t.naturalWidth,s=t.naturalHeight,a=t.rotate,l=a===void 0?0:a,d=t.scaleX,u=d===void 0?1:d,f=t.scaleY,p=f===void 0?1:f,v=n.aspectRatio,_=n.naturalWidth,k=n.naturalHeight,C=o.fillColor,$=C===void 0?"transparent":C,E=o.imageSmoothingEnabled,P=E===void 0?!0:E,I=o.imageSmoothingQuality,O=I===void 0?"low":I,L=o.maxWidth,S=L===void 0?1/0:L,j=o.maxHeight,M=j===void 0?1/0:j,q=o.minWidth,B=q===void 0?0:q,V=o.minHeight,G=V===void 0?0:V,Q=document.createElement("canvas"),X=Q.getContext("2d"),Y=Nm({aspectRatio:v,width:S,height:M}),Z=Nm({aspectRatio:v,width:B,height:G},"cover"),se=Math.min(Y.width,Math.max(Z.width,_)),ce=Math.min(Y.height,Math.max(Z.height,k)),te=Nm({aspectRatio:i,width:S,height:M}),ee=Nm({aspectRatio:i,width:B,height:G},"cover"),ae=Math.min(te.width,Math.max(ee.width,r)),de=Math.min(te.height,Math.max(ee.height,s)),$e=[-ae/2,-de/2,ae,de];return Q.width=C_(se),Q.height=C_(ce),X.fillStyle=$,X.fillRect(0,0,se,ce),X.save(),X.translate(se/2,ce/2),X.rotate(l*Math.PI/180),X.scale(u,p),X.imageSmoothingEnabled=P,X.imageSmoothingQuality=O,X.drawImage.apply(X,[e].concat(ele($e.map(function(be){return Math.floor(C_(be))})))),X.restore(),Q}var hle=String.fromCharCode;function JOt(e,t,n){var o="";n+=t;for(var i=t;i<n;i+=1)o+=hle(e.getUint8(i));return o}var XOt=/^data:.*,/;function QOt(e){var t=e.replace(XOt,""),n=atob(t),o=new ArrayBuffer(n.length),i=new Uint8Array(o);return es(i,function(r,s){i[s]=n.charCodeAt(s)}),o}function eLt(e,t){for(var n=[],o=8192,i=new Uint8Array(e);i.length>0;)n.push(hle.apply(null,lle(i.subarray(0,o)))),i=i.subarray(o);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}function tLt(e){var t=new DataView(e),n;try{var o,i,r;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var s=t.byteLength,a=2;a+1<s;){if(t.getUint8(a)===255&&t.getUint8(a+1)===225){i=a;break}a+=1}if(i){var l=i+4,d=i+10;if(JOt(t,l,4)==="Exif"){var u=t.getUint16(d);if(o=u===18761,(o||u===19789)&&t.getUint16(d+2,o)===42){var f=t.getUint32(d+4,o);f>=8&&(r=d+f)}}}if(r){var p=t.getUint16(r,o),v,_;for(_=0;_<p;_+=1)if(v=r+_*12+2,t.getUint16(v,o)===274){v+=8,n=t.getUint16(v,o),t.setUint16(v,1,o);break}}}catch{n=1}return n}function nLt(e){var t=0,n=1,o=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:o=-1;break;case 5:t=90,o=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90;break}return{rotate:t,scaleX:n,scaleY:o}}var oLt={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,n=this.options,o=this.container,i=this.cropper,r=Number(n.minContainerWidth),s=Number(n.minContainerHeight);Ms(i,$l),Xu(t,$l);var a={width:Math.max(o.offsetWidth,r>=0?r:sle),height:Math.max(o.offsetHeight,s>=0?s:ale)};this.containerData=a,Mm(i,{width:a.width,height:a.height}),Ms(t,$l),Xu(i,$l)},initCanvas:function(){var t=this.containerData,n=this.imageData,o=this.options.viewMode,i=Math.abs(n.rotate)%180===90,r=i?n.naturalHeight:n.naturalWidth,s=i?n.naturalWidth:n.naturalHeight,a=r/s,l=t.width,d=t.height;t.height*a>t.width?o===3?l=t.height*a:d=t.width/a:o===3?d=t.width/a:l=t.height*a;var u={aspectRatio:a,naturalWidth:r,naturalHeight:s,width:l,height:d};this.canvasData=u,this.limited=o===1||o===2,this.limitCanvas(!0,!0),u.width=Math.min(Math.max(u.width,u.minWidth),u.maxWidth),u.height=Math.min(Math.max(u.height,u.minHeight),u.maxHeight),u.left=(t.width-u.width)/2,u.top=(t.height-u.height)/2,u.oldLeft=u.left,u.oldTop=u.top,this.initialCanvasData=ar({},u)},limitCanvas:function(t,n){var o=this.options,i=this.containerData,r=this.canvasData,s=this.cropBoxData,a=o.viewMode,l=r.aspectRatio,d=this.cropped&&s;if(t){var u=Number(o.minCanvasWidth)||0,f=Number(o.minCanvasHeight)||0;a>1?(u=Math.max(u,i.width),f=Math.max(f,i.height),a===3&&(f*l>u?u=f*l:f=u/l)):a>0&&(u?u=Math.max(u,d?s.width:0):f?f=Math.max(f,d?s.height:0):d&&(u=s.width,f=s.height,f*l>u?u=f*l:f=u/l));var p=Nm({aspectRatio:l,width:u,height:f});u=p.width,f=p.height,r.minWidth=u,r.minHeight=f,r.maxWidth=1/0,r.maxHeight=1/0}if(n)if(a>(d?0:1)){var v=i.width-r.width,_=i.height-r.height;r.minLeft=Math.min(0,v),r.minTop=Math.min(0,_),r.maxLeft=Math.max(0,v),r.maxTop=Math.max(0,_),d&&this.limited&&(r.minLeft=Math.min(s.left,s.left+(s.width-r.width)),r.minTop=Math.min(s.top,s.top+(s.height-r.height)),r.maxLeft=s.left,r.maxTop=s.top,a===2&&(r.width>=i.width&&(r.minLeft=Math.min(0,v),r.maxLeft=Math.max(0,v)),r.height>=i.height&&(r.minTop=Math.min(0,_),r.maxTop=Math.max(0,_))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=i.width,r.maxTop=i.height},renderCanvas:function(t,n){var o=this.canvasData,i=this.imageData;if(n){var r=ZOt({width:i.naturalWidth*Math.abs(i.scaleX||1),height:i.naturalHeight*Math.abs(i.scaleY||1),degree:i.rotate||0}),s=r.width,a=r.height,l=o.width*(s/o.naturalWidth),d=o.height*(a/o.naturalHeight);o.left-=(l-o.width)/2,o.top-=(d-o.height)/2,o.width=l,o.height=d,o.aspectRatio=s/a,o.naturalWidth=s,o.naturalHeight=a,this.limitCanvas(!0,!1)}(o.width>o.maxWidth||o.width<o.minWidth)&&(o.left=o.oldLeft),(o.height>o.maxHeight||o.height<o.minHeight)&&(o.top=o.oldTop),o.width=Math.min(Math.max(o.width,o.minWidth),o.maxWidth),o.height=Math.min(Math.max(o.height,o.minHeight),o.maxHeight),this.limitCanvas(!1,!0),o.left=Math.min(Math.max(o.left,o.minLeft),o.maxLeft),o.top=Math.min(Math.max(o.top,o.minTop),o.maxTop),o.oldLeft=o.left,o.oldTop=o.top,Mm(this.canvas,ar({width:o.width,height:o.height},Z0({translateX:o.left,translateY:o.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var n=this.canvasData,o=this.imageData,i=o.naturalWidth*(n.width/n.naturalWidth),r=o.naturalHeight*(n.height/n.naturalHeight);ar(o,{width:i,height:r,left:(n.width-i)/2,top:(n.height-r)/2}),Mm(this.image,ar({width:o.width,height:o.height},Z0(ar({translateX:o.left,translateY:o.top},o)))),t&&this.output()},initCropBox:function(){var t=this.options,n=this.canvasData,o=t.aspectRatio||t.initialAspectRatio,i=Number(t.autoCropArea)||.8,r={width:n.width,height:n.height};o&&(n.height*o>n.width?r.height=r.width/o:r.width=r.height*o),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*i),r.height=Math.max(r.minHeight,r.height*i),r.left=n.left+(n.width-r.width)/2,r.top=n.top+(n.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=ar({},r)},limitCropBox:function(t,n){var o=this.options,i=this.containerData,r=this.canvasData,s=this.cropBoxData,a=this.limited,l=o.aspectRatio;if(t){var d=Number(o.minCropBoxWidth)||0,u=Number(o.minCropBoxHeight)||0,f=a?Math.min(i.width,r.width,r.width+r.left,i.width-r.left):i.width,p=a?Math.min(i.height,r.height,r.height+r.top,i.height-r.top):i.height;d=Math.min(d,i.width),u=Math.min(u,i.height),l&&(d&&u?u*l>d?u=d/l:d=u*l:d?u=d/l:u&&(d=u*l),p*l>f?p=f/l:f=p*l),s.minWidth=Math.min(d,f),s.minHeight=Math.min(u,p),s.maxWidth=f,s.maxHeight=p}n&&(a?(s.minLeft=Math.max(0,r.left),s.minTop=Math.max(0,r.top),s.maxLeft=Math.min(i.width,r.left+r.width)-s.width,s.maxTop=Math.min(i.height,r.top+r.height)-s.height):(s.minLeft=0,s.minTop=0,s.maxLeft=i.width-s.width,s.maxTop=i.height-s.height))},renderCropBox:function(){var t=this.options,n=this.containerData,o=this.cropBoxData;(o.width>o.maxWidth||o.width<o.minWidth)&&(o.left=o.oldLeft),(o.height>o.maxHeight||o.height<o.minHeight)&&(o.top=o.oldTop),o.width=Math.min(Math.max(o.width,o.minWidth),o.maxWidth),o.height=Math.min(Math.max(o.height,o.minHeight),o.maxHeight),this.limitCropBox(!1,!0),o.left=Math.min(Math.max(o.left,o.minLeft),o.maxLeft),o.top=Math.min(Math.max(o.top,o.minTop),o.maxTop),o.oldLeft=o.left,o.oldTop=o.top,t.movable&&t.cropBoxMovable&&Y2(this.face,q2,o.width>=n.width&&o.height>=n.height?nle:GL),Mm(this.cropBox,ar({width:o.width,height:o.height},Z0({translateX:o.left,translateY:o.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),S_(this.element,GP,this.getData())}},iLt={initPreview:function(){var t=this.element,n=this.crossOrigin,o=this.options.preview,i=n?this.crossOriginUrl:this.url,r=t.alt||"The image to preview",s=document.createElement("img");if(n&&(s.crossOrigin=n),s.src=i,s.alt=r,this.viewBox.appendChild(s),this.viewBoxImage=s,!!o){var a=o;typeof o=="string"?a=t.ownerDocument.querySelectorAll(o):o.querySelector&&(a=[o]),this.previews=a,es(a,function(l){var d=document.createElement("img");Y2(l,l8,{width:l.offsetWidth,height:l.offsetHeight,html:l.innerHTML}),n&&(d.crossOrigin=n),d.src=i,d.alt=r,d.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',l.innerHTML="",l.appendChild(d)})}},resetPreview:function(){es(this.previews,function(t){var n=QP(t,l8);Mm(t,{width:n.width,height:n.height}),t.innerHTML=n.html,qOt(t,l8)})},preview:function(){var t=this.imageData,n=this.canvasData,o=this.cropBoxData,i=o.width,r=o.height,s=t.width,a=t.height,l=o.left-n.left-t.left,d=o.top-n.top-t.top;!this.cropped||this.disabled||(Mm(this.viewBoxImage,ar({width:s,height:a},Z0(ar({translateX:-l,translateY:-d},t)))),es(this.previews,function(u){var f=QP(u,l8),p=f.width,v=f.height,_=p,k=v,C=1;i&&(C=p/i,k=r*C),r&&k>v&&(C=v/r,_=i*C,k=v),Mm(u,{width:_,height:k}),Mm(u.getElementsByTagName("img")[0],ar({width:s*C,height:a*C},Z0(ar({translateX:-l*C,translateY:-d*C},t))))}))}},rLt={bind:function(){var t=this.element,n=this.options,o=this.cropper;yl(n.cropstart)&&jc(t,JP,n.cropstart),yl(n.cropmove)&&jc(t,KP,n.cropmove),yl(n.cropend)&&jc(t,ZP,n.cropend),yl(n.crop)&&jc(t,GP,n.crop),yl(n.zoom)&&jc(t,XP,n.zoom),jc(o,vY,this.onCropStart=this.cropStart.bind(this)),n.zoomable&&n.zoomOnWheel&&jc(o,wY,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&jc(o,gY,this.onDblclick=this.dblclick.bind(this)),jc(t.ownerDocument,_Y,this.onCropMove=this.cropMove.bind(this)),jc(t.ownerDocument,yY,this.onCropEnd=this.cropEnd.bind(this)),n.responsive&&jc(window,kY,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,n=this.options,o=this.cropper;yl(n.cropstart)&&Ed(t,JP,n.cropstart),yl(n.cropmove)&&Ed(t,KP,n.cropmove),yl(n.cropend)&&Ed(t,ZP,n.cropend),yl(n.crop)&&Ed(t,GP,n.crop),yl(n.zoom)&&Ed(t,XP,n.zoom),Ed(o,vY,this.onCropStart),n.zoomable&&n.zoomOnWheel&&Ed(o,wY,this.onWheel,{passive:!1,capture:!0}),n.toggleDragModeOnDblclick&&Ed(o,gY,this.onDblclick),Ed(t.ownerDocument,_Y,this.onCropMove),Ed(t.ownerDocument,yY,this.onCropEnd),n.responsive&&Ed(window,kY,this.onResize)}},sLt={resize:function(){if(!this.disabled){var t=this.options,n=this.container,o=this.containerData,i=n.offsetWidth/o.width,r=n.offsetHeight/o.height,s=Math.abs(i-1)>Math.abs(r-1)?i:r;if(s!==1){var a,l;t.restore&&(a=this.getCanvasData(),l=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(es(a,function(d,u){a[u]=d*s})),this.setCropBoxData(es(l,function(d,u){l[u]=d*s})))}}},dblclick:function(){this.disabled||this.options.dragMode===rle||this.setDragMode(HOt(this.dragBox,YP)?ile:ZL)},wheel:function(t){var n=this,o=Number(this.options.wheelZoomRatio)||.1,i=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50),t.deltaY?i=t.deltaY>0?1:-1:t.wheelDelta?i=-t.wheelDelta/120:t.detail&&(i=t.detail>0?1:-1),this.zoom(-i*o,t)))},cropStart:function(t){var n=t.buttons,o=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(Zo(n)&&n!==1||Zo(o)&&o!==0||t.ctrlKey))){var i=this.options,r=this.pointers,s;t.changedTouches?es(t.changedTouches,function(a){r[a.identifier]=c8(a)}):r[t.pointerId||0]=c8(t),Object.keys(r).length>1&&i.zoomable&&i.zoomOnTouch?s=ole:s=QP(t.target,q2),OOt.test(s)&&S_(this.element,JP,{originalEvent:t,action:s})!==!1&&(t.preventDefault(),this.action=s,this.cropping=!1,s===tle&&(this.cropping=!0,Ms(this.dragBox,r$)))}},cropMove:function(t){var n=this.action;if(!(this.disabled||!n)){var o=this.pointers;t.preventDefault(),S_(this.element,KP,{originalEvent:t,action:n})!==!1&&(t.changedTouches?es(t.changedTouches,function(i){ar(o[i.identifier]||{},c8(i,!0))}):ar(o[t.pointerId||0]||{},c8(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var n=this.action,o=this.pointers;t.changedTouches?es(t.changedTouches,function(i){delete o[i.identifier]}):delete o[t.pointerId||0],n&&(t.preventDefault(),Object.keys(o).length||(this.action=""),this.cropping&&(this.cropping=!1,n_(this.dragBox,r$,this.cropped&&this.options.modal)),S_(this.element,ZP,{originalEvent:t,action:n}))}}},aLt={change:function(t){var n=this.options,o=this.canvasData,i=this.containerData,r=this.cropBoxData,s=this.pointers,a=this.action,l=n.aspectRatio,d=r.left,u=r.top,f=r.width,p=r.height,v=d+f,_=u+p,k=0,C=0,$=i.width,E=i.height,P=!0,I;!l&&t.shiftKey&&(l=f&&p?f/p:1),this.limited&&(k=r.minLeft,C=r.minTop,$=k+Math.min(i.width,o.width,o.left+o.width),E=C+Math.min(i.height,o.height,o.top+o.height));var O=s[Object.keys(s)[0]],L={x:O.endX-O.startX,y:O.endY-O.startY},S=function(M){switch(M){case Gp:v+L.x>$&&(L.x=$-v);break;case Zp:d+L.x<k&&(L.x=k-d);break;case lm:u+L.y<C&&(L.y=C-u);break;case kv:_+L.y>E&&(L.y=E-_);break}};switch(a){case GL:d+=L.x,u+=L.y;break;case Gp:if(L.x>=0&&(v>=$||l&&(u<=C||_>=E))){P=!1;break}S(Gp),f+=L.x,f<0&&(a=Zp,f=-f,d-=f),l&&(p=f/l,u+=(r.height-p)/2);break;case lm:if(L.y<=0&&(u<=C||l&&(d<=k||v>=$))){P=!1;break}S(lm),p-=L.y,u+=L.y,p<0&&(a=kv,p=-p,u-=p),l&&(f=p*l,d+=(r.width-f)/2);break;case Zp:if(L.x<=0&&(d<=k||l&&(u<=C||_>=E))){P=!1;break}S(Zp),f-=L.x,d+=L.x,f<0&&(a=Gp,f=-f,d-=f),l&&(p=f/l,u+=(r.height-p)/2);break;case kv:if(L.y>=0&&(_>=E||l&&(d<=k||v>=$))){P=!1;break}S(kv),p+=L.y,p<0&&(a=lm,p=-p,u-=p),l&&(f=p*l,d+=(r.width-f)/2);break;case Gb:if(l){if(L.y<=0&&(u<=C||v>=$)){P=!1;break}S(lm),p-=L.y,u+=L.y,f=p*l}else S(lm),S(Gp),L.x>=0?v<$?f+=L.x:L.y<=0&&u<=C&&(P=!1):f+=L.x,L.y<=0?u>C&&(p-=L.y,u+=L.y):(p-=L.y,u+=L.y);f<0&&p<0?(a=Jb,p=-p,f=-f,u-=p,d-=f):f<0?(a=Zb,f=-f,d-=f):p<0&&(a=Kb,p=-p,u-=p);break;case Zb:if(l){if(L.y<=0&&(u<=C||d<=k)){P=!1;break}S(lm),p-=L.y,u+=L.y,f=p*l,d+=r.width-f}else S(lm),S(Zp),L.x<=0?d>k?(f-=L.x,d+=L.x):L.y<=0&&u<=C&&(P=!1):(f-=L.x,d+=L.x),L.y<=0?u>C&&(p-=L.y,u+=L.y):(p-=L.y,u+=L.y);f<0&&p<0?(a=Kb,p=-p,f=-f,u-=p,d-=f):f<0?(a=Gb,f=-f,d-=f):p<0&&(a=Jb,p=-p,u-=p);break;case Jb:if(l){if(L.x<=0&&(d<=k||_>=E)){P=!1;break}S(Zp),f-=L.x,d+=L.x,p=f/l}else S(kv),S(Zp),L.x<=0?d>k?(f-=L.x,d+=L.x):L.y>=0&&_>=E&&(P=!1):(f-=L.x,d+=L.x),L.y>=0?_<E&&(p+=L.y):p+=L.y;f<0&&p<0?(a=Gb,p=-p,f=-f,u-=p,d-=f):f<0?(a=Kb,f=-f,d-=f):p<0&&(a=Zb,p=-p,u-=p);break;case Kb:if(l){if(L.x>=0&&(v>=$||_>=E)){P=!1;break}S(Gp),f+=L.x,p=f/l}else S(kv),S(Gp),L.x>=0?v<$?f+=L.x:L.y>=0&&_>=E&&(P=!1):f+=L.x,L.y>=0?_<E&&(p+=L.y):p+=L.y;f<0&&p<0?(a=Zb,p=-p,f=-f,u-=p,d-=f):f<0?(a=Jb,f=-f,d-=f):p<0&&(a=Gb,p=-p,u-=p);break;case nle:this.move(L.x,L.y),P=!1;break;case ole:this.zoom(WOt(s),t),P=!1;break;case tle:if(!L.x||!L.y){P=!1;break}I=ule(this.cropper),d=O.startX-I.left,u=O.startY-I.top,f=r.minWidth,p=r.minHeight,L.x>0?a=L.y>0?Kb:Gb:L.x<0&&(d-=f,a=L.y>0?Jb:Zb),L.y<0&&(u-=p),this.cropped||(Xu(this.cropBox,$l),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}P&&(r.width=f,r.height=p,r.left=d,r.top=u,this.action=a,this.renderCropBox()),es(s,function(j){j.startX=j.endX,j.startY=j.endY})}},lLt={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Ms(this.dragBox,r$),Xu(this.cropBox,$l),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=ar({},this.initialImageData),this.canvasData=ar({},this.initialCanvasData),this.cropBoxData=ar({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(ar(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Xu(this.dragBox,r$),Ms(this.cropBox,$l)),this},replace:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),n?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,es(this.previews,function(o){o.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Xu(this.cropper,mY)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Ms(this.cropper,mY)),this},destroy:function(){var t=this.element;return t[rr]?(t[rr]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=this.canvasData,i=o.left,r=o.top;return this.moveTo(xT(t)?t:i+Number(t),xT(n)?n:r+Number(n))},moveTo:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=this.canvasData,i=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.movable&&(Zo(t)&&(o.left=t,i=!0),Zo(n)&&(o.top=n,i=!0),i&&this.renderCanvas(!0)),this},zoom:function(t,n){var o=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(o.width*t/o.naturalWidth,null,n)},zoomTo:function(t,n,o){var i=this.options,r=this.canvasData,s=r.width,a=r.height,l=r.naturalWidth,d=r.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&i.zoomable){var u=l*t,f=d*t;if(S_(this.element,XP,{ratio:t,oldRatio:s/l,originalEvent:o})===!1)return this;if(o){var p=this.pointers,v=ule(this.cropper),_=p&&Object.keys(p).length?GOt(p):{pageX:o.pageX,pageY:o.pageY};r.left-=(u-s)*((_.pageX-v.left-r.left)/s),r.top-=(f-a)*((_.pageY-v.top-r.top)/a)}else t_(n)&&Zo(n.x)&&Zo(n.y)?(r.left-=(u-s)*((n.x-r.left)/s),r.top-=(f-a)*((n.y-r.top)/a)):(r.left-=(u-s)/2,r.top-=(f-a)/2);r.width=u,r.height=f,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),Zo(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var n=this.imageData.scaleY;return this.scale(t,Zo(n)?n:1)},scaleY:function(t){var n=this.imageData.scaleX;return this.scale(Zo(n)?n:1,t)},scale:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=this.imageData,i=!1;return t=Number(t),n=Number(n),this.ready&&!this.disabled&&this.options.scalable&&(Zo(t)&&(o.scaleX=t,i=!0),Zo(n)&&(o.scaleY=n,i=!0),i&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.options,o=this.imageData,i=this.canvasData,r=this.cropBoxData,s;if(this.ready&&this.cropped){s={x:r.left-i.left,y:r.top-i.top,width:r.width,height:r.height};var a=o.width/o.naturalWidth;if(es(s,function(u,f){s[f]=u/a}),t){var l=Math.round(s.y+s.height),d=Math.round(s.x+s.width);s.x=Math.round(s.x),s.y=Math.round(s.y),s.width=d-s.x,s.height=l-s.y}}else s={x:0,y:0,width:0,height:0};return n.rotatable&&(s.rotate=o.rotate||0),n.scalable&&(s.scaleX=o.scaleX||1,s.scaleY=o.scaleY||1),s},setData:function(t){var n=this.options,o=this.imageData,i=this.canvasData,r={};if(this.ready&&!this.disabled&&t_(t)){var s=!1;n.rotatable&&Zo(t.rotate)&&t.rotate!==o.rotate&&(o.rotate=t.rotate,s=!0),n.scalable&&(Zo(t.scaleX)&&t.scaleX!==o.scaleX&&(o.scaleX=t.scaleX,s=!0),Zo(t.scaleY)&&t.scaleY!==o.scaleY&&(o.scaleY=t.scaleY,s=!0)),s&&this.renderCanvas(!0,!0);var a=o.width/o.naturalWidth;Zo(t.x)&&(r.left=t.x*a+i.left),Zo(t.y)&&(r.top=t.y*a+i.top),Zo(t.width)&&(r.width=t.width*a),Zo(t.height)&&(r.height=t.height*a),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?ar({},this.containerData):{}},getImageData:function(){return this.sized?ar({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,n={};return this.ready&&es(["left","top","width","height","naturalWidth","naturalHeight"],function(o){n[o]=t[o]}),n},setCanvasData:function(t){var n=this.canvasData,o=n.aspectRatio;return this.ready&&!this.disabled&&t_(t)&&(Zo(t.left)&&(n.left=t.left),Zo(t.top)&&(n.top=t.top),Zo(t.width)?(n.width=t.width,n.height=t.width/o):Zo(t.height)&&(n.height=t.height,n.width=t.height*o),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,n;return this.ready&&this.cropped&&(n={left:t.left,top:t.top,width:t.width,height:t.height}),n||{}},setCropBoxData:function(t){var n=this.cropBoxData,o=this.options.aspectRatio,i,r;return this.ready&&this.cropped&&!this.disabled&&t_(t)&&(Zo(t.left)&&(n.left=t.left),Zo(t.top)&&(n.top=t.top),Zo(t.width)&&t.width!==n.width&&(i=!0,n.width=t.width),Zo(t.height)&&t.height!==n.height&&(r=!0,n.height=t.height),o&&(i?n.height=n.width/o:r&&(n.width=n.height*o)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var n=this.canvasData,o=KOt(this.image,this.imageData,n,t);if(!this.cropped)return o;var i=this.getData(t.rounded),r=i.x,s=i.y,a=i.width,l=i.height,d=o.width/Math.floor(n.naturalWidth);d!==1&&(r*=d,s*=d,a*=d,l*=d);var u=a/l,f=Nm({aspectRatio:u,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),p=Nm({aspectRatio:u,width:t.minWidth||0,height:t.minHeight||0},"cover"),v=Nm({aspectRatio:u,width:t.width||(d!==1?o.width:a),height:t.height||(d!==1?o.height:l)}),_=v.width,k=v.height;_=Math.min(f.width,Math.max(p.width,_)),k=Math.min(f.height,Math.max(p.height,k));var C=document.createElement("canvas"),$=C.getContext("2d");C.width=C_(_),C.height=C_(k),$.fillStyle=t.fillColor||"transparent",$.fillRect(0,0,_,k);var E=t.imageSmoothingEnabled,P=E===void 0?!0:E,I=t.imageSmoothingQuality;$.imageSmoothingEnabled=P,I&&($.imageSmoothingQuality=I);var O=o.width,L=o.height,S=r,j=s,M,q,B,V,G,Q;S<=-a||S>O?(S=0,M=0,B=0,G=0):S<=0?(B=-S,S=0,M=Math.min(O,a+S),G=M):S<=O&&(B=0,M=Math.min(a,O-S),G=M),M<=0||j<=-l||j>L?(j=0,q=0,V=0,Q=0):j<=0?(V=-j,j=0,q=Math.min(L,l+j),Q=q):j<=L&&(V=0,q=Math.min(l,L-j),Q=q);var X=[S,j,M,q];if(G>0&&Q>0){var Y=_/a;X.push(B*Y,V*Y,G*Y,Q*Y)}return $.drawImage.apply($,[o].concat(ele(X.map(function(Z){return Math.floor(C_(Z))})))),C},setAspectRatio:function(t){var n=this.options;return!this.disabled&&!xT(t)&&(n.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var n=this.options,o=this.dragBox,i=this.face;if(this.ready&&!this.disabled){var r=t===ZL,s=n.movable&&t===ile;t=r||s?t:rle,n.dragMode=t,Y2(o,q2,t),n_(o,YP,r),n_(o,WP,s),n.cropBoxMovable||(Y2(i,q2,t),n_(i,YP,r),n_(i,WP,s))}return this}},cLt=ah.Cropper,fle=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(wOt(this,e),!t||!NOt.test(t.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=ar({},CY,t_(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return $Ot(e,[{key:"init",value:function(){var n=this.element,o=n.tagName.toLowerCase(),i;if(!n[rr]){if(n[rr]=this,o==="img"){if(this.isImg=!0,i=n.getAttribute("src")||"",this.originalUrl=i,!i)return;i=n.src}else o==="canvas"&&window.HTMLCanvasElement&&(i=n.toDataURL());this.load(i)}}},{key:"load",value:function(n){var o=this;if(n){this.url=n,this.imageData={};var i=this.element,r=this.options;if(!r.rotatable&&!r.scalable&&(r.checkOrientation=!1),!r.checkOrientation||!window.ArrayBuffer){this.clone();return}if(LOt.test(n)){MOt.test(n)?this.read(QOt(n)):this.clone();return}var s=new XMLHttpRequest,a=this.clone.bind(this);this.reloading=!0,this.xhr=s,s.onabort=a,s.onerror=a,s.ontimeout=a,s.onprogress=function(){s.getResponseHeader("content-type")!==$Y&&s.abort()},s.onload=function(){o.read(s.response)},s.onloadend=function(){o.reloading=!1,o.xhr=null},r.checkCrossOrigin&&TY(n)&&i.crossOrigin&&(n=EY(n)),s.open("GET",n,!0),s.responseType="arraybuffer",s.withCredentials=i.crossOrigin==="use-credentials",s.send()}}},{key:"read",value:function(n){var o=this.options,i=this.imageData,r=tLt(n),s=0,a=1,l=1;if(r>1){this.url=eLt(n,$Y);var d=nLt(r);s=d.rotate,a=d.scaleX,l=d.scaleY}o.rotatable&&(i.rotate=s),o.scalable&&(i.scaleX=a,i.scaleY=l),this.clone()}},{key:"clone",value:function(){var n=this.element,o=this.url,i=n.crossOrigin,r=o;this.options.checkCrossOrigin&&TY(o)&&(i||(i="anonymous"),r=EY(o)),this.crossOrigin=i,this.crossOriginUrl=r;var s=document.createElement("img");i&&(s.crossOrigin=i),s.src=r||o,s.alt=n.alt||"The image to crop",this.image=s,s.onload=this.start.bind(this),s.onerror=this.stop.bind(this),Ms(s,pY),n.parentNode.insertBefore(s,n.nextSibling)}},{key:"start",value:function(){var n=this,o=this.image;o.onload=null,o.onerror=null,this.sizing=!0;var i=ah.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(ah.navigator.userAgent),r=function(d,u){ar(n.imageData,{naturalWidth:d,naturalHeight:u,aspectRatio:d/u}),n.initialImageData=ar({},n.imageData),n.sizing=!1,n.sized=!0,n.build()};if(o.naturalWidth&&!i){r(o.naturalWidth,o.naturalHeight);return}var s=document.createElement("img"),a=document.body||document.documentElement;this.sizingImage=s,s.onload=function(){r(s.width,s.height),i||a.removeChild(s)},s.src=o.src,i||(s.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",a.appendChild(s))}},{key:"stop",value:function(){var n=this.image;n.onload=null,n.onerror=null,n.parentNode.removeChild(n),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var n=this.element,o=this.options,i=this.image,r=n.parentNode,s=document.createElement("div");s.innerHTML=ROt;var a=s.querySelector(".".concat(rr,"-container")),l=a.querySelector(".".concat(rr,"-canvas")),d=a.querySelector(".".concat(rr,"-drag-box")),u=a.querySelector(".".concat(rr,"-crop-box")),f=u.querySelector(".".concat(rr,"-face"));this.container=r,this.cropper=a,this.canvas=l,this.dragBox=d,this.cropBox=u,this.viewBox=a.querySelector(".".concat(rr,"-view-box")),this.face=f,l.appendChild(i),Ms(n,$l),r.insertBefore(a,n.nextSibling),Xu(i,pY),this.initPreview(),this.bind(),o.initialAspectRatio=Math.max(0,o.initialAspectRatio)||NaN,o.aspectRatio=Math.max(0,o.aspectRatio)||NaN,o.viewMode=Math.max(0,Math.min(3,Math.round(o.viewMode)))||0,Ms(u,$l),o.guides||Ms(u.getElementsByClassName("".concat(rr,"-dashed")),$l),o.center||Ms(u.getElementsByClassName("".concat(rr,"-center")),$l),o.background&&Ms(a,"".concat(rr,"-bg")),o.highlight||Ms(f,POt),o.cropBoxMovable&&(Ms(f,WP),Y2(f,q2,GL)),o.cropBoxResizable||(Ms(u.getElementsByClassName("".concat(rr,"-line")),$l),Ms(u.getElementsByClassName("".concat(rr,"-point")),$l)),this.render(),this.ready=!0,this.setDragMode(o.dragMode),o.autoCrop&&this.crop(),this.setData(o.data),yl(o.ready)&&jc(n,bY,o.ready,{once:!0}),S_(n,bY)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var n=this.cropper.parentNode;n&&n.removeChild(this.cropper),Xu(this.element,$l)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=cLt,e}},{key:"setDefaults",value:function(n){ar(CY,t_(n)&&n)}}])}();ar(fle.prototype,oLt,iLt,rLt,sLt,aLt,lLt);class dLt extends yOt{constructor({aspectRatio:t,aspectRatioOptions:n,hideAspectRatioSettings:o,autoCropArea:i,viewMode:r}={}){super(),this.name="crop",this.icon='<svg aria-hidden="true" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"><path d="M74 0v182h134v-25h-26V74H99V48h96c4 0 7 1 9 4 3 2 4 5 4 9v121h48v26h-48v48h-26v-48H61a13 13 0 01-13-13V74H0V48h48V0h26z" fill="#000" fill-rule="nonzero"/></svg>',this.aspectRatio=NaN,this.hideAspectRatioSettings=!1,this.aspectRatioOptions={free:NaN,square:1,"16:9":16/9},this.autoCropArea=1,this.viewMode=1,this.originalFile={blob:new Blob},this.template=({file:s,translate:a})=>{const l=URL.createObjectURL(s.blob);return this.originalFile=s,` <div class="uppload-cropping-element"> <img style="width: 20px" alt="" src="${l}"> </div> ${!this.aspectRatio&&!this.hideAspectRatioSettings?`<div class="uppload-actions"> ${Object.keys(this.aspectRatioOptions).map((d,u)=>` <input value="${this.aspectRatioOptions[d]}" data-name="${d}" name="crop-aspect-ratio" type="radio"${u?"":" checked"} id="crop-aspect-ratio-${d}"> <label for="crop-aspect-ratio-${d}">${a(`effects.crop.aspectRatios.${d}`)||d}</label>`).join("")} </div>`:""} `},this.handlers=s=>{const a=s.uppload.container.querySelector(".uppload-cropping-element img"),l=this.originalFile,d=l.type&&["image/jpeg","image/webp"].indexOf(l.type)!==-1?l.type:"image/png";a&&qxt(s,a).then(()=>{const u=new fle(a,{aspectRatio:this.aspectRatio,autoCropArea:this.autoCropArea,viewMode:this.viewMode,ready(){y4(u.getCroppedCanvas(),d).then(p=>{l.blob=p,s.next(l)})},cropend(){y4(u.getCroppedCanvas(),d).then(p=>{l.blob=p,s.next(l)})}});s.uppload.container.querySelectorAll("input[name='crop-aspect-ratio']").forEach(p=>{Tr(p,"change",()=>{const v=s.uppload.container.querySelector("input[name='crop-aspect-ratio']:checked");v&&(u.setAspectRatio(this.aspectRatioOptions[v.getAttribute("data-name")||"free"]),y4(u.getCroppedCanvas(),d).then(_=>{l.blob=_,s.next(l)}))})})})},t&&(this.aspectRatio=t),n&&(this.aspectRatioOptions=n),i&&(this.autoCropArea=i),r&&(this.viewMode=r),o&&(this.hideAspectRatioSettings=o)}}const uLt={props:{uploadRoute:String,maxSize:Number,maxWidth:{type:Number,default:null},maxHeight:{type:Number,default:null},cropRatio:{type:Number,default:null},compression:{type:Number,default:.99}},created(){let e=uY;e.services.default.heading=this.$t("dashboard.author.settings.basic_settings.image.heading"),e.services.local.title=this.$t("dashboard.author.settings.basic_settings.image.local_title"),e.services.local.drop=this.$t("dashboard.author.settings.basic_settings.image.drop"),e.services.local.or=this.$t("dashboard.author.settings.basic_settings.image.or"),e.services.local.button=this.$t("dashboard.author.settings.basic_settings.image.button"),e.effects.crop.aspectRatios.free=this.$t("public.free_select"),e.effects.crop.aspectRatios.square=this.$t("public.square"),e.upload=this.$t("dashboard.author.settings.basic_settings.image.upload"),e.uploading=this.$t("dashboard.author.settings.basic_settings.image.uploading"),e.cancel=this.$t("dashboard.author.settings.basic_settings.image.cancel"),this.uppload||(this.uppload=new _Ot({lang:uY,uploader:this.upload,maxWidth:this.maxWidth,maxHeight:this.maxHeight,compression:this.compression,compressionToMime:"image/webp"}),this.uppload.use([new bOt,new dLt({aspectRatio:this.cropRatio/1})]),this.uppload.on("upload",t=>this.$emit("input",t)))},methods:{open(){this.uppload.open()},upload(e){if(this.maxSize&&e.size>this.maxSize){this.maxSize===5242880?window.flash(this.$t("validation.custom.cover_img.too_big"),"error"):window.flash(this.$t("user.editor.image.too_big_error"),"error");return}const t={headers:{"content-type":"multipart/form-data","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content}};let n=new FormData;n.append("file",e),De.post(this.uploadRoute,n,t).then(o=>{window.flash(o),this.$emit("uploaded")}).catch(o=>{o.response.status==413?window.flash(this.$t("user.editor.image.too_big_error"),"error"):window.flash(o.response.data.message,"error")})}}};function hLt(e,t,n,o,i,r){return h(),g("div",{onClick:t[0]||(t[0]=(...s)=>r.open&&r.open(...s)),class:"cursor-pointer"},[Pt(e.$slots,"default")])}const mle=U(uLt,[["render",hLt]]),fLt={components:{ImageCropUploadButton:mle},props:{uploadRoute:String,deleteRoute:String,maxSize:Number,maxWidth:Number,maxHeight:Number,cropRatio:{type:Number,default:1},uploadButtonClass:String,deleteButtonClass:String}};function mLt(e,t,n,o,i,r){const s=y("app-icon"),a=y("ImageCropUploadButton");return h(),g("span",null,[n.uploadRoute?(h(),W(a,{key:0,"upload-route":n.uploadRoute,"crop-ratio":n.cropRatio,"max-size":n.maxSize,"max-width":n.maxWidth,"max-height":n.maxHeight,onUploaded:t[0]||(t[0]=l=>e.$emit("uploaded"))},{default:F(()=>[c("button",{class:J([n.uploadButtonClass,"border-primary-hover"])},[b(s,{icon:"upload",class:"me-icon"}),z(" "+m(e.$t("public.upload_new")),1)],2)]),_:1},8,["upload-route","crop-ratio","max-size","max-width","max-height"])):D("",!0),n.deleteRoute?(h(),g("button",{key:1,class:J(n.deleteButtonClass),onClick:t[1]||(t[1]=l=>e.$emit("delete"))},[b(s,{icon:"delete",class:"me-icon"}),z(" "+m(e.$t("public.remove")),1)],2)):D("",!0)])}const pLt=U(fLt,[["render",mLt]]),gLt={components:{ImageModifierActions:pLt,ImageCropUploadButton:mle,AppIcon:Ue,ButtonDropdown:Eg},props:{image:String,uploadRoute:String,deleteRoute:String,maxSize:Number,maxWidth:Number,maxHeight:Number,cropRatio:{type:Number,default:null},actionOnHover:{type:Boolean,default:!1},deleteSidebar:{type:Boolean,default:!0},circle:Boolean},data(){return{isHover:!1}},methods:{imageDelete(){this.actionOnHover&&this.deleteSidebar?this.$store.dispatch("sidebar/open",{type:"image-delete",data:{deleteRoute:this.deleteRoute}}):De.delete(this.deleteRoute).then(e=>{window.flash(e)}).catch(e=>{window.flash(e)}).finally(()=>{window.eventBus.emit("image-deleted")})}},mounted(){window.eventBus.on("image-deleted",()=>{this.$emit("deleted")})}},vLt={key:1,class:"d-flex"},_Lt={class:"transition-darken border-radius-8px w-100"},yLt=["src","alt"],bLt={class:"flex-grow-1"},kLt=["src","alt"],wLt={class:"btn btn-tertiary btn-sm"};function $Lt(e,t,n,o,i,r){const s=y("ImageCropUploadButton"),a=y("ImageModifierActions"),l=y("AppIcon"),d=y("ButtonDropdown");return h(),g("div",null,[n.image?(h(),g("div",vLt,[n.actionOnHover?(h(),g("div",{key:0,class:"flex-grow-1 position-relative",onMouseover:t[2]||(t[2]=u=>i.isHover=!0),onMouseleave:t[3]||(t[3]=u=>i.isHover=!1)},[c("div",_Lt,[c("img",{src:n.image,alt:e.$t("public.image.title"),class:J(["object-fit-cover border-image w-100 overflow-hidden",[n.circle?"rounded-circle":"border-radius-8px"]])},null,10,yLt),xe(c("div",{class:J({"position-absolute top-0 d-flex align-items-center justify-content-center w-100 h-100":i.isHover})},[b(a,{class:"d-flex flex-wrap","upload-route":n.uploadRoute,"delete-route":n.deleteRoute,"max-size":n.maxSize,"max-width":n.maxWidth,"max-height":n.maxHeight,"crop-ratio":n.cropRatio,onUploaded:t[1]||(t[1]=u=>e.$emit("uploaded")),onDelete:r.imageDelete,"upload-button-class":"me-3 btn btn-secondary btn-sm btn-center","delete-button-class":"btn btn-primary btn-danger btn-sm btn-center"},null,8,["upload-route","delete-route","max-size","max-width","max-height","crop-ratio","onDelete"])],2),[[Vo,i.isHover]])])],32)):(h(),g(pe,{key:1},[c("div",bLt,[c("img",{src:n.image,alt:e.$t("public.image.title"),class:J(["img-fluid border-image w-100",[n.circle?"rounded-circle":"border-radius-8px"]])},null,10,kLt)]),b(d,{"menu-align":"end",class:"ms-1"},{button:F(()=>[c("button",wLt,[b(l,{icon:"edit",height:"24",width:"24"})])]),dropdown:F(()=>[b(a,{"upload-route":n.uploadRoute,"delete-route":n.deleteRoute,"max-size":n.maxSize,"max-width":n.maxWidth,"max-height":n.maxHeight,"crop-ratio":n.cropRatio,onUploaded:t[4]||(t[4]=u=>e.$emit("uploaded")),onDelete:r.imageDelete,"upload-button-class":"d-flex align-items-center dropdown-item medium btn-tertiary","delete-button-class":"d-flex align-items-center dropdown-item medium btn-tertiary btn-danger"},null,8,["upload-route","delete-route","max-size","max-width","max-height","crop-ratio","onDelete"])]),_:1})],64))])):(h(),W(s,{key:0,"upload-route":n.uploadRoute,"crop-ratio":n.cropRatio,"max-size":n.maxSize,"max-width":n.maxWidth,"max-height":n.maxHeight,onUploaded:t[0]||(t[0]=u=>e.$emit("uploaded"))},{default:F(()=>[Pt(e.$slots,"default")]),_:3},8,["upload-route","crop-ratio","max-size","max-width","max-height"]))])}const Q3=U(gLt,[["render",$Lt]]),CLt={components:{AppIcon:Ue},computed:{...Oe({promoProduct:"authorPromoProduct/getDetail"})}},SLt={class:"mw-15rem bg-gray-300 p-3 rounded text-end"},TLt={class:"d-flex align-items-center justify-content-end mb-3"},ELt={class:"text-gray-800 mb-0"};function ILt(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return h(),g("div",SLt,[c("div",TLt,[c("h4",ELt,m(e.promoProduct.uploaded_at?e.$t("product.promo.downloads.count"):e.$t("product.promo.downloads.count_empty")),1),xe(b(s,{class:"text-gray-700 ms-2",icon:"info-circle",width:"20",height:"20"},null,512),[[a,{content:e.$t("product.promo.downloads.reset_info",{date:e.promoProduct.uploaded_at}),triggers:["hover","click"]}]])]),c("h2",null,m(e.promoProduct.downloads_count??0),1)])}const PLt=U(CLt,[["render",ILt]]),ALt=UL(BL),DLt={components:{ImageModifier:Q3,PromoProductCategoriesEditor:zxt,Loading:Rt,AuthorSettingsLockedSection:Tg,AppIcon:Ue,FilePond:ALt,AuthorDashboardPromoProductDownloadCount:PLt},data(){return{primaryColor:window.primaryColor,files:[],copied:!1,fileTypes:Wa.fileTypes,server:{url:this.ziggyRoute("dashboard.api.promo.product.file.upload"),process:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}},maxFileSize:"90MB",promoProductConfig:sh.validation.promo_product,labelIdleTemplate:"<div class='d-flex align-items-center p-3'><svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' aria-labelledby='upload' role='img' class='text-primary'><g fill='currentColor'><path fill-rule='evenodd' d='M12 2C9.55912 2 7.4608 3.45744 6.52373 5.54534C6.44011 5.73166 6.38425 5.85598 6.34206 5.94471C6.33167 5.96657 6.32326 5.98381 6.31654 5.99729L6.29677 5.99799C6.23318 5.99989 6.14598 6 6 6C3.79086 6 2 7.79086 2 10C2 12.2091 3.79086 14 6 14H6.17157L8.17157 12H6C4.89543 12 4 11.1046 4 10C4 8.89543 4.89543 8 6 8L6.06419 8.0001C6.27176 8.00057 6.51342 8.00111 6.71431 7.96068C6.92683 7.91791 7.17254 7.84692 7.414 7.69062C7.65546 7.53433 7.82083 7.33923 7.94687 7.16285C8.03371 7.04134 8.10219 6.90047 8.14829 6.8035C8.20111 6.69243 8.26605 6.54772 8.34352 6.37511L8.34839 6.36427C8.97472 4.96871 10.3753 4 12 4C13.6247 4 15.0253 4.96871 15.6516 6.36427L15.6565 6.37511C15.7339 6.54772 15.7989 6.69243 15.8517 6.8035C15.8978 6.90047 15.9663 7.04134 16.0531 7.16285C16.1792 7.33923 16.3445 7.53433 16.586 7.69062C16.8275 7.84692 17.0732 7.91791 17.2857 7.96068C17.4866 8.00111 17.7282 8.00057 17.9358 8.0001L18 8C19.1046 8 20 8.89543 20 10C20 11.1046 19.1046 12 18 12H15.8284L17.8284 14H18C20.2091 14 22 12.2091 22 10C22 7.79086 20.2091 6 18 6C17.854 6 17.7668 5.99989 17.7032 5.99799L17.6835 5.99729C17.6767 5.98381 17.6683 5.96657 17.6579 5.94471C17.6158 5.85598 17.5599 5.73166 17.4763 5.54534C16.5392 3.45744 14.4409 2 12 2ZM6.29756 6.03369C6.29743 6.0339 6.29755 6.03369 6.29756 6.03369V6.03369ZM17.7024 6.03369C17.7024 6.03369 17.7026 6.03393 17.7024 6.03369V6.03369Z' /><path data-v-a0babf54='' fill-rule='evenodd' d='M7.29289 15.2929L8.70711 16.7071L11 14.4142V21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21V14.4142L15.2929 16.7071L16.7071 15.2929L12 10.5858L7.29289 15.2929Z' /></g></svg><div class='d-flex flex-column ms-5 align-items-baseline'><span class='text-gray-800'>"+this.$t("fileupload.insert_file_for_upload")+"</span><span class='medium text-gray-600 fs-6'>"+this.$t("fileupload.can_upload_zip_pdf_pptx")+"</span></div></div>"}},computed:{...Oe({auth:"auth/auth",author:"author/getDetail",loading:"authorPromoProduct/getLoading",promoProduct:"authorPromoProduct/getDetail"}),...sn({badge:e=>e.author.detail.badge}),title:{get(){return this.promoProduct.title},set(e){this.promoProduct.title=e}},description:{get(){return this.promoProduct.description},set(e){this.promoProduct.description=e}}},methods:{ziggyRoute:Pe,hasPermission(e){return ru.settings_permissions[this.badge][e]},handleFileUpload(e){e||(this.loadData(!0),window.flash(this.$t("dashboard.author.settings.promo_material.messages.file_uploaded"),"success"))},labelFileProcessingError:e=>e&&e.code===422?globalThis.$t("fileupload.label_file_processing_error_422"):globalThis.$t("fileupload.label_file_processing_error"),updateCategories(e){this.promoProduct.categories=e},openDeletePromoProduct(){this.$store.dispatch("sidebar/open",{type:"author-promo-product-delete"})},sharePromoProduct(){if(!this.promoProduct.share_link){window.flash(this.$t("validation.custom.promo_product.required"),"error");return}this.$copyText(this.promoProduct.share_link),this.copied=!0,window.flash(this.$t("clipboard.promo_product_link"),"success"),setTimeout(()=>{this.copied=!1},2e3)},update(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("authorPromoProduct/update",this.promoProduct)},loadData(e=!1){this.$store.dispatch("authorPromoProduct/show",e)}},mounted(){this.loadData()},validations(){return{title:{required:Yt,minLength:Ua(this.promoProductConfig.title.min_length),maxLength:hi(this.promoProductConfig.title.max_length)},description:{minLength:Ua(this.promoProductConfig.description.min_length),maxLength:hi(this.promoProductConfig.description.max_length)}}},setup(){return{v$:Pn()}}},xLt={key:0,class:"content-box is-narrow border-primary-20"},OLt={key:1,class:"content-box is-narrow border border-primary-20"},LLt={class:"mb-3"},MLt={class:"d-flex justify-content-between align-items-lg-start align-items-end flex-column flex-lg-row gap-3"},NLt={class:"text-gray-700 mb-3"},RLt={class:"text-gray-700 mb-3"},jLt={class:"d-flex gap-2 flex-wrap"},FLt={class:"vl-parent mh-4rem"},zLt={class:"mb-3"},ULt={class:"d-flex flex-column justify-content-center align-items-center w-100 bg-primary-5 p-5 rounded border-2 border-primary-20 border-dashed"},BLt={class:"text-gray-800 mb-0"},HLt={class:"medium text-gray-700 mb-0"},VLt={class:"mb-4"},qLt={class:"mb-3"},YLt={class:"form-group form-floating mb-3"},WLt={class:"length-counter"},GLt=["maxlength","placeholder"],ZLt={for:"promoMaterialLabel",class:"form-label"},KLt={key:0,class:"invalid-feedback"},JLt={key:1,class:"invalid-feedback"},XLt={key:2,class:"invalid-feedback"},QLt={class:"form-group form-floating mb-3"},eMt={class:"length-counter"},tMt=["placeholder","maxlength"],nMt={for:"short_description",class:"form-label"},oMt={key:0,class:"invalid-feedback"},iMt={key:1,class:"invalid-feedback"},rMt={class:"mb-3 pt-3"},sMt={class:"mb-3"},aMt={class:"large text-gray-900 mb-5"},lMt={class:"upload-box"},cMt={class:"upload-box-gallery"},dMt={class:"list-group"},uMt={key:0,class:"list-group-item"},hMt=["href"];function fMt(e,t,n,o,i,r){const s=y("AuthorSettingsLockedSection"),a=y("AppIcon"),l=y("AuthorDashboardPromoProductDownloadCount"),d=y("Loading"),u=y("ImageModifier"),f=y("PromoProductCategoriesEditor"),p=y("FilePond");return r.hasPermission("promo_material")?(h(),g("div",OLt,[c("h3",LLt,m(e.$t("dashboard.author.settings.tabs.author_presentation")),1),c("div",MLt,[c("div",null,[c("p",NLt,m(e.$t("dashboard.author.settings.promo_material.text.0")),1),c("p",RLt,m(e.$t("dashboard.author.settings.promo_material.text.1")),1),c("div",jLt,[c("button",{class:"btn btn-sm btn-center btn-primary btn-tertiary",onClick:t[0]||(t[0]=(...v)=>r.sharePromoProduct&&r.sharePromoProduct(...v))},[z(m(e.$t("dashboard.author.settings.promo_material.share"))+" ",1),i.copied?(h(),W(a,{key:1,icon:"check",class:"ms-icon"})):(h(),W(a,{key:0,icon:"share",class:"ms-icon"}))]),c("button",{class:"btn btn-sm btn-center btn-danger btn-tertiary",onClick:t[1]||(t[1]=(...v)=>r.openDeletePromoProduct&&r.openDeletePromoProduct(...v))},[z(m(e.$t("dashboard.author.settings.promo_material.delete.button"))+" ",1),b(a,{icon:"delete",class:"ms-icon"})])])]),b(l)]),c("div",FLt,[e.loading?(h(),W(d,{key:0,active:e.loading,"onUpdate:active":t[2]||(t[2]=v=>e.loading=v),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])):(h(),g(pe,{key:1},[t[8]||(t[8]=c("hr",{class:"my-4"},null,-1)),c("h4",zLt,m(e.$t("dashboard.author.settings.promo_material.cover_image")),1),b(u,{class:"mb-4 maxw-13dot75rem","dropdown-align":"start",image:e.promoProduct.img_path,"max-size":2097152,"max-width":1100,"max-height":1100,"upload-route":r.ziggyRoute("dashboard.api.promo.product.image.upload"),"delete-route":r.ziggyRoute("dashboard.api.promo.product.image.delete"),"crop-ratio":1,onUploaded:t[3]||(t[3]=v=>r.loadData(!0)),onDeleted:t[4]||(t[4]=v=>r.loadData(!0))},{default:F(()=>[c("div",ULt,[b(a,{icon:"upload",height:"20",width:"20"}),c("p",BLt,m(e.$t("public.image.insert")),1),c("p",HLt,m(e.$t("public.image.format")),1)])]),_:1},8,["image","upload-route","delete-route"]),t[9]||(t[9]=c("hr",{class:"my-4"},null,-1)),c("div",VLt,[c("h4",qLt,m(e.$t("dashboard.author.settings.promo_material.details.basic_info")),1),c("div",YLt,[c("span",WLt,m(r.title?r.title.length:"0/"+i.promoProductConfig.title.max_length),1),xe(c("input",{type:"text",class:J({"form-control":!0,"is-invalid":o.v$.title.$error}),id:"promoMaterialLabel",maxlength:i.promoProductConfig.title.max_length,"onUpdate:modelValue":t[5]||(t[5]=v=>o.v$.title.$model=v),placeholder:e.$t("dashboard.author.settings.promo_material.details.title.placeholder")},null,10,GLt),[[wt,o.v$.title.$model]]),c("label",ZLt,m(e.$t("dashboard.author.settings.promo_material.details.title.label")),1),o.v$.title.$error&&o.v$.title.required.$invalid?(h(),g("span",KLt,m(e.$t("validation.custom.promo_material.title.required")),1)):D("",!0),o.v$.title.$error&&o.v$.title.minLength.$invalid?(h(),g("span",JLt,m(e.$t("validation.custom.promo_material.title.min_length",{min:i.promoProductConfig.title.min_length})),1)):D("",!0),o.v$.title.$error&&o.v$.title.maxLength.$invalid?(h(),g("span",XLt,m(e.$t("validation.custom.promo_material.title.max_length",{max:i.promoProductConfig.title.max_length})),1)):D("",!0)])]),c("div",QLt,[c("span",eMt,m(r.description?r.description.length:"0/"+i.promoProductConfig.description.max_length),1),xe(c("textarea",{id:"short_description",class:J({"form-control":!0,"is-invalid":o.v$.description.$error}),placeholder:e.$t("dashboard.author.settings.promo_material.details.description.placeholder"),name:"description","onUpdate:modelValue":t[6]||(t[6]=v=>o.v$.description.$model=v),maxlength:i.promoProductConfig.description.max_length},null,10,tMt),[[wt,o.v$.description.$model]]),c("label",nMt,m(e.$t("dashboard.author.settings.promo_material.details.description.label")),1),o.v$.description.$error&&o.v$.description.minLength.$invalid?(h(),g("span",oMt,m(e.$t("validation.custom.promo_material.description.min_length",{min:i.promoProductConfig.description.min_length})),1)):D("",!0),o.v$.description.$error&&o.v$.description.maxLength.$invalid?(h(),g("span",iMt,m(e.$t("validation.custom.promo_material.description.max_length",{max:i.promoProductConfig.description.max_length})),1)):D("",!0)]),c("h4",rMt,m(e.$t("dashboard.author.settings.promo_material.categories")),1),b(f,{categories:e.promoProduct.categories,onUpdateCategories:r.updateCategories},null,8,["categories","onUpdateCategories"]),t[10]||(t[10]=c("hr",{class:"my-4"},null,-1)),c("h4",sMt,m(e.$t("dashboard.author.settings.promo_material.file.title")),1),c("div",aMt,m(e.$t("dashboard.author.settings.promo_material.file.text")),1),c("div",lMt,[b(p,{name:"file",ref:"productFile",labelIdle:i.labelIdleTemplate,labelInvalidField:e.$t("fileupload.label_invalid_field"),labelFileWaitingForSize:e.$t("fileupload.label_file_waiting_for_size"),labelFileSizeNotAvailable:e.$t("fileupload.label_file_size_not_available"),labelFileLoadError:e.$t("fileupload.label_file_load_error"),labelFileLoading:e.$t("fileupload.label_file_loading"),labelFileProcessing:e.$t("fileupload.label_file_processing"),labelFileProcessingComplete:e.$t("fileupload.label_file_processing_complete"),labelFileProcessingAborted:e.$t("fileupload.label_file_processing_aborted"),labelFileProcessingError:r.labelFileProcessingError,labelTapToCancel:e.$t("fileupload.label_tap_to_cancel"),labelTapToRetry:e.$t("fileupload.label_tap_to_retry"),labelFileTypeNotAllowed:e.$t("fileupload.label_file_type_not_allowed"),fileValidateTypeLabelExpectedTypes:e.$t("fileupload.file_validate_type_label_expected_types")+" .zip, .pdf, .ppt, .pptx, .pps a .ppsx",labelMaxTotalFileSizeExceeded:e.$t("fileupload.label_max_total_file_size_exceeded"),labelMaxTotalFileSize:e.$t("fileupload.label_max_total_file_size")+" "+i.maxFileSize,"allow-multiple":!1,"allow-replace":!0,"allow-revert":!0,"allow-file-size-validation":!0,maxTotalFileSize:"90MB","accepted-file-types":"application/zip, application/octet-stream, application/x-zip-compressed, multipart/x-zip, application/pdf, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.presentationml.slideshow",server:i.server,files:i.files,credits:"false",onProcessfile:r.handleFileUpload},null,8,["labelIdle","labelInvalidField","labelFileWaitingForSize","labelFileSizeNotAvailable","labelFileLoadError","labelFileLoading","labelFileProcessing","labelFileProcessingComplete","labelFileProcessingAborted","labelFileProcessingError","labelTapToCancel","labelTapToRetry","labelFileTypeNotAllowed","fileValidateTypeLabelExpectedTypes","labelMaxTotalFileSizeExceeded","labelMaxTotalFileSize","server","files","onProcessfile"])]),c("div",cMt,[c("ul",dMt,[e.promoProduct.file_name?(h(),g("li",uMt,[c("a",{href:e.promoProduct.download_url,target:"_blank"},[b(a,{icon:"file",class:"me-icon"}),z(" "+m(e.promoProduct.file_name),1)],8,hMt)])):D("",!0)])]),t[11]||(t[11]=c("hr",null,null,-1)),c("button",{class:"btn btn-primary",onClick:t[7]||(t[7]=(...v)=>r.update&&r.update(...v))},m(e.$t("dashboard.author.settings.promo_material.button")),1)],64))])])):(h(),g("div",xLt,[b(s,{"number-of-products":e.author.products_count,badge:e.badge},{header:F(()=>[z(m(e.$t("dashboard.author.settings.tabs.author_presentation")),1)]),text:F(()=>[z(m(e.$t("dashboard.author.settings.promo_material.text.0")),1)]),_:1},8,["number-of-products","badge"])]))}const mMt=U(DLt,[["render",fMt]]),pMt={};function gMt(e,t,n,o,i,r){const s=y("router-view");return h(),g("div",null,[b(s)])}const vMt=U(pMt,[["render",gMt]]),_Mt=5e3,yMt={components:{AppIcon:Ue},props:{name:{type:String,default:null},imageUrl:{type:String,default:null},generateUrl:{type:String,default:null},checkUrl:{type:String,default:null}},data(){return{intervalId:null,isGenerating:!1,iconNames:{facebook:"facebook",instagram_post:"instagram",instagram_story:"instagram"}}},computed:{iconName(){return this.iconNames[this.name]}},methods:{generate(){this.isGenerating||(this.isGenerating=!0,De.get(this.generateUrl).then(()=>{this.startChecking()}).catch(e=>{this.isGenerating=!1,window.flash(e)}))},checkStatus(){De.get(this.checkUrl).then(e=>{let t=e.data.status;t==="failed"?(this.stopChecking(),window.flash(e.data.message,"error")):t==="ready"&&(this.stopChecking(),this.$emit("update:imageUrl",e.data.image_url))}).catch(e=>{this.isGenerating=!1,window.flash(e)})},startChecking(){clearInterval(this.intervalId),this.intervalId=setInterval(()=>this.checkStatus(),_Mt)},stopChecking(){clearInterval(this.intervalId),this.isGenerating=!1}},beforeUnmount(){clearInterval(this.intervalId)}},bMt={class:"py-3 border-bottom-1 border-bottom-last-none d-flex justify-content-between flex-wrap gap-2 align-items-center"},kMt={class:"d-flex align-items-center text-gray-700"},wMt={class:"medium fw-medium mb-0"},$Mt={class:"d-flex"},CMt={key:0},SMt=["href"];function TMt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",bMt,[c("div",kMt,[b(s,{icon:r.iconName,class:"me-3",width:"16",height:"16"},null,8,["icon"]),c("p",wMt,m(e.$tm("public.share.type")[n.name]),1)]),c("div",$Mt,[c("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[0]||(t[0]=(...a)=>r.generate&&r.generate(...a))},[i.isGenerating?(h(),g("span",CMt,m(e.$tm("public.share.image_generation_button_pending")),1)):D("",!0),b(s,{icon:n.imageUrl||i.isGenerating?"refresh":"download",width:"24",height:"24",class:J({"ms-icon":i.isGenerating}),spin:i.isGenerating},null,8,["icon","class","spin"])]),n.imageUrl&&!i.isGenerating?(h(),g("a",{key:0,href:n.imageUrl,target:"_blank",class:"btn btn-tertiary btn-sm btn-center"},[z(m(e.$t("public.download"))+" ",1),b(s,{icon:"download",width:"24",height:"24",class:"ms-icon"})],8,SMt)):D("",!0)])])}const ple=U(yMt,[["render",TMt]]),EMt={components:{ShareImageGenerate:ple},props:{title:{type:String,default:null},discount:{type:Object,required:!0,default:()=>({id:null,share_image_urls:{}})},automaticGeneration:{type:Boolean,default:!1}},data(){return{socials:["facebook","instagram_post","instagram_story"]}},computed:{discountModel:{get(){return this.discount},set(e){this.$emit("update:discount",e)}}},methods:{imageUrl(e){return this.discountModel.share_image_urls&&this.discountModel.share_image_urls[e]?this.discountModel.share_image_urls[e]:null},generateAll(){this.socials.forEach(e=>{this.imageUrl(e)||this.$refs["share-image-generate-"+e][0].generate()})}},mounted(){this.automaticGeneration&&this.generateAll(),this.$store.dispatch("authorDiscountAutomatic/show")}},IMt={key:0},PMt={key:0,class:"medium text-gray-800 fw-bold mb-3"};function AMt(e,t,n,o,i,r){const s=y("ShareImageGenerate");return r.discountModel.id?(h(),g("div",IMt,[n.title?(h(),g("p",PMt,m(n.title),1)):D("",!0),(h(!0),g(pe,null,Me(i.socials,(a,l)=>(h(),W(s,{name:a,"image-url":r.imageUrl(a),"onUpdate:imageUrl":d=>r.discountModel.share_image_urls[a]=d,"generate-url":e.ziggyRoute("api.author.discount.generateShareImage",{discount:r.discountModel.id,type:a}),"check-url":e.ziggyRoute("api.author.discount.generateShareImageStatus",{discount:r.discountModel.id,type:a}),key:a,ref_for:!0,ref:"share-image-generate-"+a,class:J({"pb-0":l==i.socials.length-1,"pt-0":l==0})},null,8,["name","image-url","onUpdate:imageUrl","generate-url","check-url","class"]))),128))])):D("",!0)}const DMt=U(EMt,[["render",AMt]]),xMt={components:{AppIcon:Ue},props:{discount:{type:Object}},computed:{routeTo(){return this.discount.type=="automatic"?{name:"dashboard/marketing/slevy/ucitelnice/nastaveni"}:{name:"dashboard/marketing/slevy/autorske/nastaveni",params:{id:this.discount.id}}}},methods:{setDetail(){this.$store.commit("authorDiscountIndividual/setDetail",this.discount)}}};function OMt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link");return h(),W(a,{class:"dropdown-item btn-tertiary text-dark",to:r.routeTo,onClick:r.setDetail},{default:F(()=>[b(s,{icon:n.discount.state=="planned"?"edit":"show",class:"text-primary me-2"},null,8,["icon"]),z(" "+m(n.discount.state=="planned"?e.$t("public.update"):e.$t("public.show")),1)]),_:1},8,["to","onClick"])}const LMt=U(xMt,[["render",OMt]]),MMt={components:{AppIcon:Ue},props:{discount:{type:Object}},methods:{deletee(){this.discount.type!="automatic"&&this.$store.commit("authorDiscountIndividual/setDetail",this.discount),this.$store.dispatch("sidebar/open",{type:"author-discount-delete",data:this.discount})}}};function NMt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item btn-danger btn-tertiary text-dark",onClick:t[0]||(t[0]=(...a)=>r.deletee&&r.deletee(...a))},[b(s,{icon:"delete",class:"text-danger me-2"}),z(" "+m(e.$t("public.delete")),1)])}const RMt=U(MMt,[["render",NMt]]),jMt={components:{AppIcon:Ue},props:{discount:{type:Object}},methods:{deactivate(){this.discount.type!=="automatic"&&this.$store.commit("authorDiscountIndividual/setDetail",this.discount),this.$store.dispatch("sidebar/open",{type:"author-discount-deactivate",data:this.discount})}}};function FMt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item btn-danger btn-tertiary text-dark",onClick:t[0]||(t[0]=(...a)=>r.deactivate&&r.deactivate(...a))},[b(s,{icon:"close",class:"text-danger me-2"}),z(" "+m(e.$t("discount.deactivate.action")),1)])}const zMt=U(jMt,[["render",FMt]]),UMt={components:{AppIcon:Ue,ButtonDropdown:Eg}},BMt={type:"button",class:"btn btn-sm btn-light bg-white border-0 rounded"};function HMt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ButtonDropdown");return h(),W(a,{"drop-side":"start"},{button:F(()=>[c("button",BMt,[b(s,{icon:"menu-kebab",height:"20",width:"20"})])]),dropdown:F(()=>[Pt(e.$slots,"default")]),_:3})}const Za=U(UMt,[["render",HMt]]),VMt={props:{discount:{type:Object}},components:{TableButton:Za,AuthorDiscountDeactivateButton:zMt,AuthorDiscountDeleteButton:RMt,AuthorDiscountUpdateButton:LMt}};function qMt(e,t,n,o,i,r){const s=y("AuthorDiscountUpdateButton"),a=y("AuthorDiscountDeactivateButton"),l=y("AuthorDiscountDeleteButton"),d=y("TableButton");return h(),W(d,{class:"ms-auto"},{default:F(()=>[b(s,{discount:n.discount},null,8,["discount"]),n.discount.state=="active"?(h(),W(a,{key:0,discount:n.discount},null,8,["discount"])):D("",!0),n.discount.state=="planned"?(h(),W(l,{key:1,discount:n.discount},null,8,["discount"])):D("",!0)]),_:1})}const YMt=U(VMt,[["render",qMt]]),WMt={components:{FlexTableRow:ni,Pill:Ni,AuthorDiscountShareImageGenerate:DMt,TransitionCollapseHeight:qo,AppIcon:Ue,AuthorDiscountTableButton:YMt},props:{item:Object,toggled:Boolean},data(){return{moment:mt,shownIndex:-1}},methods:{pillColor(e){if(e.type=="automatic")return"warning-dark";switch(e.state){case"planned":return"muted";case"active":return"success";case"expired":return"muted"}}},watch:{toggled(e){e&&setTimeout(()=>{this.$refs.authorDiscountShareImageGenerate.generateAll()},500)}}},GMt={class:"col-12 col-sm-3 col-lg-2"},ZMt={class:"col-12 col-sm-3 col-lg-2"},KMt={class:"col-12 col-sm-3 col-lg-2"},JMt={class:"col-12 col-sm-3 col-lg-1"},XMt={class:"col-12 col-sm-12 col-lg-5 d-flex flex-column flex-sm-row align-items-start align-items-sm-center justify-content-between"},QMt={key:0,class:"row rounded bg-primary-5 p-3 mt-3"};function eNt(e,t,n,o,i,r){const s=y("Pill"),a=y("AppIcon"),l=y("AuthorDiscountTableButton"),d=y("AuthorDiscountShareImageGenerate"),u=y("TransitionCollapseHeight"),f=y("FlexTableRow");return h(),W(f,null,{default:F(()=>{var p;return[c("div",GMt,[b(s,{color:r.pillColor(n.item)},{default:F(()=>[z(m(n.item.type=="automatic"?e.$t("discount.automatic.title_short")+" UÄŤitelnice":e.$tm("discount.state")[n.item.state]),1)]),_:1},8,["color"])]),c("div",ZMt,m(i.moment(n.item.valid_from).format("DD.MM.YYYY")),1),c("div",KMt,m(e.$t("public.days",{count:n.item.duration})),1),c("div",JMt,m(n.item.discount+" %"),1),c("div",XMt,[z(m(n.item.type=="all_products"||n.item.type=="automatic"?e.$t("discount.type.all_products"):e.$t("product.materials_count",{count:(p=n.item.products)==null?void 0:p.length}))+" ",1),c("div",null,[c("button",{class:"btn btn-sm btn-tertiary",onClick:t[0]||(t[0]=v=>e.$emit("toggle"))},[z(m(e.$t("public.promote"))+" ",1),b(a,{icon:"toggled ? 'chevron-up' : 'chevron-down'"})]),b(l,{discount:n.item},null,8,["discount"])])]),b(u,null,{default:F(()=>[n.toggled?(h(),g("div",QMt,[b(d,{class:"w-100 w-lg-50",discount:n.item,ref:"authorDiscountShareImageGenerate"},null,8,["discount"])])):D("",!0)]),_:1})]}),_:1})}const tNt=U(WMt,[["render",eNt]]),nNt={components:{FlexTableHead:ti,AuthorDiscountTableRow:tNt},data(){return{moment:mt,shownIndex:-1}},computed:{...sn({individualList:e=>e.authorDiscountIndividual.list,automaticDiscount:e=>e.authorDiscountAutomatic.discount})}},oNt={class:"col-12 d-md-none"},iNt={class:"col-2 d-none d-md-block"},rNt={class:"col-2 d-none d-md-block"},sNt={class:"col-2 d-none d-md-block"},aNt={class:"col-1 d-none d-md-block"},lNt={class:"col-5 d-none d-md-block"};function cNt(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("AuthorDiscountTableRow");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",oNt,m(e.$t("discount.title_plural")),1),c("div",iNt,m(e.$t("public.state")),1),c("div",rNt,m(e.$t("public.date")),1),c("div",sNt,m(e.$t("public.duration")),1),c("div",aNt,m(e.$t("discount.title")),1),c("div",lNt,m(e.$t("discount.product_count")),1)]),_:1}),e.automaticDiscount.id?(h(),W(a,{key:0,class:"border-top border-bottom-none",item:e.automaticDiscount,onToggle:t[0]||(t[0]=l=>i.shownIndex=i.shownIndex===-2?-1:-2),toggled:i.shownIndex===-2},null,8,["item","toggled"])):D("",!0),(h(!0),g(pe,null,Me(e.individualList,(l,d)=>(h(),W(a,{key:d,class:J({"border-bottom-none":d==e.individualList.length-1}),item:l,onToggle:u=>i.shownIndex=i.shownIndex===d?-1:d,toggled:i.shownIndex===d},null,8,["class","item","onToggle","toggled"]))),128))])}const dNt=U(nNt,[["render",cNt]]),uNt={components:{AuthorDiscountTable:dNt,Loading:Rt},data(){return{primaryColor:window.primaryColor}},computed:{...sn({automaticDiscount:e=>e.authorDiscountAutomatic.discount,individualList:e=>e.authorDiscountIndividual.list,loading:e=>e.authorDiscountIndividual.loading})},mounted(){this.$store.dispatch("authorDiscountIndividual/index"),this.$store.dispatch("authorDiscountAutomatic/show")}},hNt={class:"content-box border border-primary-20 vl-parent"},fNt={class:"text-gray-700 mb-0"};function mNt(e,t,n,o,i,r){const s=y("Loading"),a=y("AuthorDiscountTable");return h(),g("div",hNt,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=l=>e.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("h4",null,m(e.$t("discount.planned.my.title")),1),c("p",fNt,m(e.individualList.length>0||e.automaticDiscount.id?e.$t("discount.planned.my.text"):e.$t("discount.planned.empty")),1),e.individualList.length>0||e.automaticDiscount.id?(h(),W(a,{key:0,class:"mt-4"})):D("",!0)])}const pNt=U(uNt,[["render",mNt]]),gNt={components:{Pill:Ni,AppIcon:Ue},data(){return{moment:mt}},computed:{...sn({discount:e=>e.discount.detail,automaticDiscount:e=>e.authorDiscountAutomatic.discount})},mounted(){this.$store.dispatch("discount/show"),this.$store.dispatch("authorDiscountAutomatic/show")}},vNt={class:"content-box border border-primary-20 vl-parent"},_Nt={class:"d-flex align-items-start justify-content-between mb-1"},yNt={class:"d-flex gap-2"},bNt={class:"mb-0"},kNt={class:"d-flex flex-column flex-md-row align-items-center justify-content-between gap-3 gap-md-6"},wNt={class:"medium text-gray-700 mb-0"},$Nt={key:0},CNt={key:0,class:"d-flex align-items-center text-success mt-2"},SNt={class:"medium mb-0"};function TNt(e,t,n,o,i,r){const s=y("Pill"),a=y("AppIcon"),l=y("router-link");return h(),g("div",vNt,[c("div",_Nt,[c("div",yNt,[c("h5",bNt,m(e.$t("discount.automatic.title_ucitelnice")),1),e.discount.id?(h(),W(s,{key:0,color:"warning-dark"},{default:F(()=>[z(m(i.moment(e.discount.valid_from_datetime).format("D. M.")+" - "+i.moment(e.discount.valid_to_datetime).format("D. M. YYYY")),1)]),_:1})):D("",!0)])]),c("div",kNt,[c("div",null,[c("p",wNt,[z(m(e.$t("discount.automatic.info.0"))+" ",1),e.discount.discount?(h(),g("span",$Nt,m(e.$t("discount.automatic.info.1",{amount:e.discount.discount})),1)):D("",!0)]),e.automaticDiscount.id?(h(),g("div",CNt,[c("p",SNt,m(e.$t("discount.automatic.set",{amount:e.automaticDiscount.discount})),1),b(a,{icon:"check",class:"ms-1"})])):D("",!0)]),c("div",null,[b(l,{to:{name:"dashboard/marketing/slevy/ucitelnice/nastaveni"},class:"btn btn-sm btn-tertiary btn-center text-nowrap"},{default:F(()=>[z(m(e.automaticDiscount.id?e.$t("public.update"):e.$t("discount.set"))+" ",1),b(a,{icon:"chevron-right",class:"ms-icon",width:20,height:20})]),_:1})])])])}const ENt=U(gNt,[["render",TNt]]),INt={components:{AppIcon:Ue},data(){return{maximum:2}},computed:{...sn({list:e=>e.authorDiscountIndividual.list,invalidYears:e=>e.authorDiscountIndividual.invalidYears}),maximumReached(){return this.invalidYears.includes(new Date().getFullYear())},limit(){return this.maximum-this.list.length}},methods:{resetDiscount(){this.$store.commit("authorDiscountIndividual/resetDetail")}},mounted(){this.$store.dispatch("authorDiscountIndividual/invalidYears")}},PNt={class:"content-box border border-primary-20"},ANt={class:"d-flex flex-column flex-md-row justify-content-between align-items-start flex-wrap mb-1"},DNt={class:"mb-1 mb-md-0"},xNt={key:0,class:"small mb-0"},ONt={key:1,class:"small mb-0"},LNt={class:"d-flex flex-column flex-md-row align-items-center justify-content-between gap-3 gap-md-6"},MNt={class:"text-gray-700 medium mb-0"};function NNt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link");return h(),g("div",PNt,[c("div",ANt,[c("h5",DNt,m(e.$t("discount.author.title")),1),c("div",{class:J(["d-flex align-items-center",r.limit>0&&!r.maximumReached?"text-gray-700":"text-danger"])},[b(s,{icon:"info-circle",class:"me-1",height:14,width:14,style:{"margin-bottom":"1px"}}),r.limit>0&&!r.maximumReached?(h(),g("p",xNt,m(e.$t("discount.individual.year_limit.text"))+" "+m(e.$tc("discount.individual.year_limit.limit",{count:r.limit})),1)):(h(),g("p",ONt,m(e.$t("discount.maximum_reached")),1))],2)]),c("div",LNt,[c("p",MNt,m(e.$t("discount.mine.text")),1),c("div",null,[b(a,{class:"btn btn-sm btn-center btn-tertiary text-nowrap",to:{name:"dashboard/marketing/slevy/autorske/nastaveni"},onClick:r.resetDiscount},{default:F(()=>[z(m(e.$t("discount.set"))+" ",1),b(s,{icon:"chevron-right",class:"ms-icon",width:20,height:20})]),_:1},8,["onClick"])])])])}const RNt=U(INt,[["render",NNt]]),jNt={components:{AuthorDiscountIndividualInfo:RNt,AuthorDiscountAutomaticInfo:ENt,Loading:Rt},data(){return{primaryColor:window.primaryColor}},computed:{...sn({loadingIndividual:e=>e.authorDiscountIndividual.loading,loadingAutomatic:e=>e.authorDiscountAutomatic.loading}),loading(){return this.loadingIndividual||this.loadingAutomatic}}},FNt={class:"content-box border border-primary-20 d-flex flex-column vl-parent gap-4"},zNt={class:"text-gray-700 mb-0"};function UNt(e,t,n,o,i,r){const s=y("Loading"),a=y("AuthorDiscountIndividualInfo"),l=y("AuthorDiscountAutomaticInfo");return h(),g("div",FNt,[b(s,{active:r.loading,"onUpdate:active":t[0]||(t[0]=d=>r.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",null,[c("h4",null,m(e.$t("discount.settings.title")),1),c("p",zNt,m(e.$t("discount.settings.info")),1)]),b(a),b(l)])}const BNt=U(jNt,[["render",UNt]]),HNt={components:{AuthorDiscountList:pNt,AuthorDiscountSettings:BNt}},VNt={class:"d-flex flex-column gap-4"};function qNt(e,t,n,o,i,r){const s=y("AuthorDiscountList"),a=y("AuthorDiscountSettings");return h(),g("div",VNt,[b(s),b(a)])}const YNt=U(HNt,[["render",qNt]]),WNt={validations:{valid_from:{required:Yt},duration:{required:Yt},discount:{required:Yt},type:{required:Yt}},computed:{...sn({id:e=>e.authorDiscountIndividual.detail.id,valid_from:e=>e.authorDiscountIndividual.detail.valid_from,duration:e=>e.authorDiscountIndividual.detail.duration,discount:e=>e.authorDiscountIndividual.detail.discount,type:e=>e.authorDiscountIndividual.detail.type,state:e=>e.authorDiscountIndividual.detail.state})},methods:{save(){window.eventBus.emit("author-discount-save"),this.v$.$touch(),!this.v$.$invalid&&(this.id?this.update():this.create())},create(){this.$store.dispatch("authorDiscountIndividual/create").then(()=>{this.$router.push({name:"dashboard/marketing/slevy/prehled"})})},update(){this.$store.dispatch("authorDiscountIndividual/update").then(()=>{this.$router.push({name:"dashboard/marketing/slevy/prehled"})})}},setup(){return{v$:Pn()}}};function GNt(e,t,n,o,i,r){return h(),g("button",{class:"btn btn-primary text-nowrap",onClick:t[0]||(t[0]=(...s)=>r.save&&r.save(...s))},m(e.$t("discount.plan.title")),1)}const ZNt=U(WNt,[["render",GNt]]);const KNt={props:{selected:{type:[Number,String],default:null},options:{type:Array,default:()=>[]},labels:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1}},computed:{selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}}},methods:{select(e){this.disabled||(this.selectedModel=e)}}},JNt={class:"d-flex flex-wrap gap-2"},XNt=["onClick"];function QNt(e,t,n,o,i,r){return h(),g("div",JNt,[(h(!0),g(pe,null,Me(n.options,(s,a)=>(h(),g("div",{key:a,class:J(["discount-select-badge medium fw-medium text-gray-800 px-4 py-2dot5 fw-light",{active:n.selected===s,disabled:n.disabled}]),onClick:l=>r.select(s)},m(n.labels.length?n.labels[a]:s),11,XNt))),128))])}const O6=U(KNt,[["render",QNt],["__scopeId","data-v-4ebb6035"]]),eRt={components:{BadgeSelect:O6},props:{disabled:{type:Boolean,default:!1}},computed:{amount:{get(){return this.$store.state.authorDiscountIndividual.detail.discount},set(e){this.$store.commit("authorDiscountIndividual/setDetailDiscount",e)}}},validations:{amount:{required:Yt}},setup(){return{v$:Pn()}},mounted(){window.eventBus.on("author-discount-save",()=>{this.v$.$touch()})}},tRt={class:"fw-medium mb-2"},nRt={class:"text-gray-700 mb-2"},oRt={key:0,class:"text-danger medium mt-2 mb-0"};function iRt(e,t,n,o,i,r){const s=y("BadgeSelect");return h(),g("div",null,[c("p",tRt,m(e.$t("discount.amount.title")),1),c("p",nRt,m(e.$t("discount.amount.info")),1),b(s,{options:[5,10,15,20],labels:["5 %","10 %","15 %","20 %"],selected:o.v$.amount.$model,"onUpdate:selected":t[0]||(t[0]=a=>o.v$.amount.$model=a),disabled:n.disabled},null,8,["selected","disabled"]),o.v$.amount.$error?(h(),g("p",oRt,m(e.$t("validation.required_value")),1)):D("",!0)])}const rRt=U(eRt,[["render",iRt]]),sRt={components:{BadgeSelect:O6},props:{disabled:{type:Boolean,default:!1}},computed:{duration:{get(){return this.$store.state.authorDiscountIndividual.detail.duration},set(e){this.$store.commit("authorDiscountIndividual/setDetailDuration",e)}}},validations:{duration:{required:Yt}},setup(){return{v$:Pn()}},mounted(){window.eventBus.on("author-discount-save",()=>{this.v$.$touch()})}},aRt={class:"fw-medium mb-2"},lRt={class:"text-gray-700 mb-2"},cRt={key:0,class:"text-danger medium mt-2 mb-0"};function dRt(e,t,n,o,i,r){const s=y("BadgeSelect");return h(),g("div",null,[c("p",aRt,m(e.$t("discount.duration.title")),1),c("p",lRt,m(e.$t("discount.duration.info")),1),b(s,{options:[1,2],labels:["1 den","2 dny"],selected:o.v$.duration.$model,"onUpdate:selected":t[0]||(t[0]=a=>o.v$.duration.$model=a),disabled:n.disabled},null,8,["selected","disabled"]),o.v$.duration.$error?(h(),g("p",cRt,m(e.$t("validation.required_value")),1)):D("",!0)])}const uRt=U(sRt,[["render",dRt]]),hRt={components:{AppIcon:Ue},props:{placeholder:{type:String,default:""},value:{type:String,default:""}},computed:{valueModel:{get(){return this.value},set(e){this.$emit("update:value",e)}}}},fRt={class:"input-group form-floating position-relative"},mRt=["placeholder"],pRt={class:"input-group-text bg-transparent"};function gRt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",fRt,[xe(c("input",{type:"text",placeholder:n.placeholder,class:"form-control flex-grow-1 border-end-0","onUpdate:modelValue":t[0]||(t[0]=a=>r.valueModel=a)},null,8,mRt),[[wt,r.valueModel]]),c("span",pRt,[b(s,{class:"h-100 cursor-pointer",icon:"search",width:20,height:20})])])}const vRt=U(hRt,[["render",gRt]]),_Rt={props:{image:{type:String,default:()=>null},alt:{type:String,default:()=>null},title:{type:String,default:()=>null},authorProductGroups:{type:Array,default:()=>[]}}},yRt={class:"d-flex align-items-center"},bRt=["src","alt"],kRt={class:"fw-medium mb-0"},wRt={class:"medium text-gray-700 mb-0"},$Rt={key:0};function CRt(e,t,n,o,i,r){return h(),g("div",yRt,[c("img",{src:n.image,alt:n.alt,width:"40",height:"40",class:"me-3"},null,8,bRt),c("div",null,[c("p",kRt,m(n.title),1),c("p",wRt,[(h(!0),g(pe,null,Me(n.authorProductGroups,(s,a)=>(h(),g("span",{key:a},[z(m(s)+" ",1),a!=n.authorProductGroups.length-1?(h(),g("span",$Rt,m(", "))):D("",!0)]))),128))])])])}const gle=U(_Rt,[["render",CRt]]),SRt={props:{selected:Array},computed:{...Oe({list:"authorProductGroup/getShown"}),selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}},options(){return this.list.map(e=>({id:e.id,label:e.title}))}},methods:{index(){this.$store.dispatch("authorProductGroup/index",{shown:!0})}},mounted(){this.index()}},TRt={class:"form-group form-floating"},ERt={for:"author-product-group-select",class:"form-label"};function IRt(e,t,n,o,i,r){const s=y("v-select");return h(),g("div",TRt,[b(s,{id:"author-product-group-select",class:"form-control",modelValue:r.selectedModel,"onUpdate:modelValue":t[0]||(t[0]=a=>r.selectedModel=a),reduce:a=>a.id,options:r.options,placeholder:e.$t("filter.placeholder.select"),multiple:""},null,8,["modelValue","reduce","options","placeholder"]),c("label",ERt,m(e.$t("author_product_group.title")),1)])}const PRt=U(SRt,[["render",IRt]]),ARt={components:{CategorySelect:oae},props:{selected:{type:Array,default:()=>[]}},data(){return{subjectsSelected:[]}},computed:{...Oe({categories:"category/getCategoriesForProducts"}),subjectsFiltered(){return this.categories.subject.filter(e=>!this.selectedModel.includes(e.id)&&!this.selectedModel.includes(e.parent_id))},selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}}},mounted(){this.$store.dispatch("category/loadForProducts","uploads")},watch:{subjectsSelected(){this.selectedModel=this.subjectsSelected.map(e=>e.id)}}};function DRt(e,t,n,o,i,r){const s=y("CategorySelect");return h(),W(s,{value:i.subjectsSelected,"onUpdate:value":t[0]||(t[0]=a=>i.subjectsSelected=a),categories:r.subjectsFiltered,label:e.$t("filter.subject"),multiple:""},null,8,["value","categories","label"])}const xRt=U(ARt,[["render",DRt]]),ORt={components:{AppIcon:Ue,InputSearch:vRt,ProductBlock:gle,AuthorProductGroupSelect:PRt,CategorySubjectSelect:xRt,Bootstrap5Pagination:Ri},data(){return{subjectsSelected:[],filter:{text:"",author_product_group:[],category:{subject:[]},page:1}}},computed:{...sn({count:e=>e.authorProducts.count,list:e=>e.authorProducts.list,listPaginated:e=>e.authorProducts.list_paginated,loading:e=>e.authorProducts.loading}),checked:{get(){return this.$store.state.authorDiscountIndividual.detail.products},set(e){this.$store.commit("authorDiscountIndividual/setDetailProducts",e)}}},methods:{appendToChecked(e){this.checked.includes(e.id)?this.checked=this.checked.filter(t=>t!==e.id):this.checked.push(e.id)},appendToCheckedAll(){this.checked.length===this.list.length?this.checked=[]:this.checked=this.list.map(e=>e.id)},loadProducts(){this.$store.dispatch("authorProducts/load",{available:!0,...this.filter}),this.$store.dispatch("authorProducts/load",{available:!0,perPage:10,...this.filter})},setPage(e){this.filter.page=e},setPageAndLoad(e){this.setPage(e),this.loadProducts()}},mounted(){this.loadProducts=is.debounce(this.loadProducts,500)},watch:{filter:{handler(){this.loadProducts()},deep:!0},subjectsSelected(){this.filter.category=this.subjectsSelected.join(",")}}},LRt={class:"d-flex flex-column gap-3"},MRt={class:"d-flex flex-column gap-3"},NRt={class:"row"},RRt={class:"col-12 col-lg-6"},jRt={class:"col-12 col-lg-3 mt-3 mt-lg-0"},FRt={class:"col-12 col-lg-3 mt-3 mt-lg-0"},zRt={class:"d-flex align-items-center bg-primary-5 text-gray-800 rounded medium fw-medium px-3 py-2"},URt=["onClick"];function BRt(e,t,n,o,i,r){const s=y("InputSearch"),a=y("AuthorProductGroupSelect"),l=y("CategorySubjectSelect"),d=y("AppIcon"),u=y("ProductBlock"),f=y("Bootstrap5Pagination");return h(),g("div",LRt,[c("div",MRt,[c("div",NRt,[c("div",RRt,[b(s,{placeholder:e.$t("product.search")+"...",value:i.filter.text,"onUpdate:value":t[0]||(t[0]=p=>i.filter.text=p)},null,8,["placeholder","value"])]),c("div",jRt,[b(a,{selected:i.filter.author_product_group,"onUpdate:selected":t[1]||(t[1]=p=>i.filter.author_product_group=p)},null,8,["selected"])]),c("div",FRt,[b(l,{selected:i.subjectsSelected,"onUpdate:selected":t[2]||(t[2]=p=>i.subjectsSelected=p)},null,8,["selected"])])])]),c("div",null,[c("div",zRt,[c("div",{onClick:t[3]||(t[3]=p=>r.appendToCheckedAll())},[e.list.length&&r.checked.length==e.list.length?(h(),W(d,{key:0,icon:"checkbox-on",width:24,height:24,class:"cursor-pointer text-success me-3"})):(h(),W(d,{key:1,icon:"checkbox-off",width:24,height:24,class:"cursor-pointer text-gray-500 me-3"}))]),z(" "+m(e.$t("public.select_all")+" ("+e.count+")"),1)]),(h(!0),g(pe,null,Me(e.listPaginated.data,(p,v)=>(h(),g("div",{key:v,class:J(["d-flex align-items-center p-3 bg-primary-5-hover border-bottom",{"border-bottom-none":v==e.listPaginated.data.length-1}])},[c("div",{onClick:_=>r.appendToChecked(p)},[r.checked.includes(p.id)?(h(),W(d,{key:0,icon:"checkbox-on",width:24,height:24,class:"cursor-pointer text-success me-3"})):(h(),W(d,{key:1,icon:"checkbox-off",width:24,height:24,class:"cursor-pointer text-gray-500 me-3"}))],8,URt),b(u,{image:p.cover_img_thumbnail,alt:p.title,title:p.title,"author-product-groups":p.author_product_groups},null,8,["image","alt","title","author-product-groups"])],2))),128)),e.loading?D("",!0):(h(),W(f,{key:0,class:"mt-4 z-index-neg-1",data:e.listPaginated,onPaginationChangePage:r.setPageAndLoad,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])])}const HRt=U(ORt,[["render",BRt]]),VRt={components:{ProductBlock:gle},props:{disabled:{type:Boolean,default:!1}},data(){return{showButton:-1}},computed:{...Oe({products:"authorProducts/getList"}),checked:{get(){return this.$store.state.authorDiscountIndividual.detail.products},set(e){this.$store.commit("authorDiscountIndividual/setDetailProducts",e)}},productsFiltered(){return this.products.filter(e=>this.checked.includes(e.id))}}},qRt=["onMouseover"],YRt=["onClick"];function WRt(e,t,n,o,i,r){const s=y("ProductBlock");return h(),g("div",null,[(h(!0),g(pe,null,Me(r.productsFiltered,(a,l)=>(h(),g("div",{key:l,class:J(["d-flex justify-content-between align-items-center p-3 border-bottom",{"border-bottom-none":l==r.productsFiltered.length-1,"bg-primary-5-hover":!n.disabled}]),onMouseover:d=>i.showButton=l,onMouseleave:t[0]||(t[0]=d=>i.showButton=-1)},[b(s,{image:a.cover_img_thumbnail,alt:a.title,title:a.title,"author-product-groups":a.author_product_groups},null,8,["image","alt","title","author-product-groups"]),xe(c("button",{class:"btn btn-secondary btn-sm btn-danger",onClick:d=>r.checked=r.checked.filter(u=>u!==a.id)},m(e.$t("public.remove")),9,YRt),[[Vo,i.showButton==l&&!n.disabled]])],42,qRt))),128))])}const GRt=U(VRt,[["render",WRt]]),ZRt={props:{titles:Array,tabNames:Array,initTab:{type:[String,Number],default(){return null}},notifications:{type:Array,default(){return[]}},paddingX:{type:Number,default:0},value:{type:[String,Number],default(){return null}},disabled:{type:Boolean,default:!1}},computed:{valueModel:{get(){return this.value},set(e){this.$emit("update:value",e)}}},methods:{navigate(e){this.disabled||(this.valueModel=e)}},mounted(){this.valueModel=this.initTab?this.initTab:this.tabNames[0]}},KRt={class:"tabs"},JRt=["onClick"];function XRt(e,t,n,o,i,r){return h(),g("div",KRt,[c("ul",{class:J(["tabList","px-"+n.paddingX])},[(h(!0),g(pe,null,Me(n.titles,(s,a)=>(h(),g("li",{key:a,onClick:l=>r.navigate(n.tabNames[a]),class:J([r.valueModel===n.tabNames[a]&&"active",{"cursor-default":n.disabled}])},[z(m(s)+" ",1),n.notifications[a]&&n.notifications[a].number!==0?(h(),g("span",{key:0,class:J(["notification","notification-"+n.notifications[a].color])},m(n.notifications[a].number),3)):D("",!0)],10,JRt))),128))],2)])}const JL=U(ZRt,[["render",XRt]]),QRt={components:{TabListNoVueRouter:JL,AuthorDiscountIndividualProductSelectList:HRt,AuthorDiscountIndividualProductSelectedList:GRt,Loading:Rt},props:{disabled:{type:Boolean,default:!1}},data(){return{type:"list",primaryColor:window.primaryColor}},computed:{checked(){return this.$store.state.authorDiscountIndividual.detail.products},...sn({loading:e=>e.authorProducts.loading})},mounted(){this.$store.dispatch("authorProducts/load",{available:!0}),this.$store.dispatch("authorProducts/load",{available:!0,perPage:10}),this.disabled&&(this.type="selected")}},ejt={class:"d-flex flex-column gap-3"},tjt={class:"vl-parent mh-4rem"};function njt(e,t,n,o,i,r){const s=y("TabListNoVueRouter"),a=y("Loading"),l=y("AuthorDiscountIndividualProductSelectList"),d=y("AuthorDiscountIndividualProductSelectedList");return h(),g("div",ejt,[b(s,{titles:["Seznam materiálĹŻ","VybranĂ© materiály"],"tab-names":["list","selected"],notifications:[{number:0,color:"success"},{number:r.checked.length,color:"success-dark"}],value:i.type,"onUpdate:value":t[0]||(t[0]=u=>i.type=u),disabled:n.disabled},null,8,["notifications","value","disabled"]),c("div",tjt,[b(a,{active:e.loading,"onUpdate:active":t[1]||(t[1]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),i.type=="list"?(h(),W(l,{key:0})):D("",!0),i.type=="selected"?(h(),W(d,{key:1,disabled:n.disabled},null,8,["disabled"])):D("",!0)])])}const ojt=U(QRt,[["render",njt]]),ijt={components:{BadgeSelect:O6,AuthorDiscountIndividualProductSelect:ojt},props:{disabled:{type:Boolean,default:!1}},computed:{type:{get(){return this.$store.state.authorDiscountIndividual.detail.type},set(e){this.$store.commit("authorDiscountIndividual/setDetailType",e)}}},validations:{type:{required:Yt}},setup(){return{v$:Pn()}},mounted(){window.eventBus.on("author-discount-save",()=>{this.v$.$touch()})}},rjt={class:"fw-medium mb-2"},sjt={class:"text-gray-700 mb-2"},ajt={key:1,class:"text-danger medium mt-2 mb-0"};function ljt(e,t,n,o,i,r){const s=y("BadgeSelect"),a=y("AuthorDiscountIndividualProductSelect");return h(),g("div",null,[c("p",rjt,m(e.$t("discount.product_selection.title")),1),c("p",sjt,m(e.$t("discount.product_selection.info")),1),b(s,{options:["all_products","selected_products"],labels:[e.$t("discount.type.all_products"),e.$t("discount.type.select_products")],selected:o.v$.type.$model,"onUpdate:selected":t[0]||(t[0]=l=>o.v$.type.$model=l),disabled:n.disabled},null,8,["labels","selected","disabled"]),r.type=="selected_products"?(h(),W(a,{key:0,class:"mt-5",disabled:n.disabled},null,8,["disabled"])):D("",!0),o.v$.type.$error?(h(),g("p",ajt,m(e.$t("validation.required_value")),1)):D("",!0)])}const cjt=U(ijt,[["render",ljt]]),mr={timezone:"Europe/Prague",datetime_format:"D[.] M[.] Y H:mm",date_format:"D[.] M[.] Y",time_format:"H:mm",date_locale:"cs-CZ",recaptcha_site_key:"6LfT47IaAAAAAATJyFKDBjElWyNGOZ-SxWYFc07_",url:"www.ucitelnice.cz"},djt={components:{AppIcon:Ue},props:{value:{type:[Object,String],default(){return null}},placeholder:String,name:String,label:{type:String,default:null},mode:{type:String,default:"date"},hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},auto:{type:Boolean,default:!1},minDate:{type:[Object,String],default:null},maxDate:{type:[Object,String],default:null},openOnHover:{type:Boolean,default:!1},isSmallLabel:{type:Boolean,default:!1},disabledInput:{type:Boolean,default:!1}},data(){return{timezone:mr.timezone,locale:mr.date_locale}},computed:{valueModel:{get(){return this.value},set(e){this.$emit("update:value",e)}}},methods:{reset(){this.valueModel=null},openCalendar(){this.disabledInput||this.$refs.calendar.showPopover()}}},ujt={class:"input-group cursor-pointer form-floating"},hjt=["value","placeholder","name"];function fjt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("date-picker");return h(),W(a,{mode:n.mode,modelValue:r.valueModel,"onUpdate:modelValue":t[2]||(t[2]=l=>r.valueModel=l),"max-date":n.maxDate,"min-date":n.minDate,timezone:i.timezone,ref:"calendar",locale:i.locale,popover:{visibility:n.openOnHover?"hover-focus":"focus"},is24hr:"","hide-time-header":"",disabled:""},{default:F(({inputValue:l,inputEvents:d})=>[c("div",ujt,[c("input",Ur(e.$attrs,{class:"cursor-pointer border-end-none",value:l},Yu(d,!0),{placeholder:n.placeholder,autocomplete:"off",name:n.name}),null,16,hjt),n.label?(h(),g("label",{key:0,class:J(["form-label",{small:n.isSmallLabel}])},m(n.label),3)):D("",!0),r.valueModel?(h(),g("span",{key:1,class:"input-group-text",onClick:t[0]||(t[0]=(...u)=>r.reset&&r.reset(...u))},[b(s,{icon:"close",height:"20",width:"20"})])):D("",!0),c("span",{class:J(["input-group-text right-border-radius-fix",{"cursor-default border-gray-300":n.disabledInput}]),onClick:t[1]||(t[1]=(...u)=>r.openCalendar&&r.openCalendar(...u))},[b(s,{icon:"calendar",height:"24",width:"24",class:J(["bg-white",n.disabledInput?"text-gray-300":"text-primary"])},null,8,["class"])],2)])]),_:1},8,["mode","modelValue","max-date","min-date","timezone","locale","popover"])}const dd=U(djt,[["render",fjt]]),mjt={components:{DateSinglePicker:dd},props:{disabled:{type:Boolean,default:!1}},validations:{validFrom:{required:Yt}},data(){return{moment:mt}},computed:{validFrom:{get(){return this.$store.state.authorDiscountIndividual.detail.valid_from},set(e){this.$store.commit("authorDiscountIndividual/setDetailValidFrom",e)}},...sn({invalidDates:e=>e.authorDiscountIndividual.invalidDates,invalidYears:e=>e.authorDiscountIndividual.invalidYears}),invalidDatesFormated(){const e=new Date().toISOString().split("T")[0];return this.invalidDates.filter(n=>n[1]>e).map(n=>n[0]<e?[e,n[1]]:n)},invalidYearsFormated(){const e=new Date().getFullYear(),t=new Date().toISOString().split("T")[0];return this.invalidYears.map(n=>n===e?[t,`${n}-12-31`]:[`${n}-1-1`,`${n}-12-31`])},invalidMerged(){return this.invalidDatesFormated.concat(this.invalidYearsFormated)}},setup(){return{v$:Pn()}},mounted(){window.eventBus.on("author-discount-save",()=>{this.v$.$touch()})}},pjt={class:"fw-medium mb-2"},gjt={class:"text-gray-700 mb-2"},vjt={class:"w-30rem"},_jt={key:0,class:"text-danger medium mt-2 mb-0"};function yjt(e,t,n,o,i,r){const s=y("DateSinglePicker");return h(),g("div",null,[c("p",pjt,m(e.$t("discount.start.title")),1),c("p",gjt,m(e.$t("discount.start.info")),1),c("div",vjt,[b(s,{id:"valid_from",name:"valid_from",class:"form-control",mode:"date",placeholder:"DD.MM.YYYY","min-date":new Date().toISOString(),value:o.v$.validFrom.$model,"onUpdate:value":t[0]||(t[0]=a=>o.v$.validFrom.$model=a),"disabled-dates":r.invalidMerged,disabled:n.disabled,"disabled-input":n.disabled},null,8,["min-date","value","disabled-dates","disabled","disabled-input"])]),o.v$.validFrom.$error?(h(),g("p",_jt,m(e.$t("validation.required_value")),1)):D("",!0)])}const bjt=U(mjt,[["render",yjt]]),kjt={components:{AppIcon:Ue,AuthorDiscountIndividualSaveButton:ZNt,AuthorDiscountIndividualValidFrom:bjt,AuthorDiscountIndividualDuration:uRt,AuthorDiscountIndividualAmount:rRt,AuthorDiscountIndividualProducts:cjt,Loading:Rt},computed:{...sn({loading:e=>e.authorDiscountIndividual.loading,state:e=>e.authorDiscountIndividual.detail.state})},data(){return{primaryColor:window.primaryColor}},mounted(){this.$route.params.id?this.$store.dispatch("authorDiscountIndividual/show",this.$route.params.id).then(()=>{this.$store.dispatch("authorDiscountIndividual/invalidDates"),this.$store.dispatch("authorDiscountIndividual/invalidYears")}):(this.$store.dispatch("authorDiscountIndividual/invalidDates"),this.$store.dispatch("authorDiscountIndividual/invalidYears"))}},wjt={class:"content-box border border-primary-20 d-flex flex-column gap-5 vl-parent"},$jt={class:"d-flex flex-column flex-sm-row align-items-start justify-content-between gap-3 gap-sm-5"},Cjt={class:"d-flex align-items-center mb-3"},Sjt={class:"cursor-pointer bg-gray-300-hover border-circle w-2rem h-2rem btn-center me-icon"},Tjt={class:"mb-0"},Ejt={class:"text-gray-700 mb-0"};function Ijt(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("router-link"),d=y("AuthorDiscountIndividualSaveButton"),u=y("AuthorDiscountIndividualValidFrom"),f=y("AuthorDiscountIndividualDuration"),p=y("AuthorDiscountIndividualAmount"),v=y("AuthorDiscountIndividualProducts");return h(),g("div",wjt,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=_=>e.loading=_),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",$jt,[c("div",null,[c("div",Cjt,[b(l,{to:{name:"dashboard/marketing/slevy/prehled"}},{default:F(()=>[c("div",Sjt,[b(a,{icon:"chevron-left",height:24,width:24,class:"text-dark"})])]),_:1}),c("h4",Tjt,m(e.$t("discount.plan.title")),1)]),c("p",Ejt,m(e.$t("discount.plan.info")),1)]),!e.state||e.state=="planned"?(h(),W(d,{key:0})):D("",!0)]),b(u,{disabled:e.state=="active"||e.state=="expired"},null,8,["disabled"]),b(f,{disabled:e.state=="active"||e.state=="expired"},null,8,["disabled"]),b(p,{disabled:e.state=="active"||e.state=="expired"},null,8,["disabled"]),b(v,{disabled:e.state=="active"||e.state=="expired"},null,8,["disabled"])])}const Pjt=U(kjt,[["render",Ijt]]),Ajt={components:{BadgeSelect:O6,CheckboxInput:ba},props:{disabled:{type:Boolean,default:!1},tooltip:{type:String,default:null}},data(){return{discountOptions:sh.discount.allowed_amounts,loaded:!1}},computed:{...sn({authorDiscountAutomatic:e=>e.authorDiscountAutomatic.discount}),deactivated(){return!this.authorDiscountAutomatic.discount}},methods:{deactivate(){this.authorDiscountAutomatic.discount=null}},mounted(){this.$store.dispatch("authorDiscountAutomatic/show").then(()=>{setTimeout(()=>{this.loaded=!0},1e3)})}},Djt={class:"d-flex flex-column gap-3"},xjt={class:"d-flex flex-wrap gap-2"};function Ojt(e,t,n,o,i,r){const s=y("BadgeSelect"),a=y("CheckboxInput"),l=an("tooltip");return h(),g("div",Djt,[xe((h(),g("div",xjt,[c("div",{class:J(["discount-select-badge medium fw-medium text-gray-800 px-4 py-2dot5 fw-light",{active:r.deactivated,disabled:n.disabled}]),onClick:t[0]||(t[0]=(...d)=>r.deactivate&&r.deactivate(...d))},m(e.$t("discount.automatic.ignore")),3),b(s,{selected:e.authorDiscountAutomatic.discount,"onUpdate:selected":t[1]||(t[1]=d=>e.authorDiscountAutomatic.discount=d),options:i.discountOptions,disabled:n.disabled,labels:["Sleva 5 %","Sleva 10 %","Sleva 15 %","Sleva 20 %"]},null,8,["selected","options","disabled"])])),[[l,{content:n.tooltip,triggers:["hover","click"]}]]),b(a,{id:"discount-keep",value:e.authorDiscountAutomatic.kept,"onUpdate:value":t[2]||(t[2]=d=>e.authorDiscountAutomatic.kept=d),label:e.$t("discount.automatic.keep"),disabled:n.disabled},null,8,["value","label","disabled"])])}const Ljt=U(Ajt,[["render",Ojt]]),Mjt={components:{Loading:Rt,AppIcon:Ue,DiscountAutomaticSelect:Ljt},data(){return{primaryColor:window.primaryColor,moment:mt}},computed:{...sn({individualLoading:e=>e.authorDiscountIndividual.loading,individualList:e=>e.authorDiscountIndividual.list,automaticLoading:e=>e.authorDiscountAutomatic.loading,automaticDiscount:e=>e.authorDiscountAutomatic.discount,automaticSettings:e=>e.authorDiscountAutomatic.settings,discount:e=>e.discount.detail}),loading(){return this.individualLoading||this.automaticLoading},disabled(){return this.collidingIndividualDiscount!==void 0},disabledTooltip(){return this.disabled?this.$t("discount.automatic.disabled_tooltip",{from:this.collidingFrom,to:this.collidingTo}):null},collidingIndividualDiscount(){return this.individualList.find(e=>this.automaticSettings.valid_from_iso<e.valid_to&&this.automaticSettings.valid_to_iso>e.valid_from&&e.is_active)},collidingFrom(){return this.collidingIndividualDiscount?mt(this.collidingIndividualDiscount.valid_from).format("DD.MM."):null},collidingTo(){return this.collidingIndividualDiscount?mt(this.collidingIndividualDiscount.valid_to).format("DD.MM.YYYY"):null}},methods:{openModal(){window.appModal("discount-automatic-info")},automaticUpdate(){this.$store.dispatch("authorDiscountAutomatic/update").then(()=>{this.$router.push("/dashboard/marketing/slevy/prehled")})}},mounted(){this.$store.dispatch("authorDiscountIndividual/index"),this.$store.dispatch("authorDiscountAutomatic/showSettings"),this.$store.dispatch("authorDiscountAutomatic/show"),this.$store.dispatch("discount/show")}},Njt={class:"content-box border border-primary-20 vl-parent"},Rjt={class:"d-flex flex-column gap-4"},jjt={class:"d-flex justify-content-between align-items-center gap-4"},Fjt={class:"d-flex align-items-center"},zjt={class:"cursor-pointer bg-gray-300-hover border-circle w-2rem h-2rem btn-center me-icon"},Ujt={class:"mb-0"},Bjt={class:"fw-bold"},Hjt={class:"text-gray-700 mb-0"},Vjt={key:0},qjt={key:1},Yjt={class:"fw-bold"},Wjt={class:"text-gray-700 mb-0"};function Gjt(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("router-link"),d=y("DiscountAutomaticSelect");return h(),g("div",Njt,[b(s,{active:r.loading,"onUpdate:active":t[0]||(t[0]=u=>r.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",Rjt,[c("div",jjt,[c("div",Fjt,[b(l,{to:{name:"dashboard/marketing/slevy/prehled"}},{default:F(()=>[c("div",zjt,[b(a,{icon:"chevron-left",height:24,width:24,class:"text-dark"})])]),_:1}),c("h4",Ujt,m(e.$t("discount.automatic.title_long")),1)]),c("div",{class:"link-primary text-nowrap cursor-pointer",onClick:t[1]||(t[1]=(...u)=>r.openModal&&r.openModal(...u))},m(e.$t("discount.automatic.how_it_works")),1)]),c("div",null,[c("h5",Bjt,m(e.$t("discount.automatic.calendar.title")),1),c("p",Hjt,[e.discount&&e.discount.id?(h(),g("span",Vjt,m(e.$t("discount.automatic.calendar.text",{from:i.moment(e.discount.valid_from_datetime).format("D. M."),to:i.moment(e.discount.valid_to_datetime).format("D. M. YYYY")})),1)):(h(),g("span",qjt,m(e.$t("discount.automatic.info_no_discount")),1))])]),c("div",null,[c("h5",Yjt,m(e.$t("discount.automatic.add.title")),1),c("p",Wjt,m(e.$t("discount.automatic.add.text")),1)]),b(d,{disabled:r.disabled,tooltip:r.disabledTooltip},null,8,["disabled","tooltip"]),c("div",null,[c("button",{class:"btn btn-primary",onClick:t[2]||(t[2]=(...u)=>r.automaticUpdate&&r.automaticUpdate(...u))},m(e.$t("public.save")),1)])])])}const Zjt=U(Mjt,[["render",Gjt]]),Kjt={methods:{create(){this.$store.dispatch("authorProductGroup/showOrCreate"),this.$store.dispatch("sidebar/open",{type:"author-product-group-create"})}}};function Jjt(e,t,n,o,i,r){const s=y("app-icon");return h(),g("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[0]||(t[0]=(...a)=>r.create&&r.create(...a))},[z(m(e.$t("author_product_group.create.button"))+" ",1),b(s,{icon:"plus-circle",class:"ms-icon"})])}const Xjt=U(Kjt,[["render",Jjt]]),Qjt={props:{group:Object},methods:{update(){let e=window._.cloneDeep(this.group);this.$store.commit("authorProductGroup/setDetail",e),this.$store.dispatch("authorProductGroup/products"),this.$store.dispatch("authorProductGroup/productsAdded"),this.$store.dispatch("sidebar/open",{type:"author-product-group-update"})}}};function eFt(e,t,n,o,i,r){const s=y("app-icon");return h(),g("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[0]||(t[0]=(...a)=>r.update&&r.update(...a))},[b(s,{icon:"edit"})])}const vle=U(Qjt,[["render",eFt]]),tFt={components:{AppIcon:Ue},props:{group:Object},methods:{openSidebar(){this.$store.dispatch("sidebar/open",{type:"author-product-group-delete",data:{group:this.group}})}}},nFt={class:"text-gray-900"};function oFt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item d-flex align-items-center btn-danger btn-tertiary medium",onClick:t[0]||(t[0]=(...a)=>r.openSidebar&&r.openSidebar(...a))},[b(s,{icon:"delete",class:"me-2"}),c("span",nFt,m(e.$t("public.delete")),1)])}const _le=U(tFt,[["render",oFt]]),iFt={components:{AppIcon:Ue},props:{id:Number,hidden:Boolean},methods:{hide(){this.$store.dispatch("authorProductGroup/hiddenToggle",{id:this.id})}}},rFt={class:"text-gray-900"};function sFt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item d-flex align-items-center btn-tertiary medium",onClick:t[0]||(t[0]=(...a)=>r.hide&&r.hide(...a))},[b(s,{icon:n.hidden?"show":"hide",class:"me-2"},null,8,["icon"]),c("span",rFt,m(n.hidden?e.$t("public.show"):e.$t("public.hide")),1)])}const yle=U(iFt,[["render",sFt]]),aFt={components:{TableButton:Za,AppIcon:Ue},props:{image:String,imageWidth:String,imageHeight:String,isMovable:{type:Boolean,default:!1},index:Number},computed:{imageSizeStyle(){return"width: "+this.imageWidth+"px; height: "+this.imageHeight+"px;"}}},lFt={class:"d-flex justify-content-between align-items-center"},cFt={class:"d-flex align-items-center"},dFt={class:"d-flex flex-column flex-xl-row align-items-start align-items-xl-center"},uFt={class:"d-flex flex-column flex-md-row align-items-start align-items-md-center"},hFt=["src","width","height"],fFt={key:1,class:"text-truncate fw-bold ms-3"},mFt={key:0,class:"flex-grow-1 ms-3 ms-xl-5"},pFt={class:"small mb-0"},gFt={class:"d-flex flex-wrap justify-content-end align-items-center"},vFt={key:0,class:"px-2 border-end-2"},_Ft={key:1,class:"d-flex gap-1 px-2 border-end-2"};function yFt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("TableButton");return h(),g("div",{class:J(["bg-white rounded shadow-low pe-1 ps-3 py-2",{"cursor-all-scroll":n.isMovable}])},[c("div",lFt,[c("div",cFt,[c("div",null,[n.isMovable?(h(),W(s,{key:0,icon:"grip-dots-vertical",width:"24",height:"24","icon-color":"#99AFF5"})):D("",!0)]),c("div",dFt,[c("div",uFt,[n.image?(h(),g(pe,{key:0},[n.image=="gradient"?(h(),g("div",{key:0,class:J(["rounded ms-3","empty-image-"+n.index%6]),style:Bn(r.imageSizeStyle)},null,6)):(h(),g("img",{key:1,src:n.image,width:n.imageWidth,height:n.imageHeight,class:"border rounded ms-3"},null,8,hFt))],64)):D("",!0),e.$slots.title?(h(),g("div",fFt,[Pt(e.$slots,"title")])):D("",!0)]),e.$slots.description?(h(),g("div",mFt,[c("p",pFt,[Pt(e.$slots,"description")])])):D("",!0)])]),c("div",gFt,[e.$slots.tags?(h(),g("div",vFt,[Pt(e.$slots,"tags")])):D("",!0),e.$slots.buttons?(h(),g("div",_Ft,[Pt(e.$slots,"buttons")])):D("",!0),e.$slots.dotsButton?(h(),W(a,{key:2,class:"mx-1"},{default:F(()=>[Pt(e.$slots,"dotsButton")]),_:3})):D("",!0)])])],2)}const yh=U(aFt,[["render",yFt]]),bFt={components:{AppIcon:Ue},props:{count:{type:Number,default:0}}},kFt={class:"badge rounded-pill small px-2 py-1 fw-light bg-secondary text-primary"};function wFt(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return xe((h(),g("span",kFt,[b(s,{icon:"materials",width:"12",height:"12",class:"me-0dot5"}),z(" "+m(n.count||n.count==0?n.count:"?"),1)])),[[a,{content:e.$t("product.count"),delay:{show:500,hide:100},triggers:["hover","click"]}]])}const Ig=U(bFt,[["render",wFt]]);var ble={exports:{}};/**! * Sortable 1.14.0 * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT */function IY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function lh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IY(Object(n),!0).forEach(function(o){$Ft(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IY(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function b4(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b4=function(t){return typeof t}:b4=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b4(e)}function $Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function id(){return id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},id.apply(this,arguments)}function CFt(e,t){if(e==null)return{};var n={},o=Object.keys(e),i,r;for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function SFt(e,t){if(e==null)return{};var n=CFt(e,t),o,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function TFt(e){return EFt(e)||IFt(e)||PFt(e)||AFt()}function EFt(e){if(Array.isArray(e))return eA(e)}function IFt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PFt(e,t){if(e){if(typeof e=="string")return eA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eA(e,t)}}function eA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function AFt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var DFt="1.14.0";function gf(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var jf=gf(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ek=gf(/Edge/i),PY=gf(/firefox/i),K0=gf(/safari/i)&&!gf(/chrome/i)&&!gf(/android/i),kle=gf(/iP(ad|od|hone)/i),xFt=gf(/chrome/i)&&gf(/android/i),wle={capture:!1,passive:!1};function Ko(e,t,n){e.addEventListener(t,n,!jf&&wle)}function zo(e,t,n){e.removeEventListener(t,n,!jf&&wle)}function s$(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function OFt(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function xd(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&s$(e,t):s$(e,t))||o&&e===n)return e;if(e===n)break}while(e=OFt(e))}return null}var AY=/\s+/g;function hr(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(AY," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(AY," ")}}function An(e,t,n){var o=e&&e.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function M1(e,t){var n="";if(typeof e=="string")n=e;else do{var o=An(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function $le(e,t,n){if(e){var o=e.getElementsByTagName(t),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function Qu(){var e=document.scrollingElement;return e||document.documentElement}function sr(e,t,n,o,i){if(!(!e.getBoundingClientRect&&e!==window)){var r,s,a,l,d,u,f;if(e!==window&&e.parentNode&&e!==Qu()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,d=r.right,u=r.height,f=r.width):(s=0,a=0,l=window.innerHeight,d=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!jf))do if(i&&i.getBoundingClientRect&&(An(i,"transform")!=="none"||n&&An(i,"position")!=="static")){var p=i.getBoundingClientRect();s-=p.top+parseInt(An(i,"border-top-width")),a-=p.left+parseInt(An(i,"border-left-width")),l=s+r.height,d=a+r.width;break}while(i=i.parentNode);if(o&&e!==window){var v=M1(i||e),_=v&&v.a,k=v&&v.d;v&&(s/=k,a/=_,f/=_,u/=k,l=s+u,d=a+f)}return{top:s,left:a,bottom:l,right:d,width:f,height:u}}}function DY(e,t,n){for(var o=Rm(e,!0),i=sr(e)[t];o;){var r=sr(o)[n],s=void 0;if(n==="top"||n==="left"?s=i>=r:s=i<=r,!s)return o;if(o===Qu())break;o=Rm(o,!1)}return!1}function ry(e,t,n,o){for(var i=0,r=0,s=e.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==Jn.ghost&&(o||s[r]!==Jn.dragged)&&xd(s[r],n.draggable,e,!1)){if(i===t)return s[r];i++}r++}return null}function XL(e,t){for(var n=e.lastElementChild;n&&(n===Jn.ghost||An(n,"display")==="none"||t&&!s$(n,t));)n=n.previousElementSibling;return n||null}function Er(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Jn.clone&&(!t||s$(e,t))&&n++;return n}function xY(e){var t=0,n=0,o=Qu();if(e)do{var i=M1(e),r=i.a,s=i.d;t+=e.scrollLeft*r,n+=e.scrollTop*s}while(e!==o&&(e=e.parentNode));return[t,n]}function LFt(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n)}return-1}function Rm(e,t){if(!e||!e.getBoundingClientRect)return Qu();var n=e,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=An(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Qu();if(o||t)return n;o=!0}}while(n=n.parentNode);return Qu()}function MFt(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function LT(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var J0;function Cle(e,t){return function(){if(!J0){var n=arguments,o=this;n.length===1?e.call(o,n[0]):e.apply(o,n),J0=setTimeout(function(){J0=void 0},t)}}}function NFt(){clearTimeout(J0),J0=void 0}function Sle(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function QL(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function OY(e,t){An(e,"position","absolute"),An(e,"top",t.top),An(e,"left",t.left),An(e,"width",t.width),An(e,"height",t.height)}function MT(e){An(e,"position",""),An(e,"top",""),An(e,"left",""),An(e,"width",""),An(e,"height","")}var ha="Sortable"+new Date().getTime();function RFt(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(An(i,"display")==="none"||i===Jn.ghost)){e.push({target:i,rect:sr(i)});var r=lh({},e[e.length-1].rect);if(i.thisAnimationDuration){var s=M1(i,!0);s&&(r.top-=s.f,r.left-=s.e)}i.fromRect=r}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(LFt(e,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var r=!1,s=0;e.forEach(function(a){var l=0,d=a.target,u=d.fromRect,f=sr(d),p=d.prevFromRect,v=d.prevToRect,_=a.rect,k=M1(d,!0);k&&(f.top-=k.f,f.left-=k.e),d.toRect=f,d.thisAnimationDuration&<(p,f)&&!LT(u,f)&&(_.top-f.top)/(_.left-f.left)===(u.top-f.top)/(u.left-f.left)&&(l=FFt(_,p,v,i.options)),LT(f,u)||(d.prevFromRect=u,d.prevToRect=f,l||(l=i.options.animation),i.animate(d,_,f,l)),l&&(r=!0,s=Math.max(s,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof o=="function"&&o()},s):typeof o=="function"&&o(),e=[]},animate:function(o,i,r,s){if(s){An(o,"transition",""),An(o,"transform","");var a=M1(this.el),l=a&&a.a,d=a&&a.d,u=(i.left-r.left)/(l||1),f=(i.top-r.top)/(d||1);o.animatingX=!!u,o.animatingY=!!f,An(o,"transform","translate3d("+u+"px,"+f+"px,0)"),this.forRepaintDummy=jFt(o),An(o,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),An(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){An(o,"transition",""),An(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},s)}}}}function jFt(e){return e.offsetWidth}function FFt(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}var wv=[],NT={initializeByDefault:!0},tk={mount:function(t){for(var n in NT)NT.hasOwnProperty(n)&&!(n in t)&&(t[n]=NT[n]);wv.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),wv.push(t)},pluginEvent:function(t,n,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var r=t+"Global";wv.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][r]&&n[s.pluginName][r](lh({sortable:n},o)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](lh({sortable:n},o)))})},initializePlugins:function(t,n,o,i){wv.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var d=new a(t,n,t.options);d.sortable=t,d.options=t.options,t[l]=d,id(o,d.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,n){var o={};return wv.forEach(function(i){typeof i.eventProperties=="function"&&id(o,i.eventProperties.call(n[i.pluginName],t))}),o},modifyOption:function(t,n,o){var i;return wv.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(i=r.optionListeners[n].call(t[r.pluginName],o))}),i}};function v0(e){var t=e.sortable,n=e.rootEl,o=e.name,i=e.targetEl,r=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,d=e.newIndex,u=e.oldDraggableIndex,f=e.newDraggableIndex,p=e.originalEvent,v=e.putSortable,_=e.extraEventProperties;if(t=t||n&&n[ha],!!t){var k,C=t.options,$="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!jf&&!ek?k=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(k=document.createEvent("Event"),k.initEvent(o,!0,!0)),k.to=s||n,k.from=a||n,k.item=i||n,k.clone=r,k.oldIndex=l,k.newIndex=d,k.oldDraggableIndex=u,k.newDraggableIndex=f,k.originalEvent=p,k.pullMode=v?v.lastPutMode:void 0;var E=lh(lh({},_),tk.getEventProperties(o,t));for(var P in E)k[P]=E[P];n&&n.dispatchEvent(k),C[$]&&C[$].call(t,k)}}var zFt=["evt"],fl=function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,r=SFt(o,zFt);tk.pluginEvent.bind(Jn)(t,n,lh({dragEl:hn,parentEl:kr,ghostEl:go,rootEl:nr,nextEl:i1,lastDownEl:k4,cloneEl:wr,cloneHidden:Dm,dragStarted:_0,putSortable:qs,activeSortable:Jn.active,originalEvent:i,oldIndex:o_,oldDraggableIndex:X0,newIndex:Kl,newDraggableIndex:Tm,hideGhostForTarget:Ple,unhideGhostForTarget:Ale,cloneNowHidden:function(){Dm=!0},cloneNowShown:function(){Dm=!1},dispatchSortableEvent:function(a){Ia({sortable:n,name:a,originalEvent:i})}},r))};function Ia(e){v0(lh({putSortable:qs,cloneEl:wr,targetEl:hn,rootEl:nr,oldIndex:o_,oldDraggableIndex:X0,newIndex:Kl,newDraggableIndex:Tm},e))}var hn,kr,go,nr,i1,k4,wr,Dm,o_,Kl,X0,Tm,d8,qs,Uv=!1,a$=!1,l$=[],Kp,Id,RT,jT,LY,MY,_0,$v,Q0,e2=!1,u8=!1,w4,ra,FT=[],tA=!1,c$=[],L6=typeof document<"u",h8=kle,NY=ek||jf?"cssFloat":"float",UFt=L6&&!xFt&&!kle&&"draggable"in document.createElement("div"),Tle=function(){if(L6){if(jf)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Ele=function(t,n){var o=An(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=ry(t,0,n),s=ry(t,1,n),a=r&&An(r),l=s&&An(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+sr(r).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+sr(s).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var f=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||d>=i&&o[NY]==="none"||s&&o[NY]==="none"&&d+u>i)?"vertical":"horizontal"},BFt=function(t,n,o){var i=o?t.left:t.top,r=o?t.right:t.bottom,s=o?t.width:t.height,a=o?n.left:n.top,l=o?n.right:n.bottom,d=o?n.width:n.height;return i===a||r===l||i+s/2===a+d/2},HFt=function(t,n){var o;return l$.some(function(i){var r=i[ha].options.emptyInsertThreshold;if(!(!r||XL(i))){var s=sr(i),a=t>=s.left-r&&t<=s.right+r,l=n>=s.top-r&&n<=s.bottom+r;if(a&&l)return o=i}}),o},Ile=function(t){function n(r,s){return function(a,l,d,u){var f=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||f))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return n(r(a,l,d,u),s)(a,l,d,u);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var o={},i=t.group;(!i||b4(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=n(i.pull,!0),o.checkPut=n(i.put),o.revertClone=i.revertClone,t.group=o},Ple=function(){!Tle&&go&&An(go,"display","none")},Ale=function(){!Tle&&go&&An(go,"display","")};L6&&document.addEventListener("click",function(e){if(a$)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),a$=!1,!1},!0);var Jp=function(t){if(hn){t=t.touches?t.touches[0]:t;var n=HFt(t.clientX,t.clientY);if(n){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[ha]._onDragOver(o)}}},VFt=function(t){hn&&hn.parentNode[ha]._isOutsideThisEl(t.target)};function Jn(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=id({},t),e[ha]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ele(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Jn.supportPointer!==!1&&"PointerEvent"in window&&!K0,emptyInsertThreshold:5};tk.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);Ile(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:UFt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Ko(e,"pointerdown",this._onTapStart):(Ko(e,"mousedown",this._onTapStart),Ko(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ko(e,"dragover",this),Ko(e,"dragenter",this)),l$.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),id(this,RFt())}Jn.prototype={constructor:Jn,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&($v=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,hn):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,o=this.el,i=this.options,r=i.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,u=i.filter;if(XFt(o),!hn&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&K0&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=xd(l,i.draggable,o,!1),!(l&&l.animated)&&k4!==l)){if(o_=Er(l),X0=Er(l,i.draggable),typeof u=="function"){if(u.call(this,t,l,this)){Ia({sortable:n,rootEl:d,name:"filter",targetEl:l,toEl:o,fromEl:o}),fl("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(f){if(f=xd(d,f.trim(),o,!1),f)return Ia({sortable:n,rootEl:f,name:"filter",targetEl:l,fromEl:o,toEl:o}),fl("filter",n,{evt:t}),!0}),u)){r&&t.cancelable&&t.preventDefault();return}i.handle&&!xd(d,i.handle,o,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,o){var i=this,r=i.el,s=i.options,a=r.ownerDocument,l;if(o&&!hn&&o.parentNode===r){var d=sr(o);if(nr=r,hn=o,kr=hn.parentNode,i1=hn.nextSibling,k4=o,d8=s.group,Jn.dragged=hn,Kp={target:hn,clientX:(n||t).clientX,clientY:(n||t).clientY},LY=Kp.clientX-d.left,MY=Kp.clientY-d.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,hn.style["will-change"]="all",l=function(){if(fl("delayEnded",i,{evt:t}),Jn.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!PY&&i.nativeDraggable&&(hn.draggable=!0),i._triggerDragStart(t,n),Ia({sortable:i,name:"choose",originalEvent:t}),hr(hn,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){$le(hn,u.trim(),zT)}),Ko(a,"dragover",Jp),Ko(a,"mousemove",Jp),Ko(a,"touchmove",Jp),Ko(a,"mouseup",i._onDrop),Ko(a,"touchend",i._onDrop),Ko(a,"touchcancel",i._onDrop),PY&&this.nativeDraggable&&(this.options.touchStartThreshold=4,hn.draggable=!0),fl("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(ek||jf))){if(Jn.eventCanceled){this._onDrop();return}Ko(a,"mouseup",i._disableDelayedDrag),Ko(a,"touchend",i._disableDelayedDrag),Ko(a,"touchcancel",i._disableDelayedDrag),Ko(a,"mousemove",i._delayedDragTouchMoveHandler),Ko(a,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&Ko(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){hn&&zT(hn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;zo(t,"mouseup",this._disableDelayedDrag),zo(t,"touchend",this._disableDelayedDrag),zo(t,"touchcancel",this._disableDelayedDrag),zo(t,"mousemove",this._delayedDragTouchMoveHandler),zo(t,"touchmove",this._delayedDragTouchMoveHandler),zo(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Ko(document,"pointermove",this._onTouchMove):n?Ko(document,"touchmove",this._onTouchMove):Ko(document,"mousemove",this._onTouchMove):(Ko(hn,"dragend",this),Ko(nr,"dragstart",this._onDragStart));try{document.selection?$4(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Uv=!1,nr&&hn){fl("dragStarted",this,{evt:n}),this.nativeDraggable&&Ko(document,"dragover",VFt);var o=this.options;!t&&hr(hn,o.dragClass,!1),hr(hn,o.ghostClass,!0),Jn.active=this,t&&this._appendGhost(),Ia({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Id){this._lastX=Id.clientX,this._lastY=Id.clientY,Ple();for(var t=document.elementFromPoint(Id.clientX,Id.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Id.clientX,Id.clientY),t!==n);)n=t;if(hn.parentNode[ha]._isOutsideThisEl(t),n)do{if(n[ha]){var o=void 0;if(o=n[ha]._onDragOver({clientX:Id.clientX,clientY:Id.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Ale()}},_onTouchMove:function(t){if(Kp){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,r=t.touches?t.touches[0]:t,s=go&&M1(go,!0),a=go&&s&&s.a,l=go&&s&&s.d,d=h8&&ra&&xY(ra),u=(r.clientX-Kp.clientX+i.x)/(a||1)+(d?d[0]-FT[0]:0)/(a||1),f=(r.clientY-Kp.clientY+i.y)/(l||1)+(d?d[1]-FT[1]:0)/(l||1);if(!Jn.active&&!Uv){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(go){s?(s.e+=u-(RT||0),s.f+=f-(jT||0)):s={a:1,b:0,c:0,d:1,e:u,f};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");An(go,"webkitTransform",p),An(go,"mozTransform",p),An(go,"msTransform",p),An(go,"transform",p),RT=u,jT=f,Id=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!go){var t=this.options.fallbackOnBody?document.body:nr,n=sr(hn,!0,h8,!0,t),o=this.options;if(h8){for(ra=t;An(ra,"position")==="static"&&An(ra,"transform")==="none"&&ra!==document;)ra=ra.parentNode;ra!==document.body&&ra!==document.documentElement?(ra===document&&(ra=Qu()),n.top+=ra.scrollTop,n.left+=ra.scrollLeft):ra=Qu(),FT=xY(ra)}go=hn.cloneNode(!0),hr(go,o.ghostClass,!1),hr(go,o.fallbackClass,!0),hr(go,o.dragClass,!0),An(go,"transition",""),An(go,"transform",""),An(go,"box-sizing","border-box"),An(go,"margin",0),An(go,"top",n.top),An(go,"left",n.left),An(go,"width",n.width),An(go,"height",n.height),An(go,"opacity","0.8"),An(go,"position",h8?"absolute":"fixed"),An(go,"zIndex","100000"),An(go,"pointerEvents","none"),Jn.ghost=go,t.appendChild(go),An(go,"transform-origin",LY/parseInt(go.style.width)*100+"% "+MY/parseInt(go.style.height)*100+"%")}},_onDragStart:function(t,n){var o=this,i=t.dataTransfer,r=o.options;if(fl("dragStart",this,{evt:t}),Jn.eventCanceled){this._onDrop();return}fl("setupClone",this),Jn.eventCanceled||(wr=QL(hn),wr.draggable=!1,wr.style["will-change"]="",this._hideClone(),hr(wr,this.options.chosenClass,!1),Jn.clone=wr),o.cloneId=$4(function(){fl("clone",o),!Jn.eventCanceled&&(o.options.removeCloneOnHide||nr.insertBefore(wr,hn),o._hideClone(),Ia({sortable:o,name:"clone"}))}),!n&&hr(hn,r.dragClass,!0),n?(a$=!0,o._loopId=setInterval(o._emulateDragOver,50)):(zo(document,"mouseup",o._onDrop),zo(document,"touchend",o._onDrop),zo(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(o,i,hn)),Ko(document,"drop",o),An(hn,"transform","translateZ(0)")),Uv=!0,o._dragStartId=$4(o._dragStarted.bind(o,n,t)),Ko(document,"selectstart",o),_0=!0,K0&&An(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,o=t.target,i,r,s,a=this.options,l=a.group,d=Jn.active,u=d8===l,f=a.sort,p=qs||d,v,_=this,k=!1;if(tA)return;function C(se,ce){fl(se,_,lh({evt:t,isOwner:u,axis:v?"vertical":"horizontal",revert:s,dragRect:i,targetRect:r,canSort:f,fromSortable:p,target:o,completed:E,onMove:function(ee,ae){return f8(nr,n,hn,i,ee,sr(ee),t,ae)},changed:P},ce))}function $(){C("dragOverAnimationCapture"),_.captureAnimationState(),_!==p&&p.captureAnimationState()}function E(se){return C("dragOverCompleted",{insertion:se}),se&&(u?d._hideClone():d._showClone(_),_!==p&&(hr(hn,qs?qs.options.ghostClass:d.options.ghostClass,!1),hr(hn,a.ghostClass,!0)),qs!==_&&_!==Jn.active?qs=_:_===Jn.active&&qs&&(qs=null),p===_&&(_._ignoreWhileAnimating=o),_.animateAll(function(){C("dragOverAnimationComplete"),_._ignoreWhileAnimating=null}),_!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(o===hn&&!hn.animated||o===n&&!o.animated)&&($v=null),!a.dragoverBubble&&!t.rootEl&&o!==document&&(hn.parentNode[ha]._isOutsideThisEl(t.target),!se&&Jp(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),k=!0}function P(){Kl=Er(hn),Tm=Er(hn,a.draggable),Ia({sortable:_,name:"change",toEl:n,newIndex:Kl,newDraggableIndex:Tm,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=xd(o,a.draggable,n,!0),C("dragOver"),Jn.eventCanceled)return k;if(hn.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||_._ignoreWhileAnimating===o)return E(!1);if(a$=!1,d&&!a.disabled&&(u?f||(s=kr!==nr):qs===this||(this.lastPutMode=d8.checkPull(this,d,hn,t))&&l.checkPut(this,d,hn,t))){if(v=this._getDirection(t,o)==="vertical",i=sr(hn),C("dragOverValid"),Jn.eventCanceled)return k;if(s)return kr=nr,$(),this._hideClone(),C("revert"),Jn.eventCanceled||(i1?nr.insertBefore(hn,i1):nr.appendChild(hn)),E(!0);var I=XL(n,a.draggable);if(!I||GFt(t,v,this)&&!I.animated){if(I===hn)return E(!1);if(I&&n===t.target&&(o=I),o&&(r=sr(o)),f8(nr,n,hn,i,o,r,t,!!o)!==!1)return $(),n.appendChild(hn),kr=n,P(),E(!0)}else if(I&&WFt(t,v,this)){var O=ry(n,0,a,!0);if(O===hn)return E(!1);if(o=O,r=sr(o),f8(nr,n,hn,i,o,r,t,!1)!==!1)return $(),n.insertBefore(hn,O),kr=n,P(),E(!0)}else if(o.parentNode===n){r=sr(o);var L=0,S,j=hn.parentNode!==n,M=!BFt(hn.animated&&hn.toRect||i,o.animated&&o.toRect||r,v),q=v?"top":"left",B=DY(o,"top","top")||DY(hn,"top","top"),V=B?B.scrollTop:void 0;$v!==o&&(S=r[q],e2=!1,u8=!M&&a.invertSwap||j),L=ZFt(t,o,r,v,M?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,u8,$v===o);var G;if(L!==0){var Q=Er(hn);do Q-=L,G=kr.children[Q];while(G&&(An(G,"display")==="none"||G===go))}if(L===0||G===o)return E(!1);$v=o,Q0=L;var X=o.nextElementSibling,Y=!1;Y=L===1;var Z=f8(nr,n,hn,i,o,r,t,Y);if(Z!==!1)return(Z===1||Z===-1)&&(Y=Z===1),tA=!0,setTimeout(YFt,30),$(),Y&&!X?n.appendChild(hn):o.parentNode.insertBefore(hn,Y?X:o),B&&Sle(B,0,V-B.scrollTop),kr=hn.parentNode,S!==void 0&&!u8&&(w4=Math.abs(S-sr(o)[q])),P(),E(!0)}if(n.contains(hn))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){zo(document,"mousemove",this._onTouchMove),zo(document,"touchmove",this._onTouchMove),zo(document,"pointermove",this._onTouchMove),zo(document,"dragover",Jp),zo(document,"mousemove",Jp),zo(document,"touchmove",Jp)},_offUpEvents:function(){var t=this.el.ownerDocument;zo(t,"mouseup",this._onDrop),zo(t,"touchend",this._onDrop),zo(t,"pointerup",this._onDrop),zo(t,"touchcancel",this._onDrop),zo(document,"selectstart",this)},_onDrop:function(t){var n=this.el,o=this.options;if(Kl=Er(hn),Tm=Er(hn,o.draggable),fl("drop",this,{evt:t}),kr=hn&&hn.parentNode,Kl=Er(hn),Tm=Er(hn,o.draggable),Jn.eventCanceled){this._nulling();return}Uv=!1,u8=!1,e2=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),nA(this.cloneId),nA(this._dragStartId),this.nativeDraggable&&(zo(document,"drop",this),zo(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),K0&&An(document.body,"user-select",""),An(hn,"transform",""),t&&(_0&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),go&&go.parentNode&&go.parentNode.removeChild(go),(nr===kr||qs&&qs.lastPutMode!=="clone")&&wr&&wr.parentNode&&wr.parentNode.removeChild(wr),hn&&(this.nativeDraggable&&zo(hn,"dragend",this),zT(hn),hn.style["will-change"]="",_0&&!Uv&&hr(hn,qs?qs.options.ghostClass:this.options.ghostClass,!1),hr(hn,this.options.chosenClass,!1),Ia({sortable:this,name:"unchoose",toEl:kr,newIndex:null,newDraggableIndex:null,originalEvent:t}),nr!==kr?(Kl>=0&&(Ia({rootEl:kr,name:"add",toEl:kr,fromEl:nr,originalEvent:t}),Ia({sortable:this,name:"remove",toEl:kr,originalEvent:t}),Ia({rootEl:kr,name:"sort",toEl:kr,fromEl:nr,originalEvent:t}),Ia({sortable:this,name:"sort",toEl:kr,originalEvent:t})),qs&&qs.save()):Kl!==o_&&Kl>=0&&(Ia({sortable:this,name:"update",toEl:kr,originalEvent:t}),Ia({sortable:this,name:"sort",toEl:kr,originalEvent:t})),Jn.active&&((Kl==null||Kl===-1)&&(Kl=o_,Tm=X0),Ia({sortable:this,name:"end",toEl:kr,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){fl("nulling",this),nr=hn=kr=go=i1=wr=k4=Dm=Kp=Id=_0=Kl=Tm=o_=X0=$v=Q0=qs=d8=Jn.dragged=Jn.ghost=Jn.clone=Jn.active=null,c$.forEach(function(t){t.checked=!0}),c$.length=RT=jT=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":hn&&(this._onDragOver(t),qFt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,o=this.el.children,i=0,r=o.length,s=this.options;i<r;i++)n=o[i],xd(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||JFt(n));return t},sort:function(t,n){var o={},i=this.el;this.toArray().forEach(function(r,s){var a=i.children[s];xd(a,this.options.draggable,i,!1)&&(o[r]=a)},this),n&&this.captureAnimationState(),t.forEach(function(r){o[r]&&(i.removeChild(o[r]),i.appendChild(o[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return xd(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var o=this.options;if(n===void 0)return o[t];var i=tk.modifyOption(this,t,n);typeof i<"u"?o[t]=i:o[t]=n,t==="group"&&Ile(o)},destroy:function(){fl("destroy",this);var t=this.el;t[ha]=null,zo(t,"mousedown",this._onTapStart),zo(t,"touchstart",this._onTapStart),zo(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(zo(t,"dragover",this),zo(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),l$.splice(l$.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Dm){if(fl("hideClone",this),Jn.eventCanceled)return;An(wr,"display","none"),this.options.removeCloneOnHide&&wr.parentNode&&wr.parentNode.removeChild(wr),Dm=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Dm){if(fl("showClone",this),Jn.eventCanceled)return;hn.parentNode==nr&&!this.options.group.revertClone?nr.insertBefore(wr,hn):i1?nr.insertBefore(wr,i1):nr.appendChild(wr),this.options.group.revertClone&&this.animate(hn,wr),An(wr,"display",""),Dm=!1}}};function qFt(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function f8(e,t,n,o,i,r,s,a){var l,d=e[ha],u=d.options.onMove,f;return window.CustomEvent&&!jf&&!ek?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=o,l.related=i||t,l.relatedRect=r||sr(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),u&&(f=u.call(d,l,s)),f}function zT(e){e.draggable=!1}function YFt(){tA=!1}function WFt(e,t,n){var o=sr(ry(n.el,0,n.options,!0)),i=10;return t?e.clientX<o.left-i||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-i||e.clientY<o.bottom&&e.clientX<o.left}function GFt(e,t,n){var o=sr(XL(n.el,n.options.draggable)),i=10;return t?e.clientX>o.right+i||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+i}function ZFt(e,t,n,o,i,r,s,a){var l=o?e.clientY:e.clientX,d=o?n.height:n.width,u=o?n.top:n.left,f=o?n.bottom:n.right,p=!1;if(!s){if(a&&w4<d*i){if(!e2&&(Q0===1?l>u+d*r/2:l<f-d*r/2)&&(e2=!0),e2)p=!0;else if(Q0===1?l<u+w4:l>f-w4)return-Q0}else if(l>u+d*(1-i)/2&&l<f-d*(1-i)/2)return KFt(t)}return p=p||s,p&&(l<u+d*r/2||l>f-d*r/2)?l>u+d/2?1:-1:0}function KFt(e){return Er(hn)<Er(e)?1:-1}function JFt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function XFt(e){c$.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&c$.push(o)}}function $4(e){return setTimeout(e,0)}function nA(e){return clearTimeout(e)}L6&&Ko(document,"touchmove",function(e){(Jn.active||Uv)&&e.cancelable&&e.preventDefault()});Jn.utils={on:Ko,off:zo,css:An,find:$le,is:function(t,n){return!!xd(t,n,t,!1)},extend:MFt,throttle:Cle,closest:xd,toggleClass:hr,clone:QL,index:Er,nextTick:$4,cancelNextTick:nA,detectDirection:Ele,getChild:ry};Jn.get=function(e){return e[ha]};Jn.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(Jn.utils=lh(lh({},Jn.utils),o.utils)),tk.mount(o)})};Jn.create=function(e,t){return new Jn(e,t)};Jn.version=DFt;var Jr=[],y0,oA,iA=!1,UT,BT,d$,b0;function QFt(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?Ko(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ko(document,"pointermove",this._handleFallbackAutoScroll):o.touches?Ko(document,"touchmove",this._handleFallbackAutoScroll):Ko(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?zo(document,"dragover",this._handleAutoScroll):(zo(document,"pointermove",this._handleFallbackAutoScroll),zo(document,"touchmove",this._handleFallbackAutoScroll),zo(document,"mousemove",this._handleFallbackAutoScroll)),RY(),C4(),NFt()},nulling:function(){d$=oA=y0=iA=b0=UT=BT=null,Jr.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var i=this,r=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(r,s);if(d$=n,o||this.options.forceAutoScrollFallback||ek||jf||K0){HT(n,this.options,a,o);var l=Rm(a,!0);iA&&(!b0||r!==UT||s!==BT)&&(b0&&RY(),b0=setInterval(function(){var d=Rm(document.elementFromPoint(r,s),!0);d!==l&&(l=d,C4()),HT(n,i.options,d,o)},10),UT=r,BT=s)}else{if(!this.options.bubbleScroll||Rm(a,!0)===Qu()){C4();return}HT(n,this.options,Rm(a,!1),!1)}}},id(e,{pluginName:"scroll",initializeByDefault:!0})}function C4(){Jr.forEach(function(e){clearInterval(e.pid)}),Jr=[]}function RY(){clearInterval(b0)}var HT=Cle(function(e,t,n,o){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=Qu(),d=!1,u;oA!==n&&(oA=n,C4(),y0=t.scroll,u=t.scrollFn,y0===!0&&(y0=Rm(n,!0)));var f=0,p=y0;do{var v=p,_=sr(v),k=_.top,C=_.bottom,$=_.left,E=_.right,P=_.width,I=_.height,O=void 0,L=void 0,S=v.scrollWidth,j=v.scrollHeight,M=An(v),q=v.scrollLeft,B=v.scrollTop;v===l?(O=P<S&&(M.overflowX==="auto"||M.overflowX==="scroll"||M.overflowX==="visible"),L=I<j&&(M.overflowY==="auto"||M.overflowY==="scroll"||M.overflowY==="visible")):(O=P<S&&(M.overflowX==="auto"||M.overflowX==="scroll"),L=I<j&&(M.overflowY==="auto"||M.overflowY==="scroll"));var V=O&&(Math.abs(E-i)<=s&&q+P<S)-(Math.abs($-i)<=s&&!!q),G=L&&(Math.abs(C-r)<=s&&B+I<j)-(Math.abs(k-r)<=s&&!!B);if(!Jr[f])for(var Q=0;Q<=f;Q++)Jr[Q]||(Jr[Q]={});(Jr[f].vx!=V||Jr[f].vy!=G||Jr[f].el!==v)&&(Jr[f].el=v,Jr[f].vx=V,Jr[f].vy=G,clearInterval(Jr[f].pid),(V!=0||G!=0)&&(d=!0,Jr[f].pid=setInterval((function(){o&&this.layer===0&&Jn.active._onTouchMove(d$);var X=Jr[this.layer].vy?Jr[this.layer].vy*a:0,Y=Jr[this.layer].vx?Jr[this.layer].vx*a:0;typeof u=="function"&&u.call(Jn.dragged.parentNode[ha],Y,X,e,d$,Jr[this.layer].el)!=="continue"||Sle(Jr[this.layer].el,Y,X)}).bind({layer:f}),24))),f++}while(t.bubbleScroll&&p!==l&&(p=Rm(p,!1)));iA=d}},30),Dle=function(t){var n=t.originalEvent,o=t.putSortable,i=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var d=o||r;a();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(u.clientX,u.clientY);l(),d&&!d.el.contains(f)&&(s("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function eM(){}eM.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=ry(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:Dle};id(eM,{pluginName:"revertOnSpill"});function tM(){}tM.prototype={onSpill:function(t){var n=t.dragEl,o=t.putSortable,i=o||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Dle};id(tM,{pluginName:"removeOnSpill"});var Mc;function ezt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var o=n.dragEl;Mc=o},dragOverValid:function(n){var o=n.completed,i=n.target,r=n.onMove,s=n.activeSortable,a=n.changed,l=n.cancel;if(s.options.swap){var d=this.sortable.el,u=this.options;if(i&&i!==d){var f=Mc;r(i)!==!1?(hr(i,u.swapClass,!0),Mc=i):Mc=null,f&&f!==Mc&&hr(f,u.swapClass,!1)}a(),o(!0),l()}},drop:function(n){var o=n.activeSortable,i=n.putSortable,r=n.dragEl,s=i||this.sortable,a=this.options;Mc&&hr(Mc,a.swapClass,!1),Mc&&(a.swap||i&&i.options.swap)&&r!==Mc&&(s.captureAnimationState(),s!==o&&o.captureAnimationState(),tzt(r,Mc),s.animateAll(),s!==o&&o.animateAll())},nulling:function(){Mc=null}},id(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Mc}}})}function tzt(e,t){var n=e.parentNode,o=t.parentNode,i,r;!n||!o||n.isEqualNode(t)||o.isEqualNode(e)||(i=Er(e),r=Er(t),n.isEqualNode(o)&&i<r&&r++,n.insertBefore(t,n.children[i]),o.insertBefore(e,o.children[r]))}var co=[],Zl=[],Xb,Pd,Qb=!1,ml=!1,Cv=!1,qi,e0,m8;function nzt(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?Ko(document,"pointerup",this._deselectMultiDrag):(Ko(document,"mouseup",this._deselectMultiDrag),Ko(document,"touchend",this._deselectMultiDrag)),Ko(document,"keydown",this._checkKeyDown),Ko(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,r){var s="";co.length&&Pd===t?co.forEach(function(a,l){s+=(l?", ":"")+a.textContent}):s=r.textContent,i.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var o=n.dragEl;qi=o},delayEnded:function(){this.isMultiDrag=~co.indexOf(qi)},setupClone:function(n){var o=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var r=0;r<co.length;r++)Zl.push(QL(co[r])),Zl[r].sortableIndex=co[r].sortableIndex,Zl[r].draggable=!1,Zl[r].style["will-change"]="",hr(Zl[r],this.options.selectedClass,!1),co[r]===qi&&hr(Zl[r],this.options.chosenClass,!1);o._hideClone(),i()}},clone:function(n){var o=n.sortable,i=n.rootEl,r=n.dispatchSortableEvent,s=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||co.length&&Pd===o&&(jY(!0,i),r("clone"),s()))},showClone:function(n){var o=n.cloneNowShown,i=n.rootEl,r=n.cancel;this.isMultiDrag&&(jY(!1,i),Zl.forEach(function(s){An(s,"display","")}),o(),m8=!1,r())},hideClone:function(n){var o=this;n.sortable;var i=n.cloneNowHidden,r=n.cancel;this.isMultiDrag&&(Zl.forEach(function(s){An(s,"display","none"),o.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),i(),m8=!0,r())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Pd&&Pd.multiDrag._deselectMultiDrag(),co.forEach(function(o){o.sortableIndex=Er(o)}),co=co.sort(function(o,i){return o.sortableIndex-i.sortableIndex}),Cv=!0},dragStarted:function(n){var o=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){co.forEach(function(s){s!==qi&&An(s,"position","absolute")});var r=sr(qi,!1,!0,!0);co.forEach(function(s){s!==qi&&OY(s,r)}),ml=!0,Qb=!0}i.animateAll(function(){ml=!1,Qb=!1,o.options.animation&&co.forEach(function(s){MT(s)}),o.options.sort&&p8()})}},dragOver:function(n){var o=n.target,i=n.completed,r=n.cancel;ml&&~co.indexOf(o)&&(i(!1),r())},revert:function(n){var o=n.fromSortable,i=n.rootEl,r=n.sortable,s=n.dragRect;co.length>1&&(co.forEach(function(a){r.addAnimationState({target:a,rect:ml?sr(a):s}),MT(a),a.fromRect=s,o.removeAnimationState(a)}),ml=!1,ozt(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var o=n.sortable,i=n.isOwner,r=n.insertion,s=n.activeSortable,a=n.parentEl,l=n.putSortable,d=this.options;if(r){if(i&&s._hideClone(),Qb=!1,d.animation&&co.length>1&&(ml||!i&&!s.options.sort&&!l)){var u=sr(qi,!1,!0,!0);co.forEach(function(p){p!==qi&&(OY(p,u),a.appendChild(p))}),ml=!0}if(!i)if(ml||p8(),co.length>1){var f=m8;s._showClone(o),s.options.animation&&!m8&&f&&Zl.forEach(function(p){s.addAnimationState({target:p,rect:e0}),p.fromRect=e0,p.thisAnimationDuration=null})}else s._showClone(o)}},dragOverAnimationCapture:function(n){var o=n.dragRect,i=n.isOwner,r=n.activeSortable;if(co.forEach(function(a){a.thisAnimationDuration=null}),r.options.animation&&!i&&r.multiDrag.isMultiDrag){e0=id({},o);var s=M1(qi,!0);e0.top-=s.f,e0.left-=s.e}},dragOverAnimationComplete:function(){ml&&(ml=!1,p8())},drop:function(n){var o=n.originalEvent,i=n.rootEl,r=n.parentEl,s=n.sortable,a=n.dispatchSortableEvent,l=n.oldIndex,d=n.putSortable,u=d||this.sortable;if(o){var f=this.options,p=r.children;if(!Cv)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),hr(qi,f.selectedClass,!~co.indexOf(qi)),~co.indexOf(qi))co.splice(co.indexOf(qi),1),Xb=null,v0({sortable:s,rootEl:i,name:"deselect",targetEl:qi,originalEvt:o});else{if(co.push(qi),v0({sortable:s,rootEl:i,name:"select",targetEl:qi,originalEvt:o}),o.shiftKey&&Xb&&s.el.contains(Xb)){var v=Er(Xb),_=Er(qi);if(~v&&~_&&v!==_){var k,C;for(_>v?(C=v,k=_):(C=_,k=v+1);C<k;C++)~co.indexOf(p[C])||(hr(p[C],f.selectedClass,!0),co.push(p[C]),v0({sortable:s,rootEl:i,name:"select",targetEl:p[C],originalEvt:o}))}}else Xb=qi;Pd=u}if(Cv&&this.isMultiDrag){if(ml=!1,(r[ha].options.sort||r!==i)&&co.length>1){var $=sr(qi),E=Er(qi,":not(."+this.options.selectedClass+")");if(!Qb&&f.animation&&(qi.thisAnimationDuration=null),u.captureAnimationState(),!Qb&&(f.animation&&(qi.fromRect=$,co.forEach(function(I){if(I.thisAnimationDuration=null,I!==qi){var O=ml?sr(I):$;I.fromRect=O,u.addAnimationState({target:I,rect:O})}})),p8(),co.forEach(function(I){p[E]?r.insertBefore(I,p[E]):r.appendChild(I),E++}),l===Er(qi))){var P=!1;co.forEach(function(I){if(I.sortableIndex!==Er(I)){P=!0;return}}),P&&a("update")}co.forEach(function(I){MT(I)}),u.animateAll()}Pd=u}(i===r||d&&d.lastPutMode!=="clone")&&Zl.forEach(function(I){I.parentNode&&I.parentNode.removeChild(I)})}},nullingGlobal:function(){this.isMultiDrag=Cv=!1,Zl.length=0},destroyGlobal:function(){this._deselectMultiDrag(),zo(document,"pointerup",this._deselectMultiDrag),zo(document,"mouseup",this._deselectMultiDrag),zo(document,"touchend",this._deselectMultiDrag),zo(document,"keydown",this._checkKeyDown),zo(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Cv<"u"&&Cv)&&Pd===this.sortable&&!(n&&xd(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;co.length;){var o=co[0];hr(o,this.options.selectedClass,!1),co.shift(),v0({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:o,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},id(e,{pluginName:"multiDrag",utils:{select:function(n){var o=n.parentNode[ha];!o||!o.options.multiDrag||~co.indexOf(n)||(Pd&&Pd!==o&&(Pd.multiDrag._deselectMultiDrag(),Pd=o),hr(n,o.options.selectedClass,!0),co.push(n))},deselect:function(n){var o=n.parentNode[ha],i=co.indexOf(n);!o||!o.options.multiDrag||!~i||(hr(n,o.options.selectedClass,!1),co.splice(i,1))}},eventProperties:function(){var n=this,o=[],i=[];return co.forEach(function(r){o.push({multiDragElement:r,index:r.sortableIndex});var s;ml&&r!==qi?s=-1:ml?s=Er(r,":not(."+n.options.selectedClass+")"):s=Er(r),i.push({multiDragElement:r,index:s})}),{items:TFt(co),clones:[].concat(Zl),oldIndicies:o,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function ozt(e,t){co.forEach(function(n,o){var i=t.children[n.sortableIndex+(e?Number(o):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function jY(e,t){Zl.forEach(function(n,o){var i=t.children[n.sortableIndex+(e?Number(o):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function p8(){co.forEach(function(e){e!==qi&&e.parentNode&&e.parentNode.removeChild(e)})}Jn.mount(new QFt);Jn.mount(tM,eM);const izt=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:nzt,Sortable:Jn,Swap:ezt,default:Jn},Symbol.toStringTag,{value:"Module"})),rzt=u$(izt);(function(e,t){(function(o,i){e.exports=i(Sx,rzt)})(typeof self<"u"?self:bo,function(n,o){return function(i){var r={};function s(a){if(r[a])return r[a].exports;var l=r[a]={i:a,l:!1,exports:{}};return i[a].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=i,s.c=r,s.d=function(a,l,d){s.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:d})},s.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},s.t=function(a,l){if(l&1&&(a=s(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var d=Object.create(null);if(s.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var u in a)s.d(d,u,(function(f){return a[f]}).bind(null,u));return d},s.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(l,"a",l),l},s.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},s.p="",s(s.s="fb15")}({"00ee":function(i,r,s){var a=s("b622"),l=a("toStringTag"),d={};d[l]="z",i.exports=String(d)==="[object z]"},"0366":function(i,r,s){var a=s("1c0b");i.exports=function(l,d,u){if(a(l),d===void 0)return l;switch(u){case 0:return function(){return l.call(d)};case 1:return function(f){return l.call(d,f)};case 2:return function(f,p){return l.call(d,f,p)};case 3:return function(f,p,v){return l.call(d,f,p,v)}}return function(){return l.apply(d,arguments)}}},"057f":function(i,r,s){var a=s("fc6a"),l=s("241c").f,d={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(p){try{return l(p)}catch{return u.slice()}};i.exports.f=function(v){return u&&d.call(v)=="[object Window]"?f(v):l(a(v))}},"06cf":function(i,r,s){var a=s("83ab"),l=s("d1e7"),d=s("5c6c"),u=s("fc6a"),f=s("c04e"),p=s("5135"),v=s("0cfb"),_=Object.getOwnPropertyDescriptor;r.f=a?_:function(C,$){if(C=u(C),$=f($,!0),v)try{return _(C,$)}catch{}if(p(C,$))return d(!l.f.call(C,$),C[$])}},"0cfb":function(i,r,s){var a=s("83ab"),l=s("d039"),d=s("cc12");i.exports=!a&&!l(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,r,s){var a=s("23e7"),l=s("d58f").left,d=s("a640"),u=s("ae40"),f=d("reduce"),p=u("reduce",{1:0});a({target:"Array",proto:!0,forced:!f||!p},{reduce:function(_){return l(this,_,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,r,s){var a=s("c6b6"),l=s("9263");i.exports=function(d,u){var f=d.exec;if(typeof f=="function"){var p=f.call(d,u);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(a(d)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(d,u)}},"159b":function(i,r,s){var a=s("da84"),l=s("fdbc"),d=s("17c2"),u=s("9112");for(var f in l){var p=a[f],v=p&&p.prototype;if(v&&v.forEach!==d)try{u(v,"forEach",d)}catch{v.forEach=d}}},"17c2":function(i,r,s){var a=s("b727").forEach,l=s("a640"),d=s("ae40"),u=l("forEach"),f=d("forEach");i.exports=!u||!f?function(v){return a(this,v,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,r,s){var a=s("d066");i.exports=a("document","documentElement")},"1c0b":function(i,r){i.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"1c7e":function(i,r,s){var a=s("b622"),l=a("iterator"),d=!1;try{var u=0,f={next:function(){return{done:!!u++}},return:function(){d=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}i.exports=function(p,v){if(!v&&!d)return!1;var _=!1;try{var k={};k[l]=function(){return{next:function(){return{done:_=!0}}}},p(k)}catch{}return _}},"1d80":function(i,r){i.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"1dde":function(i,r,s){var a=s("d039"),l=s("b622"),d=s("2d00"),u=l("species");i.exports=function(f){return d>=51||!a(function(){var p=[],v=p.constructor={};return v[u]=function(){return{foo:1}},p[f](Boolean).foo!==1})}},"23cb":function(i,r,s){var a=s("a691"),l=Math.max,d=Math.min;i.exports=function(u,f){var p=a(u);return p<0?l(p+f,0):d(p,f)}},"23e7":function(i,r,s){var a=s("da84"),l=s("06cf").f,d=s("9112"),u=s("6eeb"),f=s("ce4e"),p=s("e893"),v=s("94ca");i.exports=function(_,k){var C=_.target,$=_.global,E=_.stat,P,I,O,L,S,j;if($?I=a:E?I=a[C]||f(C,{}):I=(a[C]||{}).prototype,I)for(O in k){if(S=k[O],_.noTargetGet?(j=l(I,O),L=j&&j.value):L=I[O],P=v($?O:C+(E?".":"#")+O,_.forced),!P&&L!==void 0){if(typeof S==typeof L)continue;p(S,L)}(_.sham||L&&L.sham)&&d(S,"sham",!0),u(I,O,S,_)}}},"241c":function(i,r,s){var a=s("ca84"),l=s("7839"),d=l.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(f){return a(f,d)}},"25f0":function(i,r,s){var a=s("6eeb"),l=s("825a"),d=s("d039"),u=s("ad6d"),f="toString",p=RegExp.prototype,v=p[f],_=d(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),k=v.name!=f;(_||k)&&a(RegExp.prototype,f,function(){var $=l(this),E=String($.source),P=$.flags,I=String(P===void 0&&$ instanceof RegExp&&!("flags"in p)?u.call($):P);return"/"+E+"/"+I},{unsafe:!0})},"2ca0":function(i,r,s){var a=s("23e7"),l=s("06cf").f,d=s("50c4"),u=s("5a34"),f=s("1d80"),p=s("ab13"),v=s("c430"),_="".startsWith,k=Math.min,C=p("startsWith"),$=!v&&!C&&!!function(){var E=l(String.prototype,"startsWith");return E&&!E.writable}();a({target:"String",proto:!0,forced:!$&&!C},{startsWith:function(P){var I=String(f(this));u(P);var O=d(k(arguments.length>1?arguments[1]:void 0,I.length)),L=String(P);return _?_.call(I,L,O):I.slice(O,O+L.length)===L}})},"2d00":function(i,r,s){var a=s("da84"),l=s("342f"),d=a.process,u=d&&d.versions,f=u&&u.v8,p,v;f?(p=f.split("."),v=p[0]+p[1]):l&&(p=l.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=l.match(/Chrome\/(\d+)/),p&&(v=p[1]))),i.exports=v&&+v},"342f":function(i,r,s){var a=s("d066");i.exports=a("navigator","userAgent")||""},"35a1":function(i,r,s){var a=s("f5df"),l=s("3f8c"),d=s("b622"),u=d("iterator");i.exports=function(f){if(f!=null)return f[u]||f["@@iterator"]||l[a(f)]}},"37e8":function(i,r,s){var a=s("83ab"),l=s("9bf2"),d=s("825a"),u=s("df75");i.exports=a?Object.defineProperties:function(p,v){d(p);for(var _=u(v),k=_.length,C=0,$;k>C;)l.f(p,$=_[C++],v[$]);return p}},"3bbe":function(i,r,s){var a=s("861d");i.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,r,s){var a=s("6547").charAt,l=s("69f3"),d=s("7dd0"),u="String Iterator",f=l.set,p=l.getterFor(u);d(String,"String",function(v){f(this,{type:u,string:String(v),index:0})},function(){var _=p(this),k=_.string,C=_.index,$;return C>=k.length?{value:void 0,done:!0}:($=a(k,C),_.index+=$.length,{value:$,done:!1})})},"3f8c":function(i,r){i.exports={}},4160:function(i,r,s){var a=s("23e7"),l=s("17c2");a({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,r,s){var a=s("da84");i.exports=a},"44ad":function(i,r,s){var a=s("d039"),l=s("c6b6"),d="".split;i.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return l(u)=="String"?d.call(u,""):Object(u)}:Object},"44d2":function(i,r,s){var a=s("b622"),l=s("7c73"),d=s("9bf2"),u=a("unscopables"),f=Array.prototype;f[u]==null&&d.f(f,u,{configurable:!0,value:l(null)}),i.exports=function(p){f[u][p]=!0}},"44e7":function(i,r,s){var a=s("861d"),l=s("c6b6"),d=s("b622"),u=d("match");i.exports=function(f){var p;return a(f)&&((p=f[u])!==void 0?!!p:l(f)=="RegExp")}},4930:function(i,r,s){var a=s("d039");i.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(i,r,s){var a=s("fc6a"),l=s("50c4"),d=s("23cb"),u=function(f){return function(p,v,_){var k=a(p),C=l(k.length),$=d(_,C),E;if(f&&v!=v){for(;C>$;)if(E=k[$++],E!=E)return!0}else for(;C>$;$++)if((f||$ in k)&&k[$]===v)return f||$||0;return!f&&-1}};i.exports={includes:u(!0),indexOf:u(!1)}},"4de4":function(i,r,s){var a=s("23e7"),l=s("b727").filter,d=s("1dde"),u=s("ae40"),f=d("filter"),p=u("filter");a({target:"Array",proto:!0,forced:!f||!p},{filter:function(_){return l(this,_,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,r,s){var a=s("0366"),l=s("7b0b"),d=s("9bdd"),u=s("e95a"),f=s("50c4"),p=s("8418"),v=s("35a1");i.exports=function(k){var C=l(k),$=typeof this=="function"?this:Array,E=arguments.length,P=E>1?arguments[1]:void 0,I=P!==void 0,O=v(C),L=0,S,j,M,q,B,V;if(I&&(P=a(P,E>2?arguments[2]:void 0,2)),O!=null&&!($==Array&&u(O)))for(q=O.call(C),B=q.next,j=new $;!(M=B.call(q)).done;L++)V=I?d(q,P,[M.value,L],!0):M.value,p(j,L,V);else for(S=f(C.length),j=new $(S);S>L;L++)V=I?P(C[L],L):C[L],p(j,L,V);return j.length=L,j}},"4fad":function(i,r,s){var a=s("23e7"),l=s("6f53").entries;a({target:"Object",stat:!0},{entries:function(u){return l(u)}})},"50c4":function(i,r,s){var a=s("a691"),l=Math.min;i.exports=function(d){return d>0?l(a(d),9007199254740991):0}},5135:function(i,r){var s={}.hasOwnProperty;i.exports=function(a,l){return s.call(a,l)}},5319:function(i,r,s){var a=s("d784"),l=s("825a"),d=s("7b0b"),u=s("50c4"),f=s("a691"),p=s("1d80"),v=s("8aa5"),_=s("14c3"),k=Math.max,C=Math.min,$=Math.floor,E=/\$([$&'`]|\d\d?|<[^>]*>)/g,P=/\$([$&'`]|\d\d?)/g,I=function(O){return O===void 0?O:String(O)};a("replace",2,function(O,L,S,j){var M=j.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,q=j.REPLACE_KEEPS_$0,B=M?"$":"$0";return[function(Q,X){var Y=p(this),Z=Q==null?void 0:Q[O];return Z!==void 0?Z.call(Q,Y,X):L.call(String(Y),Q,X)},function(G,Q){if(!M&&q||typeof Q=="string"&&Q.indexOf(B)===-1){var X=S(L,G,this,Q);if(X.done)return X.value}var Y=l(G),Z=String(this),se=typeof Q=="function";se||(Q=String(Q));var ce=Y.global;if(ce){var te=Y.unicode;Y.lastIndex=0}for(var ee=[];;){var ae=_(Y,Z);if(ae===null||(ee.push(ae),!ce))break;var de=String(ae[0]);de===""&&(Y.lastIndex=v(Z,u(Y.lastIndex),te))}for(var $e="",be=0,me=0;me<ee.length;me++){ae=ee[me];for(var fe=String(ae[0]),Ae=k(C(f(ae.index),Z.length),0),je=[],Ye=1;Ye<ae.length;Ye++)je.push(I(ae[Ye]));var _t=ae.groups;if(se){var xt=[fe].concat(je,Ae,Z);_t!==void 0&&xt.push(_t);var we=String(Q.apply(void 0,xt))}else we=V(fe,Z,Ae,je,_t,Q);Ae>=be&&($e+=Z.slice(be,Ae)+we,be=Ae+fe.length)}return $e+Z.slice(be)}];function V(G,Q,X,Y,Z,se){var ce=X+G.length,te=Y.length,ee=P;return Z!==void 0&&(Z=d(Z),ee=E),L.call(se,ee,function(ae,de){var $e;switch(de.charAt(0)){case"$":return"$";case"&":return G;case"`":return Q.slice(0,X);case"'":return Q.slice(ce);case"<":$e=Z[de.slice(1,-1)];break;default:var be=+de;if(be===0)return ae;if(be>te){var me=$(be/10);return me===0?ae:me<=te?Y[me-1]===void 0?de.charAt(1):Y[me-1]+de.charAt(1):ae}$e=Y[be-1]}return $e===void 0?"":$e})}})},5692:function(i,r,s){var a=s("c430"),l=s("c6cd");(i.exports=function(d,u){return l[d]||(l[d]=u!==void 0?u:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,r,s){var a=s("d066"),l=s("241c"),d=s("7418"),u=s("825a");i.exports=a("Reflect","ownKeys")||function(p){var v=l.f(u(p)),_=d.f;return _?v.concat(_(p)):v}},"5a34":function(i,r,s){var a=s("44e7");i.exports=function(l){if(a(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,r){i.exports=function(s,a){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:a}}},"5db7":function(i,r,s){var a=s("23e7"),l=s("a2bf"),d=s("7b0b"),u=s("50c4"),f=s("1c0b"),p=s("65f0");a({target:"Array",proto:!0},{flatMap:function(_){var k=d(this),C=u(k.length),$;return f(_),$=p(k,0),$.length=l($,k,k,C,0,1,_,arguments.length>1?arguments[1]:void 0),$}})},6547:function(i,r,s){var a=s("a691"),l=s("1d80"),d=function(u){return function(f,p){var v=String(l(f)),_=a(p),k=v.length,C,$;return _<0||_>=k?u?"":void 0:(C=v.charCodeAt(_),C<55296||C>56319||_+1===k||($=v.charCodeAt(_+1))<56320||$>57343?u?v.charAt(_):C:u?v.slice(_,_+2):(C-55296<<10)+($-56320)+65536)}};i.exports={codeAt:d(!1),charAt:d(!0)}},"65f0":function(i,r,s){var a=s("861d"),l=s("e8b5"),d=s("b622"),u=d("species");i.exports=function(f,p){var v;return l(f)&&(v=f.constructor,typeof v=="function"&&(v===Array||l(v.prototype))?v=void 0:a(v)&&(v=v[u],v===null&&(v=void 0))),new(v===void 0?Array:v)(p===0?0:p)}},"69f3":function(i,r,s){var a=s("7f9a"),l=s("da84"),d=s("861d"),u=s("9112"),f=s("5135"),p=s("f772"),v=s("d012"),_=l.WeakMap,k,C,$,E=function(M){return $(M)?C(M):k(M,{})},P=function(M){return function(q){var B;if(!d(q)||(B=C(q)).type!==M)throw TypeError("Incompatible receiver, "+M+" required");return B}};if(a){var I=new _,O=I.get,L=I.has,S=I.set;k=function(M,q){return S.call(I,M,q),q},C=function(M){return O.call(I,M)||{}},$=function(M){return L.call(I,M)}}else{var j=p("state");v[j]=!0,k=function(M,q){return u(M,j,q),q},C=function(M){return f(M,j)?M[j]:{}},$=function(M){return f(M,j)}}i.exports={set:k,get:C,has:$,enforce:E,getterFor:P}},"6eeb":function(i,r,s){var a=s("da84"),l=s("9112"),d=s("5135"),u=s("ce4e"),f=s("8925"),p=s("69f3"),v=p.get,_=p.enforce,k=String(String).split("String");(i.exports=function(C,$,E,P){var I=P?!!P.unsafe:!1,O=P?!!P.enumerable:!1,L=P?!!P.noTargetGet:!1;if(typeof E=="function"&&(typeof $=="string"&&!d(E,"name")&&l(E,"name",$),_(E).source=k.join(typeof $=="string"?$:"")),C===a){O?C[$]=E:u($,E);return}else I?!L&&C[$]&&(O=!0):delete C[$];O?C[$]=E:l(C,$,E)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||f(this)})},"6f53":function(i,r,s){var a=s("83ab"),l=s("df75"),d=s("fc6a"),u=s("d1e7").f,f=function(p){return function(v){for(var _=d(v),k=l(_),C=k.length,$=0,E=[],P;C>$;)P=k[$++],(!a||u.call(_,P))&&E.push(p?[P,_[P]]:_[P]);return E}};i.exports={entries:f(!0),values:f(!1)}},"73d9":function(i,r,s){var a=s("44d2");a("flatMap")},7418:function(i,r){r.f=Object.getOwnPropertySymbols},"746f":function(i,r,s){var a=s("428f"),l=s("5135"),d=s("e538"),u=s("9bf2").f;i.exports=function(f){var p=a.Symbol||(a.Symbol={});l(p,f)||u(p,f,{value:d.f(f)})}},7839:function(i,r){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,r,s){var a=s("1d80");i.exports=function(l){return Object(a(l))}},"7c73":function(i,r,s){var a=s("825a"),l=s("37e8"),d=s("7839"),u=s("d012"),f=s("1be4"),p=s("cc12"),v=s("f772"),_=">",k="<",C="prototype",$="script",E=v("IE_PROTO"),P=function(){},I=function(M){return k+$+_+M+k+"/"+$+_},O=function(M){M.write(I("")),M.close();var q=M.parentWindow.Object;return M=null,q},L=function(){var M=p("iframe"),q="java"+$+":",B;return M.style.display="none",f.appendChild(M),M.src=String(q),B=M.contentWindow.document,B.open(),B.write(I("document.F=Object")),B.close(),B.F},S,j=function(){try{S=document.domain&&new ActiveXObject("htmlfile")}catch{}j=S?O(S):L();for(var M=d.length;M--;)delete j[C][d[M]];return j()};u[E]=!0,i.exports=Object.create||function(q,B){var V;return q!==null?(P[C]=a(q),V=new P,P[C]=null,V[E]=q):V=j(),B===void 0?V:l(V,B)}},"7dd0":function(i,r,s){var a=s("23e7"),l=s("9ed3"),d=s("e163"),u=s("d2bb"),f=s("d44e"),p=s("9112"),v=s("6eeb"),_=s("b622"),k=s("c430"),C=s("3f8c"),$=s("ae93"),E=$.IteratorPrototype,P=$.BUGGY_SAFARI_ITERATORS,I=_("iterator"),O="keys",L="values",S="entries",j=function(){return this};i.exports=function(M,q,B,V,G,Q,X){l(B,q,V);var Y=function(me){if(me===G&&ee)return ee;if(!P&&me in ce)return ce[me];switch(me){case O:return function(){return new B(this,me)};case L:return function(){return new B(this,me)};case S:return function(){return new B(this,me)}}return function(){return new B(this)}},Z=q+" Iterator",se=!1,ce=M.prototype,te=ce[I]||ce["@@iterator"]||G&&ce[G],ee=!P&&te||Y(G),ae=q=="Array"&&ce.entries||te,de,$e,be;if(ae&&(de=d(ae.call(new M)),E!==Object.prototype&&de.next&&(!k&&d(de)!==E&&(u?u(de,E):typeof de[I]!="function"&&p(de,I,j)),f(de,Z,!0,!0),k&&(C[Z]=j))),G==L&&te&&te.name!==L&&(se=!0,ee=function(){return te.call(this)}),(!k||X)&&ce[I]!==ee&&p(ce,I,ee),C[q]=ee,G)if($e={values:Y(L),keys:Q?ee:Y(O),entries:Y(S)},X)for(be in $e)(P||se||!(be in ce))&&v(ce,be,$e[be]);else a({target:q,proto:!0,forced:P||se},$e);return $e}},"7f9a":function(i,r,s){var a=s("da84"),l=s("8925"),d=a.WeakMap;i.exports=typeof d=="function"&&/native code/.test(l(d))},"825a":function(i,r,s){var a=s("861d");i.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,r,s){var a=s("d039");i.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,r,s){var a=s("c04e"),l=s("9bf2"),d=s("5c6c");i.exports=function(u,f,p){var v=a(f);v in u?l.f(u,v,d(0,p)):u[v]=p}},"861d":function(i,r){i.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},8875:function(i,r,s){var a,l,d;(function(u,f){l=[],a=f,d=typeof a=="function"?a.apply(r,l):a,d!==void 0&&(i.exports=d)})(typeof self<"u"?self:this,function(){function u(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==u&&document.currentScript)return document.currentScript;try{throw new Error}catch(S){var p=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,v=/@([^@]*):(\d+):(\d+)\s*$/ig,_=p.exec(S.stack)||v.exec(S.stack),k=_&&_[1]||!1,C=_&&_[2]||!1,$=document.location.href.replace(document.location.hash,""),E,P,I,O=document.getElementsByTagName("script");k===$&&(E=document.documentElement.outerHTML,P=new RegExp("(?:[^\\n]+?\\n){0,"+(C-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),I=E.replace(P,"$1").trim());for(var L=0;L<O.length;L++)if(O[L].readyState==="interactive"||O[L].src===k||k===$&&O[L].innerHTML&&O[L].innerHTML.trim()===I)return O[L];return null}}return u})},8925:function(i,r,s){var a=s("c6cd"),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(d){return l.call(d)}),i.exports=a.inspectSource},"8aa5":function(i,r,s){var a=s("6547").charAt;i.exports=function(l,d,u){return d+(u?a(l,d).length:1)}},"8bbf":function(i,r){i.exports=n},"90e3":function(i,r){var s=0,a=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++s+a).toString(36)}},9112:function(i,r,s){var a=s("83ab"),l=s("9bf2"),d=s("5c6c");i.exports=a?function(u,f,p){return l.f(u,f,d(1,p))}:function(u,f,p){return u[f]=p,u}},9263:function(i,r,s){var a=s("ad6d"),l=s("9f7f"),d=RegExp.prototype.exec,u=String.prototype.replace,f=d,p=function(){var C=/a/,$=/b*/g;return d.call(C,"a"),d.call($,"a"),C.lastIndex!==0||$.lastIndex!==0}(),v=l.UNSUPPORTED_Y||l.BROKEN_CARET,_=/()??/.exec("")[1]!==void 0,k=p||_||v;k&&(f=function($){var E=this,P,I,O,L,S=v&&E.sticky,j=a.call(E),M=E.source,q=0,B=$;return S&&(j=j.replace("y",""),j.indexOf("g")===-1&&(j+="g"),B=String($).slice(E.lastIndex),E.lastIndex>0&&(!E.multiline||E.multiline&&$[E.lastIndex-1]!==` `)&&(M="(?: "+M+")",B=" "+B,q++),I=new RegExp("^(?:"+M+")",j)),_&&(I=new RegExp("^"+M+"$(?!\\s)",j)),p&&(P=E.lastIndex),O=d.call(S?I:E,B),S?O?(O.input=O.input.slice(q),O[0]=O[0].slice(q),O.index=E.lastIndex,E.lastIndex+=O[0].length):E.lastIndex=0:p&&O&&(E.lastIndex=E.global?O.index+O[0].length:P),_&&O&&O.length>1&&u.call(O[0],I,function(){for(L=1;L<arguments.length-2;L++)arguments[L]===void 0&&(O[L]=void 0)}),O}),i.exports=f},"94ca":function(i,r,s){var a=s("d039"),l=/#|\.prototype\./,d=function(_,k){var C=f[u(_)];return C==v?!0:C==p?!1:typeof k=="function"?a(k):!!k},u=d.normalize=function(_){return String(_).replace(l,".").toLowerCase()},f=d.data={},p=d.NATIVE="N",v=d.POLYFILL="P";i.exports=d},"99af":function(i,r,s){var a=s("23e7"),l=s("d039"),d=s("e8b5"),u=s("861d"),f=s("7b0b"),p=s("50c4"),v=s("8418"),_=s("65f0"),k=s("1dde"),C=s("b622"),$=s("2d00"),E=C("isConcatSpreadable"),P=9007199254740991,I="Maximum allowed index exceeded",O=$>=51||!l(function(){var M=[];return M[E]=!1,M.concat()[0]!==M}),L=k("concat"),S=function(M){if(!u(M))return!1;var q=M[E];return q!==void 0?!!q:d(M)},j=!O||!L;a({target:"Array",proto:!0,forced:j},{concat:function(q){var B=f(this),V=_(B,0),G=0,Q,X,Y,Z,se;for(Q=-1,Y=arguments.length;Q<Y;Q++)if(se=Q===-1?B:arguments[Q],S(se)){if(Z=p(se.length),G+Z>P)throw TypeError(I);for(X=0;X<Z;X++,G++)X in se&&v(V,G,se[X])}else{if(G>=P)throw TypeError(I);v(V,G++,se)}return V.length=G,V}})},"9bdd":function(i,r,s){var a=s("825a");i.exports=function(l,d,u,f){try{return f?d(a(u)[0],u[1]):d(u)}catch(v){var p=l.return;throw p!==void 0&&a(p.call(l)),v}}},"9bf2":function(i,r,s){var a=s("83ab"),l=s("0cfb"),d=s("825a"),u=s("c04e"),f=Object.defineProperty;r.f=a?f:function(v,_,k){if(d(v),_=u(_,!0),d(k),l)try{return f(v,_,k)}catch{}if("get"in k||"set"in k)throw TypeError("Accessors not supported");return"value"in k&&(v[_]=k.value),v}},"9ed3":function(i,r,s){var a=s("ae93").IteratorPrototype,l=s("7c73"),d=s("5c6c"),u=s("d44e"),f=s("3f8c"),p=function(){return this};i.exports=function(v,_,k){var C=_+" Iterator";return v.prototype=l(a,{next:d(1,k)}),u(v,C,!1,!0),f[C]=p,v}},"9f7f":function(i,r,s){var a=s("d039");function l(d,u){return RegExp(d,u)}r.UNSUPPORTED_Y=a(function(){var d=l("a","y");return d.lastIndex=2,d.exec("abcd")!=null}),r.BROKEN_CARET=a(function(){var d=l("^r","gy");return d.lastIndex=2,d.exec("str")!=null})},a2bf:function(i,r,s){var a=s("e8b5"),l=s("50c4"),d=s("0366"),u=function(f,p,v,_,k,C,$,E){for(var P=k,I=0,O=$?d($,E,3):!1,L;I<_;){if(I in v){if(L=O?O(v[I],I,p):v[I],C>0&&a(L))P=u(f,p,L,l(L.length),P,C-1)-1;else{if(P>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[P]=L}P++}I++}return P};i.exports=u},a352:function(i,r){i.exports=o},a434:function(i,r,s){var a=s("23e7"),l=s("23cb"),d=s("a691"),u=s("50c4"),f=s("7b0b"),p=s("65f0"),v=s("8418"),_=s("1dde"),k=s("ae40"),C=_("splice"),$=k("splice",{ACCESSORS:!0,0:0,1:2}),E=Math.max,P=Math.min,I=9007199254740991,O="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!C||!$},{splice:function(S,j){var M=f(this),q=u(M.length),B=l(S,q),V=arguments.length,G,Q,X,Y,Z,se;if(V===0?G=Q=0:V===1?(G=0,Q=q-B):(G=V-2,Q=P(E(d(j),0),q-B)),q+G-Q>I)throw TypeError(O);for(X=p(M,Q),Y=0;Y<Q;Y++)Z=B+Y,Z in M&&v(X,Y,M[Z]);if(X.length=Q,G<Q){for(Y=B;Y<q-Q;Y++)Z=Y+Q,se=Y+G,Z in M?M[se]=M[Z]:delete M[se];for(Y=q;Y>q-Q+G;Y--)delete M[Y-1]}else if(G>Q)for(Y=q-Q;Y>B;Y--)Z=Y+Q-1,se=Y+G-1,Z in M?M[se]=M[Z]:delete M[se];for(Y=0;Y<G;Y++)M[Y+B]=arguments[Y+2];return M.length=q-Q+G,X}})},a4d3:function(i,r,s){var a=s("23e7"),l=s("da84"),d=s("d066"),u=s("c430"),f=s("83ab"),p=s("4930"),v=s("fdbf"),_=s("d039"),k=s("5135"),C=s("e8b5"),$=s("861d"),E=s("825a"),P=s("7b0b"),I=s("fc6a"),O=s("c04e"),L=s("5c6c"),S=s("7c73"),j=s("df75"),M=s("241c"),q=s("057f"),B=s("7418"),V=s("06cf"),G=s("9bf2"),Q=s("d1e7"),X=s("9112"),Y=s("6eeb"),Z=s("5692"),se=s("f772"),ce=s("d012"),te=s("90e3"),ee=s("b622"),ae=s("e538"),de=s("746f"),$e=s("d44e"),be=s("69f3"),me=s("b727").forEach,fe=se("hidden"),Ae="Symbol",je="prototype",Ye=ee("toPrimitive"),_t=be.set,xt=be.getterFor(Ae),we=Object[je],ve=l.Symbol,qe=d("JSON","stringify"),$t=V.f,ut=G.f,Ve=q.f,tt=Q.f,ge=Z("symbols"),ye=Z("op-symbols"),Te=Z("string-to-symbol-registry"),gt=Z("symbol-to-string-registry"),yt=Z("wks"),Xe=l.QObject,Ze=!Xe||!Xe[je]||!Xe[je].findChild,vt=f&&_(function(){return S(ut({},"a",{get:function(){return ut(this,"a",{value:7}).a}})).a!=7})?function(Ne,nt,It){var Zt=$t(we,nt);Zt&&delete we[nt],ut(Ne,nt,It),Zt&&Ne!==we&&ut(we,nt,Zt)}:ut,Ut=function(Ne,nt){var It=ge[Ne]=S(ve[je]);return _t(It,{type:Ae,tag:Ne,description:nt}),f||(It.description=nt),It},Je=v?function(Ne){return typeof Ne=="symbol"}:function(Ne){return Object(Ne)instanceof ve},We=function(nt,It,Zt){nt===we&&We(ye,It,Zt),E(nt);var dn=O(It,!0);return E(Zt),k(ge,dn)?(Zt.enumerable?(k(nt,fe)&&nt[fe][dn]&&(nt[fe][dn]=!1),Zt=S(Zt,{enumerable:L(0,!1)})):(k(nt,fe)||ut(nt,fe,L(1,{})),nt[fe][dn]=!0),vt(nt,dn,Zt)):ut(nt,dn,Zt)},pt=function(nt,It){E(nt);var Zt=I(It),dn=j(Zt).concat(bn(Zt));return me(dn,function(Hn){(!f||Vt.call(Zt,Hn))&&We(nt,Hn,Zt[Hn])}),nt},At=function(nt,It){return It===void 0?S(nt):pt(S(nt),It)},Vt=function(nt){var It=O(nt,!0),Zt=tt.call(this,It);return this===we&&k(ge,It)&&!k(ye,It)?!1:Zt||!k(this,It)||!k(ge,It)||k(this,fe)&&this[fe][It]?Zt:!0},cn=function(nt,It){var Zt=I(nt),dn=O(It,!0);if(!(Zt===we&&k(ge,dn)&&!k(ye,dn))){var Hn=$t(Zt,dn);return Hn&&k(ge,dn)&&!(k(Zt,fe)&&Zt[fe][dn])&&(Hn.enumerable=!0),Hn}},fn=function(nt){var It=Ve(I(nt)),Zt=[];return me(It,function(dn){!k(ge,dn)&&!k(ce,dn)&&Zt.push(dn)}),Zt},bn=function(nt){var It=nt===we,Zt=Ve(It?ye:I(nt)),dn=[];return me(Zt,function(Hn){k(ge,Hn)&&(!It||k(we,Hn))&&dn.push(ge[Hn])}),dn};if(p||(ve=function(){if(this instanceof ve)throw TypeError("Symbol is not a constructor");var nt=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),It=te(nt),Zt=function(dn){this===we&&Zt.call(ye,dn),k(this,fe)&&k(this[fe],It)&&(this[fe][It]=!1),vt(this,It,L(1,dn))};return f&&Ze&&vt(we,It,{configurable:!0,set:Zt}),Ut(It,nt)},Y(ve[je],"toString",function(){return xt(this).tag}),Y(ve,"withoutSetter",function(Ne){return Ut(te(Ne),Ne)}),Q.f=Vt,G.f=We,V.f=cn,M.f=q.f=fn,B.f=bn,ae.f=function(Ne){return Ut(ee(Ne),Ne)},f&&(ut(ve[je],"description",{configurable:!0,get:function(){return xt(this).description}}),u||Y(we,"propertyIsEnumerable",Vt,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:ve}),me(j(yt),function(Ne){de(Ne)}),a({target:Ae,stat:!0,forced:!p},{for:function(Ne){var nt=String(Ne);if(k(Te,nt))return Te[nt];var It=ve(nt);return Te[nt]=It,gt[It]=nt,It},keyFor:function(nt){if(!Je(nt))throw TypeError(nt+" is not a symbol");if(k(gt,nt))return gt[nt]},useSetter:function(){Ze=!0},useSimple:function(){Ze=!1}}),a({target:"Object",stat:!0,forced:!p,sham:!f},{create:At,defineProperty:We,defineProperties:pt,getOwnPropertyDescriptor:cn}),a({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:fn,getOwnPropertySymbols:bn}),a({target:"Object",stat:!0,forced:_(function(){B.f(1)})},{getOwnPropertySymbols:function(nt){return B.f(P(nt))}}),qe){var kt=!p||_(function(){var Ne=ve();return qe([Ne])!="[null]"||qe({a:Ne})!="{}"||qe(Object(Ne))!="{}"});a({target:"JSON",stat:!0,forced:kt},{stringify:function(nt,It,Zt){for(var dn=[nt],Hn=1,Oo;arguments.length>Hn;)dn.push(arguments[Hn++]);if(Oo=It,!(!$(It)&&nt===void 0||Je(nt)))return C(It)||(It=function(tn,Fo){if(typeof Oo=="function"&&(Fo=Oo.call(this,tn,Fo)),!Je(Fo))return Fo}),dn[1]=It,qe.apply(null,dn)}})}ve[je][Ye]||X(ve[je],Ye,ve[je].valueOf),$e(ve,Ae),ce[fe]=!0},a630:function(i,r,s){var a=s("23e7"),l=s("4df4"),d=s("1c7e"),u=!d(function(f){Array.from(f)});a({target:"Array",stat:!0,forced:u},{from:l})},a640:function(i,r,s){var a=s("d039");i.exports=function(l,d){var u=[][l];return!!u&&a(function(){u.call(null,d||function(){throw 1},1)})}},a691:function(i,r){var s=Math.ceil,a=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?a:s)(l)}},ab13:function(i,r,s){var a=s("b622"),l=a("match");i.exports=function(d){var u=/./;try{"/./"[d](u)}catch{try{return u[l]=!1,"/./"[d](u)}catch{}}return!1}},ac1f:function(i,r,s){var a=s("23e7"),l=s("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(i,r,s){var a=s("825a");i.exports=function(){var l=a(this),d="";return l.global&&(d+="g"),l.ignoreCase&&(d+="i"),l.multiline&&(d+="m"),l.dotAll&&(d+="s"),l.unicode&&(d+="u"),l.sticky&&(d+="y"),d}},ae40:function(i,r,s){var a=s("83ab"),l=s("d039"),d=s("5135"),u=Object.defineProperty,f={},p=function(v){throw v};i.exports=function(v,_){if(d(f,v))return f[v];_||(_={});var k=[][v],C=d(_,"ACCESSORS")?_.ACCESSORS:!1,$=d(_,0)?_[0]:p,E=d(_,1)?_[1]:void 0;return f[v]=!!k&&!l(function(){if(C&&!a)return!0;var P={length:-1};C?u(P,1,{enumerable:!0,get:p}):P[1]=1,k.call(P,$,E)})}},ae93:function(i,r,s){var a=s("e163"),l=s("9112"),d=s("5135"),u=s("b622"),f=s("c430"),p=u("iterator"),v=!1,_=function(){return this},k,C,$;[].keys&&($=[].keys(),"next"in $?(C=a(a($)),C!==Object.prototype&&(k=C)):v=!0),k==null&&(k={}),!f&&!d(k,p)&&l(k,p,_),i.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:v}},b041:function(i,r,s){var a=s("00ee"),l=s("f5df");i.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(i,r,s){var a=s("83ab"),l=s("9bf2").f,d=Function.prototype,u=d.toString,f=/^\s*function ([^ (]*)/,p="name";a&&!(p in d)&&l(d,p,{configurable:!0,get:function(){try{return u.call(this).match(f)[1]}catch{return""}}})},b622:function(i,r,s){var a=s("da84"),l=s("5692"),d=s("5135"),u=s("90e3"),f=s("4930"),p=s("fdbf"),v=l("wks"),_=a.Symbol,k=p?_:_&&_.withoutSetter||u;i.exports=function(C){return d(v,C)||(f&&d(_,C)?v[C]=_[C]:v[C]=k("Symbol."+C)),v[C]}},b64b:function(i,r,s){var a=s("23e7"),l=s("7b0b"),d=s("df75"),u=s("d039"),f=u(function(){d(1)});a({target:"Object",stat:!0,forced:f},{keys:function(v){return d(l(v))}})},b727:function(i,r,s){var a=s("0366"),l=s("44ad"),d=s("7b0b"),u=s("50c4"),f=s("65f0"),p=[].push,v=function(_){var k=_==1,C=_==2,$=_==3,E=_==4,P=_==6,I=_==5||P;return function(O,L,S,j){for(var M=d(O),q=l(M),B=a(L,S,3),V=u(q.length),G=0,Q=j||f,X=k?Q(O,V):C?Q(O,0):void 0,Y,Z;V>G;G++)if((I||G in q)&&(Y=q[G],Z=B(Y,G,M),_)){if(k)X[G]=Z;else if(Z)switch(_){case 3:return!0;case 5:return Y;case 6:return G;case 2:p.call(X,Y)}else if(E)return!1}return P?-1:$||E?E:X}};i.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)}},c04e:function(i,r,s){var a=s("861d");i.exports=function(l,d){if(!a(l))return l;var u,f;if(d&&typeof(u=l.toString)=="function"&&!a(f=u.call(l))||typeof(u=l.valueOf)=="function"&&!a(f=u.call(l))||!d&&typeof(u=l.toString)=="function"&&!a(f=u.call(l)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(i,r){i.exports=!1},c6b6:function(i,r){var s={}.toString;i.exports=function(a){return s.call(a).slice(8,-1)}},c6cd:function(i,r,s){var a=s("da84"),l=s("ce4e"),d="__core-js_shared__",u=a[d]||l(d,{});i.exports=u},c740:function(i,r,s){var a=s("23e7"),l=s("b727").findIndex,d=s("44d2"),u=s("ae40"),f="findIndex",p=!0,v=u(f);f in[]&&Array(1)[f](function(){p=!1}),a({target:"Array",proto:!0,forced:p||!v},{findIndex:function(k){return l(this,k,arguments.length>1?arguments[1]:void 0)}}),d(f)},c8ba:function(i,r){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}i.exports=s},c975:function(i,r,s){var a=s("23e7"),l=s("4d64").indexOf,d=s("a640"),u=s("ae40"),f=[].indexOf,p=!!f&&1/[1].indexOf(1,-0)<0,v=d("indexOf"),_=u("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:p||!v||!_},{indexOf:function(C){return p?f.apply(this,arguments)||0:l(this,C,arguments.length>1?arguments[1]:void 0)}})},ca84:function(i,r,s){var a=s("5135"),l=s("fc6a"),d=s("4d64").indexOf,u=s("d012");i.exports=function(f,p){var v=l(f),_=0,k=[],C;for(C in v)!a(u,C)&&a(v,C)&&k.push(C);for(;p.length>_;)a(v,C=p[_++])&&(~d(k,C)||k.push(C));return k}},caad:function(i,r,s){var a=s("23e7"),l=s("4d64").includes,d=s("44d2"),u=s("ae40"),f=u("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!f},{includes:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}}),d("includes")},cc12:function(i,r,s){var a=s("da84"),l=s("861d"),d=a.document,u=l(d)&&l(d.createElement);i.exports=function(f){return u?d.createElement(f):{}}},ce4e:function(i,r,s){var a=s("da84"),l=s("9112");i.exports=function(d,u){try{l(a,d,u)}catch{a[d]=u}return u}},d012:function(i,r){i.exports={}},d039:function(i,r){i.exports=function(s){try{return!!s()}catch{return!0}}},d066:function(i,r,s){var a=s("428f"),l=s("da84"),d=function(u){return typeof u=="function"?u:void 0};i.exports=function(u,f){return arguments.length<2?d(a[u])||d(l[u]):a[u]&&a[u][f]||l[u]&&l[u][f]}},d1e7:function(i,r,s){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,d=l&&!a.call({1:2},1);r.f=d?function(f){var p=l(this,f);return!!p&&p.enumerable}:a},d28b:function(i,r,s){var a=s("746f");a("iterator")},d2bb:function(i,r,s){var a=s("825a"),l=s("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d=!1,u={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(u,[]),d=u instanceof Array}catch{}return function(v,_){return a(v),l(_),d?f.call(v,_):v.__proto__=_,v}}():void 0)},d3b7:function(i,r,s){var a=s("00ee"),l=s("6eeb"),d=s("b041");a||l(Object.prototype,"toString",d,{unsafe:!0})},d44e:function(i,r,s){var a=s("9bf2").f,l=s("5135"),d=s("b622"),u=d("toStringTag");i.exports=function(f,p,v){f&&!l(f=v?f:f.prototype,u)&&a(f,u,{configurable:!0,value:p})}},d58f:function(i,r,s){var a=s("1c0b"),l=s("7b0b"),d=s("44ad"),u=s("50c4"),f=function(p){return function(v,_,k,C){a(_);var $=l(v),E=d($),P=u($.length),I=p?P-1:0,O=p?-1:1;if(k<2)for(;;){if(I in E){C=E[I],I+=O;break}if(I+=O,p?I<0:P<=I)throw TypeError("Reduce of empty array with no initial value")}for(;p?I>=0:P>I;I+=O)I in E&&(C=_(C,E[I],I,$));return C}};i.exports={left:f(!1),right:f(!0)}},d784:function(i,r,s){s("ac1f");var a=s("6eeb"),l=s("d039"),d=s("b622"),u=s("9263"),f=s("9112"),p=d("species"),v=!l(function(){var E=/./;return E.exec=function(){var P=[];return P.groups={a:"7"},P},"".replace(E,"$<a>")!=="7"}),_=function(){return"a".replace(/./,"$0")==="$0"}(),k=d("replace"),C=function(){return/./[k]?/./[k]("a","$0")==="":!1}(),$=!l(function(){var E=/(?:)/,P=E.exec;E.exec=function(){return P.apply(this,arguments)};var I="ab".split(E);return I.length!==2||I[0]!=="a"||I[1]!=="b"});i.exports=function(E,P,I,O){var L=d(E),S=!l(function(){var G={};return G[L]=function(){return 7},""[E](G)!=7}),j=S&&!l(function(){var G=!1,Q=/a/;return E==="split"&&(Q={},Q.constructor={},Q.constructor[p]=function(){return Q},Q.flags="",Q[L]=/./[L]),Q.exec=function(){return G=!0,null},Q[L](""),!G});if(!S||!j||E==="replace"&&!(v&&_&&!C)||E==="split"&&!$){var M=/./[L],q=I(L,""[E],function(G,Q,X,Y,Z){return Q.exec===u?S&&!Z?{done:!0,value:M.call(Q,X,Y)}:{done:!0,value:G.call(X,Q,Y)}:{done:!1}},{REPLACE_KEEPS_$0:_,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:C}),B=q[0],V=q[1];a(String.prototype,E,B),a(RegExp.prototype,L,P==2?function(G,Q){return V.call(G,this,Q)}:function(G){return V.call(G,this)})}O&&f(RegExp.prototype[L],"sham",!0)}},d81d:function(i,r,s){var a=s("23e7"),l=s("b727").map,d=s("1dde"),u=s("ae40"),f=d("map"),p=u("map");a({target:"Array",proto:!0,forced:!f||!p},{map:function(_){return l(this,_,arguments.length>1?arguments[1]:void 0)}})},da84:function(i,r,s){(function(a){var l=function(d){return d&&d.Math==Math&&d};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof a=="object"&&a)||Function("return this")()}).call(this,s("c8ba"))},dbb4:function(i,r,s){var a=s("23e7"),l=s("83ab"),d=s("56ef"),u=s("fc6a"),f=s("06cf"),p=s("8418");a({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(_){for(var k=u(_),C=f.f,$=d(k),E={},P=0,I,O;$.length>P;)O=C(k,I=$[P++]),O!==void 0&&p(E,I,O);return E}})},dbf1:function(i,r,s){(function(a){s.d(r,"a",function(){return d});function l(){return typeof window<"u"?window.console:a.console}var d=l()}).call(this,s("c8ba"))},ddb0:function(i,r,s){var a=s("da84"),l=s("fdbc"),d=s("e260"),u=s("9112"),f=s("b622"),p=f("iterator"),v=f("toStringTag"),_=d.values;for(var k in l){var C=a[k],$=C&&C.prototype;if($){if($[p]!==_)try{u($,p,_)}catch{$[p]=_}if($[v]||u($,v,k),l[k]){for(var E in d)if($[E]!==d[E])try{u($,E,d[E])}catch{$[E]=d[E]}}}}},df75:function(i,r,s){var a=s("ca84"),l=s("7839");i.exports=Object.keys||function(u){return a(u,l)}},e01a:function(i,r,s){var a=s("23e7"),l=s("83ab"),d=s("da84"),u=s("5135"),f=s("861d"),p=s("9bf2").f,v=s("e893"),_=d.Symbol;if(l&&typeof _=="function"&&(!("description"in _.prototype)||_().description!==void 0)){var k={},C=function(){var L=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),S=this instanceof C?new _(L):L===void 0?_():_(L);return L===""&&(k[S]=!0),S};v(C,_);var $=C.prototype=_.prototype;$.constructor=C;var E=$.toString,P=String(_("test"))=="Symbol(test)",I=/^Symbol\((.*)\)[^)]+$/;p($,"description",{configurable:!0,get:function(){var L=f(this)?this.valueOf():this,S=E.call(L);if(u(k,L))return"";var j=P?S.slice(7,-1):S.replace(I,"$1");return j===""?void 0:j}}),a({global:!0,forced:!0},{Symbol:C})}},e163:function(i,r,s){var a=s("5135"),l=s("7b0b"),d=s("f772"),u=s("e177"),f=d("IE_PROTO"),p=Object.prototype;i.exports=u?Object.getPrototypeOf:function(v){return v=l(v),a(v,f)?v[f]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?p:null}},e177:function(i,r,s){var a=s("d039");i.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(i,r,s){var a=s("fc6a"),l=s("44d2"),d=s("3f8c"),u=s("69f3"),f=s("7dd0"),p="Array Iterator",v=u.set,_=u.getterFor(p);i.exports=f(Array,"Array",function(k,C){v(this,{type:p,target:a(k),index:0,kind:C})},function(){var k=_(this),C=k.target,$=k.kind,E=k.index++;return!C||E>=C.length?(k.target=void 0,{value:void 0,done:!0}):$=="keys"?{value:E,done:!1}:$=="values"?{value:C[E],done:!1}:{value:[E,C[E]],done:!1}},"values"),d.Arguments=d.Array,l("keys"),l("values"),l("entries")},e439:function(i,r,s){var a=s("23e7"),l=s("d039"),d=s("fc6a"),u=s("06cf").f,f=s("83ab"),p=l(function(){u(1)}),v=!f||p;a({target:"Object",stat:!0,forced:v,sham:!f},{getOwnPropertyDescriptor:function(k,C){return u(d(k),C)}})},e538:function(i,r,s){var a=s("b622");r.f=a},e893:function(i,r,s){var a=s("5135"),l=s("56ef"),d=s("06cf"),u=s("9bf2");i.exports=function(f,p){for(var v=l(p),_=u.f,k=d.f,C=0;C<v.length;C++){var $=v[C];a(f,$)||_(f,$,k(p,$))}}},e8b5:function(i,r,s){var a=s("c6b6");i.exports=Array.isArray||function(d){return a(d)=="Array"}},e95a:function(i,r,s){var a=s("b622"),l=s("3f8c"),d=a("iterator"),u=Array.prototype;i.exports=function(f){return f!==void 0&&(l.Array===f||u[d]===f)}},f5df:function(i,r,s){var a=s("00ee"),l=s("c6b6"),d=s("b622"),u=d("toStringTag"),f=l(function(){return arguments}())=="Arguments",p=function(v,_){try{return v[_]}catch{}};i.exports=a?l:function(v){var _,k,C;return v===void 0?"Undefined":v===null?"Null":typeof(k=p(_=Object(v),u))=="string"?k:f?l(_):(C=l(_))=="Object"&&typeof _.callee=="function"?"Arguments":C}},f772:function(i,r,s){var a=s("5692"),l=s("90e3"),d=a("keys");i.exports=function(u){return d[u]||(d[u]=l(u))}},fb15:function(i,r,s){if(s.r(r),typeof window<"u"){var a=window.document.currentScript;{var l=s("8875");a=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var d=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);d&&(s.p=d[1])}s("99af"),s("4de4"),s("4160"),s("c975"),s("d81d"),s("a434"),s("159b"),s("a4d3"),s("e439"),s("dbb4"),s("b64b");function u(Je,We,pt){return We in Je?Object.defineProperty(Je,We,{value:pt,enumerable:!0,configurable:!0,writable:!0}):Je[We]=pt,Je}function f(Je,We){var pt=Object.keys(Je);if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(Je);We&&(At=At.filter(function(Vt){return Object.getOwnPropertyDescriptor(Je,Vt).enumerable})),pt.push.apply(pt,At)}return pt}function p(Je){for(var We=1;We<arguments.length;We++){var pt=arguments[We]!=null?arguments[We]:{};We%2?f(Object(pt),!0).forEach(function(At){u(Je,At,pt[At])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Je,Object.getOwnPropertyDescriptors(pt)):f(Object(pt)).forEach(function(At){Object.defineProperty(Je,At,Object.getOwnPropertyDescriptor(pt,At))})}return Je}function v(Je){if(Array.isArray(Je))return Je}s("e01a"),s("d28b"),s("e260"),s("d3b7"),s("3ca3"),s("ddb0");function _(Je,We){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(Je)))){var pt=[],At=!0,Vt=!1,cn=void 0;try{for(var fn=Je[Symbol.iterator](),bn;!(At=(bn=fn.next()).done)&&(pt.push(bn.value),!(We&&pt.length===We));At=!0);}catch(kt){Vt=!0,cn=kt}finally{try{!At&&fn.return!=null&&fn.return()}finally{if(Vt)throw cn}}return pt}}s("a630"),s("fb6a"),s("b0c0"),s("25f0");function k(Je,We){(We==null||We>Je.length)&&(We=Je.length);for(var pt=0,At=new Array(We);pt<We;pt++)At[pt]=Je[pt];return At}function C(Je,We){if(Je){if(typeof Je=="string")return k(Je,We);var pt=Object.prototype.toString.call(Je).slice(8,-1);if(pt==="Object"&&Je.constructor&&(pt=Je.constructor.name),pt==="Map"||pt==="Set")return Array.from(Je);if(pt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pt))return k(Je,We)}}function $(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E(Je,We){return v(Je)||_(Je,We)||C(Je,We)||$()}function P(Je){if(Array.isArray(Je))return k(Je)}function I(Je){if(typeof Symbol<"u"&&Symbol.iterator in Object(Je))return Array.from(Je)}function O(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L(Je){return P(Je)||I(Je)||C(Je)||O()}var S=s("a352"),j=s.n(S);function M(Je){Je.parentElement!==null&&Je.parentElement.removeChild(Je)}function q(Je,We,pt){var At=pt===0?Je.children[0]:Je.children[pt-1].nextSibling;Je.insertBefore(We,At)}var B=s("dbf1");s("13d5"),s("4fad"),s("ac1f"),s("5319");function V(Je){var We=Object.create(null);return function(At){var Vt=We[At];return Vt||(We[At]=Je(At))}}var G=/-(\w)/g,Q=V(function(Je){return Je.replace(G,function(We,pt){return pt.toUpperCase()})});s("5db7"),s("73d9");var X=["Start","Add","Remove","Update","End"],Y=["Choose","Unchoose","Sort","Filter","Clone"],Z=["Move"],se=[Z,X,Y].flatMap(function(Je){return Je}).map(function(Je){return"on".concat(Je)}),ce={manage:Z,manageAndEmit:X,emit:Y};function te(Je){return se.indexOf(Je)!==-1}s("caad"),s("2ca0");var ee=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function ae(Je){return ee.includes(Je)}function de(Je){return["transition-group","TransitionGroup"].includes(Je)}function $e(Je){return["id","class","role","style"].includes(Je)||Je.startsWith("data-")||Je.startsWith("aria-")||Je.startsWith("on")}function be(Je){return Je.reduce(function(We,pt){var At=E(pt,2),Vt=At[0],cn=At[1];return We[Vt]=cn,We},{})}function me(Je){var We=Je.$attrs,pt=Je.componentData,At=pt===void 0?{}:pt,Vt=be(Object.entries(We).filter(function(cn){var fn=E(cn,2),bn=fn[0];return fn[1],$e(bn)}));return p(p({},Vt),At)}function fe(Je){var We=Je.$attrs,pt=Je.callBackBuilder,At=be(Ae(We));Object.entries(pt).forEach(function(cn){var fn=E(cn,2),bn=fn[0],kt=fn[1];ce[bn].forEach(function(Ne){At["on".concat(Ne)]=kt(Ne)})});var Vt="[data-draggable]".concat(At.draggable||"");return p(p({},At),{},{draggable:Vt})}function Ae(Je){return Object.entries(Je).filter(function(We){var pt=E(We,2),At=pt[0];return pt[1],!$e(At)}).map(function(We){var pt=E(We,2),At=pt[0],Vt=pt[1];return[Q(At),Vt]}).filter(function(We){var pt=E(We,2),At=pt[0];return pt[1],!te(At)})}s("c740");function je(Je,We){if(!(Je instanceof We))throw new TypeError("Cannot call a class as a function")}function Ye(Je,We){for(var pt=0;pt<We.length;pt++){var At=We[pt];At.enumerable=At.enumerable||!1,At.configurable=!0,"value"in At&&(At.writable=!0),Object.defineProperty(Je,At.key,At)}}function _t(Je,We,pt){return We&&Ye(Je.prototype,We),pt&&Ye(Je,pt),Je}var xt=function(We){var pt=We.el;return pt},we=function(We,pt){return We.__draggable_context=pt},ve=function(We){return We.__draggable_context},qe=function(){function Je(We){var pt=We.nodes,At=pt.header,Vt=pt.default,cn=pt.footer,fn=We.root,bn=We.realList;je(this,Je),this.defaultNodes=Vt,this.children=[].concat(L(At),L(Vt),L(cn)),this.externalComponent=fn.externalComponent,this.rootTransition=fn.transition,this.tag=fn.tag,this.realList=bn}return _t(Je,[{key:"render",value:function(pt,At){var Vt=this.tag,cn=this.children,fn=this._isRootComponent,bn=fn?{default:function(){return cn}}:cn;return pt(Vt,At,bn)}},{key:"updated",value:function(){var pt=this.defaultNodes,At=this.realList;pt.forEach(function(Vt,cn){we(xt(Vt),{element:At[cn],index:cn})})}},{key:"getUnderlyingVm",value:function(pt){return ve(pt)}},{key:"getVmIndexFromDomIndex",value:function(pt,At){var Vt=this.defaultNodes,cn=Vt.length,fn=At.children,bn=fn.item(pt);if(bn===null)return cn;var kt=ve(bn);if(kt)return kt.index;if(cn===0)return 0;var Ne=xt(Vt[0]),nt=L(fn).findIndex(function(It){return It===Ne});return pt<nt?0:cn}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),Je}(),$t=s("8bbf");function ut(Je,We){var pt=Je[We];return pt?pt():[]}function Ve(Je){var We=Je.$slots,pt=Je.realList,At=Je.getKey,Vt=pt||[],cn=["header","footer"].map(function(It){return ut(We,It)}),fn=E(cn,2),bn=fn[0],kt=fn[1],Ne=We.item;if(!Ne)throw new Error("draggable element must have an item slot");var nt=Vt.flatMap(function(It,Zt){return Ne({element:It,index:Zt}).map(function(dn){return dn.key=At(It),dn.props=p(p({},dn.props||{}),{},{"data-draggable":!0}),dn})});if(nt.length!==Vt.length)throw new Error("Item slot must have only one child");return{header:bn,footer:kt,default:nt}}function tt(Je){var We=de(Je),pt=!ae(Je)&&!We;return{transition:We,externalComponent:pt,tag:pt?Object($t.resolveComponent)(Je):We?$t.TransitionGroup:Je}}function ge(Je){var We=Je.$slots,pt=Je.tag,At=Je.realList,Vt=Je.getKey,cn=Ve({$slots:We,realList:At,getKey:Vt}),fn=tt(pt);return new qe({nodes:cn,root:fn,realList:At})}function ye(Je,We){var pt=this;Object($t.nextTick)(function(){return pt.$emit(Je.toLowerCase(),We)})}function Te(Je){var We=this;return function(pt,At){if(We.realList!==null)return We["onDrag".concat(Je)](pt,At)}}function gt(Je){var We=this,pt=Te.call(this,Je);return function(At,Vt){pt.call(We,At,Vt),ye.call(We,Je,At)}}var yt=null,Xe={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(We){return We}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Ze=["update:modelValue","change"].concat(L([].concat(L(ce.manageAndEmit),L(ce.emit)).map(function(Je){return Je.toLowerCase()}))),vt=Object($t.defineComponent)({name:"draggable",inheritAttrs:!1,props:Xe,emits:Ze,data:function(){return{error:!1}},render:function(){try{this.error=!1;var We=this.$slots,pt=this.$attrs,At=this.tag,Vt=this.componentData,cn=this.realList,fn=this.getKey,bn=ge({$slots:We,tag:At,realList:cn,getKey:fn});this.componentStructure=bn;var kt=me({$attrs:pt,componentData:Vt});return bn.render($t.h,kt)}catch(Ne){return this.error=!0,Object($t.h)("pre",{style:{color:"red"}},Ne.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&B.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var We=this;if(!this.error){var pt=this.$attrs,At=this.$el,Vt=this.componentStructure;Vt.updated();var cn=fe({$attrs:pt,callBackBuilder:{manageAndEmit:function(kt){return gt.call(We,kt)},emit:function(kt){return ye.bind(We,kt)},manage:function(kt){return Te.call(We,kt)}}}),fn=At.nodeType===1?At:At.parentElement;this._sortable=new j.a(fn,cn),this.targetDomElement=fn,fn.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var We=this.list;return We||this.modelValue},getKey:function(){var We=this.itemKey;return typeof We=="function"?We:function(pt){return pt[We]}}},watch:{$attrs:{handler:function(We){var pt=this._sortable;pt&&Ae(We).forEach(function(At){var Vt=E(At,2),cn=Vt[0],fn=Vt[1];pt.option(cn,fn)})},deep:!0}},methods:{getUnderlyingVm:function(We){return this.componentStructure.getUnderlyingVm(We)||null},getUnderlyingPotencialDraggableComponent:function(We){return We.__draggable_component__},emitChanges:function(We){var pt=this;Object($t.nextTick)(function(){return pt.$emit("change",We)})},alterList:function(We){if(this.list){We(this.list);return}var pt=L(this.modelValue);We(pt),this.$emit("update:modelValue",pt)},spliceList:function(){var We=arguments,pt=function(Vt){return Vt.splice.apply(Vt,L(We))};this.alterList(pt)},updatePosition:function(We,pt){var At=function(cn){return cn.splice(pt,0,cn.splice(We,1)[0])};this.alterList(At)},getRelatedContextFromMoveEvent:function(We){var pt=We.to,At=We.related,Vt=this.getUnderlyingPotencialDraggableComponent(pt);if(!Vt)return{component:Vt};var cn=Vt.realList,fn={list:cn,component:Vt};if(pt!==At&&cn){var bn=Vt.getUnderlyingVm(At)||{};return p(p({},bn),fn)}return fn},getVmIndexFromDomIndex:function(We){return this.componentStructure.getVmIndexFromDomIndex(We,this.targetDomElement)},onDragStart:function(We){this.context=this.getUnderlyingVm(We.item),We.item._underlying_vm_=this.clone(this.context.element),yt=We.item},onDragAdd:function(We){var pt=We.item._underlying_vm_;if(pt!==void 0){M(We.item);var At=this.getVmIndexFromDomIndex(We.newIndex);this.spliceList(At,0,pt);var Vt={element:pt,newIndex:At};this.emitChanges({added:Vt})}},onDragRemove:function(We){if(q(this.$el,We.item,We.oldIndex),We.pullMode==="clone"){M(We.clone);return}var pt=this.context,At=pt.index,Vt=pt.element;this.spliceList(At,1);var cn={element:Vt,oldIndex:At};this.emitChanges({removed:cn})},onDragUpdate:function(We){M(We.item),q(We.from,We.item,We.oldIndex);var pt=this.context.index,At=this.getVmIndexFromDomIndex(We.newIndex);this.updatePosition(pt,At);var Vt={element:this.context.element,oldIndex:pt,newIndex:At};this.emitChanges({moved:Vt})},computeFutureIndex:function(We,pt){if(!We.element)return 0;var At=L(pt.to.children).filter(function(bn){return bn.style.display!=="none"}),Vt=At.indexOf(pt.related),cn=We.component.getVmIndexFromDomIndex(Vt),fn=At.indexOf(yt)!==-1;return fn||!pt.willInsertAfter?cn:cn+1},onDragMove:function(We,pt){var At=this.move,Vt=this.realList;if(!At||!Vt)return!0;var cn=this.getRelatedContextFromMoveEvent(We),fn=this.computeFutureIndex(cn,We),bn=p(p({},this.context),{},{futureIndex:fn}),kt=p(p({},We),{},{relatedContext:cn,draggedContext:bn});return At(kt,pt)},onDragEnd:function(){yt=null}}}),Ut=vt;r.default=Ut},fb6a:function(i,r,s){var a=s("23e7"),l=s("861d"),d=s("e8b5"),u=s("23cb"),f=s("50c4"),p=s("fc6a"),v=s("8418"),_=s("b622"),k=s("1dde"),C=s("ae40"),$=k("slice"),E=C("slice",{ACCESSORS:!0,0:0,1:2}),P=_("species"),I=[].slice,O=Math.max;a({target:"Array",proto:!0,forced:!$||!E},{slice:function(S,j){var M=p(this),q=f(M.length),B=u(S,q),V=u(j===void 0?q:j,q),G,Q,X;if(d(M)&&(G=M.constructor,typeof G=="function"&&(G===Array||d(G.prototype))?G=void 0:l(G)&&(G=G[P],G===null&&(G=void 0)),G===Array||G===void 0))return I.call(M,B,V);for(Q=new(G===void 0?Array:G)(O(V-B,0)),X=0;B<V;B++,X++)B in M&&v(Q,X,M[B]);return Q.length=X,Q}})},fc6a:function(i,r,s){var a=s("44ad"),l=s("1d80");i.exports=function(d){return a(l(d))}},fdbc:function(i,r){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(i,r,s){var a=s("4930");i.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(ble);var szt=ble.exports;const nk=Ol(szt),azt={components:{AuthorProductGroupCreateButton:Xjt,AuthorProductGroupUpdateButton:vle,AuthorProductGroupDeleteButton:_le,AuthorProductGroupHiddenToggleButton:yle,ContentItem:yh,ProductCountPill:Ig,Loading:Rt,draggable:nk},data(){return{primaryColor:window.primaryColor,drag:!1}},computed:{...Oe({author:"author/getDetail",loading:"authorProductGroup/getLoading"}),groups:{get(){return this.$store.getters["authorProductGroup/getShown"]},set(e){this.$store.dispatch("authorProductGroup/reorder",{groups:e})}}},mounted(){this.$store.dispatch("authorProductGroup/index",{user:this.author.id,shown:!0})}},lzt={class:"d-flex justify-content-between"},czt={class:"mb-0"},dzt={key:0,class:"vl-parent mh-4rem"},uzt={key:1,class:"text-center text-gray-700 mb-0"};function hzt(e,t,n,o,i,r){const s=y("AuthorProductGroupCreateButton"),a=y("Loading"),l=y("ProductCountPill"),d=y("AuthorProductGroupUpdateButton"),u=y("AuthorProductGroupHiddenToggleButton"),f=y("AuthorProductGroupDeleteButton"),p=y("ContentItem"),v=y("draggable");return h(),g("div",null,[c("div",lzt,[c("h4",czt,m(e.$t("author_product_group.settings")),1),c("div",null,[b(s)])]),e.loading?(h(),g("div",dzt,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=_=>e.loading=_),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):r.groups.length?(h(),W(v,{key:2,modelValue:r.groups,"onUpdate:modelValue":t[1]||(t[1]=_=>r.groups=_),group:"author-product-groups-shown",animation:200,disabled:!1,ghostClass:"ghost","item-key":"id",onStart:t[2]||(t[2]=_=>i.drag=!0),onEnd:t[3]||(t[3]=_=>i.drag=!1)},{item:F(({element:_})=>[b(p,{"is-movable":"",image:_.cover_img?_.cover_img:"gradient","image-height":"43","image-width":"115",class:"mt-3"},{title:F(()=>[z(m(_.title),1)]),tags:F(()=>[b(l,{count:_.product_count},null,8,["count"])]),buttons:F(()=>[b(d,{group:_},null,8,["group"])]),dotsButton:F(()=>[b(u,{id:_.id,hidden:_.hidden},null,8,["id","hidden"]),b(f,{group:_},null,8,["group"])]),_:2},1032,["image"])]),_:1},8,["modelValue"])):(h(),g("p",uzt,m(e.$t("author_product_group.empty")),1))])}const fzt=U(azt,[["render",hzt]]),mzt={components:{AuthorProductGroupUpdateButton:vle,AuthorProductGroupDeleteButton:_le,AuthorProductGroupHiddenToggleButton:yle,ContentItem:yh,ProductCountPill:Ig},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({author:"author/getDetail",loading:"authorProductGroup/getLoading"}),groups:{get(){return this.$store.getters["authorProductGroup/getHidden"]},set(e){this.$store.commit("authorProductGroup/setHidden",e)}}},mounted(){this.$store.dispatch("authorProductGroup/index",{user:this.author.id,hidden:!0})}},pzt={key:0},gzt={class:"mb-0"};function vzt(e,t,n,o,i,r){const s=y("ProductCountPill"),a=y("AuthorProductGroupUpdateButton"),l=y("AuthorProductGroupHiddenToggleButton"),d=y("AuthorProductGroupDeleteButton"),u=y("ContentItem");return r.groups.length?(h(),g("div",pzt,[c("h4",gzt,m(e.$t("author_product_group.hidden")),1),(h(!0),g(pe,null,Me(r.groups,f=>(h(),W(u,{image:f.cover_img?f.cover_img:"gradient","image-height":"43","image-width":"115",key:f.id,index:f.id,class:"mt-3"},{title:F(()=>[z(m(f.title),1)]),tags:F(()=>[b(s,{count:f.product_count},null,8,["count"])]),buttons:F(()=>[b(a,{group:f},null,8,["group"])]),dotsButton:F(()=>[b(l,{id:f.id,hidden:f.hidden},null,8,["id","hidden"]),b(d,{group:f},null,8,["group"])]),_:2},1032,["image","index"]))),128))])):D("",!0)}const _zt=U(mzt,[["render",vzt]]),yzt={components:{AuthorProductGroupShown:fzt,AuthorProductGroupHidden:_zt,AuthorSettingsLockedSection:Tg,AppIcon:Ue},computed:{...Oe({auth:"auth/auth",author:"author/getDetail"})},methods:{hasPermission(e){return ru.settings_permissions[this.author.badge][e]}}},bzt={class:"bg-white rounded border border-primary-20 p-4"},kzt={key:1},wzt={class:"mb-3"},$zt={class:"text-gray-700 mb-3"},Czt={href:"https://www.canva.com/design/DAFkeGtHmsI/wChoO5eG75ip0_JdbzyZRw/view?utm_content=DAFkeGtHmsI&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink&mode=preview",class:"d-flex align-items-center",target:"_blank"};function Szt(e,t,n,o,i,r){const s=y("AuthorSettingsLockedSection"),a=y("AppIcon"),l=y("AuthorProductGroupShown"),d=y("AuthorProductGroupHidden");return h(),g("div",bzt,[r.hasPermission("product_groups")?(h(),g("div",kzt,[c("h3",wzt,m(e.$t("author_product_group.title")),1),c("p",$zt,m(e.$t("author_product_group.text")),1),c("a",Czt,[z(m(e.$t("author_product_group.canva"))+" ",1),b(a,{icon:"new-tab",class:"ms-icon"})]),t[0]||(t[0]=c("hr",{class:"my-4"},null,-1)),b(l,{class:"mb-4"}),b(d)])):(h(),W(s,{key:0,"number-of-products":e.author.products_count,badge:e.author.badge},{header:F(()=>[z(m(e.$t("author_product_group.title")),1)]),text:F(()=>[z(m(e.$t("author_product_group.text")),1)]),_:1},8,["number-of-products","badge"]))])}const Tzt=U(yzt,[["render",Szt]]),Ezt={components:{AppIcon:Ue},computed:{...sn({badge:e=>e.author.detail.badge})},methods:{hasPermission(e){return ru.settings_permissions[this.badge][e]}}},Izt={class:"py-2 bg-white medium"},Pzt={id:"tabs",class:"tabs"},Azt={class:"tabList-vertical"},Dzt=["onClick"],xzt=["onClick"],Ozt=["onClick"],Lzt=["onClick"],Mzt=["onClick"],Nzt=["onClick"],Rzt=["onClick"],jzt=["onClick"],Fzt=["onClick"],zzt=["onClick"];function Uzt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link"),l=an("tooltip");return h(),g("div",Izt,[c("div",Pzt,[c("ul",Azt,[b(a,{to:{name:"dashboard/nastaveni/informace"},custom:""},{default:F(({isActive:d,navigate:u})=>[r.hasPermission("basic_settings")?(h(),g("li",{key:0,onClick:u,class:J([d&&"active"])},m(e.$t("dashboard.author.settings.tabs.informations")),11,Dzt)):xe((h(),g("li",{key:1,class:J(["locked",[d&&"active"]]),onClick:u},[z(m(e.$t("dashboard.author.settings.tabs.basic_settings"))+" ",1),b(s,{icon:"lock",width:"20",height:"20",class:"ms-icon"})],10,xzt)),[[l,{content:e.$t("public.locked"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),_:1}),b(a,{to:{name:"dashboard/nastaveni/profilovy-obrazek"},custom:""},{default:F(({isActive:d,navigate:u})=>[r.hasPermission("basic_settings")?(h(),g("li",{key:0,onClick:u,class:J([d&&"active"])},m(e.$t("dashboard.author.settings.tabs.profile_image")),11,Ozt)):xe((h(),g("li",{key:1,class:J(["locked",[d&&"active"]]),onClick:u},[z(m(e.$t("dashboard.author.settings.tabs.basic_settings"))+" ",1),b(s,{icon:"lock",width:"20",height:"20",class:"ms-icon"})],10,Lzt)),[[l,{content:e.$t("public.locked"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),_:1}),b(a,{to:{name:"dashboard/nastaveni/uvodni-obrazek"},custom:""},{default:F(({isActive:d,navigate:u})=>[r.hasPermission("cover_img")?(h(),g("li",{key:0,onClick:u,class:J([d&&"active"])},m(e.$t("dashboard.author.settings.tabs.cover_image")),11,Mzt)):xe((h(),g("li",{key:1,class:J(["locked",[d&&"active"]]),onClick:u},[z(m(e.$t("dashboard.author.settings.tabs.cover_image"))+" ",1),b(s,{icon:"lock",width:"20",height:"20",class:"ms-icon"})],10,Nzt)),[[l,{content:e.$t("public.locked"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),_:1}),b(a,{to:{name:"dashboard/nastaveni/socialni-site"},custom:""},{default:F(({isActive:d,navigate:u})=>[r.hasPermission("basic_settings")?(h(),g("li",{key:0,onClick:u,class:J([d&&"active"])},m(e.$t("dashboard.author.settings.tabs.socials")),11,Rzt)):xe((h(),g("li",{key:1,class:J(["locked",[d&&"active"]]),onClick:u},[z(m(e.$t("dashboard.author.settings.tabs.basic_settings"))+" ",1),b(s,{icon:"lock",width:"20",height:"20",class:"ms-icon"})],10,jzt)),[[l,{content:e.$t("public.locked"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),_:1}),b(a,{to:{name:"dashboard/nastaveni/zdroje-obrazku"},custom:""},{default:F(({isActive:d,navigate:u})=>[r.hasPermission("image_sources")?(h(),g("li",{key:0,onClick:u,class:J([d&&"active"])},m(e.$t("dashboard.author.settings.tabs.image_sources")),11,Fzt)):xe((h(),g("li",{key:1,class:J(["locked",[d&&"active"]]),onClick:u},[z(m(e.$t("dashboard.author.settings.tabs.image_sources"))+" ",1),b(s,{icon:"lock",width:"20",height:"20",class:"ms-icon"})],10,zzt)),[[l,{content:e.$t("public.locked"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),_:1})])])])}const Bzt=U(Ezt,[["render",Uzt]]),Hzt={components:{AuthorSettingsTabList:Bzt}},Vzt={class:"row"},qzt={class:"col-12 col-md-3 col-xl-2 px-0 px-md-2dot5"},Yzt={class:"col-12 col-md-9 col-xl-10 px-0 px-md-2dot5"},Wzt={class:"bg-white rounded border border-primary-20 p-4"};function Gzt(e,t,n,o,i,r){const s=y("AuthorSettingsTabList"),a=y("router-view");return h(),g("div",Vzt,[c("div",qzt,[b(s,{class:"bg-white rounded border border-primary-20 p-0 pb-md-2"})]),t[0]||(t[0]=c("hr",{class:"d-md-none my-3"},null,-1)),c("div",Yzt,[c("div",Wzt,[b(a)])])])}const Zzt=U(Hzt,[["render",Gzt]]);const Kzt={components:{AuthorSettingsLockedSection:Tg,AppIcon:Ue,Pill:Ni,ImageModifier:Q3,Loading:Rt},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({auth:"auth/auth",author:"author/getDetail",loading:"author/getLoading"}),...sn({badge:e=>e.author.detail.badge})},methods:{hasPermission(e){return ru.settings_permissions[this.badge][e]},show(){this.$store.dispatch("author/show")}}},Jzt={key:1},Xzt={class:"mb-0"},Qzt={key:0,class:"vl-parent mh-8"},eUt={key:1},tUt={class:"d-flex justify-content-end mb-2"},nUt={class:"d-flex flex-column justify-content-center align-items-center w-100 bg-primary-5 p-5 rounded border-2 border-primary-20 border-dashed"},oUt={class:"text-gray-800 mb-0"},iUt={class:"medium text-gray-700 mb-0"},rUt={class:"text-gray-700 mb-3"},sUt={class:"text-gray-700 mb-3"},aUt={class:"fw-bold"},lUt={class:"mb-0"},cUt={href:"https://www.canva.com/design/DAFkeNp0GvQ/JXgB3O-AZfZYpoEANkGZeQ/view?utm_content=DAFkeNp0GvQ&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink&mode=preview",target:"_blank"};function dUt(e,t,n,o,i,r){const s=y("AuthorSettingsLockedSection"),a=y("Loading"),l=y("Pill"),d=y("AppIcon"),u=y("ImageModifier");return r.hasPermission("cover_img")?(h(),g("div",Jzt,[c("h3",Xzt,m(e.$t("dashboard.author.settings.tabs.cover_image")),1),e.loading?(h(),g("div",Qzt,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=f=>e.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):(h(),g("div",eUt,[c("div",tUt,[b(l,{color:"muted"},{default:F(()=>[z(m(e.$t("dashboard.author.settings.cover_image.resolution")),1)]),_:1})]),b(u,{class:"mb-3",image:e.author.cover_img,"max-size":5242880,"upload-route":e.ziggyRoute("dashboard.api.cover.image.update"),"delete-route":e.ziggyRoute("dashboard.api.cover.image.delete"),"crop-ratio":5.51,onUploaded:r.show,onDeleted:r.show,"action-on-hover":!0},{default:F(()=>[c("div",nUt,[b(d,{icon:"upload",height:"20",width:"20"}),c("p",oUt,m(e.$t("public.image.insert")),1),c("p",iUt,m(e.$t("public.image.format")),1)])]),_:1},8,["image","upload-route","delete-route","onUploaded","onDeleted"])])),c("p",rUt,m(e.$t("dashboard.author.settings.cover_image.info")),1),c("p",sUt,[z(m(e.$t("dashboard.author.settings.cover_image.tip.0"))+" ",1),c("span",aUt,m(e.$t("dashboard.author.settings.cover_image.tip.1")),1)]),c("p",lUt,[c("a",cUt,[z(m(e.$t("dashboard.author.settings.cover_image.canva_template"))+" ",1),b(d,{icon:"new-tab",class:"ms-icon"})])])])):(h(),W(s,{key:0,"number-of-products":e.author.products_count,badge:e.badge},{header:F(()=>[z(m(e.$t("dashboard.author.settings.tabs.cover_image")),1)]),text:F(()=>[z(m(e.$t("dashboard.author.settings.cover_image.info")),1)]),_:1},8,["number-of-products","badge"]))}const uUt=U(Kzt,[["render",dUt]]),hUt={components:{ImageModifier:Q3,AppIcon:Ue},computed:{...Oe({author:"author/getDetail"})},methods:{show(){this.$store.dispatch("author/show")}}},fUt={class:"d-flex flex-column justify-content-center align-items-center w-100 bg-primary-5 p-5 rounded border-2 border-primary-20 border-dashed"},mUt={class:"text-gray-800 mb-0"},pUt={class:"medium text-gray-700 mb-0"};function gUt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ImageModifier");return h(),W(a,{class:"w-10rem mb-4","dropdown-align":"start",image:e.author.image_detail,"upload-route":e.ziggyRoute("api.user.update.editor.image",{user:e.author.id}),"delete-route":e.ziggyRoute("api.author.image.delete",{user:e.author.id}),"crop-ratio":1,"max-size":2097152,"max-width":1400,"max-height":1400,circle:"",onUploaded:r.show,onDeleted:r.show},{default:F(()=>[c("div",fUt,[b(s,{icon:"upload",height:"20",width:"20"}),c("p",mUt,m(e.$t("public.image.insert")),1),c("p",pUt,m(e.$t("public.image.format")),1)])]),_:1},8,["image","upload-route","delete-route","onUploaded","onDeleted"])}const vUt=U(hUt,[["render",gUt]]),_Ut={components:{Loading:Rt,AuthorSettingsLockedSection:Tg,AuthorImage:vUt},data(){return{primaryColor:window.primaryColor}},methods:{hasPermission(e){return ru.settings_permissions[this.badge][e]}},computed:{...sn({badge:e=>e.author.detail.badge}),...Oe({auth:"auth/auth",author:"author/getDetail",loading:"author/getLoading"})}},yUt={key:1,class:"vl-parent"},bUt={class:"mb-4"},kUt={class:"col-12 col-xl-8"};function wUt(e,t,n,o,i,r){const s=y("AuthorSettingsLockedSection"),a=y("Loading"),l=y("AuthorImage");return r.hasPermission("basic_settings")?(h(),g("div",yUt,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("h3",bUt,m(e.$t("dashboard.author.settings.basic_settings.image.title")),1),c("div",kUt,[b(l)])])):(h(),W(s,{key:0,"number-of-products":e.author.products_count,badge:e.badge},{header:F(()=>[z(m(e.$t("dashboard.author.settings.basic_settings.title")),1)]),text:F(()=>[z(m(e.$t("dashboard.author.settings.basic_settings.info_text")),1)]),_:1},8,["number-of-products","badge"]))}const $Ut=U(_Ut,[["render",wUt]]),CUt={computed:{...Oe({author:"author/getDetail"}),fullname(){return this.author.first_name+" "+this.author.last_name}}},SUt={class:"text-end small text-primary mb-0"},TUt=["href"],EUt={class:"form-group form-floating"},IUt={for:"name",class:"form-label"};function PUt(e,t,n,o,i,r){return h(),g("div",null,[c("p",SUt,[c("a",{href:e.ziggyRoute("user.dashboard.settings.profile")},m(e.$t("dashboard.author.settings.basic_settings.name_update_link")),9,TUt)]),c("div",EUt,[xe(c("input",{id:"name",name:"name",type:"text",maxlength:"150",class:J({"form-control":!0}),"onUpdate:modelValue":t[0]||(t[0]=s=>r.fullname=s),disabled:""},null,512),[[wt,r.fullname]]),c("label",IUt,m(e.$t("dashboard.author.settings.basic_settings.name")),1)])])}const AUt=U(CUt,[["render",PUt]]),DUt={computed:{...Oe({author:"author/getDetail"}),public_alias:{get(){return this.author.public_alias},set(e){this.author.public_alias=e}}}},xUt={class:"text-end"},OUt={class:"form-group form-floating"},LUt=["placeholder"],MUt={for:"public_alias",class:"form-label"};function NUt(e,t,n,o,i,r){const s=an("tooltip");return h(),g("div",xUt,[xe((h(),g("div",OUt,[xe(c("input",{id:"public_alias",name:"public_alias",type:"text",maxlength:"150",class:J({"form-control":!0}),placeholder:e.$t("user.editor.public_alias.placeholder"),"onUpdate:modelValue":t[0]||(t[0]=a=>r.public_alias=a)},null,8,LUt),[[wt,r.public_alias]]),c("label",MUt,m(e.$t("dashboard.author.settings.basic_settings.public_alias")),1)])),[[s,{content:e.$t("user.editor.public_alias.help_tooltip"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])}const RUt=U(DUt,[["render",NUt]]),fu={simpleToolbar:{theme:"snow",modules:{toolbar:[["bold","italic","underline","strike"],["link"]]}},noteToolbar:{theme:"snow",modules:{toolbar:[["bold","italic","underline","strike"],["link"]]},placeholder:"Napište poznámku..."},extendedToolbar:{theme:"snow",modules:{toolbar:[[{header:[1,2,!1]}],["bold","italic","underline","strike"],["link"]]}},chatToolbar:{theme:"snow",modules:{toolbar:[["bold","italic","underline","strike"],["link"],["image"]]}}},jUt={computed:{...Oe({author:"author/getDetail"}),description:{get(){return this.author.description},set(e){this.author.description=e}}},data(){return{editor:fu}}},FUt={class:"fw-medium mb-3"},zUt={class:"form-group quill-editor"};function UUt(e,t,n,o,i,r){const s=y("quill-editor");return h(),g("div",null,[c("p",FUt,m(e.$t("dashboard.author.settings.basic_settings.description")),1),c("div",zUt,[b(s,{ref:"description",id:"description",contentType:"html",theme:"snow",placeholder:"",content:r.description,"onUpdate:content":t[0]||(t[0]=a=>r.description=a),class:"mh-8",options:{...i.editor.extendedToolbar,placeholder:e.$t("dashboard.author.settings.basic_settings.description_placeholder")}},null,8,["content","options"])])])}const BUt=U(jUt,[["render",UUt]]),HUt=sh.validation.slug.valid,VUt={components:{AppIcon:Ue},props:{slug:String,author:Object},data(){return{url:mr.url,copied:!1,slugAvailable:!0,slugMaxLength:sh.validation.slug.max_length}},computed:{slugModel:{get(){return this.slug},set(e){this.$emit("update:slug",e)}},publicAliasToSlug(){let t=this.author.public_alias.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();return t=t.replace(/\s+/g,this.$t("public.dash")),t=t.replace(/[^a-z0-9-]/g,""),t=t.replace(/--+/g,this.$t("public.dash")),t=t.replace(/^-+|-+$/g,""),t=t.slice(0,this.slugMaxLength),t},slugPlaceholder(){return this.author.public_alias?this.publicAliasToSlug:this.$t("dashboard.author.settings.basic_settings.slug_placeholder")}},methods:{copy(){if(!this.slugModel){window.flash(this.$t("validation.filled",{attribute:"URL"}),"error");return}this.copied=!0;let e=this.$refs["slug-input"];this.$copyText(this.url+"/"+this.slug,e),setTimeout(()=>{this.copied=!1},2e3)},slugTestAvailability(){Ju.slugTestAvailability(this.author.id,this.slug).then(e=>{this.slugAvailable=e.data.available})}},watch:{"author.public_alias"(){this.slugModel=this.publicAliasToSlug,this.v$.$touch()},slugModel(){this.slugTestAvailability()}},validations:{slugModel:{validSlug:HUt,maxLength:hi(sh.validation.slug.max_length)}},mounted(){this.slugTestAvailability=is.debounce(this.slugTestAvailability,500)},setup(){return{v$:Pn()}}},qUt={class:"pt-1",ref:"slug-input"},YUt={class:"form-group form-floating"},WUt={class:"input-group"},GUt={class:"input-group-prepend pe-0"},ZUt={class:"input-group-text pe-0 border-radius-end-none"},KUt=["placeholder"],JUt={key:0,class:"text-danger"},XUt={key:1,class:"text-danger"},QUt={key:2,class:"text-danger"},eBt={for:"slug",class:"form-label"};function tBt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",qUt,[c("div",YUt,[c("div",WUt,[c("div",GUt,[c("span",ZUt,m(i.url+"/"),1)]),xe(c("input",{id:"slug",name:"slug",type:"text",maxlength:"150",class:J(["outline-none-focus ps-0",{"form-control":!0,"is-invalid":o.v$.slugModel.$error||r.slugModel&&!i.slugAvailable,"border-start-none border-radius-none border-end-none":!o.v$.slugModel.$error&&i.slugAvailable}]),placeholder:r.slugPlaceholder,"onUpdate:modelValue":t[0]||(t[0]=a=>o.v$.slugModel.$model=a)},null,10,KUt),[[wt,o.v$.slugModel.$model]]),c("span",{class:"input-group-text cursor-pointer border-start-0",onClick:t[1]||(t[1]=(...a)=>r.copy&&r.copy(...a))},[b(s,{icon:i.copied?"check":"copy",height:"24",width:"24",class:J(i.copied?"text-success":"text-gray-900")},null,8,["icon","class"])])]),o.v$.slugModel.$error&&o.v$.slugModel.maxLength.$invalid?(h(),g("span",JUt,m(e.$t("validation.max.string",{attribute:"URL",max:i.slugMaxLength})),1)):o.v$.slugModel.$error?(h(),g("span",XUt,m(e.$t("validation.in",{attribute:"URL"})),1)):D("",!0),r.slugModel&&!i.slugAvailable?(h(),g("span",QUt,m(e.$t("validation.custom.author_url_unique")),1)):D("",!0),c("label",eBt,m(e.$t("dashboard.author.settings.basic_settings.url")),1)])],512)}const xle=U(VUt,[["render",tBt]]),nBt={components:{AuthorNameInput:AUt,AuthorPublicAliasInput:RUt,AuthorDescriptionTextArea:BUt,AuthorSlugInput:xle},computed:{...Oe({author:"author/getDetail"})}};function oBt(e,t,n,o,i,r){const s=y("AuthorNameInput"),a=y("AuthorPublicAliasInput"),l=y("AuthorSlugInput"),d=y("AuthorDescriptionTextArea");return h(),g("div",null,[b(s,{class:"mb-3"}),b(a,{class:"mb-3"}),b(l,{slug:e.author.slug,"onUpdate:slug":t[0]||(t[0]=u=>e.author.slug=u),author:e.author,class:"mb-3"},null,8,["slug","author"]),b(d)])}const iBt=U(nBt,[["render",oBt]]);const rBt={props:{selected:Number},computed:{...Oe({categories:"category/getCategories"})},methods:{select(e){this.selected==e?this.$emit("update:selected",null):this.$emit("update:selected",e)},isSelected(e){return this.selected==e}},mounted(){this.$store.dispatch("category/load")}},sBt={class:"fw-medium mb-2"},aBt={class:"d-flex flex-wrap"},lBt=["onClick"],cBt={class:"mt-2 me-2"};function dBt(e,t,n,o,i,r){return h(),g("div",null,[c("p",sBt,m(e.$t("category.class")),1),c("div",aBt,[(h(!0),g(pe,null,Me(e.categories.class.slice(0,4),s=>(h(),g("div",{key:s.id,class:"mt-2 me-2"},[c("button",{class:J(["btn btn-center select-badge py-1 px-2 fw-medium small",{active:r.isSelected(s.id)}]),onClick:a=>r.select(s.id)},m(s.name),11,lBt)]))),128)),c("div",cBt,[c("button",{class:J(["btn btn-center select-badge py-1 px-2 fw-medium small",{active:!n.selected}]),onClick:t[0]||(t[0]=s=>r.select(null))},m(e.$t("author.preferences.empty")),3)])])])}const uBt=U(rBt,[["render",dBt],["__scopeId","data-v-93d76f9a"]]),hBt={components:{CategoryClassSelect:uBt},computed:{...Oe({author:"author/getDetail"})}},fBt={class:"mb-4"},mBt={class:"text-gray-700"};function pBt(e,t,n,o,i,r){const s=y("CategoryClassSelect");return h(),g("div",null,[c("h4",fBt,m(e.$t("dashboard.author.settings.basic_settings.focus.title")),1),c("p",mBt,m(e.$t("dashboard.author.settings.basic_settings.focus.text")),1),b(s,{selected:e.author.professional_focus,"onUpdate:selected":t[0]||(t[0]=a=>e.author.professional_focus=a)},null,8,["selected"])])}const gBt=U(hBt,[["render",pBt]]),vBt={components:{AppIcon:Ue,ToggleButton:eb},computed:{...Oe({author:"author/getDetail"}),tooltipContent(){return'<ul class="mb-0 ps-3"><li>'+this.$t("dashboard.author.settings.basic_settings.only_on_ucitelnice.tooltip.0")+"</li><li>"+this.$t("dashboard.author.settings.basic_settings.only_on_ucitelnice.tooltip.1")+"</li><li>"+this.$t("dashboard.author.settings.basic_settings.only_on_ucitelnice.tooltip.2")+"</li><li>"+this.$t("dashboard.author.settings.basic_settings.only_on_ucitelnice.tooltip.3")+"</li></ul>"},onlyOnUcitelnice:{get(){return this.author.only_on_ucitelnice},set(e){this.updateOnlyOnUcitelnice(e)}}},methods:{updateOnlyOnUcitelnice(e){this.$store.dispatch("author/updateOnlyOnUcitelnice",{id:this.author.id,onlyOnUcitelnice:e})}},mounted(){this.updateOnlyOnUcitelnice=is.debounce(this.updateOnlyOnUcitelnice,200)}},_Bt={class:"d-flex flex-wrap align-items-center justify-content-between"},yBt={class:"d-flex flex-nowrap align-items-center"},bBt={class:"text-gray-800 fw-medium mb-0"},kBt={class:"small text-gray-800 mb-0"};function wBt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ToggleButton"),l=an("tooltip");return h(),g("div",_Bt,[c("div",null,[c("div",yBt,[c("p",bBt,m(e.$t("dashboard.author.settings.basic_settings.only_on_ucitelnice.title")),1),xe(b(s,{icon:"info-circle",class:"ms-icon"},null,512),[[l,{content:r.tooltipContent,delay:{show:500,hide:100},html:!0,triggers:["hover","click"]}]])]),c("p",kBt,m(e.$t("dashboard.author.settings.basic_settings.only_on_ucitelnice.text")),1)]),b(a,{value:r.onlyOnUcitelnice,"onUpdate:value":t[0]||(t[0]=d=>r.onlyOnUcitelnice=d)},null,8,["value"])])}const $Bt=U(vBt,[["render",wBt]]),CBt=sh.validation.slug.valid,SBt={components:{Loading:Rt,AuthorSettingsLockedSection:Tg,AuthorInfo:iBt,AuthorProffesionalFocus:gBt,AuthorOnlyOnUcitelnice:$Bt},data(){return{primaryColor:window.primaryColor}},methods:{hasPermission(e){return ru.settings_permissions[this.badge][e]},save(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("author/update",{id:this.author.id,author:this.authorUpdate})}},computed:{...sn({badge:e=>e.author.detail.badge}),...Oe({auth:"auth/auth",author:"author/getDetail",loading:"author/getLoading"}),authorUpdate(){return{public_alias:this.author.public_alias,description:this.author.description,only_on_ucitelnice:this.author.only_on_ucitelnice,slug:this.author.slug,professional_focus:this.author.professional_focus?eg.keys[this.author.professional_focus]:null}}},validations:{authorUpdate:{slug:{validSlug:CBt,maxLength:hi(30)}}},setup(){return{v$:Pn()}}},TBt={key:1,class:"vl-parent"},EBt={class:"mb-4"},IBt={class:"text-gray-700 mb-3"},PBt={class:"col-12 col-xl-8"},ABt={class:"col-12 col-md-8"};function DBt(e,t,n,o,i,r){const s=y("AuthorSettingsLockedSection"),a=y("Loading"),l=y("AuthorInfo"),d=y("AuthorOnlyOnUcitelnice"),u=y("AuthorProffesionalFocus");return r.hasPermission("basic_settings")?(h(),g("div",TBt,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=f=>e.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("h3",EBt,m(e.$t("dashboard.author.settings.basic_settings.info.title")),1),c("p",IBt,m(e.$t("dashboard.author.settings.basic_settings.info_text")),1),c("div",PBt,[b(l,{class:"mb-5"}),b(d,{class:"mb-5"})]),t[2]||(t[2]=c("hr",null,null,-1)),c("div",ABt,[b(u)]),t[3]||(t[3]=c("hr",null,null,-1)),c("button",{class:"btn btn-primary",onClick:t[1]||(t[1]=Gt((...f)=>r.save&&r.save(...f),["prevent"]))},m(e.$t("dashboard.author.settings.basic_settings.save_button")),1)])):(h(),W(s,{key:0,"number-of-products":e.author.products_count,badge:e.badge},{header:F(()=>[z(m(e.$t("dashboard.author.settings.basic_settings.title")),1)]),text:F(()=>[z(m(e.$t("dashboard.author.settings.basic_settings.info_text")),1)]),_:1},8,["number-of-products","badge"]))}const xBt=U(SBt,[["render",DBt]]),OBt={components:{AppIcon:Ue},computed:{...Oe({author:"author/getDetail"}),web:{get(){return this.author.web},set(e){this.author.web=e}}},validations:{web:{url:nc}},setup(){return{v$:Pn()}}},LBt={class:"d-flex align-items-center"},MBt={class:"form-group form-floating flex-grow-1"},NBt=["placeholder"],RBt={key:0,class:"invalid-feedback"},jBt={for:"web",class:"form-label"};function FBt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",LBt,[b(s,{height:"24",width:"24",icon:"web",class:"text-gray-600 me-3"}),c("div",MBt,[xe(c("input",{id:"web",name:"web",type:"text",maxlength:"150",class:J({"form-control":!0,"is-invalid":o.v$.web.$error}),placeholder:e.$t("dashboard.author.settings.basic_settings.social.web"),"onUpdate:modelValue":t[0]||(t[0]=a=>o.v$.web.$model=a)},null,10,NBt),[[wt,o.v$.web.$model]]),o.v$.web.$error?(h(),g("span",RBt,m(e.$t("validation.active_url")),1)):D("",!0),c("label",jBt,m(e.$t("dashboard.author.settings.basic_settings.href")),1)])])}const zBt=U(OBt,[["render",FBt]]),UBt={computed:{...Oe({author:"author/getDetail"}),facebook:{get(){return this.author.facebook},set(e){this.author.facebook=e}}},validations:{facebook:{url:nc}},setup(){return{v$:Pn()}}},BBt={class:"d-flex align-items-center"},HBt={class:"form-group form-floating flex-grow-1"},VBt=["placeholder"],qBt={key:0,class:"invalid-feedback"};function YBt(e,t,n,o,i,r){const s=y("app-icon");return h(),g("div",BBt,[b(s,{height:"24",width:"24",icon:"facebook",class:"text-gray-600 me-3"}),c("div",HBt,[xe(c("input",{id:"facebook",name:"facebook",type:"text",class:J({"form-control":!0,"is-invalid":o.v$.facebook.$error}),placeholder:e.$t("dashboard.author.settings.basic_settings.social.facebook"),"onUpdate:modelValue":t[0]||(t[0]=a=>o.v$.facebook.$model=a),maxlength:"150"},null,10,VBt),[[wt,o.v$.facebook.$model]]),o.v$.facebook.$error?(h(),g("span",qBt,m(e.$t("validation.active_url")),1)):D("",!0),t[1]||(t[1]=c("label",{for:"facebook",class:"form-label"},m("Facebook"),-1))])])}const WBt=U(UBt,[["render",YBt]]),GBt={computed:{...Oe({author:"author/getDetail"}),instagram:{get(){return this.author.instagram},set(e){this.author.instagram=e}}},validations:{instagram:{url:nc}},setup(){return{v$:Pn()}}},ZBt={class:"d-flex align-items-center"},KBt={class:"form-group form-floating flex-grow-1"},JBt=["placeholder"],XBt={key:0,class:"invalid-feedback"};function QBt(e,t,n,o,i,r){const s=y("app-icon");return h(),g("div",ZBt,[b(s,{height:"24",width:"24",icon:"instagram",class:"text-gray-600 me-3"}),c("div",KBt,[xe(c("input",{id:"instagram",name:"instagram",type:"text",class:J({"form-control":!0,"is-invalid":o.v$.instagram.$error}),placeholder:e.$t("dashboard.author.settings.basic_settings.social.instagram"),"onUpdate:modelValue":t[0]||(t[0]=a=>o.v$.instagram.$model=a),maxlength:"150"},null,10,JBt),[[wt,o.v$.instagram.$model]]),o.v$.instagram.$error?(h(),g("span",XBt,m(e.$t("validation.active_url")),1)):D("",!0),t[1]||(t[1]=c("label",{for:"instagram",class:"form-label"},m("Instagram"),-1))])])}const eHt=U(GBt,[["render",QBt]]),tHt={computed:{...Oe({author:"author/getDetail"}),youtube:{get(){return this.author.youtube},set(e){this.author.youtube=e}}},validations:{youtube:{url:nc}},setup(){return{v$:Pn()}}},nHt={class:"d-flex align-items-center"},oHt={class:"form-group form-floating flex-grow-1"},iHt=["placeholder"],rHt={key:0,class:"invalid-feedback"};function sHt(e,t,n,o,i,r){const s=y("app-icon");return h(),g("div",nHt,[b(s,{height:"24",width:"24",icon:"youtube",class:"text-gray-600 me-3"}),c("div",oHt,[xe(c("input",{id:"youtube",name:"youtube",type:"text",class:J({"form-control":!0,"is-invalid":o.v$.youtube.$error}),placeholder:e.$t("dashboard.author.settings.basic_settings.social.youtube"),"onUpdate:modelValue":t[0]||(t[0]=a=>o.v$.youtube.$model=a),maxlength:"150"},null,10,iHt),[[wt,o.v$.youtube.$model]]),o.v$.youtube.$error?(h(),g("span",rHt,m(e.$t("validation.active_url")),1)):D("",!0),t[1]||(t[1]=c("label",{for:"youtube",class:"form-label"},m("YouTube"),-1))])])}const aHt=U(tHt,[["render",sHt]]),lHt={components:{AuthorWebInput:zBt,AuthorFacebookInput:WBt,AuthorInstagramInput:eHt,AuthorYoutubeInput:aHt}};function cHt(e,t,n,o,i,r){const s=y("AuthorWebInput"),a=y("AuthorFacebookInput"),l=y("AuthorInstagramInput"),d=y("AuthorYoutubeInput");return h(),g("div",null,[b(s,{class:"mb-3"}),b(a,{class:"mb-3"}),b(l,{class:"mb-3"}),b(d)])}const dHt=U(lHt,[["render",cHt]]),uHt={components:{Loading:Rt,AuthorSettingsLockedSection:Tg,AuthorSocials:dHt},data(){return{primaryColor:window.primaryColor}},methods:{hasPermission(e){return ru.settings_permissions[this.badge][e]},save(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("author/update",{id:this.author.id,author:this.authorUpdate})}},computed:{...sn({badge:e=>e.author.detail.badge}),...Oe({auth:"auth/auth",author:"author/getDetail",loading:"author/getLoading"}),authorUpdate(){return{web:this.author.web,facebook:this.author.facebook,instagram:this.author.instagram,youtube:this.author.youtube}}},validations:{authorUpdate:{web:{url:nc},facebook:{url:nc},instagram:{url:nc},youtube:{url:nc}}},setup(){return{v$:Pn()}}},hHt={key:1,class:"vl-parent"},fHt={class:"mb-4"},mHt={class:"col-12 col-md-8"};function pHt(e,t,n,o,i,r){const s=y("AuthorSettingsLockedSection"),a=y("Loading"),l=y("AuthorSocials");return r.hasPermission("basic_settings")?(h(),g("div",hHt,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("h3",fHt,m(e.$t("dashboard.author.settings.basic_settings.social.title")),1),c("div",mHt,[b(l)]),t[2]||(t[2]=c("hr",null,null,-1)),c("button",{class:"btn btn-primary",onClick:t[1]||(t[1]=Gt((...d)=>r.save&&r.save(...d),["prevent"]))},m(e.$t("dashboard.author.settings.basic_settings.save_button")),1)])):(h(),W(s,{key:0,"number-of-products":e.author.products_count,badge:e.badge},{header:F(()=>[z(m(e.$t("dashboard.author.settings.basic_settings.title")),1)]),text:F(()=>[z(m(e.$t("dashboard.author.settings.basic_settings.info_text")),1)]),_:1},8,["number-of-products","badge"]))}const gHt=U(uHt,[["render",pHt]]),M6={validation:{name:{min_length:3}}},vHt={props:{imageSource:{type:Object,default:()=>({name:"",link:""})}},data(){return{namePlaceholder:this.$t("user.editor.image_sources.name.placeholder"),linkPlaceholder:this.$t("user.editor.image_sources.link.placeholder")}},computed:{isImageSourcesEmpty(){return!this.imageSource.name&&!this.imageSource.link}},validations:{imageSource:{link:{url:nc},name:{minLength:Ua(M6.validation.name.min_length)}}},setup(){return{v$:Pn()}}},_Ht={class:"row align-items-baseline"},yHt={class:"col-12 col-lg mt-3"},bHt={key:0,class:J({"form-group":!0,"form-floating":!0})},kHt=["placeholder"],wHt={class:"form-label"},$Ht={key:0,class:"invalid-feedback"},CHt={class:"col-12 col-lg mt-3"},SHt={key:0,class:J({"form-group":!0,"form-floating":!0})},THt=["placeholder"],EHt={class:"form-label"},IHt={key:0,class:"invalid-feedback"},PHt={class:"col-12 col-lg-auto text-center mt-3 mt-lg-0 p-0"},AHt=["disabled"],DHt={class:"d-lg-none"};function xHt(e,t,n,o,i,r){const s=y("app-icon"),a=an("tooltip");return h(),g("div",_Ht,[c("div",yHt,[o.v$.imageSource?(h(),g("div",bHt,[xe(c("input",{class:J({"form-control":!0,"is-invalid":o.v$.imageSource.name.$invalid}),"onUpdate:modelValue":t[0]||(t[0]=l=>o.v$.imageSource.$model.name=l),type:"text",autocomplete:"off",onChange:t[1]||(t[1]=(...l)=>e.valueChanged&&e.valueChanged(...l)),placeholder:i.namePlaceholder},null,42,kHt),[[wt,o.v$.imageSource.$model.name]]),c("label",wHt,m(e.$t("user.editor.image_sources.name.label")),1),o.v$.imageSource.name.$invalid?(h(),g("span",$Ht,m(e.$t("user.editor.preferences.error_name_3_chars")),1)):D("",!0)])):D("",!0)]),c("div",CHt,[o.v$.imageSource?(h(),g("div",SHt,[xe(c("input",{class:J({"form-control":!0,"is-invalid":o.v$.imageSource.link.$invalid}),"onUpdate:modelValue":t[2]||(t[2]=l=>o.v$.imageSource.$model.link=l),type:"text",autocomplete:"off",placeholder:i.linkPlaceholder,onChange:t[3]||(t[3]=(...l)=>e.valueChanged&&e.valueChanged(...l))},null,42,THt),[[wt,o.v$.imageSource.$model.link]]),c("label",EHt,m(e.$t("user.editor.image_sources.link.label")),1),o.v$.imageSource.link.$invalid?(h(),g("span",IHt,m(e.$t("validation.active_url")),1)):D("",!0)])):D("",!0)]),c("div",PHt,[xe((h(),g("button",{class:J(["btn btn-lg-sm btn-danger btn-secondary btn-lg-tertiary p-lg-2",{"text-danger":!r.isImageSourcesEmpty,"cursor-pointer":!r.isImageSourcesEmpty}]),onClick:t[4]||(t[4]=Gt(l=>e.$emit("removeImageSource"),["prevent"])),disabled:r.isImageSourcesEmpty},[c("span",DHt,m(e.$t("public.remove")),1),b(s,{icon:"delete",class:"ms-icon ms-lg-0",height:"20",width:"20"})],10,AHt)),[[a,{content:e.$t("public.remove"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])])}const OHt=U(vHt,[["render",xHt]]),LHt={components:{AppIcon:Ue,ImageSourceInput:OHt,CheckboxInput:ba},props:{imageSources:{type:Array,default:()=>[{name:null,link:null}]},hasAlsoOriginalImages:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!1}},data(){return{error:""}},computed:{hasAlsoOriginalImagesModel:{get(){return this.hasAlsoOriginalImages},set(e){this.$emit("update:hasAlsoOriginalImages",e)}},imageSourcesModel:{get(){return this.imageSources},set(e){this.$emit("update:imageSources",e)}},lastImageSourceNotSet(){return!this.imageSources[this.imageSources.length-1].name&&!this.imageSources[this.imageSources.length-1].link}},methods:{valueChanged(){this.error=""},addNew(){if(this.lastImageSourceNotSet){this.error=this.$t("user.editor.preferences.previous_empty_error");return}this.imageSourcesModel.push({name:null,link:null})},removeImageSource(e){this.imageSources.length>0&&(this.error="",this.imageSourcesModel.splice(e,1)),this.initiate()},initiate(){this.imageSourcesModel.length||this.imageSourcesModel.push({name:null,link:null})}},watch:{imageSourcesModel(){this.initiate()}},mounted(){this.initiate()}},MHt={class:"vl-parent mh-8"},NHt={key:0,class:"medium fw-medium mt-3"},RHt={key:1,class:"text-danger mt-2"};function jHt(e,t,n,o,i,r){const s=y("CheckboxInput"),a=y("ImageSourceInput"),l=y("AppIcon");return h(),g("div",MHt,[b(s,{id:"has_also_original_images",value:r.hasAlsoOriginalImagesModel,"onUpdate:value":t[0]||(t[0]=d=>r.hasAlsoOriginalImagesModel=d),label:e.$t("user.editor.image_sources.own_images")},null,8,["value","label"]),c("div",null,[n.showLabel?(h(),g("label",NHt,m(e.$t("user.editor.image_sources.title")),1)):D("",!0),(h(!0),g(pe,null,Me(r.imageSourcesModel,(d,u)=>(h(),W(a,{key:u,"image-source":d,onRemoveImageSource:f=>r.removeImageSource(u)},null,8,["image-source","onRemoveImageSource"]))),128)),c("button",{class:"btn btn-sm btn-tertiary d-flex align-items-center mt-3",onClick:t[1]||(t[1]=(...d)=>r.addNew&&r.addNew(...d))},[z(m(e.$t("user.editor.image_sources.add"))+" ",1),b(l,{icon:"plus-circle",height:"20",width:"20",class:"ms-icon"})]),i.error?(h(),g("div",RHt,m(i.error),1)):D("",!0)])])}const nM=U(LHt,[["render",jHt]]),FHt={components:{ImageSourcesEditor:nM,AuthorSettingsLockedSection:Tg},computed:{...Oe({author:"author/getDetail"}),imageSourcesEmpty(){return!this.author.image_sources.length||this.author.image_sources.length==1&&(!this.author.image_sources[0].name||!this.author.image_sources[0].link)}},validations(){return{author:{image_sources:this.author.image_sources?this.author.image_sources.map(e=>({link:{required:Ld(function(){return e.name}),url:nc},name:{required:Ld(function(){return e.link}),minLength:Ua(M6.validation.name.min_length)}})):{}}}},methods:{hasPermission(e){return ru.settings_permissions[this.author.badge][e]},update(){if(this.v$.$touch(),this.v$.author.image_sources.$error){window.flash(this.$t("validation.regex",{attribute:this.$t("public.array")}),"error");return}if(this.imageSourcesEmpty&&this.author.has_also_original_images===!1){window.flash(this.$t("user.editor.image_sources.error_nothing_selected"),"error");return}Ju.updateImageSources(this.author.id,{image_sources:this.author.image_sources,has_also_original_images:this.author.has_also_original_images}).then(e=>{window.flash(e.data.message,"success")}).catch(e=>{window.flash(e.response.data.message,"error")})}},setup(){return{v$:Pn()}}},zHt={href:"https://autori.ucitelnice.cz/jak-na-tvorbu-materiálĹŻ/jak-na-obrázky-v-materiálech",target:"_blank"},UHt={key:1,class:"row"},BHt={class:"mb-4"},HHt={class:"text-gray-700 mb-4"},VHt={href:"https://autori.ucitelnice.cz/jak-na-tvorbu-materiálĹŻ/jak-na-obrázky-v-materiálech",target:"_blank"},qHt={class:"col-12 col-xl-8"},YHt={class:"col-12"};function WHt(e,t,n,o,i,r){const s=y("AuthorSettingsLockedSection"),a=y("ImageSourcesEditor");return r.hasPermission("image_sources")?(h(),g("div",UHt,[c("h3",BHt,m(e.$t("user.editor.header.image_sources")),1),c("p",HHt,[z(m(e.$t("user.editor.info.image_sources.0"))+" ",1),c("a",VHt,m(e.$t("user.editor.info.image_sources.1")),1),z(" "+m(e.$t("user.editor.info.image_sources.2")),1)]),c("div",qHt,[b(a,{"image-sources":e.author.image_sources,"onUpdate:imageSources":t[0]||(t[0]=l=>e.author.image_sources=l),"has-also-original-images":e.author.has_also_original_images,"onUpdate:hasAlsoOriginalImages":t[1]||(t[1]=l=>e.author.has_also_original_images=l)},null,8,["image-sources","has-also-original-images"])]),c("div",YHt,[t[3]||(t[3]=c("hr",null,null,-1)),c("button",{class:"btn btn-primary",onClick:t[2]||(t[2]=Gt((...l)=>r.update&&r.update(...l),["prevent"]))},m(e.$t("user.editor.button.save")),1)])])):(h(),W(s,{key:0,"number-of-products":e.author.products_count,badge:e.author.badge},{header:F(()=>[z(m(e.$t("user.editor.header.image_sources")),1)]),text:F(()=>[z(m(e.$t("user.editor.info.image_sources.0"))+" ",1),c("a",zHt,m(e.$t("user.editor.info.image_sources.1")),1),z(" "+m(e.$t("user.editor.info.image_sources.2")),1)]),_:1},8,["number-of-products","badge"]))}const GHt=U(FHt,[["render",WHt]]),ZHt={components:{AppIcon:Ue},props:{type:{type:String,default:"user-dashboard-user"},buttonStyle:{type:String,default:"tertiary"},buttonSmall:{type:Boolean,default:!1}},computed:{...Oe({school:"school/getDetail"})},methods:{openSchoolCreditOrderCreateSidebar(){this.$store.dispatch("sidebar/open",{type:"school-credit-order-create",data:{school:this.school}})},openCreditOrderCreateModal(){window.appModal("credit-order-create")},openSchoolCreditOrderCreateSidebarHandler(){this.school.id&&this.type==="school-dashboard"&&"open-increase-sidebar"in this.$route.query&&this.openSchoolCreditOrderCreateSidebar()}},watch:{school(){this.openSchoolCreditOrderCreateSidebarHandler()}}},KHt=["href"];function JHt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link");return n.type==="school-dashboard"?(h(),g("button",{key:0,onClick:t[0]||(t[0]=(...l)=>r.openSchoolCreditOrderCreateSidebar&&r.openSchoolCreditOrderCreateSidebar(...l)),class:J(["btn btn-center",["btn-"+n.buttonStyle,{"btn-sm":n.buttonSmall}]])},[b(s,{icon:"plus-circle",class:"me-icon",height:"20",width:"20"}),z(" "+m(e.$t("school.employees.table.buttons.add_school_credit")),1)],2)):n.type==="user-dashboard-school"?(h(),W(a,{key:1,to:{name:"user-dashboard/products/school"},class:J(["btn btn-center",["btn-"+n.buttonStyle,{"btn-sm":n.buttonSmall}]])},{default:F(()=>[b(s,{icon:"materials",class:"me-icon",height:"20",width:"20"}),z(" "+m(e.$t("download.tabs.school")),1)]),_:1},8,["class"])):n.type==="user-dashboard-school-manager"?(h(),g("a",{key:2,href:e.ziggyRoute("school.manager.finance.order",{"open-increase-sidebar":!0}),class:J(["btn btn-center",["btn-"+n.buttonStyle,{"btn-sm":n.buttonSmall}]])},[b(s,{icon:"school",class:"me-icon",height:"20",width:"20"}),z(" "+m(e.$t("school.management")),1)],10,KHt)):n.type==="user-dashboard-user"?(h(),g("button",{key:3,class:J(["btn btn-center",["btn-"+n.buttonStyle,{"btn-sm":n.buttonSmall}]]),onClick:t[1]||(t[1]=(...l)=>r.openCreditOrderCreateModal&&r.openCreditOrderCreateModal(...l))},[b(s,{icon:"plus-circle",class:"me-icon",height:"20",width:"20"}),z(" "+m(e.$t("user.add_credit")),1)],2)):D("",!0)}const oM=U(ZHt,[["render",JHt]]),Pg=""+new URL("coins-d952532e.svg",import.meta.url).href,N6=""+new URL("coins_grayscale-1c4d18de.svg",import.meta.url).href;const XHt={components:{CreditIncreaseLink:oM,AppIcon:Ue},props:{value:{String,default:"0"},type:{type:String,default:"user-dashboard-user"},validUntil:{type:String,default:null}},data(){return{coins:Pg,coinsGrayscale:N6}},computed:{title(){return this.type=="user-dashboard-user"?this.$t("dashboard.user.header.credit_amount"):this.type=="user-dashboard-school"||this.type=="user-dashboard-school-manager"?this.$t("dashboard.user.header.school_credit"):this.$t("school.manager.budget")},showSchoolCreditExpiration(){return["user-dashboard-school-manager","school-dashboard"].includes(this.type)}},methods:{openCreditInfoModal(){window.appModal("credit-info")}}},QHt={class:"rounded bg-white py-1 text-center position-relative"},eVt={key:0,class:"position-absolute top-0 end-0 p-1"},tVt={class:"px-6"},nVt={class:"medium text-gray-800 mb-2"},oVt={class:"d-flex justify-content-center mb-2 credit-container"},iVt=["src"],rVt={key:0,class:"fs-6 text-center text-gray-800 bg-primary-5 pt-2"};function sVt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("CreditIncreaseLink");return h(),g("div",null,[c("div",QHt,[n.type=="user-dashboard-user"?(h(),g("div",eVt,[b(s,{icon:"question",height:"24",width:"24",class:"text-gray-800 cursor-pointer",onClick:r.openCreditInfoModal},null,8,["onClick"])])):D("",!0),c("div",tVt,[c("p",nVt,m(r.title),1),c("div",oVt,[n.type=="user-dashboard-user"?(h(),g("img",{key:0,class:"me-2",src:n.value>0?i.coins:i.coinsGrayscale,height:"32"},null,8,iVt)):D("",!0),c("h3",{class:J(["fw-bold mb-0",n.value>0?"text-success":"text-gray-900"])},m(Number(n.value).toLocaleString()+" "+e.$t("currency.short")),3)])]),t[0]||(t[0]=c("hr",{class:"my-1"},null,-1)),b(a,{type:n.type,"button-small":"","button-style":"tertiary"},null,8,["type"])]),r.showSchoolCreditExpiration?(h(),g(pe,{key:0},[n.validUntil?(h(),g("div",rVt,m(e.$t("school.credit_expires",{expiry_date:n.validUntil})),1)):D("",!0)],64)):D("",!0)])}const Ole=U(XHt,[["render",sVt]]),aVt={components:{GrayBackgroundComponent:$g,CreditInfo:Ole,TabList:qr,AppIcon:Ue},props:{user:{type:Object,default(){return null}}},data(){return{routes:["user-dashboard/products","user-dashboard/wishlist","user-dashboard/finances","user-dashboard/settings"]}},computed:{...Oe({auth:"auth/auth"})}},lVt={ref:"user-dashboard-header"},cVt={class:"col pt-6"},dVt={class:"d-flex flex-wrap mh-10rem"},uVt={class:"flex-grow-1 align-items-baseline mb-3"},hVt={class:"mb-2"},fVt=["href"],mVt={key:1,class:"mb-2"},pVt={key:2,class:"d-flex"},gVt=["href"],vVt={class:"d-flex align-items-end align-items-lg-start flex-column flex-lg-row mb-3"},_Vt={key:0,class:"ms-0 ms-lg-3 mt-3 mt-lg-0 school-themed-component"};function yVt(e,t,n,o,i,r){const s=y("GrayBackgroundComponent"),a=y("router-link"),l=y("AppIcon"),d=y("CreditInfo"),u=y("TabList");return h(),g("div",lVt,[b(s,{header:e.$refs["user-dashboard-header"],offset:0,"border-bottom":""},null,8,["header"]),c("div",cVt,[c("div",dVt,[c("div",uVt,[c("h2",hVt,m(n.user.first_name+" "+n.user.last_name),1),n.user.school?(h(),g(pe,{key:0},[n.user.is_school_manager?(h(),g("a",{key:1,href:e.ziggyRoute("school.manager.home")},m(n.user.school.long_name),9,fVt)):(h(),W(a,{key:0,to:{name:"user-dashboard/settings/school"}},{default:F(()=>[z(m(n.user.school.long_name),1)]),_:1}))],64)):D("",!0),n.user.school&&n.user.school.long_name?(h(),g("p",mVt)):D("",!0),n.user.is_author?D("",!0):(h(),g("div",pVt,[c("a",{href:e.ziggyRoute("user.be_author.index"),class:"d-flex align-items-center"},[z(m(e.$t("dashboard.user.header.become_author"))+" ",1),b(l,{icon:"user-box",class:"ms-icon",width:"20",height:"20"})],8,gVt)]))]),c("div",vVt,[b(d,{value:n.user.credit,type:"user-dashboard-user"},null,8,["value"]),n.user.school?(h(),g("div",_Vt,[b(d,{value:n.user.school_credit,type:e.auth.is_school_manager?"user-dashboard-school-manager":"user-dashboard-school","valid-until":e.auth.is_school_manager?n.user.school_credit_expiry_date:null},null,8,["value","type","valid-until"])])):D("",!0)])]),b(u,{class:"mh-46px border-none",routes:i.routes,titles:e.$tm("dashboard.user.tabs"),"padding-x":1},null,8,["routes","titles"])])],512)}const bVt=U(aVt,[["render",yVt]]),kVt=()=>De.get(Pe("user.dashboard.api.index")),wVt=e=>De.get(Pe("api.user.show.editor",{user:e})),$Vt=(e,t)=>De.post(Pe("user.be_author.store",{user:e}),t),CVt=()=>De.get(Pe("api.user.preferences")),SVt=(e,t)=>De.patch(Pe("user.dashboard.api.update.preferences",{user:e}),{preferences:t}),TVt=()=>De.get(Pe("user.dashboard.api.finances.credit.orders")),EVt=e=>De.post(Pe("user.dashboard.api.update.invoice.info"),e),IVt=e=>De.post(Pe("user.dashboard.api.update.password"),e),PVt=e=>De.post(Pe("user.dashboard.api.update.profile"),e),Md={index:kVt,show:wVt,becomeAuthor:$Vt,preferences:CVt,updatePreferences:SVt,creditOrderIndex:TVt,invoiceInfoUpdate:EVt,passwordUpdate:IVt,profileUpdate:PVt},AVt={components:{UserDashboardHeader:bVt},props:{user:{type:Object,default(){return null}}},data(){return{primaryColor:window.primaryColor,updatableUserObject:{},componentKey:0}},methods:{forceRerenderRouterView(){Md.index().then(e=>{this.updatableUserObject=e.data.data,this.componentKey+=1}).catch(e=>{window.flash(e,"error")})},toggle(){}},mounted(){this.updatableUserObject=this.user,this.componentKey+=1,window.eventBus.on("rerender-user-dashboard-header",()=>{this.forceRerenderRouterView()})}},DVt={class:"col-12 mb-6"},xVt={class:"row mt-5"},OVt={class:"col"};function LVt(e,t,n,o,i,r){const s=y("UserDashboardHeader"),a=y("router-view");return h(),g("div",DVt,[b(s,{user:i.updatableUserObject},null,8,["user"]),c("div",xVt,[c("div",OVt,[(h(),W(a,{user:i.updatableUserObject,key:i.componentKey},null,8,["user"]))])])])}const MVt=U(AVt,[["render",LVt]]),NVt={props:{user:{type:Object,default(){return null}}}},RVt={class:"row"},jVt={class:"col-12"},FVt={class:"content-box shadow px-4 py-5"},zVt={class:"mb-4"},UVt={key:0},BVt={id:"tabs",class:"tabs mb-5"},HVt={class:"tabList"},VVt=["onClick"],qVt=["onClick"],YVt={class:"vl-parent"};function WVt(e,t,n,o,i,r){const s=y("router-link"),a=y("router-view");return h(),g("div",RVt,[c("div",jVt,[c("div",FVt,[c("h3",zVt,m(e.$t("dashboard.user.tabs.0")),1),n.user.school?(h(),g("div",UVt,[c("div",BVt,[c("ul",HVt,[b(s,{to:{name:"user-dashboard/products/user"},custom:""},{default:F(({isActive:l,navigate:d})=>[c("li",{class:J([l&&"active"]),onClick:d},m(e.$t("dashboard.user.products.user")),11,VVt)]),_:1}),b(s,{to:{name:"user-dashboard/products/school"},custom:""},{default:F(({isActive:l,navigate:d})=>[c("li",{class:J([[l&&"active"],"school-themed-tab"]),onClick:d},m(e.$t("dashboard.user.products.school")),11,qVt)]),_:1})])])])):D("",!0),c("div",YVt,[b(a)])])])])}const GVt=U(NVt,[["render",WVt]]),ZVt={props:{product:Object,lg:Boolean},components:{AppIcon:Ue},computed:{...Oe({ratings:"productRating/ratings"}),productId(){return this.product.product_id?this.product.product_id:this.product.id}},methods:{openSidebar(){this.$store.dispatch("sidebar/open",{type:"product-rating",data:this.product})}}};function KVt(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return h(),g("button",{class:J(["btn btn-center",[n.lg?"btn-sm btn-tertiary":"w-100 btn-secondary",e.ratings.some(l=>l.product_id===r.productId)?"btn-muted":"btn-success"]]),onClick:t[0]||(t[0]=Gt((...l)=>r.openSidebar&&r.openSidebar(...l),["stop","prevent"]))},[z(m(e.ratings.some(l=>l.product_id===r.productId)?e.$t("product_rating.button.rated"):e.$t("product.rate"))+" ",1),xe(b(s,{icon:"rating",class:"ms-icon"},null,512),[[a,{content:e.$t("download.rating"),delay:{show:500,hide:100},triggers:["hover","click"]}]])],2)}const Lle=U(ZVt,[["render",KVt]]),JVt={props:{download:Object,lg:Boolean},methods:{openSidebar(){let e={orderId:this.download.order_item_id,productTitle:this.download.title};this.$store.dispatch("sidebar/open",{type:"complaint-create",data:e})}}};function XVt(e,t,n,o,i,r){return h(),g("button",{class:J(["btn btn-secondary",n.lg?"w-100":"btn-sm"]),onClick:t[0]||(t[0]=Gt((...s)=>r.openSidebar&&r.openSidebar(...s),["prevent","stop"]))},m(e.$t("complaints.report_complaint")),3)}const Mle=U(JVt,[["render",XVt]]),QVt={props:{download:Object,lg:Boolean},methods:{openSidebar(){let e={...this.download.complaint,title:this.download.title};this.$store.dispatch("sidebar/open",{type:"complaint-show",data:e})}}};function eqt(e,t,n,o,i,r){return h(),g("button",{class:J(["btn btn-tertiary",n.lg?"w-100":"btn-sm"]),onClick:t[0]||(t[0]=Gt((...s)=>r.openSidebar&&r.openSidebar(...s),["prevent","stop"]))},m(e.$t("download.in_complaint")+" "+n.download.complaint.created_at),3)}const Nle=U(QVt,[["render",eqt]]),tqt={components:{Loading:Rt},props:{loadFunction:{type:Function,required:!0},forceScrollParent:{type:Object,default:null},distance:{type:Number,default:0},loadingAlwaysMinHeight:{type:Boolean,default:!1}},data(){return{scrollParent:null,primaryColor:window.primaryColor,loading:!1}},methods:{attemptLoad(){if(this.loading||!this.$refs.bottom)return;if(this.getCurrentDistance()<this.distance){let n=setTimeout(()=>{this.loading=!0},50);this.loadFunction().finally(()=>{this.loading=!1,clearTimeout(n)})}},getScrollParent(e){let t;return t||(e.tagName==="BODY"?t=window:(e.hasAttribute("infinite-wrapper")||["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>-1)&&(t=e)),t||this.getScrollParent(e.parentNode)},getCurrentDistance(){let e;const t=this.$refs.container.getBoundingClientRect().bottom,n=this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom;return e=t-n,e}},mounted(){this.handleScroll=is.debounce(this.attemptLoad,50),this.forceScrollParent?this.scrollParent=this.forceScrollParent:this.scrollParent=this.getScrollParent(this.$refs.container),this.scrollParent.addEventListener("scroll",this.handleScroll)},beforeUnmount(){this.scrollParent.removeEventListener("scroll",this.handleScroll)}},nqt={ref:"container"},oqt={ref:"bottom"};function iqt(e,t,n,o,i,r){const s=y("Loading");return h(),g("div",null,[c("div",nqt,[Pt(e.$slots,"content")],512),c("div",oqt,[Pt(e.$slots,"bottom")],512),c("div",{class:J(["vl-parent",{"mh-4rem":n.loadingAlwaysMinHeight||i.loading}])},[b(s,{active:i.loading,"is-full-page":!1,color:i.primaryColor},null,8,["active","color"])],2),Pt(e.$slots,"notFound"),Pt(e.$slots,"bottomText")])}const iM=U(tqt,[["render",iqt]]);const rqt={components:{InfiniteScroll:iM,ProductRatingButton:Lle,AppIcon:Ue,TransitionCollapseHeight:qo,FlexTableRow:ni,FlexTableHead:ti,ComplaintCreateButton:Mle,ComplaintShowButton:Nle},data(){return{openedItem:-1,primaryColor:window.primaryColor,ratingProductId:null,complaintOrderItemId:null}},computed:{...Oe({downloads:"downloads/getDownloadItems",pagination:"downloads/getPagination",loadingMore:"downloads/loadingMore",loading:"downloads/loading",ratings:"productRating/ratings"})},methods:{toggleOpen(e){this.openedItem===e?this.openedItem=-1:this.openedItem=e},createComplaint(e){this.complaintOrderItemId=e,this.$store.dispatch("sidebar/open")},showComplaint(e){let t={...e.complaint,title:e.title};this.$store.dispatch("sidebar/open",{type:"complaint-show",data:t})},reload(){window.location.reload()},loadMore(){return new Promise((e,t)=>{this.$store.dispatch("downloads/loadMore").then(()=>{e()}).catch(()=>{t()})})}},watch:{loading(){this.openedItem=-1}}},sqt={class:"col-12 col-lg-8"},aqt={class:"col-12 col-lg-4 d-none d-lg-block"},lqt=["id"],cqt={class:"d-flex align-items-center"},dqt=["href"],uqt=["src"],hqt={class:"ms-3"},fqt={class:"large"},mqt={class:"d-flex align-items-center"},pqt={key:0,class:"small rounded-pill px-2 py-1 bg-success-light text-success"},gqt={class:"d-flex align-items-center"},vqt={key:0,class:"small rounded-pill px-2 py-1 bg-danger-light text-danger"},_qt={class:"col-12 col-lg-4 pe-0 d-none d-lg-flex align-items-center"},yqt={class:"mb-0"},bqt={class:"mb-0 small text-gray-600"},kqt={class:"flex-grow-1 d-flex justify-content-end"},wqt=["href"],$qt={class:"rounded bg-primary-5 mb-3"},Cqt={class:"row p-3"},Sqt={class:"col-6 col-lg-2dot4 mb-4"},Tqt={class:"medium text-gray-600"},Eqt={class:"large"},Iqt=["href"],Pqt={class:"col-6 col-lg-2dot4 mb-4"},Aqt={class:"medium text-gray-600"},Dqt={class:"col-6 col-lg-2dot4 mb-4"},xqt={class:"medium text-gray-600"},Oqt={class:"col-6 col-lg-2dot4 mb-4"},Lqt={class:"medium text-gray-600"},Mqt={class:"col-6 col-lg-2dot4 mb-4"},Nqt={class:"medium text-gray-600"},Rqt={class:"large"},jqt={class:"d-none d-lg-flex justify-content-end py-2 px-3"},Fqt={class:"row d-lg-none pb-3 px-3"},zqt={class:"col-12 col-sm-6 mt-3"},Uqt=["href"],Bqt={class:"col-12 col-sm-6 d-block mt-3 d-lg-none"},Hqt={class:"col-12 col-sm-6 mt-3 mt-lg-0"},Vqt={class:"col-12 col-sm-6 mt-3 mt-lg-0"},qqt=["href"],Yqt={class:"p-3"},Wqt={class:"fw-bold"};function Gqt(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("AppIcon"),l=y("ProductRatingButton"),d=y("FlexTableRow"),u=y("ComplaintCreateButton"),f=y("ComplaintShowButton"),p=y("TransitionCollapseHeight"),v=y("InfiniteScroll"),_=an("tooltip");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",sqt,m(e.$t("download.table.material")),1),c("div",aqt,m(e.$t("download.bought")),1)]),_:1}),b(v,{"load-function":r.loadMore},os({bottomText:F(()=>[c("div",Wqt,m(e.$t("filter.shown_count_of_total_products",{count:e.downloads.length,total:e.pagination.total})),1)]),_:2},[!e.loading&&e.downloads.length>0?{name:"content",fn:F(()=>[(h(!0),g(pe,null,Me(e.downloads,(k,C)=>(h(),g("div",{key:C,class:J(["border-bottom",{"border-none":C===e.downloads.length-1}])},[b(d,{class:"border-none cursor-pointer bg-primary-5-hover",onClick:$=>r.toggleOpen(C)},{default:F(()=>[c("div",{class:"col-12 col-lg-8 px-0",id:"product-"+C},[c("div",cqt,[c("a",{class:"d-flex align-items-center link-dark deactive-lg-down",onClick:t[0]||(t[0]=Gt(()=>{},["stop"])),href:e.ziggyRoute("product.show",k.product_id)},[c("img",{src:k.cover_img_thumbnail,width:"40",height:"40",class:"border-radius-5px border-1"},null,8,uqt),c("div",hqt,[c("div",fqt,m(k.title),1),c("div",mqt,[k.modification?(h(),g("span",pqt,[z(m(e.$t("download.updated_at")+" "+k.modification.date)+" ",1),xe(b(a,{icon:"info-circle",class:"ms-1",width:"16",height:"16"},null,512),[[_,{content:k.modification.reason,delay:{show:500,hide:100},triggers:["hover","click"]}]])])):D("",!0)]),c("div",gqt,[k.complaint?(h(),g("span",vqt,m(e.$t("download.in_complaint")+" "+k.complaint.created_at),1)):D("",!0)])])],8,dqt)])],8,lqt),c("div",_qt,[c("div",null,[c("p",yqt,m(k.bought_at),1),c("p",bqt,m(k.bought_by),1)]),c("div",kqt,[b(l,{product:k,lg:""},null,8,["product"]),k.files&&k.files.length?(h(),g("a",{key:0,class:"btn btn-tertiary btn-sm btn-center",onClick:t[1]||(t[1]=Gt(()=>{},["stop"])),href:e.ziggyRoute("downloads.download",[k.product_id,k.files[0].id])},[z(m(e.$t("download.download"))+" ",1),b(a,{icon:"download",class:"ms-icon",width:"20",height:"20"})],8,wqt)):D("",!0)])])]),_:2},1032,["onClick"]),b(p,null,{default:F(()=>[xe(c("div",$qt,[c("div",Cqt,[c("div",Sqt,[c("span",Tqt,m(e.$t("download.author")),1),c("div",Eqt,[c("a",{href:e.ziggyRoute("user.show",k.author.id)},m(k.author.first_name+" "+k.author.last_name),9,Iqt)])]),c("div",Pqt,[c("span",Aqt,m(e.$t("download.search.class")),1),(h(!0),g(pe,null,Me(k.categories.class,$=>(h(),g("div",{class:"large",key:$},m($),1))),128))]),c("div",Dqt,[c("span",xqt,m(e.$t("download.search.subject")),1),(h(!0),g(pe,null,Me(k.categories.subject,$=>(h(),g("div",{class:"large",key:$},m($),1))),128))]),c("div",Oqt,[c("span",Lqt,m(e.$t("download.file_type")),1),(h(!0),g(pe,null,Me(k.categories.format,$=>(h(),g("div",{class:"large",key:$},m($),1))),128))]),c("div",Mqt,[c("span",Nqt,m(e.$t("download.price")),1),c("div",Rqt,m(k.price_brutto+",-"),1)])]),t[2]||(t[2]=c("div",{class:"px-3"},[c("hr",{class:"m-0",style:{height:"0px","border-width":"2px"}})],-1)),c("div",null,[c("div",jqt,[c("div",null,[k.complaint?(h(),W(f,{key:1,download:k},null,8,["download"])):(h(),W(u,{key:0,download:k},null,8,["download"]))])]),c("div",Fqt,[c("div",zqt,[k.files&&k.files.length?(h(),g("a",{key:0,class:"btn btn-secondary btn-lg-sm btn-lg-tertiary btn-center w-100",href:e.ziggyRoute("downloads.download",[k.product_id,k.files[0].id])},[z(m(e.$t("download.download"))+" ",1),b(a,{icon:"download",class:"ms-icon",width:"20",height:"20"})],8,Uqt)):D("",!0)]),c("div",Bqt,[b(l,{product:k},null,8,["product"])]),c("div",Hqt,[k.complaint?(h(),W(f,{key:1,download:k,lg:""},null,8,["download"])):(h(),W(u,{key:0,download:k,lg:""},null,8,["download"]))]),c("div",Vqt,[c("a",{class:"btn btn-secondary w-100",href:e.ziggyRoute("product.show",k.product_id)},m(e.$t("download.go_to_product_button")),9,qqt)])])])],512),[[Vo,i.openedItem===C]])]),_:2},1024)],2))),128))]),key:"0"}:void 0,!e.loading&&!e.downloads.length>0?{name:"notFound",fn:F(()=>[c("div",Yqt,m(e.$t("product.not_found.title")),1)]),key:"1"}:void 0]),1032,["load-function"])])}const Zqt=U(rqt,[["render",Gqt],["__scopeId","data-v-e23ed40d"]]),Kqt=()=>De.get(Pe("api.invoice.index")),Jqt=e=>De.get(Pe("user.dashboard.api.finances.documents",{year:e})),Xqt=()=>De.get(Pe("api.invoices2019.index")),rA={index:Kqt,indexYear:Jqt,index2019:Xqt},Qqt={components:{AppIcon:Ue},data(){return{available:!1}},created(){rA.index2019().then(e=>{this.available=e.data.archive_exists})}},eYt=["href"];function tYt(e,t,n,o,i,r){const s=y("AppIcon");return i.available?(h(),g("a",{key:0,href:e.ziggyRoute("api.invoices2019.download"),target:"_blank",class:"btn btn-primary btn-sm d-inline-block mt-5"},[b(s,{icon:"download",class:"me-icon"}),z(" "+m(e.$t("invoices.in_year")+" 2019"),1)],8,eYt)):D("",!0)}const nYt=U(Qqt,[["render",tYt]]),Rle=""+new URL("cart_empty-97075d34.svg",import.meta.url).href,oYt=()=>De.get(Pe("api.auth")),iYt=()=>De.get(Pe("api.auth.downloads")),rYt=(e,t)=>De.patch(Pe("api.professional.focus.edit",{user:e}),{professional_focus:t}),sYt=e=>De.post(Pe("user.store"),e),aYt=e=>De.post(Pe("login"),e),lYt=e=>De.post(Pe("logout"),e),cYt=e=>De.post(Pe("password.email"),{email:e}),dYt=e=>De.post(Pe("password.request"),e),uYt=e=>De.patch(Pe("login.confirm.resend"),{email:e}),hYt=()=>De.patch(Pe("api.vop.accept")),fYt=e=>De.patch(Pe("api.auth.name.set"),{name:e}),Qc={index:oYt,downloads:iYt,patchProfessionalFocus:rYt,vopAccept:hYt,passwordReset:dYt,passwordResetEmailSend:cYt,register:sYt,login:aYt,logout:lYt,confirmEmailSend:uYt,nameSet:fYt},mYt={props:{isWishlist:{type:Boolean,default(){return!1}}},computed:{image(){return Rle}},methods:{logoutPost(){Qc.logout({_token:document.head.querySelector('meta[name="csrf-token"]').content}).then(()=>{window.location.href=this.ziggyRoute("login")})}}},pYt={class:"text-center"},gYt=["src"],vYt={class:"text-gray-900 fw-medium mb-1"},_Yt={class:"text-gray-800 mb-3"},yYt=["href"],bYt={class:"medium text-gray-800 mb-0 mt-5"},kYt={class:"medium mb-0"},wYt=["href"];function $Yt(e,t,n,o,i,r){return h(),g("div",pYt,[c("img",{src:r.image,height:"80",class:"mb-3"},null,8,gYt),c("h3",vYt,m(this.isWishlist?e.$t("dashboard.user.products.no_products.title_wishlist"):e.$t("dashboard.user.products.no_products.title")),1),c("p",_Yt,m(this.isWishlist?e.$t("dashboard.user.products.no_products.text_wishlist"):e.$t("dashboard.user.products.no_products.text")),1),c("a",{href:e.ziggyRoute("materialy"),class:"btn btn-primary"},m(e.$t("dashboard.user.products.no_products.button")),9,yYt),this.isWishlist?D("",!0):(h(),g(pe,{key:0},[c("p",bYt,m(e.$t("dashboard.user.products.no_products.footer_text")),1),c("p",kYt,[c("a",{href:e.ziggyRoute("logout"),onClick:t[0]||(t[0]=Gt((...s)=>r.logoutPost&&r.logoutPost(...s),["prevent"]))},m(e.$t("dashboard.user.products.no_products.footer_link")),9,wYt),t[1]||(t[1]=z(" "+m(".")))])],64))])}const rM=U(mYt,[["render",$Yt]]),CYt={components:{NoDownloads:rM,DownloadsTable:Zqt,UserInvoice2019Panel:nYt,DownloadListFilter:C6,Loading:Rt},props:{query:{type:Object,default(){return{text:"",category:""}}}},data(){return{filter:{text:this.query.text?this.query.text.split(","):[],category:this.query.category?this.setCategoriesFromQuery(this.query.category):{class:[],subject:[]}},primaryColor:window.primaryColor,emptyTable:!1}},computed:{...Oe({downloads:"downloads/getDownloadsWithFilters",filterStore:"downloads/getComponentFilters",pagination:"downloads/getPagination",loading:"downloads/loading",categories:"category/getCategoriesForProducts"}),categoryFilter(){let e=[];this.filter.category.class.forEach(o=>{e.push(o.id)});let t=[];this.filter.category.subject.forEach(o=>{t.push(o.id)});let n=[];return e.length>0&&n.push(e.join(",")),t.length>0&&n.push(t.join(",")),n.join(",")},textFilter(){return this.filter.text.join(",")},combinedFilter(){return{category:this.categoryFilter.length>0?this.categoryFilter:null,text:this.textFilter.length>0?this.textFilter:null}},filterOrPaginationTouched(){return this.combinedFilter.text!==null||this.combinedFilter.category!==null||this.pagination&&this.pagination.current_page!==1}},mounted(){this.filterInput(),this.$store.dispatch("category/loadForProducts","downloads")},watch:{combinedFilter(){this.filterInput()},filterStore:{deep:!0,handler(e){let t=this.serializeTextFilter(e.text),n=this.serializeCategoryFilter(e.category);(t||n)&&this.$router.push({name:this.$route.name,query:{text:t,category:n}}).catch(()=>{})}},query(){(this.query.category||this.query.text)&&(this.filter={category:this.query.category?this.setCategoriesFromQuery(this.query.category):{class:[],subject:[]},text:this.query.text?this.query.text.split(","):[]},this.filterInput())}},methods:{filterInput(){this.pagination.current_page=1,this.$store.dispatch("downloads/updateComponentFilters",{componentFilters:this.filter}),this.$store.dispatch("downloads/updateDownloadFilters",{downloadFilters:this.combinedFilter}),this.loadDownloads()},serializeCategoryFilter(e){let t=[];e.class.forEach(i=>{t.push(i.id)});let n=[];e.subject.forEach(i=>{n.push(i.id)});let o=[];return t.length>0&&o.push(t.join(",")),n.length>0&&o.push(n.join(",")),o.join(",")},serializeTextFilter(e){return Array.from(e).join(",")},setCategoriesFromQuery(e){let t=[];return e.split(",").forEach(n=>{t.push({id:n,label:""})}),{class:t,format:[],subject:[]}},loadDownloads(){this.$store.dispatch("downloads/load")}}},SYt={key:0,class:"row d-flex justify-content-center"},TYt={class:"col-12"},EYt={key:1,class:"row"},IYt={class:"col-12"},PYt={key:0,class:"vl-parent z-1 mh-4rem"};function AYt(e,t,n,o,i,r){const s=y("NoDownloads"),a=y("DownloadListFilter"),l=y("Loading"),d=y("DownloadsTable"),u=y("UserInvoice2019Panel");return(!e.downloads.downloadItems||e.downloads.downloadItems.length<1)&&!r.filterOrPaginationTouched&&!e.loading?(h(),g("div",SYt,[c("div",TYt,[b(s)])])):(h(),g("div",EYt,[c("div",IYt,[b(a,{class:"mb-4",filter:i.filter,"onUpdate:filter":t[0]||(t[0]=f=>i.filter=f),total:e.pagination.total,categories:e.categories,loading:e.loading},null,8,["filter","total","categories","loading"]),e.loading?(h(),g("div",PYt,[b(l,{active:e.loading,"onUpdate:active":t[1]||(t[1]=f=>e.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):D("",!0),!e.loading&&e.pagination.total>0?(h(),W(d,{key:1,loading:e.loading},null,8,["loading"])):D("",!0),b(u)])]))}const FY=U(CYt,[["render",AYt]]),DYt={components:{DownloadListFilter:C6},props:{schoolId:{type:Number,default(){return null}},total:{type:Number,default(){return 0}},categories:Object,loading:Boolean},data(){return{filter:{category:{subject:[],class:[]},text:[]}}},computed:{...Oe({downloads:"schoolDownload/getDownloadsWithFilters",filterStore:"schoolDownload/getComponentFilters"}),categoryFilter(){let e=[];this.filter.category.class.forEach(o=>{e.push(o.id)});let t=[];this.filter.category.subject.forEach(o=>{t.push(o.id)});let n=[];return e.length>0&&n.push(e.join(",")),t.length>0&&n.push(t.join(",")),n.join(",")},textFilter(){return this.filter.text.join(",")},combinedFilter(){return{category:this.categoryFilter.length>0?this.categoryFilter:null,text:this.textFilter.length>0?this.textFilter:null}}},watch:{combinedFilter(){this.$store.dispatch("schoolDownload/updateDownloadFilters",{downloadFilters:this.combinedFilter}),this.$store.dispatch("schoolDownload/updateComponentFilters",{componentFilters:this.filter}),this.$store.dispatch("schoolDownload/load")}}};function xYt(e,t,n,o,i,r){const s=y("DownloadListFilter");return h(),W(s,{filter:i.filter,"onUpdate:filter":t[0]||(t[0]=a=>i.filter=a),total:n.total,categories:n.categories,loading:n.loading},null,8,["filter","total","categories","loading"])}const OYt=U(DYt,[["render",xYt]]);const LYt={props:{schoolId:{type:Number,default(){return null}}},components:{InfiniteScroll:iM,FlexTableRow:ni,FlexTableHead:ti,TransitionCollapseHeight:qo,AppIcon:Ue,ProductRatingButton:Lle,ComplaintCreateButton:Mle,ComplaintShowButton:Nle},data(){return{openedItem:-1,primaryColor:window.primaryColor,ratingProductId:null,complaintOrderItemId:null,hover:-1}},computed:{...Oe({loading:"schoolDownload/loading",loadingMore:"schoolDownload/loadingMore",downloads:"schoolDownload/getDownloadItems",pagination:"schoolDownload/getPagination"})},methods:{toggleOpen(e){this.openedItem===e?this.openedItem=-1:this.openedItem=e},reload(){window.location.reload()},loadMore(){return new Promise((e,t)=>{this.$store.dispatch("schoolDownload/loadMore").then(()=>{e()}).catch(()=>{t()})})}},watch:{loading(){this.openedItem=-1}}},MYt={class:"col-12 col-lg-8"},NYt={class:"col-12 col-lg-4 d-none d-lg-block"},RYt=["id"],jYt={class:"d-flex align-items-center"},FYt=["href"],zYt=["src"],UYt={class:"ms-3"},BYt={class:"large"},HYt={class:"d-flex align-items-center"},VYt={key:0,class:"small rounded-pill px-2 py-1 bg-success-light text-success"},qYt={key:0,class:"small rounded-pill px-2 py-1 bg-danger-light text-danger"},YYt={class:"col-12 col-lg-4 pe-0 d-none d-lg-flex align-items-center cursor-pointer"},WYt={class:"mb-0"},GYt={class:"mb-0 small text-gray-600"},ZYt={class:"flex-grow-1 d-flex justify-content-end"},KYt=["href"],JYt={class:"rounded bg-primary-5 mb-3"},XYt={class:"row p-3"},QYt={class:"col-6 col-lg-2dot4 mb-4"},eWt={class:"medium text-gray-600"},tWt={class:"large"},nWt=["href"],oWt={class:"col-6 col-lg-2dot4 mb-4"},iWt={class:"medium text-gray-600"},rWt={class:"col-6 col-lg-2dot4 mb-4"},sWt={class:"medium text-gray-600"},aWt={class:"col-6 col-lg-2dot4 mb-4"},lWt={class:"medium text-gray-600"},cWt={class:"col-6 col-lg-2dot4 mb-4"},dWt={class:"medium text-gray-600"},uWt={class:"large"},hWt={class:"d-none d-lg-flex justify-content-end py-2 px-3"},fWt={class:"row d-lg-none pb-3 px-3"},mWt={class:"col-12 col-sm-6 mt-3"},pWt=["href"],gWt={class:"col-12 col-sm-6 d-block mt-3 d-lg-none"},vWt={class:"col-12 col-sm-6 mt-3 mt-lg-0"},_Wt={class:"col-12 col-sm-6 mt-3 mt-lg-0"},yWt=["href"],bWt={class:"p-3"},kWt={class:"mt-3 fw-bold"};function wWt(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("AppIcon"),l=y("ProductRatingButton"),d=y("FlexTableRow"),u=y("ComplaintCreateButton"),f=y("ComplaintShowButton"),p=y("TransitionCollapseHeight"),v=y("InfiniteScroll"),_=an("tooltip");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",MYt,m(e.$t("download.table.material")),1),c("div",NYt,m(e.$t("download.bought")),1)]),_:1}),b(v,{"load-function":r.loadMore},os({bottomText:F(()=>[c("div",kWt,m(e.$t("filter.shown_count_of_total_products",{count:e.downloads.length,total:e.pagination.total})),1)]),_:2},[!e.loading&&e.downloads.length>0?{name:"content",fn:F(()=>[(h(!0),g(pe,null,Me(e.downloads,(k,C)=>(h(),g("div",{key:C,class:J(["border-bottom",{"border-none":C==e.downloads.length-1}])},[b(d,{class:"cursor-pointer border-none bg-primary-5-hover",onClick:$=>r.toggleOpen(C)},{default:F(()=>[c("div",{class:"col-12 col-lg-8 px-0 d-flex align-items-center",id:"product-"+C},[c("div",jYt,[c("a",{class:"d-flex align-items-center link-dark deactive-lg-down",onClick:t[0]||(t[0]=Gt(()=>{},["stop"])),href:e.ziggyRoute("product.show",k.product_id)},[c("img",{src:k.cover_img_thumbnail,width:"40",height:"40",class:"border-radius-5px border-1"},null,8,zYt),c("div",UYt,[c("div",BYt,m(k.title),1),c("div",HYt,[k.modification?(h(),g("span",VYt,[z(m(e.$t("download.updated_at")+" "+k.modification.date)+" ",1),xe(b(a,{icon:"info-circle",class:"ms-1",width:"16",height:"16"},null,512),[[_,{content:k.modification.reason,delay:{show:500,hide:100},triggers:["hover","click"]}]])])):D("",!0)]),k.complaint?(h(),g("span",qYt,m(e.$t("download.in_complaint")+" "+k.complaint.created_at),1)):D("",!0)])],8,FYt)])],8,RYt),c("div",YYt,[c("div",null,[c("p",WYt,m(k.bought_at),1),c("p",GYt,m(k.bought_by),1)]),c("div",ZYt,[b(l,{product:k,lg:""},null,8,["product"]),k.files&&k.files.length?(h(),g("a",{key:0,class:"btn btn-center btn-tertiary btn-sm",onClick:t[1]||(t[1]=Gt(()=>{},["stop"])),href:e.ziggyRoute("downloads.download",[k.product_id,k.files[0].id])},[z(m(e.$t("download.download"))+" ",1),b(a,{icon:"download",class:"ms-icon",width:"20",height:"20"})],8,KYt)):D("",!0)])])]),_:2},1032,["onClick"]),b(p,null,{default:F(()=>[xe(c("div",JYt,[c("div",XYt,[c("div",QYt,[c("span",eWt,m(e.$t("download.author")),1),c("div",tWt,[c("a",{href:e.ziggyRoute("user.show",k.author.id)},m(k.author.first_name+" "+k.author.last_name),9,nWt)])]),c("div",oWt,[c("span",iWt,m(e.$t("download.search.class")),1),(h(!0),g(pe,null,Me(k.categories.class,$=>(h(),g("div",{class:"large",key:$},m($),1))),128))]),c("div",rWt,[c("span",sWt,m(e.$t("download.search.subject")),1),(h(!0),g(pe,null,Me(k.categories.subject,$=>(h(),g("div",{class:"large",key:$},m($),1))),128))]),c("div",aWt,[c("span",lWt,m(e.$t("download.file_type")),1),(h(!0),g(pe,null,Me(k.categories.format,$=>(h(),g("div",{class:"large",key:$},m($),1))),128))]),c("div",cWt,[c("span",dWt,m(e.$t("download.price")),1),c("div",uWt,m(k.price_brutto+",-"),1)])]),t[2]||(t[2]=c("div",{class:"px-3"},[c("hr",{class:"m-0",style:{height:"0px","border-width":"2px"}})],-1)),c("div",null,[c("div",hWt,[c("div",null,[k.complaint?(h(),W(f,{key:1,download:k},null,8,["download"])):(h(),W(u,{key:0,download:k},null,8,["download"]))])]),c("div",fWt,[c("div",mWt,[k.files&&k.files.length?(h(),g("a",{key:0,class:"btn btn-center btn-secondary btn-lg-sm btn-lg-tertiary w-100",href:e.ziggyRoute("downloads.download",[k.product_id,k.files[0].id])},[z(m(e.$t("download.download"))+" ",1),b(a,{icon:"download",class:"ms-icon",width:"20",height:"20"})],8,pWt)):D("",!0)]),c("div",gWt,[b(l,{product:k},null,8,["product"])]),c("div",vWt,[k.complaint?(h(),W(f,{key:1,download:k,lg:""},null,8,["download"])):(h(),W(u,{key:0,download:k,lg:""},null,8,["download"]))]),c("div",_Wt,[c("a",{class:"btn btn-secondary w-100",href:e.ziggyRoute("product.show",k.product_id)},m(e.$t("download.go_to_product_button")),9,yWt)])])])],512),[[Vo,i.openedItem===C]])]),_:2},1024)],2))),128))]),key:"0"}:void 0,!e.loading&&!e.downloads.length>0?{name:"notFound",fn:F(()=>[c("div",bWt,m(e.$t("product.not_found.title")),1)]),key:"1"}:void 0]),1032,["load-function"])])}const $Wt=U(LYt,[["render",wWt],["__scopeId","data-v-0d39748c"]]),CWt={components:{NoDownloads:rM,SchoolDownloadsListFilter:OYt,Loading:Rt,SchoolDownloadsTable:$Wt},props:{schoolId:{type:Number,default(){return null}},query:{type:Object,default(){return{text:"",category:""}}}},data(){return{primaryColor:window.primaryColor,filter:{category:this.query.category?this.setCategoriesFromQuery(this.query.category):{class:[],subject:[]},text:this.query.text?this.query.text.split(","):[]},emptyTable:!1}},computed:{...Oe({downloads:"schoolDownload/getDownloadsWithFilters",loading:"schoolDownload/loading",pagination:"schoolDownload/getPagination",filterStore:"schoolDownload/getComponentFilters",categories:"category/getCategoriesForProducts"}),categoryFilter(){let e=[];this.filter.category.class.forEach(o=>{e.push(o.id)});let t=[];this.filter.category.subject.forEach(o=>{t.push(o.id)});let n=[];return e.length>0&&n.push(e.join(",")),t.length>0&&n.push(t.join(",")),n.join(",")},textFilter(){return this.filter.text.join(",")},combinedFilter(){return{category:this.categoryFilter.length>0?this.categoryFilter:null,text:this.textFilter.length>0?this.textFilter:null}},filterOrPaginationTouched(){return this.combinedFilter.text!==null||this.combinedFilter.category!==null||this.pagination&&this.pagination.current_page!==1}},mounted(){this.filterInput(),this.$store.dispatch("category/loadForProducts","schoolDownloads")},watch:{combinedFilter(){this.filterInput()},filterStore:{deep:!0,handler(e){let t=this.serializeTextFilter(e.text),n=this.serializeCategoryFilter(e.category);(t||n)&&this.$router.push({name:this.$route.name,query:{text:t,category:n}}).catch(()=>{})}},query(){(this.query.category||this.query.text)&&(this.filter={category:this.query.category?this.setCategoriesFromQuery(this.query.category):{class:[],subject:[]},text:this.query.text?this.query.text.split(","):[]},this.filterInput())}},methods:{filterInput(){this.pagination.current_page=1,this.$store.dispatch("schoolDownload/updateComponentFilters",{componentFilters:this.filter}),this.$store.dispatch("schoolDownload/updateDownloadFilters",{downloadFilters:this.combinedFilter}),this.loadFiltered()},loadFiltered(){this.$store.dispatch("schoolDownload/load")},serializeCategoryFilter(e){let t=[];e.class.forEach(i=>{t.push(i.id)});let n=[];e.subject.forEach(i=>{n.push(i.id)});let o=[];return t.length>0&&o.push(t.join(",")),n.length>0&&o.push(n.join(",")),o.join(",")},serializeTextFilter(e){return Array.from(e).join(",")},setCategoriesFromQuery(e){let t=[];return e.split(",").forEach(n=>{t.push({id:n,label:""})}),{class:t,format:[],subject:[]}}}},SWt={class:"school-themed-component"},TWt={key:0,class:"row justify-content-center"},EWt={key:0,class:"vl-parent z-1 mh-4rem"};function IWt(e,t,n,o,i,r){const s=y("NoDownloads"),a=y("SchoolDownloadsListFilter"),l=y("Loading"),d=y("SchoolDownloadsTable");return h(),g("div",SWt,[(!e.downloads.downloadItems||e.downloads.downloadItems.length<1)&&!r.filterOrPaginationTouched&&!e.loading?(h(),g("div",TWt,[b(s)])):(h(),g(pe,{key:1},[b(a,{class:"mb-4","school-id":n.schoolId,filter:i.filter,"onUpdate:filter":t[0]||(t[0]=u=>i.filter=u),total:e.pagination.total,categories:e.categories,loading:e.loading},null,8,["school-id","filter","total","categories","loading"]),e.loading?(h(),g("div",EWt,[b(l,{active:e.loading,"onUpdate:active":t[1]||(t[1]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):D("",!0),!e.loading&&e.pagination.total>0?(h(),W(d,{key:1,"school-id":n.schoolId,loading:e.loading},null,8,["school-id","loading"])):D("",!0)],64))])}const sA=U(CWt,[["render",IWt]]),PWt=""+new URL("more_than_10_wishlist-92cac6e4.png",import.meta.url).href,AWt={props:{value:{type:Number,default:0}},data(){return{moreThan10InWishlist:PWt}},computed:{formattedValue(){return this.value.toLocaleString("cs-CZ",{minimumFractionDigits:0,maximumFractionDigits:0})}}},DWt={class:"row"},xWt={class:"col-12 col-md-auto mb-md-0 mb-3 text-center align-self-center"},OWt=["src"],LWt={class:"col-12 col-md-auto align-self-center text-lg-start text-center"},MWt={class:"fw-bold mb-2"},NWt={class:"mb-3"},RWt=["href"];function jWt(e,t,n,o,i,r){return h(),g("div",DWt,[c("div",xWt,[c("img",{src:i.moreThan10InWishlist,alt:"More than 10 items in wishlist"},null,8,OWt)]),c("div",LWt,[c("span",MWt,m(e.$t("dashboard.user.wishlist.banner.title")+" "+r.formattedValue+" "+e.$t("currency.short")),1),c("p",NWt,m(e.$t("dashboard.user.wishlist.banner.text")),1),c("a",{href:e.ziggyRoute("school.index"),class:"text-decoration-underline",target:"_blank"},m(e.$t("dashboard.user.wishlist.banner.link_text")),9,RWt)])])}const FWt=U(AWt,[["render",jWt]]),zWt={components:{AppIcon:Ue},methods:{addAllToCart(){this.$store.dispatch("wishlist/addAllToCart").then(()=>{window.location.href=this.ziggyRoute("cart.index")})}}};function UWt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-secondary btn-sm btn-center",onClick:t[0]||(t[0]=(...a)=>r.addAllToCart&&r.addAllToCart(...a))},[z(m(e.$t("dashboard.user.wishlist.add_to_cart_all"))+" ",1),b(s,{icon:"basket",width:"20",height:"20",class:"ms-icon"})])}const BWt=U(zWt,[["render",UWt]]),HWt={components:{ProductPrice:Wy,FlexTableRow:ni,FlexTableHead:ti,TransitionCollapseHeight:qo,AppIcon:Ue,DiscountIcon:c6,WishlistProductRemoveButton:dL,CartProductAddButton:f6},props:{user:{type:Object,default(){return null}},items:{type:Array,default(){return[]}}},data(){return{openedItem:-1,hover:-1}},methods:{isInCart(e){return this.isInCart(e.id)},toggleOpen(e){this.openedItem===e?this.openedItem=-1:this.openedItem=e}},computed:{...Oe({auth:"auth/auth",isInCart:"cart/isItemInCart"})}},VWt={class:"col-12 col-lg-5"},qWt={class:"col-12 col-lg-3 d-none d-lg-flex justify-content-end"},YWt=["onClick"],WWt=["href","onMouseover"],GWt=["src"],ZWt=["onClick"],KWt=["onClick"],JWt={class:"flex-grow-1 d-flex justify-content-end"},XWt={class:"rounded bg-primary-5"},QWt={class:"row p-3"},eGt={class:"text-gray-600"},tGt={class:"d-flex align-items-center"},nGt={class:"row p-3"},oGt={class:"col-12"},iGt=["href"],rGt={class:"col-12 col-sm-6 mt-3"},sGt={class:"col-12 col-sm-6 mt-3"};function aGt(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("DiscountIcon"),l=y("ProductPrice"),d=y("AppIcon"),u=y("WishlistProductRemoveButton"),f=y("CartProductAddButton"),p=y("FlexTableRow"),v=y("TransitionCollapseHeight");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",VWt,m(e.$t("dashboard.user.wishlist.table.products")),1),c("div",qWt,m(e.$t("dashboard.user.wishlist.table.price")),1),t[1]||(t[1]=c("div",{class:"col-12 col-lg-4 d-none d-lg-flex"},null,-1))]),_:1}),(h(!0),g(pe,null,Me(n.items,(_,k)=>(h(),g("div",{key:k,class:J(["border-bottom",{"border-none":k==n.items.length-1}])},[b(p,{class:"border-none"},{default:F(()=>[c("div",{class:"col-12 col-lg-5 d-flex ps-0 pe-0 large",onClick:C=>r.toggleOpen(k)},[c("a",{href:e.ziggyRoute("product.show",_.id),class:"d-flex align-items-center link-dark deactive-lg-down cursor-pointer",onMouseover:C=>i.hover=k,onMouseleave:t[0]||(t[0]=C=>i.hover=-1)},[c("img",{src:_.cover_img_thumbnail,width:"40",height:"40",class:"border-radius-5px border-1 me-3"},null,8,GWt),c("span",{class:J({"text-decoration-underline":i.hover==k})},m(_.title),3)],40,WWt)],8,YWt),c("div",{class:"col-12 col-lg-3 d-none d-lg-flex align-items-center justify-content-end",onClick:C=>r.toggleOpen(k)},[_.author_discount?(h(),W(a,{key:0,amount:_.author_discount.amount,class:"me-3"},null,8,["amount"])):D("",!0),b(l,{product:_,"margin-end-price":3},null,8,["product"])],8,ZWt),c("div",{class:"col-12 col-lg-4 d-none d-lg-flex align-items-center pe-0",onClick:C=>r.toggleOpen(k)},[c("div",JWt,[b(u,{product:_,"tooltip-hidden":"",class:"btn btn-sm btn-center btn-muted btn-tertiary",context:"wishlist"},{default:F(()=>[z(m(e.$t("dashboard.user.wishlist.table.remove_from_wishlist"))+" ",1),b(d,{icon:"wishlist-off",class:"ms-icon text-gray-700",height:"20",width:"20"})]),_:2},1032,["product"]),b(f,{product:_,"class-custom":"btn btn-sm btn-center btn-tertiary",context:"wishlist","tooltip-hidden":""},{default:F(()=>[r.isInCart(_)?(h(),g(pe,{key:0},[z(m(e.$t("dashboard.user.wishlist.table.already_in_cart"))+" ",1),b(d,{icon:"check",class:"ms-icon",height:"20",width:"20"})],64)):(h(),g(pe,{key:1},[z(m(e.$t("dashboard.user.wishlist.table.add_to_cart"))+" ",1),b(d,{icon:"basket",class:"ms-icon",height:"20",width:"20"})],64))]),_:2},1032,["product"])])],8,KWt)]),_:2},1024),b(v,{class:"d-block d-lg-none"},{default:F(()=>[xe(c("div",XWt,[c("div",QWt,[c("div",eGt,m(e.$t("dashboard.user.wishlist.table.price")),1),c("div",tGt,[b(l,{product:_,"margin-end-price":3},null,8,["product"]),_.author_discount?(h(),W(a,{key:0,amount:_.author_discount.amount,class:"ms-3"},null,8,["amount"])):D("",!0)])]),t[2]||(t[2]=c("div",{class:"px-3"},[c("hr",{class:"my-0",style:{height:"0px","border-width":"2px"}})],-1)),c("div",nGt,[c("div",oGt,[c("a",{class:"btn btn-secondary w-100",href:e.ziggyRoute("product.show",_.id)},m(e.$t("download.go_to_product_button")),9,iGt)]),c("div",rGt,[b(u,{product:_,"tooltip-hidden":"",class:"btn btn-secondary btn-center btn-muted w-100",context:"wishlist"},{default:F(()=>[z(m(e.$t("dashboard.user.wishlist.table.remove_from_wishlist"))+" ",1),b(d,{icon:"wishlist-off",class:"ms-icon text-gray-700",height:"20",width:"20"})]),_:2},1032,["product"])]),c("div",sGt,[b(f,{product:_,"class-custom":"btn btn-center btn-secondary w-100",context:"wishlist","tooltip-hidden":""},{default:F(()=>[r.isInCart(_)?(h(),g(pe,{key:0},[z(m(e.$t("dashboard.user.wishlist.table.already_in_cart"))+" ",1),b(d,{icon:"check",class:"ms-icon",height:"20",width:"20"})],64)):(h(),g(pe,{key:1},[z(m(e.$t("dashboard.user.wishlist.table.add_to_cart"))+" ",1),b(d,{icon:"basket",class:"ms-icon",height:"20",width:"20"})],64))]),_:2},1032,["product"])])])],512),[[Vo,i.openedItem===k]])]),_:2},1024)],2))),128))])}const lGt=U(HWt,[["render",aGt]]),cGt={components:{Loading:Rt,NoDownloads:rM,WishlistTable:lGt,WishlistBanner:FWt,WishlistAddAllToCartButton:BWt},props:{user:{type:Object,default(){return null}}},data(){return{primaryColor:window.primaryColor,numItemsToShowBanner:10}},computed:{...sn({products:e=>e.wishlist.products,wishlistLoading:e=>e.wishlist.loading,cartLoading:e=>e.cart.loading}),...Oe({priceBruttoTotal:"wishlist/getPriceBruttoTotal"}),showBanner(){return this.products.length>=this.numItemsToShowBanner},loading(){return this.wishlistLoading||this.cartLoading}},methods:{load(){this.$store.dispatch("wishlist/load")}},mounted(){this.load()}},dGt={class:"row"},uGt={class:"col-12"},hGt={class:"px-4 py-5 content-box shadow"},fGt={key:0,class:"row"},mGt={class:"row justify-content-between align-items-start mb-5"},pGt={class:"col-12 col-md-6"},gGt={class:"d-flex align-items-center"},vGt={class:"mb-0 ms-1"},_Gt={key:0,class:"col-12 col-md-6 mt-3 mt-md-0 text-end d-none d-md-block"},yGt={class:"vl-parent"},bGt={key:0,class:"mh-15dot625rem"},kGt={key:3,class:"mt-3 mt-md-0 text-center d-block d-md-none"};function wGt(e,t,n,o,i,r){const s=y("WishlistBanner"),a=y("app-icon"),l=y("WishlistAddAllToCartButton"),d=y("Loading"),u=y("NoDownloads"),f=y("WishlistTable");return h(),g("div",dGt,[c("div",uGt,[c("div",hGt,[r.showBanner?(h(),g("div",fGt,[b(s,{value:e.priceBruttoTotal,class:"mb-5"},null,8,["value"])])):D("",!0),c("div",mGt,[c("div",pGt,[c("div",gGt,[b(a,{icon:"wishlist",class:"me-2 text-primary",height:"24",width:"24"}),c("h3",vGt,m(e.$t("dashboard.user.wishlist.title")),1)])]),e.products.length>1?(h(),g("div",_Gt,[b(l)])):D("",!0)]),c("div",yGt,[b(d,{active:r.loading,"onUpdate:active":t[0]||(t[0]=p=>r.loading=p),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),r.loading?(h(),g("div",bGt)):e.products.length<1?(h(),W(u,{key:1,"is-wishlist":!0})):(h(),W(f,{key:2,user:n.user,items:e.products},null,8,["user","items"])),e.products.length>1?(h(),g("div",kGt,[b(l)])):D("",!0)])])])])}const $Gt=U(cGt,[["render",wGt]]),CGt={props:{imagePath:{type:String,default(){return null}}},data(){return{email:Jd.email}}},SGt={class:"row"},TGt={class:"col-auto"},EGt={class:"position-relative"},IGt=["src"],PGt={class:"col-auto"},AGt={class:"mb-0 fw-bold"},DGt=["href"];function xGt(e,t,n,o,i,r){return h(),g("div",SGt,[c("div",TGt,[c("div",EGt,[c("img",{src:n.imagePath,alt:"User image",width:"32",height:"32",class:"rounded-circle"},null,8,IGt),t[0]||(t[0]=c("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"position-absolute top-0 end-0"},[c("circle",{cx:"4",cy:"4",r:"4",fill:"#42BA96"})],-1))])]),c("div",PGt,[c("h5",AGt,m(e.$t("dashboard.user.messages.ucitelnice")),1),c("a",{href:"mailto:"+i.email,target:"_blank"},m(i.email),9,DGt)])])}const OGt=U(CGt,[["render",xGt]]),LGt={components:{AppIcon:Ue}},MGt={class:"text-danger d-flex justify-content-center align-items-center my-3"};function NGt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",MGt,[b(s,{icon:"arrow-down",class:"me-2"}),z(" "+m(e.$t("messenger.new_messages_line"))+" ",1),b(s,{icon:"arrow-down",class:"me-2"})])}const RGt=U(LGt,[["render",NGt]]);const jGt={components:{NewMessagesChatLine:RGt},props:{messages:{type:Array,default(){return[]}},messagesCount:{type:Number,default(){return 0}},sidebar:{type:Boolean,default(){return!1}},admin:{type:Boolean,default(){return!1}},senderImagePath:{type:String,default(){return null}},receiverImagePath:{type:String,default(){return null}},height:{type:String,default(){return"600px"}},newMessages:{type:Array,default(){return[]}},customId:{type:Number,default(){return 0}}},data(){return{loadAllClicked:!1,messagesLength:0}},methods:{scrollToBottom(e=0){if(this.messages.length>0){let t=this.messages.length-1;this.newMessages.length>0&&(e=1e3),this.$nextTick(()=>{this.$scrollTo("#message"+t,{duration:e,container:window.$("#"+this.customIdString)[0]})})}},scrollOnLoadAll(e){this.messages.length>0&&this.$nextTick(()=>{this.$nextTick(()=>{this.$scrollTo("#message"+e,{duration:0,offset:0,container:window.$("#"+this.customIdString)[0]})})})},loadAll(){this.loadAllClicked=!0,this.messagesLength=this.messages.length,this.$emit("show-all")},wrapImgs(){this.$nextTick(async()=>{if(this.$refs[this.customIdString]){let e=this.$refs[this.customIdString].querySelectorAll("p > img");for(const t of e)await this.wrapImage(t)}})},async wrapImage(e){e.classList="cursor-pointer",e.addEventListener("click",function(){let t=new Image;t.src=this.getAttribute("src"),t.innerHTML=t.src,window.open("").document.write(t.outerHTML)})},localDate(e){return mt(e,"DD.MM.YYYY").format("DD. MM. YYYY")},isNewDayMessage(e){return this.localDate(this.messages[e].created_at)!=this.localDate(this.messages[e-1].created_at)},isFirstMessage(e){return!e},isNewMessage(e){return!this.messages[e].is_seen},isFirstNewMessage(e){return this.messages.find(t=>t.is_seen===!1)===this.messages[e]},isResponse(e){return this.messages[e].is_sender?!this.messages[e-1].is_sender:this.messages[e-1].is_sender},isProfileImageShowed(e){return this.isFirstMessage(e)||!this.isFirstMessage(e)&&(this.isResponse(e)||this.isNewDayMessage(e))},isDateShowed(e){return this.isFirstMessage(e)||this.isNewDayMessage(e)},isExtraMarginTop(e){return!this.isFirstMessage(e)&&!this.isFirstNewMessage(e)&&!this.isNewDayMessage(e)&&this.isResponse(e)}},computed:{conversationContainerStyle(){return"height:"+this.height+";"},customIdString(){return"conversation-container"+this.customId},fullMessages(){return this.messages.length<this.messagesCount},anyNewMessages(){return this.messages.find(e=>e.is_seen===!1)}},mounted(){this.scrollToBottom(),this.wrapImgs()},watch:{messages:{handler(){if(this.loadAllClicked){this.loadAllClicked=!1;let e=this.messages.length-this.messagesLength-1;this.scrollOnLoadAll(e)}else this.scrollToBottom();this.wrapImgs()},deep:!0}}},FGt=["id"],zGt={class:"w-100"},UGt={key:0,class:"d-flex justify-content-center mt-3"},BGt=["id"],HGt={key:1,class:"d-flex justify-content-center my-3"},VGt={class:"medium fw-bold text-gray-600 text-center"},qGt={class:"w-70 break-word"},YGt=["innerHTML"],WGt=["src"],GGt=["src"],ZGt={class:"w-70 break-word"},KGt=["innerHTML"];function JGt(e,t,n,o,i,r){const s=y("NewMessagesChatLine");return h(),g("div",{class:"d-flex justify-content-center flex-wrap overflow-auto scrollbar-hidden",style:Bn(r.conversationContainerStyle),ref:r.customIdString,id:r.customIdString},[c("div",zGt,[r.fullMessages?(h(),g("div",UGt,[c("button",{id:"messages-load-all-button",class:"btn btn-sm btn-tertiary",onClick:t[0]||(t[0]=(...a)=>r.loadAll&&r.loadAll(...a))},m(e.$t("dashboard.user.messages.load_all")),1)])):D("",!0),(h(!0),g(pe,null,Me(n.messages,(a,l)=>(h(),g("div",{class:"mb-2",key:l,id:"message"+l},[r.isFirstNewMessage(l)?(h(),W(s,{key:0})):D("",!0),r.isDateShowed(l)?(h(),g("div",HGt,[c("span",VGt,m(r.localDate(a.created_at)),1)])):D("",!0),a.is_sender?(h(),g("div",{key:2,class:J(["message-sender-container d-flex",r.isExtraMarginTop(l)?"mt-4":""])},[c("div",qGt,[c("div",{class:J(["message-sender-body",{"message-new":r.isNewMessage(l)}]),innerHTML:a.body},null,10,YGt)]),c("img",{src:n.senderImagePath,alt:"User image",class:J(["chat-profile-image",r.isProfileImageShowed(l)?"visible":"invisible"])},null,10,WGt)],2)):(h(),g("div",{key:3,class:J(["message-receiver-container d-flex",r.isExtraMarginTop(l)?"mt-4":""])},[c("img",{src:n.receiverImagePath,alt:"User image",class:J(["chat-profile-image",r.isProfileImageShowed(l)?"visible":"invisible"])},null,10,GGt),c("div",ZGt,[c("div",{class:J(["message-receiver-body",{"message-new":r.isNewMessage(l)}]),innerHTML:a.body},null,10,KGt)])],2))],8,BGt))),128))])],12,FGt)}const jle=U(jGt,[["render",JGt],["__scopeId","data-v-dca99565"]]),XGt={props:{messageText:{type:String,default:""},lastMessageId:{type:Number,default:null}},methods:{sendMessage(){if(!this.messageText.length)return;let e={};this.lastMessageId?e={message:this.messageText,last_message_id:this.lastMessageId}:e={message:this.messageText},this.$store.dispatch("messages/sendMessage",{messageData:e}).then(()=>{this.$emit("messageSent")}).catch(()=>{})}}};function QGt(e,t,n,o,i,r){return h(),g("button",{class:"btn btn-primary",onClick:t[0]||(t[0]=(...s)=>r.sendMessage&&r.sendMessage(...s))},m(e.$t("dashboard.user.messages.send")),1)}const eZt=U(XGt,[["render",QGt]]),tZt={components:{SendMessageButton:eZt},props:{lastMessageId:{type:Number,default:null}},data(){return{messageText:"",editor:fu}},methods:{onMessageSent(){this.$refs.quill.setText("")}}},nZt={class:"quill-editor mb-4"},oZt={class:"w-100 d-flex justify-content-end"};function iZt(e,t,n,o,i,r){const s=y("quill-editor"),a=y("SendMessageButton");return h(),g("form",{onSubmit:t[1]||(t[1]=Gt(()=>{},["prevent"])),id:"chat-quill-elements"},[c("div",nZt,[b(s,{class:"mb-4",ref:"quill",contentType:"html",theme:"snow",content:i.messageText,"onUpdate:content":t[0]||(t[0]=l=>i.messageText=l),options:{...i.editor.chatToolbar},placeholder:e.$t("dashboard.user.messages.placeholder")},null,8,["content","options","placeholder"])]),c("div",oZt,[b(a,{"message-text":i.messageText,"last-message-id":n.lastMessageId,onMessageSent:r.onMessageSent},null,8,["message-text","last-message-id","onMessageSent"])])],32)}const rZt=U(tZt,[["render",iZt]]),sZt=""+new URL("no_messages-100b4efb.svg",import.meta.url).href,aZt={props:{sidebar:{type:Boolean,default(){return!1}},admin:{type:Boolean,default(){return!1}},height:{type:String,default(){return"600px"}},customId:{type:Number,default(){return 0}}},data(){return{noMessagesIcon:sZt}},computed:{conversationContainerStyle(){return"height:"+this.height+";"},customIdString(){return"conversation-container"+this.customId}}},lZt=["id"],cZt={class:"d-flex justify-content-center align-items-center flex-column py-5 text-center"},dZt=["src"],uZt={key:0,class:"medium"},hZt=["innerHTML"];function fZt(e,t,n,o,i,r){return h(),g("div",{class:"d-flex justify-content-center flex-wrap overflow-auto scrollbar-hidden",style:Bn(n.sidebar?r.conversationContainerStyle:""),ref:r.customIdString,id:r.customIdString},[c("div",cZt,[c("img",{src:i.noMessagesIcon,alt:"No messages image",width:"150",class:"mb-4"},null,8,dZt),n.admin?(h(),g("span",uZt,m(e.$t("messenger.empty")),1)):(h(),g("span",{key:1,class:"medium",innerHTML:e.$t("dashboard.user.messages.no_messages")},null,8,hZt))])],12,lZt)}const mZt=U(aZt,[["render",fZt]]),Fle=""+new URL("ucitelnice_chat_logo-ac9cc699.png",import.meta.url).href,pZt={components:{Loading:Rt,ChatHeader:OGt,MessageConversation:jle,SendMessageForm:rZt,NoMessages:mZt},props:{user:{type:Object,default(){return null}},messagesHeight:{type:String,default(){return"600px"}},customId:{type:Number,default(){return 0}},isSidebar:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor,ucitelniceLogo:Fle}},computed:{...Oe({messages:"messages/getMessages",loading:"messages/loading",messagesCount:"messages/getMessagesCount",newMessagesArrived:"messages/getNewMessages",auth:"auth/auth"}),lastMessageId(){return this.messages.length?this.messages[this.messages.length-1].id:null},anyMessages(){return this.messages.length>0}},methods:{load(e=!1){let t=e?{showAll:!0}:{};this.$store.dispatch("messages/load",t).then(()=>{this.$emit("loaded")})}},mounted(){this.user.id&&this.load()}},gZt={id:"chat-header",class:"p-3 ps-4 border-bottom shadow-high"},vZt={class:"p-4 pt-0 vl-parent",id:"conversation-container-outer"},_Zt={key:2,style:{"min-height":"600px"}};function yZt(e,t,n,o,i,r){const s=y("ChatHeader"),a=y("Loading"),l=y("MessageConversation"),d=y("NoMessages"),u=y("SendMessageForm");return h(),g("div",null,[c("div",gZt,[b(s,{"image-path":i.ucitelniceLogo},null,8,["image-path"])]),c("div",vZt,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=f=>e.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),r.anyMessages?(h(),W(l,{key:0,messages:e.messages,"sender-image-path":n.user.image_thumbnail,"receiver-image-path":i.ucitelniceLogo,height:n.messagesHeight,"messages-count":e.messagesCount,"new-messages":e.newMessagesArrived,"custom-id":n.customId,onShowAll:t[1]||(t[1]=f=>r.load(!0))},null,8,["messages","sender-image-path","receiver-image-path","height","messages-count","new-messages","custom-id"])):e.loading?(h(),g("div",_Zt)):(h(),W(d,{key:1,height:n.messagesHeight,"custom-id":n.customId,sidebar:n.isSidebar},null,8,["height","custom-id","sidebar"])),b(u,{class:"pt-4","last-message-id":r.lastMessageId},null,8,["last-message-id"])])])}const zle=U(pZt,[["render",yZt]]),bZt={components:{AppIcon:Ue},props:{link:{type:String,default:null}}},kZt=["href"];function wZt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("a",{href:n.link,target:"_blank",class:"text-gray-700 d-flex align-items-center"},[c("div",null,[b(s,{icon:"chevron-right",class:"text-primary me-2"})]),Pt(e.$slots,"default")],8,kZt)}const $Zt=U(bZt,[["render",wZt]]),CZt={components:{ChevronItem:$Zt},props:{routes:{type:Array,default:()=>[]},titles:{type:Array,default:()=>[]},fontSize:{type:String,default:"large"}}};function SZt(e,t,n,o,i,r){const s=y("ChevronItem");return h(),g("div",null,[(h(!0),g(pe,null,Me(n.titles,(a,l)=>(h(),W(s,{key:l,link:n.routes[l],class:J([n.fontSize,{"mb-3":l!=n.titles.length-1}])},{default:F(()=>[z(m(a),1)]),_:2},1032,["link","class"]))),128))])}const Ule=U(CZt,[["render",SZt]]),TZt={components:{ChevronList:Ule},props:{title:{type:String,default:null}},data(){return{routes:[ks.author.material.workFlow,ks.author.material.presentation,ks.author.material.images,ks.author.faq]}}},EZt={key:0,class:"mb-3 text-gray-600"};function IZt(e,t,n,o,i,r){const s=y("ChevronList");return h(),g("div",null,[n.title?(h(),g("p",EZt,m(n.title),1)):D("",!0),b(s,{routes:i.routes,titles:e.$t("dashboard.user.messages.faq.author")},null,8,["routes","titles"])])}const PZt=U(TZt,[["render",IZt]]),AZt={components:{ChevronList:Ule},props:{title:{type:String,default:null}},data(){return{routes:[this.ziggyRoute("user.be_author.index"),this.ziggyRoute("faq",{id:6}),this.ziggyRoute("faq",{id:7}),this.ziggyRoute("school.index")]}}},DZt={key:0,class:"mb-3 text-gray-600"};function xZt(e,t,n,o,i,r){const s=y("ChevronList");return h(),g("div",null,[n.title?(h(),g("p",DZt,m(n.title),1)):D("",!0),b(s,{routes:i.routes,titles:e.$t("dashboard.user.messages.faq.customer")},null,8,["routes","titles"])])}const OZt=U(AZt,[["render",xZt]]),LZt={components:{UserMessages:zle,AuthorFaqList:PZt,CustomerFaqList:OZt},props:{user:{type:Object,default(){return null}}},computed:{...Oe({auth:"auth/auth"})},data(){return{}}},MZt={class:"row"},NZt={class:"col-12 col-xl-9 pe-xl-3 vl-parent"},RZt={class:"col-12 col-xl-3 mt-xl-0 mt-5 ps-xl-3"},jZt={class:"content-box shadow p-4"};function FZt(e,t,n,o,i,r){const s=y("UserMessages"),a=y("AuthorFaqList"),l=y("CustomerFaqList");return h(),g("div",MZt,[c("div",NZt,[e.auth.is_admin?D("",!0):(h(),W(s,{key:0,user:n.user,"custom-id":2,class:"content-box shadow p-0 pt-2"},null,8,["user"]))]),c("div",RZt,[c("div",jZt,[n.user.is_author?(h(),W(a,{key:0,title:e.$t("dashboard.user.messages.faq.title")},null,8,["title"])):(h(),W(l,{key:1,title:e.$t("dashboard.user.messages.faq.title")},null,8,["title"]))])])])}const zY=U(LZt,[["render",FZt]]),zZt={computed:{...Oe("auth",{auth:"auth"})},methods:{toggle(){this.auth.is_admin?window.open(this.ziggyRoute("administration.messages","_blank")):this.$store.commit("sidebarChat/toggleChatOpen")}}};function UZt(e,t,n,o,i,r){return h(),g("span",{class:"cursor-pointer",onClick:t[0]||(t[0]=Gt((...s)=>r.toggle&&r.toggle(...s),["prevent"]))},[Pt(e.$slots,"default")])}const sM=U(zZt,[["render",UZt]]),BZt={components:{AppIcon:Ue}},HZt={class:"btn btn-sm btn-tertiary cursor-pointer"},VZt={class:"btn-center"};function qZt(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link");return h(),W(a,{to:{name:"user-dashboard/settings/invoice_info"}},{default:F(()=>[c("button",HZt,[c("div",VZt,[z(m(e.$t("dashboard.user.finances.update_invoice_info"))+" ",1),b(s,{icon:"edit",width:"20",height:"20",class:"ms-icon"})])])]),_:1})}const YZt=U(BZt,[["render",qZt]]),WZt={components:{EditInvoiceButton:YZt},props:{user:{type:Object,default(){return null}}}},GZt={class:"text-gray-600 mb-3"},ZZt={key:0,class:"medium"},KZt={key:0},JZt={key:1},XZt={key:2},QZt={key:1,class:"medium"},eKt={key:0},tKt={key:1},nKt={key:2},oKt={class:"d-flex justify-content-center"};function iKt(e,t,n,o,i,r){const s=y("EditInvoiceButton");return h(),g("div",null,[c("p",GZt,m(e.$t("dashboard.user.finances.invoice_info")),1),n.user.invoice_company?(h(),g("div",ZZt,[n.user.invoice_company?(h(),g("div",KZt,m(n.user.invoice_company),1)):D("",!0),n.user.invoice_address?(h(),g("div",JZt,m(n.user.invoice_address),1)):D("",!0),n.user.invoice_city?(h(),g("div",XZt,m(n.user.invoice_psc)+" "+m(n.user.invoice_city),1)):D("",!0)])):(h(),g("span",QZt,[n.user.first_name&&n.user.last_name?(h(),g("div",eKt,m(n.user.first_name+" "+n.user.last_name),1)):D("",!0),n.user.address?(h(),g("div",tKt,m(n.user.address),1)):D("",!0),n.user.city?(h(),g("div",nKt,m(n.user.psc)+" "+m(n.user.city),1)):D("",!0)])),t[0]||(t[0]=c("hr",{class:"my-3"},null,-1)),c("div",oKt,[b(s)])])}const rKt=U(WZt,[["render",iKt]]),sKt={components:{OpenSidebarChatLink:sM,TabList:qr,InvoiceInfo:rKt,CreditIncreaseLink:oM},props:{user:{type:Object,default(){return null}}},data(){return{routes:["user-dashboard/finances/documents","user-dashboard/finances/unfinished-orders","user-dashboard/finances/paid-orders","user-dashboard/finances/credit-orders"]}}},aKt={class:"row"},lKt={class:"col-12 col-lg-9 pe-lg-3"},cKt={class:"px-4 py-5 content-box shadow"},dKt={class:"mb-3"},uKt={class:"mb-5"},hKt={class:"text-decoration-underline"},fKt={class:"col-12 col-lg-3 mt-5 mt-lg-0 ps-lg-3"},mKt={class:"content-box shadow p-4 mb-5"};function pKt(e,t,n,o,i,r){const s=y("OpenSidebarChatLink"),a=y("TabList"),l=y("router-view"),d=y("InvoiceInfo"),u=y("CreditIncreaseLink");return h(),g("div",aKt,[c("div",lKt,[c("div",cKt,[c("h3",dKt,m(e.$t("dashboard.user.finances.title")),1),c("p",uKt,[z(m(e.$t("dashboard.user.finances.text"))+" ",1),b(s,null,{default:F(()=>[c("a",hKt,m(e.$t("public.write_us")),1)]),_:1})]),b(a,{class:"mb-4",routes:i.routes,titles:e.$tm("dashboard.user.finances.tabs")},null,8,["routes","titles"]),b(l,{user:n.user},null,8,["user"])])]),c("div",fKt,[c("div",mKt,[b(d,{user:n.user},null,8,["user"])]),b(u,{class:"w-100",type:"user-dashboard-user","button-style":"primary"})])])}const gKt=U(sKt,[["render",pKt]]),vKt={components:{AppIcon:Ue},props:{invoice:{type:Object,required:!0}},methods:{flashMessage(){window.flash(this.$t("invoices.pdf_missing"),"error")}},computed:{invoiceUrl(){return this.invoice?typeof this.invoice=="string"?this.invoice:this.invoice.pdf_url?this.invoice.pdf_url:this.invoice.invoice?this.invoice.invoice:null:null}}},_Kt=["href"];function yKt(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return r.invoiceUrl?xe((h(),g("a",{key:0,href:r.invoiceUrl,target:"_blank",class:"btn btn-center btn-tertiary btn-sm"},[z(m(n.invoice.number)+" ",1),b(s,{icon:"download",width:"20",height:"20",class:"ms-icon"})],8,_Kt)),[[a,{content:e.$t("download.download"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):(h(),g("button",{key:1,class:"btn btn-center btn-tertiary btn-sm",onClick:t[0]||(t[0]=(...l)=>r.flashMessage&&r.flashMessage(...l))},[z(m(n.invoice.number)+" ",1),b(s,{icon:"download",width:"20",height:"20",class:"ms-icon"})]))}const bKt=U(vKt,[["render",yKt]]),kKt={components:{InvoiceDownloadButton:bKt,FlexTableRow:ni,FlexTableHead:ti,AppIcon:Ue},props:{items:{type:Array,default(){return[]}},numberColumnTitle:{type:String,default(){return null}},invoiceColumnTitle:{type:String,default(){return null}}}},wKt={class:"col-3 d-none d-md-block"},$Kt={class:"col-4 d-none d-md-block"},CKt={class:"col-3 d-none d-md-block"},SKt={class:"col-2 d-none text-end d-md-block"},TKt={class:"col-12 d-block d-md-none"},EKt={class:"col-12 col-md-3 large medium-md"},IKt={class:"col-6 col-md-4 mt-3 mt-md-0"},PKt={class:"d-block d-md-none text-gray-600 medium"},AKt={key:0},DKt={key:1},xKt={class:"col-6 col-md-3"},OKt={class:"d-block d-md-none text-gray-600 medium"},LKt={class:"col-12 col-md-2 text-end"},MKt={class:"d-none d-md-flex justify-content-end"},NKt={class:"d-block d-md-none mt-3"},RKt=["href"];function jKt(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("InvoiceDownloadButton"),l=y("AppIcon"),d=y("FlexTableRow");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",wKt,m(n.numberColumnTitle?n.numberColumnTitle:e.$t("dashboard.user.finances.tables.invoice_number")),1),c("div",$Kt,m(e.$t("dashboard.user.finances.tables.date")),1),c("div",CKt,m(e.$t("dashboard.user.finances.tables.amount")),1),c("div",SKt,m(n.invoiceColumnTitle?n.invoiceColumnTitle:e.$t("dashboard.user.finances.tables.invoice")),1),c("div",TKt,m(e.$t("dashboard.user.finances.tables.invoice")),1)]),_:1}),(h(!0),g(pe,null,Me(n.items,(u,f)=>(h(),W(d,{key:u.number,class:J({"border-none":f==n.items.length-1})},{default:F(()=>[c("div",EKt,m(u.number),1),c("div",IKt,[c("div",PKt,m(e.$t("dashboard.user.finances.tables.date")),1),u.invoiced_at?(h(),g("div",AKt,m(u.invoiced_at),1)):u.created_at?(h(),g("div",DKt,m(u.created_at),1)):D("",!0)]),c("div",xKt,[c("div",OKt,m(e.$t("dashboard.user.finances.tables.amount")),1),z(" "+m(u.amount+" "+e.$t("currency.short")),1)]),c("div",LKt,[c("div",MKt,[b(a,{invoice:u},null,8,["invoice"])]),c("div",NKt,[c("a",{class:"btn btn-center btn-secondary w-100",href:u.invoice,target:"_blank"},[z(m(e.$t("download.download"))+" ",1),b(l,{icon:"download",width:"20",height:"20",class:"ms-icon"})],8,RKt)])])]),_:2},1032,["class"]))),128))])}const R6=U(kKt,[["render",jKt]]),FKt={components:{AppIcon:Ue},props:{minDate:String},data(){return{showDate:mt().toDate()}},mounted(){this.showDate.getDay()===0&&(this.showDate=mt(this.showDate).subtract("1","days").toDate())},methods:{addYear(){this.isForwardDisabled||(this.showDate=mt(this.showDate).add("1","year").toDate())},subYear(){this.isBackwardDisabled||(this.showDate=mt(this.showDate).subtract("1","year").toDate())}},watch:{showDate(){this.$emit("change-year",this.showDateString.year)}},computed:{showDateString:{get(){return{year:new Date(this.showDate).getFullYear()}}},minDateMoment(){return this.minDate?mt(this.minDate):mt()},isForwardDisabled(){return mt(this.showDate).add(1,"year").isAfter(mt(),"year")},isBackwardDisabled(){return mt(this.showDate).subtract(1,"year").isBefore(this.minDateMoment,"year")}}},zKt={class:"d-flex justify-content-between"},UKt={key:0,class:"text-gray-600",style:{"pointer-events":"none"}},BKt={class:"text-primary fw-bold"},HKt={key:2,class:"text-gray-600",style:{"pointer-events":"none"}};function VKt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",zKt,[r.isBackwardDisabled?(h(),g("a",UKt,[b(s,{icon:"arrow-left",height:"20",width:"20"})])):(h(),g("a",{key:1,href:"",onClick:t[0]||(t[0]=Gt((...a)=>r.subYear&&r.subYear(...a),["prevent"])),class:"text-primary"},[b(s,{icon:"arrow-left",class:"text-primary",height:"20",width:"20"})])),c("h5",BKt,m(e.$t("school.manager.tabs.finances.invoices.table.year"))+" "+m(r.showDateString.year),1),r.isForwardDisabled?(h(),g("a",HKt,[b(s,{icon:"arrow-right",height:"20",width:"20"})])):(h(),g("a",{key:3,href:"",onClick:t[1]||(t[1]=Gt((...a)=>r.addYear&&r.addYear(...a),["prevent"])),class:"text-primary"},[b(s,{icon:"arrow-right",height:"20",width:"20"})]))])}const qKt=U(FKt,[["render",VKt]]),YKt={components:{UserDashboardFinancesYearHeader:qKt,Loading:Rt,UserDashboardInvoiceTable:R6},props:{user:{type:Object,default(){return null}}},data(){return{primaryColor:window.primaryColor,showYear:new Date().getFullYear()}},computed:{...Oe({invoices:"invoice/getInvoices",loading:"invoice/isLoading",firstEverInvoiceDate:"invoice/getFirstEverInvoiceDate"})},methods:{changeYear(e){this.showYear=e},load(e){this.$store.dispatch("invoice/loadYear",{year:e})}},mounted(){this.user.id&&this.load(this.showYear)},watch:{showYear(e){this.load(e)}}},WKt={class:"vl-parent"},GKt={key:0},ZKt={key:0,class:"d-flex justify-content-center align-items-center",style:{"min-height":"200px"}},KKt={key:1,class:"mt-3"},JKt={key:1,style:{"min-height":"200px"}};function XKt(e,t,n,o,i,r){const s=y("UserDashboardFinancesYearHeader"),a=y("UserDashboardInvoiceTable"),l=y("Loading");return h(),g("div",WKt,[b(s,{class:"mt-4","min-date":e.firstEverInvoiceDate,onChangeYear:r.changeYear},null,8,["min-date","onChangeYear"]),e.loading?(h(),g("div",JKt,[b(l,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):(h(),g("div",GKt,[e.invoices.length<1?(h(),g("div",ZKt,m(e.$t("dashboard.user.finances.tables.no_documents")),1)):(h(),g("div",KKt,[b(a,{items:e.invoices},null,8,["items"])]))]))])}const QKt=U(YKt,[["render",XKt]]),eJt=()=>De.get(Pe("user.dashboard.api.finances.paid.orders")),tJt=()=>De.get(Pe("user.dashboard.api.finances.unfinished.orders")),nJt=(e,t=null)=>De.post(Pe("api.order.place"),{instrument:e,swift:t}),oJt=e=>De.post(Pe("api.order.expedited.place"),{product:e}),iJt=e=>De.post(Pe("api.order.expedited.rollback"),{product:e}),rJt=(e,t,n=null,o=null)=>De.post(Pe("api.credit.place"),{amount:e,instrument:t,swift:n,code:o}),sy={paidIndex:eJt,unfinishedIndex:tJt,place:nJt,placeExpedited:oJt,rollbackExpedited:iJt,credit:rJt},sJt={components:{Loading:Rt,UserDashboardInvoiceTable:R6},props:{user:{type:Object,default(){return null}}},data(){return{primaryColor:window.primaryColor,unfinishedOrders:[],loading:!1}},methods:{load(){this.loading=!0,sy.unfinishedIndex().then(e=>{this.unfinishedOrders=e.data.data,this.loading=!1}).catch(e=>{window.flash(e,"error"),this.loading=!1})}},mounted(){this.user.id&&this.load()}},aJt={class:"vl-parent"},lJt={key:0},cJt={key:0,class:"d-flex justify-content-center align-items-center",style:{"min-height":"200px"}},dJt={key:1},uJt={key:1,style:{"min-height":"200px"}};function hJt(e,t,n,o,i,r){const s=y("UserDashboardInvoiceTable"),a=y("Loading");return h(),g("div",aJt,[i.loading?(h(),g("div",uJt,[b(a,{active:i.loading,"onUpdate:active":t[0]||(t[0]=l=>i.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):(h(),g("div",lJt,[i.unfinishedOrders.length<1?(h(),g("div",cJt,m(e.$t("dashboard.user.finances.tables.no_unfinished_orders")),1)):(h(),g("div",dJt,[b(s,{items:i.unfinishedOrders,"invoice-column-title":e.$t("dashboard.user.finances.tables.proforma_invoice"),"number-column-title":e.$t("dashboard.user.finances.tables.order_number")},null,8,["items","invoice-column-title","number-column-title"])]))]))])}const fJt=U(sJt,[["render",hJt]]),mJt={components:{Loading:Rt,UserDashboardInvoiceTable:R6},props:{user:{type:Object,default(){return null}}},data(){return{primaryColor:window.primaryColor,paidOrders:[],loading:!1}},methods:{load(){this.loading=!0,sy.paidIndex().then(e=>{this.loading=!1,this.paidOrders=e.data.data}).catch(e=>{window.flash(e,"error"),this.loading=!1})}},mounted(){this.user.id&&this.load()}},pJt={class:"vl-parent"},gJt={key:0},vJt={key:0,class:"d-flex justify-content-center align-items-center",style:{"min-height":"200px"}},_Jt={key:1},yJt={key:1,style:{"min-height":"200px"}};function bJt(e,t,n,o,i,r){const s=y("UserDashboardInvoiceTable"),a=y("Loading");return h(),g("div",pJt,[i.loading?(h(),g("div",yJt,[b(a,{active:i.loading,"onUpdate:active":t[0]||(t[0]=l=>i.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):(h(),g("div",gJt,[i.paidOrders.length<1?(h(),g("div",vJt,m(e.$t("dashboard.user.finances.tables.no_paid_orders")),1)):(h(),g("div",_Jt,[b(s,{items:i.paidOrders,"invoice-column-title":e.$t("dashboard.user.finances.tables.proforma_invoice"),"number-column-title":e.$t("dashboard.user.finances.tables.order_number")},null,8,["items","invoice-column-title","number-column-title"])]))]))])}const kJt=U(mJt,[["render",bJt]]),wJt={components:{Loading:Rt,UserDashboardInvoiceTable:R6},props:{user:{type:Object,default(){return null}}},data(){return{primaryColor:window.primaryColor,creditOrders:[],loading:!1}},methods:{load(){this.loading=!0,Md.creditOrderIndex().then(e=>{this.loading=!1,this.creditOrders=e.data.data}).catch(e=>{window.flash(e,"error"),this.loading=!1})}},mounted(){this.user.id&&this.load()}},$Jt={class:"vl-parent"},CJt={key:0},SJt={key:0,class:"d-flex justify-content-center align-items-center",style:{"min-height":"200px"}},TJt={key:1},EJt={key:1,style:{"min-height":"200px"}};function IJt(e,t,n,o,i,r){const s=y("UserDashboardInvoiceTable"),a=y("Loading");return h(),g("div",$Jt,[i.loading?(h(),g("div",EJt,[b(a,{active:i.loading,"onUpdate:active":t[0]||(t[0]=l=>i.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):(h(),g("div",CJt,[i.creditOrders.length<1?(h(),g("div",SJt,m(e.$t("dashboard.user.finances.tables.no_credit_orders")),1)):(h(),g("div",TJt,[b(s,{items:i.creditOrders},null,8,["items"])]))]))])}const PJt=U(wJt,[["render",IJt]]),AJt={components:{AppIcon:Ue},props:{user:{type:Object,default(){return null}}},computed:{hasSchool(){return this.user.school!==null}}},DJt={class:"row"},xJt={class:"col-12 col-md-3 col-lg-2"},OJt={class:"content-box shadow medium p-0 py-2"},LJt={id:"tabs",class:"tabs"},MJt={class:"tabList-vertical"},NJt=["onClick"],RJt=["onClick"],jJt=["onClick"],FJt=["onClick"],zJt={class:"col-12 col-md-9 col-lg-10 ps-md-3 mt-md-0 mt-5"},UJt={class:"content-box shadow px-4 py-5"};function BJt(e,t,n,o,i,r){const s=y("router-link"),a=y("AppIcon"),l=y("router-view"),d=an("tooltip");return h(),g("div",DJt,[c("div",xJt,[c("div",OJt,[c("div",LJt,[c("ul",MJt,[b(s,{to:{name:"user-dashboard/settings/profile"},custom:""},{default:F(({isActive:u,navigate:f})=>[c("li",{onClick:f,class:J([u&&"active"])},m(e.$t("dashboard.user.settings.tabs.1")),11,NJt)]),_:1}),b(s,{to:{name:"user-dashboard/settings/password"},custom:""},{default:F(({isActive:u,navigate:f})=>[c("li",{onClick:f,class:J([u&&"active"])},m(e.$t("dashboard.user.settings.tabs.2")),11,RJt)]),_:1}),b(s,{to:{name:"user-dashboard/settings/invoice_info"},custom:""},{default:F(({isActive:u,navigate:f})=>[c("li",{onClick:f,class:J([u&&"active"])},m(e.$t("dashboard.user.settings.tabs.4")),11,jJt)]),_:1}),b(s,{to:{name:"user-dashboard/settings/school"},custom:""},{default:F(({isActive:u,navigate:f})=>[r.hasSchool?(h(),g("li",{key:0,onClick:f,class:J([u&&"active"])},m(e.$t("dashboard.user.settings.tabs.5")),11,FJt)):xe((h(),g("li",{key:1,class:J(["locked",[u&&"active"]])},[z(m(e.$t("dashboard.user.settings.tabs.5"))+" ",1),b(a,{icon:"lock",width:"20",height:"20",class:"ms-icon"})],2)),[[d,{content:e.$t("user.no_school"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),_:1})])])])]),c("div",zJt,[c("div",UJt,[b(l,{user:n.user},null,8,["user"])])])])}const HJt=U(AJt,[["render",BJt]]);let VJt=0;const qJt={props:{options:{type:Array,default:()=>[]},labels:{type:Array,default:()=>[]},itemMb:{type:Number,default:0},disabled:{type:Array,default:()=>[]},checked:{type:Array,default:()=>[]}},data(){return{uid:++VJt}},methods:{check(e){let t=this.checked;if(t.includes(e)){const n=t.indexOf(e);t.splice(n,1)}else t.push(e);this.$emit("update:checked",t),this.$emit("updated")},getChecked(e){return this.checked.find(t=>t===e)!==void 0}}},YJt=["for"],WJt=["id","checked","disabled","onInput"],GJt={class:"ms-2"};function ZJt(e,t,n,o,i,r){return h(),g("div",null,[(h(!0),g(pe,null,Me(n.options,(s,a)=>(h(),g("label",{key:i.uid+a,for:"check"+i.uid+a,class:J(["d-flex align-items-center",["mb-"+String(n.itemMb),n.disabled&&n.disabled[a]?"text-gray-600":"cursor-pointer"]])},[c("input",{type:"checkbox",id:"check"+i.uid+a,checked:r.getChecked(s),disabled:n.disabled&&n.disabled[a],onInput:l=>r.check(s,l.target.checked),class:J({"cursor-pointer":!(n.disabled&&n.disabled[a])})},null,42,WJt),c("span",GJt,m(n.labels[a]),1)],10,YJt))),128))])}const aM=U(qJt,[["render",ZJt]]),KJt={components:{CheckList:aM},data(){return{preferenceClassNull:{id:null,name:this.$t("user.editor.preferences.undefined")}}},computed:{...Oe({categories:"category/getCategories"}),classes(){let e=window._.cloneDeep(this.categories.class.filter(t=>!t.hidden_in_navigation));return e.unshift(this.preferenceClassNull),e},preferencesClass:{get(){return this.$store.getters["user/getPreferencesIdsClass"]},set(e){this.$store.commit("user/setPreferencesIdsClass",e)}},classSelected:{get(){let e=this.classes.find(t=>this.preferencesClass.includes(t.id));return e||(this.preferencesClass.length?this.classes.find(t=>t.children&&t.children.map(n=>n.id).includes(this.preferencesClass[0])):this.preferenceClassNull)},set(e){this.$store.commit("user/setPreferencesIdsClass",[e.id]),this.$store.commit("user/setPreferencesIdsSubject",[])}},subclassesChecked:{get(){let e=this.classSelected.children.filter(t=>this.preferencesClass.includes(t.id)).map(t=>t.id);return e.length?e:this.classSelected.children.map(t=>t.id)},set(e){this.$store.commit("user/setPreferencesIdsClass",e.length?e:[this.classSelected.id])}}},mounted(){this.$store.dispatch("category/load")}},JJt={class:"row"},XJt={class:"col-12 col-md-6 col-lg-3"},QJt={class:"d-flex align-items-center cursor-pointer"},eXt=["id","value"],tXt={class:"col-12 col-md-6 col-lg-3"};function nXt(e,t,n,o,i,r){const s=y("CheckList");return h(),g("div",JJt,[c("div",XJt,[(h(!0),g(pe,null,Me(r.classes,(a,l)=>(h(),g("div",{class:"mb-none-last mb-3",key:l},[c("label",QJt,[xe(c("input",{type:"radio",id:a.id,value:a,"onUpdate:modelValue":t[0]||(t[0]=d=>r.classSelected=d),class:"me-2"},null,8,eXt),[[Df,r.classSelected]]),z(" "+m(a.name),1)])]))),128))]),c("div",tXt,[this.classSelected&&this.classSelected.children?(h(),W(s,{key:0,options:this.classSelected.children.map(a=>a.id),labels:this.classSelected.children.map(a=>a.name),checked:r.subclassesChecked,"onUpdate:checked":t[1]||(t[1]=a=>r.subclassesChecked=a),"checked-all":""},null,8,["options","labels","checked"])):D("",!0)])])}const oXt=U(KJt,[["render",nXt]]),g8=null,iXt={components:{AppIcon:Ue},props:{id:Number},data(){return{error:""}},computed:{...Oe({categories:"category/getCategories",categoriesFlat:"category/getCategoriesFlat",classSubjectsFlat:"category/getCategoriesClassSubjectFlat",classSubjectsFlatLoading:"category/loadingClassSubjectFlat"}),preferencesClass:{get(){return this.$store.getters["user/getPreferencesIdsClass"]},set(e){this.$store.commit("user/setPreferencesIdsClass",e)}},preferencesSubject:{get(){return this.$store.getters["user/getPreferencesIdsSubject"]},set(e){this.$store.commit("user/setPreferencesIdsSubject",e)}}},methods:{subjects(e){let t=[];if(!this.preferencesClass.length||this.preferencesClass[0]==null)t=window._.cloneDeep(this.categoriesFlat.subject);else if(!this.classSubjectsFlatLoading){let n=this.preferencesClass[0],o=this.classSubjectsFlat.find(i=>i.id==n||i.category_children.map(r=>r.id).includes(n));t=window._.cloneDeep(o.children),t=t.filter(i=>!this.preferencesSubject.includes(i.id)&&!this.preferencesSubject.includes(i.parent_id)||i.id==e)}return t},add(){this.preferencesSubject.length>0?this.preferencesSubject[this.preferencesSubject.length-1]==g8?this.error=this.$t("user.editor.preferences.previous_empty_error"):this.preferencesSubject.push(g8):this.preferencesSubject.push(g8)},valueSelected(){this.error=""},getOptionLabel(e){return e&&e.name||""},remove(e){this.preferencesSubject.length>1?(this.error="",this.preferencesSubject.splice(e,1)):this.preferencesSubject=[null]}},created(){this.$store.dispatch("category/load"),this.$store.dispatch("category/loadFlatTree"),this.$store.dispatch("category/loadClassSubjectFlat")},watch:{preferencesSubject(e){e.length?this.categories.subject.filter(n=>n.children.length).forEach(n=>{let o=n.children.map(i=>i.id);o.every(i=>e.includes(i))&&(this.preferencesSubject=e.filter(i=>!o.includes(i)),this.preferencesSubject.push(n.id))}):this.preferencesSubject=[g8]}}},rXt={class:"col-12 col-lg-4"},sXt={class:"form-group form-floating"},aXt={key:0,class:"fw-bold"},lXt={key:1},cXt={key:2},dXt={class:"col-12 col-lg-1 d-flex align-items-center justify-content-center mt-3 mt-lg-0 ps-lg-0"},uXt=["onClick"],hXt=["onClick"],fXt={class:"text-danger"};function mXt(e,t,n,o,i,r){const s=y("v-select"),a=y("AppIcon"),l=an("tooltip");return h(),g("div",null,[(h(!0),g(pe,null,Me(r.preferencesSubject,(d,u)=>(h(),g("div",{key:u,class:"row mb-4 mb-lg-3"},[c("div",rXt,[c("div",sXt,[b(s,{id:"subject",label:"name",class:"form-control",modelValue:r.preferencesSubject[u],"onUpdate:modelValue":f=>r.preferencesSubject[u]=f,options:r.subjects(d),reduce:f=>f.id,placeholder:e.$t("user.editor.preferences.subject.placeholder"),"close-on-select":!0},{"no-options":F(()=>[z(m(e.$t("user.editor.preferences.subject.empty")),1)]),option:F(f=>[f.children&&f.children.length>0?(h(),g("span",aXt,m(f.name),1)):f.parent_id!==0?(h(),g("span",lXt,m("- "+f.name),1)):(h(),g("span",cXt,m(f.name),1))]),_:2},1032,["modelValue","onUpdate:modelValue","options","reduce","placeholder"]),c("label",null,m(e.$t("user.editor.preferences.subject.label")),1)])]),c("div",dXt,[xe((h(),g("button",{class:"btn btn-center btn-danger btn-tertiary btn-sm d-none d-lg-block",onClick:f=>r.remove(u)},[b(a,{icon:"delete",width:"20",height:"20"})],8,uXt)),[[l,{content:e.$t("user.editor.preferences.subject.remove"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),c("button",{class:"btn btn-center btn-danger btn-secondary w-100 d-block d-lg-none",onClick:f=>r.remove(u)},[z(m(e.$t("user.editor.preferences.subject.remove"))+" ",1),b(a,{icon:"delete",width:"20",height:"20",class:"ms-icon"})],8,hXt)])]))),128)),c("button",{onClick:t[0]||(t[0]=Gt(d=>r.add(),["prevent"])),class:"btn btn-center btn-sm btn-tertiary"},[z(m(e.$t("user.editor.preferences.subject.add"))+" ",1),b(a,{icon:"plus-circle",width:"20",height:"20",class:"ms-icon"})]),c("span",fXt,m(i.error),1)])}const pXt=U(iXt,[["render",mXt]]),gXt=e=>e.replace(`/[ \rs]+/`," ").trim().split(" ").length>1,vXt={components:{PreferenceClassPicker:oXt,PreferenceSubjectPicker:pXt,Loading:Rt},props:{user:{type:Object,default(){return null}}},data(){return{primaryColor:window.primaryColor,loading:!1,name_surname:"",error_message:{name:null},pickedClasses:[]}},computed:{...Oe({auth:"auth/auth",preferenceloading:"user/preferencesLoading"}),isLoading(){return this.loading||this.preferenceloading}},methods:{update(){if(this.v$.$touch(),this.validationStatus=!this.v$.$invalid,!this.validationStatus)return;this.resetError();let e={name:this.name_surname};this.loading=!0,Md.profileUpdate(e).then(t=>{this.loading=!1,window.flash(t.data.message,"success"),window.eventBus.emit("rerender-user-dashboard-header")}).catch(t=>{var n,o,i,r;this.loading=!1,(o=(n=t==null?void 0:t.response)==null?void 0:n.data)!=null&&o.errors?Object.entries(t.response.data.errors).forEach(([a,l])=>{l.forEach(d=>{window.flash(d,"error")}),a==="name"&&(this.error_message.name=l[0])}):(r=(i=t==null?void 0:t.response)==null?void 0:i.data)!=null&&r.message&&window.flash(t.response.data.message,"error")}),this.$store.dispatch("user/updatePreferences",{userId:this.auth.id})},resetError(){this.error_message={name:null}}},validations:{name_surname:{required:Yt,atleast2Words:gXt}},mounted(){this.name_surname=this.user.first_name+" "+this.user.last_name},watch:{name_surname(){this.error_message.name=null}},setup(){return{v$:Pn()}}},_Xt={class:"row vl-parent"},yXt={class:"mb-4"},bXt={class:"col-12"},kXt={class:"col-12 col-md-6 col-lg-4"},wXt={class:"form-group form-floating"},$Xt=["placeholder"],CXt={for:"name_surname",class:"form-label"},SXt={key:0,class:"invalid-feedback"},TXt={key:1,class:"invalid-feedback"},EXt={key:2,class:"invalid-feedback"},IXt={class:"col-12 col-md-6 col-lg-4 mt-4 mt-md-0"},PXt={class:"form-group form-floating"},AXt=["placeholder","value"],DXt={for:"profile-email",class:"form-label"},xXt={class:"col-12"},OXt={class:"mb-4"},LXt={class:"mb-4"},MXt={class:"mb-3"},NXt={class:"mb-3"},RXt={class:"col-12"};function jXt(e,t,n,o,i,r){const s=y("Loading"),a=y("PreferenceClassPicker"),l=y("PreferenceSubjectPicker"),d=an("tooltip");return h(),g("div",_Xt,[b(s,{active:r.isLoading,"onUpdate:active":t[0]||(t[0]=u=>r.isLoading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("h3",yXt,m(e.$t("dashboard.user.settings.profile.title")),1),c("div",bXt,[c("form",{onSubmit:t[2]||(t[2]=Gt(()=>{},["prevent"])),class:"row"},[c("div",kXt,[c("div",wXt,[xe(c("input",{id:"name_surname",name:"name_surname",type:"text",class:J({"form-control":!0,"is-invalid":o.v$.name_surname.$error||i.error_message.name}),placeholder:e.$t("dashboard.user.settings.profile.name_surname_placeholder"),"onUpdate:modelValue":t[1]||(t[1]=u=>o.v$.name_surname.$model=u)},null,10,$Xt),[[wt,o.v$.name_surname.$model]]),c("label",CXt,m(e.$t("dashboard.user.settings.profile.name_surname_label")),1),o.v$.name_surname.$error&&o.v$.name_surname.required.$invalid?(h(),g("span",SXt,m(e.$t("validation.custom.full_name.required")),1)):D("",!0),o.v$.name_surname.$error&&o.v$.name_surname.atleast2Words.$invalid?(h(),g("span",TXt,m(e.$t("validation.custom.full_name.atleast_two_words")),1)):D("",!0),i.error_message.name?(h(),g("span",EXt,m(i.error_message.name),1)):D("",!0)])]),c("div",IXt,[xe((h(),g("div",PXt,[c("input",{id:"profile-email",name:"email",type:"text",class:J({"form-control":!0}),placeholder:e.$t("dashboard.user.settings.profile.email_placeholder"),value:n.user.email,disabled:""},null,8,AXt),c("label",DXt,m(e.$t("dashboard.user.settings.profile.email_label")),1)])),[[d,{content:e.$t("dashboard.user.settings.profile.email_tooltip"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])],32)]),c("div",xXt,[t[5]||(t[5]=c("hr",null,null,-1)),c("h3",OXt,m(e.$t("user.editor.preferences.headline")),1),c("p",LXt,m(e.$t("user.editor.preferences.text")),1),c("h4",MXt,m(e.$t("user.editor.preferences.class.headline")),1),b(a,{class:"mb-5",picked:i.pickedClasses,"onUpdate:picked":t[3]||(t[3]=u=>i.pickedClasses=u)},null,8,["picked"]),c("h4",NXt,m(e.$t("user.editor.preferences.subject.headline")),1),b(l)]),c("div",RXt,[t[6]||(t[6]=c("hr",null,null,-1)),c("button",{class:"btn btn-primary",onClick:t[4]||(t[4]=Gt((...u)=>r.update&&r.update(...u),["prevent"]))},m(e.$t("dashboard.user.settings.profile.save")),1)])])}const FXt=U(vXt,[["render",jXt]]),ch={validation:{password:{min_length:8}},max_file_size:{1:"95MB",2:"50MB",3:"20MB"},max_file_size_admin:"95MB"},zXt={props:{requiredLength:{type:Number,default:()=>null},placeholder:{type:String,default:()=>null},value:{type:String,default:()=>""},invalid:{type:Boolean,default:()=>!1},invalidMessage:{type:String,default:()=>null},tabIndex:{type:Number,default:()=>null},autocomplete:{type:String,default:()=>"password"}},data(){return{showPassword:!1}},computed:{valueModel:{get(){return this.value},set(e){this.$emit("update:value",e)}}},methods:{toggleShowPassword(){this.showPassword=!this.showPassword}}},UXt={class:"position-relative d-flex align-items-center"},BXt=["tabindex","type","placeholder","autocomplete"],HXt={class:"position-absolute end-0"},VXt={key:0,class:"invalid-feedback-custom"};function qXt(e,t,n,o,i,r){const s=y("app-icon"),a=an("tooltip");return h(),g("div",null,[c("div",UXt,[xe(c("input",{tabindex:n.tabIndex,type:i.showPassword?"text":"password","onUpdate:modelValue":t[0]||(t[0]=l=>r.valueModel=l),placeholder:n.placeholder?n.placeholder:e.$t("login.form.password.label"),class:J(["form-control rounded ps-3 pe-6 py-2",{"border-danger":n.invalid}]),autocomplete:n.autocomplete},null,10,BXt),[[f3,r.valueModel]]),c("div",HXt,[c("button",{class:"btn btn-center border-none px-3 py-2",type:"button",onClick:t[1]||(t[1]=(...l)=>r.toggleShowPassword&&r.toggleShowPassword(...l))},[i.showPassword?xe((h(),W(s,{key:0,icon:"hide",width:"24",height:"24",class:"border-none text-gray-600"},null,512)),[[a,{content:e.$t("public.password_hide"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):xe((h(),W(s,{key:1,icon:"show",width:"24",height:"24",class:"border-none text-gray-600"},null,512)),[[a,{content:e.$t("public.password_show"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])])]),n.invalid&&n.invalidMessage?(h(),g("span",VXt,m(n.invalidMessage),1)):D("",!0)])}const ok=U(zXt,[["render",qXt]]),YXt={components:{Loading:Rt,InputPassword:ok},data(){return{primaryColor:window.primaryColor,password:"",passwordMinLength:ch.validation.password.min_length,error_message:{password:null},loading:!1}},validations:{password:{required:Yt,minLength:Ua(ch.validation.password.min_length)}},computed:{passwordInvalidMessage(){return this.v$.password.$error&&this.v$.password.required.$invalid?this.$t("validation.custom.password.required"):this.v$.password.$error&&this.v$.password.minLength.$invalid?this.$t("validation.min.string",{attribute:this.$t("register.form.password.label"),min:this.passwordMinLength}):this.error_message.password?this.error_message.password:null}},methods:{changePassword(){if(this.v$.$touch(),this.validationStatus=!this.v$.$invalid,!this.validationStatus)return;this.resetError();let e={password:this.password};this.loading=!0,Md.passwordUpdate(e).then(t=>{this.loading=!1,window.eventBus.emit("rerender-user-dashboard-header"),window.flash(t.data.message,"success")}).catch(t=>{var n,o,i,r;this.loading=!1,(o=(n=t==null?void 0:t.response)==null?void 0:n.data)!=null&&o.errors?Object.entries(t.response.data.errors).forEach(([a,l])=>{l.forEach(d=>{window.flash(d,"error")}),a==="password"&&(this.error_message.password=l[0])}):(r=(i=t==null?void 0:t.response)==null?void 0:i.data)!=null&&r.message&&window.flash(t.response.data.message,"error")})},resetError(){this.error_message={password:null}}},watch:{password(){this.v$.$touch(),this.error_message={password:null}}},setup(){return{v$:Pn()}}},WXt={class:"row vl-parent"},GXt={class:"mb-3"},ZXt={class:"mb-5"},KXt={class:"col-12 col-md-6 col-lg-4 password-group"},JXt={class:"form-group"},XXt={class:"col-12"};function QXt(e,t,n,o,i,r){const s=y("Loading"),a=y("InputPassword");return h(),g("div",WXt,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=l=>i.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("h3",GXt,m(e.$t("dashboard.user.settings.password.title")),1),c("p",ZXt,m(e.$t("dashboard.user.settings.password.text")),1),c("div",KXt,[c("form",{onSubmit:t[2]||(t[2]=Gt(()=>{},["prevent"]))},[c("div",JXt,[b(a,{value:i.password,"onUpdate:value":t[1]||(t[1]=l=>i.password=l),placeholder:e.$t("dashboard.user.settings.password.new_password_placeholder"),invalid:o.v$.password.$error||i.error_message.password,"invalid-message":r.passwordInvalidMessage},null,8,["value","placeholder","invalid","invalid-message"])])],32)]),c("div",XXt,[t[4]||(t[4]=c("hr",null,null,-1)),c("button",{class:"btn btn-primary",onClick:t[3]||(t[3]=Gt((...l)=>r.changePassword&&r.changePassword(...l),["prevent"]))},m(e.$t("dashboard.user.settings.password.save")),1)])])}const eQt=U(YXt,[["render",QXt]]),tQt={components:{AppIcon:Ue},data(){return{pointing_fingers:Use}}},nQt={class:"text-center"},oQt=["src"],iQt={class:"mb-2"},rQt={class:"medium text-gray-600 mb-2"},sQt={class:"d-flex justify-content-center"},aQt=["href"];function lQt(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",nQt,[c("img",{class:"mb-2",src:i.pointing_fingers,height:"101"},null,8,oQt),c("div",iQt,m(e.$t("dashboard.user.settings.invoice_info.school_ad.title")),1),c("div",rQt,m(e.$t("dashboard.user.settings.invoice_info.school_ad.text")),1),c("div",sQt,[c("a",{href:e.ziggyRoute("school.index"),class:"btn btn-tertiary btn-center"},[z(m(e.$t("dashboard.user.settings.invoice_info.school_ad.button"))+" ",1),b(s,{icon:"arrow-right",width:"20",height:"20",class:"ms-icon"})],8,aQt)])])}const cQt=U(tQt,[["render",lQt]]),dQt=e=>De.post(Pe("guest.invoice_data.update"),e),uQt={updateInvoiceData:dQt},hQt={props:{loading:{type:Boolean,default:!1},invoiceData:{type:Object,default(){return{first_name:null,last_name:null,invoice_company:null,invoice_ico:null,invoice_dic:null,invoice_address:null,invoice_city:null,invoice_psc:null}}}},data(){return{error_message:{first_name:null,last_name:null,invoice_company:null,invoice_ico:null,invoice_dic:null,invoice_address:null,invoice_city:null,invoice_psc:null}}},computed:{...Oe({auth:"auth/auth"}),invoiceDataModel:{get(){return this.invoiceData},set(e){this.$emit("update:invoiceData",e)}}},methods:{update(){if(this.v$.$touch(),this.validationStatus=!this.v$.$invalid,!this.validationStatus)return;this.resetError();let e={...this.invoiceData};return this.$emit("update:loading",!0),new Promise((t,n)=>{(this.auth.check?Md.invoiceInfoUpdate:uQt.updateInvoiceData)(e).then(i=>{this.$emit("update:loading",!1),window.flash(i.data.message,"success"),window.eventBus.emit("rerender-user-dashboard-header"),t()}).catch(i=>{var r,s,a,l;this.$emit("update:loading",!1),(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.errors?Object.entries(i.response.data.errors).forEach(([u,f])=>{f.forEach(p=>{window.flash(p,"error")}),u==="invoice_ico"&&(this.error_message.invoice_ico=f[0])}):(l=(a=i==null?void 0:i.response)==null?void 0:a.data)!=null&&l.message&&window.flash(i.response.data.message,"error"),n()})})},resetError(){this.error_message={first_name:null,last_name:null,invoice_company:null,invoice_ico:null,invoice_dic:null,invoice_address:null,invoice_city:null,invoice_psc:null}}},validations(){return{invoiceData:this.auth.check?{first_name:{required:Yt},last_name:{required:Yt},invoice_company:{},invoice_ico:{minLength:Ua(8),maxLength:hi(8),numeric:DP},invoice_dic:{},invoice_address:{},invoice_city:{},invoice_psc:{}}:{first_name:{},last_name:{},invoice_company:{},invoice_ico:{minLength:Ua(8),maxLength:hi(8),numeric:DP},invoice_dic:{},invoice_address:{},invoice_city:{},invoice_psc:{}}}},watch:{"invoiceData.invoice_ico"(){this.error_message.invoice_ico=null}},setup(){return{v$:Pn()}}},fQt={class:"col-12 col-md-6 mb-4"},mQt={class:"form-group form-floating"},pQt=["placeholder"],gQt={for:"first_name",class:"form-label"},vQt={key:0,class:"invalid-feedback"},_Qt={key:1,class:"invalid-feedback"},yQt={class:"col-12 col-md-6 mb-4"},bQt={class:"form-group form-floating"},kQt=["placeholder"],wQt={for:"last_name",class:"form-label"},$Qt={key:0,class:"invalid-feedback"},CQt={key:1,class:"invalid-feedback"},SQt={class:"col-12 mb-4"},TQt={class:"form-group form-floating"},EQt=["placeholder"],IQt={for:"invoice_company",class:"form-label"},PQt={key:0,class:"invalid-feedback"},AQt={key:1,class:"invalid-feedback"},DQt={class:"col-12 mb-4"},xQt={class:"form-group form-floating"},OQt=["placeholder"],LQt={for:"invoice_address",class:"form-label"},MQt={key:0,class:"invalid-feedback"},NQt={key:1,class:"invalid-feedback"},RQt={class:"col-12 col-md-9 mb-4"},jQt={class:"form-group form-floating"},FQt=["placeholder"],zQt={for:"invoice_city",class:"form-label"},UQt={key:0,class:"invalid-feedback"},BQt={key:1,class:"invalid-feedback"},HQt={class:"col-12 col-md-3 mb-4"},VQt={class:"form-group form-floating"},qQt=["placeholder"],YQt={for:"invoice_psc",class:"form-label"},WQt={key:0,class:"invalid-feedback"},GQt={key:1,class:"invalid-feedback"},ZQt={class:"col-12 col-md-6 mb-4 mb-md-0"},KQt={class:"form-group form-floating"},JQt=["placeholder"],XQt={for:"invoice_ico",class:"form-label"},QQt={key:0,class:"invalid-feedback"},een={key:1,class:"invalid-feedback"},ten={key:2,class:"invalid-feedback"},nen={class:"col-12 col-md-6"},oen={class:"form-group form-floating"},ien=["placeholder"],ren={for:"invoice_dic",class:"form-label"},sen={key:0,class:"invalid-feedback"};function aen(e,t,n,o,i,r){return h(),g("form",{onSubmit:t[8]||(t[8]=Gt((...s)=>r.update&&r.update(...s),["prevent"])),class:"row"},[c("div",fQt,[c("div",mQt,[xe(c("input",{id:"first_name",class:J({"form-control":!0,"is-invalid":o.v$.invoiceData.first_name.$error||i.error_message.first_name}),placeholder:e.$t("dashboard.user.settings.invoice_info.form.first_name.placeholder"),type:"text",name:"first_name","onUpdate:modelValue":t[0]||(t[0]=s=>r.invoiceDataModel.first_name=s)},null,10,pQt),[[wt,r.invoiceDataModel.first_name]]),c("label",gQt,m(e.$t("dashboard.user.settings.invoice_info.form.first_name.label")),1),o.v$.invoiceData.first_name.$error&&o.v$.invoiceData.first_name.required.$invalid?(h(),g("span",vQt,m(e.$t("validation.custom.first_name.required")),1)):D("",!0),i.error_message.first_name?(h(),g("span",_Qt,m(i.error_message.first_name),1)):D("",!0)])]),c("div",yQt,[c("div",bQt,[xe(c("input",{id:"last_name",class:J({"form-control":!0,"is-invalid":o.v$.invoiceData.last_name.$error||i.error_message.last_name}),placeholder:e.$t("dashboard.user.settings.invoice_info.form.last_name.placeholder"),type:"text",name:"last_name","onUpdate:modelValue":t[1]||(t[1]=s=>r.invoiceDataModel.last_name=s)},null,10,kQt),[[wt,r.invoiceDataModel.last_name]]),c("label",wQt,m(e.$t("dashboard.user.settings.invoice_info.form.last_name.label")),1),o.v$.invoiceData.last_name.$error&&o.v$.invoiceData.last_name.required.$invalid?(h(),g("span",$Qt,m(e.$t("validation.custom.last_name.required")),1)):D("",!0),i.error_message.last_name?(h(),g("span",CQt,m(i.error_message.last_name),1)):D("",!0)])]),c("div",SQt,[c("div",TQt,[xe(c("input",{id:"invoice_company",class:J({"form-control":!0,"is-invalid":o.v$.invoiceData.invoice_company.$error||i.error_message.invoice_company}),placeholder:e.$t("dashboard.user.settings.invoice_info.form.invoice_company.placeholder"),type:"text",name:"invoice_company","onUpdate:modelValue":t[2]||(t[2]=s=>r.invoiceDataModel.invoice_company=s)},null,10,EQt),[[wt,r.invoiceDataModel.invoice_company]]),c("label",IQt,m(e.$t("dashboard.user.settings.invoice_info.form.invoice_company.label")),1),o.v$.invoiceData.invoice_company.$error&&o.v$.invoiceData.invoice_company.required.$invalid?(h(),g("span",PQt,m(e.$t("validation.custom.invoice_company.required")),1)):D("",!0),i.error_message.invoice_company?(h(),g("span",AQt,m(i.error_message.invoice_company),1)):D("",!0)])]),c("div",DQt,[c("div",xQt,[xe(c("input",{id:"invoice_address",name:"invoice_address",type:"text",class:J({"form-control":!0,"is-invalid":o.v$.invoiceData.invoice_address.$error||i.error_message.invoice_address}),placeholder:e.$t("dashboard.user.settings.invoice_info.form.invoice_address.placeholder"),"onUpdate:modelValue":t[3]||(t[3]=s=>r.invoiceDataModel.invoice_address=s)},null,10,OQt),[[wt,r.invoiceDataModel.invoice_address]]),c("label",LQt,m(e.$t("dashboard.user.settings.invoice_info.form.invoice_address.label")),1),o.v$.invoiceData.invoice_address.$error&&o.v$.invoiceData.invoice_address.required.$invalid?(h(),g("span",MQt,m(e.$t("validation.custom.invoice_address.required")),1)):D("",!0),i.error_message.invoice_address?(h(),g("span",NQt,m(i.error_message.invoice_address),1)):D("",!0)])]),c("div",RQt,[c("div",jQt,[xe(c("input",{id:"invoice_city",name:"invoice_city",type:"text",class:J({"form-control":!0,"is-invalid":o.v$.invoiceData.invoice_city.$error||i.error_message.invoice_city}),placeholder:e.$t("dashboard.user.settings.invoice_info.form.invoice_city.placeholder"),"onUpdate:modelValue":t[4]||(t[4]=s=>r.invoiceDataModel.invoice_city=s)},null,10,FQt),[[wt,r.invoiceDataModel.invoice_city]]),c("label",zQt,m(e.$t("dashboard.user.settings.invoice_info.form.invoice_city.label")),1),o.v$.invoiceData.invoice_city.$error&&o.v$.invoiceData.invoice_city.required.$invalid?(h(),g("span",UQt,m(e.$t("validation.custom.invoice_city.required")),1)):D("",!0),i.error_message.invoice_city?(h(),g("span",BQt,m(i.error_message.invoice_city),1)):D("",!0)])]),c("div",HQt,[c("div",VQt,[xe(c("input",{id:"invoice_psc",name:"invoice_psc",type:"text","onUpdate:modelValue":t[5]||(t[5]=s=>r.invoiceDataModel.invoice_psc=s),class:J({"form-control":!0,"is-invalid":o.v$.invoiceData.invoice_psc.$error||i.error_message.invoice_psc}),placeholder:e.$t("dashboard.user.settings.invoice_info.form.invoice_psc.placeholder")},null,10,qQt),[[wt,r.invoiceDataModel.invoice_psc]]),c("label",YQt,m(e.$t("dashboard.user.settings.invoice_info.form.invoice_psc.label")),1),o.v$.invoiceData.invoice_psc.$error&&o.v$.invoiceData.invoice_psc.required.$invalid?(h(),g("span",WQt,m(e.$t("validation.custom.invoice_psc.required")),1)):D("",!0),i.error_message.invoice_psc?(h(),g("span",GQt,m(i.error_message.invoice_psc),1)):D("",!0)])]),c("div",ZQt,[c("div",KQt,[xe(c("input",{id:"invoice_ico",name:"invoice_ico",type:"text",class:J({"form-control":!0,"is-invalid":o.v$.invoiceData.invoice_ico.$error||i.error_message.invoice_ico}),placeholder:e.$t("dashboard.user.settings.invoice_info.form.invoice_ico.placeholder"),"onUpdate:modelValue":t[6]||(t[6]=s=>r.invoiceDataModel.invoice_ico=s)},null,10,JQt),[[wt,r.invoiceDataModel.invoice_ico]]),c("label",XQt,m(e.$t("dashboard.user.settings.invoice_info.form.invoice_ico.label")),1),o.v$.invoiceData.invoice_ico.$error&&(o.v$.invoiceData.invoice_ico.minLength.$invalid||o.v$.invoiceData.invoice_ico.maxLength.$invalid||o.v$.invoiceData.invoice_ico.numeric.$invalid)?(h(),g("span",QQt,m(e.$t("validation.custom.invoice_ico.format")),1)):D("",!0),o.v$.invoiceData.invoice_ico.$error&&o.v$.invoiceData.invoice_ico.required.$invalid?(h(),g("span",een,m(e.$t("validation.custom.invoice_ico.required")),1)):D("",!0),i.error_message.invoice_ico?(h(),g("span",ten,m(i.error_message.invoice_ico),1)):D("",!0)])]),c("div",nen,[c("div",oen,[xe(c("input",{id:"invoice_dic",name:"invoice_dic",type:"text",class:J({"form-control":!0,"is-invalid":o.v$.invoiceData.invoice_dic.$error||i.error_message.invoice_dic}),placeholder:e.$t("dashboard.user.settings.invoice_info.form.invoice_dic.placeholder"),"onUpdate:modelValue":t[7]||(t[7]=s=>r.invoiceDataModel.invoice_dic=s)},null,10,ien),[[wt,r.invoiceDataModel.invoice_dic]]),c("label",ren,m(e.$t("dashboard.user.settings.invoice_info.form.invoice_dic.label")),1),i.error_message.invoice_dic?(h(),g("span",sen,m(i.error_message.invoice_dic),1)):D("",!0)])])],32)}const Ble=U(hQt,[["render",aen]]),len={components:{Loading:Rt,SchoolAdvert:cQt,UserInvoiceDataUpdateForm:Ble},props:{user:{type:Object,default(){return null}}},data(){return{loading:!1,primaryColor:window.primaryColor}},computed:{invoiceData(){return{first_name:this.user.first_name,last_name:this.user.last_name,invoice_company:this.user.invoice_company,invoice_ico:this.user.invoice_ico,invoice_dic:this.user.invoice_dic,invoice_address:this.user.invoice_address,invoice_city:this.user.invoice_city,invoice_psc:this.user.invoice_psc}}},methods:{update(){this.$refs["user-invoice-data-update-form"].update()}}},cen={class:"row vl-parent"},den={class:"mb-3"},uen={class:"mb-5"},hen=["href"],fen={class:"col-12 col-lg-6"},men={class:"col-12 col-lg-6 d-flex align-items-center justify-content-center"},pen={class:"row justify-content-center"},gen={class:"col-12 col-sm-8 col-lg-10 col-xl-8 mt-4 mt-lg-0 bg-primary-5 px-2 py-3"},ven={class:"col-12"};function _en(e,t,n,o,i,r){const s=y("Loading"),a=y("UserInvoiceDataUpdateForm"),l=y("SchoolAdvert");return h(),g("div",cen,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=d=>i.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("h3",den,m(e.$t("dashboard.user.settings.invoice_info.title")),1),c("p",uen,[z(m(e.$t("dashboard.user.settings.invoice_info.text.0"))+" ",1),c("a",{href:e.ziggyRoute("school.index"),target:"_blank"},m(e.$t("dashboard.user.settings.invoice_info.text.1")),9,hen)]),c("div",fen,[b(a,{loading:i.loading,"onUpdate:loading":t[1]||(t[1]=d=>i.loading=d),"invoice-data":r.invoiceData,ref:"user-invoice-data-update-form"},null,8,["loading","invoice-data"])]),c("div",men,[c("div",pen,[c("div",gen,[b(l)])])]),c("div",ven,[t[3]||(t[3]=c("hr",null,null,-1)),c("button",{class:"btn btn-primary",onClick:t[2]||(t[2]=Gt((...d)=>r.update&&r.update(...d),["prevent"]))},m(e.$t("dashboard.user.settings.invoice_info.save")),1)])])}const yen=U(len,[["render",_en]]),ben={components:{PickedSchoolCard:K3},props:{user:{type:Object,default(){return null}}},methods:{openSidebar(){this.$store.dispatch("sidebar/open",{type:"school-leave",data:this.user})}}},ken={class:"row"},wen={class:"mb-3"},$en={class:"mb-3"},Cen={class:"mb-4"},Sen={class:"col-12"};function Ten(e,t,n,o,i,r){const s=y("PickedSchoolCard");return h(),g("div",ken,[c("h3",wen,m(e.$t("dashboard.user.settings.school.title")),1),c("p",$en,m(e.$t("dashboard.user.settings.school.text")),1),c("p",Cen,m(e.$t("dashboard.user.settings.school.credit_increase_text")),1),c("div",Sen,[b(s,{"picked-school":n.user.school,"show-manager":!0,class:"bg-white",style:{padding:"0 !important"}},null,8,["picked-school"]),t[1]||(t[1]=c("hr",null,null,-1)),c("button",{class:"btn btn-danger align-self-center mt-3 mt-md-0",onClick:t[0]||(t[0]=Gt((...a)=>r.openSidebar&&r.openSidebar(...a),["prevent"]))},m(e.$t("dashboard.user.settings.school.leave.button")),1)])])}const Een=U(ben,[["render",Ten]]),Ien={props:{default:{type:Number,default:new Date().getFullYear()},last:{type:Number,default:new Date().getFullYear()},first:{type:Number,default:new Date().getFullYear()},loading:{type:Boolean,default:!1}},data(){return{active:this.default}},methods:{selectInput(){this.$emit("yearChange",this.active)}},computed:{years(){return Array.from({length:this.last+1-this.first},(e,t)=>this.last-t)}}},Pen={class:"form-group form-floating"},Aen={for:"type",class:""};function Den(e,t,n,o,i,r){const s=y("v-select");return h(),g("div",Pen,[b(s,{id:"type",class:"form-control",modelValue:i.active,"onUpdate:modelValue":[t[0]||(t[0]=a=>i.active=a),r.selectInput],options:r.years,placeholder:e.$t("school.manager.tabs.finances.invoices.table.year"),"close-on-select":!0,clearable:!1,searchable:!1,loading:n.loading},null,8,["modelValue","options","placeholder","loading","onUpdate:modelValue"]),c("label",Aen,m(e.$t("school.manager.tabs.finances.invoices.table.year")),1)])}const lM=U(Ien,[["render",Den]]),xen={components:{AppIcon:Ue},props:{invoice:{type:Object,default:null}},methods:{flashMessage(){window.flash(this.$t("invoices.pdf_missing"),"error")}}},Oen=["href"],Len={class:"medium"},Men={class:"medium"};function Nen(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return n.invoice.pdf_url?xe((h(),g("a",{key:0,href:n.invoice.pdf_url,target:"_blank",class:"btn btn-tertiary btn-center btn-sm"},[c("span",Len,m(n.invoice.number),1),b(s,{icon:"download",class:"ms-icon"})],8,Oen)),[[a,{content:e.$t("school.manager.tabs.finances.invoices.table.download"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):(h(),g("button",{key:1,class:"btn btn-tertiary btn-center btn-sm",onClick:t[0]||(t[0]=(...l)=>r.flashMessage&&r.flashMessage(...l))},[c("span",Men,m(n.invoice.number),1),b(s,{icon:"download",class:"ms-icon"})]))}const Hle=U(xen,[["render",Nen]]),Ren={components:{AppIcon:Ue},props:{invoice:{type:Object,default:null},isArchive:{type:Boolean,default:!1}},computed:{isPending(){return this.invoice&&(this.invoice.type==="credit"||this.invoice.type==="order")?!this.invoice.invoice_number:!1}},methods:{flashMessage(){window.flash(this.$t("invoices.pdf_missing"),"error")}}},jen=["href"],Fen={class:"medium"},zen={class:"medium"},Uen={key:1,class:"flex-grow-1"};function Ben(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return r.isPending?(h(),g("div",Uen,m(n.isArchive?e.$t("public.dash"):e.$t("school.manager.tabs.finances.invoices.table.pending")),1)):(h(),g(pe,{key:0},[n.invoice.invoice_pdf_url?xe((h(),g("a",{key:0,href:n.invoice.invoice_pdf_url,target:"_blank",class:"btn btn-tertiary btn-center btn-sm"},[c("span",Fen,m(n.invoice.number),1),b(s,{icon:"download",class:"ms-icon"})],8,jen)),[[a,{content:e.$t("school.manager.tabs.finances.invoices.table.download"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):(h(),g("button",{key:1,class:"btn btn-tertiary btn-center btn-sm",onClick:t[0]||(t[0]=(...l)=>r.flashMessage&&r.flashMessage(...l))},[c("span",zen,m(n.invoice.number),1),b(s,{icon:"download",class:"ms-icon"})]))],64))}const Vle=U(Ren,[["render",Ben]]),Hen={props:{type:{type:[String,Object],default:null}}},Ven={class:"badge rounded-pill small px-2 py-1 fw-light bg-gray-300 text-gray-700"};function qen(e,t,n,o,i,r){return h(),g("span",Ven,m(e.$tm("school.manager.tabs.finances.invoices.type")[n.type]),1)}const qle=U(Hen,[["render",qen]]),Yen={components:{Loading:Rt,FlexTableRow:ni,FlexTableHead:ti,YearSelect:lM,SchoolInvoiceProformaDownloadButton:Hle,TransitionCollapseHeight:qo,SchoolInvoiceDownloadButton:Vle,SchoolInvoiceTypePill:qle},data(){return{primaryColor:window.primaryColor,activeYear:2022,lastYear:2022,openedItem:-1,moment:mt}},computed:{...Oe({auth:"auth/auth",loading:"schoolInvoice/getLoading",invoices:"schoolInvoice/getArchiveList",firstYear:"schoolInvoice/getArchiveFirstYear"})},methods:{load(){this.$store.dispatch("schoolInvoice/archiveIndex",{year:this.activeYear})},onUpdateActive(e){this.activeYear=e,this.load()},toggleOpen(e){this.openedItem===e?this.openedItem=-1:this.openedItem=e}},mounted(){this.$store.dispatch("schoolInvoice/firstYear"),this.load()}},Wen={class:"row"},Gen={class:"col-12 col-lg-4"},Zen={class:"col-12 d-md-none"},Ken={class:"col-2 d-none d-md-block"},Jen={class:"col-2 d-none d-md-block"},Xen={class:"col-2 d-none d-md-block ps-4"},Qen={class:"col-3 d-none d-md-block"},etn={class:"col-3 d-none d-md-block"},ttn={key:0,class:"vl-parent mh-5"},ntn={key:1},otn={key:0,class:"text-center text-gray-600 mt-3 mb-0"},itn=["onClick"],rtn={class:"col-auto col-md-2"},stn={class:"col-auto col-md-2"},atn={class:"d-md-none"},ltn={class:"col-2 d-none d-md-block ps-4"},ctn={class:"col-3 d-none d-md-block"},dtn={class:"col-3 d-none d-md-flex align-items-start align-items-md-center justify-content-between"},utn={class:"rounded bg-primary-5 mt-3"},htn={class:"row p-3"},ftn={class:"col-6 mb-4"},mtn={class:"text-gray-600"},ptn={class:"col-6 mb-4"},gtn={class:"text-gray-600"},vtn={class:"col-6 mb-4"},_tn={class:"text-gray-600"};function ytn(e,t,n,o,i,r){const s=y("YearSelect"),a=y("FlexTableHead"),l=y("Loading"),d=y("SchoolInvoiceTypePill"),u=y("SchoolInvoiceProformaDownloadButton"),f=y("SchoolInvoiceDownloadButton"),p=y("TransitionCollapseHeight"),v=y("FlexTableRow");return h(),g("div",null,[c("div",Wen,[c("div",Gen,[b(s,{class:"mb-3",default:i.lastYear,first:e.firstYear,last:i.lastYear,onYearChange:r.onUpdateActive},null,8,["default","first","last","onYearChange"])])]),b(a,null,{default:F(()=>[c("div",Zen,m(e.$t("invoices.title")),1),c("div",Ken,m(e.$t("school.manager.tabs.finances.invoices.table.date")),1),c("div",Jen,m(e.$t("school.manager.tabs.finances.invoices.table.type")),1),c("div",Xen,m(e.$t("school.manager.tabs.finances.invoices.table.amount")),1),c("div",Qen,m(e.$t("school.manager.tabs.finances.invoices.table.order_number")),1),c("div",etn,m(e.$t("school.manager.tabs.finances.invoices.table.invoice")),1)]),_:1}),e.loading?(h(),g("div",ttn,[b(l,{active:e.loading,"onUpdate:active":t[0]||(t[0]=_=>e.loading=_),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):(h(),g("div",ntn,[e.invoices.length?D("",!0):(h(),g("p",otn,m(e.$t("public.record_not_foud")),1)),(h(!0),g(pe,null,Me(e.invoices,(_,k)=>(h(),g("div",{key:k,onClick:C=>r.toggleOpen(k)},[b(v,{class:J([{"border-none":k===e.invoices.length-1},"justify-content-between flex-row-reverse flex-md-row"])},{default:F(()=>[c("div",rtn,m(i.moment(_.created_at).format("DD. MM. YYYY")),1),c("div",stn,[b(d,{class:"d-none d-md-inline",type:_.type},null,8,["type"]),c("span",atn,m(e.$tm("school.manager.tabs.finances.invoices.type")[_.type]),1)]),c("div",ltn,m(_.amount.toLocaleString()+" "+e.$t("currency.short")),1),c("div",ctn,[b(u,{invoice:_},null,8,["invoice"])]),c("div",dtn,[b(f,{invoice:_,"is-archive":""},null,8,["invoice"])]),b(p,{class:"d-block d-md-none"},{default:F(()=>[xe(c("div",null,[c("div",utn,[c("div",htn,[c("div",ftn,[c("div",mtn,m(e.$t("school.manager.tabs.finances.invoices.table.amount")),1),z(" "+m(_.amount.toLocaleString()+" "+e.$t("currency.short")),1)]),c("div",ptn,[c("div",gtn,m(e.$t("school.manager.tabs.finances.invoices.table.order_number")),1),b(u,{invoice:_},null,8,["invoice"])]),c("div",vtn,[c("div",_tn,m(e.$t("school.manager.tabs.finances.invoices.table.invoice")),1),b(f,{invoice:_,"is-archive":""},null,8,["invoice"])])])])],512),[[Vo,i.openedItem===k]])]),_:2},1024)]),_:2},1032,["class"])],8,itn))),128))]))])}const btn=U(Yen,[["render",ytn]]),ktn={components:{ContactEmailAnchor:Xy,SchoolInvoiceArchiveTable:btn,AppIcon:Ue},mounted(){this.$store.dispatch("school/show")}},wtn={class:"school-themed-component my-6"},$tn={class:"mb-5"},Ctn={class:"col-12 col-lg-9"},Stn={class:"content-box shadow px-4 py-5 mb-4 mb-lg-0"},Ttn={class:"d-flex align-items-center mb-4"},Etn={class:"mb-0"},Itn={class:"mb-3"},Ptn=["href"];function Atn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ContactEmailAnchor"),l=y("SchoolInvoiceArchiveTable");return h(),g("div",wtn,[t[1]||(t[1]=c("div",{class:"w-full-page position-absolute top-0 bg-primary-5 z-index-neg-1",style:{height:"460px"}},null,-1)),c("div",$tn,[c("button",{onClick:t[0]||(t[0]=d=>e.$router.push({name:"skola/sprava/finance/doklady"})),class:"btn btn-sm btn-center btn-secondary"},[b(s,{icon:"arrow-left",class:"me-icon"}),z(" "+m(e.$t("school.back")),1)])]),c("div",Ctn,[c("div",Stn,[c("div",Ttn,[b(s,{icon:"school",height:"24",width:"24",class:"text-primary me-2"}),c("h3",Etn,m(e.$t("school.manager.tabs.finances.invoices_archive.title")),1)]),c("p",Itn,[z(m(e.$t("school.manager.tabs.finances.invoices_archive.text.0"))+" ",1),b(a),z(" "+m(e.$t("school.manager.tabs.finances.invoices_archive.text.1"))+" ",1),c("a",{href:"tel:"+e.$t("public.ucitelnice_phone_long")},m(e.$t("public.ucitelnice_phone")),9,Ptn),z(" "+m(e.$t("school.manager.tabs.finances.invoices_archive.text.2")),1)]),b(l)])])])}const Dtn=U(ktn,[["render",Atn]]),xtn={props:{marginBetweenLines:{type:Boolean,default:!1}},computed:{...Oe({school:"school/getDetail"})}},Otn={key:0,class:"row"},Ltn={key:1,class:"row"};function Mtn(e,t,n,o,i,r){return h(),g("div",null,[e.school.invoice_company?(h(),g("div",Otn,[c("div",{class:J({"mb-3":n.marginBetweenLines})},m(e.school.invoice_company),3),c("div",{class:J({"mb-3":n.marginBetweenLines})},m(e.school.invoice_address)+", "+m(e.school.invoice_psc)+" "+m(e.school.invoice_city),3),c("div",null,m(e.$t("school.manager.tabs.finances.invoice_data.invoice_ico")+": "+e.school.invoice_ico),1)])):(h(),g("div",Ltn,[c("div",{class:J({"mb-3":n.marginBetweenLines})},m(e.school.long_name),3),c("div",{class:J({"mb-3":n.marginBetweenLines})},m(e.school.address)+", "+m(e.school.postcode)+" "+m(e.school.city),3),c("div",null,m(e.$t("school.manager.tabs.finances.invoice_data.invoice_ico")+": "+e.school.ico),1)]))])}const Yle=U(xtn,[["render",Mtn]]),Ntn=""+new URL("school-header-image-ff696a7f.svg",import.meta.url).href,Rtn={components:{GrayBackgroundComponent:$g,SchoolInvoiceInfo:Yle,CreditInfo:Ole,TabList:qr},data(){return{schoolHeaderImage:Ntn,routes:["skola/sprava/kolegove","skola/sprava/finance","skola/sprava/materialy"]}},computed:{...Oe({school:"school/getDetail"})}},jtn={ref:"school-management-header"},Ftn={class:"col"},ztn={class:"row mh-13dot75rem py-6"},Utn={class:"col mb-1 d-flex"},Btn=["src"],Htn={class:"ms-3"},Vtn={class:"mb-2"},qtn={class:"col-auto mt-3 mt-xl-0 mb-1 align-items-start"},Ytn={class:"row"},Wtn={class:"col px-3"};function Gtn(e,t,n,o,i,r){const s=y("GrayBackgroundComponent"),a=y("SchoolInvoiceInfo"),l=y("CreditInfo"),d=y("TabList");return h(),g("div",jtn,[b(s,{header:e.$refs["school-management-header"],offset:0,"border-bottom":""},null,8,["header"]),c("div",Ftn,[c("div",ztn,[c("div",Utn,[c("img",{src:i.schoolHeaderImage,height:"117",width:"117"},null,8,Btn),c("div",Htn,[c("h2",Vtn,m(e.$t("school.your_school")),1),b(a,{class:"mt-1"})])]),c("div",qtn,[b(l,{value:e.school.budget,"valid-until":e.school.credit_expiry_date,type:"school-dashboard"},null,8,["value","valid-until"])])]),c("div",Ytn,[c("div",Wtn,[b(d,{class:"border-none",routes:i.routes,titles:e.$tm("school.manager.tabs.titles")},null,8,["routes","titles"])])])])],512)}const Ztn=U(Rtn,[["render",Gtn]]),Ktn={components:{SchoolManagementHeader:Ztn},props:{school:{type:Object,default(){return null}}},mounted(){this.$store.commit("school/setDetail",this.school)}},Jtn={class:"mb-6 school-themed-component"};function Xtn(e,t,n,o,i,r){const s=y("SchoolManagementHeader"),a=y("router-view");return h(),g("div",Jtn,[b(s),b(a,{class:"mt-5"})])}const Qtn=U(Ktn,[["render",Xtn]]),enn={components:{AppIcon:Ue},computed:{...Oe({school:"school/getDetail"})},methods:{openSidebar(){this.$store.dispatch("sidebar/open",{type:"school-invite",data:this.school})}}};function tnn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-secondary btn-center",onClick:t[0]||(t[0]=(...a)=>r.openSidebar&&r.openSidebar(...a))},[z(m(e.$t("school.manager.tabs.colleagues.invite_button"))+" ",1),b(s,{icon:"user-add",class:"ms-icon"})])}const nnn=U(enn,[["render",tnn]]),onn={components:{AppIcon:Ue},props:{content:{type:String,default:null}}},inn={class:"d-inline-flex align-items-center"};function rnn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return xe((h(),g("span",inn,[Pt(e.$slots,"default"),b(s,{icon:"document"})])),[[a,{content:n.content,delay:{show:500,hide:100},triggers:["hover","click"]}]])}const snn=U(onn,[["render",rnn]]),t0={status:{waiting:"waiting",manager:"manager",teacher:"teacher",blocked:"blocked",left:"left"}},ann={components:{Note:snn},props:{employee:Object},computed:{noteContent(){return this.$t("school.employees.table.status.note")+" "+this.employee.note}},methods:{color(){return this.employee.status==t0.status.waiting?"bg-warning-light text-warning":this.employee.status==t0.status.manager?"bg-secondary-important text-primary-important":this.employee.status==t0.status.teacher?"bg-success-light text-success":this.employee.status==t0.status.blocked?"bg-danger-light text-danger":(this.employee.status==t0.status.left,"bg-gray-300 text-gray-700")}}};function lnn(e,t,n,o,i,r){const s=y("Note");return h(),g("span",{class:J(["badge rounded-pill small px-2 py-1 fw-light d-inline-flex align-items-center",[r.color()]])},[z(m(e.$tm("school.employees.status")[n.employee.status])+" ",1),n.employee.note&&n.employee.note.length?(h(),W(s,{key:0,content:r.noteContent,class:"text-gray-600 ms-1"},null,8,["content"])):D("",!0)],2)}const Wle=U(ann,[["render",lnn]]),cnn={props:{employee:Object},computed:{notActive(){return this.employee.status==="blocked"||this.employee.status==="left"||this.employee.status==="waiting"}}},dnn={class:"mb-0"},unn={class:"small text-gray-600"},hnn={key:0},fnn={key:1};function mnn(e,t,n,o,i,r){const s=an("tooltip");return h(),g("div",null,[c("p",dnn,m(r.notActive?e.$t("public.dash"):Number(n.employee.budget).toLocaleString()+" "+e.$t("currency.short")),1),c("div",unn,[r.notActive?(h(),g("span",hnn,m(e.$t("public.dash")),1)):xe((h(),g("span",fnn,[z(m(e.$t("school.employees.table.spent.title")+": "+Number(n.employee.spent).toLocaleString()+" "+e.$t("currency.short")),1)])),[[s,{content:e.$t("school.employees.table.spent.tooltip"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])])}const pnn=U(cnn,[["render",mnn]]),gnn={components:{AppIcon:Ue},props:{employee:{type:Object,default(){return null}},isAdminApp:{type:Boolean,default:!1}},methods:{confirm(){this.isAdminApp?this.$store.dispatch("administrationSchoolEmployee/confirm",{employee:this.employee}):this.$store.dispatch("schoolEmployee/confirm",{employee:this.employee})}}},vnn={key:0,class:"d-inline"},_nn={class:"mb-0"},ynn={class:"medium text-gray-900 mb-0"};function bnn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return n.isAdminApp?(h(),g("button",{key:1,class:"btn-success btn-tertiary dropdown-item d-flex align-items-center",onClick:t[2]||(t[2]=l=>r.confirm())},[b(s,{icon:"check-fill",class:"me-2"}),c("p",ynn,m(e.$t("school.employees.table.buttons.confirm")),1)])):(h(),g("div",vnn,[xe((h(),g("button",{class:"btn-success btn-tertiary d-none d-md-block btn btn-sm btn-center w-100",onClick:t[0]||(t[0]=l=>r.confirm())},[b(s,{icon:"check-fill",height:"20",width:"20"})])),[[a,{content:e.$t("school.employees.table.buttons.confirm"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),c("button",{class:"btn-success btn-secondary d-md-none btn btn-center w-100",onClick:t[1]||(t[1]=l=>r.confirm())},[c("p",_nn,m(e.$t("school.employees.table.buttons.confirm")),1),b(s,{icon:"check-fill",height:"20",width:"20",class:"ms-icon"})])]))}const Gle=U(gnn,[["render",bnn]]),knn={components:{AppIcon:Ue},props:{employee:{type:Object,default(){return null}},isAdminApp:{type:Boolean,default:!1}},computed:{...Oe({auth:"auth/auth",school:"school/getDetail",administrationSchool:"administrationSchool/getDetail"})},methods:{openSidebar(){this.$store.dispatch("sidebar/open",{type:"school-employee-credit-update",data:{employee:this.employee,schoolBudgetToDivide:this.isAdminApp?this.administrationSchool.budget_to_divide:this.school.budget_to_divide}})}}},wnn={key:0,class:"d-inline"},$nn={class:"medium text-gray-900"};function Cnn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return n.isAdminApp?(h(),g("button",{key:1,class:"dropdown-item btn-tertiary d-flex align-items-center",onClick:t[2]||(t[2]=l=>r.openSidebar())},[b(s,{icon:"edit",class:"me-2"}),c("span",$nn,m(e.$t("school.employees.table.buttons.update_credit")),1)])):(h(),g("div",wnn,[xe((h(),g("button",{class:"btn btn-sm btn-center btn-tertiary btn-sm d-none d-md-block",onClick:t[0]||(t[0]=l=>r.openSidebar())},[b(s,{icon:"edit",height:"20",width:"20"})])),[[a,{content:e.$t("school.employees.table.buttons.update_credit"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),c("button",{class:"btn btn-secondary d-md-none btn-center w-100",onClick:t[1]||(t[1]=l=>r.openSidebar())},[z(m(e.$t("school.employees.table.buttons.update_credit"))+" ",1),b(s,{icon:"edit",height:"20",width:"20",class:"ms-icon"})])]))}const Zle=U(knn,[["render",Cnn]]),Snn={components:{AppIcon:Ue},props:{employee:{type:Object,default(){return null}},isAdminApp:{type:Boolean,default:!1}},methods:{decline(){this.isAdminApp?this.$store.dispatch("administrationSchoolEmployee/decline",{employee:this.employee}):this.$store.dispatch("schoolEmployee/decline",{employee:this.employee})}}},Tnn={key:0,class:"d-inline"},Enn={class:"mb-0"},Inn={class:"medium text-gray-900 mb-0"};function Pnn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return n.isAdminApp?(h(),g("button",{key:1,class:"btn-danger btn-tertiary dropdown-item d-flex align-items-center",onClick:t[2]||(t[2]=l=>r.decline())},[b(s,{icon:"block",class:"me-2"}),c("p",Inn,m(e.$t("school.employees.table.buttons.decline")),1)])):(h(),g("div",Tnn,[xe((h(),g("button",{class:"btn-danger btn-tertiary d-none d-md-block btn btn-sm btn-center w-100",onClick:t[0]||(t[0]=l=>r.decline())},[b(s,{icon:"block",height:"20",width:"20"})])),[[a,{content:e.$t("school.employees.table.buttons.decline"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),c("button",{class:"btn-danger btn-secondary d-md-none btn btn-center w-100",onClick:t[1]||(t[1]=l=>r.decline())},[c("p",Enn,m(e.$t("school.employees.table.buttons.decline")),1),b(s,{icon:"block",height:"20",width:"20",class:"ms-icon"})])]))}const Kle=U(Snn,[["render",Pnn]]),Ann={components:{AppIcon:Ue},props:{employee:{type:Object,default(){return null}},isAdminApp:{type:Boolean,default:!1}},methods:{openSidebar(){this.$store.dispatch("sidebar/open",{type:"school-employee-delete",data:{employee:this.employee}})}}},Dnn={key:0,class:"d-inline"},xnn={class:"medium text-gray-900"};function Onn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return n.isAdminApp?(h(),g("button",{key:1,class:"btn-danger btn-tertiary dropdown-item d-flex align-items-center",onClick:t[2]||(t[2]=l=>r.openSidebar())},[b(s,{icon:"delete",width:"20",height:"20",class:"me-2"}),c("span",xnn,m(e.$t("school.employees.table.buttons.remove")),1)])):(h(),g("div",Dnn,[xe((h(),g("button",{class:"btn btn-danger btn-center btn-tertiary btn-sm d-none d-md-block",onClick:t[0]||(t[0]=l=>r.openSidebar())},[b(s,{icon:"delete",width:"20",height:"20"})])),[[a,{content:e.$t("school.employees.table.buttons.remove"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),c("button",{class:"btn btn-danger btn-center btn-secondary w-100 d-md-none",onClick:t[1]||(t[1]=l=>r.openSidebar())},[z(m(e.$t("school.employees.table.buttons.remove"))+" ",1),b(s,{icon:"delete",width:"20",height:"20",class:"ms-icon"})])]))}const Jle=U(Ann,[["render",Onn]]),Lnn={components:{SchoolEmployeeDeclineButton:Kle,SchoolEmployeeCreditUpdateButton:Zle,SchoolEmployeeConfirmButton:Gle,SchoolEmployeeDeleteButton:Jle},props:{employee:{type:Object,default(){return null}}}},Mnn={class:"row justify-content-end"},Nnn={class:"col-12 col-sm-6 col-md-auto pe-md-0 mt-2 mt-sm-0"},Rnn={class:"col-12 col-sm-6 col-md-auto p-md-0"},jnn={class:"col-12 col-sm-6 col-md-auto pe-md-0 mt-2 mt-md-0"},Fnn={class:"col-12 col-sm-6 col-md-auto pe-md-0 mt-2 mt-md-0"};function znn(e,t,n,o,i,r){const s=y("SchoolEmployeeConfirmButton"),a=y("SchoolEmployeeDeclineButton"),l=y("SchoolEmployeeCreditUpdateButton"),d=y("SchoolEmployeeDeleteButton");return h(),g("div",Mnn,[n.employee.status==="left"?(h(),g(pe,{key:0},[],64)):n.employee.status==="waiting"?(h(),g(pe,{key:1},[c("div",Nnn,[b(s,{employee:n.employee},null,8,["employee"])]),c("div",Rnn,[b(a,{employee:n.employee},null,8,["employee"])])],64)):(h(),g(pe,{key:2},[c("div",jnn,[b(l,{employee:n.employee},null,8,["employee"])]),c("div",Fnn,[b(d,{employee:n.employee},null,8,["employee"])])],64))])}const Unn=U(Lnn,[["render",znn]]),Bnn={components:{AppIcon:Ue},props:{user:{type:[Object,Array],default(){return null}},height:{type:[Number,String],default:37},width:{type:[Number,String],default:37},badgeHeight:{type:[Number,String],default:16},badgeWidth:{type:[Number,String],default:16},borderWidth:{type:[Number,String],default:2},shape:{type:String,default:"square"}},computed:{role(){return this.user.role==="author"?this.user.verified?"verified":"author":null},shapeStyle(){return this.shape=="circle"?"rounded-circle":null},borderStyle(){return this.role=="author"?"border-2-porsche":"border-2-success"},badgeStyle(){let e="top: "+this.height*.7+"px;";return e+="left: "+this.width*.7+"px;",e+="height: "+this.badgeHeight+"px;",e+="width: "+this.badgeWidth+"px;",e},iconStyle(){return"border-width: "+this.borderWidth+"px;"},userIcon(){return this.user.image_thumbnail?this.user.image_thumbnail:this.user.image_detail}}},Hnn={class:"position-relative"},Vnn=["src","width","height"];function qnn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Hnn,[c("img",{src:r.userIcon,width:n.width,height:n.height,class:J(["object-fit-cover rounded",[r.borderStyle,r.shapeStyle]]),style:Bn(r.iconStyle)},null,14,Vnn),r.role==="author"?(h(),W(s,{key:0,icon:"user",class:"position-absolute rounded-circle p-0dot5 text-white bg-porsche border-2-porsche",style:Bn(r.badgeStyle)},null,8,["style"])):D("",!0),r.role==="verified"?(h(),W(s,{key:1,icon:"user",class:"position-absolute rounded-circle p-0dot5 text-white bg-success border-2-success",style:Bn(r.badgeStyle)},null,8,["style"])):D("",!0)])}const cM=U(Bnn,[["render",qnn]]),Ynn={components:{UserIconRole:cM,AppIcon:Ue},props:{user:[Object,Array],active:{type:Boolean,default:!0},shopShown:{type:Boolean,default:!1},iconShape:{type:String,default:"square"}}},Wnn={class:"d-flex align-items-center link-dark"},Gnn={class:"text-truncate"};function Znn(e,t,n,o,i,r){const s=y("UserIconRole"),a=y("AppIcon");return h(),g("div",Wnn,[b(s,{user:n.user,height:35,width:35,class:J(["me-2dot5",{"muted-img":!n.active}]),shape:n.iconShape},null,8,["user","shape","class"]),c("div",Gnn,[c("div",{class:J(["text-truncate",{"text-manatee-gray":!n.active}])},[z(m(n.user.first_name+" "+n.user.last_name)+" ",1),n.shopShown?(h(),W(a,{key:0,icon:"school",color:"primary",class:"ms-icon text-primary"})):D("",!0)],2),c("div",{class:J(["small text-truncate text-gray-600",{"text-manatee-gray":!n.active}])},m(n.user.email),3)])])}const dM=U(Ynn,[["render",Znn]]),Knn={components:{AppIcon:Ue,UserBlock:dM,ButtonDropdown:Eg},props:{user:[Object,Array],iconShape:{type:String,default:"square"}},methods:{copy(){this.$copyText(this.user.email),window.flash(this.$t("clipboard.copied"),"success")}}};function Jnn(e,t,n,o,i,r){const s=y("UserBlock"),a=y("AppIcon"),l=y("ButtonDropdown");return h(),W(l,{"drop-side":"down"},{button:F(()=>[b(s,{user:n.user,"icon-shape":n.iconShape,class:"text-decoration-underline-hover text-truncate"},null,8,["user","icon-shape"])]),dropdown:F(()=>[c("button",{class:"dropdown-item d-flex align-items-center small",type:"button",onClick:t[0]||(t[0]=Gt((...d)=>r.copy&&r.copy(...d),["prevent"]))},[b(a,{icon:"copy",class:"me-2"}),z(" "+m(e.$t("administration.product.table.item.author.copy_email")),1)])]),_:1})}const Xnn=U(Knn,[["render",Jnn]]),Qnn={components:{Loading:Rt,FlexTableHead:ti,FlexTableRow:ni,TransitionCollapseHeight:qo,SchoolEmployeeStatusPill:Wle,SchoolEmployeeCredit:pnn,SchoolManagerButtons:Unn,UserBlockDropdown:Xnn},data(){return{openedItem:-1,hover:-1,primaryColor:window.primaryColor}},computed:{...Oe({employees:"schoolEmployee/getIndex",loading:"schoolEmployee/getLoading"})},methods:{toggleOpen(e){this.openedItem===e?this.openedItem=-1:this.openedItem=e},notActive(e){return e.status==="blocked"||e.status==="left"||e.status==="waiting"},load(){this.$store.dispatch("schoolEmployee/index")}},mounted(){this.load()}},eon={class:"col-12 col-md-3"},ton={class:"col-3 d-none d-md-block"},non={class:"col-6 d-none d-md-block"},oon={class:"vl-parent mh-5"},ion={key:0},ron=["onMouseover"],son=["onClick"],aon={class:"col-3 d-none d-md-flex align-items-center"},lon={class:"col-2 d-none d-md-block"},con={class:"col-4 d-none d-md-block text-end"},don={class:"rounded bg-primary-5 mt-3"},uon={class:"row p-3"},hon={class:"col-12 col-sm-6 mb-4"},fon={class:"text-gray-600"},mon={class:"col-12 col-sm-6 mb-4"},pon={class:"text-gray-600"},gon={class:"col-12 col-sm-6 mb-4"},von={class:"text-gray-600"},_on={key:0},yon={key:1},bon={class:"col-12"};function kon(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("Loading"),l=y("UserBlockDropdown"),d=y("SchoolEmployeeStatusPill"),u=y("SchoolEmployeeCredit"),f=y("SchoolManagerButtons"),p=y("TransitionCollapseHeight"),v=y("FlexTableRow");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",eon,m(e.$t("school.employees.table.name_and_email")),1),c("div",ton,m(e.$t("school.employees.table.status.title")),1),c("div",non,m(e.$t("school.employees.table.budget.title")),1)]),_:1}),c("div",oon,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=_=>e.loading=_),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.loading?D("",!0):(h(),g("div",ion,[(h(!0),g(pe,null,Me(e.employees,(_,k)=>(h(),g("div",{key:k,onMouseover:C=>i.hover=k,onMouseleave:t[1]||(t[1]=C=>i.hover=-1)},[b(v,{class:J({"border-none":k==e.employees.length-1})},{default:F(()=>[c("div",{class:"col-12 col-md-3 d-flex",onClick:C=>r.toggleOpen(k)},[b(l,{user:_,"icon-shape":"circle"},null,8,["user"])],8,son),c("div",aon,[b(d,{employee:_},null,8,["employee"])]),c("div",lon,[b(u,{employee:_},null,8,["employee"])]),c("div",con,[b(f,{employee:_,class:J({"d-none":i.hover!=k&&(_.status=="manager"||_.status=="teacher")})},null,8,["employee","class"])]),b(p,{class:"d-block d-md-none"},{default:F(()=>[xe(c("div",don,[c("div",uon,[c("div",hon,[c("div",fon,m(e.$t("school.employees.table.status.title")),1),b(d,{employee:_},null,8,["employee"])]),c("div",mon,[c("div",pon,m(e.$t("school.employees.table.budget.title")),1),c("div",null,m(r.notActive(_)?e.$t("public.dash"):Number(_.budget).toLocaleString()+" "+e.$t("currency.short")),1)]),c("div",gon,[c("div",von,m(e.$t("school.employees.table.spent.title_md")),1),r.notActive(_)?(h(),g("div",_on,m(e.$t("public.dash")),1)):(h(),g("div",yon,m(Number(_.spent).toLocaleString()+" "+e.$t("currency.short")),1))]),c("div",bon,[b(f,{employee:_},null,8,["employee"])])])],512),[[Vo,i.openedItem===k]])]),_:2},1024)]),_:2},1032,["class"])],40,ron))),128))]))])])}const won=U(Qnn,[["render",kon]]),$on={components:{CreditIncreaseLink:oM},computed:{...Oe({school:"school/getDetail"})}},Con={class:"text-gray-800 fw-medium mb-3"},Son={class:"row mb-3"},Ton={class:"medium text-gray-800"},Eon={class:"fw-medium"},Ion={class:"row mb-3"},Pon={class:"medium text-gray-800"},Aon={class:"fw-medium"},Don={class:"row"},xon={class:"medium text-gray-800"},Oon={class:"fw-bold"},Lon={class:"d-flex justify-content-center"};function Mon(e,t,n,o,i,r){const s=y("CreditIncreaseLink");return h(),g("div",null,[c("h5",Con,m(e.$t("school.credit")),1),c("div",Son,[c("div",Ton,m(e.$t("school.manager.tabs.colleagues.whole_budget.text")),1),c("div",Eon,m(Number(e.school.budget).toLocaleString()+" "+e.$t("currency.short")),1)]),c("div",Ion,[c("div",Pon,m(e.$t("school.manager.tabs.colleagues.divided_budget.text")),1),c("div",Aon,m(Number(e.school.divided_budget).toLocaleString()+" "+e.$t("currency.short")),1)]),c("div",Don,[c("div",xon,m(e.$t("school.manager.tabs.colleagues.budget_to_divide.text")),1),c("div",Oon,m(Number(e.school.budget_to_divide).toLocaleString()+" "+e.$t("currency.short")),1)]),t[0]||(t[0]=c("hr",{class:"my-3"},null,-1)),c("div",Lon,[b(s,{class:"fw-medium",type:"school-dashboard","button-small":!0})])])}const Non=U($on,[["render",Mon]]),Ron={},jon={class:"text-start"},Fon={class:"mb-3 text-gray-800 fw-medium"},zon=["innerHTML"],Uon=["innerHTML"];function Bon(e,t,n,o,i,r){return h(),g("div",jon,[c("h5",Fon,m(e.$t("school.manager.credit_how.title")),1),c("p",{class:"mb-3 medium text-gray-700",innerHTML:e.$t("school.manager.credit_how.text1")},null,8,zon),c("p",{class:"mb-0 medium text-gray-700",innerHTML:e.$t("school.manager.credit_how.text2")},null,8,Uon)])}const Hon=U(Ron,[["render",Bon]]),Von={components:{SchoolInviteButton:nnn,SchoolEmployeeTable:won,SchoolCreditDistribution:Non,SchoolCreditExplanation:Hon}},qon={class:"row"},Yon={class:"col-12 col-lg-9"},Won={class:"content-box shadow-mid px-4 py-5"},Gon={class:"d-flex align-items-start mb-5"},Zon={class:"flex-grow-1 m-0"},Kon={class:"vl-parent mh-4rem"},Jon={class:"d-flex d-md-none justify-content-center mt-3"},Xon={class:"col-12 col-lg-3"},Qon={class:"row"},ein={class:"col-12 mt-4 mt-lg-0"},tin={class:"row"},nin={class:"col-12 mt-4"};function oin(e,t,n,o,i,r){const s=y("SchoolInviteButton"),a=y("SchoolEmployeeTable"),l=y("SchoolCreditDistribution"),d=y("SchoolCreditExplanation");return h(),g("div",qon,[c("div",Yon,[c("div",Won,[c("div",Gon,[c("h3",Zon,m(e.$t("school.manager.tabs.colleagues.title")),1),b(s,{class:"d-none d-md-block"})]),c("div",Kon,[b(a)]),c("div",Jon,[b(s)])])]),c("div",Xon,[c("div",Qon,[c("div",ein,[b(l,{class:"content-box shadow-mid p-4"})])]),c("div",tin,[c("div",nin,[b(d,{class:"content-box shadow-mid p-4"})])])])])}const iin=U(Von,[["render",oin]]),rin={computed:{...Oe({school:"school/getDetail"})}},sin={class:"d-flex align-items-center"},ain={class:"text-gray-800 medium"},lin={key:0,class:"text-gray-900 large"};function cin(e,t,n,o,i,r){const s=y("app-icon"),a=an("tooltip");return h(),g("div",null,[c("div",sin,[c("span",ain,m(e.$t("school.manager.tabs.finances.info.manager.title")),1),xe(b(s,{icon:"info-circle",class:"text-primary ms-icon",height:"20",width:"20"},null,512),[[a,{content:e.$t("school.manager.tabs.finances.info.manager.tooltip"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),e.school.manager?(h(),g("span",lin,m(e.school.manager.email),1)):D("",!0)])}const din=U(rin,[["render",cin]]),uin={computed:{...Oe({school:"school/getDetail"})},methods:{openEditAccountingEmailSidebar(){this.$store.dispatch("sidebar/open",{type:"school-accounting-email-update",data:{school:this.school}})}}},hin={class:"d-flex align-items-center"},fin={class:"text-gray-800 medium"},min={class:"text-gray-900 large"};function pin(e,t,n,o,i,r){const s=y("app-icon");return h(),g("div",{class:"mb-3 text-decoration-underline-hover cursor-pointer",onClick:t[0]||(t[0]=(...a)=>r.openEditAccountingEmailSidebar&&r.openEditAccountingEmailSidebar(...a))},[c("div",hin,[c("span",fin,m(e.$t("school.manager.tabs.finances.info.accounting_email.title")),1),b(s,{icon:"edit",height:"20",width:"20",class:"text-primary ms-icon"})]),c("span",min,m(e.school.accounting_email?e.school.accounting_email:e.$t("school.manager.tabs.finances.info.accounting_email.no_email")),1)])}const gin=U(uin,[["render",pin]]),vin={computed:{...Oe({school:"school/getDetail"})}},_in={class:"d-flex align-items-center"},yin={class:"text-gray-800 medium"},bin={class:"text-gray-900 large"};function kin(e,t,n,o,i,r){const s=y("app-icon"),a=an("tooltip");return h(),g("div",null,[c("div",_in,[c("span",yin,m(e.$t("school.manager.tabs.finances.info.license_type.title")),1),xe(b(s,{icon:"info-circle",class:"text-primary ms-icon",height:"20",width:"20"},null,512),[[a,{content:e.$t("school.manager.tabs.finances.info.license_type.tooltip",{number:e.school.license_price_multiplier}),delay:{show:500,hide:100},triggers:["hover","click"],classes:["text-start"]}]])]),c("span",bin,m(e.school.license_type_text),1)])}const win=U(vin,[["render",kin]]),$in={components:{OpenSidebarChatLink:sM}},Cin={class:"btn btn-tertiary btn-center btn-sm text-truncate"};function Sin(e,t,n,o,i,r){const s=y("app-icon"),a=y("OpenSidebarChatLink");return h(),W(a,null,{default:F(()=>[c("button",Cin,[b(s,{height:"20",width:"20",icon:"message",class:"me-icon"}),z(" "+m(e.$t("school.manager.tabs.finances.info.request_change")),1)])]),_:1})}const Tin=U($in,[["render",Sin]]),Ein={components:{SchoolInvoiceInfo:Yle,SchoolManagerInfo:din,SchoolAccountantInfo:gin,SchoolLicenseInfo:win,SchoolInvoiceInfoChangeButton:Tin},computed:{...Oe({school:"school/getDetail"})}},Iin={class:"text-gray-800"},Pin={class:"row text-center"};function Ain(e,t,n,o,i,r){const s=y("SchoolInvoiceInfo"),a=y("SchoolInvoiceInfoChangeButton"),l=y("SchoolManagerInfo"),d=y("SchoolAccountantInfo"),u=y("SchoolLicenseInfo");return h(),g("div",null,[c("h5",Iin,m(e.$t("school.manager.tabs.finances.invoice_data.title.text")),1),t[0]||(t[0]=c("hr",{class:"mb-3 mt-3"},null,-1)),b(s,{class:"medium mb-3","margin-between-lines":""}),c("div",Pin,[b(a)]),t[1]||(t[1]=c("hr",{class:"mb-3 mt-3"},null,-1)),b(l,{class:"mb-3"}),b(d,{class:"mb-3"}),t[2]||(t[2]=c("hr",{class:"mb-3 mt-3"},null,-1)),b(u)])}const Din=U(Ein,[["render",Ain]]),xin={components:{ContactEmailAnchor:Xy},props:{mailClass:{type:String,default:"mb-2"},phoneClass:{type:String,default:"mt-3"}}},Oin=["href"];function Lin(e,t,n,o,i,r){const s=y("app-icon"),a=y("ContactEmailAnchor");return h(),g("div",null,[c("div",{class:J(["d-flex align-items-center",n.mailClass])},[b(s,{icon:"mail",height:"24",width:"24",class:"text-primary me-2"}),b(a,{class:"link-dark"})],2),c("div",{class:J(["d-flex align-items-center",n.phoneClass])},[b(s,{icon:"phone",height:"24",width:"24",class:"text-primary me-2"}),c("a",{class:"link-dark",href:"tel:"+e.$t("public.ucitelnice_phone_long")},m(e.$t("public.ucitelnice_phone")),9,Oin)],2)])}const Xle=U(xin,[["render",Lin]]),Min={components:{ContactPhoneEmail:Xle,SchoolFinanceInfo:Din,TabList:qr},data(){return{routes:["skola/sprava/finance/doklady","skola/sprava/finance/mesicni-prehled-nakupu"],titles:[this.$t("school.manager.tabs.finances.tabs.invoice"),this.$t("school.manager.tabs.finances.tabs.monthly_sells")]}}},Nin={class:"row"},Rin={class:"col-12 col-lg-9"},jin={class:"content-box shadow px-4 py-5 mb-4 mb-lg-0"},Fin={class:"d-flex align-items-center mb-4"},zin={class:"mb-0"},Uin=["innerHTML"],Bin={class:"col-12 col-lg-3"},Hin={class:"content-box shadow-mid p-4"},Vin={class:"text-gray-800"};function qin(e,t,n,o,i,r){const s=y("app-icon"),a=y("TabList"),l=y("router-view"),d=y("SchoolFinanceInfo"),u=y("ContactPhoneEmail");return h(),g("div",Nin,[c("div",Rin,[c("div",jin,[c("div",Fin,[b(s,{icon:"school",height:"24",width:"24",class:"text-primary me-2"}),c("h3",zin,m(e.$t("school.manager.tabs.finances.invoices.title")),1)]),c("p",{class:"mb-3",innerHTML:e.$t("school.manager.tabs.finances.invoices.text")},null,8,Uin),b(a,{titles:i.titles,routes:i.routes,"padding-x":0,class:"mb-3"},null,8,["titles","routes"]),b(l)])]),c("div",Bin,[b(d,{class:"content-box shadow-mid p-4 mb-4"}),c("div",Hin,[c("h5",Vin,m(e.$t("faq.need_tips")),1),t[0]||(t[0]=c("hr",{class:"mt-3 mb-3"},null,-1)),b(u)])])])}const Yin=U(Min,[["render",qin]]),Win={components:{AppIcon:Ue},props:{invoice:{type:Object,default:null}},computed:{isPending(){return this.invoice&&(this.invoice.type==="credit"||this.invoice.type==="order")?!this.invoice.invoice_number:!1}},methods:{openSidebarInvoiceDelete(){this.$store.dispatch("sidebar/open",{type:"school-invoice-delete",data:{invoice:this.invoice}})}}},Gin={key:0},Zin={class:"medium text-gray-900"};function Kin(e,t,n,o,i,r){const s=y("AppIcon");return r.isPending?(h(),g("div",Gin,[c("button",{class:"dropdown-item btn-danger d-none d-md-block btn-tertiary d-flex align-items-center",onClick:t[0]||(t[0]=Gt((...a)=>r.openSidebarInvoiceDelete&&r.openSidebarInvoiceDelete(...a),["stop","prevent"]))},[b(s,{icon:"delete",class:"me-2"}),c("span",Zin,m(e.$t("school.manager.tabs.finances.invoices.table.delete")),1)]),c("button",{class:"btn-danger btn-secondary d-md-none btn btn-center w-100",onClick:t[1]||(t[1]=Gt((...a)=>r.openSidebarInvoiceDelete&&r.openSidebarInvoiceDelete(...a),["stop","prevent"]))},[z(m(e.$t("school.manager.tabs.finances.invoices.table.delete"))+" ",1),b(s,{icon:"delete",height:"20",width:"20",class:"ms-icon"})])])):D("",!0)}const Qle=U(Win,[["render",Kin]]),Jin={components:{AppIcon:Ue},computed:{...Oe({invoiceActiveYear:"schoolInvoice/getActiveYear"})},methods:{show(){this.$store.commit("schoolOrder/setSummaryActiveYear",this.invoiceActiveYear),this.$router.push({name:"skola/sprava/finance/mesicni-prehled-nakupu"})}}},Xin={class:"medium text-gray-900"};function Qin(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",null,[c("button",{class:"dropdown-item btn-school-tertiary-important d-none d-md-flex align-items-center",onClick:t[0]||(t[0]=Gt((...a)=>r.show&&r.show(...a),["stop","prevent"]))},[b(s,{icon:"wallet",class:"me-2"}),c("span",Xin,m(e.$t("school.manager.tabs.finances.tabs.monthly_sells")),1)]),c("button",{class:"btn-secondary d-md-none btn btn-center w-100",onClick:t[1]||(t[1]=Gt((...a)=>r.show&&r.show(...a),["stop","prevent"]))},[z(m(e.$t("school.manager.tabs.finances.tabs.monthly_sells"))+" ",1),b(s,{icon:"wallet",height:"20",width:"20",class:"ms-icon"})])])}const ece=U(Jin,[["render",Qin]]),ern={components:{TableButton:Za,SchoolInvoiceDeleteButton:Qle,SchoolOrdersSummaryShowButton:ece},props:{invoice:{type:Object,default:null}},computed:{isPending(){return this.invoice&&(this.invoice.type==="order"||this.invoice.type==="credit")?!this.invoice.invoice_number:!1},showOrdersSummaryButton(){return mt(this.invoice.created_at)>=mt("2023-01-01")},showTableButton(){return this.isPending||this.showOrdersSummaryButton}}};function trn(e,t,n,o,i,r){const s=y("SchoolOrdersSummaryShowButton"),a=y("SchoolInvoiceDeleteButton"),l=y("TableButton");return r.showTableButton?(h(),W(l,{key:0},{default:F(()=>[r.showOrdersSummaryButton?(h(),W(s,{key:0})):D("",!0),r.isPending?(h(),W(a,{key:1,invoice:n.invoice},null,8,["invoice"])):D("",!0)]),_:1})):D("",!0)}const nrn=U(ern,[["render",trn]]),orn={components:{AppIcon:Ue},props:{icon:{type:String,default(){return null}},iconHeight:{type:Number,default(){return 16}},iconWidth:{type:Number,default(){return 16}},buttonHeight:{type:String,default(){return"24px"}},buttonWidth:{type:String,default(){return"24px"}}},computed:{buttonStyle(){let e="";return e+="min-width: "+this.buttonWidth+";",e+="height: "+this.buttonHeight+";",e}}};function irn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn d-flex justify-content-center align-items-center p-0",style:Bn(r.buttonStyle)},[b(s,{icon:n.icon,height:n.iconHeight,width:n.iconWidth},null,8,["icon","height","width"])],4)}const Ag=U(orn,[["render",irn]]),rrn={components:{CircleButtonWithIconOnly:Ag},props:{invoice:[Object,Array],showIcon:{type:Boolean,default:!1},showClose:{type:Boolean,default:!1}},computed:{...Oe({school:"school/getDetail"}),isInvoicePending(){return this.invoice.type==="credit"?!this.invoice.invoice_number:this.invoice.type==="order"?!this.invoice.invoice_number:(this.invoice.type==="summary",!1)},show(){return this.invoice&&this.isInvoicePending}},methods:{close(){this.$emit("close")}}},srn={key:0,class:"medium bg-primary-5 border-radius-8px p-4 position-relative"},arn={class:"mb-2 d-flex align-items-center"},lrn={class:"text-gray-800"},crn={class:"fw-bold"},drn={key:0},urn={class:"fw-bold"},hrn={class:"mt-4 text-gray-800"},frn={class:"row"},mrn={class:"col-12 col-lg-6"},prn={class:"fw-bold text-gray-900 mb-3 mt-1"},grn={class:"fw-bold text-gray-900 mb-3 mt-1"},vrn={class:"fw-bold text-gray-900 mt-1"},_rn={class:"col-12 col-lg-6 mt-3 mt-lg-0"},yrn=["src"];function brn(e,t,n,o,i,r){const s=y("CircleButtonWithIconOnly"),a=y("app-icon");return r.show?(h(),g("div",srn,[n.showClose?(h(),W(s,{key:0,class:"btn-secondary position-absolute top-0 start-0 m-2",icon:"close",onClick:r.close},null,8,["onClick"])):D("",!0),c("h5",arn,[n.showIcon?(h(),W(a,{key:0,icon:"check-fill",class:"me-2 text-success",height:"20",width:"20"})):D("",!0),z(" "+m(e.$t("school.manager.tabs.finances.credit_order.success_text.title")),1)]),c("div",lrn,[z(m(e.$t("school.manager.tabs.finances.credit_order.success_text.text_1"))+" ",1),c("span",crn,m(e.school.manager?e.school.manager.email:""),1),e.school.accounting_email?(h(),g("span",drn,[z(m(" "+e.$t("public.and")+" ")+" ",1),c("span",urn,m(e.school.accounting_email+" "),1)])):D("",!0),z(" "+m(e.$t("school.manager.tabs.finances.credit_order.success_text.text_2")),1)]),c("div",hrn,[c("div",frn,[c("div",mrn,[c("div",null,m(e.$t("school.manager.tabs.finances.credit_order.success_text.payment_info.account_number")),1),c("div",prn,m(e.$t("public.account_no")),1),c("div",null,m(e.$t("school.manager.tabs.finances.credit_order.success_text.payment_info.variable_symbol")),1),c("div",grn,m(n.invoice.number),1),c("div",null,m(e.$t("school.manager.tabs.finances.credit_order.success_text.payment_info.amount")),1),c("div",vrn,m(n.invoice.amount.toLocaleString()+" "+e.$t("currency.short")),1)]),c("div",_rn,[c("div",null,m(e.$t("school.manager.tabs.finances.credit_order.success_text.payment_info.qr")),1),c("img",{src:n.invoice.qr,height:"128",width:"128",class:"mt-1",alt:"QR"},null,8,yrn)])])])])):D("",!0)}const tce=U(rrn,[["render",brn]]),krn={computed:{...Oe({allFirstYear:"schoolInvoice/getAllFirstYear"})}};function wrn(e,t,n,o,i,r){const s=y("app-icon");return e.allFirstYear<2023?(h(),g("button",{key:0,onClick:t[0]||(t[0]=a=>e.$router.push({name:"skola/sprava/finance/doklady/archiv"})),class:"btn btn-sm btn-center btn-tertiary"},[z(m(e.$t("invoices.archive_showe"))+" ",1),b(s,{icon:"new-tab",class:"ms-icon"})])):D("",!0)}const $rn=U(krn,[["render",wrn]]),Crn={components:{Loading:Rt,FlexTableRow:ni,FlexTableHead:ti,YearSelect:lM,SchoolInvoiceProformaDownloadButton:Hle,TransitionCollapseHeight:qo,SchoolInvoiceTableButton:nrn,SchoolInvoiceDeleteButton:Qle,SchoolInvoiceDownloadButton:Vle,SchoolInvoicePaymentRequest:tce,SchoolInvoiceTypePill:qle,SchoolOrdersSummaryShowButton:ece,SchoolInvoiceArchiveShowButton:$rn},data(){return{primaryColor:window.primaryColor,lastYear:new Date().getFullYear(),openedItem:-1,moment:mt}},computed:{...Oe({auth:"auth/auth",loading:"schoolInvoice/getLoading",invoices:"schoolInvoice/getList",firstYear:"schoolInvoice/getFirstYear",allFirstYear:"schoolInvoice/getAllFirstYear"}),activeYear:{get(){return this.$store.getters["schoolInvoice/getActiveYear"]},set(e){this.$store.commit("schoolInvoice/setActiveYear",e)}}},methods:{load(){this.$store.dispatch("schoolInvoice/index",{year:this.activeYear})},onUpdateActive(e){this.activeYear=e,this.load()},toggleOpen(e){this.openedItem===e?this.openedItem=-1:this.openedItem=e},showOrdersSummaryButton(e){return mt(e.created_at)>=mt("2023-01-01")}},mounted(){this.$store.dispatch("schoolInvoice/firstYear"),this.load()}},Srn={class:"row justify-content-between align-items-center mb-3"},Trn={class:"col-12 col-lg-4"},Ern={key:0,class:"col-12 col-lg-auto mt-3 mt-lg-0"},Irn={class:"col-12 d-md-none"},Prn={class:"col-2 d-none d-md-block"},Arn={class:"col-2 d-none d-md-block"},Drn={class:"col-2 d-none d-md-block ps-4"},xrn={class:"col-3 d-none d-md-block"},Orn={class:"col-3 d-none d-md-block"},Lrn={key:0,class:"vl-parent mh-5"},Mrn={key:1},Nrn={key:0,class:"text-center text-gray-600 mt-3 mb-0"},Rrn=["onClick"],jrn={class:"col-auto col-md-2"},Frn={class:"col-auto col-md-2"},zrn={class:"d-md-none"},Urn={class:"col-2 d-none d-md-block ps-4"},Brn={class:"col-3 d-none d-md-block"},Hrn={class:"col-3 d-none d-md-flex align-items-start align-items-md-center justify-content-between"},Vrn={class:"rounded bg-primary-5 mt-3"},qrn={class:"row p-3"},Yrn={class:"col-6 mb-4"},Wrn={class:"text-gray-600"},Grn={class:"col-6 mb-4"},Zrn={class:"text-gray-600"},Krn={class:"col-6 mb-4"},Jrn={class:"text-gray-600"},Xrn={class:"col-12"},Qrn={class:"col-12"};function esn(e,t,n,o,i,r){const s=y("YearSelect"),a=y("SchoolInvoiceArchiveShowButton"),l=y("FlexTableHead"),d=y("Loading"),u=y("SchoolInvoiceTypePill"),f=y("SchoolInvoiceProformaDownloadButton"),p=y("SchoolInvoiceDownloadButton"),v=y("SchoolInvoiceTableButton"),_=y("SchoolInvoicePaymentRequest"),k=y("SchoolOrdersSummaryShowButton"),C=y("SchoolInvoiceDeleteButton"),$=y("TransitionCollapseHeight"),E=y("FlexTableRow");return h(),g("div",null,[c("div",Srn,[c("div",Trn,[b(s,{default:r.activeYear,first:e.firstYear,last:i.lastYear,onYearChange:r.onUpdateActive},null,8,["default","first","last","onYearChange"])]),e.allFirstYear<2023?(h(),g("div",Ern,[b(a)])):D("",!0)]),b(l,null,{default:F(()=>[c("div",Irn,m(e.$t("invoices.title")),1),c("div",Prn,m(e.$t("school.manager.tabs.finances.invoices.table.date")),1),c("div",Arn,m(e.$t("school.manager.tabs.finances.invoices.table.type")),1),c("div",Drn,m(e.$t("school.manager.tabs.finances.invoices.table.amount")),1),c("div",xrn,m(e.$t("school.manager.tabs.finances.invoices.table.proforma_invoice")),1),c("div",Orn,m(e.$t("school.manager.tabs.finances.invoices.table.invoice")),1)]),_:1}),e.loading?(h(),g("div",Lrn,[b(d,{active:e.loading,"onUpdate:active":t[0]||(t[0]=P=>e.loading=P),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):(h(),g("div",Mrn,[e.invoices.length?D("",!0):(h(),g("p",Nrn,m(e.$t("public.record_not_foud")),1)),(h(!0),g(pe,null,Me(e.invoices,(P,I)=>(h(),g("div",{key:I,onClick:O=>r.toggleOpen(I)},[b(E,{class:J([{"border-none":I===e.invoices.length-1},"justify-content-between flex-row-reverse flex-md-row"])},{default:F(()=>[c("div",jrn,m(i.moment(P.created_at).format("DD. MM. YYYY")),1),c("div",Frn,[b(u,{class:"d-none d-md-inline",type:P.type},null,8,["type"]),c("span",zrn,m(e.$tm("school.manager.tabs.finances.invoices.type")[P.type]),1)]),c("div",Urn,m(P.amount.toLocaleString()+" "+e.$t("currency.short")),1),c("div",Brn,[b(f,{invoice:P},null,8,["invoice"])]),c("div",Hrn,[b(p,{invoice:P},null,8,["invoice"]),b(v,{invoice:P},null,8,["invoice"])]),b(_,{class:"d-none d-md-block mt-3",invoice:P},null,8,["invoice"]),b($,{class:"d-block d-md-none"},{default:F(()=>[xe(c("div",null,[b(_,{class:"mt-3",invoice:P},null,8,["invoice"]),c("div",Vrn,[c("div",qrn,[c("div",Yrn,[c("div",Wrn,m(e.$t("school.manager.tabs.finances.invoices.table.amount")),1),z(" "+m(P.amount.toLocaleString()+" "+e.$t("currency.short")),1)]),c("div",Grn,[c("div",Zrn,m(e.$t("school.manager.tabs.finances.invoices.table.order_number")),1),b(f,{invoice:P},null,8,["invoice"])]),c("div",Krn,[c("div",Jrn,m(e.$t("school.manager.tabs.finances.invoices.table.invoice")),1),b(p,{invoice:P},null,8,["invoice"])]),c("div",Xrn,[r.showOrdersSummaryButton?(h(),W(k,{key:0})):D("",!0)]),c("div",Qrn,[b(C,{invoice:P,class:J(["w-100",{"mt-2 mt-md-0":r.showOrdersSummaryButton}])},null,8,["invoice","class"])])])])],512),[[Vo,i.openedItem===I]])]),_:2},1024)]),_:2},1032,["class"])],8,Rrn))),128))]))])}const tsn=U(Crn,[["render",esn]]),nsn={components:{AppIcon:Ue},props:{summary:Object}},osn={key:0},isn=["href"],rsn=["href"];function ssn(e,t,n,o,i,r){const s=y("AppIcon");return n.summary.total>0?(h(),g("div",osn,[c("a",{href:n.summary.pdf_url,class:"btn btn-sm btn-center btn-tertiary d-none d-md-inline-flex",target:"_blank"},[z(m(e.$t("download.download"))+" ",1),b(s,{icon:"download",class:"ms-icon"})],8,isn),c("a",{href:n.summary.pdf_url,class:"btn btn-center btn-secondary d-md-none w-100",target:"_blank"},[z(m(e.$t("download.download"))+" ",1),b(s,{icon:"download",class:"ms-icon"})],8,rsn)])):D("",!0)}const asn=U(nsn,[["render",ssn]]),lsn={components:{Loading:Rt,FlexTableRow:ni,FlexTableHead:ti,YearSelect:lM,TransitionCollapseHeight:qo,SchoolOrdersSummaryDownloadButton:asn},data(){return{primaryColor:window.primaryColor,lastYear:new Date().getFullYear(),openedItem:-1,moment:mt}},computed:{...Oe({auth:"auth/auth",loading:"schoolOrder/getSummaryLoading",summaries:"schoolOrder/getSummaryList",firstYear:"schoolOrder/getSummaryFirstYear"}),activeYear:{get(){return this.$store.getters["schoolOrder/getSummaryActiveYear"]},set(e){this.$store.commit("schoolOrder/setSummaryActiveYear",e)}}},methods:{load(){this.$store.dispatch("schoolOrder/summaryIndex",{year:this.activeYear})},onUpdateActive(e){this.activeYear=e,this.load()},toggleOpen(e){this.openedItem===e?this.openedItem=-1:this.openedItem=e}},mounted(){this.$store.dispatch("schoolOrder/firstYear"),this.load(),this.moment.updateLocale("cs",{months:this.$tm("public.months")})}},csn={class:"row mb-3"},dsn={class:"col-12 col-lg-4"},usn={class:"col-12 d-md-none"},hsn={class:"col-3 d-none d-md-block"},fsn={class:"col-3 d-none d-md-block text-end"},msn={class:"col-3 d-none d-md-block text-end"},psn={class:"col-3 d-none d-md-block text-end"},gsn={key:0,class:"vl-parent mh-5"},vsn={key:1},_sn={key:0,class:"text-center text-gray-600 mt-3 mb-0"},ysn=["onClick"],bsn={class:"col-3"},ksn={class:"col-3 d-none d-md-block text-end"},wsn={class:"col-3 d-none d-md-block text-end"},$sn={class:"col-3 d-none d-md-block text-end"},Csn={class:"rounded bg-primary-5 mt-3"},Ssn={class:"row p-3"},Tsn={class:"col-6 mb-4"},Esn={class:"text-gray-600"},Isn={class:"col-6 mb-4"},Psn={class:"text-gray-600"},Asn={class:"col-12"};function Dsn(e,t,n,o,i,r){const s=y("YearSelect"),a=y("FlexTableHead"),l=y("Loading"),d=y("SchoolOrdersSummaryDownloadButton"),u=y("TransitionCollapseHeight"),f=y("FlexTableRow");return h(),g("div",null,[c("div",csn,[c("div",dsn,[b(s,{default:r.activeYear,first:e.firstYear,last:i.lastYear,onYearChange:r.onUpdateActive},null,8,["default","first","last","onYearChange"])])]),b(a,null,{default:F(()=>[c("div",usn,m(e.$t("public.overviews")),1),c("div",hsn,m(e.$t("school.manager.tabs.finances.orders_summary.table.month")),1),c("div",fsn,m(e.$t("school.manager.tabs.finances.orders_summary.table.product_count")),1),c("div",msn,m(e.$t("school.manager.tabs.finances.orders_summary.table.spent")),1),c("div",psn,m(e.$t("school.manager.tabs.finances.orders_summary.table.invoice")),1)]),_:1}),e.loading?(h(),g("div",gsn,[b(l,{active:e.loading,"onUpdate:active":t[0]||(t[0]=p=>e.loading=p),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):(h(),g("div",vsn,[e.summaries.length?D("",!0):(h(),g("p",_sn,m(e.$t("public.record_not_foud")),1)),(h(!0),g(pe,null,Me(e.summaries,(p,v)=>(h(),g("div",{key:v,onClick:_=>r.toggleOpen(v)},[b(f,{class:J({"border-none":v===e.summaries.length-1})},{default:F(()=>[c("div",bsn,m(i.moment(p.created_at).format("MMMM YYYY")),1),c("div",ksn,m(p.order_items_count.toLocaleString()),1),c("div",wsn,m(p.total.toLocaleString()+" "+e.$t("currency.short")),1),c("div",$sn,[b(d,{summary:p},null,8,["summary"])]),b(u,{class:"d-block d-md-none"},{default:F(()=>[xe(c("div",Csn,[c("div",Ssn,[c("div",Tsn,[c("div",Esn,m(e.$t("school.manager.tabs.finances.orders_summary.table.product_count")),1),z(" "+m(p.order_items_count.toLocaleString()),1)]),c("div",Isn,[c("div",Psn,m(e.$t("school.manager.tabs.finances.orders_summary.table.spent")),1),z(" "+m(p.total.toLocaleString()+" "+e.$t("currency.short")),1)]),c("div",Asn,[b(d,{summary:p},null,8,["summary"])])])],512),[[Vo,i.openedItem===v]])]),_:2},1024)]),_:2},1032,["class"])],8,ysn))),128))]))])}const xsn=U(lsn,[["render",Dsn]]),Osn={components:{SchoolDownloads:sA},props:{query:{type:Object,default(){return{text:"",category:""}}}}},Lsn={class:"col-12"},Msn={class:"content-box shadow px-4 py-5 vl-parent"},Nsn={class:"mb-5"};function Rsn(e,t,n,o,i,r){const s=y("SchoolDownloads");return h(),g("div",Lsn,[c("div",Msn,[c("h3",Nsn,m(e.$t("school.manager.tabs.downloads.headline")),1),b(s,{query:n.query},null,8,["query"])])])}const jsn=U(Osn,[["render",Rsn]]),Fsn={props:{hasSchool:{type:Boolean,default(){return!1}}}},zsn={class:"download-page mt-5 mb-6rem"},Usn={class:"row"},Bsn={class:"col-12 mb-5"},Hsn={class:"mb-4"},Vsn={id:"tabs",class:"tabs"},qsn={class:"tabList"},Ysn=["onClick"],Wsn=["onClick"];function Gsn(e,t,n,o,i,r){const s=y("router-link"),a=y("router-view");return h(),g("div",zsn,[c("div",Usn,[c("div",Bsn,[c("h2",Hsn,m(e.$t("download.headline")),1),c("div",Vsn,[c("ul",qsn,[b(s,{to:{name:"/zakoupene-materialy/osobni"},custom:""},{default:F(({isActive:l,navigate:d})=>[c("li",{onClick:d,class:J([l&&"active"])},m(e.$t("download.tabs.user")),11,Ysn)]),_:1}),n.hasSchool?(h(),W(s,{key:0,to:{name:"/zakoupene-materialy/skolni"},custom:""},{default:F(({isActive:l,navigate:d})=>[c("li",{onClick:d,class:J([l&&"active"])},m(e.$t("download.tabs.school")),11,Wsn)]),_:1})):D("",!0)])])])]),b(a)])}const Zsn=U(Fsn,[["render",Gsn]]),nce={general:{1:{short:"NemĹŻĹľu se dostat k zakoupenĂ©mu materiálu na svĂ©m uĹľivatelskĂ©m účtu.",long:'<p>NejÄŤastÄ›jšĂm dĹŻvodem je pĹ™ihlášenĂ pod jinĂ˝m uĹľivatelskĂ˝m profilem. Zkontrolujte, zda zadáváte stejnĂ˝ e-mail, na kterĂ˝ vám pĹ™išlo potvrzenĂ objednávky a pod tĂmto e-mailem se pĹ™ihlaste.</p><p>Všechny vaše materiály naleznete na svĂ©m uĹľivatelskĂ©m účtu v sekci <a href="https://www.ucitelnice.cz/profil/materialy/osobni">ZakoupenĂ© materiály</a>.</p>'},2:{short:" NemĹŻĹľu se pĹ™ihlásit do svĂ©ho uĹľivatelskĂ©ho účtu.",long:'<p>PravdÄ›podobnÄ› jste nedokonÄŤili registraci v aktivaÄŤnĂm e-mailu. Vyhledejte aktivaÄŤnĂ e-mail ve vašà e-mailovĂ© schránce - ÄŤasto padá do spamu nebo do nevyžádanĂ© pošty a dokonÄŤete registraci.</p><p>E-mail jste nenašli nebo platnost odkazu vypršela? Napište nám na <a href="mailto:info@ucitelnice.cz">info@ucitelnice.cz</a>, účet vám aktivujeme.</p>'},3:{short:"Jsem na UÄŤitelnici poprvĂ©. Jak si koupĂm materiál?",long:'<p>Na UÄŤitelnici nabĂzĂme pouze materiály v digitálnĂ podobÄ› (PDF, obrázky, prezentace,...). Po zaplacenĂ objednávky vám obratem pošleme e-mail s odkazem, ze kterĂ©ho si materiál stáhnete a mĹŻĹľete ho rovnou vytisknout a pouĹľĂt.</p><p>ZakoupenĂ© materiály najdete na svĂ©m uĹľivatelskĂ©m účtu v sekci <a href="https://www.ucitelnice.cz/profil/materialy/osobni">ZakoupenĂ© materiály</a>. Stáhnout si je mĹŻĹľete kdykoliv, opakovanÄ›, z jakĂ©hokoliv zaĹ™ĂzenĂ a to vÄŤetnÄ› aktualizacĂ autorem.</p>'},4:{short:"Chci nabĂzet svĂ© materiály na UÄŤitelnici. Jak se stanu autorem?",long:'<p>To máme radost, Ĺľe se o svĂ© materiály chcete podÄ›lit s ostatnĂmi uÄŤiteli v ÄŚesku. Sepsali jsme <a href="/stat-se-autorem">struÄŤnĂ˝ návod</a>, co to obnášà bĂ˝t autorem. Tam najdete všechny podrobnosti i odkaz k registraci.</p>'},5:{short:"JakĂ© nabĂzĂte moĹľnosti platby?",long:'<p class="h5 fw-bold">Platba kreditem</p><p>Toto je nejlepšà zpĹŻsob, pokud materiály kupujete prĹŻběžnÄ›. <a href="/dobiti-kreditu">Kredit si mĹŻĹľete dobĂt ve svĂ©m účtu</a>. Po pĹ™ipsánĂ platby uvidĂte dostupnĂ˝ kredit v záhlavĂ stránky a v košĂku ho vyuĹľijete kliknutĂm na tlaÄŤĂtko Uhradit z kreditu.</p><hr><p class="h5 fw-bold">Jednorázová objednávka</p><p>Obsah košĂku mĹŻĹľete zaplatit i jednorázovÄ›. KliknutĂm na tlaÄŤĂtko PĹ™ejĂt k platbÄ› se dostanete k vĂ˝bÄ›ru platebnĂ metody. Máte na vĂ˝bÄ›r nÄ›kolik moĹľnostĂ:<ul><li>platebnĂ kartou online (ihned)</li><li>online bankovnĂm pĹ™evodem (ihned) - 8 podporovanĂ˝ch bank</li><li>standardnĂ bankovnĂ pĹ™evod (nejpozdÄ›ji do 2 pracovnĂch dnĹŻ, obvykle dĹ™Ăve)</li></p>'},6:{short:"Jsem ze Slovenska. MĹŻĹľu si takĂ© materiály koupit?",long:'<p>ZatĂm bohuĹľel nenabĂzĂme moĹľnost platby pĹ™Ămo v eurech. PĹ™esto si všechny materiály mĹŻĹľete zakoupit i ze Slovenska. Máte na vĂ˝bÄ›r ze dvou moĹľnostĂ:</p><p class="h5 fw-bold">1) PlatebnĂ kartou online (jednorázovĂ˝ nákup)</p><p>StandardnÄ› si vyberte materiály a vloĹľte je do košĂku. Cena bude v ÄŤeskĂ˝ch korunách (CZK). PĹ™i platbÄ› kartou online, banka automaticky provede smÄ›nu podle aktuálnĂho kurzu. Kartou si mĹŻĹľete i <a href="/dobiti-kreditu">dobĂt kredit</a> pro snadnÄ›jšà pravidelnĂ© nákupy.</p><p class="h5 fw-bold">2) DobitĂ kreditu bankovnĂm pĹ™evodem (pravidelnĂ© nákupy)</p><p>Na svĹŻj účet si mĹŻĹľete dobĂt kredit, kterĂ˝ pouĹľijete k ĂşhradÄ› materiálĹŻ. NemusĂte ho vyÄŤerpat celĂ˝ najednou, ale postupnÄ›.</p><p class="fw-bold">Jak dobĂt kredit bankovnĂm pĹ™evodem?</p><p>IBAN: CZ0220100000002901717999 (ÄŤeskĂ˝ účet - pozor na poplatky, nÄ›kterĂ© banky účtujĂ i platby do ÄŤeska jako zahraniÄŤĂ)</p><p>VariabilnĂ symbol: najdete na stránce <a href="/dobiti-kreditu" target="_blank">DobĂt kredit</a>.<br>Pošlete libovolnou částku a dobijeme kredit v takovĂ© výši, jaká nám pĹ™ijde na účet.</p>'},7:{short:"Kde najdu daĹovĂ˝ doklad?",long:'<p>DaĹovĂ˝ doklad vystavujeme ihned po zaplacenĂ a pošleme vám ho na email. Všechny doklady najdete takĂ© pĹ™ehlednÄ› ve svĂ©m účtu na stránce <a href="/profil/doklady">Doklady a objednávky</a>. PodĂvejte se takĂ©, jak fungujĂ daĹovĂ© doklady ke školnĂm účtĹŻm.</p>'},8:{short:"Soubor se zakoupenĂ˝m materiálem mi nejde otevĹ™Ăt. Co s tĂm?",long:'<p>Toto jsou nejÄŤastÄ›jšà pĹ™ĂÄŤiny, kterĂ© pomohou vyĹ™ešit vÄ›tšinu problĂ©mĹŻ.</p><ul><li>Chyba pĹ™i stahovánĂ. MĹŻĹľe se stát hlavnÄ› u objemnĂ˝ch souborĹŻ, jejichĹľ staĹľenĂ trvá dĂ©le. StáhnÄ›te si produkt znovu v sekci <a href="/zakoupene-materialy" target="_blank">ZakoupenĂ© materiály.</a></li><li>Soubor je zabalen v ZIP archivu. Je nutnĂ© ho nejdĹ™Ăve “rozbalit”. <a href="https://www.tipypropc.cz/umite-rozbalit-zip/" target="_blank">Postupujte podle návodu zde.</a></li><li>OtevĂráte soubor ve špatnĂ©m programu nebo vhodnĂ˝ program nemáte nainstalovanĂ˝. V souvisejĂcĂm ÄŤlánku si najdete, kterĂ˝ program je vhodnĂ˝ pro správnĂ© otevĹ™enĂ souboru.</li><li>Pokud výše zmĂnÄ›nĂ© rady nepomohly, <a href="/informace/kontakt" target="_blank">ozvÄ›te se nám</a>.</li></ul>'},9:{short:"Jedno PDF mi nejde vytisknout, pĹ™itom ostatnĂ fungujĂ v pořádku. Co s tĂm? ",long:'<p>Z 99 % je na vinÄ› PDF prohlĂĹľeÄŤ, kterĂ˝ si nerozumĂ s ovladaÄŤem od tiskárny. I kdyĹľ vám ostatnĂ PDF fungujĂ v pořádku, jedno mĹŻĹľe dÄ›lat problĂ©my. PĹ™ĂÄŤinou je obvykle neaktualizovanĂ˝ program.</p><p>DoporuÄŤujeme jedno z následujĂcĂch Ĺ™ešenĂ:</p><ul><li>Nainstalovat jinĂ˝ prohlĂĹľeÄŤ. DoporuÄŤujeme <a href="https://foxit-reader.en.softonic.com/download" target="_blank">Foxit Reader</a> - je rychlĂ˝, nenároÄŤnĂ˝ a zdarma.</li><li>PouĹľijte webovĂ˝ prohlĂĹľeÄŤ pro prohlĂĹľenĂ PDF (vhodnĂ©, pokud nemáte právo instalovat, napĹ™. ve škole)<ul><li>Návod: kliknÄ›te na PDF pravĂ˝m tlaÄŤĂtkem -> OtevĹ™Ăt v programu -> Vyberte program napĹ™. Microsoft Edge nebo Google Chrome.</li></ul></li><li>Aktualizovat Adobe Acrobat Reader. <a href="https://get.adobe.com/cz/reader/" target="_blank">NejnovÄ›jšà verzi najdete zde.</a></li>'},10:{short:"V jakĂ©m programu mám staĹľenĂ˝ soubor otevĹ™Ăt?",long:'<p class="mb-0 fw-bold">ZIP soubory</p><ul><li>Soubor typu ZIP (takzvanĂ˝ archiv) je jakĂ˝si balĂÄŤek, kterĂ˝ umoĹľĹuje sbalit nÄ›kolik souborĹŻ i sloĹľek do jedinĂ©ho souboru a vĂ˝znamnÄ› zmenšit jejich velikost.</li><li>SouÄŤasnĂ© verze Windows umĂ otevĹ™Ăt ZIP archiv automaticky. PĹ™esto doporuÄŤuji všechny soubory nejprve extrahovat. <a href="https://www.tipypropc.cz/umite-rozbalit-zip/" target="_blank">PodrobnĂ˝ návod najdete zde.</a></li></ul><p class="mb-0 fw-bold">PDF soubory</p><p class="mb-0">Soubor typu PDF mĹŻĹľe obsahovat text i obrázky, pĹ™iÄŤemĹľ tento formát zajišťuje, Ĺľe se libovolnĂ˝ dokument na všech zaĹ™ĂzenĂch zobrazĂ stejnÄ›. Proto pĹ™evážnou vÄ›tšinu materiálĹŻ na UÄŤitelnici najdete právÄ› v tomto formátu.</p><ul><li>Adobe Acrobat Reader<ul><li>Toto je nejrozšĂĹ™enÄ›jšà program na PDF. DoporuÄŤuji ho mĂt vĹľdy aktualizovanĂ˝, aby nedocházelo k chybám pĹ™i tisku (nejde tisknout, tiskne se část nebo nÄ›co jinĂ©ho). PodrobnÄ›jšà informace najdete v ÄŤlánku <i>Jedno PDF mi nejde vytisknout, pĹ™itom ostatnĂ fungujĂ v pořádku. Co s tĂm?</i></li></ul></li><li>Foxit Reader<ul><li>Jako dobrou alternativu mĹŻĹľeme doporuÄŤit Foxit Reader. Aplikace je rychlá, univerzálnĂ a zdarma. Stáhnout a nainstalovat si ho mĹŻĹľete <a href="https://www.foxit.com/pdf-reader/" target="_blank">ze stránek vĂ˝robce</a>.</li></ul></li><li>WebovĂ˝ prohlĂĹľeÄŤ<ul><li>Dnes kaĹľdĂ˝ běžnĂ˝ webovĂ˝ prohlĂĹľeÄŤ (Google Chrome, Microsoft Edge, Mozilla Firefox) umĂ zobrazit PDF soubory.</li><li>Pokud PDF chcete otevĹ™Ăt v prohlĂĹľeÄŤi, kliknÄ›te pravĂ˝m tlaÄŤĂtkem na PDF, vyberte OtevĹ™Ăt v programu a zvolte vybranĂ˝ prohlĂĹľeÄŤ. Pokud nebude v nabĂdce, zvolte Zvolit jinou aplikaci a vyberte prohlĂĹľeÄŤ.</li></ul></li></ul><p class="mb-0 fw-bold">PowerPoint (pptx, ppsx, ppt, pps)</p><ul><li>Soubory tohoto typu jsou optimalizovány pouze pro program Microsoft PowerPoint. Pokud vaše škola licenci k tomuto programu nevlastnĂ, lze stáhnout a nainstalovat PowerPoint Viewer, kterĂ˝ umoĹľnĂ prezentace pĹ™ehrát a tisknout (nelze editovat)</li><li>Microsoft uĹľ tento program oficiálnÄ› nepodporuje a mohou se tak objevit pĹ™ĂpadnĂ© chyby nebo nekompatibilita.</li><li>PĹ™i pouĹľitĂ jinĂ˝ch alternativnĂch programĹŻ nemĹŻĹľeme zaruÄŤit správnou funkÄŤnost zakoupenĂ©ho produktu.</li></ul><p class="mb-0 fw-bold">Obrázky (png, jpg)</p><ul><li>JakĂ©koliv obrázky umĂ otevĹ™Ăt samotnĂ© Windows (pĹ™ĂpadnÄ› jinĂ˝ OS). Pokud vám nejde mezi obrázky plynule pĹ™epĂnat, máte je pravdÄ›podobnÄ› ještÄ› zazipovanĂ©.</li><li>Návod jak je extrahovat najdete výše, v kapitole ZIP soubory.</li></ul><p class="mb-0 fw-bold">ChytrĂ© tabule (notebook)</p><ul><li>Formát NOTEBOOK souboru je spojen s SMART Notebook software. Tento software umoĹľĹuje uÄŤitelĹŻm vytvářet dynamickĂ© uÄŤebnĂ a pĹ™ednáškovĂ© materiály. Obsahuje poznámky, diagramy, obrázky, audio, video, flash animace.</li><li>VĂce informacĂ, jak se souborem pracovat, najdete na následujĂcĂm odkazu: <a href="https://www.reviversoft.com/cs/file-extensions/notebook" target="_blank">https://www.reviversoft.com/cs/file-extensions/notebook</a></li></ul>'},11:{short:"Co kdyĹľ najdu v zakoupenĂ©m materiálu chybu?",long:'<p>Máte-li k zakoupenĂ©mu materiálu jakoukoliv pĹ™ipomĂnku, dejte nám o tom vÄ›dÄ›t a materiál reklamujte.</p><p>Jak na to?</p><ul><li>V sekci <a href="https://www.ucitelnice.cz/profil/materialy" target="_blank">ZakoupenĂ© materiály</a>, kliknÄ›te na řádek s materiálem, kterĂ˝ chcete reklamovat.</li><li>RozbalĂ se vám podrobnÄ›jšà informace vÄŤetnÄ› tlaÄŤĂtka - Reklamovat.</li><li>V dalšĂm kroku vyberte z nabĂdky, co s materiálem nenĂ v pořádku.</li><li>ÄŚĂm podrobnÄ›ji popĂšete problĂ©m popĂšete, tĂm rychleji to pro vás vyĹ™ešĂme.</li></ul><p class="mb-0">Pokud chcete naopak materiál ocenit. VyuĹľijte na stejnĂ©m mĂstÄ› tlaÄŤĂtko - Hodnotit. AutoĹ™i dĂky vašemu hodnocenĂ zjistĂ, jak se vám s materiálem pracuje a pomĹŻĹľete tĂm i ostatnĂ nakupujĂcĂm.</p>'},12:{short:"Chci zmÄ›nit fakturaÄŤnĂ Ăşdaje na faktuĹ™e. Je to problĂ©m?",long:'FakturaÄŤnĂ Ăşdaje vám bez problĂ©mĹŻ zmÄ›nĂme i na jiĹľ vystavenĂ˝ch dokladech, podle vašich potĹ™eb. Zvládnete to i sami v <a href="https://www.ucitelnice.cz/profil/nastaveni/fakturacni-udaje" target="_blank">nastavenĂ svĂ©ho účtu</a>, nebo nám napište na <a href="mailto:info@ucitelnice.cz">info@ucitelnice.cz</a> a my to pro vás udÄ›láme.'}},author:{1:{short:"Mohu i já prodávat materiály na UÄŤitelnici? A jakĂ©?",long:"<p>Ano, pokud máte digitálnĂ materiály do vĂ˝uky, kterĂ© se vám v praxi osvÄ›dÄŤily a chcete je nabĂdnout ostatnĂm uÄŤitelĹŻm.</p><p>Velmi dbáme na kvalitu a proto se nahranĂ© materiály zveĹ™ejnĂ aĹľ po schválenĂ. PĹ™i tvorbÄ› materiálu byste nemÄ›li zapomenout na:</p><ul><li>Popis a návod pro zákaznĂky, jak s materiálem pracovat.</li><li>Zdroj obrázkĹŻ</li><li>PĹ™idanou hodnotu (pomĹŻĹľe to tÄ›m, kteřà si ho koupĂ?)</li>"},2:{short:"Co vám UÄŤitelnice nabĂzĂ?",long:'<ul><li><span class="fw-bold">SnadnĂ˝ prodej</span> Vašich materiálĹŻ dĂky mnoha vÄ›rnĂ˝m zákaznĂkĹŻm (4 000 lidĂ se dennÄ› poohlĂžà po zajĂmavĂ˝ch materiálech).</li><li><span class="fw-bold">ZpÄ›tná vazba.</span> PoradĂme Vám, jak Váš materiál vylepšit, aby byl co nejĂşspěšnÄ›jšĂ.</li><li><span class="fw-bold">Jsme tu pro Vás</span> - mĹŻĹľete se na nás kdykoliv obrátit pro radu nebo o pomoc, dále zĂskáte pĹ™Ăstup do facebookovĂ© skupiny autorĹŻ, kde mĹŻĹľete diskutovat s kolegy.</li><li><span class="fw-bold">Vše probĂhá automaticky</span>, po nahránĂ produktu uĹľ se nemusĂte o nic starat.</li><li><span class="fw-bold">VyúčtovánĂ</span> vašich prodejĹŻ obdrĹľĂte vĹľdy na konci mÄ›sĂce.</li></ul>'},3:{short:"Kolik mÄ› prodej na UÄŤitelnici bude stát?",long:"<p>DopĹ™edu neplatĂte vĹŻbec nic! Z kaĹľdĂ©ho pĹ™ĂpadnĂ©ho prodeje materiálu jde 70 % Vám a 30 % UÄŤitelnici. A to se vyplatĂ alespoĹ zkusit!</p>"},4:{short:"Kolik prodejĹŻ mĹŻĹľu oÄŤekávat?",long:"<p>Materiály prodávanĂ© na UÄŤitelnici majĂ standardnÄ› desĂtky aĹľ stovky prodejĹŻ.</p>"},5:{short:"Jak zjistĂm, kolik produktĹŻ si ode mne zákaznĂci koupili?",long:"<p>Jako autor mĹŻĹľete ve svĂ©m účtu kaĹľdĂ˝ den sledovat statistiky svĂ˝ch prodejĹŻ. DozvĂte se napĹ™. kterĂ©mu produktu se nejlĂ©pe daĹ™ilo za poslednĂ mÄ›sĂc nebo tĂ˝den a kolik produktĹŻ jste prodali pĹ™edchozĂ den. Na konci kaĹľdĂ©ho mÄ›sĂce Vám pošleme vyúčtovánĂ s celkovĂ˝m pĹ™ehledem.</p>"},6:{short:"PotĹ™ebuji ĹľivnostenskĂ˝ list?",long:'<p>NepotĹ™ebujete. Máte dvÄ› moĹľnosti: buÄŹ prodávat jako OSVÄŚ (s ĹľivnostenskĂ˝m listem) nebo jako autor (osoba podnikajĂcĂ podle autorskĂ©ho zákona). AutorskĂ˝ zákon totiĹľ neplatĂ jen pro umÄ›lce, ale pro kaĹľdĂ©ho autora, tedy i pro vás. <a href="http://freelanczer.cz/zalozeni-podnikani/podnikani-podle-zivnostenskeho-zakona-vs-provozovani-cinnosti-podle-autorskeho-zakona/" target="_blank">DoporuÄŤujeme se podĂvat na srovnánĂ obou moĹľnostĂ.</a></p>'}}};const Ksn={components:{SchoolFaqAccordion:Hse,AccordionItem:Ml},props:{category:{type:String,default:null},id:{type:Number,default:0}},data(){return{accordionDataGeneral:nce.general,accordionDataSchool:X5.faq}},mounted(){const e=this.$el.querySelectorAll("[data-open-contact]");if(Array.from(e).forEach(t=>{t.addEventListener("click",n=>{n.preventDefault(),this.$router.push({name:"school",params:{id:12}})})}),!this.id&&this.category==="school"&&this.$scrollTo("#skolni-ucty",250,{offset:-200}),this.id>0)if(this.category==="general"){let t="accordions-group-generalgeneral"+this.id+"-heading";this.$scrollTo("#"+t,250,{offset:-200})}else{let t=this.id+"-title",n=window.$("[id ^=accordions-school][id$="+t+"]")[0].id;this.$scrollTo("#"+n,250,{offset:-200})}}},Jsn={class:"col-12 my-6"},Xsn={class:"mb-6"},Qsn={class:"row mb-6",id:"vseobecni"},ean={class:"col"},tan={class:"content-box shadow"},nan={class:"row faq-accordion",id:"accordions-group-general"},oan={class:"accordion-title"},ian=["innerHTML"],ran={class:"row mt-6",id:"skolni-ucty"},san={class:"col"},aan={class:"content-box shadow"};function lan(e,t,n,o,i,r){const s=y("AccordionItem"),a=y("SchoolFaqAccordion");return h(),g("div",Jsn,[c("h2",Xsn,m(e.$t("faq.page")),1),c("div",Qsn,[c("div",ean,[c("section",tan,[c("h3",null,m(e.$t("faq.general")),1),c("div",nan,[(h(!0),g(pe,null,Me(i.accordionDataGeneral,(l,d)=>(h(),W(s,{class:"col-12",key:d,index:"general"+d,"init-opened":n.category==="general"&&Number(d)===n.id,parent:"accordions-group-general"},{title:F(()=>[c("div",oan,m(l.short),1)]),body:F(()=>[c("div",{class:"accordion-body pb-5",innerHTML:l.long},null,8,ian)]),_:2},1032,["index","init-opened"]))),128))])])])]),c("div",ran,[c("div",san,[c("section",aan,[b(a,{data:i.accordionDataSchool,"init-opened-index":n.category==="school"?n.id:-1},null,8,["data","init-opened-index"])])])])])}const VT=U(Ksn,[["render",lan],["__scopeId","data-v-a387acef"]]),jo={pagination:{per_page:10},filterValues(e,t){if(e.checkboxes){let n={};return e.checkboxes.forEach(o=>{n[o.name]=o.checked}),{page:t||null,search:e.search.value,date:e.date?e.date.value:null,year:e.year?e.year.value:null,controlMode:e.controlMode!==void 0?e.controlMode.value:void 0,...n}}else return{page:t||null,search:e.search.value,date:e.date?e.date.value:null,year:e.year?e.year.value:null,controlMode:e.controlMode!==void 0?e.controlMode.value:void 0}},getFilters(e){let t={};for(var n in e)try{t[n]=JSON.parse(e[n])}catch{t[n]=e[n]}return t}};const can={components:{TransitionCollapseHeight:qo},props:{placeholder:String,inputId:String,filters:{type:Object,default:()=>({search:{value:null}})},closeAfterClickInside:{type:Boolean,default:!0}},data(){return{isOpen:!1,width:492,shouldClose:!0}},computed:{filtersModel:{get(){return this.filters},set(e){this.$emit("update:filters",e)}}},methods:{changeIsOpen(e){if(e===!0){if(this.isOpen===!0)return;this.isOpen=!0,this.$emit("open")}else this.shouldClose&&(this.isOpen=!1,this.$emit("close"))},changeValue(e){this.filtersModel.search.value=e},onFilterChange(){this.emitChange(),this.emitChange.flush()},filterValues(){return jo.filterValues(this.filtersModel)},emitChange(){this.$emit("change",this.filterValues())},resetSearch(){this.filtersModel.search.value=null,this.changeIsOpen(!1),this.emitChange(),this.emitChange.flush()},blur(e){e.currentTarget.parentNode.contains(e.relatedTarget)||setTimeout(()=>this.changeIsOpen(!1),100)},clickedInsideDropdown(){if(this.closeAfterClickInside){this.changeIsOpen(!1);return}this.shouldClose=!1,setTimeout(()=>window.$("#"+this.inputId+"-search-dropdown-input")[0].focus(),0),setTimeout(()=>this.shouldClose=!0,110)},changeWidth(){this.$nextTick(()=>{this.$nextTick(()=>{let e="#"+this.inputId;this.width=window.$(e)[0].clientWidth})})}},mounted(){this.emitChange=is.debounce(this.emitChange,500)},unmounted(){window.removeEventListener("resize",this.changeWidth)},created(){window.addEventListener("resize",this.changeWidth)},watch:{"filtersModel.search.value":function(){this.emitChange()},isOpen(e){e===!0&&this.changeWidth()}}},dan={class:"p-2dot5 bg-primary-5"},uan={class:"row"},han={class:"col-12 col-lg-6 position-relative"},fan=["id"],man={class:"input-group"},pan=["placeholder","value","id"];function gan(e,t,n,o,i,r){const s=y("app-icon"),a=y("TransitionCollapseHeight");return h(),g("div",dan,[c("div",uan,[c("div",han,[c("div",{id:n.inputId,ref:"search-box"},[c("div",man,[c("input",{class:"border-end-0 form-control",placeholder:n.placeholder,value:r.filtersModel.search.value,id:n.inputId+"-search-dropdown-input",autocomplete:"off","data-hj-allow":"",name:"search",onFocus:t[0]||(t[0]=l=>r.changeIsOpen(!0)),onBlur:t[1]||(t[1]=(...l)=>r.blur&&r.blur(...l)),onKeyup:t[2]||(t[2]=bs((...l)=>r.onFilterChange&&r.onFilterChange(...l),["enter"])),onInput:t[3]||(t[3]=l=>{r.changeValue(l.target.value),r.changeIsOpen(!0)})},null,40,pan),xe(c("span",{class:"input-group-text cursor-pointer",onClick:t[4]||(t[4]=(...l)=>r.resetSearch&&r.resetSearch(...l))},[b(s,{icon:"close",height:"24",width:"24",class:"bg-white text-primary"})],512),[[Vo,r.filtersModel.search.value]]),c("span",{class:"input-group-text cursor-pointer",onClick:t[5]||(t[5]=(...l)=>r.onFilterChange&&r.onFilterChange(...l))},[b(s,{icon:"search",height:"24",width:"24",class:"bg-white text-primary"})])])],8,fan),b(a,null,{default:F(()=>[xe(c("div",{class:"select-container",style:Bn("width: "+i.width+"px;"),ref:"dropdown-search-box",onMousedown:t[6]||(t[6]=(...l)=>r.clickedInsideDropdown&&r.clickedInsideDropdown(...l)),onTouchstart:t[7]||(t[7]=(...l)=>r.clickedInsideDropdown&&r.clickedInsideDropdown(...l))},[Pt(e.$slots,"dropdownItems",{},void 0,!0)],36),[[Vo,i.isOpen]])]),_:3})])])])}const oce=U(can,[["render",gan],["__scopeId","data-v-7c44d80d"]]);const van={components:{ContentItem:yh,draggable:nk,Loading:Rt,DropdownTextSearch:oce},data(){return{filters:{search:{value:null}},primaryColor:window.primaryColor,drag:!1}},computed:{...Oe({posts:"administrationBlog/getPosts",mostRead:"administrationBlog/getMostRead",searchLoading:"administrationBlog/getSearchLoading",postsLoading:"administrationBlog/getPostsLoading"}),list:{get(){return this.$store.getters["administrationBlog/getMostRead"]},set(e){this.$store.dispatch("administrationBlog/reorderMostRead",{mostRead:e})}}},methods:{onFilterChange(e){e.not_favourites=!0,e.published=!0,this.$store.dispatch("administrationBlog/posts",{filters:e})},loadThemesForDropdown(){this.$store.dispatch("administrationBlog/posts",{filters:{not_favourites:!0,published:!0}})},filterValues(){return jo.filterValues(this.filters)},togglePost(e){this.isPostMostRead(e)?this.$store.commit("administrationBlog/removeMostRead",e):this.$store.commit("administrationBlog/addMostRead",e),this.$store.dispatch("administrationBlog/reorderMostRead",{mostRead:this.mostRead})},isPostMostRead(e){return this.mostRead.map(t=>t.id).includes(e)}},mounted(){this.$store.dispatch("administrationBlog/mostRead");let e=this.filterValues(this.filters);e.not_favourites=!0,this.$store.dispatch("administrationBlog/posts",{init:!0,filters:this.filterValues(this.filters)})}},_an={class:"mb-3"},yan={class:"vl-parent min-h-loading p-3"},ban={key:0,class:"d-flex flex-wrap justify-content-center align-items-center"},kan={key:1},wan=["onClick"],$an={class:"cursor-pointer d-flex flex-wrap align-items-center"},Can={class:"vl-parent min-h-loading"},San={class:"mt-3"},Tan=["onClick"];function Ean(e,t,n,o,i,r){const s=y("Loading"),a=y("app-icon"),l=y("DropdownTextSearch"),d=y("ContentItem"),u=y("draggable");return h(),g("div",null,[c("h4",_an,m(e.$t("administration.content.blog.posts.title")),1),b(l,{class:"mb-3",filters:i.filters,placeholder:e.$t("administration.content.blog.posts.search_placeholder"),"input-id":"search-dropdown-posts",onChange:r.onFilterChange,"close-after-click-inside":"",onOpen:r.loadThemesForDropdown,onClose:t[1]||(t[1]=f=>i.filters.search.value=null)},{dropdownItems:F(()=>[c("div",yan,[b(s,{active:e.searchLoading,"onUpdate:active":t[0]||(t[0]=f=>e.searchLoading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.posts.length<1?(h(),g("div",ban,m(e.$t("administration.content.blog.posts.no_posts")),1)):(h(),g("div",kan,[(h(!0),g(pe,null,Me(e.posts,f=>(h(),g("div",{key:f.id,class:"p-2 bg-primary-5-hover",onClick:p=>r.togglePost(f.id)},[c("div",$an,[r.isPostMostRead(f.id)?(h(),W(a,{key:0,icon:"minus-circle",height:"24",width:"24",class:"me-icon text-danger"})):(h(),W(a,{key:1,icon:"plus-circle",height:"24",width:"24",class:"me-icon text-primary"})),z(" "+m(f.title),1)])],8,wan))),128))]))])]),_:1},8,["filters","placeholder","onChange","onOpen"]),c("div",Can,[b(s,{active:e.postsLoading,"onUpdate:active":t[2]||(t[2]=f=>e.postsLoading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",San,[b(u,{modelValue:r.list,"onUpdate:modelValue":t[3]||(t[3]=f=>r.list=f),group:"mostReadPosts","item-key":"id"},{item:F(({element:f})=>[b(d,{"is-movable":"",class:"mb-3"},{title:F(()=>[z(m(f.title),1)]),description:F(()=>[z(m(f.author.name),1)]),buttons:F(()=>[c("button",{class:"btn btn-sm btn-tertiary btn-danger",onClick:p=>r.togglePost(f.id)},[b(a,{icon:"minus-circle",width:"24",height:"24"})],8,Tan)]),_:2},1024)]),_:1},8,["modelValue"])])])])}const Ian=U(van,[["render",Ean],["__scopeId","data-v-5050ae25"]]);const Pan={components:{Loading:Rt,DropdownTextSearch:oce},data(){return{filters:{search:{value:null}},primaryColor:window.primaryColor}},computed:{...Oe({themes:"administrationBlog/getThemes",favouriteThemes:"administrationBlog/getFavouriteThemes",searchLoading:"administrationBlog/getSearchLoading",themesLoading:"administrationBlog/getThemesLoading"})},methods:{onFilterChange(e=null){e.not_favourites=!0,this.$store.dispatch("administrationBlog/themes",{filters:e})},loadThemesForDropdown(){this.$store.dispatch("administrationBlog/themes",{filters:{not_favourites:!0}})},filterValues(){return jo.filterValues(this.filters)},isThemeFavourite(e){return this.favouriteThemes.map(t=>t.id).includes(e)},toggleTheme(e){this.isThemeFavourite(e)?this.$store.commit("administrationBlog/removeFavouriteTheme",e):this.$store.commit("administrationBlog/addFavouriteTheme",e),this.$store.dispatch("administrationBlog/reorderFavouriteThemes",{favouriteThemes:this.favouriteThemes.map(t=>t.id)})}},mounted(){this.$store.dispatch("administrationBlog/favouriteThemes");let e=this.filterValues(this.filters);e.not_favourites=!0,this.$store.dispatch("administrationBlog/themes",{init:!0,filters:e})}},Aan={class:"mb-3"},Dan={class:"vl-parent min-h-loading p-3"},xan={key:0,class:"d-flex flex-wrap justify-content-center align-items-center"},Oan={key:1},Lan=["onClick"],Man={class:"cursor-pointer d-flex flex-wrap align-items-center"},Nan={class:"vl-parent min-h-loading"},Ran={class:"mt-3 row"},jan=["onClick","id"];function Fan(e,t,n,o,i,r){const s=y("Loading"),a=y("app-icon"),l=y("DropdownTextSearch");return h(),g("div",null,[c("h4",Aan,m(e.$t("administration.content.blog.themes.title")),1),b(l,{class:"mb-3",filters:i.filters,placeholder:e.$t("administration.content.blog.themes.search_placeholder"),"input-id":"search-dropdown-themes",onChange:r.onFilterChange,"close-after-click-inside":"",onOpen:r.loadThemesForDropdown,onClose:t[1]||(t[1]=d=>i.filters.search.value=null)},{dropdownItems:F(()=>[c("div",Dan,[b(s,{active:e.searchLoading,"onUpdate:active":t[0]||(t[0]=d=>e.searchLoading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.themes.length<1?(h(),g("div",xan,m(e.$t("administration.content.blog.themes.no_themes")),1)):(h(),g("div",Oan,[(h(!0),g(pe,null,Me(e.themes,d=>(h(),g("div",{key:d.id,class:"p-2 bg-primary-5-hover",onClick:u=>r.toggleTheme(d.id)},[c("div",Man,[r.isThemeFavourite(d.id)?(h(),W(a,{key:0,icon:"minus-circle",height:"24",width:"24",class:"me-icon text-danger"})):(h(),W(a,{key:1,icon:"plus-circle",height:"24",width:"24",class:"me-icon text-primary"})),z(" "+m(d.name),1)])],8,Lan))),128))]))])]),_:1},8,["filters","placeholder","onChange","onOpen"]),c("div",Nan,[b(s,{active:e.themesLoading,"onUpdate:active":t[2]||(t[2]=d=>e.themesLoading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",Ran,[(h(!0),g(pe,null,Me(e.favouriteThemes,(d,u)=>(h(),g("div",{class:"col-auto pe-0 mb-3",key:u},[c("button",{class:"btn btn-sm btn-tertiary small select-badge cursor-pointer d-inline-block px-3 py-1 me-1 mb-1",onClick:f=>r.toggleTheme(d.id),id:d.id},[z(m(d.name)+" ",1),b(a,{icon:"close",class:"ms-1"})],8,jan)]))),128))])])])}const zan=U(Pan,[["render",Fan],["__scopeId","data-v-8b5d8f60"]]),Uan={components:{BlogFavouriteThemes:zan,BlogMostReadPosts:Ian}},Ban={class:"mt-5"};function Han(e,t,n,o,i,r){const s=y("BlogMostReadPosts"),a=y("BlogFavouriteThemes");return h(),g("div",Ban,[b(s),b(a,{class:"mt-5"})])}const Van=U(Uan,[["render",Han]]),qan={props:{category:Object},computed:{style(){return{backgroundColor:this.category.background_color,color:this.category.text_color}}}};function Yan(e,t,n,o,i,r){return h(),g("span",{class:"badge rounded-pill small px-2 py-1 fw-light",style:Bn(r.style)},m(n.category.name),5)}const j6=U(qan,[["render",Yan]]),Wan={props:{targetDate:String,noLabel:{type:Boolean,required:!1},title:String},data(){return{units:[{label:"hour",value:["0","0"]},{label:"minute",value:["0","0"]},{label:"second",value:["0","0"]}],intervalId:null}},mounted(){this.startTimer()},beforeUnmount(){this.stopTimer()},computed:{showTimer(){return this.units.every(e=>e.value.every(t=>!isNaN(parseInt(t))))}},methods:{startTimer(){const e=new Date(this.targetDate).getTime();this.updateTime(),this.intervalId=setInterval(()=>{const t=new Date().getTime(),n=Math.max(0,e-t)/1e3;this.updateTime(Math.floor(n)),n<=0&&this.stopTimer()},1e3)},stopTimer(){clearInterval(this.intervalId)},updateTime(e){const[o,i,r]=[Math.floor(e/3600),Math.floor(e%3600/60),Math.floor(e%60)].map(this.formatTime);this.units[0].value=o,this.units[1].value=i,this.units[2].value=r},formatTime(e){return e.toString().padStart(2,"0").split("")},colonShown(e){return e<this.units.length-1},label(e){return e.label=="hour"?this.$t("public.time.hours",parseInt(e.value.join(""),10)):e.label=="minute"?this.$t("public.time.minutes",parseInt(e.value.join(""),10)):this.$t("public.time.seconds",parseInt(e.value.join(""),10))}}},Gan={key:0,class:"text-white fw-bold"},Zan={key:1,class:"d-flex gap-2 text-center z-index-1"},Kan={class:"d-flex align-items-center gap-2 mb-1"},Jan={class:"rounded bg-jaffa text-white fw-bold mb-0 p-2 w-1dot875rem"},Xan={class:"rounded bg-jaffa text-white fw-bold mb-0 p-2 w-1dot875rem"},Qan={key:0,class:"rounded bg-jaffa text-white fw-bold mb-0 p-2 w-1dot875rem"},eln={key:1,class:"text-jaffa fw-bold mb-0"},tln={key:0,class:"small text-white"};function nln(e,t,n,o,i,r){return h(),g("div",{class:J({"mw-15dot339375rem mh-7dot049375rem":n.title})},[n.title?(h(),g("p",Gan,m(n.title),1)):D("",!0),r.showTimer?(h(),g("div",Zan,[(h(!0),g(pe,null,Me(i.units,(s,a)=>(h(),g("div",{key:s.label},[c("div",Kan,[c("h3",Jan,m(s.value[0]),1),c("h3",Xan,m(s.value[1]),1),s.value[2]?(h(),g("h3",Qan,m(s.value[2]),1)):D("",!0),r.colonShown(a)?(h(),g("h3",eln,m(":"))):D("",!0)]),n.noLabel?D("",!0):(h(),g("span",tln,m(r.label(s)),1))]))),128))])):D("",!0)],2)}const uM=U(Wan,[["render",nln]]);const oln={props:{side:{type:String,default:"left"},topPosition:{type:[String,Number],default:66},size:{type:[String,Number],default:42}},computed:{style(){const t=Number(this.size)/2,n=t-t/2+1,o=-Math.round(n)+"px";return{top:"calc("+this.topPosition+"% - "+Math.round(n)+"px)",left:this.side==="left"?o:"auto",right:this.side==="right"?o:"auto",width:this.size+"px",height:this.size/2+"px",rotate:this.side==="left"?"90deg":"270deg",borderTopLeftRadius:t+"px",borderTopRightRadius:t+"px"}}}};function iln(e,t,n,o,i,r){return h(),g("span",{class:"circle-cutout",style:Bn(r.style)},null,4)}const ice=U(oln,[["render",iln],["__scopeId","data-v-89d2dacd"]]),rln={props:{targetDate:String,noLabel:{type:Boolean,required:!1}},data(){return{units:[{label:"day",value:["0","0"]},{label:"hour",value:["0","0"]},{label:"minute",value:["0","0"]},{label:"second",value:["0","0"]}],intervalId:null}},mounted(){this.startTimer()},beforeUnmount(){this.stopTimer()},computed:{showTimer(){return this.units.every(e=>e.value.every(t=>!isNaN(parseInt(t))))}},methods:{startTimer(){const e=new Date(this.targetDate).getTime();this.updateTime(),this.intervalId=setInterval(()=>{const t=new Date().getTime(),n=Math.max(0,e-t)/1e3;this.updateTime(Math.floor(n)),n<=0&&this.stopTimer()},1e3)},stopTimer(){clearInterval(this.intervalId)},updateTime(e){const[i,r,s,a]=[Math.floor(e/86400),Math.floor(e%86400/3600),Math.floor(e%3600/60),Math.floor(e%60)].map(this.formatTime);this.units[0].value=i,this.units[1].value=r,this.units[2].value=s,this.units[3].value=a},formatTime(e){return e.toString().padStart(2,"0").split("")},colonShown(e){return e<this.units.length-1},label(e){return e.label==="day"?this.$t("public.time.days",parseInt(e.value.join(""),10)):e.label==="hour"?this.$t("public.time.hours",parseInt(e.value.join(""),10)):e.label==="minute"?this.$t("public.time.minutes",parseInt(e.value.join(""),10)):this.$t("public.time.seconds",parseInt(e.value.join(""),10))}}},sln={key:0,class:"d-flex gap-2 text-center z-index-1"},aln={key:0,class:"smaller text-gray-500 me-2"},lln={class:"d-flex align-items-center gap-2"},cln={class:"bg-link-water text-gray-900 fw-bold mb-0 rounded-1 px-2 py-1"},dln={key:0,class:"text-gray-900 fw-bold mb-0"};function uln(e,t,n,o,i,r){return h(),g("div",null,[r.showTimer?(h(),g("div",sln,[(h(!0),g(pe,null,Me(i.units,(s,a)=>(h(),g("div",{key:s.label},[n.noLabel?D("",!0):(h(),g("span",aln,m(r.label(s)),1)),c("div",lln,[c("h5",cln,[(h(!0),g(pe,null,Me(s.value,l=>(h(),g("span",{key:l},m(l),1))),128))]),r.colonShown(a)?(h(),g("h3",dln,m(":"))):D("",!0)])]))),128))])):D("",!0)])}const hln=U(rln,[["render",uln]]);var qT={exports:{}},UY;function rce(){return UY||(UY=1,function(e,t){(function(n,o){e.exports=o()})(bo,function(){var n;function o(){return n.apply(null,arguments)}function i(x){n=x}function r(x){return x instanceof Array||Object.prototype.toString.call(x)==="[object Array]"}function s(x){return x!=null&&Object.prototype.toString.call(x)==="[object Object]"}function a(x,H){return Object.prototype.hasOwnProperty.call(x,H)}function l(x){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(x).length===0;var H;for(H in x)if(a(x,H))return!1;return!0}function d(x){return x===void 0}function u(x){return typeof x=="number"||Object.prototype.toString.call(x)==="[object Number]"}function f(x){return x instanceof Date||Object.prototype.toString.call(x)==="[object Date]"}function p(x,H){var oe=[],le,Ce=x.length;for(le=0;le<Ce;++le)oe.push(H(x[le],le));return oe}function v(x,H){for(var oe in H)a(H,oe)&&(x[oe]=H[oe]);return a(H,"toString")&&(x.toString=H.toString),a(H,"valueOf")&&(x.valueOf=H.valueOf),x}function _(x,H,oe,le){return _u(x,H,oe,le,!0).utc()}function k(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function C(x){return x._pf==null&&(x._pf=k()),x._pf}var $;Array.prototype.some?$=Array.prototype.some:$=function(x){var H=Object(this),oe=H.length>>>0,le;for(le=0;le<oe;le++)if(le in H&&x.call(this,H[le],le,H))return!0;return!1};function E(x){var H=null,oe=!1,le=x._d&&!isNaN(x._d.getTime());if(le&&(H=C(x),oe=$.call(H.parsedDateParts,function(Ce){return Ce!=null}),le=H.overflow<0&&!H.empty&&!H.invalidEra&&!H.invalidMonth&&!H.invalidWeekday&&!H.weekdayMismatch&&!H.nullInput&&!H.invalidFormat&&!H.userInvalidated&&(!H.meridiem||H.meridiem&&oe),x._strict&&(le=le&&H.charsLeftOver===0&&H.unusedTokens.length===0&&H.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(x))x._isValid=le;else return le;return x._isValid}function P(x){var H=_(NaN);return x!=null?v(C(H),x):C(H).userInvalidated=!0,H}var I=o.momentProperties=[],O=!1;function L(x,H){var oe,le,Ce,ot=I.length;if(d(H._isAMomentObject)||(x._isAMomentObject=H._isAMomentObject),d(H._i)||(x._i=H._i),d(H._f)||(x._f=H._f),d(H._l)||(x._l=H._l),d(H._strict)||(x._strict=H._strict),d(H._tzm)||(x._tzm=H._tzm),d(H._isUTC)||(x._isUTC=H._isUTC),d(H._offset)||(x._offset=H._offset),d(H._pf)||(x._pf=C(H)),d(H._locale)||(x._locale=H._locale),ot>0)for(oe=0;oe<ot;oe++)le=I[oe],Ce=H[le],d(Ce)||(x[le]=Ce);return x}function S(x){L(this,x),this._d=new Date(x._d!=null?x._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),O===!1&&(O=!0,o.updateOffset(this),O=!1)}function j(x){return x instanceof S||x!=null&&x._isAMomentObject!=null}function M(x){o.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+x)}function q(x,H){var oe=!0;return v(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,x),oe){var le=[],Ce,ot,Ot,wn=arguments.length;for(ot=0;ot<wn;ot++){if(Ce="",typeof arguments[ot]=="object"){Ce+=` [`+ot+"] ";for(Ot in arguments[0])a(arguments[0],Ot)&&(Ce+=Ot+": "+arguments[0][Ot]+", ");Ce=Ce.slice(0,-2)}else Ce=arguments[ot];le.push(Ce)}M(x+` Arguments: `+Array.prototype.slice.call(le).join("")+` `+new Error().stack),oe=!1}return H.apply(this,arguments)},H)}var B={};function V(x,H){o.deprecationHandler!=null&&o.deprecationHandler(x,H),B[x]||(M(H),B[x]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function G(x){return typeof Function<"u"&&x instanceof Function||Object.prototype.toString.call(x)==="[object Function]"}function Q(x){var H,oe;for(oe in x)a(x,oe)&&(H=x[oe],G(H)?this[oe]=H:this["_"+oe]=H);this._config=x,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function X(x,H){var oe=v({},x),le;for(le in H)a(H,le)&&(s(x[le])&&s(H[le])?(oe[le]={},v(oe[le],x[le]),v(oe[le],H[le])):H[le]!=null?oe[le]=H[le]:delete oe[le]);for(le in x)a(x,le)&&!a(H,le)&&s(x[le])&&(oe[le]=v({},oe[le]));return oe}function Y(x){x!=null&&this.set(x)}var Z;Object.keys?Z=Object.keys:Z=function(x){var H,oe=[];for(H in x)a(x,H)&&oe.push(H);return oe};var se={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ce(x,H,oe){var le=this._calendar[x]||this._calendar.sameElse;return G(le)?le.call(H,oe):le}function te(x,H,oe){var le=""+Math.abs(x),Ce=H-le.length,ot=x>=0;return(ot?oe?"+":"":"-")+Math.pow(10,Math.max(0,Ce)).toString().substr(1)+le}var ee=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ae=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,de={},$e={};function be(x,H,oe,le){var Ce=le;typeof le=="string"&&(Ce=function(){return this[le]()}),x&&($e[x]=Ce),H&&($e[H[0]]=function(){return te(Ce.apply(this,arguments),H[1],H[2])}),oe&&($e[oe]=function(){return this.localeData().ordinal(Ce.apply(this,arguments),x)})}function me(x){return x.match(/\[[\s\S]/)?x.replace(/^\[|\]$/g,""):x.replace(/\\/g,"")}function fe(x){var H=x.match(ee),oe,le;for(oe=0,le=H.length;oe<le;oe++)$e[H[oe]]?H[oe]=$e[H[oe]]:H[oe]=me(H[oe]);return function(Ce){var ot="",Ot;for(Ot=0;Ot<le;Ot++)ot+=G(H[Ot])?H[Ot].call(Ce,x):H[Ot];return ot}}function Ae(x,H){return x.isValid()?(H=je(H,x.localeData()),de[H]=de[H]||fe(H),de[H](x)):x.localeData().invalidDate()}function je(x,H){var oe=5;function le(Ce){return H.longDateFormat(Ce)||Ce}for(ae.lastIndex=0;oe>=0&&ae.test(x);)x=x.replace(ae,le),ae.lastIndex=0,oe-=1;return x}var Ye={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function _t(x){var H=this._longDateFormat[x],oe=this._longDateFormat[x.toUpperCase()];return H||!oe?H:(this._longDateFormat[x]=oe.match(ee).map(function(le){return le==="MMMM"||le==="MM"||le==="DD"||le==="dddd"?le.slice(1):le}).join(""),this._longDateFormat[x])}var xt="Invalid date";function we(){return this._invalidDate}var ve="%d",qe=/\d{1,2}/;function $t(x){return this._ordinal.replace("%d",x)}var ut={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Ve(x,H,oe,le){var Ce=this._relativeTime[oe];return G(Ce)?Ce(x,H,oe,le):Ce.replace(/%d/i,x)}function tt(x,H){var oe=this._relativeTime[x>0?"future":"past"];return G(oe)?oe(H):oe.replace(/%s/i,H)}var ge={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ye(x){return typeof x=="string"?ge[x]||ge[x.toLowerCase()]:void 0}function Te(x){var H={},oe,le;for(le in x)a(x,le)&&(oe=ye(le),oe&&(H[oe]=x[le]));return H}var gt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function yt(x){var H=[],oe;for(oe in x)a(x,oe)&&H.push({unit:oe,priority:gt[oe]});return H.sort(function(le,Ce){return le.priority-Ce.priority}),H}var Xe=/\d/,Ze=/\d\d/,vt=/\d{3}/,Ut=/\d{4}/,Je=/[+-]?\d{6}/,We=/\d\d?/,pt=/\d\d\d\d?/,At=/\d\d\d\d\d\d?/,Vt=/\d{1,3}/,cn=/\d{1,4}/,fn=/[+-]?\d{1,6}/,bn=/\d+/,kt=/[+-]?\d+/,Ne=/Z|[+-]\d\d:?\d\d/gi,nt=/Z|[+-]\d\d(?::?\d\d)?/gi,It=/[+-]?\d+(\.\d{1,3})?/,Zt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,dn=/^[1-9]\d?/,Hn=/^([1-9]\d|\d)/,Oo;Oo={};function tn(x,H,oe){Oo[x]=G(H)?H:function(le,Ce){return le&&oe?oe:H}}function Fo(x,H){return a(Oo,x)?Oo[x](H._strict,H._locale):new RegExp(Yr(x))}function Yr(x){return Lo(x.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,oe,le,Ce,ot){return oe||le||Ce||ot}))}function Lo(x){return x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ji(x){return x<0?Math.ceil(x)||0:Math.floor(x)}function On(x){var H=+x,oe=0;return H!==0&&isFinite(H)&&(oe=ji(H)),oe}var Hi={};function Gn(x,H){var oe,le=H,Ce;for(typeof x=="string"&&(x=[x]),u(H)&&(le=function(ot,Ot){Ot[H]=On(ot)}),Ce=x.length,oe=0;oe<Ce;oe++)Hi[x[oe]]=le}function Ar(x,H){Gn(x,function(oe,le,Ce,ot){Ce._w=Ce._w||{},H(oe,Ce._w,Ce,ot)})}function Xs(x,H,oe){H!=null&&a(Hi,x)&&Hi[x](H,oe._a,oe,x)}function Qs(x){return x%4===0&&x%100!==0||x%400===0}var So=0,ss=1,Dr=2,Di=3,xr=4,Wr=5,yi=6,ea=7,mc=8;be("Y",0,0,function(){var x=this.year();return x<=9999?te(x,4):"+"+x}),be(0,["YY",2],0,function(){return this.year()%100}),be(0,["YYYY",4],0,"year"),be(0,["YYYYY",5],0,"year"),be(0,["YYYYYY",6,!0],0,"year"),tn("Y",kt),tn("YY",We,Ze),tn("YYYY",cn,Ut),tn("YYYYY",fn,Je),tn("YYYYYY",fn,Je),Gn(["YYYYY","YYYYYY"],So),Gn("YYYY",function(x,H){H[So]=x.length===2?o.parseTwoDigitYear(x):On(x)}),Gn("YY",function(x,H){H[So]=o.parseTwoDigitYear(x)}),Gn("Y",function(x,H){H[So]=parseInt(x,10)});function js(x){return Qs(x)?366:365}o.parseTwoDigitYear=function(x){return On(x)+(On(x)>68?1900:2e3)};var Ka=Fi("FullYear",!0);function Ja(){return Qs(this.year())}function Fi(x,H){return function(oe){return oe!=null?(Fs(this,x,oe),o.updateOffset(this,H),this):Cs(this,x)}}function Cs(x,H){if(!x.isValid())return NaN;var oe=x._d,le=x._isUTC;switch(H){case"Milliseconds":return le?oe.getUTCMilliseconds():oe.getMilliseconds();case"Seconds":return le?oe.getUTCSeconds():oe.getSeconds();case"Minutes":return le?oe.getUTCMinutes():oe.getMinutes();case"Hours":return le?oe.getUTCHours():oe.getHours();case"Date":return le?oe.getUTCDate():oe.getDate();case"Day":return le?oe.getUTCDay():oe.getDay();case"Month":return le?oe.getUTCMonth():oe.getMonth();case"FullYear":return le?oe.getUTCFullYear():oe.getFullYear();default:return NaN}}function Fs(x,H,oe){var le,Ce,ot,Ot,wn;if(!(!x.isValid()||isNaN(oe))){switch(le=x._d,Ce=x._isUTC,H){case"Milliseconds":return void(Ce?le.setUTCMilliseconds(oe):le.setMilliseconds(oe));case"Seconds":return void(Ce?le.setUTCSeconds(oe):le.setSeconds(oe));case"Minutes":return void(Ce?le.setUTCMinutes(oe):le.setMinutes(oe));case"Hours":return void(Ce?le.setUTCHours(oe):le.setHours(oe));case"Date":return void(Ce?le.setUTCDate(oe):le.setDate(oe));case"FullYear":break;default:return}ot=oe,Ot=x.month(),wn=x.date(),wn=wn===29&&Ot===1&&!Qs(ot)?28:wn,Ce?le.setUTCFullYear(ot,Ot,wn):le.setFullYear(ot,Ot,wn)}}function as(x){return x=ye(x),G(this[x])?this[x]():this}function Rl(x,H){if(typeof x=="object"){x=Te(x);var oe=yt(x),le,Ce=oe.length;for(le=0;le<Ce;le++)this[oe[le].unit](x[oe[le].unit])}else if(x=ye(x),G(this[x]))return this[x](H);return this}function zs(x,H){return(x%H+H)%H}var oi;Array.prototype.indexOf?oi=Array.prototype.indexOf:oi=function(x){var H;for(H=0;H<this.length;++H)if(this[H]===x)return H;return-1};function Ss(x,H){if(isNaN(x)||isNaN(H))return NaN;var oe=zs(H,12);return x+=(H-oe)/12,oe===1?Qs(x)?29:28:31-oe%7%2}be("M",["MM",2],"Mo",function(){return this.month()+1}),be("MMM",0,0,function(x){return this.localeData().monthsShort(this,x)}),be("MMMM",0,0,function(x){return this.localeData().months(this,x)}),tn("M",We,dn),tn("MM",We,Ze),tn("MMM",function(x,H){return H.monthsShortRegex(x)}),tn("MMMM",function(x,H){return H.monthsRegex(x)}),Gn(["M","MM"],function(x,H){H[ss]=On(x)-1}),Gn(["MMM","MMMM"],function(x,H,oe,le){var Ce=oe._locale.monthsParse(x,le,oe._strict);Ce!=null?H[ss]=Ce:C(oe).invalidMonth=x});var ls="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Gr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Xa=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Qa=Zt,pc=Zt;function jl(x,H){return x?r(this._months)?this._months[x.month()]:this._months[(this._months.isFormat||Xa).test(H)?"format":"standalone"][x.month()]:r(this._months)?this._months:this._months.standalone}function Ie(x,H){return x?r(this._monthsShort)?this._monthsShort[x.month()]:this._monthsShort[Xa.test(H)?"format":"standalone"][x.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ke(x,H,oe){var le,Ce,ot,Ot=x.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],le=0;le<12;++le)ot=_([2e3,le]),this._shortMonthsParse[le]=this.monthsShort(ot,"").toLocaleLowerCase(),this._longMonthsParse[le]=this.months(ot,"").toLocaleLowerCase();return oe?H==="MMM"?(Ce=oi.call(this._shortMonthsParse,Ot),Ce!==-1?Ce:null):(Ce=oi.call(this._longMonthsParse,Ot),Ce!==-1?Ce:null):H==="MMM"?(Ce=oi.call(this._shortMonthsParse,Ot),Ce!==-1?Ce:(Ce=oi.call(this._longMonthsParse,Ot),Ce!==-1?Ce:null)):(Ce=oi.call(this._longMonthsParse,Ot),Ce!==-1?Ce:(Ce=oi.call(this._shortMonthsParse,Ot),Ce!==-1?Ce:null))}function ze(x,H,oe){var le,Ce,ot;if(this._monthsParseExact)return Ke.call(this,x,H,oe);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),le=0;le<12;le++){if(Ce=_([2e3,le]),oe&&!this._longMonthsParse[le]&&(this._longMonthsParse[le]=new RegExp("^"+this.months(Ce,"").replace(".","")+"$","i"),this._shortMonthsParse[le]=new RegExp("^"+this.monthsShort(Ce,"").replace(".","")+"$","i")),!oe&&!this._monthsParse[le]&&(ot="^"+this.months(Ce,"")+"|^"+this.monthsShort(Ce,""),this._monthsParse[le]=new RegExp(ot.replace(".",""),"i")),oe&&H==="MMMM"&&this._longMonthsParse[le].test(x))return le;if(oe&&H==="MMM"&&this._shortMonthsParse[le].test(x))return le;if(!oe&&this._monthsParse[le].test(x))return le}}function lt(x,H){if(!x.isValid())return x;if(typeof H=="string"){if(/^\d+$/.test(H))H=On(H);else if(H=x.localeData().monthsParse(H),!u(H))return x}var oe=H,le=x.date();return le=le<29?le:Math.min(le,Ss(x.year(),oe)),x._isUTC?x._d.setUTCMonth(oe,le):x._d.setMonth(oe,le),x}function ft(x){return x!=null?(lt(this,x),o.updateOffset(this,!0),this):Cs(this,"Month")}function ct(){return Ss(this.year(),this.month())}function Nt(x){return this._monthsParseExact?(a(this,"_monthsRegex")||Kt.call(this),x?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Qa),this._monthsShortStrictRegex&&x?this._monthsShortStrictRegex:this._monthsShortRegex)}function qt(x){return this._monthsParseExact?(a(this,"_monthsRegex")||Kt.call(this),x?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=pc),this._monthsStrictRegex&&x?this._monthsStrictRegex:this._monthsRegex)}function Kt(){function x(Kn,Ao){return Ao.length-Kn.length}var H=[],oe=[],le=[],Ce,ot,Ot,wn;for(Ce=0;Ce<12;Ce++)ot=_([2e3,Ce]),Ot=Lo(this.monthsShort(ot,"")),wn=Lo(this.months(ot,"")),H.push(Ot),oe.push(wn),le.push(wn),le.push(Ot);H.sort(x),oe.sort(x),le.sort(x),this._monthsRegex=new RegExp("^("+le.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+oe.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+H.join("|")+")","i")}function Xt(x,H,oe,le,Ce,ot,Ot){var wn;return x<100&&x>=0?(wn=new Date(x+400,H,oe,le,Ce,ot,Ot),isFinite(wn.getFullYear())&&wn.setFullYear(x)):wn=new Date(x,H,oe,le,Ce,ot,Ot),wn}function nn(x){var H,oe;return x<100&&x>=0?(oe=Array.prototype.slice.call(arguments),oe[0]=x+400,H=new Date(Date.UTC.apply(null,oe)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(x)):H=new Date(Date.UTC.apply(null,arguments)),H}function mn(x,H,oe){var le=7+H-oe,Ce=(7+nn(x,0,le).getUTCDay()-H)%7;return-Ce+le-1}function xn(x,H,oe,le,Ce){var ot=(7+oe-le)%7,Ot=mn(x,le,Ce),wn=1+7*(H-1)+ot+Ot,Kn,Ao;return wn<=0?(Kn=x-1,Ao=js(Kn)+wn):wn>js(x)?(Kn=x+1,Ao=wn-js(x)):(Kn=x,Ao=wn),{year:Kn,dayOfYear:Ao}}function no(x,H,oe){var le=mn(x.year(),H,oe),Ce=Math.floor((x.dayOfYear()-le-1)/7)+1,ot,Ot;return Ce<1?(Ot=x.year()-1,ot=Ce+Mn(Ot,H,oe)):Ce>Mn(x.year(),H,oe)?(ot=Ce-Mn(x.year(),H,oe),Ot=x.year()+1):(Ot=x.year(),ot=Ce),{week:ot,year:Ot}}function Mn(x,H,oe){var le=mn(x,H,oe),Ce=mn(x+1,H,oe);return(js(x)-le+Ce)/7}be("w",["ww",2],"wo","week"),be("W",["WW",2],"Wo","isoWeek"),tn("w",We,dn),tn("ww",We,Ze),tn("W",We,dn),tn("WW",We,Ze),Ar(["w","ww","W","WW"],function(x,H,oe,le){H[le.substr(0,1)]=On(x)});function To(x){return no(x,this._week.dow,this._week.doy).week}var mo={dow:0,doy:6};function ii(){return this._week.dow}function gr(){return this._week.doy}function vr(x){var H=this.localeData().week(this);return x==null?H:this.add((x-H)*7,"d")}function gc(x){var H=no(this,1,4).week;return x==null?H:this.add((x-H)*7,"d")}be("d",0,"do","day"),be("dd",0,0,function(x){return this.localeData().weekdaysMin(this,x)}),be("ddd",0,0,function(x){return this.localeData().weekdaysShort(this,x)}),be("dddd",0,0,function(x){return this.localeData().weekdays(this,x)}),be("e",0,0,"weekday"),be("E",0,0,"isoWeekday"),tn("d",We),tn("e",We),tn("E",We),tn("dd",function(x,H){return H.weekdaysMinRegex(x)}),tn("ddd",function(x,H){return H.weekdaysShortRegex(x)}),tn("dddd",function(x,H){return H.weekdaysRegex(x)}),Ar(["dd","ddd","dddd"],function(x,H,oe,le){var Ce=oe._locale.weekdaysParse(x,le,oe._strict);Ce!=null?H.d=Ce:C(oe).invalidWeekday=x}),Ar(["d","e","E"],function(x,H,oe,le){H[le]=On(x)});function Ts(x,H){return typeof x!="string"?x:isNaN(x)?(x=H.weekdaysParse(x),typeof x=="number"?x:null):parseInt(x,10)}function vc(x,H){return typeof x=="string"?H.weekdaysParse(x)%7||7:isNaN(x)?null:x}function ta(x,H){return x.slice(H,7).concat(x.slice(0,H))}var Fl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),mu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),_c=Zt,yc=Zt,ud=Zt;function el(x,H){var oe=r(this._weekdays)?this._weekdays:this._weekdays[x&&x!==!0&&this._weekdays.isFormat.test(H)?"format":"standalone"];return x===!0?ta(oe,this._week.dow):x?oe[x.day()]:oe}function kh(x){return x===!0?ta(this._weekdaysShort,this._week.dow):x?this._weekdaysShort[x.day()]:this._weekdaysShort}function bc(x){return x===!0?ta(this._weekdaysMin,this._week.dow):x?this._weekdaysMin[x.day()]:this._weekdaysMin}function hd(x,H,oe){var le,Ce,ot,Ot=x.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],le=0;le<7;++le)ot=_([2e3,1]).day(le),this._minWeekdaysParse[le]=this.weekdaysMin(ot,"").toLocaleLowerCase(),this._shortWeekdaysParse[le]=this.weekdaysShort(ot,"").toLocaleLowerCase(),this._weekdaysParse[le]=this.weekdays(ot,"").toLocaleLowerCase();return oe?H==="dddd"?(Ce=oi.call(this._weekdaysParse,Ot),Ce!==-1?Ce:null):H==="ddd"?(Ce=oi.call(this._shortWeekdaysParse,Ot),Ce!==-1?Ce:null):(Ce=oi.call(this._minWeekdaysParse,Ot),Ce!==-1?Ce:null):H==="dddd"?(Ce=oi.call(this._weekdaysParse,Ot),Ce!==-1||(Ce=oi.call(this._shortWeekdaysParse,Ot),Ce!==-1)?Ce:(Ce=oi.call(this._minWeekdaysParse,Ot),Ce!==-1?Ce:null)):H==="ddd"?(Ce=oi.call(this._shortWeekdaysParse,Ot),Ce!==-1||(Ce=oi.call(this._weekdaysParse,Ot),Ce!==-1)?Ce:(Ce=oi.call(this._minWeekdaysParse,Ot),Ce!==-1?Ce:null)):(Ce=oi.call(this._minWeekdaysParse,Ot),Ce!==-1||(Ce=oi.call(this._weekdaysParse,Ot),Ce!==-1)?Ce:(Ce=oi.call(this._shortWeekdaysParse,Ot),Ce!==-1?Ce:null))}function pu(x,H,oe){var le,Ce,ot;if(this._weekdaysParseExact)return hd.call(this,x,H,oe);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),le=0;le<7;le++){if(Ce=_([2e3,1]).day(le),oe&&!this._fullWeekdaysParse[le]&&(this._fullWeekdaysParse[le]=new RegExp("^"+this.weekdays(Ce,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[le]=new RegExp("^"+this.weekdaysShort(Ce,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[le]=new RegExp("^"+this.weekdaysMin(Ce,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[le]||(ot="^"+this.weekdays(Ce,"")+"|^"+this.weekdaysShort(Ce,"")+"|^"+this.weekdaysMin(Ce,""),this._weekdaysParse[le]=new RegExp(ot.replace(".",""),"i")),oe&&H==="dddd"&&this._fullWeekdaysParse[le].test(x))return le;if(oe&&H==="ddd"&&this._shortWeekdaysParse[le].test(x))return le;if(oe&&H==="dd"&&this._minWeekdaysParse[le].test(x))return le;if(!oe&&this._weekdaysParse[le].test(x))return le}}function na(x){if(!this.isValid())return x!=null?this:NaN;var H=Cs(this,"Day");return x!=null?(x=Ts(x,this.localeData()),this.add(x-H,"d")):H}function gu(x){if(!this.isValid())return x!=null?this:NaN;var H=(this.day()+7-this.localeData()._week.dow)%7;return x==null?H:this.add(x-H,"d")}function fd(x){if(!this.isValid())return x!=null?this:NaN;if(x!=null){var H=vc(x,this.localeData());return this.day(this.day()%7?H:H-7)}else return this.day()||7}function li(x){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ee.call(this),x?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=_c),this._weekdaysStrictRegex&&x?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yo(x){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ee.call(this),x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=yc),this._weekdaysShortStrictRegex&&x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function re(x){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ee.call(this),x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ud),this._weekdaysMinStrictRegex&&x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ee(){function x(Hs,Ec){return Ec.length-Hs.length}var H=[],oe=[],le=[],Ce=[],ot,Ot,wn,Kn,Ao;for(ot=0;ot<7;ot++)Ot=_([2e3,1]).day(ot),wn=Lo(this.weekdaysMin(Ot,"")),Kn=Lo(this.weekdaysShort(Ot,"")),Ao=Lo(this.weekdays(Ot,"")),H.push(wn),oe.push(Kn),le.push(Ao),Ce.push(wn),Ce.push(Kn),Ce.push(Ao);H.sort(x),oe.sort(x),le.sort(x),Ce.sort(x),this._weekdaysRegex=new RegExp("^("+Ce.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+le.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+oe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function et(){return this.hours()%12||12}function Lt(){return this.hours()||24}be("H",["HH",2],0,"hour"),be("h",["hh",2],0,et),be("k",["kk",2],0,Lt),be("hmm",0,0,function(){return""+et.apply(this)+te(this.minutes(),2)}),be("hmmss",0,0,function(){return""+et.apply(this)+te(this.minutes(),2)+te(this.seconds(),2)}),be("Hmm",0,0,function(){return""+this.hours()+te(this.minutes(),2)}),be("Hmmss",0,0,function(){return""+this.hours()+te(this.minutes(),2)+te(this.seconds(),2)});function zn(x,H){be(x,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}zn("a",!0),zn("A",!1);function En(x,H){return H._meridiemParse}tn("a",En),tn("A",En),tn("H",We,Hn),tn("h",We,dn),tn("k",We,dn),tn("HH",We,Ze),tn("hh",We,Ze),tn("kk",We,Ze),tn("hmm",pt),tn("hmmss",At),tn("Hmm",pt),tn("Hmmss",At),Gn(["H","HH"],Di),Gn(["k","kk"],function(x,H,oe){var le=On(x);H[Di]=le===24?0:le}),Gn(["a","A"],function(x,H,oe){oe._isPm=oe._locale.isPM(x),oe._meridiem=x}),Gn(["h","hh"],function(x,H,oe){H[Di]=On(x),C(oe).bigHour=!0}),Gn("hmm",function(x,H,oe){var le=x.length-2;H[Di]=On(x.substr(0,le)),H[xr]=On(x.substr(le)),C(oe).bigHour=!0}),Gn("hmmss",function(x,H,oe){var le=x.length-4,Ce=x.length-2;H[Di]=On(x.substr(0,le)),H[xr]=On(x.substr(le,2)),H[Wr]=On(x.substr(Ce)),C(oe).bigHour=!0}),Gn("Hmm",function(x,H,oe){var le=x.length-2;H[Di]=On(x.substr(0,le)),H[xr]=On(x.substr(le))}),Gn("Hmmss",function(x,H,oe){var le=x.length-4,Ce=x.length-2;H[Di]=On(x.substr(0,le)),H[xr]=On(x.substr(le,2)),H[Wr]=On(x.substr(Ce))});function po(x){return(x+"").toLowerCase().charAt(0)==="p"}var Mo=/[ap]\.?m?\.?/i,oo=Fi("Hours",!0);function No(x,H,oe){return x>11?oe?"pm":"PM":oe?"am":"AM"}var bi={calendar:se,longDateFormat:Ye,invalidDate:xt,ordinal:ve,dayOfMonthOrdinalParse:qe,relativeTime:ut,months:ls,monthsShort:Gr,week:mo,weekdays:Fl,weekdaysMin:mu,weekdaysShort:Vi,meridiemParse:Mo},lo={},ki={},Bo;function A(x,H){var oe,le=Math.min(x.length,H.length);for(oe=0;oe<le;oe+=1)if(x[oe]!==H[oe])return oe;return le}function N(x){return x&&x.toLowerCase().replace("_","-")}function K(x){for(var H=0,oe,le,Ce,ot;H<x.length;){for(ot=N(x[H]).split("-"),oe=ot.length,le=N(x[H+1]),le=le?le.split("-"):null;oe>0;){if(Ce=he(ot.slice(0,oe).join("-")),Ce)return Ce;if(le&&le.length>=oe&&A(ot,le)>=oe-1)break;oe--}H++}return Bo}function ne(x){return!!(x&&x.match("^[^/\\\\]*$"))}function he(x){var H=null,oe;if(lo[x]===void 0&&e&&e.exports&&ne(x))try{H=Bo._abbr,oe=Yv,oe("./locale/"+x),ue(H)}catch{lo[x]=null}return lo[x]}function ue(x,H){var oe;return x&&(d(H)?oe=He(x):oe=ke(x,H),oe?Bo=oe:typeof console<"u"&&console.warn&&console.warn("Locale "+x+" not found. Did you forget to load it?")),Bo._abbr}function ke(x,H){if(H!==null){var oe,le=bi;if(H.abbr=x,lo[x]!=null)V("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),le=lo[x]._config;else if(H.parentLocale!=null)if(lo[H.parentLocale]!=null)le=lo[H.parentLocale]._config;else if(oe=he(H.parentLocale),oe!=null)le=oe._config;else return ki[H.parentLocale]||(ki[H.parentLocale]=[]),ki[H.parentLocale].push({name:x,config:H}),null;return lo[x]=new Y(X(le,H)),ki[x]&&ki[x].forEach(function(Ce){ke(Ce.name,Ce.config)}),ue(x),lo[x]}else return delete lo[x],null}function Qe(x,H){if(H!=null){var oe,le,Ce=bi;lo[x]!=null&&lo[x].parentLocale!=null?lo[x].set(X(lo[x]._config,H)):(le=he(x),le!=null&&(Ce=le._config),H=X(Ce,H),le==null&&(H.abbr=x),oe=new Y(H),oe.parentLocale=lo[x],lo[x]=oe),ue(x)}else lo[x]!=null&&(lo[x].parentLocale!=null?(lo[x]=lo[x].parentLocale,x===ue()&&ue(x)):lo[x]!=null&&delete lo[x]);return lo[x]}function He(x){var H;if(x&&x._locale&&x._locale._abbr&&(x=x._locale._abbr),!x)return Bo;if(!r(x)){if(H=he(x),H)return H;x=[x]}return K(x)}function ht(){return Z(lo)}function Dt(x){var H,oe=x._a;return oe&&C(x).overflow===-2&&(H=oe[ss]<0||oe[ss]>11?ss:oe[Dr]<1||oe[Dr]>Ss(oe[So],oe[ss])?Dr:oe[Di]<0||oe[Di]>24||oe[Di]===24&&(oe[xr]!==0||oe[Wr]!==0||oe[yi]!==0)?Di:oe[xr]<0||oe[xr]>59?xr:oe[Wr]<0||oe[Wr]>59?Wr:oe[yi]<0||oe[yi]>999?yi:-1,C(x)._overflowDayOfYear&&(H<So||H>Dr)&&(H=Dr),C(x)._overflowWeeks&&H===-1&&(H=ea),C(x)._overflowWeekday&&H===-1&&(H=mc),C(x).overflow=H),x}var jt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,St=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Qt=/Z|[+-]\d\d(?::?\d\d)?/,pn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Qn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],io=/^\/?Date\((-?\d+)/i,Or=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ki={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ka(x){var H,oe,le=x._i,Ce=jt.exec(le)||St.exec(le),ot,Ot,wn,Kn,Ao=pn.length,Hs=Qn.length;if(Ce){for(C(x).iso=!0,H=0,oe=Ao;H<oe;H++)if(pn[H][1].exec(Ce[1])){Ot=pn[H][0],ot=pn[H][2]!==!1;break}if(Ot==null){x._isValid=!1;return}if(Ce[3]){for(H=0,oe=Hs;H<oe;H++)if(Qn[H][1].exec(Ce[3])){wn=(Ce[2]||" ")+Qn[H][0];break}if(wn==null){x._isValid=!1;return}}if(!ot&&wn!=null){x._isValid=!1;return}if(Ce[4])if(Qt.exec(Ce[4]))Kn="Z";else{x._isValid=!1;return}x._f=Ot+(wn||"")+(Kn||""),nl(x)}else x._isValid=!1}function tl(x,H,oe,le,Ce,ot){var Ot=[Eo(x),Gr.indexOf(H),parseInt(oe,10),parseInt(le,10),parseInt(Ce,10)];return ot&&Ot.push(parseInt(ot,10)),Ot}function Eo(x){var H=parseInt(x,10);return H<=49?2e3+H:H<=999?1900+H:H}function kc(x){return x.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Io(x,H,oe){if(x){var le=Vi.indexOf(x),Ce=new Date(H[0],H[1],H[2]).getDay();if(le!==Ce)return C(oe).weekdayMismatch=!0,oe._isValid=!1,!1}return!0}function wi(x,H,oe){if(x)return Ki[x];if(H)return 0;var le=parseInt(oe,10),Ce=le%100,ot=(le-Ce)/100;return ot*60+Ce}function vu(x){var H=Or.exec(kc(x._i)),oe;if(H){if(oe=tl(H[4],H[3],H[2],H[5],H[6],H[7]),!Io(H[1],oe,x))return;x._a=oe,x._tzm=wi(H[8],H[9],H[10]),x._d=nn.apply(null,x._a),x._d.setUTCMinutes(x._d.getUTCMinutes()-x._tzm),C(x).rfc2822=!0}else x._isValid=!1}function Ff(x){var H=io.exec(x._i);if(H!==null){x._d=new Date(+H[1]);return}if(ka(x),x._isValid===!1)delete x._isValid;else return;if(vu(x),x._isValid===!1)delete x._isValid;else return;x._strict?x._isValid=!1:o.createFromInputFallback(x)}o.createFromInputFallback=q("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(x){x._d=new Date(x._i+(x._useUTC?" UTC":""))});function Zr(x,H,oe){return x??H??oe}function md(x){var H=new Date(o.now());return x._useUTC?[H.getUTCFullYear(),H.getUTCMonth(),H.getUTCDate()]:[H.getFullYear(),H.getMonth(),H.getDate()]}function Es(x){var H,oe,le=[],Ce,ot,Ot;if(!x._d){for(Ce=md(x),x._w&&x._a[Dr]==null&&x._a[ss]==null&&zl(x),x._dayOfYear!=null&&(Ot=Zr(x._a[So],Ce[So]),(x._dayOfYear>js(Ot)||x._dayOfYear===0)&&(C(x)._overflowDayOfYear=!0),oe=nn(Ot,0,x._dayOfYear),x._a[ss]=oe.getUTCMonth(),x._a[Dr]=oe.getUTCDate()),H=0;H<3&&x._a[H]==null;++H)x._a[H]=le[H]=Ce[H];for(;H<7;H++)x._a[H]=le[H]=x._a[H]==null?H===2?1:0:x._a[H];x._a[Di]===24&&x._a[xr]===0&&x._a[Wr]===0&&x._a[yi]===0&&(x._nextDay=!0,x._a[Di]=0),x._d=(x._useUTC?nn:Xt).apply(null,le),ot=x._useUTC?x._d.getUTCDay():x._d.getDay(),x._tzm!=null&&x._d.setUTCMinutes(x._d.getUTCMinutes()-x._tzm),x._nextDay&&(x._a[Di]=24),x._w&&typeof x._w.d<"u"&&x._w.d!==ot&&(C(x).weekdayMismatch=!0)}}function zl(x){var H,oe,le,Ce,ot,Ot,wn,Kn,Ao;H=x._w,H.GG!=null||H.W!=null||H.E!=null?(ot=1,Ot=4,oe=Zr(H.GG,x._a[So],no(Ln(),1,4).year),le=Zr(H.W,1),Ce=Zr(H.E,1),(Ce<1||Ce>7)&&(Kn=!0)):(ot=x._locale._week.dow,Ot=x._locale._week.doy,Ao=no(Ln(),ot,Ot),oe=Zr(H.gg,x._a[So],Ao.year),le=Zr(H.w,Ao.week),H.d!=null?(Ce=H.d,(Ce<0||Ce>6)&&(Kn=!0)):H.e!=null?(Ce=H.e+ot,(H.e<0||H.e>6)&&(Kn=!0)):Ce=ot),le<1||le>Mn(oe,ot,Ot)?C(x)._overflowWeeks=!0:Kn!=null?C(x)._overflowWeekday=!0:(wn=xn(oe,le,Ce,ot,Ot),x._a[So]=wn.year,x._dayOfYear=wn.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function nl(x){if(x._f===o.ISO_8601){ka(x);return}if(x._f===o.RFC_2822){vu(x);return}x._a=[],C(x).empty=!0;var H=""+x._i,oe,le,Ce,ot,Ot,wn=H.length,Kn=0,Ao,Hs;for(Ce=je(x._f,x._locale).match(ee)||[],Hs=Ce.length,oe=0;oe<Hs;oe++)ot=Ce[oe],le=(H.match(Fo(ot,x))||[])[0],le&&(Ot=H.substr(0,H.indexOf(le)),Ot.length>0&&C(x).unusedInput.push(Ot),H=H.slice(H.indexOf(le)+le.length),Kn+=le.length),$e[ot]?(le?C(x).empty=!1:C(x).unusedTokens.push(ot),Xs(ot,le,x)):x._strict&&!le&&C(x).unusedTokens.push(ot);C(x).charsLeftOver=wn-Kn,H.length>0&&C(x).unusedInput.push(H),x._a[Di]<=12&&C(x).bigHour===!0&&x._a[Di]>0&&(C(x).bigHour=void 0),C(x).parsedDateParts=x._a.slice(0),C(x).meridiem=x._meridiem,x._a[Di]=Is(x._locale,x._a[Di],x._meridiem),Ao=C(x).era,Ao!==null&&(x._a[So]=x._locale.erasConvertYear(Ao,x._a[So])),Es(x),Dt(x)}function Is(x,H,oe){var le;return oe==null?H:x.meridiemHour!=null?x.meridiemHour(H,oe):(x.isPM!=null&&(le=x.isPM(oe),le&&H<12&&(H+=12),!le&&H===12&&(H=0)),H)}function wh(x){var H,oe,le,Ce,ot,Ot,wn=!1,Kn=x._f.length;if(Kn===0){C(x).invalidFormat=!0,x._d=new Date(NaN);return}for(Ce=0;Ce<Kn;Ce++)ot=0,Ot=!1,H=L({},x),x._useUTC!=null&&(H._useUTC=x._useUTC),H._f=x._f[Ce],nl(H),E(H)&&(Ot=!0),ot+=C(H).charsLeftOver,ot+=C(H).unusedTokens.length*10,C(H).score=ot,wn?ot<le&&(le=ot,oe=H):(le==null||ot<le||Ot)&&(le=ot,oe=H,Ot&&(wn=!0));v(x,oe||H)}function Ul(x){if(!x._d){var H=Te(x._i),oe=H.day===void 0?H.date:H.day;x._a=p([H.year,H.month,oe,H.hour,H.minute,H.second,H.millisecond],function(le){return le&&parseInt(le,10)}),Es(x)}}function ol(x){var H=new S(Dt(Ps(x)));return H._nextDay&&(H.add(1,"d"),H._nextDay=void 0),H}function Ps(x){var H=x._i,oe=x._f;return x._locale=x._locale||He(x._l),H===null||oe===void 0&&H===""?P({nullInput:!0}):(typeof H=="string"&&(x._i=H=x._locale.preparse(H)),j(H)?new S(Dt(H)):(f(H)?x._d=H:r(oe)?wh(x):oe?nl(x):wp(x),E(x)||(x._d=null),x))}function wp(x){var H=x._i;d(H)?x._d=new Date(o.now()):f(H)?x._d=new Date(H.valueOf()):typeof H=="string"?Ff(x):r(H)?(x._a=p(H.slice(0),function(oe){return parseInt(oe,10)}),Es(x)):s(H)?Ul(x):u(H)?x._d=new Date(H):o.createFromInputFallback(x)}function _u(x,H,oe,le,Ce){var ot={};return(H===!0||H===!1)&&(le=H,H=void 0),(oe===!0||oe===!1)&&(le=oe,oe=void 0),(s(x)&&l(x)||r(x)&&x.length===0)&&(x=void 0),ot._isAMomentObject=!0,ot._useUTC=ot._isUTC=Ce,ot._l=oe,ot._i=x,ot._f=H,ot._strict=le,ol(ot)}function Ln(x,H,oe,le){return _u(x,H,oe,le,!1)}var $h=q("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var x=Ln.apply(null,arguments);return this.isValid()&&x.isValid()?x<this?this:x:P()}),wa=q("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var x=Ln.apply(null,arguments);return this.isValid()&&x.isValid()?x>this?this:x:P()});function pd(x,H){var oe,le;if(H.length===1&&r(H[0])&&(H=H[0]),!H.length)return Ln();for(oe=H[0],le=1;le<H.length;++le)(!H[le].isValid()||H[le][x](oe))&&(oe=H[le]);return oe}function sb(){var x=[].slice.call(arguments,0);return pd("isBefore",x)}function ab(){var x=[].slice.call(arguments,0);return pd("isAfter",x)}var Lg=function(){return Date.now?Date.now():+new Date},Kr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function $p(x){var H,oe=!1,le,Ce=Kr.length;for(H in x)if(a(x,H)&&!(oi.call(Kr,H)!==-1&&(x[H]==null||!isNaN(x[H]))))return!1;for(le=0;le<Ce;++le)if(x[Kr[le]]){if(oe)return!1;parseFloat(x[Kr[le]])!==On(x[Kr[le]])&&(oe=!0)}return!0}function wc(){return this._isValid}function zf(){return un(NaN)}function Bl(x){var H=Te(x),oe=H.year||0,le=H.quarter||0,Ce=H.month||0,ot=H.week||H.isoWeek||0,Ot=H.day||0,wn=H.hour||0,Kn=H.minute||0,Ao=H.second||0,Hs=H.millisecond||0;this._isValid=$p(H),this._milliseconds=+Hs+Ao*1e3+Kn*6e4+wn*1e3*60*60,this._days=+Ot+ot*7,this._months=+Ce+le*3+oe*12,this._data={},this._locale=He(),this._bubble()}function As(x){return x instanceof Bl}function Hl(x){return x<0?Math.round(-1*x)*-1:Math.round(x)}function Cp(x,H,oe){var le=Math.min(x.length,H.length),Ce=Math.abs(x.length-H.length),ot=0,Ot;for(Ot=0;Ot<le;Ot++)(oe&&x[Ot]!==H[Ot]||!oe&&On(x[Ot])!==On(H[Ot]))&&ot++;return ot+Ce}function Mg(x,H){be(x,0,0,function(){var oe=this.utcOffset(),le="+";return oe<0&&(oe=-oe,le="-"),le+te(~~(oe/60),2)+H+te(~~oe%60,2)})}Mg("Z",":"),Mg("ZZ",""),tn("Z",nt),tn("ZZ",nt),Gn(["Z","ZZ"],function(x,H,oe){oe._useUTC=!0,oe._tzm=il(nt,x)});var Uf=/([\+\-]|\d\d)/gi;function il(x,H){var oe=(H||"").match(x),le,Ce,ot;return oe===null?null:(le=oe[oe.length-1]||[],Ce=(le+"").match(Uf)||["-",0,0],ot=+(Ce[1]*60)+On(Ce[2]),ot===0?0:Ce[0]==="+"?ot:-ot)}function cs(x,H){var oe,le;return H._isUTC?(oe=H.clone(),le=(j(x)||f(x)?x.valueOf():Ln(x).valueOf())-oe.valueOf(),oe._d.setTime(oe._d.valueOf()+le),o.updateOffset(oe,!1),oe):Ln(x).local()}function Bf(x){return-Math.round(x._d.getTimezoneOffset())}o.updateOffset=function(){};function Sp(x,H,oe){var le=this._offset||0,Ce;if(!this.isValid())return x!=null?this:NaN;if(x!=null){if(typeof x=="string"){if(x=il(nt,x),x===null)return this}else Math.abs(x)<16&&!oe&&(x=x*60);return!this._isUTC&&H&&(Ce=Bf(this)),this._offset=x,this._isUTC=!0,Ce!=null&&this.add(Ce,"m"),le!==x&&(!H||this._changeInProgress?Lr(this,un(x-le,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?le:Bf(this)}function Ng(x,H){return x!=null?(typeof x!="string"&&(x=-x),this.utcOffset(x,H),this):-this.utcOffset()}function Be(x){return this.utcOffset(0,x)}function at(x){return this._isUTC&&(this.utcOffset(0,x),this._isUTC=!1,x&&this.subtract(Bf(this),"m")),this}function Ct(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var x=il(Ne,this._i);x!=null?this.utcOffset(x):this.utcOffset(0,!0)}return this}function Tt(x){return this.isValid()?(x=x?Ln(x).utcOffset():0,(this.utcOffset()-x)%60===0):!1}function Re(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function rt(){if(!d(this._isDSTShifted))return this._isDSTShifted;var x={},H;return L(x,this),x=Ps(x),x._a?(H=x._isUTC?_(x._a):Ln(x._a),this._isDSTShifted=this.isValid()&&Cp(x._a,H.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function it(){return this.isValid()?!this._isUTC:!1}function Ft(){return this.isValid()?this._isUTC:!1}function zt(){return this.isValid()?this._isUTC&&this._offset===0:!1}var kn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Cn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function un(x,H){var oe=x,le=null,Ce,ot,Ot;return As(x)?oe={ms:x._milliseconds,d:x._days,M:x._months}:u(x)||!isNaN(+x)?(oe={},H?oe[H]=+x:oe.milliseconds=+x):(le=kn.exec(x))?(Ce=le[1]==="-"?-1:1,oe={y:0,d:On(le[Dr])*Ce,h:On(le[Di])*Ce,m:On(le[xr])*Ce,s:On(le[Wr])*Ce,ms:On(Hl(le[yi]*1e3))*Ce}):(le=Cn.exec(x))?(Ce=le[1]==="-"?-1:1,oe={y:Zn(le[2],Ce),M:Zn(le[3],Ce),w:Zn(le[4],Ce),d:Zn(le[5],Ce),h:Zn(le[6],Ce),m:Zn(le[7],Ce),s:Zn(le[8],Ce)}):oe==null?oe={}:typeof oe=="object"&&("from"in oe||"to"in oe)&&(Ot=ko(Ln(oe.from),Ln(oe.to)),oe={},oe.ms=Ot.milliseconds,oe.M=Ot.months),ot=new Bl(oe),As(x)&&a(x,"_locale")&&(ot._locale=x._locale),As(x)&&a(x,"_isValid")&&(ot._isValid=x._isValid),ot}un.fn=Bl.prototype,un.invalid=zf;function Zn(x,H){var oe=x&&parseFloat(x.replace(",","."));return(isNaN(oe)?0:oe)*H}function Nn(x,H){var oe={};return oe.months=H.month()-x.month()+(H.year()-x.year())*12,x.clone().add(oe.months,"M").isAfter(H)&&--oe.months,oe.milliseconds=+H-+x.clone().add(oe.months,"M"),oe}function ko(x,H){var oe;return x.isValid()&&H.isValid()?(H=cs(H,x),x.isBefore(H)?oe=Nn(x,H):(oe=Nn(H,x),oe.milliseconds=-oe.milliseconds,oe.months=-oe.months),oe):{milliseconds:0,months:0}}function _r(x,H){return function(oe,le){var Ce,ot;return le!==null&&!isNaN(+le)&&(V(H,"moment()."+H+"(period, number) is deprecated. Please use moment()."+H+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ot=oe,oe=le,le=ot),Ce=un(oe,le),Lr(this,Ce,x),this}}function Lr(x,H,oe,le){var Ce=H._milliseconds,ot=Hl(H._days),Ot=Hl(H._months);x.isValid()&&(le=le??!0,Ot&<(x,Cs(x,"Month")+Ot*oe),ot&&Fs(x,"Date",Cs(x,"Date")+ot*oe),Ce&&x._d.setTime(x._d.valueOf()+Ce*oe),le&&o.updateOffset(x,ot||Ot))}var Mr=_r(1,"add"),Us=_r(-1,"subtract");function rl(x){return typeof x=="string"||x instanceof String}function eo(x){return j(x)||f(x)||rl(x)||u(x)||ck(x)||q6(x)||x===null||x===void 0}function q6(x){var H=s(x)&&!l(x),oe=!1,le=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Ce,ot,Ot=le.length;for(Ce=0;Ce<Ot;Ce+=1)ot=le[Ce],oe=oe||a(x,ot);return H&&oe}function ck(x){var H=r(x),oe=!1;return H&&(oe=x.filter(function(le){return!u(le)&&rl(x)}).length===0),H&&oe}function Rg(x){var H=s(x)&&!l(x),oe=!1,le=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],Ce,ot;for(Ce=0;Ce<le.length;Ce+=1)ot=le[Ce],oe=oe||a(x,ot);return H&&oe}function Y6(x,H){var oe=x.diff(H,"days",!0);return oe<-6?"sameElse":oe<-1?"lastWeek":oe<0?"lastDay":oe<1?"sameDay":oe<2?"nextDay":oe<7?"nextWeek":"sameElse"}function W6(x,H){arguments.length===1&&(arguments[0]?eo(arguments[0])?(x=arguments[0],H=void 0):Rg(arguments[0])&&(H=arguments[0],x=void 0):(x=void 0,H=void 0));var oe=x||Ln(),le=cs(oe,this).startOf("day"),Ce=o.calendarFormat(this,le)||"sameElse",ot=H&&(G(H[Ce])?H[Ce].call(this,oe):H[Ce]);return this.format(ot||this.localeData().calendar(Ce,this,Ln(oe)))}function G6(){return new S(this)}function jg(x,H){var oe=j(x)?x:Ln(x);return this.isValid()&&oe.isValid()?(H=ye(H)||"millisecond",H==="millisecond"?this.valueOf()>oe.valueOf():oe.valueOf()<this.clone().startOf(H).valueOf()):!1}function yu(x,H){var oe=j(x)?x:Ln(x);return this.isValid()&&oe.isValid()?(H=ye(H)||"millisecond",H==="millisecond"?this.valueOf()<oe.valueOf():this.clone().endOf(H).valueOf()<oe.valueOf()):!1}function Fg(x,H,oe,le){var Ce=j(x)?x:Ln(x),ot=j(H)?H:Ln(H);return this.isValid()&&Ce.isValid()&&ot.isValid()?(le=le||"()",(le[0]==="("?this.isAfter(Ce,oe):!this.isBefore(Ce,oe))&&(le[1]===")"?this.isBefore(ot,oe):!this.isAfter(ot,oe))):!1}function dk(x,H){var oe=j(x)?x:Ln(x),le;return this.isValid()&&oe.isValid()?(H=ye(H)||"millisecond",H==="millisecond"?this.valueOf()===oe.valueOf():(le=oe.valueOf(),this.clone().startOf(H).valueOf()<=le&&le<=this.clone().endOf(H).valueOf())):!1}function zg(x,H){return this.isSame(x,H)||this.isAfter(x,H)}function uk(x,H){return this.isSame(x,H)||this.isBefore(x,H)}function hk(x,H,oe){var le,Ce,ot;if(!this.isValid())return NaN;if(le=cs(x,this),!le.isValid())return NaN;switch(Ce=(le.utcOffset()-this.utcOffset())*6e4,H=ye(H),H){case"year":ot=Ch(this,le)/12;break;case"month":ot=Ch(this,le);break;case"quarter":ot=Ch(this,le)/3;break;case"second":ot=(this-le)/1e3;break;case"minute":ot=(this-le)/6e4;break;case"hour":ot=(this-le)/36e5;break;case"day":ot=(this-le-Ce)/864e5;break;case"week":ot=(this-le-Ce)/6048e5;break;default:ot=this-le}return oe?ot:ji(ot)}function Ch(x,H){if(x.date()<H.date())return-Ch(H,x);var oe=(H.year()-x.year())*12+(H.month()-x.month()),le=x.clone().add(oe,"months"),Ce,ot;return H-le<0?(Ce=x.clone().add(oe-1,"months"),ot=(H-le)/(le-Ce)):(Ce=x.clone().add(oe+1,"months"),ot=(H-le)/(Ce-le)),-(oe+ot)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function fk(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Tp(x){if(!this.isValid())return null;var H=x!==!0,oe=H?this.clone().utc():this;return oe.year()<0||oe.year()>9999?Ae(oe,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):G(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ae(oe,"Z")):Ae(oe,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Sh(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var x="moment",H="",oe,le,Ce,ot;return this.isLocal()||(x=this.utcOffset()===0?"moment.utc":"moment.parseZone",H="Z"),oe="["+x+'("]',le=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Ce="-MM-DD[T]HH:mm:ss.SSS",ot=H+'[")]',this.format(oe+le+Ce+ot)}function Ug(x){x||(x=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var H=Ae(this,x);return this.localeData().postformat(H)}function Z6(x,H){return this.isValid()&&(j(x)&&x.isValid()||Ln(x).isValid())?un({to:this,from:x}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()}function K6(x){return this.from(Ln(),x)}function J6(x,H){return this.isValid()&&(j(x)&&x.isValid()||Ln(x).isValid())?un({from:this,to:x}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()}function Bg(x){return this.to(Ln(),x)}function Ep(x){var H;return x===void 0?this._locale._abbr:(H=He(x),H!=null&&(this._locale=H),this)}var Hg=q("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(x){return x===void 0?this.localeData():this.locale(x)});function mk(){return this._locale}var Ip=1e3,Hf=60*Ip,Vg=60*Hf,yr=(365*400+97)*24*Vg;function dr(x,H){return(x%H+H)%H}function pk(x,H,oe){return x<100&&x>=0?new Date(x+400,H,oe)-yr:new Date(x,H,oe).valueOf()}function gk(x,H,oe){return x<100&&x>=0?Date.UTC(x+400,H,oe)-yr:Date.UTC(x,H,oe)}function vk(x){var H,oe;if(x=ye(x),x===void 0||x==="millisecond"||!this.isValid())return this;switch(oe=this._isUTC?gk:pk,x){case"year":H=oe(this.year(),0,1);break;case"quarter":H=oe(this.year(),this.month()-this.month()%3,1);break;case"month":H=oe(this.year(),this.month(),1);break;case"week":H=oe(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":H=oe(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":H=oe(this.year(),this.month(),this.date());break;case"hour":H=this._d.valueOf(),H-=dr(H+(this._isUTC?0:this.utcOffset()*Hf),Vg);break;case"minute":H=this._d.valueOf(),H-=dr(H,Hf);break;case"second":H=this._d.valueOf(),H-=dr(H,Ip);break}return this._d.setTime(H),o.updateOffset(this,!0),this}function X6(x){var H,oe;if(x=ye(x),x===void 0||x==="millisecond"||!this.isValid())return this;switch(oe=this._isUTC?gk:pk,x){case"year":H=oe(this.year()+1,0,1)-1;break;case"quarter":H=oe(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=oe(this.year(),this.month()+1,1)-1;break;case"week":H=oe(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=oe(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=oe(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=Vg-dr(H+(this._isUTC?0:this.utcOffset()*Hf),Vg)-1;break;case"minute":H=this._d.valueOf(),H+=Hf-dr(H,Hf)-1;break;case"second":H=this._d.valueOf(),H+=Ip-dr(H,Ip)-1;break}return this._d.setTime(H),o.updateOffset(this,!0),this}function lb(){return this._d.valueOf()-(this._offset||0)*6e4}function Pp(){return Math.floor(this.valueOf()/1e3)}function cb(){return new Date(this.valueOf())}function Vf(){var x=this;return[x.year(),x.month(),x.date(),x.hour(),x.minute(),x.second(),x.millisecond()]}function Ap(){var x=this;return{years:x.year(),months:x.month(),date:x.date(),hours:x.hours(),minutes:x.minutes(),seconds:x.seconds(),milliseconds:x.milliseconds()}}function Dp(){return this.isValid()?this.toISOString():null}function qg(){return E(this)}function qf(){return v({},C(this))}function Q6(){return C(this).overflow}function eC(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}be("N",0,0,"eraAbbr"),be("NN",0,0,"eraAbbr"),be("NNN",0,0,"eraAbbr"),be("NNNN",0,0,"eraName"),be("NNNNN",0,0,"eraNarrow"),be("y",["y",1],"yo","eraYear"),be("y",["yy",2],0,"eraYear"),be("y",["yyy",3],0,"eraYear"),be("y",["yyyy",4],0,"eraYear"),tn("N",Po),tn("NN",Po),tn("NNN",Po),tn("NNNN",iC),tn("NNNNN",rC),Gn(["N","NN","NNN","NNNN","NNNNN"],function(x,H,oe,le){var Ce=oe._locale.erasParse(x,le,oe._strict);Ce?C(oe).era=Ce:C(oe).invalidEra=x}),tn("y",bn),tn("yy",bn),tn("yyy",bn),tn("yyyy",bn),tn("yo",sC),Gn(["y","yy","yyy","yyyy"],So),Gn(["yo"],function(x,H,oe,le){var Ce;oe._locale._eraYearOrdinalRegex&&(Ce=x.match(oe._locale._eraYearOrdinalRegex)),oe._locale.eraYearOrdinalParse?H[So]=oe._locale.eraYearOrdinalParse(x,Ce):H[So]=parseInt(x,10)});function tC(x,H){var oe,le,Ce,ot=this._eras||He("en")._eras;for(oe=0,le=ot.length;oe<le;++oe){switch(typeof ot[oe].since){case"string":Ce=o(ot[oe].since).startOf("day"),ot[oe].since=Ce.valueOf();break}switch(typeof ot[oe].until){case"undefined":ot[oe].until=1/0;break;case"string":Ce=o(ot[oe].until).startOf("day").valueOf(),ot[oe].until=Ce.valueOf();break}}return ot}function nC(x,H,oe){var le,Ce,ot=this.eras(),Ot,wn,Kn;for(x=x.toUpperCase(),le=0,Ce=ot.length;le<Ce;++le)if(Ot=ot[le].name.toUpperCase(),wn=ot[le].abbr.toUpperCase(),Kn=ot[le].narrow.toUpperCase(),oe)switch(H){case"N":case"NN":case"NNN":if(wn===x)return ot[le];break;case"NNNN":if(Ot===x)return ot[le];break;case"NNNNN":if(Kn===x)return ot[le];break}else if([Ot,wn,Kn].indexOf(x)>=0)return ot[le]}function oC(x,H){var oe=x.since<=x.until?1:-1;return H===void 0?o(x.since).year():o(x.since).year()+(H-x.offset)*oe}function Yg(){var x,H,oe,le=this.localeData().eras();for(x=0,H=le.length;x<H;++x)if(oe=this.clone().startOf("day").valueOf(),le[x].since<=oe&&oe<=le[x].until||le[x].until<=oe&&oe<=le[x].since)return le[x].name;return""}function xp(){var x,H,oe,le=this.localeData().eras();for(x=0,H=le.length;x<H;++x)if(oe=this.clone().startOf("day").valueOf(),le[x].since<=oe&&oe<=le[x].until||le[x].until<=oe&&oe<=le[x].since)return le[x].narrow;return""}function _k(){var x,H,oe,le=this.localeData().eras();for(x=0,H=le.length;x<H;++x)if(oe=this.clone().startOf("day").valueOf(),le[x].since<=oe&&oe<=le[x].until||le[x].until<=oe&&oe<=le[x].since)return le[x].abbr;return""}function Se(){var x,H,oe,le,Ce=this.localeData().eras();for(x=0,H=Ce.length;x<H;++x)if(oe=Ce[x].since<=Ce[x].until?1:-1,le=this.clone().startOf("day").valueOf(),Ce[x].since<=le&&le<=Ce[x].until||Ce[x].until<=le&&le<=Ce[x].since)return(this.year()-o(Ce[x].since).year())*oe+Ce[x].offset;return this.year()}function Yf(x){return a(this,"_erasNameRegex")||gd.call(this),x?this._erasNameRegex:this._erasRegex}function Wg(x){return a(this,"_erasAbbrRegex")||gd.call(this),x?this._erasAbbrRegex:this._erasRegex}function sl(x){return a(this,"_erasNarrowRegex")||gd.call(this),x?this._erasNarrowRegex:this._erasRegex}function Po(x,H){return H.erasAbbrRegex(x)}function iC(x,H){return H.erasNameRegex(x)}function rC(x,H){return H.erasNarrowRegex(x)}function sC(x,H){return H._eraYearOrdinalRegex||bn}function gd(){var x=[],H=[],oe=[],le=[],Ce,ot,Ot,wn,Kn,Ao=this.eras();for(Ce=0,ot=Ao.length;Ce<ot;++Ce)Ot=Lo(Ao[Ce].name),wn=Lo(Ao[Ce].abbr),Kn=Lo(Ao[Ce].narrow),H.push(Ot),x.push(wn),oe.push(Kn),le.push(Ot),le.push(wn),le.push(Kn);this._erasRegex=new RegExp("^("+le.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+H.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+x.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+oe.join("|")+")","i")}be(0,["gg",2],0,function(){return this.weekYear()%100}),be(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Gg(x,H){be(0,[x,x.length],0,H)}Gg("gggg","weekYear"),Gg("ggggg","weekYear"),Gg("GGGG","isoWeekYear"),Gg("GGGGG","isoWeekYear"),tn("G",kt),tn("g",kt),tn("GG",We,Ze),tn("gg",We,Ze),tn("GGGG",cn,Ut),tn("gggg",cn,Ut),tn("GGGGG",fn,Je),tn("ggggg",fn,Je),Ar(["gggg","ggggg","GGGG","GGGGG"],function(x,H,oe,le){H[le.substr(0,2)]=On(x)}),Ar(["gg","GG"],function(x,H,oe,le){H[le]=o.parseTwoDigitYear(x)});function aC(x){return yk.call(this,x,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function lC(x){return yk.call(this,x,this.isoWeek(),this.isoWeekday(),1,4)}function cC(){return Mn(this.year(),1,4)}function dC(){return Mn(this.isoWeekYear(),1,4)}function vd(){var x=this.localeData()._week;return Mn(this.year(),x.dow,x.doy)}function uC(){var x=this.localeData()._week;return Mn(this.weekYear(),x.dow,x.doy)}function yk(x,H,oe,le,Ce){var ot;return x==null?no(this,le,Ce).year:(ot=Mn(x,le,Ce),H>ot&&(H=ot),hC.call(this,x,H,oe,le,Ce))}function hC(x,H,oe,le,Ce){var ot=xn(x,H,oe,le,Ce),Ot=nn(ot.year,0,ot.dayOfYear);return this.year(Ot.getUTCFullYear()),this.month(Ot.getUTCMonth()),this.date(Ot.getUTCDate()),this}be("Q",0,"Qo","quarter"),tn("Q",Xe),Gn("Q",function(x,H){H[ss]=(On(x)-1)*3});function fC(x){return x==null?Math.ceil((this.month()+1)/3):this.month((x-1)*3+this.month()%3)}be("D",["DD",2],"Do","date"),tn("D",We,dn),tn("DD",We,Ze),tn("Do",function(x,H){return x?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),Gn(["D","DD"],Dr),Gn("Do",function(x,H){H[Dr]=On(x.match(We)[0])});var bk=Fi("Date",!0);be("DDD",["DDDD",3],"DDDo","dayOfYear"),tn("DDD",Vt),tn("DDDD",vt),Gn(["DDD","DDDD"],function(x,H,oe){oe._dayOfYear=On(x)});function _d(x){var H=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return x==null?H:this.add(x-H,"d")}be("m",["mm",2],0,"minute"),tn("m",We,Hn),tn("mm",We,Ze),Gn(["m","mm"],xr);var mC=Fi("Minutes",!1);be("s",["ss",2],0,"second"),tn("s",We,Hn),tn("ss",We,Ze),Gn(["s","ss"],Wr);var pC=Fi("Seconds",!1);be("S",0,0,function(){return~~(this.millisecond()/100)}),be(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),be(0,["SSS",3],0,"millisecond"),be(0,["SSSS",4],0,function(){return this.millisecond()*10}),be(0,["SSSSS",5],0,function(){return this.millisecond()*100}),be(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),be(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),be(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),be(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),tn("S",Vt,Xe),tn("SS",Vt,Ze),tn("SSS",Vt,vt);var bu,kk;for(bu="SSSS";bu.length<=9;bu+="S")tn(bu,bn);function gC(x,H){H[yi]=On(("0."+x)*1e3)}for(bu="S";bu.length<=9;bu+="S")Gn(bu,gC);kk=Fi("Milliseconds",!1),be("z",0,0,"zoneAbbr"),be("zz",0,0,"zoneName");function Th(){return this._isUTC?"UTC":""}function vC(){return this._isUTC?"Coordinated Universal Time":""}var on=S.prototype;on.add=Mr,on.calendar=W6,on.clone=G6,on.diff=hk,on.endOf=X6,on.format=Ug,on.from=Z6,on.fromNow=K6,on.to=J6,on.toNow=Bg,on.get=as,on.invalidAt=Q6,on.isAfter=jg,on.isBefore=yu,on.isBetween=Fg,on.isSame=dk,on.isSameOrAfter=zg,on.isSameOrBefore=uk,on.isValid=qg,on.lang=Hg,on.locale=Ep,on.localeData=mk,on.max=wa,on.min=$h,on.parsingFlags=qf,on.set=Rl,on.startOf=vk,on.subtract=Us,on.toArray=Vf,on.toObject=Ap,on.toDate=cb,on.toISOString=Tp,on.inspect=Sh,typeof Symbol<"u"&&Symbol.for!=null&&(on[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),on.toJSON=Dp,on.toString=fk,on.unix=Pp,on.valueOf=lb,on.creationData=eC,on.eraName=Yg,on.eraNarrow=xp,on.eraAbbr=_k,on.eraYear=Se,on.year=Ka,on.isLeapYear=Ja,on.weekYear=aC,on.isoWeekYear=lC,on.quarter=on.quarters=fC,on.month=ft,on.daysInMonth=ct,on.week=on.weeks=vr,on.isoWeek=on.isoWeeks=gc,on.weeksInYear=vd,on.weeksInWeekYear=uC,on.isoWeeksInYear=cC,on.isoWeeksInISOWeekYear=dC,on.date=bk,on.day=on.days=na,on.weekday=gu,on.isoWeekday=fd,on.dayOfYear=_d,on.hour=on.hours=oo,on.minute=on.minutes=mC,on.second=on.seconds=pC,on.millisecond=on.milliseconds=kk,on.utcOffset=Sp,on.utc=Be,on.local=at,on.parseZone=Ct,on.hasAlignedHourOffset=Tt,on.isDST=Re,on.isLocal=it,on.isUtcOffset=Ft,on.isUtc=zt,on.isUTC=zt,on.zoneAbbr=Th,on.zoneName=vC,on.dates=q("dates accessor is deprecated. Use date instead.",bk),on.months=q("months accessor is deprecated. Use month instead",ft),on.years=q("years accessor is deprecated. Use year instead",Ka),on.zone=q("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ng),on.isDSTShifted=q("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",rt);function Vl(x){return Ln(x*1e3)}function _C(){return Ln.apply(null,arguments).parseZone()}function wk(x){return x}var ci=Y.prototype;ci.calendar=ce,ci.longDateFormat=_t,ci.invalidDate=we,ci.ordinal=$t,ci.preparse=wk,ci.postformat=wk,ci.relativeTime=Ve,ci.pastFuture=tt,ci.set=Q,ci.eras=tC,ci.erasParse=nC,ci.erasConvertYear=oC,ci.erasAbbrRegex=Wg,ci.erasNameRegex=Yf,ci.erasNarrowRegex=sl,ci.months=jl,ci.monthsShort=Ie,ci.monthsParse=ze,ci.monthsRegex=qt,ci.monthsShortRegex=Nt,ci.week=To,ci.firstDayOfYear=gr,ci.firstDayOfWeek=ii,ci.weekdays=el,ci.weekdaysMin=bc,ci.weekdaysShort=kh,ci.weekdaysParse=pu,ci.weekdaysRegex=li,ci.weekdaysShortRegex=Yo,ci.weekdaysMinRegex=re,ci.isPM=po,ci.meridiem=No;function Zg(x,H,oe,le){var Ce=He(),ot=_().set(le,H);return Ce[oe](ot,x)}function $k(x,H,oe){if(u(x)&&(H=x,x=void 0),x=x||"",H!=null)return Zg(x,H,oe,"month");var le,Ce=[];for(le=0;le<12;le++)Ce[le]=Zg(x,le,oe,"month");return Ce}function Kg(x,H,oe,le){typeof x=="boolean"?(u(H)&&(oe=H,H=void 0),H=H||""):(H=x,oe=H,x=!1,u(H)&&(oe=H,H=void 0),H=H||"");var Ce=He(),ot=x?Ce._week.dow:0,Ot,wn=[];if(oe!=null)return Zg(H,(oe+ot)%7,le,"day");for(Ot=0;Ot<7;Ot++)wn[Ot]=Zg(H,(Ot+ot)%7,le,"day");return wn}function Ck(x,H){return $k(x,H,"months")}function yC(x,H){return $k(x,H,"monthsShort")}function bC(x,H,oe){return Kg(x,H,oe,"weekdays")}function db(x,H,oe){return Kg(x,H,oe,"weekdaysShort")}function Op(x,H,oe){return Kg(x,H,oe,"weekdaysMin")}ue("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(x){var H=x%10,oe=On(x%100/10)===1?"th":H===1?"st":H===2?"nd":H===3?"rd":"th";return x+oe}}),o.lang=q("moment.lang is deprecated. Use moment.locale instead.",ue),o.langData=q("moment.langData is deprecated. Use moment.localeData instead.",He);var al=Math.abs;function kC(){var x=this._data;return this._milliseconds=al(this._milliseconds),this._days=al(this._days),this._months=al(this._months),x.milliseconds=al(x.milliseconds),x.seconds=al(x.seconds),x.minutes=al(x.minutes),x.hours=al(x.hours),x.months=al(x.months),x.years=al(x.years),this}function ub(x,H,oe,le){var Ce=un(H,oe);return x._milliseconds+=le*Ce._milliseconds,x._days+=le*Ce._days,x._months+=le*Ce._months,x._bubble()}function wC(x,H){return ub(this,x,H,1)}function yd(x,H){return ub(this,x,H,-1)}function Jg(x){return x<0?Math.floor(x):Math.ceil(x)}function Eh(){var x=this._milliseconds,H=this._days,oe=this._months,le=this._data,Ce,ot,Ot,wn,Kn;return x>=0&&H>=0&&oe>=0||x<=0&&H<=0&&oe<=0||(x+=Jg(hb(oe)+H)*864e5,H=0,oe=0),le.milliseconds=x%1e3,Ce=ji(x/1e3),le.seconds=Ce%60,ot=ji(Ce/60),le.minutes=ot%60,Ot=ji(ot/60),le.hours=Ot%24,H+=ji(Ot/24),Kn=ji($a(H)),oe+=Kn,H-=Jg(hb(Kn)),wn=ji(oe/12),oe%=12,le.days=H,le.months=oe,le.years=wn,this}function $a(x){return x*4800/146097}function hb(x){return x*146097/4800}function Sk(x){if(!this.isValid())return NaN;var H,oe,le=this._milliseconds;if(x=ye(x),x==="month"||x==="quarter"||x==="year")switch(H=this._days+le/864e5,oe=this._months+$a(H),x){case"month":return oe;case"quarter":return oe/3;case"year":return oe/12}else switch(H=this._days+Math.round(hb(this._months)),x){case"week":return H/7+le/6048e5;case"day":return H+le/864e5;case"hour":return H*24+le/36e5;case"minute":return H*1440+le/6e4;case"second":return H*86400+le/1e3;case"millisecond":return Math.floor(H*864e5)+le;default:throw new Error("Unknown unit "+x)}}function $c(x){return function(){return this.as(x)}}var Wf=$c("ms"),ku=$c("s"),Tk=$c("m"),$C=$c("h"),Xg=$c("d"),CC=$c("w"),Ek=$c("M"),ds=$c("Q"),fb=$c("y"),Ik=Wf;function Cc(){return un(this)}function mb(x){return x=ye(x),this.isValid()?this[x+"s"]():NaN}function Sc(x){return function(){return this.isValid()?this._data[x]:NaN}}var Ih=Sc("milliseconds"),Pk=Sc("seconds"),Bs=Sc("minutes"),pb=Sc("hours"),SC=Sc("days"),TC=Sc("months"),EC=Sc("years");function gb(){return ji(this.days()/7)}var bd=Math.round,Tc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ak(x,H,oe,le,Ce){return Ce.relativeTime(H||1,!!oe,x,le)}function IC(x,H,oe,le){var Ce=un(x).abs(),ot=bd(Ce.as("s")),Ot=bd(Ce.as("m")),wn=bd(Ce.as("h")),Kn=bd(Ce.as("d")),Ao=bd(Ce.as("M")),Hs=bd(Ce.as("w")),Ec=bd(Ce.as("y")),kd=ot<=oe.ss&&["s",ot]||ot<oe.s&&["ss",ot]||Ot<=1&&["m"]||Ot<oe.m&&["mm",Ot]||wn<=1&&["h"]||wn<oe.h&&["hh",wn]||Kn<=1&&["d"]||Kn<oe.d&&["dd",Kn];return oe.w!=null&&(kd=kd||Hs<=1&&["w"]||Hs<oe.w&&["ww",Hs]),kd=kd||Ao<=1&&["M"]||Ao<oe.M&&["MM",Ao]||Ec<=1&&["y"]||["yy",Ec],kd[2]=H,kd[3]=+x>0,kd[4]=le,Ak.apply(null,kd)}function PC(x){return x===void 0?bd:typeof x=="function"?(bd=x,!0):!1}function Lp(x,H){return Tc[x]===void 0?!1:H===void 0?Tc[x]:(Tc[x]=H,x==="s"&&(Tc.ss=H-1),!0)}function AC(x,H){if(!this.isValid())return this.localeData().invalidDate();var oe=!1,le=Tc,Ce,ot;return typeof x=="object"&&(H=x,x=!1),typeof x=="boolean"&&(oe=x),typeof H=="object"&&(le=Object.assign({},Tc,H),H.s!=null&&H.ss==null&&(le.ss=H.s-1)),Ce=this.localeData(),ot=IC(this,!oe,le,Ce),oe&&(ot=Ce.pastFuture(+this,ot)),Ce.postformat(ot)}var vb=Math.abs;function wu(x){return(x>0)-(x<0)||+x}function Mp(){if(!this.isValid())return this.localeData().invalidDate();var x=vb(this._milliseconds)/1e3,H=vb(this._days),oe=vb(this._months),le,Ce,ot,Ot,wn=this.asSeconds(),Kn,Ao,Hs,Ec;return wn?(le=ji(x/60),Ce=ji(le/60),x%=60,le%=60,ot=ji(oe/12),oe%=12,Ot=x?x.toFixed(3).replace(/\.?0+$/,""):"",Kn=wn<0?"-":"",Ao=wu(this._months)!==wu(wn)?"-":"",Hs=wu(this._days)!==wu(wn)?"-":"",Ec=wu(this._milliseconds)!==wu(wn)?"-":"",Kn+"P"+(ot?Ao+ot+"Y":"")+(oe?Ao+oe+"M":"")+(H?Hs+H+"D":"")+(Ce||le||x?"T":"")+(Ce?Ec+Ce+"H":"")+(le?Ec+le+"M":"")+(x?Ec+Ot+"S":"")):"P0D"}var Wo=Bl.prototype;Wo.isValid=wc,Wo.abs=kC,Wo.add=wC,Wo.subtract=yd,Wo.as=Sk,Wo.asMilliseconds=Wf,Wo.asSeconds=ku,Wo.asMinutes=Tk,Wo.asHours=$C,Wo.asDays=Xg,Wo.asWeeks=CC,Wo.asMonths=Ek,Wo.asQuarters=ds,Wo.asYears=fb,Wo.valueOf=Ik,Wo._bubble=Eh,Wo.clone=Cc,Wo.get=mb,Wo.milliseconds=Ih,Wo.seconds=Pk,Wo.minutes=Bs,Wo.hours=pb,Wo.days=SC,Wo.weeks=gb,Wo.months=TC,Wo.years=EC,Wo.humanize=AC,Wo.toISOString=Mp,Wo.toString=Mp,Wo.toJSON=Mp,Wo.locale=Ep,Wo.localeData=mk,Wo.toIsoString=q("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mp),Wo.lang=Hg,be("X",0,0,"unix"),be("x",0,0,"valueOf"),tn("x",kt),tn("X",It),Gn("X",function(x,H,oe){oe._d=new Date(parseFloat(x)*1e3)}),Gn("x",function(x,H,oe){oe._d=new Date(On(x))});//! moment.js return o.version="2.30.1",i(Ln),o.fn=on,o.min=sb,o.max=ab,o.now=Lg,o.utc=_,o.unix=Vl,o.months=Ck,o.isDate=f,o.locale=ue,o.invalid=P,o.duration=un,o.isMoment=j,o.weekdays=bC,o.parseZone=_C,o.localeData=He,o.isDuration=As,o.monthsShort=yC,o.weekdaysMin=Op,o.defineLocale=ke,o.updateLocale=Qe,o.locales=ht,o.weekdaysShort=db,o.normalizeUnits=ye,o.relativeTimeRounding=PC,o.relativeTimeThreshold=Lp,o.calendarFormat=Y6,o.prototype=on,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o})}(qT)),qT.exports}var fln=rce();const Ou=Ol(fln);(function(e,t){(function(n,o){o(typeof Yv=="function"?rce():n.moment)})(bo,function(n){//! moment.js locale configuration var o={standalone:"leden_Ăşnor_bĹ™ezen_duben_kvÄ›ten_ÄŤerven_ÄŤervenec_srpen_zářĂ_Ĺ™Ăjen_listopad_prosinec".split("_"),format:"ledna_Ăşnora_bĹ™ezna_dubna_kvÄ›tna_ÄŤervna_ÄŤervence_srpna_zářĂ_Ĺ™Ăjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},i="led_Ăşno_bĹ™e_dub_kvÄ›_ÄŤvn_ÄŤvc_srp_zář_Ĺ™Ăj_lis_pro".split("_"),r=[/^led/i,/^Ăşno/i,/^bĹ™e/i,/^dub/i,/^kvÄ›/i,/^(ÄŤvn|ÄŤerven$|ÄŤervna)/i,/^(ÄŤvc|ÄŤervenec|ÄŤervence)/i,/^srp/i,/^zář/i,/^Ĺ™Ăj/i,/^lis/i,/^pro/i],s=/^(leden|Ăşnor|bĹ™ezen|duben|kvÄ›ten|ÄŤervenec|ÄŤervence|ÄŤerven|ÄŤervna|srpen|zářĂ|Ĺ™Ăjen|listopad|prosinec|led|Ăşno|bĹ™e|dub|kvÄ›|ÄŤvn|ÄŤvc|srp|zář|Ĺ™Ăj|lis|pro)/i;function a(u){return u>1&&u<5&&~~(u/10)!==1}function l(u,f,p,v){var _=u+" ";switch(p){case"s":return f||v?"pár sekund":"pár sekundami";case"ss":return f||v?_+(a(u)?"sekundy":"sekund"):_+"sekundami";case"m":return f?"minuta":v?"minutu":"minutou";case"mm":return f||v?_+(a(u)?"minuty":"minut"):_+"minutami";case"h":return f?"hodina":v?"hodinu":"hodinou";case"hh":return f||v?_+(a(u)?"hodiny":"hodin"):_+"hodinami";case"d":return f||v?"den":"dnem";case"dd":return f||v?_+(a(u)?"dny":"dnĂ"):_+"dny";case"M":return f||v?"mÄ›sĂc":"mÄ›sĂcem";case"MM":return f||v?_+(a(u)?"mÄ›sĂce":"mÄ›sĂcĹŻ"):_+"mÄ›sĂci";case"y":return f||v?"rok":"rokem";case"yy":return f||v?_+(a(u)?"roky":"let"):_+"lety"}}var d=n.defineLocale("cs",{months:o,monthsShort:i,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(leden|ledna|Ăşnora|Ăşnor|bĹ™ezen|bĹ™ezna|duben|dubna|kvÄ›ten|kvÄ›tna|ÄŤervenec|ÄŤervence|ÄŤerven|ÄŤervna|srpen|srpna|zářĂ|Ĺ™Ăjen|Ĺ™Ăjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|Ăşno|bĹ™e|dub|kvÄ›|ÄŤvn|ÄŤvc|srp|zář|Ĺ™Ăj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"nedÄ›le_pondÄ›lĂ_ĂşterĂ˝_stĹ™eda_ÄŤtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_Ăşt_st_ÄŤt_pá_so".split("_"),weekdaysMin:"ne_po_Ăşt_st_ÄŤt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zĂtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedÄ›li v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve stĹ™edu v] LT";case 4:return"[ve ÄŤtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[vÄŤera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou nedÄ›li v] LT";case 1:case 2:return"[minulĂ©] dddd [v] LT";case 3:return"[minulou stĹ™edu v] LT";case 4:case 5:return"[minulĂ˝] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pĹ™ed %s",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return d})})();const mln={methods:{ziggyRoute:Pe},props:{webinar:{type:Object},hideAuthor:{type:Boolean,default:!1},showDurationInsteadOfEndDate:{type:Boolean,default:!1}},computed:{webinarDateString(){return this.webinar.start_date_iso?Ou(this.webinar.start_date_iso).locale("cs").format("D. MMMM YYYY"):""},webinarTimeString(){if(this.showDurationInsteadOfEndDate&&this.webinar.length_minutes)return this.webinar.length_minutes+" "+this.$t("public.time.minutes").toLowerCase();if(this.webinar.start_date_iso){let e=Ou(this.webinar.start_date_iso),t=null;return this.webinar.end_date_iso&&(t=" - "+Ou(this.webinar.end_date_iso).format("HH:mm")),e.format("HH:mm")+(t||"")}return""}}},pln={class:"mb-3 text-gray-900 d-flex flex-wrap"},gln={key:0},vln={key:1},_ln={class:"fw-bold me-2"},yln={class:"text-gray-700"},bln={key:0};function kln(e,t,n,o,i,r){return h(),g("div",pln,[c("div",{class:J([n.hideAuthor?"":"border-end-webinar-date pe-2 me-2"])},[n.webinar.date_string?(h(),g("span",gln,m(n.webinar.date_string),1)):n.webinar.start_date_iso?(h(),g("span",vln,[c("span",_ln,m(r.webinarDateString),1),c("span",yln,m(r.webinarTimeString),1)])):D("",!0)],2),n.hideAuthor?D("",!0):(h(),g("div",bln,m(n.webinar.author.name),1))])}const hM=U(mln,[["render",kln],["__scopeId","data-v-8dcb3a45"]]);const wln={components:{WebinarDateAuthor:hM,CountDownTimerWebinar:hln,Loading:Rt,WebinarCardCutout:ice,CountDownTimer:uM,WebinarCategoryPill:j6},props:{webinar:Object,hasActiveLink:{type:Boolean,default:!0}},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({loading:"webinar/getLoading"})}},$ln={key:0,class:"row"},Cln={class:"col-12"},Sln={class:"row"},Tln={class:"col-12 col-lg-8 order-1 order-lg-0 mt-3"},Eln={class:"mb-3 text-gray-900"},Iln={class:"mb-0 fw-bold"},Pln=["innerHTML"],Aln={class:"col-12 col-lg-4 order-0 order-lg-1 mt-0 mt-md-3"},Dln=["src","alt"],xln={class:"col-12"},Oln={class:"d-flex flex-wrap align-items-end gap-3 justify-content-center flex-lg-row flex-column align-items-lg-end align-items-center"},Lln={class:"fw-bold ps-0 ps-lg-5 mb-0 me-3 py-1 text-uppercase"},Mln=["href"];function Nln(e,t,n,o,i,r){const s=y("Loading"),a=y("WebinarCardCutout"),l=y("WebinarDateAuthor"),d=y("WebinarCategoryPill"),u=y("CountDownTimerWebinar");return h(),W(Dl(n.hasActiveLink?"router-link":"a"),{to:{name:"webinar/detail",params:{slug:n.webinar.slug}},class:"webinar-card-big position-relative vl-parent mh-10rem",onClick:t[2]||(t[2]=f=>e.$emit("navigate"))},{default:F(()=>[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=f=>e.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{class:"border-gray-400 bg-white d-none d-md-block",side:"left","top-position":"66",size:"42"}),b(a,{class:"border-gray-400 bg-white d-none d-md-block",side:"right","top-position":"66",size:"42"}),n.webinar?(h(),g("div",$ln,[c("div",Cln,[c("div",Sln,[c("div",Tln,[b(l,{webinar:n.webinar},null,8,["webinar"]),c("div",Eln,[c("h3",Iln,m(n.webinar.title),1)]),(h(!0),g(pe,null,Me(n.webinar.classes,f=>(h(),g("span",{key:f.id},[b(d,{category:f,class:"me-2"},null,8,["category"])]))),128)),c("p",{class:"mb-0 mt-3 text-gray-900",innerHTML:n.webinar.short_description},null,8,Pln)]),c("div",Aln,[c("img",{src:n.webinar.cover,class:"webinar-img img-fluid ms-auto ms-lg-auto d-block me-auto me-lg-0",alt:n.webinar.title},null,8,Dln)])])]),t[3]||(t[3]=c("div",{class:"col-12"},[c("hr",{class:"dotted-hr"})],-1)),c("div",xln,[c("div",Oln,[c("h5",Lln,m(e.$t("webinar.webinar_starts_in")),1),b(u,{"target-date":n.webinar.start_date_iso,title:null},null,8,["target-date"]),n.webinar.registration_form_url?(h(),g("a",{key:0,href:n.webinar.registration_form_url,onClick:t[1]||(t[1]=Gt(()=>{},["stop"])),class:"btn btn-primary btn-sm ms-0 ms-lg-auto me-0 me-lg-4 mt-3 mt-lg-0",target:"_blank"},m(e.$t("webinar.register")),9,Mln)):D("",!0)])])])):D("",!0)]),_:1},8,["to"])}const Rln=U(wln,[["render",Nln],["__scopeId","data-v-055f9292"]]);const jln={components:{WebinarDateAuthor:hM,WebinarCardCutout:ice,WebinarCategoryPill:j6},props:{webinar:Object,hasActiveLink:{type:Boolean,default:!0},backgroundClass:{type:String,default:"bg-primary-5"}}},Fln={class:"row"},zln={class:"col-12"},Uln={class:"mb-0 text-gray-900"},Bln={class:"mb-0 fw-bold"},Hln=["innerHTML"];function Vln(e,t,n,o,i,r){const s=y("WebinarCardCutout"),a=y("WebinarDateAuthor"),l=y("WebinarCategoryPill");return h(),W(Dl(n.hasActiveLink?"router-link":"a"),{to:{name:"webinar/detail",params:{slug:n.webinar.slug}},target:"_blank",class:"webinar-card-small position-relative",onClick:t[0]||(t[0]=d=>e.$emit("navigate"))},{default:F(()=>[c("div",Fln,[c("div",zln,[b(s,{class:J(["border-gray-400 d-none d-md-block",n.backgroundClass]),side:"left","top-position":"50",size:"42"},null,8,["class"]),b(s,{class:J(["border-gray-400 d-none d-md-block",n.backgroundClass]),side:"right","top-position":"50",size:"42"},null,8,["class"]),b(a,{webinar:n.webinar},null,8,["webinar"]),c("div",Uln,[c("h3",Bln,m(n.webinar.title),1)]),c("p",{class:"mb-3 text-gray-700 fs-6",innerHTML:n.webinar.short_description},null,8,Hln),(h(!0),g(pe,null,Me(n.webinar.classes,d=>(h(),g("span",{key:d.id},[b(l,{category:d,class:"me-2"},null,8,["category"])]))),128))])])]),_:1},8,["to"])}const qln=U(jln,[["render",Vln],["__scopeId","data-v-ae4533dc"]]),Yln={components:{WebinarCardSmall:qln,GrayBackgroundComponent:$g},props:{webinars:Array,showDottedLine:{type:Boolean,default(){return!0}}},data(){return{header:null}},mounted(){this.header=this.$refs["planned-webinars-header"]}},Wln={key:0,class:"text-center pt-3 pb-3"},Gln={ref:"planned-webinars-header"},Zln={class:"pt-4 pb-2 text-center"},Kln={class:"text-gray-900 fw-medium"};function Jln(e,t,n,o,i,r){const s=y("GrayBackgroundComponent"),a=y("WebinarCardSmall");return h(),g("div",null,[n.showDottedLine?(h(),g("div",Wln,t[1]||(t[1]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"103",viewBox:"0 0 7 103",fill:"none"},[c("line",{x1:"3.5242",y1:"2.52439",x2:"3.31646",y2:"23.7138",stroke:"#ECEFF9","stroke-width":"5","stroke-linecap":"round"}),c("line",{x1:"3.04883",y1:"48.4766",x2:"3.04883",y2:"53.5262",stroke:"#ECEFF9","stroke-width":"5","stroke-linecap":"round"}),c("line",{x1:"2.78104",y1:"78.3349",x2:"2.5733",y2:"99.5244",stroke:"#ECEFF9","stroke-width":"5","stroke-linecap":"round"})],-1)]))):D("",!0),c("div",Gln,[i.header?(h(),W(s,{key:0,header:i.header,offset:54},null,8,["header"])):D("",!0),c("div",Zln,[c("h3",Kln,m(e.$t("webinar.index.next_upcoming")),1)]),(h(!0),g(pe,null,Me(n.webinars,l=>(h(),g("div",{class:"pt-3 pb-3",key:l.id},[b(a,{webinar:l,onNavigate:t[0]||(t[0]=d=>e.$emit("navigate")),"has-active-link":!1},null,8,["webinar"])]))),128))],512)])}const Xln=U(Yln,[["render",Jln]]);const Qln={},ecn={class:"position-relative"};function tcn(e,t,n,o,i,r){return h(),g("div",ecn,t[0]||(t[0]=[wl('<svg width="339" height="401" viewBox="0 0 339 401" fill="none" xmlns="http://www.w3.org/2000/svg" class="ellipse-87" data-v-cbfa534b><g id="Ellipse 87" opacity="0.3" filter="url(#filter0_f_22029_6133)" data-v-cbfa534b><circle cx="138.5" cy="200.5" r="82.5" fill="#FFC642" data-v-cbfa534b></circle></g><defs data-v-cbfa534b><filter id="filter0_f_22029_6133" x="-62" y="0" width="401" height="401" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-cbfa534b><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-cbfa534b></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" data-v-cbfa534b></feBlend><feGaussianBlur stdDeviation="59" result="effect1_foregroundBlur_22029_6133" data-v-cbfa534b></feGaussianBlur></filter></defs></svg><svg width="379" height="379" viewBox="0 0 379 379" fill="none" xmlns="http://www.w3.org/2000/svg" class="ellipse-85" data-v-cbfa534b><g id="Ellipse 85" opacity="0.3" filter="url(#filter0_f_22029_6130)" data-v-cbfa534b><circle cx="189.5" cy="189.5" r="74.5" fill="#FC8B67" data-v-cbfa534b></circle></g><defs data-v-cbfa534b><filter id="filter0_f_22029_6130" x="0" y="0" width="379" height="379" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-cbfa534b><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-cbfa534b></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" data-v-cbfa534b></feBlend><feGaussianBlur stdDeviation="57.5" result="effect1_foregroundBlur_22029_6130" data-v-cbfa534b></feGaussianBlur></filter></defs></svg><svg width="359" height="401" viewBox="0 0 359 401" fill="none" xmlns="http://www.w3.org/2000/svg" class="ellipse-86" data-v-cbfa534b><g id="Ellipse 86" opacity="0.3" filter="url(#filter0_f_22029_6132)" data-v-cbfa534b><circle cx="200.5" cy="200.5" r="82.5" fill="#9260BE" data-v-cbfa534b></circle></g><defs data-v-cbfa534b><filter id="filter0_f_22029_6132" x="0" y="0" width="401" height="401" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-cbfa534b><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-cbfa534b></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" data-v-cbfa534b></feBlend><feGaussianBlur stdDeviation="59" result="effect1_foregroundBlur_22029_6132" data-v-cbfa534b></feGaussianBlur></filter></defs></svg><svg width="379" height="379" viewBox="0 0 379 379" fill="none" xmlns="http://www.w3.org/2000/svg" class="ellipse-101" data-v-cbfa534b><g id="Ellipse 101" opacity="0.3" filter="url(#filter0_f_22029_6131)" data-v-cbfa534b><circle cx="189.5" cy="189.5" r="74.5" fill="#5EBF79" data-v-cbfa534b></circle></g><defs data-v-cbfa534b><filter id="filter0_f_22029_6131" x="0" y="0" width="379" height="379" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" data-v-cbfa534b><feFlood flood-opacity="0" result="BackgroundImageFix" data-v-cbfa534b></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" data-v-cbfa534b></feBlend><feGaussianBlur stdDeviation="57.5" result="effect1_foregroundBlur_22029_6131" data-v-cbfa534b></feGaussianBlur></filter></defs></svg><svg xmlns="http://www.w3.org/2000/svg" width="1440" height="272" viewBox="0 0 1440 272" fill="none" class="line" data-v-cbfa534b><path d="M1523.05 1.32939C1454.21 87.5999 1376.44 113.917 1276.96 111.827C788.146 58.6639 208.454 100.831 99.624 143.993C36.2412 169.131 -11.1533 196.317 -81.3243 270.699" stroke="#ECEFF9" stroke-width="3" stroke-dasharray="6 6" data-v-cbfa534b></path></svg>',5)]))}const ncn=U(Qln,[["render",tcn],["__scopeId","data-v-cbfa534b"]]);const ocn={components:{WebinarCategoryPill:j6},props:{webinar:{type:Object},hasRouterLink:{type:Boolean,default:!0}}},icn={class:"fs-6 text-gray-700 mt-5 mb-3"},rcn={class:"mb-3 fw-bold"},scn={class:"mb-3"},acn=["src","alt"],lcn={class:"fs-6 mb-3"},ccn={class:"pb-3"},dcn=["href"];function ucn(e,t,n,o,i,r){const s=y("router-link"),a=y("WebinarCategoryPill");return h(),g("div",{class:J({"minh-330":n.hasRouterLink})},[n.webinar.title?(h(),g(pe,{key:0},[c("div",icn,m(n.webinar.start_date),1),b(s,{to:{name:"webinar/detail",params:{slug:n.webinar.slug}},onClick:t[0]||(t[0]=l=>e.$emit("navigate"))},{default:F(()=>[c("h3",rcn,m(n.webinar.title),1)]),_:1},8,["to"]),c("div",null,[(h(!0),g(pe,null,Me(n.webinar.classes,l=>(h(),W(a,{key:l.id,category:l,class:"me-2 mb-3"},null,8,["category"]))),128))]),c("div",scn,[c("img",{src:n.webinar.author.image_thumbnail,alt:n.webinar.author.name,class:"img-fluid me-2 img-webinar-small rounded-circle"},null,8,acn),z(" "+m(n.webinar.author.name),1)]),c("div",lcn,m(n.webinar.short_description),1),c("div",ccn,[n.hasRouterLink?(h(),W(s,{key:0,to:{name:"webinar/detail",params:{slug:n.webinar.slug}},onClick:t[1]||(t[1]=l=>e.$emit("navigate"))},{default:F(()=>[z(m(e.$t("webinar.show")),1)]),_:1},8,["to"])):(h(),g("a",{key:1,href:e.ziggyRoute("webinars.show",n.webinar.slug),target:"_blank",onClick:t[2]||(t[2]=l=>e.$emit("navigate"))},m(e.$t("webinar.show")),9,dcn))])],64)):D("",!0)],2)}const hcn=U(ocn,[["render",ucn],["__scopeId","data-v-91da5390"]]);function*sce(e,t){for(let n=0;n<e.length;n+=t)yield e.slice(n,n+t)}const fcn={components:{AppIcon:Ue,WebinarCardSimple:hcn},props:{webinars:{type:Array},divideIntoYears:{type:Boolean,default:!1}},methods:{chunks(e,t){return sce(e,t)}},computed:{webinarsInYears(){let e=new Map;return this.webinars.forEach(t=>{const n=new Date(t.start_date_iso).getFullYear();e.has(n)||e.set(n,[]),e.get(n).push(t)}),e},webinarsList(){return this.divideIntoYears?this.webinarsInYears:[this.webinars]}}},mcn={class:"grid-parent"},pcn={key:0,class:"ms-3 bg-primary-10 rounded-1 px-3 py-1 text-gray-900 d-inline-flex flex-wrap align-items-center"};function gcn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("WebinarCardSimple");return h(),g("div",mcn,[(h(!0),g(pe,null,Me(r.webinarsList,l=>(h(),g("div",{class:"pt-5",key:l[0]},[n.divideIntoYears?(h(),g("span",pcn,[b(s,{icon:"calendar",width:"16",height:"16",class:"me-icon"}),z(" "+m(e.$t("webinar.index.recordings_from_year",{year:l[0]})),1)])):D("",!0),(h(!0),g(pe,null,Me([...r.chunks(n.divideIntoYears?l[1]:l,3)],(d,u)=>(h(),g("div",{key:u,class:"grid-row"},[(h(!0),g(pe,null,Me(d,f=>(h(),g("div",{key:f.id,class:"pe-3 ps-3 border-bottom-2-mobile grid-card"},[b(a,{webinar:f,onNavigate:t[0]||(t[0]=p=>e.$emit("navigate"))},null,8,["webinar"])]))),128))]))),128))]))),128))])}const ace=U(fcn,[["render",gcn],["__scopeId","data-v-d280a0b5"]]),vcn={webinar_authors:[{description:"AktuálnÄ› se vÄ›nuji lektorovánĂ seminářů o inovacĂch ve vzdÄ›lávánĂ. VyuÄŤuji na PedagogickĂ© fakultÄ› UK a podĂlĂm se na projektech s cĂlem propojenĂ teorie a praxe v pĹ™ĂpravÄ› budoucĂch uÄŤitelĹŻ.",name:"Petra Vallin",link:"https://www.petravallin.cz/",image:"https://bucket.mlcdn.com/a/1321/1321562/images/122bccfb1a27a0f6f86743da3626855f2da4fdd4.png"},{description:"Jsem uÄŤitelka na základnà škole a taky lektorka HejnĂ©ho metody. Ráda uÄŤĂm v souvislostech, mám ráda konstruktivismus a integrovanou tematickou vĂ˝uku.",name:"Magda Málková",link:"https://www.ucitelnice.cz/author/194",image:"https://bucket.mlcdn.com/a/1321/1321562/images/9ce292c7a9dff3072f237b21831c44ec7d38d541.png"},{description:"DlouhodobÄ› pĹŻsobĂm na KatedĹ™e pedagogiky a psychologie PedagogickĂ© fakulty UHK. PĹ™ednášĂm v oborech na rozhranĂ pedagogiky, antropologie, etiky a historie vzdÄ›lávánĂ a takĂ© jsem zakladatelem Centra rozvoje charakteru.",name:"Jan Hábl",link:"https://www.cerc.cz/",image:"https://bucket.mlcdn.com/a/1321/1321562/images/af602466bdbe4b920fa429391389fc73338dc517.png"},{description:"Zaměřuji se zejmĂ©na na vnitĹ™nĂ, ale i vnÄ›jšà motivaci, uÄŤenĂ zážitkem a proĹľitkem, ÄŤasto vyuĹľĂvám projektovĂ© vyuÄŤovánĂ, kterĂ© si sama vymýšlĂm s jasnÄ› stanovenĂ˝mi cĂli vĂ˝uky. NejvĂce se realizuji v novĂ© informatice, hudebnĂ a vĂ˝tvarnĂ© vĂ˝chovÄ›.",name:"Marcela PĹ™ibylová",link:"https://www.ucitelnice.cz/author/6508",image:"https://bucket.mlcdn.com/a/1321/1321562/images/faa80965ec58c02c8075242c9a3aa1003956534b.png"},{description:" S radostĂ a láskou uÄŤĂm na základnà škole. VÄ›nuji se projektovĂ© a badatelskĂ© vĂ˝uce. VěřĂm, Ĺľe kaĹľdĂ© dĂtÄ› v sobÄ› nosĂ talent.",name:"Iva Hrubá Eliášová",link:"https://www.ucitelnice.cz/author/821",image:"https://bucket.mlcdn.com/a/1321/1321562/images/4190bfd422ac1ebdac5aecc55aa93b7d288c3ec8.png"},{description:"Jsem uÄŤitelkou ÄŤeskĂ©ho jazyka a hudebnĂ vĂ˝chovy. ZároveĹ lektoruji hudebnÄ› ÄŤtenářskĂ© dĂlny pro uÄŤitele i rodiÄŤe. Jako lektorka pĹŻsobĂm napĹ™Ăklad v ÄŚeskĂ© OrffovÄ› spoleÄŤnosti a ve SpoleÄŤnosti pro hudebnĂ vĂ˝chovu ÄŚR. PĹ™i vĂ˝uce pro mÄ› velmi dĹŻleĹľitĂ© spojenĂ zážitek - hra - tvoĹ™ivost. PĂši blog Jak na hudebku.",name:"Lenka Pobudová",link:"https://www.ucitelnice.cz/author/11226",image:"https://bucket.mlcdn.com/a/1321/1321562/images/98f65082dbdc8c623df199275e849cf6af792991.png"},{description:"Jsem uÄŤitelka na malĂ© základnà škole. S dÄ›tmi ráda objevuji novĂ© vÄ›ci, listuji knĂĹľkami, zaĹľĂvám mnohá dobrodruĹľstvĂ a trávĂm spoleÄŤnĂ˝ ÄŤas venku. BavĂ mÄ› promyšlená vĂ˝uka, která propojuje rĹŻznĂ© oblasti vzdÄ›lávánĂ.",name:"Tereza VĂtková",link:"https://www.ucitelnice.cz/author/25768",image:"https://bucket.mlcdn.com/a/1321/1321562/images/106757450f6d68df8f8a2818336b4b347d874ebc.png"},{description:"Jsem pĹ™edsedkynĂ SpoleÄŤnosti pro hudebnĂ vĂ˝chovu ÄŚR, lektorkou tĂ©to i ÄŚeskĂ© Orffovy spoleÄŤnosti a pĹŻsobĂm na katedĹ™e hudebnĂ vĂ˝chovy PedF UK. VyuÄŤuji takĂ© na Hudebnà škole a vedu dÄ›tskĂ˝ pÄ›veckĂ˝ sbor. MĂ˝m krĂ©dem je Ĺľivá hudebnĂ vĂ˝chova, rozmanitost metod, láska k dÄ›tem a k uÄŤenĂ obecnÄ›, a radost z hudebnÄ› i lidsky naplnÄ›nĂ˝ch setkánĂ ve škole i jinde.",name:"JiĹ™ina JiĹ™iÄŤková",link:"https://pedf.cuni.cz/PEDF-2160.html",image:"https://bucket.mlcdn.com/a/1321/1321562/images/59959a6cbcb510d6706898c96498c9c73aa63bea.png"},{description:"Jsem designĂ©rka online vzdÄ›lávánĂ. MojĂ domĂ©nou je e-learning ve vzdÄ›lávánĂ dospÄ›lĂ˝ch. Pomáhám lektorĹŻm a organizacĂm tvoĹ™it vzdÄ›lávácĂ Ĺ™ešenĂ, která nezapadnou.",name:"Klára Pirklová",link:"https://www.klarapirklova.cz/",image:"https://bucket.mlcdn.com/a/1321/1321562/images/459e85185eed27a0e4d4a9b44e1aa052ceab5210.png"},{description_html:'<span>VÄ›nuji se pĹ™edškolnĂmi vzdÄ›lávánĂ a vĂ˝chovÄ›. 5 let jsem uÄŤil v mateĹ™skĂ© škole, momentálnÄ› uÄŤĂm budoucĂ uÄŤitelky a uÄŤitele ve školce na ZápadoÄŤeskĂ© univerzitÄ› v Plzni. Lektoruji semináře a webináře a vÄ›nuji se publikaÄŤnĂ ÄŤinnosti. SvĂ© nápady, tipy a rĹŻznĂ© návody sdĂlĂm takĂ© na instagramovĂ©m profilu <span class="ml-rte-link-wrapper"><a href="https://www.instagram.com/ucitelem_ve_skolce/" target="_blank">@ucitelem_ve_skolce</a></span>. <br></span>',name:"OndĹ™ej KoĹľeluh",link:"https://pages.pedf.cuni.cz/uvrv/ondrej-kozeluh/",image:"https://bucket.mlcdn.com/a/1321/1321562/images/963911fb1cbdc7c64fbc151c5dfc4571e11a459a.png"},{description_html:'<span >Pomáhám uÄŤit (a hrát si) venku aktivnĂm uÄŤitelĹŻm, vychovatelĹŻm, rodiÄŤĹŻm i prarodiÄŤĹŻm. SpoleÄŤnÄ› pak „vytahujeme“ dÄ›ti ven. UÄŤĂm uÄŤitele, lektory, svĂ© domškoláky i studenty na 2. st. ZĹ . VytvářĂm lekce a metodiky pro <a href="http://www.ucimesevenku.cz/" target="_blank" data-saferedirecturl="https://www.google.com/url?q=http://www.ucimesevenku.cz/&source=gmail&ust=1684482237588000&usg=AOvVaw0-ouIGkyXvxrzrrBqJMGQv">UÄŤĂme se venku</a>. SpoleÄŤnÄ› se svĂ˝m muĹľem rozvĂjĂm i tĂ©ma svobodnĂ©ho hranĂ viz <a href="http://www.svobodnahra.cz/" target="_blank" data-saferedirecturl="https://www.google.com/url?q=http://www.svobodnahra.cz&source=gmail&ust=1684482237588000&usg=AOvVaw1OPu-R0WdpYetOdfmuvGSx">svobodnahra.cz</a>. Skrze fotky a videa, ráda ukazuji, jak z obyÄŤejnĂ˝ch vÄ›cĂ a mĂst mohou vzniknout neobyÄŤejnĂ© silnĂ© zážitky.</span>',name:"Justina Danišová",link:"https://ucimesevenku.cz/kontakt-a-tym/",image:"https://bucket.mlcdn.com/a/1321/1321562/images/1cfc604f3ab13fb79bc878d7523c44db5c04f9d7.png"},{description_html:'<span >Jsem venkovnĂ nadšenec, lektor a mentor <a href="http://www.ucimesevenku.cz/" target="_blank" data-saferedirecturl="https://www.google.com/url?q=http://www.ucimesevenku.cz/&source=gmail&ust=1684482237588000&usg=AOvVaw0-ouIGkyXvxrzrrBqJMGQv">UÄŤĂme se venku.</a> PĹŻsobĂm jako programovĂ˝ Ĺ™editel ekocentra Chaloupky a zasazuji se o rozvoj a propagaci uÄŤenĂ venku v ÄŚR i SR. Pobytu dÄ›tĂ venku v pĹ™ĂrodÄ› se vÄ›nuji celĂ˝ Ĺľivot, aĹĄ uĹľ dobrovolnÄ› jako vedoucĂ oddĂlu, táborĹŻ a nebo profesionálnÄ› kdyĹľ vedu studenty VĹ , lektory ÄŤi uÄŤitele. V seminářĂch a webinářĂch se snaĹľĂm inspirovat uÄŤitele, jak uÄŤit venku (nejen) fyziku, matiku, biologii, zemÄ›pis</span>',name:"Martin KĹ™ĂĹľ",link:"https://ucimesevenku.cz/kontakt-a-tym/",image:"https://bucket.mlcdn.com/a/1321/1321562/images/4231a4ee9d2c263b16de61a426ffa7fb1d6c3d54.png"},{description:'Jsem uÄŤitel a vĂ˝chovnĂ˝ poradce na stĹ™ednà škole (POJ FM). Rád svou vĂ˝uku zaměřuji tak, abych tĂm i odpovĂdal na ÄŤastou otázku "K ÄŤemu mi to bude?". VÄ›nuji se uÄŤenĂ z pohledu kognitivnĂch vÄ›d, badatelstvĂ a wellbeingu.',name:"Roman Göttlicher",link:"https://pojfm.cz/skola/o-skole/aktuality/589-roman-g-ttlicher-vitez-global-teacher-prize",image:"https://bucket.mlcdn.com/a/1321/1321562/images/fcee6d9f383aa99f6dc25457563f44365e6c5162.png"},{description:"UÄŤila jsem 19 let na 2. stupni ÄŤeštinu a dÄ›jepis na malĂ© venkovskĂ© škole. NynĂ beru jako velkou vĂ˝zvu uÄŤitelstvĂ na 1. stupni, kde mám tĹ™Ădu úžasnĂ˝ch páťákĹŻ. Na 2. stupni pokraÄŤuji, navĂc jsem si pĹ™idala pár hodin na stĹ™ednà škole a webináře pro dospÄ›lĂ©. Moje heslo: Nebát se zmÄ›n a novĂ˝ch vÄ›cĂ!",name:"Eva Ĺ idelková",link:"https://www.ucitelnice.cz/author/8978",image:"https://bucket.mlcdn.com/a/1321/1321562/images/af2da087707142075ccae9b5059bb1e609f03632.png"},{description:"Jsem lektorkou proĹľitkovĂ©ho tvoĹ™enĂ a arteterapeutkou. JiĹľ patnáct let ukazuji rodiÄŤĹŻm i pedagogĹŻm nejen z mateĹ™skĂ˝ch škol cestu, jak si uĹľĂvat tvoĹ™enĂ s dÄ›tmi s radostĂ, lehkostĂ a dĹŻrazem na proces. Pořádám tvoĹ™ivĂ© online kurzy a vĂ˝zvy, vyuÄŤuji na PedagogickĂ© fakultÄ› Masarykovy univerzity a v lesnà škole Liška v BrnÄ›. Ve svĂ© pátĂ© knize TvoĹ™Ăme s proĹľitkem pĹ™edstavuji svĂ© nejoblĂbenÄ›jšà techniky a materiály, kterĂ© se mi v prĹŻbÄ›hu let osvÄ›dÄŤily takĂ© pĹ™i tvoĹ™enĂ doma s mĂ˝mi tĹ™emi dÄ›tmi.",name:"Radka Rubešová",link:"https://ucimesevenku.cz/kontakt-a-tym/",image:"https://bucket.mlcdn.com/a/1321/1321562/images/6c8f9c55d412f53634e8a297f39ec6b582258655.png"},{description:"Jsem obyÄŤejná uÄŤitelka na základnà škole. MojĂ specializacĂ je vĂ˝tvarná vĂ˝chova, za svĹŻj druhĂ˝ obor povaĹľuji ÄŤeskĂ˝ jazyk a literaturu. V souÄŤasnĂ© dobÄ› vyuÄŤuji na 2. stupni základnà školy s poÄŤetnĂ˝mi tĹ™Ădami, avšak mám zkušenosti jak z malotĹ™Ădky, tak ze stĹ™ednà školy a odbornĂ©ho uÄŤilištÄ›, kde jsem pracovala se žáky s hendikepem.",name:"Sylva Horáková",link:"https://www.ucitelnice.cz/kabinet",image:"https://bucket.mlcdn.com/a/1321/1321562/images/3d550a545cd7aa7136a27c6352352bbb6684ec34.png"},{description_html:'<span>Jsem Ĺ™editelka mateĹ™skĂ© školy v Olomouci, která pracuje v programu <span class="ml-rte-link-wrapper" style="text-align:left"><a href="https://www.zacitspolu.eu/" target="_blank">ZaÄŤĂt spolu</a></span>, zároveĹ jsem lektorkou a metodiÄŤkou tohoto programu. Ve svĂ© práci vidĂm šťastnĂ©, samostatnĂ©, kreativnĂ dÄ›ti i dospÄ›lĂ©, a to mi dává smysl. VzájemnĂ© uÄŤenĂ a respekt nabĂzĂ cestu – k sobÄ› i druhĂ˝m lidem. VěřĂm, Ĺľe obojĂ se mĹŻĹľe rozvĂjet pouze v prostĹ™edĂ, kde se cĂtĂ dobĹ™e a bezpeÄŤnÄ› všichni – dÄ›ti, jejich rodiÄŤe i uÄŤitelĂ©. O to usiluji i jako facilitátorka skupinovĂ© reflexe Wanda, která pomáhá uÄŤitelĹŻm sdĂlet a Ĺ™ešit obtĂĹľnĂ© situace a budovat vzájemnou kolegiálnĂ podporu.<br></span>',name:"Hana Kretková",link:"https://skolkaolomouc.cz/zizkovo-namesti/kontakt",image:"https://bucket.mlcdn.com/a/1321/1321562/images/efd33be9b0f466bc5923cbf1b43d4f827e562023.png"},{description_html:'<span>Jsem lektorkou vzdÄ›lávacĂho programu <span class="ml-rte-link-wrapper" style="text-align:left"><a href="https://www.zacitspolu.eu/" target="_blank">ZaÄŤĂt spolu</a></span>. Těšà mÄ›, Ĺľe mohu programem provázet jak uÄŤitelky a uÄŤitele mateĹ™skĂ˝ch a základnĂch škol, tak studenty na praĹľskĂ© pedagogickĂ© fakultÄ›, kde takĂ© uÄŤĂm. Pro uÄŤitele 1. st. jsem spolu s dalšà autorkou pĹ™ipravila metodickĂ©ho prĹŻvodce s názvem: VzdÄ›lávacĂ program ZaÄŤĂt spolu: metodickĂ˝ prĹŻvodce pro prvnĂ stupeĹ základnà školy. Jsem takĂ© spoluautorkou publikace Individualizace v mateĹ™skĂ© škole, coĹľ je tĂ©ma, kterĂ© se jako klĂÄŤovĂ©mu vÄ›nuji dlouhodobÄ›. ProstĹ™ednictvĂm lektorskĂ© ÄŤinnosti a skupinovĂ© reflexe WANDA poskytuji pedagogĹŻm podporu v rozvoji jejich profesnĂch kompetencĂ.<br></span>',name:"Jana Poche Kargerová",link:"http://oldkppg.pedf.cuni.cz/web/lide/jana-kargerov-poche-14",image:"https://bucket.mlcdn.com/a/1321/1321562/images/f2c687951316a2289b2d58cb68107f8b0dd7c7ba.png"},{description:"Jsem uÄŤitelka ZaÄŤĂt spolu z praĹľskĂ˝ch NuslĂ. SnaĹľĂm se uÄŤit responzivnÄ›. VěřĂm, Ĺľe chyba je sĹŻl nad zlato. PodĂlela jsem se na vzniku nÄ›kolika pedagogickĂ˝ch pĹ™ĂruÄŤek, zaměřenĂ˝ch na genderovÄ› citlivĂ© vzdÄ›lávánĂ. Jsem autorkou knihy Centra aktivit: Cesta ke smysluplnĂ©mu uÄŤenĂ.",name:"Anna Babanová",link:"https://skolamujprojekt.cz/portfolio/anna-babanova/",image:"https://bucket.mlcdn.com/a/1321/1321562/images/254958d149057f1bc28ca2c76e089f0059456510.png"},{description_html:'<span>Jsem uÄŤitelka na 1. stupni, kde pracuji v programu<a href="https://www.zacitspolu.eu/o-programu/o-programu-zacit-spolu/" target="_blank"> ZaÄŤĂt spolu</a>. BavĂ mÄ› uÄŤenĂ v souvislostech, vyuĹľĂvánĂ zkušenostà žákĹŻ, jejich vzájemnĂ© uÄŤenĂ, moĹľnost volby, kreativita a legrace. ZároveĹ jsem lektorkou a metodiÄŤkou programu v metodickĂ©m centru ZaÄŤĂt spolu na základnà škole ANGEL v Praze.</span>',name:"Jana Ĺ enkyĹ™Ăková",link:"https://www.youtube.com/watch?v=So35QwTrMOs",image:"https://bucket.mlcdn.com/a/1321/1321562/images/6e73de438d9b173cc75f23d26f4de144e1a91677.png"},{description:"PĹŻsobĂm jako zástupkynÄ› Ĺ™editelky SpeciálnÄ› pedagogickĂ©ho centra pĹ™i NárodnĂm Ăşstavu pro autismus, kde pracuji s žáky a studenty s PAS a jejich rodinami. Zaměřuji se na poradenskou ÄŤinnost, nácviky sociálnĂch a komunikaÄŤnĂch dovednostĂ u dÄ›tĂ, práci se spolužáky dÄ›tĂ s PAS a práci s nadanĂ˝mi dÄ›tmi.",name:"Lenka Bittmannová",link:"https://www.nautis.cz/portfolio/specialne-pedagogicke-centrum",image:"https://bucket.mlcdn.com/a/1321/1321562/images/b74d712e4c17f9f624bbb59c0f0584f095535b93.png"}]};const _cn={data(){return{authors:vcn.webinar_authors}},methods:{chunks(e,t){return sce(e,t)}}},ycn={class:"d-flex flex-column align-items-start"},bcn=["href"],kcn=["src","alt"],wcn={class:"mt-3 mb-3"},$cn=["innerHTML"],Ccn={key:1};function Scn(e,t,n,o,i,r){return h(),g("div",null,[(h(!0),g(pe,null,Me([...r.chunks(i.authors,3)],(s,a)=>(h(),g("div",{key:a,class:"row"},[(h(!0),g(pe,null,Me(s,l=>(h(),g("div",{key:l.id,class:"col-12 col-lg-4 col-md-4 mt-3 mb-3"},[c("div",ycn,[c("a",{href:l.link,target:"_blank",class:"img-wrapper"},[c("img",{src:l.image,alt:l.name,class:"lecturer-img mb-3"},null,8,kcn)],8,bcn),c("h4",wcn,m(l.name),1),l.description_html?(h(),g("p",{key:0,innerHTML:l.description_html},null,8,$cn)):(h(),g("p",Ccn,m(l.description),1))])]))),128))]))),128))])}const Tcn=U(_cn,[["render",Scn],["__scopeId","data-v-1cd00c61"]]);const Ecn={components:{WebinarLecturers:Tcn,GrayBackgroundComponent:$g,WebinarCardsSimpleWrapper:ace,WebinarIndexPageEffects:ncn,PlannedWebinarsList:Xln,WebinarCardBig:Rln,Loading:Rt},computed:{...Oe({loading:"webinar/getLoading",nextWebinar:"webinar/getNextWebinar",plannedWebinars:"webinar/getPlannedWebinars",pastWebinars:"webinar/getPastWebinars",lastScrollPosition:"webinar/getScrollPosition"})},data(){return{primaryColor:window.primaryColor,lecturersHeader:null}},methods:{saveScrollPosition(){this.$store.dispatch("webinar/saveScrollToPosition",{position:window.scrollY})}},mounted(){this.lecturersHeader=this.$refs["lecturers-header"],this.$store.dispatch("webinar/index").then(()=>{this.lastScrollPosition>0&&window.scrollTo({top:this.lastScrollPosition,left:0,behavior:"instant"})})}},Icn={class:"col-12",ref:"webinar-index"},Pcn={class:"row justify-content-center"},Acn={class:"mt-5 col-12 col-lg-9"},Dcn={class:"vl-parent"},xcn={key:0,class:"min-h-loading"},Ocn={class:"mt-2 mb-5 text-center"},Lcn={class:"mb-0 mb-2"},Mcn=["innerHTML"],Ncn={class:"text-gray-900 text-center fw-medium pt-5"},Rcn={class:"row justify-content-center",ref:"lecturers-header"},jcn={class:"col-12 col-lg-9",id:"lektori"},Fcn={class:"text-gray-900 text-center fw-medium pt-5 pb-3"};function zcn(e,t,n,o,i,r){const s=y("WebinarIndexPageEffects"),a=y("Loading"),l=y("WebinarCardBig"),d=y("PlannedWebinarsList"),u=y("WebinarCardsSimpleWrapper"),f=y("GrayBackgroundComponent"),p=y("WebinarLecturers");return h(),g("div",Icn,[c("div",Pcn,[c("div",Acn,[b(s),c("div",Dcn,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=v=>e.loading=v),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.loading?(h(),g("div",xcn)):D("",!0)]),e.nextWebinar?(h(),g(pe,{key:0},[c("div",Ocn,[c("h3",Lcn,m(e.$t("webinar.index.upcoming")),1),c("p",{class:"mb-0",innerHTML:e.$t("webinar.index.upcoming_common_text")},null,8,Mcn)]),b(l,{webinar:e.nextWebinar,"has-active-link":!1},null,8,["webinar"])],64)):D("",!0),e.plannedWebinars&&e.plannedWebinars.length>0?(h(),W(d,{key:1,webinars:e.plannedWebinars,class:"mb-6",onNavigate:r.saveScrollPosition},null,8,["webinars","onNavigate"])):D("",!0)]),e.pastWebinars&&e.pastWebinars.length>0?(h(),g("div",{key:0,class:J(["col-12 col-lg-9 mb-5",{"mt-5":!(e.plannedWebinars&&e.plannedWebinars.length>0)}]),id:"zaznamy"},[c("h2",Ncn,m(e.$t("webinar.index.watch_from_recordings")),1),b(u,{webinars:e.pastWebinars,class:"bg-white",onNavigate:r.saveScrollPosition,"divide-into-years":""},null,8,["webinars","onNavigate"])],2)):D("",!0)]),c("div",Rcn,[c("div",jcn,[i.lecturersHeader?(h(),W(f,{key:0,header:i.lecturersHeader,offset:200},null,8,["header"])):D("",!0),c("h2",Fcn,m(e.$t("webinar.index.lecturers")),1),b(p)])],512)],512)}const Ucn=U(Ecn,[["render",zcn],["__scopeId","data-v-87b0562b"]]),Bcn={components:{SectionProductList:p6},props:{products:Array},data(){return{loadingCart:!1}},methods:{ziggyRoute:Pe,addToCart(){ai.viewItem(this.product),this.loadingCart=!0,this.$store.dispatch("cart/add",{productId:this.product.id,asSchool:!1}).then(()=>{this.loadingCart=!1})}},computed:{...Oe({auth:"auth/auth",itemInCart:"cart/isItemInCart",boughtAllProductsIds:"auth/getDownloads"}),product(){return this.products[0]},isInCart(){return this.itemInCart(this.product.id)},isBought(){return this.boughtAllProductsIds.includes(this.product.id)}}},Hcn={key:0,class:"text-center"},Vcn={key:1,class:"pb-4"},qcn={class:"rounded-3 shadow w-100 p-4"},Ycn=["href"],Wcn={class:"row align-items-center"},Gcn={class:"col-auto"},Zcn=["src","alt"],Kcn={class:"col text-start text-gray-800"},Jcn={class:"col-12 mt-3 mt-md-0 col-md-auto"},Xcn={key:0,class:"btn btn-sm btn-tertiary",disabled:""},Qcn={key:1,class:"btn btn-sm btn-tertiary",disabled:""};function edn(e,t,n,o,i,r){const s=y("SectionProductList"),a=y("app-icon");return n.products?(h(),g("div",Hcn,[n.products.length>1?(h(),W(s,{key:0,class:"justify-content-lg-center",products:n.products,"horizontal-scroll-mobile":!0,"max-products-mobile":3,"max-products":3,"href-target":"_blank"},null,8,["products"])):(h(),g("div",Vcn,[c("div",qcn,[c("a",{href:r.ziggyRoute("product.show",r.product.id),target:"_blank"},[c("div",Wcn,[c("div",Gcn,[c("img",{src:r.product.cover_img_thumbnail,class:"rounded-2px",alt:r.product.title,width:"40",height:"40"},null,8,Zcn)]),c("div",Kcn,m(r.product.title),1),c("div",Jcn,[r.isBought?(h(),g("button",Xcn,m(e.$t("download.bought")),1)):(h(),g(pe,{key:1},[r.isInCart?(h(),g("button",Qcn,m(e.$t("cart.already_button")),1)):(h(),g("button",{key:0,class:"btn btn-sm btn-tertiary",onClick:t[0]||(t[0]=Gt(l=>r.addToCart(r.product.id),["stop","prevent"]))},[z(m(e.$t("cart.add_to_cart_short"))+" ",1),b(a,{icon:"basket",class:"ms-icon",height:20,width:20})]))],64))])])],8,Ycn)])]))])):D("",!0)}const lce=U(Bcn,[["render",edn]]),tdn={components:{BlogItem:Jy,BlogBlockProducts:lce},props:{block:{type:Object,default:null}}},ndn={class:"mt-4"},odn={key:0},idn={class:"text-gray-900 fw-normal mb-3"},rdn={key:3,class:"mt-5 text-end"},sdn=["href"];function adn(e,t,n,o,i,r){const s=y("BlogBlockProducts"),a=y("BlogItem");return h(),g("div",ndn,[n.block.title?(h(),g("div",odn,[c("h4",idn,m(n.block.title),1)])):D("",!0),n.block.type==="products"?(h(),g(pe,{key:1},[n.block.products&&n.block.products.length?(h(),W(s,{key:0,products:n.block.products},null,8,["products"])):D("",!0)],64)):D("",!0),n.block.type==="blog_posts"?(h(!0),g(pe,{key:2},Me(n.block.blogs,l=>(h(),W(a,{key:l.id,blog:l,class:"p-4 shadow ms-0 me-0 mb-4"},null,8,["blog"]))),128)):D("",!0),n.block.button_text&&n.block.button_url?(h(),g("div",rdn,[c("a",{href:n.block.button_url,class:"btn btn-sm btn-secondary",target:"_blank"},m(n.block.button_text),9,sdn)])):D("",!0)])}const ldn=U(tdn,[["render",adn]]);const cdn={components:{WebinarCardsSimpleWrapper:ace,GrayBackgroundComponent:$g,WebinarBlock:ldn,WebinarDateAuthor:hM,WebinarCategoryPill:j6,Loading:Rt,AppIcon:Ue},props:{slug:String},computed:{...Oe({webinar:"webinar/getWebinarDetail",loading:"webinar/getDetailLoading"}),authorLink(){return this.webinar&&this.webinar.author?sh.getAuthorPublicUrl(this.webinar.author):null}},data(){return{primaryColor:window.primaryColor,recommendWebinarsHeader:null}},methods:{youtubeVideoId(e){return ks.youtubeVideoRegexId(e)}},mounted(){this.$store.dispatch("webinar/detail",{slug:this.slug}),this.recommendWebinarsHeader=this.$refs.recommendedWebinarsHeader,window.scrollTo(0,0)},beforeUnmount(){this.$store.commit("webinar/setWebinarDetail",{})}},ddn={class:"mt-6"},udn={class:"mb-3"},hdn={class:"btn btn-sm btn-secondary me-3"},fdn={class:"row justify-content-center"},mdn={key:0,class:"embed-video-wrapper mb-6"},pdn=["src"],gdn={key:1,class:"mb-3"},vdn=["href"],_dn={class:"row"},ydn={class:"col-12 col-lg-8 border-end-2 mb-4"},bdn={class:"pe-3"},kdn={class:"mb-2 text-gray-900"},wdn={class:"mb-0 fw-bold"},$dn=["innerHTML"],Cdn={class:"col-12 col-lg-4"},Sdn={class:"ps-3 text-center"},Tdn=["href"],Edn=["src","alt"],Idn=["src","alt"],Pdn={class:"mb-3"},Adn=["href"],Ddn={key:1},xdn={class:"row justify-content-center",ref:"recommendedWebinarsHeader"},Odn={key:0,class:"col-12 col-lg-9"},Ldn={class:"pt-6 pb-6"},Mdn={class:"text-center"},Ndn={class:"mb-6"};function Rdn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link"),l=y("Loading"),d=y("WebinarCategoryPill"),u=y("WebinarDateAuthor"),f=y("WebinarBlock"),p=y("GrayBackgroundComponent"),v=y("WebinarCardsSimpleWrapper");return h(),g("div",ddn,[c("div",udn,[b(a,{to:{name:"webinars/index"}},{default:F(()=>[c("button",hdn,[b(s,{icon:"arrow-left",class:"me-2",height:"20",width:"20"}),z(" "+m(e.$t("webinar.back_to_webinars")),1)])]),_:1})]),c("div",fdn,[c("div",{class:J(["mt-3 col-12 col-lg-8 vl-parent mb-6",{"min-h-loading":e.loading}])},[b(l,{active:e.loading,"onUpdate:active":t[0]||(t[0]=_=>e.loading=_),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.webinar&&e.webinar.author?(h(),g(pe,{key:0},[e.webinar.recording_url&&r.youtubeVideoId(e.webinar.recording_url)?(h(),g("div",mdn,[c("iframe",{src:"https://www.youtube-nocookie.com/embed/"+r.youtubeVideoId(e.webinar.recording_url),width:"100%",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,pdn)])):e.webinar.recording_url?(h(),g("div",gdn,[c("a",{href:e.webinar.recording_url,target:"_blank"},m(e.$t("webinar.recording_link")),9,vdn)])):D("",!0),c("div",_dn,[c("div",ydn,[c("div",bdn,[c("div",kdn,[c("h3",wdn,m(e.webinar.title),1)]),(h(!0),g(pe,null,Me(e.webinar.classes,(_,k)=>(h(),g("span",{key:k},[b(d,{category:_,class:"me-2"},null,8,["category"])]))),128)),c("p",{class:"mt-5 mb-0 text-gray-700",innerHTML:e.webinar.description},null,8,$dn)])]),c("div",Cdn,[c("div",Sdn,[e.webinar.author?(h(),g("a",{key:0,href:r.authorLink},[c("img",{src:e.webinar.author.image_thumbnail,alt:e.webinar.author.name,class:"img-fluid mb-3 img-webinar rounded-circle"},null,8,Edn)],8,Tdn)):(h(),g("img",{key:1,src:e.webinar.author.image_thumbnail,alt:e.webinar.author.name,class:"img-fluid mb-3 img-webinar rounded-circle"},null,8,Idn)),c("div",Pdn,[e.webinar.author?(h(),g("a",{key:0,href:r.authorLink,class:"text-gray-900"},m(e.webinar.author.name),9,Adn)):(h(),g("span",Ddn,m(e.webinar.author.name),1))]),b(u,{webinar:e.webinar,"show-duration-instead-of-end-date":"","hide-author":"",class:"justify-content-center"},null,8,["webinar"])])])]),(h(!0),g(pe,null,Me(e.webinar.blocks,(_,k)=>(h(),g("div",{key:k,class:"col-12"},[b(f,{block:_},null,8,["block"])]))),128))],64)):D("",!0)],2)]),c("div",xdn,[e.webinar.recommended_webinars&&e.webinar.recommended_webinars.length>0?(h(),g("div",Odn,[i.recommendWebinarsHeader?(h(),W(p,{key:0,header:i.recommendWebinarsHeader,offset:48},null,8,["header"])):D("",!0),c("div",Ldn,[c("div",Mdn,[c("h3",Ndn,m(e.$t("webinar.recommended_webinars")),1)]),b(v,{webinars:e.webinar.recommended_webinars},null,8,["webinars"])])])):D("",!0)],512)])}const jdn=U(cdn,[["render",Rdn],["__scopeId","data-v-da80bf42"]]),Fdn={data(){return{transitionName:null,transitionMode:null}},watch:{$route(e,t){const n=e.path.split("/"),o=t.path.split("/");if(n[2]!==o[2]){this.transitionName=null,this.transitionMode=null;return}const i=n.length,r=o.length;i<r?(this.transitionName="view-slide-right",this.transitionMode=""):(this.transitionName="view-slide-left",this.transitionMode="in-out")}}};function zdn(e,t,n,o,i,r){const s=y("router-view");return h(),W(s,null,{default:F(({Component:a})=>[b(nd,{name:i.transitionName,mode:i.transitionMode},{default:F(()=>[(h(),W(Dl(a)))]),_:2},1032,["name","mode"])]),_:1})}const WT=U(Fdn,[["render",zdn]]),Udn={},Bdn={class:"row mb-6"},Hdn={class:"col-12 col-md-4"},Vdn={class:"mb-0"};function qdn(e,t){return h(),g("div",Bdn,[c("div",Hdn,[c("h2",Vdn,m(e.$t("administration.product.title")),1)])])}const Ydn=U(Udn,[["render",qdn]]),Wdn={components:{ProductListHeader:Ydn,Tablist:qr},data(){return{tab:{titles:Object.values(this.$tm("administration.product.tab")),routes:ja.list.routes}}},computed:{...Oe({productOpenCount:"administrationProduct/getOpenCount",productComplaintOpenCount:"administrationProductComplaint/getOpenCount",productUpdateOpenCount:"administrationProductUpdate/getOpenCount"}),notifications(){return[{number:this.productOpenCount,color:"gray"},{number:this.productComplaintOpenCount,color:"gray"},{number:this.productUpdateOpenCount,color:"gray"}]}},mounted(){this.$store.dispatch("administrationProduct/openCount"),this.$store.dispatch("administrationProductComplaint/openCount"),this.$store.dispatch("administrationProductUpdate/openCount")}};function Gdn(e,t,n,o,i,r){const s=y("ProductListHeader"),a=y("Tablist"),l=y("router-view");return h(),g("div",null,[b(s),b(a,{titles:i.tab.titles,routes:i.tab.routes,notifications:r.notifications,"padding-x":0,class:"mb-3"},null,8,["titles","routes","notifications"]),b(l)])}const Zdn=U(Wdn,[["render",Gdn]]),Kdn={props:{checkBoxesChecked:{type:Number,default:0}},components:{AppIcon:Ue,ButtonDropdown:Eg}},Jdn={class:"btn btn-sm btn-primary rounded medium-imp d-flex align-items-center"},Xdn={key:0,class:"filter-number w-1rem ms-2 rounded text-center d-inline-block bg-white text-primary small"},Qdn={class:"px-3 py-2 small"};function eun(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ButtonDropdown");return h(),W(a,{"drop-side":"down","menu-align":"end","auto-close":"outside"},{button:F(()=>[c("button",Jdn,[b(s,{icon:"filter",class:"me-1"}),z(" "+m(e.$t("administration.product.search.filter"))+" ",1),n.checkBoxesChecked>0?(h(),g("span",Xdn,m(n.checkBoxesChecked),1)):D("",!0)])]),dropdown:F(()=>[c("div",Qdn,[Pt(e.$slots,"default")])]),_:3})}const tun=U(Kdn,[["render",eun]]),nun={components:{CircleButtonWithIconOnly:Ag}},oun={key:0,class:"d-flex align-items-center bg-primary-10 rounded text-primary py-0dot5 px-2 mb-0 mt-2"};function iun(e,t,n,o,i,r){const s=y("CircleButtonWithIconOnly");return e.$slots.default?(h(),g("div",oun,[Pt(e.$slots,"default"),c("span",{onClick:t[0]||(t[0]=a=>e.$emit("close"))},[b(s,{icon:"close","icon-width":12,"icon-height":12,class:"btn btn-sm btn-secondary ms-2"})])])):D("",!0)}const cce=U(nun,[["render",iun]]),run={components:{FilterTag:cce,AppIcon:Ue,TableFilter:tun,CheckboxInput:ba},props:{placeholder:String,search:{type:String,default:""},controlMode:{type:Boolean,default:void 0},isFilterUsed:{type:Boolean,default:!1},checkBoxesChecked:{type:Number,default:0},plainSearch:{type:Boolean,default:!1}},methods:{cancelFilter(){this.$emit("reset-filter")},resetSearch(){this.searchModel=null},load(){this.$emit("load")}},computed:{searchModel:{get(){return this.search},set(e){this.$emit("update:search",e)}},controlModeModel:{get(){return this.controlMode},set(e){this.$emit("update:controlMode",e)}}}},sun={key:1,class:"input-group"},aun=["placeholder"],lun={key:0,class:"col-12 col-lg-3"},cun={class:"col-auto ms-auto d-flex flex-wrap align-items-center"},dun={class:"d-flex align-items-center flex-wrap"},uun={key:1,class:"col-12 d-flex flex-wrap"},hun={class:"fw-bold"};function fun(e,t,n,o,i,r){const s=y("AppIcon"),a=y("CheckboxInput"),l=y("TableFilter"),d=y("FilterTag");return h(),g("div",{class:J(["row justify-content-between align-items-center rounded medium ms-0 me-0",{"bg-primary-5 px-3 py-2dot5":!n.plainSearch}])},[c("div",{class:J(["col-12",{"p-0":n.plainSearch,"col-lg-5":!0}])},[e.$slots.customInput?Pt(e.$slots,"customInput",{key:0}):(h(),g("div",sun,[xe(c("input",{type:"search",class:"border-end-0 form-control",id:"search",name:"search","onUpdate:modelValue":t[0]||(t[0]=u=>r.searchModel=u),placeholder:n.placeholder},null,8,aun),[[wt,r.searchModel]]),c("span",{class:"input-group-text cursor-pointer",onClick:t[1]||(t[1]=(...u)=>r.load&&r.load(...u))},[b(s,{icon:"search",height:"24",width:"24",class:"bg-white text-primary"})])]))],2),e.$slots.date?(h(),g("div",lun,[c("div",null,[Pt(e.$slots,"date")])])):D("",!0),c("div",cun,[n.isFilterUsed&&!n.plainSearch?(h(),g("button",{key:0,class:"btn btn-tertiary btn-sm me-3",onClick:t[2]||(t[2]=(...u)=>r.cancelFilter&&r.cancelFilter(...u))},[c("span",dun,[z(m(e.$t("administration.cancel_filter"))+" ",1),b(s,{class:"ms-2",icon:"close",width:"20",height:"20"})])])):D("",!0),n.controlMode!==void 0?(h(),W(a,{key:1,id:"controlMode",value:r.controlModeModel,"onUpdate:value":t[3]||(t[3]=u=>r.controlModeModel=u),label:e.$t("administration.product.search.control_mode"),class:"text-primary me-4"},null,8,["value","label"])):D("",!0),e.$slots.filter?(h(),W(l,{key:2,"check-boxes-checked":n.checkBoxesChecked},{default:F(()=>[Pt(e.$slots,"filter")]),_:3},8,["check-boxes-checked"])):D("",!0)]),n.plainSearch?D("",!0):(h(),g("div",uun,[n.search?(h(),W(d,{key:0,onClose:r.resetSearch,class:"mt-2 me-2 me-none-last"},{default:F(()=>[z(m(e.$t("administration.text")+": ")+" ",1),c("span",hun,m(n.search),1)]),_:1},8,["onClose"])):D("",!0),Pt(e.$slots,"tags")]))],2)}const mun=U(run,[["render",fun]]),pun={components:{CheckList:aM},props:{title:String,options:{type:Array,default:()=>[]},labels:{type:Array,default:()=>[]},checked:{type:Array,default:()=>[]}},computed:{checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}}}},gun={class:"text-gray-600 mb-1"};function vun(e,t,n,o,i,r){const s=y("CheckList");return h(),g("div",null,[c("p",gun,m(n.title),1),b(s,{class:"mb-3",labels:n.labels,options:n.options,checked:r.checkedModel,"onUpdate:checked":t[0]||(t[0]=a=>r.checkedModel=a),onUpdated:t[1]||(t[1]=a=>e.$emit("updated"))},null,8,["labels","options","checked"])])}const _un=U(pun,[["render",vun]]),yun={components:{AppIcon:Ue},props:{value:{type:Object,default(){return{start:null,end:null}}},maxDate:{type:[Object,Date],default(){return new Date}},minDate:{type:[Object,Date],default(){return null}},placeholder:String,name:String},data(){return{timezone:mr.timezone,dragValue:null,locale:mr.date_locale}},computed:{valueModel:{get(){return this.value},set(e){this.$emit("update:value",e)}},selectDragAttribute(){return{popover:{visibility:"hover",isInteractive:!1}}}},methods:{reset(){this.valueModel=null}}},bun={class:"text-sm"},kun={class:"input-group cursor-pointer"},wun=["value","placeholder","name"],$un={class:"input-group-text right-border-radius-fix"};function Cun(e,t,n,o,i,r){const s=y("AppIcon"),a=y("date-picker");return h(),g("div",null,[b(a,{mode:"date",modelValue:r.valueModel,"onUpdate:modelValue":t[1]||(t[1]=l=>r.valueModel=l),modelModifiers:{range:!0},"max-date":n.maxDate,"min-date":n.minDate,timezone:i.timezone,ref:"calendar","select-attribute":r.selectDragAttribute,"drag-attribute":r.selectDragAttribute,locale:i.locale,onDrag:t[2]||(t[2]=l=>i.dragValue=l)},{"day-popover":F(({format:l})=>[c("div",bun,m(l(i.dragValue?i.dragValue.start:r.valueModel.start,"MMM D")+"-"+l(i.dragValue?i.dragValue.end:r.valueModel.end,"MMM D")),1)]),default:F(({inputValue:l,inputEvents:d})=>[c("div",kun,[c("input",Ur({class:"form-control border-end-0",value:l.start&&l.end?l.start+" - "+l.end:""},Yu(d.start||d.end,!0),{placeholder:n.placeholder,autocomplete:"off",name:n.name}),null,16,wun),r.valueModel?(h(),g("span",{key:0,class:"input-group-text",onClick:t[0]||(t[0]=(...u)=>r.reset&&r.reset(...u))},[b(s,{icon:"close",height:"20",width:"20"})])):D("",!0),c("span",$un,[b(s,{icon:"calendar",height:"24",width:"24",class:"bg-white text-primary"})])])]),_:1},8,["modelValue","max-date","min-date","timezone","select-attribute","drag-attribute","locale"])])}const Sun=U(yun,[["render",Cun]]),Tun={components:{AppIcon:Ue,Datetime:RO},props:{value:{type:Object,default(){return null}},type:{type:String,default(){return"date"}},flow:{type:Array,default(){return["year"]}},format:{type:String,default(){return"y"}},maxDate:{type:[Object,Date],default(){return new Date}},minDate:{type:[Object,Date],default(){return null}},placeholder:String,name:String},data(){return{timezone:mr.timezone}},computed:{valueModel:{get(){return this.value},set(e){this.$emit("update:value",e)}}},methods:{reset(){this.valueModel=null,this.updated()},updated(){this.$emit("updated")}}},Eun={class:"input-group-text right-border-radius-fix"};function Iun(e,t,n,o,i,r){const s=y("AppIcon"),a=y("Datetime");return h(),g("div",null,[b(a,{modelValue:r.valueModel,"onUpdate:modelValue":t[1]||(t[1]=l=>r.valueModel=l),class:"input-group cursor-pointer",type:n.type,flow:n.flow,format:n.format,"input-class":{"form-control":!0,"border-end-0":!0},placeholder:n.placeholder,id:n.name,name:n.name,"min-datetime":n.minDate?n.minDate.toISOString():null,"max-datetime":n.maxDate?n.maxDate.toISOString():null,"value-zone":i.timezone,zone:i.timezone,onInput:r.updated},{after:F(()=>[r.valueModel?(h(),g("span",{key:0,class:"input-group-text",onClick:t[0]||(t[0]=(...l)=>r.reset&&r.reset(...l))},[b(s,{icon:"close",height:"20",width:"20"})])):D("",!0),c("span",Eun,[b(s,{icon:"calendar",height:"24",width:"24",class:"bg-white text-primary"})])]),_:1},8,["modelValue","type","flow","format","placeholder","id","name","min-datetime","max-datetime","value-zone","zone","onInput"])])}const Pun=U(Tun,[["render",Iun]]),Aun={components:{DatetimePickerWrapper:Pun,DatePickerWrapper:Sun,FilterTag:cce,FilterCheckList:_un,TableSearch:mun},props:{query:Object,filters:{type:Object,default:()=>({search:{placeholder:null,value:null},date:{placeholder:null,name:null,value:null},controlMode:{placeholder:null,value:!1},checkboxes:[{name:null,title:null,options:[],checked:[]}]})},page:Number,minDate:Object,plainSearch:{type:Boolean,return:!1},pauseUpdate:{type:Boolean,default:!1}},data(){return{timezone:mr.timezone,ready:!1}},methods:{resetFilter(){this.filtersModel.checkboxes&&this.filtersModel.checkboxes.forEach(e=>{e.checked=[]}),this.filtersModel.search.value=null,this.filtersModel.date&&(this.filtersModel.date.value=null),this.filtersModel.controlMode!=null&&(this.filtersModel.controlMode.value=!0),this.filtersModel.year&&(this.filtersModel.year.value=null),this.immediateUpdate(!0)},immediateUpdate(e=!0){this.ready&&(this.updateQuery(e),this.updateQuery.flush())},resetDate(){this.filtersModel.date.value=null,this.immediateUpdate(!0)},resetYear(){this.filtersModel.year.value=null,this.immediateUpdate(!0)},removeItem(e,t){e.includes(t)&&e.splice(e.indexOf(t),1),this.immediateUpdate(!0)},buildQuery(e){let t={};return this.filtersModel.search.value&&(t.search=this.filtersModel.search.value),this.filtersModel.checkboxes&&this.filtersModel.checkboxes.forEach(n=>{n.checked.length&&(t[n.name]=JSON.stringify(n.checked))}),this.filtersModel.date&&this.filtersModel.date.value&&(t.date=JSON.stringify({start:Ou(this.filtersModel.date.value.start).format(),end:Ou(this.filtersModel.date.value.end).format()})),this.filtersModel.controlMode&&this.filtersModel.controlMode.value!=null&&(t.controlMode=JSON.stringify(this.filtersModel.controlMode.value),t.state&&t.state.length&&(t.controlMode=!1)),this.filtersModel.year&&this.filtersModel.year.value&&(t.year=JSON.stringify(Ou(this.filtersModel.year.value).format("y"))),this.page&&(e?t.page=1:t.page=this.page),t},updateQuery(e){this.$router.push({name:this.$route.name,query:this.buildQuery(e)}).catch(()=>{})},updateFilterFromQuery(){this.page&&this.$emit("update:page",this.query.page),this.filtersModel.search.value=this.query.search,this.filtersModel.date&&(this.filtersModel.date.value=JSON.parse(this.query.date),this.filtersModel.date.value&&(this.filtersModel.date.value={start:new Date(this.filtersModel.date.value.start),end:new Date(this.filtersModel.date.value.end)})),this.filtersModel.controlMode&&(this.filtersModel.controlMode.value=this.query.controlMode),this.filtersModel.year&&(this.filtersModel.year.value=JSON.parse(this.query.year),this.filtersModel.year.value!==null&&(this.filtersModel.year.value=Ou(this.filtersModel.year.value,"y").format("y"))),this.filtersModel.checkboxes&&this.filtersModel.checkboxes.forEach(e=>{e.checked=this.query[e.name]?JSON.parse(this.query[e.name]):[]}),this.$emit("changeFilter")}},computed:{filtersModel:{get(){return this.filters},set(e){this.$emit("update:filters",e)}},dateFormatted(){return this.filtersModel.date&&this.filtersModel.date.value?Ou(this.filtersModel.date.value.start).format(mr.date_format)+" - "+Ou(this.filtersModel.date.value.end).format(mr.date_format):""},yearFormatted(){return this.filtersModel.year&&this.filtersModel.year.value!==null?Ou(this.filtersModel.year.value).format("y"):""},isFilterUsed(){return this.allCheckboxFiltersLengths>0||this.filtersModel.date&&this.filtersModel.date.value!==null||this.filtersModel.year&&this.filtersModel.year.value!==null||this.filtersModel.search.value!==null},allCheckboxFiltersLengths(){return this.filtersModel.checkboxes?this.filtersModel.checkboxes.reduce((e,t)=>e+t.checked.length,0):0},controlModeModel:{get(){return this.filtersModel.controlMode!=null?this.filtersModel.controlMode.value:void 0},set(e){e?this.filtersModel.checkboxes.forEach(t=>{t.name=="state"&&(t.checked=[])}):this.filtersModel.checkboxes.forEach(t=>{t.name=="state"&&!t.checked.length&&(t.checked=["1"])}),this.filtersModel.controlMode.value=e}}},mounted(){this.updateFilterFromQuery(),this.updateQuery=is.debounce(this.updateQuery,500),this.ready=!0},watch:{"filtersModel.search.value":{handler(){this.updateQuery(!0)}},"filtersModel.controlMode.value":{handler(){this.updateQuery(!0)}},"filtersModel.date.value":{handler(){this.updateQuery(!0)}},page(){this.immediateUpdate(!1)},query(e,t){this.pauseUpdate||window._.isEqual(e,t)||this.updateFilterFromQuery()}}},Dun={class:"fw-bold"},xun={class:"fw-bold"},Oun={class:"fw-bold"};function Lun(e,t,n,o,i,r){const s=y("DatePickerWrapper"),a=y("DatetimePickerWrapper"),l=y("FilterCheckList"),d=y("FilterTag"),u=y("TableSearch");return h(),W(u,{placeholder:r.filtersModel.search.placeholder,search:r.filtersModel.search.value,"onUpdate:search":t[3]||(t[3]=f=>r.filtersModel.search.value=f),"control-mode":r.controlModeModel,"onUpdate:controlMode":t[4]||(t[4]=f=>r.controlModeModel=f),"is-filter-used":r.isFilterUsed,"check-boxes-checked":r.allCheckboxFiltersLengths,onResetFilter:r.resetFilter,onLoad:r.updateFilterFromQuery,"plain-search":n.plainSearch},os({date:F(()=>[r.filtersModel.date?(h(),W(s,{key:0,value:r.filtersModel.date.value,"onUpdate:value":t[0]||(t[0]=f=>r.filtersModel.date.value=f),placeholder:r.filtersModel.date.placeholder,name:r.filtersModel.date.name},null,8,["value","placeholder","name"])):D("",!0),r.filtersModel.year?(h(),W(a,{key:1,type:"date",class:"datetime-only-year",value:r.filtersModel.year.value,"onUpdate:value":t[1]||(t[1]=f=>r.filtersModel.year.value=f),placeholder:r.filtersModel.year.placeholder,name:r.filtersModel.year.name,flow:["year"],format:"y","min-date":n.minDate,onUpdated:r.immediateUpdate},null,8,["value","placeholder","name","min-date","onUpdated"])):D("",!0)]),tags:F(()=>[r.filtersModel.date&&r.filtersModel.date.value?(h(),W(d,{key:0,class:"mt-2 me-2 me-none-last",onClose:r.resetDate},{default:F(()=>[z(m(r.filtersModel.date.placeholder+": ")+" ",1),c("span",Dun,m(r.dateFormatted),1)]),_:1},8,["onClose"])):D("",!0),r.filtersModel.year&&r.filtersModel.year.value?(h(),W(d,{key:1,class:"mt-2 me-2 me-none-last",onClose:r.resetYear},{default:F(()=>[z(m(r.filtersModel.year.placeholder+": ")+" ",1),c("span",xun,m(r.yearFormatted),1)]),_:1},8,["onClose"])):D("",!0),r.filtersModel.checkboxes?(h(!0),g(pe,{key:2},Me(r.filtersModel.checkboxes,f=>(h(),g(pe,null,[(h(!0),g(pe,null,Me(f.checked,(p,v)=>(h(),W(d,{key:p+v,class:"mt-2 me-2 me-none-last",onClose:_=>r.removeItem(f.checked,p)},{default:F(()=>[z(m(f.title+": ")+" ",1),c("span",Oun,m(f.options[p]),1)]),_:2},1032,["onClose"]))),128))],64))),256)):D("",!0)]),_:2},[r.filtersModel.checkboxes?{name:"filter",fn:F(()=>[(h(!0),g(pe,null,Me(r.filtersModel.checkboxes,(f,p)=>(h(),W(l,{key:p,title:f.title,onUpdated:t[2]||(t[2]=v=>r.updateQuery(!0)),labels:Object.values(f.options),options:Object.keys(f.options),checked:f.checked,"onUpdate:checked":v=>f.checked=v},null,8,["title","labels","options","checked","onUpdate:checked"]))),128))]),key:"0"}:void 0]),1032,["placeholder","search","control-mode","is-filter-used","check-boxes-checked","onResetFilter","onLoad","plain-search"])}const tr=U(Aun,[["render",Lun]]),Mun={components:{TableSearchWithQuery:tr},props:{page:Number,query:{type:Object,default(){return{page:1,search:null,date:null,controlMode:void 0,state:null}}}},computed:{pageModel:{get(){return this.page},set(e){this.$emit("update:page",e)}}},data(){return{filters:{search:{placeholder:this.$t("administration.product.search.placeholder"),value:null},date:{placeholder:this.$t("administration.product.date.placeholder"),name:"created_at",value:null},controlMode:{placeholder:this.$t("administration.product.search.control_mode"),value:void 0},checkboxes:[{name:"state",title:this.$t("administration.product.filter.state.title"),options:ja.state.map(e=>e.string),checked:[]},{name:"tags",title:this.$t("administration.product.filter.tags.title"),options:this.$tm("administration.product.filter.tags.options"),checked:[]}]}}},methods:{onFilterChange(){let e=this.filterValues(),t=Object.fromEntries(Object.entries(this.query).filter(([,o])=>o||o==!1)),n=Object.keys(t).length;e.controlMode===void 0&&(!n||n==1&&t.page)?(t.controlMode=JSON.stringify(!0),this.$router.push({name:this.$route.name,query:t}).catch(()=>{})):this.$store.dispatch("administrationProduct/list",{filters:e})},filterValues(){return jo.filterValues(this.filters,this.query.page)}}};function Nun(e,t,n,o,i,r){const s=y("TableSearchWithQuery");return h(),g("div",null,[b(s,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,page:r.pageModel,"onUpdate:page":t[0]||(t[0]=a=>r.pageModel=a),loading:!1},null,8,["filters","query","onChangeFilter","page"])])}const Run=U(Mun,[["render",Nun]]),jun={components:{AppIcon:Ue,TableButton:Za},props:{product:Object},methods:{downloadProduct(){window.location.href=this.ziggyRoute("product.download_files",{product:this.product.id,file:this.product.files[0].id})},openSidebarProductDelete(){this.$store.commit("administrationProduct/setDelete",{id:this.product.id,title:this.product.title}),this.$store.dispatch("sidebar/open",{type:"product-delete"})},restoreProduct(){let e={};for(var t in this.$route.query)try{e[t]=JSON.parse(this.$route.query[t])}catch{e[t]=this.$route.query[t]}this.$store.dispatch("administrationProduct/restore",{id:this.product.id,filters:e})}}},Fun={key:0},zun={class:"text-gray-900"},Uun={class:"text-gray-900"},Bun={class:"text-gray-900"},Hun={key:1},Vun={class:"text-gray-900"};function qun(e,t,n,o,i,r){const s=y("AppIcon"),a=y("TableButton");return h(),W(a,null,{default:F(()=>[n.product.deleted?(h(),g("div",Hun,[c("button",{class:"dropdown-item d-flex align-items-center link-secondary cursor-pointer medium",onClick:t[3]||(t[3]=Gt((...l)=>r.restoreProduct&&r.restoreProduct(...l),["prevent"]))},[b(s,{icon:"arrow-left",class:"me-2 text-primary"}),c("span",Vun,m(e.$t("product.restore")),1)])])):(h(),g("div",Fun,[n.product.files.length>0?(h(),g("button",{key:0,class:"dropdown-item d-flex align-items-center link-secondary cursor-pointer medium",onClick:t[0]||(t[0]=Gt((...l)=>r.downloadProduct&&r.downloadProduct(...l),["prevent"]))},[b(s,{icon:"download",height:"16",width:"16",class:"me-2 text-primary"}),c("span",zun,m(e.$t("download.download")),1)])):(h(),g("button",{key:1,class:"dropdown-item d-flex align-items-center link-secondary medium disabled cursor-default",onClick:t[1]||(t[1]=Gt(()=>{},["prevent"]))},[b(s,{icon:"download",height:"16",width:"16",class:"me-2"}),c("span",Uun,m(e.$t("product.no_files")),1)])),c("button",{class:"dropdown-item d-flex align-items-center link-danger cursor-pointer medium",onClick:t[2]||(t[2]=Gt((...l)=>r.openSidebarProductDelete&&r.openSidebarProductDelete(...l),["prevent"]))},[b(s,{icon:"delete",height:"16",width:"16",class:"me-2"}),c("span",Bun,m(e.$t("product.delete")),1)])]))]),_:1})}const Yun=U(jun,[["render",qun]]),Wun={components:{PublicUserBlock:dM},props:{user:[Object,Array],active:{type:Boolean,default:!0},shopShown:{type:Boolean,default:!1},iconShape:{type:String,default:"square"}},computed:{userId(){return this.user.user_id?this.user.user_id:this.user.id?this.user.id:null},link(){return this.user.role==="author"||this.user.role==="admin"?"administration/users/detail/author":"administration/users/detail"}}};function Gun(e,t,n,o,i,r){const s=y("PublicUserBlock"),a=y("router-link");return h(),g("div",null,[r.userId?(h(),W(a,{key:0,to:{name:r.link,params:{id:r.userId}}},{default:F(()=>[b(s,{user:n.user,active:n.active,"shop-shown":n.shopShown,"icon-shape":n.iconShape},null,8,["user","active","shop-shown","icon-shape"])]),_:1},8,["to"])):(h(),W(s,{key:1,user:n.user,active:n.active,"shop-shown":n.shopShown,"icon-shape":n.iconShape},null,8,["user","active","shop-shown","icon-shape"]))])}const fM=U(Wun,[["render",Gun]]),Zun={components:{AppIcon:Ue,ButtonDropdown:Eg,UserBlock:fM,ProductCountPill:Ig},props:{user:Object,active:{type:Boolean,default:!0},productCount:{type:Number,default:0}},data(){return{chatLoading:!1}},methods:{copy(){this.$copyText(this.user.email),window.flash(this.$t("clipboard.copied"),"success")},openSideBarChat(){this.chatLoading||(this.user.conversation_id?(this.$store.dispatch("administrationMessages/setConversationId",{conversationId:this.user.conversation_id}),this.$store.commit("sidebarChat/setChatOpen",!0)):(this.chatLoading=!0,this.$store.dispatch("administrationMessages/findConversation",{userId:this.user.user_id?this.user.user_id:this.user.id}).then(()=>{this.$store.commit("sidebarChat/setChatOpen",!0)}).finally(()=>{this.chatLoading=!1})))}},computed:{userId(){return this.user.user_id?this.user.user_id:this.user.id?this.user.id:null},link(){return this.user.role==="author"||this.user.role==="admin"?"administration/users/detail/author":"administration/users/detail"}}},Kun={class:"d-flex align-items-center justify-content-between"},Jun={class:"text-truncate"},Xun={key:1,class:"dropdown-item d-flex align-items-center small"};function Qun(e,t,n,o,i,r){const s=y("UserBlock"),a=y("ProductCountPill"),l=y("AppIcon"),d=y("router-link"),u=y("ButtonDropdown");return h(),W(u,{"drop-side":"down"},{button:F(()=>[c("div",Kun,[c("div",Jun,[b(s,{user:n.user,active:n.active,class:"text-decoration-underline-hover text-truncate"},null,8,["user","active"])]),c("div",null,[n.productCount?(h(),W(a,{key:0,count:n.productCount},null,8,["count"])):D("",!0)])])]),dropdown:F(()=>[c("button",{class:"dropdown-item d-flex align-items-center small",type:"button",onClick:t[0]||(t[0]=Gt((...f)=>r.copy&&r.copy(...f),["prevent"]))},[b(l,{icon:"copy",class:"me-2"}),z(" "+m(e.$t("administration.product.table.item.author.copy_email")),1)]),r.userId?(h(),W(d,{key:0,to:{name:r.link,params:{id:r.userId}},class:"dropdown-item d-flex align-items-center small",onClickCapture:t[1]||(t[1]=f=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},{default:F(()=>[b(l,{icon:"show",class:"me-2"}),z(" "+m(e.$t("administration.product.table.item.author.show")),1)]),_:1},8,["to"])):(h(),g("span",Xun,[b(l,{icon:"show",class:"me-2"}),z(" "+m(e.$t("administration.product.table.item.author.show")),1)])),c("div",{class:"dropdown-item d-flex align-items-center small cursor-pointer",onClick:t[2]||(t[2]=Gt((...f)=>r.openSideBarChat&&r.openSideBarChat(...f),["stop","prevent"]))},[i.chatLoading?(h(),W(l,{key:0,icon:"cog",spin:!0,class:"me-2"})):(h(),W(l,{key:1,icon:"message",class:"me-2"})),z(" "+m(e.$t("administration.product.table.item.author.write_message")),1)])]),_:1})}const Nl=U(Zun,[["render",Qun]]),ehn={components:{AppIcon:Ue},props:{id:Number,imagePath:String,title:String,createdAt:String,isOnlyOnUcitelnice:{type:Boolean,default:!1},fromPath:{type:[String,Object],default(){return null}},active:{type:Boolean,default:!0}},data(){return{moment:mt}}},thn=["src"],nhn={class:"d-flex flex-wrap align-items-center"};function ohn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link");return h(),W(a,{to:{name:"administration/product/detail",params:{id:n.id}},class:"d-flex link-dark text-truncate text-decoration-underline-hover",onClickCapture:t[0]||(t[0]=l=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:n.fromPath?n.fromPath:e.$route.fullPath}))},{default:F(()=>[c("img",{src:n.imagePath,width:"37",height:"37",class:J(["rounded me-2",{"muted-img":!n.active}])},null,10,thn),c("div",{class:J(["flex-grow-1 text-truncate",{"text-manatee-gray":!n.active}])},[c("span",nhn,[z(m(n.title)+" ",1),n.isOnlyOnUcitelnice?(h(),W(s,{key:0,icon:"diamond",width:"16",height:"16",class:"ms-1 text-purple"})):D("",!0)]),c("div",{class:J(["small text-gray-600 text-truncate",{"text-manatee-gray":!n.active}])},m(e.$t("administration.product.table.item.upload"))+" "+m(n.createdAt),3)],2)]),_:1},8,["to"])}const tb=U(ehn,[["render",ohn]]),ihn={components:{AppIcon:Ue},props:{product:Object},data(){return{moment:mt,stripHTML:Z3.stripHTML}}},rhn={key:0},shn={class:"d-flex align-items-center justify-content-between"},ahn={class:"d-flex align-items-center me-2"},lhn={class:"me-2"},chn={class:"small text-gray-700"},dhn={class:"fw-bold"},uhn={key:0},hhn={key:1},fhn={class:"d-flex align-items-center"};function mhn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return n.product.revisions_with_trashed_sorted&&n.product.revisions_with_trashed_sorted.length>0?(h(),g("div",rhn,[t[0]||(t[0]=c("hr",{class:"my-3"},null,-1)),(h(!0),g(pe,null,Me(n.product.revisions_with_trashed_sorted,(l,d)=>(h(),g("div",{key:d,class:J({"mb-1":n.product.revisions_with_trashed_sorted.length-1!=d})},[c("div",shn,[c("div",ahn,[xe((h(),g("div",lhn,[c("div",{class:J(["w-1dot5rem h-1dot5rem text-white rounded-circle d-inline-flex justify-content-center align-items-center",l.type=="revision"?"bg-warning":"bg-danger"])},[b(s,{icon:l.type==="revision"?"edit":"close"},null,8,["icon"])],2)])),[[a,{content:l.type=="revision"?e.$t("administration.product.detail.control.states.review"):e.$t("administration.product.detail.control.states.disapproved"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),c("div",chn,[c("span",dhn,m(i.moment(l.created_at).format("DD. MM. YYYY")),1),z(" "+m(e.$t("public.dash"))+" ",1),(h(!0),g(pe,null,Me(l.reasons_with_trashed,(u,f)=>(h(),g("span",{key:f},[u.type==null?xe((h(),g("span",uhn,[z(m(u.custom_title)+" ",1),b(s,{icon:"info-circle",class:"ms-1"}),c("span",{class:J({"d-none":f==l.reasons_with_trashed.length-1})},m(","),2)])),[[a,{content:i.stripHTML(u.custom_text),delay:{show:500,hide:100},triggers:["hover","click"]}]]):(h(),g("span",hhn,[z(m(e.$tm("email.admin_product_feedback.reasons")[u.type].headline)+" ",1),c("span",{class:J({"d-none":f==l.reasons_with_trashed.length-1})},m(","),2)]))]))),128))])]),c("div",fhn,[l.send_email==!0?xe((h(),W(s,{key:0,icon:"message",class:"text-success"},null,512)),[[a,{content:e.$t("product.admin.feedback.email_sent"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):xe((h(),W(s,{key:1,icon:"message",class:"text-danger"},null,512)),[[a,{content:e.$t("product.admin.feedback.email_not_sent"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),l.admin_personal_note?xe((h(),W(s,{key:2,icon:"info-circle",class:"text-primary ms-1"},null,512)),[[a,{content:i.stripHTML(l.admin_personal_note),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0)])])],2))),128))])):D("",!0)}const phn=U(ihn,[["render",mhn]]),ghn={components:{ProductRevisionList:phn,Loading:Rt,AppIcon:Ue},props:{product:Object,inTable:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({loading:"administrationProduct/getStatusLoading"}),iconSize(){return this.inTable?"16":"20"},disabled(){return this.product.deleted||this.product.hidden||this.product.status==5}},methods:{changeStatus(e){let t={};for(var n in this.$route.query)try{t[n]=JSON.parse(this.$route.query[n])}catch{t[n]=this.$route.query[n]}if(e==2)this.product.status==2||this.product.status==3?(this.$store.commit("administrationProduct/setFeedback",{id:this.product.id,title:this.product.title,status:e,old:this.product.revisions_with_trashed_sorted[0],filters:t}),this.$store.dispatch("sidebar/open",{type:"product-feedback",data:"revise"})):(this.$store.commit("administrationProduct/setFeedback",{id:this.product.id,title:this.product.title,status:e,filters:t}),this.$store.dispatch("sidebar/open",{type:"product-feedback",data:"revise"}));else if(e==3)this.product.status==2||this.product.status==3?(this.$store.commit("administrationProduct/setFeedback",{id:this.product.id,title:this.product.title,status:e,old:this.product.revisions_with_trashed_sorted[0],filters:t}),this.$store.dispatch("sidebar/open",{type:"product-feedback",data:"reject"})):(this.$store.commit("administrationProduct/setFeedback",{id:this.product.id,title:this.product.title,status:e,filters:t}),this.$store.dispatch("sidebar/open",{type:"product-feedback",data:"reject"}));else{let o=this.product.id;this.$store.dispatch("administrationProduct/status",{id:o,status:e,filters:t})}}}},vhn={class:"d-flex justify-content-between align-items-center"},_hn={key:0,class:"fw-bold d-inTable mb-0"},yhn=["disabled"],bhn=["disabled"],khn=["disabled"];function whn(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("ProductRevisionList"),d=an("tooltip");return xe((h(),g("div",{class:J({"vl-parent w-20rem":!n.inTable})},[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",vhn,[n.inTable?D("",!0):(h(),g("h5",_hn,m(e.$t("administration.product.detail.control.title")),1)),xe((h(),g("button",{disabled:n.product.status==1||r.disabled,onClick:t[1]||(t[1]=Gt(u=>r.changeStatus(1),["prevent","stop"])),class:J(["btn btn-center btn-success text-white rounded-circle d-flex justify-content-center align-items-center p-0",n.inTable?"w-1dot5rem h-1dot5rem":"w-3rem h-3rem"])},[b(a,{icon:"done",height:r.iconSize,width:r.iconSize},null,8,["height","width"])],10,yhn)),[[d,{content:e.$t("administration.product.detail.control.approve"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),xe((h(),g("button",{disabled:r.disabled,onClick:t[2]||(t[2]=Gt(u=>r.changeStatus(2),["prevent","stop"])),class:J(["btn btn-center btn-warning text-white rounded-circle d-flex justify-content-center align-items-center p-0",n.inTable?"ms-2 w-1dot5rem h-1dot5rem":"w-3rem h-3rem"])},[b(a,{icon:"edit",height:r.iconSize,width:r.iconSize},null,8,["height","width"])],10,bhn)),[[d,{content:n.product.status==2?e.$t("administration.product.detail.control.review_edit"):e.$t("administration.product.detail.control.review"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),xe((h(),g("button",{disabled:r.disabled,onClick:t[3]||(t[3]=Gt(u=>r.changeStatus(3),["prevent","stop"])),class:J(["btn btn-center btn-danger text-white rounded-circle d-flex justify-content-center align-items-center p-0",n.inTable?"ms-2 w-1dot5rem h-1dot5rem":"w-3rem h-3rem"])},[b(a,{icon:"close",height:r.iconSize,width:r.iconSize},null,8,["height","width"])],10,khn)),[[d,{content:n.product.status==3?e.$t("administration.product.detail.control.disapprove_edit"):e.$t("administration.product.detail.control.disapprove"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),n.inTable?D("",!0):(h(),W(l,{key:0,product:n.product},null,8,["product"]))],2)),[[d,{content:r.disabled?e.$t("administration.product.detail.control.not_valid"):"",delay:{show:500,hide:100},triggers:["hover","click"]}]])}const dce=U(ghn,[["render",whn]]),$hn={components:{Loading:Rt,Bootstrap5Pagination:Ri,ProductSearch:Run,FlexTableHead:ti,FlexTableRow:ni,ProductStatus:J3,ProductTableButton:Yun,UserBlockDropdown:Nl,ProductBlock:tb,ProductControl:dce},props:{query:Object},data(){return{moment:mt,primaryColor:window.primaryColor,productConfig:ja,page:1,hover:-1}},computed:{...Oe({loading:"administrationProduct/getLoading",list:"administrationProduct/getList"})},methods:{setPage(e){this.page=e},productStatus(e){return e.deleted?this.productConfig.statusDeletedId:e.hidden?this.productConfig.statusHiddenId:e.status}}},Chn={class:"vl-parent mh-8"},Shn={class:"col-12 col-md-1 text-truncate"},Thn={class:"col-12 col-md-3 text-truncate"},Ehn={class:"col-12 col-md-3 text-truncate"},Ihn={class:"col-12 col-md-1 text-truncate"},Phn={class:"col-12 col-md-1 text-truncate"},Ahn={class:"col-12 col-md-3 text-truncate"},Dhn={key:0},xhn={class:"text-center mt-4"},Ohn=["onMouseover"],Lhn={class:"col-12 col-md-1"},Mhn={class:"col-12 col-md-3 d-flex"},Nhn={class:"col-12 col-md-3 d-flex justify-content-between align-items-center"},Rhn={class:"col-12 col-md-1"},jhn={class:"col-12 col-md-1"},Fhn={class:"col-12 col-md-3 d-flex justify-content-between align-items-center"},zhn={class:"d-flex align-items-center"};function Uhn(e,t,n,o,i,r){const s=y("Loading"),a=y("ProductSearch"),l=y("FlexTableHead"),d=y("ProductBlock"),u=y("UserBlockDropdown"),f=y("ProductStatus"),p=y("ProductControl"),v=y("ProductTableButton"),_=y("FlexTableRow"),k=y("router-link"),C=y("Bootstrap5Pagination");return h(),g("div",null,[c("div",Chn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=$=>e.loading=$),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{query:n.query,page:i.page,"onUpdate:page":t[1]||(t[1]=$=>i.page=$),class:"mb-3"},null,8,["query","page"]),b(l,null,{default:F(()=>[c("div",Shn,m(e.$t("administration.product.table.header.id")),1),c("div",Thn,m(e.$t("administration.product.table.header.product")),1),c("div",Ehn,m(e.$t("administration.product.table.header.author")),1),c("div",Ihn,m(e.$t("administration.product.table.header.price")),1),c("div",Phn,m(e.$t("administration.product.table.header.sold")),1),c("div",Ahn,m(e.$t("administration.product.table.header.state")),1)]),_:1}),e.list.data.length?(h(!0),g(pe,{key:1},Me(e.list.data,($,E)=>(h(),g("div",{key:E,onMouseover:P=>i.hover=E,onMouseleave:t[3]||(t[3]=P=>i.hover=-1)},[b(k,{to:{path:"/administration/product/detail/"+$.id},class:"link-dark",onClickCapture:t[2]||(t[2]=P=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},{default:F(()=>[b(_,{class:J({"text-manatee-gray":!$.is_open,"border-none":E==e.list.data.length-1})},{default:F(()=>[c("div",Lhn,m($.id),1),c("div",Mhn,[b(d,{id:$.id,"image-path":$.cover_img_thumbnail,title:$.title,createdAt:$.created_at,active:$.is_open,"from-path":e.$route.fullPath,"is-only-on-ucitelnice":$.only_on_ucitelnice},null,8,["id","image-path","title","createdAt","active","from-path","is-only-on-ucitelnice"])]),c("div",Nhn,[b(u,{class:J({"w-100":$.author.available_products_count}),user:$.author,active:$.is_open,"product-count":$.author.available_products_count},null,8,["class","user","active","product-count"])]),c("div",Rhn,m($.price+",-"),1),c("div",jhn,m($.sells),1),c("div",Fhn,[b(f,{status:r.productStatus($),class:"text-truncate"},null,8,["status"]),c("div",zhn,[i.hover==E?(h(),W(p,{key:0,product:$,"in-table":"",class:"mx-2"},null,8,["product"])):D("",!0),b(v,{product:$},null,8,["product"])])])]),_:2},1032,["class"])]),_:2},1032,["to"])],40,Ohn))),128)):(h(),g("div",Dhn,[c("h4",xhn,m(e.$t("administration.product.table.not_found.all")),1)])),e.loading?D("",!0):(h(),W(C,{key:2,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.setPage,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])])}const Bhn=U($hn,[["render",Uhn]]),Hhn={components:{TableSearchWithQuery:tr},props:{page:Number,query:{type:Object,default(){return{page:1,search:null,date:null,state:null,reason:null}}}},computed:{pageModel:{get(){return this.page},set(e){this.$emit("update:page",e)}}},data(){return{filters:{search:{placeholder:this.$t("administration.product.search.placeholder"),value:null},date:{placeholder:this.$t("administration.product.complaint.date.placeholder"),name:"created_at",value:null},checkboxes:[{name:"state",title:this.$t("administration.product.complaint.filter.state.title"),options:this.$tm("complaints.states"),checked:[]},{name:"reason",title:this.$t("administration.product.complaint.filter.reason.title"),options:Object.entries(this.$tm("complaints.types")).reduce((e,[t,n])=>(e[t]=n.short,e),{}),checked:[]},{name:"tags",title:this.$t("administration.product.complaint.filter.tags.title"),options:this.$tm("administration.product.complaint.filter.tags.options"),checked:[]}]}}},methods:{onFilterChange(){if(!this.loading){let e=this.filterValues();this.$store.dispatch("administrationProductComplaint/list",{filters:e})}},changePage(e){this.pageModel=e},filterValues(){return jo.filterValues(this.filters,this.query.page)}},mounted(){let e=Object.fromEntries(Object.entries(this.query).filter(([,n])=>n||n==!1)),t=Object.keys(e).length;(!t||t==1&&e.page)&&(e.state=JSON.stringify(["waiting_admin","waiting_customer","waiting_author"]),this.$router.push({name:this.$route.name,query:e}).catch(()=>{}))}};function Vhn(e,t,n,o,i,r){const s=y("TableSearchWithQuery");return h(),g("div",null,[b(s,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,page:r.pageModel,"onUpdate:page":t[0]||(t[0]=a=>r.pageModel=a),loading:!1},null,8,["filters","query","onChangeFilter","page"])])}const qhn=U(Hhn,[["render",Vhn]]),Yhn={components:{Pill:Ni},props:{status:String},data(){return{states:ja.complaint.state}}};function Whn(e,t,n,o,i,r){const s=y("Pill");return h(),W(s,{color:i.states[n.status]},{default:F(()=>[z(m(n.status),1)]),_:1},8,["color"])}const uce=U(Yhn,[["render",Whn]]),Ghn={components:{ProductComplaintSearch:qhn,FlexTableHead:ti,FlexTableRow:ni,ProductComplaintStatus:uce,Loading:Rt,Bootstrap5Pagination:Ri,UserBlockDropdown:Nl,ProductBlock:tb},props:{query:Object},data(){return{moment:mt,primaryColor:window.primaryColor,page:1}},computed:{...Oe({loading:"administrationProductComplaint/getLoading",list:"administrationProductComplaint/getList"})},methods:{setPage(e){this.page=e}}},Zhn={class:"vl-parent mh-8"},Khn={class:"col-12 col-md-1 text-truncate"},Jhn={class:"col-12 col-md-2dot4 text-truncate"},Xhn={class:"col-12 col-md-2dot4 text-truncate"},Qhn={class:"col-12 col-md-2 text-truncate"},efn={class:"col-12 col-md-1 text-truncate"},tfn={class:"col-12 col-md-1dot2 text-truncate"},nfn={class:"col-12 col-md-2 text-truncate"},ofn={key:0},ifn={class:"text-center mt-4"},rfn={class:"col-12 col-md-1"},sfn={class:"col-12 col-md-2dot4 d-flex"},afn={class:"col-12 col-md-2dot4 d-flex justify-content-between align-items-center"},lfn={class:"col-12 col-md-2 d-flex"},cfn={class:"col-12 col-md-1 text-truncate"},dfn={class:"col-12 col-md-1dot2 text-truncate"},ufn={class:"col-12 col-md-2"},hfn={class:"d-flex justify-content-between align-items-center"};function ffn(e,t,n,o,i,r){const s=y("Loading"),a=y("ProductComplaintSearch"),l=y("FlexTableHead"),d=y("ProductBlock"),u=y("UserBlockDropdown"),f=y("router-link"),p=y("ProductComplaintStatus"),v=y("FlexTableRow"),_=y("Bootstrap5Pagination");return h(),g("div",null,[c("div",Zhn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=k=>e.loading=k),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{query:n.query,page:i.page,"onUpdate:page":t[1]||(t[1]=k=>i.page=k),class:"mb-3"},null,8,["query","page"]),b(l,null,{default:F(()=>[c("div",Khn,m(e.$t("administration.product.table.header.id")),1),c("div",Jhn,m(e.$t("administration.product.table.header.product")),1),c("div",Xhn,m(e.$t("administration.product.table.header.author")),1),c("div",Qhn,m(e.$t("administration.product.table.header.customer")),1),c("div",efn,m(e.$t("administration.product.table.header.date")),1),c("div",tfn,m(e.$t("administration.product.table.header.reason")),1),c("div",nfn,m(e.$t("administration.product.table.header.state")),1)]),_:1}),e.list.data.length?(h(!0),g(pe,{key:1},Me(e.list.data,(k,C)=>(h(),W(f,{key:C,to:{path:"/administration/product/complaint/detail/"+k.id},class:"link-dark",onClickCapture:t[2]||(t[2]=$=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},{default:F(()=>[b(v,{class:J({"text-manatee-gray":!k.is_open,"border-none":C==e.list.data.length-1})},{default:F(()=>[c("div",rfn,m(k.product.id),1),c("div",sfn,[b(d,{id:k.product.id,"image-path":k.product.cover_img_thumbnail,title:k.product.title,createdAt:i.moment(k.product.created_at).format("DD. MM. YYYY"),active:k.is_open,"from-path":e.$route.fullPath,"is-only-on-ucitelnice":k.product.only_on_ucitelnice},null,8,["id","image-path","title","createdAt","active","from-path","is-only-on-ucitelnice"])]),c("div",afn,[b(u,{class:J({"w-100":k.product.author.available_products_count}),user:k.product.author,active:k.is_open,"product-count":k.product.author.available_products_count},null,8,["class","user","active","product-count"])]),c("div",lfn,[b(f,{to:{path:"/administration/users/detail/"+k.customer.id},class:"link-dark text-decoration-underline-hover"},{default:F(()=>[c("div",{class:J(["text-truncate",{"text-manatee-gray":!k.is_open}])},m(k.customer.first_name+" "+k.customer.last_name),3)]),_:2},1032,["to"])]),c("div",cfn,m(k.created_at),1),c("div",dfn,m(e.$tm("complaints.types")[k.type].short),1),c("div",ufn,[c("div",hfn,[b(p,{status:e.$tm("complaints.states")[k.state],class:"text-truncate"},null,8,["status"])])])]),_:2},1032,["class"])]),_:2},1032,["to"]))),128)):(h(),g("div",ofn,[c("h4",ifn,m(e.$t("administration.product.table.not_found.complaints")),1)])),e.loading?D("",!0):(h(),W(_,{key:2,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.setPage,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])])}const mfn=U(Ghn,[["render",ffn]]),pfn={components:{TableSearchWithQuery:tr},props:{page:Number,query:{type:Object,default(){return{page:1,search:null}}}},computed:{pageModel:{get(){return this.page},set(e){this.$emit("update:page",e)}}},data(){return{filters:{search:{placeholder:this.$t("administration.product.search.placeholder"),value:null}}}},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationProductUpdate/list",{filters:this.filterValues()})},filterValues(){return jo.filterValues(this.filters,this.query.page)}}};function gfn(e,t,n,o,i,r){const s=y("TableSearchWithQuery");return h(),g("div",null,[b(s,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,page:r.pageModel,"onUpdate:page":t[0]||(t[0]=a=>r.pageModel=a),loading:!1},null,8,["filters","query","onChangeFilter","page"])])}const vfn=U(pfn,[["render",gfn]]),_fn={components:{TableButton:Za,AppIcon:Ue},props:{update:Object},methods:{confirmUpdate(){this.$store.commit("administrationProductUpdate/setDetail",this.update),this.$store.dispatch("sidebar/open",{type:"product-update-confirm"})},deleteUpdate(){this.$store.commit("administrationProductUpdate/setDetail",this.update),this.$store.dispatch("sidebar/open",{type:"product-update-delete"})}}},yfn={class:"text-gray-900"},bfn={class:"text-gray-900"};function kfn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("TableButton");return h(),W(a,null,{default:F(()=>[c("button",{class:"dropdown-item d-flex align-items-center btn-tertiary medium",onClick:t[0]||(t[0]=Gt((...l)=>r.confirmUpdate&&r.confirmUpdate(...l),["prevent"]))},[b(s,{icon:"check",class:"me-2"}),c("span",yfn,m(e.$t("administration.confirm_send")),1)]),c("button",{class:"dropdown-item d-flex align-items-center btn-danger btn-tertiary medium",onClick:t[1]||(t[1]=Gt((...l)=>r.deleteUpdate&&r.deleteUpdate(...l),["prevent"]))},[b(s,{icon:"delete",class:"me-2"}),c("span",bfn,m(e.$t("product.delete")),1)])]),_:1})}const wfn=U(_fn,[["render",kfn]]),$fn={components:{ProductUpdateSearch:vfn,FlexTableHead:ti,FlexTableRow:ni,Loading:Rt,ProductBlock:tb,UserBlockDropdown:Nl,ProductUpdateTableButton:wfn,Bootstrap5Pagination:Ri},props:{query:Object},data(){return{moment:mt,primaryColor:window.primaryColor,page:1}},computed:{...Oe({loading:"administrationProductUpdate/getLoading",list:"administrationProductUpdate/getList"})},methods:{setPage(e){this.page=e}}},Cfn={class:"vl-parent mh-8"},Sfn={class:"col-12 col-md-1 text-truncate"},Tfn={class:"col-12 col-md-3 text-truncate"},Efn={class:"col-12 col-md-3 text-truncate"},Ifn={class:"col-12 col-md-1 text-truncate"},Pfn={class:"col-12 col-md-4 text-truncate"},Afn={key:0},Dfn={class:"text-center mt-4"},xfn={class:"col-12 col-md-1"},Ofn={class:"col-12 col-md-3"},Lfn={class:"col-12 col-md-3 d-flex justify-content-between align-items-center"},Mfn={class:"col-12 col-md-1"},Nfn={class:"col-12 col-md-4 d-flex justify-content-between align-items-center small"};function Rfn(e,t,n,o,i,r){const s=y("Loading"),a=y("ProductUpdateSearch"),l=y("FlexTableHead"),d=y("ProductBlock"),u=y("UserBlockDropdown"),f=y("ProductUpdateTableButton"),p=y("FlexTableRow"),v=y("Bootstrap5Pagination");return h(),g("div",null,[c("div",Cfn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=_=>e.loading=_),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{class:"mb-3",query:n.query,page:i.page,"onUpdate:page":t[1]||(t[1]=_=>i.page=_)},null,8,["query","page"]),b(l,null,{default:F(()=>[c("div",Sfn,m(e.$t("administration.product.table.header.id")),1),c("div",Tfn,m(e.$t("administration.product.table.header.product")),1),c("div",Efn,m(e.$t("administration.product.table.header.author")),1),c("div",Ifn,m(e.$t("administration.product.table.header.sells")),1),c("div",Pfn,m(e.$t("administration.product.table.header.update_reason")),1)]),_:1}),e.list.data.length?(h(!0),g(pe,{key:1},Me(e.list.data,(_,k)=>(h(),W(p,{key:k,class:J({"border-none":k==e.list.data.length-1})},{default:F(()=>[c("div",xfn,m(_.product.id),1),c("div",Ofn,[b(d,{id:_.product.id,"image-path":_.product.cover_img_thumbnail,title:_.product.title,createdAt:i.moment(_.product.created_at).format("DD. MM. YYYY"),"from-path":e.$route.fullPath,"is-only-on-ucitelnice":_.product.only_on_ucitelnice},null,8,["id","image-path","title","createdAt","from-path","is-only-on-ucitelnice"])]),c("div",Lfn,[b(u,{class:J({"w-100":_.product.author.available_products_count}),user:_.product.author,"product-count":_.product.author.available_products_count},null,8,["class","user","product-count"])]),c("div",Mfn,m(_.product.sells),1),c("div",Nfn,[z(m(_.reason)+" ",1),b(f,{update:_},null,8,["update"])])]),_:2},1032,["class"]))),128)):(h(),g("div",Afn,[c("h4",Dfn,m(e.$t("administration.product.table.not_found.updates")),1)])),e.loading?D("",!0):(h(),W(v,{key:2,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.setPage,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])])}const jfn=U($fn,[["render",Rfn]]),Ffn={components:{AppIcon:Ue},props:{backButtonPath:{type:String,default(){return""}}},methods:{popBackPath(){this.$store.dispatch("administrationSiteNavigation/popBackPath")}}},zfn={class:"d-flex flex-wrap justify-content-between align-items-center pb-3"},Ufn={class:"row align-items-center"},Bfn={class:"btn btn-sm btn-primary me-3"},Hfn={class:"m-0 col-auto"},Vfn={key:0,class:"d-flex flex-wrap align-items-center"};function qfn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link");return h(),g("div",zfn,[c("div",Ufn,[b(a,{to:n.backButtonPath,class:"col-auto",onClick:r.popBackPath},{default:F(()=>[c("button",Bfn,[b(s,{icon:"arrow-left",class:"me-2",height:"20",width:"20"}),z(" "+m(e.$t("administration.back")),1)])]),_:1},8,["to","onClick"]),c("h4",Hfn,[Pt(e.$slots,"title")])]),e.$slots.buttons?(h(),g("div",Vfn,[Pt(e.$slots,"buttons")])):D("",!0)])}const F6=U(Ffn,[["render",qfn]]),Yfn={components:{AppIcon:Ue},props:{product:Object},methods:{toggleHide(){this.$store.dispatch("administrationProduct/toggleHide",{id:this.product.id})}},computed:{disabled(){return this.product.status==5||this.product.deleted_at}}},Wfn={key:0},Gfn={key:1};function Zfn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return xe((h(),g("div",null,[c("button",{class:J(["btn btn-center btn-sm btn-tertiary",{disabled:r.disabled}]),onClick:t[0]||(t[0]=(...l)=>r.toggleHide&&r.toggleHide(...l))},[n.product.hidden?(h(),g("span",Wfn,[z(m(e.$t("administration.product.detail.header.unhide"))+" ",1),b(s,{icon:"show",class:"ms-1",height:"20",width:"20"})])):(h(),g("span",Gfn,[z(m(e.$t("administration.product.detail.header.hide"))+" ",1),b(s,{icon:"hide",class:"ms-1",height:"20",width:"20"})]))],2)])),[[a,{content:r.disabled?e.$t("administration.product.detail.control.not_valid"):"",delay:{show:500,hide:100},triggers:["hover","click"]}]])}const Kfn=U(Yfn,[["render",Zfn]]),Jfn={components:{AppIcon:Ue},props:{product:Object},methods:{toggleSale(){let e=this.product.id;this.product.status==4?this.$store.dispatch("administrationProduct/status",{id:e,status:1}):this.$store.dispatch("administrationProduct/status",{id:e,status:4})}},computed:{disabled(){return this.product.status==5||this.product.deleted_at||this.product.hidden}}},Xfn={key:0},Qfn={key:1};function emn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return xe((h(),g("div",null,[c("button",{class:J(["btn btn-center btn-sm btn-tertiary",{disabled:r.disabled}]),onClick:t[0]||(t[0]=(...l)=>r.toggleSale&&r.toggleSale(...l))},[n.product.status==4?(h(),g("span",Xfn,[z(m(e.$t("administration.product.detail.control.for_sale"))+" ",1),b(s,{icon:"done",class:"ms-icon",width:"20",height:"20"})])):(h(),g("span",Qfn,[z(m(e.$t("administration.product.detail.control.not_for_sale"))+" ",1),b(s,{icon:"close",class:"ms-icon",width:"20",height:"20"})]))],2)])),[[a,{content:r.disabled?e.$t("administration.product.detail.control.not_valid"):"",delay:{show:500,hide:100},triggers:["hover","click"]}]])}const tmn=U(Jfn,[["render",emn]]),nmn={components:{AppIcon:Ue},props:{product:Object},methods:{recommend(){this.$store.dispatch("administrationProduct/recommend",{id:this.product.id})},removeRecommend(){this.$store.dispatch("administrationProduct/removeRecommend",{id:this.product.id})},openSideEdit(){this.$store.dispatch("sidebar/open",{type:"product-update",data:"all"})}}},omn={class:J("btn btn-center btn-sm btn-tertiary"),"data-bs-toggle":"dropdown","aria-expanded":"false"},imn={class:"dropdown-menu"},rmn=["href"],smn=["href"];function amn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",null,[c("button",omn,[z(m(e.$t("administration.product.detail.header.menu.title"))+" ",1),b(s,{icon:"menu",class:"ms-icon",height:"20",width:"20"})]),c("ul",imn,[c("li",null,[c("button",{onClick:t[0]||(t[0]=(...a)=>r.openSideEdit&&r.openSideEdit(...a)),class:"btn btn-center justify-content-start dropdown-item border-radius-none btn-tertiary"},[b(s,{icon:"edit",class:"me-2",height:"20",width:"20"}),z(" "+m(e.$t("administration.product.detail.header.menu.edit")),1)])]),c("li",null,[c("a",{href:e.ziggyRoute("product.show",n.product.id),target:"_blank",class:"dropdown-item border-radius-none btn-tertiary btn-center justify-content-start cursor-pointer"},[b(s,{icon:"bag",class:"me-2",height:"20",width:"20"}),z(" "+m(e.$t("administration.product.detail.header.menu.show_in_eshop")),1)],8,rmn)]),c("li",null,[c("a",{href:e.ziggyRoute("product.edit",{product:n.product.id,update:!0}),target:"_blank",class:"dropdown-item border-radius-none btn-tertiary btn-center justify-content-start cursor-pointer"},[b(s,{icon:"edit",class:"me-2",height:"20",width:"20"}),z(" "+m(e.$t("administration.product.detail.header.menu.edit_as_author")),1)],8,smn)])])])}const lmn=U(nmn,[["render",amn]]),cmn={components:{AppIcon:Ue},props:{productId:Number,textFirst:{type:Boolean,default:!1},useClass:{type:String,default:"btn btn-link"},disabled:{type:Boolean,default:!1}},computed:{downloadUrl(){return this.ziggyRoute("downloads.download",{product:this.productId})}}},dmn=["href"],umn={key:0},hmn={key:1};function fmn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return xe((h(),g("div",null,[c("a",{href:r.downloadUrl,type:"button",class:J(n.disabled?"disabled":n.useClass)},[n.textFirst?(h(),g("span",umn,[Pt(e.$slots,"button-text"),b(s,{icon:"download",class:"ms-1",height:"20",width:"20"})])):(h(),g("span",hmn,[b(s,{icon:"download",class:"me-1",height:"20",width:"20"}),Pt(e.$slots,"button-text")]))],10,dmn),Pt(e.$slots,"default")])),[[a,{content:n.disabled?e.$t("administration.product.detail.control.not_valid"):"",delay:{show:500,hide:100},triggers:["hover","click"]}]])}const hce=U(cmn,[["render",fmn]]),mmn={components:{ProductMenuButton:lmn,ProductHideButton:Kfn,ProductSaleButton:tmn,DetailHeader:F6,DownloadButton:hce},computed:{...Oe({product:"administrationProduct/getDetail",backPath:"administrationSiteNavigation/getBackPath"})},mounted(){this.backPath||this.$store.dispatch("administrationSiteNavigation/setBackPath",{path:this.$router.resolve({name:"administration/product/list"}).href})}};function pmn(e,t,n,o,i,r){const s=y("DownloadButton"),a=y("ProductHideButton"),l=y("ProductSaleButton"),d=y("ProductMenuButton"),u=y("DetailHeader");return h(),W(u,{"back-button-path":e.backPath},{title:F(()=>[z(m(e.$t("administration.product.detail.header.title")),1)]),buttons:F(()=>[b(s,{"product-id":e.product.id,"use-class":"btn btn-center btn-sm btn-tertiary","text-first":"",class:"mx-1",disabled:e.product.status===5||e.product.files.length<=0},{"button-text":F(()=>[z(m(e.$t("administration.product.detail.header.download")),1)]),_:1},8,["product-id","disabled"]),b(a,{product:e.product,class:"mx-1"},null,8,["product"]),b(l,{product:e.product,class:"mx-1"},null,8,["product"]),b(d,{product:e.product,class:"ms-1"},null,8,["product"])]),_:1},8,["back-button-path"])}const gmn=U(mmn,[["render",pmn]]),vmn={components:{TabList:qr,ProductDetailHeader:gmn},props:{id:Number},data(){return{tab:{titles:Object.values(this.$tm("administration.product.detail.tab")),routes:ja.detail.routes}}},methods:{loadDetail(e){this.$store.dispatch("administrationProduct/detail",{id:e})}},mounted(){this.loadDetail(this.id)}};function _mn(e,t,n,o,i,r){const s=y("ProductDetailHeader"),a=y("TabList"),l=y("router-view");return h(),g("div",null,[b(s),b(a,{titles:i.tab.titles,routes:i.tab.routes,"padding-x":0,class:"mb-3"},null,8,["titles","routes"]),b(l,{id:n.id},null,8,["id"])])}const ymn=U(vmn,[["render",_mn]]),bmn={props:{text:String,expand:String,narrow:String,empty:String},data(){return{expanded:!1}},methods:{toggleExpand(){this.expanded=!this.expanded}}},kmn={class:"medium text-gray-700"},wmn={key:0},$mn=["innerHTML"],Cmn={key:1};function Smn(e,t,n,o,i,r){return h(),g("div",kmn,[n.text?(h(),g("div",wmn,[c("div",{innerHTML:i.expanded?n.text:n.text.substring(0,200)},null,8,$mn),c("a",{class:"link-primary cursor-pointer",onClick:t[0]||(t[0]=(...s)=>r.toggleExpand&&r.toggleExpand(...s))},m(i.expanded?n.narrow:n.expand),1)])):(h(),g("div",Cmn,m(n.empty),1))])}const Tmn=U(bmn,[["render",Smn]]),Emn={components:{UserBlock:fM,ExpandableText:Tmn,ProductCountPill:Ig,ProductStatus:J3},props:{product:Object},data(){return{productConfig:ja}},methods:{productStatus(e){return e.deleted_at?this.productConfig.statusDeletedId:e.hidden?this.productConfig.statusHiddenId:e.status}}},Imn={class:"d-flex flex-column justify-content-between pe-3"},Pmn={class:"mb-3"},Amn={class:"d-flex align-items-center mb-2"},Dmn={class:"mb-0"},xmn={class:"mb-3"},Omn={class:"medium text-gray-700"},Lmn={class:"fw-bold mb-3"},Mmn={class:"d-flex align-items-center"},Nmn={class:"d-flex ms-3"};function Rmn(e,t,n,o,i,r){const s=y("ProductStatus"),a=y("ExpandableText"),l=y("UserBlock"),d=y("ProductCountPill");return h(),g("div",Imn,[c("div",Pmn,[c("div",Amn,[c("h3",Dmn,m(n.product.title),1),n.product.status?(h(),W(s,{key:0,class:"d-flex align-items-center ms-2",status:r.productStatus(n.product)},null,8,["status"])):D("",!0)]),c("p",xmn,m(n.product.created_at),1),c("p",Omn,m(n.product.short_description?n.product.short_description:e.$t("public.dash")),1),c("p",Lmn,m(e.$t("administration.product.detail.description.title")),1),b(a,{text:n.product.full_description,expand:e.$t("administration.product.detail.description.show_more"),narrow:e.$t("administration.product.detail.description.show_less"),empty:"–"},null,8,["text","expand","narrow"])]),c("div",Mmn,[b(l,{user:n.product.author},null,8,["user"]),c("div",Nmn,[n.product.author.available_products_count?(h(),W(d,{key:0,count:n.product.author.available_products_count},null,8,["count"])):D("",!0)])])])}const jmn=U(Emn,[["render",Rmn]]),Fmn={components:{AppIcon:Ue},props:{title:{type:String,default:null},isEmpty:{type:Boolean,default:!1},edit:{type:String,default:null}},methods:{openSideEdit(){this.$store.dispatch("sidebar/open",{type:"product-update",data:this.edit})}}},zmn={class:"medium text-gray-800"},Umn={key:0},Bmn={key:0},Hmn={key:1};function Vmn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return h(),g("div",null,[c("div",zmn,[n.edit?xe((h(),g("span",{key:1,class:"text-gray-800 cursor-pointer text-decoration-underline-hover",onClick:t[0]||(t[0]=(...l)=>r.openSideEdit&&r.openSideEdit(...l))},[z(m(n.title)+" ",1),b(s,{icon:"edit",class:"ms-2 text-primary",height:"20",width:"20"})])),[[a,{content:e.$t("administration.product.detail.control.edit"),delay:{show:500,hide:100},triggers:["hover"]}]]):(h(),g("span",Umn,m(n.title),1))]),n.isEmpty?(h(),g("span",Bmn,m(e.$t("public.dash")),1)):(h(),g("div",Hmn,[Pt(e.$slots,"data")]))])}const z6=U(Fmn,[["render",Vmn]]),qmn={components:{DataBox:z6},props:{product:Object},data(){return{moment:mt}}},Ymn={class:"fw-bold mb-4"},Wmn={class:"d-flex"};function Gmn(e,t,n,o,i,r){const s=y("DataBox");return h(),g("div",null,[c("h5",Ymn,m(e.$t("administration.product.detail.general.title")),1),c("div",Wmn,[b(s,{title:e.$t("administration.product.detail.general.created_at"),class:"me-6"},{data:F(()=>[z(m(n.product.created_at),1)]),_:1},8,["title"]),b(s,{title:e.$t("administration.product.detail.general.approved_at"),class:"me-6",edit:"approved_at"},{data:F(()=>[z(m(n.product.approved_at?i.moment(n.product.approved_at).format("DD. MM. YYYY"):e.$t("public.dash")),1)]),_:1},8,["title"]),b(s,{title:e.$t("administration.product.detail.general.price"),class:"me-6"},{data:F(()=>[z(m(n.product.price_brutto+" "+e.$t("currency.short")),1)]),_:1},8,["title"]),b(s,{title:e.$t("administration.product.detail.general.price_netto"),class:"me-6"},{data:F(()=>[z(m(n.product.price+" "+e.$t("currency.short")),1)]),_:1},8,["title"]),b(s,{title:e.$t("administration.product.detail.general.vat"),class:"me-6",edit:"vat_with_type"},{data:F(()=>[z(m(n.product.vat.name),1)]),_:1},8,["title"])])])}const Zmn=U(qmn,[["render",Gmn]]);let fce=jo.pagination.per_page;const Kmn=e=>De.get(Pe("administration.api.product.show",e)),Jmn=(e,t)=>De.put(Pe("administration.api.product.save_draft",{product:e}),t),Xmn=(e,t)=>De.patch(Pe("administration.api.product.publish",{product:e}),t),Qmn=(e,t=fce)=>De.get(Pe("administration.api.product.list",{...e,perPage:100})),epn=()=>De.get(Pe("administration.api.product.open.count")),tpn=e=>De.get(Pe("administration.api.product.detail",e)),npn=(e,t)=>De.patch(Pe("administration.api.product.update.status",e),t),opn=e=>De.patch(Pe("administration.api.product.toggleHide",e)),ipn=(e,t,n)=>De.put(Pe("administration.api.product.update.admin",e),{productUpdated:t,onlyCategories:n}),rpn=(e,t)=>De.patch(Pe("administration.api.product.update.admin_note",e),{admin_note:t}),spn=e=>De.patch(Pe("administration.api.product.categories_vat_modifiable.toggle",e)),apn=(e,t)=>De.patch(Pe("api.product.destroy",e),{deleted_reason:t}),lpn=e=>De.patch(Pe("api.product.restore",e)),cpn=(e,t,n=fce)=>De.post(Pe("administration.api.product.detail.logs",e),{...t,perPage:n}),dpn=e=>De.patch(Pe("administration.api.product.recommend",e)),upn=e=>De.patch(Pe("administration.api.product.recommend.remove",e)),hpn=e=>De.patch(Pe("administration.api.product.toggle.worthy",e)),Xr={show:Kmn,saveDraft:Jmn,publish:Xmn,list:Qmn,openCount:epn,detail:tpn,updateStatus:npn,toggleHide:opn,update:ipn,updateAdminNote:rpn,categoriesVatModifiableToggle:spn,restore:lpn,remove:apn,logs:cpn,recommend:dpn,removeRecommend:upn,toggleWorthy:hpn},fpn={components:{DataBox:z6,AppIcon:Ue},props:{product:{type:Object,default:()=>({categories:[]})}},computed:{classes(){return this.productModel.categories&&this.productModel.categories.length?this.productModel.categories.filter(e=>e.type=="class"):[]},subjects(){return this.productModel.categories&&this.productModel.categories.length?this.productModel.categories.filter(e=>e.type=="subject"):[]},themes(){return this.productModel.categories&&this.productModel.categories.length?this.productModel.categories.filter(e=>e.type=="theme"):[]},kinds(){return this.productModel.categories&&this.productModel.categories.length?this.productModel.categories.filter(e=>e.type=="kind"):[]},formats(){return this.productModel.categories&&this.productModel.categories.length?this.productModel.categories.filter(e=>e.type=="format"):[]},holiday(){return this.productModel.categories&&this.productModel.categories.length?this.productModel.categories.filter(e=>e.type=="holiday"):[]},productModel:{get(){return this.product},set(e){this.$emit("update:product",e)}}},methods:{categoriesVatModifiableToggle(){Xr.categoriesVatModifiableToggle(this.productModel.id).then(e=>{this.productModel.categories_vat_modifiable=e.data.categories_vat_modifiable,window.flash(e.data.message,"success")})}}},mpn={class:"d-flex align-items-center flex-wrap mb-4"},ppn={class:"fw-bold mb-0"},gpn={class:"d-flex"};function vpn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("DataBox"),l=an("tooltip");return h(),g("div",null,[c("div",mpn,[c("h5",ppn,m(e.$t("administration.product.detail.category.title")),1),xe(b(s,{icon:n.product.categories_vat_modifiable?"unlock":"lock",height:"20",width:"20",class:J(["ms-icon cursor-pointer",n.product.categories_vat_modifiable?"text-gray-500":"text-gray-900"]),onClick:r.categoriesVatModifiableToggle},null,8,["icon","class","onClick"]),[[l,{content:n.product.categories_vat_modifiable?e.$t("public.lock"):e.$t("public.unlock"),triggers:["hover","click"]}]])]),c("div",gpn,[b(a,{title:e.$t("administration.product.detail.category.class"),"is-empty":r.classes&&r.classes.length<=0,class:"me-6",edit:"category"},{data:F(()=>[(h(!0),g(pe,null,Me(r.classes,(d,u)=>(h(),g("span",{key:u},m(d.name+(u!==r.classes.length-1?", ":"")),1))),128))]),_:1},8,["title","is-empty"]),b(a,{title:e.$t("administration.product.detail.category.subjects"),"is-empty":r.subjects&&r.subjects.length<=0,class:"me-6",edit:"category"},{data:F(()=>[(h(!0),g(pe,null,Me(r.subjects,(d,u)=>(h(),g("span",{key:u},m(d.name+(u!==r.subjects.length-1?", ":"")),1))),128))]),_:1},8,["title","is-empty"]),b(a,{title:e.$t("administration.product.detail.category.theme"),"is-empty":r.themes&&r.themes.length<=0,class:"me-6",edit:"category"},{data:F(()=>[(h(!0),g(pe,null,Me(r.themes,(d,u)=>(h(),g("span",{key:u},m(d.name+(u!==r.themes.length-1?", ":"")),1))),128))]),_:1},8,["title","is-empty"]),b(a,{title:e.$t("administration.product.detail.category.kind"),"is-empty":r.kinds&&r.kinds.length<=0,class:"me-6",edit:"category"},{data:F(()=>[(h(!0),g(pe,null,Me(r.kinds,(d,u)=>(h(),g("span",{key:u},m(d.name+(u!==r.kinds.length-1?", ":"")),1))),128))]),_:1},8,["title","is-empty"]),b(a,{title:e.$t("administration.product.detail.category.format"),"is-empty":r.formats&&r.formats.length<=0,class:"me-6",edit:"category"},{data:F(()=>[(h(!0),g(pe,null,Me(r.formats,(d,u)=>(h(),g("span",{key:u},m(d.name+(u!==r.formats.length-1?", ":"")),1))),128))]),_:1},8,["title","is-empty"]),b(a,{title:e.$t("administration.product.detail.category.holiday"),"is-empty":r.holiday&&r.holiday.length<=0,class:"me-6",edit:"category"},{data:F(()=>[(h(!0),g(pe,null,Me(r.holiday,(d,u)=>(h(),g("span",{key:u},m(d.name+(u!==r.holiday.length-1?", ":"")),1))),128))]),_:1},8,["title","is-empty"])])])}const _pn=U(fpn,[["render",vpn]]),ypn={props:{imageSources:Array,hasAlsoOriginalImages:Boolean,hasNoImages:Boolean,displayHeadline:{type:Boolean,default(){return!0}}}},bpn={class:"d-flex flex-wrap align-items-center justify-content-start justify-content-md-end small gap-2 align-items-baseline"},kpn={key:0,class:"text-gray-600"},wpn=["href"],$pn={key:1,class:"cursor-default d-inline-block"},Cpn={key:1,class:"small bg-gray-300 text-gray-800 rounded-pill mt-0 py-1 px-3"},Spn={key:2,class:"small bg-gray-300 text-gray-800 rounded-pill mt-0 py-1 px-3"};function Tpn(e,t,n,o,i,r){return h(),g("div",bpn,[n.displayHeadline?(h(),g("span",kpn,m(e.$t("user.image_sources")),1)):D("",!0),(h(!0),g(pe,null,Me(n.imageSources,(s,a)=>(h(),g("div",{key:a,class:"small bg-gray-300 text-gray-800 rounded-pill mt-0 py-1 px-3"},[s.name&&s.link?(h(),g("a",{key:0,target:"_blank",href:s.link,rel:"nofollow",class:"text-gray-800 d-inline-block text-decoration-none"},m(s.name),9,wpn)):(h(),g("span",$pn,m(s.name),1))]))),128)),n.hasAlsoOriginalImages?(h(),g("div",Cpn,m(e.$t("user.own_images")),1)):D("",!0),n.hasNoImages?(h(),g("div",Spn,m(e.$t("user.has_no_images")),1)):D("",!0)])}const mce=U(ypn,[["render",Tpn]]),Epn={components:{ImageSourcesDisplay:mce,DataBox:z6},props:{product:{type:Object,default:()=>({files:[],file_type:[],image_sources:[]})}},computed:{fileSize(){return this.product.file_size?this.product.file_size:"–"},fileImagesEmpty(){return!this.product.has_no_images&&!this.product.has_also_original_images&&this.product.image_sources&&!this.product.image_sources.length}}},Ipn={class:"fw-bold mb-4"},Ppn={class:"d-flex"},Apn=["href"];function Dpn(e,t,n,o,i,r){const s=y("DataBox"),a=y("ImageSourcesDisplay");return h(),g("div",null,[c("h5",Ipn,m(e.$t("administration.product.detail.file.title")),1),c("div",Ppn,[b(s,{title:e.$t("administration.product.detail.file.name"),"is-empty":n.product.files.length<=0,class:"me-6",edit:"file"},{data:F(()=>[n.product.files[0]?(h(),g("a",{key:0,href:e.ziggyRoute("product.download_files",{product:n.product.id,file:n.product.files[0].id})},m(n.product.files[0].name),9,Apn)):D("",!0)]),_:1},8,["title","is-empty"]),b(s,{title:e.$t("administration.product.detail.file.type"),"is-empty":!n.product.file_type,class:"me-6",edit:"fileType"},{data:F(()=>[(h(!0),g(pe,null,Me(n.product.file_type,(l,d)=>(h(),g("span",{key:d},[z(m(l)+" ",1),c("span",{class:J({"d-none":d==n.product.file_type.length-1})},m(","),2)]))),128))]),_:1},8,["title","is-empty"]),b(s,{title:e.$t("administration.product.detail.file.pages"),class:"me-6"},{data:F(()=>[z(m((n.product.pages?n.product.pages:"–")+" | "+r.fileSize),1)]),_:1},8,["title"]),b(s,{title:e.$t("administration.product.detail.file.images"),class:"me-6",edit:"imageSources","is-empty":r.fileImagesEmpty},{data:F(()=>[b(a,{"image-sources":n.product.image_sources,"has-also-original-images":n.product.has_also_original_images,"has-no-images":n.product.has_no_images,"display-headline":!1,class:"mt-1"},null,8,["image-sources","has-also-original-images","has-no-images"])]),_:1},8,["title","is-empty"])])])}const xpn=U(Epn,[["render",Dpn]]),Opn={components:{DataBox:z6},props:{product:Object}},Lpn={class:"fw-bold mb-4"},Mpn={class:"d-flex"};function Npn(e,t,n,o,i,r){const s=y("DataBox");return h(),g("div",null,[c("h5",Lpn,m(e.$t("administration.product.detail.stats.title")),1),c("div",Mpn,[b(s,{title:e.$t("administration.product.detail.stats.sells"),class:"me-6"},{data:F(()=>[z(m(n.product.sells+"x"),1)]),_:1},8,["title"]),b(s,{title:e.$t("administration.product.detail.stats.favorites"),class:"me-6"},{data:F(()=>[z(m(n.product.wishlist_count),1)]),_:1},8,["title"]),b(s,{title:e.$t("administration.product.detail.stats.ratings"),class:"me-6"},{data:F(()=>[z(m(n.product.ratings.length),1)]),_:1},8,["title"])])])}const Rpn=U(Opn,[["render",Npn]]),jpn={props:{product:Object}},Fpn={class:"row"},zpn={class:"col-6"},Upn=["src"],Bpn={class:"col-6"},Hpn={class:"row"},Vpn={class:"row h-100"},qpn=["src"];function Ypn(e,t,n,o,i,r){return h(),g("div",Fpn,[c("div",zpn,[n.product.cover_img_detail?(h(),g("img",{key:0,src:n.product.cover_img_detail,class:"img-fluid"},null,8,Upn)):D("",!0)]),c("div",Bpn,[c("div",Hpn,[(h(!0),g(pe,null,Me(n.product.images,(s,a)=>(h(),g("div",{class:"col-6 mb-3",key:a},[c("div",Vpn,[c("img",{src:s.thumbnail,class:"object-fit-cover"},null,8,qpn)])]))),128))])])])}const Wpn=U(jpn,[["render",Ypn]]),GT=5,Gpn={components:{AppIcon:Ue},props:{note:String,padding:{type:String,default:"4"},isProductNote:{type:Boolean,default:!1}},data(){return{newLineCountToHide:GT}},methods:{openNote(){this.$emit("open")},change(e){e?this.newLineCountToHide=Number.MAX_SAFE_INTEGER:this.newLineCountToHide=GT}},computed:{numberOfNewLines(){return(String(this.note).match(/\n/g)||"").length+1},showButton(){return this.numberOfNewLines>GT},hidePartOfNote(){return this.numberOfNewLines>this.newLineCountToHide}}},Zpn={class:"d-flex justify-content-between align-items-center"},Kpn={class:"fw-bold"},Jpn={class:"small text-gray-700",style:{"white-space":"pre-line"}},Xpn={key:1,class:"d-flex justify-content-center mt-3 flex-wrap"};function Qpn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",{class:J(["border-radius-5px",["p-"+n.padding,n.isProductNote?"shadow-mid":"border"]])},[c("div",Zpn,[c("span",Kpn,m(e.$t("administration.comment.title")),1),n.isProductNote?Pt(e.$slots,"isWorthyButton",{key:0}):D("",!0),c("button",{class:"btn btn-sm btn-center btn-tertiary",onClick:t[0]||(t[0]=(...a)=>r.openNote&&r.openNote(...a))},[z(m(n.note?e.$t("administration.edit"):e.$t("administration.add"))+" ",1),b(s,{icon:n.note?"edit":"plus-circle",class:"ms-icon",height:"20",width:"20"},null,8,["icon"])])]),n.note?(h(),g("div",{key:0,class:J(["overflow-hidden maxh-6dot25rem",{"maxh-none":!r.hidePartOfNote}])},[c("div",Jpn,m(n.note),1)],2)):D("",!0),r.showButton?(h(),g("div",Xpn,[r.hidePartOfNote?(h(),g("button",{key:0,class:"btn btn-sm btn-tertiary",onClick:t[1]||(t[1]=a=>r.change(!0))},m(e.$t("administration.comment.show_full")),1)):(h(),g("button",{key:1,class:"btn btn-sm btn-tertiary",onClick:t[2]||(t[2]=a=>r.change(!1))},m(e.$t("administration.comment.hide_full")),1))])):D("",!0)],2)}const pce=U(Gpn,[["render",Qpn]]);const e1n={components:{AppIcon:Ue},props:{isWorthy:{type:Boolean,default:!1},hasBorder:{type:Boolean,default:!1}},methods:{toggleWorthy(){this.loading||this.$emit("change")}},computed:{...Oe({loading:"administrationProduct/getWorthyLoading"})}};function t1n(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return h(),g("span",null,[xe((h(),g("button",{class:J(["btn btn-sm btn-is-worthy",[n.isWorthy?"is-worthy":"is-not-worthy",n.hasBorder?"is-worthy-border":""]]),onClick:t[0]||(t[0]=(...l)=>r.toggleWorthy&&r.toggleWorthy(...l))},[b(s,{icon:"star",height:"24",width:"24"})],2)),[[a,{content:e.$t("product.worthy_product"),triggers:["hover","click"]}]])])}const gce=U(e1n,[["render",t1n],["__scopeId","data-v-82682c8b"]]),n1n={components:{ProductIsWorthyButton:gce,AdminNote:pce},props:{product:Object},methods:{open(){this.$store.commit("administrationProduct/setDetail",this.product),this.$store.dispatch("sidebar/open",{type:"product-admin-note-update"})},changeIsWorthy(){this.$store.dispatch("administrationProduct/toggleWorthy",{id:this.product.id,isWorthy:!this.product.is_worthy})}}};function o1n(e,t,n,o,i,r){const s=y("ProductIsWorthyButton"),a=y("AdminNote");return h(),W(a,{note:n.product.admin_note,onOpen:r.open,"is-product-note":""},{isWorthyButton:F(()=>[b(s,{class:"border-start","is-worthy":n.product.is_worthy,onChange:r.changeIsWorthy},null,8,["is-worthy","onChange"])]),_:1},8,["note","onOpen"])}const i1n=U(n1n,[["render",o1n]]),r1n={components:{Loading:Rt,ProductDetailBasic:jmn,ProductControl:dce,ProductDetailGeneral:Zmn,ProductDetailCategories:_pn,ProductDetailFile:xpn,ProductDetailStats:Rpn,ProductDetailGallery:Wpn,ProductAdminNote:i1n},props:{id:Number},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({loading:"administrationProduct/getLoading",product:"administrationProduct/getDetail"})}},s1n={class:"vl-parent"},a1n={key:0},l1n={class:"d-flex justify-content-between align-items-top mb-5"},c1n={class:"mt-3"},d1n={class:"bg-white shadow-mid border-radius-5px mb-5"};function u1n(e,t,n,o,i,r){const s=y("Loading"),a=y("ProductDetailBasic"),l=y("ProductControl"),d=y("ProductAdminNote"),u=y("ProductDetailGeneral"),f=y("ProductDetailCategories"),p=y("ProductDetailFile"),v=y("ProductDetailStats"),_=y("ProductDetailGallery");return h(),g("div",s1n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=k=>e.loading=k),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.loading?D("",!0):(h(),g("div",a1n,[c("div",l1n,[b(a,{product:e.product,class:"mt-3"},null,8,["product"]),c("div",c1n,[b(l,{product:e.product,class:"bg-white shadow-mid p-4 border-radius-5px"},null,8,["product"]),b(d,{product:e.product,class:"mt-3"},null,8,["product"])])]),c("div",d1n,[b(u,{product:e.product,class:"p-4 border-bottom"},null,8,["product"]),b(f,{product:e.product,class:"p-4 border-bottom"},null,8,["product"]),b(p,{product:e.product,class:"p-4 border-bottom"},null,8,["product"]),b(v,{product:e.product,class:"p-4"},null,8,["product"])]),b(_,{product:e.product},null,8,["product"])]))])}const h1n=U(r1n,[["render",u1n]]),f1n={components:{Pill:Ni},props:{type:String},data(){return{types:ja.log.type}}};function m1n(e,t,n,o,i,r){const s=y("Pill");return h(),W(s,{color:i.types[n.type].color},{default:F(()=>[z(m(e.$tm("administration.product.detail.log.type")[n.type]),1)]),_:1},8,["color"])}const p1n=U(f1n,[["render",m1n]]),g1n={components:{TableSearchWithQuery:tr},props:{id:Number,page:Number,query:{type:Object,default(){return{page:1,search:null,date:null,type:null}}}},data(){return{filters:{search:{placeholder:this.$t("administration.product.detail.log.search"),value:null},date:{placeholder:this.$t("administration.product.detail.log.date"),name:"created_at",value:null},checkboxes:[{name:"type",title:this.$t("administration.product.detail.log.filter.type"),options:this.$tm("administration.product.detail.log.type"),checked:[]}]}}},computed:{pageModel:{get(){return this.page},set(e){this.$emit("update:page",e)}}},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationProductLog/list",{id:this.id,filters:this.filterValues()})},filterValues(){return jo.filterValues(this.filters,this.page)}}};function v1n(e,t,n,o,i,r){const s=y("TableSearchWithQuery");return h(),g("div",null,[b(s,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,page:r.pageModel,"onUpdate:page":t[0]||(t[0]=a=>r.pageModel=a),loading:!1},null,8,["filters","query","onChangeFilter","page"])])}const _1n=U(g1n,[["render",v1n]]),y1n={components:{FlexTableHead:ti,FlexTableRow:ni,Bootstrap5Pagination:Ri,ProductLogType:p1n,UserBlockDropdown:Nl,Loading:Rt,ProductLogSearch:_1n,AppIcon:Ue},props:{id:Number,query:Object},data(){return{moment:mt,primaryColor:window.primaryColor,page:1,stripHTML:Z3.stripHTML}},computed:{...Oe({loading:"administrationProductLog/getLoading",list:"administrationProductLog/getList"})},methods:{setPage(e){this.page=e}}},b1n={class:"vl-parent mh-8"},k1n={class:"col-12 col-md-1 text-truncate"},w1n={class:"col-12 col-md-2 text-truncate"},$1n={class:"col-12 col-md-3 text-truncate"},C1n={class:"col-12 col-md-6 text-truncate"},S1n={key:0},T1n={class:"text-center mt-4"},E1n={class:"col-12 col-md-1"},I1n={class:"col-12 col-md-2"},P1n={class:"col-12 col-md-3 d-flex"},A1n={class:"col-12 col-md-6"},D1n=["innerHTML"];function x1n(e,t,n,o,i,r){const s=y("Loading"),a=y("ProductLogSearch"),l=y("FlexTableHead"),d=y("ProductLogType"),u=y("UserBlockDropdown"),f=y("AppIcon"),p=y("FlexTableRow"),v=y("Bootstrap5Pagination"),_=an("tooltip");return h(),g("div",b1n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=k=>e.loading=k),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{id:n.id,query:n.query,page:i.page,"onUpdate:page":t[1]||(t[1]=k=>i.page=k),class:"mb-3"},null,8,["id","query","page"]),b(l,null,{default:F(()=>[c("div",k1n,m(e.$t("administration.product.detail.log.date")),1),c("div",w1n,m(e.$t("administration.product.detail.log.log")),1),c("div",$1n,m(e.$t("administration.product.detail.log.participant")),1),c("div",C1n,m(e.$t("administration.product.detail.log.note")),1)]),_:1}),!e.list.data.length||!e.list.data[0]?(h(),g("div",S1n,[c("h4",T1n,m(e.$t("administration.product.detail.log.not_found")),1)])):(h(!0),g(pe,{key:1},Me(e.list.data,(k,C)=>(h(),W(p,{key:C,class:J({"border-none":C==e.list.data.length-1})},{default:F(()=>[c("div",E1n,m(i.moment(k.created_at).format("DD. MM. YYYY")),1),c("div",I1n,[b(d,{type:k.type},null,8,["type"])]),c("div",P1n,[k.created_by?(h(),W(u,{key:0,user:k.created_by},null,8,["user"])):(h(),g(pe,{key:1},[z(m(e.$t("public.dash")),1)],64))]),c("div",A1n,[k.note?(h(),g(pe,{key:0},[c("span",{innerHTML:k.note},null,8,D1n),k.admin_personal_note?xe((h(),W(f,{key:0,icon:"info-circle",class:"ms-icon text-primary"},null,512)),[[_,{content:i.stripHTML(k.admin_personal_note),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0)],64)):(h(),g(pe,{key:1},[z(m(e.$t("public.dash")),1)],64))])]),_:2},1032,["class"]))),128)),e.loading?D("",!0):(h(),W(v,{key:2,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.setPage,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])}const O1n=U(y1n,[["render",x1n]]),L1n={components:{ProductLogTable:O1n},props:{id:Number,query:Object}};function M1n(e,t,n,o,i,r){const s=y("ProductLogTable");return h(),g("div",null,[b(s,{id:n.id,query:n.query},null,8,["id","query"])])}const N1n=U(L1n,[["render",M1n]]),R1n={components:{AppIcon:Ue},methods:{openSidePanel(){this.$store.dispatch("sidebar/open",{type:"complaint-note-add"})}}};function j1n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-sm btn-tertiary mx-1",onClick:t[0]||(t[0]=(...a)=>r.openSidePanel&&r.openSidePanel(...a))},[z(m(e.$t("administration.product.complaint.header.add_note"))+" ",1),b(s,{icon:"plus-circle",class:"ms-icon"})])}const F1n=U(R1n,[["render",j1n]]),z1n={components:{AppIcon:Ue},methods:{openSidePanel(){this.$store.dispatch("sidebar/open",{type:"complaint-resolve"})}}};function U1n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-sm btn-primary mx-1",onClick:t[0]||(t[0]=(...a)=>r.openSidePanel&&r.openSidePanel(...a))},[z(m(e.$t("administration.product.complaint.header.solve"))+" ",1),b(s,{icon:"check-circle",class:"ms-icon"})])}const B1n=U(z1n,[["render",U1n]]),H1n={components:{DownloadButton:hce,DetailHeader:F6,ProductComplaintAddNoteButton:F1n,ProductComplaintResolutionButton:B1n},computed:{...Oe({complaint:"administrationProductComplaint/getDetail",backPath:"administrationSiteNavigation/getBackPath"})},mounted(){this.backPath||this.$store.dispatch("administrationSiteNavigation/setBackPath",{path:this.$router.resolve({name:"administration/product/list"}).href})}};function V1n(e,t,n,o,i,r){const s=y("DownloadButton"),a=y("ProductComplaintAddNoteButton"),l=y("ProductComplaintResolutionButton"),d=y("DetailHeader");return h(),W(d,{"back-button-path":e.backPath},{title:F(()=>[z(m(e.$t("administration.product.complaint.header.title")),1)]),buttons:F(()=>[e.complaint?(h(),W(s,{key:0,"product-id":e.complaint.product.id,"use-class":"btn btn-sm btn-tertiary","text-first":"",class:"mx-1",disabled:e.complaint.product.status===5||e.complaint.product.files.length<=0},{"button-text":F(()=>[z(m(e.$t("administration.product.detail.header.download")),1)]),_:1},8,["product-id","disabled"])):D("",!0),b(a),b(l)]),_:1},8,["back-button-path"])}const q1n=U(H1n,[["render",V1n]]),Y1n={components:{AppIcon:Ue},props:{text:{type:String,default:null},iconMargin:{type:String,default:"1"}},data(){return{copied:!1}},methods:{copy(){this.copied=!0,this.$copyText(this.text),setTimeout(()=>{this.copied=!1},2e3)}}};function W1n(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return xe((h(),g("span",{onClick:t[0]||(t[0]=(...l)=>r.copy&&r.copy(...l)),class:"cursor-pointer d-flex align-items-center"},[z(m(n.text)+" ",1),i.copied?(h(),W(s,{key:1,icon:"check",class:J(["ms-"+n.iconMargin])},null,8,["class"])):(h(),W(s,{key:0,icon:"copy",class:J(["ms-"+n.iconMargin])},null,8,["class"]))])),[[a,{content:e.$t("public.copy")+": "+n.text,delay:{show:500,hide:100},triggers:["hover","click"]}]])}const G1n=U(Y1n,[["render",W1n]]),Z1n={components:{AppIcon:Ue,ProductComplaintStatus:uce,CopyText:G1n,UserBlock:fM},props:{complaint:{type:Object,default:()=>({})}},data(){return{moment:mt}},methods:{messageCustomer(){this.$store.dispatch("sidebar/open",{type:"complaint-message",data:"customer"})},messageAuthor(){this.$store.dispatch("sidebar/open",{type:"complaint-message",data:"author"})}}},K1n={class:"bg-primary-5 p-4 medium"},J1n={class:"d-flex justify-content-between"},X1n={class:"d-flex align-items-center"},Q1n={class:"text-gray-900 d-inline fw-bold"},egn={class:"mb-4"},tgn={class:"text-gray-600 mb-0"},ngn={class:"mb-0"},ogn={class:"text-gray-600 mb-0"},ign={class:"mb-0"},rgn={class:"mb-2"},sgn={class:"text-gray-600 mb-1"},agn={class:"d-flex bg-white rounded p-3"},lgn=["src"],cgn={class:"flex-grow-1"},dgn={class:"mb-0 fw-bold"},ugn={class:"mb-0 small text-gray-600"},hgn={class:"text-gray-900"},fgn={class:"mb-0 small text-gray-600"},mgn={class:"text-gray-900"},pgn={class:"mb-0 small text-gray-600"},ggn={class:"text-gray-900"},vgn={class:"mb-2"},_gn={class:"text-gray-600 mb-1"},ygn={class:"bg-white rounded p-3 d-flex justify-content-between align-items-center"},bgn={class:"text-gray-600 mb-1"},kgn={class:"bg-white rounded p-3 d-flex justify-content-between align-items-center"};function wgn(e,t,n,o,i,r){const s=y("CopyText"),a=y("ProductComplaintStatus"),l=y("router-link"),d=y("UserBlock"),u=y("AppIcon"),f=an("tooltip");return h(),g("div",K1n,[c("div",J1n,[c("div",X1n,[c("h4",Q1n,m(e.$t("administration.product.complaint.info.title")),1),b(s,{text:String(n.complaint.id),class:"h4 text-decoration-underline d-inline fw-bold ms-1","icon-margin":"2"},null,8,["text"])]),c("div",null,[b(a,{status:e.$tm("complaints.states")[n.complaint.state]},null,8,["status"])])]),t[6]||(t[6]=c("hr",{class:"my-3"},null,-1)),c("div",egn,[c("p",tgn,m(e.$t("administration.product.complaint.info.reason")),1),c("p",ngn,m(e.$tm("complaints.types")[n.complaint.type].short),1)]),c("div",null,[c("p",ogn,m(e.$t("administration.product.complaint.info.note")),1),c("p",ign,m(n.complaint.note_customer),1)]),t[7]||(t[7]=c("hr",{class:"my-3"},null,-1)),c("div",rgn,[c("p",sgn,m(e.$t("administration.product.complaint.info.product.title")),1),c("div",agn,[b(l,{to:{name:"administration/product/detail",params:{id:n.complaint.product.id}},class:"link-dark",onClickCapture:t[0]||(t[0]=p=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},{default:F(()=>[c("img",{src:n.complaint.product.cover_img_thumbnail,alt:"",width:"87",height:"87",class:"border-radius-5px me-2"},null,8,lgn)]),_:1},8,["to"]),c("div",cgn,[b(l,{to:{name:"administration/product/detail",params:{id:n.complaint.product.id}},class:"link-dark text-decoration-underline-hover",onClickCapture:t[1]||(t[1]=p=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},{default:F(()=>[c("p",dgn,m(n.complaint.product.title),1)]),_:1},8,["to"]),c("p",ugn,[z(m(e.$t("administration.product.complaint.info.product.created_at")+":")+" ",1),c("span",hgn,m(i.moment(n.complaint.product.created_at).format("DD. MM. YYYY")),1)]),c("p",fgn,[z(m(e.$t("administration.product.complaint.info.product.price")+":")+" ",1),c("span",mgn,m(n.complaint.product.price_brutto+" "+e.$t("currency.short")),1)]),c("p",pgn,[z(m(e.$t("administration.product.complaint.info.product.complaints")+":")+" ",1),c("span",ggn,m(n.complaint.product.complaints.length),1)])])])]),c("div",vgn,[c("p",_gn,m(e.$t("administration.product.complaint.info.customer")),1),c("div",ygn,[b(d,{user:n.complaint.customer,onClickCapture:t[2]||(t[2]=p=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},null,8,["user"]),xe((h(),g("div",{class:"p-2 cursor-pointer",onClick:t[3]||(t[3]=Gt((...p)=>r.messageCustomer&&r.messageCustomer(...p),["stop","prevent"]))},[b(u,{icon:"message",class:"text-primary",size:1.5})])),[[f,{content:e.$t("messenger.create_message"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])]),c("div",null,[c("p",bgn,m(e.$t("administration.product.complaint.info.author")),1),c("div",kgn,[b(d,{user:n.complaint.product.author,onClickCapture:t[4]||(t[4]=p=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},null,8,["user"]),xe((h(),g("div",{class:"p-2 cursor-pointer",onClick:t[5]||(t[5]=Gt((...p)=>r.messageAuthor&&r.messageAuthor(...p),["stop","prevent"]))},[b(u,{icon:"message",class:"text-primary",size:1.5})])),[[f,{content:e.$t("messenger.create_message"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])])])}const $gn=U(Z1n,[["render",wgn]]),Cgn={components:{FlexTableHead:ti,FlexTableRow:ni},props:{logs:Array},data(){return{moment:mt}}},Sgn={class:"col-3"},Tgn={class:"col-9"},Egn={class:"col-3"},Ign={class:"col-9"},Pgn={class:"medium mb-0"},Agn={class:"fw-bold"},Dgn={key:0,class:"small text-gray-800"},xgn=["innerHTML"];function Ogn(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("FlexTableRow");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",Sgn,m(e.$t("administration.product.complaint.log.date")),1),c("div",Tgn,m(e.$t("administration.product.complaint.log.action")),1)]),_:1}),(h(!0),g(pe,null,Me(n.logs,(l,d)=>(h(),W(a,{key:d,class:J({"pb-0":l.note,"border-none":d==n.logs.length-1})},{default:F(()=>[c("div",Egn,m(i.moment(l.created_at).format("DD. MM. YYYY")),1),c("div",Ign,[c("p",Pgn,[c("span",Agn,m(e.$tm("complaints.states")[l.state]),1)]),l.is_only_for_admin?D("",!0):(h(),g("span",Dgn,m(e.$tm("complaints.logs.prefix")[l.state]),1)),c("span",{class:"small text-gray-800",innerHTML:l.note},null,8,xgn)])]),_:2},1032,["class"]))),128))])}const Lgn=U(Cgn,[["render",Ogn]]),Mgn={components:{ProductComplaintDetailHeader:q1n,ProductComplaintDetailInfo:$gn,ProductComplaintDetailLogs:Lgn,Loading:Rt},props:{id:Number},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({complaint:"administrationProductComplaint/getDetail",loading:"administrationProductComplaint/getLoading"})},methods:{loadComplaint(){this.$store.dispatch("administrationProductComplaint/detail",{id:this.id})}},mounted(){this.loadComplaint()}},Ngn={class:"vl-parent mh-4rem"},Rgn={key:1,class:"row"},jgn={class:"col-6 ps-0"},Fgn={class:"col-6 pe-0"};function zgn(e,t,n,o,i,r){const s=y("ProductComplaintDetailHeader"),a=y("Loading"),l=y("ProductComplaintDetailInfo"),d=y("ProductComplaintDetailLogs");return h(),g("div",null,[b(s,{loading:e.loading,class:"mb-5"},null,8,["loading"]),c("div",Ngn,[e.loading?(h(),W(a,{key:0,active:e.loading,"onUpdate:active":t[0]||(t[0]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])):e.complaint?(h(),g("div",Rgn,[c("div",jgn,[b(l,{complaint:e.complaint,loading:e.loading,class:"border-radius-5px"},null,8,["complaint","loading"])]),c("div",Fgn,[b(d,{logs:e.complaint.logs,loading:e.loading},null,8,["logs","loading"])])])):D("",!0)])])}const Ugn=U(Mgn,[["render",zgn]]),Bgn={props:{user:{type:Object,required:!0},disabled:{type:Boolean,default:!1},isFromTable:{type:Boolean,default:!1}},methods:{activate(){this.$store.dispatch("sidebar/open",{type:"user-activate",data:{user:this.user,isFromTable:this.isFromTable}})}}};function Hgn(e,t,n,o,i,r){return h(),g("button",{class:J(["btn btn-primary btn-sm",{disabled:n.disabled}]),onClick:t[0]||(t[0]=Gt((...s)=>r.activate&&r.activate(...s),["prevent"]))},m(e.$t("public.activate")),3)}const vce=U(Bgn,[["render",Hgn]]),Vgn={components:{AppIcon:Ue,TableButton:Za,UserIconRole:cM,Pill:Ni,FlexTableRow:ni,FlexTableHead:ti,Loading:Rt,Bootstrap5Pagination:Ri,UserActivateButton:vce},props:{showLoading:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor,chatLoading:!1,moment:mt}},computed:{...Oe({loading:"administrationUser/getLoading",users:"administrationUser/getUsers"})},methods:{load(){this.$store.dispatch("administrationUser/users")},openSideBarChat(e){this.chatLoading||(e.conversation_id?(this.$store.dispatch("administrationMessages/setConversationId",{conversationId:e.conversation_id}),this.$store.commit("sidebarChat/setChatOpen",!0)):(this.chatLoading=!0,this.$store.dispatch("administrationMessages/findConversation",{userId:e.id}).then(()=>{this.$store.commit("sidebarChat/setChatOpen",!0)}).finally(()=>{this.chatLoading=!1})))}}},qgn={class:"col-12 col-md-1 text-truncate"},Ygn={class:"col-12 col-md-3 text-truncate"},Wgn={class:"col-12 col-md-2 text-truncate"},Ggn={class:"col-12 col-md-1 text-truncate"},Zgn={class:"col-12 col-md-1 text-truncate"},Kgn={class:"col-12 col-md-1 text-truncate"},Jgn={class:"col-12 col-md-1 text-truncate"},Xgn={class:"col-12 col-md-2 text-truncate"},Qgn={key:0},evn={class:"text-center mt-4"},tvn={class:"col-12 col-md-1"},nvn={class:"col-12 col-md-3"},ovn={class:"d-flex"},ivn={class:"text-truncate text-decoration-underline-hover"},rvn={class:"d-flex flex-wrap align-items-center"},svn={class:"small text-truncate text-manatee-gray"},avn={class:"col-12 col-md-2"},lvn={class:"text-truncate"},cvn={class:"small text-truncate text-manatee-gray"},dvn={class:"text-truncate"},uvn={class:"col-12 col-md-1"},hvn={class:"col-12 col-md-1"},fvn={class:"col-12 col-md-1"},mvn={class:"col-12 col-md-1"},pvn={class:"col-12 col-md-1 d-flex justify-content-between gap-2"},gvn=["onClick"],vvn={class:"text-gray-900"};function _vn(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("Loading"),l=y("UserIconRole"),d=y("AppIcon"),u=y("router-link"),f=y("Pill"),p=y("UserActivateButton"),v=y("TableButton"),_=y("FlexTableRow"),k=y("Bootstrap5Pagination"),C=an("tooltip");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",qgn,m(e.$t("administration.users.table.header.id")),1),c("div",Ygn,m(e.$t("administration.users.table.header.name")),1),c("div",Wgn,m(e.$t("administration.users.table.header.school")),1),c("div",Ggn,m(e.$t("administration.users.table.header.credit")),1),c("div",Zgn,m(e.$t("administration.users.table.header.last_login")),1),c("div",Kgn,m(e.$t("administration.users.table.header.last_order")),1),c("div",Jgn,m(e.$t("public.discount")),1),c("div",Xgn,m(e.$t("administration.users.table.header.status")),1)]),_:1}),c("div",{class:J({"vl-parent mh-8":n.showLoading})},[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=$=>e.loading=$),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),!e.users.data.length&&!e.loading?(h(),g("div",Qgn,[c("h4",evn,m(e.$t("administration.users.table.not_found.user")),1)])):(h(!0),g(pe,{key:1},Me(e.users.data,($,E)=>(h(),g("div",{key:E},[b(u,{to:{name:$.role==="author"||$.role==="admin"?"administration/users/detail/author":"administration/users/detail",params:{id:$.id}},class:"link-dark",onClickCapture:t[2]||(t[2]=P=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},{default:F(()=>[b(_,{class:J({"border-none":E==e.users.data.length-1})},{default:F(()=>[c("div",tvn,m($.id),1),c("div",nvn,[c("div",ovn,[b(l,{user:$,class:"me-2"},null,8,["user"]),c("div",ivn,[c("span",rvn,[z(m($.first_name+" "+$.last_name)+" ",1),$.only_on_ucitelnice?(h(),W(d,{key:0,icon:"diamond",width:"16",height:"16",class:"ms-1 text-purple"})):D("",!0),$.merged_into?xe((h(),W(u,{key:1,to:{name:$.role==="author"||$.role==="admin"?"administration/users/detail/author":"administration/users/detail",params:{id:$.merged_into.id}},class:"link-dark",onClickCapture:t[1]||(t[1]=P=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},{default:F(()=>[b(d,{icon:"connected",width:"16",height:"16",class:"ms-1 text-primary"})]),_:2},1032,["to"])),[[C,{content:e.$t("user.account.main.title")+": "+$.merged_into.email,delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0),$.is_organization?(h(),W(f,{key:2,color:"secondary",class:"text-decoration-none ms-1"},{default:F(()=>[z(m(e.$t("author.organization.title")),1)]),_:1})):D("",!0)]),c("div",svn,m($.email),1)])])]),c("div",avn,[$.school?(h(),W(u,{key:0,to:{name:"administration/school/detail",params:{id:$.school.id}},class:"text-decoration-underline-hover link-dark"},{default:F(()=>[c("div",lvn,m($.school.name),1),c("div",cvn,m($.school.type),1)]),_:2},1032,["to"])):(h(),g(pe,{key:1},[c("div",dvn,m(e.$t("public.dash")),1),t[4]||(t[4]=c("div",{class:"small text-truncate text-manatee-gray"},m(""),-1))],64))]),c("div",uvn,m($.credit+" "+e.$t("currency.short")),1),c("div",hvn,m($.last_login??"–"),1),c("div",fvn,m($.last_order??"–"),1),c("div",mvn,m($.discount?i.moment($.discount.valid_from).format("DD.MM")+" - "+i.moment($.discount.valid_to).format("DD.MM.YYYY")+" ("+$.discount.amount+" %)":e.$t("public.dash")),1),c("div",pvn,[$.status==="not_confirmed"?(h(),W(p,{key:0,user:$,"is-from-table":""},null,8,["user"])):D("",!0),$.status==="confirmed"?(h(),W(f,{key:1,color:"success",class:"small py-2"},{default:F(()=>[z(m(e.$t("administration.users.table.item.status.active")),1)]),_:1})):D("",!0),$.status==="blocked"?(h(),W(f,{key:2,color:"muted",class:"small py-2"},{default:F(()=>[z(m(e.$t("administration.users.table.item.status.blocked")),1)]),_:1})):D("",!0),b(v,null,{default:F(()=>[c("button",{class:"d-flex align-items-center dropdown-item medium d-flex align-items-center",onClick:Gt(P=>r.openSideBarChat($),["stop","prevent"])},[i.chatLoading?(h(),W(d,{key:0,icon:"cog",spin:!0,class:"me-2"})):(h(),W(d,{key:1,icon:"message",class:"me-2"})),c("span",vvn,m(e.$t("administration.users.table.item.buttons.write_message")),1)],8,gvn),b(u,{class:"d-flex align-items-center dropdown-item medium",to:{name:"administration/users/detail/finances/payments",params:{id:$.id}}},{default:F(()=>[z(m(e.$t("administration.users.table.item.buttons.transactions")),1)]),_:2},1032,["to"]),b(u,{class:"d-flex align-items-center dropdown-item medium",to:{name:"administration/users/detail/finances/orders",params:{id:$.id}}},{default:F(()=>[z(m(e.$t("administration.users.table.item.buttons.invoices")),1)]),_:2},1032,["to"])]),_:2},1024)])]),_:2},1032,["class"])]),_:2},1032,["to"])]))),128)),e.loading?D("",!0):(h(),W(k,{key:2,class:"mt-4",data:e.users,onPaginationChangePage:t[3]||(t[3]=$=>e.$emit("page",$)),limit:1,align:"center"},null,8,["data"]))],2)])}const yvn=U(Vgn,[["render",_vn]]),bvn={props:{query:{type:Object,default(){return{search:null,roles:null,states:null,school:null,page:1,date:null}}}},components:{TableSearchWithQuery:tr,UsersTable:yvn,Loading:Rt},computed:{...Oe({loading:"administrationUser/getLoading"})},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationUser/users",{filters:this.filterValues()})},changePage(e){this.page=e},filterValues(){return jo.filterValues(this.filters,this.page)}},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.users.search.placeholder"),value:null},date:{placeholder:this.$t("administration.users.search.date_placeholder"),name:"uploaded_at",value:null},checkboxes:[{name:"states",title:this.$t("administration.users.table.filter.state.title"),options:this.$tm("administration.users.table.filter.state.options"),checked:[]},{name:"roles",title:this.$t("administration.users.table.filter.role.title"),options:this.$tm("administration.users.table.filter.role.options"),checked:[]},{name:"school",title:this.$t("administration.users.table.filter.school.title"),options:this.$tm("administration.users.table.filter.school.options"),checked:[]},{name:"tags",title:this.$t("administration.users.table.filter.tags.title"),options:this.$tm("administration.users.table.filter.tags.options"),checked:[]}]}}}},kvn={class:"row mb-6"},wvn={class:"col-12 col-md-4"},$vn={class:"vl-parent"},Cvn={class:"row"},Svn={class:"col-12"},Tvn={class:"col-12 mt-3"};function Evn(e,t,n,o,i,r){const s=y("Loading"),a=y("TableSearchWithQuery"),l=y("UsersTable");return h(),g("div",null,[c("div",kvn,[c("div",wvn,[c("h2",null,m(e.$t("administration.users.title")),1)])]),c("div",null,[c("div",$vn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",Cvn,[c("div",Svn,[b(a,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,page:i.page,"onUpdate:page":t[1]||(t[1]=d=>i.page=d)},null,8,["filters","query","onChangeFilter","page"])]),c("div",Tvn,[b(l,{onPage:r.changePage,"show-loading":!1},null,8,["onPage"])])])])])])}const Ivn=U(bvn,[["render",Evn]]),Pvn={components:{AppIcon:Ue,Pill:Ni},computed:{...Oe({user:"administrationUser/getDetail",loading:"administrationUser/getDetailLoading"})}},Avn={key:0,class:"bg-island-spice border border-radius-5px border-bright-sun-light d-flex justify-content-between px-4 py-3"},Dvn={class:"d-flex gap-3"},xvn={class:"fw-bold"};function Ovn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("Pill"),l=y("router-link");return!e.loading&&e.user.merged_into?(h(),g("div",Avn,[c("div",Dvn,[b(a,{color:"gold"},{default:F(()=>[b(s,{icon:"alert",class:"text-white"}),z(" "+m(e.$t("user.account.merged")),1)]),_:1}),z(" "+m(e.$t("user.account.main.text"))+" ",1),c("span",xvn,m(e.user.merged_into.email),1)]),b(l,{to:{name:e.user.role==="author"||e.user.role==="admin"?"administration/users/detail/author":"administration/users/detail",params:{id:e.user.merged_into.id}},onClickCapture:t[0]||(t[0]=d=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},{default:F(()=>[z(m(e.$t("user.account.main.link")),1)]),_:1},8,["to"])])):D("",!0)}const Lvn=U(Pvn,[["render",Ovn]]),Mvn={},Nvn={class:"rounded d-flex border small"};function Rvn(e,t,n,o,i,r){return h(),g("div",Nvn,[Pt(e.$slots,"default")])}const mM=U(Mvn,[["render",Rvn]]),jvn={},Fvn={class:"p-3"},zvn={class:"d-flex flex-wrap justify-content-between align-items-center"},Uvn={class:"flex-grow-1 large fw-bold me-1"};function Bvn(e,t,n,o,i,r){return h(),g("div",Fvn,[Pt(e.$slots,"label"),c("div",zvn,[c("div",Uvn,[Pt(e.$slots,"text")]),Pt(e.$slots,"item")])])}const pM=U(jvn,[["render",Bvn]]),Hvn={components:{AppIcon:Ue,ButtonDropdown:Eg},props:{label:{type:String,default(){return null}},text:{type:[String,Number],default(){return null}},dropdown:{type:Boolean,default:!0},emptyText:{type:String,default(){return null}}},data(){return{hover:!1,copied:!1}},methods:{copy(){this.copied=!0,this.$copyText(this.text.toString()),setTimeout(()=>{this.copied=!1},2e3)}}},Vvn={class:"d-flex align-items-center flex-wrap"},qvn={key:0,class:"text-gray-600 me-1"},Yvn={key:1,class:"text-decoration-underline-hover cursor-default overflow-wrap-anywhere"},Wvn={key:2,class:"text-decoration-underline-hover cursor-default"};function Gvn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ButtonDropdown");return h(),g("div",{onMouseover:t[2]||(t[2]=l=>i.hover=!0),onMouseleave:t[3]||(t[3]=l=>i.hover=!1)},[b(a,{"menu-align":"end","drop-side":"end"},os({button:F(()=>[c("div",Vvn,[n.label?(h(),g("span",qvn,m(n.label+":"),1)):D("",!0),n.text?(h(),g("span",Yvn,m(n.text),1)):(h(),g("span",Wvn,m(n.emptyText?n.emptyText:e.$t("administration.not_filled")),1)),c("span",{onClick:t[0]||(t[0]=(...l)=>r.copy&&r.copy(...l))},[n.text?xe((h(),W(s,{key:0,icon:"copy",class:"ms-icon cursor-pointer"},null,512)),[[Vo,i.hover&&!i.copied]]):D("",!0)]),xe(b(s,{icon:"check",class:"ms-icon cursor-pointer"},null,512),[[Vo,i.copied]])])]),_:2},[n.dropdown?{name:"dropdown",fn:F(()=>[c("div",null,[n.text?(h(),g("button",{key:0,class:"dropdown-item d-flex align-items-center btn btn-link medium rounded-0",onClick:t[1]||(t[1]=(...l)=>r.copy&&r.copy(...l))},[b(s,{icon:"copy",class:"ms-icon cursor-pointer"}),z(" "+m(e.$t("administration.copy")),1)])):D("",!0),Pt(e.$slots,"buttons")])]),key:"0"}:void 0]),1024)],32)}const _ce=U(Hvn,[["render",Gvn]]),Zvn={components:{AppIcon:Ue,LabelAndTextWithCopyDropdown:_ce},props:{label:{type:String,default(){return null}},text:{type:String,default(){return null}},dropdown:{type:Boolean,default:!0}},methods:{edit(){this.$store.dispatch("sidebar/open",{type:"user-update"})}}};function Kvn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("LabelAndTextWithCopyDropdown");return h(),W(a,{label:n.label,text:n.text,dropdown:n.dropdown},{buttons:F(()=>[c("button",{class:"dropdown-item btn btn-link medium rounded-0",onClick:t[0]||(t[0]=(...l)=>r.edit&&r.edit(...l))},[b(s,{icon:"edit",class:"ms-icon"}),z(" "+m(e.$t("administration.edit")),1)])]),_:1},8,["label","text","dropdown"])}const Jvn=U(Zvn,[["render",Kvn]]),Xvn={methods:{openMerge(){this.$store.dispatch("sidebar/open",{type:"user-merge"})}}};function Qvn(e,t,n,o,i,r){return h(),g("div",{class:"link-primary cursor-pointer",onClick:t[0]||(t[0]=(...s)=>r.openMerge&&r.openMerge(...s))},m(e.$t("user.account.additional.connect")),1)}const e_n=U(Xvn,[["render",Qvn]]),t_n={components:{UserIconRole:cM,TransitionCollapseHeight:qo,CircleButtonWithIconOnly:Ag,UserLabelTextEdit:Jvn,Pill:Ni,UserMerge:e_n,AppIcon:Ue},props:{isOnAuthorPage:{type:Boolean,default:!1}},computed:{...Oe({user:"administrationUser/getDetail"})},data(){return{opened:!1}}},n_n={class:"bg-gray-300 border-radius-5px p-2dot5 d-flex flex-wrap flex-sm-nowrap"},o_n={class:"ms-2 w-100"},i_n={class:"row"},r_n={class:"col-auto"},s_n={class:"d-flex align-items-center mb-2"},a_n={class:"fw-bold mb-0"},l_n={class:"col-auto ms-auto"},c_n={key:1},d_n={class:"text-gray-600"},u_n={key:3},h_n={class:"text-gray-600"},f_n={key:4},m_n={class:"text-gray-600"},p_n={key:5},g_n={class:"text-gray-600"},v_n=["href"],__n={key:1},y_n={key:0,class:"mt-3"},b_n={class:"mb-2"};function k_n(e,t,n,o,i,r){const s=y("UserIconRole"),a=y("AppIcon"),l=y("Pill"),d=y("CircleButtonWithIconOnly"),u=y("UserLabelTextEdit"),f=y("UserMerge"),p=y("router-link"),v=y("TransitionCollapseHeight");return h(),g("div",n_n,[b(s,{class:"profile-img me-1",user:e.user,width:70,height:70,"badge-height":24,"badge-width":24,"border-width":4},null,8,["user"]),c("div",o_n,[c("div",i_n,[c("div",r_n,[c("div",s_n,[c("h5",a_n,m(e.user.first_name+" "+e.user.last_name),1),e.user.only_on_ucitelnice?(h(),W(a,{key:0,icon:"diamond",width:"16",height:"16",class:"ms-1 text-purple"})):D("",!0),e.user.is_organization?(h(),W(l,{key:1,color:"secondary",class:"text-decoration-none ms-1"},{default:F(()=>[z(m(e.$t("author.organization.title")),1)]),_:1})):D("",!0)])]),c("div",l_n,[c("div",{onClick:t[0]||(t[0]=_=>i.opened=!i.opened)},[b(d,{icon:"document",class:J([i.opened?"btn-primary":"btn-secondary"])},null,8,["class"])])])]),b(u,{label:e.$t("administration.users.detail.info.email"),text:e.user.email},null,8,["label","text"]),(h(!0),g(pe,null,Me(e.user.emails.filter(_=>!_.is_primary),(_,k)=>(h(),W(u,{key:k,label:k==0?"PĹ™ipojenĂ© účty":null,text:_.email},null,8,["label","text"]))),128)),e.user.can_be_merged_into?(h(),W(f,{key:0})):D("",!0),e.user.school?(h(),g("div",c_n,[c("span",d_n,m(e.$t("administration.users.detail.info.school")+": "),1),b(p,{to:"/administration/school/detail/"+e.user.school.id,class:"link-dark text-decoration-underline-hover",onClickCapture:t[1]||(t[1]=_=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},{default:F(()=>[z(m(e.user.school.name),1)]),_:1},8,["to"])])):(h(),W(u,{key:2,label:e.$t("administration.users.detail.info.school"),text:null,dropdown:!1},null,8,["label"])),n.isOnAuthorPage?D("",!0):(h(),g("div",u_n,[c("span",h_n,m(e.$t("administration.users.detail.info.product_count.personal")+":"),1),z(" "+m(e.user.products_count),1)])),e.user.school&&!n.isOnAuthorPage?(h(),g("div",f_n,[c("span",m_n,m(e.$t("administration.users.detail.info.product_count.school")+":"),1),z(" "+m(e.user.school.products_count),1)])):D("",!0),n.isOnAuthorPage?(h(),g("div",p_n,[c("span",g_n,m(e.$t("administration.users.detail.info.public_alias")+": "),1),e.user.role=="author"?(h(),g("a",{key:0,href:"/author/"+e.user.id,class:"link-dark text-decoration-underline-hover"},m(e.user.public_alias??e.user.first_name+" "+e.user.last_name),9,v_n)):(h(),g("span",__n,m(e.$t("public.dash")),1))])):D("",!0),b(v,null,{default:F(()=>[i.opened?(h(),g("div",y_n,[c("h5",b_n,m(e.$t("administration.users.detail.info.invoice_info")),1),b(u,{label:e.$t("administration.users.detail.info.company"),text:e.user.invoice_company},null,8,["label","text"]),b(u,{label:e.$t("administration.users.detail.info.address"),text:e.user.invoice_address},null,8,["label","text"]),b(u,{label:e.$t("administration.users.detail.info.city"),text:e.user.invoice_city},null,8,["label","text"]),b(u,{label:e.$t("administration.users.detail.info.postcode"),text:e.user.invoice_postcode},null,8,["label","text"]),b(u,{label:e.$t("administration.users.detail.info.ico"),text:e.user.invoice_ico},null,8,["label","text"]),b(u,{label:e.$t("administration.users.detail.info.dic"),text:e.user.invoice_dic},null,8,["label","text"])])):D("",!0)]),_:1})])])}const yce=U(t_n,[["render",k_n]]),w_n={components:{Loading:Rt},props:{id:Number},data(){return{primaryColor:window.primaryColor}},methods:{openSidePanel(e){this.$store.dispatch("sidebar/open",{type:e})}},computed:{...Oe({loading:"administrationUser/getDetailLoading",user:"administrationUser/getDetail"})}},$_n={class:"vl-parent mt-4",style:{"min-height":"134px"}},C_n={key:0,class:"row align-items-top mb-3 medium"},S_n={class:"col-12 col-lg-5 order-2 order-lg-1"},T_n={class:"col-12 col-lg-6 mb-3 ms-0 ms-lg-auto order-1 order-lg-2"};function E_n(e,t,n,o,i,r){const s=y("Loading");return h(),g("div",$_n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=a=>e.loading=a),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.user.id?(h(),g("div",C_n,[c("div",S_n,[Pt(e.$slots,"info")]),c("div",T_n,[Pt(e.$slots,"stats")])])):D("",!0)])}const bce=U(w_n,[["render",E_n]]),I_n={components:{UserOrAuthorDetailInfo:bce,UserInfoBlock:yce,AppIcon:Ue,StatItem:pM,StatsContainer:mM},props:{id:Number},data(){return{primaryColor:window.primaryColor}},methods:{openSidePanel(e){this.$store.dispatch("sidebar/open",{type:e})}},computed:{...Oe({loading:"administrationUser/getDetailLoading",user:"administrationUser/getDetail"})}};function P_n(e,t,n,o,i,r){const s=y("UserInfoBlock"),a=y("AppIcon"),l=y("StatItem"),d=y("StatsContainer"),u=y("UserOrAuthorDetailInfo");return h(),W(u,null,{info:F(()=>[b(s)]),stats:F(()=>[b(d,null,{default:F(()=>[b(l,{class:"col-md-4 border-end"},{label:F(()=>[z(m(e.$t("administration.users.detail.stats.cart")),1)]),text:F(()=>[z(m(e.user.cart.total+",- "+e.$t("currency.short")),1)]),item:F(()=>[c("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[0]||(t[0]=f=>r.openSidePanel("user-cart-show"))},[b(a,{icon:"basket",height:20,width:20})])]),_:1}),b(l,{class:"col-md-4 border-end"},{label:F(()=>[z(m(e.$t("administration.users.detail.stats.wishlist")),1)]),text:F(()=>[z(m(e.user.wishlist.total+",- "+e.$t("currency.short")),1)]),item:F(()=>[c("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[1]||(t[1]=f=>r.openSidePanel("user-wishlist-show"))},[b(a,{icon:"wishlist",height:20,width:20})])]),_:1}),b(l,{class:"col-md-4"},{label:F(()=>[z(m(e.$t("administration.users.detail.stats.credit")),1)]),text:F(()=>[z(m(e.user.credit+",- "+e.$t("currency.short")),1)]),item:F(()=>[c("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[2]||(t[2]=f=>r.openSidePanel("user-credit-update"))},[b(a,{icon:"edit",height:20,width:20})])]),_:1})]),_:1})]),_:1})}const A_n=U(I_n,[["render",P_n]]),D_n={components:{AppIcon:Ue,DetailHeader:F6},props:{id:{type:Number,default(){return 0}},isOnAuthorPage:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor,chatLoading:!1}},computed:{...Oe({user:"administrationUser/getDetail",loading:"administrationUser/getDetailLoading",backPath:"administrationSiteNavigation/getBackPath"})},mounted(){this.backPath||this.$store.dispatch("administrationSiteNavigation/setBackPath",{path:this.$router.resolve({path:"/administration/users/list"}).href})},methods:{loadDetail(e){this.$store.dispatch("administrationUser/detail",{id:e})},edit(){this.$store.dispatch("sidebar/open",{type:"user-update"})},openSideBarChat(){this.loading||this.chatLoading||(this.user.conversation_id?(this.$store.dispatch("administrationMessages/setConversationId",{conversationId:this.user.conversation_id}),this.$store.commit("sidebarChat/setChatOpen",!0)):(this.chatLoading=!0,this.$store.dispatch("administrationMessages/findConversation",{userId:this.user.id}).then(()=>{this.$store.commit("sidebarChat/setChatOpen",!0)}).finally(()=>{this.chatLoading=!1})))},impersonate(){this.$store.dispatch("administrationUser/impersonate",{userId:this.id})}}},x_n=["href"],O_n={class:"btn btn-sm btn-tertiary btn-center me-3"},L_n={class:"btn btn-sm btn-tertiary btn-center me-3"};function M_n(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link"),l=y("DetailHeader");return h(),W(l,{"back-button-path":e.backPath,class:"border-bottom-2"},os({buttons:F(()=>[c("button",{class:"btn btn-sm btn-tertiary btn-center me-3",onClick:t[0]||(t[0]=(...d)=>r.impersonate&&r.impersonate(...d))},[z(m(e.$t("user.impersonation"))+" ",1),b(s,{class:"ms-icon",icon:"show",height:"20",width:"20"})]),c("button",{class:"btn btn-sm btn-tertiary btn-center me-3",onClick:t[1]||(t[1]=d=>r.openSideBarChat())},[z(m(e.$t("administration.users.detail.header.chat"))+" ",1),i.chatLoading?(h(),W(s,{key:1,class:"ms-icon",icon:"cog",spin:!0,height:"20",width:"20"})):(h(),W(s,{key:0,class:"ms-icon",icon:"message",height:"20",width:"20"}))]),c("button",{class:"btn btn-sm btn-tertiary btn-center me-3",onClick:t[2]||(t[2]=(...d)=>r.edit&&r.edit(...d))},[z(m(e.$t("administration.users.detail.header.edit"))+" ",1),b(s,{class:"ms-icon",icon:"edit",height:"20",width:"20"})]),n.isOnAuthorPage?(h(),g(pe,{key:0},[c("a",{href:e.ziggyRoute("user.show",{id:n.id}),target:"_blank"},[c("button",O_n,[z(m(e.$t("administration.users.author_detail.header.public_profile"))+" ",1),b(s,{class:"ms-icon",icon:"show",height:"20",width:"20"})])],8,x_n),b(a,{to:{name:"administration/users/detail",params:{id:n.id}}},{default:F(()=>[c("button",L_n,[z(m(e.$t("administration.users.author_detail.header.user_detail"))+" ",1),b(s,{class:"ms-icon",icon:"user",height:"20",width:"20"})])]),_:1},8,["to"])],64)):(h(),W(a,{key:1,to:{name:"administration/users/detail/author",params:{id:n.id}}},{default:F(()=>[c("button",{class:J(["btn btn-sm btn-tertiary btn-center",[e.user.role==="author"?"btn-success":"btn-muted"]])},[z(m(e.$t("administration.users.detail.header.author_settings"))+" ",1),b(s,{class:"ms-icon",icon:"user",height:"20",width:"20"})],2)]),_:1},8,["to"]))]),_:2},[n.isOnAuthorPage?{name:"title",fn:F(()=>[e.user.role==="author"?(h(),g(pe,{key:0},[z(m(e.$t("administration.users.author_detail.header.title")),1)],64)):(h(),g(pe,{key:1},[z(m(e.$t("administration.users.author_detail.header.title_not_author")),1)],64))]),key:"0"}:{name:"title",fn:F(()=>[z(m(e.$t("administration.users.detail.header.title")),1)]),key:"1"}]),1032,["back-button-path"])}const kce=U(D_n,[["render",M_n]]),N_n={components:{UserDetailHeader:kce,UserMergedInfo:Lvn,UserDetailInfo:A_n,TabList:qr},props:{id:{type:Number,default(){return 0}}},data(){return{primaryColor:window.primaryColor,chatLoading:!1,routes:["administration/users/detail/downloads","administration/users/detail/finances","administration/users/detail/settings"],titles:[this.$t("administration.users.detail.tabs.downloads"),this.$t("administration.users.detail.tabs.finances"),this.$t("administration.users.detail.tabs.settings")]}},computed:{...Oe({user:"administrationUser/getDetail",loading:"administrationUser/getDetailLoading"})},methods:{loadDetail(e){this.$store.dispatch("administrationUser/detail",{id:e})},loadUserTables(){this.$store.dispatch("administrationUserTables/downloads",{id:this.id}),this.$store.dispatch("administrationUserTables/authorProducts",{id:this.id})}},mounted(){this.loadDetail(this.id)},watch:{id(e,t){e!==t&&(this.loadDetail(this.id),this.loadUserTables())}}};function R_n(e,t,n,o,i,r){const s=y("UserDetailHeader"),a=y("UserMergedInfo"),l=y("UserDetailInfo"),d=y("TabList"),u=y("router-view");return h(),g("div",null,[b(s,{id:n.id,"is-on-author-page":!1},null,8,["id"]),b(a),b(l,{id:n.id},null,8,["id"]),b(d,{titles:i.titles,routes:i.routes,"padding-x":0,class:"mb-3"},null,8,["titles","routes"]),b(u,{id:n.id},null,8,["id"])])}const j_n=U(N_n,[["render",R_n]]),F_n={components:{AppIcon:Ue,ButtonDropdown:Eg},props:{number:[String,Number],href:[String,Number],deletedAt:String,loading:Boolean,muted:{type:Boolean,default:!1}},data(){return{copied:!1}},methods:{copy(){this.href&&(this.$copyText(this.href.toString()),this.copied=!0,window.flash(this.$t("clipboard.copied"),"success"),setTimeout(()=>{this.copied=!1},2e3))}}},z_n={class:"d-inline-flex"},U_n={key:0,class:"text-gray-700 medium"},B_n=["href"],H_n=["href"],V_n={key:1};function q_n(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ButtonDropdown");return h(),g("div",z_n,[n.number?(h(),g(pe,{key:0},[n.deletedAt?(h(),g("div",U_n,m(e.$t("administration.invoice_deleted")),1)):(h(),W(a,{key:1},{button:F(()=>[c("span",{class:J(["text-decoration-underline-hover cursor-pointer",n.deletedAt||n.muted?"text-gray-700":"text-primary"])},m(n.number),3)]),dropdown:F(()=>[n.number&&n.href?(h(),g("a",{key:0,href:n.href,target:"_blank",class:"dropdown-item d-flex align-items-center small"},[b(s,{icon:"show",width:"16",height:"16",class:"me-2"}),z(" "+m(e.$t("administration.finance.order.action.show")),1)],8,B_n)):D("",!0),n.number&&n.href?(h(),g("a",{key:1,href:e.ziggyRoute("administration.api.finance.invoice.download",{invoiceHref:n.href}),target:"_blank",class:"dropdown-item d-flex align-items-center small"},[b(s,{icon:"download",width:"16",height:"16",class:"me-2"}),z(" "+m(e.$t("administration.finance.order.action.download")),1)],8,H_n)):D("",!0),c("button",{class:"dropdown-item d-flex align-items-center small",type:"button",onClick:t[0]||(t[0]=Gt(l=>r.copy(),["stop","prevent"]))},[i.copied?(h(),W(s,{key:1,icon:"check",width:"16",height:"16",class:"me-2"})):(h(),W(s,{key:0,icon:"copy",width:"16",height:"16",class:"me-2"})),z(" "+m(e.$t("administration.finance.order.action.copy")),1)]),c("button",{class:"dropdown-item d-flex align-items-center small",type:"button",onClick:t[1]||(t[1]=Gt(l=>e.$emit("regenerate"),["stop","prevent"]))},[b(s,{icon:"refresh",width:"16",height:"16",class:"me-2",spin:n.loading},null,8,["spin"]),z(" "+m(e.$t("administration.finance.order.action.update")),1)])]),_:1}))],64)):(h(),g("span",V_n,m(e.$t("public.dash")),1))])}const bp=U(F_n,[["render",q_n]]),Y_n={components:{AppIcon:Ue,InvoiceDownloadLink:bp,UserBlockDropdown:Nl,ProductBlock:tb,FlexTableHead:ti,FlexTableRow:ni,Loading:Rt,TableButton:Za,Bootstrap5Pagination:Ri},props:{id:Number,showLoading:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({loading:"administrationUserTables/getDownloadsLoading",actionLoading:"administrationFinanceOrder/getActionLoading",downloads:"administrationUserTables/getDownloads"})},methods:{regenerate(e){this.$emit("regenerate",e)}}},W_n={class:"col-12 col-md-1"},G_n={class:"col-12 col-md-3"},Z_n={class:"col-12 col-md-3"},K_n={class:"col-12 col-md-1"},J_n={class:"col-12 col-md-1"},X_n={class:"col-12 col-md-1"},Q_n={class:"col-12 col-md-1"},eyn={key:0},tyn={class:"text-center mt-4"},nyn={class:"col-12 col-md-1"},oyn={class:"col-12 col-md-3 d-flex"},iyn={class:"col-12 col-md-3"},ryn={class:"col-12 col-md-1"},syn={class:"col-12 col-md-1"},ayn={class:"col-12 col-md-1"},lyn={class:"col-12 col-md-1"},cyn={class:"col-12 col-md-1 text-end"},dyn=["href"];function uyn(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("Loading"),l=y("ProductBlock"),d=y("UserBlockDropdown"),u=y("InvoiceDownloadLink"),f=y("AppIcon"),p=y("TableButton"),v=y("FlexTableRow"),_=y("Bootstrap5Pagination");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",W_n,m(e.$t("administration.users.detail.downloads.header.id")),1),c("div",G_n,m(e.$t("administration.users.detail.downloads.header.title")),1),c("div",Z_n,m(e.$t("administration.users.detail.downloads.header.author")),1),c("div",K_n,m(e.$t("administration.users.detail.downloads.header.bought_at")),1),c("div",J_n,m(e.$t("administration.users.detail.downloads.header.price")),1),c("div",X_n,m(e.$t("administration.users.detail.downloads.header.proforma_invoice")),1),c("div",Q_n,m(e.$t("administration.users.detail.downloads.header.invoice")),1),t[2]||(t[2]=c("div",{class:"col-12 col-md-1"},null,-1))]),_:1}),c("div",{class:J({"vl-parent mh-8":n.showLoading})},[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=k=>e.loading=k),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),!e.downloads.data.length&&!e.loading?(h(),g("div",eyn,[c("h4",tyn,m(e.$t("administration.users.detail.downloads.not_found")),1)])):(h(!0),g(pe,{key:1},Me(e.downloads.data,(k,C)=>(h(),g("div",{key:C},[b(v,{class:J({"border-none":C==e.downloads.data.length-1})},{default:F(()=>[c("div",nyn,m(k.product_id),1),c("div",oyn,[b(l,{id:k.product_id,"image-path":k.cover_img_thumbnail,title:k.title,createdAt:k.created_at,"from-path":e.$route.fullPath,"is-only-on-ucitelnice":k.only_on_ucitelnice},null,8,["id","image-path","title","createdAt","from-path","is-only-on-ucitelnice"])]),c("div",iyn,[b(d,{user:k.author},null,8,["user"])]),c("div",ryn,m(k.bought_at),1),c("div",syn,m(k.price+",-"),1),c("div",ayn,[b(u,{number:k.order.number,href:k.order.pdf_url,loading:e.loading||e.actionLoading,onRegenerate:$=>r.regenerate(k.order)},null,8,["number","href","loading","onRegenerate"])]),c("div",lyn,[b(u,{number:k.invoice.number,href:k.invoice.pdf_url,loading:e.loading||e.actionLoading,onRegenerate:$=>r.regenerate(k.invoice)},null,8,["number","href","loading","onRegenerate"])]),c("div",cyn,[b(p,null,{default:F(()=>[c("a",{href:e.ziggyRoute("downloads.download",{product:k.product_id}),class:"dropdown-item link-secondary cursor-pointer medium d-flex align-items-center"},[b(f,{icon:"download",class:"me-2 text-primary"}),z(" "+m(e.$t("administration.users.detail.downloads.item.actions.download")),1)],8,dyn)]),_:2},1024)])]),_:2},1032,["class"])]))),128)),e.loading?D("",!0):(h(),W(_,{key:2,class:"mt-4",data:e.downloads,onPaginationChangePage:t[1]||(t[1]=k=>e.$emit("page",k)),limit:1,align:"center"},null,8,["data"]))],2)])}const hyn=U(Y_n,[["render",uyn]]),fyn={components:{Loading:Rt,TableSearchWithQuery:tr,UserDownloadsTable:hyn},props:{query:{type:Object,default(){return{search:null,page:1,date:null}}},id:Number},computed:{...Oe({loading:"administrationUserTables/getDownloadsLoading"})},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationUserTables/downloads",{id:this.id,filters:this.filterValues()})},changePage(e){this.page=e},filterValues(){return jo.filterValues(this.filters,this.page)},regenerate(e){this.$store.dispatch("administrationUserTables/regenerate",{id:this.id,filters:this.filterValues(),invoice:e,dispatchMethod:"downloads"})}},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.users.detail.downloads.search.placeholder"),value:null},date:{placeholder:this.$t("administration.users.detail.downloads.search.date_placeholder"),name:"bought_at",value:null}}}}},myn={class:"vl-parent"},pyn={class:"row"},gyn={class:"col-12"},vyn={class:"col-12 mt-3"};function _yn(e,t,n,o,i,r){const s=y("Loading"),a=y("TableSearchWithQuery"),l=y("UserDownloadsTable");return h(),g("div",myn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",pyn,[c("div",gyn,[b(a,{query:n.query,filters:i.filters,page:i.page,"onUpdate:page":t[1]||(t[1]=d=>i.page=d),onChangeFilter:r.onFilterChange},null,8,["query","filters","page","onChangeFilter"])]),c("div",vyn,[b(l,{id:n.id,onPage:r.changePage,onRegenerate:r.regenerate},null,8,["id","onPage","onRegenerate"])])])])}const yyn=U(fyn,[["render",_yn]]),byn={props:{id:{type:Number,default(){return null}}},components:{TabList:qr},data(){return{routes:["administration/users/detail/finances/orders","administration/users/detail/finances/payments","administration/users/detail/finances/credit-transfers"],titles:[this.$t("administration.users.detail.finances.tabs.orders"),this.$t("administration.users.detail.finances.tabs.payments"),this.$t("administration.users.detail.finances.tabs.credit_transfers")]}}};function kyn(e,t,n,o,i,r){const s=y("TabList"),a=y("router-view");return h(),g("div",null,[b(s,{titles:i.titles,routes:i.routes,"padding-x":0,class:"mb-3"},null,8,["titles","routes"]),b(a,{id:n.id},null,8,["id"])])}const wyn=U(byn,[["render",kyn]]);let Dg=jo.pagination.per_page;const $yn=(e,t=Dg)=>De.get(Pe("administration.api.user.all",{...e,perPage:t})),Cyn=e=>De.patch(Pe("administration.api.user.activate",{user:e})),Syn=e=>De.patch(Pe("administration.api.user.block",{user:e})),Tyn=e=>De.patch(Pe("administration.api.user.unblock",{user:e})),Eyn=e=>De.get(Pe("administration.api.user.detail",{user:e})),Iyn=(e,t,n,o)=>De.patch(Pe("administration.api.user.changeCredit",{user:e}),{isAdd:t,amount:n,reason:o}),Pyn=(e,t)=>De.patch(Pe("administration.api.user.updateInfo",{user:e}),{...t}),Ayn=(e,t)=>De.patch(Pe("administration.api.user.updateIsAuthor",{user:e}),{is_author:t}),Dyn=(e,t)=>De.patch(Pe("administration.api.user.updateIsVerified",{user:e}),{verified:t}),xyn=(e,t)=>De.patch(Pe("administration.api.user.updateIsHmat",{user:e}),{is_hmat:t}),Oyn=(e,t)=>De.patch(Pe("administration.api.user.updateIsMmat",{user:e}),{is_mmat:t}),Lyn=e=>De.patch(Pe("administration.api.user.resetPassword",{user:e})),Myn=(e,t,n=Dg)=>De.get(Pe("administration.api.user.downloads",{user:e,...t,perPage:n})),Nyn=(e,t,n=Dg)=>De.get(Pe("administration.api.user.orders",{user:e,...t,perPage:n})),Ryn=(e,t,n=Dg)=>De.get(Pe("administration.api.user.payments",{user:e,...t,perPage:n})),jyn=(e,t,n=Dg)=>De.get(Pe("administration.api.user.credit_transfers",{user:e,...t,perPage:n})),Fyn=(e,t,n=Dg)=>De.get(Pe("administration.api.user.author.products",{user:e,...t,perPage:n})),zyn=(e,t,n=Dg)=>De.get(Pe("administration.api.user.author.settlements",{user:e,...t,perPage:n})),Uyn=e=>De.get(Pe("administration.api.user.impersonate",{user:e})),Byn=e=>De.get(Pe("administration.api.user.search",{email:e})),Hyn=e=>De.delete(Pe("administration.api.user.order.delete",{order:e})),Vyn=e=>De.patch(Pe("administration.api.user.order.restore",{order:e})),qyn=e=>De.delete(Pe("administration.api.user.credit_order.delete",{order:e})),Yyn=e=>De.patch(Pe("administration.api.user.credit_order.restore",{order:e})),Wyn=e=>De.delete(Pe("administration.api.user.voucher_order.delete",{order:e})),Gyn=e=>De.patch(Pe("administration.api.user.voucher_order.restore",{order:e})),Zyn=(e,t)=>De.patch(Pe("administration.api.user.merge",{user:e,userToMerge:t})),Ei={users:$yn,activate:Cyn,blockUser:Syn,unblockUser:Tyn,detail:Eyn,changeUserCredit:Iyn,updateUserInfo:Pyn,downloads:Myn,orders:Nyn,payments:Ryn,creditTransfers:jyn,authorProducts:Fyn,authorSettlements:zyn,updateUserIsAuthor:Ayn,updateUserIsVerified:Dyn,updateUserIsHmat:xyn,updateUserIsMmat:Oyn,resetPassword:Lyn,impersonate:Uyn,search:Byn,orderDelete:Hyn,orderRestore:Vyn,creditOrderDelete:qyn,creditOrderRestore:Yyn,voucherOrderDelete:Wyn,voucherOrderRestore:Gyn,merge:Zyn};let nb=jo.pagination.per_page;const Kyn=(e,t=nb)=>De.get(Pe("administration.api.school.list",{...e,perPage:t})),Jyn=e=>De.get(Pe("administration.api.school.detail",e)),Xyn=e=>De.post(Pe("administration.api.school.add",e)),Qyn=(e,t)=>De.patch(Pe("administration.api.school.update",e),{...t}),ebn=(e,t,n=nb)=>De.get(Pe("administration.api.school.employee.list",{school:e,...t,perPage:n})),tbn=(e,t,n=nb)=>De.get(Pe("administration.api.school.order.list",{school:e,...t,perPage:n})),nbn=(e,t,n=nb)=>De.get(Pe("administration.api.school.payment.list",{school:e,...t,perPage:n})),obn=(e,t,n=nb)=>De.get(Pe("administration.api.school.credit_transfer.list",{school:e,...t,perPage:n})),ibn=(e,t,n=nb)=>De.get(Pe("administration.api.school.download.list",{school:e,...t,perPage:n})),rbn=(e,t)=>De.patch(Pe("administration.api.school.employee.credit.update",e),{amount:t}),sbn=(e,t)=>De.patch(Pe("administration.api.school.admin_note.update",e),{admin_note:t}),abn=(e,t)=>De.post(Pe("administration.api.school.update.budget.add",e),t),lbn=(e,t)=>De.post(Pe("administration.api.school.update.budget.remove",e),t),cbn=(e,t)=>De.post(Pe("administration.api.school.update.credit-expiry-date",e),t),dbn=e=>De.delete(Pe("administration.api.school.order.delete",{order:e})),ubn=e=>De.patch(Pe("administration.api.school.order.restore",{order:e})),hbn=(e,t)=>De.post(Pe("administration.api.school.credit_order.place",{school:e}),{amount:t}),fbn=e=>De.delete(Pe("administration.api.school.credit_order.delete",{order:e})),mbn=e=>De.patch(Pe("administration.api.school.credit_order.restore",{order:e})),Gs={list:Kyn,detail:Jyn,create:Xyn,update:Qyn,employees:ebn,orders:tbn,payments:nbn,creditTransfers:obn,downloads:ibn,creditOrderPlace:hbn,employeeCreditUpdate:rbn,adminNoteUpdate:sbn,creditAdd:abn,creditRemove:lbn,orderRestore:ubn,creditOrderRestore:mbn,orderDelete:dbn,creditOrderDelete:fbn,updateExpiryDate:cbn},pbn={components:{AppIcon:Ue},props:{order:{type:Object,default:()=>null},schoolId:{type:Number,default:()=>null}},methods:{restore(){let e=null;this.schoolId?this.order.type==="product"?e=Gs.orderRestore:e=Gs.creditOrderRestore:this.order.type==="product"?e=Ei.orderRestore:this.order.type==="credit"?e=Ei.creditOrderRestore:e=Ei.voucherOrderRestore,e(this.order.id).then(t=>{window.flash(t.data.message,"success"),this.$store.dispatch("sidebar/close"),this.$emit("reload")}).catch(t=>{window.flash(t.response,"error")})}}},gbn={class:"text-gray-900"};function vbn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item btn-tertiary d-flex align-items-center",onClick:t[0]||(t[0]=(...a)=>r.restore&&r.restore(...a))},[b(s,{icon:"refresh",class:"me-2",height:"16",width:"16"}),c("span",gbn,m(e.$t("public.restore")),1)])}const _bn=U(pbn,[["render",vbn]]),ybn={components:{AppIcon:Ue},props:{order:{type:Object,default:()=>null},schoolId:{type:Number,default:()=>null}},methods:{deletee(){this.$store.dispatch("sidebar/open",{type:"order-delete",data:{...this.order,schoolId:this.schoolId}})}}},bbn={class:"text-gray-900"};function kbn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item btn-tertiary btn-danger d-flex align-items-center",onClick:t[0]||(t[0]=(...a)=>r.deletee&&r.deletee(...a))},[b(s,{icon:"delete",class:"me-2",height:"16",width:"16"}),c("span",bbn,m(e.$t("public.delete")),1)])}const wbn=U(ybn,[["render",kbn]]),$bn={components:{AppIcon:Ue},props:{order:{type:Object,default:()=>null},schoolId:{type:Number,default:()=>null}},methods:{confirm(){this.$store.dispatch("sidebar/open",{type:"order-payment-confirm",data:{...this.order,schoolId:this.schoolId}})}}},Cbn={class:"text-gray-900"};function Sbn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item btn-tertiary btn-success d-flex align-items-center",onClick:t[0]||(t[0]=(...a)=>r.confirm&&r.confirm(...a))},[b(s,{icon:"check-circle",class:"me-2"}),c("span",Cbn,m(e.$t("payment.confirm")),1)])}const Tbn=U($bn,[["render",Sbn]]),Ebn={components:{AppIcon:Ue},props:{order:{type:Object,default:()=>null}},methods:{copy(){this.$copyText(Pe("order.payment.show",{order:this.order.uuid})),window.flash(this.$t("clipboard.copied"),"success")}}},Ibn={class:"text-gray-900"};function Pbn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item btn-tertiary d-flex align-items-center",onClick:t[0]||(t[0]=(...a)=>r.copy&&r.copy(...a))},[b(s,{icon:"copy",class:"me-2"}),c("span",Ibn,m(e.$t("payment.copy_payment_url")),1)])}const Abn=U(Ebn,[["render",Pbn]]),Dbn=e=>De.post(Pe("api.order.summary.url.generate",{uuid:e})),xbn=e=>De.post(Pe("api.order.summary.mail.resend",{uuid:e})),wce={generateUrl:Dbn,resendMail:xbn},Obn={components:{AppIcon:Ue},props:{order:{type:Object,default:()=>null}},methods:{copy(){wce.generateUrl(this.order.uuid).then(e=>{this.copyToClipboard(e.data.url)}).catch(e=>{console.error(e)})},copyToClipboard(e){this.$copyText(e),window.flash(this.$t("clipboard.copied"),"success")}}},Lbn={class:"text-gray-900"};function Mbn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item btn-tertiary d-flex align-items-center",onClick:t[0]||(t[0]=(...a)=>r.copy&&r.copy(...a))},[b(s,{icon:"copy",class:"me-2"}),c("span",Lbn,m(e.$t("payment.copy_paid_url")),1)])}const Nbn=U(Obn,[["render",Mbn]]),Rbn={components:{OrderPaymentCopyPaymentUrlButton:Abn,TableButton:Za,OrderRestoreButton:_bn,OrderDeleteButton:wbn,OrderPaymentConfirmButton:Tbn,OrderPaidUrlCopyButton:Nbn},props:{order:{type:Object,default:()=>({deleted_at:null,confirmed:null,school_id:null,can_be_deleted:null})}}};function jbn(e,t,n,o,i,r){const s=y("OrderPaymentConfirmButton"),a=y("OrderPaymentCopyPaymentUrlButton"),l=y("OrderPaidUrlCopyButton"),d=y("OrderDeleteButton"),u=y("OrderRestoreButton"),f=y("TableButton");return h(),W(f,null,{default:F(()=>[n.order.deleted_at?(h(),W(u,{key:1,order:n.order,"school-id":n.order.school_id,onReload:t[1]||(t[1]=p=>e.$emit("reload"))},null,8,["order","school-id"])):(h(),g(pe,{key:0},[n.order.confirmed?D("",!0):(h(),W(s,{key:0,order:n.order,"school-id":n.order.school_id,onReload:t[0]||(t[0]=p=>e.$emit("reload"))},null,8,["order","school-id"])),n.order.type=="product"?(h(),g(pe,{key:1},[n.order.confirmed?n.order.type?(h(),W(l,{key:1,order:n.order},null,8,["order"])):D("",!0):(h(),W(a,{key:0,order:n.order},null,8,["order"]))],64)):D("",!0),n.order.can_be_deleted?(h(),W(d,{key:2,order:n.order,"school-id":n.order.school_id},null,8,["order","school-id"])):D("",!0)],64))]),_:1})}const $ce=U(Rbn,[["render",jbn]]),Fbn={components:{Pill:Ni,InvoiceDownloadLink:bp,UserBlockDropdown:Nl,FlexTableHead:ti,FlexTableRow:ni,Bootstrap5Pagination:Ri,OrderTableButton:$ce},props:{orders:Object,loading:Boolean,actionLoading:Boolean,showLoading:{type:Boolean,default:!1},userHidden:Boolean},data(){return{primaryColor:window.primaryColor,invoiceIdLoading:null}},methods:{regenerate(e){this.loading||this.actionLoading||(this.invoiceIdLoading=null,this.$emit("regenerate",e))}}},zbn={key:0,class:"col-12 col-md-2"},Ubn={class:"col-12 col-md-1"},Bbn={class:"col-12 col-md-1"},Hbn={class:"col-12 col-md-1"},Vbn={class:"col-12 col-md-1"},qbn={class:"col-12 col-md-1"},Ybn={class:"col-12 col-md-2"},Wbn={key:0},Gbn={class:"text-center mt-4"},Zbn={class:"col-12 col-md-1"},Kbn={key:0,class:"col-12 col-md-2"},Jbn={class:"col-12 col-md-1"},Xbn={class:"col-12 col-md-1"},Qbn={class:"col-12 col-md-1"},e0n={class:"col-12 col-md-1"},t0n={class:"col-12 col-md-1"},n0n={class:"col-12 col-md-2 d-flex justify-content-between align-items-center"};function o0n(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("UserBlockDropdown"),l=y("InvoiceDownloadLink"),d=y("Pill"),u=y("OrderTableButton"),f=y("FlexTableRow"),p=y("Bootstrap5Pagination");return h(),g("div",null,[b(s,null,{default:F(()=>[t[2]||(t[2]=c("div",{class:"col-12 col-md-1"},m("ID"),-1)),n.userHidden?D("",!0):(h(),g("div",zbn,m(e.$t("administration.finance.order.table.header.user")),1)),c("div",{class:J(["col-12",n.userHidden?"col-md-2":"col-md-1"])},m(e.$t("administration.finance.order.table.header.proforma_invoice")),3),c("div",{class:J(["col-12",n.userHidden?"col-md-2":"col-md-1"])},m(e.$t("administration.finance.order.table.header.invoice")),3),c("div",Ubn,m(e.$t("administration.finance.order.table.header.account_type")),1),c("div",Bbn,m(e.$t("administration.finance.order.table.header.purchase")),1),c("div",Hbn,m(e.$t("administration.finance.order.table.header.payment_type")),1),c("div",Vbn,m(e.$t("administration.finance.order.table.header.amount")),1),c("div",qbn,m(e.$t("administration.finance.order.table.header.date")),1),c("div",Ybn,m(e.$t("administration.finance.order.table.header.status")),1)]),_:1}),c("div",{class:J({"vl-parent mh-8":n.showLoading})},[n.orders.data&&!n.orders.data.length?(h(),g("div",Wbn,[c("h4",Gbn,m(e.$t("administration.finance.order.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(n.orders.data,(v,_)=>(h(),W(f,{key:_,class:J({"border-none":_==n.orders.data.length-1,"text-gray-700":v.deleted_at})},{default:F(()=>[c("div",Zbn,m(v.id),1),n.userHidden?D("",!0):(h(),g("div",Kbn,[v.user.id?(h(),W(a,{key:0,user:v.user,class:J({"muted-img":v.deleted_at})},null,8,["user","class"])):(h(),g(pe,{key:1},[z(m(e.$t("public.dash")),1)],64))])),c("div",{class:J(["col-12",n.userHidden?"col-md-2":"col-md-1"])},[v.proforma_invoice?(h(),W(l,{key:0,number:v.proforma_invoice.number,href:v.proforma_invoice.pdf_url,loading:n.actionLoading||n.loading,"deleted-at":v.deleted_at,onRegenerate:k=>r.regenerate(v.proforma_invoice)},null,8,["number","href","loading","deleted-at","onRegenerate"])):(h(),g(pe,{key:1},[z(m(e.$t("public.dash")),1)],64))],2),c("div",{class:J(["col-12",n.userHidden?"col-md-2":"col-md-1"])},[v.invoice?(h(),W(l,{key:0,number:v.invoice.number,href:v.invoice.pdf_url,loading:n.actionLoading||n.loading,"deleted-at":v.deleted_at,onRegenerate:k=>r.regenerate(v.invoice)},null,8,["number","href","loading","deleted-at","onRegenerate"])):(h(),g(pe,{key:1},[z(m(e.$t("public.dash")),1)],64))],2),c("div",Jbn,[v.type=="voucher"?(h(),g(pe,{key:0},[z(m(e.$t("public.dash")),1)],64)):v.is_for_school?(h(),g(pe,{key:1},[z(m(e.$t("administration.finance.order.table.content.account_type.school")),1)],64)):(h(),g(pe,{key:2},[z(m(e.$t("administration.finance.order.table.content.account_type.user")),1)],64))]),c("div",Xbn,m(e.$tm("administration.finance.order.table.content.purchase")[v.type]),1),c("div",Qbn,[v.payment_type?(h(),g(pe,{key:0},[z(m(e.$tm("administration.finance.order.table.content.payment")[v.payment_type]),1)],64)):(h(),g(pe,{key:1},[z(m(e.$t("public.dash")),1)],64))]),c("div",e0n,m(v.amount+" "+e.$t("currency.short")),1),c("div",t0n,m(v.created_at),1),c("div",n0n,[c("div",null,[v.deleted_at?(h(),W(d,{key:0,color:"muted"},{default:F(()=>[z(m(e.$t("administration.finance.order.table.content.status.deleted")),1)]),_:1})):v.confirmed?(h(),W(d,{key:1,color:"success"},{default:F(()=>[z(m(e.$t("administration.finance.order.table.content.status.paid")),1)]),_:1})):(h(),W(d,{key:2,color:"danger"},{default:F(()=>[z(m(e.$t("administration.finance.order.table.content.status.unpaid")),1)]),_:1}))]),b(u,{order:v,onReload:t[0]||(t[0]=k=>e.$emit("reload"))},null,8,["order"])])]),_:2},1032,["class"]))),128)),n.loading?D("",!0):(h(),W(p,{key:2,class:"mt-4 z-index-neg-1",data:n.orders,onPaginationChangePage:t[1]||(t[1]=v=>e.$emit("page",v)),limit:1,align:"center"},null,8,["data"]))],2)])}const Cce=U(Fbn,[["render",o0n]]),i0n={components:{OrderTable:Cce,TableSearchWithQuery:tr,Loading:Rt},props:{query:{type:Object,default(){return{search:null,page:1,account_type:null,payment_state:null,payment_type:null,type:null,date:null}}},id:Number},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.finance.order.search.placeholder"),value:null},date:{placeholder:this.$t("administration.finance.order.filter.date"),name:"order_date",value:null},checkboxes:[{name:"account_type",title:this.$t("administration.finance.order.filter.account_type.title"),options:this.$tm("administration.finance.order.filter.account_type.options"),checked:[]},{name:"payment_state",title:this.$t("administration.finance.order.filter.payment_state.title"),options:this.$tm("administration.finance.order.filter.payment_state.options"),checked:[]},{name:"payment_type",title:this.$t("administration.finance.order.filter.payment_type.title"),options:this.$tm("administration.finance.order.filter.payment_type.options"),checked:[]},{name:"type",title:this.$t("administration.finance.order.filter.type.title"),options:this.$tm("administration.finance.order.filter.type.options"),checked:[]}]}}},computed:{...Oe({loading:"administrationUserTables/getOrdersLoading",orders:"administrationUserTables/getOrders",actionLoading:"administrationFinanceOrder/getActionLoading"})},methods:{load(){this.$store.dispatch("administrationUserTables/orders",{id:this.id,filters:this.filterValues()})},onFilterChange(){this.load()},changePage(e){this.page=e},filterValues(){return jo.filterValues(this.filters,this.page)},regenerate(e){this.$store.dispatch("administrationUserTables/regenerate",{id:this.id,filters:this.filterValues(),invoice:e,dispatchMethod:"orders"})}},mounted(){window.eventBus.on("reload-orders",()=>{this.load()})}},r0n={class:"vl-parent"},s0n={class:"row"},a0n={class:"col-12"},l0n={class:"col-12 mt-3"};function c0n(e,t,n,o,i,r){const s=y("Loading"),a=y("TableSearchWithQuery"),l=y("OrderTable");return h(),g("div",r0n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",s0n,[c("div",a0n,[b(a,{query:n.query,filters:i.filters,page:i.page,"onUpdate:page":t[1]||(t[1]=d=>i.page=d),onChangeFilter:r.onFilterChange},null,8,["query","filters","page","onChangeFilter"])]),c("div",l0n,[b(l,{orders:e.orders,loading:e.loading,"action-loading":e.actionLoading||e.loading,onPage:r.changePage,onReload:r.load,onRegenerate:r.regenerate,"user-hidden":""},null,8,["orders","loading","action-loading","onPage","onReload","onRegenerate"])])])])}const d0n=U(i0n,[["render",c0n]]),u0n={components:{InvoiceDownloadLink:bp,FlexTableHead:ti,FlexTableRow:ni,Bootstrap5Pagination:Ri,UserBlockDropdown:Nl},data(){return{primaryColor:window.primaryColor,invoiceIdLoading:null}},props:{loading:Boolean,payments:Object,actionLoading:Boolean,showUser:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!1}},methods:{regenerate(e){this.loading||this.actionLoading||(this.invoiceIdLoading=null,this.$emit("regenerate",e))},getComplaintNumber(e){if(this.isComplaint(e))return Number(e.type.split("#")[1])},getComplaintString(e){if(this.isComplaint(e))return"ID: "+this.getComplaintNumber(e)},isComplaint(e){return!!e.type.includes("complaint")}}},h0n={class:"col-12 col-md-1"},f0n={class:"col-12 col-md-1"},m0n={class:"col-12 col-md-1"},p0n={class:"col-12 col-md-2"},g0n={key:0,class:"col-12 col-md-2"},v0n={class:"col-12 col-md-1"},_0n={class:"col-12 col-md-1"},y0n={class:"col-12 col-md-1"},b0n={key:0},k0n={class:"text-center mt-4"},w0n={class:"col-12 col-md-1"},$0n={class:"col-12 col-md-1"},C0n={class:"badge rounded-pill small px-2 py-1 fw-light bg-gray-300 text-gray-700"},S0n={class:"col-12 col-md-1"},T0n={class:"col-12 col-md-2"},E0n={key:1},I0n={key:0,class:"col-12 col-md-2"},P0n={key:1},A0n={class:"col-12 col-md-1"},D0n={class:"col-12 col-md-1"},x0n={class:"col-12 col-md-1 d-flex justify-content-between align-items-center"};function O0n(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("UserBlockDropdown"),l=y("router-link"),d=y("InvoiceDownloadLink"),u=y("FlexTableRow"),f=y("Bootstrap5Pagination");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",h0n,m(e.$t("administration.payment.table.header.id")),1),c("div",f0n,m(e.$t("administration.payment.table.header.order_type")),1),c("div",m0n,m(e.$t("administration.payment.table.header.type")),1),c("div",p0n,m(e.$t("administration.payment.table.header.admin")),1),n.showUser?(h(),g("div",g0n,m(e.$t("administration.payment.table.header.user")),1)):D("",!0),c("div",v0n,m(e.$t("administration.payment.table.header.order")),1),c("div",_0n,m(e.$t("administration.payment.table.header.amount")),1),c("div",{class:J([n.showUser?"col-12 col-md-1":"col-12 col-md-2"])},m(e.$t("administration.payment.table.header.created_at")),3),c("div",{class:J([n.showUser?"col-12 col-md-1":"col-12 col-md-2"])},m(e.$t("administration.payment.table.header.confirmed_at")),3),c("div",y0n,m(e.$t("administration.payment.table.header.note")),1)]),_:1}),c("div",{class:J({"vl-parent mh-8":n.showLoading})},[n.payments.data&&!n.payments.data.length?(h(),g("div",b0n,[c("h4",k0n,m(e.$t("administration.payment.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(n.payments.data,(p,v)=>(h(),W(u,{key:v,class:J({"border-none":v==n.payments.data.length-1})},{default:F(()=>[c("div",w0n,m(p.id),1),c("div",$0n,[c("span",C0n,m(e.$tm("administration.payment.table.content.order_type")[p.order_type]),1)]),c("div",S0n,m(e.$tm("administration.payment.table.content.type")[p.type]),1),c("div",T0n,[p.admin?(h(),W(a,{key:0,user:p.admin},null,8,["user"])):(h(),g("span",E0n,m(e.$t("public.dash")),1))]),n.showUser?(h(),g("div",I0n,[p.user?(h(),W(a,{key:0,user:p.user},null,8,["user"])):(h(),g("span",P0n,m(e.$t("public.dash")),1))])):D("",!0),c("div",A0n,[r.isComplaint(p)?(h(),W(l,{key:0,to:{name:"administration/product/complaint/detail",params:{id:r.getComplaintNumber(p)}},onClickCapture:t[0]||(t[0]=_=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},{default:F(()=>[z(m(r.getComplaintString(p)),1)]),_:2},1032,["to"])):(h(),g(pe,{key:1},[p.school_credit_invoice?(h(),W(d,{key:0,number:p.school_credit_invoice.number,href:p.school_credit_invoice.pdf_url,loading:n.actionLoading||n.loading,onRegenerate:_=>r.regenerate(p.school_credit_invoice)},null,8,["number","href","loading","onRegenerate"])):p.order?(h(),W(d,{key:1,number:p.order.number,href:p.order.pdf_url,loading:n.actionLoading||n.loading,onRegenerate:_=>r.regenerate(p.order)},null,8,["number","href","loading","onRegenerate"])):D("",!0)],64))]),c("div",D0n,m(p.amount?p.amount+" "+e.$t("currency.short"):e.$t("public.dash")),1),c("div",{class:J([n.showUser?"col-12 col-md-1":"col-12 col-md-2"])},m(p.created_at),3),c("div",{class:J([n.showUser?"col-12 col-md-1":"col-12 col-md-2"])},m(p.confirmed_at?p.confirmed_at:e.$t("public.dash")),3),c("div",x0n,m(p.comment?p.comment:e.$t("public.dash")),1)]),_:2},1032,["class"]))),128)),n.loading?D("",!0):(h(),W(f,{key:2,class:"mt-4 z-index-neg-1",data:n.payments,onPaginationChangePage:t[1]||(t[1]=p=>e.$emit("page",p)),limit:1,align:"center"},null,8,["data"]))],2)])}const Sce=U(u0n,[["render",O0n]]),L0n={components:{TableSearchWithQuery:tr,PaymentsTable:Sce,Loading:Rt},props:{query:{type:Object,default(){return{search:null,order_type:null,payment_type:null,page:null,date:null}}},id:Number},computed:{...Oe({loading:"administrationUserTables/getPaymentsLoading",payments:"administrationUserTables/getPayments",actionLoading:"administrationFinanceOrder/getActionLoading"})},methods:{regenerate(e){this.$store.dispatch("administrationUserTables/regenerate",{id:this.id,filters:this.filterValues(),invoice:e,dispatchMethod:"payments"})},onFilterChange(){this.$store.dispatch("administrationUserTables/payments",{id:this.id,filters:this.filterValues()})},changePage(e){this.page=e},filterValues(){return jo.filterValues(this.filters,this.page)}},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.payment.search.placeholder"),value:null},date:{placeholder:this.$t("administration.payment.date"),name:"created_at",value:null},checkboxes:[{name:"order_type",title:this.$t("administration.payment.filter.order_type.title"),options:this.$tm("administration.payment.filter.order_type.options"),checked:[]},{name:"payment_type",title:this.$t("administration.payment.filter.type.title"),options:this.$tm("administration.payment.filter.type.options"),checked:[]}]}}}},M0n={class:"vl-parent"},N0n={class:"row"},R0n={class:"col-12 mb-3"},j0n={class:"col-12"};function F0n(e,t,n,o,i,r){const s=y("Loading"),a=y("TableSearchWithQuery"),l=y("PaymentsTable");return h(),g("div",M0n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",N0n,[c("div",R0n,[b(a,{query:n.query,filters:i.filters,page:i.page,"onUpdate:page":t[1]||(t[1]=d=>i.page=d),onChangeFilter:r.onFilterChange},null,8,["query","filters","page","onChangeFilter"])]),c("div",j0n,[b(l,{"show-user":!1,loading:e.loading,"action-loading":e.loading||e.actionLoading,payments:e.payments,onPage:r.changePage,onRegenerate:r.regenerate},null,8,["loading","action-loading","payments","onPage","onRegenerate"])])])])}const z0n=U(L0n,[["render",F0n]]),U0n={components:{InvoiceDownloadLink:bp,FlexTableHead:ti,FlexTableRow:ni,Bootstrap5Pagination:Ri,UserBlockDropdown:Nl},data(){return{invoiceIdLoading:null}},props:{loading:Boolean,creditTransfers:{type:Object,default(){return{data:[]}}},actionLoading:Boolean,showLoading:{type:Boolean,default:!1}},methods:{regenerate(e){this.loading||this.actionLoading||(this.invoiceIdLoading=null,this.$emit("regenerate",e))}}},B0n={class:"col-12 col-md-1"},H0n={class:"col-12 col-md-2"},V0n={class:"col-12 col-md-2"},q0n={class:"col-12 col-md-1"},Y0n={class:"col-12 col-md-2"},W0n={class:"col-12 col-md-2"},G0n={class:"col-12 col-md-1"},Z0n={key:0},K0n={class:"text-center mt-4"},J0n={class:"col-12 col-md-1"},X0n={class:"col-12 col-md-2"},Q0n={class:"badge rounded-pill small px-2 py-1 fw-light bg-gray-300 text-gray-700"},e2n={class:"col-12 col-md-2"},t2n={key:2},n2n={key:3},o2n={class:"col-12 col-md-1"},i2n={class:"col-12 col-md-2"},r2n={class:"col-12 col-md-2"},s2n={class:"col-12 col-md-1 d-flex justify-content-between align-items-center"};function a2n(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("UserBlockDropdown"),l=y("InvoiceDownloadLink"),d=y("router-link"),u=y("FlexTableRow"),f=y("Bootstrap5Pagination");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",B0n,m(e.$t("administration.credit_transfer.table.header.id")),1),c("div",H0n,m(e.$t("administration.credit_transfer.table.header.type")),1),c("div",V0n,m(e.$t("administration.credit_transfer.table.header.entity")),1),c("div",q0n,m(e.$t("administration.credit_transfer.table.header.amount")),1),c("div",Y0n,m(e.$t("administration.credit_transfer.table.header.created_at")),1),c("div",W0n,m(e.$t("administration.credit_transfer.table.header.confirmed_at")),1),c("div",G0n,m(e.$t("administration.credit_transfer.table.header.note")),1)]),_:1}),c("div",{class:J({"vl-parent mh-8":n.showLoading})},[n.creditTransfers&&n.creditTransfers.data&&!n.creditTransfers.data.length?(h(),g("div",Z0n,[c("h4",K0n,m(e.$t("administration.credit_transfer.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(n.creditTransfers.data,(p,v)=>(h(),W(u,{key:v,class:J({"border-none":v==n.creditTransfers.data.length-1})},{default:F(()=>[c("div",J0n,m(p.id),1),c("div",X0n,[c("span",Q0n,m(e.$t("administration.credit_transfer.table.content.type")[p.type]),1)]),c("div",e2n,[p.type=="admin"?(h(),W(a,{key:0,user:p.admin},null,8,["user"])):D("",!0),p.type=="order"?(h(),W(l,{key:1,number:p.order.number,href:p.order.pdf_url,loading:n.actionLoading||n.loading,onRegenerate:_=>r.regenerate(p.order)},null,8,["number","href","loading","onRegenerate"])):D("",!0),p.type=="payment"?(h(),g("div",t2n,m(p.payment.id),1)):D("",!0),p.type=="complaint_return"?(h(),g("div",n2n,[b(d,{to:{path:"/administration/product/complaint/detail/"+p.complaint_id}},{default:F(()=>[z(m(p.complaint_id),1)]),_:2},1032,["to"])])):D("",!0)]),c("div",o2n,m(p.amount?p.amount+" "+e.$t("currency.short"):e.$t("public.dash")),1),c("div",i2n,m(p.created_at),1),c("div",r2n,m(p.confirmed_at?p.confirmed_at:e.$t("public.dash")),1),c("div",s2n,m(p.note?p.note:e.$t("public.dash")),1)]),_:2},1032,["class"]))),128)),n.loading?D("",!0):(h(),W(f,{key:2,class:"mt-4 z-index-neg-1",data:n.creditTransfers,onPaginationChangePage:t[0]||(t[0]=p=>e.$emit("page",p)),limit:1,align:"center"},null,8,["data"]))],2)])}const Tce=U(U0n,[["render",a2n]]),l2n={components:{TableSearchWithQuery:tr,CreditTransfersTable:Tce,Loading:Rt},props:{query:{type:Object,default(){return{search:null,credit_transfer_type:null,page:null,date:null}}},id:Number},computed:{...Oe({loading:"administrationUserTables/getCreditTransfersLoading",creditTransfers:"administrationUserTables/getCreditTransfers",actionLoading:"administrationFinanceOrder/getActionLoading"})},methods:{regenerate(e){this.$store.dispatch("administrationUserTables/regenerate",{id:this.id,filters:this.filterValues(),invoice:e,dispatchMethod:"creditTransfers"})},onFilterChange(){this.$store.dispatch("administrationUserTables/creditTransfers",{id:this.id,filters:this.filterValues()})},changePage(e){this.page=e},filterValues(){return jo.filterValues(this.filters,this.page)}},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.credit_transfer.search.placeholder"),value:null},date:{placeholder:this.$t("administration.credit_transfer.date"),name:"created_at",value:null},checkboxes:[{name:"credit_transfer_type",title:this.$t("administration.credit_transfer.filter.type.title"),options:this.$tm("administration.credit_transfer.filter.type.options"),checked:[]}]}}}},c2n={class:"vl-parent"},d2n={class:"row"},u2n={class:"col-12 mb-3"},h2n={class:"col-12"};function f2n(e,t,n,o,i,r){const s=y("Loading"),a=y("TableSearchWithQuery"),l=y("CreditTransfersTable");return h(),g("div",c2n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",d2n,[c("div",u2n,[b(a,{query:n.query,filters:i.filters,page:i.page,"onUpdate:page":t[1]||(t[1]=d=>i.page=d),onChangeFilter:r.onFilterChange},null,8,["query","filters","page","onChangeFilter"])]),c("div",h2n,[b(l,{"show-user":!1,loading:e.loading,"action-loading":e.loading||e.actionLoading,"credit-transfers":e.creditTransfers,onPage:r.changePage,onRegenerate:r.regenerate},null,8,["loading","action-loading","credit-transfers","onPage","onRegenerate"])])])])}const m2n=U(l2n,[["render",f2n]]),p2n={},g2n={class:"row align-items-center border-bottom border-bottom-last-none py-3 m-0"},v2n={class:"col-auto p-0"},_2n={class:"large fw-medium"},y2n={class:"small"},b2n={class:"col-auto ms-auto p-0"};function k2n(e,t,n,o,i,r){return h(),g("div",g2n,[c("div",v2n,[c("div",_2n,[Pt(e.$slots,"title")]),c("div",y2n,[Pt(e.$slots,"text")])]),c("div",b2n,[Pt(e.$slots,"button")])])}const Ece=U(p2n,[["render",k2n]]),w2n={},$2n={class:"border rounded text-gray-800 px-4"};function C2n(e,t,n,o,i,r){return h(),g("div",$2n,[Pt(e.$slots,"default")])}const Ice=U(w2n,[["render",C2n]]),S2n={components:{SettingsBox:Ice,SettingsItem:Ece,ToggleButton:eb,Loading:Rt,UserActivateButton:vce},data(){return{primaryColor:window.primaryColor,loadings:{blocked:!1,reset_password:!1}}},methods:{edit(){this.$store.dispatch("sidebar/open",{type:"user-update"})},passwordReset(){this.$store.dispatch("sidebar/open",{type:"user-password-reset"})}},computed:{...Oe({user:"administrationUser/getDetail",loading:"administrationUser/getDetailLoading"}),isBlocked:{get(){return this.user.blocked},set(e){this.loadings.blocked||(this.loadings.blocked=!0,e?this.$store.dispatch("administrationUser/blockUser",{user:this.user,isFromTable:!1}).finally(()=>{this.loadings.blocked=!1}):this.$store.dispatch("administrationUser/unblockUser",{user:this.user,isFromTable:!1}).finally(()=>{this.loadings.blocked=!1}))}}}},T2n={class:"row justify-content-center"},E2n={class:"col-12 col-lg-10 vl-parent"};function I2n(e,t,n,o,i,r){const s=y("Loading"),a=y("SettingsItem"),l=y("UserActivateButton"),d=y("SettingsBox"),u=y("ToggleButton");return h(),g("div",null,[c("div",T2n,[c("div",E2n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=f=>e.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(d,null,{default:F(()=>[b(a,null,{title:F(()=>[z(m(e.$t("administration.users.detail.settings.edit.title")),1)]),text:F(()=>[z(m(e.$t("administration.users.detail.settings.edit.text")),1)]),button:F(()=>[c("button",{class:"btn btn-primary btn-sm",onClick:t[1]||(t[1]=(...f)=>r.edit&&r.edit(...f))},m(e.$t("administration.users.detail.settings.edit.button")),1)]),_:1}),b(a,null,{title:F(()=>[z(m(e.$t("administration.users.detail.settings.confirm.title")),1)]),text:F(()=>[z(m(e.$t("administration.users.detail.settings.confirm.text")),1)]),button:F(()=>[b(l,{user:e.user,disabled:e.user.confirmed},null,8,["user","disabled"])]),_:1})]),_:1}),b(d,{class:"mt-4"},{default:F(()=>[b(a,null,{title:F(()=>[z(m(e.$t("administration.users.detail.settings.block.title")),1)]),text:F(()=>[z(m(e.$t("administration.users.detail.settings.block.text")),1)]),button:F(()=>[b(u,{loading:i.loadings.blocked,value:r.isBlocked,"onUpdate:value":t[2]||(t[2]=f=>r.isBlocked=f),id:"blocked"},null,8,["loading","value"])]),_:1}),b(a,null,{title:F(()=>[z(m(e.$t("administration.users.detail.settings.password_reset.title")),1)]),text:F(()=>[z(m(e.$t("administration.users.detail.settings.password_reset.text")),1)]),button:F(()=>[c("button",{class:"btn btn-primary btn-sm",onClick:t[3]||(t[3]=(...f)=>r.passwordReset&&r.passwordReset(...f))},m(e.$t("administration.users.detail.settings.password_reset.button")),1)]),_:1})]),_:1})])])])}const P2n=U(S2n,[["render",I2n]]),A2n=()=>De.get(Pe("administration.api.finance.authorDiscount.index")),D2n=e=>De.post(Pe("administration.api.finance.authorDiscount.create"),e),x2n=e=>De.patch(Pe("administration.api.finance.authorDiscount.update",{authorDiscountAutomaticSettings:e.id}),e),O2n=e=>De.delete(Pe("administration.api.finance.authorDiscount.remove",{authorDiscountAutomaticSettings:e})),L2n=e=>De.get(Pe("administration.api.user.author.discount.automatic.show",{user:e})),M2n=e=>De.get(Pe("administration.api.user.author.discount.individual.index",{user:e})),i_={index:A2n,create:D2n,update:x2n,remove:O2n,automaticShow:L2n,individualIndex:M2n},N2n={components:{StatItem:pM,StatsContainer:mM,AppIcon:Ue},data(){return{automaticDiscount:null,individualDiscounts:[],moment:mt}},computed:{...sn({authorId:e=>e.administrationUser.detail.id})},methods:{loadAutomaticDiscount(){i_.automaticShow(this.authorId).then(e=>{this.automaticDiscount=e.data.data})},loadIndividualDiscounts(){i_.individualIndex(this.authorId).then(e=>{this.individualDiscounts=e.data.data})}},mounted(){this.loadAutomaticDiscount(),this.loadIndividualDiscounts()},watch:{authorId(){this.loadAutomaticDiscount(),this.loadIndividualDiscounts()}}},R2n={class:"text-nowrap"},j2n={key:0},F2n={key:1,class:"d-flex flex-no-wrap"},z2n={class:"fw-light mx-2"},U2n={class:"text-nowrap"},B2n={key:0},H2n={class:"d-flex flex-no-wrap"},V2n={class:"fw-light mx-2"};function q2n(e,t,n,o,i,r){const s=y("AppIcon"),a=y("StatItem"),l=y("StatsContainer");return h(),W(l,null,{default:F(()=>[b(a,{class:"border-end"},{label:F(()=>[c("span",R2n,m(e.$t("discount.automatic.title")),1)]),text:F(()=>[i.automaticDiscount?(h(),g("div",F2n,[z(m(i.moment(i.automaticDiscount.valid_from).format("DD.MM")+e.$t("public.dash")+i.moment(i.automaticDiscount.valid_to).format("DD.MM.YYYY"))+" ",1),c("span",z2n,m(i.automaticDiscount.amount+"%"),1),i.automaticDiscount.active?(h(),W(s,{key:0,icon:"check-fill",height:20,width:20,class:"text-success"})):D("",!0)])):(h(),g("div",j2n,m(e.$t("public.dash")),1))]),_:1}),b(a,{class:"border-end"},{label:F(()=>[c("span",U2n,m(e.$t("discount.individual.title")),1)]),text:F(()=>[i.individualDiscounts.length?(h(!0),g(pe,{key:1},Me(i.individualDiscounts,(d,u)=>(h(),g("div",{key:u,class:"d-flex justify-content-between align-items-center text-nowrap w-100"},[c("div",H2n,[z(m(i.moment(d.valid_from).format("DD.MM")+e.$t("public.dash")+i.moment(d.valid_to).format("DD.MM.YYYY"))+" ",1),c("span",V2n,m(d.amount+"%"),1)]),d.active?(h(),W(s,{key:0,icon:"check-fill",height:20,width:20,class:"text-success"})):D("",!0)]))),128)):(h(),g("div",B2n,m(e.$t("public.dash")),1))]),_:1})]),_:1})}const Y2n=U(N2n,[["render",q2n]]),W2n={components:{UserOrAuthorDetailInfo:bce,UserInfoBlock:yce,AuthorDiscountInfo:Y2n},props:{id:Number,isOnAuthorPage:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({loading:"administrationUser/getDetailLoading",user:"administrationUser/getDetail"})}},G2n={class:"d-flex justify-content-end"};function Z2n(e,t,n,o,i,r){const s=y("UserInfoBlock"),a=y("AuthorDiscountInfo"),l=y("UserOrAuthorDetailInfo");return h(),W(l,null,{info:F(()=>[b(s,{"is-on-author-page":""})]),stats:F(()=>[c("div",G2n,[b(a)])]),_:1})}const K2n=U(W2n,[["render",Z2n]]),J2n={components:{AuthorDetailInfo:K2n,UserDetailHeader:kce,TabList:qr},props:{id:{type:Number,default(){return 0}}},data(){return{routes:["administration/users/detail/author/products","administration/users/detail/author/settlements","administration/users/detail/author/settings"],titles:[this.$t("administration.users.author_detail.tabs.products"),this.$t("administration.users.author_detail.tabs.settlements"),this.$t("administration.users.author_detail.tabs.settings")]}},computed:{...Oe({user:"administrationUser/getDetail"})},methods:{loadDetail(e){this.$store.dispatch("administrationUser/detail",{id:e})}},mounted(){this.loadDetail(this.id)}},X2n={class:"row"},Q2n={class:"col-12"};function e3n(e,t,n,o,i,r){const s=y("UserDetailHeader"),a=y("AuthorDetailInfo"),l=y("TabList"),d=y("router-view");return h(),g("div",null,[b(s,{id:n.id,"is-on-author-page":!0},null,8,["id"]),c("div",null,[c("div",X2n,[c("div",Q2n,[b(a,{id:n.id},null,8,["id"])])]),b(l,{titles:i.titles,routes:i.routes,"padding-x":0,class:"mb-3","border-color":e.user.verified?"success":"porsche"},null,8,["titles","routes","border-color"]),b(d,{id:n.id},null,8,["id"])])])}const t3n=U(J2n,[["render",e3n]]),n3n={components:{AppIcon:Ue,ProductBlock:tb,FlexTableHead:ti,FlexTableRow:ni,Loading:Rt,TableButton:Za,Bootstrap5Pagination:Ri,ProductStatus:J3},props:{id:Number,showLoading:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor,productConfig:ja}},computed:{...Oe({loading:"administrationUserTables/getAuthorProductsLoading",products:"administrationUserTables/getAuthorProducts"})},methods:{deleteProduct(e){this.$emit("delete",e)},productStatus(e){return e.deleted?this.productConfig.statusDeletedId:e.hidden?this.productConfig.statusHiddenId:e.status}}},o3n={class:"col-12 col-md-1"},i3n={class:"col-12 col-md-5"},r3n={class:"col-12 col-md-2"},s3n={class:"col-12 col-md-1"},a3n={class:"col-12 col-md-1"},l3n={class:"col-12 col-md-2"},c3n={key:0},d3n={class:"text-center mt-4"},u3n={class:"col-12 col-md-1"},h3n={class:"col-12 col-md-5 d-flex"},f3n={class:"col-12 col-md-2"},m3n={class:"col-12 col-md-1"},p3n={class:"col-12 col-md-1"},g3n={class:"col-12 col-md-2 d-flex justify-content-between align-items-center"},v3n=["href"],_3n={class:"text-gray-900"},y3n={class:"text-gray-900"},b3n=["onClick"],k3n={class:"text-gray-900"};function w3n(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("Loading"),l=y("ProductBlock"),d=y("ProductStatus"),u=y("AppIcon"),f=y("router-link"),p=y("TableButton"),v=y("FlexTableRow"),_=y("Bootstrap5Pagination");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",o3n,m(e.$t("administration.users.author_detail.products.table.header.id")),1),c("div",i3n,m(e.$t("administration.users.author_detail.products.table.header.product")),1),c("div",r3n,m(e.$t("administration.users.author_detail.products.table.header.created_at")),1),c("div",s3n,m(e.$t("administration.users.author_detail.products.table.header.price")),1),c("div",a3n,m(e.$t("administration.users.author_detail.products.table.header.sold")),1),c("div",l3n,m(e.$t("administration.users.author_detail.products.table.header.state")),1)]),_:1}),c("div",{class:J({"vl-parent z-1 mh-8":n.showLoading})},[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=k=>e.loading=k),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),!e.products.data.length&&!e.loading?(h(),g("div",c3n,[c("h4",d3n,m(e.$t("administration.users.author_detail.products.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(e.products.data,(k,C)=>(h(),g("div",{key:C},[b(v,{class:J({"border-none":C==e.products.data.length-1})},{default:F(()=>[c("div",u3n,m(k.id),1),c("div",h3n,[b(l,{id:k.id,"image-path":k.cover_img_thumbnail,title:k.title,createdAt:k.created_at,"from-path":e.$route.fullPath,"is-only-on-ucitelnice":k.only_on_ucitelnice},null,8,["id","image-path","title","createdAt","from-path","is-only-on-ucitelnice"])]),c("div",f3n,m(k.created_at),1),c("div",m3n,m(k.price+",-"),1),c("div",p3n,m(k.sells+" ks"),1),c("div",g3n,[b(d,{status:r.productStatus(k),class:"text-truncate"},null,8,["status"]),b(p,null,{default:F(()=>[c("a",{href:e.ziggyRoute("downloads.download",{product:k.id}),class:"d-flex align-items-center dropdown-item btn-tertiary medium"},[b(u,{icon:"download",class:"me-2 text-primary"}),c("span",_3n,m(e.$t("administration.users.author_detail.products.table.actions.download")),1)],8,v3n),b(f,{class:"d-flex align-items-center dropdown-item btn-tertiary medium",to:{name:"administration/product/detail",params:{id:k.id}},onClickCapture:t[1]||(t[1]=$=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath}))},{default:F(()=>[b(u,{icon:"edit",height:"16",width:"16",class:"me-2 text-primary"}),c("span",y3n,m(e.$t("administration.users.author_detail.products.table.actions.edit")),1)]),_:2},1032,["to"]),c("button",{class:"d-flex align-items-center dropdown-item medium btn-tertiary btn-danger",onClick:Gt($=>r.deleteProduct(k),["stop","prevent"])},[b(u,{icon:"delete",height:"16",width:"16",class:"me-2"}),c("span",k3n,m(e.$t("administration.users.author_detail.products.table.actions.delete")),1)],8,b3n)]),_:2},1024)])]),_:2},1032,["class"])]))),128)),e.loading?D("",!0):(h(),W(_,{key:2,class:"mt-4",data:e.products,onPaginationChangePage:t[2]||(t[2]=k=>e.$emit("page",k)),limit:1,align:"center"},null,8,["data"]))],2)])}const $3n=U(n3n,[["render",w3n]]),C3n={components:{AuthorProductsTable:$3n,Loading:Rt,TableSearchWithQuery:tr},props:{id:Number,query:{type:Object,default(){return{search:null,page:1,date:null}}}},computed:{...Oe({loading:"administrationUserTables/getAuthorProductsLoading"})},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationUserTables/authorProducts",{id:this.id,filters:this.filterValues()})},changePage(e){this.page=e},filterValues(){return jo.filterValues(this.filters,this.page)},openSidebarProductDelete(e){this.$store.commit("administrationProduct/setDelete",{id:e.id,title:e.title}),this.$store.dispatch("sidebar/open",{type:"product-delete"})}},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.users.author_detail.products.filter.search"),value:null},date:{placeholder:this.$t("administration.users.author_detail.products.filter.date"),name:"created_at",value:null},checkboxes:[{name:"tags",title:this.$t("administration.product.filter.tags.title"),options:this.$tm("administration.product.filter.tags.options"),checked:[]}]}}}},S3n={class:"vl-parent"},T3n={class:"row"},E3n={class:"col-12"},I3n={class:"col-12 mt-3"};function P3n(e,t,n,o,i,r){const s=y("Loading"),a=y("TableSearchWithQuery"),l=y("AuthorProductsTable");return h(),g("div",S3n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",T3n,[c("div",E3n,[b(a,{query:n.query,filters:i.filters,page:i.page,"onUpdate:page":t[1]||(t[1]=d=>i.page=d),onChangeFilter:r.onFilterChange},null,8,["query","filters","page","onChangeFilter"])]),c("div",I3n,[b(l,{id:n.id,onPage:r.changePage,onDelete:r.openSidebarProductDelete},null,8,["id","onPage","onDelete"])])])])}const A3n=U(C3n,[["render",P3n]]),D3n={components:{Pill:Ni,InvoiceDownloadLink:bp,AppIcon:Ue,FlexTableHead:ti,FlexTableRow:ni,Loading:Rt,TableButton:Za,Bootstrap5Pagination:Ri},props:{id:Number,showLoading:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor,settlementIdLoading:null}},computed:{...Oe({loading:"administrationUserTables/getAuthorSettlementsLoading",settlements:"administrationUserTables/getAuthorSettlements",actionLoading:"administrationFinanceOrder/getActionLoading"})},methods:{regenerate(e){this.loading||this.actionLoading||(this.settlementIdLoading=null,this.$emit("regenerate",e))},fromMonth(e){return mt(e).format("MMMM YYYY")},sendPayment(e){this.loading||this.actionLoading||(this.settlementIdLoading=e.id,this.$emit("sendPayment",e))}}},x3n={class:"col-12 col-md-2"},O3n={class:"col-12 col-md-5"},L3n={class:"col-12 col-md-2"},M3n={class:"col-12 col-md-2 text-end"},N3n={key:0},R3n={class:"text-center mt-4"},j3n={class:"col-12 col-md-2"},F3n={class:"col-12 col-md-5"},z3n={class:"col-12 col-md-2"},U3n={class:"col-12 col-md-2 text-end"},B3n=["onClick"],H3n={class:"col-12 col-md-1 text-end"},V3n=["href"];function q3n(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("Loading"),l=y("InvoiceDownloadLink"),d=y("AppIcon"),u=y("Pill"),f=y("TableButton"),p=y("FlexTableRow"),v=y("Bootstrap5Pagination");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",x3n,m(e.$t("administration.users.author_detail.settlements.table.header.date")),1),c("div",O3n,m(e.$t("administration.users.author_detail.settlements.table.header.invoice")),1),c("div",L3n,m(e.$t("administration.users.author_detail.settlements.table.header.to_pay")),1),c("div",M3n,m(e.$t("administration.users.author_detail.settlements.table.header.status")),1),t[2]||(t[2]=c("div",{class:"col-12 col-md-1"},null,-1))]),_:1}),c("div",{class:J({"vl-parent mh-8":n.showLoading})},[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=_=>e.loading=_),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),!e.settlements.data.length&&!e.loading?(h(),g("div",N3n,[c("h4",R3n,m(e.$t("administration.users.author_detail.settlements.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(e.settlements.data,(_,k)=>(h(),g("div",{key:k},[b(p,{class:J({"border-none":k==e.settlements.data.length-1})},{default:F(()=>[c("div",j3n,m(r.fromMonth(_.from)),1),c("div",F3n,[b(l,{number:_.commission_invoice.number,href:_.commission_invoice.pdf_url,loading:e.actionLoading||e.loading,onRegenerate:C=>r.regenerate(_.commission_invoice)},null,8,["number","href","loading","onRegenerate"])]),c("div",z3n,m(_.total_to_pay+",-"),1),c("div",U3n,[_.status==="pay"?(h(),g("button",{key:0,class:"btn btn-primary btn-sm",onClick:C=>r.sendPayment(_)},[(e.actionLoading||e.loading)&&i.settlementIdLoading===_.id?(h(),W(d,{key:0,icon:"refresh",width:"16",height:"16",class:"me-2",spin:!0})):D("",!0),z(" "+m(e.$t("administration.users.author_detail.settlements.table.status.pay")),1)],8,B3n)):_.status==="paid"?(h(),W(u,{key:1,color:"success",class:"small py-2"},{default:F(()=>[z(m(e.$t("administration.users.author_detail.settlements.table.status.paid")),1)]),_:1})):_.status==="requested"?(h(),W(u,{key:2,color:"warning",class:"small py-2"},{default:F(()=>[z(m(e.$t("administration.users.author_detail.settlements.table.status.requested")+" "+_.requested_at),1)]),_:2},1024)):D("",!0)]),c("div",H3n,[b(f,null,{default:F(()=>[c("a",{href:_.sheet_url,target:"_blank",class:"dropdown-item link-secondary cursor-pointer medium d-flex align-items-center"},[b(d,{icon:"download",class:"me-2 text-primary"}),z(" "+m(e.$t("administration.users.author_detail.settlements.table.actions.export_xls")),1)],8,V3n)]),_:2},1024)])]),_:2},1032,["class"])]))),128)),e.loading?D("",!0):(h(),W(v,{key:2,class:"mt-4",data:e.settlements,onPaginationChangePage:t[1]||(t[1]=_=>e.$emit("page",_)),limit:1,align:"center"},null,8,["data"]))],2)])}const Y3n=U(D3n,[["render",q3n]]),W3n={components:{AuthorSettlementsTable:Y3n,Loading:Rt,TableSearchWithQuery:tr},props:{id:Number,query:{type:Object,default(){return{search:null,page:1,year:null,status:null}}}},computed:{...Oe({loading:"administrationUserTables/getAuthorSettlementsLoading",first_settlement_date:"administrationUserTables/getFirstSettlement"})},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationUserTables/authorSettlements",{id:this.id,filters:this.filterValues()})},changePage(e){this.page=e},filterValues(){return jo.filterValues({...this.filters},this.page)},regenerate(e){this.$store.dispatch("administrationUserTables/regenerate",{id:this.id,filters:this.filterValues(),invoice:e,dispatchMethod:"authorSettlements"})},sendPayment(e){this.$store.dispatch("administrationUserTables/sendSettlementPayment",{id:this.id,filters:this.filterValues(),settlement:e.id,dispatchMethod:"authorSettlements"})}},data(){return{primaryColor:window.primaryColor,timezone:mr.timezone,page:1,filters:{search:{placeholder:this.$t("administration.users.author_detail.settlements.filter.search"),value:null},year:{placeholder:this.$t("administration.users.author_detail.settlements.filter.date"),name:"year",value:null},checkboxes:[{name:"status",title:this.$t("administration.users.author_detail.settlements.filter.status.title"),options:this.$tm("administration.users.author_detail.settlements.filter.status.options"),checked:[]}]}}}},G3n={class:"vl-parent"},Z3n={class:"row"},K3n={class:"col-12"},J3n={class:"col-12 mt-3"};function X3n(e,t,n,o,i,r){const s=y("Loading"),a=y("TableSearchWithQuery"),l=y("AuthorSettlementsTable");return h(),g("div",G3n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",Z3n,[c("div",K3n,[b(a,{query:n.query,filters:i.filters,"min-date":e.first_settlement_date,page:i.page,"onUpdate:page":t[1]||(t[1]=d=>i.page=d),onChangeFilter:r.onFilterChange},null,8,["query","filters","min-date","page","onChangeFilter"])]),c("div",J3n,[b(l,{id:n.id,onPage:r.changePage,onRegenerate:r.regenerate,onSendPayment:r.sendPayment},null,8,["id","onPage","onRegenerate","onSendPayment"])])])])}const Q3n=U(W3n,[["render",X3n]]),ekn={components:{ToggleButton:eb,SettingsItem:Ece,SettingsBox:Ice,Loading:Rt},data(){return{primaryColor:window.primaryColor,togglesLoading:{verified:!1,author:!1,hmat:!1,mmat:!1}}},methods:{edit(){this.$store.dispatch("sidebar/open",{type:"user-update"})}},computed:{...Oe({user:"administrationUser/getDetail",loading:"administrationUser/getDetailLoading"}),isVerified:{get(){return this.user.verified},set(e){this.togglesLoading.verified||(this.togglesLoading.verified=!0,this.$store.dispatch("administrationUser/updateUserIsVerified",{user:this.user,isVerified:e}).finally(()=>{this.togglesLoading.verified=!1}))}},isAuthor:{get(){return this.user.role==="author"},set(e){this.togglesLoading.author||(this.togglesLoading.author=!0,this.$store.dispatch("administrationUser/updateUserIsAuthor",{user:this.user,isAuthor:e}).finally(()=>{this.togglesLoading.author=!1}))}},isHmat:{get(){return this.user.is_hmat},set(e){this.togglesLoading.author||(this.togglesLoading.hmat=!0,this.$store.dispatch("administrationUser/updateUserIsHmat",{user:this.user,isHmat:e}).finally(()=>{this.togglesLoading.hmat=!1}))}},isMmat:{get(){return this.user.is_mmat},set(e){this.togglesLoading.author||(this.togglesLoading.mmat=!0,this.$store.dispatch("administrationUser/updateUserIsMmat",{user:this.user,isMmat:e}).finally(()=>{this.togglesLoading.mmat=!1}))}}}},tkn={class:"row justify-content-center"},nkn={class:"col-12 col-lg-10 vl-parent"};function okn(e,t,n,o,i,r){const s=y("Loading"),a=y("SettingsItem"),l=y("SettingsBox"),d=y("ToggleButton");return h(),g("div",tkn,[c("div",nkn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(l,null,{default:F(()=>[b(a,null,{title:F(()=>[z(m(e.$t("administration.users.author_detail.settings.edit.title")),1)]),text:F(()=>[z(m(e.$t("administration.users.author_detail.settings.edit.text")),1)]),button:F(()=>[c("button",{class:"btn btn-primary btn-sm",onClick:t[1]||(t[1]=(...u)=>r.edit&&r.edit(...u))},m(e.$t("administration.users.author_detail.settings.edit.button")),1)]),_:1})]),_:1}),b(l,{class:"mt-4"},{default:F(()=>[b(a,null,{title:F(()=>[z(m(e.$t("administration.users.author_detail.settings.verified.title")),1)]),text:F(()=>[z(m(e.$t("administration.users.author_detail.settings.verified.text")),1)]),button:F(()=>[b(d,{loading:i.togglesLoading.verified,value:r.isVerified,"onUpdate:value":t[2]||(t[2]=u=>r.isVerified=u),id:"verified"},null,8,["loading","value"])]),_:1}),b(a,null,{title:F(()=>[z(m(e.$t("administration.users.author_detail.settings.mmat.title")),1)]),text:F(()=>[z(m(e.$t("administration.users.author_detail.settings.mmat.text")),1)]),button:F(()=>[b(d,{loading:i.togglesLoading.mmat,value:r.isMmat,"onUpdate:value":t[3]||(t[3]=u=>r.isMmat=u),id:"mmat"},null,8,["loading","value"])]),_:1}),b(a,null,{title:F(()=>[z(m(e.$t("administration.users.author_detail.settings.hmat.title")),1)]),text:F(()=>[z(m(e.$t("administration.users.author_detail.settings.hmat.text")),1)]),button:F(()=>[b(d,{loading:i.togglesLoading.hmat,value:r.isHmat,"onUpdate:value":t[4]||(t[4]=u=>r.isHmat=u),id:"hmat"},null,8,["loading","value"])]),_:1})]),_:1}),b(l,{class:"mt-4"},{default:F(()=>[b(a,null,{title:F(()=>[z(m(e.$t("administration.users.author_detail.settings.role.title")),1)]),text:F(()=>[z(m(e.$t("administration.users.author_detail.settings.role.text")),1)]),button:F(()=>[b(d,{loading:i.togglesLoading.author,value:r.isAuthor,"onUpdate:value":t[5]||(t[5]=u=>r.isAuthor=u),id:"author"},null,8,["loading","value"])]),_:1})]),_:1})])])}const ikn=U(ekn,[["render",okn]]),rkn={props:{title:String}},skn={class:"d-flex flex-column flex-lg-row justify-content-between"},akn={class:"mb-0 d-inline"};function lkn(e,t,n,o,i,r){return h(),g("div",skn,[c("h2",akn,m(n.title),1),Pt(e.$slots,"default")])}const ik=U(rkn,[["render",lkn]]),ckn={components:{TableSearchWithQuery:tr},props:{page:Number,query:{type:Object,default(){return{page:1,search:null,registered:null}}}},computed:{pageModel:{get(){return this.page},set(e){this.$emit("update:page",e)}}},data(){return{filters:{search:{placeholder:this.$t("administration.school.list.search.placeholder"),value:null},checkboxes:[{name:"registered",title:this.$t("administration.school.list.filter.registered.title"),options:this.$tm("administration.school.list.filter.registered.option"),checked:[]}]}}},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationSchool/list",{filters:this.filterValues()})},filterValues(){return jo.filterValues(this.filters,this.query.page)}}};function dkn(e,t,n,o,i,r){const s=y("TableSearchWithQuery");return h(),g("div",null,[b(s,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,page:r.pageModel,"onUpdate:page":t[0]||(t[0]=a=>r.pageModel=a),loading:!1},null,8,["filters","query","onChangeFilter","page"])])}const ukn=U(ckn,[["render",dkn]]),hkn={props:{school:Object}},fkn={class:"text-truncate mb-0"},mkn={class:"small text-gray-600 text-truncate mb-0"};function pkn(e,t,n,o,i,r){const s=y("router-link");return h(),W(s,{to:{path:"/administration/school/detail/"+n.school.id},class:"d-block link-dark text-truncate text-decoration-underline-hover"},{default:F(()=>[c("p",fkn,m(n.school.long_name),1),c("p",mkn,m(n.school.address+", "+n.school.postcode+" "+n.school.city),1)]),_:1},8,["to"])}const gkn=U(hkn,[["render",pkn]]),vkn={components:{Loading:Rt,Bootstrap5Pagination:Ri,SchoolSearch:ukn,FlexTableHead:ti,FlexTableRow:ni,SchoolBlock:gkn,UserBlockDropdown:Nl,AppIcon:Ue},props:{query:Object},data(){return{primaryColor:window.primaryColor,page:1}},computed:{...Oe({loading:"administrationSchool/getLoading",list:"administrationSchool/getList"})},methods:{setPage(e){this.page=e}}},_kn={class:"vl-parent mh-8"},ykn={class:"col-12 col-md-3 text-truncate"},bkn={class:"col-12 col-md-2 text-truncate"},kkn={class:"col-12 col-md-2 text-truncate"},wkn={class:"col-12 col-md-2 text-truncate"},$kn={class:"col-12 col-md-2 text-truncate"},Ckn={class:"col-12 col-md-1 text-truncate text-center"},Skn={key:0},Tkn={class:"text-center mt-4"},Ekn={class:"col-12 col-md-3"},Ikn={class:"col-12 col-md-2"},Pkn={key:1},Akn={class:"col-12 col-md-2"},Dkn={class:"col-12 col-md-2"},xkn={class:"col-12 col-md-2"},Okn={class:"col-12 col-md-1 d-flex justify-content-center"};function Lkn(e,t,n,o,i,r){const s=y("Loading"),a=y("SchoolSearch"),l=y("FlexTableHead"),d=y("SchoolBlock"),u=y("UserBlockDropdown"),f=y("AppIcon"),p=y("FlexTableRow"),v=y("router-link"),_=y("Bootstrap5Pagination"),k=an("tooltip");return h(),g("div",_kn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=C=>e.loading=C),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{query:n.query,page:i.page,"onUpdate:page":t[1]||(t[1]=C=>i.page=C),class:"mb-3"},null,8,["query","page"]),b(l,null,{default:F(()=>[c("div",ykn,m(e.$t("administration.school.list.table.header.school")),1),c("div",bkn,m(e.$t("administration.school.list.table.header.admin")),1),c("div",kkn,m(e.$t("administration.school.list.table.header.student")),1),c("div",wkn,m(e.$t("administration.school.list.table.header.order")),1),c("div",$kn,m(e.$t("administration.school.list.table.header.teacher")),1),c("div",Ckn,m(e.$t("administration.school.list.table.header.registered")),1)]),_:1}),e.list.data&&!e.list.data.length?(h(),g("div",Skn,[c("h4",Tkn,m(e.$t("administration.school.list.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(e.list.data,(C,$)=>(h(),W(v,{key:$,to:{path:`/administration/school/detail/${C.id}`},onClickCapture:t[2]||(t[2]=E=>e.$store.dispatch("administrationSiteNavigation/setBackPath",{path:e.$route.fullPath})),class:"link-dark"},{default:F(()=>[b(p,{class:J({"border-none":$==e.list.data.length-1})},{default:F(()=>[c("div",Ekn,[b(d,{school:C},null,8,["school"])]),c("div",Ikn,[C.manager?(h(),W(u,{key:0,user:C.manager},null,8,["user"])):(h(),g("span",Pkn,m(e.$t("public.dash")),1))]),c("div",Akn,m(C.capacity?C.capacity:e.$t("public.dash")),1),c("div",Dkn,m(C.order_count?C.order_count:e.$t("public.dash")),1),c("div",xkn,m(C.employees_count?C.employees_count:e.$t("public.dash")),1),c("div",Okn,[C.registered?xe((h(),W(f,{key:0,icon:"check-circle",class:"icon-size"},null,512)),[[k,{content:e.$t("administration.school.state.registered"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0)])]),_:2},1032,["class"])]),_:2},1032,["to"]))),128)),e.loading?D("",!0):(h(),W(_,{key:2,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.setPage,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])}const Mkn=U(vkn,[["render",Lkn]]),Nkn={components:{AppIcon:Ue},methods:{openSideSchoolAdd(){this.$store.dispatch("sidebar/open",{type:"school-create"})}}};function Rkn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-sm btn-tertiary btn-center",onClick:t[0]||(t[0]=(...a)=>r.openSideSchoolAdd&&r.openSideSchoolAdd(...a))},[z(m(e.$t("administration.school.add.button"))+" ",1),b(s,{icon:"plus-circle",class:"ms-icon"})])}const jkn=U(Nkn,[["render",Rkn]]),Fkn={components:{PageHeader:ik,SchoolTable:Mkn,SchoolCreateButton:jkn},props:{query:Object}},zkn={class:"d-flex justify-content-end mb-3"};function Ukn(e,t,n,o,i,r){const s=y("PageHeader"),a=y("SchoolCreateButton"),l=y("SchoolTable");return h(),g("div",null,[b(s,{title:e.$t("administration.school.list.header.title"),class:"mb-6"},null,8,["title"]),c("div",zkn,[b(a)]),b(l,{query:n.query},null,8,["query"])])}const Bkn=U(Fkn,[["render",Ukn]]),Hkn={components:{AppIcon:Ue},methods:{openSideSchoolUpdate(){this.$store.dispatch("sidebar/open",{type:"school-update"})}}};function Vkn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-sm btn-tertiary btn-center",onClick:t[0]||(t[0]=(...a)=>r.openSideSchoolUpdate&&r.openSideSchoolUpdate(...a))},[z(m(e.$t("administration.school.edit.button"))+" ",1),b(s,{icon:"edit",class:"ms-icon"})])}const qkn=U(Hkn,[["render",Vkn]]),Ykn={components:{DetailHeader:F6,SchoolUpdateButton:qkn},computed:{...Oe({backPath:"administrationSiteNavigation/getBackPath"})},mounted(){this.backPath||this.$store.dispatch("administrationSiteNavigation/setBackPath",{path:this.$router.resolve({path:"/administration/school/list"}).href})}};function Wkn(e,t,n,o,i,r){const s=y("SchoolUpdateButton"),a=y("DetailHeader");return h(),W(a,{"back-button-path":e.backPath,class:"border-bottom-2"},{title:F(()=>[z(m(e.$t("administration.school.detail.header.title")),1)]),buttons:F(()=>[b(s)]),_:1},8,["back-button-path"])}const Gkn=U(Ykn,[["render",Wkn]]),Zkn={components:{AppIcon:Ue,LabelAndTextWithCopyDropdown:_ce},props:{label:{type:String,default(){return null}},text:{type:[String,Number],default(){return null}},dropdown:{type:Boolean,default:!0}},methods:{edit(){this.$store.dispatch("sidebar/open",{type:"school-update"})}}};function Kkn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("LabelAndTextWithCopyDropdown");return h(),W(a,{label:n.label,text:n.text,dropdown:n.dropdown},{buttons:F(()=>[c("button",{class:"dropdown-item d-flex align-items-center btn btn-link medium rounded-0",onClick:t[0]||(t[0]=(...l)=>r.edit&&r.edit(...l))},[b(s,{icon:"edit",class:"ms-icon"}),z(" "+m(e.$t("administration.edit")),1)])]),_:1},8,["label","text","dropdown"])}const Jkn=U(Zkn,[["render",Kkn]]),Xkn={components:{CircleButtonWithIconOnly:Ag,TransitionCollapseHeight:qo,SchoolLabelTextEdit:Jkn,AppIcon:Ue},data(){return{opened:!1}},computed:{...Oe({school:"administrationSchool/getDetail"})}},Qkn={class:"p-3 bg-gray-300 border-radius-5px"},ewn={class:"d-flex align-items-start justify-content-between"},twn={class:"fw-bold mb-2"},nwn={class:"medium"},own={key:0,class:"medium mt-3"},iwn={class:"mb-2"},rwn={class:"mt-3 mb-2"};function swn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("CircleButtonWithIconOnly"),l=y("SchoolLabelTextEdit"),d=y("TransitionCollapseHeight"),u=an("tooltip");return h(),g("div",Qkn,[c("div",ewn,[c("p",twn,[z(m(e.school.long_name)+" ",1),e.school.registered?xe((h(),W(s,{key:0,icon:"check-circle",class:"icon-size"},null,512)),[[u,{content:e.$t("administration.school.state.registered"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0)]),c("div",{onClick:t[0]||(t[0]=f=>i.opened=!i.opened)},[b(a,{icon:"document",class:J([i.opened?"btn-primary":"btn-secondary"])},null,8,["class"])])]),c("div",nwn,[b(l,{label:e.$t("administration.school.detail.info.address"),text:e.school.address+", "+e.school.postcode+" "+e.school.city},null,8,["label","text"]),b(l,{label:e.$t("administration.school.detail.info.capacity"),text:e.school.capacity},null,8,["label","text"]),b(l,{label:e.$t("administration.school.detail.info.ico"),text:e.school.ico},null,8,["label","text"]),b(l,{label:e.$t("administration.users.detail.info.email_accounting"),text:e.school.accounting_email},null,8,["label","text"])]),b(d,null,{default:F(()=>[i.opened?(h(),g("div",own,[c("h5",iwn,m(e.$t("public.more_data")),1),b(l,{label:e.$t("administration.school.detail.info.vat"),text:e.school.vat_id},null,8,["label","text"]),b(l,{label:e.$t("administration.school.detail.info.izo"),text:e.school.izo},null,8,["label","text"]),b(l,{label:e.$t("administration.school.detail.info.red_izo"),text:e.school.red_izo},null,8,["label","text"]),e.school.invoice_company?(h(),g(pe,{key:0},[c("h5",rwn,m(e.$t("administration.school.detail.invoice_info.title")),1),b(l,{label:e.$t("administration.school.detail.invoice_info.invoice_company"),text:e.school.invoice_company},null,8,["label","text"]),b(l,{label:e.$t("administration.school.detail.invoice_info.invoice_address"),text:e.school.invoice_address},null,8,["label","text"]),b(l,{label:e.$t("administration.school.detail.invoice_info.invoice_city"),text:e.school.invoice_city},null,8,["label","text"]),b(l,{label:e.$t("administration.school.detail.invoice_info.invoice_psc"),text:e.school.invoice_psc},null,8,["label","text"]),b(l,{label:e.$t("administration.school.detail.invoice_info.invoice_ico"),text:e.school.invoice_ico},null,8,["label","text"]),b(l,{label:e.$t("administration.school.detail.invoice_info.invoice_dic"),text:e.school.invoice_dic},null,8,["label","text"])],64)):D("",!0)])):D("",!0)]),_:1})])}const awn=U(Xkn,[["render",swn]]),lwn={components:{AppIcon:Ue},computed:{...Oe({school:"administrationSchool/getDetail"})},methods:{update(){this.$store.dispatch("sidebar/open",{type:"school-credit-update"})},extendCredit(){this.$store.dispatch("sidebar/open",{type:"school-credit-expiry-extend"})}}},cwn={key:0,class:"w-12dot5rem border border-radius-5px p-3"},dwn={class:"small text-gray-600 mb-0"},uwn={class:"d-flex justify-content-between align-items-center pb-2"},hwn={class:"fw-bold"},fwn={class:"border-top pt-2"},mwn={class:"text-center"},pwn={class:"fs-6 text-gray-700"};function gwn(e,t,n,o,i,r){const s=y("AppIcon");return e.school.registered?(h(),g("div",cwn,[c("p",dwn,m(e.$t("administration.school.detail.info.credit")),1),c("div",uwn,[c("span",hwn,m(e.school.budget+",- "+e.$t("currency.short")),1),c("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[0]||(t[0]=(...a)=>r.update&&r.update(...a))},[b(s,{icon:"edit",class:"text-primary cursor-pointer"})])]),c("div",fwn,[c("div",mwn,[c("span",pwn,m(e.$t("administration.school.detail.credit.expires_at",{expires_at:e.school.credit_expiry_date?e.school.credit_expiry_date:"NULL"})),1),c("button",{class:"btn btn-sm btn-tertiary fs-6",onClick:t[1]||(t[1]=(...a)=>r.extendCredit&&r.extendCredit(...a))},m(e.$t("administration.school.detail.credit.extend")),1)])])])):D("",!0)}const vwn=U(lwn,[["render",gwn]]),_wn={components:{AdminNote:pce},computed:{...Oe({school:"administrationSchool/getDetail"})},methods:{open(){this.$store.dispatch("sidebar/open",{type:"school-admin-note-update",data:{school:this.school}})}}};function ywn(e,t,n,o,i,r){const s=y("AdminNote");return h(),W(s,{note:e.school.admin_note,onOpen:r.open,padding:"3"},null,8,["note","onOpen"])}const bwn=U(_wn,[["render",ywn]]),Pce={detail:{routes:["administration/school/detail/list/user","administration/school/detail/list/finance","administration/school/detail/list/product"],finance:{routes:["administration/school/detail/list/finance/order","administration/school/detail/list/finance/payment","administration/school/detail/list/finance/credit-transfer"]}}},kwn={components:{TabList:qr,SchoolDetailHeader:Gkn,SchoolDetailGeneral:awn,SchoolDetailCredit:vwn,Loading:Rt,SchoolAdminNote:bwn},props:{id:Number},computed:{...Oe({loading:"administrationSchool/getLoading",school:"administrationSchool/getDetail"})},data(){return{tab:{titles:Object.values(this.$tm("administration.school.detail.tab")),routes:Pce.detail.routes},primaryColor:window.primaryColor}},methods:{loadDetail(e){this.$store.dispatch("administrationSchool/detail",{id:e})}},mounted(){this.loadDetail(this.id)}},wwn={class:"vl-parent"},$wn={class:"d-flex flex-wrap justify-content-between mb-4 gap-4"},Cwn={class:"flex-grow-1 d-flex gap-4 flex-wrap"},Swn={class:"col"},Twn={key:0};function Ewn(e,t,n,o,i,r){const s=y("SchoolDetailHeader"),a=y("Loading"),l=y("SchoolDetailGeneral"),d=y("SchoolAdminNote"),u=y("SchoolDetailCredit"),f=y("TabList"),p=y("router-view");return h(),g("div",null,[b(s,{class:"mb-4"}),c("div",wwn,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=v=>e.loading=v),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",$wn,[c("div",Cwn,[b(l,{class:"col-5"}),c("div",Swn,[b(d)])]),c("div",null,[b(u)])]),!e.loading&&e.school.registered?(h(),g("div",Twn,[b(f,{titles:i.tab.titles,routes:i.tab.routes,class:"mb-3"},null,8,["titles","routes"]),b(p,{id:e.school.id},null,8,["id"])])):D("",!0)])])}const Iwn=U(kwn,[["render",Ewn]]),Pwn={components:{AppIcon:Ue},methods:{add(){this.$store.dispatch("sidebar/open",{type:"school-employee-create"})}}};function Awn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[0]||(t[0]=(...a)=>r.add&&r.add(...a))},[z(m(e.$t("administration.school.detail.list.user.add.button"))+" ",1),b(s,{icon:"plus-circle",class:"ms-icon"})])}const Dwn=U(Pwn,[["render",Awn]]),xwn={components:{AppIcon:Ue},props:{employee:{type:Object,default(){return null}}},methods:{managerRoleAdd(){this.$store.dispatch("administrationSchoolEmployee/managerRoleAdd",{employee:this.employee})},managerRoleRemove(){this.$store.dispatch("administrationSchoolEmployee/managerRoleRemove",{employee:this.employee})}}},Own={class:"medium text-gray-900"},Lwn={class:"medium text-gray-900"};function Mwn(e,t,n,o,i,r){const s=y("AppIcon");return n.employee.is_manager?(h(),g("button",{key:1,onClick:t[1]||(t[1]=(...a)=>r.managerRoleRemove&&r.managerRoleRemove(...a)),class:"btn-danger btn-tertiary dropdown-item d-flex align-items-center"},[b(s,{icon:"user",class:"me-2"}),c("span",Lwn,m(e.$t("school.admin.school.tabs.employees.remove_manager_role")),1)])):(h(),g("button",{key:0,class:"dropdown-item btn-tertiary d-flex align-items-center",onClick:t[0]||(t[0]=(...a)=>r.managerRoleAdd&&r.managerRoleAdd(...a))},[b(s,{icon:"user",class:"me-2"}),c("span",Own,m(e.$t("school.admin.school.tabs.employees.add_manager_role")),1)]))}const Nwn=U(xwn,[["render",Mwn]]),Rwn={components:{TableButton:Za,SchoolEmployeeDeleteButton:Jle,SchoolEmployeeManagerRoleButton:Nwn,SchoolEmployeeConfirmButton:Gle,SchoolEmployeeDeclineButton:Kle,SchoolEmployeeCreditUpdateButton:Zle},props:{employee:Object},computed:{...Oe({school:"administrationSchool/getDetail"})}};function jwn(e,t,n,o,i,r){const s=y("SchoolEmployeeConfirmButton"),a=y("SchoolEmployeeDeclineButton"),l=y("SchoolEmployeeCreditUpdateButton"),d=y("SchoolEmployeeManagerRoleButton"),u=y("SchoolEmployeeDeleteButton"),f=y("TableButton");return h(),W(f,{class:J({"d-none":n.employee.status=="left"})},{default:F(()=>[n.employee.status=="left"?(h(),g(pe,{key:0},[],64)):n.employee.status=="waiting"?(h(),g(pe,{key:1},[b(s,{employee:n.employee,"is-admin-app":""},null,8,["employee"]),b(a,{employee:n.employee,"is-admin-app":""},null,8,["employee"])],64)):(h(),g(pe,{key:2},[b(l,{employee:n.employee,"school-budget-to-divide":e.school.budget_to_divide,"is-admin-app":""},null,8,["employee","school-budget-to-divide"]),b(d,{employee:n.employee},null,8,["employee"]),b(u,{employee:n.employee,"is-admin-app":""},null,8,["employee"])],64))]),_:1},8,["class"])}const Fwn=U(Rwn,[["render",jwn]]),zwn={components:{TableSearchWithQuery:tr},props:{id:Number,page:Number,query:{type:Object,default(){return{page:1,search:null,type:null}}}},computed:{pageModel:{get(){return this.page},set(e){this.$emit("update:page",e)}}},data(){return{filters:{search:{placeholder:this.$t("administration.school.detail.list.user.search.placeholder"),value:null},checkboxes:[{name:"type",title:this.$t("administration.school.detail.list.user.table.header.state"),options:this.$tm("school.employees.status"),checked:[]}]}}},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationSchoolEmployee/index",{id:this.id,filters:this.filterValues()})},filterValues(){return jo.filterValues(this.filters,this.query.page)}}};function Uwn(e,t,n,o,i,r){const s=y("TableSearchWithQuery");return h(),g("div",null,[b(s,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,page:r.pageModel,"onUpdate:page":t[0]||(t[0]=a=>r.pageModel=a),loading:!1},null,8,["filters","query","onChangeFilter","page"])])}const Bwn=U(zwn,[["render",Uwn]]),Hwn={components:{FlexTableHead:ti,FlexTableRow:ni,Loading:Rt,UserBlockDropdown:Nl,Bootstrap5Pagination:Ri,SchoolEmployeeTableButton:Fwn,SchoolEmployeeStatusPill:Wle,SchoolEmployeeSearch:Bwn},props:{id:Number,query:Object},data(){return{primaryColor:window.primaryColor,page:1}},computed:{...Oe({loading:"administrationSchoolEmployee/getLoading",list:"administrationSchoolEmployee/getIndex",school:"administrationSchool/getDetail"})},methods:{notActive(e){return e.status==="blocked"||e.status==="left"||e.status==="waiting"},setPage(e){this.page=e}}},Vwn={class:"vl-parent mh-8"},qwn={class:"col-12 col-md-3"},Ywn={class:"col-12 col-md-2"},Wwn={class:"col-12 col-md-7"},Gwn={key:0},Zwn={class:"text-center mt-4"},Kwn={class:"col-12 col-md-3"},Jwn={class:"col-12 col-md-2"},Xwn={class:"col-12 col-md-7 d-flex justify-content-between"},Qwn={class:"small text-gray-600"},e8n={key:0},t8n={key:1};function n8n(e,t,n,o,i,r){const s=y("Loading"),a=y("SchoolEmployeeSearch"),l=y("FlexTableHead"),d=y("UserBlockDropdown"),u=y("SchoolEmployeeStatusPill"),f=y("SchoolEmployeeTableButton"),p=y("FlexTableRow"),v=y("Bootstrap5Pagination"),_=an("tooltip");return h(),g("div",Vwn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=k=>e.loading=k),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{id:n.id,query:n.query,page:i.page,"onUpdate:page":t[1]||(t[1]=k=>i.page=k),class:"mb-3"},null,8,["id","query","page"]),b(l,null,{default:F(()=>[c("div",qwn,m(e.$t("administration.school.detail.list.user.table.header.colleague")),1),c("div",Ywn,m(e.$t("administration.school.detail.list.user.table.header.state")),1),c("div",Wwn,m(e.$t("administration.school.detail.list.user.table.header.balance")),1)]),_:1}),e.list.data&&!e.list.data.length?(h(),g("div",Gwn,[c("h4",Zwn,m(e.$t("administration.school.detail.list.user.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(e.list.data,(k,C)=>(h(),W(p,{key:C,class:J({"border-none":C==e.list.data.length-1})},{default:F(()=>[c("div",Kwn,[b(d,{user:k},null,8,["user"])]),c("div",Jwn,[b(u,{employee:k},null,8,["employee"])]),c("div",Xwn,[c("div",null,[c("div",null,m(r.notActive(k)?e.$t("public.dash"):Number(k.budget).toLocaleString()+" "+e.$t("currency.short")),1),c("div",Qwn,[r.notActive(k)?(h(),g("span",e8n,m(e.$t("public.dash")),1)):xe((h(),g("span",t8n,[z(m(e.$t("school.employees.table.spent.title")+": "+Number(k.spent).toLocaleString()+" "+e.$t("currency.short")),1)])),[[_,{content:e.$t("school.employees.table.spent.tooltip"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])]),b(f,{employee:k},null,8,["employee"])])]),_:2},1032,["class"]))),128)),e.loading?D("",!0):(h(),W(v,{key:2,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.setPage,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])}const o8n=U(Hwn,[["render",n8n]]),i8n={components:{SchoolEmployeeCreateButton:Dwn,SchoolEmployeeTable:o8n},props:{id:Number,query:Object}},r8n={class:"d-flex justify-content-end mb-3"};function s8n(e,t,n,o,i,r){const s=y("SchoolEmployeeCreateButton"),a=y("SchoolEmployeeTable");return h(),g("div",null,[c("div",r8n,[b(s)]),b(a,{id:n.id,query:n.query},null,8,["id","query"])])}const a8n=U(i8n,[["render",s8n]]),l8n={components:{TabList:qr},data(){return{tab:{titles:Object.values(this.$tm("administration.school.detail.list.finance.tab")),routes:Pce.detail.finance.routes}}}};function c8n(e,t,n,o,i,r){const s=y("TabList"),a=y("router-view");return h(),g("div",null,[b(s,{titles:i.tab.titles,routes:i.tab.routes,class:"mb-3"},null,8,["titles","routes"]),b(a)])}const d8n=U(l8n,[["render",c8n]]),u8n={components:{InvoiceDownloadLink:bp,FlexTableHead:ti,FlexTableRow:ni,OrderTableButton:$ce,Bootstrap5Pagination:Ri,UserBlockDropdown:Nl,Pill:Ni},data(){return{primaryColor:window.primaryColor,invoiceIdLoading:null}},props:{orders:Object,loading:Boolean,actionLoading:Boolean,showLoading:{type:Boolean,default:!1}},methods:{regenerate(e){this.loading||this.actionLoading||(this.invoiceIdLoading=null,this.$emit("regenerate",e))}}},h8n={class:"col-12 col-md-2"},f8n={class:"col-12 col-md-1"},m8n={class:"col-12 col-md-1"},p8n={class:"col-12 col-md-1"},g8n={class:"col-12 col-md-1"},v8n={class:"col-12 col-md-1"},_8n={class:"col-12 col-md-1"},y8n={class:"col-12 col-md-3"},b8n={key:0},k8n={class:"text-center mt-4"},w8n={class:"col-12 col-md-1"},$8n={class:"col-12 col-md-2"},C8n={class:"col-12 col-md-1"},S8n={class:"col-12 col-md-1"},T8n={key:1},E8n={class:"col-12 col-md-1"},I8n={class:"col-12 col-md-1"},P8n={class:"col-12 col-md-1"},A8n={class:"col-12 col-md-1"},D8n={class:"col-12 col-md-3 d-flex justify-content-between align-items-center"};function x8n(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("UserBlockDropdown"),l=y("InvoiceDownloadLink"),d=y("Pill"),u=y("OrderTableButton"),f=y("FlexTableRow"),p=y("Bootstrap5Pagination");return h(),g("div",null,[b(s,null,{default:F(()=>[t[2]||(t[2]=c("div",{class:"col-12 col-md-1"},m("ID"),-1)),c("div",h8n,m(e.$t("administration.school.detail.list.finance.order.table.header.user")),1),c("div",f8n,m(e.$t("administration.school.detail.list.finance.order.table.header.proforma_invoice")),1),c("div",m8n,m(e.$t("administration.school.detail.list.finance.order.table.header.invoice")),1),c("div",p8n,m(e.$t("administration.school.detail.list.finance.order.table.header.type")),1),c("div",g8n,m(e.$t("administration.school.detail.list.finance.order.table.header.payment_type")),1),c("div",v8n,m(e.$t("administration.school.detail.list.finance.order.table.header.amount")),1),c("div",_8n,m(e.$t("administration.school.detail.list.finance.order.table.header.date")),1),c("div",y8n,m(e.$t("administration.school.detail.list.finance.order.table.header.payment_state")),1)]),_:1}),c("div",{class:J({"vl-parent mh-8":n.showLoading})},[n.orders.data&&!n.orders.data.length?(h(),g("div",b8n,[c("h4",k8n,m(e.$t("administration.school.detail.list.finance.order.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(n.orders.data,(v,_)=>(h(),W(f,{key:_,class:J({"border-none":_==n.orders.data.length-1,"text-gray-700":v.deleted_at})},{default:F(()=>[c("div",w8n,m(v.id),1),c("div",$8n,[v.type=="orders_summary"?(h(),g(pe,{key:0},[z(m(e.$t("public.dash")),1)],64)):(h(),g(pe,{key:1},[v.user.id?(h(),W(a,{key:0,user:v.user,class:J({"muted-img":v.deleted_at})},null,8,["user","class"])):(h(),g(pe,{key:1},[z(m(e.$t("public.dash")),1)],64))],64))]),c("div",C8n,[v.proforma_invoice?(h(),W(l,{key:0,number:v.proforma_invoice.number,href:v.proforma_invoice.pdf_url,loading:n.actionLoading||n.loading,"deleted-at":v.deleted_at,onRegenerate:k=>r.regenerate(v.proforma_invoice)},null,8,["number","href","loading","deleted-at","onRegenerate"])):(h(),g(pe,{key:1},[z(m(e.$t("public.dash")),1)],64))]),c("div",S8n,[v.invoice?(h(),W(l,{key:0,number:v.invoice.number,href:v.invoice.pdf_url,loading:n.actionLoading||n.loading,"deleted-at":v.deleted_at,onRegenerate:k=>r.regenerate(v.invoice)},null,8,["number","href","loading","deleted-at","onRegenerate"])):(h(),g("div",T8n,m(e.$t("public.dash")),1))]),c("div",E8n,m(e.$tm("school.manager.tabs.finances.invoices.type")[v.type]),1),c("div",I8n,[v.payment_type?(h(),g(pe,{key:0},[z(m(e.$tm("administration.finance.order.table.content.payment")[v.payment_type]),1)],64)):(h(),g(pe,{key:1},[z(m(e.$t("public.dash")),1)],64))]),c("div",P8n,m(v.amount+" "+e.$t("currency.short")),1),c("div",A8n,m(v.created_at?v.created_at:e.$t("public.dash")),1),c("div",D8n,[v.type=="orders_summary"?(h(),g(pe,{key:0},[z(m(e.$t("public.dash")),1)],64)):(h(),g(pe,{key:1},[v.deleted_at?(h(),W(d,{key:0,color:"muted"},{default:F(()=>[z(m(e.$t("administration.finance.order.table.content.status.deleted")),1)]),_:1})):v.confirmed?(h(),W(d,{key:1,color:"success"},{default:F(()=>[z(m(e.$t("administration.finance.order.table.content.status.paid")),1)]),_:1})):(h(),W(d,{key:2,color:"danger"},{default:F(()=>[z(m(e.$t("administration.finance.order.table.content.status.unpaid")),1)]),_:1})),b(u,{order:v,onReload:t[0]||(t[0]=k=>e.$emit("reload"))},null,8,["order"])],64))])]),_:2},1032,["class"]))),128)),n.loading?D("",!0):(h(),W(p,{key:2,class:"mt-4 z-index-neg-1",data:n.orders,onPaginationChangePage:t[1]||(t[1]=v=>e.$emit("page",v)),limit:1,align:"center"},null,8,["data"]))],2)])}const O8n=U(u8n,[["render",x8n]]),L8n={components:{AppIcon:Ue,TableSearchWithQuery:tr,SchoolOrderTable:O8n,Loading:Rt},props:{query:{type:Object,default(){return{search:null,page:1,type:null,payment_type:null,payment_state:null,date:null}}},id:Number},computed:{...Oe({loading:"administrationSchoolOrder/getLoading",school:"administrationSchool/getDetail",list:"administrationSchoolOrder/getList",actionLoading:"administrationFinanceOrder/getActionLoading"})},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.school.detail.list.finance.order.search.placeholder"),value:null},date:{placeholder:this.$t("administration.school.detail.list.finance.order.date"),name:"order_date",value:null},checkboxes:[{name:"type",title:this.$t("administration.school.detail.list.finance.order.filter.type.title"),options:this.$tm("administration.school.detail.list.finance.order.filter.type.options"),checked:[]},{name:"payment_type",title:this.$t("administration.school.detail.list.finance.order.filter.payment_type.title"),options:this.$tm("administration.school.detail.list.finance.order.filter.payment_type.options"),checked:[]},{name:"payment_state",title:this.$t("administration.school.detail.list.finance.order.filter.payment_state.title"),options:this.$tm("administration.school.detail.list.finance.order.filter.payment_state.options"),checked:[]}]}}},methods:{load(){this.$store.dispatch("administrationSchoolOrder/list",{id:this.school.id,filters:this.filterValues()})},onFilterChange(){this.load()},changePage(e){this.page=e},filterValues(){return jo.filterValues(this.filters,this.page)},regenerate(e){this.$store.dispatch("administrationSchoolOrder/regenerate",{id:this.school.id,filters:this.filterValues(),invoice:e,dispatchMethod:"list"})},creditOrderPlace(){this.$store.dispatch("sidebar/open",{type:"school-credit-order-create-admin"})}},mounted(){window.eventBus.on("reload-orders",()=>{this.load()})}},M8n={class:"vl-parent"},N8n={class:"d-flex justify-content-end mb-3"};function R8n(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("TableSearchWithQuery"),d=y("SchoolOrderTable");return h(),g("div",M8n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",N8n,[c("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[1]||(t[1]=(...u)=>r.creditOrderPlace&&r.creditOrderPlace(...u))},[z(m(e.$t("administration.school.detail.list.finance.order.credit_order.button"))+" ",1),b(a,{icon:"document",class:"ms-icon"})])]),b(l,{class:"mb-3",query:n.query,filters:i.filters,page:i.page,"onUpdate:page":t[2]||(t[2]=u=>i.page=u),onChangeFilter:r.onFilterChange},null,8,["query","filters","page","onChangeFilter"]),b(d,{orders:e.list,loading:e.loading,"action-loading":e.actionLoading||e.loading,onPage:r.changePage,onRegenerate:r.regenerate,onReload:r.load},null,8,["orders","loading","action-loading","onPage","onRegenerate","onReload"])])}const j8n=U(L8n,[["render",R8n]]),F8n={components:{TableSearchWithQuery:tr,PaymentsTable:Sce,Loading:Rt},props:{query:{type:Object,default(){return{search:null,order_type:null,payment_type:null,page:null,date:null}}}},computed:{...Oe({loading:"administrationSchoolPayment/getLoading",list:"administrationSchoolPayment/getList",school:"administrationSchool/getDetail",actionLoading:"administrationFinanceOrder/getActionLoading"})},methods:{regenerate(e){this.$store.dispatch("administrationSchoolPayment/regenerate",{id:this.school.id,filters:this.filterValues(),invoice:e})},onFilterChange(){this.$store.dispatch("administrationSchoolPayment/payments",{id:this.school.id,filters:this.filterValues()})},changePage(e){this.page=e},filterValues(){return jo.filterValues(this.filters,this.page)}},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.payment.search.placeholder"),value:null},date:{placeholder:this.$t("administration.payment.date"),name:"created_at",value:null},checkboxes:[{name:"order_type",title:this.$t("administration.payment.filter.order_type.title"),options:this.$tm("administration.payment.filter.order_type.options"),checked:[]},{name:"payment_type",title:this.$t("administration.payment.filter.type.title"),options:this.$tm("administration.payment.filter.type.options"),checked:[]}]}}}},z8n={class:"vl-parent"},U8n={class:"row"},B8n={class:"col-12 mb-3"},H8n={class:"col-12"};function V8n(e,t,n,o,i,r){const s=y("Loading"),a=y("TableSearchWithQuery"),l=y("PaymentsTable");return h(),g("div",z8n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",U8n,[c("div",B8n,[b(a,{query:n.query,filters:i.filters,page:i.page,"onUpdate:page":t[1]||(t[1]=d=>i.page=d),onChangeFilter:r.onFilterChange},null,8,["query","filters","page","onChangeFilter"])]),c("div",H8n,[b(l,{loading:e.loading,"action-loading":e.loading||e.actionLoading,payments:e.list,onPage:r.changePage,onRegenerate:r.regenerate},null,8,["loading","action-loading","payments","onPage","onRegenerate"])])])])}const q8n=U(F8n,[["render",V8n]]),Y8n={components:{TableSearchWithQuery:tr,CreditTransfersTable:Tce,Loading:Rt},props:{query:{type:Object,default(){return{search:null,credit_transfer_type:null,page:null,date:null}}}},computed:{...Oe({loading:"administrationSchoolCreditTransfer/getLoading",list:"administrationSchoolCreditTransfer/getList",school:"administrationSchool/getDetail",actionLoading:"administrationFinanceOrder/getActionLoading"})},methods:{regenerate(e){this.$store.dispatch("administrationSchoolCreditTransfer/regenerate",{id:this.school.id,filters:this.filterValues(),invoice:e})},onFilterChange(){this.$store.dispatch("administrationSchoolCreditTransfer/creditTransfers",{id:this.school.id,filters:this.filterValues()})},changePage(e){this.page=e},filterValues(){return jo.filterValues(this.filters,this.page)}},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.credit_transfer.search.placeholder"),value:null},date:{placeholder:this.$t("administration.credit_transfer.date"),name:"created_at",value:null},checkboxes:[{name:"credit_transfer_type",title:this.$t("administration.credit_transfer.filter.type.title"),options:this.$tm("administration.credit_transfer.filter.type.options"),checked:[]}]}}}},W8n={class:"vl-parent"};function G8n(e,t,n,o,i,r){const s=y("Loading"),a=y("TableSearchWithQuery"),l=y("CreditTransfersTable");return h(),g("div",W8n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{class:"mb-3",query:n.query,filters:i.filters,page:i.page,"onUpdate:page":t[1]||(t[1]=d=>i.page=d),onChangeFilter:r.onFilterChange},null,8,["query","filters","page","onChangeFilter"]),b(l,{loading:e.loading,"action-loading":e.loading||e.actionLoading,creditTransfers:e.list,onPage:r.changePage,onRegenerate:r.regenerate},null,8,["loading","action-loading","creditTransfers","onPage","onRegenerate"])])}const Z8n=U(Y8n,[["render",G8n]]),K8n={props:{date:String,id:Number,email:String}},J8n={class:"mb-0"};function X8n(e,t,n,o,i,r){const s=y("router-link");return h(),g("span",null,[c("p",J8n,m(n.date),1),b(s,{to:{path:"/administration/users/detail/"+n.id},class:"small link-gray-600 text-truncate text-decoration-underline-hover"},{default:F(()=>[z(m(n.email),1)]),_:1},8,["to"])])}const Q8n=U(K8n,[["render",X8n]]),e4n={components:{AppIcon:Ue,TableButton:Za},props:{product:Object}},t4n=["href"],n4n={class:"text-gray-900"};function o4n(e,t,n,o,i,r){const s=y("AppIcon"),a=y("TableButton");return h(),W(a,null,{default:F(()=>[n.product.files.length>0?(h(),g("a",{key:0,class:"dropdown-item d-flex align-items-center btn-tertiary medium",target:"_blank",href:e.ziggyRoute("product.download_files",{product:this.product.id,file:this.product.files[0].id})},[b(s,{icon:"download",width:"16",height:"16",class:"me-2 text-primary"}),c("span",n4n,m(e.$t("download.download")),1)],8,t4n)):(h(),g("button",{key:1,class:"dropdown-item d-flex align-items-center link-secondary medium disabled-css cursor-default",onClick:t[0]||(t[0]=Gt(()=>{},["prevent"]))},[b(s,{icon:"download",width:"16",height:"16",class:"me-2 text-primary"}),z(" "+m(e.$t("product.no_files")),1)]))]),_:1})}const i4n=U(e4n,[["render",o4n]]),r4n={components:{InvoiceDownloadLink:bp,Loading:Rt,FlexTableHead:ti,FlexTableRow:ni,UserBlockDropdown:Nl,ProductBlock:tb,ProductBuyerBlock:Q8n,Bootstrap5Pagination:Ri,SchoolProductTableButton:i4n},props:{id:Number,showLoading:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({loading:"administrationSchoolProduct/getLoading",actionLoading:"administrationFinanceOrder/getActionLoading",list:"administrationSchoolProduct/getList"})},methods:{regenerate(e){this.$emit("regenerate",e)}}},s4n={class:"col-12 col-md-1"},a4n={class:"col-12 col-md-2"},l4n={class:"col-12 col-md-2"},c4n={class:"col-12 col-md-2"},d4n={class:"col-12 col-md-1"},u4n={class:"col-12 col-md-2"},h4n={class:"col-12 col-md-2"},f4n={key:0},m4n={class:"text-center mt-4"},p4n={class:"col-12 col-md-1"},g4n={class:"col-12 col-md-2 d-flex"},v4n={class:"col-12 col-md-2"},_4n={class:"col-12 col-md-2"},y4n={class:"col-12 col-md-1"},b4n={class:"col-12 col-md-2"},k4n={class:"col-12 col-md-2 d-flex justify-content-between align-items-center"};function w4n(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("Loading"),l=y("ProductBlock"),d=y("UserBlockDropdown"),u=y("ProductBuyerBlock"),f=y("InvoiceDownloadLink"),p=y("SchoolProductTableButton"),v=y("FlexTableRow"),_=y("Bootstrap5Pagination");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",s4n,m(e.$t("administration.school.detail.list.product.table.header.id")),1),c("div",a4n,m(e.$t("administration.school.detail.list.product.table.header.product")),1),c("div",l4n,m(e.$t("administration.school.detail.list.product.table.header.autor")),1),c("div",c4n,m(e.$t("administration.school.detail.list.product.table.header.bought")),1),c("div",d4n,m(e.$t("administration.school.detail.list.product.table.header.price")),1),c("div",u4n,m(e.$t("administration.school.detail.list.product.table.header.proformaInvoice")),1),c("div",h4n,m(e.$t("administration.school.detail.list.product.table.header.invoice")),1)]),_:1}),c("div",{class:J({"vl-parent mh-8":n.showLoading})},[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=k=>e.loading=k),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.list.data&&!e.list.data.length?(h(),g("div",f4n,[c("h4",m4n,m(e.$t("administration.school.detail.list.product.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(e.list.data,(k,C)=>(h(),W(v,{key:C,class:J({"border-none":C==e.list.data.length-1})},{default:F(()=>[c("div",p4n,m(k.product_id),1),c("div",g4n,[b(l,{id:k.product_id,"image-path":k.cover_img_thumbnail,title:k.title,createdAt:k.created_at,"is-only-on-ucitelnice":k.only_on_ucitelnice},null,8,["id","image-path","title","createdAt","is-only-on-ucitelnice"])]),c("div",v4n,[b(d,{user:k.author},null,8,["user"])]),c("div",_4n,[b(u,{date:k.bought_at,id:k.bought_by_id,email:k.bought_by},null,8,["date","id","email"])]),c("div",y4n,m(k.price+",-"),1),c("div",b4n,[b(f,{number:k.order.number,href:k.order.pdf_url,loading:e.loading||e.actionLoading,onRegenerate:$=>r.regenerate(k.order)},null,8,["number","href","loading","onRegenerate"])]),c("div",k4n,[b(f,{number:k.invoice.number,href:k.invoice.pdf_url,loading:e.loading||e.actionLoading,onRegenerate:$=>r.regenerate(k.invoice)},null,8,["number","href","loading","onRegenerate"]),b(p,{product:k},null,8,["product"])])]),_:2},1032,["class"]))),128)),e.loading?D("",!0):(h(),W(_,{key:2,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:t[1]||(t[1]=k=>e.$emit("page",k)),limit:1,align:"center"},null,8,["data"]))],2)])}const $4n=U(r4n,[["render",w4n]]),C4n={components:{TableSearchWithQuery:tr,SchoolProductTable:$4n,Loading:Rt},props:{id:Number,query:{type:Object,default(){return{page:1,search:null,date:null}}}},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.school.detail.list.product.search.placeholder"),value:null},date:{placeholder:this.$t("administration.school.detail.list.product.date"),name:"created_at",value:null}}}},methods:{changePage(e){this.page=e},onFilterChange(){this.loading||this.$store.dispatch("administrationSchoolProduct/list",{id:this.id,filters:this.filterValues()})},filterValues(){return jo.filterValues(this.filters,this.query.page)},regenerate(e){this.$store.dispatch("administrationSchoolProduct/regenerate",{id:this.id,filters:this.filterValues(),invoice:e,dispatchMethod:"list"})}},computed:{...Oe({loading:"administrationSchoolProduct/getLoading"})}},S4n={class:"vl-parent"};function T4n(e,t,n,o,i,r){const s=y("Loading"),a=y("TableSearchWithQuery"),l=y("SchoolProductTable");return h(),g("div",S4n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{class:"mb-3",filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,page:i.page,"onUpdate:page":t[1]||(t[1]=d=>i.page=d)},null,8,["filters","query","onChangeFilter","page"]),b(l,{id:n.id,onPage:r.changePage,onRegenerate:r.regenerate},null,8,["id","onPage","onRegenerate"])])}const E4n=U(C4n,[["render",T4n]]),I4n={routes:["administration/content/section","administration/content/category","administration/content/search","administration/content/blog","administration/content/product-upload-lock"]},P4n={components:{PageHeader:ik,TabList:qr},data(){return{tab:{titles:Object.values(this.$tm("administration.content.tab")),routes:I4n.routes}}}};function A4n(e,t,n,o,i,r){const s=y("PageHeader"),a=y("TabList"),l=y("router-view");return h(),g("div",null,[b(s,{title:e.$t("administration.content.header.title"),class:"mb-6"},null,8,["title"]),b(a,{titles:i.tab.titles,routes:i.tab.routes,class:"mb-2"},null,8,["titles","routes"]),b(l)])}const D4n=U(P4n,[["render",A4n]]),x4n={props:{type:{type:[String,Object],default:null}}},O4n={class:"badge rounded-pill small px-2 py-1 fw-light bg-gray-300 text-gray-700"};function L4n(e,t,n,o,i,r){const s=an("tooltip");return xe((h(),g("span",O4n,[z(m(n.type?e.$tm("administration.content.section.sort")[n.type]:e.$t("administration.content.section.sort_unknown")),1)])),[[s,{content:e.$t("administration.content.section.sort_tooltip"),delay:{show:500,hide:100},triggers:["hover","click"]}]])}const gM=U(x4n,[["render",L4n]]),Mi={getFilters(e){let t={};for(var n in e)try{t[n]=JSON.parse(e[n])}catch{t[n]=e[n]}return t}},M4n={components:{AppIcon:Ue},props:{isDropdown:{type:Boolean,default:!1},slug:{type:String,default:null}},methods:{hide(){this.$store.dispatch("administrationSection/hide",{slug:this.slug,filters:Mi.getFilters(this.$route.query)})}}};function N4n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:J([n.isDropdown?"dropdown-item d-flex align-items-center btn-tertiary medium":"btn btn-sm btn-center btn-primary small"]),onClick:t[0]||(t[0]=(...a)=>r.hide&&r.hide(...a))},[b(s,{icon:"hide",class:J([n.isDropdown?"me-2":"me-icon"])},null,8,["class"]),c("span",{class:J({"text-gray-900":n.isDropdown})},m(e.$t("administration.hide")),3)],2)}const Ace=U(M4n,[["render",N4n]]),R4n={components:{AppIcon:Ue},props:{isDropdown:{type:Boolean,default:!1},slug:{type:String,default:null}},methods:{show(){this.$store.dispatch("administrationSection/show",{slug:this.slug,filters:Mi.getFilters(this.$route.query)})}}};function j4n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:J(n.isDropdown?"dropdown-item d-flex align-items-center btn-tertiary medium":"btn btn-sm btn-center btn-primary small"),onClick:t[0]||(t[0]=(...a)=>r.show&&r.show(...a))},[b(s,{icon:"show",class:J([n.isDropdown?"me-2":"me-icon"])},null,8,["class"]),c("span",{class:J({"text-gray-900":n.isDropdown})},m(e.$t("administration.show")),3)],2)}const Dce=U(R4n,[["render",j4n]]),F4n={components:{AppIcon:Ue},props:{section:Object},methods:{update(){let e=window._.cloneDeep(this.section);this.$store.commit("administrationSection/setDetail",e),this.$store.dispatch("sidebar/open",{type:"section-update"})}},computed:{...Oe({detail:"administrationSection/getDetail"})}},z4n={class:"text-gray-900"};function U4n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item btn-tertiary medium",onClick:t[0]||(t[0]=(...a)=>r.update&&r.update(...a))},[b(s,{icon:"edit",class:"me-icon"}),c("span",z4n,m(e.$t("administration.update")),1)])}const vM=U(F4n,[["render",U4n]]),B4n={components:{AppIcon:Ue},props:{section:{type:Object,default:null}},methods:{deleteSection(){this.$store.commit("administrationSection/setDetail",this.section),this.$store.dispatch("sidebar/open",{type:"section-delete"})}}},H4n={class:J("text-gray-900")};function V4n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item d-flex align-items-center btn-danger btn-tertiary medium",onClick:t[0]||(t[0]=(...a)=>r.deleteSection&&r.deleteSection(...a))},[b(s,{icon:"delete",class:"me-2"}),c("span",H4n,m(e.$t("administration.delete")),1)])}const _M=U(B4n,[["render",V4n]]),q4n={components:{AppIcon:Ue},props:{isDropdown:{type:Boolean,default:!1},link:{type:String,default:null}},methods:{copyUrl(){this.$copyText(this.link.toString()),this.copied=!0,window.flash(this.$t("clipboard.copied"),"success"),setTimeout(()=>{this.copied=!1},2e3)}}};function Y4n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:J(n.isDropdown?"dropdown-item d-flex align-items-center btn-tertiary medium":"btn btn-sm btn-center btn-primary small"),onClick:t[0]||(t[0]=(...a)=>r.copyUrl&&r.copyUrl(...a))},[b(s,{icon:"link",class:J(n.isDropdown?"me-2":"me-icon")},null,8,["class"]),c("span",{class:J({"text-gray-900":n.isDropdown})},m(e.$t("public.copy_url")),3)],2)}const yM=U(q4n,[["render",Y4n]]),W4n={components:{ContentItem:yh,ProductCountPill:Ig,SectionTypePill:gM,SectionHide:Ace,SectionShow:Dce,SectionUpdate:vM,SectionDelete:_M,SectionUrlCopy:yM},props:{section:{type:Object,default:()=>({id:null,title:null,description:"",productCount:0,sortType:null})}}};function G4n(e,t,n,o,i,r){const s=y("SectionTypePill"),a=y("ProductCountPill"),l=y("SectionShow"),d=y("SectionHide"),u=y("SectionUpdate"),f=y("SectionUrlCopy"),p=y("SectionDelete"),v=y("ContentItem");return h(),W(v,null,{title:F(()=>[z(m(n.section.title),1)]),description:F(()=>[z(m(n.section.description?n.section.description.substring(0,50)+"...":""),1)]),tags:F(()=>[b(s,{type:n.section.type,class:"me-2"},null,8,["type"]),b(a,{count:n.section.productHomepageCount},null,8,["count"])]),buttons:F(()=>[b(l,{slug:n.section.slug},null,8,["slug"]),b(d,{slug:n.section.slug},null,8,["slug"])]),dotsButton:F(()=>[b(u,{section:n.section},null,8,["section"]),b(f,{link:n.section.link,"is-dropdown":""},null,8,["link"]),b(p,{section:n.section},null,8,["section"])]),_:1})}const Z4n=U(W4n,[["render",G4n]]),K4n={components:{AppIcon:Ue},methods:{create(){this.$store.dispatch("sidebar/open",{type:"section-create"})}}};function J4n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-sm btn-tertiary btn-center",onClick:t[0]||(t[0]=(...a)=>r.create&&r.create(...a))},[z(m(e.$t("administration.content.section.create.button"))+" ",1),b(s,{icon:"plus-circle",class:"ms-icon"})])}const X4n=U(K4n,[["render",J4n]]),Q4n={components:{SectionRecent:Z4n,Loading:Rt,SectionCreate:X4n},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({list:"administrationSection/getRecent",loading:"administrationSection/getLoadingRecent"})},methods:{loadAll(){this.$store.dispatch("administrationSection/recent")}},mounted(){this.loadAll()}},e5n={class:"d-flex justify-content-between align-items-start mb-3"},t5n={class:"mb-0"},n5n={key:0,class:"vl-parent mh-4rem"},o5n={key:1},i5n={class:"text-center"};function r5n(e,t,n,o,i,r){const s=y("SectionCreate"),a=y("Loading"),l=y("SectionRecent");return h(),g("div",null,[c("div",e5n,[c("h4",t5n,m(e.$t("administration.content.section.new")),1),b(s)]),e.loading?(h(),g("div",n5n,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.length?(h(!0),g(pe,{key:2},Me(e.list,(d,u)=>(h(),g("div",{key:u},[b(l,{section:d,class:"mb-3"},null,8,["section"])]))),128)):(h(),g("div",o5n,[c("h4",i5n,m(e.$t("administration.content.section.not_found")),1)]))])}const s5n=U(Q4n,[["render",r5n]]),a5n={components:{AppIcon:Ue},props:{link:{type:String,default:null}}},l5n=["href"],c5n={class:"text-gray-900"};function d5n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("a",{class:"dropdown-item d-flex align-items-center btn-tertiary medium",href:n.link},[b(s,{icon:"star",class:"me-2"}),c("span",c5n,m(e.$t("administration.show_preview")),1)],8,l5n)}const u5n=U(a5n,[["render",d5n]]),N1={tabs:{attachProductTab:"attachProduct",attachedProductsTab:"attachedProducts"},permanentIds:[2,3,4],types:[{key:"latest",name:"NejnovÄ›jšà vĂ˝bÄ›r"},{key:"random",name:"NáhodnĂ˝ vĂ˝bÄ›r"},{key:"manual",name:"RuÄŤnĂ vĂ˝bÄ›r"},{key:"section",name:"VĂ˝bÄ›r ze sekcii"},{key:"class_subject",name:"VĂ˝bÄ›r z pĹ™edmÄ›tĹŻ stupnÄ›"},{key:"category",name:"VĂ˝bÄ›r z kategoriĂ "},{key:"preference",name:"VĂ˝bÄ›r z preferenciĂ"},{key:"favourite_author",name:"VĂ˝bÄ›r oblĂbenĂ˝ch autorĹŻ"},{key:"only_on_ucitelnice",name:"VĂ˝bÄ›r Pouze na UÄŤitelnici"},{key:"organization",name:"VĂ˝bÄ›r z organizacĂ"}]},h5n={components:{ContentItem:yh,ProductCountPill:Ig,SectionTypePill:gM,SectionHide:Ace,SectionShowPreview:u5n,SectionUpdate:vM,SectionDelete:_M,SectionUrlCopy:yM},data(){return{permanentIds:N1.permanentIds}},props:{section:{type:Object,default:()=>({id:null,title:null,description:"",productCount:0,sortType:null})}}};function f5n(e,t,n,o,i,r){const s=y("SectionTypePill"),a=y("ProductCountPill"),l=y("SectionHide"),d=y("SectionUpdate"),u=y("SectionUrlCopy"),f=y("SectionShowPreview"),p=y("SectionDelete"),v=y("ContentItem");return h(),W(v,{"is-movable":"",class:J({"text-muted fw-normal":i.permanentIds.includes(n.section.id)})},{title:F(()=>[c("span",{class:J({"fw-normal":i.permanentIds.includes(n.section.id)})},m(n.section.title),3)]),description:F(()=>[z(m(n.section.description?n.section.description.substring(0,50)+"...":""),1)]),tags:F(()=>[b(s,{type:n.section.type,class:"me-2"},null,8,["type"]),b(a,{count:n.section.productHomepageCount},null,8,["count"])]),dotsButton:F(()=>[i.permanentIds.includes(n.section.id)?D("",!0):(h(),W(l,{key:0,"is-dropdown":"",slug:n.section.slug},null,8,["slug"])),b(d,{section:n.section},null,8,["section"]),b(u,{link:n.section.link,"is-dropdown":""},null,8,["link"]),b(f,{link:n.section.link},null,8,["link"]),i.permanentIds.includes(n.section.id)?D("",!0):(h(),W(p,{key:1,section:n.section},null,8,["section"]))]),_:1},8,["class"])}const m5n=U(h5n,[["render",f5n]]),p5n={components:{SectionShown:m5n,Loading:Rt,draggable:nk},data(){return{primaryColor:window.primaryColor,drag:!1}},computed:{...Oe({loading:"administrationSection/getLoadingShown"}),list:{get(){return this.$store.getters["administrationSection/getShown"]},set(e){this.$store.dispatch("administrationSection/reorder",e)}}},methods:{loadAll(){this.$store.dispatch("administrationSection/shown")}},mounted(){this.loadAll()}},g5n={class:"mb-3"},v5n={key:0,class:"vl-parent mh-4rem"},_5n={key:1},y5n={class:"text-center"};function b5n(e,t,n,o,i,r){const s=y("Loading"),a=y("SectionShown"),l=y("draggable");return h(),g("div",null,[c("h4",g5n,m(e.$t("administration.content.section.shown")),1),e.loading?(h(),g("div",v5n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):r.list.length?(h(),W(l,{key:2,modelValue:r.list,"onUpdate:modelValue":t[1]||(t[1]=d=>r.list=d),group:"sections","item-key":"id",onStart:t[2]||(t[2]=d=>i.drag=!0),onEnd:t[3]||(t[3]=d=>i.drag=!1)},{item:F(({element:d})=>[b(a,{section:d,class:"mb-3"},null,8,["section"])]),_:1},8,["modelValue"])):(h(),g("div",_5n,[c("h4",y5n,m(e.$t("administration.content.section.not_found")),1)]))])}const k5n=U(p5n,[["render",b5n]]),w5n={components:{TableSearchWithQuery:tr},props:{query:{type:Object,default:()=>({search:null})}},data(){return{filters:{search:{placeholder:this.$t("administration.content.section.search"),value:null}}}},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationSection/hidden",{filters:this.filterValues()})},filterValues(){return jo.filterValues(this.filters)}}};function $5n(e,t,n,o,i,r){const s=y("TableSearchWithQuery");return h(),g("div",null,[b(s,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,loading:!1,"plain-search":""},null,8,["filters","query","onChangeFilter"])])}const C5n=U(w5n,[["render",$5n]]),S5n={components:{ContentItem:yh,ProductCountPill:Ig,SectionTypePill:gM,SectionShow:Dce,SectionUpdate:vM,SectionDelete:_M,SectionUrlCopy:yM},props:{section:{type:Object,default:()=>({id:null,title:null,description:"",productCount:0,sortType:null})}}};function T5n(e,t,n,o,i,r){const s=y("SectionTypePill"),a=y("ProductCountPill"),l=y("SectionShow"),d=y("SectionUpdate"),u=y("SectionUrlCopy"),f=y("SectionDelete"),p=y("ContentItem");return h(),W(p,null,{title:F(()=>[z(m(n.section.title),1)]),description:F(()=>[z(m(n.section.description?n.section.description.substring(0,50)+"...":""),1)]),tags:F(()=>[b(s,{type:n.section.type,class:"me-2"},null,8,["type"]),b(a,{count:n.section.productHomepageCount},null,8,["count"])]),dotsButton:F(()=>[b(l,{"is-dropdown":!0,slug:n.section.slug},null,8,["slug"]),b(d,{section:n.section},null,8,["section"]),b(u,{link:n.section.link,"is-dropdown":""},null,8,["link"]),b(f,{section:n.section},null,8,["section"])]),_:1})}const E5n=U(S5n,[["render",T5n]]),I5n={components:{SectionSearch:C5n,SectionHidden:E5n,Loading:Rt},props:{query:Object},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({list:"administrationSection/getHidden",loading:"administrationSection/getLoadingHidden"})}},P5n={class:"mb-3"},A5n={key:0,class:"vl-parent mh-4rem"},D5n={key:1},x5n={class:"text-center"};function O5n(e,t,n,o,i,r){const s=y("SectionSearch"),a=y("Loading"),l=y("SectionHidden");return h(),g("div",null,[c("h4",P5n,m(e.$t("administration.content.section.hidden")),1),b(s,{class:"mb-4",query:n.query},null,8,["query"]),e.loading?(h(),g("div",A5n,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.length?(h(!0),g(pe,{key:2},Me(e.list,(d,u)=>(h(),g("div",{key:u},[b(l,{section:d,class:"mb-3"},null,8,["section"])]))),128)):(h(),g("div",D5n,[c("h4",x5n,m(e.$t("administration.content.section.not_found")),1)]))])}const L5n=U(I5n,[["render",O5n]]),M5n={props:{query:Object},components:{SectionListRecent:s5n,SectionListShown:k5n,SectionListHidden:L5n}},N5n={class:"mt-5"};function R5n(e,t,n,o,i,r){const s=y("SectionListRecent"),a=y("SectionListShown"),l=y("SectionListHidden");return h(),g("div",N5n,[b(s,{class:"mb-5"}),b(a,{class:"mb-5"}),b(l,{query:n.query},null,8,["query"])])}const j5n=U(M5n,[["render",R5n]]),F5n={data(){return{moment:mt}},props:{from:String,to:String}},z5n={class:"text-gray-900 small"};function U5n(e,t,n,o,i,r){return h(),g("span",z5n,m(i.moment(String(n.from)).format("DD. MM. YYYY")+" – "+(n.to?i.moment(String(n.to)).format("DD. MM. YYYY"):e.$t("infobox.editor.ends_at.placeholder"))),1)}const U6=U(F5n,[["render",U5n]]),B5n={props:{type:{type:String,default:"error"}}},H5n={class:"badge rounded-pill small px-2 py-1 fw-light bg-gray-300 text-gray-700"};function V5n(e,t,n,o,i,r){return h(),g("span",H5n,m(e.$tm("infobox.types")[n.type]),1)}const bM=U(B5n,[["render",V5n]]),q5n={},Y5n={class:"badge rounded-pill small px-2 py-1 fw-light bg-gray-300 text-gray-700"};function W5n(e,t,n,o,i,r){return h(),g("span",Y5n,m(e.$t("author.only")),1)}const kM=U(q5n,[["render",W5n]]),G5n={components:{AppIcon:Ue},props:{isDropdown:{type:Boolean,default:!1},id:{type:Number,default:null}},methods:{show(){this.$store.dispatch("administrationInfoBox/show",{id:this.id,filters:Mi.getFilters(this.$route.query)})}}};function Z5n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:J([n.isDropdown?"dropdown-item d-flex align-items-center btn-tertiary medium":"btn btn-center btn-sm btn-primary small"]),onClick:t[0]||(t[0]=(...a)=>r.show&&r.show(...a))},[b(s,{icon:"show",class:J([n.isDropdown?"me-2":"me-icon"]),height:"16",width:"16"},null,8,["class"]),c("span",{class:J({"text-gray-900":n.isDropdown})},m(e.$t("administration.show")),3)],2)}const xce=U(G5n,[["render",Z5n]]),K5n={components:{AppIcon:Ue},props:{isDropdown:{type:Boolean,default:!1},id:{type:Number,default:null}},methods:{hide(){this.$store.dispatch("administrationInfoBox/hide",{id:this.id,filters:Mi.getFilters(this.$route.query)})}}};function J5n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:J([n.isDropdown?"dropdown-item d-flex align-items-center btn-tertiary medium":"btn btn-center btn-sm btn-primary small"]),onClick:t[0]||(t[0]=(...a)=>r.hide&&r.hide(...a))},[b(s,{icon:"hide",class:J([n.isDropdown?"me-2":"me-icon"]),height:"16",width:"16"},null,8,["class"]),c("span",{class:J({"text-gray-900":n.isDropdown})},m(e.$t("administration.hide")),3)],2)}const Oce=U(K5n,[["render",J5n]]),X5n={components:{AppIcon:Ue}},Q5n={class:"text-gray-900"};function e$n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item d-flex align-items-center btn-tertiary medium",onClick:t[0]||(t[0]=a=>e.$emit("show"))},[b(s,{icon:"star",class:"me-2",height:"16",width:"16"}),c("span",Q5n,m(e.$t("administration.show_preview")),1)])}const wM=U(X5n,[["render",e$n]]),t$n={components:{AppIcon:Ue},props:{box:Object},methods:{update(){let e=window._.cloneDeep(this.box);this.$store.commit("administrationInfoBox/setDetail",e),this.$store.dispatch("sidebar/open",{type:"info-box-update"})}}},n$n={class:"text-gray-900"};function o$n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item d-flex align-items-center btn-tertiary medium",onClick:t[0]||(t[0]=(...a)=>r.update&&r.update(...a))},[b(s,{icon:"edit",class:"me-2",height:"16",width:"16"}),c("span",n$n,m(e.$t("administration.edit")),1)])}const $M=U(t$n,[["render",o$n]]),i$n={components:{AppIcon:Ue},props:{box:Object},methods:{deletee(){this.$store.commit("administrationInfoBox/setDetail",this.box),this.$store.dispatch("sidebar/open",{type:"info-box-delete"})}}},r$n={class:"text-gray-900"};function s$n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item d-flex align-items-center btn-danger btn-tertiary medium",onClick:t[0]||(t[0]=(...a)=>r.deletee&&r.deletee(...a))},[b(s,{icon:"delete",class:"me-2",height:"16",width:"16"}),c("span",r$n,m(e.$t("administration.delete")),1)])}const CM=U(i$n,[["render",s$n]]),W2={icon:{new:"/images/infobox_new_feature_icon.png",error:"/images/infobox_error_icon.png",info:"/images/infobox_info_icon.png"},style:{new:"bg-success-infobox text-white",error:"bg-danger text-white",warning:"bg-warning-infobox text-gray-900",info:"bg-secondary text-gray-900"},maxTitleLength:80},a$n={components:{AppIcon:Ue},props:{box:{type:Object,default:()=>({title:null,content:null})}},data(){return{config:W2}}},l$n={class:"row align-items-center container"},c$n={class:"col-12 d-flex flex-wrap justify-content-between align-items-center mb-1"},d$n={class:"fw-bold mb-0 mt-1"},u$n={class:"col-auto ms-auto"},h$n={class:"col-11"},f$n=["href"];function m$n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",{class:J(["d-flex p-3 justify-content-center",i.config.style[n.box.type]])},[c("div",l$n,[c("div",c$n,[c("p",d$n,m(n.box.title),1),c("div",u$n,[c("button",{class:J(["btn btn-tertiary btn-sm bg-transparent",i.config.style[n.box.type]])},[b(s,{icon:"close",height:"24",width:"24"})],2)])]),c("div",h$n,[c("p",{class:J(["mb-0",{"mb-1":n.box.link_href}])},m(n.box.content),3),n.box.link_href?(h(),g("a",{key:0,href:n.box.link_href,target:"_blank",class:J(["text-decoration-underline cursor-pointer",n.box.type=="error"||n.box.type=="new"?"link-white":"link-dark"])},m(n.box.link_title),11,f$n)):D("",!0)])])],2)}const SM=U(a$n,[["render",m$n]]),p$n={components:{ContentItem:yh,DateRange:U6,InfoBoxTypePill:bM,InfoBoxAuthorPill:kM,InfoBoxShow:xce,InfoBoxHide:Oce,InfoBoxShowPreview:wM,InfoBoxUpdate:$M,InfoBoxDelete:CM,InfoBoxPreview:SM},props:{box:{type:Object,default:()=>({id:null,title:null,description:null})}},data(){return{shown:!0}},methods:{onHide(){this.shown=!1},onShow(){this.shown=!0}}};function g$n(e,t,n,o,i,r){const s=y("InfoBoxPreview"),a=y("DateRange"),l=y("InfoBoxTypePill"),d=y("InfoBoxAuthorPill"),u=y("InfoBoxShow"),f=y("InfoBoxHide"),p=y("InfoBoxShowPreview"),v=y("InfoBoxUpdate"),_=y("InfoBoxDelete"),k=y("ContentItem");return h(),g("div",null,[i.shown?(h(),W(s,{key:0,box:n.box,onHide:r.onHide},null,8,["box","onHide"])):D("",!0),b(k,null,os({tags:F(()=>[b(a,{class:"me-2",from:n.box.starts_at,to:n.box.ends_at},null,8,["from","to"]),b(l,{type:n.box.type},null,8,["type"]),n.box.is_only_for_authors?(h(),W(d,{key:0,class:"ms-1"})):D("",!0)]),buttons:F(()=>[b(u,{id:n.box.id},null,8,["id"]),b(f,{id:n.box.id},null,8,["id"])]),dotsButton:F(()=>[i.shown?D("",!0):(h(),W(p,{key:0,onShow:r.onShow},null,8,["onShow"])),b(v,{box:n.box},null,8,["box"]),b(_,{box:n.box},null,8,["box"])]),_:2},[i.shown?void 0:{name:"title",fn:F(()=>[z(m(n.box.title),1)]),key:"0"},i.shown?void 0:{name:"description",fn:F(()=>[z(m(n.box.content.substring(0,50)+"..."),1)]),key:"1"}]),1024)])}const v$n=U(p$n,[["render",g$n]]),_$n={components:{AppIcon:Ue},methods:{create(){this.$store.dispatch("sidebar/open",{type:"info-box-create"})}}};function y$n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-sm btn-tertiary btn-center",onClick:t[0]||(t[0]=(...a)=>r.create&&r.create(...a))},[z(m(e.$t("administration.content.infobox.create.button"))+" ",1),b(s,{icon:"plus-circle",class:"ms-icon",height:"16",width:"16"})])}const b$n=U(_$n,[["render",y$n]]),k$n={components:{InfoBoxRecent:v$n,InfoBoxCreate:b$n,Loading:Rt},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({list:"administrationInfoBox/getRecent",loading:"administrationInfoBox/getLoadingRecent"})},methods:{loadAll(){this.$store.dispatch("administrationInfoBox/recent")}},mounted(){this.loadAll()}},w$n={class:"d-flex justify-content-between align-items-start"},$$n={class:"mb-3"},C$n={key:0,class:"vl-parent mh-4rem"},S$n={key:1},T$n={class:"text-center"};function E$n(e,t,n,o,i,r){const s=y("InfoBoxCreate"),a=y("Loading"),l=y("InfoBoxRecent");return h(),g("div",null,[c("div",w$n,[c("h3",$$n,m(e.$t("administration.content.infobox.recent")),1),b(s)]),e.loading?(h(),g("div",C$n,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.length?(h(!0),g(pe,{key:2},Me(e.list,(d,u)=>(h(),g("div",{key:u},[b(l,{box:d,class:"mb-3"},null,8,["box"])]))),128)):(h(),g("div",S$n,[c("h4",T$n,m(e.$t("administration.content.infobox.not_found")),1)]))])}const I$n=U(k$n,[["render",E$n]]),P$n={components:{ContentItem:yh,DateRange:U6,InfoBoxTypePill:bM,InfoBoxAuthorPill:kM,InfoBoxHide:Oce,InfoBoxShowPreview:wM,InfoBoxUpdate:$M,InfoBoxDelete:CM,InfoBoxPreview:SM},props:{box:{type:Object,default:()=>({id:null,title:null,content:null})}},data(){return{shown:!0}},methods:{onHide(){this.shown=!1},onShow(){this.shown=!0}}};function A$n(e,t,n,o,i,r){const s=y("InfoBoxPreview"),a=y("DateRange"),l=y("InfoBoxTypePill"),d=y("InfoBoxAuthorPill"),u=y("InfoBoxHide"),f=y("InfoBoxShowPreview"),p=y("InfoBoxUpdate"),v=y("InfoBoxDelete"),_=y("ContentItem");return h(),g("div",null,[i.shown?(h(),W(s,{key:0,box:n.box,onHide:r.onHide},null,8,["box","onHide"])):D("",!0),b(_,null,os({tags:F(()=>[b(a,{class:"me-2",from:n.box.starts_at,to:n.box.ends_at},null,8,["from","to"]),b(l,{type:n.box.type},null,8,["type"]),n.box.is_only_for_authors?(h(),W(d,{key:0,class:"ms-1"})):D("",!0)]),dotsButton:F(()=>[b(u,{"is-dropdown":!0,id:n.box.id},null,8,["id"]),i.shown?D("",!0):(h(),W(f,{key:0,onShow:r.onShow},null,8,["onShow"])),b(p,{box:n.box},null,8,["box"]),b(v,{box:n.box},null,8,["box"])]),_:2},[i.shown?void 0:{name:"title",fn:F(()=>[z(m(n.box.title),1)]),key:"0"},i.shown?void 0:{name:"description",fn:F(()=>[z(m(n.box.content.substring(0,50)+"..."),1)]),key:"1"}]),1024)])}const D$n=U(P$n,[["render",A$n]]),x$n={components:{InfoBoxShown:D$n,Loading:Rt},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({loading:"administrationInfoBox/getLoadingShown",list:"administrationInfoBox/getShown"})},methods:{loadAll(){this.$store.dispatch("administrationInfoBox/shown")}},mounted(){this.loadAll()}},O$n={class:"mb-3"},L$n={key:0,class:"vl-parent mh-4rem"},M$n={key:1},N$n={class:"text-center"};function R$n(e,t,n,o,i,r){const s=y("Loading"),a=y("InfoBoxShown");return h(),g("div",null,[c("h3",O$n,m(e.$t("administration.content.infobox.shown")),1),e.loading?(h(),g("div",L$n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=l=>e.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.length?(h(!0),g(pe,{key:2},Me(e.list,(l,d)=>(h(),g("div",{key:d},[b(a,{box:l,class:"mb-3"},null,8,["box"])]))),128)):(h(),g("div",M$n,[c("h4",N$n,m(e.$t("administration.content.infobox.not_found")),1)]))])}const j$n=U(x$n,[["render",R$n]]),F$n={components:{TableSearchWithQuery:tr},props:{query:{type:Object,default:()=>({search:null})}},data(){return{filters:{search:{placeholder:this.$t("administration.content.infobox.search"),value:null}}}},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationInfoBox/hidden",{filters:this.filterValues()})},filterValues(){return jo.filterValues(this.filters)}}};function z$n(e,t,n,o,i,r){const s=y("TableSearchWithQuery");return h(),g("div",null,[b(s,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,loading:!1,"plain-search":""},null,8,["filters","query","onChangeFilter"])])}const U$n=U(F$n,[["render",z$n]]),B$n={components:{ContentItem:yh,InfoBoxPreview:SM,DateRange:U6,InfoBoxAuthorPill:kM,InfoBoxTypePill:bM,InfoBoxShow:xce,InfoBoxShowPreview:wM,InfoBoxUpdate:$M,InfoBoxDelete:CM},props:{box:{type:Object,default:()=>({id:null,title:null,description:null})}},data(){return{shown:!1}},methods:{onHide(){this.shown=!1},onShow(){this.shown=!0}}};function H$n(e,t,n,o,i,r){const s=y("InfoBoxPreview"),a=y("DateRange"),l=y("InfoBoxTypePill"),d=y("InfoBoxAuthorPill"),u=y("InfoBoxShow"),f=y("InfoBoxShowPreview"),p=y("InfoBoxUpdate"),v=y("InfoBoxDelete"),_=y("ContentItem");return h(),g("div",null,[i.shown?(h(),W(s,{key:0,box:n.box,onHide:r.onHide},null,8,["box","onHide"])):D("",!0),b(_,null,os({tags:F(()=>[b(a,{class:"me-2",from:n.box.starts_at,to:n.box.ends_at},null,8,["from","to"]),b(l,{type:n.box.type},null,8,["type"]),n.box.is_only_for_authors?(h(),W(d,{key:0,class:"ms-1"})):D("",!0)]),dotsButton:F(()=>[b(u,{"is-dropdown":!0,id:n.box.id},null,8,["id"]),i.shown?D("",!0):(h(),W(f,{key:0,onShow:r.onShow},null,8,["onShow"])),b(p,{box:n.box},null,8,["box"]),b(v,{box:n.box},null,8,["box"])]),_:2},[i.shown?void 0:{name:"title",fn:F(()=>[z(m(n.box.title),1)]),key:"0"},i.shown?void 0:{name:"description",fn:F(()=>[z(m(n.box.content.substring(0,50)+"..."),1)]),key:"1"}]),1024)])}const V$n=U(B$n,[["render",H$n]]),q$n={components:{InfoBoxSearch:U$n,InfoBoxHidden:V$n,Loading:Rt},props:{query:Object},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({list:"administrationInfoBox/getHidden",loading:"administrationInfoBox/getLoadingHidden"})}},Y$n={class:"mb-3"},W$n={key:0,class:"vl-parent mh-4rem"},G$n={key:1},Z$n={class:"text-center"};function K$n(e,t,n,o,i,r){const s=y("InfoBoxSearch"),a=y("Loading"),l=y("InfoBoxHidden");return h(),g("div",null,[c("h3",Y$n,m(e.$t("administration.content.infobox.hidden")),1),b(s,{class:"mb-4",query:n.query},null,8,["query"]),e.loading?(h(),g("div",W$n,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.length?(h(!0),g(pe,{key:2},Me(e.list,(d,u)=>(h(),g("div",{key:u},[b(l,{box:d,class:"mb-3"},null,8,["box"])]))),128)):(h(),g("div",G$n,[c("h4",Z$n,m(e.$t("administration.content.infobox.not_found")),1)]))])}const J$n=U(q$n,[["render",K$n]]),X$n={components:{InfoBoxListRecent:I$n,InfoBoxListShown:j$n,InfoBoxListHidden:J$n},props:{query:Object}},Q$n={class:"mt-5"};function e9n(e,t,n,o,i,r){const s=y("InfoBoxListRecent"),a=y("InfoBoxListShown"),l=y("InfoBoxListHidden");return h(),g("div",Q$n,[b(s,{class:"mb-5"}),b(a,{class:"mb-5"}),b(l,{query:n.query},null,8,["query"])])}const t9n=U(X$n,[["render",e9n]]),n9n={routes:["administration/content/category/class-subject","administration/content/category/class","administration/content/category/subject","administration/content/category/theme","administration/content/category/kind","administration/content/category/format","administration/content/category/holiday","administration/content/category/image"]},o9n={components:{Tablist:qr},data(){return{tab:{titles:Object.values(this.$tm("administration.content.category.tab")),routes:n9n.routes}}}};function i9n(e,t,n,o,i,r){const s=y("Tablist"),a=y("router-view");return h(),g("div",null,[b(s,{titles:i.tab.titles,routes:i.tab.routes,"padding-x":0,class:"mb-3"},null,8,["titles","routes"]),b(a)])}const r9n=U(o9n,[["render",i9n]]),s9n={components:{AppIcon:Ue},props:{category:Object,leaf:{type:Boolean,default:!1},active:{type:Boolean,default:!1},type:{type:String,default:null}},data(){return{hover:!1}},computed:{...Oe({subjectIndex:"administrationClassSubject/getSubjectIndex",classIndex:"administrationClassSubject/getClassIndex"})},methods:{select(){this.$emit("selected")},remove(){this.type=="subject-category"?(this.$store.commit("administrationClassSubject/setSubjectCategory",this.category),this.$store.dispatch("sidebar/open",{type:"class-subject-subject-category-remove"})):this.type=="subject"?(this.$store.commit("administrationClassSubject/setSubject",this.category),this.$store.dispatch("sidebar/open",{type:"class-subject-subject-remove"})):this.type=="subsubject"&&(this.$store.commit("administrationClassSubject/setSubsubject",this.category),this.$store.dispatch("sidebar/open",{type:"class-subject-subsubject-remove"}))}}},a9n={class:"d-flex align-items-center"};function l9n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",{class:J(["px-3 border d-flex justify-content-between align-items-center bg-primary-5-hover cursor-pointer h-3dot75rem",[{"bg-primary-5":n.active}]]),onClick:t[1]||(t[1]=(...a)=>r.select&&r.select(...a)),onMouseover:t[2]||(t[2]=a=>i.hover=!0),onMouseleave:t[3]||(t[3]=a=>i.hover=!1)},[z(m(n.category.name)+" ",1),c("div",a9n,[xe(c("button",{class:"btn btn-sm btn-danger btn-tertiary btn-center",onClick:t[0]||(t[0]=Gt((...a)=>r.remove&&r.remove(...a),["stop"]))},[b(s,{icon:"minus-circle"})],512),[[Vo,i.hover&&n.type!="class"]]),xe(b(s,{icon:"arrow-right",class:"text-primary ms-icon",height:"20",width:"20"},null,512),[[Vo,!n.leaf]])])],34)}const B6=U(s9n,[["render",l9n]]),c9n={components:{ClassSubjectItem:B6},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({list:"administrationClassSubject/getList",classIndex:"administrationClassSubject/getClassIndex"})},methods:{loadAll(){this.$store.dispatch("administrationClassSubject/list")},setClass(e){this.$store.commit("administrationClassSubject/setClass",e)},setClassIndex(e){this.$store.commit("administrationClassSubject/setClassIndex",e==this.classIndex?null:e),this.$store.commit("administrationClassSubject/setSubjectCategoryIndex",null)},subjectCategoryList(e){return this.list[e]&&this.list[e].children?this.list[e].children:[]}},mounted(){this.loadAll()}},d9n={class:"mb-2 py-1"},u9n={class:"medium fw-bold"};function h9n(e,t,n,o,i,r){const s=y("ClassSubjectItem");return h(),g("div",null,[c("div",d9n,[c("span",u9n,m(e.$t("category.headline.class")),1)]),c("div",null,[(h(!0),g(pe,null,Me(e.list,(a,l)=>(h(),W(s,{key:l,category:a,onSelected:d=>{r.setClass(a),r.setClassIndex(l)},leaf:r.subjectCategoryList(l).length<=0,active:l==e.classIndex,type:"class"},null,8,["category","onSelected","leaf","active"]))),128))])])}const f9n=U(c9n,[["render",h9n]]),m9n={components:{AppIcon:Ue},methods:{add(){this.$store.dispatch("sidebar/open",{type:"class-subject-subject-category-add"})}}};function p9n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[0]||(t[0]=(...a)=>r.add&&r.add(...a))},[z(m(e.$t("administration.add"))+" ",1),b(s,{icon:"plus-circle",class:"ms-icon"})])}const g9n=U(m9n,[["render",p9n]]),v9n={components:{ClassSubjectSubjectCategoryAddButton:g9n,ClassSubjectItem:B6},computed:{...Oe({list:"administrationClassSubject/getList",classIndex:"administrationClassSubject/getClassIndex",subjectCategoryIndex:"administrationClassSubject/getSubjectCategoryIndex"}),subjectCategoryList(){return this.list[this.classIndex]&&this.list[this.classIndex].children?this.list[this.classIndex].children:[]}},methods:{setSubjectCategory(e){this.$store.commit("administrationClassSubject/setSubjectCategory",e)},setSubjectCategoryIndex(e){this.$store.commit("administrationClassSubject/setSubjectCategoryIndex",e==this.subjectCategoryIndex?null:e)},subjectList(e){return this.list[this.classIndex]&&this.list[this.classIndex].children&&this.list[this.classIndex].children[e]&&this.list[this.classIndex].children[e].children?this.list[this.classIndex].children[e].children:[]}}},_9n={key:0},y9n={class:"d-flex justify-content-between align-items-center mb-2"},b9n={class:"medium fw-bold"};function k9n(e,t,n,o,i,r){const s=y("ClassSubjectSubjectCategoryAddButton"),a=y("ClassSubjectItem");return e.classIndex!==null?(h(),g("div",_9n,[c("div",y9n,[c("span",b9n,m(e.$t("category.category.subject")),1),b(s)]),c("div",null,[(h(!0),g(pe,null,Me(r.subjectCategoryList,(l,d)=>(h(),W(a,{key:d,category:l,leaf:r.subjectList(d).length<=0,active:d==e.subjectCategoryIndex,onSelected:u=>{r.setSubjectCategory(l),r.setSubjectCategoryIndex(d)},type:"subject-category"},null,8,["category","leaf","active","onSelected"]))),128))])])):D("",!0)}const w9n=U(v9n,[["render",k9n]]),$9n={components:{AppIcon:Ue},methods:{add(){this.$store.dispatch("sidebar/open",{type:"class-subject-subject-add"})}}};function C9n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[0]||(t[0]=(...a)=>r.add&&r.add(...a))},[z(m(e.$t("administration.add"))+" ",1),b(s,{icon:"plus-circle",class:"ms-icon"})])}const S9n=U($9n,[["render",C9n]]),T9n={components:{ClassSubjectAddButton:S9n,ClassSubjectItem:B6},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({list:"administrationClassSubject/getList",classIndex:"administrationClassSubject/getClassIndex",subjectCategoryIndex:"administrationClassSubject/getSubjectCategoryIndex",subjectIndex:"administrationClassSubject/getSubjectIndex"}),subjectList(){return this.list[this.classIndex]&&this.list[this.classIndex].children&&this.list[this.classIndex].children[this.subjectCategoryIndex]&&this.list[this.classIndex].children[this.subjectCategoryIndex].children?this.list[this.classIndex].children[this.subjectCategoryIndex].children:[]}},methods:{setSubject(e){this.$store.commit("administrationClassSubject/setSubject",e)},setSubjectIndex(e){this.$store.commit("administrationClassSubject/setSubjectIndex",e==this.subjectIndex?null:e)},subsubjectList(e){return this.list[this.classIndex]&&this.list[this.classIndex].children&&this.list[this.classIndex].children[this.subjectCategoryIndex]&&this.list[this.classIndex].children[this.subjectCategoryIndex].children&&this.list[this.classIndex].children[this.subjectCategoryIndex].children[e]&&this.list[this.classIndex].children[this.subjectCategoryIndex].children[e].children?this.list[this.classIndex].children[this.subjectCategoryIndex].children[e].children:[]}}},E9n={key:0},I9n={class:"d-flex justify-content-between align-items-center mb-2"},P9n={class:"medium fw-bold"};function A9n(e,t,n,o,i,r){const s=y("ClassSubjectAddButton"),a=y("ClassSubjectItem");return e.classIndex!==null&&e.subjectCategoryIndex!==null?(h(),g("div",E9n,[c("div",I9n,[c("span",P9n,m(e.$t("category.headline.subject")),1),b(s)]),c("div",null,[(h(!0),g(pe,null,Me(r.subjectList,(l,d)=>(h(),W(a,{key:d,category:l,leaf:r.subsubjectList(d).length<=0,active:d==e.subjectIndex,onSelected:u=>{r.setSubject(l),r.setSubjectIndex(d)},type:"subject"},null,8,["category","leaf","active","onSelected"]))),128))])])):D("",!0)}const D9n=U(T9n,[["render",A9n]]),x9n={components:{AppIcon:Ue},methods:{add(){this.$store.dispatch("sidebar/open",{type:"class-subject-subsubject-add"})}}};function O9n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[0]||(t[0]=(...a)=>r.add&&r.add(...a))},[z(m(e.$t("administration.add"))+" ",1),b(s,{icon:"plus-circle",class:"ms-icon"})])}const L9n=U(x9n,[["render",O9n]]),M9n={components:{ClassSubjectSubsubjectAddButton:L9n,ClassSubjectItem:B6},computed:{...Oe({list:"administrationClassSubject/getList",classIndex:"administrationClassSubject/getClassIndex",subjectCategoryIndex:"administrationClassSubject/getSubjectCategoryIndex",subjectIndex:"administrationClassSubject/getSubjectIndex"}),subsubjectList(){return this.list[this.classIndex]&&this.list[this.classIndex].children&&this.list[this.classIndex].children[this.subjectCategoryIndex]&&this.list[this.classIndex].children[this.subjectCategoryIndex].children&&this.list[this.classIndex].children[this.subjectCategoryIndex].children[this.subjectIndex]&&this.list[this.classIndex].children[this.subjectCategoryIndex].children[this.subjectIndex].children?this.list[this.classIndex].children[this.subjectCategoryIndex].children[this.subjectIndex].children:[]}},methods:{}},N9n={key:0},R9n={class:"d-flex justify-content-between align-items-center mb-2"},j9n={class:"medium fw-bold"};function F9n(e,t,n,o,i,r){const s=y("ClassSubjectSubsubjectAddButton"),a=y("ClassSubjectItem");return e.classIndex!==null&&e.subjectCategoryIndex!==null&&e.subjectIndex!==null?(h(),g("div",N9n,[c("div",R9n,[c("span",j9n,m(e.$t("category.headline.subsubject")),1),b(s)]),c("div",null,[(h(!0),g(pe,null,Me(r.subsubjectList,(l,d)=>(h(),W(a,{key:d,category:l,leaf:!0,type:"subsubject"},null,8,["category"]))),128))])])):D("",!0)}const z9n=U(M9n,[["render",F9n]]),U9n={components:{ClassSubjectClassList:f9n,ClassSubjectSubjectCategoryList:w9n,ClassSubjectSubjectList:D9n,ClassSubjectSubsubjectList:z9n}},B9n={class:"row"},H9n={class:"col-3"},V9n={class:"col-3"},q9n={class:"col-3"},Y9n={class:"col-3"};function W9n(e,t,n,o,i,r){const s=y("ClassSubjectClassList"),a=y("ClassSubjectSubjectCategoryList"),l=y("ClassSubjectSubjectList"),d=y("ClassSubjectSubsubjectList");return h(),g("div",B9n,[c("div",H9n,[b(s)]),c("div",V9n,[b(a)]),c("div",q9n,[b(l)]),c("div",Y9n,[b(d)])])}const G9n=U(U9n,[["render",W9n]]),Z9n={components:{AppIcon:Ue},props:{type:String},methods:{openSidebar(){this.$store.commit("administrationCategory/setDetail",{type:this.type,name:""}),this.$store.dispatch("sidebar/open",{type:"category-create"})}}};function K9n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[0]||(t[0]=(...a)=>r.openSidebar&&r.openSidebar(...a))},[z(m(e.$tm("category.add.button")[n.type])+" ",1),b(s,{icon:"plus-circle",class:"ms-icon"})])}const ob=U(Z9n,[["render",K9n]]),J9n={components:{TableSearchWithQuery:tr},props:{type:String,query:{type:Object,default:()=>({search:null})},exactMatch:{type:Boolean,default:!1}},data(){return{filters:{search:{placeholder:this.$tm("category.search")[this.type],value:null}}}},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationCategory/list",{type:this.type,filters:this.filterValues()})},filterValues(){let e={...this.filters};return this.exactMatch&&(e.checkboxes=[{name:"exact",title:"",options:[],checked:["exact"]}]),jo.filterValues(e)}}};function X9n(e,t,n,o,i,r){const s=y("TableSearchWithQuery");return h(),g("div",null,[b(s,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,loading:!1},null,8,["filters","query","onChangeFilter"])])}const xg=U(J9n,[["render",X9n]]),Q9n={components:{AppIcon:Ue},props:{category:Object},methods:{openSidebar(){let e=window._.cloneDeep(this.category);this.$store.commit("administrationCategory/setDetail",e),this.$store.dispatch("sidebar/open",{type:"category-update"})}}},e6n={class:"text-gray-900"};function t6n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item d-flex align-items-center btn-tertiary",onClick:t[0]||(t[0]=(...a)=>r.openSidebar&&r.openSidebar(...a))},[b(s,{icon:"edit",class:"me-2"}),c("span",e6n,m(e.$t("administration.edit")),1)])}const n6n=U(Q9n,[["render",t6n]]),o6n={components:{AppIcon:Ue},props:{category:Object},methods:{deletee(){this.$store.commit("administrationCategory/setDetail",this.category),this.$store.dispatch("administrationCategory/deleteInfo",{id:this.category.id}),this.$store.dispatch("sidebar/open",{type:"category-delete"})}}},i6n={class:"text-gray-900"};function r6n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item d-flex align-items-center btn-danger btn-tertiary",onClick:t[0]||(t[0]=(...a)=>r.deletee&&r.deletee(...a))},[b(s,{icon:"delete",class:"me-2"}),c("span",i6n,m(e.$t("administration.delete")),1)])}const s6n=U(o6n,[["render",r6n]]),a6n={props:{subcategory:String}},l6n={class:"badge rounded-pill small px-2 py-1 fw-light bg-gray-300 text-gray-700"};function c6n(e,t,n,o,i,r){return h(),g("span",l6n,m(n.subcategory),1)}const d6n=U(a6n,[["render",c6n]]),u6n={components:{Loading:Rt,FlexTableHead:ti,FlexTableRow:ni,TableButton:Za,SubCategoryPill:d6n,CategoryUpdateButton:n6n,CategoryDeleteButton:s6n},props:{type:String},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({loading:"administrationCategory/getLoading",list:"administrationCategory/getList",search:"administrationCategory/getSearch"})},methods:{loadAll(){this.$store.dispatch("administrationCategory/list",{type:this.type})}},watch:{type(){this.loadAll()}}},h6n={class:"col-3"},f6n={class:"col-9"},m6n={key:0,class:"vl-parent mh-8"},p6n={key:1},g6n={class:"text-center mt-4"},v6n={class:"col-3"},_6n={class:"col-9 d-flex justify-content-between align-items-center"},y6n={key:0};function b6n(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("Loading"),l=y("SubCategoryPill"),d=y("CategoryUpdateButton"),u=y("CategoryDeleteButton"),f=y("TableButton"),p=y("FlexTableRow");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",h6n,m(e.$tm("category")[n.type]),1),c("div",f6n,m(e.$tm("category.subheadline")[n.type]),1)]),_:1}),e.loading?(h(),g("div",m6n,[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=v=>e.loading=v),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list&&!e.list.length?(h(),g("div",p6n,[c("h4",g6n,m(e.$t("administration.product.table.not_found.all")),1)])):(h(!0),g(pe,{key:2},Me(e.list,(v,_)=>(h(),W(p,{key:_,class:J({"border-none":_==e.list.length-1})},{default:F(()=>[c("div",v6n,m(v.name),1),c("div",_6n,[c("div",null,[v.children.length?(h(!0),g(pe,{key:1},Me(v.children,(k,C)=>(h(),W(l,{key:C,subcategory:k.name,class:"me-2 mb-2"},null,8,["subcategory"]))),128)):(h(),g("div",y6n,m(e.$t("public.dash")),1))]),b(f,null,{default:F(()=>[b(d,{category:v},null,8,["category"]),b(u,{category:v},null,8,["category"])]),_:2},1024)])]),_:2},1032,["class"]))),128))])}const ib=U(u6n,[["render",b6n]]),k6n={components:{CategoryCreateButton:ob,CategorySearch:xg,CategoryTable:ib},props:{query:Object}},w6n={class:"d-flex justify-content-end mb-3"};function $6n(e,t,n,o,i,r){const s=y("CategoryCreateButton"),a=y("CategorySearch"),l=y("CategoryTable");return h(),g("div",null,[c("div",w6n,[b(s,{type:"class"})]),b(a,{type:"class",query:n.query,class:"mb-3"},null,8,["query"]),b(l,{type:"class"})])}const C6n=U(k6n,[["render",$6n]]),S6n={components:{CategoryCreateButton:ob,CategorySearch:xg,CategoryTable:ib},props:{query:Object}},T6n={class:"d-flex justify-content-end mb-3"};function E6n(e,t,n,o,i,r){const s=y("CategoryCreateButton"),a=y("CategorySearch"),l=y("CategoryTable");return h(),g("div",null,[c("div",T6n,[b(s,{type:"subject"})]),b(a,{type:"subject",query:n.query,class:"mb-3"},null,8,["query"]),b(l,{type:"subject"})])}const I6n=U(S6n,[["render",E6n]]),P6n={components:{CategoryCreateButton:ob,CategorySearch:xg,CategoryTable:ib},props:{query:Object}},A6n={class:"d-flex justify-content-end mb-3"};function D6n(e,t,n,o,i,r){const s=y("CategoryCreateButton"),a=y("CategorySearch"),l=y("CategoryTable");return h(),g("div",null,[c("div",A6n,[b(s,{type:"theme"})]),b(a,{type:"theme",query:n.query,class:"mb-3"},null,8,["query"]),b(l,{type:"theme"})])}const x6n=U(P6n,[["render",D6n]]),O6n={components:{CategoryCreateButton:ob,CategorySearch:xg,CategoryTable:ib},props:{query:Object}},L6n={class:"d-flex justify-content-end mb-3"};function M6n(e,t,n,o,i,r){const s=y("CategoryCreateButton"),a=y("CategorySearch"),l=y("CategoryTable");return h(),g("div",null,[c("div",L6n,[b(s,{type:"kind"})]),b(a,{type:"kind",query:n.query,class:"mb-3"},null,8,["query"]),b(l,{type:"kind"})])}const N6n=U(O6n,[["render",M6n]]),R6n={components:{CategoryCreateButton:ob,CategorySearch:xg,CategoryTable:ib},props:{query:Object}},j6n={class:"d-flex justify-content-end mb-3"};function F6n(e,t,n,o,i,r){const s=y("CategoryCreateButton"),a=y("CategorySearch"),l=y("CategoryTable");return h(),g("div",null,[c("div",j6n,[b(s,{type:"holiday"})]),b(a,{type:"holiday",query:n.query,class:"mb-3"},null,8,["query"]),b(l,{type:"holiday"})])}const z6n=U(R6n,[["render",F6n]]),U6n={components:{CategoryCreateButton:ob,CategorySearch:xg,CategoryTable:ib},props:{query:Object}},B6n={class:"d-flex justify-content-end mb-3"};function H6n(e,t,n,o,i,r){const s=y("CategoryCreateButton"),a=y("CategorySearch"),l=y("CategoryTable");return h(),g("div",null,[c("div",B6n,[b(s,{type:"format"})]),b(a,{type:"format",query:n.query,class:"mb-3"},null,8,["query"]),b(l,{type:"format"})])}const V6n=U(U6n,[["render",H6n]]),q6n={components:{CircleButtonWithIconOnly:Ag,AccordionItem:Ml,CategorySearch:xg,Loading:Rt},props:{query:Object},data(){return{primaryColor:window.primaryColor,selectedType:"theme"}},computed:{...Oe({loading:"administrationCategory/getLoading",list:"administrationCategory/getList",search:"administrationCategory/getSearch"})},methods:{opened(e,t){t?(this.selectedType=e,this.$router.push({name:this.$route.name,query:null}).catch(()=>{})):this.selectedType=null},getCategoryImageName(e){return e?e.split("/").pop():this.$t("administration.content.category.images.no_image")},edit(e){this.$store.commit("administrationCategory/setDetail",e),this.$store.dispatch("sidebar/open",{type:"category-image-update"})}}},Y6n={class:"vl-parent"},W6n={id:"maxw-100vw"},G6n={class:"mb-0 py-3"},Z6n={class:"row"},K6n={class:"row"},J6n={class:"col-5 mb-2"},X6n={class:"col-4 d-flex"},Q6n={key:0},eCn={key:1,class:"text-muted"},tCn={class:"row"},nCn={class:"col-4 offset-1"},oCn={class:"col-4 d-flex"},iCn={key:0},rCn={key:1,class:"text-muted"};function sCn(e,t,n,o,i,r){const s=y("Loading"),a=y("CategorySearch"),l=y("CircleButtonWithIconOnly"),d=y("AccordionItem");return h(),g("div",null,[c("div",Y6n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",W6n,[(h(),g(pe,null,Me(["theme","kind","class","subject","format","holiday"],u=>c("div",{key:u,class:"row"},[b(d,{onOpen:f=>r.opened(u,f),parent:"maxw-100vw",index:u,"init-opened":u==="theme","title-padding-x":"3",class:"col-12 col-lg-8"},{title:F(()=>[c("h4",G6n,m(e.$tm("category.headline")[u]),1)]),body:F(()=>[c("div",Z6n,[i.selectedType===u?(h(),W(a,{key:0,"exact-match":"",type:i.selectedType,query:n.query,class:"mb-3",ref_for:!0,ref:"filter_"+u},null,8,["type","query"])):D("",!0),(h(!0),g(pe,null,Me(e.list,f=>(h(),g("div",{key:f.id,class:"col-12 mb-5"},[c("div",K6n,[c("div",J6n,m(f.name),1),c("div",X6n,[b(l,{icon:"edit",onClick:p=>r.edit(f),class:"me-2 btn-primary"},null,8,["onClick"]),f.image_path?(h(),g("span",Q6n,m(r.getCategoryImageName(f.image_path)),1)):(h(),g("span",eCn,m(e.$t("administration.content.category.images.no_image")),1))]),f.children?(h(!0),g(pe,{key:0},Me(f.children,p=>(h(),g("div",{key:p.id,class:"col-12 pt-2 pb-2 border-bottom"},[c("div",tCn,[c("div",nCn,m(p.name),1),c("div",oCn,[b(l,{icon:"edit",onClick:v=>r.edit(p),class:"me-2 btn-primary"},null,8,["onClick"]),p.image_path?(h(),g("span",iCn,m(r.getCategoryImageName(p.image_path)),1)):(h(),g("span",rCn,m(e.$t("administration.content.category.images.no_image")),1))])])]))),128)):D("",!0)])]))),128))])]),_:2},1032,["onOpen","index","init-opened"])])),64))])])])}const aCn=U(q6n,[["render",sCn]]),lCn={routes:["administration/content/search/defaults"]},cCn={components:{TabList:qr},data(){return{tab:{titles:Object.values(this.$tm("administration.content.search.tab")),routes:lCn.routes}}}};function dCn(e,t,n,o,i,r){const s=y("TabList"),a=y("router-view");return h(),g("div",null,[i.tab.routes.length>1?(h(),W(s,{key:0,titles:i.tab.titles,routes:i.tab.routes,"padding-x":0,class:"mb-3"},null,8,["titles","routes"])):D("",!0),b(a)])}const uCn=U(cCn,[["render",dCn]]),hCn={components:{AppIcon:Ue,Loading:Rt},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({loading:"administrationSearch/getLoading"}),defaults:{get(){return this.$store.getters["administrationSearch/getDefaults"]},set(e){this.$store.commit("administrationSearch/setDefaults",e)}},areAllFilled(){return this.defaults.every(e=>!!e.title&&!!e.link)},canSave(){return this.defaults.every(e=>e.title!==""&&e.link!=="")}},methods:{constructNew(){return{title:null,link:null,active:!0}},addNew(){this.defaults.push(this.constructNew())},remove(e){if(this.defaults.length===1){this.defaults[0].title=null,this.defaults[0].link=null,this.defaults[0].active=!0;return}this.defaults.splice(e,1),this.save()},toggleActive(e){this.defaults[e].title&&this.defaults[e].link&&(this.defaults[e].active=!this.defaults[e].active),this.save()},save(){(!this.defaults[this.defaults.length-1].title||!this.defaults[this.defaults.length-1].link)&&this.defaults.splice(this.defaults.length-1,1),this.$store.dispatch("administrationSearch/saveDefaults",this.defaults).finally(()=>{this.defaults.push(this.constructNew())})}},mounted(){this.$store.dispatch("administrationSearch/defaults").then(()=>{this.defaults.push(this.constructNew())})}},fCn={class:"row vl-parent"},mCn={class:"col-12 mt-5"},pCn={class:"mb-5"},gCn={key:0,class:"col-12 col-lg-2 mb-lg-0 mb-3"},vCn=["href"],_Cn={key:1,class:"col-12 col-lg-2 mb-lg-0 mb-3"},yCn=["href"],bCn={class:"col-12 col-lg-3 mb-lg-0 mb-3"},kCn={class:J({"form-group":!0,"form-floating":!0})},wCn=["onUpdate:modelValue","placeholder"],$Cn={class:"form-label"},CCn={class:"col-12 col-lg-6 mb-lg-0 mb-3"},SCn={class:J({"form-group":!0,"form-floating":!0})},TCn=["onUpdate:modelValue","placeholder"],ECn={class:"form-label"},ICn={class:"col-12 col-lg-auto text-center mt-2 mt-lg-0 p-0"},PCn=["onClick"],ACn={class:"d-lg-none"},DCn={class:"col-12 col-lg-auto text-center mt-2 mt-lg-0 p-0"},xCn=["onClick"],OCn={class:"d-lg-none"},LCn={class:"col-12 d-flex"},MCn=["disabled"],NCn={class:"col-12 d-flex mt-5"},RCn=["disabled"];function jCn(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=an("tooltip");return h(),g("div",fCn,[c("div",mCn,[c("h4",pCn,m(e.$t("administration.content.search.defaults.title")),1)]),b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),(h(!0),g(pe,null,Me(r.defaults,(d,u)=>(h(),g("div",{class:"row mb-3 align-items-baseline",key:u},[d.active?(h(),g("div",gCn,[d.title&&d.href?(h(),g("a",{key:0,class:"select-badge medium px-3 py-1 text-gray-800",href:d.href,target:"_blank"},m(d.title),9,vCn)):D("",!0)])):(h(),g("div",_Cn,[d.title&&d.href?(h(),g("a",{key:0,class:"select-badge medium px-3 py-1 text-danger",href:d.href,target:"_blank"},[z(m(d.title)+" ",1),b(a,{icon:"hide",class:"ms-icon",height:"16",width:"16"})],8,yCn)):D("",!0)])),c("div",bCn,[c("div",kCn,[xe(c("input",{class:J({"form-control":!0,"is-invalid":d.title===""}),autocomplete:"off",type:"text","onUpdate:modelValue":f=>d.title=f,placeholder:e.$t("administration.content.search.defaults.form.title.placeholder")},null,10,wCn),[[wt,d.title]]),c("label",$Cn,m(e.$t("administration.content.search.defaults.form.title.label")),1)])]),c("div",CCn,[c("div",SCn,[xe(c("input",{class:J({"form-control":!0,"is-invalid":d.link===""}),autocomplete:"off",type:"text","onUpdate:modelValue":f=>d.link=f,placeholder:e.$t("administration.content.search.defaults.form.link.placeholder")},null,10,TCn),[[wt,d.link]]),c("label",ECn,m(e.$t("administration.content.search.defaults.form.link.label")),1)])]),c("div",ICn,[xe((h(),g("button",{class:"btn btn-center btn-lg-sm btn-danger btn-secondary btn-lg-tertiary p-lg-2",onClick:f=>r.remove(u)},[c("span",ACn,m(e.$t("public.delete")),1),b(a,{icon:"delete",class:"ms-icon ms-lg-0",height:"20",width:"20"})],8,PCn)),[[l,{content:e.$t("public.delete"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]),c("div",DCn,[xe((h(),g("button",{class:"btn btn-center btn-lg-sm btn-secondary btn-lg-tertiary p-lg-2",onClick:f=>r.toggleActive(u)},[c("span",OCn,m(e.$t("administration.content.search.defaults.form.hide")),1),b(a,{icon:d.active?"show":"hide",class:"ms-icon ms-lg-0",height:"20",width:"20"},null,8,["icon"])],8,xCn)),[[l,{content:e.$t("administration.content.search.defaults.form.hide"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])]))),128)),c("div",LCn,[c("button",{class:"btn btn-center btn-sm btn-tertiary d-flex align-items-center",disabled:!r.areAllFilled,onClick:t[1]||(t[1]=(...d)=>r.addNew&&r.addNew(...d))},[z(m(e.$t("administration.add"))+" ",1),b(a,{class:"ms-icon",icon:"plus-circle",height:"20",width:"20"})],8,MCn)]),c("div",NCn,[c("button",{class:"btn btn-center btn-sm btn-primary d-flex align-items-center",onClick:t[2]||(t[2]=(...d)=>r.save&&r.save(...d)),disabled:!r.canSave},[z(m(e.$t("administration.save"))+" ",1),b(a,{class:"ms-icon",icon:"check-circle",height:"20",width:"20"})],8,RCn)])])}const FCn=U(hCn,[["render",jCn]]),Lce={routes:["administration/finance/order/list","administration/finance/author/list","administration/finance/vouchers-and-discounts"],vouchers_and_discounts:{routes:["administration/finance/voucher/list","administration/finance/authorDiscount/settings"]}},zCn={components:{PageHeader:ik,TabList:qr},data(){return{tab:{titles:Object.values(this.$tm("administration.finance.tab")),routes:Lce.routes}}}};function UCn(e,t,n,o,i,r){const s=y("PageHeader"),a=y("TabList"),l=y("router-view");return h(),g("div",null,[b(s,{title:e.$t("administration.finance.header.title"),class:"mb-6"},null,8,["title"]),b(a,{titles:i.tab.titles,routes:i.tab.routes,class:"mb-3"},null,8,["titles","routes"]),b(l)])}const BCn=U(zCn,[["render",UCn]]),HCn={props:{query:{type:Object,default(){return{search:null,page:1,account_type:null,payment_state:null,payment_type:null,type:null,date:null}}}},components:{TableSearchWithQuery:tr,OrderTable:Cce,Loading:Rt},computed:{...Oe({loading:"administrationFinanceOrder/getLoading",orders:"administrationFinanceOrder/getOrders",actionLoading:"administrationFinanceOrder/getActionLoading"})},methods:{load(){this.$store.dispatch("administrationFinanceOrder/orders",{filters:this.filterValues()})},onFilterChange(){this.load()},changePage(e){this.page=e},filterValues(){return jo.filterValues(this.filters,this.page)},regenerate(e){this.$store.dispatch("administrationFinanceOrder/regenerate",{invoice:e}).then(()=>{this.load()})}},mounted(){this.$store.commit("administrationFinanceOrder/reset"),this.load(),window.eventBus.on("reload-orders",()=>{this.load()})},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.finance.order.search.placeholder"),value:null},date:{placeholder:this.$t("administration.finance.order.filter.date"),name:"invoice_date",value:null},checkboxes:[{name:"account_type",title:this.$t("administration.finance.order.filter.account_type.title"),options:this.$tm("administration.finance.order.filter.account_type.options"),checked:[]},{name:"type",title:this.$t("administration.finance.order.filter.type.title"),options:this.$tm("administration.finance.order.filter.type.options"),checked:[]},{name:"payment_type",title:this.$t("administration.finance.order.filter.payment_type.title"),options:this.$tm("administration.finance.order.filter.payment_type.options"),checked:[]},{name:"payment_state",title:this.$t("administration.finance.order.filter.payment_state.title"),options:this.$tm("administration.finance.order.filter.payment_state.options"),checked:[]}]}}}},VCn={class:"vl-parent"},qCn={class:"row"},YCn={class:"col-12"},WCn={class:"row"},GCn={class:"col-12 mt-3"};function ZCn(e,t,n,o,i,r){const s=y("Loading"),a=y("TableSearchWithQuery"),l=y("OrderTable");return h(),g("div",VCn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",qCn,[c("div",YCn,[b(a,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,page:i.page,"onUpdate:page":t[1]||(t[1]=d=>i.page=d)},null,8,["filters","query","onChangeFilter","page"])])]),c("div",WCn,[c("div",GCn,[b(l,{orders:e.orders,loading:e.loading,"action-loading":e.actionLoading||e.loading,onPage:r.changePage,onRegenerate:r.regenerate,onReload:r.load},null,8,["orders","loading","action-loading","onPage","onRegenerate","onReload"])])])])}const KCn=U(HCn,[["render",ZCn]]),JCn={props:{title:String,value:String}},XCn={class:"bg-white rounded shadow p-3 mw-15rem"},QCn={class:"small text-gray-600 mb-0"},e7n={class:"fw-bold mb-2"};function t7n(e,t,n,o,i,r){return h(),g("div",XCn,[c("p",QCn,m(n.title),1),c("h3",e7n,m(n.value),1),Pt(e.$slots,"default")])}const Mce=U(JCn,[["render",t7n]]),n7n={props:{filters:Object},components:{AppIcon:Ue,SummaryBox:Mce},computed:{...Oe({settlementPayment:"administrationFinanceAuthor/getSummarySettlementPayment"})},methods:{sendAll(){this.$store.dispatch("sidebar/open",{type:"settlement-payment-summary-send",data:{filters:this.filters}})}}},o7n=["disabled"];function i7n(e,t,n,o,i,r){const s=y("AppIcon"),a=y("SummaryBox");return h(),W(a,{title:e.$t("administration.finance.author.summary.order.title"),value:Number(e.settlementPayment).toLocaleString()+" KÄŤ",class:"me-3"},{default:F(()=>[c("button",{class:"btn btn-sm btn-primary small d-flex align-items-center",onClick:t[0]||(t[0]=(...l)=>r.sendAll&&r.sendAll(...l)),disabled:Number(e.settlementPayment)==0},[z(m(e.$t("administration.finance.author.summary.order.action"))+" ",1),b(s,{icon:"arrow-right",class:"ms-2"})],8,o7n)]),_:1},8,["title","value"])}const r7n=U(n7n,[["render",i7n]]),s7n={components:{SummaryBox:Mce},computed:{...Oe({toPay:"administrationFinanceAuthor/getSummaryToPay"})},data(){return{primaryColor:window.primaryColor}},methods:{openSidePayInfo(){this.$store.dispatch("sidebar/open",{type:"settlement-list"})}},mounted(){this.$store.dispatch("administrationFinanceAuthor/settlementIndex")}};function a7n(e,t,n,o,i,r){const s=y("SummaryBox");return h(),W(s,{title:e.$t("administration.finance.author.summary.pay.title"),value:Number(e.toPay).toLocaleString()+" "+e.$t("currency.short")},{default:F(()=>[c("span",{class:"small text-primary text-decoration-underline-hover cursor-pointer",onClick:t[0]||(t[0]=(...a)=>r.openSidePayInfo&&r.openSidePayInfo(...a))},m(e.$t("administration.finance.author.summary.pay.action")),1)]),_:1},8,["title","value"])}const l7n=U(s7n,[["render",a7n]]),c7n={props:{filters:Object},components:{SettlementPaymentSummaryBox:r7n,ToPaySummaryBox:l7n}},d7n={class:"d-flex"};function u7n(e,t,n,o,i,r){const s=y("SettlementPaymentSummaryBox"),a=y("ToPaySummaryBox");return h(),g("div",d7n,[b(s,{filters:n.filters},null,8,["filters"]),b(a)])}const h7n=U(c7n,[["render",u7n]]),f7n={props:{showLoading:{type:Boolean,default:!1}},components:{InvoiceDownloadLink:bp,FlexTableHead:ti,FlexTableRow:ni,Loading:Rt,Bootstrap5Pagination:Ri,UserBlockDropdown:Nl},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({loading:"administrationFinanceAuthor/getLoading",list:"administrationFinanceAuthor/getList",actionLoading:"administrationFinanceOrder/getActionLoading"})},methods:{regenerate(e){this.loading||this.actionLoading||(this.settlementIdLoading=null,this.$emit("regenerate",e))}}},m7n={class:"col-12 col-md-1"},p7n={class:"col-12 col-md-5"},g7n={class:"col-12 col-md-2"},v7n={class:"col-12 col-md-2"},_7n={class:"col-12 col-md-2"},y7n={key:0},b7n={class:"text-center mt-4"},k7n={class:"col-12 col-md-1"},w7n={class:"col-12 col-md-5"},$7n={class:"col-12 col-md-2"},C7n={class:"col-12 col-md-2"},S7n={class:"col-12 col-md-2"};function T7n(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("Loading"),l=y("UserBlockDropdown"),d=y("InvoiceDownloadLink"),u=y("FlexTableRow"),f=y("Bootstrap5Pagination");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",m7n,m(e.$t("administration.finance.author.table.header.id")),1),c("div",p7n,m(e.$t("administration.finance.author.table.header.name")),1),c("div",g7n,m(e.$t("administration.finance.author.table.header.amount")),1),c("div",v7n,m(e.$t("administration.finance.author.table.header.vs")),1),c("div",_7n,m(e.$t("administration.finance.author.table.header.date")),1)]),_:1}),c("div",{class:J({"vl-parent mh-8":n.showLoading})},[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=p=>e.loading=p),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.list.data&&!e.list.data.length?(h(),g("div",y7n,[c("h4",b7n,m(e.$t("administration.finance.author.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(e.list.data,(p,v)=>(h(),W(u,{key:v,class:J({"border-none":v==e.list.data.length-1})},{default:F(()=>[c("div",k7n,m(p.id),1),c("div",w7n,[b(l,{user:p.user},null,8,["user"])]),c("div",$7n,m(p.amount+" "+e.$t("currency.short")),1),c("div",C7n,[p.invoice?(h(),W(d,{key:1,number:p.invoice.number,href:p.invoice.pdf_url,loading:e.actionLoading||e.loading,onRegenerate:_=>r.regenerate(p.invoice)},null,8,["number","href","loading","onRegenerate"])):(h(),g(pe,{key:0},[z(m(p.variable_symbol),1)],64))]),c("div",S7n,m(p.created_at),1)]),_:2},1032,["class"]))),128)),e.loading?D("",!0):(h(),W(f,{key:2,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:t[1]||(t[1]=p=>e.$emit("page",p)),limit:1,align:"center"},null,8,["data"]))],2)])}const E7n=U(f7n,[["render",T7n]]),I7n={components:{TableSearchWithQuery:tr,FinanceAuthorSummary:h7n,FinanceAuthorTable:E7n,Loading:Rt},props:{query:{type:Object,default(){return{search:null,page:1,date:null}}}},computed:{...Oe({loading:"administrationFinanceAuthor/getLoading"})},methods:{onFilterChange(){this.loading||this.$store.dispatch("administrationFinanceAuthor/settlementPayments",{filters:this.filterValues()})},regenerate(e){this.$store.dispatch("administrationFinanceAuthor/regenerate",{filters:this.filterValues(),invoice:e,dispatchMethod:"settlementPayments"})},changePage(e){this.page=e},filterValues(){return jo.filterValues({...this.filters},this.page)}},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.finance.author.search.placeholder"),value:null},date:{placeholder:this.$t("administration.finance.author.filter.date"),name:"created_at",value:null}}}}},P7n={class:"vl-parent"};function A7n(e,t,n,o,i,r){const s=y("Loading"),a=y("FinanceAuthorSummary"),l=y("TableSearchWithQuery"),d=y("FinanceAuthorTable");return h(),g("div",P7n,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{class:"mb-3",filters:r.filterValues()},null,8,["filters"]),b(l,{query:n.query,filters:i.filters,page:i.page,"onUpdate:page":t[1]||(t[1]=u=>i.page=u),onChangeFilter:r.onFilterChange},null,8,["query","filters","page","onChangeFilter"]),b(d,{class:"mt-3",onRegenerate:r.regenerate,onPage:r.changePage},null,8,["onRegenerate","onPage"])])}const D7n=U(I7n,[["render",A7n]]),x7n={components:{AppIcon:Ue},methods:{openVoucherSidePanel(){this.$store.dispatch("sidebar/open",{type:"voucher-create"})}}};function O7n(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-sm btn-tertiary btn-center",onClick:t[0]||(t[0]=(...a)=>r.openVoucherSidePanel&&r.openVoucherSidePanel(...a))},[z(m(e.$t("administration.finance.voucher.action.create.button"))+" ",1),b(s,{icon:"plus-circle",class:"ms-icon"})])}const L7n=U(x7n,[["render",O7n]]),M7n={components:{AppIcon:Ue,TableButton:Za},props:{voucher:Object,type:{type:String,default:null}},methods:{update(){this.$store.commit("administrationFinanceVoucher/setEdit",this.voucher),this.$store.dispatch("sidebar/open",{type:"voucher-update"})},deleteCode(){let e={id:this.voucher.id,code:this.voucher.code,type:this.type};this.$store.commit("administrationFinanceVoucher/setDelete",e),this.$store.dispatch("sidebar/open",{type:"voucher-delete"})}}},N7n=["href"];function R7n(e,t,n,o,i,r){const s=y("AppIcon"),a=y("TableButton");return h(),W(a,null,{default:F(()=>[n.type==="voucher"?(h(),g("a",{key:0,href:e.ziggyRoute("administration.api.finance.voucher.pdf",{voucher:n.voucher.id}),class:"dropdown-item d-flex align-items-center btn-tertiary text-dark cursor-pointer medium",target:"_blank"},[b(s,{icon:"arrow-down",class:"me-2 text-primary"}),z(" "+m(e.$t("administration.finance.voucher.action.download")),1)],8,N7n)):D("",!0),c("button",{class:"dropdown-item d-flex align-items-center btn-tertiary text-dark cursor-pointer medium",onClick:t[0]||(t[0]=Gt((...l)=>r.update&&r.update(...l),["prevent"]))},[b(s,{icon:"edit",class:"me-2 text-primary"}),z(" "+m(e.$t("administration.finance.voucher.action.edit.button")),1)]),c("button",{class:"dropdown-item d-flex align-items-center btn-danger btn-tertiary text-dark cursor-pointer medium",onClick:t[1]||(t[1]=Gt((...l)=>r.deleteCode&&r.deleteCode(...l),["prevent"]))},[b(s,{icon:"delete",class:"me-2 text-danger"}),z(" "+m(e.$t("administration.finance.voucher.action.delete.button")),1)])]),_:1})}const j7n=U(M7n,[["render",R7n]]),F7n={components:{FlexTableHead:ti,FlexTableRow:ni,Loading:Rt,Bootstrap5Pagination:Ri,VoucherTableButton:j7n},props:{showLoading:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor,moment:mt}},computed:{...Oe({loading:"administrationFinanceVoucher/getLoading",list:"administrationFinanceVoucher/getList"})},methods:{isDiscount(e){return e.type=="discount"||e.discount},discount(e){return e.discount?e.discount:e.amount?e.amount:0}}},z7n={class:"col-12 col-md-1"},U7n={class:"col-12 col-md-1"},B7n={class:"col-12 col-md-1"},H7n={class:"col-12 col-md-2"},V7n={class:"col-12 col-md-3"},q7n={class:"col-12 col-md-2"},Y7n={key:0},W7n={class:"text-center mt-4"},G7n={class:"col-12 col-md-1"},Z7n={class:"col-12 col-md-1"},K7n={class:"col-12 col-md-1"},J7n={class:"col-12 col-md-2"},X7n={key:0},Q7n={key:1},eSn={class:"small text-gray-600 mb-0"},tSn={class:"col-12 col-md-3"},nSn={class:"col-12 col-md-2"},oSn={class:"col-12 col-md-2 d-flex justify-content-between align-items-center"};function iSn(e,t,n,o,i,r){const s=y("FlexTableHead"),a=y("Loading"),l=y("VoucherTableButton"),d=y("FlexTableRow"),u=y("Bootstrap5Pagination");return h(),g("div",null,[b(s,null,{default:F(()=>[c("div",z7n,m(e.$t("administration.finance.voucher.table.header.date")),1),c("div",U7n,m(e.$t("administration.finance.voucher.table.header.expiration")),1),c("div",B7n,m(e.$t("administration.finance.voucher.table.header.code")),1),c("div",H7n,m(e.$t("administration.finance.voucher.table.header.amount")),1),c("div",V7n,m(e.$t("administration.finance.voucher.table.header.email")),1),t[2]||(t[2]=c("div",{class:"col-12 col-md-2"},null,-1)),c("div",q7n,m(e.$t("administration.finance.voucher.table.header.note")),1)]),_:1}),c("div",{class:J({"vl-parent mh-8":n.showLoading})},[b(a,{active:e.loading,"onUpdate:active":t[0]||(t[0]=f=>e.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.list.data&&!e.list.data.length?(h(),g("div",Y7n,[c("h4",W7n,m(e.$t("administration.finance.voucher.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(e.list.data,(f,p)=>(h(),W(d,{key:p,class:J({"border-none":p==e.list.data.length-1})},{default:F(()=>[c("div",G7n,m(f.valid_from_format),1),c("div",Z7n,m(f.valid_to_format?f.valid_to_format:e.$t("public.unlimited")),1),c("div",K7n,m(f.code),1),c("div",J7n,[r.isDiscount(f)?(h(),g("div",X7n,m("Sleva "+r.discount(f)+"%"),1)):(h(),g("div",Q7n,[z(m(f.amount+" "+e.$t("currency.short"))+" ",1),c("p",eSn,m(e.$t("administration.finance.voucher.table.content.applied_amount")+": "+f.applied_amount+" "+e.$t("currency.short")),1)]))]),c("div",tSn,m(f.send_to),1),c("div",nSn,[c("div",null,m(f.note),1)]),c("div",oSn,[c("div",null,m(f.by_admin?e.$t("administration.finance.voucher.table.by_admin"):""),1),b(l,{voucher:f,type:r.isDiscount(f)?"discount":"voucher"},null,8,["voucher","type"])])]),_:2},1032,["class"]))),128)),e.loading?D("",!0):(h(),W(u,{key:2,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:t[1]||(t[1]=f=>e.$emit("page",f)),limit:1,align:"center"},null,8,["data"]))],2)])}const rSn=U(F7n,[["render",iSn]]),sSn={components:{TableSearchWithQuery:tr,FinanceVoucherCreateButton:L7n,VoucherTable:rSn,Loading:Rt},props:{query:{type:Object,default(){return{page:1,search:null,type:null,valid:null}}}},computed:{...Oe({loading:"administrationFinanceVoucher/getLoading"})},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.finance.voucher.search.placeholder"),value:null},checkboxes:[{name:"type",title:this.$t("administration.finance.voucher.filter.type.title"),options:this.$tm("administration.finance.voucher.filter.type.options"),checked:[]},{name:"valid",title:this.$t("administration.finance.voucher.filter.valid.title"),options:this.$tm("administration.finance.voucher.filter.valid.options"),checked:[]},{name:"created_by",title:this.$t("administration.finance.voucher.filter.created_by.title"),options:this.$tm("administration.finance.voucher.filter.created_by.options"),checked:[]}]}}},methods:{onFilterChange(){this.$store.dispatch("administrationFinanceVoucher/list",{filters:this.filterValues()})},filterValues(){return jo.filterValues(this.filters,this.query.page)},changePage(e){this.page=e}}},aSn={class:"vl-parent mh-8"},lSn={class:"d-flex justify-content-end"};function cSn(e,t,n,o,i,r){const s=y("Loading"),a=y("FinanceVoucherCreateButton"),l=y("TableSearchWithQuery"),d=y("VoucherTable");return h(),g("div",aSn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",lSn,[b(a,{class:"mb-3"})]),b(l,{class:"mb-3",filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,page:i.page,"onUpdate:page":t[1]||(t[1]=u=>i.page=u),loading:!1},null,8,["filters","query","onChangeFilter","page"]),b(d,{query:n.query,onPage:r.changePage,"show-loading":!1},null,8,["query","onPage"])])}const dSn=U(sSn,[["render",cSn]]),uSn={components:{PageHeader:ik,TabList:qr},data(){return{tab:{titles:Object.values(this.$tm("administration.message.tab")),routes:["administration/message/message","administration/message/infobox","administration/message/notification"]}}}};function hSn(e,t,n,o,i,r){const s=y("PageHeader"),a=y("TabList"),l=y("router-view");return h(),g("div",null,[b(s,{title:e.$t("administration.message.header.title"),class:"mb-6"},null,8,["title"]),b(a,{titles:i.tab.titles,routes:i.tab.routes,class:"mb-2"},null,8,["titles","routes"]),b(l)])}const fSn=U(uSn,[["render",hSn]]),mSn={components:{TableSearchWithQuery:tr},props:{page:Number,query:{type:Object,default(){return{page:1,search:null}}},pauseUpdate:{type:Boolean,default:!1}},computed:{pageModel:{get(){return this.page},set(e){this.$emit("update:page",e)}}},data(){return{filters:{search:{placeholder:this.$t("administration.message.search.placeholder"),value:null}}}},methods:{onFilterChange(){this.$store.dispatch("administrationMessage/list",{filters:this.filterValues()})},filterValues(){return jo.filterValues(this.filters,this.query.page)}}};function pSn(e,t,n,o,i,r){const s=y("TableSearchWithQuery");return h(),g("div",null,[b(s,{filters:i.filters,query:n.query,onChangeFilter:r.onFilterChange,page:r.pageModel,"onUpdate:page":t[0]||(t[0]=a=>r.pageModel=a),loading:!1,"pause-update":n.pauseUpdate},null,8,["filters","query","onChangeFilter","page","pause-update"])])}const gSn=U(mSn,[["render",pSn]]),vSn={components:{FlexTableHead:ti,FlexTableRow:ni,UserBlockDropdown:Nl,Loading:Rt,Bootstrap5Pagination:Ri,MessageSearch:gSn},props:{query:{type:Object,default:()=>({conversation:null})}},data(){return{primaryColor:window.primaryColor,page:1,pauseUpdate:!1}},computed:{...Oe({loading:"administrationMessage/loading",list:"administrationMessage/getListData",isChatOpen:"sidebarChat/getChatOpenStatus",conversation:"administrationMessages/getConversation"}),queryModel:{get(){return this.query},set(e){this.$emit("update:query",e)}}},methods:{setPage(e){this.page=e},openSideBarChat(e,t=!1){t?this.$store.commit("administrationMessages/setConversationId",e.id):this.$store.commit("administrationMessages/setConversation",e),this.$store.commit("sidebarChat/setChatOpen",!0)},isMessageUnread(e){return e.unread_messages_count>0}},mounted(){this.query.conversation&&this.$nextTick(()=>{this.openSideBarChat({id:this.query.conversation},!0)})},watch:{isChatOpen(e){if(e===!1&&(delete this.queryModel.conversation,this.pauseUpdate=!0,this.$router.push({name:this.$route.name,query:this.query}).then(()=>{this.pauseUpdate=!1})),e===!0){if(this.query.conversation===this.conversation.id)return;this.pauseUpdate=!0,this.$router.push({name:this.$route.name,query:{...this.query,conversation:this.conversation.id}}).then(()=>{this.pauseUpdate=!1})}}}},_Sn={class:"vl-parent mh-8"},ySn={class:"col-12 col-md-2"},bSn={class:"col-12 col-md-9"},kSn={class:"col-12 col-md-1 text-end"},wSn={key:0},$Sn={class:"text-center mt-4"},CSn=["onClick"],SSn={class:"col-12 col-md-2 text-truncate"},TSn={class:"col-12 col-md-9"},ESn=["innerHTML"],ISn={class:"col-12 col-md-1"},PSn={class:"text-end mb-0"},ASn={class:"small text-end mb-0"};function DSn(e,t,n,o,i,r){const s=y("Loading"),a=y("MessageSearch"),l=y("FlexTableHead"),d=y("UserBlockDropdown"),u=y("FlexTableRow"),f=y("Bootstrap5Pagination");return h(),g("div",_Sn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=p=>e.loading=p),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{query:n.query,page:i.page,"onUpdate:page":t[1]||(t[1]=p=>i.page=p),class:"mb-3","pause-update":i.pauseUpdate},null,8,["query","page","pause-update"]),b(l,null,{default:F(()=>[c("div",ySn,m(e.$t("administration.message.table.header.user")),1),c("div",bSn,m(e.$t("administration.message.table.header.message")),1),c("div",kSn,m(e.$t("administration.message.table.header.last_activity")),1)]),_:1}),e.list.list.data&&!e.list.list.data.length?(h(),g("div",wSn,[c("h4",$Sn,m(e.$t("administration.message.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(e.list.list.data,(p,v)=>(h(),g("div",{key:v,class:J(["cursor-pointer",{"fw-bold":r.isMessageUnread(p)}]),onClick:_=>r.openSideBarChat(p)},[b(u,{class:J({"border-none":v==e.list.list.data.length-1})},{default:F(()=>[c("div",SSn,[b(d,{user:p.user},null,8,["user"])]),c("div",TSn,[c("span",{innerHTML:p.last_message},null,8,ESn)]),c("div",ISn,[c("p",PSn,m(p.last_activity_date),1),c("p",ASn,m(p.last_activity_time),1)])]),_:2},1032,["class"])],10,CSn))),128)),e.loading?D("",!0):(h(),W(f,{key:2,class:"mt-4",data:e.list.list,onPaginationChangePage:r.setPage,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])}const xSn=U(vSn,[["render",DSn]]),OSn={components:{MessageTable:xSn},props:{query:Object}};function LSn(e,t,n,o,i,r){const s=y("MessageTable");return h(),g("div",null,[b(s,{query:n.query},null,8,["query"])])}const MSn=U(OSn,[["render",LSn]]),NSn={components:{AppIcon:Ue},methods:{create(){this.$store.commit("administrationCustomNotification/resetDetail"),this.$store.dispatch("sidebar/open",{type:"custom-notification-create"})}}};function RSn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",null,[c("button",{class:"btn btn-sm btn-center btn-tertiary",onClick:t[0]||(t[0]=(...a)=>r.create&&r.create(...a))},[z(m(e.$t("administration.message.notification.create.button"))+" ",1),b(s,{icon:"plus-circle",class:"ms-icon"})])])}const jSn=U(NSn,[["render",RSn]]),FSn={components:{LoadingOverlay:Rt},props:{loading:{type:Boolean,default(){return!1}},canCancel:{type:Boolean,default(){return!1}},isFullPage:{type:Boolean,default(){return!1}}},data(){return{primaryColor:window.primaryColor}},computed:{loadingModel:{get(){return this.loading},set(e){this.$emit("update:loading",e)}}}};function zSn(e,t,n,o,i,r){const s=y("LoadingOverlay");return h(),W(s,{active:r.loadingModel,"onUpdate:active":t[0]||(t[0]=a=>r.loadingModel=a),color:i.primaryColor,"can-cancel":n.canCancel,"is-full-page":n.isFullPage},null,8,["active","color","can-cancel","is-full-page"])}const TM=U(FSn,[["render",zSn]]),USn={components:{AppIcon:Ue},props:{notification:Object},methods:{update(){let e=window._.cloneDeep(this.notification);this.$store.commit("administrationCustomNotification/setDetail",e),this.$store.dispatch("sidebar/open",{type:"custom-notification-update"})}}};function BSn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item btn-tertiary align-items-center",onClick:t[0]||(t[0]=(...a)=>r.update&&r.update(...a))},[b(s,{icon:"edit",class:"me-2"}),z(" "+m(e.$t("public.update")),1)])}const HSn=U(USn,[["render",BSn]]),VSn={components:{AppIcon:Ue},props:{notification:Object},methods:{deletee(){this.$store.commit("administrationCustomNotification/setDetail",this.notification),this.$store.dispatch("sidebar/open",{type:"custom-notification-delete"})}}};function qSn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"dropdown-item btn-danger btn-tertiary align-items-center",onClick:t[0]||(t[0]=(...a)=>r.deletee&&r.deletee(...a))},[b(s,{icon:"delete",class:"me-2"}),z(" "+m(e.$t("public.delete")),1)])}const YSn=U(VSn,[["render",qSn]]),WSn={components:{AppIcon:Ue,FlexTableHead:ti,Loading:TM,CustomNotificationCreateButton:jSn,FlexTableRow:ni,TableButton:Za,CustomNotificationUpdateButton:HSn,CustomNotificationDeleteButton:YSn,Bootstrap5Pagination:Ri,TableSearchWithQuery:tr},props:{query:{type:Object,default:()=>({page:1,search:null})}},data(){return{primaryColor:window.primaryColor,page:1,filters:{search:{placeholder:this.$t("administration.product.search.placeholder"),value:null}}}},computed:{...sn({list:e=>e.administrationCustomNotification.list,loading:e=>e.administrationCustomNotification.loading})},methods:{load(){this.$store.dispatch("administrationCustomNotification/index",{filters:this.filterValues()})},setPage(e){this.page=e},filterValues(){return jo.filterValues(this.filters,this.query.page)},isPublished(e){return mt(e.published_at_iso).isBefore(mt())}}},GSn={class:"vl-parent mh-8"},ZSn={class:"col-12 col-md-2"},KSn={class:"col-12 col-md-6"},JSn={class:"col-12 col-md-2"},XSn={class:"col-12 col-md-2"},QSn={key:0},eTn={class:"text-center mt-4"},tTn={class:"col-12 col-md-2 text-truncate fw-bold"},nTn={class:"col-12 col-md-6 text-truncate"},oTn=["innerHTML"],iTn={class:"col-12 col-md-2 d-flex align-items-center"},rTn={class:"mb-0"},sTn={class:"small mb-0"},aTn={class:"ms-2"},lTn={class:"col-12 col-md-2 d-flex align-items-center justify-content-between"},cTn={class:"mb-0"},dTn={class:"small mb-0"};function uTn(e,t,n,o,i,r){const s=y("Loading"),a=y("CustomNotificationCreateButton"),l=y("TableSearchWithQuery"),d=y("FlexTableHead"),u=y("AppIcon"),f=y("CustomNotificationUpdateButton"),p=y("CustomNotificationDeleteButton"),v=y("TableButton"),_=y("FlexTableRow"),k=y("Bootstrap5Pagination"),C=an("tooltip");return h(),g("div",GSn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=$=>e.loading=$),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{class:"d-flex justify-content-end mb-3"}),b(l,{class:"mb-3",filters:i.filters,query:n.query,onChangeFilter:r.load,page:i.page,"onUpdate:page":t[1]||(t[1]=$=>i.page=$),loading:!1},null,8,["filters","query","onChangeFilter","page"]),b(d,null,{default:F(()=>[c("div",ZSn,m(e.$t("administration.message.notification.table.header.title")),1),c("div",KSn,m(e.$t("administration.message.notification.table.header.content")),1),c("div",JSn,m(e.$t("administration.message.notification.table.header.published_at")),1),c("div",XSn,m(e.$t("administration.message.notification.table.header.last_activity")),1)]),_:1}),e.list.data&&!e.list.data.length?(h(),g("div",QSn,[c("h4",eTn,m(e.$t("administration.message.table.not_found")),1)])):(h(!0),g(pe,{key:1},Me(e.list.data,($,E)=>(h(),g("div",{key:E},[b(_,{class:J({"border-none":E==e.list.data.length-1})},{default:F(()=>[c("div",tTn,m($.title),1),c("div",nTn,[c("p",{innerHTML:$.content,class:"maxh-4rem mb-neg-3"},null,8,oTn)]),c("div",iTn,[c("div",null,[c("p",rTn,m($.published_at_date),1),c("p",sTn,m($.published_at_time),1)]),c("div",aTn,[r.isPublished($)?xe((h(),W(u,{key:0,icon:"check-fill",class:"text-success",height:"24",width:"24"},null,512)),[[C,{content:e.$t("administration.message.notification.table.already_published"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0)])]),c("div",lTn,[c("div",null,[c("p",cTn,m($.created_at_date),1),c("p",dTn,m($.created_at_time),1)]),b(v,null,{default:F(()=>[b(f,{notification:$},null,8,["notification"]),b(p,{notification:$},null,8,["notification"])]),_:2},1024)])]),_:2},1032,["class"])]))),128)),e.loading?D("",!0):(h(),W(k,{key:2,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.setPage,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])}const hTn=U(WSn,[["render",uTn]]),fTn={components:{CustomNotificationTable:hTn},props:{query:Object}};function mTn(e,t,n,o,i,r){const s=y("CustomNotificationTable");return h(),g("div",null,[b(s,{query:n.query},null,8,["query"])])}const pTn=U(fTn,[["render",mTn]]),gTn={components:{AppIcon:Ue}},vTn={class:"h-100 d-flex flex-column align-items-center justify-content-center"};function _Tn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",vTn,[b(s,{icon:"close-circle",height:"24",width:"24",class:"mb-2"}),c("h3",null,m(e.$t("administration.not_found")),1)])}const yTn=U(gTn,[["render",_Tn]]),bTn={components:{DateSinglePicker:dd,TransitionCollapseHeight:qo,Loading:Rt,AppIcon:Ue},data(){return{validFrom:null,validTo:null,today:new Date().toISOString(),timezone:mr.timezone,primaryColor:window.primaryColor,mode:null}},computed:{...Oe({discountActive:"administrationFinanceAuthorDiscount/getActiveDiscount",discountPlanned:"administrationFinanceAuthorDiscount/getFutureDiscount",loading:"administrationFinanceAuthorDiscount/loading"})},mounted(){this.initDates(),this.$store.dispatch("administrationFinanceAuthorDiscount/index")},methods:{editActive(){this.changeModeDelay("edit");let e=this.discountActive??this.discountPlanned;this.validFrom=e.valid_from_iso,this.validTo=e.valid_to_iso},createActive(){this.changeModeDelay("create"),this.initDates()},deleteActive(){this.$store.dispatch("sidebar/open",{type:"author-discount-automatic-settings-delete"})},initDates(){this.isDiscountOnlyExclusiveProducts=!1,this.validFrom=new Date().toISOString(),this.validTo=new Date(mt().add(1,"day").toDate()).toISOString()},save(){let e={},t="";this.mode==="create"&&(t="administrationFinanceAuthorDiscount/create",e={authorDiscount:{valid_from:this.validFrom,valid_to:this.validTo}}),this.mode==="edit"&&(t="administrationFinanceAuthorDiscount/update",e={authorDiscount:{id:this.discountActive?this.discountActive.id:this.discountPlanned.id,valid_from:this.validFrom,valid_to:this.validTo}}),this.$store.dispatch(t,e).then(()=>{this.mode=null})},changeModeDelay(e){e!==this.mode&&(this.mode=null,setTimeout(()=>{this.mode=e},200))}}},kTn={class:"row"},wTn={class:"col-12 col-lg-8"},$Tn={class:"vl-parent"},CTn={class:"row"},STn={class:"col-12 mb-5"},TTn={key:0},ETn={class:"fw-bold"},ITn={key:0},PTn={class:"fw-bold"},ATn={key:1},DTn={class:"fs-Ĺľ"},xTn={class:"fw-bold"},OTn={key:0},LTn={class:"fw-bold"},MTn={key:2,class:"fw-bold mb-0"},NTn={key:3,class:"d-flex gap-2 mt-3"},RTn={class:"d-flex gap-3 mt-3"},jTn={class:"fw-medium"},FTn={class:"form-group form-floating mt-5"},zTn={class:"row"},UTn={class:"col-12 col-md-6"},BTn={class:"form-group"},HTn={class:"col-12 col-md-6"},VTn={class:"form-group"},qTn={key:0,class:"text-danger fw-bold mt-4"},YTn={key:1,class:"text-danger fw-medium mb-0"},WTn={class:"mt-5 d-flex justify-content-between"};function GTn(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("DateSinglePicker"),d=y("TransitionCollapseHeight");return h(),g("div",kTn,[c("div",wTn,[c("div",$Tn,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",CTn,[c("div",STn,[c("div",{class:J(["content-box",[e.discountActive?"bg-success-subtle":"bg-light"]])},[e.discountActive?(h(),g("div",TTn,[c("h4",ETn,m(e.$t("administration.finance.voucher.author_discounts.active.title"))+" "+m(e.discountActive.valid_from+" - "+e.discountActive.valid_to),1),c("p",null,m(e.$t("administration.finance.voucher.author_discounts.active.info")),1),e.discountActive.can_set_from?(h(),g("p",ITn,[z(m(e.$t("administration.finance.voucher.author_discounts.author_can_edit_from")+": ")+" ",1),c("span",PTn,m(e.discountActive.can_set_from),1)])):D("",!0)])):e.discountPlanned?(h(),g("div",ATn,[c("div",DTn,[c("h4",xTn,m(e.$t("administration.finance.voucher.author_discounts.planned.title"))+" "+m(e.discountPlanned.valid_from+" - "+e.discountPlanned.valid_to),1),c("p",null,m(e.$t("administration.finance.voucher.author_discounts.planned.info")),1),e.discountPlanned.can_set_from?(h(),g("p",OTn,[z(m(e.$t("administration.finance.voucher.author_discounts.author_can_edit_from")+": ")+" ",1),c("span",LTn,m(e.discountPlanned.can_set_from),1)])):D("",!0)])])):(h(),g("h4",MTn,m(e.$t("administration.finance.voucher.author_discounts.no_active_now")),1)),e.discountActive||e.discountPlanned?(h(),g("div",NTn,[c("button",{class:"btn btn-sm btn-secondary btn-center",onClick:t[1]||(t[1]=(...u)=>r.editActive&&r.editActive(...u))},[b(a,{icon:"edit",class:"me-icon"}),z(" "+m(e.$t("public.update")),1)]),c("button",{class:"btn btn-sm btn-secondary btn-danger btn-center",onClick:t[2]||(t[2]=(...u)=>r.deleteActive&&r.deleteActive(...u))},[b(a,{icon:"delete",class:"me-icon"}),z(" "+m(e.$t("public.delete")),1)])])):D("",!0)],2),c("div",RTn,[c("button",{class:"btn btn-sm btn-primary btn-center",onClick:t[3]||(t[3]=(...u)=>r.createActive&&r.createActive(...u))},[b(a,{icon:"plus-circle",class:"me-icon"}),z(" "+m(e.$t("administration.finance.voucher.author_discounts.create_new_discount.action")),1)])])])]),b(d,null,{default:F(()=>[i.mode?(h(),g("div",{key:0,class:J(["content-box",i.mode=="create"?"bg-danger-light":"bg-light"])},[c("h4",jTn,m(i.mode=="create"?e.$t("administration.finance.voucher.author_discounts.create_new_discount.title"):e.$t("administration.finance.voucher.author_discounts.edit_discount.title")),1),c("div",FTn,[c("div",zTn,[c("div",UTn,[c("div",BTn,[b(l,{id:"valid_from",name:"valid_from",class:"form-control border-radius-end-none py-2 px-3",mode:"date",value:i.validFrom,"onUpdate:value":t[4]||(t[4]=u=>i.validFrom=u),placeholder:e.$t("voucher.now"),label:e.$t("administration.finance.voucher.action.create.from"),"min-date":i.today,"is-small-label":""},null,8,["value","placeholder","label","min-date"])])]),c("div",HTn,[c("div",VTn,[b(l,{id:"valid_to",name:"valid_to",class:"form-control border-radius-end-none py-2 px-3",mode:"date",value:i.validTo,"onUpdate:value":t[5]||(t[5]=u=>i.validTo=u),placeholder:e.$t("voucher.now"),label:e.$t("administration.finance.voucher.action.create.to"),"min-date":i.today,"is-small-label":""},null,8,["value","placeholder","label","min-date"])])])])]),i.mode=="create"?(h(),g("h4",qTn,m(e.$t("administration.finance.voucher.author_discounts.new_discount_note.0")),1)):D("",!0),i.mode=="create"?(h(),g("ul",YTn,[c("li",null,m(e.$t("administration.finance.voucher.author_discounts.new_discount_note.1")),1),c("li",null,m(e.$t("administration.finance.voucher.author_discounts.new_discount_note.2")),1),c("li",null,m(e.$t("administration.finance.voucher.author_discounts.new_discount_note.3")),1)])):D("",!0),c("div",WTn,[c("button",{class:"btn btn-tertiary btn-sm",onClick:t[6]||(t[6]=u=>i.mode=null)},m(e.$t("public.cancel")),1),c("button",{class:"btn btn-primary btn-sm",onClick:t[7]||(t[7]=(...u)=>r.save&&r.save(...u))},m(e.$t("public.save")),1)])],2)):D("",!0)]),_:1})])])])}const ZTn=U(bTn,[["render",GTn]]),KTn={components:{PageHeader:ik,TabList:qr},data(){return{tab:{titles:Object.values(this.$tm("administration.finance.voucher.tabs")),routes:Lce.vouchers_and_discounts.routes}}}};function JTn(e,t,n,o,i,r){const s=y("PageHeader"),a=y("TabList"),l=y("router-view");return h(),g("div",null,[b(s,{class:"mt-5 mb-5",title:e.$tm("administration.finance.tab.voucher")},null,8,["title"]),b(a,{titles:i.tab.titles,routes:i.tab.routes,class:"mb-3"},null,8,["titles","routes"]),b(l)])}const XTn=U(KTn,[["render",JTn]]),QTn={props:{height:{type:[Number,String],default:23},width:{type:[Number,String],default:24}}};function eEn(e,t,n,o,i,r){return h(),g("div",{class:"d-inline-block",style:Bn("width: "+n.width+"px; height: "+n.height+"px;")},t[0]||(t[0]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none"},[c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5588 0.523918C10.4213 0.530589 9.93262 0.567531 9.47279 0.606024C8.26075 0.707471 7.58065 0.758324 7.03358 0.788387C5.9209 0.849514 5.19555 0.92831 4.40948 1.07344C3.91869 1.16406 3.85969 1.20386 3.87868 1.43163C3.88444 1.50078 3.88372 1.91735 3.87705 2.35734L3.86493 3.15733L3.77994 3.08093C2.71474 2.12323 0.832325 2.56775 0.254672 3.9134C-0.316966 5.24506 0.0802373 6.779 1.38059 8.26154C2.45218 9.48327 3.8223 10.3281 5.69761 10.9235L5.94757 11.0029L6.10676 11.2084C6.86236 12.1841 7.98866 13.201 9.60531 14.3673C10.092 14.7184 10.0603 14.6616 10.0605 15.1827C10.0606 15.4801 10.0473 15.513 9.83612 15.739C9.37592 16.2315 9.28023 16.5204 9.4269 16.9742C9.48184 17.1442 9.53595 17.0997 8.90392 17.4035C8.48683 17.6039 8.37942 17.7008 8.18919 18.0478L8.10367 18.2039L7.99095 18.2134C7.92896 18.2186 7.79292 18.2347 7.68863 18.2491C7.10506 18.3297 5.42411 18.415 4.89603 18.3909C4.2804 18.3628 4.18732 18.4229 4.16236 18.8644C4.15357 19.0201 4.13079 19.3337 4.11176 19.5612C4.06024 20.1774 4.04427 20.5355 4.03217 21.3454C4.01113 22.756 4.06393 23.0123 4.40162 23.1387C4.59505 23.2111 6.08209 23.3401 7.36972 23.3961C10.2337 23.5207 13.5954 23.5249 15.5665 23.4061C15.8035 23.3918 16.1526 23.3718 16.3422 23.3617C17.5588 23.2964 18.2278 23.1182 18.3815 22.8185C18.4431 22.6985 18.6428 19.1187 18.6434 18.1256C18.6436 17.693 18.5877 17.6498 18.135 17.7321C18.0592 17.7459 17.8148 17.7655 17.592 17.7757C17.3692 17.7858 17.0124 17.8022 16.799 17.812C16.4283 17.8292 15.6122 17.9013 15.5579 17.9218C15.5398 17.9286 15.5088 17.8947 15.4545 17.8089C15.2233 17.4435 14.9408 17.2536 14.2133 16.9746C13.6993 16.7774 13.7167 16.8026 13.8227 16.409C13.9459 15.952 13.8188 15.6274 13.4076 15.3493L13.3001 15.2765L13.3088 15.1176C13.3137 15.0301 13.321 14.8997 13.3251 14.8276C13.3416 14.5417 13.3796 14.4888 13.8085 14.1555C14.6037 13.5374 15.4379 12.6418 16.0233 11.7776C16.1323 11.6167 16.2914 11.3851 16.3767 11.2631L16.5318 11.0412L16.618 11.0296C17.1333 10.9599 18.7828 10.3469 19.4776 9.96677C20.6388 9.33152 21.8258 8.28194 22.4411 7.34654C23.434 5.83707 23.7398 4.30794 23.3066 3.01903C23.0517 2.26077 22.1092 1.47326 21.2283 1.28262C20.4493 1.11405 19.3415 1.45715 18.6947 2.06729L18.5816 2.174L18.5512 1.82615C18.5345 1.63482 18.5015 1.36378 18.4779 1.22381C18.4543 1.08383 18.4393 0.962287 18.4446 0.953702C18.4499 0.9451 18.4346 0.875854 18.4105 0.799799C18.3626 0.648189 18.3418 0.63033 18.2359 0.650188C18.1738 0.661841 17.007 0.636432 16.256 0.607075C16.019 0.597801 15.6738 0.573254 15.4889 0.552499C15.1389 0.513231 11.2452 0.490648 10.5588 0.523918ZM15.1857 0.883129C15.2891 0.893144 15.4947 0.913054 15.6425 0.927362C15.9221 0.954461 16.5453 0.97806 17.5108 0.998108C17.8217 1.00456 18.0801 1.01633 18.085 1.02426C18.117 1.07597 18.2055 2.01442 18.2498 2.77116C18.2774 3.24273 18.2761 4.59044 18.248 4.692C18.2363 4.734 18.2238 4.88526 18.2201 5.02815C18.1881 6.25362 17.6596 8.14279 16.9368 9.61474C16.7088 10.0791 16.3882 10.6326 16.269 10.7677C16.2382 10.8027 16.2129 10.8399 16.2129 10.8506C16.2129 10.8612 16.1947 10.8939 16.1724 10.9232C16.1501 10.9526 15.9707 11.2132 15.7737 11.5023C15.1585 12.4053 14.3381 13.3022 13.6617 13.8111C13.0581 14.2653 12.961 14.4353 12.9509 15.0563L12.9463 15.3401L12.9984 15.4424C13.0433 15.5308 13.07 15.558 13.1948 15.6421C13.5071 15.8528 13.574 16.0687 13.4481 16.4583C13.3005 16.915 13.436 17.0712 14.2477 17.3803C14.8625 17.6144 15.1156 17.8274 15.3098 18.274C15.34 18.3434 15.3805 18.4171 15.3998 18.4377C15.5424 18.5899 15.4534 18.8347 15.2105 18.9588C14.306 19.4211 10.6432 19.5717 8.97288 19.2152C8.30515 19.0728 8.20067 18.9898 8.29328 18.6759C8.45432 18.1301 8.72001 17.8472 9.29178 17.6125C9.76956 17.4165 9.901 17.2433 9.78894 16.9576C9.65908 16.6266 9.72191 16.3946 10.0285 16.0728C10.3702 15.7144 10.4045 15.636 10.4165 15.1878C10.4326 14.5861 10.3623 14.4437 9.89243 14.1266C8.75438 13.3587 7.28698 12.0814 6.63156 11.2881C6.53032 11.1656 6.39438 11.0066 6.3295 10.9348C6.19128 10.7818 6.05993 10.5895 5.9457 10.3731C5.90073 10.2878 5.82457 10.1521 5.77646 10.0716C5.55029 9.69276 4.93323 8.0877 4.73474 7.36193C4.49247 6.47614 4.35374 5.59249 4.26567 4.37432C4.24236 4.05183 4.22386 2.0961 4.24074 1.7363L4.25322 1.47004L4.31605 1.4534C4.72206 1.34594 5.85927 1.21443 6.93015 1.15111C7.77477 1.10118 8.43913 1.05093 9.61069 0.94841L10.4295 0.876751L12.1447 0.865511C14.1132 0.852617 14.9187 0.857271 15.1857 0.883129ZM21.1204 1.63504C21.6968 1.73692 22.2538 2.10522 22.7504 2.71271C22.9756 2.98818 23.1429 3.62341 23.1426 4.20149C23.1413 6.43282 21.2643 8.83577 18.6349 9.97233C18.03 10.2338 17.0275 10.5887 16.8939 10.5887C16.8878 10.5887 16.9097 10.5557 16.9425 10.5154C16.9753 10.4751 17.0625 10.3491 17.1362 10.2353C17.4329 9.77744 17.6072 9.63083 18.8676 8.77909C20.2049 7.87539 20.6976 7.43423 21.2936 6.60667C22.2771 5.24099 22.4053 3.71161 21.5838 3.14367C20.6321 2.48577 19.3641 2.72009 18.7156 3.67367L18.6177 3.81771L18.609 3.32029L18.6003 2.82288L18.6758 2.68497C19.0694 1.96641 20.2139 1.47481 21.1204 1.63504ZM2.79188 2.96765C3.19536 3.0752 3.56505 3.30876 3.73602 3.56412C3.7741 3.62101 3.82312 3.68307 3.84497 3.70203C3.88242 3.73456 3.88537 3.75304 3.89723 4.02925L3.9098 4.32198L3.81271 4.23326C3.47934 3.92857 2.97188 3.7122 2.63929 3.73292C1.54457 3.80113 0.774507 5.25197 1.18407 6.47461C1.51105 7.45076 2.65018 8.53646 4.35934 9.50097C5.09838 9.91802 5.41878 10.1578 5.55988 10.3994C5.59772 10.4642 5.62866 10.5214 5.62866 10.5266C5.62866 10.5913 4.08387 9.91078 3.63764 9.64944C1.06427 8.14236 -0.238084 5.68272 0.625448 3.9606C0.999846 3.21398 1.99863 2.7562 2.79188 2.96765ZM20.85 3.19305C21.4854 3.35113 21.7559 3.71222 21.7545 4.40018C21.7531 5.07099 21.4912 5.73888 20.9427 6.47009C20.3075 7.31697 19.9378 7.63449 18.316 8.72625C17.9036 9.00387 17.5487 9.24697 17.5274 9.26645C17.4766 9.31278 17.4776 9.30697 17.5506 9.13792C18.1405 7.77096 18.5136 6.2852 18.5922 4.99055C18.6123 4.65787 18.6391 4.56294 18.8077 4.22673C19.253 3.33839 19.9719 2.97456 20.85 3.19305ZM2.88171 4.1157C3.19067 4.17481 3.52789 4.40457 3.72485 4.69018C3.79179 4.78723 3.87005 4.88809 3.89878 4.91433C3.94591 4.95737 3.95214 4.97549 3.96248 5.0996C4.07248 6.41864 4.40766 7.71809 5.05959 9.35302C5.0967 9.4461 5.12134 9.5198 5.11432 9.51678C5.10731 9.51378 4.95059 9.42702 4.76607 9.324C3.15963 8.42706 2.0162 7.44764 1.62918 6.63699C1.07128 5.4684 1.84209 3.91678 2.88171 4.1157Z",fill:"#203F70"}),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.1444 0.866309L10.4292 0.877549L9.6104 0.949208C8.43884 1.05172 7.77448 1.10197 6.92986 1.15191C5.85898 1.21523 4.72177 1.34674 4.31576 1.4542L4.25293 1.47084L4.24045 1.7371C4.22357 2.0969 4.24207 4.05263 4.26538 4.37512C4.35345 5.59329 4.49218 6.47694 4.73445 7.36273C4.93294 8.08849 5.55 9.69356 5.77617 10.0724C5.82428 10.1529 5.90044 10.2886 5.94541 10.3739C6.05964 10.5903 6.19099 10.7826 6.32921 10.9356C6.39409 11.0074 6.53003 11.1664 6.63127 11.2889C6.93913 11.6615 7.16812 11.8956 7.63662 12.3166C8.56916 13.1545 9.19524 13.6572 9.89214 14.1274C10.362 14.4445 10.4324 14.5869 10.4162 15.1886C10.4042 15.6368 10.3699 15.7152 10.0283 16.0736C9.72162 16.3954 9.65879 16.6274 9.78865 16.9584C9.90071 17.2441 9.76927 17.4173 9.2915 17.6133C8.71972 17.848 8.45403 18.1309 8.29299 18.6767C8.21407 18.9443 8.25929 19.0127 8.58147 19.1134C10.0683 19.5783 14.1867 19.4827 15.2102 18.9596C15.4531 18.8355 15.5421 18.5907 15.3995 18.4385C15.3802 18.4179 15.3397 18.3442 15.3095 18.2748C15.1153 17.8282 14.8622 17.6152 14.2474 17.3811C13.4357 17.072 13.3002 16.9158 13.4478 16.4591C13.5737 16.0695 13.5068 15.8536 13.1945 15.6429C13.0697 15.5588 13.043 15.5316 12.9981 15.4432L12.946 15.3409L12.9506 15.0571C12.9607 14.4361 13.0578 14.2661 13.6614 13.8119C13.9878 13.5663 14.586 12.9856 15.0274 12.4857C15.3628 12.1059 15.3626 12.1061 15.7734 11.5031C15.9704 11.214 16.1498 10.9534 16.1721 10.924C16.1944 10.8947 16.2126 10.862 16.2126 10.8514C16.2126 10.8407 16.2379 10.8035 16.2687 10.7685C16.3879 10.6334 16.7085 10.0799 16.9365 9.61554C17.6593 8.14359 18.1878 6.25441 18.2198 5.02895C18.2235 4.88606 18.2361 4.73479 18.2477 4.6928C18.2758 4.59123 18.2771 3.24353 18.2495 2.77196C18.2052 2.01522 18.1167 1.07677 18.0847 1.02506C18.0798 1.01713 17.8214 1.00535 17.5105 0.998906C16.545 0.978858 15.9218 0.955259 15.6422 0.92816C15.4944 0.913852 15.2888 0.893942 15.1854 0.883927C14.9184 0.858069 14.1129 0.853415 12.1444 0.866309ZM20.5386 1.60883C19.783 1.67761 18.9704 2.14733 18.6755 2.68577L18.6 2.82368L18.6087 3.32109L18.6174 3.81851L18.7153 3.67447C19.3638 2.72088 20.6318 2.48657 21.5835 3.14446C22.405 3.71241 22.2769 5.24179 21.2933 6.60747C20.6973 7.43503 20.2046 7.87619 18.8673 8.77989C17.6069 9.63163 17.4326 9.77824 17.1359 10.2361C17.0622 10.3499 16.975 10.4759 16.9422 10.5162C16.9095 10.5565 16.8876 10.5895 16.8936 10.5895C17.0902 10.5895 18.5024 10.0572 19.1001 9.75772C20.0753 9.26912 21.2007 8.36346 21.8625 7.53472C22.753 6.41963 23.2616 4.91983 23.1243 3.81443C23.0705 3.38127 22.91 2.90906 22.7501 2.71351C22.0932 1.90988 21.3438 1.53555 20.5386 1.60883ZM16.7441 1.77152C17.0815 1.84251 17.2517 1.98102 17.1882 2.13301C17.1413 2.2453 16.9945 2.27693 16.8925 2.19672C16.8685 2.17785 16.794 2.14994 16.727 2.1347C16.5027 2.08367 16.4179 2.00941 16.4446 1.8875C16.4716 1.76477 16.5562 1.732 16.7441 1.77152ZM17.4115 2.91914C17.5121 3.00261 17.5065 4.14532 17.4006 5.16808C17.3173 5.97157 17.146 6.8934 17.0001 7.32286C16.672 8.28829 16.2441 9.1421 15.6264 10.0637C15.5057 10.2439 15.3095 10.5387 15.1904 10.7188C14.6939 11.4699 14.3994 11.7366 14.2412 11.5784C14.1456 11.4827 14.1953 11.3755 14.4708 11.0838C14.6848 10.8571 14.7032 10.831 15.4909 9.62923C16.0248 8.81479 16.3838 8.06602 16.6918 7.12462C16.9598 6.30578 17.2041 4.12939 17.1292 3.22878C17.1113 3.01309 17.1121 2.9929 17.1412 2.95296C17.1986 2.87424 17.3366 2.85696 17.4115 2.91914ZM2.05311 2.94514C1.42389 3.06362 0.881957 3.4493 0.625158 3.9614C-0.238374 5.68352 1.06398 8.14316 3.63735 9.65024C4.08358 9.91158 5.62837 10.5921 5.62837 10.5274C5.62837 10.5222 5.59743 10.465 5.55959 10.4002C5.41849 10.1586 5.09809 9.91882 4.35905 9.50177C2.64989 8.53726 1.51076 7.45156 1.18378 6.47541C0.774218 5.25277 1.54428 3.80193 2.639 3.73372C2.97159 3.713 3.47905 3.92937 3.81242 4.23406L3.90951 4.32278L3.89694 4.03004C3.88508 3.75383 3.88213 3.73536 3.84468 3.70283C3.82283 3.68387 3.77381 3.62181 3.73573 3.56492C3.43385 3.11404 2.66337 2.83023 2.05311 2.94514ZM12.8719 15.8545C13.0969 15.9613 13.252 16.309 13.1361 16.4467C13.0469 16.5528 12.8715 16.5071 12.8421 16.3701C12.8219 16.276 12.8006 16.2456 12.7068 16.1763C12.5379 16.0515 12.5153 15.9727 12.619 15.8691C12.6869 15.8012 12.7516 15.7974 12.8719 15.8545ZM13.6786 17.4338C14.2528 17.5243 14.8164 18.0499 14.8164 18.4948C14.8164 18.7609 14.5171 18.7432 14.4607 18.4739C14.3884 18.1281 13.9314 17.7778 13.5527 17.7778C13.3737 17.7778 13.2649 17.7081 13.2649 17.5934C13.2649 17.4346 13.3864 17.3877 13.6786 17.4338Z",fill:"#FFC300"}),c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.5596 1.75638C16.328 1.84106 16.4286 2.06426 16.7292 2.13263C16.7962 2.14786 16.8706 2.17577 16.8946 2.19465C17.0428 2.31118 17.2597 2.17864 17.1908 2.01368C17.1328 1.87483 16.7086 1.70191 16.5596 1.75638ZM17.2328 2.88851C17.1202 2.9259 17.1094 2.96222 17.1313 3.2267C17.2062 4.12731 16.9619 6.30371 16.694 7.12255C16.3859 8.06394 16.0269 8.81272 15.493 9.62716C14.7053 10.8289 14.687 10.855 14.4729 11.0817C14.1975 11.3734 14.1477 11.4806 14.2434 11.5763C14.4016 11.7345 14.6961 11.4678 15.1926 10.7167C15.3116 10.5366 15.5078 10.2418 15.6286 10.0617C16.2462 9.14002 16.6741 8.28621 17.0022 7.32079C17.1935 6.75775 17.3863 5.57624 17.4578 4.52819C17.4877 4.09046 17.4887 3.08245 17.4594 2.99968C17.4226 2.89592 17.337 2.85391 17.2328 2.88851ZM12.6211 15.867C12.5175 15.9707 12.54 16.0494 12.709 16.1742C12.8028 16.2435 12.824 16.2739 12.8442 16.368C12.8737 16.505 13.0491 16.5507 13.1383 16.4447C13.3374 16.208 12.838 15.6501 12.6211 15.867ZM13.3494 17.4406C13.1502 17.5487 13.2894 17.7758 13.5549 17.7758C13.9336 17.7758 14.3906 18.1261 14.4629 18.4718C14.4937 18.619 14.5286 18.657 14.6434 18.668C14.9562 18.6981 14.8395 18.1845 14.4492 17.8138C14.1429 17.5228 13.5615 17.3255 13.3494 17.4406Z",fill:"white"})],-1)]),4)}const tEn=U(QTn,[["render",eEn]]),Nce={achievements_no_share_type:["total_paid_to_author"]},nEn={components:{ShareImageGenerate:ple},props:{achievement:{type:Object,required:!0},automaticGeneration:{type:Boolean,default:!1},paddingStart:{type:Boolean,default:!1}},data(){return{socials:["facebook","instagram_post","instagram_story"]}},computed:{achievementModel:{get(){return this.achievement},set(e){this.$emit("update:achievement",e)}}},methods:{imageUrl(e){return this.achievementModel.share_image_urls&&this.achievementModel.share_image_urls[e]?this.achievementModel.share_image_urls[e]:null},generateAll(){this.socials.forEach(e=>{const t=this.$refs["share-image-generate-"+e];t&&(t.length===1?t[0].generate():t.generate())})}},mounted(){this.automaticGeneration&&this.$nextTick(()=>{this.generateAll()})}};function oEn(e,t,n,o,i,r){const s=y("ShareImageGenerate");return h(),g("div",null,[(h(!0),g(pe,null,Me(i.socials,(a,l)=>(h(),W(s,{key:a,name:a,class:J({"pb-0":l==i.socials.length-1,"ps-6":n.paddingStart}),"image-url":r.imageUrl(a),"onUpdate:imageUrl":d=>r.achievementModel.share_image_urls[a]=d,"generate-url":e.ziggyRoute("api.author.achievement.generateShareImage",{achievement:r.achievementModel.id,type:a}),"check-url":e.ziggyRoute("api.author.achievement.generateShareImageStatus",{achievement:r.achievementModel.id,type:a}),ref_for:!0,ref:"share-image-generate-"+a},null,8,["name","class","image-url","onUpdate:imageUrl","generate-url","check-url"]))),128))])}const iEn=U(nEn,[["render",oEn]]),rEn={components:{TransitionCollapseHeight:qo,TrophyImageSmall:tEn,AchievementShareImageGenerate:iEn,Pill:Ni,Loading:Rt,AppIcon:Ue},props:{id:{type:Number,default:null}},data(){return{primaryColor:window.primaryColor,socials:[{name:"facebook",icon_name:"facebook"},{name:"instagram_post",icon_name:"instagram"},{name:"instagram_story",icon_name:"instagram"}],openedSummarizationShare:!1}},computed:{...sn({loading:e=>e.authorNotification.loading,achievement:e=>e.authorNotification.achievement_detail}),showSharing(){let e=this.achievement.achievement_type?this.achievement.achievement_type:null;return e?!Nce.achievements_no_share_type.includes(e):!1}},methods:{numberSuffix(e){return this.$tm("achievements.types")[e].suffix},openSummarizationShare(){this.openedSummarizationShare=!this.openedSummarizationShare,this.openedSummarizationShare&&this.$refs["summarization-share"].generateAll()}},mounted(){let e=this.id?this.id:this.$route.params.id;this.$store.dispatch("authorNotification/showAchievement",e)},beforeUnmount(){this.$store.dispatch("authorNotification/clearAchievementDetail")}},sEn={class:"btn btn-secondary btn-sm btn-center mb-4"},aEn={class:"mh-4rem vl-parent"},lEn={key:0,class:"col-12 col-lg-7 border border-primary-20 rounded p-4"},cEn={class:"d-flex align-items-center mb-3"},dEn={class:"medium text-gray-700 mb-0"},uEn={class:"mb-4"},hEn={class:"text-break mb-3"},fEn={class:"pt-4 pb-4"},mEn={class:"fw-bold mb-2"},pEn={class:"pt-3 pb-3 border-bottom-1"},gEn={class:"row"},vEn={class:"col-12 col-lg-8"},_En={class:"text-gray-700"},yEn={class:"fw-bold float-end"},bEn={class:"col-12 col-lg-4"},kEn={class:"fw-bold mb-2 pt-4"},wEn={class:"row"},$En={class:"col-12 col-lg-8 fs-5"},CEn={class:"text-gray-700"},SEn={class:"fw-bold text-gray-800 ps-3 float-end"},TEn={class:"mb-4"},EEn={class:"text-break mb-3"},IEn={class:"pt-4"},PEn={class:"fw-bold mb-2"};function AEn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("router-link"),l=y("Loading"),d=y("Pill"),u=y("TrophyImageSmall"),f=y("AchievementShareImageGenerate"),p=y("TransitionCollapseHeight");return h(),g("div",null,[b(a,{to:{name:"dashboard/aktualne/prehled/oceneni"}},{default:F(()=>[c("button",sEn,[b(s,{icon:"arrow-left",class:"me-icon"}),z(" "+m(e.$t("dashboard.author.news.back")),1)])]),_:1}),c("div",aEn,[b(l,{active:e.loading,"onUpdate:active":t[0]||(t[0]=v=>e.loading=v),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),r.showSharing?(h(),g(pe,{key:0},[e.loading?D("",!0):(h(),g("div",lEn,[c("div",cEn,[b(d,{color:"gold",class:"me-icon"},{default:F(()=>[z(m(e.$t("achievements.title")),1)]),_:1}),c("p",dEn,m(e.achievement.created_at),1)]),e.achievement.achievement_type==="summarization"?(h(),g(pe,{key:0},[c("h3",uEn,m(e.$t("achievements.summarization.title")),1),c("p",hEn,m(e.$t("achievements.summarization.text")),1),c("div",fEn,[c("p",mEn,m(e.$t("achievements.summarization.subtitle")),1),c("div",pEn,[c("div",gEn,[c("div",vEn,[b(u,{class:"me-3"}),c("span",_En,m(e.$t("achievements.types.total_products_sold.name")),1),c("span",yEn,m(e.achievement.additional_info.total_products_sold+" "+r.numberSuffix("total_products_sold")),1)]),c("div",bEn,[c("button",{class:"btn btn-sm btn-tertiary float-end",onClick:t[1]||(t[1]=v=>r.openSummarizationShare())},[z(m(e.$t("achievements.dashboard.share"))+" ",1),i.openedSummarizationShare?D("",!0):(h(),W(s,{key:0,icon:"chevron-down",class:"ms-icon"})),b(s,{icon:"chevron-up",class:"ms-icon"})])])])]),b(p,null,{default:F(()=>[xe(c("div",null,[b(f,{achievement:e.achievement,"padding-start":"",ref:"summarization-share"},null,8,["achievement"])],512),[[Vo,i.openedSummarizationShare]])]),_:1})]),c("div",null,[c("p",kEn,m(e.$t("achievements.summarization.other_numbers")),1),(h(!0),g(pe,null,Me(e.achievement.additional_info,(v,_)=>(h(),g("div",{class:"pt-3 pb-3 border-bottom-1 border-bottom-last-none",key:_},[c("div",wEn,[c("div",$En,[c("span",CEn,m(e.$tm("achievements.types")[_].name),1),c("span",SEn,m(v+" "+r.numberSuffix(_)),1)])])]))),128))])],64)):(h(),g(pe,{key:1},[c("h3",TEn,m(e.$t("achievements.sharing.title")),1),c("p",EEn,m(e.$t("achievements.sharing.text")),1),c("div",IEn,[c("p",PEn,m(e.$t("public.share.title")),1),b(f,{achievement:e.achievement,"automatic-generation":""},null,8,["achievement"])])],64))]))],64)):D("",!0)])])}const DEn=U(rEn,[["render",AEn]]),xEn={components:{Pill:Ni},props:{notification:{type:Object,default:()=>({type:null,created_at:null,published_at:null,title:null})},tab:String},data(){return{hover:!1}},computed:{pillColor(){return this.notification.seen?"muted":this.notification.type=="custom_notification"?"pink":this.notification.type=="product_notification"?"purple":""}},methods:{navigate(){this.$emit("navigate",this.notification.id),this.notification.type==="custom_notification"&&(this.$store.dispatch("authorNotification/setLastOpenedTab",this.tab),this.$router.push({name:"dashboard/aktualne/novinky",params:{id:this.notification.id}})),this.notification.notifiable_type==="approval"&&(this.$store.dispatch("authorNotification/show",this.notification.id),window.location.href=this.ziggyRoute("product.show",{id:this.notification.product_id})),this.notification.notifiable_type==="revision"&&(this.$store.dispatch("authorNotification/show",this.notification.id),this.$router.push({name:"dashboard/materialy/revize"})),this.notification.notifiable_type==="rejection"&&(this.$store.dispatch("authorNotification/show",this.notification.id),this.$router.push({name:"dashboard/materialy/revize"})),this.notification.notifiable_type==="complaint"&&(this.$store.dispatch("authorNotification/show",this.notification.id),this.$router.push({name:"dashboard/materialy/reklamace"}))}}},OEn={class:"d-flex align-items-center medium mb-1"},LEn={class:"text-gray-700 mb-0"};function MEn(e,t,n,o,i,r){const s=y("Pill");return h(),g("div",{class:"d-flex align-items-center cursor-pointer",onClick:t[2]||(t[2]=(...a)=>r.navigate&&r.navigate(...a))},[c("div",{class:"col",onMouseover:t[0]||(t[0]=a=>i.hover=!0),onMouseleave:t[1]||(t[1]=a=>i.hover=!1)},[c("div",OEn,[b(s,{color:r.pillColor,class:"me-icon"},{default:F(()=>[z(m(e.$tm("author.notification.type")[n.notification.type]),1)]),_:1},8,["color"]),c("p",LEn,m(n.notification.published_at),1)]),c("p",{class:J(["mb-0",{"fw-bold":!n.notification.seen,"text-decoration-underline":i.hover}])},m(n.notification.title),3)],32)])}const NEn=U(xEn,[["render",MEn]]),REn={props:{height:{type:[Number,String],default:49},width:{type:[Number,String],default:93}}};function jEn(e,t,n,o,i,r){return h(),g("div",{class:"d-inline-block",style:Bn("width: "+n.width+"px; height: "+n.height+"px;")},t[0]||(t[0]=[wl('<svg viewBox="0 0 93 49" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M45.1007 0.0499494C44.8077 0.0641671 43.7661 0.142897 42.7861 0.224934C40.203 0.441139 38.7536 0.549517 37.5877 0.613589C35.2163 0.743863 33.6705 0.911794 31.9952 1.22109C30.9492 1.41423 30.8235 1.49906 30.8639 1.98448C30.8762 2.13184 30.8747 3.01965 30.8605 3.95736L30.8346 5.66231L30.6535 5.49949C28.3833 3.45842 24.3715 4.40579 23.1404 7.27366C21.9221 10.1117 22.7687 13.3808 25.54 16.5404C27.8238 19.1442 30.7438 20.9447 34.7405 22.2136L35.2732 22.3828L35.6124 22.8208C37.2228 24.9001 39.6232 27.0675 43.0686 29.553C44.1059 30.3013 44.0383 30.1802 44.0387 31.2909C44.0389 31.9246 44.0106 31.9949 43.5605 32.4766C42.5797 33.5261 42.3758 34.1417 42.6883 35.1089C42.8054 35.4712 42.9208 35.3765 41.5738 36.0238C40.6849 36.451 40.4559 36.6574 40.0505 37.3971L39.8683 37.7297L39.628 37.7499C39.4959 37.7611 39.206 37.7953 38.9837 37.826C37.74 37.9977 34.1576 38.1797 33.0321 38.1283C31.7201 38.0683 31.5217 38.1964 31.4685 39.1373C31.4498 39.4692 31.4012 40.1375 31.3607 40.6224C31.2509 41.9357 31.2169 42.6988 31.1911 44.4248C31.1462 47.4312 31.2587 47.9773 31.9784 48.2468C32.3907 48.4011 35.5599 48.676 38.3041 48.7954C44.4078 49.061 51.5723 49.0698 55.7731 48.8167C56.2783 48.7863 57.0222 48.7436 57.4264 48.722C60.0191 48.5828 61.445 48.203 61.7725 47.5644C61.9037 47.3086 62.3294 39.6792 62.3306 37.5628C62.3311 36.641 62.212 36.5487 61.2471 36.7242C61.0855 36.7536 60.5647 36.7954 60.0899 36.817C59.615 36.8386 58.8546 36.8736 58.3999 36.8946C57.6099 36.9311 55.8706 37.0849 55.7548 37.1284C55.7162 37.1429 55.6501 37.0707 55.5343 36.8878C55.0417 36.1092 54.4396 35.7045 52.8892 35.1097C51.7937 34.6896 51.8307 34.7432 52.0568 33.9045C52.3193 32.9304 52.0483 32.2387 51.1721 31.6459L50.943 31.4908L50.9616 31.1521C50.9718 30.9657 50.9875 30.6877 50.9963 30.5342C51.0314 29.9248 51.1124 29.8121 52.0264 29.1017C53.7212 27.7844 55.4991 25.8756 56.7467 24.034C56.9791 23.691 57.318 23.1975 57.4998 22.9374L57.8305 22.4645L58.0142 22.4397C59.1122 22.2913 62.6278 20.9847 64.1085 20.1746C66.5832 18.8208 69.1131 16.5839 70.4244 14.5904C72.5404 11.3734 73.1922 8.11448 72.2689 5.36756C71.7257 3.75155 69.7169 2.0732 67.8396 1.66691C66.1795 1.30765 63.8184 2.03885 62.44 3.3392L62.199 3.56661L62.1342 2.82527C62.0986 2.41751 62.0282 1.83988 61.9779 1.54156C61.9275 1.24325 61.8956 0.984205 61.9069 0.965909C61.9182 0.947577 61.8856 0.8 61.8344 0.63791C61.7323 0.314797 61.6879 0.276735 61.4622 0.319058C61.3298 0.343893 58.8431 0.28974 57.2427 0.227175C56.7375 0.20741 56.0018 0.155095 55.6078 0.110862C54.8618 0.0271724 46.5635 -0.0209555 45.1007 0.0499494ZM54.9615 0.815503C55.1819 0.836848 55.62 0.879281 55.9351 0.909773C56.531 0.967526 57.8592 1.01782 59.9169 1.06055C60.5795 1.07429 61.1301 1.09938 61.1406 1.11628C61.2087 1.22649 61.3974 3.22653 61.4917 4.8393C61.5506 5.84431 61.5479 8.71655 61.4879 8.93301C61.4631 9.02251 61.4363 9.34489 61.4284 9.64941C61.3603 12.2611 60.2339 16.2874 58.6935 19.4244C58.2075 20.4141 57.5243 21.5938 57.2702 21.8817C57.2046 21.9561 57.1508 22.0355 57.1508 22.0582C57.1508 22.0808 57.112 22.1505 57.0645 22.2131C57.017 22.2756 56.6346 22.831 56.2148 23.4472C54.9036 25.3717 53.1552 27.2831 51.7136 28.3677C50.4271 29.3356 50.2203 29.698 50.1988 31.0214L50.1889 31.6263L50.2999 31.8443C50.3957 32.0327 50.4526 32.0906 50.7185 32.27C51.384 32.7191 51.5268 33.179 51.2584 34.0095C50.9438 34.9828 51.2325 35.3156 52.9625 35.9744C54.2727 36.4733 54.8121 36.9272 55.2261 37.879C55.2905 38.0271 55.3768 38.1842 55.4179 38.2281C55.7217 38.5523 55.5322 39.0741 55.0145 39.3386C53.0866 40.3238 45.2806 40.6447 41.7207 39.8851C40.2977 39.5814 40.075 39.4047 40.2724 38.7357C40.6156 37.5725 41.1818 36.9694 42.4004 36.4694C43.4186 36.0515 43.6988 35.6825 43.4599 35.0737C43.1832 34.3681 43.3171 33.8736 43.9706 33.188C44.6986 32.4241 44.7719 32.2571 44.7975 31.3017C44.8318 30.0193 44.682 29.7159 43.6805 29.0402C41.2551 27.4036 38.1277 24.6814 36.7309 22.9908C36.5151 22.7296 36.2254 22.3907 36.0871 22.2376C35.7926 21.9116 35.5126 21.5019 35.2692 21.0406C35.1733 20.8589 35.011 20.5697 34.9085 20.398C34.4265 19.5907 33.1114 16.1699 32.6884 14.6232C32.172 12.7354 31.8764 10.8521 31.6887 8.25596C31.639 7.56866 31.5996 3.40059 31.6356 2.63379L31.6622 2.06633L31.7961 2.03088C32.6614 1.80185 35.085 1.52158 37.3672 1.38664C39.1673 1.28021 40.5832 1.17311 43.0801 0.95463L44.8251 0.80191L48.4806 0.777956C52.6759 0.750476 54.3925 0.760395 54.9615 0.815503ZM67.6096 2.41799C68.838 2.63511 70.0252 3.42003 71.0835 4.71472C71.5634 5.3018 71.92 6.65561 71.9193 7.88763C71.9165 12.6431 67.9164 17.7642 62.3125 20.1865C61.0234 20.7437 58.8869 21.5001 58.6021 21.5001C58.5892 21.5001 58.6359 21.4299 58.7057 21.344C58.7756 21.2581 58.9613 20.9895 59.1185 20.747C59.7508 19.7711 60.1223 19.4587 62.8085 17.6434C65.6586 15.7175 66.7085 14.7773 67.9787 13.0136C70.0749 10.103 70.348 6.8436 68.5971 5.63318C66.5689 4.23106 63.8666 4.73045 62.4846 6.76273L62.2758 7.06972L62.2573 6.0096L62.2388 4.94952L62.3998 4.65561C63.2385 3.12421 65.6777 2.07651 67.6096 2.41799ZM28.5477 5.25805C29.4076 5.48726 30.1955 5.98502 30.5599 6.52926C30.6411 6.6505 30.7455 6.78276 30.7921 6.82317C30.8719 6.89249 30.8782 6.93188 30.9035 7.52054L30.9303 8.14443L30.7233 7.95533C30.0129 7.30598 28.9314 6.84484 28.2225 6.889C25.8895 7.03438 24.2483 10.1264 25.1212 12.7321C25.818 14.8125 28.2458 17.1264 31.8883 19.1819C33.4634 20.0707 34.1462 20.5817 34.4469 21.0967C34.5276 21.2347 34.5935 21.3567 34.5935 21.3677C34.5935 21.5057 31.3012 20.0553 30.3502 19.4984C24.8658 16.2864 22.0902 11.0444 23.9306 7.37424C24.7285 5.78303 26.8572 4.80741 28.5477 5.25805ZM67.0334 5.73843C68.3874 6.07533 68.9641 6.84488 68.9611 8.31107C68.9581 9.7407 68.3999 11.1641 67.231 12.7225C65.8771 14.5274 65.0893 15.2041 61.6329 17.5308C60.7539 18.1225 59.9976 18.6406 59.9521 18.6821C59.8439 18.7809 59.8462 18.7685 60.0016 18.4082C61.2588 15.4949 62.0541 12.3284 62.2214 9.56928C62.2645 8.86027 62.3216 8.65795 62.6807 7.94141C63.6298 6.04817 65.1619 5.27278 67.0334 5.73843ZM28.7392 7.70478C29.3976 7.83075 30.1163 8.32044 30.5361 8.92912C30.6787 9.13596 30.8455 9.35091 30.9068 9.40683C31.0072 9.49856 31.0205 9.53717 31.0425 9.80169C31.277 12.6128 31.9913 15.3822 33.3807 18.8666C33.4598 19.065 33.5123 19.2221 33.4973 19.2156C33.4824 19.2092 33.1484 19.0243 32.7552 18.8048C29.3315 16.8932 26.8946 14.8059 26.0698 13.0782C24.8808 10.5877 26.5235 7.28086 28.7392 7.70478Z" fill="#203F70"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M48.4797 0.77845L44.8242 0.802404L43.0792 0.955124C40.5823 1.17361 39.1664 1.2807 37.3664 1.38713C35.0841 1.52207 32.6605 1.80235 31.7952 2.03137L31.6613 2.06683L31.6347 2.63428C31.5987 3.40109 31.6381 7.56916 31.6878 8.25646C31.8755 10.8526 32.1712 12.7359 32.6875 14.6237C33.1105 16.1704 34.4256 19.5912 34.9076 20.3985C35.0101 20.5702 35.1725 20.8594 35.2683 21.0411C35.5117 21.5024 35.7917 21.9121 36.0862 22.2381C36.2245 22.3912 36.5142 22.7301 36.73 22.9913C37.3861 23.7854 37.8741 24.2842 38.8726 25.1814C40.8601 26.9672 42.1944 28.0385 43.6796 29.0407C44.6811 29.7164 44.8309 30.0198 44.7966 31.3022C44.771 32.2576 44.6977 32.4246 43.9697 33.1885C43.3162 33.8741 43.1823 34.3686 43.459 35.0742C43.6979 35.683 43.4177 36.052 42.3995 36.4699C41.1809 36.9699 40.6147 37.573 40.2715 38.7362C40.1033 39.3063 40.1996 39.4522 40.8863 39.6669C44.0551 40.6575 52.8321 40.4539 55.0136 39.3391C55.5313 39.0746 55.7208 38.5528 55.417 38.2286C55.3759 38.1847 55.2896 38.0276 55.2252 37.8795C54.8112 36.9277 54.2718 36.4737 52.9616 35.9749C51.2316 35.3161 50.943 34.9833 51.2575 34.01C51.5259 33.1795 51.3831 32.7196 50.7176 32.2705C50.4517 32.0911 50.3948 32.0332 50.299 31.8448L50.188 31.6268L50.1979 31.0219C50.2194 29.6985 50.4262 29.3361 51.7127 28.3682C52.4084 27.8448 53.6832 26.6071 54.6239 25.5418C55.3388 24.7323 55.3384 24.7328 56.2139 23.4477C56.6337 22.8315 57.0161 22.2761 57.0636 22.2136C57.1111 22.151 57.1499 22.0813 57.1499 22.0587C57.1499 22.036 57.2037 21.9566 57.2693 21.8822C57.5234 21.5943 58.2066 20.4146 58.6926 19.4249C60.233 16.2879 61.3594 12.2616 61.4275 9.64991C61.4354 9.34538 61.4622 9.023 61.487 8.93351C61.547 8.71705 61.5497 5.84481 61.4908 4.8398C61.3965 3.22702 61.2078 1.22699 61.1397 1.11677C61.1292 1.09987 60.5786 1.07478 59.916 1.06104C57.8583 1.01832 56.5301 0.96802 55.9342 0.910268C55.6192 0.879775 55.181 0.837342 54.9606 0.815997C54.3916 0.760889 52.675 0.75097 48.4797 0.77845ZM66.3694 2.36092C64.7592 2.5075 63.0273 3.50858 62.3989 4.6561L62.2379 4.95001L62.2564 6.01009L62.2749 7.07021L62.4837 6.76323C63.8657 4.73094 66.568 4.23156 68.5963 5.63367C70.3471 6.84409 70.074 10.1035 67.9778 13.0141C66.7076 14.7778 65.6577 15.718 62.8076 17.6439C60.1214 19.4592 59.7499 19.7716 59.1176 20.7475C58.9604 20.99 58.7747 21.2586 58.7048 21.3445C58.635 21.4304 58.5883 21.5006 58.6012 21.5006C59.0202 21.5006 62.0298 20.3661 63.3036 19.7279C65.382 18.6866 67.7806 16.7564 69.191 14.9902C71.0887 12.6137 72.1728 9.41735 71.88 7.06151C71.7653 6.13835 71.4233 5.13198 71.0826 4.71522C69.6826 3.00251 68.0854 2.20474 66.3694 2.36092ZM58.2826 2.70765C59.0017 2.85894 59.3644 3.15413 59.229 3.47805C59.129 3.71737 58.8162 3.78478 58.5988 3.61384C58.5477 3.57361 58.389 3.51413 58.2462 3.48165C57.7681 3.37291 57.5873 3.21464 57.6443 2.95483C57.7018 2.69325 57.8821 2.62341 58.2826 2.70765ZM59.7049 5.15347C59.9193 5.33136 59.9075 7.7667 59.6817 9.94642C59.5043 11.6588 59.1391 13.6234 58.8281 14.5387C58.1289 16.5962 57.2169 18.4159 55.9005 20.3801C55.6432 20.764 55.2251 21.3922 54.9713 21.7761C53.9132 23.3769 53.2856 23.9453 52.9484 23.6081C52.7445 23.4042 52.8506 23.1757 53.4376 22.554C53.8938 22.0709 53.9329 22.0152 55.6117 19.4541C56.7495 17.7183 57.5146 16.1225 58.1711 14.1162C58.7422 12.3711 59.2629 7.73275 59.1033 5.81336C59.0651 5.35369 59.0669 5.31067 59.1289 5.22555C59.2511 5.05776 59.5452 5.02095 59.7049 5.15347ZM26.973 5.20887C25.632 5.46137 24.477 6.28335 23.9297 7.37474C22.0894 11.0449 24.8649 16.2869 30.3493 19.4989C31.3003 20.0558 34.5926 21.5062 34.5926 21.3682C34.5926 21.3571 34.5267 21.2352 34.446 21.0972C34.1453 20.5822 33.4625 20.0712 31.8874 19.1824C28.2449 17.1268 25.8171 14.813 25.1203 12.7326C24.2474 10.1269 25.8886 7.03487 28.2216 6.8895C28.9305 6.84534 30.012 7.30648 30.7224 7.95583L30.9294 8.14492L30.9026 7.52103C30.8773 6.93237 30.871 6.89299 30.7912 6.82366C30.7446 6.78325 30.6402 6.65099 30.559 6.52976C29.9156 5.56883 28.2736 4.96397 26.973 5.20887ZM50.03 32.7214C50.5095 32.9489 50.8402 33.6901 50.5932 33.9836C50.4031 34.2096 50.0293 34.1122 49.9665 33.8203C49.9234 33.6197 49.8782 33.5549 49.6783 33.4072C49.3182 33.1412 49.2701 32.9734 49.491 32.7525C49.6358 32.6077 49.7737 32.5998 50.03 32.7214ZM51.7494 36.0872C52.9731 36.2802 54.1741 37.4003 54.1741 38.3485C54.1741 38.9155 53.5363 38.8779 53.4162 38.3039C53.2621 37.567 52.2882 36.8205 51.4811 36.8205C51.0995 36.8205 50.8677 36.6719 50.8677 36.4273C50.8677 36.0889 51.1267 35.989 51.7494 36.0872Z" fill="#FFC300"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M57.8863 2.68013C57.3927 2.86059 57.6071 3.33628 58.2477 3.48198C58.3906 3.51446 58.5492 3.57394 58.6004 3.61417C58.9161 3.86252 59.3785 3.58004 59.2316 3.22849C59.108 2.93256 58.2038 2.56404 57.8863 2.68013ZM59.3211 5.09292C59.0812 5.17261 59.058 5.25001 59.1049 5.81369C59.2645 7.73308 58.7438 12.3714 58.1727 14.1165C57.5162 16.1229 56.7511 17.7187 55.6133 19.4544C53.9345 22.0156 53.8954 22.0713 53.4392 22.5544C52.8521 23.176 52.7461 23.4045 52.95 23.6084C53.2872 23.9456 53.9148 23.3772 54.9729 21.7765C55.2267 21.3926 55.6448 20.7643 55.9021 20.3804C57.2185 18.4162 58.1304 16.5966 58.8296 14.539C59.2374 13.3391 59.6482 10.821 59.8007 8.58743C59.8643 7.65454 59.8665 5.50627 59.804 5.32985C59.7256 5.10872 59.5431 5.01919 59.3211 5.09292ZM49.4926 32.7529C49.2717 32.9737 49.3197 33.1415 49.6799 33.4076C49.8797 33.5552 49.925 33.6201 49.9681 33.8206C50.0309 34.1125 50.4047 34.2099 50.5948 33.984C51.0193 33.4795 49.9548 32.2906 49.4926 32.7529ZM51.0447 36.1066C50.6201 36.337 50.9168 36.8208 51.4826 36.8208C52.2898 36.8208 53.2637 37.5674 53.4178 38.3042C53.4834 38.6179 53.5579 38.6988 53.8025 38.7224C54.4692 38.7864 54.2204 37.6918 53.3888 36.9019C52.7359 36.2817 51.4967 35.8613 51.0447 36.1066Z" fill="white"></path><path d="M84.318 25.6767C82.5037 25.1617 82.5803 23.4987 84.4379 23.0773C84.7364 23.0096 85.1215 22.987 85.6372 23.007C86.0549 23.0232 86.9724 23.0545 87.676 23.0764C90.6586 23.1696 91.9111 23.2762 92.3003 23.47C93.2966 23.9662 93.2111 25.4075 92.1576 25.873C91.5849 26.1261 85.3512 25.9699 84.318 25.6767Z" fill="#FFC642"></path><path d="M9.07218 23.5611C10.8484 23.8433 11.0512 25.6159 9.389 26.3319C9.12186 26.4469 8.76663 26.5267 8.28259 26.5804C7.89047 26.6238 7.03004 26.7239 6.37052 26.8027C3.57467 27.1369 2.38951 27.2057 1.99472 27.0569C0.984142 26.676 0.826224 25.1369 1.73152 24.4909C2.22368 24.1397 8.06061 23.4004 9.07218 23.5611Z" fill="#FFC642"></path><path d="M84.2886 14.8957C82.8293 15.0173 82.1788 13.4488 83.2851 12.4758C83.9633 11.8794 85.3378 11.4134 88.143 10.8292C88.9617 10.6588 89.8171 10.4655 90.0438 10.3998C90.8614 10.1629 91.2515 10.2227 91.7024 10.6538C92.3353 11.2589 92.2656 12.4768 91.572 12.9299C91.2526 13.1386 84.945 14.841 84.2886 14.8957Z" fill="#FFC642"></path><path d="M11.1814 33.8228C12.567 33.4874 13.4276 34.8988 12.5091 36.0004C11.9461 36.6758 10.6936 37.3298 8.08257 38.3119C7.32046 38.5985 6.52656 38.9125 6.31833 39.0097C5.56726 39.36 5.18302 39.361 4.68471 39.0138C3.98524 38.5265 3.86998 37.3444 4.4693 36.8046C4.74536 36.556 10.5582 33.9738 11.1814 33.8228Z" fill="#FFC642"></path><path d="M81.3746 36.6204C80.1797 35.7738 80.692 34.1549 82.1649 34.1228C83.0678 34.103 84.4195 34.6316 86.9419 35.9908C87.6781 36.3876 88.4571 36.7905 88.6728 36.8862C89.4509 37.2314 89.7109 37.5283 89.7783 38.1485C89.873 39.019 89.0354 39.9059 88.213 39.806C87.8342 39.76 81.912 37.0012 81.3746 36.6204Z" fill="#FFC642"></path><path d="M10.7439 12.4864C12.0201 13.122 11.7698 14.756 10.3577 15.0075C9.49201 15.1617 8.1126 14.8556 5.4825 13.9258C4.71487 13.6544 3.90523 13.3835 3.68337 13.3237C2.88315 13.1082 2.58853 12.8615 2.43082 12.275C2.2094 11.4518 2.88236 10.4731 3.68843 10.446C4.05971 10.4336 10.1699 12.2006 10.7439 12.4864Z" fill="#FFC642"></path></svg>',1)]),4)}const FEn=U(REn,[["render",jEn]]),zEn={components:{TrophyImage:FEn},props:{notification:{type:Object,default:null}},computed:{shareText(){return(this.notification.notifiable_type?this.notification.notifiable_type:this.notification.achievement_type)==="summarization"?this.$t("achievements.dashboard.details"):this.$t("achievements.dashboard.share")},achievementId(){return this.notification.achievement_id?this.notification.achievement_id:this.notification.id},showSharePageUrl(){let e=this.notification.notifiable_type?this.notification.notifiable_type:this.notification.achievement_type;return!Nce.achievements_no_share_type.includes(e)}}},UEn={class:"border-bottom-2 py-4 text-center"},BEn={class:"mb-2"},HEn=["innerHTML"],VEn={class:"mb-0 text-gray-900"},qEn=["innerHTML"],YEn={key:0};function WEn(e,t,n,o,i,r){const s=y("TrophyImage"),a=y("router-link");return h(),g("div",UEn,[c("div",BEn,[b(s)]),c("div",null,[c("p",{class:"mb-0 fw-bold text-gray-900",innerHTML:n.notification.title},null,8,HEn),c("p",VEn,[c("span",{innerHTML:n.notification.text},null,8,qEn),r.showSharePageUrl?(h(),g("span",YEn,[b(a,{to:{name:"dashboard/aktualne/oceneni",params:{id:r.achievementId}},onClick:t[0]||(t[0]=l=>e.$emit("navigate",n.notification.id))},{default:F(()=>[z("  "+m(r.shareText),1)]),_:1},8,["to"])])):D("",!0)])])])}const GEn=U(zEn,[["render",WEn]]);const ZEn={components:{AuthorNotificationAchievement:GEn,AuthorNotificationItem:NEn,InfiniteScroll:iM},props:{allItemsChecked:{type:Boolean,default:!1},notificationsType:{type:String}},data(){return{scrollPosition:0}},computed:{...sn({loading:e=>e.authorNotification.loading,loadingMore:e=>e.authorNotification.loadingMore}),allNotificationsLoaded(){return this.pagination.total<=this.list.length},pagination(){return this.$store.getters["authorNotification/getPaginationByType"](this.notificationsType)},list(){return this.$store.getters["authorNotification/getListByType"](this.notificationsType)}},methods:{loadMore(){return new Promise((e,t)=>{this.$store.dispatch("authorNotification/index",{type:this.notificationsType,loadMore:!0}).then(()=>{e()}).catch(()=>{t()})})},load(){this.$store.dispatch("authorNotification/index",{type:this.notificationsType,loadMore:!1}).then(()=>{this.$nextTick(()=>{this.scrollToNotification()})})},saveScrollPosition(){let e=this.$refs.container.scrollTop;this.$store.dispatch("authorNotification/saveScrollToPosition",{position:e,type:this.notificationsType})},scrollToNotification(){let e=this.$store.getters["authorNotification/getSavedScrollPosition"](this.notificationsType);e&&(this.$refs.container.scrollTop=e)}},mounted(){this.load()},watch:{notificationsType(e,t){e!==t&&(this.load(),this.$store.dispatch("authorNotification/saveScrollToPosition",{id:null,type:t}))}}},KEn={class:"text-center text-gray-500 mb-0"};function JEn(e,t,n,o,i,r){const s=y("AuthorNotificationAchievement"),a=y("AuthorNotificationItem"),l=y("InfiniteScroll");return h(),g("div",{class:J(["overflow-y-scroll scrollbar-modern py-4 px-2dot5-rem",n.allItemsChecked?"all-checked-height":"default-height"]),ref:"container"},[b(l,{"load-function":r.loadMore,"loading-always-min-height":!r.allNotificationsLoaded},os({_:2},[!e.loading&&r.list.length>0?{name:"content",fn:F(()=>[(h(!0),g(pe,null,Me(r.list,(d,u)=>(h(),g(pe,{key:u},[d.type==="achievement"?(h(),W(s,{key:0,onNavigate:r.saveScrollPosition,notification:d,class:J({"mb-4":u!==r.list.length-1}),id:"notification-"+d.id},null,8,["onNavigate","notification","class","id"])):(h(),W(a,{key:1,notification:d,onNavigate:r.saveScrollPosition,class:J({"mb-4":u!==r.list.length-1}),id:"notification-"+d.id,tab:n.notificationsType},null,8,["notification","onNavigate","class","id","tab"]))],64))),128))]),key:"0"}:void 0,!e.loading&&!r.list.length>0?{name:"notFound",fn:F(()=>[c("p",KEn,m(e.$t("dashboard.author.news.empty")),1)]),key:"1"}:void 0]),1032,["load-function","loading-always-min-height"])],2)}const v8=U(ZEn,[["render",JEn],["__scopeId","data-v-2d29398c"]]),XEn={props:{isDropdownItem:{type:Boolean,default:!1},isReverse:{type:Boolean,default:!1},icon:{type:String,default:null}},components:{AppIcon:Ue},methods:{click(){this.$emit("click")}}};function QEn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:J(["btn btn-sm btn-center",{"dropdown-item justify-content-end":n.isDropdownItem,"flex-row-reverse":n.isReverse||n.isDropdownItem}]),onClick:t[0]||(t[0]=(...a)=>r.click&&r.click(...a))},[Pt(e.$slots,"default"),n.icon?(h(),W(s,{key:0,icon:n.icon,class:J(n.isReverse||n.isDropdownItem?"me-icon":"ms-icon")},null,8,["icon","class"])):D("",!0)],2)}const rk=U(XEn,[["render",QEn]]),eIn={props:{isDropdownItem:{type:Boolean,default:!1}},components:{ActionButton:rk},methods:{create(){this.$emit("create")}}};function tIn(e,t,n,o,i,r){const s=y("ActionButton");return h(),W(s,{class:"btn-tertiary",icon:"plus-circle",onClick:r.create,isDropdownItem:n.isDropdownItem},{default:F(()=>[z(m(e.$t("public.create")),1)]),_:1},8,["onClick","isDropdownItem"])}const nIn=U(eIn,[["render",tIn]]),oIn={components:{CreateButton:nIn},methods:{openCreateSidebar(){this.$store.commit("administrationProductUploadLock/resetDetail"),this.$store.dispatch("sidebar/open",{type:"product-upload-lock-create"})}}};function iIn(e,t,n,o,i,r){const s=y("CreateButton");return h(),W(s,{onCreate:r.openCreateSidebar},null,8,["onCreate"])}const rIn=U(oIn,[["render",iIn]]),sIn={components:{ActionButton:rk},props:{productUploadLock:{type:Object,default:()=>null},isDropdownItem:{type:Boolean,default:!1}},computed:{productUploadLockModel:{get(){return this.productUploadLock},set(e){this.$emit("update:productUploadLock",e)}}},methods:{show(){this.productUploadLockModel.is_shown=!0,this.$store.commit("administrationProductUploadLock/setDetail",this.productUploadLockModel),this.$store.dispatch("administrationProductUploadLock/update")}}};function aIn(e,t,n,o,i,r){const s=y("ActionButton");return h(),W(s,{class:J(n.isDropdownItem?"btn-tertiary":"btn-primary"),icon:"show",onClick:r.show,"is-reverse":"","is-dropdown-item":n.isDropdownItem},{default:F(()=>[z(m(e.$t("public.show")),1)]),_:1},8,["class","onClick","is-dropdown-item"])}const lIn=U(sIn,[["render",aIn]]),cIn={components:{ActionButton:rk},props:{productUploadLock:{type:Object,default:()=>null},isDropdownItem:{type:Boolean,default:!1}},computed:{productUploadLockModel:{get(){return this.productUploadLock},set(e){this.$emit("update:productUploadLock",e)}}},methods:{hide(){this.productUploadLockModel.is_shown=!1,this.$store.commit("administrationProductUploadLock/setDetail",this.productUploadLockModel),this.$store.dispatch("administrationProductUploadLock/update")}}};function dIn(e,t,n,o,i,r){const s=y("ActionButton");return h(),W(s,{class:J(n.isDropdownItem?"btn-tertiary":"btn-primary"),icon:"hide",onClick:r.hide,"is-reverse":"","is-dropdown-item":n.isDropdownItem},{default:F(()=>[z(m(e.$t("public.hide")),1)]),_:1},8,["class","onClick","is-dropdown-item"])}const uIn=U(cIn,[["render",dIn]]),hIn={props:{isDropdownItem:{type:Boolean,default:!1}},components:{ActionButton:rk},methods:{deletee(){this.$emit("delete")}}};function fIn(e,t,n,o,i,r){const s=y("ActionButton");return h(),W(s,{class:"btn-danger btn-tertiary",icon:"delete",onClick:r.deletee,isDropdownItem:n.isDropdownItem},{default:F(()=>[z(m(e.$t("public.delete")),1)]),_:1},8,["onClick","isDropdownItem"])}const mIn=U(hIn,[["render",fIn]]),pIn={components:{DeleteButton:mIn},props:{productUploadLock:{type:Object,default:()=>null}},methods:{openDeleteSidebar(){this.$store.commit("administrationProductUploadLock/setDetail",this.productUploadLock),this.$store.dispatch("sidebar/open",{type:"product-upload-lock-delete"})}}};function gIn(e,t,n,o,i,r){const s=y("DeleteButton");return h(),W(s,{onDelete:r.openDeleteSidebar,"is-dropdown-item":""},null,8,["onDelete"])}const vIn=U(pIn,[["render",gIn]]),_In={props:{isDropdownItem:{type:Boolean,default:!1}},components:{ActionButton:rk},methods:{update(){this.$emit("update")}}};function yIn(e,t,n,o,i,r){const s=y("ActionButton");return h(),W(s,{class:"btn-tertiary",icon:"edit",onClick:r.update,isDropdownItem:n.isDropdownItem},{default:F(()=>[z(m(e.$t("public.update")),1)]),_:1},8,["onClick","isDropdownItem"])}const bIn=U(_In,[["render",yIn]]),kIn={components:{UpdateButton:bIn},props:{productUploadLock:{type:Object,default:()=>null}},methods:{openUpdateSidebar(){this.$store.commit("administrationProductUploadLock/setDetail",this.productUploadLock),this.$store.dispatch("sidebar/open",{type:"product-upload-lock-update"})}}};function wIn(e,t,n,o,i,r){const s=y("UpdateButton");return h(),W(s,{onUpdate:r.openUpdateSidebar,"is-dropdown-item":""},null,8,["onUpdate"])}const $In=U(kIn,[["render",wIn]]),CIn={components:{AppIcon:Ue},methods:{goBack(){this.$router.go(-1)}}};function SIn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("a",{class:"btn btn-secondary btn-sm btn-center",type:"button",onClick:t[0]||(t[0]=(...a)=>r.goBack&&r.goBack(...a))},[b(s,{icon:"arrow-left",class:"me-icon"}),z(" "+m(e.$t("public.back")),1)])}const TIn=U(CIn,[["render",SIn]]),EIn={components:{BackButton:TIn},props:{productUploadLock:{type:Object,default(){return{title:null,description:null,valid_from:null,valid_to:null}}}}},IIn={class:"d-flex justify-content-center p-4 rounded bg-primary-5 text-center"},PIn={class:"col-12 col-lg-8"},AIn=["src","alt"],DIn={class:"mb-0"},xIn={key:1,class:"medium text-gray-700"};function OIn(e,t,n,o,i,r){const s=y("BackButton");return h(),g("div",IIn,[c("div",PIn,[n.productUploadLock.image?(h(),g("img",{key:0,src:n.productUploadLock.image,alt:n.productUploadLock.title,class:"mb-3",height:"125"},null,8,AIn)):D("",!0),c("h3",DIn,m(n.productUploadLock.title),1),n.productUploadLock.description?(h(),g("p",xIn,m(n.productUploadLock.description),1)):D("",!0),b(s)])])}const Rce=U(EIn,[["render",OIn]]),LIn={components:{ContentItem:yh,ProductUploadLockUpdateButton:$In,ProductUploadLockDeleteButton:vIn,ProductUploadLockShowButton:lIn,ProductUploadLockHideButton:uIn,DateRange:U6,ProductUploadLock:Rce},props:{productUploadLock:{type:Object,default:()=>({id:null,title:null,description:""})},shown:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1}}};function MIn(e,t,n,o,i,r){const s=y("ProductUploadLock"),a=y("DateRange"),l=y("ProductUploadLockShowButton"),d=y("ProductUploadLockHideButton"),u=y("ProductUploadLockUpdateButton"),f=y("ProductUploadLockDeleteButton"),p=y("ContentItem");return h(),g("div",null,[n.hidden?D("",!0):(h(),W(s,{key:0,"product-upload-lock":n.productUploadLock},null,8,["product-upload-lock"])),b(p,null,{image:F(()=>[z(m(n.productUploadLock.image),1)]),title:F(()=>[z(m(n.productUploadLock.title),1)]),description:F(()=>[z(m(n.productUploadLock.description?n.productUploadLock.description.substring(0,50)+"...":""),1)]),tags:F(()=>[b(a,{class:"me-2",from:n.productUploadLock.valid_from,to:n.productUploadLock.valid_to},null,8,["from","to"])]),buttons:F(()=>[!n.shown&&!n.hidden?(h(),g(pe,{key:0},[b(l,{"product-upload-lock":n.productUploadLock},null,8,["product-upload-lock"]),b(d,{"product-upload-lock":n.productUploadLock},null,8,["product-upload-lock"])],64)):D("",!0)]),dotsButton:F(()=>[n.hidden?(h(),W(l,{key:0,"product-upload-lock":n.productUploadLock,"is-dropdown-item":""},null,8,["product-upload-lock"])):D("",!0),n.shown?(h(),W(d,{key:1,"product-upload-lock":n.productUploadLock,"is-dropdown-item":""},null,8,["product-upload-lock"])):D("",!0),b(u,{"product-upload-lock":n.productUploadLock},null,8,["product-upload-lock"]),b(f,{"product-upload-lock":n.productUploadLock},null,8,["product-upload-lock"])]),_:1})])}const EM=U(LIn,[["render",MIn]]);const NIn={components:{ProductUploadLockContentItem:EM,Loading:Rt},data(){return{primaryColor:window.primaryColor}},computed:{...sn("administrationProductUploadLock",{list:e=>e.list.shown,loading:e=>e.loading.shown})},created(){this.indexShown()},methods:{...V1("administrationProductUploadLock",["indexShown"])}},RIn={key:0},jIn={class:"mb-3"},FIn={key:0,class:"vl-parent mh-4rem"},zIn={key:1},UIn={class:"text-center text-muted"},BIn={key:2,class:"d-flex flex-column gap-3"};function HIn(e,t,n,o,i,r){const s=y("Loading"),a=y("ProductUploadLockContentItem");return e.list.length?(h(),g("div",RIn,[c("h4",jIn,m(e.$t("administration.content.product_upload_lock.shown.title")),1),e.loading?(h(),g("div",FIn,[b(s,{active:e.loading,color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.length?(h(),g("div",BIn,[(h(!0),g(pe,null,Me(e.list,l=>(h(),W(a,{key:l.id,"product-upload-lock":l,shown:""},null,8,["product-upload-lock"]))),128))])):(h(),g("div",zIn,[c("p",UIn,m(e.$t("administration.content.product_upload_lock.not_found")),1)]))])):D("",!0)}const VIn=U(NIn,[["render",HIn],["__scopeId","data-v-3163ab8c"]]);const qIn={components:{ProductUploadLockContentItem:EM,Loading:Rt},data(){return{primaryColor:window.primaryColor}},computed:{...sn("administrationProductUploadLock",{list:e=>e.list.hidden,loading:e=>e.loading.hidden})},created(){this.indexHidden()},methods:{...V1("administrationProductUploadLock",["indexHidden"])}},YIn={key:0},WIn={class:"mb-3"},GIn={key:0,class:"vl-parent mh-4rem"},ZIn={key:1},KIn={class:"text-center text-muted"},JIn={key:2,class:"d-flex flex-column gap-3"};function XIn(e,t,n,o,i,r){const s=y("Loading"),a=y("ProductUploadLockContentItem");return e.list.length?(h(),g("div",YIn,[c("h4",WIn,m(e.$t("administration.content.product_upload_lock.hidden.title")),1),e.loading?(h(),g("div",GIn,[b(s,{active:e.loading,color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.length?(h(),g("div",JIn,[(h(!0),g(pe,null,Me(e.list,l=>(h(),W(a,{key:l.id,"product-upload-lock":l,hidden:""},null,8,["product-upload-lock"]))),128))])):(h(),g("div",ZIn,[c("p",KIn,m(e.$t("administration.content.product_upload_lock.not_found")),1)]))])):D("",!0)}const QIn=U(qIn,[["render",XIn],["__scopeId","data-v-98fbe3d8"]]);const ePn={components:{ProductUploadLockContentItem:EM,Loading:Rt},data(){return{primaryColor:window.primaryColor}},computed:{...sn("administrationProductUploadLock",{listRecent:e=>e.list.recent,listShown:e=>e.list.shown,listHidden:e=>e.list.hidden,loading:e=>e.loading.recent})},created(){this.indexRecent()},methods:{...V1("administrationProductUploadLock",["indexRecent"])}},tPn={key:0},nPn={class:"mb-3"},oPn={key:0,class:"vl-parent mh-4rem"},iPn={key:1},rPn={class:"text-center text-muted"},sPn={key:2,class:"d-flex flex-column gap-3"};function aPn(e,t,n,o,i,r){const s=y("Loading"),a=y("ProductUploadLockContentItem");return e.listRecent.length?(h(),g("div",tPn,[c("h4",nPn,m(e.$t("administration.content.product_upload_lock.recent.title")),1),e.loading?(h(),g("div",oPn,[b(s,{active:e.loading,color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.listRecent.length?(h(),g("div",sPn,[(h(!0),g(pe,null,Me(e.listRecent,l=>(h(),W(a,{key:l.id,"product-upload-lock":l},null,8,["product-upload-lock"]))),128))])):(h(),g("div",iPn,[c("p",rPn,m(e.$t("administration.content.product_upload_lock.not_found")),1)]))])):D("",!0)}const lPn=U(ePn,[["render",aPn],["__scopeId","data-v-ab16e9fe"]]),cPn={components:{ProductUploadLockRecentList:lPn,ProductUploadLockShownList:VIn,ProductUploadLockHiddenList:QIn,ProductUploadLockCreateButton:rIn}},dPn={class:"d-flex flex-column gap-4 mt-5"},uPn={class:"d-flex flex-wrap justify-content-between align-items-center"},hPn={class:"mb-0"};function fPn(e,t,n,o,i,r){const s=y("ProductUploadLockCreateButton"),a=y("ProductUploadLockRecentList"),l=y("ProductUploadLockShownList"),d=y("ProductUploadLockHiddenList");return h(),g("div",dPn,[c("div",uPn,[c("h3",hPn,m(e.$t("administration.content.product_upload_lock.title")),1),b(s)]),b(a),b(l),b(d)])}const mPn=U(cPn,[["render",fPn]]),pPn=[{path:"/",name:"homepage",component:JV},{path:"/registrace/potvrzeni/:token",name:"user.activated",component:JV},{path:"/materialy",name:"materials",component:Nse,props:e=>({query:{text:e.query.text!==void 0?e.query.text:"",category:e.query.category!==void 0?e.query.category:"",preference:e.query.preference!==void 0?e.query.preference:"",curriculum:e.query.curriculum!==void 0?e.query.curriculum:"",page:e.query.page!==void 0?e.query.page:"1",orderBy:e.query.orderBy!==void 0?e.query.orderBy:"default",section:e.query.section!==void 0?e.query.section:"",onlyVerifiedAuthors:e.query.onlyVerifiedAuthors!==void 0?e.query.onlyVerifiedAuthors:"",blackAndWhitePrint:e.query.blackAndWhitePrint!==void 0?e.query.blackAndWhitePrint:""}})},{path:"/autori",name:"author",component:mbt,redirect:{name:"author.author"},props:e=>({query:{search:e.query.search!==void 0?e.query.search:"",top_class_preference:e.query.top_class_preference!==void 0?e.query.top_class_preference:"",page:e.query.page!==void 0?e.query.page:1}}),children:[{path:"autori",name:"author.author",component:C0t},{path:"organizace",name:"author.organization",component:D0t}]},{path:"/author/:id",name:"author.show",component:tq,redirect:{name:"author.show.profile"},props:e=>({query:{text:e.query.text!==void 0?e.query.text:"",category:e.query.category!==void 0?e.query.category:"",page:e.query.page!==void 0?e.query.page:1,orderBy:e.query.orderBy!==void 0?e.query.orderBy:"approved_at",author:Number(e.params.id)}}),children:[{path:"",name:"author.show.profile",component:nq},{path:":slug",name:"author.show.product_group",component:oq}]},{path:"/skola",name:"school.info",component:Vse,children:[{path:"registrace",name:"school.register"}]},{path:"/skola/registrace/:school",name:"school.register.school",component:X5t,props:e=>({query:{step:Number(e.query.step)}})},{path:"/dashboard",component:F$t,children:[{path:"",redirect:"/dashboard/aktualne"},{path:"aktualne",name:"dashboard/aktualne",component:B$t,redirect:"/dashboard/aktualne/prehled",children:[{path:"prehled",name:"dashboard/aktualne/prehled",component:S6t,redirect:{name:"dashboard/aktualne/prehled/vse"},children:[{path:"vse",name:"dashboard/aktualne/prehled/vse",component:v8,props:{notificationsType:"all"}},{path:"aktuality",name:"dashboard/aktualne/prehled/aktuality",component:v8,props:{notificationsType:"news"}},{path:"materialy",name:"dashboard/aktualne/prehled/materialy",component:v8,props:{notificationsType:"products"}},{path:"oceneni",name:"dashboard/aktualne/prehled/oceneni",component:v8,props:{notificationsType:"achievements"}}]},{path:"novinky/:id",name:"dashboard/aktualne/novinky",component:EL},{path:"prehled-prodeju",name:"dashboard/aktualne/prehled-prodeju",component:RCt},{path:"oceneni/:id",name:"dashboard/aktualne/oceneni",component:DEn}]},{path:"materialy",name:"dashboard/materialy",component:HCt,redirect:"/dashboard/materialy/vsechny",children:[{path:"vsechny",name:"dashboard/materialy/vsechny",component:X7t,props:e=>({query:{text:e.query.text!==void 0?e.query.text:"",category:e.query.category!==void 0?e.query.category:""}})},{path:"v-revizi",name:"dashboard/materialy/revize",component:ISt,props:e=>({query:{text:e.query.text!==void 0?e.query.text:"",category:e.query.category!==void 0?e.query.category:""}})},{path:"reklamace",name:"dashboard/materialy/reklamace",component:eTt,props:e=>({query:{text:e.query.text!==void 0?e.query.text:"",category:e.query.category!==void 0?e.query.category:""}})}]},{path:"vyuctovani",name:"dashboard/vyuctovani",component:QTt},{path:"marketing",name:"dashboard/marketing",redirect:"/dashboard/marketing/promo-material",component:pEt,children:[{path:"promo-material",name:"dashboard/marketing/promo-material",component:mMt},{path:"slevy",name:"dashboard/marketing/slevy",redirect:"/dashboard/marketing/slevy/prehled",component:vMt,children:[{path:"prehled",name:"dashboard/marketing/slevy/prehled",component:YNt},{path:"autorske/nastaveni/:id?",name:"dashboard/marketing/slevy/autorske/nastaveni",component:Pjt},{path:"ucitelnice/nastaveni",name:"dashboard/marketing/slevy/ucitelnice/nastaveni",component:Zjt}]}]},{path:"skupiny-materialu",name:"dashboard/skupiny-materialu",component:Tzt},{path:"nastaveni",name:"dashboard/nastaveni",redirect:"/dashboard/nastaveni/informace",component:Zzt,children:[{path:"informace",name:"dashboard/nastaveni/informace",component:xBt},{path:"profilovy-obrazek",name:"dashboard/nastaveni/profilovy-obrazek",component:$Ut},{path:"uvodni-obrazek",name:"dashboard/nastaveni/uvodni-obrazek",component:uUt},{path:"socialni-site",name:"dashboard/nastaveni/socialni-site",component:gHt},{path:"zdroje-obrazku",name:"dashboard/nastaveni/zdroje-obrazku",component:GHt}]}]},{path:"/profil",component:MVt,redirect:"/profil/materialy",children:[{path:"materialy",name:"user-dashboard/products",component:GVt,redirect:"/profil/materialy/osobni",children:[{path:"osobni",name:"user-dashboard/products/user",component:FY,props:e=>({query:{text:e.query.text!==void 0?e.query.text:"",category:e.query.category!==void 0?e.query.category:""}})},{path:"skolni",name:"user-dashboard/products/school",component:sA,props:e=>({query:{text:e.query.text!==void 0?e.query.text:"",category:e.query.category!==void 0?e.query.category:""}})}]},{path:"seznam-prani",name:"user-dashboard/wishlist",component:$Gt},{path:"zpravy",name:"user-dashboard/messages",component:zY,children:[{path:":id",name:"user-dashboard/messages/message",component:zY}]},{path:"finance",name:"user-dashboard/finances",component:gKt,redirect:"/profil/finance/danove-doklady",children:[{path:"danove-doklady",name:"user-dashboard/finances/documents",component:QKt},{path:"neuhrazene-objednavky",name:"user-dashboard/finances/unfinished-orders",component:fJt},{path:"zaplacene-objednavky",name:"user-dashboard/finances/paid-orders",component:kJt},{path:"dobiti-kreditu",name:"user-dashboard/finances/credit-orders",component:PJt}]},{path:"nastaveni",name:"user-dashboard/settings",redirect:"/profil/nastaveni/profil",component:HJt,children:[{path:"profil",name:"user-dashboard/settings/profile",component:FXt},{path:"heslo",name:"user-dashboard/settings/password",component:eQt},{path:"fakturacni-udaje",name:"user-dashboard/settings/invoice_info",component:yen},{path:"skola",name:"user-dashboard/settings/school",component:Een}]}]},{path:"/skola/sprava/finance/doklady/archiv",name:"skola/sprava/finance/doklady/archiv",component:Dtn},{path:"/skola/sprava",component:Qtn,children:[{path:"",redirect:"/skola/sprava/kolegove"},{path:"kolegove",name:"skola/sprava/kolegove",component:iin},{path:"finance",name:"skola/sprava/finance",component:Yin,redirect:{name:"skola/sprava/finance/doklady"},children:[{path:"doklady",name:"skola/sprava/finance/doklady",component:tsn},{path:"mesicni-prehled-nakupu",name:"skola/sprava/finance/mesicni-prehled-nakupu",component:xsn},{path:"doklady/archiv",redirect:{name:"skola/sprava/finance/doklady/archiv"}}]},{path:"materialy",name:"skola/sprava/materialy",component:jsn,props:e=>({query:{text:e.query.text!==void 0?e.query.text:"",category:e.query.category!==void 0?e.query.category:""}})}]},{path:"/zakoupene-materialy",component:Zsn,children:[{path:"",redirect:"/zakoupene-materialy/osobni"},{path:"osobni",name:"/zakoupene-materialy/osobni",component:FY,props:e=>({query:{text:e.query.text!==void 0?e.query.text:"",category:e.query.category!==void 0?e.query.category:""}})},{path:"skolni",name:"/zakoupene-materialy/skolni",component:sA,props:e=>({query:{text:e.query.text!==void 0?e.query.text:"",category:e.query.category!==void 0?e.query.category:""}})}]},{path:"/caste-dotazy",component:VT,props:e=>({id:Number(e.params.id),category:e.name}),children:[{path:"obecne/:id?",name:"general",component:VT},{path:"skolni-ucty/:id?",name:"school",component:VT}]},{path:"/webinare",name:"webinars",redirect:{name:"webinars/index"},children:[{path:"",name:"webinars/index",component:Ucn},{path:"/webinar/:slug",name:"webinar/detail",component:jdn,props:e=>({slug:e.params.slug,key:e.params.slug})}]},{path:"/administration",name:"administration",redirect:"/administration/product",children:[{path:"product",name:"administration/product",component:WT,redirect:{name:"administration/product/list"},children:[{path:"list",name:"administration/product/list",component:Zdn,redirect:{name:"administration/product/list/all"},children:[{path:"all",name:"administration/product/list/all",component:Bhn,props:e=>({query:{page:e.query.page!==void 0?Number(e.query.page):1,search:e.query.search!==void 0?e.query.search:null,date:e.query.date!==void 0?e.query.date:null,controlMode:e.query.controlMode!==void 0?e.query.controlMode==="true":void 0,state:e.query.state!==void 0?e.query.state:null,tags:e.query.tags!==void 0?e.query.tags:null}})},{path:"complaint",name:"administration/product/list/complaint",component:mfn,props:e=>({query:{page:e.query.page!==void 0?Number(e.query.page):1,search:e.query.search!==void 0?e.query.search:null,date:e.query.date!==void 0?e.query.date:null,state:e.query.state!==void 0?e.query.state:null,reason:e.query.reason!==void 0?e.query.reason:null,tags:e.query.tags!==void 0?e.query.tags:null}})},{path:"update",name:"administration/product/list/update",component:jfn,props:e=>({query:{page:e.query.page!==void 0?Number(e.query.page):1,search:e.query.search!==void 0?e.query.search:null}})}]},{path:"detail/:id",name:"administration/product/detail",component:ymn,redirect:{name:"administration/product/detail/info"},props:e=>({id:Number(e.params.id)}),children:[{path:"info",name:"administration/product/detail/info",component:h1n},{path:"log/list",name:"administration/product/detail/log/list",component:N1n,props:e=>({query:{page:e.query.page!==void 0?Number(e.query.page):1,search:e.query.search!==void 0?e.query.search:null,date:e.query.date!==void 0?e.query.date:null,type:e.query.type!==void 0?e.query.type:null}})}]},{path:"complaint/detail/:id",name:"administration/product/complaint/detail",component:Ugn,props:e=>({id:Number(e.params.id)})}]},{path:"users",name:"administration/users",component:WT,redirect:"/administration/users/list",children:[{path:"list",name:"administration/users/list",component:Ivn,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,roles:e.query.roles!==void 0?e.query.roles:null,states:e.query.states!==void 0?e.query.states:null,school:e.query.school!==void 0?e.query.school:null,page:e.query.page!==void 0?Number(e.query.page):1,date:e.query.date!==void 0?e.query.date:null,tags:e.query.tags!==void 0?e.query.tags:null}})},{path:"detail/:id",name:"administration/users/detail",component:j_n,redirect:{name:"administration/users/detail/downloads"},props:e=>({id:Number(e.params.id)}),children:[{path:"downloads",name:"administration/users/detail/downloads",component:yyn,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,page:e.query.page!==void 0?Number(e.query.page):1,date:e.query.date!==void 0?e.query.date:null}})},{path:"finances",name:"administration/users/detail/finances",component:wyn,redirect:{name:"administration/users/detail/finances/orders"},children:[{path:"orders",name:"administration/users/detail/finances/orders",component:d0n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,account_type:e.query.account_type!==void 0?e.query.account_type:null,payment_state:e.query.payment_state!==void 0?e.query.payment_state:null,payment_type:e.query.payment_type!==void 0?e.query.payment_type:null,type:e.query.type!==void 0?e.query.type:null,page:e.query.page!==void 0?Number(e.query.page):1,date:e.query.date!==void 0?e.query.date:null}})},{path:"payments",name:"administration/users/detail/finances/payments",component:z0n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,order_type:e.query.order_type!==void 0?e.query.order_type:null,payment_type:e.query.payment_type!==void 0?e.query.payment_type:null,page:e.query.page!==void 0?Number(e.query.page):1,date:e.query.date!==void 0?e.query.date:null}})},{path:"credit-transfers",name:"administration/users/detail/finances/credit-transfers",component:m2n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,credit_transfer_type:e.query.credit_transfer_type!==void 0?e.query.credit_transfer_type:null,page:e.query.page!==void 0?Number(e.query.page):1,date:e.query.date!==void 0?e.query.date:null}})}]},{path:"settings",name:"administration/users/detail/settings",component:P2n}]},{path:"detail/:id/author",name:"administration/users/detail/author",component:t3n,redirect:{name:"administration/users/detail/author/products"},props:e=>({id:Number(e.params.id)}),children:[{path:"products",name:"administration/users/detail/author/products",component:A3n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,page:e.query.page!==void 0?Number(e.query.page):1,date:e.query.date!==void 0?e.query.date:null,tags:e.query.tags!==void 0?e.query.tags:null}})},{path:"settlements",name:"administration/users/detail/author/settlements",component:Q3n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,page:e.query.page!==void 0?Number(e.query.page):1,year:e.query.year!==void 0?e.query.year:null,status:e.query.status!==void 0?e.query.status:null}})},{path:"settings",name:"administration/users/detail/author/settings",component:ikn}]}]},{path:"school",name:"administration/school",component:WT,redirect:"/administration/school/list",children:[{path:"list",name:"administration/school/list",component:Bkn,props:e=>({query:{page:e.query.page!==void 0?Number(e.query.page):1,search:e.query.search!==void 0?e.query.search:null,registered:e.query.registered!==void 0?e.query.registered:null}})},{path:"detail/:id",name:"administration/school/detail",component:Iwn,redirect:e=>{const{id:t}=e.params;return`/administration/school/detail/${t}/list/user`},props:e=>({id:Number(e.params.id)}),children:[{path:"list/user",name:"administration/school/detail/list/user",component:a8n,props:e=>({query:{page:e.query.page!==void 0?Number(e.query.page):1,search:e.query.search!==void 0?e.query.search:null,type:e.query.type!==void 0?e.query.type:null}})},{path:"list/finance",name:"administration/school/detail/list/finance",component:d8n,redirect:{name:"administration/school/detail/list/finance/order"},children:[{path:"invoice",name:"administration/school/detail/list/finance/order",component:j8n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,type:e.query.type!==void 0?e.query.type:null,payment_type:e.query.payment_type!==void 0?e.query.payment_type:null,payment_state:e.query.payment_state!==void 0?e.query.payment_state:null,page:e.query.page!==void 0?Number(e.query.page):1,date:e.query.date!==void 0?e.query.date:null}})},{path:"payment",name:"administration/school/detail/list/finance/payment",component:q8n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,order_type:e.query.order_type!==void 0?e.query.order_type:null,payment_type:e.query.payment_type!==void 0?e.query.payment_type:null,page:e.query.page!==void 0?Number(e.query.page):1,date:e.query.date!==void 0?e.query.date:null}})},{path:"credit-transfer",name:"administration/school/detail/list/finance/credit-transfer",component:Z8n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,credit_transfer_type:e.query.credit_transfer_type!==void 0?e.query.credit_transfer_type:null,page:e.query.page!==void 0?Number(e.query.page):1,date:e.query.date!==void 0?e.query.date:null}})}]},{path:"list/product",name:"administration/school/detail/list/product",component:E4n,props:e=>({query:{page:e.query.page!==void 0?Number(e.query.page):1,search:e.query.search!==void 0?e.query.search:null,date:e.query.date!==void 0?e.query.date:null}})}]}]},{path:"content",name:"administration/content",component:D4n,redirect:"/administration/content/section",children:[{path:"section",name:"administration/content/section",component:j5n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null}})},{path:"category",name:"administration/content/category",component:r9n,redirect:"/administration/content/category/class-subject",children:[{path:"class-subject",name:"administration/content/category/class-subject",component:G9n},{path:"class",name:"administration/content/category/class",component:C6n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null}})},{path:"subject",name:"administration/content/category/subject",component:I6n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null}})},{path:"theme",name:"administration/content/category/theme",component:x6n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null}})},{path:"kind",name:"administration/content/category/kind",component:N6n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null}})},{path:"format",name:"administration/content/category/format",component:V6n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null}})},{path:"holiday",name:"administration/content/category/holiday",component:z6n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null}})},{path:"image",name:"administration/content/category/image",component:aCn,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null}})}]},{path:"search",name:"administration/content/search",component:uCn,redirect:{name:"administration/content/search/defaults"},children:[{path:"defaults",name:"administration/content/search/defaults",component:FCn}]},{path:"blog",name:"administration/content/blog",component:Van},{path:"product-upload-lock",name:"administration/content/product-upload-lock",component:mPn}]},{path:"finance",name:"administration/finance",component:BCn,redirect:"/administration/finance/order/list",children:[{path:"order/list",name:"administration/finance/order/list",component:KCn,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,account_type:e.query.account_type!==void 0?e.query.account_type:null,payment_state:e.query.payment_state!==void 0?e.query.payment_state:null,payment_type:e.query.payment_type!==void 0?e.query.payment_type:null,type:e.query.type!==void 0?e.query.type:null,page:e.query.page!==void 0?Number(e.query.page):1,date:e.query.date!==void 0?e.query.date:null}})},{path:"author/list",name:"administration/finance/author/list",component:D7n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,page:e.query.page!==void 0?Number(e.query.page):1,date:e.query.date!==void 0?e.query.date:null}})},{path:"vouchers-and-discounts",name:"administration/finance/vouchers-and-discounts",component:XTn,redirect:{name:"administration/finance/voucher/list"},children:[{path:"list",name:"administration/finance/voucher/list",component:dSn,props:e=>({query:{page:e.query.page!==void 0?Number(e.query.page):1,search:e.query.search!==void 0?e.query.search:null,type:e.query.type!==void 0?e.query.type:null,valid:e.query.valid!==void 0?e.query.valid:null,created_by:e.query.created_by!==void 0?e.query.created_by:null}})},{path:"author-discounts",name:"administration/finance/authorDiscount/settings",component:ZTn}]}]},{path:"message",name:"administration/message",component:fSn,redirect:"/administration/message/message",children:[{path:"message",name:"administration/message/message",component:MSn,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,page:e.query.page!==void 0?Number(e.query.page):1,conversation:e.query.conversation!==void 0?e.query.conversation:null}})},{path:"infobox",name:"administration/message/infobox",component:t9n,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null}})},{path:"notification",name:"administration/message/notification",component:pTn,props:e=>({query:{search:e.query.search!==void 0?e.query.search:null,page:e.query.page!==void 0?Number(e.query.page):1}})}]},{path:"*",name:"administration/not-found",component:yTn}]},{path:"/:author_slug",name:"author.show.public",component:tq,redirect:{name:"author.show.public.profile"},props:e=>({query:{text:e.query.text!==void 0?e.query.text:"",category:e.query.category!==void 0?e.query.category:"",page:e.query.page!==void 0?e.query.page:1,orderBy:e.query.orderBy!==void 0?e.query.orderBy:"approved_at"}}),children:[{path:"",name:"author.show.public.profile",component:nq},{path:":group_slug",name:"author.show.public.product_group",component:oq}]}];function gPn(e,t){if(e===0)return 0;const n=e>10&&e<20,o=e%10===1;return!n&&o?1:!n&&e%10>=2&&e%10<=4||t<4?2:3}const vPn={check:!1,is_school_manager:!1,is_admin:!1,is_hmat:!1,is_vat_payer:!1,id:null,email:null,is_name_set:!0,first_name:null,last_name:null,loading:!1,loaded:!1,professional_focus:"",unread_news_for_author:!1,promise:null,verified:!1,has_image:!1,has_promo:!1,description:null,badge:void 0,role:null,school:null,has_school:!1,credit:0,school_credit:0,unread_messages_count:0,upload_count_daily:0,last_message:null,downloads_loading:!1,downloads:[],last_payment_instrument:null,last_payment_swift:null,invoice_data:null,favourite_authors:[]};let _Pn={id:e=>e.id,isLoading:e=>e.loading,downloadsLoading:e=>e.downloads_loading,request:e=>e.promise,isLoggedIn:e=>e.check,auth:e=>({id:e.id,is_name_set:e.is_name_set,first_name:e.first_name,last_name:e.last_name,email:e.email,image_thumbnail:e.image_thumbnail,is_admin:e.is_admin,is_hmat:e.is_hmat,is_vat_payer:e.is_vat_payer,check:e.check,professional_focus:e.professional_focus,unread_news_for_author:e.unread_news_for_author,has_promo:e.has_promo,badge:e.badge,role:e.role,has_school:e.has_school,credit:e.credit,school:e.school,school_credit:e.school_credit,is_school_manager:e.is_school_manager,is_author:e.badge!==void 0,unread_messages_count:e.unread_messages_count,upload_count_daily:e.upload_count_daily,last_message:e.last_message,loading:e.loading,favourite_authors:e.favourite_authors}),isAuthorized:e=>t=>{switch(t){case"admin":return e.is_admin;case"school_manager":return e.is_school_manager;case"author":return e.badge!==void 0;case"user":return e.check;case"guest":return!0;default:return!1}},getDownloads:e=>e.downloads,isFavouriteAuthor:e=>t=>e.favourite_authors.includes(t)},yPn={setAuthData(e,{id:t,email:n,check:o}){e.check=o,e.email=n,e.id=t},setIsNameSet(e,t){e.is_name_set=t},setName(e,{first_name:t,last_name:n}){e.first_name=t,e.last_name=n},setImageThumbnail(e,t){e.image_thumbnail=t},setIsAdmin(e,t){e.is_admin=t},setIsHmat(e,t){e.is_hmat=t},setIsVatPayer(e,t){e.is_vat_payer=t},setProfessionalFocus(e,t){e.professional_focus=t},setUnreadNewsForAuthor(e,t){e.unread_news_for_author=t},setVerified(e,t){e.verified=t},setHasImage(e,t){e.has_image=t},setDescription(e,t){e.description=t},setHasPromo(e,t){e.has_promo=t},setPromise(e,t){e.promise=t},setBadge(e,t){e.badge=t},setRole(e,t){e.role=t},setHasSchool(e,t){e.has_school=t},setCredit(e,t){e.credit=t},setSchool(e,t){e.school=t},setSchoolCredit(e,t){e.school_credit=t},setIsSchoolManager(e,t){e.is_school_manager=t},setUnreadMessagesCount(e,t){e.unread_messages_count=t},setLastMessage(e,t){e.last_message=t},setDownloads(e,t){e.downloads=t},setDownloadsLoading(e,t){e.downloads_loading=t},setLoading(e,t){e.loading=t},setLoaded(e,t){e.loaded=t},setLastPaymentInstrument(e,t){e.last_payment_instrument=t},setLastPaymentSwift(e,t){e.last_payment_swift=t},resetLastPayment(e){e.last_payment_instrument=null,e.last_payment_swift=null},setUploadCountDaily(e,t){e.upload_count_daily=t},setInvoiceData(e,t){e.invoice_data=t},setFavouriteAuthors(e,t){e.favourite_authors=t}},bPn={load({state:e,commit:t}){if(!e.loading&&!e.loaded){let n=new Promise((o,i)=>{t("setLoading",!0),Qc.index().then(r=>{let s=r.data.data;t("setAuthData",{id:s.id,email:s.email,check:s.check}),s.is_admin&&s.is_admin===!0&&t("setIsAdmin",!0),s.is_hmat&&s.is_hmat===!0&&t("setIsHmat",!0),s.is_vat_payer&&s.is_vat_payer===!0&&t("setIsVatPayer",!0),t("setProfessionalFocus",s.professional_focus),s.professional_focus==null&&t("setProfessionalFocus","none"),t("setIsNameSet",s.is_name_set),t("setName",{first_name:s.first_name,last_name:s.last_name}),t("setImageThumbnail",s.image_thumbnail),t("setUnreadNewsForAuthor",s.unread_news_for_author),t("setHasImage",s.has_image),t("setDescription",s.description),t("setVerified",s.verified),t("setHasPromo",s.has_promo),t("setBadge",s.badge),t("setRole",s.role),t("setHasSchool",s.has_school),t("setCredit",s.credit),t("setSchool",s.school),t("setSchoolCredit",s.school_credit),t("setIsSchoolManager",s.is_school_manager),t("setUnreadMessagesCount",s.unread_messages_count),t("setLastMessage",s.last_message),t("setLoading",!1),t("setLoaded",!0),t("setLastPaymentInstrument",s.last_payment_instrument),t("setLastPaymentSwift",s.last_payment_swift),t("setUploadCountDaily",s.upload_count_daily),t("setInvoiceData",s.invoice_data),t("setFavouriteAuthors",s.favourite_authors),o()}).catch(r=>{t("setLoading",!1),t("setLoaded",!0),!(r.response&&r.response.status===401)&&i(r)})});return t("setPromise",n),n}},downloads({state:e,commit:t}){if(!e.downloads_loading)return t("setDownloadsLoading",!0),new Promise((n,o)=>{Qc.downloads().then(i=>{t("setDownloads",i.data),t("setDownloadsLoading",!1),n()}).catch(i=>{t("setDownloadsLoading",!1),!(i.response&&i.response.status===401)&&o(i)})})},updateProfessionalFocus({commit:e},{professionalFocus:t}){e("setProfessionalFocus",t)},patchProfessionalFocus({getters:e,commit:t}){t("setLoading",!0);let n=e.auth;return new Promise((o,i)=>{Qc.patchProfessionalFocus(n.id,n.professional_focus).then(r=>{t("setLoading",!1),o(r)}).catch(r=>{t("setLoading",!1),!(r.response&&r.response.status===401)&&i(r)})})},updateUnreadMessagesCount({commit:e},{unreadMessagesCount:t}){e("setUnreadMessagesCount",t)},subtractUnreadMessagesCount({commit:e,state:t},{count:n}){e("setUnreadMessagesCount",t.unread_messages_count-=n)}};const kPn={namespaced:!0,state:vPn,getters:_Pn,actions:bPn,mutations:yPn},wPn=()=>De.get(Pe("api.cart.index")),$Pn=(e,t=!1)=>De.put(Pe("api.cart.add",{product:e}),{is_school:t}),CPn=e=>De.delete(Pe("api.cart.remove",e)),SPn=()=>De.patch(Pe("api.cart.setAsSchool")),TPn=()=>De.patch(Pe("api.cart.setAsPersonal")),EPn=e=>De.patch(Pe("api.cart.discount.add",{code:e})),IPn=()=>De.delete(Pe("api.cart.discount.remove")),Xp={index:wPn,add:$Pn,remove:CPn,setAsSchool:SPn,setAsPersonal:TPn,setDiscount:EPn,removeDiscount:IPn},PPn={loading:!1,items:{0:{price_before_author_discount:0,price:0}},price:0,price_brutto_all_discounts:0,personal_price_brutto_all_discounts:0,school_price_brutto_all_discounts:0,all_discounts_amount:0,discount_amount:0,is_for_school:!1,discount:null};let APn={isEmpty(e){return Object.keys(e.items).length<=0},size(e){return Object.keys(e.items).length},isDiscountApplied(e){return e.discount&&!!e.discount.code},discount(e){return{discount:{code:e.discount?e.discount.code:"",amount:e.discount?e.discount.discount:0},all_discounts_amount:e.all_discounts_amount,discount_amount:e.discount_amount}},isItemInCart:e=>t=>Object.values(e.items).some(n=>n.product_id===t),loading(e){return e.loading}},DPn={setLoading(e,t){e.loading=t},setData(e,t){let n=t.cart;e.items=n.items,e.price=n.price,e.price_brutto_all_discounts=n.price_brutto_all_discounts,e.personal_price_brutto_all_discounts=n.personal_price_brutto_all_discounts,e.school_price_brutto_all_discounts=n.school_price_brutto_all_discounts,e.is_for_school=n.is_for_school,e.all_discounts_amount=n.all_discounts_amount,e.discount_amount=n.discount_amount,e.discount=n.discount}},xPn={load({state:e,commit:t},n=!1){if(!(e.loading&&!n))return t("setLoading",!0),new Promise((o,i)=>{Xp.index().then(r=>{t("setData",r.data),t("setLoading",!1),o(r)}).catch(r=>{t("setLoading",!1),i(r)})})},add({state:e,commit:t,dispatch:n},{productId:o,isSchool:i=!1,context:r=null}){if(!e.loading)return t("setLoading",!0),new Promise((s,a)=>{Xp.add(o,i).then(l=>{l.data.cart.items[o]&&ai.addToCart(l.data.cart.items[o],r),Fe(l.data.message,"success"),t("setData",l.data),t("setLoading",!1),n("navigation/setUserCartItemCount",{userCartItemCount:Object.keys(e.items).length},{root:!0}),n("wishlist/load",{},{root:!0}),s(l)}).catch(l=>{console.log(l,"error"),Fe(l.response.data,"error"),t("setLoading",!1),a(l)})})},remove({commit:e,dispatch:t,state:n},{productId:o}){if(!n.loading)return e("setLoading",!0),new Promise((i,r)=>{Xp.remove(o).then(s=>{Fe(s.data.message,"success"),e("setData",s.data),e("setLoading",!1),t("navigation/setUserCartItemCount",{userCartItemCount:Object.keys(n.items).length},{root:!0}),s.data.cart.items[o],i(s)}).catch(s=>{Fe(s.response.data,"error"),e("setLoading",!1),r(s)})})},setAsSchool({commit:e,state:t}){if(!t.loading)return e("setLoading",!0),new Promise((n,o)=>{Xp.setAsSchool().then(i=>{e("setData",i.data),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response.data,"error"),e("setLoading",!1),o(i)})})},setAsPersonal({commit:e,state:t}){if(!t.loading)return e("setLoading",!0),new Promise((n,o)=>{Xp.setAsPersonal().then(i=>{e("setData",i.data),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response.data,"error"),e("setLoading",!1),o(i)})})},discountSet({commit:e,state:t},{code:n}){if(!t.loading)return e("setLoading",!0),new Promise((o,i)=>{Xp.setDiscount(n).then(r=>{Fe(r.data.message,"success"),e("setData",r.data),e("setLoading",!1),o(r)}).catch(r=>{Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})},removeDiscount({commit:e,state:t}){if(!t.loading)return e("setLoading",!0),new Promise((n,o)=>{Xp.removeDiscount().then(i=>{Fe(i.data.message,"success"),e("setData",i.data),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response.data,"success"),e("setLoading",!1),o(i)})})}};const OPn={namespaced:!0,state:PPn,getters:APn,actions:xPn,mutations:DPn},LPn=()=>De.get(Pe("api.discount.show")),MPn=()=>De.get(Pe("api.authorDiscount.show")),BY={show:LPn,authorDiscountAutomaticSettingsShow:MPn},NPn={loading:!1,detail:{id:null,discount:null},loading_author_discount_automatic_settings:!1,author_discount_automatic_settings:null};let RPn={getIsActive:e=>e.detail&&e.detail.valid_from_datetime<=mt().format("YYYY-MM-DD HH:mm:ss")&&e.detail.valid_to_datetime>=mt().format("YYYY-MM-DD HH:mm:ss")},jPn={setDetail(e,t){e.detail=t},setAuthorDiscountAutomaticSettings(e,t){e.author_discount_automatic_settings=t},setLoading(e,t){e.loading=t},setLoadingAuthorDiscountAutomaticSettings(e,t){e.loading_author_discount_automatic_settings=t}},FPn={show({commit:e,state:t}){if(!t.loading)return e("setLoading",!0),new Promise((n,o)=>{BY.show().then(i=>{e("setDetail",i.data.data),e("setLoading",!1),n(i)}).catch(i=>{e("setLoading",!1),!(i.response&&i.response.status===404)&&o(i)})})},authorDiscountAutomaticSettingsShow({commit:e,state:t}){if(!t.loading_author_discount_automatic_settings)return e("setLoadingAuthorDiscountAutomaticSettings",!0),new Promise((n,o)=>{BY.authorDiscountAutomaticSettingsShow().then(i=>{e("setAuthorDiscountAutomaticSettings",i.data.data),e("setLoadingAuthorDiscountAutomaticSettings",!1),n(i)}).catch(i=>{e("setLoadingAuthorDiscountAutomaticSettings",!1),!(i.response&&i.response.status===404)&&o(i)})})}};const zPn={namespaced:!0,state:NPn,getters:RPn,actions:FPn,mutations:jPn},UPn=(e,t,n)=>De.post(Pe("api.order.payment.gateway",{order:e.uuid}),{instrument:t,swift:n}),BPn={gateway:UPn},HPn={instrument:"",swift:null,loading:!1};let VPn={getPaymentData:e=>({instrument:e.instrument,swift:e.swift})},qPn={setInstrument(e,t){e.instrument=t},setSwift(e,t){e.swift=t},reset(e){e.instrument="",e.swift=null},toggleLoading(e){e.loading=!e.loading}},YPn={select({commit:e},{instrument:t,swift:n}){e("setInstrument",t),e("setSwift",n)},toggleLoading({commit:e}){e("toggleLoading")},gateway({state:e,dispatch:t},{order:n}){if(!e.loading)return t("toggleLoading"),new Promise((o,i)=>{BPn.gateway(n,e.instrument,e.swift).then(r=>{o(r)}).catch(r=>{t("toggleLoading"),i(r)})})}};const WPn={namespaced:!0,state:HPn,getters:VPn,actions:YPn,mutations:qPn},GPn={method:"GOPAY",data:{},loading:!1};let ZPn={},KPn={setMethod(e,t){e.method=t},setData(e,t){e.data=t},toggleLoading(e){e.loading=!e.loading}},JPn={place({commit:e,rootState:t}){return e("toggleLoading"),new Promise((n,o)=>{sy.place(t.payment.instrument,t.payment.swift).then(i=>{i.data.method==="credit"?window.location.href=Pe("order.payment.confirmed",{order:i.data.order}):(e("setData",i.data),e("setMethod",i.data.method)),n(i)}).catch(i=>{e("toggleLoading"),o(i)})})},credit({commit:e,rootState:t},{amount:n=null,instrument:o=null,code:i=null}){return e("toggleLoading"),new Promise((r,s)=>{sy.credit(n,o??t.payment.instrument,t.payment.swift,i).then(a=>{e("setData",a.data),e("setMethod",a.data.method),e("toggleLoading"),r(a)}).catch(a=>{e("toggleLoading"),s(a)})})},toggleLoading({commit:e}){e("toggleLoading")}};const XPn={namespaced:!0,state:GPn,getters:ZPn,actions:JPn,mutations:KPn},QPn=e=>De.get(Pe("dashboard.api.products",e)),eAn=e=>De.get(Pe("dashboard.api.products.exclusive",e)),tAn=e=>De.get(Pe("dashboard.api.revisions",e)),nAn=e=>De.get(Pe("dashboard.api.complaints",e)),oAn=(e,t)=>De.post(Pe("api.author.product.vat.compute",{product:e}),{categories:t}),sk={index:QPn,productsExclusive:eAn,revisions:tAn,complaints:nAn,vatCompute:oAn},iAn={id:0,title:"",short_description:"",price:0,vat:0,vat_type:null,price_brutto:null,full_description:"",pages:0,file_type:[],video:"",only_on_ucitelnice:!1,author_only_on_ucitelnice:!1,black_and_white_print:!1,print_and_use:!1,categories:[],vop:!1,cover_img:"",images:[],file:{},status:5,sells:0,author_verified:!1,reason:"",notify_customer:!1,loading:!1,draftSaving:!1,is_webinar:!1,webinar_starts_at:null,webinar_url_stream:"",is_hmat:!1,is_mmat:!1,has_no_images:!1,has_also_original_images:!1,has_product_images:!1,image_sources:[],commission:0,is_published_now:!0,published_at:new Date,categories_vat_modifiable:!0};let rAn={getProductData:e=>({id:e.id,title:e.title,short_description:e.short_description,price:e.price,vat:e.vat,vat_type:e.vat_type,price_brutto:e.price_brutto,full_description:e.full_description,pages:e.pages,file_type:e.file_type,video:e.video,only_on_ucitelnice:e.only_on_ucitelnice,author_only_on_ucitelnice:e.author_only_on_ucitelnice,black_and_white_print:e.black_and_white_print,print_and_use:e.print_and_use,categories:e.categories,vop:e.vop,cover_img:e.cover_img,images:e.images,file:e.file,status:e.status,author_verified:e.author_verified,reason:e.reason,notify_customer:e.notify_customer,has_no_images:e.has_no_images,has_also_original_images:e.has_also_original_images,has_product_images:e.has_product_images,image_sources:e.image_sources,is_webinar:e.is_webinar,webinar_starts_at:e.webinar_starts_at,webinar_url_stream:e.webinar_url_stream,is_hmat:e.is_hmat,is_mmat:e.is_mmat,commission:e.commission,is_published_now:e.is_published_now,published_at:e.published_at,categories_vat_modifiable:e.categories_vat_modifiable,sells:e.sells}),loading:e=>e.loading,draftSaving:e=>e.draftSaving},sAn={updateId(e,t){e.id=t},updateTitle(e,t){e.title=t},updateShortDescription(e,t){e.short_description=t},updatePrice(e,t){e.price=t},updateVat(e,t){e.vat=t},updateVatType(e,t){e.vat_type=t},updatePriceBrutto(e,t){e.price_brutto=t},updateFullDescription(e,t){e.full_description=t},updatePages(e,t){e.pages=t},updateFileType(e,t){e.file_type=t},updateVideo(e,t){e.video=t},updateOnlyOnUcitelnice(e,t){e.only_on_ucitelnice=t},updateAuthorOnlyOnUcitelnice(e,t){e.author_only_on_ucitelnice=t},updateBlackAndWhitePrint(e,t){e.black_and_white_print=t},updatePrintAndUse(e,t){e.print_and_use=t},updateCategories(e,t){e.categories=t},updateVop(e,t){e.vop=t},updateCoverImg(e,t){e.cover_img=t},updateImages(e,t){e.images=t},updateFile(e,t){e.file=t},updateStatus(e,t){e.status=t},updateAuthorVerified(e,t){e.author_verified=t},updateReason(e,t){e.reason=t},updateNotifyCustomer(e,t){e.notify_customer=t},updateHasNoImages(e,t){e.has_no_images=t},updateHasAlsoOriginalImages(e,t){e.has_also_original_images=t},updateHasProductImages(e,t){e.has_product_images=t},updateImageSources(e,t){e.image_sources=t},updateIsWebinar(e,t){e.is_webinar=t},updateWebinarStartsAt(e,t){e.webinar_starts_at=t},updateWebinarUrlStream(e,t){e.webinar_url_stream=t},updateIsHmat(e,t){e.is_hmat=t},updateIsMmat(e,t){e.is_mmat=t},updateCommission(e,t){e.commission=t},updateIsPublishedNow(e,t){e.is_published_now=t},updatePublishedAt(e,t){e.published_at=t},updateCategoriesVatModifiable(e,t){e.categories_vat_modifiable=t},updateSells(e,t){e.sells=t},toggleLoading(e){e.loading=!e.loading},setLoading(e,t){e.loading=t},toggleDraftSaving(e){e.draftSaving=!e.draftSaving}},aAn={load({state:e,commit:t},{id:n}){if(!e.loading)return t("updateId",n),t("setLoading",!0),Xr.show(n).then(o=>{let i=o.data.data;t("updateTitle",i.title),t("updateShortDescription",i.short_description),t("updatePrice",i.price),t("updateVat",i.vat.value),t("updateVatType",i.vat.type),i.price>0&&t("updatePriceBrutto",Math.round(i.price+i.price*i.vat.value/100)),t("updateFullDescription",i.full_description),t("updatePages",i.pages),t("updateFileType",i.file_type),t("updateVideo",i.video),t("updateOnlyOnUcitelnice",i.only_on_ucitelnice),t("updateAuthorOnlyOnUcitelnice",i.author_only_on_ucitelnice),t("updateBlackAndWhitePrint",i.black_and_white_print),t("updatePrintAndUse",i.print_and_use),t("updateCategories",i.categories),t("updateVop",i.vop),t("updateCoverImg",i.cover_img),t("updateImages",i.images),t("updateFile",i.file),t("updateStatus",i.status),t("updateAuthorVerified",i.author_verified),t("updateHasAlsoOriginalImages",i.has_also_original_images),t("updateHasProductImages",i.has_product_images),t("updateImageSources",i.image_sources),t("updateIsWebinar",i.is_webinar),t("updateWebinarStartsAt",i.webinar_starts_at),t("updateWebinarUrlStream",i.webinar_url_stream),t("updateCommission",i.commission),t("updateIsHmat",i.is_hmat),t("updateIsMmat",i.is_mmat),t("updateHasNoImages",i.has_no_images),t("updateIsPublishedNow",i.is_published_now),t("updatePublishedAt",i.published_at),t("updateSells",i.sells),t("updateCategoriesVatModifiable",i.categories_vat_modifiable),t("setLoading",!1)}).catch(o=>{var i,r;(r=(i=o.response)==null?void 0:i.data)!=null&&r.message&&Fe(o.response.data.message,"error"),t("setLoading",!1)})},vatCompute({commit:e,state:t}){return new Promise((n,o)=>{sk.vatCompute(t.id,t.categories).then(i=>{e("updateVat",i.data.vat.value),e("updateVatType",i.data.vat.type),n(i.data.vat)}).catch(i=>{o(i)})})},reloadFile({commit:e,state:t}){Xr.show(t.id).then(n=>{let o=n.data.data;e("updateFile",o.file)}).catch(n=>{var o,i;(i=(o=n==null?void 0:n.response)==null?void 0:o.data)!=null&&i.message&&Fe(n.response.data.message,"error")})},updateTitle({commit:e},{title:t}){e("updateTitle",t)},updateShortDescription({commit:e},{shortDescription:t}){e("updateShortDescription",t)},updatePrice({commit:e},{price:t}){e("updatePrice",t)},updateVat({commit:e},{vat:t}){e("updateVat",t)},updateFullDescription({commit:e},{fullDescription:t}){e("updateFullDescription",t)},updatePages({commit:e},{pages:t}){e("updatePages",t)},updateFileType({commit:e},{fileType:t}){e("updateFileType",t)},updateVideo({commit:e},{video:t}){e("updateVideo",t)},updateOnlyOnUcitelnice({commit:e},{onlyOnUcitelnice:t}){e("updateOnlyOnUcitelnice",t)},updateBlackAndWhitePrint({commit:e},{blackAndWhitePrint:t}){e("updateBlackAndWhitePrint",t)},updatePrintAndUse({commit:e},{printAndUse:t}){e("updatePrintAndUse",t)},updateCategories({commit:e},{categories:t}){e("updateCategories",t)},updateVop({commit:e},{vop:t}){e("updateVop",t)},updateImages({commit:e},{images:t}){e("updateImages",t)},updateReason({commit:e},{reason:t}){e("updateReason",t)},updateNotifyCustomer({commit:e},{notifyCustomer:t}){e("updateNotifyCustomer",t)},updateHasAlsoOriginalImages({commit:e},{hasAlsoOriginalImages:t}){e("updateHasAlsoOriginalImages",t)},updateImageSources({commit:e},{imageSources:t}){e("updateImageSources",t)},updateIsWebinar({commit:e},{isWebinar:t}){e("updateIsWebinar",t)},updateWebinarStartsAt({commit:e},{webinarStartsAt:t}){e("updateWebinarStartsAt",t)},updateWebinarRedirectAt({commit:e},{webinarRedirectAt:t}){e("updateWebinarRedirectAt",t)},updateWebinarUrlStream({commit:e},{webinarUrlStream:t}){e("updateWebinarUrlStream",t)},updateIsHmat({commit:e},{isHmat:t}){e("updateIsHmat",t)},updateIsMmat({commit:e},{isMmat:t}){e("updateIsMmat",t)},updateCommission({commit:e},{commission:t}){e("updateCommission",t)},updateHasNoImages({commit:e},{hasNoImages:t}){e("updateHasNoImages",t)},updateHasProductImages({commit:e},{hasProductImages:t}){e("updateHasProductImages",t)},updateIsPublishedNow({commit:e},{isPublishedNow:t}){e("updateIsPublishedNow",t)},updatePublishedAt({commit:e},{publishedAt:t}){e("updatePublishedAt",t)},saveDraft({getters:e,dispatch:t}){t("toggleDraftSaving");let n=e.getProductData;Xr.saveDraft(n.id,n).then(o=>{Fe(o.data.message.text,o.data.message.type),t("toggleDraftSaving")}).catch(o=>{var i,r;(r=(i=o==null?void 0:o.response)==null?void 0:i.data)!=null&&r.message&&Fe(o.response.data.message,"error"),t("toggleDraftSaving")})},publish({getters:e,dispatch:t}){t("toggleLoading");let n=e.getProductData;Xr.publish(n.id,n).then(o=>{Fe(o.data.message,"success"),t("toggleLoading"),window.location.href=o.data.detail}).catch(o=>{var r,s,a,l;const i=(s=(r=o==null?void 0:o.response)==null?void 0:r.data)==null?void 0:s.errors;i&&i[Object.keys(i)[0]]&&i[Object.keys(i)[0]][0]&&Fe(i[Object.keys(i)[0]][0],"error"),(l=(a=o==null?void 0:o.response)==null?void 0:a.data)!=null&&l.message&&Fe(o.response.data.message,"error"),t("toggleLoading")})},toggleDraftSaving({commit:e}){e("toggleDraftSaving")},toggleLoading({commit:e}){e("toggleLoading")}};const lAn={namespaced:!0,state:iAn,getters:rAn,actions:aAn,mutations:sAn},cAn=()=>De.get(Pe("api.category.index")),dAn=e=>De.get(Pe("api.category.index.for_products",{products_type:e})),uAn=e=>De.get(Pe("api.category.index.for_author",{user:e})),hAn=()=>De.get(Pe("api.category.index.flatTree")),fAn=()=>De.get(Pe("api.category.class.subject.index")),mAn=()=>De.get(Pe("api.category.class.subject.flat.index")),Sv={index:cAn,indexForProducts:dAn,indexForAuthor:uAn,indexFlatTree:hAn,indexClassSubject:fAn,indexClassSubjectFlat:mAn},pAn={categories:{class:[],subject:[],theme:[],kind:[],format:[],holiday:[]},categories_flat:{class:[],subject:[],theme:[],kind:[],format:[],holiday:[]},categories_for_products:{class:[],subject:[]},categories_for_author:[],class_subject_categories:[{category:{name:null,children:[]},children:[]}],class_subject_flat_categories:[],loading:!1,loading_flat:!1,loading_class_subject:!1,loading_class_subject_flat:!1,cached:!1,cached_flat:!1,cached_class_subject:!1};let gAn={getCategories:e=>e.categories,getCategoriesFlat:e=>e.categories_flat,getCategoriesForProducts:e=>e.categories_for_products,getCategoriesForAuthor:e=>e.categories_for_author,getCategoriesClassSubject:e=>e.class_subject_categories,getCategoriesClassSubjectFlat:e=>e.class_subject_flat_categories,loading:e=>e.loading,loadingFlat:e=>e.loading_flat,loadingClassSubject:e=>e.loading_class_subject,loadingClassSubjectFlat:e=>e.loading_class_subject_flat},vAn={setCategories(e,t){e.categories=t},setCategoriesFlat(e,t){e.categories_flat=t},setCategoriesForProducts(e,t){e.categories_for_products=t},setCategoriesForAuthor(e,t){e.categories_for_author=t},setCategoriesClassSubject(e,t){e.class_subject_categories=t},setCategoriesClassSubjectFlat(e,t){e.class_subject_flat_categories=t},toggleLoading(e){e.loading=!e.loading},toggleLoadingFlat(e){e.loading_flat=!e.loading_flat},setLoadingFlat(e,t){e.loading_flat=t},setLoadingClassSubject(e,t){e.loading_class_subject=t},setLoadingClassSubjectFlat(e,t){e.loading_class_subject_flat=t},cached(e){e.cached=!0},cachedFlat(e){e.cached_flat=!0},cachedClassSubject(e){e.cached_class_subject=!0}},_An={load({commit:e,dispatch:t,state:n}){if(t("toggleLoading"),n.cached||!n.loading){t("toggleLoading");return}Sv.index().then(o=>{e("setCategories",o.data),t("toggleLoading"),e("cached")}).catch(o=>{var i,r;(r=(i=o==null?void 0:o.response)==null?void 0:i.data)!=null&&r.message&&Fe(o.response.data.message,"error"),t("toggleLoading")})},loadForProducts({commit:e},t){Sv.indexForProducts(t).then(n=>{e("setCategoriesForProducts",n.data)}).catch(n=>{console.log(n.response,"error")})},loadForAuthor({commit:e},{authorId:t}){Sv.indexForAuthor(t).then(n=>{e("setCategoriesForAuthor",Object.values(n.data))}).catch(n=>{Fe(n)})},loadFlatTree({commit:e,state:t}){if(!t.loading_flat)return e("setLoadingFlat",!0),new Promise((n,o)=>{t.cached_flat&&(e("setLoadingFlat",!1),n(t.categories_flat)),Sv.indexFlatTree().then(i=>{e("setCategoriesFlat",i.data),e("setLoadingFlat",!1),e("cachedFlat"),n(i.data)}).catch(i=>{var r,s;(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error"),e("setLoadingFlat",!1),o(i)})})},loadClassSubject({commit:e,state:t}){if(!t.loading_class_subject)return e("setLoadingClassSubject",!0),new Promise((n,o)=>{t.cached_class_subject&&(e("setLoadingClassSubject",!1),n(t.class_subject_categories)),Sv.indexClassSubject().then(i=>{e("setCategoriesClassSubject",i.data.class_subject_categories),e("setLoadingClassSubject",!1),e("cachedClassSubject"),n(i.data)}).catch(i=>{var r,s;(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error"),e("setLoadingClassSubject",!1),o(i)})})},loadClassSubjectFlat({commit:e,state:t}){if(!t.loading_class_subject_flat)return e("setLoadingClassSubjectFlat",!0),new Promise((n,o)=>{Sv.indexClassSubjectFlat().then(i=>{e("setCategoriesClassSubjectFlat",i.data.class_subject_categories_flat),e("setLoadingClassSubjectFlat",!1),n(i.data)}).catch(i=>{var r,s;(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error"),e("setLoadingClassSubjectFlat",!1),o(i)})})},toggleLoading({commit:e}){e("toggleLoading")},toggleLoadingFlat({commit:e}){e("toggleLoadingFlat")}};const yAn={namespaced:!0,state:pAn,getters:gAn,actions:_An,mutations:vAn},bAn=()=>De.get(Pe("api.section.index")),kAn={index:bAn},wAn={sections:[],loading:!1,section:{id:0,title:"",slug:"",products:[],is_special:!1,active:!1}};let $An={getLoading:e=>e.loading,getSections:e=>e.sections,getSection:e=>e.section},CAn={setSections(e,t){e.sections=t},setLoading(e,t){e.loading=t},selectSectionBySlug(e,t){if(!t||t.length===0)return;let n=e.sections.find(o=>o.slug===t);n&&n.id&&(e.section={...n})},resetSectionDetails(e){e.section={id:0,title:"",slug:"",products:[],is_special:!1,active:!1}}},SAn={selectSection({commit:e},t){e("selectSectionBySlug",t)},load({commit:e}){return e("setLoading",!0),new Promise((t,n)=>{kAn.index().then(o=>{e("setSections",o.data.sections),e("setLoading",!1),t(o)}).catch(o=>{var i,r;(r=(i=o==null?void 0:o.response)==null?void 0:i.data)!=null&&r.message&&Fe(o.response.data.message,"error"),e("setLoading",!1),n(o)})})}};const TAn={namespaced:!0,state:wAn,getters:$An,actions:SAn,mutations:CAn},EAn=(e=null,t=null,n=null)=>De.get(Pe("api.downloads",{text:t,category:e,page:n})),HY={index:EAn},IAn={downloadItems:[],cached:!1,loading:!1,loading_more:!1,download_filters:{category:[],text:[]},component_filters:{category:{subject:[],class:[]},text:[]},pagination:{current_page:1,per_page:1,last_page:0,total:0}};let PAn={getDownloadItems:e=>e.downloadItems,getDownloadsWithFilters:e=>({downloadItems:e.downloadItems,download_filters:e.download_filters}),getComponentFilters:e=>e.component_filters,getPagination:e=>e.pagination,loading:e=>e.loading,loadingMore:e=>e.loading_more},AAn={setDownloadItems(e,t){e.downloadItems=t},appendDownloadItems(e,t){e.downloadItems=e.downloadItems.concat(t)},setDownloadFilters(e,t){e.download_filters=t},setComponentFilters(e,t){e.component_filters=t},setPagination(e,t){e.pagination=t},toggleLoading(e){e.loading=!e.loading},setLoading(e,t){e.loading=t},setLoadingMore(e,t){e.loading_more=t},cached(e){e.cached=!0}},DAn={load({commit:e,state:t}){if(!t.loading)return e("setLoading",!0),new Promise((n,o)=>{HY.index(t.download_filters.category,t.download_filters.text,t.pagination.current_page).then(i=>{e("setDownloadItems",i.data.data),e("setPagination",i.data.meta),e("setLoading",!1),n()}).catch(()=>{e("setLoading",!1),o()})})},loadMore({commit:e,state:t}){if(!(t.pagination.current_page+1>t.pagination.last_page))return new Promise((n,o)=>{e("setLoadingMore",!0),HY.index(t.download_filters.category,t.download_filters.text,t.pagination.current_page+1).then(i=>{e("appendDownloadItems",i.data.data),e("setPagination",i.data.meta),e("setLoadingMore",!1),n()}).catch(()=>{e("setLoadingMore",!1),o()})})},updateDownloadFilters({commit:e},{downloadFilters:t}){e("setDownloadFilters",t)},updateComponentFilters({commit:e},{componentFilters:t}){e("setComponentFilters",t)},toggleLoading({commit:e}){e("toggleLoading")}};const xAn={namespaced:!0,state:IAn,getters:PAn,actions:DAn,mutations:AAn},OAn=()=>De.get(Pe("user.dashboard.api.wishlist")),LAn=()=>De.get(Pe("api.wishlist.get")),MAn=()=>De.get(Pe("api.wishlist.to_cart")),NAn=e=>De.post(Pe("api.wishlist.add",{product:e})),RAn=e=>De.post(Pe("user.dashboard.api.wishlist.remove",e)),_8={index:LAn,show:OAn,addAllToCart:MAn,add:NAn,remove:RAn},jAn={products:[],cached:!1,loading:!1};let FAn={getProductIds:e=>e.products.map(t=>t.id),isAdded:(e,t)=>n=>t.getProductIds.includes(n),getPriceBruttoTotal:e=>e.products.reduce((t,n)=>t+n.price,0)},zAn={setProducts(e,t){e.products=t},setLoading(e,t){e.loading=t}},UAn={load({state:e,commit:t,dispatch:n},o=!1){e.loading&&!o||(t("setLoading",!0),_8.index().then(i=>{t("setProducts",i.data),n("navigation/setUserWishlistItemCount",{userWishlistItemCount:Object.keys(i.data).length},{root:!0}),t("setLoading",!1)}).catch(()=>{t("setLoading",!1)}))},add({state:e,commit:t,dispatch:n},{product:o,context:i}){if(!e.loading)return t("setLoading",!0),new Promise((r,s)=>{_8.add(o.id).then(a=>{ai.addToWishlist(o,i),n("load",{},!0),Fe(a.data.message,"success"),r(a)}).catch(a=>{t("setLoading",!1),s(a)})})},remove({state:e,commit:t,dispatch:n},o){if(!e.loading)return t("setLoading",!0),new Promise((i,r)=>{_8.remove(o).then(s=>{n("load",{},!0),Fe(s.data.message,"success"),i(s)}).catch(s=>{t("setLoading",!1),r(s)})})},addAllToCart({state:e,commit:t,dispatch:n}){if(!e.loading)return t("setLoading",!0),new Promise((o,i)=>{_8.addAllToCart().then(r=>{ai.addAllToCartFromWishlist(),n("load",{},!0),Fe(r.data.message,"success"),o(r)}).catch(r=>{t("setLoading",!1),i(r)})})}};const BAn={namespaced:!0,state:jAn,getters:FAn,actions:UAn,mutations:zAn},HAn={id:0,first_name:"",last_name:"",email:"",description:"",web:"",public_alias:"",image:"",image_detail:"",image_thumbnail:"",invoice_company:"",invoice_ico:"",invoice_address:"",invoice_city:"",invoice_psc:"",invoice_dic:"",contractor_details:{contractor_company:null,contractor_address:null,contractor_city:null,contractor_psc:null,contractor_ico:null,contractor_dic:null,contractor_bank_account:null},preferences:{class:[],subject:[]},preferencesIds:{class:[],subject:[]},image_sources:[{name:null,link:null}],has_also_original_images:!1,loading:!0,preferences_loading:!1,image_loading:!1,is_vat_payer:!1,vop_accepted:!1};let VAn={getUserData:e=>({id:e.id,first_name:e.first_name,last_name:e.last_name,email:e.email,description:e.description,web:e.web,public_alias:e.public_alias,image:e.image,image_detail:e.image_detail,image_thumbnail:e.image_thumbnail,is_author:e.is_author,invoice_company:e.invoice_company,invoice_ico:e.invoice_ico,invoice_address:e.invoice_address,invoice_city:e.invoice_city,invoice_psc:e.invoice_psc,invoice_dic:e.invoice_dic,contractor_details:e.contractor_details,preferences:e.preferences,image_sources:e.image_sources,has_also_original_images:e.has_also_original_images,is_vat_payer:e.is_vat_payer,vop_accepted:e.vop_accepted}),getPreferences:e=>e.preferences,getPreferencesClass:e=>e.preferences.class,getPreferencesSubject:e=>e.preferences.subject,getPreferencesIds:e=>e.preferencesIds,getPreferencesIdsClass:e=>e.preferencesIds.class,getPreferencesIdsSubject:e=>e.preferencesIds.subject,loading:e=>e.loading,imageLoading:e=>e.image_loading,preferencesLoading:e=>e.preferences_loading},qAn={updateId(e,t){e.id=t},updateFirstName(e,t){e.first_name=t},updateLastName(e,t){e.last_name=t},updateEmail(e,t){e.email=t},updateDescription(e,t){e.description=t},updateWeb(e,t){e.web=t},updatePublicAlias(e,t){e.public_alias=t},updateImage(e,t){e.image=t},updateImageDetail(e,t){e.image_detail=t},updateImageThumbnail(e,t){e.image_thumbnail=t},updateIsAuthor(e,t){e.is_author=t},updateInvoiceCompany(e,t){e.invoice_company=t},updateInvoiceIco(e,t){e.invoice_ico=t},updateInvoiceAddress(e,t){e.invoice_address=t},updateInvoiceCity(e,t){e.invoice_city=t},updateInvoicePsc(e,t){e.invoice_psc=t},updateInvoiceDic(e,t){e.invoice_dic=t},updateContractorDetails(e,t){t===null?e.contractor_details={contractor_company:null,contractor_address:null,contractor_city:null,contractor_psc:null,contractor_ico:null,contractor_dic:null,contractor_bank_account:null}:e.contractor_details=t},updateImageSources(e,t){e.image_sources=t},updateHasAlsoOriginalImages(e,t){e.has_also_original_images=t},updateIsVatPayer(e,t){e.is_vat_payer=t},updateVopAccepted(e,t){e.vop_accepted=t},setLoading(e,t){e.loading=t},toggleLoading(e){e.loading=!e.loading},toggleImageLoading(e){e.image_loading=!e.image_loading},setPreferencesLoading(e,t){e.preferences_loading=t},setPreferences(e,t){e.preferences=t},setPreferencesIds(e,t){e.preferencesIds=t},setPreferencesClass(e,t){e.preferences.class=t},setPreferencesSubject(e,t){e.preferences.subject=t},setPreferencesIdsClass(e,t){e.preferencesIds.class=t},setPreferencesIdsSubject(e,t){e.preferencesIds.subject=t}},YAn={load({commit:e},{id:t}){return e("updateId",t),e("setLoading",!0),new Promise((n,o)=>{Md.show(t).then(i=>{let r=i.data.data;e("updateFirstName",r.first_name),e("updateLastName",r.last_name),e("updateEmail",r.email),e("updateDescription",r.description),e("updateWeb",r.web),e("updatePublicAlias",r.public_alias),e("updateImage",r.image),e("updateImageThumbnail",r.image_thumbnail),e("updateImageDetail",r.image_detail),e("updateIsAuthor",r.is_author),e("updateInvoiceCompany",r.invoice_company),e("updateInvoiceIco",r.invoice_ico),e("updateInvoiceAddress",r.invoice_address),e("updateInvoiceCity",r.invoice_city),e("updateInvoicePsc",r.invoice_psc),e("updateInvoiceDic",r.invoice_dic),e("updateContractorDetails",r.contractor_details),e("updateImageSources",r.image_sources),e("updateHasAlsoOriginalImages",r.has_also_original_images),e("updateIsVatPayer",r.is_vat_payer),e("updateVopAccepted",r.vop_accepted),e("setLoading",!1),n(i)}).catch(i=>{var r,s;(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error"),e("setLoading",!1),o(i)})})},reloadProfileImage({commit:e,state:t}){return e("toggleLoading"),e("toggleImageLoading"),Md.show(t.id).then(n=>{let o=n.data.data;e("updateImage",o.image),e("updateImageThumbnail",o.image_thumbnail),e("updateImageDetail",o.image_detail),e("toggleLoading"),e("toggleImageLoading")}).catch(n=>{var o,i;(i=(o=n==null?void 0:n.response)==null?void 0:o.data)!=null&&i.message&&Fe(n.response.data.message,"error"),e("toggleLoading"),e("toggleImageLoading")})},updateFirstName({commit:e},{firstName:t}){e("updateFirstName",t)},updateLastName({commit:e},{lastName:t}){e("updateLastName",t)},updateEmail({commit:e},{email:t}){e("updateEmail",t)},updateDescription({commit:e},{description:t}){e("updateDescription",t)},updateWeb({commit:e},{web:t}){e("updateWeb",t)},updatePublicAlias({commit:e},{publicAlias:t}){e("updatePublicAlias",t)},updateImage({commit:e},{image:t}){e("updateImage",t)},updateInvoiceCompany({commit:e},{invoiceCompany:t}){e("updateInvoiceCompany",t)},updateInvoiceIco({commit:e},{invoiceIco:t}){e("updateInvoiceIco",t)},updateInvoiceAddress({commit:e},{invoiceAddress:t}){e("updateInvoiceAddress",t)},updateInvoiceCity({commit:e},{invoiceCity:t}){e("updateInvoiceCity",t)},updateInvoicePsc({commit:e},{invoicePsc:t}){e("updateInvoicePsc",t)},updateInvoiceDic({commit:e},{invoiceDic:t}){e("updateInvoiceDic",t)},updateContractorDetails({commit:e},{contractorDetails:t}){e("updateContractorDetails",t)},updateImageSources({commit:e},{imageSources:t}){e("updateImageSources",t)},updateHasAlsoOriginalImages({commit:e},{hasAlsoOriginalImages:t}){e("updateHasAlsoOriginalImages",t)},updateIsVatPayer({commit:e},{isVatPayer:t}){e("updateIsVatPayer",t)},updateVopAccepted({commit:e},{vopAccepted:t}){e("updateVopAccepted",t)},update({getters:e,dispatch:t}){t("toggleLoading");let n=e.getUserData;return new Promise((o,i)=>{Md.update(n.id,n).then(r=>{t("toggleLoading"),o(r)}).catch(r=>{t("toggleLoading"),i(r)})})},becomeAuthor({getters:e,dispatch:t}){t("toggleLoading");let n=e.getUserData;return new Promise((o,i)=>{Md.becomeAuthor(n.id,n).then(r=>{t("toggleLoading"),o(r)}).catch(r=>{t("toggleLoading"),i(r)})})},toggleLoading({commit:e}){e("toggleLoading")},toggleImageLoading({commit:e}){e("toggleImageLoading")},loadPreferences({commit:e}){return e("setPreferencesLoading",!0),new Promise((t,n)=>{Md.preferences().then(o=>{e("setPreferences",o.data),e("setPreferencesIds",{class:o.data.class.map(i=>i.id),subject:o.data.subject.map(i=>i.id)}),e("setPreferencesLoading",!1),t(o)}).catch(o=>{e("setPreferencesLoading",!1),!(o.response&&o.response.status===401)&&n(o)})})},updatePreferences({state:e,getters:t,commit:n,dispatch:o},{userId:i}){if(e.preferencesLoading)return;n("setPreferencesLoading",!0);let r=t.getPreferencesIds;return new Promise((s,a)=>{Md.updatePreferences(i,r).then(l=>{n("setPreferencesLoading",!1),o("loadPreferences"),s(l)}).catch(l=>{n("setPreferencesLoading",!1),a(l)})})}};const WAn={namespaced:!0,state:HAn,getters:VAn,actions:YAn,mutations:qAn},GAn=()=>De.get(Pe("api.infobox.list")),ZAn={list:GAn},KAn={loading:!1,list:[]};let JAn={loading:e=>e.loading,getList:e=>e.list},XAn={setShow(e,t,n){e.list.forEach(o=>{o.id===t&&(o.show=n)})},setLoading(e,t){e.loading=t},setList(e,t){t.forEach(n=>{window.$cookies.get("ib_"+n.hash)===String(n.id)?n.show=!1:n.show=!0}),e.list=t}},QAn={loadList({commit:e}){return e("setLoading",!0),ZAn.list().then(t=>{e("setList",t.data.data),e("setLoading",!1)}).catch(()=>{e("setLoading",!1)})}};const eDn={namespaced:!0,state:KAn,getters:JAn,actions:QAn,mutations:XAn},tDn=(e,t,n,o=null)=>De.post(Pe("api.voucher.order.place"),{type:e,email:t,instrument:n,swift:o}),nDn={order:tDn},oDn={data:{},method:null,type:null,email:null,showPaymentOptions:!1,loading:!1};let iDn={getVoucherData:e=>({type:e.type,email:e.email,method:e.method})},rDn={setMethod(e,t){e.method=t},setData(e,t){e.data=t},setType(e,t){e.type=t},setEmail(e,t){e.email=t},setShowPaymentOptions(e,t){e.showPaymentOptions=t},toggleLoading(e){e.loading=!e.loading}},sDn={select({commit:e},{type:t}){e("setType",t)},updateEmail({commit:e},{email:t}){e("setEmail",t)},updateShowPaymentOptions({commit:e},{showPaymentOptions:t}){e("setShowPaymentOptions",t)},toggleLoading({commit:e}){e("toggleLoading")},clearData({commit:e}){e("setType",null),e("setEmail",null),e("setMethod",null),e("setData",{}),e("setShowPaymentOptions",!1)},order({commit:e,rootState:t,state:n}){return e("toggleLoading"),new Promise((o,i)=>{nDn.order(n.type,n.email,t.payment.instrument,t.payment.swift).then(r=>{e("setData",r.data),e("setMethod",r.data.method),e("toggleLoading"),o(r)}).catch(r=>{e("toggleLoading"),i(r)})})}};const aDn={namespaced:!0,state:oDn,getters:iDn,actions:sDn,mutations:rDn},lDn={items:[],first_ever_invoice_date:null,loading:!1};let cDn={getInvoices(e){return e.items},getFirstEverInvoiceDate(e){return e.first_ever_invoice_date},isLoading(e){return e.loading}},dDn={setInvoices(e,t){e.items=t},setFirstEverInvoiceDate(e,t){e.first_ever_invoice_date=t},toggleLoading(e){e.loading=!e.loading}},uDn={load({commit:e,dispatch:t}){return t("toggleLoading"),new Promise((n,o)=>{rA.index().then(i=>{e("setInvoices",i.data.data),t("toggleLoading"),n(i)}).catch(i=>{t("toggleLoading"),o(i)})})},loadYear({commit:e,dispatch:t},{year:n}){return t("toggleLoading"),new Promise((o,i)=>{rA.indexYear(n).then(r=>{e("setInvoices",r.data.invoices),e("setFirstEverInvoiceDate",r.data.first_ever_invoice_date),t("toggleLoading"),o(r)}).catch(r=>{t("toggleLoading"),i(r)})})},toggleLoading({commit:e}){e("toggleLoading")}};const hDn={namespaced:!0,state:lDn,getters:cDn,actions:uDn,mutations:dDn},fDn=e=>De.get(Pe("api.product.show",e)),mDn=()=>De.get(Pe("api.products.404")),pDn=e=>De.get(Pe("api.product.preview",{product:e})),gDn=e=>De.delete(Pe("product.image.destroy",e)),vDn=e=>De.get(Pe("product.api.images",e)),_Dn=e=>De.get(Pe("api.product.rating.load",{product:e})),yDn=(e,t)=>De.patch(Pe("api.product.destroy",e),{deleted_reason:t}),Og={show:fDn,preview:pDn,imageDelete:gDn,images:vDn,ratings:_Dn,deletee:yDn,index404:mDn},bDn=()=>({product:void 0,loading:!1}),kDn={product(e){return e.product},loading(e){return e.loading}},wDn={async load({commit:e},t){return e("loading",!0),new Promise((n,o)=>{Og.preview(t).then(i=>{const r=i&&i.data&&i.data.data;e("loaded",r),e("loading",!1)}).catch(i=>{e("loading",!1),o(i)})})},clear({commit:e}){e("clear")}},$Dn={loaded(e,t){e.product=t},clear(e){e.product=void 0},loading(e,t){e.loading=t}},CDn={namespaced:!0,state:bDn,getters:kDn,actions:wDn,mutations:$Dn};var jce=(e=>(e.original_idea="original_idea",e.beautifully_made="beautifully_made",e.children_love_it="children_love_it",e.no_preparation_needed="no_preparation_needed",e.good_value="good_value",e.contains_practical_tips="contains_practical_tips",e.use_very_ofter="use_very_ofter",e))(jce||{});class Fce{constructor(t,n,o){this.id=t,this.product_id=n,this.rating=o}}const SDn=()=>De.get(Pe("api.product.rating.index")),TDn=(e,t)=>De.post(Pe("api.product.rating.store",e),{rating:t}),EDn=(e,t)=>De.post(e,{rating:t}),ZT={index:SDn,store:TDn,storeWithSignature:EDn},IDn=()=>({productRatings:[],productId:0,currentUserRatings:[],signedRoute:null,loading:!1}),PDn={rating(e){return e.productRatings},ratings(e){return e.currentUserRatings},loading(e){return e.loading}},ADn={async load({commit:e}){return e("loading",!0),new Promise((t,n)=>{ZT.index().then(o=>{e("loading",!1);let i=o.data.data.map(r=>new Fce(r.id,r.product_id,r.rating));e("updateCurrentUserRatings",i),t(o)}).catch(o=>{e("loading",!1),n(o)})})},async store({commit:e,state:t}){e("loading",!0);let n;return t.productRatings.length<1?n=[]:n=t.productRatings.map(o=>o.rating),new Promise((o,i)=>{let r;t.signedRoute!==null?r=ZT.storeWithSignature(t.signedRoute,n):r=ZT.store(t.productId,n),r.then(s=>{e("loading",!1),o(s)}).catch(s=>{e("loading",!1),i(s)})})},clear({commit:e}){e("clear")},updateRating({commit:e},t){e("updateRating",t)},updateProductId({commit:e},t){e("updateProductId",t)},updateSignedRoute({commit:e},t){e("updateSignedRoute",t)}},DDn={updateCurrentUserRatings(e,t){e.currentUserRatings=t},updateProductId(e,t){e.productId=t},updateRating(e,t){e.productRatings.some(n=>n.rating===t)?e.productRatings=e.productRatings.filter(n=>n.rating!==t):e.productRatings.push(new Fce(0,e.productId,t))},updateSignedRoute(e,t){e.signedRoute=t},clear(e){e.productRatings=[]},loading(e,t){e.loading=t}},xDn={namespaced:!0,state:IDn,getters:PDn,actions:ADn,mutations:DDn},ODn=(e=null)=>De.get(Pe("user.dashboard.api.messages",e)),LDn=e=>De.post(Pe("user.dashboard.api.messages.send"),{...e}),VY={load:ODn,sendMessage:LDn},MDn={messages:[],new_messages:[],messages_count:-1,loading:!1};let NDn={getMessages:e=>e.messages,getMessagesCount:e=>e.messages_count,getNewMessages:e=>e.new_messages,loading:e=>e.loading},RDn={setMessages(e,t){e.messages=t},pushMessages(e,t){e.messages.push(...t)},setAllMessagesSeen(e){e.messages.forEach(t=>{t.is_seen=!0})},setMessagesCount(e,t){e.messages_count=t},setNewMessages(e,t){e.new_messages=t},toggleLoading(e){e.loading=!e.loading}},jDn={load({commit:e,dispatch:t},{showAll:n=!1}){return t("toggleLoading"),new Promise((o,i)=>{let r=n?{showAll:!0}:{};VY.load(r).then(s=>{e("setMessages",s.data.messages),e("setMessagesCount",s.data.messages_count),e("setNewMessages",[]),t("auth/updateUnreadMessagesCount",{unreadMessagesCount:0},{root:!0}),t("toggleLoading"),o(s)}).catch(s=>{t("toggleLoading"),i(s)})})},sendMessage({commit:e,dispatch:t},{messageData:n}){return t("toggleLoading"),new Promise((o,i)=>{VY.sendMessage(n).then(r=>{Fe(r.data.message,"success"),e("pushMessages",r.data.new_messages),e("setAllMessagesSeen"),e("setNewMessages",[]),t("toggleLoading"),o(r)}).catch(r=>{var a,l,d,u;(l=(a=r==null?void 0:r.response)==null?void 0:a.data)!=null&&l.message&&Fe(r.response.data.message,"error");let s=(u=(d=r==null?void 0:r.response)==null?void 0:d.data)==null?void 0:u.new_messages;s&&(e("pushMessages",s),e("setNewMessages",s.map(f=>f.id))),t("toggleLoading"),i(r)})})},updateConversations({commit:e},{conversations:t}){e("setConversations",t)},updateQuery({commit:e},{query:t}){e("setQuery",t)},updatePage({commit:e},{page:t}){e("setPage",t)},toggleLoading({commit:e}){e("toggleLoading")}};const FDn={namespaced:!0,state:MDn,getters:NDn,actions:jDn,mutations:RDn},gl={isOnHomepage:!1,alreadyTriggered:!1},zDn={setIsOnHomepage({commit:e}){e("setIsOnHomepage")},clickFilter({commit:e}){!gl.isOnHomepage||gl.alreadyTriggered||e("click","filter")},clickCta({commit:e}){!gl.isOnHomepage||gl.alreadyTriggered||e("click","cta")},clickProduct({commit:e}){!gl.isOnHomepage||gl.alreadyTriggered||e("click","product")},clickNavbar({commit:e}){!gl.isOnHomepage||gl.alreadyTriggered||e("click","navbar")},clickCategory({commit:e}){!gl.isOnHomepage||gl.alreadyTriggered||e("click","category")},clickBlog({commit:e}){!gl.isOnHomepage||gl.alreadyTriggered||e("click","blog")}},UDn={setIsOnHomepage(){gl.isOnHomepage=!0},click(e,t){e.alreadyTriggered=!0,ai.homepageFirstVisit(t)}},BDn={},HDn={namespaced:!0,actions:zDn,state:gl,getters:BDn,mutations:UDn},VDn={isUserNavOpen:!1,isAdminNavOpen:!1,isAuthorNavOpen:!1,user:{id:null,cart_items_count:0,wishlist_items_count:0,credit:0,is_admin:!1,first_name:null,last_name:null,school:{long_name:null},employee:{budget:0}}};let qDn={getUserInfo:e=>e.user},YDn={toggleNav(e,t){switch(t){case"user":e.isUserNavOpen=!e.isUserNavOpen;break;case"author":e.isAuthorNavOpen=!e.isAuthorNavOpen;break;case"admin":e.isAdminNavOpen=!e.isAdminNavOpen;break;default:return e.isUserNavOpen}},setUserInfo(e,t){e.user=t},setUserCartItemCount(e,t){e.user.cart_items_count=t},setUserWishlistItemCount(e,t){e.user.wishlist_items_count=t}},WDn={setUserInfo({commit:e},{userInfo:t}){e("setUserInfo",t)},setUserCartItemCount({commit:e},{userCartItemCount:t}){e("setUserCartItemCount",t)},setUserWishlistItemCount({commit:e},{userWishlistItemCount:t}){e("setUserWishlistItemCount",t)}};const GDn={namespaced:!0,state:VDn,getters:qDn,actions:WDn,mutations:YDn};let ZDn={isChatOpen:!1},KDn={toggleChatOpen(e){e.isChatOpen=!e.isChatOpen},setChatOpen(e,t){e.isChatOpen=t}},JDn={getChatOpenStatus:e=>e.isChatOpen};const XDn={namespaced:!0,state:ZDn,getters:JDn,mutations:KDn},QDn=e=>De.get(Pe("api.product.index",e)),exn=()=>De.get(Pe("api.product.recommended")),zce={index:QDn,recommended:exn},txn={products:[],products_alternative:[],timestamp:0,authors_count:0,pagination:{current_page:1,per_page:20,last_page:0,total:0,authors_count:0},loading:!1};let nxn={loading:e=>e.loading,products:e=>e.products,productsAlternative:e=>e.products_alternative,pagination:e=>e.pagination,timestamp:e=>e.timestamp,authorsCount:e=>e.authors_count},oxn={setPagination(e,t){e.pagination=t},setProducts(e,t){e.products=t},setProductsAlternative(e,t){e.products_alternative=t},setTimestamp(e,t){e.timestamp=t},setAuthorsCount(e,t){e.authors_count=t},toggleLoading(e){e.loading=!e.loading},setLoading(e,t){e.loading=t}},ixn={loadProducts({commit:e,state:t},n){return e("setLoading",!0),new Promise((o,i)=>{zce.index({...n,timestamp:Date.now()}).then(r=>{t.timestamp<=r.data.meta.timestamp&&(e("setProducts",r.data.data),e("setProductsAlternative",r.data.products_alternative),e("setAuthorsCount",r.data.meta.authors_count),e("setPagination",r.data.meta),e("setTimestamp",r.data.meta.timestamp),e("setLoading",!1)),o(r)}).catch(r=>{i(r)})})}};const rxn={namespaced:!0,state:txn,getters:nxn,actions:ixn,mutations:oxn},sxn={loading:!1,loading_most_read:!1,loading_more:!1,loading_themes:!1,themes:[],posts:[],mostReadPosts:[],pagination:{current_page:1,per_page:10,last_page:0,total:0},filters:{text:null,theme:null}};let axn={posts:e=>e.posts,mostReadPosts:e=>e.mostReadPosts,pagination:e=>e.pagination,themes:e=>e.themes,filters:e=>e.filters,loading:e=>e.loading,loadingMore:e=>e.loading_more,loadingThemes:e=>e.loading_themes},lxn={setPosts(e,t){e.posts=t},appendPosts(e,t){e.posts=e.posts.concat(t)},setMostReadPosts(e,t){e.mostReadPosts=t},setThemes(e,t){e.themes=t},setPaginationCurrentPage(e,t){e.pagination.current_page=t},setPagination(e,t){e.pagination=t},setLoading(e,t){e.loading=t},setLoadingMore(e,t){e.loading_more=t},setLoadingMostRead(e,t){e.loading_most_read=t},setLoadingThemes(e,t){e.loading_themes=t},setFilters(e,t){e.filters=t}},cxn={index({commit:e,state:t}){if(!(t.loading||t.loading_more))return e("setLoading",!0),new Promise((n,o)=>{W0.index(t.pagination.current_page,t.filters).then(i=>{e("setPosts",i.data.data),e("setPagination",i.data.meta),e("setLoading",!1),n(i)}).catch(i=>{e("setLoading",!1),o(i)})})},mostRead({commit:e,state:t}){if(!t.loading_most_read)return e("setLoadingMostRead",!0),new Promise((n,o)=>{W0.mostRead().then(i=>{e("setMostReadPosts",i.data.data),e("setLoadingMostRead",!1),n(i)}).catch(i=>{e("setLoadingMostRead",!1),o(i)})})},loadThemes({commit:e,state:t}){if(!t.loading_themes)return e("setLoadingThemes",!0),new Promise((n,o)=>{W0.themes().then(i=>{e("setThemes",i.data.data),e("setLoadingThemes",!1),n(i)}).catch(i=>{e("setLoadingThemes",!1),o(i)})})},setFilters({commit:e,dispatch:t},n){e("setFilters",n),e("setPagination",{current_page:1,per_page:10,last_page:0,total:0}),t("index")}};const dxn={namespaced:!0,state:sxn,getters:axn,actions:cxn,mutations:lxn},uxn=()=>De.get(Pe("api.webinar.index")),hxn=e=>De.get(Pe("api.webinar.detail",{slug:e})),qY={index:uxn,detail:hxn},fxn={loading:!1,next_webinar:null,planned_webinars:[],past_webinars:[],detail:{},detail_loading:!1,cached:!1,scrollPosition:0};let mxn={getNextWebinar:e=>e.next_webinar,getPlannedWebinars:e=>e.planned_webinars,getPastWebinars:e=>e.past_webinars,getWebinarDetail:e=>e.detail,getDetailLoading:e=>e.detail_loading,getLoading:e=>e.loading,getScrollPosition:e=>e.scrollPosition},pxn={setNextWebinar(e,t){e.next_webinar=t},setPlannedWebinars(e,t){e.planned_webinars=t},setPastWebinars(e,t){e.past_webinars=t},setWebinarDetail(e,t){e.detail=t},setLoading(e,t){e.loading=t},setDetailLoading(e,t){e.detail_loading=t}},gxn={index({commit:e,state:t}){if(!(t.loading||t.cached))return e("setLoading",!0),new Promise((n,o)=>{qY.index().then(i=>{e("setNextWebinar",i.data.next_webinar),e("setPlannedWebinars",i.data.planned_webinars),e("setPastWebinars",i.data.past_webinars),e("setLoading",!1),t.cached=!0,n(i)}).catch(i=>{e("setLoading",!1),o(i)})})},detail({commit:e,state:t},{slug:n}){if(!t.detail_loading)return e("setDetailLoading",!0),new Promise((o,i)=>{qY.detail(n).then(r=>{e("setWebinarDetail",r.data.data),e("setDetailLoading",!1),o(r)}).catch(r=>{e("setDetailLoading",!1),i(r)})})},saveScrollToPosition({state:e},{position:t}){e.scrollPosition=t}};const vxn={namespaced:!0,state:fxn,getters:mxn,actions:gxn,mutations:pxn},_xn=e=>De.get(Pe("api.search",{search:e})),yxn=()=>De.get(Pe("api.search.default")),bxn={search:_xn,defaults:yxn},Uce={autocomplete:[],topItems:[],logs:[],trendingQueries:[],defaults:[],loadingAutocomplete:!1,loadingTopItems:!1,loadingTrendingQueries:!1,loadingDefaults:!1,value:null,isOpen:!1,unavailable:!1};let Bce={autocompleteFiltered(e){return e.autocomplete.filter(t=>t.items&&t.items.length>0)},autocompleteItems(e){return Bce.autocompleteFiltered(e).flatMap(t=>t.items||[])},trendingQueriesItems(e){return e.trendingQueries.flatMap(t=>t.title||[])}},kxn={setAutocomplete(e,t){e.autocomplete=t},setTopItems(e,t){e.topItems=t},setTrendingQueries(e,t){e.trendingQueries=t},setDefaults(e,t){e.defaults=t},setLoadingAutocomplete(e,t){e.loadingAutocomplete=t},setLoadingTopItems(e,t){e.loadingTopItems=t},setLoadingTrendingQueries(e,t){e.loadingTrendingQueries=t},setLoadingDefaults(e,t){e.loadingDefaults=t},setValue(e,t){e.value=t},setIsOpen(e,t){typeof window<"u"&&window.eventBus&&(t?window.eventBus.emit("navigation-search-show"):window.eventBus.emit("navigation-search-hide")),e.isOpen=t},setLogs(e,t){e.logs=t},setUnavailable(e,t){e.unavailable=t}},wxn={autocomplete({state:e,commit:t},n){if(e.value)return t("setLoadingAutocomplete",!0),new Promise((o,i)=>{p4.autocomplete(e.value,n).then(r=>{t("setUnavailable",!1),t("setAutocomplete",r.hits),t("setLoadingAutocomplete",!1),o(r)}).catch(r=>{t("setLoadingAutocomplete",!1),t("setUnavailable",!0),i(r)})})},topItems({state:e,commit:t}){if(!e.loadingTopItems)return t("setLoadingTopItems",!0),new Promise((n,o)=>{p4.topItems().then(i=>{t("setUnavailable",!1),t("setTopItems",i.hits),t("setLoadingTopItems",!1),n(i)}).catch(i=>{t("setLoadingTopItems",!1),o(i)})})},trendingQueries({commit:e}){if(!Uce.loadingTrendingQueries)return e("setLoadingTrendingQueries",!0),new Promise((t,n)=>{p4.trendingQueries().then(o=>{e("setUnavailable",!1),e("setTrendingQueries",o),e("setLoadingTrendingQueries",!1),t(o)}).catch(o=>{e("setLoadingTrendingQueries",!1),n(o)})})},defaults({state:e,commit:t}){if(!e.loadingDefaults)return t("setLoadingDefaults",!0),new Promise((n,o)=>{bxn.defaults(e.value).then(i=>{t("setDefaults",i.data.results[0].items),t("setLoadingDefaults",!1),n(i)}).catch(i=>{t("setLoadingDefaults",!1),o(i)})})},logs({commit:e},t){let n=t.getStorageSync("search_log")??[];e("setLogs",n.slice(0,3))}};const $xn={namespaced:!0,state:Uce,getters:Bce,mutations:kxn,actions:wxn},Cxn={loading:!1,detail:{id:null,yesterday_sells:0,sells:0,only_on_ucitelnice:!1,author_discount:null}};let Sxn={getLoading:e=>e.loading,getDetail:e=>e.detail,getProfessionalFocus:e=>e.detail.professional_focus},Txn={setLoading(e,t){e.loading=t},setDetail(e,t){e.detail=t},setProfessionalFocus(e,t){e.detail.professional_focus=t}},Exn={show({commit:e},t=void 0){return e("setLoading",!0),new Promise((n,o)=>{Ju.show(t).then(i=>{e("setDetail",i.data.data),e("setLoading",!1),n(i)}).catch(i=>{e("setLoading",!1),o(i)})})},update({commit:e},{id:t,author:n}){return e("setLoading",!0),new Promise((o,i)=>{Ju.update(t,n).then(r=>{Fe(r.data.message,"success"),e("setLoading",!1),o(r)}).catch(r=>{Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})},updateOnlyOnUcitelnice({commit:e,state:t},{id:n,onlyOnUcitelnice:o}){return e("setLoading",!0),t.detail.only_on_ucitelnice=o,new Promise((i,r)=>{Ju.updateOnlyOnUcitelnice(n,{only_on_ucitelnice:o}).then(s=>{Fe(s.data.message,"success"),t.detail.only_on_ucitelnice=s.data.only_on_ucitelnice,t.detail.products_only_on_ucitelnice_count=s.data.products_only_on_ucitelnice_count,e("setLoading",!1),i(s)}).catch(s=>{Fe(s.response.data.message,"error"),e("setLoading",!1),r(s)})})}};const Ixn={namespaced:!0,state:Cxn,getters:Sxn,actions:Exn,mutations:Txn},Pxn=(e,t)=>De.get(Pe("api.author.notification.index",{page:e,type:t})),Axn=e=>De.post(Pe("api.author.notification.show",{notification:e})),Dxn=e=>De.get(Pe("api.author.achievement.show",{achievement:e})),KT={index:Pxn,show:Axn,showAchievement:Dxn},xxn={list:[],detail:{id:null,type:null,title:null,created_at:null,published_at:null,content:null,share_image_urls:{}},achievement_detail:{id:null},loading:!1,loadingMore:!1,paginationTemplate:{current_page:1,per_page:1,last_page:0,total:0},paginations:{},lists:{},savedScrollPositions:{},lastOpenedTab:null};let Oxn={getPaginationByType:e=>t=>e.paginations[t]?e.paginations[t]:e.paginationTemplate,getListByType:e=>t=>e.lists[t]?e.lists[t]:[],getSavedScrollPosition:e=>t=>e.savedScrollPositions[t]?e.savedScrollPositions[t]:null},Lxn={setDetail(e,t){e.detail=t},setAchievementDetail(e,t){e.achievement_detail=t},setList(e,{list:t,type:n}){e.lists[n]=t},setPagination(e,{pagination:t,type:n}){e.paginations[n]=t},resetDetail(e){e.detail={id:null,type:null,title:null,created_at:null,published_at:null,content:null}},resetAchievementDetail(e){e.achievement_detail={id:null}},setLoading(e,t){e.loading=t},setLoadingMore(e,t){e.loadingMore=t}},Mxn={index({commit:e,state:t,getters:n},{type:o,loadMore:i=!0}){let r=n.getPaginationByType(o).current_page;if(i){if(r+1>n.getPaginationByType(o).last_page)return;r+=1,e("setLoadingMore",!0)}else{if(n.getListByType(o).length>0)return;e("setLoading",!0)}return new Promise((s,a)=>{KT.index(r,o).then(l=>{if(e("setPagination",{state:t,pagination:l.data.meta,type:o}),i){let d=n.getListByType(o).concat(l.data.data);e("setList",{state:t,list:d,type:o}),e("setLoadingMore",!1)}else e("setList",{state:t,list:l.data.data,type:o}),e("setLoading",!1);s(l)}).catch(l=>{e(i?"setLoadingMore":"setLoading",!1),a(l)})})},show({state:e,commit:t},n){if(e.detail.id!==n)return t("resetDetail"),t("setLoading",!0),new Promise((o,i)=>{KT.show(n).then(r=>{t("setDetail",r.data.detail),t("setLoading",!1),o(r)}).catch(r=>{t("setLoading",!1),i(r)})})},showAchievement({state:e,commit:t},n){if(e.achievement_detail.id!==n)return t("resetAchievementDetail"),t("setLoading",!0),new Promise((o,i)=>{KT.showAchievement(n).then(r=>{t("setAchievementDetail",r.data.data),t("setLoading",!1),o(r)}).catch(r=>{t("setLoading",!1),i(r)})})},clearAchievementDetail({commit:e}){e("resetAchievementDetail")},saveScrollToPosition({state:e},{position:t,type:n}){e.savedScrollPositions[n]=t},setLastOpenedTab({state:e},t){e.lastOpenedTab=t},resetListsAndPaginations({state:e}){e.lists={},e.paginations={}}};const Nxn={namespaced:!0,state:xxn,getters:Oxn,actions:Mxn,mutations:Lxn},Rxn=()=>De.get(Pe("dashboard.api.promo.product.show")),jxn=e=>De.get(Pe("dashboard.api.promo.product.downloadsCountIncrease",{promoProduct:e})),Fxn=e=>De.post(Pe("dashboard.api.promo.product.update"),e),zxn=()=>De.delete(Pe("dashboard.api.promo.product.delete")),y8={show:Rxn,downloadsCountIncrease:jxn,update:Fxn,deletee:zxn},Uxn={loading:!1,detail:{title:"",description:"",file_name:"",categories:[],download_url:"",img_path:"",share_link:""}};let Bxn={getLoading:e=>e.loading,getDetail:e=>e.detail},Hxn={setLoading(e,t){e.loading=t},setDetail(e,t){e.detail=t},resetDetail(e){e.detail={title:"",description:"",file_name:"",categories:[],download_url:"",img_path:"",share_link:""}},setOnlyUploadedProps(e,t){e.detail.file_name=t.file_name,e.detail.download_url=t.download_url,e.detail.img_path=t.img_path}},Vxn={show({commit:e},t=!1){return e("setLoading",!0),new Promise((n,o)=>{y8.show().then(i=>{!i.data.data||i.data.data.length<1?e("resetDetail"):e(t?"setOnlyUploadedProps":"setDetail",i.data.data),e("setLoading",!1),n(i)}).catch(i=>{e("setLoading",!1),o(i)})})},downloadsCountIncrease(e,t){return new Promise((n,o)=>{y8.downloadsCountIncrease(t).then(i=>{n(i)}).catch(i=>{o(i)})})},update({commit:e,dispatch:t},n){return e("setLoading",!0),new Promise((o,i)=>{y8.update(n).then(r=>{e("setLoading",!1),Fe(r.data.message,"success"),t("show"),o(r)}).catch(r=>{e("setLoading",!1),Fe(r.response.data.message,"error"),i(r)})})},delete({commit:e,dispatch:t}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((n,o)=>{y8.deletee().then(i=>{t("sidebar/close",null,{root:!0}),Fe(i.data.message,"success"),t("show"),n(i)}).catch(i=>{e("sidebar/setLoading",!1,{root:!0}),Fe(i.response.data.message,"error"),o(i)})})}};const qxn={namespaced:!0,state:Uxn,getters:Bxn,actions:Vxn,mutations:Hxn},Yxn=e=>De.get(Pe("api.author.product_group.index",e)),Wxn=e=>De.post(Pe("api.author.product_group.show"),e),Gxn=()=>De.get(Pe("api.author.product_group.showOrCreate")),Zxn=(e,t)=>De.patch(Pe("api.author.product_group.update",{group:e}),t),Kxn=e=>De.patch(Pe("api.author.product_group.reorder"),{ids:e}),Jxn=e=>De.patch(Pe("api.author.product_group.hiddenToggle",{group:e})),Xxn=e=>De.delete(Pe("api.author.product_group.delete",{group:e})),Qxn=e=>De.get(Pe("api.author.product_group.products",{...e})),eOn=(e,t)=>De.post(Pe("api.author.product_group.productsAdded",{group:e,...t})),Uh={index:Yxn,show:Wxn,showOrCreate:Gxn,update:Zxn,reorder:Kxn,hiddenToggle:Jxn,deletee:Xxn,products:Qxn,productsAdded:eOn},tOn={loading:!1,shown:[],hidden:[],detailLoading:!1,detail:{title:null,cover_img:null,product_order_by:null,products:[]},productsLoading:!0,productsFilters:{text:"",perPage:10,page:1,available:!0},products:{data:[]},productsAddedFilters:{text:"",perPage:10,page:1,available:!0},productsAdded:{data:[]}};let nOn={getLoading:e=>e.loading,getShown:e=>e.shown,getHidden:e=>e.hidden,getDetailLoading:e=>e.detailLoading,getDetail:e=>e.detail,getDetailProducts:e=>e.detail.products,getProductsSearch:e=>e.productsFilters.text,getProductsAddedSearch:e=>e.productsAddedFilters.text,getProductsLoading:e=>e.productsLoading,getProducts:e=>e.products,getProductsAdded:e=>e.productsAdded},oOn={setLoading(e,t){e.loading=t},setShown(e,t){e.shown=t},setHidden(e,t){e.hidden=t},setDetailLoading(e,t){e.detailLoading=t},setDetail(e,t){e.detail=t},setDetailCoverImg(e,t){e.detail.cover_img=t},resetDetail(e){e.detail={title:null,cover_img:null,products:[],product_order_by:null}},setDetailProducts(e,t){e.detail.products=t},setProductsLoading(e,t){e.productsLoading=t},setProductsSearch(e,t){e.productsFilters.text=t},setProductsPage(e,t){e.productsFilters.page=t},setProductsAddedSearch(e,t){e.productsAddedFilters.text=t},setProductsAddedPage(e,t){e.productsAddedFilters.page=t},setProducts(e,t){e.products=t},setProductsAdded(e,t){e.productsAdded=t},resetProducts(e){e.productsFilters={text:"",perPage:10,page:1,available:!0},e.products={data:[]}},resetProductsAdded(e){e.productsAddedFilters={text:"",perPage:10,page:1,available:!0},e.productsAdded={data:[]}}},iOn={index({commit:e},t={user:null,hidden:null}){return e("setLoading",!0),new Promise((n,o)=>{Uh.index(t).then(i=>{t.hidden?e("setHidden",i.data.list):e("setShown",i.data.list),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response.data.message,"error"),e("setLoading",!1),o(i)})})},show({commit:e},t){return e("setDetailLoading",!0),new Promise((n,o)=>{Uh.show(t).then(i=>{t.imageReload?e("setDetailCoverImg",i.data.detail.cover_img):e("setDetail",i.data.detail),e("setDetailLoading",!1),n(i)}).catch(i=>{e("setDetailLoading",!1),o(i)})})},showOrCreate({commit:e,dispatch:t}){return new Promise((n,o)=>{Uh.showOrCreate().then(i=>{e("setDetail",i.data.detail),t("products"),t("productsAdded"),n(i)}).catch(i=>{Fe(i.response.data.message,"error"),o(i)})})},update({commit:e,dispatch:t},{id:n,group:o,silent:i}){return i||e("sidebar/setLoading",!0,{root:!0}),new Promise((r,s)=>{Uh.update(n,o).then(a=>{i||(t("index",{shown:!0}),t("index",{hidden:!0}),t("sidebar/close",null,{root:!0}),Fe(a.data.message,"success")),r(a)}).catch(a=>{e("sidebar/setLoading",!1,{root:!0}),Fe(a.response.data.message,"error"),s(a)})})},reorder({commit:e},{groups:t}){e("setShown",t);let n=t.map(o=>o.id);Uh.reorder(n).then(o=>{Fe(o.data.message,"success")}).catch(o=>{var i,r;(r=(i=o==null?void 0:o.response)==null?void 0:i.data)!=null&&r.message&&Fe(o.response.data.message,"error")})},hiddenToggle({commit:e,dispatch:t},{id:n}){return e("setLoading",!0),new Promise((o,i)=>{Uh.hiddenToggle(n).then(r=>{Fe(r.data.message,"success"),t("index",{shown:!0}),t("index",{hidden:!0}),e("setLoading",!1),o(r)}).catch(r=>{Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})},delete({commit:e,dispatch:t},{id:n}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{Uh.deletee(n).then(r=>{t("sidebar/close",null,{root:!0}),t("index",{shown:!0}),t("index",{hidden:!0}),Fe(r.data.message,"success"),o(r)}).catch(r=>{e("sidebar/setLoading",!1,{root:!0}),Fe(r.response.data.message,"error"),i(r)})})},addDetailProduct({state:e,dispatch:t},{product:n}){e.detail.products.push(n),t("update",{id:e.detail.id,group:e.detail,silent:!0}),Fe("Materiál pĹ™idán","success")},removeDetailProduct({state:e,dispatch:t},{id:n}){let o=e.detail.products.map(i=>i.id).indexOf(n);e.detail.products.splice(o,1),e.detail.products.length/e.productsAddedFilters.perPage<=e.productsAddedFilters.page-1&&e.productsAddedFilters.page!=1&&(e.productsAddedFilters.page-=1),t("update",{id:e.detail.id,group:e.detail,silent:!0}),Fe("Materiál odebrán","success")},products({commit:e,state:t}){return e("setProductsLoading",!0),new Promise((n,o)=>{Uh.products(t.productsFilters).then(i=>{e("setProducts",i.data),e("setProductsLoading",!1),n(i.data)}).catch(i=>{var r,s;(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error"),e("setProductsLoading",!1),o(i.response)})})},productsAdded({commit:e,state:t}){return e("setProductsLoading",!0),new Promise((n,o)=>{Uh.productsAdded(t.detail.id,t.productsAddedFilters).then(i=>{e("setProductsAdded",i.data),e("setProductsLoading",!1),n(i.data)}).catch(i=>{var r,s;(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error"),e("setProductsLoading",!1),o(i.response)})})}};const rOn={namespaced:!0,state:tOn,getters:nOn,actions:iOn,mutations:oOn},sOn={stats:[],periods:{yesterday:{sells:0,visits:0,conversion:0,totalToPay:0},week:{sells:0,visits:0,conversion:0,totalToPay:0},month:{sells:0,visits:0,conversion:0,totalToPay:0}},statsHeader:{total_to_pay:{sum:0,increase:0},sells:{sum:0,increase:0},visitors:{sum:0,increase:0},sells_change:0,conversion:0},dateMin:mt().toDate(),loading:!1};let aOn={getStats:e=>e.stats,getPeriods:e=>e.periods,getStatsHeader:e=>e.statsHeader,getDateMin:e=>e.dateMin,isLoading:e=>e.loading},lOn={setStats(e,t){e.stats=t},setPeriods(e,t){e.periods=t},setStatsHeader(e,t){e.statsHeader=t},resetStatsHeader(e){e.statsHeader={total_to_pay:{sum:0,increase:0},sells:{sum:0,increase:0},visitors:{sum:0,increase:0},sells_change:0,conversion:0}},setDateMin(e,t){e.dateMin=t},setLoading(e,t){e.loading=t}},cOn={periods({commit:e}){e("setLoading",!0),p0.periods().then(t=>{e("setPeriods",t.data),e("setLoading",!1)}).catch(t=>{console.log(t),e("setLoading",!1)})},monthly({state:e,commit:t},{date:n}){e.loading||(t("resetStatsHeader"),t("setLoading",!0),p0.monthly(n.format("Y-M")).then(o=>{t("setStatsHeader",o.data.stats.stats),t("setStats",o.data.stats.stats_per_day),t("setDateMin",mt(o.data.date_min).toDate()),t("setLoading",!1)}).catch(o=>{console.log(o),t("setLoading",!1)}))},monthlyAdmin({state:e,commit:t},{userId:n,date:o}){e.loading||(t("setLoading",!0),p0.monthlyAdmin(n,o.format("Y-M")).then(i=>{t("setStatsHeader",i.data.stats.stats),t("setStats",i.data.stats.stats_per_day),t("setDateMin",mt(i.data.date_min).toDate()),t("setLoading",!1)}).catch(i=>{console.log(i),t("setLoading",!1)}))},productMonthly({commit:e},{productId:t,date:n}){e("setLoading",!0),p0.productMonthly(t,n.format("Y-M")).then(o=>{e("setStatsHeader",o.data.stats),e("setDateMin",mt(o.data.date_min).toDate()),e("setLoading",!1)}).catch(o=>{console.log(o),e("setLoading",!1)})}};const dOn={namespaced:!0,state:sOn,getters:aOn,actions:cOn,mutations:lOn},uOn={loading:!1,filters:{category:[],text:[],perPage:null,available:!1},component_filters:{category:{subject:[],class:[]},text:[]},list:[],list_paginated:[],count:0};let hOn={getLoading:e=>e.loading,getComponentFilters:e=>e.component_filters,getFilters:e=>e.filters,getList:e=>e.list},fOn={setLoading(e,t){e.loading=t},setComponentFilters(e,t){e.component_filters=t},setFilters(e,t){e.filters=t},setList(e,t){e.list=t},setListPaginated(e,t){e.list_paginated=t},setCount(e,t){e.count=t}},mOn={load({commit:e,state:t},n=null){return e("setLoading",!0),new Promise((o,i)=>{sk.index(n||t.filters).then(r=>{n&&n.perPage?e("setListPaginated",r.data):(e("setList",r.data.data),e("setCount",Object.keys(r.data.data).length)),e("setLoading",!1),o(r)}).catch(r=>{e("setLoading",!1),i(r)})})}};const pOn={namespaced:!0,state:uOn,getters:hOn,actions:mOn,mutations:fOn},gOn={loading:!1,filters:{category:[],text:[]},component_filters:{category:{subject:[],class:[]},text:[]},list:[]};let vOn={getLoading:e=>e.loading,getComponentFilters:e=>e.component_filters,getFilters:e=>e.filters,getList:e=>e.list},_On={setLoading(e,t){e.loading=t},setComponentFilters(e,t){e.component_filters=t},setFilters(e,t){e.filters=t},setList(e,t){e.list=t}},yOn={load({commit:e,state:t}){if(!t.loading)return e("setLoading",!0),new Promise((n,o)=>{sk.complaints(t.filters).then(i=>{e("setList",i.data.data),e("setLoading",!1),n(i)}).catch(i=>{e("setLoading",!1),o(i)})})}};const bOn={namespaced:!0,state:gOn,getters:vOn,actions:yOn,mutations:_On},kOn={loading:!1,filters:{category:[],text:[]},component_filters:{category:{subject:[],class:[]},text:[]},list:[]};let wOn={getLoading:e=>e.loading,getComponentFilters:e=>e.component_filters,getFilters:e=>e.filters,getList:e=>e.list},$On={setLoading(e,t){e.loading=t},setComponentFilters(e,t){e.component_filters=t},setFilters(e,t){e.filters=t},setList(e,t){e.list=t}},COn={load({commit:e,state:t}){if(!t.loading)return e("setLoading",!0),new Promise((n,o)=>{sk.revisions(t.filters).then(i=>{e("setList",i.data.data),e("setLoading",!1),n(i)}).catch(i=>{e("setLoading",!1),o(i)})})}};const SOn={namespaced:!0,state:kOn,getters:wOn,actions:COn,mutations:$On},TOn=()=>De.get(Pe("api.author.discount.individual.index")),EOn=e=>De.get(Pe("api.author.discount.individual.show",e)),IOn=e=>De.get(Pe("api.author.discount.individual.invalid_dates",e)),POn=e=>De.get(Pe("api.author.discount.individual.invalid_years",e)),AOn=e=>De.post(Pe("api.author.discount.individual.create"),{discount:e}),DOn=(e,t)=>De.patch(Pe("api.author.discount.individual.update",{discount:e}),{discount:t}),xOn=e=>De.delete(Pe("api.author.discount.individual.delete",e)),OOn=e=>De.delete(Pe("api.author.discount.individual.deactivate",e)),cm={index:TOn,show:EOn,invalidDates:IOn,invalidYears:POn,create:AOn,update:DOn,deletee:xOn,deactivate:OOn};let LOn={loading:!1,list:[],invalidDates:[],invalidYears:[],detail:{id:null,type:"all_products",discount:20,is_active:null,valid_from:null,valid_to:null,duration:null,products:[]}},MOn={},NOn={setLoading(e,t){e.loading=t},setList(e,t){e.list=t},setDetail(e,t){e.detail=t},setDetailDiscount(e,t){e.detail.discount=t},setDetailValidFrom(e,t){e.detail.valid_from=t,e.detail.duration&&(e.detail.valid_to=mt(t).add(e.detail.duration-1,"days"))},setDetailDuration(e,t){e.detail.duration=t,e.detail.valid_from&&(e.detail.valid_to=mt(e.detail.valid_from).add(t-1,"days"))},setDetailType(e,t){e.detail.type=t},setDetailProducts(e,t){e.detail.products=t},resetDetail(e){e.detail={id:null,type:"all_products",discount:20,is_active:!1,valid_from:null,valid_to:null,duration:null,products:[]}},setInvalidDates(e,t){e.invalidDates=t},setInvalidYears(e,t){e.invalidYears=t}},ROn={index({commit:e}){return e("setLoading",!0),new Promise((t,n)=>{cm.index().then(o=>{e("setList",o.data.data),e("setLoading",!1),t(o)}).catch(o=>{e("setLoading",!1),n(o)})})},show({commit:e},t){return e("setLoading",!0),new Promise((n,o)=>{cm.show(t).then(i=>{e("setDetail",i.data.data),e("setLoading",!1),n(i)}).catch(i=>{e("setLoading",!1),o(i)})})},invalidDates({commit:e,state:t}){return e("setLoading",!0),new Promise((n,o)=>{cm.invalidDates(t.detail.id).then(i=>{e("setInvalidDates",i.data.data),e("setLoading",!1),n(i)}).catch(i=>{e("setLoading",!1),o(i)})})},invalidYears({commit:e,state:t}){return e("setLoading",!0),new Promise((n,o)=>{cm.invalidYears(t.detail.id).then(i=>{e("setInvalidYears",i.data.data),e("setLoading",!1),n(i)}).catch(i=>{e("setLoading",!1),o(i)})})},create({commit:e,state:t,dispatch:n}){return e("setLoading",!0),new Promise((o,i)=>{cm.create(t.detail).then(r=>{Fe(r.data.message,"success"),e("resetDetail"),e("setLoading",!1),n("index"),n("invalidDates"),n("invalidYears"),o(r)}).catch(r=>{Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})},update({commit:e,state:t,dispatch:n}){return e("setLoading",!0),new Promise((o,i)=>{cm.update(t.detail.id,t.detail).then(r=>{Fe(r.data.message,"success"),e("resetDetail"),e("setLoading",!1),n("index"),n("invalidDates"),n("invalidYears"),o(r)}).catch(r=>{Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})},deactivate({commit:e,dispatch:t},n){return e("setLoading",!0),new Promise((o,i)=>{cm.deactivate(n).then(r=>{Fe(r.data.message,"success"),e("resetDetail"),e("setLoading",!1),t("index"),t("invalidDates"),t("invalidYears"),o(r)}).catch(r=>{Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})},delete({commit:e,dispatch:t},n){return e("setLoading",!0),new Promise((o,i)=>{cm.deletee(n).then(r=>{Fe(r.data.message,"success"),e("resetDetail"),e("setLoading",!1),t("index"),t("invalidDates"),t("invalidYears"),o(r)}).catch(r=>{Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})}};const jOn={namespaced:!0,state:LOn,getters:MOn,actions:ROn,mutations:NOn},FOn=()=>De.get(Pe("api.author.discount_automatic_settings.show")),zOn=()=>De.get(Pe("api.author.discount.automatic.show")),UOn=(e,t)=>De.post(Pe("api.author.discount.automatic.update"),{discount:e,kept:t}),JT={showSettings:FOn,show:zOn,update:UOn};let Hce={loading:!1,settins_loading:!1,settings:{id:null,valid_from_iso:null,valid_to_iso:null},discount:{id:null,discount:null,valid_from:null,valid_to:null,valid_length:null,duration:null,is_active:null,type:null,state:null,products:null,kept:!1}},BOn={},HOn={setLoading(e,t){e.loading=t},setSettingsLoading(e,t){e.settings_loading=t},setSettings(e,t){e.settings=t},setDiscount(e,t){e.discount=t},resetDiscount(e){e.discount={id:null,discount:null,valid_from:null,valid_to:null,valid_length:null,duration:null,is_active:null,type:null,state:null,products:null,kept:e.discount.kept}},setAmount(e,t){e.discount.discount=t},setKept(e,t){e.discount.kept=t}},VOn={showSettings({state:e,commit:t}){if(!e.settings_loading)return t("setSettingsLoading",!0),new Promise((n,o)=>{JT.showSettings().then(i=>{t("setSettings",i.data.automatic_discount_settings),t("setSettingsLoading",!1),n(i)}).catch(i=>{t("setSettingsLoading",!1),o(i)})})},show({commit:e}){if(!Hce.loading)return e("setLoading",!0),new Promise((t,n)=>{JT.show().then(o=>{let i=o.data.author_discount_automatic;i?e("setDiscount",i):e("resetDiscount"),e("setLoading",!1),t(o)}).catch(o=>{Fe(o.response.data.message,"error"),e("setLoading",!1),n(o)})})},update({commit:e,state:t}){if(!t.loading)return e("setLoading",!0),new Promise((n,o)=>{JT.update(t.discount.discount,t.discount.kept).then(i=>{let r=i.data.author_discount_automatic;r?e("setDiscount",r):e("resetDiscount"),e("setLoading",!1),Fe(i.data.message,"success"),n(i)}).catch(i=>{Fe(i.response.data.message,"error"),e("setLoading",!1),o(i)})})},delete({commit:e,dispatch:t}){e("resetDiscount"),t("update")},deactivate({commit:e,dispatch:t}){e("resetDiscount"),t("update")}};const qOn={namespaced:!0,state:Hce,getters:BOn,actions:VOn,mutations:HOn},YOn=(e=null,t=null,n=null)=>De.get(Pe("school.employee.api.download.index",{text:t,category:e,page:n})),YY={index:YOn},WOn={downloadItems:[],cached:!1,loading:!1,loading_more:!1,download_filters:{category:[],text:[]},component_filters:{category:{subject:[],class:[]},text:[]},pagination:{current_page:1,per_page:1,last_page:0,total:0}};let GOn={getDownloadItems:e=>e.downloadItems,getDownloadsWithFilters:e=>({downloadItems:e.downloadItems,download_filters:e.download_filters}),getComponentFilters:e=>e.component_filters,getPagination:e=>e.pagination,loading:e=>e.loading,loadingMore:e=>e.loading_more},ZOn={setDownloadItems(e,t){e.downloadItems=t},setDownloadFilters(e,t){e.download_filters=t},appendDownloadItems(e,t){e.downloadItems=e.downloadItems.concat(t)},setComponentFilters(e,t){e.component_filters=t},setPagination(e,t){e.pagination=t},toggleLoading(e){e.loading=!e.loading},setLoading(e,t){e.loading=t},setLoadingMore(e,t){e.loading_more=t},cached(e){e.cached=!0}},KOn={load({commit:e,state:t}){if(!t.loading)return new Promise((n,o)=>{e("setLoading",!0),YY.index(t.download_filters.category,t.download_filters.text,t.pagination.current_page).then(i=>{e("setDownloadItems",i.data.data),e("setPagination",i.data.meta),e("setLoading",!1),n()}).catch(()=>{e("setLoading",!1),o()})})},loadMore({commit:e,state:t}){if(!(t.pagination.current_page+1>t.pagination.last_page))return new Promise((n,o)=>{e("setLoadingMore",!0),YY.index(t.download_filters.category,t.download_filters.text,t.pagination.current_page+1).then(i=>{e("appendDownloadItems",i.data.data),e("setPagination",i.data.meta),e("setLoadingMore",!1),n()}).catch(()=>{e("setLoadingMore",!1),o()})})},updateDownloadFilters({commit:e},{downloadFilters:t}){e("setDownloadFilters",t)},updateComponentFilters({commit:e},{componentFilters:t}){e("setComponentFilters",t)},toggleLoading({commit:e}){e("toggleLoading")}};const JOn={namespaced:!0,state:WOn,getters:GOn,actions:KOn,mutations:ZOn},XOn={loading:!1,loadingAccountingEmail:!1,detail:{}};let QOn={getLoading:e=>e.loading,getLoadingAccountingEmail:e=>e.loadingAccountingEmail,getDetail:e=>e.detail},eLn={setLoading(e,t){e.loading=t},setLoadingAccountingEmail(e,t){e.loadingAccountingEmail=t},setDetail(e,t){e.detail=t}},tLn={show({commit:e}){return e("setLoading",!0),new Promise((t,n)=>{tg.show().then(o=>{e("setDetail",o.data.detail),e("setLoading",!1),t(o)}).catch(o=>{Fe(o.response,"error"),e("setLoading",!1),n(o)})})},accountingEmailUpdate({commit:e,dispatch:t},{accountingEmail:n}){return e("setLoadingAccountingEmail",!0),new Promise((o,i)=>{tg.accountingEmailUpdate(n).then(r=>{Fe(r.data.message,"success"),e("setLoadingAccountingEmail",!1),t("show"),o(r)}).catch(r=>{Fe(r.response,"error"),e("setLoadingAccountingEmail",!1),i(r)})})}};const nLn={namespaced:!0,state:XOn,getters:QOn,mutations:eLn,actions:tLn},oLn=(e,t)=>De.post(Pe("school.manager.api.credit_order.place"),{amount:e,discount_code:t}),iLn=e=>De.delete(Pe("school.manager.api.credit_order.delete",e)),rLn=e=>De.post(Pe("school.manager.api.credit_order.discount.validate"),{discount_code:e}),aA={place:oLn,deletee:iLn,discountValidate:rLn},sLn={};let aLn={},lLn={},cLn={place({commit:e,dispatch:t},{amount:n,discountCode:o=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{aA.place(n,o).then(s=>{e("sidebar/setLoading",!1,{root:!0});let a=new Date().getFullYear();t("schoolInvoice/index",{year:a},{root:!0}),i(s)}).catch(s=>{Fe(s.response,"error"),e("sidebar/setLoading",!1,{root:!0}),r(s)})})},delete({commit:e,dispatch:t},{creditOrder:n}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{aA.deletee(n.id).then(r=>{t("sidebar/close",{},{root:!0}),Fe(r.data.message,"success");let s=new Date(n.created_at).getFullYear();s<2023?t("schoolInvoice/archiveIndex",{year:s},{root:!0}):t("schoolInvoice/index",{year:s},{root:!0}),o(r)}).catch(r=>{Fe(r.response,"error"),e("sidebar/setLoading",!1,{root:!0}),i(r)})})}};const dLn={namespaced:!0,state:sLn,getters:aLn,mutations:lLn,actions:cLn},uLn=()=>De.get(Pe("school.manager.api.employee.index")),hLn=e=>De.patch(Pe("school.manager.api.employee.confirm",e)),fLn=e=>De.patch(Pe("school.manager.api.employee.decline",e)),mLn=e=>De.delete(Pe("school.manager.api.employee.delete",e)),pLn=(e,t)=>De.patch(Pe("school.manager.api.employee.credit.update",e),{amount:t}),n0={index:uLn,confirm:hLn,decline:fLn,deletee:mLn,creditUpdate:pLn},gLn={loading:!0,index:[]};let vLn={getLoading:e=>e.loading,getIndex:e=>e.index},_Ln={setLoading(e,t){e.loading=t},setIndex(e,t){e.index=t}},yLn={index({commit:e}){return e("setLoading",!0),new Promise((t,n)=>{n0.index().then(o=>{e("setIndex",o.data.index),e("setLoading",!1),t(o)}).catch(o=>{Fe(o.response.data.message,"error"),e("setLoading",!1),n(o)})})},confirm({commit:e,dispatch:t},{employee:n}){return e("setLoading",!0),new Promise((o,i)=>{n0.confirm(n.id).then(r=>{Fe(r.data.message,"success"),t("index"),o(r)}).catch(r=>{Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})},decline({commit:e,dispatch:t},{employee:n}){return e("setLoading",!0),new Promise((o,i)=>{n0.decline(n.id).then(r=>{Fe(r.data.message,"success"),t("index"),o(r)}).catch(r=>{Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})},delete({commit:e,dispatch:t},{employee:n}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{n0.deletee(n.id).then(r=>{Fe(r.data.message,"success"),t("sidebar/close",{},{root:!0}),t("index"),o(r)}).catch(r=>{Fe(r.response.data.message,"error"),e("sidebar/setLoading",!1,{root:!0}),i(r)})})},creditUpdate({commit:e,dispatch:t},{employee:n,amount:o}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{n0.creditUpdate(n.id,o).then(s=>{Fe(s),t("sidebar/close",{},{root:!0}),t("index"),t("school/show",{},{root:!0}),i(s)}).catch(s=>{Fe(s),e("sidebar/setLoading",!1,{root:!0}),r(s)})})}};const bLn={namespaced:!0,state:gLn,getters:vLn,mutations:_Ln,actions:yLn},kLn=(e=null)=>De.get(Pe("school.manager.api.invoice.index",{year:e})),wLn=(e=null)=>De.get(Pe("school.manager.api.invoice.archive.index",{year:e})),$Ln=()=>De.get(Pe("school.manager.api.invoice.first_year")),XT={index:kLn,archiveIndex:wLn,firstYear:$Ln},CLn={loading:!1,allFirstYear:null,list:[],firstYear:new Date().getFullYear(),activeYear:new Date().getFullYear(),archiveList:[],archiveFirstYear:2022};let SLn={getLoading:e=>e.loading,getAllFirstYear:e=>e.allFirstYear,getList:e=>e.list,getFirstYear:e=>e.firstYear,getActiveYear:e=>e.activeYear,getArchiveList:e=>e.archiveList,getArchiveFirstYear:e=>e.archiveFirstYear},TLn={setLoading(e,t){e.loading=t},setAllFirstYear(e,t){e.allFirstYear=t},setList(e,t){e.list=t},setFirstYear(e,t){e.firstYear=t},setActiveYear(e,t){e.activeYear=t},setArchiveList(e,t){e.archiveList=t},setArchiveFirstYear(e,t){e.archiveFirstYear=t}},ELn={index({commit:e},{year:t}){return e("setLoading",!0),new Promise((n,o)=>{XT.index(t).then(i=>{e("setList",i.data.list),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})},firstYear({commit:e}){return new Promise((t,n)=>{XT.firstYear().then(o=>{let i=o.data.year;e("setAllFirstYear",i),i<2023?(e("setFirstYear",2023),e("setArchiveFirstYear",i)):(e("setFirstYear",i),e("setArchiveFirstYear",2022)),t(o)}).catch(o=>{Fe(o.response,"error"),n(o)})})},archiveIndex({commit:e},{year:t}){return e("setLoading",!0),new Promise((n,o)=>{XT.archiveIndex(t).then(i=>{e("setArchiveList",i.data.list),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})}};const ILn={namespaced:!0,state:CLn,getters:SLn,mutations:TLn,actions:ELn},PLn=e=>De.delete(Pe("school.manager.api.order.delete",e)),ALn=()=>De.get(Pe("school.manager.api.order.first_year")),DLn=(e=null)=>De.get(Pe("school.manager.api.order.summary.index",{year:e})),QT={deletee:PLn,firstYear:ALn,summaryIndex:DLn},xLn={firstYear:new Date().getFullYear(),summaryLoading:!1,summaryList:[],summaryFirstYear:new Date().getFullYear(),summaryActiveYear:new Date().getFullYear()};let OLn={getFirstYear:e=>e.firstYear,getSummaryLoading:e=>e.summaryLoading,getSummaryList:e=>e.summaryList,getSummaryFirstYear:e=>e.summaryFirstYear,getSummaryActiveYear:e=>e.summaryActiveYear},LLn={setFirstYear(e,t){e.firstYear=t},setSummaryLoading(e,t){e.summaryLoading=t},setSummaryList(e,t){e.summaryList=t},setSummaryFirstYear(e,t){e.summaryFirstYear=t},setSummaryActiveYear(e,t){e.summaryActiveYear=t}},MLn={delete({commit:e,dispatch:t},{order:n}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{QT.deletee(n.id).then(r=>{t("sidebar/close",{},{root:!0}),Fe(r.data.message,"success");let s=new Date(n.created_at).getFullYear();s<2023?t("schoolInvoice/archiveIndex",{year:s},{root:!0}):t("schoolInvoice/index",{year:s},{root:!0}),o(r)}).catch(r=>{Fe(r.response,"error"),e("sidebar/setLoading",!1,{root:!0}),i(r)})})},firstYear({commit:e}){return new Promise((t,n)=>{QT.firstYear().then(o=>{let i=o.data.year;e("setFirstYear",i),e("setSummaryFirstYear",i),t(o)}).catch(o=>{Fe(o.response,"error"),n(o)})})},summaryIndex({commit:e},{year:t}){return e("setSummaryLoading",!0),new Promise((n,o)=>{QT.summaryIndex(t).then(i=>{e("setSummaryList",i.data.list),e("setSummaryLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setSummaryLoading",!1),o(i)})})}};const NLn={namespaced:!0,state:xLn,getters:OLn,mutations:LLn,actions:MLn},RLn={loading:!1,data:{type:null,dispatch:null},type:null,is_open:!1};let jLn={getLoading:e=>e.loading,getType:e=>e.type,getData:e=>e.data,isOpen:e=>e.is_open},FLn={setLoading(e,t){e.loading=t},setOpen(e,t){e.is_open=t},setData(e,t){e.data=t},setType(e,t){e.type=t}},zLn={prepareOpening({commit:e},{type:t=null,data:n={}}){return new Promise(o=>{e("setType",t),e("setData",n),o()})},open({commit:e,dispatch:t},{type:n=null,data:o={}}){t("prepareOpening",{type:n,data:o}).then(()=>{e("setOpen",!0),window.$("#"+n+"-offcanvas").offcanvas("show")})},close({commit:e,state:t}){window.$("#"+t.type+"-offcanvas").offcanvas("hide"),e("setOpen",!1),e("setType",null),e("setData",{}),e("setLoading",!1)},setOpen({commit:e},{isOpen:t}){e("setOpen",t)}};const ULn={namespaced:!0,state:RLn,getters:jLn,mutations:FLn,actions:zLn},BLn={back_paths:[]};let HLn={getBackPath:e=>e.back_paths[e.back_paths.length-1],getBackPaths:e=>e.back_paths},VLn={setBackPath(e,t){e.back_paths[e.back_paths.length-1]!==t&&e.back_paths.push(t)},popBackPath(e){e.back_paths.pop()}},qLn={setBackPath({commit:e},{path:t}){e("setBackPath",t)},popBackPath({commit:e}){e("popBackPath")},resetBackPath({commit:e}){e("setBackPath",null)}};const YLn={namespaced:!0,state:BLn,getters:HLn,mutations:VLn,actions:qLn},WLn={loading:!1,openCount:0,list:{data:[]},statusLoading:!1,worthyLoading:!1,detail:{id:0,author:{id:0},vat:{value:null,type:null,name:null},file_type:[],ratings:[],files:[{id:0,name:""}]},delete:{id:null,title:null},feedback:{id:null,title:null,status:null,old:null}};let GLn={getLoading:e=>e.loading,getStatusLoading:e=>e.statusLoading,getWorthyLoading:e=>e.worthyLoading,getList:e=>e.list,getOpenCount:e=>e.openCount,getDetail:e=>e.detail,getEditOpen:e=>e.edit.open,getDelete:e=>e.delete,getFeedback:e=>e.feedback},ZLn={setLoading(e,t){e.loading=t},setStatusLoading(e,t){e.statusLoading=t},setWorthyLoading(e,t){e.worthyLoading=t},setList(e,t){e.list=t},setLogsPage(e,t){e.logsPage=t},setOpenCount(e,t){e.openCount=t},setDetail(e,t){e.detail=t},setEditOpen(e,t){e.edit.open=t},setDelete(e,t){e.delete=t},setFeedback(e,t){e.feedback=t},setVat(e,t){e.detail.vat=t}},KLn={list({commit:e},{filters:t=null}){return e("setLoading",!0),new Promise((n,o)=>{Xr.list(t).then(i=>{e("setList",i.data.list),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})},openCount({commit:e}){return new Promise((t,n)=>{Xr.openCount().then(o=>{e("setOpenCount",o.data.openCount),t(o)}).catch(o=>{Fe(o.response,"error"),n(o)})})},detail({commit:e},{id:t}){return e("setLoading",!0),new Promise((n,o)=>{Xr.detail(t).then(i=>{e("setDetail",i.data.detail),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})},status({commit:e,dispatch:t},{id:n,status:o,filters:i=null}){return e("sidebar/setLoading",!0,{root:!0}),e("setStatusLoading",!0),new Promise((r,s)=>{Xr.updateStatus(n,{status:o}).then(a=>{e("setStatusLoading",!1),t("sidebar/close",{},{root:!0}),t("list",{filters:i}),t("openCount"),t("detail",{id:n}),Fe(a.data.message,"success"),r(a)}).catch(a=>{e("setStatusLoading",!1),e("sidebar/setLoading",!1,{root:!0}),Fe(a.response,"error"),s(a)})})},toggleHide({commit:e,dispatch:t},{id:n}){return e("setLoading",!0),new Promise((o,i)=>{Xr.toggleHide(n).then(r=>{e("setLoading",!1),t("detail",{id:n}),Fe(r.data.message,"success"),o(r)}).catch(r=>{e("setLoading",!1),Fe(r.response,"error"),i(r)})})},toggleWorthy({commit:e,state:t},{id:n,isWorthy:o}){if(!t.worthyLoading)return e("setWorthyLoading",!0),t.detail.is_worthy=o,new Promise((i,r)=>{Xr.toggleWorthy(n).then(s=>{e("setWorthyLoading",!1),t.detail.is_worthy=s.data.is_worthy,Fe(s),i(s)}).catch(s=>{t.detail.is_worthy=!o,e("setWorthyLoading",!1),Fe(s.response,"error"),r(s)})})},update({commit:e,dispatch:t},{id:n,product:o,onlyCategories:i=!1}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((r,s)=>{Xr.update(n,o,i).then(a=>{t("sidebar/close",{},{root:!0}),Fe(a.data.message,"success"),t("detail",{id:n}),r(a)}).catch(a=>{e("sidebar/setLoading",!1,{root:!0}),Fe(a.response,"error"),s(a)})})},updateAdminNote({dispatch:e,commit:t},{id:n,note:o}){return t("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{Xr.updateAdminNote(n,o).then(s=>{e("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),e("detail",{id:n}),i(s)}).catch(s=>{t("sidebar/setLoading",!1,{root:!0}),Fe(s,"error"),r(s)})})},delete({commit:e,dispatch:t},{id:n,deleted_reason:o,filters:i}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((r,s)=>{Xr.remove(n,o).then(a=>{t("sidebar/close",{},{root:!0}),Fe(a.data,"success"),t("list",{filters:i}),r(a)}).catch(a=>{e("sidebar/setLoading",!1,{root:!0}),Fe(a.response,"error"),s(a)})})},restore({commit:e,dispatch:t},{id:n,filters:o}){return e("setLoading",!0),new Promise((i,r)=>{Xr.restore(n).then(s=>{e("setLoading",!1),Fe(s.data,"success"),t("list",{filters:o}),i(s)}).catch(s=>{e("setLoading",!1),Fe(s.response,"error"),r(s)})})},recommend({commit:e,dispatch:t},{id:n}){return e("setLoading",!0),new Promise((o,i)=>{Xr.recommend(n).then(r=>{e("setLoading",!1),Fe(r.data.message,"success"),t("detail",{id:n}),o(r.data)}).catch(r=>{var s,a;e("setLoading",!1),(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),i(r.response)})})},removeRecommend({commit:e,dispatch:t},{id:n}){return e("setLoading",!0),new Promise((o,i)=>{Xr.removeRecommend(n).then(r=>{e("setLoading",!1),Fe(r.data.message,"success"),t("detail",{id:n}),o(r.data)}).catch(r=>{var s,a;e("setLoading",!1),(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),i(r.response)})})}};const JLn={namespaced:!0,state:WLn,getters:GLn,mutations:ZLn,actions:KLn};let XLn=jo.pagination.per_page;const QLn=(e,t=XLn)=>De.get(Pe("administration.api.product.complaint.list",{...e,perPage:t})),eMn=()=>De.get(Pe("administration.api.product.complaint.open.count")),tMn=e=>De.get(Pe("administration.api.product.complaint.detail",e)),nMn=(e,t)=>De.post(Pe("administration.api.product.complaint.addNote",{complaint:e,text:t})),oMn=(e,t)=>De.post(Pe("administration.api.product.complaint.fix",{complaint:e,text:t})),iMn=(e,t)=>De.post(Pe("administration.api.product.complaint.fixWithRefund",{complaint:e,text:t})),rMn=(e,t,n)=>De.post(Pe("administration.api.product.complaint.reject",{complaint:e,text:t,isOnlyForAdmin:n})),sMn=(e,t)=>De.post(Pe("administration.api.product.complaint.close",{complaint:e,text:t})),aMn=(e,t)=>De.post(Pe("administration.api.product.complaint.messageCustomer",{complaint:e,text:t})),lMn=(e,t)=>De.post(Pe("administration.api.product.complaint.messageAuthor",{complaint:e,text:t})),Iu={list:QLn,openCount:eMn,detail:tMn,addNote:nMn,fix:oMn,fixWithRefund:iMn,reject:rMn,close:sMn,messageCustomer:aMn,messageAuthor:lMn},cMn=(e,t)=>Pe("administration.api.product.complaint.message.author.store.preview",{complaint:e,text:t}),dMn=(e,t)=>Pe("administration.api.product.complaint.message.customer.store.preview",{complaint:e,text:t}),uMn=(e,t)=>Pe("administration.api.product.complaint.message.state.rejected.update.preview",{complaint:e,text:t}),hMn=(e,t)=>Pe("administration.api.product.complaint.message.state.returned.update.preview",{complaint:e,text:t}),fMn=(e,t)=>Pe("administration.api.product.complaint.message.state.toFix.update.preview",{complaint:e,text:t}),mMn=(e,t)=>Pe("administration.api.product.complaint.message.state.toFix.update.credit.return.preview",{complaint:e,text:t}),pMn={messageAuthor:cMn,messageCustomer:dMn,stateRejectedUpdate:uMn,stateReturnedUpdate:hMn,stateToFixUpdate:fMn,stateToFixUpdateWithCreditReturn:mMn},gMn={loading:!0,list:{data:[]},openCount:0,detail:null,resolution:{actions:{select:null,check:[]},note:""},message:null};let vMn={getLoading:e=>e.loading,getList:e=>e.list,getOpenCount:e=>e.openCount,getDetail:e=>e.detail,getResolutionActionsSelect:e=>e.resolution.actions.select,getResolutionActionsCheck:e=>e.resolution.actions.check,getResolutionNote:e=>e.resolution.note,getMessage:e=>e.message},_Mn={setLoading(e,t){e.loading=t},setList(e,t){e.list=t},setOpenCount(e,t){e.openCount=t},setDetail(e,t){e.detail=t},setResolutionActionsSelect(e,t){e.resolution.actions.select=t},setResolutionActionsCheck(e,t){e.resolution.actions.check=t},setResolutionNote(e,t){e.resolution.note=t},resetResolution(e){e.resolution={actions:{select:null,check:[]},note:""}},setMessage(e,t){e.message=t}},yMn={list({commit:e},{filters:t=null}){return e("setLoading",!0),new Promise((n,o)=>{Iu.list(t).then(i=>{e("setList",i.data.list),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})},openCount({commit:e}){return new Promise((t,n)=>{Iu.openCount().then(o=>{e("setOpenCount",o.data.openCount),t(o)}).catch(o=>{Fe(o.response,"error"),n(o)})})},detail({commit:e},{id:t}){return e("setLoading",!0),new Promise((n,o)=>{Iu.detail(t).then(i=>{e("setDetail",i.data.detail),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})},addNote({commit:e,dispatch:t,state:n}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{Iu.addNote(n.detail.id,n.resolution.note).then(r=>{t("sidebar/close",{},{root:!0}),t("detail",{id:n.detail.id}),e("resetResolution"),Fe(r.data.message,"success"),o(r)}).catch(r=>{e("sidebar/setLoading",!1,{root:!0}),Fe(r.response,"error"),i(r)})})},resolve({dispatch:e,state:t}){t.resolution.actions.select==="fix"?t.resolution.actions.check.includes("refund")?e("fixWithRefund"):e("fix"):t.resolution.actions.select==="reject"?e("reject",{isOnlyForAdmin:!1}):t.resolution.actions.select==="close"?t.resolution.actions.check.length>0?e("close"):e("reject",{isOnlyForAdmin:!0}):t.resolution.actions.select==="close_no_action"&&e("reject",{isOnlyForAdmin:!0})},fix({state:e,commit:t,dispatch:n}){return t("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{Iu.fix(e.detail.id,e.resolution.note).then(r=>{n("sidebar/close",{},{root:!0}),n("detail",{id:e.detail.id}),t("resetResolution"),Fe(r.data.message,"success"),o(r)}).catch(r=>{t("sidebar/setLoading",!1,{root:!0}),Fe(r.response,"error"),i(r)})})},fixWithRefund({state:e,commit:t,dispatch:n}){return t("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{Iu.fixWithRefund(e.detail.id,e.resolution.note).then(r=>{n("sidebar/close",{},{root:!0}),n("detail",{id:e.detail.id}),t("resetResolution"),Fe(r.data.message,"success"),o(r)}).catch(r=>{t("sidebar/setLoading",!1,{root:!0}),Fe(r.response,"error"),i(r)})})},reject({state:e,commit:t,dispatch:n},{isOnlyForAdmin:o=!1}){return t("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{Iu.reject(e.detail.id,e.resolution.note,o).then(s=>{n("sidebar/close",{},{root:!0}),n("detail",{id:e.detail.id}),t("resetResolution"),Fe(s.data.message,"success"),i(s)}).catch(s=>{t("sidebar/setLoading",!1,{root:!0}),Fe(s.response,"error"),r(s)})})},close({state:e,commit:t,dispatch:n}){return t("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{Iu.close(e.detail.id,e.resolution.note).then(r=>{n("sidebar/close",{},{root:!0}),n("detail",{id:e.detail.id}),t("resetResolution"),Fe(r.data.message,"success"),o(r)}).catch(r=>{t("sidebar/setLoading",!1,{root:!0}),Fe(r.response,"error"),i(r)})})},messageAuthor({state:e,commit:t,dispatch:n}){return t("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{Iu.messageAuthor(e.detail.id,e.message).then(r=>{n("sidebar/close",{},{root:!0}),n("detail",{id:e.detail.id}),t("setMessage",null),Fe(r.data.message,"success"),o(r)}).catch(r=>{t("sidebar/setLoading",!1,{root:!0}),Fe(r.response,"error"),i(r)})})},messageCustomer({state:e,commit:t,dispatch:n}){return t("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{Iu.messageCustomer(e.detail.id,e.message).then(r=>{n("sidebar/close",{},{root:!0}),n("detail",{id:e.detail.id}),t("setMessage",null),Fe(r.data.message,"success"),o(r)}).catch(r=>{t("sidebar/setLoading",!1,{root:!0}),Fe(r.response,"error"),i(r)})})},emailPreview({state:e},{action_type:t,note_text:n}){window.open(pMn[t](e.detail.id,n),"_blank")}};const bMn={namespaced:!0,state:gMn,getters:vMn,mutations:_Mn,actions:yMn};let kMn=jo.pagination.per_page;const wMn=(e,t=kMn)=>De.get(Pe("administration.api.product.update.list",{...e,perPage:t})),$Mn=()=>De.get(Pe("administration.api.product.update.open.count")),CMn=(e,t)=>De.post(Pe("administration.api.product.update.confirm",e),{reason:t}),SMn=e=>De.post(Pe("administration.api.product.update.delete",e)),b8={list:wMn,openCount:$Mn,confirm:CMn,deletee:SMn},TMn={loading:!0,list:{data:[]},openCount:0,detail:{}};let EMn={getLoading:e=>e.loading,getList:e=>e.list,getOpenCount:e=>e.openCount,getDetail:e=>e.detail},IMn={setLoading(e,t){e.loading=t},setList(e,t){e.list=t},setOpenCount(e,t){e.openCount=t},setDetail(e,t){e.detail=t},resetDetail(e){e.detail={}}},PMn={list({commit:e},{filters:t=null}){return e("setLoading",!0),new Promise((n,o)=>{b8.list(t).then(i=>{e("setList",i.data.list),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})},openCount({commit:e}){return new Promise((t,n)=>{b8.openCount().then(o=>{e("setOpenCount",o.data.openCount),t(o)}).catch(o=>{Fe(o.response,"error"),n(o)})})},confirm({commit:e,state:t,dispatch:n},{reason:o=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{b8.confirm(t.detail.id,o).then(s=>{n("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),e("resetDetail"),n("list",{filters:null}),n("openCount"),i(s)}).catch(s=>{e("sidebar/setLoading",!1,{root:!0}),Fe(s.response,"error"),r(s)})})},delete({commit:e,state:t,dispatch:n}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{b8.deletee(t.detail.id).then(r=>{n("sidebar/close",{},{root:!0}),Fe(r.data.message,"success"),e("resetDetail"),n("list",{filters:null}),n("openCount"),o(r)}).catch(r=>{e("sidebar/setLoading",!1,{root:!0}),Fe(r.response,"error"),i(r)})})}};const AMn={namespaced:!0,state:TMn,getters:EMn,mutations:IMn,actions:PMn},DMn={loading:!1,list:{data:[]}};let xMn={getLoading:e=>e.loading,getList:e=>e.list},OMn={setLoading(e,t){e.loading=t},setList(e,t){e.list=t}},LMn={list({commit:e},{id:t,filters:n=null}){return e("setLoading",!0),new Promise((o,i)=>{Xr.logs(t,n).then(r=>{e("setList",r.data.logs),e("setLoading",!1),o(r)}).catch(r=>{Fe(r.response,"error"),e("setLoading",!1),i(r)})})}};const MMn={namespaced:!0,state:DMn,getters:xMn,mutations:OMn,actions:LMn},NMn={users:{data:[]},detail:{id:null,first_name:null,last_name:null,email:null,emails:[],gender:null,conversation_id:null,role:"user",verified:!1,image_thumbnail:null,school:null,invoice_address:null,invoice_city:null,invoice_postcode:null,invoice_company:null,invoice_ico:null,is_vat_payer:!1,is_organization:!1,is_hmat:!1,is_mmat:!1,invoice_dic:null,contractor_details:null,cart:{total:0,last_update:null,items:[]},wishlist:{total:0,last_update:null,items:[]},credit:0,blocked:!1,confirmed:!0,merged_into:{id:null,email:null},discount:{from:null,to:null,amount:null}},loading:!1,detail_loading:!1};let RMn={getLoading:e=>e.loading,getUsers:e=>e.users,getDetail:e=>e.detail,getDetailLoading:e=>e.detail_loading},jMn={setLoading(e,t){e.loading=t},setUsers(e,t){e.users=t},setDetail(e,t){e.detail=t},setDetailLoading(e,t){e.detail_loading=t}},FMn={users({commit:e},{filters:t=null}){return e("setLoading",!0),new Promise((n,o)=>{Ei.users(t).then(i=>{e("setUsers",i.data.users),e("setLoading",!1),n(i)}).catch(i=>{var r,s;(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error"),e("setLoading",!1),o(i)})})},blockUnblockUser({state:e},{user:t,action:n}){return new Promise((o,i)=>{n(t.id).then(r=>{Fe(r.data.message,"success"),e.detail.blocked=r.data.blocked,o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),r.response&&r.response.status===405&&(e.detail.blocked=r.response.data.blocked),i(r)})})},activate({state:e,dispatch:t},{user:n,isFromTable:o=!0}){if(o)t("userTableAction",{user:n,action:Ei.activate});else return new Promise((i,r)=>{Ei.activate(n.id).then(s=>{Fe(s.data.message,"success"),e.detail.confirmed=s.data.confirmed,i(s)}).catch(s=>{var a,l;(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),r(s)})})},blockUser({dispatch:e},{user:t,isFromTable:n=!0}){if(n)e("userTableAction",{user:t,action:Ei.blockUser});else return e("blockUnblockUser",{user:t,action:Ei.blockUser})},unblockUser({dispatch:e},{user:t,isFromTable:n=!0}){if(n)e("userTableAction",{user:t,action:Ei.unblockUser});else return e("blockUnblockUser",{user:t,action:Ei.unblockUser})},userTableAction({commit:e,dispatch:t},{user:n,action:o,filters:i}){return e("setLoading",!0),new Promise((r,s)=>{o(n.id).then(a=>{Fe(a.data.message,"success"),t("users",{filters:i})}).catch(a=>{var l,d;(d=(l=a==null?void 0:a.response)==null?void 0:l.data)!=null&&d.message&&Fe(a.response.data.message,"error"),e("setLoading",!1),s(a)})})},detail({commit:e},{id:t}){return e("setDetailLoading",!0),new Promise((n,o)=>{Ei.detail(t).then(i=>{e("setDetail",i.data.user),e("setDetailLoading",!1),n(i)}).catch(i=>{var r,s;(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error"),e("setDetailLoading",!1),o(i)})})},changeUserCredit({commit:e,dispatch:t},{user:n,isAdd:o,amount:i,reason:r}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((s,a)=>{t("userDetailAction",{action:Ei.changeUserCredit.bind(null,n.id,o,i,r)}).then(l=>{t("sidebar/close",{},{root:!0}),s(l)}).catch(l=>{e("sidebar/setLoading",!1,{root:!0}),a(l)})})},updateUserInfo({dispatch:e},{user:t,values:n}){return new Promise((o,i)=>{e("userDetailAction",{action:Ei.updateUserInfo.bind(null,t.id,n)}).then(r=>{o(r)}).catch(r=>{i(r)})})},updateUserIsAuthor({state:e},{user:t,isAuthor:n}){return new Promise((o,i)=>{Ei.updateUserIsAuthor(t.id,n).then(r=>{Fe(r.data.message,"success"),e.detail.role=r.data.role,o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),r.response&&r.response.status===405&&(e.detail.role=r.response.data.role),i(r)})})},updateUserIsVerified({state:e},{user:t,isVerified:n}){return new Promise((o,i)=>{Ei.updateUserIsVerified(t.id,n).then(r=>{Fe(r.data.message,"success"),e.detail.verified=r.data.verified,o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),i(r)})})},updateUserIsHmat({state:e},{user:t,isHmat:n}){return new Promise((o,i)=>{Ei.updateUserIsHmat(t.id,n).then(r=>{Fe(r.data.message,"success"),e.detail.is_hmat=r.data.is_hmat,o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),i(r)})})},updateUserIsMmat({state:e},{user:t,isMmat:n}){return new Promise((o,i)=>{Ei.updateUserIsMmat(t.id,n).then(r=>{Fe(r.data.message,"success"),e.detail.is_mmat=r.data.is_mmat,o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),i(r)})})},resetPassword({commit:e,dispatch:t},{user:n}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{Ei.resetPassword(n.id).then(r=>{t("sidebar/close",{},{root:!0}),Fe(r.data.message,"success"),o(r)}).catch(r=>{var s,a;e("sidebar/setLoading",!1,{root:!0}),(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),i(r)})})},impersonate(e,{userId:t}){return new Promise((n,o)=>{Ei.impersonate(t).then(i=>{i.data.redirect&&(window.location=i.data.redirect),n(i)}).catch(i=>{Fe(i),o(i)})})},userDetailAction({commit:e,state:t,dispatch:n},{action:o}){return e("setDetailLoading",!0),new Promise((i,r)=>{o().then(s=>{Fe(s.data.message,"success"),n("detail",{id:t.detail.id}),i(s)}).catch(s=>{var a,l;(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),e("setDetailLoading",!1),r(s)})})},merge({commit:e,dispatch:t},{userId:n,userToMergeId:o}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{Ei.merge(n,o).then(s=>{Fe(s.data.message,"success"),t("sidebar/close",{},{root:!0}),t("detail",{id:n}),i(s)}).catch(s=>{Fe(s.response,"error"),e("sidebar/setLoading",!1,{root:!0}),r(s)})})}};const zMn={namespaced:!0,state:NMn,getters:RMn,mutations:jMn,actions:FMn},UMn={downloads:{data:[]},downloads_loading:!1,orders:{data:[]},orders_loading:!1,payments:{data:[]},payments_loading:!1,credit_transfers:{data:[]},credit_transfers_loading:!1,author_products:{data:[]},author_products_loading:!1,author_settlements:{data:[]},first_settlement_date:null,author_settlements_loading:!1,regenerate_loading:!1,pay_loading:!1,send_settlement_loading:!1};let BMn={getDownloads:e=>e.downloads,getDownloadsLoading:e=>e.downloads_loading,getOrders:e=>e.orders,getOrdersLoading:e=>e.orders_loading,getPayments:e=>e.payments,getPaymentsLoading:e=>e.payments_loading,getCreditTransfers:e=>e.credit_transfers,getCreditTransfersLoading:e=>e.credit_transfers_loading,getAuthorProducts:e=>e.author_products,getAuthorProductsLoading:e=>e.author_products_loading,getAuthorSettlements:e=>e.author_settlements,getFirstSettlement:e=>e.first_settlement_date,getAuthorSettlementsLoading:e=>e.author_settlements_loading},HMn={setDownloads(e,t){e.downloads=t},setDownloadsLoading(e,t){e.downloads_loading=t},setOrders(e,t){e.orders=t},setOrdersLoading(e,t){e.orders_loading=t},setPayments(e,t){e.payments=t},setPaymentsLoading(e,t){e.payments_loading=t},setCreditTransfers(e,t){e.credit_transfers=t},setCreditTransfersLoading(e,t){e.credit_transfers_loading=t},setAuthorProducts(e,t){e.author_products=t},setAuthorProductsLoading(e,t){e.author_products_loading=t},setAuthorSettlements(e,t){e.author_settlements=t},setFirstSettlement(e,t){e.first_settlement_date=mt(t)},setAuthorSettlementsLoading(e,t){e.author_settlements_loading=t}},VMn={downloads({commit:e,state:t},{id:n,filters:o=null}){if(!t.downloads_loading)return e("setDownloadsLoading",!0),new Promise((i,r)=>{Ei.downloads(n,o).then(s=>{e("setDownloads",s.data.downloads),e("setDownloadsLoading",!1),i(s)}).catch(s=>{var a,l;(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),e("setDownloadsLoading",!1),r(s)})})},orders({commit:e,state:t},{id:n,filters:o=null}){if(!t.orders_loading)return e("setOrdersLoading",!0),new Promise((i,r)=>{Ei.orders(n,o).then(s=>{e("setOrders",s.data.orders),e("setOrdersLoading",!1),i(s)}).catch(s=>{var a,l;(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),e("setOrdersLoading",!1),r(s)})})},payments({commit:e,state:t},{id:n,filters:o=null}){if(!t.payments_loading)return e("setPaymentsLoading",!0),new Promise((i,r)=>{Ei.payments(n,o).then(s=>{e("setPayments",s.data.payments),e("setPaymentsLoading",!1),i(s)}).catch(s=>{var a,l;(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),e("setPaymentsLoading",!1),r(s)})})},creditTransfers({commit:e,state:t},{id:n,filters:o=null}){if(!t.creditTransfers_loading)return e("setCreditTransfersLoading",!0),new Promise((i,r)=>{Ei.creditTransfers(n,o).then(s=>{e("setCreditTransfers",s.data.credit_transfers),e("setCreditTransfersLoading",!1),i(s)}).catch(s=>{var a,l;(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),e("setCreditTransfersLoading",!1),r(s)})})},regenerate({state:e,dispatch:t},{id:n,filters:o,invoice:i,dispatchMethod:r}){e.regenerate_loading||(e.regenerate_loading=!0,t("administrationFinanceOrder/regenerate",{invoice:i},{root:!0}).finally(()=>{t(r,{id:n,filters:o}).then(()=>{e.regenerate_loading=!1})}))},pay({state:e,dispatch:t},{id:n,filters:o,order:i,dispatchMethod:r}){e.pay_loading||(e.pay_loading=!0,t("administrationFinanceOrder/pay",{order:i},{root:!0}).finally(()=>{t(r,{id:n,filters:o}).then(()=>{e.pay_loading=!1})}))},authorProducts({commit:e,state:t},{id:n,filters:o=null}){if(!t.author_products_loading)return e("setAuthorProductsLoading",!0),new Promise((i,r)=>{Ei.authorProducts(n,o).then(s=>{e("setAuthorProducts",s.data.products),e("setAuthorProductsLoading",!1),i(s)}).catch(s=>{var a,l;(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),e("setAuthorProductsLoading",!1),r(s)})})},authorSettlements({commit:e,state:t},{id:n,filters:o=null}){if(!t.author_settlements_loading)return e("setAuthorSettlementsLoading",!0),new Promise((i,r)=>{Ei.authorSettlements(n,o).then(s=>{e("setAuthorSettlements",s.data.settlements),e("setFirstSettlement",s.data.first_settlement),e("setAuthorSettlementsLoading",!1),i(s)}).catch(s=>{var a,l;(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),e("setAuthorSettlementsLoading",!1),r(s)})})},sendSettlementPayment({state:e,dispatch:t},{id:n,filters:o,settlement:i,dispatchMethod:r}){e.send_settlement_loading||(e.send_settlement_loading=!0,t("administrationFinanceOrder/sendSettlementPayment",{settlement:i},{root:!0}).finally(()=>{t(r,{id:n,filters:o}).then(()=>{e.send_settlement_loading=!1})}))},authorProductsDelete({dispatch:e},{product:t,filters:n,id:o}){return new Promise((i,r)=>{Xr.remove(t.id,t.deleted_reason).then(s=>{Fe(s.data,"success"),e("authorProducts",{id:o,filters:n}),e("sidebar/close",{},{root:!0})}).catch(s=>{var a,l;(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),r(s)})})}};const qMn={namespaced:!0,state:UMn,getters:BMn,mutations:HMn,actions:VMn},YMn={loading:!0,list:{data:[]},detail:{}};let WMn={getLoading:e=>e.loading,getList:e=>e.list,getDetail:e=>e.detail},GMn={setLoading(e,t){e.loading=t},setList(e,t){e.list=t},setDetail(e,t){e.detail=t}},ZMn={list({commit:e},{filters:t=null}){return e("setLoading",!0),new Promise((n,o)=>{Gs.list(t).then(i=>{e("setList",i.data.list),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})},detail({commit:e},{id:t}){return e("setLoading",!0),new Promise((n,o)=>{Gs.detail(t).then(i=>{e("setDetail",i.data.detail),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})},create({commit:e,dispatch:t},{school:n,filters:o=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{Gs.create(n).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("list",{filters:o}),i(s)}).catch(s=>{e("sidebar/setLoading",!1,{root:!0}),Fe(s.response,"error"),r(s)})})},update({commit:e,dispatch:t},{school:n,update:o}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{Gs.update(n,o).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("detail",{id:n}),i(s)}).catch(s=>{e("sidebar/setLoading",!1,{root:!0}),Fe(s.response,"error"),r(s)})})},adminNoteUpdate({commit:e,dispatch:t},{id:n,note:o}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{Gs.adminNoteUpdate(n,o).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("detail",{id:n}),i(s)}).catch(s=>{e("sidebar/setLoading",!1,{root:!0}),Fe(s.response,"error"),r(s)})})},updateExpiryDate({commit:e,dispatch:t},{id:n,date:o}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{Gs.updateExpiryDate(n,{expiry_date:o}).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("detail",{id:n}),i(s)}).catch(s=>{e("sidebar/setLoading",!1,{root:!0}),Fe(s.response,"error"),r(s)})})}};const KMn={namespaced:!0,state:YMn,getters:WMn,mutations:GMn,actions:ZMn};let JMn=jo.pagination.per_page;const XMn=(e,t,n=JMn)=>De.get(Pe("administration.api.school.employee.index",{school:e,...t,perPage:n})),QMn=(e,t)=>De.post(Pe("administration.api.school.employee.create",{school:e,user:t})),eNn=e=>De.patch(Pe("administration.api.school.employee.confirm",e)),tNn=e=>De.patch(Pe("administration.api.school.employee.decline",e)),nNn=(e,t)=>De.patch(Pe("administration.api.school.employee.credit.update",e),{amount:t}),oNn=e=>De.patch(Pe("administration.api.school.employee.manager_role.add",e)),iNn=e=>De.patch(Pe("administration.api.school.employee.manager_role.remove",e)),rNn=e=>De.delete(Pe("administration.api.school.employee.delete",e)),dm={index:XMn,create:QMn,confirm:eNn,decline:tNn,creditUpdate:nNn,managerRoleAdd:oNn,managerRoleRemove:iNn,deletee:rNn},sNn={loading:!0,index:{data:[]},detail:{}};let aNn={getLoading:e=>e.loading,getIndex:e=>e.index,getDetail:e=>e.detail},lNn={setLoading(e,t){e.loading=t},setIndex(e,t){e.index=t},setDetail(e,t){e.detail=t}},cNn={index({commit:e},{id:t,filters:n=null}){return e("setLoading",!0),new Promise((o,i)=>{dm.index(t,n).then(r=>{e("setIndex",r.data.index),e("setLoading",!1),o(r)}).catch(r=>{Fe(r.response,"error"),e("setLoading",!1),i(r)})})},create({commit:e,dispatch:t},{schoolId:n,userId:o,filters:i=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((r,s)=>{dm.create(n,o).then(a=>{Fe(a.data.message,"success"),t("sidebar/close",{},{root:!0}),t("index",{id:n,filters:i}),r(a)}).catch(a=>{Fe(a.response.data.error,"error"),e("sidebar/setLoading",!1,{root:!0}),s(a)})})},confirm({commit:e,dispatch:t},{employee:n,filters:o=null}){return e("setLoading",!0),new Promise((i,r)=>{dm.confirm(n.id).then(s=>{Fe(s.data.message,"success"),t("index",{id:n.school_id,filters:o}),i(s)}).catch(s=>{Fe(s.response.data.message,"error"),e("setLoading",!1),r(s)})})},decline({commit:e,dispatch:t},{employee:n,filters:o=null}){return e("setLoading",!0),new Promise((i,r)=>{dm.decline(n.id).then(s=>{Fe(s.data.message,"success"),t("index",{id:n.school_id,filters:o}),i(s)}).catch(s=>{Fe(s.response.data.message,"error"),e("setLoading",!1),r(s)})})},creditUpdate({commit:e,dispatch:t},{employee:n,amount:o}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{dm.creditUpdate(n.id,o).then(s=>{Fe(s.data.message,"success"),t("sidebar/close",{},{root:!0}),t("index",{id:n.school_id,filters:null}),i(s)}).catch(s=>{Fe(s.response.data.message,"error"),e("sidebar/setLoading",!1,{root:!0}),r(s)})})},managerRoleAdd({commit:e,dispatch:t},{employee:n,filters:o=null}){return e("setLoading",!0),new Promise((i,r)=>{dm.managerRoleAdd(n.id).then(s=>{Fe(s.data.message,"success"),t("index",{id:n.school_id,filters:o}),i(s)}).catch(s=>{Fe(s.response.data.message,"error"),e("setLoading",!1),r(s)})})},managerRoleRemove({commit:e,dispatch:t},{employee:n,filters:o=null}){return e("setLoading",!0),new Promise((i,r)=>{dm.managerRoleRemove(n.id).then(s=>{Fe(s.data.message,"success"),t("index",{id:n.school_id,filters:o}),i(s)}).catch(s=>{Fe(s.response.data.message,"error"),e("setLoading",!1),r(s)})})},delete({commit:e,dispatch:t},{employee:n,filters:o=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{dm.deletee(n.id).then(s=>{Fe(s.data.message,"success"),t("sidebar/close",{},{root:!0}),t("index",{id:n.school_id,filters:o}),i(s)}).catch(s=>{Fe(s.response.data.message,"error"),e("sidebar/setLoading",!1,{root:!0}),r(s)})})}};const dNn={namespaced:!0,state:sNn,getters:aNn,mutations:lNn,actions:cNn},uNn={loading:!0,regenerate_loading:!1,pay_loading:!1,list:{data:[]},detail:{}};let hNn={getLoading:e=>e.loading,getSearch:e=>e.search,getList:e=>e.list,getDetail:e=>e.detail},fNn={setLoading(e,t){e.loading=t},setSearch(e,t){e.search=t},setList(e,t){e.list=t},setDetail(e,t){e.detail=t}},mNn={list({commit:e},{id:t,filters:n=null}){return e("setLoading",!0),new Promise((o,i)=>{Gs.orders(t,n).then(r=>{e("setList",r.data.list),e("setLoading",!1),o(r)}).catch(r=>{Fe(r.response,"error"),e("setLoading",!1),i(r)})})},regenerate({state:e,dispatch:t},{id:n,filters:o,invoice:i,dispatchMethod:r}){e.regenerate_loading||(e.regenerate_loading=!0,t("administrationFinanceOrder/regenerate",{invoice:i},{root:!0}).finally(()=>{t(r,{id:n,filters:o}).then(()=>{e.regenerate_loading=!1})}))},pay({state:e,dispatch:t},{id:n,filters:o,order:i,dispatchMethod:r}){if(!e.pay_loading)return e.pay_loading=!0,t("administrationFinanceOrder/pay",{order:i},{root:!0}).finally(()=>{t(r,{id:n,filters:o}).then(()=>{e.pay_loading=!1})})},creditOrderPlace({commit:e,dispatch:t},{id:n,amount:o,filters:i=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((r,s)=>{Gs.creditOrderPlace(n,o).then(a=>{t("sidebar/close",{},{root:!0}),Fe(a.data.message,"success"),t("list",{id:n,filters:i}),r(a)}).catch(a=>{e("sidebar/setLoading",!1,{root:!0}),Fe(a.response,"error"),s(a)})})}};const pNn={namespaced:!0,state:uNn,getters:hNn,mutations:fNn,actions:mNn},gNn={loading:!1,regenerate_loading:!1,search:"",list:{data:[]}};let vNn={getLoading:e=>e.loading,getSearch:e=>e.search,getFilterType:e=>e.filter.type,getPage:e=>e.page,getList:e=>e.list},_Nn={setLoading(e,t){e.loading=t},setSearch(e,t){e.search=t},setFilterType(e,t){e.filter.type=t},setPage(e,t){e.page=t},setList(e,t){e.list=t}},yNn={payments({commit:e,state:t},{id:n,filters:o=null}){if(!t.loading)return e("setLoading",!0),new Promise((i,r)=>{Gs.payments(n,o).then(s=>{e("setList",s.data.list),e("setLoading",!1),i(s)}).catch(s=>{Fe(s.response,"error"),e("setLoading",!1),r(s)})})},regenerate({state:e,dispatch:t},{id:n,filters:o,invoice:i}){e.regenerate_loading||(e.regenerate_loading=!0,t("administrationFinanceOrder/regenerate",{invoice:i},{root:!0}).finally(()=>{t("payments",{id:n,filters:o}).then(()=>{e.regenerate_loading=!1})}))}};const bNn={namespaced:!0,state:gNn,getters:vNn,mutations:_Nn,actions:yNn},kNn={loading:!1,regenerate_loading:!1,search:"",list:{data:[]}};let wNn={getLoading:e=>e.loading,getSearch:e=>e.search,getFilterType:e=>e.filter.type,getPage:e=>e.page,getList:e=>e.list},$Nn={setLoading(e,t){e.loading=t},setSearch(e,t){e.search=t},setFilterType(e,t){e.filter.type=t},setPage(e,t){e.page=t},setList(e,t){e.list=t}},CNn={creditTransfers({commit:e,state:t},{id:n,filters:o=null}){if(!t.loading)return e("setLoading",!0),new Promise((i,r)=>{Gs.creditTransfers(n,o).then(s=>{e("setList",s.data.list),e("setLoading",!1),i(s)}).catch(s=>{Fe(s.response,"error"),e("setLoading",!1),r(s)})})},regenerate({state:e,dispatch:t},{id:n,filters:o,invoice:i}){e.regenerate_loading||(e.regenerate_loading=!0,t("administrationFinanceOrder/regenerate",{invoice:i},{root:!0}).finally(()=>{t("creditTransfers",{id:n,filters:o}).then(()=>{e.regenerate_loading=!1})}))}};const SNn={namespaced:!0,state:kNn,getters:wNn,mutations:$Nn,actions:CNn},TNn={loading:!1,list:{data:[]},detail:{},regenerate_loading:!1};let ENn={getLoading:e=>e.loading,getList:e=>e.list,getDetail:e=>e.detail},INn={setLoading(e,t){e.loading=t},setList(e,t){e.list=t},setDetail(e,t){e.detail=t}},PNn={list({commit:e},{id:t,filters:n=null}){return e("setLoading",!0),new Promise((o,i)=>{Gs.downloads(t,n).then(r=>{e("setList",r.data.list),e("setLoading",!1),o(r)}).catch(r=>{Fe(r.response,"error"),e("setLoading",!1),i(r)})})},regenerate({state:e,dispatch:t},{id:n,filters:o,invoice:i,dispatchMethod:r}){e.regenerate_loading||(e.regenerate_loading=!0,t("administrationFinanceOrder/regenerate",{invoice:i},{root:!0}).finally(()=>{t(r,{id:n,filters:o}).then(()=>{e.regenerate_loading=!1})}))}};const ANn={namespaced:!0,state:TNn,getters:ENn,mutations:INn,actions:PNn};let IM=jo.pagination.per_page;const DNn=(e,t=IM)=>De.get(Pe("administration.api.finance.order.list",{...e,perPage:t})),xNn=e=>De.post(Pe("administration.api.finance.invoice.regenerate"),{invoice:e}),ONn=e=>De.post(Pe("administration.api.finance.order.pay"),{order:e}),LNn=(e=10,t=1,n="",o={})=>De.get(Pe("administration.api.finance.credit.list",{perPage:e,page:t,search:n,filter:o})),MNn=(e,t=IM)=>De.get(Pe("administration.api.finance.voucher.list",{...e,perPage:t})),NNn=(e,t=IM)=>De.get(Pe("administration.api.finance.author.settlement_payments",{...e,perPage:t})),RNn=(e=10,t=1,n=!1)=>De.get(Pe("administration.api.finance.settlement.index",{perPage:e,page:t,vatPayersOnly:n})),jNn=e=>De.post(Pe("administration.api.finance.settlement.confirm",{user:e})),FNn=e=>De.post(Pe("api.settlement_payment.store",{}),{settlement_id:e}),af={orders:DNn,credits:LNn,vouchers:MNn,settlementPayments:NNn,settlementIndex:RNn,settlementConfirm:jNn,regenerate:xNn,pay:ONn,sendSettlementPayment:FNn},zNn={loading:!1,action_loading:!1,orders:{data:[]}};let UNn={getLoading:e=>e.loading,getActionLoading:e=>e.action_loading,getOrders:e=>e.orders},BNn={setLoading(e,t){e.loading=t},setActionLoading(e,t){e.action_loading=t},setOrders(e,t){e.orders=t},reset(e){e.loading=!1,e.orders={data:[]}}},HNn={orders({commit:e,state:t},{filters:n=null}){if(!t.loading)return e("setLoading",!0),new Promise((o,i)=>{af.orders(n).then(r=>{e("setOrders",r.data.orders),e("setLoading",!1),o(r)}).catch(r=>{Fe(r.response,"error"),e("setLoading",!1),i(r)})})},regenerate({commit:e,state:t},{invoice:n}){if(!t.action_loading)return e("setActionLoading",!0),new Promise((o,i)=>{af.regenerate(n).then(r=>{e("setActionLoading",!1),Fe(r.data.message,"success"),o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),e("setActionLoading",!1),i(r)})})},pay({commit:e,state:t},{order:n}){if(!t.action_loading)return e("setActionLoading",!0),new Promise((o,i)=>{af.pay(n).then(r=>{e("setActionLoading",!1),Fe(r.data.message,"success"),o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),e("setActionLoading",!1),i(r)})})},sendSettlementPayment({commit:e,state:t},{settlement:n}){if(!t.action_loading)return e("setActionLoading",!0),new Promise((o,i)=>{af.sendSettlementPayment(n).then(r=>{e("setActionLoading",!1),Fe(r.data.message,"success"),o(r)}).catch(r=>{Fe(r.response,"error"),e("setActionLoading",!1),i(r)})})}};const VNn={namespaced:!0,state:zNn,getters:UNn,mutations:BNn,actions:HNn},qNn={regenerate_loading:!1,loading:!1,summary:{settlementPayment:0,toPay:0},list:{data:[]},creditLoading:!0,creditPage:1,creditPerPage:10,vatPayersOnly:!1,creditList:{data:[]}};let YNn={getSummaryToPay:e=>e.summary.toPay,getSummarySettlementPayment:e=>e.summary.settlementPayment,getLoading:e=>e.loading,getSearch:e=>e.search,getFilterType:e=>e.filter.type,getFilterState:e=>e.filter.state,getPage:e=>e.page,getList:e=>e.list,getCreditLoading:e=>e.creditLoading,getCreditPage:e=>e.creditPage,getCreditList:e=>e.creditList},WNn={setSummaryToPay(e,t){e.summary.toPay=t},setSummarySettlementPayment(e,t){e.summary.settlementPayment=t},setLoading(e,t){e.loading=t},setSearch(e,t){e.search=t},setFilterType(e,t){e.filter.type=t},setFilterState(e,t){e.filter.state=t},setPage(e,t){e.page=t},setList(e,t){e.list=t},setCreditLoading(e,t){e.creditLoading=t},setCreditPage(e,t){e.creditPage=t},setCreditList(e,t){e.creditList=t},setVatPayersOnly(e,t){e.vatPayersOnly=t}},GNn={settlementPayments({commit:e,state:t},{filters:n=null}){if(!t.loading)return e("setLoading",!0),new Promise((o,i)=>{af.settlementPayments(n).then(r=>{e("setList",r.data.data),e("setSummarySettlementPayment",r.data.amount_sum),e("setLoading",!1),o(r)}).catch(r=>{Fe(r.response,"error"),e("setLoading",!1),i(r)})})},settlementIndex({commit:e,state:t}){return e("setCreditLoading",!0),new Promise((n,o)=>{af.settlementIndex(t.creditPerPage,t.creditPage,t.vatPayersOnly).then(i=>{e("setCreditList",i.data.data),e("setSummaryToPay",i.data.sum),e("setCreditLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setCreditLoading",!1),o(i)})})},settlementConfirm({commit:e,dispatch:t},{userId:n}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((o,i)=>{af.settlementConfirm(n).then(r=>{t("sidebar/close",null,{root:!0}),Fe(r.data.message,"success"),t("settlementIndex"),t("sidebar/open",{type:"settlement-list"},{root:!0}),o(r)}).catch(r=>{e("sidebar/setLoading",!1,{root:!0}),Fe(r.response,"error"),i(r)})})},regenerate({state:e,dispatch:t},{id:n,filters:o,invoice:i,dispatchMethod:r}){e.regenerate_loading||(e.regenerate_loading=!0,t("administrationFinanceOrder/regenerate",{invoice:i},{root:!0}).finally(()=>{t(r,{id:n,filters:o}).then(()=>{e.regenerate_loading=!1})}))}};const ZNn={namespaced:!0,state:qNn,getters:YNn,mutations:WNn,actions:GNn},KNn={loading:!0,search:"",filter:{type:[],state:[]},page:1,perPage:10,list:{data:[]}};let JNn={getLoading:e=>e.loading,getSearch:e=>e.search,getFilterType:e=>e.filter.type,getFilterState:e=>e.filter.state,getPage:e=>e.page,getList:e=>e.list},XNn={setLoading(e,t){e.loading=t},setSearch(e,t){e.search=t},setFilterType(e,t){e.filter.type=t},setFilterState(e,t){e.filter.state=t},setPage(e,t){e.page=t},setList(e,t){e.list=t}},QNn={list({commit:e,state:t}){return e("setLoading",!0),new Promise((n,o)=>{af.credits(t.perPage,t.page,t.search,t.filter).then(i=>{e("setList",i.data.list),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})}};const eRn={namespaced:!0,state:KNn,getters:JNn,mutations:XNn,actions:QNn},tRn=()=>De.get(Pe("administration.api.finance.voucher.index")),nRn=e=>De.post(Pe("administration.api.finance.voucher.add"),e),oRn=e=>De.patch(Pe("administration.api.finance.voucher.edit",e.id),e),iRn=e=>De.delete(Pe("administration.api.finance.voucher.remove",e)),rRn=e=>De.get(Pe("administration.api.finance.voucher.pdf",{id:e})),k8={index:tRn,create:nRn,update:oRn,deletee:iRn,pdf:rRn},sRn={loading:!0,list:{data:[]},edit:null,delete:null,id:0,items:[]};let aRn={getLoading:e=>e.loading,getList:e=>e.list,getEdit:e=>e.edit,getDelete:e=>e.delete,getVouchersData:e=>e.items,loading:e=>e.loading},lRn={setLoading(e,t){e.loading=t},setList(e,t){e.list=t},setEdit(e,t){e.edit=t},setDelete(e,t){e.delete=t},setItems(e,t){e.items=t}},cRn={list({commit:e},{filters:t=null}){return e("setLoading",!0),new Promise((n,o)=>{af.vouchers(t).then(i=>{e("setList",i.data.list),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})},load({commit:e}){return e("setLoading",!0),new Promise((t,n)=>{k8.index().then(o=>{e("setItems",o.data.data),e("setLoading",!1),t(o)}).catch(o=>{e("setLoading",!1),n(o)})})},create({commit:e,dispatch:t},{voucher:n,filters:o=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{k8.create(n).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("list",{filters:o}),i(s)}).catch(s=>{e("sidebar/setLoading",!1,{root:!0}),Fe(s.response,"error"),r(s)})})},update({commit:e,dispatch:t},{voucher:n,filters:o=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{k8.update(n).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("list",{filters:o}),i(s)}).catch(s=>{e("sidebar/setLoading",!1,{root:!0}),Fe(s.response,"error"),r(s)})})},delete({commit:e,dispatch:t},{voucher:n,filters:o=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{k8.deletee(n).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("list",{filters:o}),i(s)}).catch(s=>{e("sidebar/setLoading",!1,{root:!0}),Fe(s.response,"error"),r(s)})})}};const dRn={namespaced:!0,state:sRn,getters:aRn,mutations:lRn,actions:cRn},uRn=()=>De.get(Pe("administration.api.finance.discount.index")),hRn=e=>De.post(Pe("administration.api.finance.discount.add"),e),fRn=e=>De.patch(Pe("administration.api.finance.discount.edit",e.id),e),mRn=e=>De.delete(Pe("administration.api.finance.discount.remove",e)),w8={index:uRn,create:hRn,update:fRn,deletee:mRn},pRn={id:0,items:[],loading:!1};let gRn={getDiscountsData:e=>e.items,getLoading:e=>e.loading,loading:e=>e.loading},vRn={setItems(e,t){e.items=t},setLoading(e,t){e.loading=t}},_Rn={load({commit:e}){return e("setLoading",!0),new Promise((t,n)=>{w8.index().then(o=>{e("setItems",o.data.data),e("setLoading",!1),t(o)}).catch(o=>{e("setLoading",!1),n(o)})})},create({commit:e,dispatch:t},{discount:n,filters:o=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{w8.create(n).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s),t("administrationFinanceVoucher/list",{filters:o},{root:!0}),i(s)}).catch(s=>{e("sidebar/setLoading",!1,{root:!0}),Fe(s),r(s)})})},update({commit:e,dispatch:t},{discount:n,filters:o=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{w8.update(n).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("administrationFinanceVoucher/list",{filters:o},{root:!0}),i(s)}).catch(s=>{e("sidebar/setLoading",!1,{root:!0}),Fe(s.response,"error"),r(s)})})},delete({commit:e,dispatch:t},{discount:n,filters:o=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{w8.deletee(n).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("administrationFinanceVoucher/list",{filters:o},{root:!0}),i(s)}).catch(s=>{e("sidebar/setLoading",!1,{root:!0}),Fe(s.response,"error"),r(s)})})}};const yRn={namespaced:!0,state:pRn,getters:gRn,actions:_Rn,mutations:vRn},bRn={id:0,loading:!1,active_discount:null,future_discount:null};let kRn={getActiveDiscount:e=>e.active_discount,getFutureDiscount:e=>e.future_discount,loading:e=>e.loading},wRn={setItems(e,t){e.items=t},setActiveDiscount(e,t){e.active_discount=t},setFutureDiscount(e,t){e.future_discount=t},setLoading(e,t){e.loading=t}},$Rn={index({commit:e,state:t}){if(!t.loading)return e("setLoading",!0),new Promise((n,o)=>{i_.index().then(i=>{e("setActiveDiscount",i.data.active_discount),e("setFutureDiscount",i.data.future_discount),e("setLoading",!1),n(i)}).catch(i=>{e("setLoading",!1),o(i)})})},create({commit:e,dispatch:t,state:n},{authorDiscount:o}){if(!n.loading)return e("setLoading",!0),new Promise((i,r)=>{i_.create(o).then(s=>{Fe(s),e("setLoading",!1),t("index").then(()=>{i(s)})}).catch(s=>{Fe(s),r(s),e("setLoading",!1)})})},update({commit:e,dispatch:t,state:n},{authorDiscount:o}){if(!n.loading)return e("setLoading",!0),new Promise((i,r)=>{i_.update(o).then(s=>{Fe(s),e("setLoading",!1),t("index").then(()=>{i(s)})}).catch(s=>{Fe(s),r(s),e("setLoading",!1)})})},remove({commit:e,dispatch:t,state:n},{id:o}){if(!n.loading)return e("setLoading",!0),new Promise((i,r)=>{i_.remove(o).then(s=>{Fe(s),e("setLoading",!1),t("index").then(()=>{i(s)})}).catch(s=>{Fe(s),r(s),e("setLoading",!1)})})}};const CRn={namespaced:!0,state:bRn,getters:kRn,actions:$Rn,mutations:wRn};let SRn=jo.pagination.per_page;const TRn=()=>De.get(Pe("administration.api.content.section.recent")),ERn=()=>De.get(Pe("administration.api.content.section.shown")),IRn=(e,t=SRn)=>De.get(Pe("administration.api.content.section.hidden",{...e,perPage:t})),PRn=e=>De.post(Pe("administration.api.content.section.create"),{data:e}),ARn=e=>De.patch(Pe("administration.api.content.section.update",{section:e.slug}),{data:e}),DRn=e=>De.delete(Pe("administration.api.content.section.delete",{section:e})),xRn=e=>De.patch(Pe("administration.api.content.section.reorder",{}),{ids:e}),ORn=e=>De.patch(Pe("administration.api.content.section.show",{section:e})),LRn=e=>De.patch(Pe("administration.api.content.section.hide",{section:e})),MRn=e=>De.get(Pe("administration.api.content.section.products",{...e})),NRn=(e,t)=>De.post(Pe("administration.api.content.section.productsAdded",{...t}),{products:e}),RRn=()=>De.get(Pe("administration.api.content.section.categories")),Nc={recent:TRn,shown:ERn,hidden:IRn,create:PRn,update:ARn,deletee:DRn,reorder:xRn,show:ORn,hide:LRn,products:MRn,productsAdded:NRn,categories:RRn},jRn={loadingRecent:!0,recent:{data:[]},loadingShown:!0,shown:{data:[]},loadingHidden:!0,hidden:{data:[]},detail:{id:0,title:"",description:"",type:null,text_color:"#1B2A4E",productHomepageCount:5,slug:"",category:null,products:[],categories:[],class:null,subjects:[],active:!1,card_img:null,catalog_img:null,sections:[]},productsLoading:!0,productsFilters:{search:"",perPage:5,page:1},products:{data:[]},productsAddedFilters:{search:"",perPage:5,page:1},productsAdded:{data:[]},categories:[]};let FRn={getLoadingRecent:e=>e.loadingRecent,getLoadingShown:e=>e.loadingShown,getLoadingHidden:e=>e.loadingHidden,getList:e=>e.recent.concat(e.shown,e.hidden),getRecent:e=>e.recent,getShown:e=>e.shown,getHidden:e=>e.hidden,getDetail:e=>e.detail,getDetailTitle:e=>e.detail.title,getDetailDescription:e=>e.detail.description,getDetailType:e=>e.detail.type,getDetailCategory:e=>e.detail.category,getDetailCategories:e=>e.detail.categories,getDetailProductHomepageCount:e=>e.detail.productHomepageCount,getDetailProducts:e=>e.detail.products,getProductsSearch:e=>e.productsFilters.search,getProductsAddedSearch:e=>e.productsAddedFilters.search,getProductsLoading:e=>e.productsLoading,getProducts:e=>e.products,getProductsAdded:e=>e.productsAdded,getCategories:e=>e.categories,getDetailClass:e=>e.detail.class,getDetailSubjects:e=>e.detail.subjects,getDetailCardImg:e=>e.detail.card_img,getDetailCatalogImg:e=>e.detail.catalog_img,getDetailSections:e=>e.detail.sections,getDetailTextColor:e=>e.detail.text_color,isDetailEmpty:e=>!(e.detail&&e.detail.id!==0),isProductAdded:(e,t)=>n=>t.isDetailEmpty?!1:!!e.detail.products.find(o=>o.id===n)},zRn={setLoading(e,t){e.loadingRecent=t,e.loadingShown=t,e.loadingHidden=t},setLoadingRecent(e,t){e.loadingRecent=t},setLoadingShown(e,t){e.loadingShown=t},setLoadingHidden(e,t){e.loadingHidden=t},setRecent(e,t){e.recent=t},setShown(e,t){e.shown=t},setHidden(e,t){e.hidden=t},setDetail(e,t){e.detail=t},setDetailTitle(e,t){e.detail.title=t},setDetailDescription(e,t){e.detail.description=t},setDetailType(e,t){e.detail.type=t},setDetailProductHomepageCount(e,t){e.detail.productHomepageCount=t},setDetailCategory(e,t){e.detail.category=t},setDetailProducts(e,t){e.detail.products=t},setDetailCategories(e,t){e.detail.categories=t},setProductsLoading(e,t){e.productsLoading=t},setProductsSearch(e,t){e.productsFilters.search=t},setProductsPage(e,t){e.productsFilters.page=t},setProductsAddedSearch(e,t){e.productsAddedFilters.search=t},setProductsAddedPage(e,t){e.productsAddedFilters.page=t},setProducts(e,t){e.products=t},setProductsAdded(e,t){e.productsAdded=t},setCategories(e,t){e.categories=t},setDetailClass(e,t){e.detail.class=t},setDetailSubjects(e,t){e.detail.subjects=t},setDetailCardImg(e,t){e.detail.card_img=t},setDetailCatalogImg(e,t){e.detail.catalog_img=t},setDetailTextColor(e,t){e.detail.text_color=t},setDetailSections(e,t){e.detail.sections=t},resetDetail(e){e.detail={id:0,title:"",description:"",type:null,text_color:"#1B2A4E",productHomepageCount:5,slug:"",products:[],categories:[],class:null,subjects:[],active:!1,card_img:null,catalog_img:null,sections:[]}}},URn={recent({commit:e}){return e("setLoadingRecent",!0),new Promise((t,n)=>{Nc.recent().then(o=>{e("setRecent",o.data.list),e("setLoadingRecent",!1),t(o)}).catch(o=>{Fe(o.response,"error"),e("setLoadingRecent",!1),n(o)})})},shown({commit:e}){return e("setLoadingShown",!0),new Promise((t,n)=>{Nc.shown().then(o=>{e("setShown",o.data.list),e("setLoadingShown",!1),t(o)}).catch(o=>{Fe(o.response,"error"),e("setLoadingShown",!1),n(o)})})},hidden({commit:e},{filters:t=null}){return e("setLoadingHidden",!0),new Promise((n,o)=>{Nc.hidden(t).then(i=>{e("setHidden",i.data.list),e("setLoadingHidden",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoadingHidden",!1),o(i)})})},create({commit:e,dispatch:t,state:n},{filters:o=null}){e("sidebar/setLoading",!0,{root:!0}),Nc.create(n.detail).then(i=>{t("sidebar/close",{},{root:!0}),Fe(i.data.message,"success"),t("recent"),t("shown"),t("hidden",{filters:o}),e("resetDetail")}).catch(i=>{var r,s;e("sidebar/setLoading",!0,{root:!0}),(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error")})},update({commit:e,dispatch:t,state:n},{filters:o=null}){e("sidebar/setLoading",!0,{root:!0}),Nc.update(n.detail).then(i=>{t("sidebar/close",{},{root:!0}),t("recent"),t("shown"),t("hidden",{filters:o}),e("resetDetail"),Fe(i.data.message,"success")}).catch(i=>{var r,s;e("sidebar/setLoading",!1,{root:!0}),(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error")})},delete({commit:e,dispatch:t,state:n},{reload:o=!0,filters:i=null}){e("sidebar/setLoading",!0,{root:!0}),Nc.deletee(n.detail.slug).then(r=>{t("sidebar/close",{},{root:!0}),Fe(r.data.message,"success"),o&&(t("recent"),t("shown"),t("hidden",{filters:i}),e("resetDetail"))}).catch(r=>{var s,a;e("sidebar/setLoading",!1,{root:!0}),(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error")})},reorder({commit:e},t){e("setShown",t);let n=t.map(o=>o.id);Nc.reorder(n).then(o=>{Fe(o.data.message,"success")}).catch(o=>{var i,r;(r=(i=o==null?void 0:o.response)==null?void 0:i.data)!=null&&r.message&&Fe(o.response.data.message,"error")})},show({commit:e,dispatch:t},{slug:n,filters:o=null}){e("setLoading",!0),Nc.show(n).then(i=>{e("setLoading",!1),t("recent"),t("shown"),t("hidden",{filters:o}),Fe(i.data.message,"success")}).catch(i=>{var r,s;e("setLoading",!1),(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error")})},hide({commit:e,dispatch:t},{slug:n,filters:o=null}){e("setLoading",!0),Nc.hide(n).then(i=>{e("setLoading",!1),t("recent"),t("shown"),t("hidden",{filters:o}),Fe(i.data.message,"success")}).catch(i=>{var r,s;e("setLoading",!1),(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error")})},addDetailProduct({state:e},{id:t}){e.detail.products.push(t),Fe("Materiál pĹ™idán","success")},removeDetailProduct({state:e},{id:t}){let n=e.detail.products.indexOf(t);e.detail.products.splice(n,1),e.detail.products.length/e.productsAddedFilters.perPage<=e.productsAddedFilters.page-1&&e.productsAddedFilters.page!=1&&(e.productsAddedFilters.page-=1),Fe("Materiál odebrán","success")},products({commit:e,state:t}){return e("setProductsLoading",!0),new Promise((n,o)=>{Nc.products(t.productsFilters).then(i=>{e("setProducts",i.data),e("setProductsLoading",!1),n(i.data)}).catch(i=>{var r,s;(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error"),e("setProductsLoading",!1),o(i.response)})})},productsAdded({commit:e,state:t}){return e("setProductsLoading",!0),new Promise((n,o)=>{Nc.productsAdded(t.detail.products,t.productsAddedFilters).then(i=>{e("setProductsAdded",i.data),e("setProductsLoading",!1),n(i.data)}).catch(i=>{var r,s;(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error"),e("setProductsLoading",!1),o(i.response)})})},categories({commit:e}){return new Promise((t,n)=>{Nc.categories().then(o=>{e("setCategories",o.data.categories),t(o.data)}).catch(o=>{var i,r;(r=(i=o==null?void 0:o.response)==null?void 0:i.data)!=null&&r.message&&Fe(o.response.data.message,"error"),n(o.response)})})}};const BRn={namespaced:!0,state:jRn,getters:FRn,mutations:zRn,actions:URn};let HRn=jo.pagination.per_page;const VRn=()=>De.get(Pe("administration.api.content.infobox.recent")),qRn=()=>De.get(Pe("administration.api.content.infobox.shown")),YRn=(e,t=HRn)=>De.get(Pe("administration.api.content.infobox.hidden",{...e,perPage:t})),WRn=e=>De.post(Pe("administration.api.content.infobox.create",{infobox:e})),GRn=e=>De.patch(Pe("administration.api.content.infobox.update",{infobox:e.id}),{data:e}),ZRn=e=>De.delete(Pe("administration.api.content.infobox.delete",{infobox:e})),KRn=e=>De.patch(Pe("administration.api.content.infobox.show",{infobox:e})),JRn=e=>De.patch(Pe("administration.api.content.infobox.hide",{infobox:e})),um={recent:VRn,shown:qRn,hidden:YRn,create:WRn,update:GRn,deletee:ZRn,show:KRn,hide:JRn},XRn={loadingRecent:!0,recent:{data:[]},loadingShown:!0,shown:{data:[]},loadingHidden:!0,hidden:{data:[]},detail:{id:0,type:"info",is_only_for_authors:!1,title:"",content:"",link_title:"",link_href:"",starts_at:null,ends_at:null}};let QRn={getLoadingRecent:e=>e.loadingRecent,getLoadingShown:e=>e.loadingShown,getLoadingHidden:e=>e.loadingHidden,getRecent:e=>e.recent,getShown:e=>e.shown,getHidden:e=>e.hidden,getDetail:e=>e.detail,getDetailType:e=>e.detail.type,getDetailIsOnlyForAuthors:e=>e.detail.is_only_for_authors,getDetailTitle:e=>e.detail.title,getDetailContent:e=>e.detail.content,getDetailLinkTitle:e=>e.detail.link_title,getDetailLinkHref:e=>e.detail.link_href,getDetailStartsAt:e=>e.detail.starts_at,getDetailEndsAt:e=>e.detail.ends_at},ejn={setLoading(e,t){e.loadingRecent=t,e.loadingShown=t,e.loadingHidden=t},setLoadingRecent(e,t){e.loadingRecent=t},setLoadingShown(e,t){e.loadingShown=t},setLoadingHidden(e,t){e.loadingHidden=t},setRecent(e,t){e.recent=t},setShown(e,t){e.shown=t},setHidden(e,t){e.hidden=t},setDetail(e,t){e.detail=t},setDetailType(e,t){e.detail.type=t},setDetailIsOnlyForAuthors(e,t){e.detail.is_only_for_authors=t},setDetailTitle(e,t){e.detail.title=t},setDetailContent(e,t){e.detail.content=t},setDetailLinkTitle(e,t){e.detail.link_title=t},setDetailLinkHref(e,t){e.detail.link_href=t},setDetailStartsAt(e,t){e.detail.starts_at=t},setDetailEndsAt(e,t){e.detail.ends_at=t},resetDetail(e){e.detail={id:0,type:"info",is_only_for_authors:!1,title:"",content:"",link_title:"",link_href:"",starts_at:null,ends_at:null}}},tjn={recent({commit:e}){return e("setLoadingRecent",!0),new Promise((t,n)=>{um.recent().then(o=>{e("setRecent",o.data.list),e("setLoadingRecent",!1),t(o)}).catch(o=>{Fe(o.response,"error"),e("setLoadingRecent",!1),n(o)})})},shown({commit:e}){return e("setLoadingShown",!0),new Promise((t,n)=>{um.shown().then(o=>{e("setShown",o.data.list),e("setLoadingShown",!1),t(o)}).catch(o=>{Fe(o.response,"error"),e("setLoadingShown",!1),n(o)})})},hidden({commit:e},{filters:t=null}){return e("setLoadingHidden",!0),new Promise((n,o)=>{um.hidden(t).then(i=>{e("setHidden",i.data.list),e("setLoadingHidden",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoadingHidden",!1),o(i)})})},show({commit:e,dispatch:t},{id:n,filters:o=null}){e("setLoading",!0),um.show(n).then(i=>{e("setLoading",!1),t("recent"),t("shown"),t("hidden",{filters:o}),Fe(i.data.message,"success")}).catch(i=>{var r,s;e("setLoading",!1),(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error")})},hide({commit:e,dispatch:t},{id:n,filters:o=null}){e("setLoading",!0),um.hide(n).then(i=>{t("sidebar/close",{},{root:!0}),Fe(i.data.message,"success"),t("recent"),t("shown"),t("hidden",{filters:o})}).catch(i=>{var r,s;e("sidebar/setLoading",!1,{root:!0}),(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error")})},create({commit:e,dispatch:t,state:n},{filters:o=null}){e("sidebar/setLoading",!0,{root:!0}),um.create(n.detail).then(i=>{t("sidebar/close",{},{root:!0}),Fe(i.data.message,"success"),t("recent"),t("shown"),t("hidden",{filters:o}),e("resetDetail")}).catch(i=>{var r,s;e("sidebar/setLoading",!1,{root:!0}),(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error")})},update({commit:e,dispatch:t,state:n},{filters:o=null}){e("sidebar/setLoading",!0,{root:!0}),um.update(n.detail).then(i=>{t("sidebar/close",{},{root:!0}),Fe(i.data.message,"success"),t("recent"),t("shown"),t("hidden",{filters:o}),e("resetDetail")}).catch(i=>{var r,s;e("sidebar/setLoading",!1,{root:!0}),(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error")})},delete({commit:e,dispatch:t},{id:n,filters:o=null}){e("sidebar/setLoading",!0,{root:!0}),um.deletee(n).then(i=>{t("sidebar/close",{},{root:!0}),Fe(i.data.message,"success"),t("recent"),t("shown"),t("hidden",{filters:o}),e("resetDetail")}).catch(i=>{var r,s;e("sidebar/setLoading",!1,{root:!0}),(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error")})}};const njn={namespaced:!0,state:XRn,getters:QRn,mutations:ejn,actions:tjn};let ojn=jo.pagination.per_page;const ijn=(e=null,t,n=ojn)=>De.get(Pe("administration.api.content.category.list",{type:e,...t,perPage:n})),rjn=(e,t)=>De.post(Pe("administration.api.content.category.create",{category:e,type:t})),sjn=e=>De.patch(Pe("administration.api.content.category.update",{category:e.id}),{data:e}),ajn=e=>De.get(Pe("administration.api.content.category.delete.info",{category:e})),ljn=e=>De.delete(Pe("administration.api.content.category.delete",{category:e})),o0={list:ijn,create:rjn,update:sjn,deleteInfo:ajn,deletee:ljn},cjn={loading:!0,search:"",list:[],detail:{id:null,name:null,children:[]},delete_info:{products_count:0,children_count:0},delete_info_loading:!1};let djn={getLoading:e=>e.loading,getSearch:e=>e.search,getList:e=>e.list,getDetail:e=>e.detail,getDeleteInfo:e=>e.delete_info,getDeleteInfoLoading:e=>e.delete_info_loading,getDetailName:e=>e.detail.name,getDetailChildren:e=>e.detail.children},ujn={setLoading(e,t){e.loading=t},setSearch(e,t){e.search=t},setList(e,t){e.list=t},resetList(e){e.list=[]},setDetail(e,t){e.detail=t},resetDetail(e){e.detail={id:null,name:null,children:[]}},refreshDetail(e,t){e.detail=e.list.find(n=>n.id===t)},setDetailName(e,t){e.detail.name=t},setDetailChildren(e,t){e.detail.children=t}},hjn={list({commit:e},{type:t,filters:n=null}){return e("setLoading",!0),new Promise((o,i)=>{o0.list(t,n).then(r=>{e("setList",r.data.list),e("setLoading",!1),o(r)}).catch(r=>{Fe(r.response,"error"),e("setLoading",!1),i(r)})})},create({commit:e,dispatch:t,state:n},{type:o,filters:i=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((r,s)=>{o0.create(n.detail,o).then(a=>{t("sidebar/close",{},{root:!0}),Fe(a.data.message,"success"),e("resetDetail"),t("list",{type:o,filters:i}),r(a)}).catch(a=>{var l,d;e("sidebar/setLoading",!1,{root:!0}),(d=(l=a==null?void 0:a.response)==null?void 0:l.data)!=null&&d.message&&Fe(a.response.data.message,"error"),s(a)})})},update({commit:e,dispatch:t,state:n},{subcategory:o=null,type:i,close:r=!0,filters:s=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((a,l)=>{o0.update(o||n.detail).then(d=>{Fe(d.data.message,"success"),r?t("sidebar/close",{},{root:!0}):e("sidebar/setLoading",!1,{root:!0}),t("list",{type:i,filters:s}).then(()=>{e("refreshDetail",n.detail.id),a(d)})}).catch(d=>{e("sidebar/setLoading",!1,{root:!0}),Fe(d.response,"error"),l(d)})})},delete({commit:e,dispatch:t,state:n},{id:o,type:i,filters:r=null}){return e("sidebar/setLoading",!0,{root:!0}),new Promise((s,a)=>{o0.deletee(o).then(l=>{t("sidebar/close",{},{root:!0}),Fe(l.data.message,"success"),t("list",{type:i,filters:r}).then(()=>{n.detail.parent_id?(e("refreshDetail",n.detail.parent_id),t("sidebar/open",{type:"category-update"},{root:!0})):e("resetDetail")}),s(l)}).catch(l=>{var d,u;e("sidebar/setLoading",!1,{root:!0}),(u=(d=l==null?void 0:l.response)==null?void 0:d.data)!=null&&u.message&&Fe(l.response.data.message,"error"),a(l)})})},deleteInfo({state:e},{id:t}){if(!e.delete_info_loading)return e.delete_info_loading=!0,new Promise((n,o)=>{o0.deleteInfo(t).then(i=>{e.delete_info.products_count=i.data.products_count,e.delete_info.children_count=i.data.children_count,e.delete_info_loading=!1,n(i)}).catch(i=>{var r,s;(s=(r=i==null?void 0:i.response)==null?void 0:r.data)!=null&&s.message&&Fe(i.response.data.message,"error"),e.delete_info_loading=!1,o(i)})})}};const fjn={namespaced:!0,state:cjn,getters:djn,mutations:ujn,actions:hjn},mjn=()=>De.get(Pe("administration.api.content.category.class-subject.list")),pjn=(e,t)=>De.post(Pe("administration.api.content.category.class-subject.add",{parent:e,category:t})),gjn=(e,t)=>De.delete(Pe("administration.api.content.category.class-subject.remove",{parent:e,category:t})),eE={list:mjn,add:pjn,remove:gjn},vjn={loading:!0,list:[],classIndex:null,subjectCategoryIndex:null,subjectIndex:null,class:{},subjectCategory:{},subject:{},subsubject:{}};let k0={getLoading:e=>e.loading,getList:e=>e.list,getSubjectCategoryList:e=>e.classIndex!==null?e.list[e.classIndex].children:[],getSubjectList:e=>e.classIndex!==null&&e.subjectCategoryIndex!==null?e.list[e.classIndex].children[e.subjectCategoryIndex].children:[],getSubsubjectList:e=>e.classIndex!==null&&e.subjectCategoryIndex!==null&&e.subjectIndex!==null?e.list[e.classIndex].children[e.subjectCategoryIndex].children[e.subjectIndex].children:[],getClassIndex:e=>e.classIndex,getSubjectCategoryIndex:e=>e.subjectCategoryIndex,getSubjectIndex:e=>e.subjectIndex,getClass:e=>e.class,getSubjectCategory:e=>e.subjectCategory,getSubject:e=>e.subject,getSubsubject:e=>e.subsubject,getParentId:(e,t)=>t==="subjectCategory"?e.class.class_subject_id:t==="subject"?e.subjectCategory.class_subject_id:t==="subsubject"?e.subject.class_subject_id:null,getCategoryId:(e,t)=>t==="subjectCategory"?e.subjectCategory.id:t==="subject"?e.subject.id:t==="subsubject"?e.subsubject.id:null},_jn={setLoading(e,t){e.loading=t},setList(e,t){e.list=t},setClassIndex(e,t){e.classIndex=t},setSubjectCategoryIndex(e,t){e.subjectCategoryIndex=t},setSubjectIndex(e,t){e.subjectIndex=t},setClass(e,t){e.class=t,e.subjectCategory={},e.subject={},e.subsubject={}},setSubjectCategory(e,t){e.subjectCategory=t,e.subject={},e.subsubject={}},setSubject(e,t){e.subject=t,e.subsubject={}},setSubsubject(e,t){e.subsubject=t},resetDetail(e,t){t==="subjectCategory"?(e.subjectCategory={},e.subject={},e.subsubject={}):t==="subject"?(e.subject={},e.subsubject={}):t==="subsubject"&&(e.subsubject={})}},yjn={list({commit:e}){return e("setLoading",!0),new Promise((t,n)=>{eE.list().then(o=>{e("setList",o.data.list),e("setLoading",!1),t(o)}).catch(o=>{Fe(o.response,"error"),e("setLoading",!1),n(o)})})},add({state:e,commit:t,dispatch:n},{type:o}){t("sidebar/setLoading",!0,{root:!0});let i=k0.getParentId(e,o),r=k0.getCategoryId(e,o);return new Promise((s,a)=>{eE.add(i,r).then(l=>{n("sidebar/close",{},{root:!0}),Fe(l.data.message,"success"),n("list"),t("resetDetail",o),s(l)}).catch(l=>{t("sidebar/setLoading",!1,{root:!0}),Fe(l.response,"error"),a(l)})})},remove({state:e,commit:t,dispatch:n},{type:o}){t("sidebar/setLoading",!0,{root:!0});let i=k0.getParentId(e,o),r=k0.getCategoryId(e,o);return new Promise((s,a)=>{eE.remove(i,r).then(l=>{n("sidebar/close",{},{root:!0}),Fe(l.data.message,"success"),n("list"),t("resetDetail",o),s(l)}).catch(l=>{t("sidebar/setLoading",!1,{root:!0}),Fe(l.response,"error"),a(l)})})}};const bjn={namespaced:!0,state:vjn,getters:k0,mutations:_jn,actions:yjn},kjn=()=>De.get(Pe("administration.api.content.product_upload_lock.index_recent")),wjn=()=>De.get(Pe("administration.api.content.product_upload_lock.index_shown")),$jn=()=>De.get(Pe("administration.api.content.product_upload_lock.index_hidden")),Cjn=e=>De.post(Pe("administration.api.content.product_upload_lock.create"),e),Sjn=(e,t)=>De.patch(Pe("administration.api.content.product_upload_lock.update",{productUploadLock:e}),t),Tjn=e=>De.delete(Pe("administration.api.content.product_upload_lock.delete",{productUploadLock:e})),Tv={indexRecent:kjn,indexShown:wjn,indexHidden:$jn,create:Cjn,update:Sjn,deletee:Tjn},Ejn={list:{recent:[],shown:[],hidden:[]},loading:{recent:!1,shown:!1,hidden:!1},detail:{id:null,title:null,description:"",valid_from:null,valid_to:null,is_shown:null}},Ijn={getListRecent:e=>e.list.recent,getListShown:e=>e.list.shown,getListHidden:e=>e.list.hidden,getLoadingRecent:e=>e.loading.recent,getLoadingShown:e=>e.loading.shown,getLoadingHidden:e=>e.loading.hidden,getDetail:e=>e.detail,getDetailTitle:e=>e.detail.title,getDetailDescription:e=>e.detail.description,getDetailValidFrom:e=>e.detail.valid_from,getDetailValidTo:e=>e.detail.valid_to,getDetailIsShown:e=>e.detail.is_shown,getDetailImage:e=>e.detail.image},Pjn={setListRecent(e,t){e.list.recent=t},setListShown(e,t){e.list.shown=t},setListHidden(e,t){e.list.hidden=t},setDetail(e,t){e.detail=t},resetDetail(e){e.detail={id:null,title:null,description:""}},setLoadingRecent(e,t){e.loading.recent=t},setLoadingShown(e,t){e.loading.shown=t},setLoadingHidden(e,t){e.loading.hidden=t},setDetailTitle(e,t){e.detail.title=t},setDetailDescription(e,t){e.detail.description=t},setDetailValidFrom(e,t){e.detail.valid_from=t},setDetailValidTo(e,t){e.detail.valid_to=t},setDetailIsShown(e,t){e.detail.is_shown=t},setDetailImage(e,t){e.detail.image=t}},Ajn={indexRecent({commit:e}){return e("setLoadingRecent",!0),new Promise((t,n)=>{Tv.indexRecent().then(o=>{e("setListRecent",o.data),t(o)}).catch(o=>{console.error("Error fetching recent product upload lock list:",o),n(o)}).finally(()=>{e("setLoadingRecent",!1)})})},indexShown({commit:e}){return e("setLoadingShown",!0),new Promise((t,n)=>{Tv.indexShown().then(o=>{e("setListShown",o.data),t(o)}).catch(o=>{console.error("Error fetching shown product upload lock list:",o),n(o)}).finally(()=>{e("setLoadingShown",!1)})})},indexHidden({commit:e}){return e("setLoadingHidden",!0),new Promise((t,n)=>{Tv.indexHidden().then(o=>{e("setListHidden",o.data),t(o)}).catch(o=>{console.error("Error fetching hidden product upload lock list:",o),n(o)}).finally(()=>{e("setLoadingHidden",!1)})})},create({commit:e,dispatch:t,state:n,rootState:o}){if(!o.sidebar.loading)return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{Tv.create(n.detail).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("indexRecent"),e("resetDetail"),i(s)}).catch(s=>{var a,l;e("sidebar/setLoading",!1,{root:!0}),(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),r(s)})})},update({commit:e,dispatch:t,state:n,rootState:o}){if(!o.sidebar.loading)return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{Tv.update(n.detail.id,n.detail).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("indexRecent"),t("indexShown"),t("indexHidden"),e("resetDetail"),i(s)}).catch(s=>{var a,l;e("sidebar/setLoading",!1,{root:!0}),(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),r(s)})})},delete({commit:e,dispatch:t,state:n,rootState:o}){if(!o.sidebar.loading)return e("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{Tv.deletee(n.detail.id).then(s=>{t("sidebar/close",{},{root:!0}),Fe(s.data.message,"success"),t("indexRecent"),t("indexShown"),t("indexHidden"),e("resetDetail"),i(s)}).catch(s=>{var a,l;e("sidebar/setLoading",!1,{root:!0}),(l=(a=s==null?void 0:s.response)==null?void 0:a.data)!=null&&l.message&&Fe(s.response.data.message,"error"),r(s)})})}},Djn={namespaced:!0,state:Ejn,getters:Ijn,mutations:Pjn,actions:Ajn},xjn=e=>De.get(Pe("administration.api.message.index",{...e})),Ojn=(e,t)=>De.get(Pe("administration.api.message.show",{conversation:e,showAll:t})),Ljn=(e,t)=>De.post(Pe("administration.api.message.send",{user:t}),{...e}),Mjn=e=>De.get(Pe("administration.api.message.find",{user:e})),$8={list:xjn,detail:Ojn,sendMessage:Ljn,findConversation:Mjn},Njn={list:{0:{data:[{id:0,last_activity_date:null,last_activity_time:null,last_message:null,unread_messages_count:0,user:{email:null,first_name:null,id:0,image_thumbnail:null,last_name:null,role:null}}]}},loading:!1,detail:{id:null,user:{id:0,image_thumbnail:"",first_name:"",last_name:"",email:"",role:null,number_of_selling_products:"",school:null}}};let Rjn={getListData:e=>({list:e.list,page:e.page,search:e.search}),getList:e=>e.list,loading:e=>e.loading,getDetail:e=>e.detail},jjn={setList(e,t){e.list=t},toggleLoading(e){e.loading=!e.loading},setLoading(e,t){e.loading=t},setDetail(e,t){e.detail=t}},Fjn={list({commit:e},{filters:t=null}){e("setLoading",!0),$8.list(t).then(n=>{e("setList",n.data.conversations),e("setLoading",!1)}).catch(()=>{e("setLoading",!1)})},sendMessage({commit:e},{messageData:t,userId:n}){return e("setLoading",!0),new Promise((o,i)=>{$8.sendMessage(t,n).then(r=>{Fe(r.data.message,"success"),e("setLoading",!1),o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})},detail({commit:e},{detailId:t,showAll:n=!1}){return new Promise((o,i)=>{$8.detail(t,n).then(r=>{e("setDetail",{id:t,user:r.data.user}),o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),i(r)})})},findDetail({commit:e,state:t},{userId:n}){return n?(e("setLoading",!0),new Promise((o,i)=>{$8.findConversation(n).then(r=>{t.conversation.id=r.data.conversation_id,e("setLoading",!1),o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})):new Promise((o,i)=>{i()})},markAsRead({state:e},{conversation_id:t}){if(e.list.data){let n=e.list.data.findIndex(o=>o.id===t);n>-1&&(e.list.data[n].unread_messages_count=0)}},updateList({commit:e},{list:t}){e("setList",t)},updateSearch({commit:e},{search:t}){e("setSearch",t)},updatePage({commit:e},{page:t}){e("setPage",t)},toggleLoading({commit:e}){e("toggleLoading")},setDetailId({state:e},{detailId:t}){e.detail.id=t}};const zjn={namespaced:!0,state:Njn,getters:Rjn,actions:Fjn,mutations:jjn},Ujn=(e=1,t=null)=>De.get(Pe("administration.api.message.index",{page:e,search:t})),Bjn=(e,t)=>De.get(Pe("administration.api.message.show",{conversation:e,showAll:t})),Hjn=(e,t)=>De.post(Pe("administration.api.message.send",{user:t}),{...e}),Vjn=e=>De.get(Pe("administration.api.message.find",{user:e})),i0={index:Ujn,loadConversation:Bjn,sendMessage:Hjn,findConversation:Vjn},qjn={conversations:{0:{data:[{id:0,last_activity_date:null,last_activity_time:null,last_message:null,unread_messages_count:0,user:{email:null,first_name:null,id:0,image_thumbnail:null,last_name:null,role:null}}]}},loading:!1,page:1,query:null,conversation:{id:null,user:{id:0,image_thumbnail:"",first_name:"",last_name:"",email:"",role:null,number_of_selling_products:"",school:null}}};let Yjn={getConversationsData:e=>({conversations:e.conversations,page:e.page,query:e.query}),getConversations:e=>e.conversations,getPage:e=>e.page,getQuery:e=>e.query,loading:e=>e.loading,getConversation:e=>e.conversation},Wjn={setConversations(e,t){e.conversations=t},setQuery(e,t){e.query=t},setPage(e,t){e.page=t},toggleLoading(e){e.loading=!e.loading},setLoading(e,t){e.loading=t},setConversation(e,t){e.conversation=t},setConversationId(e,t){e.conversation.id=t}},Gjn={load({commit:e}){e("setLoading",!0),i0.index().then(t=>{e("setConversations",t.data.conversations),e("setLoading",!1)}).catch(()=>{e("setLoading",!1)})},loadFiltered({commit:e,state:t}){e("setLoading",!0),i0.index(t.page,t.query).then(n=>{e("setConversations",n.data.conversations),e("setLoading",!1)}).catch(()=>{e("setLoading",!1)})},sendMessage({commit:e},{messageData:t,userId:n}){return e("setLoading",!0),new Promise((o,i)=>{i0.sendMessage(t,n).then(r=>{Fe(r.data.message,"success"),e("setLoading",!1),o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})},loadConversation({commit:e},{conversationId:t,showAll:n=!1}){return new Promise((o,i)=>{i0.loadConversation(t,n).then(r=>{e("setConversation",{id:t,user:r.data.user}),o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),i(r)})})},findConversation({commit:e,state:t},{userId:n}){return n?(e("setLoading",!0),new Promise((o,i)=>{i0.findConversation(n).then(r=>{t.conversation.id=r.data.conversation_id,e("setLoading",!1),o(r)}).catch(r=>{var s,a;(a=(s=r==null?void 0:r.response)==null?void 0:s.data)!=null&&a.message&&Fe(r.response.data.message,"error"),e("setLoading",!1),i(r)})})):new Promise((o,i)=>{i()})},updateConversations({commit:e},{conversations:t}){e("setConversations",t)},updateQuery({commit:e},{query:t}){e("setQuery",t)},updatePage({commit:e},{page:t}){e("setPage",t)},toggleLoading({commit:e}){e("toggleLoading")},setConversationId({state:e},{conversationId:t}){e.conversation.id=t}};const Zjn={namespaced:!0,state:qjn,getters:Yjn,actions:Gjn,mutations:Wjn};let Kjn=jo.pagination.per_page;const Jjn=(e,t=Kjn)=>De.get(Pe("administration.api.custom_notification.index",{...e,perPage:t})),Xjn=e=>De.post(Pe("administration.api.custom_notification.create"),{data:e}),Qjn=e=>De.patch(Pe("administration.api.custom_notification.update",{notification:e.id}),{data:e}),eFn=e=>De.delete(Pe("administration.api.custom_notification.delete",{notification:e})),C8={index:Jjn,create:Xjn,update:Qjn,deletee:eFn},tFn={list:[],detail:{id:null,title:null,type:"custom_notification",content:null,created_at:null,published_at:null,published_at_iso:null},loading:!1};let nFn={getDetailTitle:e=>e.detail.title,getDetailContent:e=>e.detail.content,getDetailPublishedAt:e=>e.detail.published_at_iso},oFn={setList(e,t){e.list=t},setDetail(e,t){e.detail=t},setDetailTitle(e,t){e.detail.title=t},setDetailContent(e,t){e.detail.content=t},setDetailPublishedAt(e,t){e.detail.published_at_iso=t,e.detail.published_at=mt(t).format("DD. MM. YYYY")},resetDetail(e){e.detail={id:null,title:null,type:"custom_notification",content:null,created_at:null,published_at:null,published_at_iso:null}},setLoading(e,t){e.loading=t}},iFn={index({commit:e},{filters:t=null}){return e("setLoading",!0),new Promise((n,o)=>{C8.index(t).then(i=>{e("setList",i.data.list),e("setLoading",!1),n(i)}).catch(i=>{e("setLoading",!1),o(i)})})},create({state:e,commit:t,dispatch:n},{filters:o=null}){return t("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{C8.create(e.detail).then(s=>{t("resetDetail"),Fe(s.data.message,"success"),n("index",{filters:o}),n("sidebar/close",{},{root:!0}),i(s)}).catch(s=>{t("sidebar/setLoading",!1,{root:!0}),r(s)})})},update({state:e,commit:t,dispatch:n},{filters:o=null}){return t("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{C8.update(e.detail).then(s=>{t("resetDetail"),Fe(s.data.message,"success"),n("index",{filters:o}),n("sidebar/close",{},{root:!0}),i(s)}).catch(s=>{t("sidebar/setLoading",!1,{root:!0}),r(s)})})},delete({state:e,commit:t,dispatch:n},{filters:o=null}){return t("sidebar/setLoading",!0,{root:!0}),new Promise((i,r)=>{C8.deletee(e.detail.id).then(s=>{t("resetDetail"),Fe(s.data.message,"success"),n("index",{filters:o}),n("sidebar/close",{},{root:!0}),i(s)}).catch(s=>{t("sidebar/setLoading",!1,{root:!0}),r(s)})})}};const rFn={namespaced:!0,state:tFn,getters:nFn,actions:iFn,mutations:oFn},sFn=()=>De.get(Pe("administration.api.content.search.defaults")),aFn=e=>De.post(Pe("administration.api.content.search.defaults.save"),{defaults:e}),WY={defaults:sFn,saveDefaults:aFn},lFn={loading:!1,defaults:[]};let cFn={getLoading:e=>e.loading,getDefaults:e=>e.defaults},dFn={setLoading(e,t){e.loading=t},setDefaults(e,t){e.defaults=t}},uFn={defaults({commit:e,state:t}){if(!t.loading)return e("setLoading",!0),new Promise((n,o)=>{WY.defaults().then(i=>{e("setDefaults",i.data.list),e("setLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setLoading",!1),o(i)})})},saveDefaults({commit:e,state:t,dispatch:n},o){if(!t.loading)return e("setLoading",!0),new Promise((i,r)=>{WY.saveDefaults(o).then(s=>{e("setLoading",!1),Fe(s.data.message,"success"),n("defaults").then(()=>{i(s)})}).catch(s=>{Fe(s.response,"error"),e("setLoading",!1),r(s)})})}};const hFn={namespaced:!0,state:lFn,getters:cFn,mutations:dFn,actions:uFn},fFn=e=>De.get(Pe("administration.api.content.blog.posts",{...e})),mFn=e=>De.get(Pe("administration.api.content.blog.themes",{...e})),pFn=()=>De.get(Pe("administration.api.content.blog.mostRead")),gFn=()=>De.get(Pe("administration.api.content.blog.favouriteThemes")),vFn=e=>De.patch(Pe("administration.api.content.blog.reorderMostRead"),{order:e}),_Fn=e=>De.patch(Pe("administration.api.content.blog.reorderFavouriteThemes"),{order:e}),Ev={posts:fFn,themes:mFn,mostRead:pFn,favouriteThemes:gFn,reorderMostRead:vFn,reorderFavouriteThemes:_Fn},yFn={posts_loading:!1,themes_loading:!1,search_loading:!1,posts_search:"",themes_search:"",posts:[],themes:[],most_read:[],favourite_themes:[]};let bFn={getPostsLoading:e=>e.posts_loading,getThemesLoading:e=>e.themes_loading,getSearchLoading:e=>e.search_loading,getPostsSearch:e=>e.posts_search,getThemesSearch:e=>e.themes_search,getPosts:e=>e.posts,getThemes:e=>e.themes,getMostRead:e=>e.most_read,getFavouriteThemes:e=>e.favourite_themes},kFn={setPostsLoading(e,t){e.posts_loading=t},setThemesLoading(e,t){e.themes_loading=t},setSearchLoading(e,t){e.search_loading=t},setPostsSearch(e,t){e.posts_search=t},setThemesSearch(e,t){e.themes_search=t},setPosts(e,t){e.posts=t},setThemes(e,t){e.themes=t},setMostRead(e,t){e.most_read=t},setFavouriteThemes(e,t){e.favourite_themes=t},addMostRead(e,t){e.most_read.push(e.posts.find(n=>n.id===t))},removeMostRead(e,t){e.most_read=e.most_read.filter(n=>n.id!==t)},removeFavouriteTheme(e,t){e.favourite_themes=e.favourite_themes.filter(n=>n.id!==t)},addFavouriteTheme(e,t){e.favourite_themes.push(e.themes.find(n=>n.id===t))}},wFn={posts({commit:e,state:t},{filters:n=null}){if(!t.search_loading)return e("setSearchLoading",!0),new Promise((o,i)=>{Ev.posts(n).then(r=>{e("setPosts",r.data.data),e("setSearchLoading",!1),o(r)}).catch(r=>{Fe(r.response,"error"),e("setSearchLoading",!1),i(r)})})},themes({commit:e,state:t},{init:n=!1,filters:o=null}){if(!(t.search_loading&&!n))return e("setSearchLoading",!0),new Promise((i,r)=>{Ev.themes(o).then(s=>{e("setThemes",s.data.data),e("setSearchLoading",!1),i(s)}).catch(s=>{Fe(s.response,"error"),e("setSearchLoading",!1),r(s)})})},mostRead({commit:e,state:t}){if(!t.posts_loading)return e("setPostsLoading",!0),new Promise((n,o)=>{Ev.mostRead().then(i=>{e("setMostRead",i.data.data),e("setPostsLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setPostsLoading",!1),o(i)})})},favouriteThemes({commit:e,state:t}){if(!t.themes_loading)return e("setThemesLoading",!0),new Promise((n,o)=>{Ev.favouriteThemes().then(i=>{e("setFavouriteThemes",i.data.data),e("setThemesLoading",!1),n(i)}).catch(i=>{Fe(i.response,"error"),e("setThemesLoading",!1),o(i)})})},reorderMostRead({commit:e,dispatch:t,state:n},{mostRead:o}){if(!n.posts_loading)return e("setPostsLoading",!0),e("setMostRead",o),o=o.map(i=>i.id),new Promise((i,r)=>{Ev.reorderMostRead(o).then(s=>{e("setPostsLoading",!1),t("mostRead").then(()=>{Fe(s),i(s)})}).catch(s=>{Fe(s),e("setPostsLoading",!1),r(s)})})},reorderFavouriteThemes({commit:e,dispatch:t,state:n},{favouriteThemes:o}){if(!n.themes_loading)return e("setThemesLoading",!0),new Promise((i,r)=>{Ev.reorderFavouriteThemes(o).then(s=>{e("setThemesLoading",!1),t("favouriteThemes"),Fe(s),i(s)}).catch(s=>{Fe(s),e("setThemesLoading",!1),r(s)})})}};const $Fn={namespaced:!0,state:yFn,getters:bFn,mutations:kFn,actions:wFn},CFn={install(e,t){const n=(o,i,r,s=t)=>Pse(o,i,r,s);e.mixin({methods:{route:n}}),parseInt(e.version)>2&&e.provide("route",n)}};var Vce={exports:{}};/*! Name: vue-upload-component Component URI: https://github.com/lian-yue/vue-upload-component#readme Version: 3.1.16 Author: LianYue License: Apache-2.0 Description: Vue.js file upload component, Multi-file upload, Upload directory, Drag upload, Drag the directory, Upload multiple files at the same time, html4 (IE 9), `PUT` method, Customize the filter */(function(e,t){(function(n,o){e.exports=o(Sx)})(bo,function(n){function o(X){return a(X)||s(X)||r(X)||i()}function i(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r(X,Y){if(X){if(typeof X=="string")return l(X,Y);var Z=Object.prototype.toString.call(X).slice(8,-1);if(Z==="Object"&&X.constructor&&(Z=X.constructor.name),Z==="Map"||Z==="Set")return Array.from(X);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return l(X,Y)}}function s(X){if(typeof Symbol<"u"&&X[Symbol.iterator]!=null||X["@@iterator"]!=null)return Array.from(X)}function a(X){if(Array.isArray(X))return l(X)}function l(X,Y){(Y==null||Y>X.length)&&(Y=X.length);for(var Z=0,se=new Array(Y);Z<Y;Z++)se[Z]=X[Z];return se}function d(X,Y){var Z=Object.keys(X);if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(X);Y&&(se=se.filter(function(ce){return Object.getOwnPropertyDescriptor(X,ce).enumerable})),Z.push.apply(Z,se)}return Z}function u(X){for(var Y=1;Y<arguments.length;Y++){var Z=arguments[Y]!=null?arguments[Y]:{};Y%2?d(Object(Z),!0).forEach(function(se){f(X,se,Z[se])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(Z)):d(Object(Z)).forEach(function(se){Object.defineProperty(X,se,Object.getOwnPropertyDescriptor(Z,se))})}return X}function f(X,Y,Z){return Y in X?Object.defineProperty(X,Y,{value:Z,enumerable:!0,configurable:!0,writable:!0}):X[Y]=Z,X}function p(X){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},p(X)}function v(X,Y){var Z=Object.keys(X);if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(X);Y&&(se=se.filter(function(ce){return Object.getOwnPropertyDescriptor(X,ce).enumerable})),Z.push.apply(Z,se)}return Z}function _(X){for(var Y=1;Y<arguments.length;Y++){var Z=arguments[Y]!=null?arguments[Y]:{};Y%2?v(Object(Z),!0).forEach(function(se){E(X,se,Z[se])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(Z)):v(Object(Z)).forEach(function(se){Object.defineProperty(X,se,Object.getOwnPropertyDescriptor(Z,se))})}return X}function k(X,Y){if(!(X instanceof Y))throw new TypeError("Cannot call a class as a function")}function C(X,Y){for(var Z=0;Z<Y.length;Z++){var se=Y[Z];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(X,se.key,se)}}function $(X,Y,Z){return Y&&C(X.prototype,Y),Z&&C(X,Z),Object.defineProperty(X,"prototype",{writable:!1}),X}function E(X,Y,Z){return Y in X?Object.defineProperty(X,Y,{value:Z,enumerable:!0,configurable:!0,writable:!0}):X[Y]=Z,X}var P=function(Y){var Z=new XMLHttpRequest;return Z.open(Y.method||"GET",Y.url),Z.responseType="json",Y.headers&&Object.keys(Y.headers).forEach(function(se){Z.setRequestHeader(se,Y.headers[se])}),Z},I=function(Y,Z){return new Promise(function(se,ce){Y.onload=function(){if(Y.status>=200&&Y.status<300){var te;try{te=JSON.parse(Y.response)}catch{te=Y.response}se(te)}else ce(Y.response)},Y.onerror=function(){return ce(Y.response)},Y.send(JSON.stringify(Z))})},O=function(Y,Z){var se=new FormData;for(var ce in Z)se.append(ce,Z[ce]);return new Promise(function(te,ee){Y.onload=function(){if(Y.status>=200&&Y.status<300){var ae;try{ae=JSON.parse(Y.response)}catch{ae=Y.response}te(ae)}else ee(Y.response)},Y.onerror=function(){return ee(Y.response)},Y.send(se)})};function L(X){var Y=P(X);return I(Y,X.body)}var S=function(){function X(Y,Z){k(this,X),this.file=Y,this.options=Z,this.chunks=[],this.sessionId=null,this.chunkSize=null,this.speedInterval=null}return $(X,[{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries,10)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive,10)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var Z=this,se=this.chunksUploaded.length/this.chunks.length*100,ce=this.chunksUploading.reduce(function(te,ee){return te+(ee.progress|0)/Z.chunks.length},0);return Math.min(se+ce,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter(function(Z){return!Z.active&&!Z.uploaded})}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter(function(Z){return!!Z.xhr&&!!Z.active})}},{key:"chunksUploaded",get:function(){return this.chunks.filter(function(Z){return!!Z.uploaded})}},{key:"createChunks",value:function(){this.chunks=[];for(var Z=0,se=this.chunkSize;Z<this.fileSize;)this.chunks.push({blob:this.file.file.slice(Z,se),startOffset:Z,active:!1,retries:this.maxRetries}),Z=se,se=Z+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach(function(Z){Z.xhr.abort(),Z.active=!1}),this.stopSpeedCalc()}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var Z=this;return this.promise=new Promise(function(se,ce){Z.resolve=se,Z.reject=ce}),this.start(),this.promise}},{key:"start",value:function(){var Z=this;L({method:"POST",headers:_(_({},this.headers),{},{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then(function(se){if(se.status!=="success")return Z.file.response=se,Z.reject("server");Z.sessionId=se.data.session_id,Z.chunkSize=se.data.end_offset,Z.createChunks(),Z.startChunking()}).catch(function(se){Z.file.response=se,Z.reject("server")})}},{key:"startChunking",value:function(){for(var Z=0;Z<this.maxActiveChunks;Z++)this.uploadNextChunk();this.startSpeedCalc()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(this.chunksUploading.length===0)return this.finish()}}},{key:"uploadChunk",value:function(Z){var se=this;Z.progress=0,Z.active=!0,this.updateFileProgress(),Z.xhr=P({method:"POST",headers:this.headers,url:this.action}),Z.xhr.upload.addEventListener("progress",function(ce){ce.lengthComputable&&(Z.progress=Math.round(ce.loaded/ce.total*100))},!1),O(Z.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:Z.startOffset,chunk:Z.blob})).then(function(ce){if(Z.active=!1,ce.status==="success")Z.uploaded=!0;else if(Z.retries--<=0)return se.stopChunks(),se.reject("upload");se.uploadNextChunk()}).catch(function(){if(Z.active=!1,Z.retries--<=0)return se.stopChunks(),se.reject("upload");se.uploadNextChunk()})}},{key:"finish",value:function(){var Z=this;this.updateFileProgress(),this.stopSpeedCalc(),L({method:"POST",headers:_(_({},this.headers),{},{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then(function(se){if(Z.file.response=se,se.status!=="success")return Z.reject("server");Z.resolve(se)}).catch(function(se){Z.file.response=se,Z.reject("server")})}},{key:"startSpeedCalc",value:function(){var Z=this;this.file.speed=0;var se=0;this.speedInterval||(this.speedInterval=window.setInterval(function(){var ce=Z.progress/100*Z.fileSize;Z.file.speed=ce-se,se=ce},1e3))}},{key:"stopSpeedCalc",value:function(){this.speedInterval&&window.clearInterval(this.speedInterval),this.speedInterval=null,this.file.speed=0}}]),X}(),j={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:S},M=n.defineComponent({compatConfig:{MODE:3},props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{default:!1},multiple:{type:Boolean,default:!1},maximum:{type:Number},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},createDirectory:{type:Boolean,default:!1},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:function(){return{}}},data:{type:Object,default:function(){return{}}},timeout:{type:Number,default:0},drop:{type:[Boolean,String,HTMLElement],default:function(){return!1}},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{type:[RegExp,String,Array],default:function(){return[]}},modelValue:{type:Array,default:function(){return[]}},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return j}}},emits:["update:modelValue","input-filter","input-file"],data:function(){return{files:this.modelValue,features:{html5:!0,directory:!1,drop:!1},active:!1,dropActive:!1,dropElementActive:!1,uploading:0,destroy:!1,maps:{},dropElement:null,dropTimeout:null,reload:!1}},mounted:function(){var Y=this,Z=document.createElement("input");if(Z.type="file",Z.multiple=!0,window.FormData&&Z.files?((typeof Z.webkitdirectory=="boolean"||typeof Z.directory=="boolean")&&(this.features.directory=!0),this.features.html5&&typeof Z.ondrop<"u"&&this.isRelatedTargetSupported()&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var se=0;se<this.files.length;se++){var ce=this.files[se];this.maps[ce.id]=ce}this.$nextTick(function(){Y.$parent?(Y.$parent.$forceUpdate(),Y.$parent.$nextTick(function(){Y.watchDrop(Y.drop)})):Y.watchDrop(Y.drop)})},beforeUnmount:function(){this.destroy=!0,this.active=!1,this.watchDrop(!1),this.watchActive(!1)},computed:{uploaded:function(){for(var Y,Z=0;Z<this.files.length;Z++)if(Y=this.files[Z],Y.fileObject&&!Y.error&&!Y.success)return!1;return!0},chunkOptions:function(){return Object.assign(j,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]},forId:function(){return this.inputId||this.name},iMaximum:function(){return this.maximum===void 0?this.multiple?0:1:this.maximum},iExtensions:function(){if(this.extensions){if(this.extensions instanceof RegExp)return this.extensions;if(this.extensions.length){var Y=[];return typeof this.extensions=="string"?Y=this.extensions.split(","):Y=this.extensions,Y=Y.map(function(Z){return Z.trim()}).filter(function(Z){return Z}),new RegExp("\\.("+Y.join("|").replace(/\./g,"\\.")+")$","i")}}},iDirectory:function(){if(this.directory&&this.features.directory)return!0}},watch:{active:function(Y){this.watchActive(Y)},dropActive:function(Y){this.watchDropActive(Y),this.$parent&&this.$parent.$forceUpdate()},drop:function(Y){this.watchDrop(Y)},modelValue:function(Y){if(this.files!==Y){this.files=Y;var Z=this.maps;this.maps={};for(var se=0;se<this.files.length;se++){var ce=this.files[se];this.maps[ce.id]=ce}for(var te in this.maps){var ee=this.maps[te],ae=Z[te];ee!==ae&&this.emitFile(ee,ae)}for(var de in Z)this.maps[de]||this.emitFile(void 0,Z[de])}}},methods:{newId:function(){return Math.random().toString(36).substr(2)},clear:function(){if(this.files.length){var Y=this.files;this.files=[],this.maps={},this.emitInput();for(var Z=0;Z<Y.length;Z++)this.emitFile(void 0,Y[Z])}return!0},get:function(Y){return Y?p(Y)==="object"?this.maps[Y.id||""]||!1:this.maps[Y]||!1:!1},add:function(Y,Z){var se;Y instanceof Array?se=Y:se=[Y],Z===void 0&&(Z=this.addIndex);for(var ce=[],te=0;te<se.length;te++){var ee=se[te];this.features.html5&&ee instanceof Blob&&(ee={id:"",file:ee,size:ee.size,name:ee.webkitRelativePath||ee.relativePath||ee.name||"unknown",type:ee.type}),ee=ee;var ae=!1;if(ee.fileObject===!1||(ee.fileObject||typeof Element<"u"&&ee.el instanceof HTMLInputElement||typeof Blob<"u"&&ee.file instanceof Blob)&&(ae=!0),ae&&(ee=u(u({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},ee),{},{response:{},progress:"0.00",speed:0}),ee.data=u(u({},this.data),ee.data?ee.data:{}),ee.headers=u(u({},this.headers),ee.headers?ee.headers:{})),ee.id||(ee.id=this.newId()),!this.emitFilter(ee,void 0)&&(this.iMaximum>1&&ce.length+this.files.length>=this.iMaximum||(ce.push(ee),this.iMaximum===1)))break}if(ce.length){this.iMaximum===1&&this.clear();var de;if(Z===!0||Z===0)de=ce.concat(this.files);else if(Z){var $e;de=this.files.concat([]),($e=de).splice.apply($e,[Z,0].concat(o(ce)))}else de=this.files.concat(ce);this.files=de;var be=0;Z===!0||Z===0?be=0:Z?Z>=0?Z+ce.length>this.files.length?be=this.files.length-ce.length:be=Z:(be=this.files.length-ce.length+Z,be<0&&(be=0)):be=this.files.length-ce.length,ce=this.files.slice(be,be+ce.length);for(var me=0;me<ce.length;me++){var fe=ce[me];this.maps[fe.id]=fe}this.emitInput();for(var Ae=0;Ae<ce.length;Ae++)this.emitFile(ce[Ae],void 0);return Y instanceof Array?ce:ce[0]}},addInputFile:function(Y){var Z=this,se=[];this.iMaximum;var ce=Y.webkitEntries||Y.entries||void 0;if(ce!=null&&ce.length)return this.getFileSystemEntry(ce).then(function(de){return Z.add(de)});if(Y.files)for(var te=0;te<Y.files.length;te++){var ee=Y.files[te];se.push({id:"",size:ee.size,name:ee.webkitRelativePath||ee.relativePath||ee.name,type:ee.type,file:ee})}else{var ae=Y.value.replace(/\\/g,"/").split("/");(!ae||!ae.length)&&(ae=[Y.value]),delete Y.__vuex__,se.push({id:"",name:ae[ae.length-1],el:Y})}return Promise.resolve(this.add(se))},addDataTransfer:function(Y){var Z,se=this;if(Y!=null&&(Z=Y.items)!==null&&Z!==void 0&&Z.length){for(var ce=[],te=0;te<Y.items.length;te++){var ee=Y.items[te],ae=void 0;ee.getAsEntry?ae=ee.getAsEntry()||ee.getAsFile():ee.webkitGetAsEntry?ae=ee.webkitGetAsEntry()||ee.getAsFile():ae=ee.getAsFile(),ae&&ce.push(ae)}return this.getFileSystemEntry(ce).then(function(me){return se.add(me)})}var de=this.iMaximum,$e=[];if(Y.files.length){for(var be=0;be<Y.files.length&&($e.push(Y.files[be]),!(de>0&&$e.length>=de));be++);return Promise.resolve(this.add($e))}return Promise.resolve([])},getFileSystemEntry:function(Y){var Z=this,se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise(function(ce){var te=Z.iMaximum;if(!Y){ce([]);return}if(Y instanceof Array){var ee=[],ae=function Ae(je){var Ye=Y[je];if(!Ye||te>0&&ee.length>=te)return ce(ee);Z.getFileSystemEntry(Ye,se).then(function(_t){ee.push.apply(ee,o(_t)),Ae(je+1)})};ae(0);return}if(Y instanceof Blob){ce([{id:"",size:Y.size,name:se+Y.name,type:Y.type,file:Y}]);return}if(Y.isFile){var de=Y;de.file(function(Ae){ce([{id:"",size:Ae.size,name:se+Ae.name,type:Ae.type,file:Ae}])});return}if(Y.isDirectory&&Z.dropDirectory){var $e=Y,be=[];Z.createDirectory&&be.push({id:"",name:se+$e.name,size:0,type:"text/directory",file:new File([],se+$e.name,{type:"text/directory"})});var me=$e.createReader(),fe=function Ae(){me.readEntries(function(je){var Ye=function _t(xt){if(!je[xt]&&xt===0||te>0&&be.length>=te)return ce(be);if(!je[xt])return Ae();Z.getFileSystemEntry(je[xt],se+$e.name+"/").then(function(we){be.push.apply(be,o(we)),_t(xt+1)})};Ye(0)})};fe();return}ce([])})},replace:function(Y,Z){var se=this.get(Y),ce=this.get(Z);if(!se||!ce||se===ce)return!1;var te=this.files.concat([]),ee=te.indexOf(se),ae=te.indexOf(ce);return ee===-1||ae===-1?!1:(te[ee]=ce,te[ae]=se,this.files=te,this.emitInput(),!0)},remove:function(Y){var Z=this.get(Y);if(Z){if(this.emitFilter(void 0,Z))return!1;var se=this.files.concat([]),ce=se.indexOf(Z);if(ce===-1)return console.error("remove",Z),!1;se.splice(ce,1),this.files=se,delete this.maps[Z.id],this.emitInput(),this.emitFile(void 0,Z)}return Z},update:function(Y,Z){var se=this.get(Y);if(se){var ce=u(u({},se),Z);if(se.fileObject&&se.active&&!ce.active&&!ce.error&&!ce.success&&(ce.error="abort"),this.emitFilter(ce,se))return!1;var te=this.files.concat([]),ee=te.indexOf(se);return ee===-1?(console.error("update",se),!1):(te.splice(ee,1,ce),this.files=te,ce=this.files[ee],delete this.maps[se.id],this.maps[ce.id]=ce,this.emitInput(),this.emitFile(ce,se),ce)}return!1},emitFilter:function(Y,Z){var se=!1;return this.$emit("input-filter",Y,Z,function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return se=ce,se}),se},emitFile:function(Y,Z){var se,ce=this;this.$emit("input-file",Y,Z),(se=Y)!==null&&se!==void 0&&se.fileObject&&Y.active&&(!Z||!Z.active)?(this.uploading++,this.$nextTick(function(){setTimeout(function(){Y&&ce.upload(Y).then(function(){var te;Y&&(Y=ce.get(Y)||void 0),(te=Y)!==null&&te!==void 0&&te.fileObject&&ce.update(Y,{active:!1,success:!Y.error})}).catch(function(te){Y&&ce.update(Y,{active:!1,success:!1,error:te.code||te.error||te.message||te})})},Math.ceil(Math.random()*50+50))})):(!Y||!Y.fileObject||!Y.active)&&Z&&Z.fileObject&&Z.active&&this.uploading--,this.active&&(!!Y!=!!Z||Y.active!==Z.active)&&this.watchActive(!0)},emitInput:function(){this.$emit("update:modelValue",this.files)},upload:function(Y){var Z=this.get(Y);if(!Z)return Promise.reject(new Error("not_exists"));if(!Z.fileObject)return Promise.reject(new Error("file_object"));if(Z.error)return Z.error instanceof Error?Promise.reject(Z.error):Promise.reject(new Error(Z.error));if(Z.success)return Promise.resolve(Z);if(Z.name&&this.iExtensions&&Z.type!=="text/directory"&&Z.name.search(this.iExtensions)===-1)return Promise.reject(new Error("extension"));if(this.size>0&&Z.size!==void 0&&Z.size>=0&&Z.size>this.size&&Z.type!=="text/directory")return Promise.reject(new Error("size"));if(this.customAction)return this.customAction(Z,this);if(this.features.html5){if(this.shouldUseChunkUpload(Z))return this.uploadChunk(Z);if(Z.putAction)return this.uploadPut(Z);if(Z.postAction)return this.uploadHtml5(Z)}return Z.postAction?this.uploadHtml4(Z):Promise.reject(new Error("No action configured"))},shouldUseChunkUpload:function(Y){return this.chunkEnabled&&!!this.chunkOptions.handler&&Y.size&&Y.size>this.chunkOptions.minSize},uploadChunk:function(Y){var Z=this.chunkOptions.handler;return Y.chunk=new Z(Y,this.chunkOptions),Y.chunk.upload().then(function(se){return Y})},uploadPut:function(Y){var Z=[],se;for(var ce in Y.data)se=Y.data[ce],se!=null&&Z.push(encodeURIComponent(ce)+"="+encodeURIComponent(se));var te=Y.putAction||"",ee=Z.length?(te.indexOf("?")===-1?"?":"&")+Z.join("&"):"",ae=new XMLHttpRequest;return ae.open("PUT",te+ee),this.uploadXhr(ae,Y,Y.file)},uploadHtml5:function(Y){var Z=new window.FormData,se;for(var ce in Y.data)se=Y.data[ce],se&&p(se)==="object"&&typeof se.toString!="function"?se instanceof File?Z.append(ce,se,se.name):Z.append(ce,JSON.stringify(se)):se!=null&&Z.append(ce,se);Z.append(this.name,Y.file,Y.name||Y.file.name||Y.file.filename);var te=new XMLHttpRequest;return te.open("POST",Y.postAction||""),this.uploadXhr(te,Y,Z)},uploadXhr:function(Y,Z,se){var ce=this,te=Z,ee=0,ae=0;Y.upload.onprogress=function($e){if(te&&(te=ce.get(te),!(!$e.lengthComputable||!te||!te.fileObject||!te.active))){var be=Math.round(Date.now()/1e3);be!==ee&&(ee=be,te=ce.update(te,{progress:($e.loaded/$e.total*100).toFixed(2),speed:$e.loaded-ae}),ae=$e.loaded)}};var de=window.setInterval(function(){if(te&&(te=ce.get(te))){var $e;if(($e=te)!==null&&$e!==void 0&&$e.fileObject&&!te.success&&!te.error&&te.active)return}de&&(clearInterval(de),de=void 0);try{Y.abort(),Y.timeout=1}catch{}},100);return new Promise(function($e,be){if(!te){be(new Error("not_exists"));return}var me,fe=function(Ye){if(!me){if(me=!0,de&&(clearInterval(de),de=void 0),!te)return be(new Error("not_exists"));if(te=ce.get(te),!te)return be(new Error("not_exists"));if(!te.fileObject)return be(new Error("file_object"));if(te.error)return te.error instanceof Error?be(te.error):be(new Error(te.error));if(!te.active)return be(new Error("abort"));if(te.success)return $e(te);var _t={};switch(Ye.type){case"timeout":case"abort":_t.error=Ye.type;break;case"error":Y.status?Y.status>=500?_t.error="server":Y.status>=400&&(_t.error="denied"):_t.error="network";break;default:Y.status>=500?_t.error="server":Y.status>=400?_t.error="denied":_t.progress="100.00"}if(Y.responseText){var xt=Y.getResponseHeader("Content-Type");xt&&xt.indexOf("/json")!==-1?_t.response=JSON.parse(Y.responseText):_t.response=Y.responseText}return te=ce.update(te,_t),te?te.error?te.error instanceof Error?be(te.error):be(new Error(te.error)):$e(te):be(new Error("abort"))}};Y.onload=fe,Y.onerror=fe,Y.onabort=fe,Y.ontimeout=fe,te.timeout&&(Y.timeout=te.timeout);for(var Ae in te.headers)Y.setRequestHeader(Ae,te.headers[Ae]);te=ce.update(te,{xhr:Y}),te&&Y.send(se)})},uploadHtml4:function(Y){var Z=this,se=Y;if(!se)return Promise.reject(new Error("not_exists"));var ce=function(fe){fe.keyCode===27&&fe.preventDefault()},te=document.createElement("iframe");te.id="upload-iframe-"+se.id,te.name="upload-iframe-"+se.id,te.src="about:blank",te.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var ee=document.createElement("form");ee.setAttribute("action",se.postAction||""),ee.name="upload-form-"+se.id,ee.setAttribute("method","POST"),ee.setAttribute("target","upload-iframe-"+se.id),ee.setAttribute("enctype","multipart/form-data");for(var ae in se.data){var de=se.data[ae];if(de&&p(de)==="object"&&typeof de.toString!="function"&&(de=JSON.stringify(de)),de!=null){var $e=document.createElement("input");$e.type="hidden",$e.name=ae,$e.value=de,ee.appendChild($e)}}ee.appendChild(se.el),document.body.appendChild(te).appendChild(ee);var be=function(){var fe,Ae;try{te.contentWindow&&(Ae=te.contentWindow.document)}catch{}if(!Ae)try{Ae=te.contentDocument?te.contentDocument:te.document}catch{Ae=te.document}return(fe=Ae)!==null&&fe!==void 0&&fe.body?Ae.body.innerHTML:null};return new Promise(function(me,fe){setTimeout(function(){if(!se){fe(new Error("not_exists"));return}if(se=Z.update(se,{iframe:te}),!se)return fe(new Error("not_exists"));var Ae=window.setInterval(function(){se&&(se=Z.get(se))&&se.fileObject&&!se.success&&!se.error&&se.active||(Ae&&(clearInterval(Ae),Ae=void 0),te.onabort({type:se?"abort":"not_exists"}))},100),je,Ye=function(xt){var we;if(!je){if(je=!0,Ae&&(clearInterval(Ae),Ae=void 0),document.body.removeEventListener("keydown",ce),!se)return fe(new Error("not_exists"));if(se=Z.get(se),!se)return fe(new Error("not_exists"));if(!se.fileObject)return fe(new Error("file_object"));if(se.error)return se.error instanceof Error?fe(se.error):fe(new Error(se.error));if(!se.active)return fe(new Error("abort"));if(se.success)return me(se);var ve=be(),qe={};if(typeof xt=="string")return fe(new Error(xt));switch(xt.type){case"abort":qe.error="abort";break;case"error":se.error?qe.error=se.error:ve===null?qe.error="network":qe.error="denied";break;default:se.error?qe.error=se.error:ve===null?qe.error="network":qe.progress="100.00"}if(ve!==null){if(ve&&ve.substr(0,1)==="{"&&ve.substr(ve.length-1,1)==="}")try{ve=JSON.parse(ve)}catch{}qe.response=ve}return se=Z.update(se,qe),se?(we=se)!==null&&we!==void 0&&we.error?se.error instanceof Error?fe(se.error):fe(new Error(se.error)):me(se):fe(new Error("not_exists"))}};te.onload=Ye,te.onerror=Ye,te.onabort=Ye,document.body.addEventListener("keydown",ce),ee.submit()},50)}).then(function(me){var fe;return te==null||(fe=te.parentNode)===null||fe===void 0||fe.removeChild(te),me}).catch(function(me){var fe;return te==null||(fe=te.parentNode)===null||fe===void 0||fe.removeChild(te),me})},watchActive:function(Y){for(var Z,se=0;Z=this.files[se];)if(se++,Z.fileObject)if(Y&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;!Z.active&&!Z.error&&!Z.success&&this.update(Z,{active:!0})}else Z.active&&this.update(Z,{active:!1});this.uploading===0&&(this.active=!1)},watchDrop:function(Y){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(this.features.drop&&Y!==Z){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDocumentDragenter,!1),document.removeEventListener("dragleave",this.onDocumentDragleave,!1),document.removeEventListener("dragover",this.onDocumentDragover,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragenter",this.onDragenter,!1),this.dropElement.removeEventListener("dragleave",this.onDragleave,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch{}var se=null;if(Y)if(typeof Y=="string")se=document.querySelector(Y)||this.$root.$el.querySelector(Y);else if(Y===!0){var ce;if(se=this.$parent.$el,!se||((ce=se)===null||ce===void 0?void 0:ce.nodeType)===8){var te;se=this.$root.$el,(!se||((te=se)===null||te===void 0?void 0:te.nodeType)===8)&&(se=document.body)}}else se=Y;this.dropElement=se,this.dropElement&&(document.addEventListener("dragenter",this.onDocumentDragenter,!1),document.addEventListener("dragleave",this.onDocumentDragleave,!1),document.addEventListener("dragover",this.onDocumentDragover,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragenter",this.onDragenter,!1),this.dropElement.addEventListener("dragleave",this.onDragleave,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},watchDropActive:function(Y,Z){Y!==Z&&(!Y&&this.dropElementActive&&(this.dropElementActive=!1),this.dropTimeout&&(clearTimeout(this.dropTimeout),this.dropTimeout=null),Y&&(this.dropTimeout=setTimeout(this.onDocumentDrop,1e3)))},onDocumentDragenter:function(Y){var Z,se;if(!this.dropActive&&Y.dataTransfer){var ce=Y.dataTransfer;ce!=null&&(Z=ce.files)!==null&&Z!==void 0&&Z.length?this.dropActive=!0:ce.types?ce.types.indexOf&&ce.types.indexOf("Files")!==-1?this.dropActive=!0:(se=ce.types)!==null&&se!==void 0&&se.contains&&ce.types.contains("Files")&&(this.dropActive=!0):this.dropActive=!0,this.dropActive&&this.watchDropActive(!0)}},onDocumentDragleave:function(Y){this.dropActive&&(Y.target===Y.explicitOriginalTarget||!Y.fromElement&&(Y.clientX<=0||Y.clientY<=0||Y.clientX>=window.innerWidth||Y.clientY>=window.innerHeight))&&(this.dropActive=!1,this.watchDropActive(!1))},onDocumentDragover:function(){this.watchDropActive(!0)},onDocumentDrop:function(){this.dropActive=!1,this.watchDropActive(!1)},onDragenter:function(Y){!this.dropActive||this.dropElementActive||(this.dropElementActive=!0)},onDragleave:function(Y){var Z;if(this.dropElementActive){var se=Y.relatedTarget;if(!se)this.dropElementActive=!1;else if((Z=this.dropElement)!==null&&Z!==void 0&&Z.contains)this.dropElement.contains(se)||(this.dropElementActive=!1);else{for(var ce=se;ce&&ce!==this.dropElement;)ce=ce.parentNode;ce!==this.dropElement&&(this.dropElementActive=!1)}}},onDragover:function(Y){Y.preventDefault()},onDrop:function(Y){Y.preventDefault(),Y.dataTransfer&&this.addDataTransfer(Y.dataTransfer)},inputOnChange:async function(Y){var Z=this;if(!(Y.target instanceof HTMLInputElement))return Promise.reject(new Error("not HTMLInputElement"));Y.target;var se=function(te){return Z.reload=!0,Z.$nextTick(function(){Z.reload=!1}),te};return this.addInputFile(Y.target).then(se).catch(se)},isRelatedTargetSupported:function(){try{var Y=new MouseEvent("mouseout",{relatedTarget:document.body});return"relatedTarget"in Y}catch{return!1}}}}),q=["for"],B=["name","id","accept","capture","disabled","webkitdirectory","allowdirs","directory","multiple"];function V(X,Y,Z,se,ce,te){return n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(X.className)},[n.renderSlot(X.$slots,"default"),n.createElementVNode("label",{for:X.forId},null,8,q),X.reload?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("input",{key:0,ref:"input",type:"file",name:X.name,id:X.forId,accept:X.accept,capture:X.capture,disabled:X.disabled,webkitdirectory:X.iDirectory,allowdirs:X.iDirectory,directory:X.iDirectory,multiple:X.multiple&&X.features.html5,onChange:Y[0]||(Y[0]=function(){return X.inputOnChange&&X.inputOnChange.apply(X,arguments)})},null,40,B))],2)}function G(X,Y){Y===void 0&&(Y={});var Z=Y.insertAt;if(!(!X||typeof document>"u")){var se=document.head||document.getElementsByTagName("head")[0],ce=document.createElement("style");ce.type="text/css",Z==="top"&&se.firstChild?se.insertBefore(ce,se.firstChild):se.appendChild(ce),ce.styleSheet?ce.styleSheet.cssText=X:ce.appendChild(document.createTextNode(X))}}var Q=` .file-uploads { overflow: hidden; position: relative; text-align: center; display: inline-block; } .file-uploads.file-uploads-html4 input, .file-uploads.file-uploads-html5 label { /* background fix ie click */ background: #fff; opacity: 0; font-size: 20em; z-index: 1; top: 0; left: 0; right: 0; bottom: 0; position: absolute; width: 100%; height: 100%; } .file-uploads.file-uploads-html5 input, .file-uploads.file-uploads-html4 label { /* background fix ie click */ position: absolute; background: rgba(255, 255, 255, 0); overflow: hidden; position: fixed; width: 1px; height: 1px; z-index: -1; opacity: 0; } `;return G(Q),M.render=V,M})})(Vce);var SFn=Vce.exports;const TFn=Ol(SFn),EFn={components:{AppIcon:Ue},props:{data:Object},data(){return{stripHTML:Z3.stripHTML}},computed:{...Oe({auth:"auth/auth"})},methods:{openMessages(){this.auth.is_admin?window.location.href=this.ziggyRoute("administration.messages"):this.$store.commit("sidebarChat/toggleChatOpen")}}},IFn={class:"d-flex align-items-center"},PFn={class:"text-gray-900 medium fw-bold mb-0 pe-5"},AFn={class:"text-truncate-2-line medium text-gray-700 mt-1 mb-0 test"};function DFn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",null,[c("div",IFn,[b(s,{icon:"message",height:"24",width:"24",class:"me-2"}),c("p",PFn,m(e.$t("public.message_new_flash")),1)]),c("p",AFn,m(i.stripHTML(e.auth.last_message)),1),c("a",{onClick:t[0]||(t[0]=(...a)=>r.openMessages&&r.openMessages(...a)),class:"link-primary cursor-pointer medium"},m(e.$t("public.message_show")),1)])}const xFn=U(EFn,[["render",DFn]]),OFn={components:{ProductPrice:Wy},props:{data:{type:Object,default:()=>({product:{id:null,image:null,title:null,price:0}})}},methods:{hide(){this.$emit("hide")},rollback(){sy.rollbackExpedited(this.data.product.id).then(e=>{this.hide(),window.flash(e.data.message,"success"),window.eventBus.emit("product-detail-reload"),this.$store.commit("auth/setLoaded",!1),this.$store.dispatch("auth/load")}).catch(e=>{this.hide(),window.flash(e.response.data.message,"error")})}},mounted(){window.eventBus.on("flash-product-credit-payment-hide",()=>{this.hide()})}},LFn={class:"text-gray-900 medium fw-bold mb-2"},MFn={class:"d-flex"},NFn=["src"],RFn={class:"flex-grow-1 d-flex flex-column justify-content-between"},jFn={class:"text-gray-700 text-truncate-2-line mb-2"},FFn={class:"flex-grow-1 d-flex align-items-center justify-content-between"},zFn={class:"text-gray-900 text-nowrap fw-bold medium mb-0"},UFn={class:"d-flex align-items-center"},BFn=["href"];function HFn(e,t,n,o,i,r){const s=y("ProductPrice");return h(),g("div",null,[c("p",LFn,m(e.$t("payment.by_credit")),1),c("div",MFn,[c("img",{src:n.data.product.cover_img_thumbnail,height:"78",width:"78",class:"rounded border border-gray-400 me-3"},null,8,NFn),c("div",RFn,[c("p",jFn,m(n.data.product.title),1),c("div",FFn,[c("p",zFn,[b(s,{product:n.data.product},null,8,["product"])]),c("div",UFn,[c("button",{class:"btn btn-tertiary btn-sm",onClick:t[0]||(t[0]=(...a)=>r.rollback&&r.rollback(...a))},m(e.$t("public.return")),1),c("a",{href:e.ziggyRoute("user.dashboard.index"),class:"btn btn-secondary btn-sm ms-1"},m(e.$t("public.show")),9,BFn)])])])])])}const VFn=U(OFn,[["render",HFn]]);const qFn={components:{AppIcon:Ue,FlashCompMessageNew:xFn,FlashCompProductCreditPayment:VFn},props:{timeout:{type:Number,default:3e3},transition:{type:String,default:"slide-fade"},types:{type:Object,default:()=>({base:"alert",success:"alert-success",error:"alert-danger",warning:"alert-warning",info:"alert-info",message:"alert-message"})},displayIcons:{type:Boolean,default:!1},icons:{type:Object,default:()=>({base:"close-circle",error:"alert",success:"check-fill",info:"info-fill",warning:"alert",message:"message"})},titleClass:{type:String,default:""},listen:{type:Boolean,default:!0}},data:()=>({notifications:[]}),created(){this.listen&&window.events.on("flash",({message:e,type:t,timeout:n,component:o=null,componentData:i=null})=>this.flash(e,t,n,o,i))},methods:{flash(e,t,n,o,i){e===500&&(e=this.$t("public.unknown_error"));let r={message:e,type:t,typeObject:this.classes(this.types,t),iconObject:this.icons[t],displayIcon:this.displayIcons};o&&(r.componentName=o,r.componentData=i),this.notifications.push(r),n?n>=0&&setTimeout(this.hide.bind(this,r),n):setTimeout(this.hide.bind(this,r),this.timeout)},classes(e,t){let n={};return Object.prototype.hasOwnProperty.call(e,"base")&&(n[e.base]=!0),Object.prototype.hasOwnProperty.call(e,t)&&(n[e[t]]=!0),n},hide(e=this.notifications[0]){let t=this.notifications.indexOf(e);this.notifications.splice(t,1),this.$emit("hide",e)},customWidthStyle(e){let t=e.componentData;return t&&t.width?{width:t.width+24+26+"px"}:{width:"20vw"}}}},YFn={class:"alert-wrap"},WFn={class:"flex-grow-1"},GFn={key:1,class:"d-flex align-items-center"},ZFn=["innerHTML"],KFn=["onClick"];function JFn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",YFn,[b(r9,{appear:"",name:n.transition,tag:"div",class:"d-flex flex-column align-items-end"},{default:F(()=>[(h(!0),g(pe,null,Me(e.notifications,(a,l)=>(h(),g("div",{class:J(a.typeObject),role:"alert",key:l+a.type,style:Bn(r.customWidthStyle(a))},[c("div",WFn,[a.componentName?(h(),W(Dl(a.componentName),{key:0,data:a.componentData,onHide:d=>r.hide(a),class:"w-100"},null,40,["data","onHide"])):(h(),g("div",GFn,[n.displayIcons&&a.displayIcon?(h(),W(s,{key:0,icon:a.iconObject,height:"24",width:"24",class:"me-2"},null,8,["icon"])):D("",!0),c("p",{innerHTML:a.message,class:J(["text-gray-900 medium mb-0 pe-5",n.titleClass])},null,10,ZFn)]))]),c("button",{class:"btn btn-sm alert-close position-absolute top-0 end-0 mt-2 me-2",onClick:d=>r.hide(a)},[b(s,{icon:"close",height:"24",width:"24"})],8,KFn)],6))),128))]),_:1},8,["name"])])}const qce=U(qFn,[["render",JFn],["__scopeId","data-v-6dab1d30"]]);const XFn={components:{AppFlash:qce},computed:{...Oe({auth:"auth/auth"}),hasNewMessage(){return this.auth.unread_messages_count>0}},methods:{controlFlash(){let e=this.$storage.getStorageSync("newMessageHidden");this.hasNewMessage&&!e?this.$refs["flash-message-new"].flash(null,"message",-1,"FlashCompMessageNew",{width:310}):this.$refs["flash-message-new"].hide()},hide(e){e&&e.componentName=="FlashCompMessageNew"&&this.$storage.setStorageSync("newMessageHidden",!0)}},mounted(){this.controlFlash()},watch:{hasNewMessage(){this.controlFlash()}}};function QFn(e,t,n,o,i,r){const s=y("AppFlash");return e.auth.is_admin?D("",!0):(h(),W(s,{key:0,ref:"flash-message-new","display-icons":!0,"title-class":"fw-bold",listen:!1,class:"z-index-1000-important",onHide:r.hide},null,8,["onHide"]))}const ezn=U(XFn,[["render",QFn],["__scopeId","data-v-00539b25"]]),tzn={data(){return{authorLevelStructureLink:ks.author.levelStructure}}},nzn={class:"d-flex justify-content-center col-12 border-top border-iron-light mt-5"},ozn=["href"],izn=["href"],rzn=["href"],szn=["href"];function azn(e,t,n,o,i,r){return h(),g("div",nzn,[c("a",{class:"link-dark text-decoration-underline-hover p-3 p-md-5",href:e.ziggyRoute("default"),target:"_blank"},m(e.$t("footer.clean.main_page")),9,ozn),c("a",{class:"link-dark text-decoration-underline-hover p-3 p-md-5",href:e.ziggyRoute("faq"),target:"_blank"},m(e.$t("footer.clean.faq")),9,izn),c("a",{class:"link-dark text-decoration-underline-hover p-3 p-md-5",href:i.authorLevelStructureLink,target:"_blank"},m(e.$t("footer.clean.for_authors")),9,rzn),c("a",{class:"link-dark text-decoration-underline-hover p-3 p-md-5",href:e.ziggyRoute("page.about"),target:"_blank"},m(e.$t("footer.clean.about")),9,szn)])}const lzn=U(tzn,[["render",azn]]),czn={components:{AppIcon:Ue},props:{conversation:{type:Object,default:()=>({user:{}})}},data(){return{clipboardIcon:"copy",hover:!1}},methods:{copyEmailToClipboard(){this.$copyText(this.conversation.user.email).then(()=>{this.clipboardIcon="check-double",window.flash(this.$t("messenger.admin.copied"),"success"),setTimeout(()=>{this.clipboardIcon="copy"},3e3)}).catch(()=>{this.clipboardIcon="copy"})},closeChat(){this.$store.commit("sidebarChat/setChatOpen",!1)}},computed:{link(){return this.conversation.user.role==="author"||this.conversation.user.role==="admin"?"administration/users/detail/author":"administration/users/detail"},userId(){return this.conversation.user?this.conversation.user.id:0}}},dzn={class:"row align-items-center"},uzn={class:"col-auto pe-0 ps-0"},hzn=["src"],fzn={class:"col-auto"},mzn={class:"col-auto text-end pt-1 pb-1 ms-auto d-flex align-items-center"},pzn={key:0,class:"bg-secondary text-primary d-inline-flex align-items-center rounded-pill py-1 px-2dot5"};function gzn(e,t,n,o,i,r){const s=y("router-link"),a=y("AppIcon"),l=an("tooltip");return h(),g("div",dzn,[c("div",uzn,[b(s,{to:{name:r.link,params:{id:r.userId}},target:"_blank"},{default:F(()=>[c("img",{src:n.conversation.user.image_thumbnail,width:"32",height:"32",class:"rounded-circle object-fit-cover",onMouseover:t[0]||(t[0]=d=>i.hover=!0),onMouseleave:t[1]||(t[1]=d=>i.hover=!1)},null,40,hzn)]),_:1},8,["to"])]),c("div",fzn,[b(s,{to:{name:r.link,params:{id:r.userId}},target:"_blank"},{default:F(()=>[c("h5",{class:J(["m-0 text-truncate fw-bold",{"text-decoration-underline":i.hover}]),onMouseover:t[2]||(t[2]=d=>i.hover=!0),onMouseleave:t[3]||(t[3]=d=>i.hover=!1)},m(n.conversation.user.first_name+" "+n.conversation.user.last_name),35)]),_:1},8,["to"]),c("button",{class:"btn btn-link btn-sm medium text-primary text-truncate p-0",href:"",onClick:t[4]||(t[4]=Gt((...d)=>r.copyEmailToClipboard&&r.copyEmailToClipboard(...d),["prevent"]))},[z(m(n.conversation.user.email)+" ",1),xe(b(a,{icon:"copy",class:"cursor-pointer ms-1"},null,512),[[l,{content:e.$t("messenger.admin.copy_email"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])]),c("div",mzn,[n.conversation.user.role==="author"?xe((h(),g("div",pzn,[b(a,{icon:"materials",class:"me-1"}),z(" "+m(n.conversation.user.number_of_selling_products),1)])),[[l,{content:e.$t("messenger.admin.number_of_selling_products"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0),xe((h(),W(s,{class:"btn btn-tertiary btn-sm",to:{name:"administration/users/detail/settings",params:{id:r.userId}},target:"_blank"},{default:F(()=>[b(a,{icon:"edit"})]),_:1},8,["to"])),[[l,{content:e.$t("messenger.admin.edit"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),xe((h(),W(s,{class:"btn btn-tertiary btn-sm",to:{name:"administration/users/detail/finances/payments",params:{id:r.userId}},target:"_blank"},{default:F(()=>[b(a,{icon:"transaction"})]),_:1},8,["to"])),[[l,{content:e.$t("messenger.admin.transactions"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),n.conversation.user.school?xe((h(),W(s,{key:1,class:"btn btn-tertiary btn-sm",to:{name:"administration/school/detail",params:{id:n.conversation.user.school.id}},target:"_blank"},{default:F(()=>[b(a,{icon:"school"})]),_:1},8,["to"])),[[l,{content:n.conversation.user.school.long_name,delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0),xe((h(),W(s,{class:"btn btn-tertiary btn-sm",to:{name:"administration/users/detail/finances/orders",params:{id:r.userId}},target:"_blank"},{default:F(()=>[b(a,{icon:"document"})]),_:1},8,["to"])),[[l,{content:e.$t("messenger.admin.documents"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])])}const vzn=U(czn,[["render",gzn]]),_zn={components:{Loading:Rt,MessageConversation:jle,AdminChatHeader:vzn},props:{messagesHeight:{type:String,default(){return"600px"}}},data(){return{primaryColor:window.primaryColor,editor:fu,loading:!1,messages:[],messagesCount:-1,messageText:"",mailToUser:"common",mailToUserValues:["none","common"],newMessagesArrived:[]}},computed:{...Oe({conversation:"administrationMessages/getConversation"}),ucitelniceChatLogo(){return Fle}},methods:{load(e=!1){this.loading=!0,this.$store.dispatch("administrationMessages/loadConversation",{conversationId:this.conversation.id,showAll:e}).then(t=>{this.loading=!1,this.messages=t.data.messages,this.messagesCount=t.data.messages_count,this.$store.dispatch("auth/subtractUnreadMessagesCount",{count:this.conversation.unread_messages_count}),this.$store.dispatch("administrationMessage/markAsRead",{conversation_id:this.conversation.id}),this.conversation.unread_messages_count=0,this.newMessagesArrived=[],this.$nextTick(()=>{this.$emit("loaded")})}).catch(t=>{window.flash(t,"error"),this.loading=!1})},sendMessage(){if(this.messageText.length<1)return;this.loading=!0;let e={};this.messages.length>0?e={message:this.messageText,last_message_id:this.messages[this.messages.length-1].id,mail_to_user:this.mailToUser}:e={message:this.messageText,mail_to_user:this.mailToUser},this.$store.dispatch("administrationMessages/sendMessage",{messageData:e,userId:this.conversation.user.id}).then(t=>{this.$refs.quill.setText(""),this.mailToUser="none",this.messages.push(...t.data.new_messages),this.messages.forEach(n=>{n.is_seen=!0}),this.$store.dispatch("administrationMessages/updatePage",{page:1}),this.$store.dispatch("administrationMessages/loadFiltered"),this.newMessagesArrived=[]}).catch(t=>{let n=t.response.data.new_messages;n&&(this.messages.push(...n),this.newMessagesArrived=n.map(o=>o.id))}).finally(()=>{this.loading=!1})}},mounted(){this.conversation.id&&this.load()}},yzn={class:"vl-parent"},bzn={class:"p-3 ps-4 border-bottom shadow",id:"chat-header"},kzn={class:"p-4 pt-0 vl-parent",id:"conversation-container-outer"},wzn={id:"chat-quill-elements",class:"pt-3"},$zn={class:"quill-editor"},Czn={class:"w-100 d-flex justify-content-end mt-4"},Szn=["disabled"],Tzn={class:"row mt-3"},Ezn={class:"d-flex align-items-center"},Izn=["value"];function Pzn(e,t,n,o,i,r){const s=y("Loading"),a=y("AdminChatHeader"),l=y("MessageConversation"),d=y("quill-editor");return h(),g("div",yzn,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=u=>i.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",null,[c("div",bzn,[b(a,{conversation:e.conversation},null,8,["conversation"])]),c("div",kzn,[b(l,{messages:i.messages,"sender-image-path":r.ucitelniceChatLogo,"receiver-image-path":e.conversation.user.image_thumbnail,height:n.messagesHeight,"messages-count":i.messagesCount,"new-messages":i.newMessagesArrived,sidebar:!0,admin:!0,onShowAll:t[1]||(t[1]=u=>r.load(!0))},null,8,["messages","sender-image-path","receiver-image-path","height","messages-count","new-messages"]),c("div",wzn,[c("div",$zn,[b(d,{ref:"quill",contentType:"html",theme:"snow",content:i.messageText,"onUpdate:content":t[2]||(t[2]=u=>i.messageText=u),options:{...i.editor.chatToolbar},placeholder:e.$t("dashboard.user.messages.placeholder")},null,8,["content","options","placeholder"])]),c("div",Czn,[c("button",{class:"btn btn-primary",onClick:t[3]||(t[3]=(...u)=>r.sendMessage&&r.sendMessage(...u)),disabled:i.loading},m(e.$t("dashboard.user.messages.send")),9,Szn)]),c("div",Tzn,[(h(!0),g(pe,null,Me(i.mailToUserValues,(u,f)=>(h(),g("div",{key:f,class:"col-auto radio mb-2 cursor-pointer"},[c("label",Ezn,[xe(c("input",{type:"radio","onUpdate:modelValue":t[4]||(t[4]=p=>i.mailToUser=p),value:u,class:"me-2"},null,8,Izn),[[Df,i.mailToUser]]),z(" "+m(e.$tm("messenger.admin.notification_type")[u]),1)])]))),128))])])])])])}const Azn=U(_zn,[["render",Pzn]]);const Dzn={components:{AdminOpenedMessage:Azn,UserMessages:zle,AppIcon:Ue},props:{isAdmin:{type:Boolean,default(){return null}},user:{type:Object,default(){return null}}},data(){return{windowHeight:0,chatHeight:0}},methods:{closeChat(){this.$store.commit("sidebarChat/toggleChatOpen")},recomputeChatHeight(){let e=0,t=window.$("#chat-header"),n=window.$("#chat-quill-elements"),o=window.$("#conversation-container-outer");t.length&&n.length&&o.length&&(e=t.outerHeight()+n.outerHeight()+(o.outerHeight()-o.height())),this.chatHeight=this.windowHeight-e-1},focusSidebar(){this.$refs.sidebar.focus({preventScroll:!0})},updateWindowHeight(){this.windowHeight=window.innerHeight,this.recomputeChatHeight()}},computed:{...Oe({isChatOpen:"sidebarChat/getChatOpenStatus"})},mounted(){this.updateWindowHeight=is.debounce(this.updateWindowHeight,100),window.addEventListener("resize",this.updateWindowHeight)},beforeUnmount(){window.removeEventListener("resize",this.updateWindowHeight)},watch:{isChatOpen(e){e===!0?(this.windowHeight=window.innerHeight,this.focusSidebar(),document.body.style.overflow="hidden"):document.body.style.overflow="visible"}}},xzn={key:0,class:"sidebar-chat-panel"};function Ozn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("UserMessages"),l=y("AdminOpenedMessage");return h(),g("div",{class:"sidebar-chat",ref:"sidebar",onKeyup:t[2]||(t[2]=bs((...d)=>r.closeChat&&r.closeChat(...d),["esc"])),tabindex:"0"},[e.isChatOpen?(h(),g("div",{key:0,class:"sidebar-chat-backdrop",onClick:t[0]||(t[0]=(...d)=>r.closeChat&&r.closeChat(...d))})):D("",!0),b(nd,{name:"slide"},{default:F(()=>[e.isChatOpen?(h(),g("div",xzn,[c("div",{onClick:t[1]||(t[1]=(...d)=>r.closeChat&&r.closeChat(...d)),class:"sidebar-chat-close float-end"},[b(s,{icon:"close",width:"24",height:"24"})]),n.isAdmin?(h(),W(l,{key:1,"messages-height":i.chatHeight+"px",onLoaded:r.recomputeChatHeight},null,8,["messages-height","onLoaded"])):(h(),W(a,{"is-sidebar":"",user:n.user,"messages-height":i.chatHeight+"px",key:"sidebar-chat",onLoaded:r.recomputeChatHeight},null,8,["user","messages-height","onLoaded"]))])):D("",!0)]),_:1})],544)}const Yce=U(Dzn,[["render",Ozn]]),Lzn={mounted(){this.$store.dispatch("homepageAnalytics/setIsOnHomepage");let e=document.getElementById("main-navbar").querySelectorAll(".btn.btn-link");for(let t of e)t.addEventListener("click",()=>this.clickNavbar())},methods:{clickNavbar(){this.$store.dispatch("homepageAnalytics/clickNavbar")}}};function Mzn(e,t,n,o,i,r){return h(),g("span")}const Nzn=U(Lzn,[["render",Mzn]]),Rzn={components:{AppIcon:Ue,OffcanvasSidebar:wL},props:{id:[String,Number],color:String,title:String,textClass:{type:String,default:"text-white"},linkTitle:{type:String,default:""},linkHref:{type:String,default:""},canBeClosed:{type:Boolean,default:!1}}},jzn=["href"];function Fzn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("OffcanvasSidebar");return h(),W(a,{position:"end",id:"infobox-mobile-"+n.id,"bg-color":n.color},{title:F(()=>[c("p",{class:J(["mb-0 fw-bold large ps-4 pt-4",[n.textClass]])},m(n.title),3)]),button:F(()=>[c("button",{class:J(["btn btn-sm btn-link offcanvas-close pt-4 pe-4",[n.textClass]]),type:"button","data-bs-dismiss":"offcanvas","aria-label":"Close"},[b(s,{icon:"close",width:"24",height:"24"})],2)]),content:F(()=>[c("div",{class:J(["p-5 pt-3",[n.textClass]])},[Pt(e.$slots,"content"),n.linkHref?(h(),g("a",{key:0,href:n.linkHref,target:"_blank",class:J(["text-decoration-underline cursor-pointer fw-bold",[n.textClass]])},m(n.linkTitle),11,jzn)):D("",!0)],2)]),_:3},8,["id","bg-color"])}const zzn=U(Rzn,[["render",Fzn]]),Uzn={components:{InfoboxOffcanvas:zzn,AppIcon:Ue},props:{id:[String,Number],color:String,title:String,textClass:{type:String,default:"text-white"},linkTitle:{type:String,default:""},linkHref:{type:String,default:""},canBeClosed:{type:Boolean,default:!1},index:Number},data(){return{infoboxHeight:159}},methods:{computeHeight(){this.$nextTick(()=>{let e=window._.get(this.$refs,"infobox"+this.index),t=e.currentStyle||window.getComputedStyle(e),n=parseInt(t.marginTop),o=parseInt(t.marginBottom),i=e.offsetHeight;this.infoboxHeight=n+o+i})}},created(){window.addEventListener("resize",this.computeHeight)},unmounted(){window.removeEventListener("resize",this.computeHeight)},mounted(){this.computeHeight()}},Bzn={class:"row align-items-center container d-none d-lg-flex"},Hzn={class:"col-12 d-flex flex-wrap justify-content-between align-items-center mb-1"},Vzn={class:"fw-bold mb-0 mt-1"},qzn={key:0,class:"col-auto ms-auto"},Yzn={class:"col-11"},Wzn=["href"],Gzn={class:"d-lg-none d-flex flex-wrap w-100 align-items-center"},Zzn=["data-bs-target"],Kzn={key:0,class:"pe-3"};function Jzn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("InfoboxOffcanvas");return h(),g("div",{class:"col",style:Bn("height:"+i.infoboxHeight+"px")},[c("div",{class:J(["infobox-container py-0 py-lg-3 text-primary d-flex justify-content-center shadow",[n.textClass]]),style:Bn("background-color:"+n.color+";"),ref:"infobox"+n.index},[c("div",Bzn,[c("div",Hzn,[c("p",Vzn,m(n.title),1),n.canBeClosed?(h(),g("div",qzn,[c("button",{class:J(["btn btn-tertiary btn-sm",[n.textClass]]),onClick:t[0]||(t[0]=l=>e.$emit("close"))},[b(s,{icon:"close",height:"24",width:"24"})],2)])):D("",!0)]),c("div",Yzn,[c("p",{class:J(["mb-0",{"mb-1":n.linkHref}])},[Pt(e.$slots,"default")],2),n.linkHref?(h(),g("a",{key:0,href:n.linkHref,target:"_blank",class:J(["text-decoration-underline cursor-pointer fw-bold",[n.textClass]])},m(n.linkTitle),11,Wzn)):D("",!0)])]),c("div",Gzn,[c("button",{class:"btn btn-link d-lg-none row align-items-center flex-grow-1 d-flex",type:"button","data-bs-toggle":"offcanvas","data-bs-target":"#infobox-mobile-"+n.id+"-offcanvas","aria-expanded":"false","aria-label":"Open mobile infobox"},[c("span",{class:J(["col-auto fw-bold",[n.textClass]])},m(n.title),3),c("span",{class:J(["col-auto flex-grow-1 pt-2 pb-2 pe-4 text-end",[n.textClass]])},[b(s,{icon:"chevron-right",height:"24",width:"24"})],2)],8,Zzn),n.canBeClosed?(h(),g("div",Kzn,[c("button",{class:J(["btn btn-tertiary btn-sm",[n.textClass]]),onClick:t[1]||(t[1]=l=>e.$emit("close"))},[b(s,{icon:"close-circle",height:"24",width:"24"})],2)])):D("",!0)])],6),b(a,{title:n.title,"link-href":n.linkHref,"link-title":n.linkTitle,"can-be-closed":n.canBeClosed,"text-class":n.textClass,color:n.color,id:n.id},{content:F(()=>[c("p",{class:J([n.textClass])},[Pt(e.$slots,"default")],2)]),_:3},8,["title","link-href","link-title","can-be-closed","text-class","color","id"])],4)}const PM=U(Uzn,[["render",Jzn]]),Wce=""+new URL("discount-b2ecda3e.svg",import.meta.url).href,Xzn=""+new URL("discount_label-fcc70844.svg",import.meta.url).href,Qzn=""+new URL("discount_label_sm-32c53f93.svg",import.meta.url).href,eUn={props:{code:String},data(){return{discountLabel:Xzn,discountLabelSm:Qzn}},methods:{copy(){this.$copyText(this.code),window.flash(this.$t("clipboard.copied"),"success")}}},tUn=["src"],nUn=["src"];function oUn(e,t,n,o,i,r){return h(),g("div",null,[c("span",{onClick:t[0]||(t[0]=Gt((...s)=>r.copy&&r.copy(...s),["prevent"])),class:"text-white bg-danger medium fw-bold position-absolute start-5 top-51dot8 top-md-down-15 cursor-copy"},m(n.code),1),c("img",{class:"d-none d-sm-block text-froly",src:i.discountLabel},null,8,tUn),c("img",{class:"d-block d-sm-none text-froly",src:i.discountLabelSm},null,8,nUn)])}const Gce=U(eUn,[["render",oUn]]);const iUn={components:{CountDownTimer:uM,DiscountCodeImage:Gce,AppIcon:Ue},data(){return{discountImage:Wce}},computed:{...sn({discount:e=>e.discount.detail})},methods:{hide(){this.$emit("hide")}}},rUn={class:"col h-lg-9dot05rem h-sm-6dot875rem h-8rem"},sUn={class:"infobox-container bg-warning-infobox text-white overflow-hidden z-index-1 px-3 px-lg-5 h-lg-9dot05rem h-sm-6dot875rem h-8rem"},aUn={class:"row h-100"},lUn={class:"col-xl-3 d-none d-xl-block"},cUn=["src"],dUn={class:"col col-xl-9"},uUn={class:"row h-100"},hUn={class:"col px-3 px-xl-6 z-3"},fUn={class:"d-flex flex-column flex-sm-row align-items-start align-items-sm-center"},mUn={class:"py-3 py-lg-5"},pUn={class:"text-white h5 h2-sm blur-filter fw-bold"},gUn={class:"text-white small h5-sm text-nowrap blur-filter me-sm-2dot5 mb-0"},vUn={class:"position-relative"},_Un={class:"col-auto d-none d-lg-flex flex-column justify-content-center align-items-center px-6"},yUn={class:"col-auto d-sm-none d-flex align-items-center"};function bUn(e,t,n,o,i,r){const s=y("DiscountCodeImage"),a=y("CountDownTimer"),l=y("AppIcon");return h(),g("div",rUn,[c("div",sUn,[c("div",aUn,[c("div",lUn,[c("img",{src:i.discountImage,class:"h-9dot875 h-sm-8dot125rem h-lg-10dot925rem mt-neg-0dot625rem"},null,8,cUn)]),c("div",dUn,[c("div",uUn,[c("div",hUn,[c("div",fUn,[c("div",mUn,[c("h2",pUn,m(e.$t("discount.box.title")),1),c("p",gUn,m(e.$t("discount.box.code",{value:e.discount.discount})),1)]),c("div",vUn,[b(s,{code:e.discount.code,class:"position-absolute translate-middle-y mt-2dot5"},null,8,["code"])])])]),c("div",_Un,[b(a,{"target-date":e.discount.valid_to_datetime,title:e.$t("discount.box.time_left"),class:"z-3"},null,8,["target-date","title"])])])]),c("div",yUn,[c("div",{onClick:t[0]||(t[0]=Gt((...d)=>r.hide&&r.hide(...d),["prevent"]))},[b(l,{icon:"close",width:"24",height:"24"})])])])])])}const kUn=U(iUn,[["render",bUn],["__scopeId","data-v-e0c92e88"]]),wUn={components:{CountDownTimer:uM,DiscountCodeImage:Gce,AppIcon:Ue},data(){return{discountImage:Wce}},computed:{...sn({discount:e=>e.discount.detail})},methods:{hide(){this.$emit("hide")}}},$Un={class:"col h-8rem h-sm-5dot625rem h-md-4rem"},CUn={class:"infobox-container bg-warning-infobox text-white overflow-hidden z-index-1 px-3 px-xl-5 h-8rem h-sm-5dot625rem h-md-4rem"},SUn={class:"row h-100"},TUn={class:"col-xl-auto d-none d-xl-block"},EUn=["src"],IUn={class:"col"},PUn={class:"row"},AUn={class:"col d-flex flex-column flex-sm-row align-items-sm-center px-3 z-3"},DUn={class:"py-3 d-flex flex-column flex-md-row align-items-md-center"},xUn={class:"text-white h5 h3-sm text-shadow fw-bold mb-sm-0 me-md-3"},OUn={class:"text-white small h5-sm text-nowrap text-shadow me-sm-2dot5 mb-0"},LUn={class:"position-relative"},MUn={class:"col-auto d-none d-lg-flex flex-column justify-content-center align-items-center"},NUn={class:"col-auto d-sm-none d-flex align-items-center"};function RUn(e,t,n,o,i,r){const s=y("DiscountCodeImage"),a=y("CountDownTimer"),l=y("AppIcon");return h(),g("div",$Un,[c("div",CUn,[c("div",SUn,[c("div",TUn,[c("img",{src:i.discountImage,class:"h-9dot25rem h-sm-6dot875rem h-md-5dot25rem mt-neg-2"},null,8,EUn)]),c("div",IUn,[c("div",PUn,[c("div",AUn,[c("div",DUn,[c("h2",xUn,m(e.$t("discount.box.title")),1),c("p",OUn,m(e.$t("discount.box.code",{value:e.discount.discount})),1)]),c("div",LUn,[b(s,{code:e.discount.code,class:"position-absolute translate-middle-y mt-2dot5 mt-sm-1 mt-md-neg-2dot5"},null,8,["code"])])]),c("div",MUn,[b(a,{"target-date":e.discount.valid_to_datetime,"no-label":"",class:"z-3"},null,8,["target-date"])])])]),c("div",NUn,[c("div",{onClick:t[0]||(t[0]=Gt((...d)=>r.hide&&r.hide(...d),["prevent"]))},[b(l,{icon:"close",width:"24",height:"24"})])])])])])}const jUn=U(wUn,[["render",RUn]]),FUn={components:{DiscountBoxLarge:kUn,DiscountBoxSmall:jUn},data(){return{homeUrls:["/","/home"],show:!0}},computed:{...Oe({discountIsActive:"discount/getIsActive"}),...sn({discount:e=>e.discount.detail}),largeShown(){return this.homeUrls.includes(this.$route.path)},discountBoxHref(){return Pe("materialy",{orderBy:"discount_amount"})},showBox(){return this.show&&this.discountIsActive}},methods:{hide(){let e="discountbox_"+this.discount.id;window.$cookies.set(e,this.discount.id,"1h"),this.show=!1},checkIfHidden(){this.discount&&window.$cookies.get("discountbox_"+this.discount.id)===String(this.discount.id)&&(this.show=!1)}},mounted(){this.$store.dispatch("discount/show").then(()=>{this.checkIfHidden()}).catch(()=>{})}},zUn=["href"];function UUn(e,t,n,o,i,r){const s=y("DiscountBoxLarge"),a=y("DiscountBoxSmall");return r.showBox?(h(),g("a",{key:0,href:r.discountBoxHref},[r.largeShown?(h(),W(s,{key:0,onHide:r.hide},null,8,["onHide"])):(h(),W(a,{key:1,onHide:r.hide},null,8,["onHide"]))],8,zUn)):D("",!0)}const BUn=U(FUn,[["render",UUn]]),HUn=""+new URL("home_photo-6f4d6ca4.jpeg",import.meta.url).href,VUn=e=>De.post(Pe("api.newsletter.register"),{email:e}),qUn={register:VUn},YUn={props:{id:{type:String,required:!0},value:{type:String,required:!0},label:{type:String,required:!0},placeholder:{type:String,default:""},isInvalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}}},WUn={class:"form-group form-floating position-relative"},GUn=["id","value","disabled","placeholder"],ZUn={for:"email",class:"form-label"};function KUn(e,t,n,o,i,r){return h(),g("div",WUn,[c("input",{id:n.id,type:"email",name:"email",value:n.value,onInput:t[0]||(t[0]=s=>e.$emit("update:value",s.target.value)),disabled:n.disabled,class:J(["form-control",{"is-invalid":n.isInvalid}]),placeholder:n.placeholder,autocomplete:"email","aria-invalid":"false"},null,42,GUn),c("label",ZUn,m(n.label),1),Pt(e.$slots,"error")])}const JUn=U(YUn,[["render",KUn]]),XUn={data(){return{email:"",primaryColor:window.primaryColor,loading:!1,success:!1,gdprFile:ks.files.personalDataProcessing}},components:{EmailInput:JUn,Loading:Rt},validations:{email:{required:Yt,email:Rf}},methods:{update(){this.v$.$touch(),!this.v$.$invalid&&(this.loading=!0,qUn.register(this.email).then(e=>{window.flash(e),this.loading=!1,this.success=!0,this.email="",this.v$.$reset()}).catch(e=>{window.flash(e),this.loading=!1}))}},setup(){return{v$:Pn()}}},QUn={class:"row"},eBn={class:"col-12 content-box shadow p-5 border-top-8-success z-index-1 vl-parent"},tBn={class:"row align-items-center"},nBn={key:0,class:"col-12"},oBn={key:1,class:"col-12 col-lg-5"},iBn={class:"m-0 p-0 text-gray-600 w-md-80"},rBn={class:"col-12 col-lg-7 mt-3 mt-md-0 flex-grow-1"},sBn={class:"col-12 col-lg-7"},aBn={key:0,class:"invalid-feedback"},lBn={key:1,class:"invalid-feedback"},cBn={class:"col-12 col-lg-auto mt-3 mt-lg-0 text-center"},dBn={class:"mt-1 text-end"},uBn=["href"];function hBn(e,t,n,o,i,r){const s=y("Loading"),a=y("EmailInput");return h(),g("div",QUn,[c("div",eBn,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=l=>i.loading=l),color:i.primaryColor,"is-full-page":!0},null,8,["active","color"]),c("div",tBn,[i.success?(h(),g("div",nBn,[c("h4",null,m(e.$t("newsletter.form.message.success_headline")),1),c("p",null,m(e.$t("newsletter.form.message.success")),1)])):(h(),g("div",oBn,[c("h3",null,m(e.$t("newsletter.headline")),1),c("p",iBn,m(e.$t("newsletter.text")),1)])),xe(c("div",rBn,[c("form",{class:"row justify-content-end align-items-baseline mt-3",onSubmit:t[3]||(t[3]=Gt(()=>{},["prevent"]))},[c("div",sBn,[b(a,{id:"newsletter-email",label:e.$t("newsletter.form.email.label"),placeholder:e.$t("newsletter.form.email.placeholder"),value:o.v$.email.$model,"onUpdate:value":t[1]||(t[1]=l=>o.v$.email.$model=l),"is-invalid":o.v$.email.$error,disabled:i.loading},{error:F(()=>[o.v$.email.$error&&o.v$.email.required.$invalid?(h(),g("span",aBn,m(e.$t("validation.custom.email.required")),1)):D("",!0),o.v$.email.$error&&o.v$.email.email.$invalid?(h(),g("span",lBn,m(e.$t("validation.custom.email.email")),1)):D("",!0)]),_:1},8,["label","placeholder","value","is-invalid","disabled"])]),c("div",cBn,[c("button",{type:"submit",class:"btn btn-primary",onClick:t[2]||(t[2]=(...l)=>r.update&&r.update(...l))},m(e.$t("newsletter.form.submit")),1)])],32),c("div",dBn,[c("a",{href:i.gdprFile,target:"_blank",class:"text-decoration-underline-hover text-gray-700 small"},m(e.$t("newsletter.form.gdpr")),9,uBn)])],512),[[Vo,!i.success]])])])])}const fBn=U(XUn,[["render",hBn]]),mBn={props:{size:{type:String,default:"small"}},data(){return{windowWidth:window.innerWidth}},mounted(){this.$nextTick(()=>{window.addEventListener("resize",this.onResize)})},beforeUnmount(){window.removeEventListener("resize",this.onResize)},methods:{onResize(){this.windowWidth=window.innerWidth}},computed:{waveHeight(){return this.size=="big"?"600px":this.size=="medium"?"300px":"150px"},darkBackground(){return this.windowWidth<275}}};function pBn(e,t,n,o,i,r){return h(),g("div",{class:J(["overflow-hidden",r.darkBackground?"bg-gray-900":"bg-transparent"]),id:"footer-wave",style:Bn("height: "+r.waveHeight)},t[0]||(t[0]=[c("svg",{class:"w-100 h-auto",width:"375",height:"866",viewBox:"0 0 375 866",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M0 6.72165C0 6.72165 94.5 20.1142 187.5 6.72165C280.5 -6.67089 325 3.54999 375 6.72165V866H0V6.72165Z",fill:"#1B2A4E"})],-1)]),6)}const gBn=U(mBn,[["render",pBn]]),vBn={data(){return{windowWidth:window.innerWidth}},mounted(){this.$nextTick(()=>{window.addEventListener("resize",this.onResize)})},beforeUnmount(){window.removeEventListener("resize",this.onResize)},methods:{onResize(){this.windowWidth=window.innerWidth}},computed:{rotate(){return this.windowWidth<720}}};function _Bn(e,t,n,o,i,r){return h(),g("div",{class:J(r.rotate?"position-absolute top-50 start-50 translate-middle w-62dot5rem pointer-events-none":"position-absolute bottom-10 start-50 translate-middle-x w-100 pointer-events-none")},[(h(),g("svg",{class:J([{"rotate-right-90":r.rotate},"w-100 h-100"]),width:"1425",height:"324",viewBox:"0 0 1425 324",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t[0]||(t[0]=[wl('<g opacity="0.05"><path d="M1355.69 247.464L1399.23 243.43L1397.93 259.939L1355.69 247.464Z" fill="white"></path></g><rect opacity="0.05" x="134.838" y="38.2832" width="66.0637" height="22.0212" transform="rotate(-165.085 134.838 38.2832)" fill="white"></rect><g opacity="0.05"><path d="M2.55138 226.514L40.1748 290.603L13.239 300.154L2.55138 226.514Z" fill="white"></path></g><g opacity="0.05"><path d="M1371.36 50.2204L1374.01 27.3792L1392.53 39.083L1394.64 19.9218L1411.52 31.5219L1416.78 10.8071" stroke="white" stroke-width="6.0057"></path></g><g opacity="0.05"><ellipse cx="1360.53" cy="148.4" rx="26.5252" ry="26.4001" fill="white"></ellipse></g><g opacity="0.05"><ellipse cx="13.5252" cy="95.4001" rx="26.5252" ry="26.4001" fill="white"></ellipse></g><g opacity="0.05"><circle cx="130.021" cy="186.021" r="22.0209" fill="white"></circle></g><g opacity="0.05"><path d="M210.725 176.05C210.725 176.05 206.427 150.482 218.762 145.386C229.125 141.105 238.11 160.038 246.625 153.174C255.25 146.221 233.719 135.206 240.731 126.89C248.111 118.138 271.809 126.89 271.809 126.89" stroke="white" stroke-width="6.0057"></path></g><path opacity="0.05" d="M1145 181.572C1145 181.572 1182.62 162.789 1191.15 172.634C1195.84 178.042 1199.38 184.593 1195.18 189.915C1191.94 194.018 1187.27 194.541 1181.79 193.577C1170.2 191.536 1170.38 175.394 1175.03 165.398C1181.46 151.595 1215.57 159.742 1215.57 159.742" stroke="white" stroke-width="6.0057"></path>',9)]),2))],2)}const yBn=U(vBn,[["render",_Bn]]),bBn={components:{AppIcon:Ue},props:{title:String,items:Array,urls:Array},methods:{isPdf(e){return e?e.endsWith(".pdf"):!1}}},kBn={class:"text-gray-600 text-uppercase small fw-bold"},wBn={class:"p-0 m-0 list-style-type-none"},$Bn=["href","target"],CBn=["innerHTML"];function SBn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",null,[c("div",kBn,m(n.title),1),c("ul",wBn,[(h(!0),g(pe,null,Me(n.items,(a,l)=>(h(),g("li",{class:"mt-2",key:l},[c("a",{class:"text-decoration-underline-hover text-nowrap text-white medium",href:n.urls[l],target:r.isPdf(n.urls[l])?"_blank":"_self"},[c("span",{innerHTML:a},null,8,CBn),r.isPdf(n.urls[l])?(h(),W(s,{key:0,icon:"download",height:"16",width:"16",class:"ms-1 text-white"})):D("",!0)],8,$Bn)]))),128))])])}const TBn=U(bBn,[["render",SBn]]),EBn=""+new URL("logo-white-bb59025d.png",import.meta.url).href,IBn=""+new URL("logo-color-37177116.webp",import.meta.url).href,PBn=""+new URL("logo-short-cd9d281d.webp",import.meta.url).href;const ABn={props:{height:{type:[Number,null],default:30},width:{type:[Number,null],default:null},short:{type:Boolean,default:!1},white:{type:Boolean,default:!1}},data(){return{logoLong:IBn,logoShort:PBn}},computed:{src(){return this.short?this.logoShort:this.logoLong}}},DBn=["src","height","width"];function xBn(e,t,n,o,i,r){return h(),g("img",{src:r.src,height:n.height,width:n.width,alt:"UÄŤitelnice.cz",class:J({"white-filter":n.white})},null,10,DBn)}const kp=U(ABn,[["render",xBn],["__scopeId","data-v-e88e1431"]]),OBn={components:{UcitelniceLogo:kp,SocialsIcons:Qse,FooterList:TBn},data(){return{ucitelniceLogo:EBn,urls:[[this.ziggyRoute("author.author"),this.ziggyRoute("page",{slug:"o-nas"}),this.ziggyRoute("review.index"),this.ziggyRoute("page.cooperation"),this.ziggyRoute("page",{slug:"kontakt"})],[this.ziggyRoute("faq"),this.ziggyRoute("user.be_author.index"),"https://webinar.ucitelnice.cz/webinare",this.ziggyRoute("blog.index"),this.ziggyRoute("voucher.index")],[this.ziggyRoute("school.index"),this.ziggyRoute("faq.school"),ks.schools.schoolInfoSheet,ks.schools.accountantManual],[ks.vop,ks.files.personalDataProcessing]]}}},LBn={class:"row"},MBn={class:"col-lg-3"},NBn={href:"/"},RBn={class:"text-white medium mb-6 pe-6"},jBn={class:"col-lg-9 mt-lg-0 mt-4"},FBn={class:"row"},zBn={class:"col-lg-3 col-md-6 mb-4 mb-lg-0"},UBn={class:"col-lg-3 col-md-6 mb-4 mb-lg-0"},BBn={class:"col-lg-3 col-md-6 mb-4 mb-lg-0"},HBn={class:"col-lg-3 col-md-6"};function VBn(e,t,n,o,i,r){const s=y("UcitelniceLogo"),a=y("SocialsIcons"),l=y("FooterList");return h(),g("div",LBn,[c("div",MBn,[c("a",NBn,[b(s,{class:"mb-3",height:40,white:""})]),c("p",RBn,m(e.$t("footer.main.text")),1),b(a,{color:"white"})]),c("div",jBn,[c("div",FBn,[c("div",zBn,[b(l,{title:e.$t("footer.main.cols.0.headline"),items:e.$tm("footer.main.cols.0.items"),urls:i.urls[0]},null,8,["title","items","urls"])]),c("div",UBn,[b(l,{title:e.$t("footer.main.cols.1.headline"),items:e.$tm("footer.main.cols.1.items"),urls:i.urls[1]},null,8,["title","items","urls"])]),c("div",BBn,[b(l,{title:e.$t("footer.main.cols.2.headline"),items:e.$tm("footer.main.cols.2.items"),urls:i.urls[2]},null,8,["title","items","urls"])]),c("div",HBn,[b(l,{title:e.$t("footer.main.cols.3.headline"),items:e.$tm("footer.main.cols.3.items"),urls:i.urls[3]},null,8,["title","items","urls"])])])])])}const qBn=U(OBn,[["render",VBn]]),YBn={components:{NewsletterBox:fBn,ConfettiBackground:yBn,FooterWave:gBn,FooterBody:qBn},data(){return{homePhoto:HUn,footerUrls:{big:["/skola"],medium:[],smaller:[],purchase:["/kosik"],newsletter:["/informace/o-nas","/informace/spolupracujeme","/autori","/informace/kontakt","/blog","/stat-se-autorem","/webinare"],home:["/","/home"]}}},computed:{...sn({cartItems:e=>e.cart.items,cartIsForSchool:e=>e.cart.is_for_school}),...Oe({auth:"auth/auth"}),footerSize(){return this.footerUrls.big.includes(this.$route.path)?"big":this.footerUrls.medium.includes(this.$route.path)?"medium":this.footerUrls.smaller.includes(this.$route.path)||this.purchaseUrl?"smaller":"small"},showCartSetAsSchoolBox(){return this.purchaseUrl&&this.auth.has_school&&Object.keys(this.cartItems).length>0&&!this.cartIsForSchool},purchaseUrl(){return this.footerUrls.purchase.includes(this.$route.path)},newsletterUrl(){return this.footerUrls.newsletter.some(e=>this.$route.path.startsWith(e))},homeUrl(){return this.footerUrls.home.includes(this.$route.path)}}},WBn={class:"p-0"},GBn={key:0,class:"container mt-4dot5rem mb-neg-7dot8125rem"},ZBn={key:1,class:"w-full-page z-index-0 mt-neg-48rem"},KBn={style:{height:"1000px"},class:"w-100 overflow-hidden mb-neg-16rem"},JBn=["src"],XBn={class:"bg-transparent p-0"},QBn={class:"position-relative overflow-hidden"},eHn={class:"bg-gray-900 py-3"},tHn={class:"container py-6"};function nHn(e,t,n,o,i,r){const s=y("NewsletterBox"),a=y("ConfettiBackground"),l=y("FooterWave"),d=y("FooterBody");return h(),g("div",WBn,[r.newsletterUrl?(h(),g("div",GBn,[b(s)])):D("",!0),r.homeUrl?(h(),g("div",ZBn,[c("div",KBn,[c("img",{class:"w-footer-image",src:i.homePhoto},null,8,JBn)])])):D("",!0),c("footer",XBn,[c("div",QBn,[b(a),b(l,{size:r.footerSize},null,8,["size"]),c("div",eHn,[c("div",tHn,[b(d)])])])])])}const oHn=U(YBn,[["render",nHn]]),iHn={components:{SectionGhost:ise,SectionProductList:p6},slots:["title"],data(){return{recommendationData:[],productConfig:Wa,loading:!1}},methods:{getProducts(){this.loading=!0,Og.index404().then(e=>{this.recommendationData=e.data,this.loading=!1})}},mounted(){this.getProducts()}},rHn={class:"row"},sHn={class:"col-12"},aHn={key:0,class:"d-flex flex-wrap align-items-baseline"},lHn={class:"mb-3"},cHn=["href"];function dHn(e,t,n,o,i,r){const s=y("app-icon"),a=y("SectionGhost"),l=y("SectionProductList");return h(),g("div",rHn,[c("div",sHn,[e.$slots.title?(h(),g("div",aHn,[c("div",lHn,[Pt(e.$slots,"title")]),c("a",{href:e.ziggyRoute("materialy"),class:"btn btn-secondary btn-center btn-sm fw-medium ms-auto"},[z(m(e.$t("section.show_more_without_count"))+" ",1),b(s,{icon:"arrow-right",class:"ms-icon"})],8,cHn)])):D("",!0),i.loading?(h(),W(a,{key:1,"horizontal-scroll-mobile":!0,count:5,px:2,mt:3})):(h(),W(l,{key:2,products:i.recommendationData,occurance:i.productConfig.occurence.page_not_found,"horizontal-scroll-mobile":!0},null,8,["products","occurance"]))])])}const Zce=U(iHn,[["render",dHn]]),uHn={components:{InfoBoxElement:PM},props:{user:Object,infobox:Object},computed:{infoboxColor(){if(this.infobox){if(this.infobox.type==="new")return"#5EBF79";if(this.infobox.type==="error")return"#DF4759";if(this.infobox.type==="info")return"#EBEFFD";if(this.infobox.type==="warning")return"#FFC642"}return"#EBEFFD"},textClass(){return this.infobox?this.infobox.type==="info"||this.infobox.type==="warning"?"text-gray-900":"text-white":"text-gray-900"},canBeClosed(){return this.infobox&&this.infobox.type!=="error"},show(){return this.infobox&&this.infobox.show&&(this.infobox.type!="info"||this.infobox.type=="info"&&this.$route.path=="/")}},methods:{closeInfobox(){this.$store.commit("infobox/setShow",this.infobox.id,!1);let e="ib_"+this.infobox.hash;window.$cookies.set(e,this.infobox.id,"7d")}}},hHn=["innerHTML"];function fHn(e,t,n,o,i,r){const s=y("InfoBoxElement");return r.show?(h(),W(s,{key:0,color:r.infoboxColor,id:"main-infobox-"+n.infobox.id,index:n.infobox.id,"text-class":r.textClass,title:n.infobox.title,"link-href":n.infobox.link_href,"link-title":n.infobox.link_title,"can-be-closed":r.canBeClosed,onClose:r.closeInfobox},{default:F(()=>[c("div",{innerHTML:n.infobox.content},null,8,hHn)]),_:1},8,["color","id","index","text-class","title","link-href","link-title","can-be-closed","onClose"])):D("",!0)}const mHn=U(uHn,[["render",fHn]]),pHn={components:{InfoBox:mHn},props:{user:Object},computed:{...Oe({infoboxes:"infobox/getList",loading:"infobox/loading"})},methods:{load(){this.$store.dispatch("infobox/loadList")}},mounted(){this.load()}};function gHn(e,t,n,o,i,r){const s=y("InfoBox");return h(),g("div",null,[(h(!0),g(pe,null,Me(e.infoboxes,(a,l)=>(h(),W(s,{user:n.user,infobox:a,key:l},null,8,["user","infobox"]))),128))])}const vHn=U(pHn,[["render",gHn]]),_Hn={components:{UcitelniceLogo:kp,AppIcon:Ue,Loading:Rt,InputPassword:ok,CheckboxInput:ba},props:{isModal:{type:Boolean,default(){return!1}},intendedLocation:{type:String,default(){return null}},context:{type:String,default(){return null}}},computed:{passwordInvalidMessage(){return this.v$.password.$error&&this.v$.password.required.$invalid?this.$t("validation.custom.password.required"):this.error_message.password?this.error_message.password:null}},methods:{resetError(){this.error_message={password:null,email:null}},onBlur(e){e.$touch()},goto(e){this.$emit("goto",e)},login(){this.v$.$invalid||(this.loading=!0,this.resetError(),ai.login(this.context),Qc.login({email:this.email,password:this.password,remember:this.stay_logged_in}).then(e=>{if(this.loading=!1,window.flash(e.data.message,"success"),this.intendedLocation!==null){location.href=this.intendedLocation;return}if(this.$route.fullPath=="/objednavka/platba/vyber-metody"){location.href=this.ziggyRoute("cart.index");return}let t=e.data.location;t===null||typeof t>"u"||this.isModal?location.reload():location.href=t}).catch(e=>{var n,o,i,r,s,a,l,d,u;if(this.loading=!1,((n=e==null?void 0:e.response)==null?void 0:n.status)===403){this.$emit("setEmail",e.response.data.email_not_confirmed),this.$emit("goto","not_activated"),window.axios.defaults.headers.common["X-CSRF-TOKEN"]=e.response.data.token;return}if(!((i=(o=e==null?void 0:e.response)==null?void 0:o.data)!=null&&i.error)){(s=(r=e==null?void 0:e.response)==null?void 0:r.data)!=null&&s.message&&window.flash(e.response.data.message,"error");let f=(l=(a=e==null?void 0:e.response)==null?void 0:a.data)==null?void 0:l.location;(f!==null||typeof f<"u")&&(location.href=f);return}let t=(u=(d=e==null?void 0:e.response)==null?void 0:d.data)==null?void 0:u.error;this.error_message=t,t.email?window.flash(t.email,"error"):t.password?window.flash(t.password,"error"):window.flash(e.response.data.error,"error")}))},loginFacebook(){location.href=this.ziggyRoute("facebook.redirect")}},data(){return{email:"",password:"",stay_logged_in:!1,loading:!1,error_message:{password:null,email:null},primaryColor:window.primaryColor}},validations:{email:{required:Yt,email:Rf},password:{required:Yt}},watch:{email(){this.error_message.email=null},password(){this.v$.password.$touch(),this.error_message.password=null}},setup(){return{v$:Pn()}}},yHn={class:"row"},bHn={class:"col-12 content-box login-register-form vl-parent m-0"},kHn={key:0,class:"d-flex justify-content-center mb-5"},wHn={class:"text-center mb-3"},$Hn={class:"text-center text-gray-600 mb-5"},CHn={class:"form-group mb-3"},SHn=["placeholder"],THn={key:0,class:"invalid-feedback"},EHn={key:1,class:"invalid-feedback"},IHn={key:2,class:"invalid-feedback"},PHn={class:"form-group form-floating mb-3"},AHn=["disabled"],DHn={class:"row text-center mt-4"},xHn={class:"separator-with-text mb-4 mt-4"},OHn={class:"small text-gray-600 text-uppercase"},LHn={class:"text-center text-gray-600 mt-6"};function MHn(e,t,n,o,i,r){const s=y("Loading"),a=y("UcitelniceLogo"),l=y("InputPassword"),d=y("CheckboxInput"),u=y("AppIcon");return h(),g("div",yHn,[c("div",bHn,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=f=>i.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),n.isModal?(h(),g("div",kHn,[b(a,{height:32})])):D("",!0),c("h2",wHn,m(e.$t("login.headline")),1),c("p",$Hn,[z(m(e.$t("login.text")+" ")+" ",1),c("a",{class:"text-decoration-none",href:"",onClick:t[1]||(t[1]=Gt(f=>r.goto("register"),["prevent"]))},m(e.$t("login.register")),1)]),c("form",{onSubmit:t[9]||(t[9]=Gt(()=>{},["prevent"]))},[c("div",CHn,[xe(c("input",{id:"email",name:"email",type:"text",class:J(["py-2 px-3",{"form-control":!0,"is-invalid":o.v$.email.$error||i.error_message.email}]),placeholder:e.$t("login.form.email.placeholder"),autocomplete:"username","onUpdate:modelValue":t[2]||(t[2]=f=>i.email=f),onBlur:t[3]||(t[3]=f=>r.onBlur(o.v$.email))},null,42,SHn),[[wt,i.email]]),o.v$.email.$error&&o.v$.email.email.$invalid?(h(),g("span",THn,m(e.$t("validation.custom.email.email")),1)):D("",!0),o.v$.email.$error&&o.v$.email.required.$invalid?(h(),g("span",EHn,m(e.$t("validation.custom.email.required")),1)):D("",!0),i.error_message.email?(h(),g("span",IHn,m(i.error_message.email),1)):D("",!0)]),c("div",PHn,[b(l,{value:i.password,"onUpdate:value":t[4]||(t[4]=f=>i.password=f),placeholder:e.$t("login.form.password.placeholder"),invalid:o.v$.password.$error||i.error_message.password,"invalid-message":r.passwordInvalidMessage},null,8,["value","placeholder","invalid","invalid-message"])]),b(d,{id:"stay_logged_in",value:i.stay_logged_in,"onUpdate:value":t[5]||(t[5]=f=>i.stay_logged_in=f),label:e.$t("login.form.stay_logged_in"),class:"mb-5"},null,8,["value","label"]),c("button",{type:"submit",class:"btn btn-primary submit-button",onClick:t[6]||(t[6]=(...f)=>r.login&&r.login(...f)),disabled:o.v$.$invalid},m(e.$t("login.form.login")),9,AHn),c("div",DHn,[c("a",{class:"text-decoration-none",href:"",onClick:t[7]||(t[7]=Gt(f=>r.goto("forgot_password"),["prevent"]))},m(e.$t("login.form.forgot_password")),1)]),c("div",xHn,[t[11]||(t[11]=c("div",{class:"sep-line"},null,-1)),c("div",null,[c("span",OHn,m(e.$t("login.form.or")),1)]),t[12]||(t[12]=c("div",{class:"sep-line"},null,-1))]),c("button",{class:"btn submit-button facebook-button",onClick:t[8]||(t[8]=(...f)=>r.loginFacebook&&r.loginFacebook(...f))},[b(u,{icon:"facebook",height:"20",width:"20",class:"me-icon"}),z(" "+m(e.$t("login.form.login_facebook")),1)])],32),c("p",LHn,[z(m(e.$t("login.text")+" ")+" ",1),c("a",{class:"text-decoration-none",href:"",onClick:t[10]||(t[10]=Gt(f=>r.goto("register"),["prevent"]))},m(e.$t("login.register")),1)])])])}const NHn=U(_Hn,[["render",MHn]]),RHn={props:{value:{type:String,required:!0},invalid:{type:Boolean,default:!1},invalidMessage:{type:String,default:""},autocomplete:{type:String,default:"username"}},computed:{valueModel:{get(){return this.value},set(e){this.$emit("update:value",e)}}}},jHn={class:"form-group position-relative mb-3 position-relative"},FHn=["placeholder","autocomplete"],zHn={key:0,class:"invalid-feedback"};function UHn(e,t,n,o,i,r){return h(),g("div",jHn,[xe(c("input",{id:"name",class:J(["px-3 py-2",{"form-control":!0,"is-invalid":n.invalid}]),placeholder:e.$t("register.form.name_surname.placeholder"),type:"text",name:"name","onUpdate:modelValue":t[0]||(t[0]=s=>r.valueModel=s),onBlur:t[1]||(t[1]=s=>e.$emit("blur",n.value)),autocomplete:n.autocomplete},null,42,FHn),[[wt,r.valueModel]]),n.invalidMessage?(h(),g("span",zHn,m(n.invalidMessage),1)):D("",!0)])}const Kce=U(RHn,[["render",UHn]]),BHn=e=>e.replace(`/[ \rs]+/`," ").trim().split(" ").length>1,HHn={components:{UcitelniceLogo:kp,Loading:Rt,InputPassword:ok,InputFullName:Kce,CheckboxInput:ba},props:{isModal:{type:Boolean,default(){return!1}},intendedLocation:{type:String,default(){return null}},context:{type:String,default(){return null}}},data(){return{name:"",email:"",password:"",gdpr:!1,loading:!1,errorMessage:{password:null,email:null,name:null},passwordMinLength:ch.validation.password.min_length,primaryColor:window.primaryColor}},validations:{email:{required:Yt,email:Rf},password:{required:Yt,minLength:Ua(ch.validation.password.min_length)},name:{required:Yt,atleast2Words:BHn},gdpr:{required:Yt,sameAs:$6(!0)}},computed:{passwordInvalidMessage(){return this.v$.password.$error&&this.v$.password.required.$invalid?this.$t("validation.custom.password.required"):this.v$.password.$error&&this.v$.password.minLength.$invalid?this.$t("validation.min.string",{attribute:this.$t("register.form.password.label"),min:this.passwordMinLength}):this.errorMessage.password?this.errorMessage.password:null},nameInvalidMessage(){return this.v$.name.$error&&this.v$.name.required.$invalid?this.$t("validation.custom.full_name.required"):this.v$.name.$error&&this.v$.name.atleast2Words.$invalid?this.$t("validation.custom.full_name.atleast_two_words"):this.errorMessage.name?this.errorMessage.name:null}},methods:{goto(e){this.$emit("goto",e)},onBlur(e){e.$touch()},async register(){this.v$.$invalid||(this.loading=!0,this.loading&&window.grecaptcha.execute(mr.recaptcha_site_key,{action:"register"}).then(e=>{this.resetError();const t={email:this.email,password:this.password,name:this.name,gdpr:this.gdpr,"g-recaptcha-response":e};ai.register(this.context),Qc.register(t).then(n=>{if(this.loading=!1,window.flash(n.data.message,"success"),this.intendedLocation!==null){location.href=this.intendedLocation;return}let o=n.data.location;o==="thanks"?this.goto("thanks"):o==="login"?this.goto("login"):o===null||typeof o<"u"||this.isModal?location.reload():typeof o>"u"||(location.href=o)}).catch(n=>{var i,r,s,a,l,d;this.loading=!1,(r=(i=n==null?void 0:n.response)==null?void 0:i.data)!=null&&r.errors?Object.entries(n.response.data.errors).forEach(([f,p])=>{p.forEach(v=>{window.flash(v,"error")}),f==="email"?this.errorMessage.email=p[0]:f==="password"?this.errorMessage.password=p[0]:f==="name"&&(this.errorMessage.name=p[0])}):(a=(s=n==null?void 0:n.response)==null?void 0:s.data)!=null&&a.message&&window.flash(n.response.data.message,"error");let o=(d=(l=n==null?void 0:n.response)==null?void 0:l.data)==null?void 0:d.location;(o===null||typeof o<"u")&&(location.href=o)})}))},resetError(){this.errorMessage={password:null,email:null,name:null}}},mounted(){let e=document.createElement("script");e.setAttribute("src","https://www.google.com/recaptcha/api.js?render="+mr.recaptcha_site_key),document.head.appendChild(e)},watch:{email(){this.errorMessage.email=null},password(){this.v$.password.$touch(),this.errorMessage.password=null},name(){this.errorMessage.name=null}},setup(){return{v$:Pn()}}},VHn={class:"row"},qHn={class:"col-12 content-box vl-parent login-register-form m-0"},YHn={key:0,class:"d-flex justify-content-center mb-5"},WHn={class:"text-center mb-3"},GHn={class:"text-center text-gray-600 mb-5"},ZHn={class:"form-group mb-3 position-relative"},KHn=["placeholder"],JHn={key:0,class:"invalid-feedback"},XHn={key:1,class:"invalid-feedback"},QHn={key:2,class:"invalid-feedback"},eVn={class:"form-group password-group mb-3"},tVn=["disabled"];function nVn(e,t,n,o,i,r){const s=y("Loading"),a=y("UcitelniceLogo"),l=y("InputFullName"),d=y("InputPassword"),u=y("CheckboxInput");return h(),g("div",VHn,[c("div",qHn,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=f=>i.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),n.isModal?(h(),g("div",YHn,[b(a,{height:32})])):D("",!0),c("h2",WHn,m(e.$t("register.headline")),1),c("p",GHn,[z(m(e.$t("register.text")+" ")+" ",1),c("a",{class:"text-decoration-none",href:"",onClick:t[1]||(t[1]=Gt(f=>r.goto("login"),["prevent"]))},m(e.$t("register.login")),1)]),c("form",{onSubmit:t[8]||(t[8]=Gt(()=>{},["prevent"]))},[b(l,{value:i.name,"onUpdate:value":t[2]||(t[2]=f=>i.name=f),invalid:o.v$.name.$error||i.errorMessage.name,"invalid-message":r.nameInvalidMessage,onBlur:t[3]||(t[3]=f=>r.onBlur(o.v$.name)),autocomplete:"new-password"},null,8,["value","invalid","invalid-message"]),c("div",ZHn,[xe(c("input",{id:"email",class:J(["px-3 py-2",{"form-control":!0,"is-invalid":o.v$.email.$error||i.errorMessage.email}]),placeholder:e.$t("register.form.email.placeholder"),autocomplete:"new-password",type:"text",name:"email","onUpdate:modelValue":t[4]||(t[4]=f=>i.email=f),onBlur:t[5]||(t[5]=f=>r.onBlur(o.v$.email))},null,42,KHn),[[wt,i.email]]),o.v$.email.$error&&!o.v$.email.required.$invalid?(h(),g("span",JHn,m(e.$t("validation.custom.email.email")),1)):D("",!0),o.v$.email.$error&&o.v$.email.required.$invalid?(h(),g("span",XHn,m(e.$t("validation.custom.email.required")),1)):D("",!0),i.errorMessage.email?(h(),g("span",QHn,m(i.errorMessage.email),1)):D("",!0)]),c("div",eVn,[b(d,{value:i.password,"onUpdate:value":t[6]||(t[6]=f=>i.password=f),placeholder:e.$t("register.form.password.placeholder"),invalid:o.v$.password.$error||i.errorMessage.password,"invalid-message":r.passwordInvalidMessage,autocomplete:"new-password"},null,8,["value","placeholder","invalid","invalid-message"])]),b(u,{id:"gdpr",value:i.gdpr,"onUpdate:value":t[7]||(t[7]=f=>i.gdpr=f),label:e.$t("vop.user.register"),class:"mb-5"},null,8,["value","label"])],32),c("button",{type:"submit",class:"btn btn-primary submit-button",onClick:t[9]||(t[9]=(...f)=>r.register&&r.register(...f)),disabled:o.v$.$invalid},m(e.$t("register.form.register")),9,tVn)])])}const oVn=U(HHn,[["render",nVn]]),iVn=""+new URL("register_thanks-ad52a2f2.svg",import.meta.url).href,rVn={components:{ContactEmailAnchor:Xy,UcitelniceLogo:kp},props:{isModal:{type:Boolean,default(){return!1}}},data(){return{registerThanks:iVn}},computed:{isCart(){return this.$route.path=="/kosik"}},methods:{goto(e){this.$emit("goto",e)}}},sVn={class:"row"},aVn={class:"col-12 content-box register-thanks-page text-dark login-register-form m-0"},lVn={class:"text-center"},cVn={class:"d-flex justify-content-center mb-5"},dVn=["src"],uVn={key:0,class:"d-flex justify-content-center mb-5"},hVn={class:"mb-5"},fVn={class:"text-gray-600"},mVn={class:"text-gray-600 mb-5"},pVn={key:0},gVn={key:1},vVn=["href"],_Vn={class:"btn btn-primary submit-button mt-2"},yVn=["href"],bVn={class:"btn btn-primary submit-button mt-2"};function kVn(e,t,n,o,i,r){const s=y("UcitelniceLogo"),a=y("ContactEmailAnchor");return h(),g("div",sVn,[c("div",aVn,[c("div",lVn,[c("div",cVn,[c("img",{src:i.registerThanks,alt:"Palce nahoru",height:"104"},null,8,dVn)]),n.isModal?(h(),g("div",uVn,[b(s,{height:32})])):D("",!0),c("h2",hVn,m(e.$t("register.thanks.headline")),1),c("p",null,m(r.isCart?e.$t("register.thanks.text_cart.1"):e.$t("register.thanks.text.1")),1),c("p",fVn,m(r.isCart?e.$t("register.thanks.text_cart.2"):e.$t("register.thanks.text.2")),1),c("p",mVn,[r.isCart?(h(),g("span",pVn,[z(m(e.$t("register.thanks.text_cart.3"))+" ",1),b(a),z(" "+m(e.$t("register.thanks.text_cart.4")),1)])):(h(),g("span",gVn,[z(m(e.$t("register.thanks.text.3"))+" ",1),b(a),z(" "+m(e.$t("register.thanks.text.4")),1)]))])]),r.isCart?(h(),g("a",{key:0,href:e.ziggyRoute("cart.index")},[c("button",_Vn,m(e.$t("register.thanks.continue_shopping")),1)],8,vVn)):(h(),g("a",{key:1,href:e.ziggyRoute("default")},[c("button",bVn,m(e.$t("register.thanks.home")),1)],8,yVn))])])}const wVn=U(rVn,[["render",kVn]]),$Vn={components:{UcitelniceLogo:kp,Loading:Rt},props:{isModal:{type:Boolean,default(){return!1}}},data(){return{email:"",loading:!1,error_message:{email:null},primaryColor:window.primaryColor}},validations:{email:{email:Rf,required:Yt}},methods:{goto(e){this.$emit("goto",e)},onBlur(e){e.$touch()},submit(){this.v$.$invalid||(this.loading=!0,this.resetError(),Qc.passwordResetEmailSend(this.email).then(e=>{this.loading=!1,window.flash(e.data.message,"success"),this.goto("login")}).catch(e=>{this.loading=!1;let t=e.response.data.errors.email[0];this.error_message.email=t,window.flash(t,"error")}))},resetError(){this.error_message={email:null}}},watch:{email(){this.resetError()}},setup(){return{v$:Pn()}}},CVn={class:"row"},SVn={class:"col-12 content-box vl-parent login-register-form m-0"},TVn={key:0,class:"d-flex justify-content-center mb-5"},EVn={class:"text-center mb-3"},IVn={class:"text-center text-gray-700 mb-5"},PVn={class:"form-group form-floating mb-5 position-relative"},AVn=["placeholder"],DVn={for:"email",class:"form-label"},xVn={key:0,class:"invalid-feedback"},OVn={key:1,class:"invalid-feedback"},LVn={key:2,class:"invalid-feedback"},MVn=["disabled"];function NVn(e,t,n,o,i,r){const s=y("Loading"),a=y("UcitelniceLogo");return h(),g("div",CVn,[c("div",SVn,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=l=>i.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),n.isModal?(h(),g("div",TVn,[b(a,{height:32})])):D("",!0),c("h2",EVn,m(e.$t("passwords.forgot.headline")),1),c("p",IVn,m(e.$t("passwords.forgot.text")),1),c("form",{onSubmit:t[3]||(t[3]=Gt(()=>{},["prevent"]))},[c("div",PVn,[xe(c("input",{id:"email",name:"email",type:"text",class:J({"form-control":!0,"is-invalid":o.v$.email.$error||i.error_message.email}),placeholder:e.$t("passwords.forgot.email.placeholder"),"onUpdate:modelValue":t[1]||(t[1]=l=>i.email=l),onBlur:t[2]||(t[2]=l=>r.onBlur(o.v$.email))},null,42,AVn),[[wt,i.email]]),c("label",DVn,m(e.$t("passwords.forgot.email.label")),1),o.v$.email.$error&&!o.v$.email.required.$invalid?(h(),g("span",xVn,m(e.$t("validation.custom.email.email")),1)):D("",!0),o.v$.email.$error&&o.v$.email.required.$invalid?(h(),g("span",OVn,m(e.$t("validation.custom.email.required")),1)):D("",!0),i.error_message.email?(h(),g("span",LVn,m(i.error_message.email),1)):D("",!0)])],32),c("button",{type:"submit",class:"btn btn-primary submit-button mt-2",onClick:t[4]||(t[4]=(...l)=>r.submit&&r.submit(...l)),disabled:o.v$.$invalid},m(e.$t("passwords.forgot.button")),9,MVn),c("button",{class:"btn btn-link w-100 p-2 mt-3",onClick:t[5]||(t[5]=Gt(l=>r.goto("login"),["prevent"]))},m(e.$t("passwords.forgot.login")),1)])])}const RVn=U($Vn,[["render",NVn]]),jVn={components:{UcitelniceLogo:kp,Loading:Rt,InputPassword:ok},props:{isModal:{type:Boolean,default(){return!1}},resetEmail:{type:String,default(){return null}},passwordToken:{type:String,default(){return null}}},data(){return{password:"",loading:!1,passwordMinLength:ch.validation.password.min_length,error_message:{password:null,email:null},primaryColor:window.primaryColor}},validations:{password:{required:Yt,minLength:Ua(ch.validation.password.min_length)}},computed:{passwordInvalidMessage(){return this.v$.password.$error&&this.v$.password.required.$invalid?this.$t("validation.custom.password.required"):this.v$.password.$error&&this.v$.password.minLength.$invalid?this.$t("validation.min.string",{attribute:this.$t("register.form.password.label"),min:this.passwordMinLength}):this.error_message.password?this.error_message.password:null}},methods:{goto(e){this.$emit("goto",e)},submit(){this.v$.$invalid||(this.loading=!0,this.resetError(),Qc.passwordReset({password:this.password,token:this.passwordToken,email:this.resetEmail}).then(e=>{this.loading=!1,window.flash(e.data.message,"success"),this.goto("login")}).catch(e=>{if(this.loading=!1,e.response.data.errors.email){let t=e.response.data.errors.email[0];window.flash(t,"error"),this.error_message.email=t,this.goto("forgot_password")}if(e.response.data.errors.password){let t=e.response.data.errors.password[0];window.flash(t,"error"),this.error_message.password=t}}))},resetError(){this.error_message={password:null,email:null}}},watch:{password(){this.v$.password.$touch(),this.resetError()}},setup(){return{v$:Pn()}}},FVn={class:"row"},zVn={class:"col-12 content-box vl-parent login-register-form m-0"},UVn={key:0,class:"d-flex justify-content-center mb-5"},BVn={class:"text-center mb-3"},HVn={class:"text-center text-gray-600 mb-4"},VVn=["href"],qVn=["value"],YVn={class:"form-group password-group mb-5 position-relative"},WVn={for:"password",class:"form-label"},GVn=["disabled"];function ZVn(e,t,n,o,i,r){const s=y("Loading"),a=y("UcitelniceLogo"),l=y("InputPassword");return h(),g("div",FVn,[c("div",zVn,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=d=>i.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),n.isModal?(h(),g("div",UVn,[b(a,{height:32})])):D("",!0),c("h2",BVn,m(e.$t("passwords.reset_form.headline")),1),c("p",HVn,[z(m(e.$t("passwords.reset_form.text")+" ")+" ",1),n.resetEmail?(h(),g("a",{key:0,href:"mailto:"+n.resetEmail,class:"fw-bold"},m(n.resetEmail),9,VVn)):D("",!0)]),c("form",{onSubmit:t[2]||(t[2]=Gt(()=>{},["prevent"]))},[c("input",{style:{display:"none"},type:"text",value:n.resetEmail,autocomplete:"username"},null,8,qVn),c("div",YVn,[c("label",WVn,m(e.$t("passwords.reset_form.password.label")),1),b(l,{value:i.password,"onUpdate:value":t[1]||(t[1]=d=>i.password=d),placeholder:e.$t("passwords.reset_form.password.placeholder"),invalid:o.v$.password.$error||i.error_message.password,"invalid-message":r.passwordInvalidMessage},null,8,["value","placeholder","invalid","invalid-message"])])],32),c("button",{type:"submit",class:"btn btn-primary submit-button mt-2",onClick:t[3]||(t[3]=(...d)=>r.submit&&r.submit(...d)),disabled:o.v$.$invalid},m(e.$t("passwords.reset_form.button")),9,GVn),c("button",{class:"btn btn-link w-100 p-2 mt-3",onClick:t[4]||(t[4]=Gt(d=>r.goto("login"),["prevent"]))},m(e.$t("passwords.reset_form.login")),1)])])}const KVn=U(jVn,[["render",ZVn]]),JVn={components:{ContactEmailAnchor:Xy,UcitelniceLogo:kp,Loading:Rt},props:{isModal:{type:Boolean,default(){return!1}},email:{type:String,default:""}},data(){return{loading:!1,primaryColor:window.primaryColor}},methods:{submit(){this.loading=!0,Qc.confirmEmailSend(this.email).then(e=>{window.flash(e.data.message,"success")}).catch(e=>{var t,n;if((n=(t=e==null?void 0:e.response)==null?void 0:t.data)!=null&&n.message)window.flash(e.response.data.message,"error");else throw e}).finally(()=>{this.loading=!1,setTimeout(()=>{window.location.href=this.ziggyRoute("default")},2e3)})}}},XVn={class:"row login-not-activated"},QVn={class:"col-12 text-center vl-parent"},eqn={key:0,class:"d-flex justify-content-center my-5"},tqn={class:"mb-4 mt-4"},nqn={class:"fw-bold"},oqn={class:"d-grid gap-2 mb-3"},iqn=["href"];function rqn(e,t,n,o,i,r){const s=y("Loading"),a=y("UcitelniceLogo"),l=y("ContactEmailAnchor");return h(),g("div",XVn,[c("div",QVn,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=d=>i.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),n.isModal?(h(),g("div",eqn,[b(a,{height:32})])):D("",!0),c("h2",tqn,m(e.$t("login.not_activated.headline")),1),c("div",null,[c("p",nqn,m(e.$t("login.not_activated.text.0")),1),c("p",null,m(e.$t("login.not_activated.text.1")),1),c("p",null,[z(m(e.$t("login.not_activated.text.2"))+" ",1),b(l),z(" "+m(e.$t("login.not_activated.text.3")),1)])]),c("div",oqn,[c("button",{class:"btn btn-primary btn-block",onClick:t[1]||(t[1]=(...d)=>r.submit&&r.submit(...d))},m(e.$t("login.not_activated.resend_link")),1),c("a",{href:e.ziggyRoute("default"),class:"btn btn-link"},m(e.$t("login.not_activated.cancel")),9,iqn)])])])}const sqn=U(JVn,[["render",rqn]]),aqn={components:{UserNotActivated:sqn,ResetPasswordForm:KVn,ForgotPasswordForm:RVn,TransitionCollapseHeight:qo,RegisterThanks:wVn,RegisterForm:oVn,LoginForm:NHn},props:{initialWindow:{type:String,default(){return"login"}},isModal:{type:Boolean,default(){return!1}},passwordToken:{type:String,default(){return null}},resetEmail:{type:String,default(){return null}},intendedLocation:{type:String,default(){return null}},errorFlash:{type:String,default(){return null}},context:{type:String,default(){return""}}},data(){return{activeWindow:null,urls:{login:"/prihlaseni",register:"/registrace",thanks:"/registrace/dekujeme",forgot_password:"/obnova/hesla",recover_password:"/obnova/hesla/"},email:""}},methods:{openWindow(e){this.activeWindow=e,this.isModal?e==="thanks"&&this.$emit("thanks"):this.$router.push({path:this.urls[e]})},setEmail(e){this.email=e},sendEventLoginRegisterShown(e){e==="login"?ai.loginShown():e==="register"&&ai.registerShown()}},computed:{containerCLass(){return this.isModal?"col-12":"col-12 col-xl-6 mt-5"}},watch:{$route(e){this.isModal||(this.activeWindow=Object.keys(this.urls).find(t=>this.urls[t]===e.path),!this.activeWindow&&e.path.includes(this.urls.recover_password)&&(this.activeWindow="recover_password"))},initialWindow(e){this.activeWindow=e},activeWindow(e){this.sendEventLoginRegisterShown(e)}},mounted(){this.activeWindow=this.initialWindow,this.errorFlash!==null&&window.flash(this.errorFlash,"error",15e3),this.isModal||this.sendEventLoginRegisterShown(this.initialWindow)}},lqn={key:0},cqn={key:0},dqn={key:0},uqn={key:0},hqn={key:0},fqn={key:0};function mqn(e,t,n,o,i,r){const s=y("LoginForm"),a=y("TransitionCollapseHeight"),l=y("RegisterForm"),d=y("RegisterThanks"),u=y("ForgotPasswordForm"),f=y("ResetPasswordForm"),p=y("UserNotActivated");return h(),g("div",{class:J([r.containerCLass,"large fw-medium"])},[b(a,null,{default:F(()=>[i.activeWindow==="login"?(h(),g("div",lqn,[b(s,{onGoto:r.openWindow,onSetEmail:r.setEmail,"is-modal":n.isModal,intendedLocation:n.intendedLocation,context:n.context},null,8,["onGoto","onSetEmail","is-modal","intendedLocation","context"])])):D("",!0)]),_:1}),b(a,null,{default:F(()=>[i.activeWindow==="register"?(h(),g("div",cqn,[b(l,{onGoto:r.openWindow,"is-modal":n.isModal,intendedLocation:n.intendedLocation,context:n.context},null,8,["onGoto","is-modal","intendedLocation","context"])])):D("",!0)]),_:1}),b(a,null,{default:F(()=>[i.activeWindow==="thanks"?(h(),g("div",dqn,[b(d,{onGoto:r.openWindow,"is-modal":n.isModal},null,8,["onGoto","is-modal"])])):D("",!0)]),_:1}),b(a,null,{default:F(()=>[i.activeWindow==="forgot_password"?(h(),g("div",uqn,[b(u,{onGoto:r.openWindow,"is-modal":n.isModal},null,8,["onGoto","is-modal"])])):D("",!0)]),_:1}),b(a,null,{default:F(()=>[i.activeWindow==="recover_password"?(h(),g("div",hqn,[b(f,{"password-token":n.passwordToken,"reset-email":n.resetEmail,onGoto:r.openWindow,"is-modal":n.isModal},null,8,["password-token","reset-email","onGoto","is-modal"])])):D("",!0)]),_:1}),b(a,null,{default:F(()=>[i.activeWindow==="not_activated"?(h(),g("div",fqn,[b(p,{email:i.email,"is-modal":n.isModal},null,8,["email","is-modal"])])):D("",!0)]),_:1})],2)}const Jce=U(aqn,[["render",mqn]]),pqn={components:{LoginRegisterContainer:Jce},data(){return{bootstrapModal:null,isOnThanksPage:!1,intendedLocation:null,initialWindow:"login",context:""}},created(){window.loginRegisterModal=(e=null,t="login",n="")=>this.modal(e,t,n)},mounted(){this.bootstrapModal=new yf(this.$refs.loginRegisterModal),this.$refs.loginRegisterModal.addEventListener("hidden.bs.modal",this.hide)},methods:{modal(e=null,t="login",n=""){this.intendedLocation=e,this.initialWindow=t,this.context=n,this.bootstrapModal.show(),t=="login"?ai.loginShown():t=="register"&&ai.registerShown()},hide(){this.isOnThanksPage&&location.reload(),this.bootstrapModal.hide()}}},gqn={class:"modal fade",ref:"loginRegisterModal",tabindex:"-1","aria-labelledby":"Login Register Modal","aria-hidden":"true"},vqn={class:"modal-dialog"},_qn={class:"modal-content"},yqn={class:"modal-body pt-0 pb-0"};function bqn(e,t,n,o,i,r){const s=y("LoginRegisterContainer");return h(),g("div",gqn,[c("div",vqn,[c("div",_qn,[t[1]||(t[1]=c("div",{class:"modal-header p-0"},[c("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"})],-1)),c("div",yqn,[b(s,{"is-modal":!0,onThanks:t[0]||(t[0]=a=>i.isOnThanksPage=!0),intendedLocation:i.intendedLocation,"initial-window":i.initialWindow,context:i.context},null,8,["intendedLocation","initial-window","context"])])])])],512)}const kqn=U(pqn,[["render",bqn]]);function wqn(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var H6=!1;if(typeof window<"u"){var GY={get passive(){H6=!0}};window.addEventListener("testPassive",null,GY),window.removeEventListener("testPassive",null,GY)}var ay=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),vf=[],ly=!1,AM=-1,t2=void 0,s1=void 0,n2=void 0,Xce=function(t){return vf.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(t))})},G2=function(t){var n=t||window.event;return Xce(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},$qn=function(t){if(n2===void 0){var n=!!t&&t.reserveScrollBarGap===!0,o=window.innerWidth-document.documentElement.clientWidth;if(n&&o>0){var i=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);n2=document.body.style.paddingRight,document.body.style.paddingRight=i+o+"px"}}t2===void 0&&(t2=document.body.style.overflow,document.body.style.overflow="hidden")},Qce=function(){n2!==void 0&&(document.body.style.paddingRight=n2,n2=void 0),t2!==void 0&&(document.body.style.overflow=t2,t2=void 0)},Cqn=function(){return window.requestAnimationFrame(function(){if(s1===void 0){s1={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window,n=t.scrollY,o=t.scrollX,i=t.innerHeight;document.body.style.position="fixed",document.body.style.top=-n,document.body.style.left=-o,setTimeout(function(){return window.requestAnimationFrame(function(){var r=i-window.innerHeight;r&&n>=i&&(document.body.style.top=-(n+r))})},300)}})},ede=function(){if(s1!==void 0){var t=-parseInt(document.body.style.top,10),n=-parseInt(document.body.style.left,10);document.body.style.position=s1.position,document.body.style.top=s1.top,document.body.style.left=s1.left,window.scrollTo(n,t),s1=void 0}},Sqn=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},Tqn=function(t,n){var o=t.targetTouches[0].clientY-AM;return Xce(t.target)?!1:n&&n.scrollTop===0&&o>0||Sqn(n)&&o<0?G2(t):(t.stopPropagation(),!0)},Eqn=function(t,n){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!vf.some(function(i){return i.targetElement===t})){var o={targetElement:t,options:n||{}};vf=[].concat(wqn(vf),[o]),ay?Cqn():$qn(n),ay&&(t.ontouchstart=function(i){i.targetTouches.length===1&&(AM=i.targetTouches[0].clientY)},t.ontouchmove=function(i){i.targetTouches.length===1&&Tqn(i,t)},ly||(document.addEventListener("touchmove",G2,H6?{passive:!1}:void 0),ly=!0))}},Iqn=function(){ay&&(vf.forEach(function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null}),ly&&(document.removeEventListener("touchmove",G2,H6?{passive:!1}:void 0),ly=!1),AM=-1),ay?ede():Qce(),vf=[]},Pqn=function(t){if(!t){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}vf=vf.filter(function(n){return n.targetElement!==t}),ay&&(t.ontouchstart=null,t.ontouchmove=null,ly&&vf.length===0&&(document.removeEventListener("touchmove",G2,H6?{passive:!1}:void 0),ly=!1)),ay?ede():Qce()};const Aqn={data(){return{searchShown:!1,categorySelectShown:!1,backdropElement:null}},methods:{searchShow(){this.searchShown=!0,this.disableScroll()},searchHide(){this.searchShown=!1,this.categorySelectShown||this.enableScroll()},categorySelectShow(){this.categorySelectShown=!0,this.disableScroll()},categorySelectHide(){this.categorySelectShown=!1,this.searchShown||this.enableScroll()},disableScroll(){let e=document.getElementById("search-dropdown");e&&Eqn(e)},enableScroll(){let e=document.getElementById("search-dropdown");e&&Pqn(e)}},mounted(){window.eventBus.on("navigation-search-show",this.searchShow),window.eventBus.on("navigation-category-select-show",this.categorySelectShow),window.eventBus.on("navigation-search-hide",this.searchHide),window.eventBus.on("navigation-category-select-hide",this.categorySelectHide)},beforeUnmount(){window.eventBus.off("navigation-search-show",this.searchShow),window.eventBus.off("navigation-category-select-show",this.categorySelectShow),window.eventBus.off("navigation-search-hide",this.searchHide),window.eventBus.off("navigation-category-select-hide",this.categorySelectHide),Iqn()}},Dqn={class:"fixed-top"},xqn={key:0,class:"navbar-backdrop-outer"};function Oqn(e,t,n,o,i,r){return h(),g("div",Dqn,[b(nd,{name:"fade"},{default:F(()=>[i.searchShown||i.categorySelectShown?(h(),g("div",xqn,t[0]||(t[0]=[c("div",{class:"navbar-backdrop"},null,-1)]))):D("",!0)]),_:1})])}const Lqn=U(Aqn,[["render",Oqn],["__scopeId","data-v-8bf2c1d7"]]),Mqn={components:{AppIcon:Ue},data(){return{schoolHover:!1}},computed:{...Oe({user:"navigation/getUserInfo",auth:"auth/auth"}),schoolRoute(){return this.user.employee?this.user.employee.is_manager?this.ziggyRoute("school.manager.home"):this.ziggyRoute("user.dashboard.downloads.school"):this.ziggyRoute("school.index")},hasNewMessage(){return this.auth.unread_messages_count>0}},methods:{logoutPost(){Qc.logout({_token:document.head.querySelector('meta[name="csrf-token"]').content}).then(()=>{window.location.href=this.ziggyRoute("default")})},openMessages(){this.user.is_admin?window.location.href=this.ziggyRoute("administration.messages"):this.$store.commit("sidebarChat/toggleChatOpen")}}},Nqn={class:"py-2","dropdown-name":"navbarUserMenu"},Rqn=["href"],jqn=["src"],Fqn={class:"fw-bold text-gray-800 mb-0"},zqn={class:"d-flex align-items-center medium fw-medium text-gray-700 mb-0"},Uqn=["href"],Bqn={class:"text-truncate"},Hqn=["href"],Vqn={class:"position-relative d-flex align-items-center me-2"},qqn={key:0,class:"dot-salmon position-absolute top-15 end-0"},Yqn={key:0,class:"fw-bold"},Wqn=["href"],Gqn=["href"],Zqn=["href"];function Kqn(e,t,n,o,i,r){var a,l,d;const s=y("AppIcon");return h(),g("div",Nqn,[c("a",{href:e.ziggyRoute("user.dashboard.index"),class:"d-flex align-items-center cursor-pointer bg-primary-10-hover px-3 py-2"},[c("img",{src:e.user.image_thumbnail,height:"40",width:"40",class:"rounded-circle border border-gray-400 me-2dot5"},null,8,jqn),c("div",null,[c("p",Fqn,m(e.user.first_name+" "+e.user.last_name),1),c("p",zqn,m(e.$t("user.personal_credit")+": "+((a=e.auth.credit)==null?void 0:a.toLocaleString())+" "+e.$t("currency.short")),1)])],8,Rqn),t[4]||(t[4]=c("hr",{class:"my-2"},null,-1)),c("a",{href:r.schoolRoute,class:J(["school-themed-component d-flex align-items-center cursor-pointer px-3 py-2",{"bg-primary-10-hover":e.auth.has_school}]),onMouseover:t[0]||(t[0]=u=>i.schoolHover=!0),onMouseleave:t[1]||(t[1]=u=>i.schoolHover=!1)},[c("div",null,[c("div",{class:J(["d-flex align-items-center justify-content-center border-circle h-2dot5rem w-2dot5rem me-2dot5",[e.auth.has_school||i.schoolHover?"bg-secondary text-primary":"bg-gray-300 text-gray-800"]])},[b(s,{icon:"school",height:16,width:16})],2)]),c("div",Bqn,[c("p",{class:J(["text-truncate text-gray-800 fw-medium mb-0",{medium:!e.auth.has_school}])},m(e.auth.has_school?(l=e.user.school)==null?void 0:l.long_name:e.$t("school.not_selected")),3),c("p",{class:J(["fw-medium mb-0",e.auth.has_school?"medium text-gray-700":"medium text-royal-blue"])},m(e.auth.has_school?e.$t("school.credit")+": "+((d=e.auth.school_credit)==null?void 0:d.toLocaleString())+" "+e.$t("currency.short"):e.$t("school.select_mine")),3)])],42,Uqn),t[5]||(t[5]=c("hr",{class:"my-2"},null,-1)),c("div",null,[c("a",{href:e.ziggyRoute("user.dashboard.downloads"),class:"d-flex align-items-center cursor-pointer bg-primary-10-hover text-gray-800 fw-medium px-5 py-2"},[b(s,{icon:"materials",height:20,width:20,class:"me-2"}),z(" "+m(e.$t("user.bought_materials")),1)],8,Hqn),c("div",{class:"d-flex align-items-center cursor-pointer bg-primary-10-hover text-gray-800 fw-medium px-5 py-2",onClick:t[2]||(t[2]=(...u)=>r.openMessages&&r.openMessages(...u))},[c("div",Vqn,[b(s,{icon:"message",height:"20",width:"20"}),r.hasNewMessage?(h(),g("div",qqn)):D("",!0)]),r.hasNewMessage?(h(),g("span",Yqn,m(e.$t("public.message_new")),1)):(h(),g(pe,{key:1},[z(m(e.$t("public.messages")),1)],64))]),c("a",{href:e.ziggyRoute("user.dashboard.settings"),class:"d-flex align-items-center cursor-pointer bg-primary-10-hover text-gray-800 fw-medium px-5 py-2"},[b(s,{icon:"settings",height:"20",width:"20",class:"me-2"}),z(" "+m(e.$t("user.settings")),1)],8,Wqn),e.user.is_admin?(h(),g("a",{key:0,href:e.ziggyRoute("administration.index"),target:"_blank",class:"d-flex align-items-center cursor-pointer bg-primary-10-hover text-gray-800 fw-medium px-5 py-2"},m(e.$t("public.admin")),9,Gqn)):D("",!0)]),t[6]||(t[6]=c("hr",{class:"my-2"},null,-1)),c("div",null,[c("a",{href:e.ziggyRoute("logout"),onClick:t[3]||(t[3]=Gt((...u)=>r.logoutPost&&r.logoutPost(...u),["prevent"])),class:"d-flex align-items-center cursor-pointer bg-primary-10-hover text-gray-800 fw-medium px-5 py-2dot5"},[b(s,{icon:"logout",height:20,width:20,class:"me-2"}),z(" "+m(e.$t("auth.log_self_out")),1)],8,Zqn)])])}const tde=U(Mqn,[["render",Kqn]]),Jqn={components:{AppIcon:Ue},props:{user:{type:Object,default(){return{}}},wishlistItemsCount:Number},methods:{openLoginRegisterModal(){window.loginRegisterModal()}}},Xqn={class:"d-flex align-items-center bg-white z-index-1"},Qqn=["href"],eYn=["href","value"],tYn=["href","value"];function nYn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Xqn,[n.user.is_author?(h(),g("a",{key:0,class:"btn btn-link btn-center btn-navbar medium fw-medium py-1 px-2 me-1",href:e.ziggyRoute("dashboard.index")},m(e.$t("navigation.my_shop")),9,Qqn)):D("",!0),n.user.id===null?(h(),g("button",{key:1,class:"btn btn-link btn-navbar py-1 px-2 mx-1",onClick:t[0]||(t[0]=(...a)=>r.openLoginRegisterModal&&r.openLoginRegisterModal(...a))},[b(s,{icon:"user",height:"20",width:"20"})])):(h(),g("button",{key:2,class:"btn btn-link btn-navbar p-1 px-2 mx-1",type:"button",onClick:t[1]||(t[1]=a=>e.$emit("userDropdownToggle")),onBlur:t[2]||(t[2]=a=>e.$emit("userDropdownUnset"))},[b(s,{icon:"user",height:"20",width:"20"})],32)),n.user.id!==null?(h(),g("a",{key:3,href:e.ziggyRoute("user.dashboard.wishlist"),class:J(["btn btn-link btn-navbar py-1 px-2 mx-1 position-relative",{"badge-with-number badge-success badge-on-icon-mobile":n.wishlistItemsCount>0}]),value:n.wishlistItemsCount},[b(s,{icon:"wishlist",height:"20",width:"20",class:"d-inline-block"})],10,eYn)):D("",!0),c("a",{href:e.ziggyRoute("cart.index"),class:J(["btn btn-link btn-navbar py-1 px-2 mx-1 position-relative",{"badge-with-number badge-success badge-on-icon-mobile":n.user.cart_items_count>0}]),value:n.user.cart_items_count},[b(s,{icon:"basket",height:"20",width:"20",class:"d-inline-block"})],10,tYn)])}const oYn=U(Jqn,[["render",nYn]]);const iYn={components:{AppIcon:Ue},computed:{...sn("search",["value"]),value:{get(){return this.$store.state.search.value},set(e){this.$store.commit("search/setValue",e)}},userId(){return this.$store.state.auth.id}},methods:{close(){this.$emit("close")},clearValue(){this.value=""},focusInput(){this.$refs.searchInput.focus()},autocomplete:rW.debounce(function(){this.$store.dispatch("search/autocomplete",this.userId).then(()=>{this.storeToSearchLog(this.value)})},500),storeToSearchLog(e){let t=this.$storage.getStorageSync("search_log")??[],n=t.findIndex(o=>o.startsWith(e)||e.startsWith(o));n!==-1&&t.splice(n,1),e&&(t.unshift(e),t=t.slice(0,3),this.$storage.setStorageSync("search_log",t))},navigate(){let e=Object.fromEntries(Object.entries(this.$route.query).filter(([,t])=>t));if(!this.value){this.isOpen||this.$store.commit("search/setIsOpen",!0);return}if(e.text===this.value){this.$store.commit("search/setIsOpen",!1);return}["homepage","materials","author.author"].includes(this.$route.name)?(e.text=this.value,this.value||(e.text=void 0),e.page&&(e.page=void 0),this.$router.push({name:"materials",query:e}),this.$store.commit("search/setIsOpen",!1)):window.location.href=this.ziggyRoute("materialy",{text:this.value})}},mounted(){window.eventBus.on("search-log-item-select",()=>{this.$refs.searchInput&&this.$refs.searchInput.focus()})},watch:{value(){this.value?(this.$store.commit("search/setLoadingAutocomplete",!0),this.autocomplete(),this.$emit("open")):(this.$store.commit("search/setAutocomplete",[]),this.$store.dispatch("search/defaults"),this.$store.dispatch("search/logs",this.$storage),this.$store.dispatch("search/trendingQueries"))}}},rYn={ref:"search-box"},sYn={class:"h-3rem input-group flex-nowrap bg-gray-300 border-none py-0dot625rem px-3 rounded-pill"},aYn=["placeholder"],lYn={class:"d-flex align-items-center gap-3"};function cYn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",rYn,[c("div",sYn,[c("button",{class:"btn bg-inherit border-inherit cursor-text p-0 text-gray-800 me-2",onClick:t[0]||(t[0]=(...a)=>r.focusInput&&r.focusInput(...a))},[b(s,{icon:"search",height:"24",width:"24"})]),xe(c("input",{class:"navbar-input outline-none-focus bg-inherit border-inherit flex-grow-1 text-gray-800 placeholder-gray-500",id:"search-box-desktop-search-dropdown-input",ref:"searchInput",type:"text",name:"search",placeholder:e.$t("filter.homepage_search.placeholder"),"onUpdate:modelValue":t[1]||(t[1]=a=>r.value=a),autocomplete:"off","data-hj-allow":"",onKeyup:[t[2]||(t[2]=bs((...a)=>r.navigate&&r.navigate(...a),["enter"])),t[3]||(t[3]=bs((...a)=>r.close&&r.close(...a),["esc"]))],onFocus:t[4]||(t[4]=a=>e.$emit("click",a)),enterkeyhint:"search"},null,40,aYn),[[wt,r.value]]),c("div",lYn,[xe(c("button",{class:"btn btn-sm btn-link bg-inherit border-inherit ms-auto cursor-pointer p-0 text-gray-700",onClick:t[5]||(t[5]=(...a)=>r.clearValue&&r.clearValue(...a))},[b(s,{icon:"close",height:"24",width:"24"})],512),[[Vo,r.value]]),r.value?(h(),g("button",{key:0,class:"btn btn-sm btn-center btn-primary h-2rem line-height-21px d-none d-lg-block",onFocus:t[6]||(t[6]=(...a)=>r.navigate&&r.navigate(...a)),onClick:t[7]||(t[7]=Gt((...a)=>r.navigate&&r.navigate(...a),["stop"]))},m(e.$t("navigation.search.button")),33)):D("",!0)])])],512)}const dYn=U(iYn,[["render",cYn],["__scopeId","data-v-34464ef5"]]),uYn={props:{title:{type:String,default:""},buttonTitle:{type:String,default:""},linkTitle:{type:String,default:""}},methods:{handleLinkClick(){this.$emit("link-click"),this.$store.commit("search/setIsOpen",!1)}}},hYn={class:"d-none-empty fw-medium"},fYn={class:"d-flex align-items-center justify-content-between mb-2 px-2"},mYn={class:"medium text-gray-700 fw-light mb-0"},pYn={key:0,class:"px-2"};function gYn(e,t,n,o,i,r){return h(),g("div",hYn,[c("div",fYn,[c("p",mYn,m(n.title),1),n.buttonTitle?(h(),g("div",{key:0,class:"text-gray-700 text-decoration-underline small fw-light cursor-pointer text-gray-900-hover",onClick:t[0]||(t[0]=s=>e.$emit("button-click"))},m(n.buttonTitle),1)):D("",!0)]),Pt(e.$slots,"default"),n.linkTitle?(h(),g("div",pYn,[c("button",{class:"btn btn-sm bg-primary-5 bg-primary-10-hover bg-primary-10-active bg-primary-10-focus text-gray-700 text-gray-900-hover text-gray-900-active text-gray-900-focus border-white w-100 text-medium fw-medium mt-2",onClick:t[1]||(t[1]=(...s)=>r.handleLinkClick&&r.handleLinkClick(...s))},m(n.linkTitle),1)])):D("",!0)])}const bh=U(uYn,[["render",gYn]]);const vYn={components:{Pill:Ni},props:{item:{type:Object,default:()=>null}},methods:{closeSearchDropdown(){this.$store.commit("search/setIsOpen",!1)},navigate(){["homepage","materials","author.author"].includes(this.$route.name)?(this.$store.commit("search/setValue",""),this.$router.push(this.item.relative_url).then(()=>{window.eventBus.emit("navigation-category-no-reload")})):window.location.href=this.item.web_url,this.closeSearchDropdown()}}},_Yn=["innerHTML"];function yYn(e,t,n,o,i,r){const s=y("Pill");return h(),g("div",{class:"fw-medium cursor-pointer",onClick:t[0]||(t[0]=(...a)=>r.navigate&&r.navigate(...a)),tabindex:"0"},[b(s,{color:"gray",medium:"",class:"px-3 py-2"},{default:F(()=>[c("span",{innerHTML:n.item.title},null,8,_Yn)]),_:1})])}const nde=U(vYn,[["render",yYn]]),bYn={components:{SearchDropdownBlock:bh,SearchDropdownPillItem:nde},props:{block:{type:Object,default:()=>null}}},kYn={class:"d-flex flex-wrap gap-2 px-2 pt-2"};function wYn(e,t,n,o,i,r){const s=y("SearchDropdownPillItem"),a=y("SearchDropdownBlock");return n.block?(h(),W(a,{key:0,title:e.$tm("category.dropdown")[n.block.type]},{default:F(()=>[c("div",kYn,[(h(!0),g(pe,null,Me(n.block.items,l=>(h(),W(s,{key:l.name,item:l},null,8,["item"]))),128))])]),_:1},8,["title"])):D("",!0)}const $Yn=U(bYn,[["render",wYn]]);const CYn={components:{SearchDropdownBlock:bh},props:{block:{type:Object,default:()=>null}},methods:{closeSearchDropdown(){this.$store.commit("search/setIsOpen",!1)},navigate(e){["homepage","materials","author.author"].includes(this.$route.name)?(this.$router.push(e.relative_url),this.$store.commit("search/setValue",null)):window.location.href=e.web_url,this.closeSearchDropdown()}}},SYn=["onClick"],TYn=["innerHTML"];function EYn(e,t,n,o,i,r){const s=y("SearchDropdownBlock");return n.block?(h(),W(s,{key:0,title:"UÄŤiva"},{default:F(()=>[(h(!0),g(pe,null,Me(n.block.items,a=>(h(),g("div",{class:"py-1 px-2 w-auto",key:a.title},[c("div",{class:"medium link-dark text-decoration-underline-hover d-inline-block cursor-pointer",onClick:l=>r.navigate(a),tabindex:"0"},[c("div",{innerHTML:a.title},null,8,TYn)],8,SYn)]))),128))]),_:1})):D("",!0)}const IYn=U(CYn,[["render",EYn]]),PYn={components:{SearchDropdownBlock:bh,AuthorAddToFavouriteButton:SL},props:{block:{type:Object,default:()=>null}},data(){return{stripHTML:Z3.stripHTML}},computed:{...sn("search",["value"]),...Oe({isFavouriteAuthor:"auth/isFavouriteAuthor"})},methods:{navigate(){if(["homepage","materials","author.author"].includes(this.$route.name)){let e=Object.fromEntries(Object.entries(this.$route.query).filter(([,t])=>t));e.search=this.value,this.value||(e.search=void 0),e.page&&(e.page=void 0),this.$router.push({name:"author.author",query:e})}else window.location.href=this.ziggyRoute("author.author",{search:this.value})}}},AYn=["href"],DYn={class:"d-flex align-items-center"},xYn=["src","alt"],OYn=["innerHTML"],LYn=["innerHTML"];function MYn(e,t,n,o,i,r){const s=y("AuthorAddToFavouriteButton"),a=y("SearchDropdownBlock");return n.block?(h(),W(a,{key:0,title:e.$t("author.title_plural"),"link-title":e.$t("author.show_more"),onLinkClick:r.navigate},{default:F(()=>[(h(!0),g(pe,null,Me(n.block.items,l=>(h(),g("a",{key:l.id,href:l.web_url,class:"d-flex align-items-center justify-content-between text-truncate p-2 px-4 mx-neg-3 bg-primary-5-hover"},[c("div",DYn,[c("img",{src:l.image_link,class:"rounded-circle me-2",height:"39",width:"39",alt:l.name},null,8,xYn),c("div",null,[c("div",{class:"text-gray-900 medium fw-medium text-truncate",innerHTML:l.title},null,8,OYn),l.name!==i.stripHTML(l.title)?(h(),g("div",{key:0,class:"small text-gray-600 text-truncate",innerHTML:l.name},null,8,LYn)):D("",!0)])]),c("div",null,[b(s,{author:l,class:"btn-tertiary","parent-hovered":!1,short:"",tabindex:"-1",context:"search"},null,8,["author"])])],8,AYn))),128))]),_:1},8,["title","link-title","onLinkClick"])):D("",!0)}const NYn=U(PYn,[["render",MYn]]),RYn={components:{SearchDropdownBlock:bh},props:{block:{type:Object,default:()=>null}},computed:{...sn("search",["value"])},methods:{navigate(){window.location.href=this.ziggyRoute("blog.index",{text:this.value})}}},jYn=["href"],FYn=["src"],zYn=["href","innerHTML"];function UYn(e,t,n,o,i,r){const s=y("SearchDropdownBlock");return n.block?(h(),W(s,{key:0,title:e.$t("blog.title_plural"),"link-title":e.$t("blog.show_more"),onLinkClick:r.navigate},{default:F(()=>[(h(!0),g(pe,null,Me(n.block.items,a=>(h(),g("div",{key:a.id},[c("a",{href:a.web_url,class:"d-inline-flex align-items-center text-truncate p-2 dropdown-item-underline"},[c("img",{src:a.image_link,class:"rounded me-2",height:"24",width:"24"},null,8,FYn),c("div",{class:"text-gray-900 text-truncate",href:a.href,innerHTML:a.title},null,8,zYn)],8,jYn)]))),128))]),_:1},8,["title","link-title","onLinkClick"])):D("",!0)}const BYn=U(RYn,[["render",UYn]]),HYn={components:{CartProductAddButton:f6,ProductPrice:Wy},props:{item:{type:Object,default(){return{}}}},data(){return{}},computed:{...Oe({isInCart:"cart/isItemInCart"}),added(){return this.isInCart(this.item.id)}}},VYn=["href"],qYn={class:"d-flex text-truncate"},YYn=["src"],WYn={class:"d-flex flex-column justify-content-between gap-1 text-truncate"},GYn=["innerHTML"],ZYn={class:"small text-gray-700"},KYn={key:1},JYn={class:"text-decoration-none"};function XYn(e,t,n,o,i,r){const s=y("ProductPrice"),a=y("CartProductAddButton"),l=y("app-icon");return h(),g("a",{href:n.item.web_url,class:"d-flex align-items-center justify-content-between p-2 px-4 text-truncate bg-primary-5-hover mx-neg-3"},[c("div",qYn,[c("img",{src:n.item.image_link,class:"rounded-2px me-2",height:"40",width:"40"},null,8,YYn),c("div",WYn,[c("div",{class:"medium text-gray-900 text-truncate",innerHTML:n.item.title},null,8,GYn),c("div",ZYn,[b(s,{product:n.item,"margin-end-price":1},null,8,["product"])])])]),r.added?r.added?(h(),g("div",KYn,[c("button",{class:"btn btn-sm btn-center btn-tertiary bg-white-hover fake-disabled",tabindex:"-1",onClick:t[0]||(t[0]=Gt(()=>{},["prevent"]))},[c("span",JYn,m(e.$t("cart.already_button")),1),b(l,{icon:"check",height:"20",width:"20",class:"ms-1"})])])):D("",!0):(h(),W(a,{key:0,product:n.item,"class-custom":"btn btn-tertiary btn-sm btn-center ms-1",context:"search","tooltip-hidden":""},{default:F(()=>[z(m(e.$t("cart.into_cart")),1)]),_:1},8,["product"]))],8,VYn)}const ode=U(HYn,[["render",XYn]]),QYn={components:{SearchDropdownBlock:bh,SearchDropdownProductItem:ode},props:{block:{type:Object,default:()=>null}},computed:{...sn("search",["value"])},methods:{navigate(){if(["homepage","materials","author.author"].includes(this.$route.name)){let e=Object.fromEntries(Object.entries(this.$route.query).filter(([,t])=>t));e.text=this.value,this.value||(e.text=void 0),e.page&&(e.page=void 0),this.$router.push({name:"materials",query:e})}else window.location.href=this.ziggyRoute("materialy",{text:this.value})}}};function eWn(e,t,n,o,i,r){const s=y("SearchDropdownProductItem"),a=y("SearchDropdownBlock");return n.block?(h(),W(a,{key:0,title:e.$t("product.materials"),"link-title":e.$t("product.show_more"),onLinkClick:r.navigate},{default:F(()=>[(h(!0),g(pe,null,Me(n.block.items,l=>(h(),g("div",{key:l.id},[b(s,{item:l},null,8,["item"])]))),128))]),_:1},8,["title","link-title","onLinkClick"])):D("",!0)}const tWn=U(QYn,[["render",eWn]]),nWn={components:{SearchDropdownBlock:bh},props:{block:{type:Object,default:()=>null}},computed:{...sn("search",["value"])},methods:{navigate(){window.location.href=this.ziggyRoute("webinars.index")}}},oWn=["href"],iWn=["src"],rWn=["href","innerHTML"];function sWn(e,t,n,o,i,r){const s=y("SearchDropdownBlock");return n.block?(h(),W(s,{key:0,title:e.$t("webinar.title_plural"),"link-title":e.$t("webinar.show_more"),onLinkClick:r.navigate},{default:F(()=>[(h(!0),g(pe,null,Me(n.block.items,a=>(h(),g("div",{key:a.id},[c("a",{href:a.web_url,class:"d-inline-flex align-items-center text-truncate p-2 dropdown-item-underline"},[c("img",{src:a.image_link,class:"rounded me-2",height:"24",width:"24"},null,8,iWn),c("div",{class:"text-gray-900 text-truncate",href:a.href,innerHTML:a.title},null,8,rWn)],8,oWn)]))),128))]),_:1},8,["title","link-title","onLinkClick"])):D("",!0)}const aWn=U(nWn,[["render",sWn]]);const lWn={components:{SearchDropdownProductBlock:tWn,SearchDropdownAuthorBlock:NYn,SearchDropdownBlogBlock:BYn,SearchDropdownWebinarBlock:aWn,SearchDashboardCategoryBlock:$Yn,SearchDashboardCurriculumBlock:IYn},props:{blocks:{type:Array,default(){return[]}}},data(){return{jsonLdId:"autocomplete-list",jsonLdType:"autocomplete"}},computed:{...Oe("search",["autocompleteFiltered","autocompleteItems"]),...sn("search",["value"])},methods:{updateJsonLd(){CL(this.autocompleteItems,this.value,this.jsonLdId,this.jsonLdType)}},mounted(){this.updateJsonLd()},watch:{autocompleteFiltered:{handler(){this.updateJsonLd()},deep:!0}}};function cWn(e,t,n,o,i,r){const s=y("SearchDashboardCurriculumBlock"),a=y("SearchDashboardCategoryBlock"),l=y("SearchDropdownProductBlock"),d=y("SearchDropdownAuthorBlock"),u=y("SearchDropdownBlogBlock"),f=y("SearchDropdownWebinarBlock");return h(),g("div",{class:J(["d-flex flex-column gap-4",i.jsonLdId])},[(h(!0),g(pe,null,Me(e.autocompleteFiltered,p=>(h(),g(pe,null,[p.type==="curriculum"?(h(),W(s,{block:p,key:p.id},null,8,["block"])):D("",!0),p.type==="category"||p.type==="class"||p.type==="subject"||p.type==="theme"||p.type==="kind"||p.type==="format"||p.type==="holiday"?(h(),W(a,{block:p,key:p.id},null,8,["block"])):D("",!0),p.type==="product"?(h(),W(l,{block:p,key:p.id},null,8,["block"])):D("",!0),p.type==="author"?(h(),W(d,{block:p,key:p.id},null,8,["block"])):D("",!0),p.type==="blog"?(h(),W(u,{block:p,key:p.id},null,8,["block"])):D("",!0),p.type==="webinar"?(h(),W(f,{block:p,key:p.id},null,8,["block"])):D("",!0)],64))),256))],2)}const dWn=U(lWn,[["render",cWn]]),uWn={props:{log:{type:String,required:!0}},data(){return{hovered:!1,isMobile:window.matchMedia("(hover: none)").matches}},computed:{userId(){return this.$store.state.auth.id}},methods:{navigate(){if(["homepage","materials","author.author"].includes(this.$route.name)){let e=Object.fromEntries(Object.entries(this.$route.query).filter(([,t])=>t));e.text=this.log,this.log||(e.text=void 0),e.page&&(e.page=void 0),this.$router.push({name:"materials",query:e}),this.$store.commit("search/setValue",null),this.$store.commit("search/setIsOpen",!1)}else window.location.href=this.ziggyRoute("materialy",{text:this.log})},remove(){let e=this.$storage.getStorageSync("search_log")??[];e=e.filter(t=>t!==this.log),this.$storage.setStorageSync("search_log",e),this.$store.dispatch("search/logs",this.$storage)},handleHover(e){this.isMobile||(this.hovered=e)},handleResize(){this.isMobile=window.matchMedia("(hover: none)").matches}},created(){window.addEventListener("resize",this.handleResize)},beforeUnmount(){window.removeEventListener("resize",this.handleResize)}},hWn={class:"d-flex align-items-center justify-content-between"},fWn={class:"text-gray-900"};function mWn(e,t,n,o,i,r){const s=y("app-icon"),a=an("tooltip");return h(),g("div",{class:"position-relative medium cursor-pointer p-2 px-4 mx-neg-3 d-flex align-items-center justify-content-between text-gray-700 text-gray-900-hover bg-primary-5-hover",onClick:t[1]||(t[1]=(...l)=>r.navigate&&r.navigate(...l)),onMouseenter:t[2]||(t[2]=l=>r.handleHover(!0)),onMouseleave:t[3]||(t[3]=l=>r.handleHover(!1))},[c("div",hWn,[b(s,{icon:"history",height:24,width:24,class:"me-icon text-gray-700"}),c("span",fWn,m(n.log),1)]),xe((h(),g("button",{class:J({"d-none":!i.hovered,"btn btn-sm bg-gray-300-hover close-btn position-absolute end-0 top-50 translate-middle-y me-3":!0}),onClick:t[0]||(t[0]=Gt((...l)=>r.remove&&r.remove(...l),["stop"]))},[b(s,{icon:"close",height:20,width:20})],2)),[[a,{content:e.$t("navigation.search.log.delete_from"),delay:{show:500,hide:100},triggers:["hover"]}]])],32)}const pWn=U(uWn,[["render",mWn]]),gWn={components:{SearchDropdownBlock:bh,SearchDropdownLogItem:pWn},computed:{...sn("search",["logs"]),isLast(){return e=>e===this.logs.length-1}},methods:{clear(){this.$storage.removeStorageSync("search_log"),this.$store.dispatch("search/logs",this.$storage)}},mounted(){this.$store.dispatch("search/logs",this.$storage)}},vWn={class:"d-flex flex-column"};function _Wn(e,t,n,o,i,r){const s=y("SearchDropdownLogItem"),a=y("SearchDropdownBlock");return e.logs.length>0?(h(),W(a,{key:0,title:e.$t("navigation.search.log.title"),"button-title":e.$t("navigation.search.log.delete"),onButtonClick:r.clear},{default:F(()=>[c("div",vWn,[(h(!0),g(pe,null,Me(e.logs,(l,d)=>(h(),W(s,{key:d,log:l,icon:"history"},null,8,["log"]))),128))])]),_:1},8,["title","button-title","onButtonClick"])):D("",!0)}const yWn=U(gWn,[["render",_Wn]]),bWn={components:{AppIcon:Ue},props:{item:{type:String,required:!0}},methods:{navigate(){if(["homepage","materials","author.author"].includes(this.$route.name)){let e=Object.fromEntries(Object.entries(this.$route.query).filter(([,t])=>t));e.text=this.item,this.item||(e.text=void 0),e.page&&(e.page=void 0),this.$router.push({name:"materials",query:e}),this.$store.commit("search/setValue",null),this.$store.commit("search/setIsOpen",!1)}else window.location.href=this.ziggyRoute("materialy",{text:this.item})},select(){this.$store.commit("search/setValue",this.item),window.eventBus.emit("search-log-item-select"),this.$store.dispatch("search/autocomplete",this.$store.state.auth.id)}}},kWn={class:"text-gray-900"};function wWn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",{class:"position-relative medium p-2 px-4 mx-neg-3 d-flex align-items-center justify-content-between text-gray-700 text-gray-900-hover cursor-pointer bg-primary-5-hover",onClick:t[1]||(t[1]=(...a)=>r.navigate&&r.navigate(...a))},[c("div",kWn,m(n.item),1),c("button",{class:"btn btn-sm bg-gray-300-hover text-gray-700 position-absolute end-0 top-50 translate-middle-y me-3",onClick:t[0]||(t[0]=Gt((...a)=>r.select&&r.select(...a),["stop"]))},[b(s,{icon:"back-up-arrow",height:24,width:24})])])}const $Wn=U(bWn,[["render",wWn]]),CWn={components:{SearchDropdownBlock:bh,SearchDropdownTrendingQueryItem:$Wn},computed:{...Oe({trendingQueries:"search/trendingQueriesItems"})},mounted(){this.$store.dispatch("search/trendingQueries")}};function SWn(e,t,n,o,i,r){const s=y("SearchDropdownTrendingQueryItem"),a=y("SearchDropdownBlock");return e.trendingQueries.length>0?(h(),W(a,{key:0,title:e.$t("navigation.search.trending.title")},{default:F(()=>[(h(!0),g(pe,null,Me(e.trendingQueries,(l,d)=>(h(),W(s,{key:d,item:l},null,8,["item"]))),128))]),_:1},8,["title"])):D("",!0)}const TWn=U(CWn,[["render",SWn]]),EWn={components:{SearchDropdownBlock:bh,SearchDropdownPillItem:nde},computed:{...sn("search",["defaults"])},mounted(){this.$store.dispatch("search/defaults")}},IWn={class:"d-flex flex-wrap gap-2 px-2 pt-2"};function PWn(e,t,n,o,i,r){const s=y("SearchDropdownPillItem"),a=y("SearchDropdownBlock");return h(),W(a,{title:e.$t("navigation.search.default")},{default:F(()=>[c("div",IWn,[(h(!0),g(pe,null,Me(e.defaults,l=>(h(),W(s,{key:l.name,item:l},null,8,["item"]))),128))])]),_:1},8,["title"])}const AWn=U(EWn,[["render",PWn]]),DWn={components:{SearchDropdownLogBlock:yWn,SearchDropdownTrendingQueryBlock:TWn,SearchDropdownDefaultBlock:AWn}},xWn={class:"d-flex flex-column gap-4"};function OWn(e,t,n,o,i,r){const s=y("SearchDropdownLogBlock"),a=y("SearchDropdownTrendingQueryBlock"),l=y("SearchDropdownDefaultBlock");return h(),g("div",xWn,[b(s),b(a),b(l)])}const LWn=U(DWn,[["render",OWn]]),MWn={data(){return{notFoundImage:Lse}}},NWn={class:"d-flex flex-column align-items-center text-center"},RWn=["src"],jWn={class:"text-gray-900 mb-1"},FWn={class:"medium text-gray-700 mb-0"};function zWn(e,t,n,o,i,r){return h(),g("div",NWn,[c("img",{src:i.notFoundImage,class:"mb-3",height:"80"},null,8,RWn),c("h5",jWn,m(e.$t("filter.homepage_search.no_result")),1),c("p",FWn,m(e.$t("navigation.search.not_found.text")),1)])}const UWn=U(MWn,[["render",zWn]]),BWn={components:{SearchDropdownBlock:bh,SearchDropdownProductItem:ode},computed:{...sn("search",["value","topItems"])},methods:{navigate(){["homepage","materials","author.author"].includes(this.$route.name)?this.$router.push({name:"materials"}):window.location.href=this.ziggyRoute("materialy")}},mounted(){this.$store.dispatch("search/topItems")}};function HWn(e,t,n,o,i,r){const s=y("SearchDropdownProductItem"),a=y("SearchDropdownBlock");return h(),W(a,{title:e.$t("navigation.search.recommended.title"),"link-title":e.$t("product.show_all"),onLinkClick:r.navigate},{default:F(()=>[(h(!0),g(pe,null,Me(e.topItems,l=>(h(),W(s,{key:l.id,item:l},null,8,["item"]))),128))]),_:1},8,["title","link-title","onLinkClick"])}const VWn=U(BWn,[["render",HWn]]);const qWn={components:{SearchDropdownNotFoundBlock:UWn,SearchDropdownTopItemsBlock:VWn},data(){return{jsonLdId:"autocomplete-not-found",jsonLdType:"autocomplete"}},computed:{...sn("search",["value"])},methods:{updateJsonLd(){CL([],this.value,this.jsonLdId,this.jsonLdType)}},mounted(){this.updateJsonLd()},watch:{value:{handler(){this.updateJsonLd()},deep:!0}}};function YWn(e,t,n,o,i,r){const s=y("SearchDropdownNotFoundBlock"),a=y("SearchDropdownTopItemsBlock");return h(),g("div",{class:J(["d-flex flex-column gap-4",i.jsonLdId])},[b(s),b(a)],2)}const WWn=U(qWn,[["render",YWn]]),GWn=""+new URL("search_error-f8bc94f0.svg",import.meta.url).href,ZWn={data(){return{notFoundImage:GWn}},methods:{navigate(){["homepage","materials","author.author"].includes(this.$route.name)?(this.$router.push({name:"materials"}),this.$store.commit("search/setIsOpen",!1)):window.location.href=this.ziggyRoute("materialy",{text:this.value})}}},KWn={class:"d-flex flex-column align-items-center text-center"},JWn=["src"],XWn={class:"text-gray-900 mb-1"},QWn={class:"medium text-gray-700 mb-2"};function eGn(e,t,n,o,i,r){return h(),g("div",KWn,[c("img",{src:i.notFoundImage,class:"mb-2",height:"80"},null,8,JWn),c("h5",XWn,m(e.$t("navigation.search.unavailable.title")),1),c("p",QWn,m(e.$t("navigation.search.unavailable.text")),1),c("button",{class:"btn btn-primary btn-sm",onClick:t[0]||(t[0]=(...s)=>r.navigate&&r.navigate(...s))},m(e.$t("product.show_all")),1)])}const tGn=U(ZWn,[["render",eGn]]);const nGn={components:{SearchDropdownAutocomplete:dWn,SearchDropdownDefault:LWn,SearchDropdownNotFound:WWn,SearchDropdownUnavailableBlock:tGn},computed:{...sn("search",["value","isOpen","loadingAutocomplete","unavailable"]),...Oe("search",["autocompleteFiltered"])}};function oGn(e,t,n,o,i,r){const s=y("SearchDropdownUnavailableBlock"),a=y("SearchDropdownDefault"),l=y("SearchDropdownAutocomplete"),d=y("SearchDropdownNotFound");return h(),W(nd,{name:"fade"},{default:F(()=>[e.isOpen?(h(),g("div",{key:0,class:"select-container w-100 mh-4dot25 px-3 py-4",onClick:t[0]||(t[0]=Gt(()=>{},["stop"])),id:"search-dropdown"},[e.unavailable?(h(),W(s,{key:0})):!e.value||e.loadingAutocomplete&&e.autocompleteFiltered.length===0?(h(),W(a,{key:1})):e.autocompleteFiltered.length>0?(h(),W(l,{key:2})):!e.loadingAutocomplete&&e.autocompleteFiltered.length===0?(h(),W(d,{key:3})):D("",!0)])):D("",!0)]),_:1})}const iGn=U(nGn,[["render",oGn]]),rGn={components:{NavigationSearchInput:dYn,NavigationSearchDropdown:iGn},computed:{...sn("search",["isOpen"])},methods:{handleClick(e){this.$refs.navigationSearch&&!this.$refs.navigationSearch.contains(e.target)&&this.isOpen&&this.handleClose()},handleOpen(){this.sendOpenedAnalyticsEvent(),this.$store.commit("search/setIsOpen",!0)},handleClose(){this.$store.commit("search/setIsOpen",!1)},sendOpenedAnalyticsEvent(){ai.navbarSearchOpened()}},mounted(){this.$store.dispatch("search/defaults"),this.$store.dispatch("search/trendingQueries"),this.$store.dispatch("search/logs",this.$storage),document.addEventListener("click",this.handleClick),window.eventBus.on("navigation-category-select-show",this.handleClose),this.sendOpenedAnalyticsEvent=is.debounce(this.sendOpenedAnalyticsEvent,250)},beforeUnmount(){document.removeEventListener("click",this.handleClick)}},sGn={class:"position-lg-relative navbar-search-box z-index-10003",ref:"navigationSearch"};function aGn(e,t,n,o,i,r){const s=y("NavigationSearchInput"),a=y("NavigationSearchDropdown");return h(),g("div",sGn,[b(s,{onClick:Gt(r.handleOpen,["stop"]),onOpen:r.handleOpen,onClose:r.handleClose},null,8,["onClick","onOpen","onClose"]),b(a)],512)}const ide=U(rGn,[["render",aGn]]),lGn={components:{CategorySelectDropdownFormat:w6,CategorySelectDropdownTheme:y6,CategorySelectDropdownKind:b6,CategorySelectDropdownHoliday:k6,CategorySelectDropdownSubject:_6,CategorySelectDropdownClass:v6,AppIcon:Ue,OffcanvasSidebar:wL},computed:{...Oe({categories:"category/getCategories",categoryLoading:"category/loading"})},data(){return{activeTab:null}},methods:{toggleCategory(e){this.activeTab=e,ai.navigationCategoryTypeOpen(e)}},mounted(){document.getElementById("navigation-filter-offcanvas").addEventListener("show.bs.offcanvas",g6.collapseAllFilterAccordions)}},cGn={class:"mb-0 ps-3 ms-2"},dGn={class:"p-3"},uGn=["aria-label","onClick"],hGn={class:"d-flex flex-wrap align-center"},fGn={class:"btn btn-tertiary btn-sm text-gray-900 d-flex align-center",type:"button","data-bs-toggle":"offcanvas","data-bs-target":"#navigation-filter-offcanvas","aria-expanded":"false","aria-label":"Toggle navigation filter"},mGn={key:0,class:"mb-0"},pGn={class:"p-3"};function gGn(e,t,n,o,i,r){const s=y("OffcanvasSidebar"),a=y("AppIcon"),l=y("CategorySelectDropdownClass"),d=y("CategorySelectDropdownSubject"),u=y("CategorySelectDropdownTheme"),f=y("CategorySelectDropdownKind"),p=y("CategorySelectDropdownFormat"),v=y("CategorySelectDropdownHoliday");return h(),g("div",null,[b(s,{id:"navigation-filter"},os({title:F(()=>[c("h2",cGn,m(e.$t("product.categories")),1)]),_:2},[e.categoryLoading?void 0:{name:"content",fn:F(()=>[c("div",dGn,[(h(!0),g(pe,null,Me(e.categories,(_,k,C)=>(h(),g("div",{class:J(["p-3",{"border-bottom-2":C!==Object.keys(e.categories).length-1}]),type:"button","data-bs-toggle":"offcanvas","data-bs-target":"#category-navigation-offcanvas","aria-expanded":"false",key:C,"aria-label":"Toggle "+k+" navigation filter",onClick:$=>r.toggleCategory(k)},m(e.$tm("navigation.categories")[k]),11,uGn))),128))])]),key:"0"}]),1024),b(s,{id:"category-navigation"},{title:F(()=>[c("div",hGn,[c("button",fGn,[b(a,{icon:"chevron-left",height:"24",width:"24"})]),i.activeTab?(h(),g("h2",mGn,m(e.$tm("navigation.categories")[i.activeTab]),1)):D("",!0)])]),content:F(()=>[c("div",pGn,[i.activeTab==="class"?(h(),W(l,{key:0,items:e.categories[i.activeTab],"is-from-navbar":""},null,8,["items"])):D("",!0),i.activeTab==="subject"?(h(),W(d,{key:1,items:e.categories[i.activeTab],"is-from-navbar":"",categories:e.categories},null,8,["items","categories"])):D("",!0),i.activeTab==="theme"?(h(),W(u,{key:2,items:e.categories[i.activeTab],"is-from-navbar":""},null,8,["items"])):D("",!0),i.activeTab==="kind"?(h(),W(f,{key:3,items:e.categories[i.activeTab],"is-from-navbar":""},null,8,["items"])):D("",!0),i.activeTab==="format"?(h(),W(p,{key:4,items:e.categories[i.activeTab],"is-from-navbar":""},null,8,["items"])):D("",!0),i.activeTab==="holiday"?(h(),W(v,{key:5,items:e.categories[i.activeTab],"is-from-navbar":""},null,8,["items"])):D("",!0)])]),_:1})])}const vGn=U(lGn,[["render",gGn]]),_Gn={methods:{navigate(e){typeof ai[e]=="function"?ai[e]():console.error(`The function named ${e} does not exist in the analytics module.`)}}},yGn={class:"d-flex justify-content-end w-100 bg-gray-300 px-xxl-8rem"},bGn={class:"d-flex align-self-end overflow-auto py-2 p-3"},kGn={class:"ps-2 pe-4 border-end border-gray-700"},wGn=["href"],$Gn={class:"px-4 border-end border-gray-700"},CGn=["href"],SGn={class:"px-4 border-end border-gray-700"},TGn=["href"],EGn={class:"ps-4 pe-2"},IGn=["href"];function PGn(e,t,n,o,i,r){return h(),g("div",yGn,[c("div",bGn,[c("div",kGn,[c("a",{href:e.ziggyRoute("blog.index"),class:"d-block small link-gray-700",onClick:t[0]||(t[0]=s=>r.navigate("navigationBlogClicked"))},m(e.$t("navigation.links.blog")),9,wGn)]),c("div",$Gn,[c("a",{href:e.ziggyRoute("webinars.index"),class:"d-block small link-gray-700",onClick:t[1]||(t[1]=s=>r.navigate("navigationWebinarClicked"))},m(e.$t("navigation.links.webinar")),9,CGn)]),c("div",SGn,[c("a",{href:e.ziggyRoute("faq.page"),class:"d-block small link-gray-700",onClick:t[2]||(t[2]=s=>r.navigate("navigationHelpClicked"))},m(e.$t("navigation.links.help")),9,TGn)]),c("div",EGn,[c("a",{href:e.ziggyRoute("page.contact"),class:"d-block small link-gray-700",onClick:t[3]||(t[3]=s=>r.navigate("navigationContactClicked"))},m(e.$t("navigation.links.contact")),9,IGn)])])])}const rde=U(_Gn,[["render",PGn]]),AGn={components:{UcitelniceLogo:kp},props:{isMobile:{type:Boolean,default:!1}}},DGn=["href"];function xGn(e,t,n,o,i,r){const s=y("UcitelniceLogo");return h(),g("a",{href:e.ziggyRoute("default"),class:J({"p-3":!n.isMobile})},[b(s,{height:n.isMobile?20:null,short:n.isMobile,class:J({"w-9rem":!n.isMobile})},null,8,["height","short","class"])],10,DGn)}const sde=U(AGn,[["render",xGn]]);const OGn=60,LGn={components:{NavigationLgDownButtons:oYn,TransitionCollapseHeight:qo,UserMenuDropdown:tde,NavigationSearch:ide,CategoryNavigationOffcanvasFilter:vGn,NavigationLinks:rde,NavigationLogo:sde},data(){return{userDropdownShown:!1,isMobileSearchOpen:!1,resizeObserver:null,navbarHeight:0,showNavbar:!0,lastScrollPosition:0,height:"auto"}},props:{hideSearchInput:{type:Boolean,default:!1}},computed:{...Oe({user:"navigation/getUserInfo"}),wishlistItemsCount(){return this.user.id!==null?this.user.wishlist_items_count:0}},methods:{heightChange(){return this.$refs.navbar&&(this.navbarHeight=this.$refs.navbar.clientHeight),0},toggleDropdown(){this.userDropdownShown=!this.userDropdownShown},hideDropdown(){this.userDropdownShown=!1},onScroll(){window.pageYOffset<0||Math.abs(window.pageYOffset-this.lastScrollPosition)<OGn||(this.showNavbar=window.pageYOffset<this.lastScrollPosition,this.lastScrollPosition=window.pageYOffset)}},mounted(){this.resizeObserver=new ResizeObserver(this.heightChange),this.resizeObserver.observe(this.$refs.navbar),this.lastScrollPosition=window.pageYOffset,window.addEventListener("scroll",this.onScroll);const e=document.createElement("meta");e.name="viewport",e.content="width=device-width, initial-scale=1",document.head.appendChild(e)},beforeUnmount(){this.resizeObserver.unobserve(this.$refs.navbar),window.removeEventListener("scroll",this.onScroll)}},MGn={class:"d-lg-none fixed-top"},NGn={class:"w-100 px-0 pt-2"},RGn={class:"d-flex justify-content-between align-items-center"},jGn={class:"d-flex flex-wrap justify-content-between align-items-baseline"},FGn={class:"border-none shadow-none-focus bg-white text-gray-900 me-2 d-lg-none",type:"button","data-bs-toggle":"offcanvas","data-bs-target":"#navigation-filter-offcanvas","aria-expanded":"false","aria-label":"Toggle navigation filter"},zGn={class:"d-flex pt-2 pb-3"};function UGn(e,t,n,o,i,r){const s=y("NavigationLinks"),a=y("app-icon"),l=y("NavigationLogo"),d=y("NavigationLgDownButtons"),u=y("NavigationSearch"),f=y("UserMenuDropdown"),p=y("TransitionCollapseHeight"),v=y("CategoryNavigationOffcanvasFilter");return h(),g("div",MGn,[c("nav",{ref:"navbar",class:J(["navbar",{"navbar-hidden":!i.showNavbar}])},[b(s),c("div",NGn,[c("div",RGn,[c("div",jGn,[c("button",FGn,[b(a,{icon:"menu",height:"28",width:"28"})]),b(l,{"is-mobile":""})]),b(d,{user:e.user,"wishlist-items-count":r.wishlistItemsCount,onUserDropdownToggle:r.toggleDropdown,onUserDropdownUnset:r.hideDropdown},null,8,["user","wishlist-items-count","onUserDropdownToggle","onUserDropdownUnset"])]),c("div",zGn,[n.hideSearchInput?D("",!0):(h(),W(u,{key:0,style:Bn("height:"+i.height+"px; max-height: 85vh;"),class:"px-2"},null,8,["style"]))])])],2),b(p,{class:"position-absolute start-0 w-100 bg-white rounded user-dropdown-mobile-shadow z-index-10004"},{default:F(()=>[xe(c("div",null,[b(f)],512),[[Vo,i.userDropdownShown]])]),_:1}),b(v,{class:"d-lg-none"})])}const BGn=U(LGn,[["render",UGn],["__scopeId","data-v-f8073960"]]),HGn={},VGn=["href"];function qGn(e,t,n,o,i,r){return h(),g("a",{href:e.ziggyRoute("school.index"),class:"btn btn-link btn-navbar"},m(e.$t("navigation.for_schools")),9,VGn)}const YGn=U(HGn,[["render",qGn]]),WGn={},GGn=["href"];function ZGn(e,t,n,o,i,r){return h(),g("a",{href:e.ziggyRoute("user.be_author.index"),class:"btn btn-link btn-navbar"},m(e.$t("navigation.for_authors")),9,GGn)}const KGn=U(WGn,[["render",ZGn]]),JGn={},XGn=["href"];function QGn(e,t,n,o,i,r){return h(),g("a",{href:e.ziggyRoute("dashboard.index"),class:"px-3 py-2dot5 btn btn-link btn-navbar",type:"button",id:"navbarAuthorMenu"},m(e.$t("navigation.my_shop")),9,XGn)}const eZn=U(JGn,[["render",QGn]]),tZn={props:{context:{type:String,default:"navbar"}},methods:{openLoginRegisterModal(){window.loginRegisterModal(null,"login",this.context)}}};function nZn(e,t,n,o,i,r){return h(),g("button",{onClick:t[0]||(t[0]=(...s)=>r.openLoginRegisterModal&&r.openLoginRegisterModal(...s)),class:J({"btn btn-link btn-navbar":n.context=="navbar","btn btn-secondary w-100":n.context=="cart"})},m(e.$t("navigation.login")),3)}const oZn=U(tZn,[["render",nZn]]);const iZn={components:{UserMenuDropdown:tde}},rZn={class:"dropdown d-flex justify-content-center"},sZn={class:"btn btn-link btn-navbar btn-center",type:"button",id:"navbarUserMenu","data-bs-toggle":"dropdown","aria-expanded":"false"};function aZn(e,t,n,o,i,r){const s=y("app-icon"),a=y("UserMenuDropdown");return h(),g("div",rZn,[c("button",sZn,[b(s,{icon:"user",height:20,width:20})]),b(a,{class:"dropdown-menu dropdown-menu-center w-20rem bg-white z-index-10003"})])}const lZn=U(iZn,[["render",aZn],["__scopeId","data-v-fe137b44"]]),cZn={props:{count:{type:Number,default:0}},mounted(){this.$store.dispatch("wishlist/load")}},dZn=["href","value"];function uZn(e,t,n,o,i,r){const s=y("app-icon");return h(),g("a",{href:e.ziggyRoute("user.dashboard.wishlist"),class:J(["btn btn-link btn-navbar btn-center",{"badge-with-number ps-3 pe-0 badge-success badge-on-icon":n.count>0}]),value:n.count},[b(s,{icon:"wishlist",height:"20",width:"20",class:"d-inline-block"})],10,dZn)}const hZn=U(cZn,[["render",uZn]]),fZn={props:{count:{type:Number,default:0}},mounted(){this.$store.dispatch("cart/load")}},mZn=["href","value"];function pZn(e,t,n,o,i,r){const s=y("app-icon");return h(),g("a",{href:e.ziggyRoute("cart.index"),class:J(["btn btn-link btn-navbar btn-center",{"badge-with-number ps-3 pe-0 badge-success badge-on-icon":n.count>0}]),value:n.count},[b(s,{icon:"basket",height:"20",width:"20",class:"d-inline-block"})],10,mZn)}const gZn=U(fZn,[["render",pZn]]),vZn={components:{SchoolInfoButton:YGn,AuthorInfoButton:KGn,AuthorDashboardButton:eZn,UserLoginButton:oZn,UserMenuButton:lZn,WishlistButton:hZn,CartButton:gZn},computed:{...Oe({user:"navigation/getUserInfo"})}},_Zn={class:"d-flex align-items-center justify-content-end flex-wrap"};function yZn(e,t,n,o,i,r){var v,_;const s=y("SchoolInfoButton"),a=y("AuthorInfoButton"),l=y("AuthorDashboardButton"),d=y("UserLoginButton"),u=y("UserMenuButton"),f=y("WishlistButton"),p=y("CartButton");return h(),g("div",_Zn,[e.user.id===null?(h(),W(s,{key:0})):D("",!0),e.user.id===null||e.user.id!==null&&!e.user.is_author?(h(),W(a,{key:1})):(h(),W(l,{key:2})),e.user.id===null?(h(),W(d,{key:3})):(h(),W(u,{key:4})),e.user.id!==null?(h(),W(f,{key:5,count:(v=e.user)==null?void 0:v.wishlist_items_count},null,8,["count"])):D("",!0),b(p,{count:(_=e.user)==null?void 0:_.cart_items_count},null,8,["count"])])}const bZn=U(vZn,[["render",yZn]]),kZn={categories_hidden_urls:["/materialy"],author_menu_items:[{name:"user.dashboard",route:"dashboard.index"},{name:"product.new_product",route:"product.create"},{name:"public.my_products",route:"dashboard.products"},{name:"public.vat_level",route:"page.vatLevel"},{name:"user.news_for_author",route:"page.author_news"},{name:"public.author_tips",link:"https://autori.ucitelnice.cz/zaÄŤ%C3%ADnáme",blank:!0}],user_menu_items(e=!1,t=!1,n=!1,o=!1){let i=[{name:"navigation.user_menu.user_dashboard",route:"user.dashboard.index"}];return e?i.push({name:"navigation.user_menu.author_dashboard",route:"dashboard.index"}):i.push({name:"navigation.for_authors",route:"user.be_author.index"}),t?n?i.push({name:"navigation.user_menu.school_dashboard",route:"school.manager.home"}):i.push({name:"navigation.user_menu.school_dashboard",route:"user.dashboard.settings.school"}):i.push({name:"navigation.for_schools",route:"school.index"}),o&&i.push({name:"navigation.user_menu.admin_dashboard",route:"administration.index",blank:!0}),i}},wZn={components:{CategorySelectDropdownSubjectKindergarten:xse,CategorySelectDropdownItem:yp},props:{checked:{type:Array,default:()=>[]}},computed:{...Oe({categories:"category/getCategories"}),checkedModel:{get(){return this.checked},set(e){this.$emit("update:checked",e)}}}},$Zn={class:"row"},CZn={class:"col-3"};function SZn(e,t,n,o,i,r){const s=y("CategorySelectDropdownItem"),a=y("CategorySelectDropdownSubjectKindergarten");return h(),g("div",$Zn,[c("div",CZn,[b(s,{"is-from-navbar":!0,class:"fw-bold text-uppercase",item:e.categories.class[0],checked:r.checkedModel,"onUpdate:checked":t[0]||(t[0]=l=>r.checkedModel=l),"is-title":"",onUpdated:t[1]||(t[1]=l=>e.$emit("updated"))},null,8,["item","checked"]),(h(!0),g(pe,null,Me(e.categories.class[0].children,(l,d)=>(h(),g("div",{key:d},[b(s,{"is-from-navbar":!0,item:l,checked:r.checkedModel,"onUpdate:checked":t[2]||(t[2]=u=>r.checkedModel=u),onUpdated:t[3]||(t[3]=u=>e.$emit("updated"))},null,8,["item","checked"])]))),128))]),b(a,{class:"col-9",checked:r.checkedModel,"onUpdate:checked":t[4]||(t[4]=l=>r.checkedModel=l),items:[e.categories.subject.filter(l=>l.id===406)[0]],"is-from-navbar":!0,onUpdated:t[5]||(t[5]=l=>e.$emit("updated"))},null,8,["checked","items"])])}const TZn=U(wZn,[["render",SZn]]);const EZn={components:{CategorySelectDropdownKindergarten:TZn,CategorySelectDropdownClass:v6,CategorySelectDropdownSubject:_6,CategorySelectDropdownTheme:y6,CategorySelectDropdownKind:b6,CategorySelectDropdownFormat:w6,CategorySelectDropdownHoliday:k6},data(){return{hideCategoriesOnUrls:kZn.categories_hidden_urls,activeTab:null,isBackdropShown:!1}},computed:{...Oe({categoryLoading:"category/loadingFlat",categoriesFlat:"category/getCategoriesFlat",categories:"category/getCategories"}),hideCategories(){return this.hideCategoriesOnUrls.includes(this.$route.path)}},methods:{toggleMenu(e){this.activeTab===e?this.activeTab=null:(this.activeTab=e,ai.navigationCategoryTypeOpen(e))},handleClickOutside(e){const t=this.$refs.navigationCategorySelect,n=this.$refs.navigationCategorySelectDropdown;t&&n&&!t.contains(e.target)&&!n.contains(e.target)&&(this.activeTab=null)}},mounted(){this.$store.dispatch("category/load"),this.$store.dispatch("category/loadFlatTree"),this.$store.dispatch("category/loadClassSubject"),document.addEventListener("click",this.handleClickOutside),window.eventBus.on("navigation-search-show",()=>{this.activeTab=null,this.isBackdropShown=!0}),window.eventBus.on("navigation-search-hide",()=>{this.isBackdropShown=!1})},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)},watch:{activeTab(){this.activeTab?window.eventBus.emit("navigation-category-select-show"):window.eventBus.emit("navigation-category-select-hide")}}},IZn={key:0,class:"d-flex justify-content-center align-items-start"},PZn={class:"d-flex justify-content-center align-items-start",ref:"navigationCategorySelect"},AZn=["onClick"],DZn={ref:"navigationCategorySelectDropdown",class:"dropdown-menu border-radius-none w-100 d-flex justify-content-center cursor-default medium p-0 show"},xZn={key:0,class:"py-5"};function OZn(e,t,n,o,i,r){const s=y("CategorySelectDropdownKindergarten"),a=y("CategorySelectDropdownClass"),l=y("CategorySelectDropdownSubject"),d=y("CategorySelectDropdownTheme"),u=y("CategorySelectDropdownKind"),f=y("CategorySelectDropdownFormat"),p=y("CategorySelectDropdownHoliday");return h(),g("div",{class:J(["w-100 pt-2dot5 category-select-wrapper",{"custom-backdrop":i.isBackdropShown}])},[r.hideCategories?D("",!0):(h(),g("div",IZn,[c("div",PZn,[c("div",{class:J([{"navbar-category z-index-100":!0,active:i.activeTab==="kindergarten"},"dropdown mt-0 text-gray-800 text-primary-hover medium"]),onClick:t[0]||(t[0]=v=>r.toggleMenu("kindergarten"))},m(e.$t("category.kindergarten")),3),(h(!0),g(pe,null,Me(e.categoriesFlat,(v,_,k)=>(h(),g("div",{key:k,class:J([{"navbar-category z-index-100":!0,active:i.activeTab===_},"dropdown mt-3 mt-md-0 text-gray-800 text-primary-hover medium"]),onClick:C=>r.toggleMenu(_)},m(e.$tm("navigation.categories")[_]),11,AZn))),128))],512)])),c("div",DZn,[i.activeTab?(h(),g("div",xZn,[i.activeTab==="kindergarten"?(h(),W(s,{key:0,"is-from-navbar":""})):D("",!0),i.activeTab==="class"?(h(),W(a,{key:1,items:e.categories[i.activeTab],"is-from-navbar":""},null,8,["items"])):D("",!0),i.activeTab==="subject"?(h(),W(l,{key:2,items:e.categoriesFlat[i.activeTab],"is-from-navbar":"",categories:e.categories},null,8,["items","categories"])):D("",!0),i.activeTab==="theme"?(h(),W(d,{key:3,items:e.categories[i.activeTab],"is-from-navbar":""},null,8,["items"])):D("",!0),i.activeTab==="kind"?(h(),W(u,{key:4,items:e.categories[i.activeTab],"is-from-navbar":""},null,8,["items"])):D("",!0),i.activeTab==="format"?(h(),W(f,{key:5,items:e.categories[i.activeTab],"is-from-navbar":""},null,8,["items"])):D("",!0),i.activeTab==="holiday"?(h(),W(p,{key:6,items:e.categories[i.activeTab],"is-from-navbar":""},null,8,["items"])):D("",!0)])):D("",!0)],512)],2)}const LZn=U(EZn,[["render",OZn],["__scopeId","data-v-7a7ed6af"]]);const MZn={components:{NavigationSearch:ide,NavigationLgUpButtons:bZn,NavigationLinks:rde,NavigationCategorySelect:LZn,NavigationLogo:sde},props:{hideSearchInput:{type:Boolean,default:!1}}},NZn={class:"d-none d-lg-block fixed-top"},RZn={ref:"navbar",class:"navbar navbar-expand"},jZn={id:"main-navbar",class:"collapse navbar-collapse flex-column p-0"},FZn={class:"w-100 px-xxl-8rem"},zZn={class:"row align-items-center px-2dot5 pt-3 mt-1 pb-special-fix"},UZn={class:"col-auto col-xxxl-3 col-xxxxl-4 h-100"},BZn={class:"col"},HZn={class:"col-auto col-xxxl-3 col-xxxxl-4"};function VZn(e,t,n,o,i,r){const s=y("NavigationLinks"),a=y("NavigationLogo"),l=y("NavigationSearch"),d=y("NavigationLgUpButtons"),u=y("NavigationCategorySelect");return h(),g("div",NZn,[c("nav",RZn,[c("div",jZn,[b(s),c("div",FZn,[c("div",zZn,[c("div",UZn,[b(a)]),c("div",BZn,[n.hideSearchInput?D("",!0):(h(),W(l,{key:0,class:"maxh-90vh"}))]),c("div",HZn,[b(d)])])]),b(u)])],512)])}const qZn=U(MZn,[["render",VZn],["__scopeId","data-v-288f6076"]]);const YZn={components:{NavigationBarLgDown:BGn,NavigationBarLgUp:qZn,NavigationBackdrop:Lqn},props:{userNavigationInfo:{type:Object,default(){return null}}},data(){return{isMobile:window.innerWidth<=991}},methods:{handleResize(){this.isMobile=window.innerWidth<=991}},mounted(){this.handleResize=is.debounce(this.handleResize,100),window.addEventListener("resize",this.handleResize),this.$store.dispatch("auth/downloads"),this.$store.dispatch("user/loadPreferences"),this.$store.dispatch("navigation/setUserInfo",{userInfo:this.userNavigationInfo})},beforeUnmount(){window.removeEventListener("resize",this.handleResize)}};function WZn(e,t,n,o,i,r){const s=y("NavigationBackdrop"),a=y("NavigationBarLgUp"),l=y("NavigationBarLgDown");return h(),g("div",null,[b(s),b(a,{"hide-search-input":i.isMobile},null,8,["hide-search-input"]),b(l,{"hide-search-input":!i.isMobile},null,8,["hide-search-input"])])}const GZn=U(YZn,[["render",WZn],["__scopeId","data-v-69370e82"]]);const ZZn={components:{Loading:Rt},props:{position:{type:String,default:"end"},id:String,submitColor:{type:String,default:"primary"},submitDisabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor,focusedId:null}},computed:{...Oe("sidebar",{loadingStore:"getLoading"}),loadingUnion(){return this.loading||this.loadingStore}},created(){document.addEventListener("focusin",this.focusChanged)},beforeUnmount(){document.removeEventListener("focusin",this.focusChanged)},mounted(){this.$refs[this.id+"-offcanvas"].addEventListener("hide.bs.offcanvas",()=>{this.$emit("close")})},methods:{focusChanged(e){this.focusedId=e.target.id},submitEnter(){this.focusedId==this.id+"-offcanvas"&&this.$emit("submit")}}},KZn=["id"],JZn={class:"offcanvas-header d-flex justify-content-between align-items-center px-4 py-3 shadow"},XZn={class:"text-truncate"},QZn={key:0,class:"mb-0 fw-bold text-truncate"},eKn={key:1,class:"medium text-gray-600 text-truncate"},tKn={class:"d-flex flex-grow-1 align-items-baseline justify-content-end"},nKn=["disabled"],oKn={class:"btn btn-sm btn-secondary btn-center white-space-nowrap",ref:"offcanvas-close",type:"button","data-bs-dismiss":"offcanvas"},iKn={key:2},rKn={class:"offcanvas-body"},sKn={class:"px-4 py-5 text-gray-800"},aKn={key:0,class:"offcanvas-footer w-100"};function lKn(e,t,n,o,i,r){const s=y("Loading");return h(),g("div",{class:J(["offcanvas","offcanvas-"+n.position]),tabindex:"-1",id:n.id+"-offcanvas",onKeyup:t[2]||(t[2]=bs((...a)=>r.submitEnter&&r.submitEnter(...a),["enter"])),ref:n.id+"-offcanvas"},[b(s,{active:r.loadingUnion,"onUpdate:active":t[0]||(t[0]=a=>r.loadingUnion=a),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",JZn,[c("div",XZn,[e.$slots.title?(h(),g("h5",QZn,[Pt(e.$slots,"title",{},void 0,!0)])):D("",!0),e.$slots.subtitle?(h(),g("div",eKn,[Pt(e.$slots,"subtitle",{},void 0,!0)])):D("",!0)]),c("div",tKn,[e.$slots["submit-button"]?(h(),g("button",{key:0,type:"button",class:J(["btn btn-sm btn-center white-space-nowrap me-2",["btn-"+n.submitColor,{"text-white":n.submitColor=="success"}]]),onClick:t[1]||(t[1]=a=>e.$emit("submit")),disabled:n.submitDisabled},[Pt(e.$slots,"submit-button",{},void 0,!0)],10,nKn)):D("",!0),e.$slots["other-buttons"]?Pt(e.$slots,"other-buttons",{key:1},void 0,!0):D("",!0),c("button",oKn,[e.$slots["close-button"]?Pt(e.$slots,"close-button",{key:0},void 0,!0):e.$slots["submit-button"]?Pt(e.$slots,"default",{key:1},()=>[z(m(e.$t("public.cancel")),1)],!0):(h(),g("span",iKn,m(e.$t("public.close")),1))],512)])]),c("div",rKn,[c("div",sKn,[Pt(e.$slots,"content",{},void 0,!0)]),e.$slots.footer?(h(),g("div",aKn,[Pt(e.$slots,"footer",{},void 0,!0)])):D("",!0)])],42,KZn)}const _n=U(ZZn,[["render",lKn],["__scopeId","data-v-99aab18d"]]),cKn=e=>De.post(Pe("api.complaint.store"),e),dKn={create:cKn},tE="type",uKn="details",hKn={components:{FormSidebar:_n},computed:{...Oe({complaint:"sidebar/getData",auth:"auth/auth"})},validations:{text:{required:Yt}},data(){return{type:"error",text:null,currentState:tE,stateType:tE,stateDetails:uKn}},methods:{reset(){this.text="",this.type="error",this.currentState=tE},store(){this.v$.$touch(),!this.v$.$invalid&&(this.loading||(this.$store.commit("sidebar/setLoading",!0),dKn.create({order_item_id:this.complaint.orderId,type:this.type,text:this.text}).then(e=>{this.$store.dispatch("sidebar/close"),window.flash(e.data.message,"success"),this.show=!1,this.reset(),setTimeout(()=>{this.$router.go(0)},1e3)}).catch(e=>{this.$store.commit("sidebar/setLoading",!1),e.response&&e.response.status&&window.flash(this.$t("complaints.create_modal.error"),"error")})))}},watch:{complaint(){this.reset()}},setup(){return{v$:Pn()}}},fKn={class:"cursor-pointer d-flex align-items-center"},mKn=["value"],pKn={class:"fw-bold ms-2"},gKn={class:"fw-bold"},vKn={key:0},_Kn=["href"],yKn=["href"],bKn={key:1},kKn={class:"form-group form-floating"},wKn=["placeholder"],$Kn={class:"form-label"},CKn={key:0,class:"text-danger"};function SKn(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.check?(h(),W(s,{key:0,id:"complaint-create",onSubmit:t[3]||(t[3]=a=>i.currentState===i.stateType?i.currentState=i.stateDetails:r.store())},os({title:F(()=>[z(m(i.currentState===i.stateType?e.$t("complaints.create_modal.title.initial"):e.$t("complaints.create_modal.title.more")),1)]),subtitle:F(()=>[z(m(e.complaint.productTitle),1)]),"submit-button":F(()=>[z(m(i.currentState===i.stateType?e.$t("complaints.create_modal.continue"):e.$t("complaints.create_modal.submit")),1)]),content:F(()=>[i.currentState===i.stateType?(h(),g(pe,{key:0},[c("p",null,m(e.$t("complaints.create_modal.text")),1),(h(!0),g(pe,null,Me(e.$tm("complaints.types"),(a,l)=>(h(),g("div",{key:l,class:"radio mb-3"},[c("label",fKn,[xe(c("input",{class:"cursor-pointer",type:"radio","onUpdate:modelValue":t[1]||(t[1]=d=>i.type=d),value:l},null,8,mKn),[[Df,i.type]]),c("div",pKn,m(a.long),1)])]))),128))],64)):D("",!0),i.currentState===i.stateDetails?(h(),g(pe,{key:1},[c("p",null,[c("span",gKn,m(e.$t("complaints.reason_of_complaint")+":"),1),z(" "+m(e.$tm("complaints.types")[i.type].long),1)]),i.type=="technical_error"?(h(),g("div",vKn,[c("p",null,m(e.$t("complaints.create_modal.instructions.technical_error.0")),1),c("ul",null,[c("li",null,[c("a",{href:e.ziggyRoute("faq",{id:6})},m(e.$t("complaints.create_modal.instructions.technical_error.1")),9,_Kn)]),c("li",null,[c("a",{href:e.ziggyRoute("faq",{id:7})},m(e.$t("complaints.create_modal.instructions.technical_error.2")),9,yKn)])]),c("p",null,m(e.$t("complaints.create_modal.instructions.technical_error.3")),1)])):(h(),g("p",bKn,m(e.$tm("complaints.create_modal.instructions")[i.type]),1)),c("div",kKn,[xe(c("textarea",{class:"form-control",id:"text",name:"text","onUpdate:modelValue":t[2]||(t[2]=a=>i.text=a),placeholder:e.$tm("complaints.create_modal.placeholder")[i.type]},null,8,wKn),[[wt,i.text]]),c("label",$Kn,m(e.$t("complaints.create_modal.label")),1),o.v$.text.$error?(h(),g("span",CKn,m(e.$t("validation.required",{attribute:e.$t("public.array")})),1)):D("",!0)])],64)):D("",!0)]),_:2},[i.currentState===i.stateDetails?{name:"other-buttons",fn:F(()=>[c("button",{class:"btn btn-sm btn-secondary me-2",onClick:t[0]||(t[0]=a=>i.currentState=i.stateType)},m(e.$t("complaints.create_modal.back")),1)]),key:"0"}:void 0]),1024)):D("",!0)}const TKn=U(hKn,[["render",SKn]]),EKn={components:{AppIcon:Ue},props:{active:Boolean,text:String},methods:{select(){this.$emit("selected")}}},IKn={class:"d-inline-block"};function PKn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",IKn,[c("div",{class:J([{"bg-success text-white":n.active},"badge rounded-pill d-flex flex-wrap align-items-center fw-medium small rating-button bg-success-light text-success-dark cursor-pointer border-none mb-3 me-3 py-1 px-2"]),onClick:t[0]||(t[0]=(...a)=>r.select&&r.select(...a))},[n.active?(h(),W(s,{key:1,icon:"check-fill",class:"me-1"})):(h(),W(s,{key:0,icon:"rating",class:"me-1"})),Pt(e.$slots,"default")],2)])}const AKn=U(EKn,[["render",PKn]]),DKn={components:{FormSidebar:_n,ProductRatingOptionButton:AKn},props:{signedRoute:{type:String,default:""}},data(){return{allowedRatings:jce}},computed:{...Oe({product:"sidebar/getData",auth:"auth/auth"}),productId(){return this.product.product_id?this.product.product_id:this.product.id},loading(){return this.$store.getters["productPreview/loading"]||this.$store.getters["productRating/loading"]},rating(){return this.$store.getters["productRating/rating"]}},methods:{updateRating(e){this.$store.dispatch("productRating/updateRating",e)},update(){this.$store.dispatch("productRating/store").then(()=>{this.$store.dispatch("sidebar/close"),window.flash(this.$t("product_rating.stored"),"success"),setTimeout(()=>{this.$router.go(0)},500)}).catch(e=>{if(!e.response||!e.response.status||e.response.status!==400)throw e;window.flash(this.$t("product_rating.validation.already_rated"),"error")})},loadRating(){Og.ratings(this.productId).then(e=>{e.data.data.forEach(t=>{this.updateRating(t.rating)})}).catch(e=>{var t,n,o;((t=e==null?void 0:e.response)==null?void 0:t.status)!==401&&(o=(n=e==null?void 0:e.response)==null?void 0:n.data)!=null&&o.message&&window.flash(e.response.data.message,"error")})},register(){this.$store.dispatch("productPreview/load",this.productId),this.$store.dispatch("productRating/updateProductId",this.productId),this.loadRating(),this.signedRoute.length>0&&this.$store.dispatch("productRating/updateSignedRoute",this.signedRoute)},clear(){this.$store.dispatch("productRating/clear"),this.$store.dispatch("productPreview/clear")}},watch:{productId(){this.clear(),this.register()}},mounted(){this.clear(),this.register()}},xKn={"data-lb-action":"rating-create",class:"w-100 h-100"},OKn={ref:"productRating"},LKn={class:"mb-4"};function MKn(e,t,n,o,i,r){const s=y("ProductRatingOptionButton"),a=y("FormSidebar");return e.auth.check?(h(),W(a,{key:0,id:"product-rating",onSubmit:r.update,loading:r.loading},{title:F(()=>[z(m(e.$t("product_rating.modal.heading")),1)]),subtitle:F(()=>[z(m(e.product.title),1)]),"submit-button":F(()=>[c("div",xKn,m(e.$t("product_rating.submit")),1)]),content:F(()=>[c("div",OKn,[c("p",LKn,m(e.$t("product_rating.modal.instructions")),1),(h(!0),g(pe,null,Me(i.allowedRatings,(l,d)=>(h(),W(s,{key:d,active:r.rating?r.rating.some(u=>u.rating===l):!1,onSelected:u=>r.updateRating(l)},{default:F(()=>[z(m(e.$tm("product_rating.allowed_values")[l]),1)]),_:2},1032,["active","onSelected"]))),128))],512)]),_:1},8,["onSubmit","loading"])):D("",!0)}const NKn=U(DKn,[["render",MKn]]),RKn={props:{title:String}},jKn={class:"mb-4"};function FKn(e,t,n,o,i,r){return h(),g("div",null,[c("h4",jKn,m(n.title),1),c("div",null,[Pt(e.$slots,"default")])])}const rb=U(RKn,[["render",FKn]]),zKn={components:{AppIcon:Ue},props:{product:[Object,Number],disabled:Boolean}},UKn=["src","alt"],BKn={class:"flex-grow-1"},HKn={class:"medium mb-0"},VKn={class:"px-2dot5"};function qKn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return h(),g("div",{class:J(["d-flex align-items-center p-2",{"bg-primary-5-hover cursor-pointer":!n.disabled}]),onMousedown:t[0]||(t[0]=l=>n.disabled?null:e.$emit("add",n.product))},[c("img",{src:n.product.cover_img_thumbnail,alt:n.product.title,height:"32",width:"32",class:"rounded border object-fit-cover me-3"},null,8,UKn),c("div",BKn,[c("p",HKn,m(n.product.title),1)]),c("div",VKn,[n.disabled?xe((h(),W(s,{key:0,icon:"check",class:"text-success"},null,512)),[[a,{content:n.disabled?e.$t("product.added_already"):null,delay:{show:500,hide:100},triggers:["click","hover"]}]]):(h(),W(s,{key:1,icon:"plus-circle",class:"text-primary"}))])],34)}const YKn=U(zKn,[["render",qKn]]),WKn={components:{Loading:Rt,Bootstrap5Pagination:Ri,ProductAddBox:YKn},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({group:"authorProductGroup/getDetail",list:"authorProductGroup/getProducts",loading:"authorProductGroup/getProductsLoading"}),search:{get(){return this.$store.getters["authorProductGroup/getProductsSearch"]},set(e){this.$store.commit("authorProductGroup/setProductsSearch",e)}}},methods:{load(){this.$store.dispatch("authorProductGroup/products")},setPage(e){this.$store.commit("authorProductGroup/setProductsPage",e)},setPageAndLoad(e){this.setPage(e),this.load()},add(e){this.$store.dispatch("authorProductGroup/addDetailProduct",{product:e}),this.$store.dispatch("authorProductGroup/productsAdded")}},watch:{search(){this.setPage(1),this.load()}},mounted(){this.load(),this.load=is.debounce(this.load,500)}},GKn={class:"form-group form-floating mb-4"},ZKn=["placeholder"],KKn={class:"form-label",for:"name"},JKn={key:0,class:"vl-parent mh-8"},XKn={key:1,class:"text-center text-gray-600"},QKn={key:2,class:"bg-white border border-primary-20 border-2 border-radius-4px"};function eJn(e,t,n,o,i,r){const s=y("Loading"),a=y("ProductAddBox"),l=y("Bootstrap5Pagination");return h(),g("div",null,[c("div",GKn,[xe(c("input",{name:"name",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=d=>r.search=d),placeholder:e.$t("administration.content.section.create.product.id")},null,8,ZKn),[[wt,r.search]]),c("label",KKn,m(e.$t("public.search")),1)]),c("div",null,[e.loading?(h(),g("div",JKn,[b(s,{active:e.loading,"onUpdate:active":t[1]||(t[1]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.data.length?(h(),g("div",QKn,[(h(!0),g(pe,null,Me(e.list.data,(d,u)=>(h(),g("div",{key:u},[b(a,{class:J(["border-bottom border-primary-20",{"border-none":u==e.list.data.length-1}]),product:d,onAdd:f=>r.add(d),disabled:e.group.products.map(f=>f.id).includes(d.id)},null,8,["class","product","onAdd","disabled"])]))),128))])):(h(),g("div",XKn,m(e.$t("product.not_found.title")),1)),e.loading?D("",!0):(h(),W(l,{key:3,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.setPageAndLoad,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])])}const ade=U(WKn,[["render",eJn]]),tJn={components:{AppIcon:Ue},props:{product:[Object,Number]}},nJn=["src","alt"],oJn={class:"flex-grow-1"},iJn={class:"medium mb-0"},rJn={class:"px-2dot5"};function sJn(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",{class:"d-flex align-items-center p-2 bg-primary-5-hover cursor-pointer",onMousedown:t[0]||(t[0]=a=>e.$emit("remove",n.product))},[c("img",{src:n.product.cover_img_thumbnail,alt:n.product.title,height:"32",width:"32",class:"rounded border object-fit-cover me-3"},null,8,nJn),c("div",oJn,[c("p",iJn,m(n.product.title),1)]),c("div",rJn,[b(s,{icon:"minus-circle",class:"text-danger"})])],32)}const aJn=U(tJn,[["render",sJn]]),lJn={product_order_by_options:[{key:"default",name:"PĹ™idánĂ do skupiny"},{key:"sells",name:"CelkovĂ˝ch prodejĹŻ"},{key:"approved_at",name:"NejnovÄ›jšĂch"}]},cJn={components:{Loading:Rt,Bootstrap5Pagination:Ri,ProductRemoveBox:aJn},data(){return{primaryColor:window.primaryColor,groupConfig:lJn}},computed:{...Oe({group:"authorProductGroup/getDetail",list:"authorProductGroup/getProductsAdded",loading:"authorProductGroup/getProductsLoading"}),search:{get(){return this.$store.getters["authorProductGroup/getProductsAddedSearch"]},set(e){this.$store.commit("authorProductGroup/setProductsAddedSearch",e)}}},methods:{load(){this.$store.dispatch("authorProductGroup/productsAdded")},setPage(e){this.$store.commit("authorProductGroup/setProductsAddedPage",e)},setPageAndLoad(e){this.setPage(e),this.load()},remove(e){this.$store.dispatch("authorProductGroup/removeDetailProduct",{id:e.id}),this.$store.dispatch("authorProductGroup/productsAdded")}},watch:{search(){this.setPage(1),this.load()}},mounted(){this.load(),this.load=is.debounce(this.load,500)}},dJn={class:"form-group form-floating mb-4"},uJn={for:"type",class:"form-label"},hJn={class:"form-group form-floating mb-4"},fJn=["placeholder"],mJn={class:"form-label",for:"name"},pJn={key:0,class:"vl-parent mh-8"},gJn={key:1,class:"text-center text-gray-600"},vJn={key:2,class:"bg-white border border-primary-20 border-2 border-radius-4px"};function _Jn(e,t,n,o,i,r){const s=y("v-select"),a=y("Loading"),l=y("ProductRemoveBox"),d=y("Bootstrap5Pagination");return h(),g("div",null,[c("div",dJn,[b(s,{class:"form-control",modelValue:e.group.product_order_by,"onUpdate:modelValue":t[0]||(t[0]=u=>e.group.product_order_by=u),options:i.groupConfig.product_order_by_options,label:"name",clearable:!1,searchable:!1,reduce:u=>u.key,"close-on-select":""},null,8,["modelValue","options","reduce"]),c("label",uJn,m(e.$t("product.orderBy")),1)]),c("div",hJn,[xe(c("input",{name:"name",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=u=>r.search=u),placeholder:e.$t("administration.content.section.create.product.id")},null,8,fJn),[[wt,r.search]]),c("label",mJn,m(e.$t("public.search")),1)]),c("div",null,[e.loading?(h(),g("div",pJn,[b(a,{active:e.loading,"onUpdate:active":t[2]||(t[2]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.data.length?(h(),g("div",vJn,[(h(!0),g(pe,null,Me(e.list.data,(u,f)=>(h(),g("div",{key:f},[b(l,{class:J(["border-bottom border-primary-20",{"border-none":f==e.list.data.length-1}]),product:u,onRemove:r.remove,disabled:e.group.products.includes(u.id)},null,8,["class","product","onRemove","disabled"])]))),128))])):(h(),g("div",gJn,m(e.$t("product.not_found.title")),1)),e.loading?D("",!0):(h(),W(d,{key:3,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.setPageAndLoad,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])])}const lde=U(cJn,[["render",_Jn]]),yJn={components:{FormSidebar:_n,SidebarBlock:rb,ImageModifier:Q3,AuthorProductGroupProductAddTable:ade,AuthorProductGroupProductRemoveTable:lde},data(){return{activeTab:"product-add"}},computed:{...Oe({auth:"auth/auth",group:"authorProductGroup/getDetail"})},methods:{submit(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("authorProductGroup/update",{id:this.group.id,group:this.group})},reloadImage(){this.$store.dispatch("authorProductGroup/show",{id:this.group.id,imageReload:!0})},close(){this.$store.commit("authorProductGroup/resetDetail"),this.$store.commit("authorProductGroup/resetProducts"),this.$store.commit("authorProductGroup/resetProductsAdded"),this.activeTab="product-add"}},validations:{group:{title:{required:Yt,maxLength:hi(30)},cover_img:{},products:{required:Yt,minLength:Ua(1)}}},setup(){return{v$:Pn()}},watch:{"group.product_order_by":{handler(){this.group&&this.group.product_order_by&&this.$store.dispatch("authorProductGroup/update",{id:this.group.id,group:this.group,silent:!0}).then(()=>{this.$store.commit("authorProductGroup/resetProductsAdded"),this.$store.dispatch("authorProductGroup/productsAdded")})}}}},bJn={class:"form-group form-floating mb-4"},kJn=["placeholder"],wJn={for:"title",class:"from-label"},$Jn={key:0,class:"help-block small text-danger"},CJn={key:1,class:"help-block small text-danger"},SJn={class:"d-flex justify-content-center align-items-center w-100 bg-primary-5 p-3 rounded border-2 border-primary-20 border-dashed"},TJn={class:"flex-grow-1"},EJn={class:"text-gray-800 mb-0"},IJn={class:"medium text-gray-700 mb-0"},PJn={id:"tabs",class:"tabs mb-4"},AJn={class:"tabList"},DJn={key:0,class:"notification notification-gray"},xJn={key:2,class:"help-block small text-danger"},OJn={key:3,class:"help-block small text-danger"};function LJn(e,t,n,o,i,r){const s=y("app-icon"),a=y("ImageModifier"),l=y("SidebarBlock"),d=y("AuthorProductGroupProductAddTable"),u=y("AuthorProductGroupProductRemoveTable"),f=y("FormSidebar");return e.auth.check&&(e.auth.badge||e.auth.is_admin)?(h(),W(f,{key:0,id:"author-product-group-create",onSubmit:t[3]||(t[3]=p=>r.submit())},os({title:F(()=>[z(m(e.$t("author_product_group.create.title")),1)]),"submit-button":F(()=>[z(m(e.$t("public.create")),1)]),_:2},[e.group.id?{name:"content",fn:F(()=>[b(l,{class:"border-bottom pb-5 mb-5",title:e.$t("author_product_group.create.basic")},{default:F(()=>[c("div",bJn,[xe(c("input",{id:"title",name:"title",type:"text",class:J({"form-control":!0,"is-invalid":o.v$.group.title.$error}),autocomplete:"off",placeholder:e.$t("author_product_group.name"),"onUpdate:modelValue":t[0]||(t[0]=p=>o.v$.group.title.$model=p)},null,10,kJn),[[wt,o.v$.group.title.$model]]),c("label",wJn,m(e.$t("author_product_group.name")),1),o.v$.group.title.$error&&o.v$.group.title.required.$invalid?(h(),g("span",$Jn,m(e.$t("validation.filled",{attribute:e.$t("author_product_group.name")})),1)):D("",!0),o.v$.group.title.$error&&o.v$.group.title.maxLength.$invalid?(h(),g("span",CJn,m(e.$t("validation.max.string",{attribute:e.$t("author_product_group.name"),max:30})),1)):D("",!0)]),b(a,{image:e.group.cover_img,"max-size":5242880,"crop-ratio":2.609375,"upload-route":e.ziggyRoute("api.author.product_group.image.upload",{group:e.group.id}),"delete-route":e.ziggyRoute("api.author.product_group.image.delete",{group:e.group.id}),onUploaded:r.reloadImage,onDeleted:r.reloadImage,"action-on-hover":"","delete-sidebar":!1},{default:F(()=>[c("div",SJn,[b(s,{icon:"upload",height:"20",width:"20",class:"me-3"}),c("div",TJn,[c("p",EJn,m(e.$t("public.image.insert")),1),c("p",IJn,m(e.$t("public.image.format")),1)])])]),_:1},8,["image","upload-route","delete-route","onUploaded","onDeleted"])]),_:1},8,["title"]),b(l,{title:e.$t("author_product_group.create.product.choose")},{default:F(()=>[c("div",PJn,[c("ul",AJn,[c("li",{onClick:t[1]||(t[1]=p=>i.activeTab="product-add"),class:J([i.activeTab==="product-add"?"active":""])},m(e.$t("administration.content.section.create.product.add")),3),c("li",{onClick:t[2]||(t[2]=p=>i.activeTab="product-remove"),class:J([i.activeTab==="product-remove"?"active":""])},[z(m(e.$t("administration.content.section.create.product.added"))+" ",1),e.group.products.length?(h(),g("span",DJn,m(e.group.products.length),1)):D("",!0)],2)])]),i.activeTab==="product-add"?(h(),W(d,{key:0})):i.activeTab==="product-remove"?(h(),W(u,{key:1})):D("",!0),o.v$.group.products.$error&&o.v$.group.products.required.$invalid?(h(),g("span",xJn,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0),o.v$.group.products.$error&&o.v$.group.products.minLength.$invalid?(h(),g("span",OJn,m(e.$t("validation.max.array",{attribute:e.$t("public.array"),min:1})),1)):D("",!0)]),_:1},8,["title"])]),key:"0"}:void 0]),1024)):D("",!0)}const MJn=U(yJn,[["render",LJn]]),NJn={components:{FormSidebar:_n,SidebarBlock:rb,ImageModifier:Q3,AuthorProductGroupProductAddTable:ade,AuthorProductGroupProductRemoveTable:lde},data(){return{activeTab:"product-add"}},computed:{...Oe({auth:"auth/auth",group:"authorProductGroup/getDetail"})},methods:{submit(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("authorProductGroup/update",{id:this.group.id,group:this.group})},reloadImage(){this.$store.dispatch("authorProductGroup/show",{id:this.group.id,imageReload:!0})},close(){this.$store.commit("authorProductGroup/resetDetail"),this.$store.commit("authorProductGroup/resetProducts"),this.$store.commit("authorProductGroup/resetProductsAdded"),this.activeTab="product-add"}},validations:{group:{title:{required:Yt,maxLength:hi(30)},cover_img:{},products:{required:Yt,minLength:Ua(1)}}},setup(){return{v$:Pn()}},watch:{"group.product_order_by":{handler(){this.group&&this.group.product_order_by&&this.$store.dispatch("authorProductGroup/update",{id:this.group.id,group:this.group,silent:!0}).then(()=>{this.$store.commit("authorProductGroup/resetProductsAdded"),this.$store.dispatch("authorProductGroup/productsAdded")})}}}},RJn={class:"form-group form-floating mb-4"},jJn=["placeholder"],FJn={for:"title",class:"from-label"},zJn={key:0,class:"help-block small text-danger"},UJn={key:1,class:"help-block small text-danger"},BJn={class:"d-flex justify-content-center align-items-center w-100 bg-primary-5 p-3 rounded border-2 border-primary-20 border-dashed"},HJn={class:"flex-grow-1"},VJn={class:"text-gray-800 mb-0"},qJn={class:"medium text-gray-700 mb-0"},YJn={id:"tabs",class:"tabs mb-4"},WJn={class:"tabList"},GJn={key:0,class:"notification notification-gray"},ZJn={key:2,class:"help-block small text-danger"},KJn={key:3,class:"help-block small text-danger"};function JJn(e,t,n,o,i,r){const s=y("app-icon"),a=y("ImageModifier"),l=y("SidebarBlock"),d=y("AuthorProductGroupProductAddTable"),u=y("AuthorProductGroupProductRemoveTable"),f=y("FormSidebar");return e.auth.check&&(e.auth.badge||e.auth.is_admin)?(h(),W(f,{key:0,id:"author-product-group-update",onSubmit:t[3]||(t[3]=p=>r.submit()),onClose:t[4]||(t[4]=p=>r.close())},os({title:F(()=>[z(m(e.$t("author_product_group.update.title")),1)]),"submit-button":F(()=>[z(m(e.$t("public.update")),1)]),_:2},[e.group.id?{name:"content",fn:F(()=>[b(l,{class:"border-bottom pb-5 mb-5",title:e.$t("author_product_group.create.basic")},{default:F(()=>[c("div",RJn,[xe(c("input",{id:"title",class:J({"form-control":!0,"is-invalid":o.v$.group.title.$error}),autocomplete:"off",placeholder:e.$t("author_product_group.name"),type:"text",name:"title","onUpdate:modelValue":t[0]||(t[0]=p=>o.v$.group.title.$model=p)},null,10,jJn),[[wt,o.v$.group.title.$model]]),c("label",FJn,m(e.$t("author_product_group.name")),1),o.v$.group.title.$error&&o.v$.group.title.required.$invalid?(h(),g("span",zJn,m(e.$t("validation.filled",{attribute:e.$t("author_product_group.name")})),1)):D("",!0),o.v$.group.title.$error&&o.v$.group.title.maxLength.$invalid?(h(),g("span",UJn,m(e.$t("validation.max.string",{attribute:e.$t("author_product_group.name"),max:30})),1)):D("",!0)]),b(a,{image:e.group.cover_img,"max-size":5242880,"crop-ratio":2.609375,"upload-route":e.ziggyRoute("api.author.product_group.image.upload",{group:e.group.id}),"delete-route":e.ziggyRoute("api.author.product_group.image.delete",{group:e.group.id}),onUploaded:r.reloadImage,onDeleted:r.reloadImage,"action-on-hover":"","delete-sidebar":!1},{default:F(()=>[c("div",BJn,[b(s,{icon:"upload",height:"20",width:"20",class:"me-4"}),c("div",HJn,[c("p",VJn,m(e.$t("public.image.insert")),1),c("p",qJn,m(e.$t("public.image.format")),1)])])]),_:1},8,["image","upload-route","delete-route","onUploaded","onDeleted"])]),_:1},8,["title"]),b(l,{title:e.$t("author_product_group.create.product.choose")},{default:F(()=>[c("div",YJn,[c("ul",WJn,[c("li",{onClick:t[1]||(t[1]=p=>i.activeTab="product-add"),class:J([i.activeTab==="product-add"?"active":""])},m(e.$t("administration.content.section.create.product.add")),3),c("li",{onClick:t[2]||(t[2]=p=>i.activeTab="product-remove"),class:J([i.activeTab==="product-remove"?"active":""])},[z(m(e.$t("administration.content.section.create.product.added"))+" ",1),e.group.products.length?(h(),g("span",GJn,m(e.group.products.length),1)):D("",!0)],2)])]),i.activeTab==="product-add"?(h(),W(d,{key:0})):i.activeTab==="product-remove"?(h(),W(u,{key:1})):D("",!0),o.v$.group.products.$error&&!o.v$.group.products.required?(h(),g("span",ZJn,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0),o.v$.group.products.$error&&!o.v$.group.products.minLength?(h(),g("span",KJn,m(e.$t("validation.max.array",{attribute:e.$t("public.array"),min:1})),1)):D("",!0)]),_:1},8,["title"])]),key:"0"}:void 0]),1024)):D("",!0)}const XJn=U(NJn,[["render",JJn]]),QJn={components:{FormSidebar:_n},computed:{...Oe({auth:"auth/auth",data:"sidebar/getData"})},methods:{deletee(){this.$store.dispatch("authorProductGroup/delete",{id:this.data.group.id})}}};function eXn(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.check&&(e.auth.badge||e.auth.is_admin)?(h(),W(s,{key:0,id:"author-product-group-delete",onSubmit:r.deletee,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("author_product_group.delete.title")),1)]),subtitle:F(()=>[z(m(e.data.group.title),1)]),"submit-button":F(()=>[z(m(e.$t("public.delete")),1)]),content:F(()=>[z(m(e.$t("author_product_group.delete.text")),1)]),_:1},8,["onSubmit"])):D("",!0)}const tXn=U(QJn,[["render",eXn]]),nXn={components:{FormSidebar:_n},methods:{deletee(){this.$store.dispatch("authorPromoProduct/delete")}}};function oXn(e,t,n,o,i,r){const s=y("FormSidebar");return h(),W(s,{id:"author-promo-product-delete",onSubmit:r.deletee,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("dashboard.author.settings.promo_material.delete.title")),1)]),"submit-button":F(()=>[z(m(e.$t("public.remove")),1)]),content:F(()=>[z(m(e.$t("dashboard.author.settings.promo_material.delete.text")),1)]),_:1},8,["onSubmit"])}const iXn=U(nXn,[["render",oXn]]),rXn={components:{FormSidebar:_n},computed:{...Oe({complaint:"sidebar/getData",auth:"auth/auth"})}},sXn={class:"row"},aXn={class:"col-12 col-md-6 mb-4"},lXn={class:"medium text-gray-600 mb-0"},cXn={class:"mb-0"},dXn={class:"col-12 col-md-6 mb-4"},uXn={class:"mb-0 medium text-gray-600"},hXn={class:"mb-0"},fXn={key:0},mXn={href:"' . ziggyRoute('user.dashboard.messages') . '",title:"OtevĹ™Ăt zprávy"},pXn={key:1},gXn={key:2},vXn={key:0,class:"col-12 col-md-6 mb-4"},_Xn={class:"text-gray-600 mb-0 medium"},yXn={class:"mb-0"},bXn={class:"col-12"},kXn={class:"mb-0 medium text-gray-600"},wXn={class:"medium mb-0"},$Xn=["innerHTML"];function CXn(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.check?(h(),W(s,{key:0,id:"complaint-show"},os({title:F(()=>[z(m(e.$t("complaints.detail")),1)]),content:F(()=>[c("div",sXn,[c("div",aXn,[c("p",lXn,m(e.$t("complaints.reason_of_complaint")),1),c("p",cXn,m(e.complaint.type?e.$tm("complaints.types")[e.complaint.type].short:e.$t("public.dash")),1)]),c("div",dXn,[c("p",uXn,m(e.$t("complaints.state")),1),c("p",hXn,[e.complaint.state=="waiting_customer"?(h(),g("span",fXn,[c("a",mXn,m(e.$t("complaints.customer_states.waiting_customer")),1)])):e.complaint.state?(h(),g("span",pXn,m(e.$tm("complaints.customer_states")[e.complaint.state]),1)):(h(),g("span",gXn,m(e.$t("public.dash")),1))])]),e.complaint.isAuthor?D("",!0):(h(),g("div",vXn,[c("p",_Xn,m(e.$t("complaints.note.title")),1),c("p",yXn,m(e.complaint.text?e.complaint.text:e.$t("public.dash")),1)])),e.complaint.isAuthor?(h(),g(pe,{key:1},[c("div",bXn,[c("p",kXn,m(e.$t("public.ucitelnice_note")),1)]),(h(!0),g(pe,null,Me(e.complaint.logs,a=>(h(),g("div",{key:a.id,class:"col-12 col-md-6 mb-4"},[a.note&&a.note.length>0?(h(),g(pe,{key:0},[c("p",wXn,m(a.created_at),1),c("p",{class:"mb-0",innerHTML:a.note},null,8,$Xn)],64)):D("",!0)]))),128))],64)):D("",!0)])]),_:2},[e.complaint.title?{name:"subtitle",fn:F(()=>[z(m(e.complaint.title),1)]),key:"0"}:void 0]),1024)):D("",!0)}const SXn=U(rXn,[["render",CXn]]),TXn={methods:{ziggyRoute:Pe},components:{FormSidebar:_n},computed:{...Oe({product:"sidebar/getData",auth:"auth/auth"}),productStatusString(){return this.product.status===2?"revision":"not_approved"}}},EXn=["innerHTML"],IXn=["href"],PXn=["innerHTML"],AXn={key:0},DXn={class:"fw-bold mb-2"},xXn=["innerHTML"],OXn={class:"fw-bold mb-2"},LXn=["innerHTML"],MXn={key:0,class:"mt-5 border-start-4-primary mx-1dot3125rem"},NXn=["innerHTML"];function RXn(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.badge?(h(),W(s,{key:0,id:"product-revision-show"},{title:F(()=>[z(m(e.$tm("product.revision_modal")[r.productStatusString].title),1)]),subtitle:F(()=>[z(m(e.product.title),1)]),content:F(()=>[c("span",{innerHTML:e.$t("product.revision_modal.info.0")},null,8,EXn),c("a",{href:r.ziggyRoute("product.show",e.product.id)},m(e.product.title),9,IXn),c("span",{innerHTML:e.$t("product.revision_modal.info.1")},null,8,PXn),e.product.revision.reasons&&e.product.revision.reasons.length>0?(h(),g("div",AXn,[(h(!0),g(pe,null,Me(e.product.revision.reasons,(a,l)=>(h(),g("div",{key:l},[a.type?(h(),g(pe,{key:0},[c("p",DXn,m(e.$tm("email.admin_product_feedback.reasons")[a.type].headline),1),c("ul",null,[(h(!0),g(pe,null,Me(e.$tm("email.admin_product_feedback.reasons")[a.type].text,(d,u)=>(h(),g("li",{key:u},[c("span",{innerHTML:e.$tm("email.admin_product_feedback.reasons",{product_name:e.product.title,product_link:r.ziggyRoute("product.show",{id:e.product.id})})[a.type].text[u]},null,8,xXn)]))),128))])],64)):a.custom_title&&a.custom_text?(h(),g(pe,{key:1},[c("p",OXn,m(a.custom_title),1),c("ul",null,[c("li",{innerHTML:a.custom_text},null,8,LXn)])],64)):D("",!0)]))),128)),e.product.revision.admin_personal_note?(h(),g("div",MXn,[c("div",{class:"p-3 text-black bg-primary-5",innerHTML:e.product.revision.admin_personal_note},null,8,NXn)])):D("",!0)])):D("",!0)]),_:1})):D("",!0)}const jXn=U(TXn,[["render",RXn]]),FXn={components:{FormSidebar:_n},data(){return{deleted_reason:"",error:""}},computed:{...Oe({product:"sidebar/getData",auth:"auth/auth"})},methods:{deletee(){this.error="",this.deleted_reason?(this.$store.commit("sidebar/setLoading",!0),Og.deletee(this.product.id,this.deleted_reason).then(e=>{this.$store.dispatch("sidebar/close"),window.flash(e.data,"success"),setTimeout(()=>{location.href=this.ziggyRoute("dashboard.products")},1e3)}).catch(e=>{this.$store.commit("sidebar/setLoading",!1),e.response.status===400?this.error=e.response.data:this.error=this.$t("public.unknown_error"),window.flash(this.error,"error")})):this.error=this.$t("validation.custom.reason.required")}}},zXn={class:"mb-4"},UXn={class:"form-group form-floating"},BXn={for:"reason",class:"form-label"},HXn=["placeholder"],VXn={key:0,class:"text-danger"};function qXn(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.check?(h(),W(s,{key:0,id:"product-delete",onSubmit:r.deletee,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("product.delete_title")),1)]),subtitle:F(()=>[z(m(e.product.title),1)]),"submit-button":F(()=>[z(m(e.$t("product.delete")),1)]),content:F(()=>[c("p",zXn,m(e.$t("product.delete_prompt")+"?"),1),c("div",UXn,[c("label",BXn,m(e.$t("product.delete_reason")),1),xe(c("textarea",{class:"form-control",name:"reason",type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>i.deleted_reason=a),placeholder:e.$t("product.delete_reason_placeholder"),required:"",rows:"3"},null,8,HXn),[[wt,i.deleted_reason]])]),i.error?(h(),g("p",VXn,m(i.error),1)):D("",!0)]),_:1},8,["onSubmit"])):D("",!0)}const YXn=U(FXn,[["render",qXn]]),WXn={components:{FormSidebar:_n},computed:{...Oe({data:"sidebar/getData"})},methods:{remove(){De.delete(this.data.deleteRoute).then(e=>{window.flash(e)}).catch(e=>{window.flash(e)}).finally(()=>{window.eventBus.emit("image-deleted"),this.$store.dispatch("sidebar/close")})}}};function GXn(e,t,n,o,i,r){const s=y("FormSidebar");return h(),W(s,{id:"image-delete",onSubmit:r.remove,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("public.image.remove_title")),1)]),"submit-button":F(()=>[z(m(e.$t("public.remove")),1)]),content:F(()=>[z(m(e.$t("public.image.remove_prompt")),1)]),_:1},8,["onSubmit"])}const ZXn=U(WXn,[["render",GXn]]),KXn={components:{AppIcon:Ue},props:{product:[Object,Number]}},JXn=["href"],XXn=["src","alt"],QXn={class:"flex-grow-1"},eQn={class:"medium mb-0"},tQn=["href"];function nQn(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return h(),g("a",{href:e.ziggyRoute("product.show",this.product.id),class:"d-flex align-items-center link-dark p-2 bg-primary-5-hover cursor-pointer"},[c("img",{src:n.product.cover_img_thumbnail,alt:n.product.title,height:"32",width:"32",class:"rounded border object-fit-cover me-3"},null,8,XXn),c("div",QXn,[c("p",eQn,m(n.product.title),1)]),xe((h(),g("a",{href:e.ziggyRoute("product.edit",{product:this.product.id,update:!0}),class:"btn btn-sm btn-tertiary btn-center"},[b(s,{icon:"edit"})],8,tQn)),[[a,{content:e.$t("public.update"),delay:{show:500,hide:100},triggers:["click","hover"]}]])],8,JXn)}const oQn=U(KXn,[["render",nQn]]),iQn={components:{FormSidebar:_n,AuthorProductUpdateBox:oQn,Bootstrap5Pagination:Ri,Loading:Rt},data(){return{primaryColor:window.primaryColor,loading:!1,filters:{page:1,perPage:10,exclusive:!0},list:{data:[],current_page:1,last_page:1,per_page:1,total:1}}},methods:{load(){this.loading=!0,sk.productsExclusive(this.filters).then(e=>{this.list=e.data,this.loading=!1}).catch(()=>{this.loading=!1})},setPage(e){this.filters.page=e},setPageAndLoad(e){this.setPage(e),this.load()}},mounted(){this.load()}},rQn={class:"d-flex align-items-center"},sQn={key:0,class:"vl-parent mh-8"},aQn={key:1,class:"text-center text-gray-600"},lQn={key:2,class:"bg-white border border-primary-20 border-2 border-radius-4px"};function cQn(e,t,n,o,i,r){const s=y("app-icon"),a=y("Loading"),l=y("AuthorProductUpdateBox"),d=y("Bootstrap5Pagination"),u=y("FormSidebar");return h(),W(u,{id:"product-exclusive-list"},{title:F(()=>[c("div",rQn,[b(s,{icon:"diamond",height:"24",width:"24",class:"text-purple me-icon"}),z(" "+m(e.$t("author.products.exclusive")),1)])]),content:F(()=>[i.loading?(h(),g("div",sQn,[b(a,{active:i.loading,"onUpdate:active":t[0]||(t[0]=f=>i.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):i.list.data.length?(h(),g("div",lQn,[(h(!0),g(pe,null,Me(i.list.data,(f,p)=>(h(),g("div",{key:p},[b(l,{class:J(["border-bottom border-primary-20",{"border-none":p==i.list.data.length-1}]),product:f},null,8,["class","product"])]))),128))])):(h(),g("div",aQn,m(e.$t("product.not_found.title")),1)),i.loading?D("",!0):(h(),W(d,{key:3,class:"mt-4 z-index-neg-1",data:i.list,onPaginationChangePage:r.setPageAndLoad,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))]),_:1})}const dQn=U(iQn,[["render",cQn]]),uQn={components:{FormSidebar:_n},computed:{...sn({discount:e=>e.sidebar.data}),...Oe({auth:"auth/auth"})},methods:{deletee(){this.discount.type=="automatic"?this.$store.dispatch("authorDiscountAutomatic/delete"):this.$store.dispatch("authorDiscountIndividual/delete",this.discount.id),this.$store.dispatch("sidebar/close")}}};function hQn(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_author?(h(),W(s,{key:0,id:"author-discount-delete",onSubmit:r.deletee,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("discount.delete.title")),1)]),"submit-button":F(()=>[z(m(e.$t("public.delete")),1)]),content:F(()=>[z(m(e.$t("discount.delete.query")),1)]),_:1},8,["onSubmit"])):D("",!0)}const fQn=U(uQn,[["render",hQn]]),mQn={components:{FormSidebar:_n},computed:{...sn({discount:e=>e.sidebar.data}),...Oe({auth:"auth/auth"})},methods:{deactivate(){this.discount.type=="automatic"?this.$store.dispatch("authorDiscountAutomatic/deactivate"):this.$store.dispatch("authorDiscountIndividual/deactivate",this.discount.id),this.$store.dispatch("sidebar/close")}}};function pQn(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_author?(h(),W(s,{key:0,id:"author-discount-deactivate",onSubmit:r.deactivate,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("discount.deactivate.title")),1)]),"submit-button":F(()=>[z(m(e.$t("public.terminate")),1)]),content:F(()=>[z(m(e.$t("discount.deactivate.query")),1)]),_:1},8,["onSubmit"])):D("",!0)}const gQn=U(mQn,[["render",pQn]]),vQn={components:{FormSidebar:_n},computed:{...Oe({user:"sidebar/getData",auth:"auth/auth"})},methods:{leave(){this.$store.commit("sidebar/setLoading",!0),tg.leave().then(e=>{this.$store.dispatch("sidebar/close"),window.flash(e.data.message,"success"),setTimeout(()=>{window.location.href=this.ziggyRoute("user.dashboard.settings.profile")},1e3)}).catch(e=>{this.$store.commit("sidebar/setLoading",!1),window.flash(e.response.data.message,"error")})}}},_Qn={class:"mb-0"};function yQn(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.check?(h(),W(s,{key:0,id:"school-leave",onSubmit:r.leave,"submit-color":"danger"},os({title:F(()=>[z(m(e.$t("dashboard.user.settings.school.leave.modal.title")),1)]),"submit-button":F(()=>[z(m(e.$t("dashboard.user.settings.school.leave.modal.button")),1)]),content:F(()=>[c("p",_Qn,m(e.$t("dashboard.user.settings.school.leave.modal.text")),1)]),_:2},[e.user&&e.user.school?{name:"subtitle",fn:F(()=>[z(m(e.user.school.long_name),1)]),key:"0"}:void 0]),1032,["onSubmit"])):D("",!0)}const bQn=U(vQn,[["render",yQn]]),kQn={components:{FormSidebar:_n,AppIcon:Ue},computed:{...Oe({school:"sidebar/getData",auth:"auth/auth"})},data(){return{clipboardTooltip:null}},methods:{copyInviteLinkToClipboard(){let e=this.$refs["school-invite-body"],t=window.location.origin+"/inv/"+this.school.invitation_code;this.$copyText(t,e),this.clipboardTooltip=this.$t("clipboard.copied"),setTimeout(()=>{this.clipboardTooltip=null},2e3)}}},wQn={key:0,ref:"school-invite-body"},$Qn={class:"mb-5"},CQn={class:"d-flex align-items-center text-primary bg-secondary rounded p-2dot5"},SQn={class:"flex-grow-1"};function TQn(e,t,n,o,i,r){const s=y("AppIcon"),a=y("FormSidebar"),l=an("tooltip");return e.auth.is_admin||e.auth.is_school_manager?(h(),W(a,{key:0,id:"school-invite",class:"school-themed-component"},{title:F(()=>[z(m(e.$t("school.employees.invite_modal.title")),1)]),content:F(()=>[e.school.invitation_code?(h(),g("div",wQn,[c("p",$Qn,[z(m(e.$t("school.employees.invite_modal.text.0"))+" ",1),t[1]||(t[1]=c("br",null,null,-1)),t[2]||(t[2]=c("br",null,null,-1)),z(" "+m(e.$t("school.employees.invite_modal.text.1")),1)]),xe((h(),g("a",{onClick:t[0]||(t[0]=Gt((...d)=>r.copyInviteLinkToClipboard&&r.copyInviteLinkToClipboard(...d),["prevent"])),class:"cursor-pointer"},[c("div",CQn,[c("span",SQn,m(e.ziggyRoute("school.invite",{code:e.school.invitation_code})),1),i.clipboardTooltip?D("",!0):(h(),W(s,{key:0,icon:"copy"})),i.clipboardTooltip==e.$t("clipboard.copied")?(h(),W(s,{key:1,icon:"check",class:"text-success",color:"success"})):D("",!0),i.clipboardTooltip==e.$t("clipboard.failed")?(h(),W(s,{key:2,icon:"close",class:"text-danger"})):D("",!0)])])),[[l,{content:e.$t("school.employees.invite_modal.tooltip"),delay:{show:500,hide:100},triggers:["hover","click"]}]])],512)):D("",!0)]),_:1})):D("",!0)}const EQn=U(kQn,[["render",TQn]]),IQn={components:{FormSidebar:_n},computed:{...Oe({data:"sidebar/getData",auth:"auth/auth"})},methods:{deletee(){this.data.invoice.type==="order"?this.$store.dispatch("schoolOrder/delete",{order:this.data.invoice}):this.$store.dispatch("schoolCreditOrder/delete",{creditOrder:this.data.invoice})}}};function PQn(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_school_manager||e.auth.is_admin?(h(),W(s,{key:0,id:"school-invoice-delete",onSubmit:r.deletee,"submit-color":"danger",class:"school-themed-component"},{title:F(()=>[z(m(e.$t("order.delete.title")),1)]),subtitle:F(()=>[z(m(e.data.invoice.number),1)]),"submit-button":F(()=>[z(m(e.$t("school.manager.tabs.finances.invoices.table.delete")),1)]),content:F(()=>[z(m(e.$t("order.delete.question")),1)]),_:1},8,["onSubmit"])):D("",!0)}const AQn=U(IQn,[["render",PQn]]),DQn={components:{FormSidebar:_n},props:{isAdminApp:{type:Boolean,default:!1}},computed:{...Oe({data:"sidebar/getData",auth:"auth/auth"})},methods:{remove(){this.isAdminApp?this.$store.dispatch("administrationSchoolEmployee/delete",{employee:this.data.employee,filters:Mi.getFilters(this.$route.query)}):this.$store.dispatch("schoolEmployee/delete",{employee:this.data.employee})}}},xQn={class:"mb-0"};function OQn(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin||e.auth.is_school_manager?(h(),W(s,{key:0,id:"school-employee-delete",class:J({"school-themed-component":!n.isAdminApp}),"submit-color":"danger",onSubmit:r.remove},{title:F(()=>[z(m(e.$t("school.employees.remove_modal.title")),1)]),subtitle:F(()=>[z(m(e.data.employee.first_name+" "+e.data.employee.last_name),1)]),"submit-button":F(()=>[z(m(e.$t("school.employees.remove_modal.remove")),1)]),content:F(()=>[c("p",xQn,m(e.$t("school.employees.remove_modal.text")),1)]),_:1},8,["class","onSubmit"])):D("",!0)}const cde=U(DQn,[["render",OQn]]),LQn={components:{FormSidebar:_n},props:{isAdminApp:{type:Boolean,default:!1}},data(){return{amount:0}},validations(){return{amount:{required:Yt,minValue:Ra(0),maxValue:Vd(this.budgetWithEmployee)}}},computed:{...Oe({data:"sidebar/getData",auth:"auth/auth"}),budgetWithEmployee(){return this.data.schoolBudgetToDivide==this.data.employee.budget?this.data.schoolBudgetToDivide:this.data.schoolBudgetToDivide+this.data.employee.budget},budgetLeft(){return Math.max(this.budgetWithEmployee-this.amount,0)},disabled(){return this.v$.$invalid}},methods:{update(){this.v$.$touch(),!this.v$.$invalid&&(this.isAdminApp?this.$store.dispatch("administrationSchoolEmployee/creditUpdate",{employee:this.data.employee,amount:this.amount}):this.$store.dispatch("schoolEmployee/creditUpdate",{employee:this.data.employee,amount:this.amount}))},load(){let e=Number(this.data.employee.budget);this.amount=Math.max(e,0)}},mounted(){this.load()},watch:{data:{deep:!0,handler(){this.load()}}},setup(){return{v$:Pn()}}},MQn={key:0,class:"text-gray-800 mb-5"},NQn={class:"form-group form-floating"},RQn={for:"amount",class:"form-label medium text-gray-800"},jQn={key:0,class:"invalid-feedback"},FQn={key:1,class:"invalid-feedback"},zQn={key:2,class:"invalid-feedback"},UQn={key:1,class:"small text-gray-600 mb-0"};function BQn(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin||e.auth.is_school_manager?(h(),W(s,{key:0,id:"school-employee-credit-update",class:J({"school-themed-component":!n.isAdminApp}),onSubmit:r.update,"submit-disabled":r.disabled},{title:F(()=>[z(m(e.$t("school.employees.budget_modal.update.title")),1)]),subtitle:F(()=>[z(m(e.data.employee.first_name+" "+e.data.employee.last_name),1)]),"submit-button":F(()=>[z(m(e.$t("school.employees.table.buttons.update")),1)]),content:F(()=>[n.isAdminApp?D("",!0):(h(),g("p",MQn,m(e.$t("school.employees.budget_modal.update.text")),1)),c("div",NQn,[xe(c("input",{"onUpdate:modelValue":t[0]||(t[0]=a=>o.v$.amount.$model=a),name:"amount",id:"amount-employee-budget",type:"number",class:J({"form-control":!0,"is-invalid":o.v$.amount.$error}),min:"0",step:"100"},null,2),[[wt,o.v$.amount.$model]]),c("label",RQn,m(e.$t("school.employees.budget_modal.update.label")),1),o.v$.amount.$error&&o.v$.amount.required.$invalid?(h(),g("span",jQn,m(e.$t("validation.custom.employee_budget_amount.required")),1)):D("",!0),o.v$.amount.$error&&o.v$.amount.minValue.$invalid?(h(),g("span",FQn,m(e.$t("validation.custom.employee_budget_amount.min")),1)):D("",!0),o.v$.amount.$error&&o.v$.amount.maxValue.$invalid?(h(),g("span",zQn,m(e.$t("validation.custom.employee_budget_amount.max_update",{budget:r.budgetWithEmployee})),1)):D("",!0)]),i.amount?(h(),g("p",UQn,m(r.budgetLeft+" "+e.$t("currency.short")+" "+e.$t("school.employees.budget_modal.left")),1)):D("",!0)]),_:1},8,["class","onSubmit","submit-disabled"])):D("",!0)}const dde=U(LQn,[["render",BQn]]),HQn={components:{ContactPhoneEmail:Xle,SchoolInvoicePaymentRequest:tce,TransitionCollapseHeight:qo,FormSidebar:_n},computed:{...Oe({auth:"auth/auth",data:"sidebar/getData"}),disabled(){return!!this.v$.$error||this.loading}},data(){return{amount:null,loading:!1,discountLoading:!1,discountOpened:!1,discountCode:null,discountAmount:-1,creditOrder:null,showMore:!1,creditMinAmount:X5.budget.min_value,showDiscount:X5.showAddBudgetDiscount}},validations(){return{amount:{required:Yt,minValue:Ra(this.creditMinAmount)},discountCode:{}}},methods:{submit(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("schoolCreditOrder/place",{amount:this.amount,discountCode:this.discountCode&&this.discountAmount>0?this.discountCode:null}).then(e=>{this.creditOrder=e.data.credit_order})},submitDiscount(){if(!this.discountCode){this.discountAmount=null;return}this.discountLoading=!0,aA.discountValidate(this.discountCode).then(e=>{this.discountAmount=e.data.discount_amount}).catch(()=>{this.discountAmount=null}).finally(()=>{this.discountLoading=!1})},reset(){this.amount=null,this.loading=!1,this.discountLoading=!1,this.discountOpened=!1,this.discountCode=null,this.discountAmount=-1,this.creditOrder=null,this.showMore=!1,this.v$.$reset();const{["open-increase-sidebar"]:e,...t}=this.$route.query;this.$router.replace({query:t})},openFromRouteHandler(){this.data.school&&this.auth.id&&"open-increase-sidebar"in this.$route.query&&this.$store.dispatch("sidebar/open",{type:"school-credit-order-create",data:{school:this.data.school}})}},setup(){return{v$:Pn()}},mounted(){this.openFromRouteHandler(),ai.specialUrlPageView("pageview-school-credit-order-create")}},VQn={key:1},qQn={class:"text-gray-800 mb-3"},YQn={class:"text-gray-700 mb-3 medium"},WQn={class:"form-group form-floating mb-3"},GQn=["placeholder"],ZQn={for:"amount",class:"form-label medium text-gray-800"},KQn={key:0,class:"invalid-feedback"},JQn={key:1,class:"invalid-feedback"},XQn={key:0,class:"row mb-3"},QQn={class:"col-8"},eeo={class:"form-group form-floating"},teo={for:"discount_code",class:"form-label medium text-gray-800"},neo={class:"col"},oeo=["disabled"],ieo={key:1},reo=["innerHTML"],seo={key:1,class:"invalid-feedback-custom"},aeo={class:"text-end"},leo=["disabled"],ceo=["disabled"],deo={class:"mb-5 text-gray-800"},ueo={class:"mb-3 text-gray-800"},heo={class:"medium mb-3"},feo={key:0},meo={class:"d-flex align-items-center medium mb-3"},peo={class:"d-flex align-items-center medium mb-3"},geo={class:"d-flex align-items-center medium"};function veo(e,t,n,o,i,r){const s=y("SchoolInvoicePaymentRequest"),a=y("app-icon"),l=y("TransitionCollapseHeight"),d=y("ContactPhoneEmail"),u=y("FormSidebar");return e.auth.is_admin||e.auth.is_school_manager?(h(),W(u,{key:0,id:"school-credit-order-create",class:"school-themed-component",onClose:r.reset},{title:F(()=>[z(m(e.$t("school.manager.tabs.finances.credit_order.title")),1)]),content:F(()=>[b(l,null,{default:F(()=>[i.creditOrder?(h(),W(s,{key:0,invoice:i.creditOrder,"show-icon":"","show-close":"",onClose:r.reset},null,8,["invoice","onClose"])):(h(),g("div",VQn,[c("h5",qQn,m(e.$t("school.manager.tabs.finances.credit_order.proforma.title")),1),c("div",YQn,m(e.$t("school.manager.tabs.finances.credit_order.proforma.text")),1),c("div",WQn,[xe(c("input",{"onUpdate:modelValue":t[0]||(t[0]=f=>o.v$.amount.$model=f),name:"amount",id:"amount-employee-budget",type:"number",class:J({"form-control":!0,"is-invalid":o.v$.amount.$error}),min:"1",step:"1",placeholder:e.$t("school.manager.tabs.finances.credit_order.input.placeholder")},null,10,GQn),[[wt,o.v$.amount.$model]]),c("label",ZQn,m(e.$t("school.manager.tabs.finances.credit_order.input.label")),1),o.v$.amount.$error&&o.v$.amount.required.$invalid?(h(),g("span",KQn,m(e.$t("validation.custom.budget_amount.required")),1)):D("",!0),o.v$.amount.$error&&o.v$.amount.minValue.$invalid?(h(),g("span",JQn,m(e.$t("validation.custom.budget_amount.min",{min:i.creditMinAmount})),1)):D("",!0)]),i.showDiscount?(h(),W(l,{key:0},{default:F(()=>[i.discountOpened?(h(),g("div",XQn,[c("div",QQn,[c("div",eeo,[xe(c("input",{"onUpdate:modelValue":t[1]||(t[1]=f=>o.v$.discountCode.$model=f),name:"discount_code",id:"school-budget-discount-code",class:J({"form-control":!0,"is-invalid":o.v$.discountCode.$error||i.discountAmount===null})},null,2),[[wt,o.v$.discountCode.$model]]),c("label",teo,m(e.$t("school.manager.tabs.finances.credit_order.discount.label")),1)])]),c("div",neo,[c("button",{class:"btn btn-secondary w-100 border-radius-5px",disabled:i.loading||i.discountLoading,onClick:t[2]||(t[2]=(...f)=>r.submitDiscount&&r.submitDiscount(...f))},[i.discountLoading?(h(),W(a,{key:0,icon:"cog",height:"24",width:"24",class:"me-2",spin:!0})):(h(),g("span",ieo,m(e.$t("school.manager.tabs.finances.credit_order.discount.submit")),1))],8,oeo)]),i.discountAmount>-1?(h(),g(pe,{key:0},[i.discountAmount&&i.discountAmount>0?(h(),g("span",{key:0,class:"text-success",innerHTML:e.$t("school.manager.tabs.finances.credit_order.discount.success_text",{amount:i.discountAmount})},null,8,reo)):(h(),g("span",seo,m(e.$t("school.manager.tabs.finances.credit_order.discount.error_text")),1))],64)):D("",!0)])):D("",!0)]),_:1})):D("",!0),c("div",aeo,[i.showDiscount?(h(),g(pe,{key:0},[i.discountOpened?D("",!0):(h(),g("button",{key:0,class:"btn btn-tertiary btn-sm me-3 mb-lg-0 mb-3",disabled:r.disabled,onClick:t[3]||(t[3]=f=>i.discountOpened=!0)},m(e.$t("school.manager.tabs.finances.credit_order.discount.have")),9,leo))],64)):D("",!0),c("button",{class:"btn btn-primary",disabled:r.disabled,onClick:t[4]||(t[4]=(...f)=>r.submit&&r.submit(...f))},[i.loading?(h(),W(a,{key:0,icon:"cog",height:"24",width:"24",class:"me-2",spin:!0})):D("",!0),z(" "+m(e.$t("school.manager.tabs.finances.credit_order.submit")),1)],8,ceo)])]))]),_:1}),t[6]||(t[6]=c("hr",null,null,-1)),c("h5",deo,m(e.$t("school.manager.tabs.finances.credit_order.question")),1),b(d),t[7]||(t[7]=c("hr",null,null,-1)),c("h5",ueo,m(e.$t("school.manager.tabs.finances.credit_order.how_it_works.title")),1),c("div",heo,m(e.$t("school.manager.tabs.finances.credit_order.how_it_works.text.0")),1),b(l,null,{default:F(()=>[i.showMore?(h(),g("div",feo,[c("div",meo,[b(a,{height:"24",width:"24",icon:"document",class:"me-2 text-primary"}),z(" "+m(e.$t("school.manager.tabs.finances.credit_order.how_it_works.text.1")),1)]),c("div",peo,[b(a,{height:"24",width:"24",icon:"date",class:"me-2 text-primary"}),z(" "+m(e.$t("school.manager.tabs.finances.credit_order.how_it_works.text.2")),1)]),c("div",geo,[b(a,{height:"24",width:"24",icon:"payoff",class:"me-2 text-primary"}),z(" "+m(e.$t("school.manager.tabs.finances.credit_order.how_it_works.text.3")),1)])])):D("",!0)]),_:1}),i.showMore?D("",!0):(h(),g("button",{key:0,class:"btn btn-link p-0 btn-sm mt-3",onClick:t[5]||(t[5]=f=>i.showMore=!0)},m(e.$t("school.manager.tabs.finances.credit_order.how_it_works.show_more")),1))]),_:1},8,["onClose"])):D("",!0)}const _eo=U(HQn,[["render",veo]]),yeo={components:{FormSidebar:_n},computed:{...Oe({auth:"auth/auth",data:"sidebar/getData",loading:"school/getLoadingAccountingEmail",school:"school/getDetail"}),disabled(){return!!this.v$.$error||this.loading}},validations(){return{email:{email:Rf}}},data(){return{email:null}},methods:{reset(){this.email=this.school.accounting_email,this.v$.$reset()},submit(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("school/accountingEmailUpdate",{accountingEmail:this.email}).then(()=>{this.$store.dispatch("sidebar/close")})},load(){this.email=this.data.school.accounting_email}},mounted(){this.load()},setup(){return{v$:Pn()}}},beo={class:"text-gray-800 mb-2"},keo={class:"text-gray-700 mb-3 medium"},weo={class:"form-floating input-group has-validation"},$eo=["placeholder"],Ceo={for:"accounting_email",class:"form-label"},Seo={key:0,class:"invalid-feedback"};function Teo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin||e.auth.is_school_manager?(h(),W(s,{key:0,id:"school-accounting-email-update",class:"school-themed-component",onClose:r.reset,onSubmit:r.submit,loading:e.loading,"submit-disabled":r.disabled},{title:F(()=>[z(m(e.$t("school.manager.tabs.finances.info.accounting_email.sidebar.title")),1)]),"submit-button":F(()=>[z(m(e.$t("public.save")),1)]),content:F(()=>[c("h5",beo,m(e.$t("school.manager.tabs.finances.info.accounting_email.sidebar.headline")),1),c("div",keo,m(e.$t("school.manager.tabs.finances.info.accounting_email.sidebar.text")),1),c("div",weo,[xe(c("input",{type:"email",class:J({"form-control":!0,"is-invalid":o.v$.email.$error}),id:"accounting_email",name:"accounting_email","onUpdate:modelValue":t[0]||(t[0]=a=>o.v$.email.$model=a),placeholder:e.$t("school.manager.tabs.finances.info.accounting_email.placeholder")+"hospodarka@zsnova.cz"},null,10,$eo),[[wt,o.v$.email.$model]]),c("label",Ceo,m(e.$t("school.manager.tabs.finances.info.accounting_email.label")),1),o.v$.email.$error&&!o.v$.email.email?(h(),g("span",Seo,m(e.$t("validation.custom.email.email")),1)):D("",!0)])]),_:1},8,["onClose","onSubmit","loading","submit-disabled"])):D("",!0)}const Eeo=U(yeo,[["render",Teo]]),Ieo={components:{AppIcon:Ue,TransitionCollapseHeight:qo,SelectedTag:Ose},props:{label:String,placeholder:String,options:Array,index:{type:String,default:"index"},value:{type:String,default:"value"},selected:Array},data(){return{searchInputModel:"",showDropdown:!1,hoverIndex:-1,showScrollBar:!1}},computed:{selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}},optionsSelected(){return this.options.filter(e=>this.selectedModel.includes(e[this.index]))},optionsAvailable(){let e=this.searchInputModel.toLocaleLowerCase();return this.options.filter(t=>!this.optionsSelected.includes(t)&&(t[this.value].toLocaleLowerCase().includes(e)||!e))}},methods:{highlightText(e){if(this.searchInputModel){let t=window._.deburr(this.searchInputModel.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),o=new RegExp(t,"i").exec(window._.deburr(e));if(o){let i=o.index,r=i+o[0].length,s='<span class="fw-bold">'+e.slice(i,r)+"</span>";return e.slice(0,i)+s+e.slice(r,e.length)}}return e},attach(){this.hoverIndex!=-1&&this.optionsAvailable.length&&(this.selectedModel.push(this.optionsAvailable[this.hoverIndex][this.index]),this.searchInputModel="",this.showDropdown=!1)},detach(e){let t=this.selectedModel.indexOf(e[this.index]);t!=-1&&this.selectedModel.splice(t,1)},keyEnterHandler(){this.showDropdown?this.attach():this.showDropdown=!0},keyUpHandler(){this.hoverIndex>0?this.hoverIndex-=1:this.hoverIndex=this.optionsAvailable.length-1},keyDownHandler(){this.optionsAvailable.length&&this.hoverIndex<this.options.length-1?this.hoverIndex+=1:this.hoverIndex=0}},watch:{searchInputModel(){this.optionsAvailable.length&&(this.hoverIndex=0),this.showDropdown=!0},showDropdown(e){e&&this.optionsAvailable.length?this.hoverIndex=0:this.hoverIndex=-1}}},Peo={class:"form-group form-floating"},Aeo=["placeholder"],Deo={class:"position-relative w-100"},xeo={key:0},Oeo=["onMouseover","onMouseleave"],Leo=["innerHTML"],Meo={key:1,class:"px-3 py-2"},Neo={class:"form-label",for:"search"},Reo={class:"mt-2"};function jeo(e,t,n,o,i,r){const s=y("AppIcon"),a=y("TransitionCollapseHeight"),l=y("SelectedTag");return h(),g("div",null,[c("div",Peo,[c("div",{class:"input-group",onFocusout:t[10]||(t[10]=()=>i.showDropdown=!1)},[xe(c("input",{class:"form-control mh-3rem border-end-0",id:"search",name:"search",type:"text",placeholder:n.placeholder,"onUpdate:modelValue":t[0]||(t[0]=d=>i.searchInputModel=d),autocomplete:"off",onKeyup:[t[1]||(t[1]=bs((...d)=>r.keyEnterHandler&&r.keyEnterHandler(...d),["enter"])),t[2]||(t[2]=bs(()=>i.showDropdown=!1,["esc"]))],onKeydown:[t[3]||(t[3]=bs((...d)=>r.keyUpHandler&&r.keyUpHandler(...d),["up"])),t[4]||(t[4]=bs((...d)=>r.keyDownHandler&&r.keyDownHandler(...d),["down"]))],onFocus:t[5]||(t[5]=()=>i.showDropdown=!0)},null,40,Aeo),[[wt,i.searchInputModel]]),c("button",{class:"input-group-text text-primary border-radius-4px border-start-0 cursor-pointer",onClick:t[6]||(t[6]=()=>i.showDropdown=!0)},[b(s,{icon:"search",height:"24",width:"24"})]),c("div",Deo,[b(a,{onOpened:t[8]||(t[8]=()=>i.showScrollBar=!0),onClosed:t[9]||(t[9]=()=>i.showScrollBar=!1)},{default:F(()=>[i.showDropdown?(h(),g("div",{key:0,class:J(["position-absolute z-index-100 w-100 bg-white border border-primary-20 border-2 border-radius-4px mt-2 mh-2rem py-2 shadow-low maxh-25rem",i.showScrollBar?"overflow-auto":"overflow-hidden"])},[r.optionsAvailable.length?(h(),g("div",xeo,[(h(!0),g(pe,null,Me(r.optionsAvailable,(d,u)=>(h(),g("div",{key:u,class:J(["cursor-pointer px-3 py-2",{"bg-primary-10":i.hoverIndex==u}]),onMouseover:f=>i.hoverIndex=u,onMouseleave:f=>i.hoverIndex=u,onMousedown:t[7]||(t[7]=(...f)=>r.attach&&r.attach(...f))},[c("span",{innerHTML:r.highlightText(d[n.value])},null,8,Leo)],42,Oeo))),128))])):(h(),g("div",Meo,m(e.$t("public.not_found")),1))],2)):D("",!0)]),_:1})])],32),c("label",Neo,m(n.label),1)]),c("div",Reo,[(h(!0),g(pe,null,Me(r.optionsSelected,d=>(h(),g("div",{key:d[n.index]},[b(l,{title:d[n.value],onRemoved:u=>r.detach(d),px:"2",py:"1"},null,8,["title","onRemoved"])]))),128))])])}const Feo=U(Ieo,[["render",jeo]]),zeo={components:{TransitionCollapseHeight:qo,FormSidebar:_n,AppIcon:Ue,SearchDropdownSelect:Feo,CheckboxInput:ba},props:{dispatchCustom:{type:Object,default:null}},data(){return{bootstrapModal:null,revision:null,emailText:null,reasons:[],anotherReason:!1,anotherReasonTitle:null,anotherReasonText:null,sendEmail:!0,touched:!1,editor:fu,primaryColor:window.primaryColor}},validations:{anotherReasonTitle:{},anotherReasonText:{},emailText:{}},computed:{reasonsOptions(){let e=[{index:"another",value:this.$t("product.admin.feedback_reasons.another")}],t=this.$tm("email.admin_product_feedback.reasons");return Object.keys(t).forEach(n=>{e.push({index:n,value:t[n].headline})}),e},...Oe({product:"administrationProduct/getFeedback",feedbackType:"sidebar/getData",auth:"auth/auth"}),isValid(){return(this.reasons&&this.reasons.length>0||this.emailText&&this.emailText.length>0)&&(!this.anotherReason||this.anotherReason&&this.anotherReasonTitle&&this.anotherReasonTitle.length>0&&this.anotherReasonText&&this.anotherReasonText.length>0)}},methods:{reset(){this.revision=null,this.emailText=null,this.reasons=[],this.anotherReason=!1,this.anotherReasonTitle=null,this.anotherReasonText=null,this.sendEmail=!0},update(e=!1){this.$store.commit("sidebar/setLoading",!0);let t={status:this.product.status,reasons:this.reasons.filter(n=>n!="another"),send_email:this.sendEmail};if(this.anotherReason&&(t.another_reason_title=this.anotherReasonTitle,t.another_reason_text=this.anotherReasonText),this.sendEmail&&(t.email_text=this.emailText),e)window.open(this.ziggyRoute("administration.api.product.update.status.email.preview",{product:this.product.id,...t}),"_blank"),this.$store.commit("sidebar/setLoading",!1);else{let n=this.feedbackType;Xr.updateStatus(this.product.id,t).then(o=>{this.$store.dispatch("sidebar/close"),window.flash(o.data.message,"success"),this.$store.dispatch("administrationProduct/list",{filters:this.product.filters}),this.$store.dispatch("administrationProduct/openCount"),this.$store.dispatch("administrationProduct/detail",{id:this.product.id}),this.reset(),n=="revise-public"&&this.$router.go()}).catch(o=>{this.$store.commit("sidebar/setLoading",!1),window.flash(o.response.data.message,"error")})}},load(){if(this.product){if(this.product.old){this.sendEmail=this.product.old.send_email,this.v$.emailText.$model=this.product.old.admin_personal_note,this.reasons=[];for(const e of this.product.old.reasons_with_trashed)e.type?this.reasons.push(e.type):(this.reasons.push("another"),this.v$.anotherReasonTitle.$model=e.custom_title,this.v$.anotherReasonText.$model=e.custom_text)}this.touched=!1}}},watch:{reasons:{deep:!0,handler(e){e.includes("another")?this.anotherReason=!0:this.anotherReason=!1}},anotherReason(e){e===!1&&(this.anotherReasonText=null,this.anotherReasonTitle=null)},product:{deep:!0,handler(){this.load()}}},mounted(){this.load()},setup(){return{v$:Pn()}}},Ueo={class:"mb-4"},Beo={class:"form-group"},Heo={class:"row"},Veo={key:0,class:"mt-3"},qeo={class:"form-group form-floating"},Yeo={for:"another_reason_title",class:"form-label"},Weo={class:"form-group form-floating mt-4"},Geo={for:"another_reason_text",class:"form-label"},Zeo={class:"quill-editor form-group mb-4 pt-3"},Keo={key:0,class:"text-danger"},Jeo={class:"col-12"},Xeo={key:0},Qeo={class:"form-group form-floating mb-3 mt-4 position-relative"},eto={for:"email_text",class:"form-label"},tto={class:"quill-editor form-group mb-4 pt-3"},nto={key:0,class:"text-danger"},oto={class:"row"},ito={class:"col-12 mt-3"},rto=["disabled"];function sto(e,t,n,o,i,r){const s=y("SearchDropdownSelect"),a=y("quill-editor"),l=y("TransitionCollapseHeight"),d=y("CheckboxInput"),u=y("AppIcon"),f=y("FormSidebar");return e.auth.is_admin?(h(),W(f,{key:0,id:"product-feedback",onClose:r.reset,onSubmit:t[6]||(t[6]=p=>r.update(!1)),"submit-disabled":!r.isValid},{title:F(()=>[z(m(["revise","revise-public"].includes(e.feedbackType)?e.$t("product.admin.feedback.send_product_revision"):e.$t("product.admin.feedback.send_product_rejection")),1)]),subtitle:F(()=>[z(m(e.product.title),1)]),"submit-button":F(()=>[z(m(e.$t("product.admin.feedback.send_feedback")),1)]),content:F(()=>[c("h4",Ueo,m(e.$t("product.admin.feedback.choose_reasons")),1),c("div",null,[c("div",Beo,[c("div",Heo,[b(s,{label:"Vyhledejte dĹŻvod",placeholder:e.$t("public.start_writting"),index:"index",value:"value",options:r.reasonsOptions,selected:i.reasons,"onUpdate:selected":t[0]||(t[0]=p=>i.reasons=p)},null,8,["placeholder","options","selected"])])]),b(l,null,{default:F(()=>[i.anotherReason?(h(),g("div",Veo,[c("div",qeo,[xe(c("input",{id:"another_reason_title",class:J({"form-control":!0,"is-invalid":o.v$.anotherReasonTitle.$error}),placeholder:" ",type:"text",name:"title","onUpdate:modelValue":t[1]||(t[1]=p=>o.v$.anotherReasonTitle.$model=p)},null,2),[[wt,o.v$.anotherReasonTitle.$model]]),c("label",Yeo,m(e.$t("product.admin.feedback.reason")),1)]),c("div",Weo,[c("label",Geo,m(e.$t("product.admin.feedback.another_reason_note")),1),c("div",Zeo,[b(a,{class:J(["form-control p-0",{"is-invalid":o.v$.anotherReasonText.$error}]),contentType:"html",theme:"snow",ref:"another_reason_text",placeholder:"",content:o.v$.anotherReasonText.$model,"onUpdate:content":t[2]||(t[2]=p=>o.v$.anotherReasonText.$model=p),options:{...i.editor.simpleToolbar,placeholder:"Text"}},null,8,["class","content","options"]),o.v$.anotherReasonText.$error&&o.v$.anotherReasonText.required.$invalid?(h(),g("div",Keo,m(e.$t("validation.custom.description.required")),1)):D("",!0)])])])):D("",!0)]),_:1}),t[7]||(t[7]=c("hr",null,null,-1)),c("div",Jeo,[b(d,{id:"send_email",value:i.sendEmail,"onUpdate:value":t[3]||(t[3]=p=>i.sendEmail=p),label:e.$t("product.admin.feedback.send_email")},null,8,["value","label"])]),b(l,null,{default:F(()=>[i.sendEmail?(h(),g("div",Xeo,[c("div",Qeo,[c("label",eto,m(e.$t("product.admin.feedback.email_text")),1),c("div",tto,[b(a,{class:J(["form-control p-0",{"is-invalid":o.v$.emailText.$error}]),contentType:"html",theme:"snow",ref:"email_text",placeholder:"",content:o.v$.emailText.$model,"onUpdate:content":t[4]||(t[4]=p=>o.v$.emailText.$model=p),options:{...i.editor.simpleToolbar,placeholder:e.$t("public.note.write")}},null,8,["class","content","options"]),o.v$.emailText.$error&&o.v$.emailText.required.$invalid?(h(),g("div",nto,m(e.$t("validation.custom.description.required")),1)):D("",!0)])]),c("div",oto,[c("div",ito,[c("button",{onClick:t[5]||(t[5]=p=>r.update(!0)),disabled:!i.sendEmail,class:"btn btn-center btn-sm btn-tertiary"},[z(m(e.$t("product.admin.feedback.email_preview"))+" ",1),b(u,{icon:"show",width:"20",height:"20",class:"ms-icon"})],8,rto)])])])):D("",!0)]),_:1})])]),_:1},8,["onClose","submit-disabled"])):D("",!0)}const ude=U(zeo,[["render",sto]]),ato={props:{selected:{type:[String,Number,Array,Object],default:null},options:Array,label:String,optionName:{type:String,default:"name"},optionKey:{type:String,default:null},placeholder:String,multiple:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},searchable:{type:Boolean,default:!1},optionsTree:{type:Boolean,default:!1}},computed:{selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}}},methods:{isThirdLevel(e){return e.parent_id&&this.options.find(t=>t.id===e.parent_id)&&this.options.find(t=>t.id===e.parent_id).parent_id},isSecondLevel(e){return e.parent_id},isFirstLevel(e){return!e.parent_id}}},lto={class:"form-group form-floating"},cto={key:0,class:"font-italic-important ms-3"},dto={key:1,class:"ms-1"},uto={key:2,class:"fw-bold"},hto={key:3},fto={class:"form-label"};function mto(e,t,n,o,i,r){const s=y("v-select");return h(),g("div",lto,[b(s,{class:"form-control",modelValue:r.selectedModel,"onUpdate:modelValue":t[0]||(t[0]=a=>r.selectedModel=a),options:n.options,placeholder:n.placeholder,label:n.optionName,clearable:!1,searchable:n.searchable,"close-on-select":n.closeOnSelect,reduce:n.optionKey?a=>a[n.optionKey]:void 0,multiple:n.multiple},os({"no-options":F(()=>[z(m(e.$t("filter.word_not_found")),1)]),_:2},[n.optionsTree?{name:"option",fn:F(a=>[r.isThirdLevel(a)?(h(),g("span",cto,m("- "+a[n.optionName]),1)):r.isSecondLevel(a)?(h(),g("span",dto,m("- "+a[n.optionName]),1)):r.isFirstLevel(a)?(h(),g("span",uto,m(a[n.optionName]),1)):(h(),g("span",hto,m(a[n.optionName]),1))]),key:"0"}:{name:"option",fn:F(a=>[z(m(a[n.optionName]),1)]),key:"1"}]),1032,["modelValue","options","placeholder","label","searchable","close-on-select","reduce","multiple"]),c("label",fto,m(n.label),1)])}const ak=U(ato,[["render",mto]]),pto={props:{selected:[Array,Object],multiple:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!1}},computed:{...Oe({categoriesFlat:"category/getCategoriesFlat"}),selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}}},mounted(){this.$store.dispatch("category/loadFlatTree")}},gto={class:"form-group form-floating"},vto={key:0,class:"fw-bold"},_to={key:1},yto={key:2},bto={for:"type"};function kto(e,t,n,o,i,r){const s=y("v-select");return h(),g("div",gto,[b(s,{id:"class-subject",label:"name",class:"form-control",multiple:n.multiple,modelValue:r.selectedModel,"onUpdate:modelValue":t[0]||(t[0]=a=>r.selectedModel=a),options:e.categoriesFlat.class,placeholder:e.$t("category.choose.class"),"close-on-select":n.closeOnSelect},{"no-options":F(()=>[z(m(e.$t("filter.word_not_found")),1)]),option:F(a=>[a.children&&a.children.length>0?(h(),g("span",vto,m(a.name),1)):a.parent_id!==0?(h(),g("span",_to,m("- "+a.name),1)):(h(),g("span",yto,m(a.name),1))]),_:1},8,["multiple","modelValue","options","placeholder","close-on-select"]),c("label",bto,m(e.$t("administration.product.detail.category.class")),1)])}const hde=U(pto,[["render",kto]]);const wto=UL(BL),$to={components:{AppIcon:Ue,FilePond:wto},props:{productId:Number},data(){return{primaryColor:window.primaryColor,images:[],fileTypes:Wa.fileTypes,server:{url:this.ziggyRoute("product.store_files",this.productId),process:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"},withCredentials:!0}},labelIdleTemplate:"<div class='d-flex align-items-center p-3'><svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' aria-labelledby='upload' role='img' class='text-primary'><g fill='currentColor'><path fill-rule='evenodd' d='M12 2C9.55912 2 7.4608 3.45744 6.52373 5.54534C6.44011 5.73166 6.38425 5.85598 6.34206 5.94471C6.33167 5.96657 6.32326 5.98381 6.31654 5.99729L6.29677 5.99799C6.23318 5.99989 6.14598 6 6 6C3.79086 6 2 7.79086 2 10C2 12.2091 3.79086 14 6 14H6.17157L8.17157 12H6C4.89543 12 4 11.1046 4 10C4 8.89543 4.89543 8 6 8L6.06419 8.0001C6.27176 8.00057 6.51342 8.00111 6.71431 7.96068C6.92683 7.91791 7.17254 7.84692 7.414 7.69062C7.65546 7.53433 7.82083 7.33923 7.94687 7.16285C8.03371 7.04134 8.10219 6.90047 8.14829 6.8035C8.20111 6.69243 8.26605 6.54772 8.34352 6.37511L8.34839 6.36427C8.97472 4.96871 10.3753 4 12 4C13.6247 4 15.0253 4.96871 15.6516 6.36427L15.6565 6.37511C15.7339 6.54772 15.7989 6.69243 15.8517 6.8035C15.8978 6.90047 15.9663 7.04134 16.0531 7.16285C16.1792 7.33923 16.3445 7.53433 16.586 7.69062C16.8275 7.84692 17.0732 7.91791 17.2857 7.96068C17.4866 8.00111 17.7282 8.00057 17.9358 8.0001L18 8C19.1046 8 20 8.89543 20 10C20 11.1046 19.1046 12 18 12H15.8284L17.8284 14H18C20.2091 14 22 12.2091 22 10C22 7.79086 20.2091 6 18 6C17.854 6 17.7668 5.99989 17.7032 5.99799L17.6835 5.99729C17.6767 5.98381 17.6683 5.96657 17.6579 5.94471C17.6158 5.85598 17.5599 5.73166 17.4763 5.54534C16.5392 3.45744 14.4409 2 12 2ZM6.29756 6.03369C6.29743 6.0339 6.29755 6.03369 6.29756 6.03369V6.03369ZM17.7024 6.03369C17.7024 6.03369 17.7026 6.03393 17.7024 6.03369V6.03369Z' /><path data-v-a0babf54='' fill-rule='evenodd' d='M7.29289 15.2929L8.70711 16.7071L11 14.4142V21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21V14.4142L15.2929 16.7071L16.7071 15.2929L12 10.5858L7.29289 15.2929Z' /></g></svg><div class='d-flex flex-column ms-5 align-items-baseline'><span class='text-gray-800'>"+this.$t("fileupload.insert_file_for_upload")+"</span><span class='medium text-gray-600 fs-6'>"+this.$t("fileupload.can_upload_zip_pdf_pptx")+"</span></div></div>"}},computed:{...Oe({product:"product/getProductData",auth:"auth/auth"}),maxFileSize(){return this.auth.is_admin?ch.max_file_size_admin:ch.max_file_size[this.auth.badge]}},methods:{handleFileUpload(e,t){e||(this.$store.dispatch("product/reloadFile"),this.$emit("file-touched"),setTimeout(()=>{this.$refs.productFile.removeFile(t.id)},1e3))},labelFileProcessingError(e){return e&&e.code===422?this.$t("fileupload.label_file_processing_error_422"):this.$t("fileupload.label_file_processing_error")}},mounted(){this.$store.dispatch("product/load",{id:this.productId})}},Cto={class:"upload-box"},Sto={class:"upload-box-upload"},Tto={key:0},Eto={class:"mt-4 mb-3 fw-bold"},Ito={class:"d-flex flex-column"},Pto=["href"],Ato={key:0},Dto={key:1},xto=["href"];function Oto(e,t,n,o,i,r){const s=y("FilePond"),a=y("AppIcon");return h(),g("div",null,[c("div",Cto,[c("div",Sto,[b(s,{name:"file",ref:"productFile",labelIdle:i.labelIdleTemplate,labelInvalidField:e.$t("fileupload.label_invalid_field"),labelFileWaitingForSize:e.$t("fileupload.label_file_waiting_for_size"),labelFileSizeNotAvailable:e.$t("fileupload.label_file_size_not_available"),labelFileLoadError:e.$t("fileupload.label_file_load_error"),labelFileLoading:e.$t("fileupload.label_file_loading"),labelFileProcessing:e.$t("fileupload.label_file_processing"),labelFileProcessingComplete:e.$t("fileupload.label_file_processing_complete"),labelFileProcessingAborted:e.$t("fileupload.label_file_processing_aborted"),labelFileProcessingError:r.labelFileProcessingError,labelTapToCancel:e.$t("fileupload.label_tap_to_cancel"),labelTapToRetry:e.$t("fileupload.label_tap_to_retry"),labelFileTypeNotAllowed:e.$t("fileupload.label_file_type_not_allowed"),fileValidateTypeLabelExpectedTypes:e.$t("fileupload.file_validate_type_label_expected_types")+" .zip, .pdf, .ppt, .pptx, .pps a .ppsx",labelMaxTotalFileSizeExceeded:e.$t("fileupload.label_max_total_file_size_exceeded"),labelMaxTotalFileSize:e.$t("fileupload.label_max_total_file_size")+" "+r.maxFileSize,"allow-multiple":!1,"allow-replace":!1,"allow-revert":!1,"allow-file-size-validation":!0,maxTotalFileSize:r.maxFileSize,"accepted-file-types":"application/zip, application/octet-stream, application/x-zip-compressed, multipart/x-zip, application/pdf, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.presentationml.slideshow",server:i.server,files:i.images,credits:"false",onProcessfile:r.handleFileUpload},null,8,["labelIdle","labelInvalidField","labelFileWaitingForSize","labelFileSizeNotAvailable","labelFileLoadError","labelFileLoading","labelFileProcessing","labelFileProcessingComplete","labelFileProcessingAborted","labelFileProcessingError","labelTapToCancel","labelTapToRetry","labelFileTypeNotAllowed","fileValidateTypeLabelExpectedTypes","labelMaxTotalFileSizeExceeded","labelMaxTotalFileSize","maxTotalFileSize","server","files","onProcessfile"])])]),e.product.file?(h(),g("div",Tto,[c("p",Eto,m(e.$t("product.editor.file.uploaded_files")),1),c("div",Ito,[e.product.file&&e.product.file.name?(h(),g("a",{key:0,class:"upload-box-gallery-item mt-3 w-100",href:e.ziggyRoute("product.download_files",{product:e.product.file.product_id,file:e.product.file.id}),target:"_blank"},[e.product.file.will_be_replaced_by?(h(),g("s",Ato,[b(a,{icon:"file",class:"me-icon"}),z(" "+m(e.product.file.name),1)])):(h(),g("span",Dto,[b(a,{icon:"file",class:"me-icon"}),z(" "+m(e.product.file.name),1)]))],8,Pto)):D("",!0),e.product.file&&e.product.file.will_be_replaced_by&&e.product.file.will_be_replaced_by.id?(h(),g("a",{key:1,class:"upload-box-gallery-item mt-3 w-100",href:e.ziggyRoute("product.download_files",{product:e.product.file.product_id,file:e.product.file.will_be_replaced_by.id}),target:"_blank"},[b(a,{icon:"file",class:"me-icon"}),z(" "+m(e.product.file.will_be_replaced_by.name),1)],8,xto)):D("",!0)])])):D("",!0)])}const fde=U($to,[["render",Oto],["__scopeId","data-v-d858cdab"]]),Lto={props:{classIdSelected:{type:Number,default:null},selected:{type:Array,default:()=>[]}},computed:{...sn({classSubjectsFlat:e=>e.category.class_subject_flat_categories}),...Oe({categoriesFlat:"category/getCategoriesFlat"}),classSelected(){return this.classIdSelected?this.categoriesFlat.class.find(e=>e.id==this.classIdSelected):null},selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}},options(){if(this.classIdSelected){let e=this.classSubjectsFlat.find(t=>[this.classSelected.id,this.classSelected.parent_id].includes(t.id));return e&&e.children?e.children:[]}else return this.categoriesFlat.subject}},methods:{isThirdLevel(e){return e.parent_id&&this.categoriesFlat.subject.find(t=>t.id==e.parent_id)&&this.categoriesFlat.subject.find(t=>t.id==e.parent_id).parent_id},isSecondLevel(e){return e.parent_id},isFirstLevel(e){return!e.parent_id},loadClassSubject(){this.$store.dispatch("category/loadClassSubjectFlat")}},mounted(){this.classIdSelected&&this.loadClassSubject(),this.$store.dispatch("category/loadFlatTree")},watch:{classIdSelected:{handler:function(){this.loadClassSubject()},deep:!0}}},Mto={class:"form-group form-floating"},Nto={key:0,class:"font-italic-important ms-3"},Rto={key:1,class:"ms-1"},jto={key:2,class:"fw-bold"},Fto={key:3},zto={for:"type"};function Uto(e,t,n,o,i,r){const s=y("v-select");return h(),g("div",Mto,[b(s,{id:"class-subject",label:"name",class:"form-control",multiple:"",modelValue:r.selectedModel,"onUpdate:modelValue":t[0]||(t[0]=a=>r.selectedModel=a),placeholder:e.$t("category.choose.subject"),"close-on-select":!1,options:r.options},{"no-options":F(()=>[z(m(e.$t("filter.word_not_found")),1)]),option:F(a=>[r.isThirdLevel(a)?(h(),g("span",Nto,m("- "+a.name),1)):r.isSecondLevel(a)?(h(),g("span",Rto,m("- "+a.name),1)):r.isFirstLevel(a)?(h(),g("span",jto,m(a.name),1)):(h(),g("span",Fto,m(a.name),1))]),_:1},8,["modelValue","placeholder","options"]),c("label",zto,m(e.$t("administration.product.detail.category.subjects")),1)])}const mde=U(Lto,[["render",Uto]]),Bto={vat:[{name:"0 %",value:0,type:null},{name:"0 % – Kniha, pracovnĂ listy",value:0,type:"book"},{name:"0 % – Obrázková kniha, obrázky",value:0,type:"picture"},{name:"0 % – PĹ™edloha ke kreslenĂ, omalovánky",value:0,type:"templates"},{name:"21 %",value:21,type:null},{name:"21 % – NevĂ˝uka",value:21,type:"non_education"},{name:"21 % – Hra",value:21,type:"game"},{name:"21 % – VĂ˝zdoba tĹ™Ădy",value:21,type:"class_decoration"},{name:"21 % – Prezentace",value:21,type:"presentation"}]},Hto={components:{CheckboxInput:ba,ImageSourcesEditor:nM,TransitionCollapseHeight:qo},props:{hasNoImages:Boolean,hasProductImages:Boolean,hasAlsoOriginalImages:Boolean,imageSources:{type:Array,default:()=>[]}},computed:{hasNoImagesModel:{get(){return this.hasNoImages},set(e){this.$emit("update:hasNoImages",e)}},hasProductImagesModel:{get(){return this.hasProductImages},set(e){this.$emit("update:hasProductImages",e)}},hasAlsoOriginalImagesModel:{get(){return this.hasAlsoOriginalImages},set(e){this.$emit("update:hasAlsoOriginalImages",e)}},imageSourcesModel:{get(){return this.imageSources},set(e){this.$emit("update:imageSources",e)}}}},Vto={class:"d-flex flex-column gap-3"},qto={key:0,class:"d-flex flex-column gap-3"};function Yto(e,t,n,o,i,r){const s=y("CheckboxInput"),a=y("ImageSourcesEditor"),l=y("TransitionCollapseHeight");return h(),g("div",Vto,[b(s,{id:"has-no-images",value:r.hasNoImagesModel,"onUpdate:value":t[0]||(t[0]=d=>r.hasNoImagesModel=d),label:e.$t("product.editor.has_no_images")},null,8,["value","label"]),b(l,null,{default:F(()=>[r.hasNoImagesModel?D("",!0):(h(),g("div",qto,[b(s,{id:"has-product-images",value:r.hasProductImagesModel,"onUpdate:value":t[1]||(t[1]=d=>r.hasProductImagesModel=d),label:e.$t("product.editor.has_product_images")},null,8,["value","label"]),b(a,{"image-sources":r.imageSourcesModel,"onUpdate:imageSources":t[2]||(t[2]=d=>r.imageSourcesModel=d),"has-also-original-images":r.hasAlsoOriginalImagesModel,"onUpdate:hasAlsoOriginalImages":t[3]||(t[3]=d=>r.hasAlsoOriginalImagesModel=d),"show-label":!0},null,8,["image-sources","has-also-original-images"])]))]),_:1})])}const pde=U(Hto,[["render",Yto]]),Wto={components:{FormSidebar:_n,SidebarBlock:rb,AppSelect:ak,ClassSelect:hde,SubjectSelect:mde,ProductFileUpload:fde,Datetime:RO,ProductImageSourcesEditor:pde},data(){return{options:{vat:Bto.vat,file:{types:Wa.fileTypes.map(e=>e.value)}},classes:[],subjects:[],themes:[],kinds:[],formats:[],holiday:[],edit:{approved_at:null,vat:{name:null,value:null,type:null},fileTouched:!1,categories:[],file_type:[],has_no_images:!1,has_also_original_images:!1,has_product_images:!1,image_sources:[]}}},computed:{...Oe({categories:"category/getCategoriesFlat",product:"administrationProduct/getDetail",updateType:"sidebar/getData",auth:"auth/auth"})},watch:{subjects(e){this.edit.categories&&(this.edit.categories=this.edit.categories.filter(t=>t.type!="subject").concat(e))},classes(e){this.edit.categories&&(this.edit.categories=this.edit.categories.filter(t=>t.type!="class").concat(e))},themes(e){this.edit.categories&&(this.edit.categories=this.edit.categories.filter(t=>t.type!="theme").concat(e))},kinds(e){this.edit.categories&&(this.edit.categories=this.edit.categories.filter(t=>t.type!="kind").concat(e))},formats(e){this.edit.categories&&(this.edit.categories=this.edit.categories.filter(t=>t.type!="format").concat(e))},holiday(e){this.edit.categories&&(this.edit.categories=this.edit.categories.filter(t=>t.type!="holiday").concat(e))},product(){this.setEdit()}},methods:{save(){let t=this.updateType==="category-public";this.$store.dispatch("administrationProduct/update",{id:this.product.id,product:this.edit,onlyCategories:t}).then(()=>{t&&this.$router.go()})},editFile(){this.edit.fileTouched=!0},setEdit(){this.edit.approved_at=this.product.approved_at,this.edit.vat.name=this.product.vat.name,this.edit.vat.value=this.product.vat.value,this.edit.vat.type=this.product.vat.type,this.classes=this.product.categories&&this.product.categories.length?this.product.categories.filter(e=>e.type=="class"):[],this.subjects=this.product.categories&&this.product.categories.length?this.product.categories.filter(e=>e.type=="subject"):[],this.themes=this.product.categories&&this.product.categories.length?this.product.categories.filter(e=>e.type=="theme"):[],this.kinds=this.product.categories&&this.product.categories.length?this.product.categories.filter(e=>e.type=="kind"):[],this.formats=this.product.categories&&this.product.categories.length?this.product.categories.filter(e=>e.type=="format"):[],this.holiday=this.product.categories&&this.product.categories.length?this.product.categories.filter(e=>e.type=="holiday"):[],this.edit.categories=this.product.categories,this.edit.file_type=this.product.file_type,this.edit.has_no_images=this.product.has_no_images?this.product.has_no_images:!1,this.edit.has_also_original_images=this.product.has_also_original_images?this.product.has_also_original_images:!1,this.edit.has_product_images=this.product.has_product_images?this.product.has_product_images:!1,this.edit.image_sources=window._.cloneDeep(this.product.image_sources?this.product.image_sources:[])}},mounted(){["all","category","category-public"].includes(this.updateType)&&this.$store.dispatch("category/loadFlatTree"),this.setEdit()}},Gto={key:0,class:"mb-4"},Zto={for:"approved_at",class:"form-label"},Kto={key:1,id:"image-sources",class:"mb-4"},Jto={class:"small mb-1"},Xto={key:2};function Qto(e,t,n,o,i,r){const s=y("app-icon"),a=y("Datetime"),l=y("AppSelect"),d=y("SidebarBlock"),u=y("ClassSelect"),f=y("SubjectSelect"),p=y("ProductImageSourcesEditor"),v=y("ProductFileUpload"),_=y("FormSidebar");return e.auth.is_admin?(h(),W(_,{key:0,id:"product-update",onSubmit:r.save},{title:F(()=>[z(m(e.$t("administration.product.detail.edit.title")),1)]),subtitle:F(()=>[z(m(e.product.title),1)]),"submit-button":F(()=>[z(m(e.$t("administration.product.detail.edit.save")),1)]),content:F(()=>[["all","approved_at","vat_with_type"].includes(e.updateType)?(h(),W(d,{key:0,title:e.$t("administration.product.detail.general.title")},{default:F(()=>[["all","approved_at"].includes(e.updateType)?(h(),g("div",Gto,[b(a,{id:"approved_at",name:"approved_at",type:"datetime",class:"form-group form-floating input-group cursor-pointer","input-class":"form-control",modelValue:i.edit.approved_at,"onUpdate:modelValue":t[1]||(t[1]=k=>i.edit.approved_at=k),"minute-step":1,placeholder:e.$t("administration.product.detail.general.approved_at")},{after:F(()=>[c("label",Zto,m(e.$t("administration.product.detail.general.approved_at")),1),c("span",{class:"input-group-text right-border-radius-fix",onClick:t[0]||(t[0]=k=>i.edit.approved_at=null)},[b(s,{icon:"close",height:"16",width:"16"})])]),_:1},8,["modelValue","placeholder"])])):D("",!0),["all","vat_with_type"].includes(e.updateType)?(h(),W(l,{key:1,selected:i.edit.vat,"onUpdate:selected":t[2]||(t[2]=k=>i.edit.vat=k),options:i.options.vat,label:e.$t("administration.product.detail.general.vat_with_type"),class:"mb-4"},null,8,["selected","options","label"])):D("",!0)]),_:1},8,["title"])):D("",!0),["all","category","category-public"].includes(e.updateType)?(h(),W(d,{key:1,title:e.$t("administration.product.detail.category.title"),class:J({"mt-5":e.updateType=="all"})},{default:F(()=>[["all","category","category-public"].includes(e.updateType)?(h(),W(u,{key:0,selected:i.classes,"onUpdate:selected":t[3]||(t[3]=k=>i.classes=k),class:"mb-4",multiple:""},null,8,["selected"])):D("",!0),["all","category","category-public"].includes(e.updateType)?(h(),W(f,{key:1,selected:i.subjects,"onUpdate:selected":t[4]||(t[4]=k=>i.subjects=k),class:"mb-4"},null,8,["selected"])):D("",!0),["all","category","category-public"].includes(e.updateType)?(h(),W(l,{key:2,selected:i.themes,"onUpdate:selected":t[5]||(t[5]=k=>i.themes=k),options:e.categories.theme,"options-tree":"","close-on-select":!1,multiple:"",label:e.$t("administration.product.detail.category.theme"),placeholder:e.$t("category.choose.theme"),class:"mb-4"},null,8,["selected","options","label","placeholder"])):D("",!0),["all","category","category-public"].includes(e.updateType)?(h(),W(l,{key:3,selected:i.kinds,"onUpdate:selected":t[6]||(t[6]=k=>i.kinds=k),options:e.categories.kind,"options-tree":"","close-on-select":!1,multiple:"",label:e.$t("administration.product.detail.category.kind"),placeholder:e.$t("category.choose.kind"),class:"mb-4"},null,8,["selected","options","label","placeholder"])):D("",!0),["all","category","category-public"].includes(e.updateType)?(h(),W(l,{key:4,selected:i.formats,"onUpdate:selected":t[7]||(t[7]=k=>i.formats=k),options:e.categories.format,"options-tree":"","close-on-select":!1,multiple:"",label:e.$t("administration.product.detail.category.format"),placeholder:e.$t("category.choose.format"),class:"mb-4"},null,8,["selected","options","label","placeholder"])):D("",!0),["all","category","category-public"].includes(e.updateType)?(h(),W(l,{key:5,selected:i.holiday,"onUpdate:selected":t[8]||(t[8]=k=>i.holiday=k),options:e.categories.holiday,"options-tree":"","close-on-select":!1,multiple:"",label:e.$t("administration.product.detail.category.holiday"),placeholder:e.$t("category.choose.holiday"),class:"mb-4"},null,8,["selected","options","label","placeholder"])):D("",!0)]),_:1},8,["title","class"])):D("",!0),["all","file","fileType","imageSources"].includes(e.updateType)?(h(),W(d,{key:2,title:e.$t("administration.product.detail.file.title"),class:J({"mt-5":e.updateType=="all"})},{default:F(()=>[["all","fileType"].includes(e.updateType)?(h(),W(l,{key:0,modelValue:i.edit.file_type,"onUpdate:modelValue":t[9]||(t[9]=k=>i.edit.file_type=k),options:i.options.file.types,"close-on-select":!1,multiple:"",label:e.$t("administration.product.detail.file.type"),class:"mb-4"},null,8,["modelValue","options","label"])):D("",!0),["all","imageSources"].includes(e.updateType)?(h(),g("div",Kto,[c("p",Jto,m(e.$t("administration.product.detail.file.images")),1),b(p,{"image-sources":i.edit.image_sources,"onUpdate:imageSources":t[10]||(t[10]=k=>i.edit.image_sources=k),"has-also-original-images":i.edit.has_also_original_images,"onUpdate:hasAlsoOriginalImages":t[11]||(t[11]=k=>i.edit.has_also_original_images=k),"has-no-images":i.edit.has_no_images,"onUpdate:hasNoImages":t[12]||(t[12]=k=>i.edit.has_no_images=k),"has-product-images":i.edit.has_product_images,"onUpdate:hasProductImages":t[13]||(t[13]=k=>i.edit.has_product_images=k)},null,8,["image-sources","has-also-original-images","has-no-images","has-product-images"])])):D("",!0),["all","file"].includes(e.updateType)?(h(),g("div",Xto,[b(v,{"product-id":e.product.id,onFileTouched:r.editFile},null,8,["product-id","onFileTouched"])])):D("",!0)]),_:1},8,["title","class"])):D("",!0)]),_:1},8,["onSubmit"])):D("",!0)}const gde=U(Wto,[["render",Qto]]),eno={components:{SchoolAccountingEmailUpdateSidebar:Eeo,SchoolCreditOrderCreateSidebar:_eo,AuthorProductGroupCreateSidebar:MJn,AuthorProductGroupUpdateSidebar:XJn,AuthorProductGroupDeleteSidebar:tXn,AuthorPromoProductDeleteSidebar:iXn,AuthorDiscountDeleteSidebar:fQn,AuthorDiscountDeactivateSidebar:gQn,ComplaintCreateSidebar:TKn,ComplaintShowSidebar:SXn,ProductDeleteSidebar:YXn,ProductRatingSidebar:NKn,ProductRevisionShowSidebar:jXn,SchoolEmployeeDeleteSidebar:cde,SchoolEmployeeCreditUpdateSidebar:dde,SchoolInviteSidebar:EQn,SchoolLeaveSidebar:bQn,SchoolInvoiceDeleteSidebar:AQn,ProductUpdateSidebar:gde,ProductFeedbackSidebar:ude,ImageDeleteSidebar:ZXn,ProductExclusiveListSidebar:dQn},computed:{...Oe({sidebarType:"sidebar/getType"})}};function tno(e,t,n,o,i,r){return e.sidebarType?(h(),W(Dl(e.sidebarType+"-sidebar"),{key:0})):D("",!0)}const nno=U(eno,[["render",tno]]),ono=""+new URL("credit_info_step_1-ccb6381d.svg",import.meta.url).href,ino=""+new URL("credit_info_step_2-214e88f3.svg",import.meta.url).href,rno=""+new URL("credit_info_step_3-434f099d.svg",import.meta.url).href,sno={data(){return{creditInfoStep1:ono,creditInfoStep2:ino,creditInfoStep3:rno}},methods:{openCreditOrderCreateModal(){this.$emit("close"),window.appModal("credit-order-create")}}},ano={class:"modal-header d-flex justify-content-center p-4 pb-5"},lno={class:"mb-0"},cno={class:"modal-body py-0 px-6"},dno={class:"row"},uno={class:"col-12 col-sm-4 d-flex flex-column align-items-center"},hno=["src"],fno={class:"text-center fw-medium mb-0"},mno={class:"col-12 col-sm-4 d-flex flex-column align-items-center mt-3 mt-sm-0"},pno=["src"],gno={class:"text-center fw-medium mb-0"},vno={class:"col-12 col-sm-4 d-flex flex-column align-items-center mt-3 mt-sm-0"},_no=["src"],yno={class:"text-center fw-medium mb-0"},bno={class:"modal-footer justify-content-center p-4 pt-5"},kno={class:"d-flex justify-content-center"};function wno(e,t,n,o,i,r){return h(),g("div",null,[c("div",ano,[c("h3",lno,m(e.$t("credit.info_modal.headline")),1)]),c("div",cno,[c("div",dno,[c("div",uno,[c("img",{src:i.creditInfoStep1,height:"78",class:"mb-4"},null,8,hno),c("p",fno,m(e.$t("credit.info_modal.steps.0")),1)]),c("div",mno,[c("img",{src:i.creditInfoStep2,height:"78",class:"mb-4"},null,8,pno),c("p",gno,m(e.$t("credit.info_modal.steps.1")),1)]),c("div",vno,[c("img",{src:i.creditInfoStep3,height:"78",class:"mb-4"},null,8,_no),c("p",yno,m(e.$t("credit.info_modal.steps.2")),1)])])]),c("div",bno,[c("div",kno,[c("button",{class:"btn btn-primary",onClick:t[0]||(t[0]=(...s)=>r.openCreditOrderCreateModal&&r.openCreditOrderCreateModal(...s))},m(e.$t("public.acknowledge")),1)])])])}const $no=U(sno,[["render",wno]]),Cno=""+new URL("people_waving-338807f4.svg",import.meta.url).href,Sno=e=>e.replace(`/[ \rs]+/`," ").trim().split(" ").length>1,Tno={components:{InputFullName:Kce,Loading:Rt},data(){return{peopleWaving:Cno,name:"",primaryColor:window.primaryColor,loading:!1}},validations:{name:{required:Yt,atleast2Words:Sno}},computed:{nameInvalidMessage(){return this.v$.name.$error&&this.v$.name.required.$invalid?this.$t("validation.custom.full_name.required"):this.v$.name.$error&&this.v$.name.atleast2Words.$invalid?this.$t("validation.custom.full_name.atleast_two_words"):null}},methods:{setName(){this.v$.name.$touch(),!this.v$.name.$error&&(this.loading||(this.loading=!0,Qc.nameSet(this.name).then(e=>{window.flash(e.data.message,"success"),window.location.reload()}).catch(e=>{console.error(e)}).finally(()=>{this.loading=!1})))}},setup(){return{v$:Pn()}}},Eno={class:"modal-body vl-parent p-5"},Ino={class:"d-flex flex-column align-items-center text-center gap-5"},Pno=["src"],Ano={class:"mb-1"},Dno={class:"mb-0"};function xno(e,t,n,o,i,r){const s=y("Loading"),a=y("InputFullName");return h(),g("div",Eno,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=l=>i.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",Ino,[c("img",{src:i.peopleWaving,height:"123.61"},null,8,Pno),c("div",null,[c("h2",Ano,m(e.$t("public.ucitelnice_welcome.title")),1),c("p",Dno,m(e.$t("public.ucitelnice_welcome.who_are_you")),1)]),b(a,{class:"text-start w-100",value:i.name,"onUpdate:value":t[1]||(t[1]=l=>i.name=l),invalid:o.v$.name.$error,"invalid-message":r.nameInvalidMessage,autocomplete:"newpassword"},null,8,["value","invalid","invalid-message"]),c("button",{class:"btn btn-primary",onClick:t[2]||(t[2]=(...l)=>r.setName&&r.setName(...l))},m(e.$t("public.enter")),1)])])}const Ono=U(Tno,[["render",xno]]),Lno={props:{title:{type:String,default:null},active:{type:Boolean,default:!1},passed:{type:Boolean,default:!1},showLine:{type:Boolean,default:!1}}},Mno={class:"d-flex align-items-center"},Nno={key:0,class:"h-1px w-1rem bg-gray-400"};function Rno(e,t,n,o,i,r){const s=y("app-icon");return h(),g("div",Mno,[n.showLine?(h(),g("div",Nno)):D("",!0),c("div",{class:J(["d-flex align-items-center justify-content-center border-circle h-2rem w-2rem me-1",n.active||n.passed?"bg-success-light":"bg-gray-300"])},[b(s,{icon:n.passed?"check-fill":"check-circle",height:20,width:20,class:J(n.active||n.passed?"text-success":"text-gray-500")},null,8,["icon","class"])],2),c("div",{class:J(["small fw-medium",n.active||n.passed?"text-success":"text-gray-500"])},m(n.title),3)])}const jno=U(Lno,[["render",Rno]]),Fno={components:{ProgressBarItem:jno},props:{titles:{type:Array,default:()=>[]},tabs:{type:Array,default:()=>[]},activeTab:{type:String,default:()=>null}}},zno={class:"d-flex justify-content-center align-items-center gap-1"};function Uno(e,t,n,o,i,r){const s=y("ProgressBarItem");return h(),g("div",zno,[(h(!0),g(pe,null,Me(n.tabs,(a,l)=>(h(),W(s,{key:l,title:n.titles[l],active:n.activeTab==a,passed:l<n.tabs.indexOf(n.activeTab)||n.activeTab==n.tabs[n.tabs.length-1],"show-line":l>0},null,8,["title","active","passed","show-line"]))),128))])}const Bno=U(Fno,[["render",Uno]]),Hno={components:{AppIcon:Ue},props:{placeholder:{type:String,default:null},min:{type:Number,default:null},step:{type:Number,default:null},type:{type:String,default:"text"},value:{type:[Number,String],default:null}},computed:{valueModel:{get(){return this.value},set(e){this.$emit("update:value",e)}}}},Vno={class:"position-relative"},qno=["type","placeholder","step","min"];function Yno(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Vno,[xe(c("input",{name:"creditVoucher",type:n.type,class:J(["form-control",{"pe-5":r.valueModel}]),placeholder:n.placeholder,"onUpdate:modelValue":t[0]||(t[0]=a=>r.valueModel=a),step:n.step,min:n.min},null,10,qno),[[f3,r.valueModel]]),n.value?(h(),W(s,{key:0,icon:"close-circle",height:24,width:24,class:"cursor-pointer text-primary-20 position-absolute top-50 translate-middle-y end-0 me-2",onClick:t[1]||(t[1]=a=>r.valueModel=null)})):D("",!0)])}const vde=U(Hno,[["render",Yno]]),Wno={props:{amount:{type:[Number,String],default:null},selectedAmount:{type:[Number,String],default:null}},data(){return{coins:Pg}},computed:{selected(){return this.amount==this.selectedAmount}},methods:{select(){this.$emit("update:selectedAmount",this.amount),this.$emit("click")}}},Gno=["src"];function Zno(e,t,n,o,i,r){return h(),g("div",{class:J(["rounded-pill btn-center h-3rem text-primary border px-4 cursor-pointer text-nowrap fw-medium",r.selected?"bg-primary-10 border-primary-10":"bg-white border-primary"]),onClick:t[0]||(t[0]=(...s)=>r.select&&r.select(...s))},[r.selected?(h(),g("img",{key:0,src:i.coins,height:"32",class:"me-icon"},null,8,Gno)):D("",!0),z(" "+m(n.amount.toLocaleString())+" "+m(e.$t("currency.short")),1)],2)}const Kno=U(Wno,[["render",Zno]]),Jno={components:{CreditAmountSelectItem:Kno},props:{options:{type:Array,default:()=>[]},selected:{type:[Number,String],default:()=>null}},computed:{selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}}}},Xno={class:"d-flex gap-3 mb-4 flex-wrap"};function Qno(e,t,n,o,i,r){const s=y("CreditAmountSelectItem");return h(),g("div",Xno,[(h(!0),g(pe,null,Me(n.options,(a,l)=>(h(),W(s,{key:l,amount:a,"selected-amount":r.selectedModel,"onUpdate:selectedAmount":t[0]||(t[0]=d=>r.selectedModel=d),onClick:t[1]||(t[1]=d=>e.$emit("click"))},null,8,["amount","selected-amount"]))),128))])}const eoo=U(Jno,[["render",Qno]]),lA={minimum_amount:1},too={components:{AppIcon:Ue,CreditAmountSelect:eoo,TransitionCollapseHeight:qo,ClearableInput:vde},props:{amount:{type:[Number,String],default:()=>null}},validations:{customAmount:{minValue:Ra(lA.minimum_amount)}},data(){return{amountMinimum:lA.minimum_amount,amountOptions:[100,200,300,500,1e3],customAmount:null,customAmountInputShown:!1}},computed:{amountModel:{get(){return this.amount},set(e){this.$emit("update:amount",e)}},...Oe({auth:"auth/auth"})},methods:{openCreditInfoModal(){window.appModal("credit-info")},toggleCustomAmountInput(){this.customAmountInputShown=!this.customAmountInputShown,this.customAmountInputShown?this.amountModel=this.customAmount:this.amountModel=null},hideCustomAmountInput(){this.customAmountInputShown=!1}},setup(){return{v$:Pn()}},watch:{customAmount(){this.customAmount?this.amountMinimum<=this.customAmount&&(this.amountModel=this.customAmount):this.amountModel=null}}},noo={class:"d-flex flex-column flex-md-row mb-6"},ooo={class:"mb-2"},ioo={class:"medium text-gray-700 mb-0"},roo={class:"mt-2 mt-md-0"},soo={key:0,class:"d-flex align-items-center justify-content-center bg-primary-10 rounded py-2 px-3 mb-4"},aoo={class:"fw-medium mb-0"},loo=["href"],coo={class:"fw-medium mb-3"},doo={key:0,class:"form-group mt-2"},uoo={class:"d-flex"},hoo={key:0,class:"text-danger medium position-absolute"};function foo(e,t,n,o,i,r){const s=y("AppIcon"),a=y("CreditAmountSelect"),l=y("ClearableInput"),d=y("TransitionCollapseHeight");return h(),g("div",null,[c("div",noo,[c("div",null,[c("h3",ooo,m(e.$t("credit.title")),1),c("p",ioo,[z(m(e.$t("credit.info.0"))+" ",1),c("a",{class:"text-decoration-underline text-gray-700 cursor-pointer",onClick:t[0]||(t[0]=(...u)=>r.openCreditInfoModal&&r.openCreditInfoModal(...u))},m(e.$t("credit.info.1")),1)])]),c("div",roo,[c("button",{class:"btn btn-tertiary btn-sm btn-center text-nowrap",onClick:t[1]||(t[1]=u=>e.$emit("show-voucher"))},[b(s,{icon:"gift",height:20,width:20,class:"me-icon"}),z(" "+m(e.$t("voucher.own")),1)])])]),e.auth.is_school_manager?(h(),g("div",soo,[c("p",aoo,[z(m(e.$t("credit.personal_warning.0"))+" ",1),c("a",{href:e.ziggyRoute("school.manager.finance.order",{"open-increase-sidebar":!0})},m(e.$t("credit.personal_warning.1")),9,loo),t[5]||(t[5]=z(" "+m(".")))])])):D("",!0),c("p",coo,m(e.$t("credit.amount.inquiry")),1),b(a,{options:i.amountOptions,selected:r.amountModel,"onUpdate:selected":t[2]||(t[2]=u=>r.amountModel=u),onClick:r.hideCustomAmountInput},null,8,["options","selected","onClick"]),c("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[3]||(t[3]=(...u)=>r.toggleCustomAmountInput&&r.toggleCustomAmountInput(...u))},[z(m(e.$t("credit.amount.custom"))+" ",1),b(s,{icon:i.customAmountInputShown?"chevron-up":"chevron-down",height:20,width:20,class:"ms-icon"},null,8,["icon"])]),b(d,null,{default:F(()=>[i.customAmountInputShown?(h(),g("div",doo,[c("div",uoo,[b(l,{class:"w-12dot5rem me-2",type:"number",min:1,step:100,value:i.customAmount,"onUpdate:value":t[4]||(t[4]=u=>i.customAmount=u)},null,8,["value"])]),o.v$.customAmount.$invalid?(h(),g("span",hoo,m(e.$t("validation.min.numeric",{attribute:e.$t("public.amount"),min:i.amountMinimum})),1)):D("",!0)])):D("",!0)]),_:1})])}const moo=U(too,[["render",foo]]),poo={props:{codes:{type:Array,default(){return[]}},active:{type:Boolean,default:void 0},isVoucher:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{activate(){this.disabled||(this.$store.dispatch("payment/select",{instrument:this.topLevelInstrument,swift:null}),this.$emit("radio-checked"))}},computed:{...Oe({payment:"payment/getPaymentData"}),instrument:{get(){return this.payment.instrument},set(e){this.$store.dispatch("payment/select",{instrument:e,swift:null})}},topLevelInstrument(){return this.isVoucher?this.codes[0]:this.codes[0]=="payment_card"?"card":this.codes[0]},activeModel(){return this.active!=null?this.active:this.codes.includes(this.instrument)}}},goo={class:"py-0dot5 me-3"},voo=["value","checked","disabled"],_oo={class:"fw-medium d-flex align-items-center flex-wrap"},yoo={class:"d-flex ms-5"};function boo(e,t,n,o,i,r){return h(),g("section",{onClick:t[0]||(t[0]=(...s)=>r.activate&&r.activate(...s)),class:J({"text-gray-600":n.disabled})},[c("div",{class:J(["d-flex align-items-start py-1 ps-1",{"cursor-pointer":!n.disabled}])},[c("div",goo,[c("input",{class:J(["transform-scale-1dot5 cursor-pointer",{"cursor-pointer":!n.disabled}]),type:"radio",value:n.codes[0],checked:r.activeModel,disabled:n.disabled},null,10,voo)]),c("div",null,[c("header",_oo,[Pt(e.$slots,"header")]),Pt(e.$slots,"default",{class:"medium"})])],2),c("div",yoo,[Pt(e.$slots,"content")])],2)}const _de=U(poo,[["render",boo]]),koo=""+new URL("gibaczpx-422e5184.png",import.meta.url).href,woo=""+new URL("fiobczpp-48bd5855.png",import.meta.url).href,$oo=""+new URL("kombczpp-9898c520.png",import.meta.url).href,Coo=""+new URL("brexczpp-5435cecb.png",import.meta.url).href,Soo=""+new URL("rzbcczpp-f5cdff5c.png",import.meta.url).href,Too=""+new URL("bacxczpp-2a508430.png",import.meta.url).href,Eoo=""+new URL("cekoczpp-9a8c88db.png",import.meta.url).href,Ioo=""+new URL("cekoczpp-era-933610b3.png",import.meta.url).href,Poo={GIBACZPX:{name:"Platba24"},FIOBCZPP:{name:"Fio banka"},KOMBCZPP:{name:"Moje Platba"},BREXCZPP:{name:"mPenĂze"},RZBCCZPP:{name:"ePlatby"},BACXCZPP:{name:"UniPlatba"},CEKOCZPP:{name:"ÄŚSOB"},"CEKOCZPP-ERA":{name:"PoštovnĂ spoĹ™itelna"}},Aoo={props:{swift:String,src:String,name:String},data(){return{bankConfig:Poo,logo:{GIBACZPX:koo,FIOBCZPP:woo,KOMBCZPP:$oo,BREXCZPP:Coo,RZBCCZPP:Soo,BACXCZPP:Too,CEKOCZPP:Eoo,"CEKOCZPP-ERA":Ioo}}},methods:{activate(){this.$store.dispatch("payment/select",{instrument:"bank_account",swift:this.swift})}},computed:{...Oe({payment:"payment/getPaymentData"}),selectedSwift:{get(){return this.payment.swift},set(e){this.$store.dispatch("payment/select",{instrument:"bank_account",swift:e})}},active(){return this.swift===this.selectedSwift}}},Doo=["src","alt"];function xoo(e,t,n,o,i,r){return h(),g("div",{class:J(["d-flex align-items-center rounded border border-primary-20 cursor-pointer px-3 py-2 my-1",{"bg-primary-10":r.active}]),onClick:t[0]||(t[0]=Gt((...s)=>r.activate&&r.activate(...s),["stop"]))},[c("img",{height:"24",src:i.logo[n.swift],alt:i.bankConfig[n.swift].name,class:"object-fit-contain"},null,8,Doo)],2)}const yde=U(Aoo,[["render",xoo]]),Ooo={components:{BankButton:yde}},Loo={class:"d-flex flex-wrap gap-2"};function Moo(e,t,n,o,i,r){const s=y("BankButton");return h(),g("div",Loo,[b(s,{swift:"GIBACZPX"}),b(s,{swift:"FIOBCZPP"}),b(s,{swift:"KOMBCZPP"}),b(s,{swift:"BREXCZPP"}),b(s,{swift:"RZBCCZPP"}),b(s,{swift:"BACXCZPP"}),b(s,{swift:"CEKOCZPP"}),b(s,{swift:"CEKOCZPP-ERA"})])}const Noo=U(Ooo,[["render",Moo]]),Roo=""+new URL("visa-595eed3c.png",import.meta.url).href,joo=""+new URL("mastercard-79412ad7.png",import.meta.url).href,Foo=""+new URL("google-ddcb96be.svg",import.meta.url).href,zoo=""+new URL("apple-852b82f8.svg",import.meta.url).href,Uoo={props:{code:String},data(){return{logo:{visa:Roo,mastercard:joo,google:Foo,apple:zoo}}},methods:{activate(){this.$store.dispatch("payment/select",{instrument:this.code,swift:null})}},computed:{...Oe({payment:"payment/getPaymentData"}),instrument:{get(){return this.payment.instrument},set(e){this.$store.dispatch("payment/select",{instrument:e,swift:null})}}}},Boo={class:"d-flex align-items-center justify-content-center me-2"},Hoo=["src"],Voo=["src"],qoo=["src"],Yoo=["src"],Woo={class:"medium fw-medium"};function Goo(e,t,n,o,i,r){return h(),g("div",{class:J(["d-flex align-items-center border border-primary-20 rounded cursor-pointer px-3 py-2 my-1",{"bg-primary-10":n.code==r.instrument}]),onClick:t[0]||(t[0]=Gt((...s)=>r.activate&&r.activate(...s),["stop"]))},[c("div",Boo,[n.code=="payment_card"?(h(),g(pe,{key:0},[c("img",{src:i.logo.visa,alt:"Visa card",height:"9"},null,8,Hoo),c("img",{src:i.logo.mastercard,alt:"Master card",width:"24"},null,8,Voo)],64)):n.code=="gpay"?(h(),g("img",{key:1,src:i.logo.google,alt:"Google pay",width:"32"},null,8,qoo)):n.code=="apple_pay"?(h(),g("img",{key:2,src:i.logo.apple,alt:"Apple pay",width:"32"},null,8,Yoo)):D("",!0)]),c("span",Woo,m(e.$tm("payment.type.payment_card.type")[n.code]),1)],2)}const bde=U(Uoo,[["render",Goo]]),Zoo={components:{PaymentCardButton:bde},computed:{applePayAvailable(){return window.ApplePaySession&&window.ApplePaySession.canMakePayments()}}},Koo={class:"d-flex flex-wrap gap-2"};function Joo(e,t,n,o,i,r){const s=y("PaymentCardButton");return h(),g("div",Koo,[b(s,{code:"payment_card"}),r.applePayAvailable?D("",!0):(h(),W(s,{key:0,code:"gpay"})),r.applePayAvailable?(h(),W(s,{key:1,code:"apple_pay"})):D("",!0)])}const Xoo=U(Zoo,[["render",Joo]]),Qoo={components:{BankButtons:Noo,PaymentBox:_de,PaymentCardButtons:Xoo},props:{instrument:{type:String,required:!0}},data(){return{coins:Pg,coinsGray:N6}},computed:{...sn({credit:e=>e.auth.credit,priceBruttoAllDiscounts:e=>e.cart.price_brutto_all_discounts}),enoughCredit(){return this.credit>=this.priceBruttoAllDiscounts}},methods:{selectPaymentCard(){this.$store.dispatch("payment/select",{instrument:"payment_card",swift:null})},selectDefaultBank(){this.$store.dispatch("payment/select",{instrument:"bank_account",swift:"GIBACZPX"})}}},eio={class:"medium mb-0"},tio={class:"link-gray-900 text-decoration-underline"},nio=["src"],oio={class:"medium mb-0"},iio={class:"fw-bold"};function rio(e,t,n,o,i,r){const s=y("PaymentCardButtons"),a=y("PaymentBox"),l=y("BankButtons"),d=an("tooltip");return["card","payment_card","gpay","apple_pay"].includes(n.instrument)?(h(),W(a,{key:0,codes:["card","payment_card","gpay","apple_pay"],onRadioChecked:r.selectPaymentCard},{header:F(()=>[z(m(e.$t("payment.type.payment_card.title")),1)]),content:F(()=>[b(s)]),_:1},8,["onRadioChecked"])):n.instrument=="bank_account"?(h(),W(a,{key:1,codes:["bank_account"],onRadioChecked:r.selectDefaultBank},{header:F(()=>[z(m(e.$t("payment.type.bank_account.title")),1)]),content:F(()=>[b(l)]),_:1},8,["onRadioChecked"])):n.instrument=="proforma"?(h(),W(a,{key:2,codes:["proforma"]},{header:F(()=>[z(m(e.$t("payment.type.proforma.title")),1)]),default:F(()=>[c("p",eio,[z(m(e.$t("payment.type.proforma.text.0"))+" ",1),xe((h(),g("span",tio,[z(m(e.$t("payment.type.proforma.text.1")),1)])),[[d,{content:e.$t("payment.type.proforma.tooltip"),delay:{show:500,hide:100},triggers:["hover"]}]]),z(" "+m(e.$t("payment.type.proforma.text.2")),1)])]),_:1})):n.instrument=="credit"?(h(),W(a,{key:3,codes:["credit"],disabled:!r.enoughCredit},{header:F(()=>[z(m(e.$t("payment.type.credit.title"))+" ",1),c("img",{src:r.enoughCredit?i.coins:i.coinsGray,height:"24",class:"ms-icon"},null,8,nio)]),default:F(()=>[c("p",oio,[z(m(e.$t("credit.actual")+":")+" ",1),c("span",iio,m(e.credit.toLocaleString())+" "+m(e.$t("currency.short")),1)])]),_:1},8,["disabled"])):D("",!0)}const sio=U(Qoo,[["render",rio]]),aio={components:{PaymentBox:_de,PaymentBoxWrapper:sio,AppIcon:Ue,TransitionCollapseHeight:qo,BankButton:yde,PaymentCardButton:bde},props:{creditHidden:{type:Boolean,default:!1},isForSchool:{type:Boolean,default:!1},proformaHidden:{type:Boolean,default:!1},lastPaymentDeactivated:{type:Boolean,default:!1},gap:{type:[Number,String],default:4}},computed:{...sn({lastPaymentInstrument:e=>e.auth.last_payment_instrument,lastPaymentSwift:e=>e.auth.last_payment_swift,paymentSwift:e=>e.payment.swift}),showLastPayment(){return this.lastPaymentInstrument&&!this.isForSchool&&!this.lastPaymentDeactivated}},methods:{showOtherMethods(){this.$store.commit("auth/resetLastPayment")},showLastPaymentHandler(){this.showLastPayment&&!(this.lastPaymentInstrument=="proforma"&&this.proformaHidden)&&this.$store.dispatch("payment/select",{instrument:this.lastPaymentInstrument,swift:this.lastPaymentSwift})}},mounted(){this.showLastPaymentHandler()},watch:{showLastPayment(){this.showLastPaymentHandler()}}},lio={key:0},cio={class:"d-flex alig-items-center"},dio={class:"fw-medium mb-0"},uio={class:"d-flex"};function hio(e,t,n,o,i,r){const s=y("PaymentCardButton"),a=y("PaymentBox"),l=y("BankButton"),d=y("PaymentBoxWrapper"),u=y("AppIcon"),f=y("TransitionCollapseHeight");return h(),g("div",null,[b(f,null,{default:F(()=>[r.showLastPayment&&!(e.lastPaymentInstrument=="proforma"&&n.proformaHidden)&&!(e.lastPaymentInstrument=="credit"&&n.creditHidden)?(h(),g("div",lio,[c("div",cio,[c("p",dio,m(e.$t("credit.payment.last")+":"),1)]),c("div",uio,[["card","payment_card","gpay","apple_pay"].includes(e.lastPaymentInstrument)?(h(),W(a,{key:0,codes:[e.lastPaymentInstrument]},{header:F(()=>[z(m(e.$t("payment.type.payment_card.title")),1)]),content:F(()=>[b(s,{code:e.lastPaymentInstrument},null,8,["code"])]),_:1},8,["codes"])):D("",!0),e.lastPaymentInstrument=="bank_account"?(h(),W(a,{key:1,codes:[e.lastPaymentInstrument],active:e.lastPaymentSwift==e.paymentSwift},{header:F(()=>[z(m(e.$t("payment.type.bank_account.title")),1)]),content:F(()=>[b(l,{swift:e.lastPaymentSwift},null,8,["swift"])]),_:1},8,["codes","active"])):D("",!0),e.lastPaymentInstrument=="credit"&&!n.creditHidden?(h(),W(d,{key:2,instrument:"credit"})):D("",!0),e.lastPaymentInstrument=="proforma"&&!n.proformaHidden?(h(),W(d,{key:3,instrument:"proforma"})):D("",!0)]),c("button",{class:"btn btn-tertiary btn-sm btn-center mt-4",onClick:t[0]||(t[0]=(...p)=>r.showOtherMethods&&r.showOtherMethods(...p))},[z(m(e.$t("credit.payment.change"))+" ",1),b(u,{icon:r.showLastPayment?"chevron-down":"chevron-up",class:"ms-icon"},null,8,["icon"])])])):D("",!0)]),_:1}),b(f,null,{default:F(()=>[!r.showLastPayment||e.lastPaymentInstrument=="proforma"&&n.proformaHidden||e.lastPaymentInstrument=="credit"&&n.creditHidden?(h(),g("div",{key:0,class:J(["d-flex flex-column","gap-"+n.gap])},[n.isForSchool&&!n.proformaHidden?(h(),W(d,{key:0,instrument:"proforma"})):D("",!0),b(d,{instrument:"card"}),b(d,{instrument:"bank_account"}),!n.isForSchool&&!n.proformaHidden?(h(),g(pe,{key:1},[b(d,{instrument:"proforma"}),n.creditHidden?D("",!0):(h(),W(d,{key:0,instrument:"credit"}))],64)):D("",!0)],2)):D("",!0)]),_:1})])}const V6=U(aio,[["render",hio]]),fio={components:{PaymentOptions:V6},data(){return{otherMethodsShown:!1}},computed:{...sn({lastPaymentInstrument:e=>e.auth.last_payment_instrument})}},mio={class:"text-center mb-2"},pio={class:"medium text-center text-gray-700"};function gio(e,t,n,o,i,r){const s=y("PaymentOptions");return h(),g("div",null,[c("h3",mio,m(e.lastPaymentInstrument&&e.lastPaymentInstrument!="credit"?e.$t("credit.payment.last_title"):e.$t("credit.payment.title")),1),c("p",pio,m(e.lastPaymentInstrument&&e.lastPaymentInstrument!="credit"?e.$t("credit.payment.last_info"):e.$t("credit.payment.info")),1),b(s,{"credit-hidden":""})])}const vio=U(fio,[["render",gio]]),_io={components:{AppIcon:Ue,ClearableInput:vde},props:{voucher:{type:Object,default:()=>({code:null,invalid:!1})}},computed:{voucherModel:{get(){return this.voucher},set(e){this.$emit("update:voucher",e)}}},watch:{"voucher.code"(){this.voucherModel.invalid=!1}}},yio={class:"d-flex align-items-center mb-2"},bio={class:"position-absolute cursor-pointer ms-neg-5dot5 bg-gray-300-hover border-circle w-2rem h-2rem btn-center"},kio={class:"mb-0"},wio={class:"col-12 col-md-8"},$io={class:"medium text-gray-700"},Cio={class:"medium text-gray-700"},Sio={key:0,class:"position-absolute text-danger medium mb-0"};function Tio(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ClearableInput");return h(),g("div",null,[c("div",yio,[c("div",bio,[b(s,{icon:"chevron-left",height:24,width:24,class:"",onClick:t[0]||(t[0]=l=>e.$emit("hide-voucher"))})]),c("h3",kio,m(e.$t("voucher.own")),1)]),c("div",wio,[c("p",$io,m(e.$t("voucher.apply.info.0")),1),c("p",Cio,m(e.$t("voucher.apply.info.1")),1)]),b(a,{class:"w-12dot5rem",placeholder:"XXXXX",value:r.voucherModel.code,"onUpdate:value":t[1]||(t[1]=l=>r.voucherModel.code=l)},null,8,["value"]),r.voucherModel.invalid?(h(),g("p",Sio,m(e.$t("voucher.invalid")),1)):D("",!0)])}const Eio=U(_io,[["render",Tio]]),Iio={data(){return{coins:Pg}},computed:{...Oe({auth:"auth/auth"})}},Pio={class:"text-center mb-2"},Aio={class:"text-center medium text-gray-700"},Dio=["href"],xio={class:"d-flex align-items-center bg-success-light rounded px-5 py-3 mx-6"},Oio=["src"],Lio={class:"medium text-gray-700"},Mio={class:"text-success mb-0"};function Nio(e,t,n,o,i,r){return h(),g("div",null,[c("h3",Pio,m(e.$t("credit.confirmation.title")),1),c("p",Aio,[z(m(e.$t("credit.confirmation.info.0"))+" ",1),c("a",{href:e.ziggyRoute("materialy"),class:"text-decoration-underline link-gray-700"},m(e.$t("credit.confirmation.info.1")),9,Dio),z(" "+m(e.$t("credit.confirmation.info.2")),1)]),c("div",xio,[c("img",{src:i.coins,height:"70.84",class:"me-5"},null,8,Oio),c("div",null,[c("span",Lio,m(e.$t("credit.actual")),1),c("h2",Mio,m(e.auth.credit.toLocaleString())+" "+m(e.$t("currency.short")),1)])])])}const Rio=U(Iio,[["render",Nio]]),jio={props:{qr:{type:String,required:!0},account_number:{type:[String,Number],required:!0},variable_symbol:{type:[String,Number],required:!0},amount:{type:[String,Number],required:!0}}},Fio={class:"d-flex justify-content-center align-items-center"},zio={class:"me-4"},Uio=["src"],Bio={class:"text-start mb-2"},Hio={class:"text-gray-800 medium mb-0"},Vio={class:"fw-medium mb-0"},qio={class:"text-start mb-2"},Yio={class:"text-gray-800 medium mb-0"},Wio={class:"fw-medium mb-0"},Gio={class:"text-start"},Zio={class:"text-gray-800 medium mb-0"},Kio={class:"fw-medium mb-0"};function Jio(e,t,n,o,i,r){return h(),g("div",Fio,[c("div",zio,[c("img",{src:n.qr,height:"162",width:"162",alt:"QR"},null,8,Uio)]),c("div",null,[c("div",Bio,[c("p",Hio,m(e.$t("credit.account_number")),1),c("p",Vio,m(n.account_number),1)]),c("div",qio,[c("p",Yio,m(e.$t("credit.variable_symbol")),1),c("p",Wio,m(n.variable_symbol),1)]),c("div",Gio,[c("p",Zio,m(e.$t("public.amount")),1),c("p",Kio,m(n.amount.toLocaleString())+" "+m(e.$t("currency.short")),1)])])])}const DM=U(jio,[["render",Jio]]),Xio={components:{PaymentQrCode:DM},computed:{...sn({data:e=>e.order.data})}},Qio={class:"text-center mb-2"},ero={class:"text-center medium text-gray-700 mb-5 px-6"};function tro(e,t,n,o,i,r){const s=y("PaymentQrCode");return h(),g("div",null,[c("h3",Qio,m(e.$t("credit.confirmation.proforma.title")),1),c("p",ero,m(e.$t("credit.confirmation.proforma.info")),1),b(s,{qr:e.data.qr,account_number:e.data.account_number,variable_symbol:e.data.variable_symbol,amount:e.data.amount},null,8,["qr","account_number","variable_symbol","amount"])])}const nro=U(Xio,[["render",tro]]),oro={components:{ProgressBar:Bno,CreditOrderCreateModalAmount:moo,CreditOrderCreateModalVoucher:Eio,CreditOrderCreateModalPayment:vio,CreditOrderCreateModalConfirmation:Rio,CreditOrderCreateModalConfirmationProforma:nro,AppIcon:Ue},props:{type:String},data(){return{amount:null,amountMinimum:lA.minimum_amount,voucher:{code:null,invalid:!1},isVoucherTab:!1,showConfirmationTab:!1,activeTab:"amount",tabs:["amount","payment","confirmation"],titles:[this.$t("public.amount"),this.$t("public.payment"),this.$t("public.confirmation")],continueButtonTexts:[this.$t("credit.payment.link"),this.$t("credit.increase"),this.$t("public.done")]}},validations(){return{amount:{required:Yt,minValue:Ra(this.amountMinimum),maxValue:Vd(Number.MAX_VALUE)}}},computed:{...Oe({payment:"payment/getPaymentData"}),continueButtonDisableds(){return[!this.amount,!this.paymentValid,!1]},activeTabIndex(){return this.tabs.indexOf(this.activeTab)},continueButtonText(){return this.isVoucherTab?this.$t("voucher.apply.title"):this.continueButtonTexts[this.activeTabIndex]},continueButtonDisabled(){return this.isVoucherTab?!this.voucher.code:this.continueButtonDisableds[this.activeTabIndex]},isPaymentTab(){return this.activeTab=="payment"},isConfirmationTab(){return this.activeTab=="confirmation"},amountTextShown(){return this.amount&&!this.isVoucherTab&&!this.isConfirmationTab},paymentValid(){return this.payment.instrument.length>0&&(this.payment.instrument!=="bank_account"||this.payment.swift!==null)&&this.payment.instrument!=="card"}},methods:{next(){this.isVoucherTab?this.voucherApply():this.isPaymentTab?this.payment.instrument=="proforma"?this.orderProformaCreate():this.orderCreate():this.isConfirmationTab?this.$parent.close():this.activeTab=this.tabs[this.activeTabIndex+1]},back(){this.activeTab=this.tabs[this.activeTabIndex-1]},voucherApply(){this.$parent.loading=!0,this.$store.dispatch("order/credit",{instrument:"voucher",code:this.voucher.code}).then(()=>{window.eventBus.emit("rerender-user-dashboard-header"),this.$store.commit("auth/setLoaded",!1),this.$store.dispatch("auth/load").then(()=>{this.$parent.loading=!1,this.showConfirmationTab=!0,this.activeTab="confirmation",this.isVoucherTab=!1})}).catch(()=>{this.voucher.invalid=!0,this.$parent.loading=!1})},orderProformaCreate(){this.$parent.loading=!0,this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("order/credit",{amount:this.amount}).then(()=>{this.$parent.loading=!1,this.activeTab=this.tabs[this.activeTabIndex+1],this.$store.commit("payment/reset"),this.$store.commit("auth/setLoaded",!1),this.$store.dispatch("auth/load")}).catch(()=>{this.$parent.loading=!1})},orderCreate(){this.$parent.loading=!0,this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("order/credit",{amount:this.amount}).then(e=>{["card","payment_card","gpay","apple_pay"].includes(e.data.method)?window._gopay.checkout({gatewayUrl:e.data.gw_url,inline:!0},function(){window.location.href=e.data.return_url}):e.data.method==="bank_account"&&(window.location.href=e.data.gw_url)}).catch(()=>{this.$parent.loading=!1})},typeUpdateHandler(){this.type==="credit-order-create-confirmation"?(this.activeTab="confirmation",this.showConfirmationTab=!0):this.type==="credit-order-create-voucher"?this.isVoucherTab=!0:this.activeTab="amount"}},mounted(){this.typeUpdateHandler()},setup(){return{v$:Pn()}},watch:{type(){this.typeUpdateHandler()}}},iro={class:"modal-header px-6 py-4 border-bottom justify-content-center"},rro={class:"modal-body px-6 py-4"},sro={class:"modal-footer border-top d-flex align-items-center justify-content-between px-6 py-4"},aro={key:0,class:"medium text-gray-800"};function lro(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ProgressBar"),l=y("CreditOrderCreateModalConfirmation"),d=y("CreditOrderCreateModalAmount"),u=y("CreditOrderCreateModalVoucher"),f=y("CreditOrderCreateModalPayment"),p=y("CreditOrderCreateModalConfirmationProforma");return h(),g("div",null,[c("div",iro,[r.isPaymentTab?(h(),g("button",{key:0,class:"btn btn-tertiary btn-sm btn-center position-absolute start-0 ms-4",onClick:t[0]||(t[0]=(...v)=>r.back&&r.back(...v))},[b(s,{icon:"chevron-left",class:"me-icon"}),z(" "+m(e.$t("public.back")),1)])):D("",!0),b(a,{titles:i.titles,tabs:i.tabs,"active-tab":i.activeTab},null,8,["titles","tabs","active-tab"])]),c("div",rro,[i.showConfirmationTab?(h(),W(l,{key:0})):(h(),g(pe,{key:1},[i.activeTab==i.tabs[0]&&!i.isVoucherTab?(h(),W(d,{key:0,amount:i.amount,"onUpdate:amount":t[1]||(t[1]=v=>i.amount=v),onShowVoucher:t[2]||(t[2]=v=>i.isVoucherTab=!0)},null,8,["amount"])):D("",!0),i.activeTab==i.tabs[0]&&i.isVoucherTab?(h(),W(u,{key:1,voucher:i.voucher,"onUpdate:voucher":t[3]||(t[3]=v=>i.voucher=v),onHideVoucher:t[4]||(t[4]=v=>i.isVoucherTab=!1)},null,8,["voucher"])):D("",!0),i.activeTab==i.tabs[1]?(h(),W(f,{key:2})):D("",!0),i.activeTab==i.tabs[2]?(h(),W(p,{key:3,"active-tab":i.activeTab,"onUpdate:activeTab":t[5]||(t[5]=v=>i.activeTab=v)},null,8,["active-tab"])):D("",!0)],64))]),c("div",sro,[c("div",null,[r.amountTextShown?(h(),g("span",aro,m(e.$t("credit.amount.info"))+" "+m(Number(i.amount).toLocaleString())+" "+m(e.$t("currency.short")),1)):D("",!0)]),c("button",{class:J(["btn btn-primary btn-sm btn-center m-0",{disabled:r.continueButtonDisabled}]),onClick:t[6]||(t[6]=(...v)=>r.next&&r.next(...v))},[z(m(r.continueButtonText)+" ",1),r.isConfirmationTab?D("",!0):(h(),W(s,{key:0,icon:"chevron-right",class:"ms-icon"}))],2)])])}const cro=U(oro,[["render",lro]]),dro={types:{"user-invoice-data-update":{width:572,queryAvailable:!1,authorization:"guest"},"user-name-set":{width:452,queryAvailable:!1,authorization:"guest"},"discount-automatic-info":{width:747,queryAvailable:!1,authorization:"author"},"credit-info":{width:747,queryAvailable:!1,authorization:"user"},"credit-order-create":{width:726,queryAvailable:!0,authorization:"user"},"credit-order-create-amount":{width:726,queryAvailable:!1,authorization:"user"},"credit-order-create-voucher":{width:726,queryAvailable:!0,authorization:"user"},"credit-order-create-payment":{width:726,queryAvailable:!1,authorization:"user"},"credit-order-create-confirmation":{width:726,queryAvailable:!0,authorization:"user"}}},uro=""+new URL("discount_info_step_1-663f51a4.svg",import.meta.url).href,hro=""+new URL("discount_info_step_2-330fd512.svg",import.meta.url).href,fro=""+new URL("discount_info_step_3-bddce8e6.svg",import.meta.url).href,mro={data(){return{discountInfoStep1:uro,discountInfoStep2:hro,discountInfoStep3:fro}},methods:{close(){this.$emit("close")}}},pro={class:"modal-header d-flex justify-content-center p-4"},gro={class:"mb-0"},vro={class:"modal-body py-0 px-6"},_ro={class:"d-flex align-items-center"},yro={class:"col-12 col-sm-4 d-flex flex-column align-items-center"},bro=["src"],kro={class:"text-center fw-medium mb-0"},wro={class:"col-12 col-sm-4 d-flex flex-column align-items-center mt-3 mt-sm-0"},$ro=["src"],Cro={class:"text-center fw-medium mb-0"},Sro={class:"col-12 col-sm-4 d-flex flex-column align-items-center mt-3 mt-sm-0"},Tro=["src"],Ero={class:"text-center fw-medium mb-0"},Iro={class:"modal-footer justify-content-center p-4"},Pro={class:"d-flex justify-content-center"};function Aro(e,t,n,o,i,r){return h(),g("div",null,[c("div",pro,[c("h3",gro,m(e.$t("discount.info_modal.headline")),1)]),c("div",vro,[c("div",_ro,[c("div",yro,[c("img",{src:i.discountInfoStep1,height:"82.719",class:"mb-4"},null,8,bro),c("p",kro,m(e.$t("discount.info_modal.steps.0")),1)]),c("div",wro,[c("img",{src:i.discountInfoStep2,height:"88",class:"mb-4"},null,8,$ro),c("p",Cro,m(e.$t("discount.info_modal.steps.1")),1)]),c("div",Sro,[c("img",{src:i.discountInfoStep3,height:"110",class:"mb-4"},null,8,Tro),c("p",Ero,m(e.$t("discount.info_modal.steps.2")),1)])])]),c("div",Iro,[c("div",Pro,[c("button",{class:"btn btn-primary",onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s))},m(e.$t("public.acknowledge")),1)])])])}const Dro=U(mro,[["render",Aro]]),xro={components:{Loading:Rt,UserInvoiceDataUpdateForm:Ble},data(){return{primaryColor:window.primaryColor,loading:!1,invoiceDataCopy:{...this.invoiceData}}},computed:{...sn({invoiceData:e=>e.auth.invoice_data})},methods:{update(){this.$refs["user-invoice-data-update-form"].update().then(()=>{this.$parent.close(),this.$store.commit("auth/setLoaded",!1),this.$store.dispatch("auth/load")})}},watch:{invoiceData:{handler(e){this.invoiceDataCopy={...e}},deep:!0,immediate:!0}}},Oro={class:"modal-header flex-column align-items-start p-4 pb-0"},Lro={class:"text-gray-700 mb-0"},Mro={class:"modal-body vl-parent p-4"},Nro={class:"modal-footer border-top p-4"};function Rro(e,t,n,o,i,r){const s=y("Loading"),a=y("UserInvoiceDataUpdateForm");return h(),g("div",null,[c("div",Oro,[c("h4",null,m(e.$t("cart.edit_invoice_data_modal.title")),1),c("p",Lro,m(e.$t("cart.edit_invoice_data_modal.text")),1)]),c("div",Mro,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=l=>i.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),b(a,{loading:i.loading,"onUpdate:loading":t[1]||(t[1]=l=>i.loading=l),"invoice-data":i.invoiceDataCopy,ref:"user-invoice-data-update-form"},null,8,["loading","invoice-data"])]),c("div",Nro,[c("button",{class:"btn btn-primary btn-sm",onClick:t[2]||(t[2]=(...l)=>r.update&&r.update(...l))},m(e.$t("public.save")),1)])])}const jro=U(xro,[["render",Rro]]),Fro={components:{CreditInfoModal:$no,CreditOrderCreateModal:cro,UserNameSetModal:Ono,Loading:Rt,DiscountAutomaticInfoModal:Dro,UserInvoiceDataUpdateModal:jro},data(){return{primaryColor:window.primaryColor,loading:!1,types:dro.types,bootstrapModal:null,type:null}},computed:{...Oe({auth:"auth/auth"}),modalWidth(){return this.type&&this.types[this.type].width?"max-width: "+this.types[this.type].width+"px;":null},authorizationLevel(){return this.type&&this.types[this.type]?this.types[this.type].authorization:void 0},isAuthorized(){return this.authorizationLevel?this.$store.getters["auth/isAuthorized"](this.authorizationLevel):void 0}},methods:{modal(e){if(this.type=e,this.isAuthorized){const t={backdrop:e==="user-name-set"?"static":!0,keyboard:e!=="user-name-set"};this.bootstrapModal=new yf(this.$refs.appModal,t),this.bootstrapModal.show()}},close(){this.bootstrapModal.hide(),this.reset()},reset(){this.type=null,this.resetQueryModal()},resetQueryModal(){let e={...this.$route.query};e.modal!==void 0&&(delete e.modal,this.$router.push({query:e}))},openFromRouteHandler(){let e=this.$route.query.modal;this.auth.id&&e&&Object.keys(this.types).includes(e)&&this.types[e].queryAvailable&&this.modal(e)}},created(){window.appModal=e=>this.modal(e)},mounted(){this.bootstrapModal=new yf(this.$refs.appModal),this.$refs.appModal.addEventListener("hidden.bs.modal",this.hide)},watch:{"auth.id":{handler(){this.openFromRouteHandler(),this.auth.is_name_set===!1&&this.auth.check&&window.appModal("user-name-set")}},$route(){this.openFromRouteHandler()}}},zro={class:"modal fade",tabindex:"-1","aria-hidden":"true",ref:"appModal","aria-labelledby":"App Modal"},Uro={class:"modal-content vl-parent"};function Bro(e,t,n,o,i,r){const s=y("Loading"),a=y("UserInvoiceDataUpdateModal"),l=y("UserNameSetModal"),d=y("CreditInfoModal"),u=y("DiscountAutomaticInfoModal"),f=y("CreditOrderCreateModal");return h(),g("div",zro,[c("div",{class:"modal-dialog modal-dialog-centered modal-ku",style:Bn(r.modalWidth)},[c("div",Uro,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=p=>i.loading=p),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),i.type!=="user-name-set"?(h(),g("button",{key:0,type:"button",class:"btn-close position-absolute top-0 end-0 me-4 mt-4","data-bs-dismiss":"modal","aria-label":"Close",onClick:t[1]||(t[1]=(...p)=>r.close&&r.close(...p))})):D("",!0),i.type=="user-invoice-data-update"?(h(),W(a,{key:1})):D("",!0),i.type=="user-name-set"?(h(),W(l,{key:2})):D("",!0),i.type=="credit-info"?(h(),W(d,{key:3,onClose:r.close},null,8,["onClose"])):D("",!0),i.type=="discount-automatic-info"?(h(),W(u,{key:4,onClose:r.close},null,8,["onClose"])):D("",!0),i.type=="credit-order-create"||i.type=="credit-order-create-voucher"||i.type=="credit-order-create-confirmation"?(h(),W(f,{key:5,type:i.type},null,8,["type"])):D("",!0)])],4)],512)}const Hro=U(Fro,[["render",Bro]]),Vro={components:{AppIcon:Ue,UserIcon:lL},props:{name:String,image:String,id:Number,isFavouriteAuthor:Boolean,isAuthorVerified:Boolean,followersCount:String},data(){return{changed:!1,loading:!1,isFavourite:this.isFavouriteAuthor,followersCountData:this.followersCount,userToAdd:this.id}},computed:{...Oe({auth:"auth/auth"})},methods:{changeFavouriteState(){this.loading||(this.auth.check?(this.loading=!0,Ju.addToFavourite(this.userToAdd,!this.isFavourite).then(e=>{this.isFavourite,this.changed=!0,this.isFavourite=!this.isFavourite,this.followersCountData=e.data.followers_count,this.loading=!1}).catch(e=>{var t,n,o;((t=e==null?void 0:e.response)==null?void 0:t.status)===500?window.flash(this.$t("public.unknown_error"),"error"):(o=(n=e==null?void 0:e.response)==null?void 0:n.data)!=null&&o.message&&window.flash(e.response.data.message,"error"),this.loading=!1})):window.loginRegisterModal(window.location.href))}}},qro={key:0,class:"border-top-2 border-bottom-2 py-4"},Yro={class:"row"},Wro={class:"col-6 d-flex align-items-center"},Gro=["href"],Zro={class:"ms-3"},Kro=["href"],Jro={class:"text-gray"},Xro={class:"col-6 d-flex align-items-center justify-content-end"},Qro=["disabled","data-lb-action","data-action-attitude"],eso={key:0},tso={key:0},nso={key:1},oso={key:1};function iso(e,t,n,o,i,r){const s=y("UserIcon"),a=y("AppIcon");return n.id?(h(),g("div",qro,[c("div",Yro,[c("div",Wro,[c("a",{href:e.ziggyRoute("user.show",n.id)},[b(s,{"alt-text":n.name,image:n.image,"is-verified":n.isAuthorVerified,"max-height":"38px"},null,8,["alt-text","image","is-verified"])],8,Gro),c("div",Zro,[c("a",{href:e.ziggyRoute("user.show",n.id)},m(n.name),9,Kro),c("div",Jro,m(i.followersCountData),1)])]),c("div",Xro,[c("button",{class:J(["btn","btn-tertiary","btn-sm",i.isFavourite&&!i.loading?"text-danger":""]),disabled:i.loading,onClick:t[0]||(t[0]=(...l)=>r.changeFavouriteState&&r.changeFavouriteState(...l)),"data-lb-action":i.isFavourite?"author-unfollow":"author-follow","data-action-attitude":i.isFavourite?"negative":"positive"},[i.loading?(h(),g("span",oso,[b(a,{icon:"cog",spin:!0})])):(h(),g("span",eso,[i.isFavourite?(h(),g("span",tso,m(e.$t("author.favourite.remove")),1)):(h(),g("span",nso,m(e.$t("author.favourite.add")),1))]))],10,Qro)])])])):D("",!0)}const rso=U(Vro,[["render",iso]]),sso={components:{CartProductAddButton:f6},props:{product:{type:Object,required:!0}},computed:{...Oe({isInCart:"cart/isItemInCart"}),isAdded(){return this.isInCart(this.product.id)}}},aso=["href"];function lso(e,t,n,o,i,r){const s=y("app-icon"),a=y("CartProductAddButton");return h(),g("div",null,[b(a,{product:n.product,"class-custom":"btn btn-primary btn-center w-100 text-truncate",disabled:r.isAdded,context:"detail","tooltip-hidden":""},{default:F(()=>[r.isAdded?(h(),g(pe,{key:0},[z(m(e.$t("cart.product_already_in_cart"))+" ",1),b(s,{icon:"basket",class:"ms-icon",height:"20",width:"20"})],64)):(h(),g(pe,{key:1},[b(s,{icon:"basket",class:"me-icon",height:"20",width:"20"}),z(" "+m(e.$t("cart.into_cart")),1)],64))]),_:1},8,["product","disabled"]),r.isAdded?(h(),g("a",{key:0,href:e.ziggyRoute("cart.index"),class:"btn btn-tertiary btn-center w-100 mt-3 text-truncate"},[z(m(e.$t("cart.navigate"))+" ",1),b(s,{icon:"chevron-right",class:"ms-icon",height:"20",width:"20"})],8,aso)):D("",!0)])}const cso=U(sso,[["render",lso]]),dso={components:{AppIcon:Ue,Loading:Rt,CartProductDetailButton:cso},props:{product:{type:Object,default(){return{}}},alreadyBought:{type:Boolean,default:!1}},data(){return{coins:Pg,coinsGray:N6,primaryColor:window.primaryColor,loadingOrderExpedited:!1}},computed:{possibleToAddToWish(){return!this.addedToWishList},...Oe({auth:"auth/auth",isInCart:"cart/isItemInCart",loadingCart:"cart/loading"}),enoughCredit(){return this.product.author_discount?this.auth.credit>=this.product.author_discount.new_price:this.auth.credit>=this.product.price},isAdded(){return this.isInCart(this.product.id)},loading(){return this.loadingOrderExpedited||this.loadingCart}},methods:{webinarInfo(){window.location.href=this.ziggyRoute("product.show",{id:this.product.id})},openDetail(){window.location.href=this.ziggyRoute("product.show",{id:this.product.id})},openCreditOrderCreateModal(){window.appModal("credit-order-create")},placeExpedited(){this.loadingOrderExpedited=!0,sy.placeExpedited(this.product.id).then(()=>{this.loadingOrderExpedited=!1,window.flash(null,"success",7500,"FlashCompProductCreditPayment",{product:this.product,width:309}),this.$emit("reload"),this.$store.commit("auth/setLoaded",!1),this.$store.dispatch("auth/load")}).catch(e=>{this.loadingOrderExpedited=!1,window.flash(e.message,"error")})},download(){window.eventBus.emit("flash-product-credit-payment-hide"),window.location.href=this.ziggyRoute("downloads.download",{product:this.product.id})}}},uso={class:"col-12 vl-parent"},hso={key:0,class:"w-100 btn btn-danger bg-danger-light border-none mb-3 cursor-default"},fso={class:"text-danger medium fw-medium"},mso={key:1,class:"w-100 btn btn-primary bg-gray-300 border-none",disabled:""},pso={class:"text-gray-800 medium fw-medium"},gso={key:2,class:"row"},vso=["disabled"],_so=["src"],yso={class:"d-flex align-items-center justify-content-center"},bso={class:"small text-center text-gray-700 h-0dot75rem fw-medium mb-0"};function kso(e,t,n,o,i,r){const s=y("Loading"),a=y("CartProductDetailButton"),l=y("AppIcon"),d=an("tooltip");return h(),g("div",uso,[b(s,{active:r.loading,"onUpdate:active":t[0]||(t[0]=u=>r.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),n.product.status!==1||n.product.hidden||n.product.deleted_at?(h(),g("div",hso,[c("span",fso,m(e.$t("product.product_is_not_for_sale")),1)])):D("",!0),n.alreadyBought?(h(),g("button",mso,[c("span",pso,m(e.$t("cart.already_bought")),1)])):D("",!0),n.alreadyBought?(h(),g("a",{key:3,class:"btn btn-primary btn-center w-100 mt-3",onClick:t[3]||(t[3]=(...u)=>r.download&&r.download(...u))},[z(m(e.$t("product.download"))+" ",1),b(l,{icon:"download",class:"ms-icon",height:"20",width:"20"})])):(h(),g("div",gso,[c("div",{class:J(["col-12",{"col-lg-6 pe-lg-2":e.auth.check&&!r.isAdded}])},[b(a,{product:n.product},null,8,["product"])],2),e.auth.check?(h(),g("div",{key:0,class:J(["col-12 mt-3",{"col-lg-6 mt-lg-0 ps-lg-2":!r.isAdded}])},[xe((h(),g("div",null,[c("button",{class:"btn btn-secondary btn-center h-3rem w-100 mb-2",disabled:!r.enoughCredit,onClick:t[1]||(t[1]=(...u)=>r.placeExpedited&&r.placeExpedited(...u))},[c("img",{src:r.enoughCredit?i.coins:i.coinsGray,height:"30",class:"me-icon"},null,8,_so),z(" "+m(e.$t("cart.payment.instant")),1)],8,vso)])),[[d,{content:r.enoughCredit?null:e.$t("credit.increase_info"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),c("div",yso,[c("p",bso,m(e.$t("credit.actual_personal")+":")+" "+m(e.auth.credit.toLocaleString())+" "+m(e.$t("currency.short")),1),r.enoughCredit?D("",!0):xe((h(),g("div",{key:0,class:"text-primary cursor-pointer ms-2",onClick:t[2]||(t[2]=(...u)=>r.openCreditOrderCreateModal&&r.openCreditOrderCreateModal(...u))},[b(l,{icon:"plus-circle",height:24,width:24})])),[[d,{content:e.$t("credit.increase"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])],2)):D("",!0)]))])}const wso=U(dso,[["render",kso]]);const $so={props:{alt:{type:String,default(){return null}},images:{type:Array,default(){return[]}},thumbnails:{type:Array,default(){return[]}}},data(){return{index:null,leftSideImageListHeight:500,selectedImageIndex:0}},components:{AppIcon:Ue},methods:{open(e){this.$emit("open",e)},incrementSelected(){this.selectedImageIndex>=this.thumbnails.length-1?this.selectedImageIndex=0:this.selectedImageIndex+=1},decrementSelected(){this.selectedImageIndex=Math.max(this.selectedImageIndex-1,0)}},watch:{selectedImageIndex(e){this.$scrollTo("#left-image-"+e,{duration:150,offset:-128,container:this.$refs["left-side-images"]})}}},Cso={class:"gallery-wrapper"},Sso={class:"d-lg-inline-flex flex-lg-row d-block align-items-center justify-content-between w-100"},Tso={key:0,class:"gallery-images-left"},Eso={class:"d-flex justify-content-center align-items-center d-none d-lg-flex"},Iso={class:"d-flex flex-column left-side-images-scroll gap-2 gap-lg-0 d-none d-lg-flex",ref:"left-side-images"},Pso=["onClick","src","alt","id"],Aso={class:"d-flex justify-content-center align-items-center d-none d-lg-flex order-2 order-lg-1"},Dso={class:"w-100"},xso={class:"d-flex justify-content-center"},Oso=["src","alt"],Lso={class:"d-flex gap-2 gap-lg-0 d-lg-none horizontal-scroll-mobile"},Mso=["onClick","src","alt","id"];function Nso(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Cso,[c("div",Sso,[n.images.length>0?(h(),g("div",Tso,[c("div",Eso,[c("button",{class:"btn btn-secondary w-3rem h-3rem d-flex justify-content-center align-items-center",ref:"chevron-icon",onClick:t[0]||(t[0]=a=>r.decrementSelected())},[b(s,{icon:"chevron-up",height:"16",width:"16",class:"position-absolute"})],512)]),c("div",Iso,[(h(!0),g(pe,null,Me(n.thumbnails,(a,l)=>(h(),g("div",{class:"mt-2 d-flex flex-column cursor-pointer",key:l},[c("img",{onClick:d=>i.selectedImageIndex=l,src:a,alt:n.alt,id:"left-image-"+l,class:J(["img-fluid","gallery-thumbnail",l===i.selectedImageIndex?"border-gray-800-2":""])},null,10,Pso)]))),128))],512),c("div",Aso,[c("button",{class:"btn btn-secondary w-3rem h-3rem mt-2 d-flex justify-content-center align-items-center",onClick:t[1]||(t[1]=a=>r.incrementSelected())},[b(s,{icon:"chevron-down",height:"16",width:"16",class:"position-absolute"})])])])):D("",!0),c("div",Dso,[c("div",xso,[c("img",{src:n.images[i.selectedImageIndex],alt:n.alt,class:"gallery-img-big cursor-pointer img-fluid",onClick:t[2]||(t[2]=a=>r.open(i.selectedImageIndex)),ref:"big-image"},null,8,Oso)])]),c("div",Lso,[(h(!0),g(pe,null,Me(n.thumbnails,(a,l)=>(h(),g("div",{class:"mt-2 cursor-pointer",key:l},[c("img",{onClick:d=>i.selectedImageIndex=l,src:a,alt:n.alt,id:"left-image-"+l,class:J(["img-fluid","gallery-thumbnail",l===i.selectedImageIndex?"border-gray-800-2":""])},null,10,Mso)]))),128))])])])}const Rso=U($so,[["render",Nso],["__scopeId","data-v-9b8bfe9a"]]);(function(){function e(n,o){var i;for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i]);return n}function t(n){if(!this||this.find!==t.prototype.find)return new t(n);if(this.length=0,n)if(typeof n=="string"&&(n=this.find(n)),n.nodeType||n===n.window)this.length=1,this[0]=n;else{var o=n.length;for(this.length=o;o;)o-=1,this[o]=n[o]}}t.extend=e,t.contains=function(n,o){do if(o=o.parentNode,o===n)return!0;while(o);return!1},t.parseJSON=function(n){return JSON.parse(n)},e(t.prototype,{find:function(n){var o=this[0]||document;return typeof n=="string"&&(o.querySelectorAll?n=o.querySelectorAll(n):n.charAt(0)==="#"?n=o.getElementById(n.slice(1)):n=o.getElementsByTagName(n)),new t(n)},hasClass:function(n){return this[0]?new RegExp("(?:^|\\s+)"+n+"(?:\\s+|$)").test(this[0].className):!1},addClass:function(n){for(var o=this.length,i,r,s;o;){if(o-=1,r=this[o],!r.className){r.className=n;continue}for(i||(i=n.split(/\s+/)),s=0;s<i.length;s+=1)this.hasClass(i[s])||(r.className+=" "+i[s])}return this},removeClass:function(n){for(var o=new RegExp("^(?:"+n.split(/\s+/).join("|")+")$"),i=/(\S+)(?:\s+|$)/g,r=function(d,u){return o.test(u)?"":d},s=/\s+$/,a=this.length,l;a;)a-=1,l=this[a],l.className=l.className.replace(i,r).replace(s,"");return this},on:function(n,o){for(var i=n.split(/\s+/),r,s;i.length;)for(n=i.shift(),r=this.length;r;)r-=1,s=this[r],s.addEventListener?s.addEventListener(n,o,!1):s.attachEvent&&s.attachEvent("on"+n,o);return this},off:function(n,o){for(var i=n.split(/\s+/),r,s;i.length;)for(n=i.shift(),r=this.length;r;)r-=1,s=this[r],s.removeEventListener?s.removeEventListener(n,o,!1):s.detachEvent&&s.detachEvent("on"+n,o);return this},empty:function(){for(var n=this.length,o;n;)for(n-=1,o=this[n];o.hasChildNodes();)o.removeChild(o.lastChild);return this},first:function(){return new t(this[0])}}),typeof define=="function"&&define.amd?define(function(){return t}):(window.blueimp=window.blueimp||{},window.blueimp.helper=t)})();(function(e){typeof define=="function"&&define.amd?define(["./blueimp-helper"],e):(window.blueimp=window.blueimp||{},window.blueimp.Gallery=e(window.blueimp.helper||window.jQuery))})(function(e){function t(n,o){if(document.body.style.maxHeight===void 0)return null;if(!this||this.options!==t.prototype.options)return new t(n,o);if(!n||!n.length){this.console.log("blueimp Gallery: No or empty list provided as first argument.",n);return}this.list=n,this.num=n.length,this.initOptions(o),this.initialize()}return e.extend(t.prototype,{options:{container:"#blueimp-gallery",slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display",controlsClass:"blueimp-gallery-controls",singleClass:"blueimp-gallery-single",leftEdgeClass:"blueimp-gallery-left",rightEdgeClass:"blueimp-gallery-right",playingClass:"blueimp-gallery-playing",svgasimgClass:"blueimp-gallery-svgasimg",smilClass:"blueimp-gallery-smil",slideClass:"slide",slideActiveClass:"slide-active",slidePrevClass:"slide-prev",slideNextClass:"slide-next",slideLoadingClass:"slide-loading",slideErrorClass:"slide-error",slideContentClass:"slide-content",toggleClass:"toggle",prevClass:"prev",nextClass:"next",closeClass:"close",playPauseClass:"play-pause",typeProperty:"type",titleProperty:"title",altTextProperty:"alt",urlProperty:"href",srcsetProperty:"srcset",sizesProperty:"sizes",sourcesProperty:"sources",displayTransition:!0,clearSlides:!0,toggleControlsOnEnter:!0,toggleControlsOnSlideClick:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,closeOnHashChange:!0,emulateTouchEvents:!0,stopTouchEventsPropagation:!1,hidePageScrollbars:!0,disableScroll:!0,carousel:!1,continuous:!0,unloadElements:!0,startSlideshow:!1,slideshowInterval:5e3,slideshowDirection:"ltr",index:0,preloadRange:2,transitionDuration:300,slideshowTransitionDuration:500,event:void 0,onopen:void 0,onopened:void 0,onslide:void 0,onslideend:void 0,onslidecomplete:void 0,onclose:void 0,onclosed:void 0},carouselOptions:{hidePageScrollbars:!1,toggleControlsOnEnter:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,closeOnHashChange:!1,disableScroll:!1,startSlideshow:!0},console:window.console&&typeof window.console.log=="function"?window.console:{log:function(){}},support:function(n){var o={source:!!window.HTMLSourceElement,picture:!!window.HTMLPictureElement,svgasimg:document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),smil:!!document.createElementNS&&/SVGAnimate/.test(document.createElementNS("http://www.w3.org/2000/svg","animate").toString()),touch:window.ontouchstart!==void 0||window.DocumentTouch&&document instanceof DocumentTouch},i={webkitTransition:{end:"webkitTransitionEnd",prefix:"-webkit-"},MozTransition:{end:"transitionend",prefix:"-moz-"},OTransition:{end:"otransitionend",prefix:"-o-"},transition:{end:"transitionend",prefix:""}},r;for(r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&n.style[r]!==void 0){o.transition=i[r],o.transition.name=r;break}function s(){var a=o.transition,l,d;document.body.appendChild(n),a&&(l=a.name.slice(0,-9)+"ransform",n.style[l]!==void 0&&(n.style[l]="translateZ(0)",d=window.getComputedStyle(n).getPropertyValue(a.prefix+"transform"),o.transform={prefix:a.prefix,name:l,translate:!0,translateZ:!!d&&d!=="none"})),document.body.removeChild(n)}return document.body?s():e(document).on("DOMContentLoaded",s),o}(document.createElement("div")),requestAnimationFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,cancelAnimationFrame:window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame,initialize:function(){if(this.initStartIndex(),this.initWidget()===!1)return!1;this.initEventListeners(),this.onslide(this.index),this.ontransitionend(),this.options.startSlideshow&&this.play()},slide:function(n,o){window.clearTimeout(this.timeout);var i=this.index,r,s,a;if(!(i===n||this.num===1)){if(o||(o=this.options.transitionDuration),this.support.transform){for(this.options.continuous||(n=this.circle(n)),r=Math.abs(i-n)/(i-n),this.options.continuous&&(s=r,r=-this.positions[this.circle(n)]/this.slideWidth,r!==s&&(n=-r*this.num+n)),a=Math.abs(i-n)-1;a;)a-=1,this.move(this.circle((n>i?n:i)-a-1),this.slideWidth*r,0);n=this.circle(n),this.move(i,this.slideWidth*r,o),this.move(n,0,o),this.options.continuous&&this.move(this.circle(n-r),-(this.slideWidth*r),0)}else n=this.circle(n),this.animate(i*-this.slideWidth,n*-this.slideWidth,o);this.onslide(n)}},getIndex:function(){return this.index},getNumber:function(){return this.num},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1)},next:function(){(this.options.continuous||this.index<this.num-1)&&this.slide(this.index+1)},play:function(n){var o=this,i=this.index+(this.options.slideshowDirection==="rtl"?-1:1);window.clearTimeout(this.timeout),this.interval=n||this.options.slideshowInterval,this.elements[this.index]>1&&(this.timeout=this.setTimeout(!this.requestAnimationFrame&&this.slide||function(r,s){o.animationFrameId=o.requestAnimationFrame.call(window,function(){o.slide(r,s)})},[i,this.options.slideshowTransitionDuration],this.interval)),this.container.addClass(this.options.playingClass),this.slidesContainer[0].setAttribute("aria-live","off"),this.playPauseElement.length&&this.playPauseElement[0].setAttribute("aria-pressed","true")},pause:function(){window.clearTimeout(this.timeout),this.interval=null,this.cancelAnimationFrame&&(this.cancelAnimationFrame.call(window,this.animationFrameId),this.animationFrameId=null),this.container.removeClass(this.options.playingClass),this.slidesContainer[0].setAttribute("aria-live","polite"),this.playPauseElement.length&&this.playPauseElement[0].setAttribute("aria-pressed","false")},add:function(n){var o;for(n.concat||(n=Array.prototype.slice.call(n)),this.list.concat||(this.list=Array.prototype.slice.call(this.list)),this.list=this.list.concat(n),this.num=this.list.length,this.num>2&&this.options.continuous===null&&(this.options.continuous=!0,this.container.removeClass(this.options.leftEdgeClass)),this.container.removeClass(this.options.rightEdgeClass).removeClass(this.options.singleClass),o=this.num-n.length;o<this.num;o+=1)this.addSlide(o),this.positionSlide(o);this.positions.length=this.num,this.initSlides(!0)},resetSlides:function(){this.slidesContainer.empty(),this.unloadAllSlides(),this.slides=[]},handleClose:function(){var n=this.options;this.destroyEventListeners(),this.pause(),this.container[0].style.display="none",this.container.removeClass(n.displayClass).removeClass(n.singleClass).removeClass(n.leftEdgeClass).removeClass(n.rightEdgeClass),n.hidePageScrollbars&&(document.body.style.overflow=this.bodyOverflowStyle),this.options.clearSlides&&this.resetSlides(),this.options.onclosed&&this.options.onclosed.call(this)},close:function(){var n=this;function o(i){i.target===n.container[0]&&(n.container.off(n.support.transition.end,o),n.handleClose())}this.options.onclose&&this.options.onclose.call(this),this.support.transition&&this.options.displayTransition?(this.container.on(this.support.transition.end,o),this.container.removeClass(this.options.displayClass)):this.handleClose()},circle:function(n){return(this.num+n%this.num)%this.num},move:function(n,o,i){this.translateX(n,o,i),this.positions[n]=o},translate:function(n,o,i,r){if(this.slides[n]){var s=this.slides[n].style,a=this.support.transition,l=this.support.transform;s[a.name+"Duration"]=r+"ms",s[l.name]="translate("+o+"px, "+i+"px)"+(l.translateZ?" translateZ(0)":"")}},translateX:function(n,o,i){this.translate(n,o,0,i)},translateY:function(n,o,i){this.translate(n,0,o,i)},animate:function(n,o,i){if(!i){this.slidesContainer[0].style.left=o+"px";return}var r=this,s=new Date().getTime(),a=window.setInterval(function(){var l=new Date().getTime()-s;if(l>i){r.slidesContainer[0].style.left=o+"px",r.ontransitionend(),window.clearInterval(a);return}r.slidesContainer[0].style.left=(o-n)*(Math.floor(l/i*100)/100)+n+"px"},4)},preventDefault:function(n){n.preventDefault?n.preventDefault():n.returnValue=!1},stopPropagation:function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},onresize:function(){this.initSlides(!0)},onhashchange:function(){this.options.closeOnHashChange&&this.close()},onmousedown:function(n){n.which&&n.which===1&&n.target.nodeName!=="VIDEO"&&n.target.nodeName!=="AUDIO"&&(n.preventDefault(),(n.originalEvent||n).touches=[{pageX:n.pageX,pageY:n.pageY}],this.ontouchstart(n))},onmousemove:function(n){this.touchStart&&((n.originalEvent||n).touches=[{pageX:n.pageX,pageY:n.pageY}],this.ontouchmove(n))},onmouseup:function(n){this.touchStart&&(this.ontouchend(n),delete this.touchStart)},onmouseout:function(n){if(this.touchStart){var o=n.target,i=n.relatedTarget;(!i||i!==o&&!e.contains(o,i))&&this.onmouseup(n)}},ontouchstart:function(n){this.options.stopTouchEventsPropagation&&this.stopPropagation(n);var o=(n.originalEvent||n).touches[0];this.touchStart={x:o.pageX,y:o.pageY,time:Date.now()},this.isScrolling=void 0,this.touchDelta={}},ontouchmove:function(n){this.options.stopTouchEventsPropagation&&this.stopPropagation(n);var o=(n.originalEvent||n).touches,i=o[0],r=(n.originalEvent||n).scale,s=this.index,a,l;if(!(o.length>1||r&&r!==1))if(this.options.disableScroll&&n.preventDefault(),this.touchDelta={x:i.pageX-this.touchStart.x,y:i.pageY-this.touchStart.y},a=this.touchDelta.x,this.isScrolling===void 0&&(this.isScrolling=this.isScrolling||Math.abs(a)<Math.abs(this.touchDelta.y)),this.isScrolling)this.options.carousel||this.translateY(s,this.touchDelta.y+this.positions[s],0);else for(n.preventDefault(),window.clearTimeout(this.timeout),this.options.continuous?l=[this.circle(s+1),s,this.circle(s-1)]:(this.touchDelta.x=a=a/(!s&&a>0||s===this.num-1&&a<0?Math.abs(a)/this.slideWidth+1:1),l=[s],s&&l.push(s-1),s<this.num-1&&l.unshift(s+1));l.length;)s=l.pop(),this.translateX(s,a+this.positions[s],0)},ontouchend:function(n){this.options.stopTouchEventsPropagation&&this.stopPropagation(n);var o=this.index,i=Math.abs(this.touchDelta.x),r=this.slideWidth,s=Math.ceil(this.options.transitionDuration*(1-i/r)/2),a=i>20,l=!o&&this.touchDelta.x>0||o===this.num-1&&this.touchDelta.x<0,d=!a&&this.options.closeOnSwipeUpOrDown&&Math.abs(this.touchDelta.y)>20,u,f,p,v,_;this.options.continuous&&(l=!1),u=this.touchDelta.x<0?-1:1,this.isScrolling?d?this.close():this.translateY(o,0,s):a&&!l?(f=o+u,p=o-u,v=r*u,_=-r*u,this.options.continuous?(this.move(this.circle(f),v,0),this.move(this.circle(o-2*u),_,0)):f>=0&&f<this.num&&this.move(f,v,0),this.move(o,this.positions[o]+v,s),this.move(this.circle(p),this.positions[this.circle(p)]+v,s),o=this.circle(p),this.onslide(o)):this.options.continuous?(this.move(this.circle(o-1),-r,s),this.move(o,0,s),this.move(this.circle(o+1),r,s)):(o&&this.move(o-1,-r,s),this.move(o,0,s),o<this.num-1&&this.move(o+1,r,s))},ontouchcancel:function(n){this.touchStart&&(this.ontouchend(n),delete this.touchStart)},ontransitionend:function(n){var o=this.slides[this.index];(!n||o===n.target)&&(this.interval&&this.play(),this.setTimeout(this.options.onslideend,[this.index,o]))},oncomplete:function(n){var o=n.target||n.srcElement,i=o&&o.parentNode,r;!o||!i||(r=this.getNodeIndex(i),e(i).removeClass(this.options.slideLoadingClass),n.type==="error"?(e(i).addClass(this.options.slideErrorClass),this.elements[r]=3):this.elements[r]=2,o.clientHeight>this.container[0].clientHeight&&(o.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===i&&this.play(),this.setTimeout(this.options.onslidecomplete,[r,i]))},onload:function(n){this.oncomplete(n)},onerror:function(n){this.oncomplete(n)},onkeydown:function(n){switch(n.which||n.keyCode){case 13:this.options.toggleControlsOnEnter&&(this.preventDefault(n),this.toggleControls());break;case 27:this.options.closeOnEscape&&(this.close(),n.stopImmediatePropagation());break;case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(n),this.toggleSlideshow());break;case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(n),this.prev());break;case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(n),this.next());break}},handleClick:function(n){var o=this.options,i=n.target||n.srcElement,r=i.parentNode;function s(a){return e(i).hasClass(a)||e(r).hasClass(a)}s(o.toggleClass)?(this.preventDefault(n),this.toggleControls()):s(o.prevClass)?(this.preventDefault(n),this.prev()):s(o.nextClass)?(this.preventDefault(n),this.next()):s(o.closeClass)?(this.preventDefault(n),this.close()):s(o.playPauseClass)?(this.preventDefault(n),this.toggleSlideshow()):r===this.slidesContainer[0]?o.closeOnSlideClick?(this.preventDefault(n),this.close()):o.toggleControlsOnSlideClick&&(this.preventDefault(n),this.toggleControls()):r.parentNode&&r.parentNode===this.slidesContainer[0]&&o.toggleControlsOnSlideClick&&(this.preventDefault(n),this.toggleControls())},onclick:function(n){if(this.options.emulateTouchEvents&&this.touchDelta&&(Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.y)>20)){delete this.touchDelta;return}return this.handleClick(n)},updateEdgeClasses:function(n){n?this.container.removeClass(this.options.leftEdgeClass):this.container.addClass(this.options.leftEdgeClass),n===this.num-1?this.container.addClass(this.options.rightEdgeClass):this.container.removeClass(this.options.rightEdgeClass)},updateActiveSlide:function(n,o){for(var i=this.slides,r=this.options,s=[{index:o,method:"addClass",hidden:!1},{index:n,method:"removeClass",hidden:!0}],a,l;s.length;)a=s.pop(),e(i[a.index])[a.method](r.slideActiveClass),l=this.circle(a.index-1),(r.continuous||l<a.index)&&e(i[l])[a.method](r.slidePrevClass),l=this.circle(a.index+1),(r.continuous||l>a.index)&&e(i[l])[a.method](r.slideNextClass);this.slides[n].setAttribute("aria-hidden","true"),this.slides[o].removeAttribute("aria-hidden")},handleSlide:function(n,o){this.options.continuous||this.updateEdgeClasses(o),this.updateActiveSlide(n,o),this.loadElements(o),this.options.unloadElements&&this.unloadElements(n,o),this.setTitle(o)},onslide:function(n){this.handleSlide(this.index,n),this.index=n,this.setTimeout(this.options.onslide,[n,this.slides[n]])},setTitle:function(n){var o=this.slides[n].firstChild,i=o.title||o.alt,r=this.titleElement;r.length&&(this.titleElement.empty(),i&&r[0].appendChild(document.createTextNode(i)))},setTimeout:function(n,o,i){var r=this;return n&&window.setTimeout(function(){n.apply(r,o||[])},i||0)},imageFactory:function(n,o){var i=this.options,r=this,s=n,a=this.imagePrototype.cloneNode(!1),l,d,u,f,p,v,_,k;function C($){if(!d){if($={type:$.type,target:l||a},!$.target.parentNode)return r.setTimeout(C,[$]);d=!0,e(a).off("load error",C),o($)}}if(typeof s!="string"&&(s=this.getItemProperty(n,i.urlProperty),u=this.support.picture&&this.support.source&&this.getItemProperty(n,i.sourcesProperty),f=this.getItemProperty(n,i.srcsetProperty),p=this.getItemProperty(n,i.sizesProperty),v=this.getItemProperty(n,i.titleProperty),_=this.getItemProperty(n,i.altTextProperty)||v),a.draggable=!1,v&&(a.title=v),_&&(a.alt=_),e(a).on("load error",C),u&&u.length){for(l=this.picturePrototype.cloneNode(!1),k=0;k<u.length;k+=1)l.appendChild(e.extend(this.sourcePrototype.cloneNode(!1),u[k]));l.appendChild(a),e(l).addClass(i.toggleClass)}return f&&(p&&(a.sizes=p),a.srcset=f),a.src=s,l||a},createElement:function(n,o){var i=n&&this.getItemProperty(n,this.options.typeProperty),r=i&&this[i.split("/")[0]+"Factory"]||this.imageFactory,s=n&&r.call(this,n,o);return s||(s=this.elementPrototype.cloneNode(!1),this.setTimeout(o,[{type:"error",target:s}])),e(s).addClass(this.options.slideContentClass),s},iteratePreloadRange:function(n,o){var i=this.num,r=this.options,s=Math.min(i,r.preloadRange*2+1),a=n,l;for(l=0;l<s;l+=1){if(a+=l*(l%2===0?-1:1),a<0||a>=i){if(!r.continuous)continue;a=this.circle(a)}o.call(this,a)}},loadElement:function(n){this.elements[n]||(this.slides[n].firstChild?this.elements[n]=e(this.slides[n]).hasClass(this.options.slideErrorClass)?3:2:(this.elements[n]=1,e(this.slides[n]).addClass(this.options.slideLoadingClass),this.slides[n].appendChild(this.createElement(this.list[n],this.proxyListener))))},loadElements:function(n){this.iteratePreloadRange(n,this.loadElement)},unloadElements:function(n,o){var i=this.options.preloadRange;this.iteratePreloadRange(n,function(r){var s=Math.abs(r-o);s>i&&s+i<this.num&&(this.unloadSlide(r),delete this.elements[r])})},addSlide:function(n){var o=this.slidePrototype.cloneNode(!1);o.setAttribute("data-index",n),o.setAttribute("aria-hidden","true"),this.slidesContainer[0].appendChild(o),this.slides.push(o)},positionSlide:function(n){var o=this.slides[n];o.style.width=this.slideWidth+"px",this.support.transform&&(o.style.left=n*-this.slideWidth+"px",this.move(n,this.index>n?-this.slideWidth:this.index<n?this.slideWidth:0,0))},initSlides:function(n){var o,i;for(n||(this.positions=[],this.positions.length=this.num,this.elements={},this.picturePrototype=this.support.picture&&document.createElement("picture"),this.sourcePrototype=this.support.source&&document.createElement("source"),this.imagePrototype=document.createElement("img"),this.elementPrototype=document.createElement("div"),this.slidePrototype=this.elementPrototype.cloneNode(!1),e(this.slidePrototype).addClass(this.options.slideClass),this.slides=this.slidesContainer[0].children,o=this.options.clearSlides||this.slides.length!==this.num),this.slideWidth=this.container[0].clientWidth,this.slideHeight=this.container[0].clientHeight,this.slidesContainer[0].style.width=this.num*this.slideWidth+"px",o&&this.resetSlides(),i=0;i<this.num;i+=1)o&&this.addSlide(i),this.positionSlide(i);this.options.continuous&&this.support.transform&&(this.move(this.circle(this.index-1),-this.slideWidth,0),this.move(this.circle(this.index+1),this.slideWidth,0)),this.support.transform||(this.slidesContainer[0].style.left=this.index*-this.slideWidth+"px")},unloadSlide:function(n){var o,i;o=this.slides[n],i=o.firstChild,i!==null&&o.removeChild(i)},unloadAllSlides:function(){var n,o;for(n=0,o=this.slides.length;n<o;n++)this.unloadSlide(n)},toggleControls:function(){var n=this.options.controlsClass;this.container.hasClass(n)?this.container.removeClass(n):this.container.addClass(n)},toggleSlideshow:function(){this.interval?this.pause():this.play()},getNodeIndex:function(n){return parseInt(n.getAttribute("data-index"),10)},getNestedProperty:function(n,o){return o.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,function(i,r,s,a,l){var d=l||r||s||a&&parseInt(a,10);i&&n&&(n=n[d])}),n},getDataProperty:function(n,o){var i,r;if(n.dataset?(i=o.replace(/-([a-z])/g,function(s,a){return a.toUpperCase()}),r=n.dataset[i]):n.getAttribute&&(r=n.getAttribute("data-"+o.replace(/([A-Z])/g,"-$1").toLowerCase())),typeof r=="string"){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(r))try{return e.parseJSON(r)}catch{}return r}},getItemProperty:function(n,o){var i=this.getDataProperty(n,o);return i===void 0&&(i=n[o]),i===void 0&&(i=this.getNestedProperty(n,o)),i},initStartIndex:function(){var n=this.options.index,o=this.options.urlProperty,i;if(n&&typeof n!="number"){for(i=0;i<this.num;i+=1)if(this.list[i]===n||this.getItemProperty(this.list[i],o)===this.getItemProperty(n,o)){n=i;break}}this.index=this.circle(parseInt(n,10)||0)},initEventListeners:function(){var n=this,o=this.slidesContainer;function i(r){var s=n.support.transition&&n.support.transition.end===r.type?"transitionend":r.type;n["on"+s](r)}e(window).on("resize",i),e(window).on("hashchange",i),e(document.body).on("keydown",i),this.container.on("click",i),this.support.touch?o.on("touchstart touchmove touchend touchcancel",i):this.options.emulateTouchEvents&&this.support.transition&&o.on("mousedown mousemove mouseup mouseout",i),this.support.transition&&o.on(this.support.transition.end,i),this.proxyListener=i},destroyEventListeners:function(){var n=this.slidesContainer,o=this.proxyListener;e(window).off("resize",o),e(document.body).off("keydown",o),this.container.off("click",o),this.support.touch?n.off("touchstart touchmove touchend touchcancel",o):this.options.emulateTouchEvents&&this.support.transition&&n.off("mousedown mousemove mouseup mouseout",o),this.support.transition&&n.off(this.support.transition.end,o)},handleOpen:function(){this.options.onopened&&this.options.onopened.call(this)},initWidget:function(){var n=this;function o(i){i.target===n.container[0]&&(n.container.off(n.support.transition.end,o),n.handleOpen())}if(this.container=e(this.options.container),!this.container.length)return this.console.log("blueimp Gallery: Widget container not found.",this.options.container),!1;if(this.slidesContainer=this.container.find(this.options.slidesContainer).first(),!this.slidesContainer.length)return this.console.log("blueimp Gallery: Slides container not found.",this.options.slidesContainer),!1;this.titleElement=this.container.find(this.options.titleElement).first(),this.playPauseElement=this.container.find("."+this.options.playPauseClass).first(),this.num===1&&this.container.addClass(this.options.singleClass),this.support.svgasimg&&this.container.addClass(this.options.svgasimgClass),this.support.smil&&this.container.addClass(this.options.smilClass),this.options.onopen&&this.options.onopen.call(this),this.support.transition&&this.options.displayTransition?this.container.on(this.support.transition.end,o):this.handleOpen(),this.options.hidePageScrollbars&&(this.bodyOverflowStyle=document.body.style.overflow,document.body.style.overflow="hidden"),this.container[0].style.display="block",this.initSlides(),this.container.addClass(this.options.displayClass)},initOptions:function(n){this.options=e.extend({},this.options),(n&&n.carousel||this.options.carousel&&(!n||n.carousel!==!1))&&e.extend(this.options,this.carouselOptions),e.extend(this.options,n),this.num<3&&(this.options.continuous=this.options.continuous?null:!1),this.support.transition||(this.options.emulateTouchEvents=!1),this.options.event&&this.preventDefault(this.options.event)}}),t});(function(e){typeof define=="function"&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],e):e(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)})(function(e,t){var n=t.prototype;e.extend(n.options,{fullscreen:!1});var o=n.initialize,i=n.close;return e.extend(n,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},requestFullScreen:function(r){r.requestFullscreen?r.requestFullscreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen():r.mozRequestFullScreen?r.mozRequestFullScreen():r.msRequestFullscreen&&r.msRequestFullscreen()},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},initialize:function(){o.call(this),this.options.fullscreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0])},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen(),i.call(this)}}),t});(function(e){typeof define=="function"&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],e):e(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)})(function(e,t){var n=t.prototype;e.extend(n.options,{videoContentClass:"video-content",videoLoadingClass:"video-loading",videoPlayingClass:"video-playing",videoIframeClass:"video-iframe",videoCoverClass:"video-cover",videoPlayClass:"video-play",videoPlaysInline:!0,videoPreloadProperty:"preload",videoPosterProperty:"poster"});var o=n.handleSlide;return e.extend(n,{handleSlide:function(i,r){o.call(this,i,r),this.setTimeout(function(){this.activeVideo&&this.activeVideo.pause()})},videoFactory:function(i,r,s){var a=this,l=this.options,d=this.elementPrototype.cloneNode(!1),u=e(d),f=[{type:"error",target:d}],p=s||document.createElement("video"),v=this.elementPrototype.cloneNode(!1),_=document.createElement("a"),k=this.getItemProperty(i,l.urlProperty),C=this.getItemProperty(i,l.sourcesProperty),$=this.getItemProperty(i,l.titleProperty),E=this.getItemProperty(i,l.videoPosterProperty),P=[_],I,O,L;if(u.addClass(l.videoContentClass),e(_).addClass(l.videoPlayClass),e(v).addClass(l.videoCoverClass).hasClass(l.toggleClass)||P.push(v),v.draggable=!1,$&&(d.title=$,_.setAttribute("aria-label",$)),E&&(v.style.backgroundImage='url("'+E+'")'),p.setAttribute?l.videoPlaysInline&&p.setAttribute("playsinline",""):u.addClass(l.videoIframeClass),p.preload=this.getItemProperty(i,l.videoPreloadProperty)||"none",this.support.source&&C)for(L=0;L<C.length;L+=1)p.appendChild(e.extend(this.sourcePrototype.cloneNode(!1),C[L]));return k&&(p.src=k),_.href=k||C&&C.length&&C[0].src,p.play&&p.pause&&((s||e(p)).on("error",function(){a.setTimeout(r,f)}).on("pause",function(){p.seeking||(O=!1,u.removeClass(a.options.videoLoadingClass).removeClass(a.options.videoPlayingClass),I&&a.container.addClass(a.options.controlsClass),p.controls=!1,p===a.activeVideo&&delete a.activeVideo,a.interval&&a.play())}).on("playing",function(){O=!1,v.removeAttribute("style"),u.removeClass(a.options.videoLoadingClass).addClass(a.options.videoPlayingClass)}).on("play",function(){window.clearTimeout(a.timeout),O=!0,u.addClass(a.options.videoLoadingClass),a.container.hasClass(a.options.controlsClass)?(I=!0,a.container.removeClass(a.options.controlsClass)):I=!1,p.controls=!0,a.activeVideo=p}),e(P).on("click",function(S){a.preventDefault(S),a.activeVideo=p,O?p.pause():p.play()}),d.appendChild(s&&s.element||p)),d.appendChild(v),d.appendChild(_),this.setTimeout(r,[{type:"load",target:d}]),d}}),t});(function(e){typeof define=="function"&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],e):e(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)})(function(e,t){if(!window.postMessage)return t;var n=t.prototype;e.extend(n.options,{youTubeVideoIdProperty:"youtube",youTubePlayerVars:{wmode:"transparent"},youTubeClickToPlay:!1});var o=n.textFactory||n.imageFactory,i=function(r,s,a){this.videoId=r,this.playerVars=s,this.clickToPlay=a,this.element=document.createElement("div"),this.listeners={}};return e.extend(i.prototype,{on:function(r,s){return this.listeners[r]=s,this},loadAPI:function(){var r=this,s=window.onYouTubeIframeAPIReady,a="https://www.youtube.com/iframe_api",l=document.getElementsByTagName("script"),d=l.length,u;for(window.onYouTubeIframeAPIReady=function(){s&&s.apply(this),r.playOnReady&&r.play()};d;)if(d-=1,l[d].src===a)return;u=document.createElement("script"),u.src=a,l[0].parentNode.insertBefore(u,l[0])},onReady:function(){this.ready=!0,this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){this.listeners.pause(),delete this.playStatus},onStateChange:function(r){switch(window.clearTimeout(this.pauseTimeout),r.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0,this.onPlaying();break;case YT.PlayerState.UNSTARTED:case YT.PlayerState.PAUSED:this.pauseTimeout=n.setTimeout.call(this,this.onPause,null,500);break;case YT.PlayerState.ENDED:this.onPause();break}},onError:function(r){this.listeners.error(r)},play:function(){var r=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){r.onReady()},onStateChange:function(s){r.onStateChange(s)},onError:function(s){r.onError(s)}}})):this.loadAPI())},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),e.extend(n,{YouTubePlayer:i,textFactory:function(r,s){var a=this.options,l=this.getItemProperty(r,a.youTubeVideoIdProperty);return l?(this.getItemProperty(r,a.urlProperty)===void 0&&(r[a.urlProperty]="https://www.youtube.com/watch?v="+l),this.getItemProperty(r,a.videoPosterProperty)===void 0&&(r[a.videoPosterProperty]="https://img.youtube.com/vi/"+l+"/maxresdefault.jpg"),this.videoFactory(r,s,new i(l,a.youTubePlayerVars,a.youTubeClickToPlay))):o.call(this,r,s)}}),t});(function(e){typeof define=="function"&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],e):e(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)})(function(e,t){if(!window.postMessage)return t;var n=t.prototype;e.extend(n.options,{vimeoVideoIdProperty:"vimeo",vimeoPlayerUrl:"https://player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID",vimeoPlayerIdPrefix:"vimeo-player-",vimeoClickToPlay:!1});var o=n.textFactory||n.imageFactory,i=function(s,a,l,d){this.url=s,this.videoId=a,this.playerId=l,this.clickToPlay=d,this.element=document.createElement("div"),this.listeners={}},r=0;return e.extend(i.prototype,{on:function(s,a){return this.listeners[s]=a,this},loadAPI:function(){var s=this,a="https://f.vimeocdn.com/js/froogaloop2.min.js",l=document.getElementsByTagName("script"),d=l.length,u,f;function p(){!f&&s.playOnReady&&s.play(),f=!0}for(;d;)if(d-=1,l[d].src===a){u=l[d];break}u||(u=document.createElement("script"),u.src=a),e(u).on("load",p),l[0].parentNode.insertBefore(u,l[0]),/loaded|complete/.test(u.readyState)&&p()},onReady:function(){var s=this;this.ready=!0,this.player.addEvent("play",function(){s.hasPlayed=!0,s.onPlaying()}),this.player.addEvent("pause",function(){s.onPause()}),this.player.addEvent("finish",function(){s.onPause()}),this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){this.listeners.pause(),delete this.playStatus},insertIframe:function(){var s=document.createElement("iframe");s.src=this.url.replace("VIDEO_ID",this.videoId).replace("PLAYER_ID",this.playerId),s.id=this.playerId,s.allow="autoplay",this.element.parentNode.replaceChild(s,this.element),this.element=s},play:function(){var s=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.api("play"):(this.playOnReady=!0,window.$f?this.player||(this.insertIframe(),this.player=$f(this.element),this.player.addEvent("ready",function(){s.onReady()})):this.loadAPI())},pause:function(){this.ready?this.player.api("pause"):this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),e.extend(n,{VimeoPlayer:i,textFactory:function(s,a){var l=this.options,d=this.getItemProperty(s,l.vimeoVideoIdProperty);return d?(this.getItemProperty(s,l.urlProperty)===void 0&&(s[l.urlProperty]="https://vimeo.com/"+d),r+=1,this.videoFactory(s,a,new i(l.vimeoPlayerUrl,d,l.vimeoPlayerIdPrefix+r,l.vimeoClickToPlay))):o.call(this,s,a)}}),t});const jso={props:{images:{type:Array,default(){return[]}},options:{type:Object,default(){return{}}},carousel:{type:Boolean,default:!1},index:{type:Number},id:{type:String,default:"blueimp-gallery"}},data(){return{instance:null}},watch:{index(e){this.carousel||(e!==null?this.open(e):(this.instance&&this.instance.close(),this.$emit("close")))}},mounted(){this.carousel&&this.open()},unmounted(){this.instance!==null&&(this.instance.destroyEventListeners(),this.instance.close(),this.instance=null)},methods:{open(e=0){const t=typeof window.blueimp<"u"&&typeof window.blueimp.Gallery<"u"?window.blueimp.Gallery:window.blueimp,n=Object.assign({toggleControlsOnReturn:!1,toggleControlsOnSlideClick:!1,closeOnSlideClick:!1,enableKeyboardNavigation:!0,carousel:this.carousel,container:`#${this.id}`,index:e,onopen:()=>this.$emit("onopen"),onopened:()=>this.$emit("onopened"),onslide:this.onSlideCustom,onslideend:(o,i)=>this.$emit("onslideend",{index:o,slide:i}),onslidecomplete:(o,i)=>this.$emit("onslidecomplete",{index:o,slide:i}),onclose:()=>this.$emit("close"),onclosed:()=>this.$emit("onclosed")},this.options);this.carousel&&(n.container=this.$el),this.instance=t(this.images,n)},onSlideCustom(e,t){this.$emit("onslide",{index:e,slide:t});const n=this.images[e];if(n!==void 0){const o=n.description,i=this.instance.container.find(".description");if(o){i.empty();let r=document.createElement("div");r.innerHTML=o,i[0].appendChild(r)}}},handleClick(e){e.target.classList.contains("slide-active")&&(this.instance.close(),this.$emit("close"))}}},Fso=["id"],zso={class:"prev"},Uso={class:"next"},Bso={key:0,class:"close"},Hso={key:1,class:"indicator"},Vso={key:2,class:"play-pause"};function qso(e,t,n,o,i,r){return h(),g("div",{id:n.id,class:J(["blueimp-gallery blueimp-gallery-controls",{"blueimp-gallery-carousel":n.carousel}]),onClick:t[0]||(t[0]=(...s)=>r.handleClick&&r.handleClick(...s))},[t[3]||(t[3]=c("div",{class:"slides"},null,-1)),t[4]||(t[4]=c("h3",{class:"title"},null,-1)),t[5]||(t[5]=c("div",{class:"bottom-bar-wrapper"},[c("p",{class:"description"})],-1)),c("a",zso,[Pt(e.$slots,"prev",{},()=>[t[1]||(t[1]=z(m("‹")))])]),c("a",Uso,[Pt(e.$slots,"next",{},()=>[t[2]||(t[2]=z(m("›")))])]),n.carousel?D("",!0):(h(),g("a",Bso,[Pt(e.$slots,"close")])),n.carousel?D("",!0):(h(),g("ol",Hso)),n.carousel?(h(),g("a",Vso)):D("",!0)],10,Fso)}const xM=U(jso,[["render",qso]]);const Yso={components:{FullscreenGallery:xM,AppIcon:Ue,ImageGallery:Rso},props:{product:{type:Object,default(){return null}},alt:{type:String,default(){return null}}},data(){return{images:[],cover:"",index:null}},mounted(){Og.images(this.product).then(e=>{this.images=e.data.images,this.cover=e.data.cover})},computed:{...Oe({auth:"auth/auth"}),galleryImages(){let e=[this.cover.src],t=this.images.map(n=>n.src);return[...e,...t]},galleryThumbnails(){let e=[this.cover.src],t=this.images.map(n=>n.thumbnail);return[...e,...t]}},methods:{openBigGallery(e){this.index=e}}},Wso={class:"position-sticky top-custom z-index-1000 mb-5 mb-lg-0"},Gso={key:0,class:"mb-5"};function Zso(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ImageGallery"),l=y("FullscreenGallery");return h(),g("div",null,[c("div",Wso,[e.auth.is_admin||e.auth.id===n.product.author.id?D("",!0):(h(),g("div",Gso,[c("button",{class:"btn btn-secondary btn-sm",onClick:t[0]||(t[0]=d=>e.$emit("navigateBack"))},[b(s,{icon:"arrow-left",class:"me-icon"}),z(" "+m(e.$t("public.back")),1)])])),b(a,{images:r.galleryImages,thumbnails:r.galleryThumbnails,alt:n.product.title,onOpen:r.openBigGallery},null,8,["images","thumbnails","alt","onOpen"])]),r.galleryImages.length>0?(h(),W(l,{key:0,images:r.galleryImages,index:i.index,onClose:t[1]||(t[1]=d=>i.index=null)},null,8,["images","index"])):D("",!0)])}const Kso=U(Yso,[["render",Zso],["__scopeId","data-v-7f786fc7"]]),Jso={components:{ProductIsWorthyButton:gce,AppIcon:Ue},props:{categories:Object,product:Object},computed:{productModel:{get(){return this.product},set(e){this.$emit("update:product",e)}}},methods:{openRevision(){this.$store.commit("administrationProduct/setFeedback",{id:this.productModel.id,title:this.productModel.title,status:2}),this.$store.dispatch("sidebar/open",{type:"product-feedback",data:"revise-public"})},editCategories(){this.$store.commit("administrationProduct/setDetail",this.productModel),this.$store.dispatch("sidebar/open",{type:"product-update",data:"category-public"})},toggleIsWorthy(){this.productModel.is_worthy=!this.productModel.is_worthy,this.$store.dispatch("administrationProduct/toggleWorthy",{id:this.productModel.id,isWorthy:!this.productModel.is_worthy}).then(e=>{this.productModel.is_worthy=e.data.is_worthy})}}},Xso={class:"content-box shadow-mid px-4 py-5"},Qso={class:"d-flex flex-wrap justify-content-between"},eao={class:"px-2dot5 mb-2"},tao={class:"mb-0 medium text-gray-700"},nao={key:0,class:"mb-0"},oao={class:"px-2dot5 mb-2"},iao={class:"mb-0 medium text-gray-700"},rao={key:0,class:"mb-0"},sao={class:"px-2dot5 mb-2"},aao={class:"mb-0 medium text-gray-700"},lao={key:0,class:"mb-0"},cao={class:"px-2dot5 mb-2"},dao={class:"mb-0 medium text-gray-700"},uao={key:0,class:"mb-0"},hao={class:"px-2dot5 mb-2"},fao={class:"mb-0 medium text-gray-700"},mao={key:0,class:"mb-0"},pao={class:"px-2dot5 mb-2"},gao={class:"mb-0 medium text-gray-700"},vao={key:0,class:"mb-0"},_ao={class:"px-2dot5 mb-2"},yao={class:"mb-0 medium text-gray-700"},bao={class:"d-flex flex-sm-row flex-column justify-content-end gap-2"},kao=["href"];function wao(e,t,n,o,i,r){const s=y("ProductIsWorthyButton"),a=y("AppIcon");return h(),g("div",Xso,[c("div",Qso,[c("div",eao,[c("p",tao,m(e.$t("product.category_type.class")),1),n.categories.class?D("",!0):(h(),g("p",nao,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(n.categories.class,(l,d)=>(h(),g("p",{class:"text-truncate mb-0",key:d},m(l),1))),128))]),c("div",oao,[c("p",iao,m(e.$t("product.category_type.subject")),1),n.categories.subject?D("",!0):(h(),g("p",rao,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(n.categories.subject,(l,d)=>(h(),g("p",{class:"text-truncate mb-0",key:d},m(l),1))),128))]),c("div",sao,[c("p",aao,m(e.$t("product.category_type.kind")),1),n.categories.kind?D("",!0):(h(),g("p",lao,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(n.categories.kind,(l,d)=>(h(),g("p",{class:"text-truncate mb-0",key:d},m(l),1))),128))]),c("div",cao,[c("p",dao,m(e.$t("product.category_type.theme")),1),n.categories.theme?D("",!0):(h(),g("p",uao,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(n.categories.theme,(l,d)=>(h(),g("p",{class:"text-truncate mb-0",key:d},m(l),1))),128))]),c("div",hao,[c("p",fao,m(e.$t("product.category_type.format")),1),n.categories.format?D("",!0):(h(),g("p",mao,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(n.categories.format,(l,d)=>(h(),g("p",{class:"text-truncate mb-0",key:d},m(l),1))),128))]),c("div",pao,[c("p",gao,m(e.$t("product.category_type.holiday")),1),n.categories.holiday?D("",!0):(h(),g("p",vao,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(n.categories.holiday,(l,d)=>(h(),g("p",{class:"text-truncate mb-0",key:d},m(l),1))),128))]),c("div",_ao,[c("p",yao,m(e.$t("download.price")),1),z(" "+m(r.productModel.price+",- ("+r.productModel.vat+"% "+e.$t("public.vat")+")"),1)])]),t[2]||(t[2]=c("hr",{class:"mb-4 mt-3"},null,-1)),c("div",bao,[b(s,{class:"me-sm-auto text-center","has-border":"","is-worthy":r.productModel.is_worthy,onChange:r.toggleIsWorthy},null,8,["is-worthy","onChange"]),c("button",{class:"btn btn-center btn-sm btn-tertiary",onClick:t[0]||(t[0]=(...l)=>r.editCategories&&r.editCategories(...l))},[z(m(e.$t("category.edit.default"))+" ",1),b(a,{icon:"edit",class:"ms-icon",height:"20",width:"20"})]),c("button",{class:"btn btn-center btn-sm btn-tertiary",onClick:t[1]||(t[1]=(...l)=>r.openRevision&&r.openRevision(...l))},[z(m(e.$t("product.add_to_revision"))+" ",1),b(a,{icon:"alert",class:"ms-icon",height:"20",width:"20"})]),c("a",{href:e.ziggyRoute("administration.product.detail",{id:r.productModel.id}),target:"_blank",class:"btn btn-center btn-sm btn-tertiary"},[z(m(e.$t("public.show_in_admin"))+" ",1),b(a,{icon:"new-tab",class:"ms-icon",height:"20",width:"20"})],8,kao)])])}const $ao=U(Jso,[["render",wao]]),Cao={props:{rank:Number},data(){return{color:{1:"bg-bestseller1 text-white",2:"bg-bestseller2 text-white",3:"bg-bestseller3 text-white"}}}};function Sao(e,t,n,o,i,r){return h(),g("div",{class:J(["badge rounded-pill small px-2 py-1 fw-light h-1dot5rem d-flex align-items-center",i.color[n.rank]])},m("TOP "+n.rank),3)}const Tao=U(Cao,[["render",Sao]]),Eao=""+new URL("infobox_info_icon-87a3eb8c.png",import.meta.url).href,Iao={components:{AppIcon:Ue,WishlistProductAddButton:nse,WishlistProductRemoveButton:dL},props:{product:{type:Object,required:!0}},computed:{...Oe({isAdded:"wishlist/isAdded",isInCart:"cart/isItemInCart"}),isAddedToCart(){return this.isInCart(this.product.id)}}};function Pao(e,t,n,o,i,r){const s=y("AppIcon"),a=y("WishlistProductAddButton"),l=y("WishlistProductRemoveButton");return h(),g("div",null,[e.isAdded(n.product.id)?(h(),W(l,{key:1,product:n.product,class:"btn-center bg-pink-light text-persian-pink h-2dot5rem w-2dot5rem rounded border-none",context:"detail"},{default:F(()=>[b(s,{icon:"wishlist-full",width:24,height:24})]),_:1},8,["product"])):(h(),W(a,{key:0,product:n.product,"class-custom":r.isAddedToCart?"btn-center bg-white border border-gray-300 border-2 text-gray-500 h-2dot5rem w-2dot5rem rounded":"btn-center bg-white border border-gray-300 border-2 text-gray-500 h-2dot5rem w-2dot5rem rounded bg-pink-light-hover text-persian-pink-hover border-none-hover",context:"detail"},{default:F(()=>[b(s,{icon:"wishlist-full",width:24,height:24})]),_:1},8,["product","class-custom"]))])}const Aao=U(Iao,[["render",Pao]]),Dao={components:{ProductGalleryWrapper:Kso,SectionProductList:p6,AppIcon:Ue,AccordionItem:Ml,ProductAddToCartBlock:wso,ProductDeleteButton:nae,AuthorBlock:rso,InfoBoxElement:PM,ImageSourcesDisplay:mce,Loading:Rt,AuthorStats:tae,ProductStatus:J3,ProductAdminPanel:$ao,ProductRankPill:Tao,DiscountIcon:c6,Pill:Ni,WishlistProductDetailButton:Aao,ProductPrice:Wy},props:{id:{type:Number}},data(){return{product:{title:"",file_id:0,author:{image:"",first_name:"",last_name:"",public_alias:null},status:1,video:""},primaryColor:window.primaryColor,alreadyBought:!1,alreadyInCart:!1,fileSize:!1,categories:{},isLoading:!0,alternatives:{data:[]},infoBoxInfoLogo:Eao,dateTimeFormat:mr.datetime_format,timeFormat:mr.time_format,dateFormat:mr.date_format,productConfig:Wa,administrationProductConfig:ja,windowWidth:window.innerWidth}},computed:{...Oe({itemInCart:"cart/isItemInCart",auth:"auth/auth"}),youtubeVideoId(){if(!this.product.video||this.product.video.length===0)return!1;if(this.product.video.length===28)return this.product.video.split("/").slice(-1).pop();let e=this.product.video.split("v=")[1],t=-1;return e&&(t=e.indexOf("&")),t!==-1?e.substring(0,t):e},authorNameOrAlias(){return this.product.author.public_alias!==null?this.product.author.public_alias:this.product.author.first_name+" "+this.product.author.last_name},showWebinarInfobox(){return!!(this.product.is_webinar&&this.alreadyBought)},is2hAfterWebinarStart(){let e=mt(this.product.webinar_starts_at).add(2,"hours");return mt().isAfter(e)},showWebinarLink(){let e=mt(this.product.webinar_starts_at).subtract(30,"minutes"),t=mt(this.product.webinar_starts_at).add(2,"hours");return mt().isBetween(e,t,void 0,"[]")},webinarStartsAt(){return mt(this.product.webinar_starts_at)},webinarStartsAtMinus30(){return mt(this.product.webinar_starts_at).subtract(30,"minutes")},alternativesCount(){return this.windowWidth>991&&this.windowWidth<1200?4:this.windowWidth>767&&this.windowWidth<992?6:this.windowWidth>575&&this.windowWidth<768?4:5},alternativesFiltered(){return this.alternatives?this.alternatives.slice(0,this.alternativesCount):[]}},mounted(){this.loadData(),ai.specialUrlPageView("pageview-product-detail"),this.$nextTick(()=>{window.addEventListener("resize",this.onResize)}),window.eventBus.on("product-detail-reload",()=>{this.loadData()})},beforeUnmount(){window.removeEventListener("resize",this.onResize)},methods:{onResize(){this.windowWidth=window.innerWidth},loadData(){this.isLoading=!0,Og.show(this.id).then(e=>{this.product=e.data.product,this.alternatives=e.data.alternatives,this.alreadyBought=e.data.alreadyBought,this.categories=e.data.categories,this.alreadyInCart=e.data.isInCart,this.fileSize=e.data.fileSize,this.isLoading=!1,this.analytics(),ai.viewItem(this.product)})},productStatus(e){return e.deleted?this.administrationProductConfig.statusDeletedId:e.hidden?this.administrationProductConfig.statusHiddenId:e.status},openSidebarProductRating(){this.$store.dispatch("sidebar/open",{type:"product-rating",data:this.product})},openSidebarComplaintShow(e){let t={orderId:e.order_item_id,productTitle:e.title};this.$store.dispatch("sidebar/open",{type:"complaint-create",data:t})},reload(){this.loadData()},analytics(){},productAuthor(){ai.productAuthor(this.product.id,this.product.author.id)},navigateBack(){try{let e=new URL(document.referrer);e.pathname.includes("/produkt")?window.location.href=this.ziggyRoute("materialy"):window.location.href=e.href}catch{window.location.href=this.ziggyRoute("materialy")}}}},xao={class:"col-12 vl-parent mb-6"},Oao={key:0,class:"mx-neg-15rem"},Lao={key:1,class:"row mt-6"},Mao={class:"col-12 product--basic-info"},Nao={key:0,class:"mb-5 d-flex justify-content-between flex-wrap gap-3"},Rao={class:"d-flex flex-wrap gap-2"},jao={class:"d-flex align-items-center pe-3 border-end-2"},Fao=["href"],zao=["href"],Uao=["href","title"],Bao=["href"],Hao={class:"row"},Vao={class:"col-12 col-lg-5"},qao={class:"d-flex justify-content-between align-items-start"},Yao={class:"mb-0"},Wao={class:"d-flex justify-content-between align-items-center mt-2"},Gao={class:"d-flex align-items-center"},Zao=["href"],Kao=["href"],Jao={class:"text-gray-700 m-0 mt-2 mb-3"},Xao={key:0,class:"mb-4"},Qao={class:"fw-bold mb-0"},elo={key:0,class:"text-gray-800 fw-medium mb-0 mt-1"},tlo={key:1},nlo={id:"rating-accordion",class:"border-bottom-2"},olo={class:"pt-4 pb-4 mb-0 fw-bold"},ilo={class:"pb-4 d-flex flex-wrap"},rlo={class:"large"},slo={class:"rating-circle me-icon"},alo={key:2,class:"mt-4 border-bottom-2"},llo={class:"mb-3 fw-bold"},clo={id:"basic-info-accordion",class:"pb-4 border-bottom-2"},dlo={class:"pt-3 pb-3 mb-0 fw-bold"},ulo={class:"text-gray-600 m-0 medium"},hlo={class:"text-gray-800 fw-medium mb-0"},flo={key:0,class:"d-inline-block mb-3 me-3"},mlo={class:"text-gray-600 m-0 medium"},plo={class:"text-gray-800 fw-medium mb-0"},glo={key:0,class:"d-inline-block mb-3 me-3"},vlo={class:"text-gray-600 m-0 medium"},_lo={class:"text-gray-800 fw-medium mb-0"},ylo={key:0,class:"d-inline-block mb-3 me-3"},blo={class:"text-gray-600 m-0 medium"},klo={class:"text-gray-800 fw-medium mb-0"},wlo={key:0,class:"d-inline-block mb-3 me-3"},$lo={class:"text-gray-600 m-0 medium"},Clo={class:"text-gray-800 fw-medium mb-0"},Slo={key:0,class:"d-inline-block mb-3 me-3"},Tlo={class:"text-gray-600 m-0 medium"},Elo={class:"text-gray-800 fw-medium mb-0"},Ilo={key:0,class:"d-inline-block mb-3 me-3"},Plo={class:"row"},Alo={class:"col-auto me-5"},Dlo={class:"text-gray-600 m-0 medium"},xlo={class:"text-gray-800 fw-medium mb-0"},Olo={class:"col-auto"},Llo={class:"text-gray-600 m-0 medium"},Mlo={class:"text-gray-800 fw-medium mb-0"},Nlo={class:"me-0"},Rlo={key:0,class:"me-0 mb-0"},jlo={class:"text-gray-600 m-0 medium"},Flo=["href"],zlo={key:3,class:"product-detail",ref:"product-detail"},Ulo={id:"obsah-materialu",class:"product-detail-main mt-4"},Blo={class:"row justify-content-center"},Hlo={class:"mb-4 fw-bold large"},Vlo=["src"],qlo=["innerHTML"],Ylo={class:"mt-4 d-lg-none"},Wlo={key:2,class:"row"},Glo={class:"col-12 mt-4"},Zlo={class:"mb-0"};function Klo(e,t,n,o,i,r){const s=y("Loading"),a=y("InfoBoxElement"),l=y("AppIcon"),d=y("ProductStatus"),u=y("ProductDeleteButton"),f=y("AuthorStats"),p=y("ProductAdminPanel"),v=y("ProductGalleryWrapper"),_=y("WishlistProductDetailButton"),k=y("Pill"),C=y("ProductRankPill"),$=y("DiscountIcon"),E=y("ProductPrice"),P=y("ProductAddToCartBlock"),I=y("AuthorBlock"),O=y("AccordionItem"),L=y("ImageSourcesDisplay"),S=y("SectionProductList"),j=an("tooltip");return h(),g("div",xao,[b(s,{active:i.isLoading,"onUpdate:active":t[0]||(t[0]=M=>i.isLoading=M),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),r.showWebinarInfobox?(h(),g("div",Oao,[r.showWebinarLink?(h(),W(a,{key:0,color:"#252161",icon:i.infoBoxInfoLogo,id:"webinar-infobox",title:e.$t("webinar.thanks"),"link-href":this.product.webinar_url_stream,"link-title":e.$t("webinar.connect")},{default:F(()=>[z(m(e.$t("webinar.available_range",{start:r.webinarStartsAtMinus30.format(i.dateFormat),end:r.webinarStartsAtMinus30.format(i.timeFormat)}))+" "+m(e.$t("webinar.start",{start:r.webinarStartsAt.format(i.timeFormat)}))+" ",1),t[5]||(t[5]=c("br",null,null,-1)),t[6]||(t[6]=c("br",null,null,-1)),z(" "+m(e.$t("webinar.signature.0"))+" ",1),t[7]||(t[7]=c("br",null,null,-1)),z(" "+m(e.$t("webinar.signature.1"))+" ",1),t[8]||(t[8]=c("br",null,null,-1))]),_:1},8,["icon","title","link-href","link-title"])):r.is2hAfterWebinarStart?(h(),W(a,{key:1,color:"#252161",icon:i.infoBoxInfoLogo,id:"webinar-infobox",title:e.$t("webinar.thanks")},{default:F(()=>[z(m(e.$t("webinar.ended"))+" ",1),t[9]||(t[9]=c("br",null,null,-1)),t[10]||(t[10]=c("br",null,null,-1)),z(" "+m(e.$t("webinar.signature.0"))+" ",1),t[11]||(t[11]=c("br",null,null,-1)),z(" "+m(e.$t("webinar.signature.1"))+" ",1),t[12]||(t[12]=c("br",null,null,-1))]),_:1},8,["icon","title"])):(h(),W(a,{key:2,color:"#252161",icon:i.infoBoxInfoLogo,id:"webinar-infobox",title:e.$t("webinar.thanks")},{default:F(()=>[z(m(e.$t("webinar.available_range",{start:r.webinarStartsAtMinus30.format(i.dateFormat),end:r.webinarStartsAtMinus30.format(i.timeFormat)}))+" "+m(e.$t("webinar.start",{start:r.webinarStartsAt.format(i.timeFormat)}))+" ",1),t[13]||(t[13]=c("br",null,null,-1)),t[14]||(t[14]=c("br",null,null,-1)),z(" "+m(e.$t("webinar.signature.0"))+" ",1),t[15]||(t[15]=c("br",null,null,-1)),z(" "+m(e.$t("webinar.signature.1"))+" ",1),t[16]||(t[16]=c("br",null,null,-1))]),_:1},8,["icon","title"]))])):D("",!0),i.isLoading?D("",!0):(h(),g("div",Lao,[c("div",Mao,[!i.isLoading&&(e.auth.is_admin||e.auth.id===i.product.author.id)?(h(),g("div",Nao,[c("div",null,[c("button",{class:"btn btn-center btn-secondary btn-sm",onClick:t[1]||(t[1]=(...M)=>r.navigateBack&&r.navigateBack(...M))},[b(l,{icon:"arrow-left",class:"me-icon"}),z(" "+m(e.$t("public.back")),1)])]),c("div",Rao,[c("div",jao,[b(d,{status:r.productStatus(i.product)},null,8,["status"])]),i.product.hidden===!0?(h(),g("a",{key:0,href:e.ziggyRoute("product.hide",{product:n.id,hide:0}),class:"btn btn-center btn-sm btn-tertiary"},[z(m(e.$t("product.unhide"))+" ",1),b(l,{icon:"show",class:"ms-1",height:"20",width:"20"})],8,Fao)):(h(),g("a",{key:1,href:e.ziggyRoute("product.hide",{product:n.id,hide:1}),class:"btn btn-center btn-sm btn-tertiary"},[z(m(e.$t("product.hide"))+" ",1),b(l,{icon:"hide",class:"ms-1",height:"20",width:"20"})],8,zao)),i.product.files[0]?(h(),g("a",{key:2,href:e.ziggyRoute("product.download_files",{product:n.id,file:i.product.files[0].id}),title:i.product.files[0].name,class:"btn btn-center btn-sm btn-tertiary"},[z(m(e.$t("product.download"))+" ",1),b(l,{icon:"download",class:"ms-1",height:"20",width:"20"})],8,Uao)):D("",!0),c("a",{href:e.ziggyRoute("product.edit",{product:n.id,update:!0}),class:"btn btn-center btn-sm btn-tertiary"},[z(m(e.$t("product.edit"))+" ",1),b(l,{icon:"edit",class:"ms-1",height:"20",width:"20"})],8,Bao),b(u,{product:i.product},null,8,["product"])])])):D("",!0),!i.isLoading&&e.auth.id===i.product.author.id?(h(),W(f,{key:1,class:"mb-5",product:i.product},null,8,["product"])):D("",!0),e.auth.is_admin?(h(),W(p,{key:2,class:"mb-5",categories:i.categories,product:i.product},null,8,["categories","product"])):D("",!0),c("div",Hao,[b(v,{product:i.product,alt:i.product.title,onNavigateBack:r.navigateBack,class:"col-12 col-lg-7"},null,8,["product","alt","onNavigateBack"]),c("div",Vao,[c("div",qao,[c("h3",Yao,m(i.product.title),1),c("div",null,[i.alreadyBought?D("",!0):(h(),W(_,{key:0,product:i.product},null,8,["product"]))])]),c("div",Wao,[c("div",Gao,[i.product.video?(h(),g("a",{key:0,href:i.product.url,class:"me-2"},[b(k,{color:"secondary"},{default:F(()=>[b(l,{icon:"video",height:"16",width:"16"})]),_:1})],8,Zao)):D("",!0),i.product.is_distance_education_usable?(h(),g("a",{key:1,href:i.product.url,class:"me-2"},[xe((h(),W(k,{color:"secondary"},{default:F(()=>[b(l,{icon:"distance-education"})]),_:1})),[[j,{content:e.$t("product.distance_education.title"),delay:{show:500,hide:100},triggers:["hover"]}]])],8,Kao)):D("",!0),i.product.ratings_count?(h(),W(k,{key:2,color:"success",class:"me-2"},{default:F(()=>[b(l,{icon:"rating",height:"16",width:"16",class:"me-1"}),z(" "+m(i.product.ratings_count+" "+e.$t("download.rating")),1)]),_:1})):D("",!0),i.product.rank>0?(h(),W(C,{key:3,rank:i.product.rank},null,8,["rank"])):D("",!0),i.product.only_on_ucitelnice?(h(),W(k,{key:4,color:"purple",class:"me-2 d-flex flex-wrap align-items-center"},{default:F(()=>[b(l,{icon:"diamond",height:"16",width:"16",class:"me-1"}),z(" "+m(e.$t("product.editor.only_on_ucitelnice.label")),1)]),_:1})):D("",!0)]),i.product.author_discount?(h(),W($,{key:0,prefix:"SLEVA ",amount:i.product.author_discount.amount},null,8,["amount"])):D("",!0)]),c("p",Jao,m(i.product.short_description),1),i.alreadyBought?D("",!0):(h(),g("div",Xao,[c("h2",Qao,[b(E,{product:i.product,class:"text-capitalize"},null,8,["product"])]),e.auth.has_school?(h(),g("p",elo,m(i.product.school_price_brutto)+" "+m(e.$t("currency.short"))+" "+m(e.$t("school.for_yours")),1)):D("",!0)])),b(P,{class:"border-top-2 pt-4",product:i.product,"already-bought":i.alreadyBought,"already-in-cart":i.alreadyInCart,onReload:r.reload},null,8,["product","already-bought","already-in-cart","onReload"]),b(I,{class:"mt-4",id:i.product.author.id,image:i.product.author.image_thumbnail,name:this.authorNameOrAlias,"is-favourite-author":i.product.author.is_favourite_author,"is-author-verified":i.product.author.is_verified,"followers-count":i.product.author.followers_count,onAnalytics:r.productAuthor},null,8,["id","image","name","is-favourite-author","is-author-verified","followers-count","onAnalytics"]),i.product.ratings.length>0?(h(),g("div",tlo,[c("div",nlo,[b(O,{class:"col-auto",scroll:!1,"use-open-title-background":!1,"title-toggle":!1,index:"ratings","init-opened":!0,parent:"rating-accordion"},{title:F(()=>[c("h5",olo,m(e.$t("product_rating.detail.title")),1)]),body:F(()=>[c("div",ilo,[(h(!0),g(pe,null,Me(i.product.ratings,(M,q)=>(h(),W(k,{key:q,color:"success",class:"me-2 mb-2"},{default:F(()=>[c("span",rlo,[c("span",slo,m(M.rating_count),1),z(" "+m(e.$tm("product_rating.allowed_values")[M.rating]),1)])]),_:2},1024))),128))])]),_:1})])])):D("",!0),i.product.is_purchased&&!i.product.is_rated?(h(),g("div",alo,[c("h5",llo,m(e.$t("product_rating.detail.how_do_you_like_it.title")),1),c("p",null,m(e.$t("product_rating.detail.how_do_you_like_it.subtitle")),1),c("button",{class:"btn btn-tertiary btn-sm mb-3",onClick:t[2]||(t[2]=(...M)=>r.openSidebarProductRating&&r.openSidebarProductRating(...M))},m(e.$t("product_rating.detail.how_do_you_like_it.button")),1)])):D("",!0),c("div",clo,[b(O,{class:"col-auto",scroll:!1,index:"basic-info","use-open-title-background":!1,"title-toggle":!1,"init-opened":!0,parent:"basic-info-accordion","body-padding-x":"0","body-padding-y":"0"},{title:F(()=>[c("h5",dlo,m(e.$t("product.basic_info.title")),1)]),body:F(()=>[c("p",ulo,m(e.$t("product.category_type.class")),1),c("p",hlo,[i.categories.class?D("",!0):(h(),g("span",flo,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(i.categories.class,(M,q)=>(h(),g("span",{class:"d-inline-block mb-3 me-3",key:q},m(M),1))),128))]),c("p",mlo,m(e.$t("product.category_type.subject")),1),c("p",plo,[i.categories.subject?D("",!0):(h(),g("span",glo,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(i.categories.subject,(M,q)=>(h(),g("span",{class:"d-inline-block mb-3 me-3",key:q},m(M),1))),128))]),c("p",vlo,m(e.$t("product.category_type.kind")),1),c("p",_lo,[i.categories.kind?D("",!0):(h(),g("span",ylo,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(i.categories.kind,(M,q)=>(h(),g("span",{class:"d-inline-block mb-3 me-3",key:q},m(M),1))),128))]),c("p",blo,m(e.$t("product.category_type.theme")),1),c("p",klo,[i.categories.theme?D("",!0):(h(),g("span",wlo,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(i.categories.theme,(M,q)=>(h(),g("span",{class:"d-inline-block mb-3 me-3",key:q},m(M),1))),128))]),c("p",$lo,m(e.$t("product.category_type.format")),1),c("p",Clo,[i.categories.format?D("",!0):(h(),g("span",Slo,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(i.categories.format,(M,q)=>(h(),g("span",{class:"d-inline-block mb-3 me-3",key:q},m(M),1))),128))]),c("p",Tlo,m(e.$t("product.category_type.holiday")),1),c("p",Elo,[i.categories.holiday?D("",!0):(h(),g("span",Ilo,m(e.$t("public.dash")),1)),(h(!0),g(pe,null,Me(i.categories.holiday,(M,q)=>(h(),g("span",{class:"d-inline-block mb-3 me-3",key:q},m(M),1))),128))]),c("div",Plo,[c("div",Alo,[c("p",Dlo,m(e.$t("product.category_type.type_file")),1),c("p",xlo,[(h(!0),g(pe,null,Me(i.product.file_type,M=>(h(),g("span",{class:"d-inline-block mb-3 me-3",key:M},m(M),1))),128)),t[17]||(t[17]=c("br",null,null,-1))])]),c("div",Olo,[c("p",Llo,m(e.$t("product.basic_info.number_of_pages")),1),c("p",Mlo,[c("span",Nlo,[z(m(i.product.pages+"|")+" ",1),i.fileSize?(h(),g("span",Rlo,m(i.fileSize),1)):D("",!0)])])])]),c("p",jlo,m(e.$t("product.basic_info.image_sources")),1),b(L,{class:"justify-content-start","image-sources":i.product.image_sources,"has-also-original-images":i.product.has_also_original_images,"has-no-images":i.product.has_no_images,"display-headline":!1},null,8,["image-sources","has-also-original-images","has-no-images"]),c("a",{class:"d-block mt-3 fw-medium",href:e.ziggyRoute("faq",22)},m(e.$t("product.basic_info.file_type_prompt")),9,Flo),i.alreadyBought&&i.product.complaint===null?(h(),g("div",{key:0,onClick:t[3]||(t[3]=M=>r.openSidebarComplaintShow(i.product)),class:"cursor-pointer text-danger mt-3 fw-medium"},[z(m(e.$t("product.basic_info.create_complaint"))+" ",1),b(l,{icon:"flag",class:"ms-2"})])):D("",!0)]),_:1})]),i.isLoading?D("",!0):(h(),g("div",zlo,[c("div",Ulo,[c("div",Blo,[c("p",Hlo,m(e.$t("product.full_description")),1),r.youtubeVideoId?(h(),g("iframe",{key:0,width:"560",height:"315",src:"https://www.youtube-nocookie.com/embed/"+r.youtubeVideoId,frameborder:"0",style:{width:"100%"},allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,Vlo)):D("",!0),c("section",{innerHTML:i.product.full_description,class:"text-break"},null,8,qlo)])])],512))])])])])),c("div",Ylo,[c("button",{class:"btn btn-center btn-secondary btn-sm",onClick:t[4]||(t[4]=(...M)=>r.navigateBack&&r.navigateBack(...M))},[b(l,{icon:"arrow-left",class:"me-icon"}),z(" "+m(e.$t("public.back")),1)])]),i.isLoading?D("",!0):(h(),g("div",Wlo,[c("div",Glo,[c("h4",Zlo,m(e.$t("product.similar_products")),1),b(S,{products:r.alternativesFiltered,occurance:i.productConfig.occurence.detail,"horizontal-scroll-mobile":!0},null,8,["products","occurance"])])]))])}const Jlo=U(Dao,[["render",Klo]]),Xlo={props:{product:Object,marginEnd:{type:Number,default:3}},computed:{price(){return this.product.price_author_discount?this.product.price_author_discount:this.basePrice},basePrice(){return this.product.price},hasDiscount(){return this.product.author_discount_amount>0}}},Qlo={key:0,class:"text-nowrap"},eco={class:"fw-bold text-danger text-nowrap"},tco={key:1},nco={class:"text-nowrap"};function oco(e,t,n,o,i,r){return r.hasDiscount?(h(),g("span",Qlo,[c("span",{class:J(["text-decoration-line-through fw-light text-gray-700 text-nowrap","me-"+n.marginEnd])},m(r.basePrice+" "+e.$t("currency.short")),3),c("span",eco,m(r.price+" "+e.$t("currency.short")),1)])):(h(),g("span",tco,[c("span",nco,m(r.price+" "+e.$t("currency.short")),1)]))}const kde=U(Xlo,[["render",oco]]),ico={props:{product:{type:Object,required:!0}},methods:{remove(){this.$store.dispatch("cart/remove",{productId:this.product.product_id})}}};function rco(e,t,n,o,i,r){const s=y("app-icon");return h(),g("div",{onClick:t[0]||(t[0]=(...a)=>r.remove&&r.remove(...a)),"data-lb-action":"cart-remove","data-action-attitude":"negative"},[b(s,{icon:"close",height:"20",width:"20",class:"cursor-pointer text-gray-900 ms-3"})])}const sco=U(ico,[["render",rco]]);const aco={components:{CartPriceRow:kde,TransitionCollapseHeight:qo,CartProductRemoveButton:sco},props:{item:{type:Object,default(){return null}},hideRemoveButton:{type:Boolean,default:!1},noBorderBottom:{type:Boolean,default:!1}},computed:{...sn({items:e=>e.cart.items,is_for_school:e=>e.cart.is_for_school})},methods:{getLastItem(e){const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(e[n]);return t[t.length-1]}}},lco=["href"],cco=["src","alt"],dco={class:"flex-grow-1"},uco=["href"],hco={class:"d-flex flex-column flex-grow-1 align-items-end justify-content-between ms-3"},fco={class:"d-flex align-items-center"},mco={key:0,class:"text-success medium"};function pco(e,t,n,o,i,r){const s=y("CartPriceRow"),a=y("CartProductRemoveButton"),l=y("TransitionCollapseHeight");return h(),W(l,null,{default:F(()=>[c("div",{class:J(["d-flex justify-content-between pt-3 pb-3",{"border-bottom-2":!n.noBorderBottom&&n.item&&n.item.product_id!==r.getLastItem(e.items).product_id}])},[c("a",{class:"d-flex link-dark",href:e.ziggyRoute("product.show",n.item.product_id)},[c("div",null,[c("img",{src:n.item.image,alt:n.item.title,class:"rounded object-fit-cover w-4rem me-3"},null,8,cco)]),c("div",dco,[c("h5",{class:"mb-1",href:e.ziggyRoute("product.show",n.item.product_id)},m(n.item.title),9,uco),c("p",{class:J(["text-gray-700 mb-0",{"text-primary":e.is_for_school}])},m(e.is_for_school?e.$t("cart.cart_type_capitalized.school"):e.$t("cart.cart_type_capitalized.personal")),3)])],8,lco),c("div",hco,[c("div",fco,[n.item.is_purchased?(h(),g("span",mco,m(e.$t("public.already_bought")),1)):(h(),W(s,{key:1,class:J({"text-primary":e.is_for_school}),product:n.item},null,8,["class","product"])),n.hideRemoveButton?D("",!0):(h(),W(a,{key:2,product:n.item},null,8,["product"]))])])],2)]),_:1})}const gco=U(aco,[["render",pco],["__scopeId","data-v-d263d2db"]]),vco={components:{AppIcon:Ue,TransitionCollapseHeight:qo},props:{discount:{type:Object,default(){return null}},hideClose:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!1}},methods:{remove(){this.$store.dispatch("cart/removeDiscount")}}},_co={class:"d-flex align-items-center bg-success-light p-3 rounded mx-md-neg-3"},yco={class:"d-flex justify-content-center align-items-center me-2"},bco={class:"flex-grow-1"},kco={class:"mb-0"},wco={class:"fw-bold"},$co={class:"d-flex"},Cco={class:"mb-0 text-nowrap"};function Sco(e,t,n,o,i,r){const s=y("AppIcon"),a=y("TransitionCollapseHeight");return h(),W(a,null,{default:F(()=>[c("div",{class:J(n.borderBottom?"pb-3 border-bottom-2":"pt-3 border-top-2")},[c("div",_co,[c("div",yco,[b(s,{icon:"gift",height:"24",width:"24",class:"text-success"})]),c("div",bco,[c("h5",kco,[z(m(e.$t("cart.discount.text"))+" ",1),c("span",wco,m(n.discount.code),1)])]),c("div",$co,[c("p",Cco,m(e.$t("public.dash")+n.discount.discount_amount+" "+e.$t("currency.short")),1),n.hideClose?D("",!0):(h(),g("div",{key:0,onClick:t[0]||(t[0]=l=>r.remove())},[b(s,{icon:"close",height:"20",width:"20",class:"cursor-pointer text-gray-900 ms-3"})]))])])],2)]),_:1})}const wde=U(vco,[["render",Sco]]),Tco={components:{CartItem:gco,CartDiscountItem:wde},computed:{...sn({items:e=>e.cart.items}),...Oe({discount:"cart/discount"}),discountItem(){return{code:this.discount.discount.code,discount_amount:this.discount.discount_amount}}}},Eco={class:"mh-10rem"};function Ico(e,t,n,o,i,r){const s=y("CartDiscountItem"),a=y("CartItem");return h(),g("div",Eco,[e.discount.discount_amount?(h(),W(s,{key:0,discount:r.discountItem,"border-bottom":""},null,8,["discount"])):D("",!0),(h(!0),g(pe,null,Me(e.items,l=>(h(),W(a,{key:l.product_id,item:l},null,8,["item"]))),128))])}const Pco=U(Tco,[["render",Ico]]),Aco={components:{AppIcon:Ue},props:{icon:{type:String,default:null}}},Dco=["href"];function xco(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("a",{href:e.ziggyRoute("school.manager.finance.order",{"open-increase-sidebar":!0}),class:"btn btn-primary btn-center"},[n.icon?(h(),W(s,{key:0,icon:n.icon,height:20,width:20,class:"me-icon"},null,8,["icon"])):D("",!0),z(" "+m(e.$t("school.cart.top_up")),1)],8,Dco)}const Oco=U(Aco,[["render",xco]]),Lco={props:{disabled:{type:Boolean,default:!1},manager:Object},computed:{...Oe({discount:"cart/discount"}),cartCodeCode(){return this.discount.discount?this.discount.discount.code:null}},data(){return{token:document.head.querySelector('meta[name="csrf-token"]').content}},methods:{createOrderByCredit(){this.$store.dispatch("payment/select",{instrument:"credit",swift:null}),this.$store.dispatch("order/place"),this.$emit("loading")}}},Mco=["value"],Nco=["value"];function Rco(e,t,n,o,i,r){const s=an("tooltip");return xe((h(),g("div",null,[c("input",{type:"hidden",name:"_token",value:i.token},null,8,Mco),c("input",{type:"hidden",name:"code",value:r.cartCodeCode},null,8,Nco),c("button",{class:J(["btn btn-primary btn-center w-100",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(...a)=>r.createOrderByCredit&&r.createOrderByCredit(...a))},m(e.$t("school.cart.payment.credit.cta")),3)])),[[s,{content:n.disabled?e.$t("school.cart.payment.credit.not_enough"):null,delay:{show:500,hide:100},triggers:["hover","click"]}]])}const jco=U(Lco,[["render",Rco]]),Fco={components:{AppIcon:Ue},computed:{...sn({priceBruttoAllDiscounts:e=>e.cart.price_brutto_all_discounts,isForSchool:e=>e.cart.is_for_school}),disabled(){return this.priceBruttoAllDiscounts<=0}}},zco=["href"];function Uco(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("a",{href:e.ziggyRoute("order.payment.index"),class:J(["btn",[e.isForSchool?"btn-tertiary":"btn-primary",{disabled:r.disabled}]])},[z(m(e.isForSchool?e.$t("school.cart.order"):e.$t("cart.payment.gateway.button"))+" ",1),b(s,{icon:"chevron-right",class:"ms-icon"})],10,zco)}const $de=U(Fco,[["render",Uco]]),Bco={components:{CartOrderButton:$de}};function Hco(e,t,n,o,i,r){const s=y("CartOrderButton");return h(),W(s)}const Vco=U(Bco,[["render",Hco]]),qco={components:{ContactEmailAnchor:Xy,SchoolCreditOrderCreateButton:Oco,SchoolCartOrderCreditButton:jco,SchoolCartOrderButton:Vco},data(){return{manager:{email:null}}},computed:{...sn({priceBruttoAllDiscounts:e=>e.cart.price_brutto_all_discounts}),...Oe({auth:"auth/auth"}),creditAfterOrder(){return this.auth.school_credit-this.priceBruttoAllDiscounts},enoughCredit(){return this.creditAfterOrder>=0},disabled(){return!this.enoughCredit||this.priceBruttoAllDiscounts<=0}},methods:{load(){tg.manager().then(e=>{this.manager=e.data.manager})}},mounted(){this.load()}},Yco={class:"text-gray-700 mt-3 mb-0"},Wco={class:"medium text-gray-700 mb-0"},Gco=["href"];function Zco(e,t,n,o,i,r){const s=y("SchoolCartOrderCreditButton"),a=y("SchoolCreditOrderCreateButton"),l=y("SchoolCartOrderButton"),d=y("ContactEmailAnchor");return h(),g("div",null,[e.auth.is_school_manager?(h(),g(pe,{key:0},[r.enoughCredit?(h(),W(s,{key:0,disabled:r.disabled,class:"w-100 mb-3",onLoading:t[0]||(t[0]=u=>e.$emit("loading"))},null,8,["disabled"])):(h(),W(a,{key:1,icon:"wallet",class:"w-100 mb-3"})),b(l,{class:"w-100"}),c("p",Yco,[z(m(e.$t("school.cart.payment.credit.help_manager"))+" ",1),b(d)])],64)):D("",!0),e.auth.is_school_manager?D("",!0):(h(),g(pe,{key:1},[b(s,{class:"w-100 mb-3",disabled:r.disabled,manager:i.manager,onLoading:t[1]||(t[1]=u=>e.$emit("loading"))},null,8,["disabled","manager"]),b(l,{class:"w-100 mb-3"}),c("p",Wco,[z(m(e.$t("school.cart.payment.credit.help_employee"))+" ",1),i.manager.email?(h(),g("a",{key:0,href:"mailto:"+i.manager.email,target:"_blank"},m(i.manager.email),9,Gco)):D("",!0)])],64))])}const Kco=U(qco,[["render",Zco]]),Jco={computed:{...Oe({discount:"cart/discount",auth:"auth/auth"}),...sn({priceBruttoAllDiscounts:e=>e.cart.price_brutto_all_discounts,hasSchool:e=>e.auth.has_school}),cartCodeCode(){return this.discount.discount?this.discount.discount.code:null},enoughCredit(){return this.auth.credit>=this.priceBruttoAllDiscounts},disabled(){return!this.enoughCredit||this.priceBruttoAllDiscounts<=0}},methods:{openCreditOrderCreateModal(){window.appModal("credit-order-create")},createOrderByCredit(){this.$store.dispatch("payment/select",{instrument:"credit",swift:null}),this.$store.dispatch("order/place"),this.$emit("loading")}},data(){return{coins:Pg,coinsGray:N6,token:document.head.querySelector('meta[name="csrf-token"]').content}}},Xco={class:"text-right"},Qco=["value"],edo=["value"],tdo=["src"],ndo={key:0,class:"d-flex align-items-center justify-content-center"},odo={class:"small text-center text-gray-700 h-0dot75rem fw-medium mb-0"};function ido(e,t,n,o,i,r){const s=y("app-icon"),a=an("tooltip");return h(),g("div",Xco,[c("input",{type:"hidden",name:"_token",value:i.token},null,8,Qco),c("input",{type:"hidden",name:"code",value:r.cartCodeCode},null,8,edo),xe((h(),g("div",null,[c("button",{class:J(["btn btn-tertiary btn-center h-3rem w-100 mb-2",{disabled:r.disabled}]),onClick:t[0]||(t[0]=(...l)=>r.createOrderByCredit&&r.createOrderByCredit(...l))},[c("img",{src:r.disabled?i.coinsGray:i.coins,height:"30",class:"me-icon"},null,8,tdo),z(" "+m(e.$t("cart.payment.credit.button")),1)],2)])),[[a,{content:r.enoughCredit?null:e.$t("credit.increase_info"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),e.hasSchool?D("",!0):(h(),g("div",ndo,[c("p",odo,m(e.$t("credit.actual_personal")+":")+" "+m(e.auth.credit.toLocaleString())+" "+m(e.$t("currency.short")),1),r.enoughCredit?D("",!0):xe((h(),g("div",{key:0,class:"text-primary cursor-pointer ms-2",onClick:t[1]||(t[1]=(...l)=>r.openCreditOrderCreateModal&&r.openCreditOrderCreateModal(...l))},[b(s,{icon:"plus-circle",height:24,width:24})])),[[a,{content:e.$t("credit.increase"),delay:{show:500,hide:100},triggers:["hover","click"]}]])]))])}const rdo=U(Jco,[["render",ido]]),sdo={components:{CartOrderButton:$de,CartOrderCreditButton:rdo}},ado={class:"text-center"};function ldo(e,t,n,o,i,r){const s=y("CartOrderButton"),a=y("CartOrderCreditButton");return h(),g("div",ado,[b(s,{class:"w-100 mb-3"}),b(a,{onLoading:t[0]||(t[0]=l=>e.$emit("loading"))})])}const cdo=U(sdo,[["render",ldo]]),ddo={computed:{...sn({is_for_school:e=>e.cart.is_for_school,personalPriceBruttoAllDiscounts:e=>e.cart.personal_price_brutto_all_discounts,schoolPriceBruttoAllDiscounts:e=>e.cart.school_price_brutto_all_discounts})},methods:{setAsSchool(){Promise.all([this.$store.dispatch("cart/setAsSchool")])},setAsPersonal(){Promise.all([this.$store.dispatch("cart/setAsPersonal")])}}},udo={class:"mb-3"},hdo={class:"ms-1 me-3"},fdo=["checked"],mdo={for:"cart-type-personal",class:"text-start cursor-pointer d-flex flex-wrap justify-content-between w-100"},pdo={class:"small fw-medium mb-0"},gdo={class:"small text-gray-700 mb-0"},vdo={class:"fw-medium"},_do={class:"ms-1 me-3"},ydo=["checked"],bdo={for:"cart-type-school",class:"text-start cursor-pointer d-flex flex-wrap justify-content-between w-100"},kdo={class:"small fw-medium mb-0"},wdo={class:"small text-gray-700 mb-0"},$do={class:"fw-medium"};function Cdo(e,t,n,o,i,r){return h(),g("div",null,[c("h4",udo,m(e.$t("cart.cart_type.choose")),1),c("div",{class:"d-flex align-items-center cursor-pointer mb-3",onClick:t[0]||(t[0]=(...s)=>r.setAsPersonal&&r.setAsPersonal(...s))},[c("div",hdo,[c("input",{type:"radio",checked:!e.is_for_school,name:"cart-type",id:"cart-type-personal",class:"transform-scale-1dot5 cursor-pointer"},null,8,fdo)]),c("label",mdo,[c("div",null,[c("p",pdo,m(e.$t("cart.cart_type_capitalized.personal")),1),c("p",gdo,m(e.$t("cart.cart_type.personal_description")),1)]),c("div",vdo,m(e.personalPriceBruttoAllDiscounts.toLocaleString()+" "+e.$t("currency.short")),1)])]),c("div",{class:"d-flex align-items-center cursor-pointer",onClick:t[1]||(t[1]=(...s)=>r.setAsSchool&&r.setAsSchool(...s))},[c("div",_do,[c("input",{type:"radio",checked:e.is_for_school,name:"cart-type",id:"cart-type-school",class:"transform-scale-1dot5 cursor-pointer"},null,8,ydo)]),c("label",bdo,[c("div",null,[c("p",kdo,m(e.$t("cart.cart_type_capitalized.school")),1),c("p",wdo,m(e.$t("cart.cart_type.school_description")),1)]),c("div",$do,m(e.schoolPriceBruttoAllDiscounts.toLocaleString()+" "+e.$t("currency.short")),1)])])])}const Sdo=U(ddo,[["render",Cdo]]),Tdo={components:{AppIcon:Ue},computed:{...Oe({auth:"auth/auth"}),...sn({priceBruttoAllDiscounts:e=>e.cart.price_brutto_all_discounts}),enoughCredit(){return this.auth.credit>=this.priceBruttoAllDiscounts}},methods:{openCreditOrderCreateModal(){window.appModal("credit-order-create")}}},Edo={class:"bg-secondary d-flex align-items-center rounded p-2 mb-3"},Ido=["src"],Pdo={class:"text-start d-flex justify-content-between align-items-center"},Ado={class:"small fw-medium text-gray-800 mb-0 text-truncate"},Ddo={class:"d-flex align-items-center"},xdo={class:"small text-gray-700"};function Odo(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Edo,[c("img",{src:e.auth.image_thumbnail,height:"40",width:"40",class:"rounded-circle border border-gray-400 me-2dot5"},null,8,Ido),c("div",Pdo,[c("div",null,[c("p",Ado,m(this.auth.first_name+" "+this.auth.last_name),1),c("div",Ddo,[c("div",xdo,m(e.$t("credit.available",{amount:e.auth.credit.toLocaleString()})),1),r.enoughCredit?D("",!0):(h(),g("div",{key:0,class:"text-primary cursor-pointer d-flex align-items-center ms-1",onClick:t[0]||(t[0]=(...a)=>r.openCreditOrderCreateModal&&r.openCreditOrderCreateModal(...a))},[b(s,{icon:"plus-circle",height:20,width:20})]))])])])])}const Ldo=U(Tdo,[["render",Odo]]),Mdo={components:{AppIcon:Ue},computed:{...Oe({auth:"auth/auth"})}},Ndo={class:"bg-secondary d-flex align-items-center rounded p-2 mb-3"},Rdo={class:"d-flex align-items-center justify-content-center border-circle h-2dot5rem w-2dot5rem me-2dot5 bg-purple-heart-light-2 text-primary"},jdo={class:"text-start text-truncate"},Fdo={class:"small fw-medium text-gray-800 mb-0 text-truncate"},zdo={class:"small text-gray-700 mb-0 text-truncate"};function Udo(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",Ndo,[c("div",Rdo,[b(s,{icon:"school"})]),c("div",jdo,[c("p",Fdo,m(this.auth.school),1),c("p",zdo,m(e.$t("school.credit_available",{amount:e.auth.school_credit.toLocaleString()})),1)])])}const Bdo=U(Mdo,[["render",Udo]]),Hdo={props:{primary:{type:Boolean,default:!1},login:{type:Boolean,default:!1}},methods:{openLoginRegisterModal(){window.loginRegisterModal(null,"login","cart")}}};function Vdo(e,t,n,o,i,r){return h(),g("button",{onClick:t[0]||(t[0]=(...s)=>r.openLoginRegisterModal&&r.openLoginRegisterModal(...s)),class:J(["btn",n.primary?"btn-primary":"btn-secondary","w-100"])},m(n.login?e.$t("login.headline"):e.$t("login.login_register")),3)}const qdo=U(Hdo,[["render",Vdo]]),Ydo={props:{label:{type:String,default:null},placeholder:{type:String,default:null},value:{type:String,default:()=>""},invalid:{type:Boolean,default:!1},invalidMessage:{type:String,default:""},disabled:{type:Boolean,default:!1}},computed:{valueModel:{get(){return this.value},set(e){this.$emit("update:value",e)}}}},Wdo={class:"form-floating input-group"},Gdo=["placeholder","disabled"],Zdo={for:"email",class:"form-label small text-gray-800"},Kdo={key:0,class:"invalid-feedback"};function Jdo(e,t,n,o,i,r){return h(),g("div",Wdo,[xe(c("input",{type:"email",class:J(["form-control",{"form-control":!0,"is-invalid":n.invalid}]),placeholder:n.placeholder??e.$t("login.form.email.placeholder"),required:"","onUpdate:modelValue":t[0]||(t[0]=s=>r.valueModel=s),disabled:n.disabled},null,10,Gdo),[[wt,r.valueModel]]),c("label",Zdo,m(n.label??e.$t("login.form.email.label")),1),n.invalidMessage?(h(),g("span",Kdo,m(n.invalidMessage),1)):D("",!0)])}const Cde=U(Ydo,[["render",Jdo]]),Xdo={components:{CartLoginRegisterButton:qdo,InputEmail:Cde},validations:{email:{required:Yt,email:Rf}},data(){return{step:1,email:null,user:null}},computed:{emailInvalidMessage(){return this.v$.email.$error&&!this.v$.email.required.$invalid?this.$t("validation.custom.email.email"):this.v$.email.$error&&this.v$.email.required.$invalid?this.$t("validation.custom.email.required"):null}},methods:{showEmailInput(){this.step=2},guestCheckout(){this.v$.$touch(),!this.v$.email.$invalid&&De.post(this.ziggyRoute("api.cart.guest_checkout"),{email:this.email}).then(e=>{e.data.user.role=="guest"?window.location.href=this.ziggyRoute("order.payment.index"):(this.user=e.data.user,this.$store.commit("cart/setData",e.data),this.step=3)})}},setup(){return{v$:Pn()}}},Qdo={key:0},euo={class:"position-relative"},tuo={class:"position-absolute top-50 start-50 translate-middle small text-gray-700 bg-white px-2"},nuo={class:"text-start mb-4"},ouo={class:"fw-bold mb-2"},iuo={class:"d-flex flex-column gap-2 medium text-gray-800"},ruo={class:"d-flex"},suo={class:"me-2"},auo={class:"d-flex"},luo={class:"me-2"},cuo={class:"d-flex"},duo={class:"me-2"},uuo={key:1,class:"text-start"},huo={class:"medium text-gray-800"},fuo={key:2,class:"d-flex flex-column gap-3"},muo={class:"mb-0"},puo={class:"bg-primary-5 fw-medium rounded p-3"},guo={class:"medium text-gray-800 mb-0"},vuo=["href"];function _uo(e,t,n,o,i,r){const s=y("app-icon"),a=y("CartLoginRegisterButton"),l=y("InputEmail");return h(),g("div",null,[i.step==1?(h(),g("div",Qdo,[c("button",{class:"btn btn-primary w-100",onClick:t[0]||(t[0]=(...d)=>r.showEmailInput&&r.showEmailInput(...d))},m(e.$t("login.not_activated.cancel")),1),c("div",euo,[t[3]||(t[3]=c("hr",{class:"my-5"},null,-1)),c("div",tuo,m(e.$t("login.form.or")),1)]),c("div",nuo,[c("p",ouo,m(e.$t("cart.login_register_prompt.title")),1),c("div",iuo,[c("div",ruo,[c("div",suo,[b(s,{icon:"check-fill",class:"text-primary-20"})]),z(" "+m(e.$t("cart.login_register_prompt.list.0")),1)]),c("div",auo,[c("div",luo,[b(s,{icon:"check-fill",class:"text-primary-20"})]),z(" "+m(e.$t("cart.login_register_prompt.list.1")),1)]),c("div",cuo,[c("div",duo,[b(s,{icon:"check-fill",class:"text-primary-20"})]),z(" "+m(e.$t("cart.login_register_prompt.list.2")),1)])])]),b(a)])):i.step==2?(h(),g("div",uuo,[c("p",huo,m(e.$t("cart.guest_query")),1),b(l,{value:i.email,"onUpdate:value":t[1]||(t[1]=d=>i.email=d),class:"mb-4",invalid:o.v$.email.$error,"invalid-message":r.emailInvalidMessage},null,8,["value","invalid","invalid-message"]),c("button",{class:"btn btn-primary w-100",onClick:t[2]||(t[2]=(...d)=>r.guestCheckout&&r.guestCheckout(...d))},[z(m(e.$t("cart.payment.gateway.button"))+" ",1),b(s,{icon:"chevron-right",class:"ms-icon"})])])):(h(),g("div",fuo,[t[4]||(t[4]=c("hr",{class:"my-0"},null,-1)),c("h3",muo,m(e.$t("home.headline_logged")),1),c("div",puo,m(i.user.email),1),c("p",guo,m(e.$t("login.created")),1),b(a,{login:"",primary:""}),c("a",{class:"btn btn-tertiary w-100",href:e.ziggyRoute("order.payment.index")},m(e.$t("login.not_activated.cancel")),9,vuo)]))])}const yuo=U(Xdo,[["render",_uo]]),buo={components:{SchoolCartOrderForm:Kco,CartOrderForm:cdo,Loading:Rt,CartTypeSelectBox:Sdo,CartUserBlock:Ldo,CartSchoolBlock:Bdo,GuestCartOrderForm:yuo},data(){return{primaryColor:window.primaryColor,loadingCreditPay:!1}},computed:{...sn({cartLoading:e=>e.cart.loading,isForSchool:e=>e.cart.is_for_school,priceBruttoAllDiscounts:e=>e.cart.price_brutto_all_discounts,price:e=>e.cart.price,hasSchool:e=>e.auth.has_school}),...Oe({auth:"auth/auth"}),loading(){return this.cartLoading||this.auth.loading}}},kuo={class:"content-box is-narrow shadow text-center"},wuo={class:"text-gray-800 mb-3"},$uo={class:"d-flex align-items-baseline justify-content-center"},Cuo={class:"mb-0 me-2"},Suo={class:"text-gray-800"},Tuo={key:1,class:"text-decoration-line-through text-gray-500 mb-0"},Euo={key:2,class:"mt-3"},Iuo={key:0},Puo={key:1};function Auo(e,t,n,o,i,r){const s=y("Loading"),a=y("CartTypeSelectBox"),l=y("CartUserBlock"),d=y("CartSchoolBlock"),u=y("SchoolCartOrderForm"),f=y("CartOrderForm"),p=y("GuestCartOrderForm");return h(),g("div",kuo,[b(s,{active:i.loadingCreditPay,"onUpdate:active":t[0]||(t[0]=v=>i.loadingCreditPay=v),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.hasSchool?(h(),g(pe,{key:0},[b(a),t[3]||(t[3]=c("hr",{class:"my-4"},null,-1)),e.isForSchool?(h(),W(d,{key:1})):(h(),W(l,{key:0}))],64)):D("",!0),c("h4",wuo,m(e.$t("cart.pay_total")),1),c("div",$uo,[c("h1",Cuo,m(e.priceBruttoAllDiscounts+" "+e.$t("currency.short")),1),c("span",Suo,m(e.$t("cart.with_vat")),1)]),e.price!=e.priceBruttoAllDiscounts?(h(),g("h3",Tuo,m(e.price+" "+e.$t("currency.short")),1)):D("",!0),r.loading?D("",!0):(h(),g("div",Euo,[e.auth.check?(h(),g("div",Iuo,[e.isForSchool?(h(),W(u,{key:0,onLoading:t[1]||(t[1]=v=>i.loadingCreditPay=!i.loadingCreditPay)})):(h(),W(f,{key:1,onLoading:t[2]||(t[2]=v=>i.loadingCreditPay=!i.loadingCreditPay)}))])):(h(),g("div",Puo,[b(p)]))]))])}const Duo=U(buo,[["render",Auo]]),xuo={data(){return{cartEmpty:Rle}}},Ouo={class:"rounded bg-primary-5 py-4 text-center border-radius-5px"},Luo=["src"],Muo={class:"text-gray-800 mb-1"},Nuo={class:"medium text-gray-700 mb-4"},Ruo=["href"];function juo(e,t,n,o,i,r){return h(),g("div",Ouo,[c("img",{src:i.cartEmpty,height:"80",class:"mb-3"},null,8,Luo),c("h3",Muo,m(e.$t("cart.empty.headline")),1),c("p",Nuo,m(e.$t("cart.empty.text")),1),c("a",{href:e.ziggyRoute("materialy"),class:"btn btn-sm btn-primary"},m(e.$t("product.search")),9,Ruo)])}const Fuo=U(xuo,[["render",juo]]),zuo={components:{ProductCard:m6,Loading:Rt},props:{title:{type:String,default:null}},data(){return{primaryColor:window.primaryColor,recommendationData:[],windowWidth:window.innerWidth,loading:!1,productConfig:Wa}},computed:{recommendedCount(){return this.windowWidth>767&&this.windowWidth<992?6:this.windowWidth>575&&this.windowWidth<768?4:5},recommendedFiltered(){return this.recommendationData?this.recommendationData.slice(0,this.recommendedCount):[]}},methods:{load(){this.loading=!0,zce.recommended().then(e=>{this.recommendationData=e.data,this.loading=!1}).catch(e=>{console.log(e),this.loading=!1})},onResize(){this.windowWidth=window.innerWidth}},mounted(){this.load(),this.$nextTick(()=>{window.addEventListener("resize",this.onResize)})},beforeUnmount(){window.removeEventListener("resize",this.onResize)}},Uuo={key:0,class:"mb-3"},Buo={class:"mh-4rem vl-parent"},Huo={key:0,class:"row"};function Vuo(e,t,n,o,i,r){const s=y("Loading"),a=y("ProductCard");return h(),g("div",null,[n.title?(h(),g("h4",Uuo,m(n.title),1)):D("",!0),c("div",Buo,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=l=>i.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),i.loading?D("",!0):(h(),g("div",Huo,[(h(!0),g(pe,null,Me(r.recommendedFiltered,l=>(h(),g("div",{key:l.id,id:"products-alternative",class:"col-xs-12 col-sm-6 col-md-4 col-lg-2dot4 px-2"},[b(a,{product:l,occurance:i.productConfig.occurence.cart},null,8,["product","occurance"])]))),128))]))])])}const quo=U(zuo,[["render",Vuo]]),Yuo={components:{AppIcon:Ue},data(){return{code:null}},computed:{...Oe({applied:"cart/isDiscountApplied"})},validations:{code:{required:Yt}},methods:{apply(){if(this.v$.$touch(),this.v$.$invalid){window.flash(this.$t("discount.apply.error"),"error");return}this.$store.dispatch("cart/discountSet",{code:this.code})}},setup(){return{v$:Pn()}}},Wuo={key:0,class:"content-box is-narrow shadow"},Guo={class:"d-flex justify-content-center align-items-center mb-3"},Zuo={class:"text-center text-gray-800 mb-0"},Kuo={class:"form-group form-floating mb-3"},Juo=["placeholder"],Xuo={class:"d-flex justify-content-center"},Quo=["disabled"];function eho(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return e.applied?D("",!0):(h(),g("div",Wuo,[c("div",Guo,[b(s,{icon:"gift",height:"24",width:"24",class:"me-icon"}),c("h4",Zuo,m(e.$t("discount.code.enter")),1)]),c("form",{onSubmit:t[2]||(t[2]=Gt(()=>{},["prevent"])),ref:"form"},[c("div",Kuo,[xe(c("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>i.code=l),id:"discount-code",type:"text",placeholder:e.$t("discount.code.enter_here"),class:"form-control"},null,8,Juo),[[wt,i.code]])]),xe((h(),g("div",Xuo,[c("button",{onClick:t[1]||(t[1]=(...l)=>r.apply&&r.apply(...l)),class:J(["btn btn-sm btn-tertiary text-nowrap",{disabled:!i.code}]),disabled:!i.code},m(e.$t("public.apply")),11,Quo)])),[[a,{content:i.code?null:e.$t("discount.code.not_entered"),delay:{show:500,hide:100},triggers:["hover","click"]}]])],544)]))}const tho=U(Yuo,[["render",eho]]),nho={methods:{openVoucherModal(){window.appModal("credit-order-create-voucher")}}},oho={class:"text-gray-800 text-center"},iho={class:"d-inline-flex align-items-center fw-medium flex-nowrap"},rho={class:"mb-0"},sho={class:"medium mb-0"};function aho(e,t,n,o,i,r){return h(),g("div",oho,[c("div",iho,[c("p",rho,m(e.$t("voucher.cart.title")),1)]),c("p",sho,[z(m(e.$t("voucher.cart.apply.text"))+" ",1),c("a",{class:"fw-medium cursor-pointer",onClick:t[0]||(t[0]=(...s)=>r.openVoucherModal&&r.openVoucherModal(...s))},m(e.$t("voucher.cart.apply.link")),1)])])}const lho=U(nho,[["render",aho]]),cho={components:{Loading:Rt,CartTable:Pco,CartOrderSummary:Duo,CartEmpty:Fuo,CartProductRecommendedList:quo,CartDiscount:tho,CartVoucher:lho,AppIcon:Ue},computed:{...sn({cartLoading:e=>e.cart.loading,items:e=>e.cart.items,is_for_school:e=>e.cart.is_for_school,cart:e=>e.cart,discount:e=>e.discount.detail}),...Oe({auth:"auth/auth",empty:"cart/isEmpty",cartSize:"cart/size",discountIsActive:"discount/getIsActive"}),loading(){return this.cartLoading||this.auth.loading},cartPageTitle(){return this.auth.has_school?this.is_for_school?this.$t("public.school_cart"):this.$t("public.personal_cart"):this.$t("public.cart")}},data(){return{primaryColor:window.primaryColor}},mounted(){Promise.all([this.$store.dispatch("cart/load")]).then(()=>{}).catch(e=>{if(!(e.response&&e.response.status===404))throw e})}},dho={class:"my-6 vl-parent mh-50vh"},uho={class:"fw-medium mb-0"},hho={key:0,class:"row"},fho={class:"col-12 col-lg-8 pe-md-5"},mho={class:"medium text-gray-700 mb-2"};function pho(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("CartTable"),d=y("CartOrderSummary"),u=y("CartDiscount"),f=y("CartVoucher"),p=y("CartEmpty"),v=y("CartProductRecommendedList");return h(),g("div",dho,[b(s,{active:r.loading,"onUpdate:active":t[0]||(t[0]=_=>r.loading=_),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),r.loading?D("",!0):(h(),g(pe,{key:0},[c("div",{class:J(["d-flex align-items-center mb-2",{"school-themed-component":e.is_for_school}])},[e.is_for_school?(h(),W(a,{key:0,icon:"school",width:24,height:24,class:"text-primary me-2"})):D("",!0),c("h3",uho,m(r.cartPageTitle),1)],2),e.empty?(h(),W(p,{key:1,class:J(["mb-4",{"school-themed-component":e.is_for_school}])},null,8,["class"])):(h(),g("div",hho,[c("div",fho,[e.auth.check?(h(),g("div",{key:0,class:J(["d-flex align-items-start justify-content-between flex-wrap",{"school-themed-component":!e.is_for_school}])},[c("p",mho,m(e.$t("cart.info")),1)],2)):D("",!0),b(l,{class:J({"school-themed-component":e.is_for_school})},null,8,["class"])]),c("div",{class:J(["col-12 col-lg-4 mt-4 mt-lg-0",{"school-themed-component":e.is_for_school}])},[b(d),e.discountIsActive?(h(),W(u,{key:0,class:"mt-3"})):D("",!0),e.auth.check?(h(),W(f,{key:1,class:"mt-5"})):D("",!0)],2),t[1]||(t[1]=c("hr",{class:"my-5"},null,-1))])),b(v,{title:e.empty?e.$t("product.recommended"):e.$t("product.recommended_more")},null,8,["title"])],64))])}const gho=U(cho,[["render",pho]]);const vho={components:{AppIcon:Ue,Loading:Rt},data(){return{primaryColor:window.primaryColor,coverImage:[],fileTypes:Wa.fileTypes,csrf:document.head.querySelector('meta[name="csrf-token"]').content}},computed:{...Oe({product:"product/getProductData"}),coverImagePath(){return 0 in this.coverImage?this.coverImage[0].blob:this.product.cover_img.length>0?this.product.cover_img:!1},loading(){return 0 in this.coverImage?this.coverImage[0].active:!1},progress(){return 0 in this.coverImage?this.coverImage[0].progress:0}},methods:{coverImageThumbnail(e){e.blob="";let t=window.URL||window.webkitURL;t&&t.createObjectURL&&(e.blob=t.createObjectURL(e.file))},coverImageUpdate(e,t){e&&!t&&(!this.$refs.uploadCoverImage||!this.$refs.uploadCoverImage.active)&&(this.$refs.uploadCoverImage.active=1)}}},_ho={class:"vl-parent"},yho={class:"upload-box"},bho={class:"upload-box-info"},kho={class:"mb-3"},who={class:"mb-5"},$ho={class:"upload-box-upload"},Cho={class:"upload-inner upload-block"},Sho={class:"d-flex flex-column ms-5 align-items-baseline"},Tho={class:"medium text-gray-600 fs-6"},Eho={class:"image-thumbnail mb-0"},Iho=["src"];function Pho(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("upload");return h(),g("div",_ho,[b(s,{active:r.loading,"onUpdate:active":t[0]||(t[0]=d=>r.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",yho,[c("div",bho,[c("h4",kho,m(e.$t("product.editor.gallery.cover_image.title")),1),c("p",who,m(e.$t("product.editor.gallery.cover_image.text")),1)]),c("div",$ho,[b(l,{class:"upload","post-action":e.ziggyRoute("administration.api.product.update.cover_image",e.product.id),extensions:"gif,jpg,jpeg,png,webp",accept:"image/png,image/gif,image/jpeg,image/webp",multiple:!1,size:1024*1024*10,modelValue:i.coverImage,"onUpdate:modelValue":t[1]||(t[1]=d=>i.coverImage=d),onInputFilter:r.coverImageThumbnail,onInputFile:r.coverImageUpdate,headers:{"X-CSRF-TOKEN":this.csrf},ref:"uploadCoverImage","input-id":"uploadCoverImage"},{default:F(()=>[c("div",Cho,[b(a,{icon:"upload",class:"text-primary"}),c("div",Sho,[z(m(e.$t("product.editor.gallery.cover_image.insert"))+" ",1),c("span",Tho,m(e.$t("product.editor.gallery.cover_image.tips")),1)])])]),_:1},8,["post-action","modelValue","onInputFilter","onInputFile","headers"])]),c("figure",Eho,[r.coverImagePath?(h(),g("img",{key:0,src:r.coverImagePath,class:"image-thumbnail mt-5"},null,8,Iho)):D("",!0)])])])}const Aho=U(vho,[["render",Pho]]);/*! * FilePondPluginFileValidateType 1.2.9 * Licensed under MIT, https://opensource.org/licenses/MIT/ * Please visit https://pqina.nl/filepond/ for details. */const Sde=({addFilter:e,utils:t})=>{const{Type:n,isString:o,replaceInString:i,guesstimateMimeType:r,getExtensionFromFilename:s,getFilenameFromURL:a}=t,l=(v,_)=>{const k=(/^[^/]+/.exec(v)||[]).pop(),C=_.slice(0,-2);return k===C},d=(v,_)=>v.some(k=>/\*$/.test(k)?l(_,k):k===_),u=v=>{let _="";if(o(v)){const k=a(v),C=s(k);C&&(_=r(C))}else _=v.type;return _},f=(v,_,k)=>{if(_.length===0)return!0;const C=u(v);return k?new Promise(($,E)=>{k(v,C).then(P=>{d(_,P)?$():E()}).catch(E)}):d(_,C)},p=v=>_=>v[_]===null?!1:v[_]||_;return e("SET_ATTRIBUTE_TO_OPTION_MAP",v=>Object.assign(v,{accept:"acceptedFileTypes"})),e("ALLOW_HOPPER_ITEM",(v,{query:_})=>_("GET_ALLOW_FILE_TYPE_VALIDATION")?f(v,_("GET_ACCEPTED_FILE_TYPES")):!0),e("LOAD_FILE",(v,{query:_})=>new Promise((k,C)=>{if(!_("GET_ALLOW_FILE_TYPE_VALIDATION")){k(v);return}const $=_("GET_ACCEPTED_FILE_TYPES"),E=_("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),P=f(v,$,E),I=()=>{const O=$.map(p(_("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter(S=>S!==!1),L=O.filter((S,j)=>O.indexOf(S)===j);C({status:{main:_("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:i(_("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:L.join(", "),allButLastType:L.slice(0,-1).join(", "),lastType:L[L.length-1]})}})};if(typeof P=="boolean")return P?k(v):I();P.then(()=>{k(v)}).catch(I)})),{options:{allowFileTypeValidation:[!0,n.BOOLEAN],acceptedFileTypes:[[],n.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",n.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",n.STRING],fileValidateTypeLabelExpectedTypesMap:[{},n.OBJECT],fileValidateTypeDetectType:[null,n.FUNCTION]}}},Dho=typeof window<"u"&&typeof window.document<"u";Dho&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Sde}));/*! * FilePondPluginImagePreview 4.6.12 * Licensed under MIT, https://opensource.org/licenses/MIT/ * Please visit https://pqina.nl/filepond/ for details. */const xho=e=>/^image/.test(e.type),ZY=(e,t)=>Z2(e.x*t,e.y*t),KY=(e,t)=>Z2(e.x+t.x,e.y+t.y),Oho=e=>{const t=Math.sqrt(e.x*e.x+e.y*e.y);return t===0?{x:0,y:0}:Z2(e.x/t,e.y/t)},S8=(e,t,n)=>{const o=Math.cos(t),i=Math.sin(t),r=Z2(e.x-n.x,e.y-n.y);return Z2(n.x+o*r.x-i*r.y,n.y+i*r.x+o*r.y)},Z2=(e=0,t=0)=>({x:e,y:t}),kl=(e,t,n=1,o)=>{if(typeof e=="string")return parseFloat(e)*n;if(typeof e=="number")return e*(o?t[o]:Math.min(t.width,t.height))},Lho=(e,t,n)=>{const o=e.borderStyle||e.lineStyle||"solid",i=e.backgroundColor||e.fontColor||"transparent",r=e.borderColor||e.lineColor||"transparent",s=kl(e.borderWidth||e.lineWidth,t,n),a=e.lineCap||"round",l=e.lineJoin||"round",d=typeof o=="string"?"":o.map(f=>kl(f,t,n)).join(","),u=e.opacity||1;return{"stroke-linecap":a,"stroke-linejoin":l,"stroke-width":s||0,"stroke-dasharray":d,stroke:r,fill:i,opacity:u}},Rc=e=>e!=null,Mho=(e,t,n=1)=>{let o=kl(e.x,t,n,"width")||kl(e.left,t,n,"width"),i=kl(e.y,t,n,"height")||kl(e.top,t,n,"height"),r=kl(e.width,t,n,"width"),s=kl(e.height,t,n,"height"),a=kl(e.right,t,n,"width"),l=kl(e.bottom,t,n,"height");return Rc(i)||(Rc(s)&&Rc(l)?i=t.height-s-l:i=l),Rc(o)||(Rc(r)&&Rc(a)?o=t.width-r-a:o=a),Rc(r)||(Rc(o)&&Rc(a)?r=t.width-o-a:r=0),Rc(s)||(Rc(i)&&Rc(l)?s=t.height-i-l:s=0),{x:o||0,y:i||0,width:r||0,height:s||0}},Nho=e=>e.map((t,n)=>`${n===0?"M":"L"} ${t.x} ${t.y}`).join(" "),Bu=(e,t)=>Object.keys(t).forEach(n=>e.setAttribute(n,t[n])),Rho="http://www.w3.org/2000/svg",r_=(e,t)=>{const n=document.createElementNS(Rho,e);return t&&Bu(n,t),n},jho=e=>Bu(e,{...e.rect,...e.styles}),Fho=e=>{const t=e.rect.x+e.rect.width*.5,n=e.rect.y+e.rect.height*.5,o=e.rect.width*.5,i=e.rect.height*.5;return Bu(e,{cx:t,cy:n,rx:o,ry:i,...e.styles})},zho={contain:"xMidYMid meet",cover:"xMidYMid slice"},Uho=(e,t)=>{Bu(e,{...e.rect,...e.styles,preserveAspectRatio:zho[t.fit]||"none"})},Bho={left:"start",center:"middle",right:"end"},Hho=(e,t,n,o)=>{const i=kl(t.fontSize,n,o),r=t.fontFamily||"sans-serif",s=t.fontWeight||"normal",a=Bho[t.textAlign]||"start";Bu(e,{...e.rect,...e.styles,"stroke-width":0,"font-weight":s,"font-size":i,"font-family":r,"text-anchor":a}),e.text!==t.text&&(e.text=t.text,e.textContent=t.text.length?t.text:" ")},Vho=(e,t,n,o)=>{Bu(e,{...e.rect,...e.styles,fill:"none"});const i=e.childNodes[0],r=e.childNodes[1],s=e.childNodes[2],a=e.rect,l={x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height};if(Bu(i,{x1:a.x,y1:a.y,x2:l.x,y2:l.y}),!t.lineDecoration)return;r.style.display="none",s.style.display="none";const d=Oho({x:l.x-a.x,y:l.y-a.y}),u=kl(.05,n,o);if(t.lineDecoration.indexOf("arrow-begin")!==-1){const f=ZY(d,u),p=KY(a,f),v=S8(a,2,p),_=S8(a,-2,p);Bu(r,{style:"display:block;",d:`M${v.x},${v.y} L${a.x},${a.y} L${_.x},${_.y}`})}if(t.lineDecoration.indexOf("arrow-end")!==-1){const f=ZY(d,-u),p=KY(l,f),v=S8(l,2,p),_=S8(l,-2,p);Bu(s,{style:"display:block;",d:`M${v.x},${v.y} L${l.x},${l.y} L${_.x},${_.y}`})}},qho=(e,t,n,o)=>{Bu(e,{...e.styles,fill:"none",d:Nho(t.points.map(i=>({x:kl(i.x,n,o,"width"),y:kl(i.y,n,o,"height")})))})},T8=e=>t=>r_(e,{id:t.id}),Yho=e=>{const t=r_("image",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return t.onload=()=>{t.setAttribute("opacity",e.opacity||1)},t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.src),t},Who=e=>{const t=r_("g",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round"}),n=r_("line");t.appendChild(n);const o=r_("path");t.appendChild(o);const i=r_("path");return t.appendChild(i),t},Gho={image:Yho,rect:T8("rect"),ellipse:T8("ellipse"),text:T8("text"),path:T8("path"),line:Who},Zho={rect:jho,ellipse:Fho,image:Uho,text:Hho,path:qho,line:Vho},Kho=(e,t)=>Gho[e](t),Jho=(e,t,n,o,i)=>{t!=="path"&&(e.rect=Mho(n,o,i)),e.styles=Lho(n,o,i),Zho[t](e,n,o,i)},Xho=["x","y","left","top","right","bottom","width","height"],Qho=e=>typeof e=="string"&&/%/.test(e)?parseFloat(e)/100:e,efo=e=>{const[t,n]=e,o=n.points?{}:Xho.reduce((i,r)=>(i[r]=Qho(n[r]),i),{});return[t,{zIndex:0,...n,...o}]},tfo=(e,t)=>e[1].zIndex>t[1].zIndex?1:e[1].zIndex<t[1].zIndex?-1:0,nfo=e=>e.utils.createView({name:"image-preview-markup",tag:"svg",ignoreRect:!0,mixins:{apis:["width","height","crop","markup","resize","dirty"]},write:({root:t,props:n})=>{if(!n.dirty)return;const{crop:o,resize:i,markup:r}=n,s=n.width,a=n.height;let l=o.width,d=o.height;if(i){const{size:v}=i;let _=v&&v.width,k=v&&v.height;const C=i.mode,$=i.upscale;_&&!k&&(k=_),k&&!_&&(_=k);const E=l<_&&d<k;if(!E||E&&$){let P=_/l,I=k/d;if(C==="force")l=_,d=k;else{let O;C==="cover"?O=Math.max(P,I):C==="contain"&&(O=Math.min(P,I)),l=l*O,d=d*O}}}const u={width:s,height:a};t.element.setAttribute("width",u.width),t.element.setAttribute("height",u.height);const f=Math.min(s/l,a/d);t.element.innerHTML="";const p=t.query("GET_IMAGE_PREVIEW_MARKUP_FILTER");r.filter(p).map(efo).sort(tfo).forEach(v=>{const[_,k]=v,C=Kho(_,k);Jho(C,_,k,u,f),t.element.appendChild(C)})}}),o2=(e,t)=>({x:e,y:t}),ofo=(e,t)=>e.x*t.x+e.y*t.y,JY=(e,t)=>o2(e.x-t.x,e.y-t.y),ifo=(e,t)=>ofo(JY(e,t),JY(e,t)),XY=(e,t)=>Math.sqrt(ifo(e,t)),QY=(e,t)=>{const n=e,o=1.5707963267948966,i=t,r=1.5707963267948966-t,s=Math.sin(o),a=Math.sin(i),l=Math.sin(r),d=Math.cos(r),u=n/s,f=u*a,p=u*l;return o2(d*f,d*p)},rfo=(e,t)=>{const n=e.width,o=e.height,i=QY(n,t),r=QY(o,t),s=o2(e.x+Math.abs(i.x),e.y-Math.abs(i.y)),a=o2(e.x+e.width+Math.abs(r.y),e.y+Math.abs(r.x)),l=o2(e.x-Math.abs(r.y),e.y+e.height-Math.abs(r.x));return{width:XY(s,a),height:XY(s,l)}},sfo=(e,t,n=1)=>{const o=e.height/e.width;let i=1,r=t,s=1,a=o;a>r&&(a=r,s=a/o);const l=Math.max(i/s,r/a),d=e.width/(n*l*s),u=d*t;return{width:d,height:u}},Tde=(e,t,n,o)=>{const i=o.x>.5?1-o.x:o.x,r=o.y>.5?1-o.y:o.y,s=i*2*e.width,a=r*2*e.height,l=rfo(t,n);return Math.max(l.width/s,l.height/a)},Ede=(e,t)=>{let n=e.width,o=n*t;o>e.height&&(o=e.height,n=o/t);const i=(e.width-n)*.5,r=(e.height-o)*.5;return{x:i,y:r,width:n,height:o}},afo=(e,t={})=>{let{zoom:n,rotation:o,center:i,aspectRatio:r}=t;r||(r=e.height/e.width);const s=sfo(e,r,n),a={x:s.width*.5,y:s.height*.5},l={x:0,y:0,width:s.width,height:s.height,center:a},d=typeof t.scaleToFit>"u"||t.scaleToFit,u=Tde(e,Ede(l,r),o,d?i:{x:.5,y:.5}),f=n*u;return{widthFloat:s.width/f,heightFloat:s.height/f,width:Math.round(s.width/f),height:Math.round(s.height/f)}},Lu={type:"spring",stiffness:.5,damping:.45,mass:10},lfo=e=>e.utils.createView({name:"image-bitmap",ignoreRect:!0,mixins:{styles:["scaleX","scaleY"]},create:({root:t,props:n})=>{t.appendChild(n.image)}}),cfo=e=>e.utils.createView({name:"image-canvas-wrapper",tag:"div",ignoreRect:!0,mixins:{apis:["crop","width","height"],styles:["originX","originY","translateX","translateY","scaleX","scaleY","rotateZ"],animations:{originX:Lu,originY:Lu,scaleX:Lu,scaleY:Lu,translateX:Lu,translateY:Lu,rotateZ:Lu}},create:({root:t,props:n})=>{n.width=n.image.width,n.height=n.image.height,t.ref.bitmap=t.appendChildView(t.createChildView(lfo(e),{image:n.image}))},write:({root:t,props:n})=>{const{flip:o}=n.crop,{bitmap:i}=t.ref;i.scaleX=o.horizontal?-1:1,i.scaleY=o.vertical?-1:1}}),dfo=e=>e.utils.createView({name:"image-clip",tag:"div",ignoreRect:!0,mixins:{apis:["crop","markup","resize","width","height","dirty","background"],styles:["width","height","opacity"],animations:{opacity:{type:"tween",duration:250}}},didWriteView:function({root:t,props:n}){n.background&&(t.element.style.backgroundColor=n.background)},create:({root:t,props:n})=>{t.ref.image=t.appendChildView(t.createChildView(cfo(e),Object.assign({},n))),t.ref.createMarkup=()=>{t.ref.markup||(t.ref.markup=t.appendChildView(t.createChildView(nfo(e),Object.assign({},n))))},t.ref.destroyMarkup=()=>{t.ref.markup&&(t.removeChildView(t.ref.markup),t.ref.markup=null)};const o=t.query("GET_IMAGE_PREVIEW_TRANSPARENCY_INDICATOR");o!==null&&(o==="grid"?t.element.dataset.transparencyIndicator=o:t.element.dataset.transparencyIndicator="color")},write:({root:t,props:n,shouldOptimize:o})=>{const{crop:i,markup:r,resize:s,dirty:a,width:l,height:d}=n;t.ref.image.crop=i;const u={x:0,y:0,width:l,height:d,center:{x:l*.5,y:d*.5}},f={width:t.ref.image.width,height:t.ref.image.height},p={x:i.center.x*f.width,y:i.center.y*f.height},v={x:u.center.x-f.width*i.center.x,y:u.center.y-f.height*i.center.y},_=Math.PI*2+i.rotation%(Math.PI*2),k=i.aspectRatio||f.height/f.width,C=typeof i.scaleToFit>"u"||i.scaleToFit,$=Tde(f,Ede(u,k),_,C?i.center:{x:.5,y:.5}),E=i.zoom*$;r&&r.length?(t.ref.createMarkup(),t.ref.markup.width=l,t.ref.markup.height=d,t.ref.markup.resize=s,t.ref.markup.dirty=a,t.ref.markup.markup=r,t.ref.markup.crop=afo(f,i)):t.ref.markup&&t.ref.destroyMarkup();const P=t.ref.image;if(o){P.originX=null,P.originY=null,P.translateX=null,P.translateY=null,P.rotateZ=null,P.scaleX=null,P.scaleY=null;return}P.originX=p.x,P.originY=p.y,P.translateX=v.x,P.translateY=v.y,P.rotateZ=_,P.scaleX=E,P.scaleY=E}}),ufo=e=>e.utils.createView({name:"image-preview",tag:"div",ignoreRect:!0,mixins:{apis:["image","crop","markup","resize","dirty","background"],styles:["translateY","scaleX","scaleY","opacity"],animations:{scaleX:Lu,scaleY:Lu,translateY:Lu,opacity:{type:"tween",duration:400}}},create:({root:t,props:n})=>{t.ref.clip=t.appendChildView(t.createChildView(dfo(e),{id:n.id,image:n.image,crop:n.crop,markup:n.markup,resize:n.resize,dirty:n.dirty,background:n.background}))},write:({root:t,props:n,shouldOptimize:o})=>{const{clip:i}=t.ref,{image:r,crop:s,markup:a,resize:l,dirty:d}=n;if(i.crop=s,i.markup=a,i.resize=l,i.dirty=d,i.opacity=o?0:1,o||t.rect.element.hidden)return;const u=r.height/r.width;let f=s.aspectRatio||u;const p=t.rect.inner.width,v=t.rect.inner.height;let _=t.query("GET_IMAGE_PREVIEW_HEIGHT");const k=t.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),C=t.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),$=t.query("GET_PANEL_ASPECT_RATIO"),E=t.query("GET_ALLOW_MULTIPLE");$&&!E&&(_=p*$,f=$);let P=_!==null?_:Math.max(k,Math.min(p*f,C)),I=P/f;I>p&&(I=p,P=I*f),P>v&&(P=v,I=v/f),i.width=I,i.height=P}});let hfo=`<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRatio="none"> <defs> <radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15"> <stop offset='50%' stop-color='#000000'/> <stop offset='56%' stop-color='#0a0a0a'/> <stop offset='63%' stop-color='#262626'/> <stop offset='69%' stop-color='#4f4f4f'/> <stop offset='75%' stop-color='#808080'/> <stop offset='81%' stop-color='#b1b1b1'/> <stop offset='88%' stop-color='#dadada'/> <stop offset='94%' stop-color='#f6f6f6'/> <stop offset='100%' stop-color='#ffffff'/> </radialGradient> <mask id="mask-__UID__"> <rect x="0" y="0" width="500" height="200" fill="url(#gradient-__UID__)"></rect> </mask> </defs> <rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"></rect> </svg>`,eW=0;const ffo=e=>e.utils.createView({name:"image-preview-overlay",tag:"div",ignoreRect:!0,create:({root:t,props:n})=>{let o=hfo;if(document.querySelector("base")){const i=new URL(window.location.href.replace(window.location.hash,"")).href;o=o.replace(/url\(\#/g,"url("+i+"#")}eW++,t.element.classList.add(`filepond--image-preview-overlay-${n.status}`),t.element.innerHTML=o.replace(/__UID__/g,eW)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}}),mfo=function(){self.onmessage=e=>{createImageBitmap(e.data.message.file).then(t=>{self.postMessage({id:e.data.id,message:t},[t])})}},pfo=function(){self.onmessage=e=>{const t=e.data.message.imageData,n=e.data.message.colorMatrix,o=t.data,i=o.length,r=n[0],s=n[1],a=n[2],l=n[3],d=n[4],u=n[5],f=n[6],p=n[7],v=n[8],_=n[9],k=n[10],C=n[11],$=n[12],E=n[13],P=n[14],I=n[15],O=n[16],L=n[17],S=n[18],j=n[19];let M=0,q=0,B=0,V=0,G=0;for(;M<i;M+=4)q=o[M]/255,B=o[M+1]/255,V=o[M+2]/255,G=o[M+3]/255,o[M]=Math.max(0,Math.min((q*r+B*s+V*a+G*l+d)*255,255)),o[M+1]=Math.max(0,Math.min((q*u+B*f+V*p+G*v+_)*255,255)),o[M+2]=Math.max(0,Math.min((q*k+B*C+V*$+G*E+P)*255,255)),o[M+3]=Math.max(0,Math.min((q*I+B*O+V*L+G*S+j)*255,255));self.postMessage({id:e.data.id,message:t},[t.data.buffer])}},gfo=(e,t)=>{let n=new Image;n.onload=()=>{const o=n.naturalWidth,i=n.naturalHeight;n=null,t(o,i)},n.src=e},vfo={1:()=>[1,0,0,1,0,0],2:e=>[-1,0,0,1,e,0],3:(e,t)=>[-1,0,0,-1,e,t],4:(e,t)=>[1,0,0,-1,0,t],5:()=>[0,1,1,0,0,0],6:(e,t)=>[0,1,-1,0,t,0],7:(e,t)=>[0,-1,-1,0,t,e],8:e=>[0,-1,1,0,0,e]},_fo=(e,t,n,o)=>{o!==-1&&e.transform.apply(e,vfo[o](t,n))},yfo=(e,t,n,o)=>{t=Math.round(t),n=Math.round(n);const i=document.createElement("canvas");i.width=t,i.height=n;const r=i.getContext("2d");return o>=5&&o<=8&&([t,n]=[n,t]),_fo(r,t,n,o),r.drawImage(e,0,0,t,n),i},Ide=e=>/^image/.test(e.type)&&!/svg/.test(e.type),bfo=10,kfo=10,wfo=e=>{const t=Math.min(bfo/e.width,kfo/e.height),n=document.createElement("canvas"),o=n.getContext("2d"),i=n.width=Math.ceil(e.width*t),r=n.height=Math.ceil(e.height*t);o.drawImage(e,0,0,i,r);let s=null;try{s=o.getImageData(0,0,i,r).data}catch{return null}const a=s.length;let l=0,d=0,u=0,f=0;for(;f<a;f+=4)l+=s[f]*s[f],d+=s[f+1]*s[f+1],u+=s[f+2]*s[f+2];return l=nE(l,a),d=nE(d,a),u=nE(u,a),{r:l,g:d,b:u}},nE=(e,t)=>Math.floor(Math.sqrt(e/(t/4))),$fo=(e,t)=>(t=t||document.createElement("canvas"),t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t),Cfo=e=>{let t;try{t=new ImageData(e.width,e.height)}catch{t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(new Uint8ClampedArray(e.data)),t},Sfo=e=>new Promise((t,n)=>{const o=new Image;o.crossOrigin="Anonymous",o.onload=()=>{t(o)},o.onerror=i=>{n(i)},o.src=e}),Tfo=e=>{const t=ffo(e),n=ufo(e),{createWorker:o}=e.utils,i=(E,P,I)=>new Promise(O=>{E.ref.imageData||(E.ref.imageData=I.getContext("2d").getImageData(0,0,I.width,I.height));const L=Cfo(E.ref.imageData);if(!P||P.length!==20)return I.getContext("2d").putImageData(L,0,0),O();const S=o(pfo);S.post({imageData:L,colorMatrix:P},j=>{I.getContext("2d").putImageData(j,0,0),S.terminate(),O()},[L.data.buffer])}),r=(E,P)=>{E.removeChildView(P),P.image.width=1,P.image.height=1,P._destroy()},s=({root:E})=>{const P=E.ref.images.shift();return P.opacity=0,P.translateY=-15,E.ref.imageViewBin.push(P),P},a=({root:E,props:P,image:I})=>{const O=P.id,L=E.query("GET_ITEM",{id:O});if(!L)return;const S=L.getMetadata("crop")||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},j=E.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR");let M,q,B=!1;E.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(M=L.getMetadata("markup")||[],q=L.getMetadata("resize"),B=!0);const V=E.appendChildView(E.createChildView(n,{id:O,image:I,crop:S,resize:q,markup:M,dirty:B,background:j,opacity:0,scaleX:1.15,scaleY:1.15,translateY:15}),E.childViews.length);E.ref.images.push(V),V.opacity=1,V.scaleX=1,V.scaleY=1,V.translateY=0,setTimeout(()=>{E.dispatch("DID_IMAGE_PREVIEW_SHOW",{id:O})},250)},l=({root:E,props:P})=>{const I=E.query("GET_ITEM",{id:P.id});if(!I)return;const O=E.ref.images[E.ref.images.length-1];O.crop=I.getMetadata("crop"),O.background=E.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),E.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(O.dirty=!0,O.resize=I.getMetadata("resize"),O.markup=I.getMetadata("markup"))},d=({root:E,props:P,action:I})=>{if(!/crop|filter|markup|resize/.test(I.change.key)||!E.ref.images.length)return;const O=E.query("GET_ITEM",{id:P.id});if(O){if(/filter/.test(I.change.key)){const L=E.ref.images[E.ref.images.length-1];i(E,I.change.value,L.image);return}if(/crop|markup|resize/.test(I.change.key)){const L=O.getMetadata("crop"),S=E.ref.images[E.ref.images.length-1];if(L&&L.aspectRatio&&S.crop&&S.crop.aspectRatio&&Math.abs(L.aspectRatio-S.crop.aspectRatio)>1e-5){const j=s({root:E});a({root:E,props:P,image:$fo(j.image)})}else l({root:E,props:P})}}},u=E=>{const I=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./),O=I?parseInt(I[1]):null;return O!==null&&O<=58?!1:"createImageBitmap"in window&&Ide(E)},f=({root:E,props:P})=>{const{id:I}=P,O=E.query("GET_ITEM",I);if(!O)return;const L=URL.createObjectURL(O.file);gfo(L,(S,j)=>{E.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE",{id:I,width:S,height:j})})},p=({root:E,props:P})=>{const{id:I}=P,O=E.query("GET_ITEM",I);if(!O)return;const L=URL.createObjectURL(O.file),S=()=>{Sfo(L).then(j)},j=M=>{URL.revokeObjectURL(L);const B=(O.getMetadata("exif")||{}).orientation||-1;let{width:V,height:G}=M;if(!V||!G)return;B>=5&&B<=8&&([V,G]=[G,V]);const Q=Math.max(1,window.devicePixelRatio*.75),Y=E.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR")*Q,Z=G/V,se=E.rect.element.width,ce=E.rect.element.height;let te=se,ee=te*Z;Z>1?(te=Math.min(V,se*Y),ee=te*Z):(ee=Math.min(G,ce*Y),te=ee/Z);const ae=yfo(M,te,ee,B),de=()=>{const be=E.query("GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR")?wfo(data):null;O.setMetadata("color",be,!0),"close"in M&&M.close(),E.ref.overlayShadow.opacity=1,a({root:E,props:P,image:ae})},$e=O.getMetadata("filter");$e?i(E,$e,ae).then(de):de()};if(u(O.file)){const M=o(mfo);M.post({file:O.file},q=>{if(M.terminate(),!q){S();return}j(q)})}else S()},v=({root:E})=>{const P=E.ref.images[E.ref.images.length-1];P.translateY=0,P.scaleX=1,P.scaleY=1,P.opacity=1},_=({root:E})=>{E.ref.overlayShadow.opacity=1,E.ref.overlayError.opacity=0,E.ref.overlaySuccess.opacity=0},k=({root:E})=>{E.ref.overlayShadow.opacity=.25,E.ref.overlayError.opacity=1},C=({root:E})=>{E.ref.overlayShadow.opacity=.25,E.ref.overlaySuccess.opacity=1},$=({root:E})=>{E.ref.images=[],E.ref.imageData=null,E.ref.imageViewBin=[],E.ref.overlayShadow=E.appendChildView(E.createChildView(t,{opacity:0,status:"idle"})),E.ref.overlaySuccess=E.appendChildView(E.createChildView(t,{opacity:0,status:"success"})),E.ref.overlayError=E.appendChildView(E.createChildView(t,{opacity:0,status:"failure"}))};return e.utils.createView({name:"image-preview-wrapper",create:$,styles:["height"],apis:["height"],destroy:({root:E})=>{E.ref.images.forEach(P=>{P.image.width=1,P.image.height=1})},didWriteView:({root:E})=>{E.ref.images.forEach(P=>{P.dirty=!1})},write:e.utils.createRoute({DID_IMAGE_PREVIEW_DRAW:v,DID_IMAGE_PREVIEW_CONTAINER_CREATE:f,DID_FINISH_CALCULATE_PREVIEWSIZE:p,DID_UPDATE_ITEM_METADATA:d,DID_THROW_ITEM_LOAD_ERROR:k,DID_THROW_ITEM_PROCESSING_ERROR:k,DID_THROW_ITEM_INVALID:k,DID_COMPLETE_ITEM_PROCESSING:C,DID_START_ITEM_PROCESSING:_,DID_REVERT_ITEM_PROCESSING:_},({root:E})=>{const P=E.ref.imageViewBin.filter(I=>I.opacity===0);E.ref.imageViewBin=E.ref.imageViewBin.filter(I=>I.opacity>0),P.forEach(I=>r(E,I)),P.length=0})})},Pde=e=>{const{addFilter:t,utils:n}=e,{Type:o,createRoute:i,isFile:r}=n,s=Tfo(e);return t("CREATE_VIEW",a=>{const{is:l,view:d,query:u}=a;if(!l("file")||!u("GET_ALLOW_IMAGE_PREVIEW"))return;const f=({root:C,props:$})=>{const{id:E}=$,P=u("GET_ITEM",E);if(!P||!r(P.file)||P.archived)return;const I=P.file;if(!xho(I)||!u("GET_IMAGE_PREVIEW_FILTER_ITEM")(P))return;const O="createImageBitmap"in(window||{}),L=u("GET_IMAGE_PREVIEW_MAX_FILE_SIZE");if(!O&&L&&I.size>L)return;C.ref.imagePreview=d.appendChildView(d.createChildView(s,{id:E}));const S=C.query("GET_IMAGE_PREVIEW_HEIGHT");S&&C.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:P.id,height:S});const j=!O&&I.size>u("GET_IMAGE_PREVIEW_MAX_INSTANT_PREVIEW_FILE_SIZE");C.dispatch("DID_IMAGE_PREVIEW_CONTAINER_CREATE",{id:E},j)},p=(C,$)=>{if(!C.ref.imagePreview)return;let{id:E}=$;const P=C.query("GET_ITEM",{id:E});if(!P)return;const I=C.query("GET_PANEL_ASPECT_RATIO"),O=C.query("GET_ITEM_PANEL_ASPECT_RATIO"),L=C.query("GET_IMAGE_PREVIEW_HEIGHT");if(I||O||L)return;let{imageWidth:S,imageHeight:j}=C.ref;if(!S||!j)return;const M=C.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),q=C.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),V=(P.getMetadata("exif")||{}).orientation||-1;if(V>=5&&V<=8&&([S,j]=[j,S]),!Ide(P.file)||C.query("GET_IMAGE_PREVIEW_UPSCALE")){const se=2048/S;S*=se,j*=se}const G=j/S,Q=(P.getMetadata("crop")||{}).aspectRatio||G;let X=Math.max(M,Math.min(j,q));const Y=C.rect.element.width,Z=Math.min(Y*Q,X);C.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:P.id,height:Z})},v=({root:C})=>{C.ref.shouldRescale=!0},_=({root:C,action:$})=>{$.change.key==="crop"&&(C.ref.shouldRescale=!0)},k=({root:C,action:$})=>{C.ref.imageWidth=$.width,C.ref.imageHeight=$.height,C.ref.shouldRescale=!0,C.ref.shouldDrawPreview=!0,C.dispatch("KICK")};d.registerWriter(i({DID_RESIZE_ROOT:v,DID_STOP_RESIZE:v,DID_LOAD_ITEM:f,DID_IMAGE_PREVIEW_CALCULATE_SIZE:k,DID_UPDATE_ITEM_METADATA:_},({root:C,props:$})=>{C.ref.imagePreview&&(C.rect.element.hidden||(C.ref.shouldRescale&&(p(C,$),C.ref.shouldRescale=!1),C.ref.shouldDrawPreview&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{C.dispatch("DID_FINISH_CALCULATE_PREVIEWSIZE",{id:$.id})})}),C.ref.shouldDrawPreview=!1)))}))}),{options:{allowImagePreview:[!0,o.BOOLEAN],imagePreviewFilterItem:[()=>!0,o.FUNCTION],imagePreviewHeight:[null,o.INT],imagePreviewMinHeight:[44,o.INT],imagePreviewMaxHeight:[256,o.INT],imagePreviewMaxFileSize:[null,o.INT],imagePreviewZoomFactor:[2,o.INT],imagePreviewUpscale:[!1,o.BOOLEAN],imagePreviewMaxInstantPreviewFileSize:[1e6,o.INT],imagePreviewTransparencyIndicator:[null,o.STRING],imagePreviewCalculateAverageImageColor:[!1,o.BOOLEAN],imagePreviewMarkupShow:[!0,o.BOOLEAN],imagePreviewMarkupFilter:[()=>!0,o.FUNCTION]}}},Efo=typeof window<"u"&&typeof window.document<"u";Efo&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Pde}));const Ifo=UL(Sde,Pde),Pfo={components:{FilePond:Ifo},props:{productId:Number},data(){return{primaryColor:window.primaryColor,images:[],fileTypes:Wa.fileTypes,server:{url:this.ziggyRoute("administration.api.product.upload_image",this.productId),process:{headers:{"X-CSRF-TOKEN":document.head.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"},onload:this.uploaded}},labelIdleTemplate:"<div class='d-flex align-items-center p-3'><svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' aria-labelledby='upload' role='img' class='text-primary'><g fill='currentColor'><path fill-rule='evenodd' d='M12 2C9.55912 2 7.4608 3.45744 6.52373 5.54534C6.44011 5.73166 6.38425 5.85598 6.34206 5.94471C6.33167 5.96657 6.32326 5.98381 6.31654 5.99729L6.29677 5.99799C6.23318 5.99989 6.14598 6 6 6C3.79086 6 2 7.79086 2 10C2 12.2091 3.79086 14 6 14H6.17157L8.17157 12H6C4.89543 12 4 11.1046 4 10C4 8.89543 4.89543 8 6 8L6.06419 8.0001C6.27176 8.00057 6.51342 8.00111 6.71431 7.96068C6.92683 7.91791 7.17254 7.84692 7.414 7.69062C7.65546 7.53433 7.82083 7.33923 7.94687 7.16285C8.03371 7.04134 8.10219 6.90047 8.14829 6.8035C8.20111 6.69243 8.26605 6.54772 8.34352 6.37511L8.34839 6.36427C8.97472 4.96871 10.3753 4 12 4C13.6247 4 15.0253 4.96871 15.6516 6.36427L15.6565 6.37511C15.7339 6.54772 15.7989 6.69243 15.8517 6.8035C15.8978 6.90047 15.9663 7.04134 16.0531 7.16285C16.1792 7.33923 16.3445 7.53433 16.586 7.69062C16.8275 7.84692 17.0732 7.91791 17.2857 7.96068C17.4866 8.00111 17.7282 8.00057 17.9358 8.0001L18 8C19.1046 8 20 8.89543 20 10C20 11.1046 19.1046 12 18 12H15.8284L17.8284 14H18C20.2091 14 22 12.2091 22 10C22 7.79086 20.2091 6 18 6C17.854 6 17.7668 5.99989 17.7032 5.99799L17.6835 5.99729C17.6767 5.98381 17.6683 5.96657 17.6579 5.94471C17.6158 5.85598 17.5599 5.73166 17.4763 5.54534C16.5392 3.45744 14.4409 2 12 2ZM6.29756 6.03369C6.29743 6.0339 6.29755 6.03369 6.29756 6.03369V6.03369ZM17.7024 6.03369C17.7024 6.03369 17.7026 6.03393 17.7024 6.03369V6.03369Z' /><path data-v-a0babf54='' fill-rule='evenodd' d='M7.29289 15.2929L8.70711 16.7071L11 14.4142V21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21V14.4142L15.2929 16.7071L16.7071 15.2929L12 10.5858L7.29289 15.2929Z' /></g></svg><div class='d-flex flex-column ms-5 align-items-baseline'><span class='text-gray-800'>"+this.$t("fileupload.insert_images_to_gallery")+"</span><span class='medium text-gray-600 fs-6'>"+this.$t("fileupload.arbitrary_dimensions")+"</span></div></div>"}},computed:{...Oe({product:"product/getProductData"}),maxFileSize(){return"5MB"}},methods:{uploaded(e){let t=JSON.parse(e);t&&t.data&&t.data.images&&this.$store.dispatch("product/updateImages",{images:t.data.images})},removeImage(e){let t=[...this.product.images],n=t.findIndex(o=>o.id===e);t.splice(n,1),this.$store.dispatch("product/updateImages",{images:t}),Og.imageDelete(e).then(o=>{window.flash(o.data.message,"success")})},handleFileUpload(e,t){e||setTimeout(()=>{this.$refs.gallery.removeFile(t.id)},1e3)},labelFileProcessingError(e){return e&&e.code===422?this.$t("fileupload.max_n_mb",{size:5}):this.$t("fileupload.label_file_processing_error")}}},Afo={class:"upload-box"},Dfo={class:"mb-3"},xfo=["innerHTML"],Ofo={class:"cursor-pointer flex-basis-100"},Lfo={class:"upload-box-gallery d-flex flex-wrap flex-basis-100 gap-6"},Mfo=["onClick"],Nfo=["src"];function Rfo(e,t,n,o,i,r){const s=y("FilePond");return h(),g("div",Afo,[c("h4",Dfo,m(e.$t("product.editor.gallery.images.title")),1),c("p",{class:"mb-5",innerHTML:e.$t("product.editor.gallery.images.text")},null,8,xfo),c("div",Ofo,[b(s,{name:"image",ref:"gallery",labelIdle:i.labelIdleTemplate,labelInvalidField:e.$t("fileupload.image_not_valid"),labelFileWaitingForSize:e.$t("fileupload.label_image_waiting_for_size"),labelFileSizeNotAvailable:e.$t("fileupload.label_file_size_not_available"),labelFileLoadError:e.$t("fileupload.label_image_load_error"),labelFileLoading:e.$t("fileupload.label_file_loading"),labelFileProcessing:e.$t("fileupload.label_file_processing"),labelFileProcessingComplete:e.$t("fileupload.label_file_processing_complete"),labelFileProcessingAborted:e.$t("fileupload.label_file_processing_aborted"),labelFileProcessingError:r.labelFileProcessingError,labelTapToCancel:e.$t("fileupload.label_tap_to_cancel"),labelTapToRetry:e.$t("fileupload.repeat"),labelMaxTotalFileSizeExceeded:e.$t("fileupload.label_max_total_file_size_exceeded"),labelMaxTotalFileSize:e.$t("fileupload.label_max_total_file_size")+" "+r.maxFileSize,"allow-multiple":!0,"allow-replace":!1,"allow-revert":!1,"accepted-file-types":"image/jpeg, image/png, image/gif",maxTotalFileSize:r.maxFileSize,server:i.server,files:i.images,credits:"false",onProcessfile:r.handleFileUpload},null,8,["labelIdle","labelInvalidField","labelFileWaitingForSize","labelFileSizeNotAvailable","labelFileLoadError","labelFileLoading","labelFileProcessing","labelFileProcessingComplete","labelFileProcessingAborted","labelFileProcessingError","labelTapToCancel","labelTapToRetry","labelMaxTotalFileSizeExceeded","labelMaxTotalFileSize","maxTotalFileSize","server","files","onProcessfile"])]),c("div",Lfo,[(h(!0),g(pe,null,Me(e.product.images,a=>(h(),g("figure",{class:"text-center text-sm-start image-thumbnail cursor-pointer position-relative",key:a.id,onClick:l=>r.removeImage(a.id)},[c("img",{src:a.thumbnail,class:""},null,8,Nfo)],8,Mfo))),128))])])}const jfo=U(Pfo,[["render",Rfo],["__scopeId","data-v-52e14282"]]),Ffo={components:{TransitionCollapseHeight:qo},validations(){return this.vat===0?{price:{required:Yt,minValue:Ra(20)}}:{price:{required:Yt,minValue:Ra(16)}}},computed:{...Oe({product:"product/getProductData"}),price:{get(){return this.product.price},set(e){this.$store.commit("product/updatePrice",e)}},vat:{get(){return this.product.vat},set(e){this.$store.commit("product/updateVat",e)}},priceBrutto:{get(){return this.product.price_brutto},set(e){this.$store.commit("product/updatePriceBrutto",e)}}},methods:{vatCompute(){this.$store.dispatch("product/vatCompute").then(()=>{this.computePrice()})},computePrice(){this.priceBrutto!=null&&(this.price=(this.priceBrutto/(1+this.vat/100)).toFixed(2))},roundPriceBrutto(){this.priceBrutto>0&&(this.priceBrutto=Math.round(this.priceBrutto))}},setup(){return{v$:Pn()}},watch:{"product.categories":{handler:function(){this.vatCompute()},deep:!0},priceBrutto(){this.priceBrutto<0&&(this.priceBrutto=0),this.computePrice()},price(){this.v$.$touch()}}},zfo={key:0},Ufo=["innerHTML"],Bfo={class:"form-group form-floating input-group mb-4"},Hfo=["placeholder"],Vfo={for:"price",class:"form-label"},qfo={class:"input-group-text"},Yfo={key:0,class:"invalid-feedback"},Wfo={class:"table-container bg-primary-5 py-2dot5 px-2"},Gfo={class:"mb-0 border-top-none bg-primary-5 text-gray-800"},Zfo={class:"d-flex justify-content-between border-top-none bg-primary-5 p-1"},Kfo={class:"border-top-none medium"},Jfo={class:"border-top-none text-right medium"};function Xfo(e,t,n,o,i,r){const s=y("TransitionCollapseHeight");return h(),g("div",null,[b(s,null,{default:F(()=>[r.priceBrutto===0?(h(),g("div",zfo,[c("div",{class:"rounded bg-bright-sun-light medium p-3 mb-4",innerHTML:e.$t("product.editor.price.minimum_text")},null,8,Ufo)])):D("",!0)]),_:1}),c("div",Bfo,[xe(c("input",{type:"number",step:"1",min:"0",class:J({"form-control":!0,"is-invalid":o.v$.price.$error}),placeholder:e.$t("product.editor.price.placeholder"),"onUpdate:modelValue":t[0]||(t[0]=a=>r.priceBrutto=a),onInput:t[1]||(t[1]=(...a)=>r.roundPriceBrutto&&r.roundPriceBrutto(...a))},null,42,Hfo),[[wt,r.priceBrutto]]),c("label",Vfo,m(e.$t("product.price_brutto")),1),xe(c("input",{type:"hidden",id:"price",name:"price","onUpdate:modelValue":t[2]||(t[2]=a=>o.v$.price.$model=a)},null,512),[[wt,o.v$.price.$model]]),c("span",qfo,m(e.$t("currency.short")),1),o.v$.price.$error&&o.v$.price.minValue&&o.v$.price.minValue.$invalid?(h(),g("span",Yfo,m(e.$t("validation.custom.price.min")),1)):D("",!0)]),c("div",Wfo,[c("div",Gfo,[c("div",Zfo,[c("div",Kfo,m(e.$t("product.vat.price.label")),1),c("div",Jfo,m(r.price+" "+e.$t("currency.short")),1)])])])])}const Qfo=U(Ffo,[["render",Xfo]]),emo={components:{AdditionalCategoriesEditor:qae,AppIcon:Ue},data(){return{productEditorConfig:Wa.editor}},computed:{...Oe({product:"product/getProductData",auth:"auth/auth"}),isDisabled(){return this.auth.is_admin?!1:!this.product.categories_vat_modifiable}},methods:{updateCategories(e){this.$store.dispatch("product/updateCategories",{categories:e})}},mounted(){this.$store.dispatch("category/loadClassSubject"),this.$store.dispatch("category/load")}},tmo={class:"d-flex align-items-center mb-3"},nmo={class:"mb-0"},omo={class:"mb-3"};function imo(e,t,n,o,i,r){const s=y("AppIcon"),a=y("AdditionalCategoriesEditor"),l=an("tooltip");return h(),W(a,{"product-categories":e.product.categories,"editor-config":i.productEditorConfig,"show-hmat-box":"","show-mmat-box":"",onUpdateProductCategories:r.updateCategories,disabled:r.isDisabled},{title:F(()=>[c("div",tmo,[c("h3",nmo,m(e.$t("product.editor.additional_categories.title")),1),r.isDisabled?xe((h(),W(s,{key:0,height:24,width:24,class:"text-gray-700 ms-icon",icon:"lock"},null,512)),[[l,{content:e.$t("category.edit.disabled"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0)])]),text:F(()=>[c("p",omo,m(e.$t("product.editor.additional_categories.text")),1)]),_:1},8,["product-categories","editor-config","onUpdateProductCategories","disabled"])}const rmo=U(emo,[["render",imo]]),smo={components:{RequiredCategoriesEditor:Vae,AppIcon:Ue},data(){return{productEditorConfig:Wa.editor}},mounted(){this.$store.dispatch("category/loadClassSubject"),this.$store.dispatch("category/load")},methods:{updateCategories(e){this.$store.dispatch("product/updateCategories",{categories:e})}},computed:{...Oe({product:"product/getProductData",auth:"auth/auth"}),isDisabled(){return this.auth.is_admin?!1:!this.product.categories_vat_modifiable}}},amo={class:"d-flex align-items-center mb-3"},lmo={class:"mb-0"},cmo={class:"mb-3"};function dmo(e,t,n,o,i,r){const s=y("AppIcon"),a=y("RequiredCategoriesEditor"),l=an("tooltip");return h(),W(a,{"editor-config":i.productEditorConfig,"product-categories":e.product.categories,onUpdateProductCategories:r.updateCategories,ref:"requiredCategoriesEditor",disabled:r.isDisabled},{title:F(()=>[c("div",amo,[c("h3",lmo,m(e.$t("product.editor.required_categories.title")),1),r.isDisabled?xe((h(),W(s,{key:0,height:24,width:24,class:"text-gray-700 ms-icon",icon:"lock"},null,512)),[[l,{content:e.$t("category.edit.disabled"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0)])]),text:F(()=>[c("p",cmo,m(e.$t("product.editor.required_categories.text")),1)]),_:1},8,["editor-config","product-categories","onUpdateProductCategories","disabled"])}const umo=U(smo,[["render",dmo]]),OM={limit_daily:3},hmo={data(){return{uploadConfig:OM}}},fmo={class:"bg-warning rounded p-4"},mmo={class:"fw-bold mb-2"},pmo={class:"medium fw-medium mb-0"};function gmo(e,t,n,o,i,r){return h(),g("div",fmo,[c("p",mmo,m(e.$t("product.editor.upload_limit.warning.title",{limit:i.uploadConfig.limit_daily})),1),c("p",pmo,m(e.$t("product.editor.upload_limit.warning.text",{limit:i.uploadConfig.limit_daily})),1)])}const vmo=U(hmo,[["render",gmo]]),_mo={data(){return{uploadConfig:OM}}},ymo={class:"bg-primary-5 rounded p-4"},bmo={class:"fw-bold mb-2"},kmo={class:"medium fw-medium mb-0"};function wmo(e,t,n,o,i,r){return h(),g("div",ymo,[c("p",bmo,m(e.$t("product.editor.upload_limit.info.title",{limit:i.uploadConfig.limit_daily})),1),c("p",kmo,m(e.$t("product.editor.upload_limit.info.text",{limit:i.uploadConfig.limit_daily})),1)])}const $mo=U(_mo,[["render",wmo]]),Cmo={components:{UploadLimitWarning:vmo,UploadLimitInfo:$mo},data(){return{authUploadCountDaily:this.$store.state.auth.upload_count_daily,uploadConfig:OM}}};function Smo(e,t,n,o,i,r){const s=y("UploadLimitWarning"),a=y("UploadLimitInfo");return i.authUploadCountDaily>i.uploadConfig.limit_daily?(h(),W(s,{key:0,class:"mt-4"})):(h(),W(a,{key:1,class:"mt-4"}))}const Tmo=U(Cmo,[["render",Smo]]),Emo=()=>De.get(Pe("api.author.product_upload_lock.show_active")),Imo={showActive:Emo},Pmo=(e,t)=>!t.hasVideo||e&&(e.length===43||e.length===28),Amo={components:{DateSinglePicker:dd,AppIcon:Ue,ProductEditorRequiredCategories:umo,ProductEditorAdditionalCategories:rmo,GrayBackgroundComponent:$g,TransitionCollapseHeight:qo,ProductPriceField:Qfo,ProductFileUpload:fde,ProductGalleryUpload:jfo,CoverImageUpload:Aho,Loading:Rt,UploadLimit:Tmo,ProductUploadLock:Rce,CheckboxInput:ba,ProductImageSourcesEditor:pde},props:{id:Number,isNewProduct:Boolean},data(){return{primaryColor:window.primaryColor,editor:fu,fileTypes:Wa.fileTypes,hasVideo:!1,validationStatus:!0,today:mt(),timezone:mr.timezone,step:1,complaintInfoLink:ks.author.material.complaint,imageRecommendationsInfoLink:ks.author.material.imageRecommendations,productUploadLock:null}},validations(){return{title:{required:Yt},short_description:{required:Yt},full_description:{required:Yt},pages:{required:Yt},file_type:{required:Yt},notify_customer:{required:Yt},reason:{required:Ld(function(){return this.product.file&&this.product.file.will_be_replaced_by&&this.product.status===1&&this.product.sells>0&&this.notify_customer})},file:{required:Yt},video:{video:Pmo},webinar_starts_at:{required:Ld(function(){return this.is_webinar})},webinar_url_stream:{url:nc,required:Ld(function(){return this.is_webinar})},commission:{required:Ld(function(){return this.auth.is_admin})},published_at:{required:Ld(function(){return this.product.author_verified&&!this.is_published_now})},imageSources:this.imageSources?this.imageSources.map(e=>({link:{url:nc},name:{required:Ld(function(){return e.link}),minLength:Ua(M6.validation.name.min_length)}})):{},images:{}}},computed:{...Oe({product:"product/getProductData",draftSaving:"product/draftSaving",productLoading:"product/loading",categoryLoading:"category/loading",classSubjectsFlatLoading:"category/loadingClassSubjectFlat",canSetLowerVat:"product/canSetLowerVat",auth:"auth/auth"}),loading(){return this.productLoading||this.categoryLoading||this.classSubjectsFlatLoading},isDraft(){return this.product.status==5},title:{get(){return this.product.title},set(e){this.$store.dispatch("product/updateTitle",{title:e})}},short_description:{get(){return this.product.short_description},set(e){this.$store.dispatch("product/updateShortDescription",{shortDescription:e})}},full_description:{get(){return this.product.full_description},set(e){this.$store.dispatch("product/updateFullDescription",{fullDescription:e})}},pages:{get(){return this.product.pages},set(e){this.$store.dispatch("product/updatePages",{pages:e})}},file_type:{get(){return this.product.file_type},set(e){this.$store.dispatch("product/updateFileType",{fileType:e})}},video:{get(){return this.product.video},set(e){this.$store.dispatch("product/updateVideo",{video:e})}},only_on_ucitelnice:{get(){return this.product.only_on_ucitelnice},set(e){this.$store.dispatch("product/updateOnlyOnUcitelnice",{onlyOnUcitelnice:e})}},black_and_white_print:{get(){return this.product.black_and_white_print},set(e){this.$store.dispatch("product/updateBlackAndWhitePrint",{blackAndWhitePrint:e})}},print_and_use:{get(){return this.product.print_and_use},set(e){this.$store.dispatch("product/updatePrintAndUse",{printAndUse:e})}},vop:{get(){return this.product.vop},set(e){this.$store.dispatch("product/updateVop",{vop:e})}},file:{get(){return this.product.file},set(){}},notify_customer:{get(){return this.product.notify_customer},set(e){this.$store.dispatch("product/updateNotifyCustomer",{notifyCustomer:e})}},reason:{get(){return this.product.reason},set(e){this.$store.dispatch("product/updateReason",{reason:e})}},images:{get(){return this.product.images},set(e){this.$store.dispatch("product/updateImages",{images:e})}},imageSources:{get(){return this.product.image_sources},set(e){this.$store.dispatch("product/updateImageSources",{imageSources:e})}},is_webinar:{get(){return this.product.is_webinar},set(e){this.$store.dispatch("product/updateIsWebinar",{isWebinar:e})}},webinar_starts_at:{get(){return this.product.webinar_starts_at},set(e){this.$store.dispatch("product/updateWebinarStartsAt",{webinarStartsAt:e})}},webinar_url_stream:{get(){return this.product.webinar_url_stream},set(e){this.$store.dispatch("product/updateWebinarUrlStream",{webinarUrlStream:e})}},is_published_now:{get(){return this.product.is_published_now},set(e){this.$store.dispatch("product/updateIsPublishedNow",{isPublishedNow:e})}},published_at:{get(){return new Date(this.product.published_at)},set(e){this.$store.dispatch("product/updatePublishedAt",{publishedAt:e})}},commission:{get(){return this.product.commission},set(e){this.$store.dispatch("product/updateCommission",{commission:e})}},hasAlsoOriginalImages:{get(){return this.product.has_also_original_images},set(e){this.$store.dispatch("product/updateHasAlsoOriginalImages",{hasAlsoOriginalImages:e})}},hasNoImages:{get(){return this.product.has_no_images},set(e){this.$store.dispatch("product/updateHasNoImages",{hasNoImages:e})}},hasProductImages:{get(){return this.product.has_product_images},set(e){this.$store.dispatch("product/updateHasProductImages",{hasProductImages:e})}},titleLength(){return this.title?this.title.length:0},shortDescriptionLength(){return this.short_description?this.short_description.length:0},isImageSourcesEmpty(){return this.product.image_sources.length===0||!this.product.image_sources[0].name&&!this.product.image_sources[0].link},showPublishPlanning(){return this.product.author_verified?this.product.status===5?!0:Date.parse(this.product.published_at)>new Date:!1},disableOnlyOnUcitelniceCheckbox(){return this.product.author_only_on_ucitelnice}},methods:{saveDraft(){this.vop=!0,this.$store.dispatch("product/saveDraft")},publish(){if(this.vop=!0,this.v$.$touch(),this.$refs.priceField.v$.$touch(),this.$refs.categories.$refs.requiredCategoriesEditor.v$.$touch(),this.$refs.categories.$refs.requiredCategoriesEditor.v$.degree_of_education_length.$touch(),this.$refs.categories.$refs.requiredCategoriesEditor.v$.class_length.$touch(),this.$refs.categories.$refs.requiredCategoriesEditor.v$.subject_length.$touch(),this.validationStatus=!this.v$.$invalid&&!this.$refs.priceField.v$.$invalid&&!this.$refs.categories.$refs.requiredCategoriesEditor.v$.$invalid,!this.auth.is_admin&&this.isImageSourcesEmpty&&this.product.has_also_original_images===!1&&this.product.has_no_images===!1){window.flash(this.$t("user.editor.image_sources.error_nothing_selected"),"error"),this.$scrollTo("#image-sources",{offset:-170});return}if(this.v$.imageSources.$invalid){this.$scrollTo("#image-sources",{offset:-170});return}if(this.v$.images.$invalid){this.$scrollTo("#images-gallery",{offset:-170});return}if(this.$refs.categories.$refs.requiredCategoriesEditor.v$.$invalid){this.$scrollTo("#categories",{offset:-170});return}this.validationStatus&&this.$store.dispatch("product/publish")},removeWebinarStartsAt(){this.webinar_starts_at=""}},mounted(){this.$store.dispatch("product/load",{id:this.id}).then(()=>{this.auth.is_admin&&(this.vop=!0,this.v$.vop.$touch())}),this.$store.dispatch("category/load"),Imo.showActive().then(e=>{e.data&&e.data.data&&(this.productUploadLock=e.data.data)})},setup(){return{v$:Pn()}},watch:{video(e){this.hasVideo=!!(e&&e.length>0)},hasVideo(e){e===!1&&(this.video="")},file(e){e&&e.will_be_replaced_by&&this.product.status===1&&this.product.sells>0&&(this.v$.notify_customer.$model=!0)}}},Dmo={key:1,class:"col-12 mb-6"},xmo={class:"pb-5 pt-6",ref:"product-editor-header"},Omo={class:"row justify-content-center"},Lmo={class:"col-12 col-lg-7"},Mmo={key:0,class:"mb-0"},Nmo={key:1,class:"mb-0"},Rmo={class:"row justify-content-center"},jmo={class:"col-12 col-lg-7 product-editor vl-parent"},Fmo={class:"shadow content-box"},zmo={class:"mb-5"},Umo={class:"form-group mb-3 form-floating position-relative"},Bmo={class:"length-counter"},Hmo=["placeholder"],Vmo={for:"title",class:"form-label"},qmo={key:0,class:"invalid-feedback"},Ymo={class:"form-group form-floating mb-3 position-relative"},Wmo={class:"length-counter"},Gmo=["placeholder"],Zmo={for:"short_description",class:"form-label"},Kmo={key:0,class:"invalid-feedback"},Jmo={class:"content-box shadow mt-5",id:"images-gallery"},Xmo={class:"mb-5"},Qmo={class:"content-box shadow mt-5",id:"image-sources"},epo={class:"mb-3"},tpo=["innerHTML"],npo={class:"shadow content-box mt-5"},opo={class:"mb-5"},ipo={class:"quill-editor form-group mb-4"},rpo={key:0,class:"text-danger"},spo={class:"row"},apo={class:"col-12 col-md-6"},lpo={class:"form-group form-floating mb-3"},cpo=["placeholder"],dpo={for:"pages",class:"form-label"},upo={key:0,class:"invalid-feedback"},hpo={class:"col-12 col-md-6"},fpo={class:"form-group form-floating mb-3"},mpo={for:"file_type",class:"form-label"},ppo={key:0,class:"invalid-feedback"},gpo={class:"col-12 mb-3"},vpo={key:0,class:"form-group form-floating mt-3"},_po=["placeholder"],ypo={key:0,for:"video",class:"form-label"},bpo={key:1,class:"invalid-feedback"},kpo={class:"col-12 mb-3"},wpo={class:"col-12"},$po={class:"shadow content-box mt-5"},Cpo={class:"shadow content-box mt-5"},Spo={class:"content-box shadow mt-5"},Tpo={class:"mb-5"},Epo={class:"content-box shadow mt-5"},Ipo={class:"mb-3"},Ppo={class:"mb-5"},Apo={href:"https://www.cistepc.cz/jak-zazipovat-soubor-ve-windows-10/"},Dpo={key:0,class:"text-danger"},xpo={class:"mb-5"},Opo={key:0},Lpo={class:"form-group form-floating mt-3"},Mpo=["placeholder"],Npo={class:"form-label"},Rpo={key:0,class:"invalid-feedback"},jpo=["href"],Fpo={class:"medium"},zpo={class:"mt-5 pt-5 border-top-2"},Upo=["href"],Bpo={key:0,class:"content-box shadow mt-5"},Hpo={class:"mb-3"},Vpo={class:"mb-3"},qpo={class:"form-group form-floating mb-3"},Ypo={for:"webinar_url_stream",class:"form-label"},Wpo={key:0,class:"invalid-feedback"},Gpo={key:1,class:"invalid-feedback"},Zpo={key:1,class:"content-box shadow mt-5"},Kpo={class:"mb-3"},Jpo={class:"form-group form-floating position-relative"},Xpo={for:"commission",class:"form-label"},Qpo={key:0,class:"invalid-feedback"},e1o={key:2,class:"content-box shadow mt-5"},t1o={class:"mb-3"},n1o={key:0,class:"mb-3"},o1o={key:0,class:"invalid-feedback"},i1o={class:"text-end mt-4"},r1o={key:0},s1o=["disabled"],a1o={key:1,class:"d-flex justify-content-end gap-2"},l1o=["disabled"],c1o={key:0},d1o={key:0},u1o={key:1},h1o={key:1},f1o={key:4,class:"text-end mt-4 text-danger"},m1o={class:"mt-3 text-end"},p1o=["innerHTML"];function g1o(e,t,n,o,i,r){const s=y("ProductUploadLock"),a=y("GrayBackgroundComponent"),l=y("Loading"),d=y("CoverImageUpload"),u=y("ProductGalleryUpload"),f=y("ProductImageSourcesEditor"),p=y("quill-editor"),v=y("v-select"),_=y("CheckboxInput"),k=y("TransitionCollapseHeight"),C=y("ProductEditorRequiredCategories"),$=y("ProductEditorAdditionalCategories"),E=y("ProductPriceField"),P=y("ProductFileUpload"),I=y("AppIcon"),O=y("DateSinglePicker"),L=y("UploadLimit"),S=an("tooltip");return i.productUploadLock&&e.product.status!==1&&!e.auth.is_admin?(h(),W(s,{key:0,productUploadLock:i.productUploadLock,class:"mt-6"},null,8,["productUploadLock"])):(h(),g("div",Dmo,[b(a,{header:e.$refs["product-editor-header"]},null,8,["header"]),c("div",xmo,[c("div",Omo,[c("div",Lmo,[n.isNewProduct?(h(),g("h2",Mmo,m(e.$t("product.editor.headline_new")),1)):(h(),g("h2",Nmo,m(e.$t("product.editor.headline_update")),1))])])],512),c("div",Rmo,[c("div",jmo,[b(l,{active:r.loading,"onUpdate:active":t[0]||(t[0]=j=>r.loading=j),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("form",{onSubmit:t[26]||(t[26]=Gt(()=>{},["prevent"]))},[c("section",Fmo,[c("h3",zmo,m(e.$t("product.editor.header.general")),1),c("div",Umo,[c("span",Bmo,m(r.titleLength+"/80"),1),xe(c("input",{id:"title",class:J({"form-control":!0,"is-invalid":o.v$.title.$error}),placeholder:e.$t("product.editor.title.placeholder"),type:"text",name:"title","onUpdate:modelValue":t[1]||(t[1]=j=>o.v$.title.$model=j),maxlength:"80"},null,10,Hmo),[[wt,o.v$.title.$model]]),c("label",Vmo,m(e.$t("product.title")),1),o.v$.title.$error&&o.v$.title.required.$invalid?(h(),g("span",qmo,m(e.$t("validation.custom.title.required")),1)):D("",!0)]),c("div",Ymo,[c("span",Wmo,m(r.shortDescriptionLength+"/240"),1),xe(c("textarea",{id:"short_description",class:J({"form-control":!0,"is-invalid":o.v$.short_description.$error}),placeholder:e.$t("product.editor.short_description.placeholder"),name:"short_description","onUpdate:modelValue":t[2]||(t[2]=j=>o.v$.short_description.$model=j),maxlength:"240"}," ",10,Gmo),[[wt,o.v$.short_description.$model]]),c("label",Zmo,m(e.$t("product.short_description")),1),o.v$.short_description.$error&&o.v$.short_description.required.$invalid?(h(),g("span",Kmo,m(e.$t("validation.custom.short_description.required")),1)):D("",!0)])]),c("section",Jmo,[c("h3",Xmo,m(e.$t("product.editor.header.images")),1),b(d),t[27]||(t[27]=c("hr",null,null,-1)),b(u,{productId:n.id},null,8,["productId"])]),c("section",Qmo,[c("h3",epo,m(e.$t("product.editor.header.image_sources.title")),1),c("p",{class:"mb-5",innerHTML:e.$t("product.editor.header.image_sources.text")},null,8,tpo),b(f,{"image-sources":r.imageSources,"onUpdate:imageSources":t[3]||(t[3]=j=>r.imageSources=j),"has-also-original-images":r.hasAlsoOriginalImages,"onUpdate:hasAlsoOriginalImages":t[4]||(t[4]=j=>r.hasAlsoOriginalImages=j),"has-no-images":r.hasNoImages,"onUpdate:hasNoImages":t[5]||(t[5]=j=>r.hasNoImages=j),"has-product-images":r.hasProductImages,"onUpdate:hasProductImages":t[6]||(t[6]=j=>r.hasProductImages=j)},null,8,["image-sources","has-also-original-images","has-no-images","has-product-images"])]),c("section",npo,[c("h3",opo,m(e.$t("product.editor.header.description")),1),c("div",ipo,[b(p,{class:"form-control p-0",contentType:"html",theme:"snow",ref:"full_description",placeholder:"",content:o.v$.full_description.$model,"onUpdate:content":t[7]||(t[7]=j=>o.v$.full_description.$model=j),options:{...i.editor.extendedToolbar,placeholder:e.$t("product.editor.full_description.placeholder")}},null,8,["content","options"]),o.v$.full_description.$error&&o.v$.full_description.required.$invalid?(h(),g("div",rpo,m(e.$t("validation.custom.description.required")),1)):D("",!0)]),c("div",spo,[c("div",apo,[c("div",lpo,[xe(c("input",{id:"pages",class:J({"form-control":!0,"is-invalid":o.v$.pages.$error}),placeholder:e.$t("product.editor.pages_placeholder"),type:"number",name:"pages","onUpdate:modelValue":t[8]||(t[8]=j=>o.v$.pages.$model=j),min:"0"},null,10,cpo),[[wt,o.v$.pages.$model]]),c("label",dpo,m(e.$t("product.pages")),1),o.v$.pages.$error&&o.v$.pages.required.$invalid?(h(),g("span",upo,m(e.$t("validation.custom.pages.required")),1)):D("",!0)])]),c("div",hpo,[c("div",fpo,[b(v,{id:"file_type",label:"label",multiple:"",placeholder:"Vyberte typ souboru",class:J(["form-control",{"is-invalid":o.v$.file_type.$error}]),modelValue:o.v$.file_type.$model,"onUpdate:modelValue":t[9]||(t[9]=j=>o.v$.file_type.$model=j),options:i.fileTypes,reduce:j=>j.value,"close-on-select":!1},{"no-options":F(()=>[z(m(e.$t("filter.word_not_found")),1)]),_:1},8,["modelValue","options","reduce","class"]),c("label",mpo,m(e.$t("product.file_type")),1),o.v$.file_type.$error&&o.v$.file_type.required.$invalid?(h(),g("span",ppo,m(e.$t("validation.custom.file_type.required")),1)):D("",!0)])]),c("div",gpo,[b(_,{id:"video",value:i.hasVideo,"onUpdate:value":t[10]||(t[10]=j=>i.hasVideo=j),label:e.$t("product.editor.has_video")},null,8,["value","label"]),b(k,null,{default:F(()=>[i.hasVideo?(h(),g("div",vpo,[xe(c("input",{id:"video",class:J({"form-control":!0,"is-invalid":o.v$.video.$error}),type:"text",name:"video","onUpdate:modelValue":t[11]||(t[11]=j=>o.v$.video.$model=j),placeholder:e.$t("product.editor.video.placeholder")},null,10,_po),[[wt,o.v$.video.$model]]),i.hasVideo?(h(),g("label",ypo,m(e.$t("public.video")),1)):D("",!0),o.v$.video.$error?(h(),g("span",bpo,m(e.$t("validation.custom.video.length")),1)):D("",!0)])):D("",!0)]),_:1})]),c("div",kpo,[xe(b(_,{id:"only_on_ucitelnice",value:r.only_on_ucitelnice,"onUpdate:value":t[12]||(t[12]=j=>r.only_on_ucitelnice=j),label:e.$t("product.editor.only_on_ucitelnice.label"),disabled:r.disableOnlyOnUcitelniceCheckbox,tooltip:e.$t("product.editor.only_on_ucitelnice.tooltip")},null,8,["value","label","disabled","tooltip"]),[[S,{content:r.disableOnlyOnUcitelniceCheckbox?e.$t("product.editor.only_on_ucitelnice.author_already_set"):"",triggers:["hover","click"]}]])]),c("div",wpo,[b(_,{id:"black_and_white_print",value:r.black_and_white_print,"onUpdate:value":t[13]||(t[13]=j=>r.black_and_white_print=j),label:e.$t("product.editor.black_and_white_print.label"),tooltip:e.$t("product.editor.black_and_white_print.tooltip")},null,8,["value","label","tooltip"])])])]),c("section",$po,[b(C,{ref:"categories",id:"categories"},null,512)]),c("section",Cpo,[b($)]),c("section",Spo,[c("h3",Tpo,m(e.$t("product.price")),1),b(E,{ref:"priceField"},null,512)]),c("section",Epo,[c("h3",Ipo,m(e.$t("product.editor.header.file_upload")),1),c("p",Ppo,[z(m(e.$t("product.more_files_info_text"))+" ",1),c("a",Apo,m(e.$t("product.more_files_info_link")),1)]),b(P,{"product-id":n.id},null,8,["product-id"]),o.v$.file.$error&&o.v$.file.required.$invalid?(h(),g("span",Dpo,m(e.$t("validation.custom.file.required")),1)):D("",!0),e.product.file&&e.product.file.will_be_replaced_by&&e.product.status===1&&e.product.sells>0?(h(),g("div",{key:1,class:J([{"form-group":!0,"has-error":o.v$.reason.$error},"border-top-2 pt-5 mt-5"])},[c("h3",xpo,m(e.$t("product.reason")),1),c("p",null,m(e.$t("product.reason_text")),1),b(_,{id:"notify_customer",value:o.v$.notify_customer.$model,"onUpdate:value":t[14]||(t[14]=j=>o.v$.notify_customer.$model=j),label:e.$t("product.reason_checkbox")},null,8,["value","label"]),r.notify_customer?(h(),g("div",Opo,[c("div",Lpo,[xe(c("textarea",{id:"reason",class:J(["form-control",{"is-invalid":o.v$.reason.$error}]),name:"reason","onUpdate:modelValue":t[15]||(t[15]=j=>o.v$.reason.$model=j),maxlength:"240",rows:"5",placeholder:e.$t("product.reason_placeholder")}," ",10,Mpo),[[wt,o.v$.reason.$model]]),c("label",Npo,m(e.$t("product.editor.file.reason_info")),1),o.v$.reason.$error&&o.v$.reason.required.$invalid?(h(),g("span",Rpo,[z(m(e.$t("validation.custom.reason.required"))+" ",1),t[28]||(t[28]=c("br",null,null,-1))])):D("",!0)]),c("a",{href:i.complaintInfoLink,target:"_blank"},[b(I,{icon:"info-circle",class:"me-icon"}),c("span",Fpo,m(e.$t("product.reason_info")),1)],8,jpo)])):D("",!0)],2)):D("",!0),c("div",zpo,[c("a",{target:"_blank",href:i.imageRecommendationsInfoLink,class:"fw-bold"},m(e.$t("product.image_recommendations")),9,Upo)])]),e.auth.is_admin?(h(),g("section",Bpo,[c("h3",Hpo,m(e.$t("product.editor.webinar.title")),1),b(_,{id:"is_webinar",value:r.is_webinar,"onUpdate:value":t[16]||(t[16]=j=>r.is_webinar=j),label:e.$t("product.editor.webinar.checkbox"),class:"mb-3"},null,8,["value","label"]),c("div",Vpo,[b(O,{class:J({"form-control":!0,"is-invalid":o.v$.webinar_starts_at.$error}),mode:"datetime",id:"webinar_starts_at",name:"webinar_starts_at",value:o.v$.webinar_starts_at.$model,"onUpdate:value":t[17]||(t[17]=j=>o.v$.webinar_starts_at.$model=j),placeholder:e.$t("product.editor.webinar.starts_at"),"min-date":i.today.toISOString(),label:e.$t("product.editor.webinar.starts_at")},null,8,["class","value","placeholder","min-date","label"])]),c("div",qpo,[xe(c("input",{id:"webinar_url_stream",class:J({"form-control":!0,"is-invalid":o.v$.webinar_url_stream.$error}),placeholder:"https://",type:"text",name:"title","onUpdate:modelValue":t[18]||(t[18]=j=>o.v$.webinar_url_stream.$model=j),autocomplete:!1},null,2),[[wt,o.v$.webinar_url_stream.$model]]),c("label",Ypo,m(e.$t("product.editor.webinar.url_stream")),1),o.v$.webinar_url_stream.$error&&o.v$.webinar_url_stream.required.$invalid?(h(),g("span",Wpo,m(e.$t("validation.custom.webinar_url_stream.required")),1)):D("",!0),o.v$.webinar_url_stream.$error&&o.v$.webinar_url_stream.url.$invalid?(h(),g("span",Gpo,m(e.$t("validation.custom.webinar_url_stream.url")),1)):D("",!0)])])):D("",!0),e.auth.is_admin?(h(),g("section",Zpo,[c("h3",Kpo,m(e.$t("product.editor.header.commission")),1),c("div",Jpo,[xe(c("input",{id:"commission",class:J(["form-control",{"form-control":!0,"is-invalid":o.v$.commission.$error}]),placeholder:"80",type:"text",name:"commission","onUpdate:modelValue":t[19]||(t[19]=j=>o.v$.commission.$model=j)},null,2),[[wt,o.v$.commission.$model]]),c("label",Xpo,m(e.$t("product.editor.commission_in")),1),o.v$.commission.$error&&o.v$.commission.required.$invalid?(h(),g("span",Qpo,m(e.$t("validation.custom.commission.required")),1)):D("",!0)])])):D("",!0),r.showPublishPlanning?(h(),g("section",e1o,[c("h3",t1o,m(e.$t("product.editor.published_at.plan")),1),b(_,{id:"is_published_now",value:r.is_published_now,"onUpdate:value":t[20]||(t[20]=j=>r.is_published_now=j),label:e.$t("product.editor.published_at.checkbox"),class:"mb-3"},null,8,["value","label"]),r.is_published_now?D("",!0):(h(),g("div",n1o,[b(O,{class:J({"form-control":!0,"is-invalid":o.v$.published_at.$error}),mode:"datetime",id:"published_at",name:"published_at",value:o.v$.published_at.$model,"onUpdate:value":t[21]||(t[21]=j=>o.v$.published_at.$model=j),placeholder:e.$t("product.editor.published_at.label"),"min-date":i.today.toISOString(),label:e.$t("product.editor.published_at.label")},null,8,["class","value","placeholder","min-date","label"]),o.v$.published_at.$error&&o.v$.published_at.required.$invalid?(h(),g("span",o1o,m(e.$t("validation.custom.published_at.required")),1)):D("",!0)]))])):D("",!0),e.product.author_verified?D("",!0):(h(),W(L,{key:3})),c("div",i1o,[e.product.status===2?(h(),g("div",r1o,[c("button",{class:"btn btn-tertiary btn-center",onClick:t[22]||(t[22]=Gt((...j)=>r.saveDraft&&r.saveDraft(...j),["prevent"])),disabled:e.draftSaving},[e.draftSaving?(h(),W(I,{key:0,icon:"cog",spin:!0,height:"20",width:"20"})):D("",!0),z(" "+m(e.$t("product.editor.footer.draft")),1)],8,s1o),c("button",{class:"btn btn-primary btn-center",onClick:t[23]||(t[23]=Gt((...j)=>r.publish&&r.publish(...j),["prevent"]))},[z(m(e.$t("product.editor.footer.save_and_validate"))+" ",1),b(I,{icon:"check-fill",class:"ms-icon",height:"20",width:"20"})])])):(h(),g("div",a1o,[e.product.status===5?(h(),g("button",{key:0,class:"btn btn-tertiary btn-center",onClick:t[24]||(t[24]=Gt((...j)=>r.saveDraft&&r.saveDraft(...j),["prevent"])),disabled:e.draftSaving},[e.draftSaving?(h(),W(I,{key:0,icon:"cog",spin:!0,height:"20",width:"20"})):D("",!0),z(" "+m(e.$t("product.editor.footer.draft")),1)],8,l1o)):D("",!0),c("button",{class:"btn btn-primary btn-center",onClick:t[25]||(t[25]=Gt((...j)=>r.publish&&r.publish(...j),["prevent"]))},[e.product.status===5?(h(),g("span",c1o,[e.product.author_verified?(h(),g("span",d1o,m(e.$t("product.editor.footer.publish")),1)):(h(),g("span",u1o,m(e.$t("product.editor.footer.validate")),1)),b(I,{icon:"check-fill",class:"ms-icon",height:"20",width:"20"})])):(h(),g("span",h1o,[z(m(e.$t("product.editor.footer.save_changes"))+" ",1),b(I,{icon:"check-fill",class:"ms-icon",height:"20",width:"20"})]))])]))]),i.validationStatus?D("",!0):(h(),g("div",f1o,[c("p",null,m(e.$t("validation.check_required")),1)])),c("div",m1o,[c("span",{class:"small text-gray-800",innerHTML:e.$t("vop.product.upload")},null,8,p1o)])],32)])])]))}const v1o=U(Amo,[["render",g1o]]);const _1o={props:{code:String,amount:Number},methods:{activate(){this.$store.dispatch("voucher/select",{type:this.code})}},computed:{active(){return this.voucher.type===this.code},...Oe({voucher:"voucher/getVoucherData"}),type:{get(){return this.voucher.type},set(e){this.$store.dispatch("voucher/select",{type:e})}}}},y1o={class:"text-end mt-neg-4"},b1o=["value"],k1o={class:"w-100 h-12dot5rem text-center fw-bold voucher-amount border border-gray-400 rounded"},w1o={class:"p-3"},$1o={class:"d-flex justify-content-between"},C1o={class:"text-gray-800 fw-bold"};function S1o(e,t,n,o,i,r){return h(),g("section",{class:J([{"voucher-box border cursor-pointer rounded":!0,"outline-3-primary":r.active},"shadow-mid-hover"]),onClick:t[1]||(t[1]=(...s)=>r.activate&&r.activate(...s))},[c("header",null,[c("div",y1o,[xe(c("input",{class:"cursor-pointer z-index-1 transform-scale-0",type:"radio",value:n.code,"onUpdate:modelValue":t[0]||(t[0]=s=>r.type=s)},null,8,b1o),[[Df,r.type]]),c("div",k1o,m(n.amount+" KÄŤ"),1)])]),c("div",w1o,[c("div",$1o,[c("div",C1o,[Pt(e.$slots,"default",{},void 0,!0)]),c("div",null,m(n.amount+" ,-"),1)])])],2)}const T1o=U(_1o,[["render",S1o],["__scopeId","data-v-a909561c"]]),E1o={components:{AppIcon:Ue,TransitionCollapseHeight:qo,VoucherBox:T1o,PaymentOptions:V6},validations:{email:{required:Yt,email:Rf}},data(){return{primaryColor:window.primaryColor}},computed:{...sn({voucherEmail:e=>e.voucher.email,voucherType:e=>e.voucher.type,showPaymentOptions:e=>e.voucher.showPaymentOptions,loading:e=>e.voucher.loading,instrument:e=>e.payment.instrument,swift:e=>e.payment.swift}),...Oe({auth:"auth/auth"}),email:{get(){return this.voucherEmail},set(e){this.$store.dispatch("voucher/updateEmail",{email:e})}},canCreateOrder(){return this.instrument.length>0&&(this.instrument!=="bank_account"||this.swift!==null)&&this.instrument!=="card"}},mounted(){this.$store.getters["auth/request"].then(()=>{this.auth.check&&(this.email=this.auth.email)})},methods:{createOrder(){this.$store.dispatch("voucher/order").then(e=>{["card","payment_card","gpay","apple_pay"].includes(e.data.method)?window._gopay.checkout({gatewayUrl:e.data.gw_url,inline:!0},function(){window.location.href=e.data.return_url}):e.data.method==="bank_account"?window.location.href=e.data.gw_url:e.data.method==="proforma"&&(window.location.href=this.ziggyRoute("voucher.proforma",{voucher:e.data.voucher_id}))}).catch(e=>{var t,n;(n=(t=e==null?void 0:e.response)==null?void 0:t.data)!=null&&n.message&&window.flash(e.response.data.message,"error")})},validate(){return this.v$.$touch(),this.v$.$invalid||this.$store.dispatch("voucher/updateShowPaymentOptions",{showPaymentOptions:!0}),!this.v$.$invalid}},setup(){return{v$:Pn()}}},I1o={class:"col-12 my-6"},P1o={class:"row"},A1o={class:"col-12 col-lg-8"},D1o={class:"mb-4"},x1o={class:"mb-4"},O1o={class:"mt-4 mb-0 fw-bold"},L1o={class:"row"},M1o={class:"col-12 col-md-6 mt-4"},N1o={class:"col-12 col-md-6 mt-4"},R1o={class:"col-12 col-md-6 mt-4"},j1o={class:"col-12 col-md-6 mt-4"},F1o={key:0,class:"row"},z1o={class:"col-12 mt-5"},U1o={class:"mb-2 fw-bold"},B1o={class:"row"},H1o={class:"col col-md-9"},V1o={class:"mb-5"},q1o={class:"row"},Y1o={class:"col-12 col-lg-6"},W1o={class:"form-group form-floating position-relative"},G1o={for:"email",class:"form-label"},Z1o={key:0,class:"invalid-feedback"},K1o={key:1,class:"invalid-feedback"},J1o={class:"col-12"},X1o={key:0,class:"row"},Q1o={class:"col-12"},ego={class:"mb-3 mt-5 fw-bold"},tgo={class:"col-12 text-end"},ngo=["disabled"],ogo={key:0,class:"d-flex align-items-center"},igo={key:1},rgo={class:"mt-3"},sgo=["innerHTML"];function ago(e,t,n,o,i,r){const s=y("VoucherBox"),a=y("TransitionCollapseHeight"),l=y("PaymentOptions"),d=y("AppIcon");return h(),g("div",I1o,[c("div",P1o,[c("div",A1o,[c("h2",D1o,[z(m(e.$t("voucher.headline.0"))+" ",1),t[3]||(t[3]=c("br",null,null,-1)),z(" "+m(e.$t("voucher.headline.1")),1)]),c("p",x1o,m(e.$t("voucher.text")),1),c("h5",O1o,m(e.$t("voucher.choose")),1),c("div",L1o,[c("div",M1o,[b(s,{code:"voucher150",amount:150},{default:F(()=>[z(m(e.$t("voucher.aprox_for_3_products")),1)]),_:1})]),c("div",N1o,[b(s,{code:"voucher300",amount:300},{default:F(()=>[z(m(e.$t("voucher.aprox_for_more_than_5_products",{count:6})),1)]),_:1})]),c("div",R1o,[b(s,{code:"voucher500",amount:500},{default:F(()=>[z(m(e.$t("voucher.aprox_for_more_than_5_products",{count:11})),1)]),_:1})]),c("div",j1o,[b(s,{code:"voucher1000",amount:1e3},{default:F(()=>[z(m(e.$t("voucher.aprox_for_more_than_5_products",{count:22})),1)]),_:1})])]),b(a,null,{default:F(()=>[e.voucherType?(h(),g("div",F1o,[c("div",z1o,[c("h5",U1o,m(e.$t("voucher.email.headline")),1),c("div",B1o,[c("div",H1o,[c("p",V1o,m(e.$t("voucher.email.text")),1)])]),c("div",q1o,[c("div",Y1o,[c("div",W1o,[xe(c("input",{id:"email",class:J(["form-control",{"is-invalid":o.v$.email.$error}]),placeholder:"muj@email.cz",type:"text",name:"email","onUpdate:modelValue":t[0]||(t[0]=u=>o.v$.email.$model=u),maxlength:"150"},null,2),[[wt,o.v$.email.$model]]),c("label",G1o,m(e.$t("voucher.email.label")),1),o.v$.email.$error&&o.v$.email.required.$invalid?(h(),g("span",Z1o,m(e.$t("voucher.validation.email.required")),1)):D("",!0),o.v$.email.$error&&o.v$.email.email.$invalid?(h(),g("span",K1o,m(e.$t("validation.custom.email.email")),1)):D("",!0)])]),c("div",J1o,[e.showPaymentOptions?D("",!0):(h(),g("button",{key:0,class:"btn btn-primary mt-4",onClick:t[1]||(t[1]=(...u)=>r.validate&&r.validate(...u))},m(e.$t("voucher.choose_payment_type")),1))])])])])):D("",!0)]),_:1}),b(a,null,{default:F(()=>[e.showPaymentOptions?(h(),g("div",X1o,[c("div",Q1o,[c("h5",ego,m(e.$t("voucher.payment.choose")),1),b(l,{"credit-hidden":""})]),c("div",tgo,[c("button",{class:"btn btn-primary btn-lg",disabled:!r.canCreateOrder||e.loading,onClick:t[2]||(t[2]=(...u)=>r.createOrder&&r.createOrder(...u))},[e.loading?(h(),g("span",igo,[b(d,{icon:"cog",height:"20",width:"20",spin:!0})])):(h(),g("div",ogo,[z(m(e.$t("voucher.payment.submit"))+" ",1),b(d,{icon:"check-fill",height:"20",width:"20",class:"ms-icon"})]))],8,ngo),c("div",rgo,[c("span",{class:"small text-gray-800",innerHTML:e.$t("vop.payment.voucher")},null,8,sgo)])])])):D("",!0)]),_:1})])])])}const lgo=U(E1o,[["render",ago]]),Ade=""+new URL("credit_order_paid-e4694459.svg",import.meta.url).href,cgo={components:{AppIcon:Ue,ContactCards:_h},props:{voucher:{type:Object,default:null}},data(){return{paidIcon:Ade}}},dgo={class:"col-12"},ugo={class:"row justify-content-center"},hgo={class:"col-12 col-lg-7 mt-6 text-center"},fgo=["src","alt"],mgo={class:"mt-5"},pgo={class:"mt-3"},ggo=["href"],vgo={class:"d-flex align-items-center"},_go={class:"mt-6 mb-4"};function ygo(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ContactCards");return h(),g("div",dgo,[c("div",ugo,[c("div",hgo,[c("img",{src:i.paidIcon,alt:e.$t("public.paid"),width:"150"},null,8,fgo),c("h2",mgo,m(e.$t("voucher.success.gateway.title")),1),c("h4",pgo,m(e.$t("voucher.success.gateway.text")+" "+n.voucher.send_to),1),c("a",{class:"btn btn-primary btn-lg mt-5 mb-4",href:e.ziggyRoute("default")},[c("div",vgo,[z(m(e.$t("voucher.success.back_button"))+" ",1),b(s,{icon:"home",height:"20",width:"20",class:"ms-icon"})])],8,ggo),c("div",_go,[b(a,{"help-card":"","community-card":""})])])])])}const bgo=U(cgo,[["render",ygo]]),kgo={components:{AppIcon:Ue,ContactCards:_h},props:{voucher:{type:Object,default:null},qr:{type:String,default(){return null}}},data(){return{paidIcon:Ade}}},wgo={class:"col-12"},$go={class:"row justify-content-center"},Cgo={class:"col-12 col-lg-7 mt-6 text-center"},Sgo=["src","alt"],Tgo={class:"mt-5 mb-3"},Ego={class:"mb-5 pb-5 border-bottom-2"},Igo={class:"fw-bold"},Pgo={class:"text-start"},Ago={class:"mb-3"},Dgo={class:"mb-4 text-gray-800"},xgo=["href"],Ogo={class:"row"},Lgo={class:"col-12 col-lg-3 mt-3"},Mgo={class:"text-gray-800 medium"},Ngo={class:"text-gray-900"},Rgo={class:"col-12 col-lg-3 mt-3"},jgo={class:"text-gray-800 medium"},Fgo={class:"text-gray-900"},zgo={class:"col-12 col-lg-3 mt-3"},Ugo={class:"text-gray-800 medium"},Bgo={class:"text-gray-900"},Hgo={class:"col-12 col-lg-3 mt-3 mb-4"},Vgo=["src","alt"],qgo={class:"border-top-2 mt-3 text-center"},Ygo={class:"d-flex justify-content-center"},Wgo=["href"],Ggo={class:"mt-6 pt-4"};function Zgo(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ContactCards");return h(),g("div",wgo,[c("div",$go,[c("div",Cgo,[c("img",{src:i.paidIcon,alt:e.$t("public.paid"),width:"150"},null,8,Sgo),c("h2",Tgo,m(e.$t("voucher.success.proforma.title")),1),c("h4",Ego,[z(m(e.$t("voucher.success.proforma.text")+" ")+" ",1),c("span",Igo,m(n.voucher.send_to),1)]),c("div",Pgo,[c("h4",Ago,m(e.$t("voucher.success.proforma.instructions.title")),1),c("p",Dgo,[z(m(e.$t("payment.success.proforma.instructions.text"))+" ",1),c("a",{href:e.ziggyRoute("user.dashboard.finances")},m(e.$t("user.menu.invoices_orders")+"."),9,xgo)]),c("div",Ogo,[c("div",Lgo,[c("div",Mgo,m(e.$t("payment.success.account_number")),1),c("div",Ngo,m(e.$t("public.account_no")),1)]),c("div",Rgo,[c("div",jgo,m(e.$t("payment.success.variable_symbol")),1),c("div",Fgo,m(n.voucher.order.number),1)]),c("div",zgo,[c("div",Ugo,m(e.$t("payment.success.amount_to_send")),1),c("div",Bgo,m(n.voucher.amount+" "+e.$t("currency.short")),1)]),c("div",Hgo,[c("img",{src:n.qr,class:"img-fluid",alt:e.$t("payment.success.qr_alt")},null,8,Vgo)])])]),c("div",qgo,[c("div",Ygo,[c("a",{class:"btn btn-primary btn-center btn-lg mt-5 mb-4",href:e.ziggyRoute("default")},[z(m(e.$t("voucher.success.back_button"))+" ",1),b(s,{icon:"home",height:"20",width:"20",class:"ms-icon"})],8,Wgo)])]),c("div",Ggo,[b(a,{"help-card":"","community-card":"","no-icons":"","content-start":""})])])])])}const Kgo=U(kgo,[["render",Zgo]]),Jgo={props:{link:String}},Xgo={class:"pe-0 pe-lg-6"},Qgo={class:"d-flex justify-content-between align-items-start mb-3"},evo={class:"fw-bold mb-0"},tvo={class:"medium text-gray-700"},nvo=["href"];function ovo(e,t,n,o,i,r){return h(),g("div",Xgo,[c("div",Qgo,[c("h3",evo,[Pt(e.$slots,"name")]),Pt(e.$slots,"logo")]),c("p",tvo,[Pt(e.$slots,"description")]),c("a",{href:n.link,class:"medium link-gray-700 text-decoration-underline"},m(n.link),9,nvo)])}const ivo=U(Jgo,[["render",ovo]]),rvo={props:{headline:String,items:Array,images:{type:Object,default:null}},components:{CooperationBox:ivo}},svo={class:"row"},avo={class:"col-12 col-lg-6"},lvo={class:"medium text-uppercase text-primary mb-4"},cvo={class:"row"},dvo=["src"];function uvo(e,t,n,o,i,r){const s=y("CooperationBox");return h(),g("div",null,[c("div",svo,[c("div",avo,[t[0]||(t[0]=c("hr",null,null,-1)),c("p",lvo,m(n.headline),1)])]),c("div",cvo,[(h(!0),g(pe,null,Me(n.items,(a,l)=>(h(),g("div",{class:"col-12 col-lg-6",key:l},[b(s,{link:a.link,class:"mb-6"},os({name:F(()=>[z(m(a.name),1)]),description:F(()=>[z(m(a.description),1)]),_:2},[n.images&&n.images[l]?{name:"logo",fn:F(()=>[c("img",{src:n.images[l],height:"30"},null,8,dvo)]),key:"0"}:void 0]),1032,["link"])]))),128))])])}const hvo=U(rvo,[["render",uvo]]),fvo=""+new URL("bg-success-light-start-2a0bfc81.png",import.meta.url).href,mvo=""+new URL("bg-success-light-start-2-977c64c7.png",import.meta.url).href,pvo=""+new URL("bg-primary-5-end-948e480c.png",import.meta.url).href,gvo=""+new URL("bg-primary-5-top-end-2ca86c0b.png",import.meta.url).href,vvo=""+new URL("321_dilna-c97fdb5f.png",import.meta.url).href,_vo=""+new URL("digikoalice-6354bd59.png",import.meta.url).href,yvo=""+new URL("magic_education-5142fd4b.png",import.meta.url).href,bvo=""+new URL("orff-1f2c3c01.png",import.meta.url).href,kvo=""+new URL("cyril_money-facce5fa.png",import.meta.url).href,wvo=""+new URL("albi_logo-bb1f7cd0.webp",import.meta.url).href,$vo={components:{CooperationList:hvo},data(){return{bgSuccessLightStart:fvo,bgSuccessLightStart2:mvo,bgPrimary5End:pvo,bgPrimary5TopEnd:gvo,organizationsImages:{0:vvo,1:_vo,2:yvo,3:bvo,4:kvo,7:wvo}}}},Cvo={class:"w-full-page z-index-neg-1"},Svo={class:"position-absolute top-0 end-0 mt-neg-3"},Tvo=["src"],Evo={class:"mt-4rem mb-6"},Ivo={class:"row"},Pvo={class:"col-12 col-lg-6"},Avo={class:"mb-3"},Dvo={class:"medium text-gray-800 mb-0"},xvo={class:"w-full-page z-index-neg-1"},Ovo={class:"position-absolute start-0"},Lvo=["src"],Mvo={class:"w-full-page z-index-neg-1"},Nvo={class:"position-absolute end-0"},Rvo=["src"],jvo={class:"w-full-page z-index-neg-1"},Fvo={class:"position-absolute start-0 mt-neg-8rem"},zvo=["src"];function Uvo(e,t,n,o,i,r){const s=y("CooperationList");return h(),g("div",null,[c("div",Cvo,[c("div",Svo,[c("img",{src:i.bgPrimary5TopEnd},null,8,Tvo)])]),c("div",Evo,[c("div",Ivo,[c("div",Pvo,[c("h1",Avo,m(e.$t("cooperation.headline")),1),c("p",Dvo,m(e.$t("cooperation.text")),1)])]),c("div",xvo,[c("div",Ovo,[c("img",{src:i.bgSuccessLightStart},null,8,Lvo)])]),b(s,{headline:e.$t("cooperation.organizations.headline"),items:e.$tm("cooperation.organizations.items"),images:i.organizationsImages},null,8,["headline","items","images"]),c("div",Mvo,[c("div",Nvo,[c("img",{src:i.bgPrimary5End},null,8,Rvo)])]),b(s,{headline:e.$t("cooperation.individuals.headline"),items:e.$tm("cooperation.individuals.items")},null,8,["headline","items"]),c("div",jvo,[c("div",Fvo,[c("img",{src:i.bgSuccessLightStart2},null,8,zvo)])]),b(s,{headline:e.$t("cooperation.support.headline"),items:e.$tm("cooperation.support.items")},null,8,["headline","items"]),b(s,{headline:e.$t("cooperation.school.headline"),items:e.$tm("cooperation.school.items")},null,8,["headline","items"])])])}const Bvo=U($vo,[["render",Uvo]]),Hvo={props:{title:String},computed:{...Oe({auth:"auth/auth"})},methods:{openLoginModal(){window.loginRegisterModal(this.ziggyRoute("user.be_author.form"))}}},Vvo=["href"];function qvo(e,t,n,o,i,r){return h(),g("span",null,[e.auth.id!==null?(h(),g("a",{key:0,href:e.ziggyRoute("user.be_author.form"),class:"btn btn-primary btn-lg"},m(n.title?n.title:e.$t("author.become.button")),9,Vvo)):(h(),g("button",{key:1,onClick:t[0]||(t[0]=(...s)=>r.openLoginModal&&r.openLoginModal(...s)),class:"btn btn-primary btn-lg"},m(n.title?n.title:e.$t("author.become.button")),1))])}const Dde=U(Hvo,[["render",qvo]]),Yvo={components:{AccordionItem:Ml},props:{data:{type:[Object,Array],default(){return{short:"",long:""}}},id:{String,default:"accordion"},title:{type:String,default:null},borderBottom:{type:Boolean,default:!0},circleNumber:{type:Boolean,default:!1},padding:{type:Boolean,default:!0},scroll:{type:Boolean,default:!1},classItems:{type:String,default:""},allInitOpened:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{openItem(e){this.$refs.accordionItem[e].open()}}},Wvo=["id"],Gvo={key:0,class:"text-gray-600 text-uppercase px-2 py-3 m-0"},Zvo={class:"mb-0 py-3 ps-2dot5"},Kvo={key:0,class:"circle-number d-inline-block"},Jvo=["innerHTML"];function Xvo(e,t,n,o,i,r){const s=y("AccordionItem");return h(),g("div",{class:J({"px-5 py-4":n.padding}),id:n.id},[n.title?(h(),g("p",Gvo,m(n.title),1)):D("",!0),(h(!0),g(pe,null,Me(n.data,(a,l)=>(h(),W(s,{class:J([n.borderBottom&&l!=Object.values(n.data).length?"border-bottom-2":"",n.classItems]),key:l,index:String(l),parent:n.id,scroll:n.scroll,"init-opened":n.allInitOpened,"body-padding-x":"3",ref_for:!0,ref:"accordionItem"},{title:F(()=>[c("h4",Zvo,[n.circleNumber?(h(),g("div",Kvo,m(l),1)):D("",!0),z(" "+m(a.short),1)])]),body:F(()=>[c("div",{innerHTML:a.long},null,8,Jvo)]),_:2},1032,["class","index","parent","scroll","init-opened"]))),128))],10,Wvo)}const Qvo=U(Yvo,[["render",Xvo]]),xde={desatero:{1:{short:"UÄŤitelĂ© jsou profesionálovĂ©",long:"AutoĹ™i vytvářejĂ materiály, kterĂ© sami vyzkoušeli v praxi a kterĂ© jsou šitĂ© na mĂru potĹ™ebám dÄ›tĂ. UÄŤitelĂ©, kteřà na UÄŤitelnici nakupujĂ, poznajĂ kvalitnĂ materiál a vÄ›dĂ, co potĹ™ebujĂ a co jim pomĹŻĹľe ve vĂ˝uce."},2:{short:"Inovace jsou dĹŻleĹľitĂ©",long:"KaĹľdodennĂ kontakt s žáky je neutuchajĂcĂm zdrojem inovacĂ. SvĂ© nápady lze pomocĂ materiálĹŻ velmi rychle ověřit nejen ve vlastnĂ tĹ™ĂdÄ›, ale mezi stovkami žákĹŻ v celĂ©m ÄŚesku. NebojĂme se zkoušet novĂ© vÄ›ci nebo kombinovat modernĂ metody s tÄ›mi zavedenĂ˝mi."},3:{short:"UÄŤĂme dÄ›ti, uÄŤĂme se sami",long:"Nechceme usnout na vavĹ™Ănech a stále pĹ™icházĂme s novĂ˝mi nápady, jak zlepšovat vĂ˝uku. ZároveĹ spoleÄŤnÄ› s autory neustále zĂskáváme novĂ© dovednosti, dĂky kterĂ˝m mohou bĂ˝t materiály lepšà a lepšĂ."},4:{short:"Klademe dĹŻraz na aktuálnost",long:"Rychlost zmÄ›n je v dnešnĂm svÄ›tÄ› vÄ›tšà neĹľ kdy pĹ™edtĂm. DrĹľet krok s dobou je ÄŤĂm dál těžšĂ. Online prostĹ™edĂ nám umoĹľĹuje rychle reagovat, vytvoĹ™it a distribuovat vĂ˝ukovĂ© materiály, kterĂ© reagujĂ na aktuálnĂ dÄ›nĂ."},5:{short:"Kvalita je na prvnĂm mĂstÄ›",long:"Bez kvalitnĂch materiálĹŻ nemĹŻĹľeme fungovat. SdĂlĂme vzájemnÄ› know-how, abychom neustále posouvali laĹĄku vlastnĂch oÄŤekávánĂ a pomohli všem odvážnĂ˝m začáteÄŤnĂkĹŻm, kteřà chtÄ›jĂ nahrát svĹŻj prvnĂ materiál."},6:{short:"OdmÄ›na za kvalitu a pĂli je jistá",long:"PenĂze nejsou primárnĂm cĂlem, ale pomáhajĂ udrĹľovat celĂ˝ systĂ©m v chodu. AktivnĂ uÄŤitelĂ©, kteřà vÄ›nujĂ hodiny a hodiny práce tvorbou kvalitnĂch materiálĹŻ, si zasloužà bĂ˝t za svou práci odmÄ›nÄ›ni."},7:{short:"RĹŻznorodost obohacuje",long:"KaĹľdĂ˝ uÄŤitel je jinĂ˝ a má svĹŻj vlastnĂ styl. KaĹľdĂ˝ si mĹŻĹľe na UÄŤitelnici najĂt to svĂ©, co mu vyhovuje, a zároveĹ objevit i novĂ© pĹ™Ăstupy a pohledy na vĂ˝uku."},8:{short:"Spolupráce je klĂÄŤová",long:"KaĹľdĂ˝ autor tvořà svĂ© vlastnĂ originálnĂ materiály, ve kterĂ˝ch se snažà odlišit od ostatnĂch autorĹŻ. Spojuje nás ale cĂl zmÄ›nit vzdÄ›lávánĂ v ÄŚesku a posouvat ho na vyššà úroveĹ."},9:{short:"Neustále se zlepšujeme",long:"Navzájem si poskytujeme zpÄ›tnou vazbu, na jejĂmĹľ základÄ› je moĹľnĂ© materiály opravovat a ladit k dokonalosti. K dispozici majĂ zákaznĂci vĹľdy nejaktuálnÄ›jšà verzi vÄŤetnÄ› všech Ăşprav a vylepšenĂ."},10:{short:"Pracujeme zodpovÄ›dnÄ› a s respektem",long:"DÄ›láme všechno pro to, abychom ochránili autorská práva tvĹŻrcĹŻ materiálĹŻ. ZároveĹ dbáme na to, aby autoĹ™i pouĹľĂvali licencovanĂ© zdroje k tvorbÄ› svĂ˝ch materiálĹŻ a silnÄ› se vymezujeme proti kopĂrovánĂ a plagiarismu. Zkrátka respektujeme práci ostatnĂch."}},faq:{1:{short:"Jak probĂhá schvalovánĂ materiálĹŻ?",long:"<p>NeĹľ se nahranĂ˝ materiál dostane do prodeje, nÄ›kdo z tĂ˝mu UÄŤitelnice ho prohlĂ©dne a zkontroluje, jestli splĹuje standardy, kterĂ© se snaĹľĂme dlouhodobÄ› udrĹľovat.</p>"},2:{short:"Co pĹ™i schvalovánĂ hodnotĂte?",long:'<p>SnaĹľĂme se zajistit, aby si zákaznĂk po zakoupenĂ materiálu mohl Ĺ™Ăct, Ĺľe to byly dobĹ™e utracenĂ© penĂze. Za poslednĂ roky nejÄŤastÄ›ji pĂšeme zpÄ›tnou vazbu z následujĂcĂch dĹŻvodĹŻ:<br><ul><li>ChybÄ›jĂcĂ prĹŻvodnĂ list</li><li>NedostateÄŤnĂ˝ rozsah materiálu</li><li>NáhledovĂ˝ obrázek a prezentace materiálu (dĹŻleĹľitá součást materiálu)</li><li>NekompletnĂ materiál (chybĂ správnĂ© Ĺ™ešenĂ, nelze dobĹ™e vytisknout, ...)</li></ul></p><p>NemusĂte se ale niÄŤeho bát. Na webu pro autory jsme pro vás pĹ™ipravili podrobnĂ˝ seznam toho, <a href="https://autori.ucitelnice.cz/checklist" target="_blank">na co všechno je dobrĂ© pĹ™i tvorbÄ› materiálu myslet</a>.</p>'},3:{short:"ProÄŤ v materiálu nemĹŻĹľu pouĹľĂt cokoliv, co najdu na internetu?",long:'<p>Chceme hrát fair-play a dodrĹľovat autorskĂ˝ zákon. Ve svĂ© vĂ˝uce mĹŻĹľete pouĹľĂt cokoliv, prodej materiálĹŻ je ale komerÄŤnĂ uĹľitĂ a na pouĹľitĂ© prvky (typicky obárzky) je tĹ™eba mĂt adekvátnĂ licenci.</p><p><a href="https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/jak-na-obr%C3%A1zky-v-materi%C3%A1lech" target="_blank" class="text-decoration-underline">Tipy, kde najĂt vhodnĂ© obrázky do materiálĹŻ.</a></p>'},4:{short:"Kolik stojĂ prodej na UÄŤitelnici?",long:'<p>ŽádnĂ© paušálnĂ poplatky neplatĂte, pouze 30% z uskuteÄŤnÄ›nĂ˝ch prodejĹŻ. Tuto částku si účtujeme proto, abychom mohli UÄŤitelnici udrĹľovat a neustále pĹ™icházet s rĹŻznĂ˝mi zlepšováky.</p><p>PĹ™eÄŤtÄ›te si, <a href="https://www.google.com/url?q=https://autori.ucitelnice.cz/info/autorska-struktura&sa=D&source=editors&ust=1628454482607000&usg=AOvVaw0H0RpjemsewxZdECEvODHe" target="_blank">co všechno na UÄŤitelnici autorĹŻm umoĹľĹujeme</a></p>'},5:{short:"Kdy dostanu penĂze za prodeje?",long:"<p>KaĹľdĂ˝ prvnĂ den v mÄ›sĂci probĂhá automatickĂ© vyúčtovánĂ za pĹ™edchozĂ mÄ›sĂc. Jakmile je pĹ™ipraveno, pošleme vám e-mail a mĹŻĹľete si požádat o poslánĂ penÄ›z na účet.</p>"},6:{short:"Kolik si mĹŻĹľu vydÄ›lat?",long:"<p>Jako v kaĹľdĂ©m jinĂ©m podnikánĂ, záležà na vašem ĂşsilĂ. BěžnÄ› si autoĹ™i na UÄŤitelnici mÄ›sĂÄŤnÄ› vydÄ›lajĂ od nÄ›kolika stovek aĹľ po desĂtky tisĂc korun. AktuálnÄ› si vĂce neĹľ 10 000 KÄŤ mÄ›sĂÄŤnÄ› vydÄ›lá pĹ™ibliĹľnÄ› 20 autorĹŻ a toto ÄŤĂslo stále roste.</p>"}}},e_o={components:{AppAccordion:Qvo},data(){return{accordionData:xde.desatero}}},t_o={class:"row px-3"},n_o={class:"col-12 content-box shadow p-0"};function o_o(e,t,n,o,i,r){const s=y("AppAccordion");return h(),g("div",t_o,[c("div",n_o,[b(s,{data:i.accordionData,id:"about-accordion",title:e.$t("about.additional_info.ten"),"border-bottom":!0,"circle-number":!0,scroll:!1},null,8,["data","title"])])])}const Ode=U(e_o,[["render",o_o]]),i_o={components:{OpenBeAuthorFormButton:Dde,CheckListItem:TL,TenAccordion:Ode}},r_o={class:"row mb-6"},s_o={class:"col-12 col-lg-6 mb-4"},a_o=["innerHTML"],l_o={class:"text-gray-800 mb-5"},c_o={class:"mb-8rem"},d_o={class:"text-gray-800 fw-bold"},u_o={class:"text-success"},h_o={class:"col-12 col-lg-6 px-0 px-lg-4 mt-6 mt-lg-0"};function f_o(e,t,n,o,i,r){const s=y("OpenBeAuthorFormButton"),a=y("CheckListItem"),l=y("TenAccordion");return h(),g("div",r_o,[c("div",s_o,[c("h1",{innerHTML:e.$t("author.become.welcome.headline")},null,8,a_o),c("p",l_o,m(e.$t("author.become.welcome.text")),1),c("div",c_o,[b(s)]),c("p",d_o,[z(m(e.$t("author.become.welcome.benefits.headline.0"))+" ",1),c("span",u_o,m(e.$t("author.become.welcome.benefits.headline.1")+":"),1)]),b(a,{class:"mb-3"},{default:F(()=>[z(m(e.$t("author.become.welcome.benefits.check.0")),1)]),_:1}),b(a,{class:"mb-3"},{default:F(()=>[z(m(e.$t("author.become.welcome.benefits.check.1")),1)]),_:1}),b(a,{class:"mb-3"},{default:F(()=>[z(m(e.$t("author.become.welcome.benefits.check.2")),1)]),_:1}),b(a,null,{default:F(()=>[z(m(e.$t("author.become.welcome.benefits.check.3")),1)]),_:1})]),c("div",h_o,[b(l)])])}const m_o=U(i_o,[["render",f_o]]),p_o={components:{OpenBeAuthorFormButton:Dde}},g_o={class:"text-center"},v_o={class:"text-gray-800 mb-6"},__o={class:"text-primary"},y_o={class:"row mb-6"},b_o={class:"col-12 col-lg-4 px-0 px-sm-6 px-lg-5"},k_o={class:"text-gray-700"},w_o={class:"col-12 col-lg-4 px-0 px-sm-6 px-lg-5 mt-3 mt-lg-0"},$_o={class:"text-gray-700"},C_o={class:"col-12 col-lg-4 px-0 px-sm-6 px-lg-5 mt-3 mt-lg-0"},S_o={class:"text-gray-700"},T_o={class:"row"},E_o={class:"col mt-4"};function I_o(e,t,n,o,i,r){const s=y("OpenBeAuthorFormButton");return h(),g("div",g_o,[c("h2",v_o,[z(m(e.$t("author.become.process.headline.0"))+" ",1),c("span",__o,m(e.$t("author.become.process.headline.1")),1)]),c("div",y_o,[c("div",b_o,[c("h4",null,m(e.$t("author.become.process.steps.1.title")),1),c("p",k_o,m(e.$t("author.become.process.steps.1.description")),1)]),c("div",w_o,[c("h4",null,m(e.$t("author.become.process.steps.2.title")),1),c("p",$_o,m(e.$t("author.become.process.steps.2.description")),1)]),c("div",C_o,[c("h4",null,m(e.$t("author.become.process.steps.3.title")),1),c("p",S_o,m(e.$t("author.become.process.steps.3.description")),1)])]),c("div",T_o,[c("div",E_o,[b(s,{title:e.$t("author.become.process.confirm")},null,8,["title"])])])])}const P_o=U(p_o,[["render",I_o]]),A_o=""+new URL("week_plan-59b0595d.svg",import.meta.url).href,D_o=""+new URL("be_author_bg-7866f8df.jpeg",import.meta.url).href,x_o={data(){return{coins:Pg,weekPlan:A_o,kidsGroup:Xse,beAuthorBg:D_o}}},O_o={class:"w-full-page z-index-neg-1"},L_o={class:"position-relative mt-13rem"},M_o={class:"mt-neg-13rem h-56dot25rem h-md-37dot5rem position-absolute w-100 overflow-hidden"},N_o=["src"],R_o={class:"text-center"},j_o=["innerHTML"],F_o={class:"row bg-white rounded shadow-mid p-5"},z_o={class:"col-12 col-lg-4"},U_o=["src"],B_o={class:"text-gray-700 mb-0"},H_o={class:"col-12 col-lg-4 mt-5 mt-lg-0"},V_o=["src"],q_o={class:"text-gray-700 mb-0"},Y_o={class:"col-12 col-lg-4 mt-5 mt-lg-0"},W_o=["src"],G_o={class:"text-gray-700 mb-0"};function Z_o(e,t,n,o,i,r){return h(),g("div",null,[c("div",O_o,[c("div",L_o,[c("div",M_o,[c("img",{src:i.beAuthorBg,class:"w-100"},null,8,N_o)])])]),c("div",R_o,[c("h2",{class:"text-gray-900 text-sm-white mb-4",innerHTML:e.$t("author.become.stats.headline")},null,8,j_o),c("div",F_o,[c("div",z_o,[c("img",{class:"mb-3",src:i.coins,height:"80"},null,8,U_o),t[0]||(t[0]=c("h2",{class:"text-gray-800 mb-2"},m("25 mil."),-1)),c("p",B_o,m(e.$t("author.become.stats.items.0")),1)]),c("div",H_o,[c("img",{class:"mb-3",src:i.kidsGroup,height:"80"},null,8,V_o),t[1]||(t[1]=c("h2",{class:"text-gray-800 mb-2"},m("33 tis."),-1)),c("p",q_o,m(e.$t("author.become.stats.items.1")),1)]),c("div",Y_o,[c("img",{class:"mb-3",src:i.weekPlan,height:"80"},null,8,W_o),t[2]||(t[2]=c("h2",{class:"text-gray-800 mb-2"},m("4 tis."),-1)),c("p",G_o,m(e.$t("author.become.stats.items.2")),1)])])])])}const K_o=U(x_o,[["render",Z_o]]);const J_o={components:{AccordionItem:Ml},data(){return{accordionData:nce.author}}},X_o={class:"z-index-1"},Q_o={class:"text-center text-gray-800 mb-5"},eyo={class:"content-box shadow rounded p-5"},tyo={id:"accordions-group"},nyo={class:"accordion-title"},oyo=["innerHTML"];function iyo(e,t,n,o,i,r){const s=y("AccordionItem");return h(),g("div",X_o,[c("h2",Q_o,m(e.$t("faq.be_author")),1),c("div",eyo,[c("div",tyo,[(h(!0),g(pe,null,Me(i.accordionData,(a,l)=>(h(),W(s,{key:l,index:String(l),parent:"accordions-group"},{title:F(()=>[c("div",nyo,[c("h4",null,m(a.short),1)])]),body:F(()=>[c("div",{class:"accordion-body",innerHTML:a.long},null,8,oyo)]),_:2},1032,["index"]))),128))])])])}const ryo=U(J_o,[["render",iyo],["__scopeId","data-v-92e30836"]]),syo=""+new URL("bg-primary-5-be-author-43545565.svg",import.meta.url).href,Lde=""+new URL("bg-primary-5-footer-cb0809fc.svg",import.meta.url).href,ayo={components:{BeAuthorWelcome:m_o,BeAuthorProcess:P_o,BeAuthorStats:K_o,BeAuthorFaq:ryo},props:{id:Number},data(){return{bgPrimary5BeAuthor:syo,bgPrimary5Footer:Lde}}},lyo={class:"col mt-4rem"},cyo={class:"w-full-page z-index-neg-1"},dyo={class:"position-absolute w-100 mt-neg-28rem mt-xl-down-neg-25rem h-27rem overflow-hidden"},uyo=["src"],hyo={class:"row"},fyo={class:"col mt-4 mb-4"},myo={class:"w-full-page z-index-neg-1"},pyo={class:"position-absolute w-100 mt-10rem h-50rem overflow-hidden"},gyo=["src"],vyo={class:"row justify-content-center"},_yo={class:"col-12 col-lg-8 z-index-1"};function yyo(e,t,n,o,i,r){const s=y("BeAuthorWelcome"),a=y("BeAuthorProcess"),l=y("BeAuthorStats"),d=y("BeAuthorFaq");return h(),g("div",lyo,[b(s),c("div",cyo,[c("div",dyo,[c("img",{src:i.bgPrimary5BeAuthor,class:"w-100"},null,8,uyo)])]),c("div",hyo,[c("div",fyo,[b(a,{class:"mb-6"})])]),b(l,{class:"mb-12rem mb-xl-down-9rem mb-lg-down-6rem"}),c("div",myo,[c("div",pyo,[c("img",{src:i.bgPrimary5Footer,class:"w-100"},null,8,gyo)])]),c("div",vyo,[c("div",_yo,[b(d)])])])}const byo=U(ayo,[["render",yyo]]),kyo=e=>!isNaN(parseFloat(e))&&isFinite(e),wyo=e=>e===null||e.length===0||kyo(e)&&e.length===8,$yo=e=>/^[A-Z]{2}\d{8,10}$/.test(e),Cyo={components:{ImageSourcesEditor:nM,Loading:Rt,CheckboxInput:ba},props:{id:Number},data(){return{validationStatus:!0,primaryColor:window.primaryColor}},computed:{...Oe({user:"user/getUserData",loading:"user/loading",auth:"auth/auth"}),contractor_details(){return this.user.contractor_details},image_sources:{get(){return this.user.image_sources},set(e){this.$store.dispatch("user/updateImageSources",{imageSources:e})}},has_also_original_images:{get(){return this.user.has_also_original_images},set(e){this.$store.dispatch("user/updateHasAlsoOriginalImages",{hasAlsoOriginalImages:e})}},is_vat_payer:{get(){return this.user.is_vat_payer},set(e){this.$store.dispatch("user/updateIsVatPayer",{isVatPayer:e})}},vop_accepted:{get(){return this.user.vop_accepted},set(e){this.$store.dispatch("user/updateVopAccepted",{vopAccepted:e})}},isImageSourcesEmpty(){return this.user.image_sources[0].name===null&&this.user.image_sources[0].link===null}},watch:{contractor_details:{deep:!0,handler(e){this.$store.dispatch("user/updateContractorDetails",{contractorDetails:e})}}},methods:{update(){if(this.v$.$touch(),this.validationStatus=!this.v$.$invalid,this.v$.image_sources.$invalid){this.$scrollTo("#image-sources",{offset:-170});return}if(this.isImageSourcesEmpty&&this.user.has_also_original_images===!1){window.flash(this.$t("user.editor.image_sources.error_nothing_selected"),"error"),this.$scrollTo("#image-sources",{offset:-170});return}this.validationStatus&&this.$store.dispatch("user/becomeAuthor").then(e=>{let t=e;window.flash(t.data.message,"success"),window.location.href=t.data.redirect}).catch(e=>{var t,n;(n=(t=e==null?void 0:e.response)==null?void 0:t.data)!=null&&n.message&&window.flash(e.response.data.message,"error")})}},validations(){return{image_sources:this.image_sources?this.image_sources.map(e=>({link:{required:Ld(function(){return e.name}),url:nc},name:{required:Ld(function(){return e.link}),minLength:Ua(M6.validation.name.min_length)}})):{},contractor_details:{contractor_company:{required:Yt},contractor_address:{required:Yt},contractor_city:{required:Yt},contractor_psc:{required:Yt},contractor_ico:{validIco:wyo},contractor_dic:{required:Ld(()=>this.is_vat_payer),validDic:e=>this.is_vat_payer?$yo(e):!0},contractor_bank_account:{required:Yt}},is_vat_payer:{},vop_accepted:{required:Yt}}},mounted(){this.$store.dispatch("user/load",{id:this.id})},setup(){return{v$:Pn()}}},Syo={class:"be-author-page"},Tyo={class:"row py-6 mb-6"},Eyo={class:"col-12 col-xl-7"},Iyo={class:"row"},Pyo={class:"col-12 col-xl-7"},Ayo={class:"mb-4"},Dyo={class:"mb-5"},xyo={href:"https://autori.ucitelnice.cz/vase-podnikani/legislativa-a-dan%C4%9B",target:"_blank",class:"fw-bold"},Oyo={class:"content-box shadow py-5 px-4 mb-5"},Lyo={class:"mb-4"},Myo={class:"form-group form-floating"},Nyo={for:"contractor_company",class:"form-label"},Ryo={key:0,class:"invalid-feedback"},jyo={class:"form-group form-floating mt-4"},Fyo={for:"contractor_address",class:"form-label"},zyo={key:0,class:"invalid-feedback"},Uyo={class:"form-group form-floating mt-4"},Byo={for:"contractor_city",class:"form-label"},Hyo={key:0,class:"invalid-feedback"},Vyo={class:"form-group form-floating mt-4"},qyo={for:"contractor_psc",class:"form-label"},Yyo={key:0,class:"invalid-feedback"},Wyo={class:"form-group form-floating mt-4"},Gyo={for:"contractor_ico",class:"form-label"},Zyo={key:0,class:"invalid-feedback"},Kyo={class:"form-group form-floating mt-4"},Jyo={for:"contractor_bank_account",class:"form-label"},Xyo={key:0,class:"invalid-feedback"},Qyo={key:0,class:"form-group form-floating mt-4"},ebo={for:"contractor_dic",class:"form-label"},tbo={key:0,class:"invalid-feedback"},nbo={key:1,class:"invalid-feedback"},obo={class:"content-box shadow py-5 px-4 mb-5"},ibo={class:"mb-4"},rbo={href:"https://autori.ucitelnice.cz/jak-na-tvorbu-materi%C3%A1l%C5%AF/jak-na-obr%C3%A1zky-v-materi%C3%A1lech",target:"_blank",class:"fw-bold"},sbo={class:"col-12 mt-4",id:"image-sources"},abo={class:"col-12 mt-4"},lbo=["disabled"],cbo={key:0,class:"col-12 mt-4"},dbo={class:"text-danger"};function ubo(e,t,n,o,i,r){const s=y("Loading"),a=y("CheckboxInput"),l=y("ImageSourcesEditor");return h(),g("div",Syo,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!0},null,8,["active","color"]),t[16]||(t[16]=c("div",{class:"w-full-page bg-primary-5 py-5dot5rem mb-6 position-absolute z-index-neg-1"},null,-1)),c("div",Tyo,[c("div",Eyo,[c("h2",null,m(e.$t("authoronboarding.form_page.title")),1)])]),c("div",Iyo,[c("section",Pyo,[c("h3",Ayo,m(e.$t("authoronboarding.form_page.form.title")),1),c("p",Dyo,[z(m(e.$t("authoronboarding.form_page.form.description.0"))+" ",1),c("a",xyo,m(e.$t("authoronboarding.form_page.form.description.1")),1)]),c("form",{onSubmit:t[13]||(t[13]=Gt(()=>{},["prevent"]))},[c("div",Oyo,[c("h3",Lyo,m(e.$t("authoronboarding.form_page.form.your_data")),1),c("div",Myo,[xe(c("input",{id:"contractor_company",class:J({"form-control":!0,"is-invalid":o.v$.contractor_details.contractor_company.$error}),type:"text",name:"contractor_company","onUpdate:modelValue":t[1]||(t[1]=d=>o.v$.contractor_details.contractor_company.$model=d),maxlength:"150"},null,2),[[wt,o.v$.contractor_details.contractor_company.$model]]),c("label",Nyo,m(e.$t("user.editor.contractor_details.company")),1),o.v$.contractor_details.contractor_company.$error&&o.v$.contractor_details.contractor_company.required.$invalid?(h(),g("span",Ryo,m(e.$t("validation.custom.contractor_company.required")),1)):D("",!0)]),c("div",jyo,[xe(c("input",{id:"contractor_address",class:J({"form-control":!0,"is-invalid":o.v$.contractor_details.contractor_address.$error}),type:"text",name:"contractor_address","onUpdate:modelValue":t[2]||(t[2]=d=>o.v$.contractor_details.contractor_address.$model=d)},null,2),[[wt,o.v$.contractor_details.contractor_address.$model]]),c("label",Fyo,m(e.$t("user.editor.contractor_details.address")),1),o.v$.contractor_details.contractor_address.$error&&o.v$.contractor_details.contractor_address.required.$invalid?(h(),g("span",zyo,m(e.$t("validation.custom.invoice_address.required")),1)):D("",!0)]),c("div",Uyo,[xe(c("input",{id:"contractor_city",class:J({"form-control":!0,"is-invalid":o.v$.contractor_details.contractor_city.$error}),type:"text",name:"contractor_city","onUpdate:modelValue":t[3]||(t[3]=d=>o.v$.contractor_details.contractor_city.$model=d)},null,2),[[wt,o.v$.contractor_details.contractor_city.$model]]),c("label",Byo,m(e.$t("user.editor.contractor_details.city")),1),o.v$.contractor_details.contractor_city.$error&&o.v$.contractor_details.contractor_city.required.$invalid?(h(),g("span",Hyo,m(e.$t("validation.custom.invoice_city.required")),1)):D("",!0)]),c("div",Vyo,[xe(c("input",{id:"contractor_psc",class:J({"form-control":!0,"is-invalid":o.v$.contractor_details.contractor_psc.$error}),type:"text",name:"contractor_psc","onUpdate:modelValue":t[4]||(t[4]=d=>o.v$.contractor_details.contractor_psc.$model=d)},null,2),[[wt,o.v$.contractor_details.contractor_psc.$model]]),c("label",qyo,m(e.$t("user.editor.contractor_details.psc")),1),o.v$.contractor_details.contractor_psc.$error&&o.v$.contractor_details.contractor_psc.required.$invalid?(h(),g("span",Yyo,m(e.$t("validation.custom.invoice_psc.required")),1)):D("",!0)]),c("div",Wyo,[xe(c("input",{id:"contractor_ico",class:J({"form-control":!0,"is-invalid":o.v$.contractor_details.contractor_ico.$error}),type:"text",name:"contractor_ico","onUpdate:modelValue":t[5]||(t[5]=d=>o.v$.contractor_details.contractor_ico.$model=d)},null,2),[[wt,o.v$.contractor_details.contractor_ico.$model]]),c("label",Gyo,m(e.$t("user.editor.contractor_details.ico")+" "+e.$t("public.optional")),1),o.v$.contractor_details.contractor_ico.$error?(h(),g("span",Zyo,m(e.$t("validation.custom.invoice_ico.format")),1)):D("",!0)]),c("div",Kyo,[xe(c("input",{id:"contractor_bank_account",class:J({"form-control":!0,"is-invalid":o.v$.contractor_details.contractor_bank_account.$error}),type:"text",name:"contractor_bank_account","onUpdate:modelValue":t[6]||(t[6]=d=>o.v$.contractor_details.contractor_bank_account.$model=d)},null,2),[[wt,o.v$.contractor_details.contractor_bank_account.$model]]),c("label",Jyo,m(e.$t("user.editor.contractor_details.bank_account_number")),1),o.v$.contractor_details.contractor_bank_account.$error&&o.v$.contractor_details.contractor_bank_account.required.$invalid?(h(),g("span",Xyo,m(e.$t("validation.required",{attribute:e.$t("user.editor.contractor_details.bank_account_number")})),1)):D("",!0)]),b(a,{id:"is_vat_payer",value:r.is_vat_payer,"onUpdate:value":t[7]||(t[7]=d=>r.is_vat_payer=d),label:e.$t("authoronboarding.form_page.form.is_vat_payer"),class:"mt-4"},null,8,["value","label"]),r.is_vat_payer?(h(),g("div",Qyo,[xe(c("input",{id:"contractor_dic",class:J({"form-control":!0,"is-invalid":o.v$.contractor_details.contractor_dic.$error}),type:"text",name:"contractor_dic","onUpdate:modelValue":t[8]||(t[8]=d=>r.contractor_details.contractor_dic=d)},null,2),[[wt,r.contractor_details.contractor_dic]]),c("label",ebo,m(e.$t("user.editor.contractor_details.dic")),1),o.v$.contractor_details.contractor_dic.$error&&o.v$.contractor_details.contractor_dic.required.$invalid?(h(),g("span",tbo,m(e.$t("validation.custom.invoice_dic.required")),1)):o.v$.contractor_details.contractor_dic.$error&&o.v$.contractor_details.contractor_dic.validDic.$invalid?(h(),g("span",nbo,m(e.$t("validation.custom.invoice_dic.format")),1)):D("",!0)])):D("",!0)]),c("div",obo,[c("h3",ibo,m(e.$t("user.editor.header.image_sources")),1),c("p",null,[z(m(e.$t("authoronboarding.form_page.form.image_sources_text.0"))+" ",1),c("a",rbo,m(e.$t("authoronboarding.form_page.form.image_sources_text.1")),1),t[14]||(t[14]=c("br",null,null,-1)),t[15]||(t[15]=c("br",null,null,-1)),z(" "+m(e.$t("authoronboarding.form_page.form.image_sources_text.2")),1)]),c("div",sbo,[b(l,{"image-sources":r.image_sources,"onUpdate:imageSources":t[9]||(t[9]=d=>r.image_sources=d),"has-also-original-images":r.has_also_original_images,"onUpdate:hasAlsoOriginalImages":t[10]||(t[10]=d=>r.has_also_original_images=d)},null,8,["image-sources","has-also-original-images"])])]),b(a,{id:"vop",value:o.v$.vop_accepted.$model,"onUpdate:value":t[11]||(t[11]=d=>o.v$.vop_accepted.$model=d),label:e.$t("vop.user.become_author")},null,8,["value","label"]),c("div",abo,[c("button",{class:"btn btn-primary",onClick:t[12]||(t[12]=Gt((...d)=>r.update&&r.update(...d),["prevent"])),disabled:!r.vop_accepted},m(e.$t("user.be_author")),9,lbo)]),i.validationStatus?D("",!0):(h(),g("div",cbo,[c("p",dbo,m(e.$t("validation.check_required")),1)]))],32)])])])}const hbo=U(Cyo,[["render",ubo]]),fbo={components:{ContactCards:_h,AccordionItem:Ml,AppIcon:Ue},data(){return{bgPrimary5Footer:Lde,accordionData:xde.faq,checkListLink:ks.author.material.checkList}}},mbo={class:"my-6"},pbo={class:"row justify-content-center text-center mb-6"},gbo={class:"my-3"},vbo={class:"col-6 mb-5"},_bo=["href"],ybo={class:"w-full-page z-index-neg-1"},bbo={class:"position-absolute w-100 mt-10rem h-50rem overflow-hidden"},kbo=["src"],wbo={class:"row justify-content-center"},$bo={class:"col-12 col-lg-8 z-index-1"},Cbo={class:"text-center mb-5"},Sbo={class:"content-box shadow rounded p-5"},Tbo={id:"accordions-group"},Ebo={class:"accordion-title"},Ibo={class:"py-2 mb-0"},Pbo=["innerHTML"];function Abo(e,t,n,o,i,r){const s=y("AppIcon"),a=y("ContactCards"),l=y("AccordionItem");return h(),g("div",mbo,[c("div",pbo,[b(s,{icon:"check-circle",class:"text-success align-self-center",height:"80",width:"80"}),c("h2",gbo,m(e.$t("authoronboarding.thanks_page.thanks")),1),c("p",vbo,m(e.$t("authoronboarding.thanks_page.thanks_text")),1),c("div",null,[c("a",{href:i.checkListLink,target:"_blank",class:"btn btn-primary btn-center"},[z(m(e.$t("faq.fist_material_tips"))+" ",1),b(s,{icon:"arrow-right",class:"ms-icon",height:"20",width:"20"})],8,_bo)])]),b(a,{"author-card":"","advice-card":"","community-card":"",class:"py-6 mb-6"}),c("div",ybo,[c("div",bbo,[c("img",{src:i.bgPrimary5Footer,class:"w-100"},null,8,kbo)])]),c("div",wbo,[c("div",$bo,[c("h2",Cbo,m(e.$t("faq.authors")),1),c("div",Sbo,[c("div",Tbo,[(h(!0),g(pe,null,Me(i.accordionData,(d,u)=>(h(),W(l,{key:u,index:String(u),parent:"accordions-group"},{title:F(()=>[c("div",Ebo,[c("h4",Ibo,m(d.short),1)])]),body:F(()=>[c("div",{class:"accordion-body",innerHTML:d.long},null,8,Pbo)]),_:2},1032,["index"]))),128))])])])])])}const Dbo=U(fbo,[["render",Abo]]),xbo=""+new URL("nothing_found-6c803b51.svg",import.meta.url).href,Obo={components:{ProductList404:Zce},data(){return{nothingFoundImage:xbo}}},Lbo={class:"row"},Mbo={class:"col-12"},Nbo={class:"bg-primary-5 text-center m-3 p-3 m-lg-6 p-lg-6"},Rbo=["src"],jbo={class:"mb-2"},Fbo=["href"],zbo={class:"col-12"},Ubo={class:"mb-0 fw-bold"};function Bbo(e,t,n,o,i,r){const s=y("ProductList404");return h(),g("div",null,[c("div",Lbo,[c("div",Mbo,[c("div",Nbo,[c("img",{src:i.nothingFoundImage,alt:"Nothing found",class:"mb-3",style:{"max-width":"100%",height:"auto"}},null,8,Rbo),c("h3",jbo,m(e.$t("product.not_available.title")),1),c("p",null,[z(m(e.$t("product.not_available.text.0"))+" ",1),c("a",{href:e.ziggyRoute("materialy")},m(e.$t("product.not_available.text.1")),9,Fbo)])])]),c("div",zbo,[b(s,null,{title:F(()=>[c("h4",Ubo,m(e.$t("product.recommended")),1)]),_:1})])])])}const Hbo=U(Obo,[["render",Bbo]]),Vbo=""+new URL("miriam-4cdc8a99.jpg",import.meta.url).href,qbo=""+new URL("anna-20b25552.jpg",import.meta.url).href,Ybo=""+new URL("alice-82d94acf.jpg",import.meta.url).href,Wbo=""+new URL("sara-c89df209.jpg",import.meta.url).href,Gbo=""+new URL("filip-ca569f03.jpeg",import.meta.url).href,Zbo=""+new URL("tomas-dcbeb240.jpg",import.meta.url).href,Kbo=""+new URL("peter-085d4fdc.jpeg",import.meta.url).href,Jbo=""+new URL("radek-4ab595d8.jpg",import.meta.url).href,Xbo=""+new URL("alena-c51872d8.jpg",import.meta.url).href,Qbo=""+new URL("lenka-ed1fd701.jpg",import.meta.url).href,e0o=""+new URL("vojta-d84442d5.jpg",import.meta.url).href,t0o=""+new URL("about_us_photo-ea9dba6a.jpeg",import.meta.url).href,n0o={props:{image:String,name:String,role:{type:String,default:null},text:{type:String,default:null},imageHeight:{type:Number,default:88},imageWidth:{type:Number,default:88}}},o0o={class:"text-center text-gray-800"},i0o=["src","alt","height","width"],r0o={class:"large fw-bold mt-3"},s0o={key:0,class:"small mt-1"},a0o={key:1,class:"small mt-2"};function l0o(e,t,n,o,i,r){return h(),g("div",o0o,[c("img",{src:n.image,alt:n.name,height:n.imageHeight,width:n.imageWidth,class:"object-fit-cover rounded-circle"},null,8,i0o),c("div",r0o,m(n.name),1),n.role?(h(),g("div",s0o,m(n.role),1)):D("",!0),n.text?(h(),g("div",a0o,m(n.text),1)):D("",!0)])}const c0o=U(n0o,[["render",l0o]]),d0o={components:{TransitionCollapseHeight:qo,AppIcon:Ue,AboutPagePersonBlock:c0o},data(){return{images:{jakub:bL,miriam:Vbo,sara:Wbo,anna:qbo,alice:Ybo,alena:Xbo,radek:Jbo,filip:Gbo,tomas:Zbo,peter:Kbo,lenka:Qbo,vojta:e0o},showAdditional:!1,showAdditionalOpenButton:!0,aboutUs:t0o}},methods:{openAdditional(){this.showAdditional=!0,this.showAdditionalOpenButton=!1},closeAdditional(){this.showAdditional=!1}}},u0o={class:"row"},h0o={class:"col-12"},f0o={class:"medium text-gray-700 mb-0 p-0"},m0o={class:"row justify-content-center"},p0o={class:"col-12 col-lg-8"},g0o={class:"row justify-content-center"},v0o={class:"row mb-4"},_0o={class:"col-12 text-center"},y0o={key:0},b0o={key:0},k0o={class:"text-gray-700 fw-medium text-start mb-2"},w0o={class:"d-flex justify-content-center flex-wrap"},$0o={class:"text-center"},C0o={class:"row"},S0o={class:"col-12 p-0 mt-2"},T0o=["src","alt"];function E0o(e,t,n,o,i,r){const s=y("AboutPagePersonBlock"),a=y("AppIcon"),l=y("TransitionCollapseHeight");return h(),g("div",null,[c("div",u0o,[c("div",h0o,[c("p",f0o,m(e.$t("about.founders.headline")),1)])]),c("div",m0o,[c("div",p0o,[c("div",g0o,[(h(!0),g(pe,null,Me(e.$tm("about.founders.people"),(d,u,f)=>(h(),g("div",{class:"col-12 col-sm-6 col-lg-3 p-5",key:f},[b(s,{image:i.images[u],name:d.name,role:d.role?d.role:null,text:d.text?d.text:null},null,8,["image","name","role","text"])]))),128))])])]),c("div",v0o,[c("div",_0o,[i.showAdditionalOpenButton?(h(),g("div",y0o,[c("button",{class:"btn btn-tertiary btn-sm large text-gray-800",onClick:t[0]||(t[0]=(...d)=>r.openAdditional&&r.openAdditional(...d))},[z(m(e.$t("about.founders.additional.show"))+" ",1),b(a,{icon:"chevron-down",class:"ms-icon",height:"24",width:"24"})])])):D("",!0),b(l,{onClosed:t[2]||(t[2]=d=>i.showAdditionalOpenButton=!0)},{default:F(()=>[i.showAdditional?(h(),g("div",b0o,[c("div",k0o,m(e.$t("about.founders.additional.title")),1),c("div",w0o,[(h(!0),g(pe,null,Me(e.$tm("about.founders.additional.people"),(d,u,f)=>(h(),g("div",{class:"col-12 col-sm-6 col-md-2dot4 p-3",key:f},[b(s,{"image-height":64,"image-width":64,image:i.images[u],name:d.name,role:d.role?d.role:null,text:d.text?d.text:null},null,8,["image","name","role","text"])]))),128))]),c("div",$0o,[c("button",{class:"btn btn-tertiary btn-sm large text-gray-800",onClick:t[1]||(t[1]=(...d)=>r.closeAdditional&&r.closeAdditional(...d))},[z(m(e.$t("about.founders.additional.hide"))+" ",1),b(a,{icon:"chevron-up",class:"ms-icon",height:"24",width:"24"})])])])):D("",!0)]),_:1})])]),c("div",C0o,[c("div",S0o,[c("img",{src:i.aboutUs,alt:e.$t("about.founders.img_alt"),class:"w-100 content-box shadow-high p-0 object-fit-cover rounded"},null,8,T0o)])])])}const I0o=U(d0o,[["render",E0o]]),cA={dragToScrollHorizontalInit(e,t=2){const n=e;let o=!1,i,r;n.addEventListener("mousedown",s=>{o=!0,i=s.pageX-n.offsetLeft,r=n.scrollLeft}),n.addEventListener("mouseleave",()=>{o=!1}),n.addEventListener("mouseup",()=>{o=!1}),n.addEventListener("mousemove",s=>{if(!o)return;s.preventDefault();const l=(s.pageX-n.offsetLeft-i)*t;n.scrollLeft=r-l})},horizontalButtonScrollInit(e,t,n){let o=0;return window.$("#"+e+" "+t).each(function(i){window.$(this).attr("id",n+""+i),o++}),o}};const P0o={components:{CircleButtonWithIconOnly:Ag},data(){return{current:0,scrollOptions:{container:"#timeline",lazy:!1,offset:-50,x:!0,y:!1},duration:250,lastScroll:null,minId:0,maxId:9}},methods:{scroll(e){this.lastScroll&&this.lastScroll(),e?this.forward():this.backward()},forward(){this.current+1<=this.maxId&&(this.current+=1),this.lastScroll=this.$scrollTo("#"+this.idString(this.current),this.duration,this.scrollOptions)},backward(){this.current-1>=this.minId&&(this.current-=1),this.lastScroll=this.$scrollTo("#"+this.idString(this.current),this.duration,this.scrollOptions)},idString(e){return"timeline-"+e}},mounted(){cA.dragToScrollHorizontalInit(this.$refs.timeline,1)}},A0o={class:"text-center"},D0o={class:"row justify-content-center"},x0o={class:"col-12 col-lg-6"},O0o={class:"mb-0"},L0o={class:"w-full-page scroll"},M0o={class:"timeline-wrapper d-flex",id:"timeline",ref:"timeline"},N0o={class:"timeline-box timeline-box-top",id:"timeline-0"},R0o={class:"timeline-box-content"},j0o={class:"timeline-box-date"},F0o={class:"timeline-box-title"},z0o={class:"timeline-box-text"},U0o={class:"timeline-box timeline-box-bottom",id:"timeline-1"},B0o={class:"timeline-box-content"},H0o={class:"timeline-box-date"},V0o={class:"timeline-box-title"},q0o={class:"timeline-box-text"},Y0o={class:"timeline-box timeline-box-top",id:"timeline-2"},W0o={class:"timeline-box-content"},G0o={class:"timeline-box-date"},Z0o={class:"timeline-box-title"},K0o={class:"timeline-box-text"},J0o={class:"timeline-box timeline-box-bottom",id:"timeline-3"},X0o={class:"timeline-box-content"},Q0o={class:"timeline-box-date"},e2o={class:"timeline-box-title"},t2o={class:"timeline-box-text"},n2o={class:"timeline-box timeline-box-top",id:"timeline-4"},o2o={class:"timeline-box-content"},i2o={class:"timeline-box-date"},r2o={class:"timeline-box-title"},s2o={class:"timeline-box-text"},a2o={href:"https://www.youtube.com/watch?v=Oje-lWND0FM&list=PL5MadL8h371Aie7yesrxMAUoTyiuwZQP3",target:"_blank"},l2o={class:"timeline-box timeline-box-bottom",id:"timeline-5"},c2o={class:"timeline-box-content"},d2o={class:"timeline-box-date"},u2o={class:"timeline-box-title"},h2o={class:"timeline-box-text"},f2o={class:"timeline-box timeline-box-top",id:"timeline-6"},m2o={class:"timeline-box-content"},p2o={class:"timeline-box-date"},g2o={class:"timeline-box-title"},v2o={class:"timeline-box-text"},_2o={class:"timeline-box timeline-box-bottom",id:"timeline-7"},y2o={class:"timeline-box-content"},b2o={class:"timeline-box-date"},k2o={class:"timeline-box-title"},w2o={class:"timeline-box-text"},$2o={class:"timeline-box timeline-box-top",id:"timeline-8"},C2o={class:"timeline-box-content"},S2o={class:"timeline-box-date"},T2o={class:"timeline-box-title"},E2o={class:"timeline-box-text"},I2o={class:"timeline-box timeline-box-bottom",id:"timeline-9"},P2o={class:"timeline-box-content"},A2o={class:"timeline-box-date"},D2o={class:"timeline-box-title"},x2o={class:"timeline-box-text"},O2o={class:"timeline-box timeline-box-top",id:"timeline-10"},L2o={class:"timeline-box-content"},M2o={class:"timeline-box-date"},N2o={class:"timeline-box-title"},R2o={class:"timeline-box-text"},j2o={class:"timeline-box timeline-box-bottom",id:"timeline-11"},F2o={class:"timeline-box-content"},z2o={class:"timeline-box-date"},U2o={class:"timeline-box-title"},B2o={class:"timeline-box-text"},H2o={class:"timeline-box timeline-box-top",id:"timeline-12"},V2o={class:"timeline-box-content"},q2o={class:"timeline-box-date text-success"},Y2o={class:"timeline-box-title"},W2o={class:"timeline-box-text"},G2o={class:"row"},Z2o={class:"col-12 z-index-1 d-flex justify-content-center"};function K2o(e,t,n,o,i,r){const s=y("CircleButtonWithIconOnly");return h(),g("div",A0o,[c("div",D0o,[c("div",x0o,[c("h2",O0o,m(e.$t("about.timeline.headline")),1)])]),c("div",null,[t[15]||(t[15]=c("div",{class:"w-full-page timeline-line"},null,-1)),c("div",L0o,[c("section",M0o,[c("div",N0o,[t[2]||(t[2]=c("div",{class:"timeline-dot"},null,-1)),c("div",R0o,[c("div",j0o,m(e.$t("about.timeline.items.0.date")),1),c("div",F0o,m(e.$t("about.timeline.items.0.title")),1),c("p",z0o,m(e.$t("about.timeline.items.0.text")),1)])]),c("div",U0o,[t[3]||(t[3]=c("div",{class:"timeline-dot"},null,-1)),c("div",B0o,[c("div",H0o,m(e.$t("about.timeline.items.1.date")),1),c("div",V0o,m(e.$t("about.timeline.items.1.title")),1),c("p",q0o,m(e.$t("about.timeline.items.1.text")),1)])]),c("div",Y0o,[t[4]||(t[4]=c("div",{class:"timeline-dot"},null,-1)),c("div",W0o,[c("div",G0o,m(e.$t("about.timeline.items.2.date")),1),c("div",Z0o,m(e.$t("about.timeline.items.2.title")),1),c("p",K0o,m(e.$t("about.timeline.items.2.text")),1)])]),c("div",J0o,[t[5]||(t[5]=c("div",{class:"timeline-dot"},null,-1)),c("div",X0o,[c("div",Q0o,m(e.$t("about.timeline.items.3.date")),1),c("div",e2o,m(e.$t("about.timeline.items.3.title")),1),c("p",t2o,m(e.$t("about.timeline.items.3.text")),1)])]),c("div",n2o,[t[6]||(t[6]=c("div",{class:"timeline-dot"},null,-1)),c("div",o2o,[c("div",i2o,m(e.$t("about.timeline.items.4.date")),1),c("div",r2o,m(e.$t("about.timeline.items.4.title")),1),c("p",s2o,[z(m(e.$t("about.timeline.items.4.text.0"))+" ",1),c("a",a2o,m(e.$t("about.timeline.items.4.text.1")),1),z(" "+m(e.$t("about.timeline.items.4.text.2")),1)])])]),c("div",l2o,[t[7]||(t[7]=c("div",{class:"timeline-dot"},null,-1)),c("div",c2o,[c("div",d2o,m(e.$t("about.timeline.items.5.date")),1),c("div",u2o,m(e.$t("about.timeline.items.5.title")),1),c("p",h2o,m(e.$t("about.timeline.items.5.text")),1)])]),c("div",f2o,[t[8]||(t[8]=c("div",{class:"timeline-dot"},null,-1)),c("div",m2o,[c("div",p2o,m(e.$t("about.timeline.items.6.date")),1),c("div",g2o,m(e.$t("about.timeline.items.6.title")),1),c("p",v2o,m(e.$t("about.timeline.items.6.text")),1)])]),c("div",_2o,[t[9]||(t[9]=c("div",{class:"timeline-dot"},null,-1)),c("div",y2o,[c("div",b2o,m(e.$t("about.timeline.items.7.date")),1),c("div",k2o,m(e.$t("about.timeline.items.7.title")),1),c("p",w2o,m(e.$t("about.timeline.items.7.text")),1)])]),c("div",$2o,[t[10]||(t[10]=c("div",{class:"timeline-dot"},null,-1)),c("div",C2o,[c("div",S2o,m(e.$t("about.timeline.items.8.date")),1),c("div",T2o,m(e.$t("about.timeline.items.8.title")),1),c("p",E2o,m(e.$t("about.timeline.items.8.text")),1)])]),c("div",I2o,[t[11]||(t[11]=c("div",{class:"timeline-dot"},null,-1)),c("div",P2o,[c("div",A2o,m(e.$t("about.timeline.items.9.date")),1),c("div",D2o,m(e.$t("about.timeline.items.9.title")),1),c("p",x2o,m(e.$t("about.timeline.items.9.text")),1)])]),c("div",O2o,[t[12]||(t[12]=c("div",{class:"timeline-dot"},null,-1)),c("div",L2o,[c("div",M2o,m(e.$t("about.timeline.items.10.date")),1),c("div",N2o,m(e.$t("about.timeline.items.10.title")),1),c("p",R2o,m(e.$t("about.timeline.items.10.text")),1)])]),c("div",j2o,[t[13]||(t[13]=c("div",{class:"timeline-dot"},null,-1)),c("div",F2o,[c("div",z2o,m(e.$t("about.timeline.items.11.date")),1),c("div",U2o,m(e.$t("about.timeline.items.11.title")),1),c("p",B2o,m(e.$t("about.timeline.items.11.text")),1)])]),c("div",H2o,[t[14]||(t[14]=c("div",{class:"timeline-dot"},null,-1)),c("div",V2o,[c("div",q2o,m(e.$t("about.timeline.items.12.date")),1),c("div",Y2o,m(e.$t("about.timeline.items.12.title")),1),c("p",W2o,m(e.$t("about.timeline.items.12.text")),1)])])],512)]),c("div",G2o,[c("div",Z2o,[b(s,{onClick:t[0]||(t[0]=a=>r.scroll(!1)),class:"btn-secondary ms-3 me-3",icon:"chevron-left","button-height":"40px","button-width":"40px","icon-height":24,"icon-width":24}),b(s,{onClick:t[1]||(t[1]=a=>r.scroll(!0)),class:"btn-secondary ms-3 me-3",icon:"chevron-right","button-height":"40px","button-width":"40px","icon-height":24,"icon-width":24})])])])])}const J2o=U(P0o,[["render",K2o],["__scopeId","data-v-261eef98"]]),X2o=""+new URL("books-6d3b78ff.svg",import.meta.url).href,Q2o=""+new URL("school-72dfbafb.svg",import.meta.url).href,e3o={data(){return{books:X2o,pestrejsiHodiny:Dse,school:Q2o}}},t3o={class:"row text-center p-5 content-box shadow"},n3o={class:"col-12 col-md-4 border-end-md"},o3o=["src","alt"],i3o={class:"text-gray-600 m-0"},r3o={class:"col-12 col-md-4 border-end-md"},s3o=["src","alt"],a3o={class:"text-gray-600 m-0"},l3o={class:"col-12 col-md-4"},c3o=["src","alt"],d3o={class:"text-gray-600 m-0"};function u3o(e,t,n,o,i,r){return h(),g("div",t3o,[c("div",n3o,[c("img",{src:i.books,alt:e.$t("about.stats.imgs_alt_text"),class:"mb-3",height:"80"},null,8,o3o),t[0]||(t[0]=c("h2",{class:"text-gray-800 mb-1"},m("1 322 536+"),-1)),c("p",i3o,m(e.$t("about.stats.materials")),1)]),c("div",r3o,[c("img",{src:i.pestrejsiHodiny,alt:e.$t("about.stats.imgs_alt_text"),class:"mb-3",height:"80"},null,8,s3o),t[1]||(t[1]=c("h2",{class:"text-gray-800 mb-1"},m("955 605+"),-1)),c("p",a3o,m(e.$t("about.stats.children")),1)]),c("div",l3o,[c("img",{src:i.school,alt:e.$t("about.stats.imgs_alt_text"),class:"mb-3",height:"80"},null,8,c3o),t[2]||(t[2]=c("h2",{class:"text-gray-800 mb-1"},m("2 558+"),-1)),c("p",d3o,m(e.$t("about.stats.schools")),1)])])}const h3o=U(e3o,[["render",u3o]]),f3o=()=>De.get(Pe("api.review.index")),m3o={index:f3o},p3o={components:{CircleButtonWithIconOnly:Ag,Loading:Rt,UserBlock:yL},data(){return{primaryColor:window.primaryColor,jakub:bL,reviews:[],loading:!1,current:0,scrollOptions:{container:"#reviews",lazy:!1,offset:-15,x:!0,y:!1},duration:250,lastScroll:null,minId:0,maxId:0}},methods:{scroll(e){this.lastScroll&&this.lastScroll(),e?this.forward():this.backward()},forward(){this.current+1<=this.maxId&&(this.current+=1),this.lastScroll=this.$scrollTo("#"+this.idString(this.current),this.duration,this.scrollOptions)},backward(){this.current-1>=this.minId&&(this.current-=1),this.lastScroll=this.$scrollTo("#"+this.idString(this.current),this.duration,this.scrollOptions)},idString(e){return"reviews-"+e}},mounted(){this.loading=!0,m3o.index().then(e=>{this.reviews=e.data.reviews,this.loading=!1,this.$nextTick(()=>{cA.dragToScrollHorizontalInit(this.$refs.reviews,1),this.maxId=cA.horizontalButtonScrollInit("reviews",".box","reviews-")})})}},g3o={class:"w-full-page bg-primary-5 text-center"},v3o={class:"mb-5"},_3o={class:"d-flex justify-content-between px-2 px-xl-6 flex-wrap"},y3o={class:"mb-2"},b3o={class:"container vl-parent mh-4rem"},k3o={class:"row scroll",id:"reviews",ref:"reviews"},w3o={class:"mb-3"},$3o={class:"d-flex justify-content-center"};function C3o(e,t,n,o,i,r){const s=y("CircleButtonWithIconOnly"),a=y("Loading"),l=y("UserBlock");return h(),g("div",g3o,[c("div",v3o,[c("div",_3o,[b(s,{onClick:t[0]||(t[0]=d=>r.scroll(!1)),class:"btn-secondary ms-3 me-3",icon:"chevron-left","button-height":"40px","button-width":"40px","icon-height":24,"icon-width":24}),c("h2",y3o,m(e.$t("about.reviews.headline")),1),b(s,{onClick:t[1]||(t[1]=d=>r.scroll(!0)),class:"btn-secondary ms-3 me-3",icon:"chevron-right","button-height":"40px","button-width":"40px","icon-height":24,"icon-width":24})])]),c("div",b3o,[b(a,{active:i.loading,"onUpdate:active":t[2]||(t[2]=d=>i.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",k3o,[(h(!0),g(pe,null,Me(i.reviews,d=>(h(),g("div",{class:"w-21dot875rem box",key:d.id},[c("p",w3o,m(d.content),1),c("div",$3o,[b(l,{name:d.first_name+" "+d.last_name,role:d.public_role,"show-icon":!1},null,8,["name","role"])])]))),128))],512)])])}const S3o=U(p3o,[["render",C3o]]),T3o={components:{AppIcon:Ue,TenAccordion:Ode},computed:{...Oe({auth:"auth/auth"})},data(){return{email:Jd.email}},methods:{writeUs(){this.auth.check?this.$store.commit("sidebarChat/toggleChatOpen"):window.loginRegisterModal(window.location.href)},register(){window.loginRegisterModal(window.location.href,"register")}}},E3o={class:"row mt-6 mb-6"},I3o={class:"col-12 col-lg-6 mt-lg-6 px-3"},P3o={class:"mb-4"},A3o={class:"text-primary"},D3o={class:"text-gray-600"},x3o={class:"text-gray-600"},O3o={class:"mb-6 text-gray-600"},L3o={class:""},M3o={class:"d-flex justify-content-lg-start flex-wrap justify-content-evenly"},N3o=["href"],R3o={class:"col-12 col-lg-5 mt-6 mt-lg-0 offset-lg-1"};function j3o(e,t,n,o,i,r){const s=y("AppIcon"),a=y("TenAccordion");return h(),g("div",E3o,[c("div",I3o,[c("h2",P3o,[z(m(e.$t("about.additional_info.headline.0"))+" ",1),c("span",A3o,m(e.$t("about.additional_info.headline.1")),1)]),c("p",D3o,m(e.$t("about.additional_info.text.0")),1),c("p",x3o,m(e.$t("about.additional_info.text.1")),1),c("p",O3o,m(e.$t("about.additional_info.text.2")),1),c("h4",L3o,m(e.$t("about.additional_info.text.3")),1),c("div",M3o,[e.auth.check?(h(),g("button",{key:1,class:"btn btn-secondary me-3 mt-5 d-flex align-items-center",onClick:t[0]||(t[0]=(...l)=>r.writeUs&&r.writeUs(...l))},[z(m(e.$t("about.additional_info.buttons.write_us"))+" ",1),b(s,{icon:"message",class:"ms-2"})])):(h(),g("a",{key:0,href:"mailto:"+i.email,target:"_blank",class:"btn btn-tertiary d-flex align-items-center mt-5 me-0 me-lg-4"},[z(m(e.$t("about.additional_info.buttons.write_us"))+" ",1),b(s,{icon:"mail",width:"20",height:"20",class:"ms-2"})],8,N3o)),e.auth.check?D("",!0):(h(),g("button",{key:2,class:"btn btn-primary mt-5 d-flex align-items-center",onClick:t[1]||(t[1]=(...l)=>r.register&&r.register(...l))},[z(m(e.$t("about.additional_info.buttons.register"))+" ",1),b(s,{icon:"user-add",class:"ms-2"})]))])]),c("div",R3o,[b(a)])])}const F3o=U(T3o,[["render",j3o]]),z3o=""+new URL("about-bg-1-15902f10.png",import.meta.url).href,U3o=""+new URL("about-bg-2-307c2d7b.png",import.meta.url).href,B3o={components:{AboutPageContributors:I0o,AboutPageTimeline:J2o,AboutPageStats:h3o,AboutPageReviews:S3o,AboutPageAdditionalInfo:F3o},data(){return{aboutBg1:z3o,aboutBg2:U3o}}},H3o={class:"col-12"},V3o={class:"w-full-page z-index-neg-1"},q3o={class:"position-absolute top-0 end-0"},Y3o=["src"],W3o={class:"row border-bottom-2"},G3o={class:"col-12 col-lg-8 mt-5 mb-6"},Z3o={class:"mt-5 mb-4"},K3o={class:"m-0 text-gray-800"},J3o={class:"w-full-page z-index-neg-1"},X3o={class:"position-absolute start mt-32rem"},Q3o=["src"],eko={class:"row mt-4"},tko={class:"col-12 mb-6"},nko={class:"row"},oko={class:"col-12 mb-6 z-index-2"},iko={class:"row"},rko={class:"col-12 mt-2 mb-6",style:{"z-index":"2"}},sko={class:"row"},ako={class:"col-12 mb-6",style:{"margin-top":"max(-23vw, -400px)","z-index":"1"}},lko={class:"row",style:{"margin-top":"max(-21vw, -300px)"}},cko={class:"col-12 z-index-1"};function dko(e,t,n,o,i,r){const s=y("AboutPageContributors"),a=y("AboutPageTimeline"),l=y("AboutPageStats"),d=y("AboutPageReviews"),u=y("AboutPageAdditionalInfo");return h(),g("div",null,[c("div",H3o,[c("div",V3o,[c("div",q3o,[c("img",{src:i.aboutBg1},null,8,Y3o)])]),c("div",W3o,[c("div",G3o,[c("h1",Z3o,[z(m(e.$t("about.welcome.headline.0"))+" ",1),t[0]||(t[0]=c("br",null,null,-1)),z(" "+m(e.$t("about.welcome.headline.1")),1)]),c("p",K3o,[z(m(e.$t("about.welcome.text.0"))+" ",1),t[1]||(t[1]=c("br",null,null,-1)),t[2]||(t[2]=c("br",null,null,-1)),z(" "+m(e.$t("about.welcome.text.1")),1)])])]),c("div",J3o,[c("div",X3o,[c("img",{src:i.aboutBg2},null,8,Q3o)])]),c("div",eko,[c("div",tko,[b(s)])]),c("div",nko,[c("div",oko,[b(a)])]),c("div",iko,[c("div",rko,[b(l)])]),c("div",sko,[c("div",ako,[t[3]||(t[3]=c("div",{class:"w-full-page"},[c("div",{class:"w-100"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1440 320"},[c("path",{fill:"#F6F8FE","fill-opacity":"1",d:"M0,128L120,144C240,160,480,192,720,197.3C960,203,1200,181,1320,170.7L1440,160L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z"})])])],-1)),b(d,{class:"pt-6"}),t[4]||(t[4]=c("div",{class:"w-full-page"},[c("div",{class:"w-100"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1440 320"},[c("path",{fill:"#F6F8FE","fill-opacity":"1",d:"M0,32L80,48C160,64,320,96,480,133.3C640,171,800,213,960,234.7C1120,256,1280,256,1360,256L1440,256L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z"})])])],-1))])]),c("div",lko,[c("div",cko,[b(u)])])])])}const uko=U(B3o,[["render",dko]]),hko=""+new URL("primary_5_wave-7d75c5a1.svg",import.meta.url).href,fko={components:{AppIcon:Ue},data(){return{external:ks}}},mko={class:"row"},pko={class:"col-12 col-lg-6"},gko={class:"mb-3 large fw-medium"},vko={class:"medium text-gray-800 mb-2"},_ko={class:"medium text-gray-700 m-0"},yko=["href"],bko=["href"],kko={class:"col-12 col-lg-6"},wko={class:"mb-3 large fw-medium"},$ko={class:"medium text-gray-800 mb-2"};function Cko(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",mko,[c("div",pko,[c("p",gko,m(e.$t("contact.legal_info.headline")),1),c("p",vko,[z(m(e.$t("contact.legal_info.addr_ico_dic.0"))+" ",1),t[0]||(t[0]=c("br",null,null,-1)),z(" "+m(e.$t("contact.legal_info.addr_ico_dic.1"))+" ",1),t[1]||(t[1]=c("br",null,null,-1)),z(" "+m(e.$t("contact.legal_info.addr_ico_dic.2"))+" ",1),t[2]||(t[2]=c("br",null,null,-1)),t[3]||(t[3]=c("br",null,null,-1)),z(" "+m(e.$t("contact.legal_info.addr_ico_dic.3"))+" ",1),t[4]||(t[4]=c("br",null,null,-1)),z(" "+m(e.$t("contact.legal_info.addr_ico_dic.4")),1)]),c("p",_ko,m(e.$t("contact.legal_info.text")),1),t[5]||(t[5]=c("hr",{class:"my-4"},null,-1)),c("a",{href:i.external.vop,class:"mb-2",target:"_blank"},[z(m(e.$t("contact.legal_info.conditions"))+" ",1),b(s,{icon:"download",height:"16",width:"16",class:"ms-1"})],8,yko),t[6]||(t[6]=c("br",null,null,-1)),t[7]||(t[7]=c("br",null,null,-1)),c("a",{href:i.external.files.personalDataProcessing,target:"_blank"},[z(m(e.$t("contact.legal_info.personal"))+" ",1),b(s,{icon:"download",height:"16",width:"16",class:"ms-1"})],8,bko)]),c("div",kko,[t[10]||(t[10]=c("hr",{class:"mt-4 d-block d-lg-none"},null,-1)),c("p",wko,m(e.$t("contact.legal_info.where_office")),1),c("p",$ko,[z(m(e.$t("contact.legal_info.office_address.0"))+" ",1),t[8]||(t[8]=c("br",null,null,-1)),z(" "+m(e.$t("contact.legal_info.office_address.1"))+" ",1),t[9]||(t[9]=c("br",null,null,-1)),z(" "+m(e.$t("contact.legal_info.office_address.2")),1)])])])}const Sko=U(fko,[["render",Cko]]),Tko={components:{ContactCards:_h,ContactPageLawInfo:Sko},computed:{...Oe({auth:"auth/auth",user:"user/getUserData"})},data(){return{primary5Wave:hko}},watch:{auth(e){e.id&&this.$store.dispatch("user/load",{id:this.auth.id})}}},Eko={class:"w-full-page z-index-neg-1"},Iko={class:"position-relative"},Pko={style:{height:"36.375rem"},class:"position-absolute w-100 overflow-hidden"},Ako=["src"],Dko={class:"col-12 vl-parent"},xko={class:"row text-center mt-6"},Oko={class:"col-12 mt-6 mt-3 mb-6 d-flex flex-column align-items-center"},Lko={class:"mt-2 mb-4 fw-light"},Mko={class:"col-8 m-0 fw-light"},Nko={class:"row mt-3 mb-6"},Rko={class:"col-12 content-box shadow py-6 px-5"},jko={class:"row mb-5"},Fko={class:"text-center mb-1"},zko={class:"mb-6"};function Uko(e,t,n,o,i,r){const s=y("ContactCards"),a=y("ContactPageLawInfo");return h(),g("div",null,[c("div",Eko,[c("div",Iko,[c("div",Pko,[c("img",{src:i.primary5Wave,class:"w-100"},null,8,Ako)])])]),c("div",Dko,[c("div",xko,[c("div",Oko,[c("h1",Lko,m(e.auth.id?e.$t("contact.welcome.headline_logged"):e.$t("contact.welcome.headline")),1),c("h4",Mko,m(e.auth.id?e.$t("contact.welcome.text_logged"):e.$t("contact.welcome.text")),1)])]),c("div",Nko,[c("div",Rko,[c("div",jko,[c("h2",Fko,m(e.auth.id?e.$t("contact.main.headline_logged"):e.$t("contact.main.headline")),1)]),b(s,{"question-card":"","advice-card":"","improve-card":""})])]),c("div",zko,[b(a,{class:"mb-2"})])])])}const Bko=U(Tko,[["render",Uko]]),Hko={components:{AppIcon:Ue},props:{searchedText:{type:String,default:null}},data(){return{searchInput:null}},computed:{searchedTextModel:{get(){return this.searchedText},set(e){this.searchInput=e}}},methods:{search(){this.$emit("search",this.searchInput)}}},Vko={class:"d-flex bg-white border rounded-pill p-2"},qko={class:"d-flex align-items-center"},Yko={class:"input-group-text border-none ms-auto me-1"},Wko=["placeholder"],Gko={class:"ms-auto mt-3 mt-sm-0"};function Zko(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",null,[c("form",{onSubmit:t[2]||(t[2]=Gt(()=>{},["prevent"])),class:"mb-4"},[c("div",Vko,[c("div",qko,[c("span",Yko,[b(s,{icon:"search",height:"24",width:"24"})]),xe(c("input",{class:"border-none flex-grow-1 outline-none-focus",placeholder:e.$t("blog.index.search_bar.placeholder"),"onUpdate:modelValue":t[0]||(t[0]=a=>r.searchedTextModel=a)},null,8,Wko),[[wt,r.searchedTextModel]])]),c("div",Gko,[c("button",{type:"submit",class:"btn btn-sm btn-primary",onClick:t[1]||(t[1]=(...a)=>r.search&&r.search(...a))},m(e.$t("blog.index.search_bar.search_button")),1)])])],32)])}const Mde=U(Hko,[["render",Zko]]),Kko={components:{BlogItem:Jy,BlogOldItem:kL},props:{posts:Array,borderBottom:{type:Boolean,default:!1},size:{type:String,default:"default"},useOldBlogApi:{type:Boolean,default:!1},hiddenBlogIds:{type:Array,default:()=>[]}},computed:{filteredPosts(){return this.posts.filter(e=>!this.hiddenBlogIds.includes(e.id))}}};function Jko(e,t,n,o,i,r){const s=y("BlogOldItem"),a=y("BlogItem");return h(),g("div",null,[(h(!0),g(pe,null,Me(r.filteredPosts,(l,d)=>(h(),g("div",{key:d,class:J([{"border-bottom":n.borderBottom&&d!==r.filteredPosts.length-1},n.size==="small"?"py-2":"py-3"])},[n.useOldBlogApi?(h(),W(s,{key:0,blog:l,size:n.size},null,8,["blog","size"])):(h(),W(a,{key:1,blog:l,size:n.size},null,8,["blog","size"]))],2))),128))])}const LM=U(Kko,[["render",Jko]]);const Xko={components:{Loading:Rt},props:{selected:{type:Number}},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({themes:"blog/themes",loading:"blog/loadingThemes"}),selectedModel:{get(){return this.selected},set(e){this.$emit("search",e)}},favouriteThemes(){return this.themes&&this.themes.length>0?this.themes.filter(e=>e.favourite_order!==null).sort((e,t)=>e.favourite_order-t.favourite_order):[]}},methods:{toggleTopic(e){if(this.selectedModel===e){this.selectedModel=null;return}this.selectedModel=e},isSelected(e){return this.selected===e}}},Qko={class:"small vl-parent"},ewo=["onClick"];function two(e,t,n,o,i,r){const s=y("Loading");return h(),g("div",Qko,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=a=>e.loading=a),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),(h(!0),g(pe,null,Me(r.favouriteThemes,(a,l)=>(h(),g("div",{key:l,class:J(["select-badge cursor-pointer d-inline-block px-3 py-1 me-1 mb-1",{active:r.isSelected(a.id)}]),onClick:d=>r.toggleTopic(a.id)},m(a.name),11,ewo))),128))])}const nwo=U(Xko,[["render",two],["__scopeId","data-v-6b021eb1"]]),owo={name:"BlogMostReadBlogs",components:{BlogPostList:LM,BlogThemeList:nwo},props:{filter:{},mostReadPosts:{},searchTheme:{}}},iwo={class:"fw-bold mb-2"},rwo={class:"fw-bold mt-5"};function swo(e,t,n,o,i,r){const s=y("BlogPostList"),a=y("BlogThemeList");return h(),g("div",null,[c("p",iwo,m(e.$t("blog.index.most_read")),1),b(s,{posts:n.mostReadPosts,size:"small"},null,8,["posts"]),c("p",rwo,m(e.$t("blog.index.themes.title")),1),b(a,{selected:n.filter.theme,onSearch:t[0]||(t[0]=l=>e.$emit("search",l))},null,8,["selected"])])}const awo=U(owo,[["render",swo]]);const lwo={components:{BlogMostReadBlogs:awo,Loading:Rt,BlogSearchBar:Mde,BlogPostList:LM,BlogItem:Jy,AppIcon:Ue,Bootstrap5Pagination:Ri},data(){return{primaryColor:window.primaryColor,filter:{text:null,theme:null},currentPage:1}},methods:{resetSearch(){this.filter={text:null,theme:null},this.loadFilters(),this.updateQuery()},loadData(){this.$store.dispatch("blog/mostRead"),this.$store.dispatch("blog/loadThemes"),this.loadPosts()},loadPosts(){this.$store.dispatch("blog/index")},loadFilters(){let e={};this.filter.text&&(e.text=this.filter.text),this.filter.theme&&(e.theme=this.filter.theme),this.$store.dispatch("blog/setFilters",e),this.$store.commit("blog/setPaginationCurrentPage",1)},changePage(e){this.currentPage=e,this.$store.commit("blog/setPaginationCurrentPage",e),this.loadPosts()},searchText(e){this.filter.theme=null,this.filter.text=e,this.loadFilters(),this.updateQuery()},searchTheme(e){this.filter.text=null,this.filter.theme=e,this.loadFilters(),this.updateQuery()},updateFilterFromQuery(){if(this.$route.fullPath==="/")return;let e={text:null,theme:null};this.$route.query.text&&(e.text=this.$route.query.text),this.$route.query.theme&&(e.theme=parseInt(this.$route.query.theme)),this.filter=e,this.loadPosts()},buildQuery(){let e={};return this.filter.text&&(e.text=this.filter.text),this.filter.theme&&(e.theme=this.filter.theme),e},updateQuery(){this.$router.push({name:this.$route.name,query:this.buildQuery()}).catch(()=>{})}},computed:{...Oe({posts:"blog/posts",mostReadPosts:"blog/mostReadPosts",loading:"blog/loading",loadingMore:"blog/loadingMore",pagination:"blog/pagination",themes:"blog/themes"}),newest(){return this.posts.length>0?this.posts[0]:null},selectedTheme(){return this.filter.theme?this.themes.find(e=>e.id===this.filter.theme):null}},mounted(){this.updateFilterFromQuery(),this.loadData()},watch:{"$route.query"(){this.updateFilterFromQuery()}}},cwo={class:"row mt-6"},dwo={class:"col-12 col-lg-8 order-2 order-lg-1 border-end border-top border-resp vl-parent pe-lg-6 pt-3 pt-lg-0"},uwo={key:0},hwo={class:"d-flex align-items-center fw-bold"},fwo={class:"text-gray-700"},mwo={key:1},pwo={class:"fw-bold mb-3"},gwo={class:"fw-bold mb-0"},vwo={class:"col-12 col-lg-4 order-1 order-lg-2 ps-lg-4 mb-3 mb-lg-0"};function _wo(e,t,n,o,i,r){var v;const s=y("Loading"),a=y("AppIcon"),l=y("BlogItem"),d=y("BlogPostList"),u=y("Bootstrap5Pagination"),f=y("BlogSearchBar"),p=y("BlogMostReadBlogs");return h(),g("div",cwo,[c("div",dwo,[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=_=>e.loading=_),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),i.filter.text||r.selectedTheme?(h(),g("div",uwo,[c("h4",hwo,[c("button",{class:"btn btn-sm btn-tertiary btn-center me-2",onClick:t[1]||(t[1]=(..._)=>r.resetSearch&&r.resetSearch(..._))},[b(a,{icon:"arrow-left",height:"20",width:"20"})]),c("span",fwo,[i.filter.text?(h(),g(pe,{key:0},[z(m(e.$t("blog.index.headline_search_text")),1)],64)):D("",!0),i.filter.theme?(h(),g(pe,{key:1},[z(m(e.$t("blog.index.headline_search_theme")),1)],64)):D("",!0)]),z("  "+m(i.filter.text||r.selectedTheme.name),1)])])):(h(),g("div",mwo,[c("h3",pwo,m(e.$t("blog.index.daily")),1),r.newest?(h(),W(l,{key:0,blog:r.newest,size:"large",class:"mb-5"},null,8,["blog"])):D("",!0),c("h3",gwo,m(e.$t("blog.index.more")),1)])),c("div",null,[b(d,{class:"mb-5",posts:e.posts,"border-bottom":"","hidden-blog-ids":i.filter.text||r.selectedTheme?[]:[(v=r.newest)==null?void 0:v.id]},null,8,["posts","hidden-blog-ids"]),e.pagination.total>e.pagination.per_page&&!e.loading?(h(),W(u,{key:0,class:"mt-4",data:e.pagination,onPaginationChangePage:r.changePage,limit:1,align:"center"},null,8,["data","onPaginationChangePage"])):D("",!0),b(s,{active:e.loadingMore,"onUpdate:active":t[2]||(t[2]=_=>e.loadingMore=_),color:i.primaryColor,"can-cancel":!1,"is-full-page":!1},null,8,["active","color"])])]),c("div",vwo,[b(f,{searchedText:i.filter.text,"onUpdate:searchedText":t[3]||(t[3]=_=>i.filter.text=_),onSearch:r.searchText,class:"mb-5"},null,8,["searchedText","onSearch"]),b(p,{class:"d-none d-lg-block",filter:i.filter,"most-read-posts":e.mostReadPosts,onSearch:r.searchTheme},null,8,["filter","most-read-posts","onSearch"])]),b(p,{class:"col-12 d-block d-lg-none order-3",filter:i.filter,"most-read-posts":e.mostReadPosts,onSearch:r.searchTheme},null,8,["filter","most-read-posts","onSearch"])])}const ywo=U(lwo,[["render",_wo],["__scopeId","data-v-7001dca0"]]);const bwo={components:{FullscreenGallery:xM},props:{image:String,alt:String,content:String},data(){return{index:null}},methods:{openBigGallery(){this.index=0},getKey(){return pr().vnode.key}},computed:{galleryImage(){return[{href:this.image,description:this.content}]}}},kwo={class:""},wwo={class:"col-12 text-center"},$wo=["src","alt"],Cwo={style:{visibility:"hidden"},width:"0",height:"0"},Swo=["innerHTML"];function Two(e,t,n,o,i,r){const s=y("FullscreenGallery");return h(),g("div",kwo,[c("div",{class:"row cursor-pointer",onClick:t[0]||(t[0]=(...a)=>r.openBigGallery&&r.openBigGallery(...a))},[c("div",wwo,[c("img",{src:n.image,alt:n.alt,class:"img-fluid rounded-3 w-100 mb-2"},null,8,$wo),(h(),g("svg",Cwo,t[2]||(t[2]=[c("defs",null,[c("filter",{id:"filter-radius"},[c("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"4",result:"blur"}),c("feColorMatrix",{in:"blur",mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -50",result:"mask"}),c("feComposite",{in:"SourceGraphic",in2:"mask",operator:"atop"})])],-1)])))])]),n.content?(h(),g("span",{key:0,class:"col-12 text-gray-800 fs-6 text-center",innerHTML:n.content},null,8,Swo)):D("",!0),r.galleryImage?(h(),W(s,{key:1,images:r.galleryImage,index:i.index,onClose:t[1]||(t[1]=a=>i.index=null),id:"blueimp-gallery-"+r.getKey()},null,8,["images","index","id"])):D("",!0)])}const Ewo=U(bwo,[["render",Two],["__scopeId","data-v-0b1b4d7c"]]);const Iwo={components:{FullscreenGallery:xM},props:{gallery:Array,columns:Number,orientation:{type:String,default:"landscape"}},data(){return{index:null}},methods:{openBigGallery(e){this.index=e},getKey(){return pr().vnode.key}},computed:{images(){return this.gallery.map(e=>({href:e.image,description:e.content}))},layoutColClass(){return this.columns===2?"col-md-6":(this.columns===3,"col-md-4")}}},Pwo={key:0,class:""},Awo={class:"row justify-content-start horizontal-scroll-mobile"},Dwo=["onClick"],xwo=["src","alt"],Owo=["innerHTML"];function Lwo(e,t,n,o,i,r){const s=y("FullscreenGallery");return n.gallery?(h(),g("div",Pwo,[c("div",Awo,[(h(!0),g(pe,null,Me(n.gallery,(a,l)=>(h(),g("div",{key:l,class:J([r.layoutColClass,"col-11 mb-2 cursor-pointer"]),onClick:d=>r.openBigGallery(l)},[c("img",{src:a.image,alt:a.alt,class:J(["rounded-3 w-100 mb-2 img-fluid",["orientation-"+n.orientation]])},null,10,xwo),a.content?(h(),g("span",{key:0,class:"col-12 text-gray-800 fs-6 text-center",innerHTML:a.content},null,8,Owo)):D("",!0)],10,Dwo))),128))]),b(s,{images:r.images,index:i.index,onClose:t[0]||(t[0]=a=>i.index=null),id:"blueimp-gallery-"+r.getKey()},null,8,["images","index","id"])])):D("",!0)}const Mwo=U(Iwo,[["render",Lwo],["__scopeId","data-v-2c7c9554"]]),s_={blogClassColorMapper:{"#ECF8F5":{backgroundClass:"bg-success-light",textClass:"text-success-dark"},"#FAE5E8":{backgroundClass:"bg-danger-light",textClass:"text-danger"},"#FAF1DB":{backgroundClass:"bg-blog-warning",textClass:"text-warning"},"#F1F4F8":{backgroundClass:"bg-gray-300",textClass:"text-gray-800"}},mostRead:["priprava-na-tridni-schuzky","tydenni-plan"],recommendedBgAndTextColor(e){return e=e.toUpperCase(),{"#ECF8F5":{background:"#ECF8F5",text:"#42BA96"},"#FAE5E8":{background:"#f5e2e4",text:"#DF4759"},"#FAF1DB":{background:"#FAF1DB",text:"#ffc107"},"#F1F4F8":{background:"#F1F4F8",text:"#384C74"},"#EBEFFD":{background:"#EBEFFD",text:"#384C74"}}[e]||!1}};const MM={props:{text:String,color:String},computed:{bgClass(){return s_.blogClassColorMapper[this.color].backgroundClass},textClass(){return s_.blogClassColorMapper[this.color].textClass},bgColor(){let e=s_.recommendedBgAndTextColor(this.color).background;return e||(e=this.color),e},textColor(){let e=s_.recommendedBgAndTextColor(this.color).text;return e||(e="#000000"),e}}},tW=()=>{UD(e=>({"380feaaa":e.bgColor,"0abe0fc2":e.textColor}))},nW=MM.setup;MM.setup=nW?(e,t)=>(tW(),nW(e,t)):tW;const Nwo={class:""},Rwo={class:"p-4 rounded-3 quote-background"},jwo={class:"custom-quote text-center w-100 row m-0 justify-content-center quote-text-color"},Fwo=["innerHTML"];function zwo(e,t,n,o,i,r){return h(),g("div",Nwo,[c("div",Rwo,[c("div",jwo,[t[0]||(t[0]=c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"22",viewBox:"0 0 33 22",fill:"none",class:"quote-start col-auto p-0"},[c("path",{fill:"currentColor",d:"M21.9286 21.6826L21.9286 19.9875C24.3231 18.7197 26.0374 17.3967 27.0714 16.0185C28.1054 14.6404 28.6224 13.1383 28.6225 11.5121C28.6225 10.5474 28.4864 9.88589 28.2143 9.52758C27.9694 9.1417 27.6701 8.94877 27.3163 8.94877C26.9626 8.94877 26.4864 9.04523 25.8878 9.23817C25.2891 9.45867 24.7449 9.56892 24.2551 9.56892C23.1395 9.56892 22.1735 9.1417 21.3571 8.28727C20.5136 7.46039 20.0918 6.44058 20.0918 5.22783C20.0918 3.90484 20.5952 2.76099 21.602 1.79631C22.6088 0.859187 23.8605 0.390626 25.3571 0.390626C27.1803 0.390626 28.8265 1.18994 30.2959 2.78856C31.7653 4.38718 32.5 6.3579 32.5 8.7007C32.5 11.4569 31.602 14.0203 29.8061 16.3906C27.983 18.7886 25.3571 20.5526 21.9286 21.6826ZM2.45918 21.5586L2.45918 19.9875C5.20748 18.3889 7.01701 16.9557 7.88776 15.6878C8.75851 14.4199 9.19388 12.9315 9.19388 11.2227C9.19388 10.4509 9.04422 9.87211 8.7449 9.48623C8.44558 9.10036 8.13266 8.90742 7.80612 8.90742C7.5068 8.90742 7.05783 9.01767 6.45919 9.23817C5.86055 9.45867 5.26191 9.56892 4.66327 9.56892C3.54762 9.56892 2.58164 9.15548 1.76531 8.32861C0.921771 7.5293 0.500003 6.53705 0.500003 5.35186C0.500003 4.0013 1.03061 2.8299 2.09184 1.83765C3.12585 0.845403 4.40476 0.349281 5.92857 0.349281C7.72449 0.349281 9.34354 1.13481 10.7857 2.70587C12.2279 4.27693 12.949 6.23386 12.949 8.57667C12.949 11.4707 12.0374 14.1029 10.2143 16.4733C8.39116 18.8712 5.80612 20.5663 2.45918 21.5586Z"})],-1)),c("h4",{innerHTML:n.text,class:"p-4 quote-span col-12 col-md-8 quote-text-color"},null,8,Fwo),t[1]||(t[1]=c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"22",viewBox:"0 0 33 22",fill:"none",class:"quote-end col-auto p-0"},[c("path",{fill:"currentColor",d:"M11.0714 0.682617V2.35122C8.67687 3.59928 6.96258 4.90161 5.92857 6.2582C4.89456 7.61479 4.37755 9.09347 4.37755 10.6942C4.37755 11.6439 4.51361 12.295 4.78571 12.6477C5.03061 13.0276 5.32993 13.2175 5.68367 13.2175C6.03742 13.2175 6.51361 13.1225 7.11224 12.9326C7.71088 12.7156 8.2551 12.607 8.7449 12.607C9.86054 12.607 10.8265 13.0276 11.6429 13.8687C12.4864 14.6826 12.9082 15.6865 12.9082 16.8803C12.9082 18.1826 12.4048 19.3086 11.398 20.2582C10.3912 21.1807 9.13946 21.6419 7.64286 21.6419C5.81973 21.6419 4.17347 20.8551 2.70408 19.2815C1.23469 17.7078 0.5 15.7679 0.5 13.4617C0.5 10.7485 1.39796 8.22525 3.19388 5.89192C5.01701 3.53145 7.64286 1.79502 11.0714 0.682617ZM30.5408 0.80471V2.35122C27.7925 3.92487 25.983 5.33572 25.1122 6.58378C24.2415 7.83184 23.8061 9.29696 23.8061 10.9791C23.8061 11.7388 23.9558 12.3086 24.2551 12.6884C24.5544 13.0683 24.8673 13.2582 25.1939 13.2582C25.4932 13.2582 25.9422 13.1497 26.5408 12.9326C27.1395 12.7156 27.7381 12.607 28.3367 12.607C29.4524 12.607 30.4184 13.014 31.2347 13.828C32.0782 14.6148 32.5 15.5915 32.5 16.7582C32.5 18.0877 31.9694 19.2408 30.9082 20.2175C29.8742 21.1942 28.5952 21.6826 27.0714 21.6826C25.2755 21.6826 23.6565 20.9094 22.2143 19.3629C20.7721 17.8163 20.051 15.89 20.051 13.5838C20.051 10.7349 20.9626 8.14386 22.7857 5.81052C24.6088 3.45006 27.1939 1.78145 30.5408 0.80471Z"})],-1))])])])}const Uwo=U(MM,[["render",zwo],["__scopeId","data-v-819306af"]]);const Bwo={props:{author:{type:Object}},computed:{showBottomLinks(){return!!this.author.id||!window._.isEmpty(this.author.socials)},ucitelniceAuthorLink(){return this.author.id?Pe("user.show",{id:this.author.id}):this.author.materials_link?this.author.materials_link:null}}},Hwo={class:"shadow p-4 mb-4"},Vwo={class:"row"},qwo={class:"col-12 col-lg-3 text-center mb-3 mb-lg-0"},Ywo=["src","alt"],Wwo={class:"col"},Gwo=["innerHTML"],Zwo={key:0,class:"mt-4 mb-4"},Kwo={class:"row"},Jwo={class:"col-12 col-lg-6"},Xwo=["href"],Qwo={key:0,class:"col-auto ms-auto mt-3 mt-lg-0"},e8o=["href"],t8o=["href"],n8o=["href"],o8o=["href"];function i8o(e,t,n,o,i,r){const s=y("app-icon");return h(),g("div",Hwo,[c("div",Vwo,[c("div",qwo,[c("img",{src:n.author.image_thumbnail,alt:n.author.name,class:"img-fluid rounded-circle author-img"},null,8,Ywo)]),c("div",Wwo,[c("div",null,[c("h4",null,m(n.author.name),1)]),c("div",{class:"text-gray-700 fw-regular blog-author-description",innerHTML:n.author.description},null,8,Gwo)])]),r.showBottomLinks?(h(),g("hr",Zwo)):D("",!0),c("div",Kwo,[c("div",Jwo,[r.ucitelniceAuthorLink?(h(),g("a",{key:0,href:r.ucitelniceAuthorLink,class:"btn btn-secondary",target:"_blank"},[z(m(e.$t("public.author_materials"))+" ",1),b(s,{icon:"materials",class:"ms-icon",width:20,height:20})],8,Xwo)):D("",!0)]),n.author.socials?(h(),g("div",Qwo,[n.author.socials.web?(h(),g("a",{key:0,href:n.author.socials.web,target:"_blank",class:"btn btn-tertiary"},[b(s,{icon:"web",width:20,height:20})],8,e8o)):D("",!0),n.author.socials.facebook?(h(),g("a",{key:1,href:n.author.socials.facebook,target:"_blank",class:"btn btn-tertiary"},[b(s,{icon:"facebook",width:20,height:20})],8,t8o)):D("",!0),n.author.socials.instagram?(h(),g("a",{key:2,href:n.author.socials.instagram,target:"_blank",class:"btn btn-tertiary"},[b(s,{icon:"instagram",width:20,height:20})],8,n8o)):D("",!0),n.author.socials.youtube?(h(),g("a",{key:3,href:n.author.socials.youtube,target:"_blank",class:"btn btn-tertiary"},[b(s,{icon:"youtube",width:20,height:20})],8,o8o)):D("",!0)])):D("",!0)])])}const r8o=U(Bwo,[["render",i8o],["__scopeId","data-v-bca87603"]]);const s8o={components:{},props:{items:{type:Array},type:{type:String,default:"bulleted_list"}},data(){return{listTypesTagMapper:{bulleted_list:"ul",numbered_list:"ol"},nestedTypes:["bulleted_list","numbered_list"]}},beforeCreate(){this.$options.components.BlogBlockMediator=Nde}},a8o=["innerHTML"];function l8o(e,t,n,o,i,r){return h(),g("div",{innerHTML:n.items[0].content,class:"custom-blog-list pt-4"},null,8,a8o)}const c8o=U(s8o,[["render",l8o]]),d8o={props:{block:{type:Object,default:null}},methods:{youtubeVideoId(e){return ks.youtubeVideoRegexId(e)}}},u8o=["src"],h8o=["src"];function f8o(e,t,n,o,i,r){return h(),g("div",null,[n.block.video?(h(),g(pe,{key:0},[r.youtubeVideoId(n.block.video)?(h(),g("iframe",{key:0,src:"https://www.youtube-nocookie.com/embed/"+r.youtubeVideoId(n.block.video),width:"100%",height:"372",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,u8o)):D("",!0)],64)):D("",!0),n.block.media?(h(),g("video",{key:1,src:n.block.media,controls:"",width:"100%",height:"372"},null,8,h8o)):D("",!0)])}const m8o=U(d8o,[["render",f8o]]),p8o={components:{AppIcon:Ue},props:{webinar:{type:Object},showReadButton:{type:Boolean,default:!1}},computed:{},methods:{},data(){return{hover:!1}}},g8o={class:"row"},v8o=["href"],_8o={class:"d-flex flex-column justify-content-between col-12 col-md-9"},y8o={class:"mb-1"},b8o={class:"small text-gray-700"},k8o=["href"],w8o=["innerHTML"],$8o={class:"d-flex flex-wrap gap-3 justify-content-between align-items-center mt-3"},C8o={class:"small text-gray-700"},S8o=["href"];function T8o(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",g8o,[c("a",{class:"col-12 col-md-3 text-center",href:e.ziggyRoute("webinars.show",n.webinar.slug),onMouseover:t[0]||(t[0]=a=>i.hover=!0),onMouseleave:t[1]||(t[1]=a=>i.hover=!1)},t[4]||(t[4]=[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"135",height:"133",viewBox:"0 0 135 133",fill:"none",class:"img-fluid"},[c("rect",{x:"1",y:"0.5",width:"133",height:"132",rx:"66",fill:"#EBEFFD"}),c("rect",{x:"1",y:"0.5",width:"133",height:"132",rx:"66",stroke:"#D6DFFB"}),c("path",{d:"M90.75 62.9728C93.0833 64.32 93.0833 67.6878 90.75 69.035L59.25 87.2215C56.9167 88.5687 54 86.8847 54 84.1904L54 47.8174C54 45.1231 56.9167 43.4391 59.25 44.7863L90.75 62.9728Z",fill:"white",stroke:"#D6DFFB"})],-1)]),40,v8o),c("div",_8o,[c("div",null,[c("div",y8o,[c("span",b8o,m(e.$t("webinar.title")+"|"+n.webinar.start_date),1)]),c("a",{class:J([{"text-decoration-underline":i.hover},"fw-bold link-dark text-gray-800 mb-1 large"]),href:e.ziggyRoute("webinars.show",n.webinar.slug),onMouseover:t[2]||(t[2]=a=>i.hover=!0),onMouseleave:t[3]||(t[3]=a=>i.hover=!1)},m(n.webinar.title),43,k8o),c("p",{class:"text-gray-700 medium mb-1",innerHTML:n.webinar.short_description},null,8,w8o)]),c("div",$8o,[c("div",C8o,m(n.webinar.author.name),1),c("a",{href:e.ziggyRoute("webinars.show",n.webinar.slug),target:"_blank",class:"d-flex flex-wrap align-items-center btn btn-primary btn-sm"},[b(s,{icon:"play",class:"me-1",height:"20",width:"20"}),z(" "+m(e.$t("blog.watch_webinar")),1)],8,S8o)])])])}const E8o=U(p8o,[["render",T8o]]);const I8o={components:{BlogBlockWebinar:E8o,BlogBlockVideo:m8o,BlogItem:Jy,BlogBlockList:c8o,BlogBlockAuthor:r8o,BlogBlockProducts:lce,BlogBlockQuote:Uwo,BlogBlockGallery:Mwo,BlogBlockImage:Ewo},props:{block:{type:Object,default(){return{type:"text"}}},blogAuthor:Object,defaultPaddings:{type:Boolean,default:!0},isNestedComponent:{type:Boolean,default:!1}},methods:{bgColor(e){let t=s_.recommendedBgAndTextColor(e).background;return t||(t=this.color),{backgroundColor:t}},buttonClass(e){if(e==="center")return"text-center";if(e==="right")return"text-end";if(e==="left")return"text-start"},ptPbClass(){return this.isList?"pt-0 pb-0":"pt-4 pb-4"},getKey(){return pr().vnode.key}}},P8o=["innerHTML"],A8o=["innerHTML"],D8o=["href","target"],x8o={key:10},O8o={key:11,class:"pt-5"};function L8o(e,t,n,o,i,r){const s=y("BlogBlockImage"),a=y("BlogBlockGallery"),l=y("BlogBlockQuote"),d=y("BlogBlockVideo"),u=y("BlogBlockProducts"),f=y("BlogBlockAuthor"),p=y("BlogItem"),v=y("BlogBlockWebinar"),_=y("BlogBlockList");return h(),g("div",{class:J({"fix-list-padding":!n.isNestedComponent})},[n.block.type==="text"?(h(),g("p",{key:0,class:J(["mb-0 text-block text-gray-900",{"pb-4 mt-4":n.defaultPaddings}]),innerHTML:n.block.content},null,10,P8o)):n.block.type==="h2"?(h(),g("h3",{key:1,class:J(["mb-0 text-gray-900",{"mb-3 mt-4":n.defaultPaddings}])},m(n.block.content),3)):n.block.type==="h3"?(h(),g("h4",{key:2,class:J(["mb-0 text-gray-800",{"mb-5 mt-4":n.defaultPaddings}])},m(n.block.content),3)):n.block.type==="image"?(h(),W(s,{image:n.block.media,alt:n.block.alt,content:n.block.content,key:r.getKey(),class:J({"pb-4 pt-4":n.defaultPaddings})},null,8,["image","alt","content","class"])):n.block.type==="gallery"?(h(),W(a,{gallery:n.block.gallery,columns:Number(n.block.layout),key:r.getKey(),class:J({"pb-4 pt-4":n.defaultPaddings}),orientation:n.block.color},null,8,["gallery","columns","class","orientation"])):n.block.type==="quote"?(h(),W(l,{key:5,text:n.block.content,color:n.block.color,class:J({"pb-3 pt-3":n.defaultPaddings})},null,8,["text","color","class"])):n.block.type==="call_out"?(h(),g("div",{key:6,class:J({"pt-4 pb-4":n.defaultPaddings})},[c("div",{class:"p-4 rounded-3 text-block",style:Bn(r.bgColor(n.block.color)),innerHTML:n.block.content},null,12,A8o)],2)):n.block.type==="button"?(h(),g("div",{key:7,class:J([r.buttonClass(n.block.layout),n.defaultPaddings?"pt-4 pb-4":""])},[c("a",{href:n.block.button_link,target:n.block.is_button_target_blank?"_blank":"_self",class:"btn btn-sm btn-secondary"},m(n.block.button_text),9,D8o)],2)):n.block.type==="video"?(h(),g("div",{key:8,class:J(["text-center",{"pt-4 pb-4":n.defaultPaddings}])},[b(d,{block:n.block},null,8,["block"])],2)):n.block.type==="products"?(h(),W(u,{products:n.block.products,key:r.getKey(),class:J({"pt-4":n.defaultPaddings})},null,8,["products","class"])):n.block.type==="divider"?(h(),g("hr",x8o)):n.block.type==="spacer"?(h(),g("div",O8o)):n.block.type==="author"?(h(),g(pe,{key:12},[n.block.content?(h(),W(f,{key:1,author:n.block.content,class:J({"mt-4":n.defaultPaddings})},null,8,["author","class"])):(h(),W(f,{key:0,author:n.blogAuthor,class:J({"mt-4":n.defaultPaddings})},null,8,["author","class"]))],64)):n.block.type==="blog_post"?(h(),g(pe,{key:13},[n.block.blog?(h(),W(p,{key:0,blog:n.block.blog,class:J(["p-4 shadow ms-0 me-0 blog-image-padding-fix rounded-3",{"mb-4 mt-4":n.defaultPaddings}]),"show-read-button":""},null,8,["blog","class"])):D("",!0)],64)):n.block.type==="webinar"?(h(),W(v,{key:14,webinar:n.block.webinar,class:J(["px-6 py-4 ms-0 me-0 blog-image-padding-fix shadow rounded-3",{"mb-4 mt-4":n.defaultPaddings}])},null,8,["webinar","class"])):n.block.type==="numbered_list"||n.block.type==="bulleted_list"?(h(),W(_,{key:15,type:n.block.type,items:n.block.list_items,class:J({"mb-5 mt-0":n.defaultPaddings})},null,8,["type","items","class"])):D("",!0)],2)}const Nde=U(I8o,[["render",L8o],["__scopeId","data-v-b9818c41"]]);const M8o={components:{BlogItem:Jy,BlogBlockMediator:Nde},props:{post:Object,posts:Array,isPreview:{type:Boolean,default:!1}},computed:{authorLink(){return this.post&&this.post.author?sh.getAuthorPublicUrl(this.post.author):null}}},N8o={class:"col mt-5"},R8o={class:"row justify-content-center"},j8o={class:"col-12 col-md-7 mt-5 mb-4"},F8o={class:"row text-center"},z8o={class:"blog-headline m-0"},U8o={class:"fw-medium mt-4 text-gray-800 mb-4"},B8o={class:"col-12"},H8o={class:"row justify-content-center"},V8o={class:"col-auto small"},q8o=["href"],Y8o={class:"row justify-content-center"},W8o={class:"col-12 col-md-8"},G8o={class:"d-flex align-items-center justify-content-between"},Z8o=["href"],K8o=["src","alt"],J8o={class:"p-0 m-0 text-gray-600"},X8o=["src","alt"],Q8o={class:"p-0 m-0 text-gray-600"},e4o={class:"p-0 m-0 text-gray-600"},t4o={class:"col-12 p-0 blog-image mt-5 rounded-3"},n4o={key:0,class:"content-box shadow p-0 mt-4 mb-4"},o4o=["src","alt"],i4o={class:"row justify-content-center"},r4o={class:"col-12 col-md-7 mt-4 pb-4"},s4o={class:"row justify-content-center"},a4o={class:"col-12 col-md-9"},l4o={class:"m-0 p-0"},c4o={class:"text-gray-600 p-0 m-0"},d4o={class:"row"};function u4o(e,t,n,o,i,r){const s=y("BlogBlockMediator"),a=y("BlogItem");return h(),g("div",N8o,[c("div",R8o,[c("div",j8o,[c("div",F8o,[c("h2",z8o,m(n.post.title),1),c("h4",U8o,m(n.post.excerpt?n.post.excerpt:e.$t("public.description_missing")),1)])]),c("div",B8o,[c("div",H8o,[c("div",V8o,[(h(!0),g(pe,null,Me(n.post.themes,(l,d)=>(h(),g("a",{href:e.ziggyRoute("blog.index",{theme:l.id}),key:d,class:"select-badge cursor-pointer d-inline-block px-3 py-1 me-1 mb-1"},m(l.name),9,q8o))),128))])])])]),c("div",Y8o,[c("div",W8o,[t[0]||(t[0]=c("hr",null,null,-1)),c("div",G8o,[n.post.author?(h(),g(pe,{key:0},[r.authorLink?(h(),g("a",{key:0,href:r.authorLink,class:"d-flex align-items-center",target:"_blank"},[c("img",{src:n.post.author.image_thumbnail,alt:n.post.author.name,class:"me-3 rounded-circle",height:"40"},null,8,K8o),c("p",J8o,m(n.post.author.name),1)],8,Z8o)):(h(),g(pe,{key:1},[c("img",{src:n.post.author.image_thumbnail,alt:n.post.author.name,class:"me-3 rounded-circle",height:"40"},null,8,X8o),c("p",Q8o,m(n.post.author.name),1)],64))],64)):D("",!0),c("p",e4o,m(n.post.published_at),1)])]),c("div",t4o,[n.post.cover_image?(h(),g("div",n4o,[c("img",{src:n.post.cover_image,alt:n.post.title},null,8,o4o)])):D("",!0)])]),c("div",i4o,[c("div",r4o,[(h(!0),g(pe,null,Me(n.post.blocks,(l,d)=>(h(),W(s,{block:l,key:d,"blog-author":n.post.author},null,8,["block","blog-author"]))),128))])]),c("div",s4o,[c("div",a4o,[c("h4",l4o,m(e.$t("blog.our_last_blogs")),1),c("p",c4o,m(e.$t("blog.our_last_blogs_text")),1),c("div",d4o,[(h(!0),g(pe,null,Me(n.posts.slice(0,3),l=>(h(),g("div",{class:"blog col-12 col-sm-6 col-md-6 col-lg-6 col-xl-4 mt-4",key:l.id},[b(a,{blog:l,size:"default","two-line-description":""},null,8,["blog"])]))),128))])])])])}const h4o=U(M8o,[["render",u4o],["__scopeId","data-v-3483a643"]]),f4o={components:{CartPriceRow:kde,AppIcon:Ue},computed:{...sn({items:e=>e.cart.items,isForSchool:e=>e.cart.is_for_school,instrument:e=>e.payment.instrument,swift:e=>e.payment.swift,priceBruttoAllDiscounts:e=>e.cart.price_brutto_all_discounts,price:e=>e.cart.price,authLoading:e=>e.auth.loading,email:e=>e.auth.email}),...Oe({discount:"cart/discount"}),canPlaceOrder(){return this.priceBruttoAllDiscounts>0&&this.instrument.length>0&&(this.instrument!=="bank_account"||this.swift!==null)&&this.instrument!=="card"},hasDiscount(){return this.discount.discount?this.discount.discount.amount>0:!1},itemsFiltered(){return Object.values(this.items).filter(e=>!e.is_purchased)}},methods:{placeOrder(){this.$store.dispatch("order/place").then(e=>{this.redirectAfterPlacedOrder(e)})},redirectAfterPlacedOrder(e){["card","payment_card","gpay","apple_pay"].includes(e.data.method)?window._gopay.checkout({gatewayUrl:e.data.gw_url,inline:!0},function(){window.location.href=e.data.return_url}):e.data.method==="bank_account"?window.location.href=e.data.gw_url:e.data.method==="proforma"&&(window.location.href=this.ziggyRoute("order.payment.show",{order:e.data.order.uuid}))}}},m4o={class:"cart shadow text-center p-2 p-md-4"},p4o={class:"mb-3 text-gray-800"},g4o={class:"h1 mb-0 me-2"},v4o={class:"text-gray-800"},_4o={key:0,class:"text-decoration-line-through text-gray-500 mb-3"},y4o={class:"bg-primary-5 rounded text-start p-3"},b4o={class:"fw-medium mb-1"},k4o={class:"text-gray-700 small mb-0"},w4o={class:"mt-4"},$4o=["href"],C4o={class:"d-flex text-start mt-3"},S4o=["innerHTML"],T4o={class:"medium text-start border-top-2 py-4 mt-3"},E4o={class:"col text-truncate"},I4o={class:"col-auto ms-2"},P4o={key:0,class:"cart-summary-item text-success d-flex justify-content-between align-items-center"},A4o={class:"text-truncate"},D4o={class:"ms-2"};function x4o(e,t,n,o,i,r){const s=y("AppIcon"),a=y("CartPriceRow"),l=an("tooltip");return h(),g("div",m4o,[c("h4",p4o,m(e.$t("cart.pay_total")),1),c("div",null,[c("span",g4o,m(e.priceBruttoAllDiscounts+" "+e.$t("currency.short")),1),c("span",v4o,m(e.$t("cart.with_vat")),1)]),e.price!=e.priceBruttoAllDiscounts?(h(),g("h3",_4o,m(e.price+" "+e.$t("currency.short")),1)):D("",!0),c("div",y4o,[c("p",b4o,m(e.email),1),c("p",k4o,m(e.$t("payment.guest.email")),1)]),c("div",w4o,[xe((h(),g("div",null,[c("button",{class:J(["btn btn-primary w-100 d-flex align-items-center justify-content-center",{disabled:!r.canPlaceOrder}]),onClick:t[0]||(t[0]=(...d)=>r.placeOrder&&r.placeOrder(...d))},[z(m(e.$t("order.complete"))+" ",1),b(s,{icon:"check-fill",height:"20",width:"20",class:"ms-icon"})],2)])),[[l,{content:r.canPlaceOrder?null:e.$t("payment.type.choose"),delay:{show:500,hide:100},triggers:["click","hover"]}]]),c("a",{href:e.ziggyRoute("cart.index"),class:"btn btn-tertiary btn-lg w-100 text-center d-lg-none mt-3"},m(e.$t("payment.back_to_cart")),9,$4o)]),c("div",C4o,[c("span",{class:"small text-gray-800",innerHTML:e.$t("vop.payment.product")},null,8,S4o)]),c("div",T4o,[(h(!0),g(pe,null,Me(r.itemsFiltered,d=>(h(),g("div",{class:"d-flex justify-content-between my-1 mt-none-first mb-none-last text-gray-900",key:d.product_id},[c("div",E4o,m(d.title),1),c("div",I4o,[b(a,{product:d,"margin-end":2},null,8,["product"])])]))),128)),r.hasDiscount?(h(),g("div",P4o,[c("div",A4o,m(e.$t("payment.order_overview.discount")+": "+e.discount.discount.code),1),c("div",D4o,m("- "+e.discount.discount_amount+" "+e.$t("currency.short")),1)])):D("",!0)])])}const O4o=U(f4o,[["render",x4o]]),L4o={components:{AppIcon:Ue,TransitionCollapseHeight:qo},data(){return{toggled:JSON.parse(localStorage.getItem("toggled"))||!1}},computed:{...sn({invoiceData:e=>e.auth.invoice_data})},methods:{toggleInvoiceAddress(){this.toggled=!this.toggled,localStorage.setItem("toggled",JSON.stringify(this.toggled))},updateInvoiceData(){window.appModal("user-invoice-data-update")}},mounted(){const e=JSON.parse(localStorage.getItem("toggled"));e!==null&&(this.toggled=e)}},M4o={class:"d-flex align-items-center"},N4o={class:"fw-medium"},R4o={key:0},j4o={class:"fw-medium text-gray-700 ms-5"},F4o={key:0,class:"d=flex flex-column gap-2"},z4o={class:"d-flex gap-1"},U4o={key:0},B4o={key:1},H4o={key:0},V4o={key:1},q4o={class:"d-flex gap-1"},Y4o={key:0},W4o={key:1},G4o={key:2},Z4o={class:"d-flex gap-3"},K4o={key:0,class:"mt-2"},J4o={key:1,class:"mt-2"};function X4o(e,t,n,o,i,r){const s=y("AppIcon"),a=y("TransitionCollapseHeight");return h(),g("div",null,[c("div",{class:"d-flex align-items-center justify-content-between cursor-pointer py-3",onClick:t[0]||(t[0]=(...l)=>r.toggleInvoiceAddress&&r.toggleInvoiceAddress(...l))},[c("div",M4o,[b(s,{icon:"document",height:"24",width:"24",class:"me-2"}),c("span",N4o,m(e.$t("user.invoice_data.my_invoice_info")),1)]),b(s,{icon:"toggled ? 'chevron-up' : 'chevron-down'",height:"24",width:"24",class:"ms-auto"})]),b(a,null,{default:F(()=>[i.toggled?(h(),g("div",R4o,[c("div",j4o,[e.invoiceData?(h(),g("div",F4o,[c("div",z4o,[e.invoiceData.first_name?(h(),g("span",U4o,m(e.invoiceData.first_name),1)):D("",!0),e.invoiceData.last_name?(h(),g("span",B4o,m(e.invoiceData.last_name),1)):D("",!0)]),e.invoiceData.invoice_name?(h(),g("div",H4o,m(e.invoiceData.invoice_name),1)):D("",!0),e.invoiceData.invoice_company?(h(),g("div",V4o,m(e.invoiceData.invoice_company),1)):D("",!0),c("div",q4o,[e.invoiceData.invoice_address?(h(),g("span",Y4o,m(e.invoiceData.invoice_address+","),1)):D("",!0),e.invoiceData.invoice_psc?(h(),g("span",W4o,m(e.invoiceData.invoice_psc),1)):D("",!0),e.invoiceData.invoice_city?(h(),g("span",G4o,m(e.invoiceData.invoice_city),1)):D("",!0)]),c("div",Z4o,[e.invoiceData.invoice_ico?(h(),g("span",K4o,m(e.$t("user.editor.invoice_ico.label")+":")+" "+m(e.invoiceData.invoice_ico),1)):D("",!0),e.invoiceData.invoice_dic?(h(),g("span",J4o,m("DIÄŚ: "+e.invoiceData.invoice_dic),1)):D("",!0)])])):D("",!0),c("button",{class:"btn btn-tertiary btn-sm btn-center ms-neg-2 mt-3",onClick:t[1]||(t[1]=(...l)=>r.updateInvoiceData&&r.updateInvoiceData(...l))},[z(m(e.$t("public.update"))+" ",1),b(s,{icon:"edit",height:"20",width:"20",class:"ms-icon"})])])])):D("",!0)]),_:1})])}const Q4o=U(L4o,[["render",X4o]]),e5o={components:{AppIcon:Ue,Loading:Rt,PaymentSummary:O4o,PaymentOptions:V6,PaymentInvoiceAddress:Q4o},data(){return{primaryColor:window.primaryColor}},computed:{...sn({items:e=>e.cart.items,cartLoading:e=>e.cart.loading,isForSchool:e=>e.cart.is_for_school,priceBruttoAllDiscounts:e=>e.cart.price_brutto_all_discounts,orderLoading:e=>e.order.loading,instrument:e=>e.payment.instrument,swift:e=>e.payment.swift,lastPaymentInstrument:e=>e.auth.last_payment_instrument}),...Oe({auth:"auth/auth"}),loading(){return this.cartLoading||this.orderLoading},showLastPayment(){return this.lastPaymentInstrument&&!this.isForSchool}},mounted(){Promise.all([this.$store.getters["auth/request"],this.$store.dispatch("cart/load",!0)]).then(()=>{(this.items.length===0||this.priceBruttoAllDiscounts<=0)&&(window.location.href=this.ziggyRoute("cart.index")),this.isForSchool&&this.$store.dispatch("payment/select",{instrument:"proforma",swift:null}),ai.checkout(this.items,this.auth.check)})}},t5o={class:"row"},n5o={class:"col-12 col-lg-8"},o5o={class:"d-flex mb-5"},i5o=["href"],r5o={key:0},s5o={class:"mb-3"},a5o={class:"mb-5"},l5o={class:"col-12 col-lg-4 mt-3 mt-lg-0"};function c5o(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("PaymentOptions"),d=y("PaymentInvoiceAddress"),u=y("PaymentSummary");return h(),g("div",{class:J(["my-6 vl-parent",{"school-themed-component":e.isForSchool}])},[b(s,{active:r.loading,"onUpdate:active":t[0]||(t[0]=f=>r.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",t5o,[c("div",n5o,[c("div",o5o,[c("a",{href:e.ziggyRoute("cart.index"),class:"btn btn-secondary btn-lg btn-sm d-flex align-items-center"},[b(a,{icon:"arrow-left",height:"20",width:"20",class:"me-icon"}),z(" "+m(e.$t("payment.back_to_cart")),1)],8,i5o)]),e.cartLoading?D("",!0):(h(),g("div",r5o,[c("h3",s5o,m(r.showLastPayment?e.$t("payment.type.how_last"):e.$t("payment.type.how")),1),c("p",a5o,m(e.$t("payment.type.text")),1),b(l,{"is-for-school":e.isForSchool,"credit-hidden":!e.auth.check},null,8,["is-for-school","credit-hidden"]),t[1]||(t[1]=c("hr",{class:"mb-2"},null,-1)),b(d)]))]),c("div",l5o,[b(u,{class:"sticky-container"})])])],2)}const d5o=U(e5o,[["render",c5o]]),u5o={components:{AppIcon:Ue,CartDiscountItem:wde},props:{order:{type:Object,default(){return{items:[],price:0}}}},computed:{...sn({discount:e=>e.discount.detail}),discountWithAmount(){return{...this.discount,discount_amount:this.order.price_author_discount-this.order.price}},hasSignature(){return this.$route.query.signature!==void 0},paid(){return this.order.items.every(e=>e.download_url)}},data(){return{signedUrlsInvalid:!1}},methods:{refresh(){window.location.reload()}},mounted(){this.hasSignature&&(this.signedUrlsInvalid=!1,setInterval(()=>{this.signedUrlsInvalid=!0},57e4))}},h5o={class:"text-start rounded bg-white border border-primary-20 p-4"},f5o={class:"mb-2"},m5o={class:"border-bottom-2 border-primary-20 pb-2"},p5o={class:"d-flex align-items-baseline"},g5o={class:"mb-0 me-2"},v5o={class:"text-gray-800"},_5o={key:0,class:"text-decoration-line-through text-gray-500 mb-0"},y5o=["href"],b5o=["src","alt"],k5o={class:"text-truncate"},w5o={class:"mb-0 text-truncate"},$5o={class:"text-gray-700 mb-0 text-truncate"},C5o={key:0,class:"mb-0 text-nowrap d-md-none"},S5o={key:0,class:"text-danger fw-bold ms-2"},T5o={class:"d-flex align-items-center"},E5o={key:0,class:"mb-0 text-nowrap d-none d-md-block"},I5o={key:0,class:"text-danger fw-bold ms-2"},P5o=["href"],A5o={class:"d-none d-md-inline"};function D5o(e,t,n,o,i,r){const s=y("AppIcon"),a=y("CartDiscountItem"),l=an("tooltip");return h(),g("div",h5o,[r.paid?D("",!0):(h(),g(pe,{key:0},[c("h4",f5o,m(e.$t("payment.order_overview.title")),1),c("div",m5o,[c("div",p5o,[c("h1",g5o,m(n.order.price+" "+e.$t("currency.short")),1),c("span",v5o,m(e.$t("cart.with_vat")),1)]),n.order.price!=n.order.price_base?(h(),g("h3",_5o,m(n.order.price_base+" "+e.$t("currency.short")),1)):D("",!0)])],64)),(h(!0),g(pe,null,Me(n.order.items,d=>(h(),g("div",{key:d.id,class:"d-flex align-items-center justify-content-between border-bottom-2 border-primary-20 border-bottom-last-none py-3 pt-first-none pb-last-none"},[c("a",{href:e.ziggyRoute("product.show",d.product_id),class:"d-flex align-items-start text-truncate text-decoration-underline-hover"},[c("img",{src:d.cover_img_thumbnail,alt:e.$t("public.image.title"),class:"rounded object-fit-cover w-4rem me-3"},null,8,b5o),c("div",k5o,[c("h5",w5o,m(d.title),1),c("p",$5o,m(n.order.type==="school"?e.$t("cart.cart_type_capitalized.school"):e.$t("cart.cart_type_capitalized.personal")),1),r.paid?D("",!0):(h(),g("h5",C5o,[c("span",{class:J({"text-decoration-line-through":d.price_base!=d.price_author_discount})},m(d.price_base+" "+e.$t("currency.short")),3),d.price_base!=d.price_author_discount?(h(),g("span",S5o,m(d.price_author_discount+" "+e.$t("currency.short")),1)):D("",!0)]))])],8,y5o),c("div",T5o,[r.paid?D("",!0):(h(),g("h5",E5o,[c("span",{class:J({"text-decoration-line-through":d.price_base!=d.price_author_discount})},m(d.price_base+" "+e.$t("currency.short")),3),d.price_base!=d.price_author_discount?(h(),g("span",I5o,m(d.price_author_discount+" "+e.$t("currency.short")),1)):D("",!0)])),i.signedUrlsInvalid?xe((h(),g("button",{key:1,class:"btn btn-primary btn-sm btn-center ms-2",onClick:t[0]||(t[0]=(...u)=>r.refresh&&r.refresh(...u))},[b(s,{icon:"refresh",height:"20",width:"20"})])),[[l,{content:"Odkazy na stáhnutĂ vypršeli, je potĹ™eba obnovit stránku.",delay:{show:500,hide:100},triggers:["hover","click"]}]]):d.download_url?(h(),g("a",{key:2,class:"btn btn-primary btn-md-sm btn-center ms-2",href:d.download_url,target:"_blank"},[c("span",A5o,m(e.$t("public.download")),1),b(s,{icon:"download",height:"20",width:"20",class:"ms-md-icon"})],8,P5o)):D("",!0)])]))),128)),r.discountWithAmount.discount_amount?(h(),W(a,{key:1,discount:r.discountWithAmount,"hide-close":""},null,8,["discount"])):D("",!0)])}const lk=U(u5o,[["render",D5o]]),x5o={components:{AppIcon:Ue,InputPassword:ok,Loading:Rt,CheckboxInput:ba},props:{email:{type:String,required:!0}},data(){return{password:"",gdpr:!1,passwordMinLength:ch.validation.password.min_length,errorMessage:{password:null},loading:!1,primaryColor:window.primaryColor}},validations:{password:{required:Yt,minLength:Ua(ch.validation.password.min_length)},gdpr:{required:Yt,sameAs:$6(!0)}},computed:{passwordInvalidMessage(){return this.v$.password.$error&&this.v$.password.required.$invalid?this.$t("validation.custom.password.required"):this.v$.password.$error&&this.v$.password.minLength.$invalid?this.$t("validation.min.string",{attribute:this.$t("register.form.password.label"),min:this.passwordMinLength}):this.errorMessage.password?this.errorMessage.password:null}},methods:{async register(){this.v$.$touch(),!this.v$.$invalid&&(this.loading=!0,this.loading&&window.grecaptcha.execute(mr.recaptcha_site_key,{action:"register"}).then(e=>{this.resetError();const t={email:this.email,password:this.password,gdpr:this.gdpr,"g-recaptcha-response":e};ai.register("guestOrder"),Qc.register(t).then(n=>{this.loading=!1,window.flash(n.data.message,"success"),window.location.reload()}).catch(n=>{var o,i,r,s;this.loading=!1,(i=(o=n==null?void 0:n.response)==null?void 0:o.data)!=null&&i.errors?Object.entries(n.response.data.errors).forEach(([l,d])=>{d.forEach(u=>{window.flash(u,"error")}),l==="email"?this.errorMessage.email=d[0]:l==="password"&&(this.errorMessage.password=d[0])}):(s=(r=n==null?void 0:n.response)==null?void 0:r.data)!=null&&s.message&&window.flash(n.response.data.message,"error")})}))},onBlur(e){e.$touch()},resetError(){this.errorMessage={password:null}}},watch:{password(){this.v$.password.$touch(),this.errorMessage.password=null},gdpr(){this.v$.gdpr.$touch(),this.errorMessage.gdpr=null}},mounted(){let e=document.createElement("script");e.setAttribute("src","https://www.google.com/recaptcha/api.js?render="+mr.recaptcha_site_key),document.head.appendChild(e)},setup(){return{v$:Pn()}}},O5o={class:"d-flex flex-wrap bg-primary-5 rounded vl-parent"},L5o={class:"col-12 col-sm-6 p-4 border-end border-2"},M5o={class:"fw-bold mb-3"},N5o={class:"text-start"},R5o={class:"d-flex align-items-start"},j5o={class:"me-2 mt-neg-0dot5"},F5o={class:"medium mb-0"},z5o={class:"d-flex align-items-start"},U5o={class:"me-2 mt-neg-0dot5"},B5o={class:"medium mb-0"},H5o={class:"d-flex align-items-start"},V5o={class:"me-2 mt-neg-0dot5"},q5o={class:"medium mb-0"},Y5o={class:"col-12 col-sm-6 d-flex flex-column justify-content-between p-4 text-start"},W5o={class:"medium"},G5o={class:"fw-bold"},Z5o={class:"form-group password-group mb-3"};function K5o(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("InputPassword"),d=y("CheckboxInput");return h(),g("div",O5o,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=u=>i.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("div",L5o,[c("h4",M5o,m(e.$t("user.guest.register.teaser.headline")),1),c("div",N5o,[c("div",R5o,[c("div",j5o,[b(a,{icon:"check-fill",height:20,width:20,class:"text-primary-20"})]),c("p",F5o,m(e.$t("user.guest.register.teaser.text_0")),1)]),c("div",z5o,[c("div",U5o,[b(a,{icon:"check-fill",height:20,width:20,class:"text-primary-20"})]),c("p",B5o,m(e.$t("user.guest.register.teaser.text_1")),1)]),c("div",H5o,[c("div",V5o,[b(a,{icon:"check-fill",height:20,width:20,class:"text-primary-20"})]),c("p",q5o,m(e.$t("user.guest.register.teaser.text_2")),1)])])]),c("div",Y5o,[c("p",W5o,[z(m(e.$t("user.guest.register.create_account"))+" ",1),c("span",G5o,m(n.email),1)]),c("div",Z5o,[b(l,{value:i.password,"onUpdate:value":t[1]||(t[1]=u=>i.password=u),placeholder:e.$t("register.form.password.placeholder_long"),invalid:o.v$.password.$error||i.errorMessage.password,"invalid-message":r.passwordInvalidMessage,autocomplete:"new-password"},null,8,["value","placeholder","invalid","invalid-message"])]),b(d,{id:"gdpr",value:i.gdpr,"onUpdate:value":t[2]||(t[2]=u=>i.gdpr=u),label:e.$t("vop.user.register"),"is-invalid":o.v$.gdpr.$error&&o.v$.gdpr.sameAs.$invalid,"invalid-message":e.$t("validation.custom.gdpr.have_to_accept"),class:"small mb-3"},null,8,["value","label","is-invalid","invalid-message"]),c("button",{type:"submit",class:"btn btn-primary btn-sm",onClick:t[3]||(t[3]=(...u)=>r.register&&r.register(...u))},m(e.$t("register.form.register")),1)])])}const NM=U(x5o,[["render",K5o]]),J5o={components:{PaymentOptions:V6,Loading:Rt,TransitionCollapseHeight:qo},props:{title:{type:String,default:"Chcete nakonec zaplatit online?"},order:{type:Object,default:()=>({price:0})},yellow:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor,optionsRolled:!1}},computed:{...sn({loading:e=>e.payment.loading,instrument:e=>e.payment.instrument,swift:e=>e.payment.swift}),canPayGateway(){return!this.loading&&this.instrument.length>0&&(this.instrument!=="bank_account"||this.swift!==null)&&this.instrument!=="card"}},methods:{rollOptions(){this.optionsRolled=!0},payGateway(){this.$store.dispatch("payment/gateway",{order:this.order}).then(e=>{this.redirect(e)}).catch(e=>{window.flash(e.response.data.message,"error"),setTimeout(()=>{window.location.href=this.ziggyRoute("order.payment.confirmed",{order:this.order})},1e3)})},redirect(e){["card","payment_card","gpay","apple_pay"].includes(e.data.method)?window._gopay.checkout({gatewayUrl:e.data.gw_url,inline:!0},function(){window.location.href=e.data.return_url}):e.data.method==="bank_account"&&(window.location.href=e.data.gw_url)}},mounted(){this.yellow&&(this.optionsRolled=!0)}},X5o={class:"mb-2"},Q5o={class:"text-gray-800 mb-3"},e$o={class:"d-flex mt-3"},t$o=["disabled"];function n$o(e,t,n,o,i,r){const s=y("Loading"),a=y("PaymentOptions"),l=y("TransitionCollapseHeight");return h(),g("div",{class:J(["rounded border p-4 vl-parent",n.yellow?"bg-island-spice border-bright-sun":"bg-white border-primary-20"])},[b(s,{active:e.loading,"onUpdate:active":t[0]||(t[0]=d=>e.loading=d),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),c("h4",X5o,m(n.title),1),c("p",Q5o,m(e.$t("payment.type.gateway.repeat.title")),1),b(l,null,{default:F(()=>[i.optionsRolled?(h(),W(a,{key:0,"proforma-hidden":"","credit-hidden":"",gap:2,"last-payment-deactivated":""})):D("",!0)]),_:1}),c("div",e$o,[c("button",{class:"btn btn-primary btn-sm",onClick:t[1]||(t[1]=d=>i.optionsRolled?r.payGateway():r.rollOptions()),disabled:!r.canPayGateway&&i.optionsRolled},m(e.$t("order.pay")),9,t$o)])],2)}const Rde=U(J5o,[["render",n$o]]),o$o={components:{PaymentQrCode:DM},props:{order:{type:Object,default(){return null}},qr:{type:String,default(){return null}}}},i$o={class:"bg-white border border-primary-20 rounded p-4"},r$o={class:"mb-2"},s$o={class:"mb-3 text-gray-800"};function a$o(e,t,n,o,i,r){const s=y("PaymentQrCode");return h(),g("div",i$o,[c("h4",r$o,m(e.$t("payment.success.proforma.instructions.title")),1),c("p",s$o,m(e.$t("payment.success.proforma.instructions.text")),1),b(s,{class:"d-inline-flex",qr:n.order.qr,amount:n.order.price,account_number:e.$t("public.account_no"),variable_symbol:n.order.number},null,8,["qr","amount","account_number","variable_symbol"])])}const l$o=U(o$o,[["render",a$o]]),RM=""+new URL("zaplaceno-a93a7887.svg",import.meta.url).href,c$o={props:{order:{type:Object,default(){return null}}},data(){return{paidIcon:RM}}},d$o={class:"text-center"},u$o=["src","alt"],h$o={class:"mb-0 text-gray-800"},f$o={class:"fw-bold"};function m$o(e,t,n,o,i,r){return h(),g("div",d$o,[c("img",{src:i.paidIcon,alt:e.$t("public.paid"),width:"150",class:"mb-3"},null,8,u$o),c("h4",h$o,[z(m(e.$t("payment.success.proforma.title")+" "+e.$t("payment.success.proforma.text")+" ")+" ",1),c("span",f$o,m(n.order.user_email+"."),1)])])}const p$o=U(c$o,[["render",m$o]]),g$o={components:{OrderProformaHeader:p$o,PaymentProformaBox:l$o,PaymentGatewayRepeat:Rde,OrderPaymentSummary:lk,GuestRegister:NM,ContactCards:_h},props:{order:{type:Object,default(){return{user_role:"",user_email:""}}}},mounted(){ai.purchase({...this.order,paid:!1}),this.$store.commit("payment/setInstrument",""),this.$store.commit("payment/setSwift",null)}},v$o={class:"col-12 col-lg-7 my-6 d-flex flex-column gap-6"},_$o={class:"d-flex flex-column gap-5"},y$o={class:"d-flex flex-column gap-4"};function b$o(e,t,n,o,i,r){const s=y("OrderProformaHeader"),a=y("PaymentProformaBox"),l=y("PaymentGatewayRepeat"),d=y("OrderPaymentSummary"),u=y("GuestRegister"),f=y("ContactCards");return h(),g("div",v$o,[c("div",_$o,[b(s,{order:n.order},null,8,["order"]),c("div",y$o,[b(a,{order:n.order},null,8,["order"]),b(l,{order:n.order},null,8,["order"]),b(d,{order:n.order},null,8,["order"])])]),n.order.user_role=="guest"?(h(),W(u,{key:0,email:n.order.user_email,"options-rolled":!1},null,8,["email"])):D("",!0),b(f,{"help-card":"","community-card":"","no-icons":"","content-start":""})])}const k$o=U(g$o,[["render",b$o]]),w$o={components:{PaymentQrCode:DM},props:{order:{type:Object,default(){return{price:0,number:""}}},qr:{type:String,default:""}}},$$o={class:"bg-white border border-primary-20 rounded p-5"},C$o={class:"text-gray-800"};function S$o(e,t,n,o,i,r){const s=y("PaymentQrCode");return h(),g("div",$$o,[c("h4",null,m(e.$t("payment.type.proforma.repeat.title")),1),c("p",C$o,m(e.$t("payment.type.proforma.repeat.text")),1),b(s,{class:"d-inline-flex",qr:n.order.qr,account_number:e.$t("public.account_no"),variable_symbol:n.order.number,amount:n.order.price},null,8,["qr","account_number","variable_symbol","amount"])])}const T$o=U(w$o,[["render",S$o]]),E$o=""+new URL("nezaplaceno-c04a145f.svg",import.meta.url).href,I$o={props:{order:{type:Object,default(){return null}}},data(){return{unpaidIcon:E$o}}},P$o={class:"text-center"},A$o=["src","alt"],D$o={class:"mb-0"},x$o={class:"fw-bold"};function O$o(e,t,n,o,i,r){return h(),g("div",P$o,[c("img",{src:i.unpaidIcon,alt:e.$t("public.paid"),width:"200",class:"mb-3"},null,8,A$o),c("h4",D$o,[z(m(e.$t("payment.to_pay")+" "+e.$t("payment.summary_in_email"))+" ",1),c("span",x$o,m(n.order.user_email),1),t[0]||(t[0]=z(m(".")))])])}const L$o=U(I$o,[["render",O$o]]),M$o={components:{PaymentRepeatHeader:L$o,PaymentGatewayRepeat:Rde,PaymentProformaRepeat:T$o,OrderPaymentSummary:lk,ContactCards:_h},props:{order:{type:Object,default(){return{items:[],price:0}}}},mounted(){this.order.payment?(this.$store.commit("auth/setLastPaymentInstrument",this.order.payment.instrument),this.$store.commit("auth/setLastPaymentSwift",this.order.payment.swift)):(this.$store.commit("payment/setInstrument",""),this.$store.commit("payment/setSwift",null))}},N$o={class:"d-flex flex-column gap-6 my-6"},R$o={class:"row justify-content-center"},j$o={class:"col-12 col-lg-7 text-center"},F$o={class:"row justify-content-center gap-4"},z$o={class:"col-12 col-lg-10"},U$o={class:"row"},B$o={class:"col-12 col-lg-6"},H$o={class:"col-12 col-lg-6 mt-3 mt-lg-0"},V$o={class:"col-12 col-lg-7"},q$o={class:"row justify-content-center"},Y$o={class:"col-12 col-lg-7 text-center"};function W$o(e,t,n,o,i,r){const s=y("PaymentRepeatHeader"),a=y("PaymentGatewayRepeat"),l=y("PaymentProformaRepeat"),d=y("OrderPaymentSummary"),u=y("ContactCards");return h(),g("div",N$o,[c("div",R$o,[c("div",j$o,[b(s,{order:n.order},null,8,["order"])])]),c("div",F$o,[c("div",z$o,[c("div",U$o,[c("div",B$o,[b(a,{order:n.order,title:e.$t("payment.type.online")+" "+n.order.price+" KÄŤ",yellow:""},null,8,["order","title"])]),c("div",H$o,[b(l,{order:n.order},null,8,["order"])])])]),c("div",V$o,[b(d,{order:n.order},null,8,["order"])])]),c("div",q$o,[c("div",Y$o,[b(u,{"help-card":"","community-card":"","no-icons":"","content-start":""})])])])}const G$o=U(M$o,[["render",W$o]]),Z$o={components:{OrderPaymentProformaPage:k$o,OrderPaymentGatewayPage:G$o},props:{order:{type:Object,default(){return{items:[],price:0}}}}};function K$o(e,t,n,o,i,r){const s=y("OrderPaymentProformaPage"),a=y("OrderPaymentGatewayPage");return n.order.payment.type=="proforma"?(h(),W(s,{key:0,order:n.order},null,8,["order"])):(h(),W(a,{key:1,order:n.order},null,8,["order"]))}const J$o=U(Z$o,[["render",K$o]]),X$o={components:{OrderPaymentSummary:lk},props:{order:{type:Object,default(){return null}}},data(){return{paidIcon:RM}},computed:{downloadsRoute(){return this.order.type==="school"?this.ziggyRoute("downloads.school"):this.ziggyRoute("downloads")}}},Q$o={class:"text-center mb-5"},e9o=["src","alt"],t9o={class:"text-gray-800 mb-0"},n9o=["href"];function o9o(e,t,n,o,i,r){const s=y("OrderPaymentSummary");return h(),g("div",null,[c("div",Q$o,[c("img",{class:"mb-3",src:i.paidIcon,alt:e.$t("public.paid"),width:"150"},null,8,e9o),c("h4",t9o,[z(m(e.$t("payment.success.paid.0"))+" ",1),c("a",{href:r.downloadsRoute},m(e.$t("payment.success.paid.1")),9,n9o),t[0]||(t[0]=z(m(".")))])]),b(s,{order:n.order},null,8,["order"])])}const i9o=U(X$o,[["render",o9o]]),r9o={components:{GuestRegister:NM,OrderPaymentSummary:lk},props:{order:{type:Object,default(){return null}}},data(){return{paidIcon:RM}}},s9o={class:"text-center mb-5"},a9o=["src","alt"],l9o={class:"text-gray-800 mb-0"},c9o={class:"fw-bold"};function d9o(e,t,n,o,i,r){const s=y("OrderPaymentSummary"),a=y("GuestRegister");return h(),g("div",null,[c("div",s9o,[c("img",{class:"mb-3",src:i.paidIcon,alt:e.$t("public.paid"),width:"150"},null,8,a9o),c("h4",l9o,[z(m(e.$t("payment.success.paid_guest"))+" ",1),c("span",c9o,m(n.order.user_email),1),t[0]||(t[0]=z(m(".")))])]),b(s,{class:"mb-6",order:n.order},null,8,["order"]),b(a,{email:n.order.user_email},null,8,["email"])])}const u9o=U(r9o,[["render",d9o]]),h9o={components:{ContactCards:_h,OrderPaymentConfirmedUser:i9o,OrderPaymentConfirmedGuest:u9o},props:{order:{type:Object,default(){return null}}},computed:{isGuest(){return this.order.user_role==="guest"}},mounted(){ai.purchase({...this.order,paid:!0})}},f9o={class:"col-12 col-lg-7 d-flex flex-column gap-6 my-6 vl-parent"};function m9o(e,t,n,o,i,r){const s=y("OrderPaymentConfirmedGuest"),a=y("OrderPaymentConfirmedUser"),l=y("ContactCards");return h(),g("div",f9o,[r.isGuest?(h(),W(s,{key:0,order:n.order},null,8,["order"])):(h(),W(a,{key:1,order:n.order},null,8,["order"])),b(l,{"help-card":"","community-card":"","no-icons":"","content-start":""})])}const p9o=U(h9o,[["render",m9o]]),g9o={props:{order:{type:Object,default(){return null}}},computed:{isGuest(){return this.order.user_role==="guest"}}},v9o={class:"col-12 col-lg-7 d-flex flex-column gap-6 my-6 vl-parent text-center"},_9o={key:0},y9o={class:"fw-bold"},b9o={key:1},k9o=["href"];function w9o(e,t,n,o,i,r){return h(),g("div",v9o,[r.isGuest?(h(),g("div",_9o,[c("h4",null,[z(m(e.$t("messages.wait_for_credit")+" e-mailu ")+" ",1),c("span",y9o,m(n.order.user_email),1),t[0]||(t[0]=z(m(".")))])])):(h(),g("div",b9o,[c("h4",null,[z(m(e.$t("messages.wait_for_credit"))+" ",1),c("a",{href:e.ziggyRoute("downloads")},m(e.$t("download.headline")),9,k9o),t[1]||(t[1]=z(m(".")))])]))])}const $9o=U(g9o,[["render",w9o]]);const C9o={components:{Loading:TM},data(){return{token:document.head.querySelector('meta[name="csrf-token"]').content,today:new Date,date:{start:new Date(mt().startOf("month").subtract(1,"month")),end:new Date(mt().startOf("month").subtract(1,"day"))},type:"",loading:!1,primaryColor:window.primaryColor}},computed:{endDateInput(){return mt(this.date.end).add(1,"day").format("YYYY-MM-DD")},startDateInput(){return mt(this.date.start).format("YYYY-MM-DD")}},methods:{setTypeAndSubmit(e){this.type=e,this.submitForm()},submitForm(){this.loading=!0;const e=this.$el.querySelector("form"),t=new FormData(e);t.append("from",this.startDateInput),t.append("to",this.endDateInput),t.append("type",this.type),De.post(e.action,t,{headers:{"X-CSRF-TOKEN":this.token,"Content-Type":"multipart/form-data"}}).then(n=>{n.data&&n.data.message?window.flash(n.data.message,"success"):window.flash("Export completed successfully.","success")}).catch(n=>{console.error(n),window.flash("An error occurred while exporting.","error")}).finally(()=>{this.loading=!1})}}},S9o={class:"vl-parent col text-center my-6"},T9o={class:"mb-4"},E9o={class:"row d-inline-block"},I9o={class:"row pt-1dot875rem"},P9o=["value"],A9o=["value"],D9o=["value"],x9o={class:"d-flex flex-column gap-2 mb-3"},O9o=["disabled"],L9o=["disabled"],M9o=["disabled"],N9o={class:"d-flex flex-column gap-2 mb-3"},R9o=["disabled"],j9o=["disabled"],F9o={class:"d-flex flex-column gap-2 mb-3"},z9o=["disabled"];function U9o(e,t,n,o,i,r){const s=y("date-picker"),a=y("Loading");return h(),g("div",S9o,[c("h2",T9o,m(e.$t("pohoda.export")),1),c("div",E9o,[b(s,{mode:"range",modelValue:i.date,"onUpdate:modelValue":t[0]||(t[0]=l=>i.date=l),modelModifiers:{range:!0},"is-inline":"","is-extended":"","max-date":i.today,ref:"calendar"},null,8,["modelValue","max-date"])]),c("div",I9o,[c("form",{onSubmit:t[8]||(t[8]=Gt((...l)=>r.submitForm&&r.submitForm(...l),["prevent"]))},[c("input",{type:"hidden",name:"_token",value:i.token},null,8,P9o),c("input",{type:"hidden",name:"from",value:r.startDateInput},null,8,A9o),c("input",{type:"hidden",name:"to",value:r.endDateInput},null,8,D9o),xe(c("input",{type:"hidden",name:"type","onUpdate:modelValue":t[1]||(t[1]=l=>i.type=l)},null,512),[[wt,i.type]]),c("h3",null,m(e.$t("pohoda.proforma_invoice")),1),c("div",x9o,[c("button",{type:"button",class:"btn-block",onClick:t[2]||(t[2]=l=>r.setTypeAndSubmit("ProductProformaInvoice")),disabled:i.loading},m(e.$t("product.materials")),9,O9o),c("button",{type:"button",class:"btn-block",onClick:t[3]||(t[3]=l=>r.setTypeAndSubmit("CreditProformaInvoice")),disabled:i.loading},m(e.$t("credit.title_short")),9,L9o),c("button",{type:"button",class:"btn-block",onClick:t[4]||(t[4]=l=>r.setTypeAndSubmit("VoucherProformaInvoice")),disabled:i.loading},m(e.$t("voucher.vouchers")),9,M9o)]),c("h3",null,m(e.$t("pohoda.invoice")),1),c("div",N9o,[c("button",{type:"button",class:"btn-block",onClick:t[5]||(t[5]=l=>r.setTypeAndSubmit("ProductInvoice")),disabled:i.loading},m(e.$t("product.materials")),9,R9o),c("button",{type:"button",class:"btn-block",onClick:t[6]||(t[6]=l=>r.setTypeAndSubmit("SchoolCreditInvoice")),disabled:i.loading},m(e.$t("school.credit_title")),9,j9o)]),c("h3",null,m(e.$t("pohoda.invoice_incoming")),1),c("div",F9o,[c("button",{type:"button",class:"btn-block",onClick:t[7]||(t[7]=l=>r.setTypeAndSubmit("SettlementInvoice")),disabled:i.loading},m(e.$t("user.authors")),9,z9o)])],32),b(a,{active:i.loading,"onUpdate:active":t[9]||(t[9]=l=>i.loading=l),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])])}const B9o=U(C9o,[["render",U9o],["__scopeId","data-v-f75a5b70"]]),H9o={components:{ContactCards:_h,OrderPaymentSummary:lk,GuestRegister:NM},props:{order:{type:Object,default(){return null}}},computed:{isGuest(){return this.order.user_role==="guest"}}},V9o={class:"col-12 col-lg-7 d-flex flex-column gap-6 my-6 vl-parent"},q9o={class:"align-items-center justify-content-center text-center text-gray-800 mb-0"};function Y9o(e,t,n,o,i,r){const s=y("app-icon"),a=y("OrderPaymentSummary"),l=y("GuestRegister"),d=y("ContactCards");return h(),g("div",V9o,[c("h4",q9o,[z(m(e.$t("order.summary.title"))+" ",1),b(s,{icon:"check-fill",class:"text-success ms-icon",width:"28",height:"28"})]),b(a,{order:n.order},null,8,["order"]),r.isGuest?(h(),W(l,{key:0,email:n.order.user_email},null,8,["email"])):D("",!0),b(d,{"help-card":"","community-card":"","no-icons":"","content-start":""})])}const W9o=U(H9o,[["render",Y9o]]),G9o=""+new URL("download_box-b67b0805.svg",import.meta.url).href,Z9o={props:{order:{type:Object,default(){return{user_email:""}}},loading:{type:Boolean,default:!1}},computed:{loadingModel:{get(){return this.loading},set(e){this.$emit("update:loading",e)}}},methods:{resend(){this.loadingModel=!0,wce.resendMail(this.order.uuid).then(e=>{window.flash(e.data.message,"success")}).catch(()=>{window.flash(this.$t("paymet.expired.resend.failed"),"error")}).finally(()=>{this.loadingModel=!1})}}},K9o={class:"fw-bold ms-1"};function J9o(e,t,n,o,i,r){const s=y("app-icon");return h(),g("button",{class:"btn btn-primary btn-center",onClick:t[0]||(t[0]=(...a)=>r.resend&&r.resend(...a))},[z(m(e.$t("payment.expired.resend.title"))+" ",1),c("span",K9o,m(n.order.user_email),1),b(s,{icon:"message",width:"24",height:"24",class:"ms-icon"})])}const jde=U(Z9o,[["render",J9o]]),X9o={components:{OrderEmailResendButton:jde},props:{order:{type:Object,default(){return null}},loading:{type:Boolean,default:!1}},data(){return{downloadBox:G9o}},computed:{loadingModel:{get(){return this.loading},set(e){this.$emit("update:loading",e)}}},methods:{openLoginRegisterModal(){window.loginRegisterModal()}}},Q9o={class:"text-center d-flex flex-column align-items-center gap-4"},e6o=["src","alt"],t6o={class:"mb-0"};function n6o(e,t,n,o,i,r){const s=y("OrderEmailResendButton");return h(),g("div",Q9o,[c("img",{src:i.downloadBox,alt:e.$t("public.paid"),width:"150"},null,8,e6o),c("h2",t6o,m(e.$t("payment.success.thanks_download_registered_expired_link")),1),c("button",{class:"btn btn-primary btn-center btn-lg",onClick:t[0]||(t[0]=a=>r.openLoginRegisterModal())},m(e.$t("register.thanks.login")),1),b(s,{order:n.order,loading:r.loadingModel,"onUpdate:loading":t[1]||(t[1]=a=>r.loadingModel=a),class:"btn-tertiary"},null,8,["order","loading"])])}const o6o=U(X9o,[["render",n6o]]),i6o=""+new URL("confirm_email-54869470.svg",import.meta.url).href,r6o={components:{OrderEmailResendButton:jde},props:{order:{type:Object,default(){return{user_email:"",user:{role:""}}}},loading:{type:Boolean,default:!1}},data(){return{confirmEmail:i6o}},computed:{loadingModel:{get(){return this.loading},set(e){this.$emit("update:loading",e)}}}},s6o={class:"d-flex flex-column align-items-center text-center gap-5"},a6o={class:"d-flex flex-column align-items-center gap-4"},l6o=["src"],c6o={class:"mb-0"},d6o={class:"mb-0"},u6o={class:"fw-bold"};function h6o(e,t,n,o,i,r){const s=y("OrderEmailResendButton");return h(),g("div",s6o,[c("div",a6o,[c("img",{src:i.confirmEmail,width:"127.99"},null,8,l6o),c("h2",c6o,m(e.$t("payment.expired.title")),1),c("h4",d6o,[z(m(e.$t("payment.expired.text.0"))+" ",1),c("span",u6o,m(n.order.user_email),1),z(" "+m(e.$t("payment.expired.text.1")),1)])]),b(s,{order:n.order,loading:r.loadingModel,"onUpdate:loading":t[0]||(t[0]=a=>r.loadingModel=a)},null,8,["order","loading"])])}const f6o=U(r6o,[["render",h6o]]),m6o={components:{OrderSummaryExpiredGuest:f6o,OrderSummaryExpiredUser:o6o,AppLoading:TM,ContactCards:_h},props:{order:{type:Object,default(){return{user_email:"",price:0}}}},data(){return{loading:!1,primaryColor:window.primaryColor}}},p6o={class:"col-12 col-lg-7 d-flex flex-column gap-6 my-6 vl-parent"};function g6o(e,t,n,o,i,r){const s=y("AppLoading"),a=y("OrderSummaryExpiredGuest"),l=y("OrderSummaryExpiredUser"),d=y("ContactCards");return h(),g("div",p6o,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=u=>i.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),n.order.user_role=="guest"?(h(),W(a,{key:0,order:n.order,loading:i.loading,"onUpdate:loading":t[1]||(t[1]=u=>i.loading=u)},null,8,["order","loading"])):(h(),W(l,{key:1,order:n.order,loading:i.loading,"onUpdate:loading":t[2]||(t[2]=u=>i.loading=u)},null,8,["order","loading"])),b(d,{"help-card":"","community-card":"","no-icons":"","content-start":""})])}const v6o=U(m6o,[["render",g6o]]),_6o={components:{Loading:Rt,BlogSearchBar:Mde,BlogPostList:LM,BlogOldItem:kL,AppIcon:Ue},props:{posts:{type:Array,default:()=>[]},forceOldBlogs:{type:Boolean,default:!1}},data(){return{primaryColor:window.primaryColor,loading:!1,loadingMore:!1,searchedText:null,selectedThemes:[],blogShowCount:3}},methods:{searchBlog(e){this.searchedText=e,this.blogShowCount=3,window.scrollTo(0,0)},resetSearch(){this.loading=!0,this.searchedText=null,this.loading=!1,this.handleScroll=null}},computed:{last:function(){return this.posts[0]},recommended:function(){return this.posts.filter(e=>e.id<11)},most_read:function(){return this.posts.filter(e=>s_.mostRead.includes(e.slug))},searchedPosts:function(){return this.posts.filter(e=>e.title.toUpperCase().includes(this.searchedText.toUpperCase())||e.summary.toUpperCase().includes(this.searchedText.toUpperCase()))}},mounted(){this.handleScroll=()=>{if(this.loadingMore)return;let e=this.$refs["infinite-scroll-school-downloads"];e&&e.getBoundingClientRect().bottom<window.innerHeight&&(this.blogShowCount+=3)},window.addEventListener("scroll",this.handleScroll)},beforeUnmount(){window.removeEventListener("scroll",this.handleScroll)}},y6o={class:"row mt-6"},b6o={class:"col-12 col-lg-8 order-2 order-lg-1 border-top border-top-lg-none border-end-lg vl-parent pe-lg-6 pt-3 pt-lg-0"},k6o={key:0},w6o={class:"d-flex align-items-center fw-bold"},$6o={class:"text-gray-700"},C6o={class:"mt-3 vl-parent mh-4rem",ref:"infinite-scroll-school-downloads"},S6o={key:1},T6o={class:"fw-bold mb-3"},E6o={class:"fw-bold mb-0"},I6o={class:"mt-3 vl-parent mh-4rem",ref:"infinite-scroll-school-downloads"},P6o={class:"col-12 col-lg-4 order-1 order-lg-2 ps-lg-4 mb-3 mb-lg-0"},A6o={class:"sticky-tips-container"},D6o={class:"fw-bold mb-2"};function x6o(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("BlogPostList"),d=y("BlogOldItem"),u=y("BlogSearchBar");return h(),g("div",y6o,[c("div",b6o,[b(s,{active:i.loading,"onUpdate:active":t[0]||(t[0]=f=>i.loading=f),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),i.searchedText?(h(),g("div",k6o,[c("h4",w6o,[c("button",{class:"btn btn-sm btn-tertiary btn-center me-2",onClick:t[1]||(t[1]=(...f)=>r.resetSearch&&r.resetSearch(...f))},[b(a,{icon:"arrow-left",height:"20",width:"20"})]),c("span",$6o,m(e.$t("blog.index.headline_search_text")),1),z("  "+m(i.searchedText),1)]),b(l,{posts:r.searchedPosts.slice(0,i.blogShowCount),"use-old-blog-api":""},null,8,["posts"]),c("div",C6o,[b(s,{active:i.loadingMore,"onUpdate:active":t[2]||(t[2]=f=>i.loadingMore=f),color:i.primaryColor,"can-cancel":!1,"is-full-page":!1},null,8,["active","color"])],512)])):(h(),g("div",S6o,[c("h3",T6o,m(e.$t("blog.index.daily")),1),b(d,{blog:r.last,size:"large",class:"mb-5","force-old-blogs":n.forceOldBlogs},null,8,["blog","force-old-blogs"]),c("h3",E6o,m(e.$t("blog.index.more")),1),b(l,{class:"mb-5",posts:n.posts.slice(1,i.blogShowCount+1),"use-old-blog-api":"","border-bottom":""},null,8,["posts"]),c("div",I6o,[b(s,{active:i.loadingMore,"onUpdate:active":t[3]||(t[3]=f=>i.loadingMore=f),color:i.primaryColor,"can-cancel":!1,"is-full-page":!1},null,8,["active","color"])],512)]))]),c("div",P6o,[c("div",A6o,[b(u,{onSearch:r.searchBlog,"searched-text":i.searchedText,class:"mb-5"},null,8,["onSearch","searched-text"]),c("p",D6o,m(e.$t("blog.index.most_read")),1),b(l,{posts:r.most_read,"use-old-blog-api":"",size:"small"},null,8,["posts"])])])])}const O6o=U(_6o,[["render",x6o]]),L6o={components:{},props:{post:Object,posts:Array},methods:{formatDate(e){if(e)return mt(String(e)).format("DD. MM. YYYY")}}},M6o={class:"col mt-5"},N6o={class:"row justify-content-center"},R6o={class:"col-12 col-md-9 mt-5"},j6o={class:"row text-center"},F6o={class:"m-0"},z6o={class:"d-flex align-items-center justify-content-between"},U6o=["href"],B6o={class:"p-0 m-0 text-gray-600"},H6o={class:"p-0 m-0 text-gray-600"},V6o={class:"row justify-content-center"},q6o={class:"col-12 col-md-9 mt-4"},Y6o={class:"blog-image content-box shadow p-0"},W6o=["src","alt"],G6o={class:"row justify-content-center"},Z6o={class:"col-12 col-md-9"},K6o={class:"content-box"},J6o=["innerHTML"];function X6o(e,t,n,o,i,r){return h(),g("div",M6o,[c("div",N6o,[c("div",R6o,[c("div",j6o,[c("h2",F6o,m(n.post.title),1)]),t[0]||(t[0]=c("hr",null,null,-1)),c("div",z6o,[c("a",{href:e.ziggyRoute("user.show",n.post.user_id),class:"d-flex align-items-center"},[c("p",B6o,m(n.post.custom_author),1)],8,U6o),c("p",H6o,m(r.formatDate(n.post.published_at)),1)])])]),c("div",V6o,[c("div",q6o,[c("div",Y6o,[c("img",{src:n.post.featured_images[0].path,alt:n.post.title},null,8,W6o)])])]),c("div",G6o,[c("div",Z6o,[c("div",K6o,[c("article",{class:"single-article",innerHTML:n.post.content_html},null,8,J6o)])])])])}const Q6o=U(L6o,[["render",X6o]]),eCo={components:{SidebarChat:Yce},mounted(){window.$(document).click(function(e){window.$(e.target).is(".navbar-collapse *")||window.$(".navbar-collapse").collapse("hide")})}},tCo={class:"d-flex flex-column flex-md-row p-0"},nCo={class:"col-12 mt-admin-navbar p-3 p-lg-5",id:"main-content"};function oCo(e,t,n,o,i,r){const s=y("router-view"),a=y("SidebarChat");return h(),g("div",tCo,[c("div",nCo,[b(s),b(a,{"is-admin":!0})])])}const iCo=U(eCo,[["render",oCo]]),rCo={props:{title:{type:String,default(){return null}},active:{type:Boolean,default(){return!1}}}},sCo={class:"me-2"};function aCo(e,t,n,o,i,r){return h(),g("div",{class:J(["d-flex align-items-center medium fw-bold px-4 py-3 cursor-pointer mh-3dot5rem text-decoration-underline-hover",{"bg-primary-dark border-end-4 border-white":n.active}])},[c("div",sCo,[Pt(e.$slots,"icon")]),z(" "+m(n.title),1)],2)}const Fde=U(rCo,[["render",aCo]]),lCo={components:{AppIcon:Ue,NavigationItem:Fde},data(){return{icons:["materials","user-box","school","edit","wallet","chat"],routes:["administration/product","administration/users","administration/school","administration/content","administration/finance","administration/message"]}}},cCo=["onClick","href"];function dCo(e,t,n,o,i,r){const s=y("AppIcon"),a=y("NavigationItem"),l=y("router-link");return h(),g("div",null,[(h(!0),g(pe,null,Me(e.$tm("administration.sidebar.items"),(d,u)=>(h(),W(l,{key:u,to:{name:i.routes[u]},custom:""},{default:F(({href:f,isActive:p,navigate:v})=>[c("a",{onClick:v,href:f,class:"text-white"},[b(a,{title:d,active:p},{icon:F(()=>[b(s,{icon:i.icons[u],width:"24",height:"24"},null,8,["icon"])]),_:2},1032,["title","active"])],8,cCo)]),_:2},1032,["to"]))),128))])}const uCo=U(lCo,[["render",dCo]]);const hCo={components:{AppIcon:Ue,NavigationList:uCo,NavigationItem:Fde},props:{userId:{type:Number,default(){return null}}},data(){return{active:this.$t("administration.sidebar.items.0"),open:!1}},computed:{...Oe({auth:"auth/auth",user:"user/getUserData"})},methods:{setActiveMy(e){this.active=e},toggle(){this.open?this.open=!1:this.open=!0}},mounted(){this.$store.dispatch("user/load",{id:this.userId})}},fCo={class:"navbar navbar-expand-md fixed-left justify-content-center bg-primary text-white"},mCo={class:"mt-2 mt-md-6 mb-2 mb-md-4 w-100"},pCo={class:"d-flex flex-nowrap justify-content-between align-items-center ps-3 pe-1 mh-2dot625rem"},gCo=["href"],vCo={key:0,class:"d-flex align-items-center text-decoration-underline-hover"},_Co=["src","alt"],yCo={class:"ms-1"},bCo={class:"fw-bold text-truncate"},kCo={class:"small text-truncate"},wCo={class:"d-flex align-items-center"},$Co=["href"],CCo={class:"navbar-toggler p-0 collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#admin-navbar","aria-controls":"admin-navbar","aria-expanded":"false","aria-label":"Toggle navigation"},SCo={class:"collapse navbar-collapse align-items-start w-100",id:"admin-navbar","data-bs-toggle":"collapse","data-bs-target":"#admin-navbar","aria-controls":"admin-navbar"},TCo={class:"d-flex flex-column w-100 justify-content-between h-100"},ECo=["href"],ICo=["href"];function PCo(e,t,n,o,i,r){const s=y("AppIcon"),a=y("NavigationList"),l=y("NavigationItem");return h(),g("nav",fCo,[c("div",mCo,[c("div",pCo,[c("a",{href:e.ziggyRoute("user.dashboard.index"),target:"_blank",class:"link-white text-truncate"},[e.user.image_thumbnail?(h(),g("div",vCo,[c("img",{src:e.user.image_thumbnail,alt:e.user.first_name+" "+e.user.last_name,width:"36",height:"36",class:"rounded-circle object-fit-content me-2"},null,8,_Co),c("div",yCo,[c("div",bCo,m(e.user.first_name+" "+e.user.last_name),1),c("div",kCo,m(e.user.email),1)])])):D("",!0)],8,gCo),c("div",wCo,[c("a",{href:e.ziggyRoute("user.dashboard.settings"),target:"_blank",class:"me-2"},[b(s,{"icon-color":"white",icon:"cog",width:"24",height:"24"})],8,$Co),c("button",CCo,[b(s,{icon:"chevron-up",width:"24",height:"24",class:"text-white chevron"})])])])]),c("div",SCo,[c("div",TCo,[b(a),c("div",null,[c("a",{href:e.ziggyRoute("blog.index"),target:"_blank",class:"link-white"},[b(l,{title:e.$t("administration.sidebar.footer.blog")},{icon:F(()=>[b(s,{icon:"document",width:"24",height:"24"})]),_:1},8,["title"])],8,ECo),c("a",{href:e.ziggyRoute("default"),target:"_blank",class:"link-white"},[b(l,{title:e.$t("administration.sidebar.footer.ucitelnice")},{icon:F(()=>[b(s,{icon:"web",width:"24",height:"24"})]),_:1},8,["title"])],8,ICo)])])])])}const ACo=U(hCo,[["render",PCo],["__scopeId","data-v-126e067c"]]),DCo={props:{dispatchCustom:{type:Object,default:null}},components:{FormSidebar:_n},data(){return{deleted_reason:"",error:""}},computed:{...Oe({product:"administrationProduct/getDelete",auth:"auth/auth"})},methods:{deleteProduct(){this.error="",this.deleted_reason?(this.$store.dispatch("administrationProduct/delete",{id:this.product.id,deleted_reason:this.deleted_reason,filters:Mi.getFilters(this.$route.query)}),this.deleted_reason=""):this.error=this.$t("validation.custom.reason.required")}}},xCo={class:"form-group form-floating mb-2"},OCo=["placeholder"],LCo={for:"reason",class:"form-label"},MCo={key:0,class:"text-danger"};function NCo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"product-delete",onSubmit:r.deleteProduct,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("product.delete_title")),1)]),subtitle:F(()=>[z(m(e.product.title),1)]),"submit-button":F(()=>[z(m(e.$t("product.delete_yes")),1)]),content:F(()=>[c("div",xCo,[xe(c("textarea",{"onUpdate:modelValue":t[0]||(t[0]=a=>i.deleted_reason=a),name:"reason",id:"reason",type:"text",placeholder:e.$t("product.delete_reason_placeholder"),required:"",rows:"3",class:"form-control"},null,8,OCo),[[wt,i.deleted_reason]]),c("label",LCo,m(e.$t("product.delete_reason")),1)]),i.error?(h(),g("p",MCo,m(i.error),1)):D("",!0)]),_:1},8,["onSubmit"])):D("",!0)}const RCo=U(DCo,[["render",NCo]]),jCo={components:{FormSidebar:_n},data(){return{note:""}},computed:{...Oe({product:"administrationProduct/getDetail",auth:"auth/auth"})},methods:{updateAdminNote(){this.$store.dispatch("administrationProduct/updateAdminNote",{id:this.product.id,note:this.note})}},mounted(){this.note=this.product.admin_note}},FCo={class:"form-group form-floating"},zCo=["placeholder"],UCo={class:"form-label"};function BCo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"product-admin-note-update",onSubmit:r.updateAdminNote},{title:F(()=>[z(m(e.product.admin_note?e.$t("product.comment.edit"):e.$t("product.comment.add")),1)]),subtitle:F(()=>[z(m(e.product.title),1)]),"submit-button":F(()=>[z(m(e.product.admin_note?e.$t("administration.save"):e.$t("administration.add")),1)]),content:F(()=>[c("div",FCo,[xe(c("textarea",{id:"note",class:J({"form-control":!0}),placeholder:e.$t("public.commentary_write"),name:"note","onUpdate:modelValue":t[0]||(t[0]=a=>i.note=a),rows:"10"},null,8,zCo),[[wt,i.note]]),c("label",UCo,m(e.$t("public.commentary")),1)])]),_:1},8,["onSubmit"])):D("",!0)}const HCo=U(jCo,[["render",BCo]]),VCo={components:{FormSidebar:_n},data(){return{error:""}},computed:{...Oe({update:"administrationProductUpdate/getDetail",auth:"auth/auth"})},methods:{confirmUpdate(){if(this.error="",!this.update.reason){this.error=this.$t("validation.custom.reason.required");return}this.$store.dispatch("administrationProductUpdate/confirm",{reason:this.update.reason})}}},qCo={class:"form-group form-floating"},YCo=["placeholder"],WCo={for:"reason",class:"form-label"},GCo={key:0,class:"text-danger"};function ZCo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"product-update-confirm",onSubmit:r.confirmUpdate},{title:F(()=>[z(m(e.$t("administration.product.update.confirm_send")),1)]),subtitle:F(()=>[z(m(e.update.product.title),1)]),"submit-button":F(()=>[z(m(e.$t("administration.confirm_send")),1)]),content:F(()=>[c("div",qCo,[xe(c("textarea",{rows:"5","onUpdate:modelValue":t[0]||(t[0]=a=>e.update.reason=a),name:"reason",id:"reason",placeholder:e.$t("administration.product.update.filter.reason.title"),class:"form-control"},null,8,YCo),[[wt,e.update.reason]]),c("label",WCo,m(e.$t("administration.product.update.filter.reason.title")),1)]),i.error?(h(),g("p",GCo,m(i.error),1)):D("",!0)]),_:1},8,["onSubmit"])):D("",!0)}const KCo=U(VCo,[["render",ZCo]]),JCo={components:{FormSidebar:_n},computed:{...Oe({update:"administrationProductUpdate/getDetail",auth:"auth/auth"})},methods:{deleteUpdate(){this.$store.dispatch("administrationProductUpdate/delete")}}};function XCo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"product-update-delete",onSubmit:r.deleteUpdate,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("administration.product.update.delete")),1)]),subtitle:F(()=>[z(m(e.update.product.title),1)]),"submit-button":F(()=>[z(m(e.$t("administration.delete")),1)]),_:1},8,["onSubmit"])):D("",!0)}const QCo=U(JCo,[["render",XCo]]),e7o={props:{options:Array,labels:Array,itemMb:{type:Number,default:0},disabled:Array,selected:String},computed:{selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}}}},t7o=["value","disabled"],n7o={class:"ms-2"};function o7o(e,t,n,o,i,r){return h(),g("div",null,[(h(!0),g(pe,null,Me(n.options,(s,a)=>(h(),g("label",{key:a,class:J(["d-flex align-items-center",["mb-"+String(n.itemMb),n.disabled&&n.disabled[a]?"text-gray-600":"cursor-pointer"]])},[xe(c("input",{type:"radio","onUpdate:modelValue":t[0]||(t[0]=l=>r.selectedModel=l),value:s,class:J({"cursor-pointer":!(n.disabled&&n.disabled[a])}),disabled:n.disabled&&n.disabled[a]},null,10,t7o),[[Df,r.selectedModel]]),c("span",n7o,m(n.labels[a]),1)],2))),128))])}const i7o=U(e7o,[["render",o7o]]),r7o={components:{AppIcon:Ue,FormSidebar:_n,SelectList:i7o,CheckList:aM},validations(){return{actionSelect:{required:Yt},note:{required:Yt}}},data(){return{openedStates:ja.complaint.openedStates,editor:fu,actions:{select:{options:ja.complaint.action.select,labels:Object.values(this.$tm("administration.product.complaint.resolution.actions.select")),closedStateDisabled:[!0,!0,!1,!1]},check:{options:ja.complaint.action.check,labels:Object.values(this.$tm("administration.product.complaint.resolution.actions.check")),closedStateDisabled:[!0,!0],fixSelectDisabled:[!1,!0],rejectSelectDisabled:[!0,!0],closeSelectDisabled:[!0,!0]}}}},computed:{...Oe({complaint:"administrationProductComplaint/getDetail",auth:"auth/auth"}),actionSelect:{get(){return this.$store.getters["administrationProductComplaint/getResolutionActionsSelect"]},set(e){this.$store.commit("administrationProductComplaint/setResolutionActionsSelect",e)}},actionCheck:{get(){return this.$store.getters["administrationProductComplaint/getResolutionActionsCheck"]},set(e){this.$store.commit("administrationProductComplaint/setResolutionActionsCheck",e)}},note:{get(){return this.$store.getters["administrationProductComplaint/getResolutionNote"]},set(e){this.$store.commit("administrationProductComplaint/setResolutionNote",e)}},isOpenState(){return this.openedStates.includes(this.complaint.state)},checkListDisabled(){return this.isOpenState?this.actionSelect==="fix"?this.actions.check.fixSelectDisabled:this.actionSelect==="reject"?this.actions.check.rejectSelectDisabled:this.actionSelect==="close"?this.actions.check.closeSelectDisabled:this.actionSelect==="close_no_action"?this.actions.check.closeSelectDisabled:null:this.actions.check.closedStateDisabled},selectListDisabled(){return this.isOpenState?null:this.actions.select.closedStateDisabled}},methods:{confirm(){this.v$.$touch(),!(this.v$.note.$error||this.v$.actionSelect.$error)&&(this.$store.dispatch("administrationProductComplaint/resolve"),this.v$.$reset())},close(){this.v$.$reset(),this.actionSelect=null},openPreview(){let e=null;this.actionSelect==="fix"&&(e="stateToFixUpdate",this.actionCheck.includes("refund")&&(e="stateToFixUpdateWithCreditReturn")),this.actionSelect==="reject"&&(e="stateRejectedUpdate"),this.actionSelect==="close"&&(e="stateReturnedUpdate"),this.actionSelect!=="close_no_action"&&e!==null&&this.$store.dispatch("administrationProductComplaint/emailPreview",{action_type:e,note_text:this.note})},setDefaultNote(){this.note=this.complaint.note_customer}},watch:{actionSelect(e){this.isOpenState&&e=="close"?this.actionCheck=ja.complaint.action.check:this.actionCheck=[]},complaint:{deep:!0,handler(){this.setDefaultNote()}}},mounted(){this.setDefaultNote()},setup(){return{v$:Pn()}}},s7o={key:0,class:"invalid-feedback"},a7o={class:"quill-editor"},l7o={key:1,class:"text-danger"},c7o=["disabled"];function d7o(e,t,n,o,i,r){const s=y("SelectList"),a=y("CheckList"),l=y("quill-editor"),d=y("AppIcon"),u=y("FormSidebar");return e.auth.is_admin?(h(),W(u,{key:0,id:"complaint-resolve",onClose:r.close,onSubmit:r.confirm},{title:F(()=>[z(m(e.$t("administration.product.complaint.resolution.title")),1)]),subtitle:F(()=>[z(m(e.complaint.product.title),1)]),"submit-button":F(()=>[z(m(e.$t("administration.product.complaint.resolution.buttons.confirm")),1)]),content:F(()=>[b(s,{options:i.actions.select.options,labels:i.actions.select.labels,disabled:r.selectListDisabled,selected:r.actionSelect,"onUpdate:selected":t[0]||(t[0]=f=>r.actionSelect=f),"item-mb":3,class:J({"is-invalid":o.v$.actionSelect.$error})},null,8,["options","labels","disabled","selected","class"]),o.v$.actionSelect.$error?(h(),g("span",s7o,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0),t[4]||(t[4]=c("hr",{class:"my-4"},null,-1)),b(a,{options:i.actions.check.options,labels:i.actions.check.labels,disabled:r.checkListDisabled,checked:r.actionCheck,"onUpdate:checked":t[1]||(t[1]=f=>r.actionCheck=f),"item-mb":3},null,8,["options","labels","disabled","checked"]),t[5]||(t[5]=c("hr",{class:"my-4"},null,-1)),c("div",a7o,[b(l,{ref:"quill",class:"mh-8",contentType:"html",theme:"snow",content:r.note,"onUpdate:content":t[2]||(t[2]=f=>r.note=f),options:{...i.editor.noteToolbar}},null,8,["content","options"])]),o.v$.note.$error?(h(),g("div",l7o,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0),c("button",{class:"btn btn-tertiary btn-sm mt-3",onClick:t[3]||(t[3]=(...f)=>r.openPreview&&r.openPreview(...f)),disabled:r.actionSelect==="close_no_action"},[z(m(e.$t("administration.product.complaint.resolution.buttons.email_preview"))+" ",1),b(d,{icon:"show",height:"16",width:"16",class:"ms-1"})],8,c7o)]),_:1},8,["onClose","onSubmit"])):D("",!0)}const u7o=U(r7o,[["render",d7o]]),h7o={components:{FormSidebar:_n},validations(){return{note:{required:Yt}}},data(){return{editor:fu}},computed:{...Oe({complaint:"administrationProductComplaint/getDetail",auth:"auth/auth"}),note:{get(){return this.$store.getters["administrationProductComplaint/getResolutionNote"]},set(e){this.$store.commit("administrationProductComplaint/setResolutionNote",e)}}},methods:{confirm(){this.v$.$touch(),!this.v$.note.$error&&(this.$store.dispatch("administrationProductComplaint/addNote"),this.v$.$reset())},close(){this.v$.$reset()}},setup(){return{v$:Pn()}}},f7o={class:"quill-editor"},m7o={key:0,class:"text-danger"};function p7o(e,t,n,o,i,r){const s=y("quill-editor"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"complaint-note-add",onClose:r.close,onSubmit:r.confirm},{title:F(()=>[z(m(e.$t("administration.product.complaint.resolution.note.title")),1)]),subtitle:F(()=>[z(m(e.complaint.product.title),1)]),"submit-button":F(()=>[z(m(e.$t("administration.product.complaint.resolution.note.save")),1)]),content:F(()=>[c("div",f7o,[b(s,{ref:"quill",content:r.note,"onUpdate:content":t[0]||(t[0]=l=>r.note=l),contentType:"html",theme:"snow",class:"mh-8",options:{...i.editor.noteToolbar}},null,8,["content","options"])]),o.v$.note.$error?(h(),g("div",m7o,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0)]),_:1},8,["onClose","onSubmit"])):D("",!0)}const g7o=U(h7o,[["render",p7o]]),v7o={components:{AppIcon:Ue,FormSidebar:_n},computed:{...Oe({messageType:"sidebar/getData",auth:"auth/auth",complaint:"administrationProductComplaint/getDetail"}),message:{get(){return this.$store.getters["administrationProductComplaint/getMessage"]},set(e){this.$store.commit("administrationProductComplaint/setMessage",e)}},customerName(){return this.complaint.customer.first_name+" "+this.complaint.customer.last_name},authorName(){return this.complaint.product.author.first_name+" "+this.complaint.product.author.last_name},messagePlaceholder(){return this.messageType=="customer"?this.$t("complaints.message.customer.placeholder"):this.$t("complaints.message.author.placeholder")}},data(){return{editor:fu}},validations(){return{message:{required:Yt}}},methods:{send(){this.v$.$touch(),!this.v$.$invalid&&(this.messageType=="customer"?this.$store.dispatch("administrationProductComplaint/messageCustomer"):this.$store.dispatch("administrationProductComplaint/messageAuthor"),this.v$.$reset())},close(){this.v$.$reset()},openPreview(){let e=this.messageType==="customer"?"messageCustomer":"messageAuthor";this.$store.dispatch("administrationProductComplaint/emailPreview",{action_type:e,note_text:this.message})}},setup(){return{v$:Pn()}}},_7o={class:"mb-4"},y7o={class:"quill-editor"},b7o={key:0,class:"text-danger"},k7o={class:"mt-3"};function w7o(e,t,n,o,i,r){const s=y("quill-editor"),a=y("AppIcon"),l=y("FormSidebar");return e.auth.is_admin?(h(),W(l,{key:0,id:"complaint-message",onClose:r.close,onSubmit:r.send},{title:F(()=>[z(m(e.messageType=="customer"?e.$t("complaints.message.customer.title"):e.$t("complaints.message.author.title")),1)]),subtitle:F(()=>[z(m(e.messageType=="customer"?r.customerName:r.authorName),1)]),"submit-button":F(()=>[z(m(e.$t("complaints.message.send")),1)]),content:F(()=>[c("p",_7o,m(e.messageType=="customer"?e.$t("complaints.message.customer.info"):e.$t("complaints.message.author.info")),1),c("div",y7o,[b(s,{ref:"quill",class:"mh-8",contentType:"html",theme:"snow",content:r.message,"onUpdate:content":t[0]||(t[0]=d=>r.message=d),options:{...i.editor.extendedToolbar,placeholder:r.messagePlaceholder}},null,8,["content","options"])]),o.v$.message.$error?(h(),g("div",b7o,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0),c("div",k7o,[c("button",{class:"btn btn-tertiary btn-sm",onClick:t[1]||(t[1]=(...d)=>r.openPreview&&r.openPreview(...d))},[z(m(e.$t("administration.product.complaint.resolution.buttons.email_preview"))+" ",1),b(a,{icon:"show",height:"16",width:"16",class:"ms-1"})])])]),_:1},8,["onClose","onSubmit"])):D("",!0)}const $7o=U(v7o,[["render",w7o]]),C7o={components:{StatItem:pM,StatsContainer:mM},props:{items:{type:Array,default(){return[]}},total:{type:Number,default(){return null}},lastChange:{type:String,default(){return null}}},methods:{redirectToProduct(){this.$store.dispatch("administrationSiteNavigation/setBackPath",{path:this.$route.fullPath}),this.$store.dispatch("sidebar/close")}}},S7o={key:0,class:"border rounded"},T7o={class:"row m-0 align-items-center text-gray-900"},E7o={class:"col-auto p-0 me-3"},I7o=["src"],P7o=["src"],A7o={class:"col-auto p-0"},D7o={class:"medium"},x7o={class:"text-gray-600 small"},O7o={class:"col-auto p-0 ms-auto medium"},L7o={key:0},M7o={key:1};function N7o(e,t,n,o,i,r){const s=y("StatItem"),a=y("StatsContainer"),l=y("router-link");return h(),g("div",null,[b(a,{class:"mb-4"},{default:F(()=>[b(s,{class:"col-md-6 border-end"},{label:F(()=>[Pt(e.$slots,"totalTitle")]),text:F(()=>[z(m(n.total+",- "+e.$t("currency.short")),1)]),_:3}),b(s,{class:"col-md-6"},{label:F(()=>[Pt(e.$slots,"lastChangeTitle")]),text:F(()=>[z(m(n.lastChange),1)]),_:3})]),_:3}),n.items.length>0?(h(),g("div",S7o,[(h(!0),g(pe,null,Me(n.items,(d,u)=>(h(),g("div",{key:u,class:"w-100 border-bottom border-bottom-last-none px-3 py-2dot5"},[b(l,{to:{name:"administration/product/detail",params:{id:d.id?d.id:d.product_id}},onClickCapture:r.redirectToProduct},{default:F(()=>[c("div",T7o,[c("div",E7o,[d.image?(h(),g("img",{key:0,src:d.image,height:"32",width:"32"},null,8,I7o)):d.cover_img_thumbnail?(h(),g("img",{key:1,height:"32",width:"32",src:d.cover_img_thumbnail},null,8,P7o)):D("",!0)]),c("div",A7o,[c("div",D7o,m(d.title),1),c("span",x7o,m(d.author.name),1)]),c("div",O7o,[d.price_brutto?(h(),g("span",L7o,m(d.price_brutto+",-"),1)):(h(),g("span",M7o,m(d.price+",-"),1))])])]),_:2},1032,["to","onClickCapture"])]))),128))])):D("",!0)])}const zde=U(C7o,[["render",N7o]]),R7o={components:{CartOrWishlistSideList:zde,FormSidebar:_n},computed:{...Oe({user:"administrationUser/getDetail",auth:"auth/auth"})}};function j7o(e,t,n,o,i,r){const s=y("CartOrWishlistSideList"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"user-cart-show"},{title:F(()=>[z(m(e.$t("administration.users.detail.cart.title")),1)]),subtitle:F(()=>[z(m(e.user.first_name+" "+e.user.last_name),1)]),content:F(()=>[b(s,{items:e.user.cart.items,total:e.user.cart.total,"last-change":e.user.cart.last_update},{totalTitle:F(()=>[z(m(e.$t("administration.users.detail.cart.total")),1)]),lastChangeTitle:F(()=>[z(m(e.$t("administration.users.detail.cart.last_update")),1)]),_:1},8,["items","total","last-change"])]),_:1})):D("",!0)}const F7o=U(R7o,[["render",j7o]]),z7o={components:{CartOrWishlistSideList:zde,FormSidebar:_n},computed:{...Oe({user:"administrationUser/getDetail",auth:"auth/auth"})}};function U7o(e,t,n,o,i,r){const s=y("CartOrWishlistSideList"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"user-wishlist-show"},{title:F(()=>[z(m(e.$t("administration.users.detail.wishlist.title")),1)]),subtitle:F(()=>[z(m(e.user.first_name+" "+e.user.last_name),1)]),content:F(()=>[b(s,{items:e.user.wishlist.items,total:e.user.wishlist.total,"last-change":e.user.wishlist.last_update},{totalTitle:F(()=>[z(m(e.$t("administration.users.detail.wishlist.total")),1)]),lastChangeTitle:F(()=>[z(m(e.$t("administration.users.detail.wishlist.last_update")),1)]),_:1},8,["items","total","last-change"])]),_:1})):D("",!0)}const B7o=U(z7o,[["render",U7o]]),H7o={components:{TabListNoVueRouter:JL,FormSidebar:_n},data(){return{titles:[this.$t("administration.users.detail.credit.add"),this.$t("administration.users.detail.credit.remove")],tabNames:["add","remove"],type:"add",changeReason:null,amount:1,minAmount:1}},validations(){return{amount:{required:Yt,minValue:Ra(this.minAmount),maxValue:Vd(this.maxCreditRemoveValue)},changeReason:{required:Yt}}},computed:{...Oe({user:"administrationUser/getDetail",auth:"auth/auth"}),maxCreditRemoveValue(){return this.type==="remove"?this.user.credit:Number.MAX_SAFE_INTEGER}},methods:{changeTab(e){this.type=e},isInvalid(){return this.v$.$invalid},addOrRemove(){this.v$.$touch(),!this.isInvalid()&&this.$store.dispatch("administrationUser/changeUserCredit",{user:this.user,isAdd:this.type==="add",amount:this.amount,reason:this.changeReason}).then(()=>{this.reset()})},reset(){this.amount=1,this.changeReason=null,this.type="add",this.v$.$reset()}},setup(){return{v$:Pn()}}},V7o={class:"input-group has-validation form-floating mb-3"},q7o=["placeholder","max"],Y7o={for:"amount",class:"form-label"},W7o={class:"input-group-text right-border-radius-fix"},G7o={key:0,class:"invalid-feedback"},Z7o={key:1,class:"invalid-feedback"},K7o={key:2,class:"invalid-feedback"},J7o={key:3,class:"invalid-feedback"},X7o={class:"form-group form-floating mb-4"},Q7o=["placeholder"],eSo={for:"reason",class:"form-label"},tSo={key:0,class:"invalid-feedback"};function nSo(e,t,n,o,i,r){const s=y("TabListNoVueRouter"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"user-credit-update",onClose:r.reset,onSubmit:r.addOrRemove,"submit-color":i.type==="add"?"success":"danger"},{title:F(()=>[z(m(e.$t("administration.users.detail.credit.title")),1)]),subtitle:F(()=>[z(m(e.user.first_name+" "+e.user.last_name),1)]),"submit-button":F(()=>[z(m(i.type==="add"?e.$t("administration.users.detail.credit.add"):e.$t("administration.users.detail.credit.remove")),1)]),"close-button":F(()=>[z(m(e.$t("administration.cancel")),1)]),content:F(()=>[b(s,{class:"mb-5 tabs-custom-color",titles:i.titles,"tab-names":i.tabNames,value:i.type,"onUpdate:value":t[0]||(t[0]=l=>i.type=l)},null,8,["titles","tab-names","value"]),c("div",V7o,[xe(c("input",{id:"amount",class:J([{"form-control":!0,"is-invalid":o.v$.amount.$error},"border-end-0"]),placeholder:e.$t("administration.users.detail.credit.amount.placeholder"),type:"number",min:"1",max:r.maxCreditRemoveValue,name:"amount","onUpdate:modelValue":t[1]||(t[1]=l=>o.v$.amount.$model=l)},null,10,q7o),[[wt,o.v$.amount.$model]]),c("label",Y7o,m(e.$t("administration.users.detail.credit.amount.label")),1),c("span",W7o,m(e.$t("currency.short")),1),o.v$.amount.$error&&o.v$.amount.required.$invalid?(h(),g("span",G7o,m(e.$t("administration.users.detail.credit.amount.amount_required")),1)):D("",!0),o.v$.amount.$error&&o.v$.amount.minValue.$invalid&&i.type==="add"?(h(),g("span",Z7o,m(e.$t("administration.users.detail.credit.amount.add.error_min")),1)):D("",!0),o.v$.amount.$error&&o.v$.amount.minValue.$invalid&&i.type==="remove"?(h(),g("span",K7o,m(e.$t("administration.users.detail.credit.amount.remove.error_min")),1)):D("",!0),o.v$.amount.$error&&o.v$.amount.maxValue.$invalid&&i.type==="remove"?(h(),g("span",J7o,m(e.$t("administration.users.detail.credit.amount.remove.error_max",{amount:e.user.credit})),1)):D("",!0)]),c("div",X7o,[xe(c("textarea",{"onUpdate:modelValue":t[2]||(t[2]=l=>o.v$.changeReason.$model=l),class:J({"form-control":!0,"is-invalid":o.v$.changeReason.$error}),name:"reason",id:"reason",type:"text",placeholder:e.$t("administration.users.detail.credit.note.placeholder"),required:"",rows:"3"},null,10,Q7o),[[wt,o.v$.changeReason.$model]]),c("label",eSo,m(e.$t("administration.users.detail.credit.note.label")),1),o.v$.changeReason.$error&&o.v$.amount.changeReason.$invalid?(h(),g("span",tSo,m(e.$t("administration.users.detail.credit.note.required")),1)):D("",!0)])]),_:1},8,["onClose","onSubmit","submit-color"])):D("",!0)}const oSo=U(H7o,[["render",nSo]]),iSo={components:{AppIcon:Ue},props:{gender:String},methods:{select(e){this.$emit("update:gender",e)}}},rSo={class:"d-flex"};function sSo(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("div",rSo,[c("button",{class:J(["btn btn-sm btn-center me-1",n.gender=="female"?"btn-primary":"btn-secondary"]),onClick:t[0]||(t[0]=a=>r.select("female"))},[b(s,{width:"20",height:"20",icon:"female",class:"me-icon"}),z(" "+m(e.$t("administration.female")),1)],2),c("button",{class:J(["btn btn-sm btn-center",n.gender=="male"?"btn-primary":"btn-secondary"]),onClick:t[1]||(t[1]=a=>r.select("male"))},[b(s,{width:"20",height:"20",icon:"male",class:"me-icon"}),z(" "+m(e.$t("administration.male")),1)],2)])}const aSo=U(iSo,[["render",sSo]]),lSo=sh.validation.slug.valid,cSo={components:{UserGenderSelect:aSo,SidebarBlock:rb,FormSidebar:_n,AuthorSlugInput:xle,ToggleButton:eb},data(){return{first_name:null,last_name:null,email:null,gender:null,invoice_company:null,invoice_address:null,invoice_city:null,invoice_postcode:null,invoice_ico:null,is_vat_payer:null,is_organization:null,invoice_dic:null,slug:null,contractor_company:null,contractor_address:null,contractor_city:null,contractor_psc:null,contractor_ico:null,contractor_dic:null,contractor_bank_account:null,contractor_country:null,custom_invoice_acknowledgement:null}},computed:{...Oe({user:"administrationUser/getDetail",auth:"auth/auth"}),userDetails(){return{first_name:this.first_name,last_name:this.last_name,email:this.email,gender:this.gender,invoice_company:this.invoice_company,invoice_address:this.invoice_address,invoice_city:this.invoice_city,invoice_psc:this.invoice_postcode,invoice_ico:this.invoice_ico,is_vat_payer:this.is_vat_payer,is_organization:this.is_organization,invoice_dic:this.invoice_dic,slug:null,contractor_details:null}},contractorDetails(){return{contractor_company:this.contractor_company,contractor_address:this.contractor_address,contractor_city:this.contractor_city,contractor_psc:this.contractor_psc,contractor_ico:this.contractor_ico,contractor_dic:this.contractor_dic,contractor_bank_account:this.contractor_bank_account,contractor_country:this.contractor_country,custom_invoice_acknowledgement:this.custom_invoice_acknowledgement}}},methods:{save(){let e=this.userDetails;this.user.role==="author"&&(e.slug=this.slug,e.contractor_details=this.contractorDetails),this.$store.dispatch("administrationUser/updateUserInfo",{user:this.user,values:e}).then(()=>{this.$store.dispatch("sidebar/close")})},load(){this.first_name=this.user.first_name,this.last_name=this.user.last_name,this.email=this.user.email,this.gender=this.user.gender,this.invoice_company=this.user.invoice_company,this.invoice_address=this.user.invoice_address,this.invoice_city=this.user.invoice_city,this.invoice_postcode=this.user.invoice_postcode,this.invoice_ico=this.user.invoice_ico,this.is_vat_payer=this.user.is_vat_payer,this.is_organization=this.user.is_organization,this.invoice_dic=this.user.invoice_dic,this.slug=this.user.slug,this.user.contractor_details&&(this.contractor_company=this.user.contractor_details.contractor_company,this.contractor_address=this.user.contractor_details.contractor_address,this.contractor_city=this.user.contractor_details.contractor_city,this.contractor_psc=this.user.contractor_details.contractor_psc,this.contractor_ico=this.user.contractor_details.contractor_ico,this.contractor_dic=this.user.contractor_details.contractor_dic,this.contractor_bank_account=this.user.contractor_details.contractor_bank_account,this.contractor_country=this.user.contractor_details.contractor_country,this.custom_invoice_acknowledgement=this.user.contractor_details.custom_invoice_acknowledgement)}},validations(){return{first_name:{required:Yt},last_name:{required:Yt},email:{required:Yt,email:Rf},gender:{required:Yt},invoice_company:{},invoice_address:{},invoice_city:{},invoice_postcode:{},invoice_ico:{minLength:Ua(8),maxLength:hi(8),numeric:DP},invoice_dic:{},is_vat_payer:{},is_organization:{},slug:{validSlug:lSo,maxLength:hi(30)},contractor_company:{},contractor_address:{},contractor_city:{},contractor_psc:{},contractor_ico:{},contractor_dic:{},contractor_bank_account:{},contractor_country:{},custom_invoice_acknowledgement:{}}},mounted(){this.load()},setup(){return{v$:Pn()}},watch:{user:{handler(){this.load()},deep:!0}}},dSo={class:"row"},uSo={class:"col-12 col-lg-6 mb-3"},hSo={class:"form-group has-validation form-floating"},fSo={for:"first_name",class:"form-label"},mSo={key:0,class:"invalid-feedback"},pSo={class:"col-12 col-lg-6 mb-3"},gSo={class:"form-group has-validation form-floating"},vSo={for:"last_name",class:"form-label"},_So={key:0,class:"invalid-feedback"},ySo={class:"row"},bSo={class:"col-12 mb-3"},kSo={class:"form-group has-validation form-floating"},wSo={for:"email",class:"form-label"},$So={key:0,class:"invalid-feedback"},CSo={key:1,class:"invalid-feedback"},SSo={class:"row"},TSo={class:"col-12 mb-3"},ESo={class:"form-group has-validation form-floating"},ISo={for:"invoice_company",class:"form-label"},PSo={key:0,class:"invalid-feedback"},ASo={class:"col-12 mb-3"},DSo={class:"form-group has-validation form-floating"},xSo={for:"invoice_address",class:"form-label"},OSo={key:0,class:"invalid-feedback"},LSo={class:"col-12 mb-3"},MSo={class:"form-group has-validation form-floating"},NSo={for:"invoice_city",class:"form-label"},RSo={key:0,class:"invalid-feedback"},jSo={class:"col-12 mb-3"},FSo={class:"form-group has-validation form-floating"},zSo={for:"invoice_postcode",class:"form-label"},USo={key:0,class:"invalid-feedback"},BSo={class:"col-12 mb-3"},HSo={class:"form-group has-validation form-floating"},VSo={for:"invoice_ico",class:"form-label"},qSo={key:0,class:"invalid-feedback"},YSo={class:"col-12 mb-3"},WSo={class:"form-group has-validation form-floating"},GSo={for:"invoice_dic",class:"form-label"},ZSo={class:"row"},KSo={class:"col-12 mb-3"},JSo={class:"form-group has-validation form-floating"},XSo={for:"contractor_company",class:"form-label"},QSo={class:"col-12 mb-3"},eTo={class:"form-group has-validation form-floating"},tTo={for:"contractor_address",class:"form-label"},nTo={class:"col-12 mb-3"},oTo={class:"form-group has-validation form-floating"},iTo={for:"contractor_city",class:"form-label"},rTo={class:"col-12 mb-3"},sTo={class:"form-group has-validation form-floating"},aTo={for:"contractor_psc",class:"form-label"},lTo={class:"col-12 mb-3"},cTo={class:"form-group has-validation form-floating"},dTo={for:"contractor_ico",class:"form-label"},uTo={class:"col-12 mb-3"},hTo={class:"form-group has-validation form-floating"},fTo={for:"contractor_dic",class:"form-label"},mTo={class:"col-12 mb-3"},pTo={class:"form-group has-validation form-floating"},gTo={for:"contractor_bank_account",class:"form-label"},vTo={class:"col-12 mb-3"},_To={class:"form-group has-validation form-floating"},yTo={for:"contractor_country",class:"form-label"},bTo={class:"col-12 mb-3"},kTo={class:"form-group has-validation form-floating"},wTo={for:"custom_invoice_acknowledgement",class:"form-label"},$To={class:"col-12 d-flex gap-3 flex-wrap mt-3"},CTo={class:"small mb-1"},STo={class:"small mb-1"};function TTo(e,t,n,o,i,r){const s=y("UserGenderSelect"),a=y("SidebarBlock"),l=y("AuthorSlugInput"),d=y("ToggleButton"),u=y("FormSidebar");return e.auth.is_admin?(h(),W(u,{key:0,id:"user-update",onClose:r.load,onSubmit:r.save},{title:F(()=>[z(m(e.$t("administration.users.detail.edit.title")),1)]),"submit-button":F(()=>[z(m(e.$t("administration.save")),1)]),content:F(()=>[b(a,{title:e.$t("administration.users.detail.edit.general.title"),class:"mb-4"},{default:F(()=>[c("div",dSo,[c("div",uSo,[c("div",hSo,[xe(c("input",{id:"first_name",class:J({"form-control":!0,"is-invalid":o.v$.first_name.$error}),type:"text",name:"first_name","onUpdate:modelValue":t[0]||(t[0]=f=>o.v$.first_name.$model=f)},null,2),[[wt,o.v$.first_name.$model]]),c("label",fSo,m(e.$t("administration.users.detail.edit.general.first_name.label")),1),o.v$.first_name.$error&&o.v$.first_name.required.$invalid?(h(),g("span",mSo,m(e.$t("validation.custom.first_name.required")),1)):D("",!0)])]),c("div",pSo,[c("div",gSo,[xe(c("input",{id:"last_name",class:J({"form-control":!0,"is-invalid":o.v$.last_name.$error}),type:"text",name:"last_name","onUpdate:modelValue":t[1]||(t[1]=f=>o.v$.last_name.$model=f)},null,2),[[wt,o.v$.last_name.$model]]),c("label",vSo,m(e.$t("administration.users.detail.edit.general.last_name.label")),1),o.v$.last_name.$error&&o.v$.last_name.required.$invalid?(h(),g("span",_So,m(e.$t("validation.custom.last_name.required")),1)):D("",!0)])])]),c("div",ySo,[c("div",bSo,[c("div",kSo,[xe(c("input",{id:"email",class:J({"form-control":!0,"is-invalid":o.v$.email.$error}),type:"text",name:"email","onUpdate:modelValue":t[2]||(t[2]=f=>o.v$.email.$model=f)},null,2),[[wt,o.v$.email.$model]]),c("label",wSo,m(e.$t("administration.users.detail.edit.general.email.label")),1),o.v$.email.$error&&o.v$.email.required.$invalid?(h(),g("span",$So,m(e.$t("validation.custom.email.required")),1)):D("",!0),o.v$.email.$error&&o.v$.email.email.$invalid?(h(),g("span",CSo,m(e.$t("validation.custom.email.email")),1)):D("",!0)])])]),b(s,{gender:o.v$.gender.$model,"onUpdate:gender":t[3]||(t[3]=f=>o.v$.gender.$model=f)},null,8,["gender"])]),_:1},8,["title"]),b(a,{title:e.$t("administration.users.detail.edit.invoice_info.title")},{default:F(()=>[c("div",SSo,[c("div",TSo,[c("div",ESo,[xe(c("input",{id:"invoice_company",class:J({"form-control":!0,"is-invalid":o.v$.invoice_company.$error}),type:"text",name:"invoice_company","onUpdate:modelValue":t[4]||(t[4]=f=>o.v$.invoice_company.$model=f)},null,2),[[wt,o.v$.invoice_company.$model]]),c("label",ISo,m(e.$t("administration.users.detail.edit.invoice_info.invoice_company.label")),1),o.v$.invoice_company.$error&&o.v$.invoice_company.required.$invalid?(h(),g("span",PSo,m(e.$t("validation.custom.invoice_company.required")),1)):D("",!0)])]),c("div",ASo,[c("div",DSo,[xe(c("input",{id:"invoice_address",class:J({"form-control":!0,"is-invalid":o.v$.invoice_address.$error}),type:"text",name:"invoice_address","onUpdate:modelValue":t[5]||(t[5]=f=>o.v$.invoice_address.$model=f)},null,2),[[wt,o.v$.invoice_address.$model]]),c("label",xSo,m(e.$t("administration.users.detail.edit.invoice_info.invoice_address.label")),1),o.v$.invoice_address.$error&&o.v$.invoice_address.required.$invalid?(h(),g("span",OSo,m(e.$t("validation.custom.invoice_address.required")),1)):D("",!0)])]),c("div",LSo,[c("div",MSo,[xe(c("input",{id:"invoice_city",class:J({"form-control":!0,"is-invalid":o.v$.invoice_city.$error}),type:"text",name:"invoice_city","onUpdate:modelValue":t[6]||(t[6]=f=>o.v$.invoice_city.$model=f)},null,2),[[wt,o.v$.invoice_city.$model]]),c("label",NSo,m(e.$t("administration.users.detail.edit.invoice_info.invoice_city.label")),1),o.v$.invoice_city.$error&&o.v$.invoice_city.required.$invalid?(h(),g("span",RSo,m(e.$t("validation.custom.invoice_city.required")),1)):D("",!0)])]),c("div",jSo,[c("div",FSo,[xe(c("input",{id:"invoice_postcode",class:J({"form-control":!0,"is-invalid":o.v$.invoice_postcode.$error}),type:"text",name:"invoice_postcode","onUpdate:modelValue":t[7]||(t[7]=f=>o.v$.invoice_postcode.$model=f)},null,2),[[wt,o.v$.invoice_postcode.$model]]),c("label",zSo,m(e.$t("administration.users.detail.edit.invoice_info.invoice_psc.label")),1),o.v$.invoice_postcode.$error&&o.v$.invoice_postcode.required.$invalid?(h(),g("span",USo,m(e.$t("validation.custom.invoice_psc.required")),1)):D("",!0)])]),c("div",BSo,[c("div",HSo,[xe(c("input",{id:"invoice_ico",class:J({"form-control":!0,"is-invalid":o.v$.invoice_ico.$error}),type:"text",name:"invoice_ico","onUpdate:modelValue":t[8]||(t[8]=f=>o.v$.invoice_ico.$model=f)},null,2),[[wt,o.v$.invoice_ico.$model]]),c("label",VSo,m(e.$t("administration.users.detail.edit.invoice_info.invoice_ico.label")),1),o.v$.invoice_ico.$error&&(o.v$.invoice_ico.minLength.$invalid||o.v$.invoice_ico.maxLength.$invalid||o.v$.invoice_ico.numeric.$invalid)?(h(),g("span",qSo,m(e.$t("validation.custom.invoice_ico.format")),1)):D("",!0)])]),c("div",YSo,[c("div",WSo,[xe(c("input",{id:"invoice_dic",class:J({"form-control":!0,"is-invalid":o.v$.invoice_dic.$error}),type:"text",name:"invoice_dic","onUpdate:modelValue":t[9]||(t[9]=f=>o.v$.invoice_dic.$model=f)},null,2),[[wt,o.v$.invoice_dic.$model]]),c("label",GSo,m(e.$t("administration.users.detail.edit.invoice_info.invoice_dic.label")),1)])])])]),_:1},8,["title"]),e.user.role==="author"&&e.user.contractor_details?(h(),W(a,{key:0,class:"mt-4",title:e.$t("administration.users.detail.edit.author_info.title")},{default:F(()=>[c("div",ZSo,[c("div",KSo,[c("div",JSo,[xe(c("input",{id:"contractor_company",class:J({"form-control":!0,"is-invalid":o.v$.contractor_company.$error}),type:"text",name:"contractor_company","onUpdate:modelValue":t[10]||(t[10]=f=>o.v$.contractor_company.$model=f)},null,2),[[wt,o.v$.contractor_company.$model]]),c("label",XSo,m(e.$t("administration.users.detail.edit.author_info.contractor_company.label")),1)])]),c("div",QSo,[c("div",eTo,[xe(c("input",{id:"contractor_address",class:J({"form-control":!0,"is-invalid":o.v$.contractor_address.$error}),type:"text",name:"contractor_address","onUpdate:modelValue":t[11]||(t[11]=f=>o.v$.contractor_address.$model=f)},null,2),[[wt,o.v$.contractor_address.$model]]),c("label",tTo,m(e.$t("administration.users.detail.edit.author_info.contractor_address.label")),1)])]),c("div",nTo,[c("div",oTo,[xe(c("input",{id:"contractor_city",class:J({"form-control":!0,"is-invalid":o.v$.contractor_city.$error}),type:"text",name:"contractor_city","onUpdate:modelValue":t[12]||(t[12]=f=>o.v$.contractor_city.$model=f)},null,2),[[wt,o.v$.contractor_city.$model]]),c("label",iTo,m(e.$t("administration.users.detail.edit.author_info.contractor_city.label")),1)])]),c("div",rTo,[c("div",sTo,[xe(c("input",{id:"contractor_psc",class:J({"form-control":!0,"is-invalid":o.v$.contractor_psc.$error}),type:"text",name:"contractor_psc","onUpdate:modelValue":t[13]||(t[13]=f=>o.v$.contractor_psc.$model=f)},null,2),[[wt,o.v$.contractor_psc.$model]]),c("label",aTo,m(e.$t("administration.users.detail.edit.author_info.contractor_psc.label")),1)])]),c("div",lTo,[c("div",cTo,[xe(c("input",{id:"contractor_ico",class:J({"form-control":!0,"is-invalid":o.v$.contractor_ico.$error}),type:"text",name:"contractor_ico","onUpdate:modelValue":t[14]||(t[14]=f=>o.v$.contractor_ico.$model=f)},null,2),[[wt,o.v$.contractor_ico.$model]]),c("label",dTo,m(e.$t("administration.users.detail.edit.author_info.contractor_ico.label")),1)])]),c("div",uTo,[c("div",hTo,[xe(c("input",{id:"contractor_dic",class:J({"form-control":!0,"is-invalid":o.v$.contractor_dic.$error}),type:"text",name:"contractor_dic","onUpdate:modelValue":t[15]||(t[15]=f=>o.v$.contractor_dic.$model=f)},null,2),[[wt,o.v$.contractor_dic.$model]]),c("label",fTo,m(e.$t("administration.users.detail.edit.author_info.contractor_dic.label")),1)])]),c("div",mTo,[c("div",pTo,[xe(c("input",{id:"contractor_bank_account",class:J({"form-control":!0,"is-invalid":o.v$.contractor_bank_account.$error}),type:"text",name:"contractor_bank_account","onUpdate:modelValue":t[16]||(t[16]=f=>o.v$.contractor_bank_account.$model=f)},null,2),[[wt,o.v$.contractor_bank_account.$model]]),c("label",gTo,m(e.$t("administration.users.detail.edit.author_info.contractor_bank_account.label")),1)])]),c("div",vTo,[c("div",_To,[xe(c("input",{id:"contractor_country",class:J({"form-control":!0,"is-invalid":o.v$.contractor_country.$error}),type:"text",name:"contractor_country","onUpdate:modelValue":t[17]||(t[17]=f=>o.v$.contractor_country.$model=f)},null,2),[[wt,o.v$.contractor_country.$model]]),c("label",yTo,m(e.$t("administration.users.detail.edit.author_info.contractor_country.label")),1)])]),c("div",bTo,[c("div",kTo,[xe(c("input",{id:"custom_invoice_acknowledgement",class:J({"form-control":!0,"is-invalid":o.v$.custom_invoice_acknowledgement.$error}),type:"text",name:"custom_invoice_acknowledgement","onUpdate:modelValue":t[18]||(t[18]=f=>o.v$.custom_invoice_acknowledgement.$model=f)},null,2),[[wt,o.v$.custom_invoice_acknowledgement.$model]]),c("label",wTo,m(e.$t("administration.users.detail.edit.author_info.custom_invoice_acknowledgement.label")),1)])]),b(l,{slug:i.slug,"onUpdate:slug":t[19]||(t[19]=f=>i.slug=f),author:e.user},null,8,["slug","author"]),c("div",$To,[c("div",null,[c("p",CTo,m(e.$t("author.organization.title")),1),b(d,{id:"is_organization",class:"ms-2",value:o.v$.is_organization.$model,"onUpdate:value":t[20]||(t[20]=f=>o.v$.is_organization.$model=f)},null,8,["value"])]),c("div",null,[c("p",STo,m(e.$t("user.vat_payer")),1),b(d,{id:"is_vat_payer",class:"ms-2",value:o.v$.is_vat_payer.$model,"onUpdate:value":t[21]||(t[21]=f=>o.v$.is_vat_payer.$model=f)},null,8,["value"])])])])]),_:1},8,["title"])):D("",!0)]),_:1},8,["onClose","onSubmit"])):D("",!0)}const ETo=U(cSo,[["render",TTo]]),ITo={components:{FormSidebar:_n},computed:{...Oe({user:"administrationUser/getDetail",auth:"auth/auth"})},methods:{resetPassword(){this.$store.dispatch("administrationUser/resetPassword",{user:this.user})}}},PTo={class:"mb-0"};function ATo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"user-password-reset",onSubmit:r.resetPassword,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("administration.users.detail.settings.password_reset.sidebar.title")),1)]),subtitle:F(()=>[z(m(e.user.first_name+" "+e.user.last_name),1)]),"submit-button":F(()=>[z(m(e.$t("administration.users.detail.settings.password_reset.sidebar.button")),1)]),content:F(()=>[c("p",PTo,m(e.$t("administration.users.detail.settings.password_reset.sidebar.text")),1)]),_:1},8,["onSubmit"])):D("",!0)}const DTo=U(ITo,[["render",ATo]]),xTo={components:{TransitionCollapseHeight:qo,UserBlock:dM},props:{user:{type:Object,default:()=>null},context:{type:String,default:null}},data(){return{email:"",users:[],showDropdown:!1,showScrollBar:!1,hoverIndex:-1}},computed:{...Oe({userDetail:"administrationUser/getDetail"}),userModel:{get(){return this.user},set(e){this.$emit("update:user",e)}},usersFiltered(){return this.context=="merge"?this.users.filter(e=>e.id!=this.userDetail.id):this.users}},mounted(){this.search=is.debounce(this.search,500)},methods:{search(){Ei.search(this.email).then(e=>{this.$store.commit("sidebar/setLoading",!1),this.users=e.data.data,this.showDropdown=!0}).catch(()=>{this.$store.commit("sidebar/setLoading",!1)})},select(){if(this.hoverIndex!=-1&&this.usersFiltered.length){let e=this.usersFiltered[this.hoverIndex];if(!this.canBePicked(e))return;this.userModel=e,this.email="",this.showDropdown=!1}},clear(){this.userModel=null,this.email="",this.showDropdown=!1},keyEnterHandler(){this.showDropdown?this.select():this.showDropdown=!0},keyUpHandler(){this.hoverIndex>0?this.hoverIndex-=1:this.hoverIndex=this.usersFiltered.length-1},keyDownHandler(){this.usersFiltered.length&&this.hoverIndex<this.usersFiltered.length-1?this.hoverIndex+=1:this.hoverIndex=0},canBePicked(e){return this.context=="merge"?e.can_be_merged:!0}},watch:{email(){if(!this.email){this.showDropdown=!1;return}this.search(),this.userModel=null}}},OTo={class:"d-flex align-items-center"},LTo={class:"form-group form-floating flex-grow-1"},MTo=["placeholder"],NTo={class:"position-relative w-100"},RTo={key:0},jTo=["onMouseover","onMouseleave"],FTo={key:1,class:"px-3 py-2"},zTo={for:"user-email-search",class:"form-label"},UTo={key:0,class:"bg-primary-5 border-radius-5px p-3 mt-4"},BTo={class:"d-flex justify-content-between align-items-center mb-2"},HTo={class:"text-gray-800 fw-medium mb-0"};function VTo(e,t,n,o,i,r){const s=y("app-icon"),a=y("UserBlock"),l=y("TransitionCollapseHeight");return h(),g("div",null,[c("div",OTo,[c("div",LTo,[c("div",{class:"input-group",onFocusout:t[9]||(t[9]=()=>i.showDropdown=!1)},[xe(c("input",{class:"form-control mh-3rem border-end-0",id:"user-email-search",name:"user-email-search",type:"text",placeholder:e.$t("user.search_by_email"),"onUpdate:modelValue":t[0]||(t[0]=d=>i.email=d),autocomplete:"off",onKeyup:[t[1]||(t[1]=bs((...d)=>r.keyEnterHandler&&r.keyEnterHandler(...d),["enter"])),t[2]||(t[2]=bs(()=>i.showDropdown=!1,["esc"]))],onKeydown:[t[3]||(t[3]=bs((...d)=>r.keyUpHandler&&r.keyUpHandler(...d),["up"])),t[4]||(t[4]=bs((...d)=>r.keyDownHandler&&r.keyDownHandler(...d),["down"]))]},null,40,MTo),[[wt,i.email]]),c("button",{class:"input-group-text text-primary border-radius-4px border-start-0 cursor-pointer",onClick:t[5]||(t[5]=()=>i.showDropdown=!0)},[b(s,{icon:"search",height:"24",width:"24"})]),c("div",NTo,[b(l,{onOpened:t[7]||(t[7]=()=>i.showScrollBar=!0),onClosed:t[8]||(t[8]=()=>i.showScrollBar=!1)},{default:F(()=>[i.showDropdown?(h(),g("div",{key:0,class:J(["position-absolute z-index-100 w-100 bg-white border border-primary-20 border-2 border-radius-4px mt-2 mh-2rem py-2 shadow-low maxh-25rem",i.showScrollBar?"overflow-auto":"overflow-hidden"])},[r.usersFiltered.length?(h(),g("div",RTo,[(h(!0),g(pe,null,Me(r.usersFiltered,(d,u)=>(h(),g("div",{key:u,class:J(["px-3 py-2",{"bg-primary-10":i.hoverIndex==u,"cursor-pointer":r.canBePicked(d)}]),onMouseover:f=>i.hoverIndex=u,onMouseleave:f=>i.hoverIndex=u,onMousedown:t[6]||(t[6]=(...f)=>r.select&&r.select(...f))},[b(a,{user:d,active:r.canBePicked(d),"icon-shape":"circle"},null,8,["user","active"])],42,jTo))),128))])):(h(),g("div",FTo,m(e.$t("public.not_found")),1))],2)):D("",!0)]),_:1})])],32),c("label",zTo,m(e.$t("user.account.newly_connected")),1)])]),r.userModel?(h(),g("div",UTo,[c("div",BTo,[c("p",HTo,m(e.$t("user.account_selected")),1),c("div",{class:"cursor-pointer",onClick:t[10]||(t[10]=(...d)=>r.clear&&r.clear(...d))},[b(s,{height:"20",width:"20",icon:"close-circle",class:"text-gray-700"})])]),b(a,{user:r.userModel,"icon-shape":"circle"},null,8,["user"])])):D("",!0)])}const Ude=U(xTo,[["render",VTo]]),qTo={components:{FormSidebar:_n,InputEmail:Cde,UserPicker:Ude},computed:{...Oe({user:"administrationUser/getDetail",auth:"auth/auth"})},data(){return{userToMerge:null}},methods:{merge(){this.userToMerge?this.$store.dispatch("administrationUser/merge",{userId:this.user.id,userToMergeId:this.userToMerge.id}).then(()=>{this.userToMerge=null}):window.flash(this.$t("user.not_selected"),"error")},close(){this.userToMerge=null}}},YTo={class:"d-flex flex-column gap-4"},WTo={key:0,class:"bg-warning-light rounded p-3"},GTo={class:"fw-bold"},ZTo={class:"fw-medium mb-0"};function KTo(e,t,n,o,i,r){const s=y("InputEmail"),a=y("UserPicker"),l=y("FormSidebar");return e.auth.is_admin?(h(),W(l,{key:0,id:"user-merge",onSubmit:r.merge,onClose:r.close},{title:F(()=>[z(m(e.$t("user.merge.title")),1)]),subtitle:F(()=>[z(m(e.user.first_name+" "+e.user.last_name),1)]),"submit-button":F(()=>[z(m(e.$t("public.connect")),1)]),content:F(()=>{var d;return[c("div",YTo,[b(s,{value:e.user.email,"onUpdate:value":t[0]||(t[0]=u=>e.user.email=u),label:e.$t("user.account.main.title"),placeholder:e.$t("user.email"),disabled:""},null,8,["value","label","placeholder"]),b(a,{user:i.userToMerge,"onUpdate:user":t[1]||(t[1]=u=>i.userToMerge=u),context:"merge"},null,8,["user"]),((d=i.userToMerge)==null?void 0:d.role)=="guest"?(h(),g("div",WTo,[c("h5",GTo,m(e.$t("user.merge.warning.title")),1),c("p",ZTo,m(e.$t("user.merge.warning.text")),1)])):D("",!0)])]}),_:1},8,["onSubmit","onClose"])):D("",!0)}const JTo=U(qTo,[["render",KTo]]),XTo={components:{FormSidebar:_n},computed:{...sn({user:e=>{var t;return(t=e.sidebar.data)==null?void 0:t.user},isFromTable:e=>{var t;return(t=e.sidebar.data)==null?void 0:t.isFromTable}}),...Oe({auth:"auth/auth"})},methods:{activate(){this.$store.dispatch("administrationUser/activate",{user:this.user,isFromTable:this.isFromTable}).then(()=>{this.$store.dispatch("sidebar/close")})}}},QTo={key:0,class:"bg-warning-light rounded p-3"},eEo={class:"fw-bold"},tEo={class:"fw-medium mb-0"};function nEo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"user-activate",onSubmit:r.activate},{title:F(()=>[z(m(e.$t("user.activate.title")),1)]),subtitle:F(()=>[z(m(e.user.first_name+" "+e.user.last_name),1)]),"submit-button":F(()=>[z(m(e.$t("public.activate")),1)]),content:F(()=>[c("p",null,m(e.$t("user.activate.text")),1),e.user.role=="guest"?(h(),g("div",QTo,[c("h5",eEo,m(e.$t("user.activate.warning.title")),1),c("p",tEo,m(e.$t("user.activate.warning.text")),1)])):D("",!0)]),_:1},8,["onSubmit"])):D("",!0)}const oEo=U(XTo,[["render",nEo]]),iEo={components:{FormSidebar:_n,SidebarBlock:rb},data(){return{primaryColor:window.primaryColor,form:{name:null,address:null,city:null,postcode:null,capacity:null,izo:null,red_izo:null,ico:null,vat_id:null}}},validations(){return{form:{name:{required:Yt,maxLength:hi(190)},address:{required:Yt,maxLength:hi(190)},city:{required:Yt,maxLength:hi(190)},postcode:{required:Yt,maxLength:hi(190)},capacity:{required:Yt},izo:{required:Yt,maxLength:hi(190)},red_izo:{required:Yt,maxLength:hi(190)},ico:{required:Yt,maxLength:hi(190)},vat_id:{maxLength:hi(190)}}}},computed:{...Oe({auth:"auth/auth"})},methods:{create(){this.v$.form.$touch(),!this.v$.form.$invalid&&this.$store.dispatch("administrationSchool/create",{school:this.form,filters:Mi.getFilters(this.$route.query)}).then(()=>{this.v$.form.$reset()})}},setup(){return{v$:Pn()}}},rEo={class:"form-group form-floating mb-4"},sEo=["placeholder","v"],aEo={for:"name",style:{float:"left"},class:"form-label"},lEo={key:0,class:"invalid-feedback"},cEo={key:1,class:"invalid-feedback"},dEo={class:"form-group form-floating mb-4"},uEo=["placeholder","v"],hEo={for:"capacity",class:"form-label"},fEo={key:0,class:"invalid-feedback"},mEo={class:"form-group form-floating mb-4"},pEo=["placeholder","v"],gEo={for:"address",class:"form-label"},vEo={key:0,class:"invalid-feedback"},_Eo={key:1,class:"invalid-feedback"},yEo={class:"row"},bEo={class:"col-sm-6 col-12"},kEo={class:"form-group form-floating mb-4"},wEo=["placeholder","v"],$Eo={for:"city",class:"form-label"},CEo={key:0,class:"invalid-feedback"},SEo={key:1,class:"invalid-feedback"},TEo={class:"col-sm-6 col-12 mt-sm-0 mb-4"},EEo={class:"form-group form-floating"},IEo=["placeholder","v"],PEo={for:"postcode",class:"form-label"},AEo={key:0,class:"invalid-feedback"},DEo={key:1,class:"invalid-feedback"},xEo={class:"row"},OEo={class:"col-sm-6 col-12"},LEo={class:"form-group form-floating mb-4"},MEo=["placeholder","v"],NEo={for:"ico",class:"form-label"},REo={key:0,class:"invalid-feedback"},jEo={key:1,class:"invalid-feedback"},FEo={class:"col-sm-6 col-12 mt-sm-0"},zEo={class:"form-group form-floating mb-4"},UEo=["placeholder","v"],BEo={for:"vat_id",class:"form-label"},HEo={key:0,class:"invalid-feedback"},VEo={class:"row"},qEo={class:"col-sm-6 col-12"},YEo={class:"form-group form-floating mb-4"},WEo=["placeholder","v"],GEo={for:"izo",class:"form-label"},ZEo={key:0,class:"invalid-feedback"},KEo={key:1,class:"invalid-feedback"},JEo={class:"col-sm-6 col-12 mt-sm-0"},XEo={class:"form-group form-floating mb-4"},QEo=["placeholder","v"],eIo={for:"red_izo",class:"form-label"},tIo={key:0,class:"invalid-feedback"},nIo={key:1,class:"invalid-feedback"};function oIo(e,t,n,o,i,r){const s=y("SidebarBlock"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"school-create",onSubmit:r.create},{title:F(()=>[z(m(e.$t("administration.school.add.header.title")),1)]),"submit-button":F(()=>[z(m(e.$t("administration.school.add.header.add")),1)]),content:F(()=>[b(s,{title:e.$t("administration.school.add.general.title")},{default:F(()=>[c("div",rEo,[xe(c("input",{id:"name",class:J({"form-control":!0,"is-invalid":o.v$.form.name.$error}),placeholder:e.$t("school.admin.add_school.form.name.placeholder"),type:"text",name:"name","onUpdate:modelValue":t[0]||(t[0]=l=>i.form.name=l),v:o.v$.form.name,onInput:t[1]||(t[1]=l=>o.v$.form.name.$touch())},null,42,sEo),[[wt,i.form.name]]),c("label",aEo,m(e.$t("school.admin.add_school.form.name.label")),1),o.v$.form.name.$error&&o.v$.form.name.required.$invalid?(h(),g("span",lEo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.name.$error&&o.v$.form.name.maxLength.$invalid?(h(),g("span",cEo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)]),c("div",dEo,[xe(c("input",{id:"capacity",class:J({"form-control":!0,"is-invalid":o.v$.form.capacity.$error}),placeholder:e.$t("school.admin.add_school.form.capacity.placeholder"),type:"number",min:"0",name:"capacity","onUpdate:modelValue":t[2]||(t[2]=l=>i.form.capacity=l),v:o.v$.form.capacity,onInput:t[3]||(t[3]=l=>o.v$.form.capacity.$touch())},null,42,uEo),[[wt,i.form.capacity]]),c("label",hEo,m(e.$t("school.admin.add_school.form.capacity.label")),1),o.v$.form.capacity.$error&&o.v$.form.capacity.required.$invalid?(h(),g("span",fEo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0)])]),_:1},8,["title"]),b(s,{title:e.$t("administration.school.add.address.title")},{default:F(()=>[c("div",mEo,[xe(c("input",{id:"address",class:J({"form-control":!0,"is-invalid":o.v$.form.address.$error}),placeholder:e.$t("school.admin.add_school.form.address.placeholder"),type:"text",name:"address","onUpdate:modelValue":t[4]||(t[4]=l=>i.form.address=l),v:o.v$.form.address,onInput:t[5]||(t[5]=l=>o.v$.form.address.$touch())},null,42,pEo),[[wt,i.form.address]]),c("label",gEo,m(e.$t("school.admin.add_school.form.address.label")),1),o.v$.form.address.$error&&o.v$.form.address.required.$invalid?(h(),g("span",vEo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.address.$error&&o.v$.form.address.maxLength.$invalid?(h(),g("span",_Eo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)]),c("div",yEo,[c("div",bEo,[c("div",kEo,[xe(c("input",{id:"city",class:J({"form-control":!0,"is-invalid":o.v$.form.city.$error}),placeholder:e.$t("school.admin.add_school.form.city.placeholder"),type:"text",name:"city","onUpdate:modelValue":t[6]||(t[6]=l=>i.form.city=l),v:o.v$.form.city,onInput:t[7]||(t[7]=l=>o.v$.form.city.$touch())},null,42,wEo),[[wt,i.form.city]]),c("label",$Eo,m(e.$t("school.admin.add_school.form.city.label")),1),o.v$.form.city.$error&&o.v$.form.city.required.$invalid?(h(),g("span",CEo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.city.$error&&o.v$.form.city.maxLength.$invalid?(h(),g("span",SEo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])]),c("div",TEo,[c("div",EEo,[xe(c("input",{id:"postcode",class:J({"form-control":!0,"is-invalid":o.v$.form.postcode.$error}),placeholder:e.$t("school.admin.add_school.form.postcode.placeholder"),type:"text",name:"postcode","onUpdate:modelValue":t[8]||(t[8]=l=>i.form.postcode=l),v:o.v$.form.postcode,onInput:t[9]||(t[9]=l=>o.v$.form.postcode.$touch())},null,42,IEo),[[wt,i.form.postcode]]),c("label",PEo,m(e.$t("school.admin.add_school.form.postcode.label")),1),o.v$.form.postcode.$error&&o.v$.form.postcode.required.$invalid?(h(),g("span",AEo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.postcode.$error&&o.v$.form.postcode.maxLength.$invalid?(h(),g("span",DEo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])])])]),_:1},8,["title"]),b(s,{title:e.$t("administration.school.add.organization.title")},{default:F(()=>[c("div",xEo,[c("div",OEo,[c("div",LEo,[xe(c("input",{id:"ico",class:J({"form-control":!0,"is-invalid":o.v$.form.ico.$error}),placeholder:e.$t("school.admin.add_school.form.ico.placeholder"),type:"text",name:"ico","onUpdate:modelValue":t[10]||(t[10]=l=>i.form.ico=l),v:o.v$.form.ico,onInput:t[11]||(t[11]=l=>o.v$.form.ico.$touch())},null,42,MEo),[[wt,i.form.ico]]),c("label",NEo,m(e.$t("school.admin.add_school.form.ico.label")),1),o.v$.form.ico.$error&&o.v$.form.ico.required.$invalid?(h(),g("span",REo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.ico.$error&&o.v$.form.ico.maxLength.$invalid?(h(),g("span",jEo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])]),c("div",FEo,[c("div",zEo,[xe(c("input",{id:"vat_id",class:J({"form-control":!0,"is-invalid":o.v$.form.vat_id.$error}),placeholder:e.$t("school.admin.add_school.form.vat_id.placeholder"),type:"text",name:"vat_id","onUpdate:modelValue":t[12]||(t[12]=l=>i.form.vat_id=l),v:o.v$.form.vat_id,onInput:t[13]||(t[13]=l=>o.v$.form.vat_id.$touch())},null,42,UEo),[[wt,i.form.vat_id]]),c("label",BEo,m(e.$t("school.admin.add_school.form.vat_id.label")),1),o.v$.form.vat_id.$error&&o.v$.form.vat_id.maxLength.$invalid?(h(),g("span",HEo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])])]),c("div",VEo,[c("div",qEo,[c("div",YEo,[xe(c("input",{id:"izo",class:J({"form-control":!0,"is-invalid":o.v$.form.izo.$error}),placeholder:e.$t("school.admin.add_school.form.izo.placeholder"),type:"text",name:"izo","onUpdate:modelValue":t[14]||(t[14]=l=>i.form.izo=l),v:o.v$.form.izo,onInput:t[15]||(t[15]=l=>o.v$.form.izo.$touch())},null,42,WEo),[[wt,i.form.izo]]),c("label",GEo,m(e.$t("school.admin.add_school.form.izo.label")),1),o.v$.form.izo.$error&&o.v$.form.izo.required.$invalid?(h(),g("span",ZEo,m(e.$t("school.admin.add_school.errors.required_izo")),1)):D("",!0),o.v$.form.izo.$error&&o.v$.form.izo.maxLength.$invalid?(h(),g("span",KEo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])]),c("div",JEo,[c("div",XEo,[xe(c("input",{id:"red_izo",class:J({"form-control":!0,"is-invalid":o.v$.form.red_izo.$error}),placeholder:e.$t("school.admin.add_school.form.red_izo.placeholder"),type:"text",name:"red_izo","onUpdate:modelValue":t[16]||(t[16]=l=>i.form.red_izo=l),v:o.v$.form.red_izo,onInput:t[17]||(t[17]=l=>o.v$.form.red_izo.$touch())},null,42,QEo),[[wt,i.form.red_izo]]),c("label",eIo,m(e.$t("school.admin.add_school.form.red_izo.label")),1),o.v$.form.red_izo.$error&&o.v$.form.red_izo.required.$invalid?(h(),g("span",tIo,m(e.$t("school.admin.add_school.errors.required_izo")),1)):D("",!0),o.v$.form.red_izo.$error&&o.v$.form.red_izo.maxLength.$invalid?(h(),g("span",nIo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])])])]),_:1},8,["title"])]),_:1},8,["onSubmit"])):D("",!0)}const iIo=U(iEo,[["render",oIo]]),rIo={components:{FormSidebar:_n,SidebarBlock:rb},computed:{...Oe({school:"administrationSchool/getDetail",auth:"auth/auth"})},data(){return{primaryColor:window.primaryColor,form:{name:null,address:null,city:null,postcode:null,capacity:null,izo:null,red_izo:null,ico:null,vat_id:null,invoice_company:null,invoice_address:null,invoice_city:null,invoice_psc:null,invoice_ico:null,invoice_dic:null,accounting_email:null}}},validations(){return{form:{name:{required:Yt,maxLength:hi(190)},address:{required:Yt,maxLength:hi(190)},city:{required:Yt,maxLength:hi(190)},postcode:{required:Yt,maxLength:hi(190)},capacity:{required:Yt},izo:{required:Yt,maxLength:hi(190)},red_izo:{required:Yt,maxLength:hi(190)},ico:{required:Yt,maxLength:hi(190)},vat_id:{maxLength:hi(190)},invoice_company:{maxLength:hi(190)},invoice_address:{maxLength:hi(190)},invoice_city:{maxLength:hi(190)},invoice_psc:{maxLength:hi(190)},invoice_ico:{maxLength:hi(190)},invoice_dic:{maxLength:hi(190)},accounting_email:{email:Rf}}}},methods:{edit(){this.$store.dispatch("administrationSchool/update",{school:this.school.id,update:this.form})}},mounted(){this.form=window._.cloneDeep(this.school)},watch:{school(e){this.form=window._.cloneDeep(e)}},setup(){return{v$:Pn()}}},sIo={class:"form-group form-floating mb-4"},aIo=["placeholder","v"],lIo={for:"name",style:{float:"left"},class:"form-label"},cIo={key:0,class:"invalid-feedback"},dIo={key:1,class:"invalid-feedback"},uIo={class:"form-group form-floating mb-4"},hIo=["placeholder","v"],fIo={for:"capacity",class:"form-label"},mIo={key:0,class:"invalid-feedback"},pIo={class:"form-group form-floating mb-4"},gIo=["placeholder","v"],vIo={for:"address",class:"form-label"},_Io={key:0,class:"invalid-feedback"},yIo={key:1,class:"invalid-feedback"},bIo={class:"row"},kIo={class:"col-sm-6 col-12"},wIo={class:"form-group form-floating mb-4"},$Io=["placeholder","v"],CIo={for:"city",class:"form-label"},SIo={key:0,class:"invalid-feedback"},TIo={key:1,class:"invalid-feedback"},EIo={class:"col-sm-6 col-12 mt-sm-0 mb-4"},IIo={class:"form-group form-floating"},PIo=["placeholder","v"],AIo={for:"postcode",class:"form-label"},DIo={key:0,class:"invalid-feedback"},xIo={key:1,class:"invalid-feedback"},OIo={class:"row"},LIo={class:"col-sm-6 col-12"},MIo={class:"form-group form-floating mb-4"},NIo=["placeholder","v"],RIo={for:"ico",class:"form-label"},jIo={key:0,class:"invalid-feedback"},FIo={key:1,class:"invalid-feedback"},zIo={class:"col-sm-6 col-12 mt-sm-0"},UIo={class:"form-group form-floating mb-4"},BIo=["placeholder","v"],HIo={for:"vat_id",class:"form-label"},VIo={key:0,class:"invalid-feedback"},qIo={class:"row"},YIo={class:"col-sm-6 col-12"},WIo={class:"form-group form-floating mb-4"},GIo=["placeholder","v"],ZIo={for:"izo",class:"form-label"},KIo={key:0,class:"invalid-feedback"},JIo={key:1,class:"invalid-feedback"},XIo={class:"col-sm-6 col-12 mt-sm-0"},QIo={class:"form-group form-floating mb-4"},ePo=["placeholder","v"],tPo={for:"red_izo",class:"form-label"},nPo={key:0,class:"invalid-feedback"},oPo={key:1,class:"invalid-feedback"},iPo={class:"form-floating input-group mb-4"},rPo=["placeholder"],sPo={for:"accounting_email",class:"form-label"},aPo={class:"form-group form-floating mb-4"},lPo=["placeholder","v"],cPo={for:"invoice_company",class:"form-label"},dPo={key:0,class:"invalid-feedback"},uPo={class:"form-group form-floating mb-4"},hPo=["placeholder","v"],fPo={for:"invoice_address",class:"form-label"},mPo={key:0,class:"invalid-feedback"},pPo={class:"row"},gPo={class:"col-sm-6 col-12"},vPo={class:"form-group form-floating mb-4"},_Po=["placeholder","v"],yPo={for:"invoice_city",class:"form-label"},bPo={key:0,class:"invalid-feedback"},kPo={class:"col-sm-6 col-12 mt-sm-0 mb-4"},wPo={class:"form-group form-floating"},$Po=["placeholder","v"],CPo={for:"invoice_psc",class:"form-label"},SPo={key:0,class:"invalid-feedback"},TPo={class:"row"},EPo={class:"col-sm-6 col-12"},IPo={class:"form-group form-floating mb-4"},PPo=["placeholder","v"],APo={for:"invoice_ico",class:"form-label"},DPo={key:0,class:"invalid-feedback"},xPo={class:"col-sm-6 col-12 mt-sm-0 mb-4"},OPo={class:"form-group form-floating"},LPo=["placeholder","v"],MPo={for:"invoice_ico",class:"form-label"},NPo={key:0,class:"invalid-feedback"};function RPo(e,t,n,o,i,r){const s=y("SidebarBlock"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"school-update",onSubmit:r.edit},{title:F(()=>[z(m(e.$t("administration.school.edit.title")),1)]),subtitle:F(()=>[z(m(e.school.long_name),1)]),"submit-button":F(()=>[z(m(e.$t("administration.save")),1)]),content:F(()=>[b(s,{title:e.$t("administration.school.add.general.title")},{default:F(()=>[c("div",sIo,[xe(c("input",{id:"name",class:J({"form-control":!0,"is-invalid":o.v$.form.name.$error}),placeholder:e.$t("school.admin.add_school.form.name.placeholder"),type:"text",name:"name","onUpdate:modelValue":t[0]||(t[0]=l=>i.form.name=l),v:o.v$.form.name,onInput:t[1]||(t[1]=l=>o.v$.form.name.$touch())},null,42,aIo),[[wt,i.form.name]]),c("label",lIo,m(e.$t("school.admin.add_school.form.name.label")),1),o.v$.form.name.$error&&o.v$.form.name.required.$invalid?(h(),g("span",cIo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.name.$error&&o.v$.form.name.maxLength.$invalid?(h(),g("span",dIo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)]),c("div",uIo,[xe(c("input",{id:"capacity",class:J({"form-control":!0,"is-invalid":o.v$.form.capacity.$error}),placeholder:e.$t("school.admin.add_school.form.capacity.placeholder"),type:"number",min:"0",name:"capacity","onUpdate:modelValue":t[2]||(t[2]=l=>i.form.capacity=l),v:o.v$.form.capacity,onInput:t[3]||(t[3]=l=>o.v$.form.capacity.$touch())},null,42,hIo),[[wt,i.form.capacity]]),c("label",fIo,m(e.$t("school.admin.add_school.form.capacity.label")),1),o.v$.form.capacity.$error&&o.v$.form.capacity.required.$invalid?(h(),g("span",mIo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0)])]),_:1},8,["title"]),b(s,{title:e.$t("administration.school.add.address.title")},{default:F(()=>[c("div",pIo,[xe(c("input",{id:"address",class:J({"form-control":!0,"is-invalid":o.v$.form.address.$error}),placeholder:e.$t("school.admin.add_school.form.address.placeholder"),type:"text",name:"address","onUpdate:modelValue":t[4]||(t[4]=l=>i.form.address=l),v:o.v$.form.address,onInput:t[5]||(t[5]=l=>o.v$.form.address.$touch())},null,42,gIo),[[wt,i.form.address]]),c("label",vIo,m(e.$t("school.admin.add_school.form.address.label")),1),o.v$.form.address.$error&&o.v$.form.address.required.$invalid?(h(),g("span",_Io,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.address.$error&&o.v$.form.address.maxLength.$invalid?(h(),g("span",yIo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)]),c("div",bIo,[c("div",kIo,[c("div",wIo,[xe(c("input",{id:"city",class:J({"form-control":!0,"is-invalid":o.v$.form.city.$error}),placeholder:e.$t("school.admin.add_school.form.city.placeholder"),type:"text",name:"city","onUpdate:modelValue":t[6]||(t[6]=l=>i.form.city=l),v:o.v$.form.city,onInput:t[7]||(t[7]=l=>o.v$.form.city.$touch())},null,42,$Io),[[wt,i.form.city]]),c("label",CIo,m(e.$t("school.admin.add_school.form.city.label")),1),o.v$.form.city.$error&&o.v$.form.city.required.$invalid?(h(),g("span",SIo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.city.$error&&o.v$.form.city.maxLength.$invalid?(h(),g("span",TIo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])]),c("div",EIo,[c("div",IIo,[xe(c("input",{id:"postcode",class:J({"form-control":!0,"is-invalid":o.v$.form.postcode.$error}),placeholder:e.$t("school.admin.add_school.form.postcode.placeholder"),type:"text",name:"postcode","onUpdate:modelValue":t[8]||(t[8]=l=>i.form.postcode=l),v:o.v$.form.postcode,onInput:t[9]||(t[9]=l=>o.v$.form.postcode.$touch())},null,42,PIo),[[wt,i.form.postcode]]),c("label",AIo,m(e.$t("school.admin.add_school.form.postcode.label")),1),o.v$.form.postcode.$error&&o.v$.form.postcode.required.$invalid?(h(),g("span",DIo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.postcode.$error&&o.v$.form.postcode.maxLength.$invalid?(h(),g("span",xIo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])])])]),_:1},8,["title"]),b(s,{title:e.$t("administration.school.add.organization.title")},{default:F(()=>[c("div",OIo,[c("div",LIo,[c("div",MIo,[xe(c("input",{id:"ico",class:J({"form-control":!0,"is-invalid":o.v$.form.ico.$error}),placeholder:e.$t("school.admin.add_school.form.ico.placeholder"),type:"text",name:"ico","onUpdate:modelValue":t[10]||(t[10]=l=>i.form.ico=l),v:o.v$.form.ico,onInput:t[11]||(t[11]=l=>o.v$.form.ico.$touch())},null,42,NIo),[[wt,i.form.ico]]),c("label",RIo,m(e.$t("school.admin.add_school.form.ico.label")),1),o.v$.form.ico.$error&&o.v$.form.ico.required.$invalid?(h(),g("span",jIo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.ico.$error&&o.v$.form.ico.maxLength.$invalid?(h(),g("span",FIo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])]),c("div",zIo,[c("div",UIo,[xe(c("input",{id:"vat_id",class:J({"form-control":!0,"is-invalid":o.v$.form.vat_id.$error}),placeholder:e.$t("school.admin.add_school.form.vat_id.placeholder"),type:"text",name:"vat_id","onUpdate:modelValue":t[12]||(t[12]=l=>i.form.vat_id=l),v:o.v$.form.vat_id,onInput:t[13]||(t[13]=l=>o.v$.form.vat_id.$touch())},null,42,BIo),[[wt,i.form.vat_id]]),c("label",HIo,m(e.$t("school.admin.add_school.form.vat_id.label")),1),o.v$.form.vat_id.$error&&o.v$.form.vat_id.maxLength.$invalid?(h(),g("span",VIo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])])]),c("div",qIo,[c("div",YIo,[c("div",WIo,[xe(c("input",{id:"izo",class:J({"form-control":!0,"is-invalid":o.v$.form.izo.$error}),placeholder:e.$t("school.admin.add_school.form.izo.placeholder"),type:"text",name:"izo","onUpdate:modelValue":t[14]||(t[14]=l=>i.form.izo=l),v:o.v$.form.izo,onInput:t[15]||(t[15]=l=>o.v$.form.izo.$touch())},null,42,GIo),[[wt,i.form.izo]]),c("label",ZIo,m(e.$t("school.admin.add_school.form.izo.label")),1),o.v$.form.izo.$error&&o.v$.form.izo.required.$invalid?(h(),g("span",KIo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.izo.$error&&o.v$.form.izo.maxLength.$invalid?(h(),g("span",JIo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])]),c("div",XIo,[c("div",QIo,[xe(c("input",{id:"red_izo",class:J({"form-control":!0,"is-invalid":o.v$.form.red_izo.$error}),placeholder:e.$t("school.admin.add_school.form.red_izo.placeholder"),type:"text",name:"red_izo","onUpdate:modelValue":t[16]||(t[16]=l=>i.form.red_izo=l),v:o.v$.form.red_izo,onInput:t[17]||(t[17]=l=>o.v$.form.red_izo.$touch())},null,42,ePo),[[wt,i.form.red_izo]]),c("label",tPo,m(e.$t("school.admin.add_school.form.red_izo.label")),1),o.v$.form.red_izo.$error&&o.v$.form.red_izo.required.$invalid?(h(),g("span",nPo,m(e.$t("school.admin.add_school.errors.required")),1)):D("",!0),o.v$.form.red_izo.$error&&o.v$.form.red_izo.maxLength.$invalid?(h(),g("span",oPo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])])])]),_:1},8,["title"]),b(s,{title:e.$t("administration.school.add.accounting.title")},{default:F(()=>[c("div",iPo,[xe(c("input",{type:"email",class:J(["border-end-0",{"form-control":!0,"is-invalid":o.v$.form.accounting_email.$error}]),id:"accounting_email",name:"accounting_email","onUpdate:modelValue":t[18]||(t[18]=l=>o.v$.form.accounting_email.$model=l),placeholder:e.$t("administration.school.add.accounting.email")},null,10,rPo),[[wt,o.v$.form.accounting_email.$model]]),c("label",sPo,m(e.$t("administration.school.add.accounting.email")),1)])]),_:1},8,["title"]),b(s,{title:e.$t("administration.school.detail.invoice_info.title")},{default:F(()=>[c("div",aPo,[xe(c("input",{id:"invoice_company",class:J({"form-control":!0,"is-invalid":o.v$.form.invoice_company.$error}),placeholder:e.$t("administration.school.detail.invoice_info.invoice_company"),type:"text",name:"invoice_company","onUpdate:modelValue":t[19]||(t[19]=l=>i.form.invoice_company=l),v:o.v$.form.invoice_company,onInput:t[20]||(t[20]=l=>o.v$.form.invoice_company.$touch())},null,42,lPo),[[wt,i.form.invoice_company]]),c("label",cPo,m(e.$t("administration.school.detail.invoice_info.invoice_company")),1),o.v$.form.invoice_company.$error&&o.v$.form.invoice_company.maxLength.$invalid?(h(),g("span",dPo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)]),c("div",uPo,[xe(c("input",{id:"invoice_address",class:J({"form-control":!0,"is-invalid":o.v$.form.invoice_address.$error}),placeholder:e.$t("administration.school.detail.invoice_info.invoice_address"),type:"text",name:"invoice_address","onUpdate:modelValue":t[21]||(t[21]=l=>i.form.invoice_address=l),v:o.v$.form.invoice_address,onInput:t[22]||(t[22]=l=>o.v$.form.invoice_address.$touch())},null,42,hPo),[[wt,i.form.invoice_address]]),c("label",fPo,m(e.$t("administration.school.detail.invoice_info.invoice_address")),1),o.v$.form.invoice_address.$error&&o.v$.form.invoice_address.maxLength.$invalid?(h(),g("span",mPo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)]),c("div",pPo,[c("div",gPo,[c("div",vPo,[xe(c("input",{id:"invoice_city",class:J({"form-control":!0,"is-invalid":o.v$.form.invoice_city.$error}),placeholder:e.$t("administration.school.detail.invoice_info.invoice_city"),type:"text",name:"invoice_city","onUpdate:modelValue":t[23]||(t[23]=l=>i.form.invoice_city=l),v:o.v$.form.invoice_city,onInput:t[24]||(t[24]=l=>o.v$.form.invoice_city.$touch())},null,42,_Po),[[wt,i.form.invoice_city]]),c("label",yPo,m(e.$t("administration.school.detail.invoice_info.invoice_city")),1),o.v$.form.invoice_city.$error&&o.v$.form.invoice_city.maxLength.$invalid?(h(),g("span",bPo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])]),c("div",kPo,[c("div",wPo,[xe(c("input",{id:"invoice_psc",class:J({"form-control":!0,"is-invalid":o.v$.form.invoice_psc.$error}),placeholder:e.$t("administration.school.detail.invoice_info.invoice_psc"),type:"text",name:"invoice_psc","onUpdate:modelValue":t[25]||(t[25]=l=>i.form.invoice_psc=l),v:o.v$.form.invoice_psc,onInput:t[26]||(t[26]=l=>o.v$.form.invoice_psc.$touch())},null,42,$Po),[[wt,i.form.invoice_psc]]),c("label",CPo,m(e.$t("administration.school.detail.invoice_info.invoice_psc")),1),o.v$.form.invoice_psc.$error&&o.v$.form.invoice_psc.maxLength.$invalid?(h(),g("span",SPo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])])]),c("div",TPo,[c("div",EPo,[c("div",IPo,[xe(c("input",{id:"invoice_ico",class:J({"form-control":!0,"is-invalid":o.v$.form.invoice_ico.$error}),placeholder:e.$t("administration.school.detail.invoice_info.invoice_ico"),type:"text",name:"invoice_ico","onUpdate:modelValue":t[27]||(t[27]=l=>i.form.invoice_ico=l),v:o.v$.form.invoice_ico,onInput:t[28]||(t[28]=l=>o.v$.form.invoice_ico.$touch())},null,42,PPo),[[wt,i.form.invoice_ico]]),c("label",APo,m(e.$t("administration.school.detail.invoice_info.invoice_ico")),1),o.v$.form.invoice_ico.$error&&o.v$.form.invoice_ico.maxLength.$invalid?(h(),g("span",DPo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])]),c("div",xPo,[c("div",OPo,[xe(c("input",{id:"invoice_ico",class:J({"form-control":!0,"is-invalid":o.v$.form.invoice_dic.$error}),placeholder:e.$t("administration.school.detail.invoice_info.invoice_dic"),type:"text",name:"invoice_ico","onUpdate:modelValue":t[29]||(t[29]=l=>i.form.invoice_dic=l),v:o.v$.form.invoice_dic,onInput:t[30]||(t[30]=l=>o.v$.form.invoice_dic.$touch())},null,42,LPo),[[wt,i.form.invoice_dic]]),c("label",MPo,m(e.$t("administration.school.detail.invoice_info.invoice_dic")),1),o.v$.form.invoice_dic.$error&&o.v$.form.invoice_dic.maxLength.$invalid?(h(),g("span",NPo,m(e.$t("school.admin.add_school.errors.max_chars")),1)):D("",!0)])])])]),_:1},8,["title"])]),_:1},8,["onSubmit"])):D("",!0)}const jPo=U(rIo,[["render",RPo]]),FPo={components:{FormSidebar:_n},data(){return{note:""}},computed:{...Oe({data:"sidebar/getData",auth:"auth/auth"})},methods:{update(){this.$store.dispatch("administrationSchool/adminNoteUpdate",{id:this.data.school.id,note:this.note})}},mounted(){this.note=this.data.school.admin_note}},zPo={class:"form-group form-floating"},UPo=["placeholder"],BPo={class:"form-label"};function HPo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"school-admin-note-update",onSubmit:r.update},{title:F(()=>[z(m(e.data.school.admin_note?e.$t("school.comment.edit"):e.$t("school.comment.add")),1)]),subtitle:F(()=>[z(m(e.data.school.long_name),1)]),"submit-button":F(()=>[z(m(e.data.school.admin_note?e.$t("administration.save"):e.$t("administration.add")),1)]),content:F(()=>[c("div",zPo,[xe(c("textarea",{id:"note",class:J({"form-control":!0}),placeholder:e.$t("public.commentary_write"),name:"note","onUpdate:modelValue":t[0]||(t[0]=a=>i.note=a),rows:"10"},null,8,UPo),[[wt,i.note]]),c("label",BPo,m(e.$t("public.commentary")),1)])]),_:1},8,["onSubmit"])):D("",!0)}const VPo=U(FPo,[["render",HPo]]),qPo={components:{FormSidebar:_n},data(){return{amount:null}},computed:{...Oe({school:"administrationSchool/getDetail",auth:"auth/auth"})},methods:{create(){this.$store.dispatch("administrationSchoolOrder/creditOrderPlace",{id:this.school.id,amount:this.amount,filters:Mi.getFilters(this.$route.query)}).then(()=>{this.amount=null})}}},YPo={class:"mb-3"},WPo={class:"form-group form-floating"},GPo=["placeholder"],ZPo={for:"amount",class:"form-label"};function KPo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"school-credit-order-create-admin",onSubmit:r.create},{title:F(()=>[z(m(e.$t("administration.school.detail.list.finance.order.credit_order.sidepanel.title")),1)]),subtitle:F(()=>[z(m(e.school.long_name),1)]),"submit-button":F(()=>[z(m(e.$t("administration.school.detail.list.finance.order.credit_order.sidepanel.button")),1)]),content:F(()=>[c("div",YPo,m(e.$t("administration.school.detail.list.finance.order.credit_order.sidepanel.text")),1),c("div",WPo,[xe(c("input",{id:"amount",class:"form-control",placeholder:e.$t("administration.school.detail.list.finance.order.credit_order.sidepanel.placeholder"),type:"number",min:"1",name:"amount","onUpdate:modelValue":t[0]||(t[0]=a=>i.amount=a)},null,8,GPo),[[wt,i.amount]]),c("label",ZPo,m(e.$t("administration.school.detail.list.finance.order.credit_order.sidepanel.label")),1)])]),_:1},8,["onSubmit"])):D("",!0)}const JPo=U(qPo,[["render",KPo]]),XPo={components:{FormSidebar:_n,TabListNoVueRouter:JL},data(){return{amount:null,comment:"",primaryColor:window.primaryColor,type:"add",tabNames:["add","remove"],titles:[this.$t("administration.add"),this.$t("administration.remove")]}},computed:{...Oe({school:"administrationSchool/getDetail",auth:"auth/auth"}),budgetAfterChange(){return this.type=="add"?this.school.budget+this.amountNumber:Math.max(this.school.budget-this.amountNumber,0)},amountNumber(){let e=Number(this.amount);return Math.max(e,0)}},methods:{edit(){if(this.v$.$touch(),this.v$.$invalid)return;this.$store.commit("sidebar/setLoading",!0),(this.type=="add"?Gs.creditAdd:Gs.creditRemove)(this.school.id,{amount:this.amountNumber,comment:this.comment}).then(t=>{window.flash(t.data.message,"success"),this.$store.dispatch("sidebar/close"),this.$store.dispatch("administrationSchool/detail",{id:this.school.id}),this.$store.dispatch("administrationSchoolEmployee/index",{id:this.school.id,filters:Mi.getFilters(this.$route.query)})}).catch(t=>{this.$store.commit("sidebar/setLoading",!1),t.response.data.errors?Object.entries(t.response.data.errors).forEach(([,o])=>{o.forEach(i=>{window.flash(i,"error")})}):window.flash(t.response.data.message,"error")}).finally(()=>{this.reset()})},reset(){this.amount=1,this.comment=null,this.type="add",this.v$.$reset()}},validations(){return{amount:{required:Yt,minValue:Ra(1),maxValue:Vd(this.type=="add"?Number.POSITIVE_INFINITY:this.school.budget)},comment:{}}},setup(){return{v$:Pn()}},watch:{amount(e){e<=0&&(this.amount=null)}}},QPo={class:"form-group form-floating mb-4"},eAo=["placeholder"],tAo={for:"amount",class:"form-label"},nAo={key:0,class:"invalid-feedback"},oAo={key:1,class:"invalid-feedback"},iAo={key:2,class:"invalid-feedback"},rAo={class:"medium"},sAo={class:"form-group form-floating"},aAo=["placeholder"],lAo={class:"form-label"};function cAo(e,t,n,o,i,r){const s=y("TabListNoVueRouter"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"school-credit-update",onSubmit:r.edit,"submit-color":i.type=="add"?"success":"danger"},{title:F(()=>[z(m(e.$t("administration.school.detail.credit.title")),1)]),subtitle:F(()=>[z(m(e.school.long_name),1)]),"submit-button":F(()=>[z(m(i.type=="add"?e.$t("administration.add"):e.$t("administration.remove")),1)]),content:F(()=>[b(s,{class:"mb-5 tabs-custom-color",titles:i.titles,"tab-names":i.tabNames,value:i.type,"onUpdate:value":t[0]||(t[0]=l=>i.type=l)},null,8,["titles","tab-names","value"]),c("div",QPo,[xe(c("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>o.v$.amount.$model=l),name:"amount",id:"amount",type:"number",placeholder:e.$t("administration.school.detail.credit.amount"),class:J({"form-control":!0,"is-invalid":o.v$.amount.$error}),step:"1"},null,10,eAo),[[wt,o.v$.amount.$model]]),c("label",tAo,m(e.$t("administration.school.detail.credit.amount")),1),o.v$.amount.$error&&o.v$.amount.required.$invalid?(h(),g("span",nAo,m(e.$t("validation.custom.school_budget_amount.required")),1)):D("",!0),o.v$.amount.$error&&o.v$.amount.minValue.$invalid?(h(),g("span",oAo,m(e.$t("validation.custom.school_budget_amount.min")),1)):D("",!0),o.v$.amount.$error&&o.v$.amount.maxValue.$invalid&&i.type!="add"?(h(),g("span",iAo,m(e.$t("validation.custom.school_budget_amount.max_remove",{budget:e.school.budget})),1)):D("",!0),c("span",rAo,m(e.$t("school.admin.school.budget.modal.after_change")+" "+r.budgetAfterChange+" "+e.$t("currency.short")),1)]),c("div",sAo,[xe(c("textarea",{id:"comment",class:J({"form-control":!0,"is-invalid":o.v$.comment.$error}),placeholder:e.$t("school.admin.school.budget.modal.comment.placeholder"),name:"comment","onUpdate:modelValue":t[2]||(t[2]=l=>o.v$.comment.$model=l),maxlength:"240",rows:"5"},null,10,aAo),[[wt,o.v$.comment.$model]]),c("label",lAo,m(e.$t("school.admin.school.budget.modal.comment.label")),1)])]),_:1},8,["onSubmit","submit-color"])):D("",!0)}const dAo=U(XPo,[["render",cAo]]),uAo={components:{DateSinglePicker:dd,FormSidebar:_n},data(){return{primaryColor:window.primaryColor,expiryDate:null,today:mt().toISOString()}},computed:{...Oe({school:"administrationSchool/getDetail",auth:"auth/auth"}),expiryDateComputed:{get(){let e=mt().add(14,"days");if(this.school.credit_expiry_date_iso){let t=mt(this.school.credit_expiry_date_iso);return t.isAfter(e)?t.toISOString():e.toISOString()}return e.toISOString()},set(e){this.expiryDate=e}}},methods:{edit(){let e=this.expiryDate?this.expiryDate:this.expiryDateComputed;this.$store.dispatch("administrationSchool/updateExpiryDate",{id:this.school.id,date:e})}}},hAo={class:"row"},fAo={class:"col-12 mb-4"},mAo={class:"col-12"},pAo={class:"form-group"};function gAo(e,t,n,o,i,r){const s=y("DateSinglePicker"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"school-credit-expiry-extend",onSubmit:r.edit},{title:F(()=>[z(m(e.$t("administration.school.detail.credit.title")),1)]),subtitle:F(()=>[z(m(e.school.long_name),1)]),"submit-button":F(()=>[z(m(e.$t("public.save")),1)]),content:F(()=>[c("div",hAo,[c("div",fAo,m(e.$t("administration.school.detail.credit.expires_at",{expires_at:e.school.credit_expiry_date})),1),c("div",mAo,[c("div",pAo,[b(s,{id:"expiry_date",name:"expiry_date",class:"form-control border-radius-end-none py-2 px-3",mode:"date",value:r.expiryDateComputed,"onUpdate:value":t[0]||(t[0]=l=>r.expiryDateComputed=l),placeholder:e.$t("voucher.now"),label:e.$t("administration.school.detail.credit.expiry_date"),"min-date":i.today,"is-small-label":""},null,8,["value","placeholder","label","min-date"])])])])]),_:1},8,["onSubmit"])):D("",!0)}const vAo=U(uAo,[["render",gAo]]),_Ao={components:{FormSidebar:_n,UserPicker:Ude},data(){return{pickedUser:null}},computed:{...Oe({school:"administrationSchool/getDetail",auth:"auth/auth"})},methods:{create(){this.pickedUser?this.$store.dispatch("administrationSchoolEmployee/create",{schoolId:this.school.id,userId:this.pickedUser.id,filters:Mi.getFilters(this.$route.query)}).then(()=>{this.pickedUser=null}):window.flash(this.$t("user.not_selected"),"error")}}};function yAo(e,t,n,o,i,r){const s=y("UserPicker"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"school-employee-create",onSubmit:r.create},{title:F(()=>[z(m(e.$t("administration.school.detail.list.user.add.title")),1)]),subtitle:F(()=>[z(m(e.school.long_name),1)]),"submit-button":F(()=>[z(m(e.$t("administration.add")),1)]),content:F(()=>[b(s,{user:i.pickedUser,"onUpdate:user":t[0]||(t[0]=l=>i.pickedUser=l)},null,8,["user"])]),_:1},8,["onSubmit"])):D("",!0)}const bAo=U(_Ao,[["render",yAo]]),kAo={components:{FormSidebar:_n},data(){return{loading:!1,primaryColor:window.primaryColor}},computed:{...Oe({order:"sidebar/getData",auth:"auth/auth"})},methods:{confirm(){this.$store.commit("sidebar/setLoading",!0),this.$store.dispatch("administrationFinanceOrder/pay",{order:this.order}).then(()=>{window.eventBus.emit("reload-orders"),this.$store.dispatch("sidebar/close")}).catch(()=>{this.$store.dispatch("sidebar/close")})}}},wAo={class:"mb-0"};function $Ao(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"order-payment-confirm",onSubmit:r.confirm},{title:F(()=>[z(m(e.$t("administration.school.detail.list.finance.order.confirm.title")),1)]),subtitle:F(()=>[z(m(e.order.number??e.order.id),1)]),"submit-button":F(()=>[z(m(e.$t("administration.confirm")),1)]),content:F(()=>[c("p",wAo,m(e.$t("administration.school.detail.list.finance.order.confirm.subtitle")),1)]),_:1},8,["onSubmit"])):D("",!0)}const CAo=U(kAo,[["render",$Ao]]),SAo={components:{FormSidebar:_n},computed:{...Oe({order:"sidebar/getData",auth:"auth/auth"})},methods:{deleteOrder(){this.$store.commit("sidebar/setLoading",!0);let e=null;this.order.schoolId?this.order.type==="product"?e=Gs.orderDelete:this.order.type==="credit"&&(e=Gs.creditOrderDelete):this.order.type==="product"?e=Ei.orderDelete:this.order.type==="credit"?e=Ei.creditOrderDelete:e=Ei.voucherOrderDelete,e(this.order.id).then(t=>{this.$store.dispatch("sidebar/close"),window.flash(t.data.message,"success"),window.eventBus.emit("reload-orders")}).catch(t=>{this.$store.commit("sidebar/setLoading",!1),window.flash(t.response,"error")})}}},TAo={class:"mb-0"};function EAo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"order-delete",onSubmit:r.deleteOrder,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("administration.school.detail.list.finance.order.delete.title")),1)]),subtitle:F(()=>[z(m(e.order.number??e.order.id),1)]),"submit-button":F(()=>[z(m(e.$t("administration.delete")),1)]),content:F(()=>[c("p",TAo,m(e.$t("administration.school.detail.list.finance.order.delete.subtitle")),1)]),_:1},8,["onSubmit"])):D("",!0)}const IAo=U(SAo,[["render",EAo]]),PAo={props:{type:{type:String,default:null}}},AAo={key:0,class:"d-flex align-items-center mt-2"},DAo=["innerHTML"],xAo={key:1,class:"d-flex align-items-center mt-2"},OAo=["innerHTML"],LAo={key:2,class:"d-flex align-items-center mt-2"},MAo=["innerHTML"],NAo={key:3,class:"d-flex align-items-center mt-2"},RAo=["innerHTML"];function jAo(e,t,n,o,i,r){const s=y("app-icon");return h(),g("div",null,[n.type==="info"?(h(),g("div",AAo,[b(s,{icon:"info-circle",class:"me-1"}),c("span",{class:"text-gray-700 medium",innerHTML:e.$t("infobox.editor.info_types.info")},null,8,DAo)])):D("",!0),n.type==="new"?(h(),g("div",xAo,[b(s,{icon:"info-circle",class:"me-1"}),c("span",{class:"text-gray-700 medium",innerHTML:e.$t("infobox.editor.info_types.new")},null,8,OAo)])):D("",!0),n.type==="error"?(h(),g("div",LAo,[b(s,{icon:"info-circle",class:"me-1"}),c("span",{class:"text-gray-700 medium",innerHTML:e.$t("infobox.editor.info_types.error")},null,8,MAo)])):D("",!0),n.type==="warning"?(h(),g("div",NAo,[b(s,{icon:"info-circle",class:"me-1"}),c("span",{class:"text-gray-700 medium",innerHTML:e.$t("infobox.editor.info_types.warning")},null,8,RAo)])):D("",!0)])}const Bde=U(PAo,[["render",jAo]]),FAo={components:{DateSinglePicker:dd,FormSidebar:_n,InfoBoxTypeInfo:Bde,CheckboxInput:ba},validations:{title:{required:Yt,maxLength:hi(W2.maxTitleLength)},content:{required:Yt},link_title:{},link_href:{}},data(){return{infoboxConfig:W2,today:mt(),timezone:mr.timezone,infoboxTypes:[{label:this.$t("infobox.types.info"),code:"info"},{label:this.$t("infobox.types.new"),code:"new"},{label:this.$t("infobox.types.error"),code:"error"},{label:this.$t("infobox.types.warning"),code:"warning"}]}},computed:{...Oe({infobox:"administrationInfoBox/getDetail",auth:"auth/auth"}),type:{get(){return this.$store.getters["administrationInfoBox/getDetailType"]},set(e){this.$store.commit("administrationInfoBox/setDetailType",e)}},is_only_for_authors:{get(){return this.$store.getters["administrationInfoBox/getDetailIsOnlyForAuthors"]},set(e){this.$store.commit("administrationInfoBox/setDetailIsOnlyForAuthors",e)}},title:{get(){return this.$store.getters["administrationInfoBox/getDetailTitle"]},set(e){this.$store.commit("administrationInfoBox/setDetailTitle",e)}},content:{get(){return this.$store.getters["administrationInfoBox/getDetailContent"]},set(e){this.$store.commit("administrationInfoBox/setDetailContent",e)}},link_title:{get(){return this.$store.getters["administrationInfoBox/getDetailLinkTitle"]},set(e){this.$store.commit("administrationInfoBox/setDetailLinkTitle",e)}},link_href:{get(){return this.$store.getters["administrationInfoBox/getDetailLinkHref"]},set(e){this.$store.commit("administrationInfoBox/setDetailLinkHref",e)}},starts_at:{get(){return this.$store.getters["administrationInfoBox/getDetailStartsAt"]},set(e){this.$store.commit("administrationInfoBox/setDetailStartsAt",e)}},ends_at:{get(){return this.$store.getters["administrationInfoBox/getDetailEndsAt"]},set(e){this.$store.commit("administrationInfoBox/setDetailEndsAt",e)}}},methods:{create(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("administrationInfoBox/create",{filters:Mi.getFilters(this.$route.query)}).then(()=>{this.v$.$reset()})},cancel(){this.$store.commit("administrationInfoBox/resetDetail")},removeStartsAt(){this.starts_at=""},removeEndsAt(){this.ends_at=""}},setup(){return{v$:Pn()}}},zAo={class:"form-group form-floating"},UAo={for:"type",class:""},BAo={class:"form-group form-floating mt-3"},HAo={class:"length-counter"},VAo=["placeholder","maxlength"],qAo={for:"title",class:"form-label"},YAo={key:0,class:"invalid-feedback"},WAo={key:1,class:"invalid-feedback"},GAo={class:"form-group form-floating mt-3"},ZAo=["placeholder"],KAo={for:"content",class:"form-label"},JAo={key:0,class:"invalid-feedback"},XAo={class:"form-group form-floating mt-3"},QAo=["placeholder"],eDo={for:"link_title",class:"form-label"},tDo={class:"form-group form-floating mt-3"},nDo=["placeholder"],oDo={for:"link_href",class:"form-label"},iDo={class:"row mt-3"},rDo={class:"col-12 col-md-6"},sDo={class:"col-12 col-md-6"};function aDo(e,t,n,o,i,r){const s=y("v-select"),a=y("InfoBoxTypeInfo"),l=y("DateSinglePicker"),d=y("CheckboxInput"),u=y("FormSidebar");return e.auth.is_admin?(h(),W(u,{key:0,id:"info-box-create",onClose:r.cancel,onSubmit:r.create},{title:F(()=>[z(m(e.$t("administration.content.infobox.create.title")),1)]),"submit-button":F(()=>[z(m(e.$t("administration.create")),1)]),content:F(()=>[c("div",zAo,[b(s,{id:"type",placeholder:"Vyberte si...",label:"label",class:"form-control",modelValue:r.type,"onUpdate:modelValue":t[0]||(t[0]=f=>r.type=f),options:i.infoboxTypes,reduce:f=>f.code,"close-on-select":!0,clearable:!1},null,8,["modelValue","options","reduce"]),c("label",UAo,m(e.$t("infobox.editor.infobox_type")),1)]),b(a,{type:r.type},null,8,["type"]),c("div",BAo,[c("span",HAo,m((r.title?r.title.length:0)+"/"+i.infoboxConfig.maxTitleLength+" "+e.$t("infobox.editor.characters")),1),xe(c("input",{id:"title",class:J({"form-control":!0,"is-invalid":o.v$.title.$error}),placeholder:e.$t("infobox.editor.title"),type:"text",name:"title","onUpdate:modelValue":t[1]||(t[1]=f=>o.v$.title.$model=f),maxlength:i.infoboxConfig.maxTitleLength},null,10,VAo),[[wt,o.v$.title.$model]]),c("label",qAo,m(e.$t("infobox.editor.title")),1),o.v$.title.$error&&o.v$.title.required.$invalid?(h(),g("span",YAo,m(e.$t("infobox.editor.validation.title_required")),1)):D("",!0),o.v$.title.$error&&o.v$.title.maxLength.$invalid?(h(),g("span",WAo,m(e.$t("infobox.editor.validation.title_max_length")),1)):D("",!0)]),c("div",GAo,[xe(c("textarea",{id:"content",class:J({"form-control":!0,"is-invalid":o.v$.content.$error}),placeholder:e.$t("infobox.editor.text"),rows:"4",type:"text",name:"content","onUpdate:modelValue":t[2]||(t[2]=f=>o.v$.content.$model=f)},null,10,ZAo),[[wt,o.v$.content.$model]]),c("label",KAo,m(e.$t("infobox.editor.text")),1),o.v$.content.$error&&o.v$.content.required.$invalid?(h(),g("span",JAo,m(e.$t("infobox.editor.validation.text_required")),1)):D("",!0)]),c("div",XAo,[xe(c("input",{id:"link_title",class:"form-control",placeholder:e.$t("infobox.editor.link_title"),type:"text",name:"link_title","onUpdate:modelValue":t[3]||(t[3]=f=>o.v$.link_title.$model=f)},null,8,QAo),[[wt,o.v$.link_title.$model]]),c("label",eDo,m(e.$t("infobox.editor.link_title")),1)]),c("div",tDo,[xe(c("input",{id:"link_href",class:"form-control",placeholder:e.$t("infobox.editor.link_href"),type:"text",name:"link_href","onUpdate:modelValue":t[4]||(t[4]=f=>o.v$.link_href.$model=f)},null,8,nDo),[[wt,o.v$.link_href.$model]]),c("label",oDo,m(e.$t("infobox.editor.link_href")),1)]),c("div",iDo,[c("div",rDo,[b(l,{class:"form-control",mode:"datetime",id:"starts_at",name:"starts_at",value:r.starts_at,"onUpdate:value":t[5]||(t[5]=f=>r.starts_at=f),placeholder:e.$t("infobox.editor.starts_at.placeholder"),"min-date":i.today.toISOString(),"is-small-label":""},null,8,["value","placeholder","min-date"])]),c("div",sDo,[b(l,{class:"form-control",mode:"datetime",id:"ends_at",name:"ends_at","input-class":"form-control",value:r.ends_at,"onUpdate:value":t[6]||(t[6]=f=>r.ends_at=f),placeholder:e.$t("infobox.editor.ends_at.placeholder"),"min-date":i.today.toISOString(),"is-small-label":""},null,8,["value","placeholder","min-date"])])]),b(d,{id:"is_only_for_authors",value:r.is_only_for_authors,"onUpdate:value":t[7]||(t[7]=f=>r.is_only_for_authors=f),label:e.$t("infobox.editor.only_for_authors"),class:"mt-3"},null,8,["value","label"])]),_:1},8,["onClose","onSubmit"])):D("",!0)}const lDo=U(FAo,[["render",aDo]]),cDo={components:{DateSinglePicker:dd,FormSidebar:_n,InfoBoxTypeInfo:Bde,CheckboxInput:ba},validations:{title:{required:Yt,maxLength:hi(W2.maxTitleLength)},content:{required:Yt},link_title:{},link_href:{}},data(){return{infobox:W2,today:mt(),timezone:mr.timezone,infoboxTypes:[{label:this.$t("infobox.types.info"),code:"info"},{label:this.$t("infobox.types.new"),code:"new"},{label:this.$t("infobox.types.error"),code:"error"},{label:this.$t("infobox.types.warning"),code:"warning"}]}},computed:{...Oe({infobox:"administrationInfoBox/getDetail",auth:"auth/auth"}),type:{get(){return this.$store.getters["administrationInfoBox/getDetailType"]},set(e){this.$store.commit("administrationInfoBox/setDetailType",e)}},is_only_for_authors:{get(){return this.$store.getters["administrationInfoBox/getDetailIsOnlyForAuthors"]},set(e){this.$store.commit("administrationInfoBox/setDetailIsOnlyForAuthors",e)}},title:{get(){return this.$store.getters["administrationInfoBox/getDetailTitle"]},set(e){this.$store.commit("administrationInfoBox/setDetailTitle",e)}},content:{get(){return this.$store.getters["administrationInfoBox/getDetailContent"]},set(e){this.$store.commit("administrationInfoBox/setDetailContent",e)}},link_title:{get(){return this.$store.getters["administrationInfoBox/getDetailLinkTitle"]},set(e){this.$store.commit("administrationInfoBox/setDetailLinkTitle",e)}},link_href:{get(){return this.$store.getters["administrationInfoBox/getDetailLinkHref"]},set(e){this.$store.commit("administrationInfoBox/setDetailLinkHref",e)}},starts_at:{get(){return this.$store.getters["administrationInfoBox/getDetailStartsAt"]},set(e){this.$store.commit("administrationInfoBox/setDetailStartsAt",e)}},ends_at:{get(){return this.$store.getters["administrationInfoBox/getDetailEndsAt"]},set(e){this.$store.commit("administrationInfoBox/setDetailEndsAt",e)}}},methods:{update(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("administrationInfoBox/update",{filters:Mi.getFilters(this.$route.query)}).then(()=>{this.v$.$reset()})},cancel(){this.$store.commit("administrationInfoBox/resetDetail")},removeStartsAt(){this.starts_at=""},removeEndsAt(){this.ends_at=""}},setup(){return{v$:Pn()}}},dDo={class:"form-group form-floating"},uDo={for:"type",class:""},hDo={class:"form-group form-floating mt-3"},fDo={class:"length-counter"},mDo=["placeholder","maxlength"],pDo={for:"title",class:"form-label"},gDo={key:0,class:"invalid-feedback"},vDo={key:1,class:"invalid-feedback"},_Do={class:"form-group form-floating mt-3"},yDo=["placeholder"],bDo={for:"content",class:"form-label"},kDo={key:0,class:"invalid-feedback"},wDo={class:"form-group form-floating mt-3"},$Do=["placeholder"],CDo={for:"link_title",class:"form-label"},SDo={class:"form-group form-floating mt-3"},TDo=["placeholder"],EDo={for:"link_href",class:"form-label"},IDo={class:"row mt-3"},PDo={class:"col-12 col-md-6"},ADo={class:"col-12 col-md-6"};function DDo(e,t,n,o,i,r){const s=y("v-select"),a=y("InfoBoxTypeInfo"),l=y("DateSinglePicker"),d=y("CheckboxInput"),u=y("FormSidebar");return e.auth.is_admin?(h(),W(u,{key:0,id:"info-box-update",onClose:r.cancel,onSubmit:r.update},{title:F(()=>[z(m(e.$t("administration.content.infobox.update.title")),1)]),subtitle:F(()=>[z(m(i.infobox.title),1)]),"submit-button":F(()=>[z(m(e.$t("administration.update")),1)]),content:F(()=>[c("div",dDo,[b(s,{id:"type",placeholder:"Vyberte si...",label:"label",class:"form-control",modelValue:r.type,"onUpdate:modelValue":t[0]||(t[0]=f=>r.type=f),options:i.infoboxTypes,reduce:f=>f.code,"close-on-select":!0,clearable:!1},null,8,["modelValue","options","reduce"]),c("label",uDo,m(e.$t("infobox.editor.infobox_type")),1)]),b(a,{type:r.type},null,8,["type"]),c("div",hDo,[c("span",fDo,m((r.title?r.title.length:0)+"/"+i.infobox.maxTitleLength+" "+e.$t("infobox.editor.characters")),1),xe(c("input",{id:"title",class:J({"form-control":!0,"is-invalid":o.v$.title.$error}),placeholder:e.$t("infobox.editor.title"),type:"text",name:"title","onUpdate:modelValue":t[1]||(t[1]=f=>o.v$.title.$model=f),maxlength:i.infobox.maxTitleLength},null,10,mDo),[[wt,o.v$.title.$model]]),c("label",pDo,m(e.$t("infobox.editor.title")),1),o.v$.title.$error&&o.v$.title.required.$invalid?(h(),g("span",gDo,m(e.$t("infobox.editor.validation.title_required")),1)):D("",!0),o.v$.title.$error&&o.v$.title.maxLength.$invalid?(h(),g("span",vDo,m(e.$t("infobox.editor.validation.title_max_length")),1)):D("",!0)]),c("div",_Do,[xe(c("textarea",{id:"content",class:J({"form-control":!0,"is-invalid":o.v$.content.$error}),placeholder:e.$t("infobox.editor.text"),rows:"4",type:"text",name:"content","onUpdate:modelValue":t[2]||(t[2]=f=>o.v$.content.$model=f)},null,10,yDo),[[wt,o.v$.content.$model]]),c("label",bDo,m(e.$t("infobox.editor.text")),1),o.v$.content.$error&&o.v$.content.required.$invalid?(h(),g("span",kDo,m(e.$t("infobox.editor.validation.text_required")),1)):D("",!0)]),c("div",wDo,[xe(c("input",{id:"link_title",class:"form-control",placeholder:e.$t("infobox.editor.link_title"),type:"text",name:"link_title","onUpdate:modelValue":t[3]||(t[3]=f=>o.v$.link_title.$model=f)},null,8,$Do),[[wt,o.v$.link_title.$model]]),c("label",CDo,m(e.$t("infobox.editor.link_title")),1)]),c("div",SDo,[xe(c("input",{id:"link_href",class:"form-control",placeholder:e.$t("infobox.editor.link_href"),type:"text",name:"link_href","onUpdate:modelValue":t[4]||(t[4]=f=>o.v$.link_href.$model=f)},null,8,TDo),[[wt,o.v$.link_href.$model]]),c("label",EDo,m(e.$t("infobox.editor.link_href")),1)]),c("div",IDo,[c("div",PDo,[b(l,{class:"form-control",mode:"datetime",id:"starts_at",name:"starts_at",value:r.starts_at,"onUpdate:value":t[5]||(t[5]=f=>r.starts_at=f),placeholder:e.$t("infobox.editor.starts_at.placeholder"),"min-date":i.today.toISOString(),"is-small-label":""},null,8,["value","placeholder","min-date"])]),c("div",ADo,[b(l,{class:"form-control",mode:"datetime",id:"ends_at",name:"ends_at","input-class":"form-control",value:r.ends_at,"onUpdate:value":t[6]||(t[6]=f=>r.ends_at=f),placeholder:e.$t("infobox.editor.ends_at.placeholder"),"min-date":i.today.toISOString(),"is-small-label":""},null,8,["value","placeholder","min-date"])])]),b(d,{id:"is_only_for_authors",value:r.is_only_for_authors,"onUpdate:value":t[7]||(t[7]=f=>r.is_only_for_authors=f),label:e.$t("infobox.editor.only_for_authors"),class:"mt-3"},null,8,["value","label"])]),_:1},8,["onClose","onSubmit"])):D("",!0)}const xDo=U(cDo,[["render",DDo]]),ODo={components:{FormSidebar:_n},computed:{...Oe({infobox:"administrationInfoBox/getDetail",auth:"auth/auth"})},methods:{deletee(){this.$store.dispatch("administrationInfoBox/delete",{id:this.infobox.id,filters:Mi.getFilters(this.$route.query)})}}};function LDo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"info-box-delete",onSubmit:r.deletee,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("administration.content.infobox.delete.title")),1)]),subtitle:F(()=>[z(m(e.infobox.title),1)]),"submit-button":F(()=>[z(m(e.$t("administration.delete")),1)]),content:F(()=>[z(m(e.$t("administration.content.infobox.delete.subtitle")),1)]),_:1},8,["onSubmit"])):D("",!0)}const MDo=U(ODo,[["render",LDo]]),NDo={props:{product:Object}},RDo={class:"d-flex align-items-center text-truncate"},jDo=["href"],FDo=["src"],zDo={class:"flex-grow-1 medium text-truncate"},UDo=["href"],BDo={class:"small text-gray-600 text-truncate"},HDo=["href"];function VDo(e,t,n,o,i,r){return h(),g("div",RDo,[c("a",{href:e.ziggyRoute("product.show",{id:n.product.id}),target:"_blank"},[c("img",{src:n.product.cover_img_thumbnail,width:"32",height:"32",class:"rounded me-2"},null,8,FDo)],8,jDo),c("div",zDo,[c("a",{href:e.ziggyRoute("product.show",{id:n.product.id}),target:"_blank",class:"link-dark"},m(n.product.title),9,UDo),c("div",BDo,[c("a",{href:e.ziggyRoute("user.show",{id:n.product.author.id}),target:"_blank",class:"link-dark"},m(n.product.author.first_name+" "+n.product.author.last_name),9,HDo)])])])}const Hde=U(NDo,[["render",VDo]]),qDo={components:{AppIcon:Ue},props:{id:Number,disabled:Boolean},methods:{add(){this.$store.dispatch("administrationSection/addDetailProduct",{id:this.id}),this.$store.dispatch("administrationSection/productsAdded")}}},YDo={class:"d-inline"},WDo=["disabled"];function GDo(e,t,n,o,i,r){const s=y("AppIcon"),a=an("tooltip");return xe((h(),g("div",YDo,[c("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[0]||(t[0]=(...l)=>r.add&&r.add(...l)),disabled:n.disabled},[n.disabled?(h(),W(s,{key:0,icon:"check"})):(h(),W(s,{key:1,icon:"plus-circle"}))],8,WDo)])),[[a,{content:n.disabled?e.$t("administration.content.section.create.product.added_already"):null,delay:{show:500,hide:100},triggers:["hover","click"]}]])}const ZDo=U(qDo,[["render",GDo]]),KDo={components:{SectionCreateProduct:Hde,SectionCreateProductAddButton:ZDo,Loading:Rt,Bootstrap5Pagination:Ri},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({section:"administrationSection/getDetail",list:"administrationSection/getProducts",loading:"administrationSection/getProductsLoading"}),search:{get(){return this.$store.getters["administrationSection/getProductsSearch"]},set(e){this.$store.commit("administrationSection/setProductsSearch",e)}}},methods:{load(){this.$store.dispatch("administrationSection/products")},setPage(e){this.$store.commit("administrationSection/setProductsPage",e)},setPageAndLoad(e){this.setPage(e),this.load()}},watch:{search(){this.setPage(1),this.load()}},mounted(){this.load(),this.load=is.debounce(this.load,500)}},JDo={class:"form-group form-floating mb-4"},XDo=["placeholder"],QDo={class:"form-label",for:"name"},exo={key:0,class:"vl-parent mh-8"},txo={key:1,class:"text-center text-gray-600"};function nxo(e,t,n,o,i,r){const s=y("Loading"),a=y("SectionCreateProduct"),l=y("SectionCreateProductAddButton"),d=y("Bootstrap5Pagination");return h(),g("div",null,[c("div",JDo,[xe(c("input",{name:"name",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=u=>r.search=u),placeholder:e.$t("administration.content.section.create.product.id")},null,8,XDo),[[wt,r.search]]),c("label",QDo,m(e.$t("administration.content.section.create.product.id")),1)]),c("div",null,[e.loading?(h(),g("div",exo,[b(s,{active:e.loading,"onUpdate:active":t[1]||(t[1]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.data.length?(h(!0),g(pe,{key:2},Me(e.list.data,(u,f)=>(h(),g("div",{key:f,class:"d-flex justify-content-between align-items-center border px-2dot5 py-2dot5"},[b(a,{product:u},null,8,["product"]),b(l,{id:u.id,disabled:e.section.products.includes(u.id)},null,8,["id","disabled"])]))),128)):(h(),g("div",txo,m(e.$t("product.not_found.title")),1)),e.loading?D("",!0):(h(),W(d,{key:3,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.setPageAndLoad,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])])}const Vde=U(KDo,[["render",nxo]]),oxo={components:{AppIcon:Ue},props:{id:Number},computed:{...Oe({section:"administrationSection/getDetail"})},methods:{remove(){this.$store.dispatch("administrationSection/removeDetailProduct",{id:this.id}),this.$store.dispatch("administrationSection/productsAdded")}}};function ixo(e,t,n,o,i,r){const s=y("AppIcon");return h(),g("button",{class:"btn btn-tertiary btn-danger btn-sm btn-center",onClick:t[0]||(t[0]=(...a)=>r.remove&&r.remove(...a))},[b(s,{icon:"minus-circle"})])}const rxo=U(oxo,[["render",ixo]]),sxo={components:{SectionCreateProduct:Hde,SectionCreateProductRemoveButton:rxo,Loading:Rt,Bootstrap5Pagination:Ri},data(){return{primaryColor:window.primaryColor}},computed:{...Oe({section:"administrationSection/getDetail",list:"administrationSection/getProductsAdded",loading:"administrationSection/getProductsLoading"}),search:{get(){return this.$store.getters["administrationSection/getProductsAddedSearch"]},set(e){this.$store.commit("administrationSection/setProductsAddedSearch",e)}}},methods:{load(){this.$store.dispatch("administrationSection/productsAdded")},setPage(e){this.$store.commit("administrationSection/setProductsAddedPage",e)},setPageAndLoad(e){this.setPage(e),this.load()}},watch:{search(){this.setPage(1),this.load()}},mounted(){this.load(),this.load=is.debounce(this.load,500)}},axo={class:"form-group form-floating mb-4"},lxo=["placeholder"],cxo={class:"form-label",for:"name"},dxo={key:0,class:"vl-parent mh-8"},uxo={key:1,class:"text-center text-gray-600"};function hxo(e,t,n,o,i,r){const s=y("Loading"),a=y("SectionCreateProduct"),l=y("SectionCreateProductRemoveButton"),d=y("Bootstrap5Pagination");return h(),g("div",null,[c("div",axo,[xe(c("input",{name:"name",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=u=>r.search=u),placeholder:e.$t("administration.content.section.create.product.id")},null,8,lxo),[[wt,r.search]]),c("label",cxo,m(e.$t("administration.content.section.create.product.id")),1)]),e.loading?(h(),g("div",dxo,[b(s,{active:e.loading,"onUpdate:active":t[1]||(t[1]=u=>e.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.data.length?(h(!0),g(pe,{key:2},Me(e.list.data,(u,f)=>(h(),g("div",{key:f,class:"d-flex justify-content-between align-items-center border px-2dot5 py-2dot5"},[b(a,{product:u},null,8,["product"]),b(l,{id:u.id},null,8,["id"])]))),128)):(h(),g("div",uxo,m(e.$t("product.not_found.title")),1)),e.loading?D("",!0):(h(),W(d,{key:3,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.setPageAndLoad,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))])}const qde=U(sxo,[["render",hxo]]),fxo={components:{SubjectSelect:mde,ClassSelect:hde},props:{classSelected:Object,subjectsSelected:Array},computed:{classSelectedModel:{get(){return this.classSelected},set(e){this.$emit("update:classSelected",e)}},subjectsSelectedModel:{get(){return this.subjectsSelected},set(e){this.$emit("update:subjectsSelected",e)}}}};function mxo(e,t,n,o,i,r){const s=y("ClassSelect"),a=y("SubjectSelect");return h(),g("div",null,[b(s,{selected:r.classSelectedModel,"onUpdate:selected":t[0]||(t[0]=l=>r.classSelectedModel=l),"close-on-select":""},null,8,["selected"]),b(a,{class:"mt-4","class-selected":r.classSelectedModel,selected:r.subjectsSelectedModel,"onUpdate:selected":t[1]||(t[1]=l=>r.subjectsSelectedModel=l)},null,8,["class-selected","selected"])])}const Yde=U(fxo,[["render",mxo]]),pxo={components:{AppSelect:ak},props:{selected:{type:[Object,Number,Array],default:null},filtered:{type:Boolean,default:!1}},computed:{...Oe({sections:"administrationSection/getList"}),sectionsFiltered(){return this.sections.filter(e=>e.type==="manual"||e.type==="category")},selectedModel:{get(){return this.selected},set(e){this.$emit("update:selected",e)}}}};function gxo(e,t,n,o,i,r){const s=y("AppSelect");return h(),W(s,{"option-key":"id","option-name":"title",options:n.filtered?r.sectionsFiltered:e.sections,selected:r.selectedModel,"onUpdate:selected":t[0]||(t[0]=a=>r.selectedModel=a),placeholder:e.$t("filter.choose.section"),label:e.$t("section.title"),multiple:"",searchable:""},null,8,["options","selected","placeholder","label"])}const Wde=U(pxo,[["render",gxo]]),vxo={props:{disabled:{type:Boolean,default:!1}},data(){return{csrf:document.head.querySelector('meta[name="csrf-token"]').content,image:[]}},computed:{...sn({sectionId:e=>e.administrationSection.detail.id}),cardImg:{get(){return this.$store.getters["administrationSection/getDetailCardImg"]},set(e){this.$store.commit("administrationSection/setDetailCardImg",e)}}},methods:{cardImgThumbnail(e){e.blob="";let t=window.URL||window.webkitURL;t&&t.createObjectURL&&(e.blob=t.createObjectURL(e.file))},cardImgUpdate(e,t){e&&!t&&(!this.$refs.cardImgUpload||!this.$refs.cardImgUpload.active)&&(this.$refs.cardImgUpload.active=1),e&&t&&!e.active&&t.active&&(window.location.reload(),window.flash(e.response.message,e.xhr.status===200?"success":"error"))}}},_xo={class:"upload-inner upload-block"},yxo={key:0,class:"image-thumbnail mb-0 mt-3"},bxo=["src"];function kxo(e,t,n,o,i,r){const s=y("app-icon"),a=y("upload");return h(),g("div",null,[c("div",{class:J(["upload-box-upload",{"upload-box-upload-disabled":n.disabled}])},[b(a,{"post-action":e.ziggyRoute("administration.api.content.section.card_img.update",{section:e.sectionId}),class:"upload",extensions:"gif,jpg,jpeg,png,webp,svg",accept:"image/png,image/gif,image/jpeg,image/webp,image/svg+xml",multiple:!1,modelValue:i.image,"onUpdate:modelValue":t[0]||(t[0]=l=>i.image=l),onInputFilter:r.cardImgThumbnail,onInputFile:r.cardImgUpdate,headers:{"X-CSRF-TOKEN":i.csrf},ref:"cardImgUpload","input-id":"cardImgUpload",disabled:n.disabled},{default:F(()=>[c("div",_xo,[b(s,{icon:"upload",height:24,width:24,class:J(["me-2",n.disabled?"text-gray-600":"text-primary"])},null,8,["class"]),z(" "+m(e.$t("public.card_background")),1)])]),_:1},8,["post-action","modelValue","onInputFilter","onInputFile","headers","disabled"])],2),r.cardImg?(h(),g("figure",yxo,[c("img",{src:r.cardImg,class:"image-thumbnail"},null,8,bxo)])):D("",!0)])}const wxo=U(vxo,[["render",kxo]]),$xo={props:{disabled:{type:Boolean,default:!1}},data(){return{csrf:document.head.querySelector('meta[name="csrf-token"]').content,image:[]}},computed:{...sn({sectionId:e=>e.administrationSection.detail.id}),catalogImg:{get(){return this.$store.getters["administrationSection/getDetailCatalogImg"]},set(e){this.$store.commit("administrationSection/setDetailCatalogImg",e)}}},methods:{catalogImgThumbnail(e){e.blob="";let t=window.URL||window.webkitURL;t&&t.createObjectURL&&(e.blob=t.createObjectURL(e.file))},catalogImgUpdate(e,t){e&&!t&&(!this.$refs.catalogImgUpload||!this.$refs.catalogImgUpload.active)&&(this.$refs.catalogImgUpload.active=1),e&&t&&!e.active&&t.active&&(window.location.reload(),window.flash(e.response.message,e.xhr.status===200?"success":"error"))}}},Cxo={class:"upload-inner upload-block"},Sxo={key:0,class:"image-thumbnail mb-0 mt-3"},Txo=["src"];function Exo(e,t,n,o,i,r){const s=y("app-icon"),a=y("upload");return h(),g("div",null,[c("div",{class:J(["upload-box-upload",{"upload-box-upload-disabled":n.disabled}])},[b(a,{"post-action":e.ziggyRoute("administration.api.content.section.catalog_img.update",{section:e.sectionId}),class:"upload",extensions:"gif,jpg,jpeg,png,webp,svg",accept:"image/png,image/gif,image/jpeg,image/webp,image/svg+xml",multiple:!1,modelValue:i.image,"onUpdate:modelValue":t[0]||(t[0]=l=>i.image=l),onInputFilter:r.catalogImgThumbnail,onInputFile:r.catalogImgUpdate,headers:{"X-CSRF-TOKEN":i.csrf},ref:"catalogImgUpload","input-id":"catalogImgUpload",disabled:n.disabled},{default:F(()=>[c("div",Cxo,[b(s,{icon:"upload",height:24,width:24,class:J(["me-2",n.disabled?"text-gray-600":"text-primary"])},null,8,["class"]),z(" "+m(e.$t("public.catalog_background")),1)])]),_:1},8,["post-action","modelValue","onInputFilter","onInputFile","headers","disabled"])],2),r.catalogImg?(h(),g("figure",Sxo,[c("img",{src:r.catalogImg,class:"image-thumbnail maxw-100"},null,8,Txo)])):D("",!0)])}const Ixo=U($xo,[["render",Exo]]),Pxo={components:{AppSelect:ak},data(){return{options:[{key:"#1B2A4E",name:this.$t("public.colors.black")},{key:"#FFFFFF",name:this.$t("public.colors.white")}]}},computed:{type:{get(){return this.$store.getters["administrationSection/getDetailTextColor"]},set(e){this.$store.commit("administrationSection/setDetailTextColor",e)}}}};function Axo(e,t,n,o,i,r){const s=y("AppSelect");return h(),g("div",null,[b(s,{selected:r.type,"onUpdate:selected":t[0]||(t[0]=a=>r.type=a),"option-key":"key","option-name":"name",options:i.options,label:e.$t("public.text_color.title"),placeholder:e.$t("public.text_color.select")},null,8,["selected","options","label","placeholder"])])}const Dxo=U(Pxo,[["render",Axo]]),xxo={props:{disabled:{type:Boolean,default:!1}},computed:{...sn({sectionType:e=>e.administrationSection.detail.type})},components:{SectionCardImgUpload:wxo,SectionCatalogImgUpload:Ixo,SectionTextColorUpdate:Dxo}},Oxo={key:0,class:"row gap-3"},Lxo={class:"mb-2"},Mxo={key:0,class:"text-danger"};function Nxo(e,t,n,o,i,r){const s=y("SectionTextColorUpdate"),a=y("SectionCardImgUpload"),l=y("SectionCatalogImgUpload");return e.sectionType=="manual"||e.sectionType=="category"?(h(),g("div",Oxo,[c("h4",Lxo,m(e.$t("public.design")),1),b(s),b(a,{disabled:n.disabled},null,8,["disabled"]),b(l,{disabled:n.disabled},null,8,["disabled"]),n.disabled?(h(),g("p",Mxo,m(e.$t("section.image_upload_after_created")),1)):D("",!0)])):D("",!0)}const Gde=U(xxo,[["render",Nxo]]),Rxo={components:{FormSidebar:_n,SectionCreateProductAddTable:Vde,SectionCreateProductAddedTable:qde,AppIcon:Ue,draggable:nk,AppSelect:ak,ClassSubjectSelect:Yde,SectionSelect:Wde,SectionDesign:Gde},data(){return{sectionConfig:N1,activeTab:N1.tabs.attachProductTab,permanentIds:N1.permanentIds,images:[],maxFileSize:"5MB",resetSectionDetail:!0,drag:!1}},validations:{title:{required:Yt},productHomepageCount:{required:Yt},type:{required:Yt}},computed:{...Oe({detail:"administrationSection/getDetail",categoriesAll:"administrationSection/getCategories",auth:"auth/auth"}),title:{get(){return this.$store.getters["administrationSection/getDetailTitle"]},set(e){this.$store.commit("administrationSection/setDetailTitle",e)}},description:{get(){return this.$store.getters["administrationSection/getDetailDescription"]},set(e){this.$store.commit("administrationSection/setDetailDescription",e)}},type:{get(){return this.$store.getters["administrationSection/getDetailType"]},set(e){this.$store.commit("administrationSection/setDetailType",e)}},productHomepageCount:{get(){return this.$store.getters["administrationSection/getDetailProductHomepageCount"]},set(e){this.$store.commit("administrationSection/setDetailProductHomepageCount",e)}},categories:{get(){return this.$store.getters["administrationSection/getDetailCategories"]},set(e){this.$store.commit("administrationSection/setDetailCategories",e)}},classCategory:{get(){return this.$store.getters["administrationSection/getDetailClass"]},set(e){this.$store.commit("administrationSection/setDetailClass",e)}},subjects:{get(){return this.$store.getters["administrationSection/getDetailSubjects"]},set(e){this.$store.commit("administrationSection/setDetailSubjects",e)}},sections:{get(){return this.$store.getters["administrationSection/getDetailSections"]},set(e){this.$store.commit("administrationSection/setDetailSections",e)}}},methods:{create(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("administrationSection/create",{filters:Mi.getFilters(this.$route.query)}).then(()=>{this.v$.$reset()})},close(){this.resetSectionDetail&&this.$store.commit("administrationSection/resetDetail")},categoryImagePath(e){return this.categoriesAll.find(n=>n.id==e).image_path},categoryName(e){return this.categoriesAll.find(t=>t.id==e).name},categoryRemove(e){var t=this.categories.indexOf(e);t!==-1&&this.categories.splice(t,1)},openCategoryImageUpdateSidebar(e){this.resetSectionDetail=!1;let t=this.categoriesAll.find(n=>n.id==e);this.$store.dispatch("sidebar/close"),this.$store.commit("administrationCategory/setDetail",t),this.$store.dispatch("sidebar/open",{type:"category-image-update",data:{openSectionCreateSidebar:!0}}),this.resetSectionDetail=!0}},mounted(){this.$store.dispatch("administrationSection/categories")},setup(){return{v$:Pn()}}},jxo={class:"mb-5"},Fxo=["placeholder"],zxo={class:"form-label",for:"title"},Uxo={key:0,class:"help-block small text-danger"},Bxo={class:"form-group form-floating mb-4"},Hxo=["placeholder"],Vxo={class:"form-label",for:"description"},qxo={key:0},Yxo={class:"mb-4"},Wxo={key:0,class:"help-block small text-danger"},Gxo={key:0,class:"mt-4"},Zxo=["placeholder"],Kxo={class:"form-label",for:"product-count"},Jxo={key:0,class:"help-block small text-danger"},Xxo={key:1,class:"mt-3"},Qxo={id:"tabs",class:"tabs mb-4"},eOo={class:"tabList"},tOo={key:0,class:"notification notification-gray"},nOo={key:4,class:"mt-4"},oOo={class:"form-group form-floating"},iOo={for:"type",class:"form-label"},rOo={class:"mt-3"},sOo={class:"cursor-all-scroll mb-3 border rounded"},aOo={class:"d-flex align-items-center justify-content-between border-bottom p-3"},lOo={class:"medium"},cOo=["onClick"],dOo=["onClick"],uOo={key:0,class:"d-flex justify-content-center align-items-center bg-secondary p-3"},hOo=["src"],fOo={key:1},mOo={class:"mt-4"},pOo=["placeholder"],gOo={class:"form-label",for:"product-count"},vOo={key:0,class:"help-block small text-danger"},_Oo={key:2},yOo={class:"mt-3"},bOo={id:"tabs",class:"tabs mb-4"},kOo={class:"tabList"},wOo={key:0,class:"notification notification-gray"};function $Oo(e,t,n,o,i,r){const s=y("AppSelect"),a=y("SectionCreateProductAddTable"),l=y("SectionCreateProductAddedTable"),d=y("SectionSelect"),u=y("ClassSubjectSelect"),f=y("v-select"),p=y("AppIcon"),v=y("draggable"),_=y("SectionDesign"),k=y("FormSidebar"),C=an("tooltip");return e.auth.is_admin?(h(),W(k,{key:0,id:"section-create",onClose:r.close,onSubmit:r.create},{title:F(()=>[z(m(e.$t("administration.content.section.create.title")),1)]),"submit-button":F(()=>[z(m(e.$t("administration.create")),1)]),content:F(()=>[c("div",jxo,[c("div",{class:J([{"has-error":o.v$.title.$error},"form-group form-floating mb-4"])},[xe(c("input",{id:"title",class:"form-control",placeholder:e.$t("public.title"),type:"text",name:"title","onUpdate:modelValue":t[0]||(t[0]=$=>o.v$.title.$model=$)},null,8,Fxo),[[wt,o.v$.title.$model]]),c("label",zxo,m(e.$t("administration.content.section.create.name")),1),o.v$.title.$error&&o.v$.title.required.$invalid?(h(),g("span",Uxo,m(e.$t("validation.custom.title.required")),1)):D("",!0)],2),c("div",Bxo,[xe(c("textarea",{class:"form-control",id:"description",name:"description",rows:"4",placeholder:e.$t("administration.content.section.create.description"),"onUpdate:modelValue":t[1]||(t[1]=$=>r.description=$)},null,8,Hxo),[[wt,r.description]]),c("label",Vxo,m(e.$t("administration.content.section.create.description")),1)])]),i.permanentIds.includes(e.detail.id)?(h(),g("div",fOo,[c("div",mOo,[c("div",{class:J(["form-group form-floating",{"has-error":o.v$.productHomepageCount.$error}])},[xe(c("input",{id:"product-count",name:"product-count",type:"number",class:"form-control",placeholder:e.$t("administration.content.section.create.product.count"),"onUpdate:modelValue":t[13]||(t[13]=$=>o.v$.productHomepageCount.$model=$),min:"1"},null,8,pOo),[[wt,o.v$.productHomepageCount.$model]]),c("label",gOo,m(e.$t("administration.content.section.create.product.count")),1),o.v$.productHomepageCount.$error&&o.v$.productHomepageCount.required.$invalid?(h(),g("span",vOo,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0)],2)])])):(h(),g("div",qxo,[c("h4",Yxo,m(e.$t("administration.content.section.create.product.title")),1),c("div",null,[b(s,{selected:r.type,"onUpdate:selected":t[2]||(t[2]=$=>r.type=$),"option-key":"key","option-name":"name",options:i.sectionConfig.types,label:e.$t("administration.content.section.create.product.type_label"),placeholder:"Vyberte typ..."},null,8,["selected","options","label"]),o.v$.type.$error&&o.v$.type.required.$invalid?(h(),g("span",Wxo,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0)]),r.type&&!["category","section"].includes(r.type)?(h(),g("div",Gxo,[c("div",{class:J(["form-group form-floating",{"has-error":o.v$.productHomepageCount.$error}])},[xe(c("input",{id:"product-count",name:"product-count",type:"number",class:"form-control",placeholder:e.$t("administration.content.section.create.product.count"),"onUpdate:modelValue":t[3]||(t[3]=$=>o.v$.productHomepageCount.$model=$),min:"1"},null,8,Zxo),[[wt,o.v$.productHomepageCount.$model]]),c("label",Kxo,m(e.$t("administration.content.section.create.product.count")),1),o.v$.productHomepageCount.$error&&o.v$.productHomepageCount.required.$invalid?(h(),g("span",Jxo,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0)],2)])):D("",!0),r.type=="manual"?(h(),g("div",Xxo,[c("div",Qxo,[c("ul",eOo,[c("li",{onClick:t[4]||(t[4]=$=>i.activeTab=i.sectionConfig.tabs.attachProductTab),class:J([i.activeTab===i.sectionConfig.tabs.attachProductTab?"active":""])},m(e.$t("administration.content.section.create.product.add")),3),c("li",{onClick:t[5]||(t[5]=$=>i.activeTab=i.sectionConfig.tabs.attachedProductsTab),class:J([i.activeTab===i.sectionConfig.tabs.attachedProductsTab?"active":""])},[z(m(e.$t("administration.content.section.create.product.added"))+" ",1),e.detail.products.length?(h(),g("span",tOo,m(e.detail.products.length),1)):D("",!0)],2)])]),i.activeTab===i.sectionConfig.tabs.attachProductTab?(h(),W(a,{key:0})):i.activeTab===i.sectionConfig.tabs.attachedProductsTab?(h(),W(l,{key:1})):D("",!0)])):D("",!0),r.type=="section"?(h(),W(d,{key:2,selected:r.sections,"onUpdate:selected":t[6]||(t[6]=$=>r.sections=$),class:"mt-4 p-0",filtered:""},null,8,["selected"])):D("",!0),r.type=="class_subject"?(h(),W(u,{key:3,class:"mt-4","class-selected":r.classCategory,"onUpdate:classSelected":t[7]||(t[7]=$=>r.classCategory=$),"subjects-selected":r.subjects,"onUpdate:subjectsSelected":t[8]||(t[8]=$=>r.subjects=$)},null,8,["class-selected","subjects-selected"])):D("",!0),r.type=="category"?(h(),g("div",nOo,[c("div",oOo,[b(f,{label:"name",searchable:"",multiple:"",class:"form-control",modelValue:r.categories,"onUpdate:modelValue":t[9]||(t[9]=$=>r.categories=$),options:e.categoriesAll,reduce:$=>$.id,placeholder:e.$t("administration.content.section.create.product.category"),clearable:!1,"close-on-select":!0},{option:F($=>[z(m($.name),1)]),_:1},8,["modelValue","options","reduce","placeholder"]),c("label",iOo,m(e.$t("administration.content.section.create.product.category")),1)]),c("div",rOo,[b(v,{modelValue:r.categories,"onUpdate:modelValue":t[10]||(t[10]=$=>r.categories=$),group:"categories","item-key":"id",onStart:t[11]||(t[11]=$=>i.drag=!0),onEnd:t[12]||(t[12]=$=>i.drag=!1)},{item:F(({element:$})=>[c("div",sOo,[c("div",aOo,[c("div",null,[b(p,{icon:"grip-dots-vertical",width:"24",height:"24","icon-color":"#99AFF5",class:"me-3"}),c("span",lOo,m(r.categoryName($)),1)]),c("div",null,[xe((h(),g("button",{class:"btn btn-sm btn-tertiary btn-center",onClick:E=>r.openCategoryImageUpdateSidebar($)},[b(p,{icon:"edit"})],8,cOo)),[[C,{content:e.$t("administration.update_image"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),xe((h(),g("button",{class:"btn btn-sm btn-tertiary btn-danger btn-center",onClick:E=>r.categoryRemove($)},[b(p,{icon:"minus-circle"})],8,dOo)),[[C,{content:e.$t("administration.remove"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])]),r.categoryImagePath($)?(h(),g("div",uOo,[c("img",{src:r.categoryImagePath($),class:"h-9dot375rem"},null,8,hOo)])):D("",!0)])]),_:1},8,["modelValue"])])])):D("",!0)])),e.detail.id==1?(h(),g("div",_Oo,[c("div",yOo,[c("div",bOo,[c("ul",kOo,[c("li",{onClick:t[14]||(t[14]=$=>i.activeTab=i.sectionConfig.tabs.attachProductTab),class:J([i.activeTab===i.sectionConfig.tabs.attachProductTab?"active":""])},m(e.$t("administration.content.section.create.product.add")),3),c("li",{onClick:t[15]||(t[15]=$=>i.activeTab=i.sectionConfig.tabs.attachedProductsTab),class:J([i.activeTab===i.sectionConfig.tabs.attachedProductsTab?"active":""])},[z(m(e.$t("administration.content.section.create.product.added"))+" ",1),e.detail.products.length?(h(),g("span",wOo,m(e.detail.products.length),1)):D("",!0)],2)])]),i.activeTab===i.sectionConfig.tabs.attachProductTab?(h(),W(a,{key:0})):i.activeTab===i.sectionConfig.tabs.attachedProductsTab?(h(),W(l,{key:1})):D("",!0)])])):D("",!0),b(_,{class:"mt-5",disabled:""})]),_:1},8,["onClose","onSubmit"])):D("",!0)}const COo=U(Rxo,[["render",$Oo]]),SOo={components:{FormSidebar:_n,SectionCreateProductAddTable:Vde,SectionCreateProductAddedTable:qde,draggable:nk,AppSelect:ak,ClassSubjectSelect:Yde,SectionDesign:Gde,SectionSelect:Wde},data(){return{sectionConfig:N1,activeTab:N1.tabs.attachProductTab,permanentIds:N1.permanentIds,images:[],maxFileSize:"5MB",resetSectionDetail:!0,drag:!1}},validations:{title:{required:Yt},productHomepageCount:{required:Yt},type:{required:Yt}},computed:{...Oe({detail:"administrationSection/getDetail",categoriesAll:"administrationSection/getCategories",auth:"auth/auth"}),title:{get(){return this.$store.getters["administrationSection/getDetailTitle"]},set(e){this.$store.commit("administrationSection/setDetailTitle",e)}},description:{get(){return this.$store.getters["administrationSection/getDetailDescription"]},set(e){this.$store.commit("administrationSection/setDetailDescription",e)}},type:{get(){return this.$store.getters["administrationSection/getDetailType"]},set(e){this.$store.commit("administrationSection/setDetailType",e)}},productHomepageCount:{get(){return this.$store.getters["administrationSection/getDetailProductHomepageCount"]},set(e){this.$store.commit("administrationSection/setDetailProductHomepageCount",e)}},categories:{get(){return this.$store.getters["administrationSection/getDetailCategories"]},set(e){this.$store.commit("administrationSection/setDetailCategories",e)}},classCategory:{get(){return this.$store.getters["administrationSection/getDetailClass"]},set(e){this.$store.commit("administrationSection/setDetailClass",e)}},subjects:{get(){return this.$store.getters["administrationSection/getDetailSubjects"]},set(e){this.$store.commit("administrationSection/setDetailSubjects",e)}},sections:{get(){return this.$store.getters["administrationSection/getDetailSections"]},set(e){this.$store.commit("administrationSection/setDetailSections",e)}}},methods:{update(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("administrationSection/update",{filters:Mi.getFilters(this.$route.query)}).then(()=>{this.v$.$reset()})},close(){this.resetSectionDetail&&this.$store.commit("administrationSection/resetDetail")},categoryImagePath(e){let t=this.categoriesAll.find(o=>o.id==e);return t?t.image_path:null},categoryName(e){let t=this.categoriesAll.find(o=>o.id==e);return t?t.name:null},categoryRemove(e){var t=this.categories.indexOf(e);t!==-1&&this.categories.splice(t,1)},openCategoryImageUpdateSidebar(e){this.resetSectionDetail=!1;let t=this.categoriesAll.find(n=>n.id==e);this.$store.dispatch("sidebar/close"),this.$store.commit("administrationCategory/setDetail",t),this.$store.dispatch("sidebar/open",{type:"category-image-update",data:{openSectionUpdateSidebar:!0}}),this.resetSectionDetail=!0}},mounted(){this.$store.dispatch("administrationSection/categories")},setup(){return{v$:Pn()}}},TOo={class:"mb-5"},EOo=["placeholder"],IOo={class:"form-label",for:"title"},POo={key:0,class:"help-block small text-danger"},AOo={class:"form-group form-floating mb-4"},DOo=["placeholder"],xOo={class:"form-label",for:"description"},OOo={key:0},LOo={class:"mb-4"},MOo={key:0,class:"help-block small text-danger"},NOo={key:0,class:"mt-4"},ROo=["placeholder"],jOo={class:"form-label",for:"product-count"},FOo={key:0,class:"help-block small text-danger"},zOo={key:1,class:"mt-3"},UOo={id:"tabs",class:"tabs mb-4"},BOo={class:"tabList"},HOo={key:0,class:"notification notification-gray"},VOo={key:4,class:"mt-4"},qOo={class:"form-group form-floating"},YOo={for:"type",class:"form-label"},WOo={class:"mt-3"},GOo={class:"cursor-all-scroll mb-3 border rounded"},ZOo={class:"d-flex align-items-center justify-content-between border-bottom p-3"},KOo={class:"medium"},JOo=["onClick"],XOo=["onClick"],QOo={key:0,class:"d-flex justify-content-center align-items-center bg-secondary p-3"},eLo=["src"],tLo={key:1},nLo={class:"mt-4"},oLo=["placeholder"],iLo={class:"form-label",for:"product-count"},rLo={key:0,class:"help-block small text-danger"},sLo={key:2},aLo={class:"mt-3"},lLo={id:"tabs",class:"tabs mb-4"},cLo={class:"tabList"},dLo={key:0,class:"notification notification-gray"};function uLo(e,t,n,o,i,r){const s=y("AppSelect"),a=y("SectionCreateProductAddTable"),l=y("SectionCreateProductAddedTable"),d=y("SectionSelect"),u=y("ClassSubjectSelect"),f=y("v-select"),p=y("app-icon"),v=y("draggable"),_=y("SectionDesign"),k=y("FormSidebar"),C=an("tooltip");return e.auth.is_admin?(h(),W(k,{key:0,id:"section-update",onClose:r.close,onSubmit:r.update},{title:F(()=>[z(m(e.$t("administration.content.section.update.title")),1)]),subtitle:F(()=>[z(m(e.detail.title),1)]),"submit-button":F(()=>[z(m(e.$t("administration.update")),1)]),content:F(()=>[c("div",TOo,[c("div",{class:J([{"form-group":!0,"has-error":o.v$.title.$error},"form-floating mb-4"])},[xe(c("input",{id:"title",class:"form-control",placeholder:e.$t("public.title"),type:"text",name:"title","onUpdate:modelValue":t[0]||(t[0]=$=>o.v$.title.$model=$)},null,8,EOo),[[wt,o.v$.title.$model]]),c("label",IOo,m(e.$t("administration.content.section.create.name")),1),o.v$.title.$error&&o.v$.title.required.$invalid?(h(),g("span",POo,m(e.$t("validation.custom.title.required")),1)):D("",!0)],2),c("div",AOo,[xe(c("textarea",{class:"form-control",id:"description",name:"description",rows:"4",placeholder:e.$t("administration.content.section.create.description"),"onUpdate:modelValue":t[1]||(t[1]=$=>r.description=$)},null,8,DOo),[[wt,r.description]]),c("label",xOo,m(e.$t("administration.content.section.create.description")),1)])]),i.permanentIds.includes(e.detail.id)?(h(),g("div",tLo,[c("div",nLo,[c("div",{class:J(["form-group form-floating",{"has-error":o.v$.productHomepageCount.$error}])},[xe(c("input",{id:"product-count",name:"product-count",type:"number",class:"form-control",placeholder:e.$t("administration.content.section.create.product.count"),"onUpdate:modelValue":t[13]||(t[13]=$=>o.v$.productHomepageCount.$model=$),min:"1"},null,8,oLo),[[wt,o.v$.productHomepageCount.$model]]),c("label",iLo,m(e.$t("administration.content.section.create.product.count")),1),o.v$.productHomepageCount.$error&&o.v$.productHomepageCount.required.$invalid?(h(),g("span",rLo,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0)],2)])])):(h(),g("div",OOo,[c("h4",LOo,m(e.$t("administration.content.section.create.product.title")),1),c("div",null,[b(s,{selected:r.type,"onUpdate:selected":t[2]||(t[2]=$=>r.type=$),"option-key":"key","option-name":"name",options:i.sectionConfig.types,label:e.$t("administration.content.section.create.product.type_label"),placeholder:"Vyberte typ..."},null,8,["selected","options","label"]),o.v$.type.$error&&o.v$.type.required.$invalid?(h(),g("span",MOo,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0)]),r.type&&!["category","section"].includes(r.type)?(h(),g("div",NOo,[c("div",{class:J(["form-group form-floating",{"has-error":o.v$.productHomepageCount.$error}])},[xe(c("input",{id:"product-count",name:"product-count",type:"number",class:"form-control",placeholder:e.$t("administration.content.section.create.product.count"),"onUpdate:modelValue":t[3]||(t[3]=$=>o.v$.productHomepageCount.$model=$),min:"1"},null,8,ROo),[[wt,o.v$.productHomepageCount.$model]]),c("label",jOo,m(e.$t("administration.content.section.create.product.count")),1),o.v$.productHomepageCount.$error&&o.v$.productHomepageCount.required.$invalid?(h(),g("span",FOo,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0)],2)])):D("",!0),r.type=="manual"?(h(),g("div",zOo,[c("div",UOo,[c("ul",BOo,[c("li",{onClick:t[4]||(t[4]=$=>i.activeTab=i.sectionConfig.tabs.attachProductTab),class:J([i.activeTab===i.sectionConfig.tabs.attachProductTab?"active":""])},m(e.$t("administration.content.section.create.product.add")),3),c("li",{onClick:t[5]||(t[5]=$=>i.activeTab=i.sectionConfig.tabs.attachedProductsTab),class:J([i.activeTab===i.sectionConfig.tabs.attachedProductsTab?"active":""])},[z(m(e.$t("administration.content.section.create.product.added"))+" ",1),e.detail.products.length?(h(),g("span",HOo,m(e.detail.products.length),1)):D("",!0)],2)])]),i.activeTab===i.sectionConfig.tabs.attachProductTab?(h(),W(a,{key:0})):i.activeTab===i.sectionConfig.tabs.attachedProductsTab?(h(),W(l,{key:1})):D("",!0)])):D("",!0),r.type=="section"?(h(),W(d,{key:2,selected:r.sections,"onUpdate:selected":t[6]||(t[6]=$=>r.sections=$),class:"mt-4 p-0",filtered:""},null,8,["selected"])):D("",!0),r.type=="class_subject"?(h(),W(u,{key:3,class:"mt-4","class-selected":r.classCategory,"onUpdate:classSelected":t[7]||(t[7]=$=>r.classCategory=$),"subjects-selected":r.subjects,"onUpdate:subjectsSelected":t[8]||(t[8]=$=>r.subjects=$)},null,8,["class-selected","subjects-selected"])):D("",!0),r.type=="category"?(h(),g("div",VOo,[c("div",qOo,[b(f,{searchable:"",multiple:"",label:"name",class:"form-control",modelValue:r.categories,"onUpdate:modelValue":t[9]||(t[9]=$=>r.categories=$),options:e.categoriesAll,reduce:$=>$.id,placeholder:e.$t("administration.content.section.create.product.category"),clearable:!1,"close-on-select":!0},{option:F($=>[z(m($.name),1)]),_:1},8,["modelValue","options","reduce","placeholder"]),c("label",YOo,m(e.$t("administration.content.section.create.product.category")),1)]),c("div",WOo,[b(v,{modelValue:r.categories,"onUpdate:modelValue":t[10]||(t[10]=$=>r.categories=$),group:"categories","item-key":"id",onStart:t[11]||(t[11]=$=>i.drag=!0),onEnd:t[12]||(t[12]=$=>i.drag=!1)},{item:F(({element:$})=>[c("div",GOo,[c("div",ZOo,[c("div",null,[b(p,{icon:"grip-dots-vertical",width:"24",height:"24","icon-color":"#99AFF5",class:"me-3"}),c("span",KOo,m(r.categoryName($)),1)]),c("div",null,[xe((h(),g("button",{class:"btn btn-sm btn-tertiary btn-center",onClick:E=>r.openCategoryImageUpdateSidebar($)},[b(p,{icon:"edit"})],8,JOo)),[[C,{content:e.$t("administration.update_image"),delay:{show:500,hide:100},triggers:["hover","click"]}]]),xe((h(),g("button",{class:"btn btn-sm btn-tertiary btn-danger btn-center",onClick:E=>r.categoryRemove($)},[b(p,{icon:"minus-circle"})],8,XOo)),[[C,{content:e.$t("administration.remove"),delay:{show:500,hide:100},triggers:["hover","click"]}]])])]),r.categoryImagePath($)?(h(),g("div",QOo,[c("img",{src:r.categoryImagePath($),class:"h-8dot5625rem"},null,8,eLo)])):D("",!0)])]),_:1},8,["modelValue"])])])):D("",!0)])),e.detail.id==1?(h(),g("div",sLo,[c("div",aLo,[c("div",lLo,[c("ul",cLo,[c("li",{onClick:t[14]||(t[14]=$=>i.activeTab=i.sectionConfig.tabs.attachProductTab),class:J([i.activeTab===i.sectionConfig.tabs.attachProductTab?"active":""])},m(e.$t("administration.content.section.create.product.add")),3),c("li",{onClick:t[15]||(t[15]=$=>i.activeTab=i.sectionConfig.tabs.attachedProductsTab),class:J([i.activeTab===i.sectionConfig.tabs.attachedProductsTab?"active":""])},[z(m(e.$t("administration.content.section.create.product.added"))+" ",1),e.detail.products.length?(h(),g("span",dLo,m(e.detail.products.length),1)):D("",!0)],2)])]),i.activeTab===i.sectionConfig.tabs.attachProductTab?(h(),W(a,{key:0})):i.activeTab===i.sectionConfig.tabs.attachedProductsTab?(h(),W(l,{key:1})):D("",!0)])])):D("",!0),b(_,{class:"mt-5"})]),_:1},8,["onClose","onSubmit"])):D("",!0)}const hLo=U(SOo,[["render",uLo]]),fLo={components:{FormSidebar:_n},computed:{...Oe({section:"administrationSection/getDetail",auth:"auth/auth"})},methods:{deleteSection(){this.$store.dispatch("administrationSection/delete",{slug:this.section.slug,filters:Mi.getFilters(this.$route.query)})}}};function mLo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"section-delete",onSubmit:r.deleteSection,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("administration.content.section.delete.title")),1)]),subtitle:F(()=>[z(m(e.section.title),1)]),"submit-button":F(()=>[z(m(e.$t("administration.delete")),1)]),content:F(()=>[z(m(e.$t("administration.content.section.delete.subtitle")),1)]),_:1},8,["onSubmit"])):D("",!0)}const pLo=U(fLo,[["render",mLo]]),gLo={components:{FormSidebar:_n},validations:{name:{required:Yt}},computed:{...Oe({category:"administrationCategory/getDetail",auth:"auth/auth"}),name:{get(){return this.$store.getters["administrationCategory/getDetailName"]},set(e){this.$store.commit("administrationCategory/setDetailName",e)}}},methods:{create(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("administrationCategory/create",{type:this.category.type,filters:Mi.getFilters(this.$route.query)})},close(){this.v$.$reset()}},setup(){return{v$:Pn()}}},vLo={class:"form-group form-floating mb-4"},_Lo=["placeholder"],yLo={for:"name",class:"from-label"},bLo={key:0,class:"invalid-feedback"};function kLo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"category-create",onClose:r.close,onSubmit:r.create},{title:F(()=>[z(m(e.$tm("category.add.title")[e.category.type]),1)]),"submit-button":F(()=>[z(m(e.$t("administration.create")),1)]),content:F(()=>[c("div",vLo,[xe(c("input",{id:"name",class:J({"form-control":!0,"is-invalid":o.v$.name.$error}),autocomplete:"off",placeholder:e.$tm("category.add.input")[e.category.type],type:"text",name:"name","onUpdate:modelValue":t[0]||(t[0]=a=>r.name=a),maxlength:"80"},null,10,_Lo),[[wt,r.name]]),c("label",yLo,m(e.$tm("category.add.input")[e.category.type]),1),o.v$.name.$error&&o.v$.name.required.$invalid?(h(),g("span",bLo,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0)])]),_:1},8,["onClose","onSubmit"])):D("",!0)}const wLo=U(gLo,[["render",kLo]]),$Lo={components:{AppIcon:Ue,FormSidebar:_n},validations:{name:{required:Yt}},data(){return{subname:"",updateNameIdActive:!1}},computed:{...Oe({childrenStore:"administrationCategory/getDetailChildren",category:"administrationCategory/getDetail",auth:"auth/auth"}),name:{get(){return this.$store.getters["administrationCategory/getDetailName"]},set(e){this.$store.commit("administrationCategory/setDetailName",e)}},children:{get(){return this.childrenStore},set(e){this.$store.commit("administrationCategory/setDetailChildren",e)}}},methods:{update(e=!0,t=null){if(this.v$.$touch(),!this.v$.$invalid){if(t){if(!t.name)return;this.updateNameIdActive=null}this.$store.dispatch("administrationCategory/update",{subcategory:t,type:this.category.type,close:e,filters:Mi.getFilters(this.$route.query)})}},close(){this.$store.commit("administrationCategory/resetDetail"),this.v$.$reset()},addSubcategory(){this.subname&&(this.children.push({name:this.subname}),this.update(!1),this.subname="")},removeSubcategory(e){this.$store.dispatch("sidebar/close"),this.$store.commit("administrationCategory/setDetail",e),this.$store.dispatch("administrationCategory/deleteInfo",{id:e.id}),this.$store.dispatch("sidebar/open",{type:"category-delete"})}},setup(){return{v$:Pn()}}},CLo={class:"form-group form-floating mb-4"},SLo=["placeholder"],TLo={for:"name",class:"from-label"},ELo={key:0,class:"invalid-feedback"},ILo={class:"mb-4"},PLo={class:"form-group form-floating mb-4"},ALo={class:"input-group"},DLo=["placeholder"],xLo={class:"input-group-text cursor-pointer"},OLo={key:0,class:"flex-grow-1 d-flex justify-content-between align-items-center"},LLo=["onClick"],MLo={key:1,class:"flex-grow-1 d-flex justify-content-between align-items-center"},NLo=["onUpdate:modelValue"],RLo=["onClick"],jLo=["onClick"];function FLo(e,t,n,o,i,r){const s=y("AppIcon"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"category-update",onClose:r.close,onSubmit:r.update},{title:F(()=>[z(m(e.$tm("category.update.title")[e.category.type]),1)]),"submit-button":F(()=>[z(m(e.$t("administration.update")),1)]),"close-button":F(()=>[z(m(e.$t("administration.close")),1)]),content:F(()=>[c("div",CLo,[xe(c("input",{id:"name",class:J({"form-control":!0,"is-invalid":o.v$.name.$error}),autocomplete:"off",placeholder:e.$tm("category.add.input")[e.category.type],type:"text",name:"name","onUpdate:modelValue":t[0]||(t[0]=l=>r.name=l),maxlength:"80"},null,10,SLo),[[wt,r.name]]),c("label",TLo,m(e.$tm("category.add.input")[e.category.type]),1),o.v$.name.$error&&o.v$.name.required.$invalid?(h(),g("span",ELo,m(e.$t("validation.filled",{attribute:e.$t("public.array")})),1)):D("",!0)]),c("h4",ILo,m(e.$tm("category.subheadline")[e.category.type]),1),c("div",PLo,[c("div",ALo,[xe(c("input",{id:"subname",class:"form-control border-end-0",autocomplete:"off",placeholder:e.$tm("category.subadd.input")[e.category.type],type:"text",name:"subname","onUpdate:modelValue":t[1]||(t[1]=l=>i.subname=l),maxlength:"80"},null,8,DLo),[[wt,i.subname]]),c("span",xLo,[c("button",{class:"btn btn-sm btn-tertiary",onClick:t[2]||(t[2]=(...l)=>r.addSubcategory&&r.addSubcategory(...l))},[b(s,{icon:"plus-circle"})])])])]),(h(!0),g(pe,null,Me(r.children,(l,d)=>(h(),g("div",{key:d,class:"d-flex justify-content-between align-items-center border px-2dot5 py-2dot5"},[i.updateNameIdActive!=l.id?(h(),g("div",OLo,[z(m(l.name)+" ",1),c("button",{class:"btn btn-sm btn-tertiary ms-2",onClick:u=>i.updateNameIdActive=l.id},[b(s,{icon:"edit"})],8,LLo)])):(h(),g("div",MLo,[xe(c("input",{class:"form-control",type:"text","onUpdate:modelValue":u=>l.name=u,id:"text"},null,8,NLo),[[wt,l.name]]),c("button",{class:"btn btn-sm btn-tertiary ms-2",onClick:u=>r.update(!1,l)},[b(s,{icon:"check"})],8,RLo)])),c("button",{class:"btn btn-sm btn-tertiary btn-danger",onClick:u=>r.removeSubcategory(l)},[b(s,{icon:"delete"})],8,jLo)]))),128))]),_:1},8,["onClose","onSubmit"])):D("",!0)}const zLo=U($Lo,[["render",FLo]]),ULo={components:{FormSidebar:_n},computed:{...Oe({category:"administrationCategory/getDetail",categoryDeleteInfo:"administrationCategory/getDeleteInfo",auth:"auth/auth"})},methods:{remove(){this.$store.dispatch("administrationCategory/delete",{id:this.category.id,type:this.category.type,filters:Mi.getFilters(this.$route.query)})}}},BLo={key:0},HLo={key:1};function VLo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"category-delete",onSubmit:r.remove,"submit-color":"danger"},{title:F(()=>[z(m(e.$tm("category.remove.title")[e.category.type]),1)]),subtitle:F(()=>[z(m(e.category.name),1)]),"submit-button":F(()=>[z(m(e.$t("administration.delete")),1)]),content:F(()=>[c("p",null,m(e.$tm("category.remove.modal.headline")[e.category.type]),1),e.categoryDeleteInfo.children_count>0?(h(),g("div",BLo,[z(m(e.$t("administration.content.category.delete_prompt.with_children.0",{name:e.category.name}))+" ",1),c("ul",null,[c("li",null,m(e.$t("administration.content.category.delete_prompt.with_children.1",{products_count:e.categoryDeleteInfo.products_count})),1),c("li",null,m(e.$t("administration.content.category.delete_prompt.with_children.2",{children_count:e.categoryDeleteInfo.children_count})),1)])])):(h(),g("div",HLo,[z(m(e.$t("administration.content.category.delete_prompt.no_children.0",{name:e.category.name}))+" ",1),c("ul",null,[c("li",null,m(e.$t("administration.content.category.delete_prompt.no_children.1",{products_count:e.categoryDeleteInfo.products_count})),1),c("li",null,m(e.$t("administration.content.category.delete_prompt.no_children.2")),1)])]))]),_:1},8,["onSubmit"])):D("",!0)}const qLo=U(ULo,[["render",VLo]]),YLo={components:{AppIcon:Ue,FormSidebar:_n,Loading:Rt},data(){return{primaryColor:window.primaryColor,csrf:document.head.querySelector('meta[name="csrf-token"]').content,image:[]}},computed:{...Oe({category:"administrationCategory/getDetail",data:"sidebar/getData",auth:"auth/auth",detail:"administrationSection/getDetail"}),loading(){return 0 in this.image?this.image[0].active:!1}},methods:{imageThumbnail(e){e.blob="";let t=window.URL||window.webkitURL;t&&t.createObjectURL&&(e.blob=t.createObjectURL(e.file))},imageUpdate(e,t){e&&!t&&(!this.$refs.uploadCategoryImage||!this.$refs.uploadCategoryImage.active)&&(this.$refs.uploadCategoryImage.active=1),e&&t&&!e.active&&t.active&&(this.$store.dispatch("administrationCategory/list",{type:this.category.type,filters:Mi.getFilters(this.$route.query)}).then(()=>{this.$store.commit("administrationCategory/setDetail",e.response.category)}),window.flash(e.response.message,e.xhr.status===200?"success":"error"))},close(){this.$store.commit("administrationCategory/resetDetail"),this.data.openSectionCreateSidebar&&(this.$store.dispatch("administrationSection/categories"),this.$store.dispatch("sidebar/open",{type:"section-create"})),this.data.openSectionUpdateSidebar&&(this.$store.dispatch("administrationSection/categories"),this.$store.dispatch("sidebar/open",{type:"section-update"}))}}},WLo={key:0,class:"mb-4"},GLo={class:"mb-4"},ZLo={class:"text-center"},KLo=["src"],JLo={key:1,class:"mb-4"},XLo={key:2,class:"mb-4"},QLo={class:"upload-box-upload"},eMo={class:"upload-inner upload-block"},tMo={class:"d-flex flex-column ms-5 align-items-baseline"};function nMo(e,t,n,o,i,r){const s=y("Loading"),a=y("AppIcon"),l=y("upload"),d=y("FormSidebar");return e.auth.is_admin?(h(),W(d,{key:0,id:"category-image-update",onClose:r.close},{title:F(()=>[z(m(e.$t("administration.content.category.images.sidepanel.title")),1)]),subtitle:F(()=>[z(m(e.category.name),1)]),content:F(()=>[b(s,{active:r.loading,"onUpdate:active":t[0]||(t[0]=u=>r.loading=u),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"]),e.category.image_path?(h(),g("div",WLo,[c("h4",GLo,m(e.$t("administration.content.category.images.sidepanel.current_image")),1),c("div",ZLo,[c("img",{src:e.category.image_path,class:"img-fluid maxh-18dot75rem",alt:"kategorie"},null,8,KLo)])])):D("",!0),e.category.image_path?(h(),g("h4",JLo,m(e.$t("administration.content.category.images.sidepanel.upload_change")),1)):(h(),g("h4",XLo,m(e.$t("administration.content.category.images.sidepanel.upload_new")),1)),c("div",QLo,[b(l,{class:"upload","post-action":e.ziggyRoute("administration.api.content.category.update.image",{category:e.category.id}),extensions:"gif,jpg,jpeg,png,webp,svg",accept:"image/png,image/gif,image/jpeg,image/webp,image/svg+xml",multiple:!1,modelValue:i.image,"onUpdate:modelValue":t[1]||(t[1]=u=>i.image=u),onInputFilter:r.imageThumbnail,onInputFile:r.imageUpdate,headers:{"X-CSRF-TOKEN":i.csrf},ref:"uploadCategoryImage","input-id":"uploadCategoryImage"},{default:F(()=>[c("div",eMo,[b(a,{icon:"upload",class:"text-primary"}),c("div",tMo,m(e.$t("administration.content.category.images.sidepanel.upload_new"))+" "+m(e.$t("administration.content.category.images.sidepanel.upload_info")),1)])]),_:1},8,["post-action","modelValue","onInputFilter","onInputFile","headers"])])]),_:1},8,["onClose"])):D("",!0)}const oMo=U(YLo,[["render",nMo]]),iMo={components:{FormSidebar:_n},computed:{...Oe({allSubjects:"administrationCategory/getList",parent:"administrationClassSubject/getClass",selectedSubjectCategories:"administrationClassSubject/getSubjectCategoryList",auth:"auth/auth"}),subjectCategory:{get(){return Object.keys(this.$store.getters["administrationClassSubject/getSubjectCategory"]).length?this.$store.getters["administrationClassSubject/getSubjectCategory"]:null},set(e){this.$store.commit("administrationClassSubject/setSubjectCategory",e)}},possibleSubjects(){return this.allSubjects.filter(e=>!e.parent_id&&!this.selectedSubjectCategoriesId.includes(e.id))},selectedSubjectCategoriesId(){return this.selectedSubjectCategories.map(e=>e.id)}},methods:{add(){this.$store.dispatch("administrationClassSubject/add",{type:"subjectCategory"})},close(){this.$store.commit("administrationClassSubject/resetDetail")}},mounted(){this.$store.dispatch("administrationCategory/list",{type:"subject"})}},rMo={class:"form-group form-floating"};function sMo(e,t,n,o,i,r){const s=y("v-select"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"class-subject-subject-category-add",onClose:r.close,onSubmit:r.add},{title:F(()=>[z(m(e.$t("category.add.title.class_subject_category")+" ke stupni"),1)]),subtitle:F(()=>[z(m(e.parent.name),1)]),"submit-button":F(()=>[z(m(e.$t("administration.add")),1)]),content:F(()=>[c("div",rMo,[b(s,{id:"class-subject-subjecy-category-add",label:"name",class:"form-control",modelValue:r.subjectCategory,"onUpdate:modelValue":t[0]||(t[0]=l=>r.subjectCategory=l),options:r.possibleSubjects,placeholder:e.$t("category.add.select.placeholder"),"close-on-select":!0},null,8,["modelValue","options","placeholder"])])]),_:1},8,["onClose","onSubmit"])):D("",!0)}const aMo=U(iMo,[["render",sMo]]),lMo={components:{FormSidebar:_n},computed:{...Oe({allSubjects:"administrationCategory/getList",parent:"administrationClassSubject/getClass",subjectCategory:"administrationClassSubject/getSubjectCategory",classId:"administrationClassSubject/getClassIndex",subjectId:"administrationClassSubject/getSubjectIndex",selectedSubjects:"administrationClassSubject/getSubjectList",auth:"auth/auth"}),subject:{get(){return Object.keys(this.$store.getters["administrationClassSubject/getSubject"]).length?this.$store.getters["administrationClassSubject/getSubject"]:null},set(e){this.$store.commit("administrationClassSubject/setSubject",e)}},selectedSubjectCategory(){return this.subjectCategory.id?this.allSubjects.find(e=>e.id==this.subjectCategory.id):null},possibleSubjects(){return this.selectedSubjectCategory?this.selectedSubjectCategory.children.filter(e=>!this.selectedSubjectsId.includes(e.id)):[]},selectedSubjectsId(){return this.selectedSubjects.map(e=>e.id)}},methods:{add(){this.$store.dispatch("administrationClassSubject/add",{type:"subject"})},close(){this.$store.commit("administrationClassSubject/resetDetail")}},mounted(){this.$store.dispatch("administrationCategory/list",{type:"subject"})}},cMo={class:"form-group form-floating"};function dMo(e,t,n,o,i,r){const s=y("v-select"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"class-subject-subject-add",onSubmit:r.add},{title:F(()=>[z(m(e.$t("category.add.title.class_subject")+" k stupni"),1)]),subtitle:F(()=>[z(m(e.parent.name),1)]),"submit-button":F(()=>[z(m(e.$t("administration.add")),1)]),content:F(()=>[c("div",cMo,[b(s,{id:"class-subject-add",label:"name",class:"form-control",modelValue:r.subject,"onUpdate:modelValue":t[0]||(t[0]=l=>r.subject=l),options:r.possibleSubjects,placeholder:e.$t("category.add.select.placeholder"),"close-on-select":!0},null,8,["modelValue","options","placeholder"])])]),_:1},8,["onSubmit"])):D("",!0)}const uMo=U(lMo,[["render",dMo]]),hMo={components:{FormSidebar:_n},computed:{...Oe({auth:"auth/auth",allSubjects:"administrationCategory/getList",parent:"administrationClassSubject/getClass",subjectCategory:"administrationClassSubject/getSubjectCategory",subject:"administrationClassSubject/getSubject",selectedSubsubjects:"administrationClassSubject/getSubsubjectList"}),subsubject:{get(){return Object.keys(this.$store.getters["administrationClassSubject/getSubsubject"]).length?this.$store.getters["administrationClassSubject/getSubsubject"]:null},set(e){this.$store.commit("administrationClassSubject/setSubsubject",e)}},selectedSubjectCategory(){return this.subjectCategory.id?this.allSubjects.find(e=>e.id==this.subjectCategory.id):null},selectedSubject(){return this.selectedSubjectCategory&&this.subject.id?this.selectedSubjectCategory.children.find(e=>e.id==this.subject.id):null},possibleSubsubjects(){return this.selectedSubject?this.selectedSubject.children.filter(e=>!this.selectedSubjectsId.includes(e.id)):[]},selectedSubjectsId(){return this.selectedSubsubjects.map(e=>e.id)}},methods:{add(){this.$store.dispatch("administrationClassSubject/add",{type:"subsubject"})},close(){this.$store.commit("administrationClassSubject/resetDetail")}},mounted(){this.$store.dispatch("administrationCategory/list",{type:"subject"})}},fMo={class:"form-group form-floating"};function mMo(e,t,n,o,i,r){const s=y("v-select"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"class-subject-subsubject-add",onSubmit:r.add},{title:F(()=>[z(m(e.$t("category.add.title.class_subsubject")+" k stupni"),1)]),subtitle:F(()=>[z(m(e.parent.name),1)]),"submit-button":F(()=>[z(m(e.$t("administration.add")),1)]),content:F(()=>[c("div",fMo,[b(s,{id:"class-subsubject-add",label:"name",class:"form-control",modelValue:r.subsubject,"onUpdate:modelValue":t[0]||(t[0]=l=>r.subsubject=l),options:r.possibleSubsubjects,placeholder:e.$t("category.add.select.placeholder"),"close-on-select":!0},null,8,["modelValue","options","placeholder"])])]),_:1},8,["onSubmit"])):D("",!0)}const pMo=U(hMo,[["render",mMo]]),gMo={components:{FormSidebar:_n},computed:{...Oe({detail:"administrationClassSubject/getSubjectCategory",auth:"auth/auth"})},methods:{remove(){this.$store.dispatch("administrationClassSubject/remove",{type:"subjectCategory"})}}};function vMo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"class-subject-subject-category-remove",onSubmit:r.remove,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("category.remove.title.class_subject")),1)]),subtitle:F(()=>[z(m(e.detail.name),1)]),"submit-button":F(()=>[z(m(e.$t("administration.remove")),1)]),content:F(()=>[z(m(e.$t("category.remove.modal.headline.class_subject")),1)]),_:1},8,["onSubmit"])):D("",!0)}const _Mo=U(gMo,[["render",vMo]]),yMo={components:{FormSidebar:_n},computed:{...Oe({detail:"administrationClassSubject/getSubject",auth:"auth/auth"})},methods:{remove(){this.$store.dispatch("administrationClassSubject/remove",{type:"subject"})}}};function bMo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"class-subject-subject-remove",onSubmit:r.remove,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("category.remove.title.class_subsubject")),1)]),subtitle:F(()=>[z(m(e.detail.name),1)]),"submit-button":F(()=>[z(m(e.$t("administration.remove")),1)]),content:F(()=>[z(m(e.$t("category.remove.modal.headline.class_subsubject")),1)]),_:1},8,["onSubmit"])):D("",!0)}const kMo=U(yMo,[["render",bMo]]),wMo={components:{FormSidebar:_n},computed:{...Oe({detail:"administrationClassSubject/getSubsubject",auth:"auth/auth"})},methods:{remove(){this.$store.dispatch("administrationClassSubject/remove",{type:"subsubject"})}}};function $Mo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"class-subject-subsubject-remove",onSubmit:r.remove,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("category.remove.title.class_subsubject")),1)]),subtitle:F(()=>[z(m(e.detail.name),1)]),"submit-button":F(()=>[z(m(e.$t("administration.remove")),1)]),content:F(()=>[z(m(e.$t("category.remove.modal.headline.class_subsubject")),1)]),_:1},8,["onSubmit"])):D("",!0)}const CMo=U(wMo,[["render",$Mo]]),SMo={components:{AppIcon:Ue},props:{disabled:{type:Boolean,default:!1}},data(){return{csrf:document.head.querySelector('meta[name="csrf-token"]').content,image:[]}},computed:{...sn({lockId:e=>e.administrationProductUploadLock.detail.id}),lockImage:{get(){return this.$store.getters["administrationProductUploadLock/getDetailCardImg"]},set(e){this.$store.commit("administrationProductUploadLock/setDetailCardImg",e)}}},methods:{lockImageThumbnail(e){e.blob="";let t=window.URL||window.webkitURL;t&&t.createObjectURL&&(e.blob=t.createObjectURL(e.file))},lockImageUpdate(e,t){e&&!t&&(!this.$refs.lockImageUpload||!this.$refs.lockImageUpload.active)&&(this.$refs.lockImageUpload.active=1),e&&t&&!e.active&&t.active&&(window.location.reload(),window.flash(e.response.message,e.xhr.status===200?"success":"error"))}}},TMo={class:"upload-inner upload-block"},EMo={key:0,class:"image-thumbnail mb-0 mt-3"},IMo=["src"],PMo={key:1,class:"d-flex align-items-center mt-2"};function AMo(e,t,n,o,i,r){const s=y("AppIcon"),a=y("upload");return h(),g("div",null,[c("div",{class:J(["upload-box-upload",{"upload-box-upload-disabled":n.disabled}])},[b(a,{"post-action":e.ziggyRoute("administration.api.content.product_upload_lock.image_update",{productUploadLock:e.lockId}),class:"upload",extensions:"gif,jpg,jpeg,png,webp,svg",accept:"image/png,image/gif,image/jpeg,image/webp,image/svg+xml",multiple:!1,modelValue:i.image,"onUpdate:modelValue":t[0]||(t[0]=l=>i.image=l),onInputFilter:r.lockImageThumbnail,onInputFile:r.lockImageUpdate,headers:{"X-CSRF-TOKEN":i.csrf},ref:"lockImageUpload","input-id":"lockImageUpload",disabled:n.disabled},{default:F(()=>[c("div",TMo,[b(s,{icon:"upload",height:24,width:24,class:J(["me-2",n.disabled?"text-gray-600":"text-primary"])},null,8,["class"]),z(" "+m(e.$t("public.image.title")),1)])]),_:1},8,["post-action","modelValue","onInputFilter","onInputFile","headers","disabled"])],2),r.lockImage?(h(),g("figure",EMo,[c("img",{src:r.lockImage,class:"image-thumbnail"},null,8,IMo)])):D("",!0),n.disabled?(h(),g("div",PMo,[b(s,{icon:"info-circle",height:16,width:16,class:"me-icon"}),z(" "+m(e.$t("product.image_upload_after_created")),1)])):D("",!0)])}const Zde=U(SMo,[["render",AMo]]),DMo={components:{FormSidebar:_n,DateSinglePicker:dd,ProductUploadLockImageUpload:Zde},data(){return{resetProductUploadLockDetail:!0,today:mt()}},validations:{title:{required:Yt},valid_from:{required:Yt},valid_to:{required:Yt}},computed:{...Oe({auth:"auth/auth"}),title:{get(){return this.$store.getters["administrationProductUploadLock/getDetailTitle"]},set(e){this.$store.commit("administrationProductUploadLock/setDetailTitle",e)}},description:{get(){return this.$store.getters["administrationProductUploadLock/getDetailDescription"]},set(e){this.$store.commit("administrationProductUploadLock/setDetailDescription",e)}},valid_from:{get(){return this.$store.getters["administrationProductUploadLock/getDetailValidFrom"]},set(e){this.$store.commit("administrationProductUploadLock/setDetailValidFrom",e)}},valid_to:{get(){return this.$store.getters["administrationProductUploadLock/getDetailValidTo"]},set(e){this.$store.commit("administrationProductUploadLock/setDetailValidTo",e)}},image:{get(){return this.$store.getters["administrationProductUploadLock/getDetailImage"]},set(e){this.$store.commit("administrationProductUploadLock/setDetailImage",e)}}},methods:{create(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("administrationProductUploadLock/create").then(()=>{this.v$.$reset()})},close(){this.resetProductUploadLockDetail&&this.$store.commit("administrationProductUploadLock/resetDetail")}},setup(){return{v$:Pn()}}},xMo=["placeholder"],OMo={class:"form-label",for:"title"},LMo={key:0,class:"help-block small text-danger"},MMo={class:"form-group form-floating mb-3"},NMo=["placeholder"],RMo={class:"form-label",for:"description"},jMo={class:"form-group form-floating mb-3"},FMo={key:0,class:"help-block small text-danger"},zMo={class:"form-group form-floating mb-3"},UMo={key:0,class:"help-block small text-danger"};function BMo(e,t,n,o,i,r){const s=y("DateSinglePicker"),a=y("ProductUploadLockImageUpload"),l=y("FormSidebar");return e.auth.is_admin?(h(),W(l,{key:0,id:"product-upload-lock-create",onClose:r.close,onSubmit:r.create},{title:F(()=>[z(m(e.$t("administration.content.product_upload_lock.create.title")),1)]),"submit-button":F(()=>[z(m(e.$t("administration.create")),1)]),content:F(()=>[c("div",{class:J([{"has-error":o.v$.title.$error},"form-group form-floating mb-3"])},[xe(c("input",{id:"title",class:"form-control",placeholder:e.$t("public.title"),type:"text",name:"title","onUpdate:modelValue":t[0]||(t[0]=d=>o.v$.title.$model=d)},null,8,xMo),[[wt,o.v$.title.$model]]),c("label",OMo,m(e.$t("administration.content.product_upload_lock.create.name")),1),o.v$.title.$error&&o.v$.title.required.$invalid?(h(),g("span",LMo,m(e.$t("validation.custom.title.required")),1)):D("",!0)],2),c("div",MMo,[xe(c("textarea",{class:"form-control",id:"description",name:"description",rows:"4",placeholder:e.$t("administration.content.product_upload_lock.create.description"),"onUpdate:modelValue":t[1]||(t[1]=d=>r.description=d)},null,8,NMo),[[wt,r.description]]),c("label",RMo,m(e.$t("administration.content.product_upload_lock.create.description")),1)]),c("div",jMo,[b(s,{class:"form-control",mode:"date",id:"valid_from",name:"valid_from",value:o.v$.valid_from.$model,"onUpdate:value":t[2]||(t[2]=d=>o.v$.valid_from.$model=d),placeholder:e.$t("administration.content.product_upload_lock.create.valid_from"),"min-date":i.today.toISOString(),"is-small-label":""},null,8,["value","placeholder","min-date"]),o.v$.valid_from.$error&&o.v$.valid_from.required.$invalid?(h(),g("span",FMo,m(e.$tc("validation.date",{attribute:e.$t("public.array")})),1)):D("",!0)]),c("div",zMo,[b(s,{class:"form-control",mode:"date",id:"valid_to",name:"valid_to",value:o.v$.valid_to.$model,"onUpdate:value":t[3]||(t[3]=d=>o.v$.valid_to.$model=d),placeholder:e.$t("administration.content.product_upload_lock.create.valid_to"),"min-date":i.today.toISOString(),"is-small-label":""},null,8,["value","placeholder","min-date"]),o.v$.valid_to.$error&&o.v$.valid_to.required.$invalid?(h(),g("span",UMo,m(e.$tc("validation.date",{attribute:e.$t("public.array")})),1)):D("",!0)]),b(a,{disabled:""})]),_:1},8,["onClose","onSubmit"])):D("",!0)}const HMo=U(DMo,[["render",BMo]]),VMo={components:{FormSidebar:_n},computed:{...sn({productUploadLock:e=>e.administrationProductUploadLock.detail}),...Oe({auth:"auth/auth"})},methods:{deleteProductUploadLock(){this.$store.dispatch("administrationProductUploadLock/delete")}}};function qMo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"product-upload-lock-delete",onSubmit:r.deleteProductUploadLock,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("administration.content.product_upload_lock.delete.title")),1)]),subtitle:F(()=>[z(m(e.productUploadLock.title),1)]),"submit-button":F(()=>[z(m(e.$t("administration.delete")),1)]),content:F(()=>[z(m(e.$t("administration.content.product_upload_lock.delete.subtitle")),1)]),_:1},8,["onSubmit"])):D("",!0)}const YMo=U(VMo,[["render",qMo]]),WMo={components:{FormSidebar:_n,DateSinglePicker:dd,ProductUploadLockImageUpload:Zde},data(){return{resetProductUploadLockDetail:!0,today:mt()}},validations:{title:{required:Yt},valid_from:{required:Yt},valid_to:{required:Yt}},computed:{...Oe({detail:"administrationProductUploadLock/getDetail",auth:"auth/auth"}),title:{get(){return this.$store.getters["administrationProductUploadLock/getDetailTitle"]},set(e){this.$store.commit("administrationProductUploadLock/setDetailTitle",e)}},description:{get(){return this.$store.getters["administrationProductUploadLock/getDetailDescription"]},set(e){this.$store.commit("administrationProductUploadLock/setDetailDescription",e)}},valid_from:{get(){return this.$store.getters["administrationProductUploadLock/getDetailValidFrom"]},set(e){this.$store.commit("administrationProductUploadLock/setDetailValidFrom",e)}},valid_to:{get(){return this.$store.getters["administrationProductUploadLock/getDetailValidTo"]},set(e){this.$store.commit("administrationProductUploadLock/setDetailValidTo",e)}},image:{get(){return this.$store.getters["administrationProductUploadLock/getDetailImage"]},set(e){this.$store.commit("administrationProductUploadLock/setDetailImage",e)}}},methods:{update(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("administrationProductUploadLock/update").then(()=>{this.v$.$reset()})},close(){this.resetProductUploadLockDetail&&this.$store.commit("administrationProductUploadLock/resetDetail")}},setup(){return{v$:Pn()}}},GMo=["placeholder"],ZMo={class:"form-label",for:"title"},KMo={key:0,class:"help-block small text-danger"},JMo={class:"form-group form-floating mb-3"},XMo=["placeholder"],QMo={class:"form-label",for:"description"},eNo={class:"form-group form-floating mb-3"},tNo={key:0,class:"help-block small text-danger"},nNo={class:"form-group form-floating mb-3"},oNo={key:0,class:"help-block small text-danger"};function iNo(e,t,n,o,i,r){const s=y("DateSinglePicker"),a=y("ProductUploadLockImageUpload"),l=y("FormSidebar");return e.auth.is_admin?(h(),W(l,{key:0,id:"product-upload-lock-update",onClose:r.close,onSubmit:r.update},{title:F(()=>[z(m(e.$t("administration.content.product_upload_lock.update.title")),1)]),subtitle:F(()=>[z(m(r.title),1)]),"submit-button":F(()=>[z(m(e.$t("administration.update")),1)]),content:F(()=>[c("div",{class:J([{"has-error":o.v$.title.$error},"form-group form-floating mb-3"])},[xe(c("input",{id:"title",class:"form-control",placeholder:e.$t("public.title"),type:"text",name:"title","onUpdate:modelValue":t[0]||(t[0]=d=>o.v$.title.$model=d)},null,8,GMo),[[wt,o.v$.title.$model]]),c("label",ZMo,m(e.$t("administration.content.product_upload_lock.update.name")),1),o.v$.title.$error&&o.v$.title.required.$invalid?(h(),g("span",KMo,m(e.$t("validation.custom.title.required")),1)):D("",!0)],2),c("div",JMo,[xe(c("textarea",{class:"form-control",id:"description",name:"description",rows:"4",placeholder:e.$t("administration.content.product_upload_lock.update.description"),"onUpdate:modelValue":t[1]||(t[1]=d=>r.description=d)},null,8,XMo),[[wt,r.description]]),c("label",QMo,m(e.$t("administration.content.product_upload_lock.update.description")),1)]),c("div",eNo,[b(s,{class:"form-control",mode:"date",id:"valid_from",name:"valid_from",value:o.v$.valid_from.$model,"onUpdate:value":t[2]||(t[2]=d=>o.v$.valid_from.$model=d),placeholder:e.$t("administration.content.product_upload_lock.create.valid_from"),"min-date":i.today.toISOString(),"is-small-label":""},null,8,["value","placeholder","min-date"]),o.v$.valid_from.$error&&o.v$.valid_from.required.$invalid?(h(),g("span",tNo,m(e.$tc("validation.date",{attribute:e.$t("public.array")})),1)):D("",!0)]),c("div",nNo,[b(s,{class:"form-control",mode:"date",id:"valid_to",name:"valid_to",value:o.v$.valid_to.$model,"onUpdate:value":t[3]||(t[3]=d=>o.v$.valid_to.$model=d),placeholder:e.$t("administration.content.product_upload_lock.create.valid_to"),"min-date":i.today.toISOString(),"is-small-label":""},null,8,["value","placeholder","min-date"]),o.v$.valid_to.$error&&o.v$.valid_to.required.$invalid?(h(),g("span",oNo,m(e.$tc("validation.date",{attribute:e.$t("public.array")})),1)):D("",!0)]),b(a)]),_:1},8,["onClose","onSubmit"])):D("",!0)}const rNo=U(WMo,[["render",iNo]]),sNo=()=>De.patch(Pe("api.admin.settlement_payment.sendAll")),aNo={sendAll:sNo},lNo={components:{FormSidebar:_n},computed:{...Oe({auth:"auth/auth",data:"sidebar/getData"})},methods:{send(){this.$store.commit("sidebar/setLoading",!0),aNo.sendAll().then(e=>{window.flash(e.data.message,"success"),this.$store.dispatch("administrationFinanceAuthor/settlementPayments",{filters:this.data.filters}),this.$store.dispatch("sidebar/close")}).catch(e=>{var t,n;if((n=(t=e==null?void 0:e.response)==null?void 0:t.data)!=null&&n.message){let o="error";e.response.status===502&&(o="warning"),window.flash(e.response.data.message,o)}this.$store.commit("sidebar/setLoading",!1)})}}};function cNo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"settlement-payment-summary-send",onSubmit:r.send},{title:F(()=>[z(m(e.$t("administration.finance.author.summary.order.sidebar_title")),1)]),"submit-button":F(()=>[z(m(e.$t("public.send")),1)]),content:F(()=>[z(m(e.$t("administration.finance.author.summary.order.sidebar_text")),1)]),_:1},8,["onSubmit"])):D("",!0)}const dNo=U(lNo,[["render",cNo]]);const uNo={components:{FormSidebar:_n,FlexTableHead:ti,FlexTableRow:ni,Loading:Rt,Bootstrap5Pagination:Ri,AppIcon:Ue,CheckboxInput:ba},data(){return{primaryColor:window.primaryColor,hover:-1}},computed:{...Oe({loading:"administrationFinanceAuthor/getCreditLoading",list:"administrationFinanceAuthor/getCreditList",auth:"auth/auth"}),vatPayersOnly:{get(){return this.$store.state.administrationFinanceAuthor.vatPayersOnly},set(e){this.$store.commit("administrationFinanceAuthor/setVatPayersOnly",e)}}},methods:{loadPage(e){this.$store.commit("administrationFinanceAuthor/setCreditPage",e),this.loadAll()},loadAll(){this.$store.dispatch("administrationFinanceAuthor/settlementIndex")},openAuthorPaymentConfirmSidebar(e){this.$store.dispatch("sidebar/close"),this.$store.dispatch("sidebar/open",{type:"settlement-confirm",data:{payment:e}})},close(){this.$store.dispatch("sidebar/close")}},watch:{vatPayersOnly:{handler(){this.loadAll()},immediate:!0}}},hNo={class:"col-12 col-md-2"},fNo={class:"col-12 col-md"},mNo={class:"col-12 col-md-auto"},pNo={class:"col-12 col-md-2"},gNo={key:0,class:"vl-parent mh-8"},vNo={key:1,class:"text-center mt-4"},_No=["onMouseover"],yNo={class:"col-12 col-md-2"},bNo={class:"col-12 col-md"},kNo={class:"col-12 col-md-auto"},wNo=["href"],$No={class:"col-12 col-md-2 d-flex justify-content-between align-items-center mh-2rem"},CNo=["onClick"];function SNo(e,t,n,o,i,r){const s=y("CheckboxInput"),a=y("FlexTableHead"),l=y("Loading"),d=y("router-link"),u=y("AppIcon"),f=y("FlexTableRow"),p=y("Bootstrap5Pagination"),v=y("FormSidebar"),_=an("tooltip");return e.auth.is_admin?(h(),W(v,{key:0,id:"settlement-list"},{title:F(()=>[z(m(e.$t("administration.finance.author.summary.pay.detail.title")),1)]),content:F(()=>[b(s,{id:"only-vat-payers",value:r.vatPayersOnly,"onUpdate:value":t[0]||(t[0]=k=>r.vatPayersOnly=k),label:e.$t("administration.finance.author.summary.pay.detail.vat_payers_only"),class:"mb-3"},null,8,["value","label"]),b(a,null,{default:F(()=>[c("div",hNo,m(e.$t("administration.finance.author.summary.pay.detail.table.header.id")),1),c("div",fNo,m(e.$t("administration.finance.author.summary.pay.detail.table.header.name")),1),c("div",mNo,m(e.$t("administration.finance.author.summary.pay.detail.table.header.email")),1),c("div",pNo,m(e.$t("administration.finance.author.summary.pay.detail.table.header.amount")),1)]),_:1}),e.loading?(h(),g("div",gNo,[b(l,{active:e.loading,"onUpdate:active":t[1]||(t[1]=k=>e.loading=k),color:i.primaryColor,"is-full-page":!1},null,8,["active","color"])])):e.list.data&&!e.list.data.length?(h(),g("h4",vNo,m(e.$t("administration.finance.author.table.not_found")),1)):(h(!0),g(pe,{key:2},Me(e.list.data,(k,C)=>(h(),g("div",{key:C,onMouseover:$=>i.hover=C,onMouseleave:t[2]||(t[2]=$=>i.hover=-1)},[b(f,{class:J({"border-none":C==e.list.data.length-1})},{default:F(()=>[c("div",yNo,m(k.user_id),1),c("div",bNo,[b(d,{to:{name:"administration/users/detail/author",params:{id:k.user_id}},class:"link-dark text-decoration-underline-hover",onClick:r.close},{default:F(()=>[z(m(k.first_name+" "+k.last_name),1)]),_:2},1032,["to","onClick"])]),c("div",kNo,[c("a",{href:"mailto:"+k.email,class:"link-dark text-decoration-underline-hover"},m(k.email),9,wNo)]),c("div",$No,[z(m(Number(k.amount).toLocaleString()+" "+e.$t("currency.short"))+" ",1),i.hover==C?xe((h(),g("button",{key:0,class:"btn btn-tertiary btn-sm btn-success",onClick:$=>r.openAuthorPaymentConfirmSidebar(k)},[b(u,{icon:"check"})],8,CNo)),[[_,{content:e.$t("administration.paid"),delay:{show:500,hide:100},triggers:["hover","click"]}]]):D("",!0)])]),_:2},1032,["class"])],40,_No))),128)),e.loading?D("",!0):(h(),W(p,{key:3,class:"mt-4 z-index-neg-1",data:e.list,onPaginationChangePage:r.loadPage,limit:1,align:"center"},null,8,["data","onPaginationChangePage"]))]),_:1})):D("",!0)}const TNo=U(uNo,[["render",SNo]]),ENo={components:{FormSidebar:_n},computed:{...Oe({auth:"auth/auth",data:"sidebar/getData"})},methods:{submit(){this.$store.dispatch("administrationFinanceAuthor/settlementConfirm",{userId:this.data.payment.user_id})},close(){this.$store.dispatch("sidebar/open",{type:"settlement-list"})}}};function INo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"settlement-confirm",onSubmit:r.submit,onClose:r.close},{title:F(()=>[z(m(e.$t("author.settlement.confirm.title")),1)]),subtitle:F(()=>[z(m(e.data.payment.first_name+" "+e.data.payment.last_name+" ("+Number(e.data.payment.amount).toLocaleString()+" "+e.$t("currency.short")+")"),1)]),"submit-button":F(()=>[z(m(e.$t("administration.confirm")),1)]),content:F(()=>[z(m(e.$t("author.settlement.confirm.text")),1)]),_:1},8,["onSubmit","onClose"])):D("",!0)}const PNo=U(ENo,[["render",INo]]),oW={code_length:5};let ANo=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");const DNo={components:{DateSinglePicker:dd,FormSidebar:_n},data(){return{types:[{type:"voucher",label:this.$t("voucher.title")},{type:"discount",label:this.$t("discount.title")}],type:"voucher",error:"",amount:"",discount:"",discountCode:"",voucherCode:"",note:"",validFrom:new Date(mt().toDate()).toISOString(),validTo:new Date(mt().add(12,"months").toDate()).toISOString(),today:new Date(mt().toDate()).toISOString(),timezone:mr.timezone}},computed:{...Oe({vouchers:"administrationFinanceVoucher/getVouchersData",discounts:"administrationFinanceDiscount/getDiscountsData",auth:"auth/auth"})},methods:{createVoucher(){if(this.error="",this.amount<0||this.amount.length<1){this.error=this.$t("voucher.create.error_amount");return}if(mt(this.validFrom).isBefore(this.today,"day")){this.error=this.$t("voucher.create.valid_from");return}let e={type:"voucher",amount:this.amount,code:this.voucherCode,note:this.note,valid_from:this.validFrom,valid_to:this.validTo};this.$store.dispatch("administrationFinanceVoucher/create",{voucher:e,filters:Mi.getFilters(this.$route.query)}).then(()=>{this.reset()})},createDiscount(){if(this.error="",this.discount<0||this.discount.length<1||this.discount>100){this.error=this.$t("discount.create.error_discount");return}if(this.discountCode.length>80||this.discountCode.length<1){this.error=this.$t("discount.create.error_code_length");return}if(mt(this.validFrom).isBefore(this.today,"day")){this.error=this.$t("discount.create.error_valid_from");return}if(!this.isUniqueDiscountCode()){this.error=this.$t("discount.create.error_code_unique");return}let e={type:"discount",discount:this.discount,code:this.discountCode,note:this.note,valid_from:this.validFrom,valid_to:this.validTo};this.$store.dispatch("administrationFinanceDiscount/create",{discount:e,filters:Mi.getFilters(this.$route.query)}).then(()=>{this.reset()})},generateUniqueVoucherCode(){let e=!1;for(;!e;)this.voucherCode=ANo(oW.code_length).toUpperCase(),this.voucherCode=this.voucherCode.replace(/[^A-Z0-9]/g,""),e=!this.vouchers.some(t=>t.code===this.voucherCode)&&this.voucherCode.length===oW.code_length},isUniqueDiscountCode(){return this.discounts.findIndex(e=>e.code===this.discountCode)===-1},removeValidFrom(){this.validFrom=this.today},removeValidTo(){this.validTo=""},reset(){this.type="voucher",this.amount="",this.discount="",this.discountCode="",this.voucherCode="",this.note="",this.validFrom=new Date(mt().toDate()).toISOString(),this.validTo=new Date(mt().add(12,"months").toDate()).toISOString(),this.today=new Date(mt().toDate()).toISOString(),this.generateUniqueVoucherCode()}},mounted(){this.generateUniqueVoucherCode()},watch:{type(e){if(e==="discount"){this.validTo=new Date(mt().add(1,"days").toDate()).toISOString();return}this.validTo=new Date(mt().add(12,"months").toDate()).toISOString()}}},xNo={class:"form-group form-floating mb-4"},ONo={for:"code_type",class:"small"},LNo={key:0,class:"form-group form-floating mb-4"},MNo={for:"voucher-code",class:"small"},NNo={key:1,class:"form-group form-floating mb-4"},RNo={for:"discount-code",class:"small"},jNo={class:"form-group form-floating mb-4"},FNo={key:1,class:"input-group"},zNo={for:"amount_or_discount",class:"small"},UNo={class:"row"},BNo={class:"col-12 col-md-6 mb-4"},HNo={class:"form-group"},VNo={class:"col-12 col-md-6 mb-4 mb-4"},qNo={class:"form-group"},YNo={class:"form-group form-floating mb-4"},WNo={for:"note",class:"small"},GNo={key:2,class:"text-danger"};function ZNo(e,t,n,o,i,r){const s=y("v-select"),a=y("DateSinglePicker"),l=y("FormSidebar");return e.auth.is_admin?(h(),W(l,{key:0,id:"voucher-create",onSubmit:t[8]||(t[8]=d=>i.type=="voucher"?r.createVoucher():r.createDiscount())},{title:F(()=>[z(m(e.$t("administration.finance.voucher.action.create.title")),1)]),"submit-button":F(()=>[z(m(e.$t("administration.finance.voucher.action.create.buttonSide")),1)]),content:F(()=>[c("div",xNo,[b(s,{id:"code_type",label:"label",class:"form-control",modelValue:i.type,"onUpdate:modelValue":t[0]||(t[0]=d=>i.type=d),options:i.types,reduce:d=>d.type,placeholder:e.$t("administration.finance.voucher.action.create.type"),searchable:!1,clearable:!1,"close-on-select":!0},null,8,["modelValue","options","reduce","placeholder"]),c("label",ONo,m(e.$t("administration.finance.voucher.action.create.type")),1)]),i.type=="voucher"?(h(),g("div",LNo,[xe(c("input",{id:"voucher-code",class:"form-control cursor-default",autocomplete:"off",readonly:"",type:"text",name:"voucher-code","onUpdate:modelValue":t[1]||(t[1]=d=>i.voucherCode=d),maxlength:"80"},null,512),[[wt,i.voucherCode]]),c("label",MNo,m(e.$t("administration.finance.voucher.action.create.code")),1)])):D("",!0),i.type=="discount"?(h(),g("div",NNo,[xe(c("input",{id:"discount-code",class:"form-control",autocomplete:"off",required:"",type:"text",name:"discount-code","onUpdate:modelValue":t[2]||(t[2]=d=>i.discountCode=d),maxlength:"80"},null,512),[[wt,i.discountCode]]),c("label",RNo,m(e.$t("administration.finance.voucher.action.create.code")),1),z(" "+m(e.$t("administration.finance.voucher.action.code_warning")),1)])):D("",!0),c("div",jNo,[i.type=="voucher"?xe((h(),g("input",{key:0,id:"amount_or_discount",class:"form-control",autocomplete:"off",type:"number",name:"amount_or_discount","onUpdate:modelValue":t[3]||(t[3]=d=>i.amount=d),required:"",min:"0",maxlength:"80"},null,512)),[[wt,i.amount]]):(h(),g("div",FNo,[xe(c("input",{id:"amount_or_discount",class:"form-control border-end-0",autocomplete:"off",type:"number",name:"amount_or_discount","onUpdate:modelValue":t[4]||(t[4]=d=>i.discount=d),required:"",max:"100",min:"1"},null,512),[[wt,i.discount]]),t[9]||(t[9]=c("div",{class:"input-group-append border-start-0"},[c("span",{class:"input-group-text mh-3dot125rem"},m("%"))],-1))])),c("label",zNo,m(e.$t("administration.finance.voucher.action.create.amountDiscount")),1)]),c("div",UNo,[c("div",BNo,[c("div",HNo,[b(a,{id:"valid_from",name:"valid_from",mode:"date",class:"form-control",value:i.validFrom,"onUpdate:value":t[5]||(t[5]=d=>i.validFrom=d),placeholder:e.$t("voucher.now"),"min-date:":i.today,label:e.$t("administration.finance.voucher.action.create.from"),"is-small-label":""},null,8,["value","placeholder","min-date:","label"])])]),c("div",VNo,[c("div",qNo,[b(a,{mode:"date",id:"valid_to",name:"valid_to",class:"form-control",value:i.validTo,"onUpdate:value":t[6]||(t[6]=d=>i.validTo=d),placeholder:e.$t("voucher.manual_cancel"),"min-date":i.today,label:e.$t("administration.finance.voucher.action.create.to"),"is-small-label":""},null,8,["value","placeholder","min-date","label"])])])]),c("div",YNo,[xe(c("input",{id:"note",class:"form-control",autocomplete:"off",type:"text",name:"note","onUpdate:modelValue":t[7]||(t[7]=d=>i.note=d)},null,512),[[wt,i.note]]),c("label",WNo,m(e.$t("administration.finance.voucher.action.create.note")+e.$t("public.slash_optional")),1)]),i.error?(h(),g("span",GNo,m(i.error),1)):D("",!0)]),_:1})):D("",!0)}const KNo=U(DNo,[["render",ZNo]]),JNo={components:{DateSinglePicker:dd,FormSidebar:_n},data(){return{moment:mt,timezone:mr.timezone}},validations:{validTo:{},validFrom:{}},computed:{...Oe({voucherEdit:"administrationFinanceVoucher/getEdit",auth:"auth/auth"}),validTo:{get(){return this.voucherEdit.valid_to},set(e){e&&(this.voucherEdit.valid_to=e)}},validFrom:{get(){return this.voucherEdit.valid_from},set(e){e&&(this.voucherEdit.valid_from=e)}},authorDiscountsSetupFrom:{get(){return this.voucherEdit.author_discounts_setup_from},set(e){e&&(this.voucherEdit.author_discounts_setup_from=e)}}},methods:{updateVoucher(){let e={id:this.voucherEdit.id,note:this.voucherEdit.note,valid_from:this.voucherEdit.valid_from,valid_to:this.voucherEdit.valid_to};this.$store.dispatch("administrationFinanceVoucher/update",{voucher:e,filters:Mi.getFilters(this.$route.query)})},updateDiscount(){let e={id:this.voucherEdit.id,note:this.voucherEdit.note,valid_from:this.voucherEdit.valid_from,valid_to:this.voucherEdit.valid_to,author_discounts_setup_from:this.voucherEdit.author_discounts_setup_from};this.$store.dispatch("administrationFinanceDiscount/update",{discount:e,filters:Mi.getFilters(this.$route.query)})}},setup(){return{v$:Pn()}}},XNo={key:0,class:"form-group form-floating mb-4"},QNo={for:"voucher-code",class:"small"},eRo={key:1,class:"form-group form-floating mb-4"},tRo={for:"discount-code",class:"small"},nRo={class:"form-group form-floating mb-4"},oRo={key:1,class:"input-group"},iRo={for:"amount_or_discount",class:"small"},rRo={class:"row"},sRo={class:"col-12 col-md-6 mb-4"},aRo={class:"form-group"},lRo={class:"col-12 col-md-6 mb-4"},cRo={class:"form-group"},dRo={class:"form-group form-floating mb-4"},uRo={for:"note",class:"small"},hRo={key:2,class:"form-group form-floating mb-4"},fRo={for:"email",class:"small"};function mRo(e,t,n,o,i,r){const s=y("DateSinglePicker"),a=y("FormSidebar");return e.auth.is_admin?(h(),W(a,{key:0,id:"voucher-update",onSubmit:t[8]||(t[8]=l=>e.voucherEdit.type=="voucher"?r.updateVoucher():r.updateDiscount())},{title:F(()=>[z(m(e.$t("administration.finance.voucher.action.edit.title")),1)]),subtitle:F(()=>[z(m(e.voucherEdit.code),1)]),"submit-button":F(()=>[z(m(e.$t("administration.finance.voucher.action.edit.buttonSide")),1)]),content:F(()=>[e.voucherEdit.type=="voucher"?(h(),g("div",XNo,[xe(c("input",{id:"voucher-code",class:"form-control cursor-default",autocomplete:"off",readonly:"",type:"text",name:"voucher-code","onUpdate:modelValue":t[0]||(t[0]=l=>e.voucherEdit.code=l),maxlength:"80",disabled:""},null,512),[[wt,e.voucherEdit.code]]),c("label",QNo,m(e.$t("administration.finance.voucher.action.create.code")),1)])):D("",!0),e.voucherEdit.type=="discount"?(h(),g("div",eRo,[xe(c("input",{id:"discount-code",class:"form-control",autocomplete:"off",required:"",type:"text",name:"discount-code","onUpdate:modelValue":t[1]||(t[1]=l=>e.voucherEdit.code=l),maxlength:"80",disabled:""},null,512),[[wt,e.voucherEdit.code]]),c("label",tRo,m(e.$t("administration.finance.voucher.action.create.code")),1)])):D("",!0),c("div",nRo,[e.voucherEdit.type=="voucher"?xe((h(),g("input",{key:0,id:"amount_or_discount",class:"form-control",autocomplete:"off",type:"number",name:"amount_or_discount","onUpdate:modelValue":t[2]||(t[2]=l=>e.voucherEdit.amount=l),required:"",min:"0",maxlength:"80",disabled:""},null,512)),[[wt,e.voucherEdit.amount]]):(h(),g("div",oRo,[xe(c("input",{id:"amount_or_discount",class:"form-control border-end-0",autocomplete:"off",type:"number",name:"amount_or_discount","onUpdate:modelValue":t[3]||(t[3]=l=>e.voucherEdit.amount=l),required:"",max:"100",min:"1",disabled:""},null,512),[[wt,e.voucherEdit.amount]]),t[9]||(t[9]=c("div",{class:"input-group-append border-start-0"},[c("span",{class:"input-group-text mh-3dot125rem border-gray-300"},m("%"))],-1))])),c("label",iRo,m(e.$t("administration.finance.voucher.action.create.amountDiscount")),1)]),c("div",rRo,[c("div",sRo,[c("div",aRo,[b(s,{id:"valid_from",name:"valid_from",mode:"date",class:J({"form-control":!0,"is-invalid":o.v$.validFrom.$error}),value:o.v$.validFrom.$model,"onUpdate:value":t[4]||(t[4]=l=>o.v$.validFrom.$model=l),placeholder:"Datum","min-date:":new Date,label:e.$t("administration.finance.voucher.action.create.from"),"is-small-label":""},null,8,["class","value","min-date:","label"])])]),c("div",lRo,[c("div",cRo,[b(s,{mode:"date",id:"valid_to",name:"valid_to",class:J({"form-control":!0,"is-invalid":o.v$.validTo.$error}),value:o.v$.validTo.$model,"onUpdate:value":t[5]||(t[5]=l=>o.v$.validTo.$model=l),placeholder:"Datum","min-date":new Date,label:e.$t("administration.finance.voucher.action.create.to"),"is-small-label":""},null,8,["class","value","min-date","label"])])])]),c("div",dRo,[xe(c("input",{id:"note",name:"note",type:"text",class:"form-control",autocomplete:"off","onUpdate:modelValue":t[6]||(t[6]=l=>e.voucherEdit.note=l)},null,512),[[wt,e.voucherEdit.note]]),c("label",uRo,m(e.$t("administration.finance.voucher.action.create.note")+e.$t("public.slash_optional")),1)]),e.voucherEdit.type=="voucher"?(h(),g("div",hRo,[xe(c("input",{id:"email",name:"email",type:"text",class:"form-control",autocomplete:"off","onUpdate:modelValue":t[7]||(t[7]=l=>e.voucherEdit.send_to=l),maxlength:"80",disabled:""},null,512),[[wt,e.voucherEdit.send_to]]),c("label",fRo,m(e.$t("administration.finance.voucher.action.create.email")+e.$t("public.slash_optional")),1)])):D("",!0)]),_:1})):D("",!0)}const pRo=U(JNo,[["render",mRo]]),gRo={components:{FormSidebar:_n},computed:{...Oe({voucher:"administrationFinanceVoucher/getDelete",auth:"auth/auth"})},methods:{deleteVoucher(){this.$store.dispatch("administrationFinanceVoucher/delete",{voucher:this.voucher.id,filters:Mi.getFilters(this.$route.query)})},deleteDiscount(){this.$store.dispatch("administrationFinanceDiscount/delete",{discount:this.voucher.id,filters:Mi.getFilters(this.$route.query)})}}};function vRo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"voucher-delete",onSubmit:t[0]||(t[0]=a=>e.voucher.type==="voucher"?r.deleteVoucher():r.deleteDiscount()),"submit-color":"danger"},{title:F(()=>[z(m(e.$t("administration.finance.voucher.action.delete.title")),1)]),subtitle:F(()=>[z(m(e.voucher.code),1)]),"submit-button":F(()=>[z(m(e.$t("administration.finance.voucher.action.delete.button")),1)]),content:F(()=>[z(m(e.$t("administration.finance.voucher.action.delete.subtitle")),1)]),_:1})):D("",!0)}const _Ro=U(gRo,[["render",vRo]]),yRo={components:{FormSidebar:_n},computed:{...Oe({activeDiscount:"administrationFinanceAuthorDiscount/getActiveDiscount",futureDiscount:"administrationFinanceAuthorDiscount/getFutureDiscount",auth:"auth/auth"})},methods:{remove(){this.$store.dispatch("administrationFinanceAuthorDiscount/remove",{id:this.activeDiscount?this.activeDiscount.id:this.futureDiscount.id}).then(()=>{this.$store.dispatch("sidebar/close")})}}};function bRo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"author-discount-automatic-settings-delete",onSubmit:r.remove,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("administration.finance.voucher.author_discounts.delete.button")),1)]),"submit-button":F(()=>[z(m(e.$t("public.delete")),1)]),content:F(()=>[z(m(e.$t("administration.finance.voucher.author_discounts.delete.confirmation")),1)]),_:1},8,["onSubmit"])):D("",!0)}const kRo=U(yRo,[["render",bRo]]),wRo={components:{DateSinglePicker:dd,FormSidebar:_n,AuthorDashboardActualitiesNotification:EL,AppIcon:Ue},data(){return{editor:fu,today:mt(),showPreview:!1}},validations:{title:{required:Yt},content:{required:Yt}},computed:{...Oe({auth:"auth/auth"}),notification(){return this.$store.state.administrationCustomNotification.detail},title:{get(){return this.$store.getters["administrationCustomNotification/getDetailTitle"]},set(e){this.$store.commit("administrationCustomNotification/setDetailTitle",e)}},content:{get(){return this.$store.getters["administrationCustomNotification/getDetailContent"]},set(e){this.$store.commit("administrationCustomNotification/setDetailContent",e)}},publishedAt:{get(){return this.$store.getters["administrationCustomNotification/getDetailPublishedAt"]},set(e){this.$store.commit("administrationCustomNotification/setDetailPublishedAt",e)}}},methods:{create(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("administrationCustomNotification/create",{filters:Mi.getFilters(this.$route.query)})},close(){this.v$.$reset(),this.$store.commit("administrationCustomNotification/resetDetail")}},setup(){return{v$:Pn()}}},$Ro=["placeholder"],CRo={class:"form-label",for:"title"},SRo={key:0,class:"help-block small text-danger"},TRo={class:"form-group mb-4"},ERo={class:"quill-editor"},IRo={key:0,class:"help-block small text-danger mb-0"},PRo={class:"mt-4"};function ARo(e,t,n,o,i,r){const s=y("DateSinglePicker"),a=y("quill-editor"),l=y("AppIcon"),d=y("AuthorDashboardActualitiesNotification"),u=y("FormSidebar");return e.auth.is_admin?(h(),W(u,{key:0,id:"custom-notification-create",onSubmit:r.create,onClose:r.close},{title:F(()=>[z(m(e.$t("administration.message.notification.create.title")),1)]),"submit-button":F(()=>[z(m(e.$t("public.create")),1)]),content:F(()=>[c("div",{class:J([{"form-group":!0},"form-floating mb-4"])},[xe(c("input",{id:"title",class:"form-control",placeholder:e.$t("public.title"),type:"text",name:"title","onUpdate:modelValue":t[0]||(t[0]=f=>o.v$.title.$model=f)},null,8,$Ro),[[wt,o.v$.title.$model]]),c("label",CRo,m(e.$t("validation.attributes.title")),1),o.v$.title.$error&&o.v$.title.required.$invalid?(h(),g("span",SRo,m(e.$t("validation.custom.title.required")),1)):D("",!0)]),c("div",TRo,[b(s,{id:"valid_to",name:"valid_to",class:"form-control border-radius-end-none py-2 px-3",mode:"datetime",value:r.publishedAt,"onUpdate:value":t[1]||(t[1]=f=>r.publishedAt=f),placeholder:e.$t("voucher.now"),label:e.$t("administration.message.notification.table.header.published_at"),"min-date":i.today.toISOString(),"is-small-label":""},null,8,["value","placeholder","label","min-date"])]),c("div",ERo,[b(a,{ref:"quill",class:"mh-8",contentType:"html",theme:"snow",content:o.v$.content.$model,"onUpdate:content":t[2]||(t[2]=f=>o.v$.content.$model=f),options:{...i.editor.extendedToolbar,placeholder:e.$t("administration.message.notification.table.header.content")}},null,8,["content","options"])]),o.v$.content.$error&&o.v$.content.required.$invalid?(h(),g("p",IRo,m(e.$t("validation.custom.reason.required")),1)):D("",!0),c("div",PRo,[c("button",{class:"btn btn-tertiary btn-sm btn-center",disabled:"",onClick:t[3]||(t[3]=f=>i.showPreview=!i.showPreview)},[z(m(i.showPreview?e.$t("public.preview.hide"):e.$t("public.preview.show"))+" ",1),b(l,{icon:i.showPreview?"hide":"show",height:20,width:20,class:"ms-icon"},null,8,["icon"])]),i.showPreview?(h(),W(d,{key:0,class:"mt-4","notification-prop":r.notification,"back-button-hidden":"","full-width":""},null,8,["notification-prop"])):D("",!0)])]),_:1},8,["onSubmit","onClose"])):D("",!0)}const DRo=U(wRo,[["render",ARo]]),xRo={components:{DateSinglePicker:dd,FormSidebar:_n,AuthorDashboardActualitiesNotification:EL,AppIcon:Ue},data(){return{editor:fu,today:mt(),showPreview:!1}},validations:{title:{required:Yt},content:{required:Yt}},computed:{...Oe({auth:"auth/auth"}),notification(){return this.$store.state.administrationCustomNotification.detail},title:{get(){return this.$store.getters["administrationCustomNotification/getDetailTitle"]},set(e){this.$store.commit("administrationCustomNotification/setDetailTitle",e)}},content:{get(){return this.$store.getters["administrationCustomNotification/getDetailContent"]},set(e){this.$store.commit("administrationCustomNotification/setDetailContent",e)}},publishedAt:{get(){return this.$store.getters["administrationCustomNotification/getDetailPublishedAt"]},set(e){this.$store.commit("administrationCustomNotification/setDetailPublishedAt",e)}}},methods:{update(){this.v$.$touch(),!this.v$.$invalid&&this.$store.dispatch("administrationCustomNotification/update",{filters:Mi.getFilters(this.$route.query)})},close(){this.v$.$reset(),this.$store.commit("administrationCustomNotification/resetDetail")}},setup(){return{v$:Pn()}}},ORo=["placeholder"],LRo={class:"form-label",for:"title"},MRo={key:0,class:"help-block small text-danger"},NRo={class:"form-group mb-4"},RRo={class:"quill-editor"},jRo={key:0,class:"help-block small text-danger mb-0"},FRo={class:"mt-4"};function zRo(e,t,n,o,i,r){const s=y("DateSinglePicker"),a=y("quill-editor"),l=y("AppIcon"),d=y("AuthorDashboardActualitiesNotification"),u=y("FormSidebar");return e.auth.is_admin?(h(),W(u,{key:0,id:"custom-notification-update",onSubmit:r.update},{title:F(()=>[z(m(e.$t("administration.message.notification.update.title")),1)]),"submit-button":F(()=>[z(m(e.$t("public.update")),1)]),content:F(()=>[c("div",{class:J([{"form-group":!0},"form-floating mb-4"])},[xe(c("input",{id:"title",class:"form-control",placeholder:e.$t("public.title"),type:"text",name:"title","onUpdate:modelValue":t[0]||(t[0]=f=>o.v$.title.$model=f)},null,8,ORo),[[wt,o.v$.title.$model]]),c("label",LRo,m(e.$t("validation.attributes.title")),1),o.v$.title.$error&&o.v$.title.required.$invalid?(h(),g("span",MRo,m(e.$t("validation.custom.title.required")),1)):D("",!0)]),c("div",NRo,[b(s,{id:"valid_to",name:"valid_to",class:"form-control border-radius-end-none py-2 px-3",mode:"datetime",value:r.publishedAt,"onUpdate:value":t[1]||(t[1]=f=>r.publishedAt=f),placeholder:e.$t("voucher.now"),label:e.$t("administration.message.notification.table.header.published_at"),"min-date":i.today.toISOString(),"is-small-label":""},null,8,["value","placeholder","label","min-date"])]),c("div",RRo,[b(a,{ref:"quill",class:"mh-8",contentType:"html",theme:"snow",content:o.v$.content.$model,"onUpdate:content":t[2]||(t[2]=f=>o.v$.content.$model=f),options:{...i.editor.extendedToolbar,placeholder:e.$t("administration.message.notification.table.header.content")}},null,8,["content","options"])]),o.v$.content.$error&&o.v$.content.required.$invalid?(h(),g("p",jRo,m(e.$t("validation.custom.reason.required")),1)):D("",!0),c("div",FRo,[c("button",{class:"btn btn-tertiary btn-sm btn-center",onClick:t[3]||(t[3]=f=>i.showPreview=!i.showPreview)},[z(m(i.showPreview?e.$t("public.preview.hide"):e.$t("public.preview.show"))+" ",1),b(l,{icon:i.showPreview?"hide":"show",height:20,width:20,class:"ms-icon"},null,8,["icon"])]),i.showPreview?(h(),W(d,{key:0,class:"mt-4","notification-prop":r.notification,"back-button-hidden":"","full-width":""},null,8,["notification-prop"])):D("",!0)])]),_:1},8,["onSubmit"])):D("",!0)}const URo=U(xRo,[["render",zRo]]),BRo={components:{FormSidebar:_n},data(){return{editor:fu}},computed:{...sn({detail:e=>e.administrationCustomNotification.detail}),...Oe({auth:"auth/auth"})},methods:{deletee(){this.$store.dispatch("administrationCustomNotification/delete",{filters:Mi.getFilters(this.$route.query)})}}};function HRo(e,t,n,o,i,r){const s=y("FormSidebar");return e.auth.is_admin?(h(),W(s,{key:0,id:"custom-notification-delete",onSubmit:r.deletee,"submit-color":"danger"},{title:F(()=>[z(m(e.$t("administration.message.notification.delete.title")),1)]),subtitle:F(()=>[z(m(e.detail.title),1)]),"submit-button":F(()=>[z(m(e.$t("public.delete")),1)]),content:F(()=>[z(m(e.$t("administration.message.notification.delete.text")),1)]),_:1},8,["onSubmit"])):D("",!0)}const VRo=U(BRo,[["render",HRo]]),qRo={components:{UserCartShowSidebar:F7o,UserCreditUpdateSidebar:oSo,UserUpdateSidebar:ETo,UserWishlistShowSidebar:B7o,UserPasswordResetSidebar:DTo,UserMergeSidebar:JTo,UserActivateSidebar:oEo,SettlementPaymentSummarySendSidebar:dNo,SettlementListSidebar:TNo,SettlementConfirmSidebar:PNo,InfoBoxCreateSidebar:lDo,InfoBoxDeleteSidebar:MDo,InfoBoxUpdateSidebar:xDo,SectionCreateSidebar:COo,SectionDeleteSidebar:pLo,SectionUpdateSidebar:hLo,CategoryCreateSidebar:wLo,CategoryDeleteSidebar:qLo,CategoryUpdateSidebar:zLo,CategoryImageUpdateSidebar:oMo,ClassSubjectSubjectCategoryAddSidebar:aMo,ClassSubjectSubjectAddSidebar:uMo,ClassSubjectSubsubjectAddSidebar:pMo,ClassSubjectSubjectCategoryRemoveSidebar:_Mo,ClassSubjectSubjectRemoveSidebar:kMo,ClassSubjectSubsubjectRemoveSidebar:CMo,ProductUploadLockCreateSidebar:HMo,ProductUploadLockDeleteSidebar:YMo,ProductUploadLockUpdateSidebar:rNo,ProductUpdateSidebar:gde,ProductFeedbackSidebar:ude,ProductAdminNoteUpdateSidebar:HCo,ProductDeleteSidebar:RCo,ProductUpdateDeleteSidebar:QCo,ProductUpdateConfirmSidebar:KCo,ComplaintResolveSidebar:u7o,ComplaintNoteAddSidebar:g7o,ComplaintMessageSidebar:$7o,VoucherCreateSidebar:KNo,VoucherUpdateSidebar:pRo,VoucherDeleteSidebar:_Ro,SchoolCreateSidebar:iIo,SchoolCreditOrderCreateAdminSidebar:JPo,SchoolCreditUpdateSidebar:dAo,SchoolCreditExpiryExtendSidebar:vAo,SchoolEmployeeCreateSidebar:bAo,SchoolEmployeeDeleteSidebar:cde,SchoolEmployeeCreditUpdateSidebar:dde,OrderPaymentConfirmSidebar:CAo,OrderDeleteSidebar:IAo,SchoolUpdateSidebar:jPo,SchoolAdminNoteUpdateSidebar:VPo,CustomNotificationCreateSidebar:DRo,CustomNotificationUpdateSidebar:URo,CustomNotificationDeleteSidebar:VRo,AuthorDiscountAutomaticSettingsDeleteSidebar:kRo},computed:{...Oe({sidebarType:"sidebar/getType"})}};function YRo(e,t,n,o,i,r){return e.sidebarType?(h(),W(Dl(e.sidebarType+"-sidebar"),{key:0,"is-admin-app":""})):D("",!0)}const WRo=U(qRo,[["render",YRo]]),Tn=N_();Tn.use(tTe);Tn.use(SQ.LoadingPlugin,{color:window.primaryColor});Tn.use(q7e);Tn.use(LCe);Tn.use(NCe);Tn.use($Ke);Tn.use(Bie);Tn.use(Rrt,{namespace:"ucitelnice_"});Tn.use(CFn,_L);Tn.mixin({methods:{ziggyRoute:Pe}});const GRo=X6e({locale:"cz",pluralizationRules:{cz:gPn},messages:GSe});Tn.use(GRo);const Kde=YSe({history:wSe("./"),routes:pPn});Tn.use(Kde);const ZRo=new B7e({storage:$7e,asyncStorage:!0,modules:["voucher"]}),KRo=new xCe.Store({modules:{auth:kPn,cart:OPn,discount:zPn,payment:WPn,order:XPn,product:lAn,category:yAn,section:TAn,downloads:xAn,wishlist:BAn,user:WAn,infobox:eDn,voucher:aDn,invoice:hDn,school:nLn,schoolCreditOrder:dLn,schoolDownload:JOn,schoolEmployee:bLn,schoolInvoice:ILn,schoolOrder:NLn,messages:FDn,homepageAnalytics:HDn,navigation:GDn,sidebar:ULn,sidebarChat:XDn,blog:dxn,webinar:vxn,search:$xn,productPreview:CDn,productRating:xDn,author:Ixn,authorNotification:Nxn,authorPromoProduct:qxn,authorProductGroup:rOn,authorStats:dOn,authorProducts:pOn,authorComplaints:bOn,authorRevisions:SOn,authorDiscountIndividual:jOn,authorDiscountAutomatic:qOn,productList:rxn,administrationSiteNavigation:YLn,administrationProduct:JLn,administrationProductComplaint:bMn,administrationProductUpdate:AMn,administrationProductLog:MMn,administrationUser:zMn,administrationUserTables:qMn,administrationSchool:KMn,administrationSchoolEmployee:dNn,administrationSchoolOrder:pNn,administrationSchoolPayment:bNn,administrationSchoolCreditTransfer:SNn,administrationSchoolProduct:ANn,administrationFinanceOrder:VNn,administrationFinanceAuthor:ZNn,administrationFinanceCredit:eRn,administrationFinanceDiscount:yRn,administrationFinanceVoucher:dRn,administrationSection:BRn,administrationInfoBox:njn,administrationCategory:fjn,administrationClassSubject:bjn,administrationProductUploadLock:Djn,administrationMessage:zjn,administrationMessages:Zjn,administrationCustomNotification:rFn,administrationSearch:hFn,administrationFinanceAuthorDiscount:CRn,administrationBlog:$Fn},state:{authorsCountByPage:{}},plugins:[ZRo.plugin]});Tn.use(KRo);Tn.mixin({beforeCreate(){this.$store.dispatch("auth/load")}});Tn.component("upload",TFn);Tn.component("date-picker",yZe);Tn.component("v-select",k7e);Tn.component("QuillEditor",WQe);Tn.component("appFlash",qce);Tn.component("flashMessageNew",ezn);Tn.component("AppIcon",Ue);Tn.component("cleanPageFooter",lzn);Tn.component("sidebarChat",Yce);Tn.component("openSidebarChatLink",sM);Tn.component("homepageAnalytics",Nzn);Tn.component("infoBoxElement",PM);Tn.component("DiscountBox",BUn);Tn.component("pageFooter",oHn);Tn.component("productList404",Zce);Tn.component("infoBoxList",vHn);Tn.component("loginRegisterContainer",Jce);Tn.component("loginRegisterModal",kqn);Tn.component("navigationBar",GZn);Tn.component("appSidebar",nno);Tn.component("appModal",Hro);Tn.component("productDetail",Jlo);Tn.component("cartPage",gho);Tn.component("productEditorPage",v1o);Tn.component("voucherPage",lgo);Tn.component("voucherPaidPage",bgo);Tn.component("voucherProformaPage",Kgo);Tn.component("cooperationPage",Bvo);Tn.component("beAuthorPage",byo);Tn.component("beAuthorFormPage",hbo);Tn.component("beAuthorThanksPage",Dbo);Tn.component("productNotAvailable",Hbo);Tn.component("schoolLandingPage",Vse);Tn.component("aboutPage",uko);Tn.component("contactPage",Bko);Tn.component("blogIndexPage",ywo);Tn.component("blogDetailPage",h4o);Tn.component("orderPaymentOptionsPage",d5o);Tn.component("orderPaymentPage",J$o);Tn.component("orderPaymentConfirmedPage",p9o);Tn.component("orderPaymentWaitingPage",$9o);Tn.component("orderSummaryPage",W9o);Tn.component("orderSummaryExpiredPage",v6o);Tn.component("pohodaExportPage",B9o);Tn.component("blogOldIndexPage",O6o);Tn.component("blogOldDetailPage",Q6o);Tn.component("administrationApp",iCo);Tn.component("navigationSidebar",ACo);Tn.component("administrationAppSidebar",WRo);window.primaryColor="#335EEA";window.eventBus=Loe();window.events=Loe();window.flash=Fe;jAe({app:Tn,dsn:"https://f5e56dd0d0994dfe87d461ba1073d9b7@o249862.ingest.sentry.io/1433904",integrations:[new LOe.BrowserTracing({routingInstrumentation:FAe(Kde),tracePropagationTargets:["//www.ucitelnice.cz/"]})],ignoreErrors:["ResizeObserver loop limit exceeded","Can't find variable: ResizeObserver","Avoided redundant navigation to current location","Request aborted","Request failed with status code 401","Non-Error exception captured","Non-Error promise rejection captured"],tracesSampleRate:.05});Tn.config.compilerOptions.whitespace="condense";De.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";let iW=document.head.querySelector('meta[name="csrf-token"]');iW?De.defaults.headers.common["X-CSRF-TOKEN"]=iW.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token");Tn.mount("#app");