vendor: 10,539 bytes, lines 1-2
1(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function i(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function dt(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const Me={},ur=[],lt=()=>{},or=()=>!1,Qn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ji=t=>t.startsWith("onUpdate:"),Ae=Object.assign,uo=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},ym=Object.prototype.hasOwnProperty,Le=(t,e)=>ym.call(t,e),he=Array.isArray,dr=t=>Tr(t)==="[object Map]",er=t=>Tr(t)==="[object Set]",ka=t=>Tr(t)==="[object Date]",pd=t=>Tr(t)==="[object RegExp]",_e=t=>typeof t=="function",xe=t=>typeof t=="string",mt=t=>typeof t=="symbol",He=t=>t!==null&&typeof t=="object",fo=t=>(He(t)||_e(t))&&_e(t.then)&&_e(t.catch),ol=Object.prototype.toString,Tr=t=>ol.call(t),md=t=>Tr(t).slice(8,-1),Xi=t=>Tr(t)==="[object Object]",Yi=t=>xe(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,fn=dt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vd=dt("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ho=t=>{const e=Object.create(null);return(r=>e[r]||(e[r]=t(r)))},_m=/-\w/g,Ve=ho(t=>t.replace(_m,e=>e.slice(1).toUpperCase())),wm=/\B([A-Z])/g,yt=ho(t=>t.replace(wm,"-$1").toLowerCase()),tr=ho(t=>t.charAt(0).toUpperCase()+t.slice(1)),fr=ho(t=>t?`on${tr(t)}`:""),at=(t,e)=>!Object.is(t,e),hr=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},al=(t,e,r,i=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:r})},Ki=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ri=t=>{const e=xe(t)?Number(t):NaN;return isNaN(e)?t:e};let Sc;const Qi=()=>Sc||(Sc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),xm=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function Sm(t){return xm.test(t)?`__props.${t}`:`__props[${JSON.stringify(t)}]`}function Cm(t,e){return t+JSON.stringify(e,(r,i)=>typeof i=="function"?i.toString():i)}const Em={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},Tm={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},km={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},Am={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},Mm={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Nm="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",ll=dt(Nm),Rm=ll,Cc=2;function gd(t,e=0,r=t.length){if(e=Math.max(0,Math.min(e,t.length)),r=Math.max(0,Math.min(r,t.length)),e>r)return"";let i=t.split(/(\r?\n)/);const u=i.filter((l,o)=>o%2===1);i=i.filter((l,o)=>o%2===0);let f=0;const d=[];for(let l=0;l<i.length;l++)if(f+=i[l].length+(u[l]&&u[l].length||0),f>=e){for(let o=l-Cc;o<=l+Cc||r>f;o++){if(o<0||o>=i.length)continue;const n=o+1;d.push(`${n}${" ".repeat(Math.max(3-String(n).length,0))}| ${i[o]}`);const p=i[o].length,a=u[o]&&u[o].length||0;if(o===l){const m=e-(f-(p+a)),h=Math.max(1,r>f?p-m:r-e);d.push(" | "+" ".repeat(m)+"^".repeat(h))}else if(o>l){if(r>f){const m=Math.max(Math.min(r-f,p),1);d.push(" | "+"^".repeat(m))}f+=p+a}}break}return d.join(` 2`)}function ni(t){if(he(t)){const e={};for(let r=0;r<t.length;r++){const i=t[r],u=xe(i)?cl(i):ni(i);if(u)for(const f in u)e[f]=u[f]}return e}else if(xe(t)||He(t))return t}const Im=/;(?![^(]*\))/g,Om=/:([^]+)/,Hm=/\/\*[^]*?\*\//g;function cl(t){const e={};return t.replace(Hm,"").split(Im).forEach(r=>{if(r){const i=r.split(Om);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function Lm(t){if(!t)return"";if(xe(t))return t;let e="";for(const r in t){const i=t[r];if(xe(i)||typeof i=="number"){const u=r.startsWith("--")?r:yt(r);e+=`${u}:${i};`}}return e}function hn(t){let e="";if(xe(t))e=t;else if(he(t))for(let r=0;r<t.length;r++){const i=hn(t[r]);i&&(e+=i+" ")}else if(He(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}function bd(t){if(!t)return null;let{class:e,style:r}=t;return e&&!xe(e)&&(t.class=hn(e)),r&&(t.style=ni(r)),t}const Um="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",Bm="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",Dm="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",Vm="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",yd=dt(Um),_d=dt(Bm),wd=dt(Dm),xd=dt(Vm),Sd="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Cd=dt(Sd),Fm=dt(Sd+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function ul(t){return!!t||t===""}const jm=/[>/="'\u0009\u000a\u000c\u0020]/,na={};function zm(t){if(na.hasOwnProperty(t))return na[t];const e=jm.test(t);return e&&console.error(`unsafe attribute name: ${t}`),na[t]=!e}const $m={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Wm=dt("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Pm=dt("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radiu
2s,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),Gm=dt("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function Zm(t){if(t==null)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"}const qm=/["'&<>]/;function Jm(t){const e=""+t,r=qm.exec(e);if(!r)return e;let i="",u,f,d=0;for(f=r.index;f<e.length;f++){switch(e.charCodeAt(f)){case 34:u=""";break;case 38:u="&";break;case 39:u="'";break;case 60:u="<";break;case 62:u=">";break;default:continue}d!==f&&(i+=e.slice(d,f)),d=f+1,i+=u}return d!==f?i+e.slice(d,f):i}const Xm=/^-?>|<!--|-->|--!>|<!-$/g;function Ym(t){return t.replace(Xm,"")}const Ed=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Km(t,e){return t.replace(Ed,r=>e?r==='"'?'\\\\\\"':`\\\\${r}`:`\\${r}`)}function Qm(t,e){if(t.length!==e.length)return!1;let r=!0;for(let i=0;r&&i<t.length;i++)r=pn(t[i],e[i]);return r}function pn(t,e){if(t===e)return!0;let r=ka(t),i=ka(e);if(r||i)return r&&i?t.getTime()===e.getTime():!1;if(r=mt(t),i=mt(e),r||i)return t===e;if(r=he(t),i=he(e),r||i)return r&&i?Qm(t,e):!1;if(r=He(t),i=He(e),r||i){if(!r||!i)return!1;const u=Object.keys(t).length,f=Object.keys(e).length;if(u!==f)return!1;for(const d in t){const l=t.hasOwnProperty(d),o=e.hasOwnProperty(d);if(l&&!o||!l&&o||!pn(t[d],e[d]))return!1}}return String(t)===String(e)}function es(t,e){return t.findIndex(r=>pn(r,e))}const Td=t=>!!(t&&t.__v_isRef===!0),Y=t=>xe(t)?t:t==null?"":he(t)||He(t)&&(t.toString===ol||!_e(t.toString))?Td(t)?Y(t.value):JSON.stringify(t,kd,2):String(t),kd=(t,e)=>Td(e)?kd(t,e.value):dr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[i,u],f)=>(r[ra(i,f)+" =>"]=u,r),{})}:er(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>ra(r))}:mt(e)?ra(e):He(e)&&!he(e)&&!Xi(e)?String(e):e,ra=(t,e="")=>{var r;return mt(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};function Ad(t){return t==null?"initial":typeof t=="string"?t===""?" ":t:String(t)}const ev=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:ur,EMPTY_OBJ:Me,NO:or,NOOP:lt,PatchFlagNames:Tm,PatchFlags:Em,ShapeFlags:km,SlotFlags:Am,camelize:Ve,capitalize:tr,cssVarNameEscapeSymbolsRE:Ed,def:al,escapeHtml:Jm,escapeHtmlComment:Ym,extend:Ae,genCacheKey:Cm,genPropsAccessExp:Sm,generateCodeFrame:gd,getEscapedCssVarName:Km,getGlobalThis:Qi,hasChanged:at,hasOwn:Le,hyphenate:yt,includeBooleanAttr:ul,invokeArrayFns:hr,isArray:he,isBooleanAttr:Fm,isBuiltInDirective:vd,isDate:ka,isFunction:_e,
vendor: 6,541 bytes, line 2
2isGloballyAllowed:ll,isGloballyWhitelisted:Rm,isHTMLTag:yd,isIntegerKey:Yi,isKnownHtmlAttr:Wm,isKnownMathMLAttr:Gm,isKnownSvgAttr:Pm,isMap:dr,isMathMLTag:wd,isModelListener:Ji,isObject:He,isOn:Qn,isPlainObject:Xi,isPromise:fo,isRegExp:pd,isRenderableAttrValue:Zm,isReservedProp:fn,isSSRSafeAttrName:zm,isSVGTag:_d,isSet:er,isSpecialBooleanAttr:Cd,isString:xe,isSymbol:mt,isVoidTag:xd,looseEqual:pn,looseIndexOf:es,looseToNumber:Ki,makeMap:dt,normalizeClass:hn,normalizeCssVarValue:Ad,normalizeProps:bd,normalizeStyle:ni,objectToString:ol,parseStringStyle:cl,propsToAttrMap:$m,remove:uo,slotFlagsText:Mm,stringifyStyle:Lm,toDisplayString:Y,toHandlerKey:fr,toNumber:Ri,toRawType:md,toTypeString:Tr},Symbol.toStringTag,{value:"Module"}));let ot;class dl{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ot,!e&&ot&&(this.index=(ot.scopes||(ot.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].pause();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].resume();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].resume()}}run(e){if(this._active){const r=ot;try{return ot=this,e()}finally{ot=r}}}on(){++this._on===1&&(this.prevScope=ot,ot=this)}off(){if(this._on>0&&--this._on===0){if(ot===this)ot=this.prevScope;else{let e=ot;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let r,i;for(r=0,i=this.effects.length;r<i;r++)this.effects[r].stop();for(this.effects.length=0,r=0,i=this.cleanups.length;r<i;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,i=this.scopes.length;r<i;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const u=this.parent.scopes.pop();u&&u!==this&&(this.parent.scopes[this.index]=u,u.index=this.index)}this.parent=void 0}}}function fl(t){return new dl(t)}function hl(){return ot}function Md(t,e=!1){ot&&ot.cleanups.push(t)}let ze;const ia=new WeakSet;class Ii{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ot&&ot.active&&ot.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ia.has(this)&&(ia.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Rd(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ec(this),Id(this);const e=ze,r=Yt;ze=this,Yt=!0;try{return this.fn()}finally{Od(this),ze=e,Yt=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)vl(e);this.deps=this.depsTail=void 0,Ec(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ia.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Aa(this)&&this.run()}get dirty(){return Aa(this)}}let Nd=0,Si,Ci;function Rd(t,e=!1){if(t.flags|=8,e){t.next=Ci,Ci=t;return}t.next=Si,Si=t}function pl(){Nd++}function ml(){if(--Nd>0)return;if(Ci){let e=Ci;for(Ci=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;Si;){let e=Si;for(Si=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(i){t||(t=i)}e=r}}if(t)throw t}function Id(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Od(t){let e,r=t.depsTail,i=r;for(;i;){const u=i.prevDep;i.version===-1?(i===r&&(r=u),vl(i),tv(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=u}t.deps=e,t.depsTail=r}function Aa(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Hd(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Hd(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Oi)||(t.globalVersion=Oi,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Aa(t))))return;t.flags|=2;const e=t.dep,r=ze,i=Yt;ze=t,Yt=!0;try{Id(t);const u=t.fn(t._value);(e.version===0||at(u,t._value))&&(t.flags|=128,t._value=u,e.version++)}catch(u){throw e.version++,u}finally{ze=r,Yt=i,Od(t),t.flags&=-3}}function vl(t,e=!1){const{dep:r,prevSub:i,nextSub:u}=t;if(i&&(i.nextSub=u,t.prevSub=void 0),u&&(u.prevSub=i,t.nextSub=void 0),r.subs===t&&(r.subs=i,!i&&r.computed)){r.computed.flags&=-5;for(let f=r.computed.deps;f;f=f.nextDep)vl(f,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function tv(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}function nv(t,e){t.effect instanceof Ii&&(t=t.effect.fn);const r=new Ii(t);e&&Ae(r,e);try{r.run()}catch(u){throw r.stop(),u}const i=r.run.bind(r);return i.effect=r,i}function rv(t){t.effect.stop()}let Yt=!0;const Ld=[];function In(){Ld.push(Yt),Yt=!1}function On(){const t=Ld.pop();Yt=t===void 0?!0:t}function Ec(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const r=ze;ze=void 0;try{e()}finally{ze=r}}}let Oi=0;class iv{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class po{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ze||!Yt||ze===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==ze)r=this.activeLink=new iv(ze,this),ze.deps?(r.prevDep=ze.depsTail,ze.depsTail.nextDep=r,ze.depsTail=r):ze.deps=ze.depsTail=r,Ud(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const i=r.nextDep;i.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=i),r.prevDep=ze.depsTail,r.nextDep=void 0,ze.depsTail.nextDep=r,ze.depsTail=r,ze.deps===r&&(ze.deps=i)}return r}trigger(e){this.version++,Oi++,this.notify(e)}notify(e){pl();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{ml()}}}function Ud(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let i=e.deps;i;i=i.nextDep)Ud(i)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}const Fs=new WeakMap,pr=Symbol(""),Ma=Symbol(""),Hi=Symbol("");function bt(t,e,r){if(Yt&&ze){let i=Fs.get(t);i||Fs.set(t,i=new Map);let u=i.get(r);u||(i.set(r,u=new po),u.map=i,u.key=r),u.track()}}function Tn(t,e,r,i,u,f){const d=Fs.get(t);if(!d){Oi++;return}const l=o=>{o&&o.trigger()};
vendor: 4,191 bytes, line 2
2if(pl(),e==="clear")d.forEach(l);else{const o=he(t),n=o&&Yi(r);if(o&&r==="length"){const p=Number(i);d.forEach((a,m)=>{(m==="length"||m===Hi||!mt(m)&&m>=p)&&l(a)})}else switch((r!==void 0||d.has(void 0))&&l(d.get(r)),n&&l(d.get(Hi)),e){case"add":o?n&&l(d.get("length")):(l(d.get(pr)),dr(t)&&l(d.get(Ma)));break;case"delete":o||(l(d.get(pr)),dr(t)&&l(d.get(Ma)));break;case"set":dr(t)&&l(d.get(pr));break}}ml()}function sv(t,e){const r=Fs.get(t);return r&&r.get(e)}function Mr(t){const e=Re(t);return e===t?e:(bt(e,"iterate",Hi),Ot(t)?e:e.map(Qt))}function mo(t){return bt(t=Re(t),"iterate",Hi),t}function un(t,e){return mn(t)?$r(Kt(t)?Qt(e):e):Qt(e)}const ov={__proto__:null,[Symbol.iterator](){return sa(this,Symbol.iterator,t=>un(this,t))},concat(...t){return Mr(this).concat(...t.map(e=>he(e)?Mr(e):e))},entries(){return sa(this,"entries",t=>(t[1]=un(this,t[1]),t))},every(t,e){return _n(this,"every",t,e,void 0,arguments)},filter(t,e){return _n(this,"filter",t,e,r=>r.map(i=>un(this,i)),arguments)},find(t,e){return _n(this,"find",t,e,r=>un(this,r),arguments)},findIndex(t,e){return _n(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return _n(this,"findLast",t,e,r=>un(this,r),arguments)},findLastIndex(t,e){return _n(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return _n(this,"forEach",t,e,void 0,arguments)},includes(...t){return oa(this,"includes",t)},indexOf(...t){return oa(this,"indexOf",t)},join(t){return Mr(this).join(t)},lastIndexOf(...t){return oa(this,"lastIndexOf",t)},map(t,e){return _n(this,"map",t,e,void 0,arguments)},pop(){return ui(this,"pop")},push(...t){return ui(this,"push",t)},reduce(t,...e){return Tc(this,"reduce",t,e)},reduceRight(t,...e){return Tc(this,"reduceRight",t,e)},shift(){return ui(this,"shift")},some(t,e){return _n(this,"some",t,e,void 0,arguments)},splice(...t){return ui(this,"splice",t)},toReversed(){return Mr(this).toReversed()},toSorted(t){return Mr(this).toSorted(t)},toSpliced(...t){return Mr(this).toSpliced(...t)},unshift(...t){return ui(this,"unshift",t)},values(){return sa(this,"values",t=>un(this,t))}};function sa(t,e,r){const i=mo(t),u=i[e]();return i!==t&&!Ot(t)&&(u._next=u.next,u.next=()=>{const f=u._next();return f.done||(f.value=r(f.value)),f}),u}const av=Array.prototype;function _n(t,e,r,i,u,f){const d=mo(t),l=d!==t&&!Ot(t),o=d[e];if(o!==av[e]){const a=o.apply(t,f);return l?Qt(a):a}let n=r;d!==t&&(l?n=function(a,m){return r.call(this,un(t,a),m,t)}:r.length>2&&(n=function(a,m){return r.call(this,a,m,t)}));const p=o.call(d,n,i);return l&&u?u(p):p}function Tc(t,e,r,i){const u=mo(t),f=u!==t&&!Ot(t);let d=r,l=!1;u!==t&&(f?(l=i.length===0,d=function(n,p,a){return l&&(l=!1,n=un(t,n)),r.call(this,n,un(t,p),a,t)}):r.length>3&&(d=function(n,p,a){return r.call(this,n,p,a,t)}));const o=u[e](d,...i);return l?un(t,o):o}function oa(t,e,r){const i=Re(t);bt(i,"iterate",Hi);const u=i[e](...r);return(u===-1||u===!1)&&ts(r[0])?(r[0]=Re(r[0]),i[e](...r)):u}function ui(t,e,r=[]){In(),pl();const i=Re(t)[e].apply(t,r);return ml(),On(),i}const lv=dt("__proto__,__v_isRef,__isVue"),Bd=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(mt));function cv(t){mt(t)||(t=String(t));const e=Re(this);return bt(e,"has",t),e.hasOwnProperty(t)}class Dd{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,i){if(r==="__v_skip")return e.__v_skip;const u=this._isReadonly,f=this._isShallow;if(r==="__v_isReactive")return!u;if(r==="__v_isReadonly")return u;if(r==="__v_isShallow")return f;if(r==="__v_raw")return i===(u?f?Wd:$d:f?zd:jd).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const d=he(e);if(!u){let o;if(d&&(o=ov[r]))return o;if(r==="hasOwnProperty")return cv}const l=Reflect.get(e,r,Pe(e)?e:i);if((mt(r)?Bd.has(r):lv(r))||(u||bt(e,"get",r),f))return l;if(Pe(l)){const o=d&&Yi(r)?l:l.value;return u&&He(o)?js(o):o}return He(l)?u?js(l):bn(l):l}}class Vd extends Dd{constructor(e=!1){super(!1,e)}set(e,r,i,u){let f=e[r];const d=he(e)&&Yi(r);if(!this._isShallow){const n=mn(f);if(!Ot(i)&&!mn(i)&&(f=Re(f),i=Re(i)),!d&&Pe(f)&&!Pe(i))return n||(f.value=i),!0}const l=d?Number(r)<e.length:Le(e,r),o=Reflect.set(e,r,i,Pe(e)?e:u);
vendor: 6,684 bytes, line 2
2return e===Re(u)&&(l?at(i,f)&&Tn(e,"set",r,i):Tn(e,"add",r,i)),o}deleteProperty(e,r){const i=Le(e,r);e[r];const u=Reflect.deleteProperty(e,r);return u&&i&&Tn(e,"delete",r,void 0),u}has(e,r){const i=Reflect.has(e,r);return(!mt(r)||!Bd.has(r))&&bt(e,"has",r),i}ownKeys(e){return bt(e,"iterate",he(e)?"length":pr),Reflect.ownKeys(e)}}class Fd extends Dd{constructor(e=!1){super(!0,e)}set(e,r){return!0}deleteProperty(e,r){return!0}}const uv=new Vd,dv=new Fd,fv=new Vd(!0),hv=new Fd(!0),Na=t=>t,vs=t=>Reflect.getPrototypeOf(t);function pv(t,e,r){return function(...i){const u=this.__v_raw,f=Re(u),d=dr(f),l=t==="entries"||t===Symbol.iterator&&d,o=t==="keys"&&d,n=u[t](...i),p=r?Na:e?$r:Qt;return!e&&bt(f,"iterate",o?Ma:pr),Ae(Object.create(n),{next(){const{value:a,done:m}=n.next();return m?{value:a,done:m}:{value:l?[p(a[0]),p(a[1])]:p(a),done:m}}})}}function gs(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function mv(t,e){const r={get(u){const f=this.__v_raw,d=Re(f),l=Re(u);t||(at(u,l)&&bt(d,"get",u),bt(d,"get",l));const{has:o}=vs(d),n=e?Na:t?$r:Qt;if(o.call(d,u))return n(f.get(u));if(o.call(d,l))return n(f.get(l));f!==d&&f.get(u)},get size(){const u=this.__v_raw;return!t&&bt(Re(u),"iterate",pr),u.size},has(u){const f=this.__v_raw,d=Re(f),l=Re(u);return t||(at(u,l)&&bt(d,"has",u),bt(d,"has",l)),u===l?f.has(u):f.has(u)||f.has(l)},forEach(u,f){const d=this,l=d.__v_raw,o=Re(l),n=e?Na:t?$r:Qt;return!t&&bt(o,"iterate",pr),l.forEach((p,a)=>u.call(f,n(p),n(a),d))}};return Ae(r,t?{add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear")}:{add(u){const f=Re(this),d=vs(f),l=Re(u),o=!e&&!Ot(u)&&!mn(u)?l:u;return d.has.call(f,o)||at(u,o)&&d.has.call(f,u)||at(l,o)&&d.has.call(f,l)||(f.add(o),Tn(f,"add",o,o)),this},set(u,f){!e&&!Ot(f)&&!mn(f)&&(f=Re(f));const d=Re(this),{has:l,get:o}=vs(d);let n=l.call(d,u);n||(u=Re(u),n=l.call(d,u));const p=o.call(d,u);return d.set(u,f),n?at(f,p)&&Tn(d,"set",u,f):Tn(d,"add",u,f),this},delete(u){const f=Re(this),{has:d,get:l}=vs(f);let o=d.call(f,u);o||(u=Re(u),o=d.call(f,u)),l&&l.call(f,u);const n=f.delete(u);return o&&Tn(f,"delete",u,void 0),n},clear(){const u=Re(this),f=u.size!==0,d=u.clear();return f&&Tn(u,"clear",void 0,void 0),d}}),["keys","values","entries",Symbol.iterator].forEach(u=>{r[u]=pv(u,t,e)}),r}function vo(t,e){const r=mv(t,e);return(i,u,f)=>u==="__v_isReactive"?!t:u==="__v_isReadonly"?t:u==="__v_raw"?i:Reflect.get(Le(r,u)&&u in i?r:i,u,f)}const vv={get:vo(!1,!1)},gv={get:vo(!1,!0)},bv={get:vo(!0,!1)},yv={get:vo(!0,!0)},jd=new WeakMap,zd=new WeakMap,$d=new WeakMap,Wd=new WeakMap;function _v(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wv(t){return t.__v_skip||!Object.isExtensible(t)?0:_v(md(t))}function bn(t){return mn(t)?t:go(t,!1,uv,vv,jd)}function gl(t){return go(t,!1,fv,gv,zd)}function js(t){return go(t,!0,dv,bv,$d)}function xv(t){return go(t,!0,hv,yv,Wd)}function go(t,e,r,i,u){if(!He(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const f=wv(t);if(f===0)return t;const d=u.get(t);if(d)return d;const l=new Proxy(t,f===2?i:r);return u.set(t,l),l}function Kt(t){return mn(t)?Kt(t.__v_raw):!!(t&&t.__v_isReactive)}function mn(t){return!!(t&&t.__v_isReadonly)}function Ot(t){return!!(t&&t.__v_isShallow)}function ts(t){return t?!!t.__v_raw:!1}function Re(t){const e=t&&t.__v_raw;return e?Re(e):t}function bo(t){return!Le(t,"__v_skip")&&Object.isExtensible(t)&&al(t,"__v_skip",!0),t}const Qt=t=>He(t)?bn(t):t,$r=t=>He(t)?js(t):t;function Pe(t){return t?t.__v_isRef===!0:!1}function K(t){return Pd(t,!1)}function bl(t){return Pd(t,!0)}function Pd(t,e){return Pe(t)?t:new Sv(t,e)}class Sv{constructor(e,r){this.dep=new po,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:Re(e),this._value=r?e:Qt(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){const r=this._rawValue,i=this.__v_isShallow||Ot(e)||mn(e);e=i?e:Re(e),at(e,r)&&(this._rawValue=e,this._value=i?e:Qt(e),this.dep.trigger())}}function Cv(t){t.dep&&t.dep.trigger()}function Ht(t){return Pe(t)?t.value:t}function Ev(t){return _e(t)?t():Ht(t)}const Tv={get:(t,e,r)=>e==="__v_raw"?t:Ht(Reflect.get(t,e,r)),set:(t,e,r,i)=>{const u=t[e];return Pe(u)&&!Pe(r)?(u.value=r,!0):Reflect.set(t,e,r,i)}};function yl(t){return Kt(t)?t:new Proxy(t,Tv)}class kv{constructor(e){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new po,{get:i,set:u}=e(r.track.bind(r),r.trigger.bind(r));this._get=i,this._set=u}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Gd(t){return new kv(t)}function Zd(t){const e=he(t)?new Array(t.length):{};for(const r in t)e[r]=qd(t,r);return e}class Av{constructor(e,r,i){this._object=e,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._key=mt(r)?r:String(r),this._raw=Re(e);let u=!0,f=e;if(!he(e)||mt(this._key)||!Yi(this._key))do u=!ts(f)||Ot(f);while(u&&(f=f.__v_raw));this._shallow=u}get value(){let e=this._object[this._key];return this._shallow&&(e=Ht(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Pe(this._raw[this._key])){const r=this._object[this._key];if(Pe(r)){r.value=e;return}}this._object[this._key]=e}get dep(){return sv(this._raw,this._key)}}class Mv{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Nv(t,e,r){return Pe(t)?t:_e(t)?new Mv(t):He(t)&&arguments.length>1?qd(t,e,r):K(t)}function qd(t,e,r){return new Av(t,e,r)}class Rv{constructor(e,r,i){this.fn=e,this.setter=r,this._value=void 0,this.dep=new po(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Oi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&ze!==this)return Rd(this,!0),!0}get value(){const e=this.dep.track();return Hd(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Iv(t,e,r=!1){let i,u;return _e(t)?i=t:(i=t.get,u=t.set),new Rv(i,u,r)}const Ov={GET:"get",HAS:"has",ITERATE:"iterate"},Hv={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},bs={},zs=new WeakMap;let Wn;function Lv(){return Wn}function Jd(t,e=!1,r=Wn){if(r){let i=zs.get(r);i||zs.set(r,i=[]),i.push(t)}}function Uv(t,e,r=Me){const{immediate:i,deep:u,once:f,scheduler:d,augmentJob:l,call:o}=r,n=_=>u?_:Ot(_)||u===!1||u===0?kn(_,1):kn(_);let p,a,m,h,b=!1,s=!1;if(Pe(t)?(a=()=>t.value,b=Ot(t)):Kt(t)?(a=()=>n(t),b=!0):he(t)?(s=!0,b=t.some(_=>Kt(_)||Ot(_)),a=()=>t.map(_=>{if(Pe(_))return _.value;if(Kt(_))return n(_);if(_e(_))return o?o(_,2):_()})):_e(t)?e?a=o?()=>o(t,2):t:a=()=>
vendor: 4,206 bytes, line 2
2{if(m){In();try{m()}finally{On()}}const _=Wn;Wn=p;try{return o?o(t,3,[h]):t(h)}finally{Wn=_}}:a=lt,e&&u){const _=a,w=u===!0?1/0:u;a=()=>kn(_(),w)}const c=hl(),v=()=>{p.stop(),c&&c.active&&uo(c.effects,p)};if(f&&e){const _=e;e=(...w)=>{_(...w),v()}}let g=s?new Array(t.length).fill(bs):bs;const y=_=>{if(!(!(p.flags&1)||!p.dirty&&!_))if(e){const w=p.run();if(u||b||(s?w.some((S,E)=>at(S,g[E])):at(w,g))){m&&m();const S=Wn;Wn=p;try{const E=[w,g===bs?void 0:s&&g[0]===bs?[]:g,h];g=w,o?o(e,3,E):e(...E)}finally{Wn=S}}}else p.run()};return l&&l(y),p=new Ii(a),p.scheduler=d?()=>d(y,!1):y,h=_=>Jd(_,!1,p),m=p.onStop=()=>{const _=zs.get(p);if(_){if(o)o(_,4);else for(const w of _)w();zs.delete(p)}},e?i?y(!0):g=p.run():d?d(y.bind(null,!0),!0):p.run(),v.pause=p.pause.bind(p),v.resume=p.resume.bind(p),v.stop=v,v}function kn(t,e=1/0,r){if(e<=0||!He(t)||t.__v_skip||(r=r||new Map,(r.get(t)||0)>=e))return t;if(r.set(t,e),e--,Pe(t))kn(t.value,e,r);else if(he(t))for(let i=0;i<t.length;i++)kn(t[i],e,r);else if(er(t)||dr(t))t.forEach(i=>{kn(i,e,r)});else if(Xi(t)){for(const i in t)kn(t[i],e,r);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&kn(t[i],e,r)}return t}const Xd=[];function Bv(t){Xd.push(t)}function Dv(){Xd.pop()}function Vv(t,e){}const Fv={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"},jv={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 ri(t,e,r,i){try{return i?t(...i):t()}catch(u){kr(u,e,r)}}function Zt(t,e,r,i){if(_e(t)){const u=ri(t,e,r,i);return u&&fo(u)&&u.catch(f=>{kr(f,e,r)}),u}if(he(t)){const u=[];for(let f=0;f<t.length;f++)u.push(Zt(t[f],e,r,i));return u}}function kr(t,e,r,i=!0){const u=e?e.vnode:null,{errorHandler:f,throwUnhandledErrorInProduction:d}=e&&e.appContext.config||Me;if(e){let l=e.parent;const o=e.proxy,n=`https://vuejs.org/error-reference/#runtime-${r}`;for(;l;){const p=l.ec;if(p){for(let a=0;a<p.length;a++)if(p[a](t,o,n)===!1)return}l=l.parent}if(f){In(),ri(f,null,10,[t,o,n]),On();return}}zv(t,r,u,i,d)}function zv(t,e,r,i=!0,u=!1){if(u)throw t;console.error(t)}const Et=[];let an=-1;const Dr=[];let Pn=null,Hr=0;const Yd=Promise.resolve();let $s=null;function ii(t){const e=$s||Yd;return t?e.then(this?t.bind(this):t):e}function $v(t){let e=an+1,r=Et.length;for(;e<r;){const i=e+r>>>1,u=Et[i],f=Ui(u);f<t||f===t&&u.flags&2?e=i+1:r=i}return e}function _l(t){if(!(t.flags&1)){const e=Ui(t),r=Et[Et.length-1];!r||!(t.flags&2)&&e>=Ui(r)?Et.push(t):Et.splice($v(e),0,t),t.flags|=1,Kd()}}function Kd(){$s||($s=Yd.then(Qd))}function Li(t){he(t)?Dr.push(...t):Pn&&t.id===-1?Pn.splice(Hr+1,0,t):t.flags&1||(Dr.push(t),t.flags|=1),Kd()}function kc(t,e,r=an+1){for(;r<Et.length;r++){const i=Et[r];if(i&&i.flags&2){if(t&&i.id!==t.uid)continue;Et.splice(r,1),r--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function Ws(t){if(Dr.length){const e=[...new Set(Dr)].sort((r,i)=>Ui(r)-Ui(i));if(Dr.length=0,Pn){Pn.push(...e);return}for(Pn=e,Hr=0;Hr<Pn.length;Hr++){const r=Pn[Hr];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Pn=null,Hr=0}}const Ui=t=>
2t.id==null?t.flags&2?-1:1/0:t.id;function Qd(t){try{for(an=0;an<Et.length;an++){const e=Et[an];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),ri(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;an<Et.length;an++){const e=Et[an];e&&(e.flags&=-2)}an=-1,Et.length=0,Ws(),$s=null,(Et.length||Dr.length)&&Qd()}}let Lr,ys=[];function ef(t,e){var r,i;Lr=t,Lr?(Lr.enabled=!0,ys.forEach(({event:u,args:f})=>Lr.emit(u,...f)),ys=[]):typeof window<"u"&&window.HTMLElement&&!((i=(r=window.navigator)==null?void 0:r.userAgent)!=null&&i.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(f=>{ef(f,e)}),setTimeout(()=>{Lr||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ys=[])},3e3)):ys=[]}let pt=null,yo=null;function Bi(t){const e=pt;return pt=t,yo=t&&t.type.__scopeId||null,e}function Wv(t){yo=t}function Pv(){yo=null}const Gv=t=>Ce;function Ce(t,e=pt,r){if(!e||t._n)return t;const i=(...u)=>{i._d&&Fi(-1);const f=Bi(e);let d;try{d=t(...u)}finally{Bi(f),i._d&&Fi(1)}return d};return i._n=!0,i._c=!0,i._d=!0,i}function fe(t,e){if(pt===null)return t;const r=ss(pt),i=t.dirs||(t.dirs=[]);for(let u=0;u<e.length;u++){let[f,d,l,o=Me]=e[u];f&&(_e(f)&&(f={mounted:f,updated:f}),f.deep&&kn(d),i.push({dir:f,instance:r,value:d,oldValue:void 0,arg:l,modifiers:o}))}return t}function ln(t,e,r,i){const u=t.dirs,f=e&&e.dirs;for(let d=0;d<u.length;d++){const l=u[d];f&&(l.oldValue=f[d].value);let o=l.dir[i];o&&(In(),Zt(o,r,8,[t.el,l,t,e]),On())}}function Ei(t,e){if(ht){let r=ht.provides;const i=ht.parent&&ht.parent.provides;i===r&&(r=ht.provides=Object.create(i)),r[t]=e}}function Wt(t,e,r=!1){const i=At();if(i||mr){let u=mr?mr._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(u&&t in u)return u[t];if(arguments.length>1)return r&&_e(e)?e.call(i&&i.proxy):e}}function tf(){return!!(At()||mr)}const nf=Symbol.for("v-scx"),rf=()=>Wt(nf);function Zv(t,e){return ns(t,null,e)}function qv(t,e){return ns(t,null,{flush:"post"})}function sf(t,e){return ns(t,null,{flush:"sync"})}function Lt(t,e,r){return ns(t,e,r)}function ns(t,e,r=Me){const{immediate:i,deep:u,flush:f,once:d}=r,l=Ae({},r),o=e&&i||!e&&f!=="post";let n;if(_r){if(f==="sync"){const h=rf();n=h.__watcherHandles||(h.__watcherHandles=[])}else if(!o){const h=()=>{};return h.stop=lt,h.resume=lt,h.pause=lt,h}}const p=ht;l.call=(h,b,s)=>Zt(h,p,b,s);let a=!1;f==="post"?l.scheduler=h=>{et(h,p&&p.suspense)}:f!=="sync"&&(a=!0,l.scheduler=(h,b)=>{b?h():_l(h)}),l.augmentJob=h=>{e&&(h.flags|=4),a&&(h.flags|=2,p&&(h.id=p.uid,h.i=p))};const m=Uv(t,e,l);return _r&&(n?n.push(m):o&&m()),m}function Jv(t,e,r){const i=this.proxy,u=xe(t)?t.includes(".")?of(i,t):()=>i[t]:t.bind(i,i);let f;_e(e)?f=e:(f=e.handler,r=e);const d=si(this),l=ns(u,f.bind(i),r);return d(),l}function of(t,e){const r=e.split(".");return()=>{let i=t;for(let u=0;u<r.length&&i;u++)i=i[r[u]];return i}}const jn=new WeakMap,af=Symbol("_vte"),lf=t=>t.__isTeleport,sr=t=>t&&(t.disabled||t.disabled===""),Xv=t=>t&&(t.defer||t.defer===""),Ac=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Mc=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Ra=(t,e)=>{const r=t&&t.to;return xe(r)?e?e(r):null:r},Yv={name:"Teleport",__isTeleport:!0,process(t,e,r,i,u,f,d,l,o,n){const{mc:p,pc:a,pbc:m,o:{insert:h,querySelector:b,createText:s,createComment:c,parentNode:v}}=n,g=sr(e.props);let{dynamicChildren:y}=e;const _=(E,T,C)=>{E.shapeFlag&16&&p(E.children,T,C,u,f,d,l,o)},w=(E=e)=>{const T=sr(E.props),C=E.target=Ra(E.props,b),N=Ia(C,E,s,h);C&&(d!=="svg"&&Ac(C)?d="svg":d!=="mathml"&&Mc(C)&&(d="mathml"),u&&u.isCE&&(u.ce._teleportTargets||(u.ce._teleportTargets=new Set)).add(C),T||(_(E,C,N),bi(E,!1)))},S=E=>{const T=()=>{if(jn.get(E)===T){if(jn.delete(E),sr(E.props)){const C=v(E.el)||r;_(E,C,E.anchor),bi(E,!0)}w(E)}};jn.set(E,T),et(T,f)};if(t==null){const E=e.el=s(""),T=e.anchor=s("");if(h(E,r,i),h(T,r,i),Xv(e.props)||f&&f.pendingBranch){S(e);return}g&&(_(e,r,T),bi(e,!0)),w()}else{e.el=t.el;const E=e.anchor=t.anchor,T=jn.get(t);if(T){T.flags|=8,jn.delete(t),S(e);return}e.targetStart=t.targetStart;const C=e.target=t.target,N=e.targetAnchor=t.targetAnchor,B=sr(t.props),M=B?r:C,L=B?E:N;if(d==="svg"||Ac(C)?d="svg":(d==="mathml"||Mc(C))&&(d="mathml"),y?(m(t.dynamicChildren,y,M,u,f,d,l),Rl(t,e,!0)):o||a(t,e,M,L,u,f,d,l,!1),g)B?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):_s(e,r,E,n,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const I=e.target=Ra(e.props,b);I&&_s(e,I,null,n,0)}else B&&_s(e,C,N,n,1);bi(e,g)}},remove(t,e,r,{um:i,o:{remove:u}}
2,f){const{shapeFlag:d,children:l,anchor:o,targetStart:n,targetAnchor:p,target:a,props:m}=t;let h=f||!sr(m);const b=jn.get(t);if(b&&(b.flags|=8,jn.delete(t),h=!1),a&&(u(n),u(p)),f&&u(o),d&16)for(let s=0;s<l.length;s++){const c=l[s];i(c,e,r,h,!!c.dynamicChildren)}},move:_s,hydrate:Kv};function _s(t,e,r,{o:{insert:i},m:u},f=2){f===0&&i(t.targetAnchor,e,r);const{el:d,anchor:l,shapeFlag:o,children:n,props:p}=t,a=f===2;if(a&&i(d,e,r),!jn.has(t)&&(!a||sr(p))&&o&16)for(let m=0;m<n.length;m++)u(n[m],e,r,2);a&&i(l,e,r)}function Kv(t,e,r,i,u,f,{o:{nextSibling:d,parentNode:l,querySelector:o,insert:n,createText:p}},a){function m(c,v){let g=v;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")e.targetStart=g;else if(g.data==="teleport anchor"){e.targetAnchor=g,c._lpa=e.targetAnchor&&d(e.targetAnchor);break}}g=d(g)}}function h(c,v){v.anchor=a(d(c),v,l(c),r,i,u,f)}const b=e.target=Ra(e.props,o),s=sr(e.props);if(b){const c=b._lpa||b.firstChild;e.shapeFlag&16&&(s?(h(t,e),m(b,c),e.targetAnchor||Ia(b,e,p,n,l(t)===b?t:null)):(e.anchor=d(t),m(b,c),e.targetAnchor||Ia(b,e,p,n),a(c&&d(c),e,b,r,i,u,f))),bi(e,s)}else s&&e.shapeFlag&16&&(h(t,e),e.targetStart=t,e.targetAnchor=d(t));return e.anchor&&d(e.anchor)}const Qv=Yv;function bi(t,e){const r=t.ctx;if(r&&r.ut){let i,u;for(e?(i=t.el,u=t.anchor):(i=t.targetStart,u=t.targetAnchor);i&&i!==u;)i.nodeType===1&&i.setAttribute("data-v-owner",r.uid),i=i.nextSibling;r.ut()}}function Ia(t,e,r,i,u=null){const f=e.targetStart=r(""),d=e.targetAnchor=r("");return f[af]=d,t&&(i(f,t,u),i(d,t,u)),d}const cn=Symbol("_leaveCb"),di=Symbol("_enterCb");function wl(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qe(()=>{t.isMounted=!0}),So(()=>{t.isUnmounting=!0}),t}const zt=[Function,Array],xl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zt,onEnter:zt,onAfterEnter:zt,onEnterCancelled:zt,onBeforeLeave:zt,onLeave:zt,onAfterLeave:zt,onLeaveCancelled:zt,onBeforeAppear:zt,onAppear:zt,onAfterAppear:zt,onAppearCancelled:zt},cf=t=>{const e=t.subTree;return e.component?cf(e.component):e},eg={name:"BaseTransition",props:xl,setup(t,{slots:e}){const r=At(),i=wl();return()=>{const u=e.default&&_o(e.default(),!0),f=u&&u.length?uf(u):r.subTree?ke():void 0;if(!f)return;const d=Re(t),{mode:l}=d;if(i.isLeaving)return aa(f);const o=Nc(f);if(!o)return aa(f);let n=Wr(o,d,i,r,a=>n=a);o.type!==Xe&&Hn(o,n);let p=r.subTree&&Nc(r.subTree);if(p&&p.type!==Xe&&!Xt(p,o)&&cf(r).type!==Xe){let a=Wr(p,d,i,r);if(Hn(p,a),l==="out-in"&&o.type!==Xe)return i.isLeaving=!0,a.afterLeave=()=>{i.isLeaving=!1,r.job.flags&8||r.update(),delete a.afterLeave,p=void 0},aa(f);l==="in-out"&&o.type!==Xe?a.delayLeave=(m,h,b)=>{const s=ff(i,p);s[String(p.key)]=p,m[cn]=()=>{h(),m[cn]=void 0,delete n.delayedLeave,p=void 0},n.delayedLeave=()=>{b(),delete n.delayedLeave,p=void 0}}:p=void 0}else p&&(p=void 0);return f}}};function uf(t){let e=t[0];if(t.length>1){for(const r of t)if(r.type!==Xe){e=r;break}}return e}const df=eg;function ff(t,e){const{leavingVNodes:r}=t;let i=r.get(e.type);return i||(i=Object.create(null),r.set(e.type,i)),i}function Wr(t,e,r,i,u){const{appear:f,mode:d,persisted:l=!1,onBeforeEnter:o,onEnter:n,onAfterEnter:p,onEnterCancelled:a,onBeforeLeave:m,onLeave:h,onAfterLeave:b,onLeaveCancelled:s,onBeforeAppear:c,onAppear:v,onAfterAppear:g,onAppearCancelled:y}=e,_=String(t.key),w=ff(r,t),S=(C,N)=>{C&&Zt(C,i,9,N)},E=(C,N)=>{const B=N[1];S(C,N),he(C)?C.every(M=>M.length<=1)&&B():C.length<=1&&B()},T={mode:d,persisted:l,beforeEnter(C){let N=o;if(!r.isMounted)if(f)N=c||o;else return;C[cn]&&C[cn](!0);const B=w[_];B&&Xt(t,B)&&B.el[cn]&&B.el[cn](),S(N,[C])},enter(C){if(w[_]===t)return;let N=n,B=p,M=a;if(!r.isMounted)if(f)N=v||n,B=g||p,M=y||a;else return;let L=!1;C[di]=$=>{L||(L=!0,$?S(M,[C]):S(B,[C]),T.delayedLeave&&T.delayedLeave(),C[di]=void 0)};const I=C[di].bind(null,!1);N?E(N,[C,I]):I()},leave(C,N){const B=String(t.key);if(C[di]&&C[di](!0),r.isUnmounting)return N();S(m,[C]);let M=!1;C[cn]=I=>{M||(M=!0,N(),I?S(s,[C]):S(b,[C]),C[cn]=void 0,w[B]===t&&delete w[B])};const L=C[cn].bind(null,!1);
vendor: 24,334 bytes, lines 2-4
2w[B]=t,h?E(h,[C,L]):L()},clone(C){const N=Wr(C,e,r,i,u);return u&&u(N),N}};return T}function aa(t){if(is(t))return t=vn(t),t.children=null,t}function Nc(t){if(!is(t))return lf(t.type)&&t.children?uf(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&&_e(r.default))return r.default()}}function Hn(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Hn(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function _o(t,e=!1,r){let i=[],u=0;for(let f=0;f<t.length;f++){let d=t[f];const l=r==null?d.key:String(r)+String(d.key!=null?d.key:f);d.type===ie?(d.patchFlag&128&&u++,i=i.concat(_o(d.children,e,l))):(e||d.type!==Xe)&&i.push(l!=null?vn(d,{key:l}):d)}if(u>1)for(let f=0;f<i.length;f++)i[f].patchFlag=-2;return i}function rs(t,e){return _e(t)?Ae({name:t.name},e,{setup:t}):t}function tg(){const t=At();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function Sl(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function ng(t){const e=At(),r=bl(null);if(e){const u=e.refs===Me?e.refs={}:e.refs;Object.defineProperty(u,t,{enumerable:!0,get:()=>r.value,set:f=>r.value=f})}return r}function Rc(t,e){let r;return!!((r=Object.getOwnPropertyDescriptor(t,e))&&!r.configurable)}const Ps=new WeakMap;function Vr(t,e,r,i,u=!1){if(he(t)){t.forEach((s,c)=>Vr(s,e&&(he(e)?e[c]:e),r,i,u));return}if(Mn(i)&&!u){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Vr(t,e,r,i.component.subTree);return}const f=i.shapeFlag&4?ss(i.component):i.el,d=u?null:f,{i:l,r:o}=t,n=e&&e.r,p=l.refs===Me?l.refs={}:l.refs,a=l.setupState,m=Re(a),h=a===Me?or:s=>Rc(p,s)?!1:Le(m,s),b=(s,c)=>!(c&&Rc(p,c));if(n!=null&&n!==o){if(Ic(e),xe(n))p[n]=null,h(n)&&(a[n]=null);else if(Pe(n)){const s=e;b(n,s.k)&&(n.value=null),s.k&&(p[s.k]=null)}}if(_e(o))ri(o,l,12,[d,p]);else{const s=xe(o),c=Pe(o);if(s||c){const v=()=>{if(t.f){const g=s?h(o)?a[o]:p[o]:b()||!t.k?o.value:p[t.k];if(u)he(g)&&uo(g,f);else if(he(g))g.includes(f)||g.push(f);else if(s)p[o]=[f],h(o)&&(a[o]=p[o]);else{const y=[f];b(o,t.k)&&(o.value=y),t.k&&(p[t.k]=y)}}else s?(p[o]=d,h(o)&&(a[o]=d)):c&&(b(o,t.k)&&(o.value=d),t.k&&(p[t.k]=d))};if(d){const g=()=>{v(),Ps.delete(t)};g.id=-1,Ps.set(t,g),et(g,r)}else Ic(t),v()}}}function Ic(t){const e=Ps.get(t);e&&(e.flags|=8,Ps.delete(t))}let Oc=!1;const Nr=()=>{Oc||(console.error("Hydration completed but contains mismatches."),Oc=!0)},rg=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",ig=t=>t.namespaceURI.includes("MathML"),ws=t=>{if(t.nodeType===1){if(rg(t))return"svg";if(ig(t))return"mathml"}},Br=t=>t.nodeType===8;function sg(t){const{mt:e,p:r,o:{patchProp:i,createText:u,nextSibling:f,parentNode:d,remove:l,insert:o,createComment:n}}=t,p=(y,_)=>{if(!_.hasChildNodes()){r(null,y,_),Ws(),_._vnode=y;return}a(_.firstChild,y,null,null,null),Ws(),_._vnode=y},a=(y,_,w,S,E,T=!1)=>{T=T||!!_.dynamicChildren;const C=Br(y)&&y.data==="[",N=()=>s(y,_,w,S,E,C),{type:B,ref:M,shapeFlag:L,patchFlag:I}=_;let $=y.nodeType;_.el=y,I===-2&&(T=!1,_.dynamicChildren=null);let O=null;switch(B){case Jn:$!==3?_.children===""?(o(_.el=u(""),d(y),y),O=y):O=N():(y.data!==_.children&&(Nr(),y.data=_.children),O=f(y));break;case Xe:g(y)?(O=f(y),v(_.el=y.content.firstChild,y,w)):$!==8||C?O=N():O=f(y);break;case vr:if(C&&(y=f(y),$=y.nodeType),$===1||$===3){O=y;const H=!_.children.length;for(let D=0;D<_.staticCount;D++)H&&(_.children+=O.nodeType===1?O.outerHTML:O.data),D===_.staticCount-1&&(_.anchor=O),O=f(O);return C?f(O):O}else N();break;case ie:C?O=b(y,_,w,S,E,T):O=N();break;default:if(L&1)($!==1||_.type.toLowerCase()!==y.tagName.toLowerCase())&&!g(y)?O=N():O=m(y,_,w,S,E,T);else if(L&6){_.slotScopeIds=E;const H=d(y);if(C?O=c(y):Br(y)&&y.data==="teleport start"?O=c(y,y.data,"teleport end"):O=f(y),e(_,H,null,w,S,ws(H),T),Mn(_)&&!_.type.__asyncResolved){let D;C?(D=se(ie),D.anchor=O?O.previousSibling:H.lastChild):D=y.nodeType===3?Te(""):se("div"),D.el=y,_.component.subTree=D}}else L&64?$!==8?O=N():O=_.type.hydrate(y,_,w,S,E,T,t,h):L&128&&(O=_.type.hydrate(y,_,w,S,ws(d(y)),E,T,t,a))}return M!=null&&Vr(M,null,S,_),O},m=(y,_,w,S,E,T)=>{T=T||!!_.dynamicChildren;const{type:C,props:N,patchFlag:B,shapeFlag:M,dirs:L,transition:I}=_,$=C==="input"||C==="option";if($||B!==-1){L&&ln(_,null,w,"created");let O=!1;if(g(y)){O=Vf(null,I)&&w&&w.vnode.props&&w.vnode.props.appear;const D=y.content.firstChild;if(O){const R=D.getAttribute("class");R&&(D.$cls=R),I.beforeEnter(D)}v(D,y,w),_.el=y=D}if(M&16&&!(N&&(N.innerHTML||N.textContent))){let D=h(y.firstChild,_,y,w,S,E,T);for(;D;){xs(y,1)||Nr();const R=D;D=D.nextSibling,l(R)}}else if(M&8){let D=_.children;D[0]===` 3`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(D=D.slice(1));const{textContent:R}=y;R!==D&&R!==D.replace(/\r\n|\r/g,` 4`)&&(xs(y,0)||Nr(),y.textContent=_.children)}if(N){if($||!T||B&48){const D=y.tagName.includes("-");for(const R in N)($&&(R.endsWith("value")||R==="indeterminate")||Qn(R)&&!fn(R)||R[0]==="."||D&&!fn(R))&&i(y,R,null,N[R],void 0,w)}else if(N.onClick)i(y,"onClick",null,N.onClick,void 0,w);else if(B&4&&Kt(N.style))for(const D in N.style)N.style[D]}let H;(H=N&&N.onVnodeBeforeMount)&&Nt(H,w,_),L&&ln(_,null,w,"beforeMount"),((H=N&&N.onVnodeMounted)||L||O)&&$f(()=>{H&&Nt(H,w,_),O&&I.enter(y),L&&ln(_,null,w,"mounted")},S)}return y.nextSibling},h=(y,_,w,S,E,T,C)=>{C=C||!!_.dynamicChildren;const N=_.children,B=N.length;for(let M=0;M<B;M++){const L=C?N[M]:N[M]=Rt(N[M]),I=L.type===Jn;y?(I&&!C&&M+1<B&&Rt(N[M+1]).type===Jn&&(o(u(y.data.slice(L.children.length)),w,f(y)),y.data=L.children),y=a(y,L,S,E,T,C)):I&&!L.children?o(L.el=u(""),w):(xs(w,1)||Nr(),r(null,L,w,null,S,E,ws(w),T))}return y},b=(y,_,w,S,E,T)=>{const{slotScopeIds:C}=_;C&&(E=E?E.concat(C):C);const N=d(y),B=h(f(y),_,N,w,S,E,T);return B&&Br(B)&&B.data==="]"?f(_.anchor=B):(Nr(),o(_.anchor=n("]"),N,B),B)},s=(y,_,w,S,E,T)=>{if(xs(y.parentElement,1)||Nr(),_.el=null,T){const B=c(y);for(;;){const M=f(y);if(M&&M!==B)l(M);else break}}const C=f(y),N=d(y);return l(y),r(null,_,N,C,w,S,ws(N),E),w&&(w.vnode.el=_.el,To(w,_.el)),C},c=(y,_="[",w="]")=>{let S=0;for(;y;)if(y=f(y),y&&Br(y)&&(y.data===_&&S++,y.data===w)){if(S===0)return f(y);S--}return y},v=(y,_,w)=>{const S=_.parentNode;S&&S.replaceChild(y,_);let E=w;for(;E;)E.vnode.el===_&&(E.vnode.el=E.subTree.el=y),E=E.parent},g=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[p,a]}const Hc="data-allow-mismatch",og={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function xs(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(Hc);)t=t.parentElement;const r=t&&t.getAttribute(Hc);if(r==null)return!1;if(r==="")return!0;{const i=r.split(",");return e===0&&i.includes("children")?!0:i.includes(og[e])}}const ag=Qi().requestIdleCallback||(t=>setTimeout(t,1)),lg=Qi().cancelIdleCallback||(t=>clearTimeout(t)),cg=(t=1e4)=>e=>{const r=ag(e,{timeout:t});return()=>lg(r)};function ug(t){const{top:e,left:r,bottom:i,right:u}=t.getBoundingClientRect(),{innerHeight:f,innerWidth:d}=window;return(e>0&&e<f||i>0&&i<f)&&(r>0&&r<d||u>0&&u<d)}const dg=t=>(e,r)=>{const i=new IntersectionObserver(u=>{for(const f of u)if(f.isIntersecting){i.disconnect(),e();break}},t);return r(u=>{if(u instanceof Element){if(ug(u))return e(),i.disconnect(),!1;i.observe(u)}}),()=>i.disconnect()},fg=t=>e=>{if(t){const r=matchMedia(t);if(r.matches)e();else return r.addEventListener("change",e,{once:!0}),()=>r.removeEventListener("change",e)}},hg=(t=[])=>(e,r)=>{xe(t)&&(t=[t]);let i=!1;const u=d=>{i||(i=!0,f(),e(),d.target.dispatchEvent(new d.constructor(d.type,d)))},f=()=>{r(d=>{for(const l of t)d.removeEventListener(l,u)})};return r(d=>{for(const l of t)d.addEventListener(l,u,{once:!0})}),f};function pg(t,e){if(Br(t)&&t.data==="["){let r=1,i=t.nextSibling;for(;i;){if(i.nodeType===1){if(e(i)===!1)break}else if(Br(i))if(i.data==="]"){if(--r===0)break}else i.data==="["&&r++;i=i.nextSibling}}else e(t)}const Mn=t=>!!t.type.__asyncLoader;function mg(t){_e(t)&&(t={loader:t});const{loader:e,loadingComponent:r,errorComponent:i,delay:u=200,hydrate:f,timeout:d,suspensible:l=!0,onError:o}=t;let n=null,p,a=0;const m=()=>(a++,n=null,h()),h=()=>{let b;return n||(b=n=e().catch(s=>{if(s=s instanceof Error?s:new Error(String(s)),o)return new Promise((c,v)=>{o(s,()=>c(m()),()=>v(s),a+1)});throw s}).then(s=>b!==n&&n?n:(s&&(s.__esModule||s[Symbol.toStringTag]==="Module")&&(s=s.default),p=s,s)))};return rs({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(b,s,c){let v=!1;(s.bu||(s.bu=[])).push(()=>v=!0);const g=()=>{v||c()},y=f?()=>{const _=f(g,w=>pg(b,w));_&&(s.bum||(s.bum=[])).push(_)}:g;p?y():h().then(()=>!s.isUnmounted&&y())},get __asyncResolved(){return p},setup(){const b=ht;if(Sl(b),p)return()=>Ss(p,b);const s=y=>{n=null,kr(y,b,13,!i)};if(l&&b.suspense||_r)return h().then(y=>()=>Ss(y,b)).catch(y=>(s(y),()=>i?se(i,{error:y}):null));const c=K(!1),v=K(),g=K(!!u);return u&&setTimeout(()=>{g.value=!1},u),d!=null&&setTimeout(()=>{if(!c.value&&!v.value){const y=new Error(`Async component timed out after ${d}ms.`);s(y),v.value=y}},d),h().then(()=>{c.value=!0,b.parent&&is(b.parent.vnode)&&b.parent.update()}).catch(y=>{s(y),v.value=y}),()=>{if(c.value&&p)return Ss(p,b);if(v.value&&i)return se(i,{error:v.value});if(r&&!g.value)return Ss(r,b)}}})}function Ss(t,e){const{ref:r,props:i,children:u,ce:f}=e.vnode,d=se(t,i,u);return d.ref=r,d.ce=f,delete e.vnode.ce,d}const is=t=>t.type.__isKeepAlive,vg={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=At(),i=r.ctx;if(!i.renderer)return()=>{const g=e.default&&e.default();return g&&g.length===1?g[0]:g};const u=new Map,f=new Set;let d=null;const l=r.suspense,{renderer:{p:o,m:n,um:p,o:{createElement:a}}}=i,m=a("div");i.activate=(g,y,_,w,S)=>{const E=g.component;n(g,y,_,0,l),o(E.vnode,g,y,_,E,l,w,g.slotScopeIds,S),et(()=>{E.isDeactivated=!1,E.a&&hr(E.a);const T=g.props&&g.props.onVnodeMounted;T&&Nt(T,E.parent,g)},l)},i.deactivate=g=>{const y=g.component;Zs(y.m),Zs(y.a),n(g,m,null,1,l),et(()=>{y.da&&hr(y.da);const _=g.props&&g.props.onVnodeUnmounted;_&&Nt(_,y.parent,g),y.isDeactivated=!0},l)};function h(g){la(g),p(g,r,l,!0)}function b(g){u.forEach((y,_)=>{const w=ja(Mn(y)?y.type.__asyncResolved||{}:y.type);w&&!g(w)&&s(_)})}function s(g){const y=u.get(g);y&&(!d||!Xt(y,d))?h(y):d&&la(d),u.delete(g),f.delete(g)}Lt(()=>[t.include,t.exclude],([g,y])=>{g&&b(_=>yi(g,_)),y&&b(_=>!yi(y,_))},{flush:"post",deep:!0});let c=null;const v=()=>{c!=null&&(qs(r.subTree.type)?et(()=>{u.set(c,Cs(r.subTree))},r.subTree.suspense):u.set(c,Cs(r.subTree)))};return qe(v),xo(v),So(()=>{u.forEach(g=>{const{subTree:y,suspense:_}=r,w=Cs(y);if(g.type===w.type&&g.key===w.key){la(w);const S=w.component.da;S&&et(S,_);return}h(g)})}),()=>{if(c=null,!e.default)return d=null;const g=e.default(),y=g[0];if(g.length>1)return d=null,g;if(!Ln(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return d=null,y;let _=Cs(y);if(_.type===Xe)return d=null,_;const w=_.type,S=ja(Mn(_)?_.type.__asyncResolved||{}:w),{include:E,exclude:T,max:C}=t;if(E&&(!S||!yi(E,S))||T&&S&&yi(T,S))return _.shapeFlag&=-257,d=_,y;const N=_.key==null?w:_.key,B=u.get(N);return _.el&&(_=vn(_),y.shapeFlag&128&&(y.ssContent=_)),c=N,B?(_.el=B.el,_.component=B.component,_.transition&&Hn(_,_.transition),_.shapeFlag|=512,f.delete(N),f.add(N)):(f.add(N),C&&f.size>parseInt(C,10)&&s(f.values().next().value)),_.shapeFlag|=256,d=_,qs(y.type)?y:_}}},gg=vg;function yi(t,e){return he(t)?t.some(r=>yi(r,e)):xe(t)?t.split(",").includes(e):pd(t)?(t.lastIndex=0,t.test(e)):!1}function hf(t,e){mf(t,"a",e)}function pf(t,e){mf(t,"da",e)}function mf(t,e,r=ht){const i=t.__wdc||(t.__wdc=()=>{let u=r;for(;u;){if(u.isDeactivated)return;u=u.parent}return t()});if(wo(e,i,r),r){let u=r.parent;for(;u&&u.parent;)is(u.parent.vnode)&&bg(i,e,r,u),u=u.parent}}function bg(t,e,r,i){const u=wo(e,t,i,!0);Co(()=>{uo(i[e],u)},r)}function la(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Cs(t){return t.shapeFlag&128?t.ssContent:t}function wo(t,e,r=ht,i=!1){if(r){const u=r[t]||(r[t]=[]),f=e.__weh||(e.__weh=(...d)=>{In();const l=si(r),o=Zt(e,r,t,d);return l(),On(),o});return i?u.unshift(f):u.push(f),f}}const Un=t=>(e,r=ht)=>{(!_r||t==="sp")&&wo(t,(...i)=>e(...i),r)},vf=Un("bm"),qe=Un("m"),Cl=Un("bu"),xo=Un("u"),So=Un("bum"),Co=Un("um"),gf=Un("sp"),bf=Un("rtg"),yf=Un("rtc");function _f(t,e=ht){wo("ec",t,e)}const El="components",yg="directives";function ct(t,e){return Tl(El,t,!0,e)||t}const wf=Symbol.for("v-ndc");function _g(t){return xe(t)?Tl(El,t,!1)||t:t||wf}function wg(t){return Tl(yg,t)}function Tl(t,e,r=!0,i=!1){const u=pt||ht;if(u){const f=u.type;if(t===El){const l=ja(f,!1);if(l&&(l===e||l===Ve(e)||l===tr(Ve(e))))return f}const d=Lc(u[t]||f[t],e)||Lc(u.appContext[t],e);return!d&&i?f:d}}function Lc(t,e){return t&&(t[e]||t[Ve(e)]||t[tr(Ve(e))])}function ve(t,e,r,i){let u;const f=r&&r[i],d=he(t);if(d||xe(t)){const l=d&&Kt(t);let o=!1,n=!1;l&&(o=!Ot(t),n=mn(t),t=mo(t)),u=new Array(t.length);for(let p=0,a=t.length;p<a;p++)u[p]=e(o?n?$r(Qt(t[p])):Qt(t[p]):t[p],p,void 0,f&&f[p])}else if(typeof t=="number"){u=new Array(t);for(let l=0;l<t;l++)u[l]=e(l+1,l,void 0,f&&f[l])}else if(He(t))if(t[Symbol.iterator])u=Array.from(t,(l,o)=>e(l,o,void 0,f&&f[o]));else{const l=Object.keys(t);u=new Array(l.length);for(let o=0,n=l.length;o<n;o++){const p=l[o];u[o]=e(t[p],p,o,f&&f[o])}}else u=[];return r&&(r[i]=u),u}function xg(t,e){for(let r=0;r<e.length;r++){const i=e[r];if(he(i))for(let u=0;u<i.length;u++)t[i[u].name]=i[u].fn;else i&&(t[i.name]=i.key?(...u)=>{const f=i.fn(...u);return f&&(f.key=i.key),f}:i.fn)}return t}function Sg(t,e,r={},i,u){if(pt.ce||pt.parent&&Mn(pt.parent)&&pt.parent.ce){const n=Object.keys(r).length>0;return e!=="default"&&(r.name=e),F(),Js(ie,null,[se("slot",r,i&&i())],n?-2:64)}let f=t[e];f&&f._c&&(f._d=!1),F();const d=f&&kl(f(r)),l=r.key||d&&d.key,o=Js(ie,{key:(l&&!mt(l)?l:`_${e}`)+(!d&&i?"_fb":"")},d||(i?i():[]),d&&t._===1?64:-2);return!u&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),f&&f._c&&(f._d=!0),o}function kl(t){return t.some(e=>Ln(e)?!(e.type===Xe||e.type===ie&&!kl(e.children)):!0)?t:null}function Cg(t,e){const r={};for(const i in t)r[e&&/[A-Z]/.test(i)?`on:${i}`:fr(i)]=t[i];return r}const Oa=t=>t?Xf(t)?ss(t):Oa(t.parent):null,Ti=Ae(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Oa(t.parent),$root:t=>Oa(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Al(t),$forceUpdate:t=>t.f||(t.f=()=>{_l(t.update)}),$nextTick:t=>t.n||(t.n=ii.bind(t.proxy)),$watch:t=>Jv.bind(t)}),ca=(t,e)=>t!==Me&&!t.__isScriptSetup&&Le(t,e),Ha={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:i,data:u,props:f,accessCache:d,type:l,appContext:o}=t;if(e[0]!=="$"){const m=d[e];if(m!==void 0)switch(m){case 1:return i[e];case 2:return u[e];case 4:return r[e];case 3:return f[e]}else{if(ca(i,e))return d[e]=1,i[e];if(u!==Me&&Le(u,e))return d[e]=2,u[e];if(Le(f,e))return d[e]=3,f[e];if(r!==Me&&Le(r,e))return d[e]=4,r[e];La&&(d[e]=0)}}const n=Ti[e];let p,a;if(n)return e==="$attrs"&&bt(t.attrs,"get",""),n(t);if((p=l.__cssModules)&&(p=p[e]))return p;if(r!==Me&&Le(r,e))return d[e]=4,r[e];if(a=o.config.globalProperties,Le(a,e))return a[e]},set({_:t},e,r){const{data:i,setupState:u,ctx:f}=t;return ca(u,e)?(u[e]=r,!0):i!==Me&&Le(i,e)?(i[e]=r,!0):Le(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(f[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:i,appContext:u,props:f,type:d}},l){let o;return!!(r[l]||t!==Me&&l[0]!=="$"&&Le(t,l)||ca(e,l)||Le(f,l)||Le(i,l)||Le(Ti,l)||Le(u.config.globalProperties,l)||(o=d.__cssModules)&&o[l])},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Le(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}},Eg=Ae({},Ha,{get(t,e){if(e!==Symbol.unscopables)return Ha.get(t,e,t)},has(t,e){return e[0]!=="_"&&!ll(e)}});function Tg(){return null}function kg(){return null}function Ag(t){}function Mg(t){}function Ng(){return null}function Rg(){}function Ig(t,e){return null}function Og(){return xf().slots}function Hg(){return xf().attrs}function xf(t){const e=At();return e.setupContext||(e.setupContext=Qf(e))}function Di(t){return he(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function Lg(t,e){const r=Di(t);for(const i in e){if(i.startsWith("__skip"))continue;let u=r[i];u?he(u)||_e(u)?u=r[i]={type:u,default:e[i]}:u.default=e[i]:u===null&&(u=r[i]={default:e[i]}),u&&e[`__skip_${i}`]&&(u.skipFactory=!0)}return r}function Ug(t,e){return!t||!e?t||e:he(t)&&he(e)?t.concat(e):Ae({},Di(t),Di(e))}function Bg(t,e){const r={};for(const i in t)e.includes(i)||Object.defineProperty(r,i,{enumerable:!0,get:()=>t[i]});return r}function Dg(t){const e=At(),r=_r;let i=t();ji(),r&&jr(!1);const u=()=>{si(e),r&&jr(!0)},f=()=>{At()!==e&&e.scope.off(),ji(),r&&jr(!1)};return fo(i)&&(i=i.catch(d=>{throw u(),Promise.resolve().then(()=>Promise.resolve().then(f)),d})),[i,()=>{u(),Promise.resolve().then(f)}]}let La=!0;function Vg(t){const e=Al(t),r=t.proxy,i=t.ctx;La=!1,e.beforeCreate&&Uc(e.beforeCreate,t,"bc");const{data:u,computed:f,methods:d,watch:l,provide:o,inject:n,created:p,beforeMount:a,mounted:m,beforeUpdate:h,updated:b,activated:s,deactivated:c,beforeDestroy:v,beforeUnmount:g,destroyed:y,unmounted:_,render:w,renderTracked:S,renderTriggered:E,errorCaptured:T,serverPrefetch:C,expose:N,inheritAttrs:B,components:M,directives:L,filters:I}=e;if(n&&Fg(n,i,null),d)for(const H in d){const D=d[H];_e(D)&&(i[H]=D.bind(r))}if(u){const H=u.call(r,r);He(H)&&(t.data=bn(H))}if(La=!0,f)for(const H in f){const D=f[H],R=_e(D)?D.bind(r,r):_e(D.get)?D.get.bind(r,r):lt,z=!_e(D)&&_e(D.set)?D.set.bind(r):lt,A=we({get:R,set:z});Object.defineProperty(i,H,{enumerable:!0,configurable:!0,get:()=>A.value,set:X=>A.value=X})}if(l)for(const H in l)Sf(l[H],i,r,H);if(o){const H=_e(o)?o.call(r):o;Reflect.ownKeys(H).forEach(D=>{Ei(D,H[D])})}p&&Uc(p,t,"c");function O(H,D){he(D)?D.forEach(R=>H(R.bind(r))):D&&H(D.bind(r))}if(O(vf,a),O(qe,m),O(Cl,h),O(xo,b),O(hf,s),O(pf,c),O(_f,T),O(yf,S),O(bf,E),O(So,g),O(Co,_),O(gf,C),he(N))if(N.length){const H=t.exposed||(t.exposed={});N.forEach(D=>{Object.defineProperty(H,D,{get:()=>r[D],set:R=>r[D]=R,enumerable:!0})})}else t.exposed||(t.exposed={});w&&t.render===lt&&(t.render=w),B!=null&&(t.inheritAttrs=B),M&&(t.components=M),L&&(t.directives=L),C&&Sl(t)}function Fg(t,e,r=lt){he(t)&&(t=Ua(t));for(const i in t){const u=t[i];let f;He(u)?"default"in u?f=Wt(u.from||i,u.default,!0):f=Wt(u.from||i):f=Wt(u),Pe(f)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>f.value,set:d=>f.value=d}):e[i]=f}}function Uc(t,e,r){Zt(he(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,r)}function Sf(t,e,r,i){let u=i.includes(".")?of(r,i):()=>r[i];if(xe(t)){const f=e[t];_e(f)&&Lt(u,f)}else if(_e(t))Lt(u,t.bind(r));else if(He(t))if(he(t))t.forEach(f=>Sf(f,e,r,i));else{const f=_e(t.handler)?t.handler.bind(r):e[t.handler];_e(f)&&Lt(u,f,t)}}function Al(t){const e=t.type,{mixins:r,extends:i}=e,{mixins:u,optionsCache:f,config:{optionMergeStrategies:d}}=t.appContext,l=f.get(e);let o;return l?o=l:!u.length&&!r&&!i?o=e:(o={},u.length&&u.forEach(n=>Gs(o,n,d,!0)),Gs(o,e,d)),He(e)&&f.set(e,o),o}function Gs(t,e,r,i=!1){const{mixins:u,extends:f}=e;f&&Gs(t,f,r,!0),u&&u.forEach(d=>Gs(t,d,r,!0));for(const d in e)if(!(i&&d==="expose")){const l=jg[d]||r&&r[d];t[d]=l?l(t[d],e[d]):e[d]}return t}const jg={data:Bc,props:Dc,emits:Dc,methods:_i,computed:_i,beforeCreate:St,created:St,beforeMount:St,mounted:St,beforeUpdate:St,updated:St,beforeDestroy:St,beforeUnmount:St,destroyed:St,unmounted:St,activated:St,deactivated:St,errorCaptured:St,serverPrefetch:St,components:_i,directives:_i,watch:$g,provide:Bc,inject:zg};function Bc(t,e){return e?t?function(){return Ae(_e(t)?t.call(this,this):t,_e(e)?e.call(this,this):e)}:e:t}function zg(t,e){return _i(Ua(t),Ua(e))}function Ua(t){if(he(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function St(t,e){return t?[...new Set([].concat(t,e))]:e}function _i(t,e){return t?Ae(Object.create(null),t,e):e}function Dc(t,e){return t?he(t)&&he(e)?[...new Set([...t,...e])]:Ae(Object.create(null),Di(t),Di(e??{})):e}function $g(t,e){if(!t)return e;if(!e)return t;const r=Ae(Object.create(null),t);for(const i in e)r[i]=St(t[i],e[i]);return r}function Cf(){return{app:null,config:{isNativeTag:or,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 Wg=0;function Pg(t,e){return function(i,u=null){_e(i)||(i=Ae({},i)),u!=null&&!He(u)&&(u=null);const f=Cf(),d=new WeakSet,l=[];let o=!1;const n=f.app={_uid:Wg++,_component:i,_props:u,_container:null,_context:f,_instance:null,version:th,get config(){return f.config},set config(p){},use(p,...a){return d.has(p)||(p&&_e(p.install)?(d.add(p),p.install(n,...a)):_e(p)&&(d.add(p),p(n,...a))),n},mixin(p){return f.mixins.includes(p)||f.mixins.push(p),n},component(p,a){return a?(f.components[p]=a,n):f.components[p]},directive(p,a){return a?(f.directives[p]=a,n):f.directives[p]},mount(p,a,m){if(!o){const h=n._ceVNode||se(i,u);return h.appContext=f,m===!0?m="svg":m===!1&&(m=void 0),a&&e?e(h,p):t(h,p,m),o=!0,n._container=p,p.__vue_app__=n,ss(h.component)}},onUnmount(p){l.push(p)},unmount(){o&&(Zt(l,n._instance,16),t(null,n._container),delete n._container.__vue_app__)},provide(p,a){return f.provides[p]=a,n},runWithContext(p){const a=mr;mr=n;try{return p()}finally{mr=a}}};return n}}let mr=null;function Gg(t,e,r=Me){const i=At(),u=Ve(e),f=yt(e),d=Ef(t,u),l=Gd((o,n)=>{let p,a=Me,m;return sf(()=>{const h=t[u];at(p,h)&&(p=h,n())}),{get(){return o(),r.get?r.get(p):p},set(h){const b=r.set?r.set(h):h;if(!at(b,p)&&!(a!==Me&&at(h,a)))return;const s=i.vnode.props;s&&(e in s||u in s||f in s)&&(`onUpdate:${e}`in s||`onUpdate:${u}`in s||`onUpdate:${f}`in s)||(p=h,n()),i.emit(`update:${e}`,b),at(h,b)&&at(h,a)&&!at(b,m)&&n(),a=h,m=b}}});return l[Symbol.iterator]=()=>{let o=0;return{next(){return o<2?{value:o++?d||Me:l,done:!1}:{done:!0}}}},l}const Ef=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Ve(e)}Modifiers`]||t[`${yt(e)}Modifiers`];function Zg(t,e,...r){if(t.isUnmounted)return;const i=t.vnode.props||Me;let u=r;const f=e.startsWith("update:"),d=f&&Ef(i,e.slice(7));d&&(d.trim&&(u=r.map(p=>xe(p)?p.trim():p)),d.number&&(u=r.map(Ki)));let l,o=i[l=fr(e)]||i[l=fr(Ve(e))];!o&&f&&(o=i[l=fr(yt(e))]),o&&Zt(o,t,6,u);const n=i[l+"Once"];if(n){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,Zt(n,t,6,u)}}const qg=new WeakMap;function Tf(t,e,r=!1){const i=r?qg:e.emitsCache,u=i.get(t);if(u!==void 0)return u;const f=t.emits;let d={},l=!1;if(!_e(t)){const o=n=>{const p=Tf(n,e,!0);p&&(l=!0,Ae(d,p))};!r&&e.mixins.length&&e.mixins.forEach(o),t.extends&&o(t.extends),t.mixins&&t.mixins.forEach(o)}return!f&&!l?(He(t)&&i.set(t,null),null):(he(f)?f.forEach(o=>d[o]=null):Ae(d,f),He(t)&&i.set(t,d),d)}function Eo(t,e){return!t||!Qn(e)?!1:(e=e.slice(2).replace(/Once$/,""),Le(t,e[0].toLowerCase()+e.slice(1))||Le(t,yt(e))||Le(t,e))}function Ms(t){const{type:e,vnode:r,proxy:i,withProxy:u,propsOptions:[f],slots:d,attrs:l,emit:o,render:n,renderCache:p,props:a,data:m,setupState:h,ctx:b,inheritAttrs:s}=t,c=Bi(t);let v,g;try{if(r.shapeFlag&4){const _=u||i,w=_;v=Rt(n.call(w,_,p,a,h,m,b)),g=l}else{const _=e;v=Rt(_.length>1?_(a,{attrs:l,slots:d,emit:o}):_(a,null)),g=e.props?l:Xg(l)}}catch(_){ki.length=0,kr(_,t,1),v=se(Xe)}let y=v;if(g&&s!==!1){const _=Object.keys(g),{shapeFlag:w}=y;_.length&&w&7&&(f&&_.some(Ji)&&(g=Yg(g,f)),y=vn(y,g,!1,!0))}return r.dirs&&(y=vn(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&Hn(y,r.transition),v=y,Bi(c),v}function Jg(t,e=!0){let r;for(let i=0;i<t.length;i++){const u=t[i];if(Ln(u)){if(u.type!==Xe||u.children==="v-if"){if(r)return;r=u}}else return}return r}const Xg=t=>{let e;for(const r in t)(r==="class"||r==="style"||Qn(r))&&((e||(e={}))[r]=t[r]);return e},Yg=(t,e)=>{const r={};for(const i in t)(!Ji(i)||!(i.slice(9)in e))&&(r[i]=t[i]);return r};function Kg(t,e,r){const{props:i,children:u,component:f}=t,{props:d,children:l,patchFlag:o}=e,n=f.emitsOptions;if(e.dirs||e.transition)return!0;
vendor: 19,003 bytes, line 4
4if(r&&o>=0){if(o&1024)return!0;if(o&16)return i?Vc(i,d,n):!!d;if(o&8){const p=e.dynamicProps;for(let a=0;a<p.length;a++){const m=p[a];if(kf(d,i,m)&&!Eo(n,m))return!0}}}else return(u||l)&&(!l||!l.$stable)?!0:i===d?!1:i?d?Vc(i,d,n):!0:!!d;return!1}function Vc(t,e,r){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let u=0;u<i.length;u++){const f=i[u];if(kf(e,t,f)&&!Eo(r,f))return!0}return!1}function kf(t,e,r){const i=t[r],u=e[r];return r==="style"&&He(i)&&He(u)?!pn(i,u):i!==u}function To({vnode:t,parent:e,suspense:r},i){for(;e;){const u=e.subTree;if(u.suspense&&u.suspense.activeBranch===t&&(u.suspense.vnode.el=u.el=i,t=u),u===t)(t=e.vnode).el=i,e=e.parent;else break}r&&r.activeBranch===t&&(r.vnode.el=i)}const Af={},Mf=()=>Object.create(Af),Nf=t=>Object.getPrototypeOf(t)===Af;function Qg(t,e,r,i=!1){const u={},f=Mf();t.propsDefaults=Object.create(null),Rf(t,e,u,f);for(const d in t.propsOptions[0])d in u||(u[d]=void 0);r?t.props=i?u:gl(u):t.type.props?t.props=u:t.props=f,t.attrs=f}function eb(t,e,r,i){const{props:u,attrs:f,vnode:{patchFlag:d}}=t,l=Re(u),[o]=t.propsOptions;let n=!1;if((i||d>0)&&!(d&16)){if(d&8){const p=t.vnode.dynamicProps;for(let a=0;a<p.length;a++){let m=p[a];if(Eo(t.emitsOptions,m))continue;const h=e[m];if(o)if(Le(f,m))h!==f[m]&&(f[m]=h,n=!0);else{const b=Ve(m);u[b]=Ba(o,l,b,h,t,!1)}else h!==f[m]&&(f[m]=h,n=!0)}}}else{Rf(t,e,u,f)&&(n=!0);let p;for(const a in l)(!e||!Le(e,a)&&((p=yt(a))===a||!Le(e,p)))&&(o?r&&(r[a]!==void 0||r[p]!==void 0)&&(u[a]=Ba(o,l,a,void 0,t,!0)):delete u[a]);if(f!==l)for(const a in f)(!e||!Le(e,a))&&(delete f[a],n=!0)}n&&Tn(t.attrs,"set","")}function Rf(t,e,r,i){const[u,f]=t.propsOptions;let d=!1,l;if(e)for(let o in e){if(fn(o))continue;const n=e[o];let p;u&&Le(u,p=Ve(o))?!f||!f.includes(p)?r[p]=n:(l||(l={}))[p]=n:Eo(t.emitsOptions,o)||(!(o in i)||n!==i[o])&&(i[o]=n,d=!0)}if(f){const o=Re(r),n=l||Me;for(let p=0;p<f.length;p++){const a=f[p];r[a]=Ba(u,o,a,n[a],t,!Le(n,a))}}return d}function Ba(t,e,r,i,u,f){const d=t[r];if(d!=null){const l=Le(d,"default");if(l&&i===void 0){const o=d.default;if(d.type!==Function&&!d.skipFactory&&_e(o)){const{propsDefaults:n}=u;if(r in n)i=n[r];else{const p=si(u);i=n[r]=o.call(null,e),p()}}else i=o;u.ce&&u.ce._setProp(r,i)}d[0]&&(f&&!l?i=!1:d[1]&&(i===""||i===yt(r))&&(i=!0))}return i}const tb=new WeakMap;function If(t,e,r=!1){const i=r?tb:e.propsCache,u=i.get(t);if(u)return u;const f=t.props,d={},l=[];let o=!1;if(!_e(t)){const p=a=>{o=!0;const[m,h]=If(a,e,!0);Ae(d,m),h&&l.push(...h)};!r&&e.mixins.length&&e.mixins.forEach(p),t.extends&&p(t.extends),t.mixins&&t.mixins.forEach(p)}if(!f&&!o)return He(t)&&i.set(t,ur),ur;if(he(f))for(let p=0;p<f.length;p++){const a=Ve(f[p]);Fc(a)&&(d[a]=Me)}else if(f)for(const p in f){const a=Ve(p);if(Fc(a)){const m=f[p],h=d[a]=he(m)||_e(m)?{type:m}:Ae({},m),b=h.type;let s=!1,c=!0;if(he(b))for(let v=0;v<b.length;++v){const g=b[v],y=_e(g)&&g.name;if(y==="Boolean"){s=!0;break}else y==="String"&&(c=!1)}else s=_e(b)&&b.name==="Boolean";h[0]=s,h[1]=c,(s||Le(h,"default"))&&l.push(a)}}const n=[d,l];return He(t)&&i.set(t,n),n}function Fc(t){return t[0]!=="$"&&!fn(t)}const Ml=t=>t==="_"||t==="_ctx"||t==="$stable",Nl=t=>he(t)?t.map(Rt):[Rt(t)],nb=(t,e,r)=>{if(e._n)return e;const i=Ce((...u)=>Nl(e(...u)),r);return i._c=!1,i},Of=(t,e,r)=>{const i=t._ctx;for(const u in t){if(Ml(u))continue;const f=t[u];if(_e(f))e[u]=nb(u,f,i);else if(f!=null){const d=Nl(f);e[u]=()=>d}}},Hf=(t,e)=>{const r=Nl(e);t.slots.default=()=>r},Lf=(t,e,r)=>{for(const i in e)(r||!Ml(i))&&(t[i]=e[i])},rb=(t,e,r)=>{const i=t.slots=Mf();if(t.vnode.shapeFlag&32){const u=e._;u?(Lf(i,e,r),r&&al(i,"_",u,!0)):Of(e,i)}else e&&Hf(t,e)},ib=(t,e,r)=>{const{vnode:i,slots:u}=t;let f=!0,d=Me;if(i.shapeFlag&32){const l=e._;l?r&&l===1?f=!1:Lf(u,e,r):(f=!e.$stable,Of(e,u)),d=e}else e&&(Hf(t,e),d={default:1});if(f)for(const l in u)!Ml(l)&&d[l]==null&&delete u[l]},et=$f;function Uf(t){return Df(t)}function Bf(t){return Df(t,sg)}function Df(t,e){const r=Qi();r.__VUE__=!0;const{insert:i,remove:u,patchProp:f,createElement:d,createText:l,createComment:o,setText:n,setElementText:p,parentNode:a,nextSibling:m,setScopeId:h=lt,insertStaticContent:b}=t,s=(k,U,P,ne=null,Q=null,ee=null,ae=void 0,oe=null,le=!!U.dynamicChildren)=>{if(k===U)return;k&&!Xt(k,U)&&(ne=q(k),X(k,Q,ee,!0),k=null),U.patchFlag===-2&&(le=!1,U.dynamicChildren=null);const{type:te,ref:me,shapeFlag:de}=U;switch(te){case Jn:c(k,U,P,ne);break;case Xe:v(k,U,P,ne);break;case vr:k==null&&g(U,P,ne,ae);break;case ie:M(k,U,P,ne,Q,ee,ae,oe,le);break;default:de&1?w(k,U,P,ne,Q,ee,ae,oe,le):de&6?L(k,U,P,ne,Q,ee,ae,oe,le):(de&64||de&128)&&te.process(k,U,P,ne,Q,ee,ae,oe,le,W)}me!=null&&Q?Vr(me,k&&k.ref,ee,U||k,!U):me==null&&k&&k.ref!=null&&Vr(k.ref,null,ee,k,!0)},c=(k,U,P,ne)=>{if(k==null)i(U.el=l(U.children),P,ne);else{const Q=U.el=k.el;U.children!==k.children&&n(Q,U.children)}},v=(k,U,P,ne)=>{k==null?i(U.el=o(U.children||""),P,ne):U.el=k.el},g=(k,U,P,ne)=>{[k.el,k.anchor]=b(k.children,U,P,ne,k.el,k.anchor)},y=({el:k,anchor:U},P,ne)=>{let Q;for(;k&&k!==U;)Q=m(k),i(k,P,ne),k=Q;i(U,P,ne)},_=({el:k,anchor:U})=>{let P;for(;k&&k!==U;)P=m(k),u(k),k=P;u(U)},w=(k,U,P,ne,Q,ee,ae,oe,le)=>{if(U.type==="svg"?ae="svg":U.type==="math"&&(ae="mathml"),k==null)S(U,P,ne,Q,ee,ae,oe,le);else{const te=k.el&&k.el._isVueCE?k.el:null;try{te&&te._beginPatch(),C(k,U,Q,ee,ae,oe,le)}finally{te&&te._endPatch()}}},S=(k,U,P,ne,Q,ee,ae,oe)=>{let le,te;const{props:me,shapeFlag:de,transition:ge,dirs:Se}=k;if(le=k.el=d(k.type,ee,me&&me.is,me),de&8?p(le,k.children):de&16&&T(k.children,le,null,ne,Q,ua(k,ee),ae,oe),Se&&ln(k,null,ne,"created"),E(le,k,k.scopeId,ae,ne),me){for(const Fe in me)Fe!=="value"&&!fn(Fe)&&f(le,Fe,null,me[Fe],ee,ne);"value"in me&&f(le,"value",null,me.value,ee),(te=me.onVnodeBeforeMount)&&Nt(te,ne,k)}Se&&ln(k,null,ne,"beforeMount");const Oe=Vf(Q,ge);Oe&&ge.beforeEnter(le),i(le,U,P),((te=me&&me.onVnodeMounted)||Oe||Se)&&et(()=>{te&&Nt(te,ne,k),Oe&&ge.enter(le),Se&&ln(k,null,ne,"mounted")},Q)},E=(k,U,P,ne,Q)=>{if(P&&h(k,P),ne)for(let ee=0;ee<ne.length;ee++)h(k,ne[ee]);if(Q){let ee=Q.subTree;if(U===ee||qs(ee.type)&&(ee.ssContent===U||ee.ssFallback===U)){const ae=Q.vnode;E(k,ae,ae.scopeId,ae.slotScopeIds,Q.parent)}}},T=(k,U,P,ne,Q,ee,ae,oe,le=0)=>{for(let te=le;te<k.length;te++){const me=k[te]=oe?En(k[te]):Rt(k[te]);s(null,me,U,P,ne,Q,ee,ae,oe)}},C=(k,U,P,ne,Q,ee,ae)=>{const oe=U.el=k.el;let{patchFlag:le,dynamicChildren:te,dirs:me}=U;le|=k.patchFlag&16;const de=k.props||Me,ge=U.props||Me;let Se;if(P&&nr(P,!1),(Se=ge.onVnodeBeforeUpdate)&&Nt(Se,P,U,k),me&&ln(U,k,P,"beforeUpdate"),P&&nr(P,!0),(de.innerHTML&&ge.innerHTML==null||de.textContent&&ge.textContent==null)&&p(oe,""),te?N(k.dynamicChildren,te,oe,P,ne,ua(U,Q),ee):ae||D(k,U,oe,null,P,ne,ua(U,Q),ee,!1),le>0){if(le&16)B(oe,de,ge,P,Q);else if(le&2&&de.class!==ge.class&&f(oe,"class",null,ge.class,Q),le&4&&f(oe,"style",de.style,ge.style,Q),le&8){const Oe=U.dynamicProps;for(let Fe=0;Fe<Oe.length;Fe++){const je=Oe[Fe],Qe=de[je],rt=ge[je];(rt!==Qe||je==="value")&&f(oe,je,Qe,rt,Q,P)}}le&1&&k.children!==U.children&&p(oe,U.children)}else!ae&&te==null&&B(oe,de,ge,P,Q);((Se=ge.onVnodeUpdated)||me)&&et(()=>{Se&&Nt(Se,P,U,k),me&&ln(U,k,P,"updated")},ne)},N=(k,U,P,ne,Q,ee,ae)=>{for(let oe=0;oe<U.length;oe++){const le=k[oe],te=U[oe],me=le.el&&(le.type===ie||!Xt(le,te)||le.shapeFlag&198)?a(le.el):P;s(le,te,me,null,ne,Q,ee,ae,!0)}},B=(k,U,P,ne,Q)=>{if(U!==P){if(U!==Me)for(const ee in U)!fn(ee)&&!(ee in P)&&f(k,ee,U[ee],null,Q,ne);for(const ee in P){if(fn(ee))continue;const ae=P[ee],oe=U[ee];ae!==oe&&ee!=="value"&&f(k,ee,oe,ae,Q,ne)}"value"in P&&f(k,"value",U.value,P.value,Q)}},M=(k,U,P,ne,Q,ee,ae,oe,le)=>{const te=U.el=k?k.el:l(""),me=U.anchor=k?k.anchor:l("");let{patchFlag:de,dynamicChildren:ge,slotScopeIds:Se}=U;Se&&(oe=oe?oe.concat(Se):Se),k==null?(i(te,P,ne),i(me,P,ne),T(U.children||[],P,me,Q,ee,ae,oe,le)):de>0&&de&64&&ge&&k.dynamicChildren&&k.dynamicChildren.length===ge.length?(N(k.dynamicChildren,ge,P,Q,ee,ae,oe),(U.key!=null||Q&&U===Q.subTree)&&Rl(k,U,!0)):D(k,U,P,me,Q,ee,ae,oe,le)},L=(k,U,P,ne,Q,ee,ae,oe,le)=>{U.slotScopeIds=oe,k==null?U.shapeFlag&512?Q.ctx.activate(U,P,ne,ae,le):I(U,P,ne,Q,ee,ae,le):$(k,U,le)},I=(k,U,P,ne,Q,ee,ae)=>{const oe=k.component=Jf(k,ne,Q);if(is(k)&&(oe.ctx.renderer=W),Yf(oe,!1,ae),oe.asyncDep){if(Q&&Q.registerDep(oe,O,ae),!k.el){const le=oe.subTree=se(Xe);v(null,le,U,P),k.placeholder=le.el}}else O(oe,k,U,P,Q,ee,ae)},$=(k,U,P)=>{const ne=U.component=k.component;if(Kg(k,U,P))if(ne.asyncDep&&!ne.asyncResolved){H(ne,U,P);return}else ne.next=U,ne.update();else U.el=k.el,ne.vnode=U},O=(k,U,P,ne,Q,ee,ae)=>{const oe=()=>{if(k.isMounted){let{next:de,bu:ge,u:Se,parent:Oe,vnode:Fe}=k;{const Dt=Ff(k);if(Dt){de&&(de.el=Fe.el,H(k,de,ae)),Dt.asyncDep.then(()=>{et(()=>{k.isUnmounted||te()},Q)});return}}let je=de,Qe;nr(k,!1),de?(de.el=Fe.el,H(k,de,ae)):de=Fe,ge&&hr(ge),(Qe=de.props&&de.props.onVnodeBeforeUpdate)&&Nt(Qe,Oe,de,Fe),nr(k,!0);const rt=Ms(k),qt=k.subTree;k.subTree=rt,s(qt,rt,a(qt.el),q(qt),k,Q,ee),de.el=rt.el,je===null&&To(k,rt.el),Se&&et(Se,Q),(Qe=de.props&&de.props.onVnodeUpdated)&&et(()=>Nt(Qe,Oe,de,Fe),Q)}else{let de;const{el:ge,props:Se}=U,{bm:Oe,m:Fe,parent:je,root:Qe,type:rt}=k,qt=Mn(U);if(nr(k,!1),Oe&&hr(Oe),!qt&&(de=Se&&Se.onVnodeBeforeMount)&&Nt(de,je,U),nr(k,!0),ge&&J){const Dt=()=>{k.subTree=Ms(k),J(ge,k.subTree,k,Q,null)};qt&&rt.__asyncHydrate?rt.__asyncHydrate(ge,k,Dt):Dt()}else{Qe.ce&&Qe.ce._hasShadowRoot()&&Qe.ce._injectChildStyle(rt,k.parent?k.parent.type:void 0);const Dt=k.subTree=Ms(k);s(null,Dt,P,ne,k,Q,ee),U.el=Dt.el}if(Fe&&et(Fe,Q),!qt&&(de=Se&&Se.onVnodeMounted)){const Dt=U;et(()=>Nt(de,je,Dt),Q)}(U.shapeFlag&256||je&&Mn(je.vnode)&&je.vnode.shapeFlag&256)&&k.a&&et(k.a,Q),k.isMounted=!0,U=P=ne=null}};k.scope.on();const le=k.effect=new Ii(oe);k.scope.off();const te=k.update=le.run.bind(le),me=k.job=le.runIfDirty.bind(le);me.i=k,me.id=k.uid,le.scheduler=()=>_l(me),nr(k,!0),te()},H=(k,U,P)=>{U.component=k;const ne=k.vnode.props;k.vnode=U,k.next=null,eb(k,U.props,ne,P),ib(k,U.children,P),In(),kc(k),On()},D=(k,U,P,ne,Q,ee,ae,oe,le=!1)=>{const te=k&&k.children,me=k?k.shapeFlag:0,de=U.children,{patchFlag:ge,shapeFlag:Se}=U;if(ge>0){if(ge&128){z(te,de,P,ne,Q,ee,ae,oe,le);return}else if(ge&256){R(te,de,P,ne,Q,ee,ae,oe,le);return}}Se&8?(me&16&&Be(te,Q,ee),de!==te&&p(P,de)):me&16?Se&16?z(te,de,P,ne,Q,ee,ae,oe,le):Be(te,Q,ee,!0):(me&8&&p(P,""),Se&16&&T(de,P,ne,Q,ee,ae,oe,le))},R=(k,U,P,ne,Q,ee,ae,oe,le)=>{k=k||ur,U=U||ur;const te=k.length,me=U.length,de=Math.min(te,me);let ge;for(ge=0;ge<de;ge++){const Se=U[ge]=le?En(U[ge]):Rt(U[ge]);s(k[ge],Se,P,null,Q,ee,ae,oe,le)}te>me?Be(k,Q,ee,!0,!1,de):T(U,P,ne,Q,ee,ae,oe,le,de)},z=(k,U,P,ne,Q,ee,ae,oe,le)=>{let te=0;const me=U.length;let de=k.length-1,ge=me-1;for(;te<=de&&te<=ge;){const Se=k[te],Oe=U[te]=le?En(U[te]):Rt(U[te]);if(Xt(Se,Oe))s(Se,Oe,P,null,Q,ee,ae,oe,le);else break;te++}for(;te<=de&&te<=ge;){const Se=k[de],Oe=U[ge]=le?En(U[ge]):Rt(U[ge]);if(Xt(Se,Oe))s(Se,Oe,P,null,Q,ee,ae,oe,le);else break;de--,ge--}if(te>de){if(te<=ge){const Se=ge+1,Oe=Se<me?U[Se].el:ne;for(;te<=ge;)s(null,U[te]=le?En(U[te]):Rt(U[te]),P,Oe,Q,ee,ae,oe,le),te++}}else if(te>ge)for(;te<=de;)X(k[te],Q,ee,!0),te++;else{const Se=te,Oe=te,Fe=new Map;for(te=Oe;te<=ge;te++){const Vt=U[te]=le?En(U[te]):Rt(U[te]);Vt.key!=null&&Fe.set(Vt.key,te)}let je,Qe=0;const rt=ge-Oe+1;let qt=!1,Dt=0;const ci=new Array(rt);for(te=0;te<rt;te++)ci[te]=0;for(te=Se;te<=de;te++){const Vt=k[te];if(Qe>=rt){X(Vt,Q,ee,!0);continue}let sn;if(Vt.key!=null)sn=Fe.get(Vt.key);else for(je=Oe;je<=ge;je++)if(ci[je-Oe]===0&&Xt(Vt,U[je])){sn=je;break}sn===void 0?X(Vt,Q,ee,!0):(ci[sn-Oe]=te+1,sn>=Dt?Dt=sn:qt=!0,s(Vt,U[sn],P,null,Q,ee,ae,oe,le),Qe++)}const _c=qt?sb(ci):ur;for(je=_c.length-1,te=rt-1;te>=0;te--){const Vt=Oe+te,sn=U[Vt],wc=U[Vt+1],xc=Vt+1<me?wc.el||jf(wc):ne;ci[te]===0?s(null,sn,P,xc,Q,ee,ae,oe,le):qt&&(je<0||te!==_c[je]?A(sn,P,xc,2):je--)}}},A=(k,U,P,ne,Q=null)=>{const{el:ee,type:ae,transition:oe,children:le,shapeFlag:te}=k;if(te&6){A(k.component.subTree,U,P,ne);return}if(te&128){k.suspense.move(U,P,ne);return}if(te&64){ae.move(k,U,P,W);return}if(ae===ie){i(ee,U,P);for(let de=0;de<le.length;de++)A(le[de],U,P,ne);i(k.anchor,U,P);return}if(ae===vr){y(k,U,P);return}if(ne!==2&&te&1&&oe)if(ne===0)oe.beforeEnter(ee),i(ee,U,P),et(()=>oe.enter(ee),Q);else{const{leave:de,delayLeave:ge,afterLeave:Se}=oe,Oe=()=>{k.ctx.isUnmounted?u(ee):i(ee,U,P)},Fe=()=>{ee._isLeaving&&ee[cn](!0),de(ee,()=>{Oe(),Se&&Se()})};ge?ge(ee,Oe,Fe):Fe()}else i(ee,U,P)},X=(k,U,P,ne=!1,Q=!1)=>{const{type:ee,props:ae,ref:oe,children:le,dynamicChildren:te,shapeFlag:me,patchFlag:de,dirs:ge,cacheIndex:Se,memo:Oe}=k;if(de===-2&&(Q=!1),oe!=null&&(In(),Vr(oe,null,P,k,!0),On()),Se!=null&&(U.renderCache[Se]=void 0),me&256){U.ctx.deactivate(k);return}const Fe=me&1&&ge,je=!Mn(k);let Qe;if(je&&(Qe=ae&&ae.onVnodeBeforeUnmount)&&Nt(Qe,U,k),me&6)Ie(k.component,P,ne);else{if(me&128){k.suspense.unmount(P,ne);return}Fe&&ln(k,null,U,"beforeUnmount"),me&64?k.type.remove(k,U,P,W,ne):te&&!te.hasOnce&&(ee!==ie||de>0&&de&64)?Be(te,U,P,!1,!0):(ee===ie&&de&384||!Q&&me&16)&&Be(le,U,P),ne&&G(k)}const rt=Oe!=null&&Se==null;(je&&(Qe=ae&&ae.onVnodeUnmounted)||Fe||rt)&&et(()=>{Qe&&Nt(Qe,U,k),Fe&&ln(k,null,U,"unmounted"),rt&&(k.el=null)},P)},G=k=>{const{type:U,el:P,anchor:ne,transition:Q}=k;if(U===ie){ce(P,ne);return}if(U===vr){_(k);return}const ee=()=>{u(P),Q&&!Q.persisted&&Q.afterLeave&&Q.afterLeave()};if(k.shapeFlag&1&&Q&&!Q.persisted){const{leave:ae,delayLeave:oe}=Q,le=()=>ae(P,ee);oe?oe(k.el,ee,le):le()}else ee()},ce=(k,U)=>{let P;for(;k!==U;)P=m(k),u(k),k=P;u(U)},Ie=(k,U,P)=>{const{bum:ne,scope:Q,job:ee,subTree:ae,um:oe,m:le,a:te}=k;Zs(le),Zs(te),ne&&hr(ne),Q.stop(),ee&&(ee.flags|=8,X(ae,k,U,P)),oe&&et(oe,U),et(()=>{k.isUnmounted=!0},U)},Be=(k,U,P,ne=!1,Q=!1,ee=0)=>{for(let ae=ee;ae<k.length;ae++)X(k[ae],U,P,ne,Q)},q=k=>{if(k.shapeFlag&6)return q(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const U=m(k.anchor||k.el),P=U&&U[af];return P?m(P):U};let ue=!1;const V=(k,U,P)=>{let ne;k==null?U._vnode&&(X(U._vnode,null,null,!0),ne=U._vnode.component):s(U._vnode||null,k,U,null,null,null,P),U._vnode=k,ue||(ue=!0,kc(ne),Ws(),ue=!1)},W={p:s,um:X,m:A,r:G,mt:I,mc:T,pc:D,pbc:N,n:q,o:t};let re,J;return e&&([re,J]=e(W)),{render:V,hydrate:re,createApp:Pg(V,re)}}function ua({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function nr({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Vf(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Rl(t,e,r=!1){const i=t.children,u=e.children;if(he(i)&&he(u))for(let f=0;f<i.length;f++){const d=i[f];let l=u[f];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=u[f]=En(u[f]),l.el=d.el),!r&&l.patchFlag!==-2&&Rl(d,l)),l.type===Jn&&(l.patchFlag===-1&&(l=u[f]=En(l)),l.el=d.el),l.type===Xe&&!l.el&&(l.el=d.el)}}function sb(t){const e=t.slice(),r=[0];let i,u,f,d,l;const o=t.length;for(i=0;i<o;i++){const n=t[i];if(n!==0){if(u=r[r.length-1],t[u]<n){e[i]=u,r.push(i);continue}for(f=0,d=r.length-1;f<d;)l=f+d>>1,t[r[l]]<n?f=l+1:d=l;n<t[r[f]]&&(f>0&&(e[i]=r[f-1]),r[f]=i)}}for(f=r.length,d=r[f-1];f-- >0;)r[f]=d,d=e[d];return r}function Ff(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Ff(e)}function Zs(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function jf(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?jf(e.subTree):null}const qs=t=>t.__isSuspense;let Da=0;const ob={name:"Suspense",__isSuspense:!0,process(t,e,r,i,u,f,d,l,o,n){if(t==null)lb(e,r,i,u,f,d,l,o,n);else{if(f&&f.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}cb(t,e,r,i,u,d,l,o,n)}},hydrate:ub,normalize:db},ab=ob;function Vi(t,e){const r=t.props&&t.props[e];_e(r)&&r()}function lb(t,e,r,i,u,f,d,l,o){const{p:n,o:{createElement:p}}=o,a=p("div"),m=t.suspense=zf(t,u,i,e,a,r,f,d,l,o);n(null,m.pendingBranch=t.ssContent,a,null,i,m,f,d),m.deps>0?(Vi(t,"onPending"),Vi(t,"onFallback"),n(null,t.ssFallback,e,r,i,null,f,d),Fr(m,t.ssFallback)):m.resolve(!1,!0)}function cb(t,e,r,i,u,f,d,l,{p:o,um:n,o:{createElement:p}}){const a=e.suspense=t.suspense;a.vnode=e,e.el=t.el;const m=e.ssContent,h=e.ssFallback,{activeBranch:b,pendingBranch:s,isInFallback:c,isHydrating:v}=a;if(s)a.pendingBranch=m,Xt(s,m)?(o(s,m,a.hiddenContainer,null,u,a,f,d,l),a.deps<=0?a.resolve():c&&(v||(o(b,h,r,i,u,null,f,d,l),Fr(a,h)))):(a.pendingId=Da++,v?(a.isHydrating=!1,a.activeBranch=s):n(s,u,a),a.deps=0,a.effects.length=0,a.hiddenContainer=p("div"),c?(o(null,m,a.hiddenContainer,null,u,a,f,d,l),a.deps<=0?a.resolve():(o(b,h,r,i,u,null,f,d,l),Fr(a,h))):b&&Xt(b,m)?(o(b,m,r,i,u,a,f,d,l),a.resolve(!0)):(o(null,m,a.hiddenContainer,null,u,a,f,d,l),a.deps<=0&&a.resolve()));else if(b&&Xt(b,m))o(b,m,r,i,u,a,f,d,l),Fr(a,m);else if(Vi(e,"onPending"),a.pendingBranch=m,m.shapeFlag&512?a.pendingId=m.component.suspenseId:a.pendingId=Da++,o(null,m,a.hiddenContainer,null,u,a,f,d,l),a.deps<=0)a.resolve();else{const{timeout:g,pendingId:y}=a;g>0?setTimeout(()=>{a.pendingId===y&&a.fallback(h)},g):g===0&&a.fallback(h)}}function zf(t,e,r,i,u,f,d,l,o,n,p=!1){const{p:a,m,um:h,n:b,o:{parentNode:s,remove:c}}=n;let v;const g=fb(t);g&&e&&e.pendingBranch&&(v=e.pendingId,e.deps++);const y=t.props?Ri(t.props.timeout):void 0,_=f,w={vnode:t,parent:e,parentComponent:r,namespace:d,container:i,hiddenContainer:u,deps:0,pendingId:Da++,timeout:typeof y=="number"?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(S=!1,E=!1){const{vnode:T,activeBranch:C,pendingBranch:N,pendingId:B,effects:M,parentComponent:L,container:I,isInFallback:$}=w;let O=!1;w.isHydrating?w.isHydrating=!1:S||(O=C&&N.transition&&N.transition.mode==="out-in",O&&(C.transition.afterLeave=()=>{B===w.pendingId&&(m(N,I,f===_?b(C):f,0),Li(M),$&&T.ssFallback&&(T.ssFallback.el=null))}),C&&!w.isFallbackMountPending&&(s(C.el)===I&&(f=b(C)),h(C,L,w,!0),!O&&$&&T.ssFallback&&et(()=>T.ssFallback.el=null,w)),O||m(N,I,f,0)),w.isFallbackMountPending=!1,Fr(w,N),w.pendingBranch=null,w.isInFallback=!1;let H=w.parent,D=!1;for(;H;){if(H.pendingBranch){H.effects.push(...M),D=!0;break}H=H.parent}!D&&!O&&Li(M),w.effects=[],g&&e&&e.pendingBranch&&v===e.pendingId&&(e.deps--,e.deps===0&&!E&&e.resolve()),Vi(T,"onResolve")},fallback(S){if(!w.pendingBranch)return;const{vnode:E,activeBranch:T,parentComponent:C,container:N,namespace:B}=w;Vi(E,"onFallback");const M=b(T),L=()=>{w.isFallbackMountPending=!1,w.isInFallback&&(a(null,S,N,M,C,null,B,l,o),Fr(w,S))},I=S.transition&&S.transition.mode==="out-in";I&&(w.isFallbackMountPending=!0,T.transition.afterLeave=L),w.isInFallback=!0,h(T,C,null,!0),I||L()},move(S,E,T){w.activeBranch&&m(w.activeBranch,S,E,T),w.container=S},next(){return w.activeBranch&&b(w.activeBranch)},registerDep(S,E,T){const C=!!w.pendingBranch;C&&w.deps++;const N=S.vnode.el;
vendor: 22,606 bytes, line 4
4S.asyncDep.catch(B=>{kr(B,S,0)}).then(B=>{if(S.isUnmounted||w.isUnmounted||w.pendingId!==S.suspenseId)return;ji(),S.asyncResolved=!0;const{vnode:M}=S;Va(S,B,!1),N&&(M.el=N);const L=!N&&S.subTree.el;E(S,M,s(N||S.subTree.el),N?null:b(S.subTree),w,d,T),L&&(M.placeholder=null,c(L)),To(S,M.el),C&&--w.deps===0&&w.resolve()})},unmount(S,E){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,r,S,E),w.pendingBranch&&h(w.pendingBranch,r,S,E)}};return w}function ub(t,e,r,i,u,f,d,l,o){const n=e.suspense=zf(e,i,r,t.parentNode,document.createElement("div"),null,u,f,d,l,!0),p=o(t,n.pendingBranch=e.ssContent,r,n,f,d);return n.deps===0&&n.resolve(!1,!0),p}function db(t){const{shapeFlag:e,children:r}=t,i=e&32;t.ssContent=jc(i?r.default:r),t.ssFallback=i?jc(r.fallback):se(Xe)}function jc(t){let e;if(_e(t)){const r=yr&&t._c;r&&(t._d=!1,F()),t=t(),r&&(t._d=!0,e=wt,Wf())}return he(t)&&(t=Jg(t)),t=Rt(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function $f(t,e){e&&e.pendingBranch?he(t)?e.effects.push(...t):e.effects.push(t):Li(t)}function Fr(t,e){t.activeBranch=e;const{vnode:r,parentComponent:i}=t;let u=e.el;for(;!u&&e.component;)e=e.component.subTree,u=e.el;r.el=u,i&&i.subTree===r&&(i.vnode.el=u,To(i,u))}function fb(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const ie=Symbol.for("v-fgt"),Jn=Symbol.for("v-txt"),Xe=Symbol.for("v-cmt"),vr=Symbol.for("v-stc"),ki=[];let wt=null;function F(t=!1){ki.push(wt=t?null:[])}function Wf(){ki.pop(),wt=ki[ki.length-1]||null}let yr=1;function Fi(t,e=!1){yr+=t,t<0&&wt&&e&&(wt.hasOnce=!0)}function Pf(t){return t.dynamicChildren=yr>0?wt||ur:null,Wf(),yr>0&&wt&&wt.push(t),t}function j(t,e,r,i,u,f){return Pf(x(t,e,r,i,u,f,!0))}function Js(t,e,r,i,u){return Pf(se(t,e,r,i,u,!0))}function Ln(t){return t?t.__v_isVNode===!0:!1}function Xt(t,e){return t.type===e.type&&t.key===e.key}function hb(t){}const Gf=({key:t})=>t??null,Ns=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?xe(t)||Pe(t)||_e(t)?{i:pt,r:t,k:e,f:!!r}:t:null);function x(t,e=null,r=null,i=0,u=null,f=t===ie?0:1,d=!1,l=!1){const o={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Gf(e),ref:e&&Ns(e),scopeId:yo,slotScopeIds:null,children:r,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:f,patchFlag:i,dynamicProps:u,dynamicChildren:null,appContext:null,ctx:pt};return l?(Il(o,r),f&128&&t.normalize(o)):r&&(o.shapeFlag|=xe(r)?8:16),yr>0&&!d&&wt&&(o.patchFlag>0||f&6)&&o.patchFlag!==32&&wt.push(o),o}const se=pb;function pb(t,e=null,r=null,i=0,u=null,f=!1){if((!t||t===wf)&&(t=Xe),Ln(t)){const l=vn(t,e,!0);return r&&Il(l,r),yr>0&&!f&&wt&&(l.shapeFlag&6?wt[wt.indexOf(t)]=l:wt.push(l)),l.patchFlag=-2,l}if(wb(t)&&(t=t.__vccOpts),e){e=Zf(e);let{class:l,style:o}=e;l&&!xe(l)&&(e.class=hn(l)),He(o)&&(ts(o)&&!he(o)&&(o=Ae({},o)),e.style=ni(o))}const d=xe(t)?1:qs(t)?128:lf(t)?64:He(t)?4:_e(t)?2:0;return x(t,e,r,i,u,d,f,!0)}function Zf(t){return t?ts(t)||Nf(t)?Ae({},t):t:null}function vn(t,e,r=!1,i=!1){const{props:u,ref:f,patchFlag:d,children:l,transition:o}=t,n=e?qf(u||{},e):u,p={__v_isVNode:!0,__v_skip:!0,type:t.type,props:n,key:n&&Gf(n),ref:e&&e.ref?r&&f?he(f)?f.concat(Ns(e)):[f,Ns(e)]:Ns(e):f,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ie?d===-1?16:d|16:d,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:o,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&vn(t.ssContent),ssFallback:t.ssFallback&&vn(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return o&&i&&Hn(p,o.clone(p)),p}function Te(t=" ",e=0){return se(Jn,null,t,e)}function nt(t,e){const r=se(vr,null,t);return r.staticCount=e,r}function ke(t="",e=!1){return e?(F(),Js(Xe,null,t)):se(Xe,null,t)}function Rt(t){return t==null||typeof t=="boolean"?se(Xe):he(t)?se(ie,null,t.slice()):Ln(t)?En(t):se(Jn,null,String(t))}function En(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:vn(t)}function Il(t,e){let r=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(he(e))r=16;else if(typeof e=="object")if(i&65){const u=e.default;u&&(u._c&&(u._d=!1),Il(t,u()),u._c&&(u._d=!0));return}else{r=32;const u=e._;!u&&!Nf(e)?e._ctx=pt:u===3&&pt&&(pt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else _e(e)?(e={default:e,_ctx:pt},r=32):(e=String(e),i&64?(r=16,e=[Te(e)]):r=8);t.children=e,t.shapeFlag|=r}function qf(...t){const e={};for(let r=0;r<t.length;r++){const i=t[r];for(const u in i)if(u==="class")e.class!==i.class&&(e.class=hn([e.class,i.class]));else if(u==="style")e.style=ni([e.style,i.style]);else if(Qn(u)){const f=e[u],d=i[u];d&&f!==d&&!(he(f)&&f.includes(d))?e[u]=f?[].concat(f,d):d:d==null&&f==null&&!Ji(u)&&(e[u]=d)}else u!==""&&(e[u]=i[u])}return e}function Nt(t,e,r,i=null){Zt(t,e,7,[r,i])}const mb=Cf();let vb=0;function Jf(t,e,r){const i=t.type,u=(e?e.appContext:t.appContext)||mb,f={uid:vb++,vnode:t,type:i,parent:e,appContext:u,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new dl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(u.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:If(i,u),emitsOptions:Tf(i,u),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:i.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,setupContext:null,suspense:r,suspenseId:r?r.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 f.ctx={_:f},f.root=e?e.root:f,f.emit=Zg.bind(null,f),t.ce&&t.ce(f),f}let ht=null;const At=()=>ht||pt;let Xs,jr;{const t=Qi(),e=(r,i)=>{let u;return(u=t[r])||(u=t[r]=[]),u.push(i),f=>{u.length>1?u.forEach(d=>d(f)):u[0](f)}};Xs=e("__VUE_INSTANCE_SETTERS__",r=>ht=r),jr=e("__VUE_SSR_SETTERS__",r=>_r=r)}const si=t=>{const e=ht;return Xs(t),t.scope.on(),()=>{t.scope.off(),Xs(e)}},ji=()=>{ht&&ht.scope.off(),Xs(null)};function Xf(t){return t.vnode.shapeFlag&4}let _r=!1;function Yf(t,e=!1,r=!1){e&&jr(e);const{props:i,children:u}=t.vnode,f=Xf(t);Qg(t,i,f,e),rb(t,u,r||e);const d=f?gb(t,e):void 0;return e&&jr(!1),d}function gb(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Ha);const{setup:i}=r;if(i){In();const u=t.setupContext=i.length>1?Qf(t):null,f=si(t),d=ri(i,t,0,[t.props,u]),l=fo(d);if(On(),f(),(l||t.sp)&&!Mn(t)&&Sl(t),l){if(d.then(ji,ji),e)return d.then(o=>{Va(t,o,e)}).catch(o=>{kr(o,t,0)});t.asyncDep=d}else Va(t,d,e)}else Kf(t,e)}function Va(t,e,r){_e(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:He(e)&&(t.setupState=yl(e)),Kf(t,r)}let Ys,Fa;function bb(t){Ys=t,Fa=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Eg))}}const yb=()=>!Ys;function Kf(t,e,r){const i=t.type;if(!t.render){if(!e&&Ys&&!i.render){const u=i.template||Al(t).template;if(u){const{isCustomElement:f,compilerOptions:d}=t.appContext.config,{delimiters:l,compilerOptions:o}=i,n=Ae(Ae({isCustomElement:f,delimiters:l},d),o);i.render=Ys(u,n)}}t.render=i.render||lt,Fa&&Fa(t)}{const u=si(t);In();try{Vg(t)}finally{On(),u()}}}const _b={get(t,e){return bt(t,"get",""),t[e]}};function Qf(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,_b),slots:t.slots,emit:t.emit,expose:e}}function ss(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(yl(bo(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Ti)return Ti[r](t)},has(e,r){return r in e||r in Ti}})):t.proxy}function ja(t,e=!0){return _e(t)?t.displayName||t.name:t.name||e&&t.__name}function wb(t){return _e(t)&&"__vccOpts"in t}const we=(t,e)=>Iv(t,e,_r);function ko(t,e,r){try{Fi(-1);const i=arguments.length;return i===2?He(e)&&!he(e)?Ln(e)?se(t,null,[e]):se(t,e):se(t,null,e):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Ln(r)&&(r=[r]),se(t,e,r))}finally{Fi(1)}}function xb(){}function Sb(t,e,r,i){const u=r[i];if(u&&eh(u,t))return u;const f=e();return f.memo=t.slice(),f.cacheIndex=i,r[i]=f}function eh(t,e){const r=t.memo;if(r.length!=e.length)return!1;for(let i=0;i<r.length;i++)if(at(r[i],e[i]))return!1;return yr>0&&wt&&wt.push(t),!0}const th="3.5.33",Cb=lt,Eb=jv,Tb=Lr,kb=ef,Ab={createComponentInstance:Jf,setupComponent:Yf,renderComponentRoot:Ms,setCurrentRenderingInstance:Bi,isVNode:Ln,normalizeVNode:Rt,getComponentPublicInstance:ss,ensureValidVNode:kl,pushWarningContext:Bv,popWarningContext:Dv},Mb=Ab,Nb=null,Rb=null,Ib=null;let za;const zc=typeof window<"u"&&window.trustedTypes;if(zc)try{za=zc.createPolicy("vue",{createHTML:t=>t})}catch{}const nh=za?t=>za.createHTML(t):t=>t,Ob="http://www.w3.org/2000/svg",Hb="http://www.w3.org/1998/Math/MathML",Cn=typeof document<"u"?document:null,$c=Cn&&Cn.createElement("template"),rh={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,i)=>{const u=e==="svg"?Cn.createElementNS(Ob,t):e==="mathml"?Cn.createElementNS(Hb,t):r?Cn.createElement(t,{is:r}):Cn.createElement(t);return t==="select"&&i&&i.multiple!=null&&u.setAttribute("multiple",i.multiple),u},createText:t=>Cn.createTextNode(t),createComment:t=>Cn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Cn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,i,u,f){const d=r?r.previousSibling:e.lastChild;if(u&&(u===f||u.nextSibling))for(;e.insertBefore(u.cloneNode(!0),r),!(u===f||!(u=u.nextSibling)););else{$c.innerHTML=nh(i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t);const l=$c.content;if(i==="svg"||i==="mathml"){const o=l.firstChild;for(;o.firstChild;)l.appendChild(o.firstChild);l.removeChild(o)}e.insertBefore(l,r)}return[d?d.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},Dn="transition",fi="animation",Pr=Symbol("_vtc"),ih={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},sh=Ae({},xl,ih),Lb=t=>(t.displayName="Transition",t.props=sh,t),Ub=Lb((t,{slots:e})=>ko(df,oh(t),e)),rr=(t,e=[])=>{he(t)?t.forEach(r=>r(...e)):t&&t(...e)},Wc=t=>t?he(t)?t.some(e=>e.length>1):t.length>1:!1;function oh(t){const e={};for(const M in t)M in ih||(e[M]=t[M]);if(t.css===!1)return e;const{name:r="v",type:i,duration:u,enterFromClass:f=`${r}-enter-from`,enterActiveClass:d=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:o=f,appearActiveClass:n=d,appearToClass:p=l,leaveFromClass:a=`${r}-leave-from`,leaveActiveClass:m=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=t,b=Bb(u),s=b&&b[0],c=b&&b[1],{onBeforeEnter:v,onEnter:g,onEnterCancelled:y,onLeave:_,onLeaveCancelled:w,onBeforeAppear:S=v,onAppear:E=g,onAppearCancelled:T=y}=e,C=(M,L,I,$)=>{M._enterCancelled=$,zn(M,L?p:l),zn(M,L?n:d),I&&I()},N=(M,L)=>{M._isLeaving=!1,zn(M,a),zn(M,h),zn(M,m),L&&L()},B=M=>(L,I)=>{const $=M?E:g,O=()=>C(L,M,I);rr($,[L,O]),Pc(()=>{zn(L,M?o:f),on(L,M?p:l),Wc($)||Gc(L,i,s,O)})};return Ae(e,{onBeforeEnter(M){rr(v,[M]),on(M,f),on(M,d)},onBeforeAppear(M){rr(S,[M]),on(M,o),on(M,n)},onEnter:B(!1),onAppear:B(!0),onLeave(M,L){M._isLeaving=!0;const I=()=>N(M,L);on(M,a),M._enterCancelled?(on(M,m),$a(M)):($a(M),on(M,m)),Pc(()=>{M._isLeaving&&(zn(M,a),on(M,h),Wc(_)||Gc(M,i,c,I))}),rr(_,[M,I])},onEnterCancelled(M){C(M,!1,void 0,!0),rr(y,[M])},onAppearCancelled(M){C(M,!0,void 0,!0),rr(T,[M])},onLeaveCancelled(M){N(M),rr(w,[M])}})}function Bb(t){if(t==null)return null;if(He(t))return[da(t.enter),da(t.leave)];{const e=da(t);return[e,e]}}function da(t){return Ri(t)}function on(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[Pr]||(t[Pr]=new Set)).add(e)}function zn(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const r=t[Pr];r&&(r.delete(e),r.size||(t[Pr]=void 0))}function Pc(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Db=0;function Gc(t,e,r,i){const u=t._endId=++Db,f=()=>{u===t._endId&&i()};if(r!=null)return setTimeout(f,r);const{type:d,timeout:l,propCount:o}=ah(t,e);if(!d)return i();const n=d+"end";let p=0;const a=()=>{t.removeEventListener(n,m),f()},m=h=>{h.target===t&&++p>=o&&a()};setTimeout(()=>{p<o&&a()},l+1),t.addEventListener(n,m)}function ah(t,e){const r=window.getComputedStyle(t),i=b=>(r[b]||"").split(", "),u=i(`${Dn}Delay`),f=i(`${Dn}Duration`),d=Zc(u,f),l=i(`${fi}Delay`),o=i(`${fi}Duration`),n=Zc(l,o);let p=null,a=0,m=0;e===Dn?d>0&&(p=Dn,a=d,m=f.length):e===fi?n>0&&(p=fi,a=n,m=o.length):(a=Math.max(d,n),p=a>0?d>n?Dn:fi:null,m=p?p===Dn?f.length:o.length:0);const h=p===Dn&&/\b(?:transform|all)(?:,|$)/.test(i(`${Dn}Property`).toString());return{type:p,timeout:a,propCount:m,hasTransform:h}}function Zc(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,i)=>qc(r)+qc(t[i])))}function qc(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function $a(t){return(t?t.ownerDocument:document).body.offsetHeight}function Vb(t,e,r){const i=t[Pr];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const Ks=Symbol("_vod"),lh=Symbol("_vsh"),ch={name:"show",beforeMount(t,{value:e},{transition:r}){t[Ks]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):hi(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:i}){!e!=!r&&(i?e?(i.beforeEnter(t),hi(t,!0),i.enter(t)):i.leave(t,()=>{hi(t,!1)}):hi(t,e))},beforeUnmount(t,{value:e}){hi(t,e)}};function hi(t,e){t.style.display=e?t[Ks]:"none",t[lh]=!e}function Fb(){ch.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const uh=Symbol("");function jb(t){const e=At();if(!e)return;const r=e.ut=(u=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(f=>Qs(f,u))},i=()=>{const u=t(e.proxy);e.ce?Qs(e.ce,u):Wa(e.subTree,u),r(u)};Cl(()=>{Li(i)}),qe(()=>{Lt(i,lt,{flush:"post"});const u=new MutationObserver(i);u.observe(e.subTree.el.parentNode,{childList:!0}),Co(()=>u.disconnect())})}function Wa(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{Wa(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Qs(t.el,e);else if(t.type===ie)t.children.forEach(r=>Wa(r,e));else if(t.type===vr){let{el:r,anchor:i}=t;for(;r&&(Qs(r,e),r!==i);)r=r.nextSibling}}function Qs(t,e){if(t.nodeType===1){const r=t.style;let i="";for(const u in e){const f=Ad(e[u]);r.setProperty(`--${u}`,f),i+=`--${u}: ${f};`}r[uh]=i}}const zb=/(?:^|;)\s*display\s*:/;function $b(t,e,r){const i=t.style,u=xe(r);let f=!1;if(r&&!u){if(e)if(xe(e))for(const d of e.split(";")){const l=d.slice(0,d.indexOf(":")).trim();r[l]==null&&wi(i,l,"")}else for(const d in e)r[d]==null&&wi(i,d,"");for(const d in r){d==="display"&&(f=!0);const l=r[d];l!=null?Pb(t,d,!xe(e)&&e?e[d]:void 0,l)||wi(i,d,l):wi(i,d,"")}}else if(u){if(e!==r){const d=i[uh];d&&(r+=";"+d),i.cssText=r,f=zb.test(r)}}else e&&t.removeAttribute("style");Ks in t&&(t[Ks]=f?i.display:"",t[lh]&&(i.display="none"))}const Jc=/\s*!important$/;function wi(t,e,r){if(he(r))r.forEach(i=>wi(t,e,i));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const i=Wb(t,e);Jc.test(r)?t.setProperty(yt(i),r.replace(Jc,""),"important"):t[i]=r}}const Xc=["Webkit","Moz","ms"],fa={};function Wb(t,e){const r=fa[e];if(r)return r;let i=Ve(e);if(i!=="filter"&&i in t)return fa[e]=i;i=tr(i);for(let u=0;u<Xc.length;u++){const f=Xc[u]+i;if(f in t)return fa[e]=f}return e}function Pb(t,e,r,i){return t.tagName==="TEXTAREA"&&(e==="width"||e==="height")&&xe(i)&&r===i}const Yc="http://www.w3.org/1999/xlink";function Kc(t,e,r,i,u,f=Cd(e)){i&&e.startsWith("xlink:")?r==null?t.removeAttributeNS(Yc,e.slice(6,e.length)):t.setAttributeNS(Yc,e,r):r==null||f&&!ul(r)?t.removeAttribute(e):t.setAttribute(e,f?"":mt(r)?String(r):r)}function Qc(t,e,r,i,u){if(e==="innerHTML"||e==="textContent"){r!=null&&(t[e]=e==="innerHTML"?nh(r):r);return}const f=t.tagName;if(e==="value"&&f!=="PROGRESS"&&!f.includes("-")){const l=f==="OPTION"?t.getAttribute("value")||"":t.value,o=r==null?t.type==="checkbox"?"on":"":String(r);(l!==o||!("_value"in t))&&(t.value=o),r==null&&t.removeAttribute(e),t._value=r;return}let d=!1;if(r===""||r==null){const l=typeof t[e];l==="boolean"?r=ul(r):r==null&&l==="string"?(r="",d=!0):l==="number"&&(r=0,d=!0)}try{t[e]=r}catch{}d&&t.removeAttribute(u||e)}function An(t,e,r,i){t.addEventListener(e,r,i)}function Gb(t,e,r,i){t.removeEventListener(e,r,i)}const eu=Symbol("_vei");function Zb(t,e,r,i,u=null){const f=t[eu]||(t[eu]={}),d=f[e];if(i&&d)d.value=i;else{const[l,o]=qb(e);if(i){const n=f[e]=Yb(i,u);An(t,l,n,o)}else d&&(Gb(t,l,d,o),f[e]=void 0)}}const tu=/(?:Once|Passive|Capture)$/;function qb(t){let e;if(tu.test(t)){e={};let i;for(;i=t.match(tu);)t=t.slice(0,t.length-i[0].length),e[i[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):yt(t.slice(2)),e]}let ha=0;const Jb=Promise.resolve(),Xb=()=>ha||(Jb.then(()=>ha=0),ha=Date.now());function Yb(t,e){const r=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=r.attached)return;Zt(Kb(i,r.value),e,5,[i])};return r.value=t,r.attached=Xb(),r}function Kb(t,e){if(he(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(i=>u=>!u._stopped&&i&&i(u))}else return e}const nu=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,dh=(t,e,r,i,u,f)=>{const d=u==="svg";e==="class"?Vb(t,i,d):e==="style"?$b(t,r,i):Qn(e)?Ji(e)||Zb(t,e,r,i,f):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Qb(t,e,i,d))?(Qc(t,e,i),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Kc(t,e,i,d,f,e!=="value")):t._isVueCE&&(e0(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!xe(i)))?Qc(t,Ve(e),i,f,e):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),Kc(t,e,i,d))};function Qb(t,e,r,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in t&&nu(e)&&_e(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const u=t.tagName;if(u==="IMG"||u==="VIDEO"||u==="CANVAS"||u==="SOURCE")return!1}return nu(e)&&xe(r)?!1:e in t}function e0(t,e){const r=t._def.props;if(!r)return!1;const i=Ve(e);return Array.isArray(r)?r.some(u=>Ve(u)===i):Object.keys(r).some(u=>Ve(u)===i)}const ru={};function fh(t,e,r){let i=rs(t,e);Xi(i)&&(i=Ae({},i,e));class u extends Ao{constructor(d){super(i,d,r)}}return u.def=i,u}const t0=((t,e)=>fh(t,e,Ch)),n0=typeof HTMLElement<"u"?HTMLElement:class{};class Ao extends n0{constructor(e,r={},i=to){super(),this._def=e,this._props=r,this._createApp=i,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&i!==to?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow(Ae({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof Ao){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,ii(()=>{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,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const r of e)this._setAttr(r.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(i,u=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:f,styles:d}=i;let l;if(f&&!he(f))for(const o in f){const n=f[o];(n===Number||n&&n.type===Number)&&(o in this._props&&(this._props[o]=Ri(this._props[o])),(l||(l=Object.create(null)))[Ve(o)]=!0)}this._numberProps=l,this._resolveProps(i),this.shadowRoot&&this._applyStyles(d),this._mount(i)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(i=>{i.configureApp=this._def.configureApp,e(this._def=i,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const i in r)Le(this,i)||Object.defineProperty(this,i,{get:()=>Ht(r[i])})}_resolveProps(e){const{props:r}=e,i=he(r)?r:Object.keys(r||{});for(const u of Object.keys(this))u[0]!=="_"&&i.includes(u)&&this._setProp(u,this[u]);for(const u of i.map(Ve))Object.defineProperty(this,u,{get(){return this._getProp(u)},set(f){this._setProp(u,f,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const r=this.hasAttribute(e);let i=r?this.getAttribute(e):ru;const u=Ve(e);r&&this._numberProps&&this._numberProps[u]&&(i=Ri(i)),this._setProp(u,i,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,r,i=!0,u=!1){if(r!==this._props[e]&&(this._dirty=!0,r===ru?delete this._props[e]:(this._props[e]=r,e==="key"&&this._app&&(this._app._ceVNode.key=r)),u&&this._instance&&this._update(),i)){const f=this._ob;f&&(this._processMutations(f.takeRecords()),f.disconnect()),r===!0?this.setAttribute(yt(e),""):typeof r=="string"||typeof r=="number"?this.setAttribute(yt(e),r+""):r||this.removeAttribute(yt(e)),f&&f.observe(this,{attributes:!0})}}
4_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Sh(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const r=se(this._def,Ae(e,this._props));return this._instance||(r.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const u=(f,d)=>{this.dispatchEvent(new CustomEvent(f,Xi(d[0])?Ae({detail:d},d[0]):{detail:d}))};i.emit=(f,...d)=>{u(f,d),yt(f)!==f&&u(yt(f),d)},this._setParent()}),r}_applyStyles(e,r,i){if(!e)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const u=this._nonce,f=this.shadowRoot,d=i?this._getStyleAnchor(i)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(f);let l=null;for(let o=e.length-1;o>=0;o--){const n=document.createElement("style");u&&n.setAttribute("nonce",u),n.textContent=e[o],f.insertBefore(n,l||d),l=n,o===0&&(i||this._styleAnchors.set(this._def,n),r&&this._styleAnchors.set(r,n))}}_getStyleAnchor(e){if(!e)return null;const r=this._styleAnchors.get(e);return r&&r.parentNode===this.shadowRoot?r:(r&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let r=0;r<e.childNodes.length;r++){const i=e.childNodes[r];if(!(i instanceof HTMLStyleElement))return i}return null}_parseSlots(){const e=this._slots={};let r;for(;r=this.firstChild;){const i=r.nodeType===1&&r.getAttribute("slot")||"default";(e[i]||(e[i]=[])).push(r),this.removeChild(r)}}_renderSlots(){const e=this._getSlots(),r=this._instance.type.__scopeId;for(let i=0;i<e.length;i++){const u=e[i],f=u.getAttribute("name")||"default",d=this._slots[f],l=u.parentNode;if(d)for(const o of d){if(r&&o.nodeType===1){const n=r+"-s",p=document.createTreeWalker(o,1);o.setAttribute(n,"");let a;for(;a=p.nextNode();)a.setAttribute(n,"")}l.insertBefore(o,u)}else for(;u.firstChild;)l.insertBefore(u.firstChild,u);l.removeChild(u)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const r=new Set;for(const i of e){const u=i.querySelectorAll("slot");for(let f=0;f<u.length;f++)r.add(u[f])}return Array.from(r)}_injectChildStyle(e,r){this._applyStyles(e.styles,e,r)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}}function hh(t){const e=At(),r=e&&e.ce;return r||null}function r0(){const t=hh();return t&&t.shadowRoot}function i0(t="$style"){{const e=At();if(!e)return Me;const r=e.type.__cssModules;if(!r)return Me;const i=r[t];return i||Me}}const ph=new WeakMap,mh=new WeakMap,eo=Symbol("_moveCb"),iu=Symbol("_enterCb"),s0=t=>(delete t.props.mode,t),o0=s0({name:"TransitionGroup",props:Ae({},sh,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=At(),i=wl();let u,f;return xo(()=>{if(!u.length)return;const d=t.moveClass||`${t.name||"v"}-move`;if(!u0(u[0].el,r.vnode.el,d)){u=[];return}u.forEach(a0),u.forEach(l0);const l=u.filter(c0);$a(r.vnode.el),l.forEach(o=>{const n=o.el,p=n.style;on(n,d),p.transform=p.webkitTransform=p.transitionDuration="";const a=n[eo]=m=>{m&&m.target!==n||(!m||m.propertyName.endsWith("transform"))&&(n.removeEventListener("transitionend",a),n[eo]=null,zn(n,d))};n.addEventListener("transitionend",a)}),u=[]}),()=>{const d=Re(t),l=oh(d);let o=d.tag||ie;if(u=[],f)for(let n=0;n<f.length;n++){const p=f[n];p.el&&p.el instanceof Element&&(u.push(p),Hn(p,Wr(p,l,i,r)),ph.set(p,vh(p.el)))}f=e.default?_o(e.default()):[];for(let n=0;n<f.length;n++){const p=f[n];p.key!=null&&Hn(p,Wr(p,l,i,r))}return se(o,null,f)}}}),Ar=o0;function a0(t){const e=t.el;e[eo]&&e[eo](),e[iu]&&e[iu]()}function l0(t){mh.set(t,vh(t.el))}function c0(t){const e=ph.get(t),r=mh.get(t),i=e.left-r.left,u=e.top-r.top;if(i||u){const f=t.el,d=f.style,l=f.getBoundingClientRect();let o=1,n=1;return f.offsetWidth&&(o=l.width/f.offsetWidth),f.offsetHeight&&(n=l.height/f.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(n)||n===0)&&(n=1),Math.abs(o-1)<.01&&(o=1),Math.abs(n-1)<.01&&(n=1),d.transform=d.webkitTransform=`translate(${i/o}px,${u/n}px)`,d.transitionDuration="0s",t}}function vh(t){const e=t.getBoundingClientRect();return{left:e.left,top:e.top}}function u0(t,e,r){const i=t.cloneNode(),u=t[Pr];u&&u.forEach(l=>
vendor: 12,789 bytes, line 4
4{l.split(/\s+/).forEach(o=>o&&i.classList.remove(o))}),r.split(/\s+/).forEach(l=>l&&i.classList.add(l)),i.style.display="none";const f=e.nodeType===1?e:e.parentNode;f.appendChild(i);const{hasTransform:d}=ah(i);return f.removeChild(i),d}const Yn=t=>{const e=t.props["onUpdate:modelValue"]||!1;return he(e)?r=>hr(e,r):e};function d0(t){t.target.composing=!0}function su(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Pt=Symbol("_assign");function ou(t,e,r){return e&&(t=t.trim()),r&&(t=Ki(t)),t}const pe={created(t,{modifiers:{lazy:e,trim:r,number:i}},u){t[Pt]=Yn(u);const f=i||u.props&&u.props.type==="number";An(t,e?"change":"input",d=>{d.target.composing||t[Pt](ou(t.value,r,f))}),(r||f)&&An(t,"change",()=>{t.value=ou(t.value,r,f)}),e||(An(t,"compositionstart",d0),An(t,"compositionend",su),An(t,"change",su))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:r,modifiers:{lazy:i,trim:u,number:f}},d){if(t[Pt]=Yn(d),t.composing)return;const l=(f||t.type==="number")&&!/^0\d/.test(t.value)?Ki(t.value):t.value,o=e??"";if(l===o)return;const n=t.getRootNode();(n instanceof Document||n instanceof ShadowRoot)&&n.activeElement===t&&t.type!=="range"&&(i&&e===r||u&&t.value.trim()===o)||(t.value=o)}},Ol={deep:!0,created(t,e,r){t[Pt]=Yn(r),An(t,"change",()=>{const i=t._modelValue,u=Gr(t),f=t.checked,d=t[Pt];if(he(i)){const l=es(i,u),o=l!==-1;if(f&&!o)d(i.concat(u));else if(!f&&o){const n=[...i];n.splice(l,1),d(n)}}else if(er(i)){const l=new Set(i);f?l.add(u):l.delete(u),d(l)}else d(gh(t,f))})},mounted:au,beforeUpdate(t,e,r){t[Pt]=Yn(r),au(t,e,r)}};function au(t,{value:e,oldValue:r},i){t._modelValue=e;let u;if(he(e))u=es(e,i.props.value)>-1;else if(er(e))u=e.has(i.props.value);else{if(e===r)return;u=pn(e,gh(t,!0))}t.checked!==u&&(t.checked=u)}const Hl={created(t,{value:e},r){t.checked=pn(e,r.props.value),t[Pt]=Yn(r),An(t,"change",()=>{t[Pt](Gr(t))})},beforeUpdate(t,{value:e,oldValue:r},i){t[Pt]=Yn(i),e!==r&&(t.checked=pn(e,i.props.value))}},gn={deep:!0,created(t,{value:e,modifiers:{number:r}},i){const u=er(e);An(t,"change",()=>{const f=Array.prototype.filter.call(t.options,d=>d.selected).map(d=>r?Ki(Gr(d)):Gr(d));t[Pt](t.multiple?u?new Set(f):f:f[0]),t._assigning=!0,ii(()=>{t._assigning=!1})}),t[Pt]=Yn(i)},mounted(t,{value:e}){lu(t,e)},beforeUpdate(t,e,r){t[Pt]=Yn(r)},updated(t,{value:e}){t._assigning||lu(t,e)}};function lu(t,e){const r=t.multiple,i=he(e);if(!(r&&!i&&!er(e))){for(let u=0,f=t.options.length;u<f;u++){const d=t.options[u],l=Gr(d);if(r)if(i){const o=typeof l;o==="string"||o==="number"?d.selected=e.some(n=>String(n)===String(l)):d.selected=es(e,l)>-1}else d.selected=e.has(l);else if(pn(Gr(d),e)){t.selectedIndex!==u&&(t.selectedIndex=u);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Gr(t){return"_value"in t?t._value:t.value}function gh(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const bh={created(t,e,r){Es(t,e,r,null,"created")},mounted(t,e,r){Es(t,e,r,null,"mounted")},beforeUpdate(t,e,r,i){Es(t,e,r,i,"beforeUpdate")},updated(t,e,r,i){Es(t,e,r,i,"updated")}};function yh(t,e){switch(t){case"SELECT":return gn;case"TEXTAREA":return pe;default:switch(e){case"checkbox":return Ol;case"radio":return Hl;default:return pe}}}function Es(t,e,r,i,u){const d=yh(t.tagName,r.props&&r.props.type)[u];d&&d(t,e,r,i)}function f0(){pe.getSSRProps=({value:t})=>({value:t}),Hl.getSSRProps=({value:t},e)=>{if(e.props&&pn(e.props.value,t))return{checked:!0}},Ol.getSSRProps=({value:t},e)=>{if(he(t)){if(e.props&&es(t,e.props.value)>-1)return{checked:!0}}else if(er(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},bh.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const r=yh(e.type.toUpperCase(),e.props&&e.props.type);if(r.getSSRProps)return r.getSSRProps(t,e)}}const h0=["ctrl","shift","alt","meta"],p0={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>h0.some(r=>t[`${r}Key`]&&!e.includes(r))},ut=(t,e)=>{if(!t)return t;const r=t._withMods||(t._withMods={}),i=e.join(".");return r[i]||(r[i]=((u,...f)=>{for(let d=0;d<e.length;d++){const l=p0[e[d]];if(l&&l(u,e))return}return t(u,...f)}))},m0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},v0=(t,e)=>{const r=t._withKeys||(t._withKeys={}),i=e.join(".");return r[i]||(r[i]=(u=>{if(!("key"in u))return;const f=yt(u.key);if(e.some(d=>d===f||m0[d]===f))return t(u)}))},_h=Ae({patchProp:dh},rh);let Ai,cu=!1;function wh(){return Ai||(Ai=Uf(_h))}function xh(){return Ai=cu?Ai:Bf(_h),cu=!0,Ai}const Sh=((...t)=>{wh().render(...t)}),g0=((...t)=>{xh().hydrate(...t)}),to=((...t)=>{const e=wh().createApp(...t),{mount:r}=e;return e.mount=i=>{const u=Th(i);if(!u)return;const f=e._component;!_e(f)&&!f.render&&!f.template&&(f.template=u.innerHTML),u.nodeType===1&&(u.textContent="");const d=r(u,!1,Eh(u));return u instanceof Element&&(u.removeAttribute("v-cloak"),u.setAttribute("data-v-app","")),d},e}),Ch=((...t)=>{const e=xh().createApp(...t),{mount:r}=e;return e.mount=i=>{const u=Th(i);if(u)return r(u,!0,Eh(u))},e});function Eh(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Th(t){return xe(t)?document.querySelector(t):t}let uu=!1;const b0=()=>{uu||(uu=!0,f0(),Fb())},y0=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:df,BaseTransitionPropsValidators:xl,Comment:Xe,DeprecationTypes:Ib,EffectScope:dl,ErrorCodes:Fv,ErrorTypeStrings:Eb,Fragment:ie,KeepAlive:gg,ReactiveEffect:Ii,Static:vr,Suspense:ab,Teleport:Qv,Text:Jn,TrackOpTypes:Ov,Transition:Ub,TransitionGroup:Ar,TriggerOpTypes:Hv,VueElement:Ao,assertNumber:Vv,callWithAsyncErrorHandling:Zt,callWithErrorHandling:ri,camelize:Ve,capitalize:tr,cloneVNode:vn,compatUtils:Rb,computed:we,createApp:to,createBlock:Js,createCommentVNode:ke,createElementBlock:j,createElementVNode:x,createHydrationRenderer:Bf,createPropsRestProxy:Bg,createRenderer:Uf,createSSRApp:Ch,createSlots:xg,createStaticVNode:nt,createTextVNode:Te,createVNode:se,customRef:Gd,defineAsyncComponent:mg,defineComponent:rs,defineCustomElement:fh,defineEmits:kg,defineExpose:Ag,defineModel:Rg,defineOptions:Mg,defineProps:Tg,defineSSRCustomElement:t0,defineSlots:Ng,devtools:Tb,effect:nv,effectScope:fl,getCurrentInstance:At,getCurrentScope:hl,getCurrentWatcher:Lv,getTransitionRawChildren:_o,guardReactiveProps:Zf,h:ko,handleError:kr,hasInjectionContext:tf,hydrate:g0,hydrateOnIdle:cg,hydrateOnInteraction:hg,hydrateOnMediaQuery:fg,hydrateOnVisible:dg,initCustomFormatter:xb,initDirectivesForSSR:b0,inject:Wt,isMemoSame:eh,isProxy:ts,isReactive:Kt,isReadonly:mn,isRef:Pe,isRuntimeOnly:yb,isShallow:Ot,isVNode:Ln,markRaw:bo,mergeDefaults:Lg,mergeModels:Ug,mergeProps:qf,nextTick:ii,nodeOps:rh,normalizeClass:hn,normalizeProps:bd,normalizeStyle:ni,onActivated:hf,onBeforeMount:vf,onBeforeUnmount:So,onBeforeUpdate:Cl,onDeactivated:pf,onErrorCaptured:_f,onMounted:qe,onRenderTracked:yf,onRenderTriggered:bf,onScopeDispose:Md,onServerPrefetch:gf,onUnmounted:Co,onUpdated:xo,onWatcherCleanup:Jd,openBlock:F,patchProp:dh,popScopeId:Pv,provide:Ei,proxyRefs:yl,pushScopeId:Wv,queuePostFlushCb:Li,reactive:bn,readonly:js,ref:K,registerRuntimeCompiler:bb,render:Sh,renderList:ve,renderSlot:Sg,resolveComponent:ct,resolveDirective:wg,resolveDynamicComponent:_g,resolveFilter:Nb,resolveTransitionHooks:Wr,setBlockTracking:Fi,setDevtoolsHook:kb,setTransitionHooks:Hn,shallowReactive:gl,shallowReadonly:xv,shallowRef:bl,ssrContextKey:nf,ssrUtils:Mb,stop:rv,toDisplayString:Y,toHandlerKey:fr,toHandlers:Cg,toRaw:Re,toRef:Nv,toRefs:Zd,toValue:Ev,transformVNodeArgs:hb,triggerRef:Cv,unref:Ht,useAttrs:Hg,useCssModule:i0,useCssVars:jb,useHost:hh,useId:tg,useModel:Gg,useSSRContext:rf,useShadowRoot:r0,useSlots:Og,useTemplateRef:ng,useTransitionState:wl,vModelCheckbox:Ol,vModelDynamic:bh,vModelRadio:Hl,vModelSelect:gn,vModelText:pe,vShow:ch,version:th,warn:Cb,watch:Lt,watchEffect:Zv,watchPostEffect:qv,watchSyncEffect:sf,withAsyncContext:Dg,withCtx:Ce,withDefaults:Ig,withDirectives:fe,withKeys:v0,withMemo:Sb,withModifiers:ut,withScopeId:Gv},Symbol.toStringTag,{value:"Module"}));let kh;const Mo=t=>kh=t,Ah=Symbol();function Pa(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Mi;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Mi||(Mi={}));function _0(){const t=fl(!0),e=t.run(()=>K({}));let r=[],i=[];const u=bo({install(f){Mo(u),u._a=f,f.provide(Ah,u),f.config.globalProperties.$pinia=u,i.forEach(d=>r.push(d)),i=[]},use(f){return this._a?r.push(f):i.push(f),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return u}const Mh=()=>{};function du(t,e,r,i=Mh){t.add(e);const u=()=>{t.delete(e)&&i()};return!r&&hl()&&Md(u),u}function Rr(t,...e){t.forEach(r=>{r(...e)})}const w0=t=>t(),fu=Symbol(),pa=Symbol();function Ga(t,e){t instanceof Map&&e instanceof Map?e.forEach((r,i)=>t.set(i,r)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const i=e[r],u=t[r];Pa(u)&&Pa(i)&&t.hasOwnProperty(r)&&!Pe(i)&&!Kt(i)?t[r]=Ga(u,i):t[r]=i}return t}const x0=Symbol();function S0(t){return!Pa(t)||!Object.prototype.hasOwnProperty.call(t,x0)}const{assign:$n}=Object;function C0(t){return!!(Pe(t)&&t.effect)}function E0(t,e,r,i){const{state:u,actions:f,getters:d}=e,l=r.state.value[t];let o;function n(){l||(r.state.value[t]=u?u():{});const p=Zd(r.state.value[t]);return $n(p,f,Object.keys(d||{}).reduce((a,m)=>(a[m]=bo(we(()=>{Mo(r);const h=r._s.get(t);return d[m].call(h,h)})),a),{}))}return o=Nh(t,n,e,r,i,!0),o}function Nh(t,e,r={},i,u,f){let d;const l=$n({actions:{}},r),o={deep:!0};let n,p,a=new Set,m=new Set,h;const b=i.state.value[t];!f&&!b&&(i.state.value[t]={});let s;function c(T){let C;n=p=!1,typeof T=="function"?(T(i.state.value[t]),C={type:Mi.patchFunction,storeId:t,events:h}):(Ga(i.state.value[t],T),C={type:Mi.patchObject,payload:T,storeId:t,events:h});const N=s=Symbol();ii().then(()=>{s===N&&(n=!0)}),p=!0,Rr(a,C,i.state.value[t])}const v=f?function(){const{state:C}=r,N=C?C():{};this.$patch(B=>{$n(B,N)})}:Mh;function g(){d.stop(),a.clear(),m.clear(),i._s.delete(t)}const y=(T,C="")=>{if(fu in T)return T[pa]=C,T;const N=function(){Mo(i);const B=Array.from(arguments),M=new Set,L=new Set;function I(H){M.add(H)}function $(H){L.add(H)}Rr(m,{args:B,name:N[pa],store:w,after:I,onError:$});let O;try{O=T.apply(this&&this.$id===t?this:w,B)}catch(H){throw Rr(L,H),H}return O instanceof Promise?O.then(H=>(Rr(M,H),H)).catch(H=>(Rr(L,H),Promise.reject(H))):(Rr(M,O),O)};return N[fu]=!0,N[pa]=C,N},_={_p:i,$id:t,$onAction:du.bind(null,m),$patch:c,$reset:v,$subscribe(T,C={}){const N=du(a,T,C.detached,()=>B()),B=d.run(()=>Lt(()=>i.state.value[t],M=>{(C.flush==="sync"?p:n)&&T({storeId:t,type:Mi.direct,events:h},M)},$n({},o,C)));return N},$dispose:g},w=bn(_);i._s.set(t,w);const E=(i._a&&i._a.runWithContext||w0)(()=>i._e.run(()=>(d=fl()).run(()=>e({action:y}))));for(const T in E){const C=E[T];if(Pe(C)&&!C0(C)||Kt(C))f||(b&&S0(C)&&(Pe(C)?C.value=b[T]:Ga(C,b[T])),i.state.value[t][T]=C);else if(typeof C=="function"){const N=y(C,T);E[T]=N,l.actions[T]=C}}return $n(w,E),$n(Re(w),E),Object.defineProperty(w,"$state",{get:()=>i.state.value[t],set:T=>{c(C=>{$n(C,T)})}}),i._p.forEach(T=>{$n(w,d.run(()=>T({store:w,app:i._a,pinia:i,options:l})))}),b&&f&&r.hydrate&&r.hydrate(w.$state,b),n=!0,p=!0,w}function Rh(t,e,r){let i;const u=typeof e=="function";i=u?r:e;function f(d,l){const o=tf();return d=d||(o?Wt(Ah,null):null),d&&Mo(d),d=kh,d._s.has(t)||(u?Nh(t,e,i,d):E0(t,i,d)),d._s.get(t)}return f.$id=t,f}const Ih=(t,e)=>{const r=t.__vccOpts||t;for(const[i,u]of e)r[i]=u;return r};function Oh(t,e){return function(){return t.apply(e,arguments)}}const{toString:T0}=Object.prototype,{getPrototypeOf:No}=Object,{iterator:Ro,toStringTag:Hh}=Symbol,Io=(t=>e=>{const r=T0.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),tn=t=>(t=t.toLowerCase(),e=>Io(e)===t),Oo=t=>e=>typeof e===t,{isArray:oi}=Array,Zr=Oo("undefined");function os(t){return t!==null&&!Zr(t)&&t.constructor!==null&&!Zr(t.constructor)&&Ut(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Lh=tn("ArrayBuffer");function k0(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Lh(t.buffer),e}const A0=Oo("string"),Ut=Oo("function"),Uh=Oo("number"),as=t=>t!==null&&typeof t=="object",M0=t=>t===!0||t===!1,Rs=t=>{if(Io(t)!=="object")return!1;const e=No(t);
vendor: 12,485 bytes, line 4
4return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Hh in t)&&!(Ro in t)},N0=t=>{if(!as(t)||os(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},R0=tn("Date"),I0=tn("File"),O0=t=>!!(t&&typeof t.uri<"u"),H0=t=>t&&typeof t.getParts<"u",L0=tn("Blob"),U0=tn("FileList"),B0=t=>as(t)&&Ut(t.pipe);function D0(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const hu=D0(),pu=typeof hu.FormData<"u"?hu.FormData:void 0,V0=t=>{if(!t)return!1;if(pu&&t instanceof pu)return!0;const e=No(t);if(!e||e===Object.prototype||!Ut(t.append))return!1;const r=Io(t);return r==="formdata"||r==="object"&&Ut(t.toString)&&t.toString()==="[object FormData]"},F0=tn("URLSearchParams"),[j0,z0,$0,W0]=["ReadableStream","Request","Response","Headers"].map(tn),P0=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ls(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let i,u;if(typeof t!="object"&&(t=[t]),oi(t))for(i=0,u=t.length;i<u;i++)e.call(null,t[i],i,t);else{if(os(t))return;const f=r?Object.getOwnPropertyNames(t):Object.keys(t),d=f.length;let l;for(i=0;i<d;i++)l=f[i],e.call(null,t[l],l,t)}}function Bh(t,e){if(os(t))return null;e=e.toLowerCase();const r=Object.keys(t);let i=r.length,u;for(;i-- >0;)if(u=r[i],e===u.toLowerCase())return u;return null}const ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dh=t=>!Zr(t)&&t!==ar;function Za(){const{caseless:t,skipUndefined:e}=Dh(this)&&this||{},r={},i=(u,f)=>{if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=t&&Bh(r,f)||f;Rs(r[d])&&Rs(u)?r[d]=Za(r[d],u):Rs(u)?r[d]=Za({},u):oi(u)?r[d]=u.slice():(!e||!Zr(u))&&(r[d]=u)};for(let u=0,f=arguments.length;u<f;u++)arguments[u]&&ls(arguments[u],i);return r}const G0=(t,e,r,{allOwnKeys:i}={})=>(ls(e,(u,f)=>{r&&Ut(u)?Object.defineProperty(t,f,{value:Oh(u,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,f,{value:u,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),t),Z0=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),q0=(t,e,r,i)=>{t.prototype=Object.create(e.prototype,i),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},J0=(t,e,r,i)=>{let u,f,d;const l={};if(e=e||{},t==null)return e;do{for(u=Object.getOwnPropertyNames(t),f=u.length;f-- >0;)d=u[f],(!i||i(d,t,e))&&!l[d]&&(e[d]=t[d],l[d]=!0);t=r!==!1&&No(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},X0=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const i=t.indexOf(e,r);return i!==-1&&i===r},Y0=t=>{if(!t)return null;if(oi(t))return t;let e=t.length;if(!Uh(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},K0=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&No(Uint8Array)),Q0=(t,e)=>{const i=(t&&t[Ro]).call(t);let u;for(;(u=i.next())&&!u.done;){const f=u.value;e.call(t,f[0],f[1])}},ey=(t,e)=>{let r;const i=[];for(;(r=t.exec(e))!==null;)i.push(r);return i},ty=tn("HTMLFormElement"),ny=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,u){return i.toUpperCase()+u}),mu=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),ry=tn("RegExp"),Vh=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),i={};ls(r,(u,f)=>{let d;(d=e(u,f,t))!==!1&&(i[f]=d||u)}),Object.defineProperties(t,i)},iy=t=>{Vh(t,(e,r)=>{if(Ut(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=t[r];if(Ut(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},sy=(t,e)=>{const r={},i=u=>{u.forEach(f=>{r[f]=!0})};return oi(t)?i(t):i(String(t).split(e)),r},oy=()=>{},ay=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function ly(t){return!!(t&&Ut(t.append)&&t[Hh]==="FormData"&&t[Ro])}const cy=t=>{const e=new Array(10),r=(i,u)=>{if(as(i)){if(e.indexOf(i)>=0)return;if(os(i))return i;if(!("toJSON"in i)){e[u]=i;const f=oi(i)?[]:{};return ls(i,(d,l)=>{const o=r(d,u+1);!Zr(o)&&(f[l]=o)}),e[u]=void 0,f}}return i};return r(t,0)},uy=tn("AsyncFunction"),dy=t=>t&&(as(t)||Ut(t))&&Ut(t.then)&&Ut(t.catch),Fh=((t,e)=>t?setImmediate:e?((r,i)=>(ar.addEventListener("message",({source:u,data:f})=>{u===ar&&f===r&&i.length&&i.shift()()},!1),u=>{i.push(u),ar.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ut(ar.postMessage)),fy=typeof queueMicrotask<"u"?queueMicrotask.bind(ar):typeof process<"u"&&process.nextTick||Fh,hy=t=>t!=null&&Ut(t[Ro]),Z={isArray:oi,isArrayBuffer:Lh,isBuffer:os,isFormData:V0,isArrayBufferView:k0,isString:A0,isNumber:Uh,isBoolean:M0,isObject:as,isPlainObject:Rs,isEmptyObject:N0,isReadableStream:j0,isRequest:z0,isResponse:$0,isHeaders:W0,isUndefined:Zr,isDate:R0,isFile:I0,isReactNativeBlob:O0,isReactNative:H0,isBlob:L0,isRegExp:ry,isFunction:Ut,isStream:B0,isURLSearchParams:F0,isTypedArray:K0,isFileList:U0,forEach:ls,merge:Za,extend:G0,trim:P0,stripBOM:Z0,inherits:q0,toFlatObject:J0,kindOf:Io,kindOfTest:tn,endsWith:X0,toArray:Y0,forEachEntry:Q0,matchAll:ey,isHTMLForm:ty,hasOwnProperty:mu,hasOwnProp:mu,reduceDescriptors:Vh,freezeMethods:iy,toObjectSet:sy,toCamelCase:ny,noop:oy,toFiniteNumber:ay,findKey:Bh,global:ar,isContextDefined:Dh,isSpecCompliantForm:ly,toJSONObject:cy,isAsyncFn:uy,isThenable:dy,setImmediate:Fh,asap:fy,isIterable:hy};let ye=class jh extends Error{static from(e,r,i,u,f,d){const l=new jh(e.message,r||e.code,i,u,f);return l.cause=e,l.name=e.name,e.status!=null&&l.status==null&&(l.status=e.status),d&&Object.assign(l,d),l}constructor(e,r,i,u,f){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),i&&(this.config=i),u&&(this.request=u),f&&(this.response=f,this.status=f.status)}toJSON(){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:Z.toJSONObject(this.config),code:this.code,status:this.status}}};ye.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ye.ERR_BAD_OPTION="ERR_BAD_OPTION";ye.ECONNABORTED="ECONNABORTED";ye.ETIMEDOUT="ETIMEDOUT";ye.ERR_NETWORK="ERR_NETWORK";ye.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ye.ERR_DEPRECATED="ERR_DEPRECATED";ye.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ye.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ye.ERR_CANCELED="ERR_CANCELED";ye.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ye.ERR_INVALID_URL="ERR_INVALID_URL";ye.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const py=null;function qa(t){return Z.isPlainObject(t)||Z.isArray(t)}function zh(t){return Z.endsWith(t,"[]")?t.slice(0,-2):t}function ma(t,e,r){return t?t.concat(e).map(function(u,f){return u=zh(u),!r&&f?"["+u+"]":u}).join(r?".":""):e}function my(t){return Z.isArray(t)&&!t.some(qa)}const vy=Z.toFlatObject(Z,{},null,function(e){return/^is[A-Z]/.test(e)});function Ho(t,e,r){if(!Z.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=Z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,v){return!Z.isUndefined(v[c])});const i=r.metaTokens,u=r.visitor||a,f=r.dots,d=r.indexes,l=r.Blob||typeof Blob<"u"&&Blob,o=r.maxDepth===void 0?100:r.maxDepth,n=l&&Z.isSpecCompliantForm(e);if(!Z.isFunction(u))throw new TypeError("visitor must be a function");function p(s){if(s===null)return"";if(Z.isDate(s))return s.toISOString();if(Z.isBoolean(s))return s.toString();if(!n&&Z.isBlob(s))throw new ye("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(s)||Z.isTypedArray(s)?n&&typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function a(s,c,v){let g=s;if(Z.isReactNative(e)&&Z.isReactNativeBlob(s))return e.append(ma(v,c,f),p(s)),!1;if(s&&!v&&typeof s=="object"){if(Z.endsWith(c,"{}"))c=i?c:c.slice(0,-2),s=JSON.stringify(s);else if(Z.isArray(s)&&my(s)||(Z.isFileList(s)||Z.endsWith(c,"[]"))&&(g=Z.toArray(s)))return c=zh(c),g.forEach(function(_,w){!(Z.isUndefined(_)||_===null)&&e.append(d===!0?ma([c],w,f):d===null?c:c+"[]",p(_))}),!1}return qa(s)?!0:(e.append(ma(v,c,f),p(s)),!1)}const m=[],h=Object.assign(vy,{defaultVisitor:a,convertValue:p,isVisitable:qa});function b(s,c,v=0){if(!Z.isUndefined(s)){if(v>o)throw new ye("Object is too deeply nested ("+v+" levels). Max depth: "+o,ye.ERR_FORM_DATA_DEPTH_EXCEEDED);if(m.indexOf(s)!==-1)throw Error("Circular reference detected in "+c.join("."));m.push(s),Z.forEach(s,function(y,_){(!(Z.isUndefined(y)||y===null)&&u.call(e,y,Z.isString(_)?_.trim():_,c,h))===!0&&b(y,c?c.concat(_):[_],v+1)}),m.pop()}}if(!Z.isObject(t))throw new TypeError("data must be an object");return b(t),e}function vu(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(i){return e[i]})}function Ll(t,e){this._pairs=[],t&&Ho(t,this,e)}const $h=Ll.prototype;$h.append=function(e,r){this._pairs.push([e,r])};$h.toString=function(e){const r=e?function(i){return e.call(this,i,vu)}:vu;return this._pairs.map(function(u){return r(u[0])+"="+r(u[1])},"").join("&")};function gy(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wh(t,e,r){if(!e)return t;const i=r&&r.encode||gy,u=Z.isFunction(r)?{serialize:r}:r,f=u&&u.serialize;let d;if(f?d=f(e,u):d=Z.isURLSearchParams(e)?e.toString():new Ll(e,u).toString(i),d){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+d}return t}class gu{constructor(){this.handlers=[]}use(e,r,i){return this.handlers.push({fulfilled:e,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Z.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Ul={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},by=typeof URLSearchParams<"u"?URLSearchParams:Ll,yy=typeof FormData<"u"?FormData:null,_y=typeof Blob<"u"?Blob:null,wy={isBrowser:!0,classes:{URLSearchParams:by,FormData:yy,Blob:_y},protocols:["http","https","file","blob","url","data"]},Bl=typeof window<"u"&&typeof document<"u",Ja=typeof navigator=="object"&&navigator||void 0,xy=Bl&&(!Ja||["ReactNative","NativeScript","NS"].indexOf(Ja.product)<0),Sy=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Cy=Bl&&window.location.href||"http://localhost",Ey=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bl,hasStandardBrowserEnv:xy,hasStandardBrowserWebWorkerEnv:Sy,navigator:Ja,origin:Cy},Symbol.toStringTag,{value:"Module"})),_t={...Ey,...wy};function Ty(t,e){return Ho(t,new _t.classes.URLSearchParams,{visitor:function(r,i,u,f){return _t.isNode&&Z.isBuffer(r)?(this.append(i,r.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)},...e})}function ky(t){return Z.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ay(t){const e={},r=Object.keys(t);let i;const u=r.length;let f;for(i=0;i<u;i++)f=r[i],e[f]=t[f];return e}function Ph(t){function e(r,i,u,f){let d=r[f++];if(d==="__proto__")return!0;const l=Number.isFinite(+d),o=f>=r.length;return d=!d&&Z.isArray(u)?u.length:d,o?(Z.hasOwnProp(u,d)?u[d]=Z.isArray(u[d])?u[d].concat(i):[u[d],i]:u[d]=i,!l):((!u[d]||!Z.isObject(u[d]))&&(u[d]=[]),e(r,i,u[d],f)&&Z.isArray(u[d])&&(u[d]=Ay(u[d])),!l)}if(Z.isFormData(t)&&Z.isFunction(t.entries)){const r={};return Z.forEachEntry(t,(i,u)=>{e(ky(i),u,r,0)}),r}return null}const Ir=(t,e)=>t!=null&&Z.hasOwnProp(t,e)?t[e]:void 0;function My(t,e,r){if(Z.isString(t))try{return(e||JSON.parse)(t),Z.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(t)}const cs={transitional:Ul,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",u=i.indexOf("application/json")>-1,f=Z.isObject(e);if(f&&Z.isHTMLForm(e)&&(e=new FormData(e)),Z.isFormData(e))return u?JSON.stringify(Ph(e)):e;if(Z.isArrayBuffer(e)||Z.isBuffer(e)||Z.isStream(e)||Z.isFile(e)||Z.isBlob(e)||Z.isReadableStream(e))return e;if(Z.isArrayBufferView(e))return e.buffer;if(Z.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;
vendor: 4,134 bytes, lines 4-5
4if(f){const o=Ir(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return Ty(e,o).toString();if((l=Z.isFileList(e))||i.indexOf("multipart/form-data")>-1){const n=Ir(this,"env"),p=n&&n.FormData;return Ho(l?{"files[]":e}:e,p&&new p,o)}}return f||u?(r.setContentType("application/json",!1),My(e)):e}],transformResponse:[function(e){const r=Ir(this,"transitional")||cs.transitional,i=r&&r.forcedJSONParsing,u=Ir(this,"responseType"),f=u==="json";if(Z.isResponse(e)||Z.isReadableStream(e))return e;if(e&&Z.isString(e)&&(i&&!u||f)){const l=!(r&&r.silentJSONParsing)&&f;try{return JSON.parse(e,Ir(this,"parseReviver"))}catch(o){if(l)throw o.name==="SyntaxError"?ye.from(o,ye.ERR_BAD_RESPONSE,this,null,Ir(this,"response")):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_t.classes.FormData,Blob:_t.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],t=>{cs.headers[t]={}});const Ny=Z.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"]),Ry=t=>{const e={};let r,i,u;return t&&t.split(` 5`).forEach(function(d){u=d.indexOf(":"),r=d.substring(0,u).trim().toLowerCase(),i=d.substring(u+1).trim(),!(!r||e[r]&&Ny[r])&&(r==="set-cookie"?e[r]?e[r].push(i):e[r]=[i]:e[r]=e[r]?e[r]+", "+i:i)}),e},bu=Symbol("internals"),Iy=/[^\x09\x20-\x7E\x80-\xFF]/g;function Oy(t){let e=0,r=t.length;for(;e<r;){const i=t.charCodeAt(e);if(i!==9&&i!==32)break;e+=1}for(;r>e;){const i=t.charCodeAt(r-1);if(i!==9&&i!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}function pi(t){return t&&String(t).trim().toLowerCase()}function Hy(t){return Oy(t.replace(Iy,""))}function Is(t){return t===!1||t==null?t:Z.isArray(t)?t.map(Is):Hy(String(t))}function Ly(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(t);)e[i[1]]=i[2];return e}const Uy=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function va(t,e,r,i,u){if(Z.isFunction(i))return i.call(this,e,r);if(u&&(e=r),!!Z.isString(e)){if(Z.isString(i))return e.indexOf(i)!==-1;if(Z.isRegExp(i))return i.test(e)}}function By(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,i)=>r.toUpperCase()+i)}function Dy(t,e){const r=Z.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+r,{value:function(u,f,d){return this[i].call(this,e,u,f,d)},configurable:!0})})}let Bt=class{constructor(e){e&&this.set(e)}set(e,r,i){const u=this;function f(l,o,n){const p=pi(o);if(!p)throw new Error("header name must be a non-empty string");const a=Z.findKey(u,p);(!a||u[a]===void 0||n===!0||n===void 0&&u[a]!==!1)&&(u[a||o]=Is(l))}const d=(l,o)=>Z.forEach(l,(n,p)=>f(n,p,o));if(Z.isPlainObject(e)||e instanceof this.constructor)d(e,r);else if(Z.isString(e)&&(e=e.trim())&&!Uy(e))d(Ry(e),r);else if(Z.isObject(e)&&Z.isIterable(e)){let l={},o,n;for(const p of e){if(!Z.isArray(p))throw TypeError("Object iterator must return a key-value pair");l[n=p[0]]=(o=l[n])?Z.isArray(o)?[...o,p[1]]:[o,p[1]]:p[1]}d(l,r)}else e!=null&&f(r,e,i);return this}get(e,r){if(e=pi(e),e){const i=Z.findKey(this,e);if(i){const u=this[i];if(!r)return u;if(r===!0)return Ly(u);if(Z.isFunction(r))return r.call(this,u,i);if(Z.isRegExp(r))return r.exec(u);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=pi(e),e){const i=Z.findKey(this,e);return!!(i&&this[i]!==void 0&&(!r||va(this,this[i],i,r)))}return!1}delete(e,r){const i=this;let u=!1;function f(d){if(d=pi(d),d){const l=Z.findKey(i,d);l&&(!r||va(i,i[l],l,r))&&(delete i[l],u=!0)}}return Z.isArray(e)?e.forEach(f):f(e),u}clear(e){const r=Object.keys(this);let i=r.length,u=!1;for(;i--;){const f=r[i];(!e||va(this,this[f],f,e,!0))&&(delete this[f],u=!0)}return u}normalize(e){const r=this,i={};return Z.forEach(this,(u,f)=>{const d=Z.findKey(i,f);
vendor: 4,158 bytes, lines 5-6
5if(d){r[d]=Is(u),delete r[f];return}const l=e?By(f):String(f).trim();l!==f&&delete r[f],r[l]=Is(u),i[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return Z.forEach(this,(i,u)=>{i!=null&&i!==!1&&(r[u]=e&&Z.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` 6`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const i=new this(e);return r.forEach(u=>i.set(u)),i}static accessor(e){const i=(this[bu]=this[bu]={accessors:{}}).accessors,u=this.prototype;function f(d){const l=pi(d);i[l]||(Dy(u,d),i[l]=!0)}return Z.isArray(e)?e.forEach(f):f(e),this}};Bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Bt.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[r]=i}}});Z.freezeMethods(Bt);function ga(t,e){const r=this||cs,i=e||r,u=Bt.from(i.headers);let f=i.data;return Z.forEach(t,function(l){f=l.call(r,f,u.normalize(),e?e.status:void 0)}),u.normalize(),f}function Gh(t){return!!(t&&t.__CANCEL__)}let us=class extends ye{constructor(e,r,i){super(e??"canceled",ye.ERR_CANCELED,r,i),this.name="CanceledError",this.__CANCEL__=!0}};function Zh(t,e,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):e(new ye("Request failed with status code "+r.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Vy(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Fy(t,e){t=t||10;const r=new Array(t),i=new Array(t);let u=0,f=0,d;return e=e!==void 0?e:1e3,function(o){const n=Date.now(),p=i[f];d||(d=n),r[u]=o,i[u]=n;let a=f,m=0;for(;a!==u;)m+=r[a++],a=a%t;if(u=(u+1)%t,u===f&&(f=(f+1)%t),n-d<e)return;const h=p&&n-p;return h?Math.round(m*1e3/h):void 0}}function jy(t,e){let r=0,i=1e3/e,u,f;const d=(n,p=Date.now())=>{r=p,u=null,f&&(clearTimeout(f),f=null),t(...n)};return[(...n)=>{const p=Date.now(),a=p-r;a>=i?d(n,p):(u=n,f||(f=setTimeout(()=>{f=null,d(u)},i-a)))},()=>u&&d(u)]}const no=(t,e,r=3)=>{let i=0;const u=Fy(50,250);return jy(f=>{const d=f.loaded,l=f.lengthComputable?f.total:void 0,o=l!=null?Math.min(d,l):d,n=Math.max(0,o-i),p=u(n);i=Math.max(i,o);const a={loaded:o,total:l,progress:l?o/l:void 0,bytes:n,rate:p||void 0,estimated:p&&l?(l-o)/p:void 0,event:f,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(a)},r)},yu=(t,e)=>{const r=t!=null;return[i=>e[0]({lengthComputable:r,total:t,loaded:i}),e[1]]},_u=t=>(...e)=>Z.asap(()=>t(...e)),zy=_t.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,_t.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(_t.origin),_t.navigator&&/(msie|trident)/i.test(_t.navigator.userAgent)):()=>!0,$y=_t.hasStandardBrowserEnv?{write(t,e,r,i,u,f,d){if(typeof document>"u")return;const l=[`${t}=${encodeURIComponent(e)}`];Z.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),Z.isString(i)&&l.push(`path=${i}`),Z.isString(u)&&l.push(`domain=${u}`),f===!0&&l.push("secure"),Z.isString(d)&&l.push(`SameSite=${d}`),document.cookie=l.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Wy(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Py(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function qh(t,e,r){let i=!Wy(e);return t&&(i||r===!1)?Py(t,e):e}const wu=t=>t instanceof Bt?{...t}:t;function wr(t,e){e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(n,p,a,m){return Z.isPlainObject(n)&&Z.isPlainObject(p)?Z.merge.call({caseless:m},n,p):Z.isPlainObject(p)?Z.merge({},p):Z.isArray(p)?p.slice():p}
6function u(n,p,a,m){if(Z.isUndefined(p)){if(!Z.isUndefined(n))return i(void 0,n,a,m)}else return i(n,p,a,m)}function f(n,p){if(!Z.isUndefined(p))return i(void 0,p)}function d(n,p){if(Z.isUndefined(p)){if(!Z.isUndefined(n))return i(void 0,n)}else return i(void 0,p)}function l(n,p,a){if(Z.hasOwnProp(e,a))return i(n,p);if(Z.hasOwnProp(t,a))return i(void 0,n)}const o={url:f,method:f,data:f,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,allowedSocketPaths:d,responseEncoding:d,validateStatus:l,headers:(n,p,a)=>u(wu(n),wu(p),a,!0)};return Z.forEach(Object.keys({...t,...e}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const a=Z.hasOwnProp(o,p)?o[p]:u,m=Z.hasOwnProp(t,p)?t[p]:void 0,h=Z.hasOwnProp(e,p)?e[p]:void 0,b=a(m,h,p);Z.isUndefined(b)&&a!==l||(r[p]=b)}),r}const Jh=t=>{const e=wr({},t),r=m=>Z.hasOwnProp(e,m)?e[m]:void 0,i=r("data");let u=r("withXSRFToken");const f=r("xsrfHeaderName"),d=r("xsrfCookieName");let l=r("headers");const o=r("auth"),n=r("baseURL"),p=r("allowAbsoluteUrls"),a=r("url");if(e.headers=l=Bt.from(l),e.url=Wh(qh(n,a,p),t.params,t.paramsSerializer),o&&l.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),Z.isFormData(i)){if(_t.hasStandardBrowserEnv||_t.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(Z.isFunction(i.getHeaders)){const m=i.getHeaders(),h=["content-type","content-length"];Object.entries(m).forEach(([b,s])=>{h.includes(b.toLowerCase())&&l.set(b,s)})}}if(_t.hasStandardBrowserEnv&&(Z.isFunction(u)&&(u=u(e)),u===!0||u==null&&zy(e.url))){const h=f&&d&&$y.read(d);h&&l.set(f,h)}return e},Gy=typeof XMLHttpRequest<"u",Zy=Gy&&function(t){return new Promise(function(r,i){const u=Jh(t);let f=u.data;const d=Bt.from(u.headers).normalize();let{responseType:l,onUploadProgress:o,onDownloadProgress:n}=u,p,a,m,h,b;function s(){h&&h(),b&&b(),u.cancelToken&&u.cancelToken.unsubscribe(p),u.signal&&u.signal.removeEventListener("abort",p)}let c=new XMLHttpRequest;c.open(u.method.toUpperCase(),u.url,!0),c.timeout=u.timeout;function v(){if(!c)return;const y=Bt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:y,config:t,request:c};Zh(function(E){r(E),s()},function(E){i(E),s()},w),c=null}"onloadend"in c?c.onloadend=v:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(v)},c.onabort=function(){c&&(i(new ye("Request aborted",ye.ECONNABORTED,t,c)),c=null)},c.onerror=function(_){const w=_&&_.message?_.message:"Network Error",S=new ye(w,ye.ERR_NETWORK,t,c);S.event=_||null,i(S),c=null},c.ontimeout=function(){let _=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const w=u.transitional||Ul;u.timeoutErrorMessage&&(_=u.timeoutErrorMessage),i(new ye(_,w.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,t,c)),c=null},f===void 0&&d.setContentType(null),"setRequestHeader"in c&&Z.forEach(d.toJSON(),function(_,w){c.setRequestHeader(w,_)}),Z.isUndefined(u.withCredentials)||(c.withCredentials=!!u.withCredentials),l&&l!=="json"&&(c.responseType=u.responseType),n&&([m,b]=no(n,!0),c.addEventListener("progress",m)),o&&c.upload&&([a,h]=no(o),c.upload.addEventListener("progress",a),c.upload.addEventListener("loadend",h)),(u.cancelToken||u.signal)&&(p=y=>{c&&(i(!y||y.type?new us(null,t,c):y),c.abort(),c=null)},u.cancelToken&&u.cancelToken.subscribe(p),u.signal&&(u.signal.aborted?p():u.signal.addEventListener("abort",p)));const g=Vy(u.url);if(g&&_t.protocols.indexOf(g)===-1){i(new ye("Unsupported protocol "+g+":",ye.ERR_BAD_REQUEST,t));return}c.send(f||null)})},qy=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let i=new AbortController,u;
vendor: 5,166 bytes, lines 6-8
6const f=function(n){if(!u){u=!0,l();const p=n instanceof Error?n:this.reason;i.abort(p instanceof ye?p:new us(p instanceof Error?p.message:p))}};let d=e&&setTimeout(()=>{d=null,f(new ye(`timeout of ${e}ms exceeded`,ye.ETIMEDOUT))},e);const l=()=>{t&&(d&&clearTimeout(d),d=null,t.forEach(n=>{n.unsubscribe?n.unsubscribe(f):n.removeEventListener("abort",f)}),t=null)};t.forEach(n=>n.addEventListener("abort",f));const{signal:o}=i;return o.unsubscribe=()=>Z.asap(l),o}},Jy=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let i=0,u;for(;i<r;)u=i+e,yield t.slice(i,u),i=u},Xy=async function*(t,e){for await(const r of Yy(t))yield*Jy(r,e)},Yy=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:i}=await e.read();if(r)break;yield i}}finally{await e.cancel()}},xu=(t,e,r,i)=>{const u=Xy(t,e);let f=0,d,l=o=>{d||(d=!0,i&&i(o))};return new ReadableStream({async pull(o){try{const{done:n,value:p}=await u.next();if(n){l(),o.close();return}let a=p.byteLength;if(r){let m=f+=a;r(m)}o.enqueue(new Uint8Array(p))}catch(n){throw l(n),n}},cancel(o){return l(o),u.return()}},{highWaterMark:2})},Su=64*1024,{isFunction:Ts}=Z,Ky=(({Request:t,Response:e})=>({Request:t,Response:e}))(Z.global),{ReadableStream:Cu,TextEncoder:Eu}=Z.global,Tu=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Qy=t=>{t=Z.merge.call({skipUndefined:!0},Ky,t);const{fetch:e,Request:r,Response:i}=t,u=e?Ts(e):typeof fetch=="function",f=Ts(r),d=Ts(i);if(!u)return!1;const l=u&&Ts(Cu),o=u&&(typeof Eu=="function"?(b=>s=>b.encode(s))(new Eu):async b=>new Uint8Array(await new r(b).arrayBuffer())),n=f&&l&&Tu(()=>{let b=!1;const s=new r(_t.origin,{body:new Cu,method:"POST",get duplex(){return b=!0,"half"}}),c=s.headers.has("Content-Type");return s.body!=null&&s.body.cancel(),b&&!c}),p=d&&l&&Tu(()=>Z.isReadableStream(new i("").body)),a={stream:p&&(b=>b.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!a[b]&&(a[b]=(s,c)=>{let v=s&&s[b];if(v)return v.call(s);throw new ye(`Response type '${b}' is not supported`,ye.ERR_NOT_SUPPORT,c)})});const m=async b=>{if(b==null)return 0;if(Z.isBlob(b))return b.size;if(Z.isSpecCompliantForm(b))return(await new r(_t.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(b)||Z.isArrayBuffer(b))return b.byteLength;if(Z.isURLSearchParams(b)&&(b=b+""),Z.isString(b))return(await o(b)).byteLength},h=async(b,s)=>{const c=Z.toFiniteNumber(b.getContentLength());return c??m(s)};return async b=>{let{url:s,method:c,data:v,signal:g,cancelToken:y,timeout:_,onDownloadProgress:w,onUploadProgress:S,responseType:E,headers:T,withCredentials:C="same-origin",fetchOptions:N}=Jh(b),B=e||fetch;E=E?(E+"").toLowerCase():"text";let M=qy([g,y&&y.toAbortSignal()],_),L=null;const I=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let $;try{if(S&&n&&c!=="get"&&c!=="head"&&($=await h(T,v))!==0){let A=new r(s,{method:"POST",body:v,duplex:"half"}),X;if(Z.isFormData(v)&&(X=A.headers.get("content-type"))&&T.setContentType(X),A.body){const[G,ce]=yu($,no(_u(S)));v=xu(A.body,Su,G,ce)}}Z.isString(C)||(C=C?"include":"omit");const O=f&&"credentials"in r.prototype;if(Z.isFormData(v)){const A=T.getContentType();A&&/^multipart\/form-data/i.test(A)&&!/boundary=/i.test(A)&&T.delete("content-type")}const H={...N,signal:M,method:c.toUpperCase(),headers:T.normalize().toJSON(),body:v,duplex:"half",credentials:O?C:void 0};L=f&&new r(s,H);let D=await(f?B(L,N):B(s,H));const R=p&&(E==="stream"||E==="response");if(p&&(w||R&&I)){const A={};["status","statusText","headers"].forEach(Ie=>{A[Ie]=D[Ie]});const X=Z.toFiniteNumber(D.headers.get("content-length")),[G,ce]=w&&yu(X,no(_u(w),!0))||[];D=new i(xu(D.body,Su,G,()=>{ce&&ce(),I&&I()}),A)}E=E||"text";let z=await a[Z.findKey(a,E)||"text"](D,b);return!R&&I&&I(),await new Promise((A,X)=>{Zh(A,X,{data:z,headers:Bt.from(D.headers),status:D.status,statusText:D.statusText,config:b,request:L})})}catch(O){throw I&&I(),O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,b,L,O&&O.response),{cause:O.cause||O}):ye.from(O,O&&O.code,b,L,O&&O.response)}}},e_=new Map,Xh=t=>{let e=t&&t.env||{};const{fetch:r,Request:i,Response:u}=e,f=[i,u,r];let d=f.length,l=d,o,n,p=e_;for(;l--;)o=f[l],n=p.get(o),n===void 0&&p.set(o,n=l?new Map:Qy(e)),p=n;return n};Xh();const Dl={http:py,xhr:Zy,fetch:{get:Xh}};Z.forEach(Dl,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ku=t=>`- ${t}`,t_=t=>Z.isFunction(t)||t===null||t===!1;function n_(t,e){t=Z.isArray(t)?t:[t];const{length:r}=t;let i,u;const f={};for(let d=0;d<r;d++){i=t[d];let l;if(u=i,!t_(i)&&(u=Dl[(l=String(i)).toLowerCase()],u===void 0))throw new ye(`Unknown adapter '${l}'`);if(u&&(Z.isFunction(u)||(u=u.get(e))))break;f[l||"#"+d]=u}if(!u){const d=Object.entries(f).map(([o,n])=>`adapter ${o} `+(n===!1?"is not supported by the environment":"is not available in the build"));let l=r?d.length>1?`since : 7`+d.map(ku).join(` 8`):" "+ku(d[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return u}
vendor: 5,061 bytes, lines 8-12
8const Yh={getAdapter:n_,adapters:Dl};function ba(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new us(null,t)}function Au(t){return ba(t),t.headers=Bt.from(t.headers),t.data=ga.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Yh.getAdapter(t.adapter||cs.adapter,t)(t).then(function(i){return ba(t),i.data=ga.call(t,t.transformResponse,i),i.headers=Bt.from(i.headers),i},function(i){return Gh(i)||(ba(t),i&&i.response&&(i.response.data=ga.call(t,t.transformResponse,i.response),i.response.headers=Bt.from(i.response.headers))),Promise.reject(i)})}const Kh="1.15.2",Lo={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Lo[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Mu={};Lo.transitional=function(e,r,i){function u(f,d){return"[Axios v"+Kh+"] Transitional option '"+f+"'"+d+(i?". "+i:"")}return(f,d,l)=>{if(e===!1)throw new ye(u(d," has been removed"+(r?" in "+r:"")),ye.ERR_DEPRECATED);return r&&!Mu[d]&&(Mu[d]=!0,console.warn(u(d," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(f,d,l):!0}};Lo.spelling=function(e){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function r_(t,e,r){if(typeof t!="object")throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let u=i.length;for(;u-- >0;){const f=i[u],d=Object.prototype.hasOwnProperty.call(e,f)?e[f]:void 0;if(d){const l=t[f],o=l===void 0||d(l,f,t);if(o!==!0)throw new ye("option "+f+" must be "+o,ye.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ye("Unknown option "+f,ye.ERR_BAD_OPTION)}}const Os={assertOptions:r_,validators:Lo},$t=Os.validators;let gr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new gu,response:new gu}}async request(e,r){try{return await this._request(e,r)}catch(i){if(i instanceof Error){let u={};Error.captureStackTrace?Error.captureStackTrace(u):u=new Error;const f=(()=>{if(!u.stack)return"";const d=u.stack.indexOf(` 9`);return d===-1?"":u.stack.slice(d+1)})();try{if(!i.stack)i.stack=f;else if(f){const d=f.indexOf(` 10`),l=d===-1?-1:f.indexOf(` 11`,d+1),o=l===-1?"":f.slice(l+1);String(i.stack).endsWith(o)||(i.stack+=` 12`+f)}}catch{}}throw i}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=wr(this.defaults,r);const{transitional:i,paramsSerializer:u,headers:f}=r;i!==void 0&&Os.assertOptions(i,{silentJSONParsing:$t.transitional($t.boolean),forcedJSONParsing:$t.transitional($t.boolean),clarifyTimeoutError:$t.transitional($t.boolean),legacyInterceptorReqResOrdering:$t.transitional($t.boolean)},!1),u!=null&&(Z.isFunction(u)?r.paramsSerializer={serialize:u}:Os.assertOptions(u,{encode:$t.function,serialize:$t.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Os.assertOptions(r,{baseUrl:$t.spelling("baseURL"),withXsrfToken:$t.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let d=f&&Z.merge(f.common,f[r.method]);f&&Z.forEach(["delete","get","head","post","put","patch","common"],b=>{delete f[b]}),r.headers=Bt.concat(d,f);const l=[];let o=!0;this.interceptors.request.forEach(function(s){if(typeof s.runWhen=="function"&&s.runWhen(r)===!1)return;o=o&&s.synchronous;const c=r.transitional||Ul;c&&c.legacyInterceptorReqResOrdering?l.unshift(s.fulfilled,s.rejected):l.push(s.fulfilled,s.rejected)});const n=[];this.interceptors.response.forEach(function(s){n.push(s.fulfilled,s.rejected)});let p,a=0,m;if(!o){const b=[Au.bind(this),void 0];for(b.unshift(...l),b.push(...n),m=b.length,p=Promise.resolve(r);a<m;)p=p.then(b[a++],b[a++]);return p}m=l.length;let h=r;for(;a<m;){const b=l[a++],s=l[a++];try{h=b(h)}catch(c){s.call(this,c);break}}try{p=Au.call(this,h)}catch(b){return Promise.reject(b)}for(a=0,m=n.length;a<m;)p=p.then(n[a++],n[a++]);return p}getUri(e){e=wr(this.defaults,e);const r=qh(e.baseURL,e.url,e.allowAbsoluteUrls);return Wh(r,e.params,e.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(e){gr.prototype[e]=function(r,i){return this.request(wr(i||{},{method:e,url:r,data:(i||{}).data}))}});Z.forEach(["post","put","patch"],function(e){function r(i){return function(f,d,l){return this.request(wr(l||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:f,data:d}))}}gr.prototype[e]=r(),gr.prototype[e+"Form"]=r(!0)});let i_=class Qh{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(f){r=f});const i=this;this.promise.then(u=>{if(!i._listeners)return;let f=i._listeners.length;for(;f-- >0;)i._listeners[f](u);i._listeners=null}),this.promise.then=u=>{let f;const d=new Promise(l=>{i.subscribe(l),f=l}).then(u);return d.cancel=function(){i.unsubscribe(f)},d},e(function(f,d,l){i.reason||(i.reason=new us(f,d,l),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
12subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=i=>{e.abort(i)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new Qh(function(u){e=u}),cancel:e}}};function s_(t){return function(r){return t.apply(null,r)}}function o_(t){return Z.isObject(t)&&t.isAxiosError===!0}const Xa={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Xa).forEach(([t,e])=>{Xa[e]=t});function ep(t){const e=new gr(t),r=Oh(gr.prototype.request,e);return Z.extend(r,gr.prototype,e,{allOwnKeys:!0}),Z.extend(r,e,null,{allOwnKeys:!0}),r.create=function(u){return ep(wr(t,u))},r}const Ke=ep(cs);Ke.Axios=gr;Ke.CanceledError=us;Ke.CancelToken=i_;Ke.isCancel=Gh;Ke.VERSION=Kh;Ke.toFormData=Ho;Ke.AxiosError=ye;Ke.Cancel=Ke.CanceledError;Ke.all=function(e){return Promise.all(e)};Ke.spread=s_;Ke.isAxiosError=o_;Ke.mergeConfig=wr;Ke.AxiosHeaders=Bt;Ke.formToJSON=t=>Ph(Z.isHTMLForm(t)?new FormData(t):t);Ke.getAdapter=Yh.getAdapter;Ke.HttpStatusCode=Xa;Ke.default=Ke;const{Axios:ak,AxiosError:lk,CanceledError:ck,isCancel:uk,CancelToken:dk,VERSION:fk,all:hk,Cancel:pk,isAxiosError:mk,spread:vk,toFormData:gk,AxiosHeaders:bk,HttpStatusCode:yk,formToJSON:_k,getAdapter:wk,mergeConfig:xk}=Ke;class xi extends Error{}xi.prototype.name="InvalidTokenError";function a_(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let i=r.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i}))}function l_(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return a_(e)}catch{return atob(e)}}function Nu(t,e){if(typeof t!="string")throw new xi("Invalid token specified: must be a string");e||(e={});const r=e.header===!0?0:1,i=t.split(".")[r];if(typeof i!="string")throw new xi(`Invalid token specified: missing part #${r+1}`);let u;try{u=l_(i)}catch(f){throw new xi(`Invalid token specified: invalid base64 for part #${r+1} (${f.message})`)}try{return JSON.parse(u)}catch(f){throw new xi(`Invalid token specified: invalid json for part #${r+1} (${f.message})`)}}const be=Ke.create({baseURL:"https://api.additime.com"});be.interceptors.request.use(t=>{const e=localStorage.getItem("token");return e&&(t.headers.Authorization=`Bearer ${e}`),t});function c_(t){try{return JSON.parse(atob(t.split(".")[1]))}catch{return null}}const nn=Rh("auth",{state:()=>({token:localStorage.getItem("token")||null,user:localStorage.getItem("token")?Nu(localStorage.getItem("token")):null}),getters:{isAuthenticated:t=>!!t.token},actions:{async login(t){console.log("LOGIN:");const e=await be.post("/login",t);this.token=e.data.token,console.log("DECODED TOKEN:",Nu(this.token)),localStorage.setItem("token",this.token),this.user=c_(this.token),console.log("USER FROM API:",this.user),console.log("ROLES:",this.user.roles),console.log("TYPE:",typeof this.user.roles)},logout(){this.token=null,this.user=null,localStorage.removeItem("token")}}}),u_={id:"app"},d_={__name:"App",setup(t){const e=nn();return console.log("USER:",e.user),(r,i)=>{const u=ct("router-view");return F(),j("div",u_,[x("main",null,[se(u)])])}}},f_=Ih(d_,[["__scopeId","data-v-cacda7a4"]]);const Ur=typeof document<"u";function tp(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function h_(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&tp(t.default)}const De=Object.assign;function ya(t,e){const r={};for(const i in e){const u=e[i];r[i]=en(u)?u.map(t):t(u)}return r}const Ni=()=>{},en=Array.isArray;function Ru(t,e){const r={};for(const i in t)r[i]=i in e?e[i]:t[i];return r}const np=/#/g,p_=/&/g,m_=/\//g,v_=/=/g,g_=/\?/g,rp=/\+/g,b_=/%5B/g,y_=/%5D/g,ip=/%5E/g,__=/%60/g,sp=/%7B/g,w_=/%7C/g,op=/%7D/g,x_=/%20/g;function Vl(t){return t==null?"":encodeURI(""+t).replace(w_,"|").replace(b_,"[").replace(y_,"]")}function S_(t){return Vl(t).replace(sp,"{").replace(op,"}").replace(ip,"^")}function Ya(t){return Vl(t).replace(rp,"%2B").replace(x_,"+").replace(np,"%23").replace(p_,"%26").replace(__,"`").replace(sp,"{").replace(op,"}").replace(ip,"^")}function C_(t){return Ya(t).replace(v_,"%3D")}function E_(t){return Vl(t).replace(np,"%23").replace(g_,"%3F")}function T_(t){return E_(t).replace(m_,"%2F")}function zi(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch{}return""+t}const k_=/\/$/,A_=t=>t.replace(k_,"");function _a(t,e,r="/"){let i,u={},f="",d="";const l=e.indexOf("#");let o=e.indexOf("?");return o=l>=0&&o>l?-1:o,o>=0&&(i=e.slice(0,o),f=e.slice(o,l>0?l:e.length),u=t(f.slice(1))),l>=0&&(i=i||e.slice(0,l),d=e.slice(l,e.length)),i=I_(i??e,r),{fullPath:i+f+d,path:i,query:u,hash:zi(d)}}function M_(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function Iu(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function N_(t,e,r){const i=e.matched.length-1,u=r.matched.length-1;return i>-1&&i===u&&qr(e.matched[i],r.matched[u])&&ap(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function qr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function ap(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var r in t)if(!R_(t[r],e[r]))return!1;return!0}function R_(t,e){return en(t)?Ou(t,e):en(e)?Ou(e,t):t?.valueOf()===e?.valueOf()}function Ou(t,e){return en(e)?t.length===e.length&&t.every((r,i)=>r===e[i]):t.length===1&&t[0]===e}function I_(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),i=t.split("/"),u=i[i.length-1];(u===".."||u===".")&&i.push("");let f=r.length-1,d,l;for(d=0;d<i.length;d++)if(l=i[d],l!==".")if(l==="..")f>1&&f--;else break;return r.slice(0,f).join("/")+"/"+i.slice(d).join("/")}const Vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ka=(function(t){return t.pop="pop",t.push="push",t})({}),wa=(function(t){return t.back="back",t.forward="forward",t.unknown="",t})({});function O_(t){if(!t)if(Ur){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),A_(t)}
vendor: 21,409 bytes, line 12
12const H_=/^[^#]+#/;function L_(t,e){return t.replace(H_,"#")+e}function U_(t,e){const r=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-r.left-(e.left||0),top:i.top-r.top-(e.top||0)}}const Uo=()=>({left:window.scrollX,top:window.scrollY});function B_(t){let e;if("el"in t){const r=t.el,i=typeof r=="string"&&r.startsWith("#"),u=typeof r=="string"?i?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!u)return;e=U_(u,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Hu(t,e){return(history.state?history.state.position-e:-1)+t}const Qa=new Map;function D_(t,e){Qa.set(t,e)}function V_(t){const e=Qa.get(t);return Qa.delete(t),e}function F_(t){return typeof t=="string"||t&&typeof t=="object"}function lp(t){return typeof t=="string"||typeof t=="symbol"}let Ge=(function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t})({});const cp=Symbol("");Ge.MATCHER_NOT_FOUND+"",Ge.NAVIGATION_GUARD_REDIRECT+"",Ge.NAVIGATION_ABORTED+"",Ge.NAVIGATION_CANCELLED+"",Ge.NAVIGATION_DUPLICATED+"";function Jr(t,e){return De(new Error,{type:t,[cp]:!0},e)}function wn(t,e){return t instanceof Error&&cp in t&&(e==null||!!(t.type&e))}const j_=["params","query","hash"];function z_(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const r of j_)r in t&&(e[r]=t[r]);return JSON.stringify(e,null,2)}function $_(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;i<r.length;++i){const u=r[i].replace(rp," "),f=u.indexOf("="),d=zi(f<0?u:u.slice(0,f)),l=f<0?null:zi(u.slice(f+1));if(d in e){let o=e[d];en(o)||(o=e[d]=[o]),o.push(l)}else e[d]=l}return e}function Lu(t){let e="";for(let r in t){const i=t[r];if(r=C_(r),i==null){i!==void 0&&(e+=(e.length?"&":"")+r);continue}(en(i)?i.map(u=>u&&Ya(u)):[i&&Ya(i)]).forEach(u=>{u!==void 0&&(e+=(e.length?"&":"")+r,u!=null&&(e+="="+u))})}return e}function W_(t){const e={};for(const r in t){const i=t[r];i!==void 0&&(e[r]=en(i)?i.map(u=>u==null?null:""+u):i==null?i:""+i)}return e}const P_=Symbol(""),Uu=Symbol(""),Bo=Symbol(""),up=Symbol(""),el=Symbol("");function mi(){let t=[];function e(i){return t.push(i),()=>{const u=t.indexOf(i);u>-1&&t.splice(u,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function Gn(t,e,r,i,u,f=d=>d()){const d=i&&(i.enterCallbacks[u]=i.enterCallbacks[u]||[]);return()=>new Promise((l,o)=>{const n=m=>{m===!1?o(Jr(Ge.NAVIGATION_ABORTED,{from:r,to:e})):m instanceof Error?o(m):F_(m)?o(Jr(Ge.NAVIGATION_GUARD_REDIRECT,{from:e,to:m})):(d&&i.enterCallbacks[u]===d&&typeof m=="function"&&d.push(m),l())},p=f(()=>t.call(i&&i.instances[u],e,r,n));let a=Promise.resolve(p);t.length<3&&(a=a.then(n)),a.catch(m=>o(m))})}function xa(t,e,r,i,u=f=>f()){const f=[];for(const d of t)for(const l in d.components){let o=d.components[l];if(!(e!=="beforeRouteEnter"&&!d.instances[l]))if(tp(o)){const n=(o.__vccOpts||o)[e];n&&f.push(Gn(n,r,i,d,l,u))}else{let n=o();f.push(()=>n.then(p=>{if(!p)throw new Error(`Couldn't resolve component "${l}" at "${d.path}"`);const a=h_(p)?p.default:p;d.mods[l]=p,d.components[l]=a;const m=(a.__vccOpts||a)[e];return m&&Gn(m,r,i,d,l,u)()}))}}return f}function G_(t,e){const r=[],i=[],u=[],f=Math.max(e.matched.length,t.matched.length);for(let d=0;d<f;d++){const l=e.matched[d];l&&(t.matched.find(n=>qr(n,l))?i.push(l):r.push(l));const o=t.matched[d];o&&(e.matched.find(n=>qr(n,o))||u.push(o))}return[r,i,u]}let Z_=()=>location.protocol+"//"+location.host;function dp(t,e){const{pathname:r,search:i,hash:u}=e,f=t.indexOf("#");if(f>-1){let d=u.includes(t.slice(f))?t.slice(f).length:1,l=u.slice(d);return l[0]!=="/"&&(l="/"+l),Iu(l,"")}return Iu(r,t)+i+u}function q_(t,e,r,i){let u=[],f=[],d=null;const l=({state:m})=>{const h=dp(t,location),b=r.value,s=e.value;let c=0;if(m){if(r.value=h,e.value=m,d&&d===b){d=null;return}c=s?m.position-s.position:0}else i(h);u.forEach(v=>{v(r.value,b,{delta:c,type:Ka.pop,direction:c?c>0?wa.forward:wa.back:wa.unknown})})};function o(){d=r.value}function n(m){u.push(m);const h=()=>{const b=u.indexOf(m);b>-1&&u.splice(b,1)};return f.push(h),h}function p(){if(document.visibilityState==="hidden"){const{history:m}=window;if(!m.state)return;m.replaceState(De({},m.state,{scroll:Uo()}),"")}}function a(){for(const m of f)m();f=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",p),document.removeEventListener("visibilitychange",p)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",p),document.addEventListener("visibilitychange",p),{pauseListeners:o,listen:n,destroy:a}}function Bu(t,e,r,i=!1,u=!1){return{back:t,current:e,forward:r,replaced:i,position:window.history.length,scroll:u?Uo():null}}function J_(t){const{history:e,location:r}=window,i={value:dp(t,r)},u={value:e.state};u.value||f(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function f(o,n,p){const a=t.indexOf("#"),m=a>-1?(r.host&&document.querySelector("base")?t:t.slice(a))+o:Z_()+t+o;try{e[p?"replaceState":"pushState"](n,"",m),u.value=n}catch(h){console.error(h),r[p?"replace":"assign"](m)}}function d(o,n){f(o,De({},e.state,Bu(u.value.back,o,u.value.forward,!0),n,{position:u.value.position}),!0),i.value=o}function l(o,n){const p=De({},u.value,e.state,{forward:o,scroll:Uo()});f(p.current,p,!0),f(o,De({},Bu(i.value,o,null),{position:p.position+1},n),!1),i.value=o}return{location:i,state:u,push:l,replace:d}}function X_(t){t=O_(t);const e=J_(t),r=q_(t,e.state,e.location,e.replace);function i(f,d=!0){d||r.pauseListeners(),history.go(f)}const u=De({location:"",base:t,go:i,createHref:L_.bind(null,t)},e,r);return Object.defineProperty(u,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(u,"state",{enumerable:!0,get:()=>e.state.value}),u}let lr=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.Group=2]="Group",t})({});var it=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.ParamRegExp=2]="ParamRegExp",t[t.ParamRegExpEnd=3]="ParamRegExpEnd",t[t.EscapeNext=4]="EscapeNext",t})(it||{});const Y_={type:lr.Static,value:""},K_=/[a-zA-Z0-9_]/;function Q_(t){if(!t)return[[]];if(t==="/")return[[Y_]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${r})/"${n}": ${h}`)}let r=it.Static,i=r;const u=[];let f;function d(){f&&u.push(f),f=[]}let l=0,o,n="",p="";function a(){n&&(r===it.Static?f.push({type:lr.Static,value:n}):r===it.Param||r===it.ParamRegExp||r===it.ParamRegExpEnd?(f.length>1&&(o==="*"||o==="+")&&e(`A repeatable param (${n}) must be alone in its segment. eg: '/:ids+.`),f.push({type:lr.Param,value:n,regexp:p,repeatable:o==="*"||o==="+",optional:o==="*"||o==="?"})):e("Invalid state to consume buffer"),n="")}function m(){n+=o}for(;l<t.length;){if(o=t[l++],o==="\\"&&r!==it.ParamRegExp){i=r,r=it.EscapeNext;continue}switch(r){case it.Static:o==="/"?(n&&a(),d()):o===":"?(a(),r=it.Param):m();break;case it.EscapeNext:m(),r=i;break;case it.Param:o==="("?r=it.ParamRegExp:K_.test(o)?m():(a(),r=it.Static,o!=="*"&&o!=="?"&&o!=="+"&&l--);break;case it.ParamRegExp:o===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+o:r=it.ParamRegExpEnd:p+=o;break;case it.ParamRegExpEnd:a(),r=it.Static,o!=="*"&&o!=="?"&&o!=="+"&&l--,p="";break;default:e("Unknown state");break}}return r===it.ParamRegExp&&e(`Unfinished custom RegExp for param "${n}"`),a(),d(),u}const Du="[^/]+?",e1={sensitive:!1,strict:!1,start:!0,end:!0};var Ct=(function(t){return t[t._multiplier=10]="_multiplier",t[t.Root=90]="Root",t[t.Segment=40]="Segment",t[t.SubSegment=30]="SubSegment",t[t.Static=40]="Static",t[t.Dynamic=20]="Dynamic",t[t.BonusCustomRegExp=10]="BonusCustomRegExp",t[t.BonusWildcard=-50]="BonusWildcard",t[t.BonusRepeatable=-20]="BonusRepeatable",t[t.BonusOptional=-8]="BonusOptional",t[t.BonusStrict=.7000000000000001]="BonusStrict",t[t.BonusCaseSensitive=.25]="BonusCaseSensitive",t})(Ct||{});const t1=/[.+*?^${}()[\]/\\]/g;function n1(t,e){const r=De({},e1,e),i=[];let u=r.start?"^":"";const f=[];for(const n of t){const p=n.length?[]:[Ct.Root];r.strict&&!n.length&&(u+="/");for(let a=0;a<n.length;a++){const m=n[a];let h=Ct.Segment+(r.sensitive?Ct.BonusCaseSensitive:0);if(m.type===lr.Static)a||(u+="/"),u+=m.value.replace(t1,"\\$&"),h+=Ct.Static;else if(m.type===lr.Param){const{value:b,repeatable:s,optional:c,regexp:v}=m;f.push({name:b,repeatable:s,optional:c});const g=v||Du;if(g!==Du){h+=Ct.BonusCustomRegExp;try{`${g}`}catch(_){throw new Error(`Invalid custom RegExp for param "${b}" (${g}): `+_.message)}}let y=s?`((?:${g})(?:/(?:${g}))*)`:`(${g})`;a||(y=c&&n.length<2?`(?:/${y})`:"/"+y),c&&(y+="?"),u+=y,h+=Ct.Dynamic,c&&(h+=Ct.BonusOptional),s&&(h+=Ct.BonusRepeatable),g===".*"&&(h+=Ct.BonusWildcard)}p.push(h)}i.push(p)}if(r.strict&&r.end){const n=i.length-1;i[n][i[n].length-1]+=Ct.BonusStrict}r.strict||(u+="/?"),r.end?u+="$":r.strict&&!u.endsWith("/")&&(u+="(?:/|$)");const d=new RegExp(u,r.sensitive?"":"i");function l(n){const p=n.match(d),a={};if(!p)return null;for(let m=1;m<p.length;m++){const h=p[m]||"",b=f[m-1];a[b.name]=h&&b.repeatable?h.split("/"):h}return a}function o(n){let p="",a=!1;for(const m of t){(!a||!p.endsWith("/"))&&(p+="/"),a=!1;for(const h of m)if(h.type===lr.Static)p+=h.value;else if(h.type===lr.Param){const{value:b,repeatable:s,optional:c}=h,v=b in n?n[b]:"";if(en(v)&&!s)throw new Error(`Provided param "${b}" is an array but it is not repeatable (* or + modifiers)`);const g=en(v)?v.join("/"):v;if(!g)if(c)m.length<2&&(p.endsWith("/")?p=p.slice(0,-1):a=!0);else throw new Error(`Missing required param "${b}"`);p+=g}}return p||"/"}return{re:d,score:i,keys:f,parse:l,stringify:o}}function r1(t,e){let r=0;for(;r<t.length&&r<e.length;){const i=e[r]-t[r];if(i)return i;r++}return t.length<e.length?t.length===1&&t[0]===Ct.Static+Ct.Segment?-1:1:t.length>e.length?e.length===1&&e[0]===Ct.Static+Ct.Segment?1:-1:0}function fp(t,e){let r=0;const i=t.score,u=e.score;for(;r<i.length&&r<u.length;){const f=r1(i[r],u[r]);if(f)return f;r++}if(Math.abs(u.length-i.length)===1){if(Vu(i))return 1;if(Vu(u))return-1}return u.length-i.length}function Vu(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const i1={strict:!1,end:!0,sensitive:!1};function s1(t,e,r){const i=n1(Q_(t.path),r),u=De(i,{record:t,parent:e,children:[],alias:[]});return e&&!u.record.aliasOf==!e.record.aliasOf&&e.children.push(u),u}function o1(t,e){const r=[],i=new Map;e=Ru(i1,e);function u(a){return i.get(a)}function f(a,m,h){const b=!h,s=ju(a);s.aliasOf=h&&h.record;const c=Ru(e,a),v=[s];if("alias"in a){const _=typeof a.alias=="string"?[a.alias]:a.alias;for(const w of _)v.push(ju(De({},s,{components:h?h.record.components:s.components,path:w,aliasOf:h?h.record:s})))}let g,y;for(const _ of v){const{path:w}=_;if(m&&w[0]!=="/"){const S=m.record.path,E=S[S.length-1]==="/"?"":"/";_.path=m.record.path+(w&&E+w)}if(g=s1(_,m,c),h?h.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),b&&a.name&&!zu(g)&&d(a.name)),hp(g)&&o(g),s.children){const S=s.children;for(let E=0;E<S.length;E++)f(S[E],g,h&&h.children[E])}h=h||g}return y?()=>{d(y)}:Ni}function d(a){if(lp(a)){const m=i.get(a);m&&(i.delete(a),r.splice(r.indexOf(m),1),m.children.forEach(d),m.alias.forEach(d))}else{const m=r.indexOf(a);m>-1&&(r.splice(m,1),a.record.name&&i.delete(a.record.name),a.children.forEach(d),a.alias.forEach(d))}}function l(){return r}function o(a){const m=c1(a,r);r.splice(m,0,a),a.record.name&&!zu(a)&&i.set(a.record.name,a)}function n(a,m){let h,b={},s,c;if("name"in a&&a.name){if(h=i.get(a.name),!h)throw Jr(Ge.MATCHER_NOT_FOUND,{location:a});c=h.record.name,b=De(Fu(m.params,h.keys.filter(y=>!y.optional).concat(h.parent?h.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),a.params&&Fu(a.params,h.keys.map(y=>y.name))),s=h.stringify(b)}else if(a.path!=null)s=a.path,h=r.find(y=>y.re.test(s)),h&&(b=h.parse(s),c=h.record.name);else{if(h=m.name?i.get(m.name):r.find(y=>y.re.test(m.path)),!h)throw Jr(Ge.MATCHER_NOT_FOUND,{location:a,currentLocation:m});c=h.record.name,b=De({},m.params,a.params),s=h.stringify(b)}const v=[];let g=h;for(;g;)v.unshift(g.record),g=g.parent;return{name:c,path:s,params:b,matched:v,meta:l1(v)}}t.forEach(a=>f(a));function p(){r.length=0,i.clear()}return{addRoute:f,resolve:n,removeRoute:d,clearRoutes:p,getRoutes:l,getRecordMatcher:u}}function Fu(t,e){const r={};for(const i of e)i in t&&(r[i]=t[i]);return r}function ju(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:a1(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function a1(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const i in t.components)e[i]=typeof r=="object"?r[i]:r;return e}function zu(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function l1(t){return t.reduce((e,r)=>De(e,r.meta),{})}function c1(t,e){let r=0,i=e.length;for(;r!==i;){const f=r+i>>1;fp(t,e[f])<0?i=f:r=f+1}const u=u1(t);return u&&(i=e.lastIndexOf(u,i-1)),i}function u1(t){let e=t;for(;e=e.parent;)if(hp(e)&&fp(t,e)===0)return e}function hp({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function $u(t){const e=Wt(Bo),r=Wt(up),i=we(()=>{const o=Ht(t.to);return e.resolve(o)}),u=we(()=>{const{matched:o}=i.value,{length:n}=o,p=o[n-1],a=r.matched;if(!p||!a.length)return-1;const m=a.findIndex(qr.bind(null,p));if(m>-1)return m;const h=Wu(o[n-2]);return n>1&&Wu(p)===h&&a[a.length-1].path!==h?a.findIndex(qr.bind(null,o[n-2])):m}),f=we(()=>u.value>-1&&m1(r.params,i.value.params)),d=we(()=>u.value>-1&&u.value===r.matched.length-1&&ap(r.params,i.value.params));function l(o={}){if(p1(o)){const n=e[Ht(t.replace)?"replace":"push"](Ht(t.to)).catch(Ni);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:i,href:we(()=>i.value.href),isActive:f,isExactActive:d,navigate:l}}function d1(t){return t.length===1?t[0]:t}const f1=rs({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"},viewTransition:Boolean},useLink:$u,setup(t,{slots:e}){const r=bn($u(t)),{options:i}=Wt(Bo),u=we(()=>({[Pu(t.activeClass,i.linkActiveClass,"router-link-active")]:r.isActive,[Pu(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const f=e.default&&d1(e.default(r));return t.custom?f:ko("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:u.value},f)}}}),h1=f1;function p1(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function m1(t,e){for(const r in e){const i=e[r],u=t[r];if(typeof i=="string"){if(i!==u)return!1}else if(!en(u)||u.length!==i.length||i.some((f,d)=>f.valueOf()!==u[d].valueOf()))return!1}return!0}function Wu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Pu=(t,e,r)=>t??e??r,v1=rs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const i=Wt(el),u=we(()=>t.route||i.value),f=Wt(Uu,0),d=we(()=>{let n=Ht(f);const{matched:p}=u.value;let a;for(;(a=p[n])&&!a.components;)n++;return n}),l=we(()=>u.value.matched[d.value]);Ei(Uu,we(()=>d.value+1)),Ei(P_,l),Ei(el,u);const o=K();return Lt(()=>[o.value,l.value,t.name],([n,p,a],[m,h,b])=>{p&&(p.instances[a]=n,h&&h!==p&&n&&n===m&&(p.leaveGuards.size||(p.leaveGuards=h.leaveGuards),p.updateGuards.size||(p.updateGuards=h.updateGuards))),n&&p&&(!h||!qr(p,h)||!m)&&(p.enterCallbacks[a]||[]).forEach(s=>s(n))},{flush:"post"}),()=>{const n=u.value,p=t.name,a=l.value,m=a&&a.components[p];if(!m)return Gu(r.default,{Component:m,route:n});const h=a.props[p],b=h?h===!0?n.params:typeof h=="function"?h(n):h:null,c=ko(m,De({},b,e,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(a.instances[p]=null)},ref:o}));return Gu(r.default,{Component:c,route:n})||c}}});function Gu(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const g1=v1;function b1(t){const e=o1(t.routes,t),r=t.parseQuery||$_,i=t.stringifyQuery||Lu,u=t.history,f=mi(),d=mi(),l=mi(),o=bl(Vn);let n=Vn;Ur&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=ya.bind(null,q=>""+q),a=ya.bind(null,T_),m=ya.bind(null,zi);function h(q,ue){let V,W;return lp(q)?(V=e.getRecordMatcher(q),W=ue):W=q,e.addRoute(W,V)}function b(q){const ue=e.getRecordMatcher(q);ue&&e.removeRoute(ue)}function s(){return e.getRoutes().map(q=>q.record)}function c(q){return!!e.getRecordMatcher(q)}function v(q,ue){if(ue=De({},ue||o.value),typeof q=="string"){const U=_a(r,q,ue.path),P=e.resolve({path:U.path},ue),ne=u.createHref(U.fullPath);return De(U,P,{params:m(P.params),hash:zi(U.hash),redirectedFrom:void 0,href:ne})}let V;if(q.path!=null)V=De({},q,{path:_a(r,q.path,ue.path).path});else{const U=De({},q.params);for(const P in U)U[P]==null&&delete U[P];V=De({},q,{params:a(U)}),ue.params=a(ue.params)}const W=e.resolve(V,ue),re=q.hash||"";W.params=p(m(W.params));const J=M_(i,De({},q,{hash:S_(re),path:W.path})),k=u.createHref(J);return De({fullPath:J,hash:re,query:i===Lu?W_(q.query):q.query||{}},W,{redirectedFrom:void 0,href:k})}function g(q){return typeof q=="string"?_a(r,q,o.value.path):De({},q)}function y(q,ue){if(n!==q)return Jr(Ge.NAVIGATION_CANCELLED,{from:ue,to:q})}function _(q){return E(q)}function w(q){return _(De(g(q),{replace:!0}))}function S(q,ue){const V=q.matched[q.matched.length-1];if(V&&V.redirect){const{redirect:W}=V;let re=typeof W=="function"?W(q,ue):W;return typeof re=="string"&&(re=re.includes("?")||re.includes("#")?re=g(re):{path:re},re.params={}),De({query:q.query,hash:q.hash,params:re.path!=null?{}:q.params},re)}}function E(q,ue){const V=n=v(q),W=o.value,re=q.state,J=q.force,k=q.replace===!0,U=S(V,W);if(U)return E(De(g(U),{state:typeof U=="object"?De({},re,U.state):re,force:J,replace:k}),ue||V);const P=V;P.redirectedFrom=ue;let ne;return!J&&N_(i,W,V)&&(ne=Jr(Ge.NAVIGATION_DUPLICATED,{to:P,from:W}),A(W,W,!0,!1)),(ne?Promise.resolve(ne):N(P,W)).catch(Q=>wn(Q)?wn(Q,Ge.NAVIGATION_GUARD_REDIRECT)?Q:z(Q):D(Q,P,W)).then(Q=>{if(Q){if(wn(Q,Ge.NAVIGATION_GUARD_REDIRECT))return E(De({replace:k},g(Q.to),{state:typeof Q.to=="object"?De({},re,Q.to.state):re,force:J}),ue||P)}else Q=M(P,W,!0,k,re);return B(P,W,Q),Q})}function T(q,ue){const V=y(q,ue);return V?Promise.reject(V):Promise.resolve()}function C(q){const ue=ce.values().next().value;return ue&&typeof ue.runWithContext=="function"?ue.runWithContext(q):q()}function N(q,ue){let V;const[W,re,J]=G_(q,ue);V=xa(W.reverse(),"beforeRouteLeave",q,ue);for(const U of W)U.leaveGuards.forEach(P=>{V.push(Gn(P,q,ue))});const k=T.bind(null,q,ue);return V.push(k),Be(V).then(()=>{V=[];for(const U of f.list())V.push(Gn(U,q,ue));return V.push(k),Be(V)}).then(()=>{V=xa(re,"beforeRouteUpdate",q,ue);for(const U of re)U.updateGuards.forEach(P=>{V.push(Gn(P,q,ue))});return V.push(k),Be(V)}).then(()=>{V=[];for(const U of J)if(U.beforeEnter)if(en(U.beforeEnter))for(const P of U.beforeEnter)V.push(Gn(P,q,ue));else V.push(Gn(U.beforeEnter,q,ue));return V.push(k),Be(V)}).then(()=>(q.matched.forEach(U=>U.enterCallbacks={}),V=xa(J,"beforeRouteEnter",q,ue,C),V.push(k),Be(V))).then(()=>{V=[];for(const U of d.list())V.push(Gn(U,q,ue));return V.push(k),Be(V)}).catch(U=>wn(U,Ge.NAVIGATION_CANCELLED)?U:Promise.reject(U))}function B(q,ue,V){l.list().forEach(W=>C(()=>W(q,ue,V)))}function M(q,ue,V,W,re){const J=y(q,ue);if(J)return J;const k=ue===Vn,U=Ur?history.state:{};V&&(W||k?u.replace(q.fullPath,De({scroll:k&&U&&U.scroll},re)):u.push(q.fullPath,re)),o.value=q,A(q,ue,V,k),z()}let L;function I(){L||(L=u.listen((q,ue,V)=>{if(!Ie.listening)return;const W=v(q),re=S(W,Ie.currentRoute.value);if(re){E(De(re,{replace:!0,force:!0}),W).catch(Ni);return}n=W;const J=o.value;Ur&&D_(Hu(J.fullPath,V.delta),Uo()),N(W,J).catch(k=>wn(k,Ge.NAVIGATION_ABORTED|Ge.NAVIGATION_CANCELLED)?k:wn(k,Ge.NAVIGATION_GUARD_REDIRECT)?(E(De(g(k.to),{force:!0}),W).then(U=>{wn(U,Ge.NAVIGATION_ABORTED|Ge.NAVIGATION_DUPLICATED)&&!V.delta&&V.type===Ka.pop&&u.go(-1,!1)}).catch(Ni),Promise.reject()):(V.delta&&u.go(-V.delta,!1),D(k,W,J))).then(k=>{k=k||M(W,J,!1),k&&(V.delta&&!wn(k,Ge.NAVIGATION_CANCELLED)?u.go(-V.delta,!1):V.type===Ka.pop&&wn(k,Ge.NAVIGATION_ABORTED|Ge.NAVIGATION_DUPLICATED)&&u.go(-1,!1)),B(W,J,k)}).catch(Ni)}))}let $=mi(),O=mi(),H;function D(q,ue,V){z(q);const W=O.list();return W.length?W.forEach(re=>re(q,ue,V)):console.error(q),Promise.reject(q)}function R(){return H&&o.value!==Vn?Promise.resolve():new Promise((q,ue)=>{$.add([q,ue])})}
12function z(q){return H||(H=!q,I(),$.list().forEach(([ue,V])=>q?V(q):ue()),$.reset()),q}function A(q,ue,V,W){const{scrollBehavior:re}=t;if(!Ur||!re)return Promise.resolve();const J=!V&&V_(Hu(q.fullPath,0))||(W||!V)&&history.state&&history.state.scroll||null;return ii().then(()=>re(q,ue,J)).then(k=>k&&B_(k)).catch(k=>D(k,q,ue))}const X=q=>u.go(q);let G;const ce=new Set,Ie={currentRoute:o,listening:!0,addRoute:h,removeRoute:b,clearRoutes:e.clearRoutes,hasRoute:c,getRoutes:s,resolve:v,options:t,push:_,replace:w,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:f.add,beforeResolve:d.add,afterEach:l.add,onError:O.add,isReady:R,install(q){q.component("RouterLink",h1),q.component("RouterView",g1),q.config.globalProperties.$router=Ie,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>Ht(o)}),Ur&&!G&&o.value===Vn&&(G=!0,_(u.location).catch(W=>{}));const ue={};for(const W in Vn)Object.defineProperty(ue,W,{get:()=>o.value[W],enumerable:!0});q.provide(Bo,Ie),q.provide(up,gl(ue)),q.provide(el,o);const V=q.unmount;ce.add(q),q.unmount=function(){ce.delete(q),ce.size<1&&(n=Vn,L&&L(),L=null,o.value=Vn,G=!1,H=!1),V()}}};function Be(q){return q.reduce((ue,V)=>ue.then(()=>C(V)),Promise.resolve())}return Ie}function rn(){return Wt(Bo)}const y1=Rh("counter",{state:()=>({count:0}),actions:{increment(){this.count++}}}),pp={__name:"AboutView",setup(t){const e=y1();return(r,i)=>{const u=ct("router-view");return F(),j(ie,null,[x("div",null,[i[1]||(i[1]=x("h1",null,"About",-1)),x("p",null,"Count: "+Y(Ht(e).count),1),x("button",{onClick:i[0]||(i[0]=(...f)=>Ht(e).increment&&Ht(e).increment(...f))}," Increment ")]),se(u)],64)}}},_1={key:0},Zu={__name:"LoginView",setup(t){const e=K(""),r=K(""),i=K(null),u=rn(),f=nn();async function d(){try{await f.login({email:e.value,password:r.value}),u.push("/dashboard")}catch(l){console.error(l)}}return(l,o)=>(F(),j("div",null,[o[3]||(o[3]=x("h2",null,"LoginView",-1)),x("form",{onSubmit:ut(d,["prevent"])},[fe(x("input",{"onUpdate:modelValue":o[0]||(o[0]=n=>e.value=n),placeholder:"Email"},null,512),[[pe,e.value]]),fe(x("input",{"onUpdate:modelValue":o[1]||(o[1]=n=>r.value=n),type:"password",placeholder:"Password"},null,512),[[pe,r.value]]),o[2]||(o[2]=x("button",{type:"submit"},"Login",-1))],32),i.value?(F(),j("p",_1,Y(i.value),1)):ke("",!0)]))}},Bn="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%20189.6%2043.4'%3e%3cg%20fill-rule='evenodd'%3e%3cpath%20fill='%237F8E76'%20d='M12.6%2030.4c-2.4%200-4.3-.4-5.7-1.2v13.3H4.2c-2%200-4.2-1.2-4.2-4.9V9.9c0-.2.1-.3.3-.4C2.3%208.8%206.6%208%209%208h3.9c6.6%200%2011.4%203.8%2011.4%2010.6a11%2011%200%200%201-11.6%2011.8Zm-.7-16.6H9.7c-.8%200-2%20.3-2.8.4V24c1.2.3%203%20.6%204.8.6%203.5%200%205.4-2%205.4-5.4%200-3.8-1.6-5.4-5.2-5.4ZM43.7%2022c0%20.4-.4.7-.7.5-1-.3-2-.5-3.5-.5-3%200-4.6%201.6-4.6%205.8v15.5H33c-3%200-4.9-1.5-4.9-4.3V26.6C28.1%2021%2031%2016%2038.1%2016c4.1%200%205.6%202.4%205.6%204.4v1.7ZM88%2011.9c1-1.1%202.2-1.9%203.2-1.9h1c.4%200%20.6.2.6.5v5.6h8.8c.3%200%20.5.2.5.5v2.3c0%201.4-1.2%203.2-4%203.2h-5.3v10.5c0%203.5%201.5%204.9%204.2%204.9%202.2%200%204-.3%205.1-1v2.4c0%202.8-2%204.5-5.9%204.5-6.8%200-10-3.7-10-10V17.2c0-2.6.4-3.6%201.9-5.3ZM110%2013.8a4%204%200%200%201-3.9-3.9%204%204%200%200%201%204-3.9%204%204%200%200%201%203.9%203.9%204%204%200%200%201-4%204Zm4.8%2029.2c-5.2%200-8-3-8-8.4V16.4h1.8c3%200%204.8%201.6%204.8%205V34c0%202.7%201.2%203.5%204.1%203.5h.8c.3%200%20.5.2.5.5v1c0%202.9-1.2%204-4%204ZM134.7%2042.6c-6.7%200-12-4.4-12-12.2V15h1.3c3.9%200%205.6%201.6%205.6%204.8v9.9c0%205%202.4%207%205.4%207%202.8%200%204.7-2%204.7-6.5V15.5c0-.3.3-.5.5-.5h.7c4%200%205.6%201.6%205.6%204.8v10.1c0%208.4-4%2012.7-11.8%2012.7ZM188%2042.6c-3.7%200-5.1-1.7-5.1-4.9V27.3c0-4.4-2-6.3-5-6.3-2.7%200-4.5%201.9-4.5%205.6V42c0%20.3-.2.5-.5.5h-1.3c-3%200-5-1.7-5-4.9V27.3c0-4.4-2-6.3-5-6.3-2.5%200-4.5%202-4.5%205.7v15.9h-1.8c-2.7%200-4.8-1.8-4.8-4.9V27.3c0-7.4%203.8-12.3%2012-12.3a10%2010%200%200%201%208.2%204.2%209.2%209.2%200%200%201%207.7-4.2c6.2%200%2011.2%203.8%2011.2%2011.4v16.2H188ZM80.3%2011.5a3%203%200%200%200-3-2.8h-4.1c0-4.8-3.7-8.7-8.3-8.7a8.5%208.5%200%200%200-8.3%208.7h-4.1a3%203%200%200%200-3%202.8l-1.6%2027.9a3%203%200%200%200%203%203.2h28a3%203%200%200%200%203-3.2l-1.6-27.9ZM58.6%208.7C58.6%205%2061.4%202%2064.9%202s6.3%203%206.3%206.7H58.6Z'/%3e%3cpath%20fill='%23FFF'%20d='M64.7%2032.3%2060.6%2034c1.7%203%205.3%203.9%209%202.5%202.3-1%205-2.4%206.5-4.5.2-.3.8-.3%201%20.1l.3.9c1.2%203.2%200%206.5-7%209.2a13.3%2013.3%200%200%201-17.1-8c-3.3-8.3-.2-15.6%207-18.3%205.3-2%2011.6-.2%2013.9%205.9%201.7%204.6-1.2%207.4-9.5%2010.6Zm-3-11c-3%201-4.1%204.4-3.1%207.3l.2.9%202.8-1.1c6-2.3%207-3.5%206.4-5.2-1-2.5-3.3-3-6.2-2Z'/%3e%3c/g%3e%3c/svg%3e";function Fl(t){if(Object.prototype.hasOwnProperty.call(t,"__esMo
12dule"))return t;var e=t.default;if(typeof e=="function"){var r=function i(){var u=!1;try{u=this instanceof i}catch{}return u?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var u=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,u.get?u:{enumerable:!0,get:function(){return t[i]}})}),r}var Sa={exports:{}},Ca={exports:{}},Ea={};const Xr=Symbol(""),zr=Symbol(""),Do=Symbol(""),$i=Symbol(""),jl=Symbol(""),Kn=Symbol(""),zl=Symbol(""),$l=Symbol(""),Vo=Symbol(""),Fo=Symbol(""),ai=Symbol(""),jo=Symbol(""),Wl=Symbol(""),zo=Symbol(""),$o=Symbol(""),Wo=Symbol(""),Po=Symbol(""),Go=Symbol(""),Zo=Symbol(""),Pl=Symbol(""),Gl=Symbol(""),ds=Symbol(""),Wi=Symbol(""),qo=Symbol(""),Jo=Symbol(""),Yr=Symbol(""),li=Symbol(""),Xo=Symbol(""),ro=Symbol(""),mp=Symbol(""),io=Symbol(""),Pi=Symbol(""),vp=Symbol(""),gp=Symbol(""),Yo=Symbol(""),bp=Symbol(""),yp=Symbol(""),Ko=Symbol(""),Zl=Symbol(""),xr={[Xr]:"Fragment",[zr]:"Teleport",[Do]:"Suspense",[$i]:"KeepAlive",[jl]:"BaseTransition",[Kn]:"openBlock",[zl]:"createBlock",[$l]:"createElementBlock",[Vo]:"createVNode",[Fo]:"createElementVNode",[ai]:"createCommentVNode",[jo]:"createTextVNode",[Wl]:"createStaticVNode",[zo]:"resolveComponent",[$o]:"resolveDynamicComponent",[Wo]:"resolveDirective",[Po]:"resolveFilter",[Go]:"withDirectives",[Zo]:"renderList",[Pl]:"renderSlot",[Gl]:"createSlots",[ds]:"toDisplayString",[Wi]:"mergeProps",[qo]:"normalizeClass",[Jo]:"normalizeStyle",[Yr]:"normalizeProps",[li]:"guardReactiveProps",[Xo]:"toHandlers",[ro]:"camelize",[mp]:"capitalize",[io]:"toHandlerKey",[Pi]:"setBlockTracking",[vp]:"pushScopeId",[gp]:"popScopeId",[Yo]:"withCtx",[bp]:"unref",[yp]:"isRef",[Ko]:"withMemo",[Zl]:"isMemoSame"};function _p(t){Object.getOwnPropertySymbols(t).forEach(e=>{xr[e]=t[e]})}const w1={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},x1={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},S1={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},C1={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},st={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function wp(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:st}}function Kr(t,e,r,i,u,f,d,l=!1,o=!1,n=!1,p=st){return t&&(l?(t.helper(Kn),t.helper(Er(t.inSSR,n))):t.helper(Cr(t.inSSR,n)),d&&t.helper(Go)),{type:13,tag:e,props:r,children:i,patchFlag:u,dynamicProps:f,directives:d,isBlock:l,disableTracking:o,isComponent:n,loc:p}}function Xn(t,e=st){return{type:17,loc:e,elements:t}}function jt(t,e=st){return{type:15,loc:e,properties:t}}function Ye(t,e){return{type:16,loc:st,key:xe(t)?Ee(t,!0):t,value:e}}function Ee(t,e=!1,r=st,i=0){return{type:4,loc:r,content:t,isStatic:e,constType:e?3:i}}function E1(t,e){return{type:5,loc:e,content:xe(t)?Ee(t,!1,e):t}}function Gt(t,e=st){return{type:8,loc:e,children:t}}function tt(t,e=[],r=st){return{type:14,loc:r,callee:t,arguments:e}}function Sr(t,e=void 0,r=!1,i=!1,u=st){return{type:18,params:t,returns:e,newline:r,isSlot:i,loc:u}}function so(t,e,r,i=!0){return{type:19,test:t,consequent:e,alternate:r,newline:i,loc:st}}function xp(t,e,r=!1,i=!1){return{type:20,index:t,value:e,needPauseTracking:r,inVOnce:i,needArraySpread:!1,loc:st}}
vendor: 13,650 bytes, line 12
12function Sp(t){return{type:21,body:t,loc:st}}function T1(t){return{type:22,elements:t,loc:st}}function k1(t,e,r){return{type:23,test:t,consequent:e,alternate:r,loc:st}}function A1(t,e){return{type:24,left:t,right:e,loc:st}}function M1(t){return{type:25,expressions:t,loc:st}}function N1(t){return{type:26,returns:t,loc:st}}function Cr(t,e){return t||e?Vo:Fo}function Er(t,e){return t||e?zl:$l}function Qo(t,{helper:e,removeHelper:r,inSSR:i}){t.isBlock||(t.isBlock=!0,r(Cr(i,t.isComponent)),e(Kn),e(Er(i,t.isComponent)))}const qu=new Uint8Array([123,123]),Ju=new Uint8Array([125,125]);function Xu(t){return t>=97&&t<=122||t>=65&&t<=90}function Ft(t){return t===32||t===10||t===9||t===12||t===13}function Fn(t){return t===47||t===62||Ft(t)}function oo(t){const e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}const vt={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 R1{constructor(e,r){this.stack=e,this.cbs=r,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=qu,this.delimiterClose=Ju,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=qu,this.delimiterClose=Ju}getPos(e){let r=1,i=e+1;const u=this.newlines.length;let f=-1;if(u>100){let d=-1,l=u;for(;d+1<l;){const o=d+l>>>1;this.newlines[o]<e?d=o:l=o}f=d}else for(let d=u-1;d>=0;d--)if(e>this.newlines[d]){f=d;break}return f>=0&&(r=f+2,i=e-this.newlines[f]),{column:i,line:r,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const r=this.index+1-this.delimiterOpen.length;r>this.sectionStart&&this.cbs.ontext(this.sectionStart,r),this.state=3,this.sectionStart=r}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===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(e))}stateSpecialStartSequence(e){const r=this.sequenceIndex===this.currentSequence.length;if(!(r?Fn(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||Ft(e)){const r=this.index-this.currentSequence.length;if(this.sectionStart<r){const i=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=i}this.sectionStart=r+2,this.stateInClosingTagName(e),this.inRCDATA=!1;return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===vt.TitleEnd||this.currentSequence===vt.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===60)}stateCDATASequence(e){e===vt.Cdata[this.sequenceIndex]?++this.sequenceIndex===vt.Cdata.length&&(this.state=28,this.currentSequence=vt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const r=this.buffer.charCodeAt(this.index);if(r===10&&this.newlines.push(this.index),r===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===vt.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):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,r){this.enterRCDATA(e,r),this.state=31}enterRCDATA(e,r){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=r}stateBeforeTagName(e){e===33?(this.state=22,this.sectionStart=this.index+1):e===63?(this.state=24,this.sectionStart=this.index+1):Xu(e)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:e===116?this.state=30:this.state=e===115?29:6):e===47?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Fn(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Fn(e)){const r=this.buffer.slice(this.sectionStart,this.index);r!=="template"&&this.enterRCDATA(oo("</"+r),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){Ft(e)||(e===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Xu(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(e===62||Ft(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){e===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){e===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):e===47?this.state=7:e===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Ft(e)||this.handleAttrStart(e)}handleAttrStart(e){e===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):e===46||e===58||e===64||e===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(e){e===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Ft(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(e===61||Fn(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){e===61||Fn(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):e===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){e===61||Fn(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===91?this.state=15:e===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){e===93?this.state=14:(e===61||Fn(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){e===61||Fn(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){e===61?this.state=18:e===47||e===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):Ft(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){e===34?(this.state=19,this.sectionStart=this.index+1):e===39?(this.state=20,this.sectionStart=this.index+1):Ft(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,r){(e===r||this.fastForwardTo(r))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){Ft(e)||e===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):(e===39||e===60||e===61||e===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){e===91?(this.state=26,this.sequenceIndex=0):this.state=e===45?25:23}stateInDeclaration(e){(e===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){e===45?(this.state=28,this.currentSequence=vt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(e===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===vt.ScriptEnd[3]?this.startSpecial(vt.ScriptEnd,4):e===vt.StyleEnd[3]?this.startSpecial(vt.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===vt.TitleEnd[3]?this.startSpecial(vt.TitleEnd,4):e===vt.TextareaEnd[3]?this.startSpecial(vt.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const r=this.buffer.charCodeAt(this.index);switch(r===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(r);break}case 2:{this.stateInterpolationOpen(r);break}case 3:{this.stateInterpolation(r);break}case 4:{this.stateInterpolationClose(r);break}case 31:{this.stateSpecialStartSequence(r);break}case 32:{this.stateInRCDATA(r);break}case 26:{this.stateCDATASequence(r);break}case 19:{this.stateInAttrValueDoubleQuotes(r);break}case 12:{this.stateInAttrName(r);break}case 13:{this.stateInDirName(r);break}case 14:{this.stateInDirArg(r);break}case 15:{this.stateInDynamicDirArg(r);break}case 16:{this.stateInDirModifier(r);break}case 28:{this.stateInCommentLike(r);break}case 27:{this.stateInSpecialComment(r);break}case 11:{this.stateBeforeAttrName(r);break}case 6:{this.stateInTagName(r);break}case 34:{this.stateInSFCRootTagName(r);break}case 9:{this.stateInClosingTagName(r);break}case 5:{this.stateBeforeTagName(r);break}case 17:{this.stateAfterAttrName(r);break}case 20:{this.stateInAttrValueSingleQuotes(r);break}case 18:{this.stateBeforeAttrValue(r);break}case 8:{this.stateBeforeClosingTagName(r);break}case 10:{this.stateAfterClosingTagName(r);break}case 29:{this.stateBeforeSpecialS(r);break}case 30:{this.stateBeforeSpecialT(r);break}case 21:{this.stateInAttrValueNoQuotes(r);break}case 7:{this.stateInSelfClosingTag(r);break}case 23:{this.stateInDeclaration(r);break}case 22:{this.stateBeforeDeclaration(r);break}case 25:{this.stateBeforeComment(r);break}case 24:{this.stateInProcessingInstruction(r);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 e=this.buffer.length;this.sectionStart>=e||(this.state===28?this.currentSequence===vt.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):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,e))}emitCodePoint(e,r){}}const I1={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},O1={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:t=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${t}.sync\` should be changed to \`v-model:${t
vendor: 1,681 bytes, line 12
12}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function
vendor: 54,415 bytes, lines 12-20
12tl(t,{compatConfig:e}){const r=e&&e[t];return t==="MODE"?r||3:r}function br(t,e){const r=tl("MODE",e),i=tl(t,e);return r===3?i===!0:i!==!1}function Qr(t,e,r,...i){return br(t,e)}function H1(t,e,r,...i){if(tl(t,e)==="suppress-warning")return;const{message:f,link:d}=O1[t],l=`(deprecation ${t}) ${typeof f=="function"?f(...i):f}${d?` 13 Details: ${d}`:""}`,o=new SyntaxError(l);o.code=t,r&&(o.loc=r),e.onWarn(o)}function ql(t){throw t}function Cp(t){}function $e(t,e,r,i){const u=`https://vuejs.org/error-reference/#compiler-${t}`,f=new SyntaxError(String(u));return f.code=t,f.loc=e,f}const L1={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,45:"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,46:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,47:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,48:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,49:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,50:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,51:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,52:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,53:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,54:"__EXTEND_POINT__"},U1={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",53:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable. 14Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"v-model cannot be used on a const binding because it is not writable.",46:"Error parsing JavaScript expression: ",47:"<KeepAlive> expects exactly one child component.",52:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",48:'"prefixIdentifiers" option is not supported in this build of compiler.',49:"ES module mode is not supported in this build of compiler.",50:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',51:'"scopeId" option is only supported in module mode.',54:""};function B1(t,e,r=!1,i=[],u=Object.create(null)){}function D1(t,e,r){return!1}function V1(t,e){if(t&&(t.type==="ObjectProperty"||t.type==="ArrayPattern")){let r=e.length;for(;r--;){const i=e[r];if(i.type==="AssignmentExpression")return!0;if(i.type!=="ObjectProperty"&&!i.type.endsWith("Pattern"))break}}return!1}function F1(t){let e=t.length;for(;e--;){const r=t[e];if(r.type==="NewExpression")return!0;if(r.type!=="MemberExpression")break}return!1}function j1(t,e){for(const r of t.params)for(const i of dn(r))e(i)}function Ep(t,e){const r=t.type==="SwitchCase"?t.consequent:t.body;for(const i of r)if(i.type==="VariableDeclaration"){if(i.declare)continue;for(const u of i.declarations)for(const f of dn(u.id))e(f)}else if(i.type==="FunctionDeclaration"||i.type==="ClassDeclaration"){if(i.declare||!i.id)continue;e(i.id)}else z1(i)?$1(i,!0,e):i.type==="SwitchStatement"&&W1(i,!0,e)}function z1(t){return t.type==="ForOfStatement"||t.type==="ForInStatement"||t.type==="ForStatement"}function $1(t,e,r){const i=t.type==="ForStatement"?t.init:t.left;if(i&&i.type==="VariableDeclaration"&&(i.kind==="var"?e:!e))for(const u of i.declarations)for(const f of dn(u.id))r(f)}function W1(t,e,r){for(const i of t.cases){for(const u of i.consequent)if(u.type==="VariableDeclaration"&&(u.kind==="var"?e:!e))for(const f of u.declarations)for(const d of dn(f.id))r(d);Ep(i,r)}}function dn(t,e=[]){switch(t.type){case"Identifier":e.push(t);break;case"MemberExpression":let r=t;for(;r.type==="MemberExpression";)r=r.object;e.push(r);break;case"ObjectPattern":for(const i of t.properties)i.type==="RestElement"?dn(i.argument,e):dn(i.value,e);break;case"ArrayPattern":t.elements.forEach(i=>{i&&dn(i,e)});break;case"RestElement":dn(t.argument,e);break;case"AssignmentPattern":dn(t.left,e);break}return e}const P1=t=>/Function(?:Expression|Declaration)$|Method$/.test(t.type),Tp=t=>t&&(t.type==="ObjectProperty"||t.type==="ObjectMethod")&&!t.computed,G1=(t,e)=>Tp(e)&&e.key===t,kp=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Ap(t){return kp.includes(t.type)?Ap(t.expression):t}const kt=t=>t.type===4&&t.isStatic;function Jl(t){switch(t){case"Teleport":case"teleport":return zr;case"Suspense":case"suspense":return Do;case"KeepAlive":case"keep-alive":return $i;case"BaseTransition":case"base-transition":return jl}}const Z1=/^$|^\d|[^\$\w\xA0-\uFFFF]/,fs=t=>!Z1.test(t),Xl=/[A-Za-z_$\xA0-\uFFFF]/,q1=/[\.\?\w$\xA0-\uFFFF]/,J1=/\s+[.[]\s*|\s*[.[]\s+/g,Mp=t=>t.type===4?t.content:t.loc.source,Np=t=>{const e=Mp(t).trim().replace(J1,l=>l.trim());let r=0,i=[],u=0,f=0,d=null;for(let l=0;l<e.length;l++){const o=e.charAt(l);switch(r){case 0:if(o==="[")i.push(r),r=1,u++;else if(o==="(")i.push(r),r=2,f++;else if(!(l===0?Xl:q1).test(o))return!1;break;case 1:o==="'"||o==='"'||o==="`"?(i.push(r),r=3,d=o):o==="["?u++:o==="]"&&(--u||(r=i.pop()));break;case 2:if(o==="'"||o==='"'||o==="`")i.push(r),r=3,d=o;else if(o==="(")f++;else if(o===")"){if(l===e.length-1)return!1;--f||(r=i.pop())}break;case 3:o===d&&(r=i.pop(),d=null);break}}return!u&&!f},X1=lt,Yl=Np,Y1=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,Rp=t=>Y1.test(Mp(t)),K1=lt,Ip=Rp;function Q1(t,e,r=e.length){return Op({offset:t.offset,line:t.line,column:t.column},e,r)}function Op(t,e,r=e.length){let i=0,u=-1;for(let f=0;f<r;f++)e.charCodeAt(f)===10&&(i++,u=f);return t.offset+=r,t.line+=i,t.column=u===-1?t.column+r:r-u,t}function ew(t,e){if(!t)throw new Error(e||"unexpected compiler condition")}function Tt(t,e,r=!1){for(let i=0;i<t.props.length;i++){const u=t.props[i];if(u.type===7&&(r||u.exp)&&(xe(e)?u.name===e:e.test(u.name)))return u}}function hs(t,e,r=!1,i=!1){for(let u=0;u<t.props.length;u++){const f=t.props[u];if(f.type===6){if(r)continue;if(f.name===e&&(f.value||i))return f}else if(f.name==="bind"&&(f.exp||i)&&qn(f.arg,e))return f}}function qn(t,e){return!!(t&&kt(t)&&t.content===e)}function Hp(t){return t.props.some(e=>e.type===7&&e.name==="bind"&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function Hs(t){return t.type===5||t.type===2}function nl(t){return t.type===7&&t.name==="pre"}function Kl(t){return t.type===7&&t.name==="slot"}function ei(t){return t.type===1&&t.tagType===3}function Gi(t){return t.type===1&&t.tagType===2}const tw=new Set([Yr,li]);function Lp(t,e=[]){if(t&&!xe(t)&&t.type===14){const r=t.callee;if(!xe(r)&&tw.has(r))return Lp(t.arguments[0],e.concat(t))}return[t,e]}function Zi(t,e,r){let i,u=t.type===13?t.props:t.arguments[2],f=[],d;if(u&&!xe(u)&&u.type===14){const l=Lp(u);u=l[0],f=l[1],d=f[f.length-1]}if(u==null||xe(u))i=jt([e]);else if(u.type===14){const l=u.arguments[0];!xe(l)&&l.type===15?Yu(e,l)||l.properties.unshift(e):u.callee===Xo?i=tt(r.helper(Wi),[jt([e]),u]):u.arguments.unshift(jt([e])),!i&&(i=u)}else u.type===15?(Yu(e,u)||u.properties.unshift(e),i=u):(i=tt(r.helper(Wi),[jt([e]),u]),d&&d.callee===li&&(d=f[f.length-2]));t.type===13?d?d.arguments[0]=i:t.props=i:d?d.arguments[0]=i:t.arguments[2]=i}function Yu(t,e){let r=!1;if(t.key.type===4){const i=t.key.content;r=e.properties.some(u=>u.key.type===4&&u.key.content===i)}return r}function ti(t,e){return`_${e}_${t.replace(/[^\w]/g,(r,i)=>r==="-"?"_":t.charCodeAt(i).toString())}`}function Jt(t,e){if(!t||Object.keys(e).length===0)return!1;switch(t.type){case 1:for(let r=0;r<t.props.length;r++){const i=t.props[r];if(i.type===7&&(Jt(i.arg,e)||Jt(i.exp,e)))return!0}return t.children.some(r=>Jt(r,e));case 11:return Jt(t.source,e)?!0:t.children.some(r=>Jt(r,e));case 9:return t.branches.some(r=>Jt(r,e));case 10:return Jt(t.condition,e)?!0:t.children.some(r=>Jt(r,e));case 4:return!t.isStatic&&fs(t.content)&&!!e[t.content];case 8:return t.children.some(r=>He(r)&&Jt(r,e));case 5:case 12:return Jt(t.content,e);case 2:case 3:case 20:return!1;default:return!1}}function Up(t){return t.type===14&&t.callee===Ko?t.arguments[1].returns:t}const Bp=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Ql(t){for(let e=0;e<t.length;e++)if(!Ft(t.charCodeAt(e)))return!1;return!0}function ea(t){return t.type===2&&Ql(t.content)||t.type===12&&ea(t.content)}function ec(t){return t.type===3||ea(t)}const Dp={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:or,isPreTag:or,isIgnoreNewlineTag:or,isCustomElement:or,onError:ql,onWarn:Cp,comments:!1,prefixIdentifiers:!1};let Ue=Dp,qi=null,Nn="",gt=null,Ne=null,Mt="",Sn=-1,ir=-1,tc=0,Zn=!1,rl=null;const We=[],Ze=new R1(We,{onerr:xn,ontext(t,e){ks(ft(t,e),t,e)},ontextentity(t,e,r){ks(t,e,r)},oninterpolation(t,e){if(Zn)return ks(ft(t,e),t,e);let r=t+Ze.delimiterOpen.length,i=e-Ze.delimiterClose.length;for(;Ft(Nn.charCodeAt(r));)r++;for(;Ft(Nn.charCodeAt(i-1));)i--;let u=ft(r,i);u.includes("&")&&(u=Ue.decodeEntities(u,!1)),il({type:5,content:Us(u,!1,Je(r,i)),loc:Je(t,e)})},onopentagname(t,e){const r=ft(t,e);gt={type:1,tag:r,ns:Ue.getNamespace(r,We[0],Ue.ns),tagType:0,props:[],children:[],loc:Je(t-1,e),codegenNode:void 0}},onopentagend(t){Qu(t)},onclosetag(t,e){const r=ft(t,e);if(!Ue.isVoidTag(r)){let i=!1;for(let u=0;u<We.length;u++)if(We[u].tag.toLowerCase()===r.toLowerCase()){i=!0,u>0&&xn(24,We[0].loc.start.offset);for(let d=0;d<=u;d++){const l=We.shift();Ls(l,e,d<u)}break}i||xn(23,Vp(t,60))}},onselfclosingtag(t){const e=gt.tag;gt.isSelfClosing=!0,Qu(t),We[0]&&We[0].tag===e&&Ls(We.shift(),t)},onattribname(t,e){Ne={type:6,name:ft(t,e),nameLoc:Je(t,e),value:void 0,loc:Je(t)}},ondirname(t,e){const r=ft(t,e),i=r==="."||r===":"?"bind":r==="@"?"on":r==="#"?"slot":r.slice(2);if(!Zn&&i===""&&xn(26,t),Zn||i==="")Ne={type:6,name:r,nameLoc:Je(t,e),value:void 0,loc:Je(t)};else if(Ne={type:7,name:i,rawName:r,exp:void 0,arg:void 0,modifiers:r==="."?[Ee("prop")]:[],loc:Je(t)},i==="pre"){Zn=Ze.inVPre=!0,rl=gt;const u=gt.props;for(let f=0;f<u.length;f++)u[f].type===7&&(u[f]=dw(u[f]))}},ondirarg(t,e){if(t===e)return;const r=ft(t,e);if(Zn&&!nl(Ne))Ne.name+=r,cr(Ne.nameLoc,e);else{const i=r[0]!=="[";Ne.arg=Us(i?r:r.slice(1,-1),i,Je(t,e),i?3:0)}},ondirmodifier(t,e){const r=ft(t,e);if(Zn&&!nl(Ne))Ne.name+="."+r,cr(Ne.nameLoc,e);else if(Ne.name==="slot"){const i=Ne.arg;i&&(i.content+="."+r,cr(i.loc,e))}else{const i=Ee(r,!0,Je(t,e));Ne.modifiers.push(i)}},onattribdata(t,e){Mt+=ft(t,e),Sn<0&&(Sn=t),ir=e},onattribentity(t,e,r){Mt+=t,Sn<0&&(Sn=e),ir=r},onattribnameend(t){const e=Ne.loc.start.offset,r=ft(e,t);Ne.type===7&&(Ne.rawName=r),gt.props.some(i=>(i.type===7?i.rawName:i.name)===r)&&xn(2,e)},onattribend(t,e){if(gt&&Ne){if(cr(Ne.loc,e),t!==0)if(Mt.includes("&")&&(Mt=Ue.decodeEntities(Mt,!0)),Ne.type===6)Ne.name==="class"&&(Mt=jp(Mt).trim()),t===1&&!Mt&&xn(13,e),Ne.value={type:2,content:Mt,loc:t===1?Je(Sn,ir):Je(Sn-1,ir+1)},Ze.inSFCRoot&>.tag==="template"&&Ne.name==="lang"&&Mt&&Mt!=="html"&&Ze.enterRCDATA(oo("</template"),0);else{let r=0;Ne.exp=Us(Mt,!1,Je(Sn,ir),0,r),Ne.name==="for"&&(Ne.forParseResult=rw(Ne.exp));let i=-1;Ne.name==="bind"&&(i=Ne.modifiers.findIndex(u=>u.content==="sync"))>-1&&Qr("COMPILER_V_BIND_SYNC",Ue,Ne.loc,Ne.arg.loc.source)&&(Ne.name="model",Ne.modifiers.splice(i,1))}(Ne.type!==7||Ne.name!=="pre")&>.props.push(Ne)}Mt="",Sn=ir=-1},oncomment(t,e){Ue.comments&&il({type:3,content:ft(t,e),loc:Je(t-4,e+3)})},onend(){const t=Nn.length;for(let e=0;e<We.length;e++)Ls(We[e],t-1),xn(24,We[e].loc.start.offset)},oncdata(t,e){We[0].ns!==0?ks(ft(t,e),t,e):xn(1,t-9)},onprocessinginstruction(t){(We[0]?We[0].ns:Ue.ns)===0&&xn(21,t-1)}}),Ku=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,nw=/^\(|\)$/g;function rw(t){const e=t.loc,r=t.content,i=r.match(Bp);if(!i)return;const[,u,f]=i,d=(a,m,h=!1)=>{const b=e.start.offset+m,s=b+a.length;return Us(a,!1,Je(b,s),0,h?1:0)},l={source:d(f.trim(),r.indexOf(f,u.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let o=u.trim().replace(nw,"").trim();const n=u.indexOf(o),p=o.match(Ku);if(p){o=o.replace(Ku,"").trim();const a=p[1].trim();let m;if(a&&(m=r.indexOf(a,n+o.length),l.key=d(a,m,!0)),p[2]){const h=p[2].trim();h&&(l.index=d(h,r.indexOf(h,l.key?m+a.length:n+o.length),!0))}}return o&&(l.value=d(o,n,!0)),l}function ft(t,e){return Nn.slice(t,e)}function Qu(t){Ze.inSFCRoot&&(gt.innerLoc=Je(t+1,t+1)),il(gt);const{tag:e,ns:r}=gt;r===0&&Ue.isPreTag(e)&&tc++,Ue.isVoidTag(e)?Ls(gt,t):(We.unshift(gt),(r===1||r===2)&&(Ze.inXML=!0)),gt=null}function ks(t,e,r){{const f=We[0]&&We[0].tag;f!=="script"&&f!=="style"&&t.includes("&")&&(t=Ue.decodeEntities(t,!1))}const i=We[0]||qi,u=i.children[i.children.length-1];u&&u.type===2?(u.content+=t,cr(u.loc,r)):i.children.push({type:2,content:t,loc:Je(e,r)})}function Ls(t,e,r=!1){r?cr(t.loc,Vp(e,60)):cr(t.loc,iw(e,62)+1),Ze.inSFCRoot&&(t.children.length?t.innerLoc.end=Ae({},t.children[t.children.length-1].loc.end):t.innerLoc.end=Ae({},t.innerLoc.start),t.innerLoc.source=ft(t.innerLoc.start.offset,t.innerLoc.end.offset));const{tag:i,ns:u,children:f}=t;if(Zn||(i==="slot"?t.tagType=2:ed(t)?t.tagType=3:ow(t)&&(t.tagType=1)),Ze.inRCDATA||(t.children=Fp(f)),u===0&&Ue.isIgnoreNewlineTag(i)){const d=f[0];d&&d.type===2&&(d.content=d.content.replace(/^\r?\n/,""))}u===0&&Ue.isPreTag(i)&&tc--,rl===t&&(Zn=Ze.inVPre=!1,rl=null),Ze.inXML&&(We[0]?We[0].ns:Ue.ns)===0&&(Ze.inXML=!1);{const d=t.props;if(!Ze.inSFCRoot&&br("COMPILER_NATIVE_TEMPLATE",Ue)&&t.tag==="template"&&!ed(t)){const o=We[0]||qi,n=o.children.indexOf(t);o.children.splice(n,1,...t.children)}const l=d.find(o=>o.type===6&&o.name==="inline-template");l&&Qr("COMPILER_INLINE_TEMPLATE",Ue,l.loc)&&t.children.length&&(l.value={type:2,content:ft(t.children[0].loc.start.offset,t.children[t.children.length-1].loc.end.offset),loc:l.loc})}}function iw(t,e){let r=t;for(;Nn.charCodeAt(r)!==e&&r<Nn.length-1;)r++;return r}function Vp(t,e){let r=t;for(;Nn.charCodeAt(r)!==e&&r>=0;)r--;return r}const sw=new Set(["if","else","else-if","for","slot"]);function ed({tag:t,props:e}){if(t==="template"){for(let r=0;r<e.length;r++)if(e[r].type===7&&sw.has(e[r].name))return!0}return!1}function ow({tag:t,props:e}){if(Ue.isCustomElement(t))return!1;if(t==="component"||aw(t.charCodeAt(0))||Jl(t)||Ue.isBuiltInComponent&&Ue.isBuiltInComponent(t)||Ue.isNativeTag&&!Ue.isNativeTag(t))return!0;for(let r=0;r<e.length;r++){const i=e[r];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Qr("COMPILER_IS_ON_ELEMENT",Ue,i.loc))return!0}}else if(i.name==="bind"&&qn(i.arg,"is")&&Qr("COMPILER_IS_ON_ELEMENT",Ue,i.loc))return!0}return!1}function aw(t){return t>64&&t<91}const lw=/\r\n/g;function Fp(t){const e=Ue.whitespace!=="preserve";let r=!1;for(let i=0;i<t.length;i++){const u=t[i];if(u.type===2)if(tc)u.content=u.content.replace(lw,` 15`);else if(Ql(u.content)){const f=t[i-1]&&t[i-1].type,d=t[i+1]&&t[i+1].type;!f||!d||e&&(f===3&&(d===3||d===1)||f===1&&(d===3||d===1&&cw(u.content)))?(r=!0,t[i]=null):u.content=" "}else e&&(u.content=jp(u.content))}return r?t.filter(Boolean):t}function cw(t){for(let e=0;e<t.length;e++){const r=t.charCodeAt(e);if(r===10||r===13)return!0}return!1}function jp(t){let e="",r=!1;for(let i=0;i<t.length;i++)Ft(t.charCodeAt(i))?r||(e+=" ",r=!0):(e+=t[i],r=!1);return e}function il(t){(We[0]||qi).children.push(t)}function Je(t,e){return{start:Ze.getPos(t),end:e==null?e:Ze.getPos(e),source:e==null?e:ft(t,e)}}function uw(t){return Je(t.start.offset,t.end.offset)}function cr(t,e){t.end=Ze.getPos(e),t.source=ft(t.start.offset,e)}function dw(t){const e={type:6,name:t.rawName,nameLoc:Je(t.loc.start.offset,t.loc.start.offset+t.rawName.length),value:void 0,loc:t.loc};if(t.exp){const r=t.exp.loc;r.end.offset<t.loc.end.offset&&(r.start.offset--,r.start.column--,r.end.offset++,r.end.column++),e.value={type:2,content:t.exp.content,loc:r}}return e}function Us(t,e=!1,r,i=0,u=0){return Ee(t,e,r,i)}function xn(t,e,r){Ue.onError($e(t,Je(e,e)))}function fw(){Ze.reset(),gt=null,Ne=null,Mt="",Sn=-1,ir=-1,We.length=0}function nc(t,e){if(fw(),Nn=t,Ue=Ae({},Dp),e){let u;for(u in e)e[u]!=null&&(Ue[u]=e[u])}Ze.mode=Ue.parseMode==="html"?1:Ue.parseMode==="sfc"?2:0,Ze.inXML=Ue.ns===1||Ue.ns===2;const r=e&&e.delimiters;r&&(Ze.delimiterOpen=oo(r[0]),Ze.delimiterClose=oo(r[1]));const i=qi=wp([],t);return Ze.parse(Nn),i.loc=Je(0,t.length),i.children=Fp(i.children),qi=null,i}function hw(t,e){Bs(t,void 0,e,!!zp(t))}function zp(t){const e=t.children.filter(r=>r.type!==3);return e.length===1&&e[0].type===1&&!Gi(e[0])?e[0]:null}function Bs(t,e,r,i=!1,u=!1){const{children:f}=t,d=[];for(let p=0;p<f.length;p++){const a=f[p];if(a.type===1&&a.tagType===0){const m=i?0:It(a,r);if(m>0){if(m>=2){a.codegenNode.patchFlag=-1,d.push(a);continue}}else{const h=a.codegenNode;if(h.type===13){const b=h.patchFlag;if((b===void 0||b===512||b===1)&&Wp(a,r)>=2){const s=Pp(a);s&&(h.props=r.hoist(s))}h.dynamicProps&&(h.dynamicProps=r.hoist(h.dynamicProps))}}}else if(a.type===12&&(i?0:It(a,r))>=2){a.codegenNode.type===14&&a.codegenNode.arguments.length>0&&a.codegenNode.arguments.push("-1"),d.push(a);continue}if(a.type===1){const m=a.tagType===1;m&&r.scopes.vSlot++,Bs(a,t,r,!1,u),m&&r.scopes.vSlot--}else if(a.type===11)Bs(a,t,r,a.children.length===1,!0);else if(a.type===9)for(let m=0;m<a.branches.length;m++)Bs(a.branches[m],t,r,a.branches[m].children.length===1,u)}let l=!1;if(d.length===f.length&&t.type===1){if(t.tagType===0&&t.codegenNode&&t.codegenNode.type===13&&he(t.codegenNode.children))t.codegenNode.children=o(Xn(t.codegenNode.children)),l=!0;else if(t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!he(t.codegenNode.children)&&t.codegenNode.children.type===15){const p=n(t.codegenNode,"default");p&&(p.returns=o(Xn(p.returns)),l=!0)}else if(t.tagType===3&&e&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!he(e.codegenNode.children)&&e.codegenNode.children.type===15){const p=Tt(t,"slot",!0),a=p&&p.arg&&n(e.codegenNode,p.arg);a&&(a.returns=o(Xn(a.returns)),l=!0)}}if(!l)for(const p of d)p.codegenNode=r.cache(p.codegenNode);function o(p){const a=r.cache(p);return a.needArraySpread=!0,a}function n(p,a){if(p.children&&!he(p.children)&&p.children.type===15){const m=p.children.properties.find(h=>h.key===a||h.key.content===a);return m&&m.value}}d.length&&r.transformHoist&&r.transformHoist(f,r,t)}function It(t,e){const{constantCache:r}=e;switch(t.type){case 1:if(t.tagType!==0)return 0;const i=r.get(t);if(i!==void 0)return i;const u=t.codegenNode;if(u.type!==13||u.isBlock&&t.tag!=="svg"&&t.tag!=="foreignObject"&&t.tag!=="math")return 0;if(u.patchFlag===void 0){let d=3;const l=Wp(t,e);if(l===0)return r.set(t,0),0;l<d&&(d=l);for(let o=0;o<t.children.length;o++){const n=It(t.children[o],e);if(n===0)return r.set(t,0),0;n<d&&(d=n)}if(d>1)for(let o=0;o<t.props.length;o++){const n=t.props[o];if(n.type===7&&n.name==="bind"&&n.exp){const p=It(n.exp,e);if(p===0)return r.set(t,0),0;p<d&&(d=p)}}if(u.isBlock){for(let o=0;o<t.props.length;o++)if(t.props[o].type===7)return r.set(t,0),0;e.removeHelper(Kn),e.removeHelper(Er(e.inSSR,u.isComponent)),u.isBlock=!1,e.helper(Cr(e.inSSR,u.isComponent))}return r.set(t,d),d}else return r.set(t,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return It(t.content,e);case 4:return t.constType;case 8:let f=3;for(let d=0;d<t.children.length;d++){const l=t.children[d];if(xe(l)||mt(l))continue;const o=It(l,e);if(o===0)return 0;o<f&&(f=o)}return f;case 20:return 2;default:return 0}}const pw=new Set([qo,Jo,Yr,li]);function $p(t,e){if(t.type===14&&!xe(t.callee)&&pw.has(t.callee)){const r=t.arguments[0];if(r.type===4)return It(r,e);if(r.type===14)return $p(r,e)}return 0}function Wp(t,e){let r=3;const i=Pp(t);if(i&&i.type===15){const{properties:u}=i;for(let f=0;f<u.length;f++){const{key:d,value:l}=u[f],o=It(d,e);if(o===0)return o;o<r&&(r=o);let n;if(l.type===4?n=It(l,e):l.type===14?n=$p(l,e):n=0,n===0)return n;n<r&&(r=n)}}return r}function Pp(t){const e=t.codegenNode;if(e.type===13)return e.props}function Gp(t,{filename:e="",prefixIdentifiers:r=!1,hoistStatic:i=!1,hmr:u=!1,cacheHandlers:f=!1,nodeTransforms:d=[],directiveTransforms:l={},transformHoist:o=null,isBuiltInComponent:n=lt,isCustomElement:p=lt,expressionPlugins:a=[],scopeId:m=null,slotted:h=!0,ssr:b=!1,inSSR:s=!1,ssrCssVars:c="",bindingMetadata:v=Me,inline:g=!1,isTS:y=!1,onError:_=ql,onWarn:w=Cp,compatConfig:S}){const E=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),T={filename:e,selfName:E&&tr(Ve(E[1])),prefixIdentifiers:r,hoistStatic:i,hmr:u,cacheHandlers:f,nodeTransforms:d,directiveTransforms:l,transformHoist:o,isBuiltInComponent:n,isCustomElement:p,expressionPlugins:a,scopeId:m,slotted:h,ssr:b,inSSR:s,ssrCssVars:c,bindingMetadata:v,inline:g,isTS:y,onError:_,onWarn:w,compatConfig:S,root:t,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:t,childIndex:0,inVOnce:!1,helper(C){const N=T.helpers.get(C)||0;return T.helpers.set(C,N+1),C},removeHelper(C){const N=T.helpers.get(C);if(N){const B=N-1;B?T.helpers.set(C,B):T.helpers.delete(C)}},helperString(C){return`_${xr[T.helper(C)]}`},replaceNode(C){T.parent.children[T.childIndex]=T.currentNode=C},removeNode(C){const N=T.parent.children,B=C?N.indexOf(C):T.currentNode?T.childIndex:-1;!C||C===T.currentNode?(T.currentNode=null,T.onNodeRemoved()):T.childIndex>B&&(T.childIndex--,T.onNodeRemoved()),T.parent.children.splice(B,1)},onNodeRemoved:lt,addIdentifiers(C){},removeIdentifiers(C){},hoist(C){xe(C)&&(C=Ee(C)),T.hoists.push(C);const N=Ee(`_hoisted_${T.hoists.length}`,!1,C.loc,2);return N.hoisted=C,N},cache(C,N=!1,B=!1){const M=xp(T.cached.length,C,N,B);return T.cached.push(M),M}};return T.filters=new Set,T}function Zp(t,e){const r=Gp(t,e);ps(t,r),e.hoistStatic&&hw(t,r),e.ssr||mw(t,r),t.helpers=new Set([...r.helpers.keys()]),t.components=[...r.components],t.directives=[...r.directives],t.imports=r.imports,t.hoists=r.hoists,t.temps=r.temps,t.cached=r.cached,t.transformed=!0,t.filters=[...r.filters]}function mw(t,e){const{helper:r}=e,{children:i}=t;if(i.length===1){const u=zp(t);if(u&&u.codegenNode){const f=u.codegenNode;f.type===13&&Qo(f,e),t.codegenNode=f}else t.codegenNode=i[0]}else if(i.length>1){let u=64;t.codegenNode=Kr(e,r(Xr),void 0,t.children,u,void 0,void 0,!0,void 0,!1)}}function vw(t,e){let r=0;const i=()=>{r--};for(;r<t.children.length;r++){const u=t.children[r];xe(u)||(e.grandParent=e.parent,e.parent=t,e.childIndex=r,e.onNodeRemoved=i,ps(u,e))}}function ps(t,e){e.currentNode=t;const{nodeTransforms:r}=e,i=[];for(let f=0;f<r.length;f++){const d=r[f](t,e);if(d&&(he(d)?i.push(...d):i.push(d)),e.currentNode)t=e.currentNode;else return}switch(t.type){case 3:e.ssr||e.helper(ai);break;case 5:e.ssr||e.helper(ds);break;case 9:for(let f=0;f<t.branches.length;f++)ps(t.branches[f],e);break;case 10:case 11:case 1:case 0:vw(t,e);break}e.currentNode=t;let u=i.length;for(;u--;)i[u]()}function rc(t,e){const r=xe(t)?i=>i===t:i=>t.test(i);return(i,u)=>{if(i.type===1){const{props:f}=i;if(i.tagType===3&&f.some(Kl))return;const d=[];for(let l=0;l<f.length;l++){const o=f[l];if(o.type===7&&r(o.name)){f.splice(l,1),l--;const n=e(i,o,u);n&&d.push(n)}}return d}}}const ta="/*@__PURE__*/",qp=t=>`${xr[t]}: _${xr[t]}`;function gw(t,{mode:e="function",prefixIdentifiers:r=e==="module",sourceMap:i=!1,filename:u="template.vue.html",scopeId:f=null,optimizeImports:d=!1,runtimeGlobalName:l="Vue",runtimeModuleName:o="vue",ssrRuntimeModuleName:n="vue/server-renderer",ssr:p=!1,isTS:a=!1,inSSR:m=!1}){const h={mode:e,prefixIdentifiers:r,sourceMap:i,filename:u,scopeId:f,optimizeImports:d,runtimeGlobalName:l,runtimeModuleName:o,ssrRuntimeModuleName:n,ssr:p,isTS:a,inSSR:m,source:t.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(s){return`_${xr[s]}`},push(s,c=-2,v){h.code+=s},indent(){b(++h.indentLevel)},deindent(s=!1){s?--h.indentLevel:b(--h.indentLevel)},newline(){b(h.indentLevel)}};function b(s){h.push(` 16`+" ".repeat(s),0)}return h}function Jp(t,e={}){const r=gw(t,e);e.onContextCreated&&e.onContextCreated(r);const{mode:i,push:u,prefixIdentifiers:f,indent:d,deindent:l,newline:o,scopeId:n,ssr:p}=r,a=Array.from(t.helpers),m=a.length>0,h=!f&&i!=="module";bw(t,r);const s=p?"ssrRender":"render",v=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(u(`function ${s}(${v}) {`),d(),h&&(u("with (_ctx) {"),d(),m&&(u(`const { ${a.map(qp).join(", ")} } = _Vue 17`,-1),o())),t.components.length&&(Ta(t.components,"component",r),(t.directives.length||t.temps>0)&&o()),t.directives.length&&(Ta(t.directives,"directive",r),t.temps>0&&o()),t.filters&&t.filters.length&&(o(),Ta(t.filters,"filter",r),o()),t.temps>0){u("let ");for(let g=0;g<t.temps;g++)u(`${g>0?", ":""}_temp${g}`)}return(t.components.length||t.directives.length||t.temps)&&(u(` 18`,0),o()),p||u("return "),t.codegenNode?xt(t.codegenNode,r):u("null"),h&&(l(),u("}")),l(),u("}"),{ast:t,code:r.code,preamble:"",map:r.map?r.map.toJSON():void 0}}function bw(t,e){const{ssr:r,prefixIdentifiers:i,push:u,newline:f,runtimeModuleName:d,runtimeGlobalName:l,ssrRuntimeModuleName:o}=e,n=l,p=Array.from(t.helpers);if(p.length>0&&(u(`const _Vue = ${n} 19`,-1),t.hoists.length)){const a=[Vo,Fo,ai,jo,Wl].filter(m=>p.includes(m)).map(qp).join(", ");u(`const { ${a} } = _Vue 20`,-1)}yw(t.hoists,e),f(),u("return ")}function Ta(t,e,{helper:r,push:i,newline:u,isTS:f}){const d=r(e==="filter"?Po:e==="component"?zo:Wo);for(let l=0;l<t.length;l++){let o=t[l];const n=o.endsWith("__self");n&&(o=o.slice(0,-6)),i(`const ${ti(o,e)} = ${d}(${JSON.stringify(o)}${n?", true":""})${f?"!":""}`),l<t.length-1&&u()}}function yw(t,e){if(!t.length)return;e.pure=!0;const{push:r,newline:i}=e;i();for(let u=0;u<t.length;u++){const f=t[u];f&&(r(`const _hoisted_${u+1} = `),xt(f,e),i())}e.pure=!1}function ic(t,e){const r=t.length>3||!1;e.push("["),r&&e.indent(),ms(t,e,r),r&&e.deindent(),e.push("]")}function ms(t,e,r=!1,i=!0){const{push:u,newline:f}=e;for(let d=0;d<t.length;d++){const l=t[d];xe(l)?u(l,-3):he(l)?ic(l,e):xt(l,e),d<t.length-1&&(r?(i&&u(","),f()):i&&u(", "))}}function xt(t,e){if(xe(t)){e.push(t,-3);return}if(mt(t)){e.push(e.helper(t));return}switch(t.type){case 1:case 9:case 11:xt(t.codegenNode,e);break;case 2:_w(t,e);break;case 4:Xp(t,e);break;case 5:ww(t,e);break;case 12:xt(t.codegenNode,e);break;case 8:Yp(t,e);break;case 3:Sw(t,e);break;case 13:Cw(t,e);break;case 14:Tw(t,e);break;case 15:kw(t,e);break;case 17:Aw(t,e);break;case 18:Mw(t,e);break;case 19:Nw(t,e);break;case 20:Rw(t,e);break;case 21:ms(t.body,e,!0,!1);break}}function _w(t,e){e.push(JSON.stringify(t.content),-3,t)}function Xp(t,e){const{content:r,isStatic:i}=t;e.push(i?JSON.stringify(r):r,-3,t)}function ww(t,e){const{push:r,helper:i,pure:u}=e;u&&r(ta),r(`${i(ds)}(`),xt(t.content,e),r(")")}function Yp(t,e){for(let r=0;r<t.children.length;r++){const i=t.children[r];xe(i)?e.push(i,-3):xt(i,e)}}function xw(t,e){const{push:r}=e;if(t.type===8)r("["),Yp(t,e),r("]");else if(t.isStatic){const i=fs(t.content)?t.content:JSON.stringify(t.content);r(i,-2,t)}else r(`[${t.content}]`,-3,t)}function Sw(t,e){const{push:r,helper:i,pure:u}=e;u&&r(ta),r(`${i(ai)}(${JSON.stringify(t.content)})`,-3,t)}function Cw(t,e){const{push:r,helper:i,pure:u}=e,{tag:f,props:d,children:l,patchFlag:o,dynamicProps:n,directives:p,isBlock:a,disableTracking:m,isComponent:h}=t;let b;o&&(b=String(o)),p&&r(i(Go)+"("),a&&r(`(${i(Kn)}(${m?"true":""}), `),u&&r(ta);const s=a?Er(e.inSSR,h):Cr(e.inSSR,h);r(i(s)+"(",-2,t),ms(Ew([f,d,l,b,n]),e),r(")"),a&&r(")"),p&&(r(", "),xt(p,e),r(")"))}function Ew(t){let e=t.length;for(;e--&&t[e]==null;);return t.slice(0,e+1).map(r=>r||"null")}function Tw(t,e){const{push:r,helper:i,pure:u}=e,f=xe(t.callee)?t.callee:i(t.callee);u&&r(ta),r(f+"(",-2,t),ms(t.arguments,e),r(")")}function kw(t,e){const{push:r,indent:i,deindent:u,newline:f}=e,{properties:d}=t;if(!d.length){r("{}",-2,t);return}const l=d.length>1||!1;r(l?"{":"{ "),l&&i();for(let o=0;o<d.length;o++){const{key:n,value:p}=d[o];xw(n,e),r(": "),xt(p,e),o<d.length-1&&(r(","),f())}l&&u(),r(l?"}":" }")}function Aw(t,e){ic(t.elements,e)}function Mw(t,e){const{push:r,indent:i,deindent:u}=e,{params:f,returns:d,body:l,newline:o,isSlot:n}=t;n&&r(`_${xr[Yo]}(`),r("(",-2,t),he(f)?ms(f,e):f&&xt(f,e),r(") => "),(o||l)&&(r("{"),i()),d?(o&&r("return "),he(d)?ic(d,e):xt(d,e)):l&&xt(l,e),(o||l)&&(u(),r("}")),n&&(t.isNonScopedSlot&&r(", undefined, true"),r(")"))}function Nw(t,e){const{test:r,consequent:i,alternate:u,newline:f}=t,{push:d,indent:l,deindent:o,newline:n}=e;if(r.type===4){const a=!fs(r.content);a&&d("("),Xp(r,e),a&&d(")")}else d("("),xt(r,e),d(")");f&&l(),e.indentLevel++,f||d(" "),d("? "),xt(i,e),e.indentLevel--,f&&n(),f||d(" "),d(": ");const p=u.type===19;p||e.indentLevel++,xt(u,e),p||e.indentLevel--,f&&o(!0)}function Rw(t,e){const{push:r,helper:i,indent:u,deindent:f,newline:d}=e,{needPauseTracking:l,needArraySpread:o}=t;o&&r("[...("),r(`_cache[${t.index}] || (`),l&&(u(),r(`${i(Pi)}(-1`),t.inVOnce&&r(", true"),r("),"),d(),r("(")),r(`_cache[${t.index}] = `),xt(t.value,e),l&&(r(`).cacheIndex = ${t.index},`),d(),r(`${i(Pi)}(1),`),d(),r(`_cache[${t.index}]`),f()),r(")"),o&&r(")]")}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 Iw=(t,e)=>{if(t.type===5)t.content=Ds(t.content,e);else if(t.type===1){const r=Tt(t,"memo");for(let i=0;i<t.props.length;i++){const u=t.props[i];if(u.type===7&&u.name!=="for"){const f=u.exp,d=u.arg;f&&f.type===4&&!(u.name==="on"&&d)&&!(r&&d&&d.type===4&&d.content==="key")&&(u.exp=Ds(f,e,u.name==="slot")),d&&d.type===4&&!d.isStatic&&(u.arg=Ds(d,e))}}}};function Ds(t,e,r=!1,i=!1,u=Object.create(e.identifiers)){return t}function Kp(t){return xe(t)?t:t.type===4?t.content:t.children.map(Kp).join("")}const Ow=rc(/^(?:if|else|else-if)$/,(t,e,r)=>Qp(t,e,r,(i,u,f)=>{const d=r.parent.children;let l=d.indexOf(i),o=0;for(;l-->=0;){const n=d[l];n&&n.type===9&&(o+=n.branches.length)}return()=>{if(f)i.codegenNode=nd(u,o,r);else{const n=Hw(i.codegenNode);n.alternate=nd(u,o+i.branches.length-1,r)}}}));function Qp(t,e,r,i){if(e.name!=="else"&&(!e.exp||!e.exp.content.trim())){const u=e.exp?e.exp.loc:t.loc;r.onError($e(28,e.loc)),e.exp=Ee("true",!1,u)}if(e.name==="if"){const u=td(t,e),f={type:9,loc:uw(t.loc),branches:[u]};if(r.replaceNode(f),i)return i(f,u,!0)}else{const u=r.parent.children;let f=u.indexOf(t);for(;f-->=-1;){const d=u[f];if(d&&ec(d)){r.removeNode(d);continue}if(d&&d.type===9){(e.name==="else-if"||e.name==="else")&&d.branches[d.branches.length-1].condition===void 0&&r.onError($e(30,t.loc)),r.removeNode();const l=td(t,e);d.branches.push(l);const o=i&&i(d,l,!1);ps(l,r),o&&o(),r.currentNode=null}else r.onError($e(30,t.loc));break}}}function td(t,e){const r=t.tagType===3;return{type:10,loc:t.loc,condition:e.name==="else"?void 0:e.exp,children:r&&!Tt(t,"for")?t.children:[t],userKey:hs(t,"key"),isTemplateIf:r}}function nd(t,e,r){return t.condition?so(t.condition,rd(t,e,r),tt(r.helper(ai),['""',"true"])):rd(t,e,r)}function rd(t,e,r){const{helper:i}=r,u=Ye("key",Ee(`${e}`,!1,st,2)),{children:f}=t,d=f[0];if(f.length!==1||d.type!==1)if(f.length===1&&d.type===11){const o=d.codegenNode;return Zi(o,u,r),o}else return Kr(r,i(Xr),jt([u]),f,64,void 0,void 0,!0,!1,!1,t.loc);else{const o=d.codegenNode,n=Up(o);return n.type===13&&Qo(n,r),Zi(n,u,r),o}}function Hw(t){for(;;)if(t.type===19)if(t.alternate.type===19)t=t.alternate;else return t;else t.type===20&&(t=t.value)}const Lw=rc("for",(t,e,r)=>{const{helper:i,removeHelper:u}=r;return em(t,e,r,f=>{const d=tt(i(Zo),[f.source]),l=ei(t),o=Tt(t,"memo"),n=hs(t,"key",!1,!0);n&&n.type;let p=n&&(n.type===6?n.value?Ee(n.value.content,!0):void 0:n.exp);const a=n&&p?Ye("key",p):null,m=f.source.type===4&&f.source.constType>0,h=m?64:n?128:256;return f.codegenNode=Kr(r,i(Xr),void 0,d,h,void 0,void 0,!0,!m,!1,t.loc),()=>{let b;const{children:s}=f,c=s.length!==1||s[0].type!==1,v=Gi(t)?t:l&&t.children.length===1&&Gi(t.children[0])?t.children[0]:null;if(v?(b=v.codegenNode,l&&a&&Zi(b,a,r)):c?b=Kr(r,i(Xr),a?jt([a]):void 0,t.children,64,void 0,void 0,!0,void 0,!1):(b=s[0].codegenNode,l&&a&&Zi(b,a,r),b.isBlock!==!m&&(b.isBlock?(u(Kn),u(Er(r.inSSR,b.isComponent))):u(Cr(r.inSSR,b.isComponent))),b.isBlock=!m,b.isBlock?(i(Kn),i(Er(r.inSSR,b.isComponent))):i(Cr(r.inSSR,b.isComponent))),o){const g=Sr(ao(f.parseResult,[Ee("_cached")]));g.body=Sp([Gt(["const _memo = (",o.exp,")"]),Gt(["if (_cached && _cached.el",...p?[" && _cached.key === ",p]:[],` && ${r.helperString(Zl)}(_cached, _memo)) return _cached`]),Gt(["const _item = ",b]),Ee("_item.memo = _memo"),Ee("return _item")]),d.arguments.push(g,Ee("_cache"),Ee(String(r.cached.length))),r.cached.push(null)}else d.arguments.push(Sr(ao(f.parseResult),b,!0))}})});function em(t,e,r,i){if(!e.exp){r.onError($e(31,e.loc));return}const u=e.forParseResult;if(!u){r.onError($e(32,e.loc));return}sc(u);const{addIdentifiers:f,removeIdentifiers:d,scopes:l}=r,{source:o,value:n,key:p,index:a}=u,m={type:11,loc:e.loc,source:o,valueAlias:n,keyAlias:p,objectIndexAlias:a,parseResult:u,children:ei(t)?t.children:[t]};r.replaceNode(m),l.vFor++;const h=i&&i(m);return()=>{l.vFor--,h&&h()}}function sc(t,e){t.finalized||(t.finalized=!0)}function ao({value:t,key:e,index:r},i=[]){return Uw([t,e,r,...i])}function Uw(t){let e=t.length;for(;e--&&!t[e];);return t.slice(0,e+1).map((r,i)=>r||Ee("_".repeat(i+1),!1))}const id=Ee("undefined",!1),tm=(t,e)=>{if(t.type===1&&(t.tagType===1||t.tagType===3)){const r=Tt(t,"slot");if(r)return r.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},Bw=(t,e)=>{let r;if(ei(t)&&t.props.some(Kl)&&(r=Tt(t,"for"))){const i=r.forParseResult;if(i){sc(i);const{value:u,key:f,index:d}=i,{addIdentifiers:l,removeIdentifiers:o}=e;return u&&l(u),f&&l(f),d&&l(d),()=>{u&&o(u),f&&o(f),d&&o(d)}}}},Dw=(t,e,r,i)=>Sr(t,r,!1,!0,r.length?r[0].loc:i);function nm(t,e,r=Dw){e.helper(Yo);const{children:i,loc:u}=t,f=[],d=[];let l=e.scopes.vSlot>0||e.scopes.vFor>0;const o=Tt(t,"slot",!0);if(o){const{arg:c,exp:v}=o;c&&!kt(c)&&(l=!0),f.push(Ye(c||Ee("default",!0),r(v,void 0,i,u)))}let n=!1,p=!1;const a=[],m=new Set;let h=0;for(let c=0;c<i.length;c++){const v=i[c];let g;if(!ei(v)||!(g=Tt(v,"slot",!0))){v.type!==3&&a.push(v);continue}if(o){e.onError($e(37,g.loc));break}n=!0;const{children:y,loc:_}=v,{arg:w=Ee("default",!0),exp:S,loc:E}=g;let T;kt(w)?T=w?w.content:"default":l=!0;const C=Tt(v,"for"),N=r(S,C,y,_);let B,M;if(B=Tt(v,"if"))l=!0,d.push(so(B.exp,As(w,N,h++),id));else if(M=Tt(v,/^else(?:-if)?$/,!0)){let L=c,I;for(;L--&&(I=i[L],!!ec(I)););if(I&&ei(I)&&Tt(I,/^(?:else-)?if$/)){let $=d[d.length-1];for(;$.alternate.type===19;)$=$.alternate;$.alternate=M.exp?so(M.exp,As(w,N,h++),id):As(w,N,h++)}else e.onError($e(30,M.loc))}else if(C){l=!0;const L=C.forParseResult;L?(sc(L),d.push(tt(e.helper(Zo),[L.source,Sr(ao(L),As(w,N),!0)]))):e.onError($e(32,C.loc))}else{if(T){if(m.has(T)){e.onError($e(38,E));continue}m.add(T),T==="default"&&(p=!0)}f.push(Ye(w,N))}}if(!o){const c=(v,g)=>{const y=r(v,void 0,g,u);return e.compatConfig&&(y.isNonScopedSlot=!0),Ye("default",y)};n?a.length&&!a.every(ea)&&(p?e.onError($e(39,a[0].loc)):f.push(c(void 0,a))):f.push(c(void 0,i))}const b=l?2:Vs(t.children)?3:1;let s=jt(f.concat(Ye("_",Ee(b+"",!1))),u);return d.length&&(s=tt(e.helper(Gl),[s,Xn(d)])),{slots:s,hasDynamicSlots:l}}function As(t,e,r){const i=[Ye("name",t),Ye("fn",e)];return r!=null&&i.push(Ye("key",Ee(String(r),!0))),jt(i)}function Vs(t){for(let e=0;e<t.length;e++){const r=t[e];switch(r.type){case 1:if(r.tagType===2||Vs(r.children))return!0;break;case 9:if(Vs(r.branches))return!0;break;case 10:case 11:if(Vs(r.children))return!0;break}}return!1}const rm=new WeakMap,im=(t,e)=>function(){if(t=e.currentNode,!(t.type===1&&(t.tagType===0||t.tagType===1)))return;const{tag:i,props:u}=t,f=t.tagType===1;let d=f?sm(t,e):`"${i}"`;const l=He(d)&&d.callee===$o;let o,n,p=0,a,m,h,b=l||d===zr||d===Do||!f&&(i==="svg"||i==="foreignObject"||i==="math");if(u.length>0){const s=oc(t,e,void 0,f,l);o=s.props,p=s.patchFlag,m=s.dynamicPropNames;const c=s.directives;h=c&&c.length?Xn(c.map(v=>om(v,e))):void 0,s.shouldUseBlock&&(b=!0)}if(t.children.length>0)if(d===$i&&(b=!0,p|=1024),f&&d!==zr&&d!==$i){const{slots:c,hasDynamicSlots:v}=nm(t,e);n=c,v&&(p|=1024)}else if(t.children.length===1&&d!==zr){const c=t.children[0],v=c.type,g=v===5||v===8;g&&It(c,e)===0&&(p|=1),g||v===2?n=c:n=t.children}else n=t.children;m&&m.length&&(a=Fw(m)),t.codegenNode=Kr(e,d,o,n,p===0?void 0:p,a,h,!!b,!1,f,t.loc)};function sm(t,e,r=!1){let{tag:i}=t;const u=sl(i),f=hs(t,"is",!1,!0);if(f)if(u||br("COMPILER_IS_ON_ELEMENT",e)){let l;if(f.type===6?l=f.value&&Ee(f.value.content,!0):(l=f.exp,l||(l=Ee("is",!1,f.arg.loc))),l)return tt(e.helper($o),[l])}else f.type===6&&f.value.content.startsWith("vue:")&&(i=f.value.content.slice(4));const d=Jl(i)||e.isBuiltInComponent(i);return d?(r||e.helper(d),d):(e.helper(zo),e.components.add(i),ti(i,"component"))}function oc(t,e,r=t.props,i,u,f=!1){const{tag:d,loc:l,children:o}=t;let n=[];const p=[],a=[],m=o.length>0;let h=!1,b=0,s=!1,c=!1,v=!1,g=!1,y=!1,_=!1;const w=[],S=N=>{n.length&&(p.push(jt(sd(n),l)),n=[]),N&&p.push(N)},E=()=>{e.scopes.vFor>0&&n.push(Ye(Ee("ref_for",!0),Ee("true")))},T=({key:N,value:B})=>{if(kt(N)){const M=N.content,L=Qn(M);if(L&&(!i||u)&&M.toLowerCase()!=="onclick"&&M!=="onUpdate:modelValue"&&!fn(M)&&(g=!0),L&&fn(M)&&(_=!0),L&&B.type===14&&(B=B.arguments[0]),B.type===20||(B.type===4||B.type===8)&&It(B,e)>0)return;M==="ref"?s=!0:M==="class"?c=!0:M==="style"?v=!0:M!=="key"&&!w.includes(M)&&w.push(M),i&&(M==="class"||M==="style")&&!w.includes(M)&&w.push(M)}else y=!0};for(let N=0;N<r.length;N++){const B=r[N];if(B.type===6){const{loc:M,name:L,nameLoc:I,value:$}=B;let O=!0;if(L==="ref"&&(s=!0,E()),L==="is"&&(sl(d)||$&&$.content.startsWith("vue:")||br("COMPILER_IS_ON_ELEMENT",e)))continue;n.push(Ye(Ee(L,!0,I),Ee($?$.content:"",O,$?$.loc:M)))}else{const{name:M,arg:L,exp:I,loc:$,modifiers:O}=B,H=M==="bind",D=M==="on";if(M==="slot"){i||e.onError($e(40,$));continue}if(M==="once"||M==="memo"||M==="is"||H&&qn(L,"is")&&(sl(d)||br("COMPILER_IS_ON_ELEMENT",e))||D&&f)continue;if((H&&qn(L,"key")||D&&m&&qn(L,"vue:before-update"))&&(h=!0),H&&qn(L,"ref")&&E(),!L&&(H||D)){if(y=!0,I)if(H){if(S(),br("COMPILER_V_BIND_OBJECT_ORDER",e)){p.unshift(I);continue}E(),S(),p.push(I)}else S({type:14,loc:$,callee:e.helper(Xo),arguments:i?[I]:[I,"true"]});else e.onError($e(H?34:35,$));continue}H&&O.some(z=>z.content==="prop")&&(b|=32);const R=e.directiveTransforms[M];if(R){const{props:z,needRuntime:A}=R(B,t,e);!f&&z.forEach(T),D&&L&&!kt(L)?S(jt(z,l)):n.push(...z),A&&(a.push(B),mt(A)&&rm.set(B,A))}else vd(M)||(a.push(B),m&&(h=!0))}}let C;if(p.length?(S(),p.length>1?C=tt(e.helper(Wi),p,l):C=p[0]):n.length&&(C=jt(sd(n),l)),y?b|=16:(c&&!i&&(b|=2),v&&!i&&(b|=4),w.length&&(b|=8),g&&(b|=32)),!h&&(b===0||b===32)&&(s||_||a.length>0)&&(b|=512),!e.inSSR&&C)switch(C.type){case 15:let N=-1,B=-1,M=!1;for(let $=0;$<C.properties.length;$++){const O=C.properties[$].key;kt(O)?O.content==="class"?N=$:O.content==="style"&&(B=$):O.isHandlerKey||(M=!0)}const L=C.properties[N],I=C.properties[B];M?C=tt(e.helper(Yr),[C]):(L&&!kt(L.value)&&(L.value=tt(e.helper(qo),[L.value])),I&&(v||I.value.type===4&&I.value.content.trim()[0]==="["||I.value.type===17)&&(I.value=tt(e.helper(Jo),[I.value])));break;case 14:break;default:C=tt(e.helper(Yr),[tt(e.helper(li),[C])]);break}return{props:C,directives:a,patchFlag:b,dynamicPropNames:w,shouldUseBlock:h}}function sd(t){const e=new Map,r=[];for(let i=0;i<t.length;i++){const u=t[i];if(u.key.type===8||!u.key.isStatic){r.push(u);continue}const f=u.key.content,d=e.get(f);d?(f==="style"||f==="class"||Qn(f))&&Vw(d,u):(e.set(f,u),r.push(u))}return r}function Vw(t,e){t.value.type===17?t.value.elements.push(e.value):t.value=Xn([t.value,e.value],t.loc)}function om(t,e){const r=[],i=rm.get(t);i?r.push(e.helperString(i)):(e.helper(Wo),e.directives.add(t.name),r.push(ti(t.name,"directive")));const{loc:u}=t;if(t.exp&&r.push(t.exp),t.arg&&(t.exp||r.push("void 0"),r.push(t.arg)),Object.keys(t.modifiers).length){t.arg||(t.exp||r.push("void 0"),r.push("void 0"));const f=Ee("true",!1,u);r.push(jt(t.modifiers.map(d=>Ye(d,f)),u))}return Xn(r,t.loc)}function Fw(t){let e="[";for(let r=0,i=t.length;r<i;r++)e+=JSON.stringify(t[r]),r<i-1&&(e+=", ");return e+"]"}function sl(t){return t==="component"||t==="Component"}const jw=(t,e)=>{if(Gi(t)){const{children:r,loc:i}=t,{slotName:u,slotProps:f}=am(t,e),d=[e.prefixIdentifiers?"_ctx.$slots":"$slots",u,"{}","undefined","true"];let l=2;f&&(d[2]=f,l=3),r.length&&(d[3]=Sr([],r,!1,!1,i),l=4),e.scopeId&&!e.slotted&&(l=5),d.splice(l),t.codegenNode=tt(e.helper(Pl),d,i)}};function am(t,e){let r='"default"',i;const u=[];for(let f=0;f<t.props.length;f++){const d=t.props[f];if(d.type===6)d.value&&(d.name==="name"?r=JSON.stringify(d.value.content):(d.name=Ve(d.name),u.push(d)));else if(d.name==="bind"&&qn(d.arg,"name")){if(d.exp)r=d.exp;else if(d.arg&&d.arg.type===4){const l=Ve(d.arg.content);r=d.exp=Ee(l,!1,d.arg.loc)}}else d.name==="bind"&&d.arg&&kt(d.arg)&&(d.arg.content=Ve(d.arg.content)),u.push(d)}if(u.length>0){const{props:f,directives:d}=oc(t,e,u,!1,!1);i=f,d.length&&e.onError($e(36,d[0].loc))}return{slotName:r,slotProps:i}}const ac=(t,e,r,i)=>{const{loc:u,modifiers:f,arg:d}=t;!t.exp&&!f.length&&r.onError($e(35,u));let l;if(d.type===4)if(d.isStatic){let a=d.content;a.startsWith("vue:")&&(a=`vnode-${a.slice(4)}`);const m=e.tagType!==0||a.startsWith("vnode")||!/[A-Z]/.test(a)?fr(Ve(a)):`on:${a}`;l=Ee(m,!0,d.loc)}else l=Gt([`${r.helperString(io)}(`,d,")"]);else l=d,l.children.unshift(`${r.helperString(io)}(`),l.children.push(")");let o=t.exp;o&&!o.content.trim()&&(o=void 0);let n=r.cacheHandlers&&!o&&!r.inVOnce;if(o){const a=Yl(o),m=!(a||Ip(o)),h=o.content.includes(";");(m||n&&a)&&(o=Gt([`${m?"$event":"(...args)"} => ${h?"{":"("}`,o,h?"}":")"]))}let p={props:[Ye(l,o||Ee("() => {}",!1,u))]};return i&&(p=i(p)),n&&(p.props[0].value=r.cache(p.props[0].value)),p.props.forEach(a=>a.key.isHandlerKey=!0),p},lm=(t,e,r)=>{const{modifiers:i,loc:u}=t,f=t.arg;let{exp:d}=t;return d&&d.type===4&&!d.content.trim()&&(d=void 0),f.type!==4?(f.children.unshift("("),f.children.push(') || ""')):f.isStatic||(f.content=f.content?`${f.content} || ""`:'""'),i.some(l=>l.content==="camel")&&(f.type===4?f.isStatic?f.content=Ve(f.content):f.content=`${r.helperString(ro)}(${f.content})`:(f.children.unshift(`${r.helperString(ro)}(`),f.children.push(")"))),r.inSSR||(i.some(l=>l.content==="prop")&&od(f,"."),i.some(l=>l.content==="attr")&&od(f,"^")),{props:[Ye(f,d)]}},od=(t,e)=>{t.type===4?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},zw=(t,e)=>{if(t.type===0||t.type===1||t.type===11||t.type===10)return()=>{const r=t.children;let i,u=!1;for(let f=0;f<r.length;f++){const d=r[f];if(Hs(d)){u=!0;for(let l=f+1;l<r.length;l++){const o=r[l];if(Hs(o))i||(i=r[f]=Gt([d],d.loc)),i.children.push(" + ",o),r.splice(l,1),l--;else{i=void 0;break}}}}if(!(!u||r.length===1&&(t.type===0||t.type===1&&t.tagType===0&&!t.props.find(f=>f.type===7&&!e.directiveTransforms[f.name])&&t.tag!=="template")))for(let f=0;f<r.length;f++){const d=r[f];if(Hs(d)||d.type===8){const l=[];(d.type!==2||d.content!==" ")&&l.push(d),!e.ssr&&It(d,e)===0&&l.push("1"),r[f]={type:12,content:d,loc:d.loc,codegenNode:tt(e.helper(jo),l)}}}}},ad=new WeakSet,$w=(t,e)=>{if(t.type===1&&Tt(t,"once",!0))return ad.has(t)||e.inVOnce||e.inSSR?void 0:(ad.add(t),e.inVOnce=!0,e.helper(Pi),()=>{e.inVOnce=!1;const r=e.currentNode;r.codegenNode&&(r.codegenNode=e.cache(r.codegenNode,!0,!0))})},lc=(t,e,r)=>{const{exp:i,arg:u}=t;if(!i)return r.onError($e(41,t.loc)),vi();const f=i.loc.source.trim(),d=i.type===4?i.content:f,l=r.bindingMetadata[f];if(l==="props"||l==="props-aliased")return r.onError($e(44,i.loc)),vi();if(l==="literal-const"||l==="setup-const")return r.onError($e(45,i.loc)),vi();if(!d.trim()||!Yl(i))return r.onError($e(42,i.loc)),vi();const o=u||Ee("modelValue",!0),n=u?kt(u)?`onUpdate:${Ve(u.content)}`:Gt(['"onUpdate:" + ',u]):"onUpdate:modelValue";let p;const a=r.isTS?"($event: any)":"$event";p=Gt([`${a} => ((`,i,") = $event)"]);const m=[Ye(o,t.exp),Ye(n,p)];if(t.modifiers.length&&e.tagType===1){const h=t.modifiers.map(s=>s.content).map(s=>(fs(s)?s:JSON.stringify(s))+": true").join(", "),b=u?kt(u)?`${u.content}Modifiers`:Gt([u,' + "Modifiers"']):"modelModifiers";m.push(Ye(b,Ee(`{ ${h} }`,!1,t.loc,2)))}return vi(m)};function vi(t=[]){return{props:t}}const Ww=/[\w).+\-_$\]]/,Pw=(t,e)=>{br("COMPILER_FILTERS",e)&&(t.type===5?lo(t.content,e):t.type===1&&t.props.forEach(r=>{r.type===7&&r.name!=="for"&&r.exp&&lo(r.exp,e)}))};function lo(t,e){if(t.type===4)ld(t,e);else for(let r=0;r<t.children.length;r++){const i=t.children[r];typeof i=="object"&&(i.type===4?ld(i,e):i.type===8?lo(t,e):i.type===5&&lo(i.content,e))}}function ld(t,e){const r=t.content;let i=!1,u=!1,f=!1,d=!1,l=0,o=0,n=0,p=0,a,m,h,b,s=[];for(h=0;h<r.length;h++)if(m=a,a=r.charCodeAt(h),i)a===39&&m!==92&&(i=!1);else if(u)a===34&&m!==92&&(u=!1);else if(f)a===96&&m!==92&&(f=!1);else if(d)a===47&&m!==92&&(d=!1);else if(a===124&&r.charCodeAt(h+1)!==124&&r.charCodeAt(h-1)!==124&&!l&&!o&&!n)b===void 0?(p=h+1,b=r.slice(0,h).trim()):c();else{switch(a){case 34:u=!0;break;case 39:i=!0;break;case 96:f=!0;break;case 40:n++;break;case 41:n--;break;case 91:o++;break;case 93:o--;break;case 123:l++;break;case 125:l--;break}if(a===47){let v=h-1,g;for(;v>=0&&(g=r.charAt(v),g===" ");v--);(!g||!Ww.test(g))&&(d=!0)}}b===void 0?b=r.slice(0,h).trim():p!==0&&c();function c(){s.push(r.slice(p,h).trim()),p=h+1}if(s.length){for(h=0;h<s.length;h++)b=Gw(b,s[h],e);t.content=b,t.ast=void 0}}function Gw(t,e,r){r.helper(Po);const i=e.indexOf("(");if(i<0)return r.filters.add(e),`${ti(e,"filter")}(${t})`;{const u=e.slice(0,i),f=e.slice(i+1);return r.filters.add(u),`${ti(u,"filter")}(${t}${f!==")"?","+f:f}`}}const cd=new WeakSet,Zw=(t,e)=>{if(t.type===1){const r=Tt(t,"memo");return!r||cd.has(t)||e.inSSR?void 0:(cd.add(t),()=>{const i=t.codegenNode||e.currentNode.codegenNode;i&&i.type===13&&(t.tagType!==1&&Qo(i,e),t.codegenNode=tt(e.helper(Ko),[r.exp,Sr(void 0,i),"_cache",String(e.cached.length)]),e.cached.push(null))})}},cm=(t,e)=>{if(t.type===1){for(const r of t.props)if(r.type===7&&r.name==="bind"&&(!r.exp||r.exp.type===4&&!r.exp.content.trim())&&r.arg){const i=r.arg;if(i.type!==4||!i.isStatic)e.onError($e(53,i.loc)),r.exp=Ee("",!0,i.loc);else{const u=Ve(i.content);(Xl.test(u[0])||u[0]==="-")&&(r.exp=Ee(u,!1,i.loc))}}}};function um(t){return[[cm,$w,Ow,Zw,Lw,Pw,jw,im,tm,zw],{on:ac,bind:lm,model:lc}]}function dm(t,e={}){const r=e.onError||ql,i=e.mode==="module";e.prefixIdentifiers===!0?r($e(48)):i&&r($e(49));const u=!1;e.cacheHandlers&&r($e(50)),e.scopeId&&!i&&r($e(51));const f=Ae({},e,{prefixIdentifiers:u}),d=xe(t)?nc(t,f):t,[l,o]=um();return Zp(d,Ae({},f,{nodeTransforms:[...l,...e.nodeTransforms||[]],directiveTransforms:Ae({},o,e.directiveTransforms||{})})),Jp(d,f)}const qw={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},fm=()=>({props:[]});const cc=Symbol(""),uc=Symbol(""),dc=Symbol(""),fc=Symbol(""),co=Symbol(""),hc=Symbol(""),pc=Symbol(""),mc=Symbol(""),vc=Symbol(""),gc=Symbol("");_p({[cc]:"vModelRadio",[uc]:"vModelCheckbox",[dc]:"vModelText",[fc]:"vModelSelect",[co]:"vModelDynamic",[hc]:"withModifiers",[pc]:"withKeys",[mc]:"vShow",[vc]:"Transition",[gc]:"TransitionGroup"});let Or;function Jw(t,e=!1){return Or||(Or=document.createElement("div")),e?(Or.innerHTML=`<div foo="${t.replace(/"/g,""")}">`,Or.children[0].getAttribute("foo")):(Or.innerHTML=t,Or.textContent)}const bc={parseMode:"html",isVoidTag:xd,isNativeTag:t=>yd(t)||_d(t)||wd(t),isPreTag:t=>t==="pre",isIgnoreNewlineTag:t=>t==="pre"||t==="textarea",decodeEntities:Jw,isBuiltInComponent:t=>{if(t==="Transition"||t==="transition")return vc;if(t==="TransitionGroup"||t==="transition-group")return gc},getNamespace(t,e,r){let i=e?e.ns:r;if(e&&i===2)if(e.tag==="annotation-xml"){if(t==="svg")return 1;e.props.some(u=>u.type===6&&u.name==="encoding"&&u.value!=null&&(u.value.content==="text/html"||u.value.content==="application/xhtml+xml"))&&(i=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&t!=="mglyph"&&t!=="malignmark"&&(i=0);else e&&i===1&&(e.tag==="foreignObject"||e.tag==="desc"||e.tag==="title")&&(i=0);if(i===0){if(t==="svg")return 1;if(t==="math")return 2}return i}},hm=t=>{t.type===1&&t.props.forEach((e,r)=>{e.type===6&&e.name==="style"&&e.value&&(t.props[r]={type:7,name:"bind",arg:Ee("style",!0,e.loc),exp:Xw(e.value.content,e.loc),modifiers:[],loc:e.loc})})},Xw=(t,e)=>{const r=cl(t);return Ee(JSON.stringify(r),!1,e,3)};function Rn(t,e){return $e(t,e)}const Yw={X_V_HTML_NO_EXPRESSION:54,54:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:55,55:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:56,56:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:57,57:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:58,58:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:59,59:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:61,61:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:62,62:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVA
20LID_CHILDREN:63,63:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:64,64:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:65,65:"__EXTEND_POINT__"},Kw={54:"v-html is missing expression.",55:"v-html will override element children.",56:"v-text is missing expression.",57:"v-text will override element children.",58:"v-model can only be used on <input>, <textarea> and <select> elements.",59:"v-model argument is not supported on plain elements.",60:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",61:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",62:"v-show is missing expression.",63:"<Transition> expects exactly one child element or component.",64:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Qw=(t,e,r)=>{const{exp:i,loc:u}=t;return i||r.onError(Rn(54,u)),e.children.length&&(r.onError(Rn(55,u)),e.children.length=0),{props:[Ye(Ee("innerHTML",!0,u),i||Ee("",!0))]}},ex=(t,e,r)=>{const{exp:i,loc:u}=t;return i||r.onError(Rn(56,u)),e.children.length&&(r.onError(Rn(57,u)),e.children.length=0),{props:[Ye(Ee("textContent",!0),i?It(i,r)>0?i:tt(r.helperString(ds),[i],u):Ee("",!0))]}},tx=(t,e,r)=>{const i=lc(t,e,r);if(!i.props.length||e.tagType===1)return i;t.arg&&r.onError(Rn(59,t.arg.loc));const{tag:u}=e,f=r.isCustomElement(u);if(u==="input"||u==="textarea"||u==="select"||f){let d=dc,l=!1;if(u==="input"||f){const o=hs(e,"type");if(o){if(o.type===7)d=co;else if(o.value)switch(o.value.content){case"radio":d=cc;break;case"checkbox":d=uc;break;case"file":l=!0,r.onError(Rn(60,t.loc));break}}else Hp(e)&&(d=co)}else u==="select"&&(d=fc);l||(i.needRuntime=r.helper(d))}else r.onError(Rn(58,t.loc));return i.props=i.props.filter(d=>!(d.key.type===4&&d.key.content==="modelValue")),i},nx=dt("passive,once,capture"),rx=dt("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),ix=dt("left,right"),pm=dt("onkeyup,onkeydown,onkeypress"),sx=(t,e,r,i)=>{const u=[],f=[],d=[];for(let l=0;l<e.length;l++){const o=e[l].content;o==="native"&&Qr("COMPILER_V_ON_NATIVE",r)||nx(o)?d.push(o):ix(o)?kt(t)?pm(t.content.toLowerCase())?u.push(o):f.push(o):(u.push(o),f.push(o)):rx(o)?f.push(o):u.push(o)}return{keyModifiers:u,nonKeyModifiers:f,eventOptionModifiers:d}},ud=(t,e)=>kt(t)&&t.content.toLowerCase()==="onclick"?Ee(e,!0):t.type!==4?Gt(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t,ox=(t,e,r)=>ac(t,e,r,i=>{const{modifiers:u}=t;if(!u.length)return i;let{key:f,value:d}=i.props[0];const{keyModifiers:l,nonKeyModifiers:o,eventOptionModifiers:n}=sx(f,u,r,t.loc);if(o.includes("right")&&(f=ud(f,"onContextmenu")),o.includes("middle")&&(f=ud(f,"onMouseup")),o.length&&(d=tt(r.helper(hc),[d,JSON.stringify(o)])),l.length&&(!kt(f)||pm(f.content.toLowerCase()))&&(d=tt(r.helper(pc),[d,JSON.stringify(l)])),n.length){const p=n.map(tr).join("");f=kt(f)?Ee(`${f.content}${p}`,!0):Gt(["(",f,`) + "${p}"`])}return{props:[Ye(f,d)]}}),ax=(t,e,r)=>{const{exp:i,loc:u}=t;return i||r.onError(Rn(62,u)),{props:[],needRuntime:r.helper(mc)}},lx=(t,e)=>{t.type===1&&t.tagType===0&&(t.tag==="script"||t.tag==="style")&&e.removeNode()},mm=[hm],vm={cloak:fm,html:Qw,text:ex,model:tx,on:ox,show:ax};function cx(t,e={}){return dm(t,Ae({},bc,e,{nodeTransforms:[lx,...mm,...e.nodeTransforms||[]],directiveTransforms:Ae({},vm,e.directiveTransforms||{}),transformHoist:null}))}function ux(t,e={}){return nc(t,Ae({},bc,e))}const dx=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:jl,BindingTypes:qw,CAMELIZE:ro,CAPITALIZE:mp,CREATE_BLOCK:zl,CREATE_COMMENT:ai,CREATE_ELEMENT_BLOCK:$l,CREATE_ELEMENT_VNODE:Fo,CREATE_SLOTS:Gl,CREATE_STATIC:Wl,CREATE_TEXT:jo,CREATE_VNODE:Vo,CompilerDeprecationTypes:I1,ConstantTypes:C1,DOMDirectiveTransforms:vm,DOMErrorCodes:Yw,DOMErrorMessages:Kw,DOMNodeTransforms:mm,ElementTypes:S1,ErrorCodes:L1,FRAGMENT:Xr,GUARD_REACTIVE_PROPS:li,IS_MEMO_SAME:Zl,IS_REF:yp,KEEP_ALIVE:$i,MERGE_PROPS:Wi,NORMALIZE_CLASS:qo,NORMALIZE_PROPS:Yr,NORMALIZE_STYLE:Jo,Namespaces:w1,NodeTypes:x1,OPEN_BLOCK:Kn,POP_SCOPE_ID:gp,PUSH_SCOPE_ID:vp,RENDER_LIST:Zo,RENDER_SLOT:Pl,RESOLVE_COMPONENT:zo,RESOLVE_DIRECTIVE:Wo,RESOLVE_DYNAMIC_COMPONENT:$o,RESOLVE_FILTER:Po,SET_BLOCK_TRACKING:Pi,SUSPENSE:Do,TELEPORT:zr,TO_DISPLAY_STRING:ds,TO_HANDLERS:Xo,TO_HANDLER_KEY:io,TRANSITION:vc,TRANSITION_GROUP:gc,TS_NODE_TYPES:kp,UNREF:bp,V_MODEL_CHECKBOX:uc,V_MODEL_DYNAMIC:co,V_MODEL_RADIO:cc,V_MODEL_SELECT:fc,V_MODEL_TEXT:dc,V_ON_WITH_KEYS:pc,V_ON_WITH_MODIFIERS:hc,V_SHOW:mc,WITH_CTX:Yo,WITH_DIRECTIVES:Go,WITH_MEMO:Ko,advancePositionWithClone:Q1,advancePositionWithMutation:Op,assert:ew,baseCompile:dm,baseParse:nc,buildDirectiveArgs:om,buildProps:oc,buildSlots:nm,checkCompatEnabled:Qr,compile:cx,convertToBlock:Qo,createArrayExpression:Xn,createAssignmentExpression:A1,createBlockStatement:Sp,createCacheExpression:xp,createCallExpression:tt,createCompilerError:$e,createCompoundExpression:Gt,createConditionalExpression:so,createDOMCompilerError:Rn,createForLoopParams:ao,createFunctionExpression:Sr,createIfStatement:k1,createInterpolation:E1,createObjectExpression:jt,createObjectProperty:Ye,createReturnStatement:N1,createRoot:wp,createSequenceExpression:M1,createSimpleExpression:Ee,createStructuralDirectiveTransform:rc,createTemplateLiteral
20:T1,createTransformContext:Gp,createVNodeCall:Kr,errorMessages:U1,extractIdentifiers:dn,findDir:Tt,findProp:hs,forAliasRE:Bp,generate:Jp,generateCodeFrame:gd,getBaseTransformPreset:um,getConstantType:It,getMemoedVNodeCall:Up,getVNodeBlockHelper:Er,getVNodeHelper:Cr,hasDynamicKeyVBind:Hp,hasScopeRef:Jt,helperNameMap:xr,injectProp:Zi,isAllWhitespace:Ql,isCommentOrWhitespace:ec,isCoreComponent:Jl,isFnExpression:Ip,isFnExpressionBrowser:Rp,isFnExpressionNode:K1,isFunctionType:P1,isInDestructureAssignment:V1,isInNewExpression:F1,isMemberExpression:Yl,isMemberExpressionBrowser:Np,isMemberExpressionNode:X1,isReferencedIdentifier:D1,isSimpleIdentifier:fs,isSlotOutlet:Gi,isStaticArgOf:qn,isStaticExp:kt,isStaticProperty:Tp,isStaticPropertyKey:G1,isTemplateNode:ei,isText:Hs,isVPre:nl,isVSlot:Kl,isWhitespaceText:ea,locStub:st,noopDirectiveTransform:fm,parse:ux,parserOptions:bc,processExpression:Ds,processFor:em,processIf:Qp,processSlotOutlet:am,registerRuntimeHelpers:_p,resolveComponentType:sm,stringifyExpression:Kp,toValidAssetId:ti,trackSlotScopes:tm,trackVForSlotScopes:Bw,transform:Zp,transformBind:lm,transformElement:im,transformExpression:Iw,transformModel:lc,transformOn:ac,transformStyle:hm,transformVBindShorthand:cm,traverseNode:ps,unwrapTSNode:Ap,validFirstIdentCharRE:Xl,walkBlockDeclarations:Ep,walkFunctionParams:j1,walkIdentifiers:B1,warnDeprecation:H1},Symbol.toStringTag,{value:"Module"})),fx=Fl(dx),hx=Fl(y0),px=Fl(ev);var dd;function mx(){return dd||(dd=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=fx,r=hx,i=px;function u(o){var n=Object.create(null);if(o)for(var p in o)n[p]=o[p];return n.default=o,Object.freeze(n)}var f=u(r);const d=Object.create(null);function l(o,n){if(!i.isString(o))if(o.nodeType)o=o.innerHTML;else return i.NOOP;const p=i.genCacheKey(o,n),a=d[p];if(a)return a;if(o[0]==="#"){const s=document.querySelector(o);o=s?s.innerHTML:""}const m=i.extend({hoistStatic:!0,onError:void 0,onWarn:i.NOOP},n);!m.isCustomElement&&typeof customElements<"u"&&(m.isCustomElement=s=>!!customElements.get(s));const{code:h}=e.compile(o,m),b=new Function("Vue",h)(f);return b._rc=!0,d[p]=b}r.registerRuntimeCompiler(l),t.compile=l,Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o)&&(t[o]=r[o])})})(Ea)),Ea}var fd;function vx(){return fd||(fd=1,Ca.exports=mx()),Ca.exports}var hd;
20function gx(){if(hd)return Sa.exports;hd=1;var t={Global:{}};return(function(e){function r(l,o){return e.isArray(o)||(o=l.areas,o||(l.cache?o=l.cache.areas:l.data&&(o=l.data.areas))),o}function i(l){var o=e.Date.Cache.Ticks;if(o[l])return e.Stats.cacheHitsTicks+=1,o[l];var n,p=new Date(l),a=p.getUTCMilliseconds();n=a===0?"":a<10?".00"+a:a<100?".0"+a:"."+a;var m=p.getUTCSeconds();m<10&&(m="0"+m);var h=p.getUTCMinutes();h<10&&(h="0"+h);var b=p.getUTCHours();b<10&&(b="0"+b);var s=p.getUTCDate();s<10&&(s="0"+s);var c=p.getUTCMonth()+1;c<10&&(c="0"+c);var v=p.getUTCFullYear();if(v<=0)throw"The minimum year supported is 1.";v<10?v="000"+v:v<100?v="00"+v:v<1e3&&(v="0"+v);var g=v+"-"+c+"-"+s+"T"+b+":"+h+":"+m+n;return o[l]=g,g}function u(l,o){typeof o=="string"&&(o=e.Locale.find(o)),o=o||e.Locale.US;var n=[{seq:"yyyy",expr:"[0-9]{4,4}",str:function(a){return a.getYear()}},{seq:"yy",expr:"[0-9]{2,2}",str:function(a){return a.getYear()%100},transform:function(a){return parseInt(a)+2e3}},{seq:"mm",expr:"[0-9]{2,2}",str:function(a){var m=a.getMinutes();return m<10?"0"+m:m}},{seq:"m",expr:"[0-9]{1,2}",str:function(a){return a.getMinutes()}},{seq:"HH",expr:"[0-9]{2,2}",str:function(a){var m=a.getHours();return m<10?"0"+m:m}},{seq:"H",expr:"[0-9]{1,2}",str:function(a){return a.getHours()}},{seq:"hh",expr:"[0-9]{2,2}",str:function(a){var m=a.getHours();m%=12,m===0&&(m=12);var h=m;return h<10?"0"+h:h}},{seq:"h",expr:"[0-9]{1,2}",str:function(a){var m=a.getHours();return m%=12,m===0&&(m=12),m}},{seq:"ss",expr:"[0-9]{2,2}",str:function(a){var m=a.getSeconds();return m<10?"0"+m:m}},{seq:"s",expr:"[0-9]{1,2}",str:function(a){return a.getSeconds()}},{seq:"MMMM",expr:"[^\\s0-9]*",str:function(a){return o.monthNames[a.getMonth()]},transform:function(a){var m=e.indexOf(o.monthNames,a,f);return m<0?null:m+1}},{seq:"MMM",expr:"[^\\s0-9]*",str:function(a){return o.monthNamesShort[a.getMonth()]},transform:function(a){var m=e.indexOf(o.monthNamesShort,a,f);return m<0?null:m+1}},{seq:"MM",expr:"[0-9]{2,2}",str:function(a){var m=a.getMonth()+1;return m<10?"0"+m:m}},{seq:"M",expr:"[0-9]{1,2}",str:function(a){return a.getMonth()+1}},{seq:"dddd",expr:"[^\\s0-9]*",str:function(a){return o.dayNames[a.getDayOfWeek()]}},{seq:"ddd",expr:"[^\\s0-9]*",str:function(a){return o.dayNamesShort[a.getDayOfWeek()]}},{seq:"dd",expr:"[0-9]{2,2}",str:function(a){var m=a.getDay();return m<10?"0"+m:m}},{seq:"%d",expr:"[0-9]{1,2}",str:function(a){return a.getDay()}},{seq:"d",expr:"[0-9]{1,2}",str:function(a){return a.getDay()}},{seq:"tt",expr:"(AM|PM|am|pm)",str:function(a){return a.getHours()<12?"AM":"PM"},transform:function(a){return a.toUpperCase()}}],p=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};this.init=function(){this.year=this.findSequence("yyyy")||this.findSequence("yy"),this.month=this.findSequence("MMMM")||this.findSequence("MMM")||this.findSequence("MM")||this.findSequence("M"),this.day=this.findSequence("dd")||this.findSequence("d"),this.hours=this.findSequence("HH")||this.findSequence("H"),this.minutes=this.findSequence("mm")||this.findSequence("m"),this.seconds=this.findSequence("ss")||this.findSequence("s"),this.ampm=this.findSequence("tt"),this.hours12=this.findSequence("hh")||this.findSequence("h")},this.findSequence=function(a){function m(h){return parseInt(h)}return l.indexOf(a)===-1?null:{findValue:function(h){for(var b=p(l),s=null,c=0;c<n.length;c++){var v=a===n[c].seq,g=n[c].expr;v&&(g="("+g+")",s=n[c].transform),b=b.replace(n[c].seq,g)}b="^"+b+"$";try{var y=new RegExp(b),_=y.exec(h);return _?(s=s||m)(_[1]):null}catch{throw"unable to create regex from: "+b}}}},this.print=function(a){for(var m=function(S){for(var E=0;E<n.length;E++)if(n[E]&&n[E].seq===S)return n[E];return null},h=l.length<=0,b=0,s=[];!h;){var c=l.substring(b),v=/%?(.)\1*/.exec(c);if(v&&v.length>0){var g=v[0],y=m(g);y?s.push(y):s.push(g),b+=g.length,h=l.length<=b}else h=!0}for(var _=0;_<s.length;_++){var w=s[_];typeof w!="string"&&(s[_]=w.str(a))}return s.join("")},this.parse=function(a){var m=this.year.findValue(a);if(!m)return null;var h=this.month.findValue(a);if(e.Util.isNullOrUndefined(h)||h>12||h<1)return null;var b=this.day.findValue(a),s=e.Date.fromYearMonthDay(m,h).daysInMonth();if(b<1||b>s)return null;var c=this.hours?this.hours.findValue(a):0,v=this.minutes?this.minutes.findValue(a):0,g=this.seconds?this.seconds.findValue(a):0,y=this.ampm?this.ampm.findValue(a):null;if(this.ampm&&this.hours12){var _=this.hours12.findValue(a);if(_<1||_>12)return null;c=y==="PM"?_===12?12:_+12:_===12?0:_}if(c<0||c>23||v<0||v>59||g<0||g>59)return null;var w=new Date;return w.setUTCFullYear(m,h-1,b),w.setUTCHours(c),w.setUTCMinutes(v),w.setUTCSeconds(g),w.setUTCMilliseconds(0),new e.Date(w)},this.init()}function f(l,o){return!e.Util.isNullOrUndefined(l)&&!e.Util.isNullOrUndefined(o)&&l.toLocaleLowerCase()===o.toLocaleLowerCase()}function d(l){l=Math.min(l,255),l=Math.max(l,0);var o=l.toString(16);return l<16?"0"+o:o}if(typeof e.$>"u"){typeof e.Global>"u"&&(e.Global={}),e.$=function(l){return document.getElementById(l)},e.touch={},e.touch.start="touchstart",e.touch.move="touchmove",e.touch.end="touchend",e.mo3=function(l,o){var n=o.touches&&o.touches[0]?o.touches[0]:o;if(!l)return{x:n.pageX!==void 0?n.pageX:n.clientX+window.pageXOffset,y:n.pageY!==void 0?n.pageY:n.clientY+window.pageYOffset,shift:!!o.shiftKey,meta:!!o.metaKey,ctrl:!!o.ctrlKey,alt:!!o.altKey};var p=l.getBoundingClientRect(),a=n.clientX-p.left,m=n.clientY-p.top;
20return a=Math.round(a),m=Math.round(m),{x:a,y:m,shift:!!o.shiftKey,meta:!!o.metaKey,ctrl:!!o.ctrlKey,alt:!!o.altKey}},e.browser={get ios(){var l,o;return typeof navigator<"u"&&(((l=navigator.userAgent)===null||l===void 0?void 0:l.includes("iPad"))||((o=navigator.userAgent)===null||o===void 0?void 0:o.includes("iPhone")))},get hover(){return!window.matchMedia("(any-hover: none)").matches}},e.debounce=function(l,o){var n;return function(){var p=this,a=arguments,m=function(){n=null,l.apply(p,a)};clearTimeout(n),n=setTimeout(m,o)}},e.page=function(l){var o=l.changedTouches&&l.changedTouches[0]?l.changedTouches[0]:l;return typeof o.pageX<"u"?{x:o.pageX,y:o.pageY}:typeof l.clientX<"u"&&document.body&&document.documentElement?{x:l.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,y:l.clientY+document.body.scrollTop+document.documentElement.scrollTop}:null},e.abs=function(l,o){if(!l)return null;if(l.getBoundingClientRect){var n=e.absBoundingClientBased(l);if(o){var p=e.absOffsetBased(l,!1),a=e.absOffsetBased(l,!0);n.x+=a.x-p.x,n.y+=a.y-p.y,n.w=a.w,n.h=a.h}return n}return e.absOffsetBased(l,o)},e.absBoundingClientBased=function(l){var o=l.getBoundingClientRect();return{x:o.left+window.pageXOffset,y:o.top+window.pageYOffset,w:l.clientWidth,h:l.clientHeight,toString:function(){return"x:"+this.x+" y:"+this.y+" w:"+this.w+" h:"+this.h}}},e.absOffsetBased=function(l,o){for(var n={x:l.offsetLeft,y:l.offsetTop,w:l.clientWidth,h:l.clientHeight,toString:function(){return"x:"+this.x+" y:"+this.y+" w:"+this.w+" h:"+this.h}};l.offsetParent;)l=l.offsetParent,n.x-=l.scrollLeft,n.y-=l.scrollTop,o&&(n.x<0&&(n.w+=n.x,n.x=0),n.y<0&&(n.h+=n.y,n.y=0),l.scrollLeft>0&&n.x+n.w>l.clientWidth&&(n.w-=n.x+n.w-l.clientWidth),l.scrollTop&&n.y+n.h>l.clientHeight&&(n.h-=n.y+n.h-l.clientHeight)),n.x+=l.offsetLeft,n.y+=l.offsetTop;var p=e.pageOffset();return n.x+=p.x,n.y+=p.y,n},e.isArray=function(l){return Object.prototype.toString.call(l)==="[object Array]"},e.distance=function(l,o){return Math.sqrt(Math.pow(l.x-o.x,2)+Math.pow(l.y-o.y,2))},e.sheet=function(){function l(){for(var b=document.querySelectorAll("style[nonce]"),s=0;s<b.length;s++){var c=b[s];if(c.nonce)return c.nonce}if(document.currentScript&&document.currentScript.nonce)return document.currentScript.nonce;for(var v=document.querySelectorAll("script[nonce]"),g=0;g<v.length;g++){var y=v[g];if(y.nonce)return y.nonce}return""}var o,n,p={add:function(){},commit:function(){},print:function(){return""}};if(typeof globalThis<"u"&&globalThis.c||typeof window>"u"||((n=(o=window.document.querySelector('meta[name="daypilot:css"]'))===null||o===void 0?void 0:o.content)===null||n===void 0?void 0:n.toLowerCase())==="disable")return p;var a=document.createElement("style");a.nonce=l(),a.styleSheet||a.appendChild(document.createTextNode("")),(document.head||document.getElementsByTagName("head")[0]).appendChild(a);var m=!!a.styleSheet,h={};return h.rules=[],h.commit=function(){m&&(a.styleSheet.cssText=this.rules.join(` 21`))},h.add=function(b,s,c){return m?void this.rules.push(b+"{"+s+"}"):void(a.sheet.insertRule?(typeof c>"u"&&(c=a.sheet.cssRules.length),a.sheet.insertRule(b+"{"+s+"}",c)):a.sheet.addRule&&a.sheet.addRule(b,s,c))},h},e.gs=function(l,o){return window.getComputedStyle(l,null).getPropertyValue(o)||""},e.StyleReader=function(l){this.get=function(o){return l?e.gs(l,o):null},this.getPx=function(o){var n=this.get(o);return n.indexOf("px")===-1?void 0:parseInt(n,10)}},(function(){if(!e.Global.defaultCss){var l=e.sheet();l.add(".menu_default_main","position: relative;border-radius: 4px;box-shadow: 0 0px 10px 0px #00000022;user-select:none;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #cccccc;background-color: white;padding: 0px;cursor: default;"),l.add(".menu_default_main:before","content: '';position: absolute;top: 0;bottom: 0;left: 28px;border-left: 1px solid #d9d9d9;pointer-events: none;"),l.add(".menu_default_main.menu_default_direction_rtl:before","left: auto;right: 28px;border-left: none;border-right: 1px solid #d9d9d9;"),l.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after","box-sizing: content-box;"),l.add(".menu_default_title","background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"),l.add(".menu_default_main.menu_default_direction_rtl .menu_default_title","padding: 4px 37px 4px 4px;"),l.add(".menu_default_main a","padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"),l.add(".menu_default_main.menu_default_direction_rtl a","padding: 2px 35px 2px 2px;"),l.add(".menu_default_main.menu_default_withchildren a","padding: 2px 35px 2px 35px;"),l.add(".menu_default_main a img","margin-left: 6px;margin-top: 2px;"),l.add(".menu_default_main.menu_default_direction_rtl a img","margin-left: 0px;margin-right: 6px;"),l.add(".menu_default_item_text","display: block;height: 20px;line-height: 20px;overflow:hidden;padding-left: 2px;padding-right: 20px;white-space: nowrap;"),l.add(".menu_default_main.menu_default_direction_rtl .menu_default_item_text","padding-left: 20px;padding-right: 2px;
21"),l.add(".menu_default_main a:hover","background-color: #f3f3f3;"),l.add(".menu_default_main div div","border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"),l.add(".menu_default_main.menu_default_direction_rtl div div","margin-left: 0px;margin-right: 28px;"),l.add(".menu_default_main a.menu_default_item_disabled","color: #ccc"),l.add(".menu_default_item_haschildren.menu_default_item_haschildren_active","background-color: #f3f3f3;"),l.add(".menu_default_item_haschildren a:before","content: '';border-width: 5px;border-color: transparent transparent transparent #666;border-style: solid;width: 0px;height: 0px;position: absolute;right: 5px;margin-top: 5px;"),l.add(".menu_default_main.menu_default_direction_rtl .menu_default_item_haschildren a:before","border-color: transparent #666 transparent transparent;right: auto;left: 5px;"),l.add(".menu_default_item_icon","position: absolute;top: 0px;left: 0px;padding: 2px 2px 2px 8px;"),l.add(".menu_default_main.menu_default_direction_rtl .menu_default_item_icon","left: auto;right: 0px;padding: 2px 8px 2px 2px;"),l.add(".menu_default_item a i","height: 20px;line-height: 20px;"),l.add(".menu_default_item .menu_default_item_symbol","width: 18px;height: 18px;color: #999;margin-left: 6px;margin-top: 2px;"),l.add(".menu_default_main.menu_default_direction_rtl .menu_default_item_symbol","margin-left: 0px;margin-right: 6px;"),l.add(".menubar_default_main","border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"),l.add(".menubar_default_item","display: inline-block; padding: 6px 10px; cursor: default;"),l.add(".menubar_default_item:hover","background-color: #f2f2f2;"),l.add(".menubar_default_item_active","background-color: #f2f2f2;"),l.add(".calendar_default_main","--dp-calendar-border-color: #c0c0c0;--dp-calendar-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-calendar-font-size: 13px;--dp-calendar-header-bg-color: #f3f3f3;--dp-calendar-header-color: #333;--dp-calendar-colheader-padding: 0px;--dp-calendar-rowheader-font-size: 16pt;--dp-calendar-rowheader-padding: 3px;--dp-calendar-cell-bg-color: #f9f9f9;--dp-calendar-cell-business-bg-color: #ffffff;--dp-calendar-cell-border-color: #ddd;--dp-calendar-colheader-horizontal-align: center;--dp-calendar-colheader-vertical-align: center;--dp-calendar-allday-event-color: #333;--dp-calendar-allday-event-border-color: #999;--dp-calendar-allday-event-border: 1px solid var(--dp-calendar-allday-event-border-color);--dp-calendar-allday-event-border-radius: 4px;--dp-calendar-allday-event-background: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color) 0%, var(--dp-calendar-allday-event-bg-bottom-color) 100%);--dp-calendar-allday-event-bg-top-color: #ffffff;--dp-calendar-allday-event-bg-bottom-color: #eeeeee;--dp-calendar-allday-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-allday-event-bg-top-color-hover) 0%, var(--dp-calendar-allday-event-bg-bottom-color-hover) 100%);--dp-calendar-allday-event-bg-top-color-hover: #f8f8f8;--dp-calendar-allday-event-bg-bottom-color-hover: #e8e8e8;--dp-calendar-allday-event-box-shadow: none;--dp-calendar-allday-event-padding: 4px;--dp-calendar-allday-event-horizontal-align: flex-start;--dp-calendar-event-color: #333;--dp-calendar-event-border-color: #999;--dp-calendar-event-border: 1px solid var(--dp-calendar-event-border-color);--dp-calendar-event-border-radius: 4px;--dp-calendar-event-box-shadow: none;--dp-calendar-event-background: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color) 0%, var(--dp-calendar-event-bg-bottom-color) 100%);--dp-calendar-event-bg-top-color: #ffffff;--dp-calendar-event-bg-bottom-color: #eeeeee;--dp-calendar-event-background-hover: linear-gradient(to bottom, var(--dp-calendar-event-bg-top-color-hover) 0%, var(--dp-calendar-event-bg-bottom-color-hover) 100%);--dp-calendar-event-bg-top-color-hover: #f8f8f8;--dp-calendar-event-bg-bottom-color-hover: #f1f1f1;--dp-calendar-event-bar-bg-color: #9dc8e8;--dp-calendar-event-bar-color: #208fe3;--dp-calendar-event-bar-width: 6px;--dp-calendar-event-bar-left: 0px;--dp-calendar-event-bar-bottom: 0px;--dp-calendar-event-bar-top: 0px;--dp-calendar-event-bar-display: block;--dp-calendar-event-padding: 2px;--dp-calendar-event-padding-left: 8px;--dp-calendar-message-bg-color: #ffa216;--dp-calendar-message-color: #ffffff;--dp-calendar-message-padding: 10px;--dp-calendar-message-opacity: 0.9;--dp-calendar-selected-event-bg-color: #ddd;
21--dp-calendar-shadow-color: #bbbbbb;--dp-calendar-shadow-border-color: #888888;--dp-calendar-forbidden-shadow-border-color: #cc0000;--dp-calendar-forbidden-shadow-bg-color: #cc4125;--dp-calendar-now-indicator-color: red;--dp-calendar-scroll-bg-color: #f3f3f3;"),l.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after","box-sizing: content-box;"),l.add(".calendar_default_main","border:1px solid var(--dp-calendar-border-color); font-family:var(--dp-calendar-font-family); font-size:var(--dp-calendar-font-size);"),l.add(".calendar_default_rowheader_inner, .calendar_default_cornerright_inner, .calendar_default_corner_inner, .calendar_default_colheader_inner, .calendar_default_alldayheader_inner","color: var(--dp-calendar-header-color); background: var(--dp-calendar-header-bg-color);"),l.add(".calendar_default_colheader_back","background: var(--dp-calendar-header-bg-color); border-bottom: 1px solid red;"),l.add(".calendar_default_colheader_back_inner","position: absolute; inset: 0; border-bottom: 1px solid var(--dp-calendar-border-color);"),l.add(".calendar_default_cornerright_inner","position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-bottom: 1px solid var(--dp-calendar-border-color);"),l.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner","border-right: 1px solid var(--dp-calendar-border-color);"),l.add(".calendar_default_rowheader_inner","font-size: var(--dp-calendar-rowheader-font-size); text-align: right; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); padding: var(--dp-calendar-rowheader-padding);"),l.add(".calendar_default_rowheader_simple .calendar_default_rowheader_inner","font-size: inherit; display: flex; align-items: center; justify-content: center; white-space: nowrap;"),l.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner","border-right: none;"),l.add(".calendar_default_corner_inner","position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"),l.add(".calendar_default_direction_rtl .calendar_default_corner_inner","border-right: none;"),l.add(".calendar_default_rowheader_minutes","font-size: 10px; vertical-align: super; padding-left: 2px; padding-right: 2px;"),l.add(".calendar_default_colheader_inner","position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; padding: var(--dp-calendar-colheader-padding);border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color); display: flex; align-items: var(--dp-calendar-colheader-vertical-align); justify-content: var(--dp-calendar-colheader-horizontal-align);"),l.add(".calendar_default_cell_inner","position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-cell-border-color); border-bottom: 1px solid var(--dp-calendar-cell-border-color); background: var(--dp-calendar-cell-bg-color);"),l.add(".calendar_default_cell_business .calendar_default_cell_inner","background: var(--dp-calendar-cell-business-bg-color);"),l.add(".calendar_default_alldayheader_inner","text-align: center; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; border-right: 1px solid var(--dp-calendar-border-color); border-bottom: 1px solid var(--dp-calendar-border-color);"),l.add(".calendar_default_message","opacity: var(--dp-calendar-message-opacity); padding: var(--dp-calendar-message-padding); color: var(--dp-calendar-message-color); background: var(--dp-calendar-message-bg-color);"),l.add(".calendar_default_event_inner","border: var(--dp-calendar-event-border); border-radius: var(--dp-calendar-event-border-radius); background: var(--dp-calendar-event-background);"),l.add(".calendar_default_event:hover .calendar_default_event_inner","background: var(--dp-calendar-event-background-hover);"),l.add(".calendar_default_alldayevent","color: var(--dp-calendar-allday-event-color);box-shadow: var(--dp-calendar-allday-event-box-shadow); border-radius: var(--dp-calendar-allday-event-border-radius);"),l.add(".calendar_default_alldayevent_inner","border: var(--dp-calendar-allday-event-border); border-radius: var(--dp-calendar-allday-event-border-radius); background: var(--dp-calendar-allday-event-background);"),l.add(".calendar_default_alldayevent:hover .calendar_default_alldayevent_inner","background: var(--dp-calendar-allday-event-background-hover);"),l.add(".calendar_default_event_bar","display: var(--dp-calendar-event-bar-display); top: var(--dp-calendar-event-bar-top); bottom: var(--dp-calendar-event-bar-bottom); left: var(--dp-calendar-event-bar-left); width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"),l.add(".calendar_default_direction_rtl .calendar_default_event_bar","top: 0px; bottom: 0px; right: 0px; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-bg-color);"),l.add(".calendar_default_event_bar_inner","position: absolute; width: var(--dp-calendar-event-bar-width); background-color: var(--dp-calendar-event-bar-color);"),l.add(".calendar_default_selected .calendar_default_event_inner, .calendar_default_event:hover.calendar_default_selected .calendar_default_event_inner","background: var(--dp-calendar-selected-event-bg-color);"),l.add(".calendar_default_alldayevent_inner","position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; overflow: hidden; padding: var(--dp-calendar-allday-event-padding); margin-right: 0px; display: flex; align-items: center; justify-content: var(--dp-calendar-allday-event-horizontal-align);"),l.add(".calendar_default_event_withheader .calendar_default_event_inner","padding-top: 15px;"),l.add(".calendar_default_event","color: var(--dp-calendar-event-color); box-shadow: var(--dp-calendar-event-box-shadow); border-radius: var(--dp-calendar-event-border-radius); cursor: default;"),l.add(".calendar_default_event_inner","position: absolute; overflow: hidden; top: 0px; bottom: 0px; left: 0px; right: 0px; padding: var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding) var(--dp-calendar-event-padding-left);"),l.add(".calendar_default_direction_rtl .calendar_default_event_inner","padding: 2px 8px 2px 2px;"),l.add(".calendar_default_shadow_inner","box-sizing: border-box; background-color: var(--dp-calendar-shadow-color); border: 1px solid var(--dp-calendar-shadow-border-color); border-radius: var(--dp-calendar-event-border-radius); opacity: 0.5; height: 100%;"),l.add(".calendar_default_shadow","box-shadow: 0 2px 5px rgba(0,0,0,0.2); border-radius: var(--dp-calendar-event-border-radius);"),l.add(".calendar_default_shadow_forbidden:after","content: ''; position: absolute; top: 5px;
21 left: calc(50% - 10px); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain;"),l.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner","border: 1px solid var(--dp-calendar-forbidden-shadow-border-color); background: var(--dp-calendar-forbidden-shadow-bg-color);"),l.add(".calendar_default_event_delete","opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"),l.add(".calendar_default_event_delete:hover","opacity: 0.7;"),l.add(".calendar_default_scroll_up","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"),l.add(".calendar_default_scroll_down","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"),l.add(".calendar_default_now","background-color: var(--dp-calendar-now-indicator-color);"),l.add(".calendar_default_now:before","content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent var(--dp-calendar-now-indicator-color); border-style: solid; width: 0px; height: 0px; position: absolute; -moz-transform: scale(.9999);"),l.add(".calendar_default_shadow_top","box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"),l.add(".calendar_default_shadow_bottom","box-sizing: border-box; padding: 2px; border: 1px solid var(--dp-calendar-border-color); background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); pointer-events: none;"),l.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top","background-color: gray; opacity: 0.2;"),l.add(".calendar_default_loading","background-color: orange; color: white; padding: 2px;"),l.add(".calendar_default_scroll","background-color: var(--dp-calendar-header-bg-color);"),l.add(".calendar_default_event_moving_source","opacity: 0.5;"),l.add(".calendar_default_colmove_handle","background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"),l.add(".calendar_default_colheader:hover .calendar_default_colheader_splitter","background-color: #c0c0c0;"),l.add(".calendar_default_colmove_source","background-color: black; opacity: 0.5;"),l.add(".calendar_default_colmove_position_before","box-sizing: border-box; border-left: 2px solid #999999;"),l.add(".calendar_default_colmove_position_before:before","content: ''; border-width: 6px; border-color: transparent #999999 transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"),l.add(".calendar_default_colmove_position_after","box-sizing: border-box; border-right: 2px solid #999999;"),l.add(".calendar_default_colmove_position_after:before","content: ''; border-width: 6px; border-color: transparent transparent transparent #999999; border-style: solid; width: 0px; height: 0px; position: absolute;"),l.add(".calendar_default_colmove_position_child","box-sizing: border-box; border-bottom: 2px solid #999999;"),l.add(".calendar_default_colmove_position_child:before","content: ''; border-width: 6px; border-color: #999999 transparent transparent transparent; border-style: solid; width: 0px; height: 0px; position: absolute;"),l.add(".calendar_default_colmove_position_forbidden","border-top: 2px solid red;"),l.add(".calendar_default_colheader .calendar_default_colheader_splitter:hover","background-color: #999999;"),l.add(".calendar_default_block","background-color: #808080; opacity: 0.5;"),l.add(".month_default_main","--dp-month-border-color: #c0c0c0;--dp-month-font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;--dp-month-font-size: 13px;--dp-month-cell-border-color: #ddd;
21--dp-month-cell-bg-color: #f9f9f9;--dp-month-cell-business-bg-color: #ffffff;--dp-month-event-color: #333;--dp-month-event-border-color: #999;--dp-month-event-border: 1px solid var(--dp-month-event-border-color);--dp-month-event-background: linear-gradient(to bottom, var(--dp-month-event-bg-top-color) 0%, var(--dp-month-event-bg-bottom-color) 100%);--dp-month-event-bg-top-color: #ffffff;--dp-month-event-bg-bottom-color: #eeeeee;--dp-month-event-background-hover: linear-gradient(to bottom, var(--dp-month-event-bg-top-color-hover) 0%, var(--dp-month-event-bg-bottom-color-hover) 100%);--dp-month-event-bg-top-color-hover: #f8f8f8;--dp-month-event-bg-bottom-color-hover: #f1f1f1;--dp-month-event-horizontal-align: flex-start;--dp-month-event-vertical-align: center;--dp-month-event-padding: 2px;--dp-month-event-padding-left: 10px;--dp-month-event-padding-rtl: 2px 10px 2px 1px;--dp-month-event-border-radius: 4px;--dp-month-event-box-shadow: none;--dp-month-event-bar-top: 1px;--dp-month-event-bar-left: 2px;--dp-month-event-bar-bottom: 1px;--dp-month-event-bar-width: 6px;--dp-month-event-bar-color: #208fe3;--dp-month-event-bar-display: block;--dp-month-header-bg-color: #f3f3f3;--dp-month-header-color: #333;--dp-month-header-horizontal-align: center;--dp-month-header-vertical-align: center;--dp-month-header-padding: 0px;--dp-month-message-bg-color: #ffa216;--dp-month-message-color: #ffffff;--dp-month-message-padding: 10px;--dp-month-selected-event-bg-color: #ddd;--dp-month-shadow-color: #bbbbbb;--dp-month-shadow-border-color: #888888;"),l.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after","box-sizing: content-box; "),l.add(".month_default_main","border: 1px solid var(--dp-month-border-color); font-family: var(--dp-month-font-family); font-size: var(--dp-month-font-size); color: #333; "),l.add(".month_default_cell_inner","border-right: 1px solid var(--dp-month-cell-border-color); border-bottom: 1px solid var(--dp-month-cell-border-color); position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: var(--dp-month-cell-bg-color); "),l.add(".month_default_cell_business .month_default_cell_inner","background-color: var(--dp-month-cell-business-bg-color); "),l.add(".month_default_cell_header","text-align: right; padding: 4px; box-sizing: border-box; "),l.add(".month_default_header_inner","position: absolute; inset: 0; border-right: 1px solid var(--dp-month-border-color); border-bottom: 1px solid var(--dp-month-border-color); cursor: default; color: var(--dp-month-header-color); background: var(--dp-month-header-bg-color); overflow: hidden; display: flex; align-items: var(--dp-month-header-vertical-align); justify-content: var(--dp-month-header-horizontal-align); padding: var(--dp-month-header-padding);"),l.add(".month_default_message","opacity: 0.9; color: var(--dp-month-message-color); background: var(--dp-month-message-bg-color); padding: var(--dp-month-message-padding); "),l.add(".month_default_event","color: var(--dp-month-event-color);border-radius: var(--dp-month-event-border-radius); box-shadow: var(--dp-month-event-box-shadow); "),l.add(".month_default_event_inner","position: absolute; top: 0; bottom: 0; left: 1px; right: 1px; overflow: hidden; padding: var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding) var(--dp-month-event-padding-left); background: var(--dp-month-event-background); border: var(--dp-month-event-border); border-radius: var(--dp-month-event-border-radius); display: flex; align-items: var(--dp-month-event-vertical-align); justify-content: var(--dp-month-event-horizontal-align); "),l.add(".month_default_event:hover .month_default_event_inner","background: var(--dp-month-event-background-hover);"),l.add(".month_default_direction_rtl .month_default_event_inner","right: 2px; padding: var(--dp-month-event-padding-rtl); "),l.add(".month_default_event_continueright .month_default_event_inner","border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-style: dotted; "),l.add(".month_default_event_continueleft .month_default_event_inner","border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-style: dotted; "),l.add(".month_default_event_bar","display: var(--dp-month-event-bar-display); top: var(--dp-month-event-bar-top); bottom: var(--dp-month-event-bar-bottom); left: var(--dp-month-event-bar-left); width: var(--dp-month-event-bar-width); "),l.add(".month_default_direction_rtl .month_default_event_bar","top: 1px; bottom: 1px; right: 3px; width: var(--dp-month-event-bar-width); "),l.add(".month_default_event_bar_inner","position: absolute; width: var(--dp-month-event-bar-width); background-color: var(--dp-month-event-bar-color); "),l.add(".month_default_event_continueleft .month_default_event_bar","display: none; "),l.add(".month_default_selected .month_default_event_inner, .month_default_event:hover.month_default_selected .month_default_event_inner","background: var(--dp-month-selected-event-bg-color); "),l.add(".month_default_shadow_inner","box-sizing: border-box; background-color: var(--dp-month-shadow-color); border: 1px solid var(--dp-month-shadow-border-color); border-radius: var(--dp-month-event-border-radius); opacity: 0.5; height: 100%; "),l.add(".month_default_shadow","box-shadow: 0 2px 5px rgba(0, 0, 0, .2); border-radius: var(--dp-month-event-border-radius);"),l.add(".month_default_event_delete","opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"),l.add(".month_default_event_delete:hover","opacity: 0.7;"),l.add(".month_default_event_timeleft","color: #ccc; font-size: 11px; display: flex; align-items: center; "),l.add(".month_default_event_timeright","color: #ccc; font-size: 11px; display: flex; align-items: center; justify-content: end; "),l.add(".month_default_loading","background-color: orange; color: white; padding: 2px; "),l.add(".month_default_shadow_forbidden:after","content: ''; position: absolute;
21 top: calc(50% - 10px); left: 10px; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2720%27 height=%2720%27 viewBox=%270 0 20 20%27%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%279%27 fill=%27%23cc0000aa%27 /%3E%3Cline x1=%275%27 y1=%275%27 x2=%2715%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3Cline x1=%2715%27 y1=%275%27 x2=%275%27 y2=%2715%27 stroke=%27white%27 stroke-width=%271.5%27/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: center; background-size: contain; "),l.add(".month_default_shadow_forbidden .month_default_shadow_inner","border: 1px solid #cc0000; background: #cc4125; "),l.add(".navigator_default_main","--dp-nav-border-color: #c0c0c0;--dp-nav-font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--dp-nav-font-size: 12px;--dp-nav-title-color: #333;--dp-nav-title-bg-color: #f3f3f3;--dp-nav-dayheader-color: #333;--dp-nav-dayheader-bg-color: #ffffff;--dp-nav-weeknumber-color: #999;--dp-nav-weeknumber-bg-color: #ffffff;--dp-nav-day-color: #000;--dp-nav-day-bg-color: #ffffff;--dp-nav-dayother-color: gray;--dp-nav-dayother-bg-color: #ffffff;--dp-nav-weekend-bg-color: #f0f0f0;--dp-nav-select-bg-color: #FFE794;--dp-nav-text-align: center;"),l.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after","box-sizing: content-box;"),l.add(".navigator_default_main","border-left: 1px solid var(--dp-nav-border-color);border-right: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);background-color: white;color: var(--dp-nav-day-color);box-sizing: content-box;"),l.add(".navigator_default_month","font-family: var(--dp-nav-font-family);font-size: var(--dp-nav-font-size);"),l.add(".navigator_default_day","color: var(--dp-nav-day-color); background-color: var(--dp-nav-day-bg-color);"),l.add(".navigator_default_weekend","background-color: var(--dp-nav-weekend-bg-color);"),l.add(".navigator_default_dayheader","color: var(--dp-nav-dayheader-color);background-color: var(--dp-nav-dayheader-bg-color);text-align: var(--dp-nav-text-align);padding: 0px;"),l.add(".navigator_default_line","border-bottom: 1px solid var(--dp-nav-border-color);"),l.add(".navigator_default_dayother","color: var(--dp-nav-dayother-color); background-color: var(--dp-nav-dayother-bg-color);"),l.add(".navigator_default_todaybox","border: 1px solid red;"),l.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright","box-sizing: border-box; border-top: 1px solid var(--dp-nav-border-color);border-bottom: 1px solid var(--dp-nav-border-color);color: var(--dp-nav-title-color);background: var(--dp-nav-title-bg-color);text-align: var(--dp-nav-text-align);"),l.add(".navigator_default_busy","font-weight: bold;"),l.add(".navigator_default_cell","text-align: var(--dp-nav-text-align);"),l.add(".navigator_default_select .navigator_default_cell_box","background-color: var(--dp-nav-select-bg-color);opacity: 0.5;"),l.add(".navigator_default_weeknumber","text-align: var(--dp-nav-text-align);color: var(--dp-nav-weeknumber-color);background: var(--dp-nav-weeknumber-bg-color);"),l.add(".navigator_default_cell_text","cursor: pointer;"),l.add(".navigator_default_todaysection","box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"),l.add(".navigator_default_todaysection_button","cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "),l.add(".scheduler_default_main",'--dp-scheduler-border-color: #c0c0c0;--dp-scheduler-border-inner-color: #e0e0e0;--dp-scheduler-cell-bg-color: #f9f9f9;--dp-scheduler-cell-business-bg-color: #ffffff;--dp-scheduler-event-background: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color) 0%, var(--dp-scheduler-event-bg-bottom-color) 100%);--dp-scheduler-event-background-hover: linear-gradient(to bottom, var(--dp-scheduler-event-bg-top-color-hover) 0%, var(--dp-scheduler-event-bg-bottom-color-hover) 100%);--dp-scheduler-event-bg-bottom-color: #eeeeee;--dp-scheduler-event-bg-top-color: #ffffff;--dp-scheduler-event-bg-bottom-color-hover: #e8e8e8;--dp-scheduler-event-bg-top-color-hover: #f8f8f8;--dp-scheduler-event-bar-bg-color: #9dc8e8;--dp-scheduler-event-bar-color: #208fe3;--dp-scheduler-event-bar-display: block;--dp-scheduler-event-bar-height: 4px;--dp-scheduler-event-bar-left: 0px;--dp-scheduler-event-bar-right: 0px;--dp-scheduler-event-bar-top: 0px;--dp-scheduler-event-border: 1px solid var(--dp-scheduler-event-border-color);--dp-scheduler-event-border-color: #ccc;--dp-scheduler-event-border-radius: 4px;--dp-scheduler-event-box-shadow: none;--dp-scheduler-event-color: #333;--dp-scheduler-event-horizontal-align: flex-start;--dp-scheduler-event-milestone-color: #38761d;--dp-scheduler-event-padding: 2px;--dp-scheduler-event-selected-bg-color: #ddd;
21--dp-scheduler-event-vertical-align: center;--dp-scheduler-focus-outline-color: red;--dp-scheduler-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--dp-scheduler-font-size: 13px;--dp-scheduler-grid-line-break-color: #999;--dp-scheduler-grid-line-color: #eee;--dp-scheduler-header-bg-color: #f3f3f3;--dp-scheduler-header-color: #333;--dp-scheduler-link-color: #cc0000;--dp-scheduler-message-bg-color: #ffa216;--dp-scheduler-message-color: #ffffff;--dp-scheduler-message-padding: 10px;--dp-scheduler-rowheader-padding: 7px;--dp-scheduler-rowheader-vertical-align: center;--dp-scheduler-selectionrectangle-color: #1066a8;--dp-scheduler-shadow-border-color: #888888;--dp-scheduler-shadow-color: #bbbbbb;--dp-scheduler-timeheader-horizontal-align: center;--dp-scheduler-timeheader-padding: 0px;--dp-scheduler-timeheader-vertical-align: center;'),l.add(".scheduler_default_main *, .scheduler_default_main *:before, .scheduler_default_main *:after","box-sizing: content-box;"),l.add(".scheduler_default_main, .scheduler_default_main svg text","box-sizing: content-box; border: 1px solid var(--dp-scheduler-border-color); font-family: var(--dp-scheduler-font-family); font-size: var(--dp-scheduler-font-size);"),l.add(".scheduler_default_selected .scheduler_default_event_inner, .scheduler_default_event:hover.scheduler_default_selected .scheduler_default_event_inner","background: var(--dp-scheduler-event-selected-bg-color);"),l.add(".scheduler_default_timeheader_scroll","background: var(--dp-scheduler-header-bg-color);"),l.add(".scheduler_default_message","opacity: 0.9; padding: var(--dp-scheduler-message-padding); color: var(--dp-scheduler-message-color); background: var(--dp-scheduler-message-bg-color);"),l.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol","color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"),l.add(".scheduler_default_rowheader,.scheduler_default_corner","color: var(--dp-scheduler-header-color); background: var(--dp-scheduler-header-bg-color);"),l.add(".scheduler_default_rowheader.scheduler_default_rowheader_selected","background-color: #aaa; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"),l.add(".scheduler_default_rowheader_inner","position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; border-right: 1px solid var(--dp-scheduler-border-inner-color); padding: var(--dp-scheduler-rowheader-padding); display: flex; align-items: var(--dp-scheduler-rowheader-vertical-align);"),l.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner","position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-right: 1px solid var(--dp-scheduler-border-color);"),l.add(".scheduler_default_timeheadergroup_inner","border-bottom: 1px solid var(--dp-scheduler-border-color);"),l.add(".scheduler_default_timeheadergroup_inner, .scheduler_default_timeheadercol_inner, .scheduler_default_timeheader_float","display: flex; align-items: var(--dp-scheduler-timeheader-vertical-align); justify-content: var(--dp-scheduler-timeheader-horizontal-align); padding: var(--dp-scheduler-timeheader-padding);"),l.add(".scheduler_default_divider, .scheduler_default_splitter","background-color: var(--dp-scheduler-border-color);"),l.add(".scheduler_default_divider_horizontal","background-color: var(--dp-scheduler-border-color);"),l.add(".scheduler_default_matrix_vertical_line","background-color: var(--dp-scheduler-grid-line-color);"),l.add(".scheduler_default_matrix_vertical_break","background-color: var(--dp-scheduler-grid-line-break-color);"),l.add(".scheduler_default_matrix_horizontal_line","background-color: var(--dp-scheduler-grid-line-color);"),l.add(".scheduler_default_resourcedivider","background-color: var(--dp-scheduler-border-color);"),l.add(".scheduler_default_shadow_inner","box-sizing: border-box; background-color: var(--dp-scheduler-shadow-color); border: 1px solid var(--dp-scheduler-shadow-border-color); border-radius: var(--dp-scheduler-event-border-radius); opacity: 0.5; height: 100%;"),l.add(".scheduler_default_shadow","box-shadow: 0 2px 5px rgba(0,0,0,.2); border-radius: var(--dp-scheduler-event-border-radius);"),l.add(".scheduler_default_event","font-size: var(--dp-scheduler-font-size); color: var(--dp-scheduler-event-color); border-radius: var(--dp-scheduler-event-border-radius); box-shadow: var(--dp-scheduler-event-box-shadow);"),l.add(".scheduler_default_event_inner","position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; border-radius: var(--dp-scheduler-event-border-radius); padding: var(--dp-scheduler-event-padding); overflow: hidden; border: var(--dp-scheduler-event-border); display: flex; align-items: var(--dp-scheduler-event-vertical-align); justify-content: var(--dp-scheduler-event-horizontal-align); background: var(--dp-scheduler-event-background);
21"),l.add(".scheduler_default_event:hover .scheduler_default_event_inner","background: var(--dp-scheduler-event-background-hover);"),l.add(".scheduler_default_event_bar","display: var(--dp-scheduler-event-bar-display);top: var(--dp-scheduler-event-bar-top); left: var(--dp-scheduler-event-bar-left); right: var(--dp-scheduler-event-bar-right); height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-bg-color);"),l.add(".scheduler_default_event_bar_inner","position:absolute; height: var(--dp-scheduler-event-bar-height); background-color: var(--dp-scheduler-event-bar-color);"),l.add(".scheduler_default_event_float","display: flex; align-items: center;"),l.add(".scheduler_default_event_float_inner","padding: var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) var(--dp-scheduler-event-padding) 8px; position: relative;"),l.add(".scheduler_default_event_float_inner:after",'content:"";position:absolute;top:calc(50% - 5px);left:1px;width:5px;height:10px;opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1IDEwJz48cGF0aCBkPSdNNSAwIEwwIDUgTDUgMTAgWicvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1IDEwJz48cGF0aCBkPSdNNSAwIEwwIDUgTDUgMTAgWicvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;'),l.add(".scheduler_default_event_focus","outline: var(--dp-scheduler-focus-outline-color) 2px solid; z-index: 100; opacity: 0.5;"),l.add(".scheduler_default_columnheader_inner","font-weight: bold;"),l.add(".scheduler_default_columnheader_splitter","box-sizing: border-box; border-right: 1px solid var(--dp-scheduler-border-color);"),l.add(".scheduler_default_columnheader_splitter:hover","background-color: var(--dp-scheduler-border-color);"),l.add(".scheduler_default_columnheader_cell_inner","position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; padding: 2px; display: flex; align-items: center;"),l.add(".scheduler_default_cell","background-color: var(--dp-scheduler-cell-bg-color);"),l.add(".scheduler_default_cell.scheduler_default_cell_business","background-color: var(--dp-scheduler-cell-business-bg-color);"),l.add(".scheduler_default_cell.scheduler_default_cell_business.scheduler_default_cell_selected, .scheduler_default_cell.scheduler_default_cell_selected","background-color: #ccc; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 20px 20px;"),l.add(".scheduler_default_tree_image_no_children",""),l.add(".scheduler_default_tree_image_expand","opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDEwJz48cGF0aCBkPSdNIDEuNSAwLjUgTCA2LjUgNSBMIDEuNSA5LjUnIHN0eWxlPSdmaWxsOm5vbmU7c3Ryb2tlOmN1cnJlbnRDb2xvcjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA4IDEwJz48cGF0aCBkPSdNIDEuNSAwLjUgTCA2LjUgNSBMIDEuNSA5LjUnIHN0eWxlPSdmaWxsOm5vbmU7c3Ryb2tlOmN1cnJlbnRDb2xvcjtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLWxpbmVjYXA6YnV0dCcgLz48L3N2Zz4=);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;"),l.add(".scheduler_default_tree_image_collapse","opacity:0.5;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTpjdXJyZW50Q29sb3I7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1saW5lY2FwOmJ1dHQnIC8+PC9zdmc+);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:100% 100%;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMS41IEwgNSA2LjUgTCA5LjUgMS41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTpjdXJyZW50Q29sb3I7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1saW5lY2FwOmJ1dHQnIC8+PC9zdmc+);mask-repeat:no-repeat;mask-position:center;mask-size:100% 100%;background-image:none;"),l.add(".scheduler_default_event_delete","opacity:0.4;cursor:pointer;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:12px 12px;mask-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTInIGhlaWdodD0nMTInIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgMTEuNSAxMS41IE0gMC41IDExLjUgTCAxMS41IDAuNScgc3R5bGU9J2ZpbGw6bm9uZTtzdHJva2U6Y3VycmVudENvbG9yO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==);mask-repeat:no-repeat;mask-position:center;mask-size:12px 12px;background-image:none;"),l.add(".scheduler_default_event_delete:hover","opacity: 0.7;"),l.add(".scheduler_default_rowmove_handle","background-repeat: no-repeat; background-position: center center; background-color: #ccc; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAKCAYAAACT+/8OAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAClJREFUGFdj+P//P4O9vX2Bg4NDP4gNFgBytgPxebgAMsYuQGMz/jMAAFsTZDPYJlDHAAAAAElFTkSuQmCC); cursor: move;"),l.add(".scheduler_default_rowmove_source","background-color: black; opacity: 0.2;"),l.add(".scheduler_default_rowmove_position_before, .scheduler_default_rowmove_position_after","background-color: #999; height: 2px;"),l.add(".scheduler_default_rowmove_position_child","margin-left: 20px; background-color: #999; height: 2px;"),l.add(".scheduler_default_rowmove_position_forbidden","background-color: #cc0000; height: 2px; margin-left: 20px;"),l.add(".scheduler_default_link_horizontal","border-bottom-style: solid; border-bottom-color: var(--dp-scheduler-link-color);"),l.add(".scheduler_default_link_vertical","border-right-style: solid; border-right-color: var(--dp-scheduler-link-color);"),l.add(".scheduler_default_link_arrow_right:before","content: ''; border-width: 6px; border-color: transparent transparent transparent var(--dp-scheduler-link-color); border-style: solid; width: 0; height:0; position: absolute;"),l.add(".scheduler_default_link_arrow_left:before","content: ''; border-width: 6px; border-color: transparent var(--dp-scheduler-link-color) transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"),l.add(".scheduler_default_link_arrow_down:before","content: ''; border-width: 6px; border-color: var(--dp-scheduler-link-color) transparent transparent transparent; border-style: solid; width: 0; height:0; position: absolute;"),l.add(".scheduler_default_link_arrow_up:before","content: ''; border-width: 6px; border-color: transparent transparent var(--dp-scheduler-link-color) transparent; border-style: solid; width: 0; height:0; position: absolute;"),l.add(".scheduler_default_link_mshadow.scheduler_default_link_horizontal","border-bottom-color: #aaaaaa;"),l.add(".scheduler_default_link_mshadow.scheduler_default_link_vertical","border-right-color: #aaaaaa;"),l.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_right:before","border-color: transparent transparent transparent #aaaaaa;"),l.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_left:before","border-color: transparent #aaaaaa transparent transparent;"),l.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_down:before","border-color: #aaaaaa transparent transparent transparent;"),l.add(".scheduler_default_link_mshadow.scheduler_default_link_arrow_up:before","border-color: transparent transparent #aaaaaa transparent;"),l.add(".scheduler_default_block","background-color: #808080; opacity: 0.5;"),l.add(".scheduler_default_main .scheduler_default_event_group","box-sizing: border-box; font-size: 13px; color: #666; padding: 2px; overflow:hidden; border:1px solid var(--dp-scheduler-event-border-color); background-color: #fff; display: flex; align-items: center; white-space: nowrap;"),l.add(".scheduler_default_main .scheduler_default_header_icon","box-sizing: border-box; border: 1px solid var(--dp-scheduler-border-color); background-color: var(--dp-scheduler-header-bg-color); color: var(--dp-scheduler-header-color);"),l.add(".scheduler_default_header_icon:hover","background-color: #ccc;"),l.add(".scheduler_default_header_icon_hide:before","content: '\\00AB';"),l.add(".scheduler_default_header_icon_show:before","content: '\\00BB';"),l.add(".scheduler_default_row_new .scheduler_default_rowheader_inner","padding-left: 10px; color: #666; cursor: text; background-position: 0px 50%; background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABUSURBVChTY0ACslAaK2CC0iCQDMSlECYmQFYIAl1AjFUxukIQwKoYm0IQwFCMSyEIaEJpMMClcD4Qp0CYEIBNIUzRPzAPCtAVYlWEDgyAGIdTGBgAbqEJYyjqa3oAAAAASUVORK5CYII=);"),l.add(".scheduler_default_row_new .scheduler_default_rowheader_inner:hover","background: white; color: white;"),l.add(".scheduler_default_rowheader textarea","padding: 3px;"),l.add(".scheduler_default_rowheader_scroll","cursor: default; background: var(--dp-scheduler-header-bg-color);"),l.add(".scheduler_default_shadow_forbidden .scheduler_default_shadow_inner, .scheduler_default_shadow_overlap .scheduler_default_shadow_inner","border: 1px solid #cc0000; background: #cc4125;"),l.add(".scheduler_default_event_moving_source","opacity: 0.5;"),l.add(".scheduler_default_linkpoint","background-color: white; border: 1px solid gray; border-radius: 5px;"),l.add(".scheduler_default_linkpoint.scheduler_default_linkpoint_hover","background-color: black;"),l.add(".scheduler_default_event.scheduler_default_event_version .scheduler_default_event_inner","overflow:hidden; background-color: #cfdde8; background-image: linear-gradient(45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent); background-size: 20px 20px;"),l.add(".scheduler_default_crosshair_vertical, .scheduler_default_crosshair_horizontal, .scheduler_default_crosshair_left, .scheduler_default_crosshair_top","background-color: gray; opacity: 0.2;"),l.add(".scheduler_default_link_dot","border-radius: 10px; background-color: var(--dp-scheduler-link-color);"),l.add(".scheduler_default_task_milestone .scheduler_default_event_inner","position:absolute; top:16%; left:16%; right:16%; bottom:16%; background: var(--dp-scheduler-event-milestone-color); border: 0px none; transform: rotate(45deg); filter: none;"),l.add(".scheduler_default_event_left, .scheduler_default_event_right","white-space: nowrap; color: #666; cursor: default; display: flex; align-items: center;"),l.add(".scheduler_default_main:focus","outline: none;"),l.add(".scheduler_default_cell_focus","outline: var(--dp-scheduler-focus-outline-color) 2px solid; outline-offset: -2px; z-index: 100; opacity: 0.5;"),l.add(".scheduler_default_cell_focus.scheduler_default_cell_focus_top","border-top: 4px s
21olid var(--dp-scheduler-focus-outline-color);"),l.add(".scheduler_default_cell_focus.scheduler_default_cell_focus_bottom","border-bottom: 4px solid var(--dp-scheduler-focus-outline-color);"),l.add(".scheduler_default_selectionrectangle","background-color: var(--dp-scheduler-selectionrectangle-color); border: 1px solid #000033; opacity: 0.4;"),l.add(".scheduler_default_link_shadow","border:1px solid black;"),l.add(".scheduler_default_link_shadow_circle","background-color:black;"),l.add(".scheduler_default_event_move_left","box-sizing: border-box; padding: 2px; border: 1px solid #ccc; background: #fff; background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); display: flex; align-items: center;"),l.add(".scheduler_default_event_move_right","box-sizing: border-box; padding: 2px; border: 1px solid #ccc; background: #fff; background: linear-gradient(to bottom, #ffffff 0%, #eeeeee); display: flex; align-items: center;"),l.add(".scheduler_default_link_hover","box-shadow: 0px 0px 2px 2px rgba(255, 0, 0, 0.3)"),l.add(".scheduler_default_sorticon","opacity: 0.2;background-position: center center; background-repeat: no-repeat; cursor: pointer;"),l.add(".scheduler_default_sorticon.scheduler_default_sorticon_asc","background-color:currentColor;-webkit-mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDEuNSwgMTAgMTAsIDAgMTAiLz48L3N2Zz4=');-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:10px 10px;mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDEuNSwgMTAgMTAsIDAgMTAiLz48L3N2Zz4=');mask-repeat:no-repeat;mask-position:center;mask-size:10px 10px;background-image:none;"),l.add(".scheduler_default_sorticon.scheduler_default_sorticon_desc","background-color:currentColor;-webkit-mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDguNSwgMCAwLCAxMCAwIi8+PC9zdmc+');-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:10px 10px;mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSI1IDguNSwgMCAwLCAxMCAwIi8+PC9zdmc+');mask-repeat:no-repeat;mask-position:center;mask-size:10px 10px;background-image:none;"),l.add(".scheduler_default_sorticon.scheduler_default_sorticon_active","opacity: 0.7;"),l.add(".scheduler_default_loading","background-color: orange; color: white; padding: 2px;"),l.add(".scheduler_default_link_curve","stroke: var(--dp-scheduler-link-color); fill: none; stroke-width: 2;"),l.add(".scheduler_default_link_curve:hover","stroke-opacity: 0.5;"),l.add(".scheduler_default_link_curve_dot","fill: var(--dp-scheduler-link-color);"),l.add(".scheduler_default_link_curve_marker","fill: var(--dp-scheduler-link-color);"),l.add(".scheduler_default_link_curve_text","fill: var(--dp-scheduler-link-color);"),l.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve","stroke: #aaaaaa;"),l.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_dot","fill: #aaaaaa;"),l.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_marker","fill: #aaaaaa;"),l.add(".scheduler_default_link_curve_mshadow.scheduler_default_link_curve_text","fill: #aaaaaa;"),l.commit(),e.Global.defaultCss=!0}})(),e.doc=function(){var l=document.documentElement;return l&&l.clientHeight?l:document.body},e.sh=function(l){return l?l.offsetHeight-l.clientHeight:0},e.guid=function(){var l=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return""+l()+l()+"-"+l()+"-"+l()+"-"+l()+"-"+l()+l()+l()},e.ua=function(l){if(!e.isArray(l))throw new e.Exception("DayPilot.ua() - array required");var o=[];return l.forEach(function(n){e.contains(o,n)||o.push(n)}),o},e.pageOffset=function(){if(typeof pageXOffset<"u")return{x:pageXOffset,y:pageYOffset};var l=e.doc();return{x:l.scrollLeft,y:l.scrollTop}},e.indexOf=function(l,o){if(!l||!l.length)return-1;for(var n=0;n<l.length;n++)if(l[n]===o)return n;return-1},e.contains=function(l,o){if(arguments.length!==2)throw new e.Exception("DayPilot.contains() requires two arguments.");return!!l&&(l===o&&!e.isArray(l)||e.indexOf(l,o)!==-1)},e.ac=function(l,o){o||(o=[]);for(var n=0;l.children&&n<l.children.length;n++)o.push(l.children[n]),e.ac(l.children[n],o);return o},e.rfa=function(l,o){var n=e.indexOf(l,o);n!==-1&&l.splice(n,1)},e.mc=function(l){return l.pageX||l.pageY?{x:l.pageX,y:l.pageY}:{x:l.clientX+document.documentElement.scrollLeft,y:l.clientY+document.documentElement.scrollTop}},e.Stats={},e.Stats.eventObjects=0,e.Stats.dateObjects=0,e.Stats.cacheHitsCtor=0,e.Stats.cacheHitsParsing=0,e.Stats.cacheHitsTicks=0,e.re=function(l,o,n){n&&o&&l&&l.addEventListener(o,n,!1)},e.rePassive=function(l,o,n){n&&o&&l&&l.addEventListener(o,n,{passive:!0})},e.reNonPassive=function(l,o,n){n&&o&&l&&l.addEventListener(o,n,{passive:!1})},e.ue=function(l,o,n){l.removeEventListener(o,n,!1)},e.pu=function(l){var o,n,p,a=l.attributes;if(a)for(n=a.length,o=0;o<n;o+=1)a[o]&&(p=a[o].name,typeof l[p]=="function"&&(l[p]=null));if(a=l.childNodes)for(n=a.length,o=0;o<n;o+=1)e.pu(l.childNodes[o])},e.de=function(l){if(l)if(e.isArray(l))for(var o=0;o<l.length;o++)e.de(l[o]);else l.remove()},e.sw=function(l){return l?l.offsetWidth-l.clientWidth:0},e.am=function(){return typeof angular>"u"?null:(e.am.cached||(e.am.cached=angular.module("daypilot",[])),e.am.cached)},e.Selection=function(l,o,n,p){this.type="selection",this.start=l.isDayPilotDate?l:new e.Date(l),this.end=o.isDayPilotDate?o:new e.Date(o),this.resource=n,this.root=p,this.toJSON=function(){var a={};return a.start=this.start,a.end=this.end,a.resource=this.resource,a}},e.request=function(l,o,n,p){var a=e.createXmlHttp();a&&(a.open("POST",l,!0),a.setRequestHeader("Content-type","text/plain"),a.onreadystatechange=function(){if(a.readyState===4)return a.status!==200&&a.status!==304?void(p?p(a):window.console&&console.log("HTTP error "+a.status)):void o(a)},a.readyState!==4&&(typeof n=="object"&&(n=JSON.stringify(n)),a.send(n)))},e.ajax=function(l){if(!l)throw new e.Exception("Parameter object required.");
21if(typeof l.url!="string")throw new e.Exception("The parameter object must have 'url' property.");var o=e.createXmlHttp();if(!o)throw new e.Exception("Unable to create XMLHttpRequest object");var n=typeof l.data=="object",p=l.data,a=l.method||(l.data?"POST":"GET"),m=l.success||function(){},h=l.error||function(){},b=l.url,s=l.contentType||(n?"application/json":"text/plain"),c=l.headers||{};o.open(a,b,!0),o.setRequestHeader("Content-type",s),e.Util.ownPropsAsArray(c).forEach(function(v){o.setRequestHeader(v.key,v.val)}),o.onreadystatechange=function(){if(o.readyState===4)if(o.status===200||o.status===201||o.status===204||o.status===304){var v={};v.request=o,o.responseText&&(v.data=JSON.parse(o.responseText)),m(v)}else if(h){var g={};g.request=o,h(g)}else window.console&&console.log("HTTP error "+o.status)},o.readyState!==4&&(n&&(p=JSON.stringify(p)),o.send(p))},e.createXmlHttp=function(){return new XMLHttpRequest},e.Http={},e.Http.ajax=function(l){e.ajax(l)},e.Http.get=function(l,o){return o=o||{},new Promise(function(n,p){var a={};a.url=l,a.method="GET",a.success=function(m){n(m)},a.error=function(m){p(m)},a.contentType=o.contentType,a.headers=o.headers,e.ajax(a)})},e.Http.post=function(l,o,n){return n=n||{},new Promise(function(p,a){var m={};m.url=l,m.method="POST",m.data=o,m.success=function(h){p(h)},m.error=function(h){a(h)},m.contentType=n.contentType,m.headers=n.headers,e.ajax(m)})},e.Http.put=function(l,o,n){return n=n||{},new Promise(function(p,a){var m={};m.url=l,m.method="PUT",m.data=o,m.success=function(h){p(h)},m.error=function(h){a(h)},m.contentType=n.contentType,m.headers=n.headers,e.ajax(m)})},e.Http.delete=function(l,o){return o=o||{},new Promise(function(n,p){var a={};a.url=l,a.method="DELETE",a.success=function(m){n(m)},a.error=function(m){p(m)},a.contentType=o.contentType,a.headers=o.headers,e.ajax(a)})},e.Util={},e.Util.addClass=function(l,o){if(l){if(!l.className)return void(l.className=o);new RegExp("(^|\\s)"+o+"($|\\s)").test(l.className)||(l.className=l.className+" "+o)}},e.Util.removeClass=function(l,o){if(l){var n=new RegExp("(^|\\s)"+o+"($|\\s)");l.className=l.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}},e.Util.copyProps=function(l,o,n){if(o===void 0&&(o={}),!l)return o;if(typeof n>"u")for(var p=0,a=Object.entries(l);p<a.length;p++){var m=a[p],h=m[0],b=m[1];typeof b<"u"&&(o[h]=b)}else for(var s=0,c=n;s<c.length;s++){var v=c[s],b=l[v];typeof b<"u"&&(o[v]=b)}return o},e.Util.ownPropsAsArray=function(l){return l?Object.entries(l).map(function(o){return{key:o[0],val:o[1]}}):[]},e.Util.atLeast=function(l,o){return Math.max(l,o)},e.Util.mouseButton=function(l){var o={};switch(l.button){case 0:o.left=!0;break;case 1:o.middle=!0;break;case 2:o.right=!0}return o},e.Util.replaceCharAt=function(l,o,n){return l.substr(0,o)+n+l.substr(o+n.length)},e.Util.isNullOrUndefined=function(l){return l===null||typeof l>"u"},e.Util.escapeHtml=function(l){var o=document.createElement("div");return o.innerText=l,o.innerHTML},e.Util.escapeTextHtml=function(l,o){return e.Util.isNullOrUndefined(o)?e.Util.isNullOrUndefined(l)?"":e.Util.escapeHtml(l):o}
21,e.Util.isSameEvent=function(l,o){return!(!l||!o)&&(l=l instanceof e.Event?l.data:l,o=o instanceof e.Event?o.data:o,l===o||!e.Util.isNullOrUndefined(l.id)&&l.id===o.id)},e.Util.overlaps=function(l,o,n,p){return!(o<=n||l>=p)},e.Util.isVueVNode=function(l){return!!l&&(e.isArray(l)?e.Util.isVueVNode(l[0]):l.__v_isVNode)},e.Util.isVueComponent=function(){return!1},e.Util.isReactComponent=function(l){if(!l)return!1;var o=typeof Symbol=="function"&&Symbol.for,n=o&&Symbol.for("react.element")||60103,p=o&&Symbol.for("react.transitional.element")||null,a=l.$$typeof;return a===n||a===p||a===60103},e.Util.isMouseEvent=function(l){return!!l&&(l.pointerType==="mouse"||l instanceof MouseEvent)},e.Areas={},e.Areas.attach=function(l,o,n){n=n||{};var p=n.areas,a=n.allowed||function(){return!0},m=n.offsetX||0;p=r(o,p),p&&e.isArray(p)&&p.length!==0&&(e.re(l,"mousemove",function(h){l.active||l.areasDisabled||!a()||e.Areas.showAreas(l,o,h,p,{offsetX:m,eventDiv:n.eventDiv})}),e.re(l,"mouseleave",function(h){e.Areas.hideAreas(l,h)}),p.forEach(function(h){if(e.Areas.isVisible(h)){var b=e.Areas.createArea(l,o,h,{offsetX:m,eventDiv:n.eventDiv});l.appendChild(b)}}))},e.Areas.disable=function(l){l.areasDisabled=!0,Array.from(l.childNodes).filter(function(o){return o.isActiveArea&&!o.area.start}).forEach(function(o){o.f=o.style.display,o.style.display="none"})},e.Areas.enable=function(l){l.areasDisabled=!1,Array.from(l.childNodes).filter(function(o){return o.isActiveArea&&!o.area.start}).forEach(function(o){o.f?o.style.display=o.f:o.style.display=""})},e.Areas.remove=function(l){var o=Array.from(l.childNodes).filter(function(n){return n.isActiveArea});e.de(o)},e.Areas.isVisible=function(l){var o=l.visibility||l.v||"Visible";return o==="Visible"||o==="TouchVisible"&&!e.browser.hover},e.Areas.copy=function(l){return e.isArray(l)?l.map(function(o){return e.Util.copyProps(o,{})}):[]},e.Areas.showAreas=function(l,o,n,p,a){if(!e.Global.resizing&&!e.Global.moving&&!e.Global.selecting&&!l.active&&e.browser.hover){if(e.Areas.all&&e.Areas.all.length>0)for(var m=0;m<e.Areas.all.length;m++){var h=e.Areas.all[m];h!==l&&e.Areas.hideAreas(h,n)}if(l.active={},e.isArray(p)||(p=o.areas,p||(o.cache?p=o.cache.areas:o.data&&(p=o.data.areas))),p&&p.length!==0&&!(l.areas&&l.areas.length>0)){l.areas=[];for(var m=0;m<p.length;m++){var b=p[m];if(!e.Areas.isVisible(b)){var s=e.Areas.createArea(l,o,b,a);l.areas.push(s),l.appendChild(s),e.Areas.all.push(l)}}l.active.children=e.ac(l)}}},e.Areas.createArea=function(l,o,n,p){function a(M,L,I){var $={};return $.area=M,$.source=L,$.originalEvent=I,$.preventDefault=function(){$.preventDefault.value=!0},typeof M.onClick=="function"&&M.onClick($),$}function m(M,L,I){e.Bubble&&e.Bubble.touchPosition(I),M.calendar.bubble&&M.calendar.bubble.showEvent(M,!0)}function h(M,L,I,$){e.Menu&&e.Menu.touchPosition($);var O=I.contextMenu||I.menu;if(O instanceof e.Menu||(L.isEvent&&L.client.contextMenu()?O=L.client.contextMenu():L.isEvent&&L.calendar.contextMenu&&(O=L.calendar.contextMenu)),O&&O.show){var H={type:"area",div:M,e:L,area:I,a:c};O.show(L,{initiator:H})}}function b(M){return typeof M=="string"&&isNaN(M)?M:typeof M<"u"?M+"px":void 0}p=p||{};var s=p.eventDiv||l,c=document.createElement("div");c.isActiveArea=!0,c.area=n,c.setAttribute("unselectable","on");var v=n.w||n.width,g=n.h||n.height,y=n.cssClass||n.css||n.className;if(typeof n.style<"u"&&c.setAttribute("style",n.style),c.style.position="absolute",c.style.width=b(v),c.style.height=b(g),c.style.right=b(n.right),c.style.top=b(n.top),c.style.left=b(n.left),c.style.bottom=b(n.bottom),c.style.borderRadius=b(n.borderRadius),typeof n.html<"u"||typeof n.text<"u")c.innerHTML=e.Util.escapeTextHtml(n.text,n.html);else if(n.icon){var _=document.createElement("i");_.className=n.icon,c.appendChild(_)}else if(n.image){var w=document.createElement("img");w.src=n.image,c.appendChild(w)}else if(n.symbol){var S="http://www.w3.org/2000/svg",E=document.createElementNS(S,"svg");E.setAttribute("width","100%"),E.setAttribute("height","100%");var T=document.createElementNS(S,"use");T.setAttribute("href",n.symbol),E.appendChild(T),c.appendChild(E),c.style.display="flex",c.style.alignItems="center",c.style.justifyContent="center"}if(y&&(c.className=y),n.toolTip&&c.setAttribute("title",n.toolTip),n.backColor&&(c.style.background=n.backColor),n.background&&(c.style.background=n.background),n.fontColor&&(c.style.color=n.fontColor),n.padding&&(c.style.padding=n.padding+"px",c.style.boxSizing="border-box"),n.cursor&&(c.style.cursor=n.cursor),n.borderColor){var C=n.borders;C?(C.top&&(c.style.borderTop="1px solid "+n.borderColor),C.right&&(c.style.borderRight="1px solid "+n.borderColor),C.bottom&&(c.style.borderBottom="1px solid "+n.borderColor),C.left&&(c.style.borderLeft="1px solid "+n.borderColor)):c.style.border="1px solid "+n.borderColor,c.style.boxSizing="border-box"}if(n.verticalAlignment)switch(c.style.display="flex",n.verticalAlignment){case"center":c.style.alignItems="center";break;case"top":c.style.alignItems="flex-start";break;case"bottom":c.style.alignItems="flex-end"}if(n.horizontalAlignment)switch(c.style.display="flex",n.horizontalAlignment){case"right":c.style.justifyContent="flex-end";break;case"left":c.style.justifyContent="flex-start";break;case"center":c.style.justifyContent="center"}if(n.action==="ResizeEnd"||n.action==="ResizeStart"||n.action==="Move"){if(o.calendar.isCalendar)switch(n.action){case"ResizeEnd":n.cursor="s-resize",n.dpBorder="bottom";break;case"ResizeStart":n.cursor="n-resize",n.dpBorder="top";break;case"Move":n.cursor="move"}if(o.calendar.isScheduler||o.calendar.isMonth)switch(n.action){case"ResizeEnd":n.cursor="e-resize",n.dpBorder="right";break;case"ResizeStart":n.cursor="w-resize",n.dpBorder="left";break;case"Move":n.cursor="move"}c.onmousemove=(function(M,L,I){return function($){L.calendar.internal&&L.calendar.internal.dragInProgress&&L.calendar.internal.dragInProgress()||($.cancelBubble=!0,M.style.cursor=I.cursor,I.dpBorder&&(M.dpBorder=I.dpBorder))}})(s,o,n),c.onmouseout=(function(M,L,I){return function(){M.style.cursor=""}})(s)}if((n.action==="ResizeEnd"||n.action==="ResizeStart")&&o.isEvent&&o.calendar.internal.touch){var N=(function(M,L,I){return function($){$.cancelBubble=!0;var O=L.calendar.internal.touch,H=$.touches?$.touches[0]:$,D={x:H.pageX,y:H.pageY};L.calendar.coords=O.relativeCoords($),O.preventEventTap=!0,L.calendar.isScheduler?O.startResizing(M,I.action==="ResizeEnd"?"right":"left"):L.calendar.isCalendar&&O.startResizing(M,I.action==="ResizeEnd"?"bottom":"top",D)}})(s,o,n);e.rePassive(c,e.touch.start,N)}if(n.action==="ContextMenu"&&o.isEvent&&o.calendar.internal.touch){var N=(function(L,I,$){return function(O){O.cancelBubble=!0,O.preventDefault(),h(L,I,$,O),I.calendar.internal.touch.preventEventTap=!0}})(s,o,n),B=(function(L,I,$){return function(O){O.cancelBubble=!0,O.preventDefault()}})();e.reNonPassive(c,e.touch.start,N),e.reNonPassive(c,e.touch.end,B)}if(n.action==="Bubble"&&o.isEvent&&o.calendar.internal.touch){var N=(function(I,$,O){return function(H){H.cancelBubble=!0,H.preventDefault();var D=a(O,$,H);D.preventDefault.value||(m($,O,H),$.calendar.internal.touch.preventEventTap=!0,typeof O.onClicked=="function"&&O.onClicked(D))}})(s,o,n),B=(function(I,$,O){return function(H){H.cancelBubble=!0,H.preventDefault()}})();e.reNonPassive(c,e.touch.start,N),e.reNonPassive(c,e.touch.end,B)}if(n.action==="Move"&&o.isEvent&&o.calendar.internal.touch){var N=(function(L,I,$){return function(O){O.cancelBubble=!0;var H=I.calendar.internal.touch,D=O.touches?O.touches[0]:O,R={x:D.pageX,y:D.pageY};I.calendar.coords=H.relativeCoords(O),e.Global&&e.Global.touch&&(e.Global.touch.active=!0),H.preventEventTap=!0,H.startMoving(L,R)}})(s,o);e.rePassive(c,e.touch.start,N)}if(n.action==="Bubble"&&o.isEvent?(c.onmousemove=(function(M,L,I){return function(){I.bubble?I.bubble.showEvent(L,!0):L.calendar.bubble&&L.calendar.bubble.showEvent(L,!0)}})(l,o,n),c.onmouseout=(function(M,L,I){return function(){typeof e.Bubble<"u"&&(I.bubble?I.bubble.hideOnMouseOut():L.calendar.bubble&&L.calendar.bubble.hideOnMouseOut())}})(l,o,n)):n.action==="Bubble"&&o.isRow?(c.onmousemove=(function(M,L,I){return function(){I.bubble?I.bubble.showResource(L,!0):L.calendar.resourceBubble&&L.calendar.resourceBubble.showResource(L,!0)}})(l,o,n),c.onmouseout=(function(M,L,I){return function(){typeof e.Bubble<"u"&&(I.bubble?I.bubble.hideOnMouseOut():L.calendar.resourceBubble&&L.calendar.resourceBubble.hideOnMouseOut())}})(l,o,n)):n.action==="Bubble"&&typeof e.Bubble<"u"&&n.bubble instanceof e.Bubble&&(c.onmousemove=(function(M,L,I){return function(){I.bubble.showHtml(null,null)}})(l,o,n),c.onmouseout=(function(M,L,I){return function(){typeof e.Bubble<"u"&&I.bubble&&I.bubble.hideOnMouseOut()}})(l,o,n)),n.action==="HoverMenu"&&(c.onmousemove=(function(M,L,I){return function(){var $=I.menu;$&&$.show&&($.visible?$.source&&typeof $.source.id<"u"&&$.source.id!==L.id&&$.show(L):$.show(L),$.cancelHideTimeout())}})(l,o,n),c.onmouseout=(function(M,L,I){return function(){var $=I.menu;$&&$.hideOnMouseOver&&$.delayedHide()}})(l,o,n)),n.action==="None"){var N=(function(L,I,$){return function(O){var H=a($,I,O);
21typeof $.onClicked=="function"&&$.onClicked(H),O.preventDefault(),O.stopPropagation()}})(s,o,n);e.reNonPassive(c,e.touch.start,N)}return c.onmousedown=(function(M,L,I){return function($){if(typeof I.onmousedown=="function"&&I.onmousedown($),typeof I.mousedown=="function"){var O={};O.area=I,O.div=M,O.originalEvent=$,O.source=L,I.mousedown(O)}if(I.action==="Move"&&L.isRow){var H=L.$.row;(0,L.calendar.internal.rowStartMoving)(H)}typeof e.Bubble<"u"&&e.Bubble.hideActive(),I.action==="Move"&&(e.Global.movingAreaData=I.data),I.action==="Move"&&L.isEvent&&L.calendar.internal&&L.calendar.internal.startMoving&&L.calendar.internal.startMoving(M,$),I.action!=="Move"&&I.action!=="ResizeEnd"&&I.action!=="ResizeStart"&&I.action&&I.action!=="Default"&&($.preventDefault(),$.cancelBubble=!0)}})(l,o,n),c.onclick=(function(M,L,I){return function($){var O=a(I,L,$);if(!O.preventDefault.value){switch(I.action){case"ContextMenu":h(M,L,I,$),$.cancelBubble=!0;break;case"None":$.cancelBubble=!0}typeof I.onClicked=="function"&&I.onClicked(O)}}})(l,o,n),typeof n.onMouseEnter=="function"&&c.addEventListener("mouseenter",(function(M,L,I){return function($){var O={};O.area=I,O.source=L,O.originalEvent=$,I.onMouseEnter(O)}})(l,o,n)),typeof n.onMouseLeave=="function"&&c.addEventListener("mouseleave",(function(M,L,I){return function($){var O={};O.area=I,O.source=L,O.originalEvent=$,I.onMouseLeave(O)}})(l,o,n)),c},e.Areas.all=[],e.Areas.hideAreas=function(l,o){if(l&&l&&l.active){var n=l.active,p=l.areas;if(n&&n.children&&o){var a=o.toElement||o.relatedTarget;if(~e.indexOf(n.children,a))return}if(!p||p.length===0)return void(l.active=null);e.de(p),l.active=null,l.areas=[],e.rfa(e.Areas.all,l),n.children=null}},e.Areas.hideAll=function(l){if(e.Areas.all&&e.Areas.all.length!==0)for(var o=0;o<e.Areas.all.length;o++)e.Areas.hideAreas(e.Areas.all[o],l)},e.Exception=function(l){return new Error(l)},e.Locale=function(l,o){if(this.id=l,this.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],this.dayNamesShort=["Su","Mo","Tu","We","Th","Fr","Sa"],this.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],this.datePattern="M/d/yyyy",this.timePattern="H:mm",this.dateTimePattern="M/d/yyyy H:mm",this.timeFormat="Clock12Hours",this.weekStarts=0,o)for(var n in o)this[n]=o[n]},e.Locale.all={},e.Locale.find=function(l){if(!l)return null;var o=l.toLowerCase();return o.length>2&&(o=e.Util.replaceCharAt(o,2,"-")),e.Locale.all[o]},e.Locale.register=function(l){e.Locale.all[l.id]=l},e.Locale.register(new e.Locale("ca-es",{dayNames:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],dayNamesShort:["dg","dl","dt","dc","dj","dv","ds"],monthNames:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre",""],monthNamesShort:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des.",""],timePattern:"H:mm",datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("cs-cz",{dayNames:["nedÄle","pondÄlÃ","úterý","stÅeda","Ätvrtek","pátek","sobota"],dayNamesShort:["ne","po","út","st","Ät","pá","so"],monthNames:["leden","únor","bÅezen","duben","kvÄten","Äerven","Äervenec","srpen","záÅÃ","ÅÃjen","listopad","prosinec",""],monthNamesShort:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII",""],timePattern:"H:mm",datePattern:"d. M. yyyy",dateTimePattern:"d. M. yyyy H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("da-dk",{dayNames:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],dayNamesShort:["sø","ma","ti","on","to","fr","lø"],monthNames:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december",""],monthNamesShort:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec",""],timePattern:"HH:mm",datePattern:"dd-MM-yyyy",dateTimePattern:"dd-MM-yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("de-at",{dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],monthNamesShort:["Jän","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],timePattern:"HH:mm",datePattern:"dd.MM.yyyy",dateTimePattern:"dd.MM.yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("de-ch",{dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],monthNamesShort:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],timePattern:"HH:mm",datePattern:"dd.MM.yyyy",dateTimePattern:"dd.MM.yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("de-de",{dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],monthNamesShort:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],timePattern:"HH:mm",datePattern:"dd.MM.yyyy",dateTimePattern:"dd.MM.yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("de-lu",{dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],monthNamesShort:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],timePattern:"HH:mm",datePattern:"dd.MM.yyyy",dateTimePattern:"dd.MM.yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("en-au",{dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
21ay","Saturday"],dayNamesShort:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],timePattern:"h:mm tt",datePattern:"d/MM/yyyy",dateTimePattern:"d/MM/yyyy h:mm tt",timeFormat:"Clock12Hours",weekStarts:1})),e.Locale.register(new e.Locale("en-ca",{dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],timePattern:"h:mm tt",datePattern:"yyyy-MM-dd",dateTimePattern:"yyyy-MM-dd h:mm tt",timeFormat:"Clock12Hours",weekStarts:0})),e.Locale.register(new e.Locale("en-gb",{dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],timePattern:"HH:mm",datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("en-us",{dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],timePattern:"h:mm tt",datePattern:"M/d/yyyy",dateTimePattern:"M/d/yyyy h:mm tt",timeFormat:"Clock12Hours",weekStarts:0})),e.Locale.register(new e.Locale("es-es",{dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["D","L","M","X","J","V","S"],monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],monthNamesShort:["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sep.","oct.","nov.","dic.",""],timePattern:"H:mm",datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("es-mx",{dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["do.","lu.","ma.","mi.","ju.","vi.","sá."],monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],monthNamesShort:["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sep.","oct.","nov.","dic.",""],timePattern:"hh:mm tt",datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy hh:mm tt",timeFormat:"Clock12Hours",weekStarts:0})),e.Locale.register(new e.Locale("eu-es",{dayNames:["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"],dayNamesShort:["ig","al","as","az","og","or","lr"],monthNames:["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua",""],monthNamesShort:["urt.","ots.","mar.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe.",""],timePattern:"H:mm",datePattern:"yyyy/MM/dd",dateTimePattern:"yyyy/MM/dd H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("fi-fi",{dayNames:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],dayNamesShort:["su","ma","ti","ke","to","pe","la"],monthNames:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu",""],monthNamesShort:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu",""],timePattern:"H:mm",datePattern:"d.M.yyyy",dateTimePattern:"d.M.yyyy H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("fr-be",{dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["di","lu","ma","me","je","ve","sa"],monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],timePattern:"HH:mm",datePattern:"dd-MM-yy",dateTimePattern:"dd-MM-yy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("fr-ca",{dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["di","lu","ma","me","je","ve","sa"],monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],timePattern:"HH:mm",datePattern:"yyyy-MM-dd",dateTimePattern:"yyyy-MM-dd HH:mm",timeFormat:"Clock24Hours",weekStarts:0})),e.Locale.register(new e.Locale("fr-ch",{dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["di","lu","ma","me","je","ve","sa"],monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],timePattern:"HH:mm",datePattern:"dd.MM.yyyy",dateTimePattern:"dd.MM.yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("fr-fr",{dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["di","lu","ma","me","je","ve","sa"],monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],timePattern:"HH:mm",datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("fr-lu",{dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["di","lu","ma","me","je","ve","sa"],monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],timePattern:"HH:mm",datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("gl-es",{dayNames:["domingo","luns","martes","mércores","xoves","venres","sábado"],dayNamesShort:["do","lu","ma","mé","xo","ve","sá"],monthNames:["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro",""],monthNamesShort:["xan","feb","mar","abr","maio","xuño","xul","ago","set","out","nov","dec",""],timePattern:"H:mm",datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("it-it",{dayNames:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],dayNamesShort:["do","lu","ma","me","gi","ve","sa"],monthNames:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre",""],monthNamesShort:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic",""],timePattern:"HH:mm",datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("it-ch",{dayNames:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],dayNamesShort:["do","lu","ma","me","gi","ve","sa"],monthNames:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre",""],monthNamesShort:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic",""],timePattern:"HH:mm",datePattern:"dd.MM.yyyy",dateTimePattern:"dd.MM.yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("ja-jp",{dayNames:["æ¥ææ¥","æææ¥","ç«ææ¥","æ°´ææ¥","æ¨ææ¥","éææ¥","åææ¥"],dayNamesShort:["æ¥","æ","ç«","æ°´","æ¨","é","å"],monthNames:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ",""],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12",""],timePattern:"H:mm",datePattern:"yyyy/
21MM/dd",dateTimePattern:"yyyy/MM/dd H:mm",timeFormat:"Clock24Hours",weekStarts:0})),e.Locale.register(new e.Locale("ko-kr",{dayNames:["ì¼ìì¼","ììì¼","íìì¼","ììì¼","목ìì¼","ê¸ìì¼","í ìì¼"],dayNamesShort:["ì¼","ì","í","ì","목","ê¸","í "],monthNames:["1ì","2ì","3ì","4ì","5ì","6ì","7ì","8ì","9ì","10ì","11ì","12ì",""],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12",""],timePattern:"tt h:mm",datePattern:"yyyy-MM-dd",dateTimePattern:"yyyy-MM-dd tt h:mm",timeFormat:"Clock12Hours",weekStarts:0})),e.Locale.register(new e.Locale("nb-no",{dayNames:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],dayNamesShort:["sø","ma","ti","on","to","fr","lø"],monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des",""],timePattern:"HH:mm",datePattern:"dd.MM.yyyy",dateTimePattern:"dd.MM.yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("nl-nl",{dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zo","ma","di","wo","do","vr","za"],monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december",""],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec",""],timePattern:"HH:mm",datePattern:"d-M-yyyy",dateTimePattern:"d-M-yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("nl-be",{dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zo","ma","di","wo","do","vr","za"],monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december",""],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec",""],timePattern:"H:mm",datePattern:"d/MM/yyyy",dateTimePattern:"d/MM/yyyy H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("nn-no",{dayNames:["søndag","mÃ¥ndag","tysdag","onsdag","torsdag","fredag","laurdag"],dayNamesShort:["sø","mÃ¥","ty","on","to","fr","la"],monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des",""],timePattern:"HH:mm",datePattern:"dd.MM.yyyy",dateTimePattern:"dd.MM.yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("pt-br",{dayNames:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],dayNamesShort:["D","S","T","Q","Q","S","S"],monthNames:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro",""],monthNamesShort:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez",""],timePattern:"HH:mm",datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:0})),e.Locale.register(new e.Locale("pl-pl",{dayNames:["niedziela","poniedziaÅek","wtorek","Åroda","czwartek","piÄ
tek","sobota"],dayNamesShort:["N","Pn","Wt","År","Cz","Pt","So"],monthNames:["styczeÅ","luty","marzec","kwiecieÅ","maj","czerwiec","lipiec","sierpieÅ","wrzesieÅ","październik","listopad","grudzieÅ",""],monthNamesShort:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru",""],timePattern:"HH:mm",datePattern:"yyyy-MM-dd",dateTimePattern:"yyyy-MM-dd HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("pt-pt",{dayNames:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],dayNamesShort:["D","S","T","Q","Q","S","S"],monthNames:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro",""],monthNamesShort:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez",""],timePattern:"HH:mm",datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:0})),e.Locale.register(new e.Locale("ro-ro",{dayNames:["duminicÄ","luni","marÈi","miercuri","joi","vineri","sâmbÄtÄ"],dayNamesShort:["D","L","Ma","Mi","J","V","S"],monthNames:["ianuarie","februarie","martie","a
21prilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie",""],monthNamesShort:["ian.","feb.","mar.","apr.","mai.","iun.","iul.","aug.","sep.","oct.","nov.","dec.",""],timePattern:"H:mm",datePattern:"dd.MM.yyyy",dateTimePattern:"dd.MM.yyyy H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("ru-ru",{dayNames:["воÑкÑеÑенÑе","понеделÑник","вÑоÑник","ÑÑеда","ÑеÑвеÑг","пÑÑниÑа","ÑÑббоÑа"],dayNamesShort:["ÐÑ","Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб"],monthNames:["ЯнваÑÑ","ФевÑалÑ","ÐаÑÑ","ÐпÑелÑ","Ðай","ÐÑнÑ","ÐÑлÑ","ÐвгÑÑÑ","СенÑÑбÑÑ","ÐкÑÑбÑÑ","ÐоÑбÑÑ","ÐекабÑÑ",""],monthNamesShort:["Ñнв","Ñев","маÑ","апÑ","май","иÑн","иÑл","авг","Ñен","окÑ","ноÑ","дек",""],timePattern:"H:mm",datePattern:"dd.MM.yyyy",dateTimePattern:"dd.MM.yyyy H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("sk-sk",{dayNames:["nedeľa","pondelok","utorok","streda","Å¡tvrtok","piatok","sobota"],dayNamesShort:["ne","po","ut","st","Å¡t","pi","so"],monthNames:["január","február","marec","aprÃl","máj","jún","júl","august","september","október","november","december",""],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12",""],timePattern:"H:mm",datePattern:"d.M.yyyy",dateTimePattern:"d.M.yyyy H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("sv-se",{dayNames:["söndag","mÃ¥ndag","tisdag","onsdag","torsdag","fredag","lördag"],dayNamesShort:["sö","mÃ¥","ti","on","to","fr","lö"],monthNames:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december",""],monthNamesShort:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec",""],timePattern:"HH:mm",datePattern:"yyyy-MM-dd",dateTimePattern:"yyyy-MM-dd HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("tr-tr",{dayNames:["Pazar","Pazartesi","Salı","ÃarÅamba","PerÅembe","Cuma","Cumartesi"],dayNamesShort:["Pz","Pt","Sa","Ãa","Pe","Cu","Ct"],monthNames:["Ocak","Åubat","Mart","Nisan","Mayıs","Haziran","Temmuz","AÄustos","Eylül","Ekim","Kasım","Aralık",""],monthNamesShort:["Oca","Åub","Mar","Nis","May","Haz","Tem","AÄu","Eyl","Eki","Kas","Ara",""],timePattern:"HH:mm",datePattern:"d.M.yyyy",dateTimePattern:"d.M.yyyy HH:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("uk-ua",{dayNames:["недÑлÑ","понедÑлок","вÑвÑоÑок","ÑеÑеда","ÑеÑвеÑ","п'ÑÑниÑÑ","ÑÑбоÑа"],dayNamesShort:["Ðд","Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб"],monthNames:["ÑÑÑенÑ","лÑÑий","беÑезенÑ","квÑÑенÑ","ÑÑавенÑ","ÑеÑвенÑ","липенÑ","ÑеÑпенÑ","веÑеÑенÑ","жовÑенÑ","лиÑÑопад","гÑÑденÑ",""],monthNamesShort:["СÑÑ","ÐÑÑ","ÐеÑ","ÐвÑ","ТÑа","ЧеÑ","Ðип","СеÑ","ÐеÑ","Ðов","ÐиÑ","ÐÑÑ",""],timePattern:"H:mm",datePattern:"dd.MM.yyyy",dateTimePattern:"dd.MM.yyyy H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("zh-cn",{dayNames:["æææ¥","ææä¸","ææäº","ææä¸","ææå","ææäº","ææå
"],dayNamesShort:["æ¥","ä¸","äº","ä¸","å","äº","å
"],monthNames:["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ",""],monthNamesShort:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ",""],timePattern:"H:mm",datePattern:"yyyy/M/d",dateTimePattern:"yyyy/M/d H:mm",timeFormat:"Clock24Hours",weekStarts:1})),e.Locale.register(new e.Locale("zh-tw",{dayNames:["æææ¥","ææä¸","ææäº","ææä¸","ææå","ææäº","ææå
"],dayNamesShort:["æ¥","ä¸","äº","ä¸","å","äº","å
"],monthNames:["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ",""],monthNamesShort:["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ",""],timePattern:"tt hh:mm",datePattern:"yyyy/
21M/d",dateTimePattern:"yyyy/M/d tt hh:mm",timeFormat:"Clock12Hours",weekStarts:0})),e.Locale.US=e.Locale.find("en-us"),e.Switcher=function(l){function o(p,a,m){var h={};h.start=p,h.end=a,h.day=m,h.target=n.m.control,h.preventDefault=function(){this.preventDefault.value=!0};var b=n.J;b&&b.start===h.start&&b.end===h.end&&b.day===h.day&&b.target===h.target||(n.J=h,typeof n.onChange=="function"&&(n.onChange(h),h.preventDefault.value)||typeof n.onTimeRangeSelect=="function"&&(n.onTimeRangeSelect(h),h.preventDefault.value)||(n.m.u(n.n),typeof n.onChanged=="function"&&n.onChanged(h),typeof n.onTimeRangeSelected=="function"&&n.onTimeRangeSelected(h)))}var n=this;this.j=[],this.k=[],this.l={},this.selectedClass=null,this.syncScrollbar=!0,this.m=null,this.n=e.Date.today(),this.o=null,this.onChange=null,this.onChanged=null,this.onSelect=null,this.l.updateMode=function(p){var a=n.l.control;a&&(a.selectMode=p,a.select(n.n))},this.addView=function(p,a){var m;if(typeof p=="string"){if(m=document.getElementById(p),!m)throw"Element not found: "+p}else m=p;var h=m,b={};return b.p=!0,b.q=h.id,b.control=h,b.s=a||{},b.t=function(){h.hide?h.hide():h.nav&&h.nav.top?h.nav.top.style.display="none":h.style.display="none"},b.u=function(s){(function(){return!!h.backendUrl||!(typeof WebForm_DoCallback!="function"||!h.uniqueID)})()?h.commandCallBack&&h.commandCallBack("navigate",{day:s}):(h.startDate=s,h.update())},b.z=function(){n.A(),h.show?h.show():h.nav&&h.nav.top?h.nav.top.style.display="":h.style.display=""},b.B=function(){if(b.s.navigatorSelectMode)return b.s.navigatorSelectMode;if(h.isCalendar)switch(h.viewType){case"Day":return"day";case"Week":return"week";case"WorkWeek":return"week";default:return"day"}else if(h.isMonth)switch(h.viewType){case"Month":return"month";case"Weeks":return"week";default:return"day"}return"day"},this.j.push(b),b},this.addTrigger=function(p,a){var m;if(typeof p=="string"){if(m=document.getElementById(p),!m)throw"Element not found: "+p}else m=p;var h=this.C(a);h||(h=this.addView(a));var b={};return b.D=!0,b.E=m,b.q=m.id,b.F=h,b.G=function(s){n.show(b),n.H(b),s?.preventDefault()},e.re(m,"click",b.G),this.k.push(b),b},this.addButton=this.addTrigger,this.select=function(p){var a=this.I(p);a?a.G():this.k.length>0&&this.k[0].G()},this.I=function(p){for(var a=0;a<this.k.length;a++){var m=this.k[a];if(m.q===p)return m}return null},this.H=function(p){if(this.selectedClass){for(var a=0;a<this.k.length;a++){var m=this.k[a];e.Util.removeClass(m.E,this.selectedClass)}e.Util.addClass(p.E,this.selectedClass)}},this.addNavigator=function(p){n.l.control=p,p.timeRangeSelectedHandling="JavaScript",p.onTimeRangeSelected=function(){var a,m,h;if(p.api===1)a=arguments[0],m=arguments[1],h=arguments[2];else{var b=arguments[0];a=b.start,m=b.end,h=b.day}n.n=h,o(a,m,h)}},this.show=function(p){var a,m;if(p.D)m=p,a=m.F;else if(a=p.p?p:this.C(p),this.m===a)return;if(n.onSelect){var h={};h.source=m?m.E:null,h.target=a.control,n.onSelect(h)}if(n.syncScrollbar){var b=this.m&&this.m.control;b&&b.isCalendar&&(n.o=b.getScrollY())}this.m=a,a.z(),n.o!==null&&a.control.isCalendar&&a.control.setScrollY(n.o);var s=a.B();n.l.updateMode(s),o(n.l.control.selectionStart,n.l.control.selectionEnd.addDays(1),n.l.control.selectionDay)},this.C=function(p){for(var a=0;a<this.j.length;a++)if(this.j[a].control===p)return this.j[a];return null},this.A=function(){for(var p=0;p<this.j.length;p++)this.j[p].t()},Object.defineProperty(this,"active",{get:function(){return n.m}}),this.events={},this.events.load=function(p,a,m){if(!n.m||!n.m.control)throw"DayPilot.Switcher.events.load(): Active view not found";n.m.control.events.load(p,a,m)},this.J=null,this.K=function(){if(l)for(var p in l)if(p==="triggers"){var a=l.triggers||[];a.forEach(function(m){n.addTrigger(m.id,m.view)})}else p==="navigator"?n.addNavigator(l.navigator):n[p]=l[p]},this.K()},e.Duration=function(l){var o=this,n=864e5,p=36e5,a=6e4,m=1e3;if(arguments.length===2){var h=arguments[0],b=arguments[1];if(!(h instanceof e.Date)&&typeof h!="string")throw"DayPilot.Duration(): Invalid start argument, DayPilot.Date expected";if(!(b instanceof e.Date)&&typeof b!="string")throw"DayPilot.Duration(): Invalid end argument, DayPilot.Date expected";typeof h=="string"&&(h=new e.Date(h)),typeof b=="string"&&(b=new e.Date(b)),l=b.getTime()-h.getTime()}return this.ticks=l,e.Date.Cache.DurationCtor[""+l]?e.Date.Cache.DurationCtor[""+l]:(e.Date.Cache.DurationCtor[""+l]=this,this.toString=function(s){if(!s)return o.days()+"."+o.hours()+":"+o.minutes()+":"+o.seconds()+"."+o.milliseconds();var c=o.minutes();c=(c<10?"0":"")+c;var v=s;return v=v.replace("mm",c),v=v.replace("m",o.minutes()),v=v.replace("H",o.hours()),v=v.replace("h",o.hours()),v=v.replace("d",o.days()),v=v.replace("s",o.seconds())},this.totalHours=function(){return o.ticks/p},this.totalDays=function(){return o.ticks/n},this.totalMinutes=function(){return o.ticks/a},this.totalSeconds=function(){return o.ticks/m},this.days=function(){return Math.floor(o.totalDays())},this.hours=function(){var s=o.ticks-o.days()*n;return Math.floor(s/p)},this.minutes=function(){var s=o.ticks-Math.floor(o.totalHours())*p;return Math.floor(s/a)},this.seconds=function(){var s=o.ticks-Math.floor(o.totalMinutes())*a;return Math.floor(s/m)},void(this.milliseconds=function(){return o.ticks%m}))},e.Duration.weeks=function(l){return new e.Duration(1e3*l*60*60*24*7)},e.Duration.days=function(l){return new e.Duration(1e3*l*60*60*24)},e.Duration.hours=function(l){return new e.Duration(1e3*l*60*60)},e.Duration.minutes=function(l){return new e.Duration(1e3*l*60)},e.Duration.seconds=function(l){return new e.Duration(1e3*l)},e.TimeSpan=function(){throw"Please use DayPilot.Duration class instead of DayPilot.TimeSpan."};try{e.TimeSpan.prototype=Object.create(e.Duration.prototype)}catch{}e.Date=function(l,o){if(l instanceof e.Date)return l;var n;e.Util.isNullOrUndefined(l)&&(n=e.DateUtil.fromLocal().getTime(),l=n);var p=e.Date.Cache.Ctor;if(p[l])return e.Stats.cacheHitsCtor+=1,p[l];var a=!1;if(typeof l=="string"||l instanceof String){try{n=e.DateUtil.fromStringSortable(l,o).getTime()}catch{throw new e.Exception("DayPilot.Date - Unable to parse ISO8601 date/time string: "+l)}a=!0}else if(typeof l=="number"||l instanceof Number){if(isNaN(l))throw"Cannot create DayPilot.Date from NaN";n=l}else{if(!(l instanceof Date))throw"Unrecognized parameter: use Date, number or string in ISO 8601 format";n=o?e.DateUtil.fromLocal(l).getTime():l.getTime()}var m=i(n);return p[m]?p[m]:(p[m]=this,p[n]=this,a&&m!==l&&e.DateUtil.hasTzSpec(l)&&(p[l]=this),Ob
21ject.defineProperty?(Object.defineProperty(this,"ticks",{get:function(){return n}}),Object.defineProperty(this,"value",{value:m,writable:!1,enumerable:!0})):(this.ticks=n,this.value=m),e.Date.Config.legacyShowD&&(this.d=new Date(n)),void(e.Stats.dateObjects+=1))},e.Date.Config={},e.Date.Config.legacyShowD=!1,e.Date.Cache={},e.Date.Cache.Parsing={},e.Date.Cache.Ctor={},e.Date.Cache.Ticks={},e.Date.Cache.DurationCtor={},e.Date.Cache.clear=function(){e.Date.Cache.Parsing={},e.Date.Cache.Ctor={},e.Date.Cache.Ticks={},e.Date.Cache.DurationCtor={}},e.Date.prototype.addDays=function(l){return l?new e.Date(this.ticks+24*l*60*60*1e3):this},e.Date.prototype.addHours=function(l){return l?this.addTime(60*l*60*1e3):this},e.Date.prototype.addMilliseconds=function(l){return l?this.addTime(l):this},e.Date.prototype.addMinutes=function(l){return l?this.addTime(60*l*1e3):this},e.Date.prototype.addMonths=function(l){if(!l)return this;var o=new Date(this.ticks),n=o.getUTCFullYear(),p=o.getUTCMonth()+1;if(l>0){for(;l>=12;)l-=12,n++;l>12-p?(n++,p=l-(12-p)):p+=l}else{for(;l<=-12;)l+=12,n--;p+l<=0?(n--,p=12+p+l):p+=l}var a=new Date(o.getTime());a.setUTCDate(1),a.setUTCFullYear(n),a.setUTCMonth(p-1);var m=new e.Date(a).daysInMonth();return a.setUTCDate(Math.min(m,o.getUTCDate())),new e.Date(a)},e.Date.prototype.addSeconds=function(l){return l?this.addTime(1e3*l):this},e.Date.prototype.addTime=function(l){return l?(l instanceof e.Duration&&(l=l.ticks),new e.Date(this.ticks+l)):this},e.Date.prototype.addYears=function(l){var o=new Date(this.ticks),n=new Date(this.ticks),p=this.getYear()+l,a=this.getMonth();n.setUTCDate(1),n.setUTCFullYear(p),n.setUTCMonth(a);var m=new e.Date(n).daysInMonth();return n.setUTCDate(Math.min(m,o.getUTCDate())),new e.Date(n)},e.Date.prototype.dayOfWeek=function(){return new Date(this.ticks).getUTCDay()},e.Date.prototype.dayOfWeekISO=function(){return new Date(this.ticks).getUTCDay()||7},e.Date.prototype.getDayOfWeek=function(){return new Date(this.ticks).getUTCDay()},e.Date.prototype.getDayOfYear=function(){var l=this.firstDayOfYear();return e.DateUtil.daysDiff(l,this)+1},e.Date.prototype.daysInMonth=function(){var l=new Date(this.ticks),o=l.getUTCMonth()+1,n=l.getUTCFullYear(),p=[31,28,31,30,31,30,31,31,30,31,30,31];return o!==2?p[o-1]:n%4!==0||n%100===0&&n%400!==0?p[1]:p[1]+1},e.Date.prototype.daysInYear=function(){var l=this.getYear();return l%4!==0||l%100===0&&l%400!==0?365:366},e.Date.prototype.dayOfYear=function(){return Math.ceil((this.getDatePart().getTime()-this.firstDayOfYear().getTime())/864e5)+1},e.Date.prototype.equals=function(l){if(l===null)return!1;if(l instanceof e.Date)return this===l;throw"The parameter must be a DayPilot.Date object (DayPilot.Date.equals())"},e.Date.prototype.firstDayOfMonth=function(){var l=new Date;return l.setUTCFullYear(this.getYear(),this.getMonth(),1),l.setUTCHours(0),l.setUTCMinutes(0),l.setUTCSeconds(0),l.setUTCMilliseconds(0),new e.Date(l)},e.Date.prototype.firstDayOfYear=function(){var l=this.getYear(),o=new Date;return o.setUTCFullYear(l,0,1),o.setUTCHours(0),o.setUTCMinutes(0),o.setUTCSeconds(0),o.setUTCMilliseconds(0),new e.Date(o)},e.Date.prototype.firstDayOfWeek=function(l){var o=this;if(l instanceof e.Locale)l=l.weekStarts;else if(typeof l=="string"&&e.Locale.find(l)){var n=e.Locale.find(l);l=n.weekStarts}else l=l||0;for(var p=o.dayOfWeek();p!==l;)o=o.addDays(-1),p=o.dayOfWeek();return new e.Date(o)},e.Date.prototype.getDay=function(){return new Date(this.ticks).getUTCDate()},e.Date.prototype.getDatePart=function(){var l=new Date(this.ticks);return l.setUTCHours(0),l.setUTCMinutes(0),l.setUTCSeconds(0),l.setUTCMilliseconds(0),new e.Date(l)},e.Date.prototype.getYear=function(){return new Date(this.ticks).getUTCFullYear()},e.Date.prototype.getHours=function(){return new Date(this.ticks).getUTCHours()},e.Date.prototype.getMilliseconds=function(){return new Date(this.ticks).getUTCMilliseconds()},e.Date.prototype.getMinutes=function(){return new Date(this.ticks).getUTCMinutes()},e.Date.prototype.getMonth=function(){return new Date(this.ticks).getUTCMonth()},e.Date.prototype.getSeconds=function(){return new Date(this.ticks).getUTCSeconds()},e.Date.prototype.getTotalTicks=function(){return this.getTime()},e.Date.prototype.getTime=function(){return this.ticks},e.Date.prototype.getTimePart=function(){var l=this.getDatePart();return e.DateUtil.diff(this,l)},e.Date.prototype.lastDayOfMonth=function(){var l=new Date(this.firstDayOfMonth().getTime()),o=this.daysInMonth();return l.setUTCDate(o),new e.Date(l)},e.Date.prototype.weekNumber=function(){var l=this.firstDayOfYear(),o=(this.getTime()-l.getTime())/864e5;return Math.ceil((o+l.dayOfWeek()+1)/7)},e.Date.prototype.weekNumberISO=function(){var l=!1,o=this.dayOfYear(),n=this.firstDayOfYear().dayOfWeek(),p=this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek();n===0&&(n=7),p===0&&(p=7);var a=8-n;n!==4&&p!==4||(l=!0);var m=Math.ceil((o-a)/7),h=m;return a>=4&&(h+=1),h>52&&!l&&(h=1),h===0&&(h=this.firstDayOfYear().addDays(-1).weekNumberISO()),h},e.Date.prototype.toDateLocal=function(){var l=new Date(this.ticks),o=new Date;return o.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),o.setHours(l.getUTCHours()),o.setMinutes(l.getUTCMinutes()),o.setSeconds(l.getUTCSeconds()),o.setMilliseconds(l.getUTCMilliseconds()),o},e.Date.prototype.toDate=function(){return new Date(this.ticks)},e.Date.prototype.toJSON=function(){return this.value},e.Date.prototype.toString=function(l,o){return l?new u(l,o).print(this):this.toStringSortable()},e.Date.prototype.toStringSortable=function(){return i(this.ticks)},e.Date.parse=function(l,o,n){return new u(o,n).parse(l)},e.Date.today=function(){return new e.Date(e.DateUtil.localToday(),!0)},e.Date.now=function(){return new e.Date},e.Date.fromYearMonthDay=function(l,o,n){o=o||1,n=n||1;var p=new Date(0);return p.setUTCFullYear(l),p.setUTCMonth(o-1),p.setUTCDate(n),new e.Date(p)},e.DateUtil={},e.DateUtil.fromStringSortable=function(l,o){if(!l)throw"Can't create DayPilot.Date from an empty string";var n=l.length,p=n===10,a=n===19,m=n>19;if(!p&&!a&&!m)throw"Invalid string format (use '2010-01-01' or '2010-01-01T00:00:00'): "+l;if(e.Date.Cache.Parsing[l]&&!o)return e.Stats.cacheHitsParsing+=1,e.Date.Cache.Parsing[l];var h=l.substring(0,4),b=l.substring(5,7),s=l.substring(8,10),c=new Date(0);if(c.setUTCFullYear(h,b-1,s),p)return e.Date.Cache.Parsing[l]=c,c;var v=l.substring(11,13),g=l.substring(14,16),y=l.substring(17,19);if(c.setUTCHours(v),c.setUTCMinutes(g),c.setUTCSeconds(y),a)return e.Date.Cache.Parsing[l]=c,c;var _=l[19],w=0;if(_==="."){var S=parseInt(l.substring(20,23));c.setUTCMilliseconds(S),w=e.DateUtil.getTzOffsetMinutes(l.substring(23))}else w=e.DateUtil.getTzOffsetMinutes(l.substring(19));var E=new e.Date(c);return o||(E=E.addMinutes(-w)),c=E.toDate(),e.Date.Cache.Parsing[l]=c,c},e.DateUtil.getTzOffsetMinutes=function(l){if(e.Util.isNullOrUndefined(l)||l===""||l==="Z")return 0;var o=l[0],n=parseInt(l.substring(1,3)),p=parseInt(l.substring(4)),a=60*n+p;if(o==="-")return-a;if(o==="+")return a;throw"Invalid timezone spec: "+l},e.DateUtil.hasTzSpec=function(l){return!!l.indexOf("+")||!!l.indexOf("-")},e.DateUtil.daysDiff=function(l,o){if(!l||!o)throw new Error("two parameters required");if(l=new e.Date(l),o=new e.Date(o),l.getTime()>o.getTime())return null;for(var n=0,p=l.getDatePart(),a=o.getDatePart();p.getTime()<a.getTime();)p=p.addDays(1),n++;return n},e.DateUtil.daysSpan=function(l,o){if(!l||!o)throw new Error("two parameters required");if(l=new e.Date(l),o=new e.Date(o),l.getTime()===o.getTime())return 0;var n=e.DateUtil.daysDiff(l,o);return o.getTime()===o.getDatePart().getTime()&&n--,n},e.DateUtil.diff=function(l,o){if(!(l&&o&&l.getTime&&o.getTime))throw"Both compared objects must be Date objects (DayPilot.Date.diff).";return l.getTime()-o.getTime()},e.DateUtil.fromLocal=function(l){l||(l=new Date);var o=new Date;return o.setUTCFullYear(l.getFullYear(),l.getMonth(),l.getDate()),o.setUTCHours(l.getHours()),o.setUTCMinutes(l.getMinutes()),o.setUTCSeconds(l.getSeconds()),o.setUTCMilliseconds(l.getMilliseconds()),o},e.DateUtil.localToday=function(){var l=new Date;return l.setHours(0),l.setMinutes(0),l.setSeconds(0),l.setMilliseconds(0),l},e.DateUtil.hours=function(l,o){var n=l.getUTCMinutes();n<10&&(n="0"+n);var p=l.getUTCHours();if(o){var a=p<12;return p%=12,p===0&&(p=12),p+":"+n+" "+(a?"AM":"PM")}return p+":"+n},e.DateUtil.max=function(l,o){return l.getTime()>o.getTime()?l:o},e.DateUtil.min=function(l,o){return l.getTime()<o.getTime()?l:o},e.ColorUtil={},e.ColorUtil.hexToRgb=function(l){if(!/^#[0-9a-f]{6}$/i.test(l))throw new e.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'.");return l=l.replace("#",""),{r:parseInt(l.substring(0,2),16),g:parseInt(l.substring(2,4),16),b:parseInt(l.substring(4,6),16)}},e.ColorUtil.rgbToHex=function(l){return"#"+d(l.r)+d(l.g)+d(l.b)},e.ColorUtil.adjustLuminance=function(l,o){return{r:l.r+o,g:l.g+o,b:l.b+o}},e.ColorUtil.darker=function(l,o){var n="";l.length===9&&(n=l.slice(7,9),l=l.slice(0,7));var p=e.ColorUtil.hexToRgb(l);typeof o!="number"&&(o=1);var a=17,m=Math.round(o*a),h=e.ColorUtil.adjustLuminance(p,-m);return e.ColorUtil.rgbToHex(h)+n},e.ColorUtil.lighter=function(l,o){return typeof o!="number"&&(o=1),e.ColorUtil.darker(l,-o)},e.ColorUtil.pl=function(l){var o=e.ColorUtil.hexToRgb(l),n=o.r/255,p=o.g/255,a=o.b/255;return Math.sqrt(.299*n*n+.587*p*p+.114*a*a)},e.ColorUtil.contrasting=function(l,o,n){var p=e.ColorUtil.pl(l);return o=o||"#ffffff",n=n||"#000000",p>.5?n:o},e.Event=function(l,o,n){var p=this;this.calendar=o,this.data=l||{},this.part=n||{},typeof this.data.id>"u"&&(this.data.id=this.data.value);var a={},m=["id","text","start","end","resource"];this.isEvent=!0,this.temp=function(){if(a.dirty)return a;for(var h=0;h<m.length;h++)a[m[h]]=p.data[m[h]];return a.dirty=!0,a},this.copy=function(){for(var h={},b=0;b<m.length;b++)h[m[b]]=p.data[m[b]];return h},this.commit=function(){if(a.dirty){for(var h=0;h<m.length;h++)p.data[m[h]]=a[m[h]];a.dirty=!1}},this.dirty=function(){return a.dirty},this.id=function(h){return typeof h>"u"?p.data.id:void(this.temp().id=h)},this.value=function(h){return typeof h>"u"?p.id():void p.id(h)},this.text=function(h){return typeof h>"u"?p.data.text:(this.temp().text=h,void this.client.innerHTML(h))},this.start=function(h){return typeof h>"u"?new e.Date(p.data.start):void(this.temp().start=new e.Date(h))},this.end=function(h){return typeof h>"u"?new e.Date(p.data.end):void(this.temp().end=new e.Date(h))},this.resource=function(h){return typeof h>"u"?p.data.resource:void(this.temp().resource=h)},this.duration=function(){return new e.Duration(this.start(),this.end())},this.rawend=function(h){if(typeof h>"u")return o&&o.internal.adjustEndIn?o.internal.adjustEndIn(new e.Date(p.data.end)):new e.Date(p.data.end);throw new e.Exception("DayPilot.Event.rawend() is readonly")},this.partStart=function(){return new e.Date(this.part.start)},this.partEnd=function(){return new e.Date(this.part.end)},this.tag=function(h){var b=p.data.tag;if(!b)return null;if(typeof h>"u")return p.data.tag;
21for(var s=p.calendar.tagFields,c=-1,v=0;v<s.length;v++)h===s[v]&&(c=v);if(c===-1)throw"Field name not found.";return b[c]},this.client={},this.client.innerHTML=function(h){if(typeof h>"u"){var b=p.cache||p.data,s=p.calendar&&p.calendar.internal&&p.calendar.internal.xssTextHtml;return s?s(b.text,b.html):e.Util.escapeTextHtml(b.text,b.html)}p.data.html=h},this.client.html=this.client.innerHTML,this.client.header=function(h){return typeof h>"u"?p.data.header:void(p.data.header=h)},this.client.cssClass=function(h){return typeof h>"u"?p.cache&&typeof p.cache.cssClass<"u"?p.cache.cssClass:p.data.cssClass:void(p.data.cssClass=h)},this.client.toolTip=function(h){return typeof h>"u"?p.cache&&typeof p.cache.toolTip<"u"?p.cache.toolTip:typeof p.data.toolTip<"u"?p.data.toolTip:p.data.text:void(p.data.toolTip=h)},this.client.barVisible=function(h){return typeof h>"u"?p.cache&&typeof p.cache.barHidden<"u"?!p.cache.barHidden:p.calendar.durationBarVisible&&!p.data.barHidden:void(p.data.barHidden=!h)},this.client.backColor=function(h){return typeof h>"u"?p.cache&&typeof p.cache.backColor<"u"?p.cache.backColor:typeof p.data.backColor<"u"?p.data.backColor:p.calendar.eventBackColor:void(p.data.backColor=h)},this.client.borderColor=function(h){return typeof h>"u"?p.cache&&typeof p.cache.borderColor<"u"?p.cache.borderColor:typeof p.data.borderColor<"u"?p.data.borderColor:p.calendar.eventBorderColor:void(p.data.borderColor=h)},this.client.contextMenu=function(h){if(typeof h>"u")return p.oContextMenu?p.oContextMenu:p.cache?p.cache.contextMenu:p.data.contextMenu;p.oContextMenu=h},this.client.moveEnabled=function(h){return typeof h>"u"?p.cache&&typeof p.cache.moveDisabled<"u"?!p.cache.moveDisabled:p.calendar.eventMoveHandling!=="Disabled"&&!p.data.moveDisabled:void(p.data.moveDisabled=!h)},this.client.resizeEnabled=function(h){return typeof h>"u"?p.cache&&typeof p.cache.resizeDisabled<"u"?!p.cache.resizeDisabled:p.calendar.eventResizeHandling!=="Disabled"&&!p.data.resizeDisabled:void(p.data.resizeDisabled=!h)},this.client.clickEnabled=function(h){return typeof h>"u"?p.cache&&typeof p.cache.clickDisabled<"u"?!p.cache.clickDisabled:p.calendar.eventClickHandling!=="Disabled"&&!p.data.clickDisabled:void(p.data.clickDisabled=!h)},this.client.rightClickEnabled=function(h){return typeof h>"u"?p.cache&&typeof p.cache.rightClickDisabled<"u"?!p.cache.rightClickDisabled:p.calendar.eventRightClickHandling!=="Disabled"&&!p.data.rightClickDisabled:void(p.data.rightClickDisabled=!h)},this.client.deleteEnabled=function(h){return typeof h>"u"?p.cache&&typeof p.cache.deleteDisabled<"u"?!p.cache.deleteDisabled:p.calendar.eventDeleteHandling!=="Disabled"&&!p.data.deleteDisabled:void(p.data.deleteDisabled=!h)},this.toJSON=function(){var h={};if(h.value=this.id(),h.id=this.id(),h.text=this.text(),h.start=this.start(),h.end=this.end(),h.tag={},p.calendar&&p.calendar.tagFields)for(var b=p.calendar.tagFields,s=0;s<b.length;s++)h.tag[b[s]]=this.tag(b[s]);return h}}}})(t),(function(e){var r=function(){};if(typeof e.Calendar>"u"||!e.Calendar.events){var i={};i.selectedCells=[],i.topSelectedCell=null,i.bottomSelectedCell=null,i.column=null,i.firstSelected=null,i.firstMousePos=null,i.originalMouse=null,i.originalHeight=null,i.originalTop=null,i.resizing=null,i.globalHandlers=!1,i.moving=null,i.register=function(d){i.registered||(i.registered=[]);for(var l=i.registered,o=0;o<l.length;o++)if(l[o]===d)return;l.push(d)},i.unregister=function(d){var l=i.registered;if(l){var o=e.indexOf(l,d);o!==-1&&l.splice(o,1)}},i.getCellsAbove=function(d){for(var l=[],o=i.getColumn(d),n=d.parentNode,p=null;n&&p!==i.firstSelected;)for(p=n.getElementsByTagName("td")[o],l.push(p),n=n.previousSibling;n&&n.tagName!=="TR";)n=n.previousSibling;return l},i.getCellsBelow=function(d){for(var l=[],o=i.getColumn(d),n=d.parentNode,p=null;n&&p!==i.firstSelected;)for(p=n.getElementsByTagName("td")[o],l.push(p),n=n.nextSibling;n&&n.tagName!=="TR";)n=n.nextSibling;return l},i.getColumn=function(d){for(var l=0;d.previousSibling;)d=d.previousSibling,d.tagName==="TD"&&l++;return l},i.gUnload=function(){if(i.registered)for(var d=i.registered,l=0;l<d.length;l++){var o=d[l];o.dispose(),i.unregister(o)}},i.gMouseUp=function(d){if(i.resizing){if(!i.resizingShadow)return i.resizing.style.cursor="default",document.body.style.cursor="default",i.resizing=null,void(e.Global.resizing=null);var l=i.resizing.event,o=i.resizingShadow.clientHeight,n=i.resizingShadow.offsetTop,p=i.resizing.dpBorder;i.deleteShadow(i.resizingShadow),i.resizingShadow=null,i.resizing.style.cursor="default",l.calendar.nav.top.style.cursor="auto",i.resizing.onclick=null,i.resizing=null,e.Global.resizing=null,l.calendar.L(l,o,n,p)}else if(i.moving){if(!i.movingShadow)return i.moving=null,e.Global.moving=null,void(document.body.style.cursor="default");
21var a=i.movingShadow.offsetTop,l=i.moving.event;i.deleteShadow(i.movingShadow),e.Util.removeClass(i.moving,l.calendar.M("_event_moving_source"));var m=i.movingShadow.column;i.moving=null,e.Global.moving=null,i.movingShadow=null,l.calendar.nav.top.style.cursor="auto",l.calendar.N(l,m,a,d)}else if(e.Global.selecting){var h=e.Global.selecting.calendar;h.O=e.Global.selecting,e.Global.selecting=null;var b=h.getSelection();h.P(b.start,b.end,b.resource),h.timeRangeSelectedHandling!=="Hold"&&h.timeRangeSelectedHandling!=="HoldForever"&&r()}else i.selecting=!1},i.deleteShadow=function(d){d&&d.parentNode&&d.parentNode.removeChild(d)},i.moveShadow=function(d){var l=i.movingShadow,o=l.parentNode;o.style.display="none",l.parentNode.removeChild(l),d.firstChild.appendChild(l),l.style.left="0px",o.style.display="",l.style.width=i.movingShadow.parentNode.offsetWidth+1+"px"};var u=e.Util.isVueVNode,f=e.Util.overlaps;i.Calendar=function(d,l){var o=!1;if(this instanceof i.Calendar&&!this.Q&&(o=!0,this.Q=!0),!o)throw"DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";var n=this;this.uniqueID=null,this.isCalendar=!0,this.v="${v}",this.id=d,this.clientName=d,this.cache={},this.cache.pixels={},this.elements={},this.elements.events=[],this.elements.selection=[],this.nav={},this.afterRender=function(){},this.fasterDispose=!0,this.angularAutoApply=!1,this.api=2,this.businessBeginsHour=9,this.businessEndsHour=18,this.cellDuration=30,this.cellHeight=30,this.columnMarginLeft=0,this.columnMarginRight=5,this.columnsLoadMethod="GET",this.contextMenu=null,this.days=1,this.durationBarVisible=!0,this.eventBorderRadius=null,this.eventsLoadMethod="GET",this.headerDateFormat=null,this.headerHeight=30,this.headerTextWrappingEnabled=!1,this.height=300,this.heightSpec="BusinessHours",this.hideUntilInit=!0,this.hourWidth=60,this.initScrollPos="Auto",this.loadingLabelHtml=null,this.loadingLabelText="Loading...",this.loadingLabelVisible=!0,this.locale="en-us",this.rtl=!1,this.snapToGrid=!0,this.showToolTip=!0,this.startDate=new e.Date().getDatePart(),this.cssClassPrefix="calendar_default",this.theme=null,this.timeFormat="Auto",this.useEventBoxes="Always",this.viewType="Days",this.visible=!0,this.xssProtection="Enabled",this.headerClickHandling="Enabled",this.eventClickHandling="Enabled",this.eventResizeHandling="Update",this.eventRightClickHandling="ContextMenu",this.eventMoveHandling="Update",this.eventDeleteHandling="Disabled",this.timeRangeSelectedHandling="Enabled",this.onBeforeCellRender=null,this.onBeforeEventRender=null,this.onBeforeHeaderRender=null,this.onEventClick=null,this.onEventClicked=null,this.onEventDelete=null,this.onEventDeleted=null,this.onEventMove=null,this.onEventMoved=null,this.onEventResize=null,this.onEventResized=null,this.onEventRightClick=null,this.onEventRightClicked=null,this.onHeaderClick=null,this.onHeaderClicked=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.R=!1,this.S={};var p=this.S;this.clearSelection=function(){i.topSelectedCell=null,i.bottomSelectedCell=null,this.T()},this.T=function(){e.de(n.elements.selection),n.elements.selection=[],n.nav.activeSelection=null},this.U=function(a,m,h){var b={};b.action=a,b.parameters=h,b.data=m,b.header=this.V();var s="JSON"+JSON.stringify(b);__doPostBack(n.uniqueID,s)},this.W=function(a,m,h){this.callbackTimeout&&window.clearTimeout(this.callbackTimeout),this.callbackTimeout=window.setTimeout(function(){n.loadingStart()},100);var b={};b.action=a,b.parameters=h,b.data=m,b.header=this.V();var s="JSON"+JSON.stringify(b);this.backendUrl?e.request(this.backendUrl,this.X,s,this.ajaxError):typeof WebForm_DoCallback=="function"&&WebForm_DoCallback(this.uniqueID,s,this.Y,this.clientName,this.onCallbackError,!0)},this.onCallbackError=function(a,m){alert(`Error!\r 22Result: `+a+`\r 23Context:`+m)},this.dispose=function(){var a=n;a.R||(a.R=!0,clearInterval(a.Z),a._(),a.nav.scroll.root=null,e.pu(a.nav.loading),a.aa(),a.ba(),a.nav.select=null,a.nav.cornerRight=null,a.nav.scrollable=null,a.nav.zoom=null,a.nav.loading=null,a.nav.header=null,a.nav.hourTable=null,a.nav.scrolltop=null,a.nav.scroll.onscroll=null,a.nav.scroll=null,a.nav.main=null,a.nav.message=null,a.nav.messageClose=null,a.nav.top=null,i.unregister(a))},this.disposed=function(){return this.R},this.ca=function(){this.nav.top.dispose=this.dispose},this.X=function(a){n.Y(a.responseText)},this.V=function(){var a={};return a.control="dpc",a.id=this.id,a.v=this.v,a.days=n.days,a.startDate=n.startDate,a.heightSpec=n.heightSpec,a.businessBeginsHour=n.businessBeginsHour,a.businessEndsHour=n.businessEndsHour,a.hashes=n.hashes,a.timeFormat=n.timeFormat,a.viewT
23ype=n.viewType,a.locale=n.locale,a},this.da=function(a){for(var m=a.parentNode;m&&m.tagName!=="TD";)m=m.parentNode;var h=n.eventBorderRadius;typeof h=="number"&&(h+="px");var b=document.createElement("div");b.setAttribute("unselectable","on"),b.style.position="absolute",b.style.width=a.offsetWidth+"px",b.style.height=a.offsetHeight+"px",b.style.left=a.offsetLeft+"px",b.style.top=a.offsetTop+"px",b.style.boxSizing="border-box",b.style.zIndex=101,b.className=n.M("_shadow");var s=document.createElement("div");return s.className=n.M("_shadow_inner"),h&&(s.style.borderRadius=h,b.style.borderRadius=h),b.appendChild(s),m.firstChild.appendChild(b),b},this.S.locale=function(){var a=e.Locale.find(n.locale);return a||e.Locale.US},this.S.timeFormat=function(){return n.timeFormat!=="Auto"?n.timeFormat:this.locale().timeFormat},this.S.ea=function(){return n.xssProtection!=="Disabled"},this.S.fa=function(){if(n.weekStarts==="Auto"){var a=p.locale();return a?a.weekStarts:0}return n.weekStarts||0},this.S.ga=function(){var a=n.cellDuration;if(a<=1)return 1;if(a>=60)return 60;var m=[1,2,3,4,5,6,10,12,15,20,30,60],h=Math.floor(a);return Math.max.apply(null,m.filter(function(b){return b<=h}))},this.Y=function(a){if(a&&a.indexOf("$$$")===0){if(!window.console)throw"Error received from the server side: "+a;return void console.log("Error received from the server side: "+a)}var m=JSON.parse(a);if(m.CallBackRedirect)return void(document.location.href=m.CallBackRedirect);if(m.UpdateType==="None")return n.loadingStop(),void n.z();if(n._(),m.UpdateType==="Full"&&(n.columns=m.Columns,n.days=m.Days,n.startDate=new e.Date(m.StartDate),n.heightSpec=m.HeightSpec?m.HeightSpec:n.heightSpec,n.businessBeginsHour=m.BusinessBeginsHour?m.BusinessBeginsHour:n.businessBeginsHour,n.businessEndsHour=m.BusinessEndsHour?m.BusinessEndsHour:n.businessEndsHour,n.headerDateFormat=m.HeaderDateFormat?m.HeaderDateFormat:n.headerDateFormat,n.viewType=m.ViewType,n.backColor=m.BackColor?m.BackColor:n.backColor,n.eventHeaderVisible=m.EventHeaderVisible?m.EventHeaderVisible:n.eventHeaderVisible,n.timeFormat=m.TimeFormat?m.TimeFormat:n.timeFormat,n.locale=m.Locale?m.Locale:n.locale,n.ha()),m.Hashes)for(var h in m.Hashes)n.hashes[h]=m.Hashes[h];n.events.list=m.Events,n.ia(),n.ja(),m.UpdateType==="Full"&&(n.ka(),n.la(),n.ma(),n.na()),n.z(),n.oa(),n.clearSelection(),n.afterRender(m.CallBackData,!0),n.loadingStop()},this.pa=function(){return this.qa()/36e5},this.ra=function(){return this.businessBeginsHour>this.businessEndsHour?24-this.businessBeginsHour+this.businessEndsHour:this.businessEndsHour-this.businessBeginsHour},this.sa=function(){return this.qa()/(60*p.ga()*1e3)},this.qa=function(){var a=0;return a=this.heightSpec==="BusinessHoursNoScroll"?this.ra():24,60*a*60*1e3},this.ta=function(){return this.heightSpec==="BusinessHoursNoScroll"?this.businessBeginsHour:0},this.va=function(){return n.api===2},this.eventClickCallBack=function(a,m){this.W("EventClick",m,a)},this.eventClickPostBack=function(a,m){this.U("EventClick",m,a)},this.wa=function(a){var m=a.currentTarget,h=m.event;if(h.client.clickEnabled())if(n.va()){var b={};if(b.e=h,b.originalEvent=a,b.meta=a.metaKey,b.ctrl=a.ctrlKey,b.control=n,b.preventDefault=function(){this.preventDefault.value=!0},typeof n.onEventClick=="function"&&(n.xa.apply(function(){n.onEventClick(b)}),b.preventDefault.value))return;switch(n.eventClickHandling){case"CallBack":n.eventClickCallBack(h);break;case"PostBack":n.eventClickPostBack(h);break;case"ContextMenu":var s=h.client.contextMenu();s?s.show(h):n.contextMenu&&n.contextMenu.show(h)}typeof n.onEventClicked=="function"&&n.xa.apply(function(){n.onEventClicked(b)})}else switch(n.eventClickHandling){case"PostBack":n.eventClickPostBack(h);break;case"CallBack":n.eventClickCallBack(h);break;case"JavaScript":n.onEventClick(h)}},this.ya=function(a){var m=a.currentTarget.event;if(a.stopPropagation(),!m.client.rightClickEnabled())return!1;var h={};if(h.e=m,h.preventDefault=function(){this.preventDefault.value=!0},typeof n.onEventRightClick=="function"&&(n.onEventRightClick(h),h.preventDefault.value))return!1;if(n.eventRightClickHandling==="ContextMenu"){var b=m.client.contextMenu();b?b.show(m):n.contextMenu&&n.contextMenu.show(m)}return typeof n.onEventRightClicked=="function"&&n.onEventRightClicked(h),a.preventDefault&&a.preventDefault(),!1}
23,this.eventDeleteCallBack=function(a,m){this.W("EventDelete",m,a)},this.eventDeletePostBack=function(a,m){this.U("EventDelete",m,a)},this.za=function(a){if(n.va()){var m={};if(m.e=a,m.control=n,m.preventDefault=function(){this.preventDefault.value=!0},typeof n.onEventDelete=="function"&&(n.xa.apply(function(){n.onEventDelete(m)}),m.preventDefault.value))return;switch(n.eventDeleteHandling){case"CallBack":n.eventDeleteCallBack(a);break;case"PostBack":n.eventDeletePostBack(a);break;case"Update":n.events.remove(a)}typeof n.onEventDeleted=="function"&&n.xa.apply(function(){n.onEventDeleted(m)})}else switch(n.eventDeleteHandling){case"PostBack":n.eventDeletePostBack(a);break;case"CallBack":n.eventDeleteCallBack(a);break;case"JavaScript":n.onEventDelete(a)}},this.eventResizeCallBack=function(a,m,h,b){if(!m)throw"newStart is null";if(!h)throw"newEnd is null";var s={};s.e=a,s.newStart=m,s.newEnd=h,this.W("EventResize",b,s)},this.eventResizePostBack=function(a,m,h,b){if(!m)throw"newStart is null";if(!h)throw"newEnd is null";var s={};s.e=a,s.newStart=m,s.newEnd=h,this.U("EventResize",b,s)},this.L=function(a,m,h,b){var s=0,c=new Date,v=new Date;if(b==="top"?(c=n.Aa(a,h-s),v=a.end()):b==="bottom"&&(c=a.start(),v=n.Ba(a,h+m-s)),n.va()){var g={};if(g.e=a,g.control=n,g.newStart=c,g.newEnd=v,g.preventDefault=function(){this.preventDefault.value=!0},typeof n.onEventResize=="function"&&(n.xa.apply(function(){n.onEventResize(g)}),g.preventDefault.value))return;switch(n.eventResizeHandling){case"PostBack":n.eventResizePostBack(a,c,v);break;case"CallBack":n.eventResizeCallBack(a,c,v);break;case"Update":a.start(c),a.end(v),n.events.update(a)}typeof n.onEventResized=="function"&&n.xa.apply(function(){n.onEventResized(g)})}else switch(n.eventResizeHandling){case"PostBack":n.eventResizePostBack(a,c,v);break;case"CallBack":n.eventResizeCallBack(a,c,v);break;case"JavaScript":n.onEventResize(a,c,v)}},this.Aa=function(a,m){var h=n.Ca[a.part.dayIndex].start,b=Math.floor(m/n.cellHeight);n.snapToGrid||(b=m/n.cellHeight);var s=Math.floor(b*p.ga()),c=60*s*1e3;return h.addTime(c+0)},this.Ba=function(a,m){var h=Math.floor(m/n.cellHeight);n.snapToGrid||(h=m/n.cellHeight);var b=Math.floor(h*p.ga()),s=60*b*1e3;return n.Ca[a.part.dayIndex].start.addTime(s+0)},this.eventMovePostBack=function(a,m,h,b,s){if(!m)throw"newStart is null";if(!h)throw"newEnd is null";var c={};c.e=a,c.newStart=m,c.newEnd=h,this.U("EventMove",s,c)},this.eventMoveCallBack=function(a,m,h,b,s){if(!m)throw"newStart is null";if(!h)throw"newEnd is null";var c={};c.e=a,c.newStart=m,c.newEnd=h,this.W("EventMove",s,c)},this.N=function(a,m,h,b){var s=0,c=Math.floor((h-s)/n.cellHeight);n.snapToGrid||(c=(h-s)/n.cellHeight);var v=p.ga(),g=c*v*60*1e3,y=a.start(),_=a.end(),w=new Date;y instanceof e.Date&&(y=y.toDate()),w.setTime(Date.UTC(y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate()));var S=y.getTime()-(w.getTime()+3600*y.getUTCHours()*1e3+Math.floor(y.getUTCMinutes()/v)*v*60*1e3);n.useEventBoxes==="Never"&&(S=0);var E=_.getTime()-y.getTime(),T=this.Ca[m],C=T.id;n.snapToGrid||(S=0);var N=T.start.getTime(),B=new Date;B.setTime(N+g+S);var M=new e.Date(B),L=M.addTime(E);if(n.va()){var I={};if(I.e=a,I.newStart=M,I.newEnd=L,I.newResource=C,I.ctrl=b.ctrlKey,I.shift=b.shiftKey,I.control=n,I.preventDefault=function(){this.preventDefault.value=!0},typeof n.onEventMove=="function"&&(n.xa.apply(function(){n.onEventMove(I)}),I.preventDefault.value))return;switch(n.eventMoveHandling){case"PostBack":n.eventMovePostBack(a,M,L,T.id);break;case"CallBack":n.eventMoveCallBack(a,M,L,T.id);break;case"Update":a.start(M),a.end(L),a.resource(C),n.events.update(a)}typeof n.onEventMoved=="function"&&n.xa.apply(function(){n.onEventMoved(I)})}else switch(n.eventMoveHandling){case"PostBack":n.eventMovePostBack(a,M,L,T.id);break;case"CallBack":n.eventMoveCallBack(a,M,L,T.id);break;case"JavaScript":n.onEventMove(a,M,L,T.id,!1)}},this.timeRangeSelectedPostBack=function(a,m,h,b){var s={};s.start=a,s.end=m,this.U("TimeRangeSelected",b,s)},this.timeRangeSelectedCallBack=function(a,m,h,b){var s={};s.start=a,s.end=m,this.W("TimeRangeSelected",b,s)},this.P=function(a,m,h){if(a=new e.Date(a),m=new e.Date(m),this.va()){var b={};if(b.start=a,b.end=m,b.resource=h,b.control=n,b.preventDefault=function(){this.preventDefault.value=!0},typeof n.onTimeRangeSelect=="function"&&(n.xa.apply(function(){n.onTimeRangeSelect(b)}),b.preventDefault.value))return;switch(n.timeRangeSelectedHandling){case"PostBack":n.timeRangeSelectedPostBack(a,m);break;case"CallBack":n.timeRangeSelectedCallBack(a,m)}typeof n.onTimeRangeSelected=="function"&&n.xa.apply(function(){n.onTimeRangeSelected(b)})}else switch(n.timeRangeSelectedHandling){case"PostBack":n.timeRangeSelectedPostBack(a,m);break;case"CallBack":n.timeRangeSelectedCallBack(a,m);break;case"JavaScript":n.onTimeRangeSelected(a,m)}}
23,this.Da=function(a){if(!e.Global.selecting&&n.timeRangeSelectedHandling!=="Disabled"){var m=a.which;if(m===1||m===0){var h=n.nav.scrollable;n.coords=e.mo3(h,a),e.Global.selecting={calendar:n,start:n.coords};var b=e.Global.selecting;return b.start.time=n.Ea(n.coords.x,n.coords.y),b.start.columnIndex=n.Fa(n.coords.x),b.start.column=n.Ca[b.start.columnIndex],n.Ga(),n.Ha(),!1}}},this.Ha=function(){var a=e.Global.selecting;(function(){var m=a.start.column,h=a.start.columnIndex,b=m.start,s=n.getPixels(a.startTime,b),c=n.getPixels(a.endTime,b),v=s.boxTop,g=c.boxBottom;n.snapToGrid||(v=s.top,g=c.top);var y=g-v,_=n.eventBorderRadius;typeof _=="number"&&(_+="px");var w=(function(){if(n.nav.activeSelection)return n.nav.activeSelection;var S=document.createElement("div");S.setAttribute("unselectable","on"),S.style.position="absolute",S.style.left="0px",S.style.width="100%";var E=document.createElement("div");return E.setAttribute("unselectable","on"),E.className=n.M("_shadow_inner"),_&&(E.style.borderRadius=_,S.style.borderRadius=_),S.appendChild(E),n.nav.events.rows[0].cells[h].selection.appendChild(S),n.elements.selection.push(S),n.nav.activeSelection=S,S})();w.className=n.M("_shadow"),w.firstChild.innerHTML="",w.style.top=v+"px",w.style.height=y+"px",n.nav.events.rows[0].cells[h].selection.appendChild(w)})()},this.Ga=function(){var a=e.Global.selecting;a.end=n.coords,a.end.time=n.Ea(a.start.x,a.end.y),a.end.column=n.Ca[n.Fa(a.end.x)],n.Ia(a)},this.Ia=function(a){var m,h,b;n.snapToGrid?a.end.time<a.start.time?(m=n.Ja(a.end.time,a.start.column.start),h=n.Ka(a.start.time,a.start.column.start),b=a.endTime):(m=n.Ja(a.start.time,a.start.column.start),h=n.Ka(a.end.time,a.start.column.start),b=a.startTime):a.end.time<a.start.time?(m=a.end.time,h=a.start.time,b=a.endTime):(m=a.start.time,h=a.end.time,b=a.startTime),a.startTime=m,a.endTime=h,a.anchor=b},this.getSelection=function(){if(!n.O)return null;var a=n.O;return new e.Selection(a.startTime,a.endTime,a.start.column.id,n)},this.Fa=function(a){if(a<0)return 0;n.rtl?a=n.nav.main.offsetWidth-a:a-=n.hourWidth;for(var m=0,h=n.nav.events.rows[0].cells,b=0;b<h.length;b++)if(m+=h[b].offsetWidth,a<m)return b;return null},this.Ea=function(a,m){a=e.Util.atLeast(a,0);var h=this.Fa(a),b=m/(60/p.ga())/n.cellHeight,s=60*b*60*1e3,c=6e4*Math.floor(s/6e4),v=this.Ca[h];return v?v.start.addTime(c):null},this.Ja=function(a,m){var h=a.getTime();m&&(h-=m.getTime());var b=60*p.ga()*1e3,s=h%b;return a.addTime(-s)},this.Ka=function(a,m){var h=this.Ja(a,m);return h.getTime()===a.getTime()?h:h.addTime(60*p.ga()*1e3)},this.La={},this.La.getCellCoords=function(){var a={};if(a.x=0,a.y=0,!n.coords)return null;a.x=n.Fa(n.coords.x);var m=0,h=Math.floor((n.coords.y-m)/n.cellHeight);return a.y=h,a.x<0?null:a},this.columns={},this.columns.list=[],this.columns.load=function(a,m,h){if(!a)throw new e.Exception("columns.load(): 'url' parameter required");var b=function(c){var v={};v.exception=c.exception,v.request=c.request,typeof h=="function"&&h(v)},s=function(c){var v,g=c.request;try{v=JSON.parse(g.responseText)}catch(w){var y={};return y.exception=w,void b(y)}if(e.isArray(v)){var _={};if(_.preventDefault=function(){this.preventDefault.value=!0},_.data=v,typeof m=="function"&&m(_),_.preventDefault.value)return;n.columns.list=v,n.Ma&&n.update()}};n.columnsLoadMethod&&n.columnsLoadMethod.toUpperCase()==="POST"?e.ajax({method:"POST",url:a,success:s,error:b}):e.ajax({method:"GET",url:a,success:s,error:b})},this.ha=function(){var a;a=n.viewType!=="Resources"?this.Na():n.columns.list,this.Ca=[];for(var m=0;m<a.length;m++){var h=this.Oa(a[m]);this.Ca.push(h)}},this.Oa=function(a){var m={};if(m.name=a.name,m.html=a.html,m.id=a.id,m.toolTip=a.toolTip,m.data=a,a.start?m.start=new e.Date(a.start):m.start=new e.Date(n.startDate),this.heightSpec==="BusinessHoursNoScroll"){var h=m.start.getDatePart();m.start=h.addHours(this.businessBeginsHour)}return m.putIntoBlock=function(b){for(var s=0;s<this.blocks.length;s++){var c=this.blocks[s];if(c.overlapsWith(b.part.top,b.part.height))return c.events.push(b),c.min=Math.min(c.min,b.part.top),c.max=Math.max(c.max,b.part.top+b.part.height),s}var v=[];return v.lines=[],v.events=[],v.overlapsWith=function(g,y){return!(g+y-1<this.min||g>this.max-1)},v.putIntoLine=function(g){for(var y=0;y<this.lines.length;y++){var _=this.lines[y];if(_.isFree(g.part.top,g.part.height))return _.push(g),y}var w=[];return w.isFree=function(S,E){for(var T=S+E-1,C=this.length,N=0;N<C;N++){var B=this[N];if(!(T<B.part.top||S>B.part.top+B.part.height-1))return!1}return!0},w.push(g),this.lines.push(w),this.lines.length-1},v.events.push(b),v.min=b.part.top,v.max=b.part.top+b.part.height,this.blocks.push(v),this.blocks.length-1},m.putIntoLine=function(b){for(var s=0;s<this.lines.length;s++){var c=this.lines[s];if(c.isFree(b.part.top,b.part.height))return c.push(b),s}var v=[];return v.isFree=function(g,y){for(var _=g+y-1,w=this.length,S=0;S<w;S++){var E=this[S];if(!(_<E.part.top||g>E.part.top+E.part.height-1))return!1}return!0},v.push(b),this.lines.push(v),this.lines.length-1},m},this.Na=function(){var a=[],m=this.startDate.getDatePart(),h=this.days;
23switch(this.viewType){case"Day":h=1;break;case"Week":h=7;var b=p.fa();m=m.firstDayOfWeek(b);break;case"WorkWeek":h=5,m=m.firstDayOfWeek(1)}for(var s=0;s<h;s++){var c=n.headerDateFormat?n.headerDateFormat:p.locale().datePattern,v={};v.start=m.addDays(s),v.name=v.start.toString(c,p.locale()),a.push(v)}return a},this.visibleStart=function(){if(n.viewType==="Resources"){if(n.Ca.length===0)return e.Date.today();var a=n.Ca.map(function(h){return h.start.getTime()}),m=Math.min.apply(null,a);return new e.Date(m)}return this.Ca[0].start},this.visibleEnd=function(){if(n.viewType==="Resources"){if(n.Ca.length===0)return e.Date.today().addDays(1);var a=n.Ca.map(function(b){return b.start.getTime()}),m=Math.max.apply(null,a);return new e.Date(m).addDays(1)}var h=this.Ca.length-1;return this.Ca[h].start.addDays(1)},this.M=function(a){var m=this.theme||this.cssClassPrefix;return m?m+a:""},this._=function(){if(this.elements.events)for(var a=0;a<this.elements.events.length;a++){var m=this.elements.events[a];n.Pa(m)}this.elements.events=[]},this.Pa=function(a){(function(){var b=a.domArgs;if(a.domArgs=null,b&&typeof n.onBeforeEventDomRemove=="function"&&n.onBeforeEventDomRemove(b),b&&typeof n.onBeforeEventDomAdd=="function"){var s=b&&b.Qa;s&&n.Sa.Ra&&u(b.element)&&(n.Sa.Ta=!0,n.Sa.Ua(s),n.Sa.Ta=!1)}})();var m=a.event;if(m&&(m.calendar=null),a.onclick=null,a.onclickSave=null,a.onmouseover=null,a.onmouseout=null,a.onmousemove=null,a.onmousedown=null,a.firstChild&&a.firstChild.firstChild&&a.firstChild.firstChild.tagName&&a.firstChild.firstChild.tagName.toUpperCase()==="IMG"){var h=a.firstChild.firstChild;h.onmousedown=null,h.onmousemove=null,h.onclick=null}a.helper=null,a.data=null,a.event=null,e.de(a)},this.Va=function(a){var m=a.cache||a.data,h=this.nav.events,b=m.borderRadius||n.eventBorderRadius;typeof b=="number"&&(b+="px");var s=document.createElement("div");s.style.position="absolute",s.style.left=a.part.left+"%",s.style.top=a.part.top+"px",s.style.width=a.part.width+"%",s.style.height=Math.max(a.part.height,2)+"px",s.style.overflow="hidden",s.data=a,s.event=a,s.unselectable="on",s.style.MozUserSelect="none",s.style.KhtmlUserSelect="none",s.className=this.M("_event"),m.cssClass&&e.Util.addClass(s,m.cssClass),n.showToolTip&&a.client.toolTip()&&(s.title=a.client.toolTip()),s.isFirst=a.part.start.getTime()===a.start().getTime(),s.isLast=a.part.end.getTime()===a.end().getTime(),s.onclick=this.wa,e.re(s,"contextmenu",this.ya),s.onmouseout=function(){s.deleteIcon&&(s.deleteIcon.style.display="none")},s.onmousemove=function(C){var N=5;if(typeof i<"u"){var B=e.mo3(s,C);if(B&&!i.resizing&&!i.moving){s.deleteIcon&&(s.deleteIcon.style.display="");var M=this.isLast;B.y<=N&&a.client.resizeEnabled()?(this.style.cursor="n-resize",this.dpBorder="top"):this.offsetHeight-B.y<=N&&a.client.resizeEnabled()?M?(this.style.cursor="s-resize",this.dpBorder="bottom"):this.style.cursor="not-allowed":i.resizing||i.moving||(n.eventClickHandling!=="Disabled"?this.style.cursor="pointer":this.style.cursor="default")}}},s.onmousedown=function(C){var N=C.which||C.button;if(this.style.cursor!=="n-resize"&&this.style.cursor!=="s-resize"||N!==1){if(N===1&&a.client.moveEnabled()){i.moving=this,e.Global.moving=this,i.moving.event=this.event;var B=i.moving.helper={};B.oldColumn=n.Ca[this.data.part.dayIndex].id,i.originalMouse=e.mc(C),i.originalTop=this.offsetTop;var M=e.mo3(this,C);M?i.moveOffsetY=M.y:i.moveOffsetY=0,n.nav.top.style.cursor="move"}}else i.resizing=this,e.Global.resizing=this,i.originalMouse=e.mc(C),i.originalHeight=this.offsetHeight,i.originalTop=this.offsetTop,n.nav.top.style.cursor=this.style.cursor;return!1};var c=document.createElement("div");if(c.setAttribute("unselectable","on"),c.className=n.M("_event_inner"),m.borderColor==="darker"&&m.backColor?c.style.borderColor=e.ColorUtil.darker(m.backColor,2):c.style.borderColor=m.borderColor,m.backColor&&(c.style.background=m.backColor),m.fontColor&&(c.style.color=m.fontColor),b&&(s.style.borderRadius=b,c.style.borderRadius=b),s.appendChild(c),a.client.barVisible()){var v=a.part.height-2,g=100*a.part.barTop/v,y=Math.ceil(100*a.part.barHeight/v),_=document.createElement("div");_.setAttribute("unselectable","on"),_.className=this.M("_event_bar"),_.style.position="absolute",m.barBackColor&&(_.style.backgroundColor=m.barBackColor);var w=document.createElement("div");w.setAttribute("unselectable","on"),w.className=this.M("_event_bar_inner"),w.style.top=g+"%",0<y&&y<=1?w.style.height="1px":w.style.height=y+"%",m.barColor&&(w.style.backgroundColor=m.barColor),_.a
23ppendChild(w),s.appendChild(_)}if(a.client.deleteEnabled()){var S=document.createElement("div");S.style.position="absolute",S.style.right="2px",S.style.top="2px",S.style.width="17px",S.style.height="17px",S.className=n.M("_event_delete"),S.onmousedown=function(C){C.stopPropagation()},S.onclick=function(C){C.stopPropagation();var N=this.parentNode.event;N&&n.za(N)},S.style.display="none",s.deleteIcon=S,s.appendChild(S)}var E=m.areas?e.Areas.copy(m.areas):[];if(e.Areas.attach(s,a,{areas:E}),typeof n.onAfterEventRender=="function"){var T={};T.e=s.event,T.div=s,n.onAfterEventRender(T)}(function(){var C={};if(C.control=n,C.e=a,C.element=null,s.domArgs=C,typeof n.onBeforeEventDomAdd=="function"&&n.onBeforeEventDomAdd(C),C.element){var N=c;if(N)if(C.Qa=N,u(C.element)){if(!n.Sa.Ra)throw new e.Exception("Can't reach Vue");n.Sa.Ta=!0,n.Sa.Wa(C.element,N),n.Sa.Ta=!1}else N.appendChild(C.element)}else c.innerHTML=a.client.innerHTML()})(),h.rows[0].cells[a.part.dayIndex]&&h.rows[0].cells[a.part.dayIndex].firstChild.appendChild(s),n.elements.events.push(s)},this.oa=function(){for(var a=0;a<this.Ca.length;a++){var m=this.Ca[a];if(m.blocks)for(var h=0;h<m.blocks.length;h++)for(var b=m.blocks[h],s=0;s<b.lines.length;s++)for(var c=b.lines[s],v=0;v<c.length;v++){var g=c[v];g.part.width=100/b.lines.length,g.part.left=g.part.width*s;var y=s===b.lines.length-1;y||(g.part.width=1.5*g.part.width),this.Va(g)}}},this.Xa=function(){var a=this.nav.top;a.innerHTML="",e.Util.addClass(a,this.M("_main")),a.style.MozUserSelect="none",a.style.KhtmlUserSelect="none",a.style.position="relative",a.style.width=this.width?this.width:"100%",this.hideUntilInit&&(a.style.visibility="hidden"),this.visible||(a.style.display="none"),this.rtl&&(a.style.direction="rtl"),this.nav.scroll=document.createElement("div"),this.nav.scroll.style.height=this.Ya()+"px",this.heightSpec==="BusinessHours"?this.nav.scroll.style.overflow="auto":this.nav.scroll.style.overflow="hidden",this.nav.scroll.style.position="relative";var m=this.Za();this.nav.top.appendChild(m),this.nav.scroll.style.zoom=1;var h=this.$a();this.nav.scrollable=h.firstChild,this.nav.scroll.appendChild(h),a.appendChild(this.nav.scroll),this.nav.scrollLayer=document.createElement("div"),this.nav.scrollLayer.style.position="absolute",this.nav.scrollLayer.style.top="0px",this.nav.scrollLayer.style.left="0px",a.appendChild(this.nav.scrollLayer),this.nav.loading=document.createElement("div"),this.nav.loading.style.position="absolute",this.nav.loading.style.top="0px",this.nav.loading.style.left=this.hourWidth+5+"px",this.nav.loading.innerHTML=n._a(n.loadingLabelText,n.loadingLabelHtml),this.nav.loading.style.display="none",a.appendChild(this.nav.loading)},this.ma=function(){this.fasterDispose||e.pu(this.nav.hourTable),this.nav.scrollable.rows[0].cells[0].innerHTML="",this.nav.hourTable=this.ab(),this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable)},this.$a=function(){var a=document.createElement("div");a.style.zoom=1,a.style.position="relative";var m=document.createElement("table");m.cellSpacing="0",m.cellPadding="0",m.border="0",m.style.border="0px none",m.style.width="100%",m.style.position="absolute";var h,b=m.insertRow(-1);h=b.insertCell(-1),h.valign="top",h.style.padding="0px",h.style.border="0px none",this.nav.hourTable=this.ab(),h.appendChild(this.nav.hourTable),h=b.insertCell(-1),h.valign="top",h.width="100%",h.style.padding="0px",h.style.border="0px none";var s=document.createElement("div");return s.style.position="relative",h.appendChild(s),s.appendChild(this.bb()),s.appendChild(this.cb()),a.appendChild(m),this.nav.zoom=a,a},this.bb=function(){var a=document.createElement("table");return a.cellPadding="0",a.cellSpacing="0",a.border="0",a.style.width="100%",a.style.border="0px none",a.style.tableLayout="fixed",this.nav.main=a,this.nav.events=a,a},this.cb=function(){var a=document.createElement("table");a.style.top="0px",a.cellPadding="0",a.cellSpacing="0",a.border="0",a.style.position="absolute",a.style.width="100%",a.style.border="0px none",a.style.tableLayout="fixed",this.nav.events=a;for(var m=this.Ca,h=m.length,b=a.insertRow(-1),s=0;s<h;s++){var c=b.insertCell(-1);c.style.padding="0px",c.style.border="0px none",c.style.height="0px",c.style.overflow="visible",n.rtl||(c.style.textAlign="left");var v=document.createElement("div");v.style.marginRight=n.columnMarginRight+"px",v.style.marginLeft=n.columnMarginLeft+"px",v.style.position="relative",v.style.height="1px",v.style.marginTop="-1px";var g=document.createElement("div");c.selection=g,c.appendChild(v),c.appendChild(g)}return a},this.ab=function(){var a=document.createElement("table");a.cellSpacing="0",a.cellPadding="0",a.border="0",a.style.border="0px none",a.style.width=this.hourWidth+"px",a.oncontextmenu=function(){return!1};for(var m=n.pa(),h=0;h<m;h++)this.db(a,h);return a},this.db=function(a,m){var h=60*n.cellHeight/p.ga(),b=a.insertRow(-1);b.style.height=h+"px";var s=b.insertCell(-1);s.valign="bottom",s.unselectable="on",s.style.cursor="default",s.style.padding="0px",s.style.border="0px none";var c=document.createElement("div");c.style.position="relative",c.className=this.M("_rowheader"),c.style.width=this.hourWidth+"px",c.style.height=h+"px",c.style.overflow="hidden",c.unselectable="on";var v=document.createElement("div");v.className=this.M("_rowheader_inner"),v.unselectable="on";var g=document.createElement("div");g.unselectable="on";var y=this.startDate.addHours(m).addHours(n.ta()),_=y.getHours(),w=_<12,S=p.timeFormat();S==="Clock12Hours"&&(_%=12,_===0&&(_=12)),g.innerHTML=_;var E=document.createElement("span");E.unselectable="on",E.className=this.M("_rowheader_minutes");var T;T=S==="Clock12Hours"?w?"AM":"PM":"00",E.innerHTML=T,g.appendChild(E),v.appendChild(g),c.appendChild(v),s.appendChild(c)},this.Ya=function(){var a=p.ga(),m=60/a;switch(this.heightSpec){case"Full":return 24*m*this.cellHeight;case"BusinessHours":var h=this.ra();return h*this.cellHeight*m;case"BusinessHoursNoScroll":var h=this.ra();return h*this.cellHeight*m;default:throw"DayPilot.Calendar: Unexpected 'heightSpec' value."}},this.eb=function(){var a=n.nav.corner?n.nav.corner.parentNode:null;if(a){a.innerHTML="";var m=this.fb();a.appendChild(m),n.nav.corner=m}},this.Za=function(){var a=document.createElement("div");a.style.overflow="auto";var m=document.createElement("table");m.cellPadding="0",m.cellSpacing="0",m.border="0",m.style.width="100%",m.style.borderCollapse="separate",m.style.border="0px none";var h=m.insertRow(-1),b=h.insertCell(-1);b.style.padding="0px",b.style.border="0px none";var s=this.fb();b.appendChild(s),this.nav.corner=s,b=h.insertCell(-1),b.style.width="100%",b.valign="top",b.style.position="relative",b.style.padding="0px",b.style.border="0px none",this.nav.header=document.createElement("table"),this.nav.header.cellPadding="0",this.nav.header.cellSpacing="0",this.nav.header.border="0",this.nav.header.width="100%",this.nav.header.style.tableLayout="fixed",this.nav.header.oncontextmenu=function(){return!1};var c=this.nav.scroll.style.overflow!=="hidden";if(b.appendChild(this.nav.header),c){b=h.insertCell(-1),b.unselectable="on";var v=document.createElement("div");v.unselectable="on",v.style.position="relative",v.style.width="16px",v.style.height=this.headerHeight+"px",v.className=this.M("_cornerright");var g=document.createElement("div");g.className=this.M("_cornerright_inner"),v.appendChild(g),b.appendChild(v),this.nav.cornerRight=v}return a.appendChild(m),a},this.fb=function(){var a=document.createElement("div");a.style.position="relative",a.className=this.M("_corner"),a.style.width=this.hourWidth+"px",a.style.height=this.headerHeight+"px",a.oncontextmenu=function(){return!1};var m=document.createElement("div");return m.unselectable="on",m.className=this.M("_corner_inner"),a.appendChild(m),a},this.aa=function(){var a=this.nav.main;a.root=null,a.onmouseup=null;for(var m=0;m<a.rows.length;m++)for(var h=a.rows[m],b=0;b<h.cells.length;b++){var s=h.cells[b];n.gb(s)}this.fasterDispose||e.pu(a)},this.gb=function(a){a&&((function(){var m=a,h=m.domArgs;if(m.domArgs=null,h&&typeof n.onBeforeCellDomRemove=="function"&&n.onBeforeCellDomRemove(h),h&&typeof n.onBeforeCellDomAdd=="function"){var b=h&&h.Qa;b&&n.Sa.Ra&&u(h.element)&&(n.Sa.Ta=!0,n.Sa.Ua(b),n.Sa.Ta=!1)}})(),a.root=null,a.onmousedown=null,a.onmousemove=null,a.onmouseout=null,a.onmouseup=null)},this.la=function(){var a=p.ga(),m=this.nav.main,h=60*a*1e3,b=this.sa(),s=n.Ca;for(m&&this.aa();m&&m.rows&&m.rows.length>0;)this.fasterDispose||e.pu(m.rows[0]),m.deleteRow(0);this.tableCreated=!0;for(var c=this.nav.events;c&&c.rows&&c.rows.length>0;)this.fasterDispose||e.pu(c.rows[0]),c.deleteRow(0);for(var v=s.length,g=c.insertRow(-1),y=0;y<v;y++){var _=g.insertCell(-1);_.style.padding="0px",_.style.border="0px none",_.style.height="0px",_.style.overflow="visible",n.rtl||(_.style.textAlign="left");var w=document.createElement("div");w.style.marginRight=n.columnMarginRight+"px",w.style.marginLeft=n.columnMarginLeft+"px",w.style.position="relative",w.style.height="1px",w.style.marginTop="-1px";var S=document.createElement("div");S.style.position="relative",_.selection=S,_.appendChild(w),_.appendChild(S)}for(var E=0;E<b;E++){var T=m.insertRow(-1);T.style.MozUserSelect="none",T.style.KhtmlUserSelect="none";for(var C=function(M){var L=N.Ca[M],I=T.insertCell(-1);I.start=L.start.addTime(E*h),I.end=I.start.addTime(h),I.resource=L.id,I.onmousedown=N.Da,I.onmouseup=function(){return!1},I.onclick=function(){return!1},I.root=N,I.style.padding="0px",I.style.border="0px none",I.style.verticalAlign="top",I.style.height=n.cellHeight+"px",I.style.overflow="hidden",I.unselectable="on";var $=document.createElement("div");$.unselectable="on",$.style.height=n.cellHeight+"px",$.style.position="relative",$.className=N.M("_cell");var O=N.hb(I.start,I.end),H={business:O,text:null,html:null,cssClass:null,backColor:null,backImage:null,backRepeat:null,fontColor:null},D={start:I.start,end:I.end,resource:I.resource,properties:H,x:M,y:E};(function(){if(typeof n.onBeforeCellRender=="function"){var A={};A.cell=D,n.onBeforeCellRender(A)}})(),H.business&&e.Util.addClass($,n.M("_cell_business")),H.cssClass&&e.Util.addClass($,H.cssClass);var R=document.createElement("div");R.setAttribute("unselectable","on"),R.className=N.M("_cell_inner");var z=e.Util.escapeTextHtml(H.text,H.html);z&&(R.innerHTML=z),H.backColor&&(R.style.backgroundColor=H.backColor),H.backImage&&(R.style.backgroundImage="url("+H.backImage+")"),H.backRepeat&&(R.style.backgroundRepeat=H.backRepeat),H.fontColor&&(R.style.color=H.fontColor),$.appendChild(R),(function(){if(typeof n.onBeforeCellDomAdd=="function"||typeof n.onBeforeCellDomRemove=="function"){var A={};if(A.control=n,A.cell=D,A.element=null,I.domArgs=A,typeof n.onBeforeCellDomAdd=="function"&&n.onBeforeCellDomAdd(A),A.element){var X=R;if(X)if(A.Qa=X,u(A.element)){if(!n.Sa.Ra)throw new e.Exception("Can't reach Vue");n.Sa.Ta=!0,n.Sa.Wa(A.element,X),n.Sa.Ta=!1}else X.appendChild(A.element)}}})(),I.appendChild($)},N=this,y=0;y<v;y++)C(y)}m.root=this,n.nav.scrollable.onmousemove=function(B){var M=n.nav.scrollable;
23n.coords=e.mo3(M,B);var L=e.mc(B);if(i.resizing){i.resizingShadow||(i.resizingShadow=n.da(i.resizing,!1,n.shadow));var I=n.cellHeight,$=0,O=L.y-i.originalMouse.y;if(i.resizing.dpBorder==="bottom"){var H=i.originalHeight+O;n.snapToGrid&&(H=Math.floor((i.originalHeight+i.originalTop+O+I/2)/I)*I-i.originalTop+$),H<I&&(H=I);var D=n.nav.main.clientHeight;i.originalTop+H>D&&(H=D-i.originalTop),i.resizingShadow.style.height=H+"px"}else if(i.resizing.dpBorder==="top"){var R=i.originalTop+O;n.snapToGrid&&(R=Math.floor((i.originalTop+O-$+I/2)/I)*I+$),R<$&&(R=$),R>i.originalTop+i.originalHeight-I&&(R=i.originalTop+i.originalHeight-I);var H=i.originalHeight-(R-i.originalTop);H<I?H=I:i.resizingShadow.style.top=R+"px",i.resizingShadow.style.height=H+"px"}}else if(i.moving){if(!n.coords)return;if(!i.movingShadow){var z=3,A=e.mc(B),X=Math.abs(A.x-i.originalMouse.x)+Math.abs(A.y-i.originalMouse.y);if(X<=z)return;i.movingShadow=n.da(i.moving,!0,n.shadow),i.movingShadow.style.width=i.movingShadow.parentNode.offsetWidth+1+"px"}var I=n.cellHeight,$=0,G=i.moveOffsetY;G||(G=I/2);var R=n.coords.y-G;n.snapToGrid&&(R=Math.floor((n.coords.y-G-$+I/2)/I)*I+$),R<$&&(R=$);var ce=n.nav.events,D=n.nav.main.clientHeight+$,Ie=parseInt(i.movingShadow.style.height);R+Ie>D&&(R=D-Ie),e.Util.addClass(i.moving,n.M("_event_moving_source")),i.movingShadow.parentNode.style.display="none",i.movingShadow.style.top=R+"px",i.movingShadow.parentNode.style.display="";var Be=ce.clientWidth/ce.rows[0].cells.length,q=Math.floor((n.coords.x-n.hourWidth)/Be);n.rtl&&(q=n.Ca.length-q-1),q<0&&(q=0),q<ce.rows[0].cells.length&&q>=0&&i.movingShadow.column!==q&&(i.movingShadow.column=q,i.moveShadow(ce.rows[0].cells[q]))}else e.Global.selecting&&(n.Ga(),n.Ha())},n.nav.scrollable.style.display=""},this.hb=function(a){return this.businessBeginsHour<this.businessEndsHour?!(a.getHours()<this.businessBeginsHour||a.getHours()>=this.businessEndsHour||a.getDayOfWeek()===6||a.getDayOfWeek()===0):a.getHours()>=this.businessBeginsHour||a.getHours()<this.businessEndsHour},this.ba=function(){var a=this.nav.header;if(a&&a.rows)for(var m=0;m<a.rows.length;m++)for(var h=a.rows[m],b=0;b<h.cells.length;b++){var s=h.cells[b];s.onclick=null,s.onmousemove=null,s.onmouseout=null}this.fasterDispose||e.pu(a)},this.ib=function(a){function m(v){var g=b[v],y=a?h.insertCell(-1):h.cells[v];y.data=g,y.style.overflow="hidden",y.style.padding="0px",y.style.border="0px none",y.style.height=n.headerHeight+"px",y.onclick=n.jb;var _,w=a?document.createElement("div"):y.firstChild;a?(w.unselectable="on",w.style.MozUserSelect="none",w.style.cursor="default",w.style.position="relative",w.className=n.M("_colheader"),w.style.height=n.headerHeight+"px",n.headerTextWrappingEnabled||(w.style.whiteSpace="nowrap"),_=document.createElement("div"),_.className=n.M("_colheader_inner"),_.unselectable="on",w.appendChild(_),y.appendChild(w)):_=w.firstChild;var S={};S.header={},S.header.cssClass=null,S.header.verticalAlignment="center",S.header.horizontalAlignment="center",S.column=n.kb(g,n),typeof n.onBeforeHeaderRender=="function"&&(e.Util.copyProps(g,S.header,["id","start","name","html","backColor","toolTip","areas"]),n.onBeforeHeaderRender(S),e.Util.copyProps(S.header,g,["html","backColor","toolTip","areas","cssClass","verticalAlignment","horizontalAlignment"])),g.toolTip&&(_.title=g.toolTip),g.cssClass&&e.Util.addClass(w,g.cssClass),g.backColor&&(_.style.background=g.backColor),g.areas&&e.Areas.attach(w,g);var E=g.verticalAlignment;if(E)switch(_.style.display="flex",E){case"center":_.style.alignItems="center";break;case"top":_.style.alignItems="flex-start";break;case"bottom":_.style.alignItems="flex-end"}var T=g.horizontalAlignment;if(T)switch(T){case"center":_.style.justifyContent="center";break;case"left":_.style.justifyContent="flex-start";break;case"right":_.style.justifyContent="flex-end"}w.firstChild.innerHTML=n._a(g.name,g.html)}for(var h=a?this.nav.header.insertRow(-1):this.nav.header.rows[0],b=this.Ca,s=b.length,c=0;c<s;c++)m(c)},this.jb=function(a){if(n.headerClickHandling!=="Disabled"){var m=this.data,h=n.kb(m),b={};b.header={}
23,b.header.id=m.id,b.header.name=m.name,b.header.start=m.start,b.column=h,b.originalEvent=a,b.shift=a.shiftKey,b.ctrl=a.ctrlKey,b.meta=a.metaKey,b.preventDefault=function(){this.preventDefault.value=!0},typeof n.onHeaderClick=="function"&&(n.onHeaderClick(b),b.preventDefault.value)||typeof n.onHeaderClicked=="function"&&n.onHeaderClicked(b)}},this.kb=function(a){return new e.CalendarColumn(a,n)},this.lb=function(){return this.width&&this.width.indexOf("px")!==-1?"Pixel":"Percentage"},this.ka=function(){for(var a=this.nav.header,m=!0;this.headerCreated&&a&&a.rows&&a.rows.length>0;)this.fasterDispose||e.pu(a.rows[0]),a.deleteRow(0);this.headerCreated=!0,this.ib(m)},this.loadingStart=function(){this.loadingLabelVisible&&(this.nav.loading.innerHTML=this.loadingLabelText,this.nav.loading.style.top=this.headerHeight+5+"px",this.nav.loading.style.display="")},this.commandCallBack=function(a,m){var h={};h.command=a,this.W("Command",m,h)},this.loadingStop=function(){this.callbackTimeout&&window.clearTimeout(this.callbackTimeout),this.nav.loading.style.display="none"},this.mb=function(){var a=this.nav.scroll;
23a.root=this,n.nb(),a.onscroll||(a.onscroll=function(){n.ob()})},this.callbackError=function(a,m){alert(`Error!\r 24Result: `+a+`\r 25Context:`+m)},this.pb=function(){var a=e.sw(this.nav.scroll),m=this.nav.cornerRight;m&&(m.style.width=a+"px")},this.qb=function(){i.globalHandlers||(i.globalHandlers=!0,e.re(document,"mouseup",i.gMouseUp))},this.events={},this.events.add=function(a){var m=null;if(a instanceof e.Event)m=a.data;else{if(typeof a!="object")throw"DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";m=a}n.events.list||(n.events.list=[]),n.events.list.push(m),n.rb({eventsOnly:!0}),n.xa.notify()},this.events.find=function(a){if(!n.events.list)return null;if(typeof a=="function"){for(var m=a,h=0;h<n.events.list.length;h++){var b=new e.Event(n.events.list[h],n);if(m(b))return b}return null}for(var h=0;h<n.events.list.length;h++){var s=n.events.list[h];if(s.id===a)return new e.Event(s,n)}return null},this.events.forRange=function(a,m){return a=new e.Date(a),m=new e.Date(m),(n.events.list||[]).filter(function(h){return f(a,m,new e.Date(h.start),new e.Date(h.end))}).map(function(h){return new e.Event(h,n)})},this.events.update=function(a){if(a instanceof e.Event)a.commit();else if(typeof a=="object"){var m=n.events.find(a.id);if(m){var h=e.indexOf(n.events.list,m.data);n.events.list.splice(h,1,a)}}n.rb({eventsOnly:!0}),n.xa.notify()},this.events.remove=function(a){var m;if(a instanceof e.Event)m=a.data;else if(typeof a=="object"){var h=n.events.find(a.id);h&&(m=h.data)}else if(typeof a=="string"||typeof a=="number"){var h=n.events.find(a);h&&(m=h.data)}var b=e.indexOf(n.events.list,m);n.events.list.splice(b,1),n.rb({eventsOnly:!0}),n.xa.notify()},this.events.load=function(a,m,h){var b=function(g){var y={};y.exception=g.exception,y.request=g.request,typeof h=="function"&&h(y)},s=function(g){var y,_=g.request;try{y=JSON.parse(_.responseText)}catch(E){var w={};return w.exception=E,void b(w)}if(e.isArray(y)){var S={};if(S.preventDefault=function(){this.preventDefault.value=!0},S.data=y,typeof m=="function"&&m(S),S.preventDefault.value)return;n.events.list=y,n.Ma&&n.rb({eventsOnly:!0})}};if(n.eventsLoadMethod&&n.eventsLoadMethod.toUpperCase()==="POST")e.Http.ajax({method:"POST",data:{start:n.visibleStart().toString(),end:n.visibleEnd().toString()},url:a,success:s,error:b});else{var c=a,v="start="+n.visibleStart().toString()+"&end="+n.visibleEnd().toString();c+=c.indexOf("?")>-1?"&"+v:"?"+v,e.Http.ajax({method:"GET",url:c,success:s,error:b})}},this.sb=function(){var a=n.M("_main");if(n.cssClass&&(a+=" "+n.cssClass),n.rtl&&(a+=" "+n.M("_direction_rtl")),n.nav.top.className!==a){n.nav.top.className=a;var m=n.nav.corner;m.className=n.M("_corner"),m.firstChild.className=n.M("_corner_inner");var h=n.nav.cornerRight;h&&(h.className=n.M("_cornerright"),h.firstChild.className=n.M("_cornerright_inner"))}},this.update=function(a){if(n.R)throw new e.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");n.tb(a),n.rb()},this.rb=function(a){if(this.Ma){a=a||{};var m=!a.eventsOnly;n.ub(),n._(),n.nav.top.style.cursor="auto",m&&(n.ha(),n.ka(),n.la(),n.ma(),n.na(),n.eb(),n.pb(),n.sb(),n.nb()),n.ia(),n.ja(),n.oa(),n.clearSelection(),this.visible?this.show():this.hide()}},this.vb=null,this.tb=function(a){if(a){var m={events:{preInit:function(){var s=this.data||[];e.isArray(s.list)?n.events.list=s.list:n.events.list=s}},columns:{preInit:function(){n.columns.list=this.data}}};this.vb=m;for(var h in a)if(m[h]){var b=m[h];b.data=a[h],b.preInit&&b.preInit()}else n[h]=a[h]}},this.wb=function(){var a=this.vb;for(var m in a){var h=a[m];h.postInit&&h.postInit()}},this.xb=function(){if(this.id&&this.id.tagName)this.nav.top=this.id;
25else{if(typeof this.id!="string")throw"DayPilot.Calendar() constructor requires the target element or its ID as a parameter";if(this.nav.top=document.getElementById(this.id),!this.nav.top)throw"DayPilot.Calendar: The placeholder element not found: '"+d+"'."}},this.yb={},this.yb.events=[],this.zb=function(a){var m=this.yb.events,h=this.events.list[a],b={};for(var s in h)b[s]=h[s];if(b.start=new e.Date(h.start),b.end=new e.Date(h.end),typeof this.onBeforeEventRender=="function"){var c={};c.control=n,c.data=b,this.onBeforeEventRender(c)}m[a]=b},this.ia=function(){var a=this.events.list;if(n.yb.events=[],a){if(!e.isArray(a))throw new e.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: "+typeof a);var m=a.length,h=864e5;this.cache.pixels={};var b=[];this.scrollLabels=[],this.minStart=1e4,this.maxEnd=0;for(var s=0;s<m;s++){var c=a[s],v=c;if(typeof v!="object")throw new e.Exception("Event data item must be an object");if(!v.start)throw new e.Exception("Event data item must specify 'start' property");if(!v.end)throw new e.Exception("Event data item must specify 'end' property");if(v instanceof e.Event)throw new e.Exception("DayPilot.Calendar: DayPilot.Event object detected in events.list array. Use raw event data instead.")}if(typeof this.onBeforeEventRender=="function")for(var s=0;s<m;s++)this.zb(s);for(var s=0;s<this.Ca.length;s++){var g={};g.minEnd=1e6,g.maxStart=-1,this.scrollLabels.push(g);var y=this.Ca[s];y.events=[],y.lines=[],y.blocks=[];for(var _=new e.Date(y.start),w=_.getTime(),S=_.addTime(h),E=S.getTime(),T=0;T<m;T++)if(!b[T]){var c=a[T],C=new e.Date(c.start),N=new e.Date(c.end),B=C.getTime(),M=N.getTime();if(!(M<B)){var L=!(M<=w||B>=E);if(n.viewType==="Resources"&&(L=L&&y.id===c.resource),L){var I=new e.Event(c,n);I.part.dayIndex=s,I.part.start=w<B?C:_,I.part.end=E>M?N:S;var $=this.getPixels(I.part.start,y.start),O=this.getPixels(I.part.end,y.start),H=$.top,D=O.top;if(H===D&&($.cut||O.cut))continue;var R=O.boxBottom,z=n.useEventBoxes==="Always";z?(I.part.top=Math.floor(H/this.cellHeight)*this.cellHeight+1,I.part.height=Math.max(Math.ceil(R/this.cellHeight)*this.cellHeight-I.part.top,this.cellHeight-1)+1):(I.part.top=H+1,I.part.height=D-H),I.part.barTop=Math.max(H-I.part.top-1,0),I.part.barHeight=Math.max(D-H-2,1);var A=I.part.top,X=I.part.top+I.part.height;A>g.maxStart&&(g.maxStart=A),X<g.minEnd&&(g.minEnd=X),A<this.minStart&&(this.minStart=A),X>this.maxEnd&&(this.maxEnd=X),y.events.push(I),typeof this.onBeforeEventRender=="function"&&(I.cache=this.yb.events[T]),I.part.start.getTime()===B&&I.part.end.getTime()===M&&(b[T]=!0)}}}}for(var s=0;s<this.Ca.length;s++){var y=this.Ca[s];y.events.sort(this.Ab);for(var T=0;T<y.events.length;T++){var c=y.events[T];y.putIntoBlock(c)}for(var T=0;T<y.blocks.length;T++){var G=y.blocks[T];G.events.sort(this.Ab);for(var ce=0;ce<G.events.length;ce++){var c=G.events[ce];G.putIntoLine(c)}}}}},this.Ab=function(a,m){if(!(a&&m&&a.start&&m.start))return 0;var h=a.start().getTime()-m.start().getTime();return h!==0?h:m.end().getTime()-a.end().getTime()},this.debug=function(a){this.debuggingEnabled&&(n.debugMessages||(n.debugMessages=[]),n.debugMessages.push(a),typeof console<"u"&&console.log(a))},this.getPixels=function(a,m){m||(m=this.startDate);var h=m.getTime(),b=a.getTime(),s=p.ga(),c=this.cache.pixels[b+"_"+h];if(c)return c;h=m.getTime();var v=60*s*1e3,g=b-h,y=g%v,_=g-y,w=_+v;y===0&&(w=_);var S={};return S.cut=!1,S.top=this.Bb(g),S.boxTop=this.Bb(_),S.boxBottom=this.Bb(w),this.cache.pixels[b+"_"+h]=S,S},this.Bb=function(a){return Math.floor(this.cellHeight*a/(6e4*p.ga()))},this.ub=function(){this.startDate=new e.Date(this.startDate).getDatePart()},this.ja=function(){this.nav.corner&&(this.nav.corner.style.height=this.headerHeight+"px")},this.na=function(){var a=this.Ya();this.nav.scroll&&a>0&&(this.nav.scroll.style.height=a+"px")},this.xa={},this.xa.scope=null,this.xa.notify=function(){n.xa.scope&&n.xa.scope.$apply()},this.xa.apply=function(a){a()},this.ob=function(){if(n.nav.scroll&&n.Cb()){var a=n.nav.scroll.scrollTop,m=p.ga(),h=60/m,b=a/(h*n.cellHeight);n.Db.scrollHour=b}},this.nb=function(){var a=0,m=60/p.ga();a=typeof n.Db.scrollHour=="number"?m*n.cellHeight*n.Db.scrollHour:n.initScrollPos==="Auto"?this.heightSpec==="BusinessHours"?m*this.cellHeight*this.businessBeginsHour:0:this.initScrollPos;var h=n.nav.top;h.style.display==="none"?(h.style.display="",n.nav.scroll.scrollTop=a,h.style.display="none"):n.nav.scroll.scrollTop=a}
25,this.getScrollY=function(){return n.nav.scroll.scrollTop},this.setScrollY=function(a){n.nav.scroll.scrollTop=a,n.ob()},this.Eb=function(){return!(!this.backendUrl&&typeof WebForm_DoCallback!="function")&&(typeof n.events.list>"u"||!n.events.list)},this.z=function(){this.nav.top.style.visibility==="hidden"&&(this.nav.top.style.visibility="visible")},this.show=function(){n.visible=!0,n.nav.top.style.display="",this.pb()},this.hide=function(){n.visible=!1,n.nav.top.style.display="none"},this.Fb=function(){this.ub(),this.ha(),this.Xa(),this.ka(),this.la(),this.pb(),this.mb(),this.qb(),i.register(this),this.Gb(),this.W("Init")},this.Db={},this.Hb=function(){this.Db.themes=[],this.Db.themes.push(this.theme||this.cssClassPrefix)},this.Ib=function(){for(var a=this.Db.themes,m=0;m<a.length;m++){var h=a[m];e.Util.removeClass(this.nav.top,h+"_main")}this.Db.themes=[]},this.Jb=function(){if(this.afterRender(null,!1),typeof this.onAfterRender=="function"){var a={};a.isCallBack=!1,this.onAfterRender(a)}},this.Kb=function(){if(typeof this.onInit=="function"&&!this.Lb){this.Lb=!0;var a={};this.onInit(a)}},this.Cb=function(){var a=n.nav.top;return!!a&&a.offsetWidth>0&&a.offsetHeight>0},this.Gb=function(){var a=n.Cb;a()||(n.Z=setInterval(function(){a()&&(n.mb(),n.pb(),clearInterval(n.Z))},100))},this._a=function(a,m){return n.S.ea()?e.Util.escapeTextHtml(a,m):e.Util.isNullOrUndefined(m)?e.Util.isNullOrUndefined(a)?"":a:m},this.Sa={},this.Sa.Ra=null,this.Sa.Mb=function(a,m,h){var b=n.Sa.Ra;if(typeof b.createVNode=="function"&&typeof b.render=="function"){var s=b.createVNode(a,h);b.render(s,m)}},this.Sa.Wa=function(a,m){var h=n.Sa.Ra;if(typeof h.render=="function"){var b=a;e.isArray(a)&&(b=h.h("div",null,a)),h.render(b,m)}},this.Sa.Ua=function(a){var m=n.Sa.Ra;typeof m.render=="function"&&m.render(null,a)},this.internal={},this.internal.loadOptions=n.tb,this.internal.xssTextHtml=n._a,this.internal.upd=function(a){n.update(a)},this.internal.enableVue=function(a){n.Sa.Ra=a},this.internal.vueRef=function(){return n.Sa.Ra},this.internal.vueRendering=function(){return n.Sa.Ta},this.init=function(){this.xb();var a=this.Eb();return this.Hb(),a?void this.Fb():(this.ub(),this.ha(),this.ia(),this.Xa(),this.ka(),this.la(),this.z(),this.pb(),this.mb(),this.qb(),i.register(this),this.events&&(this.ja(),this.oa()),this.Jb(),this.Kb(),this.Gb(),this.Ma=!0,this)},this.Init=this.init,this.tb(l)},e.CalendarColumn=function(d,l){var o=this;o.id=d.id,o.name=d.name,o.data=d.data,o.start=new e.Date(d.start),o.calendar=l,o.toJSON=function(){var n={};return n.id=this.id,this.start&&(n.start=this.start.toString()),n.name=this.name,n}},e.Calendar=i.Calendar,typeof jQuery<"u"&&(function(d){d.fn.daypilotCalendar=function(l){var o=null,n=this.each(function(){if(!this.daypilot){var p=new e.Calendar(this.id);this.daypilot=p;for(var a in l)p[a]=l[a];p.init(),o||(o=p)}});return this.length===1?o:n}})(jQuery),(function(){var d=e.am();d&&d.directive("daypilotCalendar",["$parse",function(l){return{restrict:"E",template:"<div></div>",replace:!0,link:function(o,n,p){var a=new e.Calendar(n[0]);a.xa.scope=o,a.init();var m=p.id;m&&(o[m]=a);var h=p.publishAs;h&&(0,l(h).assign)(o,a);for(var b in p)b.indexOf("on")===0&&(function(g){a[g]=function(y){var _=l(p[g]);o.$apply(function(){_(o,{args:y})})}})(b);var s=o.$watch,c=p.config||p.daypilotConfig,v=p.events||p.daypilotEvents;s.call(o,c,function(g){for(var y in g)a[y]=g[y];a.update(),a.Kb()},!0),s.call(o,v,function(g){a.events.list=g,a.update()},!0)}}}])})()}})(t),(function(e){typeof e.DatePicker>"u"&&(e.DatePicker=function(r){this.v="${v}";var i="navigator_"+new Date().getTime(),u=this;this.onShow=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.prepare=function(){if(this.locale="en-us",this.target=null,this.targetAlignment="left",this.resetTarget=!0,this.pattern=this.S.locale().datePattern,this.theme="navigator_default",this.patterns=[],this.zIndex=null,this.showToday=!0,this.todayText="Today",this.weekStarts="Auto",r)for(var f in r)this[f]=r[f]},this.init=function(){this.date=new e.Date(this.date);var f=this.Nb();this.resetTarget&&!f?this.Ob(this.date):!this.resetTarget&&f&&(u.date=f);var d=this.E();return d&&d.addEventListener("input",function(){u.date=u.Nb(),u.date&&u.navigator.select(u.date,{dontNotify:!0})}),this},this.close=function(){document.removeEventListener("mousedown",u.close),document.removeEventListener("wheel",u.close),window.removeEventListener("resize",u.close),u.Cb&&(u.Cb=!1,u.navigator&&u.navigator.dispose(),u.div.innerHTML="",u.div&&u.div.parentNode===document.body&&document.body.removeChild(u.div))},this.Pb=function(f){this.date=new e.Date(f),this.Ob(this.date)},this.select=function(f){var d={};d.date=new e.Date(f),d.preventDefault=function(){this.preventDefault.value=!0},typeof u.onTimeRangeSelect=="function"&&(u.onTimeRangeSelect(d),d.preventDefault.value)||(this.Pb(f),typeof u.onTimeRangeSelected=="function"&&u.onTimeRangeSelected(d))},this.Nb=function(){var f=this.E();if(!f)return this.date;var d=null;if(d=f.tagName==="INPUT"?f.value:f.innerText,!d)return null;for(var l=e.Date.parse(d,u.pattern),o=0;o<u.patterns.length;o++){if(l)return l;l=e.Date.parse(d,u.patterns[o])}return l},this.Ob=function(f){var d=this.E();if(d){var l=f.toString(u.pattern,u.locale);d.tagName==="INPUT"?d.value=l:d.innerHTML=l}},this.S={},this.S.locale=function(){return e.Locale.find(u.locale)},this.E=function(){var f=this.target;return f&&f.nodeType&&f.nodeType===1?f:document.getElementById(f)},Object.defineProperty(this,"visible",{get:function(){return u.Cb}}),this.show=function(){if(!this.Cb){document.addEventListener("mousedown",u.close),document.addEventListener("wheel",u.close),window.addEventListener("resize",u.close);var f=this.E(),d=new e.Navigator(i);d.api=2,d.cssOnly=!0,d.theme=u.theme,d.weekStarts="Auto",d.locale=u.locale,d.showToday=u.showToday,d.todayText=u.todayText,d.weekStarts=u.weekStarts,d.onTodayClick=function(s){d.onTimeRangeSelected({start:e.Date.today()}),s.preventDefault()},d.onTimeRangeSelected=function(s){u.date=s.start;var c=s.start.addTime(d.Qb),v=c.toString(u.pattern,u.locale),g={};g.start=c,g.date=c,g.preventDefault=function(){this.preventDefault.value=!0},typeof u.onTimeRangeSelect=="function"&&(u.onTimeRangeSelect(g),g.preventDefault.value)||(u.Ob(v),u.close(),typeof u.onTimeRangeSelected=="function"&&u.onTimeRangeSelected(g))},this.navigator=d;var l={x:0,y:0,w:0,h:0};f&&(l=e.abs(f));var o=l.h,n=u.targetAlignment,p=document.createElement("div");p.style.position="absolute",n==="left"&&(p.style.left=l.x+"px"),p.style.top=l.y+o+"px",u.zIndex&&(p.style.zIndex=u.zIndex);var a=document.createElement("div");a.id=i,p.appendChild(a),p.addEventListener("mousedown",function(s){s.stopPropagation()}),document.body.appendChild(p),this.div=p;var m=u.Nb()||u.date;if(d.startDate=m,d.Qb=m.getTimePart(),d.selectionDay=m.getDatePart(),d.init(),n==="right"){var h=l.x+l.w-d.nav.top.offsetWidth;p.style.left=h+"px"}if(this.Cb=!0,this.onShow){var b={};this.onShow(b)}}},this.prepare(),this.init()})})(t),(function(e){if(typeof e.Menu>
25"u"||!e.Menu.def){var r=function(){},i={};i.mouse=null,i.menu=null,i.handlersRegistered=!1,i.hideTimeout=null,i.waitingSubmenu=null,e.Menu=function(u){var f=this,d=null;this.v="${v}",this.zIndex=120,this.cssClassPrefix="menu_default",this.cssOnly=!0,this.menuTitle=null,this.showMenuTitle=!1,this.hideOnMouseOut=!1,this.hideAfter=200,this.theme=null,this.rtl=!1,this.onShow=null;var l=e.isArray(u)?null:u;if(this.Rb=function(){},u&&e.isArray(u)&&(this.items=u),this.toJSON=function(){return null},this.show=function(n,p){p=p||{};var a=null;if(n?typeof n.id=="string"||typeof n.id=="number"?a=n.id:typeof n.id=="function"?a=n.id():typeof n.value=="function"&&(a=n.value()):a=null,typeof e.Bubble<"u"&&e.Bubble.hideActive(),p.submenu||i.menuClean(),this.Rb.submenu=null,i.mouse!==null){f.cssOnly||(f.cssOnly=!0);var m=null;n&&n.isRow&&n.$.row.task?(m=new e.Task(n.$.row.task,n.calendar),m.menuType="resource"):m=n&&n.isEvent&&n.data.task?new e.Task(n,n.calendar):n;var h=document.createElement("div");if(typeof f.onShow=="function"){var b={};if(b.source=m,b.menu=f,b.div=h,b.preventDefault=function(){b.preventDefault.value=!0},f.onShow(b),b.preventDefault.value)return}if(h.style.position="absolute",h.style.top="0px",h.style.left="0px",h.style.display="none",h.style.overflow="hidden",h.style.zIndex=this.zIndex+1,h.className=this.Sb("main"),h.onclick=function(V){V.cancelBubble=!0,this.parentNode.removeChild(this)},f.rtl&&(h.style.direction="rtl",h.className+=" "+f.Sb("direction_rtl")),this.hideOnMouseOut&&(h.onmousemove=function(){clearTimeout(i.hideTimeout)},h.onmouseleave=function(){f.delayedHide({hideParent:!0})}),!this.items||this.items.length===0)throw"No menu items defined.";if(this.showMenuTitle){var s=document.createElement("div");s.innerHTML=this.menuTitle,s.className=this.Sb("title"),h.appendChild(s)}for(var c=0;c<this.items.length;c++){var v=this.items[c],g=document.createElement("div");if(e.Util.addClass(g,this.Sb("item")),v.items&&(e.Util.addClass(g,this.Sb("item_haschildren")),e.Util.addClass(h,this.Sb("withchildren"))),typeof v<"u"&&!v.hidden){if(v.text==="-"){var y=document.createElement("div");y.addEventListener("click",function(V){V.stopPropagation()}),g.appendChild(y)}else{var _=document.createElement("a");if(_.style.position="relative",_.style.display="block",v.cssClass&&e.Util.addClass(_,v.cssClass),v.disabled)e.Util.addClass(_,f.Sb("item_disabled"));else{if(v.onclick||v.onClick){_.item=v,_.onclick=(function(V,W){return function(re){if(typeof V.onClick=="function"){var J={};if(J.item=V,J.source=W.source,J.originalEvent=re,J.preventDefault=function(){J.preventDefault.value=!0},V.onClick(J),J.preventDefault.value)return void re.stopPropagation()}V.onclick&&V.onclick.call(W,re)}})(v,_);var w=function(V,W){return function(re){re.stopPropagation(),re.preventDefault(),W.source.calendar&&W.source.calendar.internal.touch&&(W.source.calendar.internal.touch.active=!0)}},S=function(V,W){return function(re){re.stopPropagation(),re.preventDefault();var J=function(){window.setTimeout(function(){W.source.calendar&&W.source.calendar.internal.touch&&(W.source.calendar.internal.touch.active=!1)},500)};if(typeof V.onClick=="function"){var k={};if(k.item=V,k.source=W.source,k.originalEvent=re,k.preventDefault=function(){k.preventDefault.value=!0},V.onClick(k),k.preventDefault.value)return void J()}V.onclick&&V.onclick.call(W,re),i.menuClean(),J()}};e.reNonPassive(_,"touchstart",w(v,_)),e.reNonPassive(_,"touchend",S(v,_))}if(v.items&&!v.disabled){var E=function(V,W){return function(re){re.preventDefault(),re.stopPropagation(),f.Tb(V,W)}};_.ontouchend=E(v,_)}if(v.onclick)r();else if(v.href)_.href=v.href.replace(/\x7B0\x7D/gim,a),v.target&&_.setAttribute("target",v.target);else if(v.command){var E=function(W,re){return function(J){var k=re.source,U=W;U.action=U.action?U.action:"CallBack";var P=k.calendar||k.root;if(J.preventDefault(),k instanceof e.Link)P.internal.linkMenuClick(U.command,k,U.action);else if(k instanceof e.Selection)P.internal.timeRangeMenuClick(U.command,k,U.action);else if(k instanceof e.Event)P.internal.eventMenuClick(U.command,k,U.action);else if(k instanceof e.Task)k.menuType==="resource"?P.internal.resourceHeaderMenuClick(U.command,re.menuSource,U.action):P.internal.eventMenuClick(U.command,re.menuSource,U.action);else switch(k.menuType){case"resource":P.internal.resourceHeaderMenuClick(U.command,k,U.action);break;case"selection":P.internal.timeRangeMenuClick(U.command,k,U.action);break;default:P.internal.eventMenuClick(U.command,k,U.action)}}};_.onclick=E(v,_),_.ontouchend=E(v,_)}}v.items&&_.addEventListener("click",function(V){V.stopPropagation()}),_.source=m,_.menuSource=n;var T=document.createElement("span");if(T.className=f.Sb("item_text"),T.innerHTML=e.Util.escapeTextHtml(v.text,v.html),_.appendChild(T),v.image){var C=document.createElement("img");C.src=v.image,C.style.position="absolute",C.style.top="0px",f.rtl?C.style.right="0px":C.style.left="0px",_.appendChild(C)}if(v.icon){var N=document.createElement("span");N.className=f.Sb("item_icon");var B=document.createElement("i");B.className=v.icon,N.appendChild(B),_.appendChild(N)}if(v.symbol){var M="http://www.w3.org/2000/svg",L=document.createElementNS(M,"svg");L.setAttribute("width","100%"),L.setAttribute("height","100%");var I=document.createElementNS(M,"use");I.setAttribute("href",v.symbol),L.appendChild(I);var $=document.createElement("span");$.className=f.Sb("item_symbol"),$.style.position="absolute",$.style.top="0px",f.rtl?$.style.right="0px":$.style.left="0px",$.appendChild(L),_.appendChild($)}var O=function(V,W){return function(){var re=V,J=i.waitingSubmenu;if(J){if(J.parent===re)return;clearTimeout(J.timeout),i.waitingSubmenu=null}V.disabled||(i.waitingSubmenu={},i.waitingSubmenu.parent=re,i.waitingSubmenu.timeout=setTimeout(function(){i.waitingSubmenu=null,f.Tb(re,W)},300))}};_.onmouseover=O(v,_),g.appendChild(_)}h.appendChild(g)}}var H=function(){window.setTimeout(function(){i.menuClean(),e.MenuBar.deactivate()},100)};h.onclick=H,h.ontouchend=H,h.onmousedown=function(V){V.stopPropagation()},h.oncontextmenu=function(){return!1},document.body.appendChild(h),f.Rb.visible=!0,f.Rb.source=n,h.style.display="";var D=h.offsetHeight,R=h.offsetWidth;h.style.display="none";var z=document.documentElement.clientHeight,A=window.innerWidth,X=typeof p.windowMargin=="number"?p.windowMargin:5;if((function(){var V=p.initiator;if(V){var W=V.div,re=V.e,J=V.area,k=J.visibility||J.v||"Visible",U=V.a;if(k!=="Visible"&&(U=e.Areas.createArea(W,re,J),W.appendChild(U),d=U),U){var P=e.abs(U);p.x=P.x,p.y=P.y+P.h+2,f.rtl&&(p.x=P.x+P.w)}}})(),(function(){var V=typeof p.x=="number"?p.x:i.mouse.x+1,W=typeof p.y=="number"?p.y:i.mouse.y+1,re=document.body.scrollTop||document.documentElement.scrollTop,J=document.body.scrollLeft||document.documentElement.scrollLeft,k=0,U=0;W-re>z-D&&z!==0?k=W-(W-re-(z-D)+X):k=W,f.Rb.y=k,h.style.top=k+"px",(p.align==="right"||f.rtl)&&(V-=R),V-J>A-R&&A!==0?U=V-(V-J-(A-R)+X):U=V,f.Rb.x=U,h.style.left=U+"px"})(),p.parentLink){var G=p.parentLink,ce=parseInt(new e.StyleReader(h).get("border-top-width")),Ie=e.abs(p.parentLink.parentNode),Be=Ie.x+G.offsetWidth;f.rtl&&(Be=Ie.x-R);var q=Ie.y-ce;Be+R>A&&(Be=Math.max(0,Ie.x-R));var ue=document.body.scrollTop+document.documentElement.scrollTop;q+D-ue>z&&(q=Math.max(0,z-D+ue)),h.style.left=Be+"px",h.style.top=q+"px"}h.style.display="",this.addShadow(h),this.Rb.div=h,p.submenu||(e.Me
25nu.active=this)}},this.update=function(){if(f.Rb.visible){var n=f.Rb.source;f.hide(),f.show(n,{x:f.Rb.x,y:f.Rb.y})}},this.Tb=function(n,p){var a=n,m=p.source;if((!f.Rb.submenu||f.Rb.submenu.item!==n)&&(f.Rb.submenu&&f.Rb.submenu.item!==n&&(e.Util.removeClass(f.Rb.submenu.link.parentNode,f.Sb("item_haschildren_active")),f.Rb.submenu.menu.hide(),f.Rb.submenu=null),n.items)){var h=f.cloneOptions();h.items=n.items,f.Rb.submenu={},f.Rb.submenu.menu=new e.Menu(h),f.Rb.submenu.menu.Ub=f,f.Rb.submenu.menu.show(m,{submenu:!0,parentLink:p,parentItem:a}),f.Rb.submenu.item=n,f.Rb.submenu.link=p,e.Util.addClass(p.parentNode,f.Sb("item_haschildren_active"))}},this.Sb=function(n){var p=this.theme||this.cssClassPrefix,a=this.cssOnly?"_":"";return p?p+a+n:""},this.cloneOptions=function(){return e.Util.copyProps(l,{},["cssClassPrefix","theme","hideAfter","hideOnMouseOut","zIndex","rtl"])},this.hide=function(n){n=n||{},this.Rb.submenu&&this.Rb.submenu.menu.hide();var p=i.waitingSubmenu;if(p&&(i.waitingSubmenu=null,clearTimeout(p.timeout)),this.removeShadow(),this.Rb.div&&this.Rb.div.parentNode===document.body&&document.body.removeChild(this.Rb.div),d&&(e.de(d),d=null),f.Rb.visible=!1,f.Rb.source=null,f.Ub&&n.hideParent&&f.Ub.hide(n),e.Menu.active===f&&(e.Menu.active=null),typeof this.onHide=="function"){var a={};this.onHide(a)}},this.delayedHide=function(n){i.hideTimeout=setTimeout(function(){f.hide(n)},f.hideAfter)},this.cancelHideTimeout=function(){clearTimeout(i.hideTimeout)},this.init=function(n){return i.mouseMove(n),this},this.addShadow=function(){},this.removeShadow=function(){},l)for(var o in l)this[o]=l[o]},e.MenuBar=function(u,f){var d=this;f=f||{},this.items=[],this.theme="menubar_default",this.windowMargin=0,this.nav={},this.elements={},this.elements.items=[],this.m=null,this.Ma=!1;for(var l in f)this[l]=f[l];this.Vb=function(o){return this.theme+"_"+o},this.z=function(){this.nav.top=document.getElementById(u);var o=this.nav.top;o.className=this.Vb("main"),(d.items||[]).forEach(function(n){var p=document.createElement("span");p.innerHTML=e.Util.escapeTextHtml(n.text,n.html),p.className=d.Vb("item"),n.cssClass&&p.classList.add(n.cssClass),p.data=n,p.onclick=function(a){if(d.active&&d.active.item===n)d.Wb();else if(n.children)return void d.Xb(p);if(typeof n.onClick=="function"){var m={};m.item=n,m.originalEvent=a,n.onClick(m)}},p.onmousedown=function(a){a.stopPropagation()},p.onmouseover=function(){d.active&&d.active.item!==n&&d.Xb(p)},o.appendChild(p),d.elements.items.push(p)})},this.Wb=function(){var o=d.Vb("item_active");d.elements.items.forEach(function(n){e.Util.removeClass(n,o)}),d.active&&d.active.menu&&d.active.menu.hide(),d.active=null},this.Yb=function(o){return!!d.active&&d.active.item===o.data},this.Xb=function(o){if(!d.Yb(o)){d.Wb();var n=o.data,p=d.active={};p.item=n,p.div=o;var a=d.Vb("item_active");e.Util.addClass(o,a);var m=e.abs(o);if(n.children){p.menu=new e.Menu({items:n.children});var h=m.x;n.align==="right"&&(h+=m.w),p.menu.show(null,{x:h,y:m.y+m.h,align:n.align,windowMargin:d.windowMargin})}e.MenuBar.active=d}},this.init=function(){return this.z(),this.Ma=!0,this},this.dispose=function(){this.Ma&&(this.nav.top.innerHTML="",this.elements.items=[])}},e.MenuBar.deactivate=function(){e.MenuBar.active&&(e.MenuBar.active.Wb(),e.MenuBar.active=null)},i.menuClean=function(){typeof e.Menu.active<"u"&&e.Menu.active&&(e.Menu.active.hide(),e.Menu.active=null)},i.mouseDown=function(){typeof i<"u"&&(i.menuClean(),e.MenuBar.deactivate())},i.pointerDown=function(u){if(typeof i<"u"){for(var f=i.Zb(),d=0;d<f.length;d++){var l=f[d];if(l.Rb&&l.Rb.div){var o=l.Rb.div.getBoundingClientRect(),n=u.clientX,p=u.clientY;if(n>=o.left&&n<=o.right&&p>=o.top&&p<=o.bottom)return}}i.menuClean()}},i.Zb=function(){var u=e.Menu.active;if(!u)return[];for(var f=[u],d=0;d<f.length;){var l=f[d];l.Rb&&l.Rb.submenu&&l.Rb.submenu.menu&&f.push(l.Rb.submenu.menu),d++}return f},i.wheel=function(){typeof i<"u"&&(i.menuClean(),e.MenuBar.deactivate())},i.resize=function(){typeof i<"u"&&(i.menuClean(),e.MenuBar.deactivate())},i.mouseMove=function(u){typeof i<"u"&&(i.mouse=i.mousePosition(u))},i.touchMove=function(u){typeof i<"u"&&(i.mouse=i.touchPosition(u))},i.touchStart=function(u){typeof i<"u"&&(i.mouse=i.touchPosition(u))},i.touchEnd=function(){},i.touchPosition=function(u){if(!u||!u.touches)return null;var f=u.touches[0],d={};return d.x=f.pageX,d.y=f.pageY,d},i.mousePosition=function(u){return e.mo3(null,u)},e.Menu.touchPosition=function(u){u.touches&&(i.mouse=i.touchPosition(u))},e.Menu.mousePosition=function(u){i.mouse=i.mousePosition(u)},e.Menu.hide=function(u){if(u=u||{}
25,u.calendar){var f=e.Menu.active;if(f){var d=f.Rb.source;d&&d.calendar===u.calendar&&i.menuClean()}}else i.menuClean()},i.handlersRegistered||typeof document>"u"||(e.re(document,"mousemove",i.mouseMove),e.re(document,"pointerdown",i.pointerDown),e.re(document,"wheel",i.wheel),e.re(document,"touchmove",i.touchMove),e.re(document,"touchstart",i.touchStart),e.re(document,"touchend",i.touchEnd),e.re(window,"resize",i.resize),i.handlersRegistered=!0),e.Menu.def={}}})(t),(function(e){function r(h,b,s){var c=b.indexOf(".");if(c===-1)return void(b!=="__proto__"&&b!=="constructor"&&(h[b]=s));var v=b.substring(0,c);if(v!=="__proto__"&&v!=="constructor"){var g=b.substring(c+1),y=h[v];typeof y=="object"&&y!==null||(h[v]={},y=h[v]),r(y,g,s)}}function i(h){this.form=[],this.data={},this.theme="form_default",this.zIndex=99999,this.locale="en-us",this.plugins={},this.onKey=null,this.Ac=[],this.Bc=null,this.canceling=!1,this.Cc=[],this.j=[],this.Dc=null,h=h||{};for(var b in h)this[b]=h[b]}function u(){this.id=this.guid(),this.field=null,this.data=null,this.type=null,this.level=0,this.enabled=!0,this.value=null,this.text=null,this.interactive=!0,this.isValue=!1,this.checked=!1,this.resolved=null}function f(){this.element=null,this.canFocus=function(){return!1},this.apply=function(){},this.focus=function(){},this.save=function(){return{}}}function d(h,b,s){b=b||{},s=s||"";for(var c in h){var v=h[c];typeof v=="object"?Object.prototype.toString.call(v)==="[object Array]"?b[s+c]=v:v&&v.toJSON?b[s+c]=v.toJSON():d(v,b,s+c+"."):b[s+c]=v}return b}function l(h){this.data=[],this.name=null,this.theme="searchable_default",this.Jc=!1,this.listZIndex=1e5,this.onSelect=null,this.Kc=null,this.Lc=null,this.Mc=!1,this.Nc=null,this.Oc=null,this.s=[],this.Pc=null,h=h||{};var b=this,s={selected:{post:function(g){typeof g=="object"&&g.id?b.Kc=g:typeof g!="string"&&typeof g!="number"||b.select(g)}}};Object.defineProperty(this,"selected",{get:function(){return this.Kc}}),Object.defineProperty(this,"disabled",{get:function(){return this.Jc},set:function(g){this.Jc=g,this.Nc&&(this.Nc.disabled=g,g&&this.Qc())}});for(var c in h)s[c]||(this[c]=h[c]);for(var v in h)s[v]&&s[v].post(h[v])}function o(h){this.form=null,this.item=null,this.data=null,this.name=null,this.theme="edit_table_default",this.onInput=null,this.nav={},this.Sc=null,this.Ac=[],h=h||{};for(var b in h)this[b]=h[b]}if(!e.ModalStatic){e.ModalStatic={},e.ModalStatic.list=[],e.ModalStatic.hide=function(){if(this.list.length>0){var h=this.list.pop();h&&h.hide()}},e.ModalStatic.remove=function(h){for(var b=e.ModalStatic.list,s=0;s<b.length;s++)if(b[s]===h)return void b.splice(s,1)},e.ModalStatic.close=function(h){e.ModalStatic.result(h),e.ModalStatic.hide()},e.ModalStatic.result=function(h){var b=e.ModalStatic.list;b.length>0&&(b[b.length-1].result=h)},e.ModalStatic.displayed=function(h){for(var b=e.ModalStatic.list,s=0;s<b.length;s++)if(b[s]===h)return!0;return!1},e.ModalStatic.stretch=function(){if(this.list.length>0){var h=this.list[this.list.length-1];h&&h.stretch()}},e.ModalStatic.last=function(){var h=e.ModalStatic.list;return h.length>0?h[h.length-1]:null};var n=function(){function h(){for(var _=document.querySelectorAll("style[nonce]"),w=0;w<_.length;w++){var S=_[w];if(S.nonce)return S.nonce}if(document.currentScript&&document.currentScript.nonce)return document.currentScript.nonce;for(var E=document.querySelectorAll("script[nonce]"),T=0;T<E.length;T++){var C=E[T];if(C.nonce)return C.nonce}return""}var b,s,c={add:function(){},commit:function(){},print:function(){return""}};if(typeof globalThis<"u"&&globalThis.c||typeof window>"u"||((s=(b=document.querySelector('meta[name="daypilot:css"]'))===null||b===void 0?void 0:b.content)===null||s===void 0?void 0:s.toLowerCase())==="disable")return c;var v=document.createElement("style");!(!document.querySelector("head > script[data-rendered-by-lwc]")&&!document.querySelector("body > div#auraLoadingBox"))||(v.nonce=h()),v.styleSheet||v.appendChild(document.createTextNode(""));try{(document.head||document.getElementsByTagName("head")[0]).appendChild(v)}catch{return c}var g=!!v.styleSheet,y={};return y.rules=[],y.commit=function(){try{g&&(v.styleSheet.cssText=this.rules.join(` 26`))}catch{}}
26,y.add=function(_,w,S){if(g)return void this.rules.push(_+"{"+w+"}");if(!v.sheet)return this;if(v.sheet.insertRule)typeof S>"u"&&(S=v.sheet.cssRules.length),v.sheet.insertRule(_+"{"+w+"}",S);else{if(!v.sheet.addRule)throw"No CSS registration method found";v.sheet.addRule(_,w,S)}},y.print=function(){for(var _=v.sheet.cssRules,w=[],S=0;S<_.length;S++)w.push(_[S].cssText);return w.join(` 27`)},y},p="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K",a=new n;a.add(".modal_default_main","border: 10px solid #ccc; max-width: 90%;"),a.add(".modal_default_main:focus","outline: none;"),a.add(".modal_default_content","padding: 10px 0px;"),a.add(".modal_default_inner","padding: 20px;"),a.add(".modal_default_input","padding: 10px 0px;"),a.add(".modal_default_buttons","margin-top: 10px;"),a.add(".modal_default_buttons","padding: 10px 0px;"),a.add(".modal_default_form_item","padding: 10px 0px; position: relative;"),a.add(".modal_default_form_item_level1","border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"),a.add(".modal_default_form_item.modal_default_form_title","font-size: 1.5rem; font-weight: bold;"),a.add(".modal_default_form_item input[type=text]","width: 100%; box-sizing: border-box;"),a.add(".modal_default_form_item textarea","width: 100%; height: 200px; box-sizing: border-box;"),a.add(".modal_default_form_item input[type=select]","width: 100%; box-sizing: border-box;"),a.add(".modal_default_form_item label","display: block;"),a.add(".modal_default_form_item select","width: 100%; box-sizing: border-box;"),a.add(".modal_default_form_item_label","margin: 2px 0px;"),a.add(".modal_default_form_item_image img","max-width: 100%; height: auto;"),a.add(".modal_default_form_item_invalid",""),a.add(".modal_default_form_item_invalid_message","position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"),a.add(".modal_default_background","opacity: 0.5; background-color: #000;"),a.add(".modal_default_ok","padding: 3px; width: 80px;"),a.add(".modal_default_cancel","padding: 3px; width: 80px;"),a.add(".modal_default_form_item_date","position: relative;"),a.add(".modal_default_form_item_date:after","content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgI
27HJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==)"),typeof navigator<"u"&&navigator.userAgent.indexOf("Edge")!==-1&&a.add(".modal_default_form_item_date input::-ms-clear","display: none;"),a.add(".modal_default_form_item_scrollable_scroll","width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"),a.add(".modal_default_form_item_scrollable_scroll_content","padding: 5px;"),a.add(".modal_default_form_item_searchable","position: relative;"),a.add(".modal_default_form_item_searchable_icon",""),a.add(".modal_default_form_item_searchable_icon:after","content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url("+p+");"),a.add(".modal_default_form_item_searchable_list","box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"),a.add(".modal_default_form_item_searchable_list_item","background: white; padding: 2px; cursor: default;"),a.add(".modal_default_form_item_searchable_list_item_highlight","background: #ccc;"),a.add(".modal_default_form_item_time","position: relative;"),a.add(".modal_default_form_item_time_icon",""),a.add(".modal_default_form_item_time_icon:after","content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url("+p+");"),a.add(".modal_default_form_item_time_list","box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"),a.add(".modal_default_form_item_time_list_item","background: white; padding: 2px; cursor: default;"),a.add(".modal_default_form_item_time_list_item_highlight","background: #ccc;"),a.add(".modal_default_form_item_datetime_parent","display: flex;"),a.add(".modal_default_form_item_datetime .modal_default_form_item_time_main","margin-left: 5px;"),a.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ",""),a.add(".modal_default_form_item_tabular_main","margin-top: 10px;"),a.add(".modal_default_form_item_tabular_table","display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"),a.add(".modal_default_form_item_tabular_tbody","display: table-row-group;"),a.add(".modal_default_form_item_tabular_row","display: table-row;"),a.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header",""),a.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction","padding: 0px; width: 23px;"),a.add(".modal_default_form_item_tabular_cell","display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"),a.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell","padding-left: 0px; padding-bottom: 0px;"),a.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]","width:100%; box-sizing: border-box;"),a.add(".modal_default_form_item_tabular_table select","width:100%; height:100%; box-sizing: border-box;"),a.add(".modal_default_form_item_tabular_plus","display: inline-block; background-color: #ccc; color: white;
27 width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"),a.add(".modal_default_form_item_tabular_plus:after",`content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==")`),a.add(".modal_default_form_item_tabular_delete","display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"),a.add(".modal_default_form_item_tabular_delete:after",`content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==")`),a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus","display: none;"),a.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus","display: none;"),a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete","visibility: hidden;"),a.add(".modal_default_form_item_tabular_empty","height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"),a.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell","padding: 0px;"),a.add(".modal_min_main","border: 1px solid #ccc; max-width: 90%;"),a.add(".modal_min_background","opacity: 0.5; background-color: #000;"),a.add(".modal_min_ok","padding: 3px 10px;"),a.add(".modal_min_cancel","padding: 3px 10px;"),a.add(".navigator_modal_main","border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"),a.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after","box-sizing: content-box;"),a.add(".navigator_modal_month","font-size: 11px;"),a.add(".navigator_modal_day","color: black;"),a.add(".navigator_modal_weekend","background-color: #f0f0f0;"),a.add(".navigator_modal_dayheader","color: black;"),a.add(".navigator_modal_line","border-bottom: 1px solid #c0c0c0;"),a.add(".navigator_modal_dayother","color: gray;"),a.add(".navigator_modal_todaybox","border: 1px solid red;"),a.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright","border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"),a.add(".navigator_modal_busy","font-weight: bold;"),a.add(".navigator_modal_cell","text-align: center;"),a.add(".navigator_modal_select .navigator_modal_cell_box","background-color: #FFE794; opacity: 0.5;"),a.add(".navigator_modal_title","text-align: center;"),a.add(".navigator_modal_titleleft, .navigator_modal_titleright","text-align: center;"),a.add(".navigator_modal_dayheader","text-align: center;"),a.add(".navigator_modal_weeknumber","text-align: center;"),a.add(".navigator_modal_cell_text","cursor: pointer;"),a.add(".navigator_modal_todaysection","box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"),a.add(".navigator_modal_todaysection_button","cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "),a.commit(),e.Modal=function(h){this.autoFocus=!0,this.focus=null,this.autoStretch=!0,this.autoStretchFirstLoadOnly=!1,this.className=null,this.theme="modal_default",this.disposeOnClose=!0,this.dragDrop=!0,this.loadingHtml=null,this.maxHeight=null,this.scrollWithPage=!0,this.useIframe=!0,this.zIndex=99999,this.left=null,this.width=600,this.top=20,this.height=200,this.locale=null,this.closed=null,this.onClose=null,this.onClosed=null,this.onShow=null;var b=this;this.id="_"+new Date().getTime()+"n"+10*Math.random(),this.$b=!1,this._b=null,this.bc=null,this.showHtml=function(s){if(e.ModalStatic.displayed(this))throw"This modal dialog is already displayed.";if(this.div||this.cc(),this.rb(),this.useIframe){var c=function(v,g){return function(){v.setInnerHTML(v.id+"iframe",g)}};window.setTimeout(c(this,s),0)}else s.nodeType?this.div.appendChild(s):this.div.innerHTML=s;this.rb(),this.dc(),this.ec()},this.showUrl=function(s){if(e.ModalStatic.displayed(this))throw"This modal dialog is already displayed.";if(this.useIframe){this.div||this.cc();var c=this.loadingHtml;c&&(this.iframe.src="about:blank",this.setInnerHTML(this.id+"iframe",c)),this.re(this.iframe,"load",this.fc),this.iframe.src=s,this.rb(),this.dc(),this.ec()}else b.gc({url:s,success:function(v){var g=v.request.responseText;b.showHtml(g)},error:function(){b.showHtml("Error loading the modal dialog")}})},this.ec=function(){if(typeof b.onShow=="function"){var s={};s.root=b.hc(),s.modal=b,b.onShow(s)}},this.hc=function(){return b.iframe?b.iframe.contentWindow.document:b.div},this.gc=function(s){var c=new XMLHttpRequest;if(c){var v=s.method||"GET",g=s.success||function(){},y=s.error||function(){},_=s.data,w=s.url;c.open(v,w,!0),c.setRequestHeader("Content-type","text/plain"),c.onreadystatechange=function(){if(c.readyState===4)if(c.status===200||c.status===304){var S={};S.request=c,g(S)}else if(y){var E={};E.request=c,y(E)}else window.console&&console.log("HTTP error "+c.status)},c.readyState!==4&&(typeof _=="object"&&(_=JSON.stringify(_)),c.send(_))}},this.rb=function(){delete this.result;var s=window,c=document,v=s.pageYOffset?s.pageYOffset:c.documentElement&&c.documentElement.scrollTop?c.documentElement.scrollTop:c.body.scrollTop;this.theme&&(this.hideDiv.className=this.theme+"_background"),this.zIndex&&(this.hideDiv.style.zIndex=this.zIndex),this.hideDiv.style.display="",window.setTimeout(function(){b.hideDiv&&(b.hideDiv.onclick=function(){b.hide({backgroundClick:!0})})},500),this.theme?this.div.className=this.theme+"_main":this.div.className="",this.className&&(this.div.className+=" "+this.className),this.left?this.div.style.left=this.left+"px":this.div.style.marginLeft="-"+Math.floor(this.width/2)+"px",this.div.style.position="absolute",this.div.style.boxSizing="content-box",this.div.style.top=v+this.top+"px",this.div.style.width=this.width+"px",this.zIndex&&(this.div.style.zIndex=this.zIndex),this.height&&(this.useIframe||!this.autoStretch?this.div.style.height=this.height+"px":this.div.style.height=""),this.useIframe&&this.height&&(this.iframe.style.height=this.height+"px"),this.div.style.display="",this.ic(),e.ModalStatic.remove(this),e.ModalStatic.list.push(this)},this.fc=function(){b.iframe.contentWindow.modal=b,b.autoStretch&&b.stretch()},this.stretch=function(){var s=function(){return b.jc().y},c=function(){return b.jc().x};if(this.useIframe){for(var v=c()-40,g=this.width;g<v&&this.kc();g+=10)this.div.style.width=g+"px",this.div.style.marginLeft="-"+Math.floor(g/2)+"px";for(var y=this.maxHeight||s()-2*this.top,_=this.height;_<y&&this.lc();_+=10)this.iframe.style.height=_+"px",this.div.style.height=_+"px";this.autoStretchFirstLoadOnly&&this.ue(this.iframe,"load",this.fc)}else this.div.style.height=""},this.kc=function(){for(var s=this.iframe.contentWindow.document,c=s.compatMode==="BackCompat"?s.body:s.documentElement,v=c.scrollWidth,g=s.body.children,y=0;y<g.length;y++){var _=g[y].offsetLeft+g[y].offsetWidth;v=Math.max(v,_)}return v>c.clientWidth},this.lc=function(){for(var s=this.iframe.contentWindow.document,c=s.compatMode==="BackCompat"?s.body:s.documentElement,v=c.scrollHeight,g=s.body.children,y=0;y<g.length;y++){var _=g[y].offsetTop+g[y].offsetHeight;v=Math.max(v,_)}return v>c.clientHeight},this.jc=function(){var s=document;if(s.compatMode==="CSS1Compat"&&s.documentElement&&s.documentElement.clientWidth){var c=s.documentElement.clientWidth,v=s.documentElement.clientHeight;return{x:c,y:v}}var c=s.body.clientWidth,v=s.body.clientHeight;return{x:c,y:v}},this.dc=function(){this.$b||(this.re(window,"resize",this.nc),this.re(window,"scroll",this.oc),this.dragDrop&&(this.re(document,"mousemove",this.pc),this.re(document,"mouseup",this.qc)),this.$b=!0)},this.rc=function(){this.ue(window,"resize",this.nc),this.ue(window,"scroll",this.oc),this.dragDrop&&(this.ue(document,"mousemove",this.pc),this.ue(document,"mouseup",this.qc)),this.$b=!1},this.sc=function(s){s.target===b.div&&(s.preventDefault(),b.div.style.cursor="move",b.tc(),b.bc=b.mc(s||window.event),b._b={x:b.div.offsetLeft,y:b.div.offsetTop})},this.pc=function(s){if(b.bc){var c=b.mc(s),v=c.x-b.bc.x,g=c.y-b.bc.y;b.div.style.marginLeft="0px",b.div.style.top=b._b.y+g+"px",b.div.style.left=b._b.x+v+"px"}},this.qc=function(){b.bc&&(b.uc(),b.div.style.cursor=null,b.bc=null)},this.tc=function(){if(this.useIframe){var s=document.createElement("div");s.style.backgroundColor="#ffffff",s.style.filter="alpha(opacity=80)",s.style.opacity="0.80",s.style.width="100%",s.style.height=this.height+"px",s.style.position="absolute",s.style.left="0px",s.style.top="0px",this.div.appendChild(s),this.mask=s}},this.uc=function(){this.useIframe&&(this.div.removeChild(this.mask),this.mask=null)},this.nc=function(){b.vc(),b.ic()},this.oc=function(){b.vc()},this.ic=function(){if(!b.left&&b.div){var s=b.div.offsetWidth;b.div.style.marginLeft="-"+Math.floor(s/2)+"px"}},this.vc=function(){if(b.hideDiv&&b.div&&b.hideDiv.style.display!=="none"&&b.div.style.display!=="none"){var s=b.wc.scrollY();b.scrollWithPage||(b.div.style.top=s+b.top+"px")}},this.wc={},this.wc.container=function(){return b.container||document.body},this.wc.scrollY=function(){var s=b.wc.container();return s===document.body?window.pageYOffset?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop:s.scrollTop},this.re=function(s,c,v){s.addEventListener?s.addEventListener(c,v,!1):s.attachEvent&&s.attachEvent("on"+c,v)},this.ue=function(s,c,v){s.removeEventListener?s.removeEventListener(c,v,!1):s.detachEvent&&s.detachEvent("on"+c,v)},this.mc=function(s){return s.pageX||s.pageY?{x:s.pageX,y:s.pageY}:{x:s.clientX+document.documentElement.scrollLeft,y:s.clientY+document.documentElement.scrollTop}},this.abs=function(s){for(var c={x:s.offsetLeft,y:s.offsetTop};s.offsetParent;)s=s.offsetParent,c.x+=s.offsetLeft,c.y+=s.offsetTop;return c},this.cc=function(){var s=b.wc.container(),c=s===document.body,v=c?"fixed":"absolute",g=document.createElement("div");g.id=this.id+"hide",g.style.position=v,g.style.left="0px",g.style.top="0px",g.style.right="0px",g.style.bottom="0px",g.oncontextmenu=function(){return!1},g.onmousedown=function(){return!1},s.appendChild(g);var y=document.createElement("div");y.id=this.id+"popup",y.style.position=v,y.style.left="50%",y.style.top="0px",y.style.backgroundColor="white",y.style.width="50px",y.style.height="50px",this.dragDrop&&(y.onmousedown=this.sc),y.addEventListener("keydown",function(w){
27w.stopPropagation()});var _=null;this.useIframe&&(_=document.createElement("iframe"),_.id=this.id+"iframe",_.name=this.id+"iframe",_.frameBorder="0",_.style.width="100%",_.style.height="50px",y.appendChild(_)),s.appendChild(y),this.div=y,this.iframe=_,this.hideDiv=g},this.setInnerHTML=function(s,c){var v=window.frames[s],g=v.contentWindow||v.document||v.contentDocument;g.document&&(g=g.document),g.body==null&&g.write("<body></body>"),c.nodeType?g.body.appendChild(c):g.body.innerHTML=c,b.autoStretch&&(b.autoStretchFirstLoadOnly&&b.xc||(b.stretch(),b.xc=!0))},this.close=function(s){this.result=s,this.hide()},this.closeSerialized=function(){for(var s=b.hc(),c=s.querySelectorAll("input, textarea, select"),v={},g=0;g<c.length;g++){var y=c[g],_=y.name;if(_){var w=y.value;v[_]=w}}b.close(v)},this.hide=function(s){s=s||{};var c={};c.backgroundClick=!!s.backgroundClick,c.result=this.result,c.canceled=typeof this.result>"u",c.preventDefault=function(){this.preventDefault.value=!0},typeof this.onClose=="function"&&(this.onClose(c),c.preventDefault.value)||(this.div&&(this.div.style.display="none",this.hideDiv.style.display="none",this.useIframe||(this.div.innerHTML=null)),window.focus(),e.ModalStatic.remove(this),typeof this.onClosed=="function"?this.onClosed(c):this.closed&&this.closed(),delete this.result,this.disposeOnClose&&(b.rc(),b.yc(b.div),b.yc(b.hideDiv),b.div=null,b.hideDiv=null,b.iframe=null))},this.yc=function(s){var c;s&&((c=s.parentNode)===null||c===void 0||c.removeChild(s))},this.zc=function(){if(h)for(var s in h)this[s]=h[s]},this.zc()},e.Modal.alert=function(h,b){b=b||{},b.height=b.height||40,b.useIframe=!1;var s=b.okText||"OK";return e.getPromise(function(c){b.onClosed=function(S){c(S)};var v=new e.Modal(b),g=document.createElement("div");g.className=v.theme+"_inner";var y=document.createElement("div");y.className=v.theme+"_content",y.innerHTML=h;var _=document.createElement("div");_.className=v.theme+"_buttons";var w=document.createElement("button");w.innerText=s,w.className=v.theme+"_ok",w.onclick=function(){e.ModalStatic.close("OK")},_.appendChild(w),g.appendChild(y),g.appendChild(_),v.showHtml(g),v.autoFocus&&w.focus()})},e.Modal.confirm=function(h,b){b=b||{},b.height=b.height||40,b.useIframe=!1;var s=b.okText||"OK",c=b.cancelText||"Cancel";return e.getPromise(function(v){b.onClosed=function(C){v(C)};var g=new e.Modal(b),y=document.createElement("div");y.className=g.theme+"_inner";var _=document.createElement("div");_.className=g.theme+"_content",_.innerHTML=h;var w=document.createElement("div");w.className=g.theme+"_buttons";var S=document.createElement("button");S.innerText=s,S.className=g.theme+"_ok",S.onclick=function(){e.ModalStatic.close("OK")};var E=document.createTextNode(" "),T=document.createElement("button");T.innerText=c,T.className=g.theme+"_cancel",T.onclick=function(){e.ModalStatic.close()},w.appendChild(S),w.appendChild(E),w.appendChild(T),y.appendChild(_),y.appendChild(w),g.showHtml(y),g.autoFocus&&S.focus()})},e.Modal.prompt=function(h,b,s){typeof b=="object"&&(s=b,b=""),s=s||{},s.height=s.height||40,s.useIframe=!1;var c=s.okText||"OK",v=s.cancelText||"Cancel",g=b||"";return e.getPromise(function(y){s.onClosed=function(L){y(L)};var _=new e.Modal(s),w=document.createElement("div");w.className=_.theme+"_inner";var S=document.createElement("div");S.className=_.theme+"_content",S.innerHTML=h;var E=document.createElement("div");E.className=_.theme+"_input";var T=document.createElement("input");T.value=g,T.style.width="100%",T.onkeydown=function(L){var I=!1;switch(L.keyCode){case 13:_.close(this.value);break;case 27:_.close();break;default:I=!0}I||(L.preventDefault(),L.stopPropagation())},E.appendChild(T);var C=document.createElement("div");C.className=_.theme+"_buttons";var N=document.createElement("button");N.innerText=c,N.className=_.theme+"_ok",N.onclick=function(){_.close(T.value)};var B=document.createTextNode(" "),M=document.createElement("button");M.innerText=v,M.className=_.theme+"_cancel",M.onclick=function(){_.close()},C.appendChild(N),C.appendChild(B),C.appendChild(M),w.appendChild(S),w.appendChild(E),w.appendChild(C),_.showHtml(w),_.autoF
27ocus&&T.focus()})};var m=function(h){return Object.prototype.toString.call(h)==="[object Array]"};e.Modal.form=function(h,b,s){if(arguments.length===1){var c=h;if(m(c))b={};else{if(typeof c!="object")throw"Invalid DayPilot.Modal.form() parameter";b=h,h=[];for(var v in b){var g={};g.name=v,g.id=v,h.push(g)}}}var y={};for(var _ in s)y[_]=s[_];y.height=y.height||40,y.useIframe=!1;var w=y.okText||"OK",S=y.cancelText||"Cancel";return e.getPromise(function(E){y.onClosed=function(A){if(A.result){var X=JSON.parse(JSON.stringify(b));for(var G in A.result)r(X,G,A.result[G]);A.result=X}E(A)};var T=new e.Modal(y),C=document.createElement("div");C.className=T.theme+"_inner";var N=document.createElement("div");N.className=T.theme+"_input";var B=new i({theme:T.theme,form:h,data:b,zIndex:T.zIndex,locale:T.locale,plugins:T.plugins,onKey:function(A){switch(A.key){case"Enter":B.validate()&&T.close(B.serialize());break;case"Escape":T.close()}},onChange:function(A){typeof T.onChange=="function"&&T.onChange(A)}}),M=B.create();N.append(M);var L=document.createElement("div");L.className=T.theme+"_buttons";var I=document.createElement("button");I.innerText=w,I.className=T.theme+"_ok",y.okDisabled&&(I.disabled=!0),I.onclick=function(){B.validate()&&T.close(B.serialize())};var $=document.createTextNode(" "),O=document.createElement("button");if(O.innerText=S,O.className=T.theme+"_cancel",O.onclick=function(){T.close()},O.onmousedown=function(){B.canceling=!0},L.appendChild(I),L.appendChild($),L.appendChild(O),C.appendChild(N),C.appendChild(L),T.showHtml(C),T.div.setAttribute("tabindex","-1"),T.div.addEventListener("keydown",function(A){switch(A.keyCode){case 27:T.close();break;case 13:B.validate()&&T.close(B.serialize())}}),T.focus){var H=null;if(typeof T.focus=="object"){var D=T.focus.id,R=T.focus.value;H=B.findViewById(D,R)}else typeof T.focus=="string"&&(H=B.findViewById(T.focus));H&&H.focus()}else{var z=B.firstFocusable();T.autoFocus&&z?z.focus():T.div.focus()}})},e.Modal.close=function(h){var b=e.Modal.opener();b&&b.close(h)},e.Modal.stretch=function(){var h=e.Modal.opener();if(!h)throw"Unable to find the opener DayPilot.Modal instance.";h.stretch()},e.Modal.closeSerialized=function(){var h=e.Modal.opener()||e.ModalStatic.last();h&&h.closeSerialized()},e.Modal.opener=function(){return typeof e<"u"&&typeof e.ModalStatic<"u"&&e.ModalStatic.list.length>
270?e.ModalStatic.list[e.ModalStatic.list.length-1]:parent&&parent.DayPilot&&parent.DayPilot.ModalStatic&&parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length-1]},typeof e.getPromise>"u"&&(e.getPromise=function(h){return typeof Promise<"u"?new Promise(h):(e.Promise=function(b){var s=this;this.then=function(c,v){return c=c||function(){},v=v||function(){},b(c,v),e.getPromise(b)},this.catch=function(c){return s.then(null,c),e.getPromise(b)}},new e.Promise(h))}),i.prototype.create=function(){return this.load(),this.render(),this.Dc},i.prototype.render=function(){var h=this;this.Dc=document.createElement("div"),this.Ac.forEach(function(b){h.createView(b)}),this.applyState()},i.prototype.createView=function(h){var b=this.theme,s=this,c=document.createElement("div");if(c.className=b+"_form_item "+b+"_form_item_level"+h.level,h.interactive||h.type!=="title"?c.className+=" "+b+"_form_item_"+h.type:c.className+=" "+b+"_form_title",h.data.cssClass&&(c.className+=" "+h.data.cssClass),!h.isValue){var v=document.createElement("div");v.className=b+"_form_item_label",v.innerText=h.text,c.appendChild(v)}var g=this.createInteractive(h);g.onInput=function(y){if(y=y||{},s.Ec(g,{debounce:!y.immediate}),typeof s.onChange=="function"){var _={};_.result=s.serialize(),s.onChange(_)}},g.onBlur=function(){s.canceling||s.Ec(g)},g.apply(h),g.Dc=c,g.row=h,g.element&&c.appendChild(g.element),this.j.push(g),this.Dc.appendChild(c)},i.prototype.validate=function(){var h=this,b=!0;return this.j.forEach(function(s){var c=h.Ec(s);b=b&&c}),b},i.prototype.Ec=function(h,b){function s(){h.Fc&&(h.Fc.remove(),h.Fc=null),h.Dc.classList.add(T);var B=document.createElement("div");B.classList.add(C),B.innerText=E.message,h.Fc=B,h.Dc.appendChild(B)}b=b||{};var c=b.debounce,v=b.silent,g=h.row,y=!0,_=typeof g.data.onValidate=="function"?g.data.onValidate:null,w=typeof g.data.validate=="function"?g.data.validate:null,S=_||w;if(S){var E={};E.valid=!0,E.value=h.save()[g.field],E.message="Error",E.values=this.serialize(),E.result=this.serialize(),S(E);var T=this.theme+"_form_item_invalid",C=this.theme+"_form_item_invalid_message";if(E.valid)clearTimeout(this.Cc[g.field]),h.Fc&&(h.Fc.remove(),h.Fc=null),h.Dc.classList.remove(T);else if(!v)if(c){var N=1e3;clearTimeout(this.Cc[g.field]),this.Cc[g.field]=setTimeout(function(){s()},N)}else s();y=E.valid}return y},i.prototype.load=function(){var h=this;this.form.forEach(function(v){h.processFormItem(v,0)});var b;try{var s=JSON.stringify(this.data);b=d(JSON.parse(s))}catch(v){throw new Error("The 'data' object is not serializable (it may contain circular dependencies): "+v)}for(var c in b)this.setValue(c,b[c])},i.prototype.setValue=function(h,b){this.Ac.forEach(function(s){s.applyValue(h,b)})},i.prototype.updateDependentState=function(){var h=this,b=[!0];(this.Bc?this.Bc:this.Ac).forEach(function(s){var c=h.updateState(s,{enabled:b[s.level]&&!s.data.disabled});c.isValue&&(b[c.level+1]=c.enabled&&c.checked)})},i.prototype.processFormItem=function(h,b){var s=this,c=this.getFieldType(h),v=[];if(c==="radio"){if(h.name){var g=new u;g.field=h.id,g.data=h,g.level=b,g.type="label",g.interactive=!1,g.text=h.name,s.Ac.push(g),v.push(g)}h.options.forEach(function(y){var _=new u;_.field=h.id,_.data=y,_.level=b,_.type=c,_.isValue=!0,_.text=y.name,_.resolved=y.id,s.Ac.push(_),v.push(_),y.children&&y.children.forEach(function(w){var S=s.processFormItem(w,b+1);v=v.concat(S)})})}else if(c==="title"){var g=new u;g.field=h.id,g.data=h,g.level=b,g.type=c,g.interactive=!1,g.text=h.name,s.Ac.push(g),v.push(g)}else if(c==="image"){var g=new u;g.isValue=!0,g.field=h.id,g.data=h,g.level=b,g.type=c,g.interactive=!1,g.text=null,s.Ac.push(g),v.push(g)}else if(c==="html"){var g=new u;g.isValue=!0,g.field=h.id,g.data=h,g.level=b,g.type=c,g.interactive=!1,g.text=null,s.Ac.push(g),v.push(g)}else if(c==="scrollable"){var g=new u;g.isValue=!0,g.field=h.id,g.data=h,g.level=b,g.type=c,g.interactive=!1,g.text=null,s.Ac.push(g),v.push(g)}else{var g=new u;g.field=h.id,g.data=h,g.level=b,g.type=c,g.text=h.name,g.children=[],s.Ac.push(g),v.push(g),c==="checkbox"&&(g.isValue=!0,g.resolved=!0,h.children&&h.children.forEac
27h(function(_){var w=s.processFormItem(_,b+1);v=v.concat(w)}))}return v},i.prototype.doOnKey=function(h){if(typeof this.onKey=="function"){var b={key:h};this.onKey(b)}},i.prototype.createInteractive=function(h){var b=this,s={label:function(){return new f},title:function(){return new f},image:function(){var c=new f,v=document.createElement("img");return v.src=h.data.image,c.element=v,c},html:function(){var c=new f,v=document.createElement("div");return typeof h.data.text=="string"?v.innerText=h.data.text:typeof h.data.html=="string"&&(v.innerHTML=h.data.html),c.element=v,c},scrollable:function(){var c=new f,v=document.createElement("div");v.className=b.theme+"_form_item_scrollable_scroll",h.data.height&&(v.style.height=h.data.height+"px");var g=document.createElement("div");return g.className=b.theme+"_form_item_scrollable_scroll_content",typeof h.data.text=="string"?g.innerText=h.data.text:typeof h.data.html=="string"&&(g.innerHTML=h.data.html),v.appendChild(g),c.element=v,c},text:function(){var c=new f;c.apply=function(g){c.row=g;var y=c.element;y.value=g.value,y.disabled=!g.enabled};var v=document.createElement("input");return v.name=h.field,v.type="text",v.autocomplete="off",v.onkeydown=function(g){var y=!1;switch(g.keyCode){case 13:b.doOnKey("Enter");break;case 27:b.doOnKey("Escape");break;default:y=!0}y||(g.preventDefault(),g.stopPropagation())},v.oninput=function(){c.onInput()},v.onblur=function(){c.onBlur()},c.element=v,c.canFocus=function(){return!c.element.disabled},c.focus=function(){c.element.focus(),c.element.setSelectionRange(0,c.element.value.length)},c.save=function(){var g={};return g[h.field]=v.value,g},c},textarea:function(){var c=new f;c.apply=function(g){c.row=g;var y=c.element;y.value=g.value,y.disabled=!g.enabled};var v=document.createElement("textarea");return v.name=h.field,h.data.height&&(v.style.height=h.data.height+"px"),v.onkeydown=function(g){var y=!1;switch(g.keyCode){case 13:(g.ctrlKey||g.metaKey)&&b.doOnKey("Enter"),y=!1;break;case 27:b.doOnKey("Escape");break;default:y=!0}y||g.stopPropagation()},v.oninput=function(){c.onInput()},v.onblur=function(){c.onBlur()},c.element=v,c.canFocus=function(){return!c.element.disabled},c.focus=function(){c.element.focus(),c.element.setSelectionRange(0,0)},c.save=function(){var g={};return g[h.field]=v.value,g},c},date:function(){var c=new f;c.apply=function(y){c.row=y;var _=c.element,w=c.picker;y.data.dateFormat&&(w.pattern=y.data.dateFormat);var S=y.data.locale||b.locale;S&&(w.locale=S),_.disabled=!y.enabled,w.date=new e.Date(y.value);var E=new e.Date(y.value).toString(y.data.dateFormat||w.pattern,w.locale);_.value=E};var v=document.createElement("input");v.name=h.field;var g=new e.DatePicker({target:v,theme:"navigator_modal",zIndex:b.zIndex+1,resetTarget:!1,targetAlignment:"left",onTimeRangeSelect:function(){c.onInput({immediate:!0})}});return v.picker=g,v.className=b.theme+"_input_date",v.type="text",v.onkeydown=function(y){var _=!1;switch(y.keyCode){case 13:g.visible?g.close():b.doOnKey("Enter");break;case 27:g.visible?g.close():b.doOnKey("Escape");break;case 9:g.close(),_=!0;break;default:_=!0}_||(y.preventDefault(),y.stopPropagation())},v.onfocus=function(){g.show()},v.onclick=function(){g.show()},v.oninput=function(){c.onInput()},v.onblur=function(){c.onBlur()},c.element=v,c.picker=g,c.canFocus=function(){return!c.element.disabled},c.focus=function(){c.element.focus()},c.save=function(){var y=g.date?g.date.toString():null,_={};return _[h.field]=y,_},c},time:function(){return b.Gc(h)},datetime:function(){return b.Hc(h)},select:function(){var c=new f;c.apply=function(g){c.row=g;var y=c.element;y.value=g.value,y.disabled=!g.enabled};var v=document.createElement("select");return v.name=h.field,h.data.options&&h.data.options.forEach&&h.data.options.forEach(function(g){var y=document.createElement("option");y.innerText=g.name||g.id,y.value=g.id,y.Ic=g.id,v.appendChild(y)}),v.onchange=function(){c.onInput({immediate:!0})},v.onblur=function(){c.onBlur()},c.element=v,c.canFocus=function(){return!c.element.disabled},c.focus=function(){c.element.focus()},c.save=function(){var g=null,y=v.options[v.selectedIndex];y&&typeof y.Ic<"u"&&(g=y.Ic);var _={};return _[h.field]=g,_},c},searchable:function(){var c=new f;c.apply=function(y){c.row=y;var _=c.searchable;_.disabled=!y.enabled,_.select(y.value)};var v=new l({data:h.data.options||[],name:h.field,theme:b.theme+"_form_item_searchable",listZIndex:b.zIndex+1,onSelect:function(y){y.ui&&c.onInput({immediate:!0})}}),g=v.create();return c.element=g,c.searchable=v,c.canFocus=function(){return!c.searchable.disabled},c.focus=function(){c.searchable.focus()},c.save=function(){var y=v.selected&&v.selected.id,_={};return _[h.field]=y,_},c},radio:function(){var c=new f;c.apply=function(_){c.row=_;var w=c.radio;w.checked=_.checked,w.disabled=!_.enabled};var v=document.createElement("label"),g=document.createElement("input");g.type="radio",g.name=h.field,g.Ic=h.resolved,g.onchange=function(){var _=c.row;
27b.findRowsByField(_.field).forEach(function(w){b.updateState(w,{checked:!1})}),b.updateState(_,{checked:!0}),b.applyState(),c.onInput({immediate:!0})},g.onblur=function(){c.onBlur()},v.appendChild(g);var y=document.createTextNode(h.text);return v.append(y),c.element=v,c.radio=g,c.canFocus=function(){return!1},c.focus=function(){c.radio.focus()},c.save=function(){if(!g.checked)return{};var _=g.Ic,w={};return w[h.field]=_,w},c},checkbox:function(){var c=new f;c.apply=function(_){c.row=_;var w=c.checkbox;w.checked=_.checked,w.disabled=!_.enabled};var v=document.createElement("label"),g=document.createElement("input");g.type="checkbox",g.name=h.field,g.Ic=h.resolved,g.onchange=function(){var _=c.row;b.updateState(_,{checked:this.checked}),b.applyState(),c.onInput({immediate:!0})},g.onblur=function(){c.onBlur()},v.appendChild(g);var y=document.createTextNode(h.text);return v.append(y),c.element=v,c.checkbox=g,c.canFocus=function(){return!1},c.focus=function(){c.checkbox.focus()},c.save=function(){var _=g.checked,w={};return w[h.field]=_,w},c},table:function(){var c=new f;c.apply=function(y){c.row=y;var _=c.table;_.disabled=!y.enabled,_.load(y.value||[])};var v=new o({name:h.field,form:b,theme:b.theme+"_form_item_tabular",item:h.data,onInput:function(){c.onInput()}}),g=v.create();return c.element=g,c.table=v,c.canFocus=function(){return!1},c.focus=function(){c.table.focus()},c.save=function(){var y=v.save(),_={};return _[h.field]=y,_},c}};return b.plugins&&b.plugins[h.type]?b.plugins[h.type](h):s[h.type]()},i.prototype.Gc=function(h){var b=this,s=new f;s.apply=function(B){s.row=B;var M=s.searchable;M.disabled=!B.enabled,M.select(B.value)};var c=[],v=h.data.timeInterval||15;[1,5,10,15,20,30,60].includes(v)||(v=15);for(var g=60/v,y=h.data.locale||b.locale,_=e.Locale.find(y)||e.Locale.US,w=e.Date.today(),S=0;S<24*g;S++){var E=w.addMinutes(v*S),T={};T.name=E.toString(h.data.timeFormat||_.timePattern,_),T.id=E.toString("HH:mm"),c.push(T)}var C=new l({data:c,name:h.field,theme:b.theme+"_form_item_time",listZIndex:b.zIndex+1,strategy:"startsWith",onSelect:function(B){B.ui&&s.onInput({immediate:!0})}}),N=C.create();return s.element=N,s.searchable=C,s.canFocus=function(){return!s.searchable.disabled},s.focus=function(){s.searchable.focus()},s.save=function(){var B=C.selected&&C.selected.id,M={};return M[h.field]=B,M},s},i.prototype.Hc=function(h){var b=this,s=new f;s.apply=function(y){s.row=y;var _=s.searchable;_.disabled=!y.enabled;var w=new e.Date(y.value).toString("HH:mm");_.select(w);var S=s.dateInput,E=s.picker;y.data.dateFormat&&(E.pattern=y.data.dateFormat);var T=y.data.locale||b.locale;if(T){var C=e.Locale.find(T)||e.Locale.US;E.locale=T,E.pattern=C.datePattern}S.disabled=!y.enabled,E.date=new e.Date(y.value);var N=new e.Date(y.value).toString(y.data.dateFormat||E.pattern,E.locale);S.value=N};var c=(function(){var y=document.createElement("input");y.name=h.field;var _=new e.DatePicker({target:y,theme:"navigator_modal",zIndex:b.zIndex+1,resetTarget:!1,targetAlignment:"left",onTimeRangeSelect:function(){s.onInput({immediate:!0})}});return y.picker=_,y.className=b.theme+"_input_date",y.type="text",y.onkeydown=function(w){var S=!1;switch(w.keyCode){case 13:_.visible?_.close():b.doOnKey("Enter");break;case 27:_.visible?_.close():b.doOnKey("Escape");break;case 9:_.close(),S=!0;break;default:S=!0}S||(w.preventDefault(),w.stopPropagation())},y.onfocus=function(){_.show()},y.onclick=function(){_.show()},y.oninput=function(){s.onInput()},y.onblur=function(){s.onBlur()},s.dateInput=y,s.picker=_,y})(),v=(function(){var y=[],_=h.data.timeInterval||15;[1,5,10,15,20,30,60].includes(_)||(_=15);for(var w=60/_,S=h.data.locale||b.locale,E=e.Locale.find(S)||e.Locale.US,T=e.Date.today(),C=0;C<24*w;C++){var N=T.addMinutes(_*C),B={};B.name=N.toString(h.data.timeFormat||E.timePattern,E),B.id=N.toString("HH:mm"),y.push(B)}var M=new l({data:y,name:h.field,theme:b.theme+"_form_item_time",listZIndex:b.zIndex+1,strategy:"startsWith",onSelect:function(L){L.ui&&s.onInput({immediate:!0})}});return s.searchable=M,M.create()})(),g=document.createElement("div");return g.className=b.theme+"_form_item_datetime_parent",g.appendChild(c),g.appendChild(v),s.element=g,s.c
27anFocus=function(){return!s.searchable.disabled},s.focus=function(){s.dateInput.focus()},s.save=function(){var y=s.searchable.selected&&s.searchable.selected.id,_=s.picker.date?s.picker.date.toString():null,w=new e.Date(_).getDatePart(),S=e.Date.parse(w.toString("yyyy-dd-MM ")+y,"yyyy-dd-MM HH:mm"),E={};return E[h.field]=S,E},s},i.prototype.findRowsByField=function(h){return this.Ac.filter(function(b){return b.field===h})},i.prototype.findViewById=function(h,b){return this.j.find(function(s){return s.row.field===h&&(s.row.type!=="radio"||s.row.resolved===b)})},i.prototype.firstFocusable=function(){return this.j.find(function(h){return h.canFocus&&h.canFocus()})},i.prototype.updateState=function(h,b){var s=this.Bc?this.Bc:this.Ac,c=s.indexOf(h);return this.Bc=s.map(function(v){if(v!==h)return v;if(h.propsEqual(b))return h;var g=h.clone();for(var y in b)g[y]=b[y];return g}),this.Bc[c]},i.prototype.updateInteractive=function(h){var b=this.Bc.indexOf(h);this.j[b].apply(h)},i.prototype.applyState=function(){var h=this;this.updateDependentState(),this.Bc&&(this.Bc.filter(function(b,s){return h.Ac[s]!==b}
27).forEach(function(b){h.updateInteractive(b)}),this.Ac=this.Bc,this.Bc=null)},i.prototype.getFieldType=function(h){return["text","date","select","searchable","radio","checkbox","table","title","image","html","textarea","scrollable","time","datetime"].indexOf(h.type)!==-1||h.type&&this.plugins&&this.plugins[h.type]?h.type:h.image?"image":h.html||h.text?"html":h.id?h.options?"searchable":h.dateFormat?"date":h.columns?"table":"text":"title"},i.prototype.serialize=function(){var h={};return this.j.forEach(function(b){var s=b.save();for(var c in s)h[c]=s[c]}),h},u.prototype.clone=function(){var h=new u;for(var b in this)b!=="id"&&(h[b]=this[b]);return h},u.prototype.propsEqual=function(h){for(var b in h)if(this[b]!==h[b])return!1;return!0},u.prototype.guid=function(){var h=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return""+h()+h()+"-"+h()+"-"+h()+"-"+h()+"-"+h()+h()+h()},u.prototype.applyValue=function(h,b){this.field===h&&(this.value=b,this.isValue&&b===this.resolved&&(this.checked=!0))},e.Modal.Experimental={},e.Modal.Experimental.Form=i,l.prototype.select=function(h){return this.Kc=this.data.find(function(b){return b.id===h}),this.Rc(!1),this},l.prototype.create=function(){function h(M){var L=w.strategy;w.strategy!=="includes"&&w.strategy!=="startsWith"&&(L="includes"),M=M||L||"includes",C.style.display="",C.style.top=B.offsetHeight+"px",C.style.left="0px",C.style.width=B.offsetWidth+"px",C.innerHTML="",C.addEventListener("mousedown",function($){$.preventDefault()}),w.Lc=null,w.s=[];var I=null;w.data.forEach(function($){var O=$.name||$.id;if(M==="includes"){if(O.toLowerCase().indexOf(B.value.toLowerCase())===-1)return}else if(M==="startsWith"&&O.toLowerCase().indexOf(B.value.toLowerCase())!==0)return;var H=document.createElement("div");H.className=w.theme+"_list_item",H.innerText=O,H.item=$,$===w.Kc&&(w.Lc=H),I||(I=H),H.addEventListener("mousedown",function(D){c(H),D.preventDefault()}),H.addEventListener("mousemove",function(){w.Lc!==H&&(w.Lc=H,b({dontScroll:!0}))}),C.appendChild(H),w.s.push(H)}),w.Lc||(w.Lc=I),b()}function b(M){M=M||{};var L=!M.dontScroll;document.querySelectorAll("."+w.theme+"_list_item_highlight").forEach(function(I){I.className=I.className.replace(w.theme+"_list_item_highlight","")}),w.Lc&&(w.Lc.className+=" "+w.theme+"_list_item_highlight",L&&!s(w.Lc,C)&&w.Lc.scrollIntoView())}function s(M,L){var I=M.getBoundingClientRect(),$=L.getBoundingClientRect();return I.top>=$.top&&I.bottom<=$.bottom}function c(M){var L=M.item;w.Kc=L,w.Rc(!0),g(),y()}function v(){w.Qc()}function g(){w.t()}function y(){w.Mc=!0,B.setAttribute("readonly","readonly"),B.focus()}function _(){w.Mc=!1,B.removeAttribute("readonly"),B.select(),h("all")}var w=this,S=this,E=document.createElement("div");E.className=this.theme+"_main",E.style.position="relative";var T=document.createElement("div");T.className=this.theme+"_icon",T.style.position="absolute",T.style.right="0",T.style.top="0",T.style.bottom="0",T.style.width="20px",T.addEventListener("mousedown",function(M){M.preventDefault(),w.Mc?(w.focus(),_()):(v(),y())});var C=document.createElement("div");C.className=this.theme+"_list",C.style.display="none",C.style.position="absolute",C.style.zIndex=this.listZIndex;var N=document.createElement("input");N.type="hidden",N.name=this.name,N.searchable=S,this.Pc=N;var B=document.createElement("input");return B.type="text",B.className=this.theme+"_input",B.disabled=this.Jc,B.addEventListener("click",function(){_()}),B.addEventListener("focus",function(){h("all")}),B.addEventListener("input",function(){h()}),B.addEventListener("blur",function(){B.removeAttribute("readonly"),v()}),B.addEventListener("keydown",function(M){if(w.Mc){if(M.key==="Enter"||M.key==="Esc"||M.key==="Escape")return;_()}if(M.key==="ArrowDown"){var L=S.s.indexOf(S.Lc);L+1<S.s.length&&(S.Lc=S.s[L+1]),b()}else if(M.key==="ArrowUp"){var L=S.s.indexOf(S.Lc);L-1>=0&&(S.Lc=S.s[L-1]),b()}else M.key==="Enter"?w.Lc?(M.stopPropagation(),c(w.Lc)):(M.stopPropagation(),v(),y()):M.key!=="Esc"&&M.key!=="Escape"||(M.stopPropagation(),v(),y())}),this.Nc=B,this.Oc=C,this.Kc||(this.Kc=this.data[0],this.Kc&&(B.value=this.Kc.name)),E.appendChild(B),E.appendChild(T),E.appendChild(N),E.appendChild(C),E},l.prototype.Qc=function(){this.t(),this.Kc?this.Nc.value=this.Kc.name:(this.Nc.value="",this.Rc(!0))}
27,l.prototype.focus=function(){this.Mc=!0,this.Nc.setAttribute("readonly","readonly"),this.Nc.focus(),this.Qc()},l.prototype.t=function(){this.Oc.style.display="none"},l.prototype.Rc=function(h){if(this.Pc.value=this.selected?this.selected.id:null,this.Kc?this.Nc.value=this.Kc.name:this.Nc.value="",typeof this.onSelect=="function"){var b={control:this,ui:h};this.onSelect(b)}},o.prototype.create=function(){var h=this,b=document.createElement("div");b.className=this.theme+"_main",b.style.position="relative";var s=document.createElement("input");s.type="hidden",s.name=h.name,s.table=this,b.appendChild(s);var c=document.createElement("div");c.className=this.theme+"_table";var v=this.Tc();c.appendChild(v);var g=h.Uc({});g.spacer=!0;var y=this.Vc(g);y.classList.add(h.theme+"_spacer"),c.appendChild(y);var _=document.createElement("div");_.className=h.theme+"_tbody",c.appendChild(_),b.appendChild(c);var w=document.createElement("div");b.appendChild(w),this.nav.body=_,this.nav.table=c,this.nav.main=b,this.nav.after=w;var S=document.createElement("div"),E=document.createElement("span");return E.className=this.theme+"_plus",E.addEventListener("click",function(){if(!h.disabled){var T=h.item.onNewRow,C={};if(typeof T=="function"){var N={};N.result=h.form.serialize(),N.value={},T(N),C=N.value}var B=h.Uc(C);h.Ac.push(B),h.Wc(),h.Xc()}}),this.nav.plus=E,S.appendChild(E),b.appendChild(S),b},o.prototype.Tc=function(){var h=this,b=document.createElement("div");return b.classList.add(this.theme+"_row"),b.classList.add(this.theme+"_header"),this.item.columns.forEach(function(s){var c=document.createElement("div");c.classList.add(h.theme+"_cell"),c.innerText=s.name,b.appendChild(c)}),b},o.prototype.Yc=function(){var h=this.item.max||0;return!!(h&&this.Ac.length>=h)},o.prototype.save=function(){var h=this,b=[];return h.Ac.forEach(function(s){var c={};s.cells.forEach(function(v){c[v.id]=v.value}),b.push(c)}),b},o.prototype.load=function(h){if(Object.prototype.toString.call(h)!=="[object Array]")throw new Error("Array expected");this.data=h,this.Zc(),this.Wc()},o.prototype.$c=function(){this.disabled?this.nav.main.classList.add(this.theme+"_disabled"):this.nav.main.classList.remove(this.theme+"_disabled"),this.Yc()?this.nav.plus.classList.add(this.theme+"_plus_max"):this.nav.plus.classList.remove(this.theme+"_plus_max")},o.prototype.Zc=function(){var h=this;this.Ac=[],this.data.forEach(function(b){var s=h.Uc(b);h.Ac.push(s)})},o.prototype._c=function(h){var b=this,s=b.Ac.indexOf(h);b.Ac.splice(s,1)},o.prototype.Uc=function(h){var b=this,s={};return s.data=h,s.cells=[],b.item.columns.forEach(function(c){var v=c.id,g=h[v],y=b.ad(c);if(typeof g>"u"){if(y==="text")g="";else if(y==="number")g=0;else if(y==="select"){var _=c.options;g=_&&_[0].id}}var w={};w.id=v,w.value=g,w.type=y,w.data=c,s.cells.push(w)}),s},o.prototype.ad=function(h){var b=h.type;return b||(b=h.options?"select":"text"),b},o.prototype.Wc=function(){var h=this;if(this.nav.body.innerHTML="",this.nav.after.innerHTML="",this.Ac.forEach(function(s){var c=h.Vc(s);h.nav.body.appendChild(c)}),this.Ac.length===0){var b=h.bd();h.nav.after.appendChild(b)}this.$c()},o.prototype.bd=function(){var h=document.createElement("div");return h.className=this.theme+"_empty",h},o.prototype.Vc=function(h){var b=this,s=document.createElement("div");s.className=b.theme+"_row",h.cells.forEach(function(g){var y=document.createElement("div");y.className=b.theme+"_cell";var _=b.cd(g);if(h.spacer){var w=document.createElement("div");w.style.height="0px",w.style.overflow="hidden",w.appendChild(_),y.appendChild(w)}else y.appendChild(_);s.appendChild(y)});var c=document.createElement("div");c.classList.add(b.theme+"_cell"),c.classList.add(b.theme+"_rowaction");var v=document.createElement("span");return v.className=this.theme+"_delete",v.addEventListener("click",function(){b.disabled||(b._c(h),b.Wc(),b.Xc())}),h.spacer||c.appendChild(v),s.appendChild(c),s},o.prototype.Xc=function(){var h=this;if(typeof h.onInput=="function"){var b={};h.onInput(b)}},o.prototype.cd=function(h){var b=this,s=h.type;if(s==="text"||s==="number"){var c=document.createElement("input");return c.type=s,b.disabled&&(c.disabled=!0),h.value&&(c.value=h.value),
27c.addEventListener("keyup",function(){s==="number"?h.value=Number(this.value):h.value=this.value,b.Xc()}),c}if(s==="select"){var v=document.createElement("select");return b.disabled&&(v.disabled=!0),h.data.options.forEach(function(g){var y=document.createElement("option");y.innerText=g.name,y.value=g.id,y.Ic=g.id,v.appendChild(y),h.value===g.id&&y.setAttribute("selected",!0)}),v.addEventListener("change",function(){var g=v.options[v.selectedIndex];g&&typeof g.Ic<"u"&&(h.value=g.Ic),b.Xc()}),v}throw new Error("Unsupported item type: "+s)},o.prototype.focus=function(){}}})(t),(function(e){if(typeof e.Month>"u"||!e.Month.events){var r={},i=e.Util.isVueVNode;r.Month=function(u,f){this.v="${v}",this.nav={};var d=this;this.id=u,this.isMonth=!0,this.api=2,this.backendUrl=null,this.cellHeaderHeight=24,this.cellHeight=100,this.cellMarginBottom=0,this.contextMenu=null,this.cssClassPrefix="month_default",this.eventBarVisible=!0,this.eventBorderRadius=null,this.eventHeight=25,this.eventsLoadMethod="GET",this.headerHeight=30,this.hideUntilInit=!0,this.lineSpace=1,this.locale="en-us",this.showToolTip=!0,this.startDate=new e.Date,this.theme=null,this.visible=!0,this.weekStarts="Auto",this.width="100%",this.xssProtection="Enabled",this.afterRender=function(){},this.cellHeaderClickHandling="Enabled",this.eventClickHandling="Enabled",this.eventDeleteHandling="Disabled",this.eventMoveHandling="Update",this.eventResizeHandling="Update",this.eventRightClickHandling="ContextMenu",this.headerClickHandling="Enabled",this.timeRangeSelectedHandling="Enabled",this.onCellHeaderClick=null,this.onCellHeaderClicked=null,this.onEventClick=null,this.onEventClicked=null,this.onEventDelete=null,this.onEventDeleted=null,this.onEventMove=null,this.onEventMoved=null,this.onEventResize=null,this.onEventResized=null,this.onEventRightClick=null,this.onEventRightClicked=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.onBeforeEventRender=null,this.onBeforeCellRender=null,this.cellEvents=[],this.elements={},this.elements.events=[],this.cache={},this.R=!1,this.S={};var l=this.S;this.Y=function(o){var n=JSON.parse(o);return n.CallBackRedirect?void(document.location.href=n.CallBackRedirect):(n.UpdateType==="None"||(d.events.list=n.Events,n.UpdateType==="Full"&&(d.startDate=n.StartDate,d.timeFormat=n.TimeFormat?n.TimeFormat:d.timeFormat,typeof n.WeekStarts<"u"&&(d.weekStarts=n.WeekStarts),d.hashes=n.Hashes),d._(),d.dd(),d.ia(),n.UpdateType==="Full"&&(d.ed(),d.fd()),d.na(),d.show(),d.oa()),void d.fireAfterRenderDetached(n.CallBackData,!0))},this.fireAfterRenderDetached=function(o,n){var p=function(a,m){return function(){d.afterRender&&d.afterRender(a,m)}};window.setTimeout(p(o,n),0)},this.lineHeight=function(){return this.eventHeight+this.lineSpace},this.events={},this.events.add=function(o){var n=null;if(o instanceof e.Event)n=o.data;else{if(typeof o!="object")throw"DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";n=o}d.events.list||(d.events.list=[]),d.events.list.push(n),d.update(),d.xa.notify()},this.events.find=function(o){if(!d.events.list)return null;if(typeof o=="function"){for(var n=o,p=0;p<d.events.list.length;p++){var a=new e.Event(d.events.list[p],d);if(n(a))return a}return null}for(var p=0;p<d.events.list.length;p++){var m=d.events.list[p];if(m.id===o)return new e.Event(m,d)}return null},this.events.update=function(o){if(o instanceof e.Event)o.commit();else if(typeof o=="object"){var n=d.events.find(o.id);if(n){var p=e.indexOf(d.events.list,n.data);d.events.list.splice(p,1,o)}}d.update(),d.xa.notify()},this.events.remove=function(o){var n;if(o instanceof e.Event)n=o.data;else if(typeof o=="object"){var p=d.events.find(o.id);p&&(n=p.data)}else if(typeof o=="string"||typeof o=="number"){var p=d.events.find(o);p&&(n=p.data)}var a=e.indexOf(d.events.list,n);d.events.list.splice(a,1),d.update(),d.xa.notify()},this.events.load=function(o,n,p){var a=function(s){var c={};c.exception=s.exception,c.request=s.request,typeof p=="function"&&p(c)},m=function(s){var c,v=s.request;try{c=JSON.parse(v.responseText)}catch(_){var g={};return g.exception=_,void a(g)}if(e.isArray(c)){var y={};if(y.preventDefault=function(){this.preventDefault.value=!0},y.data=c,typeof n=="function"&&n(y),y.preventDefault.value)return;d.events.list=c,d.Ma&&d.update()}};if(d.eventsLoadMethod&&d.eventsLoadMethod.toUpperCase()==="POST")e.Http.aja
27x({method:"POST",data:{start:d.visibleStart().toString(),end:d.visibleEnd().toString()},url:o,success:m,error:a});else{var h=o,b="start="+d.visibleStart().toString()+"&end="+d.visibleEnd().toString();h+=h.indexOf("?")>-1?"&"+b:"?"+b,e.Http.ajax({method:"GET",url:h,success:m,error:a})}},this.events.forRange=function(o,n){o=new e.Date(o),n=new e.Date(n);var p=(d.events.list||[]).map(function(a){return new e.Event(a)});return p.sort(d.Ab),p.filter(function(a){var m=a.start(),h=a.end();return m===h&&m===o||e.Util.overlaps(o,n,m,h)})},this.update=function(o){if(d.tb(o),this.Ma){if(d.R)throw new e.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");this.cells&&(d._(),d.dd(),d.ia(),d.ed(),d.fd(),d.na(),d.z(),d.oa(),this.visible?this.show():this.hide())}},this.vb=null,this.tb=function(o){if(o){var n={events:{preInit:function(){var m=this.data||[];e.isArray(m.list)?d.events.list=m.list:d.events.list=m}}};this.vb=n;for(var p in o)if(n[p]){var a=n[p];a.data=o[p],a.preInit&&a.preInit()}else d[p]=o[p]}},this.wb=function(){var o=this.vb;for(var n in o){var p=o[n];p.postInit&&p.postInit()}},this.yb={},this.yb.events=[],this.zb=function(o){var n=this.yb.events,p=this.events.list[o],a={};for(var m in p)a[m]=p[m];if(typeof this.onBeforeEventRender=="function"){var h={};h.control=d,h.data=a,this.onBeforeEventRender(h)}n[o]=a},this.ia=function(){var o=this.events.list;if(o){if(!e.isArray(o))throw new e.Exception("DayPilot.Month.events.list expects an array object. You supplied: "+typeof o);if(typeof this.onBeforeEventRender=="function")for(var n=0;n<o.length;n++)this.zb(n);for(var p=0;p<o.length;p++){var a=o[p];if(typeof a!="object")throw new e.Exception("Event data item must be an object");if(!a.start)throw new e.Exception("Event data item must specify 'start' property");if(!a.end)throw new e.Exception("Event data item must specify 'end' property");var m=new e.Date(a.start),h=new e.Date(a.end);if(!(m.getTime()>h.getTime()))for(var n=0;n<this.rows.length;n++){var b=this.rows[n],s=new e.Event(a,this);b.belongsHere(s)&&(b.events.push(s),typeof this.onBeforeEventRender=="function"&&(s.cache=this.yb.events[p]))}}for(var c=0;c<this.rows.length;c++){var b=this.rows[c];b.events.sort(this.Ab);for(var v=0;v<this.rows[c].events.length;v++){var g=b.events[v],y=b.getStartColumn(g),_=b.getWidth(g);b.putIntoLine(g,y,_,c)}}}},this._=function(){for(var o=0;o<this.elements.events.length;o++){var n=this.elements.events[o];d.Pa(n)}this.elements.events=[]},this.Pa=function(o){(function(){var n=o.domArgs;if(o.domArgs=null,n&&typeof d.onBeforeEventDomRemove=="function"&&d.onBeforeEventDomRemove(n),n&&typeof d.onBeforeEventDomAdd=="function"){var p=n&&n.Qa;p&&d.Sa.Ra&&i(n.element)&&(d.Sa.Ta=!0,d.Sa.Ua(p),d.Sa.Ta=!1)}})(),o.event=null,o.click=null,o.parentNode.removeChild(o)},this.oa=function(){this.gd()},this.gd=function(){this.elements.events=[];for(var o=0;o<this.rows.length;o++)for(var n=this.rows[o],p=0;p<n.lines.length;p++)for(var a=n.lines[p],m=0;m<a.length;m++)this.Va(a[m])},this.Ab=function(o,n){if(!(o&&n&&o.start&&n.start))return 0;var p=o.start().getTime()-n.start().getTime();return p!==0?p:n.end().getTime()-o.end().getTime()},this.drawShadow=function(o,n,p,a,m){m||(m=0);var h=a;this.shadow={},this.shadow.list=[],this.shadow.start={x:o,y:n},this.shadow.width=a;var b=7*n+o-m;b<0&&(h+=b,o=0,n=0);for(var s=m;s>=7;)n--,s-=7;s>o?s>o+(7-this.getColCount())?(n--,o=o+7-s):(h=h-s+o,o=0):o-=s,n<0&&(n=0,o=0);var c=null;r.resizingEvent?c="w-resize":r.movingEvent&&(c="move"),this.nav.top.style.cursor=c;var v=d.eventBorderRadius;for(typeof v=="number"&&(v+="px");h>0&&n<this.rows.length;){var g=Math.min(this.getColCount()-o,h),y=this.rows[n],_=this.getRowTop(n),w=y.getHeight(),S=document.createElement("div");S.setAttribute("unselectable","on"),S.style.position="absolute",S.style.left=this.getCellWidth()*o+"%",S.style.width=this.getCellWidth()*g+"%",S.style.top=_+"px",S.style.height=w+"px",S.style.cursor=c,S.classList.add(d.M("_shadow"));var E=document.createElement("div");E.setAttribute("unselectable","on"),S.appendChild(E),E.style.position="absolute",E.style.top="0px",E.style.right="0px",E.style.left="0px",E.style.bottom="0px",E.classList.add(d.M("_shadow_inner")),v&&(h===a&&(S.style.borderTopLeftRadius=v,S.style.borderBottomLeftRadius=v,E.style.borderTopLeftRadius=v,E.style.borderBottomLeftRadius=v),h<=g&&(S.style.borderTopRightRadius=v,S.style.borderBottomRightRadius=v,E.style.borderTopRightRadius=v,E.style.borderBottomRightRadius=v)),this.nav.top.appendChild(S),this.shadow.list.push(S),h-=g+7-this.getColCount(),o=0,n++}},this.clearShadow=function(){if(this.shadow){for(var o=0;o<this.shadow.list.length;o++)this.nav.top.removeChild(this.shadow.list[o]);this.shadow=null,this.nav.top.style.cursor=""}},this.getEventTop=function(o,n){for(var p=this.headerHeight,a=0;a<o;a++)p+=this.rows[a].getHeight();return p+=this.cellHeaderHeight,p+=n*this.lineHeight()},this.getDateFromCell=function(o,n){return this.firstDate.addDays(7*n+o)},this.Va=function(o){var n=o.cache||o.data,p=n.borderRadius||d.eventBorderRadius;typeof p=="number"&&(p+="px");var a=o.part.row,m=o.part.line,h=o.part.colStart,b=o.part.colWidth,s=this.getCellWidth()*h,c=this.getCellWidth()*b,v=this.getEventTop(a,m),g=document.createElement("div");g.setAttribute("unselectable","on"),g.style.height=this.eventHeight+"px",g.style.overflow="hidden",g.className=this.M("_event"),n.cssClass&&e.Util.addClass(g,
27n.cssClass),o.part.startsHere||e.Util.addClass(g,this.M("_event_continueleft")),o.part.endsHere||e.Util.addClass(g,this.M("_event_continueright")),g.event=o,g.style.width=c+"%",g.style.position="absolute",g.style.left=s+"%",g.style.top=v+"px",this.showToolTip&&o.client.toolTip()&&(g.title=o.client.toolTip()),g.onclick=d.wa,g.oncontextmenu=d.hd,g.onmousedown=function(N){N=N||window.event;var B=N.which||N.button;if(N.cancelBubble=!0,N.stopPropagation&&N.stopPropagation(),B===1){if(r.movingEvent=null,this.style.cursor==="w-resize"||this.style.cursor==="e-resize"){var M={};M.start={},M.start.x=h,M.start.y=a,M.event=g.event,M.width=e.DateUtil.daysSpan(M.event.start(),M.event.end())+1,M.direction=this.style.cursor,r.resizingEvent=M}else if(this.style.cursor==="move"||o.client.moveEnabled()){d.clearShadow();var L=e.mo3(d.nav.top,N);if(!L)return;var I=d.getCellBelowPoint(L.x,L.y),$=e.DateUtil.daysDiff(o.start(),d.rows[a].start),O=7*I.y+I.x-(7*a+h);$&&(O+=$);var H={};H.start={},H.start.x=h,H.start.y=a,H.start.line=m,H.offset=d.eventMoveToPosition?0:O,H.colWidth=b,H.event=g.event,H.coords=L,r.movingEvent=H}}},g.onmousemove=function(N){if(typeof r<"u"&&!r.movingEvent&&!r.resizingEvent){var B=e.mo3(g,N);if(B){g.deleteIcon&&(g.deleteIcon.style.display="");var M=6;B.x<=M&&o.client.resizeEnabled()?o.part.startsHere?(g.style.cursor="w-resize",g.dpBorder="left"):g.style.cursor="not-allowed":g.clientWidth-B.x<=M&&o.client.resizeEnabled()?o.part.endsHere?(g.style.cursor="e-resize",g.dpBorder="right"):g.style.cursor="not-allowed":o.client.clickEnabled()?g.style.cursor="pointer":g.style.cursor="default"}}},g.onmouseleave=function(){g.deleteIcon&&(g.deleteIcon.style.display="none"),g.style.cursor=""},g.onmouseenter=function(){g.deleteIcon&&(g.deleteIcon.style.display="")};var y=document.createElement("div");if(y.setAttribute("unselectable","on"),y.className=this.M("_event_inner"),n.borderColor==="darker"&&n.backColor?y.style.borderColor=e.ColorUtil.darker(n.backColor,2):y.style.borderColor=n.borderColor,n.backColor&&(y.style.background=n.backColor),n.fontColor&&(y.style.color=n.fontColor),p&&(g.style.borderRadius=p,y.style.borderRadius=p),g.appendChild(y),o.client.barVisible()){var _=document.createElement("div");_.setAttribute("unselectable","on"),_.className=this.M("_event_bar"),_.style.position="absolute";var w=document.createElement("div");w.setAttribute("unselectable","on"),w.className=this.M("_event_bar_inner"),w.style.top="0%",w.style.height="100%",n.barColor&&(w.style.backgroundColor=n.barColor),_.appendChild(w),g.appendChild(_)}if(o.client.deleteEnabled()){var S=Math.floor(d.eventHeight/2-9),E=document.createElement("div");E.style.position="absolute",E.style.right="2px",E.style.top=S+"px",E.style.width="18px",E.style.height="18px",E.className=d.M("_event_delete"),E.onmousedown=function(N){N.stopPropagation()},E.onclick=function(N){N.stopPropagation();var B=this.parentNode.event;B&&d.za(B)},E.style.display="none",g.deleteIcon=E,g.appendChild(E)}var T=n.areas?e.Areas.copy(n.areas):[];if(e.Areas.attach(g,o,{areas:T}),typeof d.onAfterEventRender=="function"){var C={};C.e=g.event,C.div=g,d.onAfterEventRender(C)}(function(){var N={};if(N.control=d,N.e=o,N.element=null,g.domArgs=N,typeof d.onBeforeEventDomAdd=="function"&&d.onBeforeEventDomAdd(N),N.element){var B=y;if(B)if(N.Qa=B,i(N.element)){if(!d.Sa.Ra)throw new e.Exception("Can't reach Vue");d.Sa.Ta=!0,d.Sa.Wa(N.element,B,{style:{flexGrow:1}}),d.Sa.Ta=!1}else B.appendChild(N.element)}else y.innerHTML=o.client.innerHTML()})(),this.elements.events.push(g),this.nav.events.appendChild(g)},this.lastVisibleDayOfMonth=function(){return this.startDate.lastDayOfMonth()},this.dd=function(){typeof this.startDate=="string"&&(this.startDate=new e.Date(this.startDate)),this.startDate=this.startDate.firstDayOfMonth(),this.firstDate=this.startDate.firstDayOfWeek(this.getWeekStart());var o=this.lastVisibleDayOfMonth(),n=e.DateUtil.daysDiff(this.firstDate,o)+1,p=Math.ceil(n/7);this.days=7*p,this.rows=[];for(var a=function(b){var s={};s.start=m.firstDate.addDays(7*b),s.end=s.start.addDays(m.getColCount()),s.events=[],s.lines=[],s.index=b,s.minHeight=m.cellHeight,s.calendar=m,s.belongsHere=function(c){return c.end().getTime()===c.start().getTime()&&c.start().getTime()===this.start.getTime()||!(c.end().getTime()<=this.start.getTime()||c.start().getTime()>=this.end.getTime())},s.getPartStart=function(c){return e.DateUtil.max(this.start,c.start())},s.getPartEnd=function(c){return e.DateUtil.min(this.end,c.end())},s.getStartColumn=function(c){var v=this.getPartStart(c);return e.DateUtil.daysDiff(this.start,v)},s.getWidth=function(c){return e.DateUtil.daysSpan(this.getPartStart(c),this.getPartEnd(c))+1},s.putIntoLine=function(c,v,g,y){for(var _=s,w=0;w<this.lines.length;w++){var S=this.lines[w];if(S.isFree(v,g))return S.addEvent(c,v,g,y,w),w}var E=[];return E.isFree=function(T,C){for(var N=!0,B=0;B<this.length;B++)T+C-1<this[B].part.colStart||T>this[B].part.colStart+this[B].part.colWidth-1||(N=!1);return N},E.addEvent=function(T,C,N,B,M){T.part.colStart=C,T.part.colWidth=N,T.part.row=B,T.part.line=M,T.part.startsHere=_.start.getTime()<=T.start().getTime(),T.part.endsHere=_.end.getTime()>=T.end().getTime(),this.push(T)},E.addEvent(c,v,g,y,this.lines.length),this.lines.push(E),this.lines.length-1},s.getHeight=function(){return Math.max(this.lines.length*d.lineHeight()+d.cellHeaderHeight+d.cellMarginBottom,this.calendar.cellHeight)},m.rows.push(s)},m=this,h=0;h<p;h++)a(h);this.endDate=this.firstDate.addDays(7*p)},this.visibleStart=function(){return d.firstDate},this.visibleEnd=function(){return d.endDate},this.getHeight=function(){for(var o=this.headerHeight,n=0;n<this.rows.length;n++)o+=this.rows[n].getHeight();return o},this.getWidth=function(o,n){return 7*n.y+n.x-(7*o.y+o.x)+1},this.getMinCoords=function(o,n){return 7*o.y+o.x<7*n.y+n.x?o:n},this.M=function(o){var n=this.theme||this.cssClassPrefix;return n?n+o:""},this.Xa=function(){var o=this.nav.top;o.setAttribute("unselectable","on"),o.style.MozUserSelect="none",o.style.KhtmlUserSelect="none",o.style.WebkitUserSelect="none",o.style.position="relative",this.width&&(o.style.width=this.width),o.style.height=this.getHeight()+"px",o.onselectstart=function(){return!1},this.hideUntilInit&&(o.style.visibility="hidden"),this.visible||(o.style.display="none"),o.className=this.M("_main");var n=document.createElement("div");this.nav.cells=n,n.style.position="absolute",n.style.left="0px",n.style.right="0px",n.setAttribute("unselectable","on"),o.appendChild(n);var p=document.createElement("div");this.nav.events=p,p.style.position="absolute",p.style.left="0px",p.style.right="0px",p.setAttribute("unselectable","on"),o.appendChild(p),o.onmousemove=function(a){if
27(r.resizingEvent){var m=e.mo3(d.nav.top,a);if(!m)return;var h=d.getCellBelowPoint(m.x,m.y);d.clearShadow();var b=r.resizingEvent,s=void 0,c=void 0;if(b.direction==="w-resize"){c=h;var v=b.event.end();v.getDatePart()===v&&(v=v.addDays(-1));var g=d.getCellFromDate(v);s=d.getWidth(h,g)}else c=d.getCellFromDate(b.event.start()),s=d.getWidth(c,h);s<1&&(s=1),d.drawShadow(c.x,c.y,0,s)}else if(r.movingEvent){var m=e.mo3(d.nav.top,a);if(!m||m.x===r.movingEvent.coords.x&&m.y===r.movingEvent.coords.y)return;var y=3,_=Math.abs(m.x-r.movingEvent.coords.x)+Math.abs(m.y-r.movingEvent.coords.y);if(_<=y)return;var h=d.getCellBelowPoint(m.x,m.y);d.clearShadow();var w=r.movingEvent.event,S=r.movingEvent.offset,s=d.cellMode?1:e.DateUtil.daysSpan(w.start(),w.end())+1;s<1&&(s=1),d.drawShadow(h.x,h.y,0,s,S,w)}else if(r.timeRangeSelecting){var m=e.mo3(d.nav.top,a);if(!m)return;var h=d.getCellBelowPoint(m.x,m.y);d.clearShadow();var c=r.timeRangeSelecting,E=7*c.y+c.x,T=7*h.y+h.x,s=Math.abs(T-E)+1;s<1&&(s=1);var C=E<T?c:h;r.timeRangeSelecting.from={x:C.x,y:C.y},r.timeRangeSelecting.width=s,r.timeRangeSelecting.moved=!0,d.drawShadow(C.x,C.y,0,s,0,null)}}},this.na=function(){this.nav.top.style.height=this.getHeight()+"px";for(var o=0;o<this.cells.length;o++)for(var n=0;n<this.cells[o].length;n++)this.cells[o][n].style.top=this.getRowTop(n)+"px",this.cells[o][n].style.height=this.rows[n].getHeight()+"px"},this.getCellBelowPoint=function(o,n){for(var p=Math.floor(this.nav.top.clientWidth/this.getColCount()),a=Math.min(Math.floor(o/p),this.getColCount()-1),m=null,h=this.headerHeight,b=0,s=0;s<this.rows.length;s++){var c=h;if(h+=this.rows[s].getHeight(),n<h){b=n-c,m=s;break}}m===null&&(m=this.rows.length-1);var v={};return v.x=a,v.y=m,v.relativeY=b,v},this.getCellFromDate=function(o){for(var n=e.DateUtil.daysDiff(this.firstDate,o),p={x:0,y:0};n>=7;)p.y++,n-=7;return p.x=n,p},this.fd=function(){var o=document.createElement("div");o.oncontextmenu=function(){return!1},this.nav.cells.appendChild(o),this.cells=[];for(var n=0;n<this.getColCount();n++){this.cells[n]=[];var p=document.createElement("div");p.setAttribute("unselectable","on"),p.style.position="absolute",p.style.left=this.getCellWidth()*n+"%",p.style.width=this.getCellWidth()+"%",p.style.top="0px",p.style.height=this.headerHeight+"px";var a=n+this.getWeekStart();a>6&&(a-=7),p.className=this.M("_header");var m=document.createElement("div");m.setAttribute("unselectable","on"),m.innerHTML=l.locale().dayNames[a],p.appendChild(m),m.style.position="absolute",m.style.top="0px",m.style.bottom="0px",m.style.left="0px",m.style.right="0px",m.className=this.M("_header_inner"),m.innerHTML=l.locale().dayNames[a],o.appendChild(p);for(var h=0;h<this.rows.length;h++)this.jd(n,h,o)}},this.ed=function(){for(var o=0;o<this.cells.length;o++)for(var n=0;n<this.cells[o].length;n++){var p=d.cells[o][n];d.gb(p)}this.nav.cells.innerHTML=""},this.gb=function(o){(function(){var n=o.domArgs;if(o.domArgs=null,n&&typeof d.onBeforeCellDomRemove=="function"&&d.onBeforeCellDomRemove(n),n&&typeof d.onBeforeCellDomAdd=="function"){var p=n&&n.Qa;p&&d.Sa.Ra&&i(n.element)&&(d.Sa.Ta=!0,d.Sa.Ua(p),d.Sa.Ta=!1)}})(),o.onclick=null},this.va=function(){return d.api===2},this.jd=function(o,n,p){var a=this.rows[n],m=this.firstDate.addDays(7*n+o),h=m.getDay(),b=null;b=h===1?l.locale().monthNames[m.getMonth()]+" "+h:""+h;var s=!d.isWeekend(m),c={start:m,end:m.addDays(1),properties:{headerHtml:b,backColor:null,business:s,html:null}},v={};v.control=d,v.cell=c,typeof d.onBeforeCellRender=="function"&&d.onBeforeCellRender(v);var g=v.cell.properties,y=document.createElement("div");if(y.setAttribute("unselectable","on"),y.style.position="absolute",y.style.cursor="default",y.style.left=this.getCellWidth()*o+"%",y.style.width=this.getCellWidth()+"%",y.style.top=this.getRowTop(n)+"px",y.style.height=a.getHeight()+"px",y.className=this.M("_cell"),g.business){var _=this.M("_cell_business");e.Util.addClass(y,_)}var w=document.createElement("div");w.setAttribute("unselectable","on"),y.appendChild(w),w.style.position="absolute",w.style.left="0px",w.style.right="0px",w.style.top="0px",w.style.bottom="0px",w.className=this.M("_cell_inner"),g.backColor&&(w.style.backgroundColor=v.cell.properties.backColor),y.onmousedown=function(){d.timeRangeSelectedHandling!=="Disabled"&&(d.clearShadow(),r.timeRangeSelecting={root:d,x:o,y:n,from:{x:o,y:n},width:1})},y.onclick=function(){var T=function(C){var N=new e.Date(C),B=N.addDays(1);d.P(N,B)};if(d.timeRangeSelectedHandling!=="Disabled")return void T(m)};var S=document.createElement("div");if(S.setAttribute("unselectable","on"),S.style.height=this.cellHeaderHeight+"px",S.className=this.M("_cell_header"),S.onclick=function(T){if(d.cellHeaderClickHandling==="Enabled"){T.stopPropagation();var C={};C.control=d,C.start=m,C.end=m.addDays(1),C.preventDefault=function(){this.preventDefault.value=!0},typeof d.onCellHeaderClick=="function"&&(d.onCellHeaderClick(C),C.preventDefault.value)||typeof d.onCellHeaderClicked=="function"&&d.onCellHeaderClicked(C)}},S.innerHTML=g.headerHtml,w.appendChild(S),g.html){var E=document.createElement("div");E.style.height=a.getHeight()-this.cellHeaderHeight+"px",E.style.overflow="hidden",E.innerHTML=g.html,w.appendChild(E)}(function(){if(typeof d.onBeforeCellDomAdd=="function"||typeof d.onBeforeCellDomRemove=="function"){var T={};if(T.control=d,T.cell=c,T.element=null,y.domArgs=T,typeof d.onBeforeCellDomAdd=="function"&&d.onBeforeCellDomAdd(T),T.element){var C=w;if(C)if(T.Qa=C,i(T.element)){if(!d.Sa.Ra)throw new e.Exception("Can't reach Vue");d.Sa.Ta=!0,d.Sa.Wa(T.element,C),d.Sa.Ta=!1}else C.appendChild(T.element)}}})(),this.cells[o][n]=y,p.appendChild(y)},this.getWeekStart=function(){if(d.weekStarts==="Auto"){var o=l.locale();return o?o.weekStarts:0}return d.weekStarts||0},this.getColCount=function(){return 7},this.getCellWidth=function(){return 14.285},this.getRowTop=function(o){for(var n=this.headerHeight,p=0;p<o;p++)n+=this.rows[p].getHeight();return n},this.W=function(o,n,p){var a={};a.action=o,a.parameters=p,a.data=n,a.header=this.V();var m="JSON"+JSON.stringify(a);this.backendUrl&&e.request(this.backendUrl,this.X,m,this.ajaxError)},this.X=function(o){d.Y(o.responseText)},this.V=function(){var o={};return o.control="dpm",o.id=this.id,o.v=this.v,o.visibleStart=new e.Date(this.firstDate),o.visibleEnd=o.visibleStart.addDays(this.days),o.startDate=d.startDate,o.timeFormat=this.timeFormat,o.weekStarts=this.weekStarts,o},this.eventClickCallBack=function(o,n){this.W("EventClick",n,o)},this.wa=function(o){r.movingEvent=null,r.resizingEvent=null;var n=o.currentTarget;o.cancelBubble=!0,o.stopPropagation&&o.stopPropagation(),d.eventClickSingle(n,o)},this.eventClickSingle=function(o,n){var p=o.event;if(p&&p.client.clickEnabled())if(d.va()){var a={};if(a.e=p,a.control=d,a.div=o,a.originalEvent=n,a.meta=n.metaKey,a.ctrl=n.ctrlKey,a.preventDefault=function(){this.preventDefault.value=!0},typeof d.onEventClick=="function"&&(d.xa.apply(function(){d.onEventClick(a)}),a.preventDefault.value))return;switch(d.eventClickHandling){case"CallBack":d.eventClickCallBack(p);break;case"ContextMenu":var m=p.client.contextMenu();m?m.show(p):d.contextMenu&&d.contextMenu.show(p)}typeof d.onEventClicked=="function"&&d.xa.apply(function(){d.onEventClicked(a)})}else switch(d.eventClickHandling){case"CallBack":d.eventClickCallBack(p);break;case"JavaScript":d.onEventClick(p)}},this.hd=function(o){var n=o.currentTarget;return d.ya(n.event),!1}
27,this.ya=function(o){if(this.event=o,!o.client.rightClickEnabled())return!1;var n={};if(n.e=o,n.preventDefault=function(){this.preventDefault.value=!0},typeof d.onEventRightClick!="function"||(d.onEventRightClick(n),!n.preventDefault.value)){if(d.eventRightClickHandling==="ContextMenu"){var p=o.client.contextMenu();p?p.show(o):d.contextMenu&&d.contextMenu.show(this.event)}return typeof d.onEventRightClicked=="function"&&d.onEventRightClicked(n),!1}},this.za=function(o){if(d.va()){var n={};if(n.e=o,n.control=d,n.preventDefault=function(){this.preventDefault.value=!0},typeof d.onEventDelete=="function"&&(d.xa.apply(function(){d.onEventDelete(n)}),n.preventDefault.value))return;switch(d.eventDeleteHandling){case"CallBack":d.eventDeleteCallBack(o);break;case"PostBack":d.eventDeletePostBack(o);break;case"Update":d.events.remove(o)}typeof d.onEventDeleted=="function"&&d.xa.apply(function(){d.onEventDeleted(n)})}else switch(d.eventDeleteHandling){case"PostBack":d.eventDeletePostBack(o);break;case"CallBack":d.eventDeleteCallBack(o);break;case"JavaScript":d.onEventDelete(o)}},this.eventDeleteCallBack=function(o,n){this.W("EventDelete",n,o)},this.eventDeletePostBack=function(o,n){this.U("EventDelete",n,o)},this.eventMoveCallBack=function(o,n,p,a,m){if(!n)throw"newStart is null";if(!p)throw"newEnd is null";var h={};h.e=o,h.newStart=n,h.newEnd=p,h.position=m,this.W("EventMove",a,h)},this.N=function(o,n,p,a,m){var h=o.start().getTimePart(),b=o.end().getDatePart();b.getTime()!==o.end().getTime()&&(b=b.addDays(1));var s=e.DateUtil.diff(o.end(),b),c=this.getDateFromCell(n,p);c=c.addDays(-a);var v=e.DateUtil.daysSpan(o.start(),o.end())+1,g=c.addDays(v),y=c.addTime(h),_=g.addTime(s);if(d.va()){var w={};if(w.e=o,w.control=d,w.newStart=y,w.newEnd=_,w.ctrl=m.ctrlKey,w.shift=m.shiftKey,w.preventDefault=function(){this.preventDefault.value=!0},typeof d.onEventMove=="function"&&(d.xa.apply(function(){d.onEventMove(w)}),w.preventDefault.value))return;switch(d.eventMoveHandling){case"CallBack":d.eventMoveCallBack(o,y,_);break;case"Update":o.start(y),o.end(_),d.events.update(o)}typeof d.onEventMoved=="function"&&d.xa.apply(function(){d.onEventMoved(w)})}else switch(d.eventMoveHandling){case"CallBack":d.eventMoveCallBack(o,y,_);break;case"JavaScript":d.onEventMove(o,y,_)}},this.eventResizeCallBack=function(o,n,p,a){if(!n)throw"newStart is null";if(!p)throw"newEnd is null";var m={};m.e=o,m.newStart=n,m.newEnd=p,this.W("EventResize",a,m)},this.L=function(o,n,p){var a=o.start().getTimePart(),m=o.end().getDatePart();m.getTime()!==o.end().getTime()&&(m=m.addDays(1));var h=e.DateUtil.diff(o.end(),m),b=this.getDateFromCell(n.x,n.y),s=b.addDays(p),c=b.addTime(a),v=s.addTime(h);if(d.va()){var g={};if(g.e=o,g.control=d,g.newStart=c,g.newEnd=v,g.preventDefault=function(){this.preventDefault.value=!0},typeof d.onEventResize=="function"&&(d.xa.apply(function(){d.onEventResize(g)}),g.preventDefault.value))return;switch(d.eventResizeHandling){case"CallBack":d.eventResizeCallBack(o,c,v);break;case"Update":o.start(c),o.end(v),d.events.update(o)}typeof d.onEventResized=="function"&&d.xa.apply(function(){d.onEventResized(g)})}else switch(d.eventResizeHandling){case"CallBack":d.eventResizeCallBack(o,c,v);break;case"JavaScript":d.onEventResize(o,c,v)}},this.timeRangeSelectedCallBack=function(o,n,p){var a={};a.start=o,a.end=n,this.W("TimeRangeSelected",p,a)},this.P=function(o,n){if(this.va()){var p={};if(p.control=d,p.start=o,p.end=n,p.preventDefault=function(){this.preventDefault.value=!0},typeof d.onTimeRangeSelect=="function"&&(d.xa.apply(function(){d.onTimeRangeSelect(p)}),p.preventDefault.value))return;d.timeRangeSelectedHandling==="CallBack"&&d.timeRangeSelectedCallBack(o,n),typeof d.onTimeRangeSelected=="function"&&d.xa.apply(function(){d.onTimeRangeSelected(p)})}else switch(d.timeRangeSelectedHandling){case"CallBack":d.timeRangeSelectedCallBack(o,n);break;case"JavaScript":d.onTimeRangeSelected(o,n)}},this.xa={},this.xa.scope=null,this.xa.notify=function(){d.xa.scope&&d.xa.scope.$apply()},this.xa.apply=function(o){o()},this.clearSelection=function(){d.clearShadow()},this.commandCallBack=function(o,n){var p={};p.command=o,this.W("Command",n,p)},this.isWeekend=function(o){return o=new e.Date(o),o.dayOfWeek()===0||o.dayOfWeek()===6},this.S.locale=function(){var o=e.Locale.find(d.locale);return o||e.Locale.US},this.S.ea=function(){return d.xssProtection!=="Disabled"},this.debug=function(o){this.debuggingEnabled&&(d.debugMessages||(d.debugMessages=[]),d.debugMessages.push(o),typeof console<"u"&&console.log(o))},this.dispose=function(){var o=d;o.R||(o.R=!0,o.ed(),o._(),o.nav.top.removeAttribute("style"),o.nav.top.removeAttribute("class"),o.nav.top.innerHTML="",o.nav.top.dp=null,o.nav.top.onmousemove=null,o.nav.top=null)},this.disposed=function(){return this.R},this.qb=function(){r.globalHandlers||(r.globalHandlers=!0,e.re(document,"mouseup",r.gMouseUp))},this.loadFromServer=function(){return!(!this.backendUrl&&typeof WebForm_DoCallback!="function")&&(typeof d.events.list>"u"||!d.events.list)},this.z=function(){this.nav.top.style.visibility==="hidden"&&(this.nav.top.style.visibility="visible")},this.show=function(){d.visible=!0,d.nav.top.style.display=""},this.hide=function(){d.visible=!1,d.nav.top.style.display="none"},this.xb=function(){if(this.id&&this.id.tagName)this.nav.top=this.id;else{if(typeof this.id!="string")throw"DayPilot.Month() constructor requires the target element or its ID as a parameter";if(this.nav.top=document.getElementById(this.id),!this.nav.top)throw"DayPilot.Month: The placeholder element not found: '"+this.id+"'."}},this.Fb=function(){this.dd(),this.Xa(),this.fd(),this.qb(),this.W("Init")},this._a=function(o,n){return d.S.ea()?e.Util.escapeTextHtml(o,n):e.Util.isNullOrUndefined(n)?e.Util.isNullOrUndefined(o)?"":o:n},this.Sa={},this.Sa.Ra=null,this.Sa.Mb=function(o,n,p){var a=d.Sa.Ra;if(typeof a.createVNode=="function"&&typeof a.render=="function"){var m=a.createVNode(o,p);a.render(m,n)}},this.Sa.Wa=function(o,n,p){var a=d.Sa.Ra;if(typeof a.render=="function"){var m=o;e.isArray(o)&&(m=a.h("div",p,o)),a.render(m,n)}},this.Sa.Ua=function(o){var n=d.Sa.Ra;typeof n.render=="function"&&n.render(null,o)},this.internal={},this.internal.loadOptions=this.tb,this.internal.xssTextHtml=d._a,this.internal.upd=function(o){d.update(o)},this.internal.enableVue=function(o){d.Sa.Ra=o},this.internal.vueRef=function(){return d.Sa.Ra},this.internal.vueRendering=function(){return d.Sa.Ta},this.init=function(){return this.xb(),this.loadFromServer()?void this.Fb():(this.dd(),this.ia(),this.Xa(),this.fd(),this.z(),this.oa(),this.qb(),this.fireAfterRenderDetached(null,!1),this.Ma=!0,this)},this.Init=this.init,Object.defineProperty(this,"durationBarVisible",{get:function(){return d.eventBarVisible}}),this.tb(f)}
27,r.gMouseUp=function(u){if(r.movingEvent){var f=r.movingEvent;if(!f.event||!f.event.calendar||!f.event.calendar.shadow||!f.event.calendar.shadow.start)return;var d=r.movingEvent.event.calendar,l=r.movingEvent.event,o=d.shadow.start,n=d.shadow.position,p=r.movingEvent.offset;return d.clearShadow(),r.movingEvent=null,d.N(l,o.x,o.y,p,u,n),u.cancelBubble=!0,u.stopPropagation&&u.stopPropagation(),r.movingEvent=null,!1}if(r.resizingEvent){var f=r.resizingEvent;if(!f.event||!f.event.calendar||!f.event.calendar.shadow||!f.event.calendar.shadow.start)return;var d=r.resizingEvent.event.calendar,l=r.resizingEvent.event,o=d.shadow.start,a=d.shadow.width;return d.clearShadow(),r.resizingEvent=null,d.L(l,o,a),u.cancelBubble=!0,r.resizingEvent=null,!1}if(r.timeRangeSelecting){if(r.timeRangeSelecting.moved){var m=r.timeRangeSelecting,d=m.root,o=new e.Date(d.getDateFromCell(m.from.x,m.from.y)),h=o.addDays(m.width);d.P(o,h)}r.timeRangeSelecting=null}},e.Month=r.Month,typeof jQuery<"u"&&(function(u){u.fn.daypilotMonth=function(f){var d=null,l=this.each(function(){if(!this.daypilot){var o=new e.Month(this.id);this.daypilot=o;for(var n in f)o[n]=f[n];o.Init(),d||(d=o)}});return this.length===1?d:l}})(jQuery),(function(){var u=e.am();u&&u.directive("daypilotMonth",["$parse",function(f){return{restrict:"E",template:"<div></div>",replace:!0,link:function(d,l,o){var n=new e.Month(l[0]);n.xa.scope=d,n.init();var p=o.id;p&&(d[p]=n);var a=o.publishAs;a&&(0,f(a).assign)(d,n);for(var m in o)m.indexOf("on")===0&&(function(c){n[c]=function(v){var g=f(o[c]);d.$apply(function(){g(d,{args:v})})}})(m);var h=d.$watch,b=o.config||o.daypilotConfig,s=o.events||o.daypilotEvents;h.call(d,b,function(c){for(var v in c)n[v]=c[v];n.update()},!0),h.call(d,s,function(c){n.events.list=c,n.update()},!0)}}}])})(),typeof Sys<"u"&&Sys.Application&&Sys.Application.notifyScriptLoaded&&Sys.Application.notifyScriptLoaded()}})(t),(function(e){if(typeof e.Navigator>"u"||!e.Navigator.def){var r=e.Util.isReactComponent,i=e.Util.isVueComponent,u=e.Util.isVueVNode;e.Navigator=function(f,d){function l(a,m,h){var b=this;if(a instanceof l)return a;
27if(typeof a=="object"){var s=a;this.month=s.month,this.x=s.x,this.y=s.y}else this.month=a,this.x=m,this.y=h;this.is=function(c){return this.month===c.month&&this.x===c.x&&this.y===c.y},this.next=function(){var c=b;if(c.x<6)return{month:c.month,x:c.x+1,y:c.y};var v=o.months[c.month];return c.y<v.rowCount-1?{month:c.month,x:0,y:c.y+1}:c.month<o.months.length-1?{month:c.month+1,x:0,y:0}:null},this.visible=function(){var c=this.cell();return!!c.isCurrentMonth||!(!c.isPrevMonth||!c.showBefore)||!(!c.isNextMonth||!c.showAfter)},this.nextVisible=function(){for(var c=b;!c.visible();){var v=c.next();if(!v)return null;c=new l(v)}return c},this.previous=function(){var c=b;if(c.x>0)return{month:c.month,x:c.x-1,y:c.y};if(c.y>0)return{month:c.month,x:6,y:c.y-1};if(c.month>0){var v=o.months[c.month-1];return{month:c.month-1,x:6,y:v.rowCount-1}}return null},this.previousVisible=function(){for(var c=b;!c.visible();){var v=c.previous();if(!v)return null;c=new l(v)}return c},this.cell=function(){return o.months[this.month].cells[this.x][this.y]},this.date=function(){return this.cell().day},this.before=function(c){return this.date()<new l(c).date()}}this.v="${v}";var o=this;this.id=f,this.api=2,this.isNavigator=!0,this.autoFocusOnClick=!0,this.weekStarts="Auto",this.selectMode="Day",this.titleHeight=30,this.dayHeaderHeight=30,this.bound=null,this.cellWidth=30,this.cellHeight=30,this.cssClassPrefix="navigator_default",this.eventEndSpec="DateTime",this.freeHandSelectionEnabled=!1,this.selectionStart=new e.Date().getDatePart(),this.selectionEnd=null,this.selectionDay=null,this.showMonths=1,this.skipMonths=1,this.command="navigate",this.year=new e.Date().getYear(),this.month=new e.Date().getMonth()+1,this.showToday=!1,this.showWeekNumbers=!1,this.todayHtml=null,this.todayHeight=40,this.todayPosition="Bottom",this.todayText="Today",this.weekNumberAlgorithm="Auto",this.rowsPerMonth="Six",this.orientation="Vertical",this.locale="en-us",this.rtl=!1,this.visible=!0,this.timeRangeSelectedHandling="Bind",this.visibleRangeChangedHandling="Enabled",this.onVisibleRangeChange=null,this.onVisibleRangeChanged=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.onTodayClick=null,this.S={};var n=this.S;this.kd={};var p=this.kd;this.nav={},this.yb={},this.ld=function(){this.root.dp=this,this.root.className=this.M("_main"),this.orientation==="Horizontal"?(n.md()||(this.root.style.width=this.showMonths*(7*n.cellWidth()+this.nd())+"px"),this.root.style.height=6*this.cellHeight+this.titleHeight+this.dayHeaderHeight+"px"):n.md()||(this.root.style.width=7*n.cellWidth()+this.nd()+"px"),this.rtl&&(this.root.style.direction="rtl"),this.root.style.position="relative",this.visible||(this.root.style.display="none");var a=document.createElement("input");a.type="hidden",a.name=o.id+"_state",a.id=a.name,this.root.appendChild(a),this.state=a,this.startDate?this.startDate=new e.Date(this.startDate).firstDayOfMonth():this.selectionDay?this.startDate=new e.Date(this.selectionDay).firstDayOfMonth():this.startDate=e.Date.fromYearMonthDay(this.year,this.month),this.calendars=[],this.selected=[],this.months=[]},this.va=function(){return o.api===2},this.ed=function(){this.root.innerHTML=""},this.M=function(a){var m=this.theme||this.cssClassPrefix;return m?m+a:""},this.od=function(a,m){var h=this.M("_"+m);e.Util.addClass(a,h)},this.pd=function(a,m){var h=this.M("_"+m);e.Util.removeClass(a,h)},this.qd=function(){if(!n.md())return null;var a=7;return this.showWeekNumbers&&a++,100/a},this.rd=function(){return n.md()?null:n.cellWidth()},this.sd=function(a){return typeof a!="number"&&(a=1),n.md()?this.qd()*a:this.rd()*a},this.td=function(a){var m=n.md()?"%":"px";return this.sd(a)+m},this.fd=function(a,m){var h={};h.cells=[],h.days=[],h.weeks=[];var b=this.startDate.addMonths(a),s=m.before,c=m.after,v=b.firstDayOfMonth(),g=v.firstDayOfWeek(n.weekStarts()),y=v.addMonths(1),_=e.DateUtil.daysDiff(g,y),w=this.rowsPerMonth==="Auto"?Math.ceil(_/7):6;h.rowCount=w;var S=new e.Date().getDatePart(),E=7*n.cellWidth()+this.nd();h.width=E;var T=this.cellHeight*w+this.titleHeight+this.dayHeaderHeight;h.height=T;var C=document.createElement("div");if(n.md()?this.orientation==="Horizontal"&&(C.style.width=100/o.showMonths+"%"):C.style.width=E+"px",C.style.height=T+"px",this.orientation==="Horizontal")C.style.position="absolute",n.md()?(C.style.left=100/o.showMonths*a+"%",h.leftPct=100/o.showMonths*a):C.style.left=E*a+"px",C.style.top="0px",h.top=0,h.left=E*a;else{C.style.position="relative";var N=a>0?o.months[a-1].top+o.months[a-1].height:0;h.top=N,h.left=0,h.leftPct=0}C.className=this.M("_month"),C.style.cursor="default",C.style.userSelect="none",C.style.webkitUserSelect="none",C.month=h,h.div=C,this.root.appendChild(C);var B=this.titleHeight+this.dayHeaderHeight,M=document.createElement("div");M.style.position="absolute",M.style.left="0px",M.style.right="0px",M.style.top="0px",M.style.width=o.td(),M.style.height=this.titleHeight+"px",M.style.lineHeight=this.titleHeight+"px",M.className=this.M("_titleleft"),m.left&&(M.style.cursor="pointer",M.innerHTML="<span><</span>",M.onclick=this.ud),C.appendChild(M);var L=document.createElement("div");L.style.position="absolute",L.style.left=o.td(),L.style.top="0px",L.style.width=o.td(o.showWeekNumbers?6:5),L.style.height=this.titleHeight+"px",L.style.lineHeight=this.titleHeight+"px",L.className=this.M("_title"),L.innerHTML=n.locale().monthNames[b.getMonth()]+" "+b.getYear(),C.appendChild(L),this.ti=L;var I=document.createElement("div");I.style.position="absolute",I.style.left=o.td(o.showWeekNumbers?7:6),I.style.right=o.td(o.showWeekNumbers?7:6),I.style.top="0px",I.style.width=o.td(),I.style.height=this.titleHeight+"px",I.style.lineHeight=this.titleHeight+"px",I.className=this.M("_titleright"),m.right&&(I.style.cursor="pointer",I.innerHTML="<span>></span>",I.onclick=this.vd),C.appendChild(I),this.tr=I;var $=o.showWeekNumbers?1:0;if(this.showWeekNumbers)for(var O=0;O<w;O++){var H=g.addDays(7*O),D=null;switch(this.weekNumberAlgorithm){case"Auto":D=n.weekStarts()===1?H.weekNumberISO():H.weekNumber();break;case"US":D=H.weekNumber();break;case"ISO8601":D=H.weekNumberISO();break;default:throw"Unknown weekNumberAlgorithm value."}var R=document.createElement("div");R.style.position="absolute",R.style.left="0px",R.style.right="0px",R.style.top=O*this.cellHeight+B+"px",R.style.width=o.td(),R.style.height=this.cellHeight+"px",R.style.lineHeight=this.cellHeight+"px",R.className=this.M("_weeknumber"),R.innerHTML="<span>"+D+"</span>",C.appendChild(R),h.weeks.push(R)}if(o.showWeekNumbers){var R=document.createElement("div");R.style.position="absolute",R.style.left="0px",R.style.right="0px",R.style.top=this.titleHeight+"px",R.style.width=o.td(),R.style.height=this.dayHeaderHeight+"px",R.className=this.M("_dayheader"),C.appendChild(R)}for(var z=0;z<7;z++){h.cells[z]=[];var R=document.createElement("div");R.style.position="absolute",R.style.left=o.td(z+$),R.style.right=o.td(z+$),R.style.top=this.titleHeight+"px",R.style.width=o.td(),R.style.height=this.dayHeaderHeight+"px",R.style.lineHeight=this.dayHeaderHeight+"px",R.className=this.M("_dayheader"),R.innerHTML="<span>"+this.wd(z)+"</span>",C.appendChild(R),h.days.push(R);for(var A=function(Be){var q=g.addDays(7*Be+z),ue=X.xd(q)&&X.yd()!=="none",V=q.firstDayOfMonth()===b,W=q<b,re=q>=b.addMonths(1);if(X.yd()==="month")ue=ue&&V;else if(X.yd()==="day")ue=ue&&(V||s&&W||c&&re);else if(X.yd()==="week"){var J=q.firstDayOfMonth()===b;ue=ue&&(J||s&&W||c&&re)}var k=document.createElement("div");h.cells[z][Be]=k;var U=o.zd(z,Be),P=U.x,ne=U.y,Q=n.md()?"%":"px";k.day=q,k.x=z,k.y=Be,k.left=P,k.top=ne,k.isCurrentMonth=V,k.isNextMonth=re,k.isPrevMonth=W,k.showBefore=s,k.showAfter=c,k.className=X.M(V?"_day":"_dayother"),o.od(k,"cell"),q.getTime()===S.getTime()&&V&&X.od(k,"today"),q.dayOfWeek()!==0&&q.dayOfWeek()!==6||X.od(k,"weekend"),k.style.position="absolute",k.style.left=P+Q,k.style.right=P+Q,
27k.style.top=ne+"px",k.style.width=o.td(),k.style.height=X.cellHeight+"px",k.style.lineHeight=X.cellHeight+"px";var ee=document.createElement("div");ee.style.position="absolute",ee.className=q.getTime()===S.getTime()&&V?X.M("_todaybox"):X.M("_daybox"),o.od(ee,"cell_box"),ee.style.left="0px",ee.style.top="0px",ee.style.right="0px",ee.style.bottom="0px",k.appendChild(ee);var ae=null;X.cells&&X.cells[q.toStringSortable()]&&(ae=X.cells[q.toStringSortable()]);var oe=ae||{};if(oe.day=q,oe.isCurrentMonth=V,oe.isToday=q.getTime()===S.getTime()&&V,oe.isWeekend=q.dayOfWeek()===0||q.dayOfWeek()===6,ae?(oe.html=ae.html||q.getDay(),oe.cssClass=ae.css):(oe.html=q.getDay(),oe.cssClass=null),oe.events={all:function(){var me;return((me=o.items)===null||me===void 0?void 0:me[q.toStringSortable()])||[]}},typeof o.onBeforeCellRender=="function"){var le={};le.cell=oe,o.onBeforeCellRender(le),ae=le.cell}if(ae&&e.Util.addClass(k,ae.cssClass||ae.css),V||s&&W||c&&re){var te=document.createElement("div");te.innerHTML=q.getDay(),te.style.position="absolute",te.style.left="0px",te.style.top="0px",te.style.right="0px",te.style.bottom="0px",o.od(te,"cell_text"),k.isClickable=!0,ae&&ae.html&&(te.innerHTML=ae.html),k.appendChild(te)}k.onclick=X.Ad,(function(){if(typeof o.onBeforeCellDomAdd=="function"||typeof o.onBeforeCellDomRemove=="function"){var me={};if(me.control=o,me.cell=oe,me.element=null,k.domArgs=me,typeof o.onBeforeCellDomAdd=="function"&&o.onBeforeCellDomAdd(me),me.element){var de=ee;if(de){me.Qa=de;var ge=r(me.element),Se=i(me.element),Oe=u(me.element);if(ge){if(!o.Bd.reactDOM)throw new e.Exception("Can't reach ReactDOM");o.Bd.Wc(me.element,de)}else if(Se){if(!o.Sa.Ra)throw new e.Exception("Can't reach Vue");o.Sa.Ta=!0,o.Sa.Mb(me.element,de,me.props),o.Sa.Ta=!1}else if(Oe){if(!o.Sa.Ra)throw new e.Exception("Can't reach Vue");o.Sa.Ta=!0,o.Sa.Wa(me.element,de),o.Sa.Ta=!1}else de.appendChild(me.element)}}}})(),C.appendChild(k),ue&&(o.Cd(C,z,Be),X.selected.push(k))},X=this,O=0;O<w;O++)A(O)}var G=document.createElement("div");G.style.position="absolute",G.style.left="0px",G.style.top=B-2+"px",G.style.width=o.td(7+$),G.style.height="1px",G.style.fontSize="1px",G.style.lineHeight="1px",G.className=this.M("_line"),C.appendChild(G),this.months.push(h)},this.zd=function(a,m){var h=this.titleHeight+this.dayHeaderHeight,b=this.showWeekNumbers?1:0;return{x:o.sd(a+b),y:m*this.cellHeight+h}},this.Cd=function(a,m,h){var b=a.month.cells[m][h];o.od(b,"select")},this.Dd=function(a,m,h){var b=a.month.cells[m][h];o.pd(b,"select")},this.nd=function(){return this.showWeekNumbers?n.cellWidth():0},this.Ed=function(){var a;if(this.items)for(var m=0;m<this.showMonths;m++)for(var h=0;h<7;h++)for(var b=0;b<6;b++){var s=this.months[m].cells[h][b];s&&(((a=this.items[s.day.toStringSortable()])===null||a===void 0?void 0:a.length)>0?(this.od(s,"busy"),this.pd(s,"free")):(this.pd(s,"busy"),this.od(s,"free")))}},this.Fd=function(){var a={};a.startDate=o.startDate,a.selectionStart=o.selectionStart,a.selectionEnd=o.selectionEnd.addDays(1),o.state.value=JSON.stringify(a)},this.yd=function(){return(this.selectMode||"").toLowerCase()},this.Gd=function(){var a=this.selectionDay||this.selectionStart;switch(a||(a=e.Date.today()),a=new e.Date(a),this.yd()){case"day":this.selectionStart=a,this.selectionDay=a,this.selectionEnd=a;break;case"week":this.selectionDay=a,this.selectionStart=a.firstDayOfWeek(n.weekStarts()),this.selectionEnd=this.selectionStart.addDays(6);break;case"month":this.selectionDay=a,this.selectionStart=a.firstDayOfMonth(),this.selectionEnd=this.selectionStart.lastDayOfMonth();break;case"none":this.selectionEnd=a;break;default:throw"Unknown selectMode value."}},this.Hd=null,this.select=function(a,m,h){if(a&&!this.R){var b=m&&(m instanceof e.Date||typeof m=="string"),s=m&&typeof m=="object"&&!b||typeof m=="boolean",c=a,v=b?m:null,g=s?m:h;if(!this.Ma)return void(this.Hd={date1:c,date2:v,options:g});var y=!0,_=!0;g&&typeof g=="object"?(g.dontFocus&&(y=!1),g.dontNotify&&(_=!1)):typeof g=="boolean"&&(y=!g);var w=this.selectionStart,S=this.selectionEnd;this.selectionStart=new e.Date(c).getDatePart(),this.selectionDay=this.selectionStart;var E=!1;if(y){var T=this.startDate;(this.selectionStart<this.Id()||this.selectionStart>=this.Jd())&&(T=this.selectionStart.firstDayOfMonth()),T.toStringSortable()!==this.startDate.toStringSortable()&&(E=!0),this.startDate=T}v&&o.freeHandSelectionEnabled?o.selectionEnd=new e.Date(v):this.Gd(),this.ed(),this.ld(),this.Kd(),this.Ed(),this.Fd(),!_||w.equals(this.selectionStart)&&S.equals(this.selectionEnd)||this.P(),E&&this.Ld()}},this.update=function(a){o.Md(a)}
27,this.Md=function(a){if(o.tb(a),this.Ma){if(o.R)throw new e.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");o.Nd();var m={day:o.selectionDay,start:o.selectionStart,end:o.selectionEnd};o.rb(),m.start===o.selectionStart&&m.end===o.selectionEnd&&m.day===o.selectionDay||o.P()}},this.rb=function(){this.ed(),this.ld(),this.ia(),this.Gd(),this.Kd(),this.Ed(),this.Fd(),this.visible?this.show():this.hide()},this.Nd=function(){o.yb={}},this.vb=null,this.tb=function(a){if(a){var m={events:{preInit:function(){var s=this.data;s&&(e.isArray(s.list)?o.events.list=s.list:o.events.list=s)}}};this.vb=m;for(var h in a)if(m[h]){var b=m[h];b.data=a[h],b.preInit&&b.preInit()}else o[h]=a[h]}},this.wb=function(){var a=this.vb;for(var m in a){var h=a[m];h.postInit&&h.postInit()}},this.W=function(a,m,h){var b={};b.action=a,b.parameters=h,b.data=m,b.header=this.V();var s="JSON"+JSON.stringify(b);this.backendUrl?e.request(this.backendUrl,this.X,s,this.Od):WebForm_DoCallback(this.uniqueID,s,this.Y,null,this.callbackError,!0)},this.Od=function(a){if(typeof o.onAjaxError=="function"){var m={};m.request=a,o.onAjaxError(m)}else typeof o.ajaxError=="function"&&o.ajaxError(a)},this.X=function(a){o.Y(a.responseText)},this.U=function(a,m,h){var b={};b.action=a,b.parameters=h,b.data=m,b.header=this.V();var s="JSON"+JSON.stringify(b);__doPostBack(o.uniqueID,s)},this.V=function(){var a={};return a.v=this.v,a.startDate=this.startDate,a.selectionStart=this.selectionStart,a.showMonths=this.showMonths,a},this.wd=function(a){var m=a+n.weekStarts();return m>6&&(m-=7),n.locale().dayNamesShort[m]},this.xd=function(a){return this.selectionStart!==null&&this.selectionEnd!==null&&this.selectionStart.getTime()<=a.getTime()&&a.getTime()<=this.selectionEnd.getTime()},this.Pd=function(a){for(var m=0;m<o.months.length;m++){var h=o.months[m];if(!h||a.x<h.left)return null;if(!(h.left+h.width<a.x)&&h.top<=a.y&&a.y<h.top+h.height)return m}return null},this.Qd=function(){if(!n.md())return void(o.Rd=o.cellWidth);var a=o.months[0].cells[0][0],m=a.clientWidth;o.Rd=m,o.months.forEach(function(h){h.width=h.div.clientWidth,o.orientation==="Horizontal"&&(h.left=h.div.offsetLeft),h.cells.forEach(function(b,s){b.forEach(function(c){c.width=m,c.left=s*m})})})},this.Sd=function(a){o.Qd();var m=e.mo3(o.nav.top,a),h=o.Pd(m);if(h===null)return null;var b=o.months[h],s=this.titleHeight+this.dayHeaderHeight;if(b.top<=m.y&&m.y<b.top+s)return{month:h,x:0,y:0,coords:m,header:!0};for(var c=0;c<b.cells.length;c++)for(var v=0;v<b.cells[c].length;v++){var g=b.cells[c][v],y=g.top+b.top,_=g.left+b.left;if(_<=m.x&&m.x<_+o.Rd&&y<=m.y&&m.y<y+o.cellHeight)return{month:h,x:c,y:v,coords:m}}return null},this.Td=function(a){if(o.freeHandSelectionEnabled){var m=o.Sd(a);m&&!m.header&&(p.start=m),a.preventDefault()}},this.Ud=function(a){if(p.start){var m=o.Sd(a);if(p.end)p.end=m;else if(m){var h=3,b=e.distance(p.start.coords,m.coords);b>h&&(p.end=m)}p.end&&(p.clear(),p.draw())}},p.start=null,p.drawCell=function(a){var m=o.months[a.month],h=o.zd(a.x,a.y),b=m.top+h.y,s=m.left+h.x,c="px",v=o.td();if(n.md()){var g=o.orientation==="Horizontal"?o.showMonths:1;s=m.leftPct+h.x/g,c="%",v=o.td(1/g)}var y=document.createElement("div");y.style.position="absolute",y.style.left=s+c,y.style.top=b+"px",y.style.height=o.cellHeight+"px",y.style.width=v,y.style.backgroundColor="#ccc",y.style.opacity=.5,y.style.cursor="default",o.nav.preselection.appendChild(y),p.cells.push(y)},p.clear=function(){if(p.cells){for(var a=0;a<p.cells.length;a++)o.nav.preselection.removeChild(p.cells[a]);p.cells=[]}},p.draw=function(){var a=p.ordered(),m=new l(a.start),h=a.end;if(h){if(h===p.end&&h.header&&h.month>0){h.month-=1;var b=o.months[h.month];h.x=6,h.y=b.rowCount-1}for(p.cells=[];!m.is(h);){m.visible()&&p.drawCell(m);var s=new l(m).next();if(!s)return;m.month=s.month,m.x=s.x,m.y=s.y}m.visible()&&p.drawCell(m)}},p.ordered=function(){var a=p.start,m=p.end,h={};return!m||new l(a).before(m)?(h.start=a,h.end=m):(h.start=m,h.end=a),h},this.Ad=function(a){var m=a.currentTarget,h=m.parentNode,b=m.parentNode.month,s=m.x,c=m.y,v=b.cells[s][c].day;if(b.cells[s][c].isClickable){switch(o.clearSelection(),o.selectionDay=v,o.yd()){case"none":o.selectionStart=v,o.selectionEnd=v;break;case"day":if(o.autoFocusOnClick&&(v<o.Id()||v>=o.Jd()))return void o.select(v);var g=b.cells[s][c];o.Cd(h,s,c),o.selected.push(g),o.selectionStart=g.day,o.selectionEnd=g.day;break;case"week":if(o.autoFocusOnClick){var y=b.cells[0][c].day,_=b.cells[6][c].day;if(y.firstDayOfMonth()===_.firstDayOfMonth()&&(y<o.Id()||_>=o.Jd()))return void o.select(v)}for(var w=0;w<7;w++)o.Cd(h,w,c),o.selected.push(b.cells[w][c]);o.selectionStart=b.cells[0][c].day,o.selectionEnd=b.cells[6][c].day;break;case"month":if(o.autoFocusOnClick&&(v<o.Id()||v>=o.Jd()))return void o.select(v);for(var y=null,_=null,S=0;S<6;S++)for(var E=0;E<7;E++){var g=b.cells[E][S];g&&g.day.getYear()===v.getYear()&&g.day.getMonth()===v.getMonth()&&(o.Cd(h,E,S),o.selected.push(g),y===null&&(y=g.day),_=g.day)}o.selectionStart=y,o.selectionEnd=_;break;default:throw"unknown selectMode"}o.Fd(),o.P()}},this.P=function(a){var m=o.selectionStart,h=o.selectionEnd.addDays(1),b=e.DateUtil.daysDiff(m,h),s=o.selectionDay;if(a=a||{},o.va()){var c={};if(c.start=m,c.end=h,c.day=s,c.days=b,c.mode=a.mode||o.selectMode,c.preventDefault=function(){this.preventDefault.value=!0},typeof o.onTimeRangeSelect=="function"&&(o.onTimeRangeSelect(c),c.preventDefault.value))return;switch(o.timeRangeSelectedHandling){case"Bind":var v=o.bound;if(v&&typeof v=="object"){var g={};
27g.start=m,g.end=h,g.days=b,g.day=s,v.commandCallBack(o.command,g)}break;case"None":break;case"PostBack":o.timeRangeSelectedPostBack(m,h,s)}typeof o.onTimeRangeSelected=="function"&&o.onTimeRangeSelected(c)}else switch(o.timeRangeSelectedHandling){case"Bind":var v=o.bound;if(v&&typeof v=="object"){var g={};g.start=m,g.end=h,g.days=b,g.day=s,v.commandCallBack(o.command,g)}break;case"JavaScript":o.onTimeRangeSelected(m,h,s);break;case"None":break;case"PostBack":o.timeRangeSelectedPostBack(m,h,s)}},this.timeRangeSelectedPostBack=function(a,m,h,b){var s={};s.start=a,s.end=m,s.day=b,this.U("TimeRangeSelected",h,s)},this.vd=function(){o.Vd(o.skipMonths)},this.ud=function(){o.Vd(-o.skipMonths)},this.Vd=function(a){this.startDate=this.startDate.addMonths(a),this.ed(),this.ld(),this.Kd(),this.Fd(),this.Ld(),this.Ed()},this.Id=function(){return o.startDate.firstDayOfMonth()},this.Jd=function(){return o.startDate.firstDayOfMonth().addMonths(this.showMonths)},this.visibleStart=function(){return o.startDate.firstDayOfMonth().firstDayOfWeek(n.weekStarts())},this.visibleEnd=function(){return o.startDate.firstDayOfMonth().addMonths(this.showMonths-1).firstDayOfWeek(n.weekStarts()).addDays(42)},this.Ld=function(){var a=this.visibleStart(),m=this.visibleEnd();if(o.va()){var h={};if(h.start=a,h.end=m,h.preventDefault=function(){this.preventDefault.value=!0},typeof o.onVisibleRangeChange=="function"&&(o.onVisibleRangeChange(h),h.preventDefault.value))return;switch(this.visibleRangeChangedHandling){case"CallBack":this.visibleRangeChangedCallBack(null);break;case"PostBack":this.visibleRangeChangedPostBack(null);break}typeof o.onVisibleRangeChanged=="function"&&o.onVisibleRangeChanged(h)}else switch(this.visibleRangeChangedHandling){case"CallBack":this.visibleRangeChangedCallBack(null);break;case"PostBack":this.visibleRangeChangedPostBack(null);break;case"JavaScript":this.onVisibleRangeChanged(a,m);break}},this.visibleRangeChangedCallBack=function(a){var m={};this.W("Visible",a,m)},this.visibleRangeChangedPostBack=function(a){var m={};this.U("Visible",a,m)},this.Y=function(a){var m=JSON.parse(a);o.items=m.Items,o.cells=m.Cells,o.cells?o.update():o.Ed()},this.Kd=function(){this.showToday&&this.todayPosition==="Top"&&this.Wd();for(var a=0;a<this.showMonths;a++){var m=this.Xd(a);this.fd(a,m)}this.showToday&&this.todayPosition==="Bottom"&&this.Wd(),this.root.style.height=this.Yd()+"px",this.nav.preselection=document.createElement("div"),this.nav.preselection.style.position="absolute",this.nav.preselection.style.left="0px",this.nav.preselection.style.right="0px",this.nav.preselection.style.top="0px",this.root.appendChild(this.nav.preselection)},this.Wd=function(){if(this.showToday){var a=document.createElement("span");a.className=this.M("_todaysection_button"),this.todayHtml?a.innerHTML=this.todayHtml:a.innerText=this.todayText,a.onclick=function(){if(typeof o.onTodayClick=="function"){var h={};if(h.preventDefault=function(){this.preventDefault.value=!0},o.onTodayClick(h),h.preventDefault.value)return}o.select(e.Date.today())};var m=document.createElement("div");m.style.height=this.todayHeight+"px",m.className=this.M("_todaysection"),m.appendChild(a),this.root.appendChild(m)}},this.Yd=function(){var a=0;if(this.showToday&&(a+=this.todayHeight),this.orientation==="Horizontal"){for(var m=0;m<this.months.length;m++){var h=this.months[m];h.height>a&&(a=h.height)}return a}for(var m=0;m<this.months.length;m++){var h=this.months[m];a+=h.height}return a},this.Xd=function(a){if(this.internal.showLinks)return this.internal.showLinks;var m={};return m.left=a===0,m.right=a===0,m.before=a===0,m.after=a===this.showMonths-1,this.orientation==="Horizontal"&&(m.right=a===this.showMonths-1),m},this.xa={},this.xa.scope=null,this.xa.notify=function(){o.xa.scope&&o.xa.scope.$apply()},this.Bd={},this.Bd.reactDOM=null,this.Bd.react=null,this.Bd.Wc=function(a,m){var h=o.Bd.reactDOM;if(typeof h.createRoot=="function"){var b=m.Zd;b||(b=h.createRoot(m),m.Zd=b),b.render(a)}else h.render(a,m)},this.Bd.$d=function(a){var m=o.Bd.reactDOM;if(typeof m.createRoot=="function"){var h=a.Zd;setTimeout(function(){h.unmount()},0)}else m.unmountComponentAtNode(a)},this.Sa={},this.Sa.Ra=null,this.Sa.Mb=function(a,m,h){var b=o.Sa.Ra;if(typeof b.createVNode=="function"&&typeof b.render=="function"){var s=b.createVNode(a,h);b.render(s,m)}},this.Sa.Wa=function(a,m){var h=o.Sa.Ra;if(typeof h.render=="function"){var b=a;e.isArray(a)&&(b=h.h("div",null,a)),h.render(b,m)}},this.Sa.Ua=function(a){var m=o.Sa.Ra;typeof m.render=="function"&&m.render(null,a)},this.internal={},this.internal.loadOptions=o.tb,this.internal.initialized=function(){return o.Ma},this.internal.enableVue=function(a){o.Sa.Ra=a},this.internal.vueRef=function(){return o.Sa.Ra},this.internal.vueRendering=function(){return o.Sa.Ta},this.internal.upd=function(a){o.Md(a)},n.locale=function(){return e.Locale.find(o.locale)},n.weekStarts=function(){if(o.weekStarts==="Auto"){var a=n.locale();return a?a.weekStarts:0}return o.weekStarts},n.cellWidth=function(){if(o.yb.cellWidth)return o.yb.cellWidth;var a=o._d("_cell_dimensions").width;return a||(a=o.cellWidth),o.yb.cellWidth=a,a},n.md=function(){return o.S.cellWidth()==="Auto"},this.clearSelection=function(){for(var a=0;a<this.selected.length;a++){var m=this.selected[a];o.Dd(m.parentNode,m.x,m.y)}this.selected=[]},this.ae=function(){return!!this.backendUrl&&(typeof o.items>"u"||!o.items)},this.events={},this.ia=function(){if(e.isArray(this.events.list)){this.items={};for(var a=0;a<this.events.list.length;a++){var m=this.events.list[a];if(!m.hidden){var h=new e.Event(m),b=this.be(m);for(var s in b)this.items[s]||(this.items[s]=[]),this.items[s].push(h)}}}},this._d=function(a){var m=document.createElement("div");m.style.position="absolute",m.style.top="-2000px",m.style.left="-2000px",m.className=this.M(a);var h=o.root||document.body;h.appendChild(m);var b=m.offsetHeight,s=m.offsetWidth;h.removeChild(m);var c={};return c.height=b,c.width=s,c},this.be=function(a){for(var m=new e.Date(a.start),h=new e.Date(a.end),b={},s=m.getDatePart(),c=function(){return o.eventEndSpec==="Date"?s.getTime()<=h.getTime():s.getTime()<h.getTime()};c();)b[s.toStringSortable()]=1,s=s.addDays(1);return b},this.show=function(){o.visible=!0,o.root.style.display=""},this.hide=function(){o.visible=!1,o.root.style.display="none"},this.xb=function(){if(this.id&&this.id.tagName)this.nav.top=this.id;else{if(typeof this.id!="string")throw"DayPilot.Navigator() constructor requires the target element or its ID as a parameter";if(this.nav.top=document.getElementById(this.id),!this.nav.top)throw"DayPilot.Navigator: The placeholder element not found: '"+f+"'."}this.root=this.nav.top},this.init=function(){if(this.xb(),!this.root.dp){if(this.Gd(),this.ld(),this.Kd(),this.ia(),this.Ed(),this.ca(),this.ce(),this.qb(),this.ae()&&this.Ld(),this.Ma=!0,this.wb(),this.Hd){var a=this.Hd;this.select(a.date1,a.date2,a.options),this.Hd=null}return this}},this.ce=function(){o.nav.top.onmousedown=this.Td,o.nav.top.onmousemove=this.Ud},this.qb=function(){e.re(document,"mouseup",o.ee)}
27,this.ee=function(a){if(p.start&&p.end){var m=e.mo3(o.nav.top,a);if(m.x===p.start.coords.x&&m.y===p.start.coords.y)return p.start=null,void p.clear();p.clear();var h=p.ordered();h.start=new l(h.start).nextVisible(),h.end=new l(h.end).previousVisible(),o.selectionDay=new l(h.start).date(),o.selectionStart=o.selectionDay,o.selectionEnd=new l(h.end).date(),p.start=null,p.end=null,o.ed(),o.ld(),o.Kd(),o.Ed(),o.Fd(),o.P({mode:"FreeHand"})}p.start=null,p.end=null},this.dispose=function(){var a=o;a.root&&(a.root.removeAttribute("style"),a.root.removeAttribute("class"),a.root.dp=null,a.root.innerHTML=null,a.root=null,a.R=!0)},this.disposed=function(){return this.R},this.ca=function(){this.root.dispose=this.dispose},this.Init=this.init,this.tb(d)},typeof jQuery<"u"&&(function(f){f.fn.daypilotNavigator=function(d){var l=null,o=this.each(function(){if(!this.daypilot){var n=new e.Navigator(this.id);this.daypilot=n;for(var p in d)n[p]=d[p];n.Init(),l||(l=n)}});return this.length===1?l:o}})(jQuery),(function(){var f=e.am();f&&f.directive("daypilotNavigator",["$parse",function(d){return{restrict:"E",template:"<div id='{{id}}'></div>",compile:function(l,o){return l.replaceWith(this.template.replace("{{id}}",o.id)),function(n,p,a){var m=new e.Navigator(p[0]);m.xa.scope=n,m.init();var h=a.id;h&&(n[h]=m);var b=a.publishAs;b&&(0,d(b).assign)(n,m);for(var s in a)if(s.indexOf("on")===0){var c=e.Util.shouldApply(s);c?(function(_){m[_]=function(w){var S=d(a[_]);n.$apply(function(){S(n,{args:w})})}})(s):(function(_){m[_]=function(w){d(a[_])(n,{args:w})}})(s)}var v=n.$watch,g=a.config||a.daypilotConfig,y=a.events||a.daypilotEvents;v.call(n,g,function(_){for(var w in _)m[w]=_[w];m.update()},!0),v.call(n,y,function(_){m.events.list=_,m.ia(),m.Ed()},!0)}}}}])})(),e.Navigator.def={},typeof Sys<"u"&&Sys.Application&&Sys.Application.notifyScriptLoaded&&Sys.Application.notifyScriptLoaded()}})(t),(function(e){function r(l){var o=l.touches[0].pageX,n=l.touches[0].pageY,p={};return p.x=o,p.y=n,p}if(typeof e.Scheduler>"u"){var i={},u=function(){},f=function(){return document.body},d=function(){return document.createElement("div")};e.Scheduler=function(l,o){this.v="${v}";var n=this;this.isScheduler=!0,this.id=l,this.beforeCellRenderCaching=!0,this.businessBeginsHour=9,this.businessEndsHour=18,this.businessWeekends=!1,this.cellDuration=60,this.cellGroupBy="Day",this.cellSweeping=!0,this.cellSweepingCacheSize=1e3,this.cellWidth=40,this.cellsMarkBusiness=!0,this.cornerText=null,this.cornerHtml=null,this.cssClassPrefix="scheduler_default",this.days=1,this.durationBarHeight=3,this.durationBarVisible=!0,this.dynamicEventRendering="Progressive",this.dynamicEventRenderingMargin=50,this.dynamicEventRenderingMarginX=null,this.dynamicEventRenderingMarginY=null,this.dynamicEventRenderingCacheSweeping=!1,this.dynamicEventRenderingCacheSize=200,this.eventBorderRadius=null,this.eventEndSpec="DateTime",this.eventHeight=35,this.eventMinWidth=1,this.eventPadding=null,this.eventResizeMargin=5,this.eventTapAndHoldHandling="Move",this.eventTextWrappingEnabled=!1,this.eventsLoadMethod="GET",this.floatingEvents=!e.browser.ios,this.floatingTimeHeaders=!0,this.headerHeight=30,this.heightSpec="Max",this.height=600,this.locale="en-us",this.progressiveRowRendering=!0,this.progressiveRowRenderingPreload=25,this.rowHeaderWidth=80,this.rowMarginTop=0,this.rowMarginBottom=0,this.rowsLoadMethod="GET",this.scale="CellDuration",this.scrollDelayEvents=200,this.scrollDelayCells=e.browser.ios?100:0,this.scrollDelayFloats=0,this.scrollDelayRows=0,this.showToolTip=!0,this.snapToGrid=!0,this.startDate=e.Date.today(),this.tapAndHoldTimeout=300,this.timeHeaders=[{groupBy:"Default"},{groupBy:"Cell"}],this.timeHeaderTextWrappingEnabled=!1,this.timeFormat="Auto",this.useEventBoxes="Always",this.visible=!0,this.weekStarts="Auto",this.width=null,this.xssProtection="Enabled",this.zoomLevels=[],this.zoomPosition="left",this.eventClickHandling="Enabled",this.eventDeleteHandling="Disabled",this.eventMoveHandling="Update",this.eventResizeHandling="Update",this.eventRightClickHandling="ContextMenu",this.timeHeaderClickHandling="Enabled",this.timeHeaderRightClickHandling="Enabled",this.timeRangeClickHandling="Enabled",this.timeRangeSelectedHandling="Enabled",this.onEventClick=null,this.onEventClicked=null,this.onEventMove=null,this.onEventMoved=null,this.onEventResize=null,this.onEventResized=null,this.onRowClick=null,this.onRowClicked=null,this.onTimeHeaderClick=null,this.onTimeHeaderClicked=null,this.onTimeHeaderRightClick=null,this.onTimeHeaderRightClicked=null,this.onTimeRangeClick=null,this.onTimeRangeClicked=null,this.onTimeRangeSelect=null,this.onTimeRangeSelected=null,this.onBeforeCellRender=null,this.onBeforeCornerRender=null,this.onBeforeEventRender=null,this.onBeforeRowHeaderRender=null,this.onBeforeTimeHeaderRender=null,this.onScroll=null,this.onAfterUpdate=null,this.R=!1,this.fe=-1,this.ge=!0,this.rowlist=[],this.events={},this.cells={},this.elements={},this.elements.events=[],this.elements.bars=[],this.elements.text=[],this.elements.cells=[],this.elements.linesVertical=[],this.elements.range=[],this.elements.timeHeader=[],this.yb={},this.yb.cells=[],this.yb.linesVertical={},this.yb.linesHorizontal={},this.yb.timeHeaderGroups=[],this.yb.timeHeader={},this.yb.events=[],this.nav={},this.S={};var p=this.S;this.he={};var a=n.he;this.ie={};var m=this.ie,h={};this.scrollTo=function(s){n.je(s)},this.je=function(s){if(s){if(!n.Ma)return void(n.ke=s);var c;if(s instanceof e.Date)c=this.getPixels(s).left;else if(typeof s=="string")c=this.getPixels(new e.Date(s)).left;else{if(typeof s!="number")throw new e.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");c=s}var v=n.le.clientWidth,g=n.nav.scroll.clientWidth;c<0&&(c=0),c>v-g&&(c=v-g),n.me(c)}},this.scrollToResource=function(s){e.complete(function(){var c;if(typeof s=="string"||typeof s=="number")c=n.ne(s);else{if(!(s instanceof e.Row))throw new e.Exception("Invalid scrollToResource() argument: id or DayPilot.Row expected");c=n.ne(s.id)}c&&setTimeout(function(){var v=c.top;n.nav.scroll.scrollTop=v},100)})},this.oe=function(){if(this.floatingTimeHeaders&&this.timeHeader){var s=n.pe();if(s){n.qe();for(var c=s.pixels.left,v=s.pixels.right+s.sw,g=[],y=0;y<this.timeHeader.length;y++)for(var _=0;_<this.timeHeader[y].length;_++){var w=this.timeHeader[y][_],S=w.left,E=w.left+w.width,T=null;if(S<c&&c<E&&(T={}
27,T.x=_,T.y=y,T.marginLeft=c-S,T.marginRight=0,T.div=n.yb.timeHeader[_+"_"+y],g.push(T)),S<v&&v<E){T||(T={},T.x=_,T.y=y,T.marginLeft=0,T.div=n.yb.timeHeader[_+"_"+y],g.push(T)),T.marginRight=E-v;break}}for(var C=0;C<g.length;C++){var T=g[C];n.se(T.div,T.marginLeft,T.marginRight)}n.te()}}},this.ve=function(){n.oe(),n.we()},this.xe={};var b=n.xe;b.ye=function(s,c,v,g){var y=s,_=s+v,w=c,S=c+g;return n.elements.events.filter(function(E){var T=E.event,C=T.part.left,N=T.part.left+T.part.width,B=n.rowlist[T.part.dayIndex],M=B.top+T.part.top,L=M+n.eventHeight;if(e.Util.overlaps(C,N,y,_)&&e.Util.overlaps(M,L,w,S))return!0})},b.ze=function(){var s=[],c=n.pe();if(!c)return s;for(var v=c.pixels.left,g=0;g<n.elements.events.length;g++){var y=n.elements.events[g],_=y.event,w=_.part.left,S=_.part.left+_.part.width;w<v&&v<S&&s.push(y)}return s.area=c,s},this.we=function(){if(this.floatingEvents){var s=b.ze();n.Ae=performance.now(),s.forEach(function(c){var v=c.event,g=s.area.pixels.left,y=v.part.left,_=g-y;n.Be(c,_,0)}),n.Ce()}},this.elements.sections=[],this.elements.hsections=[],this.se=function(s,c,v){var g;if(s.section){var y=s.section;return y.style.left=c+"px",y.style.right=v+"px",void(s.De=!1)}var _=d();_.className=n.M("_timeheader_float"),_.style.position="absolute",_.style.left=c+"px",_.style.right=v+"px",_.style.top="0px",_.style.bottom="0px",_.style.overflow="hidden";var w=d();w.className=n.M("_timeheader_float_inner"),s.Ee=w;var S=s.cell.th,E=!0,T=(g=s.domArgs)===null||g===void 0?void 0:g.element;if(T){var C=w;if(e.Util.isReactComponent(T)){if(!n.Bd.reactDOM)throw new e.Exception("Can't reach ReactDOM");n.Bd.Wc(T,C),E=!1}}if(E&&(w.innerHTML=n._a(S.text,S.innerHTML)),S.fontColor&&(w.style.color=S.fontColor),_.appendChild(w),_.Fe={marginLeft:c,marginRight:v},s.section=_,s.insertBefore(_,s.firstChild.nextSibling),T){var N=s.firstChild&&s.firstChild.firstChild;N&&setTimeout(function(){N.style.display="none"},0)}else s.firstChild.innerHTML="";this.elements.hsections.push(s)},this.qe=function(){for(var s=0;s<this.elements.hsections.length;s++)this.elements.hsections[s].De=!0},this.te=function(){for(var s=[],c=0;c<this.elements.hsections.length;c++){var v=this.elements.hsections[c];if(v.De){var g=v.cell;if(g&&v.firstChild)if(v.domArgs&&v.domArgs.element){var y=v.firstChild&&v.firstChild.firstChild;y&&(y.style.display="");var _=n.Bd.reactDOM&&e.Util.isReactComponent(v.domArgs.element);if(_){var w=v.Ee;n.Bd.$d(w)}}else v.firstChild.innerHTML=n._a(g.th.text,g.th.innerHTML);e.de(v.section),v.section=null,v.De=!1}else s.push(v)}this.elements.hsections=s},this.Be=function(s,c,v){var g,y,_=s.section;if(_)return _.Fe&&_.Fe.marginLeft===c&&_.Fe.marginRight===v?void(_.Fe.stamp=n.Ae):(s.section.style.left=c+"px",s.section.style.right=v+"px",void(_.Fe={marginLeft:c,marginRight:v,stamp:n.Ae}));_=d(),_.className=n.M("_event_float"),_.style.position="absolute",_.style.left=c+"px",_.style.right=v+"px",_.style.top="0px",_.style.bottom="0px",_.style.overflow="hidden";var w=d();w.className=n.M("_event_float_inner"),w.innerHTML=s.event.client.html(),_.appendChild(w);var S=(g=s.domArgs)===null||g===void 0?void 0:g.element;if(_.Fe={marginLeft:c,marginRight:v,stamp:n.Ae},s.section=_,s.insertBefore(_,s.firstChild.nextSibling),S){var E=(y=s?.firstChild)===null||y===void 0?void 0:y.firstChild;E&&(E.style.display="none")}else s.firstChild.innerHTML="";var T=s.event,C=T.cache||T.data;C.fontColor&&(w.style.color=C.fontColor),this.elements.sections.push(s)},this.Ce=function(){for(var s,c=[],v=0;v<this.elements.sections.length;v++){var g=this.elements.sections[v];if(g.section&&g.section.Fe&&g.section.Fe.stamp===n.Ae)c.push(g);else{var y=g.event;if(y)if(g.domArgs&&g.domArgs.element){var _=(s=g?.firstChild)===null||s===void 0?void 0:s.firstChild;_&&(_.style.display="")}else g.firstChild.innerHTML=y.client.html();e.de(g.section),g.section=null}}this.elements.sections=c},this.setScrollX=function(s){n.Ge.enabled?(n.Ge.scrollXRequested=s,setTimeout(function(){var c=n.Ge.scrollXRequested;typeof c=="number"&&n.me(c)},0)):n.me(s)},this.me=function(s){var c=n.nav.scroll,v=n.He();c.clientWidth+s>
27v&&(s=v-c.clientWidth),n.divTimeScroll.scrollLeft=s,c.scrollLeft=s},this.setScrollY=function(s){n.Ge.enabled?(n.Ge.scrollYRequested=s,setTimeout(function(){var c=n.Ge.scrollYRequested;typeof c=="number"&&n.Ie(c)},0)):n.Ie(s)},this.Ie=function(s){var c=n.nav.scroll,v=n.fe;c.clientHeight+s>v&&(s=v-c.clientHeight),n.divResScroll.scrollTop=s,c.scrollTop=s},this.setScroll=function(s,c){n.setScrollX(s),n.setScrollY(c)},this.na=function(){if(this.nav.scroll){(function(){var _=n.He();n.le.style.height=n.fe+"px",n.le.style.width=_+"px",_>n.nav.scroll.clientWidth?n.nav.scroll.style.overflowX="auto":n.nav.scroll.style.overflowX="hidden"})();var s=1;this.nav.scroll.style.height="30px";var c=this.Ya(),v=c+this.Je()+s;if(c>=0&&(this.nav.scroll.style.height=c+"px",this.Ke.style.height=c+"px"),this.nav.divider&&((!v||isNaN(v)||v<0)&&(v=0),this.nav.divider.style.height=v+"px"),this.nav.top.style.height=v+"px",n.nav.resScrollSpace){var g=30;n.heightSpec==="Auto"&&(g=e.sh(n.nav.scroll)),n.nav.resScrollSpace.style.height=g+"px"}for(var y=0;y<this.elements.linesVertical.length;y++)this.elements.linesVertical[y].style.height=this.fe+"px"}},this.Le=function(){this.startDate=new e.Date(this.startDate).getDatePart(),this.timeHeader=[];var s=this.timeHeaders;s||(s=[{groupBy:this.cellGroupBy},{groupBy:"Cell"}]);for(var c=n.startDate.addDays(n.days),v=0;v<s.length;v++){var g=s[v].groupBy,y=s[v].format;g==="Default"&&(g=this.cellGroupBy);for(var _=[],w=n.startDate;w.ticks<c.ticks;){var S={};if(S.start=w,S.end=this.Me(S.start,g),S.start.ticks===S.end.ticks)break;S.left=this.getPixels(S.start).left;var E=this.getPixels(S.end).left,T=E-S.left;if(S.width=T,typeof y=="string"?S.text=S.start.toString(y,p.Ne()):S.text=this.Oe(S,g),T>0){if(typeof this.onBeforeTimeHeaderRender=="function"){var C={};C.start=S.start,C.end=S.end,C.text=S.text,C.html=null,C.toolTip=n._a(S.text),C.backColor=null,C.fontColor=null,C.level=this.timeHeader.length,C.cssClass=null;var N={};N.header=C,N.control=n,this.onBeforeTimeHeaderRender(N),S.text=C.text,S.html=C.html,S.backColor=C.backColor,S.fontColor=C.fontColor,S.toolTip=C.toolTip,S.areas=C.areas,S.cssClass=C.cssClass}_.push(S)}w=S.end}this.timeHeader.push(_)}},this.getPixels=function(s){var c=s.ticks-this.startDate.ticks,v=n.Bb(c),g=n.cellWidth,y=Math.floor(v/g),_=y*g;_=_<0?0:_;var w=_+g;v%g===0&&(w=_);var S=n.He();return w=w>S?S:w,{left:v,boxLeft:_,boxRight:w,i:y}},this.getDate=function(s,c,v){var g=this.Pe(s,v);if(!g)return null;var y=g.x,_=n.Qe(y);if(!_)return null;var w=v&&!c?_.end:_.start;return c?w.addTime(this.Re(g.offset)):w},this.Pe=function(s,c){c&&(s-=1);var v=Math.floor(s/n.cellWidth),g=n.Qe(v);if(!g)return null;var y={};return y.x=v,y.offset=s%n.cellWidth,y.cell=g,y},this.Se=function(s){var c=s.ticks-this.startDate.ticks,v=60*n.Te()*1e3;if(c<0)return{past:!0};var g=Math.floor(c/v);return{i:g,current:n.Qe(g)}},this.Bb=function(s){var c=60*n.Te()*1e3,v=n.cellWidth;return Math.floor(v*s/c)},this.Re=function(s){var c=60*n.Te()*1e3,v=n.cellWidth;return Math.floor(s/v*c)},this.Ue=function(s){e.Global.touch.start||i.Ve||(n.We={},n.wa(this,s))},this.wa=function(s,c){s.event&&n.Xe(s,c)},this.ya=function(s){if(!e.Global.touch.active&&!e.Global.touch.start){var c=this.event;if(s.cancelBubble=!0,s.preventDefault(),!this.event.client.rightClickEnabled())return!1;n.Ye(s);var v={};if(v.e=c,v.div=this,v.originalEvent=s,v.preventDefault=function(){this.preventDefault.value=!0},typeof n.onEventRightClick=="function"&&(n.onEventRightClick(v),v.preventDefault.value))return!1;if(n.eventRightClickHandling==="ContextMenu"){var g=c.client.contextMenu();g?g.show(c):n.contextMenu&&n.contextMenu.show(this.event)}return typeof n.onEventRightClicked=="function"&&n.onEventRightClicked(v),!1}},this.Qe=function(s){var c=n.Te(),v=60*c*1e3,g=new e.Date(n.startDate);return{start:g.addTime(s*v),end:g.addTime((s+1)*v),left:s*n.cellWidth,width:n.cellWidth}},this.Xe=function(s,c){if(typeof c=="boolean")throw new e.Exception("Invalid _eventClickSingle parameters");var v=s.event;if(v){var g=c.ctrlKey,y=c.metaKey;if(v.client.clickEnabled()){n.Ye(c);var _={};_.e=v,_.control=n,_.div=s,_.originalEvent=c,_.ctrl=g,_.meta=y,_.shift=c.shiftKey,_.preventDefault=function(){this.preventDefault.value=!0},_.toJSON=function(){return e.Util.copyProps(_,{},["e","ctrl","meta","shift"])},typeof n.onEventClick=="function"&&(n.onEventClick(_),_.preventDefault.value)||typeof n.onEventClicked=="function"&&n.onEventClicked(_)}}},this.za=function(s){var c={};c.e=s,c.preventDefault=function(){this.preventDefault.value=!0},c.control=n,c.toJSON=function(){return e.Util.copyProps(c,{},["e"])},(typeof n.onEventDelete!="function"||(n.onEventDelete(c),!c.preventDefault.value))&&(n.eventDeleteHandling==="Update"&&n.events.remove(s),typeof n.onEventDeleted=="function"&&n.onEventDeleted(c))}
27,this.getScrollX=function(){return this.nav.scroll.scrollLeft},this.getScrollY=function(){return this.nav.scroll.scrollTop},this.L=function(s,c,v,g,y){function _(){w.preventDefault.value||((w.loaded={},c=w.newStart,v=w.newEnd,n.eventResizeHandling)==="Update"&&n.$e(w),typeof n.onEventResized=="function"&&n.onEventResized(w))}if(this.eventResizeHandling!=="Disabled"){v=n.Ze(v);var w={};w.e=s,w.async=!1,w.loaded=function(){_()},w.ctrl=!1,w.meta=!1,w.shift=!1,w.alt=!1,y&&(w.shift=y.shiftKey,w.ctrl=y.ctrlKey,w.meta=y.metaKey,w.alt=y.altKey),w.newStart=c,w.newEnd=v,w.what=g,w.preventDefault=function(){this.preventDefault.value=!0},w.control=n,w.toJSON=function(){return e.Util.copyProps(w,{},["e","async","newStart","newEnd"])},typeof n.onEventResize=="function"&&n.onEventResize(w),w.async||_()}},this.rb=function(s){s=s||{},clearTimeout(n._e),n.timeHeader=null,n.cellProperties={},n.Le(),n.af(),n.events.bf(),n.S.Nd(),n.clearSelection(),n.ia(),n.cf(),n.df(),n.eb(),n.sb(),n.ef(),n.ff(),n.gf(),n.ja(),n._(),n.hf(),n.if={},n.jf(),n.na(),n.kf(),s.immediateEvents?n.oa():setTimeout(function(){n.oa()},100),this.visible?n.ge!==n.visible&&this.show():this.hide(),this.ge=this.visible,this.ve(),n.lf(),this.mf()},this.mf=function(){if(typeof n.onAfterUpdate=="function"){var s={};n.onAfterUpdate(s)}},this.update=function(s){if(!n.Ma)throw new e.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized.");if(n.R)throw new e.Exception("You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable.");h.request(s)},h.timeout=null,h.options=null,h.enabled=!1,h.request=function(s){h.enabled?(clearTimeout(h.timeout),h.nf(s),h.timeout=setTimeout(h.doit)):(h.nf(s),h.doit())},h.nf=function(s){if(s){h.options||(h.options={});for(var c in s)h.options[c]=s[c]}},h.doit=function(){var s=h.options;return h.options=null,n.Ma?(n.tb(s),n.rb({immediateEvents:!0}),void n.wb()):void n.tb(s)},this.of=function(s){s.forEach(function(c){n.pf(c.index)})},this.qf=function(s){return s&&s.length!==0?s[0].isRow?s:s.map(function(c){return n.rowlist[c]}):[]},this.rf=function(s,c,v){s=e.ua(s),s=n.qf(s),n.of(s),this.sf?(this.cf(),this.ff(),this.hf(),s.forEach(function(g){n.tf(g.index)}),s.forEach(function(g){n.uf(g.index)}),this.kf(),this.vf()):(s.forEach(function(g){c||n.tf(g.index),n.uf(g.index)}),s.forEach(function(g){n.wf(g.index)}),n.kf()),n.we(),v&&v(),this.jf()},this.Ze=function(s){return n.eventEndSpec==="DateTime"?s:s.getDatePart().ticks===s.ticks?s.addDays(-1):s.getDatePart()},this.xf=function(s){return n.eventEndSpec==="DateTime"?s:s.getDatePart().addDays(1)},this.yf=function(s){return n.eventEndSpec==="DateTime"?s:s.getDatePart()},this.N=function(s,c,v,g,y){if(n.zf=null,n.eventMoveHandling!=="Disabled"){v=n.Ze(v);var _={};_.e=s,_.newStart=c,_.newEnd=v,_.newResource=g,_.ctrl=!1,_.meta=!1,_.shift=!1,_.alt=!1,y&&(_.shift=y.shiftKey,_.ctrl=y.ctrlKey,_.meta=y.metaKey,_.alt=y.altKey),_.control=n,_.areaData=e.Global.movingAreaData,_.toJSON=function(){return e.Util.copyProps(_,{},["e","newStart","newEnd","newResource","ctrl","meta","shift"])},_.preventDefault=function(){this.preventDefault.value=!0};var w=function(){if(_.loaded=function(){},_.preventDefault.value)return void n.Af();(c=_.newStart,v=_.newEnd,n.eventMoveHandling)==="Update"&&n.$e(_),n.Af(),typeof n.onEventMoved=="function"&&n.onEventMoved(_)};_.async=!1,_.loaded=function(){w()},typeof n.onEventMove=="function"&&n.onEventMove(_),_.async||w()}},this.$e=function(s){var c=s.e,v=s.newStart,g=s.newEnd,y=s.newResource;c.start(v),c.end(g),c.resource(y),n.events.update(c),n.events.Bf()},this.Cf=function(s){if(s)if(s.args)n.P(s.args.start,s.args.end,s.args.resource);else{var c=n.Df(s);if(!c)return;n.P(c.start,c.end,c.resource)}},this.P=function(s,c,v){if(n.timeRangeSelectedHandling!=="Disabled"){var g=c;c=n.Ze(g);var y={};if(y.control=n,y.start=s,y.end=c,y.resource=v,y.preventDefault=function(){this.preventDefault.value=!0},y.toJSON=function(){return e.Util.copyProps(y,{},["start","end","resource"])},typeof n.onTimeRangeSelect=="function"){if(n.onTimeRangeSelect(y),y.preventDefault.value)return;s=y.start,c=y.end}c=n.xf(c),n.Ef(n.Ff,s,c),n.Gf(n.Ff),typeof n.onTimeRangeSelected=="function"&&n.onTimeRangeSelected(y)}},this.Ef=function(s,c,v){if(s){var g,y=v;c.getTime()<n.startDate.getTime()?(s.start.x=0,s.start.time=n.startDate.getTime()):(g=n.Se(c),s.start.x=g.i,s.start.time=c);var _=n.startDate.addDays(n.days);y.getTime()>_.getTime()?(s.end.x=n.Hf(),s.end.time=_.getTime()):(g=n.Se(y.addMilliseconds(-1)),s.end.x=g.i,s.end.time=v)}},this.If=function(s,c){n.Jf(s,c)},this.Jf=function(s,c){var v={};v.resource=s,v.row=s,v.ctrl=c.ctrlKey,v.shift=c.shiftKey,v.meta=c.metaKey,v.originalEvent=c,v.preventDefault=function(){this.preventDefault.value=!0},typeof n.onRowClick=="function"&&(n.onRowClick(v),v.preventDefault.value)||typeof n.onRowClicked=="function"&&n.onRowClicked(v)},this.Kf=function(s){var c={};c.header=s,c.control=n,c.preventDefault=function(){this.preventDefault.value=!0},typeof n.onTimeHeaderClick=="function"&&(n.onTimeHeaderClick(c),c.preventDefault.value)||typeof n.onTimeHeaderClicked=="function"&&n.onTimeHeaderClicked(c)},this.getViewport=function(){var s=this.nav.scroll.scrollLeft,c=this.nav.scroll.scrollTop,v={},g=n.Lf(s,c),y=n.Mf(g),_=n.Qe(g.start.x),w=n.Qe(g.end.x);return v.start=n.getDate(s,!0),v.end=n.getDate(s+n.nav.scroll.clientWidth,!0,!0),v.resources=y,_&&(v.topLeft={start:_.start,end:_.end,x:g.start.x,y:g.start.y,resource:y[0]}),w&&(v.bottomRight={start:w.start,end:w.end,x:g.end.x,y:g.end.y,resource:y[y.length-1]}),v.rows=function(){return v.resources.map(function(S){return n.rows.find(S)})},v.events=function(){var S=[];
27return v.rows().forEach(function(E){S=S.concat(E.events.forRange(v.start,v.end))}),S},v},this.Lf=function(s,c){var v={};v.start={},v.end={};var g=n.Pe(s),y=n.Pe(s+n.nav.scroll.clientWidth);g&&(v.start.x=g.x),y&&(v.end.x=y.x);var _=c,w=c+n.nav.scroll.clientHeight;v.start.y=n.Nf(_).i,v.end.y=n.Nf(w).i,v.start.x=e.Util.atLeast(v.start.x,0);var S=n.Hf();return v.end.x>=S&&(v.end.x=S-1),v},this.Mf=function(s){s||(s=this.Lf(this.nav.scroll.scrollLeft,this.nav.scroll.scrollTop));var c=[];c.ignoreToJSON=!0;for(var v=s.start.y;v<=s.end.y;v++){var g=n.rowlist[v];g&&c.push(g.id)}return c},this.M=function(s){var c=this.theme||this.cssClassPrefix;return c?c+s:""},this.sb=function(){n.nav.top.className!==n.M("_main")&&(n.nav.top.className=n.M("_main"),n.nav.dh1.className=n.M("_divider_horizontal"),n.nav.dh2.className=n.M("_divider_horizontal"),n.divResScroll.className=n.M("_rowheader_scroll"),n.nav.divider.className=n.M("_divider")+" "+n.M("_splitter"),n.nav.scroll.className=n.M("_scrollable"),n.le.className=n.M("_matrix")+" "+n.M("_grid_main"))},this.ca=function(){this.nav.top.dispose=this.dispose},this.dispose=function(){var s=n;if(s.Ma&&!s.R){s.R=!0;for(var c in s.Of){var v=s.Of[c];e.isArray(v)?v.forEach(function(g){clearTimeout(g)}):clearTimeout(v)}s._(),s.divCells=null,s.divCorner=null,s.divEvents=null,s.divHeader&&(s.divHeader.rows=null),s.divHeader=null,s.divLines=null,s.divNorth=null,s.divRange=null,s.divResScroll=null,s.divStretch=null,s.divTimeScroll=null,s.Ke=null,s.le.calendar=null,s.le=null,s.nav.top.onmousemove=null,s.nav.top.onmouseout=null,s.nav.top.dispose=null,s.nav.top.ontouchstart=null,s.nav.top.ontouchmove=null,s.nav.top.ontouchend=null,s.nav.top.removeAttribute("style"),s.nav.top.removeAttribute("class"),s.nav.top.innerHTML="",s.nav.top.dp=null,s.nav.top=null,s.nav.scroll.onscroll=null,s.nav.scroll.root=null,s.nav.scroll=null,i.rc(s),m=null}},this.disposed=function(){return n.R},this.da=function(s){var c=null;c=s.nodeType?s.event:s;var v=n.eventBorderRadius;typeof v=="number"&&(v+="px");var g=n.Pf(c),y=n.rowlist,_=n.eventHeight,w=c.part&&c.part.top&&y[c.part.dayIndex]?c.part.top+y[c.part.dayIndex].top:g.top,S=g.left,E=g.width,T=document.createElement("div");T.style.position="absolute",T.style.width=E+"px",T.style.height=_+"px",T.style.left=S+"px",T.style.top=w+"px",T.style.overflow="hidden";var C=d();return T.appendChild(C),T.className=this.M("_shadow"),C.className=this.M("_shadow_inner"),v&&(T.style.borderRadius=v,C.style.borderRadius=v),n.divShadow.appendChild(T),T.calendar=n,T},this.Nf=function(s){for(var c,v=n.rowlist,g={},y=0,_=0,w=v.length,S=0;S<w;S++){var E=v[S];if(_+=E.height,y=_-E.height,c=E,g.top=y,g.bottom=_,g.i=S,g.element=c,s<_)break}return g},this.Qf=function(s){if(s>this.rowlist.length-1)throw new e.Exception("Row index too high");for(var c=0,v=0;v<=s;v++)c+=this.rowlist[v].height;var g=this.rowlist[s];return{top:c-g.height,height:g.height,bottom:c,i:s,data:g}},this.events.find=function(s){if(!n.events.list||typeof n.events.list.length>"u")return null;if(typeof s=="function")return n.Rf(s);for(var c=n.events.list.length,v=0;v<c;v++)if(n.events.list[v].id===s)return new e.Event(n.events.list[v],n);return null},this.events.findAll=function(s){if(typeof s=="function"){for(var c=n.events.list.length,v=[],g=0;g<c;g++){var y=new e.Event(n.events.list[g],n);s(y)&&v.push(y)}return v}if(typeof s=="object")return n.events.findAll(function(_){for(var w in s)if(s[w]!==_.data[w])return!1;return!0});throw new e.Exception("function or object argument expected")},this.Rf=function(s){for(var c=n.events.list.length,v=0;v<c;v++){var g=new e.Event(n.events.list[v],n);if(s(g))return g}return null},this.events.focus=function(s){var c=n.Sf(s);c?.focus()},this.events.scrollIntoView=function(s){if(n.Sf(s)){var c=s.start(),v=n.getViewport();!e.Util.overlaps(v.start,v.end,s.start(),s.end())&&e.Util.overlaps(n.ta(),n.Tf(),s.start(),s.end())&&n.scrollTo(c,"fast","middle");var g=s.resource();n.getViewport().resources.indexOf(g)===-1&&n.scrollToResource(g)}},this.events.all=function(){for(var s=[],c=0;c<n.events.list.length;c++){var v=new e.Event(n.events.list[c],n);s.push(v)}return s},this.events.forRange=function(s,c){s=s?new e.Date(s):n.visibleStart(),c=c?new e.Date(c):n.visibleEnd();for(var v=[],g=0;g<n.events.list.length;g++){var y=new e.Event(n.events.list[g],n);e.Util.overlaps(y.start(),y.end(),s,c)&&v.push(y)}return v},this.events.load=function(s,c,v){if(!s)throw new e.Exception("events.load(): 'url' parameter required");var g=function(S){var E={};E.exception=S.exception,E.request=S.request,typeof v=="function"&&v(E)},y=function(S){var E,T=S.request;try{E=JSON.parse(T.responseText)}catch(B){var C={};return C.exception=B,void g(C)}if(e.isArray(E)){var N={};if(N.preventDefault=function(){this.preventDefault.value=!0},N.data=E,typeof c=="function"&&c(N),N.preventDefault.value)return;n.events.list=N.data,n.Ma&&n.update()}};if(n.eventsLoadMethod&&n.eventsLoadMethod.toUpperCase()==="POST")e.ajax({method:"POST",contentType:"application/json",data:{start:n.visibleStart().toString(),end:n.visibleEnd().toString()},url:s,success:y,error:g});else{var _=s,w="start="+n.visibleStart().toString()+"&end="+n.visibleEnd().toString();_+=_.indexOf("?")>-1?"&"+w:"?"+w,e.ajax({method:"GET",url:_,success:y,error:g})}},this.events.Uf=function(s){var c=[];return n.rowlist.forEach(function(v){n.Vf(v.index);for(var g=0;g<v.events.length;g++){var y=v.events[g].data;if(n.Wf(y,s)){c.push(v),v.events.splice(g,1);break}}}),c},this.events.Xf=function(s){if(!s)return null;for(var c=n.rowlist,v=0;v<c.length;v++){var g=c[v];n.Vf(g.index);for(var y=0;y<g.events.length;y++){var _=g.events[y];if(n.Wf(_.data,s))return g.events[y]}}return null},this.events.Yf=function(s){var c=[],v=n.Zf(),g=e.indexOf(n.events.list,s);n.zb(g);var y=n.rowlist,_=!1;
27return y.forEach(function(w){if(!_){n.Vf(w.index);var S=n.$f(s,w);S&&(typeof n.onBeforeEventRender=="function"&&(S.cache=n.yb.events[g]),c.push(w),v||(_=!0))}}),c},this.Wf=function(s,c){return e.Util.isSameEvent(s,c)},this.events.update=function(s){if(typeof s=="object"&&!(s instanceof e.Event)){var c=n.events.find(s.id);return n.events.remove(c),void n.events.add(s)}if(n.events.list.find(function(g){return n.Wf(g,s.data)})){n.Ge._f&&(n.Ge.skip=!0);var v=n.events.Uf(s.data);s.commit(),v=v.concat(n.events.Yf(s.data)),n.events.ag(v)}},this.events.remove=function(s){if(s){if(typeof s=="string"||typeof s=="number"){var c=n.events.find(s);return void n.events.remove(c)}var v=n.bg(s.data);v&&n.events.list.splice(v.index,1),n.Ge._f&&(n.Ge.skip=!0);var g=n.events.Uf(s.data);n.events.ag(g)}},this.events.add=function(s,c,v){v=v||{};var g=v.renderOnly;s instanceof e.Event||(s=new e.Event(s)),s.calendar=n,n.events.list||(n.events.list=[]);var y=n.bg(s);if(g){if(!y)throw new e.Exception("Unexpected: event not found in list")}else{if(y)throw new e.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");y||n.events.list.push(s.data)}if(n.Ma){n.Ge._f&&(n.Ge.skip=!0);var _=n.events.Yf(s.data);n.events.ag(_)}},this.events.cg=function(s){var c=s instanceof e.Event?s.data:s,v=new e.Date(c.start),g=new e.Date(c.end);return!!n.events.list.find(function(y){if(n.Wf(c,y)||c.resource!==y.resource)return!1;var _=new e.Date(y.start),w=new e.Date(y.end);return e.Util.overlaps(v,g,_,w)})},this.events.dg={rows:[]},this.events.eg=null,this.events.bf=function(){clearTimeout(n.events.eg),n.events.eg=null,n.events.dg.rows=[]},this.events.fg=0,this.events.ag=function(s){var c=n.events.dg.rows;s.forEach(function(g){c.push(g)}),n.events.dg.rows=e.ua(c);var v=n.events.Bf;n.events.eg||(n.events.eg=setTimeout(v,n.events.fg))},this.events.Bf=function(){clearTimeout(n.events.eg),n.events.eg=null;var s=n.events.dg.rows;n.events.dg.rows=[],n.gg(s),n.hg(),n.Ma&&(n.sf&&n.cf(),n.na(),n.rf(s))},this.Ge={},this.Ge.enabled=!1,this.Ge.skip=!1,this.Ge.skipUpdate=function(){return n.Ge.skip},this.Ge.skipped=function(){n.Ge.skip=!1},this.Ge.ig=!1,this.Ge._f=!1,this.Bd={},this.Bd.reactDOM=null,this.Bd.react=null,this.jg=function(s){var c=n.startDate;if(s.ticks===c.ticks)return s;var v=c;if(s.ticks<c.ticks){for(;v.ticks>s.ticks;)v=v.addTime(60*-n.Te()*1e3);return v}var g=this.Se(s);if(g.current)return g.current.start;throw new e.Exception("getBoxStart(): time not found")},this.Pf=function(s){var c=this.Nf(n.coords.y);if(typeof s.end!="function")throw new e.Exception("e.end function is not defined");if(!s.end())throw new e.Exception("e.end() returns null");var v=e.DateUtil.diff(s.rawend(),s.start());v=e.Util.atLeast(v,1);var g=p.kg(v),y=0,_=n.coords.x;g&&(y=s.start().getTime()-this.jg(s.start()).getTime());var w=0;if(i.lg)if(g){var S=s.start(),E=this.jg(S);w=i.lg.getTime()-E.getTime();var T=60*n.Te()*1e3;w=Math.floor(w/T)*T}else w=i.lg.getTime()-s.start().getTime();var C=this.getDate(_,!0).addTime(-w);i.mg&&(C=s.start());var N=n.snapToGrid;N&&(C=this.jg(C)),C=C.addTime(y);var B=C.addTime(v),M=C,L=B,I=this.getPixels(M),$=this.getPixels(L),O=N?I.boxLeft:I.left,H=N&&g?$.boxRight-O:$.left-O,D={};return D.top=c.top,D.left=O,D.row=c.element,D.rowIndex=c.i,D.width=H,D.start=C,D.end=B,D.relativeY=n.coords.y-c.top,D},this.Te=function(){switch(this.scale){case"CellDuration":return this.cellDuration;case"Minute":return 1;case"Hour":return 60;case"Day":return 1440;case"Week":return 10080}throw new e.Exception("can't guess cellDuration value")},this.ng=function(s){return s.end.ticks-s.start.ticks},this.og=function(){var s=i.pg.width,c=i.pg.left,v=i.qg,g=i.mg.dpBorder,y=null,_=null,w=n.snapToGrid,S=!w;g==="left"?(y=n.getDate(c,S),_=v.rawend()):g==="right"&&(y=v.start(),_=n.getDate(c+s,S,!0)),i.pg.start=y,i.pg.end=_},this.rg=function(){var s=n.coords,c=i.mg.dpBorder,v=i.mg.event,g=v.part.left;c==="right"&&(g+=v.part.width);var y,_,w=i.mg.event.calendar.cellWidth,S=v.part.width,E=v.part.left,T=0,C=s.x-g,N=n.snapToGrid;if(c==="right"){if(y=E,N){var B=n.Pe(S+E+C).cell,M=n.Pe(E).cell,L=M.left+M.width-E;_=B.left+B.width-E,_<L&&(_=L)}else _=S+C;var I=n.He();E+_>I&&(_=I-E),i.pg.left=E,i.pg.width=_,i.pg.style.left=E+"px",i.pg.style.width=_+"px"}else{if(c!=="left")throw new e.Exception("Invalid dpBorder.");N?(C>=S&&(C=S),y=Math.floor((E+C+0)/w)*w,y<T&&(y=T)):y=E+C,_=S-(y-E);var $=E+S,O=w;N?n.useEventBoxes==="Never"&&(O=S<w?S:1):O=1,_<O&&(_=O,y=$-_),i.pg.left=y,i.pg.width=_,i.pg.style.left=y+"px",i.pg.style.width=_+"px"}n.og()},this.sg=function(){if(n.coords&&i.tg){var s=i.ug,c=this.Pf(i.tg);s.row=c.row,s.style.height=e.Util.atLeast(c.row.height,0)+"px",s.style.top=c.top+"px",s.style.left=c.left+"px",s.style.width=c.width+"px",s.start=c.start,s.end=c.end}},this.vg=function(){return this.rowHeaderWidth},this.wg=function(){return this.xg(n.progressiveRowRenderingPreload)},this.xg=function(s){s=s||0;var c=0,v=n.rowlist.length;if(n.progressiveRowRendering){var g=n.pe();c=g.yStart,v=g.yEnd+1,c=e.Util.atLeast(0,c-s),v=Math.min(n.rowlist.length,v+s)}return{start:c,end:v}},this.df=function(){function s(){var _=n.divHeader;_&&(_.rows=[]);var w=_;w&&(w.innerHTML="")}this.yg=!0;var c=this.vg();s();var v=this.divHeader;
27if(v.style.width=c+"px",v.style.height=n.fe+"px",n.divHeader=v,n.progressiveRowRendering)u();else for(var g=this.rowlist.length,y=0;y<g;y++)n.zg(y);n.Ag(),this.divResScroll.appendChild(v)},this.Bg=function(){if(n.progressiveRowRendering)for(var s=this.wg(),c=0;c<n.rowlist.length;c++)s.start<=c&&c<s.end?n.zg(c):n.Cg(c)},this.Ag=function(){if(!n.S.Dg()){var s=n.divHeader,c=d();c.style.position="absolute",s.appendChild(c),n.nav.resScrollSpace=c;var v=d();v.style.position="relative",v.style.height="100%",v.className=this.M("_rowheader"),c.appendChild(v);var g=this.vg();c.style.width=g+"px",c.style.top=this.fe+"px"}},this.Cg=function(s){var c=n.divHeader.rows[s];c&&(e.de(c),n.divHeader.rows[s]=null)},this.pf=function(s){this.Cg(s),this.zg(s)},this.zg=function(s){var c=n.rowlist,v=n.divHeader;if(v&&!v.rows[s]){var g=this.vg(),y=c[s];if(y){var _=this.Eg(y),w=d();w.style.position="absolute",w.style.top=y.top+"px",v.rows[s]=w,w.row=y,w.index=s;var S=_.row,E=this.rowHeaderWidth;w.style.width=E+"px",w.style.border="0px none";var T=S.toolTip||S.toolTip;T&&(w.title=T),typeof S.ariaLabel<"u"?w.setAttribute("aria-label",S.ariaLabel):w.setAttribute("aria-label",S.text||""),w.onclick=n.Fg;var C=d();C.style.width=E+"px",C.className=this.M("_rowheader"),S.cssClass&&e.Util.addClass(C,S.cssClass),S.cssClass&&e.Util.addClass(C,S.cssClass);var N=S.backColor||S.backColor;N&&(C.style.background=N);var B=S.fontColor||S.fontColor;B&&(C.style.color=B);var M=S.horizontalAlignment||S.horizontalAlignment;M&&(C.style.textAlign=M),C.style.height=y.height+"px",C.style.overflow="hidden",C.style.position="relative";var L=d();switch(L.className=this.M("_rowheader_inner"),M){case"right":L.style.justifyContent="flex-end";break;case"left":L.style.justifyContent="flex-start";break;case"center":L.style.justifyContent="center"}C.appendChild(L);var I=S.areas||[],$=n.Gg(y);e.Areas.attach(C,$,{areas:I});var O=d();O.style.position="absolute",O.style.bottom="0px",O.style.width="100%",O.style.height="0px",O.style.boxSizing="content-box",O.style.borderBottom="1px solid transparent",O.className=this.M("_resourcedivider"),C.appendChild(O);var H=d(),D=d();D.innerHTML=n._a(S.text,S.html),D.className=n.M("_rowheader_inner_text"),w.textDiv=D,w.cellDiv=C,H.appendChild(D),L.appendChild(H);var R=S.verticalAlignment||S.verticalAlignment;if(R)switch(L.style.display="flex",R){case"center":L.style.alignItems="center";break;case"top":L.style.alignItems="flex-start";break;case"bottom":L.style.alignItems="flex-end"}w.appendChild(C),v.appendChild(w),C.style.width=g+"px"}}},this.Fg=function(s){var c=this.row,v=n.Gg(c,this.index);n.If(v,s)},this.Hg=function(){if(n.timeHeaderClickHandling!=="Disabled"){var s={};s.start=this.cell.start,s.level=this.cell.level,s.end=this.cell.end,s.end||(s.end=new e.Date(s.start).addMinutes(n.Te())),n.Kf(s)}},this.Ig=function(s){if(n.timeHeaderRightClickHandling!=="Disabled"){s.cancelBubble=!0,s.preventDefault();var c={};c.start=this.cell.start,c.level=this.cell.level,c.end=this.cell.end,c.end||(c.end=new e.Date(c.start).addMinutes(n.Te()));var v={};v.header=c,v.preventDefault=function(){this.preventDefault.value=!0},typeof n.onTimeHeaderRightClick=="function"&&(n.onTimeHeaderRightClick(v),v.preventDefault.value)||typeof n.onTimeHeaderRightClicked=="function"&&n.onTimeHeaderRightClicked(v)}},this.Gg=function(s){return new e.Row(s,n)},this.Vf=function(s){var c=n.rowlist,v=c[s];v.events||v.resetEvents()},this.Jg={},this.ia=function(s){if(s?this.events.list=s:this.events.list||(this.events.list=[]),this.events.list!=null&&!e.isArray(this.events.list))throw new e.Exception("DayPilot.Scheduler.events.list expects an array object");m.prepareRows(!0);var c,v=this.events.list,g=typeof this.onBeforeEventRender=="function";n.Jg={};for(var y=0;y<v.length;y++){var _=v[y];if(_){if(typeof _!="object")throw new e.Exception("Event data item must be an object");if(!_.start)throw new e.Exception("Event data item must specify 'start' property");if(_ instanceof e.Event)throw new e.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");if(!(typeof _.id=="string"||typeof _.id=="number"))throw new e.Exception("All events must have an id property (string or number)");var w="_"+_.id;if(n.Jg[w])throw new e.Exception("Duplicate event IDs are not allowed: "+w);n.Jg[w]=!0,g&&this.zb(y),c=n.Kg(_.resource);for(var S=0;c&&S<c.length;S++){var E=c[S],T=this.$f(_,E);T&&g&&(T.cache=this.yb.events[y])}}}n.rowlist.forEach(function(C){n.Lg(C)}),n.hg()},m.rowcache={},m.prepareRows=function(s){m.rowcache={};for(var c=n.rowlist,v=0;v<c.length;v++){var g=c[v];if(s&&g.resetEvents(),n.Vf(g.index),g.id){var y=typeof g.id+"_"+g.id;m.rowcache[y]||(m.rowcache[y]=[]),m.rowcache[y].push(g)}}},this.Kg=function(s){var c=typeof s+"_"+s;return m.rowcache[c]||[]},this.Zf=function(){for(var s={},c=0;c<n.rowlist.length;c++){var v=n.rowlist[c],g=v.id;if(s[g])return!0;s[g]=!0}return!1},this.zb=function(s){var c=this.yb.events,v=this.events.list[s],g={};v instanceof e.Event&&(v=v.data);for(var y in v)g[y]=v[y];if(typeof g.start=="string"&&(g.start=new e.Date(g.start)),typeof g.end=="string"&&(g.end=new e.Date(g.end)),typeof this.onBeforeEventRender=="function"){var _={};_.e=g,_.data=g,this.onBeforeEventRender(_)}c[s]=g},this.Lg=function(s){s.lines=[],s.sections=null,s.events.sort(this.Ab);for(var c=0;c<s.events.length;c++){var v=s.events[c];s.putIntoLine(v)}}
27,this.gg=function(s){s=e.ua(s),s=n.qf(s),s.forEach(function(c){n.Lg(c)}),s.forEach(function(c){n.Mg(c)})},this.$f=function(s,c){var v=new e.Date(s.start),g=new e.Date(s.end);g=n.xf(g);var y=v.ticks,_=g.ticks,w=n.startDate.ticks,S=n.startDate.addDays(n.days).ticks;if(_<y)return null;var E=null;if(typeof n.onBeforeEventRender=="function"){var T=e.indexOf(n.events.list,s);E=n.yb.events[T]}if(c.id!==s.resource||(_<=w||y>=S)&&(y!==_||y!==w))return null;var C=new e.Event(s,n);C.part.dayIndex=n.rowlist.indexOf(c),C.part.start=w<y?v:n.startDate,C.part.end=S>_?g:n.startDate.addDays(n.days);var N=this.getPixels(C.part.start),B=this.getPixels(C.part.end);C.part.start===C.part.end&&(B=this.getPixels(C.part.end.addMilliseconds(1)));var M=N.left,L=B.left;if(p.kg(_-y)){var I=N.boxLeft,$=B.boxRight;C.part.left=I,C.part.width=$-I,C.part.barLeft=Math.max(M-C.part.left,0),C.part.barWidth=Math.max(L-M,1)}else C.part.left=M,C.part.width=Math.max(L-M,1),C.part.barLeft=0,C.part.barWidth=Math.max(L-M,1);var O=n.eventMinWidth;return C.part.width=Math.max(C.part.width,O),C.part.right=C.part.left+C.part.width,C.cache=E,c.events.push(C),C},this.Ab=function(s,c){if(!(s&&c&&s.start&&c.start))return 0;var v=s.start().ticks-c.start().ticks;return v!==0?v:c.end().ticks-s.end().ticks},this.rows={},this.rows.all=function(){for(var s=[],c=0;c<n.rowlist.length;c++){var v=n.Gg(n.rowlist[c]);s.push(v)}return s},this.rows.each=function(s){n.rows.all().forEach(s)},this.rows.forEach=function(s){n.rows.all().forEach(s)},this.rows.find=function(s,c){if(typeof s=="string"||typeof s=="number"||!s&&c){var v=n.Kg(s);s||(v=n.rowlist);var g=null;return typeof c=="string"||c instanceof e.Date?(c=new e.Date(c),g=v.find(function(w){return c===w.start})):g=v[0],g?new e.Row(g,n):null}if(typeof s!="function")throw new e.Exception("Invalid rows.find() argument: id or function expected");var y=c||0,_=n.rowlist.find(function(w,S){return!(S<y)&&s(n.Gg(w))});if(_)return n.Gg(_)},this.rows.load=function(s,c,v){if(!s)throw new e.Exception("rows.load(): 'url' parameter required");var g=function(_){var w={};w.exception=_.exception,w.request=_.request,typeof v=="function"&&v(w)},y=function(_){var w,S=_.request;try{w=JSON.parse(S.responseText)}catch(C){var E={};return E.exception=C,void g(E)}if(e.isArray(w)){var T={};if(T.preventDefault=function(){this.preventDefault.value=!0},T.data=w,typeof c=="function"&&c(T),T.preventDefault.value)return;n.resources=T.data,n.Ma&&n.update()}};n.rowsLoadMethod&&n.rowsLoadMethod.toUpperCase()==="POST"?e.ajax({method:"POST",url:s,success:y,error:g}):e.ajax({method:"GET",url:s,success:y,error:g})},this.rows.remove=function(s){if(typeof s=="number"||typeof s=="string"){var c=n.rows.find(s);if(!c)throw new e.Exception("The row to be removed was not found");return void n.rows.remove(c)}var v=s.$.row.resource,g=e.indexOf(n.resources,v);n.resources.splice(g,1),n.update()},this.rows.add=function(s){n.resources.push(s),n.rb()},this.rows.update=function(s){if(!(s instanceof e.Row||typeof s=="object"))throw new e.Exception("DayPilot.Scheduler.rows.update() expects a DayPilot.Row object or a data object.");if(!(s instanceof e.Row)){var c=s;if(s=n.rows.find(c.id),!s)return;s.data=c}var v=s.index,g=n.rowlist,y=g[v],_=s.data,w=n.Ng(_),S=n.Og(w);S.level=y.level,S.index=v,S.top=y.top,S.height=y.height,g[v]=S,S.resetEvents(),n.Vf(S.index),n.Pg(S),n.Lg(S),n.pf(S.index),n.hf(),n.kf()},this.Pg=function(s){for(var c=n.events.list,v=c.length,g=typeof n.onBeforeEventRender=="function",y=0;y<v;y++){var _=c[y];if(_){if(_ instanceof e.Event)throw new e.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");if(_.resource===s.id){g&&this.zb(y);var w=this.$f(_,s);w&&g&&(w.cache=this.yb.events[y])}}}},this.af=function(){var s=this.resources;if(s!=null&&!e.isArray(s))throw new e.Exception("DayPilot.Scheduler.resources expects an array object");s=s||[],n.rowlist=[],this.Qg(s)},this.ta=function(){return new e.Date(this.startDate)},this.Tf=function(){return new e.Date(n.startDate).addDays(n.days)},this.visibleStart=function(){return this.ta()},this.visibleEnd=function(){return this.Tf()},this.Og=function(s){var c={};return c.backColor=s.backColor,c.fontColor=s.fontColor,c.cssClass=s.cssClass,c.name=s.name,c.html=n._a(s.name,s.html),c.id=s.id,c.toolTip=s.toolTip,c.areas=s.areas,c.tags=s.tags,c.height=n.eventHeight,c.level=0,c.resource=s.Fe,c.lines=[],c.isRow=!0,c.getHeight=function(){return Math.max(n.eventHeight,this.lines.length*n.eventHeight)},c.resetEvents=function(){var v=c;v.events=[],v.events.forRange=function(g,y){g=new e.Date(g),y=y?new e.Date(y):n.startDate.addDays(n.days);for(var _=[],w=0;w<v.events.length;w++){var S=v.events[w],E=n.xf(S.end());e.Util.overlaps(S.start(),E,g,y)&&_.push(S)}return _}},c.Rg=function(){var v=[];return v.add=function(g){this.push(g)},v.isFree=function(g,y,_){for(var w=g+y-1,S=this.length,E=0;E<S;E++){var T=this[E];if(!(w<T.part.left||g>T.part.left+T.part.width-1)){if(e.contains(_,T.data))continue;return!1}}return!0},v},c.findFreeLine=function(v,g){for(var y=0;y<this.lines.length;y++)if(this.lines[y].isFree(v,g))return y;var _=c.Rg();return this.lines.push(_),this.lines.length-1},c.putIntoLine=function(v){var g=c.findFreeLine(v.part.left,v.part.width);return this.lines[g].add(v),g},c},this.Qg=function(s){if(s){for(var c=n.rowlist,v=0;v<s.length;v++)if(s[v]){var g={};g.index=v;var y=this.Ng(s[v],g),_=n.Og(y,parent);_.index=v,c.push(_)}}},this.Eg=function(s){var c={};return c.row=this.Gg(s),e.Util.copyProps(s,c.row,["html","backColor","fontColor","cssClass","toolTip","areas"]),typeof this.onBeforeRowHeaderRender=="function"&&this.onBeforeRowHeaderRender(c),c},this.Ng=function(s,c){var v={get $data(){return this.Fe}};for(var g in c)v[g]=c[g];for(var y in s)v[y]=s[y];return v.html=n._a(s.name,s.html),v.Fe=s,v},this.Sg=function(){this.nav.top.dp=this,this.nav.top.innerHTML="",e.Util.addClass(this.nav.top,this.M("_main")),this.nav.top.setAttribute("role","regi
27on"),this.nav.top.setAttribute("aria-label","scheduler"),this.nav.top.style.userSelect="none",this.nav.top.style.webkitUserSelect="none",this.nav.top.style.WebkitTapHighlightColor="rgba(0,0,0,0)",this.nav.top.style.WebkitTouchCallout="none",this.width&&(this.nav.top.style.width=this.width),this.nav.top.style.lineHeight="1.2",this.nav.top.style.position="relative",this.visible||(this.nav.top.style.display="none"),this.nav.top.ontouchstart=a.Tg,this.nav.top.ontouchmove=a.Ug,this.nav.top.ontouchend=a.Vg;var s=this.rowHeaderWidth,c=d();c.style.position="absolute",c.style.left="0px",c.style.width=s+"px";var v=d();v.style.height="0px",v.style.boxSizing="content-box",v.style.borderTop="1px solid transparent",v.className=this.M("_divider_horizontal"),this.nav.dh1=v,this.nav.left=c,c.appendChild(this.fb()),c.appendChild(v),c.appendChild(this.Wg());var g=d();g.style.position="absolute",g.style.left=s+"px",g.style.width="1px",g.style.height=this.Je()+this.Ya()+"px",g.className=this.M("_splitter"),this.nav.divider=g;var y=d();y.style.marginLeft=s+1+"px",y.style.position="relative",this.nav.right=y;var _=d();_.style.position="absolute",_.style.top=this.Je()+"px",_.style.width="100%",_.style.height="1px",_.style.boxSizing="border-box",_.style.borderBottom="1px solid transparent",_.setAttribute("data-dh2","true"),_.className=this.M("_divider_horizontal"),this.nav.dh2=_,y.appendChild(n.Xg()),y.appendChild(n.Yg()),y.appendChild(_);var w=d();w.style.clear="left";var S=d();S.style.height="1px",S.style.position="absolute",S.style.left="0px",S.style.right="0px",S.style.display="none",S.className=this.M("_divider_horizontal"),this.nav.dividerTop=S;var E=d();E.style.height="1px",E.style.position="absolute",E.style.left="0px",E.style.right="0px",E.style.display="none",E.className=this.M("_divider_horizontal")+" "+this.M("_divider_horizontal_frozen_bottom"),this.nav.dividerBottom=E,this.nav.top.appendChild(c),this.nav.top.appendChild(g),this.nav.top.appendChild(y),this.nav.top.appendChild(w),this.nav.top.appendChild(S),this.nav.top.appendChild(E)},this.ja=function(){var s=this.Je();this.nav.corner&&(this.nav.corner.style.height=s+"px"),this.divTimeScroll&&(this.divTimeScroll.style.height=s+"px"),this.divNorth&&(this.divNorth.style.height=s+"px"),this.nav.dh1&&this.nav.dh2&&(this.nav.dh1.style.top=s+"px",this.nav.dh2.style.top=s+"px"),this.nav.scroll.style.top=s+1+"px"},this.Zg=function(){var s=this.rowHeaderWidth;this.nav.corner&&(this.nav.corner.style.width=s+"px"),this.divResScroll.style.width=s+"px",this.nav.left.style.width=s+"px",this.nav.divider.style.left=s-1+"px",this.nav.right.style.marginLeft=s+"px"},this.$g=function(){var s=this.rowHeaderWidth,c=this.divHeader;c.style.width=s+"px";for(var v=n.wg(),g=v.start;g<v.end;g++){var y=c.rows[g];if(y){var _=n.rowHeaderWidth;y.style.width=_+"px",y.firstChild.style.width=_+"px"}}n.nav.resScrollSpace&&(n.nav.resScrollSpace.style.width=s+"px")},this.gf=function(){this.Zg(),this.$g()},this.fb=function(){var s=this.rowHeaderWidth,c=d();n.nav.corner=c,c.style.width=s+"px",c.style.height=this.Je()+"px",c.style.overflow="hidden",c.style.position="relative",c.oncontextmenu=function(){return!1},c.className=this.M("_corner");var v=d();return v.style.position="absolute",v.style.top="0px",v.style.left="0px",v.style.right="0px",v.style.bottom="0px",v.className=this.M("_corner_inner"),v.innerHTML=" ",this.divCorner=v,c.appendChild(v),c},this.Je=function(){return n.timeHeaders?n.timeHeaders.length*n.headerHeight:0},this._g=null,this.Wg=function(){var s=d();s.style.width=this.rowHeaderWidth+"px",s.style.height=this.Ya()+"px",s.style.overflow="hidden",s.style.position="relative",s.className=n.M("_rowheader_scroll");var c=n.S.Dg();c&&(s.style.overflowY="auto"),s.ontouchstart=function(){i.ah=!0},s.oncontextmenu=function(){return!1},s.onscroll=function(){if(n._g&&clearTimeout(n._g),c){var g=function(){var y=n.bh()-n.nav.scroll.offsetHeight;s.scrollTop=Math.min(s.scrollTop,y),n.nav.scroll.scrollTop=s.scrollTop};e.browser.ios?i.ah&&(n._g=setTimeout(g,10)):n._g=setTimeout(g,10)}else n._g=setTimeout(function(){n.nav.scroll.scrollTop=s.scrollTop},500)}
27,s.setAttribute("role","region"),s.setAttribute("aria-label","scheduler rows");var v=d();return this.divHeader=v,s.appendChild(v),this.divResScroll=s,this.Ke=s,s},this.ch=null,this.dh=null,this.eh=function(){var s=function(){n.fh(),n.lf()},c=function(){var g=n.nav.top;if(g){if(!n.ch)return n.ch={},void(n.ch.width=g.offsetWidth);n.ch.width!==g.offsetWidth&&(n.ch.width=g.offsetWidth,s())}};if(!n.dh){var v=new ResizeObserver(e.debounce(c,100));v.observe(n.nav.top),n.dh=v}},this.fh=function(){n.R||(n.na(),n.gh(),n.yb.drawArea=null)},this.gh=function(){var s=n.Ff;n.clearSelection(),n.Ff=s,n.Gf(s,{justDraw:!0})},this.Xg=function(){var s=d();s.style.overflow="hidden",s.style.display="block",s.style.position="absolute",s.style.top="0px",s.style.width="100%",s.style.height=this.Je()+"px",s.style.overflow="hidden",s.className=n.M("_timeheader_scroll"),this.divTimeScroll=s;var c=d();return c.style.width=this.He()+5e3+"px",this.divNorth=c,s.appendChild(c),s},this.Ya=function(){var s=0,c=n.heightSpec;return c==="Fixed"?this.height?this.height:0:(s=n.bh(),c==="Max"&&s>n.height?n.height:s)},this.bh=function(){var s;return this.fe!==-1?(s=this.fe,this.fe>0&&n.nav.scroll.style.overflowX==="auto"&&(s+=e.sh(n.nav.scroll)+1)):s=this.rowlist.length*n.eventHeight,s},this.Yg=function(){var s=d();s.style.overflow="auto",s.style.overflowX="auto",s.style.overflowY="auto",s.style.height=this.Ya()+"px",s.style.top=this.Je()+1+"px",s.style.position="absolute",s.style.width="100%",s.className=this.M("_scrollable"),s.oncontextmenu=function(){return!1},this.nav.scroll=s,this.le=d();var c=this.le;c.style.userSelect="none",c.style.webkitUserSelect="none",c.calendar=this,c.style.position="absolute";var v=this.He();return v>0&&(c.style.width=v+"px"),c.onmousedown=this.hh,c.onmousemove=this.ih,c.onmouseup=this.jh,c.oncontextmenu=this.kh,c.className=this.M("_matrix"),this.divStretch=d(),this.divStretch.style.position="absolute",this.divStretch.style.height="1px",c.appendChild(this.divStretch),this.divCells=d(),this.divCells.style.position="absolute",this.divCells.oncontextmenu=this.kh,c.appendChild(this.divCells),this.divLines=d(),this.divLines.style.position="absolute",this.divLines.oncontextmenu=this.kh,c.appendChild(this.divLines),this.divSeparators=d(),this.divSeparators.style.position="absolute",this.divSeparators.oncontextmenu=this.kh,c.appendChild(this.divSeparators),this.divRange=d(),this.divRange.style.position="absolute",this.divRange.oncontextmenu=this.kh,c.appendChild(this.divRange),this.divEvents=d(),this.divEvents.style.position="absolute",c.appendChild(this.divEvents),this.divShadow=d(),this.divShadow.style.position="absolute",c.appendChild(this.divShadow),s.appendChild(c),s},this.qb=function(){i.lh||(i.lh=!0,e.re(document,"mouseup",i.ee),e.reNonPassive(document,"touchmove",i.mh),e.re(document,"touchend",i.nh))},this.oh=function(){this.nav.scroll.root=this,this.nav.scroll.onscroll=this.lf,n.ph=this.nav.scroll.scrollLeft,n.qh=this.nav.scroll.scrollTop,this.divNorth&&(n.rh=this.divNorth.clientWidth)},this.uh={},this.uh.step=300,this.uh.delay=10,this.uh.mode="display",this.uh.layers=!1,this.Mg=function(s){for(var c=0,v=0;v<s.lines.length;v++){for(var g=s.lines[v],y=0;y<g.length;y++){var _=g[y];_.part.line=v,_.part.top=c+n.rowMarginTop,_.part.right=_.part.left+_.part.width}c+=n.eventHeight}},this._e=null,this.oa=function(s){if(!n.R){var c=this.uh.step;this.uh.mode==="display"?this.divEvents.style.display="none":this.uh.mode==="visibility"&&(this.divEvents.style.visibility="hidden"),this.divEvents.setAttribute("role","region"),this.divEvents.setAttribute("aria-label","scheduler events");var v=this.dynamicEventRendering==="Progressive",g=this.pe(),y=g.pixels.top,_=g.pixels.bottom;n.rowlist.filter(function(w){var S=w.top-p.vh(),E=S+w.height+2*p.vh();return!v||!(E<=y||S>=_)}).forEach(function(w){n.Mg(w);for(var S=0;S<w.lines.length;S++)for(var E=w.lines[S],T=0;T<E.length;T++){var C=E[T],N=n.Va(C);if(s&&N&&(c--,c<=0))return n.divEvents.style.visibility="",n.divEvents.style.display="",void(n._e=setTimeout(function(){n.oa(s)},n.uh.delay))}}),this.divEvents.style.display="",this.we()}},this.uf=function(s){var c=n.rowlist[s];this.Mg(c);for(var v=0;v<c.lines.length;v++)for(var g=c.lines[v],y=0;y<g.length;y++){var _=g[y];this.Va(_)}},this._=function(){if(this.elements.events)for(var s=this.elements.events.length,c=0;c<s;c++){var v=this.elements.events[c];this.Pa(v)}this.elements.events=[]},this.tf=function(s){if(this.elements.events){for(var c=this.elements.events.length,v=[],g=0;g<c;g++){var y=this.elements.events[g];y.event.part.dayIndex===s&&(this.Pa(y),v.push(g))}for(var g=v.length-1;g>=0;g--)this.elements.events.splice(v[g],1)}},this.Pa=function(s){var c=s.domArgs;if(s.domArgs=null,c&&typeof n.onBeforeEventDomRemove=="function"&&n.onBeforeEventDomRemove(c),c&&typeof n.onBeforeEventDomAdd=="function"){var v=c&&c.Qa;if(v){var g=n.Bd.reactDOM&&e.Util.isReactComponent(c.element),y=n.Sa.Ra&&e.Util.isVueVNode(c.element);g?n.Bd.$d(v):y&&(n.Sa.Ta=!0,n.Sa.Ua(v),n.Sa.Ta=!1)}}s.remove(),s.onclick=null,s.oncontextmenu=null,s.onmouseover=null,s.onmouseout=null,s.onmousemove=null,s.onmousedown=null,s.ondblclick=null,s.event&&(s.event.rendered=null,s.event=null)},this.wh=function(){if(this.dynamicEventRendering==="Progressive"&&n.dynamicEventRenderingCacheSweeping){var s=n.dynamicEventRenderingCacheSize||0;this.divEvents.style.display="none";for(var c=[],v=this.elements.events.length,g=v-1;g>=0;g--){var y=this.elements.events[g];this.xh(y.event)?s>0?(s--,c.unshift(y)):this.Pa(y):c.unshift(y)}this.elements.events=c,this.divEvents.style.display=""}},this.yh=function(s){for(var c=this.pe(),v=this.elements.cells.length,g=v-1;g>=0;g--){var y=this.elements.cells[g];c.xStart<y.coords.x&&y.coords.x<=c.xEnd&&c.yStart<y.coords.y&&y.coords.y<=c.yEnd||(s>
270?s--:this.gb(y))}},this.gb=function(s){if(s&&s.coords){var c=s.coords.x,v=s.coords.y;(function(){var g=s.domArgs;if(s.domArgs=null,g&&typeof n.onBeforeCellDomRemove=="function"&&n.onBeforeCellDomRemove(g),g&&typeof n.onBeforeCellDomAdd=="function"){var y=g&&g.Qa;if(y){var _=n.Bd.reactDOM&&e.Util.isReactComponent(g.element),w=n.Sa.Ra&&e.Util.isVueVNode(g.element);_?n.Bd.$d(y):w&&(n.Sa.Ta=!0,n.Sa.Ua(y),n.Sa.Ta=!1)}}})(),e.rfa(n.elements.cells,s),e.de(s),n.yb.cells[c+"_"+v]=null}},this.zh=function(){var s=this.dynamicEventRendering==="Progressive";if(!this.nav.scroll)return!1;for(var c=this.nav.scroll.scrollTop-p.vh(),v=c+this.nav.scroll.clientHeight+2*p.vh(),g=0;g<this.rowlist.length;g++){var y=this.rowlist[g],_=y.top,w=y.top+y.height;if(!s||!(_>=v||w<=c))for(var S=0;S<y.lines.length;S++)for(var E=y.lines[S],T=0;T<E.length;T++){var C=E[T];if(this.Ah(C))return!0}}return!1},this.Ah=function(s){if(s.rendered)return!1;var c=this.dynamicEventRendering==="Progressive",v=this.nav.scroll.scrollLeft-p.Bh(),g=v+this.nav.scroll.clientWidth+2*p.Bh(),y=s.part.left,_=s.part.left+s.part.width;return!c||!(g<=y||v>=_)},this.xh=function(s){if(!s.rendered)return!0;var c=this.pe(),v=c.pixels.top,g=c.pixels.bottom,y=c.pixels.left-this.dynamicEventRenderingMargin,_=c.pixels.right+this.dynamicEventRenderingMargin,w=s.part.left,S=s.part.right,E=s.part.top,T=s.part.top+n.eventHeight;return _<=w||y>=S||g<=E||v>=T},this.Va=function(s,c){c=c||{};var v=c.forced;if(s.rendered)return!1;var g=this.dynamicEventRendering==="Progressive",y=s.part.dayIndex,_=n.divEvents,w=n.rowlist,S=w[y],E=S.top,T=this.pe(),C=T.pixels.left-p.Bh(),N=T.pixels.right+p.Bh(),B=T.pixels.top,M=T.pixels.bottom,L=s.part.left,I=s.part.left+s.part.width,$=s.part.top+E,O=$+n.eventHeight,H=N<=L||C>=I,D=M<=$||B>=O;if(!v&&g&&(H||D))return!1;var R=s.part.width,z=n.eventHeight,A=s.cache||s.data,X=A.borderRadius||n.eventBorderRadius;typeof X=="number"&&(X+="px");var G=A.padding||n.eventPadding;typeof G=="number"&&(G+="px"),R=e.Util.atLeast(0,R),z=e.Util.atLeast(0,z);var ce=d();ce.style.position="absolute",ce.style.left=s.part.left+"px",ce.style.top=E+s.part.top+"px",ce.style.width=R+"px",ce.style.height=z+"px",n.eventTextWrappingEnabled||(ce.style.whiteSpace="nowrap"),ce.style.overflow="hidden",ce.className=this.M("_event"),A.cssClass&&e.Util.addClass(ce,A.cssClass),typeof s.part.line=="number"&&e.Util.addClass(ce,this.M("_event_line"+s.part.line)),X&&(ce.style.borderRadius=X),this.showToolTip&&(ce.title=s.client.toolTip()||""),ce.onmousemove=this.Ch,ce.onmousedown=this.Dh,ce.onmouseup=this.Eh,ce.ontouchstart=a.Fh,ce.ontouchmove=a.Gh,ce.ontouchend=a.Hh,s.client.clickEnabled()&&(ce.onclick=this.Ue),typeof A.ariaLabel<"u"?ce.setAttribute("aria-label",A.ariaLabel):ce.setAttribute("aria-label",A.text),ce.setAttribute("tabindex","-1");var Ie=d();
27Ie.className=n.M("_event_inner"),X&&(Ie.style.borderRadius=X),G&&(Ie.style.padding=G),A.backColor&&(Ie.style.background=A.backColor),A.fontColor&&(Ie.style.color=A.fontColor),A.borderColor==="darker"&&A.backColor?Ie.style.borderColor=e.ColorUtil.darker(A.backColor,2):Ie.style.borderColor=A.borderColor,A.backImage&&(Ie.style.backgroundImage="url("+A.backImage+")",A.backRepeat&&(Ie.style.backgroundRepeat=A.backRepeat)),ce.appendChild(Ie);var Be=s.start().getTime()===s.part.start.getTime(),q=s.rawend().getTime()===s.part.end.getTime();if(Be||e.Util.addClass(ce,this.M("_event_continueleft")),q||e.Util.addClass(ce,this.M("_event_continueright")),s.client.barVisible()&&R>0){var ue=100*s.part.barLeft/R,V=Math.ceil(100*s.part.barWidth/R),W=d();W.className=this.M("_event_bar"),W.style.position="absolute",A.barBackColor&&(W.style.backgroundColor=A.barBackColor);var re=d();re.className=this.M("_event_bar_inner"),re.style.left=ue+"%",0<V&&V<=1?re.style.width="1px":re.style.width=V+"%",A.barColor&&(re.style.backgroundColor=A.barColor),A.barImageUrl&&(re.style.backgroundImage="url("+A.barImageUrl+")"),W.appendChild(re),ce.appendChild(W)}ce.row=y,ce.event=s,(function(){if(typeof n.onBeforeEventDomAdd!="function"&&typeof n.onBeforeEventDomRemove!="function")return void n.Ih(Ie,A.text,A.html);var k={};if(k.control=n,k.e=s,k.element=null,ce.domArgs=k,typeof n.onBeforeEventDomAdd=="function"&&n.onBeforeEventDomAdd(k),k.element){var U=Ie;if(U){k.Qa=U;var P=e.Util.isReactComponent(k.element),ne=e.Util.isVueVNode(k.element);if(P){if(!n.Bd.reactDOM)throw new e.Exception("Can't reach ReactDOM");n.Bd.Wc(k.element,U)}else if(ne){if(!n.Sa.Ra)throw new e.Exception("Can't reach Vue");n.Sa.Ta=!0,n.Sa.Wa(k.element,U),n.Sa.Ta=!1}else U.appendChild(k.element)}}else Ie.innerHTML=s.client.innerHTML()})();var J=[];return(function(){n.eventDeleteHandling==="Disabled"||A.deleteDisabled||J.push({v:"Hover",w:18,h:18,top:"calc(50% - 9px)",right:2,action:"None",css:n.M("_event_delete"),onClick:function(k){n.za(k.source)}})})(),A.areas&&(J=J.concat(A.areas)),e.Areas.attach(ce,s,{areas:J}),this.elements.events.push(ce),_.appendChild(ce),s.rendered=!0,!0},this._a=function(s,c){return n.S.ea()?e.Util.escapeTextHtml(s,c):e.Util.isNullOrUndefined(c)?e.Util.isNullOrUndefined(s)?"":s:c},this.Ih=function(s,c,v){e.Util.isNullOrUndefined(v)?c!=null&&(n.S.ea()?s.innerText=c:s.innerHTML=c):s.innerHTML=v},this.vf=function(){for(var s=0;s<this.elements.events.length;s++){var c=this.elements.events[s],v=c.event,g=v.part.dayIndex,y=n.rowlist[g],_=y.top,w=_+v.part.top,S=y.height,E=n.eventHeight;v.part.top+E>S&&(E=Math.max(0,S-v.part.top)),c.style.top=w+"px",c.style.height=E+"px"}},this.Jh=function(s){if(!s)return null;for(var c=0;c<n.elements.events.length;c++){var v=n.elements.events[c];if(v.event===s||v.event.data===s.data)return v}return null},this.Sf=function(s){var c=n.events.Xf(s.data);if(!c)return null;var v=n.rowlist[c.part.dayIndex];return n.Mg(v),n.Va(c,{forced:!0}),n.Jh(c)},this.Ch=function(s){for(var c=s.currentTarget;c&&!c.event;)c=c.parentNode;n.Kh(c,s),n.Ye(s)},this.We={},this.Dh=function(s){n.Ye(s);var c=e.Util.mouseButton(s);s.preventDefault(),s.stopPropagation(),c.left&&(this.style.cursor==="w-resize"||this.style.cursor==="e-resize"?(i.Ve=!0,i.mg=this,i.qg=this.event,i.Lh=e.mc(s),f().style.cursor=this.style.cursor):(this.style.cursor==="move"||this.event.client.moveEnabled())&&n.Mh(this,s))},this.Eh=function(s){e.Util.mouseButton(s).right&&n.ya.call(this,s)},this.Mh=function(s,c){var v=n.We;n.Ye(c),v.Nh=!0,v.We=s,v.tg=s.event,v.Lh=e.mc(c),v.Oh=e.mo3(s,c).x,v.lg=n.getDate(n.coords.x,!0)},typeof e.Global.touch>"u"&&(e.Global.touch={}),e.Global.touch.active=!1,e.Global.touch.start=!1,a.Of=[],a.relativeCoords=function(s){return a.Ph(s)},a.startResizing=function(s,c){a.Qh(s,c)},a.startMoving=function(s,c){a.Mh(s,c)},a.Fh=function(s){if(!e.Global.touch.active&&!e.Global.touch.start){s.stopPropagation(),a.Rh(),e.Global.touch.start=!0,e.Global.touch.active=!1;var c=s.currentTarget;n.coords=a.Ph(s);var v=n.tapAndHoldTimeout;a.Of.push(setTimeout(function(){e.Global.touch.active=!0,e.Global.touch.start=!1,s.preventDefault();var g=c.event;switch(n.eventTapAndHoldHandling){case"Move":if(g.client.moveEnabled()){var y=r(s);a.Mh(c,y)}}},v))}},a.Gh=function(){a.Rh(),e.Global.touch.start=!1}
27,a.Hh=function(s){if(!e.Util.isMouseEvent(s)){if(a.Rh(),e.Global.touch.start){e.Global.touch.start=!1,s.preventDefault(),s.stopPropagation();var c=s.currentTarget;setTimeout(function(){n.Xe(c,s)})}setTimeout(function(){e.Global.touch.start=!1,e.Global.touch.active=!1},500)}},a.Tg=function(s){if(!(e.Global.touch.active||e.Global.touch.start||s.touches.length>1||n.timeRangeSelectedHandling==="Disabled")){a.Rh(),e.Global.touch.start=!0,e.Global.touch.active=!1;var c=n.tapAndHoldTimeout;a.Of.push(setTimeout(function(){e.Global.touch.active=!0,e.Global.touch.start=!1,typeof e.Menu<"u"&&e.Menu.hide(),n.coords=a.Ph(s),a.Sh=n.Th()},c)),n.coords=a.Ph(s)}},a.Ug=function(s){if(a.Rh(),e.Global.touch.start=!1,i.mg)return s.preventDefault(),void a.Uh();if(e.Global.touch.active){if(s.preventDefault(),n.coords=a.Ph(s),i.We)return void a.Vh();if(a.Sh){var c=a.Sh;c.end={x:Math.floor(n.coords.x/n.cellWidth),time:n.getDate(n.coords.x,!0)},n.Gf(c)}}},a.debug=function(){},a.Vg=function(s){if(a.Rh(),e.Global.touch.active){if(i.We){s.preventDefault();var c=i.tg;if(n!==i.ug.calendar)return;var v=i.ug.start,g=i.ug.end,y=i.ug.row.id;e.Util.removeClass(i.We,n.M("_event_moving_source")),e.de(i.ug),i.ug.calendar=null,f().style.cursor="",i.We=null,i.tg=null,i.ug=null,n.N(c,v,g,y)}if(a.Sh){var _=a.Sh;a.Sh=null;var w=n.elements.range2;w&&w.overlapping?n.clearSelection():n.Cf(_)}}else if(e.Global.touch.start){if(n.coords.x<n.getScrollX())return;var _=n.Th();n.Gf(_);var w=n.elements.range2;w&&w.overlapping?n.clearSelection():n.Cf(_)}setTimeout(function(){e.Global.touch.start=!1,e.Global.touch.active=!1},500)},a.Rh=function(){for(var s=0;s<a.Of.length;s++)clearTimeout(a.Of[s]);a.Of=[]},a.Ph=function(s){function c(y,_,w){var S=e.abs(w);return{x:y-S.x,y:_-S.y,toString:function(){return"x: "+this.x+", y:"+this.y}}}var v=n.le,g=s.touches?s.touches[0]:s;return c(g.pageX,g.pageY,v)},a.Mh=function(s,c){i.We=s,i.tg=s.event,i.Lh=c;var v=e.abs(s);i.Oh=c.x-v.x,i.lg=n.getDate(n.coords.x,!0),i.ug=n.da(s),n.sg()},a.Qh=function(s,c){i.mg=s,i.qg=s.event,i.mg.dpBorder=c,i.pg||(i.pg=n.da(s)),n.rg()},a.Uh=function(){if(!i.pg){var s=i.mg;i.pg=n.da(s)}n.rg()},a.Vh=function(){if(!i.ug){var s=i.We;i.ug=n.da(s)}i.ug.calendar.sg()},this.Kh=function(s,c){var v=this.eventResizeMargin,g=s;if(typeof i<"u"){var y=e.mo3(s,c);if(y&&(n.eventOffset=y,!i.mg&&!i.We)){var _=g.event.part.start.toString()===g.event.start().toString(),w=g.event.part.end.toString()===g.event.rawend().toString();y.x<=v&&g.event.client.resizeEnabled()?_?(s.style.cursor="w-resize",s.dpBorder="left"):s.style.cursor="not-allowed":s.offsetWidth-y.x<=v&&g.event.client.resizeEnabled()?w?(s.style.cursor="e-resize",s.dpBorder="right"):s.style.cursor="not-allowed":i.mg||i.We||(g.event.client.clickEnabled()?s.style.cursor="pointer":s.style.cursor="default")}}},this.Hf=function(){var s=n.Te();return n.days*(1440/s)},this.Df=function(s){if(s=s||i.Sh||n.Ff,!s)return null;var c=n.rowlist[s.start.y];if(!c)return null;var v,g,y=s,_=y.end.time>y.start.time,w=c.id,S=_?y.start.x:y.end.x,E=_?y.end.x:y.start.x,T=n.snapToGri
27d;T?(v=n.Qe(S).start,g=n.Qe(E).end):_?(v=y.start.time,g=y.end.time):(v=y.end.time,g=y.start.time);var C=new e.Selection(v,g,w,n);return C.allowed=!s.div||!s.div.overlapping,C},this.ef=function(){this.yb.timeHeader={},n.elements.timeHeader.length>0&&(n.elements.timeHeader=[]);var s=d();s.style.position="relative",this.nav.timeHeader=s;for(var c=0;c<this.timeHeader.length;c++)for(var v=this.timeHeader[c],g=0;g<v.length;g++)this.Wh(g,c);var y=this.divNorth;y.childNodes.length===1?y.replaceChild(s,y.childNodes[0]):(y.innerHTML="",y.appendChild(s));var _=this.He();y.style.width=_+5e3+"px",_>0&&(this.divStretch.style.width=_+"px")},this.Oe=function(s,c){var v=null,g=this.S.Ne();c=c||this.cellGroupBy;var y=s.start;switch(c){case"Minute":v=y.toString("m");break;case"Hour":v=n.S.Xh()==="Clock12Hours"?y.toString("h tt",g):y.toString("H",g);break;case"Day":v=y.toString(g.datePattern);break;case"Week":v=p.fa()===1?y.weekNumberISO():y.weekNumber();break;case"Month":v=y.toString("MMMM yyyy",g);break;case"Quarter":v="Q"+Math.floor(y.getMonth()/3+1);break;case"Year":v=y.toString("yyyy");break;case"None":v="";break;case"Cell":var _=(s.end.ticks-s.start.ticks)/6e4;v=this.Yh(y,_);break;default:throw new e.Exception("Invalid groupBy value: "+c)}return v},this.Yh=function(s,c){var v=this.S.Ne();return c=c||this.cellDuration,c<1?s.toString("ss"):c<60?s.toString("mm"):c<1440?n.S.Xh()==="Clock12Hours"?s.toString("h tt",v):s.toString("H",v):c<10080?s.toString("d"):c===10080?p.fa()===1?s.weekNumberISO():s.weekNumber():s.toString("MMMM yyyy",v)},this.Me=function(s,c,v){var g,y=n.startDate.addDays(n.days);c=c||this.cellGroupBy;var _=60;switch(c){case"Minute":s.getMinutes()+s.getSeconds()+s.getMilliseconds()>0&&(s=s.getDatePart().addHours(s.getHours()).addMinutes(s.getMinutes())),g=s.addMinutes(1);break;case"Hour":s.getHours()+s.getMinutes()+s.getSeconds()+s.getMilliseconds()>0&&(s=s.getDatePart().addHours(s.getHours())),g=s.addHours(1);break;case"Day":g=s.getDatePart().addDays(1);break;case"Week":for(g=s.getDatePart().addDays(1);g.dayOfWeek()!==p.fa();)g=g.addDays(1);break;
27case"Month":s=s.getDatePart(),g=s.addMonths(1),g=g.firstDayOfMonth();for(var w=e.DateUtil.diff(g,s)/6e4%_===0;!w;)g=g.addHours(1),w=e.DateUtil.diff(g,s)/6e4%_===0;break;case"Quarter":for(s=s.getDatePart(),g=s.addMonths(1),g=g.firstDayOfMonth();g.getMonth()%3;)g=g.addMonths(1);for(var w=e.DateUtil.diff(g,s)/6e4%_===0;!w;)g=g.addHours(1),w=e.DateUtil.diff(g,s)/6e4%_===0;break;case"Year":s=s.getDatePart(),g=s.addYears(1),g=g.firstDayOfYear();for(var w=e.DateUtil.diff(g,s)/6e4%_===0;!w;)g=g.addHours(1),w=e.DateUtil.diff(g,s)/6e4%_===0;break;case"None":g=y;break;case"Cell":var S=this.Se(s);S.current&&(g=S.current.end);break;default:throw v?new e.Exception("Invalid scale value: "+c):new e.Exception("Invalid groupBy value: "+c)}return g.getTime()>y.getTime()&&(g=y),g},this.Wh=function(s,c){var v=this.nav.timeHeader,g=this.timeHeader[c][s],y=c<this.timeHeader.length-1,_=g.left,w=g.width,S=c*n.headerHeight,E=n.headerHeight,T=d();T.style.position="absolute",T.style.top=S+"px",T.style.left=_+"px",T.style.width=w+"px",T.style.height=E+"px",g.toolTip&&(T.title=g.toolTip),T.setAttribute("aria-hidden","true"),g.cssClass&&e.Util.addClass(T,g.cssClass),T.style.userSelect="none",T.style.webkitUserSelect="none",T.oncontextmenu=function(){return!1},T.cell={},T.cell.start=g.start,T.cell.end=g.end,T.cell.level=c,T.cell.th=g,T.onclick=this.Hg,T.oncontextmenu=this.Ig,e.rePassive(T,e.touch.start,function(M){M.stopPropagation()}),T.style.overflow="hidden",n.timeHeaderTextWrappingEnabled||(T.style.whiteSpace="nowrap");var C=d();C.innerHTML=n._a(g.text,g.html),g.backColor&&(C.style.background=g.backColor),g.fontColor&&(C.style.color=g.fontColor);var N=this.M("_timeheadercol"),B=this.M("_timeheadercol_inner");y&&(N=this.M("_timeheadergroup"),B=this.M("_timeheadergroup_inner")),e.Util.addClass(T,N),e.Util.addClass(C,B),e.Util.addClass(T,n.M("_timeheader_cell")),e.Util.addClass(C,n.M("_timeheader_cell_inner")),T.appendChild(C),e.Areas.attach(T,g,{areas:g.areas}),this.yb.timeHeader[s+"_"+c]=T,this.elements.timeHeader.push(T),v.appendChild(T)},this.eb=function(){var s=this.nav.corner;if(s){var c=this.divCorner;s.className=this.M("_corner"),c.className=this.M("_corner_inner"),(function(){var v={};v.control=n,v.backColor=null,v.html=n.cornerHtml,v.text=n.cornerText,v.verticalAlignment=null,v.horizontalAlignment=null,v.areas=null,typeof n.onBeforeCornerRender=="function"&&n.onBeforeCornerRender(v);var g=n.divCorner;if(g){var y=n._a(v.text,v.html),_=v.horizontalAlignment,w=v.verticalAlignment;if(g.innerHTML=y||"",v.backColor&&(g.style.background=v.backColor),_||w){switch(g.style.display="flex",_){case"right":g.style.justifyContent="flex-end";break;case"left":g.style.justifyContent="flex-start";break;case"center":g.style.justifyContent="center"}switch(w){case"center":g.style.alignItems="center";break;case"top":g.style.alignItems="flex-start";break;case"bottom":g.style.alignItems="flex-end"}}}v.areas&&e.Areas.attach(n.nav.corner,{},{areas:v.areas})})()}},this.hg=function(){n.rowlist.forEach(function(s){var c=s.getHeight()+n.rowMarginTop+n.rowMarginBottom;s.height!==c&&(n.sf=!0),s.height=c}),n.sf&&(n.yb.drawArea=null)},this.ff=function(){n.rowlist.forEach(function(s){var c=n.divHeader;if(c){var v=s.index;if(c.rows[v]){var g=c.rows[v];n.yg&&(g.style.top=s.top+"px");var y=s.height;g&&g.firstChild&&parseInt(g.firstChild.style.height,10)!==y&&(g.firstChild.style.height=y+"px")}}}),n.yg&&n.nav.resScrollSpace&&(n.nav.resScrollSpace.style.top=n.fe+"px")},this.hh=function(s){if(e.Global.touch.start||e.Global.touch.active||(n.Ye(s),n.timeRangeSelectedHandling==="Disabled"))return!1;var c=e.Util.mouseButton(s);if(typeof e.Menu<"u"&&e.Menu.hide(),n.Zh()||c.middle||c.right||n.$h(n.coords))return!1;var v=c.left?"left":c.right?"right":c.middle?"middle":"unknown";return n._h=v,i.Sh=n.Th(),i.Sh&&(i.ai=n),!1},this.Th=function(){var s={},c=n.Pe(n.coords.x).x,v=n.getDate(n.coords.x,!0);return s.start={y:n.Nf(n.coords.y).i,x:c,time:v},s.end={x:c,time:v},s.calendar=n,n.Gf(s),s},this.jh=function(s){if(n.We={},n.Ff&&e.Util.mouseButton(s).left){var c=n.Ff;if(n.$h(n.coords)){var v=function(g){return function(){i.bi=null;var y=n.Df(g);if(y){var _={};
27_.start=y.start,_.end=y.end,_.resource=y.resource,_.preventDefault=function(){_.preventDefault.value=!0},typeof n.onTimeRangeClick=="function"&&n.onTimeRangeClick(_),_.preventDefault.value||typeof n.onTimeRangeClicked=="function"&&n.onTimeRangeClicked(_)}}};n.timeRangeClickHandling!=="Disabled"&&v(c)()}}},this.Zh=function(){return!!(i.mg||i.We||i.Sh)||!!n.We.Nh},this.dragInProgress=function(){return n.Zh()},this.Ye=function(s){var c=e.mo3(n.le,s);c=c||{},c.stamp=c.x+"_"+c.y,n.coords&&n.coords.stamp===c.stamp||(n.coords=c)},this.ih=function(s){if(!e.Global.touch.active){var c=e.mc(s);n.Ye(s),n.We.Nh&&e.distance(n.We.Lh,c)>2&&(e.Util.copyProps(n.We,i),f().style.cursor="move",n.We={}),i.mg&&i.qg.calendar===n?(i.mg.event||(i.mg.event=i.qg),n.ci()):i.tg?n.di():i.Sh&&i.Sh.calendar===n&&(i.Sh.moved=!0,n.ei())}},this.ei=function(){var s=i.Sh,c=n.Pe(n.coords.x).x,v=n.getDate(n.coords.x,!0);s.end={x:c,time:v},n.Gf(s)},this.ci=function(){i.pg||(i.pg=n.da(i.mg)),n.rg()},this.di=function(){if(!i.ug){e.Util.addClass(i.We,n.M("_event_moving_source"));var s=i.tg;i.ug=n.da(s)}n.sg()},this.kh=function(s){return s.cancelBubble=!0,!1},this.$h=function(s){var c=n.Ff;if(!c||!c.start||!c.end)return!1;var v=this.Qf(c.start.y),g=c.start.x<c.end.x,y=(g?c.start.x:c.end.x)*this.cellWidth,_=(g?c.end.x:c.start.x)*this.cellWidth+this.cellWidth,w=v.top,S=v.bottom;return s.x>=y&&s.x<=_&&s.y>=w&&s.y<=S},this.Gf=function(s){function c(_){var w,S,E,T,C=_.end.time>_.start.time,N=_.start.y,B=_.start.time&&_.end.time;if(g||!B){var M=C?_.start.x:_.end.x,L=C?_.end.x:_.start.x,I=n.Qe(M),$=n.Qe(L);w=I.left,S=$.left+$.width}else C?(E=_.start.time,T=_.end.time):(E=_.end.time,T=_.start.time),w=n.getPixels(E).left,S=n.getPixels(T).left;var O=S-w,H=n.elements.range2;if(!H){H=d(),H.style.position="absolute";var D=d();D.className=n.M("_shadow_inner"),v&&(H.style.borderRadius=v,D.style.borderRadius=v),H.appendChild(D),n.divShadow.appendChild(H)}return H.className=n.M("_shadow"),H.firstChild.innerHTML="",H.style.left=w+"px",H.style.top=y[N].top+"px",H.style.width=O+"px",H.style.height=y[N].height-1+"px",H.calendar=n,n.elements.range2=H,H}if(s=s||i.Sh){var v=n.eventBorderRadius;typeof v=="number"&&(v+="px");
27var g=n.snapToGrid,y=n.rowlist;c(s)}},this.fi=function(s){return{start:{x:s.start.x,y:s.start.y,time:s.start.time},end:{x:s.end.x,time:s.end.time},calendar:s.calendar,args:s.args}},this.getCoords=function(){if(!n.coords)return null;var s={};s.x=n.coords.x,s.y=n.coords.y;var c=n.Nf(s.y,s.grid).element;return s.row=n.Gg(c),s.time=n.getDate(s.x,!0),s},this.zoom={},this.zoom.active=-1,this.zoom.setActive=function(s,c,v){var g;if(typeof s=="number")g=n.zoomLevels[s];else{if(typeof s!="string")throw new e.Exception("Unexpected parameter type (string or number required): "+typeof s);var y=n.zoom.gi(s);g=n.zoomLevels[y]}if(!g)throw new e.Exception("Zoom level not found: "+s+" ("+typeof s+")");(s!==n.zoom.active||v)&&(v||(v=n.zoom.Sd(c)),v&&(n.startDate=new e.Date(v).getDatePart()),n.zoom.hi(s,v),n.Ma&&n.update(),v&&n.scrollTo(v,null,c||n.zoomPosition))},this.zoom.gi=function(s){return(n.zoomLevels||[]).findIndex(function(c){return c.id===s})},this.zoom.Sd=function(s){s=s||n.zoomPosition||"left";var c=null;if(!n.nav.scroll)return null;var v=n.getViewport();switch(s){case"left":c=v.start;break;case"middle":c=v.start&&v.start.addTime((n.getViewport().end.getTime()-n.getViewport().start.getTime())/2);break;case"right":c=v.end}return c},this.zoom.hi=function(s,c){var v=n.zoomLevels.length-1;s>v&&(s=v),s<0&&(s=0),n.zoom.active=s;var g=n.zoomLevels[s],y={};return y.date=c||new e.Date(n.startDate),y.level=g,e.Util.ownPropsAsArray(g.properties).forEach(function(_){if(_.key.indexOf("on")!==0)return typeof _.val=="function"?void(n[_.key]=_.val(y)):void(n[_.key]=_.val)}),y},this.Of={},this.Of.oa=null,this.Of.drawCells=null,this.Of.drawRows=null,this.Of.click=null,this.Of.resClick=[],this.Of.updateFloats=null,this.lf=function(){if(!n.R){typeof e.Menu<"u"&&e.Menu.hide(),n.jf();var s=n.nav.scroll;if(n.ph=s.scrollLeft,n.qh=s.scrollTop,n.rh=s.clientWidth,n.divTimeScroll&&(n.divTimeScroll.scrollLeft=n.ph),e.browser.ios&&i.ah?u():n.divResScroll.scrollTop=n.qh,n.progressiveRowRendering&&(n.Of.drawRows&&(clearTimeout(n.Of.drawRows),n.Of.drawRows=null),n.scrollDelayRows>0?n.Of.drawRows=setTimeout(function(){n.Bg()},n.scrollDelayRows):n.Bg()),n.Of.drawCells&&(clearTimeout(n.Of.drawCells),n.Of.drawCells=null),n.scrollDelayCells>0?n.Of.drawCells=setTimeout(n.ii(),n.scrollDelayCells):n.ii()(),n.Of.oa&&(clearTimeout(n.Of.oa),n.Of.oa=null),n.scrollDelayEvents>0?n.Of.oa=setTimeout(n.ji(),n.scrollDelayEvents):n.oa(),n.Of.updateFloats&&(clearTimeout(n.Of.updateFloats),n.Of.updateFloats=null),n.scrollDelayFloats>0?n.Of.updateFloats=setTimeout(function(){n.ve()},n.scrollDelayFloats):n.ve(),n.onScrollCalled=!0,typeof n.onScroll=="function"){var c={control:n,viewport:n.getViewport()};n.onScroll(c)}}},this.ii=function(){return function(){n&&n.kf()}},this.ji=function(){return function(){n&&(n.zh()?setTimeout(function(){n.wh(),setTimeout(function(){n.oa(!0)},50)},50):n.we())}},this.jf=function(){n.yb.drawArea=null},this.show=function(){n.visible=!0,n.ge=!0,n.nav.top.style.display="",n.z(),n.fh(),n.lf()},this.hide=function(){n.visible=!1,n.ge=!1,n.nav.top.style.display="none"},this.bg=function(s){if(!n.events.list)return null;for(var c=0;c<this.events.list.length;c++){var v=this.events.list[c];if(n.Wf(v,s)){var g={};return g.ex=v,g.index=c,g}}return null},this.ki=function(){var s=this.pe(),c=s.xStart,v=s.xEnd-s.xStart,g=s.yStart,y=s.yEnd-s.yStart;this.cellProperties||(this.cellProperties={});for(var _=0;_<=v;_++){for(var w=c+_,S=0;S<y;S++){var E=g+S;this.jd(w,E)}this.li(w)}for(var T=this.wg(),E=T.start;E<T.end;E++)this.mi(E)},this.kf=function(){if(!n.R){var s=n.rowlist;if(s&&s.length>0){if(this.cellSweeping){var c=this.cellSweepingCacheSize;this.yh(c)}this.ki()}this.sf=!1}},this.pe=function(){if(n.yb.drawArea)return n.yb.drawArea;if(!this.nav.scroll)return null;var s=n.qh,c={},v=p.Bh(),g=p.vh(),y=n.ph-v,_=y+n.rh+2*v,w=0,S=0;w=n.Pe(y).x,S=n.Pe(_,!0).x;var E=this.Hf();S=Math.min(S,E-1),w=e.Util.atLeast(w,0);var T=s-g,C=s+this.nav.scroll.offsetHeight+2*g,N=this.Nf(T).i,B=this.Nf(C).i;B<this.rowlist.length&&B++,c.xStart=w,c.xEnd=S,c.yStart=N,c.yEnd=B;var M=n.nav.scroll;return M.clientWidth===0&&(M=n.divTimeScroll),c.pixels={},c.pixels.left=M.scrollLeft,c.pixels.right=M.scrollLeft+M.clientWidth,c.pixels.top=M.scrollTop,c.pixels.bottom=M.scrollTop+M.clientHeight,c.pixels.width=M.scrollWidth,c.sw=e.sw(n.nav.scroll),n.yb.drawArea=c,c},this.He=function(){return n.Hf()*n.cellWidth},this.mi=function(s){var c=n.rowlist,v=n.divLines,g="y_"+s;if(!this.yb.linesHorizontal[g]){var y=c[s],_=y.height,w=y.top+_-1,S=this.He(),E=d();
27E.style.left="0px",E.style.top=w+"px",E.style.width=S+"px",E.style.height="1px",E.style.fontSize="1px",E.style.lineHeight="1px",E.style.overflow="hidden",E.style.position="absolute",E.className=this.M("_matrix_horizontal_line"),v.appendChild(E),this.yb.linesHorizontal[g]=E}},this.li=function(s){var c=n.Qe(s);if(c){var v=n.divLines,g=n.fe,y="x_"+s;if(!this.yb.linesVertical[y]){var _=c.left+c.width-1,w=d();w.style.left=_+"px",w.style.top="0px",w.style.width="1px",w.style.height=g+"px",w.style.fontSize="1px",w.style.lineHeight="1px",w.style.overflow="hidden",w.style.position="absolute",w.className=this.M("_matrix_vertical_line"),v.appendChild(w),this.elements.linesVertical.push(w),this.yb.linesVertical[y]=w}}},this.cf=function(){n.fe=n.ni(n.rowlist)},this.ni=function(s){for(var c=0,v=0;v<s.length;v++){var g=s[v];g.top=c,c+=g.height}return c},this.hf=function(){n.elements.cells=[],n.yb.cells=[],n.divCells.innerHTML="",n.oi()},this.oi=function(){n.divLines.innerHTML="",n.yb.linesVertical={},n.yb.linesHorizontal={},n.elements.linesVertical=[]},this.wf=function(s){var c=[];for(var v in n.yb.cells)c.push(n.yb.cells[v]);c.filter(function(g){return g&&g.coords&&g.coords.y===s}).forEach(function(g){n.gb(g)})},this.jd=function(s,c){if(this.Ma){var v=n.Qe(s);if(v){var g=n.rowlist,y=n.divCells,_=s+"_"+c;if(!this.yb.cells[_]){var w=this.pi(s,c),S=n.qi(s,c),E=d();if(E.style.left=v.left+"px",E.style.top=g[c].top+"px",E.style.width=v.width+"px",E.style.height=g[c].height+"px",E.style.position="absolute",w&&w.backColor&&(E.style.backgroundColor=w.backColor),E.className=this.M("_cell"),E.coords={},E.coords.x=s,E.coords.y=c,w){if(w.cssClass&&e.Util.addClass(E,w.cssClass),E.innerHTML=n._a(w.text,w.html),w.backImage&&(E.style.backgroundImage='url("'+w.backImage+'")'),w.backRepeat&&(E.style.backgroundRepeat=w.backRepeat),w.business&&n.cellsMarkBusiness&&e.Util.addClass(E,n.M("_cell_business")),w.disabled&&e.Util.addClass(E,n.M("_cell_disabled")),w.backColor&&(E.style.backgroundColor=w.backColor),w.fontColor&&(E.style.color=w.fontColor),w.horizontalAlignment||w.verticalAlignment){switch(E.style.display="flex",w.horizontalAlignment){case"right":E.style.justifyContent="flex-end";break;case"left":E.style.justifyContent="flex-start";break;case"center":E.style.justifyContent="center"}switch(w.verticalAlignment){case"center":E.style.alignItems="center";break;case"top":E.style.alignItems="flex-start";break;case"bottom":E.style.alignItems="flex-end"}}e.Areas.attach(E,S.cell,{areas:w.areas})}var T={start:v.start,end:v.end,resource:g[c].id,div:E,properties:w,x:s,y:c};(function(){if(typeof n.onBeforeCellDomAdd=="function"||typeof n.onBeforeCellDomRemove=="function"){var C={};if(C.control=n,C.cell=T,C.element=null,E.domArgs=C,typeof n.onBeforeCellDomAdd=="function"&&n.onBeforeCellDomAdd(C),C.element){var N=E;if(N){C.Qa=N;var B=e.Util.isReactComponent(C.element),M=e.Util.isVueVNode(C.element);if(B){if(!n.Bd.reactDOM)throw new e.Exception("Can't reach ReactDOM");n.Bd.Wc(C.element,N)}else if(M){if(!n.Sa.Ra)throw new e.Exception("Can't reach Vue");n.Sa.Ta=!0,n.Sa.Wa(C.element,N),n.Sa.Ta=!1}else N.appendChild(C.element)}}}})(),y.appendChild(E),this.elements.cells.push(E),this.yb.cells[_]=E}}}},this.qi=function(s,c){var v=n.Qe(s);if(!v)return null;var g=n.rowlist[c],y=g.id,_=v.start,w=v.end,S={};if(S.cell={x:s,y:c,start:_,end:w,resource:y,row:n.Gg(g),properties:n.pi(s,c)},S.control=n,typeof this.onBeforeCellRender=="function"){var E=s+"_"+c;if(n.beforeCellRenderCaching&&n.if[E])return S;n.if[E]=!0,this.onBeforeCellRender(S)}return S},this.clearSelection=function(){this.ri()},this.si=function(s,c,v){s=new e.Date(s),c=new e.Date(c);var g=n.ne(v),y=n.Se(s);if(!y.current)throw new e.Exception("Time range selection 'start' out of timeline");var _=n.Se(new e.Date(c).addMilliseconds(-1));if(!_.current)throw new e.Exception("Time range selection 'end' out of timeline");var w={};return w.start={y:g.index,x:y.i,time:s},w.end={x:_.i,time:c},w.calendar=this,w},this.selectTimeRange=function(s,c,v,g){var y=n.si(s,c,v);n.Gf(y),g||setTimeout(function(){n.Cf(y)},0)},this.Af=function(){var s=i.ug&&i.ug.source;s&&e.Util.removeClass(s,n.M("_event_moving_source")),e.de(i.ug),i.ug=null,e.Global.movingLink&&(e.Global.movingLink.clear(),e.Global.movingLink=null)},this.ri=function(){n.divShadow&&(n.divShadow.innerHTML=""),n.elements.range=[],n.elements.range2=null,n.Ff=null,n.vi=null},p.Nd=function(){delete n.yb.headerHeight},p.ea=function(){return n.xssProtection!=="Disabled"},p.Ne=function(){return e.Locale.find(n.locale)},p.Xh=function(){return n.timeFormat!=="Auto"?n.timeFormat:p.Ne().timeFormat},p.fa=function(){if(n.weekStarts==="Auto"){var s=p.Ne();return s?s.weekStarts:0}return n.weekStarts||0},p.Dg=function(){var s=navigator.userAgent.toLowerCase();return s.indexOf("mobile")!==-1||s.indexOf("android")!=-1},p.kg=function(s){return n.useEventBoxes==="Always"||n.useEventBoxes!=="Never"&&s<60*n.Te()*1e3},p.Bh=function(){var s=n.dynamicEventRenderingMarginX;if(typeof s=="number")return s;var c=n.dynamicEventRenderingMargin;return typeof c=="number"?c:0},p.vh=function(){var s=n.dynamicEventRenderingMarginY;if(typeof s=="number")return s;var c=n.dynamicEventRenderingMargin;return typeof c=="number"?c:0},this.pi=function(s,c){var v=s+"_"+c,g=n.rowlist;if(this.cellProperties||(this.cellProperties={}),this.cellProperties[v])return this.cellProperties[v];if(!this.cellProperties[v]){var y=g[c],_=y.id,w=n.Qe(s),S=w.start,E=w.end,T={};T.start=S,T.end=E,T.resource=_;var C={};C.business=n.isBusiness(T),this.cellProperties[v]=C}return this.cellProperties[v]},this.isBusiness=function(s,c){var v=s.start,g=s.end,y=(g.getTime()-v.getTime())/6e4;if(y<=1440&&!(n.businessWeekends||c||s.start.dayOfWeek()!==0&&s.start.dayOfWeek()!==6))return!1;if(y<720){var _=v.getHours();_+=v.getMinutes()/60,_+=v.getSeconds()/3600,_+=v.getMilliseconds()/36e5;var w=this.businessBeginsHour,S=this.businessEndsHour;if(S===0&&(S=24),w===S)return!1;if(!(w<S))return _<S||_>=w;if(_<w)return!1;if(S>=24)return!0;
27if(_>=S)return!1}return!0},this.z=function(){this.nav.top.style.visibility==="hidden"&&(this.nav.top.style.visibility="visible")},this.wi=function(s){this.heightSpec="Fixed",this.height=s-(this.Je()+2),this.na()},this.setHeight=this.wi,this.ne=function(s){return n.Kg(s)[0]},this.xb=function(){if(this.id&&this.id.tagName)this.nav.top=this.id;else{if(typeof this.id!="string")throw new e.Exception("DayPilot.Scheduler() constructor requires the target element or its ID as a parameter");if(this.nav.top=document.getElementById(this.id),!this.nav.top)throw new e.Exception("DayPilot.Scheduler: The placeholder element not found: '"+l+"'.")}},this.init=function(){if(this.Ma)throw new e.Exception("This instance is already initialized. Use update() to change properties.");if(this.xb(),this.nav.top.dp){if(this.nav.top.dp===n)return n;throw new e.Exception("The target placeholder was already initialized by another DayPilot component instance.")}return this.xi(),this.eh(),this},this.xi=function(){this.Sg(),this.qb(),this.ca(),this.oh(),n.zoomLevels&&n.zoomLevels[n.zoom.active]&&n.zoom.setActive(n.zoom.active),this.rb();var s=n.Ge.enabled;n.scrollToDate?n.scrollTo(n.scrollToDate):n.scrollX||n.scrollY?n.setScroll(n.scrollX,n.scrollY):s||n.lf(),n.scrollToResourceId&&(n.scrollToResource(n.scrollToResourceId),n.scrollToResourceId=null);var c=function(){n.scrollY&&n.setScroll(n.scrollX,n.scrollY)};setTimeout(c,200),this.jf(),this.wb(),this.Ma=!0;var v=n.ke;v?n.scrollTo(v):n.lf()},this.vb=null,this.tb=function(s){if(s){var c={resources:{preInit:function(){var _=this.data;_&&(n.resources=_)}},events:{preInit:function(){var _=this.data;_&&(e.isArray(_.list)?n.events.list=_.list:n.events.list=_)},postInit:function(){}},scrollTo:{preInit:function(){},postInit:function(){this.data&&n.je(this.data)}},scrollX:{postInit:function(){this.data&&n.me(this.data)}},scrollY:{postInit:function(){this.data&&n.Ie(this.data)}},zoom:{preInit:function(){var _=this.data;if(typeof _=="string"){var w=_;_=n.zoom.gi(w)}var S=_!==n.zoom.active,E=n.zoom.Sd();n.zoom.hi(_,E),S?this.date=E:this.date=null},postInit:function(){this.date&&n.je(this.date,!1,n.zoomPosition)}}};n.vb=c,n.Ge.scrollToRequested&&(c.scrollTo.data=n.Ge.scrollToRequested,n.Ge.scrollToRequested=null),n.Ge.scrollXRequested&&(c.scrollX.data=n.Ge.scrollXRequested,n.Ge.scrollXRequested=null),n.Ge.scrollYRequested&&(c.scrollY.data=n.Ge.scrollYRequested,n.Ge.scrollYRequested=null);for(var v in s)c[v]||(n[v]=s[v]);for(var g in s)if(c[g]){var y=c[g];y.data=s[g],y.preInit&&y.preInit()}}},this.wb=function(){var s=n.vb;for(var c in s){var v=s[c];v.postInit&&v.postInit()}n.vb={}},this.Bd={},this.Bd.reactDOM=null,this.Bd.react=null,this.Bd.Wc=function(s,c){var v=n.Bd.reactDOM;if(typeof v.createRoot=="function"){var g=c.Zd;g||(g=v.createRoot(c),c.Zd=g),g.render(s)}else v.render(s,c)},this.Bd.$d=function(s){var c=n.Bd.reactDOM;if(typeof c.createRoot=="function"){var v=s.Zd;setTimeout(function(){v.unmount(),s.Zd=null},0)}else c.unmountComponentAtNode(s)},this.Sa={},this.Sa.Ra=null,this.Sa.Mb=function(s,c,v){var g=n.Sa.Ra;if(typeof g.createVNode=="function"&&typeof g.render=="function"){var y=g.createVNode(s,v);g.render(y,c)}},this.Sa.Wa=function(s,c){var v=n.Sa.Ra;if(typeof v.render=="function"){var g=s;e.isArray(s)&&(g=v.h("div",null,s)),v.render(g,c)}},this.Sa.Ua=function(s){var c=n.Sa.Ra;typeof c.render=="function"&&c.render(null,s)},this.internal={},this.internal.adjustEndIn=n.xf,this.internal.adjustEndNormalize=n.yf,this.internal.xssTextHtml=n._a,this.internal.touch=n.he,this.internal.skipUpdate=n.Ge.skipUpdate,this.internal.skipped=n.Ge.skipped,this.internal.loadOptions=n.tb,this.internal.postInit=n.wb,this.internal.enableAngular2=function(){n.Ge.enabled=!0},this.internal.eventsFromAttr=function(){n.Ge._f=!0},this.internal.resourcesFromAttr=function(){n.Ge.ig=!0},this.internal.evImmediateRefresh=function(){n.events.Bf()},this.internal.upd=function(s){n.update(s)},this.internal.enableReact=function(s,c){n.Bd.react=s,n.Bd.reactDOM=c},this.internal.reactRefs=function(){return e.Util.copyProps(n.Bd,{},["react","reactDOM"])},this.internal.enableVue=function(s){n.Sa.Ra=s},this.internal.vueRef=function(){return n.Sa.Ra},this.internal.vueRendering=function(){return n.Sa.Ta},this.tb(o)},new e.Scheduler().v,e.Row=function(l,o){if(!l)throw new e.Exception("Now row object supplied when creating DayPilot.Row");if(!o)throw new e.Exception("No parent control supplied when creating DayPilot.Row");this.yi={};var n=this.yi;n.id=l.id,n.name=l.name,n.data=l.resource,n.tags=l.tags;var p=this;p.isRow=!0,p.menuType="resource",p.name=l.name,p.id=l.id,p.tags=l.tags,p.index=l.index,p.calendar=o,p.data=l.resource,p.zi=l,p.$={},p.$.row=l,p.toJSON=function(){var a={};return a.start=this.start,a.name=this.name,a.id=this.id,a.index=this.index,a},p.events={},p.events.all=function(){for(var a=[],m=0;m<p.zi.events.length;m++)a.push(p.zi.events[m]);return a},p.events.isEmpty=function(){return p.zi.events.length===0},p.events.forRange=function(a,m){return p.zi.events.forRange(a,m)},p.events.totalDuration=function(){var a=0;
27return p.events.all().forEach(function(m){a+=m.part.end.getTime()-m.part.start.getTime()}),new e.Duration(a)},p.remove=function(){o.rows.remove(p)},p.addClass=function(a){var m=o.divHeader,h=m.rows[p.index];e.Util.addClass(h,a),p.$.row.cssClass=e.Util.addClassToString(p.$.row.cssClass,a),p.data.cssClass=a},p.removeClass=function(a){var m=o.divHeader,h=m.rows[p.index];e.Util.removeClass(h,a),p.$.row.cssClass=e.Util.removeClassFromString(p.$.row.cssClass,a),p.data.cssClass=e.Util.removeClassFromString(p.data.cssClass,a)}},i.We=null,i.tg=null,i.Lh=null,i.mg=null,i.qg=null,i.Ve=!1,i.lh=!1,i.bi=null,i.Ai=null,i.rc=function(){e.ue(document,"mouseup",i.ee),e.ue(document,"touchmove",i.mh),e.ue(document,"touchend",i.nh),i.lh=!1},i.mh=function(l){if(i.mg){var o=i.mg.event.calendar;o.coords=o.he.Ph(l),o.he.Uh(),l.preventDefault()}if(i.We){l.preventDefault();var o=i.tg.calendar;o.coords=o.he.Ph(l),o.he.Vh()}},i.nh=function(l){i.ah=!1,i.ee(l)},i.ee=function(l){if(i.mg){var o=function(){var _=i.qg,w=_.calendar;f().style.cursor="",i.mg=null,i.qg=null,e.de(i.pg),i.pg=null,w&&(w.Bi=null)};if(setTimeout(function(){i.Ve=!1}),!i.pg)return void o();var n=i.qg,p=n.calendar,a=i.pg.start,m=i.pg.end,h=i.mg.dpBorder==="left"?"start":"end";o(),p.L(n,a,m,h,l)}else if(i.tg){var o=function(){e.Global.movingAreaData=null;var C=i.ug&&i.ug.calendar;i.ug&&(e.de(i.ug),i.ug.calendar=null),f().style.cursor="",i.We=null,i.tg=null,C&&(C.zf=null)};if(!i.ug)return void o();var n=i.tg,p=i.ug.calendar;if(!p||(i.ug.source=i.We,!i.ug.row))return void o();var a=i.ug.start,m=i.ug.end,b=i.ug.row.id;i.ug.calendar=null,f().style.cursor="",i.We=null,i.tg=null,p.N(n,a,m,b,l),e.Global.movingAreaData=null}else if(i.Sh){var s=e.Util.mouseButton(l),c=i.Sh,v=c.calendar,o=function(){};if(v.vi=null,i.bi)return clearTimeout(i.bi),i.bi=null,void o();v.Ff=c,i.Sh=null;var g=function(w){return function(){i.bi=null,v.Cf(w),v.timeRangeSelectedHandling!=="Hold"&&v.timeRangeSelectedHandling!=="HoldForever"?u():v.Ff=w}},y=v.fi(c);return o(),s.left?(g(y)(),l.cancelBubble=!0,!1):void(i.bi=null)}i.Oh=null,i.lg=null}}})(t),(function(){function e(o){o.DayPilotScheduler={props:["id","config","events"],data:function(){return{cid:this.id||l()}},watch:{config:{handler:function(n,p){if(this.control&&!this.control.internal.vueRendering()){var a=Object.keys(this.$attrs),m=Object.assign({},n);a.forEach(function(h){delete m[h]}),this.control.update(m)}},deep:!0},events:{handler:function(n,p){this.control&&(this.control.internal.vueRendering()||this.control.update({events:n}))},deep:!0},$attrs:{handler:function(n,p){this.control&&(this.control.internal.vueRendering()||this.control.update(n))},deep:!0}},render:function(){return i.h("div",{id:this.cid})},mounted:function(){var n=Object.assign({},this.config,this.$attrs),p=new t.Scheduler(this.cid,n),a=this.$slots;a.event&&(p.onBeforeEventDomAdd=function(m){m.element=a.event({event:m.e})}),a.cell&&(p.onBeforeCellDomAdd=function(m){m.element=a.cell({cell:m.cell})}),p.internal.enableVue(i),p.init(),this.control=p},beforeUnmount:function(){this.control&&this.control.dispose()}},o.DayPilotCalendar={props:["id","config","events"],data:function(){return{cid:this.id||l()}},watch:{config:{handler:function(n,p){if(this.control&&!this.control.internal.vueRendering()){var a=Object.keys(this.$attrs),m=Object.assign({},n);a.forEach(function(h){delete m[h]}),this.control.update(m)}},deep:!0},events:{handler:function(n,p){this.control&&(this.control.internal.vueRendering()||this.control.update({events:n}))},deep:!0},$attrs:{handler:function(n,p){this.control&&(this.control.internal.vueRendering()||this.control.update(n))},deep:!0}},render:function(){return i.h("div",{id:this.cid})},mounted:function(){var n=Object.assign({},this.config,this.$attrs),p=new t.Calendar(this.cid,n),a=this.$slots;a.event&&(p.onBeforeEventDomAdd=function(m){m.element=a.event({event:m.e})}),a.cell&&(p.onBeforeCellDomAdd=function(m){m.element=a.cell({cell:m.cell})}),p.internal.enableVue(i),p.init(),this.control=p},beforeUnmount:function(){this.control&&this.control.dispose()}},o.DayPilotMonth={props:["id","config","events"],data:function(){return{cid:this.id||l()}},watch:{config:{handler:function(n,p){if(this.control&&!this.control.internal.vueRendering()){var a=Object.keys(this.$attrs),m=Object.assign({},n);a.forEach(function(h){delete m[h]}),this.control.update(m)}},deep:!0},events:{handler:function(n,p){this.control&&(this.control.internal.vueRendering()||this.control.update({events:n}))},deep:!0},$attrs:{handler:function(n,p){this.control&&(this.control.internal.vueRendering()||this.control.update(n))},deep:!0}},render:function(){return i.h("div",{id:this.cid})},mounted:function(){var n=Object.assign({},this.config,this.$attrs),p=new t.Month(this.cid,n),a=this.$slots;a.event&&(p.onBeforeEventDomAdd=function(m){m.element=a.event({event:m.e})}),a.cell&&(p.onBeforeCellDomAdd=function(m){m.element=a.cell({cell:m.cell})}),p.internal.enableVue(i),p.init(),this.control=p},beforeUnmount:function(){this.control&&this.control.dispose()}},o.DayPilotNavigator={props:["id","config","events"],data:function(){return{cid:this.id||l()}},watch:{config:{handler:function(n,p){if(this.control&&!this.control.internal.vueRendering()){var a=Object.keys(this.$attrs),m=Object.assign({},n);a.forEach(function(h){delete m[h]}),this.control.update(m)}},deep:!0},events:{handler:function(n,p){this.control&&(this.control.internal.vueRendering()||this.control.update({events:n}))},deep:!0},$attrs:{handler:function(n,p){this.control&&(this.control.internal.vueRendering()||this.control.update(n))},deep:!0}},render:function(){return i.h("div",{id:this.cid})},mounted:function(){var n=Object.assign({},this.config,this.$attrs),p=new t.Navigator(this.cid,n),a=this.$slots;a.cell&&(p.onBeforeCellDomAdd=function(m){m.element=a.cell({cell:m.cell})}),p.internal.enableVue(i),p.init(),this.control=p},beforeUnmount:function(){this.control&&this.control.dispose()}}}
27function r(o){o.DayPilotScheduler={props:["id","config","events"],data:function(){return{cid:this.id||l()}},watch:{config:{handler:function(n,p){this.control&&this.control.update(n)},deep:!0},events:{handler:function(n,p){this.control&&this.control.update({events:n})},deep:!0}},render:function(n){return n("div",{attrs:{id:this.cid}})},mounted:function(){this.control=new t.Scheduler(this.cid,this.config).init()},beforeDestroy:function(){this.control&&this.control.dispose()}},o.DayPilotCalendar={props:["id","config","events"],data:function(){return{cid:this.id||l()}},watch:{config:{handler:function(n,p){this.control&&this.control.update(n)},deep:!0},events:{handler:function(n,p){this.control&&this.control.update({events:n})},deep:!0}},render:function(n){return n("div",{attrs:{id:this.cid}})},mounted:function(){this.control=new t.Calendar(this.cid,this.config).init()},beforeDestroy:function(){this.control&&this.control.dispose()}},o.DayPilotMonth={props:["id","config","events"],data:function(){return{cid:this.id||l()}},watch:{config:{handler:function(n,p){this.control&&this.control.update(n)},deep:!0},events:{handler:function(n,p){this.control&&this.control.update({events:n})},deep:!0}},render:function(n){return n("div",{attrs:{id:this.cid}})},mounted:function(){this.control=new t.Month(this.cid,this.config).init()},beforeDestroy:function(){this.control&&this.control.dispose()}},o.DayPilotNavigator={props:["id","config","events"],data:function(){return{cid:this.id||l()}},watch:{config:{handler:function(n,p){this.control&&this.control.update(n)},deep:!0},events:{handler:function(n,p){this.control&&this.control.update({events:n})},deep:!0}},render:function(n){return n("div",{attrs:{id:this.cid}})},mounted:function(){this.control=new t.Navigator(this.cid,this.config).init()},beforeDestroy:function(){this.control&&this.control.dispose()}}}var i=typeof i<"u"?i:vx(),u=typeof i.h=="function",f=u&&i.version&&!i.version.startsWith("2"),d={},l=function(){var o=function(){return 65536*(1+Math.random())|0};return"dp_"+new Date().getTime()+"_"+o()};f?e(d):r(d),Sa.exports={DayPilot:t,DayPilotCalendar:d.DayPilotCalendar,DayPilotScheduler:d.DayPilotScheduler,DayPilotMonth:d.DayPilotMonth,DayPilotNavigator:d.DayPilotNavigator}})(),Sa.exports}var gi=gx();const bx={lang:"fr"},yx={class:"topbar container"},_x={class:"topbar_top"},wx={key:0},xx={class:"mobile-menu mobile-menu_header"},Sx={class:"mobile-menu_nav"},Cx={class:"topbar"},Ex={class:"topbar_nav"},Tx={class:"planning"},kx={class:"grid header"},Ax={class:"weekday"},Mx={class:"day"},Nx={class:"cell name"},Rx={key:0,type:"text"},Ix={class:"sections"},Ox={__name:"TheLoggedMenuRevu",setup(t){const e=[{name:"Alice",presence:[!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0]},{name:"Bob",presence:[!0,!1,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0]}],r=K(new Date);function i(b,s){const c=new Date(b);return c.setDate(c.getDate()+s),c}const u=we(()=>{const b=[],s=new Date().toDateString();for(let c=0;c<14;c++){const v=i(r.value,c),g=v.toLocaleDateString("fr-FR",{weekday:"short"}).replace(".","").toUpperCase();b.push({date:v.toISOString(),weekday:g,dayNumber:v.getDate(),isToday:v.toDateString()===s})}return b}),f=K([{id:"1",name:"Jean Dupont"},{id:"2",name:"Sarah Martin"},{id:"3",name:"Ali Ben"}]),d=K([{id:"1",text:"Mission Usine",start:"2026-04-07T08:00:00",end:"2026-04-07T16:00:00",resource:"1",barColor:"#3b82f6",type:"planned"},{id:"2",text:"Mission Entrepôt",start:"2026-04-07T09:00:00",end:"2026-04-07T17:00:00",resource:"2",barColor:"#10b981",type:"planned"}]),l=K({startDate:"2026-04-07",days:7,scale:"Hour",rowHeaderWidth:200,eventMoveHandling:"Update",eventResizeHandling:"Update",eventClickHandling:"Enabled",onEventMoved:b=>{console.log("Déplacé:",b.e.data)},onEventResized:b=>{console.log("Redimensionné:",b.e.data)},onTimeRangeSelected:async b=>{const s=prompt("Nom de la mission");s&&(o.value.control.events.add({id:gi.DayPilot.guid(),text:s,start:b.start,end:b.end,resource:b.resource,type:"planned",barColor:"#3b82f6"}),o.value.control.clearSelection())},onBeforeEventRender:b=>{b.data.type==="actual"&&(b.data.barColor="#ef4444")}}),o=K(null);function n(b){d.value.push({id:gi.DayPilot.guid(),text:"Pointage",start:new gi.DayPilot.Date,end:new gi.DayPilot.Date().addHours(8),resource:b,type:"actual"})}const p=nn();console.log("TheLoggedMenuRevuUSER:",p.user);const a=[{name:"DURP",path:"/crudDurpView",roles:["admin"],children:[{name:"Accès par risque",path:"/crudDurpView"},{name:"Suivi",path:"/crudDurpView"}]},{name:"Interim/Vacataire",path:"/admin",roles:["admin"],children:[{name:"Agences",path:"/crudAgencesView"},{name:"Missions",path:"/crudMissionsView"},{name:"Staffs",path:"/crudStaffsView"},{name:"Timesheets",path:"/crudTimesheetsView"}]},{name:"DDADUE",path:"/crudDdadueView",roles:["admin"],children:[{name:"Calcul",path:"/crudDdadueView"},{name:"Suivi communication",path:"/crudDdadueView"}]},{name:"GTA",path:"/condition4",roles:["admin"],children:[{name:"Plannings",path:"crudPlanningsView"},{name:"Badges",path:"crudBadgesView"},{name:"Feuilles de temps",path:"crudTimesheetsView"},{name:"Admin",path:"crudStaffsView"}]}],m=we(()=>a.filter(b=>{if(!b.roles&&!b.permissions)return!0;const s=p.user?.roles||[];console.log("ROLES are :",s);const c=p.user?.permissions||[];return console.log("PERMS:",c),console.log("CHECK manage_users:",c.includes("manage_users")),!(b.roles&&!b.roles.some(v=>s.includes(v))||b.permissions&&!b.permissions.every(v=>c.includes(v)))})),h=K(!1);return(b,s)=>{const c=ct("RouterLink");
27return F(),j("html",bx,[s[8]||(s[8]=nt('<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Pretium</title><link rel="preconnect" href="https://fonts.bunny.net"><link href="https://fonts.bunny.net/css?family=montserrat:400,500,600,700,800" rel="stylesheet"><link rel="stylesheet" href="../css/style.css"></head>',1)),x("header",yx,[x("div",_x,[x("button",{class:"btn-icon",onClick:s[0]||(s[0]=v=>h.value=!h.value)},[...s[5]||(s[5]=[x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19.5 13.9"},[x("g",{fill:"currentColor","fill-rule":"evenodd"},[x("path",{d:"M0 .8C0 .3.3 0 .8 0h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 .7ZM0 7c0-.5.3-.8.8-.8h18a.8.8 0 0 1 0 1.5H.8a.8.8 0 0 1-.8-.8ZM0 13.1c0-.4.3-.7.8-.7h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 13Z"})])],-1)])]),h.value?(F(),j("div",wx,[x("div",xx,[x("ul",Sx,[(F(!0),j(ie,null,ve(m.value,v=>(F(),j("li",{key:v.path},[se(c,{to:v.path},{default:Ce(()=>[Te(" mob "+Y(v.name)+" | ",1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(v.children,g=>(F(),j("li",{key:g},[se(c,{to:g.path},{default:Ce(()=>[Te(Y(g.name),1)]),_:2},1032,["to"])]))),128))])]))),128))]),x("button",{class:"btn-icon",onClick:s[1]||(s[1]=v=>h.value=!h.value)},"Fermer")])])):ke("",!0),s[6]||(s[6]=nt('<a href="index.html" class="topbar_logo"><img src="'+Bn+'" alt="Logo Pretium" width="148" height="43"></a><div class="topbar_right"><form action="" class="topbar_search"><input type="search" placeholder="Rechercher un produit, une marque..." aria-label="Rechercher un produit, une marque..."></form><div class="topbar_actions"><a href="/logout" class="btn-bordered-grey"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 26 26"><g fill="currentColor" fill-rule="evenodd"><path d="M13 1.2A5.8 5.8 0 1 0 18.8 7c0-3.2-2.6-5.8-5.8-5.8ZM9.2 7a3.8 3.8 0 1 1 7.6 0 3.8 3.8 0 0 1-7.6 0Z"></path><path d="M19.2 15a10.9 10.9 0 0 0-6-1.7 11 11 0 0 0-6 1.6c-1.5 1-2.4 2.5-2.4 4 0 1.6.9 3 2.4 4 1.7 1.2 3.9 1.7 6 1.7s4.3-.5 6-1.6c1.5-1 2.4-2.5 2.4-4 0-1.6-1-3-2.4-4ZM6.8 19c0-.8.4-1.7 1.5-2.4a9 9 0 0 1 4.9-1.3c1.8 0 3.6.4 4.8 1.3 1.1.7 1.6 1.6 1.6 2.3 0 .8-.5 1.7-1.6 2.4-1.2.9-3 1.3-4.8 1.3-1.8 0-3.6-.4-4.9-1.3-1-.7-1.5-1.6-1.5-2.3Z"></path></g></svg> Se déconnecter </a> <button class="btn-icon" title="12Fermer le menu"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 13.4 13.4"><g fill="currentColor" fill-rule="evenodd"><path d="M.5.5c.3-.3.8-.3 1 0L13 11.8a.7.7 0 0 1-1 1.1L.4 1.6a.7.7 0 0 1 0-1Z"></path><path d="M12.9.5c.3.3.3.8 0 1L1.6 13a.7.7 0 0 1-1-1L11.7.4c.3-.3.8-.3 1.1 0Z"></path></g></svg></button></div></div>',2))]),x("div",Cx,[x("ul",Ex,[(F(!0),j(ie,null,ve(m.value,v=>(F(),j("li",{key:v.path},[se(c,{to:v.path},{default:Ce(()=>[Te(Y(v.name),1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(v.children,g=>(F(),j("li",{key:g},[se(c,{to:g.path},{default:Ce(()=>[Te(Y(g.name),1)]),_:2},1032,["to"])]))),128))])]))),128))])])]),x("main",null,[x("div",Tx,[x("div",kx,[s[7]||(s[7]=x("div",{class:"cell name"},null,-1)),(F(!0),j(ie,null,ve(u.value,v=>(F(),j("div",{key:v.date,class:"cell day-header"},[x("div",Ax,Y(v.weekday),1),x("div",Mx,Y(v.dayNumber),1)]))),128))]),(F(),j(ie,null,ve(e,v=>x("div",{key:v.name,class:"grid row"},[x("div",Nx,Y(v.name),1),(F(!0),j(ie,null,ve(u.value,(g,y)=>(F(),j("div",{key:g.date,class:hn(["cell",{absent:!v.presence[y]}])},[v.presence[y]?(F(),j("input",Rx)):ke("",!0)],2))),128))])),64))]),x("main",Ix,[x("div",null,[x("button",{onClick:s[2]||(s[2]=v=>n("1"))},"Clock-in Jean"),x("button",{onClick:s[3]||(s[3]=v=>n("2"))},"Clock-in Sarah"),x("button",{onClick:s[4]||(s[4]=v=>n("3"))},"Clock-in Ali"),se(Ht(gi.DayPilotScheduler),{ref_key:"scheduler",ref:o,config:l.value,resources:f.value,events:d.value,style:{height:"500px","margin-top":"20px"}},null,8,["config","resources","events"])])])])])}}},Hx="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2049.644%2062.373'%3e%3cpath%20fill='%23FFF'%20fill-rule='evenodd'%20d='M47.1401%2015.485c-.0918-1.5869-1.4054-2.8267-2.995-2.8267h-7.2723a.0232.0232%200%200%201-.0232-.0232C36.8496%205.6684%2031.4572%200%2024.826%200c-6.6342%200-12.0266%205.6684-12.0266%2012.6351a.0232.0232%200%200%201-.0232.0232H5.4967c-1.5895%200-2.9032%201.2399-2.995%202.8268L.0051%2058.6529c-.0996%201.7221%201.27%203.1732%202.995%203.1732H46.643c1.725%200%203.0946-1.4512%202.995-3.1733L47.1401%2015.485Zm-31.4753-2.8267a.0232.0232%200%200%201-.0232-.0232c0-5.3982%204.1187-9.7915%209.1829-9.7915%205.0628%200%209.1815%204.3933%209.1815%209.7915a.0232.0232%200%200%201-.0232.0232h-18.318Z'/%3e%3cpath%20fill='%237F8E76'%20fill-rule='evenodd'%20d='m24.5121%2046.9225-5.9647%202.2917c2.4486%204.3482%207.7699
27%205.6495%2013.126%203.593%203.4569-1.3264%207.5183-3.5969%209.6326-6.8839.2362-.3672.8189-.3349.9756.0727l.6835%201.7776c1.795%204.675-.0116%209.4923-10.0456%2013.3452-9.0842%203.487-20.7259-.2861-25.0204-11.4732-4.6866-12.2023-.1699-22.7257%2010.2693-26.7355%207.5927-2.9148%2016.7277-.2004%2020.0869%208.5453%202.5763%206.7112-1.676%2010.8343-13.7432%2015.4671ZM20.2713%2030.815c-4.4063%201.6919-6.0779%206.4555-4.6677%2010.7383l.4009%201.2447%204.0679-1.5598c8.6092-3.3069%2010.2111-5.009%209.2236-7.5883-1.4073-3.6584-4.8202-4.4484-9.0247-2.8349Z'/%3e%3c/svg%3e",Lx=""+new URL("android-3jo2I-FL.png",import.meta.url).href,Ux=""+new URL("[email protected]",import.meta.url).href,Bx=""+new URL("ios-P7UpqpiH.png",import.meta.url).href,Dx=""+new URL("[email protected]",import.meta.url).href,Vx=Ux+" 1.4x",Fx=Dx+" 1.4x",jx={lang:"fr"},yn={__name:"TheFooter",setup(t){return(e,r)=>(F(),j("html",jx,[...r[0]||(r[0]=[nt('<footer class="footer"><div class="container"><img src="'+Hx+'" alt="" width="50" height="62" class="footer_logo"><div class="footer_section"><div class="text-title">A propos</div><ul><li><a href="#">Nos engagements</a></li><li><a href="#">Nous rejoindre</a></li><li><a href="#">Presse</a></li></ul></div><div class="footer_section"><div class="text-title">Informations légales</div><ul><li><a href="#">Conditions d'utilisation</a></li><li><a href="#">Affiliation</a></li><li><a href="#">RGPD</a></li></ul></div><div class="footer_section"><div class="text-title">Nos solutions professionnelles</div><ul><li><a href="#">Badgeuse</a></li><li><a href="#">Calcul Ddadue</a></li><li><a href="#">Digitalisation de process</a></li></ul></div><div class="footer_socials"><a href="#" title="Nous rejoindre sur Facebook"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 13.405 23.321"><path fill="currentColor" fill-rule="evenodd" d="M7.9405 0a4.9643 4.9643 0 0 0-4.9643 4.9643v3.2202H.5a.5.5 0 0 0-.5.5v3.7203a.5.5 0 0 0 .5.5h2.4762v9.9166a.5.5 0 0 0 .5.5h4.4643a.5.5 0 0 0 .5-.5v-9.9166h2.4762a.5.5 0 0 0 .4642-.3143l1.4881-3.7203a.5.5 0 0 0-.4642-.6857H8.4405V5.7083a.9881.9881 0 0 1 .988-.988h1.4882a.5.5 0 0 0 .5-.5V.5a.5.5 0 0 0-.5-.5H7.9405Zm4.4643 8.6845 1 1-1-.9999Zm-4.4643.5h3.7257l-1.0881 2.7203H7.9405a.5.5 0 0 0-.5.5v9.9166H3.9762v-9.9166a.5.5 0 0 0-.5-.5H1V9.1845h2.4762a.5.5 0 0 0 .5-.5V4.9643A3.9643 3.9643 0 0 1 7.9405 1h2.4762v2.7202h-.9881a1.988 1.988 0 0 0-1.9881 1.9881v2.9762a.5.5 0 0 0 .5.5Z"></path></svg></a><a href="#" title="Nous rejoindre sur LinkedIn"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 21.645 21.645"><path fill="currentColor" fill-rule="evenodd" d="M2.7056 5.4113C1.214 5.4113 0 4.1973 0 2.7056 0 1.214 1.214 0 2.7056 0c1.4917 0 2.7057 1.214 2.7057 2.7056 0 1.4917-1.214 2.7057-2.7057 2.7057Zm0-4.5094C1.711.9019.902 1.7109.902 2.7056c0 .9948.809 1.8038 1.8037 1.8038.9948 0 1.8038-.809 1.8038-1.8038 0-.9947-.809-1.8037-1.8038-1.8037ZM21.1941 21.645h-4.5094a.451.451 0 0 1-.4509-.4509v-8.1169c0-1.0236-.4266-1.792-1.1716-2.1068-.7693-.3265-1.7081-.1262-2.4359.5015v9.7222a.451.451 0 0 1-.451.4509H7.6659a.4508.4508 0 0 1-.4509-.4509V7.6659a.451.451 0 0 1 .451-.4509h4.5093a.4508.4508 0 0 1 .4365.3382c1.4466-1.0408 3.8565-1.6198 5.7838-.9596 1.4547.4987 3.198 1.8696 3.2494 5.5763v9.0251a.4507.4507 0 0 1-.4509.45Zm-4.0585-.9019h3.6075v-8.5678c-.0342-2.5117-.9478-4.1495-2.6397-4.7285-2.1014-.7197-4.7493.367-5.5763 1.4024a.452.452 0 0 1-.7185-.022.452.452 0 0 1-.0842-.2594v-.451H8.1169v12.6263h3.6075v-9.4697a.451.451 0 0 1 .1362-.3228c1.0083-.9795 2.4053-1.2951 3.5525-.8108 1.0948.4636 1.7225 1.5341 1.7216 2.9374l.0009 7.6659Zm-12.1753.9019H.451A.4508.4508 0 0 1 0 21.1941V7.6659a.451.451 0 0 1 .451-.4509h4.5093a.451.451 0 0 1 .451.451V21.194a.4507.4507 0 0 1-.451.4509ZM.902 20.7431h3.6075V8.1169H.9019V20.743Z"></path></svg></a><a href="#" title="Nous rejoindre sur Instagram"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 21.628 21.629"><g fill="currentColor" fill-rule="evenodd"><path d="M6.9182.1C3.1492.1.1 3.1492.1 6.9182v7.7922c0 3.769 3.0492 6.8182 6.8182 6.8182h7.7922c3.769 0 6.8182-3.0492 6.8182-6.8182V6.9182C21.5286 3.1492 18.4794.1 14.7104.1H6.9182Zm0 .974h7.7922c3.2459 0 5.8441 2.5982 5.8441 5.8442v7.7922c0 3.2459-2.5982 5.8441-5.8441 5.8441H6.9182c-3.246 0-5.8442-2.5982-5.8442-5.8441V6.9182c0-3.246 2.5982-5.8442 5.8442-5.8442Z"></path><path d="M6.9182 0C3.094 0 0 3.094 0 6.9182v7.7922c0 3.8242 3.094 6.9182 6.9182 6.9182h7.7922c3.8242 0 6.9182-3.094 6.9182-6.9182V6.9182C21.6286 3.094 18.5346 0 14.7104 0H6.9182ZM.2 6.9182C.2 3.2044 3.2044.2 6.9182.2h7.7922c3.7138 0 6.7182 3.0044 6.7182 6.7182v7.7922c0 3.7138-3.0044 6.7182-6.7182 6.7182H6.9182C3.2044 21.4286.2 18.4242.2 14.7104V6.9182ZM6.9182.974C3.617.974.974 3.617.974 6.9182v7.7922c0 3.3012 2.643 5.9441 5.9442 5.9441h7.7922c3.3012 0 5.9441-2.6429 5.9441-5.9441V6.9182c0-3.3012-2.6429-5.9442-5.9441-5.9442H6.9182ZM1.174 6.9182c0-3.1907 2.5535-5.7442 5.7442-5.7442h7.7922c3.1907 0 5.7441 2.5535 5.7441 5.7442v7.7922c0 3.1907-2.5534 5.7441-5.7441 5.7441H6.9182c-3.1907 0-5.7442-2.5534-5.7442-5.7441V6.9182Z"></path><path d="M16.6583 3.509c-.8011 0-1.461.6599-1.461 1.461 0 .8012.6599 1.461 1.461 1.461s1.461-.6598 1.461-1.461c0-.8011-.6599-1.461-1.461-1.461Zm.013.974
27c.282 0 .5.218.5.5 0 .282-.218.5-.5.5-.282 0-.5-.218-.5-.5 0-.282.218-.5.5-.5Zm-5.8572.974c-2.9527 0-5.3571 2.4044-5.3571 5.3572s2.4044 5.3571 5.3571 5.3571c2.9528 0 5.3572-2.4043 5.3572-5.3571S13.7669 5.457 10.8141 5.457Zm0 .974c2.4263 0 4.3832 1.9569 4.3832 4.3832 0 2.4263-1.9569 4.3831-4.3832 4.3831-2.4263 0-4.383-1.9568-4.383-4.3831 0-2.4263 1.9567-4.3831 4.383-4.3831Z"></path><path d="M16.6583 3.409c-.8564 0-1.561.7047-1.561 1.561 0 .8564.7046 1.561 1.561 1.561.8564 0 1.561-.7046 1.561-1.561 0-.8563-.7046-1.561-1.561-1.561Zm-1.361 1.561c0-.7459.6151-1.361 1.361-1.361s1.361.6151 1.361 1.361c0 .746-.6151 1.361-1.361 1.361s-1.361-.615-1.361-1.361Zm1.361-.587c-.3299 0-.587.2571-.587.587 0 .33.2571.587.587.587.3299 0 .587-.257.587-.587 0-.3299-.2571-.587-.587-.587Zm-.387.7c0-.2835.2165-.5.5-.5s.5.2165.5.5-.2165.5-.5.5-.5-.2165-.5-.5Zm-5.4572.274c-3.008 0-5.4571 2.4492-5.4571 5.4572 0 3.008 2.4492 5.4571 5.4571 5.4571 3.008 0 5.4572-2.4491 5.4572-5.4571 0-3.008-2.4492-5.4571-5.4572-5.4571ZM5.557 10.8143c0-2.8975 2.3596-5.2571 5.2571-5.2571 2.8976 0 5.2572 2.3596 5.2572 5.257 0 2.8976-2.3596 5.2572-5.2572 5.2572-2.8975 0-5.2571-2.3596-5.2571-5.2571Zm5.2571-4.4831c-2.4815 0-4.483 2.0016-4.483 4.483 0 2.4816 2.0015 4.4832 4.483 4.4832 2.4816 0 4.4832-2.0016 4.4832-4.4831 0-2.4815-2.0016-4.4831-4.4832-4.4831Zm-4.283 4.483c0-2.371 1.912-4.283 4.283-4.283 2.3711 0 4.2832 1.912 4.2832 4.283 0 2.3712-1.912 4.2832-4.2832 4.2832-2.371 0-4.283-1.912-4.283-4.2831Z"></path></g></svg></a><a href="#" title="Nous rejoindre sur X"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 19.047 19.048"><path fill="currentColor" fill-rule="evenodd" d="M19.0476 19.0476h-5.6762c-.0114-.0215-.0207-.0445-.0347-.0645-1.
276897-2.4029-3.3806-4.805-5.0671-7.21-.0833-.1186-.1206-.0881-.1969-.0012-1.2724 1.4483-2.5485 2.8936-3.8218 4.3411-.8596.9771-1.7164 1.9563-2.5745 2.9346H.0384c-.0016-.0915.0574-.1463.1152-.1999.0195-.0181.0388-.036.0556-.0551a6424.7085 6424.7085 0 0 1 7.1143-8.0744c.0827-.0935.0977-.1525.02-.2626A6507.6547 6507.6547 0 0 1 .6208.9082C.4098.6082.182.3192 0 .0002h5.6762c.0184.0319.0343.0656.0555.0956a18267.997 18267.997 0 0 0 4.7825 6.7962c.0239.034.0383.0803.0943.0882.0197-.0213.0413-.0435.0619-.0669 1.9951-2.2644 3.9904-4.529 5.9843-6.7947a.2372.2372 0 0 1 .0263-.0241c.0281-.0233.0575-.0476.0426-.0945h1.6761c.0241.0583-.013.0856-.0479.1114-.0127.0094-.0252.0185-.0343.029a4724.5608 4724.5608 0 0 1-6.853 7.7771c-.1009.114-.1058.1828-.017.3084 2.1903 3.1031 4.3766 6.209 6.5597 9.3171.3508.499.7208.9853 1.0404 1.5046ZM2.2702 1.2346l.923 1.2887c3.6245 5.0637 7.2491 10.127 10.8708 15.1923.0767.1072.1541.1529.2914.1515.4951-.0049.9901-.0045 1.4852-.0041.2412.0001.4825.0003.7238-.0001.0114 0 .0229.0007.0347.0014.0432.0027.0893.0056.1385-.026-.0456-.066-.0859-.1264-.1283-.1856-2.9526-4.1249-5.9054-8.2495-8.858-12.3744-.9334-1.304-1.8666-2.608-2.8001-3.9119l-.0096-.0135c-.0457-.0644-.0869-.1226-.1937-.1219-.6175.005-1.235.0044-1.871.0039-.2001-.0002-.4022-.0003-.6067-.0003Z"></path></svg></a></div><div class="footer_apps"><a href="#" title="Télécharger l'application Android"><img src="'+Lx+'" srcset="'+Vx+'" alt="Badge Android" width="206" height="68"></a><a href="" title="Télécharger l'application iOS"><img src="'+Bx+'" srcset="'+Fx+'" alt="Badge iOS" width="206" height="68"></a></div><div class="footer_mentions"><ul><li><a href="#">Conditions d'utilisation</a></li><li><a href="#">Politique des données</a></li></ul><p class="footer_copyright">© Additime 2026. Tous droits réservés.</p></div></div></footer>',1)])]))}},zx={class:"header"},$x={class:"user-info"},Wx={__name:"DashboardView",setup(t){const e=K(""),r=K(""),i=K("");return rn(),qe(async()=>{const u=await be.get("/profile");e.value=u.data.message,r.value=u.data.staff,i.value="[email protected]"}),(u,f)=>{const d=ct("router-view");return F(),j(ie,null,[x("div",null,[x("div",zx,[f[0]||(f[0]=x("h2",null,"PFP",-1)),x("div",$x,[x("p",null,"Connecté avec l'email "+Y(i.value),1)])])]),x("main",null,[se(d),se(Ox),se(yn)])],64)}}},Px={class:"topbar container"},Gx={class:"topbar_top"},Zx={key:0},qx={class:"mobile-menu mobile-menu_header"},Jx={class:"mobile-menu_nav"},Xx={class:"topbar"},Yx={class:"topbar_nav"},Kx={class:"p-6"},Qx={class:"w-full border"},eS={class:"p-2"},tS={class:"p-2"},nS={class:"p-2"},rS={key:0},iS={class:"p-2 flex gap-2"},sS={class:"actions"},oS=["onClick"],aS=["onClick"],lS=["onClick"],cS=["onClick"],uS=["onClick"],dS={class:"p-6"},fS={class:"grid grid-cols-2 gap-3"},hS=["onClick"],pS={key:0},mS={key:0,class:"fixed inset-0 bg-black/50 flex items-center justify-center"},vS={class:"bg-white w-[90%] max-w-3xl rounded-xl shadow-lg p-6"},gS={class:"flex justify-between items-center mb-4"},bS={class:"grid grid-cols-2 gap-3 max-h-[60vh] overflow-auto"},yS=["onClick"],_S={key:0},wS={class:"flex justify-end gap-2 mt-6"},xS={class:"agence-list"},SS={class:"search-box"},CS={class:"agence-list"},ES={class:"agence-info"},TS={class:"actions"},kS=["onClick"],AS=["onClick"],MS=["onClick"],NS={class:"pagination"},RS=["disabled"],IS=["disabled"],OS={class:"dark-toggle"},HS={class:"modal"},LS={key:0},US={key:1},BS={class:"modal-actions"},DS={key:0},VS={class:"modal"},FS={key:0},jS=["onClick"],zS={key:0},$S={class:"modal-actions"},WS={key:0},PS={key:1},GS={key:0},ZS={class:"container-form"},qS={class:"field"},JS={class:"field"},XS={__name:"TheCRUDTest",props:{roleId:{type:String,required:!0}},setup(t){const e=K([]),r=K([]),i=K({nom:"",adresse:""}),u=K(null),f=K(null),d=K(""),l=K(1),o=K(3),n=K(!1),p=K(null),a=K(null),m=t,h=K([]),b=K([]),s=K(new Set),c=async()=>{try{const V=await be.get("/profile",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});e.value=V.data,console.log("profile il y a ceci",e.value)}catch(V){console.error(V)}},v=async()=>{try{const V=await be.get("/roles",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});h.value=V.data,console.log("roles il y a ceci",h.value)}catch(V){console.error(V)}},g=async()=>{try{const V=await be.get("/permissions",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});b.value=V.data,console.log("permissions il y a ceci",b.value)}catch(V){console.error(V)}},y=async V=>{s.value.has(V)?(s.value.delete(V),await be.delete(`/roles/${m.roleId}/permissions`,{data:{permission_id:V}})):(s.value.add(V),await be.post(`/roles/${m.roleId}/permissions`,{permission_id:V}))},_=V=>{const W=p.value,re=W.permissions.findIndex(J=>J.permission_id===V);re!==-1?W.permissions.splice(re,1):W.permissions.push({permission_id:V,permission_name:b.value.find(J=>J.id===V)?.name})},w=(V,W)=>V.permissions.some(re=>re.permission_id===W),S=async()=>{try{const V=await be.get("/agences",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});r.value=V.data,console.log("agences il y a ceci",r.value)}catch(V){console.error(V)}},E=async()=>{try{const V={nom:i.value.nom,adresse:i.value.adresse},W=localStorage.getItem("token"),re=await be.post("/insertagences",V,{headers:{"Content-Type":"application/json",...W&&{Authorization:`Bearer ${W}`}}});return console.log(re.status,re.ok),await S(),console.log("Agence créée :",re.data),alert("Agence créée !"),i.value={nom:"",adresse:""},re}catch(V){throw console.error("Erreur lors de la création de l agence",V),V}},T=async()=>{try{const V=localStorage.getItem("token"),W=await be.put(`/updateagences/${u.value.agence_id}`,u.value,{headers:{"Content-Type":"application/json",...V&&{Authorization:`Bearer ${V}`}}});return console.log(W.status,W.ok),await S(),console.log("Agence updatée :",W.data),alert("Agence updatée !"),W}catch(V){throw console.error("Erreur lors de la maj de l agence",V),V}},C=async()=>{try{const V=localStorage.getItem("token"),W=await be.put(`/deleteagences/${u.value.agence_id}`,u.value,{headers:{"Content-Type":"application/json",...V&&{Authorization:`Bearer ${V}`}}});return console.log(W.status,W.ok),await S(),console.log("Agence supprimée :",W.data),alert("Agence supprimée !"),W}catch(V){throw console.error("Erreur lors de la supression de l agence",V),V}},N=nn();console.log("USERTheInsertTest:",N.user);const B=[{name:"DURP",path:"/crudDurpView",roles:["admin"],children:[{name:"Accès par risque",path:"/crudDurpView"},{name:"Suivi",path:"/crudDurpView"}]},{name:"Interim/Vacataire",path:"/admin",roles:["admin"],children:[{name:"Agences",path:"/crudAgencesView"},{name:"Missions",path:"/crudMissionsView"},{name:"Staffs",path:"/crudStaffsView"},{name:"Timesheets",path:"/crudTimesheetsView"}]},{name:"DDADUE",path:"/crudDdadueView",roles:["admin"],children:[{name:"Calcul",path:"/crudDdadueView"},{name:"Suivi communication",path:"/crudDdadueView"}]},{name:"GTA",path:"/condition4",roles:["admin"],children:[{name:"Plannings",path:"crudPlanningsView"},{name:"Badges",path:"crudBadgesView"},{name:"Feuilles de temps",path:"crudTimesheetsView"},{name:"Admin",path:"crudStaffsView"}]}],M=we(()=>B.filter(V=>{if(!V.roles&&!V.permissions)return!0;const W=N.user?.roles||[];console.log("ROLES are :",W);const re=N.user?.permissions||[];return console.log("PERMS:",re),console.log("CHECK manage_users:",re.includes("manage_users")),!(V.roles&&!V.roles.some(J=>W.includes(J))||V.permissions&&!V.permissions.every(J=>re.includes(J)))})),L=K(!1),I=we(()=>r.value.filter(V=>V.nom.toLowerCase().includes(d.value.toLowerCase()))),$=we(()=>(l.value-1)*o.value),O=we(()=>$.value+o.value),H=we(()=>I.value.slice($.value,O.value));function D(V){f.value=null,u.value={...V}
27,console.log("openModal",V),console.log("selectedAgence",u)}function R(){f.value="true",u.value=null}function z(V){a.value=null,console.log("openModalRole",V),p.value={...V},console.log("selectedRole",p.value)}function A(){f.value="true",p.value=null}function X(V){f.value="true",u.value={...V}}function G(V){a.value="true",p.value={...V},console.log("editRole avec value",p.value)}function ce(V){confirm("Supprimer ?")&&(r.value=r.value.filter(W=>W.agence_id!==W.id),u.value={...V},C())}const Ie=async()=>{try{console.log("updateROLE");const V=p.value;console.log("detail",V);const W=localStorage.getItem("token"),re=await be.post(`/roles/${roleId}/permissions/bulk`,{permissions:p.value.permissions.map(J=>J.permission_id),headers:{"Content-Type":"application/json",...W&&{Authorization:`Bearer ${W}`}}});return console.log(re.status,re.ok),re}catch(V){throw console.error("Erreur lors de update de Role",V),V}};function Be(V){confirm("Supprimer ?")&&(r.value=r.value.filter(W=>W.agence_id!==W.id),u.value={...V},C())}function q(){l.value++}function ue(){l.value--}return Lt(n,V=>{document.body.classList.toggle("dark",V)}),qe(()=>{c(),S(),v(),g()}),(V,W)=>{const re=ct("RouterLink");return F(),j(ie,null,[W[31]||(W[31]=nt('<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Pretium </title><link rel="preconnect" href="https://fonts.bunny.net"><link href="https://fonts.bunny.net/css?family=montserrat:400,500,600,700,800" rel="stylesheet"><link rel="stylesheet" href="../css/style.css"></head>',1)),x("header",Px,[x("div",Gx,[x("button",{class:"btn-icon",onClick:W[0]||(W[0]=J=>L.value=!L.value)},[...W[15]||(W[15]=[x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19.5 13.9"},[x("g",{fill:"currentColor","fill-rule":"evenodd"},[x("path",{d:"M0 .8C0 .3.3 0 .8 0h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 .7ZM0 7c0-.5.3-.8.8-.8h18a.8.8 0 0 1 0 1.5H.8a.8.8 0 0 1-.8-.8ZM0 13.1c0-.4.3-.7.8-.7h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 13Z"})])],-1)])]),L.value?(F(),j("div",Zx,[x("div",qx,[x("ul",Jx,[(F(!0),j(ie,null,ve(M.value,J=>(F(),j("li",{key:J.path},[se(re,{to:J.path},{default:Ce(()=>[Te(" mob "+Y(J.name)+" | ",1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(J.children,k=>(F(),j("li",{key:k},[se(re,{to:k.path},{default:Ce(()=>[Te(Y(k.name),1)]),_:2},1032,["to"])]))),128))])]))),128))]),x("button",{class:"btn-icon",onClick:W[1]||(W[1]=J=>L.value=!L.value)},"Fermer")])])):ke("",!0),W[16]||(W[16]=nt('<a href="index.html" class="topbar_logo"><img src="'+Bn+'" alt="Logo Pretium" width="148" height="43"></a><div class="topbar_right"><form action="" class="topbar_search"><input type="search" placeholder="Rechercher un produit, une marque..." aria-label="Rechercher un produit, une marque..."></form><div class="topbar_actions"><a href="/logout" class="btn-bordered-grey"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 26 26"><g fill="currentColor" fill-rule="evenodd"><path d="M13 1.2A5.8 5.8 0 1 0 18.8 7c0-3.2-2.6-5.8-5.8-5.8ZM9.2 7a3.8 3.8 0 1 1 7.6 0 3.8 3.8 0 0 1-7.6 0Z"></path><path d="M19.2 15a10.9 10.9 0 0 0-6-1.7 11 11 0 0 0-6 1.6c-1.5 1-2.4 2.5-2.4 4 0 1.6.9 3 2.4 4 1.7 1.2 3.9 1.7 6 1.7s4.3-.5 6-1.6c1.5-1 2.4-2.5 2.4-4 0-1.6-1-3-2.4-4ZM6.8 19c0-.8.4-1.7 1.5-2.4a9 9 0 0 1 4.9-1.3c1.8 0 3.6.4 4.8 1.3 1.1.7 1.6 1.6 1.6 2.3 0 .8-.5 1.7-1.6 2.4-1.2.9-3 1.3-4.8 1.3-1.8 0-3.6-.4-4.9-1.3-1-.7-1.5-1.6-1.5-2.3Z"></path></g></svg> Se déconnecter </a> <button class="btn-icon" title="12Fermer le menu"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 13.4 13.4"><g fill="currentColor" fill-rule="evenodd"><path d="M.5.5c.3-.3.8-.3 1 0L13 11.8a.7.7 0 0 1-1 1.1L.4 1.6a.7.7 0 0 1 0-1Z"></path><path d="M12.9.5c.3.3.3.8 0 1L1.6 13a.7.7 0 0 1-1-1L11.7.4c.3-.3.8-.3 1.1 0Z"></path></g></svg></button></div></div>',2))]),x("div",Xx,[x("ul",Yx,[(F(!0),j(ie,null,ve(M.value,J=>(F(),j("li",{key:J.path},[se(re,{to:J.path},{default:Ce(()=>[Te(Y(J.name),1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(J.children,k=>(F(),j("li",{key:k},[se(re,{to:k.path},{default:Ce(()=>[Te(Y(k.name),1)]),_:2},1032,["to"])]))),128))])]))),128))])])]),x("div",Kx,[W[19]||(W[19]=x("div",{class:"flex justify-between mb-4"},[x("h1",{class:"text-2xl font-bold"},"Roles"),x("button",{class:"bg-blue-600 text-white px-4 py-2 rounded"}," + Nouveau rôle ")],-1)),x("table",Qx,[W[18]||(W[18]=x("thead",{class:"bg-gray-100"},[x("tr",null,[x("th",{class:"p-2 text-left"},"ID"),x("th",{class:"p-2 text-left"},"Nom"),x("th",{class:"p-2 text-left"},"Permissions"),x("th",{class:"p-2 text-left"},"Actions")])],-1)),x("tbody",null,[(F(!0),j(ie,null,ve(h.value,J=>(F(),j("tr",{key:J.id,class:"border-t"},[x("td",eS,Y(J.role_id),1),x("td",tS,Y(J.role_name),1),x("td",nS,[(F(!0),j(ie,null,ve(b.value,k=>(F(),j("div",{key:k.id,class:"flex items-center gap-2"},[x("span",null,Y(k.name),1),w(J,k.id)?(F(),j("span",rS," â ")):ke("",!0)]))),128))]),x("td",iS,[x("div",sS,[x("button",{class:"btn read",onClick:k=>z(J)},Y(J.role_id)+"ð",9,oS),x("button",{class:"btn update",onClick:k=>G(J)},"â",8,aS),x("button",{class:"btn delete",onClick:k=>Be(J)},"ð",8,lS)]),W[17]||(W[17]=Te()),x("button",{onClick:k=>V.openPermissions(J.role_id),class:"text-blue-600"}," permissions de "+Y(J.role_name),9,cS),x("button",{onClick:k=>Be(J.role.name),class:"text-red-500"}," delete ",8,uS)])]))),128))])])]),x("div",dS,[W[20]||(W[20]=x("h2",{class:"text-xl font-bold mb-4"}," Permissions du rôle ",-1)),x("div",fS,[(F(!0),j(ie,null,ve(b.value,J=>(F(),j("div",{key:J.id,onClick:k=>
27y(J.id),class:hn(["cursor-pointer p-3 rounded border flex items-center justify-between transition",s.value.has(J.id)?"bg-blue-600 text-white border-blue-600":"bg-white hover:bg-gray-50"])},[x("span",null,"dada"+Y(J.name),1),s.value.has(J.id)?(F(),j("span",pS," â ")):ke("",!0)],10,hS))),128))])]),V.open?(F(),j("div",mS,[x("div",vS,[x("div",gS,[W[21]||(W[21]=x("h2",{class:"text-xl font-bold"}," Permissions du rôle ",-1)),x("button",{onClick:W[2]||(W[2]=J=>V.$emit("close")),class:"text-gray-500"}," â ")]),x("div",bS,[(F(!0),j(ie,null,ve(b.value,J=>(F(),j("div",{key:J.id,onClick:k=>y(J.id),class:hn(["cursor-pointer p-3 rounded border flex justify-between items-center transition",s.value.includes(J.id)?"bg-blue-600 text-white border-blue-600":"hover:bg-gray-50"])},[x("span",null,"dede"+Y(J.name),1),s.value.includes(J.id)?(F(),j("span",_S,"â")):ke("",!0)],10,yS))),128))]),x("div",wS,[x("button",{onClick:W[3]||(W[3]=J=>V.$emit("close")),class:"px-4 py-2 border rounded"}," Annuler "),x("button",{onClick:W[4]||(W[4]=(...J)=>V.save&&V.save(...J)),class:"px-4 py-2 bg-blue-600 text-white rounded"}," Sauvegarder ")])])])):ke("",!0),W[32]||(W[32]=x("h2",{class:"title"},"Liste des agences",-1)),x("div",xS,[W[26]||(W[26]=x("h2",{class:"title"},"Liste des agences",-1)),x("div",SS,[fe(x("input",{"onUpdate:modelValue":W[5]||(W[5]=J=>d.value=J),placeholder:"Rechercher une agence..."},null,512),[[pe,d.value]])]),x("div",CS,[se(Ar,{name:"fade",tag:"div"},{default:Ce(()=>[(F(!0),j(ie,null,ve(H.value,J=>(F(),j("div",{class:"agence-card",key:J.agence_id},[x("div",ES,[x("h3",null,Y(J.nom),1),x("p",null,"ID: "+Y(J.agence_id),1),x("p",null,Y(J.adresse),1)]),x("div",TS,[x("button",{class:"btn read",onClick:k=>D(J)},"ð",8,kS),x("button",{class:"btn update",onClick:k=>X(J)},"â",8,AS),x("button",{class:"btn delete",onClick:k=>ce(J)},"ð",8,MS)])]))),128))]),_:1})]),x("div",NS,[x("button",{onClick:ue,disabled:l.value===1},"â¬
",8,RS),x("span",null,"Page "+Y(l.value),1),x("button",{onClick:q,disabled:O.value>=I.value.length},"â¡",8,IS)]),x("div",OS,[x("button",{onClick:W[6]||(W[6]=J=>n.value=!n.value)},Y(n.value?"â Mode clair":"ð Mode sombre"),1)]),u.value?(F(),j("div",{key:0,class:"modal-overlay",onClick:ut(R,["self"])},[x("div",HS,[f.value?(F(),j("div",LS,[...W[22]||(W[22]=[x("h3",null,"Modifier agence",-1)])])):(F(),j("div",US,[...W[23]||(W[23]=[x("h3",null,"Consulter agence",-1)])])),fe(x("input",{"onUpdate:modelValue":W[7]||(W[7]=J=>u.value.nom=J),placeholder:"Nom"},null,512),[[pe,u.value.nom]]),fe(x("input",{"onUpdate:modelValue":W[8]||(W[8]=J=>u.value.adresse=J),placeholder:"Adresse"},null,512),[[pe,u.value.adresse]]),x("div",BS,[f.value?(F(),j("div",DS,[x("button",{class:"btn save",onClick:T},"ð¾ Sauver")])):ke("",!0),x("button",{class:"btn close",onClick:R},"â Fermer")])])])):ke("",!0),p.value?(F(),j("div",{key:1,class:"modal-overlay",onClick:ut(A,["self"])},[x("div",VS,[a.value?(F(),j("div",FS,[W[24]||(W[24]=x("h3",null,"Modifier les droits",-1)),fe(x("input",{"onUpdate:modelValue":W[9]||(W[9]=J=>p.value.role_id=J),placeholder:"id"},null,512),[[pe,p.value.role_id]]),fe(x("input",{"onUpdate:modelValue":W[10]||(W[10]=J=>p.value.role_name=J),placeholder:"nom"},null,512),[[pe,p.value.role_name]]),(F(!0),j(ie,null,ve(b.value,J=>(F(),j("div",{key:J.id,onClick:k=>_(J.id),class:"cursor-pointer p-3 rounded border flex items-center justify-between transition"},[x("span",null,Y(J.name),1),w(p.value,J.id)?(F(),j("span",zS," â ")):ke("",!0)],8,jS))),128)),x("div",$S,[a.value?(F(),j("div",WS,[x("button",{class:"btn save",onClick:Ie},"ð¾ Sauver")])):ke("",!0),x("button",{class:"btn close",onClick:R},"â Fermer")])])):(F(),j("div",PS,[W[25]||(W[25]=x("h3",null,"Consulter le rôle et ses permissions",-1)),fe(x("input",{"onUpdate:modelValue":W[11]||(W[11]=J=>p.value.role_id=J),placeholder:"id"},null,512),[[pe,p.value.role_id]]),fe(x("input",{"onUpdate:modelValue":W[12]||(W[12]=J=>p.value.role_name=J),placeholder:"nom"},null,512),[[pe,p.value.role_name]]),(F(!0),j(ie,null,ve(b.value,J=>(F(),j("div",{key:J.id,class:"flex items-center gap-2"},[x("span",null,Y(J.name),1),w(p.value,J.id)?(F(),j("span",GS," â ")):ke("",!0)]))),128))]))])])):ke("",!0)]),x("div",ZS,[x("form",{class:"form-card",onSubmit:ut(E,["prevent"])},[W[29]||(W[29]=x("h2",null,"Créer une agence",-1)),x("div",qS,[W[27]||(W[27]=x("label",null,"Nom",-1)),fe(x("input",{type:"text","onUpdate:modelValue":W[13]||(W[13]=J=>i.value.nom=J),placeholder:"Ex: Agence du parc",required:""},null,512),[[pe,i.value.nom]])]),x("div",JS,[W[28]||(W[28]=x("label",null,"Adresse",-1)),fe(x("input",{type:"text","onUpdate:modelValue":W[14]||(W[14]=J=>i.value.adresse=J),placeholder:"Ex: 12 rue Berteaux Dumas",required:""},null,512),[[pe,i.value.adresse]])]),W[30]||(W[30]=x("button",{type:"submit"}
27,"Créer",-1))],32)])],64)}}},YS={__name:"AdminView",setup(t){const e=K(""),r=K(""),i=rn();qe(async()=>{const f=await be.get("/profile");e.value=f.data.message,r.value=f.data.staff});function u(){localStorage.removeItem("token"),i.push("/")}return(f,d)=>(F(),j(ie,null,[x("div",null,[d[0]||(d[0]=x("h2",null,"AdminView",-1)),x("p",null,Y(e.value),1),x("p",null,Y(r.value),1),x("button",{onClick:u},"Logout")]),x("main",null,[se(XS),se(yn)])],64))}},KS={class:"topbar_nav"},QS={__name:"InterimView",setup(t){const e=useAuthStore();console.log("USER:",e.user);const r=[{name:"Badgeuses",path:"/badgeuses"},{name:"Home1",path:"/"},{name:"PAGEINTERIMGestion",path:"/admin",roles:["admin"],children:[{name:"Intro",path:"admin",component:About},{name:"Intro",path:"admin",component:About}]},{name:"Users3",path:"/users",permissions:["manage_users"],children:["insert agences","News"]},{name:"Condition4",path:"/condition4",roles:["danseur"],children:["Intro","News"]}];return(i,u)=>{const f=ct("RouterLink"),d=ct("v-for"),l=ct("router-view");return F(),j(ie,null,[u[1]||(u[1]=x("head",null,null,-1)),x("main",null,[u[0]||(u[0]=x("h2",null,"Interim",-1)),x("ul",KS,[(F(),j(ie,null,ve(r,o=>se(d,{key:o.path},{default:Ce(()=>[se(f,{to:o.path},{default:Ce(()=>[Te(" nbnbn "+Y(o.name),1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(o.children,n=>(F(),j("li",{key:n},Y(n),1))),128))])]),_:2},1024)),64))]),se(l),se(yn)])],64)}}},eC={__name:"ManagerView",setup(t){const e=K(""),r=K(""),i=rn();qe(async()=>{const f=await be.get("/profile");e.value=f.data.message,r.value=f.data.staff});function u(){localStorage.removeItem("token"),i.push("/")}return(f,d)=>(F(),j("div",null,[d[0]||(d[0]=x("h2",null,"ManagerView",-1)),x("p",null,Y(e.value),1),x("p",null,Y(r.value),1),x("button",{onClick:u},"Logout")]))}},tC={};function nC(t,e){const r=ct("router-link");return F(),j("div",null,[e[1]||(e[1]=x("h1",null,"403 - Forbidden",-1)),e[2]||(e[2]=x("p",null,"You do not have permission to access this page.",-1)),se(r,{to:"/dashboard"},{default:Ce(()=>[...e[0]||(e[0]=[Te("Go back",-1)])]),_:1})])}const rC=Ih(tC,[["render",nC]]),iC={class:"topbar container"},sC={class:"topbar_top"},oC={key:0},aC={class:"mobile-menu mobile-menu_header"},lC={class:"mobile-menu_nav"},cC={class:"topbar"},uC={class:"topbar_nav"},dC={class:"field1"},fC=["value"],hC={class:"container-form"},pC={class:"field"},mC={class:"field"},gm={__name:"TheInsertAg",setup(t){const e=K([]),r=K([]),i=K({nom:"",adresse:""}),u=nn();console.log("USER:",u.user);const f=[{name:"Badgeuses",path:"/badgeuses"},{name:"Home1",path:"/"},{name:"Interim",path:"/admin",roles:["admin"],children:[{name:"Missions",path:"/insertMissions"},{name:"Intérimaires",path:"/insertInterimaires"},{name:"Timesheets",path:"/insertTimesheets"},{name:"Agences",path:"/insertAgences"},{name:"Sous-lien gestion2",path:"interim"}]},{name:"Interim",path:"/interim",permissions:["manage_users"],children:["insert agences","News"]},{name:"Condition4",path:"/condition4",roles:["danseur"],children:["Intro","News"]}],d=we(()=>f.filter(n=>{if(!n.roles&&!n.permissions)return!0;const p=u.user?.roles||[];console.log("ROLES are :",p);const a=u.user?.permissions||[];return console.log("PERMS:",a),console.log("CHECK manage_users:",a.includes("manage_users")),!(n.roles&&!n.roles.some(m=>p.includes(m))||n.permissions&&!n.permissions.every(m=>a.includes(m)))})),l=K(!1),o=async()=>{try{const n=await be.post("/insertagences",i.value,{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});console.log("Agence créée :",n.data),alert("Agence créée !"),i.value={nom:"",adresse:""}}catch(n){console.error(n)}};return qe(()=>{}),(n,p)=>{const a=ct("RouterLink");return F(),j(ie,null,[p[29]||(p[29]=nt('<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Pretium</title><link rel="preconnect" href="https://fonts.bunny.net"><link href="https://fonts.bunny.net/css?family=montserrat:400,500,600,700,800" rel="stylesheet"><link rel="stylesheet" href="../css/style.css"></head>',1)),x("header",iC,[x("div",sC,[x("button",{class:"btn-icon",onClick:p[
270]||(p[0]=m=>l.value=!l.value)},[...p[11]||(p[11]=[x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19.5 13.9"},[x("g",{fill:"currentColor","fill-rule":"evenodd"},[x("path",{d:"M0 .8C0 .3.3 0 .8 0h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 .7ZM0 7c0-.5.3-.8.8-.8h18a.8.8 0 0 1 0 1.5H.8a.8.8 0 0 1-.8-.8ZM0 13.1c0-.4.3-.7.8-.7h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 13Z"})])],-1)])]),l.value?(F(),j("div",oC,[x("div",aC,[x("ul",lC,[(F(!0),j(ie,null,ve(d.value,m=>(F(),j("li",{key:m.path},[se(a,{to:m.path},{default:Ce(()=>[Te(" mob "+Y(m.name)+" | ",1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(m.children,h=>(F(),j("li",{key:h},[se(a,{to:h.path},{default:Ce(()=>[Te(Y(h.name),1)]),_:2},1032,["to"])]))),128))])]))),128))]),x("button",{class:"btn-icon",onClick:p[1]||(p[1]=m=>l.value=!l.value)},"Fermer")])])):ke("",!0),p[12]||(p[12]=nt('<a href="index.html" class="topbar_logo"><img src="'+Bn+'" alt="Logo Pretium" width="148" height="43"></a><div class="topbar_right"><form action="" class="topbar_search"><input type="search" placeholder="Rechercher un produit, une marque..." aria-label="Rechercher un produit, une marque..."></form><div class="topbar_actions"><a href="/logout" class="btn-bordered-grey"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 26 26"><g fill="currentColor" fill-rule="evenodd"><path d="M13 1.2A5.8 5.8 0 1 0 18.8 7c0-3.2-2.6-5.8-5.8-5.8ZM9.2 7a3.8 3.8 0 1 1 7.6 0 3.8 3.8 0 0 1-7.6 0Z"></path><path d="M19.2 15a10.9 10.9 0 0 0-6-1.7 11 11 0 0 0-6 1.6c-1.5 1-2.4 2.5-2.4 4 0 1.6.9 3 2.4 4 1.7 1.2 3.9 1.7 6 1.7s4.3-.5 6-1.6c1.5-1 2.4-2.5 2.4-4 0-1.6-1-3-2.4-4ZM6.8 19c0-.8.4-1.7 1.5-2.4a9 9 0 0 1 4.9-1.3c1.8 0 3.6.4 4.8 1.3 1.1.7 1.6 1.6 1.6 2.3 0 .8-.5 1.7-1.6 2.4-1.2.9-3 1.3-4.8 1.3-1.8 0-3.6-.4-4.9-1.3-1-.7-1.5-1.6-1.5-2.3Z"></path></g></svg> Se déconnecter </a> <button class="btn-icon" title="12Fermer le menu"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 13.4 13.4"><g fill="currentColor" fill-rule="evenodd"><path d="M.5.5c.3-.3.8-.3 1 0L13 11.8a.7.7 0 0 1-1 1.1L.4 1.6a.7.7 0 0 1 0-1Z"></path><path d="M12.9.5c.3.3.3.8 0 1L1.6 13a.7.7 0 0 1-1-1L11.7.4c.3-.3.8-.3 1.1 0Z"></path></g></svg></button></div></div>',2))]),x("div",cC,[x("ul",uC,[(F(!0),j(ie,null,ve(d.value,m=>(F(),j("li",{key:m.path},[se(a,{to:m.path},{default:Ce(()=>[Te(Y(m.name),1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(m.children,h=>(F(),j("li",{key:h},[se(a,{to:h.path},{default:Ce(()=>[Te(Y(h.name),1)]),_:2},1032,["to"])]))),128))])]))),128))])])]),x("div",null,[p[22]||(p[22]=x("h2",null,"TheInsertAg Liste des agences existantes",-1)),x("ul",null,[(F(!0),j(ie,null,ve(e.value,m=>(F(),j("li",{key:m.agence_id},Y(m.agence_id)+" - "+Y(m.nom)+"- "+Y(m.adresse),1))),128))]),p[23]||(p[23]=x("h2",null,"Créer une agence",-1)),x("form",{onSubmit:ut(o,["prevent"]),class:""},[x("div",dC,[p[13]||(p[13]=x("label",null,"Adresse :",-1)),fe(x("input",{type:"text","onUpdate:modelValue":p[2]||(p[2]=m=>i.value.adresse=m)},null,512),[[pe,i.value.adresse]])]),p[14]||(p[14]=x("label",null,"Adresse :",-1)),fe(x("input",{type:"text","onUpdate:modelValue":p[3]||(p[3]=m=>i.value.adresse=m)},null,512),[[pe,i.value.adresse]]),p[15]||(p[15]=x("button",{type:"submit"},"Créer",-1))],32),p[24]||(p[24]=x("h2",null,"Créer une mission",-1)),x("form",{onSubmit:p[8]||(p[8]=ut((...m)=>n.createMission&&n.createMission(...m),["prevent"]))},[p[17]||(p[17]=x("label",null,"Mission :",-1)),fe(x("select",{"onUpdate:modelValue":p[4]||(p[4]=m=>i.value.mission_id=m),required:""},[p[16]||(p[16]=x("option",{disabled:"",value:""},"Choisir une mission",-1)),(F(!0),j(ie,null,ve(r.value,m=>(F(),j("option",{key:m.mission_id,value:m.mission_id},Y(m.nom),9,fC))),128))],512),[[gn,i.value.mission_id]]),p[18]||(p[18]=x("label",null,"Date :",-1)),fe(x("input",{type:"date","onUpdate:modelValue":p[5]||(p[5]=m=>i.value.date=m),required:""},null,512),[[pe,i.value.date]]),p[19]||(p[19]=x("label",null,"Heure début :",-1)),fe(x("input",{type:"time","onUpdate:modelValue":p[6]||(p[6]=m=>i.value.heure_debut=m),required:""},null,512),[[pe,i.value.heure_debut]]),p[20]||(p[20]=x("label",null,"Heure fin :",-1)),fe(x("input",{type:"time","onUpdate:modelValue":p[7]||(p[7]=m=>i.value.heure_fin=m),required:""},null,512),[[pe,i.value.heure_fin]]),p[21]||(p[21]=x("button",{type:"submit"}
27,"Créer",-1))],32)]),x("div",hC,[x("form",{class:"form-card",onSubmit:ut(o,["prevent"])},[p[27]||(p[27]=x("h2",null,"Créer une agence",-1)),x("div",pC,[p[25]||(p[25]=x("label",null,"Nom",-1)),fe(x("input",{type:"text","onUpdate:modelValue":p[9]||(p[9]=m=>i.value.nom=m),placeholder:"Ex: Agence du parc",required:""},null,512),[[pe,i.value.nom]])]),x("div",mC,[p[26]||(p[26]=x("label",null,"Adresse",-1)),fe(x("input",{type:"text","onUpdate:modelValue":p[10]||(p[10]=m=>i.value.adresse=m),placeholder:"Ex: 12 rue Berteaux Dumas",required:""},null,512),[[pe,i.value.adresse]])]),p[28]||(p[28]=x("button",{type:"submit"},"Créer",-1))],32)])],64)}}},vC={__name:"InsertAgencesView",setup(t){const e=K(""),r=K(""),i=rn();qe(async()=>{const f=await be.get("/profile");e.value=f.data.message,r.value=f.data.staff,console.log("MESSAGE VAUT:",e)});function u(){localStorage.removeItem("token"),i.push("/")}return(f,d)=>{const l=ct("router-view");return F(),j(ie,null,[x("div",null,[d[0]||(d[0]=x("h2",null,"Insertagences1630",-1)),x("p",null,Y(e.value),1),x("p",null,Y(r.value),1),x("button",{onClick:u},"Logout")]),x("main",null,[se(l),se(gm),se(yn)])],64)}}},gC={lang:"fr"},bC={class:"topbar container"},yC={class:"topbar_top"},_C={key:0},wC={class:"mobile-menu mobile-menu_header"},xC={class:"mobile-menu_nav"},SC={class:"topbar"},CC={class:"topbar_nav"},EC={__name:"InsertMissionsView",setup(t){const e=K(""),r=K(""),i=rn();qe(async()=>{const n=await be.get("/profile");e.value=n.data.message,r.value=n.data.staff});function u(){localStorage.removeItem("token"),i.push("/")}const f=nn();console.log("USER:",f.user);const d=[{name:"Badgeuses",path:"/badgeuses"},{name:"Home1",path:"/"},{name:"Interim",path:"/admin",roles:["admin"],children:[{name:"Missions",path:"/insertMissions"},{name:"Intérimaires",path:"/insertInterimaires"},{name:"Timesheets",path:"/insertTimesheets"},{name:"Agences",path:"/insertAgences"},{name:"Sous-lien gestion2",path:"interim",component:pp}]},{name:"Interim",path:"/interim",permissions:["manage_users"],children:["insert agences","News"]},{name:"Condition4",path:"/condition4",roles:["danseur"],children:["Intro","News"]}],l=we(()=>d.filter(n=>{if(!n.roles&&!n.permissions)return!0;const p=f.user?.roles||[];console.log("ROLES are :",p);const a=f.user?.permissions||[];return console.log("PERMS:",a),console.log("CHECK manage_users:",a.includes("manage_users")),!(n.roles&&!n.roles.some(m=>p.includes(m))||n.permissions&&!n.permissions.every(m=>a.includes(m)))})),o=K(!1);return(n,p)=>{const a=ct("RouterLink");return F(),j(ie,null,[x("html",gC,[p[5]||(p[5]=nt('<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Pretium</title><link rel="preconnect" href="https://fonts.bunny.net"><link href="https://fonts.bunny.net/css?family=montserrat:400,500,600,700,800" rel="stylesheet"><link rel="stylesheet" href="../css/style.css"></head>',1)),x("header",bC,[x("div",yC,[x("button",{class:"btn-icon",onClick:p[0]||(p[0]=m=>o.value=!o.value)},[...p[2]||(p[2]=[x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19.5 13.9"},[x("g",{fill:"currentColor","fill-rule":"evenodd"},[x("path",{d:"M0 .8C0 .3.3 0 .8 0h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 .7ZM0 7c0-.5.3-.8.8-.8h18a.8.8 0 0 1 0 1.5H.8a.8.8 0 0 1-.8-.8ZM0 13.1c0-.4.3-.7.8-.7h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 13Z"})])],-1)])]),o.value?(F(),j("div",_C,[x("div",wC,[x("ul",xC,[(F(!0),j(ie,null,ve(l.value,m=>(F(),j("li",{key:m.path},[se(a,{to:m.path},{default:Ce(()=>[Te(" 22nbnbn "+Y(m.name)+" | ",1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(m.children,h=>(F(),j("li",{key:h},[se(a,{to:h.path},{default:Ce(()=>[Te(" nbnbn "+Y(h.name),1)]),_:2},1032,["to"])]))),128))])]))),128))]),x("button",{class:"btn-icon",onClick:p[1]||(p[1]=m=>o.value=!o.value)},"Fermer")])])):ke("",!0),p[3]||(p[3]=nt('<a href="index.html" class="topbar_logo"><img src="'+Bn+'" alt="Logo Pretium" width="148" height="43"></a><div class="topbar_right"><form action="" class="topbar_search"><input type="search" placeholder="Rechercher un produit, une marque..." aria-label="Rechercher un produit, une marque..."></form><div class="topbar_actions"><a href="/logout" class="btn-bordered-grey"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 26 26"><g fill="currentColor" fill-rule="evenodd"><path d="M13 1.2A5.8 5.8 0 1 0 18.8 7c0-3.2-2.6-5.8-5.8-5.8ZM9.2 7a3.8 3.8 0 1 1 7.6 0 3.8 3.8 0 0 1-7.6 0Z"></path><path d="M19.2 15a10.9 10.9 0 0 0-6-1.7 11 11 0 0 0-6 1.6c-1.5 1-2.4 2.5-2.4 4 0 1.6.9 3 2.4 4 1.7 1.2 3.9 1.7 6 1.7s4.3-.5 6-1.6c1.5-1 2.4-2.5 2.4-4 0-1.6-1-3-2.4-4ZM6.8 19c0-.8.4-1.7 1.5-2.4a9 9 0 0 1 4.9-1.3c1.8 0 3.6.4 4.8 1.3 1.1.7 1.6 1.6 1.6 2.3 0 .8-.5 1.7-1.6 2.4-1.2.9-3 1.3-4.8 1.3-1.8 0-3.6-.4-4.9-1.3-1-.7-1.5-1.6-1.5-2.3Z"></path></g></svg> Se déconnecter </a> <button class="btn-icon" title="12Fermer le menu"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 13.4 13.4"><g fill="currentColor" fill-rule="evenodd"><path d="M.5.5c.3-.3.8-.3 1 0L13 11.8a.7.7 0 0 1-1 1.1L.4 1.6a.7.7 0 0 1 0-1Z"></path><path d="M12.9.5c.3.3.3.8 0 1L1.6 13a.7.7 0 0 1-1-1L11.7.4c.3-.3.8-.3 1.1 0Z"></path></g></svg></button></div></div>',2))]),x("div",SC,[x("ul",CC,[(F(!0),j(ie,null,ve(l.value,m=>(F(),j("li",{key:m.path},[se(a,{to:m.path},{default:Ce(()=>[Te(" nbnbn "+Y(m.name),1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(m.children,h=>(F(),j("li",{key:h},[se(a,{to:h.path},{default:Ce(()=>[Te(" nbnbn "+Y(h.name),1)]),_:2},1032,["to"])]))),128))])]))),128))])])]),x("main",null,[p[4]||(p[4]=x("h2",null,"Insertagences1630",-1)),x("p",null,Y(e.value),1),x("p",null,Y(r.value),1)])]),x("button",{onClick:u},"Logout"),x("main",null,[se(gm),se(yn)])],64)}}},TC={class:"topbar container"},kC={class:"topbar_top"},AC={key:0},MC={class:"mobile-menu mobile-menu_header"},NC={class:"mobile-menu_nav"},RC={class:"topbar"},IC={class:"topbar_nav"},OC={class:"agence-list"},HC={class:"search-box"},LC={class:"agence-list"},UC={class:"agence-info"},BC={class:"actions"},DC=["onClick"],VC=["onClick"],FC=["onClick"],jC=["onClick"],zC={class:"pagination"},$C=["disabled"],WC=["disabled"],PC={class:"dark-toggle"},GC={class:"modal"},ZC={key:0},qC={key:1},JC={class:"modal-actions"},XC={key:0},YC={key:1,class:"modal"},KC=["onClick"],QC={key:0},eE={class:"container-form"},tE={class:"field"},nE={class:"field"},rE={__name:"TheCRUDStaffs",setup(t){const e=K([]),r=K([]),i=K({nom:"",adresse:""}),u=K(null),f=K(null),d=K(""),l=K(1),o=K(3),n=K(!1),p=K([]),a=K([]),m=K(!1),h=async()=>{const z=await be.get("/roles");p.value=z.data.map(A=>({id:A.role_id,name:A.role_name,permissions:A.permissions}))},b=z=>a.value.includes(z),s=z=>{b(z)?a.value=a.value.filter(A=>A!==z):a.value.push(z)},c=async()=>{const z=u.value?.staff_id;console.log("STAFF ID:",z),await be.post(`/staffs/${z}/roles`,{roles:a.value})},v=async()=>{try{const z=await be.get("/agences",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});e.value=z.data,console.log("agences il y a ceci",e.value)}catch(z){console.error(z)}},g=async()=>{try{const z=await be.get("/staffs",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});r.value=z.data,console.log("staffs il y a ceci",r.value)}catch(z){console.error(z)}},y=async()=>{try{const z=localStorage.getItem("token"),A=await be.put(`/updatestaffs/${u.value.staff_id}`,u.value,{headers:{"Content-Type":"application/json",...z&&{Authorization:`Bearer ${z}`}}});return console.log(A.status,A.ok),await g(),console.log("staff updaté :",A.data),alert("Staff updaté !"),A}catch(z){throw console.error("Erreur lors de la maj de l staff",z),z}},_=async()=>{try{const z=localStorage.getItem("token"),A=await be.put(`/deletestaffs/${u.value.staff_id}`,u.value,{headers:{"Content-Type":"application/json",...z&&{Authorization:`Bearer ${z}`}}});return console.log(A.status,A.ok),await g(),console.log("Staff supprimé :",A.data),alert("Staff supprimé !"),A}catch(z){throw console.error("Erreur lors de la supression du staff",z),z}},w=nn();console.log("USERTheInsertTest:",w.user);const S=[{name:"DURP",path:"/crudDurpView",roles:["admin"],children:[{name:"Accès par risque",path:"/crudDurpView"},{name:"Suivi",path:"/crudDurpView"}]},{name:"Interim/Vacataire",path:"/admin",roles:["admin"],children:[{name:"Agences",path:"/crudAgencesView"},{name:"Missions",path:"/crudMissionsView"},{name:"Staffs",path:"/crudStaffsView"},{name:"Timesheets",path:"/crudTimesheetsView"}]},{name:"DDADUE",path:"/crudDdadueView",roles:["admin"],children:[{name:"Calcul",path:"/crudDdadueView"},{name:"Suivi communication",path:"/crudDdadueView"}]},{name:"GTA",path:"/condition4",roles:["admin"],children:[{name:"Plannings",path:"crudPlanningsView"},{name:"Badges",path:"crudBadgesView"},{name:"Feuilles de temps",path:"crudTimesheetsView"},{name:"Admin",path:"crudStaffsView"}]}],E=we(()=>S.filter(z=>{if(!z.roles&&!z.permissions)return!0;const A=w.user?.roles||[];console.log("ROLES are :",A);const X=w.user?.permissions||[];return console.log("PERMS:",X),console.log("CHECK manage_users:",X.includes("manage_users")),!(z.roles&&!z.roles.some(G=>A.includes(G))||z.permissions&&!z.permissions.every(G=>X.includes(G)))})),T=K(!1),C=we(()=>r.value.filter(z=>z.staff_lastname.toLowerCase().includes(d.value.toLowerCase()))),N=we(()=>(l.value-1)*o.value),B=we(()=>N.value+o.value),M=we(()=>C.value.slice(N.value,B.value));function L(z){f.value=null,u.value={...z}}function I(){f.value="true",u.value=null}function $(z){f.value="true",u.value={...z}}function O(z){confirm("Supprimer ?")&&(r.value=r.value.filter(A=>
27A.staff_id!==r.staff_id),u.value={...z},_())}const H=async z=>{u.value=z;const A=await be.get(`/staffs/${z.staff_id}/roles`);a.value=A.data.map(X=>X.id),m.value=!0};function D(){l.value++}function R(){l.value--}return Lt(n,z=>{document.body.classList.toggle("dark",z)}),qe(()=>{v(),g(),h()}),(z,A)=>{const X=ct("RouterLink");return F(),j(ie,null,[A[24]||(A[24]=nt('<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Pretium</title><link rel="preconnect" href="https://fonts.bunny.net"><link href="https://fonts.bunny.net/css?family=montserrat:400,500,600,700,800" rel="stylesheet"><link rel="stylesheet" href="../css/style.css"></head>',1)),x("header",TC,[x("div",kC,[x("button",{class:"btn-icon",onClick:A[0]||(A[0]=G=>T.value=!T.value)},[...A[14]||(A[14]=[x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19.5 13.9"},[x("g",{fill:"currentColor","fill-rule":"evenodd"},[x("path",{d:"M0 .8C0 .3.3 0 .8 0h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 .7ZM0 7c0-.5.3-.8.8-.8h18a.8.8 0 0 1 0 1.5H.8a.8.8 0 0 1-.8-.8ZM0 13.1c0-.4.3-.7.8-.7h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 13Z"})])],-1)])]),T.value?(F(),j("div",AC,[x("div",MC,[x("ul",NC,[(F(!0),j(ie,null,ve(E.value,G=>(F(),j("li",{key:G.path},[se(X,{to:G.path},{default:Ce(()=>[Te(" mob "+Y(G.name)+" | ",1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(G.children,ce=>(F(),j("li",{key:ce},[se(X,{to:ce.path},{default:Ce(()=>[Te(Y(ce.name),1)]),_:2},1032,["to"])]))),128))])]))),128))]),x("button",{class:"btn-icon",onClick:A[1]||(A[1]=G=>T.value=!T.value)},"Fermer")])])):ke("",!0),A[15]||(A[15]=nt('<a href="index.html" class="topbar_logo"><img src="'+Bn+'" alt="Logo Pretium" width="148" height="43"></a><div class="topbar_right"><form action="" class="topbar_search"><input type="search" placeholder="Rechercher un produit, une marque..." aria-label="Rechercher un produit, une marque..."></form><div class="topbar_actions"><a href="/logout" class="btn-bordered-grey"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 26 26"><g fill="currentColor" fill-rule="evenodd"><path d="M13 1.2A5.8 5.8 0 1 0 18.8 7c0-3.2-2.6-5.8-5.8-5.8ZM9.2 7a3.8 3.8 0 1 1 7.6 0 3.8 3.8 0 0 1-7.6 0Z"></path><path d="M19.2 15a10.9 10.9 0 0 0-6-1.7 11 11 0 0 0-6 1.6c-1.5 1-2.4 2.5-2.4 4 0 1.6.9 3 2.4 4 1.7 1.2 3.9 1.7 6 1.7s4.3-.5 6-1.6c1.5-1 2.4-2.5 2.4-4 0-1.6-1-3-2.4-4ZM6.8 19c0-.8.4-1.7 1.5-2.4a9 9 0 0 1 4.9-1.3c1.8 0 3.6.4 4.8 1.3 1.1.7 1.6 1.6 1.6 2.3 0 .8-.5 1.7-1.6 2.4-1.2.9-3 1.3-4.8 1.3-1.8 0-3.6-.4-4.9-1.3-1-.7-1.5-1.6-1.5-2.3Z"></path></g></svg> Se déconnecter </a> <button class="btn-icon" title="12Fermer le menu"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 13.4 13.4"><g fill="currentColor" fill-rule="evenodd"><path d="M.5.5c.3-.3.8-.3 1 0L13 11.8a.7.7 0 0 1-1 1.1L.4 1.6a.7.7 0 0 1 0-1Z"></path><path d="M12.9.5c.3.3.3.8 0 1L1.6 13a.7.7 0 0 1-1-1L11.7.4c.3-.3.8-.3 1.1 0Z"></path></g></svg></button></div></div>',2))]),x("div",RC,[x("ul",IC,[(F(!0),j(ie,null,ve(E.value,G=>(F(),j("li",{key:G.path},[se(X,{to:G.path},{default:Ce(()=>[Te(Y(G.name),1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(G.children,ce=>(F(),j("li",{key:ce},[se(X,{to:ce.path},{default:Ce(()=>[Te(Y(ce.name),1)]),_:2},1032,["to"])]))),128))])]))),128))])])]),x("div",null,[x("div",OC,[A[19]||(A[19]=x("h2",{class:"title"},"Liste des staffs",-1)),x("div",HC,[fe(x("input",{"onUpdate:modelValue":A[2]||(A[2]=G=>d.value=G),placeholder:"Rechercher un staff..."},null,512),[[pe,d.value]])]),x("div",LC,[se(Ar,{name:"fade",tag:"div"},{default:Ce(()=>[(F(!0),j(ie,null,ve(M.value,G=>(F(),j("div",{class:"agence-card",key:G.staff_id},[x("div",UC,[x("h3",null,Y(G.staff_civ)+" "+Y(G.staff_firstname)+" "+Y(G.staff_lastname),1),x("p",null,"ID: "+Y(G.staff_id),1),x("p",null,Y(G.matricule_payroll),1)]),x("div",BC,[x("button",{class:"btn read",onClick:ce=>L(G)},"ð",8,DC),x("button",{class:"btn update",onClick:ce=>$(G)},"â",8,VC),x("button",{class:"btn delete",onClick:ce=>O(G)},"ð",8,FC),x("button",{class:"btn",onClick:ce=>H(G)},"ð",8,jC)])]))),128))]),_:1})]),x("div",zC,[x("button",{onClick:R,disabled:l.value===1},"â¬
",8,$C),x("span",null,"Page "+Y(l.value),1),x("button",{onClick:D,disabled:B.value>=C.value.length},"â¡",8,WC)]),x("div",PC,[x("button",{onClick:A[3]||(A[3]=G=>n.value=!n.value)},Y(n.value?"â Mode clair":"ð Mode sombre"),1)]),u.value?(F(),j("div",{key:0,class:"modal-overlay",onClick:ut(I,["self"])},[x("div",GC,[f.value?(F(),j("div",ZC,[...A[16]||(A[16]=[x("h3",null,"Modifier données de la personne",-1)])])):(F(),j("div",qC,[...A[17]||(A[17]=[x("h3",null,"Consulter données de la personne",-1)])])),fe(x("input",{"onUpdate:modelValue":A[4]||(A[4]=G=>u.value.staff_civ=G),placeholder:"civ"},null,512),[[pe,u.value.staff_civ]]),fe(x("input",{"onUpdate:modelValue":A[5]||(A[5]=G=>u.value.staff_firstname=G),placeholder:"firstname"},null,512),[[pe,u.value.staff_firstname]]),fe(x("input",{"onUpdate:modelValue":A[6]||(A[6]=G=>u.value.staff_lastname=G),placeholder:"lastname"},null,512),[[pe,u.value.staff_lastname]]),fe(x("input",{"onUpdate:modelValue":A[7]||(A[7]=G=>u.value.staff_email=G),placeholder:"email"},null,512),[[pe,u.value.staff_email]]),fe(x("input",{"onUpdate:modelValue":A[8]||(A[8]=G=>u.value.staff_matricule_user=G),placeholder:"matricule_user"},null,512),[[pe,u.value.staff_matricule_user]]),fe(x("input",{"onUpdate:modelValue":A[9]||(A[9]=G=>u.value.staff_matricule_payroll=G),placeholder:"matricule_payroll"},null,512),[[pe,u.value.staff_matricule_payroll]]),fe(x("input",{"onUpdate:modelValue":A[10]||(A[10]=G=>u.value.staff_category=G),placeholder:"category"},null,512),[[pe,u.value.staff_category]]),x("div",JC,[f.value?(F(),j("div",XC,[x("button",{class:"btn save",onClick:y},"ð¾ Sauver")])):ke("",!0),x("button",{class:"btn close",onClick:I},"â Fermer")])])])):ke("",!0),m.value?(F(),j("div",YC,[A[18]||(A[18]=x("h3",null,"Rôles du staff",-1)),(F(!0),j(ie,null,ve(p.value,G=>(F(),j("div",{key:G.id,onClick:ce=>
27s(G.id),class:hn(["cursor-pointer p-3 border rounded flex justify-between",b(G.id)?"bg-blue-600 text-white":""])},[x("span",null,Y(G.name),1),b(G.id)?(F(),j("span",QC,"â")):ke("",!0)],10,KC))),128)),x("button",{onClick:c},"Save")])):ke("",!0)])]),x("div",eE,[x("form",{class:"form-card",onSubmit:A[13]||(A[13]=ut((...G)=>z.createStaff&&z.createStaff(...G),["prevent"]))},[A[22]||(A[22]=x("h2",null,"Enregistrer un nouvel employé",-1)),x("div",tE,[A[20]||(A[20]=x("label",null,"Nom",-1)),fe(x("input",{type:"text","onUpdate:modelValue":A[11]||(A[11]=G=>i.value.nom=G),placeholder:"Ex: Agence du parc",required:""},null,512),[[pe,i.value.nom]])]),x("div",nE,[A[21]||(A[21]=x("label",null,"Adresse",-1)),fe(x("input",{type:"text","onUpdate:modelValue":A[12]||(A[12]=G=>i.value.adresse=G),placeholder:"Ex: 12 rue Berteaux Dumas",required:""},null,512),[[pe,i.value.adresse]])]),A[23]||(A[23]=x("button",{type:"submit"},"Créer",-1))],32)])],64)}}},iE={class:"header"},sE={class:"user-info"},oE={__name:"CrudStaffsView",setup(t){const e=K(""),r=K(""),i=K("");return rn(),qe(async()=>{const u=await be.get("/profile");e.value=u.data.message,r.value=u.data.staff,i.value="[email protected]"}),(u,f)=>(F(),j(ie,null,[x("div",null,[x("div",iE,[f[0]||(f[0]=x("h2",null,"PFP",-1)),x("div",sE,[x("p",null,"Connecté avec l'email "+Y(i.value),1)])])]),x("main",null,[se(rE),se(yn)])],64))}},aE={class:"topbar container"},lE={class:"topbar_top"},cE={key:0},uE={class:"mobile-menu mobile-menu_header"},dE={class:"mobile-menu_nav"},fE={class:"topbar"},hE={class:"topbar_nav"},pE={class:"agence-list"},mE={class:"search-box"},vE={class:"agence-list"},gE={class:"agence-info"},bE={class:"actions"},yE=["onClick"],_E=["onClick"],wE=["onClick"],xE={class:"pagination"},SE=["disabled"],CE=["disabled"],EE={class:"dark-toggle"},TE={class:"modal"},kE={key:0},AE={key:1},ME={class:"modal-actions"},NE={key:0},RE={class:"container-form"},IE={class:"field"},OE={class:"agence-info"},HE=["value"],LE={class:"field"},UE={class:"agence-info"},BE=["value"],DE={class:"field"},VE={class:"field"},FE=["min"],jE={key:0,style:{color:"red"}},zE={class:"field"},$E={class:"field"},WE=["disabled"],PE={__name:"TheCRUDMissions",setup(t){const e=K([]),r=K([]),i=K([]),u=K({nom:"",adresse:""}),f=K(null),d=K(null),l=K(""),o=K(1),n=K(3),p=K(!1),a=async()=>{try{const O=await be.get("/agences",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});e.value=O.data,console.log("agences il y a ceci",e.value)}catch(O){console.error(O)}},m=async()=>{try{const O=await be.get("/staffs",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i.value=O.data,console.log("staffs il y a ceci",i.value)}catch(O){console.error(O)}},h=async()=>{try{const O=await be.get("/missions",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});r.value=O.data}catch(O){console.error(O)}},b=async()=>{try{const O={staff_id:I.staff_id,agence_id:I.agence_id,date_debut:I.date_debut,date_fin:I.date_fin,poste:I.poste,taux_horaire:I.taux_horaire};console.log("Payload",O);const H=localStorage.getItem("token"),D=await be.post("/insertmissions",O,{headers:{"Content-Type":"application/json",...H&&{Authorization:`Bearer ${H}`}}});return console.log(D.status,D.ok),await h(),console.log("Mission créée :",D.data),alert("Mission créée !"),I.value={staff_id:"",agence_id:"",poste:"",taux_horaire:""},D}catch(O){throw console.error("Erreur lors de la création de l agence",O),O}},s=async()=>{try{const O=localStorage.getItem("token"),H=await be.put(`/deletemissions/${f.value.mission_id}`,f.value,{headers:{"Content-Type":"application/json",...O&&{Authorization:`Bearer ${O}`}}});return console.log(H.status,H.ok),await a(),console.log("Mission supprimée :",H.data),alert("Mission supprimée !"),H}catch(O){throw console.error("Erreur lors de la supression de la mission",O),O}},c=nn();console.log("USERTheInsertTest:",c.user);const v=[{name:"DURP",path:"/crudDurpView",roles:["admin"],children:[{name:"Accès par risque",path:"/crudDurpView"},{name:"Suivi",path:"/crudDurpView"}]},{name:"Interim/Vacataire",path:"/admin",roles:["admin"],children:[{name:"Agences",path:"/crudAgencesView"},{name:"Missions",path:"/crudMissionsView"},{name:"Staffs",path:"/crudStaffsView"},{name:"Timesheets",path:"/crudTimesheetsView"}]},{name:"DDADUE",path:"/crudDdadueView",roles:["admin"],children:[{name:"Calcul",path:"/crudDdadueView"},{name:"Suivi communication",path:"/crudDdadueView"}]},{name:"GTA",path:"/condition4",roles:["admin"],children:[{name:"Plannings",path:"crudPlanningsView"},{name:"Badges",path:"crudBadgesView"},{name:"Feuilles de temps",path:"crudTimesheetsView"},{name:"Admin",path:"crudStaffsView"}]}],g=we(()=>v.filter(O=>{if(!O.roles&&!O.permissions)return!0;const H=c.user?.roles||[];console.log("ROLES are :",H);const D=c.user?.permissions||[];return console.log("PERMS:",D),console.log("CHECK manage_users:",D.includes("manage_users")),!(O.roles&&!O.roles.some(R=>H.includes(R))||O.permissions&&!O.permissions.every(R=>D.includes(R)))})),y=K(!1),_=we(()=>r.value.filter(O=>O.mission_id.toLowerCase().includes(l.value.toLowerCase()))),w=we(()=>(o.value-1)*n.value),S=we(()=>w.value+n.value),E=we(()=>_.value.slice(w.value,S.value));function T(O){d.value=null,f.value={...O}}function C(){d.value="true",f.value=null}function N(O){d.value="true",f.value={...O}}function B(O){confirm("Supprimer ?")&&(r.value=r.value.filter(H=>H.mission_id!==r.mission_id),f.value={...O},s())}function M(){o.value++}function L(){o.value--}Lt(p,O=>{document.body.classList.toggle("dark",O)}
27);const I=bn({date_debut:"",date_fin:""}),$=we(()=>!I.date_debut||!I.date_fin?!1:I.date_fin<=I.date_debut);return qe(()=>{a(),m(),h()}),(O,H)=>{const D=ct("RouterLink");return F(),j(ie,null,[H[32]||(H[32]=nt('<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Pretium</title><link rel="preconnect" href="https://fonts.bunny.net"><link href="https://fonts.bunny.net/css?family=montserrat:400,500,600,700,800" rel="stylesheet"><link rel="stylesheet" href="../css/style.css"></head>',1)),x("header",aE,[x("div",lE,[x("button",{class:"btn-icon",onClick:H[0]||(H[0]=R=>y.value=!y.value)},[...H[19]||(H[19]=[x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19.5 13.9"},[x("g",{fill:"currentColor","fill-rule":"evenodd"},[x("path",{d:"M0 .8C0 .3.3 0 .8 0h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 .7ZM0 7c0-.5.3-.8.8-.8h18a.8.8 0 0 1 0 1.5H.8a.8.8 0 0 1-.8-.8ZM0 13.1c0-.4.3-.7.8-.7h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 13Z"})])],-1)])]),y.value?(F(),j("div",cE,[x("div",uE,[x("ul",dE,[(F(!0),j(ie,null,ve(g.value,R=>(F(),j("li",{key:R.path},[se(D,{to:R.path},{default:Ce(()=>[Te(" mob "+Y(R.name)+" | ",1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(R.children,z=>(F(),j("li",{key:z},[se(D,{to:z.path},{default:Ce(()=>[Te(Y(z.name),1)]),_:2},1032,["to"])]))),128))])]))),128))]),x("button",{class:"btn-icon",onClick:H[1]||(H[1]=R=>y.value=!y.value)},"Fermer")])])):ke("",!0),H[20]||(H[20]=nt('<a href="index.html" class="topbar_logo"><img src="'+Bn+'" alt="Logo Pretium" width="148" height="43"></a><div class="topbar_right"><form action="" class="topbar_search"><input type="search" placeholder="Rechercher un produit, une marque..." aria-label="Rechercher un produit, une marque..."></form><div class="topbar_actions"><a href="/logout" class="btn-bordered-grey"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 26 26"><g fill="currentColor" fill-rule="evenodd"><path d="M13 1.2A5.8 5.8 0 1 0 18.8 7c0-3.2-2.6-5.8-5.8-5.8ZM9.2 7a3.8 3.8 0 1 1 7.6 0 3.8 3.8 0 0 1-7.6 0Z"></path><path d="M19.2 15a10.9 10.9 0 0 0-6-1.7 11 11 0 0 0-6 1.6c-1.5 1-2.4 2.5-2.4 4 0 1.6.9 3 2.4 4 1.7 1.2 3.9 1.7 6 1.7s4.3-.5 6-1.6c1.5-1 2.4-2.5 2.4-4 0-1.6-1-3-2.4-4ZM6.8 19c0-.8.4-1.7 1.5-2.4a9 9 0 0 1 4.9-1.3c1.8 0 3.6.4 4.8 1.3 1.1.7 1.6 1.6 1.6 2.3 0 .8-.5 1.7-1.6 2.4-1.2.9-3 1.3-4.8 1.3-1.8 0-3.6-.4-4.9-1.3-1-.7-1.5-1.6-1.5-2.3Z"></path></g></svg> Se déconnecter </a> <button class="btn-icon" title="12Fermer le menu"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 13.4 13.4"><g fill="currentColor" fill-rule="evenodd"><path d="M.5.5c.3-.3.8-.3 1 0L13 11.8a.7.7 0 0 1-1 1.1L.4 1.6a.7.7 0 0 1 0-1Z"></path><path d="M12.9.5c.3.3.3.8 0 1L1.6 13a.7.7 0 0 1-1-1L11.7.4c.3-.3.8-.3 1.1 0Z"></path></g></svg></button></div></div>',2))]),x("div",fE,[x("ul",hE,[(F(!0),j(ie,null,ve(g.value,R=>(F(),j("li",{key:R.path},[se(D,{to:R.path},{default:Ce(()=>[Te(Y(R.name),1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(R.children,z=>(F(),j("li",{key:z},[se(D,{to:z.path},{default:Ce(()=>[Te(Y(z.name),1)]),_:2},1032,["to"])]))),128))])]))),128))])])]),x("div",null,[H[24]||(H[24]=x("h2",{class:"title"},"Liste des missions",-1)),x("div",pE,[H[23]||(H[23]=x("h2",{class:"title"},"Liste des missions",-1)),x("div",mE,[fe(x("input",{"onUpdate:modelValue":H[2]||(H[2]=R=>l.value=R),placeholder:"Rechercher une mission..."},null,512),[[pe,l.value]])]),x("div",vE,[se(Ar,{name:"fade",tag:"div"},{default:Ce(()=>[(F(!0),j(ie,null,ve(E.value,R=>(F(),j("div",{class:"agence-card",key:R.mission_id},[x("div",gE,[x("h3",null,Y(R.mission_id),1),x("p",null,"ID: "+Y(R.staff_id),1)]),x("div",bE,[x("button",{class:"btn read",onClick:z=>T(R)},"ð",8,yE),x("button",{class:"btn update",onClick:z=>N(R)},"â",8,_E),x("button",{class:"btn delete",onClick:z=>B(R)},"ð",8,wE)])]))),128))]),_:1})]),x("div",xE,[x("button",{onClick:L,disabled:o.value===1},"â¬
",8,SE),x("span",null,"Page "+Y(o.value),1),x("button",{onClick:M,disabled:S.value>=_.value.length},"â¡",8,CE)]),x("div",EE,[x("button",{onClick:H[3]||(H[3]=R=>p.value=!p.value)},Y(p.value?"â Mode clair":"ð Mode sombre"),1)]),f.value?(F(),j("div",{key:0,class:"modal-overlay",onClick:ut(C,["self"])},[x("div",TE,[d.value?(F(),j("div",kE,[...H[21]||(H[21]=[x("h3",null,"Modifier données de la mission",-1)])])):(F(),j("div",AE,[...H[22]||(H[22]=[x("h3",null,"Consulter données de la mission",-1)])])),fe(x("input",{"onUpdate:modelValue":H[4]||(H[4]=R=>f.value.mission_id=R),placeholder:"mission_id"},null,512),[[pe,f.value.mission_id]]),fe(x("input",{"onUpdate:modelValue":H[5]||(H[5]=R=>f.value.staff_civ=R),placeholder:"civ"},null,512),[[pe,f.value.staff_civ]]),fe(x("input",{"onUpdate:modelValue":H[6]||(H[6]=R=>f.value.staff_firstname=R),placeholder:"firstname"},null,512),[[pe,f.value.staff_firstname]]),fe(x("input",{"onUpdate:modelValue":H[7]||(H[7]=R=>f.value.staff_lastname=R),placeholder:"lastname"},null,512),[[pe,f.value.staff_lastname]]),fe(x("input",{"onUpdate:modelValue":H[8]||(H[8]=R=>f.value.staff_email=R),placeholder:"email"},null,512),[[pe,f.value.staff_email]]),fe(x("input",{"onUpdate:modelValue":H[9]||(H[9]=R=>f.value.staff_matricule_user=R),placeholder:"matricule_user"},null,512),[[pe,f.value.staff_matricule_user]]),fe(x("input",{"onUpdate:modelValue":H[10]||(H[10]=R=>f.value.staff_matricule_payroll=R),placeholder:"matricule_payroll"},null,512),[[pe,f.value.staff_matricule_payroll]]),fe(x("input",{"onUpdate:modelValue":H[11]||(H[11]=R=>f.value.poste=R),placeholder:"FUTUR SUPER DG"},null,512),[[pe,f.value.poste]]),x("div",ME,[d.value?(F(),j("div",NE,[x("button",{class:"btn save",onClick:H[12]||(H[12]=(...R)=>O.updateMission&&O.updateMission(...R))},"ð¾ Sauver")])):ke("",!0),x("button",{class:"btn close",onClick:C},"â Fermer")])])])):ke("",!0)])]),x("div",RE,[x("form",{class:"form-card",onSubmit:ut(b,["prevent"])},[H[31]||(H[31]=x("h2",null,"Enregistrer une nouvelle mission",-1)),x("div",IE,[H[25]||(H[25]=x("label",null,"Personne concernée",-1)),x("div",OE,[fe(x("select",{class:"h-10 pl-5 pr-10 text-gray-600 bg-white border border-gray-300 rounded-lg appearance-none hover:border-gray-400 focus:outline-none","onUpdate:modelValue":H[13]||(H[13]=R=>I.staff_id=R)},[(F(!0),j(ie,null,ve(i.value,(R,z)=>(F(),j("option",{key:z,value:R.staff_id},Y(R.staff_civ)+" "+Y(R.staff_firstname)+" "+Y(R.staff_lastname),9,HE))),128))],512),[[gn,I.staff_id]])])]),x("div",LE,[H[26]||(H[26]=x("label",null,"Agence",-1)),x("div",UE,[fe(x("select",{class:"h-10 pl-5 pr-10 text-gray-600 bg-white border border-gray-300 rounded-lg appearance-none hover:border-gray-400 focus:outline-none","onUpdate:modelValue":H[14]||(H[14]=R=>I.agence_id=R)},[(F(!0),j(ie,null,ve(e.value,(R,z)=>(F(),j("option",{key:z,value:R.agence_id},Y(R.nom)+" "+Y(R.adresse),9,BE))),128))],512),[[gn,I.agence_id]])])]),x("div",DE,[H[27]||(H[27]=x("label",null,"Date de début",-1)),fe(x("input",{type:"date","onUpdate:modelValue":H[15]||(H[15]=R=>I.date_debut=R),required:""},null,512),[[pe,I.date_debut]])]),x("div",VE,[H[28]||(H[28]=x("label",null,"Date de fin",-1)),fe(x("input",{type:"date","onUpdate:modelValue":H[16]||(H[16]=R=>I.date_fin=R),min:u.value.date_debut,required:""},null,8,FE),[[pe,I.date_fin]])]),$.value?(F(),j("p",jE," La date de fin doit être postérieure à la date de début ")):ke("",!0),x("div",zE,[H[29]||(H[29]=x("label",null,"Poste",-1)),fe(x("input",{type:"text","onUpdate:modelValue":H[17]||(H[17]=R=>I.poste=R),placeholder:"infirmier"},null,512),[[pe,I.poste]])]),x("div",$E,[H[30]||(H[30]=x("label",null,"Taux horaire",-1)),fe(x("input",{type:"text","onUpdate:modelValue":H[18]||(H[18]=R=>I.taux_horaire=R),placeholder:"en euros"},null,512),[[pe,I.taux_horaire]])]),x("button",{disabled:$.value},"Valider",8,WE)],32)])],64)}}},GE={__name:"CrudMissionsView",setup(t){const e=K(""),r=K(""),i=rn();qe(async()=>{const f=await be.get("/profile");e.value=f.data.message,r.value=f.data.staff});function u(){localStorage.removeItem("token"),i.push("/")}return(f,d)=>(F(),j(ie,null,[x("div",null,[d[0]||(d[0]=x("h2",null,"AdminView",-1)),x("p",null,Y(e.value),1),x("p",null,Y(r.value),1),x("button",{onClick:u},"Logout")]),x("main",null,[se(PE),se(yn)])],64))}},ZE={class:"topbar container"},qE={class:"topbar_top"},JE={key:0},XE={class:"mobile-menu mobile-menu_header"},YE={class:"mobile-menu_nav"},KE={class:"topbar"},QE={class:"topbar_nav"},e2={class:"agence-list"},t2={class:"search-box"},n2={class:"agence-list"},r2={class:"agence-info"},i2={class:"actions"},s2=["onClick"],o2=["onClick"],a2=["onClick"],l2={class:"pagination"},c2=["disabled"],u2=["disabled"],d2={class:"dark-toggle"}
27,f2={class:"modal"},h2={key:0},p2={key:1},m2={class:"modal-actions"},v2={key:0},g2={class:"container-form"},b2={class:"field"},y2={class:"agence-info"},_2=["value"],w2={class:"field"},x2={class:"agence-info"},S2=["value"],C2={class:"field"},E2={class:"field"},T2=["min"],k2={key:0,style:{color:"red"}},A2={class:"field"},M2={class:"field"},N2=["disabled"],R2={__name:"TheCRUDPlannings",setup(t){const e=K([]),r=K([]),i=K([]),u=K([]),f=K({nom:"",adresse:""}),d=K(null),l=K(null),o=K(null),n=K(""),p=K(1),a=K(3),m=K(!1),h=async()=>{try{const D=await be.get("/agences",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});e.value=D.data,console.log("agences il y a ceci",e.value)}catch(D){console.error(D)}},b=async()=>{try{const D=await be.get("/staffs",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i.value=D.data,console.log("staffs il y a ceci",i.value)}catch(D){console.error(D)}},s=async()=>{try{const D=await be.get("/missions",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});r.value=D.data}catch(D){console.error(D)}},c=async()=>{try{const D=await be.get("/plannings",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});u.value=D.data,console.log("plannings il y a ceci",u.value)}catch(D){console.error(D)}},v=async()=>{try{const D={mission_id:O.mission_id,date:O.date,heure_debut:O.heure_debut,heure_fin:O.heure_fin};console.log("Payload",D);const R=localStorage.getItem("token"),z=await be.post("/insertplannings",D,{headers:{"Content-Type":"application/json",...R&&{Authorization:`Bearer ${R}`}}});return console.log(z.status,z.ok),await s(),console.log("Planning créée :",z.data),alert("Planning créée !"),O.value={mission_id:"",date:"",heure_debut:"",heure_fin:""},z}catch(D){throw console.error("Erreur lors de la création du planning",D),D}},g=nn();console.log("USERTheInsertTest:",g.user);const y=[{name:"DURP",path:"/crudDurpView",roles:["admin"],children:[{name:"Accès par risque",path:"/crudDurpView"},{name:"Suivi",path:"/crudDurpView"}]},{name:"Interim/Vacataire",path:"/admin",roles:["admin"],children:[{name:"Agences",path:"/crudAgencesView"},{name:"Missions",path:"/crudMissionsView"},{name:"Staffs",path:"/crudStaffsView"},{name:"Timesheets",path:"/crudTimesheetsView"}]},{name:"DDADUE",path:"/crudDdadueView",roles:["admin"],children:[{name:"Calcul",path:"/crudDdadueView"},{name:"Suivi communication",path:"/crudDdadueView"}]},{name:"GTA",path:"/condition4",roles:["admin"],children:[{name:"Plannings",path:"crudPlanningsView"},{name:"Badges",path:"crudBadgesView"},{name:"Feuilles de temps",path:"crudTimesheetsView"},{name:"Admin",path:"crudStaffsView"}]}],_=we(()=>y.filter(D=>{if(!D.roles&&!D.permissions)return!0;const R=g.user?.roles||[];console.log("ROLES are :",R);const z=g.user?.permissions||[];return console.log("PERMS:",z),console.log("CHECK manage_users:",z.includes("manage_users")),!(D.roles&&!D.roles.some(A=>R.includes(A))||D.permissions&&!D.permissions.every(A=>z.includes(A)))})),w=K(!1),S=we(()=>u.value.filter(D=>D.planning_id.toLowerCase().includes(n.value.toLowerCase()))),E=we(()=>(p.value-1)*a.value),T=we(()=>E.value+a.value),C=we(()=>S.value.slice(E.value,T.value));function N(D){o.value=null,l.value={...D}}function B(){o.value="true",l.value=null}function M(D){d.value="true",l.value={...D}}function L(D){confirm("Supprimer ?")&&(u.value=u.value.filter(R=>R.planning_id!==u.planning_id),l.value={...D},deletePlanningK())}function I(){p.value++}function $(){p.value--}Lt(m,D=>{document.body.classList.toggle("dark",D)});const O=bn({date_debut:"",date_fin:""}),H=we(()=>!O.date_debut||!O.date_fin?!1:O.date_fin<=O.date_debut);return qe(()=>{h(),b(),s(),c()}),(D,R)=>{const z=ct("RouterLink");return F(),j(ie,null,[R[25]||(R[25]=nt('<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Pretium</title><link rel="preconnect" href="https://fonts.bunny.net"><link href="https://fonts.bunny.net/css?family=montserrat:400,500,600,700,800" rel="stylesheet"><link rel="stylesheet" href="../css/style.css"></head>',1)),x("header",ZE,[x("div",qE,[x("button",{class:"btn-icon",onClick:R[0]||(R[0]=A
27=>w.value=!w.value)},[...R[12]||(R[12]=[x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19.5 13.9"},[x("g",{fill:"currentColor","fill-rule":"evenodd"},[x("path",{d:"M0 .8C0 .3.3 0 .8 0h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 .7ZM0 7c0-.5.3-.8.8-.8h18a.8.8 0 0 1 0 1.5H.8a.8.8 0 0 1-.8-.8ZM0 13.1c0-.4.3-.7.8-.7h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 13Z"})])],-1)])]),w.value?(F(),j("div",JE,[x("div",XE,[x("ul",YE,[(F(!0),j(ie,null,ve(_.value,A=>(F(),j("li",{key:A.path},[se(z,{to:A.path},{default:Ce(()=>[Te(" mob "+Y(A.name)+" | ",1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(A.children,X=>(F(),j("li",{key:X},[se(z,{to:X.path},{default:Ce(()=>[Te(Y(X.name),1)]),_:2},1032,["to"])]))),128))])]))),128))]),x("button",{class:"btn-icon",onClick:R[1]||(R[1]=A=>w.value=!w.value)},"Fermer")])])):ke("",!0),R[13]||(R[13]=nt('<a href="index.html" class="topbar_logo"><img src="'+Bn+'" alt="Logo Pretium" width="148" height="43"></a><div class="topbar_right"><form action="" class="topbar_search"><input type="search" placeholder="Rechercher un produit, une marque..." aria-label="Rechercher un produit, une marque..."></form><div class="topbar_actions"><a href="/logout" class="btn-bordered-grey"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 26 26"><g fill="currentColor" fill-rule="evenodd"><path d="M13 1.2A5.8 5.8 0 1 0 18.8 7c0-3.2-2.6-5.8-5.8-5.8ZM9.2 7a3.8 3.8 0 1 1 7.6 0 3.8 3.8 0 0 1-7.6 0Z"></path><path d="M19.2 15a10.9 10.9 0 0 0-6-1.7 11 11 0 0 0-6 1.6c-1.5 1-2.4 2.5-2.4 4 0 1.6.9 3 2.4 4 1.7 1.2 3.9 1.7 6 1.7s4.3-.5 6-1.6c1.5-1 2.4-2.5 2.4-4 0-1.6-1-3-2.4-4ZM6.8 19c0-.8.4-1.7 1.5-2.4a9 9 0 0 1 4.9-1.3c1.8 0 3.6.4 4.8 1.3 1.1.7 1.6 1.6 1.6 2.3 0 .8-.5 1.7-1.6 2.4-1.2.9-3 1.3-4.8 1.3-1.8 0-3.6-.4-4.9-1.3-1-.7-1.5-1.6-1.5-2.3Z"></path></g></svg> Se déconnecter </a> <button class="btn-icon" title="12Fermer le menu"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 13.4 13.4"><g fill="currentColor" fill-rule="evenodd"><path d="M.5.5c.3-.3.8-.3 1 0L13 11.8a.7.7 0 0 1-1 1.1L.4 1.6a.7.7 0 0 1 0-1Z"></path><path d="M12.9.5c.3.3.3.8 0 1L1.6 13a.7.7 0 0 1-1-1L11.7.4c.3-.3.8-.3 1.1 0Z"></path></g></svg></button></div></div>',2))]),x("div",KE,[x("ul",QE,[(F(!0),j(ie,null,ve(_.value,A=>(F(),j("li",{key:A.path},[se(z,{to:A.path},{default:Ce(()=>[Te(Y(A.name),1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(A.children,X=>(F(),j("li",{key:X},[se(z,{to:X.path},{default:Ce(()=>[Te(Y(X.name),1)]),_:2},1032,["to"])]))),128))])]))),128))])])]),x("div",null,[R[17]||(R[17]=x("h2",{class:"title"},"Liste des plannings",-1)),x("div",e2,[R[16]||(R[16]=x("h2",{class:"title"},"Liste des plannings",-1)),x("div",t2,[fe(x("input",{"onUpdate:modelValue":R[2]||(R[2]=A=>n.value=A),placeholder:"Rechercher une mission..."},null,512),[[pe,n.value]])]),x("div",n2,[se(Ar,{name:"fade",tag:"div"},{default:Ce(()=>[(F(!0),j(ie,null,ve(C.value,A=>(F(),j("div",{class:"agence-card",key:A.planning_id},[x("div",r2,[x("h3",null,Y(A.planning_id),1),x("p",null,"ID: "+Y(A.poste),1)]),x("div",i2,[x("button",{class:"btn read",onClick:X=>N(A)},"ð",8,s2),x("button",{class:"btn update",onClick:X=>M(A)},"â",8,o2),x("button",{class:"btn delete",onClick:X=>L(A)},"ð",8,a2)])]))),128))]),_:1})]),x("div",l2,[x("button",{onClick:$,disabled:p.value===1},"â¬
",8,c2),x("span",null,"Page "+Y(p.value),1),x("button",{onClick:I,disabled:T.value>=S.value.length},"â¡",8,u2)]),x("div",d2,[x("button",{onClick:R[3]||(R[3]=A=>m.value=!m.value)},Y(m.value?"â Mode clair":"ð Mode sombre"),1)]),l.value?(F(),j("div",{key:0,class:"modal-overlay",onClick:ut(B,["self"])},[x("div",f2,[o.value?(F(),j("div",h2,[...R[14]||(R[14]=[x("h3",null,"Modifier données du planning",-1)])])):(F(),j("div",p2,[...R[15]||(R[15]=[x("h3",null,"Consulter données du planning",-1)])])),fe(x("input",{"onUpdate:modelValue":R[4]||(R[4]=A=>l.value.planning_id=A),placeholder:"mission_id"},null,512),[[pe,l.value.planning_id]]),x("div",m2,[o.value?(F(),j("div",v2,[x("button",{class:"btn save",onClick:R[5]||(R[5]=(...A)=>D.updatePlanning&&D.updatePlanning(...A))},"ð¾ Sauver")])):ke("",!0),x("button",{class:"btn close",onClick:B},"â Fermer")])])])):ke("",!0)])]),x("div",g2,[x("form",{class:"form-card",onSubmit:ut(v,["prevent"])}
27,[R[24]||(R[24]=x("h2",null,"Enregistrer un nouveau planning",-1)),x("div",b2,[R[18]||(R[18]=x("label",null,"Mission concernée",-1)),x("div",y2,[fe(x("select",{class:"h-10 pl-5 pr-10 text-gray-600 bg-white border border-gray-300 rounded-lg appearance-none hover:border-gray-400 focus:outline-none","onUpdate:modelValue":R[6]||(R[6]=A=>O.mission_id=A)},[(F(!0),j(ie,null,ve(r.value,(A,X)=>(F(),j("option",{key:X,value:A.mission_id},Y(A.poste),9,_2))),128))],512),[[gn,O.mission_id]])])]),x("div",w2,[R[19]||(R[19]=x("label",null,"Planning",-1)),x("div",x2,[fe(x("select",{class:"h-10 pl-5 pr-10 text-gray-600 bg-white border border-gray-300 rounded-lg appearance-none hover:border-gray-400 focus:outline-none","onUpdate:modelValue":R[7]||(R[7]=A=>O.agence_id=A)},[(F(!0),j(ie,null,ve(e.value,(A,X)=>(F(),j("option",{key:X,value:A.agence_id},Y(A.nom)+" "+Y(A.adresse),9,S2))),128))],512),[[gn,O.agence_id]])])]),x("div",C2,[R[20]||(R[20]=x("label",null,"Date de début",-1)),fe(x("input",{type:"date","onUpdate:modelValue":R[8]||(R[8]=A=>O.date_debut=A),required:""},null,512),[[pe,O.date_debut]])]),x("div",E2,[R[21]||(R[21]=x("label",null,"Date de fin",-1)),fe(x("input",{type:"date","onUpdate:modelValue":R[9]||(R[9]=A=>O.date_fin=A),min:f.value.date_debut,required:""},null,8,T2),[[pe,O.date_fin]])]),H.value?(F(),j("p",k2," La date de fin doit être postérieure à la date de début ")):ke("",!0),x("div",A2,[R[22]||(R[22]=x("label",null,"Poste",-1)),fe(x("input",{type:"text","onUpdate:modelValue":R[10]||(R[10]=A=>O.poste=A),placeholder:"infirmier"},null,512),[[pe,O.poste]])]),x("div",M2,[R[23]||(R[23]=x("label",null,"Taux horaire",-1)),fe(x("input",{type:"text","onUpdate:modelValue":R[11]||(R[11]=A=>O.taux_horaire=A),placeholder:"en euros"},null,512),[[pe,O.taux_horaire]])]),x("button",{disabled:H.value},"Valider",8,N2)],32)])],64)}}},I2={__name:"CrudPlanningsView",setup(t){const e=K(""),r=K(""),i=rn();qe(async()=>{const f=await be.get("/profile");e.value=f.data.message,r.value=f.data.staff});function u(){localStorage.removeItem("token"),i.push("/")}return(f,d)=>(F(),j(ie,null,[x("div",null,[d[0]||(d[0]=x("h2",null,"AdminView",-1)),x("p",null,Y(e.value),1),x("p",null,Y(r.value),1),x("button",{onClick:u},"Logout")]),x("main",null,[se(R2),se(yn)])],64))}},O2={class:"topbar container"},H2={class:"topbar_top"},L2={key:0},U2={class:"mobile-menu mobile-menu_header"},B2={class:"mobile-menu_nav"},D2={class:"topbar"},V2={class:"topbar_nav"},F2={class:"agence-list"},j2={class:"search-box"},z2={class:"agence-list"},$2={class:"agence-info"},W2={class:"actions"},P2=["onClick"],G2=["onClick"],Z2=["onClick"],q2={class:"pagination"},J2=["disabled"],X2=["disabled"],Y2={class:"dark-toggle"},K2={class:"modal"},Q2={key:0},eT={key:1},tT={class:"modal-actions"},nT={key:0},rT={class:"container-form"},iT={class:"field"},sT={class:"agence-info"},oT=["value"],aT={class:"field"},lT={class:"field"},cT=["min"],uT={key:0,style:{color:"red"}},dT={class:"field"},fT={class:"field"},hT=["disabled"],pT={__name:"TheCRUDTimesheets",setup(t){const e=K([]),r=K([]),i=K([]),u=K([]),f=K([]),d=K({nom:"",adresse:""}),l=K(null),o=K(null),n=K(""),p=K(1),a=K(3),m=K(!1),h=async()=>{try{const z=await be.get("/agences",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});e.value=z.data,console.log("agences il y a ceci",e.value)}catch(z){console.error(z)}},b=async()=>{try{const z=await be.get("/staffs",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i.value=z.data,console.log("staffs il y a ceci",i.value)}catch(z){console.error(z)}},s=async()=>{try{const z=await be.get("/missions",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});r.value=z.data}catch(z){console.error(z)}},c=async()=>{try{const z=await be.get("/plannings",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});u.value=z.data,console.log("plannings il y a ceci",u.value)}catch(z){console.error(z)}},v=async()=>{try{const z=await be.get("/timesheets",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});f.value=z.data,console.log("timesheets il y a ceci",f.value)}catch(z){console.error(z)}},g=async()=>{try{const z={mission_id:D.mission_id,date:D.date,heure_debut:D.heure_debut,heure_fin:D.heure_fin};console.log("Payload",z);const A=localStorage.getItem("token"),X=await be.post("/insertplannings",z,{headers:{"Content-Type":"application/json",...A&&{Authorization:`Bearer ${A}`}}});return console.log(X.status,X.ok),await s(),console.log("Planning créée :",X.data),alert("Planning créée !"),D.value={mission_id:"",date:"",heure_debut:"",heure_fin:""},X}catch(z){throw console.error("Erreur lors de la création du planning",z),z}},y=async()=>{console.log("ON EFFACE1");try{console.log("ON EFFACE2");const z=localStorage.getItem("token"),A=await be.put(`/deletetimesheets/${l.value.timesheet_id}`,l.value,{headers:{"Content-Type":"application/json",...z&&{Authorization:`Bearer ${z}`}}});return console.log(A.status,A.ok),await v(),console.log("Timesheet supprimée :",A.data),alert("Timesheet supprimée !"),A}catch(z){throw console.error("Erreur lors de la supression de la Timesheet",z),z}},_=nn();console.log("USERTheCRUDTimesheets:",_.user);const w=[{name:"DURP",path:"/crudDurpView",roles:["admin"],children:[{name:"Accès par risque",path:"/crudDurpView"},{name:"Suivi",path:"/crudDurpView"}]},{name:"Interim/Vacataire",path:"/admin",roles:["admin"],children:[{name:"Agences",path:"/crudAgencesView"},{name:"Missions",path:"/crudMissionsView"},{name:"Staffs",path:"/crudStaffsView"},{name:"Timesheets",path:"/crudTimesheetsView"}]},{name:"DDADUE",path:"/crudDdadueView",roles:["admin"],children:[{name:"Calcul",path:"/crudDdadueView"},{name:"Suivi communication",path:"/crudDdadueView"}]},{name:"GTA",path:"/condition4",roles:["admin"],children:[{name:"Plannings",path:"crudPlanningsView"},{name:"Badges",path:"crudBadgesView"},{name:"Feuilles de temps",path:"crudTimesheetsView"},{name:"Admin",path:"crudStaffsView"}]}],S=we(()=>w.filter(z=>{if(!z.roles&&!z.permissions)return!0;const A=_.user?.roles||[];console.log("ROLES are :",A);const X=_.user?.permissions||[];return console.log("PERMS:",X),console.log("CHECK manage_users:",X.includes("manage_users")),!(z.roles&&!z.roles.some(G=>A.includes(G))||z.permissions&&!z.permissions.every(G=>X.includes(G)))})),E=K(!1),T=we(()=>f.value.filter(z=>z.timesheet_id.toLowerCase().includes(n.value.toLowerCase()))),C=we(()=>(p.value-1)*a.value),N=we(()=>C.value+a.value),B=we(()=>T.value.slice(C.value,N.value));function M(z){o.value=null,l.value={...z}}function L(){o.value="true",l.value=null}function I(z){o.value="true",l.value={...z}}function $(z){confirm("Supprimer ?")&&(f.value=f.value.filter(A=>A.timesheet_id!==A.timesheet_id),l.value={...z},y())}function O(){p.value++}function H(){p.value--}Lt(m,z=>{document.body.classList.toggle("dark",z)});const D=bn({date_debut:"",date_fin:""}),R=we(()=>!D.date_debut||!D.date_fin?!1:D.date_fin<=D.date_debut);return qe(()=>{h(),b(),s(),c(),v()}),(z,A)=>{const X=ct("RouterLink");return F(),j(ie,null,[A[31]||(A[31]=nt('<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>
27Additime</title><link rel="preconnect" href="https://fonts.bunny.net"><link href="https://fonts.bunny.net/css?family=montserrat:400,500,600,700,800" rel="stylesheet"><link rel="stylesheet" href="../css/style.css"></head>',1)),x("header",O2,[x("div",H2,[x("button",{class:"btn-icon",onClick:A[0]||(A[0]=G=>E.value=!E.value)},[...A[19]||(A[19]=[x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19.5 13.9"},[x("g",{fill:"currentColor","fill-rule":"evenodd"},[x("path",{d:"M0 .8C0 .3.3 0 .8 0h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 .7ZM0 7c0-.5.3-.8.8-.8h18a.8.8 0 0 1 0 1.5H.8a.8.8 0 0 1-.8-.8ZM0 13.1c0-.4.3-.7.8-.7h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 13Z"})])],-1)])]),E.value?(F(),j("div",L2,[x("div",U2,[x("ul",B2,[(F(!0),j(ie,null,ve(S.value,G=>(F(),j("li",{key:G.path},[se(X,{to:G.path},{default:Ce(()=>[Te(" mob "+Y(G.name)+" | ",1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(G.children,ce=>(F(),j("li",{key:ce},[se(X,{to:ce.path},{default:Ce(()=>[Te(Y(ce.name),1)]),_:2},1032,["to"])]))),128))])]))),128))]),x("button",{class:"btn-icon",onClick:A[1]||(A[1]=G=>E.value=!E.value)},"Fermer")])])):ke("",!0),A[20]||(A[20]=nt('<a href="index.html" class="topbar_logo"><img src="'+Bn+'" alt="Logo Additime" width="148" height="43"></a><div class="topbar_right"><form action="" class="topbar_search"><input type="search" placeholder="Rechercher un produit, une marque..." aria-label="Rechercher un produit, une marque..."></form><div class="topbar_actions"><a href="/logout" class="btn-bordered-grey"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 26 26"><g fill="currentColor" fill-rule="evenodd"><path d="M13 1.2A5.8 5.8 0 1 0 18.8 7c0-3.2-2.6-5.8-5.8-5.8ZM9.2 7a3.8 3.8 0 1 1 7.6 0 3.8 3.8 0 0 1-7.6 0Z"></path><path d="M19.2 15a10.9 10.9 0 0 0-6-1.7 11 11 0 0 0-6 1.6c-1.5 1-2.4 2.5-2.4 4 0 1.6.9 3 2.4 4 1.7 1.2 3.9 1.7 6 1.7s4.3-.5 6-1.6c1.5-1 2.4-2.5 2.4-4 0-1.6-1-3-2.4-4ZM6.8 19c0-.8.4-1.7 1.5-2.4a9 9 0 0 1 4.9-1.3c1.8 0 3.6.4 4.8 1.3 1.1.7 1.6 1.6 1.6 2.3 0 .8-.5 1.7-1.6 2.4-1.2.9-3 1.3-4.8 1.3-1.8 0-3.6-.4-4.9-1.3-1-.7-1.5-1.6-1.5-2.3Z"></path></g></svg> Se déconnecter </a> <button class="btn-icon" title="12Fermer le menu"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 13.4 13.4"><g fill="currentColor" fill-rule="evenodd"><path d="M.5.5c.3-.3.8-.3 1 0L13 11.8a.7.7 0 0 1-1 1.1L.4 1.6a.7.7 0 0 1 0-1Z"></path><path d="M12.9.5c.3.3.3.8 0 1L1.6 13a.7.7 0 0 1-1-1L11.7.4c.3-.3.8-.3 1.1 0Z"></path></g></svg></button></div></div>',2))]),x("div",D2,[x("ul",V2,[(F(!0),j(ie,null,ve(S.value,G=>(F(),j("li",{key:G.path},[se(X,{to:G.path},{default:Ce(()=>[Te(Y(G.name),1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(G.children,ce=>(F(),j("li",{key:ce},[se(X,{to:ce.path},{default:Ce(()=>[Te(Y(ce.name),1)]),_:2},1032,["to"])]))),128))])]))),128))])])]),x("div",null,[A[24]||(A[24]=x("h2",{class:"title"},"Liste des timesheets",-1)),x("div",F2,[A[23]||(A[23]=x("h2",{class:"title"},"Liste des timesheets",-1)),x("div",j2,[fe(x("input",{"onUpdate:modelValue":A[2]||(A[2]=G=>n.value=G),placeholder:"Rechercher une mission..."},null,512),[[pe,n.value]])]),x("div",z2,[se(Ar,{name:"fade",tag:"div"},{default:Ce(()=>[(F(!0),j(ie,null,ve(B.value,G=>(F(),j("div",{class:"agence-card",key:G.timesheet_id},[x("div",$2,[x("h3",null,Y(G.timesheet_id),1),x("p",null,"ID: "+Y(G.date),1),x("p",null,Y(G.staff_firstname)+" "+Y(G.staff_lastname),1)]),x("div",W2,[x("button",{class:"btn read",onClick:ce=>M(G)},"ð",8,P2),x("button",{class:"btn update",onClick:ce=>I(G)},"â",8,G2),x("button",{class:"btn delete",onClick:ce=>$(G)},"ð",8,Z2)])]))),128))]),_:1})]),x("div",q2,[x("button",{onClick:H,disabled:p.value===1},"â¬
",8,J2),x("span",null,"Page "+Y(p.value),1),x("button",{onClick:O,disabled:N.value>=T.value.length},"â¡",8,X2)]),x("div",Y2,[x("button",{onClick:A[3]||(A[3]=G=>m.value=!m.value)},Y(m.value?"â Mode clair":"ð Mode sombre"),1)]),l.value?(F(),j("div",{key:0,class:"modal-overlay",onClick:ut(L,["self"])},[x("div",K2,[o.value?(F(),j("div",Q2,[...A[21]||(A[21]=[x("h3",null,"Modifier données du timesheet",-1)])])):(F(),j("div",eT,[...A[22]||(A[22]=[x("h3",null,"Consulter données du timesheet",-1)])])),fe(x("input",{"onUpdate:modelValue":A[4]||(A[4]=G=>l.value.timesheet_id=G),placeholder:"timesheet_id"},null,512),[[pe,l.value.timesheet_id]]),fe(x("input",{"onUpdate:modelValue":A[5]||(A[5]=G=>l.value.date=G),placeholder:"date"},null,512),[[pe,l.value.date]]),fe(x("input",{"onUpdate:modelValue":A[6]||(A[6]=G=>l.value.heure_debut=G),placeholder:"heure_debut"},null,512),[[pe,l.value.heure_debut]]),fe(x("input",{"onUpdate:modelValue":A[7]||(A[7]=G=>l.value.heure_fin=G),placeholder:"heure_fin"},null,512),[[pe,l.value.heure_fin]]),fe(x("input",{"onUpdate:modelValue":A[8]||(A[8]=G=>l.value.pause_minutes=G),placeholder:"pause_minutes"},null,512),[[pe,l.value.pause_minutes]]),fe(x("input",{"onUpdate:modelValue":A[9]||(A[9]=G=>l.value.statut=G),placeholder:"statut"},null,512),[[pe,l.value.statut]]),fe(x("input",{"onUpdate:modelValue":A[10]||(A[10]=G=>l.value.staff_civ=G),placeholder:"staff_civ"},null,512),[[pe,l.value.staff_civ]]),fe(x("input",{"onUpdate:modelValue":A[11]||(A[11]=G=>l.value.staff_firstname=G),placeholder:"staff_firstname"},null,512),[[pe,l.value.staff_firstname]]),fe(x("input",{"onUpdate:modelValue":A[12]||(A[12]=G=>l.value.staff_lastname=G),placeholder:"staff_lastname"},null,512),[[pe,l.value.staff_lastname]]),x("div",tT,[o.value?(F(),j("div",nT,[x("button",{class:"btn save",onClick:A[13]||(A[13]=(...G)=>z.updateTimesheet&&z.updateTimesheet(...G))},"ð¾ Sauver")])):ke("",!0),x("button",{class:"btn close",onClick:L},"â Fermer")])])])):ke("",!0)])]),x("div",rT,[x("form",{class:"form-card",onSubmit:ut(g,["prevent"])},[A[30]||(A[30]=x("h2",null,"Enregistrer un nouveau timesheet",-1)),x("div",iT,[A[25]||(A[25]=x("label",null,"Employé concernée",-1)),x("div",sT,[fe(x("select",{class:"h-10 pl-5 pr-10 text-gray-600 bg-white border border-gray-300 rounded-lg appearance-none hover:border-gray-400 focus:outline-none","onUpdate:modelValue":A[14]||(A[14]=G=>D.staff_id=G)},[(F(!0),j(ie,null,ve(i.value,(G,ce)=>(F(),j("option",{key:ce,value:G.staff_id},Y(G.staff_firstname)+" "+Y(G.staff_lastname),9,oT))),128))],512),[[gn,D.staff_id]])])]),x("div",aT,[A[26]||(A[26]=x("label",null,"Date de début",-1)),fe(x("input",{type:"date","onUpdate:modelValue":A[15]||(A[15]=G=>D.date_debut=G),required:""},null,512),[[pe,D.date_debut]])]),x("div",lT,[A[27]||(A[27]=x("label",null,"Date de fin",-1)),fe(x("input",{type:"date","onUpdate:modelValue":A[16]||(A[16]=G=>D.date_fin=G),min:d.value.date_debut,required:""},null,8,cT),[[pe,D.date_fin]])]),R.value?(F(),j("p",uT," La date de fin doit être postérieure à la date de début ")):ke("",!0),x("div",dT,[A[28]||(A[28]=x("label",null,"Poste",-1)),fe(x("input",{type:"text","onUpdate:modelValue":A[17]||(A[17]=G=>D.poste=G),placeholder:"infirmier"},null,512),[[pe,D.poste]])]),x("div",fT,[A[29]||(A[29]=x("label",null,"Taux horaire",-1)),fe(x("input",{type:"text","onUpdate:modelValue":A[18]||(A[18]=G=>D.taux_horaire=G),placeholder:"en euros"},null,512),[[pe,D.taux_horaire]])]),x("button",{disabled:R.value},"Valider",8,hT)],32)])],64)}}},mT={__name:"CrudTimesheetsView",setup(t){const e=K(""),r=K(""),i=rn();qe(async()=>{const f=await be.get("/profile");e.value=f.data.message,r.value=f.data.staff});function u(){localStorage.removeItem("token"),i.push("/")}return(f,d)=>(F(),j(ie,null,[x("div",null,[d[0]||(d[0]=x("h2",null,"AdminView",-1)),x("p",null,Y(e.value),1),x("p",null,Y(r.value),1),x("button",{onClick:u},"Logout")]),x("main",null,[se(pT),se(yn)])],64))}},vT={class:"topbar container"},gT={class:"topbar_top"},bT={key:0},yT={class:"mobile-menu mobile-menu_header"},_T={class:"mobile-menu_nav"},wT={class:"topbar"},xT={class:"topbar_nav"},ST={class:"agence-list"},CT={class:"search-box"},ET={class:"agence-list"},TT={class:"agence-info"},kT={class:"actions"},AT=["onClick"],MT=["onClick"],NT=["onClick"],RT={class:"pagination"},IT=["disabled"],OT=["disabled"],HT={class:"dark-toggle"},LT={class:"modal"},UT={key:0},BT={key:1},DT={class:"modal-actions"},VT={key:0},FT={class:"container-form"},jT={class:"field"},zT={class:"agence-info"},$T=["value"],WT={class:"field"},PT={class:"agence-info"},GT=["value"],ZT={class:"field"},qT={class:"field"},JT=["min"],XT={key:0,style:{color:"red"}},YT={class:"field"},KT={class:"field"},QT=["disabled"],ek={__name:"TheCRUDDdadue",setup(t){const e=K([]),r=K([]),i=K([]),u=K([]),f=K({nom:"",adresse:""}),d=K(null),l=K(null),o=K(null),n=K(""),p=K(1),a=K(3),m=K(!1),h=async()=>{try{const D=await be.get("/agences",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});e.value=D.data,console.log("agences il y a ceci",e.value)}catch(D){console.error(D)}},b=async()=>{try{const D=await be.get("/staffs",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});i.value=D.data,console.log("staffs il y a ceci",i.value)}catch(D){console.error(D)}},s=async()=>{try{const D=await be.get("/missions",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});r.value=D.data}catch(D){console.error(D)}},c=async()=>{try{const D=await be.get("/plannings",{headers:{Authorization:`Bearer ${localStorage.getItem("token")}`}});u.value=D.data,console.log("plannings il y a ceci",u.value)}catch(D){console.error(D)}},v=async()=>{try{const D={mission_id:O.mission_id,date:O.date,heure_debut:O.heure_debut,heure_fin:O.heure_fin};console.log("Payload",D);const R=localStorage.getItem("token"),z=await be.post("/insertplannings",D,{headers:{"Content-Type":"application/json",...R&&{Authorization:`Bearer ${R}`}}});return console.log(z.status,z.ok),await s(),console.log("Planning créée :",z.data),alert("Planning créée !"),O.value={mission_id:"",date:"",heure_debut:"",heure_fin:""},z}catch(D){throw console.error("Erreur lors de la création du planning",D),D}},g=nn();console.log("USERTheInsertTest:",g.user);const y=[{name:"DURP",path:"/crudDurpView",roles:["admin"],children:[{name:"Accès par risque",path:"/crudDurpView"},{name:"Suivi",path:"/crudDurpView"}]},{name:"Interim/Vacataire",path:"/admin",roles:["admin"],children:[{name:"Agences",path:"/crudAgencesView"},{name:"Missions",path:"/crudMissionsView"},{name:"Staffs",path:"/crudStaffsView"},{name:"Timesheets",path:"/crudTimesheetsView"}]},{name:"DDADUE",path:"/crudDdadueView",roles:["admin"],children:[{name:"Calcul",path:"/crudDdadueView"},{name:"Suivi communication",path:"/crudDdadueView"}]},{name:"GTA",path:"/condition4",roles:["admin"],children:[{name:"Plannings",path:"crudPlanningsView"},{name:"Badges",path:"crudBadgesView"},{name:"Feuilles de temps",path:"crudTimesheetsView"},{name:"Admin",path:"crudStaffsView"}]}],_=we(()=>y.filter(D=>{if(!D.roles&&!D.permissions)return!0;const R=g.user?.roles||[];console.log("ROLES are :",R);const z=g.user?.permissions||[];return console.log("PERMS:",z),console.log("CHECK manage_users:",z.includes("manage_users")),!(D.roles&&!D.roles.some(A=>R.includes(A))||D.permissions&&!D.permissions.every(A=>z.includes(A)))})),w=K(!1),S=we(()=>u.value.filter(D=>D.planning_id.toLowerCase().includes(n.value.toLowerCase()))),E=we(()=>(p.value-1)*a.value),T=we(()=>E.value+a.value),C=we(()=>S.value.slice(E.value,T.value));function N(D){o.value=null,l.value={...D}}function B(){o.value="true",l.value=null}function M(D){d.value="true",l.value={...D}}function L(D){confirm("Supprimer ?")&&(u.value=u.value.filter(R=>R.planning_id!==u.planning_id),l.value={...D},deletePlanningK())}function I(){p.value++}function $(){p.value--}Lt(m,D=>{document.body.classList.toggle("dark",D)});const O=bn({date_debut:"",date_fin:""}),H=we(()=>!O.date_debut||!O.date_fin?!1:O.date_fin<=O.date_debut);return qe(()=>{h(),b(),s(),c()}),(D,R)=>{const z=ct("RouterLink");return F(),j(ie,null,[R[25]||(R[25]=nt('<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Pretium</title>
27<link rel="preconnect" href="https://fonts.bunny.net"><link href="https://fonts.bunny.net/css?family=montserrat:400,500,600,700,800" rel="stylesheet"><link rel="stylesheet" href="../css/style.css"></head>',1)),x("header",vT,[x("div",gT,[x("button",{class:"btn-icon",onClick:R[0]||(R[0]=A=>w.value=!w.value)},[...R[12]||(R[12]=[x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 19.5 13.9"},[x("g",{fill:"currentColor","fill-rule":"evenodd"},[x("path",{d:"M0 .8C0 .3.3 0 .8 0h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 .7ZM0 7c0-.5.3-.8.8-.8h18a.8.8 0 0 1 0 1.5H.8a.8.8 0 0 1-.8-.8ZM0 13.1c0-.4.3-.7.8-.7h9.4a.8.8 0 0 1 0 1.5H.8A.8.8 0 0 1 0 13Z"})])],-1)])]),w.value?(F(),j("div",bT,[x("div",yT,[x("ul",_T,[(F(!0),j(ie,null,ve(_.value,A=>(F(),j("li",{key:A.path},[se(z,{to:A.path},{default:Ce(()=>[Te(" mob "+Y(A.name)+" | ",1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(A.children,X=>(F(),j("li",{key:X},[se(z,{to:X.path},{default:Ce(()=>[Te(Y(X.name),1)]),_:2},1032,["to"])]))),128))])]))),128))]),x("button",{class:"btn-icon",onClick:R[1]||(R[1]=A=>w.value=!w.value)},"Fermer")])])):ke("",!0),R[13]||(R[13]=nt('<a href="index.html" class="topbar_logo"><img src="'+Bn+'" alt="Logo Pretium" width="148" height="43"></a><div class="topbar_right"><form action="" class="topbar_search"><input type="search" placeholder="Rechercher un produit, une marque..." aria-label="Rechercher un produit, une marque..."></form><div class="topbar_actions"><a href="/logout" class="btn-bordered-grey"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 26 26"><g fill="currentColor" fill-rule="evenodd"><path d="M13 1.2A5.8 5.8 0 1 0 18.8 7c0-3.2-2.6-5.8-5.8-5.8ZM9.2 7a3.8 3.8 0 1 1 7.6 0 3.8 3.8 0 0 1-7.6 0Z"></path><path d="M19.2 15a10.9 10.9 0 0 0-6-1.7 11 11 0 0 0-6 1.6c-1.5 1-2.4 2.5-2.4 4 0 1.6.9 3 2.4 4 1.7 1.2 3.9 1.7 6 1.7s4.3-.5 6-1.6c1.5-1 2.4-2.5 2.4-4 0-1.6-1-3-2.4-4ZM6.8 19c0-.8.4-1.7 1.5-2.4a9 9 0 0 1 4.9-1.3c1.8 0 3.6.4 4.8 1.3 1.1.7 1.6 1.6 1.6 2.3 0 .8-.5 1.7-1.6 2.4-1.2.9-3 1.3-4.8 1.3-1.8 0-3.6-.4-4.9-1.3-1-.7-1.5-1.6-1.5-2.3Z"></path></g></svg> Se déconnecter </a> <button class="btn-icon" title="12Fermer le menu"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 13.4 13.4"><g fill="currentColor" fill-rule="evenodd"><path d="M.5.5c.3-.3.8-.3 1 0L13 11.8a.7.7 0 0 1-1 1.1L.4 1.6a.7.7 0 0 1 0-1Z"></path><path d="M12.9.5c.3.3.3.8 0 1L1.6 13a.7.7 0 0 1-1-1L11.7.4c.3-.3.8-.3 1.1 0Z"></path></g></svg></button></div></div>',2))]),x("div",wT,[x("ul",xT,[(F(!0),j(ie,null,ve(_.value,A=>(F(),j("li",{key:A.path},[se(z,{to:A.path},{default:Ce(()=>[Te(Y(A.name),1)]),_:2},1032,["to"]),x("ul",null,[(F(!0),j(ie,null,ve(A.children,X=>(F(),j("li",{key:X},[se(z,{to:X.path},{default:Ce(()=>[Te(Y(X.name),1)]),_:2},1032,["to"])]))),128))])]))),128))])])]),x("div",null,[R[17]||(R[17]=x("h2",{class:"title"},"Liste des plannings",-1)),x("div",ST,[R[16]||(R[16]=x("h2",{class:"title"},"Liste des plannings",-1)),x("div",CT,[fe(x("input",{"onUpdate:modelValue":R[2]||(R[2]=A=>n.value=A),placeholder:"Rechercher une mission..."},null,512),[[pe,n.value]])]),x("div",ET,[se(Ar,{name:"fade",tag:"div"},{default:Ce(()=>[(F(!0),j(ie,null,ve(C.value,A=>(F(),j("div",{class:"agence-card",key:A.planning_id},[x("div",TT,[x("h3",null,Y(A.planning_id),1),x("p",null,"ID: "+Y(A.poste),1)]),x("div",kT,[x("button",{class:"btn read",onClick:X=>N(A)},"ð",8,AT),x("button",{class:"btn update",onClick:X=>M(A)},"â",8,MT),x("button",{class:"btn delete",onClick:X=>L(A)},"ð",8,NT)])]))),128))]),_:1})]),x("div",RT,[x("button",{onClick:$,disabled:p.value===1},"â¬
",8,IT),x("span",null,"Page "+Y(p.value),1),x("button",{onClick:I,disabled:T.value>=S.value.length},"â¡",8,OT)]),x("div",HT,[x("button",{onClick:R[3]||(R[3]=A=>m.value=!m.value)},Y(m.value?"â Mode clair":"ð Mode sombre"),1)]),l.value?(F(),j("div",{key:0,class:"modal-overlay",onClick:ut(B,["self"])},[x("div",LT,[o.value?(F(),j("div",UT,[...R[14]||(R[14]=[x("h3",null,"Modifier données du planning",-1)])])):(F(),j("div",BT,[...R[15]||(R[15]=[x("h3",null,"Consulter données du planning",-1)])])),fe(x("input",{"onUpdate:modelValue":R[4]||(R[4]=A=>l.value.planning_id=A),placeholder:"mission_id"},null,512),[[pe,l.value.planning_id]]),x("div",DT,[o.value?(F(),j("div",VT,[x("button",{class:"btn save",onClick:R[5]||(R[5]=(...A)=>D.updatePlanning&&D.updatePlanning(...A))},"ð¾ Sauver")])):ke("",!0),x("button",{class:"btn close",onClick:B},"â Fermer")])])])):ke("",!0)])]),x("div",FT,[x("form",{class:"form-card",onSubmit:ut(v,["prevent"])}
27,[R[24]||(R[24]=x("h2",null,"Enregistrer un nouveau planning",-1)),x("div",jT,[R[18]||(R[18]=x("label",null,"Mission concernée",-1)),x("div",zT,[fe(x("select",{class:"h-10 pl-5 pr-10 text-gray-600 bg-white border border-gray-300 rounded-lg appearance-none hover:border-gray-400 focus:outline-none","onUpdate:modelValue":R[6]||(R[6]=A=>O.mission_id=A)},[(F(!0),j(ie,null,ve(r.value,(A,X)=>(F(),j("option",{key:X,value:A.mission_id},Y(A.poste),9,$T))),128))],512),[[gn,O.mission_id]])])]),x("div",WT,[R[19]||(R[19]=x("label",null,"Planning",-1)),x("div",PT,[fe(x("select",{class:"h-10 pl-5 pr-10 text-gray-600 bg-white border border-gray-300 rounded-lg appearance-none hover:border-gray-400 focus:outline-none","onUpdate:modelValue":R[7]||(R[7]=A=>O.agence_id=A)},[(F(!0),j(ie,null,ve(e.value,(A,X)=>(F(),j("option",{key:X,value:A.agence_id},Y(A.nom)+" "+Y(A.adresse),9,GT))),128))],512),[[gn,O.agence_id]])])]),x("div",ZT,[R[20]||(R[20]=x("label",null,"Date de début",-1)),fe(x("input",{type:"date","onUpdate:modelValue":R[8]||(R[8]=A=>O.date_debut=A),required:""},null,512),[[pe,O.date_debut]])]),x("div",qT,[R[21]||(R[21]=x("label",null,"Date de fin",-1)),fe(x("input",{type:"date","onUpdate:modelValue":R[9]||(R[9]=A=>O.date_fin=A),min:f.value.date_debut,required:""},null,8,JT),[[pe,O.date_fin]])]),H.value?(F(),j("p",XT," La date de fin doit être postérieure à la date de début ")):ke("",!0),x("div",YT,[R[22]||(R[22]=x("label",null,"Poste",-1)),fe(x("input",{type:"text","onUpdate:modelValue":R[10]||(R[10]=A=>O.poste=A),placeholder:"infirmier"},null,512),[[pe,O.poste]])]),x("div",KT,[R[23]||(R[23]=x("label",null,"Taux horaire",-1)),fe(x("input",{type:"text","onUpdate:modelValue":R[11]||(R[11]=A=>O.taux_horaire=A),placeholder:"en euros"},null,512),[[pe,O.taux_horaire]])]),x("button",{disabled:H.value},"Valider",8,QT)],32)])],64)}}},tk={__name:"CrudDdadueView",setup(t){const e=K(""),r=K(""),i=rn();qe(async()=>{const f=await be.get("/profile");e.value=f.data.message,r.value=f.data.staff});function u(){localStorage.removeItem("token"),i.push("/")}return(f,d)=>(F(),j(ie,null,[x("div",null,[d[0]||(d[0]=x("h2",null,"AdminView",-1)),x("p",null,Y(e.value),1),x("p",null,Y(r.value),1),x("button",{onClick:u},"Logout")]),x("main",null,[se(ek),se(yn)])],64))}};console.log("ð¥ ROUTER LOADED");const nk=[{path:"/",component:Zu},{path:"/login",component:Zu},{path:"/dashboard",component:Wx,meta:{requiresAuth:!0,roles:["admin","manager"]}},{path:"/admin",component:YS},{path:"/manager",component:eC,meta:{requiresAuth:!0,roles:["manager","admin"]}},{path:"/interim",component:QS},{path:"/helloworld",component:pp},{path:"/insertAgences",component:vC,meta:{requiresAuth:!0}},{path:"/crudStaffsView",component:oE,meta:{requiresAuth:!0,roles:["admin"]}},{path:"/crudMissionsView",component:GE,meta:{requiresAuth:!0,roles:["admin"]}},{path:"/crudPlanningsView",component:I2,meta:{requiresAuth:!0,roles:["admin"]}},{path:"/crudTimesheetsView",component:mT,meta:{requiresAuth:!0,roles:["admin"]}},{path:"/crudDdadueView",component:tk,meta:{requiresAuth:!0,roles:["admin"]}},{path:"/insertMissions",component:EC,meta:{requiresAuth:!0}},{path:"/unauthorized",component:rC},{path:"/:pathMatch(.*)*",redirect:"/login"}],bm=b1({history:X_(),routes:nk});bm.beforeEach((t,e,r)=>{const i=localStorage.getItem("token");if(t.meta.requiresAuth){if(!i)return r("/login");const u=rk(i);if(!u)return r("/login");const f=u.roles,d=u.permissions||[];if(t.meta.roles&&!f.some(o=>t.meta.roles.includes(o))||t.meta.permissions&&!t.meta.permissions.every(o=>d.includes(o)))return r("/unauthorized")}r()});function rk(t){try{return JSON.parse(atob(t.split(".")[1]))}catch{return null}}const yc=to(f_);yc.use(_0());yc.use(bm);yc.mount("#app");console.log("ð¥ VUE APP STARTED");
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.