@fdm-monster/client-next 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/README.md +19 -0
  3. package/RELEASE_NOTES.MD +22 -0
  4. package/dist/assets/index-BAB7cJ3l.js +105 -0
  5. package/dist/assets/index-BAB7cJ3l.js.map +1 -0
  6. package/dist/assets/index-DfA7W6iO.css +1 -0
  7. package/dist/index.html +2 -2
  8. package/package.json +21 -2
  9. package/screenshots/COVERAGE.md +383 -0
  10. package/screenshots/README.md +431 -0
  11. package/screenshots/fixtures/api-mock.ts +699 -0
  12. package/screenshots/fixtures/data/auth.fixtures.ts +79 -0
  13. package/screenshots/fixtures/data/cameras.fixtures.ts +48 -0
  14. package/screenshots/fixtures/data/files.fixtures.ts +56 -0
  15. package/screenshots/fixtures/data/floors.fixtures.ts +39 -0
  16. package/screenshots/fixtures/data/jobs.fixtures.ts +172 -0
  17. package/screenshots/fixtures/data/printers.fixtures.ts +132 -0
  18. package/screenshots/fixtures/data/settings.fixtures.ts +62 -0
  19. package/screenshots/fixtures/socketio-mock.ts +76 -0
  20. package/screenshots/fixtures/test-fixtures.ts +112 -0
  21. package/screenshots/helpers/dialog.helper.ts +196 -0
  22. package/screenshots/helpers/form.helper.ts +207 -0
  23. package/screenshots/helpers/navigation.helper.ts +191 -0
  24. package/screenshots/playwright.screenshots.config.ts +70 -0
  25. package/screenshots/suites/00-example.screenshots.spec.ts +29 -0
  26. package/screenshots/suites/01-auth.screenshots.spec.ts +130 -0
  27. package/screenshots/suites/02-dashboard.screenshots.spec.ts +106 -0
  28. package/screenshots/suites/03-printer-grid.screenshots.spec.ts +160 -0
  29. package/screenshots/suites/04-printer-list.screenshots.spec.ts +184 -0
  30. package/screenshots/suites/05-camera-grid.screenshots.spec.ts +127 -0
  31. package/screenshots/suites/06-print-jobs.screenshots.spec.ts +139 -0
  32. package/screenshots/suites/07-queue.screenshots.spec.ts +86 -0
  33. package/screenshots/suites/08-files.screenshots.spec.ts +142 -0
  34. package/screenshots/suites/09-settings.screenshots.spec.ts +130 -0
  35. package/screenshots/suites/10-panels-dialogs.screenshots.spec.ts +245 -0
  36. package/screenshots/utils.ts +216 -0
  37. package/vitest.config.ts +8 -0
  38. package/dist/assets/index-BaXVMJVZ.js +0 -105
  39. package/dist/assets/index-BaXVMJVZ.js.map +0 -1
  40. package/dist/assets/index-CU1IeFlc.css +0 -1
@@ -0,0 +1,105 @@
1
+ (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"2.2.3"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9b6cf17e-689a-447f-9340-3585a322bc41",e._sentryDebugIdIdentifier="sentry-dbid-9b6cf17e-689a-447f-9340-3585a322bc41")})()}catch{}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function Pr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const jt={},Bl=[],Tr=()=>{},Il=()=>!1,il=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),dv=e=>e.startsWith("onUpdate:"),Bt=Object.assign,fv=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},cB=Object.prototype.hasOwnProperty,cn=(e,t)=>cB.call(e,t),Xe=Array.isArray,Ul=e=>Iu(e)==="[object Map]",sl=e=>Iu(e)==="[object Set]",o0=e=>Iu(e)==="[object Date]",RR=e=>Iu(e)==="[object RegExp]",pt=e=>typeof e=="function",bt=e=>typeof e=="string",ki=e=>typeof e=="symbol",fn=e=>e!==null&&typeof e=="object",pv=e=>(fn(e)||pt(e))&&pt(e.then)&&pt(e.catch),xw=Object.prototype.toString,Iu=e=>xw.call(e),OR=e=>Iu(e).slice(8,-1),_p=e=>Iu(e)==="[object Object]",Tp=e=>bt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wa=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),NR=Pr("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),mv=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},dB=/-\w/g,kn=mv(e=>e.replace(dB,t=>t.slice(1).toUpperCase())),fB=/\B([A-Z])/g,ei=mv(e=>e.replace(fB,"-$1").toLowerCase()),Ji=mv(e=>e.charAt(0).toUpperCase()+e.slice(1)),jl=mv(e=>e?`on${Ji(e)}`:""),Qr=(e,t)=>!Object.is(e,t),zl=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},kw=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ip=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Of=e=>{const t=bt(e)?Number(e):NaN;return isNaN(t)?e:t};let oC;const Pp=()=>oC||(oC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),pB=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function mB(e){return pB.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function hB(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const gB={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"},vB={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"},yB={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"},bB={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},SB={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},wB="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",Cw=Pr(wB),EB=Cw,lC=2;function DR(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const i=r.filter((o,l)=>l%2===1);r=r.filter((o,l)=>l%2===0);let a=0;const s=[];for(let o=0;o<r.length;o++)if(a+=r[o].length+(i[o]&&i[o].length||0),a>=t){for(let l=o-lC;l<=o+lC||n>a;l++){if(l<0||l>=r.length)continue;const u=l+1;s.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[l]}`);const c=r[l].length,d=i[l]&&i[l].length||0;if(l===o){const p=t-(a-(c+d)),h=Math.max(1,n>a?c-p:n-t);s.push(" | "+" ".repeat(p)+"^".repeat(h))}else if(l>o){if(n>a){const p=Math.max(Math.min(n-a,c),1);s.push(" | "+"^".repeat(p))}a+=c+d}}break}return s.join(`
2
+ `)}function We(e){if(Xe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=bt(r)?_w(r):We(r);if(i)for(const a in i)t[a]=i[a]}return t}else if(bt(e)||fn(e))return e}const xB=/;(?![^(]*\))/g,kB=/:([^]+)/,CB=/\/\*[^]*?\*\//g;function _w(e){const t={};return e.replace(CB,"").split(xB).forEach(n=>{if(n){const r=n.split(kB);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _B(e){if(!e)return"";if(bt(e))return e;let t="";for(const n in e){const r=e[n];if(bt(r)||typeof r=="number"){const i=n.startsWith("--")?n:ei(n);t+=`${i}:${r};`}}return t}function Oe(e){let t="";if(bt(e))t=e;else if(Xe(e))for(let n=0;n<e.length;n++){const r=Oe(e[n]);r&&(t+=r+" ")}else if(fn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ap(e){if(!e)return null;let{class:t,style:n}=e;return t&&!bt(t)&&(e.class=Oe(t)),n&&(e.style=We(n)),e}const TB="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",IB="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",PB="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",AB="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",LR=Pr(TB),FR=Pr(IB),$R=Pr(PB),MR=Pr(AB),VR="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",BR=Pr(VR),RB=Pr(VR+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Tw(e){return!!e||e===""}const OB=/[>/="'\u0009\u000a\u000c\u0020]/,qy={};function NB(e){if(qy.hasOwnProperty(e))return qy[e];const t=OB.test(e);return t&&console.error(`unsafe attribute name: ${e}`),qy[e]=!t}const DB={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},LB=Pr("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"),FB=Pr("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,radius,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"),$B=Pr("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 MB(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const VB=/["'&<>]/;function BB(e){const t=""+e,n=VB.exec(t);if(!n)return t;let r="",i,a,s=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}s!==a&&(r+=t.slice(s,a)),s=a+1,r+=i}return s!==a?r+t.slice(s,a):r}const UB=/^-?>|<!--|-->|--!>|<!-$/g;function jB(e){return e.replace(UB,"")}const UR=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function zB(e,t){return e.replace(UR,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function HB(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=io(e[r],t[r]);return n}function io(e,t){if(e===t)return!0;let n=o0(e),r=o0(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ki(e),r=ki(t),n||r)return e===t;if(n=Xe(e),r=Xe(t),n||r)return n&&r?HB(e,t):!1;if(n=fn(e),r=fn(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const s in e){const o=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(o&&!l||!o&&l||!io(e[s],t[s]))return!1}}return String(e)===String(t)}function Rp(e,t){return e.findIndex(n=>io(n,t))}const jR=e=>!!(e&&e.__v_isRef===!0),V=e=>bt(e)?e:e==null?"":Xe(e)||fn(e)&&(e.toString===xw||!pt(e.toString))?jR(e)?V(e.value):JSON.stringify(e,zR,2):String(e),zR=(e,t)=>jR(t)?zR(e,t.value):Ul(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],a)=>(n[Ky(r,a)+" =>"]=i,n),{})}:sl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ky(n))}:ki(t)?Ky(t):fn(t)&&!Xe(t)&&!_p(t)?String(t):t,Ky=(e,t="")=>{var n;return ki(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function HR(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const WB=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Bl,EMPTY_OBJ:jt,NO:Il,NOOP:Tr,PatchFlagNames:vB,PatchFlags:gB,ShapeFlags:yB,SlotFlags:bB,camelize:kn,capitalize:Ji,cssVarNameEscapeSymbolsRE:UR,def:kw,escapeHtml:BB,escapeHtmlComment:jB,extend:Bt,genCacheKey:hB,genPropsAccessExp:mB,generateCodeFrame:DR,getEscapedCssVarName:zB,getGlobalThis:Pp,hasChanged:Qr,hasOwn:cn,hyphenate:ei,includeBooleanAttr:Tw,invokeArrayFns:zl,isArray:Xe,isBooleanAttr:RB,isBuiltInDirective:NR,isDate:o0,isFunction:pt,isGloballyAllowed:Cw,isGloballyWhitelisted:EB,isHTMLTag:LR,isIntegerKey:Tp,isKnownHtmlAttr:LB,isKnownMathMLAttr:$B,isKnownSvgAttr:FB,isMap:Ul,isMathMLTag:$R,isModelListener:dv,isObject:fn,isOn:il,isPlainObject:_p,isPromise:pv,isRegExp:RR,isRenderableAttrValue:MB,isReservedProp:Wa,isSSRSafeAttrName:NB,isSVGTag:FR,isSet:sl,isSpecialBooleanAttr:BR,isString:bt,isSymbol:ki,isVoidTag:MR,looseEqual:io,looseIndexOf:Rp,looseToNumber:Ip,makeMap:Pr,normalizeClass:Oe,normalizeCssVarValue:HR,normalizeProps:Ap,normalizeStyle:We,objectToString:xw,parseStringStyle:_w,propsToAttrMap:DB,remove:fv,slotFlagsText:SB,stringifyStyle:_B,toDisplayString:V,toHandlerKey:jl,toNumber:Of,toRawType:OR,toTypeString:Iu},Symbol.toStringTag,{value:"Module"}));let Kr;class Iw{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Kr,!t&&Kr&&(this.index=(Kr.scopes||(Kr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Kr;try{return Kr=this,t()}finally{Kr=n}}}on(){++this._on===1&&(this.prevScope=Kr,Kr=this)}off(){this._on>0&&--this._on===0&&(Kr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Xo(e){return new Iw(e)}function dd(){return Kr}function An(e,t=!1){Kr&&Kr.cleanups.push(e)}let Tn;const Yy=new WeakSet;class Nf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Kr&&Kr.active&&Kr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Yy.has(this)&&(Yy.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||GR(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,uC(this),qR(this);const t=Tn,n=Gs;Tn=this,Gs=!0;try{return this.fn()}finally{KR(this),Tn=t,Gs=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Rw(t);this.deps=this.depsTail=void 0,uC(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Yy.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){l0(this)&&this.run()}get dirty(){return l0(this)}}let WR=0,df,ff;function GR(e,t=!1){if(e.flags|=8,t){e.next=ff,ff=e;return}e.next=df,df=e}function Pw(){WR++}function Aw(){if(--WR>0)return;if(ff){let t=ff;for(ff=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;df;){let t=df;for(df=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function qR(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function KR(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Rw(r),GB(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function l0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(YR(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function YR(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Df)||(e.globalVersion=Df,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!l0(e))))return;e.flags|=2;const t=e.dep,n=Tn,r=Gs;Tn=e,Gs=!0;try{qR(e);const i=e.fn(e._value);(t.version===0||Qr(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Tn=n,Gs=r,KR(e),e.flags&=-3}}function Rw(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)Rw(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function GB(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function qB(e,t){e.effect instanceof Nf&&(e=e.effect.fn);const n=new Nf(e);t&&Bt(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function KB(e){e.effect.stop()}let Gs=!0;const XR=[];function so(){XR.push(Gs),Gs=!1}function ao(){const e=XR.pop();Gs=e===void 0?!0:e}function uC(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Tn;Tn=void 0;try{t()}finally{Tn=n}}}let Df=0;class YB{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hv{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Tn||!Gs||Tn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Tn)n=this.activeLink=new YB(Tn,this),Tn.deps?(n.prevDep=Tn.depsTail,Tn.depsTail.nextDep=n,Tn.depsTail=n):Tn.deps=Tn.depsTail=n,JR(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Tn.depsTail,n.nextDep=void 0,Tn.depsTail.nextDep=n,Tn.depsTail=n,Tn.deps===n&&(Tn.deps=r)}return n}trigger(t){this.version++,Df++,this.notify(t)}notify(t){Pw();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Aw()}}}function JR(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)JR(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Xh=new WeakMap,Hl=Symbol(""),u0=Symbol(""),Lf=Symbol("");function Zr(e,t,n){if(Gs&&Tn){let r=Xh.get(e);r||Xh.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new hv),i.map=r,i.key=n),i.track()}}function Ua(e,t,n,r,i,a){const s=Xh.get(e);if(!s){Df++;return}const o=l=>{l&&l.trigger()};if(Pw(),t==="clear")s.forEach(o);else{const l=Xe(e),u=l&&Tp(n);if(l&&n==="length"){const c=Number(r);s.forEach((d,p)=>{(p==="length"||p===Lf||!ki(p)&&p>=c)&&o(d)})}else switch((n!==void 0||s.has(void 0))&&o(s.get(n)),u&&o(s.get(Lf)),t){case"add":l?u&&o(s.get("length")):(o(s.get(Hl)),Ul(e)&&o(s.get(u0)));break;case"delete":l||(o(s.get(Hl)),Ul(e)&&o(s.get(u0)));break;case"set":Ul(e)&&o(s.get(Hl));break}}Aw()}function XB(e,t){const n=Xh.get(e);return n&&n.get(t)}function zu(e){const t=it(e);return t===e?t:(Zr(t,"iterate",Lf),zi(e)?t:t.map(Ys))}function gv(e){return Zr(e=it(e),"iterate",Lf),e}function Ao(e,t){return ba(e)?qs(e)?Ic(Ys(t)):Ic(t):Ys(t)}const JB={__proto__:null,[Symbol.iterator](){return Xy(this,Symbol.iterator,e=>Ao(this,e))},concat(...e){return zu(this).concat(...e.map(t=>Xe(t)?zu(t):t))},entries(){return Xy(this,"entries",e=>(e[1]=Ao(this,e[1]),e))},every(e,t){return Pa(this,"every",e,t,void 0,arguments)},filter(e,t){return Pa(this,"filter",e,t,n=>n.map(r=>Ao(this,r)),arguments)},find(e,t){return Pa(this,"find",e,t,n=>Ao(this,n),arguments)},findIndex(e,t){return Pa(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Pa(this,"findLast",e,t,n=>Ao(this,n),arguments)},findLastIndex(e,t){return Pa(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Pa(this,"forEach",e,t,void 0,arguments)},includes(...e){return Jy(this,"includes",e)},indexOf(...e){return Jy(this,"indexOf",e)},join(e){return zu(this).join(e)},lastIndexOf(...e){return Jy(this,"lastIndexOf",e)},map(e,t){return Pa(this,"map",e,t,void 0,arguments)},pop(){return Vd(this,"pop")},push(...e){return Vd(this,"push",e)},reduce(e,...t){return cC(this,"reduce",e,t)},reduceRight(e,...t){return cC(this,"reduceRight",e,t)},shift(){return Vd(this,"shift")},some(e,t){return Pa(this,"some",e,t,void 0,arguments)},splice(...e){return Vd(this,"splice",e)},toReversed(){return zu(this).toReversed()},toSorted(e){return zu(this).toSorted(e)},toSpliced(...e){return zu(this).toSpliced(...e)},unshift(...e){return Vd(this,"unshift",e)},values(){return Xy(this,"values",e=>Ao(this,e))}};function Xy(e,t,n){const r=gv(e),i=r[t]();return r!==e&&!zi(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=n(a.value)),a}),i}const QB=Array.prototype;function Pa(e,t,n,r,i,a){const s=gv(e),o=s!==e&&!zi(e),l=s[t];if(l!==QB[t]){const d=l.apply(e,a);return o?Ys(d):d}let u=n;s!==e&&(o?u=function(d,p){return n.call(this,Ao(e,d),p,e)}:n.length>2&&(u=function(d,p){return n.call(this,d,p,e)}));const c=l.call(s,u,r);return o&&i?i(c):c}function cC(e,t,n,r){const i=gv(e);let a=n;return i!==e&&(zi(e)?n.length>3&&(a=function(s,o,l){return n.call(this,s,o,l,e)}):a=function(s,o,l){return n.call(this,s,Ao(e,o),l,e)}),i[t](a,...r)}function Jy(e,t,n){const r=it(e);Zr(r,"iterate",Lf);const i=r[t](...n);return(i===-1||i===!1)&&Np(n[0])?(n[0]=it(n[0]),r[t](...n)):i}function Vd(e,t,n=[]){so(),Pw();const r=it(e)[t].apply(e,n);return Aw(),ao(),r}const ZB=Pr("__proto__,__v_isRef,__isVue"),QR=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ki));function eU(e){ki(e)||(e=String(e));const t=it(this);return Zr(t,"has",e),t.hasOwnProperty(e)}class ZR{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(i?a?s2:i2:a?r2:n2).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Xe(t);if(!i){let l;if(s&&(l=JB[n]))return l;if(n==="hasOwnProperty")return eU}const o=Reflect.get(t,n,Tt(t)?t:r);if((ki(n)?QR.has(n):ZB(n))||(i||Zr(t,"get",n),a))return o;if(Tt(o)){const l=s&&Tp(n)?o:o.value;return i&&fn(l)?ya(l):l}return fn(o)?i?ya(o):Dn(o):o}}class e2 extends ZR{constructor(t=!1){super(!1,t)}set(t,n,r,i){let a=t[n];const s=Xe(t)&&Tp(n);if(!this._isShallow){const u=ba(a);if(!zi(r)&&!ba(r)&&(a=it(a),r=it(r)),!s&&Tt(a)&&!Tt(r))return u||(a.value=r),!0}const o=s?Number(n)<t.length:cn(t,n),l=Reflect.set(t,n,r,Tt(t)?t:i);return t===it(i)&&(o?Qr(r,a)&&Ua(t,"set",n,r):Ua(t,"add",n,r)),l}deleteProperty(t,n){const r=cn(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&Ua(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!ki(n)||!QR.has(n))&&Zr(t,"has",n),r}ownKeys(t){return Zr(t,"iterate",Xe(t)?"length":Hl),Reflect.ownKeys(t)}}class t2 extends ZR{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const tU=new e2,nU=new t2,rU=new e2(!0),iU=new t2(!0),c0=e=>e,km=e=>Reflect.getPrototypeOf(e);function sU(e,t,n){return function(...r){const i=this.__v_raw,a=it(i),s=Ul(a),o=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...r),c=n?c0:t?Ic:Ys;return!t&&Zr(a,"iterate",l?u0:Hl),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:o?[c(d[0]),c(d[1])]:c(d),done:p}},[Symbol.iterator](){return this}}}}function Cm(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function aU(e,t){const n={get(i){const a=this.__v_raw,s=it(a),o=it(i);e||(Qr(i,o)&&Zr(s,"get",i),Zr(s,"get",o));const{has:l}=km(s),u=t?c0:e?Ic:Ys;if(l.call(s,i))return u(a.get(i));if(l.call(s,o))return u(a.get(o));a!==s&&a.get(i)},get size(){const i=this.__v_raw;return!e&&Zr(it(i),"iterate",Hl),i.size},has(i){const a=this.__v_raw,s=it(a),o=it(i);return e||(Qr(i,o)&&Zr(s,"has",i),Zr(s,"has",o)),i===o?a.has(i):a.has(i)||a.has(o)},forEach(i,a){const s=this,o=s.__v_raw,l=it(o),u=t?c0:e?Ic:Ys;return!e&&Zr(l,"iterate",Hl),o.forEach((c,d)=>i.call(a,u(c),u(d),s))}};return Bt(n,e?{add:Cm("add"),set:Cm("set"),delete:Cm("delete"),clear:Cm("clear")}:{add(i){!t&&!zi(i)&&!ba(i)&&(i=it(i));const a=it(this);return km(a).has.call(a,i)||(a.add(i),Ua(a,"add",i,i)),this},set(i,a){!t&&!zi(a)&&!ba(a)&&(a=it(a));const s=it(this),{has:o,get:l}=km(s);let u=o.call(s,i);u||(i=it(i),u=o.call(s,i));const c=l.call(s,i);return s.set(i,a),u?Qr(a,c)&&Ua(s,"set",i,a):Ua(s,"add",i,a),this},delete(i){const a=it(this),{has:s,get:o}=km(a);let l=s.call(a,i);l||(i=it(i),l=s.call(a,i)),o&&o.call(a,i);const u=a.delete(i);return l&&Ua(a,"delete",i,void 0),u},clear(){const i=it(this),a=i.size!==0,s=i.clear();return a&&Ua(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=sU(i,e,t)}),n}function vv(e,t){const n=aU(e,t);return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(cn(n,i)&&i in r?n:r,i,a)}const oU={get:vv(!1,!1)},lU={get:vv(!1,!0)},uU={get:vv(!0,!1)},cU={get:vv(!0,!0)},n2=new WeakMap,r2=new WeakMap,i2=new WeakMap,s2=new WeakMap;function dU(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fU(e){return e.__v_skip||!Object.isExtensible(e)?0:dU(OR(e))}function Dn(e){return ba(e)?e:bv(e,!1,tU,oU,n2)}function Op(e){return bv(e,!1,rU,lU,r2)}function ya(e){return bv(e,!0,nU,uU,i2)}function yv(e){return bv(e,!0,iU,cU,s2)}function bv(e,t,n,r,i){if(!fn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=fU(e);if(a===0)return e;const s=i.get(e);if(s)return s;const o=new Proxy(e,a===2?r:n);return i.set(e,o),o}function qs(e){return ba(e)?qs(e.__v_raw):!!(e&&e.__v_isReactive)}function ba(e){return!!(e&&e.__v_isReadonly)}function zi(e){return!!(e&&e.__v_isShallow)}function Np(e){return e?!!e.__v_raw:!1}function it(e){const t=e&&e.__v_raw;return t?it(t):e}function Dp(e){return!cn(e,"__v_skip")&&Object.isExtensible(e)&&kw(e,"__v_skip",!0),e}const Ys=e=>fn(e)?Dn(e):e,Ic=e=>fn(e)?ya(e):e;function Tt(e){return e?e.__v_isRef===!0:!1}function z(e){return a2(e,!1)}function Fe(e){return a2(e,!0)}function a2(e,t){return Tt(e)?e:new pU(e,t)}class pU{constructor(t,n){this.dep=new hv,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:it(t),this._value=n?t:Ys(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||zi(t)||ba(t);t=r?t:it(t),Qr(t,n)&&(this._rawValue=t,this._value=r?t:Ys(t),this.dep.trigger())}}function mU(e){e.dep&&e.dep.trigger()}function ne(e){return Tt(e)?e.value:e}function yn(e){return pt(e)?e():ne(e)}const hU={get:(e,t,n)=>t==="__v_raw"?e:ne(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Tt(i)&&!Tt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ow(e){return qs(e)?e:new Proxy(e,hU)}class gU{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new hv,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function o2(e){return new gU(e)}function _a(e){const t=Xe(e)?new Array(e.length):{};for(const n in e)t[n]=l2(e,n);return t}class vU{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=it(t);let i=!0,a=t;if(!Xe(t)||!Tp(String(n)))do i=!Np(a)||zi(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=ne(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Tt(this._raw[this._key])){const n=this._object[this._key];if(Tt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return XB(this._raw,this._key)}}class yU{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ae(e,t,n){return Tt(e)?e:pt(e)?new yU(e):fn(e)&&arguments.length>1?l2(e,t,n):z(e)}function l2(e,t,n){return new vU(e,t,n)}class bU{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new hv(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Df-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Tn!==this)return GR(this,!0),!0}get value(){const t=this.dep.track();return YR(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function SU(e,t,n=!1){let r,i;return pt(e)?r=e:(r=e.get,i=e.set),new bU(r,i,n)}const wU={GET:"get",HAS:"has",ITERATE:"iterate"},EU={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},_m={},Jh=new WeakMap;let Ro;function xU(){return Ro}function u2(e,t=!1,n=Ro){if(n){let r=Jh.get(n);r||Jh.set(n,r=[]),r.push(e)}}function kU(e,t,n=jt){const{immediate:r,deep:i,once:a,scheduler:s,augmentJob:o,call:l}=n,u=C=>i?C:zi(C)||i===!1||i===0?ja(C,1):ja(C);let c,d,p,h,g=!1,v=!1;if(Tt(e)?(d=()=>e.value,g=zi(e)):qs(e)?(d=()=>u(e),g=!0):Xe(e)?(v=!0,g=e.some(C=>qs(C)||zi(C)),d=()=>e.map(C=>{if(Tt(C))return C.value;if(qs(C))return u(C);if(pt(C))return l?l(C,2):C()})):pt(e)?t?d=l?()=>l(e,2):e:d=()=>{if(p){so();try{p()}finally{ao()}}const C=Ro;Ro=c;try{return l?l(e,3,[h]):e(h)}finally{Ro=C}}:d=Tr,t&&i){const C=d,P=i===!0?1/0:i;d=()=>ja(C(),P)}const y=dd(),b=()=>{c.stop(),y&&y.active&&fv(y.effects,c)};if(a&&t){const C=t;t=(...P)=>{C(...P),b()}}let E=v?new Array(e.length).fill(_m):_m;const w=C=>{if(!(!(c.flags&1)||!c.dirty&&!C))if(t){const P=c.run();if(i||g||(v?P.some((_,A)=>Qr(_,E[A])):Qr(P,E))){p&&p();const _=Ro;Ro=c;try{const A=[P,E===_m?void 0:v&&E[0]===_m?[]:E,h];E=P,l?l(t,3,A):t(...A)}finally{Ro=_}}}else c.run()};return o&&o(w),c=new Nf(d),c.scheduler=s?()=>s(w,!1):w,h=C=>u2(C,!1,c),p=c.onStop=()=>{const C=Jh.get(c);if(C){if(l)l(C,4);else for(const P of C)P();Jh.delete(c)}},t?r?w(!0):E=c.run():s?s(w.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function ja(e,t=1/0,n){if(t<=0||!fn(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Tt(e))ja(e.value,t,n);else if(Xe(e))for(let r=0;r<e.length;r++)ja(e[r],t,n);else if(sl(e)||Ul(e))e.forEach(r=>{ja(r,t,n)});else if(_p(e)){for(const r in e)ja(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&ja(e[r],t,n)}return e}const c2=[];function CU(e){c2.push(e)}function _U(){c2.pop()}function TU(e,t){}const IU={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"},PU={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 fd(e,t,n,r){try{return r?e(...r):e()}catch(i){Pu(i,t,n)}}function As(e,t,n,r){if(pt(e)){const i=fd(e,t,n,r);return i&&pv(i)&&i.catch(a=>{Pu(a,t,n)}),i}if(Xe(e)){const i=[];for(let a=0;a<e.length;a++)i.push(As(e[a],t,n,r));return i}}function Pu(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||jt;if(t){let o=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}o=o.parent}if(a){so(),fd(a,null,10,[e,l,u]),ao();return}}AU(e,n,i,r,s)}function AU(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const bi=[];let ua=-1;const wc=[];let Oo=null,ic=0;const d2=Promise.resolve();let Qh=null;function Ct(e){const t=Qh||d2;return e?t.then(this?e.bind(this):e):t}function RU(e){let t=ua+1,n=bi.length;for(;t<n;){const r=t+n>>>1,i=bi[r],a=$f(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Nw(e){if(!(e.flags&1)){const t=$f(e),n=bi[bi.length-1];!n||!(e.flags&2)&&t>=$f(n)?bi.push(e):bi.splice(RU(t),0,e),e.flags|=1,f2()}}function f2(){Qh||(Qh=d2.then(p2))}function Ff(e){Xe(e)?wc.push(...e):Oo&&e.id===-1?Oo.splice(ic+1,0,e):e.flags&1||(wc.push(e),e.flags|=1),f2()}function dC(e,t,n=ua+1){for(;n<bi.length;n++){const r=bi[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;bi.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Zh(e){if(wc.length){const t=[...new Set(wc)].sort((n,r)=>$f(n)-$f(r));if(wc.length=0,Oo){Oo.push(...t);return}for(Oo=t,ic=0;ic<Oo.length;ic++){const n=Oo[ic];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Oo=null,ic=0}}const $f=e=>e.id==null?e.flags&2?-1:1/0:e.id;function p2(e){try{for(ua=0;ua<bi.length;ua++){const t=bi[ua];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),fd(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ua<bi.length;ua++){const t=bi[ua];t&&(t.flags&=-2)}ua=-1,bi.length=0,Zh(),Qh=null,(bi.length||wc.length)&&p2()}}let sc,Tm=[];function m2(e,t){var n,r;sc=e,sc?(sc.enabled=!0,Tm.forEach(({event:i,args:a})=>sc.emit(i,...a)),Tm=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{m2(a,t)}),setTimeout(()=>{sc||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Tm=[])},3e3)):Tm=[]}let Vr=null,Sv=null;function Mf(e){const t=Vr;return Vr=e,Sv=e&&e.type.__scopeId||null,t}function OU(e){Sv=e}function NU(){Sv=null}const DU=e=>m;function m(e,t=Vr,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&zf(-1);const a=Mf(t);let s;try{s=e(...i)}finally{Mf(a),r._d&&zf(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function dn(e,t){if(Vr===null)return e;const n=Vp(Vr),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,s,o,l=jt]=t[i];a&&(pt(a)&&(a={mounted:a,updated:a}),a.deep&&ja(s),r.push({dir:a,instance:n,value:s,oldValue:void 0,arg:o,modifiers:l}))}return e}function ca(e,t,n,r){const i=e.dirs,a=t&&t.dirs;for(let s=0;s<i.length;s++){const o=i[s];a&&(o.oldValue=a[s].value);let l=o.dir[r];l&&(so(),As(l,n,8,[e.el,o,e,t]),ao())}}function bn(e,t){if(Mr){let n=Mr.provides;const r=Mr.parent&&Mr.parent.provides;r===n&&(n=Mr.provides=Object.create(r)),n[e]=t}}function mt(e,t,n=!1){const r=Ii();if(r||Wl){let i=Wl?Wl._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&pt(t)?t.call(r&&r.proxy):t}}function Dw(){return!!(Ii()||Wl)}const h2=Symbol.for("v-scx"),g2=()=>mt(h2);function lr(e,t){return Lp(e,null,t)}function LU(e,t){return Lp(e,null,{flush:"post"})}function v2(e,t){return Lp(e,null,{flush:"sync"})}function Ne(e,t,n){return Lp(e,t,n)}function Lp(e,t,n=jt){const{immediate:r,deep:i,flush:a,once:s}=n,o=Bt({},n),l=t&&r||!t&&a!=="post";let u;if(Ac){if(a==="sync"){const h=g2();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Tr,h.resume=Tr,h.pause=Tr,h}}const c=Mr;o.call=(h,g,v)=>As(h,c,g,v);let d=!1;a==="post"?o.scheduler=h=>{cr(h,c&&c.suspense)}:a!=="sync"&&(d=!0,o.scheduler=(h,g)=>{g?h():Nw(h)}),o.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const p=kU(e,t,o);return Ac&&(u?u.push(p):l&&p()),p}function FU(e,t,n){const r=this.proxy,i=bt(e)?e.includes(".")?y2(r,e):()=>r[e]:e.bind(r,r);let a;pt(t)?a=t:(a=t.handler,n=t);const s=fu(this),o=Lp(i,a.bind(r),n);return s(),o}function y2(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const b2=Symbol("_vte"),S2=e=>e.__isTeleport,pf=e=>e&&(e.disabled||e.disabled===""),fC=e=>e&&(e.defer||e.defer===""),pC=e=>typeof SVGElement<"u"&&e instanceof SVGElement,mC=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,d0=(e,t)=>{const n=e&&e.to;return bt(n)?t?t(n):null:n},w2={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,s,o,l,u){const{mc:c,pc:d,pbc:p,o:{insert:h,querySelector:g,createText:v,createComment:y}}=u,b=pf(t.props);let{shapeFlag:E,children:w,dynamicChildren:C}=t;if(e==null){const P=t.el=v(""),_=t.anchor=v("");h(P,n,r),h(_,n,r);const A=(T,x)=>{E&16&&c(w,T,x,i,a,s,o,l)},I=()=>{const T=t.target=d0(t.props,g),x=x2(T,t,v,h);T&&(s!=="svg"&&pC(T)?s="svg":s!=="mathml"&&mC(T)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(T),b||(A(T,x),ch(t,!1)))};b&&(A(n,_),ch(t,!0)),fC(t.props)?(t.el.__isMounted=!1,cr(()=>{I(),delete t.el.__isMounted},a)):I()}else{if(fC(t.props)&&e.el.__isMounted===!1){cr(()=>{w2.process(e,t,n,r,i,a,s,o,l,u)},a);return}t.el=e.el,t.targetStart=e.targetStart;const P=t.anchor=e.anchor,_=t.target=e.target,A=t.targetAnchor=e.targetAnchor,I=pf(e.props),T=I?n:_,x=I?P:A;if(s==="svg"||pC(_)?s="svg":(s==="mathml"||mC(_))&&(s="mathml"),C?(p(e.dynamicChildren,C,T,i,a,s,o),Gw(e,t,!0)):l||d(e,t,T,x,i,a,s,o,!1),b)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Im(t,n,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const R=t.target=d0(t.props,g);R&&Im(t,R,null,u,0)}else I&&Im(t,_,A,u,1);ch(t,b)}},remove(e,t,n,{um:r,o:{remove:i}},a){const{shapeFlag:s,children:o,anchor:l,targetStart:u,targetAnchor:c,target:d,props:p}=e;if(d&&(i(u),i(c)),a&&i(l),s&16){const h=a||!pf(p);for(let g=0;g<o.length;g++){const v=o[g];r(v,t,n,h,!!v.dynamicChildren)}}},move:Im,hydrate:$U};function Im(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);const{el:s,anchor:o,shapeFlag:l,children:u,props:c}=e,d=a===2;if(d&&r(s,t,n),(!d||pf(c))&&l&16)for(let p=0;p<u.length;p++)i(u[p],t,n,2);d&&r(o,t,n)}function $U(e,t,n,r,i,a,{o:{nextSibling:s,parentNode:o,querySelector:l,insert:u,createText:c}},d){function p(v,y,b,E){y.anchor=d(s(v),y,o(v),n,r,i,a),y.targetStart=b,y.targetAnchor=E}const h=t.target=d0(t.props,l),g=pf(t.props);if(h){const v=h._lpa||h.firstChild;if(t.shapeFlag&16)if(g)p(e,t,v,v&&s(v));else{t.anchor=s(e);let y=v;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,h._lpa=t.targetAnchor&&s(t.targetAnchor);break}}y=s(y)}t.targetAnchor||x2(h,t,c,u),d(v&&s(v),t,h,n,r,i,a)}ch(t,g)}else g&&t.shapeFlag&16&&p(e,t,e,s(e));return t.anchor&&s(t.anchor)}const E2=w2;function ch(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function x2(e,t,n,r){const i=t.targetStart=n(""),a=t.targetAnchor=n("");return i[b2]=a,e&&(r(i,e),r(a,e)),a}const Va=Symbol("_leaveCb"),Pm=Symbol("_enterCb");function Lw(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Nt(()=>{e.isMounted=!0}),xr(()=>{e.isUnmounting=!0}),e}const hs=[Function,Array],Fw={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:hs,onEnter:hs,onAfterEnter:hs,onEnterCancelled:hs,onBeforeLeave:hs,onLeave:hs,onAfterLeave:hs,onLeaveCancelled:hs,onBeforeAppear:hs,onAppear:hs,onAfterAppear:hs,onAppearCancelled:hs},k2=e=>{const t=e.subTree;return t.component?k2(t.component):t},MU={name:"BaseTransition",props:Fw,setup(e,{slots:t}){const n=Ii(),r=Lw();return()=>{const i=t.default&&wv(t.default(),!0);if(!i||!i.length)return;const a=C2(i),s=it(e),{mode:o}=s;if(r.isLeaving)return Qy(a);const l=hC(a);if(!l)return Qy(a);let u=Pc(l,s,r,n,d=>u=d);l.type!==Zn&&oo(l,u);let c=n.subTree&&hC(n.subTree);if(c&&c.type!==Zn&&!Hs(c,l)&&k2(n).type!==Zn){let d=Pc(c,s,r,n);if(oo(c,d),o==="out-in"&&l.type!==Zn)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},Qy(a);o==="in-out"&&l.type!==Zn?d.delayLeave=(p,h,g)=>{const v=T2(r,c);v[String(c.key)]=c,p[Va]=()=>{h(),p[Va]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}};function C2(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Zn){t=n;break}}return t}const _2=MU;function T2(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Pc(e,t,n,r,i){const{appear:a,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:y,onAppear:b,onAfterAppear:E,onAppearCancelled:w}=t,C=String(e.key),P=T2(n,e),_=(T,x)=>{T&&As(T,r,9,x)},A=(T,x)=>{const R=x[1];_(T,x),Xe(T)?T.every(O=>O.length<=1)&&R():T.length<=1&&R()},I={mode:s,persisted:o,beforeEnter(T){let x=l;if(!n.isMounted)if(a)x=y||l;else return;T[Va]&&T[Va](!0);const R=P[C];R&&Hs(e,R)&&R.el[Va]&&R.el[Va](),_(x,[T])},enter(T){let x=u,R=c,O=d;if(!n.isMounted)if(a)x=b||u,R=E||c,O=w||d;else return;let L=!1;const F=T[Pm]=W=>{L||(L=!0,W?_(O,[T]):_(R,[T]),I.delayedLeave&&I.delayedLeave(),T[Pm]=void 0)};x?A(x,[T,F]):F()},leave(T,x){const R=String(e.key);if(T[Pm]&&T[Pm](!0),n.isUnmounting)return x();_(p,[T]);let O=!1;const L=T[Va]=F=>{O||(O=!0,x(),F?_(v,[T]):_(g,[T]),T[Va]=void 0,P[R]===e&&delete P[R])};P[R]=e,h?A(h,[T,L]):L()},clone(T){const x=Pc(T,t,n,r,i);return i&&i(x),x}};return I}function Qy(e){if(Fp(e))return e=Xs(e),e.children=null,e}function hC(e){if(!Fp(e))return S2(e.type)&&e.children?C2(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pt(n.default))return n.default()}}function oo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,oo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function wv(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let s=e[a];const o=n==null?s.key:String(n)+String(s.key!=null?s.key:a);s.type===De?(s.patchFlag&128&&i++,r=r.concat(wv(s.children,t,o))):(t||s.type!==Zn)&&r.push(o!=null?Xs(s,{key:o}):s)}if(i>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}function je(e,t){return pt(e)?Bt({name:e.name},t,{setup:e}):e}function Ti(){const e=Ii();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function $w(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function VU(e){const t=Ii(),n=Fe(null);if(t){const i=t.refs===jt?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:a=>n.value=a})}return n}const eg=new WeakMap;function Ec(e,t,n,r,i=!1){if(Xe(e)){e.forEach((g,v)=>Ec(g,t&&(Xe(t)?t[v]:t),n,r,i));return}if(Ga(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ec(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?Vp(r.component):r.el,s=i?null:a,{i:o,r:l}=e,u=t&&t.r,c=o.refs===jt?o.refs={}:o.refs,d=o.setupState,p=it(d),h=d===jt?Il:g=>cn(p,g);if(u!=null&&u!==l){if(gC(t),bt(u))c[u]=null,h(u)&&(d[u]=null);else if(Tt(u)){u.value=null;const g=t;g.k&&(c[g.k]=null)}}if(pt(l))fd(l,o,12,[s,c]);else{const g=bt(l),v=Tt(l);if(g||v){const y=()=>{if(e.f){const b=g?h(l)?d[l]:c[l]:l.value;if(i)Xe(b)&&fv(b,a);else if(Xe(b))b.includes(a)||b.push(a);else if(g)c[l]=[a],h(l)&&(d[l]=c[l]);else{const E=[a];l.value=E,e.k&&(c[e.k]=E)}}else g?(c[l]=s,h(l)&&(d[l]=s)):v&&(l.value=s,e.k&&(c[e.k]=s))};if(s){const b=()=>{y(),eg.delete(e)};b.id=-1,eg.set(e,b),cr(b,n)}else gC(e),y()}}}function gC(e){const t=eg.get(e);t&&(t.flags|=8,eg.delete(e))}let vC=!1;const Hu=()=>{vC||(console.error("Hydration completed but contains mismatches."),vC=!0)},BU=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",UU=e=>e.namespaceURI.includes("MathML"),Am=e=>{if(e.nodeType===1){if(BU(e))return"svg";if(UU(e))return"mathml"}},dc=e=>e.nodeType===8;function jU(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:o,insert:l,createComment:u}}=e,c=(w,C)=>{if(!C.hasChildNodes()){n(null,w,C),Zh(),C._vnode=w;return}d(C.firstChild,w,null,null,null),Zh(),C._vnode=w},d=(w,C,P,_,A,I=!1)=>{I=I||!!C.dynamicChildren;const T=dc(w)&&w.data==="[",x=()=>v(w,C,P,_,A,T),{type:R,ref:O,shapeFlag:L,patchFlag:F}=C;let W=w.nodeType;C.el=w,F===-2&&(I=!1,C.dynamicChildren=null);let H=null;switch(R){case qa:W!==3?C.children===""?(l(C.el=i(""),s(w),w),H=w):H=x():(w.data!==C.children&&(Hu(),w.data=C.children),H=a(w));break;case Zn:E(w)?(H=a(w),b(C.el=w.content.firstChild,w,P)):W!==8||T?H=x():H=a(w);break;case Gl:if(T&&(w=a(w),W=w.nodeType),W===1||W===3){H=w;const B=!C.children.length;for(let $=0;$<C.staticCount;$++)B&&(C.children+=H.nodeType===1?H.outerHTML:H.data),$===C.staticCount-1&&(C.anchor=H),H=a(H);return T?a(H):H}else x();break;case De:T?H=g(w,C,P,_,A,I):H=x();break;default:if(L&1)(W!==1||C.type.toLowerCase()!==w.tagName.toLowerCase())&&!E(w)?H=x():H=p(w,C,P,_,A,I);else if(L&6){C.slotScopeIds=A;const B=s(w);if(T?H=y(w):dc(w)&&w.data==="teleport start"?H=y(w,w.data,"teleport end"):H=a(w),t(C,B,null,P,_,Am(B),I),Ga(C)&&!C.type.__asyncResolved){let $;T?($=f(De),$.anchor=H?H.previousSibling:B.lastChild):$=w.nodeType===3?k(""):f("div"),$.el=w,C.component.subTree=$}}else L&64?W!==8?H=x():H=C.type.hydrate(w,C,P,_,A,I,e,h):L&128&&(H=C.type.hydrate(w,C,P,_,Am(s(w)),A,I,e,d))}return O!=null&&Ec(O,null,_,C),H},p=(w,C,P,_,A,I)=>{I=I||!!C.dynamicChildren;const{type:T,props:x,patchFlag:R,shapeFlag:O,dirs:L,transition:F}=C,W=T==="input"||T==="option";if(W||R!==-1){L&&ca(C,null,P,"created");let H=!1;if(E(w)){H=J2(null,F)&&P&&P.vnode.props&&P.vnode.props.appear;const $=w.content.firstChild;if(H){const Y=$.getAttribute("class");Y&&($.$cls=Y),F.beforeEnter($)}b($,w,P),C.el=w=$}if(O&16&&!(x&&(x.innerHTML||x.textContent))){let $=h(w.firstChild,C,w,P,_,A,I);for(;$;){Rm(w,1)||Hu();const Y=$;$=$.nextSibling,o(Y)}}else if(O&8){let $=C.children;$[0]===`
3
+ `&&(w.tagName==="PRE"||w.tagName==="TEXTAREA")&&($=$.slice(1));const{textContent:Y}=w;Y!==$&&Y!==$.replace(/\r\n|\r/g,`
4
+ `)&&(Rm(w,0)||Hu(),w.textContent=C.children)}if(x){if(W||!I||R&48){const $=w.tagName.includes("-");for(const Y in x)(W&&(Y.endsWith("value")||Y==="indeterminate")||il(Y)&&!Wa(Y)||Y[0]==="."||$)&&r(w,Y,null,x[Y],void 0,P)}else if(x.onClick)r(w,"onClick",null,x.onClick,void 0,P);else if(R&4&&qs(x.style))for(const $ in x.style)x.style[$]}let B;(B=x&&x.onVnodeBeforeMount)&&Li(B,P,C),L&&ca(C,null,P,"beforeMount"),((B=x&&x.onVnodeMounted)||L||H)&&tO(()=>{B&&Li(B,P,C),H&&F.enter(w),L&&ca(C,null,P,"mounted")},_)}return w.nextSibling},h=(w,C,P,_,A,I,T)=>{T=T||!!C.dynamicChildren;const x=C.children,R=x.length;for(let O=0;O<R;O++){const L=T?x[O]:x[O]=Fi(x[O]),F=L.type===qa;w?(F&&!T&&O+1<R&&Fi(x[O+1]).type===qa&&(l(i(w.data.slice(L.children.length)),P,a(w)),w.data=L.children),w=d(w,L,_,A,I,T)):F&&!L.children?l(L.el=i(""),P):(Rm(P,1)||Hu(),n(null,L,P,null,_,A,Am(P),I))}return w},g=(w,C,P,_,A,I)=>{const{slotScopeIds:T}=C;T&&(A=A?A.concat(T):T);const x=s(w),R=h(a(w),C,x,P,_,A,I);return R&&dc(R)&&R.data==="]"?a(C.anchor=R):(Hu(),l(C.anchor=u("]"),x,R),R)},v=(w,C,P,_,A,I)=>{if(Rm(w.parentElement,1)||Hu(),C.el=null,I){const R=y(w);for(;;){const O=a(w);if(O&&O!==R)o(O);else break}}const T=a(w),x=s(w);return o(w),n(null,C,x,T,P,_,Am(x),A),P&&(P.vnode.el=C.el,_v(P,C.el)),T},y=(w,C="[",P="]")=>{let _=0;for(;w;)if(w=a(w),w&&dc(w)&&(w.data===C&&_++,w.data===P)){if(_===0)return a(w);_--}return w},b=(w,C,P)=>{const _=C.parentNode;_&&_.replaceChild(w,C);let A=P;for(;A;)A.vnode.el===C&&(A.vnode.el=A.subTree.el=w),A=A.parent},E=w=>w.nodeType===1&&w.tagName==="TEMPLATE";return[c,d]}const yC="data-allow-mismatch",zU={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Rm(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(yC);)e=e.parentElement;const n=e&&e.getAttribute(yC);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(zU[t])}}const HU=Pp().requestIdleCallback||(e=>setTimeout(e,1)),WU=Pp().cancelIdleCallback||(e=>clearTimeout(e)),GU=(e=1e4)=>t=>{const n=HU(t,{timeout:e});return()=>WU(n)};function qU(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:s}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<s||i>0&&i<s)}const KU=e=>(t,n)=>{const r=new IntersectionObserver(i=>{for(const a of i)if(a.isIntersecting){r.disconnect(),t();break}},e);return n(i=>{if(i instanceof Element){if(qU(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},YU=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},XU=(e=[])=>(t,n)=>{bt(e)&&(e=[e]);let r=!1;const i=s=>{r||(r=!0,a(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},a=()=>{n(s=>{for(const o of e)s.removeEventListener(o,i)})};return n(s=>{for(const o of e)s.addEventListener(o,i,{once:!0})}),a};function JU(e,t){if(dc(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(dc(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Ga=e=>!!e.type.__asyncLoader;function QU(e){pt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:s,suspensible:o=!0,onError:l}=e;let u=null,c,d=0;const p=()=>(d++,u=null,h()),h=()=>{let g;return u||(g=u=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((y,b)=>{l(v,()=>y(p()),()=>b(v),d+1)});throw v}).then(v=>g!==u&&u?u:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),c=v,v)))};return je({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(g,v,y){let b=!1;(v.bu||(v.bu=[])).push(()=>b=!0);const E=()=>{b||y()},w=a?()=>{const C=a(E,P=>JU(g,P));C&&(v.bum||(v.bum=[])).push(C)}:E;c?w():h().then(()=>!v.isUnmounted&&w())},get __asyncResolved(){return c},setup(){const g=Mr;if($w(g),c)return()=>Om(c,g);const v=w=>{u=null,Pu(w,g,13,!r)};if(o&&g.suspense||Ac)return h().then(w=>()=>Om(w,g)).catch(w=>(v(w),()=>r?f(r,{error:w}):null));const y=z(!1),b=z(),E=z(!!i);return i&&setTimeout(()=>{E.value=!1},i),s!=null&&setTimeout(()=>{if(!y.value&&!b.value){const w=new Error(`Async component timed out after ${s}ms.`);v(w),b.value=w}},s),h().then(()=>{y.value=!0,g.parent&&Fp(g.parent.vnode)&&g.parent.update()}).catch(w=>{v(w),b.value=w}),()=>{if(y.value&&c)return Om(c,g);if(b.value&&r)return f(r,{error:b.value});if(n&&!E.value)return Om(n,g)}}})}function Om(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,s=f(e,r,i);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const Fp=e=>e.type.__isKeepAlive,ZU={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ii(),r=n.ctx;if(!r.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const i=new Map,a=new Set;let s=null;const o=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=r,p=d("div");r.activate=(E,w,C,P,_)=>{const A=E.component;u(E,w,C,0,o),l(A.vnode,E,w,C,A,o,P,E.slotScopeIds,_),cr(()=>{A.isDeactivated=!1,A.a&&zl(A.a);const I=E.props&&E.props.onVnodeMounted;I&&Li(I,A.parent,E)},o)},r.deactivate=E=>{const w=E.component;ng(w.m),ng(w.a),u(E,p,null,1,o),cr(()=>{w.da&&zl(w.da);const C=E.props&&E.props.onVnodeUnmounted;C&&Li(C,w.parent,E),w.isDeactivated=!0},o)};function h(E){Zy(E),c(E,n,o,!0)}function g(E){i.forEach((w,C)=>{const P=E0(Ga(w)?w.type.__asyncResolved||{}:w.type);P&&!E(P)&&v(C)})}function v(E){const w=i.get(E);w&&(!s||!Hs(w,s))?h(w):s&&Zy(s),i.delete(E),a.delete(E)}Ne(()=>[e.include,e.exclude],([E,w])=>{E&&g(C=>tf(E,C)),w&&g(C=>!tf(w,C))},{flush:"post",deep:!0});let y=null;const b=()=>{y!=null&&(rg(n.subTree.type)?cr(()=>{i.set(y,Nm(n.subTree))},n.subTree.suspense):i.set(y,Nm(n.subTree)))};return Nt(b),$p(b),xr(()=>{i.forEach(E=>{const{subTree:w,suspense:C}=n,P=Nm(w);if(E.type===P.type&&E.key===P.key){Zy(P);const _=P.component.da;_&&cr(_,C);return}h(E)})}),()=>{if(y=null,!t.default)return s=null;const E=t.default(),w=E[0];if(E.length>1)return s=null,E;if(!Sa(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return s=null,w;let C=Nm(w);if(C.type===Zn)return s=null,C;const P=C.type,_=E0(Ga(C)?C.type.__asyncResolved||{}:P),{include:A,exclude:I,max:T}=e;if(A&&(!_||!tf(A,_))||I&&_&&tf(I,_))return C.shapeFlag&=-257,s=C,w;const x=C.key==null?P:C.key,R=i.get(x);return C.el&&(C=Xs(C),w.shapeFlag&128&&(w.ssContent=C)),y=x,R?(C.el=R.el,C.component=R.component,C.transition&&oo(C,C.transition),C.shapeFlag|=512,a.delete(x),a.add(x)):(a.add(x),T&&a.size>parseInt(T,10)&&v(a.values().next().value)),C.shapeFlag|=256,s=C,rg(w.type)?w:C}}},e6=ZU;function tf(e,t){return Xe(e)?e.some(n=>tf(n,t)):bt(e)?e.split(",").includes(t):RR(e)?(e.lastIndex=0,e.test(t)):!1}function Mw(e,t){I2(e,"a",t)}function Ev(e,t){I2(e,"da",t)}function I2(e,t,n=Mr){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(xv(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Fp(i.parent.vnode)&&t6(r,t,n,i),i=i.parent}}function t6(e,t,n,r){const i=xv(t,e,r,!0);Au(()=>{fv(r[t],i)},n)}function Zy(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Nm(e){return e.shapeFlag&128?e.ssContent:e}function xv(e,t,n=Mr,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{so();const o=fu(n),l=As(t,n,e,s);return o(),ao(),l});return r?i.unshift(a):i.push(a),a}}const So=e=>(t,n=Mr)=>{(!Ac||e==="sp")&&xv(e,(...r)=>t(...r),n)},al=So("bm"),Nt=So("m"),kv=So("bu"),$p=So("u"),xr=So("bum"),Au=So("um"),P2=So("sp"),A2=So("rtg"),R2=So("rtc");function O2(e,t=Mr){xv("ec",e,t)}const Vw="components",n6="directives";function Vf(e,t){return Bw(Vw,e,!0,t)||e}const N2=Symbol.for("v-ndc");function D2(e){return bt(e)?Bw(Vw,e,!1)||e:e||N2}function Bf(e){return Bw(n6,e)}function Bw(e,t,n=!0,r=!1){const i=Vr||Mr;if(i){const a=i.type;if(e===Vw){const o=E0(a,!1);if(o&&(o===t||o===kn(t)||o===Ji(kn(t))))return a}const s=bC(i[e]||a[e],t)||bC(i.appContext[e],t);return!s&&r?a:s}}function bC(e,t){return e&&(e[t]||e[kn(t)]||e[Ji(kn(t))])}function Vt(e,t,n,r){let i;const a=n&&n[r],s=Xe(e);if(s||bt(e)){const o=s&&qs(e);let l=!1,u=!1;o&&(l=!zi(e),u=ba(e),e=gv(e)),i=new Array(e.length);for(let c=0,d=e.length;c<d;c++)i[c]=t(l?u?Ic(Ys(e[c])):Ys(e[c]):e[c],c,void 0,a&&a[c])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,a&&a[o])}else if(fn(e))if(e[Symbol.iterator])i=Array.from(e,(o,l)=>t(o,l,void 0,a&&a[l]));else{const o=Object.keys(e);i=new Array(o.length);for(let l=0,u=o.length;l<u;l++){const c=o[l];i[l]=t(e[c],c,l,a&&a[l])}}else i=[];return n&&(n[r]=i),i}function Uw(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Xe(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function cu(e,t,n={},r,i){if(Vr.ce||Vr.parent&&Ga(Vr.parent)&&Vr.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),N(),Z(De,null,[f("slot",n,r&&r())],u?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),N();const s=a&&jw(a(n)),o=n.key||s&&s.key,l=Z(De,{key:(o&&!ki(o)?o:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function jw(e){return e.some(t=>Sa(t)?!(t.type===Zn||t.type===De&&!jw(t.children)):!0)?e:null}function r6(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:jl(r)]=e[r];return n}const f0=e=>e?aO(e)?Vp(e):f0(e.parent):null,mf=Bt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>f0(e.parent),$root:e=>f0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zw(e),$forceUpdate:e=>e.f||(e.f=()=>{Nw(e.update)}),$nextTick:e=>e.n||(e.n=Ct.bind(e.proxy)),$watch:e=>FU.bind(e)}),eb=(e,t)=>e!==jt&&!e.__isScriptSetup&&cn(e,t),p0={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:o,appContext:l}=e;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(eb(r,t))return s[t]=1,r[t];if(i!==jt&&cn(i,t))return s[t]=2,i[t];if(cn(a,t))return s[t]=3,a[t];if(n!==jt&&cn(n,t))return s[t]=4,n[t];m0&&(s[t]=0)}}const u=mf[t];let c,d;if(u)return t==="$attrs"&&Zr(e.attrs,"get",""),u(e);if((c=o.__cssModules)&&(c=c[t]))return c;if(n!==jt&&cn(n,t))return s[t]=4,n[t];if(d=l.config.globalProperties,cn(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return eb(i,t)?(i[t]=n,!0):r!==jt&&cn(r,t)?(r[t]=n,!0):cn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:s}},o){let l;return!!(n[o]||e!==jt&&o[0]!=="$"&&cn(e,o)||eb(t,o)||cn(a,o)||cn(r,o)||cn(mf,o)||cn(i.config.globalProperties,o)||(l=s.__cssModules)&&l[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:cn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},i6=Bt({},p0,{get(e,t){if(t!==Symbol.unscopables)return p0.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Cw(t)}});function s6(){return null}function a6(){return null}function o6(e){}function l6(e){}function u6(){return null}function c6(){}function d6(e,t){return null}function f6(){return L2().slots}function p6(){return L2().attrs}function L2(e){const t=Ii();return t.setupContext||(t.setupContext=uO(t))}function Uf(e){return Xe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function m6(e,t){const n=Uf(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?Xe(i)||pt(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function h6(e,t){return!e||!t?e||t:Xe(e)&&Xe(t)?e.concat(t):Bt({},Uf(e),Uf(t))}function g6(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function v6(e){const t=Ii();let n=e();return b0(),pv(n)&&(n=n.catch(r=>{throw fu(t),r})),[n,()=>fu(t)]}let m0=!0;function y6(e){const t=zw(e),n=e.proxy,r=e.ctx;m0=!1,t.beforeCreate&&SC(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:s,watch:o,provide:l,inject:u,created:c,beforeMount:d,mounted:p,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:E,destroyed:w,unmounted:C,render:P,renderTracked:_,renderTriggered:A,errorCaptured:I,serverPrefetch:T,expose:x,inheritAttrs:R,components:O,directives:L,filters:F}=t;if(u&&b6(u,r,null),s)for(const B in s){const $=s[B];pt($)&&(r[B]=$.bind(n))}if(i){const B=i.call(n,n);fn(B)&&(e.data=Dn(B))}if(m0=!0,a)for(const B in a){const $=a[B],Y=pt($)?$.bind(n,n):pt($.get)?$.get.bind(n,n):Tr,q=!pt($)&&pt($.set)?$.set.bind(n):Tr,U=D({get:Y,set:q});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>U.value,set:M=>U.value=M})}if(o)for(const B in o)F2(o[B],r,n,B);if(l){const B=pt(l)?l.call(n):l;Reflect.ownKeys(B).forEach($=>{bn($,B[$])})}c&&SC(c,e,"c");function H(B,$){Xe($)?$.forEach(Y=>B(Y.bind(n))):$&&B($.bind(n))}if(H(al,d),H(Nt,p),H(kv,h),H($p,g),H(Mw,v),H(Ev,y),H(O2,I),H(R2,_),H(A2,A),H(xr,E),H(Au,C),H(P2,T),Xe(x))if(x.length){const B=e.exposed||(e.exposed={});x.forEach($=>{Object.defineProperty(B,$,{get:()=>n[$],set:Y=>n[$]=Y,enumerable:!0})})}else e.exposed||(e.exposed={});P&&e.render===Tr&&(e.render=P),R!=null&&(e.inheritAttrs=R),O&&(e.components=O),L&&(e.directives=L),T&&$w(e)}function b6(e,t,n=Tr){Xe(e)&&(e=h0(e));for(const r in e){const i=e[r];let a;fn(i)?"default"in i?a=mt(i.from||r,i.default,!0):a=mt(i.from||r):a=mt(i),Tt(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function SC(e,t,n){As(Xe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function F2(e,t,n,r){let i=r.includes(".")?y2(n,r):()=>n[r];if(bt(e)){const a=t[e];pt(a)&&Ne(i,a)}else if(pt(e))Ne(i,e.bind(n));else if(fn(e))if(Xe(e))e.forEach(a=>F2(a,t,n,r));else{const a=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(a)&&Ne(i,a,e)}}function zw(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,o=a.get(t);let l;return o?l=o:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>tg(l,u,s,!0)),tg(l,t,s)),fn(t)&&a.set(t,l),l}function tg(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&tg(e,a,n,!0),i&&i.forEach(s=>tg(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const o=S6[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const S6={data:wC,props:EC,emits:EC,methods:nf,computed:nf,beforeCreate:mi,created:mi,beforeMount:mi,mounted:mi,beforeUpdate:mi,updated:mi,beforeDestroy:mi,beforeUnmount:mi,destroyed:mi,unmounted:mi,activated:mi,deactivated:mi,errorCaptured:mi,serverPrefetch:mi,components:nf,directives:nf,watch:E6,provide:wC,inject:w6};function wC(e,t){return t?e?function(){return Bt(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function w6(e,t){return nf(h0(e),h0(t))}function h0(e){if(Xe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function mi(e,t){return e?[...new Set([].concat(e,t))]:t}function nf(e,t){return e?Bt(Object.create(null),e,t):t}function EC(e,t){return e?Xe(e)&&Xe(t)?[...new Set([...e,...t])]:Bt(Object.create(null),Uf(e),Uf(t??{})):t}function E6(e,t){if(!e)return t;if(!t)return e;const n=Bt(Object.create(null),e);for(const r in t)n[r]=mi(e[r],t[r]);return n}function $2(){return{app:null,config:{isNativeTag:Il,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 x6=0;function k6(e,t){return function(r,i=null){pt(r)||(r=Bt({},r)),i!=null&&!fn(i)&&(i=null);const a=$2(),s=new WeakSet,o=[];let l=!1;const u=a.app={_uid:x6++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:dO,get config(){return a.config},set config(c){},use(c,...d){return s.has(c)||(c&&pt(c.install)?(s.add(c),c.install(u,...d)):pt(c)&&(s.add(c),c(u,...d))),u},mixin(c){return a.mixins.includes(c)||a.mixins.push(c),u},component(c,d){return d?(a.components[c]=d,u):a.components[c]},directive(c,d){return d?(a.directives[c]=d,u):a.directives[c]},mount(c,d,p){if(!l){const h=u._ceVNode||f(r,i);return h.appContext=a,p===!0?p="svg":p===!1&&(p=void 0),d&&t?t(h,c):e(h,c,p),l=!0,u._container=c,c.__vue_app__=u,Vp(h.component)}},onUnmount(c){o.push(c)},unmount(){l&&(As(o,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return a.provides[c]=d,u},runWithContext(c){const d=Wl;Wl=u;try{return c()}finally{Wl=d}}};return u}}let Wl=null;function C6(e,t,n=jt){const r=Ii(),i=kn(t),a=ei(t),s=M2(e,i),o=o2((l,u)=>{let c,d=jt,p;return v2(()=>{const h=e[i];Qr(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){const g=n.set?n.set(h):h;if(!Qr(g,c)&&!(d!==jt&&Qr(h,d)))return;const v=r.vnode.props;v&&(t in v||i in v||a in v)&&(`onUpdate:${t}`in v||`onUpdate:${i}`in v||`onUpdate:${a}`in v)||(c=h,u()),r.emit(`update:${t}`,g),Qr(h,g)&&Qr(h,d)&&!Qr(g,p)&&u(),d=h,p=g}}});return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||jt:o,done:!1}:{done:!0}}}},o}const M2=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${kn(t)}Modifiers`]||e[`${ei(t)}Modifiers`];function _6(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||jt;let i=n;const a=t.startsWith("update:"),s=a&&M2(r,t.slice(7));s&&(s.trim&&(i=n.map(c=>bt(c)?c.trim():c)),s.number&&(i=n.map(Ip)));let o,l=r[o=jl(t)]||r[o=jl(kn(t))];!l&&a&&(l=r[o=jl(ei(t))]),l&&As(l,e,6,i);const u=r[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,As(u,e,6,i)}}const T6=new WeakMap;function V2(e,t,n=!1){const r=n?T6:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let s={},o=!1;if(!pt(e)){const l=u=>{const c=V2(u,t,!0);c&&(o=!0,Bt(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!o?(fn(e)&&r.set(e,null),null):(Xe(a)?a.forEach(l=>s[l]=null):Bt(s,a),fn(e)&&r.set(e,s),s)}function Cv(e,t){return!e||!il(t)?!1:(t=t.slice(2).replace(/Once$/,""),cn(e,t[0].toLowerCase()+t.slice(1))||cn(e,ei(t))||cn(e,t))}function dh(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:o,emit:l,render:u,renderCache:c,props:d,data:p,setupState:h,ctx:g,inheritAttrs:v}=e,y=Mf(e);let b,E;try{if(n.shapeFlag&4){const C=i||r,P=C;b=Fi(u.call(P,C,c,d,h,p,g)),E=o}else{const C=t;b=Fi(C.length>1?C(d,{attrs:o,slots:s,emit:l}):C(d,null)),E=t.props?o:P6(o)}}catch(C){hf.length=0,Pu(C,e,1),b=f(Zn)}let w=b;if(E&&v!==!1){const C=Object.keys(E),{shapeFlag:P}=w;C.length&&P&7&&(a&&C.some(dv)&&(E=A6(E,a)),w=Xs(w,E,!1,!0))}return n.dirs&&(w=Xs(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&oo(w,n.transition),b=w,Mf(y),b}function I6(e,t=!0){let n;for(let r=0;r<e.length;r++){const i=e[r];if(Sa(i)){if(i.type!==Zn||i.children==="v-if"){if(n)return;n=i}}else return}return n}const P6=e=>{let t;for(const n in e)(n==="class"||n==="style"||il(n))&&((t||(t={}))[n]=e[n]);return t},A6=(e,t)=>{const n={};for(const r in e)(!dv(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function R6(e,t,n){const{props:r,children:i,component:a}=e,{props:s,children:o,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?xC(r,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const p=c[d];if(s[p]!==r[p]&&!Cv(u,p))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===s?!1:r?s?xC(r,s,u):!0:!!s;return!1}function xC(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const a=r[i];if(t[a]!==e[a]&&!Cv(n,a))return!0}return!1}function _v({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const B2={},U2=()=>Object.create(B2),j2=e=>Object.getPrototypeOf(e)===B2;function O6(e,t,n,r=!1){const i={},a=U2();e.propsDefaults=Object.create(null),z2(e,t,i,a);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:Op(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function N6(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:s}}=e,o=it(i),[l]=e.propsOptions;let u=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let p=c[d];if(Cv(e.emitsOptions,p))continue;const h=t[p];if(l)if(cn(a,p))h!==a[p]&&(a[p]=h,u=!0);else{const g=kn(p);i[g]=g0(l,o,g,h,e,!1)}else h!==a[p]&&(a[p]=h,u=!0)}}}else{z2(e,t,i,a)&&(u=!0);let c;for(const d in o)(!t||!cn(t,d)&&((c=ei(d))===d||!cn(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=g0(l,o,d,void 0,e,!0)):delete i[d]);if(a!==o)for(const d in a)(!t||!cn(t,d))&&(delete a[d],u=!0)}u&&Ua(e.attrs,"set","")}function z2(e,t,n,r){const[i,a]=e.propsOptions;let s=!1,o;if(t)for(let l in t){if(Wa(l))continue;const u=t[l];let c;i&&cn(i,c=kn(l))?!a||!a.includes(c)?n[c]=u:(o||(o={}))[c]=u:Cv(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,s=!0)}if(a){const l=it(n),u=o||jt;for(let c=0;c<a.length;c++){const d=a[c];n[d]=g0(i,l,d,u[d],e,!cn(u,d))}}return s}function g0(e,t,n,r,i,a){const s=e[n];if(s!=null){const o=cn(s,"default");if(o&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&pt(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=fu(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}s[0]&&(a&&!o?r=!1:s[1]&&(r===""||r===ei(n))&&(r=!0))}return r}const D6=new WeakMap;function H2(e,t,n=!1){const r=n?D6:t.propsCache,i=r.get(e);if(i)return i;const a=e.props,s={},o=[];let l=!1;if(!pt(e)){const c=d=>{l=!0;const[p,h]=H2(d,t,!0);Bt(s,p),h&&o.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return fn(e)&&r.set(e,Bl),Bl;if(Xe(a))for(let c=0;c<a.length;c++){const d=kn(a[c]);kC(d)&&(s[d]=jt)}else if(a)for(const c in a){const d=kn(c);if(kC(d)){const p=a[c],h=s[d]=Xe(p)||pt(p)?{type:p}:Bt({},p),g=h.type;let v=!1,y=!0;if(Xe(g))for(let b=0;b<g.length;++b){const E=g[b],w=pt(E)&&E.name;if(w==="Boolean"){v=!0;break}else w==="String"&&(y=!1)}else v=pt(g)&&g.name==="Boolean";h[0]=v,h[1]=y,(v||cn(h,"default"))&&o.push(d)}}const u=[s,o];return fn(e)&&r.set(e,u),u}function kC(e){return e[0]!=="$"&&!Wa(e)}const Hw=e=>e==="_"||e==="_ctx"||e==="$stable",Ww=e=>Xe(e)?e.map(Fi):[Fi(e)],L6=(e,t,n)=>{if(t._n)return t;const r=m((...i)=>Ww(t(...i)),n);return r._c=!1,r},W2=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Hw(i))continue;const a=e[i];if(pt(a))t[i]=L6(i,a,r);else if(a!=null){const s=Ww(a);t[i]=()=>s}}},G2=(e,t)=>{const n=Ww(t);e.slots.default=()=>n},q2=(e,t,n)=>{for(const r in t)(n||!Hw(r))&&(e[r]=t[r])},F6=(e,t,n)=>{const r=e.slots=U2();if(e.vnode.shapeFlag&32){const i=t._;i?(q2(r,t,n),n&&kw(r,"_",i,!0)):W2(t,r)}else t&&G2(e,t)},$6=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=jt;if(r.shapeFlag&32){const o=t._;o?n&&o===1?a=!1:q2(i,t,n):(a=!t.$stable,W2(t,i)),s=t}else t&&(G2(e,t),s={default:1});if(a)for(const o in i)!Hw(o)&&s[o]==null&&delete i[o]},cr=tO;function K2(e){return X2(e)}function Y2(e){return X2(e,jU)}function X2(e,t){const n=Pp();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:s,createText:o,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:p,setScopeId:h=Tr,insertStaticContent:g}=e,v=(G,J,de,oe=null,be=null,Ce=null,ue=void 0,ge=null,_e=!!J.dynamicChildren)=>{if(G===J)return;G&&!Hs(G,J)&&(oe=Q(G),M(G,be,Ce,!0),G=null),J.patchFlag===-2&&(_e=!1,J.dynamicChildren=null);const{type:ce,ref:Be,shapeFlag:Ie}=J;switch(ce){case qa:y(G,J,de,oe);break;case Zn:b(G,J,de,oe);break;case Gl:G==null&&E(J,de,oe,ue);break;case De:O(G,J,de,oe,be,Ce,ue,ge,_e);break;default:Ie&1?P(G,J,de,oe,be,Ce,ue,ge,_e):Ie&6?L(G,J,de,oe,be,Ce,ue,ge,_e):(Ie&64||Ie&128)&&ce.process(G,J,de,oe,be,Ce,ue,ge,_e,ie)}Be!=null&&be?Ec(Be,G&&G.ref,Ce,J||G,!J):Be==null&&G&&G.ref!=null&&Ec(G.ref,null,Ce,G,!0)},y=(G,J,de,oe)=>{if(G==null)r(J.el=o(J.children),de,oe);else{const be=J.el=G.el;J.children!==G.children&&u(be,J.children)}},b=(G,J,de,oe)=>{G==null?r(J.el=l(J.children||""),de,oe):J.el=G.el},E=(G,J,de,oe)=>{[G.el,G.anchor]=g(G.children,J,de,oe,G.el,G.anchor)},w=({el:G,anchor:J},de,oe)=>{let be;for(;G&&G!==J;)be=p(G),r(G,de,oe),G=be;r(J,de,oe)},C=({el:G,anchor:J})=>{let de;for(;G&&G!==J;)de=p(G),i(G),G=de;i(J)},P=(G,J,de,oe,be,Ce,ue,ge,_e)=>{if(J.type==="svg"?ue="svg":J.type==="math"&&(ue="mathml"),G==null)_(J,de,oe,be,Ce,ue,ge,_e);else{const ce=G.el&&G.el._isVueCE?G.el:null;try{ce&&ce._beginPatch(),T(G,J,be,Ce,ue,ge,_e)}finally{ce&&ce._endPatch()}}},_=(G,J,de,oe,be,Ce,ue,ge)=>{let _e,ce;const{props:Be,shapeFlag:Ie,transition:Me,dirs:Je}=G;if(_e=G.el=s(G.type,Ce,Be&&Be.is,Be),Ie&8?c(_e,G.children):Ie&16&&I(G.children,_e,null,oe,be,tb(G,Ce),ue,ge),Je&&ca(G,null,oe,"created"),A(_e,G,G.scopeId,ue,oe),Be){for(const At in Be)At!=="value"&&!Wa(At)&&a(_e,At,null,Be[At],Ce,oe);"value"in Be&&a(_e,"value",null,Be.value,Ce),(ce=Be.onVnodeBeforeMount)&&Li(ce,oe,G)}Je&&ca(G,null,oe,"beforeMount");const Ze=J2(be,Me);Ze&&Me.beforeEnter(_e),r(_e,J,de),((ce=Be&&Be.onVnodeMounted)||Ze||Je)&&cr(()=>{ce&&Li(ce,oe,G),Ze&&Me.enter(_e),Je&&ca(G,null,oe,"mounted")},be)},A=(G,J,de,oe,be)=>{if(de&&h(G,de),oe)for(let Ce=0;Ce<oe.length;Ce++)h(G,oe[Ce]);if(be){let Ce=be.subTree;if(J===Ce||rg(Ce.type)&&(Ce.ssContent===J||Ce.ssFallback===J)){const ue=be.vnode;A(G,ue,ue.scopeId,ue.slotScopeIds,be.parent)}}},I=(G,J,de,oe,be,Ce,ue,ge,_e=0)=>{for(let ce=_e;ce<G.length;ce++){const Be=G[ce]=ge?No(G[ce]):Fi(G[ce]);v(null,Be,J,de,oe,be,Ce,ue,ge)}},T=(G,J,de,oe,be,Ce,ue)=>{const ge=J.el=G.el;let{patchFlag:_e,dynamicChildren:ce,dirs:Be}=J;_e|=G.patchFlag&16;const Ie=G.props||jt,Me=J.props||jt;let Je;if(de&&gl(de,!1),(Je=Me.onVnodeBeforeUpdate)&&Li(Je,de,J,G),Be&&ca(J,G,de,"beforeUpdate"),de&&gl(de,!0),(Ie.innerHTML&&Me.innerHTML==null||Ie.textContent&&Me.textContent==null)&&c(ge,""),ce?x(G.dynamicChildren,ce,ge,de,oe,tb(J,be),Ce):ue||$(G,J,ge,null,de,oe,tb(J,be),Ce,!1),_e>0){if(_e&16)R(ge,Ie,Me,de,be);else if(_e&2&&Ie.class!==Me.class&&a(ge,"class",null,Me.class,be),_e&4&&a(ge,"style",Ie.style,Me.style,be),_e&8){const Ze=J.dynamicProps;for(let At=0;At<Ze.length;At++){const pe=Ze[At],me=Ie[pe],ke=Me[pe];(ke!==me||pe==="value")&&a(ge,pe,me,ke,be,de)}}_e&1&&G.children!==J.children&&c(ge,J.children)}else!ue&&ce==null&&R(ge,Ie,Me,de,be);((Je=Me.onVnodeUpdated)||Be)&&cr(()=>{Je&&Li(Je,de,J,G),Be&&ca(J,G,de,"updated")},oe)},x=(G,J,de,oe,be,Ce,ue)=>{for(let ge=0;ge<J.length;ge++){const _e=G[ge],ce=J[ge],Be=_e.el&&(_e.type===De||!Hs(_e,ce)||_e.shapeFlag&198)?d(_e.el):de;v(_e,ce,Be,null,oe,be,Ce,ue,!0)}},R=(G,J,de,oe,be)=>{if(J!==de){if(J!==jt)for(const Ce in J)!Wa(Ce)&&!(Ce in de)&&a(G,Ce,J[Ce],null,be,oe);for(const Ce in de){if(Wa(Ce))continue;const ue=de[Ce],ge=J[Ce];ue!==ge&&Ce!=="value"&&a(G,Ce,ge,ue,be,oe)}"value"in de&&a(G,"value",J.value,de.value,be)}},O=(G,J,de,oe,be,Ce,ue,ge,_e)=>{const ce=J.el=G?G.el:o(""),Be=J.anchor=G?G.anchor:o("");let{patchFlag:Ie,dynamicChildren:Me,slotScopeIds:Je}=J;Je&&(ge=ge?ge.concat(Je):Je),G==null?(r(ce,de,oe),r(Be,de,oe),I(J.children||[],de,Be,be,Ce,ue,ge,_e)):Ie>0&&Ie&64&&Me&&G.dynamicChildren&&G.dynamicChildren.length===Me.length?(x(G.dynamicChildren,Me,de,be,Ce,ue,ge),(J.key!=null||be&&J===be.subTree)&&Gw(G,J,!0)):$(G,J,de,Be,be,Ce,ue,ge,_e)},L=(G,J,de,oe,be,Ce,ue,ge,_e)=>{J.slotScopeIds=ge,G==null?J.shapeFlag&512?be.ctx.activate(J,de,oe,ue,_e):F(J,de,oe,be,Ce,ue,_e):W(G,J,_e)},F=(G,J,de,oe,be,Ce,ue)=>{const ge=G.component=sO(G,oe,be);if(Fp(G)&&(ge.ctx.renderer=ie),oO(ge,!1,ue),ge.asyncDep){if(be&&be.registerDep(ge,H,ue),!G.el){const _e=ge.subTree=f(Zn);b(null,_e,J,de),G.placeholder=_e.el}}else H(ge,G,J,de,be,Ce,ue)},W=(G,J,de)=>{const oe=J.component=G.component;if(R6(G,J,de))if(oe.asyncDep&&!oe.asyncResolved){B(oe,J,de);return}else oe.next=J,oe.update();else J.el=G.el,oe.vnode=J},H=(G,J,de,oe,be,Ce,ue)=>{const ge=()=>{if(G.isMounted){let{next:Ie,bu:Me,u:Je,parent:Ze,vnode:At}=G;{const Ye=Q2(G);if(Ye){Ie&&(Ie.el=At.el,B(G,Ie,ue)),Ye.asyncDep.then(()=>{G.isUnmounted||ge()});return}}let pe=Ie,me;gl(G,!1),Ie?(Ie.el=At.el,B(G,Ie,ue)):Ie=At,Me&&zl(Me),(me=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&Li(me,Ze,Ie,At),gl(G,!0);const ke=dh(G),Le=G.subTree;G.subTree=ke,v(Le,ke,d(Le.el),Q(Le),G,be,Ce),Ie.el=ke.el,pe===null&&_v(G,ke.el),Je&&cr(Je,be),(me=Ie.props&&Ie.props.onVnodeUpdated)&&cr(()=>Li(me,Ze,Ie,At),be)}else{let Ie;const{el:Me,props:Je}=J,{bm:Ze,m:At,parent:pe,root:me,type:ke}=G,Le=Ga(J);if(gl(G,!1),Ze&&zl(Ze),!Le&&(Ie=Je&&Je.onVnodeBeforeMount)&&Li(Ie,pe,J),gl(G,!0),Me&&Pe){const Ye=()=>{G.subTree=dh(G),Pe(Me,G.subTree,G,be,null)};Le&&ke.__asyncHydrate?ke.__asyncHydrate(Me,G,Ye):Ye()}else{me.ce&&me.ce._def.shadowRoot!==!1&&me.ce._injectChildStyle(ke);const Ye=G.subTree=dh(G);v(null,Ye,de,oe,G,be,Ce),J.el=Ye.el}if(At&&cr(At,be),!Le&&(Ie=Je&&Je.onVnodeMounted)){const Ye=J;cr(()=>Li(Ie,pe,Ye),be)}(J.shapeFlag&256||pe&&Ga(pe.vnode)&&pe.vnode.shapeFlag&256)&&G.a&&cr(G.a,be),G.isMounted=!0,J=de=oe=null}};G.scope.on();const _e=G.effect=new Nf(ge);G.scope.off();const ce=G.update=_e.run.bind(_e),Be=G.job=_e.runIfDirty.bind(_e);Be.i=G,Be.id=G.uid,_e.scheduler=()=>Nw(Be),gl(G,!0),ce()},B=(G,J,de)=>{J.component=G;const oe=G.vnode.props;G.vnode=J,G.next=null,N6(G,J.props,oe,de),$6(G,J.children,de),so(),dC(G),ao()},$=(G,J,de,oe,be,Ce,ue,ge,_e=!1)=>{const ce=G&&G.children,Be=G?G.shapeFlag:0,Ie=J.children,{patchFlag:Me,shapeFlag:Je}=J;if(Me>0){if(Me&128){q(ce,Ie,de,oe,be,Ce,ue,ge,_e);return}else if(Me&256){Y(ce,Ie,de,oe,be,Ce,ue,ge,_e);return}}Je&8?(Be&16&&Re(ce,be,Ce),Ie!==ce&&c(de,Ie)):Be&16?Je&16?q(ce,Ie,de,oe,be,Ce,ue,ge,_e):Re(ce,be,Ce,!0):(Be&8&&c(de,""),Je&16&&I(Ie,de,oe,be,Ce,ue,ge,_e))},Y=(G,J,de,oe,be,Ce,ue,ge,_e)=>{G=G||Bl,J=J||Bl;const ce=G.length,Be=J.length,Ie=Math.min(ce,Be);let Me;for(Me=0;Me<Ie;Me++){const Je=J[Me]=_e?No(J[Me]):Fi(J[Me]);v(G[Me],Je,de,null,be,Ce,ue,ge,_e)}ce>Be?Re(G,be,Ce,!0,!1,Ie):I(J,de,oe,be,Ce,ue,ge,_e,Ie)},q=(G,J,de,oe,be,Ce,ue,ge,_e)=>{let ce=0;const Be=J.length;let Ie=G.length-1,Me=Be-1;for(;ce<=Ie&&ce<=Me;){const Je=G[ce],Ze=J[ce]=_e?No(J[ce]):Fi(J[ce]);if(Hs(Je,Ze))v(Je,Ze,de,null,be,Ce,ue,ge,_e);else break;ce++}for(;ce<=Ie&&ce<=Me;){const Je=G[Ie],Ze=J[Me]=_e?No(J[Me]):Fi(J[Me]);if(Hs(Je,Ze))v(Je,Ze,de,null,be,Ce,ue,ge,_e);else break;Ie--,Me--}if(ce>Ie){if(ce<=Me){const Je=Me+1,Ze=Je<Be?J[Je].el:oe;for(;ce<=Me;)v(null,J[ce]=_e?No(J[ce]):Fi(J[ce]),de,Ze,be,Ce,ue,ge,_e),ce++}}else if(ce>Me)for(;ce<=Ie;)M(G[ce],be,Ce,!0),ce++;else{const Je=ce,Ze=ce,At=new Map;for(ce=Ze;ce<=Me;ce++){const wt=J[ce]=_e?No(J[ce]):Fi(J[ce]);wt.key!=null&&At.set(wt.key,ce)}let pe,me=0;const ke=Me-Ze+1;let Le=!1,Ye=0;const ut=new Array(ke);for(ce=0;ce<ke;ce++)ut[ce]=0;for(ce=Je;ce<=Ie;ce++){const wt=G[ce];if(me>=ke){M(wt,be,Ce,!0);continue}let rn;if(wt.key!=null)rn=At.get(wt.key);else for(pe=Ze;pe<=Me;pe++)if(ut[pe-Ze]===0&&Hs(wt,J[pe])){rn=pe;break}rn===void 0?M(wt,be,Ce,!0):(ut[rn-Ze]=ce+1,rn>=Ye?Ye=rn:Le=!0,v(wt,J[rn],de,null,be,Ce,ue,ge,_e),me++)}const St=Le?M6(ut):Bl;for(pe=St.length-1,ce=ke-1;ce>=0;ce--){const wt=Ze+ce,rn=J[wt],ft=J[wt+1],Qe=wt+1<Be?ft.el||Z2(ft):oe;ut[ce]===0?v(null,rn,de,Qe,be,Ce,ue,ge,_e):Le&&(pe<0||ce!==St[pe]?U(rn,de,Qe,2):pe--)}}},U=(G,J,de,oe,be=null)=>{const{el:Ce,type:ue,transition:ge,children:_e,shapeFlag:ce}=G;if(ce&6){U(G.component.subTree,J,de,oe);return}if(ce&128){G.suspense.move(J,de,oe);return}if(ce&64){ue.move(G,J,de,ie);return}if(ue===De){r(Ce,J,de);for(let Ie=0;Ie<_e.length;Ie++)U(_e[Ie],J,de,oe);r(G.anchor,J,de);return}if(ue===Gl){w(G,J,de);return}if(oe!==2&&ce&1&&ge)if(oe===0)ge.beforeEnter(Ce),r(Ce,J,de),cr(()=>ge.enter(Ce),be);else{const{leave:Ie,delayLeave:Me,afterLeave:Je}=ge,Ze=()=>{G.ctx.isUnmounted?i(Ce):r(Ce,J,de)},At=()=>{Ce._isLeaving&&Ce[Va](!0),Ie(Ce,()=>{Ze(),Je&&Je()})};Me?Me(Ce,Ze,At):At()}else r(Ce,J,de)},M=(G,J,de,oe=!1,be=!1)=>{const{type:Ce,props:ue,ref:ge,children:_e,dynamicChildren:ce,shapeFlag:Be,patchFlag:Ie,dirs:Me,cacheIndex:Je}=G;if(Ie===-2&&(be=!1),ge!=null&&(so(),Ec(ge,null,de,G,!0),ao()),Je!=null&&(J.renderCache[Je]=void 0),Be&256){J.ctx.deactivate(G);return}const Ze=Be&1&&Me,At=!Ga(G);let pe;if(At&&(pe=ue&&ue.onVnodeBeforeUnmount)&&Li(pe,J,G),Be&6)he(G.component,de,oe);else{if(Be&128){G.suspense.unmount(de,oe);return}Ze&&ca(G,null,J,"beforeUnmount"),Be&64?G.type.remove(G,J,de,ie,oe):ce&&!ce.hasOnce&&(Ce!==De||Ie>0&&Ie&64)?Re(ce,J,de,!1,!0):(Ce===De&&Ie&384||!be&&Be&16)&&Re(_e,J,de),oe&&K(G)}(At&&(pe=ue&&ue.onVnodeUnmounted)||Ze)&&cr(()=>{pe&&Li(pe,J,G),Ze&&ca(G,null,J,"unmounted")},de)},K=G=>{const{type:J,el:de,anchor:oe,transition:be}=G;if(J===De){fe(de,oe);return}if(J===Gl){C(G);return}const Ce=()=>{i(de),be&&!be.persisted&&be.afterLeave&&be.afterLeave()};if(G.shapeFlag&1&&be&&!be.persisted){const{leave:ue,delayLeave:ge}=be,_e=()=>ue(de,Ce);ge?ge(G.el,Ce,_e):_e()}else Ce()},fe=(G,J)=>{let de;for(;G!==J;)de=p(G),i(G),G=de;i(J)},he=(G,J,de)=>{const{bum:oe,scope:be,job:Ce,subTree:ue,um:ge,m:_e,a:ce}=G;ng(_e),ng(ce),oe&&zl(oe),be.stop(),Ce&&(Ce.flags|=8,M(ue,G,J,de)),ge&&cr(ge,J),cr(()=>{G.isUnmounted=!0},J)},Re=(G,J,de,oe=!1,be=!1,Ce=0)=>{for(let ue=Ce;ue<G.length;ue++)M(G[ue],J,de,oe,be)},Q=G=>{if(G.shapeFlag&6)return Q(G.component.subTree);if(G.shapeFlag&128)return G.suspense.next();const J=p(G.anchor||G.el),de=J&&J[b2];return de?p(de):J};let re=!1;const X=(G,J,de)=>{let oe;G==null?J._vnode&&(M(J._vnode,null,null,!0),oe=J._vnode.component):v(J._vnode||null,G,J,null,null,null,de),J._vnode=G,re||(re=!0,dC(oe),Zh(),re=!1)},ie={p:v,um:M,m:U,r:K,mt:F,mc:I,pc:$,pbc:x,n:Q,o:e};let we,Pe;return t&&([we,Pe]=t(ie)),{render:X,hydrate:we,createApp:k6(X,we)}}function tb({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function gl({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function J2(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Gw(e,t,n=!1){const r=e.children,i=t.children;if(Xe(r)&&Xe(i))for(let a=0;a<r.length;a++){const s=r[a];let o=i[a];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[a]=No(i[a]),o.el=s.el),!n&&o.patchFlag!==-2&&Gw(s,o)),o.type===qa&&(o.patchFlag!==-1?o.el=s.el:o.__elIndex=a+(e.type===De?1:0)),o.type===Zn&&!o.el&&(o.el=s.el)}}function M6(e){const t=e.slice(),n=[0];let r,i,a,s,o;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(a=0,s=n.length-1;a<s;)o=a+s>>1,e[n[o]]<u?a=o+1:s=o;u<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}function Q2(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Q2(t)}function ng(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Z2(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Z2(t.subTree):null}const rg=e=>e.__isSuspense;let v0=0;const V6={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,s,o,l,u){if(e==null)U6(t,n,r,i,a,s,o,l,u);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}j6(e,t,n,r,i,s,o,l,u)}},hydrate:z6,normalize:H6},B6=V6;function jf(e,t){const n=e.props&&e.props[t];pt(n)&&n()}function U6(e,t,n,r,i,a,s,o,l){const{p:u,o:{createElement:c}}=l,d=c("div"),p=e.suspense=eO(e,i,r,t,d,n,a,s,o,l);u(null,p.pendingBranch=e.ssContent,d,null,r,p,a,s),p.deps>0?(jf(e,"onPending"),jf(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,a,s),xc(p,e.ssFallback)):p.resolve(!1,!0)}function j6(e,t,n,r,i,a,s,o,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:g,pendingBranch:v,isInFallback:y,isHydrating:b}=d;if(v)d.pendingBranch=p,Hs(v,p)?(l(v,p,d.hiddenContainer,null,i,d,a,s,o),d.deps<=0?d.resolve():y&&(b||(l(g,h,n,r,i,null,a,s,o),xc(d,h)))):(d.pendingId=v0++,b?(d.isHydrating=!1,d.activeBranch=v):u(v,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),y?(l(null,p,d.hiddenContainer,null,i,d,a,s,o),d.deps<=0?d.resolve():(l(g,h,n,r,i,null,a,s,o),xc(d,h))):g&&Hs(g,p)?(l(g,p,n,r,i,d,a,s,o),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,i,d,a,s,o),d.deps<=0&&d.resolve()));else if(g&&Hs(g,p))l(g,p,n,r,i,d,a,s,o),xc(d,p);else if(jf(t,"onPending"),d.pendingBranch=p,p.shapeFlag&512?d.pendingId=p.component.suspenseId:d.pendingId=v0++,l(null,p,d.hiddenContainer,null,i,d,a,s,o),d.deps<=0)d.resolve();else{const{timeout:E,pendingId:w}=d;E>0?setTimeout(()=>{d.pendingId===w&&d.fallback(h)},E):E===0&&d.fallback(h)}}function eO(e,t,n,r,i,a,s,o,l,u,c=!1){const{p:d,m:p,um:h,n:g,o:{parentNode:v,remove:y}}=u;let b;const E=W6(e);E&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const w=e.props?Of(e.props.timeout):void 0,C=a,P={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:v0++,timeout:typeof w=="number"?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(_=!1,A=!1){const{vnode:I,activeBranch:T,pendingBranch:x,pendingId:R,effects:O,parentComponent:L,container:F,isInFallback:W}=P;let H=!1;P.isHydrating?P.isHydrating=!1:_||(H=T&&x.transition&&x.transition.mode==="out-in",H&&(T.transition.afterLeave=()=>{R===P.pendingId&&(p(x,F,a===C?g(T):a,0),Ff(O),W&&I.ssFallback&&(I.ssFallback.el=null))}),T&&(v(T.el)===F&&(a=g(T)),h(T,L,P,!0),!H&&W&&I.ssFallback&&cr(()=>I.ssFallback.el=null,P)),H||p(x,F,a,0)),xc(P,x),P.pendingBranch=null,P.isInFallback=!1;let B=P.parent,$=!1;for(;B;){if(B.pendingBranch){B.effects.push(...O),$=!0;break}B=B.parent}!$&&!H&&Ff(O),P.effects=[],E&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),jf(I,"onResolve")},fallback(_){if(!P.pendingBranch)return;const{vnode:A,activeBranch:I,parentComponent:T,container:x,namespace:R}=P;jf(A,"onFallback");const O=g(I),L=()=>{P.isInFallback&&(d(null,_,x,O,T,null,R,o,l),xc(P,_))},F=_.transition&&_.transition.mode==="out-in";F&&(I.transition.afterLeave=L),P.isInFallback=!0,h(I,T,null,!0),F||L()},move(_,A,I){P.activeBranch&&p(P.activeBranch,_,A,I),P.container=_},next(){return P.activeBranch&&g(P.activeBranch)},registerDep(_,A,I){const T=!!P.pendingBranch;T&&P.deps++;const x=_.vnode.el;_.asyncDep.catch(R=>{Pu(R,_,0)}).then(R=>{if(_.isUnmounted||P.isUnmounted||P.pendingId!==_.suspenseId)return;_.asyncResolved=!0;const{vnode:O}=_;S0(_,R,!1),x&&(O.el=x);const L=!x&&_.subTree.el;A(_,O,v(x||_.subTree.el),x?null:g(_.subTree),P,s,I),L&&(O.placeholder=null,y(L)),_v(_,O.el),T&&--P.deps===0&&P.resolve()})},unmount(_,A){P.isUnmounted=!0,P.activeBranch&&h(P.activeBranch,n,_,A),P.pendingBranch&&h(P.pendingBranch,n,_,A)}};return P}function z6(e,t,n,r,i,a,s,o,l){const u=t.suspense=eO(t,r,n,e.parentNode,document.createElement("div"),null,i,a,s,o,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,a,s);return u.deps===0&&u.resolve(!1,!0),c}function H6(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=CC(r?n.default:n),e.ssFallback=r?CC(n.fallback):f(Zn)}function CC(e){let t;if(pt(e)){const n=du&&e._c;n&&(e._d=!1,N()),e=e(),n&&(e._d=!0,t=ri,nO())}return Xe(e)&&(e=I6(e)),e=Fi(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function tO(e,t){t&&t.pendingBranch?Xe(e)?t.effects.push(...e):t.effects.push(e):Ff(e)}function xc(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,_v(r,i))}function W6(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const De=Symbol.for("v-fgt"),qa=Symbol.for("v-txt"),Zn=Symbol.for("v-cmt"),Gl=Symbol.for("v-stc"),hf=[];let ri=null;function N(e=!1){hf.push(ri=e?null:[])}function nO(){hf.pop(),ri=hf[hf.length-1]||null}let du=1;function zf(e,t=!1){du+=e,e<0&&ri&&t&&(ri.hasOnce=!0)}function rO(e){return e.dynamicChildren=du>0?ri||Bl:null,nO(),du>0&&ri&&ri.push(e),e}function le(e,t,n,r,i,a){return rO(S(e,t,n,r,i,a,!0))}function Z(e,t,n,r,i){return rO(f(e,t,n,r,i,!0))}function Sa(e){return e?e.__v_isVNode===!0:!1}function Hs(e,t){return e.type===t.type&&e.key===t.key}function G6(e){}const iO=({key:e})=>e??null,fh=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?bt(e)||Tt(e)||pt(e)?{i:Vr,r:e,k:t,f:!!n}:e:null);function S(e,t=null,n=null,r=0,i=null,a=e===De?0:1,s=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&iO(t),ref:t&&fh(t),scopeId:Sv,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Vr};return o?(qw(l,n),a&128&&e.normalize(l)):n&&(l.shapeFlag|=bt(n)?8:16),du>0&&!s&&ri&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&ri.push(l),l}const f=q6;function q6(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===N2)&&(e=Zn),Sa(e)){const o=Xs(e,t,!0);return n&&qw(o,n),du>0&&!a&&ri&&(o.shapeFlag&6?ri[ri.indexOf(e)]=o:ri.push(o)),o.patchFlag=-2,o}if(t8(e)&&(e=e.__vccOpts),t){t=Mp(t);let{class:o,style:l}=t;o&&!bt(o)&&(t.class=Oe(o)),fn(l)&&(Np(l)&&!Xe(l)&&(l=Bt({},l)),t.style=We(l))}const s=bt(e)?1:rg(e)?128:S2(e)?64:fn(e)?4:pt(e)?2:0;return S(e,t,n,r,i,s,a,!0)}function Mp(e){return e?Np(e)||j2(e)?Bt({},e):e:null}function Xs(e,t,n=!1,r=!1){const{props:i,ref:a,patchFlag:s,children:o,transition:l}=e,u=t?ve(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&iO(u),ref:t&&t.ref?n&&a?Xe(a)?a.concat(fh(t)):[a,fh(t)]:fh(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xs(e.ssContent),ssFallback:e.ssFallback&&Xs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&oo(c,l.clone(c)),c}function k(e=" ",t=0){return f(qa,null,e,t)}function K6(e,t){const n=f(Gl,null,e);return n.staticCount=t,n}function se(e="",t=!1){return t?(N(),Z(Zn,null,e)):f(Zn,null,e)}function Fi(e){return e==null||typeof e=="boolean"?f(Zn):Xe(e)?f(De,null,e.slice()):Sa(e)?No(e):f(qa,null,String(e))}function No(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xs(e)}function qw(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Xe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),qw(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!j2(t)?t._ctx=Vr:i===3&&Vr&&(Vr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:Vr},n=32):(t=String(t),r&64?(n=16,t=[k(t)]):n=8);e.children=t,e.shapeFlag|=n}function ve(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=Oe([t.class,r.class]));else if(i==="style")t.style=We([t.style,r.style]);else if(il(i)){const a=t[i],s=r[i];s&&a!==s&&!(Xe(a)&&a.includes(s))&&(t[i]=a?[].concat(a,s):s)}else i!==""&&(t[i]=r[i])}return t}function Li(e,t,n,r=null){As(e,t,7,[n,r])}const Y6=$2();let X6=0;function sO(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Y6,a={uid:X6++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Iw(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:H2(r,i),emitsOptions:V2(r,i),emit:null,emitted:null,propsDefaults:jt,inheritAttrs:r.inheritAttrs,ctx:jt,data:jt,props:jt,attrs:jt,slots:jt,refs:jt,setupState:jt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=_6.bind(null,a),e.ce&&e.ce(a),a}let Mr=null;const Ii=()=>Mr||Vr;let ig,y0;{const e=Pp(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),a=>{i.length>1?i.forEach(s=>s(a)):i[0](a)}};ig=t("__VUE_INSTANCE_SETTERS__",n=>Mr=n),y0=t("__VUE_SSR_SETTERS__",n=>Ac=n)}const fu=e=>{const t=Mr;return ig(e),e.scope.on(),()=>{e.scope.off(),ig(t)}},b0=()=>{Mr&&Mr.scope.off(),ig(null)};function aO(e){return e.vnode.shapeFlag&4}let Ac=!1;function oO(e,t=!1,n=!1){t&&y0(t);const{props:r,children:i}=e.vnode,a=aO(e);O6(e,r,a,t),F6(e,i,n||t);const s=a?J6(e,t):void 0;return t&&y0(!1),s}function J6(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,p0);const{setup:r}=n;if(r){so();const i=e.setupContext=r.length>1?uO(e):null,a=fu(e),s=fd(r,e,0,[e.props,i]),o=pv(s);if(ao(),a(),(o||e.sp)&&!Ga(e)&&$w(e),o){if(s.then(b0,b0),t)return s.then(l=>{S0(e,l,t)}).catch(l=>{Pu(l,e,0)});e.asyncDep=s}else S0(e,s,t)}else lO(e,t)}function S0(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:fn(t)&&(e.setupState=Ow(t)),lO(e,n)}let sg,w0;function Q6(e){sg=e,w0=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,i6))}}const Z6=()=>!sg;function lO(e,t,n){const r=e.type;if(!e.render){if(!t&&sg&&!r.render){const i=r.template||zw(e).template;if(i){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:l}=r,u=Bt(Bt({isCustomElement:a,delimiters:o},s),l);r.render=sg(i,u)}}e.render=r.render||Tr,w0&&w0(e)}{const i=fu(e);so();try{y6(e)}finally{ao(),i()}}}const e8={get(e,t){return Zr(e,"get",""),e[t]}};function uO(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,e8),slots:e.slots,emit:e.emit,expose:t}}function Vp(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ow(Dp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mf)return mf[n](e)},has(t,n){return n in t||n in mf}})):e.proxy}function E0(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function t8(e){return pt(e)&&"__vccOpts"in e}const D=(e,t)=>SU(e,t,Ac);function Ds(e,t,n){try{zf(-1);const r=arguments.length;return r===2?fn(t)&&!Xe(t)?Sa(t)?f(e,null,[t]):f(e,t):f(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Sa(n)&&(n=[n]),f(e,t,n))}finally{zf(1)}}function n8(){}function r8(e,t,n,r){const i=n[r];if(i&&cO(i,e))return i;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function cO(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Qr(n[r],t[r]))return!1;return du>0&&ri&&ri.push(e),!0}const dO="3.5.26",i8=Tr,s8=PU,a8=sc,o8=m2,l8={createComponentInstance:sO,setupComponent:oO,renderComponentRoot:dh,setCurrentRenderingInstance:Mf,isVNode:Sa,normalizeVNode:Fi,getComponentPublicInstance:Vp,ensureValidVNode:jw,pushWarningContext:CU,popWarningContext:_U},u8=l8,c8=null,d8=null,f8=null;let x0;const _C=typeof window<"u"&&window.trustedTypes;if(_C)try{x0=_C.createPolicy("vue",{createHTML:e=>e})}catch{}const fO=x0?e=>x0.createHTML(e):e=>e,p8="http://www.w3.org/2000/svg",m8="http://www.w3.org/1998/Math/MathML",Ma=typeof document<"u"?document:null,TC=Ma&&Ma.createElement("template"),pO={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?Ma.createElementNS(p8,e):t==="mathml"?Ma.createElementNS(m8,e):n?Ma.createElement(e,{is:n}):Ma.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Ma.createTextNode(e),createComment:e=>Ma.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ma.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const s=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{TC.innerHTML=fO(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=TC.content;if(r==="svg"||r==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ko="transition",Bd="animation",Rc=Symbol("_vtc"),mO={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},hO=Bt({},Fw,mO),h8=e=>(e.displayName="Transition",e.props=hO,e),lo=h8((e,{slots:t})=>Ds(_2,gO(e),t)),vl=(e,t=[])=>{Xe(e)?e.forEach(n=>n(...t)):e&&e(...t)},IC=e=>e?Xe(e)?e.some(t=>t.length>1):e.length>1:!1;function gO(e){const t={};for(const O in e)O in mO||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=s,appearToClass:c=o,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=g8(i),v=g&&g[0],y=g&&g[1],{onBeforeEnter:b,onEnter:E,onEnterCancelled:w,onLeave:C,onLeaveCancelled:P,onBeforeAppear:_=b,onAppear:A=E,onAppearCancelled:I=w}=t,T=(O,L,F,W)=>{O._enterCancelled=W,Io(O,L?c:o),Io(O,L?u:s),F&&F()},x=(O,L)=>{O._isLeaving=!1,Io(O,d),Io(O,h),Io(O,p),L&&L()},R=O=>(L,F)=>{const W=O?A:E,H=()=>T(L,O,F);vl(W,[L,H]),PC(()=>{Io(L,O?l:a),la(L,O?c:o),IC(W)||AC(L,r,v,H)})};return Bt(t,{onBeforeEnter(O){vl(b,[O]),la(O,a),la(O,s)},onBeforeAppear(O){vl(_,[O]),la(O,l),la(O,u)},onEnter:R(!1),onAppear:R(!0),onLeave(O,L){O._isLeaving=!0;const F=()=>x(O,L);la(O,d),O._enterCancelled?(la(O,p),k0(O)):(k0(O),la(O,p)),PC(()=>{O._isLeaving&&(Io(O,d),la(O,h),IC(C)||AC(O,r,y,F))}),vl(C,[O,F])},onEnterCancelled(O){T(O,!1,void 0,!0),vl(w,[O])},onAppearCancelled(O){T(O,!0,void 0,!0),vl(I,[O])},onLeaveCancelled(O){x(O),vl(P,[O])}})}function g8(e){if(e==null)return null;if(fn(e))return[nb(e.enter),nb(e.leave)];{const t=nb(e);return[t,t]}}function nb(e){return Of(e)}function la(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Rc]||(e[Rc]=new Set)).add(t)}function Io(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Rc];n&&(n.delete(t),n.size||(e[Rc]=void 0))}function PC(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let v8=0;function AC(e,t,n,r){const i=e._endId=++v8,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:o,propCount:l}=vO(e,t);if(!s)return r();const u=s+"end";let c=0;const d=()=>{e.removeEventListener(u,p),a()},p=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},o+1),e.addEventListener(u,p)}function vO(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),i=r(`${ko}Delay`),a=r(`${ko}Duration`),s=RC(i,a),o=r(`${Bd}Delay`),l=r(`${Bd}Duration`),u=RC(o,l);let c=null,d=0,p=0;t===ko?s>0&&(c=ko,d=s,p=a.length):t===Bd?u>0&&(c=Bd,d=u,p=l.length):(d=Math.max(s,u),c=d>0?s>u?ko:Bd:null,p=c?c===ko?a.length:l.length:0);const h=c===ko&&/\b(?:transform|all)(?:,|$)/.test(r(`${ko}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:h}}function RC(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>OC(n)+OC(e[r])))}function OC(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function k0(e){return(e?e.ownerDocument:document).body.offsetHeight}function y8(e,t,n){const r=e[Rc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ag=Symbol("_vod"),yO=Symbol("_vsh"),ci={name:"show",beforeMount(e,{value:t},{transition:n}){e[ag]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ud(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ud(e,!0),r.enter(e)):r.leave(e,()=>{Ud(e,!1)}):Ud(e,t))},beforeUnmount(e,{value:t}){Ud(e,t)}};function Ud(e,t){e.style.display=t?e[ag]:"none",e[yO]=!t}function b8(){ci.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const bO=Symbol("");function S8(e){const t=Ii();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>og(a,i))},r=()=>{const i=e(t.proxy);t.ce?og(t.ce,i):C0(t.subTree,i),n(i)};kv(()=>{Ff(r)}),Nt(()=>{Ne(r,Tr,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),Au(()=>i.disconnect())})}function C0(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{C0(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)og(e.el,t);else if(e.type===De)e.children.forEach(n=>C0(n,t));else if(e.type===Gl){let{el:n,anchor:r}=e;for(;n&&(og(n,t),n!==r);)n=n.nextSibling}}function og(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t){const a=HR(t[i]);n.setProperty(`--${i}`,a),r+=`--${i}: ${a};`}n[bO]=r}}const w8=/(?:^|;)\s*display\s*:/;function E8(e,t,n){const r=e.style,i=bt(n);let a=!1;if(n&&!i){if(t)if(bt(t))for(const s of t.split(";")){const o=s.slice(0,s.indexOf(":")).trim();n[o]==null&&ph(r,o,"")}else for(const s in t)n[s]==null&&ph(r,s,"");for(const s in n)s==="display"&&(a=!0),ph(r,s,n[s])}else if(i){if(t!==n){const s=r[bO];s&&(n+=";"+s),r.cssText=n,a=w8.test(n)}}else t&&e.removeAttribute("style");ag in e&&(e[ag]=a?r.display:"",e[yO]&&(r.display="none"))}const NC=/\s*!important$/;function ph(e,t,n){if(Xe(n))n.forEach(r=>ph(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=x8(e,t);NC.test(n)?e.setProperty(ei(r),n.replace(NC,""),"important"):e[r]=n}}const DC=["Webkit","Moz","ms"],rb={};function x8(e,t){const n=rb[t];if(n)return n;let r=kn(t);if(r!=="filter"&&r in e)return rb[t]=r;r=Ji(r);for(let i=0;i<DC.length;i++){const a=DC[i]+r;if(a in e)return rb[t]=a}return t}const LC="http://www.w3.org/1999/xlink";function FC(e,t,n,r,i,a=BR(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(LC,t.slice(6,t.length)):e.setAttributeNS(LC,t,n):n==null||a&&!Tw(n)?e.removeAttribute(t):e.setAttribute(t,a?"":ki(n)?String(n):n)}function $C(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?fO(n):n);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const o=a==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(o!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Tw(n):n==null&&o==="string"?(n="",s=!0):o==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(i||t)}function za(e,t,n,r){e.addEventListener(t,n,r)}function k8(e,t,n,r){e.removeEventListener(t,n,r)}const MC=Symbol("_vei");function C8(e,t,n,r,i=null){const a=e[MC]||(e[MC]={}),s=a[t];if(r&&s)s.value=r;else{const[o,l]=_8(t);if(r){const u=a[t]=P8(r,i);za(e,o,u,l)}else s&&(k8(e,o,s,l),a[t]=void 0)}}const VC=/(?:Once|Passive|Capture)$/;function _8(e){let t;if(VC.test(e)){t={};let r;for(;r=e.match(VC);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ei(e.slice(2)),t]}let ib=0;const T8=Promise.resolve(),I8=()=>ib||(T8.then(()=>ib=0),ib=Date.now());function P8(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;As(A8(r,n.value),t,5,[r])};return n.value=e,n.attached=I8(),n}function A8(e,t){if(Xe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const BC=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,SO=(e,t,n,r,i,a)=>{const s=i==="svg";t==="class"?y8(e,r,s):t==="style"?E8(e,n,r):il(t)?dv(t)||C8(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):R8(e,t,r,s))?($C(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&FC(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!bt(r))?$C(e,kn(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),FC(e,t,r,s))};function R8(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&BC(t)&&pt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return BC(t)&&bt(n)?!1:t in e}const UC={};function wO(e,t,n){let r=je(e,t);_p(r)&&(r=Bt({},r,t));class i extends Tv{constructor(s){super(r,s,n)}}return i.def=r,i}const O8=((e,t)=>wO(e,t,NO)),N8=typeof HTMLElement<"u"?HTMLElement:class{};class Tv extends N8{constructor(t,n={},r=ug){super(),this._def=t,this._props=n,this._createApp=r,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._ob=null,this.shadowRoot&&r!==ug?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Bt({},t.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 t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Tv){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Ct(()=>{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(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(r,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:s}=r;let o;if(a&&!Xe(a))for(const l in a){const u=a[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Of(this._props[l])),(o||(o=Object.create(null)))[kn(l)]=!0)}this._numberProps=o,this._resolveProps(r),this.shadowRoot&&this._applyStyles(s),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)cn(this,r)||Object.defineProperty(this,r,{get:()=>ne(n[r])})}_resolveProps(t){const{props:n}=t,r=Xe(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map(kn))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):UC;const i=kn(t);n&&this._numberProps&&this._numberProps[i]&&(r=Of(r)),this._setProp(i,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!1){if(n!==this._props[t]&&(this._dirty=!0,n===UC?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r)){const a=this._ob;a&&(this._processMutations(a.takeRecords()),a.disconnect()),n===!0?this.setAttribute(ei(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ei(t),n+""):n||this.removeAttribute(ei(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),OO(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=f(this._def,Bt(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(a,s)=>{this.dispatchEvent(new CustomEvent(a,_p(s[0])?Bt({detail:s},s[0]):{detail:s}))};r.emit=(a,...s)=>{i(a,s),ei(a)!==a&&i(ei(a),s)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let i=t.length-1;i>=0;i--){const a=document.createElement("style");r&&a.setAttribute("nonce",r),a.textContent=t[i],this.shadowRoot.prepend(a)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const i=t[r],a=i.getAttribute("name")||"default",s=this._slots[a],o=i.parentNode;if(s)for(const l of s){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let d;for(;d=c.nextNode();)d.setAttribute(u,"")}o.insertBefore(l,i)}else for(;i.firstChild;)o.insertBefore(i.firstChild,i);o.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const r of t){const i=r.querySelectorAll("slot");for(let a=0;a<i.length;a++)n.add(i[a])}return Array.from(n)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){}}function EO(e){const t=Ii(),n=t&&t.ce;return n||null}function D8(){const e=EO();return e&&e.shadowRoot}function L8(e="$style"){{const t=Ii();if(!t)return jt;const n=t.type.__cssModules;if(!n)return jt;const r=n[e];return r||jt}}const xO=new WeakMap,kO=new WeakMap,lg=Symbol("_moveCb"),jC=Symbol("_enterCb"),F8=e=>(delete e.props.mode,e),$8=F8({name:"TransitionGroup",props:Bt({},hO,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ii(),r=Lw();let i,a;return $p(()=>{if(!i.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!U8(i[0].el,n.vnode.el,s)){i=[];return}i.forEach(M8),i.forEach(V8);const o=i.filter(B8);k0(n.vnode.el),o.forEach(l=>{const u=l.el,c=u.style;la(u,s),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[lg]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[lg]=null,Io(u,s))};u.addEventListener("transitionend",d)}),i=[]}),()=>{const s=it(e),o=gO(s);let l=s.tag||De;if(i=[],a)for(let u=0;u<a.length;u++){const c=a[u];c.el&&c.el instanceof Element&&(i.push(c),oo(c,Pc(c,o,r,n)),xO.set(c,{left:c.el.offsetLeft,top:c.el.offsetTop}))}a=t.default?wv(t.default()):[];for(let u=0;u<a.length;u++){const c=a[u];c.key!=null&&oo(c,Pc(c,o,r,n))}return f(l,null,a)}}}),Iv=$8;function M8(e){const t=e.el;t[lg]&&t[lg](),t[jC]&&t[jC]()}function V8(e){kO.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function B8(e){const t=xO.get(e),n=kO.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const a=e.el.style;return a.transform=a.webkitTransform=`translate(${r}px,${i}px)`,a.transitionDuration="0s",e}}function U8(e,t,n){const r=e.cloneNode(),i=e[Rc];i&&i.forEach(o=>{o.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:s}=vO(r);return a.removeChild(r),s}const Jo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Xe(t)?n=>zl(t,n):t};function j8(e){e.target.composing=!0}function zC(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _s=Symbol("_assign");function HC(e,t,n){return t&&(e=e.trim()),n&&(e=Ip(e)),e}const Hf={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[_s]=Jo(i);const a=r||i.props&&i.props.type==="number";za(e,t?"change":"input",s=>{s.target.composing||e[_s](HC(e.value,n,a))}),(n||a)&&za(e,"change",()=>{e.value=HC(e.value,n,a)}),t||(za(e,"compositionstart",j8),za(e,"compositionend",zC),za(e,"change",zC))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},s){if(e[_s]=Jo(s),e.composing)return;const o=(a||e.type==="number")&&!/^0\d/.test(e.value)?Ip(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},Kw={deep:!0,created(e,t,n){e[_s]=Jo(n),za(e,"change",()=>{const r=e._modelValue,i=Oc(e),a=e.checked,s=e[_s];if(Xe(r)){const o=Rp(r,i),l=o!==-1;if(a&&!l)s(r.concat(i));else if(!a&&l){const u=[...r];u.splice(o,1),s(u)}}else if(sl(r)){const o=new Set(r);a?o.add(i):o.delete(i),s(o)}else s(_O(e,a))})},mounted:WC,beforeUpdate(e,t,n){e[_s]=Jo(n),WC(e,t,n)}};function WC(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Xe(t))i=Rp(t,r.props.value)>-1;else if(sl(t))i=t.has(r.props.value);else{if(t===n)return;i=io(t,_O(e,!0))}e.checked!==i&&(e.checked=i)}const Yw={created(e,{value:t},n){e.checked=io(t,n.props.value),e[_s]=Jo(n),za(e,"change",()=>{e[_s](Oc(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[_s]=Jo(r),t!==n&&(e.checked=io(t,r.props.value))}},CO={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=sl(t);za(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Ip(Oc(s)):Oc(s));e[_s](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,Ct(()=>{e._assigning=!1})}),e[_s]=Jo(r)},mounted(e,{value:t}){GC(e,t)},beforeUpdate(e,t,n){e[_s]=Jo(n)},updated(e,{value:t}){e._assigning||GC(e,t)}};function GC(e,t){const n=e.multiple,r=Xe(t);if(!(n&&!r&&!sl(t))){for(let i=0,a=e.options.length;i<a;i++){const s=e.options[i],o=Oc(s);if(n)if(r){const l=typeof o;l==="string"||l==="number"?s.selected=t.some(u=>String(u)===String(o)):s.selected=Rp(t,o)>-1}else s.selected=t.has(o);else if(io(Oc(s),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Oc(e){return"_value"in e?e._value:e.value}function _O(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const TO={created(e,t,n){Dm(e,t,n,null,"created")},mounted(e,t,n){Dm(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Dm(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Dm(e,t,n,r,"updated")}};function IO(e,t){switch(e){case"SELECT":return CO;case"TEXTAREA":return Hf;default:switch(t){case"checkbox":return Kw;case"radio":return Yw;default:return Hf}}}function Dm(e,t,n,r,i){const s=IO(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,r)}function z8(){Hf.getSSRProps=({value:e})=>({value:e}),Yw.getSSRProps=({value:e},t)=>{if(t.props&&io(t.props.value,e))return{checked:!0}},Kw.getSSRProps=({value:e},t)=>{if(Xe(e)){if(t.props&&Rp(e,t.props.value)>-1)return{checked:!0}}else if(sl(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},TO.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=IO(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const H8=["ctrl","shift","alt","meta"],W8={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>H8.some(n=>e[`${n}Key`]&&!t.includes(n))},on=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((i,...a)=>{for(let s=0;s<t.length;s++){const o=W8[t[s]];if(o&&o(i,t))return}return e(i,...a)}))},G8={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ql=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(i=>{if(!("key"in i))return;const a=ei(i.key);if(t.some(s=>s===a||G8[s]===a))return e(i)}))},PO=Bt({patchProp:SO},pO);let gf,qC=!1;function AO(){return gf||(gf=K2(PO))}function RO(){return gf=qC?gf:Y2(PO),qC=!0,gf}const OO=((...e)=>{AO().render(...e)}),q8=((...e)=>{RO().hydrate(...e)}),ug=((...e)=>{const t=AO().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=LO(r);if(!i)return;const a=t._component;!pt(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,DO(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t}),NO=((...e)=>{const t=RO().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=LO(r);if(i)return n(i,!0,DO(i))},t});function DO(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function LO(e){return bt(e)?document.querySelector(e):e}let KC=!1;const K8=()=>{KC||(KC=!0,z8(),b8())},Y8=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:_2,BaseTransitionPropsValidators:Fw,Comment:Zn,DeprecationTypes:f8,EffectScope:Iw,ErrorCodes:IU,ErrorTypeStrings:s8,Fragment:De,KeepAlive:e6,ReactiveEffect:Nf,Static:Gl,Suspense:B6,Teleport:E2,Text:qa,TrackOpTypes:wU,Transition:lo,TransitionGroup:Iv,TriggerOpTypes:EU,VueElement:Tv,assertNumber:TU,callWithAsyncErrorHandling:As,callWithErrorHandling:fd,camelize:kn,capitalize:Ji,cloneVNode:Xs,compatUtils:d8,computed:D,createApp:ug,createBlock:Z,createCommentVNode:se,createElementBlock:le,createElementVNode:S,createHydrationRenderer:Y2,createPropsRestProxy:g6,createRenderer:K2,createSSRApp:NO,createSlots:Uw,createStaticVNode:K6,createTextVNode:k,createVNode:f,customRef:o2,defineAsyncComponent:QU,defineComponent:je,defineCustomElement:wO,defineEmits:a6,defineExpose:o6,defineModel:c6,defineOptions:l6,defineProps:s6,defineSSRCustomElement:O8,defineSlots:u6,devtools:a8,effect:qB,effectScope:Xo,getCurrentInstance:Ii,getCurrentScope:dd,getCurrentWatcher:xU,getTransitionRawChildren:wv,guardReactiveProps:Mp,h:Ds,handleError:Pu,hasInjectionContext:Dw,hydrate:q8,hydrateOnIdle:GU,hydrateOnInteraction:XU,hydrateOnMediaQuery:YU,hydrateOnVisible:KU,initCustomFormatter:n8,initDirectivesForSSR:K8,inject:mt,isMemoSame:cO,isProxy:Np,isReactive:qs,isReadonly:ba,isRef:Tt,isRuntimeOnly:Z6,isShallow:zi,isVNode:Sa,markRaw:Dp,mergeDefaults:m6,mergeModels:h6,mergeProps:ve,nextTick:Ct,nodeOps:pO,normalizeClass:Oe,normalizeProps:Ap,normalizeStyle:We,onActivated:Mw,onBeforeMount:al,onBeforeUnmount:xr,onBeforeUpdate:kv,onDeactivated:Ev,onErrorCaptured:O2,onMounted:Nt,onRenderTracked:R2,onRenderTriggered:A2,onScopeDispose:An,onServerPrefetch:P2,onUnmounted:Au,onUpdated:$p,onWatcherCleanup:u2,openBlock:N,patchProp:SO,popScopeId:NU,provide:bn,proxyRefs:Ow,pushScopeId:OU,queuePostFlushCb:Ff,reactive:Dn,readonly:ya,ref:z,registerRuntimeCompiler:Q6,render:OO,renderList:Vt,renderSlot:cu,resolveComponent:Vf,resolveDirective:Bf,resolveDynamicComponent:D2,resolveFilter:c8,resolveTransitionHooks:Pc,setBlockTracking:zf,setDevtoolsHook:o8,setTransitionHooks:oo,shallowReactive:Op,shallowReadonly:yv,shallowRef:Fe,ssrContextKey:h2,ssrUtils:u8,stop:KB,toDisplayString:V,toHandlerKey:jl,toHandlers:r6,toRaw:it,toRef:ae,toRefs:_a,toValue:yn,transformVNodeArgs:G6,triggerRef:mU,unref:ne,useAttrs:p6,useCssModule:L8,useCssVars:S8,useHost:EO,useId:Ti,useModel:C6,useSSRContext:g2,useShadowRoot:D8,useSlots:f6,useTemplateRef:VU,useTransitionState:Lw,vModelCheckbox:Kw,vModelDynamic:TO,vModelRadio:Yw,vModelSelect:CO,vModelText:Hf,vShow:ci,version:dO,warn:i8,watch:Ne,watchEffect:lr,watchPostEffect:LU,watchSyncEffect:v2,withAsyncContext:v6,withCtx:m,withDefaults:d6,withDirectives:dn,withKeys:ql,withMemo:r8,withModifiers:on,withScopeId:DU},Symbol.toStringTag,{value:"Module"}));function FO(e,t){return function(){return e.apply(t,arguments)}}const{toString:X8}=Object.prototype,{getPrototypeOf:Xw}=Object,{iterator:Pv,toStringTag:$O}=Symbol,Av=(e=>t=>{const n=X8.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zs=e=>(e=e.toLowerCase(),t=>Av(t)===e),Rv=e=>t=>typeof t===e,{isArray:pd}=Array,Nc=Rv("undefined");function Bp(e){return e!==null&&!Nc(e)&&e.constructor!==null&&!Nc(e.constructor)&&Hi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const MO=Zs("ArrayBuffer");function J8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&MO(e.buffer),t}const Q8=Rv("string"),Hi=Rv("function"),VO=Rv("number"),Up=e=>e!==null&&typeof e=="object",Z8=e=>e===!0||e===!1,mh=e=>{if(Av(e)!=="object")return!1;const t=Xw(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!($O in e)&&!(Pv in e)},e5=e=>{if(!Up(e)||Bp(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},t5=Zs("Date"),n5=Zs("File"),r5=Zs("Blob"),i5=Zs("FileList"),s5=e=>Up(e)&&Hi(e.pipe),a5=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Hi(e.append)&&((t=Av(e))==="formdata"||t==="object"&&Hi(e.toString)&&e.toString()==="[object FormData]"))},o5=Zs("URLSearchParams"),[l5,u5,c5,d5]=["ReadableStream","Request","Response","Headers"].map(Zs),f5=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jp(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),pd(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Bp(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let o;for(r=0;r<s;r++)o=a[r],t.call(null,e[o],o,e)}}function BO(e,t){if(Bp(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Pl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,UO=e=>!Nc(e)&&e!==Pl;function _0(){const{caseless:e,skipUndefined:t}=UO(this)&&this||{},n={},r=(i,a)=>{const s=e&&BO(n,a)||a;mh(n[s])&&mh(i)?n[s]=_0(n[s],i):mh(i)?n[s]=_0({},i):pd(i)?n[s]=i.slice():(!t||!Nc(i))&&(n[s]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&jp(arguments[i],r);return n}const p5=(e,t,n,{allOwnKeys:r}={})=>(jp(t,(i,a)=>{n&&Hi(i)?e[a]=FO(i,n):e[a]=i},{allOwnKeys:r}),e),m5=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),h5=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},g5=(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&Xw(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},v5=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},y5=e=>{if(!e)return null;if(pd(e))return e;let t=e.length;if(!VO(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},b5=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xw(Uint8Array)),S5=(e,t)=>{const r=(e&&e[Pv]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},w5=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},E5=Zs("HTMLFormElement"),x5=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),YC=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),k5=Zs("RegExp"),jO=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};jp(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},C5=e=>{jO(e,(t,n)=>{if(Hi(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Hi(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},_5=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return pd(e)?r(e):r(String(e).split(t)),n},T5=()=>{},I5=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function P5(e){return!!(e&&Hi(e.append)&&e[$O]==="FormData"&&e[Pv])}const A5=e=>{const t=new Array(10),n=(r,i)=>{if(Up(r)){if(t.indexOf(r)>=0)return;if(Bp(r))return r;if(!("toJSON"in r)){t[i]=r;const a=pd(r)?[]:{};return jp(r,(s,o)=>{const l=n(s,i+1);!Nc(l)&&(a[o]=l)}),t[i]=void 0,a}}return r};return n(e,0)},R5=Zs("AsyncFunction"),O5=e=>e&&(Up(e)||Hi(e))&&Hi(e.then)&&Hi(e.catch),zO=((e,t)=>e?setImmediate:t?((n,r)=>(Pl.addEventListener("message",({source:i,data:a})=>{i===Pl&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Pl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Hi(Pl.postMessage)),N5=typeof queueMicrotask<"u"?queueMicrotask.bind(Pl):typeof process<"u"&&process.nextTick||zO,D5=e=>e!=null&&Hi(e[Pv]),Te={isArray:pd,isArrayBuffer:MO,isBuffer:Bp,isFormData:a5,isArrayBufferView:J8,isString:Q8,isNumber:VO,isBoolean:Z8,isObject:Up,isPlainObject:mh,isEmptyObject:e5,isReadableStream:l5,isRequest:u5,isResponse:c5,isHeaders:d5,isUndefined:Nc,isDate:t5,isFile:n5,isBlob:r5,isRegExp:k5,isFunction:Hi,isStream:s5,isURLSearchParams:o5,isTypedArray:b5,isFileList:i5,forEach:jp,merge:_0,extend:p5,trim:f5,stripBOM:m5,inherits:h5,toFlatObject:g5,kindOf:Av,kindOfTest:Zs,endsWith:v5,toArray:y5,forEachEntry:S5,matchAll:w5,isHTMLForm:E5,hasOwnProperty:YC,hasOwnProp:YC,reduceDescriptors:jO,freezeMethods:C5,toObjectSet:_5,toCamelCase:x5,noop:T5,toFiniteNumber:I5,findKey:BO,global:Pl,isContextDefined:UO,isSpecCompliantForm:P5,toJSONObject:A5,isAsyncFn:R5,isThenable:O5,setImmediate:zO,asap:N5,isIterable:D5};function Lt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Te.inherits(Lt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Te.toJSONObject(this.config),code:this.code,status:this.status}}});const HO=Lt.prototype,WO={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{WO[e]={value:e}});Object.defineProperties(Lt,WO);Object.defineProperty(HO,"isAxiosError",{value:!0});Lt.from=(e,t,n,r,i,a)=>{const s=Object.create(HO);Te.toFlatObject(e,s,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const o=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return Lt.call(s,o,l,n,r,i),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",a&&Object.assign(s,a),s};const L5=null;function T0(e){return Te.isPlainObject(e)||Te.isArray(e)}function GO(e){return Te.endsWith(e,"[]")?e.slice(0,-2):e}function XC(e,t,n){return e?e.concat(t).map(function(i,a){return i=GO(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function F5(e){return Te.isArray(e)&&!e.some(T0)}const $5=Te.toFlatObject(Te,{},null,function(t){return/^is[A-Z]/.test(t)});function Ov(e,t,n){if(!Te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Te.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,y){return!Te.isUndefined(y[v])});const r=n.metaTokens,i=n.visitor||c,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Te.isSpecCompliantForm(t);if(!Te.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(Te.isDate(g))return g.toISOString();if(Te.isBoolean(g))return g.toString();if(!l&&Te.isBlob(g))throw new Lt("Blob is not supported. Use a Buffer instead.");return Te.isArrayBuffer(g)||Te.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,y){let b=g;if(g&&!y&&typeof g=="object"){if(Te.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(Te.isArray(g)&&F5(g)||(Te.isFileList(g)||Te.endsWith(v,"[]"))&&(b=Te.toArray(g)))return v=GO(v),b.forEach(function(w,C){!(Te.isUndefined(w)||w===null)&&t.append(s===!0?XC([v],C,a):s===null?v:v+"[]",u(w))}),!1}return T0(g)?!0:(t.append(XC(y,v,a),u(g)),!1)}const d=[],p=Object.assign($5,{defaultVisitor:c,convertValue:u,isVisitable:T0});function h(g,v){if(!Te.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(g),Te.forEach(g,function(b,E){(!(Te.isUndefined(b)||b===null)&&i.call(t,b,Te.isString(E)?E.trim():E,v,p))===!0&&h(b,v?v.concat(E):[E])}),d.pop()}}if(!Te.isObject(e))throw new TypeError("data must be an object");return h(e),t}function JC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Jw(e,t){this._pairs=[],e&&Ov(e,this,t)}const qO=Jw.prototype;qO.append=function(t,n){this._pairs.push([t,n])};qO.toString=function(t){const n=t?function(r){return t.call(this,r,JC)}:JC;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function M5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function KO(e,t,n){if(!t)return e;const r=n&&n.encode||M5;Te.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=Te.isURLSearchParams(t)?t.toString():new Jw(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class QC{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Te.forEach(this.handlers,function(r){r!==null&&t(r)})}}const YO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V5=typeof URLSearchParams<"u"?URLSearchParams:Jw,B5=typeof FormData<"u"?FormData:null,U5=typeof Blob<"u"?Blob:null,j5={isBrowser:!0,classes:{URLSearchParams:V5,FormData:B5,Blob:U5},protocols:["http","https","file","blob","url","data"]},Qw=typeof window<"u"&&typeof document<"u",I0=typeof navigator=="object"&&navigator||void 0,z5=Qw&&(!I0||["ReactNative","NativeScript","NS"].indexOf(I0.product)<0),H5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",W5=Qw&&window.location.href||"http://localhost",G5=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qw,hasStandardBrowserEnv:z5,hasStandardBrowserWebWorkerEnv:H5,navigator:I0,origin:W5},Symbol.toStringTag,{value:"Module"})),ti={...G5,...j5};function q5(e,t){return Ov(e,new ti.classes.URLSearchParams,{visitor:function(n,r,i,a){return ti.isNode&&Te.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function K5(e){return Te.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Y5(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function XO(e){function t(n,r,i,a){let s=n[a++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),l=a>=n.length;return s=!s&&Te.isArray(i)?i.length:s,l?(Te.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o):((!i[s]||!Te.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&Te.isArray(i[s])&&(i[s]=Y5(i[s])),!o)}if(Te.isFormData(e)&&Te.isFunction(e.entries)){const n={};return Te.forEachEntry(e,(r,i)=>{t(K5(r),i,n,0)}),n}return null}function X5(e,t,n){if(Te.isString(e))try{return(t||JSON.parse)(e),Te.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const zp={transitional:YO,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=Te.isObject(t);if(a&&Te.isHTMLForm(t)&&(t=new FormData(t)),Te.isFormData(t))return i?JSON.stringify(XO(t)):t;if(Te.isArrayBuffer(t)||Te.isBuffer(t)||Te.isStream(t)||Te.isFile(t)||Te.isBlob(t)||Te.isReadableStream(t))return t;if(Te.isArrayBufferView(t))return t.buffer;if(Te.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return q5(t,this.formSerializer).toString();if((o=Te.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ov(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),X5(t)):t}],transformResponse:[function(t){const n=this.transitional||zp.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Te.isResponse(t)||Te.isReadableStream(t))return t;if(t&&Te.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(o){if(s)throw o.name==="SyntaxError"?Lt.from(o,Lt.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ti.classes.FormData,Blob:ti.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Te.forEach(["delete","get","head","post","put","patch"],e=>{zp.headers[e]={}});const J5=Te.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"]),Q5=e=>{const t={};let n,r,i;return e&&e.split(`
5
+ `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&J5[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ZC=Symbol("internals");function jd(e){return e&&String(e).trim().toLowerCase()}function hh(e){return e===!1||e==null?e:Te.isArray(e)?e.map(hh):String(e)}function Z5(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ej=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function sb(e,t,n,r,i){if(Te.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Te.isString(t)){if(Te.isString(r))return t.indexOf(r)!==-1;if(Te.isRegExp(r))return r.test(t)}}function tj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nj(e,t){const n=Te.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}let Wi=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(o,l,u){const c=jd(l);if(!c)throw new Error("header name must be a non-empty string");const d=Te.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=hh(o))}const s=(o,l)=>Te.forEach(o,(u,c)=>a(u,c,l));if(Te.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Te.isString(t)&&(t=t.trim())&&!ej(t))s(Q5(t),n);else if(Te.isObject(t)&&Te.isIterable(t)){let o={},l,u;for(const c of t){if(!Te.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?Te.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(o,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=jd(t),t){const r=Te.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Z5(i);if(Te.isFunction(n))return n.call(this,i,r);if(Te.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jd(t),t){const r=Te.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||sb(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=jd(s),s){const o=Te.findKey(r,s);o&&(!n||sb(r,r[o],o,n))&&(delete r[o],i=!0)}}return Te.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||sb(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return Te.forEach(this,(i,a)=>{const s=Te.findKey(r,a);if(s){n[s]=hh(i),delete n[a];return}const o=t?tj(a):String(a).trim();o!==a&&delete n[a],n[o]=hh(i),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Te.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Te.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
6
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[ZC]=this[ZC]={accessors:{}}).accessors,i=this.prototype;function a(s){const o=jd(s);r[o]||(nj(i,s),r[o]=!0)}return Te.isArray(t)?t.forEach(a):a(t),this}};Wi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Te.reduceDescriptors(Wi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Te.freezeMethods(Wi);function ab(e,t){const n=this||zp,r=t||n,i=Wi.from(r.headers);let a=r.data;return Te.forEach(e,function(o){a=o.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function JO(e){return!!(e&&e.__CANCEL__)}function md(e,t,n){Lt.call(this,e??"canceled",Lt.ERR_CANCELED,t,n),this.name="CanceledError"}Te.inherits(md,Lt,{__CANCEL__:!0});function QO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Lt("Request failed with status code "+n.status,[Lt.ERR_BAD_REQUEST,Lt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ij(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[a];s||(s=u),n[i]=l,r[i]=u;let d=a,p=0;for(;d!==i;)p+=n[d++],d=d%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-s<t)return;const h=c&&u-c;return h?Math.round(p*1e3/h):void 0}}function sj(e,t){let n=0,r=1e3/t,i,a;const s=(u,c=Date.now())=>{n=c,i=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?s(u,c):(i=u,a||(a=setTimeout(()=>{a=null,s(i)},r-d)))},()=>i&&s(i)]}const cg=(e,t,n=3)=>{let r=0;const i=ij(50,250);return sj(a=>{const s=a.loaded,o=a.lengthComputable?a.total:void 0,l=s-r,u=i(l),c=s<=o;r=s;const d={loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-s)/u:void 0,event:a,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},n)},e_=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},t_=e=>(...t)=>Te.asap(()=>e(...t)),aj=ti.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ti.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ti.origin),ti.navigator&&/(msie|trident)/i.test(ti.navigator.userAgent)):()=>!0,oj=ti.hasStandardBrowserEnv?{write(e,t,n,r,i,a,s){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];Te.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),Te.isString(r)&&o.push(`path=${r}`),Te.isString(i)&&o.push(`domain=${i}`),a===!0&&o.push("secure"),Te.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function lj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uj(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ZO(e,t,n){let r=!lj(t);return e&&(r||n==!1)?uj(e,t):t}const n_=e=>e instanceof Wi?{...e}:e;function pu(e,t){t=t||{};const n={};function r(u,c,d,p){return Te.isPlainObject(u)&&Te.isPlainObject(c)?Te.merge.call({caseless:p},u,c):Te.isPlainObject(c)?Te.merge({},c):Te.isArray(c)?c.slice():c}function i(u,c,d,p){if(Te.isUndefined(c)){if(!Te.isUndefined(u))return r(void 0,u,d,p)}else return r(u,c,d,p)}function a(u,c){if(!Te.isUndefined(c))return r(void 0,c)}function s(u,c){if(Te.isUndefined(c)){if(!Te.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function o(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,c,d)=>i(n_(u),n_(c),d,!0)};return Te.forEach(Object.keys({...e,...t}),function(c){const d=l[c]||i,p=d(e[c],t[c],c);Te.isUndefined(p)&&d!==o||(n[c]=p)}),n}const eN=e=>{const t=pu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:o}=t;if(t.headers=s=Wi.from(s),t.url=KO(ZO(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),Te.isFormData(n)){if(ti.hasStandardBrowserEnv||ti.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Te.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,d])=>{u.includes(c.toLowerCase())&&s.set(c,d)})}}if(ti.hasStandardBrowserEnv&&(r&&Te.isFunction(r)&&(r=r(t)),r||r!==!1&&aj(t.url))){const l=i&&a&&oj.read(a);l&&s.set(i,l)}return t},cj=typeof XMLHttpRequest<"u",dj=cj&&function(e){return new Promise(function(n,r){const i=eN(e);let a=i.data;const s=Wi.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,c,d,p,h,g;function v(){h&&h(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function b(){if(!y)return;const w=Wi.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),P={data:!o||o==="text"||o==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};QO(function(A){n(A),v()},function(A){r(A),v()},P),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(r(new Lt("Request aborted",Lt.ECONNABORTED,e,y)),y=null)},y.onerror=function(C){const P=C&&C.message?C.message:"Network Error",_=new Lt(P,Lt.ERR_NETWORK,e,y);_.event=C||null,r(_),y=null},y.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const P=i.transitional||YO;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new Lt(C,P.clarifyTimeoutError?Lt.ETIMEDOUT:Lt.ECONNABORTED,e,y)),y=null},a===void 0&&s.setContentType(null),"setRequestHeader"in y&&Te.forEach(s.toJSON(),function(C,P){y.setRequestHeader(P,C)}),Te.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),o&&o!=="json"&&(y.responseType=i.responseType),u&&([p,g]=cg(u,!0),y.addEventListener("progress",p)),l&&y.upload&&([d,h]=cg(l),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=w=>{y&&(r(!w||w.type?new md(null,e,y):w),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const E=rj(i.url);if(E&&ti.protocols.indexOf(E)===-1){r(new Lt("Unsupported protocol "+E+":",Lt.ERR_BAD_REQUEST,e));return}y.send(a||null)})},fj=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(u){if(!i){i=!0,o();const c=u instanceof Error?u:this.reason;r.abort(c instanceof Lt?c:new md(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,a(new Lt(`timeout ${t} of ms exceeded`,Lt.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>Te.asap(o),l}},pj=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},mj=async function*(e,t){for await(const n of hj(e))yield*pj(n,t)},hj=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},r_=(e,t,n,r)=>{const i=mj(e,t);let a=0,s,o=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){o(),l.close();return}let d=c.byteLength;if(n){let p=a+=d;n(p)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),i.return()}},{highWaterMark:2})},i_=64*1024,{isFunction:Lm}=Te,gj=(({Request:e,Response:t})=>({Request:e,Response:t}))(Te.global),{ReadableStream:s_,TextEncoder:a_}=Te.global,o_=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vj=e=>{e=Te.merge.call({skipUndefined:!0},gj,e);const{fetch:t,Request:n,Response:r}=e,i=t?Lm(t):typeof fetch=="function",a=Lm(n),s=Lm(r);if(!i)return!1;const o=i&&Lm(s_),l=i&&(typeof a_=="function"?(g=>v=>g.encode(v))(new a_):async g=>new Uint8Array(await new n(g).arrayBuffer())),u=a&&o&&o_(()=>{let g=!1;const v=new n(ti.origin,{body:new s_,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!v}),c=s&&o&&o_(()=>Te.isReadableStream(new r("").body)),d={stream:c&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!d[g]&&(d[g]=(v,y)=>{let b=v&&v[g];if(b)return b.call(v);throw new Lt(`Response type '${g}' is not supported`,Lt.ERR_NOT_SUPPORT,y)})});const p=async g=>{if(g==null)return 0;if(Te.isBlob(g))return g.size;if(Te.isSpecCompliantForm(g))return(await new n(ti.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(Te.isArrayBufferView(g)||Te.isArrayBuffer(g))return g.byteLength;if(Te.isURLSearchParams(g)&&(g=g+""),Te.isString(g))return(await l(g)).byteLength},h=async(g,v)=>{const y=Te.toFiniteNumber(g.getContentLength());return y??p(v)};return async g=>{let{url:v,method:y,data:b,signal:E,cancelToken:w,timeout:C,onDownloadProgress:P,onUploadProgress:_,responseType:A,headers:I,withCredentials:T="same-origin",fetchOptions:x}=eN(g),R=t||fetch;A=A?(A+"").toLowerCase():"text";let O=fj([E,w&&w.toAbortSignal()],C),L=null;const F=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let W;try{if(_&&u&&y!=="get"&&y!=="head"&&(W=await h(I,b))!==0){let U=new n(v,{method:"POST",body:b,duplex:"half"}),M;if(Te.isFormData(b)&&(M=U.headers.get("content-type"))&&I.setContentType(M),U.body){const[K,fe]=e_(W,cg(t_(_)));b=r_(U.body,i_,K,fe)}}Te.isString(T)||(T=T?"include":"omit");const H=a&&"credentials"in n.prototype,B={...x,signal:O,method:y.toUpperCase(),headers:I.normalize().toJSON(),body:b,duplex:"half",credentials:H?T:void 0};L=a&&new n(v,B);let $=await(a?R(L,x):R(v,B));const Y=c&&(A==="stream"||A==="response");if(c&&(P||Y&&F)){const U={};["status","statusText","headers"].forEach(he=>{U[he]=$[he]});const M=Te.toFiniteNumber($.headers.get("content-length")),[K,fe]=P&&e_(M,cg(t_(P),!0))||[];$=new r(r_($.body,i_,K,()=>{fe&&fe(),F&&F()}),U)}A=A||"text";let q=await d[Te.findKey(d,A)||"text"]($,g);return!Y&&F&&F(),await new Promise((U,M)=>{QO(U,M,{data:q,headers:Wi.from($.headers),status:$.status,statusText:$.statusText,config:g,request:L})})}catch(H){throw F&&F(),H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)?Object.assign(new Lt("Network Error",Lt.ERR_NETWORK,g,L),{cause:H.cause||H}):Lt.from(H,H&&H.code,g,L)}}},yj=new Map,tN=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let s=a.length,o=s,l,u,c=yj;for(;o--;)l=a[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:vj(t)),c=u;return u};tN();const Zw={http:L5,xhr:dj,fetch:{get:tN}};Te.forEach(Zw,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const l_=e=>`- ${e}`,bj=e=>Te.isFunction(e)||e===null||e===!1;function Sj(e,t){e=Te.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let s=0;s<n;s++){r=e[s];let o;if(i=r,!bj(r)&&(i=Zw[(o=String(r)).toLowerCase()],i===void 0))throw new Lt(`Unknown adapter '${o}'`);if(i&&(Te.isFunction(i)||(i=i.get(t))))break;a[o||"#"+s]=i}if(!i){const s=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=n?s.length>1?`since :
7
+ `+s.map(l_).join(`
8
+ `):" "+l_(s[0]):"as no adapter specified";throw new Lt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i}const nN={getAdapter:Sj,adapters:Zw};function ob(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new md(null,e)}function u_(e){return ob(e),e.headers=Wi.from(e.headers),e.data=ab.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nN.getAdapter(e.adapter||zp.adapter,e)(e).then(function(r){return ob(e),r.data=ab.call(e,e.transformResponse,r),r.headers=Wi.from(r.headers),r},function(r){return JO(r)||(ob(e),r&&r.response&&(r.response.data=ab.call(e,e.transformResponse,r.response),r.response.headers=Wi.from(r.response.headers))),Promise.reject(r)})}const rN="1.13.2",Nv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const c_={};Nv.transitional=function(t,n,r){function i(a,s){return"[Axios v"+rN+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,o)=>{if(t===!1)throw new Lt(i(s," has been removed"+(n?" in "+n:"")),Lt.ERR_DEPRECATED);return n&&!c_[s]&&(c_[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,o):!0}};Nv.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function wj(e,t,n){if(typeof e!="object")throw new Lt("options must be an object",Lt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new Lt("option "+a+" must be "+l,Lt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Lt("Unknown option "+a,Lt.ERR_BAD_OPTION)}}const gh={assertOptions:wj,validators:Nv},oa=gh.validators;let Kl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new QC,response:new QC}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
9
+ `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pu(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&gh.assertOptions(r,{silentJSONParsing:oa.transitional(oa.boolean),forcedJSONParsing:oa.transitional(oa.boolean),clarifyTimeoutError:oa.transitional(oa.boolean)},!1),i!=null&&(Te.isFunction(i)?n.paramsSerializer={serialize:i}:gh.assertOptions(i,{encode:oa.function,serialize:oa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),gh.assertOptions(n,{baseUrl:oa.spelling("baseURL"),withXsrfToken:oa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&Te.merge(a.common,a[n.method]);a&&Te.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=Wi.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,o.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,p;if(!l){const g=[u_.bind(this),void 0];for(g.unshift(...o),g.push(...u),p=g.length,c=Promise.resolve(n);d<p;)c=c.then(g[d++],g[d++]);return c}p=o.length;let h=n;for(;d<p;){const g=o[d++],v=o[d++];try{h=g(h)}catch(y){v.call(this,y);break}}try{c=u_.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,p=u.length;d<p;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=pu(this.defaults,t);const n=ZO(t.baseURL,t.url,t.allowAbsoluteUrls);return KO(n,t.params,t.paramsSerializer)}};Te.forEach(["delete","get","head","options"],function(t){Kl.prototype[t]=function(n,r){return this.request(pu(r||{},{method:t,url:n,data:(r||{}).data}))}});Te.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,o){return this.request(pu(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}Kl.prototype[t]=n(),Kl.prototype[t+"Form"]=n(!0)});let Ej=class iN{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(o=>{r.subscribe(o),a=o}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,o){r.reason||(r.reason=new md(a,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new iN(function(i){t=i}),cancel:t}}};function xj(e){return function(n){return e.apply(null,n)}}function kj(e){return Te.isObject(e)&&e.isAxiosError===!0}const P0={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(P0).forEach(([e,t])=>{P0[t]=e});function sN(e){const t=new Kl(e),n=FO(Kl.prototype.request,t);return Te.extend(n,Kl.prototype,t,{allOwnKeys:!0}),Te.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return sN(pu(e,i))},n}const rr=sN(zp);rr.Axios=Kl;rr.CanceledError=md;rr.CancelToken=Ej;rr.isCancel=JO;rr.VERSION=rN;rr.toFormData=Ov;rr.AxiosError=Lt;rr.Cancel=rr.CanceledError;rr.all=function(t){return Promise.all(t)};rr.spread=xj;rr.isAxiosError=kj;rr.mergeConfig=pu;rr.AxiosHeaders=Wi;rr.formToJSON=e=>XO(Te.isHTMLForm(e)?new FormData(e):e);rr.getAdapter=nN.getAdapter;rr.HttpStatusCode=P0;rr.default=rr;const{Axios:mEe,AxiosError:aN,CanceledError:hEe,isCancel:gEe,CancelToken:vEe,VERSION:yEe,all:bEe,Cancel:SEe,isAxiosError:wEe,spread:EEe,toFormData:xEe,AxiosHeaders:kEe,HttpStatusCode:Al,formToJSON:CEe,getAdapter:_Ee,mergeConfig:TEe}=rr;let oN;const Dv=e=>oN=e,lN=Symbol();function A0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var vf;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(vf||(vf={}));function Cj(){const e=Xo(!0),t=e.run(()=>z({}));let n=[],r=[];const i=Dp({install(a){Dv(i),i._a=a,a.provide(lN,i),a.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const uN=()=>{};function d_(e,t,n,r=uN){e.add(t);const i=()=>{e.delete(t)&&r()};return!n&&dd()&&An(i),i}function Wu(e,...t){e.forEach(n=>{n(...t)})}const _j=e=>e(),f_=Symbol(),lb=Symbol();function R0(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];A0(i)&&A0(r)&&e.hasOwnProperty(n)&&!Tt(r)&&!qs(r)?e[n]=R0(i,r):e[n]=r}return e}const Tj=Symbol();function Ij(e){return!A0(e)||!Object.prototype.hasOwnProperty.call(e,Tj)}const{assign:Po}=Object;function Pj(e){return!!(Tt(e)&&e.effect)}function Aj(e,t,n,r){const{state:i,actions:a,getters:s}=t,o=n.state.value[e];let l;function u(){o||(n.state.value[e]=i?i():{});const c=_a(n.state.value[e]);return Po(c,a,Object.keys(s||{}).reduce((d,p)=>(d[p]=Dp(D(()=>{Dv(n);const h=n._s.get(e);return s[p].call(h,h)})),d),{}))}return l=cN(e,u,t,n,r,!0),l}function cN(e,t,n={},r,i,a){let s;const o=Po({actions:{}},n),l={deep:!0};let u,c,d=new Set,p=new Set,h;const g=r.state.value[e];!a&&!g&&(r.state.value[e]={}),z({});let v;function y(I){let T;u=c=!1,typeof I=="function"?(I(r.state.value[e]),T={type:vf.patchFunction,storeId:e,events:h}):(R0(r.state.value[e],I),T={type:vf.patchObject,payload:I,storeId:e,events:h});const x=v=Symbol();Ct().then(()=>{v===x&&(u=!0)}),c=!0,Wu(d,T,r.state.value[e])}const b=a?function(){const{state:T}=n,x=T?T():{};this.$patch(R=>{Po(R,x)})}:uN;function E(){s.stop(),d.clear(),p.clear(),r._s.delete(e)}const w=(I,T="")=>{if(f_ in I)return I[lb]=T,I;const x=function(){Dv(r);const R=Array.from(arguments),O=new Set,L=new Set;function F(B){O.add(B)}function W(B){L.add(B)}Wu(p,{args:R,name:x[lb],store:P,after:F,onError:W});let H;try{H=I.apply(this&&this.$id===e?this:P,R)}catch(B){throw Wu(L,B),B}return H instanceof Promise?H.then(B=>(Wu(O,B),B)).catch(B=>(Wu(L,B),Promise.reject(B))):(Wu(O,H),H)};return x[f_]=!0,x[lb]=T,x},C={_p:r,$id:e,$onAction:d_.bind(null,p),$patch:y,$reset:b,$subscribe(I,T={}){const x=d_(d,I,T.detached,()=>R()),R=s.run(()=>Ne(()=>r.state.value[e],O=>{(T.flush==="sync"?c:u)&&I({storeId:e,type:vf.direct,events:h},O)},Po({},l,T)));return x},$dispose:E},P=Dn(C);r._s.set(e,P);const A=(r._a&&r._a.runWithContext||_j)(()=>r._e.run(()=>(s=Xo()).run(()=>t({action:w}))));for(const I in A){const T=A[I];if(Tt(T)&&!Pj(T)||qs(T))a||(g&&Ij(T)&&(Tt(T)?T.value=g[I]:R0(T,g[I])),r.state.value[e][I]=T);else if(typeof T=="function"){const x=w(T,I);A[I]=x,o.actions[I]=T}}return Po(P,A),Po(it(P),A),Object.defineProperty(P,"$state",{get:()=>r.state.value[e],set:I=>{y(T=>{Po(T,I)})}}),r._p.forEach(I=>{Po(P,s.run(()=>I({store:P,app:r._a,pinia:r,options:o})))}),g&&a&&n.hydrate&&n.hydrate(P.$state,g),u=!0,c=!0,P}function Qi(e,t,n){let r;const i=typeof t=="function";r=i?n:t;function a(s,o){const l=Dw();return s=s||(l?mt(lN,null):null),s&&Dv(s),s=oN,s._s.has(e)||(i?cN(e,t,r,s):Aj(e,r,s)),s._s.get(e)}return a.$id=e,a}class rf extends Error{}rf.prototype.name="InvalidTokenError";function Rj(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Oj(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Rj(t)}catch{return atob(t)}}function Nj(e,t){if(typeof e!="string")throw new rf("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new rf(`Invalid token specified: missing part #${n+1}`);let i;try{i=Oj(r)}catch(a){throw new rf(`Invalid token specified: invalid base64 for part #${n+1} (${a.message})`)}try{return JSON.parse(i)}catch(a){throw new rf(`Invalid token specified: invalid json for part #${n+1} (${a.message})`)}}function Dj(e,t={}){const{onError:n,fallbackValue:r=null}=t,i=(a,s)=>{try{return Nj(a,s)}catch(o){return n?.(o),r}};return{header:D(()=>i(yn(e),{header:!0})),payload:D(()=>i(yn(e)))}}class xl{static async getLoginRequired(){return await(await Xr(!1,!1)).get("/api/v2/auth/login-required")}static async postLogin(t,n){return await(await Xr(!1,!1)).post("/api/v2/auth/login",{username:t,password:n})}static async logout(){return await(await Xr(!0,!1)).post("/api/v2/auth/logout")}static async refreshLogin(t){return await(await Xr(!1,!1)).post("/api/v2/auth/refresh",{refreshToken:t})}static async verifyLogin(){return await(await Xr(!0,!1)).post("/api/v2/auth/verify")}static async registerAccount(t,n){return await(await Xr(!0,!1)).post("/api/v2/auth/register",{username:t,password:n})}}const $i={IncorrectCredentials:"IncorrectCredentials",InvalidOrExpiredRefreshToken:"InvalidOrExpiredRefreshToken",InvalidOrExpiredAuthToken:"InvalidOrExpiredAuthToken",PasswordChangeRequired:"PasswordChangeRequired",LoginRequired:"LoginRequired",AccountNotVerified:"AccountNotVerified"};function eE(e){switch(e){case $i.IncorrectCredentials:return"Incorrect credentials";case $i.InvalidOrExpiredRefreshToken:return"Invalid or expired refresh token";case $i.InvalidOrExpiredAuthToken:return"Invalid or expired auth token";case $i.PasswordChangeRequired:return"Password change required";case $i.LoginRequired:return"Login required";case $i.AccountNotVerified:return"Account not verified";default:return"Authentication error"}}function p_(e,t){return dd()?(An(e,t),!0):!1}const O0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Lj=Object.prototype.toString,Fj=e=>Lj.call(e)==="[object Object]",m_=()=>{};function $j(e,t){function n(...r){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(a)})}return n}function Mj(e,t={}){let n,r,i=m_;const a=l=>{clearTimeout(l),i(),i=m_};let s;return l=>{const u=yn(e),c=yn(t.maxWait);return n&&a(n),u<=0||c!==void 0&&c<=0?(r&&(a(r),r=void 0),Promise.resolve(l())):new Promise((d,p)=>{i=t.rejectOnCancel?p:d,s=l,c&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,d(s())},c)),n=setTimeout(()=>{r&&a(r),r=void 0,d(l())},u)})}}function ub(e){return Array.isArray(e)?e:[e]}function dN(e,t=200,n={}){return $j(Mj(t,n),e)}function Vj(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let a=null;const s=Fe(!1);function o(){a&&(clearInterval(a),a=null)}function l(){s.value=!1,o()}function u(){const c=yn(t);c<=0||(s.value=!0,i&&e(),o(),s.value&&(a=setInterval(e,c)))}return r&&O0&&u(),(Tt(t)||typeof t=="function")&&p_(Ne(t,()=>{s.value&&O0&&u()})),p_(l),{isActive:yv(s),pause:l,resume:u}}function Bj(e,t,n){return Ne(e,t,{...n,immediate:!0})}const fN=O0?window:void 0;function Uj(e){var t;const n=yn(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function jj(...e){const t=(r,i,a,s)=>(r.addEventListener(i,a,s),()=>r.removeEventListener(i,a,s)),n=D(()=>{const r=ub(yn(e[0])).filter(i=>i!=null);return r.every(i=>typeof i!="string")?r:void 0});return Bj(()=>{var r,i;return[(r=(i=n.value)===null||i===void 0?void 0:i.map(a=>Uj(a)))!==null&&r!==void 0?r:[fN].filter(a=>a!=null),ub(yn(n.value?e[1]:e[0])),ub(ne(n.value?e[2]:e[1])),yn(n.value?e[3]:e[2])]},([r,i,a,s],o,l)=>{if(!r?.length||!i?.length||!a?.length)return;const u=Fj(s)?{...s}:s,c=r.flatMap(d=>i.flatMap(p=>a.map(h=>t(d,p,h,u))));l(()=>{c.forEach(d=>d())})},{flush:"post"})}function zj(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Hj(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=fN,eventName:a="keydown",passive:s=!1,dedupe:o=!1}=r,l=zj(t);return jj(i,a,c=>{c.repeat&&yn(o)||l(c)&&n(c)},s)}const zd=new Map;function Si(e){const t=dd();function n(o){var l;const u=zd.get(e)||new Set;u.add(o),zd.set(e,u);const c=()=>i(o);return t==null||(l=t.cleanups)===null||l===void 0||l.push(c),c}function r(o){function l(...u){i(l),o(...u)}return n(l)}function i(o){const l=zd.get(e);l&&(l.delete(o),l.size||a())}function a(){zd.delete(e)}function s(o,l){var u;(u=zd.get(e))===null||u===void 0||u.forEach(c=>c(o,l))}return{on:n,once:r,off:i,emit:s,reset:a}}const Rs=Qi("auth",{state:()=>({isDemoMode:null,token:null,refreshToken:null,loginRequired:null,registration:null,wizardState:null,lastLogoutReason:null}),actions:{async checkAuthenticationRequirements(){return await xl.getLoginRequired().then(e=>(this.loginRequired=e.data.loginRequired,this.wizardState=e.data.wizardState,this.registration=e.data.registration,this.isDemoMode=e.data.isDemoMode,{loginRequired:this.loginRequired,wizardState:this.wizardState,registration:this.registration})).catch(e=>{throw console.error("authRequired: failed to check login required",e.response?.status),e})},async login(e,t){return this.lastLogoutReason=null,await xl.postLogin(e,t).then(n=>(this.setTokens(n.data.token,n.data.refreshToken),n.data)).catch(n=>{throw console.error("login: failed to login",n.response?.status),n})},async logout(e=!1,t){if(console.debug(`Logging out (calling server ${e})`),t&&(this.lastLogoutReason=t),e&&this.tokenClaims&&!this.isLoginExpired)try{await xl.logout()}catch(n){console.error("Server could not process logout, but local logout was successful",n)}this.setIdToken(void 0),this.setRefreshToken(void 0)},async verifyOrRefreshLoginOnceOrLogout(){try{return await xl.verifyLogin(),{success:!0}}catch(e){console.error("[AuthStore.verifyOrRefreshLoginOnce]: failed to verify login",e);const t=e;if(!t.response||t.response?.status!==Al.Unauthorized)throw console.error("[AuthStore.verifyOrRefreshLoginOnce]: unknown error",t.status),e;const{reasonCode:n,url:r}=this.extractSpecialReasonCode(e);if(n)return await this.logout(!1,eE(n)),console.error(`[AuthStore] 401 Unauthorized - emitting 'auth:${n}' with reason ${n}`),Si(`auth:${n}`).emit({url:r,error:t.message,reasonCode:n}),{success:!1,handled:!0};if(!this.hasRefreshToken)return{success:!1,handled:!1};try{await this.refreshLoginToken(),await xl.verifyLogin()}catch(i){const a=i;if(a.response?.status===Al.Unauthorized)return await this.logout(!1),console.error("[AuthStore.verifyOrRefreshLoginOnce]: failed to refresh token",a.status),{success:!1,handled:!1};throw i}return{success:!0,handled:!1}}},extractSpecialReasonCode(e){const t=e?.response?.data?.reasonCode;return t&&console.error("[AuthStore] 401 Unauthorized - Checking received reason code",t),t&&(t===$i.AccountNotVerified||t===$i.PasswordChangeRequired)?{reasonCode:t,url:e?.config?.url}:{reasonCode:null,url:null}},loadTokens(){this.token=localStorage.getItem("token"),this.refreshToken=localStorage.getItem("refreshToken")},async refreshLoginToken(){if(!this.refreshToken)throw new Error("refreshLoginToken: no refresh token");return await xl.refreshLogin(this.refreshToken).then(e=>(e?.data?.token&&this.setIdToken(e.data.token),!0)).catch(e=>{throw e.response?.status==Al.Unauthorized?(this.setTokens(void 0,void 0),console.error("refreshLoginToken: authentication error, failed to refresh tokens",e.response?.status)):console.error("refreshLoginToken: unknown error, failed to refresh tokens",e.response?.status),e})},setTokens(e,t){this.setIdToken(e),this.setRefreshToken(t)},setIdToken(e){e?.length?(localStorage.setItem("token",e),this.token=e):localStorage.removeItem("token")},setRefreshToken(e){e?.length?(localStorage.setItem("refreshToken",e),this.refreshToken=e):localStorage.removeItem("refreshToken")}},getters:{hasRefreshToken(){return!!this.refreshToken},isLoginExpired(){const e=this.tokenClaims;return e?.exp?e.exp<Date.now()/1e3:!1},hasAuthToken(){return!!this.tokenClaims},tokenClaims(){if(!this.token)return null;const e=Dj(this.token,{fallbackValue:null});return e?e.payload.value:null}}}),at=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Yt=globalThis,Yl="10.32.1";function Ru(){return Lv(Yt),Yt}function Lv(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Yl,t[Yl]=t[Yl]||{}}function hd(e,t,n=Yt){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[Yl]=r[Yl]||{};return i[e]||(i[e]=t())}const Wj=["debug","info","warn","error","log","assert","trace"],Gj="Sentry Logger ",dg={};function wo(e){if(!("console"in Yt))return e();const t=Yt.console,n={},r=Object.keys(dg);r.forEach(i=>{const a=dg[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function qj(){nE().enabled=!0}function Kj(){nE().enabled=!1}function pN(){return nE().enabled}function Yj(...e){tE("log",...e)}function Xj(...e){tE("warn",...e)}function Jj(...e){tE("error",...e)}function tE(e,...t){at&&pN()&&wo(()=>{Yt.console[e](`${Gj}[${e}]:`,...t)})}function nE(){return at?hd("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Ge={enable:qj,disable:Kj,isEnabled:pN,log:Yj,warn:Xj,error:Jj},mN=50,mu="?",h_=/\(error: (.*)\)/,g_=/captureMessage|captureException/;function hN(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const a=[],s=n.split(`
10
+ `);for(let o=r;o<s.length;o++){let l=s[o];l.length>1024&&(l=l.slice(0,1024));const u=h_.test(l)?l.replace(h_,"$1"):l;if(!u.match(/\S*Error: /)){for(const c of t){const d=c(u);if(d){a.push(d);break}}if(a.length>=mN+i)break}}return Zj(a.slice(i))}}function Qj(e){return Array.isArray(e)?hN(...e):e}function Zj(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Fm(t).function||"")&&t.pop(),t.reverse(),g_.test(Fm(t).function||"")&&(t.pop(),g_.test(Fm(t).function||"")&&t.pop()),t.slice(0,mN).map(n=>({...n,filename:n.filename||Fm(t).filename,function:n.function||mu}))}function Fm(e){return e[e.length-1]||{}}const cb="<anonymous>";function uo(e){try{return!e||typeof e!="function"?cb:e.name||cb}catch{return cb}}function v_(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function gN(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const vh={},y_={};function ol(e,t){vh[e]=vh[e]||[],vh[e].push(t)}function ll(e,t){if(!y_[e]){y_[e]=!0;try{t()}catch(n){at&&Ge.error(`Error while instrumenting ${e}`,n)}}}function Ts(e,t){const n=e&&vh[e];if(n)for(const r of n)try{r(t)}catch(i){at&&Ge.error(`Error while triggering instrumentation handler.
11
+ Type: ${e}
12
+ Name: ${uo(r)}
13
+ Error:`,i)}}let db=null;function vN(e){const t="error";ol(t,e),ll(t,ez)}function ez(){db=Yt.onerror,Yt.onerror=function(e,t,n,r,i){return Ts("error",{column:r,error:i,line:n,msg:e,url:t}),db?db.apply(this,arguments):!1},Yt.onerror.__SENTRY_INSTRUMENTED__=!0}let fb=null;function yN(e){const t="unhandledrejection";ol(t,e),ll(t,tz)}function tz(){fb=Yt.onunhandledrejection,Yt.onunhandledrejection=function(e){return Ts("unhandledrejection",e),fb?fb.apply(this,arguments):!0},Yt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const bN=Object.prototype.toString;function rE(e){switch(bN.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return co(e,Error)}}function gd(e,t){return bN.call(e)===`[object ${t}]`}function SN(e){return gd(e,"ErrorEvent")}function b_(e){return gd(e,"DOMError")}function nz(e){return gd(e,"DOMException")}function Ka(e){return gd(e,"String")}function iE(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Dc(e){return e===null||iE(e)||typeof e!="object"&&typeof e!="function"}function Wf(e){return gd(e,"Object")}function Fv(e){return typeof Event<"u"&&co(e,Event)}function rz(e){return typeof Element<"u"&&co(e,Element)}function iz(e){return gd(e,"RegExp")}function vd(e){return!!(e?.then&&typeof e.then=="function")}function sz(e){return Wf(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function co(e,t){try{return e instanceof t}catch{return!1}}function wN(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function sE(e){return typeof Request<"u"&&co(e,Request)}const aE=Yt,az=80;function qi(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let u;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||az;for(;n&&a++<r&&(u=oz(n,c),!(u==="html"||a>1&&s+i.length*l+u.length>=d));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return"<unknown>"}}function oz(e,t){const n=e,r=[];if(!n?.tagName)return"";if(aE.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i?.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const s=n.className;if(s&&Ka(s)){const o=s.split(/\s+/);for(const l of o)r.push(`.${l}`)}}const a=["aria-label","type","name","title","alt"];for(const s of a){const o=n.getAttribute(s);o&&r.push(`[${s}="${o}"]`)}return r.join("")}function yd(){try{return aE.document.location.href}catch{return""}}function EN(e){if(!aE.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Vi(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&xN(i,r);try{e[t]=i}catch{at&&Ge.log(`Failed to replace method "${t}" in object`,e)}}function Ki(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{at&&Ge.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function xN(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ki(e,"__sentry_original__",t)}catch{}}function oE(e){return e.__sentry_original__}function kN(e){if(rE(e))return{message:e.message,name:e.name,stack:e.stack,...w_(e)};if(Fv(e)){const t={type:e.type,target:S_(e.target),currentTarget:S_(e.currentTarget),...w_(e)};return typeof CustomEvent<"u"&&co(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function S_(e){try{return rz(e)?qi(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function w_(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function lz(e){const t=Object.keys(kN(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}function N0(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function E_(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{wN(i)?n.push(gN(i)):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function yh(e,t,n=!1){return Ka(e)?iz(t)?t.test(e):Ka(t)?n?e===t:e.includes(t):!1:!1}function Ya(e,t=[],n=!1){return t.some(r=>yh(e,r,n))}function uz(){const e=Yt;return e.crypto||e.msCrypto}let pb;function cz(){return Math.random()*16}function ds(e=uz()){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return pb||(pb="10000000100040008000"+1e11),pb.replace(/[018]/g,t=>(t^(cz()&15)>>t/4).toString(16))}function CN(e){return e.exception?.values?.[0]}function Tl(e){const{message:t,event_id:n}=e;if(t)return t;const r=CN(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function D0(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Lc(e,t){const n=CN(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i?.data,...t.data};n.mechanism.data=a}}function x_(e){if(dz(e))return!0;try{Ki(e,"__sentry_captured__",!0)}catch{}return!1}function dz(e){try{return e.__sentry_captured__}catch{}}const _N=1e3;function Ou(){return Date.now()/_N}function fz(){const{performance:e}=Yt;if(!e?.now||!e.timeOrigin)return Ou;const t=e.timeOrigin;return()=>(t+e.now())/_N}let k_;function or(){return(k_??(k_=fz()))()}let mb;function pz(){const{performance:e}=Yt;if(!e?.now)return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,s=e.timing?.navigationStart,l=typeof s=="number"?Math.abs(s+n-r):t,u=l<t;return a||u?i<=l?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[r,"dateNow"]}function Zi(){return mb||(mb=pz()),mb[0]}function mz(e){const t=or(),n={sid:ds(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>gz(n)};return e&&Fc(n,e),n}function Fc(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||or(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ds()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function hz(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Fc(e,n)}function gz(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Hp(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=Hp(r[i],t[i],n-1));return r}function fo(){return ds()}function Xa(){return ds().substring(16)}const L0="_sentrySpan";function $c(e,t){t?Ki(e,L0,t):delete e[L0]}function fg(e){return e[L0]}const vz=100;class wa{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:fo(),sampleRand:Math.random()}}clone(){const t=new wa;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,$c(t,fg(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Fc(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof wa?n.getScopeData():Wf(n)?t:void 0,{tags:i,attributes:a,extra:s,user:o,contexts:l,level:u,fingerprint:c=[],propagationContext:d}=r||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...a},this._extra={...this._extra,...s},this._contexts={...this._contexts,...l},o&&Object.keys(o).length&&(this._user=o),u&&(this._level=u),c.length&&(this._fingerprint=c),d&&(this._propagationContext=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,$c(this,void 0),this._attachments=[],this.setPropagationContext({traceId:fo(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:vz;if(r<=0)return this;const i={timestamp:Ou(),...t,message:t.message?N0(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:fg(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Hp(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||ds();if(!this._client)return at&&Ge.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r?.event_id||ds();if(!this._client)return at&&Ge.warn("No client configured on scope - will not capture message!"),i;const a=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n?.event_id||ds();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(at&&Ge.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function yz(){return hd("defaultCurrentScope",()=>new wa)}function bz(){return hd("defaultIsolationScope",()=>new wa)}class Sz{constructor(t,n){let r;t?r=t:r=new wa;let i;n?i=n:i=new wa,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return vd(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Mc(){const e=Ru(),t=Lv(e);return t.stack=t.stack||new Sz(yz(),bz())}function wz(e){return Mc().withScope(e)}function Ez(e,t){const n=Mc();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function C_(e){return Mc().withScope(()=>e(Mc().getIsolationScope()))}function xz(){return{withIsolationScope:C_,withScope:wz,withSetScope:Ez,withSetIsolationScope:(e,t)=>C_(t),getCurrentScope:()=>Mc().getScope(),getIsolationScope:()=>Mc().getIsolationScope()}}function bd(e){const t=Lv(e);return t.acs?t.acs:xz()}function hn(){const e=Ru();return bd(e).getCurrentScope()}function Ta(){const e=Ru();return bd(e).getIsolationScope()}function TN(){return hd("globalScope",()=>new wa)}function $v(...e){const t=Ru(),n=bd(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Gt(){return hn().getClient()}function kz(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,a={trace_id:n,span_id:i||Xa()};return r&&(a.parent_span_id=r),a}const Bi="sentry.source",lE="sentry.sample_rate",IN="sentry.previous_trace_sample_rate",po="sentry.op",Wn="sentry.origin",Gf="sentry.idle_span_finish_reason",Wp="sentry.measurement_unit",Gp="sentry.measurement_value",__="sentry.custom_span_name",uE="sentry.profile_id",Sd="sentry.exclusive_time",Cz="sentry.link.type",_z=0,cE=1,br=2;function Tz(e){if(e<400&&e>=100)return{code:cE};if(e>=400&&e<500)switch(e){case 401:return{code:br,message:"unauthenticated"};case 403:return{code:br,message:"permission_denied"};case 404:return{code:br,message:"not_found"};case 409:return{code:br,message:"already_exists"};case 413:return{code:br,message:"failed_precondition"};case 429:return{code:br,message:"resource_exhausted"};case 499:return{code:br,message:"cancelled"};default:return{code:br,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:br,message:"unimplemented"};case 503:return{code:br,message:"unavailable"};case 504:return{code:br,message:"deadline_exceeded"};default:return{code:br,message:"internal_error"}}return{code:br,message:"internal_error"}}function PN(e,t){e.setAttribute("http.response.status_code",t);const n=Tz(t);n.message!=="unknown_error"&&e.setStatus(n)}const AN="_sentryScope",RN="_sentryIsolationScope";function Iz(e){try{const t=Yt.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function Pz(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function Az(e,t,n){e&&(Ki(e,RN,Iz(n)),Ki(e,AN,t))}function pg(e){const t=e;return{scope:t[AN],isolationScope:Pz(t[RN])}}const dE="sentry-",Rz=/^sentry-/,Oz=8192;function ON(e){const t=Dz(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(Rz)){const s=i.slice(dE.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function Nz(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${dE}${r}`]=i),n),{});return Lz(t)}function Dz(e){if(!(!e||!Ka(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=T_(n);return Object.entries(r).forEach(([i,a])=>{t[i]=a}),t},{}):T_(e)}function T_(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),i=t.slice(n+1);return[r,i].map(a=>{try{return decodeURIComponent(a.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Lz(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>Oz?(at&&Ge.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const Fz=/^o(\d+)\./,$z=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Mz(e){return e==="http"||e==="https"}function wd(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function Vz(e){const t=$z.exec(e);if(!t){wo(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a="",s="",o=""]=t.slice(1);let l="",u=o;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const d=u.match(/^\d+/);d&&(u=d[0])}return NN({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function NN(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Bz(e){if(!at)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Ge.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Mz(r)?t&&isNaN(parseInt(t,10))?(Ge.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Ge.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Ge.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Uz(e){return e.match(Fz)?.[1]}function jz(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=Uz(n)),r}function zz(e){const t=typeof e=="string"?Vz(e):NN(e);if(!(!t||!Bz(t)))return t}function hu(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const DN=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Hz(e){if(!e)return;const t=e.match(DN);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Wz(e,t){const n=Hz(e),r=ON(t);if(!n?.traceId)return{traceId:fo(),sampleRand:Math.random()};const i=Gz(n,r);r&&(r.sample_rand=i.toString());const{traceId:a,parentSpanId:s,parentSampled:o}=n;return{traceId:a,parentSpanId:s,sampled:o,dsc:r||{},sampleRand:i}}function LN(e=fo(),t=Xa(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function FN(e=fo(),t=Xa(),n){return`00-${e}-${t}-${n?"01":"00"}`}function Gz(e,t){const n=hu(t?.sample_rand);if(n!==void 0)return n;const r=hu(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const $N=0,fE=1;let I_=!1;function qz(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,origin:o,links:l}=tn(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:s,origin:o,links:l}}function Kz(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:tn(e).parent_span_id,a=pg(e).scope,s=r?a?.getPropagationContext().propagationSpanId||Xa():t;return{parent_span_id:i,span_id:s,trace_id:n}}function Yz(e){const{traceId:t,spanId:n}=e.spanContext(),r=ul(e);return LN(t,n,r)}function Xz(e){const{traceId:t,spanId:n}=e.spanContext(),r=ul(e);return FN(t,n,r)}function MN(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:a})=>({span_id:t,trace_id:n,sampled:r===fE,attributes:a,...i}))}function Xl(e){return typeof e=="number"?P_(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?P_(e.getTime()):or()}function P_(e){return e>9999999999?e/1e3:e}function tn(e){if(Qz(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(Jz(e)){const{attributes:r,startTime:i,name:a,endTime:s,status:o,links:l}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:u,start_timestamp:Xl(i),timestamp:Xl(s)||void 0,status:VN(o),op:r[po],origin:r[Wn],links:MN(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Jz(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Qz(e){return typeof e.getSpanJSON=="function"}function ul(e){const{traceFlags:t}=e.spanContext();return t===fE}function VN(e){if(!(!e||e.code===_z))return e.code===cE?"ok":e.message||"internal_error"}const Jl="_sentryChildSpans",F0="_sentryRootSpan";function BN(e,t){const n=e[F0]||e;Ki(t,F0,n),e[Jl]?e[Jl].add(t):Ki(e,Jl,new Set([t]))}function Zz(e,t){e[Jl]&&e[Jl].delete(t)}function bh(e){const t=new Set;function n(r){if(!t.has(r)&&ul(r)){t.add(r);const i=r[Jl]?Array.from(r[Jl]):[];for(const a of i)n(a)}}return n(e),Array.from(t)}function Br(e){return e[F0]||e}function zr(){const e=Ru(),t=bd(e);return t.getActiveSpan?t.getActiveSpan():fg(hn())}function $0(){I_||(wo(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),I_=!0)}let A_=!1;function eH(){if(A_)return;function e(){const t=zr(),n=t&&Br(t);if(n){const r="internal_error";at&&Ge.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:br,message:r})}}e.tag="sentry_tracingErrorCallback",A_=!0,vN(e),yN(e)}function Is(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||Gt()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function R_(e){Ge.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function mg(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(nH(n)){if(yh(e.description,n))return at&&R_(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?yh(e.description,n.name):!0,i=n.op?e.op&&yh(e.op,n.op):!0;if(r&&i)return at&&R_(e),!0}return!1}function tH(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const i of e)i.parent_span_id===r&&(i.parent_span_id=n)}function nH(e){return typeof e=="string"||e instanceof RegExp}const pE="production",UN="_frozenDsc";function Sh(e,t){Ki(e,UN,t)}function jN(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||pE,release:n.release,public_key:r,trace_id:e,org_id:jz(t)};return t.emit("createDsc",i),i}function zN(e,t){const n=t.getPropagationContext();return n.dsc||jN(n.traceId,e)}function mo(e){const t=Gt();if(!t)return{};const n=Br(e),r=tn(n),i=r.data,a=n.spanContext().traceState,s=a?.get("sentry.sample_rate")??i[lE]??i[IN];function o(g){return(typeof s=="number"||typeof s=="string")&&(g.sample_rate=`${s}`),g}const l=n[UN];if(l)return o(l);const u=a?.get("sentry.dsc"),c=u&&ON(u);if(c)return o(c);const d=jN(e.spanContext().traceId,t),p=i[Bi],h=r.description;return p!=="url"&&h&&(d.transaction=h),Is()&&(d.sampled=String(ul(n)),d.sample_rand=a?.get("sentry.sample_rand")??pg(n).scope?.getPropagationContext().sampleRand.toString()),o(d),t.emit("createDsc",d,n),d}class Qo{constructor(t={}){this._traceId=t.traceId||fo(),this._spanId=t.spanId||Xa()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:$N}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Bs(e,t=100,n=1/0){try{return M0("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function HN(e,t=3,n=100*1024){const r=Bs(e,t);return aH(r)>n?HN(e,t-1,n):r}function M0(e,t,n=1/0,r=1/0,i=oH()){const[a,s]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const o=rH(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const h=u.toJSON();return M0("",h,l-1,r,i)}catch{}const c=Array.isArray(t)?[]:{};let d=0;const p=kN(t);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(d>=r){c[h]="[MaxProperties ~]";break}const g=p[h];c[h]=M0(h,g,l-1,r,i),d++}return s(t),c}function rH(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(wN(t))return gN(t);if(sz(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${uo(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=iH(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function iH(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function sH(e){return~-encodeURI(e).split(/%..|./).length}function aH(e){return sH(JSON.stringify(e))}function oH(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function cl(e,t=[]){return[e,t]}function lH(e,t){const[n,r]=e;return[n,[...r,t]]}function O_(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function V0(e){const t=Lv(Yt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function uH(e){const[t,n]=e;let r=JSON.stringify(t);function i(a){typeof r=="string"?r=typeof a=="string"?r+a:[V0(r),a]:r.push(typeof a=="string"?V0(a):a)}for(const a of n){const[s,o]=a;if(i(`
14
+ ${JSON.stringify(s)}
15
+ `),typeof o=="string"||o instanceof Uint8Array)i(o);else{let l;try{l=JSON.stringify(o)}catch{l=JSON.stringify(Bs(o))}i(l)}}return typeof r=="string"?r:cH(r)}function cH(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function dH(e){return[{type:"span"},e]}function fH(e){const t=typeof e.data=="string"?V0(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const pH={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function N_(e){return pH[e]}function mE(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function WN(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:wd(r)},...i&&{trace:i}}}function mH(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function hH(e,t,n,r){const i=mE(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:wd(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return cl(a,[s])}function gH(e,t,n,r){const i=mE(n),a=e.type&&e.type!=="replay_event"?e.type:"event";mH(e,n?.sdk);const s=WN(e,i,r,t);return delete e.sdkProcessingMetadata,cl(s,[[{type:a},e]])}function vH(e,t){function n(h){return!!h.trace_id&&!!h.public_key}const r=mo(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:wd(i)}},{beforeSendSpan:o,ignoreSpans:l}=t?.getOptions()||{},u=l?.length?e.filter(h=>!mg(tn(h),l)):e,c=e.length-u.length;c&&t?.recordDroppedEvent("before_send","span",c);const d=o?h=>{const g=tn(h),v=o(g);return v||($0(),g)}:tn,p=[];for(const h of u){const g=d(h);g&&p.push(dH(g))}return cl(s,p)}function yH(e){if(!at)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=tn(e),{spanId:i}=e.spanContext(),a=ul(e),s=Br(e),o=s===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${o?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!o){const{op:c,description:d}=tn(s);u.push(`root ID: ${s.spanContext().spanId}`),c&&u.push(`root op: ${c}`),d&&u.push(`root description: ${d}`)}Ge.log(`${l}
16
+ ${u.join(`
17
+ `)}`)}function bH(e){if(!at)return;const{description:t="< unknown name >",op:n="< unknown op >"}=tn(e),{spanId:r}=e.spanContext(),a=Br(e)===e,s=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${r}`;Ge.log(s)}function SH(e,t,n,r=zr()){const i=r&&Br(r);i&&(at&&Ge.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Gp]:t,[Wp]:n}))}function D_(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[Wp],a=r[Gp];typeof i=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:i})}),t}const L_=1e3;class Mv{constructor(t={}){this._traceId=t.traceId||fo(),this._spanId=t.spanId||Xa(),this._startTime=t.startTimestamp||or(),this._links=t.links,this._attributes={},this.setAttributes({[Wn]:"manual",[po]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?fE:$N}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Xl(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Bi,"custom"),this}end(t){this._endTime||(this._endTime=Xl(t),bH(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[po],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:VN(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Wn],profile_id:this._attributes[uE],exclusive_time:this._attributes[Sd],measurements:D_(this._events),is_segment:this._isStandaloneSpan&&Br(this)===this||void 0,segment_id:this._isStandaloneSpan?Br(this).spanContext().spanId:void 0,links:MN(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){at&&Ge.log("[Tracing] Adding an event to span:",t);const i=F_(n)?n:r||or(),a=F_(n)?{}:n||{},s={name:t,time:Xl(i),attributes:a};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Gt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Br(this)))return;if(this._isStandaloneSpan){this._sampled?EH(vH([this],t)):(at&&Ge.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(pg(this).scope||hn()).captureEvent(r)}_convertSpanToTransaction(){if(!$_(tn(this)))return;this._name||(at&&Ge.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=pg(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const a=bh(this).filter(c=>c!==this&&!wH(c)).map(c=>tn(c)).filter($_),s=this._attributes[Bi];delete this._attributes[__],a.forEach(c=>{delete c.data[__]});const o={contexts:{trace:qz(this)},spans:a.length>L_?a.sort((c,d)=>c.start_timestamp-d.start_timestamp).slice(0,L_):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:mo(this)},request:r,...s&&{transaction_info:{source:s}}},l=D_(this._events);return l&&Object.keys(l).length&&(at&&Ge.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),o.measurements=l),o}}function F_(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function $_(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function wH(e){return e instanceof Mv&&e.isStandaloneSpan()}function EH(e){const t=Gt();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function xH(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(a){throw t(a),n(),a}return kH(i,t,n,r)}function kH(e,t,n,r){return vd(e)?e.then(i=>(n(),r(i),i),i=>{throw t(i),n(),i}):(n(),r(e),e)}function CH(e,t,n){if(!Is(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:o=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):o}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const a=hu(i);if(a===void 0)return at&&Ge.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return at&&Ge.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,r];const s=n<a;return s||at&&Ge.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[s,a,r]}const GN="__SENTRY_SUPPRESS_TRACING__";function _H(e,t){const n=gE();if(n.startSpan)return n.startSpan(e,t);const r=KN(e),{forceTransaction:i,parentSpan:a,scope:s}=e,o=s?.clone();return $v(o,()=>IH(a)(()=>{const u=hn(),c=YN(u,a),p=e.onlyIfParent&&!c?new Qo:qN({parentSpan:c,spanArguments:r,forceTransaction:i,scope:u});return $c(u,p),xH(()=>t(p),()=>{const{status:h}=tn(p);p.isRecording()&&(!h||h==="ok")&&p.setStatus({code:br,message:"internal_error"})},()=>{p.end()})}))}function Zo(e){const t=gE();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=KN(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?s=>$v(e.scope,s):i!==void 0?s=>hE(i,s):s=>s())(()=>{const s=hn(),o=YN(s,i);return e.onlyIfParent&&!o?new Qo:qN({parentSpan:o,spanArguments:n,forceTransaction:r,scope:s})})}function hE(e,t){const n=gE();return n.withActiveSpan?n.withActiveSpan(e,t):$v(r=>($c(r,e||void 0),t(r)))}function qN({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Is()){const s=new Qo;if(n||!e){const o={sampled:"false",sample_rate:"0",transaction:t.name,...mo(s)};Sh(s,o)}return s}const i=Ta();let a;if(e&&!n)a=TH(e,r,t),BN(e,a);else if(e){const s=mo(e),{traceId:o,spanId:l}=e.spanContext(),u=ul(e);a=M_({traceId:o,parentSpanId:l,...t},r,u),Sh(a,s)}else{const{traceId:s,dsc:o,parentSpanId:l,sampled:u}={...i.getPropagationContext(),...r.getPropagationContext()};a=M_({traceId:s,parentSpanId:l,...t},r,u),o&&Sh(a,o)}return yH(a),Az(a,r,i),a}function KN(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Xl(e.startTime),delete r.startTime,r}return n}function gE(){const e=Ru();return bd(e)}function M_(e,t,n){const r=Gt(),i=r?.getOptions()||{},{name:a=""}=e,s={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit("beforeSampling",s,{decision:!1});const o=s.parentSampled??n,l=s.spanAttributes,u=t.getPropagationContext(),[c,d,p]=t.getScopeData().sdkProcessingMetadata[GN]?[!1]:CH(i,{name:a,parentSampled:o,attributes:l,parentSampleRate:hu(u.dsc?.sample_rate)},u.sampleRand),h=new Mv({...e,attributes:{[Bi]:"custom",[lE]:d!==void 0&&p?d:void 0,...l},sampled:c});return!c&&r&&(at&&Ge.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",h),h}function TH(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[GN]?!1:ul(e),s=a?new Mv({...n,parentSpanId:r,traceId:i,sampled:a}):new Qo({traceId:i});BN(e,s);const o=Gt();return o&&(o.emit("spanStart",s),n.endTimestamp&&o.emit("spanEnd",s)),s}function YN(e,t){if(t)return t;if(t===null)return;const n=fg(e);if(!n)return;const r=Gt();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Br(n):n}function IH(e){return e!==void 0?t=>hE(e,t):t=>t()}const wh={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},PH="heartbeatFailed",AH="idleTimeout",RH="finalTimeout",OH="externalFinish";function XN(e,t={}){const n=new Map;let r=!1,i,a=OH,s=!t.disableAutoFinish;const o=[],{idleTimeout:l=wh.idleTimeout,finalTimeout:u=wh.finalTimeout,childSpanTimeout:c=wh.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:p=!0}=t,h=Gt();if(!h||!Is()){const A=new Qo,I={sample_rate:"0",sampled:"false",...mo(A)};return Sh(A,I),A}const g=hn(),v=zr(),y=NH(e);y.end=new Proxy(y.end,{apply(A,I,T){if(d&&d(y),I instanceof Qo)return;const[x,...R]=T,O=x||or(),L=Xl(O),F=bh(y).filter(q=>q!==y),W=tn(y);if(!F.length||!p)return _(L),Reflect.apply(A,I,[L,...R]);const H=h.getOptions().ignoreSpans,B=F?.reduce((q,U)=>{const M=tn(U);return!M.timestamp||H&&mg(M,H)?q:q?Math.max(q,M.timestamp):M.timestamp},void 0),$=W.start_timestamp,Y=Math.min($?$+u/1e3:1/0,Math.max($||-1/0,Math.min(L,B||1/0)));return _(Y),Reflect.apply(A,I,[Y,...R])}});function b(){i&&(clearTimeout(i),i=void 0)}function E(A){b(),i=setTimeout(()=>{!r&&n.size===0&&s&&(a=AH,y.end(A))},l)}function w(A){i=setTimeout(()=>{!r&&s&&(a=PH,y.end(A))},c)}function C(A){b(),n.set(A,!0);const I=or();w(I+c/1e3)}function P(A){if(n.has(A)&&n.delete(A),n.size===0){const I=or();E(I+l/1e3)}}function _(A){r=!0,n.clear(),o.forEach(F=>F()),$c(g,v);const I=tn(y),{start_timestamp:T}=I;if(!T)return;I.data[Gf]||y.setAttribute(Gf,a);const R=I.status;(!R||R==="unknown")&&y.setStatus({code:cE}),Ge.log(`[Tracing] Idle span "${I.op}" finished`);const O=bh(y).filter(F=>F!==y);let L=0;O.forEach(F=>{F.isRecording()&&(F.setStatus({code:br,message:"cancelled"}),F.end(A),at&&Ge.log("[Tracing] Cancelling span since span ended early",JSON.stringify(F,void 0,2)));const W=tn(F),{timestamp:H=0,start_timestamp:B=0}=W,$=B<=A,Y=(u+l)/1e3,q=H-B<=Y;if(at){const U=JSON.stringify(F,void 0,2);$?q||Ge.log("[Tracing] Discarding span since it finished after idle span final timeout",U):Ge.log("[Tracing] Discarding span since it happened after idle span was finished",U)}(!q||!$)&&(Zz(y,F),L++)}),L>0&&y.setAttribute("sentry.idle_span_discarded_spans",L)}return o.push(h.on("spanStart",A=>{if(r||A===y||tn(A).timestamp||A instanceof Mv&&A.isStandaloneSpan())return;bh(y).includes(A)&&C(A.spanContext().spanId)})),o.push(h.on("spanEnd",A=>{r||P(A.spanContext().spanId)})),o.push(h.on("idleSpanEnableAutoFinish",A=>{A===y&&(s=!0,E(),n.size&&w())})),t.disableAutoFinish||E(),setTimeout(()=>{r||(y.setStatus({code:br,message:"deadline_exceeded"}),a=RH,y.end())},u),y}function NH(e){const t=Zo(e);return $c(hn(),t),at&&Ge.log("[Tracing] Started span is an idle span"),t}const hb=0,V_=1,B_=2;function Vv(e){return new qf(t=>{t(e)})}function vE(e){return new qf((t,n)=>{n(e)})}class qf{constructor(t){this._state=hb,this._handlers=[],this._runExecutor(t)}then(t,n){return new qf((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new qf((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}_executeHandlers(){if(this._state===hb)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===V_&&n[1](this._value),this._state===B_&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(a,s)=>{if(this._state===hb){if(vd(s)){s.then(r,i);return}this._state=a,this._value=s,this._executeHandlers()}},r=a=>{n(V_,a)},i=a=>{n(B_,a)};try{t(r,i)}catch(a){i(a)}}}function DH(e,t,n,r=0){try{const i=B0(t,n,e,r);return vd(i)?i:Vv(i)}catch(i){return vE(i)}}function B0(e,t,n,r){const i=n[r];if(!e||!i)return e;const a=i({...e},t);return at&&a===null&&Ge.log(`Event processor "${i.id||"?"}" dropped event`),vd(a)?a.then(s=>B0(s,t,n,r+1)):B0(a,t,n,r+1)}function LH(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;FH(e,t),r&&VH(e,r),BH(e,n),$H(e,i),MH(e,a)}function U_(e,t){const{extra:n,tags:r,attributes:i,user:a,contexts:s,level:o,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:d,attachments:p,propagationContext:h,transactionName:g,span:v}=t;Hd(e,"extra",n),Hd(e,"tags",r),Hd(e,"attributes",i),Hd(e,"user",a),Hd(e,"contexts",s),e.sdkProcessingMetadata=Hp(e.sdkProcessingMetadata,l,2),o&&(e.level=o),g&&(e.transactionName=g),v&&(e.span=v),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...h}}function Hd(e,t,n){e[t]=Hp(e[t],n,1)}function FH(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),s&&(e.level=s),o&&e.type!=="transaction"&&(e.transaction=o)}function $H(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function MH(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function VH(e,t){e.contexts={trace:Kz(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:mo(t),...e.sdkProcessingMetadata};const n=Br(t),r=tn(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function BH(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let yl,j_,z_,Co;function UH(e){const t=Yt._sentryDebugIds,n=Yt._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(Co&&r.length===j_&&i.length===z_)return Co;j_=r.length,z_=i.length,Co={},yl||(yl={});const a=(s,o)=>{for(const l of s){const u=o[l],c=yl?.[l];if(c&&Co&&u)Co[c[0]]=u,yl&&(yl[l]=[c[0],u]);else if(u){const d=e(l);for(let p=d.length-1;p>=0;p--){const g=d[p]?.filename;if(g&&Co&&yl){Co[g]=u,yl[l]=[g,u];break}}}}};return t&&a(r,t),n&&a(i,n),Co}function JN(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||ds(),timestamp:t.timestamp||Ou()},u=n.integrations||e.integrations.map(y=>y.name);jH(l,e),WH(l,u),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&zH(l,e.stackParser);const c=qH(r,n.captureContext);n.mechanism&&Lc(l,n.mechanism);const d=i?i.getEventProcessors():[],p=TN().getScopeData();if(a){const y=a.getScopeData();U_(p,y)}if(c){const y=c.getScopeData();U_(p,y)}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),LH(l,p);const g=[...d,...p.eventProcessors];return DH(g,l,n).then(y=>(y&&HH(y),typeof s=="number"&&s>0?GH(y,s,o):y))}function jH(e,t){const{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||pE,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const s=e.request;s?.url&&a&&(s.url=N0(s.url,a)),a&&e.exception?.values?.forEach(o=>{o.value&&(o.value=N0(o.value,a))})}function zH(e,t){const n=UH(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function HH(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function WH(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function GH(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Bs(i.data,t,n)}}))},...e.user&&{user:Bs(e.user,t,n)},...e.contexts&&{contexts:Bs(e.contexts,t,n)},...e.extra&&{extra:Bs(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Bs(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:Bs(i.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Bs(e.contexts.flags,3,n)),r}function qH(e,t){if(!t)return e;const n=e?e.clone():new wa;return n.update(t),n}function KH(e){if(e)return YH(e)?{captureContext:e}:JH(e)?{captureContext:e}:e}function YH(e){return e instanceof wa||typeof e=="function"}const XH=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function JH(e){return Object.keys(e).some(t=>XH.includes(t))}function Ks(e,t){return hn().captureException(e,KH(t))}function QN(e,t){return hn().captureEvent(e,t)}function QH(e,t){Ta().setContext(e,t)}function ZH(){const e=Gt();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function e7(e){Ta().addEventProcessor(e)}function H_(e){const t=Ta(),n=hn(),{userAgent:r}=Yt.navigator||{},i=mz({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),a=t.getSession();return a?.status==="ok"&&Fc(a,{status:"exited"}),ZN(),t.setSession(i),i}function ZN(){const e=Ta(),n=hn().getSession()||e.getSession();n&&hz(n),eD(),e.setSession()}function eD(){const e=Ta(),t=Gt(),n=e.getSession();n&&t&&t.captureSession(n)}function W_(e=!1){if(e){ZN();return}eD()}const t7="7";function n7(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function r7(e){return`${n7(e)}${e.projectId}/envelope/`}function i7(e,t){const n={sentry_version:t7};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function s7(e,t,n){return t||`${r7(e)}?${i7(e,n)}`}const G_=[];function a7(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function o7(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return a7(r)}function l7(e,t){const n={};return t.forEach(r=>{r&&tD(e,r,n)}),n}function q_(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function tD(e,t,n){if(n[t.name]){at&&Ge.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!G_.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),G_.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}at&&Ge.log(`Integration installed: ${t.name}`)}function u7(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function c7(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=wd(r)),cl(i,[u7(e)])}function nD(e,t){const n=t??d7(e)??[];if(n.length===0)return;const r=e.getOptions(),i=c7(n,r._metadata,r.tunnel,e.getDsn());rD().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function d7(e){return rD().get(e)}function rD(){return hd("clientToLogBufferMap",()=>new WeakMap)}function f7(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function p7(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=wd(r)),cl(i,[f7(e)])}function iD(e,t){const n=t??m7(e)??[];if(n.length===0)return;const r=e.getOptions(),i=p7(n,r._metadata,r.tunnel,e.getDsn());sD().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function m7(e){return sD().get(e)}function sD(){return hd("clientToMetricBufferMap",()=>new WeakMap)}const yE=Symbol.for("SentryBufferFullError");function bE(e=100){const t=new Set;function n(){return t.size<e}function r(s){t.delete(s)}function i(s){if(!n())return vE(yE);const o=s();return t.add(o),o.then(()=>r(o),()=>r(o)),o}function a(s){if(!t.size)return Vv(!0);const o=Promise.allSettled(Array.from(t)).then(()=>!0);if(!s)return o;const l=[o,new Promise(u=>setTimeout(()=>u(!1),s))];return Promise.race(l)}return{get $(){return Array.from(t)},add:i,drain:a}}const h7=60*1e3;function g7(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?h7:r-t}function v7(e,t){return e[t]||e.all||0}function aD(e,t,n=Date.now()){return v7(e,t)>n}function oD(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,u,,,c]=o.split(":",5),d=parseInt(l,10),p=(isNaN(d)?60:d)*1e3;if(!u)i.all=r+p;else for(const h of u.split(";"))h==="metric_bucket"?(!c||c.split(";").includes("custom"))&&(i[h]=r+p):i[h]=r+p}else s?i.all=r+g7(s,r):t===429&&(i.all=r+60*1e3);return i}const lD=64;function y7(e,t,n=bE(e.bufferSize||lD)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(O_(s,(d,p)=>{const h=N_(p);aD(r,h)?e.recordDroppedEvent("ratelimit_backoff",h):o.push(d)}),o.length===0)return Promise.resolve({});const l=cl(s[0],o),u=d=>{O_(l,(p,h)=>{e.recordDroppedEvent(d,N_(h))})},c=()=>t({body:uH(l)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&at&&Ge.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=oD(r,d),d),d=>{throw u("network_error"),at&&Ge.error("Encountered error running transport request:",d),d});return n.add(c).then(d=>d,d=>{if(d===yE)return at&&Ge.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw d})}return{send:a,flush:i}}function b7(e,t,n){const r=[{type:"client_report"},{timestamp:Ou(),discarded_events:e}];return cl(t?{dsn:t}:{},[r])}function uD(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function S7(e){const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:s,op:o}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:o,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:s?.[uE],exclusive_time:s?.[Sd],measurements:e.measurements,is_segment:!0}}function w7(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[uE]:e.profile_id},...e.exclusive_time&&{[Sd]:e.exclusive_time}}}},measurements:e.measurements}}const K_="Not capturing exception because it's already been captured.",Y_="Discarded session because of missing or non-string release",cD=Symbol.for("SentryInternalError"),dD=Symbol.for("SentryDoNotSendEventError"),E7=5e3;function Eh(e){return{message:e,[cD]:!0}}function gb(e){return{message:e,[dD]:!0}}function X_(e){return!!e&&typeof e=="object"&&cD in e}function J_(e){return!!e&&typeof e=="object"&&dD in e}function Q_(e,t,n,r,i){let a=0,s,o=!1;e.on(n,()=>{a=0,clearTimeout(s),o=!1}),e.on(t,l=>{a+=r(l),a>=8e5?i(e):o||(o=!0,s=setTimeout(()=>{i(e)},E7))}),e.on("flush",()=>{i(e)})}class x7{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=bE(t.transportOptions?.bufferSize??lD),t.dsn?this._dsn=zz(t.dsn):at&&Ge.warn("No DSN provided, client will not send events."),this._dsn){const r=s7(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Q_(this,"afterCaptureLog","flushLogs",T7,nD),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Q_(this,"afterCaptureMetric","flushMetrics",_7,iD)}captureException(t,n,r){const i=ds();if(x_(t))return at&&Ge.log(K_),i;const a={event_id:i,...n};return this._process(()=>this.eventFromException(t,a).then(s=>this._captureEvent(s,a,r)).then(s=>s),"error"),a.event_id}captureMessage(t,n,r,i){const a={event_id:ds(),...r},s=iE(t)?t:String(t),o=Dc(t),l=o?this.eventFromMessage(s,n,a):this.eventFromException(t,a);return this._process(()=>l.then(u=>this._captureEvent(u,a,i)),o?"unknown":"error"),a.event_id}captureEvent(t,n,r){const i=ds();if(n?.originalException&&x_(n.originalException))return at&&Ge.log(K_),i;const a={event_id:i,...n},s=t.sdkProcessingMetadata||{},o=s.capturedSpanScope,l=s.capturedSpanIsolationScope,u=Z_(t.type);return this._process(()=>this._captureEvent(t,a,o||r,l),u),a.event_id}captureSession(t){this.sendSession(t),Fc(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),i=await n.flush(t);return r&&i}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];tD(this,t,this._integrations),n||q_(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=gH(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=lH(r,fH(i));this.sendEnvelope(r).then(i=>this.emit("afterSendEvent",t,i))}sendSession(t){const{release:n,environment:r=pE}=this._options;if("aggregates"in t){const a=t.attrs||{};if(!a.release&&!n){at&&Ge.warn(Y_);return}a.release=a.release||n,a.environment=a.environment||r,t.attrs=a}else{if(!t.release&&!n){at&&Ge.warn(Y_);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=hH(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;at&&Ge.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,i=(...a)=>n(...a);return r.add(i),()=>{r.delete(i)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return at&&Ge.error("Error while sending envelope:",n),{}}return at&&Ge.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=l7(this,t),q_(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",i=!1;const a=n.exception?.values;if(a){i=!0,r=!1;for(const l of a)if(l.mechanism?.handled===!1){r=!0;break}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(Fc(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),JN(a,t,n,r,this,i).then(o=>{if(o===null)return o;this.emit("postprocessEvent",o,n),o.contexts={trace:kz(r),...o.contexts};const l=zN(this,r);return o.sdkProcessingMetadata={dynamicSamplingContext:l,...o.sdkProcessingMetadata},o})}_captureEvent(t,n={},r=hn(),i=Ta()){return at&&U0(t)&&Ge.log(`Captured error event \`${uD(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,i).then(a=>a.event_id,a=>{at&&(J_(a)?Ge.log(a.message):X_(a)?Ge.warn(a.message):Ge.warn(a))})}_processEvent(t,n,r,i){const a=this.getOptions(),{sampleRate:s}=a,o=fD(t),l=U0(t),c=`before send for type \`${t.type||"error"}\``,d=typeof s>"u"?void 0:hu(s);if(l&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error"),vE(gb(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));const p=Z_(t.type);return this._prepareEvent(t,n,r,i).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",p),gb("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return h;const v=C7(this,a,h,n);return k7(v,c)}).then(h=>{if(h===null){if(this.recordDroppedEvent("before_send",p),o){const b=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",b)}throw gb(`${c} returned \`null\`, will not send event.`)}const g=r.getSession()||i.getSession();if(l&&g&&this._updateSessionFromEvent(g,h),o){const y=h.sdkProcessingMetadata?.spanCountBeforeProcessing||0,b=h.spans?h.spans.length:0,E=y-b;E>0&&this.recordDroppedEvent("before_send","span",E)}const v=h.transaction_info;if(o&&v&&h.transaction!==t.transaction){const y="custom";h.transaction_info={...v,source:y}}return this.sendEvent(h,n),h}).then(null,h=>{throw J_(h)||X_(h)?h:(this.captureException(h,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:h}),Eh(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
18
+ Reason: ${h}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===yE&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,a]=n.split(":");return{reason:i,category:a,quantity:r}})}_flushOutcomes(){at&&Ge.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){at&&Ge.log("No outcomes to send");return}if(!this._dsn){at&&Ge.log("No dsn provided, will not send outcomes");return}at&&Ge.log("Sending outcomes:",t);const n=b7(t,this._options.tunnel&&wd(this._dsn));this.sendEnvelope(n)}}function Z_(e){return e==="replay_event"?"replay":e||"error"}function k7(e,t){const n=`${t} must return \`null\` or a valid event.`;if(vd(e))return e.then(r=>{if(!Wf(r)&&r!==null)throw Eh(n);return r},r=>{throw Eh(`${t} rejected with ${r}`)});if(!Wf(e)&&e!==null)throw Eh(n);return e}function C7(e,t,n,r){const{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:s,ignoreSpans:o}=t;let l=n;if(U0(l)&&i)return i(l,r);if(fD(l)){if(s||o){const u=S7(l);if(o?.length&&mg(u,o))return null;if(s){const c=s(u);c?l=Hp(n,w7(c)):$0()}if(l.spans){const c=[],d=l.spans;for(const h of d){if(o?.length&&mg(h,o)){tH(d,h);continue}if(s){const g=s(h);g?c.push(g):($0(),c.push(h))}else c.push(h)}const p=l.spans.length-c.length;p&&e.recordDroppedEvent("before_send","span",p),l.spans=c}}if(a){if(l.spans){const u=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return a(l,r)}}return l}function U0(e){return e.type===void 0}function fD(e){return e.type==="transaction"}function _7(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+pD(e.attributes)}function T7(e){let t=0;return e.message&&(t+=e.message.length*2),t+pD(e.attributes)}function pD(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*eT(n[0]):Dc(n)?t+=eT(n):t+=100}),t}function eT(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function I7(e,t){t.debug===!0&&(at?Ge.enable():wo(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),hn().update(t.initialScope);const r=new e(t);return P7(r),r.init(),r}function P7(e){hn().setClient(e)}const A7="thismessage:/";function SE(e){return"isRelative"in e}function wE(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?A7:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function R7(e){if(SE(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Ql(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function O7(e){return e.split(/[?#]/,1)[0]}function N7(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return L7(e,n)||D7(e,r)}function D7(e,t){return t?tT(e)===tT(t):!1}function L7(e,t){const n=wE(e);return!n||SE(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function tT(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function F7(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function mD(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:Yl})),version:Yl}),e._metadata=i}function hD(e={}){const t=e.client||Gt();if(!ZH()||!t)return{};const n=Ru(),r=bd(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||hn(),a=e.span||zr(),s=a?Yz(a):$7(i),o=a?mo(a):zN(t,i),l=Nz(o);if(!DN.test(s))return Ge.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const c={"sentry-trace":s,baggage:l};return e.propagateTraceparent&&(c.traceparent=a?Xz(a):M7(i)),c}function $7(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return LN(t,r,n)}function M7(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return FN(t,r,n)}function V7(e,t,n){let r,i,a;const s=n?.maxWait?Math.max(n.maxWait,t):0,o=n?.setTimeoutImpl||setTimeout;function l(){return u(),r=e(),r}function u(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function c(){return i!==void 0||a!==void 0?l():r}function d(){return i&&clearTimeout(i),i=o(l,t),s&&a===void 0&&(a=o(l,s)),r}return d.cancel=u,d.flush=c,d}const B7=100;function ho(e,t){const n=Gt(),r=Ta();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=B7}=n.getOptions();if(a<=0)return;const o={timestamp:Ou(),...e},l=i?wo(()=>i(o,t)):o;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),r.addBreadcrumb(l,a))}let nT;const U7="FunctionToString",rT=new WeakMap,j7=(()=>({name:U7,setupOnce(){nT=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=oE(this),n=rT.has(Gt())&&t!==void 0?t:this;return nT.apply(n,e)}}catch{}},setup(e){rT.set(e,!0)}})),z7=j7,H7=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],W7="EventFilters",G7=(e={})=>{let t;return{name:W7,setup(n){const r=n.getOptions();t=iT(e,r)},processEvent(n,r,i){if(!t){const a=i.getOptions();t=iT(e,a)}return K7(n,t)?null:n}}},q7=((e={})=>({...G7(e),name:"InboundFilters"}));function iT(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:H7],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function K7(e,t){if(e.type){if(e.type==="transaction"&&X7(e,t.ignoreTransactions))return at&&Ge.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
19
+ Event: ${Tl(e)}`),!0}else{if(Y7(e,t.ignoreErrors))return at&&Ge.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
20
+ Event: ${Tl(e)}`),!0;if(e9(e))return at&&Ge.warn(`Event dropped due to not having an error message, error type or stacktrace.
21
+ Event: ${Tl(e)}`),!0;if(J7(e,t.denyUrls))return at&&Ge.warn(`Event dropped due to being matched by \`denyUrls\` option.
22
+ Event: ${Tl(e)}.
23
+ Url: ${hg(e)}`),!0;if(!Q7(e,t.allowUrls))return at&&Ge.warn(`Event dropped due to not being matched by \`allowUrls\` option.
24
+ Event: ${Tl(e)}.
25
+ Url: ${hg(e)}`),!0}return!1}function Y7(e,t){return t?.length?uD(e).some(n=>Ya(n,t)):!1}function X7(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Ya(n,t):!1}function J7(e,t){if(!t?.length)return!1;const n=hg(e);return n?Ya(n,t):!1}function Q7(e,t){if(!t?.length)return!0;const n=hg(e);return n?Ya(n,t):!0}function Z7(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function hg(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?Z7(n):null}catch{return at&&Ge.error(`Cannot extract url for event ${Tl(e)}`),null}}function e9(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function t9(e,t,n,r,i,a){if(!i.exception?.values||!a||!co(a.originalException,Error))return;const s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=j0(e,t,r,a.originalException,n,i.exception.values,s,0))}function j0(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(co(r[i],Error)){sT(s,o);const u=e(t,r[i]),c=l.length;aT(u,i,c,o),l=j0(e,t,n,r[i],i,[u,...l],u,c)}return Array.isArray(r.errors)&&r.errors.forEach((u,c)=>{if(co(u,Error)){sT(s,o);const d=e(t,u),p=l.length;aT(d,`errors[${c}]`,p,o),l=j0(e,t,n,u,i,[d,...l],d,p)}}),l}function sT(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function aT(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function n9(e){const t="console";ol(t,e),ll(t,r9)}function r9(){"console"in Yt&&Wj.forEach(function(e){e in Yt.console&&Vi(Yt.console,e,function(t){return dg[e]=t,function(...n){Ts("console",{args:n,level:e}),dg[e]?.apply(Yt.console,n)}})})}function gD(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const i9="Dedupe",s9=(()=>{let e;return{name:i9,processEvent(t){if(t.type)return t;try{if(o9(t,e))return at&&Ge.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),a9=s9;function o9(e,t){return t?!!(l9(e,t)||u9(e,t)):!1}function l9(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!yD(e,t)||!vD(e,t))}function u9(e,t){const n=oT(t),r=oT(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!yD(e,t)||!vD(e,t))}function vD(e,t){let n=v_(e),r=v_(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const a=r[i],s=n[i];if(a.filename!==s.filename||a.lineno!==s.lineno||a.colno!==s.colno||a.function!==s.function)return!1}return!0}function yD(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function oT(e){return e.exception?.values?.[0]}function c9(e,t,n,r,i){if(!e.fetchData)return;const{method:a,url:s}=e.fetchData,o=Is()&&t(s);if(e.endTimestamp&&o){const h=e.fetchData.__span;if(!h)return;const g=r[h];g&&(p9(g,e),d9(g,e,i),delete r[h]);return}const{spanOrigin:l="auto.http.browser",propagateTraceparent:u=!1}=typeof i=="object"?i:{spanOrigin:i},c=!!zr(),d=o&&c?Zo(h9(s,a,l)):new Qo;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){const h=e.args[0],g=e.args[1]||{},v=f9(h,g,Is()&&c?d:void 0,u);v&&(e.args[1]=g,g.headers=v)}const p=Gt();if(p){const h={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",d,h)}return d}function d9(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function f9(e,t,n,r){const i=hD({span:n,propagateTraceparent:r}),a=i["sentry-trace"],s=i.baggage,o=i.traceparent;if(!a)return;const l=t.headers||(sE(e)?e.headers:void 0);if(l)if(m9(l)){const u=new Headers(l);if(u.get("sentry-trace")||u.set("sentry-trace",a),r&&o&&!u.get("traceparent")&&u.set("traceparent",o),s){const c=u.get("baggage");c?$m(c)||u.set("baggage",`${c},${s}`):u.set("baggage",s)}return u}else if(Array.isArray(l)){const u=[...l];l.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",a]),r&&o&&!l.find(d=>d[0]==="traceparent")&&u.push(["traceparent",o]);const c=l.find(d=>d[0]==="baggage"&&$m(d[1]));return s&&!c&&u.push(["baggage",s]),u}else{const u="sentry-trace"in l?l["sentry-trace"]:void 0,c="traceparent"in l?l.traceparent:void 0,d="baggage"in l?l.baggage:void 0,p=d?Array.isArray(d)?[...d]:[d]:[],h=d&&(Array.isArray(d)?d.find(v=>$m(v)):$m(d));s&&!h&&p.push(s);const g={...l,"sentry-trace":u??a,baggage:p.length>0?p.join(","):void 0};return r&&o&&!c&&(g.traceparent=o),g}else return{...i}}function p9(e,t){if(t.response){PN(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:br,message:"internal_error"});e.end()}function $m(e){return e.split(",").some(t=>t.trim().startsWith(dE))}function m9(e){return typeof Headers<"u"&&co(e,Headers)}function h9(e,t,n){const r=wE(e);return{name:r?`${t} ${R7(r)}`:t,attributes:g9(e,r,t,n)}}function g9(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[Wn]:r,[po]:"http.client"};return t&&(SE(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function bD(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Kf=Yt;function v9(){return"history"in Kf&&!!Kf.history}function y9(){if(!("fetch"in Kf))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function z0(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function b9(){if(typeof EdgeRuntime=="string")return!0;if(!y9())return!1;if(z0(Kf.fetch))return!0;let e=!1;const t=Kf.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=z0(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){at&&Ge.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function SD(e,t){const n="fetch";ol(n,e),ll(n,()=>wD(void 0,t))}function S9(e){const t="fetch-body-resolved";ol(t,e),ll(t,()=>wD(E9))}function wD(e,t=!1){t&&!b9()||Vi(Yt,"fetch",function(n){return function(...r){const i=new Error,{method:a,url:s}=x9(r),o={args:r,fetchData:{method:a,url:s},startTimestamp:or()*1e3,virtualError:i,headers:k9(r)};return e||Ts("fetch",{...o}),n.apply(Yt,r).then(async l=>(e?e(l):Ts("fetch",{...o,endTimestamp:or()*1e3,response:l}),l),l=>{if(Ts("fetch",{...o,endTimestamp:or()*1e3,error:l}),rE(l)&&l.stack===void 0&&(l.stack=i.stack,Ki(l,"framesToPop",1)),l instanceof TypeError&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{const u=new URL(o.fetchData.url);l.message=`${l.message} (${u.host})`}catch{}throw l})}})}async function w9(e,t){if(e?.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let a=!0;for(;a;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:o}=await r.read();clearTimeout(s),o&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(s)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function E9(e){let t;try{t=e.clone()}catch{return}w9(t,()=>{Ts("fetch-body-resolved",{endTimestamp:or()*1e3,response:e})})}function xh(e,t){return!!e&&typeof e=="object"&&!!e[t]}function lT(e){return typeof e=="string"?e:e?xh(e,"url")?e.url:e.toString?e.toString():"":""}function x9(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:lT(n),method:xh(r,"method")?String(r.method).toUpperCase():sE(n)&&xh(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:lT(t),method:xh(t,"method")?String(t.method).toUpperCase():"GET"}}function k9(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(sE(t))return new Headers(t.headers)}catch{}}function C9(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function _9(){return"npm"}function T9(){return!C9()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function H0(){return typeof window<"u"&&(!T9()||I9())}function I9(){return Yt.process?.type==="renderer"}const ln=Yt;let W0=0;function ED(){return W0>0}function P9(){W0++,setTimeout(()=>{W0--})}function Vc(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(oE(e))return e}catch{return e}const r=function(...i){try{const a=i.map(s=>Vc(s,t));return e.apply(this,a)}catch(a){throw P9(),$v(s=>{s.addEventProcessor(o=>(t.mechanism&&(D0(o,void 0),Lc(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),Ks(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}xN(r,e),Ki(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function EE(){const e=yd(),{referrer:t}=ln.document||{},{userAgent:n}=ln.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function xE(e,t){const n=kE(e,t),r={type:D9(t),value:L9(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function A9(e,t,n,r){const a=Gt()?.getOptions().normalizeDepth,s=B9(t),o={__serialized__:HN(t,a)};if(s)return{exception:{values:[xE(e,s)]},extra:o};const l={exception:{values:[{type:Fv(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:M9(t,{isUnhandledRejection:r})}]},extra:o};if(n){const u=kE(e,n);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}function vb(e,t){return{exception:{values:[xE(e,t)]}}}function kE(e,t){const n=t.stacktrace||t.stack||"",r=O9(t),i=N9(t);try{return e(n,r,i)}catch{}return[]}const R9=/Minified React error #\d+;/i;function O9(e){return e&&R9.test(e.message)?1:0}function N9(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function xD(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function D9(e){const t=e?.name;return!t&&xD(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function L9(e){const t=e?.message;return xD(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function F9(e,t,n,r){const i=n?.syntheticException||void 0,a=CE(e,t,i,r);return Lc(a),a.level="error",n?.event_id&&(a.event_id=n.event_id),Vv(a)}function $9(e,t,n="info",r,i){const a=r?.syntheticException||void 0,s=G0(e,t,a,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),Vv(s)}function CE(e,t,n,r,i){let a;if(SN(t)&&t.error)return vb(e,t.error);if(b_(t)||nz(t)){const s=t;if("stack"in t)a=vb(e,t);else{const o=s.name||(b_(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=G0(e,l,n,r),D0(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return rE(t)?vb(e,t):Wf(t)||Fv(t)?(a=A9(e,t,n,i),Lc(a,{synthetic:!0}),a):(a=G0(e,t,n,r),D0(a,`${t}`),Lc(a,{synthetic:!0}),a)}function G0(e,t,n,r){const i={};if(r&&n){const a=kE(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]}),Lc(i,{synthetic:!0})}if(iE(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function M9(e,{isUnhandledRejection:t}){const n=lz(e),r=t?"promise rejection":"exception";return SN(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Fv(e)?`Event \`${V9(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function V9(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function B9(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class U9 extends x7{constructor(t){const n=j9(t),r=ln.SENTRY_SDK_SOURCE||_9();mD(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:i,sendClientReports:a,enableLogs:s,_experiments:o,enableMetrics:l}=this._options,u=l??o?.enableMetrics??!0;ln.document&&(a||s||u)&&ln.document.addEventListener("visibilitychange",()=>{ln.document.visibilityState==="hidden"&&(a&&this._flushOutcomes(),s&&nD(this),u&&iD(this))}),i&&this.on("beforeSendSession",F7)}eventFromException(t,n){return F9(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return $9(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function j9(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:ln.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const gu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ot=Yt,z9=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",qp=(e,t,n,r)=>{let i,a;return s=>{t.value>=0&&(s||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=z9(t.value,n),e(t)))}},Kp=(e=!0)=>{const t=Ot.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Ed=()=>Kp()?.activationStart??0;function Zl(e,t,n){Ot.document&&Ot.addEventListener(e,t,n)}function _E(e,t,n){Ot.document&&Ot.removeEventListener(e,t,n)}let kc=-1;const kD=new Set,H9=()=>Ot.document?.visibilityState==="hidden"&&!Ot.document?.prerendering?0:1/0,kh=e=>{if(W9(e)&&kc>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of kD)t();isFinite(kc)||(kc=e.type==="visibilitychange"?e.timeStamp:0,_E("prerenderingchange",kh,!0))}},Yp=()=>{if(Ot.document&&kc<0){const e=Ed();kc=(Ot.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??H9(),Zl("visibilitychange",kh,!0),Zl("pagehide",kh,!0),Zl("prerenderingchange",kh,!0)}return{get firstHiddenTime(){return kc},onHidden(e){kD.add(e)}}};function W9(e){return e.type==="pagehide"||Ot.document?.visibilityState==="hidden"}const G9=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Xp=(e,t=-1)=>{const n=Kp();let r="navigate";return n&&(Ot.document?.prerendering||Ed()>0?r="prerender":Ot.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:G9(),navigationType:r}},yb=new WeakMap;function TE(e,t){return yb.get(e)||yb.set(e,new t),yb.get(e)}class gg{constructor(){gg.prototype.__init.call(this),gg.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const xd=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},IE=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Bv=e=>{Ot.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},q9=[1800,3e3],K9=(e,t={})=>{Bv(()=>{const n=Yp(),r=Xp("FCP");let i;const s=xd("paint",o=>{for(const l of o)l.name==="first-contentful-paint"&&(s.disconnect(),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-Ed(),0),r.entries.push(l),i(!0)))});s&&(i=qp(e,r,q9,t.reportAllChanges))})},Y9=[.1,.25],X9=(e,t={})=>{K9(IE(()=>{const n=Xp("CLS",0);let r;const i=Yp(),a=TE(t,gg),s=l=>{for(const u of l)a._processEntry(u);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},o=xd("layout-shift",s);o&&(r=qp(e,n,Y9,t.reportAllChanges),i.onHidden(()=>{s(o.takeRecords()),r(!0)}),Ot?.setTimeout?.(r))}))};let CD=0,bb=1/0,Mm=0;const J9=e=>{e.forEach(t=>{t.interactionId&&(bb=Math.min(bb,t.interactionId),Mm=Math.max(Mm,t.interactionId),CD=Mm?(Mm-bb)/7+1:0)})};let q0;const _D=()=>q0?CD:performance.interactionCount||0,Q9=()=>{"interactionCount"in performance||q0||(q0=xd("event",J9,{type:"event",buffered:!0,durationThreshold:0}))},Sb=10;let TD=0;const Z9=()=>_D()-TD;class vg{constructor(){vg.prototype.__init.call(this),vg.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){TD=_D(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(Z9()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Sb||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((i,a)=>a._latency-i._latency),this._longestInteractionList.length>Sb){const i=this._longestInteractionList.splice(Sb);for(const a of i)this._longestInteractionMap.delete(a.id)}this._onAfterProcessingINPCandidate?.(r)}}}const ID=e=>{const t=n=>{(n.type==="pagehide"||Ot.document?.visibilityState==="hidden")&&e(n)};Zl("visibilitychange",t,!0),Zl("pagehide",t,!0)},PD=e=>{const t=Ot.requestIdleCallback||Ot.setTimeout;Ot.document?.visibilityState==="hidden"?e():(e=IE(e),Zl("visibilitychange",e,{once:!0,capture:!0}),t(()=>{e(),_E("visibilitychange",e,{capture:!0})}),ID(e))},eW=[200,500],tW=40,nW=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=Yp();Bv(()=>{Q9();const r=Xp("INP");let i;const a=TE(t,vg),s=l=>{PD(()=>{for(const c of l)a._processEntry(c);const u=a._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,i())})},o=xd("event",s,{durationThreshold:t.durationThreshold??tW});i=qp(e,r,eW,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(o.takeRecords()),i(!0)}))})};class rW{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const iW=[2500,4e3],sW=(e,t={})=>{Bv(()=>{const n=Yp(),r=Xp("LCP");let i;const a=TE(t,rW),s=l=>{t.reportAllChanges||(l=l.slice(-1));for(const u of l)a._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-Ed(),0),r.entries=[u],i())},o=xd("largest-contentful-paint",s);if(o){i=qp(e,r,iW,t.reportAllChanges);const l=IE(()=>{s(o.takeRecords()),o.disconnect(),i(!0)}),u=c=>{c.isTrusted&&(PD(l),_E(c.type,u,{capture:!0}))};for(const c of["keydown","click","visibilitychange"])Zl(c,u,{capture:!0})}})},aW=[800,1800],K0=e=>{Ot.document?.prerendering?Bv(()=>K0(e)):Ot.document?.readyState!=="complete"?addEventListener("load",()=>K0(e),!0):setTimeout(e)},oW=(e,t={})=>{const n=Xp("TTFB"),r=qp(e,n,aW,t.reportAllChanges);K0(()=>{const i=Kp();i&&(n.value=Math.max(i.responseStart-Ed(),0),n.entries=[i],r(!0))})},yf={},yg={};let AD,RD,OD,ND;function PE(e,t=!1){return Uv("cls",e,uW,AD,t)}function AE(e,t=!1){return Uv("lcp",e,cW,RD,t)}function lW(e){return Uv("ttfb",e,dW,OD)}function DD(e){return Uv("inp",e,fW,ND)}function vu(e,t){return LD(e,t),yg[e]||(pW(e),yg[e]=!0),FD(e,t)}function Jp(e,t){const n=yf[e];if(n?.length)for(const r of n)try{r(t)}catch(i){gu&&Ge.error(`Error while triggering instrumentation handler.
26
+ Type: ${e}
27
+ Name: ${uo(r)}
28
+ Error:`,i)}}function uW(){return X9(e=>{Jp("cls",{metric:e}),AD=e},{reportAllChanges:!0})}function cW(){return sW(e=>{Jp("lcp",{metric:e}),RD=e},{reportAllChanges:!0})}function dW(){return oW(e=>{Jp("ttfb",{metric:e}),OD=e})}function fW(){return nW(e=>{Jp("inp",{metric:e}),ND=e})}function Uv(e,t,n,r,i=!1){LD(e,t);let a;return yg[e]||(a=n(),yg[e]=!0),r&&t({metric:r}),FD(e,t,i?a:void 0)}function pW(e){const t={};e==="event"&&(t.durationThreshold=0),xd(e,n=>{Jp(e,{entries:n})},t)}function LD(e,t){yf[e]=yf[e]||[],yf[e].push(t)}function FD(e,t,n){return()=>{n&&n();const r=yf[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function mW(e){return"duration"in e}function wb(e){return typeof e=="number"&&isFinite(e)}function el(e,t,n,{...r}){const i=tn(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),hE(e,()=>{const a=Zo({startTime:t,...r});return a&&a.end(n),a})}function RE(e){const t=Gt();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:a}=e,{release:s,environment:o,sendDefaultPii:l}=t.getOptions(),c=t.getIntegrationByName("Replay")?.getReplayId(),d=hn(),p=d.getUser(),h=p!==void 0?p.email||p.id||p.ip_address:void 0;let g;try{g=d.getScopeData().contexts.profile.profile_id}catch{}const v={release:s,environment:o,user:h||void 0,profile_id:g||void 0,replay_id:c||void 0,transaction:r,"user_agent.original":Ot.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...i};return Zo({name:n,attributes:v,startTime:a,experimental:{standalone:!0}})}function Qp(){return Ot.addEventListener&&Ot.performance}function nr(e){return e/1e3}function hW(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function $D(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function MD(e,t){let n,r=!1;function i(o){!r&&n&&t(o,n),r=!0}ID(()=>{i("pagehide")});const a=e.on("beforeStartNavigationSpan",(o,l)=>{l?.isRedirect||(i("navigation"),a(),s())}),s=e.on("afterStartPageLoadSpan",o=>{n=o.spanContext().spanId,s()})}function gW(e){let t=0,n;if(!$D("layout-shift"))return;const r=PE(({metric:i})=>{const a=i.entries[i.entries.length-1];a&&(t=i.value,n=a)},!0);MD(e,(i,a)=>{vW(t,n,a,i),r()})}function vW(e,t,n,r){gu&&Ge.log(`Sending CLS span (${e})`);const i=t?nr((Zi()||0)+t.startTime):or(),a=hn().getScopeData().transactionName,s=t?qi(t.sources[0]?.node):"Layout shift",o={[Wn]:"auto.http.browser.cls",[po]:"ui.webvital.cls",[Sd]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,c)=>{o[`cls.source.${c+1}`]=qi(u.node)});const l=RE({name:s,transaction:a,attributes:o,startTime:i});l&&(l.addEvent("cls",{[Wp]:"",[Gp]:e}),l.end(i))}function yW(e){let t=0,n;if(!$D("largest-contentful-paint"))return;const r=AE(({metric:i})=>{const a=i.entries[i.entries.length-1];a&&(t=i.value,n=a)},!0);MD(e,(i,a)=>{bW(t,n,a,i),r()})}function bW(e,t,n,r){gu&&Ge.log(`Sending LCP span (${e})`);const i=nr((Zi()||0)+(t?.startTime||0)),a=hn().getScopeData().transactionName,s=t?qi(t.element):"Largest contentful paint",o={[Wn]:"auto.http.browser.lcp",[po]:"ui.webvital.lcp",[Sd]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(o["lcp.element"]=qi(t.element)),t.id&&(o["lcp.id"]=t.id),t.url&&(o["lcp.url"]=t.url),t.loadTime!=null&&(o["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(o["lcp.renderTime"]=t.renderTime),t.size!=null&&(o["lcp.size"]=t.size));const l=RE({name:s,transaction:a,attributes:o,startTime:i});l&&(l.addEvent("lcp",{[Wp]:"millisecond",[Gp]:e}),l.end(i))}function gs(e){return e&&((Zi()||performance.timeOrigin)+e)/1e3}function VD(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=hW(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return Zi()||Qp()?.timeOrigin?SW({...t,"http.request.redirect_start":gs(e.redirectStart),"http.request.redirect_end":gs(e.redirectEnd),"http.request.worker_start":gs(e.workerStart),"http.request.fetch_start":gs(e.fetchStart),"http.request.domain_lookup_start":gs(e.domainLookupStart),"http.request.domain_lookup_end":gs(e.domainLookupEnd),"http.request.connect_start":gs(e.connectStart),"http.request.secure_connection_start":gs(e.secureConnectionStart),"http.request.connection_end":gs(e.connectEnd),"http.request.request_start":gs(e.requestStart),"http.request.response_start":gs(e.responseStart),"http.request.response_end":gs(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function SW(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const wW=2147483647;let uT=0,Us={},Di,bg;function EW({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Qp();if(r&&Zi()){r.mark&&Ot.performance.mark("sentry-tracing-init");const i=t?yW(n):TW(),a=IW(),s=e?gW(n):_W();return()=>{i?.(),a(),s?.()}}return()=>{}}function xW(){vu("longtask",({entries:e})=>{const t=zr();if(!t)return;const{op:n,start_timestamp:r}=tn(t);for(const i of e){const a=nr(Zi()+i.startTime),s=nr(i.duration);n==="navigation"&&r&&a<r||el(t,a,a+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Wn]:"auto.ui.browser.metrics"}})}})}function kW(){new PerformanceObserver(t=>{const n=zr();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=nr(Zi()+r.startTime),{start_timestamp:a,op:s}=tn(n);if(s==="navigation"&&a&&i<a)continue;const o=nr(r.duration),l={[Wn]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:c,invokerType:d,sourceURL:p,sourceFunctionName:h,sourceCharPosition:g}=u;l["browser.script.invoker"]=c,l["browser.script.invoker_type"]=d,p&&(l["code.filepath"]=p),h&&(l["code.function"]=h),g!==-1&&(l["browser.script.source_char_position"]=g),el(n,i,i+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:l})}}).observe({type:"long-animation-frame",buffered:!0})}function CW(){vu("event",({entries:e})=>{const t=zr();if(t){for(const n of e)if(n.name==="click"){const r=nr(Zi()+n.startTime),i=nr(n.duration),a={name:qi(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Wn]:"auto.ui.browser.metrics"}},s=EN(n.target);s&&(a.attributes["ui.component_name"]=s),el(t,r,r+i,a)}}})}function _W(){return PE(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Us.cls={value:e.value,unit:""},bg=t)},!0)}function TW(){return AE(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Us.lcp={value:e.value,unit:"millisecond"},Di=t)},!0)}function IW(){return lW(({metric:e})=>{e.entries[e.entries.length-1]&&(Us.ttfb={value:e.value,unit:"millisecond"})})}function PW(e,t){const n=Qp(),r=Zi();if(!n?.getEntries||!r)return;const i=nr(r),a=n.getEntries(),{op:s,start_timestamp:o}=tn(e);a.slice(uT).forEach(l=>{const u=nr(l.startTime),c=nr(Math.max(0,l.duration));if(!(s==="navigation"&&o&&i+u<o))switch(l.entryType){case"navigation":{NW(e,l,i);break}case"mark":case"paint":case"measure":{RW(e,l,u,c,i,t.ignorePerformanceApiSpans);const d=Yp(),p=l.startTime<d.firstHiddenTime;l.name==="first-paint"&&p&&(Us.fp={value:l.startTime,unit:"millisecond"}),l.name==="first-contentful-paint"&&p&&(Us.fcp={value:l.startTime,unit:"millisecond"});break}case"resource":{FW(e,l,l.name,u,c,i,t.ignoreResourceSpans);break}}}),uT=Math.max(a.length-1,0),$W(e),s==="pageload"&&(BW(Us),t.recordClsOnPageloadSpan||delete Us.cls,t.recordLcpOnPageloadSpan||delete Us.lcp,Object.entries(Us).forEach(([l,u])=>{SH(l,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",Ed()),MW(e,t)),Di=void 0,bg=void 0,Us={}}function AW(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function RW(e,t,n,r,i,a){if(AW(t)||["mark","measure"].includes(t.entryType)&&Ya(t.name,a))return;const s=Kp(!1),o=nr(s?s.requestStart:0),l=i+Math.max(n,o),u=i+n,c=u+r,d={[Wn]:"auto.resource.browser.metrics"};l!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=l),OW(d,t),l<=c&&el(e,l,c,{name:t.name,op:t.entryType,attributes:d})}function OW(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&Dc(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(Dc(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function NW(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Vm(e,t,r,n)}),Vm(e,t,"secureConnection",n,"TLS/SSL"),Vm(e,t,"fetch",n,"cache"),Vm(e,t,"domainLookup",n,"DNS"),LW(e,t,n)}function Vm(e,t,n,r,i=n){const a=DW(n),s=t[a],o=t[`${n}Start`];!o||!s||el(e,r+nr(o),r+nr(s),{op:`browser.${i}`,name:t.name,attributes:{[Wn]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function DW(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function LW(e,t,n){const r=n+nr(t.requestStart),i=n+nr(t.responseEnd),a=n+nr(t.responseStart);t.responseEnd&&(el(e,r,i,{op:"browser.request",name:t.name,attributes:{[Wn]:"auto.ui.browser.metrics"}}),el(e,a,i,{op:"browser.response",name:t.name,attributes:{[Wn]:"auto.ui.browser.metrics"}}))}function FW(e,t,n,r,i,a,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(o))return;const l={[Wn]:"auto.resource.browser.metrics"},u=Ql(n);u.protocol&&(l["url.scheme"]=u.protocol.split(":").pop()),u.host&&(l["server.address"]=u.host),l["url.same_origin"]=n.includes(Ot.location.origin),VW(t,l,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const c={...l,...VD(t)},d=a+r,p=d+i;el(e,d,p,{name:n.replace(Ot.location.origin,""),op:o,attributes:c})}function $W(e){const t=Ot.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),wb(n.rtt)&&(Us["connection.rtt"]={value:n.rtt,unit:"millisecond"})),wb(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),wb(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function MW(e,t){Di&&t.recordLcpOnPageloadSpan&&(Di.element&&e.setAttribute("lcp.element",qi(Di.element)),Di.id&&e.setAttribute("lcp.id",Di.id),Di.url&&e.setAttribute("lcp.url",Di.url.trim().slice(0,200)),Di.loadTime!=null&&e.setAttribute("lcp.loadTime",Di.loadTime),Di.renderTime!=null&&e.setAttribute("lcp.renderTime",Di.renderTime),e.setAttribute("lcp.size",Di.size)),bg?.sources&&t.recordClsOnPageloadSpan&&bg.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,qi(n.node)))}function VW(e,t,n){n.forEach(([r,i])=>{const a=e[r];a!=null&&(typeof a=="number"&&a<wW||typeof a=="string")&&(t[i]=a)})}function BW(e){const t=Kp(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function UW(){return Qp()&&Zi()?vu("element",jW):()=>{}}const jW=({entries:e})=>{const t=zr(),n=t?Br(t):void 0,r=n?tn(n).description:hn().getScopeData().transactionName;e.forEach(i=>{const a=i;if(!a.identifier)return;const s=a.name,o=a.renderTime,l=a.loadTime,[u,c]=l?[nr(l),"load-time"]:o?[nr(o),"render-time"]:[or(),"entry-emission"],d=s==="image-paint"?nr(Math.max(0,(o??0)-(l??0))):0,p={[Wn]:"auto.ui.browser.elementtiming",[po]:"ui.elementtiming",[Bi]:"component","sentry.span_start_time_source":c,"sentry.transaction_name":r,"element.id":a.id,"element.type":a.element?.tagName?.toLowerCase()||"unknown","element.size":a.naturalWidth&&a.naturalHeight?`${a.naturalWidth}x${a.naturalHeight}`:void 0,"element.render_time":o,"element.load_time":l,"element.url":a.url||void 0,"element.identifier":a.identifier,"element.paint_type":s};_H({name:`element[${a.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},h=>{h.end(u+d)})})},zW=1e3;let cT,Y0,X0;function BD(e){ol("dom",e),ll("dom",HW)}function HW(){if(!Ot.document)return;const e=Ts.bind(null,"dom"),t=dT(e,!0);Ot.document.addEventListener("click",t,!1),Ot.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=Ot[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(Vi(i,"addEventListener",function(a){return function(s,o,l){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},c=u[s]=u[s]||{refCount:0};if(!c.handler){const d=dT(e);c.handler=d,a.call(this,s,d,l)}c.refCount++}catch{}return a.call(this,s,o,l)}}),Vi(i,"removeEventListener",function(a){return function(s,o,l){if(s==="click"||s=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},c=u[s];c&&(c.refCount--,c.refCount<=0&&(a.call(this,s,c.handler,l),c.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,s,o,l)}}))})}function WW(e){if(e.type!==Y0)return!1;try{if(!e.target||e.target._sentryId!==X0)return!1}catch{}return!0}function GW(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function dT(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=qW(n);if(GW(n.type,r))return;Ki(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ki(r,"_sentryId",ds());const i=n.type==="keypress"?"input":n.type;WW(n)||(e({event:n,name:i,global:t}),Y0=n.type,X0=r?r._sentryId:void 0),clearTimeout(cT),cT=Ot.setTimeout(()=>{X0=void 0,Y0=void 0},zW)}}function qW(e){try{return e.target}catch{return null}}let Bm;function jv(e){const t="history";ol(t,e),ll(t,KW)}function KW(){if(Ot.addEventListener("popstate",()=>{const t=Ot.location.href,n=Bm;if(Bm=t,n===t)return;Ts("history",{from:n,to:t})}),!v9())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Bm,a=YW(String(r));if(Bm=a,i===a)return t.apply(this,n);Ts("history",{from:i,to:a})}return t.apply(this,n)}}Vi(Ot.history,"pushState",e),Vi(Ot.history,"replaceState",e)}function YW(e){try{return new URL(e,Ot.location.origin).toString()}catch{return e}}const Ch={};function UD(e){const t=Ch[e];if(t)return t;let n=Ot[e];if(z0(n))return Ch[e]=n.bind(Ot);const r=Ot.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const a=i.contentWindow;a?.[e]&&(n=a[e]),r.head.removeChild(i)}catch(i){gu&&Ge.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(Ch[e]=n.bind(Ot))}function XW(e){Ch[e]=void 0}function Zp(...e){return UD("setTimeout")(...e)}const Rl="__sentry_xhr_v3__";function jD(e){ol("xhr",e),ll("xhr",JW)}function JW(){if(!Ot.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,a=or()*1e3,s=Ka(r[0])?r[0].toUpperCase():void 0,o=QW(r[1]);if(!s||!o)return t.apply(n,r);n[Rl]={method:s,url:o,request_headers:{}},s==="POST"&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const l=()=>{const u=n[Rl];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const c={endTimestamp:or()*1e3,startTimestamp:a,xhr:n,virtualError:i};Ts("xhr",c)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,c,d){return l(),u.apply(c,d)}}):n.addEventListener("readystatechange",l),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,c,d){const[p,h]=d,g=c[Rl];return g&&Ka(p)&&Ka(h)&&(g.request_headers[p.toLowerCase()]=h),u.apply(c,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Rl];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const a={startTimestamp:or()*1e3,xhr:n};return Ts("xhr",a),t.apply(n,r)}})}function QW(e){if(Ka(e))return e;try{return e.toString()}catch{}}const ZW=Symbol.for("sentry__originalRequestBody");function zD(e){return new URLSearchParams(e).toString()}function HD(e,t=Ge){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[zD(e)];if(!e)return[void 0]}catch(n){return gu&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return gu&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function WD(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][ZW];return n!==void 0?n:void 0}}function GD(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return gu&&Ge.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
29
+ `).reduce((n,r)=>{const[i,a]=r.split(": ");return a&&(n[i.toLowerCase()]=a),n},{}):{}}const Eb=[],_h=new Map,Gu=new Map,eG=60;function tG(){if(Qp()&&Zi()){const t=nG();return()=>{t()}}return()=>{}}const J0={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function nG(){return DD(rG)}const rG=({metric:e})=>{if(e.value==null)return;const t=nr(e.value);if(t>eG)return;const n=e.entries.find(g=>g.duration===e.value&&J0[g.name]);if(!n)return;const{interactionId:r}=n,i=J0[n.name],a=nr(Zi()+n.startTime),s=zr(),o=s?Br(s):void 0,l=r!=null?_h.get(r):void 0,u=l?.span||o,c=u?tn(u).description:hn().getScopeData().transactionName,d=l?.elementName||qi(n.target),p={[Wn]:"auto.http.browser.inp",[po]:`ui.interaction.${i}`,[Sd]:n.duration},h=RE({name:d,transaction:c,attributes:p,startTime:a});h&&(h.addEvent("inp",{[Wp]:"millisecond",[Gp]:e.value}),h.end(a+t))};function iG(){const e=Object.keys(J0);H0()&&e.forEach(i=>{Ot.addEventListener(i,t,{capture:!0,passive:!0})});function t(i){const a=i.target;if(!a)return;const s=qi(a),o=Math.round(i.timeStamp);if(Gu.set(o,s),Gu.size>50){const l=Gu.keys().next().value;l!==void 0&&Gu.delete(l)}}function n(i){const a=Math.round(i.startTime);let s=Gu.get(a);if(!s)for(let o=-5;o<=5;o++){const l=Gu.get(a+o);if(l){s=l;break}}return s||"<unknown>"}const r=({entries:i})=>{const a=zr(),s=a&&Br(a);i.forEach(o=>{if(!mW(o))return;const l=o.interactionId;if(l==null||_h.has(l))return;const u=o.target?qi(o.target):n(o);if(Eb.length>10){const c=Eb.shift();_h.delete(c)}Eb.push(l),_h.set(l,{span:s,elementName:u})})};vu("event",r),vu("first-input",r)}const sG=40;function aG(e,t=UD("fetch")){let n=0,r=0;async function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const l=await t(e.url,o);return{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}}catch(l){throw XW("fetch"),l}finally{n-=s,r--}}return y7(e,i,bE(e.bufferSize||sG))}const Os=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,oG=30,lG=50;function Q0(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?mu:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const uG=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,cG=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,dG=/\((\S*)(?::(\d+))(?::(\d+))\)/,fG=/at (.+?) ?\(data:(.+?),/,pG=e=>{const t=e.match(fG);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=uG.exec(e);if(n){const[,i,a,s]=n;return Q0(i,mu,+a,+s)}const r=cG.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const o=dG.exec(r[2]);o&&(r[2]=o[1],r[3]=o[2],r[4]=o[3])}const[a,s]=qD(r[1]||mu,r[2]);return Q0(s,a,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},mG=[oG,pG],hG=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,gG=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,vG=e=>{const t=hG.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=gG.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||mu;return[i,r]=qD(i,r),Q0(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},yG=[lG,vG],bG=[mG,yG],SG=hN(...bG),qD=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:mu,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Um=1024,wG="Breadcrumbs",EG=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:wG,setup(n){t.console&&n9(_G(n)),t.dom&&BD(CG(n,t.dom)),t.xhr&&jD(TG(n)),t.fetch&&SD(IG(n)),t.history&&jv(PG(n)),t.sentry&&n.on("beforeSendEvent",kG(n))}}}),xG=EG;function kG(e){return function(n){Gt()===e&&ho({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Tl(n)},{event:n})}}function CG(e,t){return function(r){if(Gt()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>Um&&(Os&&Ge.warn(`\`dom.maxStringLength\` cannot exceed ${Um}, but a value of ${o} was configured. Sentry will use ${Um} instead.`),o=Um),typeof s=="string"&&(s=[s]);try{const u=r.event,c=AG(u)?u.target:u;i=qi(c,{keyAttrs:s,maxStringLength:o}),a=EN(c)}catch{i="<unknown>"}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),ho(l,{event:r.event,name:r.name,global:r.global})}}function _G(e){return function(n){if(Gt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:gD(n.level),message:E_(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${E_(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ho(r,{input:n.args,level:n.level})}}function TG(e){return function(n){if(Gt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[Rl];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,c={method:s,url:o,status_code:l},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i},p={category:"xhr",data:c,type:"http",level:bD(l)};e.emit("beforeOutgoingRequestBreadcrumb",p,d),ho(p,d)}}function IG(e){return function(n){if(Gt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},o={category:"fetch",data:a,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,s),ho(o,s)}else{const a=n.response,s={...n.fetchData,status_code:a?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,a?.status;const o={input:n.args,response:a,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:s,type:"http",level:bD(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",l,o),ho(l,o)}}}function PG(e){return function(n){if(Gt()!==e)return;let r=n.from,i=n.to;const a=Ql(ln.location.href);let s=r?Ql(r):void 0;const o=Ql(i);s?.path||(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),ho({category:"navigation",data:{from:r,to:i}})}}function AG(e){return!!e&&!!e.target}const RG=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],OG="BrowserApiErrors",NG=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:OG,setupOnce(){t.setTimeout&&Vi(ln,"setTimeout",fT),t.setInterval&&Vi(ln,"setInterval",fT),t.requestAnimationFrame&&Vi(ln,"requestAnimationFrame",LG),t.XMLHttpRequest&&"XMLHttpRequest"in ln&&Vi(XMLHttpRequest.prototype,"send",FG);const n=t.eventTarget;n&&(Array.isArray(n)?n:RG).forEach(i=>$G(i,t))}}}),DG=NG;function fT(e){return function(...t){const n=t[0];return t[0]=Vc(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${uo(e)}`}}),e.apply(this,t)}}function LG(e){return function(t){return e.apply(this,[Vc(t,{mechanism:{data:{handler:uo(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function FG(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Vi(n,i,function(a){const s={mechanism:{data:{handler:uo(a)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},o=oE(a);return o&&(s.mechanism.data.handler=uo(o)),Vc(a,s)})}),e.apply(this,t)}}function $G(e,t){const r=ln[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Vi(r,"addEventListener",function(i){return function(a,s,o){try{MG(s)&&(s.handleEvent=Vc(s.handleEvent,{mechanism:{data:{handler:uo(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&VG(this,a,s),i.apply(this,[a,Vc(s,{mechanism:{data:{handler:uo(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),Vi(r,"removeEventListener",function(i){return function(a,s,o){try{const l=s.__sentry_wrapped__;l&&i.call(this,a,l,o)}catch{}return i.call(this,a,s,o)}}))}function MG(e){return typeof e.handleEvent=="function"}function VG(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const BG=()=>({name:"BrowserSession",setupOnce(){if(typeof ln.document>"u"){Os&&Ge.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}H_({ignoreDuration:!0}),W_(),jv(({from:e,to:t})=>{e!==void 0&&e!==t&&(H_({ignoreDuration:!0}),W_())})}}),UG="GlobalHandlers",jG=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:UG,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(HG(n),pT("onerror")),t.onunhandledrejection&&(WG(n),pT("onunhandledrejection"))}}}),zG=jG;function HG(e){vN(t=>{const{stackParser:n,attachStacktrace:r}=KD();if(Gt()!==e||ED())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=KG(CE(n,l||i,void 0,r,!1),a,s,o);u.level="error",QN(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function WG(e){yN(t=>{const{stackParser:n,attachStacktrace:r}=KD();if(Gt()!==e||ED())return;const i=GG(t),a=Dc(i)?qG(i):CE(n,i,void 0,r,!0);a.level="error",QN(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function GG(e){if(Dc(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function qG(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function KG(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=r,c=n,d=YG(t)??yd();return l.length===0&&l.push({colno:u,filename:d,function:mu,in_app:!0,lineno:c}),e}function pT(e){Os&&Ge.log(`Global Handler attached: ${e}`)}function KD(){return Gt()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function YG(e){if(!(!Ka(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e}}const XG=()=>({name:"HttpContext",preprocessEvent(e){if(!ln.navigator&&!ln.location&&!ln.document)return;const t=EE(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),JG="cause",QG=5,ZG="LinkedErrors",eq=((e={})=>{const t=e.limit||QG,n=e.key||JG;return{name:ZG,preprocessEvent(r,i,a){const s=a.getOptions();t9(xE,s.stackParser,n,t,r,i)}}}),tq=eq;function nq(){return rq()?(Os&&wo(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function rq(){if(typeof ln.window>"u")return!1;const e=ln;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=yd(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(ln===ln.top&&r.some(a=>n.startsWith(`${a}://`)))}function YD(e){return[q7(),z7(),DG(),xG(),zG(),tq(),a9(),XG(),BG()]}function iq(e={}){const t=!e.skipBrowserExtensionCheck&&nq();let n=e.defaultIntegrations==null?YD():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:Qj(e.stackParser||SG),integrations:o7({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||aG};return I7(U9,r)}const In=Yt,OE="sentryReplaySession",sq="replay_event",NE="Unable to send Replay",aq=3e5,oq=9e5,lq=5e3,uq=5500,cq=6e4,dq=5e3,fq=3,mT=15e4,jm=5e3,pq=3e3,mq=300,DE=2e7,hq=4999,gq=5e4,hT=36e5;var vq=Object.defineProperty,yq=(e,t,n)=>t in e?vq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gT=(e,t,n)=>yq(e,typeof t!="symbol"?t+"":t,n),dr=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(dr||{});function bq(e){return e.nodeType===e.ELEMENT_NODE}function bf(e){return e?.host?.shadowRoot===e}function Sf(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Sq(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function wq(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Sg(e){try{const t=e.rules||e.cssRules;return t?Sq(Array.from(t,XD).join("")):null}catch{return null}}function Eq(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}function XD(e){let t;if(kq(e))try{t=Sg(e.styleSheet)||wq(e)}catch{}else if(Cq(e)){let n=e.cssText;const r=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(n=Eq(e)),r&&(n=xq(n)),r||i)return n}return t||e.cssText}function xq(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function kq(e){return"styleSheet"in e}function Cq(e){return"selectorText"in e}class JD{constructor(){gT(this,"idNodeMap",new Map),gT(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function _q(){return new JD}function zv({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Yf({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function Bc(e){return e.toLowerCase()}function Z0(e){return e.toUpperCase()}const vT="__rrweb_original__";function Tq(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let i=0;i<e.height;i+=n){const a=t.getImageData,s=vT in a?a[vT]:a;if(new Uint32Array(s.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function LE(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Bc(t):null}function wg(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function QD(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const yT={};function ZD(e){const t=yT[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(i)}catch{}return yT[e]=r.bind(window)}function eS(...e){return ZD("setTimeout")(...e)}function eL(...e){return ZD("clearTimeout")(...e)}function tL(e){try{return e.contentDocument}catch{}}let Iq=1;const Pq=new RegExp("[^a-z0-9-_:]"),Xf=-2;function FE(){return Iq++}function Aq(e){if(e instanceof HTMLFormElement)return"form";const t=Bc(e.tagName);return Pq.test(t)?"div":t}function Rq(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let qu,bT;const Oq=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Nq=/^(?:[a-z+]+:)?\/\//i,Dq=/^www\..*/i,Lq=/^(data:)([^,]*),(.*)/i;function Fq(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let i of n){if(i=i.trim(),!i)continue;const a=i.indexOf(":");if(a===-1){r.push(i);continue}const s=i.slice(0,a).trim();t.has(s)||r.push(i)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Eg(e,t){return(e||"").replace(Oq,(n,r,i,a,s,o)=>{const l=i||s||o,u=r||a||"";if(!l)return n;if(Nq.test(l)||Dq.test(l))return`url(${u}${l}${u})`;if(Lq.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${Rq(t)+l}${u})`;const c=t.split("/"),d=l.split("/");c.pop();for(const p of d)p!=="."&&(p===".."?c.pop():c.push(p));return`url(${u}${c.join("/")}${u})`})}const $q=/^[^ \t\n\r\u000c]+/,Mq=/^[, \t\n\r\u000c]+/;function Vq(e,t){if(t.trim()==="")return t;let n=0;function r(a){let s;const o=a.exec(t.substring(n));return o?(s=o[0],n+=s.length,s):""}const i=[];for(;r(Mq),!(n>=t.length);){let a=r($q);if(a.slice(-1)===",")a=fc(e,a.substring(0,a.length-1)),i.push(a);else{let s="";a=fc(e,a);let o=!1;for(;;){const l=t.charAt(n);if(l===""){i.push((a+s).trim());break}else if(o)l===")"&&(o=!1);else if(l===","){n+=1,i.push((a+s).trim());break}else l==="("&&(o=!0);s+=l,n+=1}}}return i.join(", ")}const ST=new WeakMap;function fc(e,t){return!t||t.trim()===""?t:Hv(e,t)}function Bq(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Hv(e,t){let n=ST.get(e);if(n||(n=e.createElement("a"),ST.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function nL(e,t,n,r,i,a,s){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return fc(e,r);if(n==="xlink:href"&&r[0]!=="#")return fc(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return fc(e,r);if(n==="srcset")return Vq(e,r);if(n==="style"){let o=Eg(r,Hv(e));return s&&s.size>0&&(o=Fq(o,s)),o}else if(t==="object"&&n==="data")return fc(e,r);return typeof a=="function"?a(n,r,i):r}function rL(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Uq(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const a=e.classList[i];if(t.test(a))return!0}if(n)return e.matches(n)}catch{}return!1}function jq(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Ol(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ol(e.parentNode,t,n,r+1)}function pc(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(jq(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Uc(e,t,n,r,i,a){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let o=-1,l=-1;if(a){if(l=Ol(s,pc(r,i)),l<0)return!0;o=Ol(s,pc(t,n),l>=0?l:1/0)}else{if(o=Ol(s,pc(t,n)),o<0)return!1;l=Ol(s,pc(r,i),o>=0?o:1/0)}return o>=0?l>=0?o<=l:!0:l>=0?!1:!!a}catch{}return!!a}function zq(e,t,n){const r=e.contentWindow;if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!=="complete"){const o=eS(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{eL(o),i=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return eS(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Hq(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;const a=eS(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{eL(a),r=!0,t()})}function Wq(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:g={},maskTextFn:v,maskInputFn:y,dataURLOptions:b={},inlineImages:E,recordCanvas:w,keepIframeSrcFn:C,newlyAddedElement:P=!1,ignoreCSSAttributes:_}=t,A=Gq(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:dr.Document,childNodes:[],compatMode:e.compatMode}:{type:dr.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:dr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:A};case e.ELEMENT_NODE:return Kq(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:s,inlineStylesheet:h,maskAttributeFn:l,maskInputOptions:g,maskInputFn:y,dataURLOptions:b,inlineImages:E,recordCanvas:w,keepIframeSrcFn:C,newlyAddedElement:P,rootId:A,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:_});case e.TEXT_NODE:return qq(e,{doc:n,maskAllText:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:v,maskInputOptions:g,maskInputFn:y,rootId:A});case e.CDATA_SECTION_NODE:return{type:dr.CDATA,textContent:"",rootId:A};case e.COMMENT_NODE:return{type:dr.Comment,textContent:e.textContent||"",rootId:A};default:return!1}}function Gq(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function qq(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:s,maskTextFn:o,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h=d==="STYLE"?!0:void 0,g=d==="SCRIPT"?!0:void 0,v=d==="TEXTAREA"?!0:void 0;if(h&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=Sg(e.parentNode.sheet))}catch(b){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${b}`,e)}p=Eg(p,Hv(t.doc))}g&&(p="SCRIPT_PLACEHOLDER");const y=Uc(e,r,a,i,s,n);if(!h&&!g&&!v&&p&&y&&(p=o?o(p,e.parentElement):p.replace(/[\S]/g,"*")),v&&p&&(l.textarea||y)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),d==="OPTION"&&p){const b=zv({type:null,tagName:d,maskInputOptions:l});p=Yf({isMasked:Uc(e,r,a,i,s,b),element:e,value:p,maskInputFn:u})}return{type:dr.Text,textContent:p||"",isStyle:h,rootId:c}}function Kq(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:s,maskInputOptions:o={},maskAttributeFn:l,maskInputFn:u,dataURLOptions:c={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:g=!1,rootId:v,maskTextClass:y,unmaskTextClass:b,maskTextSelector:E,unmaskTextSelector:w,ignoreCSSAttributes:C}=t,P=Uq(e,r,i,a),_=Aq(e);let A={};const I=e.attributes.length;for(let x=0;x<I;x++){const R=e.attributes[x];R.name&&!rL(_,R.name,R.value)&&(A[R.name]=nL(n,_,Bc(R.name),R.value,e,l,C))}if(_==="link"&&s){const x=Array.from(n.styleSheets).find(O=>O.href===e.href);let R=null;x&&(R=Sg(x)),R&&(A.rel=null,A.href=null,A.crossorigin=null,A._cssText=Eg(R,x.href))}if(_==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const x=Sg(e.sheet);x&&(A._cssText=Eg(x,Hv(n)))}if(_==="input"||_==="textarea"||_==="select"||_==="option"){const x=e,R=LE(x),O=wg(x,Z0(_),R),L=x.checked;if(R!=="submit"&&R!=="button"&&O){const F=Uc(x,y,E,b,w,zv({type:R,tagName:Z0(_),maskInputOptions:o}));A.value=Yf({isMasked:F,element:x,value:O,maskInputFn:u})}L&&(A.checked=L)}if(_==="option"&&(e.selected&&!o.select?A.selected=!0:delete A.selected),_==="canvas"&&p){if(e.__context==="2d")Tq(e)||(A.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const x=e.toDataURL(c.type,c.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height;const O=R.toDataURL(c.type,c.quality);x!==O&&(A.rr_dataURL=x)}}if(_==="img"&&d){qu||(qu=n.createElement("canvas"),bT=qu.getContext("2d"));const x=e,R=x.currentSrc||x.getAttribute("src")||"<unknown-src>",O=x.crossOrigin,L=()=>{x.removeEventListener("load",L);try{qu.width=x.naturalWidth,qu.height=x.naturalHeight,bT.drawImage(x,0,0),A.rr_dataURL=qu.toDataURL(c.type,c.quality)}catch(F){if(x.crossOrigin!=="anonymous"){x.crossOrigin="anonymous",x.complete&&x.naturalWidth!==0?L():x.addEventListener("load",L);return}else console.warn(`Cannot inline img src=${R}! Error: ${F}`)}x.crossOrigin==="anonymous"&&(O?A.crossOrigin=O:x.removeAttribute("crossorigin"))};x.complete&&x.naturalWidth!==0?L():x.addEventListener("load",L)}if((_==="audio"||_==="video")&&(A.rr_mediaState=e.paused?"paused":"played",A.rr_mediaCurrentTime=e.currentTime),g||(e.scrollLeft&&(A.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(A.rr_scrollTop=e.scrollTop)),P){const{width:x,height:R}=e.getBoundingClientRect();A={class:A.class,rr_width:`${x}px`,rr_height:`${R}px`}}_==="iframe"&&!h(A.src)&&(!P&&!tL(e)&&(A.rr_src=A.src),delete A.src);let T;try{customElements.get(_)&&(T=!0)}catch{}return{type:dr.Element,tagName:_,attributes:A,childNodes:[],isSVG:Bq(e)||void 0,needBlock:P,rootId:v,isCustom:T}}function Cn(e){return e==null?"":e.toLowerCase()}function Yq(e,t){if(t.comment&&e.type===dr.Comment)return!0;if(e.type===dr.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&QD(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Cn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Cn(e.attributes.name)==="application-name"||Cn(e.attributes.rel)==="icon"||Cn(e.attributes.rel)==="apple-touch-icon"||Cn(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Cn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Cn(e.attributes.property).match(/^(og|twitter|fb):/)||Cn(e.attributes.name).match(/^(og|twitter):/)||Cn(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Cn(e.attributes.name)==="robots"||Cn(e.attributes.name)==="googlebot"||Cn(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Cn(e.attributes.name)==="author"||Cn(e.attributes.name)==="generator"||Cn(e.attributes.name)==="framework"||Cn(e.attributes.name)==="publisher"||Cn(e.attributes.name)==="progid"||Cn(e.attributes.property).match(/^article:/)||Cn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Cn(e.attributes.name)==="google-site-verification"||Cn(e.attributes.name)==="yandex-verification"||Cn(e.attributes.name)==="csrf-token"||Cn(e.attributes.name)==="p:domain_verify"||Cn(e.attributes.name)==="verify-v1"||Cn(e.attributes.name)==="verification"||Cn(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function mc(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:g={},maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:E,dataURLOptions:w={},inlineImages:C=!1,recordCanvas:P=!1,onSerialize:_,onIframeLoad:A,iframeLoadTimeout:I=5e3,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:L=!1,ignoreCSSAttributes:F}=t;let{preserveWhiteSpace:W=!0}=t;const H=Wq(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:o,unblockSelector:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,dataURLOptions:w,inlineImages:C,recordCanvas:P,keepIframeSrcFn:O,newlyAddedElement:L,ignoreCSSAttributes:F});if(!H)return console.warn(e,"not serialized"),null;let B;r.hasNode(e)?B=r.getId(e):Yq(H,E)||!W&&H.type===dr.Text&&!H.isStyle&&!H.textContent.replace(/^\s+|\s+$/gm,"").length?B=Xf:B=FE();const $=Object.assign(H,{id:B});if(r.add(e,$),B===Xf)return null;_&&_(e);let Y=!p;if($.type===dr.Element){Y=Y&&!$.needBlock;const q=e.shadowRoot;q&&Sf(q)&&($.isShadowHost=!0)}if(($.type===dr.Document||$.type===dr.Element)&&Y){E.headWhitespace&&$.type===dr.Element&&$.tagName==="head"&&(W=!1);const q={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:o,unblockSelector:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:E,dataURLOptions:w,inlineImages:C,recordCanvas:P,preserveWhiteSpace:W,onSerialize:_,onIframeLoad:A,iframeLoadTimeout:I,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:O,ignoreCSSAttributes:F},U=e.childNodes?Array.from(e.childNodes):[];for(const M of U){const K=mc(M,q);K&&$.childNodes.push(K)}if(bq(e)&&e.shadowRoot)for(const M of Array.from(e.shadowRoot.childNodes)){const K=mc(M,q);K&&(Sf(e.shadowRoot)&&(K.isShadow=!0),$.childNodes.push(K))}}if(e.parentNode&&bf(e.parentNode)&&Sf(e.parentNode)&&($.isShadow=!0),$.type===dr.Element&&$.tagName==="iframe"&&!$.needBlock&&zq(e,()=>{const q=tL(e);if(q&&A){const U=mc(q,{doc:q,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:E,dataURLOptions:w,inlineImages:C,recordCanvas:P,preserveWhiteSpace:W,onSerialize:_,onIframeLoad:A,iframeLoadTimeout:I,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:O,ignoreCSSAttributes:F});U&&A(e,U)}},I),$.type===dr.Element&&$.tagName==="img"&&!e.complete&&$.needBlock){const q=e,U=()=>{if(q.isConnected&&!q.complete&&T)try{const M=q.getBoundingClientRect();M.width>0&&M.height>0&&T(q,$,M)}catch{}q.removeEventListener("load",U)};q.isConnected&&q.addEventListener("load",U)}return $.type===dr.Element&&$.tagName==="link"&&typeof $.attributes.rel=="string"&&($.attributes.rel==="stylesheet"||$.attributes.rel==="preload"&&typeof $.attributes.href=="string"&&QD($.attributes.href)==="css")&&Hq(e,()=>{if(x){const q=mc(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:E,dataURLOptions:w,inlineImages:C,recordCanvas:P,preserveWhiteSpace:W,onSerialize:_,onIframeLoad:A,iframeLoadTimeout:I,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:O,ignoreCSSAttributes:F});q&&x(e,q)}},R),$.type===dr.Element&&delete $.needBlock,$}function Xq(e,t){const{mirror:n=new JD,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:s=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:g=!1,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOM:E=!1,dataURLOptions:w,preserveWhiteSpace:C,onSerialize:P,onIframeLoad:_,iframeLoadTimeout:A,onBlockedImageLoad:I,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:O=new Set([])}=t||{};return mc(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:o,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:g===!1?{}:g,maskAttributeFn:v,maskTextFn:y,maskInputFn:b,slimDOMOptions:E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:E==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:E===!1?{}:E,dataURLOptions:w,inlineImages:p,recordCanvas:h,preserveWhiteSpace:C,onSerialize:P,onIframeLoad:_,iframeLoadTimeout:A,onBlockedImageLoad:I,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:R,newlyAddedElement:!1,ignoreCSSAttributes:O})}function Ei(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const ac=`Please stop import mirror directly. Instead of that,\r
30
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
31
+ or you can use record.mirror to access the mirror instance during recording.`;let wT={map:{},getId(){return console.error(ac),-1},getNode(){return console.error(ac),null},removeNodeFromMap(){console.error(ac)},has(){return console.error(ac),!1},reset(){console.error(ac)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(wT=new Proxy(wT,{get(e,t,n){return t==="map"&&console.error(ac),Reflect.get(e,t,n)}}));function Jf(e,t,n={}){let r=null,i=0;return function(...a){const s=Date.now();!i&&n.leading===!1&&(i=s);const o=t-(s-i),l=this;o<=0||o>t?(r&&(rK(r),r=null),i=s,e.apply(l,a)):!r&&n.trailing!==!1&&(r=Wv(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(l,a)},o))}}function iL(e,t,n,r,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){Wv(()=>{n.set.call(this,s)},0),a&&a.set&&a.set.call(this,s)}}),()=>iL(e,t,a||{},!0)}function $E(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}let xg=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(xg=()=>new Date().getTime());function sL(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function aL(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function oL(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function lL(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function as(e,t,n,r,i){if(!e)return!1;const a=lL(e);if(!a)return!1;const s=pc(t,n);if(!i){const u=r&&a.matches(r);return s(a)&&!u}const o=Ol(a,s);let l=-1;return o<0?!1:(r&&(l=Ol(a,pc(null,r))),o>-1&&l<0?!0:o<l)}function Jq(e,t){return t.getId(e)!==-1}function xb(e,t){return t.getId(e)===Xf}function uL(e,t){if(bf(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?uL(e.parentNode,t):!0:!0}function tS(e){return!!e.changedTouches}function Qq(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function cL(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function dL(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function nS(e){return!!e?.shadowRoot}class Zq{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function fL(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function eK(e){let t=e,n;for(;n=fL(t);)t=n;return t}function tK(e){const t=e.ownerDocument;if(!t)return!1;const n=eK(e);return t.contains(n)}function pL(e){const t=e.ownerDocument;return t?t.contains(e)||tK(e):!1}const ET={};function ME(e){const t=ET[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const a=i.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(i)}catch{}return ET[e]=r.bind(window)}function nK(...e){return ME("requestAnimationFrame")(...e)}function Wv(...e){return ME("setTimeout")(...e)}function rK(...e){return ME("clearTimeout")(...e)}var $t=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))($t||{}),_t=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(_t||{}),gi=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(gi||{}),La=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(La||{}),oc=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(oc||{});function VE(e){try{return e.contentDocument}catch{}}function iK(e){try{return e.contentWindow}catch{}}function xT(e){return"__ln"in e}class sK{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&xT(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&xT(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const kT=(e,t)=>`${e}@${t}`;class aK{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new sK,i=l=>{let u=l,c=Xf;for(;c===Xf;)u=u&&u.nextSibling,c=u&&this.mirror.getId(u);return c},a=l=>{if(!l.parentNode||!pL(l))return;const u=bf(l.parentNode)?this.mirror.getId(fL(l)):this.mirror.getId(l.parentNode),c=i(l);if(u===-1||c===-1)return r.addNode(l);const d=mc(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{cL(p,this.mirror)&&!as(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),dL(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),nS(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(p,h)=>{as(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,h),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,h)=>{this.stylesheetManager.attachLinkElement(p,h)},onBlockedImageLoad:(p,h,{width:g,height:v})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:h.id,attributes:{style:{width:`${g}px`,height:`${v}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});d&&(t.push({parentId:u,nextId:c,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)CT(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||a(l);for(const l of this.addedSet)!_T(this.droppedSet,l)&&!CT(this.removes,l,this.mirror)||_T(this.movedSet,l)?a(l):this.droppedSet.add(l);let s=null;for(;r.length;){let l=null;if(s){const u=this.mirror.getId(s.value.parentNode),c=i(s.value);u!==-1&&c!==-1&&(l=s)}if(!l){let u=r.tail;for(;u;){const c=u;if(u=u.previous,c){const d=this.mirror.getId(c.value.parentNode);if(i(c.value)===-1)continue;if(d!==-1){l=c;break}else{const h=c.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const g=h.parentNode.host;if(this.mirror.getId(g)!==-1){l=c;break}}}}}}if(!l){for(;r.head;)r.removeNode(r.head.value);break}s=l.previous,r.removeNode(l.value),a(l.value)}const o={texts:this.texts.map(l=>({id:this.mirror.getId(l.node),value:l.value})).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{const{attributes:u}=l;if(typeof u.style=="string"){const c=JSON.stringify(l.styleDiff),d=JSON.stringify(l._unchangedStyles);c.length<u.style.length&&(c+d).split("var(").length===u.style.split("var(").length&&(u.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:u}}).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=t=>{if(!xb(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!as(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Uc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,lL(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const s=LE(n),o=n.tagName;i=wg(n,o,s);const l=zv({maskInputOptions:this.maskInputOptions,tagName:o,type:s}),u=Uc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,l);i=Yf({isMasked:u,element:n,value:i,maskInputFn:this.maskInputFn})}if(as(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!VE(n))r="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!rL(n.tagName,r)&&(a.attributes[r]=nL(this.doc,Bc(n.tagName),Bc(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(const o of Array.from(n.style)){const l=n.style.getPropertyValue(o),u=n.style.getPropertyPriority(o);l!==s.style.getPropertyValue(o)||u!==s.style.getPropertyPriority(o)?u===""?a.styleDiff[o]=l:a.styleDiff[o]=[l,u]:a._unchangedStyles[o]=[l,u]}for(const o of Array.from(s.style))n.style.getPropertyValue(o)===""&&(a.styleDiff[o]=!1)}break}case"childList":{if(as(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=bf(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);as(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||xb(n,this.mirror)||!Jq(n,this.mirror)||(this.addedSet.has(n)?(rS(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||uL(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[kT(r,i)]?rS(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:bf(t.target)&&Sf(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(xb(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[kT(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);as(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),nS(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function rS(e,t){e.delete(t),t.childNodes?.forEach(n=>rS(e,n))}function CT(e,t,n){return e.length===0?!1:oK(e,t,n)}function oK(e,t,n){let r=t.parentNode;for(;r;){const i=n.getId(r);if(e.some(a=>a.id===i))return!0;r=r.parentNode}return!1}function _T(e,t){return e.size===0?!1:mL(e,t)}function mL(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:mL(e,n):!1}let wf;function lK(e){wf=e}function uK(){wf=void 0}const an=e=>wf?(...n)=>{try{return e(...n)}catch(r){if(wf&&wf(r)===!0)return()=>{};throw r}}:e,hc=[];function em(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function hL(e,t){const n=new aK;hc.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(r=window[i]);const a=new r(an(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function cK({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],o;const l=Jf(an(d=>{const p=Date.now()-o;e(s.map(h=>(h.timeOffset-=p,h)),d),s=[],o=null}),a),u=an(Jf(an(d=>{const p=em(d),{clientX:h,clientY:g}=tS(d)?d.changedTouches[0]:d;o||(o=xg()),s.push({x:h,y:g,id:r.getId(p),timeOffset:xg()-o}),l(typeof DragEvent<"u"&&d instanceof DragEvent?_t.Drag:d instanceof MouseEvent?_t.MouseMove:_t.TouchMove)}),i,{trailing:!1})),c=[Ei("mousemove",u,n),Ei("touchmove",u,n),Ei("drag",u,n)];return an(()=>{c.forEach(d=>d())})}function dK({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const o=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,l=[];let u=null;const c=d=>p=>{const h=em(p);if(as(h,r,i,a,!0))return;let g=null,v=d;if("pointerType"in p){switch(p.pointerType){case"mouse":g=La.Mouse;break;case"touch":g=La.Touch;break;case"pen":g=La.Pen;break}g===La.Touch?gi[d]===gi.MouseDown?v="TouchStart":gi[d]===gi.MouseUp&&(v="TouchEnd"):La.Pen}else tS(p)&&(g=La.Touch);g!==null?(u=g,(v.startsWith("Touch")&&g===La.Touch||v.startsWith("Mouse")&&g===La.Mouse)&&(g=null)):gi[d]===gi.Click&&(g=u,u=null);const y=tS(p)?p.changedTouches[0]:p;if(!y)return;const b=n.getId(h),{clientX:E,clientY:w}=y;an(e)({type:gi[v],id:b,x:E,y:w,...g!==null&&{pointerType:g}})};return Object.keys(gi).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&o[d]!==!1).forEach(d=>{let p=Bc(d);const h=c(d);if(window.PointerEvent)switch(gi[d]){case gi.MouseDown:case gi.MouseUp:p=p.replace("mouse","pointer");break;case gi.TouchStart:case gi.TouchEnd:return}l.push(Ei(p,h,t))}),an(()=>{l.forEach(d=>d())})}function gL({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:s}){const o=an(Jf(an(l=>{const u=em(l);if(!u||as(u,r,i,a,!0))return;const c=n.getId(u);if(u===t&&t.defaultView){const d=sL(t.defaultView);e({id:c,x:d.left,y:d.top})}else e({id:c,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return Ei("scroll",o,t)}function fK({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=an(Jf(an(()=>{const a=aL(),s=oL();(n!==a||r!==s)&&(e({width:Number(s),height:Number(a)}),n=a,r=s)}),200));return Ei("resize",i,t)}const pK=["INPUT","TEXTAREA","SELECT"],TT=new WeakMap;function mK({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:s,ignoreSelector:o,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:g,unmaskTextSelector:v}){function y(A){let I=em(A);const T=A.isTrusted,x=I&&Z0(I.tagName);if(x==="OPTION"&&(I=I.parentElement),!I||!x||pK.indexOf(x)<0||as(I,r,i,a,!0))return;const R=I;if(R.classList.contains(s)||o&&R.matches(o))return;const O=LE(I);let L=wg(R,x,O),F=!1;const W=zv({maskInputOptions:l,tagName:x,type:O}),H=Uc(I,p,g,h,v,W);(O==="radio"||O==="checkbox")&&(F=I.checked),L=Yf({isMasked:H,element:I,value:L,maskInputFn:u}),b(I,d?{text:L,isChecked:F,userTriggered:T}:{text:L,isChecked:F});const B=I.name;O==="radio"&&B&&F&&t.querySelectorAll(`input[type="radio"][name="${B}"]`).forEach($=>{if($!==I){const Y=Yf({isMasked:H,element:$,value:wg($,x,O),maskInputFn:u});b($,d?{text:Y,isChecked:!F,userTriggered:!1}:{text:Y,isChecked:!F})}})}function b(A,I){const T=TT.get(A);if(!T||T.text!==I.text||T.isChecked!==I.isChecked){TT.set(A,I);const x=n.getId(A);an(e)({...I,id:x})}}const w=(c.input==="last"?["change"]:["input","change"]).map(A=>Ei(A,an(y),t)),C=t.defaultView;if(!C)return()=>{w.forEach(A=>A())};const P=C.Object.getOwnPropertyDescriptor(C.HTMLInputElement.prototype,"value"),_=[[C.HTMLInputElement.prototype,"value"],[C.HTMLInputElement.prototype,"checked"],[C.HTMLSelectElement.prototype,"value"],[C.HTMLTextAreaElement.prototype,"value"],[C.HTMLSelectElement.prototype,"selectedIndex"],[C.HTMLOptionElement.prototype,"selected"]];return P&&P.set&&w.push(..._.map(A=>iL(A[0],A[1],{set(){an(y)({target:this,isTrusted:!1})}},!1,C))),an(()=>{w.forEach(A=>A())})}function kg(e){const t=[];function n(r,i){if(zm("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||zm("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||zm("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||zm("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(s)}return i}return n(e,t)}function Do(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function hK({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:an((c,d,p)=>{const[h,g]=p,{id:v,styleId:y}=Do(d,t,n.styleMirror);return(v&&v!==-1||y&&y!==-1)&&e({id:v,styleId:y,adds:[{rule:h,index:g}]}),c.apply(d,p)})});const a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:an((c,d,p)=>{const[h]=p,{id:g,styleId:v}=Do(d,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,removes:[{index:h}]}),c.apply(d,p)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:an((c,d,p)=>{const[h]=p,{id:g,styleId:v}=Do(d,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,replace:h}),c.apply(d,p)})}));let o;r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:an((c,d,p)=>{const[h]=p,{id:g,styleId:v}=Do(d,t,n.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,replaceSync:h}),c.apply(d,p)})}));const l={};Hm("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(Hm("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),Hm("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),Hm("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(l).forEach(([c,d])=>{u[c]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[c].insertRule,{apply:an((p,h,g)=>{const[v,y]=g,{id:b,styleId:E}=Do(h.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||E&&E!==-1)&&e({id:b,styleId:E,adds:[{rule:v,index:[...kg(h),y||0]}]}),p.apply(h,g)})}),d.prototype.deleteRule=new Proxy(u[c].deleteRule,{apply:an((p,h,g)=>{const[v]=g,{id:y,styleId:b}=Do(h.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||b&&b!==-1)&&e({id:y,styleId:b,removes:[{index:[...kg(h),v]}]}),p.apply(h,g)})})}),an(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,s&&(r.CSSStyleSheet.prototype.replace=s),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([c,d])=>{d.prototype.insertRule=u[c].insertRule,d.prototype.deleteRule=u[c].deleteRule})})}function vL({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const i=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(s){const o=a.set?.call(this,s);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return o}}),an(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function gK({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:an((o,l,u)=>{const[c,d,p]=u;if(n.has(c))return a.apply(l,[c,d,p]);const{id:h,styleId:g}=Do(l.parentRule?.parentStyleSheet,t,r.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,set:{property:c,value:d,priority:p},index:kg(l.parentRule)}),o.apply(l,u)})});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:an((o,l,u)=>{const[c]=u;if(n.has(c))return s.apply(l,[c]);const{id:d,styleId:p}=Do(l.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||p&&p!==-1)&&e({id:d,styleId:p,remove:{property:c},index:kg(l.parentRule)}),o.apply(l,u)})}),an(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=s})}function vK({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:s}){const o=an(u=>Jf(an(c=>{const d=em(c);if(!d||as(d,t,n,r,!0))return;const{currentTime:p,volume:h,muted:g,playbackRate:v}=d;e({type:u,id:i.getId(d),currentTime:p,volume:h,muted:g,playbackRate:v})}),a.media||500)),l=[Ei("play",o(oc.Play),s),Ei("pause",o(oc.Pause),s),Ei("seeked",o(oc.Seeked),s),Ei("volumechange",o(oc.VolumeChange),s),Ei("ratechange",o(oc.RateChange),s)];return an(()=>{l.forEach(u=>u())})}function yK({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(l,u,c){const d=new a(l,u,c);return i.set(d,{family:l,buffer:typeof u!="string",descriptors:c,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};const s=$E(t.fonts,"add",function(o){return function(l){return Wv(an(()=>{const u=i.get(l);u&&(e(u),i.delete(l))}),0),o.apply(this,[l])}});return r.push(()=>{n.FontFace=a}),r.push(s),an(()=>{r.forEach(o=>o())})}function bK(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:s}=e;let o=!0;const l=an(()=>{const u=t.getSelection();if(!u||o&&u?.isCollapsed)return;o=u.isCollapsed||!1;const c=[],d=u.rangeCount||0;for(let p=0;p<d;p++){const h=u.getRangeAt(p),{startContainer:g,startOffset:v,endContainer:y,endOffset:b}=h;as(g,r,i,a,!0)||as(y,r,i,a,!0)||c.push({start:n.getId(g),startOffset:v,end:n.getId(y),endOffset:b})}s({ranges:c})});return l(),Ei("selectionchange",l)}function SK({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:$E(n.customElements,"define",function(i){return function(a,s,o){try{t({define:{name:a}})}catch{}return i.apply(this,[a,s,o])}})}function wK(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=hL(e,e.doc));const i=cK(e),a=dK(e),s=gL(e),o=fK(e,{win:n}),l=mK(e),u=vK(e);let c=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=hK(e,{win:n}),d=vL(e,e.doc),p=gK(e,{win:n}),e.collectFonts&&(h=yK(e)));const g=bK(e),v=SK(e),y=[];for(const b of e.plugins)y.push(b.observer(b.callback,n,b.options));return an(()=>{hc.forEach(b=>b.reset()),r?.disconnect(),i(),a(),s(),o(),l(),u(),c(),d(),p(),h(),g(),v(),y.forEach(b=>b())})}function zm(e){return typeof window[e]<"u"}function Hm(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class iS{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const a=r||this.getIdToRemoteIdMap(t),s=i||this.getRemoteIdToIdMap(t);let o=a.get(n);return o||(o=this.generateIdFn(),a.set(n,o),s.set(o,n)),o}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=i.get(n);return a||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class EK{constructor(){this.crossOriginIframeMirror=new iS(FE),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class xK{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new iS(FE),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new iS(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=VE(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case $t.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:$t.IncrementalSnapshot,data:{source:_t.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case $t.Meta:case $t.Load:case $t.DomContentLoaded:return!1;case $t.Plugin:return n;case $t.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case $t.IncrementalSnapshot:switch(n.data.source){case _t.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(r.node,i)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case _t.Drag:case _t.TouchMove:case _t.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case _t.ViewportResize:return!1;case _t.MediaInteraction:case _t.MouseInteraction:case _t.Scroll:case _t.CanvasMutation:case _t.Input:return this.replaceIds(n.data,t,["id"]),n;case _t.StyleSheetRule:case _t.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case _t.Font:return n;case _t.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case _t.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,i){for(const a of i)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(r,n[a]):n[a]=t.getId(r,n[a]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==dr.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class kK{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class CK{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Sf(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=hL({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(gL({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Wv(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(vL({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=VE(t),r=iK(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push($E(t.prototype,"attachShadow",function(i){return function(a){const s=i.call(this,a);return this.shadowRoot&&pL(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var IT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_K=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Wm=0;Wm<IT.length;Wm++)_K[IT.charCodeAt(Wm)]=Wm;class PT{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class TK{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Zq,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const a of t){let s;this.styleMirror.has(a)?s=this.styleMirror.getId(a):(s=this.styleMirror.add(a),i.push({styleId:s,rules:Array.from(a.rules||CSSRule,(o,l)=>({rule:XD(o),index:l}))})),r.styleIds.push(s)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class IK{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,nK(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let qn,Cg;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ms=_q();function Ja(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:a=null,unblockSelector:s=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskAllText:u=!1,maskTextClass:c="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:g=!0,maskAllInputs:v,maskInputOptions:y,slimDOMOptions:b,maskAttributeFn:E,maskInputFn:w,maskTextFn:C,maxCanvasSize:P=null,packFn:_,sampling:A={},dataURLOptions:I={},mousemoveWait:T,recordDOM:x=!0,recordCanvas:R=!1,recordCrossOriginIframes:O=!1,recordAfter:L=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:F=!1,collectFonts:W=!1,inlineImages:H=!1,plugins:B,keepIframeSrcFn:$=()=>!1,ignoreCSSAttributes:Y=new Set([]),errorHandler:q,onMutation:U,getCanvasManager:M}=e;lK(q);const K=O?window.parent===window:!0;let fe=!1;if(!K)try{window.parent.document&&(fe=!1)}catch{fe=!0}if(K&&!t)throw new Error("emit function is required");if(!K&&!fe)return()=>{};T!==void 0&&A.mousemove===void 0&&(A.mousemove=T),Ms.reset();const he=v===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:y!==void 0?y:{},Re=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all"}:b||{};Qq();let Q,re=0;const X=ge=>{for(const _e of B||[])_e.eventProcessor&&(ge=_e.eventProcessor(ge));return _&&!fe&&(ge=_(ge)),ge};qn=(ge,_e)=>{const ce=ge;if(ce.timestamp=xg(),hc[0]?.isFrozen()&&ce.type!==$t.FullSnapshot&&!(ce.type===$t.IncrementalSnapshot&&ce.data.source===_t.Mutation)&&hc.forEach(Be=>Be.unfreeze()),K)t?.(X(ce),_e);else if(fe){const Be={type:"rrweb",event:X(ce),origin:window.location.origin,isCheckout:_e};window.parent.postMessage(Be,"*")}if(ce.type===$t.FullSnapshot)Q=ce,re=0;else if(ce.type===$t.IncrementalSnapshot){if(ce.data.source===_t.Mutation&&ce.data.isAttachIframe)return;re++;const Be=r&&re>=r,Ie=n&&Q&&ce.timestamp-Q.timestamp>n;(Be||Ie)&&ue(!0)}};const ie=ge=>{qn({type:$t.IncrementalSnapshot,data:{source:_t.Mutation,...ge}})},we=ge=>qn({type:$t.IncrementalSnapshot,data:{source:_t.Scroll,...ge}}),Pe=ge=>qn({type:$t.IncrementalSnapshot,data:{source:_t.CanvasMutation,...ge}}),G=ge=>qn({type:$t.IncrementalSnapshot,data:{source:_t.AdoptedStyleSheet,...ge}}),J=new TK({mutationCb:ie,adoptedStyleSheetCb:G}),de=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new EK:new xK({mirror:Ms,mutationCb:ie,stylesheetManager:J,recordCrossOriginIframes:O,wrappedEmit:qn});for(const ge of B||[])ge.getMirror&&ge.getMirror({nodeMirror:Ms,crossOriginIframeMirror:de.crossOriginIframeMirror,crossOriginIframeStyleMirror:de.crossOriginIframeStyleMirror});const oe=new IK,be=AK(M,{mirror:Ms,win:window,mutationCb:ge=>qn({type:$t.IncrementalSnapshot,data:{source:_t.CanvasMutation,...ge}}),recordCanvas:R,blockClass:i,blockSelector:a,unblockSelector:s,maxCanvasSize:P,sampling:A.canvas,dataURLOptions:I,errorHandler:q}),Ce=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new kK:new CK({mutationCb:ie,scrollCb:we,bypassOptions:{onMutation:U,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:g,maskInputOptions:he,dataURLOptions:I,maskAttributeFn:E,maskTextFn:C,maskInputFn:w,recordCanvas:R,inlineImages:H,sampling:A,slimDOMOptions:Re,iframeManager:de,stylesheetManager:J,canvasManager:be,keepIframeSrcFn:$,processedNodeManager:oe,ignoreCSSAttributes:Y},mirror:Ms}),ue=(ge=!1)=>{if(!x)return;qn({type:$t.Meta,data:{href:window.location.href,width:oL(),height:aL()}},ge),J.reset(),Ce.init(),hc.forEach(ce=>ce.lock());const _e=Xq(document,{mirror:Ms,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:g,maskAllInputs:he,maskAttributeFn:E,maskInputFn:w,maskTextFn:C,slimDOM:Re,dataURLOptions:I,recordCanvas:R,inlineImages:H,onSerialize:ce=>{cL(ce,Ms)&&de.addIframe(ce),dL(ce,Ms)&&J.trackLinkElement(ce),nS(ce)&&Ce.addShadowRoot(ce.shadowRoot,document)},onIframeLoad:(ce,Be)=>{de.attachIframe(ce,Be),ce.contentWindow&&be.addWindow(ce.contentWindow),Ce.observeAttachShadow(ce)},onStylesheetLoad:(ce,Be)=>{J.attachLinkElement(ce,Be)},onBlockedImageLoad:(ce,Be,{width:Ie,height:Me})=>{ie({adds:[],removes:[],texts:[],attributes:[{id:Be.id,attributes:{style:{width:`${Ie}px`,height:`${Me}px`}}}]})},keepIframeSrcFn:$,ignoreCSSAttributes:Y});if(!_e)return console.warn("Failed to snapshot the document");qn({type:$t.FullSnapshot,data:{node:_e,initialOffset:sL(window)}}),hc.forEach(ce=>ce.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,Ms.getId(document))};Cg=ue;try{const ge=[],_e=Be=>an(wK)({onMutation:U,mutationCb:ie,mousemoveCb:(Ie,Me)=>qn({type:$t.IncrementalSnapshot,data:{source:Me,positions:Ie}}),mouseInteractionCb:Ie=>qn({type:$t.IncrementalSnapshot,data:{source:_t.MouseInteraction,...Ie}}),scrollCb:we,viewportResizeCb:Ie=>qn({type:$t.IncrementalSnapshot,data:{source:_t.ViewportResize,...Ie}}),inputCb:Ie=>qn({type:$t.IncrementalSnapshot,data:{source:_t.Input,...Ie}}),mediaInteractionCb:Ie=>qn({type:$t.IncrementalSnapshot,data:{source:_t.MediaInteraction,...Ie}}),styleSheetRuleCb:Ie=>qn({type:$t.IncrementalSnapshot,data:{source:_t.StyleSheetRule,...Ie}}),styleDeclarationCb:Ie=>qn({type:$t.IncrementalSnapshot,data:{source:_t.StyleDeclaration,...Ie}}),canvasMutationCb:Pe,fontCb:Ie=>qn({type:$t.IncrementalSnapshot,data:{source:_t.Font,...Ie}}),selectionCb:Ie=>{qn({type:$t.IncrementalSnapshot,data:{source:_t.Selection,...Ie}})},customElementCb:Ie=>{qn({type:$t.IncrementalSnapshot,data:{source:_t.CustomElement,...Ie}})},blockClass:i,ignoreClass:o,ignoreSelector:l,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:he,inlineStylesheet:g,sampling:A,recordDOM:x,recordCanvas:R,inlineImages:H,userTriggeredOnInput:F,collectFonts:W,doc:Be,maskAttributeFn:E,maskInputFn:w,maskTextFn:C,keepIframeSrcFn:$,blockSelector:a,unblockSelector:s,slimDOMOptions:Re,dataURLOptions:I,mirror:Ms,iframeManager:de,stylesheetManager:J,shadowDomManager:Ce,processedNodeManager:oe,canvasManager:be,ignoreCSSAttributes:Y,plugins:B?.filter(Ie=>Ie.observer)?.map(Ie=>({observer:Ie.observer,options:Ie.options,callback:Me=>qn({type:$t.Plugin,data:{plugin:Ie.name,payload:Me}})}))||[]},{});de.addLoadListener(Be=>{try{ge.push(_e(Be.contentDocument))}catch(Ie){console.warn(Ie)}});const ce=()=>{ue(),ge.push(_e(document))};return document.readyState==="interactive"||document.readyState==="complete"?ce():(ge.push(Ei("DOMContentLoaded",()=>{qn({type:$t.DomContentLoaded,data:{}}),L==="DOMContentLoaded"&&ce()})),ge.push(Ei("load",()=>{qn({type:$t.Load,data:{}}),L==="load"&&ce()},window))),()=>{ge.forEach(Be=>Be()),oe.destroy(),Cg=void 0,uK()}}catch(ge){console.warn(ge)}}function PK(e){if(!Cg)throw new Error("please take full snapshot after start recording");Cg(e)}Ja.mirror=Ms;Ja.takeFullSnapshot=PK;function AK(e,t){try{return e?e(t):new PT}catch{return console.warn("Unable to initialize CanvasManager"),new PT}}var AT;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(AT||(AT={}));const RK=3,OK=5;function BE(e){return e>9999999999?e:e*1e3}function kb(e){return e>9999999999?e/1e3:e}function tm(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:$t.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Bs(t,10,1e3)}}),t.category==="console")))}const NK="button,a";function yL(e){return e.closest(NK)||e}function bL(e){const t=SL(e);return!t||!(t instanceof Element)?t:yL(t)}function SL(e){return DK(e)?e.target:e}function DK(e){return typeof e=="object"&&!!e&&"target"in e}let Lo;function LK(e){return Lo||(Lo=[],FK()),Lo.push(e),()=>{const t=Lo?Lo.indexOf(e):-1;t>-1&&Lo.splice(t,1)}}function FK(){Vi(In,"open",function(e){return function(...t){if(Lo)try{Lo.forEach(n=>n())}catch{}return e.apply(In,t)}})}const $K=new Set([_t.Mutation,_t.StyleSheetRule,_t.StyleDeclaration,_t.AdoptedStyleSheet,_t.CanvasMutation,_t.Selection,_t.MediaInteraction]);function MK(e,t,n){e.handleClick(t,n)}class VK{constructor(t,n,r=tm){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=LK(()=>{this._lastMutation=RT()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(UK(n,this._ignoreSelector)||!jK(t))return;const r={timestamp:kb(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=kb(t)}registerScroll(t=Date.now()){this._lastScroll=kb(t)}registerClick(t){const n=yL(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=RT();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!r&&!i,{clickCount:s,clickBreadcrumb:o}=t;if(a){const l=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=l<this._timeout*1e3?"mutation":"timeout",c={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:In.location.href,route:n.getCurrentRoute(),timeAfterClickMs:l,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,c);return}if(s>1){const l={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:In.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,l)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Zp(()=>this._checkClicks(),1e3)}}const BK=["A","BUTTON","INPUT"];function UK(e,t){return!!(!BK.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function jK(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function RT(){return Date.now()/1e3}function zK(e,t){try{if(!HK(t))return;const{source:n}=t.data;if($K.has(n)&&e.registerMutation(t.timestamp),n===_t.Scroll&&e.registerScroll(t.timestamp),WK(t)){const{type:r,id:i}=t.data,a=Ja.mirror.getNode(i);a instanceof HTMLElement&&r===gi.Click&&e.registerClick(a)}}catch{}}function HK(e){return e.type===RK}function WK(e){return e.data.source===_t.MouseInteraction}function fa(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var UE=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(UE||{});const GK=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function qK(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(GK.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const KK=e=>t=>{if(!e.isEnabled())return;const n=YK(t);if(!n)return;const r=t.name==="click",i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&MK(e.clickDetector,n,bL(t.event)),tm(e,n)};function wL(e,t){const n=Ja.mirror.getId(e),r=n&&Ja.mirror.getNode(n),i=r&&Ja.mirror.getMeta(r),a=i&&JK(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(s=>s.type===UE.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:qK(a.attributes)}}:{}}}function YK(e){const{target:t,message:n}=XK(e);return fa({category:`ui.${e.name}`,...wL(t,n)})}function XK(e){const t=e.name==="click";let n,r=null;try{r=t?bL(e.event):SL(e.event),n=qi(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function JK(e){return e.type===UE.Element}function QK(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=ZK(t);n&&tm(e,n)}function ZK(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:s}=e;if(!s||eY(s)||!a)return null;const o=t||r||i,l=a.length===1;if(!o&&l)return null;const u=qi(s,{maxStringLength:200})||"<unknown>",c=wL(s,u);return fa({category:"ui.keyDown",message:u,data:{...c.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function eY(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const tY={resource:aY,paint:iY,navigation:sY};function Cb(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function nY(e){return e.map(rY).filter(Boolean)}function rY(e){const t=tY[e.entryType];return t?t(e):null}function jc(e){return((Zi()||In.performance.timeOrigin)+e)/1e3}function iY(e){const{duration:t,entryType:n,name:r,startTime:i}=e,a=jc(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function sY(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:g,type:v}=e;return i===0?null:{type:`${t}.${v}`,start:jc(h),end:jc(a),name:n,data:{size:g,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:a,redirectCount:p}}}function aY(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:s,encodedBodySize:o,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:jc(a),end:jc(i),name:r,data:{size:u,statusCode:l,decodedBodySize:s,encodedBodySize:o}}}function oY(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return jE(e,"largest-contentful-paint",n)}function lY(e){return e.sources!==void 0}function uY(e){const t=[],n=[];for(const r of e.entries)if(lY(r)){const i=[];for(const a of r.sources)if(a.node){n.push(a.node);const s=Ja.mirror.getId(a.node);s&&i.push(s)}t.push({value:r.value,nodeIds:i.length?i:void 0})}return jE(e,"cumulative-layout-shift",n,t)}function cY(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return jE(e,"interaction-to-next-paint",n)}function jE(e,t,n,r){const i=e.value,a=e.rating,s=jc(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:a,nodeIds:n?n.map(o=>Ja.mirror.getId(o)):void 0,attributions:r}}}function dY(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(vu(i,n))}),r.push(AE(Cb(oY,e)),PE(Cb(uY,e)),DD(Cb(cY,e))),()=>{r.forEach(i=>i())}}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,fY='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function pY(){const e=new Blob([fY]);return URL.createObjectURL(e)}const OT=["log","warn","error"],Th="[Replay] ";function _b(e,t="info"){ho({category:"console",data:{logger:"replay"},level:t,message:`${Th}${e}`},{level:t})}function mY(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return Et?(OT.forEach(r=>{n[r]=(...i)=>{Ge[r](Th,...i),t&&_b(i.join(""),gD(r))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),Ge.error(Th,r),e?Ks(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&_b(r,"error")},n.infoTick=(...r)=>{Ge.log(Th,...r),t&&setTimeout(()=>_b(r[0]),0)}):OT.forEach(r=>{n[r]=()=>{}}),n}const xt=mY();class zE extends Error{constructor(){super(`Event buffer exceeded maximum size of ${DE}.`)}}class EL{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>DE)throw new zE;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?BE(t):null}}class hY{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){Et&&xt.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,a)=>{const s=({data:o})=>{const l=o;if(l.method===t&&l.id===r){if(this._worker.removeEventListener("message",s),!l.success){Et&&xt.error("Error in compression worker: ",l.response),a(new Error("Error in compression worker"));return}i(l.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class gY{constructor(t){this._worker=new hY(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=BE(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>DE?Promise.reject(new zE):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{Et&&xt.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class vY{constructor(t){this._fallback=new EL,this._compression=new gY(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){Et&&xt.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,i=[];for(const a of t)i.push(this._compression.addEvent(a));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(a){Et&&xt.exception(a,"Failed to add events when switching buffers.")}}}function yY({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=bY(t);if(n)return n}return Et&&xt.log("Using simple buffer"),new EL}function bY(e){try{const t=e||SY();if(!t)return;Et&&xt.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new vY(n)}catch(t){Et&&xt.exception(t,"Failed to create compression worker")}}function SY(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?pY():""}function HE(){try{return"sessionStorage"in In&&!!In.sessionStorage}catch{return!1}}function wY(e){EY(),e.session=void 0}function EY(){if(HE())try{In.sessionStorage.removeItem(OE)}catch{}}function xL(e){return e===void 0?!1:Math.random()<e}function Gv(e){if(HE())try{In.sessionStorage.setItem(OE,JSON.stringify(e))}catch{}}function kL(e){const t=Date.now(),n=e.id||ds(),r=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,s=e.sampled,o=e.previousSessionId,l=e.dirty||!1;return{id:n,started:r,lastActivity:i,segmentId:a,sampled:s,previousSessionId:o,dirty:l}}function xY(e,t){return xL(e)?"session":t?"buffer":!1}function NT({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=xY(e,t),a=kL({sampled:i,previousSessionId:r});return n&&Gv(a),a}function kY(){if(!HE())return null;try{const e=In.sessionStorage.getItem(OE);if(!e)return null;const t=JSON.parse(e);return Et&&xt.infoTick("Loading existing session"),kL(t)}catch{return null}}function sS(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function CL(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return sS(e.started,t,r)||sS(e.lastActivity,n,r)}function _L(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!CL(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Tb({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const i=r.stickySession&&kY();return i?_L(i,{sessionIdleExpire:e,maxReplayDuration:t})?(Et&&xt.infoTick("Session in sessionStorage is expired, creating new one..."),NT(r,{previousSessionId:i.id})):i:(Et&&xt.infoTick("Creating new session"),NT(r,{previousSessionId:n}))}function CY(e){return e.type===$t.Custom}function WE(e,t,n){return IL(e,t)?(TL(e,t,n),!0):!1}function _Y(e,t,n){return IL(e,t)?TL(e,t,n):Promise.resolve(null)}async function TL(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const i=e.recordingMode==="buffer";try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const a=e.getOptions(),s=TY(t,a.beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(a){const s=a&&a instanceof zE,o=s?"addEventSizeExceeded":"addEvent",l=Gt();if(l){const u=s?"buffer_overflow":"internal_sdk_error";l.recordDroppedEvent(u,"replay")}if(s&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:o})}}function IL(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=BE(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Et&&xt.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function TY(e,t){try{if(typeof t=="function"&&CY(e))return t(e)}catch(n){return Et&&xt.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function GE(e){return!e.type}function aS(e){return e.type==="transaction"}function IY(e){return e.type==="replay_event"}function DT(e){return e.type==="feedback"}function PY(e){return(t,n)=>{if(!e.isEnabled()||!GE(t)&&!aS(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(aS(t)){AY(e,t);return}RY(e,t)}}}function AY(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function RY(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Zp(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function OY(e){return t=>{!e.isEnabled()||!GE(t)||NY(e,t)}}function NY(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=fa({category:"replay.hydrate-error",data:{url:yd()}});tm(e,r)}}function DY(e){const t=Gt();t&&t.on("beforeAddBreadcrumb",n=>LY(e,n))}function LY(e,t){if(!e.isEnabled()||!PL(t))return;const n=FY(t);n&&tm(e,n)}function FY(e){return!PL(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?$Y(e):fa(e)}function $Y(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return fa(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>jm?(n=!0,`${i.slice(0,jm)}…`):i;if(typeof i=="object")try{const a=Bs(i,7);return JSON.stringify(a).length>jm?(n=!0,`${JSON.stringify(a,null,2).slice(0,jm)}…`):a}catch{}return i});return fa({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function PL(e){return!!e.category}function MY(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function AL(){const e=hn().getPropagationContext().dsc;e&&delete e.replay_id;const t=zr();if(t){const n=mo(t);delete n.replay_id}}function VY(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:$t.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function BY(e,t){return e.recordingMode!=="buffer"||t.message===NE||!t.exception||t.type?!1:xL(e.getOptions().errorSampleRate)}function UY(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(IY(t))return delete t.breadcrumbs,t;if(!GE(t)&&!aS(t)&&!DT(t))return t;if(!e.checkAndHandleExpiredSession())return AL(),t;if(DT(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),VY(e,t),t;if(MY(t,n)&&!e.getOptions()._experiments.captureExceptions)return Et&&xt.log("Ignoring error from rrweb internals",t),null;const i=BY(e,t);if((i||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),i&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const s=e.session;s.dirty=!0,e.getOptions().stickySession&&Gv(s)}return t},{id:"Replay"})}function qv(e,t){return t.map(({type:n,start:r,end:i,name:a,data:s})=>{const o=e.throttledAddEvent({type:$t.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:i,data:s}}});return typeof o=="string"?Promise.resolve(null):o})}function jY(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function zY(e){return t=>{if(!e.isEnabled())return;const n=jY(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(qv(e,[n]),!1)))}}function HY(e,t){return Et&&e.getOptions()._experiments.traceInternals?!1:N7(t,Gt())}function RL(e,t){e.isEnabled()&&t!==null&&(HY(e,t.name)||e.addUpdate(()=>(qv(e,[t]),!0)))}function Kv(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=zD(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function OL(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function _g(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function NL(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:s,request:o,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:s,request:o,response:l}}}function Qf(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Wo(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:a}=WY(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function oS(e,t){return Object.entries(e).reduce((n,[r,i])=>{const a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function WY(e){if(!e||typeof e!="string")return{body:e};const t=e.length>mT,n=GY(e);if(t){const r=e.slice(0,mT);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function GY(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Tg(e,t){const n=qY(e);return Ya(n,t)}function qY(e,t=In.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(In.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function KY(e,t,n){try{const r=await XY(e,t,n),i=NL("resource.fetch",r);RL(n.replay,i)}catch(r){Et&&xt.exception(r,"Failed to capture fetch breadcrumb")}}function YY(e,t){const{input:n,response:r}=t,i=n?WD(n):void 0,a=Kv(i),s=r?OL(r.headers.get("content-length")):void 0;a!==void 0&&(e.data.request_body_size=a),s!==void 0&&(e.data.response_body_size=s)}async function XY(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:s,method:o,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=Tg(s,n.networkDetailAllowUrls)&&!Tg(s,n.networkDetailDenyUrls),p=d?JY(n,t.input,u):Qf(u),h=await QY(d,n,t.response,c);return{startTimestamp:i,endTimestamp:a,url:s,method:o,statusCode:l,request:p,response:h}}function JY({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?tX(n,t):{};if(!e)return Wo(i,r,void 0);const a=WD(n),[s,o]=HD(a,xt),l=Wo(i,r,s);return o?_g(l,o):l}async function QY(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return Qf(i);const a=r?DL(r.headers,n):{};if(!r||!t&&i!==void 0)return Wo(a,i,void 0);const[s,o]=await eX(r),l=ZY(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return o?_g(l,o):l}function ZY(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{const a=e?.length&&n===void 0?Kv(e):n;return r?t?Wo(i,a,e):Wo(i,a,void 0):Qf(a)}catch(a){return Et&&xt.exception(a,"Failed to serialize response body"),Wo(i,n,void 0)}}async function eX(e){const t=nX(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await rX(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(Et&&xt.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Et&&xt.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function DL(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function tX(e,t){return e.length===1&&typeof e[0]!="string"?LT(e[0],t):e.length===2?LT(e[1],t):{}}function LT(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?DL(n,t):Array.isArray(n)?{}:oS(n,t):{}}function nX(e){try{return e.clone()}catch(t){Et&&xt.exception(t,"Failed to clone response body")}}function rX(e){return new Promise((t,n)=>{const r=Zp(()=>n(new Error("Timeout while trying to read response body")),500);iX(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function iX(e){return await e.text()}async function sX(e,t,n){try{const r=oX(e,t,n),i=NL("resource.xhr",r);RL(n.replay,i)}catch(r){Et&&xt.exception(r,"Failed to capture xhr breadcrumb")}}function aX(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=Kv(r),a=n.getResponseHeader("content-length")?OL(n.getResponseHeader("content-length")):cX(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function oX(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:s,xhr:o}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!o||!Tg(l,n.networkDetailAllowUrls)||Tg(l,n.networkDetailDenyUrls)){const _=Qf(d),A=Qf(p);return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:_,response:A}}const h=o[Rl],g=h?oS(h.request_headers,n.networkRequestHeaders):{},v=oS(GD(o),n.networkResponseHeaders),[y,b]=n.networkCaptureBodies?HD(s,xt):[void 0],[E,w]=n.networkCaptureBodies?lX(o):[void 0],C=Wo(g,d,y),P=Wo(v,p,E);return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:b?_g(C,b):C,response:w?_g(P,w):P}}function lX(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return uX(e.response,e.responseType)}catch(n){t.push(n)}return Et&&xt.warn("Failed to get xhr response body",...t),[void 0]}function uX(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return Et&&xt.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Et&&xt.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function cX(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Kv(n)}catch{return}}function dX(e){const t=Gt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s}=e.getOptions(),o={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(l,u)=>fX(o,l,u))}catch{}}function fX(e,t,n){if(t.data)try{pX(t)&&hX(n)&&(aX(t,n),sX(t,n,e)),mX(t)&&gX(n)&&(YY(t,n),KY(t,n,e))}catch(r){Et&&xt.exception(r,"Error when enriching network breadcrumb")}}function pX(e){return e.category==="xhr"}function mX(e){return e.category==="fetch"}function hX(e){return e?.xhr}function gX(e){return e?.response}function vX(e){const t=Gt();BD(KK(e)),jv(zY(e)),DY(e),dX(e);const n=UY(e);e7(n),t&&(t.on("beforeSendEvent",OY(e)),t.on("afterSendEvent",PY(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,i)=>{const a=e.getSessionId();i?.includeReplay&&e.isEnabled()&&a&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=a)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function yX(e){try{return Promise.all(qv(e,[bX(In.performance.memory)]))}catch{return[]}}function bX(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function SX(e,t,n){return V7(e,t,{...n,setTimeoutImpl:Zp})}const Gm=Yt.navigator;function wX(){return/iPhone|iPad|iPod/i.test(Gm?.userAgent??"")||/Macintosh/i.test(Gm?.userAgent??"")&&Gm?.maxTouchPoints&&Gm?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function EX(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Et&&xt.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&zK(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!WE(e,n,i))return!0;if(!i)return!1;const a=e.session;if(kX(e,i),e.recordingMode==="buffer"&&a&&e.eventBuffer&&!a.dirty){const s=e.eventBuffer.getEarliestTimestamp();s&&(Et&&xt.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),a.started=s,e.getOptions().stickySession&&Gv(a))}return a?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function xX(e){const t=e.getOptions();return{type:$t.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function kX(e,t){!t||!e.session||e.session.segmentId!==0||WE(e,xX(e),!1)}function CX(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function _X(e,t,n,r){return cl(WN(e,mE(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function TX({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
32
+ `;if(typeof e=="string")n=`${r}${e}`;else{const a=new TextEncoder().encode(r);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function IX({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:i};e.emit("preprocessEvent",r,a);const s=await JN(e.getOptions(),r,a,t,e,Ta());if(!s)return null;e.emit("postprocessEvent",s,a),s.platform=s.platform||"javascript";const o=e.getSdkMetadata(),{name:l,version:u,settings:c}=o?.sdk||{};return s.sdk={...s.sdk,name:l||"sentry.javascript.unknown",version:u||"0.0.0",settings:c},s}async function PX({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){const s=TX({recordingData:e,headers:{segment_id:n}}),{urls:o,errorIds:l,traceIds:u,initialTimestamp:c}=r,d=Gt(),p=hn(),h=d?.getTransport(),g=d?.getDsn();if(!d||!h||!g||!a.sampled)return Promise.resolve({});const v={type:sq,replay_start_timestamp:c/1e3,timestamp:i/1e3,error_ids:l,trace_ids:u,urls:o,replay_id:t,segment_id:n,replay_type:a.sampled},y=await IX({scope:p,client:d,replayId:t,event:v});if(!y)return d.recordDroppedEvent("event_processor","replay"),Et&&xt.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;const b=_X(y,s,g,d.getOptions().tunnel);let E;try{E=await h.send(b)}catch(C){const P=new Error(NE);try{P.cause=C}catch{}throw P}if(typeof E.statusCode=="number"&&(E.statusCode<200||E.statusCode>=300))throw new LL(E.statusCode);const w=oD({},E);if(aD(w,"replay"))throw new qE(w);return E}class LL extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class qE extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function FL(e,t={count:0,interval:dq}){const{recordingData:n,onError:r}=e;if(n.length)try{return await PX(e),!0}catch(i){if(i instanceof LL||i instanceof qE)throw i;if(QH("Replays",{_retryCount:t.count}),r&&r(i),t.count>=fq){const a=new Error(`${NE} - max retries exceeded`);try{a.cause=i}catch{}throw a}return t.interval*=++t.count,new Promise((a,s)=>{Zp(async()=>{try{await FL(e,t),a(!0)}catch(o){s(o)}},t.interval)})}}const $L="__THROTTLED",AX="__SKIPPED";function RX(e,t,n){const r=new Map,i=o=>{const l=o-n;r.forEach((u,c)=>{c<l&&r.delete(c)})},a=()=>[...r.values()].reduce((o,l)=>o+l,0);let s=!1;return(...o)=>{const l=Math.floor(Date.now()/1e3);if(i(l),a()>=t){const c=s;return s=!0,c?AX:$L}s=!1;const u=r.get(l)||0;return r.set(l,u+1),e(...o)}}class OX{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:aq,sessionIdleExpire:oq},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=SX(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=RX((s,o)=>_Y(this,s,o),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),a=r?{threshold:Math.min(pq,r),timeout:r,scrollTimeout:mq,ignoreSelector:i?i.join(","):""}:void 0;if(a&&(this.clickDetector=new VK(this,a)),Et){const s=t._experiments;xt.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{In.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=fa({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=fa({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{QK(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){Et&&xt.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){Et&&xt.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Et&&xt.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){Et&&xt.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){Et&&xt.log("Buffering is in progress, call `flush()` to save the replay");return}Et&&xt.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Tb({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){Et&&xt.log("Buffering is in progress, call `flush()` to save the replay");return}Et&&xt.infoTick("Starting replay in buffer mode");const t=Tb({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Ja({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:cq}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:EX(this),...wX(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{Et&&xt.log(`Stopping Replay${n?` triggered by ${n}`:""}`),AL(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,wY(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Et&&xt.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Et&&xt.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();Et&&xt.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&sS(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${In.location.pathname}${In.location.hash}${In.location.search}`,n=`${In.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===$L){const i=fa({category:"replay.throttled"});this.addUpdate(()=>!WE(this,{type:OK,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||zr(),n=t&&Br(t),i=(n&&tn(n).data||{})[Bi];if(!(!n||!i||!["route","custom"].includes(i)))return tn(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=yY({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Tb({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return _L(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{In.document.addEventListener("visibilitychange",this._handleVisibilityChange),In.addEventListener("blur",this._handleWindowBlur),In.addEventListener("focus",this._handleWindowFocus),In.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(vX(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=dY(this)}_removeListeners(){try{In.document.removeEventListener("visibilitychange",this._handleVisibilityChange),In.removeEventListener("blur",this._handleWindowBlur),In.removeEventListener("focus",this._handleWindowFocus),In.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||CL(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Et&&xt.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:$t.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=nY(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(qv(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){Et&&xt.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await yX(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await FL({replayId:t,recordingData:a,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Gt();if(r){const i=n instanceof qE?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){Et&&xt.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const a=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(a||s){Et&&xt.log(`Session duration (${Math.floor(i/1e3)}s) is too ${a?"short":"long"}, not sending replay.`),a&&this._debouncedFlush();return}const o=this.eventBuffer;o&&this.session.segmentId===0&&!o.hasCheckout&&Et&&xt.log("Flushing initial segment without checkout.");const l=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,l&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Gv(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(o=>{const l=CX(o.target),u=n.join(",");return l?.matches(u)}))return!1;const r=t.length,i=this._options.mutationLimit,a=this._options.mutationBreadcrumbLimit,s=i&&r>i;if(r>a||s){const o=fa({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(o)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Wd(e,t){return[...e,...t].join(",")}function NX({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const a=["base","iframe[srcdoc]:not([src])"],s=Wd(e,[".sentry-mask","[data-sentry-mask]"]),o=Wd(t,[]);return{maskTextSelector:s,unmaskTextSelector:o,blockSelector:Wd(n,[".sentry-block","[data-sentry-block]",...a]),unblockSelector:Wd(r,[]),ignoreSelector:Wd(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function DX({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const FT='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',LX=["content-length","content-type","accept"],FX=Symbol.for("sentry__originalRequestBody");let $T=!1,MT=!1;function $X(){if(typeof Request>"u"||MT)return;const e=Request;try{const t=function(n,r){const i=new e(n,r);return r?.body!=null&&(i[FX]=r.body),i};t.prototype=e.prototype,Yt.Request=t,MT=!0}catch{}}const MX=(e=>new VX(e));class VX{constructor({flushMinDelay:t=lq,flushMaxDelay:n=uq,minReplayDuration:r=hq,maxReplayDuration:i=hT,stickySession:a=!0,useCompression:s=!0,workerUrl:o,_experiments:l={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:p=750,mutationLimit:h=1e4,slowClickTimeout:g=7e3,slowClickIgnoreSelectors:v=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:b=[],networkCaptureBodies:E=!0,networkRequestHeaders:w=[],networkResponseHeaders:C=[],mask:P=[],maskAttributes:_=["title","placeholder","aria-label"],unmask:A=[],block:I=[],unblock:T=[],ignore:x=[],maskFn:R,beforeAddRecordingEvent:O,beforeErrorSampling:L,onError:F,attachRawBodyFromRequest:W=!1}={}){this.name="Replay";const H=NX({mask:P,unmask:A,block:I,unblock:T,ignore:x});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:R,maskInputFn:R,maskAttributeFn:(B,$,Y)=>DX({maskAttributes:_,maskAllText:u,privacyOptions:H,key:B,value:$,el:Y}),...H,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:B=>{try{B.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!l.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,gq),maxReplayDuration:Math.min(i,hT),stickySession:a,useCompression:s,workerUrl:o,blockAllMedia:d,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:h,slowClickTimeout:g,slowClickIgnoreSelectors:v,networkDetailAllowUrls:y,networkDetailDenyUrls:b,networkCaptureBodies:E,networkRequestHeaders:VT(w),networkResponseHeaders:VT(C),beforeAddRecordingEvent:O,beforeErrorSampling:L,onError:F,attachRawBodyFromRequest:W,_experiments:l},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${FT}`:FT,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&H0())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return $T}set _isInitialized(t){$T=t}afterAllSetup(t){!H0()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&$X(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=BX(this._initialOptions,t);this._replay=new OX({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function BX(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=hu(n.replaysSessionSampleRate),a=hu(n.replaysOnErrorSampleRate);return i==null&&a==null&&wo(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function VT(e){return[...LX,...e.map(t=>t.toLowerCase())]}function UX(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function ML(e){try{return new URL(e,ln.location.origin).href}catch{return}}function jX(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function VL(e){try{return new Headers(e)}catch{return}}const BT=new WeakMap,Ib=new Map,BL={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function zX(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s,tracePropagationTargets:o,onRequestSpanStart:l,onRequestSpanEnd:u}={...BL,...t},c=typeof a=="function"?a:g=>!0,d=g=>HX(g,o),p={},h=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(g=>(g.type==="transaction"&&g.spans&&g.spans.forEach(v=>{if(v.op==="http.client"){const y=Ib.get(v.span_id);y&&(v.timestamp=y/1e3,Ib.delete(v.span_id))}}),g)),i&&S9(g=>{if(g.response){const v=BT.get(g.response);v&&g.endTimestamp&&Ib.set(v,g.endTimestamp)}}),SD(g=>{const v=c9(g,c,d,p,{propagateTraceparent:h,onRequestSpanEnd:u});if(g.response&&g.fetchData.__span&&BT.set(g.response,g.fetchData.__span),v){const y=ML(g.fetchData.url),b=y?Ql(y).host:void 0;v.setAttributes({"http.url":y,"server.address":b}),s&&UT(v),l?.(v,{headers:g.headers})}})),r&&jD(g=>{const v=WX(g,c,d,p,h,u);v&&(s&&UT(v),l?.(v,{headers:VL(g.xhr.__sentry_xhr_v3__?.request_headers)}))})}function UT(e){const{url:t}=tn(e).data;if(!t||typeof t!="string")return;const n=vu("resource",({entries:r})=>{r.forEach(i=>{jX(i)&&i.name.endsWith(t)&&(e.setAttributes(VD(i)),setTimeout(n))})})}function HX(e,t){const n=yd();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const a=r.origin===i;return t?Ya(r.toString(),t)||a&&Ya(r.pathname,t):a}else{const r=!!e.match(/^\/(?!\/)/);return t?Ya(e,t):r}}function WX(e,t,n,r,i,a){const s=e.xhr,o=s?.[Rl];if(!s||s.__sentry_own_request__||!o)return;const{url:l,method:u}=o,c=Is()&&t(l);if(e.endTimestamp&&c){const b=s.__sentry_xhr_span_id__;if(!b)return;const E=r[b];E&&o.status_code!==void 0&&(PN(E,o.status_code),E.end(),a?.(E,{headers:VL(GD(s)),error:e.error}),delete r[b]);return}const d=ML(l),p=Ql(d||l),h=O7(l),g=!!zr(),v=c&&g?Zo({name:`${u} ${h}`,attributes:{url:l,type:"xhr","http.method":u,"http.url":d,"server.address":p?.host,[Wn]:"auto.http.browser",[po]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new Qo;s.__sentry_xhr_span_id__=v.spanContext().spanId,r[s.__sentry_xhr_span_id__]=v,n(l)&&GX(s,Is()&&g?v:void 0,i);const y=Gt();return y&&y.emit("beforeOutgoingRequestSpan",v,e),v}function GX(e,t,n){const{"sentry-trace":r,baggage:i,traceparent:a}=hD({span:t,propagateTraceparent:n});r&&qX(e,r,i,a)}function qX(e,t,n,r){const i=e.__sentry_xhr_v3__?.request_headers;if(!(i?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){const a=i?.baggage;(!a||!UX(a))&&e.setRequestHeader("baggage",n)}}catch{}}function KX(){ln.document?ln.document.addEventListener("visibilitychange",()=>{const e=zr();if(!e)return;const t=Br(e);if(ln.document.hidden&&t){const n="cancelled",{op:r,status:i}=tn(t);Os&&Ge.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:br,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Os&&Ge.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const YX=3600,UL="sentry_previous_trace",XX="sentry.previous_trace";function JX(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?eJ():void 0;e.on("spanStart",s=>{if(Br(s)!==s)return;const o=hn().getPropagationContext();i=QX(i,s,o),r&&ZX(i)});let a=!0;n&&e.on("beforeSampling",s=>{if(!i)return;const o=hn(),l=o.getPropagationContext();if(a&&l.parentSpanId){a=!1;return}o.setPropagationContext({...l,dsc:{...l.dsc,sample_rate:String(i.sampleRate),sampled:String(lS(i.spanContext))},sampleRand:i.sampleRand}),s.parentSampled=lS(i.spanContext),s.parentSampleRate=i.sampleRate,s.spanAttributes={...s.spanAttributes,[IN]:i.sampleRate}})}function QX(e,t,n){const r=tn(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[lE])}catch{return 0}}const a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;const s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=YX&&(Os&&Ge.log(`Adding previous_trace \`${JSON.stringify(s)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:s,attributes:{[Cz]:"previous_trace"}}),t.setAttribute(XX,`${s.traceId}-${s.spanId}-${lS(s)?1:0}`)),a)}function ZX(e){try{ln.sessionStorage.setItem(UL,JSON.stringify(e))}catch(t){Os&&Ge.warn("Could not store previous trace in sessionStorage",t)}}function eJ(){try{const e=ln.sessionStorage?.getItem(UL);return JSON.parse(e)}catch{return}}function lS(e){return e.traceFlags===1}const tJ="BrowserTracing",nJ={...wh,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...BL},jT=((e={})=>{const t={name:void 0,source:void 0},n=ln.document,{enableInp:r,enableElementTiming:i,enableLongTask:a,enableLongAnimationFrame:s,_experiments:{enableInteractions:o,enableStandaloneClsSpans:l,enableStandaloneLcpSpans:u},beforeStartSpan:c,idleTimeout:d,finalTimeout:p,childSpanTimeout:h,markBackgroundSpan:g,traceFetch:v,traceXHR:y,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:E,enableHTTPTimings:w,ignoreResourceSpans:C,ignorePerformanceApiSpans:P,instrumentPageLoad:_,instrumentNavigation:A,detectRedirects:I,linkPreviousTrace:T,consistentTraceSampling:x,enableReportPageLoaded:R,onRequestSpanStart:O,onRequestSpanEnd:L}={...nJ,...e};let F,W,H;function B($,Y,q=!0){const U=Y.op==="pageload",M=Y.name,K=c?c(Y):Y,fe=K.attributes||{};if(M!==K.name&&(fe[Bi]="custom",K.attributes=fe),!q){const Q=Ou();Zo({...K,startTime:Q}).end(Q);return}t.name=K.name,t.source=fe[Bi];const he=XN(K,{idleTimeout:d,finalTimeout:p,childSpanTimeout:h,disableAutoFinish:U,beforeSpanEnd:Q=>{F?.(),PW(Q,{recordClsOnPageloadSpan:!l,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:C,ignorePerformanceApiSpans:P}),HT($,void 0);const re=hn(),X=re.getPropagationContext();re.setPropagationContext({...X,traceId:he.spanContext().traceId,sampled:ul(he),dsc:mo(Q)}),U&&(H=void 0)},trimIdleSpanEndTimestamp:!R});U&&R&&(H=he),HT($,he);function Re(){n&&["interactive","complete"].includes(n.readyState)&&$.emit("idleSpanEnableAutoFinish",he)}U&&!R&&n&&(n.addEventListener("readystatechange",()=>{Re()}),Re())}return{name:tJ,setup($){if(eH(),F=EW({recordClsStandaloneSpans:l||!1,recordLcpStandaloneSpans:u||!1,client:$}),r&&tG(),i&&UW(),s&&Yt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?kW():a&&xW(),o&&CW(),I&&n){const q=()=>{W=or()};addEventListener("click",q,{capture:!0}),addEventListener("keydown",q,{capture:!0,passive:!0})}function Y(){const q=Zf($);q&&!tn(q).timestamp&&(Os&&Ge.log(`[Tracing] Finishing current active span with op: ${tn(q).op}`),q.setAttribute(Gf,"cancelled"),q.end())}$.on("startNavigationSpan",(q,U)=>{if(Gt()!==$)return;if(U?.isRedirect){Os&&Ge.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),B($,{op:"navigation.redirect",...q},!1);return}W=void 0,Y(),Ta().setPropagationContext({traceId:fo(),sampleRand:Math.random(),propagationSpanId:Is()?void 0:Xa()});const M=hn();M.setPropagationContext({traceId:fo(),sampleRand:Math.random(),propagationSpanId:Is()?void 0:Xa()}),M.setSDKProcessingMetadata({normalizedRequest:void 0}),B($,{op:"navigation",...q,parentSpan:null,forceTransaction:!0})}),$.on("startPageLoadSpan",(q,U={})=>{if(Gt()!==$)return;Y();const M=U.sentryTrace||zT("sentry-trace"),K=U.baggage||zT("baggage"),fe=Wz(M,K),he=hn();he.setPropagationContext(fe),Is()||(he.getPropagationContext().propagationSpanId=Xa()),he.setSDKProcessingMetadata({normalizedRequest:EE()}),B($,{op:"pageload",...q})}),$.on("endPageloadSpan",()=>{R&&H&&(H.setAttribute(Gf,"reportPageLoaded"),H.end())})},afterAllSetup($){let Y=yd();if(T!=="off"&&JX($,{linkPreviousTrace:T,consistentTraceSampling:x}),ln.location){if(_){const q=Zi();rJ($,{name:ln.location.pathname,startTime:q?q/1e3:void 0,attributes:{[Bi]:"url",[Wn]:"auto.pageload.browser"}})}A&&jv(({to:q,from:U})=>{if(U===void 0&&Y?.indexOf(q)!==-1){Y=void 0;return}Y=void 0;const M=wE(q),K=Zf($),fe=K&&I&&sJ(K,W);jL($,{name:M?.pathname||ln.location.pathname,attributes:{[Bi]:"url",[Wn]:"auto.navigation.browser"}},{url:q,isRedirect:fe})})}g&&KX(),o&&iJ($,d,p,h,t),r&&iG(),zX($,{traceFetch:v,traceXHR:y,trackFetchStreamPerformance:b,tracePropagationTargets:$.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:E,enableHTTPTimings:w,onRequestSpanStart:O,onRequestSpanEnd:L})}}});function rJ(e,t,n){e.emit("startPageLoadSpan",t,n),hn().setTransactionName(t.name);const r=Zf(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function jL(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const a=hn();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...EE(),url:r}}),Zf(e)}function zT(e){return ln.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function iJ(e,t,n,r,i){const a=ln.document;let s;const o=()=>{const l="ui.action.click",u=Zf(e);if(u){const c=tn(u).op;if(["navigation","pageload"].includes(c)){Os&&Ge.warn(`[Tracing] Did not create ${l} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Gf,"interactionInterrupted"),s.end(),s=void 0),!i.name){Os&&Ge.warn(`[Tracing] Did not create ${l} transaction because _latestRouteName is missing.`);return}s=XN({name:i.name,op:l,attributes:{[Bi]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};a&&addEventListener("click",o,{capture:!0})}const zL="_sentry_idleSpan";function Zf(e){return e[zL]}function HT(e,t){Ki(e,zL,t)}const WT=1.5;function sJ(e,t){const n=tn(e),r=Ou(),i=n.start_timestamp;return!(r-i>WT||t&&r-t<=WT)}const HL=["activate","mount"],WL=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,aJ=/(?:^|[-_])(\w)/g,oJ=e=>e.replace(aJ,t=>t.toUpperCase()).replace(/[-_]/g,""),lJ="<Root>",Pb="<Anonymous>",uJ=(e,t)=>e.repeat(t),Ef=(e,t)=>{if(!e)return Pb;if(e.$root===e)return lJ;if(!e.$options)return Pb;const n=e.$options;let r=n.name||n._componentTag||n.__name;const i=n.__file;if(!r&&i){const a=i.match(/([^/\\]+)\.vue$/);a&&(r=a[1])}return(r?`<${oJ(r)}>`:Pb)+(i&&t!==!1?` at ${i}`:"")},cJ=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const i=t[t.length-1];if(i.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[i,n],n=0)}t.push(e),e=e.$parent}return`
33
+
34
+ found in
35
+
36
+ ${t.map((i,a)=>`${(a===0?"---> ":uJ(" ",5+a*2))+(Array.isArray(i)?`${Ef(i[0])}... (${i[1]} recursive calls)`:Ef(i))}`).join(`
37
+ `)}`}return`
38
+
39
+ (found in ${Ef(e)})`},dJ=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,i,a)=>{const s=Ef(i,!1),o=i?cJ(i):"",l={componentName:s,lifecycleHook:a,trace:o};if(t?.attachProps!==!1&&i&&(i.$options?.propsData?l.propsData=i.$options.propsData:i.$props&&(l.propsData=i.$props)),setTimeout(()=>{Ks(r,{captureContext:{contexts:{vue:l}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,i,a);else throw r}},GT="ui.vue",fJ={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Ab(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function pJ(e,t){function n(i){return i.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(i=>n(t)===n(i))}const mJ=(e={})=>{const t=(e.hooks||[]).concat(HL).filter((i,a,s)=>s.indexOf(i)===a),n={},r=e.timeout||2e3;for(const i of t){const a=fJ[i];if(!a){WL&&Ge.warn(`Unknown hook: ${i}`);continue}for(const s of a)n[s]=function(){const o=this.$root===this;o&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Zo({name:"Application Render",op:`${GT}.render`,attributes:{[Wn]:"auto.ui.vue"},onlyIfParent:!0}),Ab(this,or(),r));const l=Ef(this,!1);if(!(o||(Array.isArray(e.trackComponents)?pJ(e.trackComponents,l):e.trackComponents))){Ab(this,or(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const c=s===a[0],d=this.$root?.$_sentryRootComponentSpan||zr();if(c){if(d){const p=this.$_sentryComponentSpans[i];p&&p.end(),this.$_sentryComponentSpans[i]=Zo({name:`Vue ${l}`,op:`${GT}.${i}`,attributes:{[Wn]:"auto.ui.vue"},onlyIfParent:!0})}}else{const p=this.$_sentryComponentSpans[i];if(!p)return;p.end(),Ab(this,or(),r)}}}return n},hJ=Yt,gJ={Vue:hJ.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:HL,timeout:2e3,trackComponents:!1}},vJ="Vue",yJ=(e={})=>({name:vJ,setup(t){const n={...gJ,...t.getOptions(),...e};if(!n.Vue&&!n.app){wo(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(i=>qT(i,n)):n.Vue&&qT(n.Vue,n)}}),qT=(e,t)=>{WL&&e._instance?.isMounted===!0&&wo(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&dJ(e,t),Is(t)&&e.mixin(mJ(t.tracingOptions))};function bJ(e={}){const t={defaultIntegrations:[...YD(),yJ()],...e};return mD(t,"vue"),iq(t)}function SJ(e,t,n){let r=!1;e.onError(i=>Ks(i,{mechanism:{handled:!1}})),e.beforeEach((i,a,s)=>{const o=r?void 0:wJ(),l={};for(const d of Object.keys(i.params))l[`url.path.parameter.${d}`]=i.params[d],l[`params.${d}`]=i.params[d];for(const d of Object.keys(i.query)){const p=i.query[d];p&&(l[`query.${d}`]=p)}let u=i.path,c="url";if(i.name&&t.routeLabel!=="path")u=i.name.toString(),c="custom";else if(i.matched.length>0){const d=i.matched.length-1;u=i.matched[d].path,c="route"}hn().setTransactionName(u),t.instrumentPageLoad&&o&&(tn(o).data[Bi]!=="custom"&&(o.updateName(u),o.setAttribute(Bi,c)),o.setAttributes({...l,[Wn]:"auto.pageload.vue"}),r=!0),t.instrumentNavigation&&!o&&n({name:u,op:"navigation",attributes:{...l,[Wn]:"auto.navigation.vue",[Bi]:c}}),s&&s()})}function wJ(){const e=zr(),t=e&&Br(e);return t&&tn(t).op==="pageload"?t:void 0}function EJ(e={}){if(!e.router)return jT(e);const t=jT({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:i=!0,routeLabel:a="name"}=e;return{...t,afterAllSetup(s){t.afterAllSetup(s),SJ(n,{routeLabel:a,instrumentNavigation:r,instrumentPageLoad:i},l=>{jL(s,l)})}}}const xJ={attachPiniaState:!0,addBreadcrumbs:!0,actionTransformer:e=>e,stateTransformer:e=>e},KT=(e,t)=>{const n={};try{return Object.keys(e.state.value).forEach(r=>{n[r]=e.state.value[r]}),t?t(n):n}catch{return n}},kJ=e=>{const t={...xJ,...e};return({store:r,pinia:i})=>{t.attachPiniaState!==!1&&TN().addEventProcessor((a,s)=>{try{const l=`pinia_state_all_stores_${new Date().toTimeString().split(" ")[0]}.json`;s.attachments?.some(c=>c.filename.startsWith("pinia_state_all_stores_"))||(s.attachments=[...s.attachments||[],{filename:l,data:JSON.stringify(KT(i,t.stateTransformer))}])}catch{}return a}),r.$onAction(a=>{a.after(()=>{const s=t.actionTransformer(a.name);typeof s<"u"&&s!==null&&t.addBreadcrumbs!==!1&&ho({category:"pinia.action",message:`Store: ${r.$id} | Action: ${s}`,level:"info"});const o=KT(i,t.stateTransformer),l=hn(),u=l.getScopeData().contexts.state;if(typeof o<"u"&&o!==null){const p=Gt()?.getOptions()?.normalizeDepth||3,g={...u||{},state:{type:"pinia",value:o}};Ki(g,"__sentry_override_normalization_depth__",3+p),l.setContext("state",g)}else l.setContext("state",{...u||{},state:{type:"pinia",value:"undefined"}})})})}};async function KE(){return"/"}async function Xr(e=!0,t=!0){const n=rr.create({baseURL:await KE()});return n.interceptors.request.use(r=>(console.debug(`${r.method?.toUpperCase().padEnd(6)} ${r.url?.padEnd(25)} WithAuth: ${e?.toString().padEnd(7)} AutoHandle401: ${t?.toString().padEnd(7)} BaseURL: ${r.baseURL}`),r)),e&&n.interceptors.request.use(async r=>{const i=Rs();return i.loadTokens(),i.hasAuthToken&&(r.headers.Authorization=`Bearer ${i.token}`),r},r=>(console.error("Error in axios request interceptor",r),Promise.reject(r))),t&&n.interceptors.response.use(r=>r,async r=>{const{response:i,config:a}=r;if(!i){const d=new Error(`No response was returned by axios - URL ${a?.url}`);throw d.stack=r.stack,d}if(i.status===Al.FailedDependency)throw r;if(![Al.Unauthorized,Al.Forbidden].includes(i.status))return console.error("Error in axios response interceptor which is not 401 or 403",r),Ks(r),Promise.reject({message:`${r.message} - URL ${a?.url}`,stack:r.stack});if(i.status===Al.Forbidden){const d=r?.response?.data;throw console.error("[HttpClient] 403 Forbidden",d),Si("auth:permission-denied").emit({roles:d?.roles,permissions:d?.permissions,error:d?.error,url:a?.url}),r}const s=Rs();s.loadTokens();const{reasonCode:o,url:l}=s.extractSpecialReasonCode(r);if(o)return await s.logout(!1,eE(o)),console.error(`[AuthStore] 401 Unauthorized - emitting 'auth:${o}' with reason ${o}`),Si(`auth:${o}`).emit({url:l,error:r.message,reasonCode:o}),Promise.reject(r);await s.checkAuthenticationRequirements();const{success:u,handled:c}=await s.verifyOrRefreshLoginOnceOrLogout();if(c)return Promise.reject(r);if(u){if(!a?.url)throw new Error("No URL in axios config, cannot retry");console.debug("Redoing request without interceptors",a?.url);const d=a;return d.headers??={},d.headers.Authorization=`Bearer ${s.token}`,rr(d)}return console.error("[HttpClient] 401 Unauthorized - emitting 'auth:failure'"),Si("auth:failure").emit({url:a?.url,error:r.message}),Promise.reject(r)}),n}class di{static async get(t){return(await(await Xr(!0)).get(t)).data}static async put(t,n){return(await(await Xr(!0)).put(t,n)).data}static async post(t,n){return(await(await Xr(!0)).post(t,n)).data}static async postUpload(t,n,r){return await(await Xr(!0)).post(t,n,r)}static async getDownload(t,n){return await(await Xr(!0)).request({method:"GET",url:t,data:n,responseType:"arraybuffer"})}static async delete(t,n){return(await(await Xr(!0)).request({url:t,method:"delete",data:n})).data}static async patch(t,n){return(await(await Xr(!0)).patch(t,n)).data}}class Se{static base="/api/v2";static firstTimeSetupRoute=`${Se.base}/first-time-setup`;static completeFirstTimeSetupRoute=`${Se.firstTimeSetupRoute}/complete`;static printerRoute=`${Se.base}/printer`;static printerBatchRoute=`${Se.printerRoute}/batch`;static printerTestConnectionRoute=`${Se.printerRoute}/test-connection`;static printerSettingsRoute=`${Se.base}/printer-settings`;static floorRoute=`${Se.base}/floor`;static batchRoute=`${Se.base}/batch`;static batchGetLastPrintedFilesRoute=`${Se.batchRoute}/reprint/list`;static batchReprintFilesRoute=`${Se.batchRoute}/reprint/execute`;static printJobsRoute=`${Se.base}/print-jobs`;static printJobsSearchRoute=`${Se.printJobsRoute}/search`;static printJobsSearchPagedRoute=`${Se.printJobsRoute}/search-paged`;static printQueueRoute=`${Se.base}/print-queue`;static printerFilesRoute=`${Se.base}/printer-files`;static printerFilesPurgeRoute=`${Se.printerFilesRoute}/purge`;static printerTagRoute=`${Se.base}/printer-tag`;static createTagRoute=`${Se.base}/printer-tag`;static userRoute=`${Se.base}/user`;static rolesRoute=`${Se.base}/user/roles`;static userProfileRoute=`${Se.userRoute}/profile`;static settingsRoute=`${Se.base}/settings`;static settingsSensitiveRoute=`${Se.settingsRoute}/sensitive`;static updateLoginRequiredRoute=`${Se.settingsRoute}/login-required`;static updateRegistrationEnabledRoute=`${Se.settingsRoute}/registration-enabled`;static updateCredentialSettings=`${Se.settingsRoute}/credential`;static updateFrontendSettingsRoute=`${Se.settingsRoute}/frontend`;static updateTimeoutSettingRoute=`${Se.settingsRoute}/timeout`;static serverSentryDiagnosticsSettingRoute=`${Se.settingsRoute}/sentry-diagnostics`;static updateExperimentalMoonrakerSupportRoute=`${Se.settingsRoute}/experimental-moonraker-support`;static updateExperimentalThumbnailSupportRoute=`${Se.settingsRoute}/experimental-thumbnail-support`;static updateExperimentalPrusaLinkSupportRoute=`${Se.settingsRoute}/experimental-prusa-link-support`;static updateExperimentalBambuSupportRoute=`${Se.settingsRoute}/experimental-bambu-support`;static slicerApiKeyRoute=`${Se.settingsRoute}/slicer-api-key`;static regenerateSlicerApiKeyRoute=`${Se.slicerApiKeyRoute}/regenerate`;static deleteTagRoute=t=>`${Se.base}/printer-tag/${t}`;static updateTagNameRoute=t=>`${Se.base}/printer-tag/${t}/name`;static updateTagColorRoute=t=>`${Se.base}/printer-tag/${t}/color`;static addPrinterToTagRoute=t=>`${Se.base}/printer-tag/${t}/printer`;static deletePrinterFromTagRoute=Se.addPrinterToTagRoute;static getPrinterRoute=t=>`${Se.printerRoute}/${t}`;static postPrinterDisabledReasonRoute=t=>`${Se.printerRoute}/${t}/disabled-reason`;static getPrinterLoginDetailsRoute=t=>`${Se.getPrinterRoute(t)}/login-details`;static restartOctoPrintRoute=t=>`${Se.getPrinterRoute(t)}/restart-octoprint`;static refreshSocketRoute=t=>`${Se.getPrinterRoute(t)}/refresh-socket`;static getPrinterSettingsRoute=t=>`${Se.printerSettingsRoute}/${t}`;static syncPrinterNameSettingRoute=t=>`${Se.getPrinterSettingsRoute(t)}/sync-printername`;static getFloorRoute=t=>`${Se.floorRoute}/${t}`;static addOrRemovePrinterFromFloorRoute=t=>`${Se.getFloorRoute(t)}/printer`;static sendQuickStopM112Route=t=>`${Se.printerRoute}/${t}/send-emergency-m112`;static updatePrinterFloorNameRoute=t=>`${Se.getFloorRoute(t)}/name`;static updatePrinterFloorOrderRoute=t=>`${Se.getFloorRoute(t)}/floor-order`;static printerFilesClearRoute=t=>`${Se.printerFilesRoute}/${t}/clear`;static printerFilesStartPrintRoute=t=>`${Se.printerFilesRoute}/${t}/select`;static printerFilesUploadRoute=t=>`${Se.printerFilesRoute}/${t}/upload`;static printerFilesCacheRoute=t=>`${Se.printerFilesRoute}/${t}/cache`;static printerEnabledRoute=t=>`${Se.getPrinterRoute(t)}/enabled`;static printerSerialConnectRoute=t=>`${Se.getPrinterRoute(t)}/serial-connect`;static printerJogCommandRoute=t=>`${Se.getPrinterRoute(t)}/jog`;static printerHomeCommandRoute=t=>`${Se.getPrinterRoute(t)}/home`;static printerSerialDisconnectRoute=t=>`${Se.getPrinterRoute(t)}/serial-disconnect`;static printerJobRoute=t=>`${Se.getPrinterRoute(t)}/job`;static printerStopJobRoute=t=>`${Se.printerJobRoute(t)}/stop`;static printerPauseJobRoute=t=>`${Se.printerJobRoute(t)}/pause`;static printerResumeJobRoute=t=>`${Se.printerJobRoute(t)}/resume`;static userChangeUsernameRoute=t=>`${Se.userRoute}/${t}/change-username`;static userChangePasswordRoute=t=>`${Se.userRoute}/${t}/change-password`;static userDeleteRoute=t=>`${Se.userRoute}/${t}`;static userSetVerifiedRoute=t=>`${Se.userRoute}/${t}/set-verified`;static userSetRootUserRoute=t=>`${Se.userRoute}/${t}/set-root-user`;static userSetUserRolesRoute=t=>`${Se.userRoute}/${t}/set-user-roles`}class Jr extends di{static async searchJobs(t={}){const n=new URLSearchParams;t.searchPrinter&&n.set("searchPrinter",t.searchPrinter),t.searchFile&&n.set("searchFile",t.searchFile),t.startDate&&n.set("startDate",t.startDate),t.endDate&&n.set("endDate",t.endDate);const r=`${Se.printJobsSearchRoute}?${n.toString()}`;return await this.get(r)}static async searchJobsPaged(t={}){const n=new URLSearchParams;t.searchPrinter&&n.set("searchPrinter",t.searchPrinter),t.searchFile&&n.set("searchFile",t.searchFile),t.startDate&&n.set("startDate",t.startDate),t.endDate&&n.set("endDate",t.endDate),t.page!==void 0&&n.set("page",t.page.toString()),t.pageSize!==void 0&&n.set("pageSize",t.pageSize.toString());const r=`${Se.printJobsSearchPagedRoute}?${n.toString()}`;return await this.get(r)}static async getJob(t){const n=`${Se.printJobsRoute}/${t}`;return await this.get(n)}static async reAnalyzeJob(t){const n=`${Se.printJobsRoute}/${t}/re-analyze`;return await this.post(n)}static async setJobCompleted(t){const n=`${Se.printJobsRoute}/${t}/set-completed`;return await this.post(n)}static async setJobFailed(t){const n=`${Se.printJobsRoute}/${t}/set-failed`;return await this.post(n)}static async setJobCancelled(t){const n=`${Se.printJobsRoute}/${t}/set-cancelled`;return await this.post(n)}static async setJobUnknown(t){const n=`${Se.printJobsRoute}/${t}/set-unknown`;return await this.post(n)}static async deleteJob(t,n=!1){const r=`${Se.printJobsRoute}/${t}${n?"?deleteFile=true":""}`;return await this.delete(r)}static async getThumbnails(t){const n=`${Se.printJobsRoute}/${t}/thumbnails`;return(await this.get(n)).thumbnails||[]}static async getThumbnailUrl(t,n){const r=await KE(),i=`${Se.printJobsRoute}/${t}/thumbnails/${n}`;return`${r.endsWith("/")?r.slice(0,-1):r}${i}`}static async createFromFile(t,n){const r=`${Se.printJobsRoute}/from-file`;return this.post(r,{fileStorageId:t,printerId:n})}}const YE=Qi("Dialog",{state:()=>({ids:[],dialogsById:{}}),getters:{dialogs(){return this.ids.map(e=>this.dialogsById[e])},getBeforeOpenedCallback(){return e=>this.dialogsById[e]?.beforeOpenedCallback},getOpenedCallback(){return e=>this.dialogsById[e]?.openedCallback},getContext(){return e=>this.dialogsById[e]?.context},getOutput(){return e=>this.dialogsById[e]?.output},isDialogOpened(){return e=>this.dialogsById[e]?.opened}},actions:{openDialogWithContext(e,t){let n=this.dialogsById[e];n||(n=this.registerDialogReference(e)),n.opened=!0,n.context=t,this.dialogsById={...this.dialogsById},console.debug(`[Pinia Dialog ${e}] Opened with context`,t)},closeDialog(e,t){let n=this.dialogsById[e];n||(n=this.registerDialogReference(e)),n.opened=!1,delete n.context,n.output=t,this.dialogsById={...this.dialogsById},console.debug(`[Pinia Dialog ${e}] Closed`)},closeAllDialogs(){for(const e of this.ids)this.dialogsById[e]?.opened&&this.closeDialog(e)},unregisterDialogReference(e){delete this.dialogsById[e],this.ids=this.ids.filter(t=>t!==e)},registerDialogReference(e,t){if(!e)throw new Error("Cannot unregister undefined dialog reference");const n=this.dialogsById[e];if(n)return console.debug(`[Pinia Dialog ${e}] Already registered dialog, not registering again`),n;const r={id:e,opened:!1,beforeOpenedCallback:t?.beforeOpenedCallback,openedCallback:t?.openedCallback};return this.dialogsById[e]=r,this.ids.push(e),r}}});function zt(e){const t=YE();async function n(r){const i=t.getBeforeOpenedCallback(e);i&&await i(r),t.openDialogWithContext(e,r);const a=t.getOpenedCallback(e);a&&await a(r)}return{dialogId:e,dialogStore:t,openDialog:n,context:()=>t.getContext(e),closeDialog:r=>t.closeDialog(e,r),isDialogOpened:()=>t.isDialogOpened(e),handleAsync:async r=>(await n(r),new Promise(i=>{lr(()=>{t.isDialogOpened(e)||i(t.getOutput(e))})}))}}var Ht=(e=>(e.ImportOctoFarmDialog="ImportOctoFarmDialog",e.BatchReprintDialog="BatchReprintDialog",e.YamlImportExport="YamlImportExport",e.AddOrUpdatePrinterDialog="AddOrUpdatePrinterDialog",e.AddOrUpdateFloorDialog="AddOrUpdateFloorDialog",e.PrinterMaintenanceDialog="PrinterMaintenanceDialog",e.AddOrUpdateCameraDialog="AddOrUpdateCameraDialog",e.PrinterControlDialog="PrinterControlDialog",e.CreateUserDialog="CreateUserDialog",e.JsonViewerDialog="JsonViewerDialog",e.ManageTagsDialog="ManageTagsDialog",e.PrintJobDetailsDialog="PrintJobDetailsDialog",e.JobThumbnailViewer="JobThumbnailViewer",e))(Ht||{});function GL(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const un=typeof window<"u",XE=un&&"IntersectionObserver"in window,CJ=un&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),YT=un&&"EyeDropper"in window,JE=un&&"matchMedia"in window&&typeof window.matchMedia=="function",yu=()=>JE&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function XT(e,t,n){_J(e,t),t.set(e,n)}function _J(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function JT(e,t,n){return e.set(qL(e,t),n),n}function Aa(e,t){return e.get(qL(e,t))}function qL(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function KL(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let i=0;i<r;i++){if(e==null)return n;e=e[t[i]]}return e==null||e[t[r]]===void 0?n:e[t[r]]}function bu(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),KL(e,t.split("."),n))}function er(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const i=t(e,n);return typeof i>"u"?n:i}if(typeof t=="string")return bu(e,t,n);if(Array.isArray(t))return KL(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function Nl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function ze(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(e==null||e==="")return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?`${n}${t}`:void 0}function ep(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function QT(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function QE(e){if(e&&"$el"in e){const t=e.$el;return t?.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}const uS=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function YL(e){return Object.keys(e)}function Dl(e,t){return t.every(n=>e.hasOwnProperty(n))}function Js(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function cS(e,t,n){const r=Object.create(null),i=Object.create(null);for(const a in e)t.some(s=>s instanceof RegExp?s.test(a):s===a)?r[a]=e[a]:i[a]=e[a];return[r,i]}function Rn(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const XL=/^on[^a-z]/,ZE=e=>XL.test(e),TJ=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],IJ=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function PJ(e){return e.isComposing&&IJ.includes(e.key)}function dl(e){const[t,n]=cS(e,[XL]),r=Rn(t,TJ),[i,a]=cS(n,["class","style","id","inert",/^data-/]);return Object.assign(i,t),Object.assign(a,r),[i,a]}function tr(e){return e==null?[]:Array.isArray(e)?e:[e]}function AJ(e,t){let n=0;const r=function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];clearTimeout(n),n=setTimeout(()=>e(...a),ne(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function Ln(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function ZT(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function eI(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function tI(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function RJ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function nI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(e<t)return`${e} B`;const n=t===1024?["Ki","Mi","Gi"]:["k","M","G"];let r=-1;for(;Math.abs(e)>=t&&r<n.length-1;)e/=t,++r;return`${e.toFixed(1)} ${n[r]}B`}function ii(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const i in e)r[i]=e[i];for(const i in t){const a=e[i],s=t[i];if(QT(a)&&QT(s)){r[i]=ii(a,s,n);continue}if(n&&Array.isArray(a)&&Array.isArray(s)){r[i]=n(a,s);continue}r[i]=s}return r}function JL(e){return e.map(t=>t.type===De?JL(t.children):t).flat()}function eu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(eu.cache.has(e))return eu.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return eu.cache.set(e,t),t}eu.cache=new Map;function gc(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>gc(e,n)).flat(1);if(t.suspense)return gc(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>gc(e,n)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return gc(e,t.component.subTree).flat(1)}return[]}var Ku=new WeakMap,bl=new WeakMap;class QL{constructor(t){XT(this,Ku,[]),XT(this,bl,0),this.size=t}get isFull(){return Aa(Ku,this).length===this.size}push(t){Aa(Ku,this)[Aa(bl,this)]=t,JT(bl,this,(Aa(bl,this)+1)%this.size)}values(){return Aa(Ku,this).slice(Aa(bl,this)).concat(Aa(Ku,this).slice(0,Aa(bl,this)))}clear(){Aa(Ku,this).length=0,JT(bl,this,0)}}function OJ(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function ex(e){const t=Dn({});lr(()=>{const r=e();for(const i in r)t[i]=r[i]},{flush:"sync"});const n={};for(const r in t)n[r]=ae(()=>t[r]);return n}function Ig(e,t){return e.includes(t)}function ZL(e){return e[2].toLowerCase()+e.slice(3)}const Ur=()=>[Function,Array];function rI(e,t){return t="on"+Ji(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function nm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Array.isArray(e))for(const i of e)i(...n);else typeof e=="function"&&e(...n)}function tu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map(i=>`${i}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch{return[]}return r.filter(i=>!i.closest("[inert]")).filter(i=>!!i.offsetParent||i.getClientRects().length>0).filter(i=>!i.parentElement?.closest("details:not([open])")||i.tagName==="SUMMARY"&&i.parentElement?.tagName==="DETAILS")}function eF(e,t,n){let r,i=e.indexOf(document.activeElement);const a=t==="next"?1:-1;do i+=a,r=e[i];while((!r||r.offsetParent==null||!(n?.(r)??!0))&&i<e.length&&i>=0);return r}function xf(e,t){const n=tu(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&n[0]?.focus();else if(t==="first")n[0]?.focus();else if(t==="last")n.at(-1)?.focus();else if(typeof t=="number")n[t]?.focus();else{const r=eF(n,t);r?r.focus():xf(e,t==="next"?"first":"last")}}function qm(e){return e==null||typeof e=="string"&&e.trim()===""}function tF(){}function zc(e,t){if(!(un&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function Yv(e){return e.some(t=>Sa(t)?t.type===Zn?!1:t.type!==De||Yv(t.children):!0)?e:null}function NJ(e,t){if(!un||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function DJ(e,t){const n=e.clientX,r=e.clientY,i=t.getBoundingClientRect(),a=i.left,s=i.top,o=i.right,l=i.bottom;return n>=a&&n<=o&&r>=s&&r<=l}function dS(){const e=Fe(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>QE(e.value)}),t}function Hc(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function tl(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function LJ(e){return"\\^$*+?.()|{}[]".includes(e)?`\\${e}`:e}function FJ(e){const t={};for(const n in e)t[kn(n)]=e[n];return t}function $J(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(n=>{let[r,i]=n;return t.includes(r)?!!i:i!==void 0}))}const nF=["top","bottom"],MJ=["start","end","left","right"];function fS(e,t){let[n,r]=e.split(" ");return r||(r=Ig(nF,n)?"start":Ig(MJ,n)?"top":"center"),{side:pS(n,t),align:pS(r,t)}}function pS(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function Rb(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Ob(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function iI(e){return{side:e.align,align:e.side}}function sI(e){return Ig(nF,e.side)?"y":"x"}class Cs{constructor(t){const n=document.body.currentCSSZoom??1,r=t instanceof Element,i=r?1+(1-n)/n:1,{x:a,y:s,width:o,height:l}=r?t.getBoundingClientRect():t;this.x=a*i,this.y=s*i,this.width=o*i,this.height=l*i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function aI(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function rF(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new Cs({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}else return new Cs(e)}function VJ(e){if(e===document.documentElement)if(visualViewport){const t=document.body.currentCSSZoom??1;return new Cs({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale/t,height:visualViewport.height*visualViewport.scale/t})}else return new Cs({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else return new Cs(e)}function tx(e){const t=new Cs(e),n=getComputedStyle(e),r=n.transform;if(r){let i,a,s,o,l;if(r.startsWith("matrix3d("))i=r.slice(9,-1).split(/, /),a=Number(i[0]),s=Number(i[5]),o=Number(i[12]),l=Number(i[13]);else if(r.startsWith("matrix("))i=r.slice(7,-1).split(/, /),a=Number(i[0]),s=Number(i[3]),o=Number(i[4]),l=Number(i[5]);else return new Cs(t);const u=n.transformOrigin,c=t.x-o-(1-a)*parseFloat(u),d=t.y-l-(1-s)*parseFloat(u.slice(u.indexOf(" ")+1)),p=a?t.width/a:e.offsetWidth+1,h=s?t.height/s:e.offsetHeight+1;return new Cs({x:c,y:d,width:p,height:h})}else return new Cs(t)}function Ba(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(i=>{r.onfinish=()=>{i(r)}})),r}const Ih=new WeakMap;function BJ(e,t){Object.keys(t).forEach(n=>{if(ZE(n)){const r=ZL(n),i=Ih.get(e);if(t[n]==null)i?.forEach(a=>{const[s,o]=a;s===r&&(e.removeEventListener(r,o),i.delete(a))});else if(!i||![...i].some(a=>a[0]===r&&a[1]===t[n])){e.addEventListener(r,t[n]);const a=i||new Set;a.add([r,t[n]]),Ih.has(e)||Ih.set(e,a)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function UJ(e,t){Object.keys(t).forEach(n=>{if(ZE(n)){const r=ZL(n),i=Ih.get(e);i?.forEach(a=>{const[s,o]=a;s===r&&(e.removeEventListener(r,o),i.delete(a))})}else e.removeAttribute(n)})}const Yu=2.4,oI=.2126729,lI=.7151522,uI=.072175,jJ=.55,zJ=.58,HJ=.57,WJ=.62,Km=.03,cI=1.45,GJ=5e-4,qJ=1.25,KJ=1.25,dI=.078,fI=12.82051282051282,Ym=.06,pI=.001;function mI(e,t){const n=(e.r/255)**Yu,r=(e.g/255)**Yu,i=(e.b/255)**Yu,a=(t.r/255)**Yu,s=(t.g/255)**Yu,o=(t.b/255)**Yu;let l=n*oI+r*lI+i*uI,u=a*oI+s*lI+o*uI;if(l<=Km&&(l+=(Km-l)**cI),u<=Km&&(u+=(Km-u)**cI),Math.abs(u-l)<GJ)return 0;let c;if(u>l){const d=(u**jJ-l**zJ)*qJ;c=d<pI?0:d<dI?d-d*fI*Ym:d-Ym}else{const d=(u**WJ-l**HJ)*KJ;c=d>-pI?0:d>-dI?d-d*fI*Ym:d+Ym}return c*100}const Pg=.20689655172413793,YJ=e=>e>Pg**3?Math.cbrt(e):e/(3*Pg**2)+4/29,XJ=e=>e>Pg?e**3:3*Pg**2*(e-4/29);function iF(e){const t=YJ,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function sF(e){const t=XJ,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const JJ=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],QJ=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,ZJ=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],eQ=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function aF(e){const t=Array(3),n=QJ,r=JJ;for(let i=0;i<3;++i)t[i]=Math.round(Ln(n(r[i][0]*e[0]+r[i][1]*e[1]+r[i][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function nx(e){let{r:t,g:n,b:r}=e;const i=[0,0,0],a=eQ,s=ZJ;t=a(t/255),n=a(n/255),r=a(r/255);for(let o=0;o<3;++o)i[o]=s[o][0]*t+s[o][1]*n+s[o][2]*r;return i}function mS(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function tQ(e){return mS(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const hI=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,nQ={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>gI({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>gI({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>Ea({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>Ea({h:e,s:t,v:n,a:r})};function ls(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&hI.test(e)){const{groups:t}=e.match(hI),{fn:n,values:r}=t,i=r.split(/,\s*|\s*\/\s*|\s+/).map((a,s)=>a.endsWith("%")||s>0&&s<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(a)/100:parseFloat(a));return nQ[n](...i)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),cF(t)}else if(typeof e=="object"){if(Dl(e,["r","g","b"]))return e;if(Dl(e,["h","s","l"]))return Ea(rx(e));if(Dl(e,["h","s","v"]))return Ea(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
40
+ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Ea(e){const{h:t,s:n,v:r,a:i}=e,a=o=>{const l=(o+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},s=[a(5),a(3),a(1)].map(o=>Math.round(o*255));return{r:s[0],g:s[1],b:s[2],a:i}}function gI(e){return Ea(rx(e))}function rm(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),a=Math.min(t,n,r);let s=0;i!==a&&(i===t?s=60*(0+(n-r)/(i-a)):i===n?s=60*(2+(r-t)/(i-a)):i===r&&(s=60*(4+(t-n)/(i-a)))),s<0&&(s=s+360);const o=i===0?0:(i-a)/i,l=[s,o,i];return{h:l[0],s:l[1],v:l[2],a:e.a}}function hS(e){const{h:t,s:n,v:r,a:i}=e,a=r-r*n/2,s=a===1||a===0?0:(r-a)/Math.min(a,1-a);return{h:t,s,l:a,a:i}}function rx(e){const{h:t,s:n,l:r,a:i}=e,a=r+n*Math.min(r,1-r),s=a===0?0:2-2*r/a;return{h:t,s,v:a,a:i}}function oF(e){let{r:t,g:n,b:r,a:i}=e;return i===void 0?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${i})`}function lF(e){return oF(Ea(e))}function Xm(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function uF(e){let{r:t,g:n,b:r,a:i}=e;return`#${[Xm(t),Xm(n),Xm(r),i!==void 0?Xm(Math.round(i*255)):""].join("")}`}function cF(e){e=iQ(e);let[t,n,r,i]=RJ(e,2).map(a=>parseInt(a,16));return i=i===void 0?i:i/255,{r:t,g:n,b:r,a:i}}function rQ(e){const t=cF(e);return rm(t)}function dF(e){return uF(Ea(e))}function iQ(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=eI(eI(e,6),8,"F")),e}function sQ(e,t){const n=iF(nx(e));return n[0]=n[0]+t*10,aF(sF(n))}function aQ(e,t){const n=iF(nx(e));return n[0]=n[0]-t*10,aF(sF(n))}function gS(e){const t=ls(e);return nx(t)[1]}function oQ(e,t){const n=gS(e),r=gS(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function fF(e){const t=Math.abs(mI(ls(0),ls(e)));return Math.abs(mI(ls(16777215),ls(e)))>Math.min(t,50)?"#fff":"#000"}function Ee(e,t){return n=>Object.keys(e).reduce((r,i)=>{const s=typeof e[i]=="object"&&e[i]!=null&&!Array.isArray(e[i])?e[i]:{type:e[i]};return n&&i in n?r[i]={...s,default:n[i]}:r[i]=s,t&&!r[i].source&&(r[i].source=t),r},{})}const tt=Ee({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function Gn(e,t){const n=Ii();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Ia(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=Gn(e).type;return eu(t?.aliasName||t?.name)}function lQ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const Wc=Symbol.for("vuetify:defaults");function uQ(e){return z(e)}function ix(){const e=mt(Wc);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Er(e,t){const n=ix(),r=z(e),i=D(()=>{if(ne(t?.disabled))return n.value;const s=ne(t?.scoped),o=ne(t?.reset),l=ne(t?.root);if(r.value==null&&!(s||o||l))return n.value;let u=ii(r.value,{prev:n.value});if(s)return u;if(o||l){const c=Number(o||1/0);for(let d=0;d<=c&&!(!u||!("prev"in u));d++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=ii(ii(u,{prev:u}),u[l])),u}return u.prev?ii(u.prev,u):u});return bn(Wc,i),i}function cQ(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[eu(t)]<"u")}function dQ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ix();const r=Gn("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const i=D(()=>n.value?.[e._as??t]),a=new Proxy(e,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[i.value?.[u],c].filter(h=>h!=null);if(cQ(r.vnode,u))return c;const d=i.value?.[u];if(d!==void 0)return d;const p=n.value?.global?.[u];return p!==void 0?p:c}}),s=Fe();lr(()=>{if(i.value){const l=Object.entries(i.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function o(){const l=lQ(Wc,r);bn(Wc,D(()=>s.value?ii(l?.value??{},s.value):l?.value))}return{props:a,provideSubDefaults:o}}function ea(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=Ee(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return Js(r,t)},e.props._as=String,e.setup=function(r,i){const a=ix();if(!a.value)return e._setup(r,i);const{props:s,provideSubDefaults:o}=dQ(r,r._as??e.name,a),l=e._setup(s,i);return o(),l}}return e}function $e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?ea:je)(t)}function fQ(e,t){return t.props=e,t}function Nu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return $e()({name:n??Ji(kn(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...tt()},setup(r,i){let{slots:a}=i;return()=>Ds(r.tag,{class:[e,r.class],style:r.style},a.default?.())}})}function pQ(e,t,n,r){if(!n||tl(e)||tl(t))return;const i=n.get(e);if(i)i.set(t,r);else{const a=new WeakMap;a.set(t,r),n.set(e,a)}}function mQ(e,t,n){if(!n||tl(e)||tl(t))return null;const r=n.get(e)?.get(t);if(typeof r=="boolean")return r;const i=n.get(t)?.get(e);return typeof i=="boolean"?i:null}function Ir(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new WeakMap;if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;const i=mQ(e,t,n);return i||(pQ(e,t,n,!0),r.every(a=>Ir(e[a],t[a],n)))}function pF(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const tp="cubic-bezier(0.4, 0, 0.2, 1)",vI="cubic-bezier(0.0, 0, 0.2, 1)",yI="cubic-bezier(0.4, 0, 1, 1)",hQ={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1};function bI(e,t,n){return Object.keys(e).filter(r=>ZE(r)&&r.endsWith(t)).reduce((r,i)=>(r[i.slice(0,-t.length)]=a=>nm(e[i],a,n(a)),r),{})}function sx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?gQ(e):ax(e))return e;e=e.parentElement}return document.scrollingElement}function Ag(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(ax(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function ax(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e),n=t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight,r=t.overflowX==="scroll"||t.overflowX==="auto"&&e.scrollWidth>e.clientWidth;return n||r}function gQ(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function vQ(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function Ue(e){const t=Gn("useRender");t.render=e}function yQ(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},r=0,i=0,a=!1,s=0;function o(){clearTimeout(r),a=!1,s=0}const l=function(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];clearTimeout(r);const p=Date.now();s||(s=p);const h=p-Math.max(s,i);function g(){i=Date.now(),r=setTimeout(o,t),e(...c)}a?h>=t?g():n.trailing&&(r=setTimeout(g,t-h)):(a=!0,n.leading&&g())};return l.clear=o,l.immediate=e,l}const Ls=Ee({border:[Boolean,Number,String]},"border");function ta(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia();return{borderClasses:D(()=>{const r=e.border;return r===!0||r===""?`${t}--border`:typeof r=="string"||r===0?String(r).split(" ").map(i=>`border-${i}`):[]})}}const bQ=[null,"default","comfortable","compact"],Ar=Ee({density:{type:String,default:"default",validator:e=>bQ.includes(e)}},"density");function ps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia();return{densityClasses:ae(()=>`${t}--density-${e.density}`)}}const Pi=Ee({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function es(e){return{elevationClasses:ae(()=>{const n=Tt(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const gr=Ee({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function kr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia();return{roundedClasses:D(()=>{const r=Tt(e)?e.value:e.rounded,i=Tt(e)?!1:e.tile,a=[];if(i||r===!1)a.push("rounded-0");else if(r===!0||r==="")a.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const s of String(r).split(" "))a.push(`rounded-${s}`);return a})}}const Jt=Ee({tag:{type:[String,Object,Function],default:"div"}},"tag"),np=Symbol.for("vuetify:theme"),wn=Ee({theme:String},"theme");function SI(){return{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0}}function SQ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SI();const t=SI();if(!e)return{...t,isDisabled:!0};const n={};for(const[r,i]of Object.entries(e.themes??{})){const a=i.dark||r==="dark"?t.themes?.dark:t.themes?.light;n[r]=ii(a,i)}return ii(t,{...e,themes:n})}function Sl(e,t,n,r){e.push(`${kQ(t,r)} {
41
+ `,...n.map(i=>` ${i};
42
+ `),`}
43
+ `)}function wI(e,t){const n=e.dark?2:1,r=e.dark?1:2,i=[];for(const[a,s]of Object.entries(e.colors)){const o=ls(s);i.push(`--${t}theme-${a}: ${o.r},${o.g},${o.b}`),a.startsWith("on-")||i.push(`--${t}theme-${a}-overlay-multiplier: ${gS(s)>.18?n:r}`)}for(const[a,s]of Object.entries(e.variables)){const o=typeof s=="string"&&s.startsWith("#")?ls(s):void 0,l=o?`${o.r}, ${o.g}, ${o.b}`:void 0;i.push(`--${t}${a}: ${l??s}`)}return i}function wQ(e,t,n){const r={};if(n)for(const i of["lighten","darken"]){const a=i==="lighten"?sQ:aQ;for(const s of Nl(n[i],1))r[`${e}-${i}-${s}`]=uF(a(ls(t),s))}return r}function EQ(e,t){if(!t)return{};let n={};for(const r of t.colors){const i=e[r];i&&(n={...n,...wQ(r,i,t)})}return n}function xQ(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const r=`on-${n}`,i=ls(e[n]);t[r]=fF(i)}return t}function kQ(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function CQ(e,t,n){const r=_Q(e,t);r&&(r.innerHTML=n)}function _Q(e,t){if(!un)return null;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n)),n}function TQ(e){const t=SQ(e),n=Fe(t.defaultTheme),r=z(t.themes),i=Fe("light"),a=D({get(){return n.value==="system"?i.value:n.value},set(E){n.value=E}}),s=D(()=>{const E={};for(const[w,C]of Object.entries(r.value)){const P={...C.colors,...EQ(C.colors,t.variations)};E[w]={...C,colors:{...P,...xQ(P)}}}return E}),o=ae(()=>s.value[a.value]),l=ae(()=>n.value==="system"),u=D(()=>{const E=[],w=t.unimportant?"":" !important",C=t.scoped?t.prefix:"";o.value?.dark&&Sl(E,":root",["color-scheme: dark"],t.scope),Sl(E,":root",wI(o.value,t.prefix),t.scope);for(const[_,A]of Object.entries(s.value))Sl(E,`.${t.prefix}theme--${_}`,[`color-scheme: ${A.dark?"dark":"normal"}`,...wI(A,t.prefix)],t.scope);if(t.utilities){const _=[],A=[],I=new Set(Object.values(s.value).flatMap(T=>Object.keys(T.colors)));for(const T of I)T.startsWith("on-")?Sl(A,`.${T}`,[`color: rgb(var(--${t.prefix}theme-${T}))${w}`],t.scope):(Sl(_,`.${C}bg-${T}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${T}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${T}))${w}`,`color: rgb(var(--${t.prefix}theme-on-${T}))${w}`],t.scope),Sl(A,`.${C}text-${T}`,[`color: rgb(var(--${t.prefix}theme-${T}))${w}`],t.scope),Sl(A,`.${C}border-${T}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${T})`],t.scope));t.layers?E.push(`@layer background {
44
+ `,..._.map(T=>` ${T}`),`}
45
+ `,`@layer foreground {
46
+ `,...A.map(T=>` ${T}`),`}
47
+ `):E.push(..._,...A)}let P=E.map((_,A)=>A===0?_:` ${_}`).join("");return t.layers&&(P=`@layer vuetify.theme {
48
+ `+E.map(_=>` ${_}`).join("")+`
49
+ }`),P}),c=ae(()=>t.isDisabled?void 0:`${t.prefix}theme--${a.value}`),d=ae(()=>Object.keys(s.value));if(JE){let w=function(){i.value=E.matches?"dark":"light"};var b=w;const E=window.matchMedia("(prefers-color-scheme: dark)");w(),E.addEventListener("change",w,{passive:!0}),dd()&&An(()=>{E.removeEventListener("change",w)})}function p(E){if(t.isDisabled)return;const w=E._context.provides.usehead;if(w){let _=function(){return{style:[{textContent:u.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};var C=_;if(w.push){const A=w.push(_);un&&Ne(u,()=>{A.patch(_)})}else un?(w.addHeadObjs(ae(_)),lr(()=>w.updateDOM())):w.addHeadObjs(_())}else{let _=function(){CQ(t.stylesheetId,t.cspNonce,u.value)};var P=_;un?Ne(u,_,{immediate:!0}):_()}}function h(E){E!=="system"&&!d.value.includes(E)||(a.value=E)}function g(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.value;const w=E.indexOf(a.value),C=w===-1?0:(w+1)%E.length;h(E[C])}function v(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["light","dark"];g(E)}const y=new Proxy(a,{get(E,w){return Reflect.get(E,w)},set(E,w,C){return w==="value"&&GL(`theme.global.name.value = ${C}`,`theme.change('${C}')`),Reflect.set(E,w,C)}});return{install:p,change:h,cycle:g,toggle:v,isDisabled:t.isDisabled,isSystem:l,name:a,themes:r,current:o,computedThemes:s,prefix:t.prefix,themeClasses:c,styles:u,global:{name:y,current:o}}}function On(e){Gn("provideTheme");const t=mt(np,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=ae(()=>e.theme??t.name.value),r=ae(()=>t.themes.value[n.value]),i=ae(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`),a={...t,name:n,current:r,themeClasses:i};return bn(np,a),a}function ox(){Gn("useTheme");const e=mt(np,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function lx(e){return ex(()=>{const{class:t,style:n}=IQ(e);return{colorClasses:t,colorStyles:n}})}function Ci(e){const{colorClasses:t,colorStyles:n}=lx(()=>({text:yn(e)}));return{textColorClasses:t,textColorStyles:n}}function Un(e){const{colorClasses:t,colorStyles:n}=lx(()=>({background:yn(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function IQ(e){const t=yn(e),n=[],r={};if(t.background)if(mS(t.background)){if(r.backgroundColor=t.background,!t.text&&tQ(t.background)){const i=ls(t.background);if(i.a==null||i.a===1){const a=fF(i);r.color=a,r.caretColor=a}}}else n.push(`bg-${t.background}`);return t.text&&(mS(t.text)?(r.color=t.text,r.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:r}}const PQ=["elevated","flat","tonal","outlined","text","plain"];function fl(e,t){return S(De,null,[e&&S("span",{key:"overlay",class:Oe(`${t}__overlay`)},null),S("span",{key:"underlay",class:Oe(`${t}__underlay`)},null)])}const na=Ee({color:String,variant:{type:String,default:"elevated",validator:e=>PQ.includes(e)}},"variant");function Du(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia();const n=ae(()=>{const{variant:a}=yn(e);return`${t}--variant-${a}`}),{colorClasses:r,colorStyles:i}=lx(()=>{const{variant:a,color:s}=yn(e);return{[["elevated","flat"].includes(a)?"background":"text"]:s}});return{colorClasses:r,colorStyles:i,variantClasses:n}}const mF=Ee({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...Ls(),...tt(),...Ar(),...Pi(),...gr(),...Jt(),...wn(),...na()},"VBtnGroup"),vS=$e()({name:"VBtnGroup",props:mF(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=On(e),{densityClasses:i}=ps(e),{borderClasses:a}=ta(e),{elevationClasses:s}=es(e),{roundedClasses:o}=kr(e);Er({VBtn:{height:ae(()=>e.direction==="horizontal"?"auto":null),baseColor:ae(()=>e.baseColor),color:ae(()=>e.color),density:ae(()=>e.density),flat:!0,variant:ae(()=>e.variant)}}),Ue(()=>f(e.tag,{class:Oe(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},r.value,a.value,i.value,s.value,o.value,e.class]),style:We(e.style)},n))}});function Gi(e,t){let n;function r(){n=Xo(),n.run(()=>t.length?t(()=>{n?.stop(),r()}):t())}Ne(e,i=>{i&&!n?r():i||(n?.stop(),n=void 0)},{immediate:!0}),An(()=>{n?.stop()})}function gt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const a=Gn("useProxiedModel"),s=z(e[t]!==void 0?e[t]:n),o=eu(t),u=D(o!==t?()=>(e[t],!!((a.vnode.props?.hasOwnProperty(t)||a.vnode.props?.hasOwnProperty(o))&&(a.vnode.props?.hasOwnProperty(`onUpdate:${t}`)||a.vnode.props?.hasOwnProperty(`onUpdate:${o}`)))):()=>(e[t],!!(a.vnode.props?.hasOwnProperty(t)&&a.vnode.props?.hasOwnProperty(`onUpdate:${t}`))));Gi(()=>!u.value,()=>{Ne(()=>e[t],d=>{s.value=d})});const c=D({get(){const d=e[t];return r(u.value?d:s.value)},set(d){const p=i(d),h=it(u.value?e[t]:s.value);h===p||r(h)===d||(s.value=p,a?.emit(`update:${t}`,p))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:s.value}),c}const im=Ee({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),sm=Ee({value:null,disabled:Boolean,selectedClass:String},"group-item");function Gc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=Gn("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=Ti();bn(Symbol.for(`${t.description}:id`),i);const a=mt(t,null);if(!a){if(!n)return a;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const s=ae(()=>e.value),o=D(()=>!!(a.disabled.value||e.disabled));function l(){a?.register({id:i,value:s,disabled:o},r)}function u(){a?.unregister(i)}l(),xr(()=>u());const c=D(()=>a.isSelected(i)),d=D(()=>a.items.value[0].id===i),p=D(()=>a.items.value[a.items.value.length-1].id===i),h=D(()=>c.value&&[a.selectedClass.value,e.selectedClass]);return Ne(c,g=>{r.emit("group:selected",{value:g})},{flush:"sync"}),{id:i,isSelected:c,isFirst:d,isLast:p,toggle:()=>a.select(i,!c.value),select:g=>a.select(i,g),selectedClass:h,value:s,disabled:o,group:a,register:l,unregister:u}}function kd(e,t){let n=!1;const r=Dn([]),i=gt(e,"modelValue",[],p=>p===void 0?[]:hF(r,p===null?[null]:tr(p)),p=>{const h=RQ(r,p);return e.multiple?h:h[0]}),a=Gn("useGroup");function s(p,h){const g=p,v=Symbol.for(`${t.description}:id`),b=gc(v,a?.vnode).indexOf(h);ne(g.value)===void 0&&(g.value=b,g.useIndexAsValue=!0),b>-1?r.splice(b,0,g):r.push(g)}function o(p){if(n)return;l();const h=r.findIndex(g=>g.id===p);r.splice(h,1)}function l(){const p=r.find(h=>!h.disabled);p&&e.mandatory==="force"&&!i.value.length&&(i.value=[p.id])}Nt(()=>{l()}),xr(()=>{n=!0}),$p(()=>{for(let p=0;p<r.length;p++)r[p].useIndexAsValue&&(r[p].value=p)});function u(p,h){const g=r.find(v=>v.id===p);if(!(h&&g?.disabled))if(e.multiple){const v=i.value.slice(),y=v.findIndex(E=>E===p),b=~y;if(h=h??!b,b&&e.mandatory&&v.length<=1||!b&&e.max!=null&&v.length+1>e.max)return;y<0&&h?v.push(p):y>=0&&!h&&v.splice(y,1),i.value=v}else{const v=i.value.includes(p);if(e.mandatory&&v||!v&&!h)return;i.value=h??!v?[p]:[]}}function c(p){if(e.multiple,i.value.length){const h=i.value[0],g=r.findIndex(b=>b.id===h);let v=(g+p)%r.length,y=r[v];for(;y.disabled&&v!==g;)v=(v+p)%r.length,y=r[v];if(y.disabled)return;i.value=[r[v].id]}else{const h=r.find(g=>!g.disabled);h&&(i.value=[h.id])}}const d={register:s,unregister:o,selected:i,select:u,disabled:ae(()=>e.disabled),prev:()=>c(r.length-1),next:()=>c(1),isSelected:p=>i.value.includes(p),selectedClass:ae(()=>e.selectedClass),items:ae(()=>r),getItemIndex:p=>AQ(r,p)};return bn(t,d),d}function AQ(e,t){const n=hF(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function hF(e,t){const n=[];return t.forEach(r=>{const i=e.find(s=>Ir(r,s.value)),a=e[r];i?.value!==void 0?n.push(i.id):a?.useIndexAsValue&&n.push(a.id)}),n}function RQ(e,t){const n=[];return t.forEach(r=>{const i=e.findIndex(a=>a.id===r);if(~i){const a=e[i];n.push(a.value!==void 0?a.value:i)}}),n}const gF=Symbol.for("vuetify:v-btn-toggle"),OQ=Ee({...mF(),...im()},"VBtnToggle"),Rg=$e()({name:"VBtnToggle",props:OQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:i,prev:a,select:s,selected:o}=kd(e,gF);return Ue(()=>{const l=vS.filterProps(e);return f(vS,ve({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>[n.default?.({isSelected:r,next:i,prev:a,select:s,selected:o})]})}),{next:i,prev:a,select:s}}}),NQ=Ee({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),nn=$e(!1)({name:"VDefaultsProvider",props:NQ(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:i,reset:a,root:s,scoped:o}=_a(e);return Er(r,{reset:a,root:s,scoped:o,disabled:i}),()=>n.default?.()}}),rt=[String,Function,Object,Array],yS=Symbol.for("vuetify:icons"),Xv=Ee({icon:{type:rt},tag:{type:[String,Object,Function],required:!0}},"icon"),EI=$e()({name:"VComponentIcon",props:Xv(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return f(e.tag,null,{default:()=>[e.icon?f(r,null,null):n.default?.()]})}}}),vF=ea({name:"VSvgIcon",inheritAttrs:!1,props:Xv(),setup(e,t){let{attrs:n}=t;return()=>f(e.tag,ve(n,{style:null}),{default:()=>[S("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?S("path",{d:r[0],"fill-opacity":r[1]},null):S("path",{d:r},null)):S("path",{d:e.icon},null)])]})}}),DQ=ea({name:"VLigatureIcon",props:Xv(),setup(e){return()=>f(e.tag,null,{default:()=>[e.icon]})}}),yF=ea({name:"VClassIcon",props:Xv(),setup(e){return()=>f(e.tag,{class:Oe(e.icon)},null)}}),LQ=e=>{const t=mt(yS);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:D(()=>{const r=yn(e);if(!r)return{component:EI};let i=r;if(typeof i=="string"&&(i=i.trim(),i.startsWith("$")&&(i=t.aliases?.[i.slice(1)])),Array.isArray(i))return{component:vF,icon:i};if(typeof i!="string")return{component:EI,icon:i};const a=Object.keys(t.sets).find(l=>typeof i=="string"&&i.startsWith(`${l}:`)),s=a?i.slice(a.length+1):i;return{component:t.sets[a??t.defaultSet].component,icon:s}})}},FQ=["x-small","small","default","large","x-large"],Cd=Ee({size:{type:[String,Number],default:"default"}},"size");function am(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia();return ex(()=>{const n=e.size;let r,i;return Ig(FQ,n)?r=`${t}--size-${n}`:n&&(i={width:ze(n),height:ze(n)}),{sizeClasses:r,sizeStyles:i}})}const $Q=Ee({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:rt,opacity:[String,Number],...tt(),...Cd(),...Jt({tag:"i"}),...wn()},"VIcon"),j=$e()({name:"VIcon",props:$Q(),setup(e,t){let{attrs:n,slots:r}=t;const i=Fe(),{themeClasses:a}=ox(),{iconData:s}=LQ(()=>i.value||e.icon),{sizeClasses:o}=am(e),{textColorClasses:l,textColorStyles:u}=Ci(()=>e.color);return Ue(()=>{const c=r.default?.();c&&(i.value=JL(c).filter(p=>p.type===qa&&p.children&&typeof p.children=="string")[0]?.children);const d=!!(n.onClick||n.onClickOnce);return f(s.value.component,{tag:e.tag,icon:s.value.icon,class:Oe(["v-icon","notranslate",a.value,o.value,l.value,{"v-icon--clickable":d,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:We([{"--v-icon-opacity":e.opacity},o.value?void 0:{fontSize:ze(e.size),height:ze(e.size),width:ze(e.size)},u.value,e.style]),role:d?"button":void 0,"aria-hidden":!d,tabindex:d?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function bF(e,t){const n=z(),r=Fe(!1);if(XE){const i=new IntersectionObserver(a=>{r.value=!!a.find(s=>s.isIntersecting)},t);An(()=>{i.disconnect()}),Ne(n,(a,s)=>{s&&(i.unobserve(s),r.value=!1),a&&i.observe(a)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}function go(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=dS(),r=z();if(un){const i=new ResizeObserver(a=>{e?.(a,i),a.length&&(t==="content"?r.value=a[0].contentRect:r.value=a[0].target.getBoundingClientRect())});xr(()=>{i.disconnect()}),Ne(()=>n.el,(a,s)=>{s&&(i.unobserve(s),r.value=void 0),a&&i.observe(a)},{flush:"post"})}return{resizeRef:n,contentRect:ya(r)}}const MQ=Ee({bgColor:String,color:String,indeterminate:[Boolean,String],rounded:Boolean,modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...tt(),...Cd(),...Jt({tag:"div"}),...wn()},"VProgressCircular"),Bn=$e()({name:"VProgressCircular",props:MQ(),setup(e,t){let{slots:n}=t;const r=20,i=2*Math.PI*r,a=z(),{themeClasses:s}=On(e),{sizeClasses:o,sizeStyles:l}=am(e),{textColorClasses:u,textColorStyles:c}=Ci(()=>e.color),{textColorClasses:d,textColorStyles:p}=Ci(()=>e.bgColor),{intersectionRef:h,isIntersecting:g}=bF(),{resizeRef:v,contentRect:y}=go(),b=ae(()=>Ln(parseFloat(e.modelValue),0,100)),E=ae(()=>Number(e.width)),w=ae(()=>l.value?Number(e.size):y.value?y.value.width:Math.max(E.value,32)),C=ae(()=>r/(1-E.value/w.value)*2),P=ae(()=>E.value/w.value*C.value),_=ae(()=>{const I=(100-b.value)/100*i;return e.rounded&&b.value>0&&b.value<100?ze(Math.min(i-.01,I+P.value)):ze(I)}),A=D(()=>{const I=Number(e.rotate);return e.rounded?I+P.value/2/i*360:I});return lr(()=>{h.value=a.value,v.value=a.value}),Ue(()=>f(e.tag,{ref:a,class:Oe(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":g.value,"v-progress-circular--disable-shrink":e.indeterminate&&(e.indeterminate==="disable-shrink"||yu())},s.value,o.value,u.value,e.class]),style:We([l.value,c.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:b.value},{default:()=>[S("svg",{style:{transform:`rotate(calc(-90deg + ${A.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${C.value} ${C.value}`},[S("circle",{class:Oe(["v-progress-circular__underlay",d.value]),style:We(p.value),fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":P.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),S("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":P.value,"stroke-dasharray":i,"stroke-dashoffset":_.value,"stroke-linecap":e.rounded?"round":void 0},null)]),n.default&&S("div",{class:"v-progress-circular__content"},[n.default({value:b.value})])]})),{}}}),Hr=Ee({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Wr(e){return{dimensionStyles:D(()=>{const n={},r=ze(e.height),i=ze(e.maxHeight),a=ze(e.maxWidth),s=ze(e.minHeight),o=ze(e.minWidth),l=ze(e.width);return r!=null&&(n.height=r),i!=null&&(n.maxHeight=i),a!=null&&(n.maxWidth=a),s!=null&&(n.minHeight=s),o!=null&&(n.minWidth=o),l!=null&&(n.width=l),n})}}const VQ={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",previousYear:"Previous year",nextYear:"Next year",selectMonth:"Select month",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time",hour:"Hour",minute:"Minute",second:"Second"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}",or:"or"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},xI="$vuetify.",kI=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[Number(r)])),SF=(e,t,n)=>function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];if(!r.startsWith(xI))return kI(r,a);const o=r.replace(xI,""),l=e.value&&n.value[e.value],u=t.value&&n.value[t.value];let c=bu(l,o,null);return c||(`${r}${e.value}`,c=bu(u,o,null)),c||(c=r),typeof c!="string"&&(c=r),kI(c,a)};function ux(e,t){return(n,r)=>new Intl.NumberFormat([e.value,t.value],r).format(n)}function wF(e,t){return ux(e,t)(.1).includes(",")?",":"."}function Nb(e,t,n){const r=gt(e,t,e[t]??n.value);return r.value=e[t]??n.value,Ne(n,i=>{e[t]==null&&(r.value=n.value)}),r}function EF(e){return t=>{const n=Nb(t,"locale",e.current),r=Nb(t,"fallback",e.fallback),i=Nb(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:i,decimalSeparator:ae(()=>wF(n,r)),t:SF(n,r,i),n:ux(n,r),provide:EF({current:n,fallback:r,messages:i})}}}function BQ(e){const t=Fe(e?.locale??"en"),n=Fe(e?.fallback??"en"),r=z({en:VQ,...e?.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:ae(()=>e?.decimalSeparator??wF(t,n)),t:SF(t,n,r),n:ux(t,n),provide:EF({current:t,fallback:n,messages:r})}}const Og=Symbol.for("vuetify:locale");function UQ(e){return e.name!=null}function jQ(e){const t=e?.adapter&&UQ(e?.adapter)?e?.adapter:BQ(e),n=HQ(t,e);return{...t,...n}}function Rr(){const e=mt(Og);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function zQ(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function HQ(e,t){const n=z(t?.rtl??zQ()),r=D(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:ae(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Or(){const e=mt(Og);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const CI={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},pl=Ee({location:String},"location");function Lu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Or();return{locationStyles:D(()=>{if(!e.location)return{};const{side:a,align:s}=fS(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function o(u){return n?n(u):0}const l={};return a!=="center"&&(t?l[CI[a]]=`calc(100% - ${o(a)}px)`:l[a]=0),s!=="center"?t?l[CI[s]]=`calc(100% - ${o(s)}px)`:l[s]=0:(a==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[a]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[a]),l})}}const WQ=Ee({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function GQ(e,t){const n=ae(()=>!!e.chunkCount||!!e.chunkWidth),r=D(()=>{const o=yn(t);if(!o)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const l=Number(e.chunkCount);return(o-Number(e.chunkGap)*(l-1))/l}),i=ae(()=>Number(e.chunkGap)),a=D(()=>{if(!n.value)return{};const o=ze(i.value),l=ze(r.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${l}, transparent ${l}, transparent)`,maskSize:`calc(${l} + ${o}) 100%`}});function s(o){const l=yn(t);if(!l)return o;const u=100*i.value/l,c=100*(r.value+i.value)/l,d=Math.floor((o+u)/c);return Ln(0,d*c-u/2,100)}return{hasChunks:n,chunksMaskStyles:a,snapValueToChunk:s}}const qQ=Ee({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...WQ(),...tt(),...pl({location:"top"}),...gr(),...Jt(),...wn()},"VProgressLinear"),si=$e()({name:"VProgressLinear",props:qQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=z(),i=gt(e,"modelValue"),{isRtl:a,rtlClasses:s}=Or(),{themeClasses:o}=On(e),{locationStyles:l}=Lu(e),{textColorClasses:u,textColorStyles:c}=Ci(()=>e.color),{backgroundColorClasses:d,backgroundColorStyles:p}=Un(()=>e.bgColor||e.color),{backgroundColorClasses:h,backgroundColorStyles:g}=Un(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:v,backgroundColorStyles:y}=Un(()=>e.color),{roundedClasses:b}=kr(e),{intersectionRef:E,isIntersecting:w}=bF(),C=D(()=>parseFloat(e.max)),P=D(()=>parseFloat(e.height)),_=D(()=>Ln(parseFloat(e.bufferValue)/C.value*100,0,100)),A=D(()=>Ln(parseFloat(i.value)/C.value*100,0,100)),I=D(()=>a.value!==e.reverse),T=D(()=>e.indeterminate?"fade-transition":"slide-x-transition"),x=Fe(0),{hasChunks:R,chunksMaskStyles:O,snapValueToChunk:L}=GQ(e,x);Gi(R,()=>{const{resizeRef:B}=go($=>x.value=$[0].contentRect.width);lr(()=>B.value=r.value)});const F=D(()=>R.value?L(_.value):_.value),W=D(()=>R.value?L(A.value):A.value);function H(B){if(!E.value)return;const{left:$,right:Y,width:q}=E.value.getBoundingClientRect(),U=I.value?q-B.clientX+(Y-q):B.clientX-$;i.value=Math.round(U/q*C.value)}return lr(()=>{E.value=r.value}),Ue(()=>f(e.tag,{ref:r,class:Oe(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&w.value,"v-progress-linear--reverse":I.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},b.value,o.value,s.value,e.class]),style:We([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?ze(P.value):0,"--v-progress-linear-height":ze(P.value),...e.absolute?l.value:{}},O.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(i.value),C.value),onClick:e.clickable&&H},{default:()=>[e.stream&&S("div",{key:"stream",class:Oe(["v-progress-linear__stream",u.value]),style:{...c.value,[I.value?"left":"right"]:ze(-P.value),borderTop:`${ze(P.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${ze(P.value/4)})`,width:ze(100-_.value,"%"),"--v-progress-linear-stream-to":ze(P.value*(I.value?1:-1))}},null),S("div",{class:Oe(["v-progress-linear__background",d.value]),style:We([p.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),S("div",{class:Oe(["v-progress-linear__buffer",h.value]),style:We([g.value,{opacity:parseFloat(e.bufferOpacity),width:ze(F.value,"%")}])},null),f(lo,{name:T.value},{default:()=>[e.indeterminate?S("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(B=>S("div",{key:B,class:Oe(["v-progress-linear__indeterminate",B,v.value]),style:We(y.value)},null))]):S("div",{class:Oe(["v-progress-linear__determinate",v.value]),style:We([y.value,{width:ze(W.value,"%")}])},null)]}),n.default&&S("div",{class:"v-progress-linear__content"},[n.default({value:A.value,buffer:_.value})])]})),{}}}),Jv=Ee({loading:[Boolean,String]},"loader");function om(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia();return{loaderClasses:ae(()=>({[`${t}--loading`]:e.loading}))}}function Qv(e,t){let{slots:n}=t;return S("div",{class:Oe(`${e.name}__loader`)},[n.default?.({color:e.color,isActive:e.active})||f(si,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const KQ=["static","relative","fixed","absolute","sticky"],_d=Ee({position:{type:String,validator:e=>KQ.includes(e)}},"position");function Td(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia();return{positionClasses:ae(()=>e.position?`${t}--${e.position}`:void 0)}}function YQ(){const e=Gn("useRoute");return D(()=>e?.proxy?.$route)}function xF(){return Gn("useRouter")?.proxy?.$router}function Zv(e,t){const n=D2("RouterLink"),r=ae(()=>!!(e.href||e.to)),i=D(()=>r?.value||rI(t,"click")||rI(e,"click"));if(typeof n=="string"||!("useLink"in n)){const d=ae(()=>e.href);return{isLink:r,isRouterLink:ae(()=>!1),isClickable:i,href:d,linkProps:Dn({href:d})}}const a=n.useLink({to:ae(()=>e.to||""),replace:ae(()=>e.replace)}),s=D(()=>e.to?a:void 0),o=YQ(),l=D(()=>s.value?e.exact?o.value?s.value.isExactActive?.value&&Ir(s.value.route.value.query,o.value.query):s.value.isExactActive?.value??!1:s.value.isActive?.value??!1:!1),u=D(()=>e.to?s.value?.route.value.href:e.href),c=ae(()=>!!e.to);return{isLink:r,isRouterLink:c,isClickable:i,isActive:l,route:s.value?.route,navigate:s.value?.navigate,href:u,linkProps:Dn({href:u,"aria-current":ae(()=>l.value?"page":void 0),"aria-disabled":ae(()=>e.disabled&&r.value?"true":void 0),tabindex:ae(()=>e.disabled&&r.value?"-1":void 0)})}}const ey=Ee({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Db=!1;function XQ(e,t){let n=!1,r,i;un&&e?.beforeEach&&(Ct(()=>{window.addEventListener("popstate",a),r=e.beforeEach((s,o,l)=>{Db?n?t(l):l():setTimeout(()=>n?t(l):l()),Db=!0}),i=e?.afterEach(()=>{Db=!1})}),An(()=>{window.removeEventListener("popstate",a),r?.(),i?.()}));function a(s){s.state?.replaced||(n=!0,setTimeout(()=>n=!1))}}function JQ(e,t){Ne(()=>e.isActive?.value,n=>{e.isLink.value&&n!=null&&t&&Ct(()=>{t(n)})},{immediate:!0})}const bS=Symbol("rippleStop"),QQ=80;function _I(e,t){e.style.transform=t,e.style.webkitTransform=t}function SS(e){return e.constructor.name==="TouchEvent"}function kF(e){return e.constructor.name==="KeyboardEvent"}const ZQ=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,i=0;if(!kF(e)){const d=t.getBoundingClientRect(),p=SS(e)?e.touches[e.touches.length-1]:e;r=p.clientX-d.left,i=p.clientY-d.top}let a=0,s=.3;t._ripple?.circle?(s=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((r-a)**2+(i-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const o=`${(t.clientWidth-a*2)/2}px`,l=`${(t.clientHeight-a*2)/2}px`,u=n.center?o:`${r-a}px`,c=n.center?l:`${i-a}px`;return{radius:a,scale:s,x:u,y:c,centerX:o,centerY:l}},Ng={show(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t?._ripple?.enabled)return;const r=document.createElement("span"),i=document.createElement("span");r.appendChild(i),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:a,scale:s,x:o,y:l,centerX:u,centerY:c}=ZQ(e,t,n),d=`${a*2}px`;i.className="v-ripple__animation",i.style.width=d,i.style.height=d,t.appendChild(r);const p=window.getComputedStyle(t);p&&p.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),_I(i,`translate(${o}, ${l}) scale3d(${s},${s},${s})`),i.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),_I(i,`translate(${u}, ${c}) scale3d(1,1,1)`)})})},hide(e){if(!e?._ripple?.enabled)return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=Array.from(t).findLast(a=>!a.dataset.isHiding);if(n)n.dataset.isHiding="true";else return;const r=performance.now()-Number(n.dataset.activated),i=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)},300)},i)}};function CF(e){return typeof e>"u"||!!e}function rp(e){const t={},n=e.currentTarget;if(!(!n?._ripple||n._ripple.touched||e[bS])){if(e[bS]=!0,SS(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||kF(e),n._ripple.class&&(t.class=n._ripple.class),SS(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Ng.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n?._ripple?.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},QQ)}else Ng.show(e,n,t)}}function Dg(e){e[bS]=!0}function os(e){const t=e.currentTarget;if(t?._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{os(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Ng.hide(t)}}function _F(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let ip=!1;function eZ(e,t){!ip&&t.includes(e.key)&&(ip=!0,rp(e))}function TF(e){ip=!1,os(e)}function IF(e){ip&&(ip=!1,os(e))}function PF(e,t,n){const{value:r,modifiers:i}=t,a=CF(r);a||Ng.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=i.center,e._ripple.circle=i.circle;const s=ep(r)?r:{};s.class&&(e._ripple.class=s.class);const o=s.keys??["Enter","Space"];if(e._ripple.keyDownHandler=l=>eZ(l,o),a&&!n){if(i.stop){e.addEventListener("touchstart",Dg,{passive:!0}),e.addEventListener("mousedown",Dg);return}e.addEventListener("touchstart",rp,{passive:!0}),e.addEventListener("touchend",os,{passive:!0}),e.addEventListener("touchmove",_F,{passive:!0}),e.addEventListener("touchcancel",os),e.addEventListener("mousedown",rp),e.addEventListener("mouseup",os),e.addEventListener("mouseleave",os),e.addEventListener("keydown",e._ripple.keyDownHandler),e.addEventListener("keyup",TF),e.addEventListener("blur",IF),e.addEventListener("dragstart",os,{passive:!0})}else!a&&n&&AF(e)}function AF(e){e.removeEventListener("touchstart",Dg),e.removeEventListener("mousedown",Dg),e.removeEventListener("touchstart",rp),e.removeEventListener("touchend",os),e.removeEventListener("touchmove",_F),e.removeEventListener("touchcancel",os),e.removeEventListener("mousedown",rp),e.removeEventListener("mouseup",os),e.removeEventListener("mouseleave",os),e._ripple?.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",TF),e.removeEventListener("blur",IF),e.removeEventListener("dragstart",os)}function tZ(e,t){PF(e,t,!1)}function nZ(e){AF(e),delete e._ripple}function rZ(e,t){if(t.value===t.oldValue)return;const n=CF(t.oldValue);PF(e,t,n)}const _i={mounted:tZ,unmounted:nZ,updated:rZ},RF=Ee({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:gF},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:rt,appendIcon:rt,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...Ls(),...tt(),...Ar(),...Hr(),...Pi(),...sm(),...Jv(),...pl(),..._d(),...gr(),...ey(),...Cd(),...Jt({tag:"button"}),...wn(),...na({variant:"elevated"})},"VBtn"),te=$e()({name:"VBtn",props:RF(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:i}=On(e),{borderClasses:a}=ta(e),{densityClasses:s}=ps(e),{dimensionStyles:o}=Wr(e),{elevationClasses:l}=es(e),{loaderClasses:u}=om(e),{locationStyles:c}=Lu(e),{positionClasses:d}=Td(e),{roundedClasses:p}=kr(e),{sizeClasses:h,sizeStyles:g}=am(e),v=Gc(e,e.symbol,!1),y=Zv(e,n),b=D(()=>e.active!==void 0?e.active:y.isRouterLink.value?y.isActive?.value:v?.isSelected.value),E=ae(()=>b.value?e.activeColor??e.color:e.color),w=D(()=>({color:v?.isSelected.value&&(!y.isLink.value||y.isActive?.value)||!v||y.isActive?.value?E.value??e.baseColor:e.baseColor,variant:e.variant})),{colorClasses:C,colorStyles:P,variantClasses:_}=Du(w),A=D(()=>v?.disabled.value||e.disabled),I=ae(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),T=D(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function x(R){A.value||y.isLink.value&&(R.metaKey||R.ctrlKey||R.shiftKey||R.button!==0||n.target==="_blank")||(y.isRouterLink.value?y.navigate?.(R):v?.toggle())}return JQ(y,v?.select),Ue(()=>{const R=y.isLink.value?"a":e.tag,O=!!(e.prependIcon||r.prepend),L=!!(e.appendIcon||r.append),F=!!(e.icon&&e.icon!==!0);return dn(f(R,ve(y.linkProps,{type:R==="a"?void 0:"button",class:["v-btn",v?.selectedClass.value,{"v-btn--active":b.value,"v-btn--block":e.block,"v-btn--disabled":A.value,"v-btn--elevated":I.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},e.spaced?["v-btn--spaced",`v-btn--spaced-${e.spaced}`]:[],i.value,a.value,C.value,s.value,l.value,u.value,d.value,p.value,h.value,_.value,e.class],style:[P.value,o.value,c.value,g.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:A.value&&R!=="a"||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:x,value:T.value}),{default:()=>[fl(!0,"v-btn"),!e.icon&&O&&S("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?f(nn,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):f(j,{key:"prepend-icon",icon:e.prependIcon},null)]),S("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&F?f(j,{key:"content-icon",icon:e.icon},null):f(nn,{key:"content-defaults",disabled:!F,defaults:{VIcon:{icon:e.icon}}},{default:()=>[r.default?.()??V(e.text)]})]),!e.icon&&L&&S("span",{key:"append",class:"v-btn__append"},[r.append?f(nn,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):f(j,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&S("span",{key:"loader",class:"v-btn__loader"},[r.loader?.()??f(Bn,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[_i,!A.value&&e.ripple,"",{center:!!e.icon}]])}),{group:v}}}),iZ=Ee({...tt(),...Jt()},"VCardActions"),Wt=$e()({name:"VCardActions",props:iZ(),setup(e,t){let{slots:n}=t;return Er({VBtn:{slim:!0,variant:"text"}}),Ue(()=>f(e.tag,{class:Oe(["v-card-actions",e.class]),style:We(e.style)},n)),{}}}),sZ=Ee({opacity:[Number,String],...tt(),...Jt()},"VCardSubtitle"),OF=$e()({name:"VCardSubtitle",props:sZ(),setup(e,t){let{slots:n}=t;return Ue(()=>f(e.tag,{class:Oe(["v-card-subtitle",e.class]),style:We([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),st=Nu("v-card-title");function aZ(e){return{aspectStyles:D(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const NF=Ee({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...tt(),...Hr()},"VResponsive"),TI=$e()({name:"VResponsive",props:NF(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=aZ(e),{dimensionStyles:i}=Wr(e);return Ue(()=>S("div",{class:Oe(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:We([i.value,e.style])},[S("div",{class:"v-responsive__sizer",style:We(r.value)},null),n.additional?.(),n.default&&S("div",{class:Oe(["v-responsive__content",e.contentClass])},[n.default()])])),{}}}),Id=Ee({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),pa=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:i,group:a,...s}=e,{component:o=a?Iv:lo,...l}=ep(r)?r:{};let u;return ep(r)?u=ve(l,$J({disabled:i,group:a}),s):u=ve({name:i||!r?"":r},s),Ds(o,u,n)};function oZ(e,t){if(!XE)return;const n=t.modifiers||{},r=t.value,{handler:i,options:a}=typeof r=="object"?r:{handler:r,options:{}},s=new IntersectionObserver(function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=e._observe?.[t.instance.$.uid];if(!u)return;const c=o.some(d=>d.isIntersecting);i&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&i(c,o,l),c&&n.once?DF(e,t):u.init=!0},a);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:s},s.observe(e)}function DF(e,t){const n=e._observe?.[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const qc={mounted:oZ,unmounted:DF},lZ=Ee({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...NF(),...tt(),...gr(),...Id()},"VImg"),ai=$e()({name:"VImg",directives:{vIntersect:qc},props:lZ(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:i,backgroundColorStyles:a}=Un(()=>e.color),{roundedClasses:s}=kr(e),o=Gn("VImg"),l=Fe(""),u=z(),c=Fe(e.eager?"loading":"idle"),d=Fe(),p=Fe(),h=D(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),g=D(()=>h.value.aspect||d.value/p.value||0);Ne(()=>e.src,()=>{v(c.value!=="idle")}),Ne(g,(O,L)=>{!O&&L&&u.value&&C(u.value)}),al(()=>v());function v(O){if(!(e.eager&&O)&&!(XE&&!O&&!e.eager)){if(c.value="loading",h.value.lazySrc){const L=new Image;L.src=h.value.lazySrc,C(L,null)}h.value.src&&Ct(()=>{n("loadstart",u.value?.currentSrc||h.value.src),setTimeout(()=>{if(!o.isUnmounted)if(u.value?.complete){if(u.value.naturalWidth||b(),c.value==="error")return;g.value||C(u.value,null),c.value==="loading"&&y()}else g.value||C(u.value),E()})})}}function y(){o.isUnmounted||(E(),C(u.value),c.value="loaded",n("load",u.value?.currentSrc||h.value.src))}function b(){o.isUnmounted||(c.value="error",n("error",u.value?.currentSrc||h.value.src))}function E(){const O=u.value;O&&(l.value=O.currentSrc||O.src)}let w=-1;xr(()=>{clearTimeout(w)});function C(O){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const F=()=>{if(clearTimeout(w),o.isUnmounted)return;const{naturalHeight:W,naturalWidth:H}=O;W||H?(d.value=H,p.value=W):!O.complete&&c.value==="loading"&&L!=null?w=window.setTimeout(F,L):(O.currentSrc.endsWith(".svg")||O.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,p.value=1)};F()}const P=ae(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),_=()=>{if(!h.value.src||c.value==="idle")return null;const O=S("img",{class:Oe(["v-img__img",P.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.src,srcset:h.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:y,onError:b},null),L=r.sources?.();return f(pa,{transition:e.transition,appear:!0},{default:()=>[dn(L?S("picture",{class:"v-img__picture"},[L,O]):O,[[ci,c.value==="loaded"]])]})},A=()=>f(pa,{transition:e.transition},{default:()=>[h.value.lazySrc&&c.value!=="loaded"&&S("img",{class:Oe(["v-img__img","v-img__img--preload",P.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),I=()=>r.placeholder?f(pa,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!r.error)&&S("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,T=()=>r.error?f(pa,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&S("div",{class:"v-img__error"},[r.error()])]}):null,x=()=>e.gradient?S("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,R=Fe(!1);{const O=Ne(g,L=>{L&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{R.value=!0})}),O())})}return Ue(()=>{const O=TI.filterProps(e);return dn(f(TI,ve({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!R.value},i.value,s.value,e.class],style:[{width:ze(e.width==="auto"?d.value:e.width)},a.value,e.style]},O,{aspectRatio:g.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>S(De,null,[f(_,null,null),f(A,null,null),f(x,null,null),f(I,null,null),f(T,null,null)]),default:r.default}),[[qc,{handler:v,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:d,naturalHeight:p}}}),uZ=Ee({start:Boolean,end:Boolean,icon:rt,image:String,text:String,...Ls(),...tt(),...Ar(),...gr(),...Cd(),...Jt(),...wn(),...na({variant:"flat"})},"VAvatar"),Sn=$e()({name:"VAvatar",props:uZ(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=On(e),{borderClasses:i}=ta(e),{colorClasses:a,colorStyles:s,variantClasses:o}=Du(e),{densityClasses:l}=ps(e),{roundedClasses:u}=kr(e),{sizeClasses:c,sizeStyles:d}=am(e);return Ue(()=>f(e.tag,{class:Oe(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,i.value,a.value,l.value,u.value,c.value,o.value,e.class]),style:We([s.value,d.value,e.style])},{default:()=>[n.default?f(nn,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?f(ai,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?f(j,{key:"icon",icon:e.icon},null):e.text,fl(!1,"v-avatar")]})),{}}}),cZ=Ee({appendAvatar:String,appendIcon:rt,prependAvatar:String,prependIcon:rt,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...tt(),...Ar(),...Jt()},"VCardItem"),dZ=$e()({name:"VCardItem",props:cZ(),setup(e,t){let{slots:n}=t;return Ue(()=>{const r=!!(e.prependAvatar||e.prependIcon),i=!!(r||n.prepend),a=!!(e.appendAvatar||e.appendIcon),s=!!(a||n.append),o=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return f(e.tag,{class:Oe(["v-card-item",e.class]),style:We(e.style)},{default:()=>[i&&S("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?f(nn,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):S(De,null,[e.prependAvatar&&f(Sn,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&f(j,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),S("div",{class:"v-card-item__content"},[o&&f(st,{key:"title"},{default:()=>[n.title?.()??V(e.title)]}),l&&f(OF,{key:"subtitle"},{default:()=>[n.subtitle?.()??V(e.subtitle)]}),n.default?.()]),s&&S("div",{key:"append",class:"v-card-item__append"},[n.append?f(nn,{key:"append-defaults",disabled:!a,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):S(De,null,[e.appendIcon&&f(j,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&f(Sn,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]})}),{}}}),fZ=Ee({opacity:[Number,String],...tt(),...Jt()},"VCardText"),qe=$e()({name:"VCardText",props:fZ(),setup(e,t){let{slots:n}=t;return Ue(()=>f(e.tag,{class:Oe(["v-card-text",e.class]),style:We([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),pZ=Ee({appendAvatar:String,appendIcon:rt,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:rt,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...Ls(),...tt(),...Ar(),...Hr(),...Pi(),...Jv(),...pl(),..._d(),...gr(),...ey(),...Jt(),...wn(),...na({variant:"elevated"})},"VCard"),Ve=$e()({name:"VCard",directives:{vRipple:_i},props:pZ(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:i}=On(e),{borderClasses:a}=ta(e),{colorClasses:s,colorStyles:o,variantClasses:l}=Du(e),{densityClasses:u}=ps(e),{dimensionStyles:c}=Wr(e),{elevationClasses:d}=es(e),{loaderClasses:p}=om(e),{locationStyles:h}=Lu(e),{positionClasses:g}=Td(e),{roundedClasses:v}=kr(e),y=Zv(e,n),b=Fe(void 0);return Ne(()=>e.loading,(E,w)=>{b.value=!E&&typeof w=="string"?w:typeof E=="boolean"?void 0:E},{immediate:!0}),Ue(()=>{const E=e.link!==!1&&y.isLink.value,w=!e.disabled&&e.link!==!1&&(e.link||y.isClickable.value),C=E?"a":e.tag,P=!!(r.title||e.title!=null),_=!!(r.subtitle||e.subtitle!=null),A=P||_,I=!!(r.append||e.appendAvatar||e.appendIcon),T=!!(r.prepend||e.prependAvatar||e.prependIcon),x=!!(r.image||e.image),R=A||T||I,O=!!(r.text||e.text!=null);return dn(f(C,ve(y.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":w},i.value,a.value,s.value,u.value,d.value,p.value,g.value,v.value,l.value,e.class],style:[o.value,c.value,h.value,e.style],onClick:w&&y.navigate,tabindex:e.disabled?-1:void 0}),{default:()=>[x&&S("div",{key:"image",class:"v-card__image"},[r.image?f(nn,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):f(ai,{key:"image-img",cover:!0,src:e.image},null)]),f(Qv,{name:"v-card",active:!!e.loading,color:b.value},{default:r.loader}),R&&f(dZ,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),O&&f(qe,{key:"text"},{default:()=>[r.text?.()??e.text]}),r.default?.(),r.actions&&f(Wt,null,{default:r.actions}),fl(w,"v-card")]}),[[_i,w&&e.ripple]])}),{}}}),mZ=Ee({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function ms(e,t,n){return $e()({name:e,props:mZ({mode:n,origin:t}),setup(r,i){let{slots:a}=i;const s={onBeforeEnter(o){r.origin&&(o.style.transformOrigin=r.origin)},onLeave(o){if(r.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:d}=o;o._transitionInitialStyles={position:o.style.position,top:o.style.top,left:o.style.left,width:o.style.width,height:o.style.height},o.style.position="absolute",o.style.top=`${l}px`,o.style.left=`${u}px`,o.style.width=`${c}px`,o.style.height=`${d}px`}r.hideOnLeave&&o.style.setProperty("display","none","important")},onAfterLeave(o){if(r.leaveAbsolute&&o?._transitionInitialStyles){const{position:l,top:u,left:c,width:d,height:p}=o._transitionInitialStyles;delete o._transitionInitialStyles,o.style.position=l||"",o.style.top=u||"",o.style.left=c||"",o.style.width=d||"",o.style.height=p||""}}};return()=>{const o=r.group?Iv:lo;return Ds(o,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:s},a.default)}}})}function LF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return $e()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:yu()},group:Boolean},setup(r,i){let{slots:a}=i;const s=r.group?Iv:lo;return()=>Ds(s,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},a.default)}})}function FF(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=kn(`offset-${n}`);return{onBeforeEnter(s){s._parent=s.parentNode,s._initialStyle={transition:s.style.transition,overflow:s.style.overflow,[n]:s.style[n]}},onEnter(s){const o=s._initialStyle;if(!o)return;s.style.setProperty("transition","none","important"),s.style.overflow="hidden";const l=`${s[r]}px`;s.style[n]="0",s.offsetHeight,s.style.transition=o.transition,e&&s._parent&&s._parent.classList.add(e),requestAnimationFrame(()=>{s.style[n]=l})},onAfterEnter:a,onEnterCancelled:a,onLeave(s){s._initialStyle={transition:"",overflow:s.style.overflow,[n]:s.style[n]},s.style.overflow="hidden",s.style[n]=`${s[r]}px`,s.offsetHeight,requestAnimationFrame(()=>s.style[n]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(s){e&&s._parent&&s._parent.classList.remove(e),a(s)}function a(s){if(!s._initialStyle)return;const o=s._initialStyle[n];s.style.overflow=s._initialStyle.overflow,o!=null&&(s.style[n]=o),delete s._initialStyle}}const hZ=Ee({target:[Object,Array]},"v-dialog-transition"),Lb=new WeakMap,cx=$e()({name:"VDialogTransition",props:hZ(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(i){i.style.pointerEvents="none",i.style.visibility="hidden"},async onEnter(i,a){await new Promise(p=>requestAnimationFrame(p)),await new Promise(p=>requestAnimationFrame(p)),i.style.visibility="";const s=PI(e.target,i),{x:o,y:l,sx:u,sy:c,speed:d}=s;if(Lb.set(i,s),yu())Ba(i,[{opacity:0},{}],{duration:125*d,easing:vI}).finished.then(()=>a());else{const p=Ba(i,[{transform:`translate(${o}px, ${l}px) scale(${u}, ${c})`,opacity:0},{}],{duration:225*d,easing:vI});II(i)?.forEach(h=>{Ba(h,[{opacity:0},{opacity:0,offset:.33},{}],{duration:450*d,easing:tp})}),p.finished.then(()=>a())}},onAfterEnter(i){i.style.removeProperty("pointer-events")},onBeforeLeave(i){i.style.pointerEvents="none"},async onLeave(i,a){await new Promise(p=>requestAnimationFrame(p));let s;!Lb.has(i)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?s=PI(e.target,i):s=Lb.get(i);const{x:o,y:l,sx:u,sy:c,speed:d}=s;yu()?Ba(i,[{},{opacity:0}],{duration:85*d,easing:yI}).finished.then(()=>a()):(Ba(i,[{},{transform:`translate(${o}px, ${l}px) scale(${u}, ${c})`,opacity:0}],{duration:125*d,easing:yI}).finished.then(()=>a()),II(i)?.forEach(h=>{Ba(h,[{},{opacity:0,offset:.2},{opacity:0}],{duration:250*d,easing:tp})}))},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>e.target?f(lo,ve({name:"dialog-transition"},r,{css:!1}),n):f(lo,{name:"dialog-transition"},n)}});function II(e){const t=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")?.children;return t&&[...t]}function PI(e,t){const n=rF(e),r=tx(t),[i,a]=getComputedStyle(t).transformOrigin.split(" ").map(b=>parseFloat(b)),[s,o]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;s==="left"||o==="left"?l-=n.width/2:(s==="right"||o==="right")&&(l+=n.width/2);let u=n.top+n.height/2;s==="top"||o==="top"?u-=n.height/2:(s==="bottom"||o==="bottom")&&(u+=n.height/2);const c=n.width/r.width,d=n.height/r.height,p=Math.max(1,c,d),h=c/p||0,g=d/p||0,v=r.width*r.height/(window.innerWidth*window.innerHeight),y=v>.12?Math.min(1.5,(v-.12)*10+1):1;return{x:l-(i+r.left),y:u-(a+r.top),sx:h,sy:g,speed:y}}ms("fab-transition","center center","out-in");ms("dialog-bottom-transition");ms("dialog-top-transition");const AI=ms("fade-transition"),$F=ms("scale-transition");ms("scroll-x-transition");ms("scroll-x-reverse-transition");ms("scroll-y-transition");ms("scroll-y-reverse-transition");ms("slide-x-transition");ms("slide-x-reverse-transition");const ty=ms("slide-y-transition");ms("slide-y-reverse-transition");const dx=LF("expand-transition",FF()),MF=LF("expand-x-transition",FF("",!0)),ny=["sm","md","lg","xl","xxl"],wS=Symbol.for("vuetify:display"),RI={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},gZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:RI;return ii(RI,e)};function OI(e){return un&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function NI(e){return un&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function DI(e){const t=un&&!e?window.navigator.userAgent:"ssr";function n(g){return!!t.match(g)}const r=n(/android/i),i=n(/iphone|ipad|ipod/i),a=n(/cordova/i),s=n(/electron/i),o=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),d=n(/win/i),p=n(/mac/i),h=n(/linux/i);return{android:r,ios:i,cordova:a,electron:s,chrome:o,edge:l,firefox:u,opera:c,win:d,mac:p,linux:h,touch:CJ,ssr:t==="ssr"}}function vZ(e,t){const{thresholds:n,mobileBreakpoint:r}=gZ(e),i=Fe(NI(t)),a=Fe(DI(t)),s=Dn({}),o=Fe(OI(t));function l(){i.value=NI(),o.value=OI()}function u(){l(),a.value=DI()}return lr(()=>{const c=o.value<n.sm,d=o.value<n.md&&!c,p=o.value<n.lg&&!(d||c),h=o.value<n.xl&&!(p||d||c),g=o.value<n.xxl&&!(h||p||d||c),v=o.value>=n.xxl,y=c?"xs":d?"sm":p?"md":h?"lg":g?"xl":"xxl",b=typeof r=="number"?r:n[r],E=o.value<b;s.xs=c,s.sm=d,s.md=p,s.lg=h,s.xl=g,s.xxl=v,s.smAndUp=!c,s.mdAndUp=!(c||d),s.lgAndUp=!(c||d||p),s.xlAndUp=!(c||d||p||h),s.smAndDown=!(p||h||g||v),s.mdAndDown=!(h||g||v),s.lgAndDown=!(g||v),s.xlAndDown=!v,s.name=y,s.height=i.value,s.width=o.value,s.mobile=E,s.mobileBreakpoint=r,s.platform=a.value,s.thresholds=n}),un&&(window.addEventListener("resize",l,{passive:!0}),An(()=>{window.removeEventListener("resize",l)},!0)),{..._a(s),update:u,ssr:!!t}}const Fu=Ee({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function ra(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia();const n=mt(wS);if(!n)throw new Error("Could not find Vuetify display injection");const r=D(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.value<e.mobileBreakpoint:e.mobileBreakpoint?n.width.value<n.thresholds.value[e.mobileBreakpoint]:e.mobile===null?n.mobile.value:!1),i=ae(()=>t?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:i,mobile:r}}const VF=Symbol.for("vuetify:goto");function BF(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:hQ}}function yZ(e){return fx(e)??(document.scrollingElement||document.body)}function fx(e){return typeof e=="string"?document.querySelector(e):QE(e)}function Fb(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=fx(e),i=0;for(;r;)i+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return i}function bZ(e,t){return{rtl:t.isRtl,options:ii(BF(),e)}}async function LI(e,t,n,r){const i=n?"scrollLeft":"scrollTop",a=ii(r?.options??BF(),t),s=r?.rtl.value,o=(typeof e=="number"?e:fx(e))??0,l=a.container==="parent"&&o instanceof HTMLElement?o.parentElement:yZ(a.container),u=yu()?a.patterns.instant:typeof a.easing=="function"?a.easing:a.patterns[a.easing];if(!u)throw new TypeError(`Easing function "${a.easing}" not found.`);let c;if(typeof o=="number")c=Fb(o,n,s);else if(c=Fb(o,n,s)-Fb(l,n,s),a.layout){const g=window.getComputedStyle(o).getPropertyValue("--v-layout-top");g&&(c-=parseInt(g,10))}c+=a.offset,c=wZ(l,c,!!s,!!n);const d=l[i]??0;if(c===d)return Promise.resolve(c);const p=performance.now();return new Promise(h=>requestAnimationFrame(function g(v){const b=(v-p)/a.duration,E=Math.floor(d+(c-d)*u(Ln(b,0,1)));if(l[i]=E,b>=1&&Math.abs(E-l[i])<10)return h(c);if(b>2)return h(l[i]);requestAnimationFrame(g)}))}function SZ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=mt(VF),{isRtl:n}=Or();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:ae(()=>t.rtl.value||n.value)};async function i(a,s){return LI(a,ii(e,s),!1,r)}return i.horizontal=async(a,s)=>LI(a,ii(e,s),!0,r),i}function wZ(e,t,n,r){const{scrollWidth:i,scrollHeight:a}=e,[s,o]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return r?n?(l=-(i-s),u=0):(l=0,u=i-s):(l=0,u=a+-o),Ln(t,l,u)}function EZ(e){let{selectedElement:t,containerElement:n,isRtl:r,isHorizontal:i}=e;const a=sp(i,n),s=UF(i,r,n),o=sp(i,t),l=jF(i,t),u=o*.4;return s>l?l-u:s+a<l+o?l-a+o+u:s}function xZ(e){let{selectedElement:t,containerElement:n,isHorizontal:r}=e;const i=sp(r,n),a=jF(r,t),s=sp(r,t);return a-i/2+s/2}function FI(e,t){return t?.[e?"scrollWidth":"scrollHeight"]||0}function kZ(e,t){return t?.[e?"clientWidth":"clientHeight"]||0}function UF(e,t,n){if(!n)return 0;const{scrollLeft:r,offsetWidth:i,scrollWidth:a}=n;return e?t?a-i+r:r:n.scrollTop}function sp(e,t){return t?.[e?"offsetWidth":"offsetHeight"]||0}function jF(e,t){return t?.[e?"offsetLeft":"offsetTop"]||0}const zF=Symbol.for("vuetify:v-slide-group"),px=Ee({centerActive:Boolean,scrollToActive:{type:Boolean,default:!0},contentClass:null,direction:{type:String,default:"horizontal"},symbol:{type:null,default:zF},nextIcon:{type:rt,default:"$next"},prevIcon:{type:rt,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile","never"].includes(e)},...tt(),...Fu({mobile:null}),...Jt(),...im({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Lg=$e()({name:"VSlideGroup",props:px(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:r}=Or(),{displayClasses:i,mobile:a}=ra(e),s=kd(e,e.symbol),o=Fe(!1),l=Fe(0),u=Fe(0),c=Fe(0),d=D(()=>e.direction==="horizontal"),{resizeRef:p,contentRect:h}=go(),{resizeRef:g,contentRect:v}=go(),y=SZ(),b=D(()=>({container:p.el,duration:200,easing:"easeOutQuart"})),E=D(()=>s.selected.value.length?s.items.value.findIndex(M=>M.id===s.selected.value[0]):-1),w=D(()=>s.selected.value.length?s.items.value.findIndex(M=>M.id===s.selected.value[s.selected.value.length-1]):-1);if(un){let M=-1;Ne(()=>[s.selected.value,h.value,v.value,d.value],()=>{cancelAnimationFrame(M),M=requestAnimationFrame(()=>{if(h.value&&v.value){const K=d.value?"width":"height";u.value=h.value[K],c.value=v.value[K],o.value=u.value+1<c.value}if(e.scrollToActive&&E.value>=0&&g.el){const K=g.el.children[w.value];P(K,e.centerActive)}})})}const C=Fe(!1);function P(M,K){let fe=0;K?fe=xZ({containerElement:p.el,isHorizontal:d.value,selectedElement:M}):fe=EZ({containerElement:p.el,isHorizontal:d.value,isRtl:r.value,selectedElement:M}),_(fe)}function _(M){if(!un||!p.el)return;const K=sp(d.value,p.el),fe=UF(d.value,r.value,p.el);if(!(FI(d.value,p.el)<=K||Math.abs(M-fe)<16)){if(d.value&&r.value&&p.el){const{scrollWidth:Re,offsetWidth:Q}=p.el;M=Re-Q-M}d.value?y.horizontal(M,b.value):y(M,b.value)}}function A(M){const{scrollTop:K,scrollLeft:fe}=M.target;l.value=d.value?fe:K}function I(M){if(C.value=!0,!(!o.value||!g.el)){for(const K of M.composedPath())for(const fe of g.el.children)if(fe===K){P(fe);return}}}function T(M){C.value=!1}let x=!1;function R(M){!x&&!C.value&&!(M.relatedTarget&&g.el?.contains(M.relatedTarget))&&W(),x=!1}function O(){x=!0}function L(M){if(!g.el)return;function K(fe){M.preventDefault(),W(fe)}d.value?M.key==="ArrowRight"?K(r.value?"prev":"next"):M.key==="ArrowLeft"&&K(r.value?"next":"prev"):M.key==="ArrowDown"?K("next"):M.key==="ArrowUp"&&K("prev"),M.key==="Home"?K("first"):M.key==="End"&&K("last")}function F(M,K){if(!M)return;let fe=M;do fe=fe?.[K==="next"?"nextElementSibling":"previousElementSibling"];while(fe?.hasAttribute("disabled"));return fe}function W(M){if(!g.el)return;let K;if(!M)K=tu(g.el)[0];else if(M==="next"){if(K=F(g.el.querySelector(":focus"),M),!K)return W("first")}else if(M==="prev"){if(K=F(g.el.querySelector(":focus"),M),!K)return W("last")}else M==="first"?(K=g.el.firstElementChild,K?.hasAttribute("disabled")&&(K=F(K,"next"))):M==="last"&&(K=g.el.lastElementChild,K?.hasAttribute("disabled")&&(K=F(K,"prev")));K&&K.focus({preventScroll:!0})}function H(M){const K=d.value&&r.value?-1:1,fe=(M==="prev"?-K:K)*u.value;let he=l.value+fe;if(d.value&&r.value&&p.el){const{scrollWidth:Re,offsetWidth:Q}=p.el;he+=Re-Q}_(he)}const B=D(()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected})),$=D(()=>o.value||Math.abs(l.value)>0),Y=D(()=>{switch(e.showArrows){case"never":return!1;case"always":return!0;case"desktop":return!a.value;case!0:return $.value;case"mobile":return a.value||$.value;default:return!a.value&&$.value}}),q=D(()=>Math.abs(l.value)>1),U=D(()=>{if(!p.value||!$.value)return!1;const M=FI(d.value,p.el),K=kZ(d.value,p.el);return M-K-Math.abs(l.value)>1});return Ue(()=>f(e.tag,{class:Oe(["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":Y.value,"v-slide-group--is-overflowing":o.value},i.value,e.class]),style:We(e.style),tabindex:C.value||s.selected.value.length?-1:0,onFocus:R},{default:()=>[Y.value&&S("div",{key:"prev",class:Oe(["v-slide-group__prev",{"v-slide-group__prev--disabled":!q.value}]),onMousedown:O,onClick:()=>q.value&&H("prev")},[n.prev?.(B.value)??f(AI,null,{default:()=>[f(j,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),S("div",{key:"container",ref:p,class:Oe(["v-slide-group__container",e.contentClass]),onScroll:A},[S("div",{ref:g,class:"v-slide-group__content",onFocusin:I,onFocusout:T,onKeydown:L},[n.default?.(B.value)])]),Y.value&&S("div",{key:"next",class:Oe(["v-slide-group__next",{"v-slide-group__next--disabled":!U.value}]),onMousedown:O,onClick:()=>U.value&&H("next")},[n.next?.(B.value)??f(AI,null,{default:()=>[f(j,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]})),{selected:s.selected,scrollTo:H,scrollOffset:l,focus:W,hasPrev:q,hasNext:U}}}),HF=Symbol.for("vuetify:v-chip-group"),CZ=Ee({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Ir},...px({scrollToActive:!1}),...tt(),...im({selectedClass:"v-chip--selected"}),...Jt(),...wn(),...na({variant:"tonal"})},"VChipGroup"),$I=$e()({name:"VChipGroup",props:CZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=On(e),{isSelected:i,select:a,next:s,prev:o,selected:l}=kd(e,HF);return Er({VChip:{baseColor:ae(()=>e.baseColor),color:ae(()=>e.color),disabled:ae(()=>e.disabled),filter:ae(()=>e.filter),variant:ae(()=>e.variant)}}),Ue(()=>{const u=Lg.filterProps(e);return f(Lg,ve(u,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style}),{default:()=>[n.default?.({isSelected:i,select:a,next:s,prev:o,selected:l.value})]})}),{}}}),_Z=Ee({activeClass:String,appendAvatar:String,appendIcon:rt,baseColor:String,closable:Boolean,closeIcon:{type:rt,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:rt,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:rt,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:Ur(),onClickOnce:Ur(),...Ls(),...tt(),...Ar(),...Pi(),...sm(),...gr(),...ey(),...Cd(),...Jt({tag:"span"}),...wn(),...na({variant:"tonal"})},"VChip"),He=$e()({name:"VChip",directives:{vRipple:_i},props:_Z(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{t:a}=Rr(),{borderClasses:s}=ta(e),{densityClasses:o}=ps(e),{elevationClasses:l}=es(e),{roundedClasses:u}=kr(e),{sizeClasses:c}=am(e),{themeClasses:d}=On(e),p=gt(e,"modelValue"),h=Gc(e,HF,!1),g=Gc(e,zF,!1),v=Zv(e,n),y=ae(()=>e.link!==!1&&v.isLink.value),b=D(()=>!e.disabled&&e.link!==!1&&(!!h||e.link||v.isClickable.value)),E=ae(()=>({"aria-label":a(e.closeLabel),disabled:e.disabled,onClick(I){I.preventDefault(),I.stopPropagation(),p.value=!1,r("click:close",I)}}));Ne(p,I=>{I?(h?.register(),g?.register()):(h?.unregister(),g?.unregister())});const{colorClasses:w,colorStyles:C,variantClasses:P}=Du(()=>({color:!h||h.isSelected.value?e.color??e.baseColor:e.baseColor,variant:e.variant}));function _(I){r("click",I),b.value&&(v.navigate?.(I),h?.toggle())}function A(I){(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),_(I))}return()=>{const I=v.isLink.value?"a":e.tag,T=!!(e.appendIcon||e.appendAvatar),x=!!(T||i.append),R=!!(i.close||e.closable),O=!!(i.filter||e.filter)&&h,L=!!(e.prependIcon||e.prependAvatar),F=!!(L||i.prepend);return p.value&&dn(f(I,ve(v.linkProps,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":b.value,"v-chip--filter":O,"v-chip--pill":e.pill,[`${e.activeClass}`]:e.activeClass&&v.isActive?.value},d.value,s.value,w.value,o.value,l.value,u.value,c.value,P.value,h?.selectedClass.value,e.class],style:[C.value,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:b.value?0:void 0,onClick:_,onKeydown:b.value&&!y.value&&A}),{default:()=>[fl(b.value,"v-chip"),O&&f(MF,{key:"filter"},{default:()=>[dn(S("div",{class:"v-chip__filter"},[i.filter?f(nn,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},i.filter):f(j,{key:"filter-icon",icon:e.filterIcon},null)]),[[ci,h.isSelected.value]])]}),F&&S("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?f(nn,{key:"prepend-defaults",disabled:!L,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},i.prepend):S(De,null,[e.prependIcon&&f(j,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&f(Sn,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),S("div",{class:"v-chip__content","data-no-activator":""},[i.default?.({isSelected:h?.isSelected.value,selectedClass:h?.selectedClass.value,select:h?.select,toggle:h?.toggle,value:h?.value.value,disabled:e.disabled})??V(e.text)]),x&&S("div",{key:"append",class:"v-chip__append"},[i.append?f(nn,{key:"append-defaults",disabled:!T,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},i.append):S(De,null,[e.appendIcon&&f(j,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&f(Sn,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),R&&S("button",ve({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},E.value),[i.close?f(nn,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},i.close):f(j,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}),[[_i,b.value&&e.ripple,null]])}}});function $b(e,t){return{x:e.x+t.x,y:e.y+t.y}}function TZ(e,t){return{x:e.x-t.x,y:e.y-t.y}}function MI(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,i=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,a=n==="top"?0:n==="bottom"?t.height:n;return $b({x:i,y:a},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,i=n==="left"?0:n==="right"?t.width:n,a=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return $b({x:i,y:a},t)}return $b({x:t.width/2,y:t.height/2},t)}const WF={static:AZ,connected:OZ},IZ=Ee({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in WF},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean,viewportMargin:{type:[Number,String],default:12}},"VOverlay-location-strategies");function PZ(e,t){const n=z({}),r=z();un&&Gi(()=>!!(t.isActive.value&&e.locationStrategy),o=>{Ne(()=>e.locationStrategy,o),An(()=>{window.removeEventListener("resize",i),visualViewport?.removeEventListener("resize",a),visualViewport?.removeEventListener("scroll",s),r.value=void 0}),window.addEventListener("resize",i,{passive:!0}),visualViewport?.addEventListener("resize",a,{passive:!0}),visualViewport?.addEventListener("scroll",s,{passive:!0}),typeof e.locationStrategy=="function"?r.value=e.locationStrategy(t,e,n)?.updateLocation:r.value=WF[e.locationStrategy](t,e,n)?.updateLocation});function i(o){r.value?.(o)}function a(o){r.value?.(o)}function s(o){r.value?.(o)}return{contentStyles:n,updateLocation:r}}function AZ(){}function RZ(e,t){const n=tx(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function OZ(e,t,n){(Array.isArray(e.target.value)||vQ(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:i,preferredOrigin:a}=ex(()=>{const b=fS(t.location,e.isRtl.value),E=t.origin==="overlap"?b:t.origin==="auto"?Rb(b):fS(t.origin,e.isRtl.value);return b.side===E.side&&b.align===Ob(E).align?{preferredAnchor:iI(b),preferredOrigin:iI(E)}:{preferredAnchor:b,preferredOrigin:E}}),[s,o,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(b=>D(()=>{const E=parseFloat(t[b]);return isNaN(E)?1/0:E})),c=D(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const b=t.offset.split(" ").map(parseFloat);return b.length<2&&b.push(0),b}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let d=!1,p=-1;const h=new QL(4),g=new ResizeObserver(()=>{if(!d)return;if(requestAnimationFrame(E=>{E!==p&&h.clear(),requestAnimationFrame(w=>{p=w})}),h.isFull){const E=h.values();if(Ir(E.at(-1),E.at(-3))&&!Ir(E.at(-1),E.at(-2)))return}const b=y();b&&h.push(b.flipped)});let v=new Cs({x:0,y:0,width:0,height:0});Ne(e.target,(b,E)=>{E&&!Array.isArray(E)&&g.unobserve(E),Array.isArray(b)?Ir(b,E)||y():b&&g.observe(b)},{immediate:!0}),Ne(e.contentEl,(b,E)=>{E&&g.unobserve(E),b&&g.observe(b)},{immediate:!0}),An(()=>{g.disconnect()});function y(){if(d=!1,requestAnimationFrame(()=>d=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(v=rF(e.target.value));const b=RZ(e.contentEl.value,e.isRtl.value),E=Ag(e.contentEl.value),w=Number(t.viewportMargin);E.length||(E.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(b.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),b.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const C=E.reduce((L,F)=>{const W=VJ(F);return L?new Cs({x:Math.max(L.left,W.left),y:Math.max(L.top,W.top),width:Math.min(L.right,W.right)-Math.max(L.left,W.left),height:Math.min(L.bottom,W.bottom)-Math.max(L.top,W.top)}):W},void 0);t.stickToTarget?(C.x+=Math.min(w,v.x),C.y+=Math.min(w,v.y),C.width=Math.max(C.width-w*2,v.x+v.width-w),C.height=Math.max(C.height-w*2,v.y+v.height-w)):(C.x+=w,C.y+=w,C.width-=w*2,C.height-=w*2);let P={anchor:i.value,origin:a.value};function _(L){const F=new Cs(b),W=MI(L.anchor,v),H=MI(L.origin,F);let{x:B,y:$}=TZ(W,H);switch(L.anchor.side){case"top":$-=c.value[0];break;case"bottom":$+=c.value[0];break;case"left":B-=c.value[0];break;case"right":B+=c.value[0];break}switch(L.anchor.align){case"top":$-=c.value[1];break;case"bottom":$+=c.value[1];break;case"left":B-=c.value[1];break;case"right":B+=c.value[1];break}return F.x+=B,F.y+=$,F.width=Math.min(F.width,l.value),F.height=Math.min(F.height,u.value),{overflows:aI(F,C),x:B,y:$}}let A=0,I=0;const T={x:0,y:0},x={x:!1,y:!1};let R=-1;for(;!(R++>10);){const{x:L,y:F,overflows:W}=_(P);A+=L,I+=F,b.x+=L,b.y+=F;{const H=sI(P.anchor),B=W.x.before||W.x.after,$=W.y.before||W.y.after;let Y=!1;if(["x","y"].forEach(q=>{if(q==="x"&&B&&!x.x||q==="y"&&$&&!x.y){const U={anchor:{...P.anchor},origin:{...P.origin}},M=q==="x"?H==="y"?Ob:Rb:H==="y"?Rb:Ob;U.anchor=M(U.anchor),U.origin=M(U.origin);const{overflows:K}=_(U);(K[q].before<=W[q].before&&K[q].after<=W[q].after||K[q].before+K[q].after<(W[q].before+W[q].after)/2)&&(P=U,Y=x[q]=!0)}}),Y)continue}W.x.before&&(A+=W.x.before,b.x+=W.x.before),W.x.after&&(A-=W.x.after,b.x-=W.x.after),W.y.before&&(I+=W.y.before,b.y+=W.y.before),W.y.after&&(I-=W.y.after,b.y-=W.y.after);{const H=aI(b,C);T.x=C.width-H.x.before-H.x.after,T.y=C.height-H.y.before-H.y.after,A+=H.x.before,b.x+=H.x.before,I+=H.y.before,b.y+=H.y.before}break}const O=sI(P.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${P.anchor.side} ${P.anchor.align}`,transformOrigin:`${P.origin.side} ${P.origin.align}`,top:ze(Mb(I)),left:e.isRtl.value?void 0:ze(Mb(A)),right:e.isRtl.value?ze(Mb(-A)):void 0,minWidth:ze(O==="y"?Math.min(s.value,v.width):s.value),maxWidth:ze(VI(Ln(T.x,s.value===1/0?0:s.value,l.value))),maxHeight:ze(VI(Ln(T.y,o.value===1/0?0:o.value,u.value)))}),{available:T,contentBox:b,flipped:x}}return Ne(()=>[i.value,a.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>y()),Ct(()=>{const b=y();if(!b)return;const{available:E,contentBox:w}=b;w.height>E.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function Mb(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function VI(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let ES=!0;const Fg=[];function NZ(e){!ES||Fg.length?(Fg.push(e),xS()):(ES=!1,e(),xS())}let BI=-1;function xS(){cancelAnimationFrame(BI),BI=requestAnimationFrame(()=>{const e=Fg.shift();e&&e(),Fg.length?xS():ES=!0})}const GF={none:null,close:FZ,block:$Z,reposition:MZ},DZ=Ee({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in GF}},"VOverlay-scroll-strategies");function LZ(e,t){if(!un)return;let n;lr(async()=>{n?.stop(),t.isActive.value&&e.scrollStrategy&&(n=Xo(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):GF[e.scrollStrategy]?.(t,e,n)}))}),An(()=>{n?.stop()})}function FZ(e){function t(n){e.isActive.value=!1}qF(mx(e.target.value,e.contentEl.value),t)}function $Z(e,t){const n=e.root.value?.offsetParent,r=mx(e.target.value,e.contentEl.value),i=[...new Set([...Ag(r,t.contained?n:void 0),...Ag(e.contentEl.value,t.contained?n:void 0)])].filter(o=>!o.classList.contains("v-overlay-scroll-blocked")),a=window.innerWidth-document.documentElement.offsetWidth,s=(o=>ax(o)&&o)(n||document.documentElement);s&&e.root.value.classList.add("v-overlay--scroll-blocked"),i.forEach((o,l)=>{o.style.setProperty("--v-body-scroll-x",ze(-o.scrollLeft)),o.style.setProperty("--v-body-scroll-y",ze(-o.scrollTop)),o!==document.documentElement&&o.style.setProperty("--v-scrollbar-offset",ze(a)),o.classList.add("v-overlay-scroll-blocked")}),An(()=>{i.forEach((o,l)=>{const u=parseFloat(o.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(o.style.getPropertyValue("--v-body-scroll-y")),d=o.style.scrollBehavior;o.style.scrollBehavior="auto",o.style.removeProperty("--v-body-scroll-x"),o.style.removeProperty("--v-body-scroll-y"),o.style.removeProperty("--v-scrollbar-offset"),o.classList.remove("v-overlay-scroll-blocked"),o.scrollLeft=-u,o.scrollTop=-c,o.style.scrollBehavior=d}),s&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function MZ(e,t,n){let r=!1,i=-1,a=-1;function s(o){NZ(()=>{const l=performance.now();e.updateLocation.value?.(o),r=(performance.now()-l)/(1e3/60)>2})}a=(typeof requestIdleCallback>"u"?o=>o():requestIdleCallback)(()=>{n.run(()=>{qF(mx(e.target.value,e.contentEl.value),o=>{r?(cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{s(o)})})):s(o)})})}),An(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(a),cancelAnimationFrame(i)})}function mx(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(n=>!t?.contains(n)):e??t}function qF(e,t){const n=[document,...Ag(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),An(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const kS=Symbol.for("vuetify:v-menu"),KF=Ee({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function YF(e,t){let n=()=>{};function r(s,o){n?.();const l=s?e.openDelay:e.closeDelay,u=Math.max(o?.minDelay??0,Number(l??0));return new Promise(c=>{n=NJ(u,()=>{t?.(s),c(s)})})}function i(){return r(!0)}function a(s){return r(!1,s)}return{clearDelay:n,runOpenDelay:i,runCloseDelay:a}}const VZ=Ee({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...KF()},"VOverlay-activator");function BZ(e,t){let{isActive:n,isTop:r,contentEl:i}=t;const a=Gn("useActivator"),s=z();let o=!1,l=!1,u=!0;const c=D(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),d=D(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:p,runCloseDelay:h}=YF(e,I=>{I===(e.openOnHover&&o||c.value&&l)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==I&&(u=!0),n.value=I)}),g=z(),v={onClick:I=>{I.stopPropagation(),s.value=I.currentTarget||I.target,n.value||(g.value=[I.clientX,I.clientY]),n.value=!n.value},onMouseenter:I=>{o=!0,s.value=I.currentTarget||I.target,p()},onMouseleave:I=>{o=!1,h()},onFocus:I=>{zc(I.target,":focus-visible")!==!1&&(l=!0,I.stopPropagation(),s.value=I.currentTarget||I.target,p())},onBlur:I=>{l=!1,I.stopPropagation(),h({minDelay:1})}},y=D(()=>{const I={};return d.value&&(I.onClick=v.onClick),e.openOnHover&&(I.onMouseenter=v.onMouseenter,I.onMouseleave=v.onMouseleave),c.value&&(I.onFocus=v.onFocus,I.onBlur=v.onBlur),I}),b=D(()=>{const I={};if(e.openOnHover&&(I.onMouseenter=()=>{o=!0,p()},I.onMouseleave=()=>{o=!1,h()}),c.value&&(I.onFocusin=T=>{T.target.matches(":focus-visible")&&(l=!0,p())},I.onFocusout=()=>{l=!1,h({minDelay:1})}),e.closeOnContentClick){const T=mt(kS,null);I.onClick=()=>{n.value=!1,T?.closeParents()}}return I}),E=D(()=>{const I={};return e.openOnHover&&(I.onMouseenter=()=>{u&&(o=!0,u=!1,p())},I.onMouseleave=()=>{o=!1,h()}),I});Ne(r,I=>{I&&(e.openOnHover&&!o&&(!c.value||!l)||c.value&&!l&&(!e.openOnHover||!o))&&!i.value?.contains(document.activeElement)&&(n.value=!1)}),Ne(n,I=>{I||setTimeout(()=>{g.value=void 0})},{flush:"post"});const w=dS();lr(()=>{w.value&&Ct(()=>{s.value=w.el})});const C=dS(),P=D(()=>e.target==="cursor"&&g.value?g.value:C.value?C.el:XF(e.target,a)||s.value),_=D(()=>Array.isArray(P.value)?void 0:P.value);let A;return Ne(()=>!!e.activator,I=>{I&&un?(A=Xo(),A.run(()=>{UZ(e,a,{activatorEl:s,activatorEvents:y})})):A&&A.stop()},{flush:"post",immediate:!0}),An(()=>{A?.stop()}),{activatorEl:s,activatorRef:w,target:P,targetEl:_,targetRef:C,activatorEvents:y,contentEvents:b,scrimEvents:E}}function UZ(e,t,n){let{activatorEl:r,activatorEvents:i}=n;Ne(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=o(u);c&&s(c)}l&&Ct(()=>a())},{immediate:!0}),Ne(()=>e.activatorProps,()=>{a()}),An(()=>{s()});function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&BJ(l,ve(i.value,u))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&UJ(l,ve(i.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=XF(l,t);return r.value=u?.nodeType===Node.ELEMENT_NODE?u:void 0,r.value}}function XF(e,t){if(!e)return;let n;if(e==="parent"){let r=t?.proxy?.$el?.parentNode;for(;r?.hasAttribute("data-no-activator");)r=r.parentNode;n=r}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}const JF=Ee({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),Ph=new Map;let UI=0;function jI(e){const t=document.activeElement;if(e.key!=="Tab"||!t)return;const n=Array.from(Ph.values()).filter(u=>{let{isActive:c,contentEl:d}=u;return c.value&&d.value?.contains(t)}).map(u=>u.contentEl.value);let r,i=t.parentElement;for(;i;){if(n.includes(i)){r=i;break}i=i.parentElement}if(!r)return;const a=tu(r).filter(u=>u.tabIndex>=0);if(!a.length)return;const s=document.activeElement;if(a.length===1&&a[0].classList.contains("v-list")&&a[0].contains(s)){e.preventDefault();return}const o=a[0],l=a[a.length-1];e.shiftKey&&(s===o||o.classList.contains("v-list")&&o.contains(s))&&(e.preventDefault(),l.focus()),!e.shiftKey&&(s===l||l.classList.contains("v-list")&&l.contains(s))&&(e.preventDefault(),o.focus())}function QF(e,t){let{isActive:n,localTop:r,activatorEl:i,contentEl:a}=t;const s=Symbol("trap");let o=!1,l=-1;async function u(){o=!0,l=window.setTimeout(()=>{o=!1},100)}async function c(h){const g=h.relatedTarget,v=h.target;document.removeEventListener("pointerdown",u),document.removeEventListener("keydown",d),await Ct(),n.value&&!o&&g!==v&&a.value&&yn(r)&&![document,a.value].includes(v)&&!a.value.contains(v)&&tu(a.value)[0]?.focus()}function d(h){if(h.key==="Tab"&&(document.removeEventListener("keydown",d),n.value&&a.value&&h.target&&!a.value.contains(h.target))){const g=tu(document.documentElement);if(h.shiftKey&&h.target===g.at(0)||!h.shiftKey&&h.target===g.at(-1)){const v=tu(a.value);v.length>0&&(h.preventDefault(),v[0].focus())}}}const p=ae(()=>n.value&&e.captureFocus&&!e.disableInitialFocus);un&&(Ne(()=>e.retainFocus,h=>{h?Ph.set(s,{isActive:n,contentEl:a}):Ph.delete(s)},{immediate:!0}),Ne(p,h=>{h?(document.addEventListener("pointerdown",u),document.addEventListener("focusin",c,{once:!0}),document.addEventListener("keydown",d)):(document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",d))},{immediate:!0}),UI++<1&&document.addEventListener("keydown",jI)),An(()=>{Ph.delete(s),clearTimeout(l),document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",d),--UI<1&&document.removeEventListener("keydown",jI)})}function jZ(){if(!un)return Fe(!1);const{ssr:e}=ra();if(e){const t=Fe(!1);return Nt(()=>{t.value=!0}),t}else return Fe(!0)}const hx=Ee({eager:Boolean},"lazy");function gx(e,t){const n=Fe(!1),r=ae(()=>n.value||e.eager||t.value);Ne(t,()=>n.value=!0);function i(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:i}}function $u(){const t=Gn("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const zI=Symbol.for("vuetify:stack"),Gd=Dn([]);function zZ(e,t,n){const r=Gn("useStack"),i=!n,a=mt(zI,void 0),s=Dn({activeChildren:new Set});bn(zI,s);const o=Fe(Number(yn(t)));Gi(e,()=>{const c=Gd.at(-1)?.[1];o.value=c?c+10:Number(yn(t)),i&&Gd.push([r.uid,o.value]),a?.activeChildren.add(r.uid),An(()=>{if(i){const d=it(Gd).findIndex(p=>p[0]===r.uid);Gd.splice(d,1)}a?.activeChildren.delete(r.uid)})});const l=Fe(!0);i&&lr(()=>{const c=Gd.at(-1)?.[0]===r.uid;setTimeout(()=>l.value=c)});const u=ae(()=>!s.activeChildren.size);return{globalTop:ya(l),localTop:u,stackStyles:ae(()=>({zIndex:o.value}))}}function HZ(e){return{teleportTarget:D(()=>{const n=e();if(n===!0||!un)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let i=[...r.children].find(a=>a.matches(".v-overlay-container"));return i||(i=document.createElement("div"),i.className="v-overlay-container",r.appendChild(i)),i})}}function WZ(){return!0}function ZF(e,t,n){if(!e||e$(e,n)===!1)return!1;const r=pF(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const i=(typeof n.value=="object"&&n.value.include||(()=>[]))();return i.push(t),!i.some(a=>a?.contains(e.target))}function e$(e,t){return(typeof t.value=="object"&&t.value.closeConditional||WZ)(e)}function GZ(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&ZF(e,t,n)&&setTimeout(()=>{e$(e,n)&&r&&r(e)},0)}function HI(e,t){const n=pF(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const WI={mounted(e,t){const n=i=>GZ(i,e,t),r=i=>{e._clickOutside.lastMousedownWasOutside=ZF(i,e,t)};HI(e,i=>{i.addEventListener("click",n,!0),i.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(HI(e,n=>{if(!n||!e._clickOutside?.[t.instance.$.uid])return;const{onClick:r,onMousedown:i}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",i,!0)}),delete e._clickOutside[t.instance.$.uid])}};function qZ(e){const{modelValue:t,color:n,...r}=e;return f(lo,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&S("div",ve({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const lm=Ee({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...VZ(),...tt(),...Hr(),...hx(),...IZ(),...DZ(),...JF(),...wn(),...Id()},"VOverlay"),vo=$e()({name:"VOverlay",directives:{vClickOutside:WI},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Rn(lm(),["disableInitialFocus"])},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,keydown:e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:i}=t;const a=Gn("VOverlay"),s=z(),o=z(),l=z(),u=gt(e,"modelValue"),c=D({get:()=>u.value,set:Q=>{Q&&e.disabled||(u.value=Q)}}),{themeClasses:d}=On(e),{rtlClasses:p,isRtl:h}=Or(),{hasContent:g,onAfterLeave:v}=gx(e,c),y=Un(()=>typeof e.scrim=="string"?e.scrim:null),{globalTop:b,localTop:E,stackStyles:w}=zZ(c,()=>e.zIndex,e._disableGlobalStack),{activatorEl:C,activatorRef:P,target:_,targetEl:A,targetRef:I,activatorEvents:T,contentEvents:x,scrimEvents:R}=BZ(e,{isActive:c,isTop:E,contentEl:l}),{teleportTarget:O}=HZ(()=>{const Q=e.attach||e.contained;if(Q)return Q;const re=C?.value?.getRootNode()||a.proxy?.$el?.getRootNode();return re instanceof ShadowRoot?re:!1}),{dimensionStyles:L}=Wr(e),F=jZ(),{scopeId:W}=$u();Ne(()=>e.disabled,Q=>{Q&&(c.value=!1)});const{contentStyles:H,updateLocation:B}=PZ(e,{isRtl:h,contentEl:l,target:_,isActive:c});LZ(e,{root:s,contentEl:l,targetEl:A,target:_,isActive:c,updateLocation:B});function $(Q){i("click:outside",Q),e.persistent?fe():c.value=!1}function Y(Q){return c.value&&E.value&&(!e.scrim||Q.target===o.value||Q instanceof MouseEvent&&Q.shadowTarget===o.value)}QF(e,{isActive:c,localTop:E,contentEl:l,activatorEl:C}),un&&Ne(c,Q=>{Q?window.addEventListener("keydown",q):window.removeEventListener("keydown",q)},{immediate:!0}),xr(()=>{un&&window.removeEventListener("keydown",q)});function q(Q){Q.key==="Escape"&&b.value&&(l.value?.contains(document.activeElement)||i("keydown",Q),e.persistent?fe():(c.value=!1,l.value?.contains(document.activeElement)&&C.value?.focus()))}function U(Q){Q.key==="Escape"&&!b.value||i("keydown",Q)}const M=xF();Gi(()=>e.closeOnBack,()=>{XQ(M,Q=>{b.value&&c.value?(Q(!1),e.persistent?fe():c.value=!1):Q()})});const K=z();Ne(()=>c.value&&(e.absolute||e.contained)&&O.value==null,Q=>{if(Q){const re=sx(s.value);re&&re!==document.scrollingElement&&(K.value=re.scrollTop)}});function fe(){e.noClickAnimation||l.value&&Ba(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:tp})}function he(){i("afterEnter")}function Re(){v(),i("afterLeave")}return Ue(()=>S(De,null,[n.activator?.({isActive:c.value,targetRef:I,props:ve({ref:P},T.value,e.activatorProps)}),F.value&&g.value&&f(E2,{disabled:!O.value,to:O.value},{default:()=>[S("div",ve({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},d.value,p.value,e.class],style:[w.value,{"--v-overlay-opacity":e.opacity,top:ze(K.value)},e.style],ref:s,onKeydown:U},W,r),[f(qZ,ve({color:y,modelValue:c.value&&!!e.scrim,ref:o},R.value),null),f(pa,{appear:!0,persisted:!0,transition:e.transition,target:_.value,onAfterEnter:he,onAfterLeave:Re},{default:()=>[dn(S("div",ve({ref:l,class:["v-overlay__content",e.contentClass],style:[L.value,H.value]},x.value,e.contentProps),[n.default?.({isActive:c})]),[[ci,c.value],[WI,{handler:$,closeConditional:Y,include:()=>[C.value]}]])]})])]})])),{activatorEl:C,scrimEl:o,target:_,animateClick:fe,contentEl:l,rootEl:s,globalTop:b,localTop:E,updateLocation:B}}}),Vb=Symbol("Forwarded refs");function Bb(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function fi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e[Vb]=n,new Proxy(e,{get(i,a){if(Reflect.has(i,a))return Reflect.get(i,a);if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const s of n)if(s.value&&Reflect.has(s.value,a)){const o=Reflect.get(s.value,a);return typeof o=="function"?o.bind(s.value):o}}},has(i,a){if(Reflect.has(i,a))return!0;if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const s of n)if(s.value&&Reflect.has(s.value,a))return!0;return!1},set(i,a,s){if(Reflect.has(i,a))return Reflect.set(i,a,s);if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const o of n)if(o.value&&Reflect.has(o.value,a))return Reflect.set(o.value,a,s);return!1},getOwnPropertyDescriptor(i,a){const s=Reflect.getOwnPropertyDescriptor(i,a);if(s)return s;if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const o of n){if(!o.value)continue;const l=Bb(o.value,a)??("_"in o.value?Bb(o.value._?.setupState,a):void 0);if(l)return l}for(const o of n){const l=o.value&&o.value[Vb];if(!l)continue;const u=l.slice();for(;u.length;){const c=u.shift(),d=Bb(c.value,a);if(d)return d;const p=c.value&&c.value[Vb];p&&u.push(...p)}}}}})}const KZ=Ee({fullscreen:Boolean,scrollable:Boolean,...Rn(lm({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:cx},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),Fr=$e()({name:"VDialog",props:KZ(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const i=gt(e,"modelValue"),{scopeId:a}=$u(),s=z();function o(){n("afterEnter"),(e.scrim||e.retainFocus)&&s.value?.contentEl&&!s.value.contentEl.contains(document.activeElement)&&s.value.contentEl.focus({preventScroll:!0})}function l(){n("afterLeave")}return Ne(i,async u=>{u||(await Ct(),s.value.activatorEl?.focus({preventScroll:!0}))}),Ue(()=>{const u=vo.filterProps(e),c=ve({"aria-haspopup":"dialog"},e.activatorProps),d=ve({tabindex:-1},e.contentProps);return f(vo,ve({ref:s,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},u,{modelValue:i.value,"onUpdate:modelValue":p=>i.value=p,"aria-modal":"true",activatorProps:c,contentProps:d,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:o,onAfterLeave:l},a),{activator:r.activator,default:function(){for(var p=arguments.length,h=new Array(p),g=0;g<p;g++)h[g]=arguments[g];return f(nn,{root:"VDialog"},{default:()=>[r.default?.(...h)]})}})}),fi({},s)}}),YZ=Ee({fluid:{type:Boolean,default:!1},...tt(),...Hr(),...Jt()},"VContainer"),ts=$e()({name:"VContainer",props:YZ(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=Or(),{dimensionStyles:i}=Wr(e);return Ue(()=>f(e.tag,{class:Oe(["v-container",{"v-container--fluid":e.fluid},r.value,e.class]),style:We([i.value,e.style])},n)),{}}}),t$=ny.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}),n$=ny.reduce((e,t)=>{const n="offset"+Ji(t);return e[n]={type:[String,Number],default:null},e},{}),r$=ny.reduce((e,t)=>{const n="order"+Ji(t);return e[n]={type:[String,Number],default:null},e},{}),GI={col:Object.keys(t$),offset:Object.keys(n$),order:Object.keys(r$)};function XZ(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const i=t.replace(e,"");r+=`-${i}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const JZ=["auto","start","end","center","baseline","stretch"],QZ=Ee({cols:{type:[Boolean,String,Number],default:!1},...t$,offset:{type:[String,Number],default:null},...n$,order:{type:[String,Number],default:null},...r$,alignSelf:{type:String,default:null,validator:e=>JZ.includes(e)},...tt(),...Jt()},"VCol"),Ae=$e()({name:"VCol",props:QZ(),setup(e,t){let{slots:n}=t;const r=D(()=>{const i=[];let a;for(a in GI)GI[a].forEach(o=>{const l=e[o],u=XZ(a,o,l);u&&i.push(u)});const s=i.some(o=>o.startsWith("v-col-"));return i.push({"v-col":!s||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),i});return()=>Ds(e.tag,{class:[r.value,e.class],style:e.style},n.default?.())}}),vx=["start","end","center"],i$=["space-between","space-around","space-evenly"];function yx(e,t){return ny.reduce((n,r)=>{const i=e+Ji(r);return n[i]=t(),n},{})}const ZZ=[...vx,"baseline","stretch"],s$=e=>ZZ.includes(e),a$=yx("align",()=>({type:String,default:null,validator:s$})),eee=[...vx,...i$],o$=e=>eee.includes(e),l$=yx("justify",()=>({type:String,default:null,validator:o$})),tee=[...vx,...i$,"stretch"],u$=e=>tee.includes(e),c$=yx("alignContent",()=>({type:String,default:null,validator:u$})),qI={align:Object.keys(a$),justify:Object.keys(l$),alignContent:Object.keys(c$)},nee={align:"align",justify:"justify",alignContent:"align-content"};function ree(e,t,n){let r=nee[e];if(n!=null){if(t){const i=t.replace(e,"");r+=`-${i}`}return r+=`-${n}`,r.toLowerCase()}}const iee=Ee({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:s$},...a$,justify:{type:String,default:null,validator:o$},...l$,alignContent:{type:String,default:null,validator:u$},...c$,...tt(),...Jt()},"VRow"),ct=$e()({name:"VRow",props:iee(),setup(e,t){let{slots:n}=t;const r=D(()=>{const i=[];let a;for(a in qI)qI[a].forEach(s=>{const o=e[s],l=ree(a,s,o);l&&i.push(l)});return i.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),i});return()=>Ds(e.tag,{class:["v-row",r.value,e.class],style:e.style},n.default?.())}}),ht=Nu("v-spacer","div","VSpacer"),see={key:0,class:"thumbnail-loading-container"},aee={key:1,class:"thumbnail-empty-container"},oee={key:2,class:"thumbnail-image-container"},lee=["src","alt"],uee={key:3,class:"thumbnail-info pa-3"},cee={class:"text-body-2 ml-1"},dee={class:"text-body-2 ml-1"},fee={class:"text-body-2 ml-1"},pee={class:"d-flex gap-2 overflow-x-auto pa-2"},mee=["onClick"],hee=je({__name:"JobThumbnailViewer",setup(e){const t=zt(Ht.JobThumbnailViewer),n=D(()=>t.isDialogOpened()),r=D(()=>t.context()),i=z([]),a=z(new Map),s=z(0),o=z(!1),l=z(null);Ne(()=>r.value?.jobId,async E=>{E&&n.value&&(l.value=E,await d(E))},{immediate:!0}),Ne(n,E=>{E||(i.value=[],a.value.clear(),s.value=0,l.value=null)});const u=D(()=>i.value[s.value]||null),c=D(()=>u.value&&a.value.get(u.value.index)||""),d=async E=>{o.value=!0;try{const C=(await Jr.getThumbnails(E)||[]).sort((P,_)=>{const A=P.width*P.height;return _.width*_.height-A});i.value=C,s.value=0,a.value.clear();for(const P of C){const _=await Jr.getThumbnailUrl(E,P.index);a.value.set(P.index,_)}}catch(w){console.error("Failed to load thumbnails:",w),i.value=[],a.value.clear()}finally{o.value=!1}},p=E=>a.value.get(E)||"",h=()=>{s.value<i.value.length-1&&s.value++},g=()=>{s.value>0&&s.value--},v=()=>{t.closeDialog()},y=E=>{E||v()},b=E=>{if(!E)return"0 B";const w=1024,C=["B","KB","MB"],P=Math.floor(Math.log(E)/Math.log(w));return`${Math.round(E/Math.pow(w,P)*100)/100} ${C[P]}`};return(E,w)=>(N(),Z(Fr,{modelValue:n.value,"onUpdate:modelValue":[w[0]||(w[0]=C=>n.value=C),y],"max-width":"900px"},{default:m(()=>[f(Ve,{class:"thumbnail-viewer-card"},{default:m(()=>[f(st,{class:"d-flex align-center bg-primary text-on-primary pa-3"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...w[1]||(w[1]=[k("image",-1)])]),_:1}),w[3]||(w[3]=S("span",{class:"text-subtitle-1"},"Job Thumbnail",-1)),f(ht),i.value.length>1?(N(),Z(He,{key:0,size:"small",variant:"flat",color:"primary-darken-1",class:"mr-2"},{default:m(()=>[k(V(s.value+1)+" / "+V(i.value.length),1)]),_:1})):se("",!0),f(te,{icon:"",variant:"text",onClick:v,color:"on-primary",size:"small"},{default:m(()=>[f(j,null,{default:m(()=>[...w[2]||(w[2]=[k("close",-1)])]),_:1})]),_:1})]),_:1}),f(qe,{class:"pa-0 position-relative"},{default:m(()=>[o.value?(N(),le("div",see,[f(Bn,{indeterminate:"",size:"64",color:"primary"})])):i.value.length===0?(N(),le("div",aee,[f(j,{size:"64",color:"grey"},{default:m(()=>[...w[4]||(w[4]=[k("image_not_supported",-1)])]),_:1}),w[5]||(w[5]=S("p",{class:"text-body-1 text-medium-emphasis mt-3"},"No thumbnails available",-1))])):(N(),le("div",oee,[S("img",{src:c.value,alt:`Thumbnail ${s.value+1}`,class:"thumbnail-main-image"},null,8,lee),i.value.length>1?(N(),Z(te,{key:0,icon:"",size:"large",class:"nav-arrow nav-arrow-left",color:"white",elevation:"4",onClick:g,disabled:s.value===0},{default:m(()=>[f(j,{size:"large"},{default:m(()=>[...w[6]||(w[6]=[k("chevron_left",-1)])]),_:1})]),_:1},8,["disabled"])):se("",!0),i.value.length>1?(N(),Z(te,{key:1,icon:"",size:"large",class:"nav-arrow nav-arrow-right",color:"white",elevation:"4",onClick:h,disabled:s.value===i.value.length-1},{default:m(()=>[f(j,{size:"large"},{default:m(()=>[...w[7]||(w[7]=[k("chevron_right",-1)])]),_:1})]),_:1},8,["disabled"])):se("",!0)])),u.value?(N(),le("div",uee,[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"auto"},{default:m(()=>[w[8]||(w[8]=S("span",{class:"text-caption text-medium-emphasis"},"Resolution:",-1)),S("span",cee,V(u.value.width)+"x"+V(u.value.height),1)]),_:1}),f(Ae,{cols:"auto"},{default:m(()=>[w[9]||(w[9]=S("span",{class:"text-caption text-medium-emphasis"},"Format:",-1)),S("span",dee,V(u.value.format?.toUpperCase()||"Unknown"),1)]),_:1}),f(Ae,{cols:"auto"},{default:m(()=>[w[10]||(w[10]=S("span",{class:"text-caption text-medium-emphasis"},"Size:",-1)),S("span",fee,V(b(u.value.size)),1)]),_:1})]),_:1})])):se("",!0)]),_:1}),i.value.length>1?(N(),Z(Wt,{key:0,class:"thumbnail-carousel pa-2"},{default:m(()=>[S("div",pee,[(N(!0),le(De,null,Vt(i.value,(C,P)=>(N(),le("div",{key:C.index,class:Oe(["thumbnail-carousel-item",{active:P===s.value}]),onClick:_=>s.value=P},[f(ai,{src:p(C.index),alt:`Thumbnail ${P+1}`,width:"60",height:"60",cover:"",class:"thumbnail-carousel-image"},null,8,["src","alt"])],10,mee))),128))])]),_:1})):se("",!0)]),_:1})]),_:1},8,["modelValue"]))}}),En=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},gee=En(hee,[["__scopeId","data-v-b03444b9"]]),vee=Symbol("Progress snackbar message event symbol"),yee=Symbol("Info snackbar message event symbol"),bee=Symbol("Error snackbar message event symbol");function Xt(){const{emit:e,on:t}=Si(vee),{emit:n,on:r}=Si(yee),{emit:i,on:a}=Si(bee);return{openProgressMessage:(s,o,l,u)=>e({key:s,title:o,value:l,completed:u}),openInfoMessage:s=>n(s),info:(s,o,l)=>n({title:s,subtitle:o,timeout:l}),openErrorMessage:s=>i(s),error:(s,o)=>i({title:s,subtitle:o}),onProgressMessage:t,onInfoMessage:r,onErrorMessage:a}}function ap(e,t=2){if(!e)return"0 Bytes";const n=1024,r=Math.max(t,0),i=["Bytes","KB","MB","GB","TB"],a=Math.floor(Math.log(e)/Math.log(n));return Number.parseFloat((e/Math.pow(n,a)).toFixed(r))+" "+i[a]}function See(e){const t=new Date(e);return new Intl.DateTimeFormat("default",{dateStyle:"long"}).format(t)}function yi(e){return e?new Date(e).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):"N/A"}function op(e){const t=new Date,n=new Date(e),r=Math.floor((t.getTime()-n.getTime())/(1e3*60));if(r<1)return"Just now";if(r<60)return`${r}m ago`;const i=Math.floor(r/60);if(i<24)return`${i}h ago`;const a=Math.floor(i/24);return a<7?`${a}d ago`:`${Math.floor(a/7)}w ago`}function ma(e){if(!e)return"-";const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60);return t>0?`${t}h ${n}m ${r}s`:n>0?`${n}m ${r}s`:`${r}s`}const d$=Nu("v-alert-title"),wee=Ee({iconSize:[Number,String],iconSizes:{type:Array,default:()=>[["x-small",10],["small",16],["default",24],["large",28],["x-large",32]]}},"iconSize");function Eee(e,t){return{iconSize:D(()=>{const r=new Map(e.iconSizes),i=e.iconSize??t()??"default";return r.has(i)?r.get(i):i})}}const xee=["success","info","warning","error"],kee=Ee({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:rt,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>xee.includes(e)},...tt(),...Ar(),...Hr(),...Pi(),...wee(),...pl(),..._d(),...gr(),...Jt(),...wn(),...na({variant:"flat"})},"VAlert"),kt=$e()({name:"VAlert",props:kee(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const i=gt(e,"modelValue"),a=ae(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),{iconSize:s}=Eee(e,()=>e.prominent?44:void 0),{themeClasses:o}=On(e),{colorClasses:l,colorStyles:u,variantClasses:c}=Du(()=>({color:e.color??e.type,variant:e.variant})),{densityClasses:d}=ps(e),{dimensionStyles:p}=Wr(e),{elevationClasses:h}=es(e),{locationStyles:g}=Lu(e),{positionClasses:v}=Td(e),{roundedClasses:y}=kr(e),{textColorClasses:b,textColorStyles:E}=Ci(()=>e.borderColor),{t:w}=Rr(),C=ae(()=>({"aria-label":w(e.closeLabel),onClick(P){i.value=!1,n("click:close",P)}}));return()=>{const P=!!(r.prepend||a.value),_=!!(r.title||e.title),A=!!(r.close||e.closable),I={density:e.density,icon:a.value,size:e.iconSize||e.prominent?s.value:void 0};return i.value&&f(e.tag,{class:Oe(["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},o.value,l.value,d.value,h.value,v.value,y.value,c.value,e.class]),style:We([u.value,p.value,g.value,e.style]),role:"alert"},{default:()=>[fl(!1,"v-alert"),e.border&&S("div",{key:"border",class:Oe(["v-alert__border",b.value]),style:We(E.value)},null),P&&S("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?f(nn,{key:"prepend-defaults",disabled:!a.value,defaults:{VIcon:{...I}}},r.prepend):f(j,ve({key:"prepend-icon"},I),null)]),S("div",{class:"v-alert__content"},[_&&f(d$,{key:"title"},{default:()=>[r.title?.()??e.title]}),r.text?.()??e.text,r.default?.()]),r.append&&S("div",{key:"append",class:"v-alert__append"},[r.append()]),A&&S("div",{key:"close",class:"v-alert__close"},[r.close?f(nn,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>[r.close?.({props:C.value})]}):f(te,ve({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},C.value),null)])]})}}}),Cee=["dotted","dashed","solid","double"],_ee=Ee({color:String,contentOffset:[Number,String,Array],gradient:Boolean,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,variant:{type:String,default:"solid",validator:e=>Cee.includes(e)},...tt(),...wn()},"VDivider"),et=$e()({name:"VDivider",props:_ee(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:i}=On(e),{textColorClasses:a,textColorStyles:s}=Ci(()=>e.color),o=D(()=>{const u={};return e.length&&(u[e.vertical?"height":"width"]=ze(e.length)),e.thickness&&(u[e.vertical?"borderRightWidth":"borderTopWidth"]=ze(e.thickness)),u}),l=ae(()=>{const u=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,c=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&u?ze(u):void 0,marginInline:!e.vertical&&u?ze(u):void 0,transform:c?`translate${e.vertical?"X":"Y"}(${ze(c)})`:void 0}});return Ue(()=>{const u=S("hr",{class:Oe([{"v-divider":!0,"v-divider--gradient":e.gradient&&!r.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},i.value,a.value,e.class]),style:We([o.value,s.value,{"--v-border-opacity":e.opacity},{"border-style":e.variant},e.style]),"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?S("div",{class:Oe(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[u,S("div",{class:"v-divider__content",style:We(l.value)},[r.default()]),u]):u}),{}}}),lp=Symbol.for("vuetify:v-expansion-panel"),f$=Ee({...tt(),...hx()},"VExpansionPanelText"),Kc=$e()({name:"VExpansionPanelText",props:f$(),setup(e,t){let{slots:n}=t;const r=mt(lp);if(!r)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:i,onAfterLeave:a}=gx(e,r.isSelected);return Ue(()=>f(dx,{onAfterLeave:a},{default:()=>[dn(S("div",{class:Oe(["v-expansion-panel-text",e.class]),style:We(e.style)},[n.default&&i.value&&S("div",{class:"v-expansion-panel-text__wrapper"},[n.default?.()])]),[[ci,r.isSelected.value]])]})),{}}}),p$=Ee({color:String,expandIcon:{type:rt,default:"$expand"},collapseIcon:{type:rt,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...tt(),...Hr()},"VExpansionPanelTitle"),Yc=$e()({name:"VExpansionPanelTitle",directives:{vRipple:_i},props:p$(),setup(e,t){let{slots:n}=t;const r=mt(lp);if(!r)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:i,backgroundColorStyles:a}=Un(()=>e.color),{dimensionStyles:s}=Wr(e),o=D(()=>({collapseIcon:e.collapseIcon,disabled:r.disabled.value,expanded:r.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),l=ae(()=>r.isSelected.value?e.collapseIcon:e.expandIcon);return Ue(()=>dn(S("button",{class:Oe(["v-expansion-panel-title",{"v-expansion-panel-title--active":r.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},i.value,e.class]),style:We([a.value,s.value,e.style]),type:"button",tabindex:r.disabled.value?-1:void 0,disabled:r.disabled.value,"aria-expanded":r.isSelected.value,onClick:e.readonly?void 0:r.toggle},[S("span",{class:"v-expansion-panel-title__overlay"},null),n.default?.(o.value),!e.hideActions&&f(nn,{defaults:{VIcon:{icon:l.value}}},{default:()=>[S("span",{class:"v-expansion-panel-title__icon"},[n.actions?.(o.value)??f(j,null,null)])]})]),[[_i,e.ripple]])),{}}}),bx=Ee({title:String,text:String,bgColor:String,...Pi(),...sm(),...gr(),...Jt(),...p$(),...f$()},"VExpansionPanel"),Xc=$e()({name:"VExpansionPanel",props:bx(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=Gc(e,lp),{backgroundColorClasses:i,backgroundColorStyles:a}=Un(()=>e.bgColor),{elevationClasses:s}=es(e),{roundedClasses:o}=kr(e),l=ae(()=>r?.disabled.value||e.disabled),u=D(()=>r.group.items.value.reduce((p,h,g)=>(r.group.selected.value.includes(h.id)&&p.push(g),p),[])),c=D(()=>{const p=r.group.items.value.findIndex(h=>h.id===r.id);return!r.isSelected.value&&u.value.some(h=>h-p===1)}),d=D(()=>{const p=r.group.items.value.findIndex(h=>h.id===r.id);return!r.isSelected.value&&u.value.some(h=>h-p===-1)});return bn(lp,r),Ue(()=>{const p=!!(n.text||e.text),h=!!(n.title||e.title),g=Yc.filterProps(e),v=Kc.filterProps(e);return f(e.tag,{class:Oe(["v-expansion-panel",{"v-expansion-panel--active":r.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":d.value,"v-expansion-panel--disabled":l.value},o.value,i.value,e.class]),style:We([a.value,e.style])},{default:()=>[S("div",{class:Oe(["v-expansion-panel__shadow",...s.value])},null),f(nn,{defaults:{VExpansionPanelTitle:{...g},VExpansionPanelText:{...v}}},{default:()=>[h&&f(Yc,{key:"title"},{default:()=>[n.title?n.title():e.title]}),p&&f(Kc,{key:"text"},{default:()=>[n.text?n.text():e.text]}),n.default?.()]})]})}),{groupItem:r}}}),Tee=["default","accordion","inset","popout"],m$=Ee({flat:Boolean,...im(),...Js(bx(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...wn(),...tt(),...Jt(),variant:{type:String,default:"default",validator:e=>Tee.includes(e)}},"VExpansionPanels"),Jc=$e()({name:"VExpansionPanels",props:m$(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:r,prev:i}=kd(e,lp),{themeClasses:a}=On(e),s=ae(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Er({VExpansionPanel:{bgColor:ae(()=>e.bgColor),collapseIcon:ae(()=>e.collapseIcon),color:ae(()=>e.color),eager:ae(()=>e.eager),elevation:ae(()=>e.elevation),expandIcon:ae(()=>e.expandIcon),focusable:ae(()=>e.focusable),hideActions:ae(()=>e.hideActions),readonly:ae(()=>e.readonly),ripple:ae(()=>e.ripple),rounded:ae(()=>e.rounded),static:ae(()=>e.static)}}),Ue(()=>f(e.tag,{class:Oe(["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},a.value,s.value,e.class]),style:We(e.style)},{default:()=>[n.default?.({prev:i,next:r})]})),{next:r,prev:i}}}),Sx=Symbol.for("vuetify:v-tabs"),h$=Ee({fixed:Boolean,sliderColor:String,sliderTransition:String,sliderTransitionDuration:[String,Number],hideSlider:Boolean,inset:Boolean,direction:{type:String,default:"horizontal"},...Rn(RF({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Ll=$e()({name:"VTab",props:h$(),setup(e,t){let{slots:n,attrs:r}=t;const{textColorClasses:i,textColorStyles:a}=Ci(()=>e.sliderColor),{backgroundColorClasses:s,backgroundColorStyles:o}=Un(()=>e.sliderColor),l=z(),u=z(),c=D(()=>e.direction==="horizontal"),d=D(()=>l.value?.group?.isSelected.value??!1);function p(y,b){return{opacity:[0,1]}}function h(y,b){return e.direction==="vertical"?{transform:["scaleY(0)","scaleY(1)"]}:{transform:["scaleX(0)","scaleX(1)"]}}function g(y,b){const E=b.getBoundingClientRect(),w=y.getBoundingClientRect(),C=c.value?"x":"y",P=c.value?"X":"Y",_=c.value?"right":"bottom",A=c.value?"width":"height",I=E[C],T=w[C],x=I>T?E[_]-w[_]:E[C]-w[C],R=Math.sign(x)>0?c.value?"right":"bottom":Math.sign(x)<0?c.value?"left":"top":"center",L=(Math.abs(x)+(Math.sign(x)<0?E[A]:w[A]))/Math.max(E[A],w[A])||0,F=E[A]/w[A]||0,W=1.5;return{transform:[`translate${P}(${x}px) scale${P}(${F})`,`translate${P}(${x/W}px) scale${P}(${(L-1)/W+1})`,"none"],transformOrigin:Array(3).fill(R)}}function v(y){let{value:b}=y;if(b){const E=l.value?.$el.parentElement?.querySelector(".v-tab--selected .v-tab__slider"),w=u.value;if(!E||!w)return;const C=getComputedStyle(E).color,P={fade:p,grow:h,shift:g}[e.sliderTransition??"shift"]??g,_=Number(e.sliderTransitionDuration)||({fade:400,grow:350,shift:225}[e.sliderTransition??"shift"]??225);Ba(w,{backgroundColor:[C,"currentcolor"],...P(w,E)},{duration:_,easing:tp})}}return Ue(()=>{const y=te.filterProps(e);return f(te,ve({symbol:Sx,ref:l,class:["v-tab",e.class,d.value&&e.inset?s.value:[]],style:[e.style,d.value&&e.inset?o.value:[]],tabindex:d.value?0:-1,role:"tab","aria-selected":String(d.value),active:!1},y,r,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":v}),{...n,default:()=>S(De,null,[n.default?.()??e.text,!e.hideSlider&&S("div",{ref:u,class:Oe(["v-tab__slider",i.value]),style:We(a.value)},null)])})}),fi({},l)}}),Iee=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:i}=e,a=.5,s=16;e.offsetX=n-t,e.offsetY=i-r,Math.abs(e.offsetY)<a*Math.abs(e.offsetX)&&(e.left&&n<t-s&&e.left(e),e.right&&n>t+s&&e.right(e)),Math.abs(e.offsetX)<a*Math.abs(e.offsetY)&&(e.up&&i<r-s&&e.up(e),e.down&&i>r+s&&e.down(e))};function Pee(e,t){const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,t.start?.({originalEvent:e,...t})}function Aee(e,t){const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,t.end?.({originalEvent:e,...t}),Iee(t)}function Ree(e,t){const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,t.move?.({originalEvent:e,...t})}function Oee(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>Pee(n,t),touchend:n=>Aee(n,t),touchmove:n=>Ree(n,t)}}function Nee(e,t){const n=t.value,r=n?.parent?e.parentElement:e,i=n?.options??{passive:!0},a=t.instance?.$.uid;if(!r||a===void 0)return;const s=Oee(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[a]=s,YL(s).forEach(o=>{r.addEventListener(o,s[o],i)})}function Dee(e,t){const n=t.value?.parent?e.parentElement:e,r=t.instance?.$.uid;if(!n?._touchHandlers||r===void 0)return;const i=n._touchHandlers[r];YL(i).forEach(a=>{n.removeEventListener(a,i[a])}),delete n._touchHandlers[r]}const CS={mounted:Nee,unmounted:Dee},g$=Symbol.for("vuetify:v-window"),v$=Symbol.for("vuetify:v-window-group"),wx=Ee({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},verticalArrows:[Boolean,String],touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},crossfade:Boolean,transitionDuration:Number,...tt(),...Jt(),...wn()},"VWindow"),Qc=$e()({name:"VWindow",directives:{vTouch:CS},props:wx(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=On(e),{isRtl:i}=Or(),{t:a}=Rr(),s=kd(e,v$),o=z(),l=D(()=>i.value?!e.reverse:e.reverse),u=Fe(!1),c=D(()=>{if(e.crossfade)return"v-window-crossfade-transition";const C=e.direction==="vertical"?"y":"x",_=(l.value?!u.value:u.value)?"-reverse":"";return`v-window-${C}${_}-transition`}),d=Fe(0),p=z(void 0),h=D(()=>s.items.value.findIndex(C=>s.selected.value.includes(C.id)));Ne(h,(C,P)=>{let _;const A={left:0,top:0};un&&P>=0&&(_=sx(o.value),A.left=_?.scrollLeft,A.top=_?.scrollTop);const I=s.items.value.length,T=I-1;I<=2?u.value=C<P:C===T&&P===0?u.value=!1:C===0&&P===T?u.value=!0:u.value=C<P,Ct(()=>{if(!un||!_)return;_.scrollTop!==A.top&&_.scrollTo({...A,behavior:"instant"}),requestAnimationFrame(()=>{if(!_)return;_.scrollTop!==A.top&&_.scrollTo({...A,behavior:"instant"})})})},{flush:"sync"}),bn(g$,{transition:c,isReversed:u,transitionCount:d,transitionHeight:p,rootRef:o});const g=ae(()=>e.continuous||h.value!==0),v=ae(()=>e.continuous||h.value!==s.items.value.length-1);function y(){g.value&&s.prev()}function b(){v.value&&s.next()}const E=D(()=>{const C=[],P={icon:i.value?e.nextIcon:e.prevIcon,class:`v-window__${l.value?"right":"left"}`,onClick:s.prev,"aria-label":a("$vuetify.carousel.prev")};C.push(g.value?n.prev?n.prev({props:P}):f(te,P,null):S("div",null,null));const _={icon:i.value?e.prevIcon:e.nextIcon,class:`v-window__${l.value?"left":"right"}`,onClick:s.next,"aria-label":a("$vuetify.carousel.next")};return C.push(v.value?n.next?n.next({props:_}):f(te,_,null):S("div",null,null)),C}),w=D(()=>e.touch===!1?e.touch:{...{left:()=>{l.value?y():b()},right:()=>{l.value?b():y()},start:P=>{let{originalEvent:_}=P;_.stopPropagation()}},...e.touch===!0?{}:e.touch});return Ue(()=>dn(f(e.tag,{ref:o,class:Oe(["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover","v-window--vertical-arrows":!!e.verticalArrows,"v-window--crossfade":!!e.crossfade},r.value,e.class]),style:We([e.style,{"--v-window-transition-duration":yu()?null:ze(e.transitionDuration,"ms")}])},{default:()=>[S("div",{class:"v-window__container",style:{height:p.value}},[n.default?.({group:s}),e.showArrows!==!1&&S("div",{class:Oe(["v-window__controls",{"v-window__controls--left":e.verticalArrows==="left"||e.verticalArrows===!0},{"v-window__controls--right":e.verticalArrows==="right"}])},[E.value])]),n.additional?.({group:s})]}),[[CS,w.value]])),{group:s}}}),Lee=Ee({...Rn(wx(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),Fee=$e()({name:"VTabsWindow",props:Lee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=mt(Sx,null),i=gt(e,"modelValue"),a=D({get(){return i.value!=null||!r?i.value:r.items.value.find(s=>r.selected.value.includes(s.id))?.value},set(s){i.value=s}});return Ue(()=>{const s=Qc.filterProps(e);return f(Qc,ve({_as:"VTabsWindow"},s,{modelValue:a.value,"onUpdate:modelValue":o=>a.value=o,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}});function um(){const e=Fe(!1);return Nt(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:ae(()=>e.value?void 0:{transition:"none !important"}),isBooted:ya(e)}}const Ex=Ee({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...tt(),...sm(),...hx()},"VWindowItem"),ha=$e()({name:"VWindowItem",directives:{vTouch:CS},props:Ex(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=mt(g$),i=Gc(e,v$),{isBooted:a}=um();if(!r||!i)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const s=Fe(!1),o=D(()=>a.value&&(r.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function l(){!s.value||!r||(s.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function u(){s.value||!r||(s.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=ze(r.rootRef.value?.clientHeight)),r.transitionCount.value+=1)}function c(){l()}function d(g){s.value&&Ct(()=>{!o.value||!s.value||!r||(r.transitionHeight.value=ze(g.clientHeight))})}const p=D(()=>{const g=r.isReversed.value?e.reverseTransition:e.transition;return o.value?{name:typeof g!="string"?r.transition.value:g,onBeforeEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:l,onLeaveCancelled:c,onEnter:d}:!1}),{hasContent:h}=gx(e,i.isSelected);return Ue(()=>f(pa,{transition:p.value,disabled:!a.value},{default:()=>[dn(S("div",{class:Oe(["v-window-item",i.selectedClass.value,e.class]),style:We(e.style)},[h.value&&n.default?.()]),[[ci,i.isSelected.value]])]})),{groupItem:i}}}),$ee=Ee({...Ex()},"VTabsWindowItem"),Mee=$e()({name:"VTabsWindowItem",props:$ee(),setup(e,t){let{slots:n}=t;return Ue(()=>{const r=ha.filterProps(e);return f(ha,ve({_as:"VTabsWindowItem"},r,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function Vee(e){return e?e.map(t=>ep(t)?t:{text:t,value:t}):[]}const Bee=Ee({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,inset:Boolean,insetPadding:[String,Number],insetRadius:[String,Number],sliderColor:String,...Js(h$(),["spaced","sliderTransition","sliderTransitionDuration"]),...px({mandatory:"force",selectedClass:"v-tab-item--selected"}),...Ar(),...Jt()},"VTabs"),y$=$e()({name:"VTabs",props:Bee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const i=gt(e,"modelValue"),a=D(()=>Vee(e.items)),{densityClasses:s}=ps(e),{backgroundColorClasses:o,backgroundColorStyles:l}=Un(()=>e.bgColor),{scopeId:u}=$u();return Er({VTab:{color:ae(e,"color"),direction:ae(e,"direction"),stacked:ae(e,"stacked"),fixed:ae(e,"fixedTabs"),inset:ae(e,"inset"),sliderColor:ae(e,"sliderColor"),sliderTransition:ae(e,"sliderTransition"),sliderTransitionDuration:ae(e,"sliderTransitionDuration"),hideSlider:ae(e,"hideSlider")}}),Ue(()=>{const c=Lg.filterProps(e),d=!!(r.window||e.items.length>0);return S(De,null,[f(Lg,ve(c,{modelValue:i.value,"onUpdate:modelValue":p=>i.value=p,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--inset":e.inset,"v-tabs--stacked":e.stacked},s.value,o.value,e.class],style:[{"--v-tabs-height":ze(e.height),"--v-tabs-inset-padding":e.inset?ze(e.insetPadding):void 0,"--v-tabs-inset-radius":e.inset?ze(e.insetRadius):void 0},l.value,e.style],role:"tablist",symbol:Sx},u,n),{default:r.default??(()=>a.value.map(p=>r.tab?.({item:p})??f(Ll,ve(p,{key:p.text,value:p.value,spaced:e.spaced}),{default:r[`tab.${p.value}`]?()=>r[`tab.${p.value}`]?.({item:p}):void 0}))),prev:r.prev,next:r.next}),d&&f(Fee,ve({modelValue:i.value,"onUpdate:modelValue":p=>i.value=p,key:"tabs-window"},u),{default:()=>[a.value.map(p=>r.item?.({item:p})??f(Mee,{value:p.value},{default:()=>r[`item.${p.value}`]?.({item:p})})),r.window?.()]})])}),{}}}),Uee=Ee({id:String,interactive:Boolean,text:String,...Rn(lm({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","retainFocus","captureFocus","disableInitialFocus"])},"VTooltip"),sn=$e()({name:"VTooltip",props:Uee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"modelValue"),{scopeId:i}=$u(),a=Ti(),s=ae(()=>e.id||`v-tooltip-${a}`),o=z(),l=D(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=D(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=ae(()=>e.transition!=null?e.transition:r.value?"scale-transition":"fade-transition"),d=D(()=>ve({"aria-describedby":s.value},e.activatorProps));return Ue(()=>{const p=vo.filterProps(e);return f(vo,ve({ref:o,class:["v-tooltip",{"v-tooltip--interactive":e.interactive},e.class],style:e.style,id:s.value},p,{modelValue:r.value,"onUpdate:modelValue":h=>r.value=h,transition:c.value,absolute:!0,location:l.value,origin:u.value,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},i),{activator:n.activator,default:function(){for(var h=arguments.length,g=new Array(h),v=0;v<h;v++)g[v]=arguments[v];return n.default?.(...g)??e.text}})}),fi({},o)}}),jee={class:"overview-content"},zee={class:"text-body-2 font-weight-medium"},Hee={class:"text-body-2 font-weight-medium"},Wee={class:"text-body-2 font-weight-medium"},Gee={class:"text-body-2"},qee={class:"text-body-2"},Kee={class:"text-body-2"},Yee={class:"text-body-2"},Xee={class:"text-caption font-weight-bold"},Jee={key:1,class:"text-medium-emphasis"},Qee={class:"text-body-2 font-weight-medium"},Zee={class:"text-body-2 font-weight-medium"},ete={class:"text-h6 text-green"},tte={class:"text-h6 text-green"},nte={class:"text-body-2"},rte={class:"text-body-2"},ite={key:0,class:"metadata-content"},ste={class:"text-h6"},ate={class:"text-h6"},ote={class:"text-body-2"},lte={class:"text-body-2"},ute={class:"text-body-2"},cte={class:"text-body-2"},dte={class:"text-body-2 font-weight-medium"},fte={class:"text-body-2"},pte={class:"text-body-2"},mte={class:"text-body-2"},hte={class:"text-body-2"},gte={class:"text-body-2"},vte={class:"text-body-2"},yte={class:"text-body-2"},bte={class:"text-body-2"},Ste={class:"text-body-2"},wte={class:"text-body-2"},Ete={class:"text-body-2"},xte={class:"text-body-2"},kte={class:"text-body-2"},Cte={class:"text-body-2"},_te={class:"text-body-2"},Tte={class:"text-body-2"},Ite={key:0,class:"statistics-content"},Pte={class:"text-body-2"},Ate={class:"text-body-2"},Rte={class:"text-body-2 font-weight-bold"},Ote={class:"text-body-2"},Nte={class:"text-h6"},Dte={class:"text-h6"},Lte={class:"text-caption font-weight-bold"},Fte={class:"text-h6"},$te={key:0,class:"text-caption mt-2"},Mte={class:"d-flex justify-end mb-2"},Vte={class:"json-viewer"},Bte=je({__name:"PrintJobDetailsDialog",setup(e){const t=zt(Ht.PrintJobDetailsDialog),{info:n,error:r}=Xt(),i=D(()=>t.isDialogOpened()),a=D(()=>t.context()),s=z(null),o=z(!1),l=z("overview"),u=z(!1),c=z(!1),d=z(!1);Ne(()=>a.value?.jobId,async T=>{if(T&&i.value){o.value=!0;try{s.value=await Jr.getJob(T)}catch(x){r("Failed to Load Job",x?.response?.data?.message||x?.message||"Could not load job details"),t.closeDialog()}finally{o.value=!1}}},{immediate:!0}),Ne(i,T=>{T?l.value="overview":s.value=null});const p=D(()=>s.value?.metadata?.fileFormat==="3mf"&&s.value.metadata.isMultiPlate===!0),h=D(()=>s.value?.metadata?.filamentUsedGrams||s.value?.metadata?.filamentUsedMm),g=D(()=>JSON.stringify(s.value,null,2)),v=D(()=>{const T=s.value?.status;return T!=="PRINTING"&&T!=="STARTING"}),y=D(()=>{const T=s.value?.status;return T!=="PRINTING"&&T!=="STARTING"}),b=()=>{t.closeDialog()},E=async()=>{if(s.value?.id){u.value=!0;try{s.value=await Jr.reAnalyzeJob(s.value.id),n("Job Re-Analysis Started",`Re-analysis triggered for "${s.value.fileName}". The job will be analyzed in the background.`,5e3)}catch(T){console.error("Failed to re-analyze job:",T),r("Re-Analysis Failed",T?.response?.data?.message||T?.message||"Failed to trigger job re-analysis. Please try again.")}finally{u.value=!1}}},w=()=>{d.value=!0},C=async()=>{if(s.value?.id){c.value=!0;try{await Jr.deleteJob(s.value.id),n("Job Deleted",`Successfully deleted job "${s.value.fileName}".`,3e3),d.value=!1,b()}catch(T){console.error("Failed to delete job:",T),r("Delete Failed",T?.response?.data?.message||T?.message||"Failed to delete job. Please try again.")}finally{c.value=!1}}},P=()=>{d.value=!1},_=T=>{if(!T)return"grey";switch(T){case"COMPLETED":return"success";case"FAILED":return"error";case"CANCELLED":return"warning";case"PRINTING":case"STARTING":return"primary";case"PAUSED":return"orange";case"QUEUED":return"info";case"PENDING":return"grey-darken-1";case"UNKNOWN":return"grey";default:return"grey"}},A=T=>T?T>=90?"success":T>=50?"primary":T>=25?"warning":"error":"grey",I=async()=>{try{await navigator.clipboard.writeText(g.value)}catch(T){console.error("Failed to copy:",T)}};return(T,x)=>(N(),Z(Fr,{modelValue:i.value,"onUpdate:modelValue":x[3]||(x[3]=R=>i.value=R),"max-width":"900px",scrollable:""},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center bg-primary text-on-primary"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...x[4]||(x[4]=[k("info",-1)])]),_:1}),x[6]||(x[6]=S("span",{class:"text-h6"},"Print Job Details",-1)),f(ht),f(te,{icon:"",variant:"text",onClick:b,color:"on-primary"},{default:m(()=>[f(j,null,{default:m(()=>[...x[5]||(x[5]=[k("close",-1)])]),_:1})]),_:1})]),_:1}),f(et),f(qe,{class:"pa-0"},{default:m(()=>[f(y$,{modelValue:l.value,"onUpdate:modelValue":x[0]||(x[0]=R=>l.value=R),"bg-color":"primary"},{default:m(()=>[f(Ll,{value:"overview"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...x[7]||(x[7]=[k("dashboard",-1)])]),_:1}),x[8]||(x[8]=k(" Overview ",-1))]),_:1}),f(Ll,{value:"metadata"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...x[9]||(x[9]=[k("description",-1)])]),_:1}),x[10]||(x[10]=k(" Metadata ",-1))]),_:1}),f(Ll,{value:"statistics"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...x[11]||(x[11]=[k("bar_chart",-1)])]),_:1}),x[12]||(x[12]=k(" Statistics ",-1))]),_:1}),f(Ll,{value:"raw"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...x[13]||(x[13]=[k("code",-1)])]),_:1}),x[14]||(x[14]=k(" Raw JSON ",-1))]),_:1})]),_:1},8,["modelValue"]),f(Qc,{modelValue:l.value,"onUpdate:modelValue":x[1]||(x[1]=R=>l.value=R),class:"pa-4"},{default:m(()=>[f(ha,{value:"overview"},{default:m(()=>[S("div",jee,[f(Ve,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(st,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[15]||(x[15]=[k("info",-1)])]),_:1}),x[16]||(x[16]=k(" Basic Information ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"6",md:"4"},{default:m(()=>[x[17]||(x[17]=S("div",{class:"text-caption text-medium-emphasis"},"Job ID",-1)),S("div",zee,"#"+V(s.value?.id),1)]),_:1}),f(Ae,{cols:"6",md:"4"},{default:m(()=>[x[18]||(x[18]=S("div",{class:"text-caption text-medium-emphasis"},"Status",-1)),f(He,{color:_(s.value?.status),size:"small",class:"mt-1"},{default:m(()=>[k(V(s.value?.status),1)]),_:1},8,["color"])]),_:1}),f(Ae,{cols:"6",md:"4"},{default:m(()=>[x[19]||(x[19]=S("div",{class:"text-caption text-medium-emphasis"},"File Format",-1)),f(He,{size:"small",class:"mt-1",variant:"outlined"},{default:m(()=>[k(V(s.value?.fileFormat?.toUpperCase()||"Unknown"),1)]),_:1})]),_:1}),f(Ae,{cols:"12",md:"6"},{default:m(()=>[x[20]||(x[20]=S("div",{class:"text-caption text-medium-emphasis"},"Printer",-1)),S("div",Hee,V(s.value?.printerName||`Printer #${s.value?.printerId}`||"Unknown"),1)]),_:1}),f(Ae,{cols:"12",md:"6"},{default:m(()=>[x[21]||(x[21]=S("div",{class:"text-caption text-medium-emphasis"},"File Name",-1)),S("div",Wee,V(s.value?.fileName),1)]),_:1})]),_:1})]),_:1})]),_:1}),f(Ve,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(st,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[22]||(x[22]=[k("schedule",-1)])]),_:1}),x[23]||(x[23]=k(" Timestamps ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[24]||(x[24]=S("div",{class:"text-caption text-medium-emphasis"},"Created",-1)),S("div",Gee,V(ne(yi)(s.value?.createdAt)),1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[25]||(x[25]=S("div",{class:"text-caption text-medium-emphasis"},"Updated",-1)),S("div",qee,V(ne(yi)(s.value?.updatedAt)),1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[26]||(x[26]=S("div",{class:"text-caption text-medium-emphasis"},"Started",-1)),S("div",Kee,V(ne(yi)(s.value?.startedAt)),1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[27]||(x[27]=S("div",{class:"text-caption text-medium-emphasis"},"Ended",-1)),S("div",Yee,V(ne(yi)(s.value?.endedAt)),1)]),_:1})]),_:1})]),_:1})]),_:1}),f(Ve,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(st,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[28]||(x[28]=[k("trending_up",-1)])]),_:1}),x[29]||(x[29]=k(" Progress & Duration ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"12",md:"6"},{default:m(()=>[x[30]||(x[30]=S("div",{class:"text-caption text-medium-emphasis mb-2"},"Progress",-1)),s.value?.progress!==null?(N(),Z(si,{key:0,"model-value":s.value?.progress,color:A(s.value?.progress),height:"25",rounded:""},{default:m(()=>[S("span",Xee,V(Math.round(s.value?.progress||0))+"% ",1)]),_:1},8,["model-value","color"])):(N(),le("div",Jee,"N/A"))]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[31]||(x[31]=S("div",{class:"text-caption text-medium-emphasis"},"Actual Duration",-1)),S("div",Qee,V(ne(ma)(s.value?.statistics?.actualPrintTimeSeconds)),1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[32]||(x[32]=S("div",{class:"text-caption text-medium-emphasis"},"Estimated Duration",-1)),S("div",Zee,V(ne(ma)(s.value?.metadata?.gcodePrintTimeSeconds)),1)]),_:1})]),_:1})]),_:1})]),_:1}),h.value?(N(),Z(Ve,{key:0,variant:"outlined"},{default:m(()=>[f(st,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[33]||(x[33]=[k("fitness_center",-1)])]),_:1}),x[34]||(x[34]=k(" Filament Usage ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[35]||(x[35]=S("div",{class:"text-caption text-medium-emphasis"},"Used (Grams)",-1)),S("div",ete,V(Math.round(s.value?.metadata?.filamentUsedGrams||0))+"g ",1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[36]||(x[36]=S("div",{class:"text-caption text-medium-emphasis"},"Used (Length)",-1)),S("div",tte,V(Math.round((s.value?.metadata?.filamentUsedMm||0)/1e3))+"m ",1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[37]||(x[37]=S("div",{class:"text-caption text-medium-emphasis"},"Filament Type",-1)),S("div",nte,V(s.value?.metadata?.filamentType||"Unknown"),1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[38]||(x[38]=S("div",{class:"text-caption text-medium-emphasis"},"Nozzle Ø",-1)),S("div",rte,V(s.value?.metadata?.nozzleDiameterMm||"N/A")+"mm ",1)]),_:1})]),_:1})]),_:1})]),_:1})):se("",!0),s.value?.statusReason?(N(),Z(kt,{key:1,type:"warning",class:"mt-4"},{default:m(()=>[x[39]||(x[39]=S("strong",null,"Status Reason:",-1)),k(" "+V(s.value.statusReason),1)]),_:1})):se("",!0)])]),_:1}),f(ha,{value:"metadata"},{default:m(()=>[s.value?.metadata?(N(),le("div",ite,[p.value?(N(),Z(Ve,{key:0,variant:"outlined",class:"mb-4"},{default:m(()=>[f(st,{class:"text-subtitle-1 bg-info"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[40]||(x[40]=[k("layers",-1)])]),_:1}),x[41]||(x[41]=k(" 3MF Multi-Plate Information ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"4"},{default:m(()=>[x[42]||(x[42]=S("div",{class:"text-caption text-medium-emphasis"},"Total Plates",-1)),S("div",ste,V(s.value.metadata.totalPlates),1)]),_:1}),f(Ae,{cols:"4"},{default:m(()=>[x[43]||(x[43]=S("div",{class:"text-caption text-medium-emphasis"},"Current Plate",-1)),S("div",ate,V(s.value.metadata.plateNumber),1)]),_:1}),f(Ae,{cols:"4"},{default:m(()=>[x[44]||(x[44]=S("div",{class:"text-caption text-medium-emphasis"},"Source File",-1)),S("div",ote,V(s.value.metadata.sourceFile),1)]),_:1})]),_:1}),s.value.metadata.plates?(N(),Z(Jc,{key:0,class:"mt-4"},{default:m(()=>[(N(!0),le(De,null,Vt(s.value.metadata.plates,(R,O)=>(N(),Z(Xc,{key:O},{default:m(()=>[f(Yc,null,{default:m(()=>[S("div",null,[f(j,{start:"",size:"small"},{default:m(()=>[...x[45]||(x[45]=[k("view_in_ar",-1)])]),_:1}),k(" Plate "+V(R.plateNumber)+" ",1),f(He,{size:"x-small",class:"ml-2",color:"primary"},{default:m(()=>[k(V(R.objects?.length||0)+" objects ",1)]),_:2},1024)])]),_:2},1024),f(Kc,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"4"},{default:m(()=>[x[46]||(x[46]=S("div",{class:"text-caption text-medium-emphasis"},"Print Time",-1)),S("div",lte,V(ne(ma)(R.gcodePrintTimeSeconds)),1)]),_:2},1024),f(Ae,{cols:"4"},{default:m(()=>[x[47]||(x[47]=S("div",{class:"text-caption text-medium-emphasis"},"Filament",-1)),S("div",ute,V(Math.round(R.filamentUsedGrams||0))+"g",1)]),_:2},1024),f(Ae,{cols:"4"},{default:m(()=>[x[48]||(x[48]=S("div",{class:"text-caption text-medium-emphasis"},"Layers",-1)),S("div",cte,V(R.totalLayers||"N/A"),1)]),_:2},1024)]),_:2},1024),f(et,{class:"my-2"}),x[49]||(x[49]=S("div",{class:"text-caption text-medium-emphasis mb-1"},"Objects:",-1)),(N(!0),le(De,null,Vt(R.objects,(L,F)=>(N(),Z(He,{key:F,size:"small",class:"mr-1 mb-1"},{default:m(()=>[k(V(L.name),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1024))),128))]),_:1})):se("",!0)]),_:1})]),_:1})):se("",!0),f(Ve,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(st,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[50]||(x[50]=[k("insert_drive_file",-1)])]),_:1}),x[51]||(x[51]=k(" File Information ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"12",md:"8"},{default:m(()=>[x[52]||(x[52]=S("div",{class:"text-caption text-medium-emphasis"},"File Name",-1)),S("div",dte,V(s.value.metadata.fileName),1)]),_:1}),f(Ae,{cols:"6",md:"4"},{default:m(()=>[x[53]||(x[53]=S("div",{class:"text-caption text-medium-emphasis"},"File Size",-1)),S("div",fte,V(ne(ap)(s.value.metadata.fileSize)),1)]),_:1}),f(Ae,{cols:"6",md:"4"},{default:m(()=>[x[54]||(x[54]=S("div",{class:"text-caption text-medium-emphasis"},"Format",-1)),S("div",pte,V(s.value.metadata.fileFormat?.toUpperCase()),1)]),_:1}),f(Ae,{cols:"6",md:"4"},{default:m(()=>[x[55]||(x[55]=S("div",{class:"text-caption text-medium-emphasis"},"Slicer",-1)),S("div",mte,V(s.value.metadata.slicerVersion||"Unknown"),1)]),_:1}),f(Ae,{cols:"6",md:"4"},{default:m(()=>[x[56]||(x[56]=S("div",{class:"text-caption text-medium-emphasis"},"Printer Model",-1)),S("div",hte,V(s.value.metadata.printerModel||"Unknown"),1)]),_:1})]),_:1})]),_:1})]),_:1}),f(Ve,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(st,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[57]||(x[57]=[k("settings",-1)])]),_:1}),x[58]||(x[58]=k(" Print Settings ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[59]||(x[59]=S("div",{class:"text-caption text-medium-emphasis"},"Layer Height",-1)),S("div",gte,V(s.value.metadata.layerHeight||"N/A")+"mm",1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[60]||(x[60]=S("div",{class:"text-caption text-medium-emphasis"},"First Layer Height",-1)),S("div",vte,V(s.value.metadata.firstLayerHeight||"N/A")+"mm",1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[61]||(x[61]=S("div",{class:"text-caption text-medium-emphasis"},"Bed Temp",-1)),S("div",yte,V(s.value.metadata.bedTemperature||"N/A")+"°C",1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[62]||(x[62]=S("div",{class:"text-caption text-medium-emphasis"},"Nozzle Temp",-1)),S("div",bte,V(s.value.metadata.nozzleTemperature||"N/A")+"°C",1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[63]||(x[63]=S("div",{class:"text-caption text-medium-emphasis"},"Fill Density",-1)),S("div",Ste,V(s.value.metadata.fillDensity||"N/A"),1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[64]||(x[64]=S("div",{class:"text-caption text-medium-emphasis"},"Total Layers",-1)),S("div",wte,V(s.value.metadata.totalLayers||"N/A"),1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[65]||(x[65]=S("div",{class:"text-caption text-medium-emphasis"},"Max Layer Z",-1)),S("div",Ete,V(s.value.metadata.maxLayerZ||"N/A")+"mm",1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[66]||(x[66]=S("div",{class:"text-caption text-medium-emphasis"},"Nozzle Diameter",-1)),S("div",xte,V(s.value.metadata.nozzleDiameterMm||"N/A")+"mm",1)]),_:1})]),_:1})]),_:1})]),_:1}),f(Ve,{variant:"outlined"},{default:m(()=>[f(st,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[67]||(x[67]=[k("fiber_manual_record",-1)])]),_:1}),x[68]||(x[68]=k(" Filament Details ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[69]||(x[69]=S("div",{class:"text-caption text-medium-emphasis"},"Filament Diameter",-1)),S("div",kte,V(s.value.metadata.filamentDiameterMm||"N/A")+"mm",1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[70]||(x[70]=S("div",{class:"text-caption text-medium-emphasis"},"Filament Density",-1)),S("div",Cte,V(s.value.metadata.filamentDensityGramsCm3||"N/A")+"g/cm³",1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[71]||(x[71]=S("div",{class:"text-caption text-medium-emphasis"},"Filament Type",-1)),S("div",_te,V(s.value.metadata.filamentType||"Unknown"),1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[72]||(x[72]=S("div",{class:"text-caption text-medium-emphasis"},"Total Used",-1)),S("div",Tte,V(s.value.metadata.totalFilamentUsedGrams||"N/A")+"g",1)]),_:1})]),_:1})]),_:1})]),_:1})])):(N(),Z(kt,{key:1,type:"info"},{default:m(()=>[...x[73]||(x[73]=[k("No metadata available for this job.",-1)])]),_:1}))]),_:1}),f(ha,{value:"statistics"},{default:m(()=>[s.value?.statistics?(N(),le("div",Ite,[f(Ve,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(st,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[74]||(x[74]=[k("timer",-1)])]),_:1}),x[75]||(x[75]=k(" Time Statistics ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[76]||(x[76]=S("div",{class:"text-caption text-medium-emphasis"},"Started At",-1)),S("div",Pte,V(ne(yi)(s.value.statistics.startedAt)),1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[77]||(x[77]=S("div",{class:"text-caption text-medium-emphasis"},"Ended At",-1)),S("div",Ate,V(ne(yi)(s.value.statistics.endedAt)),1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[78]||(x[78]=S("div",{class:"text-caption text-medium-emphasis"},"Actual Print Time",-1)),S("div",Rte,V(ne(ma)(s.value.statistics.actualPrintTimeSeconds)),1)]),_:1}),f(Ae,{cols:"6",md:"3"},{default:m(()=>[x[79]||(x[79]=S("div",{class:"text-caption text-medium-emphasis"},"Progress",-1)),S("div",Ote,V(s.value.statistics.progress||0)+"%",1)]),_:1})]),_:1})]),_:1})]),_:1}),f(Ve,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(st,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[80]||(x[80]=[k("layers",-1)])]),_:1}),x[81]||(x[81]=k(" Layer Information ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"6"},{default:m(()=>[x[82]||(x[82]=S("div",{class:"text-caption text-medium-emphasis"},"Current Layer",-1)),S("div",Nte,V(s.value.statistics.currentLayer||"N/A"),1)]),_:1}),f(Ae,{cols:"6"},{default:m(()=>[x[83]||(x[83]=S("div",{class:"text-caption text-medium-emphasis"},"Total Layers",-1)),S("div",Dte,V(s.value.statistics.totalLayers||"N/A"),1)]),_:1}),s.value.statistics.currentLayer&&s.value.statistics.totalLayers?(N(),Z(Ae,{key:0,cols:"12"},{default:m(()=>[f(si,{"model-value":s.value.statistics.currentLayer/s.value.statistics.totalLayers*100,color:"primary",height:"20",rounded:""},{default:m(()=>[S("span",Lte,V(s.value.statistics.currentLayer)+" / "+V(s.value.statistics.totalLayers),1)]),_:1},8,["model-value"])]),_:1})):se("",!0)]),_:1})]),_:1})]),_:1}),s.value.statistics.toolChanges?(N(),Z(Ve,{key:0,variant:"outlined"},{default:m(()=>[f(st,{class:"text-subtitle-1 section-header"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...x[84]||(x[84]=[k("build",-1)])]),_:1}),x[85]||(x[85]=k(" Multi-Tool Information ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"12"},{default:m(()=>[x[86]||(x[86]=S("div",{class:"text-caption text-medium-emphasis"},"Tool Changes",-1)),S("div",Fte,V(s.value.statistics.toolChanges),1)]),_:1})]),_:1})]),_:1})]),_:1})):se("",!0),s.value.statistics.failureReason?(N(),Z(kt,{key:1,type:"error",class:"mt-4"},{default:m(()=>[x[87]||(x[87]=S("div",{class:"text-subtitle-2 mb-1"},"Failure Reason",-1)),S("div",null,V(s.value.statistics.failureReason),1),s.value.statistics.failureTime?(N(),le("div",$te," Failed at: "+V(ne(yi)(s.value.statistics.failureTime)),1)):se("",!0)]),_:1})):se("",!0)])):(N(),Z(kt,{key:1,type:"info"},{default:m(()=>[...x[88]||(x[88]=[k("No statistics available for this job.",-1)])]),_:1}))]),_:1}),f(ha,{value:"raw"},{default:m(()=>[f(Ve,{variant:"outlined"},{default:m(()=>[f(qe,null,{default:m(()=>[S("div",Mte,[f(te,{size:"small",onClick:I,"prepend-icon":"content_copy"},{default:m(()=>[...x[89]||(x[89]=[k(" Copy JSON ",-1)])]),_:1})]),S("pre",Vte,V(g.value),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),f(et),f(Wt,null,{default:m(()=>[v.value?(N(),Z(te,{key:0,color:"info",variant:"elevated","prepend-icon":"refresh",loading:u.value,onClick:E},{default:m(()=>[x[91]||(x[91]=k(" Re-Analyze Job ",-1)),f(sn,{activator:"parent",location:"top"},{default:m(()=>[...x[90]||(x[90]=[k(" Trigger re-analysis of this print job to extract updated metadata from the file ",-1)])]),_:1})]),_:1},8,["loading"])):se("",!0),y.value?(N(),Z(te,{key:1,color:"error",variant:"outlined","prepend-icon":"delete",loading:c.value,onClick:w},{default:m(()=>[x[93]||(x[93]=k(" Delete Job ",-1)),f(sn,{activator:"parent",location:"top"},{default:m(()=>[...x[92]||(x[92]=[k(" Permanently delete this print job ",-1)])]),_:1})]),_:1},8,["loading"])):se("",!0),f(ht),f(te,{color:"primary",variant:"elevated",onClick:b},{default:m(()=>[...x[94]||(x[94]=[k("Close",-1)])]),_:1})]),_:1})]),_:1}),f(Fr,{modelValue:d.value,"onUpdate:modelValue":x[2]||(x[2]=R=>d.value=R),"max-width":"500",persistent:""},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center bg-error text-on-error"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...x[95]||(x[95]=[k("warning",-1)])]),_:1}),x[96]||(x[96]=S("span",null,"Delete Print Job?",-1))]),_:1}),f(qe,{class:"pt-4"},{default:m(()=>[x[98]||(x[98]=S("p",{class:"text-body-1 mb-2"}," Are you sure you want to delete this print job? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[x[97]||(x[97]=S("strong",null,"Job:",-1)),k(" "+V(s.value?.fileName),1)]),_:1}),x[99]||(x[99]=S("p",{class:"text-body-2 text-medium-emphasis"}," This action cannot be undone. All job data and metadata will be permanently removed. ",-1))]),_:1}),f(et),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:P,disabled:c.value},{default:m(()=>[...x[100]||(x[100]=[k(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"error",variant:"elevated",onClick:C,loading:c.value},{default:m(()=>[...x[101]||(x[101]=[k(" Delete Job ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))}}),Ute=En(Bte,[["__scopeId","data-v-f25665e6"]]),jte={class:"pa-3 text--primary"},ia=je({__name:"BaseDialog",props:{id:{type:String,required:!0},maxWidth:{type:String,default:"400px"}},emits:["escape","opened","beforeOpened"],setup(e,{emit:t}){const n=e,r=YE(),i=t,a=zt(n.id);function s(c){return i("opened",c)}function o(c){return i("beforeOpened",c)}Nt(async()=>{Hj("Escape",c=>{l.value&&(c.preventDefault(),u())}),r.registerDialogReference(n.id,{beforeOpenedCallback:o,openedCallback:s})}),xr(()=>{r.unregisterDialogReference(n.id)});const l=D(()=>{if(!n.id)return;const c=r.isDialogOpened(n.id);return c&&console.debug(`[BaseDialog ${n.id}] Showing dialog: ${a?.isDialogOpened()}`),c});function u(){i("escape")}return(c,d)=>(N(),Z(Fr,{"max-width":e.maxWidth,"retain-focus":!1,"model-value":l.value,persistent:"",onClose:d[1]||(d[1]=p=>u())},{default:m(()=>[cu(c.$slots,"default",{},()=>[S("div",jte,[d[4]||(d[4]=k(" No content defined in dialog. ",-1)),f(te,{onClick:d[0]||(d[0]=p=>ne(a).closeDialog())},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...d[2]||(d[2]=[k("close",-1)])]),_:1}),d[3]||(d[3]=k("Close ",-1))]),_:1})])])]),_:3},8,["max-width","model-value"]))}}),zte={class:"json-content pa-4"},Hte=je({__name:"JsonViewerDialog",setup(e){const t=Ht.JsonViewerDialog,n=zt(t),r=Xt(),i=D(()=>n.context()?.title||"JSON Viewer"),a=D(()=>{const l=n.context();if(!l?.data)return"No data";try{return JSON.stringify(l.data,null,2)}catch{return String(l.data)}});function s(){n.closeDialog()}async function o(){try{await navigator.clipboard.writeText(a.value),r.info("Copied to clipboard")}catch{r.error("Failed to copy to clipboard")}}return(l,u)=>(N(),Z(ia,{id:ne(t),"max-width":"800px",onEscape:u[1]||(u[1]=c=>s())},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...u[2]||(u[2]=[k("data_object",-1)])]),_:1}),S("span",null,V(i.value),1),f(ht),f(te,{icon:"",small:"",onClick:o},{default:m(()=>[f(j,{small:""},{default:m(()=>[...u[3]||(u[3]=[k("content_copy",-1)])]),_:1})]),_:1}),f(te,{icon:"",small:"",onClick:u[0]||(u[0]=c=>s())},{default:m(()=>[f(j,{small:""},{default:m(()=>[...u[4]||(u[4]=[k("close",-1)])]),_:1})]),_:1})]),_:1}),f(et),f(qe,{class:"pa-0"},{default:m(()=>[S("pre",zte,V(a.value),1)]),_:1})]),_:1})]),_:1},8,["id"]))}}),Wte=En(Hte,[["__scopeId","data-v-62ce94c4"]]);function _S(e,t){if(!e)throw new Error("No data to download");const n=new Blob([e],{type:"text/plain"}),r=document.createElement("a");r.href=URL.createObjectURL(n),r.download=t,r.click(),URL.revokeObjectURL(r.href)}class Qa extends di{static async getFiles(t){const n=`${Se.printerFilesRoute}/${t}`;return await this.get(n)}static async getThumbnail(t){const n=`${Se.printerFilesRoute}/${t}/thumbnail`;return await this.get(n)}static async getFileCache(t){const n=`${Se.printerFilesCacheRoute(t)}`;return await this.get(n)}static async selectAndPrintFile(t,n,r=!0){const i=Se.printerFilesStartPrintRoute(t);return await this.post(i,{filePath:n,print:r})}static async uploadFile(t,n,r=!0){const i=Se.printerFilesUploadRoute(t.id),a=new FormData;return a.append("startPrint",r.toString()),a.append("files[0]",n),this.postUpload(i,a,{onUploadProgress:s=>{Xt().openProgressMessage("single-file-upload",`Uploading file ${n.name}`,100*s.loaded/s.total,!1)}})}static async clearFiles(t){const n=`${Se.printerFilesClearRoute(t)}`;return this.delete(n)}static async purgeFiles(){const t=`${Se.printerFilesPurgeRoute}`;return this.post(t)}static async deleteFileOrFolder(t,n){const r=`${Se.printerFilesRoute}/${t}?path=${encodeURIComponent(n)}`;return this.delete(r)}static async downloadFile(t,n){const r=`${Se.printerFilesRoute}/${t}/download/${encodeURIComponent(n)}`,i=await this.getDownload(r);_S(i.data,n)}}const Gte=JSON.parse('["able","above","absent","absolute","abstract","abundant","academic","acceptable","accepted","accessible","accurate","accused","active","actual","acute","added","additional","adequate","adjacent","administrative","adorable","advanced","adverse","advisory","aesthetic","afraid","afraid","african","aggregate","aggressive","agreeable","agreed","agricultural","alert","alive","alive","alleged","allied","alone","alright","alternative","amateur","amazing","ambitious","american","amused","ancient","ancient","angry","angry","annoyed","annual","anonymous","anxious","anxious","appalling","apparent","applicable","appropriate","arab","arbitrary","architectural","armed","arrogant","artificial","artistic","ashamed","ashamed","asian","asleep","assistant","associated","atomic","attractive","australian","automatic","autonomous","available","average","average","average","awake","aware","awful","awful","awkward","back","bad","bad","bad","balanced","bare","basic","beautiful","beautiful","beautiful","beneficial","better","bewildered","big","big","big","binding","biological","bitter","bitter","bizarre","black","black","blank","blind","blonde","bloody","bloody","blue","blue","blushing","boiling","bold","bored","bored","boring","bottom","brainy","brave","brave","breakable","breezy","brief","brief","bright","bright","bright","brilliant","british","broad","broad","broken","broken","brown","bumpy","burning","busy","busy","calm","calm","canadian","capable","capitalist","careful","careful","casual","catholic","causal","cautious","cautious","central","certain","changing","characteristic","charming","charming","cheap","cheerful","cheerful","chemical","chief","chilly","chinese","chosen","christian","chronic","chubby","circular","civic","civil","civilian","classic","classical","clean","clean","clear","clear","clever","clever","clinical","close","closed","cloudy","clumsy","coastal","cognitive","coherent","cold","cold","collective","colonial","colorful","colossal","coloured","colourful","combative","combined","comfortable","comfortable","coming","commercial","common","communist","compact","comparable","comparative","compatible","competent","competitive","complete","complex","complicated","comprehensive","compulsory","conceptual","concerned","concerned","concrete","condemned","confident","confidential","confused","confused","conscious","conservation","conservative","considerable","consistent","constant","constitutional","contemporary","content","continental","continued","continuing","continuous","controlled","controversial","convenient","conventional","convinced","convincing","cooing","cool","cool","cooperative","corporate","correct","corresponding","costly","courageous","crazy","crazy","crazy","creative","creepy","creepy","criminal","critical","crooked","crooked","crowded","crucial","crude","cruel","cruel","cuddly","cultural","curious","curious","curly","current","curved","cute","daily","damaged","damp","damp","dangerous","dangerous","dark","dark","dead","dead","deaf","deafening","dear","decent","decisive","deep","deep","defeated","defensive","defiant","definite","deliberate","delicate","delicious","delicious","delighted","delightful","delightful","democratic","dependent","depressed","depressed","desirable","desperate","detailed","determined","determined","developed","developing","devoted","different","different","difficult","difficult","digital","diplomatic","direct","dirty","dirty","disabled","disappointed","disastrous","disciplinary","disgusted","distant","distinct","distinct","distinctive","distinguished","disturbed","disturbing","diverse","divine","dizzy","domestic","dominant","double","doubtful","doubtful","drab","dramatic","dreadful","driving","drunk","dry","dry","dual","due","dull","dull","dull","dusty","dutch","dying","dynamic","eager","eager","early","early","eastern","easy","easy","economic","educational","eerie","effective","efficient","elaborate","elated","elderly","eldest","electoral","electric","electrical","electronic","elegant","elegant","eligible","embarrassed","embarrassed","embarrassing","emotional","empirical","empty","empty","enchanting","encouraging","encouraging","endless","energetic","english","enormous","enthusiastic","enthusiastic","entire","entitled","envious","environmental","equal","equivalent","essential","established","estimated","ethical","ethnic","european","eventual","everyday","evident","evil","evil","evolutionary","exact","excellent","exceptional","excess","excessive","excited","excited","exciting","exclusive","existing","exotic","expected","expensive","experienced","experimental","explicit","extended","extensive","external","extra","extraordinary","extreme","exuberant","faint","faint","fair","fair","faithful","faithful","familiar","famous","famous","fancy","fantastic","fantastic","far","fascinating","fashionable","fast","fast","fat","fat","fat","fatal","favourable","favourite","federal","fellow","female","feminist","few","fierce","fierce","filthy","filthy","final","financial","fine","fine","firm","fiscal","fit","fixed","flaky","flat","flat","flexible","fluffy","fluttering","flying","following","fond","foolish","foolish","foreign","formal","formidable","forthcoming","fortunate","forward","fragile","frail","frantic","free","french","frequent","fresh","fresh","friendly","friendly","friendly","frightened","frightened","front","frozen","fucking","full","full-time","fun","functional","fundamental","funny","funny","funny","furious","future","fuzzy","gastric","gay","general","generous","genetic","gentle","gentle","genuine","geographical","german","giant","giant","gigantic","gigantic","given","glad","glamorous","gleaming","global","glorious","glorious","golden","good","good","gorgeous","gothic","governing","graceful","gradual","grand","grateful","greasy","great","great","great","greek","green","green","grey","grieving","grim","gross","grotesque","growing","grubby","grumpy","guilty","handicapped","handsome","handsome","happy","happy","happy","hard","hard","harsh","harsh","head","healthy","healthy","heavy","heavy","helpful","helpful","helpful","helpless","helpless","hidden","high","high","high-pitched","hilarious","hissing","historic","historical","hollow","holy","homeless","homeless","homely","hon","honest","horizontal","horrible","horrible","hostile","hot","hot","huge","huge","human","hungry","hungry","hurt","hushed","husky","icy","ideal","identical","ideological","ill","ill","illegal","imaginative","immediate","immense","immense","imperial","implicit","important","important","impossible","impossible","impressed","impressive","improved","inadequate","inappropriate","inc","inclined","increased","increasing","incredible","independent","indian","indirect","individual","industrial","inevitable","influential","informal","inherent","initial","injured","inland","inner","innocent","innocent","innovative","inquisitive","instant","institutional","insufficient","intact","integral","integrated","intellectual","intelligent","intense","intensive","interested","interesting","interim","interior","intermediate","internal","international","intimate","invisible","involved","iraqi","irish","irrelevant","islamic","isolated","israeli","italian","itchy","japanese","jealous","jewish","jittery","joint","jolly","jolly","joyous","judicial","juicy","junior","just","keen","key","kind","kind","kind","known","korean","labour","large","large","large-scale","late","late","latin","lazy","leading","left","legal","legislative","legitimate","lengthy","lesser","level","lexical","liable","liberal","light","light","light","like","likely","limited","linear","linguistic","liquid","literary","little","little","live","lively","lively","living","local","logical","lonely","lonely","long","long","long","long","long-term","loose","loose","lost","loud","loud","lovely","lovely","low","low","loyal","ltd","lucky","lucky","mad","magenta","magic","magnetic","magnificent","magnificent","main","major","male","mammoth","managerial","managing","manual","many","many","marginal","marine","marked","married","marvellous","marxist","mass","massive","massive","mathematical","mature","maximum","mean","meaningful","mechanical","medical","medieval","melodic","melted","mental","mere","metropolitan","mid","middle","middle-class","mighty","mighty","mild","military","miniature","minimal","minimum","ministerial","minor","miserable","misleading","missing","misty","mixed","moaning","mobile","moderate","modern","modern","modern","modest","molecular","monetary","monthly","moral","motionless","muddy","multiple","mushy","musical","mute","mutual","mysterious","mysterious","naked","narrow","narrow","nasty","nasty","national","native","natural","naughty","naval","near","nearby","neat","necessary","negative","neighbouring","nervous","nervous","net","neutral","new","new","nice","nice","nineteenth-century","noble","noisy","noisy","normal","northern","nosy","notable","novel","nuclear","numerous","numerous","nursing","nutritious","nutty","obedient","objective","obliged","obnoxious","obvious","occasional","occupational","odd","odd","official","ok","okay","old","old","old-fashioned","old-fashioned","olympic","only","open","open","operational","opposite","optimistic","oral","orange","orange","ordinary","ordinary","organic","organisational","original","orthodox","other","outdoor","outer","outrageous","outside","outstanding","outstanding","overall","overseas","overwhelming","painful","pale","palestinian","panicky","parallel","parental","parliamentary","part-time","partial","particular","passing","passive","past","patient","payable","peaceful","peculiar","perfect","perfect","permanent","persistent","personal","petite","philosophical","physical","pink","plain","plain","planned","plastic","pleasant","pleasant","pleased","poised","polish","polite","political","poor","poor","popular","positive","possible","post-war","potential","powerful","powerful","practical","precious","precious","precise","preferred","pregnant","preliminary","premier","prepared","present","presidential","pretty","pretty","previous","prickly","prickly","primary","prime","primitive","principal","printed","prior","private","probable","productive","professional","profitable","profound","progressive","prominent","promising","proper","proposed","prospective","protective","protestant","proud","proud","provincial","psychiatric","psychological","public","puny","pure","purple","purple","purring","puzzled","puzzled","quaint","quaint","qualified","quick","quick","quick","quickest","quiet","quiet","quiet","racial","radical","rainy","rainy","random","rapid","rapid","rare","rare","raspy","rational","ratty","raw","ready","real","real","realistic","rear","reasonable","recent","red","red","reduced","redundant","regional","registered","regular","regulatory","related","relative","relaxed","relevant","reliable","relieved","relieved","religious","reluctant","remaining","remarkable","remote","renewed","representative","repulsive","required","resident","residential","resonant","respectable","respective","responsible","resulting","retail","retired","revolutionary","rich","rich","ridiculous","right","rigid","ripe","rising","rival","roasted","robust","rolling","roman","romantic","rotten","rough","rough","round","round","round","royal","rubber","rude","ruling","running","rural","russian","sacred","sad","sad","safe","salty","satisfactory","satisfied","scared","scary","scary","scattered","scientific","scornful","scottish","scrawny","screeching","secondary","secret","secure","select","selected","selective","selfish","semantic","senior","sensible","sensitive","separate","serious","severe","sexual","shaggy","shaky","shallow","shallow","shared","sharp","sharp","sheer","shiny","shivering","shocked","short","short","short","short","short-term","shrill","shy","shy","sick","significant","silent","silent","silky","silly","silly","silly","similar","simple","single","skilled","skinny","sleepy","slight","slim","slimy","slippery","slow","slow","small","small","smart","smiling","smoggy","smooth","smooth","so-called","social","socialist","soft","soft","soft","solar","sole","solid","solid","sophisticated","sore","sorry","sound","sound","sour","southern","soviet","spanish","spare","sparkling","spatial","special","specific","specified","spectacular","spicy","spiritual","splendid","splendid","spontaneous","sporting","spotless","spotty","square","square","squealing","stable","stale","standard","static","statistical","statutory","steady","steady","steep","steep","sticky","sticky","stiff","still","stingy","stormy","straight","straight","straightforward","strange","strange","strange","strategic","strict","striking","striped","strong","strong","structural","stuck","stupid","stupid","subjective","subsequent","substantial","subtle","successful","successful","successive","sudden","sufficient","suitable","sunny","super","super","superb","superior","supporting","supposed","supreme","sure","surprised","surprising","surrounding","surviving","suspicious","sweet","sweet","swift","swiss","symbolic","sympathetic","systematic","tall","tall","tall","tame","tame","tan","tart","tasteless","tasty","technical","technological","teenage","temporary","tender","tender","tender","tense","terrible","terrible","territorial","testy","then","theoretical","thick","thin","thirsty","thorough","thoughtful","thoughtless","thundering","tight","tight","tiny","tiny","tired","tired","top","tory","total","tough","tough","toxic","traditional","tragic","tremendous","tricky","tropical","troubled","turkish","typical","ugliest","ugly","ugly","ugly","ultimate","unable","unacceptable","unaware","uncertain","unchanged","uncomfortable","unconscious","underground","underlying","unemployed","uneven","unexpected","unfair","unfortunate","unhappy","uniform","uninterested","unique","united","universal","unknown","unlikely","unnecessary","unpleasant","unsightly","unusual","unusual","unwilling","upper","upset","upset","uptight","urban","urgent","used","useful","useless","usual","vague","valid","valuable","variable","varied","various","varying","vast","vast","verbal","vertical","very","victorian","victorious","video-taped","violent","visible","visiting","visual","vital","vivacious","vivid","vocational","voiceless","voluntary","vulnerable","wandering","warm","wasteful","watery","weak","weak","wealthy","weary","wee","weekly","weird","welcome","well","well-known","welsh","western","wet","wet","wet","whispering","white","whole","wicked","wicked","wide","wide","wide-eyed","widespread","wild","wild","willing","wise","witty","wonderful","wonderful","wonderful","wooden","wooden","working","working-class","worldwide","worried","worried","worrying","worthwhile","worthy","written","wrong","wrong","yellow","yellow","young","young","yummy","zany","zany","zealous"]'),qte=JSON.parse(`["aardvark","abacus","abbey","abdomen","abolishment","abroad","abyssinian","accelerant","accelerator","accompanist","accordion","account","accountant","achieve","achiever","acid","acknowledgment","acoustic","acoustics","acrylic","act","action","active","activity","actor","actress","acupuncture","adapter","addiction","addition","address","adjustment","administration","adrenalin","adult","advancement","advantage","advertisement","advertising","advice","affair","affect","afghanistan","africa","aftermath","afternoon","aftershave","aftershock","afterthought","age","agency","agenda","agent","aglet","agreement","air","airbag","airbus","airfare","airforce","airline","airmail","airplane","airport","airship","alarm","alb","albatross","alcohol","alcove","alder","algebra","algeria","alibi","allergist","alley","alligator","alloy","almanac","almond","alpaca","alpenglow","alpenhorn","alpha","alphabet","alternative","altitude","alto","aluminium","aluminum","ambassador","ambulance","amendment","america","amount","amusement","anagram","analgesia","analog","analysis","analyst","anatomy","anesthesiology","anethesiologist","anger","angiosperm","angle","angora","angstrom","anguish","animal","anime","ankle","anklet","annual","anorak","answer","ant","antarctica","anteater","antechamber","antelope","anthony","anthropology","antler","anybody","anything","anywhere","apartment","ape","aperitif","apology","apparatus","apparel","appeal","appendix","apple","applewood","appliance","approval","april","apron","apse","aquarius","aquifer","arch","archaeology","archeology","archer","architect","architecture","arch-rival","area","argentina","argument","aries","arithmetic","arm","armadillo","armament","armchair","armenian","armoire","armor","arm-rest","army","arrival","arrow","art","artichoke","artificer","ascot","ash","ashram","ashtray","asia","asparagus","asphalt","assignment","assistance","associate","association","asterisk","astrakhan","astrolabe","astrologer","astrology","astronomy","atelier","athelete","athlete","atm","atmosphere","atom","atrium","attachment","attack","attempt","attendant","attention","attenuation","attic","attitude","attorney","attraction","audience","auditorium","august","aunt","australia","australian","author","authorisation","authority","authorization","automaton","avalanche","avenue","average","azimuth","babe","babies","baboon","babushka","baby","back","backbone","backdrop","backpack","bacon","bad","badge","badger","bafflement","bag","bagel","bagpipe","bagpipes","bail","bait","bake","baker","bakery","bakeware","balaclava","balalaika","balance","balcony","balinese","ball","balloon","ballpark","bamboo","banana","band","bandana","bandolier","bangladesh","bangle","banjo","bank","bankbook","banker","banquette","baobab","bar","barbara","barbeque","barber","barbiturate","barge","baritone","barium","barn","barometer","barracks","barstool","base","baseball","basement","basin","basis","basket","basketball","bass","bassinet","bassoon","bat","bath","bather","bathhouse","bathrobe","bathroom","bathtub","batter","battery","batting","battle","battleship","bay","bayou","beach","bead","beak","beam","bean","beanie","beanstalk","bear","beard","beast","beat","beautician","beauty","beaver","bed","bedroom","bee","beech","beef","beer","beet","beetle","beggar","beginner","begonia","behavior","beheading","behest","belfry","belgian","belief","believe","bell","belligerency","bellows","belly","belt","bench","bend","beneficiary","benefit","bengal","beret","berry","bestseller","best-seller","betty","beverage","beyond","bibliography","bicycle","bid","bidet","bifocals","big","big-rig","bijou","bike","bikini","bill","billboard","bin","biology","biplane","birch","bird","birdbath","birdcage","birdhouse","bird-watcher","birth","birthday","bit","bite","black","blackberry","blackboard","blackfish","bladder","blade","blame","blank","blanket","blazer","blight","blinker","blister","blizzard","block","blocker","blood","bloodflow","bloom","bloomers","blossom","blouse","blow","blowgun","blowhole","blue","blueberry","boar","board","boat","boat-building","boatload","boatyard","bobcat","body","bog","bolero","bolt","bomb","bomber","bondsman","bone","bongo","bonnet","bonsai","bonus","boogeyman","book","bookcase","bookend","booklet","booster","boot","bootee","bootie","boots","booty","border","bore","bosom","botany","bottle","bottling","bottom","bottom-line","boudoir","bough","boundary","bow","bower","bowl","bowler","bowling","bowtie","box","boxer","boxspring","boy","bra","brace","bracelet","bracket","brain","brake","branch","brand","brandy","brass","brassiere","bratwurst","brazil","bread","breadcrumb","break","breakfast","breakpoint","breast","breastplate","breath","breeze","brian","bribery","brick","bricklaying","bridge","brief","briefs","brilliant","british","broccoli","brochure","broiler","broker","brome","bronchitis","bronco","bronze","brooch","brood","brook","broom","brother","brother-in-law","brow","brown","brush","brushfire","brushing","bubble","bucket","buckle","bud","budget","buffer","buffet","bug","buggy","bugle","building","bulb","bull","bulldozer","bullet","bull-fighter","bumper","bun","bunch","bungalow","bunghole","bunkhouse","burglar","burlesque","burma","burn","burn-out","burst","bus","bush","business","bust","bustle","butane","butcher","butter","button","buy","buyer","buzzard","cabana","cabbage","cabin","cabinet","cable","caboose","cacao","cactus","caddy","cadet","cafe","caftan","cake","calcification","calculation","calculator","calculus","calendar","calf","calico","call","calm","camel","cameo","camera","camp","campaign","campanile","can","canada","canadian","canal","cancel","cancer","candelabra","candidate","candle","candy","cane","cannon","canoe","canon","canopy","canteen","canvas","cap","cape","capital","capitulation","capon","cappelletti","cappuccino","capricorn","captain","caption","car","caravan","carbon","card","cardboard","cardigan","care","cargo","carload","carnation","carol","carotene","carp","carpenter","carpet","carport","carriage","carrier","carrot","carry","cart","cartilage","cartload","cartoon","cartridge","cascade","case","casement","cash","cashier","casino","casserole","cassock","cast","castanet","castanets","castle","cat","catacomb","catamaran","category","caterpillar","cathedral","catsup","cattle","cauliflower","cause","caution","cave","c-clamp","cd","ceiling","celebration","celeriac","celery","celeste","cell","cellar","cello","celsius","cement","cemetery","cenotaph","census","cent","centenarian","center","centimeter","centurion","century","cephalopod","ceramic","cereal","certification","cesspool","chador","chafe","chain","chainstay","chair","chairlift","chairman","chairperson","chairwoman","chaise","chalet","chalice","chalk","champion","chance","chandelier","change","channel","chap","chapel","character","chard","charge","charity","charlatan","charles","charm","chart","chastity","chasuble","chateau","chauffeur","chauvinist","check","checkroom","cheek","cheese","cheetah","chef","chemistry","cheque","cherries","cherry","chess","chest","chick","chicken","chicory","chief","chiffonier","child","childhood","children","chill","chime","chimpanzee","chin","china","chinese","chino","chipmunk","chit-chat","chivalry","chive","chocolate","choice","choker","chop","chopstick","chord","chowder","christmas","christopher","chrome","chromolithograph","chronograph","chronometer","chub","chug","church","churn","cicada","cinema","circle","circulation","circumference","cirrus","citizenship","city","civilisation","clam","clank","clapboard","clarinet","clasp","class","claus","clave","clavicle","clavier","cleaner","cleat","cleavage","clef","cleric","clerk","click","client","cliff","climb","clip","clipper","cloak","cloakroom","clock","clockwork","clogs","cloister","close","closet","cloth","clothes","clothing","cloud","cloudburst","cloudy","clove","clover","club","clutch","coach","coal","coast","coat","cob","cobweb","cockpit","cockroach","cocktail","cocoa","cod","codon","codpiece","coevolution","coffee","coffin","coil","coin","coinsurance","coke","cold","coliseum","collar","collection","college","collision","colloquia","colombia","colon","colonisation","colony","color","colt","column","columnist","comb","combat","combination","comfort","comfortable","comic","comma","command","commercial","commission","committee","communicant","communication","community","company","comparison","competition","competitor","complement","complex","component","comportment","composer","composition","compost","compulsion","computer","comradeship","concert","concrete","condition","condominium","condor","conductor","cone","confectionery","conference","confidence","confirmation","conflict","conga","congo","congressman","congressperson","congresswoman","conifer","connection","consent","consequence","console","consonant","conspirator","constant","constellation","construction","consul","consulate","contact lens","contagion","contest","context","continent","contract","contrail","contrary","contribution","control","convection","convert","convertible","cook","cookie","cooking","coonskin","cope","cop-out","copper","co-producer","copy","copyright","copywriter","cord","corduroy","cork","cormorant","corn","cornerstone","cornet","corral","correspondent","corridor","corsage","cost","costume","cot","cottage","cotton","couch","cougar","cough","council","councilman","councilor","councilperson","councilwoman","counter","counter-force","countess","country","couple","courage","course","court","cousin","covariate","cover","coverall","cow","cowbell","cowboy","crab","crack","cracker","crackers","cradle","craftsman","crash","crate","cravat","craw","crawdad","crayfish","crayon","cream","creative","creator","creature","creche","credenza","credit","creditor","creek","creme brulee","crest","crew","crib","cribbage","cricket","cricketer","crime","criminal","crinoline","criteria","criterion","criticism","crocodile","crocus","croissant","crook","crop","cross","cross-contamination","cross-stitch","crotch","croup","crow","crowd","crown","crude","crush","cry","crystallography","cub","cuban","cuckoo","cucumber","cuff-links","cultivar","cultivator","culture","culvert","cummerbund","cup","cupboard","cupcake","cupola","curio","curl","curler","currency","current","cursor","curtain","curve","cushion","custard","custodian","customer","cut","cuticle","cutlet","cutover","cutting","cyclamen","cycle","cyclone","cylinder","cymbal","cymbals","cynic","cyst","cytoplasm","dad","daffodil","dagger","dahlia","daisy","damage","dame","dance","dancer","danger","daniel","dark","dart","dash","dashboard","database","date","daughter","david","day","daybed","dead","deadline","deal","dealer","dear","death","deathwatch","deborah","debt","debtor","decade","december","decimal","decision","deck","declination","decongestant","decrease","decryption","dedication","deer","defense","deficit","deformation","degree","delete","delivery","demand","demur","den","denim","dentist","deodorant","department","dependent","deployment","deposit","depressive","depth","deputy","derby","derrick","description","desert","design","designer","desire","desk","dessert","destiny","destroyer","destruction","detail","detainment","detective","detention","determination","development","deviance","dew","dhow","diadem","diamond","diaphragm","diarist","dibble","dickey","dictaphone","diction","dictionary","diet","dietician","difference","differential","difficulty","digestion","digger","digital","dilapidation","dill","dime","dimension","dimple","diner","dinghy","dinner","dinosaur","diploma","dipstick","direction","director","dirndl","dirt","disadvantage","disarmament","disaster","disco","disconnection","discount","discovery","discrepancy","discussion","disease","disembodiment","disengagement","disguise","disgust","dish","dishes","dishwasher","disk","display","disposer","distance","distribution","distributor","district","divan","diver","divide","divider","diving","division","dock","doctor","document","doe","dog","dogsled","dogwood","doll","dollar","dolman","dolphin","domain","donald","donkey","donna","door","doorknob","doorpost","dorothy","dory","dot","double","doubling","doubt","doubter","downforce","downgrade","downtown","draft","dragon","dragonfly","dragster","drain","drake","drama","dramaturge","draw","drawbridge","drawer","drawing","dream","dredger","dress","dresser","dressing","drill","drink","drive","driver","driveway","driving","drizzle","dromedary","drop","drug","drum","drummer","drunk","dry","dryer","duck","duckling","dud","duffel","dugout","dulcimer","dumbwaiter","dump truck","dune buggy","dungarees","dungeon","duplexer","dust","dust storm","duster","duty","dwarf","dwelling","dynamo","eagle","ear","eardrum","earmuffs","earplug","earrings","earth","earthquake","earthworm","ease","easel","east","eave","eavesdropper","e-book","ecclesia","eclipse","ecliptic","economics","ecumenist","eddy","edge","edger","editor","editorial","education","edward","eel","effacement","effect","effective","efficacy","efficiency","effort","egg","egghead","eggnog","eggplant","egypt","eight","ejector","elbow","election","electrocardiogram","element","elephant","elevator","elixir","elizabeth","elk","ellipse","elm","elongation","embossing","emergence","emergent","emery","emotion","employ","employee","employer","employment","empowerment","emu","encirclement","encyclopedia","end","endothelium","enemy","energy","engine","engineer","engineering","english","enigma","enquiry","entertainment","entrance","entry","environment","epauliere","epee","ephemera","ephemeris","epoch","eponym","epoxy","equinox","equipment","era","e-reader","error","escape","espadrille","espalier","establishment","estate","estimate","estrogen","estuary","ethernet","ethiopia","euphonium","eurocentrism","europe","evaluator","evening","evening-wear","event","eviction","evidence","evocation","examination","examiner","example","exchange","exclamation","excuse","executor","exhaust","ex-husband","exile","existence","exit","expansion","expansionism","experience","expert","explanation","exposition","extension","extent","extreme","ex-wife","eye","eyeball","eyebrow","eyebrows","eyeglasses","eyelash","eyelashes","eyelid","eyelids","eyeliner","eyestrain","face","facelift","facet","facilities","facsimile","fact","factor","factory","faculty","fahrenheit","fairies","fairy","fall","falling-out","familiar","family","fan","fang","fanlight","fanny","fanny-pack","farm","farmer","fascia","fat","father","father-in-law","fatigues","faucet","fault","fawn","fax","fear","feast","feather","feature","february","fedelini","fedora","feed","feedback","feeling","feet","felony","female","fen","fence","fencing","fender","ferry","ferryboat","fertilizer","few","fiber","fiberglass","fibre","fiction","fiddle","field","fifth","fight","fighter","figurine","file","fill","filly","filth","final","finance","find","fine","finger","fingernail","finisher","fir","fire","fireman","fireplace","firewall","fish","fishbone","fisherman","fishery","fishmonger","fishnet","fisting","fix","fixture","flag","flame","flanker","flare","flash","flat","flatboat","flavor","flax","fleck","fleece","flesh","flight","flintlock","flip-flops","flock","flood","floor","floozie","flower","flu","flugelhorn","fluke","flute","fly","flytrap","foam","fob","focus","fog","fold","folder","fondue","font","food","foot","football","footnote","footrest","foot-rest","footstool","foray","force","forearm","forebear","forecast","forehead","forest","forestry","forgery","fork","form","formal","format","former","fort","fortnight","fortress","forum","foundation","fountain","fowl","fox","foxglove","fragrance","frame","france","fratricide","fraudster","frazzle","freckle","freeplay","freeze","freezer","freight","freighter","french","freon","fresco","friction","friday","fridge","friend","friendship","frigate","fringe","frock","frog","front","frost","frown","fruit","frustration","fuel","fulfillment","full","function","fundraising","funny","fur","furnace","furniture","fusarium","futon","future","gaffer","gaiters","gale","gall-bladder","galleon","gallery","galley","gallon","galoshes","game","gamebird","gamma-ray","gander","gap","garage","garb","garbage","garden","garlic","garment","garter","gas","gasoline","gastropod","gate","gateway","gather","gauge","gauntlet","gazebo","gazelle","gear","gearshift","geese","gelding","gem","gemini","gemsbok","gender","gene","general","genetics","geography","geology","geometry","george","geranium","gerbil","geriatrician","german","germany","geyser","ghana","gherkin","ghost","giant","gigantism","ginseng","giraffe","girdle","girl","git","glad","gladiolus","gland","glass","glasses","glen","glider","gliding","glockenspiel","glove","gloves","glue","glut","goal","goat","gobbler","godmother","goggles","go-kart","gold","goldfish","golf","gondola","gong","good","goodbye","good-bye","goodie","goose","gopher","gore-tex","gorilla","gosling","governance","government","governor","gown","grab-bag","grade","grain","gram","granddaughter","grandfather","grandmom","grandmother","grandson","granny","grape","grapefruit","graph","graphic","grass","grasshopper","grassland","gray","grease","great","great-grandfather","great-grandmother","greece","greek","green","greenhouse","grenade","grey","grief","grill","grip","grit","ground","group","grouper","grouse","growth","guarantee","guatemalan","guest","guestbook","guide","guilty","guitar","guitarist","gum","gumshoes","gun","gutter","guy","gym","gymnast","gynaecology","gyro","hacienda","hacksaw","hackwork","hail","hair","haircut","half","half-brother","half-sister","halibut","hall","hallway","hamaki","hamburger","hammer","hammock","hamster","hand","handball","hand-holding","handicap","handle","handlebar","handmaiden","handsaw","hang","harbor","harbour","hardboard","hardcover","hardening","hardhat","hard-hat","hardware","harm","harmonica","harmony","harp","harpooner","harpsichord","hassock","hat","hatbox","hatchet","hate","haunt","haversack","hawk","hay","head","headlight","headline","headrest","health","hearing","heart","heartache","hearth","hearthside","heart-throb","heartwood","heat","heater","heaven","heavy","hedge","hedgehog","heel","height","heirloom","helen","helicopter","helium","hell","hellcat","helmet","helo","help","hemp","hen","herb","heron","herring","hexagon","heyday","hide","high","highlight","high-rise","highway","hill","himalayan","hip","hippodrome","hippopotamus","historian","history","hit","hive","hobbies","hobbit","hobby","hockey","hoe","hog","hold","hole","holiday","home","homogenate","homonym","honey","honeybee","honoree","hood","hoof","hook","hope","hops","horn","hornet","horse","hose","hosiery","hospice","hospital","host","hostel","hostess","hot","hot-dog","hotel","hour","hourglass","house","houseboat","hovel","hovercraft","howitzer","hub","hubcap","hugger","human","humidity","humor","hunger","hurdler","hurricane","hurry","hurt","husband","hut","hutch","hyacinth","hybridisation","hydrant","hydraulics","hydrofoil","hydrogen","hyena","hygienic","hyphenation","hypochondria","hypothermia","ice","icebreaker","icecream","ice-cream","icicle","icon","idea","ideal","igloo","ikebana","illegal","image","imagination","impact","implement","importance","impress","imprisonment","improvement","impudence","impulse","inbox","incandescence","inch","income","increase","independent","index","india","indigence","indonesia","industry","infancy","inflammation","inflation","information","infusion","inglenook","ingrate","initial","initiative","in-joke","injury","ink","in-laws","inlay","inn","innervation","innocent","input","inquiry","inscription","insect","inside","insolence","inspector","instruction","instrument","instrumentalist","instrumentation","insulation","insurance","insurgence","intelligence","intention","interactive","interest","interferometer","interior","interloper","internal","internet","interpreter","intervenor","interview","interviewer","intestine","intestines","invention","inventor","inventory","invite","invoice","ipad","iran","iraq","iridescence","iris","iron","ironclad","island","israel","issue","italian","italy","jackal","jacket","jaguar","jail","jailhouse","jam","james","january","japan","japanese","jar","jasmine","jason","jaw","jeans","jeep","jeff","jelly","jellyfish","jennifer","jet","jewel","jewelry","jiffy","job","jockey","jodhpurs","joey","jogging","john","join","joke","joseph","jot","journey","judge","judo","juggernaut","juice","july","jumbo","jump","jumper","jumpsuit","june","junior","junk","junker","junket","jury","justice","jute","kale","kamikaze","kangaroo","karate","karen","kayak","kazoo","kendo","kenneth","kenya","ketch","ketchup","kettle","kettledrum","kevin","key","keyboard","keyboarding","keystone","kick","kick-off","kid","kidney","kidneys","kielbasa","kill","kilogram","kilometer","kilt","kimberly","kimono","kind","king","kingfish","kiosk","kiss","kitchen","kite","kitten","kitty","kleenex","klomps","knee","kneejerk","knickers","knife","knife-edge","knight","knitting","knot","knowledge","knuckle","koala","kohlrabi","korean","lab","laborer","lace","lacquerware","ladder","ladybug","lake","lamb","lamp","lan","lanai","land","landform","landmine","language","lantern","lap","laparoscope","lapdog","laptop","larch","larder","lark","laryngitis","lasagna","latency","latex","lathe","latte","laugh","laundry","laura","law","lawn","lawsuit","lawyer","layer","lead","leader","leaf","league","leaker","learning","leash","leather","leaver","lecture","leek","leg","legal","legging","legume","lei","lemon","lemonade","lemur","length","lentil","leo","leopard","leotard","leprosy","let","letter","lettuce","level","lever","leverage","libra","librarian","library","license","lier","life","lift","light","lighting","lightning","lilac","lily","limit","limo","line","linen","liner","link","linseed","lion","lip","lipstick","liquid","liquor","lisa","list","literature","litigation","litter","liver","living","lizard","llama","loaf","loafer","loan","lobotomy","lobster","lock","locker","locket","locomotive","locust","loft","log","loggia","loincloth","look","loss","lot","lotion","lounge","lout","love","low","loyalty","luck","luggage","lumber","lumberman","lunch","luncheonette","lunchroom","lung","lunge","lute","luttuce","lycra","lye","lymphocyte","lynx","lyocell","lyre","lyric","macadamia","macaroni","machine","macrame","macrofauna","maelstrom","maestro","magazine","magic","magician","maid","maiden","mail","mailbox","mailman","maintenance","major","major-league","makeup","malaysia","male","mall","mallet","mambo","mammoth","man","management","manager","mandarin","mandolin","mangrove","manhunt","maniac","manicure","manner","manor","mansard","manservant","mansion","mantel","mantle","mantua","manufacturer","manx","map","maple","maraca","maracas","marble","march","mare","margaret","margin","maria","mariachi","marimba","mark","market","marketing","marksman","marriage","marsh","marshland","marxism","mary","mascara","mask","mass","massage","master","mastication","mastoid","mat","match","material","math","mattock","mattress","maximum","may","maybe","mayonnaise","mayor","meal","meaning","measure","meat","mechanic","medicine","medium","meet","meeting","megalomaniac","melody","member","membership","memory","men","menorah","mention","menu","mercury","mess","message","metal","metallurgist","meteor","meteorology","meter","methane","method","methodology","metro","metronome","mexican","mexico","mezzanine","mice","michael","michelle","microlending","microwave","mid-course","middle","middleman","midi","midline","midnight","midwife","might","migrant","mile","milk","milkshake","millennium","millimeter","millisecond","mime","mimosa","mind","mine","mini","minibus","minion","mini-skirt","minister","minor","minor-league","mint","minute","mirror","miscarriage","miscommunication","misfit","misogyny","misplacement","misreading","missile","mission","mist","mistake","mister","miter","mitten","mix","mixer","mixture","moat","mobile","moccasins","mocha","mode","model","modem","mole","mom","moment","monastery","monasticism","monday","money","monger","monitor","monkey","monocle","monotheism","monsoon","monster","month","mood","moon","moonscape","moonshine","mop","Mormon","morning","morocco","morsel","mortise","mosque","mosquito","most","motel","moth","mother","mother-in-law","motion","motor","motorboat","motorcar","motorcycle","mound","mountain","mouse","mouser","mousse","moustache","mouth","mouton","move","mover","movie","mower","mug","mukluk","mule","multimedia","muscle","musculature","museum","music","music-box","musician","music-making","mustache","mustard","mutt","myanmar","mycoplasma","nail","name","naming","nancy","nanoparticle","napkin","narcissus","nation","naturalisation","nature","neat","neck","necklace","necktie","necromancer","need","needle","negligee","neologism","neon","nepal","nephew","nerve","nest","net","netball","netbook","netsuke","network","neurobiologist","neuropathologist","neuropsychiatry","news","newspaper","newsprint","newsstand","nexus","nic","nicety","niche","nickel","niece","nigeria","night","nightclub","nightgown","nightingale","nightlight","nitrogen","node","noise","nonbeliever","nonconformist","nondisclosure","noodle","normal","norse","north","north america","north korea","norwegian","nose","note","notebook","notice","notify","notoriety","nougat","novel","november","nudge","number","numeracy","numeric","numismatist","nurse","nursery","nurture","nut","nylon","oak","oar","oasis","oatmeal","obi","objective","obligation","oboe","observation","observatory","occasion","occupation","ocean","ocelot","octagon","octave","octavo","octet","october","octopus","odometer","oeuvre","offence","offer","office","official","off-ramp","oil","okra","oldie","olive","omega","omelet","oncology","one","onion","open","opening","opera","operation","ophthalmologist","opinion","opium","opossum","opportunist","opportunity","opposite","option","orange","orangutan","orator","orchard","orchestra","orchid","order","ordinary","ordination","organ","organisation","organization","original","ornament","osmosis","osprey","ostrich","others","otter","ottoman","ounce","outback","outcome","outfit","outhouse","outlay","output","outrigger","outset","outside","oval","ovary","oven","overcharge","overclocking","overcoat","overexertion","overflight","overnighter","overshoot","owl","owner","ox","oxen","oxford","oxygen","oyster","pacemaker","pack","package","packet","pad","paddle","paddock","page","pagoda","pail","pain","paint","painter","painting","paintwork","pair","pajama","pajamas","pakistan","paleontologist","paleontology","palm","pamphlet","pan","pancake","pancreas","panda","panic","pannier","panpipe","pansy","panther","panties","pantry","pants","pantsuit","panty","pantyhose","paper","paperback","parable","parachute","parade","parallelogram","paramedic","parcel","parchment","parent","parentheses","park","parka","parrot","parsnip","part","participant","particle","particular","partner","partridge","party","passage","passbook","passenger","passive","pasta","paste","pastor","pastoralist","pastry","patch","path","patient","patina","patio","patriarch","patricia","patrimony","patriot","patrol","pattern","paul","pavement","pavilion","paw","pawnshop","payee","payment","pea","peace","peach","peacoat","peacock","peak","peanut","pear","pearl","pedal","pedestrian","pediatrician","peen","peer","peer-to-peer","pegboard","pelican","pelt","pen","penalty","pencil","pendant","pendulum","penicillin","pension","pentagon","peony","people","pepper","percentage","perch","perfume","period","periodical","peripheral","permafrost","permission","permit","perp","persian","person","personality","peru","pest","pet","petal","petticoat","pew","pharmacist","pharmacopoeia","phase","pheasant","philippines","philosopher","philosophy","phone","photo","photographer","phrase","physical","physician","pianist","piano","piccolo","pick","pickax","picket","pickle","picture","pie","piece","pier","piety","pig","pigeon","pike","pile","pilgrimage","pillbox","pillow","pilot","pimp","pimple","pin","pinafore","pince-nez","pine","pineapple","pinecone","ping","pink","pinkie","pinstripe","pint","pinto","pinworm","pioneer","pipe","piracy","piranha","pisces","piss","pitch","pitching","pith","pizza","place","plain","plane","planet","plant","plantation","planter","plaster","plasterboard","plastic","plate","platform","platinum","platypus","play","player","playground","playroom","pleasure","pleated","plier","plot","plough","plover","plow","plowman","plume","plunger","plywood","pneumonia","pocket","pocketbook","pocket-watch","poet","poignance","point","poison","poisoning","poland","pole","polenta","police","policeman","policy","polish","politician","pollution","polo","polyester","pompom","poncho","pond","pony","poof","pool","popcorn","poppy","popsicle","population","populist","porch","porcupine","port","porter","portfolio","porthole","position","positive","possibility","postage","postbox","poster","pot","potato","potential","potty","pouch","poultry","pound","pounding","powder","power","precedent","precipitation","preface","prelude","premeditation","premier","preoccupation","preparation","presence","presentation","president","pressroom","pressure","pressurisation","price","pride","priest","priesthood","primary","primate","prince","princess","principal","print","printer","priority","prison","prize","prizefight","probation","problem","procedure","process","processing","produce","producer","product","production","professional","professor","profit","program","project","promotion","prompt","proof-reader","propane","property","prose","prosecution","protest","protocol","prow","pruner","pseudoscience","psychiatrist","psychoanalyst","psychologist","psychology","ptarmigan","publisher","pudding","puddle","puffin","pull","pulley","puma","pump","pumpkin","pumpkinseed","punch","punishment","pupa","pupil","puppy","purchase","puritan","purple","purpose","purse","push","pusher","put","pvc","pyjama","pyramid","quadrant","quail","quality","quart","quarter","quartz","queen","question","quicksand","quiet","quill","quilt","quince","quit","quiver","quotation","rabbi","rabbit","raccoon","race","racer","racing","racist","rack","radar","radiator","radio","radiosonde","radish","raffle","raft","rag","rage","rail","railway","raiment","rain","rainbow","raincoat","rainmaker","rainstorm","raise","rake","ram","rambler","ramie","ranch","random","randomisation","range","rank","raspberry","rat","rate","ratio","raven","ravioli","raw","rawhide","ray","rayon","reactant","reaction","read","reading","reamer","rear","reason","receipt","reception","recess","recliner","recognition","recommendation","record","recorder","recover","recruit","rectangle","red","redesign","rediscovery","reduction","reef","refectory","reflection","refrigerator","refund","refuse","region","register","regret","regular","regulation","reindeer","reinscription","reject","relation","relative","religion","relish","reminder","rent","repair","reparation","repeat","replace","replication","reply","report","representative","reprocessing","request","resale","research","resident","resist","resolution","respect","respite","responsibility","rest","restaurant","result","retailer","rethinking","retina","retouch","return","reveal","revenant","review","revolution","revolve","revolver","reward","rheumatism","rhinoceros","rhyme","rhythm","rice","richard","riddle","ride","rider","ridge","rifle","right","rim","ring","ringworm","ripple","rise","riser","risk","river","riverbed","rivulet","road","roadway","roast","robe","robert","robin","rock","rocker","rocket","rocket-ship","rod","role","roll","roller","romania","romanian","ronald","roof","room","rooster","root","rope","rose","rostrum","rotate","roundabout","route","router","routine","row","rowboat","royal","rub","rubber","rubric","ruckus","ruffle","rugby","rule","run","runaway","runner","russia","russian","rutabaga","ruth","sabre","sack","sad","saddle","safe","safety","sage","sagittarius","sail","sailboat","sailor","salad","salary","sale","salesman","salmon","salon","saloon","salt","samovar","sampan","sample","samurai","sand","sandals","sandbar","sandra","sandwich","santa","sarah","sardine","sari","sarong","sash","satellite","satin","satire","saturday","sauce","saudi arabia","sausage","save","saving","savior","saviour","saw","saxophone","scale","scallion","scanner","scarecrow","scarf","scarification","scene","scent","schedule","scheme","schizophrenic","schnitzel","school","schoolhouse","schooner","science","scimitar","scissors","scooter","score","scorn","scorpio","scorpion","scow","scraper","screamer","screen","screenwriting","screw","screwdriver","screw-up","scrim","scrip","sculpting","sculpture","sea","seagull","seal","seaplane","search","seashore","season","seat","second","secretariat","secretary","section","sectional","sector","secure","security","seed","seeder","segment","select","selection","self","sell","semicircle","semicolon","senator","sense","sentence","sepal","september","septicaemia","series","servant","server","service","session","set","setting","settler","sewer","sex","shack","shade","shadow","shadowbox","shake","shakedown","shaker","shallot","shame","shampoo","shanty","shape","share","shark","sharon","shawl","shearling","shears","sheath","shed","sheep","sheet","shelf","shell","sherry","shield","shift","shin","shine","shingle","ship","shirt","shirtdress","shoat","shock","shoe","shoehorn","shoe-horn","shoelace","shoemaker","shoes","shoestring","shofar","shoot","shootdown","shop","shopper","shopping","shore","shortage","shorts","shortwave","shot","shoulder","shovel","show","shower","show-stopper","shred","shrimp","shrine","siamese","siberian","sibling","sick","side","sideboard","sideburns","sidecar","sidestream","sidewalk","siding","sign","signature","signet","significance","signup","silica","silk","silkworm","sill","silo","silver","simple","sing","singer","single","sink","sister","sister-in-law","sit","sitar","size","skate","skiing","skill","skin","skirt","skulduggery","skull","skullcap","skullduggery","skunk","sky","skylight","skyscraper","skywalk","slapstick","slash","slave","sled","sledge","sleep","sleet","sleuth","slice","slider","slime","slip","slipper","slippers","slope","sloth","smash","smell","smelting","smile","smock","smog","smoke","smuggling","snail","snake","snakebite","sneakers","sneeze","snob","snorer","snow","snowboarding","snowflake","snowman","snowmobiling","snowplow","snowstorm","snowsuit","snuggle","soap","soccer","society","sociology","sock","socks","soda","sofa","softball","softdrink","softening","software","soil","soldier","solid","solitaire","sombrero","somersault","somewhere","son","song","songbird","sonnet","soot","soprano","sorbet","sort","soulmate","sound","soup","source","sourwood","sousaphone","south","south africa","south america","south korea","sow","soy","soybean","space","spacing","spade","spaghetti","spain","spandex","spank","spark","sparrow","spasm","speaker","speakerphone","spear","special","specialist","specific","spectacle","spectacles","spectrograph","speedboat","spend","sphere","sphynx","spider","spike","spinach","spine","spiral","spirit","spiritual","spite","spleen","split","sponge","spoon","sport","spot","spotlight","spray","spread","spring","sprinter","sprout","spruce","spume","spur","spy","square","squash","squatter","squeegee","squid","squirrel","stable","stack","stacking","stadium","staff","stag","stage","stain","stair","staircase","stallion","stamen","stamina","stamp","stance","standoff","star","start","starter","state","statement","station","station-wagon","statistic","statistician","steak","steal","steam","steamroller","steel","steeple","stem","stencil","step","step-aunt","step-brother","stepdaughter","step-daughter","step-father","step-grandfather","step-grandmother","stepmother","step-mother","stepping-stone","steps","step-sister","stepson","step-son","step-uncle","steven","stew","stick","stiletto","still","stinger","stitch","stock","stocking","stockings","stock-in-trade","stole","stomach","stone","stonework","stool","stop","stopsign","stopwatch","store","storey","storm","story","storyboard","story-telling","stove","strait","stranger","strap","straw","strawberry","stream","street","streetcar","stress","stretch","strike","string","strip","structure","struggle","stud","student","studio","study","stuff","stumbling","sturgeon","style","styling","stylus","subcomponent","subconscious","submarine","subroutine","subsidence","substance","suburb","subway","success","suck","sudan","suede","suffocation","sugar","suggestion","suit","suitcase","sultan","summer","sun","sunbeam","sunbonnet","sunday","sundial","sunflower","sunglasses","sunlamp","sunroom","sunshine","supermarket","supply","support","supporter","suppression","surface","surfboard","surgeon","surgery","surname","surprise","susan","sushi","suspect","suspenders","sustainment","SUV","swallow","swamp","swan","swath","sweat","sweater","sweats","sweatshirt","sweatshop","sweatsuit","swedish","sweets","swell","swim","swimming","swimsuit","swing","swiss","switch","switchboard","swivel","sword","swordfish","sycamore","syndicate","synergy","synod","syria","syrup","system","tabby","tabernacle","table","tablecloth","tabletop","tachometer","tackle","tadpole","tail","tailor","tailspin","taiwan","tale","talk","tam","tambour","tambourine","tam-o'-shanter","tandem","tangerine","tank","tanker","tankful","tank-top","tanzania","tap","target","tassel","taste","tatami","tattler","tattoo","taurus","tavern","tax","taxi","taxicab","tea","teacher","teaching","team","tear","technician","technologist","technology","teen","teeth","telephone","telescreen","teletype","television","teller","temp","temper","temperature","temple","tempo","temporariness","temptress","tendency","tenement","tennis","tenor","tent","tepee","term","terracotta","terrapin","territory","test","text","textbook","texture","thailand","thanks","thaw","theater","theism","theme","theoretician","theory","therapist","thermals","thermometer","thigh","thing","thinking","thistle","thomas","thong","thongs","thorn","thought","thread","thrill","throat","throne","thrush","thumb","thunder","thunderbolt","thunderhead","thunderstorm","thursday","tiara","tic","ticket","tie","tiger","tight","tights","tile","till","timbale","time","timeline","timeout","timer","timpani","tin","tinderbox","tinkle","tintype","tip","tire","tissue","titanium","title","toad","toast","toe","toenail","toga","togs","toilet","tom","tomato","tomography","tomorrow","tom-tom","ton","tongue","toot","tooth","toothbrush","toothpaste","toothpick","top","top-hat","topsail","toque","torchiere","toreador","tornado","torso","tortellini","tortoise","tosser","total","tote","touch","tough","tough-guy","tour","tourist","towel","tower","town","townhouse","tow-truck","toy","trachoma","track","tracksuit","tractor","trade","tradition","traditionalism","traffic","trail","trailer","train","trainer","training","tram","tramp","transaction","translation","transmission","transom","transport","trapdoor","trapezium","trapezoid","trash","travel","tray","treatment","tree","trellis","tremor","trench","trial","triangle","tribe","trick","trigonometry","trim","trinket","trip","tripod","trolley","trombone","trooper","trouble","trousers","trout","trove","trowel","truck","truckit","trumpet","trunk","trust","try","t-shirt","tsunami","tub","tuba","tube","tuesday","tugboat","tulip","tummy","tuna","tune","tune-up","tunic","tunnel","turban","turkey","turkish","turn","turnip","turnover","turnstile","turret","turtle","tussle","tutu","tuxedo","tv","twig","twilight","twine","twist","twister","two","typewriter","typhoon","tyvek","uganda","ukraine","ukrainian","ukulele","umbrella","unblinking","uncle","underclothes","underground","underneath","underpants","underpass","undershirt","underwear","underwire","unibody","uniform","union","unit","united kingdom","urn","use","usher","utensil","uzbekistan","vacation","vacuum","vagrant","valance","valley","valuable","value","van","vane","vanity","variation","variety","vase","vast","vault","vaulting","veal","vegetable","vegetarian","vehicle","veil","vein","veldt","vellum","velodrome","velvet","venezuela","venezuelan","venom","veranda","verdict","vermicelli","verse","version","vertigo","verve","vessel","vest","vestment","veterinarian","vibe","vibraphone","vibration","vietnam","view","villa","village","vineyard","vinyl","viola","violet","violin","virginal","virgo","virtue","viscose","vise","vision","visit","visitor","visor","vixen","voice","volcano","volleyball","voyage","vulture","wad","wafer","waffle","waist","waistband","waiter","waitress","walk","walker","walkway","wall","wallaby","wallet","walnut","walrus","wampum","wannabe","war","warden","warlock","warm-up","warning","wash","washbasin","washcloth","washer","washtub","wasp","waste","wastebasket","watch","watchmaker","water","waterbed","waterfall","waterskiing","waterspout","wave","wax","way","weakness","wealth","weapon","weasel","weather","web","wedge","wednesday","weed","weeder","weedkiller","week","weekend","weekender","weight","weird","well","west","western","wet-bar","wetsuit","whale","wharf","wheel","whip","whirlpool","whirlwind","whisker","whiskey","whistle","white","whole","wholesale","wholesaler","whorl","wife","wilderness","will","william","willow","wind","windage","wind-chime","window","windscreen","windshield","wine","wing","wingman","wingtip","winter","wire","wiseguy","wish","wisteria","witch","witch-hunt","withdrawal","witness","wolf","woman","wombat","women","wood","woodland","woodshed","woodwind","wool","woolen","word","work","workbench","worker","workhorse","worklife","workshop","world","worm","worthy","wound","wrap","wraparound","wrecker","wren","wrench","wrestler","wrinkle","wrist","writer","writing","wrong","xylophone","yacht","yak","yam","yard","yarmulke","yarn","yawl","year","yellow","yesterday","yew","yin","yogurt","yoke","young","youth","yugoslavian","yurt","zampone","zebra","zebrafish","zephyr","ziggurat","zinc","zipper","zither","zone","zoo","zoologist","zoology","zoot-suit","zucchini"]`);function KI(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function cm(){const e=Math.round(Math.random()*1124),t=Math.round(Math.random()*3260);return`${KI(Gte[e])} ${KI(qte[t])}`}function ry(e){return e?.trim().length?e?.trim()?.replace(/[^a-zA-Z ]/g,"")?.split(" ").map(n=>n.length?n:"").slice(0,3).reduce((n,r)=>n+r[0],"")?.replace("undefined",""):"?"}const Ah=()=>({id:void 0,name:cm(),apiKey:"",username:"",password:"",printerURL:"",printerType:0,enabled:!0});class xn extends di{static convertPrinterToCreateForm(t){const n=Ah();return n.id=t.id,n.printerURL=t.printerURL,n.printerType=t.printerType,n.name=t.name||cm(),n.apiKey=t.apiKey,n.username=t.username,n.password=t.password,n.enabled=t.enabled,n}static openPrinterURL(t){t&&window.open(t)}static async getPrinters(){const t=Se.printerRoute;return await this.get(t)}static async stopPrintJob(t){const n=Se.printerStopJobRoute(t);return await this.post(n)}static async pausePrintJob(t){const n=Se.printerPauseJobRoute(t);return await this.post(n)}static async resumePrintJob(t){const n=Se.printerResumeJobRoute(t);return await this.post(n)}static async refreshSocket(t){const n=`${Se.refreshSocketRoute(t)}`;return await this.post(n)}static async postQuickStopM112Command(t){const n=Se.sendQuickStopM112Route(t);return await this.post(n)}static async sendPrinterConnectCommand(t){const n=Se.printerSerialConnectRoute(t);return await this.post(n)}static async sendPrinterDisconnectCommand(t){const n=Se.printerSerialDisconnectRoute(t);return await this.post(n)}static async sendPrinterJogCommand(t,n){const r=Se.printerJogCommandRoute(t);return await this.post(r,n)}static async sendPrinterHomeCommand(t,n){const r=Se.printerHomeCommandRoute(t);return await this.post(r,n)}static async createPrinter(t,n){const r=`${Se.printerRoute}?forceSave=${n}`;return await this.post(r,t)}static async batchImportPrinters(t){const n=Se.printerBatchRoute;return await this.post(n,t)}static async deletePrinter(t){const n=Se.getPrinterRoute(t);return await this.delete(n)}static async updatePrinter(t,n,r){const a=`${Se.getPrinterRoute(t)}?forceSave=${r}`;return await this.patch(a,n)}static async updatePrinterMaintenance(t,n=null){const r=Se.postPrinterDisabledReasonRoute(t);return await this.patch(r,{disabledReason:n})}static async testConnection(t){const n=Se.printerTestConnectionRoute;return await this.post(n,t)}static async toggleEnabled(t,n){const r=Se.printerEnabledRoute(t);return await this.patch(r,{enabled:n})}}class Za extends di{static baseRoute="/api/v2/printer-maintenance-log";static async listLogs(t){const n=new URLSearchParams;t?.printerId&&n.append("printerId",t.printerId.toString()),t?.completed!==void 0&&n.append("completed",t.completed.toString()),t?.page&&n.append("page",t.page.toString()),t?.pageSize&&n.append("pageSize",t.pageSize.toString());const r=n.toString(),i=r?`${this.baseRoute}?${r}`:this.baseRoute;return await this.get(i)}static async getLog(t){return await this.get(`${this.baseRoute}/${t}`)}static async getActiveByPrinterId(t){return await this.get(`${this.baseRoute}/printer/${t}/active`)}static async create(t){return await this.post(this.baseRoute,t)}static async complete(t,n){return await this.post(`${this.baseRoute}/${t}/complete`,n)}static async deleteLog(t){return await this.delete(`${this.baseRoute}/${t}`)}}class _r extends di{static async getSettings(){const t=Se.settingsRoute;return await this.get(t)}static async getSettingsSensitive(){const t=Se.settingsSensitiveRoute;return await this.get(t)}static async updateLoginRequiredSettings(t){const n=`${Se.updateLoginRequiredRoute}`;return await this.put(n,{loginRequired:t})}static async updateRegistrationEnabledSettings(t){const n=`${Se.updateRegistrationEnabledRoute}`;return await this.put(n,{registrationEnabled:t})}static async updateCredentialSettings(t,n,r){const i=`${Se.updateCredentialSettings}`;return await this.put(i,{jwtExpiresIn:t,refreshTokenAttempts:n,refreshTokenExpiry:r})}static async updateFrontendSettings(t){const n=`${Se.updateFrontendSettingsRoute}`;return await this.put(n,t)}static async setSentryDiagnosticsSettings(t){const n=`${Se.serverSentryDiagnosticsSettingRoute}`;return await this.patch(n,{enabled:t})}static async updateTimeoutSettings(t){const n=`${Se.updateTimeoutSettingRoute}`;return await this.put(n,t)}static async updateExperimentalMoonrakerSupport(t){const n=Se.updateExperimentalMoonrakerSupportRoute;return await this.put(n,{enabled:t})}static async updateExperimentalPrusaLinkSupport(t){const n=Se.updateExperimentalPrusaLinkSupportRoute;return await this.put(n,{enabled:t})}static async updateExperimentalBambuSupport(t){const n=Se.updateExperimentalBambuSupportRoute;return await this.put(n,{enabled:t})}static async updateExperimentalThumbnailSupport(t){const n=Se.updateExperimentalThumbnailSupportRoute;return await this.put(n,{enabled:t})}static async getSlicerApiKey(){const t=Se.slicerApiKeyRoute;return await this.get(t)}static async regenerateSlicerApiKey(){const t=Se.regenerateSlicerApiKeyRoute;return await this.post(t,{})}static async deleteSlicerApiKey(){const t=Se.slicerApiKeyRoute;return await this.delete(t)}}const fs=Qi("Settings",{state:()=>({settings:void 0,frontendDebugSettings:{showPrinterStateUpdateSideNav:!1,showInterpretedPrinterState:!1,showJobsRendered:!1}}),actions:{async loadSettings(){const e=await _r.getSettings();return this.settings=e,e},async updateFrontendSettings(e){const t=await _r.updateFrontendSettings(e);return this.settings=t,t},async saveFrontendSettings(){if(!this.settings)return;const e=await _r.updateFrontendSettings(this.settings.frontend);this.settings=e},async updateTimeoutSettings(e){const t=await _r.updateTimeoutSettings(e);return this.settings=t,t}},getters:{serverSettings(){return this.settings?.server},frontendSettings(){return this.settings?.frontend},preferCancelOverQuickStop(){return this.settings?.frontend?.tilePreferCancelOverQuickStop||!1},largeTiles(){return this.settings?.frontend?.largeTiles||!1},gridCols(){return this.settings?.frontend?.gridCols||8},gridRows(){return this.settings?.frontend?.gridRows||8},gridNameSortDirection(){return this.settings?.frontend?.gridNameSortDirection||"horizontal"}}}),Ra={danger:"danger",dark:"dark",secondary:"secondary",success:"success"},Oa={DarkBlue:"#050c2e",Black:"#000000",DarkGray:"#262626",LightBrown:"#583c0e",Brown:"#580e47",Red:"#2e0905"},Xu={Disabled:"Disabled",Maintenance:"Maintenance",Error:"Error",Paused:"Paused",Operational:"Operational",Printing:"Printing"};function b$(e,t,n){const i=fs().frontendDebugSettings.showInterpretedPrinterState,a={};if(!e.enabled)return e.disabledReason?.length?{...a,color:Ra.danger,rgb:Oa.Black,text:Xu.Maintenance}:{...a,color:Ra.secondary,rgb:Oa.DarkBlue,text:Xu.Disabled};const s=t?.api==="responding",o=t?.api==="authFail";if(!s||!t){const p=t?.api==="noResponse";return{...a,color:Ra.secondary,rgb:Oa.Red,text:o?"API key wrong":p?"API unreachable":t?.api||"-"}}if(!s)return{...a,color:Ra.danger,rgb:Oa.Red,text:o?"API key wrong":"No API connection"};const l=t.socket==="authenticated",u=t.socket==="authenticating",c=n?.current?.payload?.state,d=c?.flags;if(!l||!d)return i&&console.debug(`Socket opened ${l?1:0}, socketAuthing ${u?1:0} printerState ${n?1:0},
50
+ currentState: ${c}, FLAGS ${d}`),{...a,color:Ra.danger,rgb:Oa.Red,text:n?"Awaiting state":"Unknown state"};if(!d){console.error("No flags",d);return}return d.error||d.closedOrError?{...a,color:Ra.danger,rgb:Oa.Red,text:c.text?.replace("Offline","Disconnected")||Xu.Error,description:c.error}:d.paused||d.pausing?{...a,color:Ra.success,rgb:Oa.Brown,text:Xu.Paused}:d.printing?{...a,color:Ra.success,rgb:Oa.LightBrown,text:Xu.Printing}:{...a,color:Ra.dark,rgb:Oa.DarkGray,text:Xu.Operational,description:c.error}}const nu=e=>e?.current?.payload?.state,TS=e=>nu(e)?.flags.printing,IS=(e,t)=>!eo(e)&&e?.enabled&&!nu(t)?.flags.operational||nu(t)?.flags.error||nu(t)?.flags.closedOrError,xx=e=>!eo(e)&&!e?.enabled,eo=e=>!e?.enabled&&e?.disabledReason?.length,Kte=(e,t)=>nu(t)?.flags&&!nu(t)?.flags.printing&&nu(t)?.flags.operational&&!xx(e)&&!eo(e),jr=Qi("PrinterState",{state:()=>({printerIds:[],printerEventsById:{},socketStatesById:{}}),getters:{operationalPrintersById(){const e=vn(),t={};return this.printerIds.forEach(n=>{if(this.printerEventsById[n]?.current?.payload?.state?.flags?.operational){const i=e.printer(n);if(i)t[n]=i;else throw new Error(`PrinterStore contains no printer with id ${n} but events are known`)}}),t},isPrinterOperational(){return e=>!!this.operationalPrintersById[e]},printingPrintersById(){const e={};return this.printerIds.forEach(t=>{const n=this.printerEventsById[t];n?.current?.payload?.state?.flags?.printing&&(e[t]=n)}),e},isPrinterPrinting(){return e=>!!this.printingPrintersById[e]},isPrinterStoppable(){return e=>{const t=this.printerEventsById[e];if(!t)return!1;const n=t?.current?.payload?.state?.flags;return n?.printing||n?.paused||n?.pausing}},isPrinterPaused(){return e=>{const t=this.printerEventsById[e];if(!t)return!1;const n=t?.current?.payload?.state?.flags;return n?.paused||n?.pausing}},printerCurrentEventReceivedAtById(){const e={};return this.printerIds.forEach(t=>{const n=this.printerEventsById[t];n?.current?.receivedAt&&(e[t]=n.current.receivedAt)}),e},onlinePrinters(){const e=vn(),t={};return this.printerIds.forEach(n=>{if(this.socketStatesById[n]?.api==="responding"){const i=e.printer(n);if(i)t[n]=i;else throw new Error(`PrinterStore contains no printer with id ${n} but socket state is opened`)}}),t},onlinePrintersWithStates(){return Object.values(this.onlinePrinters).map(e=>({printer:e,printerState:this.printerEventsById[e.id]}))},printingCount(){const e=jr();return Object.values(e.onlinePrintersWithStates).filter(t=>TS(t.printerState)).length},operationalNotPrintingCount(){return this.onlinePrintersWithStates.filter(e=>Kte(e.printer,e.printerState)).length},isApiResponding(){return e=>Object.keys(this.onlinePrinters).includes(e.toString())},isPrinterNotOnline(){return e=>!this.isApiResponding(e)},printerJobsById(){const e=vn(),t=fs().frontendDebugSettings.showJobsRendered,n={};return this.printerIds.forEach(r=>{const i=this.printerEventsById[r],a=i?.current?.payload?.state?.flags;if(a?.printing||a?.paused||a?.pausing){const s=e.printer(r);if(s)n[s.id]=i?.current?.payload;else throw new Error(`PrinterStore contains no printer with id ${r} but events are known`)}}),t&&console.debug("[PrinterStateStore] rendered printerJobsById",n),n},printersWithJob(){const e=vn(),t=[];return this.printerIds.forEach(n=>{const r=this.printerEventsById[n],i=r?.current?.payload?.state?.flags;if(i?.printing||i?.paused||i?.pausing){const a=e.printer(n);if(a)t.push({printer:a,job:r?.current?.payload});else throw new Error(`PrinterStore contains no printer with id ${n} but events are known`)}}),t},printingFilePathsByPrinterId(){const e={};return this.printerIds.forEach(t=>{const n=this.printerEventsById[t],r=n?.current?.payload?.state?.flags;if(r?.printing||r?.paused||r?.pausing){const i=n?.current?.payload?.job?.file;e[t]=i?.display||i?.name||i?.path||"Unknown file"}}),e}},actions:{setSocketStates(e){this.socketStatesById=e,this.printerIds=Object.keys(e).map(Number)},setPrinterEvents(e){this.printerEventsById=e},deletePrinterEvents(e){delete this.printerEventsById[e],this.printerIds=Object.keys(this.printerEventsById).map(Number)},async selectAndPrintFile({printerId:e,fullPath:t}){if(!(!e||!vn().printer(e))){if(this.isPrinterPrinting(e)){alert("This printer is printing or not connected! Either way printing is not an option.");return}await Qa.selectAndPrintFile(e,t,!0)}}}}),vn=Qi("Printers",{state:()=>({printers:[],printerFileCache:{},selectedPrinters:[]}),getters:{printer(){return e=>this.printers.find(t=>t.id==e)},isSelectedPrinter(e){return t=>!!e.selectedPrinters.some(n=>n.id===t)},printerFiles(){return e=>this.printerFileCache[e]},disabledCount(){return this.printers.filter(xx).length},disconnectedCount(){const e=jr();return this.printers.filter(t=>IS(t,e.printerEventsById[t.id])).length},maintenanceCount(){return this.printers.filter(e=>eo(e)).length}},actions:{async createPrinter(e,t){const n=await xn.createPrinter(e,t);return this.printers.push(n),this.printers.sort((r,i)=>r.name?.toLowerCase()?.localeCompare(i?.name?.toLowerCase())?1:-1),n},toggleSelectedPrinter(e){const t=jr(),n=this.selectedPrinters.findIndex(r=>r.id==e.id);n===-1?t.isApiResponding(e.id)&&this.selectedPrinters.push(e):this.selectedPrinters.splice(n,1)},clearSelectedPrinters(){this.selectedPrinters=[]},async updatePrinter({printerId:e,updatedPrinter:t},n){const r=await xn.updatePrinter(e,t,n);return this._replacePrinter({printerId:e,printer:r}),r},async loadPrinters(){const e=await xn.getPrinters();return this.setPrinters(e),e},async deletePrinter(e){const t=await xn.deletePrinter(e);return this._popPrinter(e),t},setPrinters(e){if(!e?.length){this.printers=[];return}this.printers=e.toSorted((t,n)=>t.name?.toLowerCase()?.localeCompare(n?.name?.toLowerCase())?1:-1)},_popPrinter(e){const t=this.printers.findIndex(n=>n.id===e);if(t===-1){console.warn("Printer was not popped as it did not occur in state",e);return}this.printers.splice(t,1)},_replacePrinter({printerId:e,printer:t}){const n=this.printers.findIndex(r=>r.id===e);if(n===-1){console.warn("Printer was not purged as it did not occur in state",e);return}this.printers[n]=t},async deletePrinterFiles(e){if(!e)throw new Error("No printerId was provided");const t=await Qa.clearFiles(e);if(!t?.failedFiles)throw new Error("No failed files were returned");this.printerFileCache[e]&&(this.printerFileCache[e]=t.failedFiles)},async loadPrinterFiles(e){const t=await Qa.getFiles(e);return t.sort((n,r)=>n.date<r.date?1:-1),this.printerFileCache[e]=t,t},async deletePrinterFile(e,t){await Qa.deleteFileOrFolder(e,t);const n=this.printerFileCache[e];if(!n?.length){console.warn("Printer file list was nonexistent",e);return}const r=n.findIndex(i=>i.path===t);if(r===-1){console.warn("File was not purged as it did not occur in state",t);return}return n.splice(r,1),this.printerFiles(e)},async sendStopJobCommand(e){const t=jr();if(!e)return;const n=this.printer(e);if(!n)return;const r=t.isPrinterPrinting(e)?"The printer seems idle - do you want to command it to stop anyway?":"The printer is still printing - are you sure to stop it?";confirm(r)&&await xn.stopPrintJob(n.id)}}}),Yte=je({__name:"PrinterControlDialog",setup(e){const t=zt(Ht.PrinterControlDialog),n=vn(),r=jr(),i=D(()=>t.context()?.printer?.id),a=D(()=>{if(i.value)return n.printer(i.value)}),s=z(10),o=D(()=>{if(!i.value)return null;const d=r.printerEventsById[i.value];return d?.current?.payload?.temps?.length&&d?.current?.payload?.temps[0]?.tool0?.actual?d?.current?.payload?.temps[0]?.tool0:null}),l=async(d,p,h)=>{i.value&&await xn.sendPrinterJogCommand(i.value,{x:d*s.value,y:p*s.value,z:h*s.value})},u=async d=>{i.value&&await xn.sendPrinterHomeCommand(i.value,d)},c=()=>{t.closeDialog()};return(d,p)=>{const h=ia;return N(),Z(h,{id:ne(t).dialogId,"max-width":"700px",onEscape:p[14]||(p[14]=g=>c())},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,null,{default:m(()=>[...p[15]||(p[15]=[k(" Printer Controls ",-1)])]),_:1}),f(qe,null,{default:m(()=>[a.value?(N(),Z(ts,{key:0},{default:m(()=>[f(ct,null,{default:m(()=>[f(Ae,{cols:12},{default:m(()=>[k(" Printer: "+V(a.value?.name)+" ",1),p[16]||(p[16]=S("br",null,null,-1)),f(He,{color:"primary"},{default:m(()=>[k(V(o.value?.actual)+"C / "+V(o.value?.target)+"C ",1)]),_:1})]),_:1})]),_:1}),f(ct,null,{default:m(()=>[f(Ae,{cols:8},{default:m(()=>[p[26]||(p[26]=k(" X/Y ",-1)),p[27]||(p[27]=S("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[0]||(p[0]=g=>l(-1,1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[17]||(p[17]=[k("north_west",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[1]||(p[1]=g=>l(0,1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[18]||(p[18]=[k("north",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[2]||(p[2]=g=>l(1,1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[19]||(p[19]=[k("north_east",-1)])]),_:1})]),_:1}),p[28]||(p[28]=S("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[3]||(p[3]=g=>l(-1,0,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[20]||(p[20]=[k("west",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[4]||(p[4]=g=>u(["x","y"]))},{default:m(()=>[f(j,null,{default:m(()=>[...p[21]||(p[21]=[k("home",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[5]||(p[5]=g=>l(1,0,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[22]||(p[22]=[k("east",-1)])]),_:1})]),_:1}),p[29]||(p[29]=S("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[6]||(p[6]=g=>l(-1,-1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[23]||(p[23]=[k("south_west",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[7]||(p[7]=g=>l(0,-1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[24]||(p[24]=[k("south",-1)])]),_:1})]),_:1}),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[8]||(p[8]=g=>l(1,-1,0))},{default:m(()=>[f(j,null,{default:m(()=>[...p[25]||(p[25]=[k("south_east",-1)])]),_:1})]),_:1})]),_:1}),f(Ae,{cols:"4"},{default:m(()=>[p[33]||(p[33]=k(" Z ",-1)),p[34]||(p[34]=S("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[9]||(p[9]=g=>l(0,0,1))},{default:m(()=>[f(j,null,{default:m(()=>[...p[30]||(p[30]=[k("north",-1)])]),_:1})]),_:1}),p[35]||(p[35]=S("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[10]||(p[10]=g=>u(["z"]))},{default:m(()=>[f(j,null,{default:m(()=>[...p[31]||(p[31]=[k("home",-1)])]),_:1})]),_:1}),p[36]||(p[36]=S("br",null,null,-1)),f(te,{class:"bg-primary",variant:"outlined",size:"x-large",onClick:p[11]||(p[11]=g=>l(1,0,1))},{default:m(()=>[f(j,null,{default:m(()=>[...p[32]||(p[32]=[k("south",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),f(ct,null,{default:m(()=>[f(Ae,{cols:"12"},{default:m(()=>[f(Rg,{modelValue:s.value,"onUpdate:modelValue":p[12]||(p[12]=g=>s.value=g)},{default:m(()=>[f(te,{value:.1},{default:m(()=>[...p[37]||(p[37]=[k(" 0.1 ",-1)])]),_:1}),f(te,{value:1},{default:m(()=>[...p[38]||(p[38]=[k(" 1 ",-1)])]),_:1}),f(te,{value:10},{default:m(()=>[...p[39]||(p[39]=[k(" 10 ",-1)])]),_:1}),f(te,{value:100},{default:m(()=>[...p[40]||(p[40]=[k(" 100 ",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})):se("",!0)]),_:1}),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:p[13]||(p[13]=g=>c())},{default:m(()=>[...p[41]||(p[41]=[k(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["id"])}}});class kf extends di{static async batchConnectUsb(t){return await this.post("/api/v2/batch/connect/usb",{printerIds:t})}static async batchConnectSocket(t){return await this.post("/api/v2/batch/connect/socket",{printerIds:t})}static async batchToggleEnabled(t,n){return await this.post("/api/v2/batch/toggle-enabled",{printerIds:t,enabled:n})}static async batchGetLastPrintedFiles(t){const n=Se.batchGetLastPrintedFilesRoute;return await this.post(n,{printerIds:t})}static async batchReprintFiles(t){const n=Se.batchReprintFilesRoute;return await this.post(n,{prints:t})}}var kl=(e=>(e[e.PrinterNotAvailable=0]="PrinterNotAvailable",e[e.NoLastPrint=1]="NoLastPrint",e[e.LastPrintReady=2]="LastPrintReady",e))(kl||{});function Xte(e){return e.message?`${e.message}
51
+ ${e.stack}`:`'${e}'`}const PS=Symbol.for("vuetify:list");function S$(){let{filterable:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const t=mt(PS,{filterable:!1,hasPrepend:Fe(!1),updateHasPrepend:()=>null}),n={filterable:t.filterable||e,hasPrepend:Fe(!1),updateHasPrepend:r=>{r&&(n.hasPrepend.value=r)}};return bn(PS,n),t}function w$(){return mt(PS,null)}const kx=e=>{const t={activate:n=>{let{id:r,value:i,activated:a}=n;return r=it(r),e&&!i&&a.size===1&&a.has(r)||(i?a.add(r):a.delete(r)),a},in:(n,r,i)=>{let a=new Set;if(n!=null)for(const s of tr(n))a=t.activate({id:s,value:!0,activated:new Set(a),children:r,parents:i});return a},out:n=>Array.from(n)};return t},E$=e=>{const t=kx(e);return{activate:r=>{let{activated:i,id:a,...s}=r;a=it(a);const o=i.has(a)?new Set([a]):new Set;return t.activate({...s,id:a,activated:o})},in:(r,i,a)=>{let s=new Set;if(r!=null){const o=tr(r);o.length&&(s=t.in(o.slice(0,1),i,a))}return s},out:(r,i,a)=>t.out(r,i,a)}},Jte=e=>{const t=kx(e);return{activate:r=>{let{id:i,activated:a,children:s,...o}=r;return i=it(i),s.has(i)?a:t.activate({id:i,activated:a,children:s,...o})},in:t.in,out:t.out}},Qte=e=>{const t=E$(e);return{activate:r=>{let{id:i,activated:a,children:s,...o}=r;return i=it(i),s.has(i)?a:t.activate({id:i,activated:a,children:s,...o})},in:t.in,out:t.out}},Zte={open:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(n){const a=new Set;a.add(t);let s=i.get(t);for(;s!=null;)a.add(s),s=i.get(s);return a}else return r.delete(t),r},select:()=>null},x$={open:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(n){let a=i.get(t);for(r.add(t);a!=null&&a!==t;)r.add(a),a=i.get(a);return r}else r.delete(t);return r},select:()=>null},ene={open:x$.open,select:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(!n)return r;const a=[];let s=i.get(t);for(;s!=null;)a.push(s),s=i.get(s);return new Set(a)}},Cx=e=>{const t={select:n=>{let{id:r,value:i,selected:a}=n;if(r=it(r),e&&!i){const s=Array.from(a.entries()).reduce((o,l)=>{let[u,c]=l;return c==="on"&&o.push(u),o},[]);if(s.length===1&&s[0]===r)return a}return a.set(r,i?"on":"off"),a},in:(n,r,i,a)=>{const s=new Map;for(const o of n||[])t.select({id:o,value:!0,selected:s,children:r,parents:i,disabled:a});return s},out:n=>{const r=[];for(const[i,a]of n.entries())a==="on"&&r.push(i);return r}};return t},k$=e=>{const t=Cx(e);return{select:r=>{let{selected:i,id:a,...s}=r;a=it(a);const o=i.has(a)?new Map([[a,i.get(a)]]):new Map;return t.select({...s,id:a,selected:o})},in:(r,i,a,s)=>r?.length?t.in(r.slice(0,1),i,a,s):new Map,out:(r,i,a)=>t.out(r,i,a)}},tne=e=>{const t=Cx(e);return{select:r=>{let{id:i,selected:a,children:s,...o}=r;return i=it(i),s.has(i)?a:t.select({id:i,selected:a,children:s,...o})},in:t.in,out:t.out}},nne=e=>{const t=k$(e);return{select:r=>{let{id:i,selected:a,children:s,...o}=r;return i=it(i),s.has(i)?a:t.select({id:i,selected:a,children:s,...o})},in:t.in,out:t.out}},C$=e=>{const t={select:n=>{let{id:r,value:i,selected:a,children:s,parents:o,disabled:l}=n;r=it(r);const u=new Map(a),c=[r];for(;c.length;){const p=c.shift();l.has(p)||a.set(it(p),i?"on":"off"),s.has(p)&&c.push(...s.get(p))}let d=it(o.get(r));for(;d;){let p=!0,h=!0;for(const g of s.get(d)){const v=it(g);if(!l.has(v)&&(a.get(v)!=="on"&&(p=!1),a.has(v)&&a.get(v)!=="off"&&(h=!1),!p&&!h))break}a.set(d,p?"on":h?"off":"indeterminate"),d=it(o.get(d))}return e&&!i&&Array.from(a.entries()).reduce((h,g)=>{let[v,y]=g;return y==="on"&&h.push(v),h},[]).length===0?u:a},in:(n,r,i)=>{let a=new Map;for(const s of n||[])a=t.select({id:s,value:!0,selected:a,children:r,parents:i,disabled:new Set});return a},out:(n,r)=>{const i=[];for(const[a,s]of n.entries())s==="on"&&!r.has(a)&&i.push(a);return i}};return t},rne=e=>{const t=C$(e);return{select:t.select,in:t.in,out:(r,i,a)=>{const s=[];for(const[o,l]of r.entries())if(l==="on"){if(a.has(o)){const u=a.get(o);if(r.get(u)==="on")continue}s.push(o)}return s}}},Zc=Symbol.for("vuetify:nested"),_$={id:Fe(),root:{itemsRegistration:z("render"),register:()=>null,unregister:()=>null,updateDisabled:()=>null,children:z(new Map),parents:z(new Map),disabled:z(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:z(!1),selectable:z(!1),opened:z(new Set),activated:z(new Set),selected:z(new Map),selectedValues:z([]),getPath:()=>[]}},ine=Ee({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean,itemsRegistration:{type:String,default:"render"}},"nested"),sne=(e,t,n)=>{let r=!1;const i=Fe(new Map),a=Fe(new Map),s=Fe(new Set),o=gt(e,"opened",e.opened,w=>new Set(Array.isArray(w)?w.map(C=>it(C)):w),w=>[...w.values()]),l=D(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return Jte(e.mandatory);case"single-leaf":return Qte(e.mandatory);case"independent":return kx(e.mandatory);default:return E$(e.mandatory)}}),u=D(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return nne(e.mandatory);case"leaf":return tne(e.mandatory);case"independent":return Cx(e.mandatory);case"single-independent":return k$(e.mandatory);case"trunk":return rne(e.mandatory);default:return C$(e.mandatory)}}),c=D(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return ene;case"single":return Zte;default:return x$}}),d=gt(e,"activated",e.activated,w=>l.value.in(w,i.value,a.value),w=>l.value.out(w,i.value,a.value)),p=gt(e,"selected",e.selected,w=>u.value.in(w,i.value,a.value,s.value),w=>u.value.out(w,i.value,a.value));xr(()=>{r=!0});function h(w){const C=[];let P=it(w);for(;P!==void 0;)C.unshift(P),P=a.value.get(P);return C}const g=Gn("nested"),v=new Set,y=yQ(()=>{Ct(()=>{i.value=new Map(i.value),a.value=new Map(a.value)})},100);Ne(()=>[t.value,yn(n)],()=>{e.itemsRegistration==="props"&&b()},{immediate:!0});function b(){const w=new Map,C=new Map,P=new Set,_=yn(n)?T=>it(T.raw):T=>T.value,A=[...t.value];let I=0;for(;I<A.length;){const T=A[I++],x=_(T);if(T.children){const R=[];for(const O of T.children){const L=_(O);w.set(L,x),R.push(L),A.push(O)}C.set(x,R)}T.props.disabled&&P.add(x)}i.value=C,a.value=w,s.value=P}const E={id:Fe(),root:{opened:o,activatable:ae(()=>e.activatable),selectable:ae(()=>e.selectable),activated:d,selected:p,selectedValues:D(()=>{const w=[];for(const[C,P]of p.value.entries())P==="on"&&w.push(C);return w}),itemsRegistration:ae(()=>e.itemsRegistration),register:(w,C,P,_)=>{if(v.has(w)){h(w).map(String).join(" -> "),h(C).concat(w).map(String).join(" -> ");return}else v.add(w);C&&w!==C&&a.value.set(w,C),P&&s.value.add(w),_&&i.value.set(w,[]),C!=null&&i.value.set(C,[...i.value.get(C)||[],w]),y()},unregister:w=>{if(r)return;v.delete(w),i.value.delete(w),s.value.delete(w);const C=a.value.get(w);if(C){const P=i.value.get(C)??[];i.value.set(C,P.filter(_=>_!==w))}a.value.delete(w),y()},updateDisabled:(w,C)=>{C?s.value.add(w):s.value.delete(w)},open:(w,C,P)=>{g.emit("click:open",{id:w,value:C,path:h(w),event:P});const _=c.value.open({id:w,value:C,opened:new Set(o.value),children:i.value,parents:a.value,event:P});_&&(o.value=_)},openOnSelect:(w,C,P)=>{const _=c.value.select({id:w,value:C,selected:new Map(p.value),opened:new Set(o.value),children:i.value,parents:a.value,event:P});_&&(o.value=_)},select:(w,C,P)=>{g.emit("click:select",{id:w,value:C,path:h(w),event:P});const _=u.value.select({id:w,value:C,selected:new Map(p.value),children:i.value,parents:a.value,disabled:s.value,event:P});_&&(p.value=_),E.root.openOnSelect(w,C,P)},activate:(w,C,P)=>{if(!e.activatable)return E.root.select(w,!0,P);g.emit("click:activate",{id:w,value:C,path:h(w),event:P});const _=l.value.activate({id:w,value:C,activated:new Set(d.value),children:i.value,parents:a.value,event:P});if(_.size!==d.value.size)d.value=_;else{for(const A of _)if(!d.value.has(A)){d.value=_;return}for(const A of d.value)if(!_.has(A)){d.value=_;return}}},children:i,parents:a,disabled:s,getPath:h}};return bn(Zc,E),E.root},T$=(e,t,n)=>{const r=mt(Zc,_$),i=Symbol("nested item"),a=D(()=>{const o=it(yn(e));return o!==void 0?o:i}),s={...r,id:a,open:(o,l)=>r.root.open(a.value,o,l),openOnSelect:(o,l)=>r.root.openOnSelect(a.value,o,l),isOpen:D(()=>r.root.opened.value.has(a.value)),parent:D(()=>r.root.parents.value.get(a.value)),activate:(o,l)=>r.root.activate(a.value,o,l),isActivated:D(()=>r.root.activated.value.has(a.value)),select:(o,l)=>r.root.select(a.value,o,l),isSelected:D(()=>r.root.selected.value.get(a.value)==="on"),isIndeterminate:D(()=>r.root.selected.value.get(a.value)==="indeterminate"),isLeaf:D(()=>!r.root.children.value.get(a.value)),isGroupActivator:r.isGroupActivator};return al(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||Ct(()=>{r.root.register(a.value,r.id.value,yn(t),n)})}),xr(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||r.root.unregister(a.value)}),Ne(a,(o,l)=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||(r.root.unregister(l),Ct(()=>{r.root.register(o,r.id.value,yn(t),n)}))}),Ne(()=>yn(t),o=>{r.root.updateDisabled(a.value,o)}),n&&bn(Zc,s),s},ane=()=>{const e=mt(Zc,_$);bn(Zc,{...e,isGroupActivator:!0})},one=ea({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return ane(),()=>n.default?.()}}),lne=Ee({activeColor:String,baseColor:String,color:String,collapseIcon:{type:rt,default:"$collapse"},disabled:Boolean,expandIcon:{type:rt,default:"$expand"},rawId:[String,Number],prependIcon:rt,appendIcon:rt,fluid:Boolean,subgroup:Boolean,title:String,value:null,...tt(),...Jt()},"VListGroup"),AS=$e()({name:"VListGroup",props:lne(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:i,id:a}=T$(()=>e.value,()=>e.disabled,!0),s=D(()=>`v-list-group--id-${String(e.rawId??a.value)}`),o=w$(),{isBooted:l}=um(),u=mt(Zc),c=ae(()=>u?.root?.itemsRegistration.value==="render");function d(v){["INPUT","TEXTAREA"].includes(v.target?.tagName)||i(!r.value,v)}const p=D(()=>({onClick:d,class:"v-list-group__header",id:s.value})),h=D(()=>r.value?e.collapseIcon:e.expandIcon),g=D(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&h.value,appendIcon:e.appendIcon||!e.subgroup&&h.value,title:e.title,value:e.value}}));return Ue(()=>f(e.tag,{class:Oe(["v-list-group",{"v-list-group--prepend":o?.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class]),style:We(e.style)},{default:()=>[n.activator&&f(nn,{defaults:g.value},{default:()=>[f(one,null,{default:()=>[n.activator({props:p.value,isOpen:r.value})]})]}),f(pa,{transition:{component:dx},disabled:!l.value},{default:()=>[c.value?dn(S("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[n.default?.()]),[[ci,r.value]]):r.value&&S("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[n.default?.()])]})]})),{isOpen:r}}}),une=Ee({opacity:[Number,String],...tt(),...Jt()},"VListItemSubtitle"),Mu=$e()({name:"VListItemSubtitle",props:une(),setup(e,t){let{slots:n}=t;return Ue(()=>f(e.tag,{class:Oe(["v-list-item-subtitle",e.class]),style:We([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),Rt=Nu("v-list-item-title"),cne=Ee({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:rt,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:rt,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,prependGap:[Number,String],subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,onClick:Ur(),onClickOnce:Ur(),...Ls(),...tt(),...Ar(),...Hr(),...Pi(),...gr(),...ey(),...Jt(),...wn(),...na({variant:"text"})},"VListItem"),ot=$e()({name:"VListItem",directives:{vRipple:_i},props:cne(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:i}=t;const a=Zv(e,n),s=D(()=>e.value===void 0?a.href.value:e.value),{activate:o,isActivated:l,select:u,isOpen:c,isSelected:d,isIndeterminate:p,isGroupActivator:h,root:g,parent:v,openOnSelect:y,id:b}=T$(s,()=>e.disabled,!1),E=w$(),w=D(()=>e.active!==!1&&(e.active||a.isActive?.value||(g.activatable.value?l.value:d.value))),C=ae(()=>e.link!==!1&&a.isLink.value),P=D(()=>!!E&&(g.selectable.value||g.activatable.value||e.value!=null)),_=D(()=>!e.disabled&&e.link!==!1&&(e.link||a.isClickable.value||P.value)),A=D(()=>E?C.value?"link":P.value?"option":"listitem":void 0),I=D(()=>{if(P.value)return g.activatable.value?l.value:g.selectable.value?d.value:w.value}),T=ae(()=>e.rounded||e.nav),x=ae(()=>e.color??e.activeColor),R=ae(()=>({color:w.value?x.value??e.baseColor:e.baseColor,variant:e.variant}));Ne(()=>a.isActive?.value,Q=>{Q&&O()}),al(()=>{a.isActive?.value&&Ct(()=>O())});function O(){v.value!=null&&g.open(v.value,!0),y(!0)}const{themeClasses:L}=On(e),{borderClasses:F}=ta(e),{colorClasses:W,colorStyles:H,variantClasses:B}=Du(R),{densityClasses:$}=ps(e),{dimensionStyles:Y}=Wr(e),{elevationClasses:q}=es(e),{roundedClasses:U}=kr(T),M=ae(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),K=ae(()=>e.ripple!==void 0&&e.ripple&&E?.filterable?{keys:["Enter"]}:e.ripple),fe=D(()=>({isActive:w.value,select:u,isOpen:c.value,isSelected:d.value,isIndeterminate:p.value}));function he(Q){i("click",Q),!["INPUT","TEXTAREA"].includes(Q.target?.tagName)&&_.value&&(a.navigate?.(Q),!h&&(g.activatable.value?o(!l.value,Q):(g.selectable.value||e.value!=null&&!C.value)&&u(!d.value,Q)))}function Re(Q){const re=Q.target;["INPUT","TEXTAREA"].includes(re.tagName)||(Q.key==="Enter"||Q.key===" "&&!E?.filterable)&&(Q.preventDefault(),Q.stopPropagation(),Q.target.dispatchEvent(new MouseEvent("click",Q)))}return Ue(()=>{const Q=C.value?"a":e.tag,re=r.title||e.title!=null,X=r.subtitle||e.subtitle!=null,ie=!!(e.appendAvatar||e.appendIcon),we=!!(ie||r.append),Pe=!!(e.prependAvatar||e.prependIcon),G=!!(Pe||r.prepend);return E?.updateHasPrepend(G),e.activeColor&&GL("active-color",["color","base-color"]),dn(f(Q,ve(a.linkProps,{class:["v-list-item",{"v-list-item--active":w.value,"v-list-item--disabled":e.disabled,"v-list-item--link":_.value,"v-list-item--nav":e.nav,"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&w.value},L.value,F.value,W.value,$.value,q.value,M.value,U.value,B.value,e.class],style:[{"--v-list-prepend-gap":ze(e.prependGap)},H.value,Y.value,e.style],tabindex:_.value?E?-2:0:void 0,"aria-selected":I.value,role:A.value,onClick:he,onKeydown:_.value&&!C.value&&Re}),{default:()=>[fl(_.value||w.value,"v-list-item"),G&&S("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?f(nn,{key:"prepend-defaults",disabled:!Pe,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>[r.prepend?.(fe.value)]}):S(De,null,[e.prependAvatar&&f(Sn,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&f(j,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),S("div",{class:"v-list-item__spacer"},null)]),S("div",{class:"v-list-item__content","data-no-activator":""},[re&&f(Rt,{key:"title"},{default:()=>[r.title?.({title:e.title})??V(e.title)]}),X&&f(Mu,{key:"subtitle"},{default:()=>[r.subtitle?.({subtitle:e.subtitle})??V(e.subtitle)]}),r.default?.(fe.value)]),we&&S("div",{key:"append",class:"v-list-item__append"},[r.append?f(nn,{key:"append-defaults",disabled:!ie,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>[r.append?.(fe.value)]}):S(De,null,[e.appendIcon&&f(j,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&f(Sn,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),S("div",{class:"v-list-item__spacer"},null)])]}),[[_i,_.value&&K.value]])}),{activate:o,isActivated:l,isGroupActivator:h,isSelected:d,list:E,select:u,root:g,id:b,link:a}}}),dne=Ee({color:String,inset:Boolean,sticky:Boolean,title:String,...tt(),...Jt()},"VListSubheader"),yo=$e()({name:"VListSubheader",props:dne(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:i}=Ci(()=>e.color);return Ue(()=>{const a=!!(n.default||e.title);return f(e.tag,{class:Oe(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class]),style:We([{textColorStyles:i},e.style])},{default:()=>[a&&S("div",{class:"v-list-subheader__text"},[n.default?.()??e.title])]})}),{}}}),fne=Ee({items:Array,returnObject:Boolean},"VListChildren"),I$=$e()({name:"VListChildren",props:fne(),setup(e,t){let{slots:n}=t;return S$(),()=>n.default?.()??e.items?.map(r=>{let{children:i,props:a,type:s,raw:o}=r;if(s==="divider")return n.divider?.({props:a})??f(et,a,null);if(s==="subheader")return n.subheader?.({props:a})??f(yo,a,null);const l={subtitle:n.subtitle?c=>n.subtitle?.({...c,item:o}):void 0,prepend:n.prepend?c=>n.prepend?.({...c,item:o}):void 0,append:n.append?c=>n.append?.({...c,item:o}):void 0,title:n.title?c=>n.title?.({...c,item:o}):void 0},u=AS.filterProps(a);return i?f(AS,ve(u,{value:e.returnObject?o:a?.value,rawId:a?.value}),{activator:c=>{let{props:d}=c;const p=ve(a,d,{value:e.returnObject?o:a.value});return n.header?n.header({props:p}):f(ot,p,l)},default:()=>f(I$,{items:i,returnObject:e.returnObject},n)}):n.item?n.item({props:a}):f(ot,ve(a,{value:e.returnObject?o:a.value}),l)})}}),P$=Ee({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),pne=new Set(["item","divider","subheader"]);function Ws(e,t){const n=er(t,e.itemTitle,t),r=er(t,e.itemValue,n),i=er(t,e.itemChildren),a=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Rn(t,["children"]):t:void 0:er(t,e.itemProps);let s=er(t,e.itemType,"item");pne.has(s)||(s="item");const o={title:n,value:r,...a};return{type:s,title:String(o.title??""),value:o.value,props:o,children:s==="item"&&Array.isArray(i)?A$(e,i):void 0,raw:t}}Ws.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function A$(e,t){const n=Js(e,Ws.neededProps),r=[];for(const i of t)r.push(Ws(n,i));return r}function _x(e){const t=D(()=>A$(e,e.items)),n=D(()=>t.value.some(o=>o.value===null)),r=Fe(new Map),i=Fe([]);lr(()=>{const o=t.value,l=new Map,u=[];for(let c=0;c<o.length;c++){const d=o[c];if(tl(d.value)||d.value===null){let p=l.get(d.value);p||(p=[],l.set(d.value,p)),p.push(d)}else u.push(d)}r.value=l,i.value=u});function a(o){const l=r.value,u=t.value,c=i.value,d=n.value,p=e.returnObject,h=!!e.valueComparator,g=e.valueComparator||Ir,v=Js(e,Ws.neededProps),y=[];e:for(const b of o){if(!d&&b===null)continue;if(p&&typeof b=="string"){y.push(Ws(v,b));continue}const E=l.get(b);if(h||!E){for(const w of h?u:c)if(g(b,w.value)){y.push(w);continue e}y.push(Ws(v,b));continue}y.push(...E)}return y}function s(o){return e.returnObject?o.map(l=>{let{raw:u}=l;return u}):o.map(l=>{let{value:u}=l;return u})}return{items:t,transformIn:a,transformOut:s}}const mne=new Set(["item","divider","subheader"]);function hne(e,t){const n=tl(t)?t:er(t,e.itemTitle),r=tl(t)?t:er(t,e.itemValue,void 0),i=er(t,e.itemChildren),a=e.itemProps===!0?Rn(t,["children"]):er(t,e.itemProps);let s=er(t,e.itemType,"item");mne.has(s)||(s="item");const o={title:n,value:r,...a};return{type:s,title:o.title,value:o.value,props:o,children:s==="item"&&i?R$(e,i):void 0,raw:t}}function R$(e,t){const n=[];for(const r of t)n.push(hne(e,r));return n}function gne(e){return{items:D(()=>R$(e,e.items))}}const vne=Ee({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:rt,collapseIcon:rt,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,"onClick:open":Ur(),"onClick:select":Ur(),"onUpdate:opened":Ur(),...ine({selectStrategy:"single-leaf",openStrategy:"list"}),...Ls(),...tt(),...Ar(),...Hr(),...Pi(),...P$(),...gr(),...Jt(),...wn(),...na({variant:"text"})},"VList"),hr=$e()({name:"VList",props:vne(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=gne(e),{themeClasses:i}=On(e),{backgroundColorClasses:a,backgroundColorStyles:s}=Un(()=>e.bgColor),{borderClasses:o}=ta(e),{densityClasses:l}=ps(e),{dimensionStyles:u}=Wr(e),{elevationClasses:c}=es(e),{roundedClasses:d}=kr(e),{children:p,open:h,parents:g,select:v,getPath:y}=sne(e,r,()=>e.returnObject),b=ae(()=>e.lines?`v-list--${e.lines}-line`:void 0),E=ae(()=>e.activeColor),w=ae(()=>e.baseColor),C=ae(()=>e.color),P=ae(()=>e.selectable||e.activatable);S$({filterable:e.filterable}),Er({VListGroup:{activeColor:E,baseColor:w,color:C,expandIcon:ae(()=>e.expandIcon),collapseIcon:ae(()=>e.collapseIcon)},VListItem:{activeClass:ae(()=>e.activeClass),activeColor:E,baseColor:w,color:C,density:ae(()=>e.density),disabled:ae(()=>e.disabled),lines:ae(()=>e.lines),nav:ae(()=>e.nav),slim:ae(()=>e.slim),variant:ae(()=>e.variant)}});const _=Fe(!1),A=z();function I(F){_.value=!0}function T(F){_.value=!1}function x(F){!_.value&&!(F.relatedTarget&&A.value?.contains(F.relatedTarget))&&L()}function R(F){const W=F.target;if(!(!A.value||W.tagName==="INPUT"&&["Home","End"].includes(F.key)||W.tagName==="TEXTAREA")){if(F.key==="ArrowDown")L("next");else if(F.key==="ArrowUp")L("prev");else if(F.key==="Home")L("first");else if(F.key==="End")L("last");else return;F.preventDefault()}}function O(F){_.value=!0}function L(F){if(A.value)return xf(A.value,F)}return Ue(()=>{const F=e.indent??(e.prependGap?Number(e.prependGap)+24:void 0);return f(e.tag,{ref:A,class:Oe(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},i.value,a.value,o.value,l.value,c.value,b.value,d.value,e.class]),style:We([{"--v-list-indent":ze(F),"--v-list-group-prepend":F?"0px":void 0,"--v-list-prepend-gap":ze(e.prependGap)},s.value,u.value,e.style]),tabindex:e.disabled?-1:0,role:P.value?"listbox":"list","aria-activedescendant":void 0,onFocusin:I,onFocusout:T,onFocus:x,onKeydown:R,onMousedown:O},{default:()=>[f(I$,{items:r.value,returnObject:e.returnObject},n)]})}),{open:h,select:v,focus:L,children:p,parents:g,getPath:y}}}),yne={key:1},bne={key:2},Sne={class:"mt-3"},wne={key:0},Ene={key:1},xne={key:2},kne=je({__name:"BatchReprintDialog",setup(e){const t=vn(),n=z(),r=zt(Ht.BatchReprintDialog),i=z(!1),a=z(!1),s=z([]),o=z([]),l=z(""),u=Xt();function c(g){i.value=!0}async function d(g){n.value=g;try{const v=await kf.batchGetLastPrintedFiles(n.value);s.value=v,o.value=v.filter(y=>y.connectionState==="Operational"&&y.reprintState==kl.LastPrintReady)}catch(v){l.value=v.code.toString()??""}i.value=!1}async function p(){a.value=!0;try{await kf.batchReprintFiles(o.value.filter(g=>g.file?.path).map(g=>({printerId:g.printerId,path:g.file?.path||""}))),t.clearSelectedPrinters(),u.info("Action completed","Your reprinted jobs are starting",5e3),h()}catch(g){l.value=Xte(g)}finally{a.value=!1}}function h(){r.closeDialog(r.context())}return(g,v)=>{const y=ia;return N(),Z(y,{id:ne(r).dialogId,"max-width":"1000px",onBeforeOpened:c,onEscape:v[3]||(v[3]=b=>h()),onOpened:d},{default:m(()=>[f(Ve,{class:"pa-4"},{default:m(()=>[f(st,null,{default:m(()=>[...v[4]||(v[4]=[S("span",{class:"text-h5"}," Batch - Submit Reprint Jobs ",-1)])]),_:1}),f(qe,null,{default:m(()=>[l.value?.length?(N(),Z(kt,{key:0,color:"error"},{default:m(()=>[k(V(l.value),1)]),_:1})):se("",!0),i.value?(N(),le("span",yne," Loading... ")):(N(),le("div",bne,[f(hr,{density:"compact"},{default:m(()=>[f(yo,null,{default:m(()=>[...v[5]||(v[5]=[k(" Reprinted Files - Select from list ",-1)])]),_:1}),f(AS,{modelValue:o.value,"onUpdate:modelValue":v[0]||(v[0]=b=>o.value=b),multiple:""},{default:m(()=>[(N(!0),le(De,null,Vt(s.value,(b,E)=>(N(),Z(ot,{key:E,value:b,disabled:b.connectionState!=="Operational"||b.reprintState!==ne(kl).LastPrintReady},{prepend:m(()=>[b.reprintState==ne(kl).LastPrintReady?(N(),Z(j,{key:0},{default:m(()=>[...v[6]||(v[6]=[k("checklist",-1)])]),_:1})):se("",!0),b.reprintState==ne(kl).NoLastPrint?(N(),Z(j,{key:1},{default:m(()=>[...v[7]||(v[7]=[k(" question_mark ",-1)])]),_:1})):se("",!0),b.reprintState==ne(kl).PrinterNotAvailable?(N(),Z(j,{key:2},{default:m(()=>[...v[8]||(v[8]=[k(" signal_disconnected ",-1)])]),_:1})):se("",!0)]),default:m(()=>[b.file?.path?.length?(N(),Z(Rt,{key:0},{default:m(()=>[k(V(b.file?.path)+" ",1),b.connectionState!=="Operational"?(N(),Z(He,{key:0},{default:m(()=>[...v[9]||(v[9]=[k(" Printer busy ",-1)])]),_:1})):se("",!0)]),_:2},1024)):b.reprintState==ne(kl).NoLastPrint?(N(),Z(Rt,{key:1},{default:m(()=>[...v[10]||(v[10]=[k(" No file is present to print again ",-1)])]),_:1})):(N(),Z(Rt,{key:2},{default:m(()=>[...v[11]||(v[11]=[k(" OctoPrint cant be reached ",-1)])]),_:1})),f(Mu,null,{default:m(()=>[k(" Printer '"+V(ne(t).printer(b.printerId)?.name??"Unknown printer")+"' ",1)]),_:2},1024)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1})])),S("div",Sne,[a.value?(N(),le("div",wne,[f(Bn,{class:"ma-3",indeterminate:"",color:"blue"}),v[12]||(v[12]=k(" Submitting ",-1))])):o.value.length>0?(N(),le("div",Ene,V(o.value.length)+" reprint selected ",1)):(N(),le("div",xne,"Must select at least one file"))]),v[14]||(v[14]=S("br",null,null,-1)),f(te,{disabled:a.value||o.value.length===0,onClick:v[1]||(v[1]=b=>p())},{default:m(()=>[...v[13]||(v[13]=[k(" Submit Batch Reprint ",-1)])]),_:1},8,["disabled"])]),_:1}),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:v[2]||(v[2]=b=>ne(r).closeDialog())},{default:m(()=>[...v[15]||(v[15]=[k(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["id"])}}}),O$="/assets/bambu-logo-CHl3qEbB.png",N$="/assets/klipper-logo-B1Hu-a1R.svg",D$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Creator:%20CorelDRAW%202017%20--%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20width='76.1823mm'%20height='18.3444mm'%20version='1.1'%20style='shape-rendering:geometricPrecision;%20text-rendering:geometricPrecision;%20image-rendering:optimizeQuality;%20fill-rule:evenodd;%20clip-rule:evenodd'%20viewBox='0%200%205483.86%201320.49'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c![CDATA[%20.fil0%20{fill:%23FEFEFE}%20.fil2%20{fill:%23FA6831}%20.fil3%20{fill:%23FEFEFE;fill-rule:nonzero}%20.fil1%20{fill:%232B2A29;fill-rule:nonzero}%20]]%3e%3c/style%3e%3c/defs%3e%3cg%20id='Layer_x0020_1'%3e%3cmetadata%20id='CorelCorpID_0Corel-Layer'/%3e%3cpath%20class='fil0'%20d='M-0%20385.77l3064.43%200%200%20934.72%20-3064.43%200%200%20-934.72zm5417.22%200l-2227.07%200%200%20934.72%202227.07%200%200%20-934.72z'/%3e%3cpath%20class='fil1'%20d='M3381.47%201144.22l426.16%200%200%20-131.38%20-273.43%200%200%20-454.89%20-152.73%200%200%20586.27zm-3073.6%20-463.92l102.63%200c46.8,0%2082.11,21.34%2082.11,77.18%200,53.37%20-33.66,73.08%20-82.11,73.08l-102.63%200%200%20-150.26zm-152.73%20463.92l152.73%200%200%20-195.42%20125.63%200c128.92,0%20211.85,-56.66%20211.85,-201.99%200,-138.76%20-102.64,-188.86%20-211.85,-188.86l-278.35%200%200%20586.27zm689.32%20-463.92l121.52%200c42.7,0%2077.18,19.7%2077.18,63.22%200,45.16%20-24.63,68.97%20-70.61,68.97l-128.09%200%200%20-132.2zm-152.73%20463.92l152.73%200%200%20-213.49%20115.78%200c72.26,0%2081.28,60.76%2085.39,119.88%202.46,17.25%204.1,73.08%2017.24,93.61l151.09%200c-20.53,-22.99%20-22.17,-106.74%20-24.63,-132.2%20-4.11,-55.84%20-23.81,-124.8%20-85.4,-140.41l0%20-1.64c62.41,-23.81%2091.97,-83.75%2091.97,-146.98%200,-118.24%20-102.63,-165.04%20-205.27,-165.04l-298.88%200%200%20586.27zm1073.59%20-586.27l-152.72%200%200%20353.08c0,75.54%20-27.1,114.13%20-102.64,114.13%20-75.54,0%20-102.63,-38.59%20-102.63,-114.13l0%20-353.08%20-152.73%200%200%20344.04c0,169.97%2078,254.54%20255.36,254.54%20177.36,0%20255.36,-84.57%20255.36,-254.54l0%20-344.04zm42.29%20389.21c0,150.26%20120.7,209.38%20254.54,209.38%20128.91,0%20255.36,-47.62%20255.36,-196.24%200,-105.92%20-85.39,-145.33%20-169.97,-169.15%20-85.39,-23.81%20-169.97,-31.2%20-169.97,-77.19%200,-38.59%2041.05,-50.09%2073.9,-50.09%2045.98,0%2096.89,18.07%2094.43,70.62l152.72%200c0,-131.38%20-119.06,-188.86%20-234.83,-188.86%20-110.03,0%20-238.94,50.09%20-238.94,178.18%200,108.39%2088.68,145.33%20171.61,169.15%2084.57,23.81%20168.33,32.85%20168.33,85.39%200,43.52%20-47.62,59.94%20-93.61,59.94%20-65.68,0%20-107.56,-22.17%20-110.85,-91.14l-152.72%200zm495.53%20197.06l156.83%200%2036.95%20-105.1%20204.45%200%2036.13%20105.1%20159.3%200%20-219.24%20-586.27%20-155.18%200%20-219.24%20586.27zm295.6%20-423.69l1.64%200%2064.86%20205.27%20-133.02%200%2066.51%20-205.27zm1258.56%20423.69l152.73%200%200%20-586.27%20-152.73%200%200%20586.27zm231.14%200l143.69%200%200%20-365.39%201.64%200%20203.63%20365.39%20156.83%200%200%20-586.27%20-143.69%200%200%20361.28%20-1.64%200%20-203.63%20-361.28%20-156.83%200%200%20586.27zm584.21%200l152.73%200%200%20-180.64%2062.4%20-65.68%20157.65%20246.33%20189.68%200%20-243.87%20-355.53%20216.77%20-230.74%20-189.68%200%20-192.96%20224.98%200%20-224.98%20-152.73%200%200%20586.27z'/%3e%3cpolygon%20class='fil2'%20points='5483.86,0%204170.36,0%204170.36,486.71%205483.86,486.71%20'/%3e%3cpath%20class='fil3'%20d='M4377.66%20154.79l62.68%200c16.97,0%2033.08,7.4%2033.08,30.03%200,22.2%20-19.15,29.6%20-33.08,29.6l-62.68%200%200%20-59.63zm-80.96%20248.1l149.29%200c66.6,0%20121,-22.63%20121,-96.63%200,-35.26%20-20.46,-63.55%20-53.54,-73.56%2024.38,-12.19%2040.92,-34.82%2040.92,-62.68%200,-64.42%20-58.76,-79.22%20-112.29,-77.91l-145.38%200%200%20310.77zm80.96%20-136.24l64.85%200c24.37,0%2043.53,9.14%2043.53,36.56%200,25.68%20-17.84,34.82%20-43.53,34.82l-64.85%200%200%20-71.38zm219.59%20136.24l252.01%200%200%20-69.64%20-171.05%200%200%20-59.19%20152.34%200%200%20-62.68%20-152.34%200%200%20-54.41%20166.71%200%200%20-64.85%20-247.67%200%200%20310.77zm530.8%20-310.77l-266.38%200%200%2069.64%2092.71%200%200%20241.14%2080.96%200%200%20-241.14%2092.71%200%200%20-69.64zm-49.83%20310.77l83.13%200%2019.59%20-55.72%20108.38%200%2019.15%2055.72%2084.44%200%20-116.21%20-310.77%20-82.27%200%20-116.21%20310.77zm156.69%20-224.6l0.87%200%2034.39%20108.82%20-70.51%200%2035.26%20-108.82z'/%3e%3c/g%3e%3c/svg%3e",RS="/assets/octoprint-tentacle-D_4slObB.svg",Ha=0,ru=1,Uo=2,bs=3;function Cne(e){return e===Ha}function OS(e){return e===ru}function NS(e){return e===Uo}function DS(e){return e===bs}function us(e){return Cne(e)?"OctoPrint":OS(e)?"Moonraker":NS(e)?"PrusaLink":DS(e)?"Bambu":"Unknown"}function YI(e,t){const n=e?.printerModel?.toLowerCase()||"";if(n.includes("bambu")||n.includes("x1")||n.includes("p1"))return O$;if(n.includes("klipper")||n.includes("voron")||n.includes("ratrig"))return N$;if(n.includes("prusa")||n.includes("mk3")||n.includes("mk4")||n.includes("mini"))return D$;if(n.includes("ender")||n.includes("creality")||t==="gcode")return RS}const _ne=[{name:us(Ha),value:Ha},{name:us(ru),value:ru},{name:us(Uo),value:Uo},{name:us(bs),value:bs}],Tne={hasSerialConnection:!0,canSyncName:!0,hasWebInterface:!0,hasEmergencyStop:!0,hasPrinterControl:!0},Ine={hasSerialConnection:!1,canSyncName:!1,hasWebInterface:!1,hasEmergencyStop:!0,hasPrinterControl:!0},Pne={hasSerialConnection:!1,canSyncName:!1,hasWebInterface:!0,hasEmergencyStop:!1,hasPrinterControl:!1},Ane={hasSerialConnection:!1,canSyncName:!1,hasWebInterface:!1,hasEmergencyStop:!1,hasPrinterControl:!0},dm={[Ha]:Tne,[ru]:Ine,[Uo]:Pne,[bs]:Ane};function Tx(e){return dm[e]?.hasSerialConnection??!1}function Rne(e){return dm[e]?.canSyncName??!1}function L$(e){return dm[e]?.hasWebInterface??!1}function F$(e){return dm[e]?.hasEmergencyStop??!1}function Ub(e){return dm[e]?.hasPrinterControl??!1}const vr=z({isOpen:!1,currentPrinterId:void 0,loading:!0,error:!1,lastLoadedPrinterId:void 0});function fm(){const e=D(()=>vr.value.isOpen),t=D(()=>vr.value.currentPrinterId),n=D(()=>vr.value.loading),r=D(()=>vr.value.error),i=D(()=>vr.value.lastLoadedPrinterId);return{isOpen:e,currentPrinterId:t,loading:n,error:r,lastLoadedPrinterId:i,openFileExplorer:c=>{const d=vr.value.lastLoadedPrinterId!==c.id;vr.value.isOpen=!0,vr.value.currentPrinterId=c.id,d&&(vr.value.error=!1,vr.value.lastLoadedPrinterId=c.id)},closeFileExplorer:()=>{vr.value.isOpen=!1,vr.value.currentPrinterId=void 0,vr.value.error=!1,vr.value.lastLoadedPrinterId=void 0},setLoading:c=>{vr.value.loading=c},setError:c=>{vr.value.error=c},resetForPrinter:c=>{vr.value.lastLoadedPrinterId===c&&(vr.value.error=!1,vr.value.loading=!0)}}}function One(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const i=Fe(!1),a=Fe(0),s=D(()=>{const u=typeof i.value=="boolean"?"top":i.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,i.value?{[u]:ze(a.value)}:{top:r.value.top}]});Nt(()=>{Ne(n,u=>{u?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),xr(()=>{window.removeEventListener("scroll",l)});let o=0;function l(){const u=o>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),d=parseFloat(r.value.top??0),p=window.scrollY-Math.max(0,a.value-d),h=c.height+Math.max(a.value,d)-window.scrollY-window.innerHeight,g=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-d?(i.value="top",a.value=d):u==="up"&&i.value==="bottom"||u==="down"&&i.value==="top"?(a.value=window.scrollY+c.top-g,i.value=!0):u==="down"&&h<=0?(a.value=0,i.value="bottom"):u==="up"&&p<=0&&(g?i.value!=="top"&&(a.value=-p+g+d,i.value="top"):(a.value=c.top+p,i.value="top")),o=window.scrollY}return{isStuck:i,stickyStyles:s}}const Nne=100,Dne=20;function XI(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function JI(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let n=e.length-1;n>0;n--){if(e[n].t===e[n-1].t)continue;const r=XI(t),i=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(i-r)*Math.abs(i),n===e.length-1&&(t*=.5)}return XI(t)*1e3}function Lne(){const e={};function t(i){Array.from(i.changedTouches).forEach(a=>{(e[a.identifier]??(e[a.identifier]=new QL(Dne))).push([i.timeStamp,a])})}function n(i){Array.from(i.changedTouches).forEach(a=>{delete e[a.identifier]})}function r(i){const a=e[i]?.values().reverse();if(!a)throw new Error(`No samples for touch id ${i}`);const s=a[0],o=[],l=[];for(const u of a){if(s[0]-u[0]>Nne)break;o.push({t:u[0],d:u[1].clientX}),l.push({t:u[0],d:u[1].clientY})}return{x:JI(o),y:JI(l),get direction(){const{x:u,y:c}=this,[d,p]=[Math.abs(u),Math.abs(c)];return d>p&&u>=0?"right":d>p&&u<=0?"left":p>d&&c>=0?"down":p>d&&c<=0?"up":Fne()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function Fne(){throw new Error}function $ne(e){let{el:t,isActive:n,isTemporary:r,width:i,touchless:a,position:s}=e;Nt(()=>{window.addEventListener("touchstart",E,{passive:!0}),window.addEventListener("touchmove",w,{passive:!1}),window.addEventListener("touchend",C,{passive:!0})}),xr(()=>{window.removeEventListener("touchstart",E),window.removeEventListener("touchmove",w),window.removeEventListener("touchend",C)});const o=D(()=>["left","right"].includes(s.value)),{addMovement:l,endTouch:u,getVelocity:c}=Lne();let d=!1;const p=Fe(!1),h=Fe(0),g=Fe(0);let v;function y(_,A){return(s.value==="left"?_:s.value==="right"?document.documentElement.clientWidth-_:s.value==="top"?_:s.value==="bottom"?document.documentElement.clientHeight-_:Ju())-(A?i.value:0)}function b(_){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const I=s.value==="left"?(_-g.value)/i.value:s.value==="right"?(document.documentElement.clientWidth-_-g.value)/i.value:s.value==="top"?(_-g.value)/i.value:s.value==="bottom"?(document.documentElement.clientHeight-_-g.value)/i.value:Ju();return A?Ln(I):I}function E(_){if(a.value)return;const A=_.changedTouches[0].clientX,I=_.changedTouches[0].clientY,T=25,x=s.value==="left"?A<T:s.value==="right"?A>document.documentElement.clientWidth-T:s.value==="top"?I<T:s.value==="bottom"?I>document.documentElement.clientHeight-T:Ju(),R=n.value&&(s.value==="left"?A<i.value:s.value==="right"?A>document.documentElement.clientWidth-i.value:s.value==="top"?I<i.value:s.value==="bottom"?I>document.documentElement.clientHeight-i.value:Ju());(x||R||n.value&&r.value)&&(v=[A,I],g.value=y(o.value?A:I,n.value),h.value=b(o.value?A:I),d=g.value>-20&&g.value<80,u(_),l(_))}function w(_){const A=_.changedTouches[0].clientX,I=_.changedTouches[0].clientY;if(d){if(!_.cancelable){d=!1;return}const x=Math.abs(A-v[0]),R=Math.abs(I-v[1]);(o.value?x>R&&x>3:R>x&&R>3)?(p.value=!0,d=!1):(o.value?R:x)>3&&(d=!1)}if(!p.value)return;_.preventDefault(),l(_);const T=b(o.value?A:I,!1);h.value=Math.max(0,Math.min(1,T)),T>1?g.value=y(o.value?A:I,!0):T<0&&(g.value=y(o.value?A:I,!1))}function C(_){if(d=!1,!p.value)return;l(_),p.value=!1;const A=c(_.changedTouches[0].identifier),I=Math.abs(A.x),T=Math.abs(A.y);(o.value?I>T&&I>400:T>I&&T>3)?n.value=A.direction===({left:"right",right:"left",top:"down",bottom:"up"}[s.value]||Ju()):n.value=h.value>.5}const P=D(()=>p.value?{transform:s.value==="left"?`translateX(calc(-100% + ${h.value*i.value}px))`:s.value==="right"?`translateX(calc(100% - ${h.value*i.value}px))`:s.value==="top"?`translateY(calc(-100% + ${h.value*i.value}px))`:s.value==="bottom"?`translateY(calc(100% - ${h.value*i.value}px))`:Ju(),transition:"none"}:void 0);return Gi(p,()=>{const _=t.value?.style.transform??null,A=t.value?.style.transition??null;lr(()=>{t.value?.style.setProperty("transform",P.value?.transform||"none"),t.value?.style.setProperty("transition",P.value?.transition||null)}),An(()=>{t.value?.style.setProperty("transform",_),t.value?.style.setProperty("transition",A)})}),{isDragging:p,dragProgress:h,dragStyles:P}}function Ju(){throw new Error}function pm(e){const t=e.slice(-2).toUpperCase();switch(!0){case e==="GB-alt-variant":return{firstDay:0,firstWeekSize:4};case e==="001":return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE
52
+ KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US
53
+ VE VI WS YE ZA ZW`.includes(t):return{firstDay:0,firstWeekSize:1};case`AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV
54
+ MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK`.includes(t):return{firstDay:1,firstWeekSize:1};case`AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS
55
+ IT LI LT LU MC MQ NL NO PL RE RU SE SK SM VA`.includes(t):return{firstDay:1,firstWeekSize:4};case"AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".includes(t):return{firstDay:6,firstWeekSize:1};case t==="MV":return{firstDay:5,firstWeekSize:1};case t==="PT":return{firstDay:0,firstWeekSize:4};default:return null}}function Mne(e,t,n){const r=[];let i=[];const a=$$(e),s=M$(e),o=n??pm(t)?.firstDay??0,l=(a.getDay()-o+7)%7,u=(s.getDay()-o+7)%7;for(let c=0;c<l;c++){const d=new Date(a);d.setDate(d.getDate()-(l-c)),i.push(d)}for(let c=1;c<=s.getDate();c++){const d=new Date(e.getFullYear(),e.getMonth(),c);i.push(d),i.length===7&&(r.push(i),i=[])}for(let c=1;c<7-u;c++){const d=new Date(s);d.setDate(d.getDate()+c),i.push(d)}return i.length>0&&r.push(i),r}function Cf(e,t,n){let r=(n??pm(t)?.firstDay??0)%7;[0,1,2,3,4,5,6].includes(r)||(r=0);const i=new Date(e);for(;i.getDay()!==r;)i.setDate(i.getDate()-1);return i}function Vne(e,t){const n=new Date(e),r=((pm(t)?.firstDay??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function $$(e){return new Date(e.getFullYear(),e.getMonth(),1)}function M$(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function Bne(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const Une=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function V$(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(Une.test(e))return Bne(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const QI=new Date(2e3,0,2);function jne(e,t,n){const r=t??pm(e)?.firstDay??0;return Nl(7).map(i=>{const a=new Date(QI);return a.setDate(QI.getDate()+r+i),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(a)})}function zne(e,t,n,r){const i=V$(e)??new Date,a=r?.[t];if(typeof a=="function")return a(i,t,n);let s={};switch(t){case"fullDate":s={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":s={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const o=i.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(i);return`${o} ${l}`;case"normalDateWithWeekday":s={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":s={month:"short",day:"numeric"};break;case"year":s={year:"numeric"};break;case"month":s={month:"long"};break;case"monthShort":s={month:"short"};break;case"monthAndYear":s={month:"long",year:"numeric"};break;case"monthAndDate":s={month:"long",day:"numeric"};break;case"weekday":s={weekday:"long"};break;case"weekdayShort":s={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(i.getDate());case"hours12h":s={hour:"numeric",hour12:!0};break;case"hours24h":s={hour:"numeric",hour12:!1};break;case"minutes":s={minute:"numeric"};break;case"seconds":s={second:"numeric"};break;case"fullTime":s={hour:"numeric",minute:"numeric"};break;case"fullTime12h":s={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":s={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":s={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":s={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":s={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":s={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,s).format(i).replace(/, /g," ");case"keyboardDateTime12h":return s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,s).format(i).replace(/, /g," ");case"keyboardDateTime24h":return s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,s).format(i).replace(/, /g," ");default:s=a??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,s).format(i)}function Hne(e,t){const n=e.toJsDate(t),r=n.getFullYear(),i=tI(String(n.getMonth()+1),2,"0"),a=tI(String(n.getDate()),2,"0");return`${r}-${i}-${a}`}function Wne(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function Gne(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function qne(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function iu(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Kne(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function Yne(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function up(e){return e.getFullYear()}function Xne(e){return e.getMonth()}function Jne(e,t,n,r){const i=pm(t),a=n??i?.firstDay??0,s=i?.firstWeekSize??1;return r!==void 0?Qne(e,t,a,r):Zne(e,t,a,s)}function Qne(e,t,n,r){const i=(7+r-n)%7,a=Cf(e,t,n),s=iu(a,6);function o(p){return(7+new Date(p,0,1).getDay()-n)%7}let l=up(a);l<up(s)&&o(l+1)<=i&&l++;const u=new Date(l,0,1),c=o(l),d=c<=i?iu(u,-c):iu(u,7-c);return 1+Mg(Ix(a),cp(d),"weeks")}function Zne(e,t,n,r){const i=Cf(e,t,n),a=iu(Cf(e,t,n),6);function s(d){const p=new Date(d,0,1);return 7-Mg(p,Cf(p,t,n),"days")}let o=up(i);o<up(a)&&s(o+1)>=r&&o++;const l=new Date(o,0,1),u=s(o),c=u>=r?iu(l,u-7):iu(l,u);return 1+Mg(Ix(i),cp(c),"weeks")}function ere(e){return e.getDate()}function tre(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function nre(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function rre(e){return e.getHours()}function ire(e){return e.getMinutes()}function sre(e){return new Date(e.getFullYear(),0,1)}function are(e){return new Date(e.getFullYear(),11,31)}function ore(e,t){return $g(e,t[0])&&cre(e,t[1])}function lre(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function $g(e,t){return e.getTime()>t.getTime()}function ure(e,t){return $g(cp(e),cp(t))}function cre(e,t){return e.getTime()<t.getTime()}function ZI(e,t){return e.getTime()===t.getTime()}function dre(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function fre(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function pre(e,t){return e.getFullYear()===t.getFullYear()}function Mg(e,t,n){const r=new Date(e),i=new Date(t);switch(n){case"years":return r.getFullYear()-i.getFullYear();case"quarters":return Math.floor((r.getMonth()-i.getMonth()+(r.getFullYear()-i.getFullYear())*12)/4);case"months":return r.getMonth()-i.getMonth()+(r.getFullYear()-i.getFullYear())*12;case"weeks":return Math.floor((r.getTime()-i.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((r.getTime()-i.getTime())/(1e3*60*60*24));case"hours":return Math.floor((r.getTime()-i.getTime())/(1e3*60*60));case"minutes":return Math.floor((r.getTime()-i.getTime())/(1e3*60));case"seconds":return Math.floor((r.getTime()-i.getTime())/1e3);default:return r.getTime()-i.getTime()}}function mre(e,t){const n=new Date(e);return n.setHours(t),n}function hre(e,t){const n=new Date(e);return n.setMinutes(t),n}function gre(e,t){const n=new Date(e);return n.setMonth(t),n}function vre(e,t){const n=new Date(e);return n.setDate(t),n}function yre(e,t){const n=new Date(e);return n.setFullYear(t),n}function cp(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)}function Ix(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class bre{constructor(t){this.locale=t.locale,this.formats=t.formats}date(t){return V$(t)}toJsDate(t){return t}toISO(t){return Hne(this,t)}parseISO(t){return Wne(t)}addMinutes(t,n){return Gne(t,n)}addHours(t,n){return qne(t,n)}addDays(t,n){return iu(t,n)}addWeeks(t,n){return Kne(t,n)}addMonths(t,n){return Yne(t,n)}getWeekArray(t,n){const r=n!==void 0?Number(n):void 0;return Mne(t,this.locale,r)}startOfWeek(t,n){const r=n!==void 0?Number(n):void 0;return Cf(t,this.locale,r)}endOfWeek(t){return Vne(t,this.locale)}startOfMonth(t){return $$(t)}endOfMonth(t){return M$(t)}format(t,n){return zne(t,n,this.locale,this.formats)}isEqual(t,n){return ZI(t,n)}isValid(t){return lre(t)}isWithinRange(t,n){return ore(t,n)}isAfter(t,n){return $g(t,n)}isAfterDay(t,n){return ure(t,n)}isBefore(t,n){return!$g(t,n)&&!ZI(t,n)}isSameDay(t,n){return dre(t,n)}isSameMonth(t,n){return fre(t,n)}isSameYear(t,n){return pre(t,n)}setMinutes(t,n){return hre(t,n)}setHours(t,n){return mre(t,n)}setMonth(t,n){return gre(t,n)}setDate(t,n){return vre(t,n)}setYear(t,n){return yre(t,n)}getDiff(t,n,r){return Mg(t,n,r)}getWeekdays(t,n){const r=t!==void 0?Number(t):void 0;return jne(this.locale,r,n)}getYear(t){return up(t)}getMonth(t){return Xne(t)}getWeek(t,n,r){const i=n!==void 0?Number(n):void 0,a=r!==void 0?Number(r):void 0;return Jne(t,this.locale,i,a)}getDate(t){return ere(t)}getNextMonth(t){return tre(t)}getPreviousMonth(t){return nre(t)}getHours(t){return rre(t)}getMinutes(t){return ire(t)}startOfDay(t){return cp(t)}endOfDay(t){return Ix(t)}startOfYear(t){return sre(t)}endOfYear(t){return are(t)}}const Sre=Symbol.for("vuetify:date-options"),eP=Symbol.for("vuetify:date-adapter");function wre(e,t){const n=ii({adapter:bre,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},e);return{options:n,instance:Ere(n,t)}}function Ere(e,t){const n=Dn(typeof e.adapter=="function"?new e.adapter({locale:e.locale[t.current.value]??t.current.value,formats:e.formats}):e.adapter);return Ne(t.current,r=>{n.locale=e.locale[r]??r??n.locale}),n}const dp=Symbol.for("vuetify:layout"),B$=Symbol.for("vuetify:layout-item"),tP=1e3,U$=Ee({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),j$=Ee({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function z$(){const e=mt(dp);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function H$(e){const t=mt(dp);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${Ti()}`,r=Gn("useLayoutItem");bn(B$,{id:n});const i=Fe(!1);Ev(()=>i.value=!0),Mw(()=>i.value=!1);const{layoutItemStyles:a,layoutItemScrimStyles:s}=t.register(r,{...e,active:D(()=>i.value?!1:e.active.value),id:n});return xr(()=>t.unregister(n)),{layoutItemStyles:a,layoutRect:t.layoutRect,layoutItemScrimStyles:s}}const xre=(e,t,n,r)=>{let i={top:0,left:0,right:0,bottom:0};const a=[{id:"",layer:{...i}}];for(const s of e){const o=t.get(s),l=n.get(s),u=r.get(s);if(!o||!l||!u)continue;const c={...i,[o.value]:parseInt(i[o.value],10)+(u.value?parseInt(l.value,10):0)};a.push({id:s,layer:c}),i=c}return a};function W$(e){const t=mt(dp,null),n=D(()=>t?t.rootZIndex.value-100:tP),r=z([]),i=Dn(new Map),a=Dn(new Map),s=Dn(new Map),o=Dn(new Map),l=Dn(new Map),{resizeRef:u,contentRect:c}=go(),d=D(()=>{const _=new Map,A=e.overlaps??[];for(const I of A.filter(T=>T.includes(":"))){const[T,x]=I.split(":");if(!r.value.includes(T)||!r.value.includes(x))continue;const R=i.get(T),O=i.get(x),L=a.get(T),F=a.get(x);!R||!O||!L||!F||(_.set(x,{position:R.value,amount:parseInt(L.value,10)}),_.set(T,{position:O.value,amount:-parseInt(F.value,10)}))}return _}),p=D(()=>{const _=[...new Set([...s.values()].map(I=>I.value))].sort((I,T)=>I-T),A=[];for(const I of _){const T=r.value.filter(x=>s.get(x)?.value===I);A.push(...T)}return xre(A,i,a,o)}),h=D(()=>!Array.from(l.values()).some(_=>_.value)),g=D(()=>p.value[p.value.length-1].layer),v=ae(()=>({"--v-layout-left":ze(g.value.left),"--v-layout-right":ze(g.value.right),"--v-layout-top":ze(g.value.top),"--v-layout-bottom":ze(g.value.bottom),...h.value?void 0:{transition:"none"}})),y=D(()=>p.value.slice(1).map((_,A)=>{let{id:I}=_;const{layer:T}=p.value[A],x=a.get(I),R=i.get(I);return{id:I,...T,size:Number(x.value),position:R.value}})),b=_=>y.value.find(A=>A.id===_),E=Gn("createLayout"),w=Fe(!1);Nt(()=>{w.value=!0}),bn(dp,{register:(_,A)=>{let{id:I,order:T,position:x,layoutSize:R,elementSize:O,active:L,disableTransitions:F,absolute:W}=A;s.set(I,T),i.set(I,x),a.set(I,R),o.set(I,L),F&&l.set(I,F);const B=gc(B$,E?.vnode).indexOf(_);B>-1?r.value.splice(B,0,I):r.value.push(I);const $=D(()=>y.value.findIndex(M=>M.id===I)),Y=D(()=>n.value+p.value.length*2-$.value*2),q=D(()=>{const M=x.value==="left"||x.value==="right",K=x.value==="right",fe=x.value==="bottom",he=O.value??R.value,Re=he===0?"%":"px",Q={[x.value]:0,zIndex:Y.value,transform:`translate${M?"X":"Y"}(${(L.value?0:-(he===0?100:he))*(K||fe?-1:1)}${Re})`,position:W.value||n.value!==tP?"absolute":"fixed",...h.value?void 0:{transition:"none"}};if(!w.value)return Q;const re=y.value[$.value],X=d.value.get(I);return X&&(re[X.position]+=X.amount),{...Q,height:M?`calc(100% - ${re.top}px - ${re.bottom}px)`:O.value?`${O.value}px`:void 0,left:K?void 0:`${re.left}px`,right:K?`${re.right}px`:void 0,top:x.value!=="bottom"?`${re.top}px`:void 0,bottom:x.value!=="top"?`${re.bottom}px`:void 0,width:M?O.value?`${O.value}px`:void 0:`calc(100% - ${re.left}px - ${re.right}px)`}}),U=D(()=>({zIndex:Y.value-1}));return{layoutItemStyles:q,layoutItemScrimStyles:U,zIndex:Y}},unregister:_=>{s.delete(_),i.delete(_),a.delete(_),o.delete(_),l.delete(_),r.value=r.value.filter(A=>A!==_)},mainRect:g,mainStyles:v,getLayoutItem:b,items:y,layoutRect:c,rootZIndex:n});const C=ae(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),P=ae(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:C,layoutStyles:P,getLayoutItem:b,items:y,layoutRect:c,layoutRef:u}}const kre=["start","end","left","right","top","bottom"],Cre=Ee({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>kre.includes(e)},sticky:Boolean,...Ls(),...tt(),...KF(),...Fu({mobile:null}),...Pi(),...j$(),...gr(),...Rn(JF(),["disableInitialFocus"]),...Jt({tag:"nav"}),...wn()},"VNavigationDrawer"),Px=$e()({name:"VNavigationDrawer",props:Cre(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{isRtl:a}=Or(),{themeClasses:s}=On(e),{borderClasses:o}=ta(e),{backgroundColorClasses:l,backgroundColorStyles:u}=Un(()=>e.color),{elevationClasses:c}=es(e),{displayClasses:d,mobile:p}=ra(e),{roundedClasses:h}=kr(e),g=xF(),v=gt(e,"modelValue",null,q=>!!q),{ssrBootStyles:y}=um(),{scopeId:b}=$u(),E=z(),w=Fe(!1),{runOpenDelay:C,runCloseDelay:P}=YF(e,q=>{w.value=q}),_=D(()=>e.rail&&e.expandOnHover&&w.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),A=D(()=>pS(e.location,a.value)),I=ae(()=>e.persistent),T=D(()=>!e.permanent&&(p.value||e.temporary)),x=D(()=>e.sticky&&!T.value&&A.value!=="bottom");QF(e,{isActive:v,localTop:T,contentEl:E}),Gi(()=>e.expandOnHover&&e.rail!=null,()=>{Ne(w,q=>r("update:rail",!q))}),Gi(()=>!e.disableResizeWatcher,()=>{Ne(T,q=>!e.permanent&&Ct(()=>v.value=!q))}),Gi(()=>!e.disableRouteWatcher&&!!g,()=>{Ne(g.currentRoute,()=>T.value&&(v.value=!1))}),Ne(()=>e.permanent,q=>{q&&(v.value=!0)}),e.modelValue==null&&!T.value&&(v.value=e.permanent||!p.value);const{isDragging:R,dragProgress:O}=$ne({el:E,isActive:v,isTemporary:T,width:_,touchless:ae(()=>e.touchless),position:A}),L=D(()=>{const q=T.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):_.value;return R.value?q*O.value:q}),{layoutItemStyles:F,layoutItemScrimStyles:W}=H$({id:e.name,order:D(()=>parseInt(e.order,10)),position:A,layoutSize:L,elementSize:_,active:ya(v),disableTransitions:ae(()=>R.value),absolute:D(()=>e.absolute||x.value&&typeof H.value!="string")}),{isStuck:H,stickyStyles:B}=One({rootEl:E,isSticky:x,layoutItemStyles:F}),$=Un(()=>typeof e.scrim=="string"?e.scrim:null),Y=D(()=>({...R.value?{opacity:O.value*.2,transition:"none"}:void 0,...W.value}));return Er({VList:{bgColor:"transparent"}}),Ue(()=>{const q=i.image||e.image;return S(De,null,[f(e.tag,ve({ref:E,onMouseenter:C,onMouseleave:P,class:["v-navigation-drawer",`v-navigation-drawer--${A.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":w.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":T.value,"v-navigation-drawer--persistent":I.value,"v-navigation-drawer--active":v.value,"v-navigation-drawer--sticky":x.value},s.value,l.value,o.value,d.value,c.value,h.value,e.class],style:[u.value,F.value,y.value,B.value,e.style],inert:!v.value},b,n),{default:()=>[q&&S("div",{key:"image",class:"v-navigation-drawer__img"},[i.image?f(nn,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},i.image):f(ai,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),i.prepend&&S("div",{class:"v-navigation-drawer__prepend"},[i.prepend?.()]),S("div",{class:"v-navigation-drawer__content"},[i.default?.()]),i.append&&S("div",{class:"v-navigation-drawer__append"},[i.append?.()])]}),f(lo,{name:"fade-transition"},{default:()=>[T.value&&(R.value||v.value)&&!!e.scrim&&S("div",ve({class:["v-navigation-drawer__scrim",$.backgroundColorClasses.value],style:[Y.value,$.backgroundColorStyles.value],onClick:()=>{I.value||(v.value=!1)}},b),null)]})])}),{isStuck:H}}}),_re=Ee({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...tt(),...Id({transition:{component:ty}})},"VCounter"),Ax=$e()({name:"VCounter",functional:!0,props:_re(),setup(e,t){let{slots:n}=t;const r=ae(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return Ue(()=>f(pa,{transition:e.transition},{default:()=>[dn(S("div",{class:Oe(["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class]),style:We(e.style)},[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[ci,e.active]])]})),{}}}),Tre=Ee({text:String,onClick:Ur(),...tt(),...wn()},"VLabel"),iy=$e()({name:"VLabel",props:Tre(),setup(e,t){let{slots:n}=t;return Ue(()=>S("label",{class:Oe(["v-label",{"v-label--clickable":!!e.onClick},e.class]),style:We(e.style),onClick:e.onClick},[e.text,n.default?.()])),{}}}),Ire=Ee({floating:Boolean,...tt()},"VFieldLabel"),Jm=$e()({name:"VFieldLabel",props:Ire(),setup(e,t){let{slots:n}=t;return Ue(()=>f(iy,{class:Oe(["v-field-label",{"v-field-label--floating":e.floating},e.class]),style:We(e.style)},n)),{}}});function mm(e){const{t}=Rr();function n(r){let{name:i,color:a,...s}=r;const o={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[i],l=e[`onClick:${i}`];function u(d){d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.stopPropagation(),nm(l,new PointerEvent("click",d)))}const c=l&&o?t(`$vuetify.input.${o}`,e.label??""):void 0;return f(j,ve({icon:e[`${i}Icon`],"aria-label":c,onClick:l,onKeydown:u,color:a},s),null)}return{InputIcon:n}}const Rx=Ee({focused:Boolean,"onUpdate:focused":Ur()},"focus");function Vu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia();const n=gt(e,"focused"),r=ae(()=>({[`${t}--focused`]:n.value}));function i(){n.value=!0}function a(){n.value=!1}return{focusClasses:r,isFocused:n,focus:i,blur:a}}const Pre=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],sy=Ee({appendInnerIcon:rt,bgColor:String,clearable:Boolean,clearIcon:{type:rt,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},glow:Boolean,error:Boolean,flat:Boolean,iconColor:[Boolean,String],label:String,persistentClear:Boolean,prependInnerIcon:rt,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>Pre.includes(e)},"onClick:clear":Ur(),"onClick:appendInner":Ur(),"onClick:prependInner":Ur(),...tt(),...Jv(),...gr(),...wn()},"VField"),ed=$e()({name:"VField",inheritAttrs:!1,props:{id:String,details:Boolean,labelId:String,...Rx(),...sy()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{themeClasses:a}=On(e),{loaderClasses:s}=om(e),{focusClasses:o,isFocused:l,focus:u,blur:c}=Vu(e),{InputIcon:d}=mm(e),{roundedClasses:p}=kr(e),{rtlClasses:h}=Or(),g=ae(()=>e.dirty||e.active),v=ae(()=>!!(e.label||i.label)),y=ae(()=>!e.singleLine&&v.value),b=Ti(),E=D(()=>e.id||`input-${b}`),w=ae(()=>e.details?`${E.value}-messages`:void 0),C=z(),P=z(),_=z(),A=D(()=>["plain","underlined"].includes(e.variant)),I=D(()=>e.error||e.disabled?void 0:g.value&&l.value?e.color:e.baseColor),T=D(()=>{if(!(!e.iconColor||e.glow&&!l.value))return e.iconColor===!0?I.value:e.iconColor}),{backgroundColorClasses:x,backgroundColorStyles:R}=Un(()=>e.bgColor),{textColorClasses:O,textColorStyles:L}=Ci(I);Ne(g,H=>{if(y.value&&!yu()){const B=C.value.$el,$=P.value.$el;requestAnimationFrame(()=>{const Y=tx(B),q=$.getBoundingClientRect(),U=q.x-Y.x,M=q.y-Y.y-(Y.height/2-q.height/2),K=q.width/.75,fe=Math.abs(K-Y.width)>1?{maxWidth:ze(K)}:void 0,he=getComputedStyle(B),Re=getComputedStyle($),Q=parseFloat(he.transitionDuration)*1e3||150,re=parseFloat(Re.getPropertyValue("--v-field-label-scale")),X=Re.getPropertyValue("color");B.style.visibility="visible",$.style.visibility="hidden",Ba(B,{transform:`translate(${U}px, ${M}px) scale(${re})`,color:X,...fe},{duration:Q,easing:tp,direction:H?"normal":"reverse"}).finished.then(()=>{B.style.removeProperty("visibility"),$.style.removeProperty("visibility")})})}},{flush:"post"});const F=D(()=>({isActive:g,isFocused:l,controlRef:_,iconColor:T,blur:c,focus:u}));function W(H){H.target!==document.activeElement&&H.preventDefault()}return Ue(()=>{const H=e.variant==="outlined",B=!!(i["prepend-inner"]||e.prependInnerIcon),$=!!(e.clearable||i.clear)&&!e.disabled,Y=!!(i["append-inner"]||e.appendInnerIcon||$),q=()=>i.label?i.label({...F.value,label:e.label,props:{for:E.value}}):e.label;return S("div",ve({class:["v-field",{"v-field--active":g.value,"v-field--appended":Y,"v-field--center-affix":e.centerAffix??!A.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":B,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!q(),[`v-field--variant-${e.variant}`]:!0},a.value,x.value,o.value,s.value,p.value,h.value,e.class],style:[R.value,e.style],onClick:W},n),[S("div",{class:"v-field__overlay"},null),f(Qv,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:i.loader}),B&&S("div",{key:"prepend",class:"v-field__prepend-inner"},[i["prepend-inner"]?i["prepend-inner"](F.value):e.prependInnerIcon&&f(d,{key:"prepend-icon",name:"prependInner",color:T.value},null)]),S("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&y.value&&f(Jm,{key:"floating-label",ref:P,class:Oe([O.value]),floating:!0,for:E.value,"aria-hidden":!g.value,style:We(L.value)},{default:()=>[q()]}),v.value&&f(Jm,{key:"label",ref:C,id:e.labelId,for:E.value,"aria-hidden":y.value&&g.value},{default:()=>[q()]}),i.default?.({...F.value,props:{id:E.value,class:"v-field__input","aria-describedby":w.value},focus:u,blur:c})??S("div",{id:E.value,class:"v-field__input","aria-describedby":w.value},null)]),$&&f(MF,{key:"clear"},{default:()=>[dn(S("div",{class:"v-field__clearable",onMousedown:U=>{U.preventDefault(),U.stopPropagation()}},[f(nn,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[i.clear?i.clear({...F.value,props:{onFocus:u,onBlur:c,onClick:e["onClick:clear"],tabindex:-1}}):f(d,{name:"clear",onFocus:u,onBlur:c,tabindex:-1},null)]})]),[[ci,e.dirty]])]}),Y&&S("div",{key:"append",class:"v-field__append-inner"},[i["append-inner"]?i["append-inner"](F.value):e.appendInnerIcon&&f(d,{key:"append-icon",name:"appendInner",color:T.value},null)]),S("div",{class:Oe(["v-field__outline",O.value]),style:We(L.value)},[H&&S(De,null,[S("div",{class:"v-field__outline__start"},null),y.value&&S("div",{class:"v-field__outline__notch"},[f(Jm,{ref:P,floating:!0,for:E.value,"aria-hidden":!g.value},{default:()=>[q()]})]),S("div",{class:"v-field__outline__end"},null)]),A.value&&y.value&&f(Jm,{ref:P,floating:!0,for:E.value,"aria-hidden":!g.value},{default:()=>[q()]})])])}),{controlRef:_,fieldIconColor:T}}}),Are=Ee({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...tt(),...Id({transition:{component:ty,leaveAbsolute:!0,group:!0}})},"VMessages"),Rre=$e()({name:"VMessages",props:Are(),setup(e,t){let{slots:n}=t;const r=D(()=>tr(e.messages)),{textColorClasses:i,textColorStyles:a}=Ci(()=>e.color);return Ue(()=>f(pa,{transition:e.transition,tag:"div",class:Oe(["v-messages",i.value,e.class]),style:We([a.value,e.style])},{default:()=>[e.active&&r.value.map((s,o)=>S("div",{class:"v-messages__message",key:`${o}-${r.value}`},[n.message?n.message({message:s}):s]))]})),{}}}),G$=Symbol.for("vuetify:form"),Ore=Ee({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function Nre(e){const t=gt(e,"modelValue"),n=ae(()=>e.disabled),r=ae(()=>e.readonly),i=Fe(!1),a=z([]),s=z([]);async function o(){const c=[];let d=!0;s.value=[],i.value=!0;for(const p of a.value){const h=await p.validate();if(h.length>0&&(d=!1,c.push({id:p.id,errorMessages:h})),!d&&e.fastFail)break}return s.value=c,i.value=!1,{valid:d,errors:s.value}}function l(){a.value.forEach(c=>c.reset())}function u(){a.value.forEach(c=>c.resetValidation())}return Ne(a,()=>{let c=0,d=0;const p=[];for(const h of a.value)h.isValid===!1?(d++,p.push({id:h.id,errorMessages:h.errorMessages})):h.isValid===!0&&c++;s.value=p,t.value=d>0?!1:c===a.value.length?!0:null},{deep:!0,flush:"post"}),bn(G$,{register:c=>{let{id:d,vm:p,validate:h,reset:g,resetValidation:v}=c;a.value.some(y=>y.id===d),a.value.push({id:d,validate:h,reset:g,resetValidation:v,vm:Dp(p),isValid:null,errorMessages:[]})},unregister:c=>{a.value=a.value.filter(d=>d.id!==c)},update:(c,d,p)=>{const h=a.value.find(g=>g.id===c);h&&(h.isValid=d,h.errorMessages=p)},isDisabled:n,isReadonly:r,isValidating:i,isValid:t,items:a,validateOn:ae(()=>e.validateOn)}),{errors:s,isDisabled:n,isReadonly:r,isValidating:i,isValid:t,items:a,validate:o,reset:l,resetValidation:u}}function hm(e){const t=mt(G$,null);return{...t,isReadonly:D(()=>!!(e?.readonly??t?.isReadonly.value)),isDisabled:D(()=>!!(e?.disabled??t?.isDisabled.value))}}const Dre=Symbol.for("vuetify:rules");function Lre(e){const t=mt(Dre,null);if(!e){if(!t)throw new Error("Could not find Vuetify rules injection");return t.aliases}return t?.resolve(e)??ae(e)}const Fre=Ee({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Rx()},"validation");function $re(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ti();const r=gt(e,"modelValue"),i=D(()=>e.validationValue===void 0?r.value:e.validationValue),a=hm(e),s=Lre(()=>e.rules),o=z([]),l=Fe(!0),u=D(()=>!!(tr(r.value===""?null:r.value).length||tr(i.value===""?null:i.value).length)),c=D(()=>e.errorMessages?.length?tr(e.errorMessages).concat(o.value).slice(0,Math.max(0,Number(e.maxErrors))):o.value),d=D(()=>{let C=(e.validateOn??a.validateOn?.value)||"input";C==="lazy"&&(C="input lazy"),C==="eager"&&(C="input eager");const P=new Set(C?.split(" ")??[]);return{input:P.has("input"),blur:P.has("blur")||P.has("input")||P.has("invalid-input"),invalidInput:P.has("invalid-input"),lazy:P.has("lazy"),eager:P.has("eager")}}),p=D(()=>e.error||e.errorMessages?.length?!1:e.rules.length?l.value?o.value.length||d.value.lazy?null:!0:!o.value.length:!0),h=Fe(!1),g=D(()=>({[`${t}--error`]:p.value===!1,[`${t}--dirty`]:u.value,[`${t}--disabled`]:a.isDisabled.value,[`${t}--readonly`]:a.isReadonly.value})),v=Gn("validation"),y=D(()=>e.name??ne(n));al(()=>{a.register?.({id:y.value,vm:v,validate:w,reset:b,resetValidation:E})}),xr(()=>{a.unregister?.(y.value)}),Nt(async()=>{d.value.lazy||await w(!d.value.eager),a.update?.(y.value,p.value,c.value)}),Gi(()=>d.value.input||d.value.invalidInput&&p.value===!1,()=>{Ne(i,()=>{if(i.value!=null)w();else if(e.focused){const C=Ne(()=>e.focused,P=>{P||w(),C()})}})}),Gi(()=>d.value.blur,()=>{Ne(()=>e.focused,C=>{C||w()})}),Ne([p,c],()=>{a.update?.(y.value,p.value,c.value)});async function b(){r.value=null,await Ct(),await E()}async function E(){l.value=!0,d.value.lazy?o.value=[]:await w(!d.value.eager)}async function w(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const P=[];h.value=!0;for(const _ of s.value){if(P.length>=Number(e.maxErrors??1))break;const I=await(typeof _=="function"?_:()=>_)(i.value);if(I!==!0){if(I!==!1&&typeof I!="string"){console.warn(`${I} is not a valid value. Rule functions must return boolean true or a string.`);continue}P.push(I||"")}}return o.value=P,h.value=!1,l.value=C,o.value}return{errorMessages:c,isDirty:u,isDisabled:a.isDisabled,isReadonly:a.isReadonly,isPristine:l,isValid:p,isValidating:h,reset:b,resetValidation:E,validate:w,validationClasses:g}}const ml=Ee({id:String,appendIcon:rt,baseColor:String,centerAffix:{type:Boolean,default:!0},color:String,glow:Boolean,iconColor:[Boolean,String],prependIcon:rt,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Ur(),"onClick:append":Ur(),...tt(),...Ar(),...Js(Hr(),["maxWidth","minWidth","width"]),...wn(),...Fre()},"VInput"),Yi=$e()({name:"VInput",props:{...ml()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:i}=t;const{densityClasses:a}=ps(e),{dimensionStyles:s}=Wr(e),{themeClasses:o}=On(e),{rtlClasses:l}=Or(),{InputIcon:u}=mm(e),c=Ti(),d=D(()=>e.id||`input-${c}`),{errorMessages:p,isDirty:h,isDisabled:g,isReadonly:v,isPristine:y,isValid:b,isValidating:E,reset:w,resetValidation:C,validate:P,validationClasses:_}=$re(e,"v-input",d),A=D(()=>e.errorMessages?.length||!y.value&&p.value.length?p.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages),I=ae(()=>A.value.length>0),T=ae(()=>!e.hideDetails||e.hideDetails==="auto"&&(I.value||!!r.details)),x=D(()=>T.value?`${d.value}-messages`:void 0),R=D(()=>({id:d,messagesId:x,isDirty:h,isDisabled:g,isReadonly:v,isPristine:y,isValid:b,isValidating:E,hasDetails:T,reset:w,resetValidation:C,validate:P})),O=ae(()=>e.error||e.disabled?void 0:e.focused?e.color:e.baseColor),L=ae(()=>{if(e.iconColor)return e.iconColor===!0?O.value:e.iconColor});return Ue(()=>{const F=!!(r.prepend||e.prependIcon),W=!!(r.append||e.appendIcon);return S("div",{class:Oe(["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--focused":e.focused,"v-input--glow":e.glow,"v-input--hide-spin-buttons":e.hideSpinButtons},a.value,o.value,l.value,_.value,e.class]),style:We([s.value,e.style])},[F&&S("div",{key:"prepend",class:"v-input__prepend"},[r.prepend?r.prepend(R.value):e.prependIcon&&f(u,{key:"prepend-icon",name:"prepend",color:L.value},null)]),r.default&&S("div",{class:"v-input__control"},[r.default?.(R.value)]),W&&S("div",{key:"append",class:"v-input__append"},[r.append?r.append(R.value):e.appendIcon&&f(u,{key:"append-icon",name:"append",color:L.value},null)]),T.value&&S("div",{id:x.value,class:"v-input__details",role:"alert","aria-live":"polite"},[f(Rre,{active:I.value,messages:A.value},{message:r.message}),r.details?.(R.value)])])}),{reset:w,resetValidation:C,validate:P,isValid:b,errorMessages:p}}}),q$=Ee({autocomplete:String},"autocomplete");function Ox(e){const t=Ti(),n=Fe(0),r=ae(()=>e.autocomplete==="suppress"),i=ae(()=>{if(e.name)return r.value?`${e.name}-${t}-${n.value}`:e.name}),a=ae(()=>r.value?"off":e.autocomplete);return{isSuppressing:r,fieldAutocomplete:a,fieldName:i,update:()=>n.value=new Date().getTime()}}function K$(e){function t(n,r){if(!e.autofocus||!n)return;const i=r[0].target;(i.matches("input,textarea")?i:i.querySelector("input,textarea"))?.focus()}return{onIntersect:t}}const Mre=["color","file","time","date","datetime-local","week","month"],ay=Ee({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...q$(),...ml(),...sy()},"VTextField"),yt=$e()({name:"VTextField",directives:{vIntersect:qc},inheritAttrs:!1,props:ay(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const a=gt(e,"modelValue"),{isFocused:s,focus:o,blur:l}=Vu(e),{onIntersect:u}=K$(e),c=D(()=>typeof e.counterValue=="function"?e.counterValue(a.value):typeof e.counterValue=="number"?e.counterValue:(a.value??"").toString().length),d=D(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),p=D(()=>["plain","underlined"].includes(e.variant)),h=z(),g=z(),v=z(),y=Ox(e),b=D(()=>Mre.includes(e.type)||e.persistentPlaceholder||s.value||e.active);function E(){y.isSuppressing.value&&y.update(),s.value||o(),Ct(()=>{v.value!==document.activeElement&&v.value?.focus()})}function w(A){r("mousedown:control",A),A.target!==v.value&&(E(),A.preventDefault())}function C(A){r("click:control",A)}function P(A,I){A.stopPropagation(),E(),Ct(()=>{I(),nm(e["onClick:clear"],A)})}function _(A){const I=A.target;if(!(e.modelModifiers?.trim&&["text","search","password","tel","url"].includes(e.type))){a.value=I.value;return}const T=I.value,x=I.selectionStart,R=I.selectionEnd;a.value=T,Ct(()=>{let O=0;T.trimStart().length===I.value.length&&(O=T.length-I.value.length),x!=null&&(I.selectionStart=x-O),R!=null&&(I.selectionEnd=R-O)})}return Ue(()=>{const A=!!(i.counter||e.counter!==!1&&e.counter!=null),I=!!(A||i.details),[T,x]=dl(n),{modelValue:R,...O}=Yi.filterProps(e),L=ed.filterProps(e);return f(Yi,ve({ref:h,modelValue:a.value,"onUpdate:modelValue":F=>a.value=F,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":p.value},e.class],style:e.style},T,O,{centerAffix:!p.value,focused:s.value}),{...i,default:F=>{let{id:W,isDisabled:H,isDirty:B,isReadonly:$,isValid:Y,hasDetails:q,reset:U}=F;return f(ed,ve({ref:g,onMousedown:w,onClick:C,"onClick:clear":M=>P(M,U),role:e.role},Rn(L,["onClick:clear"]),{id:W.value,labelId:`${W.value}-label`,active:b.value||B.value,dirty:B.value||e.dirty,disabled:H.value,focused:s.value,details:q.value,error:Y.value===!1}),{...i,default:M=>{let{props:{class:K,...fe},controlRef:he}=M;const Re=S("input",ve({ref:Q=>v.value=he.value=Q,value:a.value,onInput:_,autofocus:e.autofocus,readonly:$.value,disabled:H.value,name:y.fieldName.value,autocomplete:y.fieldAutocomplete.value,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:o,onBlur:l,"aria-labelledby":`${W.value}-label`},fe,x),null);return S(De,null,[e.prefix&&S("span",{class:"v-text-field__prefix"},[S("span",{class:"v-text-field__prefix__text"},[e.prefix])]),dn(i.default?S("div",{class:Oe(K),"data-no-activator":""},[i.default({id:W}),Re]):Xs(Re,{class:K}),[[qc,u,null,{once:!0}]]),e.suffix&&S("span",{class:"v-text-field__suffix"},[S("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:I?F=>S(De,null,[i.details?.(F),A&&S(De,null,[S("span",null,null),f(Ax,{active:e.persistentCounter||s.value,value:c.value,max:d.value,disabled:e.disabled},i.counter)])]):void 0})}),fi({},h,g,v)}}),Vre={class:"d-flex align-center mb-3"},Bre={class:"text-h6 font-weight-bold"},Ure={class:"flex-grow-1"},jre={class:"text-h6 font-weight-bold"},zre={class:"text-caption text-medium-emphasis"},Hre={key:0,class:"mt-3"},Wre={class:"d-flex justify-space-between align-center mb-1"},Gre={class:"text-body-2"},qre={class:"text-body-2 font-weight-bold"},Kre={class:"ma-3"},Yre={class:"text-caption"},Xre={class:"d-flex flex-wrap ga-2"},Jre={class:"d-flex flex-wrap ga-2"},Qre={class:"file-list"},Zre={key:0,class:"d-flex justify-center py-4"},eie={key:1,class:"text-center py-6"},tie={class:"d-flex align-center"},nie={class:"flex-grow-1 min-width-0"},rie=["title"],iie={class:"text-caption text-medium-emphasis"},sie={class:"d-flex ga-1"},aie={class:"d-flex flex-wrap ga-2"},oie=je({__name:"FileExplorerSideNav",setup(e){const t=vn(),n=jr(),r=fm(),i=z(void 0),a=z(void 0),s=r.isOpen,o=r.loading,l=r.error,u=r.currentPrinterId,c=D(()=>{if(u.value)return t.printer(u.value)}),d=D(()=>u.value?n.isApiResponding(u.value):!1),p=D(()=>us(c.value?.printerType)),h=D(()=>u.value?n.isPrinterOperational(u.value):!1),g=D(()=>c.value?.enabled),v=D(()=>!!c.value?.disabledReason?.length),y=D(()=>u.value?n.isPrinterPrinting(u.value):!1),b=D(()=>a.value?.length?a.value.filter(re=>i.value?.length?`${re.path}`.toLowerCase().includes(i.value):!0)||[]:[]),E=D(()=>!c.value||!u.value?!1:n.isPrinterStoppable(u.value)),w=D(()=>!c.value||!u.value?!1:n.isPrinterPaused(u.value)),C=D(()=>u.value?a.value?.length&&n.isApiResponding(u.value):!1),P=D(()=>{if(!u.value)throw new Error("Printer ID not set, cannot get current job");return n.printerJobsById[u.value]}),_=D(()=>{if(!u.value)throw new Error("Printer ID not set, cannot get current printing file name");return n.printingFilePathsByPrinterId[u.value]}),A=async()=>{r.setLoading(!0),r.setError(!1);const re=u.value;if(re)try{n.isApiResponding(re)?a.value=await t.loadPrinterFiles(re):a.value=await Qa.getFileCache(re)}catch(X){console.warn("Failed to load printer files:",X),r.setError(!0),a.value=[]}finally{r.setLoading(!1)}},I=async re=>{u.value&&await t.deletePrinterFile(u.value,re.path)};Ne(u,async(re,X)=>{re&&re!==X?await A():re||(a.value=void 0)});function T(re){return re?re?.toFixed(1):""}function x(re){return u.value?n.printingFilePathsByPrinterId[u.value]===re.path:!1}function R(){const re=c.value;if(re&&s.value)return ry(re.name)}function O(){c.value&&(xn.openPrinterURL(c.value.printerURL),fe())}async function L(){if(u.value){if(n.isPrinterOperational(u.value))return await xn.sendPrinterDisconnectCommand(u.value);await xn.sendPrinterConnectCommand(u.value)}}async function F(){if(!u.value)throw new Error("Printer ID not set, cant toggle enabled");if(!c.value)throw new Error("Cant toggle enabled, sidenav printer unset");const re=!c.value.enabled;await xn.toggleEnabled(u.value,re)}async function W(){if(!u.value)throw new Error("Printer ID not set, cant toggle maintenance");if(!c.value)throw new Error("Cant toggle enabled, sidenav printer unset");if(v.value){const re=await Za.getActiveByPrinterId(u.value);re&&await Za.complete(re.id,{});return}await zt(Ht.PrinterMaintenanceDialog).openDialog({printerId:u.value}),fe()}async function H(){u.value&&await xn.refreshSocket(u.value)}async function B(){u.value&&confirm("Are you sure to cancel the current print job?")&&await xn.stopPrintJob(u.value)}async function $(){u.value&&await xn.pausePrintJob(u.value)}async function Y(){u.value&&await xn.resumePrintJob(u.value)}async function q(){u.value&&confirm("Are you sure to delete all files for this printer?")&&(r.setLoading(!0),await t.deletePrinterFiles(u.value),r.setLoading(!1),a.value=t.printerFiles(u.value))}function U(){c.value&&(zt(Ht.AddOrUpdatePrinterDialog).openDialog({id:c.value.id}),fe())}async function M(re){u.value&&await n.selectAndPrintFile({printerId:u.value,fullPath:re.path})}function K(re){u.value&&Qa.downloadFile(u.value,re)}function fe(){r.closeFileExplorer()}function he(){return g.value?d.value?y.value?"success":h.value?"primary":"medium-emphasis":"warning":"error"}function Re(){return g.value?d.value?y.value?"print":h.value?"check_circle":"radio_button_unchecked":"wifi_off":"power_off"}function Q(){return g.value?d.value?y.value&&w.value?"Paused":y.value?"Printing":h.value?"Ready":"Idle":"Offline":"Disabled"}return(re,X)=>(N(),Z(Px,{"model-value":ne(s),location:"right",temporary:"",width:"420",class:"printer-side-nav","onUpdate:modelValue":fe},{default:m(()=>[c.value?(N(),Z(Ve,{key:0,class:"ma-3 mb-4",elevation:"2",rounded:"lg"},{default:m(()=>[f(qe,{class:"pb-2"},{default:m(()=>[S("div",Vre,[f(Sn,{size:48,color:"primary",class:"mr-3"},{default:m(()=>[S("span",Bre,V(R()),1)]),_:1}),S("div",Ure,[S("div",jre,V(c.value.name),1),S("div",zre,V(p.value),1)]),c.value&&ne(L$)(c.value.printerType)?(N(),Z(te,{key:0,icon:"open_in_new",variant:"text",size:"small",onClick:X[0]||(X[0]=ie=>O())})):se("",!0)]),f(He,{color:he(),"prepend-icon":Re(),size:"small",class:"mb-2"},{default:m(()=>[k(V(Q()),1)]),_:1},8,["color","prepend-icon"]),P.value?.progress&&y.value?(N(),le("div",Hre,[S("div",Wre,[S("span",Gre,V(_.value),1),S("span",qre,V(T(P.value.progress.completion))+"% ",1)]),f(si,{"model-value":P.value.progress.completion,color:"primary",height:"6",rounded:""},null,8,["model-value"])])):se("",!0)]),_:1})]),_:1})):se("",!0),S("div",Kre,[g.value?d.value?se("",!0):(N(),Z(kt,{key:1,type:"info",variant:"tonal",class:"mb-3",density:"compact"},{prepend:m(()=>[f(j,null,{default:m(()=>[...X[14]||(X[14]=[k("wifi_off",-1)])]),_:1})]),default:m(()=>[X[15]||(X[15]=k(" Printer appears offline. Attempting to reconnect... ",-1))]),_:1})):(N(),Z(kt,{key:0,type:"warning",variant:"tonal",class:"mb-3",density:"compact"},{prepend:m(()=>[f(j,null,{default:m(()=>[...X[12]||(X[12]=[k("power_off",-1)])]),_:1})]),default:m(()=>[X[13]||(X[13]=k(" Printer is disabled. Enable to receive live updates. ",-1))]),_:1})),c.value?.disabledReason?(N(),Z(kt,{key:2,type:"error",variant:"tonal",class:"mb-3",density:"compact"},{prepend:m(()=>[f(j,null,{default:m(()=>[...X[16]||(X[16]=[k("construction",-1)])]),_:1})]),default:m(()=>[S("div",null,[X[17]||(X[17]=S("div",{class:"font-weight-bold"},"Under Maintenance",-1)),S("div",Yre,V(c.value.disabledReason),1)])]),_:1})):se("",!0),ne(l)?(N(),Z(kt,{key:3,type:"warning",variant:"tonal",class:"mb-3",density:"compact"},{prepend:m(()=>[f(j,null,{default:m(()=>[...X[18]||(X[18]=[k("warning",-1)])]),_:1})]),default:m(()=>[S("div",null,[S("div",null,"Unable to load files from "+V(p.value),1),f(te,{size:"small",variant:"outlined",class:"mt-2",onClick:X[1]||(X[1]=ie=>A())},{default:m(()=>[...X[19]||(X[19]=[k(" Try Again ",-1)])]),_:1})])]),_:1})):se("",!0)]),f(Ve,{class:"ma-3 mb-4",elevation:"1",rounded:"lg"},{default:m(()=>[f(st,{class:"text-subtitle-1 py-3"},{default:m(()=>[...X[20]||(X[20]=[k(" Quick Actions ",-1)])]),_:1}),f(qe,{class:"pt-0"},{default:m(()=>[S("div",Xre,[f(te,{disabled:!g.value||!d.value,color:h.value?"warning":"success",size:"small",variant:"outlined",onClick:X[2]||(X[2]=ie=>L())},{default:m(()=>[f(j,{start:""},{default:m(()=>[k(V(h.value?"usb_off":"usb"),1)]),_:1}),k(" "+V(h.value?"Disconnect":"Connect"),1)]),_:1},8,["disabled","color"]),f(te,{color:g.value?"warning":"success",size:"small",variant:"outlined",onClick:X[3]||(X[3]=ie=>F())},{default:m(()=>[f(j,{start:""},{default:m(()=>[k(V(g.value?"pause":"play_arrow"),1)]),_:1}),k(" "+V(g.value?"Disable":"Enable"),1)]),_:1},8,["color"]),f(te,{size:"small",variant:"outlined",onClick:X[4]||(X[4]=ie=>H())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...X[21]||(X[21]=[k("refresh",-1)])]),_:1}),X[22]||(X[22]=k(" Refresh ",-1))]),_:1}),f(te,{color:v.value?"warning":"default",size:"small",variant:"outlined",onClick:X[5]||(X[5]=ie=>W())},{default:m(()=>[f(j,{start:""},{default:m(()=>[k(V(v.value?"build_circle":"build"),1)]),_:1}),k(" "+V(v.value?"Update":"Maintenance"),1)]),_:1},8,["color"])])]),_:1})]),_:1}),y.value||E.value||w.value?(N(),Z(Ve,{key:1,class:"ma-3 mb-4",elevation:"1",rounded:"lg"},{default:m(()=>[f(st,{class:"text-subtitle-1 py-3"},{default:m(()=>[...X[23]||(X[23]=[k(" Print Controls ",-1)])]),_:1}),f(qe,{class:"pt-0"},{default:m(()=>[S("div",Jre,[y.value||w.value?(N(),Z(te,{key:0,disabled:!d.value,color:w.value?"success":"warning",size:"small",variant:"outlined",onClick:X[6]||(X[6]=ie=>w.value?Y():$())},{default:m(()=>[f(j,{start:""},{default:m(()=>[k(V(w.value?"play_arrow":"pause"),1)]),_:1}),k(" "+V(w.value?"Resume":"Pause"),1)]),_:1},8,["disabled","color"])):se("",!0),E.value?(N(),Z(te,{key:1,color:"error",size:"small",variant:"outlined",onClick:X[7]||(X[7]=ie=>B())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...X[24]||(X[24]=[k("stop",-1)])]),_:1}),X[25]||(X[25]=k(" Cancel Print ",-1))]),_:1})):se("",!0)])]),_:1})]),_:1})):se("",!0),f(Ve,{class:"ma-3 mb-4 flex-grow-1",elevation:"1",rounded:"lg"},{default:m(()=>[f(st,{class:"d-flex align-center py-3"},{default:m(()=>[X[26]||(X[26]=S("span",{class:"text-subtitle-1"},"Files",-1)),f(ht),f(te,{icon:"refresh",size:"small",variant:"text",onClick:X[8]||(X[8]=ie=>A())})]),_:1}),f(et),f(qe,{class:"pt-3"},{default:m(()=>[f(yt,{modelValue:i.value,"onUpdate:modelValue":X[9]||(X[9]=ie=>i.value=ie),placeholder:"Search files...","prepend-inner-icon":"search",variant:"outlined",density:"compact",clearable:"","hide-details":"",class:"mb-3"},null,8,["modelValue"]),S("div",Qre,[ne(o)?(N(),le("div",Zre,[f(Bn,{indeterminate:"",size:"32"})])):!b.value.length&&!ne(l)?(N(),le("div",eie,[f(j,{size:"48",color:"medium-emphasis",class:"mb-2"},{default:m(()=>[...X[27]||(X[27]=[k(" folder_open ",-1)])]),_:1}),X[28]||(X[28]=S("div",{class:"text-body-2 text-medium-emphasis"}," No files found ",-1))])):se("",!0),(N(!0),le(De,null,Vt(b.value,(ie,we)=>(N(),le("div",{key:we,class:"file-item"},[f(Ve,{class:Oe([{"file-printing":x(ie)},"mb-2"]),variant:"outlined",rounded:"lg"},{default:m(()=>[f(qe,{class:"py-2 px-3"},{default:m(()=>[S("div",tie,[f(j,{color:x(ie)?"primary":"medium-emphasis",class:"mr-3"},{default:m(()=>[k(V(x(ie)?"play_circle":"insert_drive_file"),1)]),_:2},1032,["color"]),S("div",nie,[S("div",{class:Oe([{"text-primary font-weight-bold":x(ie)},"text-body-2 text-truncate"]),title:ie.path},V(ie.path),11,rie),S("div",iie,V(ne(ap)(ie.size)),1)]),S("div",sie,[f(te,{icon:"download",size:"x-small",variant:"text",onClick:Pe=>K(ie.path)},null,8,["onClick"]),f(te,{disabled:x(ie),icon:"play_arrow",size:"x-small",variant:"text",color:"success",onClick:Pe=>M(ie)},null,8,["disabled","onClick"]),f(te,{disabled:x(ie),icon:"delete",size:"x-small",variant:"text",color:"error",onClick:Pe=>I(ie)},null,8,["disabled","onClick"])])])]),_:2},1024)]),_:2},1032,["class"])]))),128))])]),_:1})]),_:1}),f(Ve,{class:"ma-3",elevation:"1",rounded:"lg"},{default:m(()=>[f(qe,{class:"py-3"},{default:m(()=>[S("div",aie,[f(te,{disabled:!C.value,color:"error",size:"small",variant:"outlined",onClick:X[10]||(X[10]=ie=>q())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...X[29]||(X[29]=[k("delete_sweep",-1)])]),_:1}),X[30]||(X[30]=k(" Clear All ",-1))]),_:1},8,["disabled"]),f(te,{size:"small",variant:"outlined",onClick:X[11]||(X[11]=ie=>U())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...X[31]||(X[31]=[k("settings",-1)])]),_:1}),X[32]||(X[32]=k(" Settings ",-1))]),_:1})])]),_:1})]),_:1})]),_:1},8,["model-value"]))}}),lie=En(oie,[["__scopeId","data-v-2f85d5e7"]]),Fa="#FFFFFF";class Vo extends di{static async createTag(t,n=Fa){const r=`${Se.createTagRoute}`,i={name:t,color:n};return await this.post(r,i)}static async deleteTag(t){const n=`${Se.deleteTagRoute(t)}`;return await this.delete(n)}static async getTagsWithPrinters(){const t=`${Se.printerTagRoute}`;return await this.get(t)}static async addPrinterToTag(t,n){const r=`${Se.addPrinterToTagRoute(t)}`,i={printerId:n};return await this.post(r,i)}static async deletePrinterTag(t,n){const r=`${Se.deletePrinterFromTagRoute(t)}`,i={printerId:n};return await this.delete(r,i)}static async updateTagName(t,n){const r=`${Se.updateTagNameRoute(t)}`,i={name:n};return await this.patch(r,i)}static async updateTagColor(t,n){const r=`${Se.updateTagColorRoute(t)}`,i={color:n};return await this.patch(r,i)}}var Pd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},uie={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},cie=class{#e=uie;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Fl=new cie;function die(e){setTimeout(e,0)}var Su=typeof window>"u"||"Deno"in globalThis;function Ss(){}function fie(e,t){return typeof e=="function"?e(t):e}function LS(e){return typeof e=="number"&&e>=0&&e!==1/0}function Y$(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Go(e,t){return typeof e=="function"?e(t):e}function ws(e,t){return typeof e=="function"?e(t):e}function nP(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==Nx(s,t.options))return!1}else if(!fp(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||a&&!a(t))}function rP(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(wu(t.options.mutationKey)!==wu(a))return!1}else if(!fp(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Nx(e,t){return(t?.queryKeyHashFn||wu)(e)}function wu(e){return JSON.stringify(e,(t,n)=>FS(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function fp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>fp(e[n],t[n])):!1}var pie=Object.prototype.hasOwnProperty;function X$(e,t){if(e===t)return e;const n=iP(e)&&iP(t);if(!n&&!(FS(e)&&FS(t)))return t;const i=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),s=a.length,o=n?new Array(s):{};let l=0;for(let u=0;u<s;u++){const c=n?u:a[u],d=e[c],p=t[c];if(d===p){o[c]=d,(n?u<i:pie.call(e,c))&&l++;continue}if(d===null||p===null||typeof d!="object"||typeof p!="object"){o[c]=p;continue}const h=X$(d,p);o[c]=h,h===d&&l++}return i===s&&l===i?e:o}function Vg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function iP(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function FS(e){if(!sP(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!sP(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function sP(e){return Object.prototype.toString.call(e)==="[object Object]"}function mie(e){return new Promise(t=>{Fl.setTimeout(t,e)})}function $S(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?X$(e,t):t}function hie(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function gie(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Dx=Symbol();function J$(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Dx?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function MS(e,t){return typeof e=="function"?e(...t):!!e}function vie(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var yie=class extends Pd{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Su&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Lx=new yie;function VS(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var bie=die;function Sie(){let e=[],t=0,n=o=>{o()},r=o=>{o()},i=bie;const a=o=>{t?e.push(o):i(()=>{n(o)})},s=()=>{const o=e;e=[],o.length&&i(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;t++;try{l=o()}finally{t--,t||s()}return l},batchCalls:o=>(...l)=>{a(()=>{o(...l)})},schedule:a,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var $r=Sie(),wie=class extends Pd{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Su&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Bg=new wie;function Eie(e){return Math.min(1e3*2**e,3e4)}function Q$(e){return(e??"online")==="online"?Bg.isOnline():!0}var BS=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Z$(e){let t=!1,n=0,r;const i=VS(),a=()=>i.status!=="pending",s=v=>{if(!a()){const y=new BS(v);p(y),e.onCancel?.(y)}},o=()=>{t=!0},l=()=>{t=!1},u=()=>Lx.isFocused()&&(e.networkMode==="always"||Bg.isOnline())&&e.canRun(),c=()=>Q$(e.networkMode)&&e.canRun(),d=v=>{a()||(r?.(),i.resolve(v))},p=v=>{a()||(r?.(),i.reject(v))},h=()=>new Promise(v=>{r=y=>{(a()||u())&&v(y)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),g=()=>{if(a())return;let v;const y=n===0?e.initialPromise:void 0;try{v=y??e.fn()}catch(b){v=Promise.reject(b)}Promise.resolve(v).then(d).catch(b=>{if(a())return;const E=e.retry??(Su?0:3),w=e.retryDelay??Eie,C=typeof w=="function"?w(n,b):w,P=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,b);if(t||!P){p(b);return}n++,e.onFail?.(n,b),mie(C).then(()=>u()?void 0:h()).then(()=>{t?p(b):g()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r?.(),i),cancelRetry:o,continueRetry:l,canStart:c,start:()=>(c()?g():h().then(g),i)}}var eM=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),LS(this.gcTime)&&(this.#e=Fl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Su?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Fl.clearTimeout(this.#e),this.#e=void 0)}},xie=class extends eM{#e;#t;#n;#i;#r;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=oP(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=oP(this.options);t.data!==void 0&&(this.setState(aP(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=$S(this.state.data,e,this.options);return this.#s({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Ss).catch(Ss):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>ws(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Dx||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Go(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Y$(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const o=this.observers.find(l=>l.options.queryFn);o&&this.setOptions(o.options)}const n=new AbortController,r=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{const o=J$(this.options,t),u=(()=>{const c={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(c),c})();return this.#o=!1,this.options.persister?this.options.persister(o,u,this):o(u)},s=(()=>{const o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(o),o})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#s({type:"fetch",meta:s.fetchOptions?.meta}),this.#r=Z$({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:o=>{o instanceof BS&&o.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(o,l)=>{this.#s({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const o=await this.#r.start();if(o===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#n.config.onSuccess?.(o,this),this.#n.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof BS){if(o.silent)return this.#r.promise;if(o.revert){if(this.state.data===void 0)throw o;return this.state.data}}throw this.#s({type:"error",error:o}),this.#n.config.onError?.(o,this),this.#n.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...tM(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...aP(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),$r.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function tM(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Q$(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function aP(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function oP(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var kie=class extends Pd{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=VS(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#a;#o;#s;#h;#f;#p;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),lP(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return US(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return US(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ws(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#t.setOptions(this.options),t._defaulted&&!Vg(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&uP(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||ws(this.options.enabled,this.#t)!==ws(t.enabled,this.#t)||Go(this.options.staleTime,this.#t)!==Go(t.staleTime,this.#t))&&this.#g();const i=this.#v();r&&(this.#t!==n||ws(this.options.enabled,this.#t)!==ws(t.enabled,this.#t)||i!==this.#l)&&this.#y(i)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return _ie(this,n)&&(this.#i=n,this.#a=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#E();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ss)),t}#g(){this.#S();const e=Go(this.options.staleTime,this.#t);if(Su||this.#i.isStale||!LS(e))return;const n=Y$(this.#i.dataUpdatedAt,e)+1;this.#u=Fl.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(Su||ws(this.options.enabled,this.#t)===!1||!LS(this.#l)||this.#l===0)&&(this.#c=Fl.setInterval(()=>{(this.options.refetchIntervalInBackground||Lx.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#S(){this.#u&&(Fl.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(Fl.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#t,r=this.options,i=this.#i,a=this.#r,s=this.#a,l=e!==n?e.state:this.#n,{state:u}=e;let c={...u},d=!1,p;if(t._optimisticResults){const I=this.hasListeners(),T=!I&&lP(e,t),x=I&&uP(e,n,t,r);(T||x)&&(c={...c,...tM(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:h,errorUpdatedAt:g,status:v}=c;p=c.data;let y=!1;if(t.placeholderData!==void 0&&p===void 0&&v==="pending"){let I;i?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(I=i.data,y=!0):I=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,I!==void 0&&(v="success",p=$S(i?.data,I,t),d=!0)}if(t.select&&p!==void 0&&!y)if(i&&p===a?.data&&t.select===this.#h)p=this.#f;else try{this.#h=t.select,p=t.select(p),p=$S(i?.data,p,t),this.#f=p,this.#s=null}catch(I){this.#s=I}this.#s&&(h=this.#s,p=this.#f,g=Date.now(),v="error");const b=c.fetchStatus==="fetching",E=v==="pending",w=v==="error",C=E&&b,P=p!==void 0,A={status:v,fetchStatus:c.fetchStatus,isPending:E,isSuccess:v==="success",isError:w,isInitialLoading:C,isLoading:C,data:p,dataUpdatedAt:c.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!E,isLoadingError:w&&!P,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&P,isStale:Fx(e,t),refetch:this.refetch,promise:this.#o,isEnabled:ws(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const I=R=>{A.status==="error"?R.reject(A.error):A.data!==void 0&&R.resolve(A.data)},T=()=>{const R=this.#o=A.promise=VS();I(R)},x=this.#o;switch(x.status){case"pending":e.queryHash===n.queryHash&&I(x);break;case"fulfilled":(A.status==="error"||A.data!==x.value)&&T();break;case"rejected":(A.status!=="error"||A.error!==x.reason)&&T();break}}return A}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#a=this.options,this.#r.data!==void 0&&(this.#p=this.#t),Vg(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#m.size)return!0;const a=new Set(i??this.#m);return this.options.throwOnError&&a.add("error"),Object.keys(this.#i).some(s=>{const o=s;return this.#i[o]!==e[o]&&a.has(o)})};this.#x({listeners:n()})}#E(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(e){$r.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Cie(e,t){return ws(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function lP(e,t){return Cie(e,t)||e.state.data!==void 0&&US(e,t,t.refetchOnMount)}function US(e,t,n){if(ws(t.enabled,e)!==!1&&Go(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Fx(e,t)}return!1}function uP(e,t,n,r){return(e!==t||ws(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Fx(e,n)}function Fx(e,t){return ws(t.enabled,e)!==!1&&e.isStaleByTime(Go(t.staleTime,e))}function _ie(e,t){return!Vg(e.getCurrentResult(),t)}function cP(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let o={pages:[],pageParams:[]},l=0;const u=async()=>{let c=!1;const d=g=>{vie(g,()=>t.signal,()=>c=!0)},p=J$(t.options,t.fetchOptions),h=async(g,v,y)=>{if(c)return Promise.reject();if(v==null&&g.pages.length)return Promise.resolve(g);const E=(()=>{const _={client:t.client,queryKey:t.queryKey,pageParam:v,direction:y?"backward":"forward",meta:t.options.meta};return d(_),_})(),w=await p(E),{maxPages:C}=t.options,P=y?gie:hie;return{pages:P(g.pages,w,C),pageParams:P(g.pageParams,v,C)}};if(i&&a.length){const g=i==="backward",v=g?Tie:dP,y={pages:a,pageParams:s},b=v(r,y);o=await h(y,b,g)}else{const g=e??a.length;do{const v=l===0?s[0]??r.initialPageParam:dP(r,o);if(l>0&&v==null)break;o=await h(o,v),l++}while(l<g)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function dP(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Tie(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Iie=class extends eM{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||nM(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Z$({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#r({type:"failed",failureCount:a,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",i=!this.#i.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:i}),await this.#n.config.onMutate?.(e,this,n);const s=await this.options.onMutate?.(e,n);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:i})}const a=await this.#i.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#r({type:"success",data:a}),a}catch(a){try{await this.#n.config.onError?.(a,e,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onError?.(a,e,this.state.context,n)}catch(s){Promise.reject(s)}try{await this.#n.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,a,e,this.state.context,n)}catch(s){Promise.reject(s)}throw this.#r({type:"error",error:a}),a}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),$r.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function nM(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var rM=class extends Pd{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,n,r){const i=new Iie({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){this.#e.add(t);const n=Qm(t);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(t):this.#t.set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const n=Qm(t);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&this.#t.delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Qm(t);if(typeof n=="string"){const i=this.#t.get(n)?.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){const n=Qm(t);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){$r.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const n={exact:!0,...t};return this.getAll().find(r=>rP(n,r))}findAll(t={}){return this.getAll().filter(n=>rP(t,n))}notify(t){$r.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return $r.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ss))))}};function Qm(e){return e.options.scope?.id}var Pie=class extends Pd{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),Vg(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&wu(n.mutationKey)!==wu(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#a()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??nM();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){$r.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,n,r,i)}catch(a){Promise.reject(a)}try{this.#i.onSettled?.(t.data,null,n,r,i)}catch(a){Promise.reject(a)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,n,r,i)}catch(a){Promise.reject(a)}try{this.#i.onSettled?.(void 0,t.error,n,r,i)}catch(a){Promise.reject(a)}}}this.listeners.forEach(n=>{n(this.#t)})})}},iM=class extends Pd{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,n,r){const i=n.queryKey,a=n.queryHash??Nx(i,n);let s=this.get(a);return s||(s=new xie({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=this.#e.get(t.queryHash);n&&(t.destroy(),n===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){$r.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>nP(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>nP(t,r)):n}notify(t){$r.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){$r.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){$r.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Aie=class{#e;#t;#n;#i;#r;#a;#o;#s;constructor(t={}){this.#e=t.queryCache||new iM,this.#t=t.mutationCache||new rM,this.#n=t.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Lx.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Bg.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),r=this.#e.build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Go(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.defaultQueryOptions({queryKey:t}),s=this.#e.get(i.queryHash)?.state.data,o=fie(n,s);if(o!==void 0)return this.#e.build(this,i).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return $r.batch(()=>this.#e.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state}removeQueries(t){const n=this.#e;$r.batch(()=>{n.findAll(t).forEach(r=>{n.remove(r)})})}resetQueries(t,n){const r=this.#e;return $r.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const r={revert:!0,...n},i=$r.batch(()=>this.#e.findAll(t).map(a=>a.cancel(r)));return Promise.all(i).then(Ss).catch(Ss)}invalidateQueries(t,n={}){return $r.batch(()=>(this.#e.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},n)))}refetchQueries(t,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=$r.batch(()=>this.#e.findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,r);return r.throwOnError||(s=s.catch(Ss)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(Ss)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Go(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ss).catch(Ss)}fetchInfiniteQuery(t){return t.behavior=cP(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ss).catch(Ss)}ensureInfiniteQueryData(t){return t.behavior=cP(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Bg.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,n){this.#i.set(wu(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...this.#i.values()],r={};return n.forEach(i=>{fp(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,n){this.#r.set(wu(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...this.#r.values()],r={};return n.forEach(i=>{fp(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const n={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=Nx(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Dx&&(n.enabled=!1),n}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Rie="VUE_QUERY_CLIENT";function sM(e){const t=e?`:${e}`:"";return`${Rie}${t}`}function jS(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function zS(e,t,n="",r=0){if(t){const i=t(e,n,r);if(i===void 0&&Tt(e)||i!==void 0)return i}if(Array.isArray(e))return e.map((i,a)=>zS(i,t,String(a),r+1));if(typeof e=="object"&&Nie(e)){const i=Object.entries(e).map(([a,s])=>[a,zS(s,t,a,r+1)]);return Object.fromEntries(i)}return e}function Oie(e,t){return zS(e,t)}function Ft(e,t=!1){return Oie(e,(n,r,i)=>{if(i===1&&r==="queryKey")return Ft(n,!0);if(t&&Die(n))return Ft(n(),t);if(Tt(n))return Ft(ne(n),t)})}function Nie(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Die(e){return typeof e=="function"}function oy(e=""){if(!Dw())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=sM(e),n=mt(t);if(!n)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return n}var Lie=class extends iM{find(e){return super.find(Ft(e))}findAll(e={}){return super.findAll(Ft(e))}},Fie=class extends rM{find(e){return super.find(Ft(e))}findAll(e={}){return super.findAll(Ft(e))}},$ie=class extends Aie{constructor(e={}){const t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new Lie,mutationCache:e.mutationCache||new Fie};super(t),this.isRestoring=z(!1)}isFetching(e={}){return super.isFetching(Ft(e))}isMutating(e={}){return super.isMutating(Ft(e))}getQueryData(e){return super.getQueryData(Ft(e))}ensureQueryData(e){return super.ensureQueryData(Ft(e))}getQueriesData(e){return super.getQueriesData(Ft(e))}setQueryData(e,t,n={}){return super.setQueryData(Ft(e),t,Ft(n))}setQueriesData(e,t,n={}){return super.setQueriesData(Ft(e),t,Ft(n))}getQueryState(e){return super.getQueryState(Ft(e))}removeQueries(e={}){return super.removeQueries(Ft(e))}resetQueries(e={},t={}){return super.resetQueries(Ft(e),Ft(t))}cancelQueries(e={},t={}){return super.cancelQueries(Ft(e),Ft(t))}invalidateQueries(e={},t={}){const n=Ft(e),r=Ft(t);if(super.invalidateQueries({...n,refetchType:"none"},r),n.refetchType==="none")return Promise.resolve();const i={...n,type:n.refetchType??n.type??"active"};return Ct().then(()=>super.refetchQueries(i,r))}refetchQueries(e={},t={}){return super.refetchQueries(Ft(e),Ft(t))}fetchQuery(e){return super.fetchQuery(Ft(e))}prefetchQuery(e){return super.prefetchQuery(Ft(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(Ft(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(Ft(e))}setDefaultOptions(e){super.setDefaultOptions(Ft(e))}setQueryDefaults(e,t){super.setQueryDefaults(Ft(e),Ft(t))}getQueryDefaults(e){return super.getQueryDefaults(Ft(e))}setMutationDefaults(e,t){super.setMutationDefaults(Ft(e),Ft(t))}getMutationDefaults(e){return super.getMutationDefaults(Ft(e))}},Mie={install:(e,t={})=>{const n=sM(t.queryClientKey);let r;if("queryClient"in t&&t.queryClient)r=t.queryClient;else{const s="queryClientConfig"in t?t.queryClientConfig:void 0;r=new $ie(s)}Su||r.mount();let i=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);const[s,o]=t.clientPersister(r);i=s,o.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),t.clientPersisterOnSuccess?.(r)})}const a=()=>{r.unmount(),i()};if(e.onUnmount)e.onUnmount(a);else{const s=e.unmount;e.unmount=function(){a(),s()}}e.provide(n,r)}};function Vie(e,t,n){const r=oy(),i=D(()=>{let h=t;typeof h=="function"&&(h=h());const g=Ft(h);typeof g.enabled=="function"&&(g.enabled=g.enabled());const v=r.defaultQueryOptions(g);return v._optimisticResults=r.isRestoring?.value?"isRestoring":"optimistic",v}),a=new e(r,i.value),s=i.value.shallow?Op(a.getCurrentResult()):Dn(a.getCurrentResult());let o=()=>{};r.isRestoring&&Ne(r.isRestoring,h=>{h||(o(),o=a.subscribe(g=>{jS(s,g)}))},{immediate:!0});const l=()=>{a.setOptions(i.value),jS(s,a.getCurrentResult())};Ne(i,l),An(()=>{o()});const u=(...h)=>(l(),s.refetch(...h)),c=()=>new Promise((h,g)=>{let v=()=>{};const y=()=>{if(i.value.enabled!==!1){a.setOptions(i.value);const b=a.getOptimisticResult(i.value);b.isStale?(v(),a.fetchOptimistic(i.value).then(h,E=>{MS(i.value.throwOnError,[E,a.getCurrentQuery()])?g(E):h(a.getCurrentResult())})):(v(),h(b))}};y(),v=Ne(i,y)});Ne(()=>s.error,h=>{if(s.isError&&!s.isFetching&&MS(i.value.throwOnError,[h,a.getCurrentQuery()]))throw h});const d=i.value.shallow?yv(s):ya(s),p=_a(d);for(const h in s)typeof s[h]=="function"&&(p[h]=s[h]);return p.suspense=c,p.refetch=u,p}function Ad(e,t){return Vie(kie,e)}function Bie(e,t){const n=oy(),r=D(()=>{const c=typeof e=="function"?e():e;return n.defaultMutationOptions(Ft(c))}),i=new Pie(n,r.value),a=r.value.shallow?Op(i.getCurrentResult()):Dn(i.getCurrentResult()),s=i.subscribe(c=>{jS(a,c)}),o=(c,d)=>{i.mutate(c,d).catch(()=>{})};Ne(r,()=>{i.setOptions(r.value)}),An(()=>{s()});const l=r.value.shallow?yv(a):ya(a),u=_a(l);return Ne(()=>a.error,c=>{if(c&&MS(r.value.throwOnError,[c]))throw c}),{...u,mutate:o,mutateAsync:a.mutate,reset:a.reset}}const aM="printerTags",Uie=()=>{const e=oy();return async()=>{await e.invalidateQueries({queryKey:[aM]})}},jie=Ee({color:{type:Object},disabled:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...tt()},"VColorPickerCanvas"),zie=ea({name:"VColorPickerCanvas",props:jie(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const r=Fe(!1),i=z(),a=Fe(parseFloat(e.width)),s=Fe(parseFloat(e.height)),o=z({x:0,y:0}),l=D({get:()=>o.value,set(y){if(!i.value)return;const{x:b,y:E}=y;o.value=y,n("update:color",{h:e.color?.h??0,s:Ln(b,0,a.value)/a.value,v:1-Ln(E,0,s.value)/s.value,a:e.color?.a??1})}}),u=D(()=>{const{x:y,y:b}=l.value,E=parseInt(e.dotSize,10)/2;return{width:ze(e.dotSize),height:ze(e.dotSize),transform:`translate(${ze(y-E)}, ${ze(b-E)})`}}),{resizeRef:c}=go(y=>{if(!c.el?.offsetParent)return;const{width:b,height:E}=y[0].contentRect;a.value=b,s.value=E});function d(y,b,E){const{left:w,top:C,width:P,height:_}=E;l.value={x:Ln(y-w,0,P),y:Ln(b-C,0,_)}}function p(y){y.type==="mousedown"&&y.preventDefault(),!e.disabled&&(h(y),window.addEventListener("mousemove",h),window.addEventListener("mouseup",g),window.addEventListener("touchmove",h),window.addEventListener("touchend",g))}function h(y){if(e.disabled||!i.value)return;r.value=!0;const b=OJ(y);d(b.clientX,b.clientY,i.value.getBoundingClientRect())}function g(){window.removeEventListener("mousemove",h),window.removeEventListener("mouseup",g),window.removeEventListener("touchmove",h),window.removeEventListener("touchend",g)}function v(){if(!i.value)return;const y=i.value,b=y.getContext("2d");if(!b)return;const E=b.createLinearGradient(0,0,y.width,0);E.addColorStop(0,"hsla(0, 0%, 100%, 1)"),E.addColorStop(1,`hsla(${e.color?.h??0}, 100%, 50%, 1)`),b.fillStyle=E,b.fillRect(0,0,y.width,y.height);const w=b.createLinearGradient(0,0,0,y.height);w.addColorStop(0,"hsla(0, 0%, 0%, 0)"),w.addColorStop(1,"hsla(0, 0%, 0%, 1)"),b.fillStyle=w,b.fillRect(0,0,y.width,y.height)}return Ne(()=>e.color?.h,v,{immediate:!0}),Ne(()=>[a.value,s.value],(y,b)=>{v(),o.value={x:l.value.x*y[0]/b[0],y:l.value.y*y[1]/b[1]}},{flush:"post"}),Ne(()=>e.color,()=>{if(r.value){r.value=!1;return}o.value=e.color?{x:e.color.s*a.value,y:(1-e.color.v)*s.value}:{x:0,y:0}},{deep:!0,immediate:!0}),Nt(()=>v()),Ue(()=>S("div",{ref:c,class:Oe(["v-color-picker-canvas",e.class]),style:We(e.style),onMousedown:p,onTouchstartPassive:p},[S("canvas",{ref:i,width:a.value,height:s.value},null),e.color&&S("div",{class:Oe(["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}]),style:We(u.value)},null)])),{}}});function Hie(e,t){if(t){const{a:n,...r}=e;return r}return e}function Wie(e,t){if(t==null||typeof t=="string"){const n=e.a!==1;if(t?.startsWith("rgb(")){const{r:i,g:a,b:s,a:o}=Ea(e);return`rgb(${i} ${a} ${s}`+(n?` / ${o})`:")")}else if(t?.startsWith("hsl(")){const{h:i,s:a,l:s,a:o}=hS(e);return`hsl(${i} ${Math.round(a*100)} ${Math.round(s*100)}`+(n?` / ${o})`:")")}const r=dF(e);return e.a===1?r.slice(0,7):r}if(typeof t=="object"){let n;return Dl(t,["r","g","b"])?n=Ea(e):Dl(t,["h","s","l"])?n=hS(e):Dl(t,["h","s","v"])&&(n=e),Hie(n,!Dl(t,["a"])&&e.a===1)}return e}const vc={h:0,s:0,v:0,a:1},HS={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)}),localeKey:"redInput"},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)}),localeKey:"greenInput"},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)}),localeKey:"blueInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:Ea,from:rm},Gie={...HS,inputs:HS.inputs?.slice(0,3)},WS={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)}),localeKey:"hueInput"},{label:"S",max:1,step:.01,getValue:e=>Math.round(e.s*100)/100,getColor:(e,t)=>({...e,s:Number(t)}),localeKey:"saturationInput"},{label:"L",max:1,step:.01,getValue:e=>Math.round(e.l*100)/100,getColor:(e,t)=>({...e,l:Number(t)}),localeKey:"lightnessInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:hS,from:rx},qie={...WS,inputs:WS.inputs.slice(0,3)},oM={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t,localeKey:"hexaInput"}],to:dF,from:rQ},Kie={...oM,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t,localeKey:"hexInput"}]},su={rgb:Gie,rgba:HS,hsl:qie,hsla:WS,hex:Kie,hexa:oM},Yie=e=>{let{label:t,...n}=e;return S("div",{class:"v-color-picker-edit__input"},[S("input",Ap(Mp(n)),null),S("span",null,[t])])},Xie=Ee({color:Object,disabled:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(su).includes(e)},modes:{type:Array,default:()=>Object.keys(su),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(su).includes(t))},...tt()},"VColorPickerEdit"),Jie=ea({name:"VColorPickerEdit",props:Xie(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const{t:r}=Rr(),i=D(()=>e.modes.map(s=>({...su[s],name:s}))),a=D(()=>{const s=i.value.find(l=>l.name===e.mode);if(!s)return[];const o=e.color?s.to(e.color):null;return s.inputs?.map(l=>{let{getValue:u,getColor:c,localeKey:d,...p}=l;return{...s.inputProps,...p,ariaLabel:r(`$vuetify.colorPicker.ariaLabel.${d}`),disabled:e.disabled,value:o&&u(o),onChange:h=>{const g=h.target;g&&n("update:color",s.from(c(o??s.to(vc),g.value)))}}})});return Ue(()=>S("div",{class:Oe(["v-color-picker-edit",e.class]),style:We(e.style)},[a.value?.map(s=>f(Yie,s,null)),i.value.length>1&&f(te,{icon:"$unfold",size:"x-small",variant:"plain","aria-label":r("$vuetify.colorPicker.ariaLabel.changeFormat"),onClick:()=>{const s=i.value.findIndex(o=>o.name===e.mode);n("update:mode",i.value[(s+1)%i.value.length].name)}},null)])),{}}}),$x=Symbol.for("vuetify:v-slider");function Qie(e,t,n){const r=n==="vertical",i=t.getBoundingClientRect(),a="touches"in e?e.touches[0]:e;return r?a.clientY-(i.top+i.height/2):a.clientX-(i.left+i.width/2)}function Zie(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const ese=Ee({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...gr(),...Pi({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),tse=e=>{const t=D(()=>parseFloat(e.min)),n=D(()=>parseFloat(e.max)),r=D(()=>Number(e.step)>0?parseFloat(e.step):0),i=D(()=>Math.max(ZT(r.value),ZT(t.value)));function a(s){if(s=parseFloat(s),r.value<=0)return s;const o=Ln(s,t.value,n.value),l=t.value%r.value;let u=Math.round((o-l)/r.value)*r.value+l;return o>u&&u+r.value>n.value&&(u=n.value),parseFloat(Math.min(u,n.value).toFixed(i.value))}return{min:t,max:n,step:r,decimals:i,roundValue:a}},nse=e=>{let{props:t,steps:n,onSliderStart:r,onSliderMove:i,onSliderEnd:a,getActiveThumb:s}=e;const o=hm(t),{isRtl:l}=Or(),u=ae(()=>t.reverse),c=D(()=>t.direction==="vertical"),d=D(()=>c.value!==u.value),{min:p,max:h,step:g,decimals:v,roundValue:y}=n,b=D(()=>parseInt(t.thumbSize,10)),E=D(()=>parseInt(t.tickSize,10)),w=D(()=>parseInt(t.trackSize,10)),C=D(()=>(h.value-p.value)/g.value),P=D(()=>t.error||o.isDisabled.value?void 0:t.thumbColor??t.color),_=D(()=>t.error||o.isDisabled.value?void 0:t.thumbColor),A=D(()=>t.error||o.isDisabled.value?void 0:t.trackColor??t.color),I=D(()=>t.error||o.isDisabled.value?void 0:t.trackFillColor??t.color),T=Fe(!1),x=Fe(0),R=z(),O=z();function L(Q){const re=R.value?.$el;if(!re)return;const X=t.direction==="vertical",ie=X?"top":"left",we=X?"height":"width",Pe=X?"clientY":"clientX",{[ie]:G,[we]:J}=re.getBoundingClientRect(),de=Zie(Q,Pe);let oe=Ln((de-G-x.value)/J)||0;return(X?d.value:d.value!==l.value)&&(oe=1-oe),y(p.value+oe*(h.value-p.value))}const F=Q=>{const re=L(Q);re!=null&&a({value:re}),T.value=!1,x.value=0},W=Q=>{const re=L(Q);O.value=s(Q),O.value&&(T.value=!0,O.value.contains(Q.target)?x.value=Qie(Q,O.value,t.direction):(x.value=0,re!=null&&i({value:re})),re!=null&&r({value:re}),Ct(()=>O.value?.focus()))},H={passive:!0,capture:!0};function B(Q){const re=L(Q);re!=null&&i({value:re})}function $(Q){Q.stopPropagation(),Q.preventDefault(),F(Q),window.removeEventListener("mousemove",B,H),window.removeEventListener("mouseup",$)}function Y(Q){F(Q),window.removeEventListener("touchmove",B,H),Q.target?.removeEventListener("touchend",Y)}function q(Q){W(Q),window.addEventListener("touchmove",B,H),Q.target?.addEventListener("touchend",Y,{passive:!1})}function U(Q){Q.button===0&&(Q.preventDefault(),W(Q),window.addEventListener("mousemove",B,H),window.addEventListener("mouseup",$,{passive:!1}))}An(()=>{window.removeEventListener("touchmove",B),window.removeEventListener("mousemove",B),window.removeEventListener("mouseup",$)});const M=Q=>{const re=(Q-p.value)/(h.value-p.value)*100;return Ln(isNaN(re)?0:re,0,100)},K=ae(()=>t.showTicks),fe=D(()=>K.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(Q=>({value:Q,position:M(Q),label:Q.toString()})):Object.keys(t.ticks).map(Q=>({value:parseFloat(Q),position:M(parseFloat(Q)),label:t.ticks[Q]})):C.value!==1/0?Nl(C.value+1).map(Q=>{const re=p.value+Q*g.value;return{value:re,position:M(re)}}):[]:[]),he=D(()=>fe.value.some(Q=>{let{label:re}=Q;return!!re})),Re={activeThumbRef:O,color:ae(()=>t.color),decimals:v,disabled:o.isDisabled,direction:ae(()=>t.direction),elevation:ae(()=>t.elevation),hasLabels:he,isReversed:u,indexFromEnd:d,min:p,max:h,mousePressed:T,noKeyboard:ae(()=>t.noKeyboard),numTicks:C,onSliderMousedown:U,onSliderTouchstart:q,parsedTicks:fe,parseMouseMove:L,position:M,readonly:o.isReadonly,rounded:ae(()=>t.rounded),roundValue:y,showTicks:K,startOffset:x,step:g,thumbSize:b,thumbColor:P,thumbLabelColor:_,thumbLabel:ae(()=>t.thumbLabel),ticks:ae(()=>t.ticks),tickSize:E,trackColor:A,trackContainerRef:R,trackFillColor:I,trackSize:w,vertical:c};return bn($x,Re),Re},rse=Ee({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...tt()},"VSliderThumb"),ise=$e()({name:"VSliderThumb",directives:{vRipple:_i},props:rse(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:r}=t;const i=mt($x),{isRtl:a,rtlClasses:s}=Or();if(!i)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:o,max:l,thumbColor:u,thumbLabelColor:c,step:d,disabled:p,thumbSize:h,thumbLabel:g,direction:v,isReversed:y,vertical:b,readonly:E,elevation:w,mousePressed:C,decimals:P,indexFromEnd:_}=i,A=D(()=>p.value?void 0:w.value),{elevationClasses:I}=es(A),{textColorClasses:T,textColorStyles:x}=Ci(u),{backgroundColorClasses:R,backgroundColorStyles:O}=Un(c),{pageup:L,pagedown:F,end:W,home:H,left:B,right:$,down:Y,up:q}=uS,U=[L,F,W,H,B,$,Y,q],M=D(()=>d.value?[1,2,3]:[1,5,10]);function K(he,Re){if(e.noKeyboard||p.value||!U.includes(he.key))return;he.preventDefault();const Q=d.value||.1,re=(l.value-o.value)/Q;if([B,$,Y,q].includes(he.key)){const ie=(b.value?[a.value?B:$,y.value?Y:q]:_.value!==a.value?[B,q]:[$,q]).includes(he.key)?1:-1,we=he.shiftKey?2:he.ctrlKey?1:0;ie===-1&&Re===l.value&&!we&&!Number.isInteger(re)?Re=Re-re%1*Q:Re=Re+ie*Q*M.value[we]}else if(he.key===H)Re=o.value;else if(he.key===W)Re=l.value;else{const X=he.key===F?1:-1;Re=Re-X*Q*(re>100?re/10:10)}return Math.max(e.min,Math.min(e.max,Re))}function fe(he){const Re=K(he,e.modelValue);Re!=null&&r("update:modelValue",Re)}return Ue(()=>{const he=ze(_.value?100-e.position:e.position,"%");return S("div",{class:Oe(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&C.value},e.class,s.value]),style:We([{"--v-slider-thumb-position":he,"--v-slider-thumb-size":ze(h.value)},e.style]),role:"slider",tabindex:p.value?-1:0,"aria-label":e.name,"aria-valuemin":o.value,"aria-valuemax":l.value,"aria-valuenow":e.modelValue,"aria-readonly":!!E.value,"aria-orientation":v.value,onKeydown:E.value?void 0:fe},[S("div",{class:Oe(["v-slider-thumb__surface",T.value,I.value]),style:We(x.value)},null),dn(S("div",{class:Oe(["v-slider-thumb__ripple",T.value]),style:We(x.value)},null),[[_i,e.ripple,null,{circle:!0,center:!0}]]),f($F,{origin:"bottom center"},{default:()=>[dn(S("div",{class:"v-slider-thumb__label-container"},[S("div",{class:Oe(["v-slider-thumb__label",R.value]),style:We(O.value)},[S("div",null,[n["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(d.value?P.value:1)]),S("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[ci,g.value&&e.focused||g.value==="always"]])]})])}),{}}}),sse=Ee({start:{type:Number,required:!0},stop:{type:Number,required:!0},...tt()},"VSliderTrack"),ase=$e()({name:"VSliderTrack",props:sse(),emits:{},setup(e,t){let{slots:n}=t;const r=mt($x);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:i,parsedTicks:a,rounded:s,showTicks:o,tickSize:l,trackColor:u,trackFillColor:c,trackSize:d,vertical:p,min:h,max:g,indexFromEnd:v}=r,{roundedClasses:y}=kr(s),{backgroundColorClasses:b,backgroundColorStyles:E}=Un(c),{backgroundColorClasses:w,backgroundColorStyles:C}=Un(u),P=D(()=>`inset-${p.value?"block":"inline"}-${v.value?"end":"start"}`),_=D(()=>p.value?"height":"width"),A=D(()=>({[P.value]:"0%",[_.value]:"100%"})),I=D(()=>e.stop-e.start),T=D(()=>({[P.value]:ze(e.start,"%"),[_.value]:ze(I.value,"%")})),x=D(()=>o.value?(p.value?a.value.slice().reverse():a.value).map((O,L)=>{const F=O.value!==h.value&&O.value!==g.value?ze(O.position,"%"):void 0;return S("div",{key:O.value,class:Oe(["v-slider-track__tick",{"v-slider-track__tick--filled":O.position>=e.start&&O.position<=e.stop,"v-slider-track__tick--first":O.value===h.value,"v-slider-track__tick--last":O.value===g.value}]),style:{[P.value]:F}},[(O.label||n["tick-label"])&&S("div",{class:"v-slider-track__tick-label"},[n["tick-label"]?.({tick:O,index:L})??O.label])])}):[]);return Ue(()=>S("div",{class:Oe(["v-slider-track",y.value,e.class]),style:We([{"--v-slider-track-size":ze(d.value),"--v-slider-tick-size":ze(l.value)},e.style])},[S("div",{class:Oe(["v-slider-track__background",w.value,{"v-slider-track__background--opacity":!!i.value||!c.value}]),style:{...A.value,...C.value}},null),S("div",{class:Oe(["v-slider-track__fill",b.value]),style:{...T.value,...E.value}},null),o.value&&S("div",{class:Oe(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":o.value==="always"}])},[x.value])])),{}}}),ose=Ee({...Rx(),...ese(),...ml(),modelValue:{type:[Number,String],default:0}},"VSlider"),fP=$e()({name:"VSlider",inheritAttrs:!1,props:ose(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:r,attrs:i}=t;const a=z(),s=z(),{rtlClasses:o}=Or(),l=tse(e),u=gt(e,"modelValue",void 0,x=>l.roundValue(x??l.min.value)),{min:c,max:d,mousePressed:p,roundValue:h,onSliderMousedown:g,onSliderTouchstart:v,trackContainerRef:y,position:b,hasLabels:E,disabled:w,readonly:C,noKeyboard:P}=nse({props:e,steps:l,onSliderStart:()=>{!w.value&&!C.value&&r("start",u.value)},onSliderEnd:x=>{let{value:R}=x;const O=h(R);!w.value&&!C.value&&(u.value=O),r("end",O)},onSliderMove:x=>{let{value:R}=x;!w.value&&!C.value&&(u.value=h(R))},getActiveThumb:()=>a.value?.$el}),{isFocused:_,focus:A,blur:I}=Vu(e),T=D(()=>b(u.value));return Ue(()=>{const x=Yi.filterProps(e),[R,O]=dl(i),L=!!(e.label||n.label||n.prepend);return f(Yi,ve({ref:s,class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||E.value,"v-slider--focused":_.value,"v-slider--pressed":p.value,"v-slider--disabled":w.value},o.value,e.class],style:e.style},x,R,{focused:_.value}),{...n,prepend:L?F=>S(De,null,[n.label?.(F)??(e.label?f(iy,{id:F.id.value,class:"v-slider__label",text:e.label},null):void 0),n.prepend?.(F)]):void 0,default:F=>{let{id:W,messagesId:H}=F;return S("div",{class:"v-slider__container",onMousedown:C.value?void 0:g,onTouchstartPassive:C.value?void 0:v},[S("input",{id:W.value,name:e.name||W.value,disabled:w.value,readonly:C.value,tabindex:"-1",value:u.value},null),f(ase,{ref:y,start:0,stop:T.value},{"tick-label":n["tick-label"]}),f(ise,ve({ref:a,"aria-describedby":H.value,focused:_.value,noKeyboard:P.value,min:c.value,max:d.value,modelValue:u.value,"onUpdate:modelValue":B=>u.value=B,position:T.value,elevation:e.elevation,onFocus:A,onBlur:I,ripple:e.ripple,name:e.name},O),{"thumb-label":n["thumb-label"]})])}})}),fi({focus:()=>a.value?.$el.focus()},s)}}),lM=Ee({color:{type:Object},disabled:Boolean,hideAlpha:Boolean,hideEyeDropper:Boolean,eyeDropperIcon:{type:rt,default:"$eyeDropper"},...tt()},"VColorPickerPreview"),lse=ea({name:"VColorPickerPreview",props:lM(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const{t:r}=Rr(),i=new AbortController;Au(()=>i.abort());async function a(){if(!YT||e.disabled)return;const s=new window.EyeDropper;try{const o=await s.open({signal:i.signal}),l=rm(ls(o.sRGBHex));n("update:color",{...e.color??vc,...l})}catch{}}return Ue(()=>S("div",{class:Oe(["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class]),style:We(e.style)},[YT&&!e.hideEyeDropper&&S("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[f(te,{"aria-label":r("$vuetify.colorPicker.ariaLabel.eyedropper"),density:"comfortable",disabled:e.disabled,icon:e.eyeDropperIcon,variant:"plain",onClick:a},null)]),S("div",{class:"v-color-picker-preview__dot"},[S("div",{style:{background:lF(e.color??vc)}},null)]),S("div",{class:"v-color-picker-preview__sliders"},[f(fP,{class:"v-color-picker-preview__track v-color-picker-preview__hue","aria-label":r("$vuetify.colorPicker.ariaLabel.hueSlider"),modelValue:e.color?.h,"onUpdate:modelValue":s=>n("update:color",{...e.color??vc,h:s}),step:1,min:0,max:360,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&f(fP,{class:"v-color-picker-preview__track v-color-picker-preview__alpha","aria-label":r("$vuetify.colorPicker.ariaLabel.alphaSlider"),modelValue:e.color?.a??1,"onUpdate:modelValue":s=>n("update:color",{...e.color??vc,a:s}),step:.01,min:0,max:1,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])),{}}}),use={base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},cse={base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},dse={base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},fse={base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},pse={base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},mse={base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},hse={base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},gse={base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},vse={base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},yse={base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},bse={base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},Sse={base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},wse={base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},Ese={base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},xse={base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},kse={base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},Cse={base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},_se={base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},Tse={base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},Ise={black:"#000000",white:"#ffffff",transparent:"#ffffff00"},Pse={red:use,pink:cse,purple:dse,deepPurple:fse,indigo:pse,blue:mse,lightBlue:hse,cyan:gse,teal:vse,green:yse,lightGreen:bse,lime:Sse,yellow:wse,amber:Ese,orange:xse,deepOrange:kse,brown:Cse,blueGrey:_se,grey:Tse,shades:Ise},Ase=Ee({swatches:{type:Array,default:()=>Rse(Pse)},disabled:Boolean,color:Object,maxHeight:[Number,String],...tt()},"VColorPickerSwatches");function Rse(e){return Object.keys(e).map(t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]})}const Ose=ea({name:"VColorPickerSwatches",props:Ase(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;function r(i){e.disabled||!i||n("update:color",i)}return Ue(()=>S("div",{class:Oe(["v-color-picker-swatches",e.class]),style:We([{maxHeight:ze(e.maxHeight)},e.style])},[S("div",null,[e.swatches.map(i=>S("div",{class:"v-color-picker-swatches__swatch"},[i.map(a=>{const s=ls(a),o=rm(s),l=oF(s);return S("div",{class:Oe(["v-color-picker-swatches__color",{"v-color-picker-swatches__color--disabled":e.disabled}]),onClick:()=>r(o)},[S("div",{style:{background:l}},[e.color&&Ir(e.color,o)?f(j,{size:"x-small",icon:"$success",color:oQ(a,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}}),Nse=Nu("v-picker-title"),Mx=Ee({color:String,...Ls(),...tt(),...Hr(),...Pi(),...pl(),..._d(),...gr(),...Jt(),...wn()},"VSheet"),Ug=$e()({name:"VSheet",props:Mx(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=On(e),{backgroundColorClasses:i,backgroundColorStyles:a}=Un(()=>e.color),{borderClasses:s}=ta(e),{dimensionStyles:o}=Wr(e),{elevationClasses:l}=es(e),{locationStyles:u}=Lu(e),{positionClasses:c}=Td(e),{roundedClasses:d}=kr(e);return Ue(()=>f(e.tag,{class:Oe(["v-sheet",r.value,i.value,s.value,l.value,c.value,d.value,e.class]),style:We([a.value,o.value,u.value,e.style])},n)),{}}}),uM=Ee({bgColor:String,divided:Boolean,landscape:Boolean,title:String,hideHeader:Boolean,hideTitle:Boolean,...Mx()},"VPicker"),pP=$e()({name:"VPicker",props:uM(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:i}=Un(()=>e.color);return Ue(()=>{const a=Ug.filterProps(e),s=!e.hideTitle&&!!(e.title||n.title);return f(Ug,ve(a,{color:e.bgColor,class:["v-picker",{"v-picker--divided":e.divided,"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>[!e.hideHeader&&S("div",{key:"header",class:Oe(["v-picker__header-wrapper",r.value]),style:We([i.value])},[s&&f(Nse,{key:"picker-title"},{default:()=>[n.title?.()??e.title]}),n.header&&S("div",{class:"v-picker__header"},[n.header()])]),S("div",{class:"v-picker__body"},[n.default?.()]),n.actions&&f(nn,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[S("div",{class:"v-picker__actions"},[n.actions()])]})]})}),{}}}),Dse=Ee({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(su).includes(e)},modes:{type:Array,default:()=>Object.keys(su),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(su).includes(t))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...uM({hideHeader:!0}),...Js(lM(),["hideEyeDropper","eyeDropperIcon"])},"VColorPicker"),mP=ea({name:"VColorPicker",props:Dse(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"mode"),i=z(null),a=gt(e,"modelValue",void 0,c=>{if(c==null||c==="")return null;let d;try{d=rm(ls(c))}catch{return null}return d},c=>c?Wie(c,e.modelValue):null),s=D(()=>a.value?{...a.value,h:i.value??a.value.h}:null),{rtlClasses:o}=Or();let l=!0;Ne(a,c=>{if(!l){l=!0;return}c&&(i.value=c.h)},{immediate:!0});const u=c=>{l=!1,i.value=c.h,a.value=c};return al(()=>{e.modes.includes(r.value)||(r.value=e.modes[0])}),Er({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),Ue(()=>{const c=pP.filterProps(e);return f(pP,ve(c,{class:["v-color-picker",o.value,e.class],style:[{"--v-color-picker-color-hsv":lF({...s.value??vc,a:1})},e.style]}),{...n,default:()=>S(De,null,[!e.hideCanvas&&f(zie,{key:"canvas",color:s.value,"onUpdate:color":u,disabled:e.disabled,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&S("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&f(lse,{key:"preview",color:s.value,"onUpdate:color":u,hideAlpha:!r.value.endsWith("a"),disabled:e.disabled,hideEyeDropper:e.hideEyeDropper,eyeDropperIcon:e.eyeDropperIcon},null),!e.hideInputs&&f(Jie,{key:"edit",modes:e.modes,mode:r.value,"onUpdate:mode":d=>r.value=d,color:s.value,"onUpdate:color":u,disabled:e.disabled},null)]),e.showSwatches&&f(Ose,{key:"swatches",color:s.value,"onUpdate:color":u,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled},null)])})}),{}}}),Lse={class:"mb-4"},Fse={class:"d-flex flex-wrap ga-2"},$se={class:"mb-3"},Mse={class:"mb-3"},Vse={class:"d-flex ga-2"},Bse={class:"mb-3"},Use=je({__name:"ManageTagsDialog",setup(e){const t=zt(Ht.ManageTagsDialog),n=Uie(),r=Xt(),i=z([]),a=z(""),s=z(Fa),o=z(null),l=z(""),u=z(Fa),c=[["#FF5252","#E91E63","#9C27B0","#673AB7"],["#3F51B5","#2196F3","#03A9F4","#00BCD4"],["#009688","#4CAF50","#8BC34A","#CDDC39"],["#FFEB3B","#FFC107","#FF9800","#FF5722"],["#795548","#9E9E9E","#607D8B","#000000"]],d=()=>{t.closeDialog(),o.value=null,l.value="",u.value=Fa,a.value="",s.value=Fa},p=async w=>{await h(),w?.tagId&&w?.tagName&&y(w.tagId,w.tagName)},h=async()=>{i.value=await Vo.getTagsWithPrinters()},g=async()=>{if(!a.value?.trim()?.length){r.error("Please set a non-empty tag name");return}await Vo.createTag(a.value.trim(),s.value),await h(),await n(),a.value="",s.value=Fa,r.info("Created tag")},v=async w=>{const C=i.value.find(_=>_.id===w);if(!C){r.error("Tag was not found, please reload the page");return}const P=C.printers.length;P>0&&!confirm(`This tag contains ${P} printers, are you sure to delete it?`)||(await Vo.deleteTag(w),await h(),await n(),r.info("Deleted tag"))},y=(w,C)=>{const P=i.value.find(_=>_.id===w);o.value=w,l.value=C,u.value=P?.color||Fa},b=()=>{o.value=null,l.value="",u.value=Fa},E=async w=>{if(!l.value?.trim()?.length){r.error("Please set a non-empty tag name");return}await Vo.updateTagName(w,l.value.trim()),await Vo.updateTagColor(w,u.value),await h(),await n(),o.value=null,l.value="",u.value=Fa,r.info("Updated tag")};return(w,C)=>(N(),Z(ia,{id:ne(t).dialogId,"max-width":"500",onEscape:C[11]||(C[11]=P=>d()),onOpened:p},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...C[12]||(C[12]=[k("label",-1)])]),_:1}),C[13]||(C[13]=k(" Manage Tags ",-1))]),_:1}),f(qe,null,{default:m(()=>[S("div",Lse,[C[16]||(C[16]=S("div",{class:"text-subtitle-2 mb-2"},"Available Tags:",-1)),S("div",Fse,[(N(!0),le(De,null,Vt(i.value,P=>(N(),Z(He,{key:P.id,color:P.color,disabled:o.value!==null,closable:"",size:"small",onClick:_=>y(P.id,P.name),"onClick:close":_=>v(P.id)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...C[14]||(C[14]=[k("label",-1)])]),_:1}),k(" "+V(P.name),1)]),_:2},1032,["color","disabled","onClick","onClick:close"]))),128)),i.value.length?se("",!0):(N(),Z(He,{key:0,disabled:"",size:"small"},{default:m(()=>[...C[15]||(C[15]=[k(" No tags yet ",-1)])]),_:1}))])]),o.value!==null?(N(),Z(Ve,{key:0,variant:"elevated",elevation:"10",color:"secondary",class:"mb-3 pa-3"},{default:m(()=>[C[20]||(C[20]=S("div",{class:"text-caption mb-2"},"Editing Tag:",-1)),S("div",$se,[f(yt,{modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=P=>l.value=P),density:"compact",variant:"outlined","hide-details":"",autofocus:"",label:"Tag Name",placeholder:"Enter tag name",onKeyup:[C[1]||(C[1]=ql(P=>E(o.value),["enter"])),C[2]||(C[2]=ql(P=>b(),["escape"]))]},null,8,["modelValue"])]),S("div",Mse,[C[17]||(C[17]=S("div",{class:"text-caption mb-2"},"Tag Color:",-1)),f(mP,{modelValue:u.value,"onUpdate:modelValue":C[3]||(C[3]=P=>u.value=P),swatches:c,"show-swatches":"","hide-inputs":"",mode:"hex"},null,8,["modelValue"])]),S("div",Vse,[f(te,{color:"primary","prepend-icon":"check",onClick:C[4]||(C[4]=P=>E(o.value))},{default:m(()=>[...C[18]||(C[18]=[k(" Save ",-1)])]),_:1}),f(te,{variant:"outlined","prepend-icon":"close",onClick:C[5]||(C[5]=P=>b())},{default:m(()=>[...C[19]||(C[19]=[k(" Cancel ",-1)])]),_:1})])]),_:1})):se("",!0),f(et,{class:"my-4"}),S("div",null,[C[23]||(C[23]=S("div",{class:"text-subtitle-2 mb-2"},"Create New Tag:",-1)),f(yt,{modelValue:a.value,"onUpdate:modelValue":C[6]||(C[6]=P=>a.value=P),label:"Tag Name",placeholder:"Enter tag name",density:"compact",variant:"outlined","hide-details":"",class:"mb-3",onKeyup:C[7]||(C[7]=ql(P=>g(),["enter"]))},null,8,["modelValue"]),S("div",Bse,[C[21]||(C[21]=S("div",{class:"text-caption mb-2"},"Tag Color:",-1)),f(mP,{modelValue:s.value,"onUpdate:modelValue":C[8]||(C[8]=P=>s.value=P),swatches:c,"show-swatches":"","hide-inputs":"",mode:"hex"},null,8,["modelValue"])]),f(te,{color:"primary",size:"small","prepend-icon":"add",onClick:C[9]||(C[9]=P=>g())},{default:m(()=>[...C[22]||(C[22]=[k(" Create Tag ",-1)])]),_:1})])]),_:1}),f(Wt,null,{default:m(()=>[f(ht),f(te,{onClick:C[10]||(C[10]=P=>d())},{default:m(()=>[...C[24]||(C[24]=[k("Close",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["id"]))}});function cM(e){return typeof e>"u"||e===null}function jse(e){return typeof e=="object"&&e!==null}function zse(e){return Array.isArray(e)?e:cM(e)?[]:[e]}function Hse(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function Wse(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Gse(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var qse=cM,Kse=jse,Yse=zse,Xse=Wse,Jse=Gse,Qse=Hse,wr={isNothing:qse,isObject:Kse,toArray:Yse,repeat:Xse,isNegativeZero:Jse,extend:Qse};function dM(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
56
+
57
+ `+e.mark.snippet),r+" "+n):r}function pp(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=dM(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}pp.prototype=Object.create(Error.prototype);pp.prototype.constructor=pp;pp.prototype.toString=function(t){return this.name+": "+dM(this,t)};var Mi=pp;function jb(e,t,n,r,i){var a="",s="",o=Math.floor(i/2)-1;return r-t>o&&(a=" ... ",t=r-o+a.length),n-r>o&&(s=" ...",n=r+o-s.length),{str:a+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+a.length}}function zb(e,t){return wr.repeat(" ",t-e.length)+e}function Zse(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,s=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var o="",l,u,c=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+c+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)u=jb(e.buffer,r[s-l],i[s-l],e.position-(r[s]-r[s-l]),d),o=wr.repeat(" ",t.indent)+zb((e.line-l+1).toString(),c)+" | "+u.str+`
58
+ `+o;for(u=jb(e.buffer,r[s],i[s],e.position,d),o+=wr.repeat(" ",t.indent)+zb((e.line+1).toString(),c)+" | "+u.str+`
59
+ `,o+=wr.repeat("-",t.indent+c+3+u.pos)+`^
60
+ `,l=1;l<=t.linesAfter&&!(s+l>=i.length);l++)u=jb(e.buffer,r[s+l],i[s+l],e.position-(r[s]-r[s+l]),d),o+=wr.repeat(" ",t.indent)+zb((e.line+l+1).toString(),c)+" | "+u.str+`
61
+ `;return o.replace(/\n$/,"")}var eae=Zse,tae=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],nae=["scalar","sequence","mapping"];function rae(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function iae(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(tae.indexOf(n)===-1)throw new Mi('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=rae(t.styleAliases||null),nae.indexOf(this.kind)===-1)throw new Mi('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var oi=iae;function hP(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(a,s){a.tag===r.tag&&a.kind===r.kind&&a.multi===r.multi&&(i=s)}),n[i]=r}),n}function sae(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function GS(e){return this.extend(e)}GS.prototype.extend=function(t){var n=[],r=[];if(t instanceof oi)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Mi("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(a){if(!(a instanceof oi))throw new Mi("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Mi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Mi("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(a){if(!(a instanceof oi))throw new Mi("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(GS.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=hP(i,"implicit"),i.compiledExplicit=hP(i,"explicit"),i.compiledTypeMap=sae(i.compiledImplicit,i.compiledExplicit),i};var aae=GS,oae=new oi("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),lae=new oi("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),uae=new oi("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),cae=new aae({explicit:[oae,lae,uae]});function dae(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function fae(){return null}function pae(e){return e===null}var mae=new oi("tag:yaml.org,2002:null",{kind:"scalar",resolve:dae,construct:fae,predicate:pae,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function hae(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function gae(e){return e==="true"||e==="True"||e==="TRUE"}function vae(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var yae=new oi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:hae,construct:gae,predicate:vae,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function bae(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Sae(e){return 48<=e&&e<=55}function wae(e){return 48<=e&&e<=57}function Eae(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!bae(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!Sae(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!wae(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function xae(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function kae(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!wr.isNegativeZero(e)}var Cae=new oi("tag:yaml.org,2002:int",{kind:"scalar",resolve:Eae,construct:xae,predicate:kae,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),_ae=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Tae(e){return!(e===null||!_ae.test(e)||e[e.length-1]==="_")}function Iae(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var Pae=/^[-+]?[0-9]+e/;function Aae(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(wr.isNegativeZero(e))return"-0.0";return n=e.toString(10),Pae.test(n)?n.replace("e",".e"):n}function Rae(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||wr.isNegativeZero(e))}var Oae=new oi("tag:yaml.org,2002:float",{kind:"scalar",resolve:Tae,construct:Iae,predicate:Rae,represent:Aae,defaultStyle:"lowercase"}),Nae=cae.extend({implicit:[mae,yae,Cae,Oae]}),Dae=Nae,fM=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),pM=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Lae(e){return e===null?!1:fM.exec(e)!==null||pM.exec(e)!==null}function Fae(e){var t,n,r,i,a,s,o,l=0,u=null,c,d,p;if(t=fM.exec(e),t===null&&(t=pM.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],s=+t[5],o=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],d=+(t[11]||0),u=(c*60+d)*6e4,t[9]==="-"&&(u=-u)),p=new Date(Date.UTC(n,r,i,a,s,o,l)),u&&p.setTime(p.getTime()-u),p}function $ae(e){return e.toISOString()}var Mae=new oi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Lae,construct:Fae,instanceOf:Date,represent:$ae});function Vae(e){return e==="<<"||e===null}var Bae=new oi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Vae}),Vx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
62
+ \r`;function Uae(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=Vx;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function jae(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=Vx,s=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):n===18?(o.push(s>>10&255),o.push(s>>2&255)):n===12&&o.push(s>>4&255),new Uint8Array(o)}function zae(e){var t="",n=0,r,i,a=e.length,s=Vx;for(r=0;r<a;r++)r%3===0&&r&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function Hae(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Wae=new oi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Uae,construct:jae,predicate:Hae,represent:zae}),Gae=Object.prototype.hasOwnProperty,qae=Object.prototype.toString;function Kae(e){if(e===null)return!0;var t=[],n,r,i,a,s,o=e;for(n=0,r=o.length;n<r;n+=1){if(i=o[n],s=!1,qae.call(i)!=="[object Object]")return!1;for(a in i)if(Gae.call(i,a))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function Yae(e){return e!==null?e:[]}var Xae=new oi("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Kae,construct:Yae}),Jae=Object.prototype.toString;function Qae(e){if(e===null)return!0;var t,n,r,i,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],Jae.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function Zae(e){if(e===null)return[];var t,n,r,i,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1)r=s[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var eoe=new oi("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Qae,construct:Zae}),toe=Object.prototype.hasOwnProperty;function noe(e){if(e===null)return!0;var t,n=e;for(t in n)if(toe.call(n,t)&&n[t]!==null)return!1;return!0}function roe(e){return e!==null?e:{}}var ioe=new oi("tag:yaml.org,2002:set",{kind:"mapping",resolve:noe,construct:roe}),mM=Dae.extend({implicit:[Mae,Bae],explicit:[Wae,Xae,eoe,ioe]}),nl=Object.prototype.hasOwnProperty,jg=1,hM=2,gM=3,zg=4,Hb=1,soe=2,gP=3,aoe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ooe=/[\x85\u2028\u2029]/,loe=/[,\[\]\{\}]/,vM=/^(?:!|!!|![a-z\-]+!)$/i,yM=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function vP(e){return Object.prototype.toString.call(e)}function ga(e){return e===10||e===13}function au(e){return e===9||e===32}function Ui(e){return e===9||e===32||e===10||e===13}function yc(e){return e===44||e===91||e===93||e===123||e===125}function uoe(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function coe(e){return e===120?2:e===117?4:e===85?8:0}function doe(e){return 48<=e&&e<=57?e-48:-1}function yP(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
63
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function foe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function bM(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var SM=new Array(256),wM=new Array(256);for(var Qu=0;Qu<256;Qu++)SM[Qu]=yP(Qu)?1:0,wM[Qu]=yP(Qu);function poe(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||mM,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function EM(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=eae(n),new Mi(t,n)}function lt(e,t){throw EM(e,t)}function Hg(e,t){e.onWarning&&e.onWarning.call(null,EM(e,t))}var bP={YAML:function(t,n,r){var i,a,s;t.version!==null&&lt(t,"duplication of %YAML directive"),r.length!==1&&lt(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&lt(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&lt(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Hg(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,a;r.length!==2&&lt(t,"TAG directive accepts exactly two arguments"),i=r[0],a=r[1],vM.test(i)||lt(t,"ill-formed tag handle (first argument) of the TAG directive"),nl.call(t.tagMap,i)&&lt(t,'there is a previously declared suffix for "'+i+'" tag handle'),yM.test(a)||lt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{lt(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a}};function qo(e,t,n,r){var i,a,s,o;if(t<n){if(o=e.input.slice(t,n),r)for(i=0,a=o.length;i<a;i+=1)s=o.charCodeAt(i),s===9||32<=s&&s<=1114111||lt(e,"expected valid JSON character");else aoe.test(o)&&lt(e,"the stream contains non-printable characters");e.result+=o}}function SP(e,t,n,r){var i,a,s,o;for(wr.isObject(n)||lt(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,o=i.length;s<o;s+=1)a=i[s],nl.call(t,a)||(bM(t,a,n[a]),r[a]=!0)}function bc(e,t,n,r,i,a,s,o,l){var u,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,c=i.length;u<c;u+=1)Array.isArray(i[u])&&lt(e,"nested arrays are not supported inside keys"),typeof i=="object"&&vP(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&vP(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(u=0,c=a.length;u<c;u+=1)SP(e,t,a[u],n);else SP(e,t,a,n);else!e.json&&!nl.call(n,i)&&nl.call(t,i)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,lt(e,"duplicated mapping key")),bM(t,i,a),delete n[i];return t}function Bx(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):lt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function pr(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;au(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(ga(i))for(Bx(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Hg(e,"deficient indentation"),r}function ly(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||Ui(n)))}function Ux(e,t){t===1?e.result+=" ":t>1&&(e.result+=wr.repeat(`
64
+ `,t-1))}function moe(e,t,n){var r,i,a,s,o,l,u,c,d=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),Ui(h)||yc(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Ui(i)||n&&yc(i)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,o=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Ui(i)||n&&yc(i))break}else if(h===35){if(r=e.input.charCodeAt(e.position-1),Ui(r))break}else{if(e.position===e.lineStart&&ly(e)||n&&yc(h))break;if(ga(h))if(l=e.line,u=e.lineStart,c=e.lineIndent,pr(e,!1,-1),e.lineIndent>=t){o=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=c;break}}o&&(qo(e,a,s,!1),Ux(e,e.line-l),a=s=e.position,o=!1),au(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return qo(e,a,s,!1),e.result?!0:(e.kind=d,e.result=p,!1)}function hoe(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(qo(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else ga(n)?(qo(e,r,i,!0),Ux(e,pr(e,!1,t)),r=i=e.position):e.position===e.lineStart&&ly(e)?lt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);lt(e,"unexpected end of the stream within a single quoted scalar")}function goe(e,t){var n,r,i,a,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return qo(e,n,e.position,!0),e.position++,!0;if(o===92){if(qo(e,n,e.position,!0),o=e.input.charCodeAt(++e.position),ga(o))pr(e,!1,t);else if(o<256&&SM[o])e.result+=wM[o],e.position++;else if((s=coe(o))>0){for(i=s,a=0;i>0;i--)o=e.input.charCodeAt(++e.position),(s=uoe(o))>=0?a=(a<<4)+s:lt(e,"expected hexadecimal character");e.result+=foe(a),e.position++}else lt(e,"unknown escape sequence");n=r=e.position}else ga(o)?(qo(e,n,r,!0),Ux(e,pr(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ly(e)?lt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}lt(e,"unexpected end of the stream within a double quoted scalar")}function voe(e,t){var n=!0,r,i,a,s=e.tag,o,l=e.anchor,u,c,d,p,h,g=Object.create(null),v,y,b,E;if(E=e.input.charCodeAt(e.position),E===91)c=93,h=!1,o=[];else if(E===123)c=125,h=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),E=e.input.charCodeAt(++e.position);E!==0;){if(pr(e,!0,t),E=e.input.charCodeAt(e.position),E===c)return e.position++,e.tag=s,e.anchor=l,e.kind=h?"mapping":"sequence",e.result=o,!0;n?E===44&&lt(e,"expected the node content, but found ','"):lt(e,"missed comma between flow collection entries"),y=v=b=null,d=p=!1,E===63&&(u=e.input.charCodeAt(e.position+1),Ui(u)&&(d=p=!0,e.position++,pr(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,td(e,t,jg,!1,!0),y=e.tag,v=e.result,pr(e,!0,t),E=e.input.charCodeAt(e.position),(p||e.line===r)&&E===58&&(d=!0,E=e.input.charCodeAt(++e.position),pr(e,!0,t),td(e,t,jg,!1,!0),b=e.result),h?bc(e,o,g,y,v,b,r,i,a):d?o.push(bc(e,null,g,y,v,b,r,i,a)):o.push(v),pr(e,!0,t),E=e.input.charCodeAt(e.position),E===44?(n=!0,E=e.input.charCodeAt(++e.position)):n=!1}lt(e,"unexpected end of the stream within a flow collection")}function yoe(e,t){var n,r,i=Hb,a=!1,s=!1,o=t,l=0,u=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Hb===i?i=d===43?gP:soe:lt(e,"repeat of a chomping mode identifier");else if((c=doe(d))>=0)c===0?lt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?lt(e,"repeat of an indentation width identifier"):(o=t+c-1,s=!0);else break;if(au(d)){do d=e.input.charCodeAt(++e.position);while(au(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!ga(d)&&d!==0)}for(;d!==0;){for(Bx(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),ga(d)){l++;continue}if(e.lineIndent<o){i===gP?e.result+=wr.repeat(`
65
+ `,a?1+l:l):i===Hb&&a&&(e.result+=`
66
+ `);break}for(r?au(d)?(u=!0,e.result+=wr.repeat(`
67
+ `,a?1+l:l)):u?(u=!1,e.result+=wr.repeat(`
68
+ `,l+1)):l===0?a&&(e.result+=" "):e.result+=wr.repeat(`
69
+ `,l):e.result+=wr.repeat(`
70
+ `,a?1+l:l),a=!0,s=!0,l=0,n=e.position;!ga(d)&&d!==0;)d=e.input.charCodeAt(++e.position);qo(e,n,e.position,!1)}return!0}function wP(e,t){var n,r=e.tag,i=e.anchor,a=[],s,o=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,lt(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!Ui(s))));){if(o=!0,e.position++,pr(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,td(e,t,gM,!1,!0),a.push(e.result),pr(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)lt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=a,!0):!1}function boe(e,t,n){var r,i,a,s,o,l,u=e.tag,c=e.anchor,d={},p=Object.create(null),h=null,g=null,v=null,y=!1,b=!1,E;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),E=e.input.charCodeAt(e.position);E!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,lt(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(E===63||E===58)&&Ui(r))E===63?(y&&(bc(e,d,p,h,g,null,s,o,l),h=g=v=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):lt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,E=r;else{if(s=e.line,o=e.lineStart,l=e.position,!td(e,n,hM,!1,!0))break;if(e.line===a){for(E=e.input.charCodeAt(e.position);au(E);)E=e.input.charCodeAt(++e.position);if(E===58)E=e.input.charCodeAt(++e.position),Ui(E)||lt(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(bc(e,d,p,h,g,null,s,o,l),h=g=v=null),b=!0,y=!1,i=!1,h=e.tag,g=e.result;else if(b)lt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(b)lt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0}if((e.line===a||e.lineIndent>t)&&(y&&(s=e.line,o=e.lineStart,l=e.position),td(e,t,zg,!0,i)&&(y?g=e.result:v=e.result),y||(bc(e,d,p,h,g,v,s,o,l),h=g=v=null),pr(e,!0,-1),E=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&E!==0)lt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&bc(e,d,p,h,g,null,s,o,l),b&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=d),b}function Soe(e){var t,n=!1,r=!1,i,a,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&lt(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(r=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(a=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):lt(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ui(s);)s===33&&(r?lt(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),vM.test(i)||lt(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),loe.test(a)&&lt(e,"tag suffix cannot contain flow indicator characters")}a&&!yM.test(a)&&lt(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{lt(e,"tag name is malformed: "+a)}return n?e.tag=a:nl.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i==="!"?e.tag="!"+a:i==="!!"?e.tag="tag:yaml.org,2002:"+a:lt(e,'undeclared tag handle "'+i+'"'),!0}function woe(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&lt(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Ui(n)&&!yc(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&lt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Eoe(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ui(r)&&!yc(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&lt(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),nl.call(e.anchorMap,n)||lt(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],pr(e,!0,-1),!0}function td(e,t,n,r,i){var a,s,o,l=1,u=!1,c=!1,d,p,h,g,v,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=zg===n||gM===n,r&&pr(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;Soe(e)||woe(e);)pr(e,!0,-1)?(u=!0,o=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):o=!1;if(o&&(o=u||i),(l===1||zg===n)&&(jg===n||hM===n?v=t:v=t+1,y=e.position-e.lineStart,l===1?o&&(wP(e,y)||boe(e,y,v))||voe(e,v)?c=!0:(s&&yoe(e,v)||hoe(e,v)||goe(e,v)?c=!0:Eoe(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&lt(e,"alias node should not have any properties")):moe(e,v,jg===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=o&&wP(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&lt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,p=e.implicitTypes.length;d<p;d+=1)if(g=e.implicitTypes[d],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(nl.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,h=e.typeMap.multi[e.kind||"fallback"],d=0,p=h.length;d<p;d+=1)if(e.tag.slice(0,h[d].tag.length)===h[d].tag){g=h[d];break}g||lt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&lt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):lt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function xoe(e){var t=e.position,n,r,i,a=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(pr(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(a=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!Ui(s);)s=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&lt(e,"directive name must not be less than one character in length");s!==0;){for(;au(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ga(s));break}if(ga(s))break;for(n=e.position;s!==0&&!Ui(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&Bx(e),nl.call(bP,r)?bP[r](e,r,i):Hg(e,'unknown document directive "'+r+'"')}if(pr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,pr(e,!0,-1)):a&&lt(e,"directives end mark is expected"),td(e,e.lineIndent-1,zg,!1,!0),pr(e,!0,-1),e.checkLineBreaks&&ooe.test(e.input.slice(t,e.position))&&Hg(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ly(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,pr(e,!0,-1));return}if(e.position<e.length-1)lt(e,"end of the stream or a document separator is expected");else return}function koe(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
71
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new poe(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,lt(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)xoe(n);return n.documents}function Coe(e,t){var n=koe(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Mi("expected a single document in the stream, but found more")}}var _oe=Coe,Toe={load:_oe},xM=Object.prototype.toString,kM=Object.prototype.hasOwnProperty,jx=65279,Ioe=9,mp=10,Poe=13,Aoe=32,Roe=33,Ooe=34,qS=35,Noe=37,Doe=38,Loe=39,Foe=42,CM=44,$oe=45,Wg=58,Moe=61,Voe=62,Boe=63,Uoe=64,_M=91,TM=93,joe=96,IM=123,zoe=124,PM=125,pi={};pi[0]="\\0";pi[7]="\\a";pi[8]="\\b";pi[9]="\\t";pi[10]="\\n";pi[11]="\\v";pi[12]="\\f";pi[13]="\\r";pi[27]="\\e";pi[34]='\\"';pi[92]="\\\\";pi[133]="\\N";pi[160]="\\_";pi[8232]="\\L";pi[8233]="\\P";var Hoe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Woe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Goe(e,t){var n,r,i,a,s,o,l;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)s=r[i],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&kM.call(l.styleAliases,o)&&(o=l.styleAliases[o]),n[s]=o;return n}function qoe(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Mi("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+wr.repeat("0",r-t.length)+t}var Koe=1,hp=2;function Yoe(e){this.schema=e.schema||mM,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=wr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Goe(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?hp:Koe,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function EP(e,t){for(var n=wr.repeat(" ",t),r=0,i=-1,a="",s,o=e.length;r<o;)i=e.indexOf(`
72
+ `,r),i===-1?(s=e.slice(r),r=o):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
73
+ `&&(a+=n),a+=s;return a}function KS(e,t){return`
74
+ `+wr.repeat(" ",e.indent*t)}function Xoe(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function Gg(e){return e===Aoe||e===Ioe}function gp(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==jx||65536<=e&&e<=1114111}function xP(e){return gp(e)&&e!==jx&&e!==Poe&&e!==mp}function kP(e,t,n){var r=xP(e),i=r&&!Gg(e);return(n?r:r&&e!==CM&&e!==_M&&e!==TM&&e!==IM&&e!==PM)&&e!==qS&&!(t===Wg&&!i)||xP(t)&&!Gg(t)&&e===qS||t===Wg&&i}function Joe(e){return gp(e)&&e!==jx&&!Gg(e)&&e!==$oe&&e!==Boe&&e!==Wg&&e!==CM&&e!==_M&&e!==TM&&e!==IM&&e!==PM&&e!==qS&&e!==Doe&&e!==Foe&&e!==Roe&&e!==zoe&&e!==Moe&&e!==Voe&&e!==Loe&&e!==Ooe&&e!==Noe&&e!==Uoe&&e!==joe}function Qoe(e){return!Gg(e)&&e!==Wg}function sf(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function AM(e){var t=/^\n* /;return t.test(e)}var RM=1,YS=2,OM=3,NM=4,lc=5;function Zoe(e,t,n,r,i,a,s,o){var l,u=0,c=null,d=!1,p=!1,h=r!==-1,g=-1,v=Joe(sf(e,0))&&Qoe(sf(e,e.length-1));if(t||s)for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=sf(e,l),!gp(u))return lc;v=v&&kP(u,c,o),c=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=sf(e,l),u===mp)d=!0,h&&(p=p||l-g-1>r&&e[g+1]!==" ",g=l);else if(!gp(u))return lc;v=v&&kP(u,c,o),c=u}p=p||h&&l-g-1>r&&e[g+1]!==" "}return!d&&!p?v&&!s&&!i(e)?RM:a===hp?lc:YS:n>9&&AM(e)?lc:s?a===hp?lc:YS:p?NM:OM}function ele(e,t,n,r,i){e.dump=(function(){if(t.length===0)return e.quotingType===hp?'""':"''";if(!e.noCompatMode&&(Hoe.indexOf(t)!==-1||Woe.test(t)))return e.quotingType===hp?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),o=r||e.flowLevel>-1&&n>=e.flowLevel;function l(u){return Xoe(e,u)}switch(Zoe(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!r,i)){case RM:return t;case YS:return"'"+t.replace(/'/g,"''")+"'";case OM:return"|"+CP(t,e.indent)+_P(EP(t,a));case NM:return">"+CP(t,e.indent)+_P(EP(tle(t,s),a));case lc:return'"'+nle(t)+'"';default:throw new Mi("impossible error: invalid scalar style")}})()}function CP(e,t){var n=AM(e)?String(t):"",r=e[e.length-1]===`
75
+ `,i=r&&(e[e.length-2]===`
76
+ `||e===`
77
+ `),a=i?"+":r?"":"-";return n+a+`
78
+ `}function _P(e){return e[e.length-1]===`
79
+ `?e.slice(0,-1):e}function tle(e,t){for(var n=/(\n+)([^\n]*)/g,r=(function(){var u=e.indexOf(`
80
+ `);return u=u!==-1?u:e.length,n.lastIndex=u,TP(e.slice(0,u),t)})(),i=e[0]===`
81
+ `||e[0]===" ",a,s;s=n.exec(e);){var o=s[1],l=s[2];a=l[0]===" ",r+=o+(!i&&!a&&l!==""?`
82
+ `:"")+TP(l,t),i=a}return r}function TP(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,a,s=0,o=0,l="";r=n.exec(e);)o=r.index,o-i>t&&(a=s>i?s:o,l+=`
83
+ `+e.slice(i,a),i=a+1),s=o;return l+=`
84
+ `,e.length-i>t&&s>i?l+=e.slice(i,s)+`
85
+ `+e.slice(s+1):l+=e.slice(i),l.slice(1)}function nle(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=sf(e,i),r=pi[n],!r&&gp(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||qoe(n);return t}function rle(e,t,n){var r="",i=e.tag,a,s,o;for(a=0,s=n.length;a<s;a+=1)o=n[a],e.replacer&&(o=e.replacer.call(n,String(a),o)),(bo(e,t,o,!1,!1)||typeof o>"u"&&bo(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function IP(e,t,n,r){var i="",a=e.tag,s,o,l;for(s=0,o=n.length;s<o;s+=1)l=n[s],e.replacer&&(l=e.replacer.call(n,String(s),l)),(bo(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&bo(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=KS(e,t)),e.dump&&mp===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}function ile(e,t,n){var r="",i=e.tag,a=Object.keys(n),s,o,l,u,c;for(s=0,o=a.length;s<o;s+=1)c="",r!==""&&(c+=", "),e.condenseFlow&&(c+='"'),l=a[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),bo(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),bo(e,t,u,!1,!1)&&(c+=e.dump,r+=c));e.tag=i,e.dump="{"+r+"}"}function sle(e,t,n,r){var i="",a=e.tag,s=Object.keys(n),o,l,u,c,d,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Mi("sortKeys must be a boolean or a function");for(o=0,l=s.length;o<l;o+=1)p="",(!r||i!=="")&&(p+=KS(e,t)),u=s[o],c=n[u],e.replacer&&(c=e.replacer.call(n,u,c)),bo(e,t+1,u,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&mp===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,d&&(p+=KS(e,t)),bo(e,t+1,c,!0,d)&&(e.dump&&mp===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=a,e.dump=i||"{}"}function PP(e,t,n){var r,i,a,s,o,l;for(i=n?e.explicitTypes:e.implicitTypes,a=0,s=i.length;a<s;a+=1)if(o=i[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(n?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,xM.call(o.represent)==="[object Function]")r=o.represent(t,l);else if(kM.call(o.represent,l))r=o.represent[l](t,l);else throw new Mi("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function bo(e,t,n,r,i,a,s){e.tag=null,e.dump=n,PP(e,n,!1)||PP(e,n,!0);var o=xM.call(e.dump),l=r,u;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=o==="[object Object]"||o==="[object Array]",d,p;if(c&&(d=e.duplicates.indexOf(n),p=d!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&p&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),o==="[object Object]")r&&Object.keys(e.dump).length!==0?(sle(e,t,e.dump,i),p&&(e.dump="&ref_"+d+e.dump)):(ile(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?IP(e,t-1,e.dump,i):IP(e,t,e.dump,i),p&&(e.dump="&ref_"+d+e.dump)):(rle(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&ele(e,e.dump,t,a,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Mi("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function ale(e,t){var n=[],r=[],i,a;for(XS(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(a)}function XS(e,t,n){var r,i,a;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)XS(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)XS(e[r[i]],t,n)}function ole(e,t){t=t||{};var n=new Yoe(t);n.noRefs||ale(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),bo(n,0,r,!0,!0)?n.dump+`
86
+ `:""}var lle=ole,ule={dump:lle},JS=Toe.load,cle=ule.dump;const DM=je({__name:"YamlImportSummary",props:{summary:{},excludeSettingsAndUsers:{type:Boolean,default:!1}},setup(e){return(t,n)=>e.summary?(N(),Z(Ve,{key:0,variant:"tonal"},{default:m(()=>[f(st,{class:"text-h6"},{default:m(()=>[f(j,{class:"mr-2",color:"success"},{default:m(()=>[...n[0]||(n[0]=[k("check_circle",-1)])]),_:1}),n[1]||(n[1]=k(" Import Summary ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(hr,{density:"compact"},{default:m(()=>[f(ot,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[2]||(n[2]=[k("info",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[k("Version: "+V(e.summary.version),1)]),_:1})]),_:1}),f(ot,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[3]||(n[3]=[k("storage",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[k("Database: "+V(e.summary.databaseType),1)]),_:1})]),_:1}),f(ot,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[4]||(n[4]=[k("schedule",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[k("Exported: "+V(e.summary.exportedAt),1)]),_:1})]),_:1}),f(et,{class:"my-2"}),f(ot,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[5]||(n[5]=[k("print",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[k(V(e.summary.printersCount)+" Printers",1)]),_:1})]),_:1}),f(ot,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[6]||(n[6]=[k("layers",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[k(V(e.summary.floorsCount)+" Floors",1)]),_:1})]),_:1}),f(ot,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...n[7]||(n[7]=[k("label",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[k(V(e.summary.groupsCount)+" Tags",1)]),_:1})]),_:1}),e.summary.hasSettings?(N(),Z(ot,{key:0},{prepend:m(()=>[f(j,{color:e.excludeSettingsAndUsers?"error":void 0},{default:m(()=>[k(V(e.excludeSettingsAndUsers?"block":"settings"),1)]),_:1},8,["color"])]),default:m(()=>[f(Rt,{class:Oe(e.excludeSettingsAndUsers?"text-decoration-line-through text-medium-emphasis":"")},{default:m(()=>[k(" Settings "+V(e.excludeSettingsAndUsers?"(will be excluded)":"included"),1)]),_:1},8,["class"])]),_:1})):se("",!0),e.summary.usersCount&&e.summary.usersCount>0?(N(),Z(ot,{key:1},{prepend:m(()=>[f(j,{color:e.excludeSettingsAndUsers?"error":void 0},{default:m(()=>[k(V(e.excludeSettingsAndUsers?"block":"people"),1)]),_:1},8,["color"])]),default:m(()=>[f(Rt,{class:Oe(e.excludeSettingsAndUsers?"text-decoration-line-through text-medium-emphasis":"")},{default:m(()=>[k(V(e.summary.usersCount)+" Users "+V(e.excludeSettingsAndUsers?"(will be excluded)":""),1)]),_:1},8,["class"])]),_:1})):se("",!0)]),_:1})]),_:1})]),_:1})):se("",!0)}});class qg extends di{static async downloadYamlExport(t){const r=await(await Xr()).request({method:"POST",url:"api/v2/server/yaml-export",data:t,responseType:"arraybuffer"});_S(r.data,"export-fdm-monster-"+Date.now()+".yaml")}static async uploadAndImportYaml(t){const n=new FormData;return n.append("file",t),await this.postUpload("api/v2/server/yaml-import",n,{})}static async downloadLogDump(){const n=await(await Xr()).request({method:"POST",url:"api/v2/server/dump-fdm-monster-logs",responseType:"arraybuffer"});_S(n.data,"logs-fdm-monster-"+Date.now()+".zip")}static async clearLogFilesOlderThanWeek(){return await this.delete("api/v2/server/clear-outdated-fdm-monster-logs")}}class jo extends di{static async updateClientDistGithub(t,n){return await this.post("/api/v2/server/update-client-bundle-github",{downloadRelease:t,allowDowngrade:n})}static async getGithubRateLimit(){return await this.get("/api/v2/server/github-rate-limit")}static async getClientReleases(){return await this.get("/api/v2/server/client-releases")}static async getVersion(){return await this.get("/api/v2/version")}static async getFeatures(){return await this.get("/api/v2/features")}static async test(){return await(await Xr(!1,!1)).get("/api/v2/test")}}const uy=Qi("Feature",{state:()=>({features:void 0}),getters:{getFeatures(){return this.features},getFeature:e=>t=>{if(e.features)return e.features[t]},hasFeature:e=>t=>{if(!e.features)return!1;const n=e.features[t];return n?n?.available:(console.debug(`Feature ${t} not defined. Options:`,Object.keys(e.features)),!1)}},actions:{async loadFeatures(){try{const e=await jo.getFeatures();this.setFeatures(e)}catch{this.features={}}},setFeatures(e){this.features=e}}}),LM=Symbol.for("vuetify:selection-control-group"),zx=Ee({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:rt,trueIcon:rt,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Ir},...tt(),...Ar(),...wn()},"SelectionControlGroup"),dle=Ee({...zx({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),fle=$e()({name:"VSelectionControlGroup",props:dle(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"modelValue"),i=Ti(),a=ae(()=>e.id||`v-selection-control-group-${i}`),s=ae(()=>e.name||a.value),o=new Set;return bn(LM,{modelValue:r,forceUpdate:()=>{o.forEach(l=>l())},onForceUpdate:l=>{o.add(l),An(()=>{o.delete(l)})}}),Er({[e.defaultsTarget]:{color:ae(()=>e.color),disabled:ae(()=>e.disabled),density:ae(()=>e.density),error:ae(()=>e.error),inline:ae(()=>e.inline),modelValue:r,multiple:ae(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:s,falseIcon:ae(()=>e.falseIcon),trueIcon:ae(()=>e.trueIcon),readonly:ae(()=>e.readonly),ripple:ae(()=>e.ripple),type:ae(()=>e.type),valueComparator:ae(()=>e.valueComparator)}}),Ue(()=>S("div",{class:Oe(["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class]),style:We(e.style),role:e.type==="radio"?"radiogroup":void 0},[n.default?.()])),{}}}),cy=Ee({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...tt(),...zx()},"VSelectionControl");function ple(e){const t=mt(LM,void 0),{densityClasses:n}=ps(e),r=gt(e,"modelValue"),i=D(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),a=D(()=>e.falseValue!==void 0?e.falseValue:!1),s=D(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),o=D({get(){const h=t?t.modelValue.value:r.value;return s.value?tr(h).some(g=>e.valueComparator(g,i.value)):e.valueComparator(h,i.value)},set(h){if(e.readonly)return;const g=h?i.value:a.value;let v=g;s.value&&(v=h?[...tr(r.value),g]:tr(r.value).filter(y=>!e.valueComparator(y,i.value))),t?t.modelValue.value=v:r.value=v}}),{textColorClasses:l,textColorStyles:u}=Ci(()=>{if(!(e.error||e.disabled))return o.value?e.color:e.baseColor}),{backgroundColorClasses:c,backgroundColorStyles:d}=Un(()=>o.value&&!e.error&&!e.disabled?e.color:e.baseColor),p=D(()=>o.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:i,falseValue:a,model:o,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,icon:p}}const Eu=$e()({name:"VSelectionControl",directives:{vRipple:_i},inheritAttrs:!1,props:cy(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{group:i,densityClasses:a,icon:s,model:o,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,trueValue:p}=ple(e),h=Ti(),g=Fe(!1),v=Fe(!1),y=z(),b=ae(()=>e.id||`input-${h}`),E=ae(()=>!e.disabled&&!e.readonly);i?.onForceUpdate(()=>{y.value&&(y.value.checked=o.value)});function w(A){E.value&&(g.value=!0,zc(A.target,":focus-visible")!==!1&&(v.value=!0))}function C(){g.value=!1,v.value=!1}function P(A){A.stopPropagation()}function _(A){if(!E.value){y.value&&(y.value.checked=o.value);return}e.readonly&&i&&Ct(()=>i.forceUpdate()),o.value=A.target.checked}return Ue(()=>{const A=r.label?r.label({label:e.label,props:{for:b.value}}):e.label,[I,T]=dl(n),x=S("input",ve({ref:y,checked:o.value,disabled:!!e.disabled,id:b.value,onBlur:C,onFocus:w,onInput:_,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:p.value,name:e.name,"aria-checked":e.type==="checkbox"?o.value:void 0},T),null);return S("div",ve({class:["v-selection-control",{"v-selection-control--dirty":o.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":g.value,"v-selection-control--focus-visible":v.value,"v-selection-control--inline":e.inline},a.value,e.class]},I,{style:e.style}),[S("div",{class:Oe(["v-selection-control__wrapper",l.value]),style:We(u.value)},[r.default?.({backgroundColorClasses:c,backgroundColorStyles:d}),dn(S("div",{class:Oe(["v-selection-control__input"])},[r.input?.({model:o,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,inputNode:x,icon:s.value,props:{onFocus:w,onBlur:C,id:b.value}})??S(De,null,[s.value&&f(j,{key:"icon",icon:s.value},null),x])]),[[_i,!e.disabled&&!e.readonly&&e.ripple,null,{center:!0,circle:!0}]])]),A&&f(iy,{for:b.value,onClick:P},{default:()=>[A]})])}),{isFocused:g,input:y}}}),FM=Ee({indeterminate:Boolean,indeterminateIcon:{type:rt,default:"$checkboxIndeterminate"},...cy({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),xa=$e()({name:"VCheckboxBtn",props:FM(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"indeterminate"),i=gt(e,"modelValue");function a(l){r.value&&(r.value=!1)}const s=ae(()=>r.value?e.indeterminateIcon:e.falseIcon),o=ae(()=>r.value?e.indeterminateIcon:e.trueIcon);return Ue(()=>{const l=Rn(Eu.filterProps(e),["modelValue"]);return f(Eu,ve(l,{modelValue:i.value,"onUpdate:modelValue":[u=>i.value=u,a],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:s.value,trueIcon:o.value,"aria-checked":r.value?"mixed":void 0}),n)}),{}}}),mle=Ee({...ml(),...Rn(FM(),["inline"])},"VCheckbox"),Nn=$e()({name:"VCheckbox",inheritAttrs:!1,props:mle(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const i=gt(e,"modelValue"),{isFocused:a,focus:s,blur:o}=Vu(e),l=z(),u=Ti();return Ue(()=>{const[c,d]=dl(n),p=Yi.filterProps(e),h=xa.filterProps(e);return f(Yi,ve({ref:l,class:["v-checkbox",e.class]},c,p,{modelValue:i.value,"onUpdate:modelValue":g=>i.value=g,id:e.id||`checkbox-${u}`,focused:a.value,style:e.style}),{...r,default:g=>{let{id:v,messagesId:y,isDisabled:b,isReadonly:E,isValid:w}=g;return f(xa,ve(h,{id:v.value,"aria-describedby":y.value,disabled:b.value,readonly:E.value},d,{error:w.value===!1,modelValue:i.value,"onUpdate:modelValue":C=>i.value=C,onFocus:s,onBlur:o}),r)}})}),fi({},l)}});function hle(){function e(n){return[...n.dataTransfer?.items??[]].filter(i=>i.kind==="file").map(i=>i.webkitGetAsEntry()).filter(Boolean).length>0||[...n.dataTransfer?.files??[]].length>0}async function t(n){const r=[],i=[...n.dataTransfer?.items??[]].filter(a=>a.kind==="file").map(a=>a.webkitGetAsEntry()).filter(Boolean);if(i.length)for(const a of i){const s=await $M(a,MM(".",a));r.push(...s.map(o=>o.file))}else r.push(...n.dataTransfer?.files??[]);return r}return{handleDrop:t,hasFilesOrFolders:e}}function $M(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise((n,r)=>{e.isFile?e.file(a=>n([{file:a,path:t}]),r):e.isDirectory&&e.createReader().readEntries(async a=>{const s=[];for(const o of a)s.push(...await $M(o,MM(t,o)));n(s)})})}function MM(e,t){return t.isDirectory?`${e}/${t.name}`:e}const gle=Ee({filterByType:String},"file-accept");function vle(e){const t=D(()=>e.filterByType?yle(e.filterByType):null);function n(r){if(t.value){const i=r.filter(t.value);return{accepted:i,rejected:r.filter(a=>!i.includes(a))}}return{accepted:r,rejected:[]}}return{filterAccepted:n}}function yle(e){const t=e.split(",").map(a=>a.trim().toLowerCase()),n=t.filter(a=>a.startsWith(".")),r=t.filter(a=>a.endsWith("/*")),i=t.filter(a=>!n.includes(a)&&!r.includes(a));return a=>{const s=a.name.split(".").at(-1)?.toLowerCase()??"",o=a.type.split("/").at(0)?.toLowerCase()??"";return i.includes(a.type)||n.includes(`.${s}`)||r.includes(`${o}/*`)}}const ble=Ee({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},truncateLength:{type:[Number,String],default:22},...ml({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>tr(e).every(t=>t!=null&&typeof t=="object")},...gle(),...sy({clearable:!0})},"VFileInput"),Hx=$e()({name:"VFileInput",inheritAttrs:!1,props:ble(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,rejected:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{t:a}=Rr(),{filterAccepted:s}=vle(e),o=gt(e,"modelValue",e.modelValue,Y=>tr(Y),Y=>!e.multiple&&Array.isArray(Y)?Y[0]:Y),{isFocused:l,focus:u,blur:c}=Vu(e),d=D(()=>typeof e.showSize!="boolean"?e.showSize:void 0),p=D(()=>(o.value??[]).reduce((Y,q)=>{let{size:U=0}=q;return Y+U},0)),h=D(()=>nI(p.value,d.value)),g=D(()=>(o.value??[]).map(Y=>{const{name:q="",size:U=0}=Y,M=L(q);return e.showSize?`${M} (${nI(U,d.value)})`:M})),v=D(()=>{const Y=o.value?.length??0;return e.showSize?a(e.counterSizeString,Y,h.value):a(e.counterString,Y)}),y=z(),b=z(),E=z(),w=ae(()=>l.value||e.active),C=D(()=>["plain","underlined"].includes(e.variant)),P=Fe(!1),{handleDrop:_,hasFilesOrFolders:A}=hle();function I(){E.value!==document.activeElement&&E.value?.focus(),l.value||u()}function T(Y){E.value?.click()}function x(Y){r("mousedown:control",Y)}function R(Y){E.value?.click(),r("click:control",Y)}function O(Y){Y.stopPropagation(),I(),Ct(()=>{o.value=[],nm(e["onClick:clear"],Y)})}function L(Y){if(Y.length<Number(e.truncateLength))return Y;const q=Math.floor((Number(e.truncateLength)-1)/2);return`${Y.slice(0,q)}…${Y.slice(Y.length-q)}`}function F(Y){Y.preventDefault(),Y.stopImmediatePropagation(),P.value=!0}function W(Y){Y.preventDefault(),P.value=!1}async function H(Y){if(Y.preventDefault(),Y.stopImmediatePropagation(),P.value=!1,!E.value||!A(Y))return;const q=await _(Y);$(q)}function B(Y){if(!(!Y.target||Y.repack))if(e.filterByType)$([...Y.target.files]);else{const q=Y.target;o.value=[...q.files??[]]}}function $(Y){const q=new DataTransfer,{accepted:U,rejected:M}=s(Y);M.length&&r("rejected",M);for(const fe of U)q.items.add(fe);E.value.files=q.files,o.value=[...q.files];const K=new Event("change",{bubbles:!0});K.repack=!0,E.value.dispatchEvent(K)}return Ne(o,Y=>{(!Array.isArray(Y)||!Y.length)&&E.value&&(E.value.value="")}),Ue(()=>{const Y=!!(i.counter||e.counter),q=!!(Y||i.details),[U,M]=dl(n),{modelValue:K,...fe}=Yi.filterProps(e),he={...ed.filterProps(e),"onClick:clear":O},Re=n.webkitdirectory!==void 0&&n.webkitdirectory!==!1,Q=n.accept?String(n.accept):void 0,re=Re?void 0:e.filterByType??Q;return f(Yi,ve({ref:y,modelValue:e.multiple?o.value:o.value[0],class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--dragging":P.value,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":C.value},e.class],style:e.style,"onClick:prepend":T},U,fe,{centerAffix:!C.value,focused:l.value}),{...i,default:X=>{let{id:ie,isDisabled:we,isDirty:Pe,isReadonly:G,isValid:J,hasDetails:de}=X;return f(ed,ve({ref:b,prependIcon:e.prependIcon,onMousedown:x,onClick:R,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},he,{id:ie.value,active:w.value||Pe.value,dirty:Pe.value||e.dirty,disabled:we.value,focused:l.value,details:de.value,error:J.value===!1,onDragover:F,onDrop:H}),{...i,default:oe=>{let{props:{class:be,...Ce},controlRef:ue}=oe;return S(De,null,[S("input",ve({ref:ge=>E.value=ue.value=ge,type:"file",accept:re,readonly:G.value,disabled:we.value,multiple:e.multiple,name:e.name,onClick:ge=>{ge.stopPropagation(),G.value&&ge.preventDefault(),I()},onChange:B,onDragleave:W,onFocus:I,onBlur:c},Ce,M),null),S("div",{class:Oe(be)},[!!o.value?.length&&!e.hideInput&&(i.selection?i.selection({fileNames:g.value,totalBytes:p.value,totalBytesReadable:h.value}):e.chips?g.value.map(ge=>f(He,{key:ge,size:"small",text:ge},null)):g.value.join(", "))])])}})},details:q?X=>S(De,null,[i.details?.(X),Y&&S(De,null,[S("span",null,null),f(Ax,{active:!!o.value?.length,value:v.value,disabled:e.disabled},i.counter)])]):void 0})}),fi({},y,b,E)}}),Sle=Ee({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...q$(),...ml(),...sy()},"VTextarea"),QS=$e()({name:"VTextarea",directives:{vIntersect:qc},inheritAttrs:!1,props:Sle(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const a=gt(e,"modelValue"),{isFocused:s,focus:o,blur:l}=Vu(e),{onIntersect:u}=K$(e),c=D(()=>typeof e.counterValue=="function"?e.counterValue(a.value):(a.value||"").toString().length),d=D(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),p=z(),h=z(),g=Fe(""),v=z(),y=z(0),{platform:b}=ra(),E=Ox(e),w=D(()=>e.persistentPlaceholder||s.value||e.active);function C(){E.isSuppressing.value&&E.update(),v.value!==document.activeElement&&v.value?.focus(),s.value||o()}function P(F){C(),r("click:control",F)}function _(F){r("mousedown:control",F)}function A(F){F.stopPropagation(),C(),Ct(()=>{a.value="",nm(e["onClick:clear"],F)})}function I(F){const W=F.target;if(!e.modelModifiers?.trim){a.value=W.value;return}const H=W.value,B=W.selectionStart,$=W.selectionEnd;a.value=H,Ct(()=>{let Y=0;H.trimStart().length===W.value.length&&(Y=H.length-W.value.length),B!=null&&(W.selectionStart=B-Y),$!=null&&(W.selectionEnd=$-Y)})}const T=z(),x=z(Number(e.rows)),R=D(()=>["plain","underlined"].includes(e.variant));lr(()=>{e.autoGrow||(x.value=Number(e.rows))});function O(){Ct(()=>{if(!v.value)return;if(b.value.firefox){y.value=12;return}const{offsetWidth:F,clientWidth:W}=v.value;y.value=Math.max(0,F-W)}),e.autoGrow&&Ct(()=>{if(!T.value||!h.value)return;const F=getComputedStyle(T.value),W=getComputedStyle(h.value.$el),H=parseFloat(F.getPropertyValue("--v-field-padding-top"))+parseFloat(F.getPropertyValue("--v-input-padding-top"))+parseFloat(F.getPropertyValue("--v-field-padding-bottom")),B=T.value.scrollHeight,$=parseFloat(F.lineHeight),Y=Math.max(parseFloat(e.rows)*$+H,parseFloat(W.getPropertyValue("--v-input-control-height"))),q=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*$+H||1/0,U=Ln(B??0,Y,q);x.value=Math.floor((U-H)/$),g.value=ze(U)})}Nt(O),Ne(a,O),Ne(()=>e.rows,O),Ne(()=>e.maxHeight,O),Ne(()=>e.maxRows,O),Ne(()=>e.density,O),Ne(x,F=>{r("update:rows",F)});let L;return Ne(T,F=>{F?(L=new ResizeObserver(O),L.observe(T.value)):L?.disconnect()}),xr(()=>{L?.disconnect()}),Ue(()=>{const F=!!(i.counter||e.counter||e.counterValue),W=!!(F||i.details),[H,B]=dl(n),{modelValue:$,...Y}=Yi.filterProps(e),q={...ed.filterProps(e),"onClick:clear":A};return f(Yi,ve({ref:p,modelValue:a.value,"onUpdate:modelValue":U=>a.value=U,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":R.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?ze(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":ze(y.value)},e.style]},H,Y,{centerAffix:x.value===1&&!R.value,focused:s.value}),{...i,default:U=>{let{id:M,isDisabled:K,isDirty:fe,isReadonly:he,isValid:Re,hasDetails:Q}=U;return f(ed,ve({ref:h,style:{"--v-textarea-control-height":g.value},onClick:P,onMousedown:_,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},q,{id:M.value,active:w.value||fe.value,labelId:`${M.value}-label`,centerAffix:x.value===1&&!R.value,dirty:fe.value||e.dirty,disabled:K.value,focused:s.value,details:Q.value,error:Re.value===!1}),{...i,default:re=>{let{props:{class:X,...ie},controlRef:we}=re;return S(De,null,[e.prefix&&S("span",{class:"v-text-field__prefix"},[e.prefix]),dn(S("textarea",ve({ref:Pe=>v.value=we.value=Pe,class:X,value:a.value,onInput:I,autofocus:e.autofocus,readonly:he.value,disabled:K.value,placeholder:e.placeholder,rows:e.rows,name:E.fieldName.value,autocomplete:E.fieldAutocomplete.value,onFocus:C,onBlur:l,"aria-labelledby":`${M.value}-label`},ie,B),null),[[qc,{handler:u},null,{once:!0}]]),e.autoGrow&&dn(S("textarea",{class:Oe([X,"v-textarea__sizer"]),id:`${ie.id}-sizer`,"onUpdate:modelValue":Pe=>a.value=Pe,ref:T,readonly:!0,"aria-hidden":"true"},null),[[Hf,a.value]]),e.suffix&&S("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:W?U=>S(De,null,[i.details?.(U),F&&S(De,null,[S("span",null,null),f(Ax,{active:e.persistentCounter||s.value,value:c.value,max:d.value,disabled:e.disabled},i.counter)])]):void 0})}),fi({},p,h,v)}}),wle={class:"font-weight-bold"},Ele={key:0,class:"text-caption mt-2"},xle=je({__name:"YamlImportExportDialog",setup(e){const t=uy(),n=zt(Ht.YamlImportExport),r=Xt(),i=z(""),a=z(""),s=z(0),o=z(!0),l=z(!0),u=z(!0),c=z(!0),d=z(!0),p=z(!0),h=z(void 0),g=z(""),v=z(!1),y=z(null),b=D(()=>!!h.value),E=D(()=>s.value===0),w=async x=>{x?(i.value="",a.value="",y.value=null,await _()):(y.value=null,i.value="No file selected",a.value="Please select a yaml file to import")},C=async()=>{await t.loadFeatures()},P=async()=>{h.value=void 0,i.value="",a.value="",g.value="",y.value=null,v.value=!1},_=async()=>{if(h.value){v.value=!0;try{const x=await h.value.text(),R=JS(x);if(!R||typeof R!="object"){i.value="Failed to parse yaml file structure",a.value="yaml load failed",y.value=null;return}y.value={version:R.version||"Unknown",databaseType:R.databaseType||"Unknown",exportedAt:R.exportedAt?new Date(R.exportedAt).toLocaleString():"Unknown",printersCount:R.printers?.length||0,floorsCount:R.floors?.length||0,groupsCount:R.groups?.length||0,hasSettings:!!R.settings,usersCount:R.users?.length||0}}catch(x){i.value="Failed to validate import file",a.value=x.message,y.value=null}finally{v.value=!1}}},A=async()=>{l.value&&(c.value=!0),await qg.downloadYamlExport({exportPrinters:c.value,exportTags:u.value,exportFloorGrid:l.value,exportSettings:d.value,exportUsers:p.value,printerComparisonStrategiesByPriority:["name","url"],exportFloors:o.value,floorComparisonStrategiesByPriority:"floor",notes:g.value}),r.openInfoMessage({title:"Downloaded the YAML file"}),g.value=""},I=async()=>{if(i.value="",a.value="",!h.value){i.value="The import file was not specified";return}try{const x=await h.value.text(),R=JS(x);R.settings&&delete R.settings,R.users&&delete R.users,R.roles&&delete R.roles,R.user_roles&&delete R.user_roles;const O=cle(R),L=new File([O],h.value.name,{type:"application/x-yaml"});await qg.uploadAndImportYaml(L),h.value=void 0,r.openInfoMessage({title:"Imported the YAML file (settings and users excluded)"}),T()}catch(x){i.value="An error occurred during import",a.value=x.message.toString(),h.value=void 0}},T=()=>{h.value=void 0,i.value="",a.value="",g.value="",y.value=null,v.value=!1,n.closeDialog()};return(x,R)=>(N(),Z(ia,{id:ne(n).dialogId,"max-width":"600px",onEscape:R[13]||(R[13]=O=>T()),onOpened:P,onBeforeOpened:C},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...R[14]||(R[14]=[k("code",-1)])]),_:1}),R[15]||(R[15]=k(" YAML Import/Export ",-1))]),_:1}),f(y$,{modelValue:s.value,"onUpdate:modelValue":R[0]||(R[0]=O=>s.value=O)},{default:m(()=>[f(Ll,{value:0},{default:m(()=>[f(j,{start:""},{default:m(()=>[...R[16]||(R[16]=[k("upload",-1)])]),_:1}),R[17]||(R[17]=k(" Import ",-1))]),_:1}),f(Ll,{value:1},{default:m(()=>[f(j,{start:""},{default:m(()=>[...R[18]||(R[18]=[k("download",-1)])]),_:1}),R[19]||(R[19]=k(" Export ",-1))]),_:1})]),_:1},8,["modelValue"]),f(qe,{class:"pt-4"},{default:m(()=>[f(Qc,{modelValue:s.value,"onUpdate:modelValue":R[11]||(R[11]=O=>s.value=O)},{default:m(()=>[f(ha,{value:0},{default:m(()=>[f(Hx,{modelValue:h.value,"onUpdate:modelValue":[R[1]||(R[1]=O=>h.value=O),w],accept:".yaml,.yml",label:"Select YAML file","prepend-icon":"attach_file",variant:"outlined",hint:"Upload a YAML file to import printers, floors, and tags (groups)","persistent-hint":""},null,8,["modelValue"]),v.value?(N(),Z(si,{key:0,indeterminate:"",color:"secondary",class:"mt-4"})):se("",!0),i.value?(N(),Z(kt,{key:1,type:"error",class:"mt-4",closable:""},{default:m(()=>[S("div",wle,V(i.value),1),a.value?(N(),le("div",Ele,V(a.value),1)):se("",!0)]),_:1})):se("",!0),y.value?(N(),Z(DM,{key:2,summary:y.value,"exclude-settings-and-users":!0,class:"mt-4"},null,8,["summary"])):se("",!0),E.value&&y.value?(N(),Z(te,{key:3,disabled:!b.value,block:"",color:"primary",size:"large",class:"mt-4",onClick:R[2]||(R[2]=O=>I())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...R[20]||(R[20]=[k("upload",-1)])]),_:1}),R[21]||(R[21]=k(" Import YAML Data ",-1))]),_:1},8,["disabled"])):se("",!0)]),_:1}),f(ha,{value:1},{default:m(()=>[f(Jc,{variant:"accordion"},{default:m(()=>[f(Xc,null,{default:m(()=>[f(Yc,null,{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...R[22]||(R[22]=[k("tune",-1)])]),_:1}),R[23]||(R[23]=k(" Advanced Options ",-1))]),_:1}),f(Kc,null,{default:m(()=>[R[24]||(R[24]=S("div",{class:"text-caption mb-2 text-medium-emphasis"}," Select which data to include in the export: ",-1)),f(Nn,{modelValue:c.value,"onUpdate:modelValue":R[3]||(R[3]=O=>c.value=O),label:"Printers","hide-details":"",density:"comfortable"},null,8,["modelValue"]),f(Nn,{modelValue:o.value,"onUpdate:modelValue":R[4]||(R[4]=O=>o.value=O),label:"Floors","hide-details":"",density:"comfortable"},null,8,["modelValue"]),f(Nn,{modelValue:l.value,"onUpdate:modelValue":R[5]||(R[5]=O=>l.value=O),label:"Grid Positions",hint:"Automatically includes printers","persistent-hint":"",density:"comfortable",class:"mb-2"},null,8,["modelValue"]),f(Nn,{modelValue:u.value,"onUpdate:modelValue":R[6]||(R[6]=O=>u.value=O),label:"Tags","hide-details":"",density:"comfortable"},null,8,["modelValue"]),f(Nn,{modelValue:d.value,"onUpdate:modelValue":R[7]||(R[7]=O=>d.value=O),label:"Settings","hide-details":"",density:"comfortable"},null,8,["modelValue"]),f(Nn,{modelValue:p.value,"onUpdate:modelValue":R[8]||(R[8]=O=>p.value=O),label:"Users","hide-details":"",density:"comfortable"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),f(et,{class:"my-4"}),f(QS,{modelValue:g.value,"onUpdate:modelValue":R[9]||(R[9]=O=>g.value=O),label:"Notes (optional)",placeholder:"Add notes for yourself...",variant:"outlined",rows:"2","auto-grow":""},null,8,["modelValue"]),f(te,{block:"",color:"primary",size:"large",class:"mt-2",onClick:R[10]||(R[10]=O=>A())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...R[25]||(R[25]=[k("download",-1)])]),_:1}),R[26]||(R[26]=k(" Download YAML File ",-1))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:R[12]||(R[12]=O=>T())},{default:m(()=>[...R[27]||(R[27]=[k(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["id"]))}}),kle="/assets/octofarm-printer-export-Dw0Zh14I.gif",Cle={class:"d-flex align-center mb-2"},_le={class:"d-flex align-center mb-2"},Tle={class:"d-flex align-center mb-2"},Ile={class:"d-flex align-center mb-2"},Ple={class:"my-3"},Ale={key:0},Rle={key:1},Ole={class:"d-flex align-center"},Nle={class:"d-flex align-center"},Dle={class:"flex-grow-1"},Lle={class:"font-weight-bold mb-1"},Fle={key:0},$le={key:0},Mle={key:1},Vle={class:"d-flex align-center"},Ble={class:"d-flex align-center"},Ule={class:"flex-grow-1"},jle={class:"font-weight-bold mb-1"},zle={key:0},Hle={key:0},Wle={key:1},Gle={class:"d-flex justify-space-between align-center mb-3"},qle={class:"d-flex flex-column"},Kle={class:"text-caption"},Yle={class:"text-caption"},Xle={class:"ml-4"},Jle=je({__name:"OctoFarmImportDialog",setup(e){const t=z(1),n=z(!1),r=z(!1),i=z(!1),a=z(""),s=z(""),o=z(null),l=z(0),u=z([]),c=z([]),d=z(!1),p=zt(Ht.ImportOctoFarmDialog);function h(){t.value=1,n.value=!1,a.value="",s.value="",r.value=!1,l.value=0,u.value=[],c.value=[],d.value=!1}async function g(){}const v=async()=>{if(n.value=!1,a.value="",s.value="",!o.value)return a.value="No file selected",s.value="Please select a PrintersDB.json file to import",[];try{const P=JSON.parse(await o.value.text());if(!P||typeof P!="object")return a.value="Invalid JSON file format",s.value="The file does not contain valid JSON data",[];const _=P.databases;if(!_)return a.value="Invalid OctoFarm export format",s.value='Missing "databases" property in the JSON file',[];if(!Array.isArray(_))return a.value="Invalid databases format",s.value='The "databases" property should be an array',[];if(!_?.length)return a.value="No printer data found",s.value="The databases array is empty",[];let A=_;if(_.length>0&&Array.isArray(_[0])){const O=_[0];Array.isArray(O)&&(A=O)}if(!Array.isArray(A)||!A.length)return a.value="No printers found in export",s.value="The export file does not contain any printer data",[];const I=A.map((O,L)=>(O._id&&delete O._id,O.apikey&&(O.apiKey=O.apikey,delete O.apikey),O.settingsApperance&&(O.settingsAppearance=O.settingsApperance,delete O.settingsApperance),O.settingsAppearance?.name?(O.name=O.settingsAppearance?.name,delete O.settingsAppearance):O.name=O.printerURL||`Printer ${L+1}`,{enabled:O.disabled===void 0||!O.disabled,apiKey:O.apiKey||"",printerURL:O.printerURL||"",name:O.name||O.printerURL||`Printer ${L+1}`,printerType:0,username:"",password:""}));let T=!1;const x=[],R=[];for(let O=0;O<I.length;O++){const L=I[O],F=[];if((!L.apiKey||L.apiKey.trim().length===0)&&F.push("missing or invalid API key"),(!L.printerURL||L.printerURL.trim().length===0)&&F.push("missing or invalid printer URL"),(!L.name||L.name.trim().length===0)&&F.push("missing or invalid printer name"),L.printerURL&&L.printerURL.trim().length>0)try{new URL(L.printerURL.startsWith("http")?L.printerURL:`http://${L.printerURL}`).hostname||F.push("invalid URL format")}catch{F.push("malformed URL")}if(F.length>0){const W=L.name||`Printer ${O+1}`;x.push(`${W}: ${F.join(", ")}`),T=!0}else R.push(L)}return T?(a.value=`${x.length} printer(s) failed validation`,s.value=x.join("; "),n.value=!1,R):(n.value=!0,I)}catch(P){return a.value="Failed to parse JSON file",s.value=`Parse error: ${P?.message||"Unknown error"}`,[]}},y=async()=>{if(!o.value){n.value=!1,a.value="",s.value="",l.value=0,u.value=[],c.value=[];return}try{const P=await v();if(l.value=P?.length||0,!P?.length){a.value||(a.value="No valid printers found",s.value="The import file contains no valid printer data");return}c.value=Array.from({length:P.length},(_,A)=>A),u.value=P,n.value?t.value=2:console.log("[OctoFarm] Validation failed but have valid printers, staying on step 1")}catch(P){a.value="Validation failed",s.value=`Error during validation: ${P?.message||"Unknown error"}`,n.value=!1,l.value=0}},b=P=>{const _=c.value.indexOf(P);_>-1?c.value.splice(_,1):c.value.push(P)},E=()=>{c.value.length?c.value=[]:c.value=Array.from({length:u.value.length},(_,A)=>A)},w=async()=>{const P=u.value.filter((_,A)=>c.value.includes(A));if(P?.length)try{await xn.batchImportPrinters(P),d.value=!0,C()}catch(_){d.value=!1,o.value=null,a.value="An error occurred",s.value=_.message.toString()}},C=()=>{o.value=null,p.closeDialog(),t.value=1};return(P,_)=>{const A=Vf("v-stepper-vertical-item"),I=Vf("v-stepper-vertical"),T=ia;return N(),Z(T,{id:ne(p).dialogId,"max-width":"700px",onBeforeOpened:_[11]||(_[11]=x=>h()),onEscape:_[12]||(_[12]=x=>C()),onOpened:_[13]||(_[13]=x=>g())},{default:m(()=>[f(Ve,{class:"pa-4"},{default:m(()=>[f(st,null,{default:m(()=>[..._[14]||(_[14]=[S("span",{class:"text-h5"}," Import OctoFarm Printers ",-1)])]),_:1}),f(qe,null,{default:m(()=>[f(ct,null,{default:m(()=>[f(Ae,{cols:"12"},{default:m(()=>[f(I,{modelValue:t.value,"onUpdate:modelValue":_[9]||(_[9]=x=>t.value=x),color:"primary","non-linear":""},{default:m(({step:x})=>[f(A,{title:"Export PrintersDB from OctoFarm",elevation:"0",value:1,complete:x>1,editable:""},{default:m(()=>[S("ol",null,[S("li",Cle,[f(j,{class:"mr-2"},{default:m(()=>[..._[15]||(_[15]=[k("mdi:mdi-navigation",-1)])]),_:1}),_[16]||(_[16]=S("span",null,"1. Go to your OctoFarm System page",-1))]),S("li",_le,[f(j,{class:"mr-2"},{default:m(()=>[..._[17]||(_[17]=[k("mdi:mdi-mouse",-1)])]),_:1}),_[18]||(_[18]=S("span",null,"2. Click 'Database'",-1))]),S("li",Tle,[f(j,{class:"mr-2"},{default:m(()=>[..._[19]||(_[19]=[k("mdi:mdi-mouse",-1)])]),_:1}),_[20]||(_[20]=S("span",null,"3. Click the button 'Export Printers'",-1))]),S("li",Ile,[f(j,{class:"mr-2"},{default:m(()=>[..._[21]||(_[21]=[k("mdi:mdi-upload",-1)])]),_:1}),_[22]||(_[22]=S("span",null,"4. Upload 'PrintersDB.json' above",-1))])]),S("div",Ple,[f(j,{class:"pr-2"},{default:m(()=>[..._[23]||(_[23]=[k("mdi:mdi-information",-1)])]),_:1}),_[25]||(_[25]=k(' OctoFarm printers should be exported as a JSON file. Please upload the correct "PrintersDB.json" database file using the steps provided. ',-1)),f(te,{size:"small",class:"ml-2",color:"success",onClick:_[0]||(_[0]=R=>i.value=!i.value)},{default:m(()=>[f(j,{class:"pr-2"},{default:m(()=>[..._[24]||(_[24]=[k("mdi:mdi-file-gif-box",-1)])]),_:1}),i.value?(N(),le("span",Rle,"Hide GIF")):(N(),le("span",Ale,"Show GIF"))]),_:1})]),i.value?(N(),Z(ai,{key:0,class:"my-4",src:ne(kle),style:{border:"3px solid dimgray","max-width":"800px"},elevation:"10"},null,8,["src"])):se("",!0),f(et,{class:"mt-10"}),f(Hx,{class:"mt-8",style:{"max-width":"400px"},modelValue:o.value,"onUpdate:modelValue":[_[1]||(_[1]=R=>o.value=R),_[2]||(_[2]=R=>y())],variant:"filled",accept:".json",clearable:"",label:"Upload PrintersDB.json file"},null,8,["modelValue"]),o.value&&n.value?(N(),Z(kt,{key:1,class:"my-2",type:"success",variant:"tonal"},{default:m(()=>[S("div",Ole,[S("div",null,[_[26]||(_[26]=S("div",{class:"font-weight-bold"},"Validation successful",-1)),S("div",null,V(l.value)+" valid printer(s) found",1)])])]),_:1})):se("",!0),o.value&&a.value?(N(),Z(kt,{key:2,class:"my-2",type:"error",variant:"tonal"},{default:m(()=>[S("div",Nle,[f(j,{class:"mr-2"},{default:m(()=>[..._[27]||(_[27]=[k("mdi:mdi-alert-circle",-1)])]),_:1}),S("div",Dle,[S("div",Lle,V(a.value),1),s.value?(N(),le("div",Fle,[!r.value&&s.value.length>150?(N(),le("div",$le,[k(V(s.value.slice(0,150))+"... ",1),f(te,{size:"x-small",color:"error",variant:"text",class:"ml-1",onClick:_[3]||(_[3]=R=>r.value=!0)},{default:m(()=>[..._[28]||(_[28]=[k(" Show Details ",-1)])]),_:1})])):(N(),le("div",Mle,[k(V(s.value)+" ",1),r.value&&s.value.length>150?(N(),Z(te,{key:0,size:"x-small",color:"error",variant:"text",class:"ml-1",onClick:_[4]||(_[4]=R=>r.value=!1)},{default:m(()=>[..._[29]||(_[29]=[k(" Hide Details ",-1)])]),_:1})):se("",!0)]))])):se("",!0)])]),!n.value&&u.value.length>0?(N(),Z(te,{key:0,size:"small",color:"warning",variant:"outlined",class:"mt-2",onClick:_[5]||(_[5]=R=>t.value=2)},{default:m(()=>[f(j,{class:"mr-1"},{default:m(()=>[..._[30]||(_[30]=[k("mdi:mdi-alert",-1)])]),_:1}),k(" Continue with "+V(u.value.length)+" valid printer(s) ",1)]),_:1})):se("",!0)]),_:1})):se("",!0)]),_:1},8,["complete"]),f(A,{title:"Show printers & verify",elevation:"0",value:2,complete:x>2,editable:"","onClick:next":w},{next:m(({next:R})=>[f(te,{color:"primary",onClick:R,disabled:!c.value?.length},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[..._[43]||(_[43]=[k("mdi:mdi-upload",-1)])]),_:1}),k(" Submit "+V(c.value?.length)+" printer"+V(c.value?.length!==1?"s":""),1)]),_:1},8,["onClick","disabled"])]),default:m(()=>[f(kt,{type:n.value?"success":"warning",variant:"tonal",class:"mb-4"},{default:m(()=>[S("div",Vle,[S("div",null,[_[31]||(_[31]=S("strong",null,"Import state: ",-1)),S("span",null,V(n.value?"success":"failed")+", "+V(l.value)+" printer(s) found ",1)])])]),_:1},8,["type"]),a.value?(N(),Z(kt,{key:0,class:"mb-4",type:"error",variant:"tonal"},{default:m(()=>[S("div",Ble,[f(j,{class:"mr-2"},{default:m(()=>[..._[32]||(_[32]=[k("mdi:mdi-alert-circle",-1)])]),_:1}),S("div",Ule,[S("div",jle,V(a.value),1),s.value?(N(),le("div",zle,[!r.value&&s.value.length>150?(N(),le("div",Hle,[k(V(s.value.slice(0,150))+"... ",1),f(te,{size:"x-small",color:"error",variant:"text",class:"ml-1","data-testid":"show-details-btn",onClick:_[6]||(_[6]=R=>r.value=!0)},{default:m(()=>[..._[33]||(_[33]=[k(" Show Details ",-1)])]),_:1})])):(N(),le("div",Wle,[k(V(s.value)+" ",1),r.value&&s.value.length>150?(N(),Z(te,{key:0,size:"x-small",color:"error",variant:"text",class:"ml-1","data-testid":"hide-details-btn",onClick:_[7]||(_[7]=R=>r.value=!1)},{default:m(()=>[..._[34]||(_[34]=[k(" Hide Details ",-1)])]),_:1})):se("",!0)]))])):se("",!0)])]),!n.value&&u.value.length>0?(N(),Z(te,{key:0,size:"small",color:"warning",variant:"outlined",class:"mt-2","data-testid":"continue-with-valid-btn",onClick:_[8]||(_[8]=R=>t.value=2)},{default:m(()=>[f(j,{class:"mr-1"},{default:m(()=>[..._[35]||(_[35]=[k("mdi:mdi-alert",-1)])]),_:1}),k(" Continue with "+V(u.value.length)+" valid printer(s) ",1)]),_:1})):se("",!0)]),_:1})):se("",!0),S("div",Gle,[_[38]||(_[38]=S("h4",{class:"text-subtitle-1 font-weight-medium"},"Found printers",-1)),f(te,{onClick:E,size:"small",variant:"outlined"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[..._[36]||(_[36]=[k("mdi:mdi-check-all",-1)])]),_:1}),_[37]||(_[37]=k(" Toggle selection ",-1))]),_:1})]),f(Ve,{variant:"outlined",class:"mb-4"},{default:m(()=>[f(hr,{lines:"three",density:"compact"},{default:m(()=>[(N(!0),le(De,null,Vt(u.value,(R,O)=>(N(),Z(ot,{key:R.name,onClick:L=>b(O)},{prepend:m(()=>[f(xa,{"model-value":c.value.includes(O)},null,8,["model-value"])]),default:m(()=>[f(Rt,{class:"font-weight-medium mb-1"},{default:m(()=>[k(V(R.name),1)]),_:2},1024),f(Mu,null,{default:m(()=>[S("div",qle,[S("span",Kle,[_[39]||(_[39]=S("strong",null,"URL:",-1)),k(" "+V(R.printerURL),1)]),S("span",Yle,[_[41]||(_[41]=S("strong",null,"Enabled:",-1)),k(" "+V(R.enabled)+" ",1),S("span",Xle,[_[40]||(_[40]=S("strong",null,"API Key:",-1)),k(" "+V(R.apiKey.slice(0,20))+"...",1)])])])]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1}),f(kt,{type:"info",variant:"tonal",density:"compact",class:"mb-4"},{default:m(()=>[..._[42]||(_[42]=[S("div",{class:"text-caption"},[S("strong",null,"Properties to import:"),k(" enabled, name, printerURL, apiKey ")],-1)])]),_:1})]),_:1},8,["complete"])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),f(Wt,null,{default:m(()=>[f(ht),f(te,{onClick:_[10]||(_[10]=x=>C())},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[..._[44]||(_[44]=[k("mdi:mdi-close",-1)])]),_:1}),_[45]||(_[45]=k(" Close ",-1))]),_:1})]),_:1})]),_:1})]),_:1},8,["id"])}}}),Qle=Ee({id:String,submenu:Boolean,...Rn(lm({captureFocus:!0,closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:cx}}),["absolute"])},"VMenu"),li=$e()({name:"VMenu",props:Qle(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"modelValue"),{scopeId:i}=$u(),{isRtl:a}=Or(),s=Ti(),o=ae(()=>e.id||`v-menu-${s}`),l=z(),u=mt(kS,null),c=Fe(new Set);bn(kS,{register(){c.value.add(s)},unregister(){c.value.delete(s)},closeParents(v){setTimeout(()=>{!c.value.size&&!e.persistent&&(v==null||l.value?.contentEl&&!DJ(v,l.value.contentEl))&&(r.value=!1,u?.closeParents())},40)}}),xr(()=>u?.unregister()),Ev(()=>r.value=!1),Ne(r,v=>{v?u?.register():u?.unregister()},{immediate:!0});function d(v){u?.closeParents(v)}function p(v){if(!e.disabled)if(v.key==="Tab"||v.key==="Enter"&&!e.closeOnContentClick){if(v.key==="Enter"&&(v.target instanceof HTMLTextAreaElement||v.target instanceof HTMLInputElement&&v.target.closest("form")))return;v.key==="Enter"&&v.preventDefault(),!eF(tu(l.value?.contentEl,!1),v.shiftKey?"prev":"next",b=>b.tabIndex>=0)&&!e.retainFocus&&(r.value=!1,l.value?.activatorEl?.focus())}else e.submenu&&v.key===(a.value?"ArrowRight":"ArrowLeft")&&(r.value=!1,l.value?.activatorEl?.focus())}function h(v){if(e.disabled)return;const y=l.value?.contentEl;y&&r.value?v.key==="ArrowDown"?(v.preventDefault(),v.stopImmediatePropagation(),xf(y,"next")):v.key==="ArrowUp"?(v.preventDefault(),v.stopImmediatePropagation(),xf(y,"prev")):e.submenu&&(v.key===(a.value?"ArrowRight":"ArrowLeft")?r.value=!1:v.key===(a.value?"ArrowLeft":"ArrowRight")&&(v.preventDefault(),xf(y,"first"))):(e.submenu?v.key===(a.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(v.key))&&(r.value=!0,v.preventDefault(),setTimeout(()=>setTimeout(()=>h(v))))}const g=D(()=>ve({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-controls":o.value,"aria-owns":o.value,onKeydown:h},e.activatorProps));return Ue(()=>{const v=vo.filterProps(e);return f(vo,ve({ref:l,id:o.value,class:["v-menu",e.class],style:e.style},v,{modelValue:r.value,"onUpdate:modelValue":y=>r.value=y,absolute:!0,activatorProps:g.value,location:e.location??(e.submenu?"end":"bottom"),"onClick:outside":d,onKeydown:p},i),{activator:n.activator,default:function(){for(var y=arguments.length,b=new Array(y),E=0;E<y;E++)b[E]=arguments[E];return f(nn,{root:"VMenu"},{default:()=>[n.default?.(...b)]})}})}),fi({id:o,ΨopenChildren:c},l)}}),Zle=Ee({renderless:Boolean,...tt()},"VVirtualScrollItem"),eue=$e()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Zle(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{resizeRef:a,contentRect:s}=go(void 0,"border");Ne(()=>s.value?.height,o=>{o!=null&&r("update:height",o)}),Ue(()=>e.renderless?S(De,null,[i.default?.({itemRef:a})]):S("div",ve({ref:a,class:["v-virtual-scroll__item",e.class],style:e.style},n),[i.default?.()]))}}),tue=-1,nue=1,Wb=100,rue=Ee({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function iue(e,t){const n=ra(),r=Fe(0);lr(()=>{r.value=parseFloat(e.itemHeight||0)});const i=Fe(0),a=Fe(Math.ceil((parseInt(e.height)||n.height.value)/(r.value||16))||1),s=Fe(0),o=Fe(0),l=z(),u=z();let c=0;const{resizeRef:d,contentRect:p}=go();lr(()=>{d.value=l.value});const h=D(()=>l.value===document.documentElement?n.height.value:p.value?.height||parseInt(e.height)||0),g=D(()=>!!(l.value&&u.value&&h.value&&r.value));let v=Array.from({length:t.value.length}),y=Array.from({length:t.value.length});const b=Fe(0);let E=-1;function w(q){return v[q]||r.value}const C=AJ(()=>{const q=performance.now();y[0]=0;const U=t.value.length;for(let M=1;M<=U;M++)y[M]=(y[M-1]||0)+w(M-1);b.value=Math.max(b.value,performance.now()-q)},b),P=Ne(g,q=>{q&&(P(),c=u.value.offsetTop,C.immediate(),H(),~E&&Ct(()=>{un&&window.requestAnimationFrame(()=>{$(E),E=-1})}))});An(()=>{C.clear()});function _(q,U){const M=v[q],K=r.value;r.value=K?Math.min(r.value,U):U,(M!==U||K!==r.value)&&(v[q]=U,C())}function A(q){q=Ln(q,0,t.value.length);const U=Math.floor(q),M=q%1,K=U+1,fe=y[U]||0,he=y[K]||fe;return fe+(he-fe)*M}function I(q){return sue(y,q)}let T=0,x=0,R=0;Ne(h,(q,U)=>{H(),q<U&&requestAnimationFrame(()=>{x=0,H()})});let O=-1;function L(){if(!l.value||!u.value)return;const q=l.value.scrollTop,U=performance.now();U-R>500?(x=Math.sign(q-T),c=u.value.offsetTop):x=q-T,T=q,R=U,window.clearTimeout(O),O=window.setTimeout(F,500),H()}function F(){!l.value||!u.value||(x=0,R=0,window.clearTimeout(O),H())}let W=-1;function H(){cancelAnimationFrame(W),W=requestAnimationFrame(B)}function B(){if(!l.value||!h.value||!r.value)return;const q=T-c,U=Math.sign(x),M=Math.max(0,q-Wb),K=Ln(I(M),0,t.value.length),fe=q+h.value+Wb,he=Ln(I(fe)+1,K+1,t.value.length);if((U!==tue||K<i.value)&&(U!==nue||he>a.value)){const Re=A(i.value)-A(K),Q=A(he)-A(a.value);Math.max(Re,Q)>Wb?(i.value=K,a.value=he):(K<=0&&(i.value=K),he>=t.value.length&&(a.value=he))}s.value=A(i.value),o.value=A(t.value.length)-A(a.value)}function $(q){const U=A(q);!l.value||q&&!U?E=q:l.value.scrollTop=U}const Y=D(()=>t.value.slice(i.value,a.value).map((q,U)=>{const M=U+i.value;return{raw:q,index:M,key:er(q,e.itemKey,M)}}));return Ne(t,()=>{v=Array.from({length:t.value.length}),y=Array.from({length:t.value.length}),C.immediate(),H()},{deep:1}),{calculateVisibleItems:H,containerRef:l,markerRef:u,computedItems:Y,paddingTop:s,paddingBottom:o,scrollToIndex:$,handleScroll:L,handleScrollend:F,handleItemResize:_}}function sue(e,t){let n=e.length-1,r=0,i=0,a=null,s=-1;if(e[n]<t)return n;for(;r<=n;)if(i=r+n>>1,a=e[i],a>t)n=i-1;else if(a<t)s=i,r=i+1;else return a===t?i:r;return s}const aue=Ee({items:{type:Array,default:()=>[]},renderless:Boolean,...rue(),...tt(),...Hr()},"VVirtualScroll"),Wx=$e()({name:"VVirtualScroll",props:aue(),setup(e,t){let{slots:n}=t;const r=Gn("VVirtualScroll"),{dimensionStyles:i}=Wr(e),{calculateVisibleItems:a,containerRef:s,markerRef:o,handleScroll:l,handleScrollend:u,handleItemResize:c,scrollToIndex:d,paddingTop:p,paddingBottom:h,computedItems:g}=iue(e,ae(()=>e.items));return Gi(()=>e.renderless,()=>{function v(){const b=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";s.value===document.documentElement?(document[b]("scroll",l,{passive:!0}),document[b]("scrollend",u)):(s.value?.[b]("scroll",l,{passive:!0}),s.value?.[b]("scrollend",u))}Nt(()=>{s.value=sx(r.vnode.el,!0),v(!0)}),An(v)}),Ue(()=>{const v=g.value.map(y=>f(eue,{key:y.key,renderless:e.renderless,"onUpdate:height":b=>c(y.index,b)},{default:b=>n.default?.({item:y.raw,index:y.index,...b})}));return e.renderless?S(De,null,[S("div",{ref:o,class:"v-virtual-scroll__spacer",style:{paddingTop:ze(p.value)}},null),v,S("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:ze(h.value)}},null)]):S("div",{ref:s,class:Oe(["v-virtual-scroll",e.class]),onScrollPassive:l,onScrollend:u,style:We([i.value,e.style])},[S("div",{ref:o,class:"v-virtual-scroll__container",style:{paddingTop:ze(p.value),paddingBottom:ze(h.value)}},[v])])}),{calculateVisibleItems:a,scrollToIndex:d}}});function Gx(e,t){const n=Fe(!1);let r;function i(o){cancelAnimationFrame(r),n.value=!0,r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{n.value=!1})})}async function a(){await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>requestAnimationFrame(o)),await new Promise(o=>{if(n.value){const l=Ne(n,()=>{l(),o()})}else o()})}async function s(o){if(o.key==="Tab"&&t.value?.focus(),!["PageDown","PageUp","Home","End"].includes(o.key))return;const l=e.value?.$el;if(!l)return;(o.key==="Home"||o.key==="End")&&l.scrollTo({top:o.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await a();const u=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(o.key==="PageDown"||o.key==="Home"){const c=l.getBoundingClientRect().top;for(const d of u)if(d.getBoundingClientRect().top>=c){d.focus();break}}else{const c=l.getBoundingClientRect().bottom;for(const d of[...u].reverse())if(d.getBoundingClientRect().bottom<=c){d.focus();break}}}return{onScrollPassive:i,onKeydown:s}}const oue=Ee({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function qx(e,t){const n=Ti(),r=D(()=>`menu-${n}`),i=ae(()=>yn(t)),a=ae(()=>r.value);return{menuId:r,ariaExpanded:i,ariaControls:a}}const Kx=Ee({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:rt,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...oue(),...P$({itemChildren:!1})},"Select"),lue=Ee({...Kx(),...Rn(ay({modelValue:null,role:"combobox"}),["validationValue","dirty"]),...Id({transition:{component:cx}})},"VSelect"),Sr=$e()({name:"VSelect",props:lue(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=Rr(),i=z(),a=z(),s=z(),{items:o,transformIn:l,transformOut:u}=_x(e),c=gt(e,"modelValue",[],he=>l(he===null?[null]:tr(he)),he=>{const Re=u(he);return e.multiple?Re:Re[0]??null}),d=D(()=>typeof e.counterValue=="function"?e.counterValue(c.value):typeof e.counterValue=="number"?e.counterValue:c.value.length),p=hm(e),h=Ox(e),g=D(()=>c.value.map(he=>he.value)),v=Fe(!1),y=ae(()=>e.closableChips&&!p.isReadonly.value&&!p.isDisabled.value),{InputIcon:b}=mm(e);let E="",w=0,C;const P=D(()=>e.hideSelected?o.value.filter(he=>!c.value.some(Re=>(e.valueComparator||Ir)(Re,he))):o.value),_=D(()=>e.hideNoData&&!P.value.length||p.isReadonly.value||p.isDisabled.value),A=gt(e,"menu"),I=D({get:()=>A.value,set:he=>{A.value&&!he&&a.value?.ΨopenChildren.size||he&&_.value||(A.value=he)}}),{menuId:T,ariaExpanded:x,ariaControls:R}=qx(e,I),O=D(()=>({...e.menuProps,activatorProps:{...e.menuProps?.activatorProps||{},"aria-haspopup":"listbox"}})),L=z(),F=Gx(L,i);function W(he){e.openOnClear&&(I.value=!0)}function H(){_.value||(I.value=!I.value)}function B(he){Hc(he)&&$(he)}function $(he){if(!he.key||p.isReadonly.value)return;if(["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(he.key)&&he.preventDefault(),["Enter","ArrowDown"," "].includes(he.key)&&(I.value=!0),["Escape","Tab"].includes(he.key)&&(I.value=!1),e.clearable&&he.key==="Backspace"){he.preventDefault(),c.value=[],W();return}he.key==="Home"?L.value?.focus("first"):he.key==="End"&&L.value?.focus("last");const Re=1e3;if(!Hc(he))return;const Q=performance.now();Q-C>Re&&(E="",w=0),E+=he.key.toLowerCase(),C=Q;const re=P.value;function X(){let J=ie();return J||E.at(-1)===E.at(-2)&&(E=E.slice(0,-1),w++,J=ie(),J)||(w=0,J=ie(),J)?J:(E=he.key.toLowerCase(),ie())}function ie(){for(let J=w;J<re.length;J++){const de=re[J];if(de.title.toLowerCase().startsWith(E))return[de,J]}}const we=X();if(!we)return;const[Pe,G]=we;w=G,L.value?.focus(G),e.multiple||(c.value=[Pe])}function Y(he){let Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!he.props.disabled)if(e.multiple){const Q=c.value.findIndex(X=>(e.valueComparator||Ir)(X.value,he.value)),re=Re??!~Q;if(~Q){const X=re?[...c.value,he]:[...c.value];X.splice(Q,1),c.value=X}else re&&(c.value=[...c.value,he])}else{const Q=Re!==!1;c.value=Q?[he]:[],Ct(()=>{I.value=!1})}}function q(he){L.value?.$el.contains(he.relatedTarget)||(I.value=!1)}function U(){e.eager&&s.value?.calculateVisibleItems()}function M(){v.value&&i.value?.focus()}function K(he){v.value=!0}function fe(he){if(he==null)c.value=[];else if(zc(i.value,":autofill")||zc(i.value,":-webkit-autofill")){const Re=o.value.find(Q=>Q.title===he);Re&&Y(Re)}else i.value&&(i.value.value="")}return Ne(I,()=>{if(!e.hideSelected&&I.value&&c.value.length){const he=P.value.findIndex(Re=>c.value.some(Q=>(e.valueComparator||Ir)(Q.value,Re.value)));un&&!e.noAutoScroll&&window.requestAnimationFrame(()=>{he>=0&&s.value?.scrollToIndex(he)})}}),Ne(o,(he,Re)=>{I.value||v.value&&e.hideNoData&&!Re.length&&he.length&&(I.value=!0)}),Ue(()=>{const he=!!(e.chips||n.chip),Re=!!(!e.hideNoData||P.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),Q=c.value.length>0,re=yt.filterProps(e),X=Q||!v.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return f(yt,ve({ref:i},re,{modelValue:c.value.map(ie=>ie.props.title).join(", "),name:void 0,"onUpdate:modelValue":fe,focused:v.value,"onUpdate:focused":ie=>v.value=ie,validationValue:c.externalValue,counterValue:d.value,dirty:Q,class:["v-select",{"v-select--active-menu":I.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":c.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:X,"onClick:clear":W,"onMousedown:control":H,onBlur:q,onKeydown:$,"aria-expanded":x.value,"aria-controls":R.value}),{...n,default:ie=>{let{id:we}=ie;return S(De,null,[S("select",{hidden:!0,multiple:e.multiple,name:h.fieldName.value},[o.value.map(Pe=>S("option",{key:Pe.value,value:Pe.value,selected:g.value.includes(Pe.value)},null))]),f(li,ve({id:T.value,ref:a,modelValue:I.value,"onUpdate:modelValue":Pe=>I.value=Pe,activator:"parent",contentClass:"v-select__content",disabled:_.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:U,onAfterLeave:M},O.value),{default:()=>[Re&&f(hr,ve({ref:L,selected:g.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:Pe=>Pe.preventDefault(),onKeydown:B,onFocusin:K,tabindex:"-1",selectable:!0,"aria-live":"polite","aria-labelledby":`${we.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},F,e.listProps),{default:()=>[n["prepend-item"]?.(),!P.value.length&&!e.hideNoData&&(n["no-data"]?.()??f(ot,{key:"no-data",title:r(e.noDataText)},null)),f(Wx,{ref:s,renderless:!0,items:P.value,itemKey:"value"},{default:Pe=>{let{item:G,index:J,itemRef:de}=Pe;const oe=FJ(G.props),be=ve(G.props,{ref:de,key:G.value,onClick:()=>Y(G,null),"aria-posinset":J+1,"aria-setsize":P.value.length});return G.type==="divider"?n.divider?.({props:G.raw,index:J})??f(et,ve(G.props,{key:`divider-${J}`}),null):G.type==="subheader"?n.subheader?.({props:G.raw,index:J})??f(yo,ve(G.props,{key:`subheader-${J}`}),null):n.item?.({item:G,index:J,props:be})??f(ot,ve(be,{role:"option"}),{prepend:Ce=>{let{isSelected:ue}=Ce;return S(De,null,[e.multiple&&!e.hideSelected?f(xa,{key:G.value,modelValue:ue,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:ge=>ge.preventDefault()},null):void 0,oe.prependAvatar&&f(Sn,{image:oe.prependAvatar},null),oe.prependIcon&&f(j,{icon:oe.prependIcon},null)])}})}}),n["append-item"]?.()]})]}),c.value.map((Pe,G)=>{function J(Ce){Ce.stopPropagation(),Ce.preventDefault(),Y(Pe,!1)}const de=ve(He.filterProps(Pe.props),{"onClick:close":J,onKeydown(Ce){Ce.key!=="Enter"&&Ce.key!==" "||(Ce.preventDefault(),Ce.stopPropagation(),J(Ce))},onMousedown(Ce){Ce.preventDefault(),Ce.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),oe=he?!!n.chip:!!n.selection,be=oe?Yv(he?n.chip({item:Pe,index:G,props:de}):n.selection({item:Pe,index:G})):void 0;if(!(oe&&!be))return S("div",{key:Pe.value,class:"v-select__selection"},[he?n.chip?f(nn,{key:"chip-defaults",defaults:{VChip:{closable:y.value,size:"small",text:Pe.title}}},{default:()=>[be]}):f(He,ve({key:"chip",closable:y.value,size:"small",text:Pe.title,disabled:Pe.props.disabled},de),null):be??S("span",{class:"v-select__selection-text"},[Pe.title,e.multiple&&G<c.value.length-1&&S("span",{class:"v-select__selection-comma"},[k(",")])])])})])},"append-inner":function(){for(var ie=arguments.length,we=new Array(ie),Pe=0;Pe<ie;Pe++)we[Pe]=arguments[Pe];return S(De,null,[n["append-inner"]?.(...we),e.menuIcon?f(j,{class:"v-select__menu-icon",color:i.value?.fieldIconColor,icon:e.menuIcon,"aria-hidden":!0},null):void 0,e.appendInnerIcon&&f(b,{key:"append-icon",name:"appendInner",color:we[0].iconColor.value},null)])}})}),fi({isFocused:v,menu:I,select:Y},i)}}),uue=(e,t,n)=>{if(e==null||t==null)return-1;if(!t.length)return 0;e=e.toString().toLocaleLowerCase(),t=t.toString().toLocaleLowerCase();const r=[];let i=e.indexOf(t);for(;~i;)r.push([i,i+t.length]),i=e.indexOf(t,i+t.length);return r.length?r:-1};function Gb(e,t){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+t.length]]:Array.isArray(e[0])?e:[e]}const Yx=Ee({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function cue(e,t,n){const r=[],i=n?.default??uue,a=n?.filterKeys?tr(n.filterKeys):!1,s=Object.keys(n?.customKeyFilter??{}).length;if(!e?.length)return r;let o=null;e:for(let l=0;l<e.length;l++){const[u,c=u]=tr(e[l]),d={},p={};let h=-1;if((t||s>0)&&!n?.noFilter){let g=!1;if(typeof u=="object"){if(u.type==="divider"||u.type==="subheader"){o?.type==="divider"&&u.type==="subheader"&&r.push(o),o={index:l,matches:{},type:u.type};continue}const b=a||Object.keys(c);g=b.length===s;for(const E of b){const w=er(c,E),C=n?.customKeyFilter?.[E];if(h=C?C(w,t,u):i(w,t,u),h!==-1&&h!==!1)C?d[E]=Gb(h,t):p[E]=Gb(h,t);else if(n?.filterMode==="every")continue e}}else h=i(u,t,u),h!==-1&&h!==!1&&(p.title=Gb(h,t));const v=Object.keys(p).length,y=Object.keys(d).length;if(!v&&!y||n?.filterMode==="union"&&y!==s&&!v||n?.filterMode==="intersection"&&(y!==s||!v&&s>0&&!g))continue}o&&(r.push(o),o=null),r.push({index:l,matches:{...p,...d}})}return r}function Xx(e,t,n,r){const i=Fe([]),a=Fe(new Map),s=D(()=>r?.transform?ne(t).map(l=>[l,r.transform(l)]):ne(t));lr(()=>{const l=typeof n=="function"?n():ne(n),u=typeof l!="string"&&typeof l!="number"?"":String(l),c=cue(s.value,u,{customKeyFilter:{...e.customKeyFilter,...ne(r?.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),d=ne(t),p=[],h=new Map;c.forEach(g=>{let{index:v,matches:y}=g;const b=d[v];p.push(b),h.set(b.value,y)}),i.value=p,a.value=h});function o(l){return a.value.get(l.value)}return{filteredItems:i,filteredMatches:a,getMatches:o}}function VM(e,t,n){return n==null||!n.length?t:n.map((r,i)=>{const a=i===0?0:n[i-1][1],s=[S("span",{class:Oe(`${e}__unmask`)},[t.slice(a,r[0])]),S("span",{class:Oe(`${e}__mask`)},[t.slice(r[0],r[1])])];return i===n.length-1&&s.push(S("span",{class:Oe(`${e}__unmask`)},[t.slice(r[1])])),S(De,null,[s])})}const due=Ee({alwaysFilter:Boolean,autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Yx({filterKeys:["title"]}),...Kx({hideNoData:!0,returnObject:!0}),...Rn(ay({modelValue:null,role:"combobox"}),["validationValue","dirty"])},"VCombobox"),fue=$e()({name:"VCombobox",props:due(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:i}=Rr(),a=z(),s=Fe(!1),o=Fe(!0),l=Fe(!1),u=z(),c=z(),d=Fe(-1);let p=!1;const{items:h,transformIn:g,transformOut:v}=_x(e),{textColorClasses:y,textColorStyles:b}=Ci(()=>a.value?.color),{InputIcon:E}=mm(e),w=gt(e,"modelValue",[],ue=>g(tr(ue)),ue=>{const ge=v(ue);return e.multiple?ge:ge[0]??null}),C=hm(e),P=ae(()=>e.closableChips&&!C.isReadonly.value&&!C.isDisabled.value),_=D(()=>!!(e.chips||r.chip)),A=D(()=>_.value||!!r.selection),I=Fe(!e.multiple&&!A.value?w.value[0]?.title??"":""),T=Fe(null),x=D({get:()=>I.value,set:async ue=>{if(I.value=ue??"",ue===null||ue===""&&!e.multiple&&!A.value?w.value=[]:!e.multiple&&!A.value&&(w.value=[Ws(e,ue)],Ct(()=>c.value?.scrollToIndex(0))),ue&&e.multiple&&e.delimiters?.length){const ge=de(ue);ge.length>1&&(oe(ge),I.value="")}ue||(d.value=-1),o.value=!ue}}),R=D(()=>typeof e.counterValue=="function"?e.counterValue(w.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?w.value.length:x.value.length),{filteredItems:O,getMatches:L}=Xx(e,h,()=>T.value??(e.alwaysFilter||!o.value?x.value:"")),F=D(()=>e.hideSelected&&T.value===null?O.value.filter(ue=>!w.value.some(ge=>ge.value===ue.value)):O.value),W=D(()=>e.hideNoData&&!F.value.length||C.isReadonly.value||C.isDisabled.value),H=gt(e,"menu"),B=D({get:()=>H.value,set:ue=>{H.value&&!ue&&u.value?.ΨopenChildren.size||ue&&W.value||(H.value=ue)}}),{menuId:$,ariaExpanded:Y,ariaControls:q}=qx(e,B);Ne(I,ue=>{p?Ct(()=>p=!1):s.value&&!B.value&&(B.value=!0),n("update:search",ue)}),Ne(w,ue=>{!e.multiple&&!A.value&&(I.value=ue[0]?.title??"")});const U=D(()=>w.value.map(ue=>ue.value)),M=D(()=>F.value.find(ue=>ue.type==="item"&&!ue.props.disabled)),K=D(()=>(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&x.value===M.value?.title)&&F.value.length>0&&!o.value&&!l.value),fe=z(),he=Gx(fe,a);function Re(ue){p=!0,Ct(()=>p=!1),e.openOnClear&&(B.value=!0)}function Q(){W.value||(B.value=!0)}function re(ue){W.value||(s.value&&(ue.preventDefault(),ue.stopPropagation()),B.value=!B.value)}function X(ue){(Hc(ue)||ue.key==="Backspace")&&a.value?.focus()}function ie(ue){if(PJ(ue)||C.isReadonly.value)return;const ge=a.value?.selectionStart,_e=w.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(ue.key)&&ue.preventDefault(),["Enter","ArrowDown"].includes(ue.key)&&(B.value=!0),["Escape"].includes(ue.key)&&(B.value=!1),K.value&&["Enter","Tab"].includes(ue.key)&&M.value&&!w.value.some(ce=>{let{value:Be}=ce;return Be===M.value.value})&&J(M.value),ue.key==="ArrowDown"&&K.value&&fe.value?.focus("next"),ue.key==="Enter"&&x.value&&(J(Ws(e,x.value),!0,!0),A.value&&(I.value="")),["Backspace","Delete"].includes(ue.key)){if(!e.multiple&&A.value&&w.value.length>0&&!x.value)return J(w.value[0],!1);if(~d.value){ue.preventDefault();const ce=d.value;J(w.value[d.value],!1),d.value=ce>=_e-1?_e-2:ce}else ue.key==="Backspace"&&!x.value&&(d.value=_e-1);return}if(e.multiple)if(ue.key==="ArrowLeft"){if(d.value<0&&ge&&ge>0)return;const ce=d.value>-1?d.value-1:_e-1;w.value[ce]?d.value=ce:(d.value=-1,a.value?.setSelectionRange(x.value.length,x.value.length))}else if(ue.key==="ArrowRight"){if(d.value<0)return;const ce=d.value+1;w.value[ce]?d.value=ce:(d.value=-1,a.value?.setSelectionRange(0,0))}else~d.value&&Hc(ue)&&(d.value=-1)}function we(ue){const ge=ue?.clipboardData?.getData("Text")??"",_e=de(ge);_e.length>1&&e.multiple&&(ue.preventDefault(),oe(_e))}function Pe(){e.eager&&c.value?.calculateVisibleItems()}function G(){s.value&&a.value?.focus(),o.value=!0,T.value=null}function J(ue){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!(!ue||ue.props.disabled))if(e.multiple){const ce=w.value.findIndex(Ie=>(e.valueComparator||Ir)(Ie.value,ue.value)),Be=ge??!~ce;if(~ce){const Ie=Be?[...w.value,ue]:[...w.value];Ie.splice(ce,1),w.value=Ie}else Be&&(w.value=[...w.value,ue]);e.clearOnSelect&&(x.value="")}else{const ce=ge!==!1;w.value=ce?[ue]:[],(!o.value||e.alwaysFilter)&&I.value&&(T.value=I.value),I.value=ce&&!A.value?ue.title:"",Ct(()=>{B.value=_e,o.value=!0})}}function de(ue){const _e=[`
87
+ `,...e.delimiters??[]].map(LJ).join("|");return ue.split(new RegExp(`(?:${_e})+`))}async function oe(ue){for(let ge of ue)ge=ge.trim(),ge&&(J(Ws(e,ge)),await Ct())}function be(ue){s.value=!0,setTimeout(()=>{l.value=!0})}function Ce(ue){l.value=!1}return Ne(s,(ue,ge)=>{if(!(ue||ue===ge)&&(d.value=-1,B.value=!1,x.value)){if(e.multiple){J(Ws(e,x.value));return}if(!A.value)return;w.value.some(_e=>{let{title:ce}=_e;return ce===x.value})?I.value="":J(Ws(e,x.value))}}),Ne(B,ue=>{if(!e.hideSelected&&ue&&w.value.length&&o.value){const ge=F.value.findIndex(_e=>w.value.some(ce=>(e.valueComparator||Ir)(ce.value,_e.value)));un&&window.requestAnimationFrame(()=>{ge>=0&&c.value?.scrollToIndex(ge)})}ue&&(T.value=null)}),Ne(h,(ue,ge)=>{B.value||s.value&&!ge.length&&ue.length&&(B.value=!0)}),Ue(()=>{const ue=!!(!e.hideNoData||F.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),ge=w.value.length>0,_e=yt.filterProps(e);return f(yt,ve({ref:a},_e,{modelValue:x.value,"onUpdate:modelValue":ce=>x.value=ce,focused:s.value,"onUpdate:focused":ce=>s.value=ce,validationValue:w.externalValue,counterValue:R.value,dirty:ge,class:["v-combobox",{"v-combobox--active-menu":B.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!A.value,"v-combobox--selecting-index":d.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:C.isReadonly.value,placeholder:ge?void 0:e.placeholder,"onClick:clear":Re,"onMousedown:control":Q,onKeydown:ie,onPaste:we,"aria-expanded":Y.value,"aria-controls":q.value}),{...r,default:ce=>{let{id:Be}=ce;return S(De,null,[f(li,ve({id:$.value,ref:u,modelValue:B.value,"onUpdate:modelValue":Ie=>B.value=Ie,activator:"parent",contentClass:"v-combobox__content",disabled:W.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:Pe,onAfterLeave:G},e.menuProps),{default:()=>[ue&&f(hr,ve({ref:fe,filterable:!0,selected:U.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:Ie=>Ie.preventDefault(),selectable:!0,onKeydown:X,onFocusin:be,onFocusout:Ce,tabindex:"-1","aria-live":"polite","aria-labelledby":`${Be.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},he,e.listProps),{default:()=>[r["prepend-item"]?.(),!F.value.length&&!e.hideNoData&&(r["no-data"]?.()??f(ot,{key:"no-data",title:i(e.noDataText)},null)),f(Wx,{ref:c,renderless:!0,items:F.value,itemKey:"value"},{default:Ie=>{let{item:Me,index:Je,itemRef:Ze}=Ie;const At=ve(Me.props,{ref:Ze,key:Me.value,active:K.value&&Me===M.value?!0:void 0,onClick:()=>J(Me,null),"aria-posinset":Je+1,"aria-setsize":F.value.length});return Me.type==="divider"?r.divider?.({props:Me.raw,index:Je})??f(et,ve(Me.props,{key:`divider-${Je}`}),null):Me.type==="subheader"?r.subheader?.({props:Me.raw,index:Je})??f(yo,ve(Me.props,{key:`subheader-${Je}`}),null):r.item?.({item:Me,index:Je,props:At})??f(ot,ve(At,{role:"option"}),{prepend:pe=>{let{isSelected:me}=pe;return S(De,null,[e.multiple&&!e.hideSelected?f(xa,{key:Me.value,modelValue:me,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:ke=>ke.preventDefault()},null):void 0,Me.props.prependAvatar&&f(Sn,{image:Me.props.prependAvatar},null),Me.props.prependIcon&&f(j,{icon:Me.props.prependIcon},null)])},title:()=>o.value?Me.title:VM("v-combobox",Me.title,L(Me)?.title)})}}),r["append-item"]?.()]})]}),w.value.map((Ie,Me)=>{function Je(me){me.stopPropagation(),me.preventDefault(),J(Ie,!1)}const Ze=ve(He.filterProps(Ie.props),{"onClick:close":Je,onKeydown(me){me.key!=="Enter"&&me.key!==" "||(me.preventDefault(),me.stopPropagation(),Je(me))},onMousedown(me){me.preventDefault(),me.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),At=_.value?!!r.chip:!!r.selection,pe=At?Yv(_.value?r.chip({item:Ie,index:Me,props:Ze}):r.selection({item:Ie,index:Me})):void 0;if(!(At&&!pe))return S("div",{key:Ie.value,class:Oe(["v-combobox__selection",Me===d.value&&["v-combobox__selection--selected",y.value]]),style:We(Me===d.value?b.value:{})},[_.value?r.chip?f(nn,{key:"chip-defaults",defaults:{VChip:{closable:P.value,size:"small",text:Ie.title}}},{default:()=>[pe]}):f(He,ve({key:"chip",closable:P.value,size:"small",text:Ie.title,disabled:Ie.props.disabled},Ze),null):pe??S("span",{class:"v-combobox__selection-text"},[Ie.title,e.multiple&&Me<w.value.length-1&&S("span",{class:"v-combobox__selection-comma"},[k(",")])])])})])},"append-inner":function(){for(var ce=arguments.length,Be=new Array(ce),Ie=0;Ie<ce;Ie++)Be[Ie]=arguments[Ie];return S(De,null,[r["append-inner"]?.(...Be),(!e.hideNoData||e.items.length)&&e.menuIcon?f(j,{class:"v-combobox__menu-icon",color:a.value?.fieldIconColor,icon:e.menuIcon,onMousedown:re,onClick:tF,"aria-hidden":!0,tabindex:"-1"},null):void 0,e.appendInnerIcon&&f(E,{key:"append-icon",name:"appendInner",color:Be[0].iconColor.value},null)])}})}),fi({isFocused:s,isPristine:o,menu:B,search:x,selectionIndex:d,filteredItems:O,select:J},a)}}),pue={class:"text-caption"},mue={class:"mb-4"},hue={class:"text-subtitle-1 font-weight-bold mb-2"},gue={class:"mb-4"},vue={class:"mb-4"},yue={class:"text-subtitle-1 font-weight-bold mb-2"},bue={class:"text-subtitle-1 font-weight-bold mb-2"},Sue=je({__name:"PrinterMaintenanceDialog",setup(e){const t=z([]),n=["Nozzle Clog","Bed Leveling","Thermal Runaway","Maxtemp Error","Mintemp Nozzle","Mintemp Heatbed","Preheat Error","Bed Thermal Runaway","Blob","Cable Issue","Fan Failure","Extruder Issue","Axis Problem","Thermistor Fault","Motherboard","Broken Part","Scheduled Maintenance","Cleaning Required","Other"],r=["Nozzle","Hotend","Heatbed","Thermistor (Nozzle)","Thermistor (Heatbed)","Heater Cartridge","Fan (Hotend)","Fan (Part Cooling)","Fan (Board)","Extruder","Bowden Tube","Build Plate","Belt (X-Axis)","Belt (Y-Axis)","Lead Screw","Stepper Motor","Power Supply","Motherboard","LCD Screen","USB Cable","Filament Sensor","BLTouch/Probe","Endstop Switch"],i=z({partsInvolved:[]}),a=vn(),s=zt(Ht.PrinterMaintenanceDialog),o=D(()=>{const d=s.context();return d?.printerId?a.printer(d.printerId):void 0}),l=()=>{t.value.length>0&&(i.value.cause=t.value.join(", "))},u=async()=>{const d=o.value?.id;!d||!i.value.cause||(await Za.create({printerId:d,metadata:{cause:i.value.cause,notes:i.value.notes,partsInvolved:i.value.partsInvolved}}),i.value={partsInvolved:[]},t.value=[],c())},c=()=>{t.value=[],i.value={partsInvolved:[]},s.closeDialog()};return(d,p)=>{const h=ia;return N(),Z(h,{id:ne(s).dialogId,"max-width":"800px",onEscape:p[8]||(p[8]=g=>c())},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center py-3 px-4 bg-warning"},{default:m(()=>[f(j,{class:"mr-2",size:"large"},{default:m(()=>[...p[9]||(p[9]=[k("build_circle",-1)])]),_:1}),S("div",null,[p[10]||(p[10]=S("div",{class:"text-h6"},"Create Maintenance Log",-1)),S("div",pue,V(o.value?.name),1)]),f(ht),f(te,{icon:"close",variant:"text",onClick:p[0]||(p[0]=g=>c())})]),_:1}),f(et),f(qe,{class:"pa-4"},{default:m(()=>[S("div",mue,[S("div",hue,[f(j,{class:"mr-1",color:"warning"},{default:m(()=>[...p[11]||(p[11]=[k("warning",-1)])]),_:1}),p[12]||(p[12]=k(" What's the issue? ",-1))]),f(Sr,{modelValue:t.value,"onUpdate:modelValue":[p[1]||(p[1]=g=>t.value=g),p[2]||(p[2]=g=>l())],items:n,label:"Quick select common issues","prepend-inner-icon":"category",variant:"outlined",density:"comfortable",multiple:"",chips:"","closable-chips":"",clearable:"",hint:"Select one or more common issues","persistent-hint":""},{chip:m(({item:g,props:v})=>[f(He,ve(v,{color:"warning",variant:"tonal",size:"small",closable:""}),{default:m(()=>[k(V(g.title),1)]),_:2},1040)]),_:1},8,["modelValue"])]),S("div",gue,[f(QS,{modelValue:i.value.cause,"onUpdate:modelValue":p[3]||(p[3]=g=>i.value.cause=g),label:"Describe the cause *","prepend-inner-icon":"description",variant:"outlined",rows:"2","auto-grow":"",placeholder:"E.g., Nozzle clogged during print, bed leveling issues",hint:"Brief description of what caused the maintenance","persistent-hint":""},null,8,["modelValue"])]),f(et,{class:"my-4"}),S("div",vue,[S("div",yue,[f(j,{class:"mr-1",color:"info"},{default:m(()=>[...p[13]||(p[13]=[k("build",-1)])]),_:1}),p[14]||(p[14]=k(" Parts Involved ",-1))]),f(fue,{modelValue:i.value.partsInvolved,"onUpdate:modelValue":p[4]||(p[4]=g=>i.value.partsInvolved=g),items:r,label:"Select or add parts","prepend-inner-icon":"inventory_2",variant:"outlined",density:"comfortable",multiple:"",chips:"","closable-chips":"",clearable:"",hint:"Select from common parts or type to add custom parts","persistent-hint":""},{chip:m(({item:g,props:v})=>[f(He,ve(v,{color:"info",variant:"tonal",size:"small",closable:""}),{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...p[15]||(p[15]=[k("build",-1)])]),_:1}),k(" "+V(g.title),1)]),_:2},1040)]),_:1},8,["modelValue"])]),f(et,{class:"my-4"}),S("div",null,[S("div",bue,[f(j,{class:"mr-1",color:"secondary"},{default:m(()=>[...p[16]||(p[16]=[k("note",-1)])]),_:1}),p[17]||(p[17]=k(" Additional Notes ",-1))]),f(QS,{modelValue:i.value.notes,"onUpdate:modelValue":p[5]||(p[5]=g=>i.value.notes=g),label:"Any additional information","prepend-inner-icon":"notes",variant:"outlined",rows:"3","auto-grow":"",placeholder:"Add any extra details, observations, or steps taken...",hint:"Optional: Additional context or troubleshooting steps","persistent-hint":""},null,8,["modelValue"])]),f(kt,{type:"info",variant:"tonal",density:"compact",class:"mt-4"},{prepend:m(()=>[f(j,null,{default:m(()=>[...p[18]||(p[18]=[k("info",-1)])]),_:1})]),default:m(()=>[p[19]||(p[19]=k(" This will disable the printer and create a maintenance log. The printer will remain disabled until the maintenance is marked as completed. ",-1))]),_:1})]),_:1}),f(et),f(Wt,{class:"px-4 py-3"},{default:m(()=>[f(ht),f(te,{variant:"text",onClick:p[6]||(p[6]=g=>c())},{default:m(()=>[...p[20]||(p[20]=[k(" Cancel ",-1)])]),_:1}),f(te,{color:"warning",variant:"elevated","prepend-icon":"build_circle",disabled:!i.value.cause,onClick:p[7]||(p[7]=g=>u())},{default:m(()=>[...p[21]||(p[21]=[k(" Create Maintenance Log ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["id"])}}}),wue=En(Sue,[["__scopeId","data-v-b2b83a31"]]);class Es extends di{static async createUser(t){const n=Se.userRoute;return await this.post(n,t)}static async listUsers(){const t=Se.userRoute;return await this.get(t)}static async listRoles(){const t=Se.rolesRoute;return await this.get(t)}static async getProfile(){const t=Se.userProfileRoute;return await this.get(t)}static async changePassword(t,n,r){const i=Se.userChangePasswordRoute(t);return await this.post(i,{oldPassword:n,newPassword:r})}static async changeUsername(t,n){const r=Se.userChangeUsernameRoute(t);return await this.post(r,{username:n})}static async deleteUser(t){const n=Se.userDeleteRoute(t);return await this.delete(n)}static async setUserVerified(t,n){const r=Se.userSetVerifiedRoute(t);return await this.post(r,{isVerified:n})}static async setRootUser(t,n){const r=Se.userSetRootUserRoute(t);return await this.post(r,{isRootUser:n})}static async setUserRoles(t,n){const r=Se.userSetUserRolesRoute(t);return await this.post(r,{roles:n})}}const qb=!0,Cc=Object.freeze({apiKeyLength:43,maxPrinterNameLength:25,minFloorNameLength:3,minUsernameLength:3}),Eue={class:"text-h5"},xue={class:"pl-5"},kue=je({__name:"CreateUserDialog",setup(e){const t=zt(Ht.CreateUserDialog),n=Xt(),r=z({username:"",password:"",roles:[]}),i=z(""),a=z([]);function s(){}async function o(){try{a.value=await Es.listRoles()}catch(h){n.openErrorMessage({title:"Failed to load roles",subtitle:h instanceof Error?h.message:"Unknown error"})}}const l=D(()=>r.value?.username?.length?ry(r.value.username):"??"),u={required:h=>!!h||"Required field",minLength:h=>h.length>=Cc.minUsernameLength||`Minimum ${Cc.minUsernameLength} characters`,password:h=>h.length>=8?!0:"Password must be at least 8 characters",passwordMatch:h=>h===r.value.password||"Passwords must match"},c=()=>!r.value.username||r.value.username.length<Cc.minUsernameLength?(n.openErrorMessage({title:"Invalid username"}),!1):!r.value.password||u.password(r.value.password)!==!0?(n.openErrorMessage({title:"Invalid password"}),!1):r.value.password!==i.value?(n.openErrorMessage({title:"Passwords do not match"}),!1):r.value.roles.length?!0:(n.openErrorMessage({title:"Please select a role"}),!1),d=async()=>{if(c())try{await Es.createUser(r.value),n.openInfoMessage({title:`User ${r.value.username} created successfully`}),p()}catch(h){n.openErrorMessage({title:"Failed to create user",subtitle:h instanceof Error?h.message:"Unknown error"})}},p=()=>{r.value={username:"",password:"",roles:[]},i.value="",t.closeDialog()};return(h,g)=>{const v=ia;return N(),Z(v,{id:ne(t).dialogId,"max-width":"700px",onBeforeOpened:g[4]||(g[4]=y=>void 0),onEscape:g[5]||(g[5]=y=>p()),onOpened:g[6]||(g[6]=y=>o())},{default:m(()=>[f(Ve,{class:"pa-4"},{default:m(()=>[f(st,null,{default:m(()=>[S("span",Eue,[f(Sn,{color:"primary",size:"56"},{default:m(()=>[k(V(l.value),1)]),_:1}),S("span",xue,[g[9]||(g[9]=k("New verified User ",-1)),f(sn,{top:""},{activator:m(({props:y})=>[f(te,ve({class:"ma-2",fab:""},y,{"x-small":""}),{default:m(()=>[f(j,null,{default:m(()=>[...g[7]||(g[7]=[k("question_mark",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...g[8]||(g[8]=[k(" The user will be set to verified and assigned roles. Please share the username and password with them manually. ",-1)])]),_:1})])])]),_:1}),f(qe,null,{default:m(()=>[f(ct,null,{default:m(()=>[f(Ae,{cols:12},{default:m(()=>[f(ts,null,{default:m(()=>[f(ct,null,{default:m(()=>[f(Ae,{cols:"12",md:"6"},{default:m(()=>[f(yt,{modelValue:r.value.username,"onUpdate:modelValue":g[0]||(g[0]=y=>r.value.username=y),rules:[u.required,u.minLength],autofocus:"",label:"Username*","prepend-icon":"person",required:""},null,8,["modelValue","rules"]),f(yt,{modelValue:r.value.password,"onUpdate:modelValue":g[1]||(g[1]=y=>r.value.password=y),rules:[u.required,u.password],label:"Password*","prepend-icon":"lock",required:"",type:"password"},null,8,["modelValue","rules"]),f(yt,{modelValue:i.value,"onUpdate:modelValue":g[2]||(g[2]=y=>i.value=y),rules:[u.required,u.passwordMatch],label:"Confirm Password*","prepend-icon":"lock",required:"",type:"password"},null,8,["modelValue","rules"]),f(Sr,{modelValue:r.value.roles,"onUpdate:modelValue":g[3]||(g[3]=y=>r.value.roles=y),items:a.value.map(y=>({text:y.name,value:y.name})),rules:[u.required],label:"Roles*",multiple:"","prepend-icon":"shield",required:""},null,8,["modelValue","items","rules"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),f(Wt,null,{default:m(()=>[g[12]||(g[12]=S("em",{class:"text-red"}," * indicates required field ",-1)),f(ht),f(te,{variant:"text",onClick:p},{default:m(()=>[...g[10]||(g[10]=[k("Close",-1)])]),_:1}),f(te,{color:"blue-darken-1",variant:"text",onClick:d},{default:m(()=>[...g[11]||(g[11]=[k("Create",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["id"])}}}),BM=()=>({id:void 0,name:cm(),order:"1",printers:[]});class xs extends di{static convertPrinterFloorToCreateForm(t){const n=BM();return n.id=t?.id,n.name=t?.name||cm(),n.printers=[],n.order=(t?.order||1).toString(),n}static convertCreateFormToFloor(t){const n={...t};if(n.order=Number.parseInt(n.order),Number.isNaN(n.order))throw new TypeError("Floor order did not convert to number.");return n}static async getFloors(){const t=`${Se.floorRoute}/`;return await this.get(t)}static async createFloor(t){const n=`${Se.floorRoute}/`;return await this.post(n,t)}static async updateFloorName(t,n){const r=`${Se.updatePrinterFloorNameRoute(t)}/`;return await this.patch(r,{name:n})}static async updateFloorOrder(t,n){const r=`${Se.updatePrinterFloorOrderRoute(t)}/`;return await this.patch(r,{order:n})}static async deleteFloor(t){const n=`${Se.getFloorRoute(t)}/`;return await this.delete(n)}static async addPrinterToFloor(t,n){const r=`${Se.addOrRemovePrinterFromFloorRoute(t)}/`;return await this.post(r,n)}static async deletePrinterFromFloor(t,n){const r=`${Se.addOrRemovePrinterFromFloorRoute(t)}/`;return await this.delete(r,{printerId:n})}}function AP(e,t){const n=[];for(let r=0;r<e;r++){const i=[];n.push(i);for(let a=0;a<t;a++)i.push(void 0)}return n}function Cue(e,t,n,r){let i=0;for(let a=0;a<n&&i<t.length;a++)for(let s=0;s<r&&i<t.length;s++)e[a][s]=t[i],i++}function _ue(e,t,n,r){let i=0;for(let a=0;a<r&&i<t.length;a++)for(let s=0;s<n&&i<t.length;s++)e[s][a]=t[i],i++}const Xi=Qi("Floors",{state:()=>({floors:[],selectedFloorIndex:0}),getters:{selectedFloor(e){return e.floors.length<=e.selectedFloorIndex?null:e.floors[e.selectedFloorIndex]},sortedFloors(e){return e.floors.sort((t,n)=>t.order-n.order)},floor(e){return t=>e.floors.find(n=>n.id===t)},floorNames(e){return e.floors.map(t=>t.name)},floorOfPrinter(){return e=>this.floors.find(t=>t.printers.map(n=>n.printerId).includes(e))},floorlessPrinters(e){return vn().printers.filter(n=>!e.floors.some(r=>r.printers.find(i=>i.printerId===n.id)))},gridSortedPrinters(){const e=fs(),t=vn();if(!t.printers.length||!this.selectedFloor)return[];const n=AP(e.gridCols,e.gridRows),r=this.selectedFloor.printers;for(let i=0;i<e.gridCols;i++)for(let a=0;a<e.gridRows;a++){const s=r.find(o=>o.x===i&&o.y===a);if(s){const o=t.printers.find(l=>l.id===s.printerId);o&&(n[i][a]=o)}}return n},gridNameSortedPrinters(){return e=>{const t=fs(),n=vn();if(!n.printers.length||!this.selectedFloor)return[];const r=new Set(this.selectedFloor.printers.map(l=>l.printerId)),a=(e??n.printers).filter(l=>r.has(l.id));a.sort((l,u)=>l.name.localeCompare(u.name));const s=AP(t.gridCols,t.gridRows);return(t.gridNameSortDirection==="vertical"?Cue:_ue)(s,a,t.gridCols,t.gridRows),s}}},actions:{async loadFloors(){const e=await xs.getFloors();return this.saveFloors(e),e},async createFloor(e){const t=await xs.createFloor(e);return this.floors.push(t),t},saveFloors(e){if(!e?.length)return;this.floors=e.toSorted((r,i)=>r.order-i.order);const t=this.selectedFloor?.id,n=this.floors.findIndex(r=>r.id===t);this.selectedFloorIndex=n===-1?0:n},async deleteFloor(e){await xs.deleteFloor(e),this._popPrinterFloor(e)},async updateFloorName({floorId:e,name:t}){const n=await xs.updateFloorName(e,t);return this._replaceFloor(n),n},async updateFloorOrder({floorId:e,order:t}){const n=await xs.updateFloorOrder(e,t);return this._replaceFloor(n),n},async addPrinterToFloor({floorId:e,printerId:t,x:n,y:r}){const i=await xs.addPrinterToFloor(e,{printerId:t,x:n,y:r});this._replaceFloor(i)},async changeSelectedFloorByIndex(e){if(!this.floors?.length)return;if(this.floors.length<=e){console.warn("Selected floor index exceeds floors array"),this.selectedFloorIndex=0;return}if(!this.floors[e]){console.warn("Selected floor index did not exist in floors array"),this.selectedFloorIndex=0;return}this.selectedFloorIndex=e},async deletePrinterFromFloor({floorId:e,printerId:t}){const n=await xs.deletePrinterFromFloor(e,t);this._replaceFloor(n)},_popPrinterFloor(e){const t=this.floors.findIndex(n=>n.id===e);t!==-1&&this.floors.splice(t,1)},_replaceFloor(e){const t=this.floors.findIndex(n=>n.id===e.id);t!==-1&&(this.floors[t]=e)}}}),Tue={class:"text-h5"},Iue=je({__name:"AddOrUpdateFloorDialog",setup(e){const t=zt(Ht.AddOrUpdateFloorDialog),n=Xi(),r=Xt(),i=z(BM()),a=D(()=>t.context()?.printerFloorId),s=D(()=>i.value?ry(i.value.name):""),o=()=>!i.value.name||i.value.name.length<Cc.minFloorNameLength?(r.openErrorMessage({title:"Invalid floor name"}),!1):Number.isInteger(Number(i.value.order))?!0:(r.openErrorMessage({title:"Floor order must be an integer"}),!1),l=async()=>{if(!o())return;const d=xs.convertCreateFormToFloor(i.value);if(a.value)await n.updateFloorName({floorId:a.value,name:d.name}),await n.updateFloorOrder({floorId:a.value,order:d.order}),r.openInfoMessage({title:`Floor ${d.name} updated`});else{await n.createFloor(d),r.openInfoMessage({title:`Floor ${d.name} created`}),i.value.name=cm();const p=Math.max(...n.floors.map(h=>h.order))+1;i.value.order=p.toString()}u()},u=()=>{t.closeDialog()},c=()=>{if(a.value){const d=n.floor(a.value);i.value=xs.convertPrinterFloorToCreateForm(d)}else if(n.floors?.length){const d=Math.max(...n.floors.map(p=>p.order))+1;i.value.order=d.toString()}};return(d,p)=>{const h=ia;return N(),Z(h,{id:ne(t).dialogId,"max-width":"700px",onEscape:u,onOpened:c},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,null,{default:m(()=>[S("span",Tue,[f(Sn,{color:"primary",size:"56"},{default:m(()=>[k(V(s.value),1)]),_:1}),k(" "+V(a.value?"Edit Floor":"New Floor"),1)])]),_:1}),f(qe,null,{default:m(()=>[f(ct,null,{default:m(()=>[f(Ae,{cols:12},{default:m(()=>[f(ts,null,{default:m(()=>[f(ct,null,{default:m(()=>[i.value?(N(),Z(Ae,{key:0,cols:"12",md:"6"},{default:m(()=>[f(yt,{modelValue:i.value.name,"onUpdate:modelValue":p[0]||(p[0]=g=>i.value.name=g),autofocus:"",label:"Floor name*",required:""},null,8,["modelValue"]),f(yt,{modelValue:i.value.order,"onUpdate:modelValue":p[1]||(p[1]=g=>i.value.order=g),label:"Floor order",required:"",type:"number"},null,8,["modelValue"])]),_:1})):se("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),f(Wt,null,{default:m(()=>[p[3]||(p[3]=S("em",{class:"text-red"}," * indicates required field ",-1)),f(ht),f(te,{variant:"text",onClick:u},{default:m(()=>[...p[2]||(p[2]=[k("Close",-1)])]),_:1}),f(te,{color:"blue-darken-1",variant:"text",onClick:l},{default:m(()=>[k(V(a.value?"Update":"Create"),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["id"])}}});class ou extends di{static async listCameraStreams(){return await this.get("/api/v2/camera-stream/")}static async createCameraStream(t){return await this.post("/api/v2/camera-stream/",t)}static async getCameraStream(t){return await this.get(`/api/v2/camera-stream/${t}`)}static async updateCameraStream(t,n){return await this.put(`/api/v2/camera-stream/${t}`,n)}static async deleteCameraStream(t){return await this.delete(`/api/v2/camera-stream/${t}`)}}const Pue=Ee({...tt(),...Ore()},"VForm"),dy=$e()({name:"VForm",props:Pue(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const i=Nre(e),a=z();function s(l){l.preventDefault(),i.reset()}function o(l){const u=l,c=i.validate();u.then=c.then.bind(c),u.catch=c.catch.bind(c),u.finally=c.finally.bind(c),r("submit",u),u.defaultPrevented||c.then(d=>{let{valid:p}=d;p&&a.value?.submit()}),u.preventDefault()}return Ue(()=>S("form",{ref:a,class:Oe(["v-form",e.class]),style:We(e.style),novalidate:!0,onReset:s,onSubmit:o},[n.default?.(i)])),fi(i,a)}}),Aue={class:"text-h6 font-weight-bold"},Rue={class:"text-caption text-medium-emphasis"},Oue={class:"text-subtitle-2 font-weight-bold mb-3"},Nue={class:"d-flex gap-4 mb-2"},Due={class:"d-flex align-center justify-space-between pa-3 preview-header"},Lue={class:"d-flex align-center"},Fue={class:"camera-preview-container"},$ue=["src"],Mue={key:0,class:"camera-preview-loading"},Vue={key:1,class:"camera-preview-error"},Bue=je({__name:"AddOrUpdateCameraStreamDialog",setup(e){const t=oy(),n=zt(Ht.AddOrUpdateCameraDialog),r=vn(),i=z(),a=z(!1),s=z(!1),o=z(!0),l=z(0),u=z({name:"",streamURL:"",printerId:void 0,aspectRatio:"16:9",rotationClockwise:0,flipHorizontal:!1,flipVertical:!1}),c=[{title:"16:9 (Widescreen)",value:"16:9"},{title:"4:3 (Standard)",value:"4:3"},{title:"1:1 (Square)",value:"1:1"},{title:"21:9 (Ultrawide)",value:"21:9"}],d=[{title:"None (0°)",value:0},{title:"90° Clockwise",value:90},{title:"180° Clockwise",value:180},{title:"270° Clockwise",value:270}],p={required:T=>!!T||"This field is required",url:T=>{if(!T)return!0;try{return new URL(T),!0}catch{return"Please enter a valid URL"}}},h=D(()=>r.printers.map(T=>({title:T.name,value:T.id}))),g=D(()=>u.value.name?.trim()&&u.value.streamURL?.trim()),v=D(()=>{const T=[];u.value.rotationClockwise&&T.push(`rotate(${u.value.rotationClockwise}deg)`);const x=u.value.flipHorizontal?-1:1,R=u.value.flipVertical?-1:1;return(x!==1||R!==1)&&T.push(`scale(${x}, ${R})`),{transform:T.join(" ")}}),y=()=>n.context()?.addOrUpdate==="update",b=D(()=>y());function E(){s.value=!0,o.value=!1}function w(){s.value=!1,o.value=!1}function C(){s.value=!1,o.value=!0,l.value++}Ne(()=>n.context(),T=>{if(s.value=!1,o.value=!0,l.value=0,!T||T?.addOrUpdate!=="update"){u.value.streamURL="",u.value.name="",u.value.printerId=void 0,u.value.aspectRatio="16:9",u.value.rotationClockwise=0,u.value.flipHorizontal=!1,u.value.flipVertical=!1;return}const x=t.getQueryData(["cameraStream"])?.find(R=>R.cameraStream.id===T.cameraId);x&&(u.value.name=x.cameraStream.name||"",u.value.streamURL=x.cameraStream.streamURL||"",u.value.printerId=x.cameraStream.printerId,u.value.aspectRatio=x.cameraStream.aspectRatio||"16:9",u.value.rotationClockwise=x.cameraStream.rotationClockwise??0,u.value.flipHorizontal=x.cameraStream.flipHorizontal??!1,u.value.flipVertical=x.cameraStream.flipVertical??!1)});function P(){n.closeDialog()}async function _(){if(i.value?.validate()){a.value=!0;try{await ou.createCameraStream({streamURL:u.value.streamURL,name:u.value.name,printerId:u.value.printerId,aspectRatio:u.value.aspectRatio,rotationClockwise:u.value.rotationClockwise,flipHorizontal:u.value.flipHorizontal,flipVertical:u.value.flipVertical}),await t.refetchQueries({queryKey:["cameraStream"]}),n.closeDialog()}catch(T){console.error("Failed to create camera:",T)}finally{a.value=!1}}}async function A(){if(!i.value?.validate())return;const T=n.context()?.cameraId;if(!T){console.error("No camera ID provided");return}a.value=!0;try{await ou.updateCameraStream(T,{streamURL:u.value.streamURL,name:u.value.name,printerId:u.value.printerId,aspectRatio:u.value.aspectRatio,rotationClockwise:u.value.rotationClockwise,flipHorizontal:u.value.flipHorizontal,flipVertical:u.value.flipVertical}),await t.refetchQueries({queryKey:["cameraStream"]}),n.closeDialog()}catch(x){console.error("Failed to update camera:",x)}finally{a.value=!1}}function I(){n.closeDialog()}return(T,x)=>{const R=ia;return N(),Z(R,{id:ne(n).dialogId,"max-width":"700px",onEscape:x[8]||(x[8]=O=>P())},{default:m(()=>[f(Ve,{rounded:"lg",color:"surface"},{default:m(()=>[f(st,{class:"d-flex align-center pa-5"},{default:m(()=>[f(Sn,{color:"primary",size:"48",class:"mr-3"},{default:m(()=>[f(j,{size:"28"},{default:m(()=>[...x[9]||(x[9]=[k("videocam",-1)])]),_:1})]),_:1}),S("div",null,[S("div",Aue,V(b.value?"Update Camera Stream":"Add New Camera Stream"),1),S("div",Rue,V(b.value?"Modify camera stream settings":"Connect a new camera to your printer farm"),1)])]),_:1}),f(qe,{class:"pa-6"},{default:m(()=>[f(dy,{ref_key:"formRef",ref:i},{default:m(()=>[f(yt,{modelValue:u.value.name,"onUpdate:modelValue":x[0]||(x[0]=O=>u.value.name=O),label:"Camera Name",placeholder:"e.g., Front Camera, Ender 3 Cam","prepend-inner-icon":"label",variant:"outlined",density:"comfortable",rules:[p.required],class:"mb-2",hint:"Give your camera a descriptive name","persistent-hint":""},null,8,["modelValue","rules"]),f(yt,{modelValue:u.value.streamURL,"onUpdate:modelValue":x[1]||(x[1]=O=>u.value.streamURL=O),label:"Stream URL (MJPEG)",placeholder:"http://192.168.1.100:8080/webcam/?action=stream","prepend-inner-icon":"link",variant:"outlined",density:"comfortable",rules:[p.required,p.url],class:"mb-2",hint:"MJPEG stream URL from OctoPrint, Klipper, or IP camera","persistent-hint":""},null,8,["modelValue","rules"]),f(Sr,{modelValue:u.value.printerId,"onUpdate:modelValue":x[2]||(x[2]=O=>u.value.printerId=O),items:h.value,label:"Associate with Printer (Optional)",placeholder:"Select a printer","prepend-inner-icon":"print",variant:"outlined",density:"comfortable",clearable:"",class:"mb-2",hint:"Link this camera to a specific printer","persistent-hint":""},null,8,["modelValue","items"]),f(et,{class:"my-4"}),S("div",Oue,[f(j,{start:"",size:"small"},{default:m(()=>[...x[10]||(x[10]=[k("tune",-1)])]),_:1}),x[11]||(x[11]=k(" Camera Settings ",-1))]),f(Sr,{modelValue:u.value.aspectRatio,"onUpdate:modelValue":x[3]||(x[3]=O=>u.value.aspectRatio=O),items:c,label:"Aspect Ratio","prepend-inner-icon":"aspect_ratio",variant:"outlined",density:"comfortable",class:"mb-2",hint:"Camera aspect ratio","persistent-hint":""},null,8,["modelValue"]),f(Sr,{modelValue:u.value.rotationClockwise,"onUpdate:modelValue":x[4]||(x[4]=O=>u.value.rotationClockwise=O),items:d,label:"Rotation (Clockwise)","prepend-inner-icon":"rotate_right",variant:"outlined",density:"comfortable",class:"mb-2",hint:"Rotate the camera feed","persistent-hint":""},null,8,["modelValue"]),S("div",Nue,[f(Nn,{modelValue:u.value.flipHorizontal,"onUpdate:modelValue":x[5]||(x[5]=O=>u.value.flipHorizontal=O),label:"Flip Horizontal",density:"compact","hide-details":""},null,8,["modelValue"]),f(Nn,{modelValue:u.value.flipVertical,"onUpdate:modelValue":x[6]||(x[6]=O=>u.value.flipVertical=O),label:"Flip Vertical",density:"compact","hide-details":""},null,8,["modelValue"])]),u.value.streamURL?(N(),Z(Ve,{key:0,variant:"outlined",class:"mt-4",rounded:"lg",color:"surface"},{default:m(()=>[S("div",Due,[S("div",Lue,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...x[12]||(x[12]=[k("preview",-1)])]),_:1}),x[13]||(x[13]=S("span",{class:"text-subtitle-2 font-weight-medium"},"Stream Preview",-1))]),f(te,{size:"small",variant:"text",color:"primary",onClick:C},{default:m(()=>[f(j,{start:""},{default:m(()=>[...x[14]||(x[14]=[k("refresh",-1)])]),_:1}),x[15]||(x[15]=k(" Reconnect ",-1))]),_:1})]),f(qe,{class:"pa-0"},{default:m(()=>[S("div",Fue,[dn((N(),le("img",{alt:"Camera stream",key:l.value,src:u.value.streamURL,class:"camera-preview",style:We(v.value),onError:E,onLoad:w},null,44,$ue)),[[ci,!s.value&&!o.value]]),o.value&&!s.value?(N(),le("div",Mue,[f(Bn,{indeterminate:"",color:"primary",size:"64"}),x[16]||(x[16]=S("div",{class:"text-body-2 mt-4"},"Connecting to camera...",-1))])):se("",!0),s.value?(N(),le("div",Vue,[f(j,{size:"64",color:"error"},{default:m(()=>[...x[17]||(x[17]=[k("error_outline",-1)])]),_:1}),x[18]||(x[18]=S("div",{class:"text-body-2 font-weight-bold mt-2"},"Unable to load camera stream",-1)),x[19]||(x[19]=S("div",{class:"text-caption text-medium-emphasis mt-1"},"Check the URL and try again",-1))])):se("",!0)])]),_:1})]),_:1})):se("",!0),f(kt,{type:"info",variant:"tonal",density:"compact",class:"mt-4"},{default:m(()=>[...x[20]||(x[20]=[S("div",{class:"text-caption"},[S("strong",null,"Tip:"),k(" Most 3D printer cameras use MJPEG streams. Common URLs: "),S("ul",{class:"mt-2 ml-4"},[S("li",null,[S("code",null,"http://[ip]:8080/webcam/?action=stream"),k(" (OctoPrint/Klipper)")]),S("li",null,[S("code",null,"http://[ip]/mjpeg_stream"),k(" (IP cameras)")])])],-1)])]),_:1})]),_:1},512)]),_:1}),f(et),f(Wt,{class:"pa-4"},{default:m(()=>[f(ht),f(te,{variant:"text",onClick:I},{default:m(()=>[...x[21]||(x[21]=[k(" Cancel ",-1)])]),_:1}),f(te,{color:"primary",variant:"elevated",loading:a.value,disabled:!g.value,onClick:x[7]||(x[7]=O=>b.value?A():_())},{default:m(()=>[f(j,{start:""},{default:m(()=>[k(V(b.value?"save":"add"),1)]),_:1}),k(" "+V(b.value?"Update Camera":"Add Camera"),1)]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1},8,["id"])}}}),Uue=En(Bue,[["__scopeId","data-v-fa49833a"]]);const uc=typeof document<"u";function UM(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function jue(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&UM(e.default)}const gn=Object.assign;function Kb(e,t){const n={};for(const r in t){const i=t[r];n[r]=Qs(i)?i.map(e):e(i)}return n}const _f=()=>{},Qs=Array.isArray;function RP(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const jM=/#/g,zue=/&/g,Hue=/\//g,Wue=/=/g,Gue=/\?/g,zM=/\+/g,que=/%5B/g,Kue=/%5D/g,HM=/%5E/g,Yue=/%60/g,WM=/%7B/g,Xue=/%7C/g,GM=/%7D/g,Jue=/%20/g;function Jx(e){return e==null?"":encodeURI(""+e).replace(Xue,"|").replace(que,"[").replace(Kue,"]")}function Que(e){return Jx(e).replace(WM,"{").replace(GM,"}").replace(HM,"^")}function ZS(e){return Jx(e).replace(zM,"%2B").replace(Jue,"+").replace(jM,"%23").replace(zue,"%26").replace(Yue,"`").replace(WM,"{").replace(GM,"}").replace(HM,"^")}function Zue(e){return ZS(e).replace(Wue,"%3D")}function ece(e){return Jx(e).replace(jM,"%23").replace(Gue,"%3F")}function tce(e){return ece(e).replace(Hue,"%2F")}function vp(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const nce=/\/$/,rce=e=>e.replace(nce,"");function Yb(e,t,n="/"){let r,i={},a="",s="";const o=t.indexOf("#");let l=t.indexOf("?");return l=o>=0&&l>o?-1:l,l>=0&&(r=t.slice(0,l),a=t.slice(l,o>0?o:t.length),i=e(a.slice(1))),o>=0&&(r=r||t.slice(0,o),s=t.slice(o,t.length)),r=oce(r??t,n),{fullPath:r+a+s,path:r,query:i,hash:vp(s)}}function ice(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function OP(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function sce(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&nd(t.matched[r],n.matched[i])&&qM(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function nd(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qM(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ace(e[n],t[n]))return!1;return!0}function ace(e,t){return Qs(e)?NP(e,t):Qs(t)?NP(t,e):e?.valueOf()===t?.valueOf()}function NP(e,t){return Qs(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function oce(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let a=n.length-1,s,o;for(s=0;s<r.length;s++)if(o=r[s],o!==".")if(o==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const _o={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ew=(function(e){return e.pop="pop",e.push="push",e})({}),Xb=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function lce(e){if(!e)if(uc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),rce(e)}const uce=/^[^#]+#/;function cce(e,t){return e.replace(uce,"#")+t}function dce(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const fy=()=>({left:window.scrollX,top:window.scrollY});function fce(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=dce(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function DP(e,t){return(history.state?history.state.position-t:-1)+e}const tw=new Map;function pce(e,t){tw.set(e,t)}function mce(e){const t=tw.get(e);return tw.delete(e),t}function hce(e){return typeof e=="string"||e&&typeof e=="object"}function KM(e){return typeof e=="string"||typeof e=="symbol"}let Xn=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const YM=Symbol("");Xn.MATCHER_NOT_FOUND+"",Xn.NAVIGATION_GUARD_REDIRECT+"",Xn.NAVIGATION_ABORTED+"",Xn.NAVIGATION_CANCELLED+"",Xn.NAVIGATION_DUPLICATED+"";function rd(e,t){return gn(new Error,{type:e,[YM]:!0},t)}function Na(e,t){return e instanceof Error&&YM in e&&(t==null||!!(e.type&t))}const gce=["params","query","hash"];function vce(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of gce)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function yce(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(zM," "),a=i.indexOf("="),s=vp(a<0?i:i.slice(0,a)),o=a<0?null:vp(i.slice(a+1));if(s in t){let l=t[s];Qs(l)||(l=t[s]=[l]),l.push(o)}else t[s]=o}return t}function LP(e){let t="";for(let n in e){const r=e[n];if(n=Zue(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Qs(r)?r.map(i=>i&&ZS(i)):[r&&ZS(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function bce(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Qs(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const Sce=Symbol(""),FP=Symbol(""),py=Symbol(""),Qx=Symbol(""),nw=Symbol("");function qd(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Fo(e,t,n,r,i,a=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,l)=>{const u=p=>{p===!1?l(rd(Xn.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?l(p):hce(p)?l(rd(Xn.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(s&&r.enterCallbacks[i]===s&&typeof p=="function"&&s.push(p),o())},c=a(()=>e.call(r&&r.instances[i],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(p=>l(p))})}function Jb(e,t,n,r,i=a=>a()){const a=[];for(const s of e)for(const o in s.components){let l=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(UM(l)){const u=(l.__vccOpts||l)[t];u&&a.push(Fo(u,n,r,s,o,i))}else{let u=l();a.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${o}" at "${s.path}"`);const d=jue(c)?c.default:c;s.mods[o]=c,s.components[o]=d;const p=(d.__vccOpts||d)[t];return p&&Fo(p,n,r,s,o,i)()}))}}return a}function wce(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){const o=t.matched[s];o&&(e.matched.find(u=>nd(u,o))?r.push(o):n.push(o));const l=e.matched[s];l&&(t.matched.find(u=>nd(u,l))||i.push(l))}return[n,r,i]}let Ece=()=>location.protocol+"//"+location.host;function XM(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,o=i.slice(s);return o[0]!=="/"&&(o="/"+o),OP(o,"")}return OP(n,e)+r+i}function xce(e,t,n,r){let i=[],a=[],s=null;const o=({state:p})=>{const h=XM(e,location),g=n.value,v=t.value;let y=0;if(p){if(n.value=h,t.value=p,s&&s===g){s=null;return}y=v?p.position-v.position:0}else r(h);i.forEach(b=>{b(n.value,g,{delta:y,type:ew.pop,direction:y?y>0?Xb.forward:Xb.back:Xb.unknown})})};function l(){s=n.value}function u(p){i.push(p);const h=()=>{const g=i.indexOf(p);g>-1&&i.splice(g,1)};return a.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(gn({},p.state,{scroll:fy()}),"")}}function d(){for(const p of a)p();a=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",o),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:d}}function $P(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?fy():null}}function kce(e){const{history:t,location:n}=window,r={value:XM(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Ece()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),i.value=u}catch(h){console.error(h),n[c?"replace":"assign"](p)}}function s(l,u){a(l,gn({},t.state,$P(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),r.value=l}function o(l,u){const c=gn({},i.value,t.state,{forward:l,scroll:fy()});a(c.current,c,!0),a(l,gn({},$P(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:i,push:o,replace:s}}function Cce(e){e=lce(e);const t=kce(e),n=xce(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const i=gn({location:"",base:e,go:r,createHref:cce.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let $l=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var yr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(yr||{});const _ce={type:$l.Static,value:""},Tce=/[a-zA-Z0-9_]/;function Ice(e){if(!e)return[[]];if(e==="/")return[[_ce]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=yr.Static,r=n;const i=[];let a;function s(){a&&i.push(a),a=[]}let o=0,l,u="",c="";function d(){u&&(n===yr.Static?a.push({type:$l.Static,value:u}):n===yr.Param||n===yr.ParamRegExp||n===yr.ParamRegExpEnd?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:$l.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;o<e.length;){if(l=e[o++],l==="\\"&&n!==yr.ParamRegExp){r=n,n=yr.EscapeNext;continue}switch(n){case yr.Static:l==="/"?(u&&d(),s()):l===":"?(d(),n=yr.Param):p();break;case yr.EscapeNext:p(),n=r;break;case yr.Param:l==="("?n=yr.ParamRegExp:Tce.test(l)?p():(d(),n=yr.Static,l!=="*"&&l!=="?"&&l!=="+"&&o--);break;case yr.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=yr.ParamRegExpEnd:c+=l;break;case yr.ParamRegExpEnd:d(),n=yr.Static,l!=="*"&&l!=="?"&&l!=="+"&&o--,c="";break;default:t("Unknown state");break}}return n===yr.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),d(),s(),i}const MP="[^/]+?",Pce={sensitive:!1,strict:!1,start:!0,end:!0};var vi=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(vi||{});const Ace=/[.+*?^${}()[\]/\\]/g;function Rce(e,t){const n=gn({},Pce,t),r=[];let i=n.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[vi.Root];n.strict&&!u.length&&(i+="/");for(let d=0;d<u.length;d++){const p=u[d];let h=vi.Segment+(n.sensitive?vi.BonusCaseSensitive:0);if(p.type===$l.Static)d||(i+="/"),i+=p.value.replace(Ace,"\\$&"),h+=vi.Static;else if(p.type===$l.Param){const{value:g,repeatable:v,optional:y,regexp:b}=p;a.push({name:g,repeatable:v,optional:y});const E=b||MP;if(E!==MP){h+=vi.BonusCustomRegExp;try{`${E}`}catch(C){throw new Error(`Invalid custom RegExp for param "${g}" (${E}): `+C.message)}}let w=v?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;d||(w=y&&u.length<2?`(?:/${w})`:"/"+w),y&&(w+="?"),i+=w,h+=vi.Dynamic,y&&(h+=vi.BonusOptional),v&&(h+=vi.BonusRepeatable),E===".*"&&(h+=vi.BonusWildcard)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=vi.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function o(u){const c=u.match(s),d={};if(!c)return null;for(let p=1;p<c.length;p++){const h=c[p]||"",g=a[p-1];d[g.name]=h&&g.repeatable?h.split("/"):h}return d}function l(u){let c="",d=!1;for(const p of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const h of p)if(h.type===$l.Static)c+=h.value;else if(h.type===$l.Param){const{value:g,repeatable:v,optional:y}=h,b=g in u?u[g]:"";if(Qs(b)&&!v)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const E=Qs(b)?b.join("/"):b;if(!E)if(y)p.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${g}"`);c+=E}}return c||"/"}return{re:s,score:r,keys:a,parse:o,stringify:l}}function Oce(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===vi.Static+vi.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===vi.Static+vi.Segment?1:-1:0}function JM(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const a=Oce(r[n],i[n]);if(a)return a;n++}if(Math.abs(i.length-r.length)===1){if(VP(r))return 1;if(VP(i))return-1}return i.length-r.length}function VP(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Nce={strict:!1,end:!0,sensitive:!1};function Dce(e,t,n){const r=Rce(Ice(e.path),n),i=gn(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Lce(e,t){const n=[],r=new Map;t=RP(Nce,t);function i(d){return r.get(d)}function a(d,p,h){const g=!h,v=UP(d);v.aliasOf=h&&h.record;const y=RP(t,d),b=[v];if("alias"in d){const C=typeof d.alias=="string"?[d.alias]:d.alias;for(const P of C)b.push(UP(gn({},v,{components:h?h.record.components:v.components,path:P,aliasOf:h?h.record:v})))}let E,w;for(const C of b){const{path:P}=C;if(p&&P[0]!=="/"){const _=p.record.path,A=_[_.length-1]==="/"?"":"/";C.path=p.record.path+(P&&A+P)}if(E=Dce(C,p,y),h?h.alias.push(E):(w=w||E,w!==E&&w.alias.push(E),g&&d.name&&!jP(E)&&s(d.name)),QM(E)&&l(E),v.children){const _=v.children;for(let A=0;A<_.length;A++)a(_[A],E,h&&h.children[A])}h=h||E}return w?()=>{s(w)}:_f}function s(d){if(KM(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function o(){return n}function l(d){const p=Mce(d,n);n.splice(p,0,d),d.record.name&&!jP(d)&&r.set(d.record.name,d)}function u(d,p){let h,g={},v,y;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw rd(Xn.MATCHER_NOT_FOUND,{location:d});y=h.record.name,g=gn(BP(p.params,h.keys.filter(w=>!w.optional).concat(h.parent?h.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),d.params&&BP(d.params,h.keys.map(w=>w.name))),v=h.stringify(g)}else if(d.path!=null)v=d.path,h=n.find(w=>w.re.test(v)),h&&(g=h.parse(v),y=h.record.name);else{if(h=p.name?r.get(p.name):n.find(w=>w.re.test(p.path)),!h)throw rd(Xn.MATCHER_NOT_FOUND,{location:d,currentLocation:p});y=h.record.name,g=gn({},p.params,d.params),v=h.stringify(g)}const b=[];let E=h;for(;E;)b.unshift(E.record),E=E.parent;return{name:y,path:v,params:g,matched:b,meta:$ce(b)}}e.forEach(d=>a(d));function c(){n.length=0,r.clear()}return{addRoute:a,resolve:u,removeRoute:s,clearRoutes:c,getRoutes:o,getRecordMatcher:i}}function BP(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function UP(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Fce(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Fce(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function jP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $ce(e){return e.reduce((t,n)=>gn(t,n.meta),{})}function Mce(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;JM(e,t[a])<0?r=a:n=a+1}const i=Vce(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Vce(e){let t=e;for(;t=t.parent;)if(QM(t)&&JM(e,t)===0)return t}function QM({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function zP(e){const t=mt(py),n=mt(Qx),r=D(()=>{const l=ne(e.to);return t.resolve(l)}),i=D(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const p=d.findIndex(nd.bind(null,c));if(p>-1)return p;const h=HP(l[u-2]);return u>1&&HP(c)===h&&d[d.length-1].path!==h?d.findIndex(nd.bind(null,l[u-2])):p}),a=D(()=>i.value>-1&&Hce(n.params,r.value.params)),s=D(()=>i.value>-1&&i.value===n.matched.length-1&&qM(n.params,r.value.params));function o(l={}){if(zce(l)){const u=t[ne(e.replace)?"replace":"push"](ne(e.to)).catch(_f);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:D(()=>r.value.href),isActive:a,isExactActive:s,navigate:o}}function Bce(e){return e.length===1?e[0]:e}const Uce=je({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:zP,setup(e,{slots:t}){const n=Dn(zP(e)),{options:r}=mt(py),i=D(()=>({[WP(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[WP(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&Bce(t.default(n));return e.custom?a:Ds("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}}),jce=Uce;function zce(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Hce(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Qs(i)||i.length!==r.length||r.some((a,s)=>a.valueOf()!==i[s].valueOf()))return!1}return!0}function HP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const WP=(e,t,n)=>e??t??n,Wce=je({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=mt(nw),i=D(()=>e.route||r.value),a=mt(FP,0),s=D(()=>{let u=ne(a);const{matched:c}=i.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),o=D(()=>i.value.matched[s.value]);bn(FP,D(()=>s.value+1)),bn(Sce,o),bn(nw,i);const l=z();return Ne(()=>[l.value,o.value,e.name],([u,c,d],[p,h,g])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!nd(c,h)||!p)&&(c.enterCallbacks[d]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,d=o.value,p=d&&d.components[c];if(!p)return GP(n.default,{Component:p,route:u});const h=d.props[c],g=h?h===!0?u.params:typeof h=="function"?h(u):h:null,y=Ds(p,gn({},g,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return GP(n.default,{Component:y,route:u})||y}}});function GP(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Gce=Wce;function qce(e){const t=Lce(e.routes,e),n=e.parseQuery||yce,r=e.stringifyQuery||LP,i=e.history,a=qd(),s=qd(),o=qd(),l=Fe(_o);let u=_o;uc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Kb.bind(null,Q=>""+Q),d=Kb.bind(null,tce),p=Kb.bind(null,vp);function h(Q,re){let X,ie;return KM(Q)?(X=t.getRecordMatcher(Q),ie=re):ie=Q,t.addRoute(ie,X)}function g(Q){const re=t.getRecordMatcher(Q);re&&t.removeRoute(re)}function v(){return t.getRoutes().map(Q=>Q.record)}function y(Q){return!!t.getRecordMatcher(Q)}function b(Q,re){if(re=gn({},re||l.value),typeof Q=="string"){const J=Yb(n,Q,re.path),de=t.resolve({path:J.path},re),oe=i.createHref(J.fullPath);return gn(J,de,{params:p(de.params),hash:vp(J.hash),redirectedFrom:void 0,href:oe})}let X;if(Q.path!=null)X=gn({},Q,{path:Yb(n,Q.path,re.path).path});else{const J=gn({},Q.params);for(const de in J)J[de]==null&&delete J[de];X=gn({},Q,{params:d(J)}),re.params=d(re.params)}const ie=t.resolve(X,re),we=Q.hash||"";ie.params=c(p(ie.params));const Pe=ice(r,gn({},Q,{hash:Que(we),path:ie.path})),G=i.createHref(Pe);return gn({fullPath:Pe,hash:we,query:r===LP?bce(Q.query):Q.query||{}},ie,{redirectedFrom:void 0,href:G})}function E(Q){return typeof Q=="string"?Yb(n,Q,l.value.path):gn({},Q)}function w(Q,re){if(u!==Q)return rd(Xn.NAVIGATION_CANCELLED,{from:re,to:Q})}function C(Q){return A(Q)}function P(Q){return C(gn(E(Q),{replace:!0}))}function _(Q,re){const X=Q.matched[Q.matched.length-1];if(X&&X.redirect){const{redirect:ie}=X;let we=typeof ie=="function"?ie(Q,re):ie;return typeof we=="string"&&(we=we.includes("?")||we.includes("#")?we=E(we):{path:we},we.params={}),gn({query:Q.query,hash:Q.hash,params:we.path!=null?{}:Q.params},we)}}function A(Q,re){const X=u=b(Q),ie=l.value,we=Q.state,Pe=Q.force,G=Q.replace===!0,J=_(X,ie);if(J)return A(gn(E(J),{state:typeof J=="object"?gn({},we,J.state):we,force:Pe,replace:G}),re||X);const de=X;de.redirectedFrom=re;let oe;return!Pe&&sce(r,ie,X)&&(oe=rd(Xn.NAVIGATION_DUPLICATED,{to:de,from:ie}),U(ie,ie,!0,!1)),(oe?Promise.resolve(oe):x(de,ie)).catch(be=>Na(be)?Na(be,Xn.NAVIGATION_GUARD_REDIRECT)?be:q(be):$(be,de,ie)).then(be=>{if(be){if(Na(be,Xn.NAVIGATION_GUARD_REDIRECT))return A(gn({replace:G},E(be.to),{state:typeof be.to=="object"?gn({},we,be.to.state):we,force:Pe}),re||de)}else be=O(de,ie,!0,G,we);return R(de,ie,be),be})}function I(Q,re){const X=w(Q,re);return X?Promise.reject(X):Promise.resolve()}function T(Q){const re=fe.values().next().value;return re&&typeof re.runWithContext=="function"?re.runWithContext(Q):Q()}function x(Q,re){let X;const[ie,we,Pe]=wce(Q,re);X=Jb(ie.reverse(),"beforeRouteLeave",Q,re);for(const J of ie)J.leaveGuards.forEach(de=>{X.push(Fo(de,Q,re))});const G=I.bind(null,Q,re);return X.push(G),Re(X).then(()=>{X=[];for(const J of a.list())X.push(Fo(J,Q,re));return X.push(G),Re(X)}).then(()=>{X=Jb(we,"beforeRouteUpdate",Q,re);for(const J of we)J.updateGuards.forEach(de=>{X.push(Fo(de,Q,re))});return X.push(G),Re(X)}).then(()=>{X=[];for(const J of Pe)if(J.beforeEnter)if(Qs(J.beforeEnter))for(const de of J.beforeEnter)X.push(Fo(de,Q,re));else X.push(Fo(J.beforeEnter,Q,re));return X.push(G),Re(X)}).then(()=>(Q.matched.forEach(J=>J.enterCallbacks={}),X=Jb(Pe,"beforeRouteEnter",Q,re,T),X.push(G),Re(X))).then(()=>{X=[];for(const J of s.list())X.push(Fo(J,Q,re));return X.push(G),Re(X)}).catch(J=>Na(J,Xn.NAVIGATION_CANCELLED)?J:Promise.reject(J))}function R(Q,re,X){o.list().forEach(ie=>T(()=>ie(Q,re,X)))}function O(Q,re,X,ie,we){const Pe=w(Q,re);if(Pe)return Pe;const G=re===_o,J=uc?history.state:{};X&&(ie||G?i.replace(Q.fullPath,gn({scroll:G&&J&&J.scroll},we)):i.push(Q.fullPath,we)),l.value=Q,U(Q,re,X,G),q()}let L;function F(){L||(L=i.listen((Q,re,X)=>{if(!he.listening)return;const ie=b(Q),we=_(ie,he.currentRoute.value);if(we){A(gn(we,{replace:!0,force:!0}),ie).catch(_f);return}u=ie;const Pe=l.value;uc&&pce(DP(Pe.fullPath,X.delta),fy()),x(ie,Pe).catch(G=>Na(G,Xn.NAVIGATION_ABORTED|Xn.NAVIGATION_CANCELLED)?G:Na(G,Xn.NAVIGATION_GUARD_REDIRECT)?(A(gn(E(G.to),{force:!0}),ie).then(J=>{Na(J,Xn.NAVIGATION_ABORTED|Xn.NAVIGATION_DUPLICATED)&&!X.delta&&X.type===ew.pop&&i.go(-1,!1)}).catch(_f),Promise.reject()):(X.delta&&i.go(-X.delta,!1),$(G,ie,Pe))).then(G=>{G=G||O(ie,Pe,!1),G&&(X.delta&&!Na(G,Xn.NAVIGATION_CANCELLED)?i.go(-X.delta,!1):X.type===ew.pop&&Na(G,Xn.NAVIGATION_ABORTED|Xn.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),R(ie,Pe,G)}).catch(_f)}))}let W=qd(),H=qd(),B;function $(Q,re,X){q(Q);const ie=H.list();return ie.length?ie.forEach(we=>we(Q,re,X)):console.error(Q),Promise.reject(Q)}function Y(){return B&&l.value!==_o?Promise.resolve():new Promise((Q,re)=>{W.add([Q,re])})}function q(Q){return B||(B=!Q,F(),W.list().forEach(([re,X])=>Q?X(Q):re()),W.reset()),Q}function U(Q,re,X,ie){const{scrollBehavior:we}=e;if(!uc||!we)return Promise.resolve();const Pe=!X&&mce(DP(Q.fullPath,0))||(ie||!X)&&history.state&&history.state.scroll||null;return Ct().then(()=>we(Q,re,Pe)).then(G=>G&&fce(G)).catch(G=>$(G,Q,re))}const M=Q=>i.go(Q);let K;const fe=new Set,he={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:v,resolve:b,options:e,push:C,replace:P,go:M,back:()=>M(-1),forward:()=>M(1),beforeEach:a.add,beforeResolve:s.add,afterEach:o.add,onError:H.add,isReady:Y,install(Q){Q.component("RouterLink",jce),Q.component("RouterView",Gce),Q.config.globalProperties.$router=he,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>ne(l)}),uc&&!K&&l.value===_o&&(K=!0,C(i.location).catch(ie=>{}));const re={};for(const ie in _o)Object.defineProperty(re,ie,{get:()=>l.value[ie],enumerable:!0});Q.provide(py,he),Q.provide(Qx,Op(re)),Q.provide(nw,l);const X=Q.unmount;fe.add(Q),Q.unmount=function(){fe.delete(Q),fe.size<1&&(u=_o,L&&L(),L=null,l.value=_o,K=!1,B=!1),X()}}};function Re(Q){return Q.reduce((re,X)=>re.then(()=>T(X)),Promise.resolve())}return he}function ns(){return mt(py)}function Rd(e){return mt(Qx)}const Zx=Qi("TestPrinter",{state:()=>({currentCorrelationToken:void 0,testPrinter:void 0,testPrinterEvents:[]}),getters:{getEvents(){return()=>(this.testPrinterEvents?.filter(e=>e.correlationToken===this.currentCorrelationToken)||[]).filter(e=>(e.event!=="API_STATE_UPDATED"||e.payload!=="unset")&&(e.event!=="WS_STATE_UPDATED"||e.payload!=="unopened")).map(e=>({event:e.event.startsWith("WS_")?"Socket":"API",payload:e.payload?.toString()?.replace("noResponse","unreachable").replace("authFail","authentication failure"),failure:["authFail","noResponse","aborted","globalKey","error","connection error","closed","connection closed"].includes(e.payload?.toString())}))}},actions:{clearEvents(){this.testPrinterEvents=[]},async createTestPrinter(e){return this.testPrinter=e,await xn.testConnection(e)},saveEvent(e){this.testPrinterEvents?.push(e)}}}),Kce={class:"d-flex align-center justify-space-between mb-3"},Yce={key:0,class:"text-center py-6 text-medium-emphasis"},Xce={key:1,class:"checks-list"},Jce={class:"flex-grow-1"},Qce={class:"text-body-2 font-weight-medium"},Zce={key:0,class:"text-caption text-medium-emphasis mt-1"},ede={class:"d-flex justify-center"},tde=je({__name:"PrinterChecksPanel",props:{cols:{}},setup(e){const t=e,n=D(()=>t.cols||4),r=Zx(),i=()=>r.getEvents().map(s=>({label:s.event,text:s.payload,color:s.failure?"error":"success",failure:s.failure})),a=D(()=>i().some(s=>s.failure));return(s,o)=>(N(),Z(Ae,{cols:n.value},{default:m(()=>[f(Ve,{class:"pa-4",variant:"tonal",color:"surface-variant"},{default:m(()=>[S("div",Kce,[o[0]||(o[0]=S("h4",{class:"text-subtitle-1 font-weight-bold"},"Connection Tests",-1)),f(He,{color:a.value?"error":"success",size:"small",variant:"flat"},{default:m(()=>[k(V(i().length),1)]),_:1},8,["color"])]),f(et,{class:"mb-4"}),i().length===0?(N(),le("div",Yce,[f(j,{icon:"mdi:mdi-information-outline",size:"32",class:"mb-2 opacity-50"}),o[1]||(o[1]=S("div",{class:"text-caption"},"No test results yet",-1))])):(N(),le("div",Xce,[(N(!0),le(De,null,Vt(i(),(l,u)=>(N(),le("div",{key:u,class:"check-item d-flex align-start mb-3"},[f(j,{color:l.color,icon:l.failure?"mdi:mdi-close-circle":"mdi:mdi-check-circle",size:"18",class:"mt-1 mr-3"},null,8,["color","icon"]),S("div",Jce,[S("div",Qce,V(l.label),1),l.text?(N(),le("div",Zce,V(l.text),1)):se("",!0)])]))),128))])),i().length>0?(N(),Z(et,{key:2,class:"mt-4 mb-3"})):se("",!0),S("div",ede,[cu(s.$slots,"default")])]),_:3})]),_:3},8,["cols"]))}}),nde={class:"d-flex align-center"},rde={class:"text-h6"},ide={class:"text-h5"},sde={class:"d-flex align-center mb-4"},ade={class:"d-flex align-center"},ode={class:"d-flex flex-column"},lde={class:"mt-2"},ude={class:"d-flex align-center"},cde=je({__name:"AddOrUpdatePrinterDialog",setup(e){const t=ns(),n=zt(Ht.AddOrUpdatePrinterDialog),r=vn(),i=Zx(),a=uy(),s=Xi(),o=Xt(),l=z(null),u=z(!1),c=z(!1),d=z(!1),p=z(""),h=z(Ah()),g=z(!1),v=z(!1),y=z(null),b=D(()=>{if(a.hasFeature("multiplePrinterServices")){const U=a.getFeature("multiplePrinterServices"),M=U?.subFeatures?.types?.includes("klipper"),K=U?.subFeatures?.types?.includes("prusaLink"),fe=U?.subFeatures?.types?.includes("bambu");return[{name:us(Ha),type:Ha,logo:RS,height:"60px"},...M?[{name:us(ru),type:ru,logo:N$,height:"60px"}]:[],...K?[{name:us(Uo),type:Uo,logo:D$,height:"20px"}]:[],...fe?[{name:us(bs),type:bs,logo:O$,height:"60px"}]:[]]}return[{name:"OctoPrint",type:Ha,logo:RS,height:"75px"}]}),E=D(()=>{if(!a.hasFeature("multiplePrinterServices"))return!1;const U=a.getFeature("multiplePrinterServices"),M=U?.subFeatures?.types?.includes("klipper"),K=U?.subFeatures?.types?.includes("prusaLink"),fe=U?.subFeatures?.types?.includes("bambu");return M&&K&&fe}),w=D(()=>n.context()?.id);async function C(){if(await a.loadFeatures(),v.value=!1,y.value=null,!w.value){h.value=Ah();return}const U=r.printer(w.value);U&&(h.value=xn.convertPrinterToCreateForm(U))}const P=D(()=>!!w.value&&!v.value),_=D(()=>{if(v.value&&y.value)return`Duplicating from "${y.value}"`;if(P.value)return"Updating Printer";const U=n.context();if(U?.floorId){const M=s.floors.find(K=>K.id===U.floorId);if(M)return`Add Printer to ${M.name}`}return"New Printer"}),A=D(()=>(c.value?"Force ":"")+(P.value?"Save":"Create")),I=D(()=>h?ry(h.value?.name):"?"),T=D(()=>({required:!0,max:Cc.maxPrinterNameLength})),x=D(()=>({required:!0,length:Cc.apiKeyLength,alpha_num:!0}));function R(){h.value=Ah()}function O(){d.value=!0}async function L(){if(!F())return;i.clearEvents(),O();const{correlationToken:U}=await i.createTestPrinter(h.value);i.currentCorrelationToken=U}const F=()=>{const U=h.value;return U?OS(U.printerType)?U.printerURL?.length&&U.name?.length:NS(U.printerType)||DS(U.printerType)?U.printerURL?.length&&U.name?.length&&U.username?.length&&U.password?.length:U.printerURL?.length&&U.name?.length&&U.apiKey?.length:!1};async function W(U){const M=await r.createPrinter(U,c.value);return o.openInfoMessage({title:`Printer ${U.name} created`}),M}async function H(U){const M=U.id,K=await r.updatePrinter({printerId:M,updatedPrinter:U},c.value);return o.openInfoMessage({title:`Printer ${U.name} updated`}),K}async function B(){if(!F())return;l.value=null,u.value=!0,h.value.printerURL?.length&&!h.value.printerURL?.startsWith("http://")&&!h.value.printerURL?.startsWith("https://")&&(h.value.printerURL="https://"+h.value.printerURL);const U=h.value;(OS(U.printerType)||NS(U.printerType)||DS(U.printerType))&&(U.apiKey="");try{if(P.value)await H(U);else{const M=await W(U);try{const K=n.context();K?.floorId&&typeof K.floorX=="number"&&typeof K.floorY=="number"&&K.floorX>=0&&K.floorY>=0&&await Xi().addPrinterToFloor({floorId:K.floorId,printerId:M.id,y:K.floorY,x:K.floorX})}catch(K){console.warn("Attempt to add printer to floor failed",K),Ks(K)}}q()}catch(M){M instanceof aN?(l.value=M.response?.data?.error||M.message,o.error("Validation Failed",M.message)):(l.value=M.message,o.error("Error",M.message))}finally{u.value=!1,c.value=!1}}function $(){F()&&(g.value=!0,l.value=null,c.value=!1,y.value=h.value.name||null,h.value.name="",delete h.value.id,v.value=!0,g.value=!1)}function Y(){q(),t.push("/settings/experimental")}function q(){n.closeDialog(),c.value=!1,l.value=null,d.value=!1,g.value=!1,v.value=!1,y.value=null,i.clearEvents(),R(),p.value=""}return(U,M)=>{const K=ia;return N(),Z(K,{id:ne(n).dialogId,"max-width":d.value?"900px":"800px",onEscape:M[13]||(M[13]=fe=>q()),onOpened:M[14]||(M[14]=fe=>C())},{default:m(()=>[f(Ve,{class:"pa-6"},{default:m(()=>[f(st,{class:"pb-4"},{default:m(()=>[S("div",nde,[f(Sn,{color:"grey-darken-2",size:"48",class:"mr-4"},{default:m(()=>[S("span",rde,V(I.value),1)]),_:1}),S("span",ide,V(_.value),1)])]),_:1}),f(et,{class:"mb-6"}),f(qe,null,{default:m(()=>[S("div",sde,[M[16]||(M[16]=S("h4",{class:"text-h6"},"Printer type",-1)),E.value?se("",!0):(N(),Z(te,{key:0,variant:"text",size:"small",color:"primary",class:"ml-2",onClick:Y},{default:m(()=>[...M[15]||(M[15]=[k(" Enable more types ",-1)])]),_:1}))]),f(Sr,{modelValue:h.value.printerType,"onUpdate:modelValue":M[0]||(M[0]=fe=>h.value.printerType=fe),items:b.value,"item-title":"name","item-value":"type",label:"Select printer type*",class:"mb-4",required:""},{selection:m(({item:fe})=>[S("div",ade,[f(ai,{src:fe.raw.logo,height:fe.raw.height,"max-width":"30px",width:"30px",class:"mr-3"},null,8,["src","height"]),S("span",null,V(fe.raw.name),1)])]),item:m(({item:fe,props:he})=>[f(ot,Ap(Mp(he)),{prepend:m(()=>[f(ai,{src:fe.raw.logo,height:fe.raw.height,"max-width":"30px",width:"30px",class:"mr-3"},null,8,["src","height"])]),_:2},1040)]),_:1},8,["modelValue","items"]),f(ct,null,{default:m(()=>[f(Ae,{cols:d.value?8:12},{default:m(()=>[h.value?(N(),Z(ct,{key:0},{default:m(()=>[f(Ae,null,{default:m(()=>[f(yt,{modelValue:h.value.name,"onUpdate:modelValue":M[1]||(M[1]=fe=>h.value.name=fe),counter:T.value.max,autofocus:"",class:"ma-1",label:"Printer name*",required:""},null,8,["modelValue","counter"])]),_:1}),f(Ae,null,{default:m(()=>[f(Nn,{modelValue:h.value.enabled,"onUpdate:modelValue":M[2]||(M[2]=fe=>h.value.enabled=fe),hint:"Disabling makes the printer passive",label:"Enabled*","persistent-hint":"",required:""},null,8,["modelValue"])]),_:1})]),_:1})):se("",!0),f(yt,{modelValue:h.value.printerURL,"onUpdate:modelValue":M[3]||(M[3]=fe=>h.value.printerURL=fe),class:"ma-1",hint:"F.e. 'octopi.local' or 'https://my.printer.com'",label:"Printer URL*"},null,8,["modelValue"]),h.value.printerType===ne(Ha)?(N(),Z(yt,{key:1,modelValue:h.value.apiKey,"onUpdate:modelValue":M[4]||(M[4]=fe=>h.value.apiKey=fe),counter:x.value.length,class:"ma-1",hint:"User or Application Key with 32 or 43 characters (Global API key will fail)",label:h.value.printerType===ne(Ha)||h.value.printerType===ne(ru)?"API Key (required)*":"API Key (unsupported)","persistent-hint":"",required:""},null,8,["modelValue","counter","label"])):se("",!0),h.value.printerType===ne(Uo)||h.value.printerType===ne(bs)?(N(),Z(yt,{key:2,modelValue:h.value.username,"onUpdate:modelValue":M[5]||(M[5]=fe=>h.value.username=fe),class:"ma-1",hint:h.value.printerType===ne(bs)?"Serial number from printer":"Username (often 'maker')",label:h.value.printerType===ne(bs)?"Serial":"Username","persistent-hint":"",required:""},null,8,["modelValue","hint","label"])):se("",!0),h.value.printerType===ne(Uo)||h.value.printerType===ne(bs)?(N(),Z(yt,{key:3,modelValue:h.value.password,"onUpdate:modelValue":M[6]||(M[6]=fe=>h.value.password=fe),class:"ma-1",hint:h.value.printerType===ne(bs)?"Access code from printer settings":"Password (visit your printer settings)",label:h.value.printerType===ne(bs)?"AccessCode":"Password","persistent-hint":"",required:""},null,8,["modelValue","hint","label"])):se("",!0)]),_:1},8,["cols"]),d.value?(N(),Z(tde,{key:0,cols:4},{default:m(()=>[f(te,{onClick:M[7]||(M[7]=fe=>d.value=!1)},{default:m(()=>[...M[17]||(M[17]=[k(" Hide checks",-1)])]),_:1})]),_:1})):se("",!0)]),_:1}),l.value?.length?(N(),Z(kt,{key:0,class:"my-3",type:"error",variant:"tonal"},{default:m(()=>[S("div",ode,[M[18]||(M[18]=S("strong",null,"Connection Error",-1)),S("span",lde,V(l.value),1),f(Nn,{modelValue:c.value,"onUpdate:modelValue":M[8]||(M[8]=fe=>c.value=fe),color:"warning",label:"Force save",class:"mt-2"},null,8,["modelValue"])])]),_:1})):se("",!0),u.value?(N(),Z(kt,{key:1,class:"my-3",type:"info",variant:"tonal"},{default:m(()=>[S("div",ude,[f(Bn,{indeterminate:"",size:"20",class:"mr-3"}),M[19]||(M[19]=S("span",null,"Validating printer connection...",-1))])]),_:1})):se("",!0),g.value?(N(),Z(kt,{key:2,class:"my-3",color:"info"},{default:m(()=>[M[20]||(M[20]=k(" Duplicating printer... ",-1)),f(Bn,{class:"ml-2",indeterminate:"",size:"20"})]),_:1})):se("",!0)]),_:1}),f(Wt,null,{default:m(()=>[M[24]||(M[24]=S("em",{class:"text-red"}," * indicates required field ",-1)),f(ht),f(te,{variant:"text",onClick:M[9]||(M[9]=fe=>q())},{default:m(()=>[...M[21]||(M[21]=[k(" Close ",-1)])]),_:1}),P.value?(N(),Z(te,{key:0,disabled:!F()||g.value,loading:g.value,color:"gray",variant:"text",onClick:M[10]||(M[10]=fe=>$())},{default:m(()=>[...M[22]||(M[22]=[k(" Duplicate ",-1)])]),_:1},8,["disabled","loading"])):se("",!0),f(te,{disabled:!F(),color:"warning",variant:"text",onClick:M[11]||(M[11]=fe=>L())},{default:m(()=>[...M[23]||(M[23]=[k(" Test connection ",-1)])]),_:1},8,["disabled"]),f(te,{disabled:!F(),color:"blue-darken-1",variant:"text",onClick:M[12]||(M[12]=fe=>B())},{default:m(()=>[k(V(A.value),1)]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["id","max-width"])}}}),dde=Ee({text:String,...tt(),...Jt()},"VToolbarTitle"),xu=$e()({name:"VToolbarTitle",props:dde(),setup(e,t){let{slots:n}=t;return Ue(()=>{const r=!!(n.default||n.text||e.text);return f(e.tag,{class:Oe(["v-toolbar-title",e.class]),style:We(e.style)},{default:()=>[r&&S("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,n.default?.()])]})}),{}}}),fde=[null,"prominent","default","comfortable","compact"],ZM=Ee({absolute:Boolean,collapse:Boolean,collapsePosition:{type:String,default:"start"},color:String,density:{type:String,default:"default",validator:e=>fde.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...Ls(),...tt(),...Pi(),...gr(),...Jt({tag:"header"}),...wn()},"VToolbar"),Kg=$e()({name:"VToolbar",props:ZM(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:i}=Un(()=>e.color),{borderClasses:a}=ta(e),{elevationClasses:s}=es(e),{roundedClasses:o}=kr(e),{themeClasses:l}=On(e),{rtlClasses:u}=Or(),c=Fe(e.extended===null?!!n.extension?.():e.extended),d=D(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),p=D(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Er({VBtn:{variant:"text"}}),Ue(()=>{const h=!!(e.title||n.title),g=!!(n.image||e.image),v=n.extension?.();return c.value=e.extended===null?!!v:e.extended,f(e.tag,{class:Oe(["v-toolbar",`v-toolbar--collapse-${e.collapsePosition}`,{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,a.value,s.value,o.value,l.value,u.value,e.class]),style:We([i.value,e.style])},{default:()=>[g&&S("div",{key:"image",class:"v-toolbar__image"},[n.image?f(nn,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):f(ai,{key:"image-img",cover:!0,src:e.image},null)]),f(nn,{defaults:{VTabs:{height:ze(d.value)}}},{default:()=>[S("div",{class:"v-toolbar__content",style:{height:ze(d.value)}},[n.prepend&&S("div",{class:"v-toolbar__prepend"},[n.prepend?.()]),h&&f(xu,{key:"title",text:e.title},{text:n.title}),n.default?.(),n.append&&S("div",{class:"v-toolbar__append"},[n.append?.()])])]}),f(nn,{defaults:{VTabs:{height:ze(p.value)}}},{default:()=>[f(dx,null,{default:()=>[c.value&&S("div",{class:"v-toolbar__extension",style:{height:ze(p.value)}},[v])]})]})]})}),{contentHeight:d,extensionHeight:p}}}),pde=je({__name:"HelpOverlay",setup(e){const t=z(!1);return(n,r)=>(N(),Z(Fr,{modelValue:ne(t),"onUpdate:modelValue":r[0]||(r[0]=i=>Tt(t)?t.value=i:null),fullscreen:"",eager:"",transition:"dialog-bottom-transition",width:"100%"},{activator:m(({props:i})=>[f(sn,{location:"top"},{activator:m(({props:a})=>[f(te,ve({variant:"tonal",class:"ml-2 mr-6"},{...i,...a}),{default:m(()=>[f(j,{icon:"mdi:mdi-help",class:"mr-2"}),r[1]||(r[1]=k(" help ",-1))]),_:1},16)]),default:m(()=>[r[2]||(r[2]=S("span",null," Load the online documentation webpage ",-1))]),_:2},1024)]),default:m(({isActive:i})=>[f(Ve,{height:"100%",width:"100%"},{default:m(()=>[f(Kg,{color:"primary"},{default:m(()=>[f(j,{class:"ml-5"},{default:m(()=>[...r[3]||(r[3]=[k("help",-1)])]),_:1}),r[6]||(r[6]=S("h2",{class:"ml-10"},"FDM Monster Documentation",-1)),f(ht),r[7]||(r[7]=S("span",{class:"mr-10"}," docs.fdm-monster.net ",-1)),f(te,{variant:"flat",onClick:a=>i.value=!1},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...r[4]||(r[4]=[k("close",-1)])]),_:1}),r[5]||(r[5]=k(" Close help ",-1))]),_:1},8,["onClick"])]),_:2},1024),r[8]||(r[8]=S("iframe",{height:"100%",src:"https://docs.fdm-monster.net",style:{"background-color":"black","border-width":"0"},width:"100%"},null,-1))]),_:2},1024)]),_:1},8,["modelValue"]))}}),mde=je({__name:"TooltipButton",props:{tooltip:{},color:{default:"white"},variant:{default:"elevated"},icon:{default:""},iconClass:{default:""},text:{default:""},location:{default:"bottom"}},emits:["click"],setup(e){const t=e;return(n,r)=>(N(),Z(sn,{location:t.location},{activator:m(({props:i})=>[f(te,ve(i,{variant:e.variant,class:"ml-2",color:e.color,onClick:r[0]||(r[0]=a=>n.$emit("click"))}),{default:m(()=>[cu(n.$slots,"default",{},()=>[t.icon?.length?(N(),Z(j,{key:0,class:Oe("mr-2 "+t.iconClass)},{default:m(()=>[k(V(t.icon),1)]),_:1},8,["class"])):se("",!0),k(" "+V(t.text),1)])]),_:3},16,["variant","color"])]),default:m(()=>[S("span",null,V(t.tooltip),1)]),_:3},8,["location"]))}}),hde=je({__name:"PrinterStatusMenu",setup(e){const t=z(!1),n=ns(),r=vn(),i=jr(),a=D(()=>r.printers.length),s=D(()=>i.printingCount),o=D(()=>i.operationalNotPrintingCount),l=D(()=>r.maintenanceCount),u=D(()=>r.disconnectedCount),c=D(()=>r.disabledCount);function d(){t.value=!1,n.push("/")}return(p,h)=>(N(),Z(li,{modelValue:t.value,"onUpdate:modelValue":h[0]||(h[0]=g=>t.value=g),"close-on-content-click":!1,location:"bottom","min-width":"300"},{activator:m(({props:g})=>[f(te,ve({variant:"tonal"},g,{class:"mr-2"}),{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...h[1]||(h[1]=[k("dashboard",-1)])]),_:1}),k(" "+V(a.value)+" Printers ",1)]),_:1},16)]),default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...h[2]||(h[2]=[k("dashboard",-1)])]),_:1}),h[3]||(h[3]=k(" Printer Status ",-1))]),_:1}),f(qe,{class:"pa-0"},{default:m(()=>[f(hr,{density:"compact"},{default:m(()=>[f(ot,null,{prepend:m(()=>[f(j,{color:"success"},{default:m(()=>[...h[4]||(h[4]=[k("print",-1)])]),_:1})]),append:m(()=>[f(He,{size:"small",color:"success"},{default:m(()=>[k(V(s.value),1)]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...h[5]||(h[5]=[k("Printing",-1)])]),_:1})]),_:1}),f(ot,null,{prepend:m(()=>[f(j,{color:"info"},{default:m(()=>[...h[6]||(h[6]=[k("ac_unit",-1)])]),_:1})]),append:m(()=>[f(He,{size:"small",color:"info"},{default:m(()=>[k(V(o.value),1)]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...h[7]||(h[7]=[k("Operational",-1)])]),_:1})]),_:1}),f(ot,null,{prepend:m(()=>[f(j,{color:"warning"},{default:m(()=>[...h[8]||(h[8]=[k("handyman",-1)])]),_:1})]),append:m(()=>[f(He,{size:"small",color:"warning"},{default:m(()=>[k(V(l.value),1)]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...h[9]||(h[9]=[k("Maintenance",-1)])]),_:1})]),_:1}),f(ot,null,{prepend:m(()=>[f(j,{color:"error"},{default:m(()=>[...h[10]||(h[10]=[k("usb_off",-1)])]),_:1})]),append:m(()=>[f(He,{size:"small",color:"error"},{default:m(()=>[k(V(u.value),1)]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...h[11]||(h[11]=[k("Disconnected",-1)])]),_:1})]),_:1}),f(ot,null,{prepend:m(()=>[f(j,null,{default:m(()=>[...h[12]||(h[12]=[k("print_disabled",-1)])]),_:1})]),append:m(()=>[f(He,{size:"small"},{default:m(()=>[k(V(c.value),1)]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...h[13]||(h[13]=[k("Disabled",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),f(Wt,null,{default:m(()=>[f(te,{variant:"tonal",color:"primary",block:"","prepend-icon":"dashboard",onClick:d},{default:m(()=>[...h[14]||(h[14]=[k(" View Dashboard ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});class Ml extends di{static async getGlobalQueue(t=1,n=50){const r=`${Se.printQueueRoute}?page=${t}&pageSize=${n}`;return this.get(r)}static async getPrinterQueue(t){const n=`${Se.printQueueRoute}/${t}`;return this.get(n)}static async addToQueue(t,n,r){const i=`${Se.printQueueRoute}/${t}/add/${n}`;return this.post(i,{position:r})}static async removeFromQueue(t,n){const r=`${Se.printQueueRoute}/${t}/${n}`;return this.delete(r)}static async reorderQueue(t,n){const r=`${Se.printQueueRoute}/${t}/reorder`;return this.put(r,{jobIds:n})}static async clearQueue(t){const n=`${Se.printQueueRoute}/${t}/clear`;return this.delete(n)}static async getNextInQueue(t){const n=`${Se.printQueueRoute}/${t}/next`;return this.get(n)}static async processQueue(t){const n=`${Se.printQueueRoute}/${t}/process`;return this.post(n)}static async submitToPrinter(t,n){const r=`${Se.printQueueRoute}/${n}/submit/${t}`;return this.post(r)}}const gde="global-queue";function vde(e){const t=new Map;e.items.forEach(r=>{t.has(r.fileName)||t.set(r.fileName,{jobId:r.jobId,fileName:r.fileName,skuCount:1,totalQueued:0,printers:[]});const i=t.get(r.fileName);i.totalQueued++,i.printers.push({printerId:r.printerId,printerName:r.printerName,queuePosition:r.queuePosition})});const n=Array.from(t.values());return{totalJobs:e.totalCount,totalPlates:n.length,plates:n}}const eV=(e=!0)=>Ad({queryKey:[gde],queryFn:async()=>{const t=await Ml.getGlobalQueue();return vde(t)},enabled:e,staleTime:1e3*30,refetchInterval:1e3*60}),yde=Ee({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:rt,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...tt(),...pl({location:"top end"}),...gr(),...Jt(),...wn(),...Id({transition:"scale-rotate-transition"}),...Hr()},"VBadge"),Od=$e()({name:"VBadge",inheritAttrs:!1,props:yde(),setup(e,t){const{backgroundColorClasses:n,backgroundColorStyles:r}=Un(()=>e.color),{roundedClasses:i}=kr(e),{t:a}=Rr(),{textColorClasses:s,textColorStyles:o}=Ci(()=>e.textColor),{themeClasses:l}=ox(),{locationStyles:u}=Lu(e,!0,d=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(d)?Number(e.offsetY??0):["left","right"].includes(d)?Number(e.offsetX??0):0)),{dimensionStyles:c}=Wr(e);return Ue(()=>{const d=Number(e.content),p=!e.max||isNaN(d)?e.content:d<=Number(e.max)?d:`${e.max}+`,[h,g]=cS(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return f(e.tag,ve({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},g,{style:e.style}),{default:()=>[S("div",{class:"v-badge__wrapper"},[t.slots.default?.(),f(pa,{transition:e.transition},{default:()=>[dn(S("span",ve({class:["v-badge__badge",l.value,n.value,i.value,s.value],style:[r.value,o.value,c.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":a(e.label,d),"aria-live":"polite",role:"status"},h),[e.dot?void 0:t.slots.badge?t.slots.badge?.():e.icon?f(j,{icon:e.icon},null):p]),[[ci,e.modelValue]])]})])]})}),{}}}),bde={class:"text-center"},Sde={class:"text-body-2 text-medium-emphasis"},wde={class:"text-caption"},Ede={class:"d-flex align-center ga-2"},xde=je({__name:"QueueMenu",setup(e){const t=z(!1),n=Xt(),{data:r,isLoading:i,error:a,refetch:s}=eV(),o=D(()=>r.value?.totalJobs||0),l=D(()=>r.value?.totalPlates||0),u=D(()=>r.value?.totalJobs||0),c=D(()=>r.value?.plates||[]),d=D(()=>a.value?.message||null),p=async(h,g)=>{try{await Ml.submitToPrinter(h,g),n.info("Job submitted to printer"),await s()}catch(v){console.error("Failed to submit job:",v),n.error("Failed to submit job to printer")}};return(h,g)=>(N(),le("div",bde,[f(li,{modelValue:t.value,"onUpdate:modelValue":g[1]||(g[1]=v=>t.value=v),"close-on-content-click":!1,location:"bottom",width:"600"},{activator:m(({props:v})=>[f(te,ve({color:o.value?"primary":"",variant:"tonal",class:"mr-2"},v),{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...g[2]||(g[2]=[k("queue",-1)])]),_:1}),k(" Queue ("+V(o.value)+") ",1),o.value>0?(N(),Z(Od,{key:0,content:o.value,color:"primary",inline:"",class:"ml-2"},null,8,["content"])):se("",!0)]),_:1},16,["color"])]),default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...g[3]||(g[3]=[k("queue",-1)])]),_:1}),g[4]||(g[4]=k(" Print Queue - Global Plate View ",-1)),f(ht),f(He,{size:"small",color:"primary"},{default:m(()=>[k(V(l.value)+" Plates",1)]),_:1})]),_:1}),f(et),ne(i)?(N(),Z(qe,{key:0,class:"text-center py-8"},{default:m(()=>[f(Bn,{indeterminate:"",color:"primary"}),g[5]||(g[5]=S("p",{class:"text-body-2 mt-4"},"Loading queue...",-1))]),_:1})):d.value?(N(),Z(qe,{key:1,class:"text-center py-8"},{default:m(()=>[f(j,{size:"64",color:"error",class:"mb-4"},{default:m(()=>[...g[6]||(g[6]=[k("error",-1)])]),_:1}),g[7]||(g[7]=S("h3",{class:"text-h6 mb-2"},"Failed to Load Queue",-1)),S("p",Sde,V(d.value),1)]),_:1})):o.value===0?(N(),Z(qe,{key:2,class:"text-center py-8"},{default:m(()=>[f(j,{size:"64",color:"surface-variant",class:"mb-4"},{default:m(()=>[...g[8]||(g[8]=[k("inbox",-1)])]),_:1}),g[9]||(g[9]=S("h3",{class:"text-h6 mb-2"},"Queue is Empty",-1)),g[10]||(g[10]=S("p",{class:"text-body-2 text-medium-emphasis"}," No jobs are currently queued for printing. ",-1))]),_:1})):(N(),Z(hr,{key:3,class:"queue-list",style:{"max-height":"400px","overflow-y":"auto"}},{default:m(()=>[(N(!0),le(De,null,Vt(c.value,v=>(N(),Z(ot,{key:v.jobId,lines:"two"},{prepend:m(()=>[f(Sn,{color:"primary",size:"48"},{default:m(()=>[S("strong",null,V(v.skuCount),1)]),_:2},1024)]),append:m(()=>[S("div",Ede,[f(He,{size:"small",color:"info"},{default:m(()=>[k(V(v.totalQueued),1)]),_:2},1024),v.printers.length>0?(N(),Z(li,{key:0},{activator:m(({props:y})=>[f(te,ve({ref_for:!0},y,{size:"small",icon:"",variant:"tonal",color:"success"}),{default:m(()=>[f(j,null,{default:m(()=>[...g[12]||(g[12]=[k("play_arrow",-1)])]),_:1})]),_:1},16)]),default:m(()=>[f(hr,{density:"compact","min-width":"200"},{default:m(()=>[f(yo,null,{default:m(()=>[...g[13]||(g[13]=[k("Submit to Printer",-1)])]),_:1}),(N(!0),le(De,null,Vt(v.printers,y=>(N(),Z(ot,{key:y.printerId,onClick:b=>p(v.jobId,y.printerId)},{prepend:m(()=>[f(j,{size:"small"},{default:m(()=>[...g[14]||(g[14]=[k("print",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[k(V(y.printerName),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),_:2},1024)):se("",!0)])]),default:m(()=>[f(Rt,null,{default:m(()=>[k(V(v.fileName),1)]),_:2},1024),f(Mu,null,{default:m(()=>[k(" SKU Count: "+V(v.skuCount)+" | Queued: "+V(v.totalQueued)+"x ",1),g[11]||(g[11]=S("br",null,null,-1)),S("span",wde," Printers: "+V(v.printers.map(y=>y.printerName).join(", ")),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})),o.value>0?(N(),Z(et,{key:4})):se("",!0),f(Wt,null,{default:m(()=>[f(He,{size:"small",variant:"text"},{default:m(()=>[f(j,{size:"small",class:"mr-1"},{default:m(()=>[...g[15]||(g[15]=[k("inventory",-1)])]),_:1}),k(" "+V(u.value)+" total jobs ",1)]),_:1}),f(ht),f(te,{variant:"text",onClick:g[0]||(g[0]=v=>t.value=!1)},{default:m(()=>[...g[16]||(g[16]=[k(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]))}}),kde=En(xde,[["__scopeId","data-v-446e39c9"]]),ek=Qi("GridStore",{state:()=>({selectedTagFilter:[],selectedPrinterTypeFilter:[],sortMode:"position"}),actions:{setTagFilter(e){this.selectedTagFilter=e},setPrinterTypeFilter(e){this.selectedPrinterTypeFilter=e},setSortMode(e){this.sortMode=e},toggleSortMode(){this.sortMode=this.sortMode==="position"?"name":"position"}}});function hl(){const e=ek(),t=z([]),n=z([]),r=D({get:()=>e.selectedTagFilter,set:h=>e.setTagFilter(h)}),i=D({get:()=>e.selectedPrinterTypeFilter,set:h=>e.setPrinterTypeFilter(h)}),a=async()=>{n.value=await Vo.getTagsWithPrinters(),t.value=n.value.map(h=>({id:h.id,name:h.name,color:h.color}))},s=D(()=>{const h=new Map;for(const g of n.value)for(const v of g.printers)h.has(v.printerId)||h.set(v.printerId,new Set),h.get(v.printerId).add(g.id);return h}),o=h=>{if(r.value.length===0)return!0;const g=s.value.get(h);return g?r.value.every(v=>g.has(v)):!1},l=h=>i.value.length===0?!0:i.value.includes(h.printerType),u=h=>o(h.id)&&l(h);return{selectedTags:r,selectedPrinterTypes:i,tags:t,tagsWithPrinters:n,loadTags:a,matchesTagFilter:o,matchesPrinterTypeFilter:l,matchesPrinter:u,filterPrinters:h=>h.filter(u),filterPrinterMatrix:h=>{const g=r.value.length>0,v=i.value.length>0;return!g&&!v?h:h.map(y=>y.map(b=>{if(b)return u(b)?b:void 0}))},clearFilters:()=>{r.value=[],i.value=[]}}}const Bu=je({inheritAttrs:!1,__name:"PrinterTagFilter",props:{modelValue:{},tags:{},label:{default:"Filter by tags"},prependInnerIcon:{default:"label"},prependIcon:{},variant:{default:"outlined"},density:{default:"compact"},multiple:{type:Boolean,default:!0},chips:{type:Boolean,default:!0},closableChips:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},hideDetails:{type:Boolean,default:!0},hideWhenEmpty:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e){return(t,n)=>e.tags.length||!e.hideWhenEmpty?(N(),Z(Sr,ve({key:0},t.$attrs,{"model-value":e.modelValue,items:e.tags,"item-title":"name","item-value":"id",label:e.label,"prepend-inner-icon":e.prependInnerIcon,"prepend-icon":e.prependIcon,variant:e.variant,density:e.density,multiple:e.multiple,chips:e.chips,"closable-chips":e.closableChips,clearable:e.clearable,"hide-details":e.hideDetails,"onUpdate:modelValue":n[0]||(n[0]=r=>t.$emit("update:modelValue",r))}),{chip:m(({item:r,props:i})=>[f(He,ve(i,{color:r.raw.color}),{default:m(()=>[k(V(r.title),1)]),_:2},1040,["color"])]),item:m(({item:r,props:i})=>[f(ot,Ap(Mp(i)),{prepend:m(()=>[f(He,{color:r.raw.color,size:"x-small",variant:"flat",class:"mr-2"},{default:m(()=>[f(j,{size:"x-small"},{default:m(()=>[...n[1]||(n[1]=[k("label",-1)])]),_:1})]),_:1},8,["color"])]),_:2},1040)]),_:1},16,["model-value","items","label","prepend-inner-icon","prepend-icon","variant","density","multiple","chips","closable-chips","clearable","hide-details"])):se("",!0)}}),Uu=je({inheritAttrs:!1,__name:"PrinterTypeFilter",props:{modelValue:{},label:{default:"Filter by type"},prependInnerIcon:{default:"category"},prependIcon:{},variant:{default:"outlined"},density:{default:"compact"},multiple:{type:Boolean,default:!0},chips:{type:Boolean,default:!0},closableChips:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},hideDetails:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e){const t=_ne;return(n,r)=>(N(),Z(Sr,ve(n.$attrs,{"model-value":e.modelValue,items:ne(t),"item-title":"name","item-value":"value",label:e.label,"prepend-inner-icon":e.prependInnerIcon,"prepend-icon":e.prependIcon,variant:e.variant,density:e.density,multiple:e.multiple,chips:e.chips,"closable-chips":e.closableChips,clearable:e.clearable,"hide-details":e.hideDetails,"onUpdate:modelValue":r[0]||(r[0]=i=>n.$emit("update:modelValue",i))}),null,16,["model-value","items","label","prepend-inner-icon","prepend-icon","variant","density","multiple","chips","closable-chips","clearable","hide-details"]))}}),Cde={class:"text-center"},_de={class:"d-flex ga-2 mb-3"},Tde=je({__name:"PrintJobsMenu",setup(e){const t=jr(),n=z(""),r=z(!1),{selectedTags:i,selectedPrinterTypes:a,tags:s,loadTags:o,matchesTagFilter:l,matchesPrinterTypeFilter:u}=hl();Nt(async()=>{await o()});const c=D(()=>t.printersWithJob.filter(h=>{const v=h.job?.job?.file.name?.toLowerCase()||"",y=h.printer.printerURL?.toLowerCase()||"",b=h.printer.name?.toLowerCase()||"",E=`${v} ${y} ${b}`,w=!n.value||E.includes(n.value.toLowerCase()),C=l(h.printer.id),P=u(h.printer);return w&&C&&P})),d=D(()=>c.value.length||0);function p(h){return h?h?.toFixed(0):""}return Ne(r,()=>{n.value=""}),(h,g)=>(N(),le("div",Cde,[f(li,{modelValue:r.value,"onUpdate:modelValue":g[4]||(g[4]=v=>r.value=v),"close-on-content-click":!1,location:"bottom",width:"800"},{activator:m(({props:v})=>[f(te,ve({color:d.value?"success":"",variant:"tonal"},v),{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...g[5]||(g[5]=[k("work",-1)])]),_:1}),k(" Active Jobs ("+V(d.value)+") ",1),d.value>0?(N(),Z(Od,{key:0,content:d.value,color:"success",inline:"",class:"ml-2"},null,8,["content"])):se("",!0)]),_:1},16,["color"])]),default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...g[6]||(g[6]=[k("work",-1)])]),_:1}),g[7]||(g[7]=k(" Active Print Jobs ",-1)),f(ht),f(He,{size:"small",color:"success"},{default:m(()=>[k(V(d.value),1)]),_:1})]),_:1}),f(qe,{class:"pa-3"},{default:m(()=>[f(yt,{modelValue:n.value,"onUpdate:modelValue":g[0]||(g[0]=v=>n.value=v),clearable:"",label:"Search",placeholder:"Search by filename or printer name...","prepend-inner-icon":"search",variant:"outlined",density:"compact","hide-details":"",class:"mb-3"},null,8,["modelValue"]),S("div",_de,[f(Bu,{modelValue:ne(i),"onUpdate:modelValue":g[1]||(g[1]=v=>Tt(i)?i.value=v:null),tags:ne(s),label:"Filter by tags",style:{flex:"1"}},null,8,["modelValue","tags"]),f(Uu,{modelValue:ne(a),"onUpdate:modelValue":g[2]||(g[2]=v=>Tt(a)?a.value=v:null),label:"Filter by type",style:{flex:"1"}},null,8,["modelValue"])])]),_:1}),f(et),f(hr,{style:{"overflow-y":"auto","flex-shrink":"1"}},{default:m(()=>[d.value?se("",!0):(N(),Z(ot,{key:0},{default:m(()=>[...g[8]||(g[8]=[k(" No active prints ",-1)])]),_:1})),(N(!0),le(De,null,Vt(c.value,({printer:v,job:y})=>(N(),Z(ot,{key:v.id,lines:"two"},{prepend:m(()=>[f(Sn,{size:"70"},{default:m(()=>[f(Bn,{"model-value":y?.progress?.completion,width:5,color:"green",size:"50"},{default:m(()=>[k(V(p(y.progress?.completion)+"%"||""),1)]),_:2},1032,["model-value"])]),_:2},1024)]),default:m(()=>[f(Rt,null,{default:m(()=>[k(V(y.job?.file?.name),1)]),_:2},1024),f(Mu,null,{default:m(()=>[k(" Elapsed: "+V(Math.round(y?.progress.printTime??0/60))+" minutes ",1),g[9]||(g[9]=S("br",null,null,-1)),k(" Printer: "+V(v.name),1)]),_:2},1024)]),_:2},1024))),128))]),_:1}),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"tonal",onClick:g[3]||(g[3]=v=>r.value=!1)},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...g[10]||(g[10]=[k("close",-1)])]),_:1}),g[11]||(g[11]=k(" Close ",-1))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]))}}),tk=Qi("profile",{state:()=>({username:null,isDemoUser:null,userId:null}),actions:{async getProfile(){return await Es.getProfile().then(e=>{this.username=e.username,this.userId=e.id,this.isDemoUser=e.isDemoUser})}}}),pn={Home:"Home",Dashboard:"Dashboard",Login:"Login",Registration:"Registration",PrintersView:"PrintersView",Settings:"Settings",CameraGridView:"CameraGridView",PrintJobs:"Print Jobs",Files:"Files",About:"About",PermissionDenied:"PermissionDenied",NotFound:"NotFound",FirstTimeSetup:"FirstTimeSetup"};async function Ide(e,t){return e.push({name:t})}async function tV(e){if(e.currentRoute.value.path==="/login"){console.log("routeToLogin: already at login page");return}return Ide(e,pn.Login)}const Pde=Qi("tracked-uploads",()=>{const e=z([]),t=D(()=>e.value.filter(r=>!r.completed));function n(r){e.value.splice(0),e.value.push(...r)}return{current:e,setUploads:n,activeUploads:t}}),ka=Object.create(null);ka.open="0";ka.close="1";ka.ping="2";ka.pong="3";ka.message="4";ka.upgrade="5";ka.noop="6";const Rh=Object.create(null);Object.keys(ka).forEach(e=>{Rh[ka[e]]=e});const rw={type:"error",data:"parser error"},nV=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",rV=typeof ArrayBuffer=="function",iV=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,nk=({type:e,data:t},n,r)=>nV&&t instanceof Blob?n?r(t):qP(t,r):rV&&(t instanceof ArrayBuffer||iV(t))?n?r(t):qP(new Blob([t]),r):r(ka[e]+(t||"")),qP=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function KP(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Qb;function Ade(e,t){if(nV&&e.data instanceof Blob)return e.data.arrayBuffer().then(KP).then(t);if(rV&&(e.data instanceof ArrayBuffer||iV(e.data)))return t(KP(e.data));nk(e,!1,n=>{Qb||(Qb=new TextEncoder),t(Qb.encode(n))})}const YP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",af=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<YP.length;e++)af[YP.charCodeAt(e)]=e;const Rde=e=>{let t=e.length*.75,n=e.length,r,i=0,a,s,o,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)a=af[e.charCodeAt(r)],s=af[e.charCodeAt(r+1)],o=af[e.charCodeAt(r+2)],l=af[e.charCodeAt(r+3)],c[i++]=a<<2|s>>4,c[i++]=(s&15)<<4|o>>2,c[i++]=(o&3)<<6|l&63;return u},Ode=typeof ArrayBuffer=="function",rk=(e,t)=>{if(typeof e!="string")return{type:"message",data:sV(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Nde(e.substring(1),t)}:Rh[n]?e.length>1?{type:Rh[n],data:e.substring(1)}:{type:Rh[n]}:rw},Nde=(e,t)=>{if(Ode){const n=Rde(e);return sV(n,t)}else return{base64:!0,data:e}},sV=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,aV="",Dde=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,s)=>{nk(a,!1,o=>{r[s]=o,++i===n&&t(r.join(aV))})})},Lde=(e,t)=>{const n=e.split(aV),r=[];for(let i=0;i<n.length;i++){const a=rk(n[i],t);if(r.push(a),a.type==="error")break}return r};function Fde(){return new TransformStream({transform(e,t){Ade(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const a=new DataView(i.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{i=new Uint8Array(9);const a=new DataView(i.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Zb;function Zm(e){return e.reduce((t,n)=>t+n.length,0)}function eh(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function $de(e,t){Zb||(Zb=new TextDecoder);const n=[];let r=0,i=-1,a=!1;return new TransformStream({transform(s,o){for(n.push(s);;){if(r===0){if(Zm(n)<1)break;const l=eh(n,1);a=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Zm(n)<2)break;const l=eh(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(Zm(n)<8)break;const l=eh(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),c=u.getUint32(0);if(c>Math.pow(2,21)-1){o.enqueue(rw);break}i=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Zm(n)<i)break;const l=eh(n,i);o.enqueue(rk(a?l:Zb.decode(l),t)),r=0}if(i===0||i>e){o.enqueue(rw);break}}}})}const oV=4;function mr(e){if(e)return Mde(e)}function Mde(e){for(var t in mr.prototype)e[t]=mr.prototype[t];return e}mr.prototype.on=mr.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};mr.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};mr.prototype.off=mr.prototype.removeListener=mr.prototype.removeAllListeners=mr.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};mr.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};mr.prototype.emitReserved=mr.prototype.emit;mr.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};mr.prototype.hasListeners=function(e){return!!this.listeners(e).length};const my=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),ks=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Vde="arraybuffer";function lV(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Bde=ks.setTimeout,Ude=ks.clearTimeout;function hy(e,t){t.useNativeTimers?(e.setTimeoutFn=Bde.bind(ks),e.clearTimeoutFn=Ude.bind(ks)):(e.setTimeoutFn=ks.setTimeout.bind(ks),e.clearTimeoutFn=ks.clearTimeout.bind(ks))}const jde=1.33;function zde(e){return typeof e=="string"?Hde(e):Math.ceil((e.byteLength||e.size)*jde)}function Hde(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function uV(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Wde(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Gde(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class qde extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class ik extends mr{constructor(t){super(),this.writable=!1,hy(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new qde(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=rk(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=Wde(t);return n.length?"?"+n:""}}class Kde extends ik{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Lde(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Dde(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=uV()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let cV=!1;try{cV=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Yde=cV;function Xde(){}class Jde extends Kde{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let _c=class Oh extends mr{constructor(t,n,r){super(),this.createRequest=t,hy(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=lV(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Oh.requestsCount++,Oh.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Xde,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Oh.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};_c.requestsCount=0;_c.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",XP);else if(typeof addEventListener=="function"){const e="onpagehide"in ks?"pagehide":"unload";addEventListener(e,XP,!1)}}function XP(){for(let e in _c.requests)_c.requests.hasOwnProperty(e)&&_c.requests[e].abort()}const Qde=(function(){const e=dV({xdomain:!1});return e&&e.responseType!==null})();class Zde extends Jde{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=Qde&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new _c(dV,this.uri(),t)}}function dV(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Yde))return new XMLHttpRequest}catch{}if(!t)try{return new ks[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const fV=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class efe extends ik{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=fV?{}:lV(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;nk(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch{}i&&my(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=uV()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const e1=ks.WebSocket||ks.MozWebSocket;class tfe extends efe{createSocket(t,n,r){return fV?new e1(t,n,r):n?new e1(t,n):new e1(t)}doWrite(t,n){this.ws.send(n)}}class nfe extends ik{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=$de(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=Fde();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const a=()=>{r.read().then(({done:o,value:l})=>{o||(this.onPacket(l),a())}).catch(o=>{})};a();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&my(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const rfe={websocket:tfe,webtransport:nfe,polling:Zde},ife=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,sfe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function iw(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=ife.exec(e||""),a={},s=14;for(;s--;)a[sfe[s]]=i[s]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=afe(a,a.path),a.queryKey=ofe(a,a.query),a}function afe(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function ofe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}const sw=typeof addEventListener=="function"&&typeof removeEventListener=="function",Nh=[];sw&&addEventListener("offline",()=>{Nh.forEach(e=>e())},!1);class Ko extends mr{constructor(t,n){if(super(),this.binaryType=Vde,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=iw(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=iw(n.host).host);hy(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Gde(this.opts.query)),sw&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Nh.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=oV,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Ko.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Ko.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=zde(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,my(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Ko.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),sw&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Nh.indexOf(this._offlineEventListener);r!==-1&&Nh.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Ko.protocol=oV;class lfe extends Ko{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Ko.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Ko.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function a(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const p=new Error("probe error: "+d);p.transport=n.name,a(),this.emitReserved("upgradeError",p)};function o(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&a()}const c=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",o),this.off("close",l),this.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",o),this.once("close",l),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let ufe=class extends lfe{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>rfe[i]).filter(i=>!!i)),super(t,r)}};function cfe(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=iw(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const dfe=typeof ArrayBuffer=="function",ffe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,pV=Object.prototype.toString,pfe=typeof Blob=="function"||typeof Blob<"u"&&pV.call(Blob)==="[object BlobConstructor]",mfe=typeof File=="function"||typeof File<"u"&&pV.call(File)==="[object FileConstructor]";function sk(e){return dfe&&(e instanceof ArrayBuffer||ffe(e))||pfe&&e instanceof Blob||mfe&&e instanceof File}function Dh(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Dh(e[n]))return!0;return!1}if(sk(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Dh(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Dh(e[n]))return!0;return!1}function hfe(e){const t=[],n=e.data,r=e;return r.data=aw(n,t),r.attachments=t.length,{packet:r,buffers:t}}function aw(e,t){if(!e)return e;if(sk(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=aw(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=aw(e[r],t));return n}return e}function gfe(e,t){return e.data=ow(e.data,t),delete e.attachments,e}function ow(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=ow(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=ow(e[n],t));return e}const vfe=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],yfe=5;var en;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(en||(en={}));class bfe{constructor(t){this.replacer=t}encode(t){return(t.type===en.EVENT||t.type===en.ACK)&&Dh(t)?this.encodeAsBinary({type:t.type===en.EVENT?en.BINARY_EVENT:en.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===en.BINARY_EVENT||t.type===en.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=hfe(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function JP(e){return Object.prototype.toString.call(e)==="[object Object]"}class ak extends mr{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===en.BINARY_EVENT;r||n.type===en.BINARY_ACK?(n.type=r?en.EVENT:en.ACK,this.reconstructor=new Sfe(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(sk(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(en[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===en.BINARY_EVENT||r.type===en.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(a,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const a=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(ak.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case en.CONNECT:return JP(n);case en.DISCONNECT:return n===void 0;case en.CONNECT_ERROR:return typeof n=="string"||JP(n);case en.EVENT:case en.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&vfe.indexOf(n[0])===-1);case en.ACK:case en.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Sfe{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=gfe(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const wfe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ak,Encoder:bfe,get PacketType(){return en},protocol:yfe},Symbol.toStringTag,{value:"Module"}));function js(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Efe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class mV extends mr{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[js(t,"open",this.onopen.bind(this)),js(t,"packet",this.onpacket.bind(this)),js(t,"error",this.onerror.bind(this)),js(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,a;if(Efe.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:en.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const c=this.ids++,d=n.pop();this._registerAckCallback(c,d),s.id=c}const o=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,l=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!o||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===t&&this.sendBuffer.splice(o,1);n.call(this,new Error("operation has timed out"))},i),s=(...o)=>{this.io.clearTimeoutFn(a),n.apply(this,o)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,i)=>{const a=(s,o)=>s?i(s):r(o);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:en.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case en.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case en.EVENT:case en.BINARY_EVENT:this.onevent(t);break;case en.ACK:case en.BINARY_ACK:this.onack(t);break;case en.DISCONNECT:this.ondisconnect();break;case en.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:en.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:en.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Nd(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Nd.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Nd.prototype.reset=function(){this.attempts=0};Nd.prototype.setMin=function(e){this.ms=e};Nd.prototype.setMax=function(e){this.max=e};Nd.prototype.setJitter=function(e){this.jitter=e};class lw extends mr{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,hy(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Nd({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||wfe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new ufe(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=js(n,"open",function(){r.onopen(),t&&t()}),a=o=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",o),t?t(o):this.maybeReconnectOnOpen()},s=js(n,"error",a);if(this._timeout!==!1){const o=this._timeout,l=this.setTimeoutFn(()=>{i(),a(new Error("timeout")),n.close()},o);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(js(t,"ping",this.onping.bind(this)),js(t,"data",this.ondata.bind(this)),js(t,"error",this.onerror.bind(this)),js(t,"close",this.onclose.bind(this)),js(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){my(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new mV(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Kd={};function Lh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=cfe(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,s=Kd[i]&&a in Kd[i].nsps,o=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return o?l=new lw(r,t):(Kd[i]||(Kd[i]=new lw(r,t)),l=Kd[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Lh,{Manager:lw,Socket:mV,io:Lh,connect:Lh});let xfe=0;const hV=Qi("DebugSocket",{state:()=>({messages:[],maxMessages:500,enabled:!1,paused:!1,filter:""}),getters:{filteredMessages(){if(!this.filter)return this.messages;const e=this.filter.toLowerCase();return this.messages.filter(t=>t.event.toLowerCase().includes(e)||JSON.stringify(t.data).toLowerCase().includes(e))},messageCount(){return this.messages.length}},actions:{enable(){this.enabled=!0},disable(){this.enabled=!1},togglePause(){this.paused=!this.paused},logMessage(e,t,n){if(!this.enabled||this.paused)return;const r={id:++xfe,timestamp:new Date,direction:e,event:t,data:n};this.messages.push(r),this.messages.length>this.maxMessages&&(this.messages=this.messages.slice(-this.maxMessages))},clearMessages(){this.messages=[]},setFilter(e){this.filter=e},setMaxMessages(e){this.maxMessages=e,this.messages.length>e&&(this.messages=this.messages.slice(-e))}}}),Dd=Qi("Overlay",{state:()=>({loading:!0,overlay:!0,overlayMessage:"",serverDisconnected:!1,errorCaught:null,errorUrl:null,errorResponse:null,isRetrying:!1,nextRetryTime:null,isTestingConnection:!1}),actions:{setLoading(e){this.loading=e},setOverlay(e,t=""){this.overlay=e,this.overlayMessage=t},hideOverlay(){this.overlay=!1,this.overlayMessage="",this.loading=!1},setServerDisconnected(e){this.serverDisconnected=e,e?(YE().closeAllDialogs(),fm().closeFileExplorer(),this.overlay=!0,this.loading=!1):(this.overlay=!1,this.loading=!1)},setError(e,t=null,n=null){this.errorCaught=e,this.errorUrl=t,this.errorResponse=n,e&&(this.loading=!1)},clearError(){this.errorCaught=null,this.errorUrl=null,this.errorResponse=null},startRetry(e){this.isRetrying=!0,this.nextRetryTime=Date.now()+e},incrementRetry(e){this.nextRetryTime=Date.now()+e},resetRetry(){this.isRetrying=!1,this.nextRetryTime=null,this.isTestingConnection=!1},setTestingConnection(e){this.isTestingConnection=e},retryNow(){this.nextRetryTime=Date.now()}}});let Fn=null;const zn=Dn({connected:!1,setup:!1,id:"",active:!1});class kfe{printerStore=vn();floorStore=Xi();printerStateStore=jr();testPrinterStore=Zx();trackedUploadsStore=Pde();debugSocketStore=hV();appLoaderStore=Dd();snackbar=Xt();authStore=Rs();socketState(){return Fn?{setup:!0,connected:Fn.connected,active:Fn.active,id:Fn.id}:(console.debug("Returning default socket state, socket was not set up"),{setup:!1})}async setupSocketConnection(){if(window.__DISABLE_SOCKETIO__||window.__SCREENSHOT_MODE__){console.debug("Socket.IO disabled (test/screenshot mode)"),zn.setup=!0,zn.connected=!0,zn.active=!0,zn.id="test-mode-socket";const n=window.__SOCKETIO_MOCK_DATA__;n&&this.onMessage(n);return}if(console.debug("Setting up socket.io client"),zn.setup)throw new Error("Cant setup socket, socket already created");zn.setup=!1;const t=await KE();this.authStore.loadTokens(),Fn=Lh(t,{auth:async n=>{if(!this.authStore.loginRequired)return n({});try{this.authStore.isLoginExpired&&(console.warn("Login expired, attempting to refresh token"),await this.authStore.refreshLoginToken()),this.authStore.token?n({token:this.authStore.token}):(console.error("No token available after refresh"),n({}))}catch(r){console.error("Token refresh failed:",r),n({})}}}),this.setupConnectionHandlers(),this.registerMessageHandlers(),zn.setup=!0}disconnect(){if(!Fn)throw new Error("Cant disconnect socket, socket not created");Fn.close(),Fn=null,zn.setup=!1,zn.connected=!1,zn.active=!1,zn.id=""}reconnect(){if(window.__DISABLE_SOCKETIO__||window.__SCREENSHOT_MODE__){console.debug("Socket.IO reconnect skipped (test/screenshot mode)");return}if(!Fn)throw new Error("Cant reconnect socket, socket not created");console.debug("Resetting socket connection. Previous state:",{connected:Fn.connected,active:Fn.active,id:Fn.id}),Fn.close(),Fn.connect()}onMessage(t){t.trackedUploads.current?.length&&(this.trackedUploadsStore.setUploads(t?.trackedUploads.current),this.trackedUploadsStore.activeUploads.forEach(n=>{this.snackbar.openProgressMessage(n.correlationToken,n.multerFile.originalname,(n.progress||0)*100,n.completed)})),t.floors?.length&&this.floorStore.saveFloors(t.floors),t.printers?.length&&this.printerStore.setPrinters(t.printers),t.socketStates&&this.printerStateStore.setSocketStates(t.socketStates),t.printerEvents&&this.printerStateStore.setPrinterEvents(t.printerEvents)}setupConnectionHandlers(){if(!Fn)throw new Error("Cant bind socket events, socket not created");Fn.on("connect",()=>{zn.id=Fn?.id??"",zn.connected=!0,zn.active=Fn?.active??!1,console.debug("Socket connected:",zn.id,"Active:",zn.active),this.appLoaderStore.setServerDisconnected(!1),this.appLoaderStore.resetRetry()}),Fn.on("disconnect",()=>{zn.id="",zn.connected=!1,zn.active=!1,console.debug("Socket disconnected"),this.appLoaderStore.setServerDisconnected(!0),Si("backend:start-retry").emit()}),Fn.on("connect_error",async t=>{if(console.error("Socket connection error:",t.message),t.message.includes("Authentication")||t.message.includes("jwt")||t.message.includes("token")||t.message.includes("auth")){console.warn("Possible JWT authentication issue detected");try{await this.authStore.refreshLoginToken(),this.reconnect()}catch{console.error("Error refreshing token"),this.disconnect(),await this.authStore.logout()}}else this.appLoaderStore.setServerDisconnected(!0)})}registerMessageHandlers(){if(!Fn)throw new Error("Cant bind socket app events, socket not created");Fn.onAny((t,...n)=>{this.debugSocketStore.logMessage("in",t,n.length===1?n[0]:n)}),Fn.on("update",t=>this.onMessage(t)),Fn.on("test-printer-state",t=>{this.testPrinterStore.saveEvent(t)})}}const Cfe=Ee({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function _fe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n,layoutSize:r}=t;let i=0,a=0;const s=z(null),o=Fe(0),l=Fe(0),u=Fe(0),c=Fe(!1),d=Fe(!1),p=Fe(!1),h=Fe(!1),g=Fe(!0),v=D(()=>Number(e.scrollThreshold)),y=D(()=>Ln((v.value-o.value)/v.value||0));function b(P){const _="window"in P?window.innerHeight:P.clientHeight,A="window"in P?document.documentElement.scrollHeight:P.scrollHeight;return{clientHeight:_,scrollHeight:A}}function E(){const P=s.value;if(!P)return;const{clientHeight:_,scrollHeight:A}=b(P),I=A-_,T=r?.value||0,x=v.value+T;g.value=I>x}function w(){E()}function C(){const P=s.value;if(!P||n&&!n.value)return;i=o.value,o.value="window"in P?P.pageYOffset:P.scrollTop;const _=P instanceof Window?document.documentElement.scrollHeight:P.scrollHeight;a!==_&&(_>a&&E(),a=_),d.value=o.value<i,u.value=Math.abs(o.value-v.value);const{clientHeight:A,scrollHeight:I}=b(P),T=o.value+A>=I-5;!d.value&&T&&o.value>=v.value&&g.value&&(h.value=!0);const x=Math.abs(o.value-i)>100,R=o.value<=5;(d.value&&i-o.value>1&&!T||x&&o.value<v.value||R)&&(h.value=!1),p.value=T}return Ne(d,()=>{l.value=l.value||o.value}),Ne(c,()=>{l.value=0}),Nt(()=>{Ne(()=>e.scrollTarget,P=>{const _=P?document.querySelector(P):window;_&&_!==s.value&&(s.value?.removeEventListener("scroll",C),s.value=_,s.value.addEventListener("scroll",C,{passive:!0}),Promise.resolve().then(()=>{E()}))},{immediate:!0}),window.addEventListener("resize",w,{passive:!0})}),xr(()=>{s.value?.removeEventListener("scroll",C),window.removeEventListener("resize",w)}),n&&Ne(n,C,{immediate:!0}),{scrollThreshold:v,currentScroll:o,currentThreshold:u,isScrollActive:c,scrollRatio:y,isScrollingUp:d,savedScroll:l,isAtBottom:p,reachedBottomWhileScrollingDown:h,hasEnoughScrollableSpace:g}}const Tfe=Ee({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...ZM(),...j$(),...Cfe(),height:{type:[Number,String],default:64}},"VAppBar"),gV=$e()({name:"VAppBar",props:Tfe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=z(),i=gt(e,"modelValue"),a=D(()=>{const _=new Set(e.scrollBehavior?.split(" ")??[]);return{hide:_.has("hide"),fullyHide:_.has("fully-hide"),inverted:_.has("inverted"),collapse:_.has("collapse"),elevate:_.has("elevate"),fadeImage:_.has("fade-image")}}),s=D(()=>{const _=a.value;return _.hide||_.fullyHide||_.inverted||_.collapse||_.elevate||_.fadeImage||!i.value}),o=D(()=>{const _=r.value?.contentHeight??0,A=r.value?.extensionHeight??0;return _+A}),{currentScroll:l,scrollThreshold:u,isScrollingUp:c,scrollRatio:d,isAtBottom:p,reachedBottomWhileScrollingDown:h,hasEnoughScrollableSpace:g}=_fe(e,{canScroll:s,layoutSize:o}),v=ae(()=>a.value.hide||a.value.fullyHide),y=D(()=>e.collapse||a.value.collapse&&(a.value.inverted?d.value>0:d.value===0)),b=D(()=>e.flat||a.value.fullyHide&&!i.value||a.value.elevate&&(a.value.inverted?l.value>0:l.value===0)),E=D(()=>a.value.fadeImage?a.value.inverted?1-d.value:d.value:void 0),w=D(()=>{if(a.value.hide&&a.value.inverted)return 0;const _=r.value?.contentHeight??0,A=r.value?.extensionHeight??0;return v.value?l.value<u.value||a.value.fullyHide?_+A:_:_+A});Gi(()=>!!e.scrollBehavior,()=>{lr(()=>{if(!v.value){i.value=!0;return}if(a.value.inverted){i.value=l.value>u.value;return}if(!g.value){i.value=!0;return}if(h.value){i.value=!1;return}i.value=c.value&&!p.value||l.value<u.value})});const{ssrBootStyles:C}=um(),{layoutItemStyles:P}=H$({id:e.name,order:D(()=>parseInt(e.order,10)),position:ae(()=>e.location),layoutSize:w,elementSize:Fe(void 0),active:i,absolute:ae(()=>e.absolute)});return Ue(()=>{const _=Kg.filterProps(e);return f(Kg,ve({ref:r,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...P.value,"--v-toolbar-image-opacity":E.value,height:void 0,...C.value},e.style]},_,{collapse:y.value,flat:b.value}),n)}),{}}}),Ife={key:0,class:"text-h6 font-weight-light text-uppercase ml-1 pl-2 page-title-divider"},Pfe={key:0,class:"text-uppercase text--white mr-4"},Afe=je({__name:"TopBar",setup(e){const t=tk(),n=Rs(),r=ns(),i=Rd(),a={"Print Jobs":{title:"Print Jobs"},"Print Queue":{title:"Print Queue"},CameraGridView:{title:"Cameras"},PrintersView:{title:"Printer List"},PrinterGrid:{title:"Printer Grid"},Settings:{title:"Settings"},Files:{title:"Files"},MaintenanceLogs:{title:"Maintenance Logs"}},s=D(()=>{const h=i.name,g=i.path;return g.startsWith("/settings/")?{"/settings/floors":"Settings - Floors","/settings/printer":"Settings - Printer","/settings/emergency-commands":"Settings - Emergency Commands","/settings/server-protection":"Settings - Server Protection","/settings/user-management":"Settings - Users","/settings/account":"Settings - Account","/settings/software-upgrade":"Settings - Software Upgrade","/settings/diagnostics":"Settings - Diagnostics","/settings/experimental":"Settings - Experimental","/settings/debug-socket":"Settings - SocketIO Debug","/settings/about":"Settings - About"}[g]||"Settings":a[h]?.title||""}),o=[{title:"Open Profile",icon:"mdi:mdi-account",path:"/settings/account"}],l=z(Date.now());Vj(()=>{l.value=Date.now()},1e3);const u=D(()=>{if(!n.tokenClaims?.exp)return"";const h=n.tokenClaims.exp-l.value/1e3;return`${Math.round(h)}s`}),c=D(()=>t.username),d=D(()=>n.isDemoMode);async function p(){await n.logout(!0),await tV(r)}return(h,g)=>{const v=mde,y=pde;return N(),Z(gV,{elevation:"0"},{default:m(()=>[f(xu,{class:"text-white d-flex align-center"},{default:m(()=>[g[1]||(g[1]=S("span",{class:"text-uppercase"},[S("span",{class:"font-weight-light"}," FDM "),S("strong",null," Monster ")],-1)),s.value?(N(),le("span",Ife,V(s.value),1)):se("",!0)]),_:1}),f(ht),d.value?(N(),le("h2",Pfe," DEMO MODE ")):se("",!0),f(hde),f(kde),f(Tde),ne(n).hasAuthToken&&!ne(n).isLoginExpired?(N(),Z(li,{key:1,"close-on-content-click":!1,location:"bottom right","open-on-hover":"",transition:"slide-y-transition"},{activator:m(({props:b})=>[f(te,ve({class:"ml-2",variant:"tonal"},b),{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...g[2]||(g[2]=[k("mdi:mdi-account",-1)])]),_:1}),k(" "+V(c.value),1)]),_:1},16)]),default:m(()=>[f(hr,null,{default:m(()=>[(N(),le(De,null,Vt(o,(b,E)=>f(ot,{key:E,to:b.path,title:b.title,"prepend-icon":b.icon,link:""},null,8,["to","title","prepend-icon"])),64)),ne(qb)?(N(),Z(et,{key:0})):se("",!0),ne(qb)&&u.value?(N(),Z(ot,{key:1,disabled:""},{prepend:m(()=>[f(j,null,{default:m(()=>[...g[3]||(g[3]=[k("schedule",-1)])]),_:1})]),default:m(()=>[f(Rt,{class:"text-caption"},{default:m(()=>[k(" Auth Expiry: "+V(u.value),1)]),_:1})]),_:1})):se("",!0),ne(qb)?(N(),Z(ot,{key:2,disabled:""},{prepend:m(()=>[f(j,null,{default:m(()=>[...g[4]||(g[4]=[k("wifi",-1)])]),_:1})]),default:m(()=>[f(Rt,{class:"text-caption font-monospace"},{default:m(()=>[k(" SocketIO: S"+V(ne(zn).setup?1:0)+" C"+V(ne(zn).connected?1:0)+" A"+V(ne(zn).active?1:0),1)]),_:1}),f(Mu,{class:"text-caption"},{default:m(()=>[k(V(ne(zn).id),1)]),_:1})]),_:1})):se("",!0)]),_:1})]),_:1})):se("",!0),ne(n).loginRequired===!0?(N(),Z(v,{key:2,tooltip:"Go back to login",text:"Logout",icon:"logout",variant:"tonal",onClick:g[0]||(g[0]=b=>p())})):se("",!0),f(y)]),_:1})}}}),Rfe=En(Afe,[["__scopeId","data-v-210e0343"]]),ok="/assets/logo-CJVdjy51.png",Ofe={class:"d-flex justify-center align-center logo-container"},Nfe=je({__name:"NavigationBar",setup(e){const t=[["dashboard","Dashboard","/dashboard"],["view_module","Printer Grid","/printer-grid"],["mdi:mdi-printer","Printers","/printer-list"],["mdi:mdi-camera","Cameras","/cameras"],["mdi:mdi-history","Print Jobs","/jobs"],["mdi:mdi-folder","Files","/files"],["mdi:mdi-bug","Maintenance","/maintenance-logs"],["mdi:mdi-cog","Settings","/settings"]];return(n,r)=>(N(),Z(Px,{permanent:"",rail:""},{default:m(()=>[S("div",Ofe,[f(ai,{alt:"FDM Monster Logo",src:ne(ok),class:"logo-image",transition:"scale-transition"},null,8,["src"])]),f(et),f(hr,{density:"compact",nav:""},{default:m(()=>[(N(),le(De,null,Vt(t,([i,a,s],o)=>f(sn,{key:o,location:"end"},{activator:m(({props:l})=>[f(ot,ve({ref_for:!0},l,{to:s,"prepend-icon":i,density:"comfortable","router-link":""}),null,16,["to","prepend-icon"])]),default:m(()=>[S("span",null,V(a),1)]),_:2},1024)),64))]),_:1})]),_:1}))}}),Dfe=En(Nfe,[["__scopeId","data-v-ddaebf57"]]);function Lfe(e){const t=Fe(e());let n=-1;function r(){clearInterval(n)}function i(){r(),Ct(()=>t.value=e())}function a(s){const o=s?getComputedStyle(s):{transitionDuration:.2},l=parseFloat(o.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+l;t.value=Math.max(e()-c,0),t.value<=0&&r()},l)}return An(r),{clear:r,time:t,start:a,reset:i}}const Ffe=Ee({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...pl({location:"bottom"}),..._d(),...gr(),...na(),...wn(),...Rn(lm({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","retainFocus","captureFocus","disableInitialFocus","scrim","scrollStrategy","stickToTarget","viewportMargin"])},"VSnackbar"),lk=$e()({name:"VSnackbar",props:Ffe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=gt(e,"modelValue"),{positionClasses:i}=Td(e),{scopeId:a}=$u(),{themeClasses:s}=On(e),{colorClasses:o,colorStyles:l,variantClasses:u}=Du(e),{roundedClasses:c}=kr(e),d=Lfe(()=>Number(e.timeout)),p=z(),h=z(),g=Fe(!1),v=Fe(0),y=z(),b=mt(dp,void 0);Gi(()=>!!b,()=>{const R=z$();lr(()=>{y.value=R.mainStyles.value})}),Ne(r,w),Ne(()=>e.timeout,w),Nt(()=>{r.value&&w()});let E=-1;function w(){d.reset(),window.clearTimeout(E);const R=Number(e.timeout);if(!r.value||R===-1)return;const O=QE(h.value);d.start(O),E=window.setTimeout(()=>{r.value=!1},R)}function C(){d.reset(),window.clearTimeout(E)}function P(){g.value=!0,C()}function _(){g.value=!1,w()}function A(R){v.value=R.touches[0].clientY}function I(R){Math.abs(v.value-R.changedTouches[0].clientY)>50&&(r.value=!1)}function T(){g.value&&_()}const x=D(()=>e.location.split(" ").reduce((R,O)=>(R[`v-snackbar--${O}`]=!0,R),{}));return Ue(()=>{const R=vo.filterProps(e),O=!!(n.default||n.text||e.text);return f(vo,ve({ref:p,class:["v-snackbar",{"v-snackbar--active":r.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},x.value,i.value,e.class],style:[y.value,e.style]},R,{modelValue:r.value,"onUpdate:modelValue":L=>r.value=L,contentProps:ve({class:["v-snackbar__wrapper",s.value,o.value,c.value,u.value],style:[l.value],onPointerenter:P,onPointerleave:_},R.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:A,onTouchend:I,onAfterLeave:T},a),{default:()=>[fl(!1,"v-snackbar"),e.timer&&!g.value&&S("div",{key:"timer",class:"v-snackbar__timer"},[f(si,{ref:h,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,modelValue:d.time.value},null)]),O&&S("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[n.text?.()??e.text,n.default?.()]),n.actions&&f(nn,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[S("div",{class:"v-snackbar__actions"},[n.actions({isActive:r})])]})],activator:n.activator})}),fi({},p)}}),$fe={class:"d-flex align-start ga-3"},Mfe={class:"flex-grow-1 min-width-0"},Vfe={class:"text-body-1 font-weight-medium text-white mb-3"},Bfe={class:"d-flex align-center ga-2 mb-1"},Ufe={class:"text-body-2 text-white"},jfe={class:"text-body-2 text-white font-weight-bold"},zfe=je({__name:"AppProgressSnackbar",setup(e){const t=Xt(),n=z(!1),r=z(""),i=z([]),a=z(100);function s(u){return i.value.find(c=>c.key===u)}function o(u,c,d=0,p=!1,h=Date.now()+1500){console.log(`[AppProgressSnackbar] Adding ${u} tracker with progress ${d}`),i.value.push({key:u,title:c,value:d,completed:p,startedAt:Date.now(),expiresAt:h,timeoutAt:void 0})}function l(u){i.value=i.value.filter(c=>c.key!==u)}return Nt(()=>{setInterval(()=>{if(i.value.length){for(const u of i.value){const{value:c,completed:d,expiresAt:p,key:h}=u;(d||c>=100)&&p<Date.now()||u.timeoutAt&&u.timeoutAt<Date.now()?l(h):!u.timeoutAt&&p<Date.now()&&(u.timeoutAt=Date.now()+5e3)}i.value.length?(a.value=-1,n.value=!0):(a.value=2e3,r.value="Upload ended",console.debug(`[AppSnackbars] Setting timeout to ${a.value}`))}},1e3),t.onProgressMessage(u=>{const{key:c,value:d,title:p,completed:h}=u,g=s(c);if(g)Math.min(100,d)>=g.value&&(g.expiresAt=Date.now()+1500,g.value=d,g.completed=h);else{if(d>=100)return;o(c,p,d,!1,Date.now()+1500)}r.value="Uploading files"})}),(u,c)=>(N(),Z(lk,{modelValue:n.value,"onUpdate:modelValue":c[1]||(c[1]=d=>n.value=d),timeout:a.value,location:"bottom right",class:"progress-snackbar",color:"primary",variant:"elevated",rounded:"lg","multi-line":"",width:"450","max-width":"90vw"},{default:m(()=>[S("div",$fe,[f(j,{color:"white",size:"24"},{default:m(()=>[...c[2]||(c[2]=[k(" upload ",-1)])]),_:1}),S("div",Mfe,[S("div",Vfe,V(r.value),1),(N(!0),le(De,null,Vt(i.value,(d,p)=>(N(),le("div",{key:p,class:"mb-3"},[S("div",Bfe,[f(j,{color:"white",size:"16"},{default:m(()=>[k(V(d.completed?"check":d.timeoutAt?"pause":"schedule"),1)]),_:2},1024),S("span",Ufe,V(d.title),1),f(ht),S("span",jfe,V((d.completed?100:d.value).toFixed(1))+"% ",1)]),(N(),Z(si,{key:d.key,"model-value":d.completed?100:d.value,color:d.timeoutAt?"error":"success",height:"4",rounded:"","bg-color":"rgba(255,255,255,0.3)"},null,8,["model-value","color"]))]))),128))]),f(te,{icon:"close",variant:"text",color:"white",size:"small",class:"ml-2",onClick:c[0]||(c[0]=d=>n.value=!1)})])]),_:1},8,["modelValue","timeout"]))}}),Hfe=En(zfe,[["__scopeId","data-v-4a864bff"]]),Wfe={class:"d-flex align-center ga-3"},Gfe={class:"flex-grow-1 min-width-0"},qfe={class:"text-body-1 font-weight-medium text-white"},Kfe={key:0,class:"text-body-2 text-white opacity-90 mt-1"},Yfe=je({__name:"AppErrorSnackbar",setup(e){const t=Xt(),n=z(-1),r=z(!1),i=z(""),a=z("");return Nt(()=>{t.onErrorMessage(s=>{i.value=s.title,a.value=s.subtitle??"",r.value=!0,n.value=s.timeout??1e4})}),(s,o)=>(N(),Z(lk,{modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=l=>r.value=l),timeout:n.value,location:"bottom right",class:"error-snackbar",color:"error",variant:"elevated",rounded:"lg","multi-line":"",width:"400","max-width":"90vw"},{default:m(()=>[S("div",Wfe,[f(j,{color:"white",size:"24"},{default:m(()=>[...o[2]||(o[2]=[k(" error ",-1)])]),_:1}),S("div",Gfe,[S("div",qfe,V(i.value),1),a.value?.length?(N(),le("div",Kfe,V(a.value),1)):se("",!0)]),f(te,{icon:"close",variant:"text",color:"white",size:"small",class:"ml-2",onClick:o[0]||(o[0]=l=>r.value=!1)})])]),_:1},8,["modelValue","timeout"]))}}),Xfe=En(Yfe,[["__scopeId","data-v-3b4e7ea3"]]),Jfe={class:"d-flex align-center ga-3"},Qfe={class:"flex-grow-1 min-width-0"},Zfe=je({__name:"AppInfoSnackbar",setup(e){const t=Xt(),n=z(!1),r=z(""),i=z(""),a=z(2e3),s=z(!1);return Nt(()=>{t.onInfoMessage(o=>{r.value=o.title,i.value=o.subtitle??"",s.value=o.warning??!1,a.value=o.timeout??2e3,n.value=!0})}),(o,l)=>(N(),Z(lk,{modelValue:n.value,"onUpdate:modelValue":l[1]||(l[1]=u=>n.value=u),timeout:a.value,location:"bottom right",class:"info-snackbar",color:s.value?"warning":"success",variant:"elevated",rounded:"lg","multi-line":"",width:"400","max-width":"90vw"},{default:m(()=>[S("div",Jfe,[f(j,{color:s.value?"black":"white",size:"24"},{default:m(()=>[k(V(s.value?"warning":"check_circle"),1)]),_:1},8,["color"]),S("div",Qfe,[S("div",{class:Oe(s.value?"text-body-1 font-weight-medium text-black":"text-body-1 font-weight-medium text-white")},V(r.value),3),i.value?.length?(N(),le("div",{key:0,class:Oe(s.value?"text-body-2 text-black opacity-90 mt-1":"text-body-2 text-white opacity-90 mt-1")},V(i.value),3)):se("",!0)]),f(te,{icon:"close",variant:"text",color:s.value?"black":"white",size:"small",class:"ml-2",onClick:l[0]||(l[0]=u=>n.value=!1)},null,8,["color"])])]),_:1},8,["modelValue","timeout","color"]))}}),epe=En(Zfe,[["__scopeId","data-v-6622ec4d"]]),uk=Qi("Uploads",{state:()=>({queuedUploads:[],failedUploads:[],uploadingNow:!1}),getters:{hasPendingUploads(e){return e.queuedUploads?.length>0},isUploadingNow(e){return e.uploadingNow},nextUpload(e){return e.queuedUploads[0]}},actions:{queueUploads(e){this.failedUploads=[],this.queuedUploads.push(...e)},cancelUploads(){this.queuedUploads=[],this.failedUploads=[]},async handleNextUpload(){const e=Xt();if(!this.queuedUploads?.length)return;this.uploadingNow=!0;const{file:t,printer:n,startPrint:r}=this.nextUpload;this.queuedUploads.splice(0,1);try{await Qa.uploadFile(n,t,r)}catch(i){if(i.isAxiosError){const a={file:t,printer:n,error:i,startPrint:!1};this.failedUploads.push(a),e.openErrorMessage({title:"Upload failure",subtitle:`File ${t.name}Upload failed for to printer ${n.name}`})}else e.openErrorMessage({title:"Upload failure",subtitle:"Unknown upload error occurred"})}this.uploadingNow=!1}}}),tpe={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off"},vV={component:e=>Ds(yF,{...e,class:"mdi"})};function npe(){return{svg:{component:vF},class:{component:yF}}}function rpe(e){const t=npe(),n=e?.defaultSet??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=vV),ii({defaultSet:n,sets:t,aliases:{...tpe,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}function yV(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=ii(t,n),{aliases:i={},components:a={},directives:s={}}=r,o=Xo();return o.run(()=>{const l=uQ(r.defaults),u=vZ(r.display,r.ssr),c=TQ(r.theme),d=rpe(r.icons),p=jQ(r.locale),h=wre(r.date,p),g=bZ(r.goTo,p);function v(b){for(const w in s)b.directive(w,s[w]);for(const w in a)b.component(w,a[w]);for(const w in i)b.component(w,ea({...i[w],name:w,aliasName:i[w].name}));const E=Xo();if(E.run(()=>{c.install(b)}),b.onUnmount(()=>E.stop()),b.provide(Wc,l),b.provide(wS,u),b.provide(np,c),b.provide(yS,d),b.provide(Og,p),b.provide(Sre,h.options),b.provide(eP,h.instance),b.provide(VF,g),un&&r.ssr)if(b.$nuxt)b.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:w}=b;b.mount=function(){const C=w(...arguments);return Ct(()=>u.update()),b.mount=w,C}}b.mixin({computed:{$vuetify(){return Dn({defaults:Zu.call(this,Wc),display:Zu.call(this,wS),theme:Zu.call(this,np),icons:Zu.call(this,yS),locale:Zu.call(this,Og),date:Zu.call(this,eP)})}}})}function y(){o.stop()}return{install:v,unmount:y,defaults:l,display:u,theme:c,icons:d,locale:p,date:h,goTo:g}})}const ipe="3.11.6";yV.version=ipe;function Zu(e){const t=this.$,n=t.parent?.provides??t.vnode.appContext?.provides;if(n&&e in n)return n[e]}function bV(e){const t=Gt();t.getOptions().enabled=e,e&&console.warn("Sentry enabled:",e)}const spe=e=>Math.random()*e,ape={name:"GridLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#000000"},size:{type:Number,default:15},margin:{type:String,default:"2px"},sizeUnit:{type:String,default:"px"}},methods:{random:spe,getWrapperStyle(){return{width:`${Number.parseFloat(this.size)*3+Number.parseFloat(this.margin)*6}${this.sizeUnit}`,fontSize:0}},getCircleStyle(e){const t=`grid ${e/100+.6}s ${e/100-.2}s infinite ease`;return{display:"inline-block",backgroundColor:this.color,width:`${this.size}${this.sizeUnit}`,height:`${this.size}${this.sizeUnit}`,margin:this.margin,borderRadius:"100%",animationFillMode:"both",animation:t}}}};function ope(e,t,n,r,i,a){return n.loading?(N(),le("div",{key:0,style:We(a.getWrapperStyle())},[(N(),le(De,null,Vt(9,s=>S("div",{key:s,style:We(a.getCircleStyle(a.random(100)))},null,4)),64))],4)):se("",!0)}const SV=En(ape,[["render",ope]]),lpe={key:0,class:"d-flex flex-column align-center"},upe={class:"mt-8"},cpe=je({__name:"AppLoadingMessage",setup(e){const t=Dd();return(n,r)=>ne(t).loading?(N(),le("div",lpe,[f(SV,{size:20,color:"#a70015"}),S("div",upe,V(ne(t).overlayMessage),1)])):se("",!0)}}),dpe={key:0},ck=je({__name:"DiscordInviteButton",props:{label:{default:"Join our Discord"},color:{default:"indigo"},variant:{default:"elevated"},size:{default:"default"},block:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1}},setup(e){return(t,n)=>(N(),Z(te,ve(t.$attrs,{href:"https://discord.gg/mwA8uP8CMc",target:"_blank",color:e.color,variant:e.variant,size:e.size,block:e.block}),{default:m(()=>[f(j,{class:Oe(e.iconOnly?"":"mr-2")},{default:m(()=>[...n[0]||(n[0]=[k("discord",-1)])]),_:1},8,["class"]),e.iconOnly?se("",!0):(N(),le("span",dpe,V(e.label),1))]),_:1},16,["color","variant","size","block"]))}}),fpe={key:2},dk=je({__name:"GithubIssuesButton",props:{label:{default:"Report Issue on GitHub"},color:{default:void 0},variant:{default:"tonal"},size:{default:"default"},block:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1}},setup(e){return(t,n)=>(N(),Z(te,ve(t.$attrs,{href:"https://github.com/fdm-monster/fdm-monster/issues",target:"_blank",color:e.color,variant:e.variant,size:e.size,block:e.block}),{default:m(()=>[e.iconOnly?(N(),Z(j,{key:1},{default:m(()=>[...n[1]||(n[1]=[k("mdi:mdi-github",-1)])]),_:1})):(N(),Z(j,{key:0,class:"mr-2"},{default:m(()=>[...n[0]||(n[0]=[k("mdi:mdi-github",-1)])]),_:1})),e.iconOnly?se("",!0):(N(),le("span",fpe,V(e.label),1))]),_:1},16,["color","variant","size","block"]))}}),ppe={class:"mb-8"},mpe={key:0,class:"mt-6"},hpe={key:2},gpe={key:3},vpe={class:"d-flex flex-column align-center ga-4"},ype={class:"text-center"},bpe={class:"d-flex ga-3 flex-wrap justify-center mb-6"},Spe={class:"d-flex flex-wrap justify-center ga-2"},wpe=je({__name:"ServerDisconnectedMessage",setup(e){const t=Dd(),n=z(0);let r=null;function i(){if(!t.nextRetryTime){n.value=0;return}n.value=Math.max(0,Math.ceil((t.nextRetryTime-Date.now())/1e3))}return Nt(()=>{i(),r=globalThis.setInterval(i,100)}),Au(()=>{r&&clearInterval(r)}),(a,s)=>(N(),Z(ty,null,{default:m(()=>[ne(t).serverDisconnected?(N(),Z(Ve,{key:0,class:"pa-8 mx-auto text-center","max-width":"600",elevation:"12"},{default:m(()=>[S("div",ppe,[f(j,{size:"80",color:"error",class:"mb-5"},{default:m(()=>[...s[1]||(s[1]=[k(" wifi_off ",-1)])]),_:1}),s[4]||(s[4]=S("h1",{class:"text-h4 font-weight-bold mb-4"},"Server Disconnected",-1)),s[5]||(s[5]=S("p",{class:"text-body-1 text-medium-emphasis mb-0"}," Cannot connect to FDM Monster server. Please ensure the server is running and try again. ",-1)),ne(t).isRetrying?(N(),le("div",mpe,[f(He,{color:"primary",outline:"",size:"large",class:"px-4"},{default:m(()=>[ne(t).isTestingConnection?se("",!0):(N(),Z(j,{key:0,class:"mr-2"},{default:m(()=>[...s[2]||(s[2]=[k("mdi:mdi-refresh",-1)])]),_:1})),ne(t).isTestingConnection?(N(),Z(j,{key:1,class:"mr-2"},{default:m(()=>[...s[3]||(s[3]=[k("mdi:mdi-timer",-1)])]),_:1})):se("",!0),ne(t).isTestingConnection?(N(),le("span",hpe,"Testing connection")):(N(),le("span",gpe,"Retrying in "+V(n.value)+"s",1))]),_:1}),ne(t).isTestingConnection?(N(),Z(si,{key:1,indeterminate:"",color:"primary",height:"4",class:"mt-4",rounded:""})):(N(),Z(si,{key:0,"model-value":(5-n.value)/5*100,color:"primary",height:"4",class:"mt-4",rounded:""},null,8,["model-value"]))])):se("",!0)]),S("div",vpe,[f(te,{disabled:!ne(t).isRetrying||ne(t).isTestingConnection,color:"primary",size:"large",variant:"elevated",onClick:s[0]||(s[0]=o=>ne(t).retryNow()),class:"px-8"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[6]||(s[6]=[k("mdi:mdi-play",-1)])]),_:1}),s[7]||(s[7]=k(" Retry Now ",-1))]),_:1},8,["disabled"])]),f(et,{class:"my-8"}),S("div",ype,[s[13]||(s[13]=S("p",{class:"text-caption text-medium-emphasis mb-3"}," Helpful links: ",-1)),S("div",bpe,[f(te,{color:"surface-variant",variant:"outlined",href:"https://docs.fdm-monster.net",target:"_blank"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[8]||(s[8]=[k("menu_book",-1)])]),_:1}),s[9]||(s[9]=k(" Documentation ",-1))]),_:1}),f(ck,{label:"Discord Support",variant:"elevated"}),f(dk,{label:"GitHub",variant:"outlined",color:"surface-variant"})]),s[14]||(s[14]=S("p",{class:"text-caption text-medium-emphasis mb-3"}," Common solutions: ",-1)),S("div",Spe,[f(He,{size:"small",variant:"outlined"},{default:m(()=>[...s[10]||(s[10]=[k("Check server status",-1)])]),_:1}),f(He,{size:"small",variant:"outlined"},{default:m(()=>[...s[11]||(s[11]=[k("Verify network connection",-1)])]),_:1}),f(He,{size:"small",variant:"outlined"},{default:m(()=>[...s[12]||(s[12]=[k("Review server logs",-1)])]),_:1})])])]),_:1})):se("",!0)]),_:1}))}}),Epe=En(wpe,[["__scopeId","data-v-3b933b98"]]),xpe={class:"mb-6 text-center"},kpe={class:"d-flex align-center"},Cpe={class:"mb-3"},_pe={class:"text-caption mt-1"},Tpe={key:0,class:"mb-3"},Ipe={class:"text-caption"},Ppe={key:1,class:"mb-3"},Ape={class:"text-caption mt-1"},Rpe={class:"d-flex flex-column align-center ga-3"},Ope={class:"d-flex ga-3 flex-wrap justify-center"},Npe=je({__name:"ErrorStateMessage",setup(e){const t=Dd(),n=Xt();function r(){globalThis.location.reload()}function i(){navigator.clipboard.writeText(JSON.stringify(t.errorCaught)),n.openInfoMessage({title:"Copied",subtitle:"Error copied to clipboard"})}return(a,s)=>(N(),Z(ty,null,{default:m(()=>[ne(t).errorCaught?(N(),Z(Ve,{key:0,class:"pa-8 mx-auto align-content-center","max-width":"700",elevation:"12"},{default:m(()=>[S("div",xpe,[f(j,{size:"80",color:"error",class:"mb-4"},{default:m(()=>[...s[2]||(s[2]=[k(" error_outline ",-1)])]),_:1}),s[3]||(s[3]=S("h1",{class:"text-h4 font-weight-bold mb-3"},"Server Error",-1)),s[4]||(s[4]=S("p",{class:"text-body-1 text-medium-emphasis mb-0"}," The server returned an unexpected response. Please check your configuration and logs. ",-1))]),f(Jc,{class:"mb-6"},{default:m(()=>[f(Xc,null,{default:m(()=>[f(Yc,null,{default:m(()=>[S("div",kpe,[f(j,{class:"mr-2"},{default:m(()=>[...s[5]||(s[5]=[k("bug_report",-1)])]),_:1}),s[6]||(s[6]=k(" Error Details ",-1))])]),_:1}),f(Kc,null,{default:m(()=>[f(Ve,{variant:"outlined",class:"pa-4"},{default:m(()=>[S("div",Cpe,[s[7]||(s[7]=S("strong",null,"Error:",-1)),S("pre",_pe,V(JSON.stringify(ne(t).errorCaught,null,2)),1)]),ne(t).errorUrl?(N(),le("div",Tpe,[s[8]||(s[8]=S("strong",null,"URL:",-1)),S("code",Ipe,V(ne(t).errorUrl),1)])):se("",!0),ne(t).errorResponse?(N(),le("div",Ppe,[s[9]||(s[9]=S("strong",null,"Response:",-1)),S("pre",Ape,V(ne(t).errorResponse),1)])):se("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),S("div",Rpe,[f(te,{color:"primary",size:"large",variant:"elevated",onClick:s[0]||(s[0]=o=>r()),class:"px-8"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[10]||(s[10]=[k("refresh",-1)])]),_:1}),s[11]||(s[11]=k(" Reload Page ",-1))]),_:1}),S("div",Ope,[f(te,{color:"secondary",variant:"outlined",onClick:s[1]||(s[1]=o=>i())},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[12]||(s[12]=[k("content_copy",-1)])]),_:1}),s[13]||(s[13]=k(" Copy Error ",-1))]),_:1}),f(te,{color:"surface-variant",variant:"outlined",href:"https://docs.fdm-monster.net",target:"_blank"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[14]||(s[14]=[k("menu_book",-1)])]),_:1}),s[15]||(s[15]=k(" Documentation ",-1))]),_:1}),f(te,{color:"purple",variant:"outlined",href:"https://discord.gg/mwA8uP8CMc",target:"_blank"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...s[16]||(s[16]=[k("chat",-1)])]),_:1}),s[17]||(s[17]=k(" Get Support ",-1))]),_:1})])])]),_:1})):se("",!0)]),_:1}))}}),Dpe=En(Npe,[["__scopeId","data-v-a399452b"]]),QP=5e3,Lpe=je({__name:"AppLoader",setup(e){const t=Rs(),n=Dd(),r=fs(),i=uy(),a=tk(),s=ns(),o=Xt(),l=new kfe,u=z(""),c=ox(),d=D(()=>c.current.value.colors.background);let p=null;function h(T,x=""){T?(n.setOverlay(!0,x),n.clearError()):n.hideOverlay()}async function g(){n.setTestingConnection(!0);try{await jo.test(),console.log("[AppLoader] Backend connection successful, reloading page"),y(),n.resetRetry(),globalThis.location.reload()}catch(T){console.log("[AppLoader] Retry attempt failed",T),n.setTestingConnection(!1),n.incrementRetry(QP)}}function v(){console.log("[AppLoader] Starting retry loop"),y(),p=globalThis.setInterval(async()=>{const T=n.nextRetryTime||0;Date.now()>=T&&T>0&&(console.log(`[AppLoader] Retry attempt at ${Date.now()}`),n.nextRetryTime=0,await g())},100)}function y(){p&&(console.log("[AppLoader] Stopping retry loop"),clearInterval(p),p=null)}async function b(){try{await r.loadSettings(),await i.loadFeatures(),await a.getProfile();const T=r.serverSettings?.sentryDiagnosticsEnabled;bV(!!T)}catch(T){console.log("Error when loading settings.",T),o.openErrorMessage({title:"Error",subtitle:"Error when loading settings, features and/or profile."}),Ks(T)}l.socketState().setup?l.reconnect():await l.setupSocketConnection(),h(!1)}Si("auth:permission-denied").on(async T=>{console.log("[AppLoader] Permission denied, going to permission denied page"),h(!0,"Permission denied"),await s.push({name:pn.PermissionDenied,query:{roles:T?.roles,page:String(s.currentRoute.value.name),permissions:T?.permissions,error:T?.error,url:T?.url}}),h(!1)}),Si("auth:failure").on(async T=>{if(console.debug(`[AppLoader] Event received: 'auth:failure', going back to login, context: ${T}`),h(!0,"Authentication failed, going back to login"),s.currentRoute.value.name!==pn.Login){const x=u.value&&u.value!=="/"?u.value:s.currentRoute.value.fullPath;console.debug("[AppLoader] Redirecting to login with redirect:",x),await s.push({name:pn.Login,query:{redirect:x}})}h(!1)}),Si("auth:login").on(async()=>{console.debug("[AppLoader] Event received: 'auth:login', loading app"),h(!0,"Loading app"),await b()}),Si(`auth:${$i.AccountNotVerified}`).on(async()=>{if(console.debug(`[AppLoader] Event received: 'auth:${$i.AccountNotVerified}', going to login`),o.error("Account not verified, please ask an administrator to verify your account."),h(!0,"Account not verified, please ask an administrator to verify your account."),s.currentRoute.value.name!==pn.Login){const T=u.value&&u.value!=="/"?u.value:s.currentRoute.value.fullPath;await s.push({name:pn.Login,query:{redirect:T}})}h(!1)}),Si(`auth:${$i.PasswordChangeRequired}`).on(async()=>{if(console.debug(`[AppLoader] Event received: 'auth:${$i.PasswordChangeRequired}', going to login`),o.error("Password change required, please change your password."),h(!0,"Password change required, please change your password."),s.currentRoute.value.name!==pn.Login){const T=u.value&&u.value!=="/"?u.value:s.currentRoute.value.fullPath;await s.push({name:pn.Login,query:{redirect:T}})}h(!1)}),Si("backend:start-retry").on(()=>{console.debug("[AppLoader] Event received: backend:start-retry, starting retry loop"),n.startRetry(QP),v()}),Ne(()=>t.wizardState?.wizardCompleted,async(T,x)=>{if(T&&!x){const R=s.currentRoute.value.name;if(R===pn.Login||R===pn.Registration){console.debug("[AppLoader] Wizard completed but already on auth page, skipping loadApp");return}console.debug("[AppLoader] Wizard completed detected, triggering app load"),await I()}}),Au(()=>{y(),l.socketState().setup&&l.disconnect()});async function I(){n.setLoading(!0);const T=["Loading FDM Monster","Loading it all","Loading features","Loading what needs to be loaded","Farming potatoes","Wiping the floor","Cleaning cobwebs","Loading filament.dll","Loading 3D_printer.exe","Loading spools","Forking PrusaSlicer","Filling progress bar","Eating printed spaghetti"],x=T[Math.floor(Math.random()*T.length)];h(!0,x);try{await jo.test()}catch(L){n.setServerDisconnected(!0),Ks(L),n.startRetry(5e3),v();return}const{loginRequired:R,wizardState:O}=await t.checkAuthenticationRequirements();if(!O.wizardCompleted){console.debug("[AppLoader] Wizard not completed, going to wizard"),await t.logout(!1),s.currentRoute.value.name!==pn.FirstTimeSetup&&await s.replace({name:pn.FirstTimeSetup}),h(!1);return}if(!R)return console.debug("[AppLoader] Login not required, loading app"),await b();if(console.debug("[AppLoader] Checking if tokens are present"),!t.hasAuthToken&&!t.hasRefreshToken)return console.debug("[AppLoader] No tokens present, hiding overlay as router will have handled it"),h(!1);h(!0,"Refreshing login"),console.debug("[AppLoader] Verifying or refreshing login once");try{const{success:L,handled:F}=await t.verifyOrRefreshLoginOnceOrLogout();if(F){console.debug("[AppLoader] received handled event, hiding overlay");return}if(!L){if(console.debug("[AppLoader] No success refreshing"),h(!0,"Login expired, going back to login"),s.currentRoute.value.name!==pn.Login){const W=u.value&&u.value!=="/"?u.value:s.currentRoute.value.fullPath;console.debug("[AppLoader] Token refresh failed, redirecting to login with redirect:",W),await s.push({name:pn.Login,query:{redirect:W}})}h(!1);return}}catch(L){console.log("[AppLoader] Error when refreshing login",L),n.setLoading(!1),n.setError(L.message,L.config?.url,L.response?.data),Ks(L);return}await b()}return al(async()=>{u.value=s.currentRoute.value.fullPath,console.debug("[AppLoader] Initial route captured:",u.value),await I()}),(T,x)=>(N(),le(De,null,[ne(n).overlay?se("",!0):cu(T.$slots,"default",{key:0}),f(vo,{modelValue:ne(n).overlay,"onUpdate:modelValue":x[0]||(x[0]=R=>ne(n).overlay=R),scrim:d.value,opacity:"0.98",persistent:"","no-click-animation":"",class:"align-center justify-center"},{default:m(()=>[f(cpe),f(Epe),f(Dpe)]),_:1},8,["modelValue","scrim"])],64))}}),Fpe=Ee({...tt(),...Rn(U$(),["fullHeight"]),...wn()},"VApp"),$pe=$e()({name:"VApp",props:Fpe(),setup(e,t){let{slots:n}=t;const r=On(e),{layoutClasses:i,getLayoutItem:a,items:s,layoutRef:o}=W$({...e,fullHeight:!0}),{rtlClasses:l}=Or();return Ue(()=>S("div",{ref:o,class:Oe(["v-application",r.themeClasses.value,i.value,l.value,e.class]),style:We([e.style])},[S("div",{class:"v-application__wrap"},[n.default?.()])])),{getLayoutItem:a,items:s,theme:r}}}),Mpe=Ee({scrollable:Boolean,...tt(),...Hr(),...Jt({tag:"main"})},"VMain"),Vpe=$e()({name:"VMain",props:Mpe(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=Wr(e),{mainStyles:i}=z$(),{ssrBootStyles:a}=um();return Ue(()=>f(e.tag,{class:Oe(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:We([i.value,a.value,r.value,e.style])},{default:()=>[e.scrollable?S("div",{class:"v-main__scroller"},[n.default?.()]):n.default?.()]})),{}}}),Bpe=je({__name:"App",setup(e){const t=uk(),n=Rs(),r=Dd(),i=t.queuedUploads;return Ne(i,async()=>{await t.handleNextUpload()}),Nt(()=>{console.debug(`App.vue mounted. Logged in: ${n.hasAuthToken}, Expired: ${n.isLoginExpired}`)}),(a,s)=>{const o=epe,l=Xfe,u=Hfe,c=Dfe,d=Rfe,p=Vf("router-view"),h=cde,g=Uue,v=Iue,y=kue,b=wue,E=Jle,w=xle,C=Use,P=lie,_=kne,A=Yte,I=Wte,T=Ute,x=gee;return N(),Z($pe,null,{default:m(()=>[f(o),f(l),f(u),!ne(r).loading&&ne(n).wizardState?.wizardCompleted&&(ne(n).hasAuthToken&&!ne(n).isLoginExpired||!ne(n).loginRequired)?(N(),Z(c,{key:0})):se("",!0),!ne(r).loading&&ne(n).wizardState?.wizardCompleted&&(ne(n).hasAuthToken&&!ne(n).isLoginExpired||!ne(n).loginRequired)?(N(),Z(d,{key:1})):se("",!0),f(Lpe,null,{default:m(()=>[f(Vpe,null,{default:m(()=>[f(p)]),_:1})]),_:1}),f(h),f(g),f(v),f(y),f(b),f(E),f(w),f(C),f(P),f(_),f(A),f(I),f(T),f(x)]),_:1})}}});function Upe(e,t=24){const n=Date.now()-t*60*60*1e3,r=e.filter(a=>(a.endedAt?new Date(a.endedAt).getTime():new Date(a.createdAt).getTime())>=n&&(a.status==="COMPLETED"||a.status==="FAILED"));if(r.length===0)return 0;const i=r.filter(a=>a.status==="COMPLETED").length;return Math.round(i/r.length*100)}function jpe(e){return e.filter(t=>t.status==="PRINTING"||t.status==="STARTING").length}function ZP(e,t,n=24){const r=Date.now()-n*60*60*1e3;return e.filter(i=>i.status!==t?!1:(i.endedAt?new Date(i.endedAt).getTime():new Date(i.createdAt).getTime())>=r).length}function zpe(e,t=24){const n=Date.now()-t*60*60*1e3,r=e.filter(a=>a.status!=="COMPLETED"||!a.statistics?.actualPrintTimeSeconds?!1:(a.endedAt?new Date(a.endedAt).getTime():new Date(a.createdAt).getTime())>=n);return r.length===0?0:r.reduce((a,s)=>a+(s.statistics?.actualPrintTimeSeconds||0),0)/r.length/3600}function Hpe(e,t=24){const n=Date.now()-t*60*60*1e3;return e.filter(a=>a.statistics?.actualPrintTimeSeconds?(a.endedAt?new Date(a.endedAt).getTime():new Date(a.createdAt).getTime())>=n:!1).reduce((a,s)=>a+(s.statistics?.actualPrintTimeSeconds||0),0)/3600}function Wpe(e){if(e===0)return"0m";const t=Math.floor(e),n=Math.round((e-t)*60);return t===0?`${n}m`:n===0?`${t}h`:`${t}h ${n}m`}function Gpe(e,t=24){return{successRate:Upe(e,t),activeJobs:jpe(e),completedLast24h:ZP(e,"COMPLETED",t),failedLast24h:ZP(e,"FAILED",t),averagePrintTimeHours:zpe(e,t),totalPrintTimeHours:Hpe(e,t)}}const qpe={class:"text-h4 font-weight-bold text-green"},Kpe={class:"text-h4 font-weight-bold text-blue"},Ype={class:"text-h4 font-weight-bold text-orange"},Xpe={class:"text-h4 font-weight-bold text-purple"},Jpe={class:"text-h6 mb-4 d-flex align-center"},Qpe={class:"d-flex align-center justify-space-between mb-4"},Zpe={class:"text-h6 d-flex align-center"},eme={class:"d-flex align-center ga-2"},tme={key:0,class:"printer-status-grid"},nme={class:"printer-name text-subtitle-2 font-weight-medium mb-1"},rme={key:0,class:"mt-2"},ime={class:"text-caption"},sme={key:0,class:"text-center mt-3"},ame={key:1,class:"text-center py-8"},ome={class:"text-h6 mb-4 d-flex align-center"},lme={class:"mb-4"},ume={class:"d-flex justify-space-between align-center mb-2"},cme={class:"mb-4"},dme={class:"d-flex justify-space-between align-center mb-2"},fme={class:"text-green"},pme={class:"mt-6"},mme={class:"d-flex justify-space-between py-2 border-b"},hme={class:"d-flex justify-space-between py-2 border-b"},gme={class:"d-flex justify-space-between py-2"},vme=je({__name:"DashboardView",setup(e){const t=ns(),n=vn(),r=jr(),i=z([]),{data:a}=eV(),{selectedTags:s,selectedPrinterTypes:o,tags:l,loadTags:u,filterPrinters:c}=hl();Nt(async()=>{await u(),await d()});async function d(){try{const M=new Date;M.setDate(M.getDate()-7);const K=await Jr.searchJobsPaged({startDate:M.toISOString().split("T")[0],page:1,pageSize:500});i.value=K.items}catch(M){console.error("Failed to load recent jobs:",M),i.value=[]}}const p=D(()=>n.printers),h=D(()=>c(p.value)),g=D(()=>p.value.length),v=D(()=>r.printingCount),y=D(()=>r.operationalNotPrintingCount),b=D(()=>p.value.filter(M=>{const K=r.printerEventsById[M.id];return IS(M,K)||eo(M)}).length),E=D(()=>g.value===0),w=D(()=>g.value===0?0:Math.round(v.value/g.value*100)),C=D(()=>Gpe(i.value,24)),P=D(()=>C.value.successRate),_=D(()=>C.value.activeJobs),A=D(()=>a.value?.totalJobs||0),I=D(()=>Wpe(C.value.averagePrintTimeHours)),T=()=>{t.push("/printer-grid")},x=()=>{t.push("/printer-list")},R=()=>{t.push("/cameras")},O=()=>{t.push("/jobs")},L=()=>{globalThis.open("https://docs.fdm-monster.net","_blank")},F=()=>{zt(Ht.YamlImportExport).openDialog()},W=()=>{zt(Ht.ImportOctoFarmDialog).openDialog()},H=()=>{t.push("/printer-grid")},B=M=>{const K=r.printerEventsById[M.id];return TS(K)},$=M=>{const K=r.printerEventsById[M.id];return eo(M)?"MAINTENANCE":xx(M)?"DISABLED":IS(M,K)?"OFFLINE":TS(K)?"PRINTING":"READY"},Y=M=>{switch($(M)){case"PRINTING":return"success";case"READY":return"primary";case"MAINTENANCE":return"warning";case"OFFLINE":return"error";case"DISABLED":return"secondary";default:return"surface"}},q=M=>{const K=$(M);return{"border-l-4 border-success":K==="PRINTING","border-l-4 border-primary":K==="READY","border-l-4 border-warning":K==="MAINTENANCE","border-l-4 border-error":K==="OFFLINE","border-l-4 border-secondary":K==="DISABLED"}},U=M=>r.printerEventsById[M.id]?.current?.payload?.progress?.completion||0;return(M,K)=>(N(),Z(ts,{fluid:"",class:"pa-4"},{default:m(()=>[f(ct,{class:"mb-6"},{default:m(()=>[f(Ae,null,{default:m(()=>[...K[3]||(K[3]=[S("div",{class:"text-center mb-2"},[S("h1",{class:"text-h4 font-weight-bold"},"Welcome to FDM Monster"),S("p",{class:"text-subtitle-1 text-medium-emphasis mb-0"}," Manage your 3D print farm with ease ")],-1)])]),_:1})]),_:1}),f(ct,{class:"mb-6"},{default:m(()=>[f(Ae,{cols:"12",sm:"6",md:"3"},{default:m(()=>[f(Ve,{class:"text-center pa-4",elevation:"2"},{default:m(()=>[f(j,{color:"green",size:"48",class:"mb-2"},{default:m(()=>[...K[4]||(K[4]=[k("print",-1)])]),_:1}),S("h2",qpe,V(v.value),1),K[5]||(K[5]=S("p",{class:"text-subtitle-2"},"Currently Printing",-1))]),_:1})]),_:1}),f(Ae,{cols:"12",sm:"6",md:"3"},{default:m(()=>[f(Ve,{class:"text-center pa-4",elevation:"2"},{default:m(()=>[f(j,{color:"blue",size:"48",class:"mb-2"},{default:m(()=>[...K[6]||(K[6]=[k("settings",-1)])]),_:1}),S("h2",Kpe,V(y.value),1),K[7]||(K[7]=S("p",{class:"text-subtitle-2"},"Ready to Print",-1))]),_:1})]),_:1}),f(Ae,{cols:"12",sm:"6",md:"3"},{default:m(()=>[f(Ve,{class:"text-center pa-4",elevation:"2"},{default:m(()=>[f(j,{color:"orange",size:"48",class:"mb-2"},{default:m(()=>[...K[8]||(K[8]=[k("warning",-1)])]),_:1}),S("h2",Ype,V(b.value),1),K[9]||(K[9]=S("p",{class:"text-subtitle-2"},"Offline / Issues",-1))]),_:1})]),_:1}),f(Ae,{cols:"12",sm:"6",md:"3"},{default:m(()=>[f(Ve,{class:"text-center pa-4",elevation:"2"},{default:m(()=>[f(j,{color:"purple",size:"48",class:"mb-2"},{default:m(()=>[...K[10]||(K[10]=[k("inventory",-1)])]),_:1}),S("h2",Xpe,V(g.value),1),K[11]||(K[11]=S("p",{class:"text-subtitle-2"},"Total Printers",-1))]),_:1})]),_:1})]),_:1}),E.value?(N(),Z(ct,{key:0,class:"mb-6"},{default:m(()=>[f(Ae,null,{default:m(()=>[f(kt,{type:"info",variant:"tonal",class:"mb-4",icon:"rocket_launch"},{default:m(()=>[f(d$,{class:"mb-2"},{default:m(()=>[...K[12]||(K[12]=[k("Welcome to FDM Monster!",-1)])]),_:1}),K[17]||(K[17]=S("p",{class:"mb-3"}," It looks like you're just getting started. Let's help you set up your 3D print farm. ",-1)),f(te,{color:"primary",variant:"elevated",class:"mr-3",onClick:T},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...K[13]||(K[13]=[k("add",-1)])]),_:1}),K[14]||(K[14]=k(" Add Your First Printer ",-1))]),_:1}),f(te,{variant:"outlined",onClick:L},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...K[15]||(K[15]=[k("help",-1)])]),_:1}),K[16]||(K[16]=k(" View Documentation ",-1))]),_:1})]),_:1})]),_:1})]),_:1})):se("",!0),f(ct,{class:"mb-6"},{default:m(()=>[f(Ae,null,{default:m(()=>[f(Ve,{class:"pa-4",elevation:"2"},{default:m(()=>[S("h3",Jpe,[f(j,{class:"mr-2"},{default:m(()=>[...K[18]||(K[18]=[k("flash_on",-1)])]),_:1}),K[19]||(K[19]=k(" Quick Actions ",-1))]),f(vS,{class:"d-flex flex-wrap ga-2"},{default:m(()=>[f(te,{color:"primary",variant:"elevated",onClick:T},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...K[20]||(K[20]=[k("view_module",-1)])]),_:1}),K[21]||(K[21]=k(" View Printer Grid ",-1))]),_:1}),f(te,{color:"secondary",variant:"elevated",onClick:x},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...K[22]||(K[22]=[k("view_module",-1)])]),_:1}),K[23]||(K[23]=k(" View Printer List ",-1))]),_:1}),f(te,{color:"success",variant:"elevated",onClick:R},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...K[24]||(K[24]=[k("camera_alt",-1)])]),_:1}),K[25]||(K[25]=k(" View Cameras ",-1))]),_:1}),f(te,{color:"warning",variant:"elevated",onClick:O},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...K[26]||(K[26]=[k("analytics",-1)])]),_:1}),K[27]||(K[27]=k(" View Jobs ",-1))]),_:1}),f(te,{variant:"elevated",color:"primary",onClick:F},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...K[28]||(K[28]=[k("code",-1)])]),_:1}),K[29]||(K[29]=k(" Import/Export backup ",-1))]),_:1}),f(te,{variant:"elevated",color:"purple",onClick:W},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...K[30]||(K[30]=[k("publish",-1)])]),_:1}),K[31]||(K[31]=k(" Import OctoFarm printers ",-1))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),f(ct,null,{default:m(()=>[f(Ae,{cols:"12",md:"8"},{default:m(()=>[f(Ve,{class:"pa-4 fill-height",elevation:"2"},{default:m(()=>[S("div",Qpe,[S("h3",Zpe,[f(j,{class:"mr-2"},{default:m(()=>[...K[32]||(K[32]=[k("timeline",-1)])]),_:1}),K[33]||(K[33]=k(" Farm Status Overview ",-1))]),S("div",eme,[f(Bu,{modelValue:ne(s),"onUpdate:modelValue":K[0]||(K[0]=fe=>Tt(s)?s.value=fe:null),tags:ne(l),label:"Tags",style:{width:"200px"}},null,8,["modelValue","tags"]),f(Uu,{modelValue:ne(o),"onUpdate:modelValue":K[1]||(K[1]=fe=>Tt(o)?o.value=fe:null),label:"Type",style:{width:"200px"}},null,8,["modelValue"])])]),g.value>0?(N(),le("div",tme,[(N(!0),le(De,null,Vt(h.value.slice(0,8),fe=>(N(),le("div",{key:fe.id,class:"printer-status-item",onClick:K[2]||(K[2]=he=>H())},[f(Ve,{class:Oe(["pa-3 text-center cursor-pointer hover-effect",q(fe)]),elevation:"1"},{default:m(()=>[S("div",nme,V(fe.name),1),f(He,{color:Y(fe),size:"x-small",variant:"elevated"},{default:m(()=>[k(V($(fe)),1)]),_:2},1032,["color"]),B(fe)?(N(),le("div",rme,[f(si,{"model-value":U(fe),height:"4",color:"success",class:"mb-1"},null,8,["model-value"]),S("div",ime,V(U(fe))+"% ",1)])):se("",!0)]),_:2},1032,["class"])]))),128)),g.value>8?(N(),le("div",sme,[f(te,{variant:"outlined",size:"small",onClick:T},{default:m(()=>[k(" View All "+V(g.value)+" Printers ",1)]),_:1})])):se("",!0)])):(N(),le("div",ame,[f(j,{size:"80",color:"surface-variant",class:"mb-4"},{default:m(()=>[...K[34]||(K[34]=[k(" add_circle ",-1)])]),_:1}),K[37]||(K[37]=S("h3",{class:"text-h6 mb-2"},"No printers configured",-1)),K[38]||(K[38]=S("p",{class:"text-body-2 text-medium-emphasis mb-4"}," Add your first 3D printer to start monitoring your farm ",-1)),f(te,{color:"primary",variant:"elevated",onClick:T},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...K[35]||(K[35]=[k("add",-1)])]),_:1}),K[36]||(K[36]=k(" Add Printer ",-1))]),_:1})]))]),_:1})]),_:1}),f(Ae,{cols:"12",md:"4"},{default:m(()=>[f(Ve,{class:"pa-4 fill-height",elevation:"2"},{default:m(()=>[S("h3",ome,[f(j,{class:"mr-2"},{default:m(()=>[...K[39]||(K[39]=[k("trending_up",-1)])]),_:1}),K[40]||(K[40]=k(" Performance Insights ",-1))]),S("div",lme,[S("div",ume,[K[41]||(K[41]=S("span",{class:"text-body-2"},"Farm Utilization",-1)),S("strong",null,V(w.value)+"%",1)]),f(si,{"model-value":w.value,color:"primary",height:"8",rounded:""},null,8,["model-value"])]),S("div",cme,[S("div",dme,[K[42]||(K[42]=S("span",{class:"text-body-2"},"Success Rate (24h)",-1)),S("strong",fme,V(P.value)+"%",1)]),f(si,{"model-value":P.value,color:"success",height:"8",rounded:""},null,8,["model-value"])]),S("div",pme,[S("div",mme,[K[43]||(K[43]=S("span",{class:"text-body-2"},"Active Jobs",-1)),S("strong",null,V(_.value),1)]),S("div",hme,[K[44]||(K[44]=S("span",{class:"text-body-2"},"Queue Length",-1)),S("strong",null,V(A.value),1)]),S("div",gme,[K[45]||(K[45]=S("span",{class:"text-body-2"},"Avg. Print Time",-1)),S("strong",null,V(I.value),1)])]),f(te,{color:"primary",variant:"outlined",block:"",class:"mt-4",onClick:O},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...K[46]||(K[46]=[k("analytics",-1)])]),_:1}),K[47]||(K[47]=k(" View Job Analytics ",-1))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}}),eA=En(vme,[["__scopeId","data-v-e3a2a413"]]),yme={class:"d-flex align-center ga-1 pa-2 rounded",style:{"background-color":"rgba(255,255,255,0.05)"}},bme={class:"text-body-2",style:{"min-width":"20px","text-align":"center"}},Sme={class:"text-body-2",style:{"min-width":"20px","text-align":"center"}},wme=je({__name:"GridSizeControl",setup(e){const t=fs();async function n(){!t.frontendSettings||t.frontendSettings.gridRows>=16||await t.updateFrontendSettings({...t.frontendSettings,gridRows:t.frontendSettings.gridRows+1})}async function r(){!t.frontendSettings||t.frontendSettings.gridRows<=1||await t.updateFrontendSettings({...t.frontendSettings,gridRows:t.frontendSettings.gridRows-1})}async function i(){!t.frontendSettings||t.frontendSettings.gridCols>=12||await t.updateFrontendSettings({...t.frontendSettings,gridCols:t.frontendSettings.gridCols+1})}async function a(){!t.frontendSettings||t.frontendSettings.gridCols<=1||await t.updateFrontendSettings({...t.frontendSettings,gridCols:t.frontendSettings.gridCols-1})}return(s,o)=>(N(),le("div",yme,[f(j,{size:"x-small"},{default:m(()=>[...o[4]||(o[4]=[k("table_rows",-1)])]),_:1}),f(te,{size:"x-small",icon:"",variant:"text",disabled:ne(t).gridRows<=1,onClick:o[0]||(o[0]=l=>r())},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...o[5]||(o[5]=[k("remove",-1)])]),_:1})]),_:1},8,["disabled"]),S("span",bme,V(ne(t).gridRows),1),f(te,{size:"x-small",icon:"",variant:"text",disabled:ne(t).gridRows>=16,onClick:o[1]||(o[1]=l=>n())},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...o[6]||(o[6]=[k("add",-1)])]),_:1})]),_:1},8,["disabled"]),f(et,{vertical:"",class:"mx-1"}),f(j,{size:"x-small"},{default:m(()=>[...o[7]||(o[7]=[k("view_column",-1)])]),_:1}),f(te,{size:"x-small",icon:"",variant:"text",disabled:ne(t).gridCols<=1,onClick:o[2]||(o[2]=l=>a())},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...o[8]||(o[8]=[k("remove",-1)])]),_:1})]),_:1},8,["disabled"]),S("span",Sme,V(ne(t).gridCols),1),f(te,{size:"x-small",icon:"",variant:"text",disabled:ne(t).gridCols>=12,onClick:o[3]||(o[3]=l=>i())},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...o[9]||(o[9]=[k("add",-1)])]),_:1})]),_:1},8,["disabled"])]))}}),Eme=Ee({...cy({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),uw=$e()({name:"VRadio",props:Eme(),setup(e,t){let{slots:n}=t;return Ue(()=>{const r=Eu.filterProps(e);return f(Eu,ve(r,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)}),{}}}),xme=Ee({height:{type:[Number,String],default:"auto"},...ml(),...Rn(zx(),["multiple"]),trueIcon:{type:rt,default:"$radioOn"},falseIcon:{type:rt,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),wV=$e()({name:"VRadioGroup",inheritAttrs:!1,props:xme(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const i=Ti(),a=D(()=>e.id||`radio-group-${i}`),s=gt(e,"modelValue"),o=z();return Ue(()=>{const[l,u]=dl(n),c=Yi.filterProps(e),d=Eu.filterProps(e),p=r.label?r.label({label:e.label,props:{for:a.value}}):e.label;return f(Yi,ve({ref:o,class:["v-radio-group",e.class],style:e.style},l,c,{modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,id:a.value}),{...r,default:h=>{let{id:g,messagesId:v,isDisabled:y,isReadonly:b}=h;return S(De,null,[p&&f(iy,{id:g.value},{default:()=>[p]}),f(fle,ve(d,{id:g.value,"aria-describedby":v.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:y.value,readonly:b.value,"aria-labelledby":p?g.value:void 0,multiple:!1},u,{modelValue:s.value,"onUpdate:modelValue":E=>s.value=E}),r)])}})}),fi({},o)}}),kme=je({__name:"GridSettingsMenu",setup(e){const t=fs(),n=z(t.largeTiles),r=z(t.preferCancelOverQuickStop),i=z(t.gridNameSortDirection);async function a(l){t.frontendSettings&&await t.updateFrontendSettings({...t.frontendSettings,largeTiles:l??!1})}async function s(l){t.frontendSettings&&await t.updateFrontendSettings({...t.frontendSettings,tilePreferCancelOverQuickStop:l??!1})}async function o(l){!t.frontendSettings||!l||await t.updateFrontendSettings({...t.frontendSettings,gridNameSortDirection:l})}return(l,u)=>(N(),Z(li,{"close-on-content-click":!1},{activator:m(({props:c})=>[f(te,ve(c,{variant:"text",size:"small",icon:"settings"}),null,16)]),default:m(()=>[f(Ve,{"min-width":"280"},{default:m(()=>[f(st,{class:"text-subtitle-1"},{default:m(()=>[f(j,{class:"mr-2",size:"small"},{default:m(()=>[...u[3]||(u[3]=[k("settings",-1)])]),_:1}),u[4]||(u[4]=k(" Grid Settings ",-1))]),_:1}),f(qe,null,{default:m(()=>[f(Nn,{modelValue:n.value,"onUpdate:modelValue":[u[0]||(u[0]=c=>n.value=c),a],label:"Large tiles",density:"compact","hide-details":""},null,8,["modelValue"]),f(Nn,{modelValue:r.value,"onUpdate:modelValue":[u[1]||(u[1]=c=>r.value=c),s],label:"Show cancel instead of quick stop",density:"compact","hide-details":"",class:"mt-2"},null,8,["modelValue"]),f(et,{class:"my-3"}),u[5]||(u[5]=S("div",{class:"text-caption text-medium-emphasis mb-2"}," Name Sort Direction ",-1)),f(wV,{modelValue:i.value,"onUpdate:modelValue":[u[2]||(u[2]=c=>i.value=c),o],density:"compact","hide-details":""},{default:m(()=>[f(uw,{label:"Horizontal (left to right)",value:"horizontal",density:"compact"}),f(uw,{label:"Vertical (top to bottom)",value:"vertical",density:"compact"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),gy="FDM-Monster-Client-Vue2",EV={TILE_DRAG_START:"tile-drag-start"};var vy=(e=>(e.PRINTER_PLACE="PRINTER_PLACE",e))(vy||{});function Cme(e){return!e?.appId?.length||!e?.intent?.length?!1:e.appId===gy&&e.intent==="PRINTER_PLACE"}const _me={class:"d-flex flex-wrap ga-2"},Tme={class:"font-weight-medium"},Ime=je({__name:"HomeToolbar",setup(e){const t=Xi(),n=ek(),r=fs(),i=z(!1),{selectedTags:a,selectedPrinterTypes:s,tags:o,loadTags:l}=hl(),u=D(()=>t.selectedFloorIndex),c=D(()=>t.floors),d=D(()=>n.sortMode==="position"?0:1);Nt(async()=>{await l()});function p(E){t.changeSelectedFloorByIndex(E)}function h(E){n.setTagFilter(E)}function g(E){n.setPrinterTypeFilter(E)}function v(E){n.setSortMode(E===0?"position":"name")}function y(E,w){!w.dataTransfer||!E.id||w.dataTransfer.setData("text",JSON.stringify({appId:gy,intent:vy.PRINTER_PLACE,printerId:E.id}))}async function b(){if(t.selectedFloor){i.value=!0;try{const E=[...t.floorlessPrinters].sort((I,T)=>I.printerType!==T.printerType?I.printerType-T.printerType:I.name.localeCompare(T.name)),w=r.gridCols,C=r.gridRows,P=new Set(t.selectedFloor.printers.map(I=>`${I.x},${I.y}`)),_=[];for(let I=0;I<C;I++)for(let T=0;T<w;T++){const x=`${T},${I}`;P.has(x)||_.push({x:T,y:I})}const A=Math.min(E.length,_.length);for(let I=0;I<A;I++){const T=E[I],x=_[I];await t.addPrinterToFloor({floorId:t.selectedFloor.id,printerId:T.id,x:x.x,y:x.y})}}catch(E){console.error("Failed to auto-place printers:",E)}finally{i.value=!1}}}return(E,w)=>(N(),Z(Kg,{flat:"",color:"surface",class:"text-on-surface"},{default:m(()=>[f(Rg,{"model-value":u.value,class:"ml-4",rounded:"",mandatory:"","onUpdate:modelValue":p},{default:m(()=>[(N(!0),le(De,null,Vt(c.value,C=>(N(),Z(te,{key:C.id,size:"small"},{default:m(()=>[f(j,null,{default:m(()=>[...w[2]||(w[2]=[k("layers",-1)])]),_:1}),k(" "+V(C.name),1)]),_:2},1024))),128))]),_:1},8,["model-value"]),f(Bu,{modelValue:ne(a),"onUpdate:modelValue":[w[0]||(w[0]=C=>Tt(a)?a.value=C:null),h],tags:ne(o),label:"Filter by tags",class:"ml-4",style:{"max-width":"300px"}},null,8,["modelValue","tags"]),f(Uu,{modelValue:ne(s),"onUpdate:modelValue":[w[1]||(w[1]=C=>Tt(s)?s.value=C:null),g],label:"Filter by type",class:"ml-2",style:{"max-width":"300px"}},null,8,["modelValue"]),f(Rg,{"model-value":d.value,class:"ml-4",rounded:"",mandatory:"","onUpdate:modelValue":v},{default:m(()=>[f(te,{size:"small",title:"Position mode - Sort by grid position"},{default:m(()=>[f(j,null,{default:m(()=>[...w[3]||(w[3]=[k("grid_on",-1)])]),_:1}),w[4]||(w[4]=k(" Position ",-1))]),_:1}),f(te,{size:"small",title:"Name mode - Sort alphabetically. Change direction in grid settings."},{default:m(()=>[f(j,null,{default:m(()=>[...w[5]||(w[5]=[k("sort_by_alpha",-1)])]),_:1}),w[6]||(w[6]=k(" Name ",-1))]),_:1})]),_:1},8,["model-value"]),ne(t).floorlessPrinters.length?(N(),Z(te,{key:0,color:"primary",variant:"elevated",size:"small",class:"ml-4",onClick:b,loading:i.value},{default:m(()=>[f(j,{start:""},{default:m(()=>[...w[7]||(w[7]=[k("grid_on",-1)])]),_:1}),w[8]||(w[8]=k(" Auto Place ",-1))]),_:1},8,["loading"])):se("",!0),ne(t).floorlessPrinters.length?(N(),Z(li,{key:1,"close-on-content-click":!1},{activator:m(({props:C})=>[f(te,ve(C,{color:"warning",variant:"tonal",size:"small",class:"ml-2"}),{default:m(()=>[f(j,{start:""},{default:m(()=>[...w[9]||(w[9]=[k("warning",-1)])]),_:1}),k(" "+V(ne(t).floorlessPrinters.length)+" Unplaced ",1)]),_:1},16)]),default:m(()=>[f(Ve,{"min-width":"300"},{default:m(()=>[f(st,{class:"text-subtitle-1"},{default:m(()=>[f(j,{class:"mr-2",color:"warning"},{default:m(()=>[...w[10]||(w[10]=[k("warning",-1)])]),_:1}),w[11]||(w[11]=k(" Unplaced Printers ",-1))]),_:1}),f(qe,null,{default:m(()=>[w[13]||(w[13]=S("div",{class:"text-caption mb-2 text-medium-emphasis"}," Drag these printers onto the grid or use Auto Place: ",-1)),S("div",_me,[(N(!0),le(De,null,Vt(ne(t).floorlessPrinters,C=>(N(),Z(He,{key:C.id,draggable:"",size:"small",color:"warning",style:{cursor:"move"},onDragstart:P=>y(C,P)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...w[12]||(w[12]=[k("drag_indicator",-1)])]),_:1}),S("span",Tme,V(C.name),1),f(He,{size:"x-small",variant:"flat",class:"ml-2 px-2",style:{height:"18px"}},{default:m(()=>[k(V(ne(us)(C.printerType)),1)]),_:2},1024)]),_:2},1032,["onDragstart"]))),128))])]),_:1})]),_:1})]),_:1})):se("",!0),f(ht),f(wme,{class:"ml-4"}),f(kme,{class:"ml-4"})]),_:1}))}});function Pme(e,t,n=!0){return e?t.map(r=>({file:r,printer:e,startPrint:n})):[]}function xV(e,t,n=!0){return!e?.length||!t?[]:e.map(r=>({file:t,printer:r,startPrint:n}))}const Ame=Ee({color:String,density:String,...tt()},"VBannerActions"),Rme=$e()({name:"VBannerActions",props:Ame(),setup(e,t){let{slots:n}=t;return Er({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),Ue(()=>S("div",{class:Oe(["v-banner-actions",e.class]),style:We(e.style)},[n.default?.()])),{}}}),Ome=Nu("v-banner-text"),Nme=Ee({avatar:String,bgColor:String,color:String,icon:rt,lines:String,stacked:Boolean,sticky:Boolean,text:String,...Ls(),...tt(),...Ar(),...Hr(),...Fu({mobile:null}),...Pi(),...pl(),..._d(),...gr(),...Jt(),...wn()},"VBanner"),Dme=$e()({name:"VBanner",props:Nme(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:i}=Un(()=>e.bgColor),{borderClasses:a}=ta(e),{densityClasses:s}=ps(e),{displayClasses:o,mobile:l}=ra(e),{dimensionStyles:u}=Wr(e),{elevationClasses:c}=es(e),{locationStyles:d}=Lu(e),{positionClasses:p}=Td(e),{roundedClasses:h}=kr(e),{themeClasses:g}=On(e),v=ae(()=>e.color),y=ae(()=>e.density);Er({VBannerActions:{color:v,density:y}}),Ue(()=>{const b=!!(e.text||n.text),E=!!(e.avatar||e.icon),w=!!(E||n.prepend);return f(e.tag,{class:Oe(["v-banner",{"v-banner--stacked":e.stacked||l.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},g.value,r.value,a.value,s.value,o.value,c.value,p.value,h.value,e.class]),style:We([i.value,u.value,d.value,e.style]),role:"banner"},{default:()=>[w&&S("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?f(nn,{key:"prepend-defaults",disabled:!E,defaults:{VAvatar:{color:v.value,density:y.value,icon:e.icon,image:e.avatar}}},n.prepend):f(Sn,{key:"prepend-avatar",color:v.value,density:y.value,icon:e.icon,image:e.avatar},null)]),S("div",{class:"v-banner__content"},[b&&f(Ome,{key:"text"},{default:()=>[n.text?.()??e.text]}),n.default?.()]),n.actions&&f(Rme,{key:"actions"},n.actions)]})})}}),Lme={class:"pl-1"},Fme=je({__name:"UploadToolbar",setup(e){const t=vn(),n=jr(),r=uk(),i=Xt(),a=z(void 0),s=z(null),o=D(()=>t.selectedPrinters.length>0),l=D(()=>t.selectedPrinters),u=()=>{s.value&&s.value.files?a.value=s.value.files[0]:a.value=void 0},c=()=>{s.value&&(s.value.value="",a.value=void 0)},d=async()=>{const y=t.selectedPrinters?.map(E=>E.id)??[],b=await zt(Ht.BatchReprintDialog).handleAsync(y);console.log("[PrinterGridView] Dialog completed",b)},p=y=>{const b=l.value,E=b.filter(P=>n.isApiResponding(P.id));if(!a.value)return;const w=b.length-E.length;w>0&&i.openInfoMessage({title:`${w} printers inaccessible`,subtitle:"These were skipped from uploading."});const C=xV(E,a.value,y);r.queueUploads(C),s.value&&(s.value.value=""),g()},h=y=>{t.toggleSelectedPrinter(y)},g=()=>{t.clearSelectedPrinters()},v=y=>{xn.openPrinterURL(y.printerURL)};return(y,b)=>{const E=Bf("drop-upload");return dn((N(),Z(Dme,null,{default:m(()=>[f(ct,{style:{"margin-bottom":"-5px"}},{default:m(()=>[f(Ae,{style:{padding:"5px 0 0 15px"}},{default:m(()=>[f($I,{class:"d-inline-block"},{default:m(()=>[l.value.length===0?(N(),Z(He,{key:0,size:"small"},{default:m(()=>[...b[7]||(b[7]=[k(" No selected printers ",-1)])]),_:1})):se("",!0),(N(!0),le(De,null,Vt(l.value,w=>(N(),Z(He,{key:w.id,closable:"",color:"primary",size:"small",onClick:C=>v(w),"onClick:close":C=>h(w)},{default:m(()=>[k(V(w.name),1)]),_:2},1032,["onClick","onClick:close"]))),128))]),_:1})]),_:1}),f(Ae,{align:"right",style:{padding:"0"}},{default:m(()=>[ne(a)?(N(),Z($I,{key:0,class:"float-end"},{default:m(()=>[f(He,{closable:"","onClick:close":b[0]||(b[0]=w=>c())},{default:m(()=>[k(V(ne(a).name)+" ",1),S("strong",Lme,V(ne(ap)(ne(a).size)),1)]),_:1})]),_:1})):se("",!0),b[14]||(b[14]=S("br",null,null,-1)),f(te,{disabled:!o.value,color:"primary",variant:"elevated",size:"small",onClick:b[1]||(b[1]=w=>d())},{default:m(()=>[f(j,{class:"pr-2",size:"small"},{default:m(()=>[...b[8]||(b[8]=[k("refresh",-1)])]),_:1}),b[9]||(b[9]=k(" Batch reprint ",-1))]),_:1},8,["disabled"]),f(te,{disabled:l.value.length===0,class:"ml-2",variant:"elevated",size:"small",onClick:b[2]||(b[2]=w=>g())},{default:m(()=>[f(j,{class:"pr-2",size:"small"},{default:m(()=>[...b[10]||(b[10]=[k("delete",-1)])]),_:1}),k(" Clear all ("+V(l.value.length)+") ",1)]),_:1},8,["disabled"]),f(te,{class:"ml-2",variant:"elevated",size:"small",onClick:b[3]||(b[3]=w=>ne(s)?.click())},{default:m(()=>[...b[11]||(b[11]=[k(" Select gcode file ",-1)])]),_:1}),f(te,{disabled:!ne(a),class:"ml-2",color:"success",variant:"elevated",size:"small",onClick:b[4]||(b[4]=w=>p(!1))},{default:m(()=>[...b[12]||(b[12]=[k(" Upload only ",-1)])]),_:1},8,["disabled"]),f(te,{disabled:!ne(a),class:"ml-2 mr-5",color:"success",variant:"elevated",size:"small",onClick:b[5]||(b[5]=w=>p(!0))},{default:m(()=>[...b[13]||(b[13]=[k(" Upload and print ",-1)])]),_:1},8,["disabled"]),S("input",{ref_key:"fileUpload",ref:s,multiple:!1,accept:".gcode,.3mf,.bgcode",style:{display:"none"},type:"file",onChange:b[6]||(b[6]=w=>u())},null,544)]),_:1})]),_:1})]),_:1})),[[E,{printers:l.value}]])}}}),fk="/img/logo.svg",$me=je({__name:"PrinterCreateAction",props:{floorId:{},floorX:{},floorY:{},isFirstTime:{type:Boolean}},setup(e){const t=e,n=zt(Ht.AddOrUpdatePrinterDialog);function r(){n.openDialog({floorId:t.floorId,floorX:t.floorX,floorY:t.floorY})}return(i,a)=>e.isFirstTime?(N(),le("div",{key:0,class:"text-center pa-4 clickable-first-time",onClick:a[0]||(a[0]=on(s=>r(),["stop"]))},[f(j,{size:"large",color:"primary",class:"mb-2"},{default:m(()=>[...a[2]||(a[2]=[k("add_circle",-1)])]),_:1}),a[3]||(a[3]=S("div",{class:"text-subtitle-2 mb-2"},"No printers placed",-1)),a[4]||(a[4]=S("div",{class:"text-caption text-medium-emphasis"},"Click here to add your first printer",-1))])):(N(),Z(te,{key:1,class:"ma-2",color:"primary",size:"small",rounded:"",onClickCapture:a[1]||(a[1]=on(s=>r(),["stop"]))},{default:m(()=>[f(j,null,{default:m(()=>[...a[5]||(a[5]=[k("add",-1)])]),_:1}),a[6]||(a[6]=k(" New printer ",-1))]),_:1}))}}),kV=En($me,[["__scopeId","data-v-89f7b0e1"]]),Mme="thumbnail",Vme=(e,t)=>Ad({queryKey:[Mme,e],queryFn:async()=>e.value?Qa.getThumbnail(e.value).then(n=>n.thumbnailBase64||""):"",enabled:!!e&&!1}),Bme={key:0,class:"temperature-overlay"},Ume={key:0,class:"temp-item"},jme={key:1,class:"temp-item"},zme={class:"d-flex flex flex-column justify-center align-center",style:{height:"100%"}},Hme={key:2,class:"printer-file-or-stream-viewer"},Wme={key:3,class:"printer-file-or-stream-viewer"},Gme={key:4,class:"printer-menu"},qme={class:"file-name"},Kme={key:6,class:"centered-controls"},Yme={key:0},Xme={key:1},tA="rgba(100,100,100,0.1)",Jme=je({__name:"PrinterGridTile",props:{printer:{type:Object,required:!1},x:{type:Number,required:!0},y:{type:Number,required:!0}},setup(e){const t=e,n=vn(),r=jr(),i=Xi(),a=fs(),s=zt(Ht.PrinterControlDialog),o=zt(Ht.AddOrUpdatePrinterDialog),l=fm(),u=Xt(),c=ns(),d=D(()=>t.printer?.id),p=D(()=>t.x===0&&t.y===0),h=D(()=>n.printers.length===0),g=D(()=>a.largeTiles),v=D(()=>g.value?"80px":"40px"),{data:y}=Vme(d),b=D(()=>d.value?r.isApiResponding(d.value):!1),E=D(()=>d.value?r.isPrinterOperational(d.value):!1),w=D(()=>d.value?r.isPrinterPrinting(d.value):!1),C=D(()=>d.value?r.isPrinterPaused(d.value):!1),P=D(()=>d.value?n.isSelectedPrinter(d.value):!1),_=D(()=>n.selectedPrinters?.length&&!P.value),A=D(()=>a.preferCancelOverQuickStop),I=D(()=>{if(!d.value)return;const re=n.printer(d.value);if(!re)return;const X=r.printerEventsById[d.value],ie=r.socketStatesById[d.value];return b$(re,ie,X)}),T=D(()=>{const re=I.value;return re&&re.rgb||tA}),x=D(()=>{if(d.value)return r.printerJobsById[d.value]}),R=D(()=>d.value?x.value?.progress?.completion:void 0),O=D(()=>{if(d.value)return r.printingFilePathsByPrinterId[d.value]}),L=D(()=>{if(!d.value)return null;const re=r.printerEventsById[d.value];return!re?.current?.payload?.temps||re.current.payload.temps.length===0?null:re.current.payload.temps[re.current.payload.temps.length-1]}),F=D(()=>{const re=L.value;return re?.tool0?`${Math.round(re.tool0.actual)}°/${Math.round(re.tool0.target)}°`:null}),W=D(()=>{const re=L.value;return re?.bed?`${Math.round(re.bed.actual)}°/${Math.round(re.bed.target)}°`:null}),H=async()=>{d.value&&await n.sendStopJobCommand(d.value)},B=async()=>{d.value&&await xn.pausePrintJob(d.value)},$=async()=>{d.value&&await xn.resumePrintJob(d.value)},Y=()=>{t.printer&&l.openFileExplorer(t.printer)},q=async()=>{d.value&&(await xn.refreshSocket(d.value),u.openInfoMessage({title:"Refreshing connection state"}))},U=re=>{!re.dataTransfer||!t.printer?.id||(globalThis.dispatchEvent(new CustomEvent(EV.TILE_DRAG_START)),re.dataTransfer.setData("text",JSON.stringify({appId:gy,intent:vy.PRINTER_PLACE,printerId:t.printer.id})))},M=()=>{const re=t.printer;re&&o.openDialog({id:re.id})},K=async()=>{if(!d.value){u.openInfoMessage({title:"No Printer",subtitle:"No printer to find jobs for"});return}await c.push({path:"/jobs",query:{printerId:d.value.toString()}})},fe=async()=>{if(!d.value||!t.printer)throw new Error("PrinterId not set, cant open dialog");await s.openDialog({printer:t.printer})},he=async()=>{d.value&&confirm("Are you sure to abort the print in Quick Stop mode? Please reconnect after.")&&await xn.postQuickStopM112Command(d.value)},Re=async()=>{d.value&&await xn.sendPrinterConnectCommand(d.value)},Q=async()=>{!t.printer||!d.value||n.toggleSelectedPrinter(t.printer)};return(re,X)=>{const ie=kV,we=Bf("drop-upload"),Pe=Bf("drop-printer-position");return dn((N(),le("div",null,[dn((N(),Z(Ve,{draggable:!!e.printer,ripple:b.value,class:Oe([{"tile-large":g.value,"tile-selected":P.value,"tile-unselected":_.value,"tile-no-printer":!e.printer,"tile-draggable":!!e.printer},"tile colored-tile rounded-lg"]),elevation:"5",onClick:X[8]||(X[8]=G=>Q()),onDragstart:U},{default:m(()=>[dn(S("div",{class:"printer-title"},V(e.printer?.name??" "),513),[[ci,e.printer]]),e.printer&&(F.value||W.value)?(N(),le("div",Bme,[F.value?(N(),le("small",Ume," 🔥 "+V(F.value),1)):se("",!0),W.value?(N(),le("small",jme," 🛏️ "+V(W.value),1)):se("",!0)])):se("",!0),e.printer?se("",!0):(N(),le("div",{key:1,style:We([{height:g.value?"calc(120px - 20px)":"calc(84px - 20px)"},{position:"absolute"}]),class:Oe(p.value&&h.value?"plus-always-visible":"plus-hover-icon")},[S("div",zme,[f(ie,{"floor-id":ne(i).selectedFloor?.id,"floor-x":e.x,"floor-y":e.y,"is-first-time":p.value&&h.value},null,8,["floor-id","floor-x","floor-y","is-first-time"])])],6)),e.printer&&b.value?(N(),le("div",Hme,[ne(y)?.length?(N(),Z(ai,{key:1,src:"data:image/png;base64,"+(ne(y)??""),width:v.value},null,8,["src","width"])):(N(),Z(ai,{key:0,src:ne(ok),width:v.value,alt:"No thumbnail was found in GCode",style:{opacity:"0.3",filter:"grayscale(100%)"}},null,8,["src","width"]))])):e.printer?(N(),le("div",Wme,[I.value?.text.includes("API")?(N(),Z(j,{key:0,size:v.value,color:"secondary"},{default:m(()=>[...X[9]||(X[9]=[k(" wifi_off ",-1)])]),_:1},8,["size"])):se("",!0),e.printer.enabled?se("",!0):(N(),Z(j,{key:1,size:v.value,color:"secondary"},{default:m(()=>[...X[10]||(X[10]=[k(" disabled_by_default ",-1)])]),_:1},8,["size"])),I.value?.text.includes("unset")?(N(),Z(j,{key:2,size:v.value,color:"secondary"},{default:m(()=>[...X[11]||(X[11]=[k(" question_mark ",-1)])]),_:1},8,["size"])):se("",!0)])):se("",!0),e.printer?(N(),le("div",Gme,[f(sn,{location:"top"},{activator:m(({props:G})=>[f(te,ve({color:"primary",elevation:"2",size:"x-small",rounded:"xl"},G,{onClick:X[0]||(X[0]=on(J=>Y(),["prevent","stop"]))}),{default:m(()=>[f(j,{size:"16"},{default:m(()=>[...X[12]||(X[12]=[k("folder",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...X[13]||(X[13]=[k("Files",-1)])]),_:1}),f(sn,{location:"top"},{activator:m(({props:G})=>[f(te,ve({color:"info",elevation:"2",size:"x-small",rounded:"xl"},G,{onClick:X[1]||(X[1]=on(J=>K(),["prevent","stop"]))}),{default:m(()=>[f(j,{size:"16"},{default:m(()=>[...X[14]||(X[14]=[k("work",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...X[15]||(X[15]=[k(" View Printer Jobs ",-1)])]),_:1})])):se("",!0),e.printer?(N(),le("div",{key:5,style:We([{position:g.value?"inherit":"absolute",top:g.value?"inherit":"28px"},{overflow:"clip"}]),class:"printer-info"},[S("small",qme,V(O.value??"No File"),1)],4)):se("",!0),e.printer?(N(),le("div",Kme,[f(sn,{top:""},{activator:m(({props:G})=>[f(te,ve({disabled:!b.value||!E.value,size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},G,{onClick:X[2]||(X[2]=on(J=>fe(),["prevent","stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...X[16]||(X[16]=[k("open_with",-1)])]),_:1})]),_:1},16,["disabled","size"])]),default:m(()=>[...X[17]||(X[17]=[k("Move and home printer",-1)])]),_:1}),ne(Tx)(e.printer.printerType)?(N(),Z(sn,{key:0,top:""},{activator:m(({props:G})=>[!E.value&&b.value?(N(),Z(te,ve({key:0,size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},G,{onClick:X[3]||(X[3]=on(J=>Re(),["prevent","stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...X[18]||(X[18]=[k("usb",-1)])]),_:1})]),_:1},16,["size"])):se("",!0)]),default:m(()=>[...X[19]||(X[19]=[k("Connect USB (only for OctoPrint)",-1)])]),_:1})):se("",!0),ne(Ub)(e.printer.printerType)?(N(),Z(sn,{key:1,top:""},{activator:m(({props:G})=>[f(te,ve({size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},G,{onClick:X[4]||(X[4]=on(J=>q(),["prevent","stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...X[20]||(X[20]=[k("refresh",-1)])]),_:1})]),_:1},16,["size"])]),default:m(()=>[...X[21]||(X[21]=[k("Reload printer connection and refresh all states ",-1)])]),_:1})):se("",!0),ne(Ub)(e.printer.printerType)?(N(),Z(sn,{key:2,top:""},{activator:m(({props:G})=>[f(te,ve({disabled:!b.value||!C.value&&!w.value,size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},G,{onClick:X[5]||(X[5]=on(J=>C.value?$():B(),["prevent","stop"]))}),{default:m(()=>[C.value?se("",!0):(N(),Z(j,{key:0},{default:m(()=>[...X[22]||(X[22]=[k("pause",-1)])]),_:1})),C.value?(N(),Z(j,{key:1},{default:m(()=>[...X[23]||(X[23]=[k("play_arrow",-1)])]),_:1})):se("",!0)]),_:1},16,["disabled","size"])]),default:m(()=>[k(V(C.value?"Resume print":"Pause print"),1)]),_:1})):se("",!0),ne(Ub)(e.printer.printerType)&&(ne(F$)(e.printer.printerType)||A.value)?(N(),Z(sn,{key:3,top:""},{activator:m(({props:G})=>[f(te,ve({disabled:!b.value||A.value&&!w.value&&!C.value,size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},G,{onClick:X[6]||(X[6]=on(J=>A.value?H():he(),["prevent","stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[k(V(A.value?"stop":"dangerous"),1)]),_:1})]),_:1},16,["disabled","size"])]),default:m(()=>[k(V(A.value?"Cancel current print gracefully":"Perform quick stop of printer"),1)]),_:1})):se("",!0),f(sn,{top:""},{activator:m(({props:G})=>[f(te,ve({size:g.value?"small":"x-small",color:"darkgray",elevation:"0",style:{"border-radius":"7px"}},G,{onClick:X[7]||(X[7]=on(J=>M(),["prevent","stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...X[24]||(X[24]=[k("settings",-1)])]),_:1})]),_:1},16,["size"])]),default:m(()=>[...X[25]||(X[25]=[k("Open printer settings",-1)])]),_:1})])):se("",!0),e.printer?(N(),Z(si,{key:7,"model-value":R.value,"background-color":"dark-gray",class:"progress-bar",height:"14"},{default:m(({value:G})=>[S("strong",null,V(G?.toFixed(1)+"%"),1),f(sn,{disabled:e.printer?.enabled,"close-delay":100,color:"danger","open-delay":0,top:""},{activator:m(({props:J})=>[S("span",ve({class:"xsmall-resized-font text--secondary ml-sm-2"},J),[e.printer?.disabledReason?(N(),le("span",Yme,[X[27]||(X[27]=S("small",null," MAINTENANCE",-1)),f(j,{class:"d-none d-xl-inline",color:"primary",small:""},{default:m(()=>[...X[26]||(X[26]=[k("info",-1)])]),_:1})])):(N(),le("span",Xme,[S("small",{style:We({"background-color":T.value+"99","border-left":"5px solid "+T.value+"ff",padding:"5px"})},V(I.value?.text?.toUpperCase()),5)]))],16)]),default:m(()=>[S("span",null,V(e.printer?.disabledReason??"Printer disabled"),1)]),_:1},8,["disabled"])]),_:1},8,["model-value"])):se("",!0)]),_:1},8,["draggable","ripple","class"])),[[we,{printers:[e.printer]}]])])),[[Pe,{x:e.x,y:e.y,printerSet:e.printer}]])}}}),Qme={class:"printer-grid-container"},Zme=je({__name:"PrinterGrid",props:{gap:{type:String,default:"4px"}},setup(e){const t=vn(),n=Xi(),r=fs(),i=ek(),a=z(!1),s=z(!1),o=z(!1),{loadTags:l,filterPrinterMatrix:u,filterPrinters:c}=hl();globalThis.addEventListener("dragstart",()=>{a.value=!0}),globalThis.addEventListener("dragend",()=>{a.value=!1,s.value=!1}),globalThis.addEventListener(EV.TILE_DRAG_START,()=>{s.value=!0}),Nt(async()=>{await t.loadPrinters(),await n.loadFloors(),await l()});const d=e,p=D(()=>{if(i.sortMode==="name"){const I=c(t.printers);return n.gridNameSortedPrinters(I)}return u(n.gridSortedPrinters)}),h=D(()=>r.gridCols),g=D(()=>r.gridRows),v=D(()=>r.largeTiles),y=D(()=>g.value*h.value),b=D(()=>({display:"grid",gridTemplateColumns:`repeat(${h.value}, 1fr)`,gap:d.gap})),E=I=>I%h.value,w=I=>Math.floor(I/h.value);function C(I,T){const x=I,R=T;if(!(!p.value?.length||!p.value[x]))return p.value[x][R]}function P(){o.value=!0}function _(){o.value=!1}async function A(I){if(o.value=!1,!!I.dataTransfer)try{const T=JSON.parse(I.dataTransfer.getData("text"));if(T.appId!==gy||T.intent!==vy.PRINTER_PLACE)return;const x=T.printerId;if(!x||!n.selectedFloor)return;await xs.deletePrinterFromFloor(n.selectedFloor.id,x),await n.loadFloors()}catch(T){console.error("Failed to remove printer from grid:",T)}}return(I,T)=>(N(),le("div",null,[S("div",Qme,[S("div",{class:"printer-grid",style:We(b.value)},[(N(!0),le(De,null,Vt(y.value,x=>(N(),le("div",{key:`printer-${E(x-1)}-${w(x-1)}`,class:Oe(["printer-cell",{"printer-cell-large":v.value}])},[f(Jme,{printer:C(E(x-1),w(x-1)),x:E(x-1),y:w(x-1)},null,8,["printer","x","y"])],2))),128))],4)]),dn(S("div",{class:"remove-drop-zone",onDragover:T[0]||(T[0]=on(()=>{},["prevent"])),onDragenter:on(P,["prevent"]),onDragleave:on(_,["prevent"]),onDrop:on(A,["prevent"])},[f(j,{size:"large",class:"mr-2"},{default:m(()=>[...T[1]||(T[1]=[k("delete_forever",-1)])]),_:1}),T[2]||(T[2]=S("span",{class:"text-h6"},"Drop here to remove from grid",-1))],544),[[ci,s.value]]),T[3]||(T[3]=S("img",{alt:"FDM Monster Background",class:"grid-bg-img align-content-center",src:fk,style:{opacity:"0.08","pointer-events":"none"}},null,-1))]))}}),ehe=En(Zme,[["__scopeId","data-v-0e5cabc1"]]),the=je({__name:"PrinterGridView",setup(e){const t=Rd(),n=Xi(),r=zt(Ht.AddOrUpdateFloorDialog);Nt(()=>{const a=t.query.floor;if(a){const s=n.floors.findIndex(o=>o.id===Number(a));s>=0&&n.changeSelectedFloorByIndex(s)}});async function i(){await r.openDialog()}return(a,s)=>(N(),le("div",null,[ne(n).floors.length?(N(),le(De,{key:1},[f(Ime),f(Fme),f(ehe,{class:"ma-2"})],64)):(N(),Z(Ve,{key:0,class:"ma-4 pa-8 text-center"},{default:m(()=>[f(j,{size:"80",color:"primary",class:"mb-4"},{default:m(()=>[...s[0]||(s[0]=[k("layers_clear",-1)])]),_:1}),s[2]||(s[2]=S("h2",{class:"text-h5 mb-2"},"No Floors Yet",-1)),s[3]||(s[3]=S("p",{class:"text-body-1 text-medium-emphasis mb-6"}," Create your first floor to start organizing your printers in a grid layout. ",-1)),f(te,{color:"primary",size:"large","prepend-icon":"add",onClick:i},{default:m(()=>[...s[1]||(s[1]=[k(" Create First Floor ",-1)])]),_:1})]),_:1}))]))}}),nhe=je({name:"RefreshFilesAction",components:{},props:{printer:Object},setup:()=>({printersStore:vn()}),methods:{async getFiles(){this.printer&&await this.printersStore.loadPrinterFiles(this.printer.id)}}});function rhe(e,t,n,r,i,a){return N(),Z(te,{color:"secondary",onClick:t[0]||(t[0]=s=>e.getFiles())},{default:m(()=>[f(j,null,{default:m(()=>[...t[1]||(t[1]=[k("refresh",-1)])]),_:1}),t[2]||(t[2]=S("span",{class:"d-none d-lg-inline"}," Refresh files ",-1))]),_:1})}const ihe=En(nhe,[["render",rhe]]),she={class:"d-flex flex-column ga-2"},ahe={class:"d-flex align-center"},ohe={class:"font-weight-medium"},lhe={class:"d-flex align-center"},uhe={class:"text-caption"},che={class:"d-flex align-center flex-wrap ga-2"},dhe={class:"d-flex align-center"},fhe={class:"d-flex align-center"},phe={class:"d-flex align-center"},mhe=je({__name:"PrinterDetails",props:{printer:{}},setup(e){const t=e,n=jr(),r=z(!1),i=D(()=>t.printer?.id),a=D(()=>{if(i.value)return n.socketStatesById[i.value]?.socket}),s=D(()=>{if(i.value)return n.socketStatesById[i.value]?.api}),o=D(()=>{if(i.value)return n.printerEventsById[i.value]?.current?.payload?.state.text});return(l,u)=>{const c=Bf("drop-upload");return e.printer?dn((N(),le("div",{key:0,class:"pa-4",style:We(r.value?"background-color: rgba(211, 47, 47, 0.1)":"background-color: rgba(0,0,0,0.2)")},[f(ct,null,{default:m(()=>[f(Ae,{cols:"12",md:"8"},{default:m(()=>[S("div",she,[S("div",ahe,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...u[0]||(u[0]=[k("badge",-1)])]),_:1}),u[1]||(u[1]=S("span",{class:"text-caption text-medium-emphasis mr-2"},"Name:",-1)),S("span",ohe,V(e.printer.name),1)]),S("div",lhe,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...u[2]||(u[2]=[k("link",-1)])]),_:1}),u[3]||(u[3]=S("span",{class:"text-caption text-medium-emphasis mr-2"},"URL:",-1)),S("span",uhe,V(e.printer.printerURL),1)]),S("div",che,[S("div",dhe,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...u[4]||(u[4]=[k("dns",-1)])]),_:1}),u[5]||(u[5]=S("span",{class:"text-caption text-medium-emphasis mr-2"},"Host:",-1)),f(He,{size:"x-small",variant:"tonal"},{default:m(()=>[k(V(s.value),1)]),_:1})]),S("div",fhe,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...u[6]||(u[6]=[k("hub",-1)])]),_:1}),u[7]||(u[7]=S("span",{class:"text-caption text-medium-emphasis mr-2"},"Connection:",-1)),f(He,{size:"x-small",variant:"tonal"},{default:m(()=>[k(V(a.value),1)]),_:1})]),S("div",phe,[f(j,{size:"small",class:"mr-2"},{default:m(()=>[...u[8]||(u[8]=[k("print",-1)])]),_:1}),u[9]||(u[9]=S("span",{class:"text-caption text-medium-emphasis mr-2"},"Printer:",-1)),f(He,{size:"x-small",variant:"tonal"},{default:m(()=>[k(V(o.value),1)]),_:1})])])])]),_:1}),f(Ae,{cols:"12",md:"4",class:"d-flex align-center justify-end"},{default:m(()=>[f(ihe,{printer:e.printer},null,8,["printer"])]),_:1})]),_:1})],4)),[[c,{printers:[e.printer]}]]):se("",!0)}}}),hhe=je({__name:"PrinterUrlAction",props:{printer:{}},setup(e){const t=e;async function n(){xn.openPrinterURL(t.printer.printerURL)}return(r,i)=>ne(L$)(e.printer.printerType)?(N(),Z(sn,{key:0,location:"top"},{activator:m(({props:a})=>[f(te,ve(a,{color:"secondary",class:"ms-4",rounded:"",size:"small",onClickCapture:i[0]||(i[0]=on(s=>n(),["stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...i[1]||(i[1]=[k("directions",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...i[2]||(i[2]=[k("Visit printer service",-1)])]),_:1})):se("",!0)}}),ghe=je({name:"PrinterSettingsAction",props:{printer:Object},computed:{printerId(){return this.printer.id}},methods:{openSettings(){this.$emit("update:show",this.printer.id)}}});function vhe(e,t,n,r,i,a){return N(),Z(sn,{location:"top"},{activator:m(({props:s})=>[f(te,ve(s,{color:"secondary",class:"ms-4",size:"small",rounded:"",onClickCapture:t[0]||(t[0]=on(o=>e.openSettings(),["stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...t[1]||(t[1]=[k("settings",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...t[2]||(t[2]=[k("Update printer settings",-1)])]),_:1})}const yhe=En(ghe,[["render",vhe]]),bhe=je({__name:"PrinterConnectionAction",props:{printer:{}},setup(e){const t=e,n=jr();function r(){return t.printer.id?n.isPrinterOperational(t.printer.id):!1}function i(){return t.printer.id?n.isPrinterPrinting(t.printer.id):!1}async function a(){if(r())return xn.sendPrinterDisconnectCommand(t.printer.id);await xn.sendPrinterConnectCommand(t.printer.id)}return(s,o)=>ne(Tx)(e.printer.printerType)?(N(),Z(sn,{key:0,location:"top"},{activator:m(({props:l})=>[e.printer.enabled?(N(),Z(Od,{key:0,color:r()?"green":"red",class:"ms-4"},{badge:m(()=>[r()?(N(),Z(j,{key:0},{default:m(()=>[...o[0]||(o[0]=[k("check",-1)])]),_:1})):(N(),Z(j,{key:1},{default:m(()=>[...o[1]||(o[1]=[k("close",-1)])]),_:1}))]),default:m(()=>[f(te,ve({disabled:i()},l,{color:"secondary",rounded:"",size:"small",onClick:on(a,["stop"])}),{default:m(()=>[f(j,null,{default:m(()=>[...o[2]||(o[2]=[k("usb",-1)])]),_:1})]),_:1},16,["disabled"])]),_:2},1032,["color"])):se("",!0)]),default:m(()=>[...o[3]||(o[3]=[k("Connect USB (OctoPrint only)",-1)])]),_:1})):se("",!0)}}),She=je({__name:"PrinterQuickStopAction",props:{printer:{}},setup(e){const t=e;async function n(){confirm("Are you sure to quick stop this printer?")&&await xn.postQuickStopM112Command(t.printer.id)}return(r,i)=>ne(F$)(e.printer.printerType)?(N(),Z(sn,{key:0,location:"top"},{activator:m(({props:a})=>[e.printer.enabled?(N(),Z(Od,{key:0,class:"ms-4"},{badge:m(()=>[f(j,null,{default:m(()=>[...i[0]||(i[0]=[k("bolt",-1)])]),_:1})]),default:m(()=>[f(te,ve(a,{color:"secondary",size:"small",rounded:"",onClick:on(n,["stop"])}),{default:m(()=>[f(j,null,{default:m(()=>[...i[1]||(i[1]=[k("dangerous",-1)])]),_:1})]),_:1},16)]),_:2},1024)):se("",!0)]),default:m(()=>[...i[2]||(i[2]=[k("Perform quick stop of printer",-1)])]),_:1})):se("",!0)}}),whe=je({__name:"PrinterMaintenanceAction",props:{printer:{}},setup(e){const t=e;async function n(){if(!t.printer)throw new Error("Printer not set, cant toggle maintenance");if(t.printer?.disabledReason?.length){const r=await Za.getActiveByPrinterId(t.printer.id);r&&await Za.complete(r.id,{});return}await zt(Ht.PrinterMaintenanceDialog).openDialog({printerId:t.printer.id})}return(r,i)=>(N(),Z(sn,{location:"top"},{activator:m(({props:a})=>[f(te,ve(a,{color:ne(eo)(e.printer)?"warning":"secondary",class:"ms-4",size:"small",rounded:"",onClick:on(n,["stop"])}),{default:m(()=>[f(j,null,{default:m(()=>[k(V(ne(eo)(e.printer)?"build_circle":"build"),1)]),_:1})]),_:1},16,["color"])]),default:m(()=>[k(V(ne(eo)(e.printer)?"Update maintenance":"Set maintenance"),1)]),_:1}))}}),Ehe=je({__name:"FileExplorerAction",props:{printer:{}},setup(e){const t=e,n=fm();function r(){t.printer&&n.openFileExplorer(t.printer)}return(i,a)=>(N(),Z(sn,{location:"top"},{activator:m(({props:s})=>[f(te,ve(s,{disabled:!e.printer,color:"secondary",rounded:"",size:"small",onClickCapture:a[0]||(a[0]=on(o=>r(),["stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...a[1]||(a[1]=[k("folder",-1)])]),_:1})]),_:1},16,["disabled"])]),default:m(()=>[...a[2]||(a[2]=[k("Open file explorer",-1)])]),_:1}))}});class xhe extends di{static async syncPrinterName(t){const n=`${Se.syncPrinterNameSettingRoute(t)}`;return await this.post(n)}}const khe=je({__name:"SyncPrinterNameAction",props:{printer:{}},setup(e){const t=e,n=Xt();async function r(){await xhe.syncPrinterName(t.printer.id),n.openInfoMessage({title:"Synced printer name to OctoPrint"})}return(i,a)=>ne(Rne)(e.printer.printerType)?(N(),Z(sn,{key:0,location:"top"},{activator:m(({props:s})=>[f(te,ve(s,{color:"secondary",class:"ms-4",size:"small",rounded:"",onClickCapture:a[0]||(a[0]=on(o=>r(),["stop"]))}),{default:m(()=>[f(j,null,{default:m(()=>[...a[1]||(a[1]=[k("badge",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...a[2]||(a[2]=[k(" Set OctoPrint name to the FDM Monster name ",-1)])]),_:1})):se("",!0)}}),Che=je({__name:"PrinterDeleteAction",props:{printer:{}},setup(e){const t=e,n=vn(),r=jr();async function i(){confirm("Are you sure to delete this printer?")&&(await n.deletePrinter(t.printer.id),r.deletePrinterEvents(t.printer.id))}return(a,s)=>(N(),Z(sn,{location:"top"},{activator:m(({props:o})=>[f(te,ve(o,{class:"ms-4",color:"secondary",size:"small",rounded:"",onClick:on(i,["prevent","stop"])}),{default:m(()=>[f(j,null,{default:m(()=>[...s[0]||(s[0]=[k("delete",-1)])]),_:1})]),_:1},16)]),default:m(()=>[...s[1]||(s[1]=[k("Delete printer",-1)])]),_:1}))}}),_he=Ee({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...Yx({filterKeys:["title"]}),...Kx(),...Rn(ay({modelValue:null,role:"combobox"}),["validationValue","dirty"])},"VAutocomplete"),CV=$e()({name:"VAutocomplete",props:_he(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=Rr(),i=z(),a=Fe(!1),s=Fe(!0),o=Fe(!1),l=z(),u=z(),c=Fe(-1),d=Fe(null),{items:p,transformIn:h,transformOut:g}=_x(e),{textColorClasses:v,textColorStyles:y}=Ci(()=>i.value?.color),{InputIcon:b}=mm(e),E=gt(e,"search",""),w=gt(e,"modelValue",[],oe=>h(oe===null?[null]:tr(oe)),oe=>{const be=g(oe);return e.multiple?be:be[0]??null}),C=D(()=>typeof e.counterValue=="function"?e.counterValue(w.value):typeof e.counterValue=="number"?e.counterValue:w.value.length),P=hm(e),{filteredItems:_,getMatches:A}=Xx(e,p,()=>d.value??(s.value?"":E.value)),I=D(()=>e.hideSelected&&d.value===null?_.value.filter(oe=>!w.value.some(be=>be.value===oe.value)):_.value),T=ae(()=>e.closableChips&&!P.isReadonly.value&&!P.isDisabled.value),x=D(()=>!!(e.chips||n.chip)),R=D(()=>x.value||!!n.selection),O=D(()=>w.value.map(oe=>oe.props.value)),L=D(()=>I.value.find(oe=>oe.type==="item"&&!oe.props.disabled)),F=D(()=>(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&E.value===L.value?.title)&&I.value.length>0&&!s.value&&!o.value),W=D(()=>e.hideNoData&&!I.value.length||P.isReadonly.value||P.isDisabled.value),H=gt(e,"menu"),B=D({get:()=>H.value,set:oe=>{H.value&&!oe&&l.value?.ΨopenChildren.size||oe&&W.value||(H.value=oe)}}),{menuId:$,ariaExpanded:Y,ariaControls:q}=qx(e,B),U=z(),M=Gx(U,i);function K(oe){e.openOnClear&&(B.value=!0),E.value=""}function fe(){W.value||(B.value=!0)}function he(oe){W.value||(a.value&&(oe.preventDefault(),oe.stopPropagation()),B.value=!B.value)}function Re(oe){(Hc(oe)||oe.key==="Backspace")&&i.value?.focus()}function Q(oe){if(P.isReadonly.value)return;const be=i.value?.selectionStart,Ce=w.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(oe.key)&&oe.preventDefault(),["Enter","ArrowDown"].includes(oe.key)&&(B.value=!0),["Escape"].includes(oe.key)&&(B.value=!1),F.value&&["Enter","Tab"].includes(oe.key)&&L.value&&!w.value.some(ue=>{let{value:ge}=ue;return ge===L.value.value})&&de(L.value),oe.key==="ArrowDown"&&F.value&&U.value?.focus("next"),["Backspace","Delete"].includes(oe.key)){if(!e.multiple&&R.value&&w.value.length>0&&!E.value)return de(w.value[0],!1);if(~c.value){oe.preventDefault();const ue=c.value;de(w.value[c.value],!1),c.value=ue>=Ce-1?Ce-2:ue}else oe.key==="Backspace"&&!E.value&&(c.value=Ce-1);return}if(e.multiple)if(oe.key==="ArrowLeft"){if(c.value<0&&be&&be>0)return;const ue=c.value>-1?c.value-1:Ce-1;if(w.value[ue])c.value=ue;else{const ge=E.value?.length??null;c.value=-1,i.value?.setSelectionRange(ge,ge)}}else if(oe.key==="ArrowRight"){if(c.value<0)return;const ue=c.value+1;w.value[ue]?c.value=ue:(c.value=-1,i.value?.setSelectionRange(0,0))}else~c.value&&Hc(oe)&&(c.value=-1)}function re(oe){if(zc(i.value,":autofill")||zc(i.value,":-webkit-autofill")){const be=p.value.find(Ce=>Ce.title===oe.target.value);be&&de(be)}}function X(){e.eager&&u.value?.calculateVisibleItems()}function ie(){a.value&&(s.value=!0,i.value?.focus()),d.value=null}function we(oe){a.value=!0,setTimeout(()=>{o.value=!0})}function Pe(oe){o.value=!1}function G(oe){(oe==null||oe===""&&!e.multiple&&!R.value)&&(w.value=[])}const J=Fe(!1);function de(oe){let be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!oe||oe.props.disabled))if(e.multiple){const Ce=w.value.findIndex(ge=>(e.valueComparator||Ir)(ge.value,oe.value)),ue=be??!~Ce;if(~Ce){const ge=ue?[...w.value,oe]:[...w.value];ge.splice(Ce,1),w.value=ge}else ue&&(w.value=[...w.value,oe]);e.clearOnSelect&&(E.value="")}else{const Ce=be!==!1;w.value=Ce?[oe]:[],d.value=s.value?"":E.value??"",E.value=Ce&&!R.value?oe.title:"",Ct(()=>{B.value=!1,s.value=!0})}}return Ne(a,(oe,be)=>{oe!==be&&(oe?(J.value=!0,E.value=e.multiple||R.value?"":String(w.value.at(-1)?.props.title??""),s.value=!0,Ct(()=>J.value=!1)):(!e.multiple&&E.value==null&&(w.value=[]),B.value=!1,!s.value&&E.value&&(d.value=E.value),E.value="",c.value=-1))}),Ne(E,oe=>{!a.value||J.value||(oe&&(B.value=!0),s.value=!oe)}),Ne(B,oe=>{if(!e.hideSelected&&oe&&w.value.length&&s.value){const be=I.value.findIndex(Ce=>w.value.some(ue=>Ce.value===ue.value));un&&window.requestAnimationFrame(()=>{be>=0&&u.value?.scrollToIndex(be)})}oe&&(d.value=null)}),Ne(p,(oe,be)=>{B.value||a.value&&!be.length&&oe.length&&(B.value=!0)}),Ue(()=>{const oe=!!(!e.hideNoData||I.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),be=w.value.length>0,Ce=yt.filterProps(e);return f(yt,ve({ref:i},Ce,{modelValue:E.value,"onUpdate:modelValue":[ue=>E.value=ue,G],focused:a.value,"onUpdate:focused":ue=>a.value=ue,validationValue:w.externalValue,counterValue:C.value,dirty:be,onChange:re,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":B.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!R.value,"v-autocomplete--selecting-index":c.value>-1},e.class],style:e.style,readonly:P.isReadonly.value,placeholder:be?void 0:e.placeholder,"onClick:clear":K,"onMousedown:control":fe,onKeydown:Q,"aria-expanded":Y.value,"aria-controls":q.value}),{...n,default:ue=>{let{id:ge}=ue;return S(De,null,[f(li,ve({id:$.value,ref:l,modelValue:B.value,"onUpdate:modelValue":_e=>B.value=_e,activator:"parent",contentClass:"v-autocomplete__content",disabled:W.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:X,onAfterLeave:ie},e.menuProps),{default:()=>[oe&&f(hr,ve({ref:U,filterable:!0,selected:O.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:_e=>_e.preventDefault(),onKeydown:Re,onFocusin:we,onFocusout:Pe,tabindex:"-1",selectable:!0,"aria-live":"polite","aria-labelledby":`${ge.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},M,e.listProps),{default:()=>[n["prepend-item"]?.(),!I.value.length&&!e.hideNoData&&(n["no-data"]?.()??f(ot,{key:"no-data",title:r(e.noDataText)},null)),f(Wx,{ref:u,renderless:!0,items:I.value,itemKey:"value"},{default:_e=>{let{item:ce,index:Be,itemRef:Ie}=_e;const Me=ve(ce.props,{ref:Ie,key:ce.value,active:F.value&&ce===L.value?!0:void 0,onClick:()=>de(ce,null),"aria-posinset":Be+1,"aria-setsize":I.value.length});return ce.type==="divider"?n.divider?.({props:ce.raw,index:Be})??f(et,ve(ce.props,{key:`divider-${Be}`}),null):ce.type==="subheader"?n.subheader?.({props:ce.raw,index:Be})??f(yo,ve(ce.props,{key:`subheader-${Be}`}),null):n.item?.({item:ce,index:Be,props:Me})??f(ot,ve(Me,{role:"option"}),{prepend:Je=>{let{isSelected:Ze}=Je;return S(De,null,[e.multiple&&!e.hideSelected?f(xa,{key:ce.value,modelValue:Ze,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:At=>At.preventDefault()},null):void 0,ce.props.prependAvatar&&f(Sn,{image:ce.props.prependAvatar},null),ce.props.prependIcon&&f(j,{icon:ce.props.prependIcon},null)])},title:()=>s.value?ce.title:VM("v-autocomplete",ce.title,A(ce)?.title)})}}),n["append-item"]?.()]})]}),w.value.map((_e,ce)=>{function Be(Ze){Ze.stopPropagation(),Ze.preventDefault(),de(_e,!1)}const Ie=ve(He.filterProps(_e.props),{"onClick:close":Be,onKeydown(Ze){Ze.key!=="Enter"&&Ze.key!==" "||(Ze.preventDefault(),Ze.stopPropagation(),Be(Ze))},onMousedown(Ze){Ze.preventDefault(),Ze.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),Me=x.value?!!n.chip:!!n.selection,Je=Me?Yv(x.value?n.chip({item:_e,index:ce,props:Ie}):n.selection({item:_e,index:ce})):void 0;if(!(Me&&!Je))return S("div",{key:_e.value,class:Oe(["v-autocomplete__selection",ce===c.value&&["v-autocomplete__selection--selected",v.value]]),style:We(ce===c.value?y.value:{})},[x.value?n.chip?f(nn,{key:"chip-defaults",defaults:{VChip:{closable:T.value,size:"small",text:_e.title}}},{default:()=>[Je]}):f(He,ve({key:"chip",closable:T.value,size:"small",text:_e.title,disabled:_e.props.disabled},Ie),null):Je??S("span",{class:"v-autocomplete__selection-text"},[_e.title,e.multiple&&ce<w.value.length-1&&S("span",{class:"v-autocomplete__selection-comma"},[k(",")])])])})])},"append-inner":function(){for(var ue=arguments.length,ge=new Array(ue),_e=0;_e<ue;_e++)ge[_e]=arguments[_e];return S(De,null,[n["append-inner"]?.(...ge),e.menuIcon?f(j,{class:"v-autocomplete__menu-icon",color:i.value?.fieldIconColor,icon:e.menuIcon,onMousedown:he,onClick:tF,"aria-hidden":!0,tabindex:"-1"},null):void 0,e.appendInnerIcon&&f(b,{key:"append-icon",name:"appendInner",color:ge[0].iconColor.value},null)])}})}),fi({isFocused:a,isPristine:s,menu:B,search:E,filteredItems:_,select:de},i)}}),The=Ee({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),_V=Symbol.for("vuetify:datatable:expanded");function TV(e){const t=ae(()=>e.expandOnClick),n=gt(e,"expanded",e.expanded,o=>new Set(o),o=>[...o.values()]);function r(o,l){const u=new Set(n.value),c=it(o.value);if(l)u.add(c);else{const d=[...n.value].find(p=>it(p)===c);u.delete(d)}n.value=u}function i(o){const l=it(o.value);return[...n.value].some(u=>it(u)===l)}function a(o){r(o,!i(o))}const s={expand:r,expanded:n,expandOnClick:t,isExpanded:i,toggleExpand:a};return bn(_V,s),s}function IV(){const e=mt(_V);if(!e)throw new Error("foo");return e}const Ihe=Ee({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),PV=Symbol.for("vuetify:data-table-group");function AV(e){return{groupBy:gt(e,"groupBy")}}function RV(e){const{disableSort:t,groupBy:n,sortBy:r}=e,i=z(new Set),a=D(()=>n.value.map(c=>({...c,order:c.order??!1})).concat(t?.value?[]:r.value));function s(c){return i.value.has(c.id)}function o(c){const d=new Set(i.value);s(c)?d.delete(c.id):d.add(c.id),i.value=d}function l(c){function d(p){const h=[];for(const g of p.items)"type"in g&&g.type==="group"?h.push(...d(g)):h.push(g);return[...new Set(h)]}return d({items:c})}const u={sortByWithGroups:a,toggleGroup:o,opened:i,groupBy:n,extractRows:l,isGroupOpen:s};return bn(PV,u),u}function OV(){const e=mt(PV);if(!e)throw new Error("Missing group!");return e}function Phe(e,t){if(!e.length)return[];const n=new Map;for(const r of e){const i=bu(r.raw,t);n.has(i)||n.set(i,[]),n.get(i).push(r)}return n}function NV(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const i=Phe(e,t[0]),a=[],s=t.slice(1);return i.forEach((o,l)=>{const u=t[0],c=`${r}_${u}_${l}`;a.push({depth:n,id:c,key:u,value:l,items:s.length?NV(o,s,n+1,c):o,type:"group"})}),a}function DV(e,t,n){const r=[];for(const i of e)"type"in i&&i.type==="group"?(i.value!=null&&r.push(i),(t.has(i.id)||i.value==null)&&(r.push(...DV(i.items,t,n)),n&&r.push({...i,type:"group-summary"}))):r.push(i);return r}function LV(e,t,n,r){return{flatItems:D(()=>{if(!t.value.length)return e.value;const a=NV(e.value,t.value.map(s=>s.key));return DV(a,n.value,yn(r))})}}function FV(e){let{page:t,itemsPerPage:n,sortBy:r,groupBy:i,search:a}=e;const s=Gn("VDataTable"),o=()=>({page:t.value,itemsPerPage:n.value,sortBy:r.value,groupBy:i.value,search:a.value});let l=null;Ne(o,u=>{Ir(l,u)||(l&&l.search!==u.search&&(t.value=1),s.emit("update:options",u),l=u)},{deep:!0,immediate:!0})}const $V=Ee({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),MV=Symbol.for("vuetify:data-table-pagination");function VV(e){const t=gt(e,"page",void 0,r=>Number(r??1)),n=gt(e,"itemsPerPage",void 0,r=>Number(r??10));return{page:t,itemsPerPage:n}}function BV(e){const{page:t,itemsPerPage:n,itemsLength:r}=e,i=D(()=>n.value===-1?0:n.value*(t.value-1)),a=D(()=>n.value===-1?r.value:Math.min(r.value,i.value+n.value)),s=D(()=>n.value===-1||r.value===0?1:Math.ceil(r.value/n.value));Ne([t,s],()=>{t.value>s.value&&(t.value=s.value)});function o(p){n.value=p,t.value=1}function l(){t.value=Ln(t.value+1,1,s.value)}function u(){t.value=Ln(t.value-1,1,s.value)}function c(p){t.value=Ln(p,1,s.value)}const d={page:t,itemsPerPage:n,startIndex:i,stopIndex:a,pageCount:s,itemsLength:r,nextPage:l,prevPage:u,setPage:c,setItemsPerPage:o};return bn(MV,d),d}function Ahe(){const e=mt(MV);if(!e)throw new Error("Missing pagination!");return e}function Rhe(e){const t=Gn("usePaginatedItems"),{items:n,startIndex:r,stopIndex:i,itemsPerPage:a}=e,s=D(()=>a.value<=0?n.value:n.value.slice(r.value,i.value));return Ne(s,o=>{t.emit("update:currentItems",o)},{immediate:!0}),{paginatedItems:s}}const Ohe={showSelectAll:!1,allSelected:()=>[],select:e=>{let{items:t,value:n}=e;return new Set(n?[t[0]?.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},UV={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const i of t)n?r.add(i.value):r.delete(i.value);return r},selectAll:e=>{let{value:t,currentPage:n,selected:r}=e;return UV.select({items:n,value:t,selected:r})}},Nhe={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const i of t)n?r.add(i.value):r.delete(i.value);return r},selectAll:e=>{let{value:t,allItems:n}=e;return new Set(t?n.map(r=>r.value):[])}},Dhe=Ee({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:Function},"DataTable-select"),jV=Symbol.for("vuetify:data-table-selection");function zV(e,t){let{allItems:n,currentPage:r}=t;const i=gt(e,"modelValue",e.modelValue,E=>{const w=e.valueComparator;return w?new Set(tr(E).map(C=>n.value.find(P=>w(C,P.value))?.value??C)):new Set(tr(E).map(C=>tl(C)?n.value.find(P=>C===P.value)?.value??C:n.value.find(P=>Ir(C,P.value))?.value??C))},E=>[...E.values()]),a=D(()=>n.value.filter(E=>E.selectable)),s=D(()=>r.value.filter(E=>E.selectable)),o=D(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return Ohe;case"all":return Nhe;default:return UV}}),l=Fe(null);function u(E){return tr(E).every(w=>i.value.has(w.value))}function c(E){return tr(E).some(w=>i.value.has(w.value))}function d(E,w){const C=o.value.select({items:E,value:w,selected:new Set(i.value)});i.value=C}function p(E,w,C){const P=[];if(w=w??r.value.findIndex(_=>_.value===E.value),e.selectStrategy!=="single"&&C?.shiftKey&&l.value!==null){const[_,A]=[l.value,w].sort((I,T)=>I-T);P.push(...r.value.slice(_,A+1).filter(I=>I.selectable))}else P.push(E),l.value=w;d(P,!u([E]))}function h(E){const w=o.value.selectAll({value:E,allItems:a.value,currentPage:s.value,selected:new Set(i.value)});i.value=w}const g=D(()=>i.value.size>0),v=D(()=>{const E=o.value.allSelected({allItems:a.value,currentPage:s.value});return!!E.length&&u(E)}),y=ae(()=>o.value.showSelectAll),b={toggleSelect:p,select:d,selectAll:h,isSelected:u,isSomeSelected:c,someSelected:g,allSelected:v,showSelectAll:y,lastSelectedIndex:l,selectStrategy:o};return bn(jV,b),b}function yy(){const e=mt(jV);if(!e)throw new Error("Missing selection!");return e}const Lhe=Ee({initialSortOrder:{type:String,default:"asc",validator:e=>!e||["asc","desc"].includes(e)},sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:{type:[Boolean,Object],default:!1},mustSort:Boolean},"DataTable-sort"),HV=Symbol.for("vuetify:data-table-sort");function WV(e){const t=ae(()=>e.initialSortOrder),n=gt(e,"sortBy"),r=ae(()=>e.mustSort),i=ae(()=>e.multiSort);return{initialSortOrder:t,sortBy:n,multiSort:i,mustSort:r}}function Fhe(e,t){if(!ep(e))return{active:!!e};const{key:n,mode:r,modifier:i}=e,a=i==="alt"&&t?.altKey||i==="shift"&&t?.shiftKey;return{active:!n||t?.ctrlKey||t?.metaKey||!1,mode:a?r==="append"?"prepend":"append":r}}function GV(e){const{initialSortOrder:t,sortBy:n,mustSort:r,multiSort:i,page:a}=e,s=(u,c)=>{if(u.key==null)return;let d=n.value.map(v=>({...v}))??[];const p=d.find(v=>v.key===u.key),h=t.value,g=t.value==="desc"?"asc":"desc";if(p)p.order===g?r.value&&d.length===1?p.order=t.value:d=d.filter(v=>v.key!==u.key):p.order=g;else{const{active:v,mode:y}=Fhe(i.value,c);v?y==="prepend"?d.unshift({key:u.key,order:h}):d.push({key:u.key,order:h}):d=[{key:u.key,order:h}]}n.value=d,a&&(a.value=1)};function o(u){return!!n.value.find(c=>c.key===u.key)}const l={sortBy:n,toggleSort:s,isSorted:o};return bn(HV,l),l}function qV(){const e=mt(HV);if(!e)throw new Error("Missing sort!");return e}function $he(e,t,n,r){const i=Rr();return{sortedItems:D(()=>n.value.length?Mhe(t.value,n.value,i.current.value,{transform:r?.transform,sortFunctions:{...e.customKeySort,...r?.sortFunctions?.value},sortRawFunctions:r?.sortRawFunctions?.value}):t.value)}}function Mhe(e,t,n,r){const i=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return e.map(s=>[s,r?.transform?r.transform(s):s]).sort((s,o)=>{for(let l=0;l<t.length;l++){let u=!1;const c=t[l].key,d=t[l].order??"asc";if(d===!1)continue;let p=bu(s[1],c),h=bu(o[1],c),g=s[0].raw,v=o[0].raw;if(d==="desc"&&([p,h]=[h,p],[g,v]=[v,g]),r?.sortRawFunctions?.[c]){const y=r.sortRawFunctions[c](g,v);if(y==null)continue;if(u=!0,y)return y}if(r?.sortFunctions?.[c]){const y=r.sortFunctions[c](p,h);if(y==null)continue;if(u=!0,y)return y}if(!u&&(p instanceof Date&&h instanceof Date&&(p=p.getTime(),h=h.getTime()),[p,h]=[p,h].map(y=>y!=null?y.toString().toLocaleLowerCase():y),p!==h))return qm(p)&&qm(h)?0:qm(p)?-1:qm(h)?1:!isNaN(p)&&!isNaN(h)?Number(p)-Number(h):i.compare(p,h)}return 0}).map(s=>{let[o]=s;return o})}function Vhe(){const e=z([]);kv(()=>e.value=[]);function t(n,r){e.value[r]=n}return{refs:e,updateRef:t}}const Bhe=Ee({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:rt,default:"$first"},prevIcon:{type:rt,default:"$prev"},nextIcon:{type:rt,default:"$next"},lastIcon:{type:rt,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...Ls(),...tt(),...Ar(),...Pi(),...gr(),...Cd(),...Jt({tag:"nav"}),...wn(),...na({variant:"text"})},"VPagination"),nA=$e()({name:"VPagination",props:Bhe(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const i=gt(e,"modelValue"),{t:a,n:s}=Rr(),{isRtl:o}=Or(),{themeClasses:l}=On(e),{width:u}=ra(),c=Fe(-1);Er(void 0,{scoped:!0});const{resizeRef:d}=go(I=>{if(!I.length)return;const{target:T,contentRect:x}=I[0],R=T.querySelector(".v-pagination__list > *");if(!R)return;const O=x.width,L=R.offsetWidth+parseFloat(getComputedStyle(R).marginRight)*2;c.value=v(O,L)}),p=D(()=>parseInt(e.length,10)),h=D(()=>parseInt(e.start,10)),g=D(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):c.value>=0?c.value:v(u.value,58));function v(I,T){const x=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((I-T*x)/T).toFixed(2))))}const y=D(()=>{if(p.value<=0||isNaN(p.value)||p.value>Number.MAX_SAFE_INTEGER)return[];if(g.value<=0)return[];if(g.value===1)return[i.value];if(p.value<=g.value)return Nl(p.value,h.value);const I=g.value%2===0,T=I?g.value/2:Math.floor(g.value/2),x=I?T:T+1,R=p.value-T;if(x-i.value>=0)return[...Nl(Math.max(1,g.value-1),h.value),e.ellipsis,p.value];if(i.value-R>=(I?1:0)){const O=g.value-1,L=p.value-O+h.value;return[h.value,e.ellipsis,...Nl(O,L)]}else{const O=Math.max(1,g.value-2),L=O===1?i.value:i.value-Math.ceil(O/2)+h.value;return[h.value,e.ellipsis,...Nl(O,L),e.ellipsis,p.value]}});function b(I,T,x){I.preventDefault(),i.value=T,x&&r(x,T)}const{refs:E,updateRef:w}=Vhe();Er({VPaginationBtn:{color:ae(()=>e.color),border:ae(()=>e.border),density:ae(()=>e.density),size:ae(()=>e.size),variant:ae(()=>e.variant),rounded:ae(()=>e.rounded),elevation:ae(()=>e.elevation)}});const C=D(()=>y.value.map((I,T)=>{const x=R=>w(R,T);if(typeof I=="string")return{isActive:!1,key:`ellipsis-${T}`,page:I,props:{ref:x,ellipsis:!0,icon:!0,disabled:!0}};{const R=I===i.value;return{isActive:R,key:I,page:s(I),props:{ref:x,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:R?e.activeColor:e.color,"aria-current":R,"aria-label":a(R?e.currentPageAriaLabel:e.pageAriaLabel,I),onClick:O=>b(O,I)}}}})),P=D(()=>{const I=!!e.disabled||i.value<=h.value,T=!!e.disabled||i.value>=h.value+p.value-1;return{first:e.showFirstLastPage?{icon:o.value?e.lastIcon:e.firstIcon,onClick:x=>b(x,h.value,"first"),disabled:I,"aria-label":a(e.firstAriaLabel),"aria-disabled":I}:void 0,prev:{icon:o.value?e.nextIcon:e.prevIcon,onClick:x=>b(x,i.value-1,"prev"),disabled:I,"aria-label":a(e.previousAriaLabel),"aria-disabled":I},next:{icon:o.value?e.prevIcon:e.nextIcon,onClick:x=>b(x,i.value+1,"next"),disabled:T,"aria-label":a(e.nextAriaLabel),"aria-disabled":T},last:e.showFirstLastPage?{icon:o.value?e.firstIcon:e.lastIcon,onClick:x=>b(x,h.value+p.value-1,"last"),disabled:T,"aria-label":a(e.lastAriaLabel),"aria-disabled":T}:void 0}});function _(){const I=i.value-h.value;E.value[I]?.$el.focus()}function A(I){I.key===uS.left&&!e.disabled&&i.value>Number(e.start)?(i.value=i.value-1,Ct(_)):I.key===uS.right&&!e.disabled&&i.value<h.value+p.value-1&&(i.value=i.value+1,Ct(_))}return Ue(()=>f(e.tag,{ref:d,class:Oe(["v-pagination",l.value,e.class]),style:We(e.style),role:"navigation","aria-label":a(e.ariaLabel),onKeydown:A,"data-test":"v-pagination-root"},{default:()=>[S("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&S("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(P.value.first):f(te,ve({_as:"VPaginationBtn"},P.value.first),null)]),S("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(P.value.prev):f(te,ve({_as:"VPaginationBtn"},P.value.prev),null)]),C.value.map((I,T)=>S("li",{key:I.key,class:Oe(["v-pagination__item",{"v-pagination__item--is-active":I.isActive}]),"data-test":"v-pagination-item"},[n.item?n.item(I):f(te,ve({_as:"VPaginationBtn"},I.props),{default:()=>[I.page]})])),S("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(P.value.next):f(te,ve({_as:"VPaginationBtn"},P.value.next),null)]),e.showFirstLastPage&&S("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(P.value.last):f(te,ve({_as:"VPaginationBtn"},P.value.last),null)])])]})),{}}}),pk=Ee({color:String,prevIcon:{type:rt,default:"$prev"},nextIcon:{type:rt,default:"$next"},firstIcon:{type:rt,default:"$first"},lastIcon:{type:rt,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Yg=$e()({name:"VDataTableFooter",props:pk(),setup(e,t){let{slots:n}=t;const{t:r}=Rr(),{page:i,pageCount:a,startIndex:s,stopIndex:o,itemsLength:l,itemsPerPage:u,setItemsPerPage:c}=Ahe(),d=D(()=>e.itemsPerPageOptions.map(p=>typeof p=="number"?{value:p,title:p===-1?r("$vuetify.dataFooter.itemsPerPageAll"):String(p)}:{...p,title:isNaN(Number(p.title))?r(p.title):p.title}));return Ue(()=>{const p=nA.filterProps(e);return S("div",{class:"v-data-table-footer"},[n.prepend?.(),S("div",{class:"v-data-table-footer__items-per-page"},[S("span",null,[r(e.itemsPerPageText)]),f(Sr,{items:d.value,itemColor:e.color,modelValue:u.value,"onUpdate:modelValue":h=>c(Number(h)),density:"compact",variant:"outlined","aria-label":r(e.itemsPerPageText),hideDetails:!0},null)]),S("div",{class:"v-data-table-footer__info"},[S("div",null,[r(e.pageText,l.value?s.value+1:0,o.value,l.value)])]),S("div",{class:"v-data-table-footer__pagination"},[f(nA,ve({modelValue:i.value,"onUpdate:modelValue":h=>i.value=h,density:"comfortable",firstAriaLabel:e.firstPageLabel,lastAriaLabel:e.lastPageLabel,length:a.value,nextAriaLabel:e.nextPageLabel,previousAriaLabel:e.prevPageLabel,rounded:!0,showFirstLastPage:!0,totalVisible:e.showCurrentPage?1:0,variant:"plain"},Rn(p,["color"])),null)])])}),{}}}),yp=fQ({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,indent:[Number,String],empty:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,t)=>{let{slots:n}=t;const r=e.tag??"td",i=typeof e.fixed=="string"?e.fixed:e.fixed?"start":"none";return f(r,{class:Oe(["v-data-table__td",{"v-data-table-column--fixed":i==="start","v-data-table-column--fixed-end":i==="end","v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap,"v-data-table-column--empty":e.empty},`v-data-table-column--align-${e.align}`]),style:{height:ze(e.height),width:ze(e.width),maxWidth:ze(e.maxWidth),left:i==="start"?ze(e.fixedOffset||null):void 0,right:i==="end"?ze(e.fixedEndOffset||null):void 0,paddingInlineStart:e.indent?ze(e.indent):void 0}},{default:()=>[n.default?.()]})}),Uhe=Ee({headers:Array},"DataTable-header"),KV=Symbol.for("vuetify:data-table-headers"),YV={title:"",sortable:!1},jhe={...YV,width:48};function zhe(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(n=>({element:n,priority:0}));return{enqueue:(n,r)=>{let i=!1;for(let a=0;a<t.length;a++)if(t[a].priority>r){t.splice(a,0,{element:n,priority:r}),i=!0;break}i||t.push({element:n,priority:r})},size:()=>t.length,count:()=>{let n=0;if(!t.length)return 0;const r=Math.floor(t[0].priority);for(let i=0;i<t.length;i++)Math.floor(t[i].priority)===r&&(n+=1);return n},dequeue:()=>t.shift()}}function cw(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const n of e.children)cw(n,t);return t}function XV(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&XV(n.children,t);return t}function Hhe(e){if(e.key){if(e.key==="data-table-group")return YV;if(["data-table-expand","data-table-select"].includes(e.key))return jhe}}function mk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(n=>mk(n,t+1))):t}function Whe(e){let t=!1;function n(a,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none";if(a)if(o!=="none"&&(a.fixed=o),a.fixed===!0&&(a.fixed="start"),a.fixed===s)if(a.children)if(s==="start")for(let l=a.children.length-1;l>=0;l--)n(a.children[l],s,s);else for(let l=0;l<a.children.length;l++)n(a.children[l],s,s);else!t&&s==="start"?a.lastFixed=!0:!t&&s==="end"?a.firstFixedEnd=!0:isNaN(Number(a.width))?(`${a.key}`,void 0):a.minWidth=Math.max(Number(a.width)||0,Number(a.minWidth)||0),t=!0;else if(a.children)if(s==="start")for(let l=a.children.length-1;l>=0;l--)n(a.children[l],s);else for(let l=0;l<a.children.length;l++)n(a.children[l],s);else t=!1}for(let a=e.length-1;a>=0;a--)n(e[a],"start");for(let a=0;a<e.length;a++)n(e[a],"end");let r=0;for(let a=0;a<e.length;a++)r=JV(e[a],r);let i=0;for(let a=e.length-1;a>=0;a--)i=QV(e[a],i)}function JV(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedOffset=t;for(const n of e.children)t=JV(n,t)}else e.fixed&&e.fixed!=="end"&&(e.fixedOffset=t,t+=parseFloat(e.width||"0")||0);return t}function QV(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedEndOffset=t;for(const n of e.children)t=QV(n,t)}else e.fixed==="end"&&(e.fixedEndOffset=t,t+=parseFloat(e.width||"0")||0);return t}function Ghe(e,t){const n=[];let r=0;const i=zhe(e);for(;i.size()>0;){let s=i.count();const o=[];let l=1;for(;s>0;){const{element:u,priority:c}=i.dequeue(),d=t-r-mk(u);if(o.push({...u,rowspan:d??1,colspan:u.children?cw(u).length:1}),u.children)for(const p of u.children){const h=c%1+l/Math.pow(10,r+2);i.enqueue(p,r+d+h)}l+=1,s-=1}r+=1,n.push(o)}return{columns:e.map(s=>cw(s)).flat(),headers:n}}function ZV(e){const t=[];for(const n of e){const r={...Hhe(n),...n},i=r.key??(typeof r.value=="string"?r.value:null),a=r.value??i??null,s={...r,key:i,value:a,sortable:r.sortable??(r.key!=null||!!r.sort),children:r.children?ZV(r.children):void 0};t.push(s)}return t}function e3(e,t){const n=z([]),r=z([]),i=z({}),a=z({}),s=z({});lr(()=>{const u=(e.headers||Object.keys(e.items[0]??{}).map(v=>({key:v,title:Ji(v)}))).slice(),c=XV(u);t?.groupBy?.value.length&&!c.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),t?.showSelect?.value&&!c.has("data-table-select")&&u.unshift({key:"data-table-select"}),t?.showExpand?.value&&!c.has("data-table-expand")&&u.push({key:"data-table-expand"});const d=ZV(u);Whe(d);const p=Math.max(...d.map(v=>mk(v)))+1,h=Ghe(d,p);n.value=h.headers,r.value=h.columns;const g=h.headers.flat(1);for(const v of g)v.key&&(v.sortable&&(v.sort&&(i.value[v.key]=v.sort),v.sortRaw&&(a.value[v.key]=v.sortRaw)),v.filter&&(s.value[v.key]=v.filter))});const o={headers:n,columns:r,sortFunctions:i,sortRawFunctions:a,filterFunctions:s};return bn(KV,o),o}function by(){const e=mt(KV);if(!e)throw new Error("Missing headers!");return e}const t3=Ee({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,initialSortOrder:String,sortAscIcon:{type:rt,default:"$sortAsc"},sortDescIcon:{type:rt,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,...Ar(),...Fu(),...Jv()},"VDataTableHeaders"),Xg=$e()({name:"VDataTableHeaders",props:t3(),setup(e,t){let{slots:n}=t;const{t:r}=Rr(),{toggleSort:i,sortBy:a,isSorted:s}=qV(),{someSelected:o,allSelected:l,selectAll:u,showSelectAll:c}=yy(),{columns:d,headers:p}=by(),{loaderClasses:h}=om(e);function g(T,x){if(!(e.sticky||e.fixedHeader)&&!T.fixed)return;const R=typeof T.fixed=="string"?T.fixed:T.fixed?"start":"none";return{position:"sticky",left:R==="start"?ze(T.fixedOffset):void 0,right:R==="end"?ze(T.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?`calc(var(--v-table-header-height) * ${x})`:void 0}}function v(T,x){T.key==="Enter"&&!e.disableSort&&i(x,T)}function y(T){const x=a.value.find(R=>R.key===T.key);return!x&&e.initialSortOrder==="asc"||x?.order==="asc"?e.sortAscIcon:e.sortDescIcon}const{backgroundColorClasses:b,backgroundColorStyles:E}=Un(()=>e.color),{displayClasses:w,mobile:C}=ra(e),P=D(()=>({headers:p.value,columns:d.value,toggleSort:i,isSorted:s,sortBy:a.value,someSelected:o.value,allSelected:l.value,selectAll:u,getSortIcon:y})),_=D(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},w.value,h.value]),A=T=>{let{column:x,x:R,y:O}=T;const L=x.key==="data-table-select"||x.key==="data-table-expand",F=x.key==="data-table-group"&&x.width===0&&!x.title,W=ve(e.headerProps??{},x.headerProps??{});return f(yp,ve({tag:"th",align:x.align,class:[{"v-data-table__th--sortable":x.sortable&&!e.disableSort,"v-data-table__th--sorted":s(x),"v-data-table__th--fixed":x.fixed},..._.value],style:{width:ze(x.width),minWidth:ze(x.minWidth),maxWidth:ze(x.maxWidth),...g(x,O)},colspan:x.colspan,rowspan:x.rowspan,fixed:x.fixed,nowrap:x.nowrap,lastFixed:x.lastFixed,firstFixedEnd:x.firstFixedEnd,noPadding:L,empty:F,tabindex:x.sortable?0:void 0,onClick:x.sortable?H=>i(x,H):void 0,onKeydown:x.sortable?H=>v(H,x):void 0},W),{default:()=>{const H=`header.${x.key}`,B={column:x,selectAll:u,isSorted:s,toggleSort:i,sortBy:a.value,someSelected:o.value,allSelected:l.value,getSortIcon:y};return n[H]?n[H](B):F?"":x.key==="data-table-select"?n["header.data-table-select"]?.(B)??(c.value&&f(xa,{color:e.color,density:e.density,modelValue:l.value,indeterminate:o.value&&!l.value,"onUpdate:modelValue":u},null)):S("div",{class:"v-data-table-header__content"},[S("span",null,[x.title]),x.sortable&&!e.disableSort&&f(j,{key:"icon",class:"v-data-table-header__sort-icon",icon:y(x)},null),e.multiSort&&s(x)&&S("div",{key:"badge",class:Oe(["v-data-table-header__sort-badge",...b.value]),style:We(E.value)},[a.value.findIndex($=>$.key===x.key)+1])])}})},I=()=>{const T=D(()=>d.value.filter(R=>R?.sortable&&!e.disableSort)),x=d.value.find(R=>R.key==="data-table-select");return f(yp,ve({tag:"th",class:[..._.value],colspan:p.value.length+1},e.headerProps),{default:()=>[S("div",{class:"v-data-table-header__content"},[f(Sr,{chips:!0,color:e.color,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:T.value,label:r("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>a.value=[]},{append:x?()=>f(xa,{color:e.color,density:"compact",modelValue:l.value,indeterminate:o.value&&!l.value,"onUpdate:modelValue":()=>u(!l.value)},null):void 0,chip:R=>f(He,{onClick:R.item.raw?.sortable?()=>i(R.item.raw):void 0,onMousedown:O=>{O.preventDefault(),O.stopPropagation()}},{default:()=>[R.item.title,f(j,{class:Oe(["v-data-table__td-sort-icon",s(R.item.raw)&&"v-data-table__td-sort-icon-active"]),icon:y(R.item.raw),size:"small"},null)]})})])]})};Ue(()=>C.value?S("tr",null,[f(I,null,null)]):S(De,null,[n.headers?n.headers(P.value):p.value.map((T,x)=>S("tr",null,[T.map((R,O)=>f(A,{column:R,x:O,y:x},null))])),e.loading&&S("tr",{class:"v-data-table-progress"},[S("th",{colspan:d.value.length},[f(Qv,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"||e.loading==="true"?e.color:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),n3=Ee({item:{type:Object,required:!0},groupCollapseIcon:{type:rt,default:"$tableGroupCollapse"},groupExpandIcon:{type:rt,default:"$tableGroupExpand"},...Ar()},"VDataTableGroupHeaderRow"),qhe=$e()({name:"VDataTableGroupHeaderRow",props:n3(),setup(e,t){let{slots:n}=t;const{isGroupOpen:r,toggleGroup:i,extractRows:a}=OV(),{isSelected:s,isSomeSelected:o,select:l}=yy(),{columns:u}=by(),c=D(()=>a([e.item])),d=ae(()=>u.value.length-(u.value.some(p=>p.key==="data-table-select")?1:0));return()=>S("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(p=>{if(p.key==="data-table-group"){const h=r(e.item)?e.groupCollapseIcon:e.groupExpandIcon,g=()=>i(e.item);return n["data-table-group"]?.({item:e.item,count:c.value.length,props:{icon:h,onClick:g}})??f(yp,{class:"v-data-table-group-header-row__column",colspan:d.value},{default:()=>[f(te,{size:"small",variant:"text",icon:h,onClick:g},null),S("span",null,[e.item.value]),S("span",null,[k("("),c.value.length,k(")")])]})}else if(p.key==="data-table-select"){const h=c.value.filter(b=>b.selectable),g=h.length>0&&s(h),v=o(h)&&!g,y=b=>l(h,b);return n["data-table-select"]?.({props:{modelValue:g,indeterminate:v,"onUpdate:modelValue":y}})??f(yp,{class:"v-data-table__td--select-row",noPadding:!0},{default:()=>[f(xa,{density:e.density,disabled:h.length===0,modelValue:g,indeterminate:v,"onUpdate:modelValue":y},null)]})}return""})])}}),r3=Ee({color:String,index:Number,item:Object,cellProps:[Object,Function],collapseIcon:{type:rt,default:"$collapse"},expandIcon:{type:rt,default:"$expand"},onClick:Ur(),onContextmenu:Ur(),onDblclick:Ur(),...Ar(),...Fu()},"VDataTableRow"),Khe=$e()({name:"VDataTableRow",props:r3(),setup(e,t){let{slots:n}=t;const{displayClasses:r,mobile:i}=ra(e,"v-data-table__tr"),{isSelected:a,toggleSelect:s,someSelected:o,allSelected:l,selectAll:u}=yy(),{isExpanded:c,toggleExpand:d}=IV(),{toggleSort:p,sortBy:h,isSorted:g}=qV(),{columns:v}=by();Ue(()=>S("tr",{class:Oe(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},r.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&v.value.map((y,b)=>{const E=e.item,w=`item.${y.key}`,C=`header.${y.key}`,P={index:e.index,item:E.raw,internalItem:E,value:bu(E.columns,y.key),column:y,isSelected:a,toggleSelect:s,isExpanded:c,toggleExpand:d},_={column:y,selectAll:u,isSorted:g,toggleSort:p,sortBy:h.value,someSelected:o.value,allSelected:l.value,getSortIcon:()=>""},A=typeof e.cellProps=="function"?e.cellProps({index:P.index,item:P.item,internalItem:P.internalItem,value:P.value,column:y}):e.cellProps,I=typeof y.cellProps=="function"?y.cellProps({index:P.index,item:P.item,internalItem:P.internalItem,value:P.value}):y.cellProps,T=y.key==="data-table-select"||y.key==="data-table-expand",x=y.key==="data-table-group"&&y.width===0&&!y.title;return f(yp,ve({align:y.align,indent:y.indent,class:{"v-data-table__td--expanded-row":y.key==="data-table-expand","v-data-table__td--select-row":y.key==="data-table-select"},fixed:y.fixed,fixedOffset:y.fixedOffset,fixedEndOffset:y.fixedEndOffset,lastFixed:y.lastFixed,firstFixedEnd:y.firstFixedEnd,maxWidth:i.value?void 0:y.maxWidth,noPadding:T,empty:x,nowrap:y.nowrap,width:i.value?void 0:y.width},A,I),{default:()=>{if(y.key==="data-table-select")return n["item.data-table-select"]?.({...P,props:{color:e.color,disabled:!E.selectable,modelValue:a([E]),onClick:on(()=>s(E),["stop"])}})??f(xa,{color:e.color,disabled:!E.selectable,density:e.density,modelValue:a([E]),onClick:on(O=>s(E,e.index,O),["stop"])},null);if(y.key==="data-table-expand")return n["item.data-table-expand"]?.({...P,props:{icon:c(E)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:on(()=>d(E),["stop"])}})??f(te,{icon:c(E)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:on(()=>d(E),["stop"])},null);if(n[w]&&!i.value)return n[w](P);const R=V(P.value);return i.value?S(De,null,[S("div",{class:"v-data-table__td-title"},[n[C]?.(_)??y.title]),S("div",{class:"v-data-table__td-value"},[n[w]?.(P)??R])]):R}})})]))}}),i3=Ee({color:String,loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Js(r3(),["collapseIcon","expandIcon","density"]),...Js(n3(),["groupCollapseIcon","groupExpandIcon","density"]),...Fu()},"VDataTableRows"),Jg=$e()({name:"VDataTableRows",inheritAttrs:!1,props:i3(),setup(e,t){let{attrs:n,slots:r}=t;const{columns:i}=by(),{expandOnClick:a,toggleExpand:s,isExpanded:o}=IV(),{isSelected:l,toggleSelect:u}=yy(),{toggleGroup:c,isGroupOpen:d}=OV(),{t:p}=Rr(),{mobile:h}=ra(e);return Ue(()=>{const g=Js(e,["groupCollapseIcon","groupExpandIcon","density"]);return e.loading&&(!e.items.length||r.loading)?S("tr",{class:"v-data-table-rows-loading",key:"loading"},[S("td",{colspan:i.value.length},[r.loading?.()??p(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?S("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[S("td",{colspan:i.value.length},[r["no-data"]?.()??p(e.noDataText)])]):S(De,null,[e.items.map((v,y)=>{if(v.type==="group"){const w={index:y,item:v,columns:i.value,isExpanded:o,toggleExpand:s,isSelected:l,toggleSelect:u,toggleGroup:c,isGroupOpen:d};return r["group-header"]?r["group-header"](w):f(qhe,ve({key:`group-header_${v.id}`,item:v},bI(n,":groupHeader",()=>w),g),r)}if(v.type==="group-summary"){const w={index:y,item:v,columns:i.value,toggleGroup:c};return r["group-summary"]?.(w)??""}const b={index:v.virtualIndex??y,item:v.raw,internalItem:v,columns:i.value,isExpanded:o,toggleExpand:s,isSelected:l,toggleSelect:u},E={...b,props:ve({key:`item_${v.key??v.index}`,onClick:a.value?()=>{s(v)}:void 0,index:y,item:v,color:e.color,cellProps:e.cellProps,collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,density:e.density,mobile:h.value},bI(n,":row",()=>b),typeof e.rowProps=="function"?e.rowProps({item:b.item,index:b.index,internalItem:b.internalItem}):e.rowProps)};return S(De,{key:E.props.key},[r.item?r.item(E):f(Khe,E.props,r),o(v)&&r["expanded-row"]?.(b)])})])}),{}}}),s3=Ee({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,striped:{type:String,default:null,validator:e=>["even","odd"].includes(e)},...tt(),...Ar(),...Jt(),...wn()},"VTable"),bp=$e()({name:"VTable",props:s3(),setup(e,t){let{slots:n,emit:r}=t;const{themeClasses:i}=On(e),{densityClasses:a}=ps(e);return Ue(()=>f(e.tag,{class:Oe(["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover,"v-table--striped-even":e.striped==="even","v-table--striped-odd":e.striped==="odd"},i.value,a.value,e.class]),style:We(e.style)},{default:()=>[n.top?.(),n.default?S("div",{class:"v-table__wrapper",style:{height:ze(e.height)}},[S("table",null,[n.default()])]):n.wrapper?.(),n.bottom?.()]})),{}}}),Yhe=Ee({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function Xhe(e,t,n,r){const i=e.returnObject?t:er(t,e.itemValue),a=er(t,e.itemSelectable,!0),s=r.reduce((o,l)=>(l.key!=null&&(o[l.key]=er(t,l.value)),o),{});return{type:"item",key:e.returnObject?er(t,e.itemValue):i,index:n,value:i,selectable:a,columns:s,raw:t}}function Jhe(e,t,n){return t.map((r,i)=>Xhe(e,r,i,n))}function a3(e,t){return{items:D(()=>Jhe(e,e.items,t.value))}}const o3=Ee({...i3(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...The(),...Ihe(),...Uhe(),...Yhe(),...Dhe(),...Lhe(),...Rn(t3(),["multiSort","initialSortOrder"]),...s3()},"DataTable"),Qhe=Ee({...$V(),...o3(),...Yx(),...pk()},"VDataTable"),l3=$e()({name:"VDataTable",props:Qhe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:i}=AV(e),{initialSortOrder:a,sortBy:s,multiSort:o,mustSort:l}=WV(e),{page:u,itemsPerPage:c}=VV(e),{disableSort:d}=_a(e),{columns:p,headers:h,sortFunctions:g,sortRawFunctions:v,filterFunctions:y}=e3(e,{groupBy:i,showSelect:ae(()=>e.showSelect),showExpand:ae(()=>e.showExpand)}),{items:b}=a3(e,p),E=ae(()=>e.search),{filteredItems:w}=Xx(e,b,E,{transform:re=>re.columns,customKeyFilter:y}),{toggleSort:C}=GV({initialSortOrder:a,sortBy:s,multiSort:o,mustSort:l,page:u}),{sortByWithGroups:P,opened:_,extractRows:A,isGroupOpen:I,toggleGroup:T}=RV({groupBy:i,sortBy:s,disableSort:d}),{sortedItems:x}=$he(e,w,P,{transform:re=>({...re.raw,...re.columns}),sortFunctions:g,sortRawFunctions:v}),{flatItems:R}=LV(x,i,_,()=>!!r["group-summary"]),O=D(()=>R.value.length),{startIndex:L,stopIndex:F,pageCount:W,setItemsPerPage:H}=BV({page:u,itemsPerPage:c,itemsLength:O}),{paginatedItems:B}=Rhe({items:R,startIndex:L,stopIndex:F,itemsPerPage:c}),$=D(()=>A(B.value)),{isSelected:Y,select:q,selectAll:U,toggleSelect:M,someSelected:K,allSelected:fe}=zV(e,{allItems:b,currentPage:$}),{isExpanded:he,toggleExpand:Re}=TV(e);FV({page:u,itemsPerPage:c,sortBy:s,groupBy:i,search:E}),Er({VDataTableRows:{hideNoData:ae(()=>e.hideNoData),noDataText:ae(()=>e.noDataText),loading:ae(()=>e.loading),loadingText:ae(()=>e.loadingText)}});const Q=D(()=>({page:u.value,itemsPerPage:c.value,sortBy:s.value,pageCount:W.value,toggleSort:C,setItemsPerPage:H,someSelected:K.value,allSelected:fe.value,isSelected:Y,select:q,selectAll:U,toggleSelect:M,isExpanded:he,toggleExpand:Re,isGroupOpen:I,toggleGroup:T,items:$.value.map(re=>re.raw),internalItems:$.value,groupedItems:B.value,columns:p.value,headers:h.value}));return Ue(()=>{const re=Yg.filterProps(e),X=Xg.filterProps(Rn(e,["multiSort"])),ie=Jg.filterProps(e),we=bp.filterProps(e);return f(bp,ve({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},we,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>r.top?.(Q.value),default:()=>r.default?r.default(Q.value):S(De,null,[r.colgroup?.(Q.value),!e.hideDefaultHeader&&S("thead",{key:"thead"},[f(Xg,ve(X,{multiSort:!!e.multiSort}),r)]),r.thead?.(Q.value),!e.hideDefaultBody&&S("tbody",null,[r["body.prepend"]?.(Q.value),r.body?r.body(Q.value):f(Jg,ve(n,ie,{items:B.value}),r),r["body.append"]?.(Q.value)]),r.tbody?.(Q.value),r.tfoot?.(Q.value)]),bottom:()=>r.bottom?r.bottom(Q.value):!e.hideDefaultFooter&&S(De,null,[f(et,null,null),f(Yg,re,{prepend:r["footer.prepend"]})])})}),{}}}),Zhe=Ee({itemsLength:{type:[Number,String],required:!0},...$V(),...o3(),...pk()},"VDataTableServer"),u3=$e()({name:"VDataTableServer",props:Zhe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:i}=AV(e),{initialSortOrder:a,sortBy:s,multiSort:o,mustSort:l}=WV(e),{page:u,itemsPerPage:c}=VV(e),{disableSort:d}=_a(e),p=D(()=>parseInt(e.itemsLength,10)),{columns:h,headers:g}=e3(e,{groupBy:i,showSelect:ae(()=>e.showSelect),showExpand:ae(()=>e.showExpand)}),{items:v}=a3(e,h),{toggleSort:y}=GV({initialSortOrder:a,sortBy:s,multiSort:o,mustSort:l,page:u}),{opened:b,isGroupOpen:E,toggleGroup:w,extractRows:C}=RV({groupBy:i,sortBy:s,disableSort:d}),{pageCount:P,setItemsPerPage:_}=BV({page:u,itemsPerPage:c,itemsLength:p}),{flatItems:A}=LV(v,i,b,()=>!!r["group-summary"]),{isSelected:I,select:T,selectAll:x,toggleSelect:R,someSelected:O,allSelected:L}=zV(e,{allItems:v,currentPage:v}),{isExpanded:F,toggleExpand:W}=TV(e),H=D(()=>C(v.value));FV({page:u,itemsPerPage:c,sortBy:s,groupBy:i,search:ae(()=>e.search)}),bn("v-data-table",{toggleSort:y,sortBy:s}),Er({VDataTableRows:{hideNoData:ae(()=>e.hideNoData),noDataText:ae(()=>e.noDataText),loading:ae(()=>e.loading),loadingText:ae(()=>e.loadingText)}});const B=D(()=>({page:u.value,itemsPerPage:c.value,sortBy:s.value,pageCount:P.value,toggleSort:y,setItemsPerPage:_,someSelected:O.value,allSelected:L.value,isSelected:I,select:T,selectAll:x,toggleSelect:R,isExpanded:F,toggleExpand:W,isGroupOpen:E,toggleGroup:w,items:H.value.map($=>$.raw),internalItems:H.value,groupedItems:A.value,columns:h.value,headers:g.value}));Ue(()=>{const $=Yg.filterProps(e),Y=Xg.filterProps(Rn(e,["multiSort"])),q=Jg.filterProps(e),U=bp.filterProps(e);return f(bp,ve({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},U,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>r.top?.(B.value),default:()=>r.default?r.default(B.value):S(De,null,[r.colgroup?.(B.value),!e.hideDefaultHeader&&S("thead",{key:"thead",class:"v-data-table__thead",role:"rowgroup"},[f(Xg,ve(Y,{multiSort:!!e.multiSort}),r)]),r.thead?.(B.value),!e.hideDefaultBody&&S("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[r["body.prepend"]?.(B.value),r.body?r.body(B.value):f(Jg,ve(n,q,{items:A.value}),r),r["body.append"]?.(B.value)]),r.tbody?.(B.value),r.tfoot?.(B.value)]),bottom:()=>r.bottom?r.bottom(B.value):!e.hideDefaultFooter&&S(De,null,[f(et,null,null),f(Yg,$,{prepend:r["footer.prepend"]})])})})}}),ege=Ee({...tt(),...Hr(),...U$()},"VLayout"),tge=$e()({name:"VLayout",props:ege(),setup(e,t){let{slots:n}=t;const{layoutClasses:r,layoutStyles:i,getLayoutItem:a,items:s,layoutRef:o}=W$(e),{dimensionStyles:l}=Wr(e);return Ue(()=>S("div",{ref:o,class:Oe([r.value,e.class]),style:We([l.value,i.value,e.style])},[n.default?.()])),{getLayoutItem:a,items:s}}}),nge={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function rge(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S("div",{class:Oe(["v-skeleton-loader__bone",`v-skeleton-loader__${e}`])},[t])}function rA(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>Sy(t))}function Sy(e){let t=[];if(!e)return t;const n=nge[e];if(e!==n){if(e.includes(","))return iA(e);if(e.includes("@"))return rA(e);n.includes(",")?t=iA(n):n.includes("@")?t=rA(n):n&&t.push(Sy(n))}return[rge(e,t)]}function iA(e){return e.replace(/\s/g,"").split(",").map(Sy)}const ige=Ee({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...Hr(),...Pi(),...wn()},"VSkeletonLoader"),sge=$e()({name:"VSkeletonLoader",inheritAttrs:!1,props:ige(),setup(e,t){let{attrs:n,slots:r}=t;const{backgroundColorClasses:i,backgroundColorStyles:a}=Un(()=>e.color),{dimensionStyles:s}=Wr(e),{elevationClasses:o}=es(e),{themeClasses:l}=On(e),{t:u}=Rr(),c=D(()=>Sy(tr(e.type).join(",")));return Ue(()=>{const d=!r.default||e.loading,p=e.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(e.loadingText),role:"alert"};return d?S("div",ve({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},l.value,i.value,o.value],style:[a.value,s.value]},p,n),[c.value]):S(De,null,[r.default?.()])}),{}}}),hk=Symbol.for("vuetify:v-stepper"),gk=Ee({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),dw=$e()({name:"VStepperActions",props:gk(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:i}=Rr();function a(){n("click:prev")}function s(){n("click:next")}return Ue(()=>{const o={onClick:a},l={onClick:s};return S("div",{class:"v-stepper-actions"},[f(nn,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:i(e.prevText),variant:"text"}}},{default:()=>[r.prev?.({props:o})??f(te,o,null)]}),f(nn,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:i(e.nextText),variant:"tonal"}}},{default:()=>[r.next?.({props:l})??f(te,l,null)]})])}),{}}}),c3=Nu("v-stepper-header"),d3=Ee({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:rt,default:"$complete"},editable:Boolean,editIcon:{type:rt,default:"$edit"},error:Boolean,errorIcon:{type:rt,default:"$error"},icon:rt,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]}},"StepperItem"),age=Ee({...d3(),...sm()},"VStepperItem"),Fh=$e()({name:"VStepperItem",directives:{vRipple:_i},props:age(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=Gc(e,hk,!0),i=D(()=>r?.value.value??e.value),a=D(()=>e.rules.every(p=>p()===!0)),s=D(()=>!e.disabled&&e.editable),o=D(()=>!e.disabled&&e.editable),l=D(()=>e.error||!a.value),u=D(()=>e.complete||e.rules.length>0&&a.value),c=D(()=>l.value?e.errorIcon:u.value?e.completeIcon:r.isSelected.value&&e.editable?e.editIcon:e.icon),d=D(()=>({canEdit:o.value,hasError:l.value,hasCompleted:u.value,title:e.title,subtitle:e.subtitle,step:i.value,value:e.value}));return Ue(()=>{const p=(!r||r.isSelected.value||u.value||o.value)&&!l.value&&!e.disabled,h=!!(e.title!=null||n.title),g=!!(e.subtitle!=null||n.subtitle);function v(){r?.toggle()}return dn(S("button",{class:Oe(["v-stepper-item",{"v-stepper-item--complete":u.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":l.value},r?.selectedClass.value]),disabled:!e.editable,type:"button",onClick:v},[s.value&&fl(!0,"v-stepper-item"),f(Sn,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:p?e.color:void 0,size:24},{default:()=>[n.icon?.(d.value)??(c.value?f(j,{icon:c.value},null):i.value)]}),S("div",{class:"v-stepper-item__content"},[h&&S("div",{key:"title",class:"v-stepper-item__title"},[n.title?.(d.value)??e.title]),g&&S("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[n.subtitle?.(d.value)??e.subtitle]),n.default?.(d.value)])]),[[_i,e.editable&&e.ripple,null]])}),{}}}),oge=Ee({...Rn(wx(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),f3=$e()({name:"VStepperWindow",props:oge(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=mt(hk,null),i=gt(e,"modelValue"),a=D({get(){return i.value!=null||!r?i.value:r.items.value.find(s=>r.selected.value.includes(s.id))?.value},set(s){i.value=s}});return Ue(()=>{const s=Qc.filterProps(e);return f(Qc,ve({_as:"VStepperWindow"},s,{modelValue:a.value,"onUpdate:modelValue":o=>a.value=o,class:["v-stepper-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),lge=Ee({...Ex()},"VStepperWindowItem"),$h=$e()({name:"VStepperWindowItem",props:lge(),setup(e,t){let{slots:n}=t;return Ue(()=>{const r=ha.filterProps(e);return f(ha,ve({_as:"VStepperWindowItem"},r,{class:["v-stepper-window-item",e.class],style:e.style}),n)}),{}}}),p3=Ee({altLabels:Boolean,bgColor:String,completeIcon:rt,editIcon:rt,editable:Boolean,errorIcon:rt,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},nonLinear:Boolean,flat:Boolean,...Fu()},"Stepper"),uge=Ee({...p3(),...im({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...Mx(),...Js(gk(),["prevText","nextText"])},"VStepper"),cge=$e()({name:"VStepper",props:uge(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:r,next:i,prev:a,selected:s}=kd(e,hk),{displayClasses:o,mobile:l}=ra(e),{completeIcon:u,editIcon:c,errorIcon:d,color:p,editable:h,prevText:g,nextText:v}=_a(e),y=D(()=>e.items.map((w,C)=>{const P=er(w,e.itemTitle,w),_=er(w,e.itemValue,C+1),A=e.itemProps===!0?w:er(w,e.itemProps),I={title:P,value:_,...A};return{title:I.title,value:I.value,props:I,raw:w}})),b=D(()=>r.value.findIndex(w=>s.value.includes(w.id))),E=D(()=>e.disabled?e.disabled:b.value===0?"prev":b.value===r.value.length-1?"next":!1);return Er({VStepperItem:{editable:h,errorIcon:d,completeIcon:u,editIcon:c,prevText:g,nextText:v},VStepperActions:{color:p,disabled:E,prevText:g,nextText:v}}),Ue(()=>{const w=Ug.filterProps(e),C=!!(n.header||e.items.length),P=e.items.length>0,_=!e.hideActions&&!!(P||n.actions);return f(Ug,ve(w,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":l.value},o.value,e.class],style:e.style}),{default:()=>[C&&f(c3,{key:"stepper-header"},{default:()=>[y.value.map((A,I)=>{let{raw:T,...x}=A;return S(De,null,[!!I&&f(et,null,null),f(Fh,x.props,{default:n[`header-item.${x.value}`]??n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})])})]}),P&&f(f3,{key:"stepper-window"},{default:()=>[y.value.map(A=>f($h,{value:A.value},{default:()=>n[`item.${A.value}`]?.(A)??n.item?.(A)}))]}),n.default?.({prev:a,next:i}),_&&(n.actions?.({next:i,prev:a})??f(dw,{key:"stepper-actions","onClick:prev":a,"onClick:next":i},n))]})}),{prev:a,next:i}}}),dge=Ee({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...ml(),...cy()},"VSwitch"),fw=$e()({name:"VSwitch",inheritAttrs:!1,props:dge(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const i=gt(e,"indeterminate"),a=gt(e,"modelValue"),{loaderClasses:s}=om(e),{isFocused:o,focus:l,blur:u}=Vu(e),c=z(),d=z(),p=JE&&window.matchMedia("(forced-colors: active)").matches,h=ae(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),g=Ti(),v=ae(()=>e.id||`switch-${g}`);function y(){i.value&&(i.value=!1)}function b(E){E.stopPropagation(),E.preventDefault(),c.value?.input?.click()}return Ue(()=>{const[E,w]=dl(n),C=Yi.filterProps(e),P=Eu.filterProps(e);return f(Yi,ve({ref:d,class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":i.value},s.value,e.class]},E,C,{modelValue:a.value,"onUpdate:modelValue":_=>a.value=_,id:v.value,focused:o.value,style:e.style}),{...r,default:_=>{let{id:A,messagesId:I,isDisabled:T,isReadonly:x,isValid:R}=_;const O={model:a,isValid:R};return f(Eu,ve({ref:c},P,{modelValue:a.value,"onUpdate:modelValue":[L=>a.value=L,y],id:A.value,"aria-describedby":I.value,type:"checkbox","aria-checked":i.value?"mixed":void 0,disabled:T.value,readonly:x.value,onFocus:l,onBlur:u},w),{...r,default:L=>{let{backgroundColorClasses:F,backgroundColorStyles:W}=L;return S("div",{class:Oe(["v-switch__track",p?void 0:F.value]),style:We(W.value),onClick:b},[r["track-true"]&&S("div",{key:"prepend",class:"v-switch__track-true"},[r["track-true"](O)]),r["track-false"]&&S("div",{key:"append",class:"v-switch__track-false"},[r["track-false"](O)])])},input:L=>{let{inputNode:F,icon:W,backgroundColorClasses:H,backgroundColorStyles:B}=L;return S(De,null,[F,S("div",{class:Oe(["v-switch__thumb",{"v-switch__thumb--filled":W||e.loading},e.inset||p?void 0:H.value]),style:We(e.inset?void 0:B.value)},[r.thumb?f(nn,{defaults:{VIcon:{icon:W,size:"x-small"}}},{default:()=>[r.thumb({...O,icon:W})]}):f($F,null,{default:()=>[e.loading?f(Qv,{name:"v-switch",active:!0,color:R.value===!1?void 0:h.value},{default:$=>r.loader?r.loader($):f(Bn,{active:$.isActive,color:$.color,indeterminate:!0,size:"16",width:"2"},null)}):W&&f(j,{key:String(W),icon:W,size:"x-small"},null)]})])])}})}})}),fi({},d)}}),fge={class:"d-flex align-center ga-2"},pge={class:"d-flex align-center ga-2"},mge={class:"mt-4 mb-4"},hge={key:0},gge={key:1},vge={class:"d-flex align-center ga-1"},yge={key:1,class:"text-caption text-medium-emphasis"},bge={class:"d-flex align-center flex-wrap ga-1"},Sge={key:1,class:"text-caption text-medium-emphasis"},wge={class:"d-flex align-center flex-wrap ga-1"},Ege={class:"d-flex align-center"},xge={class:"d-flex ga-1"},kge={key:0},Cge={key:1},_ge=["colspan"],Tge=je({__name:"PrintersView",setup(e){const t=Xt(),n=ns(),r=vn(),i=z(!1),a=jr(),s=Xi(),o=uy(),l=zt(Ht.AddOrUpdatePrinterDialog),{selectedTags:u,selectedPrinterTypes:c,tags:d,tagsWithPrinters:p,loadTags:h,filterPrinters:g}=hl(),v=z([]),y=z(""),b=z([]),E=D(()=>[{title:"Enabled",key:"enabled"},{title:"Type",key:"printerType"},{title:"Printer Name",align:"start",sortable:!0,key:"name"},{title:"Floor",key:"floor",sortable:!1},{title:"Tags",key:"group",sortable:!0},{title:"Cameras",key:"cameras",sortable:!1},{title:"Actions",key:"actions",sortable:!1},{title:"Socket Update",key:"socketupdate",sortable:!1},{title:"",key:"data-table-expand"}]);async function w(){return i.value=!0,await o.loadFeatures(),await h(),v.value=await ou.listCameraStreams(),i.value=!1,p}const C=Ad({queryKey:[aM],queryFn:w}),P=D(()=>g(r.printers)),_=D(()=>a.printerCurrentEventReceivedAtById),A=X=>X?(Date.now()-X)/1e3:void 0,I=X=>p.value.filter(ie=>ie.printers.find(we=>we.printerId===X)),T=X=>p.value.filter(ie=>!ie.printers.some(we=>we.printerId===X)),x=X=>s.floorOfPrinter(X),R=X=>v.value.filter(ie=>ie.printerId===X),O=X=>v.value.filter(ie=>ie.printerId!==X),L=X=>{l.openDialog({id:X.id})},F=()=>{l.openDialog()},W=()=>{zt(Ht.ImportOctoFarmDialog).openDialog()},H=()=>{zt(Ht.YamlImportExport).openDialog()},B=()=>{zt(Ht.ManageTagsDialog).openDialog()},$=X=>{const ie=p.value.find(we=>we.id===X);ie&&zt(Ht.ManageTagsDialog).openDialog({tagId:X,tagName:ie.name})},Y=X=>{const ie=x(X);ie?n.push({path:"/printer-grid",query:{floor:ie.id.toString()}}):n.push("/printer-grid")},q=()=>{n.push("/settings/floors")},U=X=>{X&&zt(Ht.AddOrUpdateFloorDialog).openDialog({printerFloorId:X})},M=X=>{X&&zt(Ht.AddOrUpdateCameraDialog).openDialog({addOrUpdate:"update",cameraId:X})},K=async(X,ie)=>{await Vo.addPrinterToTag(X,ie),await C.refetch(),t.info("Added printer to tag")},fe=async(X,ie)=>{await Vo.deletePrinterTag(X,ie),await C.refetch(),t.info("Removed printer from tag")},he=async X=>{const ie=x(X);if(!ie){t.error("Printer is not assigned to any floor");return}confirm(`Remove printer from floor "${ie.name}"?`)&&(await s.deletePrinterFromFloor({floorId:ie.id,printerId:X}),t.info("Removed printer from floor"))},Re=async X=>{if(!X.id)throw new Error("Printer ID not set, cant toggle enabled");X.enabled=!X.enabled,await xn.toggleEnabled(X.id,X.enabled)},Q=async(X,ie)=>{const we=v.value.find(Pe=>Pe.id===X);if(!we){t.error("Camera not found");return}await ou.updateCameraStream(X,{streamURL:we.streamURL,name:we.name,printerId:ie,aspectRatio:we.aspectRatio,rotationClockwise:we.rotationClockwise,flipHorizontal:we.flipHorizontal,flipVertical:we.flipVertical}),we.printerId=ie,t.info("Attached camera to printer")},re=async X=>{const ie=v.value.find(we=>we.id===X);if(!ie){t.error("Camera not found");return}await ou.updateCameraStream(X,{streamURL:ie.streamURL,name:ie.name,printerId:void 0,aspectRatio:ie.aspectRatio,rotationClockwise:ie.rotationClockwise,flipHorizontal:ie.flipHorizontal,flipVertical:ie.flipVertical}),ie.printerId=void 0,t.info("Detached camera from printer")};return(X,ie)=>(N(),le("div",null,[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center"},{default:m(()=>[S("div",fge,[f(Bu,{modelValue:ne(u),"onUpdate:modelValue":ie[0]||(ie[0]=we=>Tt(u)?u.value=we:null),tags:ne(d),label:"Filter by tags",style:{width:"220px"}},null,8,["modelValue","tags"]),f(Uu,{modelValue:ne(c),"onUpdate:modelValue":ie[1]||(ie[1]=we=>Tt(c)?c.value=we:null),style:{width:"220px"}},null,8,["modelValue"]),f(yt,{modelValue:y.value,"onUpdate:modelValue":ie[2]||(ie[2]=we=>y.value=we),clearable:"",label:"Search","prepend-inner-icon":"search",density:"compact",variant:"outlined","hide-details":"",style:{width:"220px"}},null,8,["modelValue"])]),f(ht),S("div",pge,[f(te,{variant:"elevated",color:"purple","prepend-icon":"publish",onClick:ie[3]||(ie[3]=we=>W())},{default:m(()=>[...ie[9]||(ie[9]=[k(" Import OctoFarm ",-1)])]),_:1}),f(te,{variant:"elevated",color:"success","prepend-icon":"add",onClick:ie[4]||(ie[4]=we=>F())},{default:m(()=>[...ie[10]||(ie[10]=[k(" Create Printer ",-1)])]),_:1}),f(te,{variant:"elevated","prepend-icon":"label",onClick:ie[5]||(ie[5]=we=>B())},{default:m(()=>[...ie[11]||(ie[11]=[k(" Manage Tags ",-1)])]),_:1}),f(te,{variant:"elevated",color:"primary","prepend-icon":"code",onClick:ie[6]||(ie[6]=we=>H())},{default:m(()=>[...ie[12]||(ie[12]=[k(" Import/Export Backup ",-1)])]),_:1})])]),_:1}),f(ne(l3),{expanded:b.value,"onUpdate:expanded":ie[8]||(ie[8]=we=>b.value=we),headers:E.value,items:P.value,search:y.value,class:"elevation-1","item-value":"id","show-expand":""},{"no-data":m(()=>[S("div",mge,[P.value.length===0?(N(),le("h3",hge," No printer has been created yet. Create one here: ")):(N(),le("h3",gge," No printer has been found. Adjust your filters or search criteria. ")),f(kV)])]),"item.enabled":m(({item:we})=>[f(fw,{modelValue:we.enabled,"onUpdate:modelValue":Pe=>we.enabled=Pe,color:"primary",inset:"",onClickCapture:on(Pe=>Re(we),["stop"])},{default:m(()=>[k(V(we.enabled),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onClickCapture"])]),"item.printerType":m(({item:we})=>[k(V(ne(us)(we.printerType)),1)]),"item.name":m(({item:we})=>[f(He,null,{default:m(()=>[k(V(we.name||we.printerURL),1)]),_:2},1024)]),"item.floor":m(({item:we})=>[S("div",vge,[x(we.id)?(N(),Z(He,{key:0,closable:"",size:"small",onClick:Pe=>U(x(we.id)?.id),"onClick:close":Pe=>he(we.id)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...ie[13]||(ie[13]=[k("layers",-1)])]),_:1}),k(" "+V(x(we.id)?.name),1)]),_:2},1032,["onClick","onClick:close"])):(N(),le("span",yge," No floor ")),f(li,null,{activator:m(({props:Pe})=>[f(te,ve(Pe,{size:"x-small",icon:"",variant:"text"}),{default:m(()=>[f(j,null,{default:m(()=>[...ie[14]||(ie[14]=[k("more_vert",-1)])]),_:1})]),_:1},16)]),default:m(()=>[f(hr,{density:"compact","min-width":"200"},{default:m(()=>[f(ot,{"prepend-icon":"grid_on",onClick:Pe=>Y(we.id)},{default:m(()=>[f(Rt,null,{default:m(()=>[k(V(x(we.id)?"View Floor Grid":"View Printer Grid"),1)]),_:2},1024)]),_:2},1032,["onClick"]),x(we.id)?(N(),Z(ot,{key:0,"prepend-icon":"edit",onClick:Pe=>U(x(we.id)?.id)},{default:m(()=>[f(Rt,null,{default:m(()=>[...ie[15]||(ie[15]=[k("Edit Floor",-1)])]),_:1})]),_:1},8,["onClick"])):se("",!0),f(ot,{"prepend-icon":"settings",onClick:ie[7]||(ie[7]=Pe=>q())},{default:m(()=>[f(Rt,null,{default:m(()=>[...ie[16]||(ie[16]=[k("Floor Settings",-1)])]),_:1})]),_:1})]),_:2},1024)]),_:2},1024)])]),"item.cameras":m(({item:we})=>[S("div",bge,[(N(!0),le(De,null,Vt(R(we.id).slice(0,2),(Pe,G)=>(N(),Z(He,{key:Pe.id,size:"x-small",variant:"tonal",closable:"",onClick:J=>M(Pe.id),"onClick:close":J=>re(Pe.id)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...ie[17]||(ie[17]=[k("videocam",-1)])]),_:1}),k(" "+V(Pe.name),1)]),_:2},1032,["onClick","onClick:close"]))),128)),R(we.id).length>2?(N(),Z(He,{key:0,size:"x-small",variant:"text"},{default:m(()=>[k(" +"+V(R(we.id).length-2)+" more ",1)]),_:2},1024)):se("",!0),R(we.id).length?se("",!0):(N(),le("span",Sge," No cameras ")),f(li,null,{activator:m(({props:Pe})=>[f(te,ve(Pe,{disabled:!O(we.id).length,size:"x-small",icon:"",variant:"text"}),{default:m(()=>[f(j,null,{default:m(()=>[...ie[18]||(ie[18]=[k("add",-1)])]),_:1})]),_:1},16,["disabled"])]),default:m(()=>[f(hr,{density:"compact","min-width":"180"},{default:m(()=>[f(yo,null,{default:m(()=>[...ie[19]||(ie[19]=[k("Attach Camera",-1)])]),_:1}),(N(!0),le(De,null,Vt(O(we.id),Pe=>(N(),Z(ot,{key:Pe.id,onClick:G=>Q(Pe.id,we.id)},{prepend:m(()=>[f(j,{class:"mr-2",size:"small"},{default:m(()=>[...ie[20]||(ie[20]=[k("videocam",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[k(V(Pe.name||Pe.streamURL),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128)),O(we.id).length?se("",!0):(N(),Z(ot,{key:0,disabled:""},{default:m(()=>[f(Rt,{class:"text-caption"},{default:m(()=>[...ie[21]||(ie[21]=[k("No available cameras",-1)])]),_:1})]),_:1}))]),_:2},1024)]),_:2},1024)])]),"item.group":m(({item:we})=>[S("div",wge,[(N(!0),le(De,null,Vt(I(we.id),Pe=>(N(),Z(He,{key:Pe.id,color:Pe.color,size:"small",variant:"tonal",closable:"",onClick:G=>$(Pe.id),"onClick:close":G=>fe(Pe.id,we.id)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...ie[22]||(ie[22]=[k("label",-1)])]),_:1}),k(" "+V(Pe.name),1)]),_:2},1032,["color","onClick","onClick:close"]))),128)),f(li,null,{activator:m(({props:Pe})=>[f(te,ve(Pe,{disabled:!T(we.id).length,size:"x-small",icon:"",variant:"text"}),{default:m(()=>[f(j,null,{default:m(()=>[...ie[23]||(ie[23]=[k("add",-1)])]),_:1})]),_:1},16,["disabled"])]),default:m(()=>[f(hr,{density:"compact","min-width":"150"},{default:m(()=>[f(yo,null,{default:m(()=>[...ie[24]||(ie[24]=[k("Add Tag",-1)])]),_:1}),(N(!0),le(De,null,Vt(T(we.id),(Pe,G)=>(N(),Z(ot,{key:G,onClick:J=>K(Pe.id,we.id)},{prepend:m(()=>[f(He,{color:Pe.color,size:"x-small",variant:"flat",class:"mr-2"},{default:m(()=>[f(j,{size:"x-small"},{default:m(()=>[...ie[25]||(ie[25]=[k("label",-1)])]),_:1})]),_:1},8,["color"])]),default:m(()=>[f(Rt,null,{default:m(()=>[k(V(Pe.name),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128)),T(we.id).length?se("",!0):(N(),Z(ot,{key:0,disabled:""},{default:m(()=>[f(Rt,{class:"text-caption"},{default:m(()=>[...ie[26]||(ie[26]=[k("All tags assigned",-1)])]),_:1})]),_:1}))]),_:2},1024)]),_:2},1024)])]),"item.actions":m(({item:we})=>[S("div",Ege,[S("div",xge,[f(Ehe,{printer:we},null,8,["printer"]),f(yhe,{printer:we,"onUpdate:show":Pe=>L(we)},null,8,["printer","onUpdate:show"]),f(Che,{printer:we},null,8,["printer"]),f(whe,{printer:we},null,8,["printer"]),f(hhe,{printer:we},null,8,["printer"]),f(She,{printer:we},null,8,["printer"]),f(bhe,{printer:we},null,8,["printer"]),f(khe,{printer:we},null,8,["printer"])])])]),"item.socketupdate":m(({item:we})=>[_.value[we.id]?(N(),le("span",kge," Updated "+V(A(_.value[we.id]))+" seconds ago ",1)):(N(),le("span",Cge," No update received (silence) "))]),"expanded-row":m(({item:we,columns:Pe})=>[S("td",{colspan:Pe.length},[f(mhe,{printer:we},null,8,["printer"])],8,_ge)]),_:1},8,["expanded","headers","items","search"])]),_:1})]))}}),vs={floors:"floors",printer:"printer",emergencyCommands:"emergencyCommands",users:"users",account:"account",serverProtection:"serverProtection",softwareUpgrade:"softwareUpgrade",diagnostics:"diagnostics",experimental:"experimental",slicer:"slicer",debugSocket:"debugSocket",about:"about"},Ige={[vs.floors]:{title:"Floors",icon:"house_siding",path:"/settings/floors",divider:!0},[vs.printer]:{title:"Printer",icon:"local_print_shop",path:"/settings/printer",divider:!1},[vs.emergencyCommands]:{title:"Emergency Commands",icon:"warning",path:"/settings/emergency-commands",divider:!0},[vs.serverProtection]:{title:"Server Protection",icon:"security",path:"/settings/server-protection",divider:!1},[vs.users]:{title:"Users",icon:"group",path:"/settings/user-management",divider:!1},[vs.account]:{title:"Account",icon:"account_circle",path:"/settings/account",divider:!0},[vs.softwareUpgrade]:{title:"Software Upgrade",icon:"upgrade",path:"/settings/software-upgrade",divider:!1},[vs.diagnostics]:{title:"Diagnostics",icon:"bug_report",path:"/settings/diagnostics",divider:!1},[vs.experimental]:{title:"Experimental",icon:"settings_applications",path:"/settings/experimental",divider:!1},[vs.slicer]:{title:"Slicer Integration",icon:"print",path:"/settings/slicer",divider:!1},[vs.debugSocket]:{title:"SocketIO Debug",icon:"wifi_tethering",path:"/settings/debug-socket",divider:!0},[vs.about]:{title:"About",icon:"info",path:"/settings/about",divider:!1}},Pge=je({__name:"SettingsView",setup(e){const t=z(Ige);return(n,r)=>{const i=Vf("router-view");return N(),le("div",null,[f(ct,{"no-gutters":""},{default:m(()=>[f(Px,{permanent:!0},{default:m(()=>[f(hr,{density:"compact",nav:""},{default:m(()=>[(N(!0),le(De,null,Vt(ne(t),a=>(N(),Z(ot,{key:a.title,to:a.path,link:"","prepend-icon":a.icon,title:a.title,"router-link":"",style:We(a.divider?"border-bottom: 1px solid gray":"")},null,8,["to","prepend-icon","title","style"]))),128))]),_:1})]),_:1}),f(Ae,null,{default:m(()=>[f(i)]),_:1})]),_:1})])}}}),Age={class:"pr-3"},Rge={class:"tooltip-content"},sr=je({__name:"SettingSection",props:{title:{},tooltip:{},usecols:{type:Boolean,default:!0}},setup(e){const t=e;return(n,r)=>(N(),Z(hr,{subheader:"","three-line":""},{default:m(()=>[f(yo,null,{default:m(()=>[S("span",Age,V(t.title),1),t.tooltip?.length?(N(),Z(sn,{key:0,bottom:""},{activator:m(({props:i})=>[f(j,ve({class:"help-icon"},i),{default:m(()=>[...r[0]||(r[0]=[k("help_outline",-1)])]),_:1},16)]),default:m(()=>[S("span",Rge,V(e.tooltip),1)]),_:1})):se("",!0)]),_:1}),f(ot,null,{default:m(()=>[e.usecols?(N(),Z(ct,{key:0},{default:m(()=>[f(Ae,{cols:"4"},{default:m(()=>[cu(n.$slots,"default")]),_:3})]),_:3})):cu(n.$slots,"default",{key:1})]),_:3})]),_:3}))}}),Oge={class:"mb-4"},Nge={class:"d-flex align-center"},Dge={class:"font-weight-medium"},Lge={class:"d-flex align-center ga-1"},Fge={key:0,style:{"min-width":"200px"}},$ge={key:1,class:"d-flex align-center ga-1 flex-wrap"},Mge={class:"text-caption"},Vge={class:"d-flex justify-end ga-1"},Bge=je({__name:"UserManagementSettings",setup(e){const t=Xt(),n=z(!1),r=z(),i=z([]),a=z([]);async function s(){n.value=!0;try{r.value=await Es.getProfile(),a.value=await Es.listRoles(),i.value=await Es.listUsers()}catch(g){throw n.value=!1,console.error(g),g}return n.value=!1,{users:i,roles:a,profile:r}}const o=Ad({queryKey:["userRolesProfile"],queryFn:s});function l(g){return g.id==r.value?.id}async function u(g){if(confirm(`Are you sure you want to delete ${g.username}?`)){try{n.value=!0,await Es.deleteUser(g.id),await o.refetch()}catch(v){throw n.value=!1,console.error(v),v}n.value=!1,t.info(`User ${g.username} deleted`)}}async function c(g,v=!0){if(g.isRootUser){t.error("You are not allowed to do perform this action on an owner");return}if(confirm(`Are you sure you want to ${v?"verify":"unverify"} ${g.username}?`)){try{n.value=!0,await Es.setUserVerified(g.id,v),await o.refetch()}catch(y){throw n.value=!1,console.error(y),y}n.value=!1,t.info(v?`User ${g.username} verified`:`User ${g.username} unverified`)}}async function d(g,v=!0){if(r.value?.isRootUser||t.error("You are not allowed to do perform this action as you're not an owner"),!!confirm(`You are about to ${v?"set":"remove"} owner rights on ${g.username}. Are you sure?`)){try{n.value=!0,await Es.setRootUser(g.id,v),await o.refetch()}catch(y){throw n.value=!1,console.error(y),y}n.value=!1,t.info(v?`User ${g.username} set to owner`:`User ${g.username} is no longer owner`)}}async function p(g){try{n.value=!0,await Es.setUserRoles(g.id,g.roles),await o.refetch(),t.info(`Roles updated for ${g.username}`)}catch(v){throw n.value=!1,console.error(v),t.error(`Failed to update roles for ${g.username}`),v}n.value=!1}async function h(){await zt(Ht.CreateUserDialog).openDialog()}return(g,v)=>(N(),Z(Ve,null,{default:m(()=>[f(qe,null,{default:m(()=>[n.value?(N(),Z(SV,{key:0,size:20,color:"#a70015",style:{margin:"250px",position:"absolute"}})):se("",!0),f(sr,{title:"User Management",usecols:!1},{default:m(()=>[S("div",Oge,[f(te,{disabled:!r.value?.isRootUser,color:"primary","prepend-icon":"add",onClick:v[0]||(v[0]=y=>h())},{default:m(()=>[...v[1]||(v[1]=[k(" Create Verified User ",-1)])]),_:1},8,["disabled"])]),f(bp,{theme:"dark",hover:""},{default:m(()=>[v[7]||(v[7]=S("thead",null,[S("tr",null,[S("th",{scope:"col",class:"text-left"},"Username"),S("th",{scope:"col",class:"text-left"},"Status"),S("th",{scope:"col",class:"text-left"},"Roles"),S("th",{scope:"col",class:"text-left"},"Created"),S("th",{scope:"col",class:"text-right"},"Actions")])],-1)),S("tbody",null,[(N(!0),le(De,null,Vt(i.value,(y,b)=>(N(),le("tr",{key:b,class:Oe({"bg-grey-darken-3":l(y)})},[S("td",null,[S("div",Nge,[S("span",Dge,V(y.username),1),l(y)?(N(),Z(He,{key:0,color:"primary",size:"x-small",class:"ml-2"},{default:m(()=>[...v[2]||(v[2]=[k(" You ",-1)])]),_:1})):se("",!0)])]),S("td",null,[S("div",Lge,[f(He,{color:y.isVerified?"success":"warning",size:"x-small"},{default:m(()=>[k(V(y.isVerified?"Verified":"Unverified"),1)]),_:2},1032,["color"]),y.isDemoUser?(N(),Z(He,{key:0,size:"x-small",color:"info"},{default:m(()=>[...v[3]||(v[3]=[k(" Demo ",-1)])]),_:1})):se("",!0)])]),S("td",null,[r.value?.isRootUser?(N(),le("div",Fge,[f(Sr,{items:a.value.map(E=>({title:E.name,value:E.name})),modelValue:y.roles,"onUpdate:modelValue":[E=>y.roles=E,E=>p(y)],multiple:"",chips:"",density:"compact",variant:"outlined","hide-details":""},Uw({_:2},[y.isRootUser?{name:"prepend-item",fn:m(()=>[f(ot,null,{default:m(()=>[f(He,{size:"small",color:"error"},{default:m(()=>[...v[4]||(v[4]=[k("OWNER",-1)])]),_:1})]),_:1}),f(et)]),key:"0"}:void 0]),1032,["items","modelValue","onUpdate:modelValue"])])):(N(),le("div",$ge,[y.isRootUser?(N(),Z(He,{key:0,size:"x-small",color:"error"},{default:m(()=>[...v[5]||(v[5]=[k(" OWNER ",-1)])]),_:1})):se("",!0),(N(!0),le(De,null,Vt(y.roles,E=>(N(),Z(He,{key:E,size:"x-small"},{default:m(()=>[k(V(E),1)]),_:2},1024))),128))]))]),S("td",Mge,V(ne(See)(y.createdAt)),1),S("td",null,[S("div",Vge,[f(sn,{text:y.isVerified?"Set user to unverified":"Set user to verified"},{activator:m(({props:E})=>[f(te,ve({ref_for:!0},E,{disabled:l(y)||y.isRootUser,color:y.isVerified?"warning":"success",size:"small",icon:"",variant:"text",onClick:w=>c(y,!y.isVerified)}),{default:m(()=>[f(j,null,{default:m(()=>[k(V(y.isVerified?"shield_off":"shield"),1)]),_:2},1024)]),_:2},1040,["disabled","color","onClick"])]),_:2},1032,["text"]),f(sn,{text:"Toggle owner status"},{activator:m(({props:E})=>[f(te,ve({ref_for:!0},E,{disabled:l(y)||!r.value?.isRootUser,color:y.isRootUser?"warning":"primary",size:"small",icon:"",variant:"text",onClick:w=>d(y,!y.isRootUser)}),{default:m(()=>[f(j,null,{default:m(()=>[k(V(y.isRootUser?"key_off":"key"),1)]),_:2},1024)]),_:2},1040,["disabled","color","onClick"])]),_:2},1024),f(sn,{text:"Delete user"},{activator:m(({props:E})=>[f(te,ve({ref_for:!0},E,{disabled:l(y)||y.isRootUser,color:"error",size:"small",icon:"",variant:"text",onClick:w=>u(y)}),{default:m(()=>[f(j,null,{default:m(()=>[...v[6]||(v[6]=[k("delete",-1)])]),_:1})]),_:1},16,["disabled","onClick"])]),_:2},1024)])])],2))),128))])]),_:1})]),_:1})]),_:1})]),_:1}))}}),Uge=je({__name:"PrinterSettings",setup(e){const t=fs(),n=Xt(),r=z({timeoutSettings:!1,purgeFiles:!1});async function i(){if(t.settings.timeout.apiTimeout=Number.parseInt(t.settings.timeout.apiTimeout.toString()),t.settings.timeout.apiUploadTimeout=Number.parseInt(t.settings.timeout.apiUploadTimeout.toString()),!t.settings?.timeout?.apiTimeout){n.error("Timeout not set");return}if(t.settings.timeout.apiTimeout<1e3&&(n.error("Timeout is too low - please set it to at least 1000 milliseconds"),t.settings.timeout.apiTimeout=1e3),t.settings.timeout.apiUploadTimeout<1e4)n.error("Upload timeout is too low - please set it to at least 10000 milliseconds"),t.settings.timeout.apiUploadTimeout=1e4;else{r.value.timeoutSettings=!0;try{await t.updateTimeoutSettings(t.settings.timeout),n.info("Timeout settings updated")}finally{r.value.timeoutSettings=!1}}}async function a(){r.value.purgeFiles=!0;try{await Qa.purgeFiles(),n.openInfoMessage({title:"Successfully purged all references to printer files!"})}finally{r.value.purgeFiles=!1}}return(s,o)=>(N(),Z(Ve,null,{default:m(()=>[f(qe,null,{default:m(()=>[ne(t).settings?.timeout?(N(),Z(sr,{key:0,title:"API Timeout",tooltip:"Set the server default REST API timeout in milliseconds."},{default:m(()=>[f(yt,{modelValue:ne(t).settings.timeout.apiTimeout,"onUpdate:modelValue":o[0]||(o[0]=l=>ne(t).settings.timeout.apiTimeout=l),label:"Connection Timeout",min:"0",type:"number",onChange:i},null,8,["modelValue"]),r.value.timeoutSettings?(N(),Z(Bn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):se("",!0)]),_:1})):se("",!0),ne(t).settings?.timeout?(N(),Z(sr,{key:1,title:"Upload Timeout",tooltip:"Set the server REST API file upload timeout in milliseconds."},{default:m(()=>[f(yt,{modelValue:ne(t).settings.timeout.apiUploadTimeout,"onUpdate:modelValue":o[1]||(o[1]=l=>ne(t).settings.timeout.apiUploadTimeout=l),label:"Upload Timeout",min:"0",type:"number",onChange:i},null,8,["modelValue"]),r.value.timeoutSettings?(N(),Z(Bn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):se("",!0)]),_:1})):se("",!0),f(et),f(sr,{title:"Clean File References",tooltip:"Clear out file references without removing them from OctoPrint."},{default:m(()=>[f(te,{color:"primary",onClick:o[2]||(o[2]=l=>a())},{default:m(()=>[...o[3]||(o[3]=[k(" Purge File References ",-1)])]),_:1}),r.value.purgeFiles?(N(),Z(Bn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):se("",!0)]),_:1})]),_:1})]),_:1}))}});function jge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wy(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Mh={exports:{}},t1={exports:{}},n1={};const id=Symbol(""),Tc=Symbol(""),Ey=Symbol(""),Sp=Symbol(""),vk=Symbol(""),rl=Symbol(""),yk=Symbol(""),bk=Symbol(""),xy=Symbol(""),ky=Symbol(""),Ld=Symbol(""),Cy=Symbol(""),Sk=Symbol(""),_y=Symbol(""),Ty=Symbol(""),Iy=Symbol(""),Py=Symbol(""),Ay=Symbol(""),Ry=Symbol(""),wk=Symbol(""),Ek=Symbol(""),gm=Symbol(""),wp=Symbol(""),Oy=Symbol(""),Ny=Symbol(""),sd=Symbol(""),Fd=Symbol(""),Dy=Symbol(""),Qg=Symbol(""),m3=Symbol(""),Zg=Symbol(""),Ep=Symbol(""),h3=Symbol(""),g3=Symbol(""),Ly=Symbol(""),v3=Symbol(""),y3=Symbol(""),Fy=Symbol(""),xk=Symbol(""),ku={[id]:"Fragment",[Tc]:"Teleport",[Ey]:"Suspense",[Sp]:"KeepAlive",[vk]:"BaseTransition",[rl]:"openBlock",[yk]:"createBlock",[bk]:"createElementBlock",[xy]:"createVNode",[ky]:"createElementVNode",[Ld]:"createCommentVNode",[Cy]:"createTextVNode",[Sk]:"createStaticVNode",[_y]:"resolveComponent",[Ty]:"resolveDynamicComponent",[Iy]:"resolveDirective",[Py]:"resolveFilter",[Ay]:"withDirectives",[Ry]:"renderList",[wk]:"renderSlot",[Ek]:"createSlots",[gm]:"toDisplayString",[wp]:"mergeProps",[Oy]:"normalizeClass",[Ny]:"normalizeStyle",[sd]:"normalizeProps",[Fd]:"guardReactiveProps",[Dy]:"toHandlers",[Qg]:"camelize",[m3]:"capitalize",[Zg]:"toHandlerKey",[Ep]:"setBlockTracking",[h3]:"pushScopeId",[g3]:"popScopeId",[Ly]:"withCtx",[v3]:"unref",[y3]:"isRef",[Fy]:"withMemo",[xk]:"isMemoSame"};function b3(e){Object.getOwnPropertySymbols(e).forEach(t=>{ku[t]=e[t]})}const zge={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Hge={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"},Wge={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},Gge={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"},Cr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function S3(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Cr}}function ad(e,t,n,r,i,a,s,o=!1,l=!1,u=!1,c=Cr){return e&&(o?(e.helper(rl),e.helper(Tu(e.inSSR,u))):e.helper(_u(e.inSSR,u)),s&&e.helper(Ay)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:s,isBlock:o,disableTracking:l,isComponent:u,loc:c}}function Yo(e,t=Cr){return{type:17,loc:t,elements:e}}function cs(e,t=Cr){return{type:15,loc:t,properties:e}}function ar(e,t){return{type:16,loc:Cr,key:bt(e)?Pt(e,!0):e,value:t}}function Pt(e,t=!1,n=Cr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function qge(e,t){return{type:5,loc:t,content:bt(e)?Pt(e,!1,t):e}}function Ps(e,t=Cr){return{type:8,loc:t,children:e}}function fr(e,t=[],n=Cr){return{type:14,loc:n,callee:e,arguments:t}}function Cu(e,t=void 0,n=!1,r=!1,i=Cr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function ev(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Cr}}function w3(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Cr}}function E3(e){return{type:21,body:e,loc:Cr}}function Kge(e){return{type:22,elements:e,loc:Cr}}function Yge(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Cr}}function Xge(e,t){return{type:24,left:e,right:t,loc:Cr}}function Jge(e){return{type:25,expressions:e,loc:Cr}}function Qge(e){return{type:26,returns:e,loc:Cr}}function _u(e,t){return e||t?xy:ky}function Tu(e,t){return e||t?yk:bk}function $y(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(_u(r,e.isComponent)),t(rl),t(Tu(r,e.isComponent)))}const sA=new Uint8Array([123,123]),aA=new Uint8Array([125,125]);function oA(e){return e>=97&&e<=122||e>=65&&e<=90}function ss(e){return e===32||e===10||e===9||e===12||e===13}function To(e){return e===47||e===62||ss(e)}function tv(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Gr={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 Zge{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=sA,this.delimiterClose=aA,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=sA,this.delimiterClose=aA}getPos(t){let n=1,r=t+1;const i=this.newlines.length;let a=-1;if(i>100){let s=-1,o=i;for(;s+1<o;){const l=s+o>>>1;this.newlines[l]<t?s=l:o=l}a=s}else for(let s=i-1;s>=0;s--)if(t>this.newlines[s]){a=s;break}return a>=0&&(n=a+2,r=t-this.newlines[a]),{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?To(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||ss(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Gr.TitleEnd||this.currentSequence===Gr.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Gr.Cdata[this.sequenceIndex]?++this.sequenceIndex===Gr.Cdata.length&&(this.state=28,this.currentSequence=Gr.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Gr.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):oA(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){To(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(To(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(tv("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){ss(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=oA(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ss(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ss(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ss(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||To(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||To(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||To(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||To(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||To(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):ss(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):ss(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){ss(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Gr.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Gr.ScriptEnd[3]?this.startSpecial(Gr.ScriptEnd,4):t===Gr.StyleEnd[3]?this.startSpecial(Gr.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Gr.TitleEnd[3]?this.startSpecial(Gr.TitleEnd,4):t===Gr.TextareaEnd[3]?this.startSpecial(Gr.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Gr.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const eve={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"},tve={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:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,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 pw(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function lu(e,t){const n=pw("MODE",t),r=pw(e,t);return n===3?r===!0:r!==!1}function od(e,t,n,...r){return lu(e,t)}function nve(e,t,n,...r){if(pw(e,t)==="suppress-warning")return;const{message:a,link:s}=tve[e],o=`(deprecation ${e}) ${typeof a=="function"?a(...r):a}${s?`
88
+ Details: ${s}`:""}`,l=new SyntaxError(o);l.code=e,n&&(l.loc=n),t.onWarn(l)}function kk(e){throw e}function x3(e){}function Pn(e,t,n,r){const i=`https://vuejs.org/error-reference/#compiler-${e}`,a=new SyntaxError(String(i));return a.code=e,a.loc=t,a}const rve={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__"},ive={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 '&lt;' 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.
89
+ Use 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 sve(e,t,n=!1,r=[],i=Object.create(null)){}function ave(e,t,n){return!1}function ove(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const r=t[n];if(r.type==="AssignmentExpression")return!0;if(r.type!=="ObjectProperty"&&!r.type.endsWith("Pattern"))break}}return!1}function lve(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function uve(e,t){for(const n of e.params)for(const r of da(n))t(r)}function k3(e,t){const n=e.type==="SwitchCase"?e.consequent:e.body;for(const r of n)if(r.type==="VariableDeclaration"){if(r.declare)continue;for(const i of r.declarations)for(const a of da(i.id))t(a)}else if(r.type==="FunctionDeclaration"||r.type==="ClassDeclaration"){if(r.declare||!r.id)continue;t(r.id)}else cve(r)?dve(r,!0,t):r.type==="SwitchStatement"&&fve(r,!0,t)}function cve(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function dve(e,t,n){const r=e.type==="ForStatement"?e.init:e.left;if(r&&r.type==="VariableDeclaration"&&(r.kind==="var"?t:!t))for(const i of r.declarations)for(const a of da(i.id))n(a)}function fve(e,t,n){for(const r of e.cases){for(const i of r.consequent)if(i.type==="VariableDeclaration"&&(i.kind==="var"?t:!t))for(const a of i.declarations)for(const s of da(a.id))n(s);k3(r,n)}}function da(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const r of e.properties)r.type==="RestElement"?da(r.argument,t):da(r.value,t);break;case"ArrayPattern":e.elements.forEach(r=>{r&&da(r,t)});break;case"RestElement":da(e.argument,t);break;case"AssignmentPattern":da(e.left,t);break}return t}const pve=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),C3=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,mve=(e,t)=>C3(t)&&t.key===e,_3=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function T3(e){return _3.includes(e.type)?T3(e.expression):e}const xi=e=>e.type===4&&e.isStatic;function Ck(e){switch(e){case"Teleport":case"teleport":return Tc;case"Suspense":case"suspense":return Ey;case"KeepAlive":case"keep-alive":return Sp;case"BaseTransition":case"base-transition":return vk}}const hve=/^$|^\d|[^\$\w\xA0-\uFFFF]/,vm=e=>!hve.test(e),_k=/[A-Za-z_$\xA0-\uFFFF]/,gve=/[\.\?\w$\xA0-\uFFFF]/,vve=/\s+[.[]\s*|\s*[.[]\s+/g,I3=e=>e.type===4?e.content:e.loc.source,P3=e=>{const t=I3(e).trim().replace(vve,o=>o.trim());let n=0,r=[],i=0,a=0,s=null;for(let o=0;o<t.length;o++){const l=t.charAt(o);switch(n){case 0:if(l==="[")r.push(n),n=1,i++;else if(l==="(")r.push(n),n=2,a++;else if(!(o===0?_k:gve).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(r.push(n),n=3,s=l):l==="["?i++:l==="]"&&(--i||(n=r.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")r.push(n),n=3,s=l;else if(l==="(")a++;else if(l===")"){if(o===t.length-1)return!1;--a||(n=r.pop())}break;case 3:l===s&&(n=r.pop(),s=null);break}}return!i&&!a},yve=Tr,Tk=P3,bve=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,A3=e=>bve.test(I3(e)),Sve=Tr,R3=A3;function wve(e,t,n=t.length){return O3({offset:e.offset,line:e.line,column:e.column},t,n)}function O3(e,t,n=t.length){let r=0,i=-1;for(let a=0;a<n;a++)t.charCodeAt(a)===10&&(r++,i=a);return e.offset+=n,e.line+=r,e.column=i===-1?e.column+n:n-i,e}function Eve(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function wi(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&(n||i.exp)&&(bt(t)?i.name===t:t.test(i.name)))return i}}function ym(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const a=e.props[i];if(a.type===6){if(n)continue;if(a.name===t&&(a.value||r))return a}else if(a.name==="bind"&&(a.exp||r)&&zo(a.arg,t))return a}}function zo(e,t){return!!(e&&xi(e)&&e.content===t)}function N3(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Vh(e){return e.type===5||e.type===2}function mw(e){return e.type===7&&e.name==="pre"}function Ik(e){return e.type===7&&e.name==="slot"}function ld(e){return e.type===1&&e.tagType===3}function xp(e){return e.type===1&&e.tagType===2}const xve=new Set([sd,Fd]);function D3(e,t=[]){if(e&&!bt(e)&&e.type===14){const n=e.callee;if(!bt(n)&&xve.has(n))return D3(e.arguments[0],t.concat(e))}return[e,t]}function kp(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],s;if(i&&!bt(i)&&i.type===14){const o=D3(i);i=o[0],a=o[1],s=a[a.length-1]}if(i==null||bt(i))r=cs([t]);else if(i.type===14){const o=i.arguments[0];!bt(o)&&o.type===15?lA(t,o)||o.properties.unshift(t):i.callee===Dy?r=fr(n.helper(wp),[cs([t]),i]):i.arguments.unshift(cs([t])),!r&&(r=i)}else i.type===15?(lA(t,i)||i.properties.unshift(t),r=i):(r=fr(n.helper(wp),[cs([t]),i]),s&&s.callee===Fd&&(s=a[a.length-2]));e.type===13?s?s.arguments[0]=r:e.props=r:s?s.arguments[0]=r:e.arguments[2]=r}function lA(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===r)}return n}function ud(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function Vs(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const r=e.props[n];if(r.type===7&&(Vs(r.arg,t)||Vs(r.exp,t)))return!0}return e.children.some(n=>Vs(n,t));case 11:return Vs(e.source,t)?!0:e.children.some(n=>Vs(n,t));case 9:return e.branches.some(n=>Vs(n,t));case 10:return Vs(e.condition,t)?!0:e.children.some(n=>Vs(n,t));case 4:return!e.isStatic&&vm(e.content)&&!!t[e.content];case 8:return e.children.some(n=>fn(n)&&Vs(n,t));case 5:case 12:return Vs(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function L3(e){return e.type===14&&e.callee===Fy?e.arguments[1].returns:e}const F3=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Pk(e){for(let t=0;t<e.length;t++)if(!ss(e.charCodeAt(t)))return!1;return!0}function My(e){return e.type===2&&Pk(e.content)||e.type===12&&My(e.content)}function Ak(e){return e.type===3||My(e)}const $3={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Il,isPreTag:Il,isIgnoreNewlineTag:Il,isCustomElement:Il,onError:kk,onWarn:x3,comments:!1,prefixIdentifiers:!1};let mn=$3,Cp=null,to="",Yr=null,qt=null,Ni="",$a=-1,Cl=-1,Rk=0,$o=!1,hw=null;const Mn=[],Qn=new Zge(Mn,{onerr:Da,ontext(e,t){th(Lr(e,t),e,t)},ontextentity(e,t,n){th(e,t,n)},oninterpolation(e,t){if($o)return th(Lr(e,t),e,t);let n=e+Qn.delimiterOpen.length,r=t-Qn.delimiterClose.length;for(;ss(to.charCodeAt(n));)n++;for(;ss(to.charCodeAt(r-1));)r--;let i=Lr(n,r);i.includes("&")&&(i=mn.decodeEntities(i,!1)),gw({type:5,content:Uh(i,!1,ir(n,r)),loc:ir(e,t)})},onopentagname(e,t){const n=Lr(e,t);Yr={type:1,tag:n,ns:mn.getNamespace(n,Mn[0],mn.ns),tagType:0,props:[],children:[],loc:ir(e-1,t),codegenNode:void 0}},onopentagend(e){cA(e)},onclosetag(e,t){const n=Lr(e,t);if(!mn.isVoidTag(n)){let r=!1;for(let i=0;i<Mn.length;i++)if(Mn[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&Da(24,Mn[0].loc.start.offset);for(let s=0;s<=i;s++){const o=Mn.shift();Bh(o,t,s<i)}break}r||Da(23,M3(e,60))}},onselfclosingtag(e){const t=Yr.tag;Yr.isSelfClosing=!0,cA(e),Mn[0]&&Mn[0].tag===t&&Bh(Mn.shift(),e)},onattribname(e,t){qt={type:6,name:Lr(e,t),nameLoc:ir(e,t),value:void 0,loc:ir(e)}},ondirname(e,t){const n=Lr(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!$o&&r===""&&Da(26,e),$o||r==="")qt={type:6,name:n,nameLoc:ir(e,t),value:void 0,loc:ir(e)};else if(qt={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[Pt("prop")]:[],loc:ir(e)},r==="pre"){$o=Qn.inVPre=!0,hw=Yr;const i=Yr.props;for(let a=0;a<i.length;a++)i[a].type===7&&(i[a]=Nve(i[a]))}},ondirarg(e,t){if(e===t)return;const n=Lr(e,t);if($o&&!mw(qt))qt.name+=n,Vl(qt.nameLoc,t);else{const r=n[0]!=="[";qt.arg=Uh(r?n:n.slice(1,-1),r,ir(e,t),r?3:0)}},ondirmodifier(e,t){const n=Lr(e,t);if($o&&!mw(qt))qt.name+="."+n,Vl(qt.nameLoc,t);else if(qt.name==="slot"){const r=qt.arg;r&&(r.content+="."+n,Vl(r.loc,t))}else{const r=Pt(n,!0,ir(e,t));qt.modifiers.push(r)}},onattribdata(e,t){Ni+=Lr(e,t),$a<0&&($a=e),Cl=t},onattribentity(e,t,n){Ni+=e,$a<0&&($a=t),Cl=n},onattribnameend(e){const t=qt.loc.start.offset,n=Lr(t,e);qt.type===7&&(qt.rawName=n),Yr.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&Da(2,t)},onattribend(e,t){if(Yr&&qt){if(Vl(qt.loc,t),e!==0)if(Ni.includes("&")&&(Ni=mn.decodeEntities(Ni,!0)),qt.type===6)qt.name==="class"&&(Ni=B3(Ni).trim()),e===1&&!Ni&&Da(13,t),qt.value={type:2,content:Ni,loc:e===1?ir($a,Cl):ir($a-1,Cl+1)},Qn.inSFCRoot&&Yr.tag==="template"&&qt.name==="lang"&&Ni&&Ni!=="html"&&Qn.enterRCDATA(tv("</template"),0);else{let n=0;qt.exp=Uh(Ni,!1,ir($a,Cl),0,n),qt.name==="for"&&(qt.forParseResult=Cve(qt.exp));let r=-1;qt.name==="bind"&&(r=qt.modifiers.findIndex(i=>i.content==="sync"))>-1&&od("COMPILER_V_BIND_SYNC",mn,qt.loc,qt.arg.loc.source)&&(qt.name="model",qt.modifiers.splice(r,1))}(qt.type!==7||qt.name!=="pre")&&Yr.props.push(qt)}Ni="",$a=Cl=-1},oncomment(e,t){mn.comments&&gw({type:3,content:Lr(e,t),loc:ir(e-4,t+3)})},onend(){const e=to.length;for(let t=0;t<Mn.length;t++)Bh(Mn[t],e-1),Da(24,Mn[t].loc.start.offset)},oncdata(e,t){Mn[0].ns!==0?th(Lr(e,t),e,t):Da(1,e-9)},onprocessinginstruction(e){(Mn[0]?Mn[0].ns:mn.ns)===0&&Da(21,e-1)}}),uA=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,kve=/^\(|\)$/g;function Cve(e){const t=e.loc,n=e.content,r=n.match(F3);if(!r)return;const[,i,a]=r,s=(d,p,h=!1)=>{const g=t.start.offset+p,v=g+d.length;return Uh(d,!1,ir(g,v),0,h?1:0)},o={source:s(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(kve,"").trim();const u=i.indexOf(l),c=l.match(uA);if(c){l=l.replace(uA,"").trim();const d=c[1].trim();let p;if(d&&(p=n.indexOf(d,u+l.length),o.key=s(d,p,!0)),c[2]){const h=c[2].trim();h&&(o.index=s(h,n.indexOf(h,o.key?p+d.length:u+l.length),!0))}}return l&&(o.value=s(l,u,!0)),o}function Lr(e,t){return to.slice(e,t)}function cA(e){Qn.inSFCRoot&&(Yr.innerLoc=ir(e+1,e+1)),gw(Yr);const{tag:t,ns:n}=Yr;n===0&&mn.isPreTag(t)&&Rk++,mn.isVoidTag(t)?Bh(Yr,e):(Mn.unshift(Yr),(n===1||n===2)&&(Qn.inXML=!0)),Yr=null}function th(e,t,n){{const a=Mn[0]&&Mn[0].tag;a!=="script"&&a!=="style"&&e.includes("&")&&(e=mn.decodeEntities(e,!1))}const r=Mn[0]||Cp,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,Vl(i.loc,n)):r.children.push({type:2,content:e,loc:ir(t,n)})}function Bh(e,t,n=!1){n?Vl(e.loc,M3(t,60)):Vl(e.loc,_ve(t,62)+1),Qn.inSFCRoot&&(e.children.length?e.innerLoc.end=Bt({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Bt({},e.innerLoc.start),e.innerLoc.source=Lr(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i,children:a}=e;if($o||(r==="slot"?e.tagType=2:dA(e)?e.tagType=3:Ive(e)&&(e.tagType=1)),Qn.inRCDATA||(e.children=V3(a)),i===0&&mn.isIgnoreNewlineTag(r)){const s=a[0];s&&s.type===2&&(s.content=s.content.replace(/^\r?\n/,""))}i===0&&mn.isPreTag(r)&&Rk--,hw===e&&($o=Qn.inVPre=!1,hw=null),Qn.inXML&&(Mn[0]?Mn[0].ns:mn.ns)===0&&(Qn.inXML=!1);{const s=e.props;if(!Qn.inSFCRoot&&lu("COMPILER_NATIVE_TEMPLATE",mn)&&e.tag==="template"&&!dA(e)){const l=Mn[0]||Cp,u=l.children.indexOf(e);l.children.splice(u,1,...e.children)}const o=s.find(l=>l.type===6&&l.name==="inline-template");o&&od("COMPILER_INLINE_TEMPLATE",mn,o.loc)&&e.children.length&&(o.value={type:2,content:Lr(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function _ve(e,t){let n=e;for(;to.charCodeAt(n)!==t&&n<to.length-1;)n++;return n}function M3(e,t){let n=e;for(;to.charCodeAt(n)!==t&&n>=0;)n--;return n}const Tve=new Set(["if","else","else-if","for","slot"]);function dA({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Tve.has(t[n].name))return!0}return!1}function Ive({tag:e,props:t}){if(mn.isCustomElement(e))return!1;if(e==="component"||Pve(e.charCodeAt(0))||Ck(e)||mn.isBuiltInComponent&&mn.isBuiltInComponent(e)||mn.isNativeTag&&!mn.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(od("COMPILER_IS_ON_ELEMENT",mn,r.loc))return!0}}else if(r.name==="bind"&&zo(r.arg,"is")&&od("COMPILER_IS_ON_ELEMENT",mn,r.loc))return!0}return!1}function Pve(e){return e>64&&e<91}const Ave=/\r\n/g;function V3(e){const t=mn.whitespace!=="preserve";let n=!1;for(let r=0;r<e.length;r++){const i=e[r];if(i.type===2)if(Rk)i.content=i.content.replace(Ave,`
90
+ `);else if(Pk(i.content)){const a=e[r-1]&&e[r-1].type,s=e[r+1]&&e[r+1].type;!a||!s||t&&(a===3&&(s===3||s===1)||a===1&&(s===3||s===1&&Rve(i.content)))?(n=!0,e[r]=null):i.content=" "}else t&&(i.content=B3(i.content))}return n?e.filter(Boolean):e}function Rve(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function B3(e){let t="",n=!1;for(let r=0;r<e.length;r++)ss(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function gw(e){(Mn[0]||Cp).children.push(e)}function ir(e,t){return{start:Qn.getPos(e),end:t==null?t:Qn.getPos(t),source:t==null?t:Lr(e,t)}}function Ove(e){return ir(e.start.offset,e.end.offset)}function Vl(e,t){e.end=Qn.getPos(t),e.source=Lr(e.start.offset,t)}function Nve(e){const t={type:6,name:e.rawName,nameLoc:ir(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function Uh(e,t=!1,n,r=0,i=0){return Pt(e,t,n,r)}function Da(e,t,n){mn.onError(Pn(e,ir(t,t)))}function Dve(){Qn.reset(),Yr=null,qt=null,Ni="",$a=-1,Cl=-1,Mn.length=0}function Ok(e,t){if(Dve(),to=e,mn=Bt({},$3),t){let i;for(i in t)t[i]!=null&&(mn[i]=t[i])}Qn.mode=mn.parseMode==="html"?1:mn.parseMode==="sfc"?2:0,Qn.inXML=mn.ns===1||mn.ns===2;const n=t&&t.delimiters;n&&(Qn.delimiterOpen=tv(n[0]),Qn.delimiterClose=tv(n[1]));const r=Cp=S3([],e);return Qn.parse(to),r.loc=ir(0,e.length),r.children=V3(r.children),Cp=null,r}function Lve(e,t){jh(e,void 0,t,!!U3(e))}function U3(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!xp(t[0])?t[0]:null}function jh(e,t,n,r=!1,i=!1){const{children:a}=e,s=[];for(let c=0;c<a.length;c++){const d=a[c];if(d.type===1&&d.tagType===0){const p=r?0:ji(d,n);if(p>0){if(p>=2){d.codegenNode.patchFlag=-1,s.push(d);continue}}else{const h=d.codegenNode;if(h.type===13){const g=h.patchFlag;if((g===void 0||g===512||g===1)&&z3(d,n)>=2){const v=H3(d);v&&(h.props=n.hoist(v))}h.dynamicProps&&(h.dynamicProps=n.hoist(h.dynamicProps))}}}else if(d.type===12&&(r?0:ji(d,n))>=2){d.codegenNode.type===14&&d.codegenNode.arguments.length>0&&d.codegenNode.arguments.push("-1"),s.push(d);continue}if(d.type===1){const p=d.tagType===1;p&&n.scopes.vSlot++,jh(d,e,n,!1,i),p&&n.scopes.vSlot--}else if(d.type===11)jh(d,e,n,d.children.length===1,!0);else if(d.type===9)for(let p=0;p<d.branches.length;p++)jh(d.branches[p],e,n,d.branches[p].children.length===1,i)}let o=!1;if(s.length===a.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Xe(e.codegenNode.children))e.codegenNode.children=l(Yo(e.codegenNode.children)),o=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Xe(e.codegenNode.children)&&e.codegenNode.children.type===15){const c=u(e.codegenNode,"default");c&&(c.returns=l(Yo(c.returns)),o=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Xe(t.codegenNode.children)&&t.codegenNode.children.type===15){const c=wi(e,"slot",!0),d=c&&c.arg&&u(t.codegenNode,c.arg);d&&(d.returns=l(Yo(d.returns)),o=!0)}}if(!o)for(const c of s)c.codegenNode=n.cache(c.codegenNode);function l(c){const d=n.cache(c);return d.needArraySpread=!0,d}function u(c,d){if(c.children&&!Xe(c.children)&&c.children.type===15){const p=c.children.properties.find(h=>h.key===d||h.key.content===d);return p&&p.value}}s.length&&n.transformHoist&&n.transformHoist(a,n,e)}function ji(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let s=3;const o=z3(e,t);if(o===0)return n.set(e,0),0;o<s&&(s=o);for(let l=0;l<e.children.length;l++){const u=ji(e.children[l],t);if(u===0)return n.set(e,0),0;u<s&&(s=u)}if(s>1)for(let l=0;l<e.props.length;l++){const u=e.props[l];if(u.type===7&&u.name==="bind"&&u.exp){const c=ji(u.exp,t);if(c===0)return n.set(e,0),0;c<s&&(s=c)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(rl),t.removeHelper(Tu(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(_u(t.inSSR,i.isComponent))}return n.set(e,s),s}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ji(e.content,t);case 4:return e.constType;case 8:let a=3;for(let s=0;s<e.children.length;s++){const o=e.children[s];if(bt(o)||ki(o))continue;const l=ji(o,t);if(l===0)return 0;l<a&&(a=l)}return a;case 20:return 2;default:return 0}}const Fve=new Set([Oy,Ny,sd,Fd]);function j3(e,t){if(e.type===14&&!bt(e.callee)&&Fve.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ji(n,t);if(n.type===14)return j3(n,t)}return 0}function z3(e,t){let n=3;const r=H3(e);if(r&&r.type===15){const{properties:i}=r;for(let a=0;a<i.length;a++){const{key:s,value:o}=i[a],l=ji(s,t);if(l===0)return l;l<n&&(n=l);let u;if(o.type===4?u=ji(o,t):o.type===14?u=j3(o,t):u=0,u===0)return u;u<n&&(n=u)}}return n}function H3(e){const t=e.codegenNode;if(t.type===13)return t.props}function W3(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:a=!1,nodeTransforms:s=[],directiveTransforms:o={},transformHoist:l=null,isBuiltInComponent:u=Tr,isCustomElement:c=Tr,expressionPlugins:d=[],scopeId:p=null,slotted:h=!0,ssr:g=!1,inSSR:v=!1,ssrCssVars:y="",bindingMetadata:b=jt,inline:E=!1,isTS:w=!1,onError:C=kk,onWarn:P=x3,compatConfig:_}){const A=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),I={filename:t,selfName:A&&Ji(kn(A[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:a,nodeTransforms:s,directiveTransforms:o,transformHoist:l,isBuiltInComponent:u,isCustomElement:c,expressionPlugins:d,scopeId:p,slotted:h,ssr:g,inSSR:v,ssrCssVars:y,bindingMetadata:b,inline:E,isTS:w,onError:C,onWarn:P,compatConfig:_,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(T){const x=I.helpers.get(T)||0;return I.helpers.set(T,x+1),T},removeHelper(T){const x=I.helpers.get(T);if(x){const R=x-1;R?I.helpers.set(T,R):I.helpers.delete(T)}},helperString(T){return`_${ku[I.helper(T)]}`},replaceNode(T){I.parent.children[I.childIndex]=I.currentNode=T},removeNode(T){const x=I.parent.children,R=T?x.indexOf(T):I.currentNode?I.childIndex:-1;!T||T===I.currentNode?(I.currentNode=null,I.onNodeRemoved()):I.childIndex>R&&(I.childIndex--,I.onNodeRemoved()),I.parent.children.splice(R,1)},onNodeRemoved:Tr,addIdentifiers(T){},removeIdentifiers(T){},hoist(T){bt(T)&&(T=Pt(T)),I.hoists.push(T);const x=Pt(`_hoisted_${I.hoists.length}`,!1,T.loc,2);return x.hoisted=T,x},cache(T,x=!1,R=!1){const O=w3(I.cached.length,T,x,R);return I.cached.push(O),O}};return I.filters=new Set,I}function G3(e,t){const n=W3(e,t);bm(e,n),t.hoistStatic&&Lve(e,n),t.ssr||$ve(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function $ve(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const i=U3(e);if(i&&i.codegenNode){const a=i.codegenNode;a.type===13&&$y(a,t),e.codegenNode=a}else e.codegenNode=r[0]}else if(r.length>1){let i=64;e.codegenNode=ad(t,n(id),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function Mve(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];bt(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,bm(i,t))}}function bm(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let a=0;a<n.length;a++){const s=n[a](e,t);if(s&&(Xe(s)?r.push(...s):r.push(s)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ld);break;case 5:t.ssr||t.helper(gm);break;case 9:for(let a=0;a<e.branches.length;a++)bm(e.branches[a],t);break;case 10:case 11:case 1:case 0:Mve(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function Nk(e,t){const n=bt(e)?r=>r===e:r=>e.test(r);return(r,i)=>{if(r.type===1){const{props:a}=r;if(r.tagType===3&&a.some(Ik))return;const s=[];for(let o=0;o<a.length;o++){const l=a[o];if(l.type===7&&n(l.name)){a.splice(o,1),o--;const u=t(r,l,i);u&&s.push(u)}}return s}}}const Vy="/*@__PURE__*/",q3=e=>`${ku[e]}: _${ku[e]}`;function Vve(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:i="template.vue.html",scopeId:a=null,optimizeImports:s=!1,runtimeGlobalName:o="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:s,runtimeGlobalName:o,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:c,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(v){return`_${ku[v]}`},push(v,y=-2,b){h.code+=v},indent(){g(++h.indentLevel)},deindent(v=!1){v?--h.indentLevel:g(--h.indentLevel)},newline(){g(h.indentLevel)}};function g(v){h.push(`
91
+ `+" ".repeat(v),0)}return h}function K3(e,t={}){const n=Vve(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:a,indent:s,deindent:o,newline:l,scopeId:u,ssr:c}=n,d=Array.from(e.helpers),p=d.length>0,h=!a&&r!=="module";Bve(e,n);const v=c?"ssrRender":"render",b=(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${v}(${b}) {`),s(),h&&(i("with (_ctx) {"),s(),p&&(i(`const { ${d.map(q3).join(", ")} } = _Vue
92
+ `,-1),l())),e.components.length&&(r1(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(r1(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),r1(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let E=0;E<e.temps;E++)i(`${E>0?", ":""}_temp${E}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
93
+ `,0),l()),c||i("return "),e.codegenNode?ui(e.codegenNode,n):i("null"),h&&(o(),i("}")),o(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Bve(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:s,runtimeGlobalName:o,ssrRuntimeModuleName:l}=t,u=o,c=Array.from(e.helpers);if(c.length>0&&(i(`const _Vue = ${u}
94
+ `,-1),e.hoists.length)){const d=[xy,ky,Ld,Cy,Sk].filter(p=>c.includes(p)).map(q3).join(", ");i(`const { ${d} } = _Vue
95
+ `,-1)}Uve(e.hoists,t),a(),i("return ")}function r1(e,t,{helper:n,push:r,newline:i,isTS:a}){const s=n(t==="filter"?Py:t==="component"?_y:Iy);for(let o=0;o<e.length;o++){let l=e[o];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),r(`const ${ud(l,t)} = ${s}(${JSON.stringify(l)}${u?", true":""})${a?"!":""}`),o<e.length-1&&i()}}function Uve(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){const a=e[i];a&&(n(`const _hoisted_${i+1} = `),ui(a,t),r())}t.pure=!1}function Dk(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Sm(e,t,n),n&&t.deindent(),t.push("]")}function Sm(e,t,n=!1,r=!0){const{push:i,newline:a}=t;for(let s=0;s<e.length;s++){const o=e[s];bt(o)?i(o,-3):Xe(o)?Dk(o,t):ui(o,t),s<e.length-1&&(n?(r&&i(","),a()):r&&i(", "))}}function ui(e,t){if(bt(e)){t.push(e,-3);return}if(ki(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:ui(e.codegenNode,t);break;case 2:jve(e,t);break;case 4:Y3(e,t);break;case 5:zve(e,t);break;case 12:ui(e.codegenNode,t);break;case 8:X3(e,t);break;case 3:Wve(e,t);break;case 13:Gve(e,t);break;case 14:Kve(e,t);break;case 15:Yve(e,t);break;case 17:Xve(e,t);break;case 18:Jve(e,t);break;case 19:Qve(e,t);break;case 20:Zve(e,t);break;case 21:Sm(e.body,t,!0,!1);break}}function jve(e,t){t.push(JSON.stringify(e.content),-3,e)}function Y3(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function zve(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Vy),n(`${r(gm)}(`),ui(e.content,t),n(")")}function X3(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];bt(r)?t.push(r,-3):ui(r,t)}}function Hve(e,t){const{push:n}=t;if(e.type===8)n("["),X3(e,t),n("]");else if(e.isStatic){const r=vm(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function Wve(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Vy),n(`${r(Ld)}(${JSON.stringify(e.content)})`,-3,e)}function Gve(e,t){const{push:n,helper:r,pure:i}=t,{tag:a,props:s,children:o,patchFlag:l,dynamicProps:u,directives:c,isBlock:d,disableTracking:p,isComponent:h}=e;let g;l&&(g=String(l)),c&&n(r(Ay)+"("),d&&n(`(${r(rl)}(${p?"true":""}), `),i&&n(Vy);const v=d?Tu(t.inSSR,h):_u(t.inSSR,h);n(r(v)+"(",-2,e),Sm(qve([a,s,o,g,u]),t),n(")"),d&&n(")"),c&&(n(", "),ui(c,t),n(")"))}function qve(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Kve(e,t){const{push:n,helper:r,pure:i}=t,a=bt(e.callee)?e.callee:r(e.callee);i&&n(Vy),n(a+"(",-2,e),Sm(e.arguments,t),n(")")}function Yve(e,t){const{push:n,indent:r,deindent:i,newline:a}=t,{properties:s}=e;if(!s.length){n("{}",-2,e);return}const o=s.length>1||!1;n(o?"{":"{ "),o&&r();for(let l=0;l<s.length;l++){const{key:u,value:c}=s[l];Hve(u,t),n(": "),ui(c,t),l<s.length-1&&(n(","),a())}o&&i(),n(o?"}":" }")}function Xve(e,t){Dk(e.elements,t)}function Jve(e,t){const{push:n,indent:r,deindent:i}=t,{params:a,returns:s,body:o,newline:l,isSlot:u}=e;u&&n(`_${ku[Ly]}(`),n("(",-2,e),Xe(a)?Sm(a,t):a&&ui(a,t),n(") => "),(l||o)&&(n("{"),r()),s?(l&&n("return "),Xe(s)?Dk(s,t):ui(s,t)):o&&ui(o,t),(l||o)&&(i(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function Qve(e,t){const{test:n,consequent:r,alternate:i,newline:a}=e,{push:s,indent:o,deindent:l,newline:u}=t;if(n.type===4){const d=!vm(n.content);d&&s("("),Y3(n,t),d&&s(")")}else s("("),ui(n,t),s(")");a&&o(),t.indentLevel++,a||s(" "),s("? "),ui(r,t),t.indentLevel--,a&&u(),a||s(" "),s(": ");const c=i.type===19;c||t.indentLevel++,ui(i,t),c||t.indentLevel--,a&&l(!0)}function Zve(e,t){const{push:n,helper:r,indent:i,deindent:a,newline:s}=t,{needPauseTracking:o,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),o&&(i(),n(`${r(Ep)}(-1`),e.inVOnce&&n(", true"),n("),"),s(),n("(")),n(`_cache[${e.index}] = `),ui(e.value,t),o&&(n(`).cacheIndex = ${e.index},`),s(),n(`${r(Ep)}(1),`),s(),n(`_cache[${e.index}]`),a()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const eye=(e,t)=>{if(e.type===5)e.content=zh(e.content,t);else if(e.type===1){const n=wi(e,"memo");for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&i.name!=="for"){const a=i.exp,s=i.arg;a&&a.type===4&&!(i.name==="on"&&s)&&!(n&&s&&s.type===4&&s.content==="key")&&(i.exp=zh(a,t,i.name==="slot")),s&&s.type===4&&!s.isStatic&&(i.arg=zh(s,t))}}}};function zh(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function J3(e){return bt(e)?e:e.type===4?e.content:e.children.map(J3).join("")}const tye=Nk(/^(?:if|else|else-if)$/,(e,t,n)=>Q3(e,t,n,(r,i,a)=>{const s=n.parent.children;let o=s.indexOf(r),l=0;for(;o-->=0;){const u=s[o];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(a)r.codegenNode=pA(i,l,n);else{const u=nye(r.codegenNode);u.alternate=pA(i,l+r.branches.length-1,n)}}}));function Q3(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(Pn(28,t.loc)),t.exp=Pt("true",!1,i)}if(t.name==="if"){const i=fA(e,t),a={type:9,loc:Ove(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{const i=n.parent.children;let a=i.indexOf(e);for(;a-->=-1;){const s=i[a];if(s&&Ak(s)){n.removeNode(s);continue}if(s&&s.type===9){(t.name==="else-if"||t.name==="else")&&s.branches[s.branches.length-1].condition===void 0&&n.onError(Pn(30,e.loc)),n.removeNode();const o=fA(e,t);s.branches.push(o);const l=r&&r(s,o,!1);bm(o,n),l&&l(),n.currentNode=null}else n.onError(Pn(30,e.loc));break}}}function fA(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!wi(e,"for")?e.children:[e],userKey:ym(e,"key"),isTemplateIf:n}}function pA(e,t,n){return e.condition?ev(e.condition,mA(e,t,n),fr(n.helper(Ld),['""',"true"])):mA(e,t,n)}function mA(e,t,n){const{helper:r}=n,i=ar("key",Pt(`${t}`,!1,Cr,2)),{children:a}=e,s=a[0];if(a.length!==1||s.type!==1)if(a.length===1&&s.type===11){const l=s.codegenNode;return kp(l,i,n),l}else return ad(n,r(id),cs([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=s.codegenNode,u=L3(l);return u.type===13&&$y(u,n),kp(u,i,n),l}}function nye(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const rye=Nk("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return Z3(e,t,n,a=>{const s=fr(r(Ry),[a.source]),o=ld(e),l=wi(e,"memo"),u=ym(e,"key",!1,!0);u&&u.type;let c=u&&(u.type===6?u.value?Pt(u.value.content,!0):void 0:u.exp);const d=u&&c?ar("key",c):null,p=a.source.type===4&&a.source.constType>0,h=p?64:u?128:256;return a.codegenNode=ad(n,r(id),void 0,s,h,void 0,void 0,!0,!p,!1,e.loc),()=>{let g;const{children:v}=a,y=v.length!==1||v[0].type!==1,b=xp(e)?e:o&&e.children.length===1&&xp(e.children[0])?e.children[0]:null;if(b?(g=b.codegenNode,o&&d&&kp(g,d,n)):y?g=ad(n,r(id),d?cs([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(g=v[0].codegenNode,o&&d&&kp(g,d,n),g.isBlock!==!p&&(g.isBlock?(i(rl),i(Tu(n.inSSR,g.isComponent))):i(_u(n.inSSR,g.isComponent))),g.isBlock=!p,g.isBlock?(r(rl),r(Tu(n.inSSR,g.isComponent))):r(_u(n.inSSR,g.isComponent))),l){const E=Cu(nv(a.parseResult,[Pt("_cached")]));E.body=E3([Ps(["const _memo = (",l.exp,")"]),Ps(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(xk)}(_cached, _memo)) return _cached`]),Ps(["const _item = ",g]),Pt("_item.memo = _memo"),Pt("return _item")]),s.arguments.push(E,Pt("_cache"),Pt(String(n.cached.length))),n.cached.push(null)}else s.arguments.push(Cu(nv(a.parseResult),g,!0))}})});function Z3(e,t,n,r){if(!t.exp){n.onError(Pn(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(Pn(32,t.loc));return}Lk(i);const{addIdentifiers:a,removeIdentifiers:s,scopes:o}=n,{source:l,value:u,key:c,index:d}=i,p={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:d,parseResult:i,children:ld(e)?e.children:[e]};n.replaceNode(p),o.vFor++;const h=r&&r(p);return()=>{o.vFor--,h&&h()}}function Lk(e,t){e.finalized||(e.finalized=!0)}function nv({value:e,key:t,index:n},r=[]){return iye([e,t,n,...r])}function iye(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||Pt("_".repeat(r+1),!1))}const hA=Pt("undefined",!1),e4=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=wi(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},sye=(e,t)=>{let n;if(ld(e)&&e.props.some(Ik)&&(n=wi(e,"for"))){const r=n.forParseResult;if(r){Lk(r);const{value:i,key:a,index:s}=r,{addIdentifiers:o,removeIdentifiers:l}=t;return i&&o(i),a&&o(a),s&&o(s),()=>{i&&l(i),a&&l(a),s&&l(s)}}}},aye=(e,t,n,r)=>Cu(e,n,!1,!0,n.length?n[0].loc:r);function t4(e,t,n=aye){t.helper(Ly);const{children:r,loc:i}=e,a=[],s=[];let o=t.scopes.vSlot>0||t.scopes.vFor>0;const l=wi(e,"slot",!0);if(l){const{arg:y,exp:b}=l;y&&!xi(y)&&(o=!0),a.push(ar(y||Pt("default",!0),n(b,void 0,r,i)))}let u=!1,c=!1;const d=[],p=new Set;let h=0;for(let y=0;y<r.length;y++){const b=r[y];let E;if(!ld(b)||!(E=wi(b,"slot",!0))){b.type!==3&&d.push(b);continue}if(l){t.onError(Pn(37,E.loc));break}u=!0;const{children:w,loc:C}=b,{arg:P=Pt("default",!0),exp:_,loc:A}=E;let I;xi(P)?I=P?P.content:"default":o=!0;const T=wi(b,"for"),x=n(_,T,w,C);let R,O;if(R=wi(b,"if"))o=!0,s.push(ev(R.exp,nh(P,x,h++),hA));else if(O=wi(b,/^else(?:-if)?$/,!0)){let L=y,F;for(;L--&&(F=r[L],!!Ak(F)););if(F&&ld(F)&&wi(F,/^(?:else-)?if$/)){let W=s[s.length-1];for(;W.alternate.type===19;)W=W.alternate;W.alternate=O.exp?ev(O.exp,nh(P,x,h++),hA):nh(P,x,h++)}else t.onError(Pn(30,O.loc))}else if(T){o=!0;const L=T.forParseResult;L?(Lk(L),s.push(fr(t.helper(Ry),[L.source,Cu(nv(L),nh(P,x),!0)]))):t.onError(Pn(32,T.loc))}else{if(I){if(p.has(I)){t.onError(Pn(38,A));continue}p.add(I),I==="default"&&(c=!0)}a.push(ar(P,x))}}if(!l){const y=(b,E)=>{const w=n(b,void 0,E,i);return t.compatConfig&&(w.isNonScopedSlot=!0),ar("default",w)};u?d.length&&!d.every(My)&&(c?t.onError(Pn(39,d[0].loc)):a.push(y(void 0,d))):a.push(y(void 0,r))}const g=o?2:Hh(e.children)?3:1;let v=cs(a.concat(ar("_",Pt(g+"",!1))),i);return s.length&&(v=fr(t.helper(Ek),[v,Yo(s)])),{slots:v,hasDynamicSlots:o}}function nh(e,t,n){const r=[ar("name",e),ar("fn",t)];return n!=null&&r.push(ar("key",Pt(String(n),!0))),cs(r)}function Hh(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Hh(n.children))return!0;break;case 9:if(Hh(n.branches))return!0;break;case 10:case 11:if(Hh(n.children))return!0;break}}return!1}const n4=new WeakMap,r4=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:i}=e,a=e.tagType===1;let s=a?i4(e,t):`"${r}"`;const o=fn(s)&&s.callee===Ty;let l,u,c=0,d,p,h,g=o||s===Tc||s===Ey||!a&&(r==="svg"||r==="foreignObject"||r==="math");if(i.length>0){const v=Fk(e,t,void 0,a,o);l=v.props,c=v.patchFlag,p=v.dynamicPropNames;const y=v.directives;h=y&&y.length?Yo(y.map(b=>s4(b,t))):void 0,v.shouldUseBlock&&(g=!0)}if(e.children.length>0)if(s===Sp&&(g=!0,c|=1024),a&&s!==Tc&&s!==Sp){const{slots:y,hasDynamicSlots:b}=t4(e,t);u=y,b&&(c|=1024)}else if(e.children.length===1&&s!==Tc){const y=e.children[0],b=y.type,E=b===5||b===8;E&&ji(y,t)===0&&(c|=1),E||b===2?u=y:u=e.children}else u=e.children;p&&p.length&&(d=lye(p)),e.codegenNode=ad(t,s,l,u,c===0?void 0:c,d,h,!!g,!1,a,e.loc)};function i4(e,t,n=!1){let{tag:r}=e;const i=vw(r),a=ym(e,"is",!1,!0);if(a)if(i||lu("COMPILER_IS_ON_ELEMENT",t)){let o;if(a.type===6?o=a.value&&Pt(a.value.content,!0):(o=a.exp,o||(o=Pt("is",!1,a.arg.loc))),o)return fr(t.helper(Ty),[o])}else a.type===6&&a.value.content.startsWith("vue:")&&(r=a.value.content.slice(4));const s=Ck(r)||t.isBuiltInComponent(r);return s?(n||t.helper(s),s):(t.helper(_y),t.components.add(r),ud(r,"component"))}function Fk(e,t,n=e.props,r,i,a=!1){const{tag:s,loc:o,children:l}=e;let u=[];const c=[],d=[],p=l.length>0;let h=!1,g=0,v=!1,y=!1,b=!1,E=!1,w=!1,C=!1;const P=[],_=x=>{u.length&&(c.push(cs(gA(u),o)),u=[]),x&&c.push(x)},A=()=>{t.scopes.vFor>0&&u.push(ar(Pt("ref_for",!0),Pt("true")))},I=({key:x,value:R})=>{if(xi(x)){const O=x.content,L=il(O);if(L&&(!r||i)&&O.toLowerCase()!=="onclick"&&O!=="onUpdate:modelValue"&&!Wa(O)&&(E=!0),L&&Wa(O)&&(C=!0),L&&R.type===14&&(R=R.arguments[0]),R.type===20||(R.type===4||R.type===8)&&ji(R,t)>0)return;O==="ref"?v=!0:O==="class"?y=!0:O==="style"?b=!0:O!=="key"&&!P.includes(O)&&P.push(O),r&&(O==="class"||O==="style")&&!P.includes(O)&&P.push(O)}else w=!0};for(let x=0;x<n.length;x++){const R=n[x];if(R.type===6){const{loc:O,name:L,nameLoc:F,value:W}=R;let H=!0;if(L==="ref"&&(v=!0,A()),L==="is"&&(vw(s)||W&&W.content.startsWith("vue:")||lu("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(ar(Pt(L,!0,F),Pt(W?W.content:"",H,W?W.loc:O)))}else{const{name:O,arg:L,exp:F,loc:W,modifiers:H}=R,B=O==="bind",$=O==="on";if(O==="slot"){r||t.onError(Pn(40,W));continue}if(O==="once"||O==="memo"||O==="is"||B&&zo(L,"is")&&(vw(s)||lu("COMPILER_IS_ON_ELEMENT",t))||$&&a)continue;if((B&&zo(L,"key")||$&&p&&zo(L,"vue:before-update"))&&(h=!0),B&&zo(L,"ref")&&A(),!L&&(B||$)){if(w=!0,F)if(B){if(_(),lu("COMPILER_V_BIND_OBJECT_ORDER",t)){c.unshift(F);continue}A(),_(),c.push(F)}else _({type:14,loc:W,callee:t.helper(Dy),arguments:r?[F]:[F,"true"]});else t.onError(Pn(B?34:35,W));continue}B&&H.some(q=>q.content==="prop")&&(g|=32);const Y=t.directiveTransforms[O];if(Y){const{props:q,needRuntime:U}=Y(R,e,t);!a&&q.forEach(I),$&&L&&!xi(L)?_(cs(q,o)):u.push(...q),U&&(d.push(R),ki(U)&&n4.set(R,U))}else NR(O)||(d.push(R),p&&(h=!0))}}let T;if(c.length?(_(),c.length>1?T=fr(t.helper(wp),c,o):T=c[0]):u.length&&(T=cs(gA(u),o)),w?g|=16:(y&&!r&&(g|=2),b&&!r&&(g|=4),P.length&&(g|=8),E&&(g|=32)),!h&&(g===0||g===32)&&(v||C||d.length>0)&&(g|=512),!t.inSSR&&T)switch(T.type){case 15:let x=-1,R=-1,O=!1;for(let W=0;W<T.properties.length;W++){const H=T.properties[W].key;xi(H)?H.content==="class"?x=W:H.content==="style"&&(R=W):H.isHandlerKey||(O=!0)}const L=T.properties[x],F=T.properties[R];O?T=fr(t.helper(sd),[T]):(L&&!xi(L.value)&&(L.value=fr(t.helper(Oy),[L.value])),F&&(b||F.value.type===4&&F.value.content.trim()[0]==="["||F.value.type===17)&&(F.value=fr(t.helper(Ny),[F.value])));break;case 14:break;default:T=fr(t.helper(sd),[fr(t.helper(Fd),[T])]);break}return{props:T,directives:d,patchFlag:g,dynamicPropNames:P,shouldUseBlock:h}}function gA(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const a=i.key.content,s=t.get(a);s?(a==="style"||a==="class"||il(a))&&oye(s,i):(t.set(a,i),n.push(i))}return n}function oye(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Yo([e.value,t.value],e.loc)}function s4(e,t){const n=[],r=n4.get(e);r?n.push(t.helperString(r)):(t.helper(Iy),t.directives.add(e.name),n.push(ud(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const a=Pt("true",!1,i);n.push(cs(e.modifiers.map(s=>ar(s,a)),i))}return Yo(n,e.loc)}function lye(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function vw(e){return e==="component"||e==="Component"}const uye=(e,t)=>{if(xp(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:a}=a4(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let o=2;a&&(s[2]=a,o=3),n.length&&(s[3]=Cu([],n,!1,!1,r),o=4),t.scopeId&&!t.slotted&&(o=5),s.splice(o),e.codegenNode=fr(t.helper(wk),s,r)}};function a4(e,t){let n='"default"',r;const i=[];for(let a=0;a<e.props.length;a++){const s=e.props[a];if(s.type===6)s.value&&(s.name==="name"?n=JSON.stringify(s.value.content):(s.name=kn(s.name),i.push(s)));else if(s.name==="bind"&&zo(s.arg,"name")){if(s.exp)n=s.exp;else if(s.arg&&s.arg.type===4){const o=kn(s.arg.content);n=s.exp=Pt(o,!1,s.arg.loc)}}else s.name==="bind"&&s.arg&&xi(s.arg)&&(s.arg.content=kn(s.arg.content)),i.push(s)}if(i.length>0){const{props:a,directives:s}=Fk(e,t,i,!1,!1);r=a,s.length&&t.onError(Pn(36,s[0].loc))}return{slotName:n,slotProps:r}}const $k=(e,t,n,r)=>{const{loc:i,modifiers:a,arg:s}=e;!e.exp&&!a.length&&n.onError(Pn(35,i));let o;if(s.type===4)if(s.isStatic){let d=s.content;d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const p=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?jl(kn(d)):`on:${d}`;o=Pt(p,!0,s.loc)}else o=Ps([`${n.helperString(Zg)}(`,s,")"]);else o=s,o.children.unshift(`${n.helperString(Zg)}(`),o.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const d=Tk(l),p=!(d||R3(l)),h=l.content.includes(";");(p||u&&d)&&(l=Ps([`${p?"$event":"(...args)"} => ${h?"{":"("}`,l,h?"}":")"]))}let c={props:[ar(o,l||Pt("() => {}",!1,i))]};return r&&(c=r(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(d=>d.key.isHandlerKey=!0),c},o4=(e,t,n)=>{const{modifiers:r,loc:i}=e,a=e.arg;let{exp:s}=e;return s&&s.type===4&&!s.content.trim()&&(s=void 0),a.type!==4?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=a.content?`${a.content} || ""`:'""'),r.some(o=>o.content==="camel")&&(a.type===4?a.isStatic?a.content=kn(a.content):a.content=`${n.helperString(Qg)}(${a.content})`:(a.children.unshift(`${n.helperString(Qg)}(`),a.children.push(")"))),n.inSSR||(r.some(o=>o.content==="prop")&&vA(a,"."),r.some(o=>o.content==="attr")&&vA(a,"^")),{props:[ar(a,s)]}},vA=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},cye=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,i=!1;for(let a=0;a<n.length;a++){const s=n[a];if(Vh(s)){i=!0;for(let o=a+1;o<n.length;o++){const l=n[o];if(Vh(l))r||(r=n[a]=Ps([s],s.loc)),r.children.push(" + ",l),n.splice(o,1),o--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(a=>a.type===7&&!t.directiveTransforms[a.name])&&e.tag!=="template")))for(let a=0;a<n.length;a++){const s=n[a];if(Vh(s)||s.type===8){const o=[];(s.type!==2||s.content!==" ")&&o.push(s),!t.ssr&&ji(s,t)===0&&o.push("1"),n[a]={type:12,content:s,loc:s.loc,codegenNode:fr(t.helper(Cy),o)}}}}},yA=new WeakSet,dye=(e,t)=>{if(e.type===1&&wi(e,"once",!0))return yA.has(e)||t.inVOnce||t.inSSR?void 0:(yA.add(e),t.inVOnce=!0,t.helper(Ep),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},Mk=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(Pn(41,e.loc)),Yd();const a=r.loc.source.trim(),s=r.type===4?r.content:a,o=n.bindingMetadata[a];if(o==="props"||o==="props-aliased")return n.onError(Pn(44,r.loc)),Yd();if(o==="literal-const"||o==="setup-const")return n.onError(Pn(45,r.loc)),Yd();if(!s.trim()||!Tk(r))return n.onError(Pn(42,r.loc)),Yd();const l=i||Pt("modelValue",!0),u=i?xi(i)?`onUpdate:${kn(i.content)}`:Ps(['"onUpdate:" + ',i]):"onUpdate:modelValue";let c;const d=n.isTS?"($event: any)":"$event";c=Ps([`${d} => ((`,r,") = $event)"]);const p=[ar(l,e.exp),ar(u,c)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(v=>v.content).map(v=>(vm(v)?v:JSON.stringify(v))+": true").join(", "),g=i?xi(i)?`${i.content}Modifiers`:Ps([i,' + "Modifiers"']):"modelModifiers";p.push(ar(g,Pt(`{ ${h} }`,!1,e.loc,2)))}return Yd(p)};function Yd(e=[]){return{props:e}}const fye=/[\w).+\-_$\]]/,pye=(e,t)=>{lu("COMPILER_FILTERS",t)&&(e.type===5?rv(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&rv(n.exp,t)}))};function rv(e,t){if(e.type===4)bA(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?bA(r,t):r.type===8?rv(e,t):r.type===5&&rv(r.content,t))}}function bA(e,t){const n=e.content;let r=!1,i=!1,a=!1,s=!1,o=0,l=0,u=0,c=0,d,p,h,g,v=[];for(h=0;h<n.length;h++)if(p=d,d=n.charCodeAt(h),r)d===39&&p!==92&&(r=!1);else if(i)d===34&&p!==92&&(i=!1);else if(a)d===96&&p!==92&&(a=!1);else if(s)d===47&&p!==92&&(s=!1);else if(d===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!o&&!l&&!u)g===void 0?(c=h+1,g=n.slice(0,h).trim()):y();else{switch(d){case 34:i=!0;break;case 39:r=!0;break;case 96:a=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:o++;break;case 125:o--;break}if(d===47){let b=h-1,E;for(;b>=0&&(E=n.charAt(b),E===" ");b--);(!E||!fye.test(E))&&(s=!0)}}g===void 0?g=n.slice(0,h).trim():c!==0&&y();function y(){v.push(n.slice(c,h).trim()),c=h+1}if(v.length){for(h=0;h<v.length;h++)g=mye(g,v[h],t);e.content=g,e.ast=void 0}}function mye(e,t,n){n.helper(Py);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${ud(t,"filter")}(${e})`;{const i=t.slice(0,r),a=t.slice(r+1);return n.filters.add(i),`${ud(i,"filter")}(${e}${a!==")"?","+a:a}`}}const SA=new WeakSet,hye=(e,t)=>{if(e.type===1){const n=wi(e,"memo");return!n||SA.has(e)||t.inSSR?void 0:(SA.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&$y(r,t),e.codegenNode=fr(t.helper(Fy),[n.exp,Cu(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}},l4=(e,t)=>{if(e.type===1){for(const n of e.props)if(n.type===7&&n.name==="bind"&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){const r=n.arg;if(r.type!==4||!r.isStatic)t.onError(Pn(53,r.loc)),n.exp=Pt("",!0,r.loc);else{const i=kn(r.content);(_k.test(i[0])||i[0]==="-")&&(n.exp=Pt(i,!1,r.loc))}}}};function u4(e){return[[l4,dye,tye,hye,rye,pye,uye,r4,e4,cye],{on:$k,bind:o4,model:Mk}]}function c4(e,t={}){const n=t.onError||kk,r=t.mode==="module";t.prefixIdentifiers===!0?n(Pn(48)):r&&n(Pn(49));const i=!1;t.cacheHandlers&&n(Pn(50)),t.scopeId&&!r&&n(Pn(51));const a=Bt({},t,{prefixIdentifiers:i}),s=bt(e)?Ok(e,a):e,[o,l]=u4();return G3(s,Bt({},a,{nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:Bt({},l,t.directiveTransforms||{})})),K3(s,a)}const gye={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"},d4=()=>({props:[]});const Vk=Symbol(""),Bk=Symbol(""),Uk=Symbol(""),jk=Symbol(""),iv=Symbol(""),zk=Symbol(""),Hk=Symbol(""),Wk=Symbol(""),Gk=Symbol(""),qk=Symbol("");b3({[Vk]:"vModelRadio",[Bk]:"vModelCheckbox",[Uk]:"vModelText",[jk]:"vModelSelect",[iv]:"vModelDynamic",[zk]:"withModifiers",[Hk]:"withKeys",[Wk]:"vShow",[Gk]:"Transition",[qk]:"TransitionGroup"});let ec;function vye(e,t=!1){return ec||(ec=document.createElement("div")),t?(ec.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,ec.children[0].getAttribute("foo")):(ec.innerHTML=e,ec.textContent)}const Kk={parseMode:"html",isVoidTag:MR,isNativeTag:e=>LR(e)||FR(e)||$R(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:vye,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return Gk;if(e==="TransitionGroup"||e==="transition-group")return qk},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},f4=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:Pt("style",!0,t.loc),exp:yye(t.value.content,t.loc),modifiers:[],loc:t.loc})})},yye=(e,t)=>{const n=_w(e);return Pt(JSON.stringify(n),!1,t,3)};function no(e,t){return Pn(e,t)}const bye={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_INVALID_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__"},Sye={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."},wye=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(no(54,i)),t.children.length&&(n.onError(no(55,i)),t.children.length=0),{props:[ar(Pt("innerHTML",!0,i),r||Pt("",!0))]}},Eye=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(no(56,i)),t.children.length&&(n.onError(no(57,i)),t.children.length=0),{props:[ar(Pt("textContent",!0),r?ji(r,n)>0?r:fr(n.helperString(gm),[r],i):Pt("",!0))]}},xye=(e,t,n)=>{const r=Mk(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(no(59,e.arg.loc));const{tag:i}=t,a=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||a){let s=Uk,o=!1;if(i==="input"||a){const l=ym(t,"type");if(l){if(l.type===7)s=iv;else if(l.value)switch(l.value.content){case"radio":s=Vk;break;case"checkbox":s=Bk;break;case"file":o=!0,n.onError(no(60,e.loc));break}}else N3(t)&&(s=iv)}else i==="select"&&(s=jk);o||(r.needRuntime=n.helper(s))}else n.onError(no(58,e.loc));return r.props=r.props.filter(s=>!(s.key.type===4&&s.key.content==="modelValue")),r},kye=Pr("passive,once,capture"),Cye=Pr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),_ye=Pr("left,right"),p4=Pr("onkeyup,onkeydown,onkeypress"),Tye=(e,t,n,r)=>{const i=[],a=[],s=[];for(let o=0;o<t.length;o++){const l=t[o].content;l==="native"&&od("COMPILER_V_ON_NATIVE",n)||kye(l)?s.push(l):_ye(l)?xi(e)?p4(e.content.toLowerCase())?i.push(l):a.push(l):(i.push(l),a.push(l)):Cye(l)?a.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:s}},wA=(e,t)=>xi(e)&&e.content.toLowerCase()==="onclick"?Pt(t,!0):e.type!==4?Ps(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Iye=(e,t,n)=>$k(e,t,n,r=>{const{modifiers:i}=e;if(!i.length)return r;let{key:a,value:s}=r.props[0];const{keyModifiers:o,nonKeyModifiers:l,eventOptionModifiers:u}=Tye(a,i,n,e.loc);if(l.includes("right")&&(a=wA(a,"onContextmenu")),l.includes("middle")&&(a=wA(a,"onMouseup")),l.length&&(s=fr(n.helper(zk),[s,JSON.stringify(l)])),o.length&&(!xi(a)||p4(a.content.toLowerCase()))&&(s=fr(n.helper(Hk),[s,JSON.stringify(o)])),u.length){const c=u.map(Ji).join("");a=xi(a)?Pt(`${a.content}${c}`,!0):Ps(["(",a,`) + "${c}"`])}return{props:[ar(a,s)]}}),Pye=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(no(62,i)),{props:[],needRuntime:n.helper(Wk)}},Aye=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},m4=[f4],h4={cloak:d4,html:wye,text:Eye,model:xye,on:Iye,show:Pye};function Rye(e,t={}){return c4(e,Bt({},Kk,t,{nodeTransforms:[Aye,...m4,...t.nodeTransforms||[]],directiveTransforms:Bt({},h4,t.directiveTransforms||{}),transformHoist:null}))}function Oye(e,t={}){return Ok(e,Bt({},Kk,t))}const Nye=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:vk,BindingTypes:gye,CAMELIZE:Qg,CAPITALIZE:m3,CREATE_BLOCK:yk,CREATE_COMMENT:Ld,CREATE_ELEMENT_BLOCK:bk,CREATE_ELEMENT_VNODE:ky,CREATE_SLOTS:Ek,CREATE_STATIC:Sk,CREATE_TEXT:Cy,CREATE_VNODE:xy,CompilerDeprecationTypes:eve,ConstantTypes:Gge,DOMDirectiveTransforms:h4,DOMErrorCodes:bye,DOMErrorMessages:Sye,DOMNodeTransforms:m4,ElementTypes:Wge,ErrorCodes:rve,FRAGMENT:id,GUARD_REACTIVE_PROPS:Fd,IS_MEMO_SAME:xk,IS_REF:y3,KEEP_ALIVE:Sp,MERGE_PROPS:wp,NORMALIZE_CLASS:Oy,NORMALIZE_PROPS:sd,NORMALIZE_STYLE:Ny,Namespaces:zge,NodeTypes:Hge,OPEN_BLOCK:rl,POP_SCOPE_ID:g3,PUSH_SCOPE_ID:h3,RENDER_LIST:Ry,RENDER_SLOT:wk,RESOLVE_COMPONENT:_y,RESOLVE_DIRECTIVE:Iy,RESOLVE_DYNAMIC_COMPONENT:Ty,RESOLVE_FILTER:Py,SET_BLOCK_TRACKING:Ep,SUSPENSE:Ey,TELEPORT:Tc,TO_DISPLAY_STRING:gm,TO_HANDLERS:Dy,TO_HANDLER_KEY:Zg,TRANSITION:Gk,TRANSITION_GROUP:qk,TS_NODE_TYPES:_3,UNREF:v3,V_MODEL_CHECKBOX:Bk,V_MODEL_DYNAMIC:iv,V_MODEL_RADIO:Vk,V_MODEL_SELECT:jk,V_MODEL_TEXT:Uk,V_ON_WITH_KEYS:Hk,V_ON_WITH_MODIFIERS:zk,V_SHOW:Wk,WITH_CTX:Ly,WITH_DIRECTIVES:Ay,WITH_MEMO:Fy,advancePositionWithClone:wve,advancePositionWithMutation:O3,assert:Eve,baseCompile:c4,baseParse:Ok,buildDirectiveArgs:s4,buildProps:Fk,buildSlots:t4,checkCompatEnabled:od,compile:Rye,convertToBlock:$y,createArrayExpression:Yo,createAssignmentExpression:Xge,createBlockStatement:E3,createCacheExpression:w3,createCallExpression:fr,createCompilerError:Pn,createCompoundExpression:Ps,createConditionalExpression:ev,createDOMCompilerError:no,createForLoopParams:nv,createFunctionExpression:Cu,createIfStatement:Yge,createInterpolation:qge,createObjectExpression:cs,createObjectProperty:ar,createReturnStatement:Qge,createRoot:S3,createSequenceExpression:Jge,createSimpleExpression:Pt,createStructuralDirectiveTransform:Nk,createTemplateLiteral:Kge,createTransformContext:W3,createVNodeCall:ad,errorMessages:ive,extractIdentifiers:da,findDir:wi,findProp:ym,forAliasRE:F3,generate:K3,generateCodeFrame:DR,getBaseTransformPreset:u4,getConstantType:ji,getMemoedVNodeCall:L3,getVNodeBlockHelper:Tu,getVNodeHelper:_u,hasDynamicKeyVBind:N3,hasScopeRef:Vs,helperNameMap:ku,injectProp:kp,isAllWhitespace:Pk,isCommentOrWhitespace:Ak,isCoreComponent:Ck,isFnExpression:R3,isFnExpressionBrowser:A3,isFnExpressionNode:Sve,isFunctionType:pve,isInDestructureAssignment:ove,isInNewExpression:lve,isMemberExpression:Tk,isMemberExpressionBrowser:P3,isMemberExpressionNode:yve,isReferencedIdentifier:ave,isSimpleIdentifier:vm,isSlotOutlet:xp,isStaticArgOf:zo,isStaticExp:xi,isStaticProperty:C3,isStaticPropertyKey:mve,isTemplateNode:ld,isText:Vh,isVPre:mw,isVSlot:Ik,isWhitespaceText:My,locStub:Cr,noopDirectiveTransform:d4,parse:Oye,parserOptions:Kk,processExpression:zh,processFor:Z3,processIf:Q3,processSlotOutlet:a4,registerRuntimeHelpers:b3,resolveComponentType:i4,stringifyExpression:J3,toValidAssetId:ud,trackSlotScopes:e4,trackVForSlotScopes:sye,transform:G3,transformBind:o4,transformElement:r4,transformExpression:eye,transformModel:Mk,transformOn:$k,transformStyle:f4,transformVBindShorthand:l4,traverseNode:bm,unwrapTSNode:T3,validFirstIdentCharRE:_k,walkBlockDeclarations:k3,walkFunctionParams:uve,walkIdentifiers:sve,warnDeprecation:nve},Symbol.toStringTag,{value:"Module"})),Dye=wy(Nye),Lye=wy(Y8),Fye=wy(WB);var EA;function $ye(){return EA||(EA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Dye,n=Lye,r=Fye;function i(l){var u=Object.create(null);if(l)for(var c in l)u[c]=l[c];return u.default=l,Object.freeze(u)}var a=i(n);const s=Object.create(null);function o(l,u){if(!r.isString(l))if(l.nodeType)l=l.innerHTML;else return r.NOOP;const c=r.genCacheKey(l,u),d=s[c];if(d)return d;if(l[0]==="#"){const v=document.querySelector(l);l=v?v.innerHTML:""}const p=r.extend({hoistStatic:!0,onError:void 0,onWarn:r.NOOP},u);!p.isCustomElement&&typeof customElements<"u"&&(p.isCustomElement=v=>!!customElements.get(v));const{code:h}=t.compile(l,p),g=new Function("Vue",h)(a);return g._rc=!0,s[c]=g}n.registerRuntimeCompiler(o),e.compile=o,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(e,l)&&(e[l]=n[l])})})(n1)),n1}var xA;function Mye(){return xA||(xA=1,t1.exports=$ye()),t1.exports}function kA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ca(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kA(Object(n),!0).forEach(function(r){Vye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wh(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wh=function(t){return typeof t}:Wh=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wh(e)}function Vye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ns(){return Ns=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ns.apply(this,arguments)}function Bye(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Uye(e,t){if(e==null)return{};var n=Bye(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jye(e){return zye(e)||Hye(e)||Wye(e)||Gye()}function zye(e){if(Array.isArray(e))return yw(e)}function Hye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wye(e,t){if(e){if(typeof e=="string")return yw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yw(e,t)}}function yw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
96
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var qye="1.14.0";function ro(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Eo=ro(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),wm=ro(/Edge/i),CA=ro(/firefox/i),Tf=ro(/safari/i)&&!ro(/chrome/i)&&!ro(/android/i),g4=ro(/iP(ad|od|hone)/i),Kye=ro(/chrome/i)&&ro(/android/i),v4={capture:!1,passive:!1};function Kt(e,t,n){e.addEventListener(t,n,!Eo&&v4)}function Mt(e,t,n){e.removeEventListener(t,n,!Eo&&v4)}function sv(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Yye(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function zs(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&sv(e,t):sv(e,t))||r&&e===n)return e;if(e===n)break}while(e=Yye(e))}return null}var _A=/\s+/g;function Hn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(_A," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(_A," ")}}function nt(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function uu(e,t){var n="";if(typeof e=="string")n=e;else do{var r=nt(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function y4(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function va(){var e=document.scrollingElement;return e||document.documentElement}function Vn(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,s,o,l,u,c,d;if(e!==window&&e.parentNode&&e!==va()?(a=e.getBoundingClientRect(),s=a.top,o=a.left,l=a.bottom,u=a.right,c=a.height,d=a.width):(s=0,o=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Eo))do if(i&&i.getBoundingClientRect&&(nt(i,"transform")!=="none"||n&&nt(i,"position")!=="static")){var p=i.getBoundingClientRect();s-=p.top+parseInt(nt(i,"border-top-width")),o-=p.left+parseInt(nt(i,"border-left-width")),l=s+a.height,u=o+a.width;break}while(i=i.parentNode);if(r&&e!==window){var h=uu(i||e),g=h&&h.a,v=h&&h.d;h&&(s/=v,o/=g,d/=g,c/=v,l=s+c,u=o+d)}return{top:s,left:o,bottom:l,right:u,width:d,height:c}}}function TA(e,t,n){for(var r=Ho(e,!0),i=Vn(e)[t];r;){var a=Vn(r)[n],s=void 0;if(s=i>=a,!s)return r;if(r===va())break;r=Ho(r,!1)}return!1}function cd(e,t,n,r){for(var i=0,a=0,s=e.children;a<s.length;){if(s[a].style.display!=="none"&&s[a]!==vt.ghost&&(r||s[a]!==vt.dragged)&&zs(s[a],n.draggable,e,!1)){if(i===t)return s[a];i++}a++}return null}function Yk(e,t){for(var n=e.lastElementChild;n&&(n===vt.ghost||nt(n,"display")==="none"||t&&!sv(n,t));)n=n.previousElementSibling;return n||null}function Jn(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==vt.clone&&(!t||sv(e,t))&&n++;return n}function IA(e){var t=0,n=0,r=va();if(e)do{var i=uu(e),a=i.a,s=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*s}while(e!==r&&(e=e.parentNode));return[t,n]}function Xye(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function Ho(e,t){if(!e||!e.getBoundingClientRect)return va();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=nt(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return va();if(r||t)return n;r=!0}}while(n=n.parentNode);return va()}function Jye(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function i1(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var If;function b4(e,t){return function(){if(!If){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),If=setTimeout(function(){If=void 0},t)}}}function Qye(){clearTimeout(If),If=void 0}function S4(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Xk(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function PA(e,t){nt(e,"position","absolute"),nt(e,"top",t.top),nt(e,"left",t.left),nt(e,"width",t.width),nt(e,"height",t.height)}function s1(e){nt(e,"position",""),nt(e,"top",""),nt(e,"left",""),nt(e,"width",""),nt(e,"height","")}var ni="Sortable"+new Date().getTime();function Zye(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(nt(i,"display")==="none"||i===vt.ghost)){e.push({target:i,rect:Vn(i)});var a=Ca({},e[e.length-1].rect);if(i.thisAnimationDuration){var s=uu(i,!0);s&&(a.top-=s.f,a.left-=s.e)}i.fromRect=a}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(Xye(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var a=!1,s=0;e.forEach(function(o){var l=0,u=o.target,c=u.fromRect,d=Vn(u),p=u.prevFromRect,h=u.prevToRect,g=o.rect,v=uu(u,!0);v&&(d.top-=v.f,d.left-=v.e),u.toRect=d,u.thisAnimationDuration&&i1(p,d)&&!i1(c,d)&&(g.top-d.top)/(g.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=tbe(g,p,h,i.options)),i1(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=i.options.animation),i.animate(u,g,d,l)),l&&(a=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),a?t=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),e=[]},animate:function(r,i,a,s){if(s){nt(r,"transition",""),nt(r,"transform","");var o=uu(this.el),l=o&&o.a,u=o&&o.d,c=(i.left-a.left)/(l||1),d=(i.top-a.top)/(u||1);r.animatingX=!!c,r.animatingY=!!d,nt(r,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=ebe(r),nt(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),nt(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){nt(r,"transition",""),nt(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function ebe(e){return e.offsetWidth}function tbe(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var tc=[],a1={initializeByDefault:!0},Em={mount:function(t){for(var n in a1)a1.hasOwnProperty(n)&&!(n in t)&&(t[n]=a1[n]);tc.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),tc.push(t)},pluginEvent:function(t,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var a=t+"Global";tc.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][a]&&n[s.pluginName][a](Ca({sortable:n},r)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](Ca({sortable:n},r)))})},initializePlugins:function(t,n,r,i){tc.forEach(function(o){var l=o.pluginName;if(!(!t.options[l]&&!o.initializeByDefault)){var u=new o(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,Ns(r,u.defaults)}});for(var a in t.options)if(t.options.hasOwnProperty(a)){var s=this.modifyOption(t,a,t.options[a]);typeof s<"u"&&(t.options[a]=s)}},getEventProperties:function(t,n){var r={};return tc.forEach(function(i){typeof i.eventProperties=="function"&&Ns(r,i.eventProperties.call(n[i.pluginName],t))}),r},modifyOption:function(t,n,r){var i;return tc.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(i=a.optionListeners[n].call(t[a.pluginName],r))}),i}};function of(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,s=e.toEl,o=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[ni],!!t){var v,y=t.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Eo&&!wm?v=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(r,!0,!0)),v.to=s||n,v.from=o||n,v.item=i||n,v.clone=a,v.oldIndex=l,v.newIndex=u,v.oldDraggableIndex=c,v.newDraggableIndex=d,v.originalEvent=p,v.pullMode=h?h.lastPutMode:void 0;var E=Ca(Ca({},g),Em.getEventProperties(r,t));for(var w in E)v[w]=E[w];n&&n.dispatchEvent(v),y[b]&&y[b].call(t,v)}}var nbe=["evt"],Ri=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,a=Uye(r,nbe);Em.pluginEvent.bind(vt)(t,n,Ca({dragEl:Ke,parentEl:Kn,ghostEl:Dt,rootEl:$n,nextEl:_l,lastDownEl:Gh,cloneEl:Yn,cloneHidden:Bo,dragStarted:lf,putSortable:Dr,activeSortable:vt.active,originalEvent:i,oldIndex:Sc,oldDraggableIndex:Pf,newIndex:is,newDraggableIndex:Mo,hideGhostForTarget:k4,unhideGhostForTarget:C4,cloneNowHidden:function(){Bo=!0},cloneNowShown:function(){Bo=!1},dispatchSortableEvent:function(o){hi({sortable:n,name:o,originalEvent:i})}},a))};function hi(e){of(Ca({putSortable:Dr,cloneEl:Yn,targetEl:Ke,rootEl:$n,oldIndex:Sc,oldDraggableIndex:Pf,newIndex:is,newDraggableIndex:Mo},e))}var Ke,Kn,Dt,$n,_l,Gh,Yn,Bo,Sc,is,Pf,Mo,rh,Dr,cc=!1,av=!1,ov=[],wl,Fs,o1,l1,AA,RA,lf,nc,Af,Rf=!1,ih=!1,qh,qr,u1=[],bw=!1,lv=[],By=typeof document<"u",sh=g4,OA=wm||Eo?"cssFloat":"float",rbe=By&&!Kye&&!g4&&"draggable"in document.createElement("div"),w4=(function(){if(By){if(Eo)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),E4=function(t,n){var r=nt(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=cd(t,0,n),s=cd(t,1,n),o=a&&nt(a),l=s&&nt(s),u=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+Vn(a).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Vn(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o.float&&o.float!=="none"){var d=o.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return a&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||u>=i&&r[OA]==="none"||s&&r[OA]==="none"&&u+c>i)?"vertical":"horizontal"},ibe=function(t,n,r){var i=r?t.left:t.top,a=r?t.right:t.bottom,s=r?t.width:t.height,o=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===o||a===l||i+s/2===o+u/2},sbe=function(t,n){var r;return ov.some(function(i){var a=i[ni].options.emptyInsertThreshold;if(!(!a||Yk(i))){var s=Vn(i),o=t>=s.left-a&&t<=s.right+a,l=n>=s.top-a&&n<=s.bottom+a;if(o&&l)return r=i}}),r},x4=function(t){function n(a,s){return function(o,l,u,c){var d=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(a==null&&(s||d))return!0;if(a==null||a===!1)return!1;if(s&&a==="clone")return a;if(typeof a=="function")return n(a(o,l,u,c),s)(o,l,u,c);var p=(s?o:l).options.group.name;return a===!0||typeof a=="string"&&a===p||a.join&&a.indexOf(p)>-1}}var r={},i=t.group;(!i||Wh(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},k4=function(){!w4&&Dt&&nt(Dt,"display","none")},C4=function(){!w4&&Dt&&nt(Dt,"display","")};By&&document.addEventListener("click",function(e){if(av)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),av=!1,!1},!0);var El=function(t){if(Ke){t=t.touches?t.touches[0]:t;var n=sbe(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[ni]._onDragOver(r)}}},abe=function(t){Ke&&Ke.parentNode[ni]._isOutsideThisEl(t.target)};function vt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Ns({},t),e[ni]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return E4(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,o){s.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:vt.supportPointer!==!1&&"PointerEvent"in window&&!Tf,emptyInsertThreshold:5};Em.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);x4(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:rbe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Kt(e,"pointerdown",this._onTapStart):(Kt(e,"mousedown",this._onTapStart),Kt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Kt(e,"dragover",this),Kt(e,"dragenter",this)),ov.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ns(this,Zye())}vt.prototype={constructor:vt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(nc=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ke):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,a=i.preventOnFilter,s=t.type,o=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(o||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=i.filter;if(mbe(r),!Ke&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Tf&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=zs(l,i.draggable,r,!1),!(l&&l.animated)&&Gh!==l)){if(Sc=Jn(l),Pf=Jn(l,i.draggable),typeof c=="function"){if(c.call(this,t,l,this)){hi({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),Ri("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=zs(u,d.trim(),r,!1),d)return hi({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:r,toEl:r}),Ri("filter",n,{evt:t}),!0}),c)){a&&t.cancelable&&t.preventDefault();return}i.handle&&!zs(u,i.handle,r,!1)||this._prepareDragStart(t,o,l)}}},_prepareDragStart:function(t,n,r){var i=this,a=i.el,s=i.options,o=a.ownerDocument,l;if(r&&!Ke&&r.parentNode===a){var u=Vn(r);if($n=a,Ke=r,Kn=Ke.parentNode,_l=Ke.nextSibling,Gh=r,rh=s.group,vt.dragged=Ke,wl={target:Ke,clientX:(n||t).clientX,clientY:(n||t).clientY},AA=wl.clientX-u.left,RA=wl.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ke.style["will-change"]="all",l=function(){if(Ri("delayEnded",i,{evt:t}),vt.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!CA&&i.nativeDraggable&&(Ke.draggable=!0),i._triggerDragStart(t,n),hi({sortable:i,name:"choose",originalEvent:t}),Hn(Ke,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){y4(Ke,c.trim(),c1)}),Kt(o,"dragover",El),Kt(o,"mousemove",El),Kt(o,"touchmove",El),Kt(o,"mouseup",i._onDrop),Kt(o,"touchend",i._onDrop),Kt(o,"touchcancel",i._onDrop),CA&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ke.draggable=!0),Ri("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(wm||Eo))){if(vt.eventCanceled){this._onDrop();return}Kt(o,"mouseup",i._disableDelayedDrag),Kt(o,"touchend",i._disableDelayedDrag),Kt(o,"touchcancel",i._disableDelayedDrag),Kt(o,"mousemove",i._delayedDragTouchMoveHandler),Kt(o,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&Kt(o,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ke&&c1(Ke),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Mt(t,"mouseup",this._disableDelayedDrag),Mt(t,"touchend",this._disableDelayedDrag),Mt(t,"touchcancel",this._disableDelayedDrag),Mt(t,"mousemove",this._delayedDragTouchMoveHandler),Mt(t,"touchmove",this._delayedDragTouchMoveHandler),Mt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Kt(document,"pointermove",this._onTouchMove):n?Kt(document,"touchmove",this._onTouchMove):Kt(document,"mousemove",this._onTouchMove):(Kt(Ke,"dragend",this),Kt($n,"dragstart",this._onDragStart));try{document.selection?Kh(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(cc=!1,$n&&Ke){Ri("dragStarted",this,{evt:n}),this.nativeDraggable&&Kt(document,"dragover",abe);var r=this.options;!t&&Hn(Ke,r.dragClass,!1),Hn(Ke,r.ghostClass,!0),vt.active=this,t&&this._appendGhost(),hi({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Fs){this._lastX=Fs.clientX,this._lastY=Fs.clientY,k4();for(var t=document.elementFromPoint(Fs.clientX,Fs.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Fs.clientX,Fs.clientY),t!==n);)n=t;if(Ke.parentNode[ni]._isOutsideThisEl(t),n)do{if(n[ni]){var r=void 0;if(r=n[ni]._onDragOver({clientX:Fs.clientX,clientY:Fs.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);C4()}},_onTouchMove:function(t){if(wl){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,a=t.touches?t.touches[0]:t,s=Dt&&uu(Dt,!0),o=Dt&&s&&s.a,l=Dt&&s&&s.d,u=sh&&qr&&IA(qr),c=(a.clientX-wl.clientX+i.x)/(o||1)+(u?u[0]-u1[0]:0)/(o||1),d=(a.clientY-wl.clientY+i.y)/(l||1)+(u?u[1]-u1[1]:0)/(l||1);if(!vt.active&&!cc){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Dt){s?(s.e+=c-(o1||0),s.f+=d-(l1||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");nt(Dt,"webkitTransform",p),nt(Dt,"mozTransform",p),nt(Dt,"msTransform",p),nt(Dt,"transform",p),o1=c,l1=d,Fs=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Dt){var t=this.options.fallbackOnBody?document.body:$n,n=Vn(Ke,!0,sh,!0,t),r=this.options;if(sh){for(qr=t;nt(qr,"position")==="static"&&nt(qr,"transform")==="none"&&qr!==document;)qr=qr.parentNode;qr!==document.body&&qr!==document.documentElement?(qr===document&&(qr=va()),n.top+=qr.scrollTop,n.left+=qr.scrollLeft):qr=va(),u1=IA(qr)}Dt=Ke.cloneNode(!0),Hn(Dt,r.ghostClass,!1),Hn(Dt,r.fallbackClass,!0),Hn(Dt,r.dragClass,!0),nt(Dt,"transition",""),nt(Dt,"transform",""),nt(Dt,"box-sizing","border-box"),nt(Dt,"margin",0),nt(Dt,"top",n.top),nt(Dt,"left",n.left),nt(Dt,"width",n.width),nt(Dt,"height",n.height),nt(Dt,"opacity","0.8"),nt(Dt,"position",sh?"absolute":"fixed"),nt(Dt,"zIndex","100000"),nt(Dt,"pointerEvents","none"),vt.ghost=Dt,t.appendChild(Dt),nt(Dt,"transform-origin",AA/parseInt(Dt.style.width)*100+"% "+RA/parseInt(Dt.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,i=t.dataTransfer,a=r.options;if(Ri("dragStart",this,{evt:t}),vt.eventCanceled){this._onDrop();return}Ri("setupClone",this),vt.eventCanceled||(Yn=Xk(Ke),Yn.draggable=!1,Yn.style["will-change"]="",this._hideClone(),Hn(Yn,this.options.chosenClass,!1),vt.clone=Yn),r.cloneId=Kh(function(){Ri("clone",r),!vt.eventCanceled&&(r.options.removeCloneOnHide||$n.insertBefore(Yn,Ke),r._hideClone(),hi({sortable:r,name:"clone"}))}),!n&&Hn(Ke,a.dragClass,!0),n?(av=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Mt(document,"mouseup",r._onDrop),Mt(document,"touchend",r._onDrop),Mt(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",a.setData&&a.setData.call(r,i,Ke)),Kt(document,"drop",r),nt(Ke,"transform","translateZ(0)")),cc=!0,r._dragStartId=Kh(r._dragStarted.bind(r,n,t)),Kt(document,"selectstart",r),lf=!0,Tf&&nt(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,i,a,s,o=this.options,l=o.group,u=vt.active,c=rh===l,d=o.sort,p=Dr||u,h,g=this,v=!1;if(bw)return;function y($,Y){Ri($,g,Ca({evt:t,isOwner:c,axis:h?"vertical":"horizontal",revert:s,dragRect:i,targetRect:a,canSort:d,fromSortable:p,target:r,completed:E,onMove:function(U,M){return ah($n,n,Ke,i,U,Vn(U),t,M)},changed:w},Y))}function b(){y("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function E($){return y("dragOverCompleted",{insertion:$}),$&&(c?u._hideClone():u._showClone(g),g!==p&&(Hn(Ke,Dr?Dr.options.ghostClass:u.options.ghostClass,!1),Hn(Ke,o.ghostClass,!0)),Dr!==g&&g!==vt.active?Dr=g:g===vt.active&&Dr&&(Dr=null),p===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){y("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===Ke&&!Ke.animated||r===n&&!r.animated)&&(nc=null),!o.dragoverBubble&&!t.rootEl&&r!==document&&(Ke.parentNode[ni]._isOutsideThisEl(t.target),!$&&El(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function w(){is=Jn(Ke),Mo=Jn(Ke,o.draggable),hi({sortable:g,name:"change",toEl:n,newIndex:is,newDraggableIndex:Mo,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=zs(r,o.draggable,n,!0),y("dragOver"),vt.eventCanceled)return v;if(Ke.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return E(!1);if(av=!1,u&&!o.disabled&&(c?d||(s=Kn!==$n):Dr===this||(this.lastPutMode=rh.checkPull(this,u,Ke,t))&&l.checkPut(this,u,Ke,t))){if(h=this._getDirection(t,r)==="vertical",i=Vn(Ke),y("dragOverValid"),vt.eventCanceled)return v;if(s)return Kn=$n,b(),this._hideClone(),y("revert"),vt.eventCanceled||(_l?$n.insertBefore(Ke,_l):$n.appendChild(Ke)),E(!0);var C=Yk(n,o.draggable);if(!C||cbe(t,h,this)&&!C.animated){if(C===Ke)return E(!1);if(C&&n===t.target&&(r=C),r&&(a=Vn(r)),ah($n,n,Ke,i,r,a,t,!!r)!==!1)return b(),n.appendChild(Ke),Kn=n,w(),E(!0)}else if(C&&ube(t,h,this)){var P=cd(n,0,o,!0);if(P===Ke)return E(!1);if(r=P,a=Vn(r),ah($n,n,Ke,i,r,a,t,!1)!==!1)return b(),n.insertBefore(Ke,P),Kn=n,w(),E(!0)}else if(r.parentNode===n){a=Vn(r);var _=0,A,I=Ke.parentNode!==n,T=!ibe(Ke.animated&&Ke.toRect||i,r.animated&&r.toRect||a,h),x=h?"top":"left",R=TA(r,"top","top")||TA(Ke,"top","top"),O=R?R.scrollTop:void 0;nc!==r&&(A=a[x],Rf=!1,ih=!T&&o.invertSwap||I),_=dbe(t,r,a,h,T?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,ih,nc===r);var L;if(_!==0){var F=Jn(Ke);do F-=_,L=Kn.children[F];while(L&&(nt(L,"display")==="none"||L===Dt))}if(_===0||L===r)return E(!1);nc=r,Af=_;var W=r.nextElementSibling,H=!1;H=_===1;var B=ah($n,n,Ke,i,r,a,t,H);if(B!==!1)return(B===1||B===-1)&&(H=B===1),bw=!0,setTimeout(lbe,30),b(),H&&!W?n.appendChild(Ke):r.parentNode.insertBefore(Ke,H?W:r),R&&S4(R,0,O-R.scrollTop),Kn=Ke.parentNode,A!==void 0&&!ih&&(qh=Math.abs(A-Vn(r)[x])),w(),E(!0)}if(n.contains(Ke))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Mt(document,"mousemove",this._onTouchMove),Mt(document,"touchmove",this._onTouchMove),Mt(document,"pointermove",this._onTouchMove),Mt(document,"dragover",El),Mt(document,"mousemove",El),Mt(document,"touchmove",El)},_offUpEvents:function(){var t=this.el.ownerDocument;Mt(t,"mouseup",this._onDrop),Mt(t,"touchend",this._onDrop),Mt(t,"pointerup",this._onDrop),Mt(t,"touchcancel",this._onDrop),Mt(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(is=Jn(Ke),Mo=Jn(Ke,r.draggable),Ri("drop",this,{evt:t}),Kn=Ke&&Ke.parentNode,is=Jn(Ke),Mo=Jn(Ke,r.draggable),vt.eventCanceled){this._nulling();return}cc=!1,ih=!1,Rf=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Sw(this.cloneId),Sw(this._dragStartId),this.nativeDraggable&&(Mt(document,"drop",this),Mt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Tf&&nt(document.body,"user-select",""),nt(Ke,"transform",""),t&&(lf&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Dt&&Dt.parentNode&&Dt.parentNode.removeChild(Dt),($n===Kn||Dr&&Dr.lastPutMode!=="clone")&&Yn&&Yn.parentNode&&Yn.parentNode.removeChild(Yn),Ke&&(this.nativeDraggable&&Mt(Ke,"dragend",this),c1(Ke),Ke.style["will-change"]="",lf&&!cc&&Hn(Ke,Dr?Dr.options.ghostClass:this.options.ghostClass,!1),Hn(Ke,this.options.chosenClass,!1),hi({sortable:this,name:"unchoose",toEl:Kn,newIndex:null,newDraggableIndex:null,originalEvent:t}),$n!==Kn?(is>=0&&(hi({rootEl:Kn,name:"add",toEl:Kn,fromEl:$n,originalEvent:t}),hi({sortable:this,name:"remove",toEl:Kn,originalEvent:t}),hi({rootEl:Kn,name:"sort",toEl:Kn,fromEl:$n,originalEvent:t}),hi({sortable:this,name:"sort",toEl:Kn,originalEvent:t})),Dr&&Dr.save()):is!==Sc&&is>=0&&(hi({sortable:this,name:"update",toEl:Kn,originalEvent:t}),hi({sortable:this,name:"sort",toEl:Kn,originalEvent:t})),vt.active&&((is==null||is===-1)&&(is=Sc,Mo=Pf),hi({sortable:this,name:"end",toEl:Kn,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Ri("nulling",this),$n=Ke=Kn=Dt=_l=Yn=Gh=Bo=wl=Fs=lf=is=Mo=Sc=Pf=nc=Af=Dr=rh=vt.dragged=vt.ghost=vt.clone=vt.active=null,lv.forEach(function(t){t.checked=!0}),lv.length=o1=l1=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ke&&(this._onDragOver(t),obe(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,a=r.length,s=this.options;i<a;i++)n=r[i],zs(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||pbe(n));return t},sort:function(t,n){var r={},i=this.el;this.toArray().forEach(function(a,s){var o=i.children[s];zs(o,this.options.draggable,i,!1)&&(r[a]=o)},this),n&&this.captureAnimationState(),t.forEach(function(a){r[a]&&(i.removeChild(r[a]),i.appendChild(r[a]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return zs(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var i=Em.modifyOption(this,t,n);typeof i<"u"?r[t]=i:r[t]=n,t==="group"&&x4(r)},destroy:function(){Ri("destroy",this);var t=this.el;t[ni]=null,Mt(t,"mousedown",this._onTapStart),Mt(t,"touchstart",this._onTapStart),Mt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Mt(t,"dragover",this),Mt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ov.splice(ov.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Bo){if(Ri("hideClone",this),vt.eventCanceled)return;nt(Yn,"display","none"),this.options.removeCloneOnHide&&Yn.parentNode&&Yn.parentNode.removeChild(Yn),Bo=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Bo){if(Ri("showClone",this),vt.eventCanceled)return;Ke.parentNode==$n&&!this.options.group.revertClone?$n.insertBefore(Yn,Ke):_l?$n.insertBefore(Yn,_l):$n.appendChild(Yn),this.options.group.revertClone&&this.animate(Ke,Yn),nt(Yn,"display",""),Bo=!1}}};function obe(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ah(e,t,n,r,i,a,s,o){var l,u=e[ni],c=u.options.onMove,d;return window.CustomEvent&&!Eo&&!wm?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=a||Vn(t),l.willInsertAfter=o,l.originalEvent=s,e.dispatchEvent(l),c&&(d=c.call(u,l,s)),d}function c1(e){e.draggable=!1}function lbe(){bw=!1}function ube(e,t,n){var r=Vn(cd(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function cbe(e,t,n){var r=Vn(Yk(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function dbe(e,t,n,r,i,a,s,o){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!s){if(o&&qh<u*i){if(!Rf&&(Af===1?l>c+u*a/2:l<d-u*a/2)&&(Rf=!0),Rf)p=!0;else if(Af===1?l<c+qh:l>d-qh)return-Af}else if(l>c+u*(1-i)/2&&l<d-u*(1-i)/2)return fbe(t)}return p=p||s,p&&(l<c+u*a/2||l>d-u*a/2)?l>c+u/2?1:-1:0}function fbe(e){return Jn(Ke)<Jn(e)?1:-1}function pbe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function mbe(e){lv.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&lv.push(r)}}function Kh(e){return setTimeout(e,0)}function Sw(e){return clearTimeout(e)}By&&Kt(document,"touchmove",function(e){(vt.active||cc)&&e.cancelable&&e.preventDefault()});vt.utils={on:Kt,off:Mt,css:nt,find:y4,is:function(t,n){return!!zs(t,n,t,!1)},extend:Jye,throttle:b4,closest:zs,toggleClass:Hn,clone:Xk,index:Jn,nextTick:Kh,cancelNextTick:Sw,detectDirection:E4,getChild:cd};vt.get=function(e){return e[ni]};vt.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(vt.utils=Ca(Ca({},vt.utils),r.utils)),Em.mount(r)})};vt.create=function(e,t){return new vt(e,t)};vt.version=qye;var ur=[],uf,ww,Ew=!1,d1,f1,uv,cf;function hbe(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Kt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Kt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Kt(document,"touchmove",this._handleFallbackAutoScroll):Kt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Mt(document,"dragover",this._handleAutoScroll):(Mt(document,"pointermove",this._handleFallbackAutoScroll),Mt(document,"touchmove",this._handleFallbackAutoScroll),Mt(document,"mousemove",this._handleFallbackAutoScroll)),NA(),Yh(),Qye()},nulling:function(){uv=ww=uf=Ew=cf=d1=f1=null,ur.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,a=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,o=document.elementFromPoint(a,s);if(uv=n,r||this.options.forceAutoScrollFallback||wm||Eo||Tf){p1(n,this.options,o,r);var l=Ho(o,!0);Ew&&(!cf||a!==d1||s!==f1)&&(cf&&NA(),cf=setInterval(function(){var u=Ho(document.elementFromPoint(a,s),!0);u!==l&&(l=u,Yh()),p1(n,i.options,u,r)},10),d1=a,f1=s)}else{if(!this.options.bubbleScroll||Ho(o,!0)===va()){Yh();return}p1(n,this.options,Ho(o,!1),!1)}}},Ns(e,{pluginName:"scroll",initializeByDefault:!0})}function Yh(){ur.forEach(function(e){clearInterval(e.pid)}),ur=[]}function NA(){clearInterval(cf)}var p1=b4(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,o=t.scrollSpeed,l=va(),u=!1,c;ww!==n&&(ww=n,Yh(),uf=t.scroll,c=t.scrollFn,uf===!0&&(uf=Ho(n,!0)));var d=0,p=uf;do{var h=p,g=Vn(h),v=g.top,y=g.bottom,b=g.left,E=g.right,w=g.width,C=g.height,P=void 0,_=void 0,A=h.scrollWidth,I=h.scrollHeight,T=nt(h),x=h.scrollLeft,R=h.scrollTop;h===l?(P=w<A&&(T.overflowX==="auto"||T.overflowX==="scroll"||T.overflowX==="visible"),_=C<I&&(T.overflowY==="auto"||T.overflowY==="scroll"||T.overflowY==="visible")):(P=w<A&&(T.overflowX==="auto"||T.overflowX==="scroll"),_=C<I&&(T.overflowY==="auto"||T.overflowY==="scroll"));var O=P&&(Math.abs(E-i)<=s&&x+w<A)-(Math.abs(b-i)<=s&&!!x),L=_&&(Math.abs(y-a)<=s&&R+C<I)-(Math.abs(v-a)<=s&&!!R);if(!ur[d])for(var F=0;F<=d;F++)ur[F]||(ur[F]={});(ur[d].vx!=O||ur[d].vy!=L||ur[d].el!==h)&&(ur[d].el=h,ur[d].vx=O,ur[d].vy=L,clearInterval(ur[d].pid),(O!=0||L!=0)&&(u=!0,ur[d].pid=setInterval((function(){r&&this.layer===0&&vt.active._onTouchMove(uv);var W=ur[this.layer].vy?ur[this.layer].vy*o:0,H=ur[this.layer].vx?ur[this.layer].vx*o:0;typeof c=="function"&&c.call(vt.dragged.parentNode[ni],H,W,e,uv,ur[this.layer].el)!=="continue"||S4(ur[this.layer].el,H,W)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==l&&(p=Ho(p,!1)));Ew=u}},30),_4=function(t){var n=t.originalEvent,r=t.putSortable,i=t.dragEl,a=t.activeSortable,s=t.dispatchSortableEvent,o=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=r||a;o();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function Jk(){}Jk.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=cd(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:_4};Ns(Jk,{pluginName:"revertOnSpill"});function Qk(){}Qk.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:_4};Ns(Qk,{pluginName:"removeOnSpill"});var ys;function gbe(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;ys=r},dragOverValid:function(n){var r=n.completed,i=n.target,a=n.onMove,s=n.activeSortable,o=n.changed,l=n.cancel;if(s.options.swap){var u=this.sortable.el,c=this.options;if(i&&i!==u){var d=ys;a(i)!==!1?(Hn(i,c.swapClass,!0),ys=i):ys=null,d&&d!==ys&&Hn(d,c.swapClass,!1)}o(),r(!0),l()}},drop:function(n){var r=n.activeSortable,i=n.putSortable,a=n.dragEl,s=i||this.sortable,o=this.options;ys&&Hn(ys,o.swapClass,!1),ys&&(o.swap||i&&i.options.swap)&&a!==ys&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),vbe(a,ys),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){ys=null}},Ns(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ys}}})}function vbe(e,t){var n=e.parentNode,r=t.parentNode,i,a;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=Jn(e),a=Jn(t),n.isEqualNode(r)&&i<a&&a++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[a]))}var It=[],rs=[],Xd,$s,Jd=!1,Oi=!1,rc=!1,_n,Qd,oh;function ybe(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?Kt(document,"pointerup",this._deselectMultiDrag):(Kt(document,"mouseup",this._deselectMultiDrag),Kt(document,"touchend",this._deselectMultiDrag)),Kt(document,"keydown",this._checkKeyDown),Kt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,a){var s="";It.length&&$s===t?It.forEach(function(o,l){s+=(l?", ":"")+o.textContent}):s=a.textContent,i.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;_n=r},delayEnded:function(){this.isMultiDrag=~It.indexOf(_n)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var a=0;a<It.length;a++)rs.push(Xk(It[a])),rs[a].sortableIndex=It[a].sortableIndex,rs[a].draggable=!1,rs[a].style["will-change"]="",Hn(rs[a],this.options.selectedClass,!1),It[a]===_n&&Hn(rs[a],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(n){var r=n.sortable,i=n.rootEl,a=n.dispatchSortableEvent,s=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||It.length&&$s===r&&(DA(!0,i),a("clone"),s()))},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,a=n.cancel;this.isMultiDrag&&(DA(!1,i),rs.forEach(function(s){nt(s,"display","")}),r(),oh=!1,a())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,a=n.cancel;this.isMultiDrag&&(rs.forEach(function(s){nt(s,"display","none"),r.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),i(),oh=!0,a())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&$s&&$s.multiDrag._deselectMultiDrag(),It.forEach(function(r){r.sortableIndex=Jn(r)}),It=It.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),rc=!0},dragStarted:function(n){var r=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){It.forEach(function(s){s!==_n&&nt(s,"position","absolute")});var a=Vn(_n,!1,!0,!0);It.forEach(function(s){s!==_n&&PA(s,a)}),Oi=!0,Jd=!0}i.animateAll(function(){Oi=!1,Jd=!1,r.options.animation&&It.forEach(function(s){s1(s)}),r.options.sort&&lh()})}},dragOver:function(n){var r=n.target,i=n.completed,a=n.cancel;Oi&&~It.indexOf(r)&&(i(!1),a())},revert:function(n){var r=n.fromSortable,i=n.rootEl,a=n.sortable,s=n.dragRect;It.length>1&&(It.forEach(function(o){a.addAnimationState({target:o,rect:Oi?Vn(o):s}),s1(o),o.fromRect=s,r.removeAnimationState(o)}),Oi=!1,bbe(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,a=n.insertion,s=n.activeSortable,o=n.parentEl,l=n.putSortable,u=this.options;if(a){if(i&&s._hideClone(),Jd=!1,u.animation&&It.length>1&&(Oi||!i&&!s.options.sort&&!l)){var c=Vn(_n,!1,!0,!0);It.forEach(function(p){p!==_n&&(PA(p,c),o.appendChild(p))}),Oi=!0}if(!i)if(Oi||lh(),It.length>1){var d=oh;s._showClone(r),s.options.animation&&!oh&&d&&rs.forEach(function(p){s.addAnimationState({target:p,rect:Qd}),p.fromRect=Qd,p.thisAnimationDuration=null})}else s._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,a=n.activeSortable;if(It.forEach(function(o){o.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){Qd=Ns({},r);var s=uu(_n,!0);Qd.top-=s.f,Qd.left-=s.e}},dragOverAnimationComplete:function(){Oi&&(Oi=!1,lh())},drop:function(n){var r=n.originalEvent,i=n.rootEl,a=n.parentEl,s=n.sortable,o=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var d=this.options,p=a.children;if(!rc)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Hn(_n,d.selectedClass,!~It.indexOf(_n)),~It.indexOf(_n))It.splice(It.indexOf(_n),1),Xd=null,of({sortable:s,rootEl:i,name:"deselect",targetEl:_n});else{if(It.push(_n),of({sortable:s,rootEl:i,name:"select",targetEl:_n}),r.shiftKey&&Xd&&s.el.contains(Xd)){var h=Jn(Xd),g=Jn(_n);if(~h&&~g&&h!==g){var v,y;for(g>h?(y=h,v=g):(y=g,v=h+1);y<v;y++)~It.indexOf(p[y])||(Hn(p[y],d.selectedClass,!0),It.push(p[y]),of({sortable:s,rootEl:i,name:"select",targetEl:p[y]}))}}else Xd=_n;$s=c}if(rc&&this.isMultiDrag){if(Oi=!1,(a[ni].options.sort||a!==i)&&It.length>1){var b=Vn(_n),E=Jn(_n,":not(."+this.options.selectedClass+")");if(!Jd&&d.animation&&(_n.thisAnimationDuration=null),c.captureAnimationState(),!Jd&&(d.animation&&(_n.fromRect=b,It.forEach(function(C){if(C.thisAnimationDuration=null,C!==_n){var P=Oi?Vn(C):b;C.fromRect=P,c.addAnimationState({target:C,rect:P})}})),lh(),It.forEach(function(C){p[E]?a.insertBefore(C,p[E]):a.appendChild(C),E++}),l===Jn(_n))){var w=!1;It.forEach(function(C){if(C.sortableIndex!==Jn(C)){w=!0;return}}),w&&o("update")}It.forEach(function(C){s1(C)}),c.animateAll()}$s=c}(i===a||u&&u.lastPutMode!=="clone")&&rs.forEach(function(C){C.parentNode&&C.parentNode.removeChild(C)})}},nullingGlobal:function(){this.isMultiDrag=rc=!1,rs.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Mt(document,"pointerup",this._deselectMultiDrag),Mt(document,"mouseup",this._deselectMultiDrag),Mt(document,"touchend",this._deselectMultiDrag),Mt(document,"keydown",this._checkKeyDown),Mt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof rc<"u"&&rc)&&$s===this.sortable&&!(n&&zs(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;It.length;){var r=It[0];Hn(r,this.options.selectedClass,!1),It.shift(),of({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ns(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[ni];!r||!r.options.multiDrag||~It.indexOf(n)||($s&&$s!==r&&($s.multiDrag._deselectMultiDrag(),$s=r),Hn(n,r.options.selectedClass,!0),It.push(n))},deselect:function(n){var r=n.parentNode[ni],i=It.indexOf(n);!r||!r.options.multiDrag||!~i||(Hn(n,r.options.selectedClass,!1),It.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return It.forEach(function(a){r.push({multiDragElement:a,index:a.sortableIndex});var s;Oi&&a!==_n?s=-1:Oi?s=Jn(a,":not(."+n.options.selectedClass+")"):s=Jn(a),i.push({multiDragElement:a,index:s})}),{items:jye(It),clones:[].concat(rs),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function bbe(e,t){It.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function DA(e,t){rs.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function lh(){It.forEach(function(e){e!==_n&&e.parentNode&&e.parentNode.removeChild(e)})}vt.mount(new hbe);vt.mount(Qk,Jk);const Sbe=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:ybe,Sortable:vt,Swap:gbe,default:vt},Symbol.toStringTag,{value:"Module"})),wbe=wy(Sbe);var Ebe=Mh.exports,LA;function xbe(){return LA||(LA=1,(function(e,t){(function(r,i){e.exports=i(Mye(),wbe)})(typeof self<"u"?self:Ebe,function(n,r){return(function(i){var a={};function s(o){if(a[o])return a[o].exports;var l=a[o]={i:o,l:!1,exports:{}};return i[o].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=i,s.c=a,s.d=function(o,l,u){s.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:u})},s.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},s.t=function(o,l){if(l&1&&(o=s(o)),l&8||l&4&&typeof o=="object"&&o&&o.__esModule)return o;var u=Object.create(null);if(s.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:o}),l&2&&typeof o!="string")for(var c in o)s.d(u,c,(function(d){return o[d]}).bind(null,c));return u},s.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(l,"a",l),l},s.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},s.p="",s(s.s="fb15")})({"00ee":(function(i,a,s){var o=s("b622"),l=o("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"}),"0366":(function(i,a,s){var o=s("1c0b");i.exports=function(l,u,c){if(o(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(d){return l.call(u,d)};case 2:return function(d,p){return l.call(u,d,p)};case 3:return function(d,p,h){return l.call(u,d,p,h)}}return function(){return l.apply(u,arguments)}}}),"057f":(function(i,a,s){var o=s("fc6a"),l=s("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(p){try{return l(p)}catch{return c.slice()}};i.exports.f=function(h){return c&&u.call(h)=="[object Window]"?d(h):l(o(h))}}),"06cf":(function(i,a,s){var o=s("83ab"),l=s("d1e7"),u=s("5c6c"),c=s("fc6a"),d=s("c04e"),p=s("5135"),h=s("0cfb"),g=Object.getOwnPropertyDescriptor;a.f=o?g:function(y,b){if(y=c(y),b=d(b,!0),h)try{return g(y,b)}catch{}if(p(y,b))return u(!l.f.call(y,b),y[b])}}),"0cfb":(function(i,a,s){var o=s("83ab"),l=s("d039"),u=s("cc12");i.exports=!o&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})}),"13d5":(function(i,a,s){var o=s("23e7"),l=s("d58f").left,u=s("a640"),c=s("ae40"),d=u("reduce"),p=c("reduce",{1:0});o({target:"Array",proto:!0,forced:!d||!p},{reduce:function(g){return l(this,g,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(i,a,s){var o=s("c6b6"),l=s("9263");i.exports=function(u,c){var d=u.exec;if(typeof d=="function"){var p=d.call(u,c);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(o(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}}),"159b":(function(i,a,s){var o=s("da84"),l=s("fdbc"),u=s("17c2"),c=s("9112");for(var d in l){var p=o[d],h=p&&p.prototype;if(h&&h.forEach!==u)try{c(h,"forEach",u)}catch{h.forEach=u}}}),"17c2":(function(i,a,s){var o=s("b727").forEach,l=s("a640"),u=s("ae40"),c=l("forEach"),d=u("forEach");i.exports=!c||!d?function(h){return o(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(i,a,s){var o=s("d066");i.exports=o("document","documentElement")}),"1c0b":(function(i,a){i.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}}),"1c7e":(function(i,a,s){var o=s("b622"),l=o("iterator"),u=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){u=!0}};d[l]=function(){return this},Array.from(d,function(){throw 2})}catch{}i.exports=function(p,h){if(!h&&!u)return!1;var g=!1;try{var v={};v[l]=function(){return{next:function(){return{done:g=!0}}}},p(v)}catch{}return g}}),"1d80":(function(i,a){i.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}}),"1dde":(function(i,a,s){var o=s("d039"),l=s("b622"),u=s("2d00"),c=l("species");i.exports=function(d){return u>=51||!o(function(){var p=[],h=p.constructor={};return h[c]=function(){return{foo:1}},p[d](Boolean).foo!==1})}}),"23cb":(function(i,a,s){var o=s("a691"),l=Math.max,u=Math.min;i.exports=function(c,d){var p=o(c);return p<0?l(p+d,0):u(p,d)}}),"23e7":(function(i,a,s){var o=s("da84"),l=s("06cf").f,u=s("9112"),c=s("6eeb"),d=s("ce4e"),p=s("e893"),h=s("94ca");i.exports=function(g,v){var y=g.target,b=g.global,E=g.stat,w,C,P,_,A,I;if(b?C=o:E?C=o[y]||d(y,{}):C=(o[y]||{}).prototype,C)for(P in v){if(A=v[P],g.noTargetGet?(I=l(C,P),_=I&&I.value):_=C[P],w=h(b?P:y+(E?".":"#")+P,g.forced),!w&&_!==void 0){if(typeof A==typeof _)continue;p(A,_)}(g.sham||_&&_.sham)&&u(A,"sham",!0),c(C,P,A,g)}}}),"241c":(function(i,a,s){var o=s("ca84"),l=s("7839"),u=l.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(d){return o(d,u)}}),"25f0":(function(i,a,s){var o=s("6eeb"),l=s("825a"),u=s("d039"),c=s("ad6d"),d="toString",p=RegExp.prototype,h=p[d],g=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),v=h.name!=d;(g||v)&&o(RegExp.prototype,d,function(){var b=l(this),E=String(b.source),w=b.flags,C=String(w===void 0&&b instanceof RegExp&&!("flags"in p)?c.call(b):w);return"/"+E+"/"+C},{unsafe:!0})}),"2ca0":(function(i,a,s){var o=s("23e7"),l=s("06cf").f,u=s("50c4"),c=s("5a34"),d=s("1d80"),p=s("ab13"),h=s("c430"),g="".startsWith,v=Math.min,y=p("startsWith"),b=!h&&!y&&!!(function(){var E=l(String.prototype,"startsWith");return E&&!E.writable})();o({target:"String",proto:!0,forced:!b&&!y},{startsWith:function(w){var C=String(d(this));c(w);var P=u(v(arguments.length>1?arguments[1]:void 0,C.length)),_=String(w);return g?g.call(C,_,P):C.slice(P,P+_.length)===_}})}),"2d00":(function(i,a,s){var o=s("da84"),l=s("342f"),u=o.process,c=u&&u.versions,d=c&&c.v8,p,h;d?(p=d.split("."),h=p[0]+p[1]):l&&(p=l.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=l.match(/Chrome\/(\d+)/),p&&(h=p[1]))),i.exports=h&&+h}),"342f":(function(i,a,s){var o=s("d066");i.exports=o("navigator","userAgent")||""}),"35a1":(function(i,a,s){var o=s("f5df"),l=s("3f8c"),u=s("b622"),c=u("iterator");i.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||l[o(d)]}}),"37e8":(function(i,a,s){var o=s("83ab"),l=s("9bf2"),u=s("825a"),c=s("df75");i.exports=o?Object.defineProperties:function(p,h){u(p);for(var g=c(h),v=g.length,y=0,b;v>y;)l.f(p,b=g[y++],h[b]);return p}}),"3bbe":(function(i,a,s){var o=s("861d");i.exports=function(l){if(!o(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}}),"3ca3":(function(i,a,s){var o=s("6547").charAt,l=s("69f3"),u=s("7dd0"),c="String Iterator",d=l.set,p=l.getterFor(c);u(String,"String",function(h){d(this,{type:c,string:String(h),index:0})},function(){var g=p(this),v=g.string,y=g.index,b;return y>=v.length?{value:void 0,done:!0}:(b=o(v,y),g.index+=b.length,{value:b,done:!1})})}),"3f8c":(function(i,a){i.exports={}}),4160:(function(i,a,s){var o=s("23e7"),l=s("17c2");o({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})}),"428f":(function(i,a,s){var o=s("da84");i.exports=o}),"44ad":(function(i,a,s){var o=s("d039"),l=s("c6b6"),u="".split;i.exports=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object}),"44d2":(function(i,a,s){var o=s("b622"),l=s("7c73"),u=s("9bf2"),c=o("unscopables"),d=Array.prototype;d[c]==null&&u.f(d,c,{configurable:!0,value:l(null)}),i.exports=function(p){d[c][p]=!0}}),"44e7":(function(i,a,s){var o=s("861d"),l=s("c6b6"),u=s("b622"),c=u("match");i.exports=function(d){var p;return o(d)&&((p=d[c])!==void 0?!!p:l(d)=="RegExp")}}),4930:(function(i,a,s){var o=s("d039");i.exports=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())})}),"4d64":(function(i,a,s){var o=s("fc6a"),l=s("50c4"),u=s("23cb"),c=function(d){return function(p,h,g){var v=o(p),y=l(v.length),b=u(g,y),E;if(d&&h!=h){for(;y>b;)if(E=v[b++],E!=E)return!0}else for(;y>b;b++)if((d||b in v)&&v[b]===h)return d||b||0;return!d&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}}),"4de4":(function(i,a,s){var o=s("23e7"),l=s("b727").filter,u=s("1dde"),c=s("ae40"),d=u("filter"),p=c("filter");o({target:"Array",proto:!0,forced:!d||!p},{filter:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(i,a,s){var o=s("0366"),l=s("7b0b"),u=s("9bdd"),c=s("e95a"),d=s("50c4"),p=s("8418"),h=s("35a1");i.exports=function(v){var y=l(v),b=typeof this=="function"?this:Array,E=arguments.length,w=E>1?arguments[1]:void 0,C=w!==void 0,P=h(y),_=0,A,I,T,x,R,O;if(C&&(w=o(w,E>2?arguments[2]:void 0,2)),P!=null&&!(b==Array&&c(P)))for(x=P.call(y),R=x.next,I=new b;!(T=R.call(x)).done;_++)O=C?u(x,w,[T.value,_],!0):T.value,p(I,_,O);else for(A=d(y.length),I=new b(A);A>_;_++)O=C?w(y[_],_):y[_],p(I,_,O);return I.length=_,I}}),"4fad":(function(i,a,s){var o=s("23e7"),l=s("6f53").entries;o({target:"Object",stat:!0},{entries:function(c){return l(c)}})}),"50c4":(function(i,a,s){var o=s("a691"),l=Math.min;i.exports=function(u){return u>0?l(o(u),9007199254740991):0}}),5135:(function(i,a){var s={}.hasOwnProperty;i.exports=function(o,l){return s.call(o,l)}}),5319:(function(i,a,s){var o=s("d784"),l=s("825a"),u=s("7b0b"),c=s("50c4"),d=s("a691"),p=s("1d80"),h=s("8aa5"),g=s("14c3"),v=Math.max,y=Math.min,b=Math.floor,E=/\$([$&'`]|\d\d?|<[^>]*>)/g,w=/\$([$&'`]|\d\d?)/g,C=function(P){return P===void 0?P:String(P)};o("replace",2,function(P,_,A,I){var T=I.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,x=I.REPLACE_KEEPS_$0,R=T?"$":"$0";return[function(F,W){var H=p(this),B=F?.[P];return B!==void 0?B.call(F,H,W):_.call(String(H),F,W)},function(L,F){if(!T&&x||typeof F=="string"&&F.indexOf(R)===-1){var W=A(_,L,this,F);if(W.done)return W.value}var H=l(L),B=String(this),$=typeof F=="function";$||(F=String(F));var Y=H.global;if(Y){var q=H.unicode;H.lastIndex=0}for(var U=[];;){var M=g(H,B);if(M===null||(U.push(M),!Y))break;var K=String(M[0]);K===""&&(H.lastIndex=h(B,c(H.lastIndex),q))}for(var fe="",he=0,Re=0;Re<U.length;Re++){M=U[Re];for(var Q=String(M[0]),re=v(y(d(M.index),B.length),0),X=[],ie=1;ie<M.length;ie++)X.push(C(M[ie]));var we=M.groups;if($){var Pe=[Q].concat(X,re,B);we!==void 0&&Pe.push(we);var G=String(F.apply(void 0,Pe))}else G=O(Q,B,re,X,we,F);re>=he&&(fe+=B.slice(he,re)+G,he=re+Q.length)}return fe+B.slice(he)}];function O(L,F,W,H,B,$){var Y=W+L.length,q=H.length,U=w;return B!==void 0&&(B=u(B),U=E),_.call($,U,function(M,K){var fe;switch(K.charAt(0)){case"$":return"$";case"&":return L;case"`":return F.slice(0,W);case"'":return F.slice(Y);case"<":fe=B[K.slice(1,-1)];break;default:var he=+K;if(he===0)return M;if(he>q){var Re=b(he/10);return Re===0?M:Re<=q?H[Re-1]===void 0?K.charAt(1):H[Re-1]+K.charAt(1):M}fe=H[he-1]}return fe===void 0?"":fe})}})}),5692:(function(i,a,s){var o=s("c430"),l=s("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),"56ef":(function(i,a,s){var o=s("d066"),l=s("241c"),u=s("7418"),c=s("825a");i.exports=o("Reflect","ownKeys")||function(p){var h=l.f(c(p)),g=u.f;return g?h.concat(g(p)):h}}),"5a34":(function(i,a,s){var o=s("44e7");i.exports=function(l){if(o(l))throw TypeError("The method doesn't accept regular expressions");return l}}),"5c6c":(function(i,a){i.exports=function(s,o){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:o}}}),"5db7":(function(i,a,s){var o=s("23e7"),l=s("a2bf"),u=s("7b0b"),c=s("50c4"),d=s("1c0b"),p=s("65f0");o({target:"Array",proto:!0},{flatMap:function(g){var v=u(this),y=c(v.length),b;return d(g),b=p(v,0),b.length=l(b,v,v,y,0,1,g,arguments.length>1?arguments[1]:void 0),b}})}),6547:(function(i,a,s){var o=s("a691"),l=s("1d80"),u=function(c){return function(d,p){var h=String(l(d)),g=o(p),v=h.length,y,b;return g<0||g>=v?c?"":void 0:(y=h.charCodeAt(g),y<55296||y>56319||g+1===v||(b=h.charCodeAt(g+1))<56320||b>57343?c?h.charAt(g):y:c?h.slice(g,g+2):(y-55296<<10)+(b-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}}),"65f0":(function(i,a,s){var o=s("861d"),l=s("e8b5"),u=s("b622"),c=u("species");i.exports=function(d,p){var h;return l(d)&&(h=d.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:o(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(p===0?0:p)}}),"69f3":(function(i,a,s){var o=s("7f9a"),l=s("da84"),u=s("861d"),c=s("9112"),d=s("5135"),p=s("f772"),h=s("d012"),g=l.WeakMap,v,y,b,E=function(T){return b(T)?y(T):v(T,{})},w=function(T){return function(x){var R;if(!u(x)||(R=y(x)).type!==T)throw TypeError("Incompatible receiver, "+T+" required");return R}};if(o){var C=new g,P=C.get,_=C.has,A=C.set;v=function(T,x){return A.call(C,T,x),x},y=function(T){return P.call(C,T)||{}},b=function(T){return _.call(C,T)}}else{var I=p("state");h[I]=!0,v=function(T,x){return c(T,I,x),x},y=function(T){return d(T,I)?T[I]:{}},b=function(T){return d(T,I)}}i.exports={set:v,get:y,has:b,enforce:E,getterFor:w}}),"6eeb":(function(i,a,s){var o=s("da84"),l=s("9112"),u=s("5135"),c=s("ce4e"),d=s("8925"),p=s("69f3"),h=p.get,g=p.enforce,v=String(String).split("String");(i.exports=function(y,b,E,w){var C=w?!!w.unsafe:!1,P=w?!!w.enumerable:!1,_=w?!!w.noTargetGet:!1;if(typeof E=="function"&&(typeof b=="string"&&!u(E,"name")&&l(E,"name",b),g(E).source=v.join(typeof b=="string"?b:"")),y===o){P?y[b]=E:c(b,E);return}else C?!_&&y[b]&&(P=!0):delete y[b];P?y[b]=E:l(y,b,E)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||d(this)})}),"6f53":(function(i,a,s){var o=s("83ab"),l=s("df75"),u=s("fc6a"),c=s("d1e7").f,d=function(p){return function(h){for(var g=u(h),v=l(g),y=v.length,b=0,E=[],w;y>b;)w=v[b++],(!o||c.call(g,w))&&E.push(p?[w,g[w]]:g[w]);return E}};i.exports={entries:d(!0),values:d(!1)}}),"73d9":(function(i,a,s){var o=s("44d2");o("flatMap")}),7418:(function(i,a){a.f=Object.getOwnPropertySymbols}),"746f":(function(i,a,s){var o=s("428f"),l=s("5135"),u=s("e538"),c=s("9bf2").f;i.exports=function(d){var p=o.Symbol||(o.Symbol={});l(p,d)||c(p,d,{value:u.f(d)})}}),7839:(function(i,a){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),"7b0b":(function(i,a,s){var o=s("1d80");i.exports=function(l){return Object(o(l))}}),"7c73":(function(i,a,s){var o=s("825a"),l=s("37e8"),u=s("7839"),c=s("d012"),d=s("1be4"),p=s("cc12"),h=s("f772"),g=">",v="<",y="prototype",b="script",E=h("IE_PROTO"),w=function(){},C=function(T){return v+b+g+T+v+"/"+b+g},P=function(T){T.write(C("")),T.close();var x=T.parentWindow.Object;return T=null,x},_=function(){var T=p("iframe"),x="java"+b+":",R;return T.style.display="none",d.appendChild(T),T.src=String(x),R=T.contentWindow.document,R.open(),R.write(C("document.F=Object")),R.close(),R.F},A,I=function(){try{A=document.domain&&new ActiveXObject("htmlfile")}catch{}I=A?P(A):_();for(var T=u.length;T--;)delete I[y][u[T]];return I()};c[E]=!0,i.exports=Object.create||function(x,R){var O;return x!==null?(w[y]=o(x),O=new w,w[y]=null,O[E]=x):O=I(),R===void 0?O:l(O,R)}}),"7dd0":(function(i,a,s){var o=s("23e7"),l=s("9ed3"),u=s("e163"),c=s("d2bb"),d=s("d44e"),p=s("9112"),h=s("6eeb"),g=s("b622"),v=s("c430"),y=s("3f8c"),b=s("ae93"),E=b.IteratorPrototype,w=b.BUGGY_SAFARI_ITERATORS,C=g("iterator"),P="keys",_="values",A="entries",I=function(){return this};i.exports=function(T,x,R,O,L,F,W){l(R,x,O);var H=function(Re){if(Re===L&&U)return U;if(!w&&Re in Y)return Y[Re];switch(Re){case P:return function(){return new R(this,Re)};case _:return function(){return new R(this,Re)};case A:return function(){return new R(this,Re)}}return function(){return new R(this)}},B=x+" Iterator",$=!1,Y=T.prototype,q=Y[C]||Y["@@iterator"]||L&&Y[L],U=!w&&q||H(L),M=x=="Array"&&Y.entries||q,K,fe,he;if(M&&(K=u(M.call(new T)),E!==Object.prototype&&K.next&&(!v&&u(K)!==E&&(c?c(K,E):typeof K[C]!="function"&&p(K,C,I)),d(K,B,!0,!0),v&&(y[B]=I))),L==_&&q&&q.name!==_&&($=!0,U=function(){return q.call(this)}),(!v||W)&&Y[C]!==U&&p(Y,C,U),y[x]=U,L)if(fe={values:H(_),keys:F?U:H(P),entries:H(A)},W)for(he in fe)(w||$||!(he in Y))&&h(Y,he,fe[he]);else o({target:x,proto:!0,forced:w||$},fe);return fe}}),"7f9a":(function(i,a,s){var o=s("da84"),l=s("8925"),u=o.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))}),"825a":(function(i,a,s){var o=s("861d");i.exports=function(l){if(!o(l))throw TypeError(String(l)+" is not an object");return l}}),"83ab":(function(i,a,s){var o=s("d039");i.exports=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(i,a,s){var o=s("c04e"),l=s("9bf2"),u=s("5c6c");i.exports=function(c,d,p){var h=o(d);h in c?l.f(c,h,u(0,p)):c[h]=p}}),"861d":(function(i,a){i.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}}),8875:(function(i,a,s){var o,l,u;(function(c,d){l=[],o=d,u=typeof o=="function"?o.apply(a,l):o,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function c(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(A){var p=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,g=p.exec(A.stack)||h.exec(A.stack),v=g&&g[1]||!1,y=g&&g[2]||!1,b=document.location.href.replace(document.location.hash,""),E,w,C,P=document.getElementsByTagName("script");v===b&&(E=document.documentElement.outerHTML,w=new RegExp("(?:[^\\n]+?\\n){0,"+(y-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),C=E.replace(w,"$1").trim());for(var _=0;_<P.length;_++)if(P[_].readyState==="interactive"||P[_].src===v||v===b&&P[_].innerHTML&&P[_].innerHTML.trim()===C)return P[_];return null}}return c})}),8925:(function(i,a,s){var o=s("c6cd"),l=Function.toString;typeof o.inspectSource!="function"&&(o.inspectSource=function(u){return l.call(u)}),i.exports=o.inspectSource}),"8aa5":(function(i,a,s){var o=s("6547").charAt;i.exports=function(l,u,c){return u+(c?o(l,u).length:1)}}),"8bbf":(function(i,a){i.exports=n}),"90e3":(function(i,a){var s=0,o=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++s+o).toString(36)}}),9112:(function(i,a,s){var o=s("83ab"),l=s("9bf2"),u=s("5c6c");i.exports=o?function(c,d,p){return l.f(c,d,u(1,p))}:function(c,d,p){return c[d]=p,c}}),9263:(function(i,a,s){var o=s("ad6d"),l=s("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,d=u,p=(function(){var y=/a/,b=/b*/g;return u.call(y,"a"),u.call(b,"a"),y.lastIndex!==0||b.lastIndex!==0})(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,v=p||g||h;v&&(d=function(b){var E=this,w,C,P,_,A=h&&E.sticky,I=o.call(E),T=E.source,x=0,R=b;return A&&(I=I.replace("y",""),I.indexOf("g")===-1&&(I+="g"),R=String(b).slice(E.lastIndex),E.lastIndex>0&&(!E.multiline||E.multiline&&b[E.lastIndex-1]!==`
97
+ `)&&(T="(?: "+T+")",R=" "+R,x++),C=new RegExp("^(?:"+T+")",I)),g&&(C=new RegExp("^"+T+"$(?!\\s)",I)),p&&(w=E.lastIndex),P=u.call(A?C:E,R),A?P?(P.input=P.input.slice(x),P[0]=P[0].slice(x),P.index=E.lastIndex,E.lastIndex+=P[0].length):E.lastIndex=0:p&&P&&(E.lastIndex=E.global?P.index+P[0].length:w),g&&P&&P.length>1&&c.call(P[0],C,function(){for(_=1;_<arguments.length-2;_++)arguments[_]===void 0&&(P[_]=void 0)}),P}),i.exports=d}),"94ca":(function(i,a,s){var o=s("d039"),l=/#|\.prototype\./,u=function(g,v){var y=d[c(g)];return y==h?!0:y==p?!1:typeof v=="function"?o(v):!!v},c=u.normalize=function(g){return String(g).replace(l,".").toLowerCase()},d=u.data={},p=u.NATIVE="N",h=u.POLYFILL="P";i.exports=u}),"99af":(function(i,a,s){var o=s("23e7"),l=s("d039"),u=s("e8b5"),c=s("861d"),d=s("7b0b"),p=s("50c4"),h=s("8418"),g=s("65f0"),v=s("1dde"),y=s("b622"),b=s("2d00"),E=y("isConcatSpreadable"),w=9007199254740991,C="Maximum allowed index exceeded",P=b>=51||!l(function(){var T=[];return T[E]=!1,T.concat()[0]!==T}),_=v("concat"),A=function(T){if(!c(T))return!1;var x=T[E];return x!==void 0?!!x:u(T)},I=!P||!_;o({target:"Array",proto:!0,forced:I},{concat:function(x){var R=d(this),O=g(R,0),L=0,F,W,H,B,$;for(F=-1,H=arguments.length;F<H;F++)if($=F===-1?R:arguments[F],A($)){if(B=p($.length),L+B>w)throw TypeError(C);for(W=0;W<B;W++,L++)W in $&&h(O,L,$[W])}else{if(L>=w)throw TypeError(C);h(O,L++,$)}return O.length=L,O}})}),"9bdd":(function(i,a,s){var o=s("825a");i.exports=function(l,u,c,d){try{return d?u(o(c)[0],c[1]):u(c)}catch(h){var p=l.return;throw p!==void 0&&o(p.call(l)),h}}}),"9bf2":(function(i,a,s){var o=s("83ab"),l=s("0cfb"),u=s("825a"),c=s("c04e"),d=Object.defineProperty;a.f=o?d:function(h,g,v){if(u(h),g=c(g,!0),u(v),l)try{return d(h,g,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(h[g]=v.value),h}}),"9ed3":(function(i,a,s){var o=s("ae93").IteratorPrototype,l=s("7c73"),u=s("5c6c"),c=s("d44e"),d=s("3f8c"),p=function(){return this};i.exports=function(h,g,v){var y=g+" Iterator";return h.prototype=l(o,{next:u(1,v)}),c(h,y,!1,!0),d[y]=p,h}}),"9f7f":(function(i,a,s){var o=s("d039");function l(u,c){return RegExp(u,c)}a.UNSUPPORTED_Y=o(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),a.BROKEN_CARET=o(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})}),a2bf:(function(i,a,s){var o=s("e8b5"),l=s("50c4"),u=s("0366"),c=function(d,p,h,g,v,y,b,E){for(var w=v,C=0,P=b?u(b,E,3):!1,_;C<g;){if(C in h){if(_=P?P(h[C],C,p):h[C],y>0&&o(_))w=c(d,p,_,l(_.length),w,y-1)-1;else{if(w>=9007199254740991)throw TypeError("Exceed the acceptable array length");d[w]=_}w++}C++}return w};i.exports=c}),a352:(function(i,a){i.exports=r}),a434:(function(i,a,s){var o=s("23e7"),l=s("23cb"),u=s("a691"),c=s("50c4"),d=s("7b0b"),p=s("65f0"),h=s("8418"),g=s("1dde"),v=s("ae40"),y=g("splice"),b=v("splice",{ACCESSORS:!0,0:0,1:2}),E=Math.max,w=Math.min,C=9007199254740991,P="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!y||!b},{splice:function(A,I){var T=d(this),x=c(T.length),R=l(A,x),O=arguments.length,L,F,W,H,B,$;if(O===0?L=F=0:O===1?(L=0,F=x-R):(L=O-2,F=w(E(u(I),0),x-R)),x+L-F>C)throw TypeError(P);for(W=p(T,F),H=0;H<F;H++)B=R+H,B in T&&h(W,H,T[B]);if(W.length=F,L<F){for(H=R;H<x-F;H++)B=H+F,$=H+L,B in T?T[$]=T[B]:delete T[$];for(H=x;H>x-F+L;H--)delete T[H-1]}else if(L>F)for(H=x-F;H>R;H--)B=H+F-1,$=H+L-1,B in T?T[$]=T[B]:delete T[$];for(H=0;H<L;H++)T[H+R]=arguments[H+2];return T.length=x-F+L,W}})}),a4d3:(function(i,a,s){var o=s("23e7"),l=s("da84"),u=s("d066"),c=s("c430"),d=s("83ab"),p=s("4930"),h=s("fdbf"),g=s("d039"),v=s("5135"),y=s("e8b5"),b=s("861d"),E=s("825a"),w=s("7b0b"),C=s("fc6a"),P=s("c04e"),_=s("5c6c"),A=s("7c73"),I=s("df75"),T=s("241c"),x=s("057f"),R=s("7418"),O=s("06cf"),L=s("9bf2"),F=s("d1e7"),W=s("9112"),H=s("6eeb"),B=s("5692"),$=s("f772"),Y=s("d012"),q=s("90e3"),U=s("b622"),M=s("e538"),K=s("746f"),fe=s("d44e"),he=s("69f3"),Re=s("b727").forEach,Q=$("hidden"),re="Symbol",X="prototype",ie=U("toPrimitive"),we=he.set,Pe=he.getterFor(re),G=Object[X],J=l.Symbol,de=u("JSON","stringify"),oe=O.f,be=L.f,Ce=x.f,ue=F.f,ge=B("symbols"),_e=B("op-symbols"),ce=B("string-to-symbol-registry"),Be=B("symbol-to-string-registry"),Ie=B("wks"),Me=l.QObject,Je=!Me||!Me[X]||!Me[X].findChild,Ze=d&&g(function(){return A(be({},"a",{get:function(){return be(this,"a",{value:7}).a}})).a!=7})?function(ft,Qe,dt){var Ut=oe(G,Qe);Ut&&delete G[Qe],be(ft,Qe,dt),Ut&&ft!==G&&be(G,Qe,Ut)}:be,At=function(ft,Qe){var dt=ge[ft]=A(J[X]);return we(dt,{type:re,tag:ft,description:Qe}),d||(dt.description=Qe),dt},pe=h?function(ft){return typeof ft=="symbol"}:function(ft){return Object(ft)instanceof J},me=function(Qe,dt,Ut){Qe===G&&me(_e,dt,Ut),E(Qe);var Qt=P(dt,!0);return E(Ut),v(ge,Qt)?(Ut.enumerable?(v(Qe,Q)&&Qe[Q][Qt]&&(Qe[Q][Qt]=!1),Ut=A(Ut,{enumerable:_(0,!1)})):(v(Qe,Q)||be(Qe,Q,_(1,{})),Qe[Q][Qt]=!0),Ze(Qe,Qt,Ut)):be(Qe,Qt,Ut)},ke=function(Qe,dt){E(Qe);var Ut=C(dt),Qt=I(Ut).concat(wt(Ut));return Re(Qt,function(Nr){(!d||Ye.call(Ut,Nr))&&me(Qe,Nr,Ut[Nr])}),Qe},Le=function(Qe,dt){return dt===void 0?A(Qe):ke(A(Qe),dt)},Ye=function(Qe){var dt=P(Qe,!0),Ut=ue.call(this,dt);return this===G&&v(ge,dt)&&!v(_e,dt)?!1:Ut||!v(this,dt)||!v(ge,dt)||v(this,Q)&&this[Q][dt]?Ut:!0},ut=function(Qe,dt){var Ut=C(Qe),Qt=P(dt,!0);if(!(Ut===G&&v(ge,Qt)&&!v(_e,Qt))){var Nr=oe(Ut,Qt);return Nr&&v(ge,Qt)&&!(v(Ut,Q)&&Ut[Q][Qt])&&(Nr.enumerable=!0),Nr}},St=function(Qe){var dt=Ce(C(Qe)),Ut=[];return Re(dt,function(Qt){!v(ge,Qt)&&!v(Y,Qt)&&Ut.push(Qt)}),Ut},wt=function(Qe){var dt=Qe===G,Ut=Ce(dt?_e:C(Qe)),Qt=[];return Re(Ut,function(Nr){v(ge,Nr)&&(!dt||v(G,Nr))&&Qt.push(ge[Nr])}),Qt};if(p||(J=function(){if(this instanceof J)throw TypeError("Symbol is not a constructor");var Qe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),dt=q(Qe),Ut=function(Qt){this===G&&Ut.call(_e,Qt),v(this,Q)&&v(this[Q],dt)&&(this[Q][dt]=!1),Ze(this,dt,_(1,Qt))};return d&&Je&&Ze(G,dt,{configurable:!0,set:Ut}),At(dt,Qe)},H(J[X],"toString",function(){return Pe(this).tag}),H(J,"withoutSetter",function(ft){return At(q(ft),ft)}),F.f=Ye,L.f=me,O.f=ut,T.f=x.f=St,R.f=wt,M.f=function(ft){return At(U(ft),ft)},d&&(be(J[X],"description",{configurable:!0,get:function(){return Pe(this).description}}),c||H(G,"propertyIsEnumerable",Ye,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:J}),Re(I(Ie),function(ft){K(ft)}),o({target:re,stat:!0,forced:!p},{for:function(ft){var Qe=String(ft);if(v(ce,Qe))return ce[Qe];var dt=J(Qe);return ce[Qe]=dt,Be[dt]=Qe,dt},keyFor:function(Qe){if(!pe(Qe))throw TypeError(Qe+" is not a symbol");if(v(Be,Qe))return Be[Qe]},useSetter:function(){Je=!0},useSimple:function(){Je=!1}}),o({target:"Object",stat:!0,forced:!p,sham:!d},{create:Le,defineProperty:me,defineProperties:ke,getOwnPropertyDescriptor:ut}),o({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:St,getOwnPropertySymbols:wt}),o({target:"Object",stat:!0,forced:g(function(){R.f(1)})},{getOwnPropertySymbols:function(Qe){return R.f(w(Qe))}}),de){var rn=!p||g(function(){var ft=J();return de([ft])!="[null]"||de({a:ft})!="{}"||de(Object(ft))!="{}"});o({target:"JSON",stat:!0,forced:rn},{stringify:function(Qe,dt,Ut){for(var Qt=[Qe],Nr=1,Md;arguments.length>Nr;)Qt.push(arguments[Nr++]);if(Md=dt,!(!b(dt)&&Qe===void 0||pe(Qe)))return y(dt)||(dt=function(Gy,ju){if(typeof Md=="function"&&(ju=Md.call(this,Gy,ju)),!pe(ju))return ju}),Qt[1]=dt,de.apply(null,Qt)}})}J[X][ie]||W(J[X],ie,J[X].valueOf),fe(J,re),Y[Q]=!0}),a630:(function(i,a,s){var o=s("23e7"),l=s("4df4"),u=s("1c7e"),c=!u(function(d){Array.from(d)});o({target:"Array",stat:!0,forced:c},{from:l})}),a640:(function(i,a,s){var o=s("d039");i.exports=function(l,u){var c=[][l];return!!c&&o(function(){c.call(null,u||function(){throw 1},1)})}}),a691:(function(i,a){var s=Math.ceil,o=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?o:s)(l)}}),ab13:(function(i,a,s){var o=s("b622"),l=o("match");i.exports=function(u){var c=/./;try{"/./"[u](c)}catch{try{return c[l]=!1,"/./"[u](c)}catch{}}return!1}}),ac1f:(function(i,a,s){var o=s("23e7"),l=s("9263");o({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})}),ad6d:(function(i,a,s){var o=s("825a");i.exports=function(){var l=o(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}}),ae40:(function(i,a,s){var o=s("83ab"),l=s("d039"),u=s("5135"),c=Object.defineProperty,d={},p=function(h){throw h};i.exports=function(h,g){if(u(d,h))return d[h];g||(g={});var v=[][h],y=u(g,"ACCESSORS")?g.ACCESSORS:!1,b=u(g,0)?g[0]:p,E=u(g,1)?g[1]:void 0;return d[h]=!!v&&!l(function(){if(y&&!o)return!0;var w={length:-1};y?c(w,1,{enumerable:!0,get:p}):w[1]=1,v.call(w,b,E)})}}),ae93:(function(i,a,s){var o=s("e163"),l=s("9112"),u=s("5135"),c=s("b622"),d=s("c430"),p=c("iterator"),h=!1,g=function(){return this},v,y,b;[].keys&&(b=[].keys(),"next"in b?(y=o(o(b)),y!==Object.prototype&&(v=y)):h=!0),v==null&&(v={}),!d&&!u(v,p)&&l(v,p,g),i.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:h}}),b041:(function(i,a,s){var o=s("00ee"),l=s("f5df");i.exports=o?{}.toString:function(){return"[object "+l(this)+"]"}}),b0c0:(function(i,a,s){var o=s("83ab"),l=s("9bf2").f,u=Function.prototype,c=u.toString,d=/^\s*function ([^ (]*)/,p="name";o&&!(p in u)&&l(u,p,{configurable:!0,get:function(){try{return c.call(this).match(d)[1]}catch{return""}}})}),b622:(function(i,a,s){var o=s("da84"),l=s("5692"),u=s("5135"),c=s("90e3"),d=s("4930"),p=s("fdbf"),h=l("wks"),g=o.Symbol,v=p?g:g&&g.withoutSetter||c;i.exports=function(y){return u(h,y)||(d&&u(g,y)?h[y]=g[y]:h[y]=v("Symbol."+y)),h[y]}}),b64b:(function(i,a,s){var o=s("23e7"),l=s("7b0b"),u=s("df75"),c=s("d039"),d=c(function(){u(1)});o({target:"Object",stat:!0,forced:d},{keys:function(h){return u(l(h))}})}),b727:(function(i,a,s){var o=s("0366"),l=s("44ad"),u=s("7b0b"),c=s("50c4"),d=s("65f0"),p=[].push,h=function(g){var v=g==1,y=g==2,b=g==3,E=g==4,w=g==6,C=g==5||w;return function(P,_,A,I){for(var T=u(P),x=l(T),R=o(_,A,3),O=c(x.length),L=0,F=I||d,W=v?F(P,O):y?F(P,0):void 0,H,B;O>L;L++)if((C||L in x)&&(H=x[L],B=R(H,L,T),g)){if(v)W[L]=B;else if(B)switch(g){case 3:return!0;case 5:return H;case 6:return L;case 2:p.call(W,H)}else if(E)return!1}return w?-1:b||E?E:W}};i.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}}),c04e:(function(i,a,s){var o=s("861d");i.exports=function(l,u){if(!o(l))return l;var c,d;if(u&&typeof(c=l.toString)=="function"&&!o(d=c.call(l))||typeof(c=l.valueOf)=="function"&&!o(d=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!o(d=c.call(l)))return d;throw TypeError("Can't convert object to primitive value")}}),c430:(function(i,a){i.exports=!1}),c6b6:(function(i,a){var s={}.toString;i.exports=function(o){return s.call(o).slice(8,-1)}}),c6cd:(function(i,a,s){var o=s("da84"),l=s("ce4e"),u="__core-js_shared__",c=o[u]||l(u,{});i.exports=c}),c740:(function(i,a,s){var o=s("23e7"),l=s("b727").findIndex,u=s("44d2"),c=s("ae40"),d="findIndex",p=!0,h=c(d);d in[]&&Array(1)[d](function(){p=!1}),o({target:"Array",proto:!0,forced:p||!h},{findIndex:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}}),u(d)}),c8ba:(function(i,a){var s;s=(function(){return this})();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}i.exports=s}),c975:(function(i,a,s){var o=s("23e7"),l=s("4d64").indexOf,u=s("a640"),c=s("ae40"),d=[].indexOf,p=!!d&&1/[1].indexOf(1,-0)<0,h=u("indexOf"),g=c("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:p||!h||!g},{indexOf:function(y){return p?d.apply(this,arguments)||0:l(this,y,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(i,a,s){var o=s("5135"),l=s("fc6a"),u=s("4d64").indexOf,c=s("d012");i.exports=function(d,p){var h=l(d),g=0,v=[],y;for(y in h)!o(c,y)&&o(h,y)&&v.push(y);for(;p.length>g;)o(h,y=p[g++])&&(~u(v,y)||v.push(y));return v}}),caad:(function(i,a,s){var o=s("23e7"),l=s("4d64").includes,u=s("44d2"),c=s("ae40"),d=c("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:!d},{includes:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),u("includes")}),cc12:(function(i,a,s){var o=s("da84"),l=s("861d"),u=o.document,c=l(u)&&l(u.createElement);i.exports=function(d){return c?u.createElement(d):{}}}),ce4e:(function(i,a,s){var o=s("da84"),l=s("9112");i.exports=function(u,c){try{l(o,u,c)}catch{o[u]=c}return c}}),d012:(function(i,a){i.exports={}}),d039:(function(i,a){i.exports=function(s){try{return!!s()}catch{return!0}}}),d066:(function(i,a,s){var o=s("428f"),l=s("da84"),u=function(c){return typeof c=="function"?c:void 0};i.exports=function(c,d){return arguments.length<2?u(o[c])||u(l[c]):o[c]&&o[c][d]||l[c]&&l[c][d]}}),d1e7:(function(i,a,s){var o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!o.call({1:2},1);a.f=u?function(d){var p=l(this,d);return!!p&&p.enumerable}:o}),d28b:(function(i,a,s){var o=s("746f");o("iterator")}),d2bb:(function(i,a,s){var o=s("825a"),l=s("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var u=!1,c={},d;try{d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,d.call(c,[]),u=c instanceof Array}catch{}return function(h,g){return o(h),l(g),u?d.call(h,g):h.__proto__=g,h}})():void 0)}),d3b7:(function(i,a,s){var o=s("00ee"),l=s("6eeb"),u=s("b041");o||l(Object.prototype,"toString",u,{unsafe:!0})}),d44e:(function(i,a,s){var o=s("9bf2").f,l=s("5135"),u=s("b622"),c=u("toStringTag");i.exports=function(d,p,h){d&&!l(d=h?d:d.prototype,c)&&o(d,c,{configurable:!0,value:p})}}),d58f:(function(i,a,s){var o=s("1c0b"),l=s("7b0b"),u=s("44ad"),c=s("50c4"),d=function(p){return function(h,g,v,y){o(g);var b=l(h),E=u(b),w=c(b.length),C=p?w-1:0,P=p?-1:1;if(v<2)for(;;){if(C in E){y=E[C],C+=P;break}if(C+=P,p?C<0:w<=C)throw TypeError("Reduce of empty array with no initial value")}for(;p?C>=0:w>C;C+=P)C in E&&(y=g(y,E[C],C,b));return y}};i.exports={left:d(!1),right:d(!0)}}),d784:(function(i,a,s){s("ac1f");var o=s("6eeb"),l=s("d039"),u=s("b622"),c=s("9263"),d=s("9112"),p=u("species"),h=!l(function(){var E=/./;return E.exec=function(){var w=[];return w.groups={a:"7"},w},"".replace(E,"$<a>")!=="7"}),g=(function(){return"a".replace(/./,"$0")==="$0"})(),v=u("replace"),y=(function(){return/./[v]?/./[v]("a","$0")==="":!1})(),b=!l(function(){var E=/(?:)/,w=E.exec;E.exec=function(){return w.apply(this,arguments)};var C="ab".split(E);return C.length!==2||C[0]!=="a"||C[1]!=="b"});i.exports=function(E,w,C,P){var _=u(E),A=!l(function(){var L={};return L[_]=function(){return 7},""[E](L)!=7}),I=A&&!l(function(){var L=!1,F=/a/;return E==="split"&&(F={},F.constructor={},F.constructor[p]=function(){return F},F.flags="",F[_]=/./[_]),F.exec=function(){return L=!0,null},F[_](""),!L});if(!A||!I||E==="replace"&&!(h&&g&&!y)||E==="split"&&!b){var T=/./[_],x=C(_,""[E],function(L,F,W,H,B){return F.exec===c?A&&!B?{done:!0,value:T.call(F,W,H)}:{done:!0,value:L.call(W,F,H)}:{done:!1}},{REPLACE_KEEPS_$0:g,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:y}),R=x[0],O=x[1];o(String.prototype,E,R),o(RegExp.prototype,_,w==2?function(L,F){return O.call(L,this,F)}:function(L){return O.call(L,this)})}P&&d(RegExp.prototype[_],"sham",!0)}}),d81d:(function(i,a,s){var o=s("23e7"),l=s("b727").map,u=s("1dde"),c=s("ae40"),d=u("map"),p=c("map");o({target:"Array",proto:!0,forced:!d||!p},{map:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(i,a,s){(function(o){var l=function(u){return u&&u.Math==Math&&u};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof o=="object"&&o)||Function("return this")()}).call(this,s("c8ba"))}),dbb4:(function(i,a,s){var o=s("23e7"),l=s("83ab"),u=s("56ef"),c=s("fc6a"),d=s("06cf"),p=s("8418");o({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(g){for(var v=c(g),y=d.f,b=u(v),E={},w=0,C,P;b.length>w;)P=y(v,C=b[w++]),P!==void 0&&p(E,C,P);return E}})}),dbf1:(function(i,a,s){(function(o){s.d(a,"a",function(){return u});function l(){return typeof window<"u"?window.console:o.console}var u=l()}).call(this,s("c8ba"))}),ddb0:(function(i,a,s){var o=s("da84"),l=s("fdbc"),u=s("e260"),c=s("9112"),d=s("b622"),p=d("iterator"),h=d("toStringTag"),g=u.values;for(var v in l){var y=o[v],b=y&&y.prototype;if(b){if(b[p]!==g)try{c(b,p,g)}catch{b[p]=g}if(b[h]||c(b,h,v),l[v]){for(var E in u)if(b[E]!==u[E])try{c(b,E,u[E])}catch{b[E]=u[E]}}}}}),df75:(function(i,a,s){var o=s("ca84"),l=s("7839");i.exports=Object.keys||function(c){return o(c,l)}}),e01a:(function(i,a,s){var o=s("23e7"),l=s("83ab"),u=s("da84"),c=s("5135"),d=s("861d"),p=s("9bf2").f,h=s("e893"),g=u.Symbol;if(l&&typeof g=="function"&&(!("description"in g.prototype)||g().description!==void 0)){var v={},y=function(){var _=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),A=this instanceof y?new g(_):_===void 0?g():g(_);return _===""&&(v[A]=!0),A};h(y,g);var b=y.prototype=g.prototype;b.constructor=y;var E=b.toString,w=String(g("test"))=="Symbol(test)",C=/^Symbol\((.*)\)[^)]+$/;p(b,"description",{configurable:!0,get:function(){var _=d(this)?this.valueOf():this,A=E.call(_);if(c(v,_))return"";var I=w?A.slice(7,-1):A.replace(C,"$1");return I===""?void 0:I}}),o({global:!0,forced:!0},{Symbol:y})}}),e163:(function(i,a,s){var o=s("5135"),l=s("7b0b"),u=s("f772"),c=s("e177"),d=u("IE_PROTO"),p=Object.prototype;i.exports=c?Object.getPrototypeOf:function(h){return h=l(h),o(h,d)?h[d]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?p:null}}),e177:(function(i,a,s){var o=s("d039");i.exports=!o(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})}),e260:(function(i,a,s){var o=s("fc6a"),l=s("44d2"),u=s("3f8c"),c=s("69f3"),d=s("7dd0"),p="Array Iterator",h=c.set,g=c.getterFor(p);i.exports=d(Array,"Array",function(v,y){h(this,{type:p,target:o(v),index:0,kind:y})},function(){var v=g(this),y=v.target,b=v.kind,E=v.index++;return!y||E>=y.length?(v.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:E,done:!1}:b=="values"?{value:y[E],done:!1}:{value:[E,y[E]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")}),e439:(function(i,a,s){var o=s("23e7"),l=s("d039"),u=s("fc6a"),c=s("06cf").f,d=s("83ab"),p=l(function(){c(1)}),h=!d||p;o({target:"Object",stat:!0,forced:h,sham:!d},{getOwnPropertyDescriptor:function(v,y){return c(u(v),y)}})}),e538:(function(i,a,s){var o=s("b622");a.f=o}),e893:(function(i,a,s){var o=s("5135"),l=s("56ef"),u=s("06cf"),c=s("9bf2");i.exports=function(d,p){for(var h=l(p),g=c.f,v=u.f,y=0;y<h.length;y++){var b=h[y];o(d,b)||g(d,b,v(p,b))}}}),e8b5:(function(i,a,s){var o=s("c6b6");i.exports=Array.isArray||function(u){return o(u)=="Array"}}),e95a:(function(i,a,s){var o=s("b622"),l=s("3f8c"),u=o("iterator"),c=Array.prototype;i.exports=function(d){return d!==void 0&&(l.Array===d||c[u]===d)}}),f5df:(function(i,a,s){var o=s("00ee"),l=s("c6b6"),u=s("b622"),c=u("toStringTag"),d=l((function(){return arguments})())=="Arguments",p=function(h,g){try{return h[g]}catch{}};i.exports=o?l:function(h){var g,v,y;return h===void 0?"Undefined":h===null?"Null":typeof(v=p(g=Object(h),c))=="string"?v:d?l(g):(y=l(g))=="Object"&&typeof g.callee=="function"?"Arguments":y}}),f772:(function(i,a,s){var o=s("5692"),l=s("90e3"),u=o("keys");i.exports=function(c){return u[c]||(u[c]=l(c))}}),fb15:(function(i,a,s){if(s.r(a),typeof window<"u"){var o=window.document.currentScript;{var l=s("8875");o=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(s.p=u[1])}s("99af"),s("4de4"),s("4160"),s("c975"),s("d81d"),s("a434"),s("159b"),s("a4d3"),s("e439"),s("dbb4"),s("b64b");function c(pe,me,ke){return me in pe?Object.defineProperty(pe,me,{value:ke,enumerable:!0,configurable:!0,writable:!0}):pe[me]=ke,pe}function d(pe,me){var ke=Object.keys(pe);if(Object.getOwnPropertySymbols){var Le=Object.getOwnPropertySymbols(pe);me&&(Le=Le.filter(function(Ye){return Object.getOwnPropertyDescriptor(pe,Ye).enumerable})),ke.push.apply(ke,Le)}return ke}function p(pe){for(var me=1;me<arguments.length;me++){var ke=arguments[me]!=null?arguments[me]:{};me%2?d(Object(ke),!0).forEach(function(Le){c(pe,Le,ke[Le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(ke)):d(Object(ke)).forEach(function(Le){Object.defineProperty(pe,Le,Object.getOwnPropertyDescriptor(ke,Le))})}return pe}function h(pe){if(Array.isArray(pe))return pe}s("e01a"),s("d28b"),s("e260"),s("d3b7"),s("3ca3"),s("ddb0");function g(pe,me){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(pe)))){var ke=[],Le=!0,Ye=!1,ut=void 0;try{for(var St=pe[Symbol.iterator](),wt;!(Le=(wt=St.next()).done)&&(ke.push(wt.value),!(me&&ke.length===me));Le=!0);}catch(rn){Ye=!0,ut=rn}finally{try{!Le&&St.return!=null&&St.return()}finally{if(Ye)throw ut}}return ke}}s("a630"),s("fb6a"),s("b0c0"),s("25f0");function v(pe,me){(me==null||me>pe.length)&&(me=pe.length);for(var ke=0,Le=new Array(me);ke<me;ke++)Le[ke]=pe[ke];return Le}function y(pe,me){if(pe){if(typeof pe=="string")return v(pe,me);var ke=Object.prototype.toString.call(pe).slice(8,-1);if(ke==="Object"&&pe.constructor&&(ke=pe.constructor.name),ke==="Map"||ke==="Set")return Array.from(pe);if(ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ke))return v(pe,me)}}function b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E(pe,me){return h(pe)||g(pe,me)||y(pe,me)||b()}function w(pe){if(Array.isArray(pe))return v(pe)}function C(pe){if(typeof Symbol<"u"&&Symbol.iterator in Object(pe))return Array.from(pe)}function P(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
99
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(pe){return w(pe)||C(pe)||y(pe)||P()}var A=s("a352"),I=s.n(A);function T(pe){pe.parentElement!==null&&pe.parentElement.removeChild(pe)}function x(pe,me,ke){var Le=ke===0?pe.children[0]:pe.children[ke-1].nextSibling;pe.insertBefore(me,Le)}var R=s("dbf1");s("13d5"),s("4fad"),s("ac1f"),s("5319");function O(pe){var me=Object.create(null);return function(Le){var Ye=me[Le];return Ye||(me[Le]=pe(Le))}}var L=/-(\w)/g,F=O(function(pe){return pe.replace(L,function(me,ke){return ke.toUpperCase()})});s("5db7"),s("73d9");var W=["Start","Add","Remove","Update","End"],H=["Choose","Unchoose","Sort","Filter","Clone"],B=["Move"],$=[B,W,H].flatMap(function(pe){return pe}).map(function(pe){return"on".concat(pe)}),Y={manage:B,manageAndEmit:W,emit:H};function q(pe){return $.indexOf(pe)!==-1}s("caad"),s("2ca0");var U=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function M(pe){return U.includes(pe)}function K(pe){return["transition-group","TransitionGroup"].includes(pe)}function fe(pe){return["id","class","role","style"].includes(pe)||pe.startsWith("data-")||pe.startsWith("aria-")||pe.startsWith("on")}function he(pe){return pe.reduce(function(me,ke){var Le=E(ke,2),Ye=Le[0],ut=Le[1];return me[Ye]=ut,me},{})}function Re(pe){var me=pe.$attrs,ke=pe.componentData,Le=ke===void 0?{}:ke,Ye=he(Object.entries(me).filter(function(ut){var St=E(ut,2),wt=St[0];return St[1],fe(wt)}));return p(p({},Ye),Le)}function Q(pe){var me=pe.$attrs,ke=pe.callBackBuilder,Le=he(re(me));Object.entries(ke).forEach(function(ut){var St=E(ut,2),wt=St[0],rn=St[1];Y[wt].forEach(function(ft){Le["on".concat(ft)]=rn(ft)})});var Ye="[data-draggable]".concat(Le.draggable||"");return p(p({},Le),{},{draggable:Ye})}function re(pe){return Object.entries(pe).filter(function(me){var ke=E(me,2),Le=ke[0];return ke[1],!fe(Le)}).map(function(me){var ke=E(me,2),Le=ke[0],Ye=ke[1];return[F(Le),Ye]}).filter(function(me){var ke=E(me,2),Le=ke[0];return ke[1],!q(Le)})}s("c740");function X(pe,me){if(!(pe instanceof me))throw new TypeError("Cannot call a class as a function")}function ie(pe,me){for(var ke=0;ke<me.length;ke++){var Le=me[ke];Le.enumerable=Le.enumerable||!1,Le.configurable=!0,"value"in Le&&(Le.writable=!0),Object.defineProperty(pe,Le.key,Le)}}function we(pe,me,ke){return me&&ie(pe.prototype,me),pe}var Pe=function(me){var ke=me.el;return ke},G=function(me,ke){return me.__draggable_context=ke},J=function(me){return me.__draggable_context},de=(function(){function pe(me){var ke=me.nodes,Le=ke.header,Ye=ke.default,ut=ke.footer,St=me.root,wt=me.realList;X(this,pe),this.defaultNodes=Ye,this.children=[].concat(_(Le),_(Ye),_(ut)),this.externalComponent=St.externalComponent,this.rootTransition=St.transition,this.tag=St.tag,this.realList=wt}return we(pe,[{key:"render",value:function(ke,Le){var Ye=this.tag,ut=this.children,St=this._isRootComponent,wt=St?{default:function(){return ut}}:ut;return ke(Ye,Le,wt)}},{key:"updated",value:function(){var ke=this.defaultNodes,Le=this.realList;ke.forEach(function(Ye,ut){G(Pe(Ye),{element:Le[ut],index:ut})})}},{key:"getUnderlyingVm",value:function(ke){return J(ke)}},{key:"getVmIndexFromDomIndex",value:function(ke,Le){var Ye=this.defaultNodes,ut=Ye.length,St=Le.children,wt=St.item(ke);if(wt===null)return ut;var rn=J(wt);if(rn)return rn.index;if(ut===0)return 0;var ft=Pe(Ye[0]),Qe=_(St).findIndex(function(dt){return dt===ft});return ke<Qe?0:ut}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),pe})(),oe=s("8bbf");function be(pe,me){var ke=pe[me];return ke?ke():[]}function Ce(pe){var me=pe.$slots,ke=pe.realList,Le=pe.getKey,Ye=ke||[],ut=["header","footer"].map(function(dt){return be(me,dt)}),St=E(ut,2),wt=St[0],rn=St[1],ft=me.item;if(!ft)throw new Error("draggable element must have an item slot");var Qe=Ye.flatMap(function(dt,Ut){return ft({element:dt,index:Ut}).map(function(Qt){return Qt.key=Le(dt),Qt.props=p(p({},Qt.props||{}),{},{"data-draggable":!0}),Qt})});if(Qe.length!==Ye.length)throw new Error("Item slot must have only one child");return{header:wt,footer:rn,default:Qe}}function ue(pe){var me=K(pe),ke=!M(pe)&&!me;return{transition:me,externalComponent:ke,tag:ke?Object(oe.resolveComponent)(pe):me?oe.TransitionGroup:pe}}function ge(pe){var me=pe.$slots,ke=pe.tag,Le=pe.realList,Ye=pe.getKey,ut=Ce({$slots:me,realList:Le,getKey:Ye}),St=ue(ke);return new de({nodes:ut,root:St,realList:Le})}function _e(pe,me){var ke=this;Object(oe.nextTick)(function(){return ke.$emit(pe.toLowerCase(),me)})}function ce(pe){var me=this;return function(ke,Le){if(me.realList!==null)return me["onDrag".concat(pe)](ke,Le)}}function Be(pe){var me=this,ke=ce.call(this,pe);return function(Le,Ye){ke.call(me,Le,Ye),_e.call(me,pe,Le)}}var Ie=null,Me={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(me){return me}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Je=["update:modelValue","change"].concat(_([].concat(_(Y.manageAndEmit),_(Y.emit)).map(function(pe){return pe.toLowerCase()}))),Ze=Object(oe.defineComponent)({name:"draggable",inheritAttrs:!1,props:Me,emits:Je,data:function(){return{error:!1}},render:function(){try{this.error=!1;var me=this.$slots,ke=this.$attrs,Le=this.tag,Ye=this.componentData,ut=this.realList,St=this.getKey,wt=ge({$slots:me,tag:Le,realList:ut,getKey:St});this.componentStructure=wt;var rn=Re({$attrs:ke,componentData:Ye});return wt.render(oe.h,rn)}catch(ft){return this.error=!0,Object(oe.h)("pre",{style:{color:"red"}},ft.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&R.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var me=this;if(!this.error){var ke=this.$attrs,Le=this.$el,Ye=this.componentStructure;Ye.updated();var ut=Q({$attrs:ke,callBackBuilder:{manageAndEmit:function(rn){return Be.call(me,rn)},emit:function(rn){return _e.bind(me,rn)},manage:function(rn){return ce.call(me,rn)}}}),St=Le.nodeType===1?Le:Le.parentElement;this._sortable=new I.a(St,ut),this.targetDomElement=St,St.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var me=this.list;return me||this.modelValue},getKey:function(){var me=this.itemKey;return typeof me=="function"?me:function(ke){return ke[me]}}},watch:{$attrs:{handler:function(me){var ke=this._sortable;ke&&re(me).forEach(function(Le){var Ye=E(Le,2),ut=Ye[0],St=Ye[1];ke.option(ut,St)})},deep:!0}},methods:{getUnderlyingVm:function(me){return this.componentStructure.getUnderlyingVm(me)||null},getUnderlyingPotencialDraggableComponent:function(me){return me.__draggable_component__},emitChanges:function(me){var ke=this;Object(oe.nextTick)(function(){return ke.$emit("change",me)})},alterList:function(me){if(this.list){me(this.list);return}var ke=_(this.modelValue);me(ke),this.$emit("update:modelValue",ke)},spliceList:function(){var me=arguments,ke=function(Ye){return Ye.splice.apply(Ye,_(me))};this.alterList(ke)},updatePosition:function(me,ke){var Le=function(ut){return ut.splice(ke,0,ut.splice(me,1)[0])};this.alterList(Le)},getRelatedContextFromMoveEvent:function(me){var ke=me.to,Le=me.related,Ye=this.getUnderlyingPotencialDraggableComponent(ke);if(!Ye)return{component:Ye};var ut=Ye.realList,St={list:ut,component:Ye};if(ke!==Le&&ut){var wt=Ye.getUnderlyingVm(Le)||{};return p(p({},wt),St)}return St},getVmIndexFromDomIndex:function(me){return this.componentStructure.getVmIndexFromDomIndex(me,this.targetDomElement)},onDragStart:function(me){this.context=this.getUnderlyingVm(me.item),me.item._underlying_vm_=this.clone(this.context.element),Ie=me.item},onDragAdd:function(me){var ke=me.item._underlying_vm_;if(ke!==void 0){T(me.item);var Le=this.getVmIndexFromDomIndex(me.newIndex);this.spliceList(Le,0,ke);var Ye={element:ke,newIndex:Le};this.emitChanges({added:Ye})}},onDragRemove:function(me){if(x(this.$el,me.item,me.oldIndex),me.pullMode==="clone"){T(me.clone);return}var ke=this.context,Le=ke.index,Ye=ke.element;this.spliceList(Le,1);var ut={element:Ye,oldIndex:Le};this.emitChanges({removed:ut})},onDragUpdate:function(me){T(me.item),x(me.from,me.item,me.oldIndex);var ke=this.context.index,Le=this.getVmIndexFromDomIndex(me.newIndex);this.updatePosition(ke,Le);var Ye={element:this.context.element,oldIndex:ke,newIndex:Le};this.emitChanges({moved:Ye})},computeFutureIndex:function(me,ke){if(!me.element)return 0;var Le=_(ke.to.children).filter(function(wt){return wt.style.display!=="none"}),Ye=Le.indexOf(ke.related),ut=me.component.getVmIndexFromDomIndex(Ye),St=Le.indexOf(Ie)!==-1;return St||!ke.willInsertAfter?ut:ut+1},onDragMove:function(me,ke){var Le=this.move,Ye=this.realList;if(!Le||!Ye)return!0;var ut=this.getRelatedContextFromMoveEvent(me),St=this.computeFutureIndex(ut,me),wt=p(p({},this.context),{},{futureIndex:St}),rn=p(p({},me),{},{relatedContext:ut,draggedContext:wt});return Le(rn,ke)},onDragEnd:function(){Ie=null}}}),At=Ze;a.default=At}),fb6a:(function(i,a,s){var o=s("23e7"),l=s("861d"),u=s("e8b5"),c=s("23cb"),d=s("50c4"),p=s("fc6a"),h=s("8418"),g=s("b622"),v=s("1dde"),y=s("ae40"),b=v("slice"),E=y("slice",{ACCESSORS:!0,0:0,1:2}),w=g("species"),C=[].slice,P=Math.max;o({target:"Array",proto:!0,forced:!b||!E},{slice:function(A,I){var T=p(this),x=d(T.length),R=c(A,x),O=c(I===void 0?x:I,x),L,F,W;if(u(T)&&(L=T.constructor,typeof L=="function"&&(L===Array||u(L.prototype))?L=void 0:l(L)&&(L=L[w],L===null&&(L=void 0)),L===Array||L===void 0))return C.call(T,R,O);for(F=new(L===void 0?Array:L)(P(O-R,0)),W=0;R<O;R++,W++)R in T&&h(F,W,T[R]);return F.length=W,F}})}),fc6a:(function(i,a,s){var o=s("44ad"),l=s("1d80");i.exports=function(u){return o(l(u))}}),fdbc:(function(i,a){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(i,a,s){var o=s("4930");i.exports=o&&!Symbol.sham&&typeof Symbol.iterator=="symbol"})}).default})})(Mh)),Mh.exports}var kbe=xbe();const Cbe=jge(kbe),_be={class:"mb-4 d-flex align-center ga-3"},Tbe={class:"text-caption text-medium-emphasis"},Ibe={class:"d-flex align-center justify-space-between",style:{width:"100%"}},Pbe={class:"d-flex align-center"},Abe={class:"text-subtitle-1 font-weight-medium"},Rbe={class:"text-caption text-medium-emphasis"},Obe={class:"mb-4"},Nbe={class:"mb-4"},Dbe={key:0,class:"mb-3"},Lbe={class:"d-flex flex-wrap ga-2"},Fbe={key:1,class:"text-caption text-medium-emphasis mb-3"},$be={key:0,class:"text-center pa-8 text-medium-emphasis"},Mbe=je({__name:"FloorSettings",setup(e){const t=ns(),n=Xi(),r=vn(),i=Xt(),a=zt(Ht.AddOrUpdateFloorDialog),s=D(()=>n.floors),o=z([]);Ne(s,b=>{o.value=[...b]},{immediate:!0});const l=D({get:()=>o.value,set:b=>{o.value=b}});function u(b){return r.printers.find(w=>w.id===b)?.name||`Printer ${b}`}function c(b){t.push({path:"/printer-grid",query:{floor:b.toString()}})}async function d(){await a.openDialog()}async function p(b,E){E.trim()&&(await n.updateFloorName({floorId:b,name:E.trim()}),i.info("Floor name updated"))}async function h(b,E){!E||E<0||(await n.updateFloorOrder({floorId:b,order:E}),i.info("Floor order updated"))}async function g(b){confirm("Are you sure you want to delete this floor? Printers will not be deleted.")&&(await n.deleteFloor(b),i.info("Floor deleted"))}async function v(b,E){await n.deletePrinterFromFloor({floorId:b,printerId:E}),i.info("Printer removed from floor")}async function y(b){const{oldIndex:E,newIndex:w}=b;if(E===w)return;const C=[];if(o.value.forEach((P,_)=>{const A=_+1;P.order!==A&&C.push(n.updateFloorOrder({floorId:P.id,order:A}))}),C.length>0)try{await Promise.all(C),i.info("Floor order updated")}catch{o.value=[...s.value],i.error("Failed to update floor order")}}return(b,E)=>(N(),Z(Ve,null,{default:m(()=>[f(qe,null,{default:m(()=>[f(sr,{title:"Manage Floors",usecols:!1},{default:m(()=>[S("div",_be,[f(te,{color:"primary","prepend-icon":"add",onClick:E[0]||(E[0]=w=>d())},{default:m(()=>[...E[2]||(E[2]=[k(" Create New Floor ",-1)])]),_:1}),S("div",Tbe,[f(j,{size:"small",class:"mr-1"},{default:m(()=>[...E[3]||(E[3]=[k("drag_indicator",-1)])]),_:1}),E[4]||(E[4]=k(" Drag floors to reorder them ",-1))])]),f(ne(Cbe),{modelValue:l.value,"onUpdate:modelValue":E[1]||(E[1]=w=>l.value=w),"item-key":"id",handle:".drag-handle",onEnd:y},{item:m(({element:w})=>[f(Jc,{variant:"accordion",class:"mb-2"},{default:m(()=>[f(Xc,null,{default:m(()=>[f(Yc,null,{default:m(()=>[S("div",Ibe,[S("div",Pbe,[f(j,{class:"drag-handle mr-2",style:{cursor:"move"}},{default:m(()=>[...E[5]||(E[5]=[k("drag_indicator",-1)])]),_:1}),f(j,{class:"mr-3"},{default:m(()=>[...E[6]||(E[6]=[k("layers",-1)])]),_:1}),S("div",null,[S("div",Abe,V(w.name),1),S("div",Rbe," Floor Order #"+V(w.order)+" • "+V(w.printers.length)+" printer(s) assigned ",1)])])])]),_:2},1024),f(Kc,null,{default:m(()=>[S("div",Obe,[f(ct,null,{default:m(()=>[f(Ae,{cols:"6"},{default:m(()=>[f(yt,{"model-value":w.name,label:"Floor Name",variant:"outlined",density:"compact","hide-details":"",onBlur:C=>p(w.id,C.target.value)},null,8,["model-value","onBlur"])]),_:2},1024),f(Ae,{cols:"6"},{default:m(()=>[f(yt,{"model-value":w.order,label:"Floor Order",type:"number",variant:"outlined",density:"compact","hide-details":"",onBlur:C=>h(w.id,Number(C.target.value))},null,8,["model-value","onBlur"])]),_:2},1024)]),_:2},1024)]),S("div",Nbe,[f(te,{color:"primary",variant:"tonal","prepend-icon":"grid_on",onClick:C=>c(w.id)},{default:m(()=>[...E[7]||(E[7]=[k(" Manage Printers on Grid ",-1)])]),_:1},8,["onClick"])]),f(et,{class:"my-3"}),w.printers.length>0?(N(),le("div",Dbe,[E[9]||(E[9]=S("div",{class:"text-subtitle-2 mb-2"},"Assigned Printers:",-1)),S("div",Lbe,[(N(!0),le(De,null,Vt(w.printers,C=>(N(),Z(He,{key:C.printerId,closable:"",size:"small","onClick:close":P=>v(w.id,C.printerId)},{default:m(()=>[f(j,{start:"",size:"x-small"},{default:m(()=>[...E[8]||(E[8]=[k("print",-1)])]),_:1}),k(" "+V(u(C.printerId))+" ",1),f(He,{size:"x-small",variant:"flat",class:"ml-1"},{default:m(()=>[k(V(C.x)+","+V(C.y),1)]),_:2},1024)]),_:2},1032,["onClick:close"]))),128))])])):(N(),le("div",Fbe," No printers assigned to this floor yet. ")),f(et,{class:"my-3"}),f(te,{color:"error",variant:"outlined",size:"small","prepend-icon":"delete",onClick:C=>g(w.id)},{default:m(()=>[...E[10]||(E[10]=[k(" Delete Floor ",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:1},8,["modelValue"]),s.value.length?se("",!0):(N(),le("div",$be,[f(j,{size:"large",class:"mb-2"},{default:m(()=>[...E[11]||(E[11]=[k("layers_clear",-1)])]),_:1}),E[12]||(E[12]=S("div",null,'No floors created yet. Click "Create New Floor" to get started.',-1))]))]),_:1})]),_:1})]),_:1}))}}),Vbe=je({__name:"EmergencyCommands",setup(e){const t=vn(),n=z(!1),r=D(()=>t.printers.some(u=>Tx(u.printerType))),i=D(()=>t.printers.every(u=>!u.enabled)),a=D(()=>t.printers.every(u=>!!u.enabled));async function s(u){if(confirm("Are you sure you want to toggle all printers?")){n.value=!0;try{await kf.batchToggleEnabled(t.printers.map(c=>c.id),u)}finally{n.value=!1}}}async function o(){if(confirm("Are you sure you want to connect all USBs?"))try{await kf.batchConnectUsb(t.printers.map(u=>u.id))}finally{n.value=!1}}async function l(){confirm("Are you sure you want to connect all sockets?")&&(n.value=!0,await kf.batchConnectSocket(t.printers.map(u=>u.id)),n.value=!1)}return(u,c)=>(N(),Z(Ve,null,{default:m(()=>[f(qe,null,{default:m(()=>[f(sr,{title:"Batch disabling",tooltip:"Disable all printers in batch (will not affect print)"},{default:m(()=>[f(te,{disabled:n.value||i.value,color:"primary",onClick:c[0]||(c[0]=d=>s(!1))},{default:m(()=>[...c[2]||(c[2]=[k(" Batch disable ",-1)])]),_:1},8,["disabled"]),n.value?(N(),Z(Bn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):se("",!0),i.value?(N(),Z(j,{key:1,class:"ml-2",color:"warning"},{default:m(()=>[...c[3]||(c[3]=[k(" warning ",-1)])]),_:1})):se("",!0)]),_:1}),f(et),f(sr,{title:"Batch enabling",tooltip:"Enabling all printers in batch (will not affect print and it will skip printers in maintenance mode)"},{default:m(()=>[f(te,{disabled:n.value||a.value,color:"primary",onClick:c[1]||(c[1]=d=>s(!0))},{default:m(()=>[...c[4]||(c[4]=[k(" Batch enable ",-1)])]),_:1},8,["disabled"]),n.value?(N(),Z(Bn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):se("",!0),a.value?(N(),Z(j,{key:1,class:"ml-2",color:"warning"},{default:m(()=>[...c[5]||(c[5]=[k(" warning ",-1)])]),_:1})):se("",!0)]),_:1}),r.value?(N(),Z(et,{key:0})):se("",!0),r.value?(N(),Z(sr,{key:1,title:"Batch USB connect",tooltip:"Connect all USB devices (OctoPrint only)"},{default:m(()=>[f(te,{disabled:n.value||i.value,color:"primary",onClick:o},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...c[6]||(c[6]=[k("usb",-1)])]),_:1}),c[7]||(c[7]=k(" Connect USBs ",-1))]),_:1},8,["disabled"]),n.value?(N(),Z(Bn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):se("",!0)]),_:1})):se("",!0),f(sr,{title:"Batch Socket connect",tooltip:"Connect all Network Connections"},{default:m(()=>[f(te,{disabled:n.value||i.value,color:"primary",onClick:l},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...c[8]||(c[8]=[k("hub",-1)])]),_:1}),c[9]||(c[9]=k(" Refresh Network Connections ",-1))]),_:1},8,["disabled"]),n.value?(N(),Z(Bn,{key:0,class:"ml-2",indeterminate:"",size:"30",width:"4"})):se("",!0)]),_:1})]),_:1})]),_:1}))}}),Bbe={class:"text-center"},Ube=je({__name:"NotFoundView",setup(e){const t=ns(),n=()=>{t.go(-1)};return(r,i)=>(N(),Z(ts,null,{default:m(()=>[i[6]||(i[6]=S("h2",{class:"text-center mt-lg-12"},"This page was not found.",-1)),i[7]||(i[7]=S("h1",{class:"text-center"},": (",-1)),i[8]||(i[8]=S("br",null,null,-1)),S("h4",Bbe,[f(te,{class:"align-center",color:"primary",to:"/",variant:"elevated"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...i[1]||(i[1]=[k("home",-1)])]),_:1}),i[2]||(i[2]=k(" Go home ",-1))]),_:1}),i[5]||(i[5]=S("span",{class:"pa-5"}," or ",-1)),f(te,{class:"align-center",variant:"elevated",onClick:i[0]||(i[0]=a=>n())},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...i[3]||(i[3]=[k("arrow_left",-1)])]),_:1}),i[4]||(i[4]=k(" Go back ",-1))]),_:1})])]),_:1}))}}),jbe={key:0},zbe={key:1},Hbe={key:2},Wbe={key:3},Gbe={key:4},qbe=je({__name:"PermissionDenied",setup(e){const t=Rd(),n=D(()=>t.query);return(r,i)=>(N(),Z(ts,{"fill-height":"",fluid:""},{default:m(()=>[f(gV,{color:"primary"},{default:m(()=>[f(xu,{class:"text-uppercase text-white"},{default:m(()=>[...i[0]||(i[0]=[S("span",{class:"font-weight-light"}," FDM ",-1),S("strong",null," Monster ",-1)])]),_:1})]),_:1}),i[11]||(i[11]=S("img",{alt:"FDM Monster Background",class:"grid-bg-img align-content-center",src:fk,style:{opacity:"0.06"}},null,-1)),f(tge,{"align-center":"",column:"","justify-center":""},{default:m(()=>[f(Ve,{class:"flex align-center justify-center pa-lg-16 pa-sm-10",style:{width:"80%"}},{default:m(()=>[f(st,null,{default:m(()=>[f(j,{class:"mr-4",size:"50"},{default:m(()=>[...i[1]||(i[1]=[k(" lock ",-1)])]),_:1}),i[2]||(i[2]=S("h3",null,"Permission Denied",-1))]),_:1}),f(OF,{class:"mt-1"},{default:m(()=>[...i[3]||(i[3]=[k(" You do not have permission to access a specific resource on this page. ",-1)])]),_:1}),n.value?(N(),Z(qe,{key:0},{default:m(()=>[n.value.page?(N(),le("div",jbe,[i[4]||(i[4]=k(" Page: ",-1)),S("strong",null,V(n.value?.page),1)])):se("",!0),n.value.permissions?(N(),le("div",zbe,[i[5]||(i[5]=k(" Required permission(s): ",-1)),(N(!0),le(De,null,Vt(n.value.permissions,a=>(N(),le("strong",{key:a},V(a),1))),128))])):se("",!0),n.value.roles?(N(),le("div",Hbe,[i[6]||(i[6]=k(" Usable roles: ",-1)),S("strong",null,V(n.value.roles?.join(", ")),1)])):se("",!0),n.value.url?(N(),le("div",Wbe,[i[7]||(i[7]=k(" Problematic API path: ",-1)),S("strong",null,V(n.value.url),1)])):se("",!0),n.value.error?(N(),le("div",Gbe,[i[8]||(i[8]=k(" Error: ",-1)),S("strong",null,V(n.value.error),1)])):se("",!0)]),_:1})):se("",!0),f(Wt,{class:"mt-6"},{default:m(()=>[f(te,{class:"align-center",color:"primary",to:"/",variant:"elevated"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...i[9]||(i[9]=[k("home",-1)])]),_:1}),i[10]||(i[10]=k(" Go home ",-1))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}}),T4=je({__name:"Logo",setup(e){return(t,n)=>(N(),Z(ai,{src:ne(ok),class:"shrink mr-1 pt-3 ml-1",contain:"",style:{opacity:"0.85"},width:"150"},null,8,["src"]))}}),Kbe=je({__name:"LoginForm",setup(e){const t=Rs(),n=z(""),r=z(""),i=z(!1),a=z(""),s=ns(),o=Rd(),l=z(!1),u=Si("auth:login"),c=Xt(),d=D(()=>(r.value??"")?.length<3||(a.value??"").length<3);Nt(async()=>{if(t.loadTokens(),await t.checkAuthenticationRequirements(),t.loginRequired===!1){if(console.debug("LoginView, no login required, checking redirect:",o.query.redirect),o.query.redirect)return console.debug("LoginView, redirecting to:",o.query.redirect),u.emit(!0),await g();console.debug("LoginView, no redirect query, emitting login event only"),u.emit(!0);return}if(!t.hasRefreshToken)return;await t.verifyOrRefreshLoginOnceOrLogout()&&await g()});async function p(){return await s.push({name:pn.Registration})}async function h(){try{l.value=!0,await t.login(r.value,a.value),t.lastLogoutReason=null,a.value="",l.value=!1}catch(v){if(l.value=!1,v?.response?.status===401){a.value="";const y=v?.response?.data?.reasonCode,b=eE(y);y===$i.AccountNotVerified?c.error(b,"Please ask your administrator to verify your account and try again."):y===$i.PasswordChangeRequired&&c.error(b,"Your password needs to be changed. This feature is sadly not finished"),n.value=b;return}c.openErrorMessage({title:"Error logging in",subtitle:"Please test your connection and try again."}),n.value="Error logging in - status code "+v?.response?.status,a.value="";return}return n.value="",u.emit(!0),await g()}async function g(){const v=o.query.redirect;if(v){console.debug("[LoginForm] Redirecting to ",v),await s.push({path:v});return}else{console.debug("[LoginForm] Redirecting to home"),await s.push({name:pn.Home});return}}return(v,y)=>(N(),Z(Ve,{class:"pa-4",elevation:"10",style:{"border-radius":"10px"}},{default:m(()=>[f(qe,null,{default:m(()=>[f(dy,null,{default:m(()=>[y[7]||(y[7]=S("label",null," Username ",-1)),f(yt,{modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=b=>r.value=b),"prepend-icon":"person",autofocus:"",label:"Username",name:"login",type:"text",variant:"underlined",onKeyup:y[1]||(y[1]=ql(b=>d.value||h(),["enter"]))},null,8,["modelValue"]),f(yt,{modelValue:a.value,"onUpdate:modelValue":y[2]||(y[2]=b=>a.value=b),"append-inner-icon":i.value?"visibility_off":"visibility","onClick:appendInner":y[3]||(y[3]=b=>i.value=!i.value),type:i.value?"text":"password",label:"Password",name:"password",password:"","prepend-icon":"lock",variant:"underlined",onKeyup:y[4]||(y[4]=ql(b=>d.value||h(),["enter"]))},null,8,["modelValue","append-inner-icon","type"]),n.value?(N(),Z(kt,{key:0,class:"mt-6",color:"error",density:"compact",variant:"outlined"},{default:m(()=>[k(V(n.value),1)]),_:1})):se("",!0),ne(t).lastLogoutReason?(N(),Z(kt,{key:1,class:"mt-6",color:"error-darken-1",density:"compact",variant:"outlined"},{default:m(()=>[k(" Reason for automatic logout: "+V(ne(t).lastLogoutReason),1)]),_:1})):se("",!0)]),_:1})]),_:1}),f(Wt,null,{default:m(()=>[f(te,{loading:l.value,class:"pa-4",color:"primary",size:"lg",variant:"flat",style:{width:"100%"},onClick:y[5]||(y[5]=b=>h())},{default:m(()=>[...y[8]||(y[8]=[k(" Login ",-1)])]),_:1},8,["loading"])]),_:1}),f(Wt,null,{default:m(()=>[f(te,{disabled:!ne(t).registration,class:"pa-4",size:"lg",variant:"flat",style:{width:"100%"},onClick:y[6]||(y[6]=b=>p())},{default:m(()=>[k(" Register new account "+V(ne(t).registration?"":"(not enabled)")+" ",1),f(j,{class:"pl-5",icon:"right"})]),_:1},8,["disabled"])]),_:1})]),_:1}))}}),Ybe={class:"d-flex align-center",style:{"min-height":"calc(100vh - 148px)"}},Xbe={class:"pt-6 pl-6 d-flex flex-column align-center"},Jbe=je({__name:"LoginView",setup(e){return(t,n)=>{const r=T4;return N(),Z(ct,{class:"position-relative","no-gutters":""},{default:m(()=>[f(Ae,{cols:"12",lg:"12"},{default:m(()=>[f(ts,null,{default:m(()=>[S("div",Ybe,[f(ct,{justify:"center",class:"align-content-center"},{default:m(()=>[S("div",Xbe,[f(r),f(xu,{class:"text-uppercase text-red"},{default:m(()=>[...n[0]||(n[0]=[S("strong",null," FDM  ",-1),S("strong",null," Monster ",-1)])]),_:1}),f(xu,{class:"mt-lg-6 mt-sm-5 mb-md-5"},{default:m(()=>[...n[1]||(n[1]=[k(" Welcome back! Please enter your details ",-1)])]),_:1})]),f(Ae,{cols:"12",md:"12"},{default:m(()=>[f(Kbe,{class:"login-card"})]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1})}}}),Qbe=je({__name:"RegistrationForm",setup(e){const t=Rs(),n=ns(),r=z(""),i=z(""),a=z(!1),s=z(!1),o=z(""),l=z(""),u=z(!1),c=Xt(),d=D(()=>(i.value??"")?.length<3||(o.value??"").length<3||o.value!==l.value);Nt(async()=>{await t.logout(),await t.checkAuthenticationRequirements(),t.registration||(c.info("Registration is disabled, please contact your administrator"),await n.push({name:pn.Login}))});async function p(){return await n.push({name:pn.Login})}async function h(){try{u.value=!0,await xl.registerAccount(i.value,o.value),u.value=!1}catch(g){if(u.value=!1,g?.response?.status===401){r.value="Invalid credentials";return}c.openErrorMessage({title:"Error registering account",subtitle:"Please test your connection and try again."});return}r.value="",c.info("Account created, please login"),await p()}return(g,v)=>(N(),Z(Ve,{class:"pa-4",elevation:"10",style:{"border-radius":"10px"}},{default:m(()=>[f(qe,null,{default:m(()=>[f(dy,null,{default:m(()=>[v[8]||(v[8]=S("label",null," Username ",-1)),f(yt,{modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=y=>i.value=y),rules:[y=>!!y||"Username is required",y=>(y?.length??0)>=3||"Username must be of length 3 or greater",y=>!y.toLowerCase().includes("admin")||"Username may not contain the word admin",y=>!y.toLowerCase().includes("root")||"Username may not contain the word root",y=>y.toLowerCase()!=="demo"||"Username may not equal the word demo"],"prepend-icon":"person",autofocus:"",label:"Username",name:"login",type:"text",variant:"underlined"},null,8,["modelValue","rules"]),f(yt,{modelValue:o.value,"onUpdate:modelValue":v[1]||(v[1]=y=>o.value=y),"append-inner-icon":a.value?"visibility_off":"visibility","onClick:appendInner":v[2]||(v[2]=y=>a.value=!a.value),type:a.value?"text":"password",rules:[y=>!!y||"Password is required",y=>!!y&&y?.length>=8||"Password must be of length 8 or greater"],label:"Password",name:"password",password:"","prepend-icon":"lock",variant:"underlined"},null,8,["modelValue","append-inner-icon","type","rules"]),f(yt,{modelValue:l.value,"onUpdate:modelValue":v[3]||(v[3]=y=>l.value=y),"append-inner-icon":s.value?"visibility_off":"visibility","onClick:appendInner":v[4]||(v[4]=y=>s.value=!s.value),type:s.value?"text":"password",rules:[y=>!!y||"Repeated password is required",y=>y===o.value||"Passwords are not equal"],label:"Confirm Password",name:"password2",password:"","prepend-icon":"lock",variant:"underlined",onKeyup:v[5]||(v[5]=ql(y=>d.value||h(),["enter"]))},null,8,["modelValue","append-inner-icon","type","rules"]),r.value?(N(),Z(kt,{key:0,class:"mt-6",color:"error",density:"compact",variant:"outlined"},{default:m(()=>[k(V(r.value),1)]),_:1})):se("",!0)]),_:1})]),_:1}),f(Wt,null,{default:m(()=>[f(te,{loading:u.value,class:"pa-4",color:"primary",size:"lg",variant:"flat",style:{width:"100%"},onClick:v[6]||(v[6]=y=>h())},{default:m(()=>[...v[9]||(v[9]=[k(" Register account ",-1)])]),_:1},8,["loading"])]),_:1}),f(Wt,null,{default:m(()=>[f(te,{class:"pa-4",size:"lg",variant:"flat",style:{width:"100%"},onClick:v[7]||(v[7]=y=>p())},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...v[10]||(v[10]=[k("arrow_back",-1)])]),_:1}),v[11]||(v[11]=k(" Back to Login ",-1))]),_:1})]),_:1})]),_:1}))}}),Zbe={class:"d-flex align-center",style:{"min-height":"calc(100vh - 148px)"}},e1e={class:"pt-6 pl-6 d-flex flex-column align-center"},t1e=je({__name:"RegistrationView",setup(e){return(t,n)=>{const r=T4;return N(),Z(ct,{class:"position-relative","no-gutters":""},{default:m(()=>[f(Ae,{cols:"12",lg:"12"},{default:m(()=>[f(ts,null,{default:m(()=>[S("div",Zbe,[f(ct,{justify:"center",class:"align-content-center"},{default:m(()=>[S("div",e1e,[f(r),f(xu,{class:"text-uppercase text-red"},{default:m(()=>[...n[0]||(n[0]=[S("strong",null," FDM  ",-1),S("strong",null," Monster ",-1)])]),_:1}),f(xu,{class:"mt-lg-6 mt-sm-5 mb-md-5"},{default:m(()=>[...n[1]||(n[1]=[k(" Welcome! Please register your account ",-1)])]),_:1})]),f(Ae,{cols:"12",md:"12"},{default:m(()=>[f(Qbe,{class:"registration-card"})]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1})}}}),n1e={class:"camera-grid-view"},r1e={class:"pa-4"},i1e={class:"d-flex align-center ga-2"},s1e={class:"pa-4"},a1e={key:0,class:"d-flex justify-center align-center py-12"},o1e={class:"empty-tile-content"},l1e={class:"flex-grow-1 text-truncate"},u1e={class:"d-flex align-center gap-2 mb-1"},c1e={class:"text-subtitle-2 font-weight-bold text-truncate"},d1e={key:0,class:"text-caption text-medium-emphasis text-truncate"},f1e=["src","onError","onLoad"],p1e={key:1,class:"camera-loading"},m1e={key:2,class:"camera-unavailable"},h1e=je({__name:"CameraGridView",setup(e){const t=Rd(),n=vn(),r=zt(Ht.AddOrUpdateCameraDialog),i=fm(),{selectedTags:a,selectedPrinterTypes:s,tags:o,loadTags:l,matchesPrinter:u}=hl(),c=z(""),d=z(null),p=z(!1),h=Dn({}),g=Dn({});Nt(async()=>{await l();const B=t.query.printer;B&&(d.value=Number(B))});const y=Ad({queryKey:["cameraStream"],queryFn:async()=>(await ou.listCameraStreams()).map($=>({printer:n.printers.find(Y=>Y.id===$.printerId),cameraStream:$}))}),b=Bie({mutationFn:B=>ou.deleteCameraStream(B),onSuccess:()=>y.refetch()}),E=D(()=>{const B=[{title:"All Cameras",value:null},{title:"Unassigned Cameras",value:-1}];return n.printers.forEach($=>{B.push({title:$.name,value:$.id})}),B}),w=D(()=>y.data.value?y.data.value.filter(B=>{const $=!c.value||B.cameraStream.name?.toLowerCase().includes(c.value.toLowerCase())||B.printer?.name?.toLowerCase().includes(c.value.toLowerCase()),Y=d.value===null||d.value===-1&&!B.cameraStream.printerId||B.cameraStream.printerId===d.value,q=B.printer?u(B.printer):a.value.length===0&&s.value.length===0,U=!p.value||h[B.cameraStream.id];return $&&Y&&q&&U}):[]),C=D(()=>Object.values(h).filter(Boolean).length),P=D(()=>d.value!==null&&d.value!==void 0||p.value||a.value.length>0||s.value.length>0),_=D(()=>{let B=0;return d.value!==null&&d.value!==void 0&&B++,p.value&&B++,a.value.length>0&&B++,s.value.length>0&&B++,B});function A(B){B&&(h[B]=!0,g[B]=!1)}function I(B){B&&(h[B]=!1,g[B]=!1)}Ne(()=>y.data.value,B=>{B&&B.forEach($=>{$.cameraStream.id&&g[$.cameraStream.id]===void 0&&(g[$.cameraStream.id]=!0)})},{immediate:!0});function T(){d.value=null,p.value=!1,a.value=[],s.value=[]}function x(){r.openDialog({addOrUpdate:"add"})}function R(B){B&&r.openDialog({addOrUpdate:"update",cameraId:B})}function O(B){const $=B.cameraStream.name||B.printer?.name||"this camera";confirm(`Are you sure you want to delete ${$}?`)&&L(B.cameraStream.id)}function L(B){B&&b.mutateAsync(B)}function F(B){i.openFileExplorer(B)}function W(B){return{aspectRatio:(B.aspectRatio||"16:9").replace(":"," / ")}}function H(B){const $=[];B.rotationClockwise&&$.push(`rotate(${B.rotationClockwise}deg)`);const Y=B.flipHorizontal?-1:1,q=B.flipVertical?-1:1;return(Y!==1||q!==1)&&$.push(`scale(${Y}, ${q})`),$.length>0?{transform:$.join(" ")}:{}}return(B,$)=>(N(),le("div",n1e,[S("div",r1e,[f(ct,{align:"center"},{default:m(()=>[f(Ae,{cols:"12",md:"6"},{default:m(()=>[S("div",i1e,[f(te,{color:"primary",variant:"elevated",onClick:$[0]||($[0]=Y=>x())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...$[8]||($[8]=[k("add",-1)])]),_:1}),$[9]||($[9]=k(" Add Camera ",-1))]),_:1}),f(li,{"close-on-content-click":!1},{activator:m(({props:Y})=>[f(te,ve(Y,{variant:"outlined",color:P.value?"primary":void 0}),{default:m(()=>[f(j,{start:""},{default:m(()=>[...$[10]||($[10]=[k("filter_list",-1)])]),_:1}),$[11]||($[11]=k(" Filter ",-1)),P.value?(N(),Z(Od,{key:0,color:"primary",content:_.value,inline:"",class:"ml-2"},null,8,["content"])):se("",!0)]),_:1},16,["color"])]),default:m(()=>[f(Ve,{"min-width":"350"},{default:m(()=>[f(qe,null,{default:m(()=>[f(Sr,{modelValue:d.value,"onUpdate:modelValue":$[1]||($[1]=Y=>d.value=Y),items:E.value,label:"Filter by Printer","prepend-inner-icon":"print",variant:"outlined",density:"compact",clearable:"","hide-details":"",class:"mb-3","onClick:clear":$[2]||($[2]=Y=>d.value=null)},null,8,["modelValue","items"]),f(Bu,{modelValue:ne(a),"onUpdate:modelValue":$[3]||($[3]=Y=>Tt(a)?a.value=Y:null),tags:ne(o),label:"Filter by Tags",class:"mb-3"},null,8,["modelValue","tags"]),f(Uu,{modelValue:ne(s),"onUpdate:modelValue":$[4]||($[4]=Y=>Tt(s)?s.value=Y:null),label:"Filter by Type",class:"mb-3"},null,8,["modelValue"]),f(Nn,{modelValue:p.value,"onUpdate:modelValue":$[5]||($[5]=Y=>p.value=Y),label:"Show only unavailable cameras",density:"compact","hide-details":""},null,8,["modelValue"])]),_:1}),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",size:"small",onClick:T},{default:m(()=>[...$[12]||($[12]=[k(" Clear All ",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),f(yt,{modelValue:c.value,"onUpdate:modelValue":$[6]||($[6]=Y=>c.value=Y),placeholder:"Search cameras by name...","prepend-inner-icon":"search",variant:"outlined",density:"compact",clearable:"","hide-details":"",class:"flex-grow-1"},null,8,["modelValue"])])]),_:1}),f(Ae,{cols:"12",md:"6",class:"text-md-right"},{default:m(()=>[f(He,{class:"mr-2",color:"primary"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...$[13]||($[13]=[k("videocam",-1)])]),_:1}),k(" "+V(w.value.length)+" cameras ",1)]),_:1}),C.value>0?(N(),Z(He,{key:0,color:"error"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...$[14]||($[14]=[k("error_outline",-1)])]),_:1}),k(" "+V(C.value)+" unavailable ",1)]),_:1})):se("",!0)]),_:1})]),_:1})]),S("div",s1e,[ne(y).isLoading.value?(N(),le("div",a1e,[f(Bn,{indeterminate:"",color:"primary",size:"64"})])):ne(y).data.value?.length&&!w.value.length?(N(),Z(Ve,{key:1,variant:"outlined",class:"text-center py-12"},{default:m(()=>[f(j,{size:"64",color:"medium-emphasis",class:"mb-4"},{default:m(()=>[...$[15]||($[15]=[k(" search_off ",-1)])]),_:1}),$[16]||($[16]=S("div",{class:"text-h6 text-medium-emphasis mb-2"}," No cameras match your filters ",-1)),$[17]||($[17]=S("div",{class:"text-body-2 text-medium-emphasis mb-4"}," Try adjusting your search or filters ",-1))]),_:1})):(N(),Z(ct,{key:2},{default:m(()=>[ne(y).data.value?.length?se("",!0):(N(),Z(Ae,{key:0,cols:"12",sm:"6",md:"4",lg:"3",xl:"2"},{default:m(()=>[f(Ve,{class:"camera-card empty-camera-tile",elevation:"2",rounded:"lg",hover:"",onClick:$[7]||($[7]=Y=>x())},{default:m(()=>[S("div",o1e,[f(Sn,{color:"primary",size:"64",class:"mb-4"},{default:m(()=>[f(j,{size:"32"},{default:m(()=>[...$[18]||($[18]=[k("add_a_photo",-1)])]),_:1})]),_:1}),$[21]||($[21]=S("div",{class:"text-h6 font-weight-bold mb-2"}," Get Started ",-1)),$[22]||($[22]=S("div",{class:"text-body-2 text-medium-emphasis mb-4 px-4"}," Add your first camera stream to monitor your 3D printers ",-1)),f(te,{color:"primary",variant:"elevated",size:"small"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...$[19]||($[19]=[k("add",-1)])]),_:1}),$[20]||($[20]=k(" Add Camera ",-1))]),_:1})])]),_:1})]),_:1})),(N(!0),le(De,null,Vt(w.value,Y=>(N(),Z(Ae,{key:Y.cameraStream.id,cols:"12",sm:"6",md:"4",lg:"3",xl:"2"},{default:m(()=>[f(Ve,{class:"camera-card",elevation:"2",rounded:"lg"},{default:m(()=>[f(st,{class:"d-flex align-center pa-3"},{default:m(()=>[f(Sn,{color:Y.cameraStream.printerId?"primary":"secondary",size:"32",class:"mr-2"},{default:m(()=>[f(j,{size:"20"},{default:m(()=>[k(V(Y.cameraStream.printerId?"print":"videocam"),1)]),_:2},1024)]),_:2},1032,["color"]),S("div",l1e,[S("div",u1e,[S("div",c1e,V(Y.cameraStream.name||Y.printer?.name||"Camera"),1)]),Y.printer?(N(),le("div",d1e,[k(V(Y.printer.name)+" ",1),Y.printer?(N(),Z(He,{key:0,size:"x-small",color:"primary",variant:"tonal"},{default:m(()=>[k(V(ne(us)(Y.printer.printerType)),1)]),_:2},1024)):se("",!0)])):se("",!0)])]),_:2},1024),S("div",{class:"camera-stream-container",style:We(W(Y.cameraStream))},[Y.cameraStream.id?dn((N(),le("img",{key:0,alt:"Camera stream",src:Y.cameraStream.streamURL,class:"camera-stream",style:We(H(Y.cameraStream)),onError:q=>A(Y.cameraStream.id),onLoad:q=>I(Y.cameraStream.id)},null,44,f1e)),[[ci,Y.cameraStream.id&&!h[Y.cameraStream.id]&&!g[Y.cameraStream.id]]]):se("",!0),Y.cameraStream.id&&g[Y.cameraStream.id]&&!h[Y.cameraStream.id]?(N(),le("div",p1e,[f(Bn,{indeterminate:"",color:"primary",size:"48"}),$[23]||($[23]=S("div",{class:"text-caption mt-2"},"Connecting...",-1))])):se("",!0),Y.cameraStream.id&&h[Y.cameraStream.id]?(N(),le("div",m1e,[f(j,{size:"48",color:"error"},{default:m(()=>[...$[24]||($[24]=[k("videocam_off",-1)])]),_:1}),$[25]||($[25]=S("div",{class:"text-body-2 font-weight-bold mt-2"},"Camera stream unavailable",-1)),$[26]||($[26]=S("div",{class:"text-caption text-medium-emphasis mt-1"},"Unable to connect to stream",-1))])):se("",!0)],4),f(Wt,{class:"pa-3"},{default:m(()=>[f(te,{variant:"text",size:"small",onClick:q=>R(Y.cameraStream.id)},{default:m(()=>[f(j,{start:""},{default:m(()=>[...$[27]||($[27]=[k("edit",-1)])]),_:1}),$[28]||($[28]=k(" Edit ",-1))]),_:1},8,["onClick"]),Y.printer?(N(),Z(te,{key:0,variant:"text",size:"small",color:"primary",onClick:q=>F(Y.printer)},{default:m(()=>[f(j,{start:""},{default:m(()=>[...$[29]||($[29]=[k("folder",-1)])]),_:1}),$[30]||($[30]=k(" Printer Files ",-1))]),_:1},8,["onClick"])):se("",!0),f(ht),f(te,{variant:"text",size:"small",color:"error",onClick:q=>O(Y)},{default:m(()=>[f(j,{start:""},{default:m(()=>[...$[31]||($[31]=[k("delete",-1)])]),_:1}),$[32]||($[32]=k(" Delete ",-1))]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}))])]))}}),g1e=En(h1e,[["__scopeId","data-v-22fcbe83"]]),v1e="/img/OIG.jpg";class FA extends di{static async postFirstTimeSetup(t){const n=Se.completeFirstTimeSetupRoute;return await this.post(n,t)}static async postYamlImport(t){const n=new FormData;return n.append("file",t),await this.postUpload("api/v2/first-time-setup/yaml-import",n,{})}}const y1e={class:"d-flex align-start",style:{gap:"12px"}},b1e={class:"text-body-2 mb-3"},S1e={class:"d-flex gap-2 flex-wrap"},m1=je({__name:"HelpBanner",props:{message:{default:"Need help getting started?"},buttonSize:{default:"small"},githubVariant:{default:"outlined"},githubColor:{default:"default"},discordVariant:{default:"elevated"}},setup(e){return(t,n)=>(N(),le("div",y1e,[f(j,{color:"info"},{default:m(()=>[...n[0]||(n[0]=[k("help_outline",-1)])]),_:1}),S("div",null,[S("div",b1e,V(e.message),1),S("div",S1e,[f(dk,{size:e.buttonSize,color:e.githubColor,variant:e.githubVariant},null,8,["size","color","variant"]),f(ck,{class:"ml-2",size:e.buttonSize,variant:e.discordVariant},null,8,["size","variant"])])])]))}}),w1e={class:"setup-option-box pa-8"},E1e={class:"setup-option-box pa-8",style:{overflow:"visible"}},x1e={class:"mb-4"},k1e={key:2,class:"mb-4"},C1e={class:"d-flex align-start",style:{gap:"8px"}},_1e={class:"px-6 pb-6"},T1e={class:"setup-option-box ma-6 pa-8"},I1e={class:"d-flex flex-column align-center",style:{"max-width":"500px",margin:"0 auto"}},P1e={class:"text-caption"},A1e={class:"text-caption"},R1e={class:"text-caption"},O1e={class:"px-6 pb-6"},N1e={class:"setup-option-box ma-6 pa-6"},D1e={class:"d-flex flex-column align-center text-center"},L1e={class:"d-flex justify-center mt-8"},F1e={class:"px-6 pb-6"},$1e=je({__name:"FirstTimeSetupView",setup(e){const t=ns(),n=Xt(),r=z(!1),i=Rs(),a=z({loginRequired:!0,registration:!1}),s=z({rootUsername:"admin",rootPassword:"",rootPassword2:""}),o=z(null),l=z(!1),u=z(null),c=z(""),d=z(1);Nt(async()=>{await i.checkAuthenticationRequirements(),i.wizardState?.wizardCompleted&&(n.info("Setup already completed."),i.loginRequired?await t.push({name:"Login"}):await t.push({name:"Home"}))});async function p(){if(!r.value){n.error("Please fill out all required fields.");return}const y=a.value,b=s.value;await FA.postFirstTimeSetup({loginRequired:y.loginRequired,registration:y.registration,rootUsername:b.rootUsername,rootPassword:b.rootPassword}),n.openInfoMessage({title:"Setup completed"}),d.value=3}async function h(){await i.checkAuthenticationRequirements()}async function g(){if(u.value=null,c.value="",!o.value){c.value="No file selected",u.value=null;return}l.value=!0;try{const y=await o.value.text(),b=JS(y);if(!b||typeof b!="object"){c.value="Invalid YAML file structure",u.value=null;return}u.value={version:b.version||"Unknown",databaseType:b.databaseType||"Unknown",exportedAt:b.exportedAt?new Date(b.exportedAt).toLocaleString():"Unknown",printersCount:b.printers?.length||0,floorsCount:b.floors?.length||0,groupsCount:b.groups?.length||0,hasSettings:!!b.settings,usersCount:b.users?.length||0}}catch(y){c.value="Failed to validate YAML file: "+y.message,u.value=null}finally{l.value=!1}}async function v(){if(!o.value){n.error("Please select a YAML file to import.");return}if(!(o.value instanceof File)){n.error("Invalid file selected. Please try again.");return}if(o.value.size===0){n.error("The selected file is empty.");return}try{await FA.postYamlImport(o.value),n.openInfoMessage({title:"Import successful!",subtitle:"Your configuration has been restored."}),await i.checkAuthenticationRequirements(),i.loginRequired?await t.push({name:"Login"}):await t.push({name:"Home"})}catch{n.error("Failed to import YAML configuration.")}}return(y,b)=>(N(),Z(ts,{fluid:""},{default:m(()=>[b[42]||(b[42]=S("img",{alt:"FDM Monster Background",class:"grid-bg-img align-content-center",src:fk,style:{opacity:"0.08"}},null,-1)),f(ct,{class:"justify-center"},{default:m(()=>[f(Ae,{cols:"12",md:"10",lg:"8"},{default:m(()=>[f(cge,{modelValue:d.value,"onUpdate:modelValue":b[13]||(b[13]=E=>d.value=E),class:"bg-grey-darken-4"},{default:m(()=>[f(c3,null,{default:m(()=>[f(Fh,{complete:d.value>1,value:1,title:"Introduction"},null,8,["complete"]),f(et),f(Fh,{complete:d.value>2,value:2,title:"Login & Registration"},null,8,["complete"]),f(et),f(Fh,{value:3,title:"What's Next?"})]),_:1}),f(f3,{modelValue:d.value,"onUpdate:modelValue":b[12]||(b[12]=E=>d.value=E)},{default:m(()=>[f($h,{value:1},{default:m(()=>[b[23]||(b[23]=S("div",{class:"d-flex flex-column align-center text-center",style:{padding:"60px 40px 40px"}},[S("div",{class:"d-flex align-center justify-center mb-4"},[S("img",{class:"rounded-pill",alt:"User setting up software",src:v1e,style:{opacity:"0.7"},width:"80",height:"80"}),S("h1",{class:"text-h3 ml-4"},"FDM Monster")]),S("p",{class:"text-subtitle-1 text-medium-emphasis"},[k(" Welcome! Let's set up your 3D printing farm management system. "),S("br"),k(" Choose an option below. ")])],-1)),f(ct,{class:"px-6 pb-6",align:"start"},{default:m(()=>[f(Ae,{cols:"12",md:"6"},{default:m(()=>[S("div",w1e,[b[16]||(b[16]=S("div",{class:"text-center mb-8"},[S("h2",{class:"text-h5 mb-2"},"Start Setup"),S("p",{class:"text-body-2 text-medium-emphasis"}," Configure your FDM Monster server step by step with the setup wizard. ")],-1)),f(te,{color:"primary",size:"x-large",block:"",onClick:b[0]||(b[0]=E=>d.value=2)},{default:m(()=>[f(j,{start:""},{default:m(()=>[...b[14]||(b[14]=[k("rocket_launch",-1)])]),_:1}),b[15]||(b[15]=k(" START SETUP ",-1))]),_:1})])]),_:1}),f(Ae,{cols:"12",md:"6"},{default:m(()=>[S("div",E1e,[b[22]||(b[22]=S("div",{class:"text-center mb-6"},[S("h2",{class:"text-h5 mb-1"},"Import Backup"),S("p",{class:"text-body-2 text-medium-emphasis"}," A .yaml/.yml file is required ")],-1)),S("div",x1e,[f(Hx,{modelValue:o.value,"onUpdate:modelValue":[b[1]||(b[1]=E=>o.value=E),g],accept:".yaml,.yml",label:"Select YAML file",variant:"outlined","prepend-icon":"",density:"default","hide-details":""},{"prepend-inner":m(()=>[f(j,null,{default:m(()=>[...b[17]||(b[17]=[k("attach_file",-1)])]),_:1})]),_:1},8,["modelValue"])]),l.value?(N(),Z(si,{key:0,indeterminate:"",color:"primary",class:"mb-4"})):se("",!0),c.value?(N(),Z(kt,{key:1,type:"error",variant:"tonal",density:"compact",class:"mb-4",closable:""},{default:m(()=>[k(V(c.value),1)]),_:1})):se("",!0),u.value?(N(),le("div",k1e,[f(DM,{summary:u.value},null,8,["summary"])])):se("",!0),f(te,{disabled:!u.value,color:"primary",size:"x-large",block:"",class:"mb-4",onClick:b[2]||(b[2]=E=>v())},{default:m(()=>[f(j,{start:""},{default:m(()=>[...b[18]||(b[18]=[k("upload",-1)])]),_:1}),b[19]||(b[19]=k(" IMPORT CONFIGURATION ",-1))]),_:1},8,["disabled"]),S("div",C1e,[f(j,{size:"small",color:"info"},{default:m(()=>[...b[20]||(b[20]=[k("info",-1)])]),_:1}),b[21]||(b[21]=S("div",{class:"text-caption text-medium-emphasis",style:{"line-height":"1.4"}}," This will skip the wizard and restore your configuration. ",-1))])])]),_:1})]),_:1}),S("div",_1e,[f(m1)])]),_:1}),f($h,{value:2},{default:m(()=>[S("div",T1e,[S("div",I1e,[b[36]||(b[36]=S("h2",{class:"text-h5 mb-4 text-center"},"Login Configuration",-1)),f(dy,{modelValue:r.value,"onUpdate:modelValue":b[8]||(b[8]=E=>r.value=E),class:"w-100"},{default:m(()=>[f(fw,{modelValue:a.value.loginRequired,"onUpdate:modelValue":b[3]||(b[3]=E=>a.value.loginRequired=E),label:"Enable Login",color:"primary",density:"compact","hide-details":""},null,8,["modelValue"]),f(kt,{type:a.value.loginRequired?"success":"warning",variant:"tonal",density:"compact",class:"mt-2 mb-3"},{default:m(()=>[S("div",P1e,[f(j,{size:"x-small",class:"mr-1"},{default:m(()=>[k(V(a.value.loginRequired?"check":"warning"),1)]),_:1}),k(" "+V(a.value.loginRequired?"Login is required for all users.":"No login required. Admin role assumed."),1)])]),_:1},8,["type"]),a.value.loginRequired?se("",!0):(N(),Z(kt,{key:0,type:"error",variant:"tonal",density:"compact",class:"mb-3"},{default:m(()=>[S("div",A1e,[f(j,{size:"x-small",class:"mr-1"},{default:m(()=>[...b[24]||(b[24]=[k("security",-1)])]),_:1}),b[25]||(b[25]=k(" Server may be publicly exposed. Carefully evaluate ",-1)),b[26]||(b[26]=S("strong",null,"Enable Login",-1)),b[27]||(b[27]=k(". ",-1))])]),_:1})),f(fw,{modelValue:a.value.registration,"onUpdate:modelValue":b[4]||(b[4]=E=>a.value.registration=E),label:"Enable Registration",color:"primary",density:"compact",class:"mt-3","hide-details":""},null,8,["modelValue"]),f(kt,{type:a.value.registration?"info":"warning",variant:"tonal",density:"compact",class:"mt-2 mb-4"},{default:m(()=>[S("div",R1e,[f(j,{size:"x-small",class:"mr-1"},{default:m(()=>[k(V(a.value.registration?"check":"block"),1)]),_:1}),k(" "+V(a.value.registration?"New accounts can be registered with guest role.":"Only admin can create accounts."),1)])]),_:1},8,["type"]),f(et,{class:"my-6 w-100"}),b[31]||(b[31]=S("h2",{class:"text-h5 mb-4 text-center"},"Admin Account",-1)),f(yt,{modelValue:s.value.rootUsername,"onUpdate:modelValue":b[5]||(b[5]=E=>s.value.rootUsername=E),rules:[E=>!!E||"Username is required"],label:"Username",variant:"outlined",density:"compact",class:"mb-3"},{"prepend-inner":m(()=>[f(j,{size:"small"},{default:m(()=>[...b[28]||(b[28]=[k("person",-1)])]),_:1})]),_:1},8,["modelValue","rules"]),f(yt,{modelValue:s.value.rootPassword,"onUpdate:modelValue":b[6]||(b[6]=E=>s.value.rootPassword=E),type:"password",rules:[E=>!!E||"Password is required",E=>!!E&&E?.length>=8||"Password must be at least 8 characters"],label:"Password",variant:"outlined",density:"compact",class:"mb-3"},{"prepend-inner":m(()=>[f(j,{size:"small"},{default:m(()=>[...b[29]||(b[29]=[k("lock",-1)])]),_:1})]),_:1},8,["modelValue","rules"]),f(yt,{modelValue:s.value.rootPassword2,"onUpdate:modelValue":b[7]||(b[7]=E=>s.value.rootPassword2=E),type:"password",rules:[E=>!!E||"Please repeat password",E=>E===s.value.rootPassword||"Passwords do not match"],label:"Repeat Password",variant:"outlined",density:"compact",class:"mb-4"},{"prepend-inner":m(()=>[f(j,{size:"small"},{default:m(()=>[...b[30]||(b[30]=[k("lock",-1)])]),_:1})]),_:1},8,["modelValue","rules"])]),_:1},8,["modelValue"]),f(Wt,{class:"px-0 mt-4"},{default:m(()=>[f(te,{variant:"elevated",onClick:b[9]||(b[9]=E=>d.value=1)},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...b[32]||(b[32]=[k("arrow_back",-1)])]),_:1}),b[33]||(b[33]=k(" Back ",-1))]),_:1}),f(ht),f(te,{disabled:!r.value,color:"primary",variant:"elevated",onClick:b[10]||(b[10]=E=>p())},{default:m(()=>[f(j,{class:"mr-2",size:"small"},{default:m(()=>[...b[34]||(b[34]=[k("mdi:mdi-check",-1)])]),_:1}),b[35]||(b[35]=k(" Submit ",-1))]),_:1},8,["disabled"])]),_:1})])]),S("div",O1e,[f(m1)])]),_:1}),f($h,{value:3},{default:m(()=>[S("div",N1e,[S("div",D1e,[f(j,{size:"120",color:"success",class:"mb-4"},{default:m(()=>[...b[37]||(b[37]=[k(" check_circle ",-1)])]),_:1}),b[38]||(b[38]=S("h2",{class:"text-h4 mb-2"},"Setup Completed!",-1)),b[39]||(b[39]=S("p",{class:"text-subtitle-1 text-medium-emphasis"}," Your FDM Monster server is now configured and ready to use. ",-1))]),S("div",L1e,[f(te,{color:"primary",size:"large",onClick:b[11]||(b[11]=E=>h())},{default:m(()=>[b[41]||(b[41]=k(" Continue to Login ",-1)),f(j,{end:""},{default:m(()=>[...b[40]||(b[40]=[k("arrow_forward",-1)])]),_:1})]),_:1})])]),S("div",F1e,[f(m1,{message:"Need help?"})])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),M1e=En($1e,[["__scopeId","data-v-3f167de9"]]),V1e=je({__name:"AccountSettings",setup(e){const t=fs(),n=tk(),r=Rs(),i=ns(),a=Xt(),s=z(),o=z(null),l=z({username:"",newPassword:"",oldPassword:"",repeatPassword:""});Nt(async()=>{await t.loadSettings(),s.value=t.settings?.server.loginRequired,await n.getProfile(),l.value.username=n.username,o.value=n.userId});async function u(){if(!o.value?.toString()?.length){a.openErrorMessage({title:"User not loaded"});return}await Es.changeUsername(o.value,l.value.username),await n.getProfile(),l.value.username=n.username,a.openInfoMessage({title:"Username changed"})}async function c(){if(!o.value?.toString()?.length){a.openErrorMessage({title:"User not loaded"});return}if(l.value.newPassword!==l.value.repeatPassword){a.openErrorMessage({title:"Passwords do not match"});return}await Es.changePassword(o.value,l.value.oldPassword,l.value.newPassword),l.value.oldPassword="",l.value.newPassword="",l.value.repeatPassword="",a.openInfoMessage({title:"Password changed"}),await r.logout(!0),await tV(i)}return(d,p)=>(N(),Z(Ve,null,{default:m(()=>[f(qe,null,{default:m(()=>[s.value?se("",!0):(N(),Z(kt,{key:0,color:"primary",variant:"tonal",class:"mb-4"},{default:m(()=>[...p[6]||(p[6]=[k(" Login is currently disabled. To adjust your username and password, please enable that setting at the Server Protection settings page. Then log in and visit this page. ",-1)])]),_:1})),f(sr,{title:"Change Username",usecols:!1},{default:m(()=>[f(yt,{modelValue:l.value.username,"onUpdate:modelValue":p[0]||(p[0]=h=>l.value.username=h),disabled:!s.value,label:"Fill in your username"},null,8,["modelValue","disabled"]),f(te,{disabled:!s.value,color:"primary",class:"mt-2",onClick:p[1]||(p[1]=h=>u())},{default:m(()=>[...p[7]||(p[7]=[k(" Change username ",-1)])]),_:1},8,["disabled"])]),_:1}),f(et),f(sr,{title:"Change Password",usecols:!1},{default:m(()=>[f(yt,{modelValue:l.value.oldPassword,"onUpdate:modelValue":p[2]||(p[2]=h=>l.value.oldPassword=h),disabled:!s.value,placeholder:"Old password",type:"password",label:"Old Password",class:"mb-3"},null,8,["modelValue","disabled"]),f(yt,{modelValue:l.value.newPassword,"onUpdate:modelValue":p[3]||(p[3]=h=>l.value.newPassword=h),disabled:!s.value,placeholder:"New password",type:"password",label:"New Password",class:"mb-3"},null,8,["modelValue","disabled"]),f(yt,{modelValue:l.value.repeatPassword,"onUpdate:modelValue":p[4]||(p[4]=h=>l.value.repeatPassword=h),disabled:!s.value,placeholder:"Repeat new password",type:"password",label:"Repeat New Password",class:"mb-3"},null,8,["modelValue","disabled"]),f(te,{disabled:!s.value,color:"primary",onClick:p[5]||(p[5]=h=>c())},{default:m(()=>[...p[8]||(p[8]=[k(" Change password ",-1)])]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1}))}}),B1e=je({__name:"ServerProtectionSettings",setup(e){const t=ns(),n=Xt(),r=Rs(),i=z(""),a=z(!1),s=z(!1),o=z(),l=z(!1),u=z(-1),c=z(14);async function d(){const b=await _r.getSettings();a.value=b.server.loginRequired,s.value=b.server.registration,i.value=b.connection?.clientIp??"127.0.0.1";const E=await _r.getSettingsSensitive();o.value=E.credentials.jwtExpiresIn,l.value=E.credentials.refreshTokenAttempts!==-1,u.value=E.credentials.refreshTokenAttempts,c.value=E.credentials.refreshTokenExpiry/24/3600}Nt(async()=>{await d()});function p(){l.value||(u.value=-1)}async function h(){const b=a.value;!b&&!confirm("Disabling login will expose your server. Continue?")||(await _r.updateLoginRequiredSettings(b),await r.logout(!0),await r.checkAuthenticationRequirements(),b?await t.push({name:pn.Login}):await t.push({name:pn.Home}),n.info("Login Required settings updated"))}async function g(){await _r.updateRegistrationEnabledSettings(s.value),await r.checkAuthenticationRequirements(),n.info("Registration settings updated")}async function v(){o.value=3600,l.value=!1,u.value=-1,c.value=14,await y(),n.info("Login expiry settings reset to default")}async function y(){if(o.value=Number.parseInt((o.value??"")?.toString()),u.value=Number.parseInt((u.value??"").toString()),!o.value||o.value<120||o.value>7200)throw new Error("JWT Expiry must be between 2 and 120 minutes");if(l.value||(u.value=-1),l.value&&(u.value<1||u.value>50))throw new Error("Refresh Token Attempts must be between 1 and 50");if(c.value<1||c.value>30)throw new Error("Refresh Token Expiry must be between 1 and 30 days");await _r.updateCredentialSettings(o.value,u.value,c.value*24*3600),n.info("Login expiry settings updated")}return(b,E)=>(N(),Z(Ve,null,{default:m(()=>[f(qe,null,{default:m(()=>[f(sr,{usecols:!1,title:"Login and registration"},{default:m(()=>[f(ct,null,{default:m(()=>[f(Ae,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(Nn,{modelValue:a.value,"onUpdate:modelValue":E[0]||(E[0]=w=>a.value=w),label:"Require Login",onChange:h},null,8,["modelValue"])]),_:1}),f(Ae,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(Nn,{modelValue:s.value,"onUpdate:modelValue":E[1]||(E[1]=w=>s.value=w),label:"Enable Registration",onChange:g},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),f(et),f(sr,{usecols:!1,title:"Login expiry settings (advanced)"},{default:m(()=>[f(kt,{class:"mb-6",color:"secondary"},{default:m(()=>[f(j,null,{default:m(()=>[...E[9]||(E[9]=[k("info",-1)])]),_:1}),E[10]||(E[10]=k("   Be cautious, setting the wrong expiry could make you lose access to the server or make your user experience highly degraded! ",-1))]),_:1}),f(ct,null,{default:m(()=>[f(Ae,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(yt,{modelValue:o.value,"onUpdate:modelValue":E[2]||(E[2]=w=>o.value=w),rules:[w=>!!w&&w>=120&&w<=7200],label:"JWT Expiry (seconds)"},null,8,["modelValue","rules"])]),_:1})]),_:1}),f(ct,null,{default:m(()=>[f(Ae,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(Nn,{modelValue:l.value,"onUpdate:modelValue":E[3]||(E[3]=w=>l.value=w),label:"Enable Refresh Token Attempts",onChange:E[4]||(E[4]=w=>p())},null,8,["modelValue"])]),_:1}),f(Ae,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(yt,{modelValue:u.value,"onUpdate:modelValue":E[5]||(E[5]=w=>u.value=w),disabled:!l.value,rules:[w=>!!w&&w>=1],label:"Refresh Token Attempts (disabled: -1, range: 1 to 50)",type:"number"},null,8,["modelValue","disabled","rules"])]),_:1}),f(Ae,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(yt,{modelValue:c.value,"onUpdate:modelValue":E[6]||(E[6]=w=>c.value=w),rules:[w=>!!w&&w>=1&&w<=30],label:"Refresh Token Expiry (days)"},null,8,["modelValue","rules"])]),_:1})]),_:1}),f(ct,null,{default:m(()=>[f(Ae,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(te,{color:"primary",onClick:E[7]||(E[7]=w=>y())},{default:m(()=>[...E[11]||(E[11]=[k(" save login expiry settings ",-1)])]),_:1})]),_:1}),f(Ae,{cols:"4",lg:"3",sm:"12",xl:"2"},{default:m(()=>[f(te,{color:"default",onClick:E[8]||(E[8]=w=>v())},{default:m(()=>[...E[12]||(E[12]=[k(" reset to default ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}}),I4="2.2.3";var uh={exports:{}},h1,$A;function Uy(){if($A)return h1;$A=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=16,i=t-6;return h1={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},h1}var g1,MA;function jy(){if(MA)return g1;MA=1;var e={};return g1=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},g1}var VA;function xm(){return VA||(VA=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Uy(),a=jy();t=e.exports={};const s=t.re=[],o=t.safeRe=[],l=t.src=[],u=t.safeSrc=[],c=t.t={};let d=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[p,r]],g=y=>{for(const[b,E]of h)y=y.split(`${b}*`).join(`${b}{0,${E}}`).split(`${b}+`).join(`${b}{1,${E}}`);return y},v=(y,b,E)=>{const w=g(b),C=d++;a(y,C,b),c[y]=C,l[C]=b,u[C]=w,s[C]=new RegExp(b,E?"g":void 0),o[C]=new RegExp(w,E?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),v("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${l[c.NONNUMERICIDENTIFIER]}|${l[c.NUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NONNUMERICIDENTIFIER]}|${l[c.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${p}+`),v("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),v("FULL",`^${l[c.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),v("LOOSE",`^${l[c.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),v("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),v("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",l[c.COERCE],!0),v("COERCERTLFULL",l[c.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(uh,uh.exports)),uh.exports}var v1,BA;function Zk(){if(BA)return v1;BA=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return v1=r=>r?typeof r!="object"?e:r:t,v1}var y1,UA;function P4(){if(UA)return y1;UA=1;const e=/^[0-9]+$/,t=(r,i)=>{if(typeof r=="number"&&typeof i=="number")return r===i?0:r<i?-1:1;const a=e.test(r),s=e.test(i);return a&&s&&(r=+r,i=+i),r===i?0:a&&!s?-1:s&&!a?1:r<i?-1:1};return y1={compareIdentifiers:t,rcompareIdentifiers:(r,i)=>t(i,r)},y1}var b1,jA;function Ai(){if(jA)return b1;jA=1;const e=jy(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Uy(),{safeRe:r,t:i}=xm(),a=Zk(),{compareIdentifiers:s}=P4();class o{constructor(u,c){if(c=a(c),u instanceof o){if(u.loose===!!c.loose&&u.includePrerelease===!!c.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",u,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const d=u.trim().match(c.loose?r[i.LOOSE]:r[i.FULL]);if(!d)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(p=>{if(/^[0-9]+$/.test(p)){const h=+p;if(h>=0&&h<n)return h}return p}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(e("SemVer.compare",this.version,this.options,u),!(u instanceof o)){if(typeof u=="string"&&u===this.version)return 0;u=new o(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof o||(u=new o(u,this.options)),this.major<u.major?-1:this.major>u.major?1:this.minor<u.minor?-1:this.minor>u.minor?1:this.patch<u.patch?-1:this.patch>u.patch?1:0}comparePre(u){if(u instanceof o||(u=new o(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let c=0;do{const d=this.prerelease[c],p=u.prerelease[c];if(e("prerelease compare",c,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return s(d,p)}while(++c)}compareBuild(u){u instanceof o||(u=new o(u,this.options));let c=0;do{const d=this.build[c],p=u.build[c];if(e("build compare",c,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return s(d,p)}while(++c)}inc(u,c,d){if(u.startsWith("pre")){if(!c&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(c){const p=`-${c}`.match(this.options.loose?r[i.PRERELEASELOOSE]:r[i.PRERELEASE]);if(!p||p[1]!==c)throw new Error(`invalid identifier: ${c}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",c,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",c,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",c,d),this.inc("pre",c,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",c,d),this.inc("pre",c,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const p=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[p];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(c===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(p)}}if(c){let h=[c,p];d===!1&&(h=[c]),s(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=h):this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return b1=o,b1}var S1,zA;function $d(){if(zA)return S1;zA=1;const e=Ai();return S1=(n,r,i=!1)=>{if(n instanceof e)return n;try{return new e(n,r)}catch(a){if(!i)return null;throw a}},S1}var w1,HA;function U1e(){if(HA)return w1;HA=1;const e=$d();return w1=(n,r)=>{const i=e(n,r);return i?i.version:null},w1}var E1,WA;function j1e(){if(WA)return E1;WA=1;const e=$d();return E1=(n,r)=>{const i=e(n.trim().replace(/^[=v]+/,""),r);return i?i.version:null},E1}var x1,GA;function z1e(){if(GA)return x1;GA=1;const e=Ai();return x1=(n,r,i,a,s)=>{typeof i=="string"&&(s=a,a=i,i=void 0);try{return new e(n instanceof e?n.version:n,i).inc(r,a,s).version}catch{return null}},x1}var k1,qA;function H1e(){if(qA)return k1;qA=1;const e=$d();return k1=(n,r)=>{const i=e(n,null,!0),a=e(r,null,!0),s=i.compare(a);if(s===0)return null;const o=s>0,l=o?i:a,u=o?a:i,c=!!l.prerelease.length;if(!!u.prerelease.length&&!c){if(!u.patch&&!u.minor)return"major";if(u.compareMain(l)===0)return u.minor&&!u.patch?"minor":"patch"}const p=c?"pre":"";return i.major!==a.major?p+"major":i.minor!==a.minor?p+"minor":i.patch!==a.patch?p+"patch":"prerelease"},k1}var C1,KA;function W1e(){if(KA)return C1;KA=1;const e=Ai();return C1=(n,r)=>new e(n,r).major,C1}var _1,YA;function G1e(){if(YA)return _1;YA=1;const e=Ai();return _1=(n,r)=>new e(n,r).minor,_1}var T1,XA;function q1e(){if(XA)return T1;XA=1;const e=Ai();return T1=(n,r)=>new e(n,r).patch,T1}var I1,JA;function K1e(){if(JA)return I1;JA=1;const e=$d();return I1=(n,r)=>{const i=e(n,r);return i&&i.prerelease.length?i.prerelease:null},I1}var P1,QA;function sa(){if(QA)return P1;QA=1;const e=Ai();return P1=(n,r,i)=>new e(n,i).compare(new e(r,i)),P1}var A1,ZA;function Y1e(){if(ZA)return A1;ZA=1;const e=sa();return A1=(n,r,i)=>e(r,n,i),A1}var R1,eR;function X1e(){if(eR)return R1;eR=1;const e=sa();return R1=(n,r)=>e(n,r,!0),R1}var O1,tR;function eC(){if(tR)return O1;tR=1;const e=Ai();return O1=(n,r,i)=>{const a=new e(n,i),s=new e(r,i);return a.compare(s)||a.compareBuild(s)},O1}var N1,nR;function J1e(){if(nR)return N1;nR=1;const e=eC();return N1=(n,r)=>n.sort((i,a)=>e(i,a,r)),N1}var D1,rR;function Q1e(){if(rR)return D1;rR=1;const e=eC();return D1=(n,r)=>n.sort((i,a)=>e(a,i,r)),D1}var L1,iR;function zy(){if(iR)return L1;iR=1;const e=sa();return L1=(n,r,i)=>e(n,r,i)>0,L1}var F1,sR;function tC(){if(sR)return F1;sR=1;const e=sa();return F1=(n,r,i)=>e(n,r,i)<0,F1}var $1,aR;function A4(){if(aR)return $1;aR=1;const e=sa();return $1=(n,r,i)=>e(n,r,i)===0,$1}var M1,oR;function R4(){if(oR)return M1;oR=1;const e=sa();return M1=(n,r,i)=>e(n,r,i)!==0,M1}var V1,lR;function nC(){if(lR)return V1;lR=1;const e=sa();return V1=(n,r,i)=>e(n,r,i)>=0,V1}var B1,uR;function rC(){if(uR)return B1;uR=1;const e=sa();return B1=(n,r,i)=>e(n,r,i)<=0,B1}var U1,cR;function O4(){if(cR)return U1;cR=1;const e=A4(),t=R4(),n=zy(),r=nC(),i=tC(),a=rC();return U1=(o,l,u,c)=>{switch(l){case"===":return typeof o=="object"&&(o=o.version),typeof u=="object"&&(u=u.version),o===u;case"!==":return typeof o=="object"&&(o=o.version),typeof u=="object"&&(u=u.version),o!==u;case"":case"=":case"==":return e(o,u,c);case"!=":return t(o,u,c);case">":return n(o,u,c);case">=":return r(o,u,c);case"<":return i(o,u,c);case"<=":return a(o,u,c);default:throw new TypeError(`Invalid operator: ${l}`)}},U1}var j1,dR;function Z1e(){if(dR)return j1;dR=1;const e=Ai(),t=$d(),{safeRe:n,t:r}=xm();return j1=(a,s)=>{if(a instanceof e)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;s=s||{};let o=null;if(!s.rtl)o=a.match(s.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);else{const h=s.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let g;for(;(g=h.exec(a))&&(!o||o.index+o[0].length!==a.length);)(!o||g.index+g[0].length!==o.index+o[0].length)&&(o=g),h.lastIndex=g.index+g[1].length+g[2].length;h.lastIndex=-1}if(o===null)return null;const l=o[2],u=o[3]||"0",c=o[4]||"0",d=s.includePrerelease&&o[5]?`-${o[5]}`:"",p=s.includePrerelease&&o[6]?`+${o[6]}`:"";return t(`${l}.${u}.${c}${d}${p}`,s)},j1}var z1,fR;function e0e(){if(fR)return z1;fR=1;class e{constructor(){this.max=1e3,this.map=new Map}get(n){const r=this.map.get(n);if(r!==void 0)return this.map.delete(n),this.map.set(n,r),r}delete(n){return this.map.delete(n)}set(n,r){if(!this.delete(n)&&r!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(n,r)}return this}}return z1=e,z1}var H1,pR;function aa(){if(pR)return H1;pR=1;const e=/\s+/g;class t{constructor(W,H){if(H=i(H),W instanceof t)return W.loose===!!H.loose&&W.includePrerelease===!!H.includePrerelease?W:new t(W.raw,H);if(W instanceof a)return this.raw=W.value,this.set=[[W]],this.formatted=void 0,this;if(this.options=H,this.loose=!!H.loose,this.includePrerelease=!!H.includePrerelease,this.raw=W.trim().replace(e," "),this.set=this.raw.split("||").map(B=>this.parseRange(B.trim())).filter(B=>B.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const B=this.set[0];if(this.set=this.set.filter($=>!v($[0])),this.set.length===0)this.set=[B];else if(this.set.length>1){for(const $ of this.set)if($.length===1&&y($[0])){this.set=[$];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let W=0;W<this.set.length;W++){W>0&&(this.formatted+="||");const H=this.set[W];for(let B=0;B<H.length;B++)B>0&&(this.formatted+=" "),this.formatted+=H[B].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(W){const B=((this.options.includePrerelease&&h)|(this.options.loose&&g))+":"+W,$=r.get(B);if($)return $;const Y=this.options.loose,q=Y?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];W=W.replace(q,O(this.options.includePrerelease)),s("hyphen replace",W),W=W.replace(l[u.COMPARATORTRIM],c),s("comparator trim",W),W=W.replace(l[u.TILDETRIM],d),s("tilde trim",W),W=W.replace(l[u.CARETTRIM],p),s("caret trim",W);let U=W.split(" ").map(he=>E(he,this.options)).join(" ").split(/\s+/).map(he=>R(he,this.options));Y&&(U=U.filter(he=>(s("loose invalid filter",he,this.options),!!he.match(l[u.COMPARATORLOOSE])))),s("range list",U);const M=new Map,K=U.map(he=>new a(he,this.options));for(const he of K){if(v(he))return[he];M.set(he.value,he)}M.size>1&&M.has("")&&M.delete("");const fe=[...M.values()];return r.set(B,fe),fe}intersects(W,H){if(!(W instanceof t))throw new TypeError("a Range is required");return this.set.some(B=>b(B,H)&&W.set.some($=>b($,H)&&B.every(Y=>$.every(q=>Y.intersects(q,H)))))}test(W){if(!W)return!1;if(typeof W=="string")try{W=new o(W,this.options)}catch{return!1}for(let H=0;H<this.set.length;H++)if(L(this.set[H],W,this.options))return!0;return!1}}H1=t;const n=e0e(),r=new n,i=Zk(),a=Hy(),s=jy(),o=Ai(),{safeRe:l,t:u,comparatorTrimReplace:c,tildeTrimReplace:d,caretTrimReplace:p}=xm(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:g}=Uy(),v=F=>F.value==="<0.0.0-0",y=F=>F.value==="",b=(F,W)=>{let H=!0;const B=F.slice();let $=B.pop();for(;H&&B.length;)H=B.every(Y=>$.intersects(Y,W)),$=B.pop();return H},E=(F,W)=>(F=F.replace(l[u.BUILD],""),s("comp",F,W),F=_(F,W),s("caret",F),F=C(F,W),s("tildes",F),F=I(F,W),s("xrange",F),F=x(F,W),s("stars",F),F),w=F=>!F||F.toLowerCase()==="x"||F==="*",C=(F,W)=>F.trim().split(/\s+/).map(H=>P(H,W)).join(" "),P=(F,W)=>{const H=W.loose?l[u.TILDELOOSE]:l[u.TILDE];return F.replace(H,(B,$,Y,q,U)=>{s("tilde",F,B,$,Y,q,U);let M;return w($)?M="":w(Y)?M=`>=${$}.0.0 <${+$+1}.0.0-0`:w(q)?M=`>=${$}.${Y}.0 <${$}.${+Y+1}.0-0`:U?(s("replaceTilde pr",U),M=`>=${$}.${Y}.${q}-${U} <${$}.${+Y+1}.0-0`):M=`>=${$}.${Y}.${q} <${$}.${+Y+1}.0-0`,s("tilde return",M),M})},_=(F,W)=>F.trim().split(/\s+/).map(H=>A(H,W)).join(" "),A=(F,W)=>{s("caret",F,W);const H=W.loose?l[u.CARETLOOSE]:l[u.CARET],B=W.includePrerelease?"-0":"";return F.replace(H,($,Y,q,U,M)=>{s("caret",F,$,Y,q,U,M);let K;return w(Y)?K="":w(q)?K=`>=${Y}.0.0${B} <${+Y+1}.0.0-0`:w(U)?Y==="0"?K=`>=${Y}.${q}.0${B} <${Y}.${+q+1}.0-0`:K=`>=${Y}.${q}.0${B} <${+Y+1}.0.0-0`:M?(s("replaceCaret pr",M),Y==="0"?q==="0"?K=`>=${Y}.${q}.${U}-${M} <${Y}.${q}.${+U+1}-0`:K=`>=${Y}.${q}.${U}-${M} <${Y}.${+q+1}.0-0`:K=`>=${Y}.${q}.${U}-${M} <${+Y+1}.0.0-0`):(s("no pr"),Y==="0"?q==="0"?K=`>=${Y}.${q}.${U}${B} <${Y}.${q}.${+U+1}-0`:K=`>=${Y}.${q}.${U}${B} <${Y}.${+q+1}.0-0`:K=`>=${Y}.${q}.${U} <${+Y+1}.0.0-0`),s("caret return",K),K})},I=(F,W)=>(s("replaceXRanges",F,W),F.split(/\s+/).map(H=>T(H,W)).join(" ")),T=(F,W)=>{F=F.trim();const H=W.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return F.replace(H,(B,$,Y,q,U,M)=>{s("xRange",F,B,$,Y,q,U,M);const K=w(Y),fe=K||w(q),he=fe||w(U),Re=he;return $==="="&&Re&&($=""),M=W.includePrerelease?"-0":"",K?$===">"||$==="<"?B="<0.0.0-0":B="*":$&&Re?(fe&&(q=0),U=0,$===">"?($=">=",fe?(Y=+Y+1,q=0,U=0):(q=+q+1,U=0)):$==="<="&&($="<",fe?Y=+Y+1:q=+q+1),$==="<"&&(M="-0"),B=`${$+Y}.${q}.${U}${M}`):fe?B=`>=${Y}.0.0${M} <${+Y+1}.0.0-0`:he&&(B=`>=${Y}.${q}.0${M} <${Y}.${+q+1}.0-0`),s("xRange return",B),B})},x=(F,W)=>(s("replaceStars",F,W),F.trim().replace(l[u.STAR],"")),R=(F,W)=>(s("replaceGTE0",F,W),F.trim().replace(l[W.includePrerelease?u.GTE0PRE:u.GTE0],"")),O=F=>(W,H,B,$,Y,q,U,M,K,fe,he,Re)=>(w(B)?H="":w($)?H=`>=${B}.0.0${F?"-0":""}`:w(Y)?H=`>=${B}.${$}.0${F?"-0":""}`:q?H=`>=${H}`:H=`>=${H}${F?"-0":""}`,w(K)?M="":w(fe)?M=`<${+K+1}.0.0-0`:w(he)?M=`<${K}.${+fe+1}.0-0`:Re?M=`<=${K}.${fe}.${he}-${Re}`:F?M=`<${K}.${fe}.${+he+1}-0`:M=`<=${M}`,`${H} ${M}`.trim()),L=(F,W,H)=>{for(let B=0;B<F.length;B++)if(!F[B].test(W))return!1;if(W.prerelease.length&&!H.includePrerelease){for(let B=0;B<F.length;B++)if(s(F[B].semver),F[B].semver!==a.ANY&&F[B].semver.prerelease.length>0){const $=F[B].semver;if($.major===W.major&&$.minor===W.minor&&$.patch===W.patch)return!0}return!1}return!0};return H1}var W1,mR;function Hy(){if(mR)return W1;mR=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=n(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),s("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(c){const d=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],p=c.match(d);if(!p)throw new TypeError(`Invalid comparator: ${c}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new o(p[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(s("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new o(c,this.options)}catch{return!1}return a(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new l(this.value,d).test(c.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||a(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}W1=t;const n=Zk(),{safeRe:r,t:i}=xm(),a=O4(),s=jy(),o=Ai(),l=aa();return W1}var G1,hR;function Wy(){if(hR)return G1;hR=1;const e=aa();return G1=(n,r,i)=>{try{r=new e(r,i)}catch{return!1}return r.test(n)},G1}var q1,gR;function t0e(){if(gR)return q1;gR=1;const e=aa();return q1=(n,r)=>new e(n,r).set.map(i=>i.map(a=>a.value).join(" ").trim().split(" ")),q1}var K1,vR;function n0e(){if(vR)return K1;vR=1;const e=Ai(),t=aa();return K1=(r,i,a)=>{let s=null,o=null,l=null;try{l=new t(i,a)}catch{return null}return r.forEach(u=>{l.test(u)&&(!s||o.compare(u)===-1)&&(s=u,o=new e(s,a))}),s},K1}var Y1,yR;function r0e(){if(yR)return Y1;yR=1;const e=Ai(),t=aa();return Y1=(r,i,a)=>{let s=null,o=null,l=null;try{l=new t(i,a)}catch{return null}return r.forEach(u=>{l.test(u)&&(!s||o.compare(u)===1)&&(s=u,o=new e(s,a))}),s},Y1}var X1,bR;function i0e(){if(bR)return X1;bR=1;const e=Ai(),t=aa(),n=zy();return X1=(i,a)=>{i=new t(i,a);let s=new e("0.0.0");if(i.test(s)||(s=new e("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){const l=i.set[o];let u=null;l.forEach(c=>{const d=new e(c.semver.version);switch(c.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!u||n(d,u))&&(u=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),u&&(!s||n(s,u))&&(s=u)}return s&&i.test(s)?s:null},X1}var J1,SR;function s0e(){if(SR)return J1;SR=1;const e=aa();return J1=(n,r)=>{try{return new e(n,r).range||"*"}catch{return null}},J1}var Q1,wR;function iC(){if(wR)return Q1;wR=1;const e=Ai(),t=Hy(),{ANY:n}=t,r=aa(),i=Wy(),a=zy(),s=tC(),o=rC(),l=nC();return Q1=(c,d,p,h)=>{c=new e(c,h),d=new r(d,h);let g,v,y,b,E;switch(p){case">":g=a,v=o,y=s,b=">",E=">=";break;case"<":g=s,v=l,y=a,b="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(c,d,h))return!1;for(let w=0;w<d.set.length;++w){const C=d.set[w];let P=null,_=null;if(C.forEach(A=>{A.semver===n&&(A=new t(">=0.0.0")),P=P||A,_=_||A,g(A.semver,P.semver,h)?P=A:y(A.semver,_.semver,h)&&(_=A)}),P.operator===b||P.operator===E||(!_.operator||_.operator===b)&&v(c,_.semver))return!1;if(_.operator===E&&y(c,_.semver))return!1}return!0},Q1}var Z1,ER;function a0e(){if(ER)return Z1;ER=1;const e=iC();return Z1=(n,r,i)=>e(n,r,">",i),Z1}var e0,xR;function o0e(){if(xR)return e0;xR=1;const e=iC();return e0=(n,r,i)=>e(n,r,"<",i),e0}var t0,kR;function l0e(){if(kR)return t0;kR=1;const e=aa();return t0=(n,r,i)=>(n=new e(n,i),r=new e(r,i),n.intersects(r,i)),t0}var n0,CR;function u0e(){if(CR)return n0;CR=1;const e=Wy(),t=sa();return n0=(n,r,i)=>{const a=[];let s=null,o=null;const l=n.sort((p,h)=>t(p,h,i));for(const p of l)e(p,r,i)?(o=p,s||(s=p)):(o&&a.push([s,o]),o=null,s=null);s&&a.push([s,null]);const u=[];for(const[p,h]of a)p===h?u.push(p):!h&&p===l[0]?u.push("*"):h?p===l[0]?u.push(`<=${h}`):u.push(`${p} - ${h}`):u.push(`>=${p}`);const c=u.join(" || "),d=typeof r.raw=="string"?r.raw:String(r);return c.length<d.length?c:r},n0}var r0,_R;function c0e(){if(_R)return r0;_R=1;const e=aa(),t=Hy(),{ANY:n}=t,r=Wy(),i=sa(),a=(d,p,h={})=>{if(d===p)return!0;d=new e(d,h),p=new e(p,h);let g=!1;e:for(const v of d.set){for(const y of p.set){const b=l(v,y,h);if(g=g||b!==null,b)continue e}if(g)return!1}return!0},s=[new t(">=0.0.0-0")],o=[new t(">=0.0.0")],l=(d,p,h)=>{if(d===p)return!0;if(d.length===1&&d[0].semver===n){if(p.length===1&&p[0].semver===n)return!0;h.includePrerelease?d=s:d=o}if(p.length===1&&p[0].semver===n){if(h.includePrerelease)return!0;p=o}const g=new Set;let v,y;for(const I of d)I.operator===">"||I.operator===">="?v=u(v,I,h):I.operator==="<"||I.operator==="<="?y=c(y,I,h):g.add(I.semver);if(g.size>1)return null;let b;if(v&&y){if(b=i(v.semver,y.semver,h),b>0)return null;if(b===0&&(v.operator!==">="||y.operator!=="<="))return null}for(const I of g){if(v&&!r(I,String(v),h)||y&&!r(I,String(y),h))return null;for(const T of p)if(!r(I,String(T),h))return!1;return!0}let E,w,C,P,_=y&&!h.includePrerelease&&y.semver.prerelease.length?y.semver:!1,A=v&&!h.includePrerelease&&v.semver.prerelease.length?v.semver:!1;_&&_.prerelease.length===1&&y.operator==="<"&&_.prerelease[0]===0&&(_=!1);for(const I of p){if(P=P||I.operator===">"||I.operator===">=",C=C||I.operator==="<"||I.operator==="<=",v){if(A&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===A.major&&I.semver.minor===A.minor&&I.semver.patch===A.patch&&(A=!1),I.operator===">"||I.operator===">="){if(E=u(v,I,h),E===I&&E!==v)return!1}else if(v.operator===">="&&!r(v.semver,String(I),h))return!1}if(y){if(_&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===_.major&&I.semver.minor===_.minor&&I.semver.patch===_.patch&&(_=!1),I.operator==="<"||I.operator==="<="){if(w=c(y,I,h),w===I&&w!==y)return!1}else if(y.operator==="<="&&!r(y.semver,String(I),h))return!1}if(!I.operator&&(y||v)&&b!==0)return!1}return!(v&&C&&!y&&b!==0||y&&P&&!v&&b!==0||A||_)},u=(d,p,h)=>{if(!d)return p;const g=i(d.semver,p.semver,h);return g>0?d:g<0||p.operator===">"&&d.operator===">="?p:d},c=(d,p,h)=>{if(!d)return p;const g=i(d.semver,p.semver,h);return g<0?d:g>0||p.operator==="<"&&d.operator==="<="?p:d};return r0=a,r0}var i0,TR;function d0e(){if(TR)return i0;TR=1;const e=xm(),t=Uy(),n=Ai(),r=P4(),i=$d(),a=U1e(),s=j1e(),o=z1e(),l=H1e(),u=W1e(),c=G1e(),d=q1e(),p=K1e(),h=sa(),g=Y1e(),v=X1e(),y=eC(),b=J1e(),E=Q1e(),w=zy(),C=tC(),P=A4(),_=R4(),A=nC(),I=rC(),T=O4(),x=Z1e(),R=Hy(),O=aa(),L=Wy(),F=t0e(),W=n0e(),H=r0e(),B=i0e(),$=s0e(),Y=iC(),q=a0e(),U=o0e(),M=l0e(),K=u0e(),fe=c0e();return i0={parse:i,valid:a,clean:s,inc:o,diff:l,major:u,minor:c,patch:d,prerelease:p,compare:h,rcompare:g,compareLoose:v,compareBuild:y,sort:b,rsort:E,gt:w,lt:C,eq:P,neq:_,gte:A,lte:I,cmp:T,coerce:x,Comparator:R,Range:O,satisfies:L,toComparators:F,maxSatisfying:W,minSatisfying:H,minVersion:B,validRange:$,outside:Y,gtr:q,ltr:U,intersects:M,simplifyRange:K,subset:fe,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers},i0}var Zd=d0e();const f0e={key:0},p0e={key:1},m0e={class:"mb-2"},h0e={class:"mt-3"},g0e=je({__name:"SoftwareUpgradeSettings",setup(e){const t=z(""),n=z(!0),r=z(!1),i=z(!1),a=z(""),s=z(""),o=z(I4),l=z(),u=z(),c=z(),d=z(!1),p=z([]);Nt(async()=>{await h();const I=await jo.getVersion();a.value=I.version,s.value=I.monsterPi?.trim()||""});async function h(){n.value=!0,t.value="",r.value=!1;try{const I=await jo.getGithubRateLimit();if(I.rate.remaining===0){const x=new Date(I.rate.reset).toLocaleTimeString(),R=I.rate.reset*1e3-Date.now(),O=Math.ceil(R/6e4);t.value=`Server has reached a rate limit of the Github API. This limit will be reset at ${x} (in ${O} minutes)`,n.value=!1,r.value=!0;return}}catch{n.value=!1;return}try{const I=await jo.getClientReleases();l.value=I.current,u.value=I.minimum,p.value=I.releases}catch(I){t.value="An error occurred loading the releases: "+I.message}finally{n.value=!1}}const g=D(()=>p.value.filter(I=>{const T=Zd.minor(I.tag_name)===Zd.minor(u.value.tag_name),x=w(I),R=I.draft;return T&&(y()||d.value||!x)&&!R})),v=D(()=>y());function y(){const I=l.value;return w(I)}function b(I){return _(I)||!P(I,l.value)||C(I)}function E(I){const T=w(I)?`${I.tag_name}, unstable`:I.tag_name;return _(I)?`${T}, currently installed`:C(I)?`${T}, below minimum`:P(I,l.value)?T:`${T}, downgrade not allowed`}function w(I){return I?.tag_name?.length?I.prerelease||I.tag_name.includes("rc")||I.tag_name.includes("unstable"):!1}function C(I){return Zd.compare(I.tag_name,u.value.tag_name)===-1}function P(I,T){if(!T)throw new Error("No current release is known, cannot compare.");return i.value?!0:Zd.compare(I.tag_name,T.tag_name)!==-1&&Zd.compare(I.tag_name,u.value.tag_name)!==-1}function _(I){return I.tag_name===l.value?.tag_name}async function A(I){confirm("Are you sure? This might cause breaking changes, if the server is outdated")&&(await jo.updateClientDistGithub(I,i.value),location.reload())}return(I,T)=>(N(),Z(Ve,null,{default:m(()=>[f(qe,null,{default:m(()=>[f(sr,{title:"Current versions in use",usecols:!1},{default:m(()=>[S("div",null,"Your server's version is: "+V(a.value),1),S("div",null,"Your client's version is: "+V(o.value),1),s.value?(N(),le("div",f0e," Your MonsterPi version is: "+V(s.value),1)):(N(),le("div",p0e," MonsterPi: No MonsterPi distro was detected. "))]),_:1}),f(et),f(sr,{title:"Server upgrade",tooltip:"Please visit the installation documentation for instructions",usecols:!1},{default:m(()=>[...T[5]||(T[5]=[S("div",null,[k(" Please visit "),S("a",{href:"https://docs.fdm-monster.net/docs/installing/"}," the installation documentation "),k(" for instructions on how to upgrade the server. ")],-1)])]),_:1}),f(et),f(sr,{title:"Client upgrade",tooltip:"Upgrade the client webapp for quickly retrieving small fixes and features",usecols:!1},{default:m(()=>[T[12]||(T[12]=S("div",{class:"mb-3"},[k(" Please visit "),S("a",{href:"https://docs.fdm-monster.net/docs/configuration/updating_client_bundle"}," the installation documentation "),k(" for instructions on how to upgrade the client bundle. ")],-1)),T[13]||(T[13]=S("div",{class:"font-weight-bold mb-2"},"Select a release to upgrade to:",-1)),S("div",m0e," Minimum required version: "+V(u.value?.tag_name),1),n.value?(N(),Z(kt,{key:0},{default:m(()=>[...T[6]||(T[6]=[k("Loading releases...",-1)])]),_:1})):se("",!0),!n.value&&!g.value?.length?(N(),Z(kt,{key:1},{default:m(()=>[...T[7]||(T[7]=[k(" No releases to show. ",-1)])]),_:1})):se("",!0),f(wV,{modelValue:c.value,"onUpdate:modelValue":T[0]||(T[0]=x=>c.value=x)},{default:m(()=>[(N(!0),le(De,null,Vt(g.value,x=>(N(),Z(uw,{key:x.tag_name,disabled:b(x),label:E(x),value:x.tag_name},null,8,["disabled","label","value"]))),128))]),_:1},8,["modelValue"]),d.value?(N(),Z(kt,{key:2,color:"primary","max-width":"500px",class:"mb-3"},{default:m(()=>[...T[8]||(T[8]=[k(" You are viewing prereleases, please install such versions at your own risk! ",-1)])]),_:1})):se("",!0),f(Nn,{modelValue:i.value,"onUpdate:modelValue":T[1]||(T[1]=x=>i.value=x),label:"Allow downgrade"},null,8,["modelValue"]),f(Nn,{modelValue:d.value,"onUpdate:modelValue":T[2]||(T[2]=x=>d.value=x),disabled:v.value,label:v.value?"Show prerelease versions (Currently already on prerelease version)":"Show prerelease versions"},null,8,["modelValue","disabled","label"]),S("div",h0e,[f(te,{class:"mr-4",color:"secondary",onClick:T[3]||(T[3]=x=>h())},{default:m(()=>[...T[9]||(T[9]=[k(" Reload release version list ",-1)])]),_:1}),f(te,{disabled:!c.value?.length||c.value===l.value?.tag_name,color:"primary",variant:"flat",onClick:T[4]||(T[4]=x=>A(c.value))},{default:m(()=>[f(j,null,{default:m(()=>[...T[10]||(T[10]=[k("upgrade",-1)])]),_:1}),T[11]||(T[11]=k(" Upgrade/downgrade client ",-1))]),_:1},8,["disabled"])])]),_:1})]),_:1})]),_:1}))}}),v0e=je({__name:"DiagnosticsSettings",setup(e){const t=Xt(),n=fs(),r=z(!1);Nt(async()=>{await n.loadSettings(),r.value=n.serverSettings?.sentryDiagnosticsEnabled||!1});async function i(){await _r.setSentryDiagnosticsSettings(r.value),bV(r.value)}async function a(){const l=`Test Error ${Date.now()} Sentry enabled: ${r.value}`;try{throw new Error(l)}catch(u){Ks(u),t.openInfoMessage({title:"Test report was sent",subtitle:`Content: ${l}`})}}async function s(){await qg.downloadLogDump()}async function o(){await qg.clearLogFilesOlderThanWeek(),t.openInfoMessage({title:"Action success",subtitle:"Log files older than a week have been deleted"})}return(l,u)=>(N(),Z(Ve,null,{default:m(()=>[f(qe,null,{default:m(()=>[f(sr,{title:"Remote Sentry diagnostic reports"},{default:m(()=>[f(Nn,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=c=>r.value=c),label:"Enable remote Sentry diagnostic reports",onChange:i},null,8,["modelValue"]),f(te,{color:"secondary",onClick:u[1]||(u[1]=c=>a())},{default:m(()=>[f(j,{class:"pr-2"},{default:m(()=>[...u[4]||(u[4]=[k("bug_report",-1)])]),_:1}),u[5]||(u[5]=k(" Test Error ",-1))]),_:1})]),_:1}),f(et),f(sr,{usecols:!1,title:"Download a .zip file containing all logs from the server"},{default:m(()=>[f(ct,null,{default:m(()=>[f(Ae,{cols:"3"},{default:m(()=>[f(te,{color:"primary",onClick:u[2]||(u[2]=c=>s())},{default:m(()=>[f(j,null,{default:m(()=>[...u[6]||(u[6]=[k("download",-1)])]),_:1}),u[7]||(u[7]=k(" Download Log Files (.zip) ",-1))]),_:1})]),_:1})]),_:1})]),_:1}),f(et),f(sr,{title:"Clear log files"},{default:m(()=>[f(te,{color:"default",onClick:u[3]||(u[3]=c=>o())},{default:m(()=>[f(j,null,{default:m(()=>[...u[8]||(u[8]=[k("download",-1)])]),_:1}),u[9]||(u[9]=k(" Clear log files older than a week ",-1))]),_:1})]),_:1})]),_:1})]),_:1}))}}),y0e="job-thumbnail",b0e=(e,t)=>Ad({queryKey:[y0e,e],queryFn:async()=>{if(!e.value)return null;try{const n=await Jr.getThumbnails(e.value);if(!n||n.length===0)return null;const r=S0e(n);return r?await Jr.getThumbnailUrl(e.value,r.index):null}catch(n){return console.debug(`Failed to load thumbnail for job ${e.value}:`,n),null}},enabled:!!e.value&&t!==!1,staleTime:1e3*60*60,retry:!1});function S0e(e){if(!e||e.length===0)return null;const t=e.filter(s=>s.width>=100&&s.height>=100);if(t.length===0)return e.reduce((s,o)=>{const l=s.width*s.height;return o.width*o.height>l?o:s},e[0]);const n=400*400,r=800*800;let i=t[0],a=1/0;for(const s of t){const o=s.width*s.height;if(o>r)continue;const l=Math.abs(o-n);l<a&&(a=l,i=s)}return i}const w0e={class:"thumbnail-overlay"},E0e={key:1,class:"thumbnail-placeholder"},x0e=je({__name:"JobThumbnailCell",props:{jobId:{}},setup(e){const t=e,n=D(()=>t.jobId),{data:r,isLoading:i}=b0e(n),a=zt(Ht.JobThumbnailViewer),s=()=>{r.value&&a.openDialog({jobId:t.jobId})};return(o,l)=>(N(),le("div",{class:Oe(["thumbnail-container",{clickable:ne(r)}]),onClick:s},[ne(r)?(N(),Z(ai,{key:0,src:ne(r),alt:"Job thumbnail",class:"thumbnail-image"},{default:m(()=>[S("div",w0e,[f(j,{color:"white",size:"x-small"},{default:m(()=>[...l[0]||(l[0]=[k("zoom_in",-1)])]),_:1})])]),_:1},8,["src"])):!ne(i)&&!ne(r)?(N(),le("div",E0e,[f(j,{size:"small",color:"grey-darken-1"},{default:m(()=>[...l[1]||(l[1]=[k("image_not_supported",-1)])]),_:1})])):(N(),Z(Bn,{key:2,indeterminate:"",size:"24",width:"2",color:"primary"}))],2))}}),k0e=En(x0e,[["__scopeId","data-v-f62e903a"]]),C0e={class:"text-subtitle-1"},_0e={key:0,class:"text-caption text-medium-emphasis"},T0e={key:1,class:"text-caption text-medium-emphasis"},I0e={class:"text-body-2"},P0e={class:"text-caption text-medium-emphasis"},A0e={key:0,class:"text-body-2"},R0e={class:"text-caption text-medium-emphasis"},O0e={key:1,class:"text-medium-emphasis"},N0e={key:0,class:"progress-container"},D0e={class:"text-caption font-weight-bold"},L0e={key:1,class:"text-medium-emphasis"},F0e={key:0,class:"text-body-2"},$0e={key:1,class:"text-medium-emphasis"},M0e={class:"d-flex align-center"},V0e={class:"text-body-2 font-weight-medium"},B0e={key:0,class:"text-caption text-medium-emphasis"},U0e={key:1,class:"text-caption text-medium-emphasis"},j0e={class:"d-flex align-center"},z0e={class:"text-body-2 font-weight-medium"},H0e={key:0,class:"text-caption text-medium-emphasis"},W0e={key:1,class:"text-caption text-medium-emphasis"},G0e={key:1,class:"text-medium-emphasis"},q0e={key:0,class:"filament-info"},K0e={key:1,class:"text-caption text-medium-emphasis mt-1"},Y0e={key:1,class:"text-body-2"},X0e={key:2,class:"text-medium-emphasis"},J0e={key:0},Q0e=je({__name:"PrintJobs",setup(e){const t=Rd(),n=z("jobs");Ne(n,ye=>{ye==="queue"&&Le()});const r=z([]),i=z(!1),a=z(1),s=z(25),o=z(0),l=z([]),u=z(!1),c=z(1),d=z(50),p=z(0),{info:h,error:g}=Xt(),v=vn(),y=jr(),b=Xi(),E=zt(Ht.PrintJobDetailsDialog),w=z(!1),C=z(null),P=z(!1),_=z(!1),A=z(!1),I=z(null),T=z(!1),x=z(!1),R=z(null),O=z(!1),L=z(!1),F=z(null),W=z(!1),H=z(!1),B=z(null),$=z(!1),Y=z(!1),q=z(null),U=z([]),M=z(!1),K=z(!1),fe=z(null),he=z(null),Re=z(!1),{selectedTags:Q,selectedPrinterTypes:re,tags:X,loadTags:ie,matchesPrinter:we}=hl(),Pe=z([]),G=z([]),J=z([]),de=z([]),oe=z([]),be=new Date,Ce=new Date(be);Ce.setDate(Ce.getDate()-7);const ue=z({searchPrinter:"",searchFile:"",startDate:Ce.toISOString().split("T")[0],endDate:be.toISOString().split("T")[0],page:1,pageSize:25}),ge=D(()=>[ue.value.searchPrinter,ue.value.searchFile].filter(Boolean).join(" ")),_e=D(()=>{const ye=new Set;return r.value.forEach(ee=>{ee.status&&ye.add(ee.status)}),Array.from(ye).sort()}),ce=D(()=>{const ye=new Set;return r.value.forEach(ee=>{ee.metadata?.filamentType&&ye.add(ee.metadata.filamentType)}),Array.from(ye).sort()}),Be=D(()=>{const ye=new Set;return r.value.forEach(ee=>{ee.metadata?.printerModel&&ye.add(ee.metadata.printerModel)}),Array.from(ye).sort()}),Ie=ye=>{if(!ye)return"Unknown";const ee=v.printers.find(uB=>uB.id===ye);if(!ee)return"Unknown";const xe=y.socketStatesById[ye],Zt=y.printerEventsById[ye];return!xe||!Zt?"Unknown":b$(ee,xe,Zt)?.text||"Unknown"},Me=D(()=>{let ye=r.value;return Pe.value.length>0&&(ye=ye.filter(ee=>ee.printerId&&Pe.value.includes(ee.printerId))),(Q.value.length>0||re.value.length>0)&&(ye=ye.filter(ee=>{if(!ee.printerId)return!1;const xe=v.printers.find(Zt=>Zt.id===ee.printerId);return xe&&we(xe)})),G.value.length>0&&(ye=ye.filter(ee=>G.value.includes(ee.status))),J.value.length>0&&(ye=ye.filter(ee=>{const xe=Ie(ee.printerId);return J.value.includes(xe)})),de.value.length>0&&(ye=ye.filter(ee=>ee.metadata?.filamentType&&de.value.includes(ee.metadata.filamentType))),oe.value.length>0&&(ye=ye.filter(ee=>ee.metadata?.printerModel&&oe.value.includes(ee.metadata.printerModel))),ye}),Je=D(()=>n.value==="queue"?[{title:"Position",key:"queuePosition",sortable:!1},{title:"Printer",key:"printerName",sortable:!1},{title:"File Name",key:"fileName",sortable:!1},{title:"Status",key:"status",sortable:!1},{title:"Queued At",key:"createdAt",sortable:!1},{title:"Filament",key:"filament",sortable:!1},{title:"Actions",key:"actions",sortable:!1,align:"center"}]:[{title:"",key:"thumbnail",sortable:!1,width:"80px"},{title:"Printer",key:"printerName",sortable:!1},{title:"File Name",key:"fileName",sortable:!1},{title:"Status",key:"status",sortable:!1},{title:"Progress",key:"progress",sortable:!1},{title:"Started",key:"createdAt",sortable:!1},{title:"Ended",key:"endedAt",sortable:!1},{title:"Duration",key:"duration",sortable:!1},{title:"Filament",key:"filament",sortable:!1},{title:"Reason",key:"reason",sortable:!1},{title:"Actions",key:"actions",sortable:!1,align:"center"}]),Ze=D({get:()=>n.value==="jobs"?s.value:d.value,set:ye=>{n.value==="jobs"?s.value=ye:d.value=ye}}),At=D({get:()=>n.value==="jobs"?a.value:c.value,set:ye=>{n.value==="jobs"?a.value=ye:c.value=ye}}),pe=()=>{n.value==="jobs"?ke():Le()},me=dN(()=>{a.value=1,ke()},500);Nt(async()=>{await v.loadPrinters();const ye=t.query.printerId;if(ye){const ee=Number(ye);Pe.value=[ee]}await ke(),await ie()});const ke=async()=>{if(console.debug("[LoadJobs] loadPrintJobs called, loading state:",i.value),i.value){console.debug("[LoadJobs] Already loading, skipping...");return}i.value=!0;try{const ye={...ue.value,page:a.value,pageSize:s.value};Object.keys(ye).forEach(xe=>{ye[xe]===""&&delete ye[xe]}),console.debug("[LoadJobs] Fetching jobs with params:",ye);const ee=await Jr.searchJobsPaged(ye);r.value=ee.items,o.value=ee.count,console.debug("[LoadJobs] Received",ee.items.length,"jobs")}catch(ye){console.error("Failed to load print jobs:",ye),r.value=[],o.value=0}finally{i.value=!1}},Le=async()=>{u.value=!0;try{const ye=await Ml.getGlobalQueue(c.value,d.value);l.value=ye.items,p.value=ye.totalCount}catch(ye){console.error("Failed to load queue:",ye),l.value=[],p.value=0}finally{u.value=!1}},Ye=async(ye,ee)=>{try{await Ml.removeFromQueue(ye,ee),h("Removed from Queue","Job removed from queue successfully"),await Le()}catch(xe){console.error("Failed to remove from queue:",xe),g("Remove Failed",xe?.response?.data?.message||"Failed to remove job from queue")}},ut=ye=>({QUEUED:"info",PENDING:"warning",PRINTING:"success",COMPLETED:"success",FAILED:"error",CANCELLED:"warning"})[ye]||"default",St=ye=>{switch(ye){case"COMPLETED":return"success";case"FAILED":return"error";case"CANCELLED":return"warning";case"PRINTING":case"STARTING":return"primary";case"PAUSED":return"orange";case"ANALYZING":case"ANALYZED":case"QUEUED":return"info";case"PENDING":return"grey-darken-1";case"UNKNOWN":return"grey";default:return"grey"}},wt=ye=>{switch(ye){case"COMPLETED":return"check_circle";case"FAILED":return"error";case"CANCELLED":return"cancel";case"PRINTING":return"play_circle";case"STARTING":return"play_arrow";case"PAUSED":return"pause_circle";case"QUEUED":return"queue";case"PENDING":return"schedule";case"UNKNOWN":return"help_outline";default:return"help"}},rn=ye=>ye>=90?"success":ye>=50?"primary":ye>=25?"warning":"error",ft=ye=>{const ee=ye/3600;return ee<1?"success":ee<4?"primary":ee<8?"warning":"error"},Qe=ye=>ye?b.floorOfPrinter(ye)?.name||"No floor assigned":"Unknown",dt=()=>{ue.value={searchPrinter:"",searchFile:"",startDate:"",endDate:"",page:1,pageSize:25},Pe.value=[],Q.value=[],re.value=[],G.value=[],J.value=[],de.value=[],oe.value=[],a.value=1,ke()},Ut=ye=>{E.openDialog({jobId:ye.id})},Qt=D(()=>v.printers),Nr=D(()=>v.printers.filter(ye=>ye.enabled)),Md=ye=>ye.status==="COMPLETED",Gy=ye=>ye.status!=="PRINTING"&&ye.status!=="STARTING",ju=ye=>ye.status==="PRINTING"||ye.status==="PAUSED"||ye.status==="FAILED"||ye.status==="CANCELLED"||ye.status==="UNKNOWN",$4=ye=>ye.status==="PRINTING"||ye.status==="PAUSED"||ye.status==="COMPLETED"||ye.status==="CANCELLED"||ye.status==="UNKNOWN",M4=ye=>ye.status==="PRINTING"||ye.status==="PAUSED"||ye.status==="COMPLETED"||ye.status==="FAILED"||ye.status==="UNKNOWN",V4=ye=>ye.status==="PRINTING"||ye.status==="PAUSED"||ye.status==="COMPLETED"||ye.status==="FAILED"||ye.status==="CANCELLED",B4=ye=>ye.status!=="PRINTING"&&ye.status!=="STARTING",U4=ye=>ye.status==="COMPLETED"||ye.status==="FAILED"||ye.status==="CANCELLED",j4=async ye=>{try{const ee=await Jr.reAnalyzeJob(ye.id),xe=r.value.findIndex(Zt=>Zt.id===ye.id);xe!==-1&&(r.value[xe]=ee),h("Job Re-Analysis Started",`Re-analysis triggered for "${ye.fileName}". The job will be analyzed in the background.`,5e3)}catch(ee){console.error("Failed to re-analyze job:",ee),g("Re-Analysis Failed",ee?.response?.data?.message||ee?.message||"Failed to trigger job re-analysis. Please try again.")}},z4=ye=>{I.value=ye,A.value=!0},H4=async()=>{if(I.value){T.value=!0;try{const ye=await Jr.setJobCompleted(I.value.id),ee=r.value.findIndex(xe=>xe.id===I.value.id);ee!==-1&&(r.value[ee]=ye),h("Job Marked as Completed",`Successfully marked "${I.value.fileName}" as completed.`,3e3),A.value=!1,I.value=null}catch(ye){console.error("Failed to mark job as completed:",ye),g("Mark as Completed Failed",ye?.response?.data?.message||ye?.message||"Failed to mark job as completed. Please try again.")}finally{T.value=!1}}},W4=()=>{A.value=!1,I.value=null},G4=ye=>{R.value=ye,x.value=!0},q4=async()=>{if(R.value){O.value=!0;try{const ye=await Jr.setJobFailed(R.value.id),ee=r.value.findIndex(xe=>xe.id===R.value.id);ee!==-1&&(r.value[ee]=ye),h("Job Marked as Failed",`Successfully marked "${R.value.fileName}" as failed.`,3e3),x.value=!1,R.value=null}catch(ye){console.error("Failed to mark job as failed:",ye),g("Mark as Failed Failed",ye?.response?.data?.message||ye?.message||"Failed to mark job as failed. Please try again.")}finally{O.value=!1}}},K4=()=>{x.value=!1,R.value=null},Y4=ye=>{F.value=ye,L.value=!0},X4=async()=>{if(F.value){W.value=!0;try{const ye=await Jr.setJobCancelled(F.value.id),ee=r.value.findIndex(xe=>xe.id===F.value.id);ee!==-1&&(r.value[ee]=ye),h("Job Marked as Cancelled",`Successfully marked "${F.value.fileName}" as cancelled.`,3e3),L.value=!1,F.value=null}catch(ye){console.error("Failed to mark job as cancelled:",ye),g("Mark as Cancelled Failed",ye?.response?.data?.message||ye?.message||"Failed to mark job as cancelled. Please try again.")}finally{W.value=!1}}},J4=()=>{L.value=!1,F.value=null},Q4=ye=>{B.value=ye,H.value=!0},Z4=async()=>{if(B.value){$.value=!0;try{const ye=await Jr.setJobUnknown(B.value.id),ee=r.value.findIndex(xe=>xe.id===B.value.id);ee!==-1&&(r.value[ee]=ye),h("Job Marked as Unknown",`Successfully marked "${B.value.fileName}" as unknown.`,3e3),H.value=!1,B.value=null}catch(ye){console.error("Failed to mark job as unknown:",ye),g("Mark as Unknown Failed",ye?.response?.data?.message||ye?.message||"Failed to mark job as unknown. Please try again.")}finally{$.value=!1}}},eB=()=>{H.value=!1,B.value=null},tB=ye=>{C.value=ye,_.value=!1,w.value=!0},nB=async()=>{if(C.value){P.value=!0;try{const ye=await Jr.deleteJob(C.value.id,_.value),ee=r.value.findIndex(Zt=>Zt.id===C.value.id);ee!==-1&&(r.value.splice(ee,1),o.value--);let xe=`Successfully deleted job "${C.value.fileName}".`;ye?.fileDeleted?xe+=" File was also deleted from storage.":ye?.remainingReferences?xe+=` File kept (used by ${ye.remainingReferences} other job${ye.remainingReferences>1?"s":""}).`:_.value&&!ye?.fileDeleted&&(xe+=" File was kept (no other jobs reference it)."),h("Job Deleted",xe,4e3),w.value=!1,C.value=null,_.value=!1}catch(ye){console.error("Failed to delete job:",ye),g("Delete Failed",ye?.response?.data?.message||ye?.message||"Failed to delete job. Please try again.")}finally{P.value=!1}}},rB=()=>{w.value=!1,C.value=null,_.value=!1},iB=ye=>{q.value=ye,U.value=[],Y.value=!0},sB=async()=>{if(!(!q.value||U.value.length===0)){M.value=!0;try{for(const ye of U.value)await Ml.addToQueue(ye,q.value.id);h("Job Added to Queue",`Successfully added "${q.value.fileName}" to ${U.value.length} printer queue(s).`,3e3),Y.value=!1,q.value=null,U.value=[]}catch(ye){console.error("Failed to add job to queue:",ye),g("Add to Queue Failed",ye?.response?.data?.message||ye?.message||"Failed to add job to queue. Please try again.")}finally{M.value=!1}}},aB=()=>{Y.value=!1,q.value=null,U.value=[]},aC=ye=>{fe.value=ye,K.value=!0},oB=async()=>{if(!(!fe.value||!he.value)){Re.value=!0;try{await Ml.submitToPrinter(fe.value.jobId,he.value),h("Job Submitted to Printer",`Successfully submitted "${fe.value.fileName}" to the printer.`,3e3),K.value=!1,fe.value=null,he.value=null}catch(ye){console.error("Failed to submit job to printer:",ye),g("Submit to Printer Failed",ye?.response?.data?.message||ye?.message||"Failed to submit job to printer. Please try again.")}finally{Re.value=!1}}},lB=()=>{K.value=!1,fe.value=null,he.value=null};return(ye,ee)=>(N(),Z(ts,{fluid:"",class:"print-jobs-container"},{default:m(()=>[f(Ve,{class:"mb-4 mt-4",elevation:"1"},{default:m(()=>[f(st,{class:"d-flex align-center py-2"},{default:m(()=>[f(j,{class:"mr-2",color:"primary",size:"small"},{default:m(()=>[...ee[24]||(ee[24]=[k("search",-1)])]),_:1}),ee[30]||(ee[30]=S("span",{class:"text-subtitle-1"},"Search & Filters",-1)),f(ht),f(Rg,{modelValue:n.value,"onUpdate:modelValue":ee[0]||(ee[0]=xe=>n.value=xe),color:"primary",variant:"outlined",mandatory:"",divided:"",class:"mr-3"},{default:m(()=>[f(te,{value:"jobs",size:"small"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...ee[25]||(ee[25]=[k("history",-1)])]),_:1}),ee[26]||(ee[26]=k(" Jobs ",-1))]),_:1}),f(te,{value:"queue",size:"small"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...ee[27]||(ee[27]=[k("queue",-1)])]),_:1}),ee[28]||(ee[28]=k(" Queue ",-1)),p.value>0?(N(),Z(Od,{key:0,content:p.value,color:"primary",inline:"",class:"ml-1"},null,8,["content"])):se("",!0)]),_:1})]),_:1},8,["modelValue"]),f(te,{color:"primary",onClick:ee[1]||(ee[1]=xe=>n.value==="jobs"?ke():Le()),loading:n.value==="jobs"?i.value:u.value,variant:"elevated",size:"small"},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...ee[29]||(ee[29]=[k("refresh",-1)])]),_:1})]),_:1},8,["loading"])]),_:1}),f(qe,{class:"py-3"},{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"12",md:"6"},{default:m(()=>[f(CV,{modelValue:Pe.value,"onUpdate:modelValue":[ee[2]||(ee[2]=xe=>Pe.value=xe),ne(me)],items:Qt.value,"item-title":"name","item-value":"id",label:"Filter by printer","prepend-inner-icon":"print",variant:"outlined",density:"compact",multiple:"",chips:"",clearable:"","closable-chips":"","hide-details":""},{chip:m(({item:xe,props:Zt})=>[f(He,ve(Zt,{size:"small",closable:""}),{default:m(()=>[k(V(xe.title),1)]),_:2},1040)]),_:1},8,["modelValue","items","onUpdate:modelValue"])]),_:1}),f(Ae,{cols:"12",md:"6"},{default:m(()=>[f(yt,{modelValue:ue.value.searchFile,"onUpdate:modelValue":ee[3]||(ee[3]=xe=>ue.value.searchFile=xe),label:"Search by file","prepend-inner-icon":"description",variant:"outlined",density:"compact",clearable:"","hide-details":"",onInput:ne(me)},null,8,["modelValue","onInput"])]),_:1})]),_:1}),f(ct,{dense:"",class:"mt-2"},{default:m(()=>[f(Ae,{cols:"12",md:"3"},{default:m(()=>[f(yt,{modelValue:ue.value.startDate,"onUpdate:modelValue":ee[4]||(ee[4]=xe=>ue.value.startDate=xe),label:"Start Date",type:"date",variant:"outlined",density:"compact","prepend-inner-icon":"event","hide-details":"",onInput:ne(me)},null,8,["modelValue","onInput"])]),_:1}),f(Ae,{cols:"12",md:"3"},{default:m(()=>[f(yt,{modelValue:ue.value.endDate,"onUpdate:modelValue":ee[5]||(ee[5]=xe=>ue.value.endDate=xe),label:"End Date",type:"date",variant:"outlined",density:"compact","prepend-inner-icon":"event","hide-details":"",onInput:ne(me)},null,8,["modelValue","onInput"])]),_:1}),f(Ae,{cols:"12",md:"3"},{default:m(()=>[f(Uu,{modelValue:ne(re),"onUpdate:modelValue":ee[6]||(ee[6]=xe=>Tt(re)?re.value=xe:null),label:"Filter by Type"},null,8,["modelValue"])]),_:1}),ne(X).length?(N(),Z(Ae,{key:0,cols:"12",md:"3"},{default:m(()=>[f(Bu,{modelValue:ne(Q),"onUpdate:modelValue":ee[7]||(ee[7]=xe=>Tt(Q)?Q.value=xe:null),tags:ne(X),label:"Filter by Tags"},null,8,["modelValue","tags"])]),_:1})):se("",!0)]),_:1}),f(ct,{dense:"",class:"mt-2"},{default:m(()=>[f(Ae,{cols:"12",md:"3"},{default:m(()=>[f(Sr,{modelValue:G.value,"onUpdate:modelValue":ee[8]||(ee[8]=xe=>G.value=xe),items:_e.value,label:"Filter by Job Status","prepend-inner-icon":"info",variant:"outlined",density:"compact",multiple:"",chips:"",clearable:"","hide-details":""},{chip:m(({item:xe,props:Zt})=>[f(He,ve(Zt,{color:St(xe.value),size:"small",closable:""}),{default:m(()=>[k(V(xe.value),1)]),_:2},1040,["color"])]),_:1},8,["modelValue","items"])]),_:1}),f(Ae,{cols:"12",md:"3"},{default:m(()=>[f(Sr,{modelValue:J.value,"onUpdate:modelValue":ee[9]||(ee[9]=xe=>J.value=xe),items:["Disabled","Maintenance","Offline","Error","Paused","Operational","Printing"],label:"Filter by Printer State","prepend-inner-icon":"settings",variant:"outlined",density:"compact",multiple:"",chips:"",clearable:"","hide-details":""},{chip:m(({item:xe,props:Zt})=>[f(He,ve(Zt,{size:"small",closable:""}),{default:m(()=>[k(V(xe.value),1)]),_:2},1040)]),_:1},8,["modelValue"])]),_:1}),f(Ae,{cols:"12",md:"3"},{default:m(()=>[f(Sr,{modelValue:de.value,"onUpdate:modelValue":ee[10]||(ee[10]=xe=>de.value=xe),items:ce.value,label:"Filter by Material Type","prepend-inner-icon":"fiber_manual_record",variant:"outlined",density:"compact",multiple:"",chips:"",clearable:"","hide-details":""},{chip:m(({item:xe,props:Zt})=>[f(He,ve(Zt,{size:"small",closable:"",color:"green"}),{default:m(()=>[k(V(xe.value),1)]),_:2},1040)]),_:1},8,["modelValue","items"])]),_:1}),f(Ae,{cols:"12",md:"3"},{default:m(()=>[f(Sr,{modelValue:oe.value,"onUpdate:modelValue":ee[11]||(ee[11]=xe=>oe.value=xe),items:Be.value,label:"Filter by Printer Model","prepend-inner-icon":"print",variant:"outlined",density:"compact",multiple:"",chips:"",clearable:"","hide-details":""},{chip:m(({item:xe,props:Zt})=>[f(He,ve(Zt,{size:"small",closable:"",color:"primary"}),{default:m(()=>[k(V(xe.value),1)]),_:2},1040)]),_:1},8,["modelValue","items"])]),_:1})]),_:1})]),_:1})]),_:1}),f(Ve,{elevation:"1"},{default:m(()=>[f(st,{class:"d-flex align-center py-2"},{default:m(()=>[f(j,{class:"mr-2",color:"primary",size:"small"},{default:m(()=>[k(V(n.value==="jobs"?"list_alt":"queue"),1)]),_:1}),S("span",C0e,V(n.value==="jobs"?"Results":"Queue"),1),f(ht),n.value==="jobs"&&!i.value&&o.value>0?(N(),le("div",_0e,V((a.value-1)*s.value+1)+"-"+V(Math.min(a.value*s.value,o.value))+" of "+V(o.value),1)):se("",!0),n.value==="queue"&&!u.value&&p.value>0?(N(),le("div",T0e,V((c.value-1)*d.value+1)+"-"+V(Math.min(c.value*d.value,p.value))+" of "+V(p.value),1)):se("",!0)]),_:1}),f(qe,{class:"pa-0"},{default:m(()=>[f(u3,{"items-per-page":Ze.value,"onUpdate:itemsPerPage":ee[12]||(ee[12]=xe=>Ze.value=xe),page:At.value,"onUpdate:page":ee[13]||(ee[13]=xe=>At.value=xe),headers:Je.value,items:n.value==="jobs"?Me.value:l.value,"items-length":n.value==="jobs"?o.value:p.value,loading:n.value==="jobs"?i.value:u.value,search:n.value==="jobs"?ge.value:"",class:"print-jobs-table","loading-text":n.value==="jobs"?"Loading print jobs...":"Loading queue...","no-data-text":n.value==="jobs"?"No print jobs found":"No jobs in queue","onUpdate:options":pe},Uw({"item.status":m(({item:xe})=>[f(He,{color:n.value==="jobs"?St(xe.status):ut(xe.status),icon:n.value==="jobs"?wt(xe.status):void 0,size:"small",variant:"elevated"},{default:m(()=>[k(V(xe.status||"Unknown"),1)]),_:2},1032,["color","icon"])]),"item.createdAt":m(({item:xe})=>[S("div",I0e,[S("div",null,V(ne(yi)(xe.createdAt)),1),S("div",P0e,V(ne(op)(xe.createdAt)),1)])]),"item.printerName":m(({item:xe})=>[S("div",M0e,[f(Sn,{size:"24",class:"mr-2",color:"primary"},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...ee[33]||(ee[33]=[k("print",-1)])]),_:1})]),_:1}),S("div",null,[S("div",V0e,V(xe.printerName||`Printer ${xe.printerId}`),1),n.value==="jobs"?(N(),le("div",B0e,V(Qe(xe.printerId)),1)):(N(),le("div",U0e," ID: "+V(xe.printerId),1))])])]),"item.fileName":m(({item:xe})=>[S("div",j0e,[f(j,{class:"mr-2",size:"small",color:"primary"},{default:m(()=>[...ee[34]||(ee[34]=[k("description",-1)])]),_:1}),S("div",null,[S("div",z0e,V(xe.fileName),1),n.value==="jobs"&&xe.metadata?.gcodePrintTimeSeconds?(N(),le("div",H0e," Est. "+V(ne(ma)(xe.metadata.gcodePrintTimeSeconds)),1)):se("",!0),n.value==="queue"&&xe.estimatedTimeSeconds?(N(),le("div",W0e," Est. "+V(ne(ma)(xe.estimatedTimeSeconds)),1)):se("",!0)])])]),"item.filament":m(({item:xe})=>[n.value==="jobs"&&(xe.metadata?.filamentUsedGrams||xe.metadata?.filamentUsedMm)?(N(),le("div",q0e,[xe.metadata?.filamentUsedGrams?(N(),Z(He,{key:0,color:"green",size:"small",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...ee[36]||(ee[36]=[k("fitness_center",-1)])]),_:1}),k(" "+V(Math.round(xe.metadata.filamentUsedGrams))+"g ",1)]),_:2},1024)):se("",!0),xe.metadata?.filamentUsedMm?(N(),le("div",K0e,V(Math.round(xe.metadata.filamentUsedMm/1e3))+"m ",1)):se("",!0)])):n.value==="queue"&&xe.filamentGrams?(N(),le("div",Y0e,[f(He,{color:"purple",size:"small",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...ee[37]||(ee[37]=[k("science",-1)])]),_:1}),k(" "+V(xe.filamentGrams.toFixed(1))+"g ",1)]),_:2},1024)])):(N(),le("span",X0e,"-"))]),"item.actions":m(({item:xe})=>[n.value==="queue"?(N(),le("div",J0e,[f(te,{icon:"send",size:"small",variant:"text",color:"success",onClick:Zt=>aC(xe)},{default:m(()=>[f(j,null,{default:m(()=>[...ee[38]||(ee[38]=[k("send",-1)])]),_:1}),f(sn,{activator:"parent",location:"top"},{default:m(()=>[...ee[39]||(ee[39]=[k(" Submit to printer ",-1)])]),_:1})]),_:1},8,["onClick"]),f(te,{icon:"delete",size:"small",variant:"text",color:"error",onClick:Zt=>Ye(xe.printerId,xe.jobId)},{default:m(()=>[f(j,null,{default:m(()=>[...ee[40]||(ee[40]=[k("delete",-1)])]),_:1}),f(sn,{activator:"parent",location:"top"},{default:m(()=>[...ee[41]||(ee[41]=[k(" Remove from queue ",-1)])]),_:1})]),_:1},8,["onClick"])])):(N(),Z(li,{key:1},{activator:m(({props:Zt})=>[f(te,ve({icon:"",size:"small",variant:"text"},Zt),{default:m(()=>[f(j,null,{default:m(()=>[...ee[42]||(ee[42]=[k("more_vert",-1)])]),_:1})]),_:1},16)]),default:m(()=>[f(hr,null,{default:m(()=>[f(ot,{onClick:Zt=>Ut(xe)},{prepend:m(()=>[f(j,null,{default:m(()=>[...ee[43]||(ee[43]=[k("info",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...ee[44]||(ee[44]=[k("View Details",-1)])]),_:1})]),_:1},8,["onClick"]),f(ot,{onClick:Zt=>iB(xe),disabled:!Md(xe)},{prepend:m(()=>[f(j,null,{default:m(()=>[...ee[45]||(ee[45]=[k("playlist_add",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...ee[46]||(ee[46]=[k("Add to Queue",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(ot,{onClick:Zt=>aC(xe),disabled:!U4(xe)},{prepend:m(()=>[f(j,null,{default:m(()=>[...ee[47]||(ee[47]=[k("send",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...ee[48]||(ee[48]=[k("Submit to Printer",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(et),f(ot,{onClick:Zt=>j4(xe),disabled:!Gy(xe)},{prepend:m(()=>[f(j,null,{default:m(()=>[...ee[49]||(ee[49]=[k("refresh",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...ee[50]||(ee[50]=[k("Re-Analyze",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(ot,{onClick:Zt=>z4(xe),disabled:!ju(xe)},{prepend:m(()=>[f(j,null,{default:m(()=>[...ee[51]||(ee[51]=[k("check_circle",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...ee[52]||(ee[52]=[k("Mark as Completed",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(ot,{onClick:Zt=>G4(xe),disabled:!$4(xe)},{prepend:m(()=>[f(j,null,{default:m(()=>[...ee[53]||(ee[53]=[k("error",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...ee[54]||(ee[54]=[k("Mark as Failed",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(ot,{onClick:Zt=>Y4(xe),disabled:!M4(xe)},{prepend:m(()=>[f(j,null,{default:m(()=>[...ee[55]||(ee[55]=[k("cancel",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...ee[56]||(ee[56]=[k("Mark as Cancelled",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(ot,{onClick:Zt=>Q4(xe),disabled:!V4(xe)},{prepend:m(()=>[f(j,null,{default:m(()=>[...ee[57]||(ee[57]=[k("help",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...ee[58]||(ee[58]=[k("Mark as Unknown",-1)])]),_:1})]),_:1},8,["onClick","disabled"]),f(et),f(ot,{onClick:Zt=>tB(xe),disabled:!B4(xe),class:"text-error"},{prepend:m(()=>[f(j,{color:"error"},{default:m(()=>[...ee[59]||(ee[59]=[k("delete",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...ee[60]||(ee[60]=[k("Delete Job",-1)])]),_:1})]),_:1},8,["onClick","disabled"])]),_:2},1024)]),_:2},1024))]),loading:m(()=>[f(sge,{type:"table-row@5"})]),_:2},[n.value==="jobs"?{name:"item.thumbnail",fn:m(({item:xe})=>[f(k0e,{"job-id":xe.id},null,8,["job-id"])]),key:"0"}:void 0,n.value==="queue"?{name:"item.queuePosition",fn:m(({item:xe})=>[f(He,{size:"small",color:"info",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...ee[31]||(ee[31]=[k("format_list_numbered",-1)])]),_:1}),k(" Position "+V(xe.queuePosition),1)]),_:2},1024)]),key:"1"}:void 0,n.value==="jobs"?{name:"item.endedAt",fn:m(({item:xe})=>[xe.endedAt?(N(),le("div",A0e,[S("div",null,V(ne(yi)(xe.endedAt)),1),S("div",R0e,V(ne(op)(xe.endedAt)),1)])):(N(),le("span",O0e,"-"))]),key:"2"}:void 0,n.value==="jobs"?{name:"item.progress",fn:m(({item:xe})=>[xe.progress!==null?(N(),le("div",N0e,[f(si,{"model-value":xe.progress,color:rn(xe.progress),height:"20",rounded:"",class:"mb-1"},{default:m(()=>[S("span",D0e,V(Math.round(xe.progress))+"% ",1)]),_:2},1032,["model-value","color"])])):(N(),le("span",L0e,"-"))]),key:"3"}:void 0,n.value==="jobs"?{name:"item.duration",fn:m(({item:xe})=>[xe.statistics?.actualPrintTimeSeconds?(N(),le("div",F0e,[f(He,{color:ft(xe.statistics.actualPrintTimeSeconds),size:"small",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...ee[32]||(ee[32]=[k("schedule",-1)])]),_:1}),k(" "+V(ne(ma)(xe.statistics.actualPrintTimeSeconds)),1)]),_:2},1032,["color"])])):(N(),le("span",$0e,"-"))]),key:"4"}:void 0,n.value==="jobs"?{name:"item.reason",fn:m(({item:xe})=>[xe.statusReason?(N(),Z(sn,{key:0,location:"top"},{activator:m(({props:Zt})=>[f(j,ve(Zt,{color:"warning",size:"small"}),{default:m(()=>[...ee[35]||(ee[35]=[k("info",-1)])]),_:1},16)]),default:m(()=>[S("span",null,V(xe.statusReason),1)]),_:2},1024)):(N(),le("span",G0e,"-"))]),key:"5"}:void 0]),1032,["items-per-page","page","headers","items","items-length","loading","search","loading-text","no-data-text"])]),_:1})]),_:1}),n.value==="jobs"&&!i.value&&o.value===0?(N(),Z(Ve,{key:0,class:"mt-4",elevation:"1"},{default:m(()=>[f(qe,{class:"text-center py-8"},{default:m(()=>[f(j,{size:"48",color:"grey-lighten-1",class:"mb-3"},{default:m(()=>[...ee[61]||(ee[61]=[k("work_off",-1)])]),_:1}),ee[64]||(ee[64]=S("h3",{class:"text-subtitle-1 mb-2"},"No Print Jobs Found",-1)),ee[65]||(ee[65]=S("p",{class:"text-body-2 text-medium-emphasis mb-3"}," Try adjusting your search criteria or date range ",-1)),f(te,{color:"primary",size:"small",onClick:dt},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...ee[62]||(ee[62]=[k("clear_all",-1)])]),_:1}),ee[63]||(ee[63]=k(" Clear Filters ",-1))]),_:1})]),_:1})]),_:1})):se("",!0),f(Fr,{modelValue:A.value,"onUpdate:modelValue":ee[14]||(ee[14]=xe=>A.value=xe),"max-width":"500"},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center bg-success text-on-success"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...ee[66]||(ee[66]=[k("check_circle",-1)])]),_:1}),ee[67]||(ee[67]=S("span",null,"Mark Job as Completed?",-1))]),_:1}),f(qe,{class:"pt-4"},{default:m(()=>[ee[69]||(ee[69]=S("p",{class:"text-body-1 mb-2"}," Are you sure you want to mark this print job as completed? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[ee[68]||(ee[68]=S("strong",null,"Job:",-1)),k(" "+V(I.value?.fileName),1)]),_:1}),ee[70]||(ee[70]=S("p",{class:"text-body-2 text-medium-emphasis"}," This will set the job status to COMPLETED and update the end time to now. ",-1))]),_:1}),f(et),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:W4,disabled:T.value},{default:m(()=>[...ee[71]||(ee[71]=[k(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"success",variant:"elevated",onClick:H4,loading:T.value},{default:m(()=>[...ee[72]||(ee[72]=[k(" Mark as Completed ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Fr,{modelValue:x.value,"onUpdate:modelValue":ee[15]||(ee[15]=xe=>x.value=xe),"max-width":"500"},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center bg-error text-on-error"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...ee[73]||(ee[73]=[k("error",-1)])]),_:1}),ee[74]||(ee[74]=S("span",null,"Mark Job as Failed?",-1))]),_:1}),f(qe,{class:"pt-4"},{default:m(()=>[ee[76]||(ee[76]=S("p",{class:"text-body-1 mb-2"}," Are you sure you want to mark this print job as failed? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[ee[75]||(ee[75]=S("strong",null,"Job:",-1)),k(" "+V(R.value?.fileName),1)]),_:1}),ee[77]||(ee[77]=S("p",{class:"text-body-2 text-medium-emphasis"}," This will set the job status to FAILED and update the end time to now. ",-1))]),_:1}),f(et),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:K4,disabled:O.value},{default:m(()=>[...ee[78]||(ee[78]=[k(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"error",variant:"elevated",onClick:q4,loading:O.value},{default:m(()=>[...ee[79]||(ee[79]=[k(" Mark as Failed ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Fr,{modelValue:L.value,"onUpdate:modelValue":ee[16]||(ee[16]=xe=>L.value=xe),"max-width":"500"},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center bg-warning text-on-warning"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...ee[80]||(ee[80]=[k("cancel",-1)])]),_:1}),ee[81]||(ee[81]=S("span",null,"Mark Job as Cancelled?",-1))]),_:1}),f(qe,{class:"pt-4"},{default:m(()=>[ee[83]||(ee[83]=S("p",{class:"text-body-1 mb-2"}," Are you sure you want to mark this print job as cancelled? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[ee[82]||(ee[82]=S("strong",null,"Job:",-1)),k(" "+V(F.value?.fileName),1)]),_:1}),ee[84]||(ee[84]=S("p",{class:"text-body-2 text-medium-emphasis"}," This will set the job status to CANCELLED and update the end time to now. ",-1))]),_:1}),f(et),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:J4,disabled:W.value},{default:m(()=>[...ee[85]||(ee[85]=[k(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"warning",variant:"elevated",onClick:X4,loading:W.value},{default:m(()=>[...ee[86]||(ee[86]=[k(" Mark as Cancelled ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Fr,{modelValue:H.value,"onUpdate:modelValue":ee[17]||(ee[17]=xe=>H.value=xe),"max-width":"500"},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center bg-grey text-on-grey"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...ee[87]||(ee[87]=[k("help",-1)])]),_:1}),ee[88]||(ee[88]=S("span",null,"Mark Job as Unknown?",-1))]),_:1}),f(qe,{class:"pt-4"},{default:m(()=>[ee[90]||(ee[90]=S("p",{class:"text-body-1 mb-2"}," Are you sure you want to mark this print job status as unknown? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[ee[89]||(ee[89]=S("strong",null,"Job:",-1)),k(" "+V(B.value?.fileName),1)]),_:1}),ee[91]||(ee[91]=S("p",{class:"text-body-2 text-medium-emphasis"}," This will set the job status to UNKNOWN. ",-1))]),_:1}),f(et),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:eB,disabled:$.value},{default:m(()=>[...ee[92]||(ee[92]=[k(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"grey",variant:"elevated",onClick:Z4,loading:$.value},{default:m(()=>[...ee[93]||(ee[93]=[k(" Mark as Unknown ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Fr,{modelValue:Y.value,"onUpdate:modelValue":ee[19]||(ee[19]=xe=>Y.value=xe),"max-width":"600"},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center bg-primary text-on-primary"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...ee[94]||(ee[94]=[k("playlist_add",-1)])]),_:1}),ee[95]||(ee[95]=S("span",null,"Add Job to Queue",-1))]),_:1}),f(qe,{class:"pt-4"},{default:m(()=>[ee[97]||(ee[97]=S("p",{class:"text-body-1 mb-3"}," Select which printer(s) should queue this job: ",-1)),f(kt,{type:"info",density:"compact",class:"mb-3"},{default:m(()=>[ee[96]||(ee[96]=S("strong",null,"Job:",-1)),k(" "+V(q.value?.fileName),1)]),_:1}),f(Sr,{modelValue:U.value,"onUpdate:modelValue":ee[18]||(ee[18]=xe=>U.value=xe),items:Nr.value,"item-title":"name","item-value":"id",label:"Select Printer(s)",multiple:"",chips:"","prepend-inner-icon":"print",variant:"outlined",density:"comfortable",hint:"You can select multiple printers","persistent-hint":""},{chip:m(({item:xe,props:Zt})=>[f(He,ve(Zt,{color:"primary",closable:""}),{default:m(()=>[k(V(xe.title),1)]),_:2},1040)]),_:1},8,["modelValue","items"])]),_:1}),f(et),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:aB,disabled:M.value},{default:m(()=>[...ee[98]||(ee[98]=[k(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"primary",variant:"elevated",onClick:sB,loading:M.value,disabled:U.value.length===0},{default:m(()=>[k(" Add to Queue ("+V(U.value.length)+") ",1)]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Fr,{modelValue:w.value,"onUpdate:modelValue":ee[21]||(ee[21]=xe=>w.value=xe),"max-width":"500"},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center bg-error text-on-error"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...ee[99]||(ee[99]=[k("warning",-1)])]),_:1}),ee[100]||(ee[100]=S("span",null,"Delete Print Job?",-1))]),_:1}),f(qe,{class:"pt-4"},{default:m(()=>[ee[103]||(ee[103]=S("p",{class:"text-body-1 mb-2"}," Are you sure you want to delete this print job? ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[ee[101]||(ee[101]=S("strong",null,"Job:",-1)),k(" "+V(C.value?.fileName),1)]),_:1}),C.value?.fileStorageId?(N(),Z(Nn,{key:0,modelValue:_.value,"onUpdate:modelValue":ee[20]||(ee[20]=xe=>_.value=xe),label:"Also delete the file from storage",color:"error",density:"compact","hide-details":"",class:"mb-2"},{label:m(()=>[...ee[102]||(ee[102]=[S("div",{class:"text-body-2"},[k(" Also delete the file from storage "),S("div",{class:"text-caption text-medium-emphasis"}," (File will only be deleted if not used by other jobs) ")],-1)])]),_:1},8,["modelValue"])):se("",!0),ee[104]||(ee[104]=S("p",{class:"text-body-2 text-medium-emphasis"}," This action cannot be undone. All job data and metadata will be permanently removed. ",-1))]),_:1}),f(et),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:rB,disabled:P.value},{default:m(()=>[...ee[105]||(ee[105]=[k(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"error",variant:"elevated",onClick:nB,loading:P.value},{default:m(()=>[...ee[106]||(ee[106]=[k(" Delete Job ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Fr,{modelValue:K.value,"onUpdate:modelValue":ee[23]||(ee[23]=xe=>K.value=xe),"max-width":"500"},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,{class:"d-flex align-center bg-success text-on-success"},{default:m(()=>[f(j,{class:"mr-3"},{default:m(()=>[...ee[107]||(ee[107]=[k("print",-1)])]),_:1}),ee[108]||(ee[108]=S("span",null,"Submit Job to Printer",-1))]),_:1}),f(qe,{class:"pt-4"},{default:m(()=>[ee[110]||(ee[110]=S("p",{class:"text-body-1 mb-2"}," Select the printer you want to submit this job to: ",-1)),f(kt,{type:"info",density:"compact",class:"mb-2"},{default:m(()=>[ee[109]||(ee[109]=S("strong",null,"Job:",-1)),k(" "+V(fe.value?.fileName),1)]),_:1}),f(Sr,{modelValue:he.value,"onUpdate:modelValue":ee[22]||(ee[22]=xe=>he.value=xe),items:Nr.value,"item-title":"name","item-value":"id",label:"Select Printer","prepend-inner-icon":"print",variant:"outlined",density:"comfortable"},null,8,["modelValue","items"])]),_:1}),f(et),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:lB,disabled:Re.value},{default:m(()=>[...ee[111]||(ee[111]=[k(" Cancel ",-1)])]),_:1},8,["disabled"]),f(te,{color:"success",variant:"elevated",onClick:oB,loading:Re.value,disabled:!he.value},{default:m(()=>[...ee[112]||(ee[112]=[k(" Submit to Printer ",-1)])]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}))}}),N4=En(Q0e,[["__scopeId","data-v-4de6f02c"]]),Z0e=je({name:"PrintJobsView",components:{PrintJobs:N4}});function eSe(e,t,n,r,i,a){const s=N4;return N(),Z(ts,{fluid:"",class:"pa-0"},{default:m(()=>[f(s)]),_:1})}const tSe=En(Z0e,[["render",eSe]]),nSe={class:"d-flex align-center"},rSe={class:"text-body-1 font-weight-medium"},iSe={class:"text-caption text-medium-emphasis"},sSe={class:"d-flex align-center"},aSe={class:"text-body-1 font-weight-medium"},oSe={class:"text-caption text-medium-emphasis"},lSe={class:"d-flex align-center"},uSe={class:"text-body-1 font-weight-medium"},cSe={class:"text-caption text-medium-emphasis"},dSe={class:"text-body-1"},fSe={class:"d-flex flex-wrap ga-2"},pSe={class:"text-body-1",style:{"white-space":"pre-wrap"}},mSe={class:"text-body-1",style:{"white-space":"pre-wrap"}},hSe=je({__name:"MaintenanceLogDetailsDialog",props:{modelValue:{type:Boolean},log:{}},emits:["update:modelValue","updated"],setup(e,{emit:t}){const n=Xi(),r=e,i=t;function a(){i("update:modelValue",!1)}function s(u){return u?n.floorOfPrinter(u)?.name||"No floor assigned":"Unknown"}function o(){if(!r.log)return"-";const u=new Date(r.log.createdAt),c=r.log.completedAt?new Date(r.log.completedAt):new Date,d=Math.floor((c.getTime()-u.getTime())/1e3);return ma(d)}async function l(){if(r.log)try{await Za.complete(r.log.id,{}),i("updated"),a()}catch(u){console.error("Failed to complete log:",u)}}return(u,c)=>(N(),Z(Fr,{"model-value":e.modelValue,"max-width":"800px","onUpdate:modelValue":c[0]||(c[0]=d=>u.$emit("update:modelValue",d))},{default:m(()=>[e.log?(N(),Z(Ve,{key:0},{default:m(()=>[f(st,{class:"d-flex align-center py-3 px-4"},{default:m(()=>[f(j,{class:"mr-2",color:"primary"},{default:m(()=>[...c[1]||(c[1]=[k("info",-1)])]),_:1}),c[2]||(c[2]=S("span",{class:"text-h6"},"Maintenance Log Details",-1)),f(ht),f(te,{icon:"close",variant:"text",onClick:a})]),_:1}),f(et),f(qe,{class:"py-4"},{default:m(()=>[f(ct,null,{default:m(()=>[f(Ae,{cols:"12"},{default:m(()=>[c[3]||(c[3]=S("div",{class:"text-subtitle-2 text-medium-emphasis mb-2"},"Status",-1)),f(He,{color:e.log.completed?"success":"warning",icon:e.log.completed?"check_circle":"build",variant:"elevated"},{default:m(()=>[k(V(e.log.completed?"Completed":"Active"),1)]),_:1},8,["color","icon"])]),_:1}),f(Ae,{cols:"12",md:"6"},{default:m(()=>[c[5]||(c[5]=S("div",{class:"text-subtitle-2 text-medium-emphasis mb-2"},"Printer",-1)),S("div",nSe,[f(Sn,{size:"32",class:"mr-2",color:"primary"},{default:m(()=>[f(j,null,{default:m(()=>[...c[4]||(c[4]=[k("print",-1)])]),_:1})]),_:1}),S("div",null,[S("div",rSe,V(e.log.printerName),1),S("div",iSe,V(s(e.log.printerId)),1)])])]),_:1}),f(Ae,{cols:"12",md:"6"},{default:m(()=>[c[7]||(c[7]=S("div",{class:"text-subtitle-2 text-medium-emphasis mb-2"},"Created",-1)),S("div",sSe,[f(Sn,{size:"32",class:"mr-2",color:"secondary"},{default:m(()=>[f(j,null,{default:m(()=>[...c[6]||(c[6]=[k("person",-1)])]),_:1})]),_:1}),S("div",null,[S("div",aSe,V(e.log.createdBy),1),S("div",oSe,V(ne(yi)(e.log.createdAt)),1)])])]),_:1}),e.log.completed&&e.log.completedBy?(N(),Z(Ae,{key:0,cols:"12",md:"6"},{default:m(()=>[c[9]||(c[9]=S("div",{class:"text-subtitle-2 text-medium-emphasis mb-2"},"Completed",-1)),S("div",lSe,[f(Sn,{size:"32",class:"mr-2",color:"secondary"},{default:m(()=>[f(j,null,{default:m(()=>[...c[8]||(c[8]=[k("person",-1)])]),_:1})]),_:1}),S("div",null,[S("div",uSe,V(e.log.completedBy),1),S("div",cSe,V(ne(yi)(e.log.completedAt)),1)])])]),_:1})):se("",!0),f(Ae,{cols:"12",md:"6"},{default:m(()=>[c[10]||(c[10]=S("div",{class:"text-subtitle-2 text-medium-emphasis mb-2"},"Duration",-1)),f(He,{color:e.log.completed?"info":"warning","prepend-icon":"schedule",variant:"tonal"},{default:m(()=>[k(V(o()),1)]),_:1},8,["color"])]),_:1}),f(Ae,{cols:"12"},{default:m(()=>[f(et)]),_:1}),f(Ae,{cols:"12"},{default:m(()=>[c[11]||(c[11]=S("div",{class:"text-subtitle-2 text-medium-emphasis mb-2"},"Cause",-1)),f(Ve,{variant:"tonal",color:"warning"},{default:m(()=>[f(qe,null,{default:m(()=>[S("div",dSe,V(e.log.metadata?.cause||"No cause specified"),1)]),_:1})]),_:1})]),_:1}),e.log.metadata?.partsInvolved?.length?(N(),Z(Ae,{key:1,cols:"12"},{default:m(()=>[c[13]||(c[13]=S("div",{class:"text-subtitle-2 text-medium-emphasis mb-2"},"Parts Involved",-1)),S("div",fSe,[(N(!0),le(De,null,Vt(e.log.metadata.partsInvolved,(d,p)=>(N(),Z(He,{key:p,color:"info",variant:"tonal"},{default:m(()=>[f(j,{start:""},{default:m(()=>[...c[12]||(c[12]=[k("build",-1)])]),_:1}),k(" "+V(d),1)]),_:2},1024))),128))])]),_:1})):se("",!0),e.log.metadata?.notes?(N(),Z(Ae,{key:2,cols:"12"},{default:m(()=>[c[14]||(c[14]=S("div",{class:"text-subtitle-2 text-medium-emphasis mb-2"},"Notes",-1)),f(Ve,{variant:"outlined"},{default:m(()=>[f(qe,null,{default:m(()=>[S("div",pSe,V(e.log.metadata.notes),1)]),_:1})]),_:1})]),_:1})):se("",!0),e.log.metadata?.completionNotes?(N(),Z(Ae,{key:3,cols:"12"},{default:m(()=>[c[15]||(c[15]=S("div",{class:"text-subtitle-2 text-medium-emphasis mb-2"},"Completion Notes",-1)),f(Ve,{variant:"tonal",color:"success"},{default:m(()=>[f(qe,null,{default:m(()=>[S("div",mSe,V(e.log.metadata.completionNotes),1)]),_:1})]),_:1})]),_:1})):se("",!0)]),_:1})]),_:1}),f(et),f(Wt,{class:"px-4 py-3"},{default:m(()=>[f(ht),f(te,{variant:"text",onClick:a},{default:m(()=>[...c[16]||(c[16]=[k(" Close ",-1)])]),_:1}),e.log.completed?se("",!0):(N(),Z(te,{key:0,color:"success",variant:"elevated","prepend-icon":"check_circle",onClick:l},{default:m(()=>[...c[17]||(c[17]=[k(" Mark as Completed ",-1)])]),_:1}))]),_:1})]),_:1})):se("",!0)]),_:1},8,["model-value"]))}}),gSe=En(hSe,[["__scopeId","data-v-78e7a202"]]),vSe={key:0,class:"text-caption text-medium-emphasis"},ySe={class:"text-body-2"},bSe={class:"text-caption text-medium-emphasis"},SSe={key:0,class:"text-body-2"},wSe={class:"text-caption text-medium-emphasis"},ESe={key:1,class:"text-medium-emphasis"},xSe={class:"d-flex align-center"},kSe={class:"text-body-2 font-weight-medium"},CSe={class:"text-caption text-medium-emphasis"},_Se={key:0,class:"text-body-2"},TSe={key:1,class:"text-medium-emphasis"},ISe={key:0,class:"d-flex flex-wrap ga-1"},PSe={key:1,class:"text-medium-emphasis"},ASe={class:"d-flex align-center"},RSe={class:"text-body-2"},OSe={key:0,class:"d-flex align-center"},NSe={class:"text-body-2"},DSe={key:1,class:"text-medium-emphasis"},LSe=je({__name:"MaintenanceLogs",setup(e){const t=vn(),n=Xi(),{tags:r,selectedTags:i,selectedPrinterTypes:a,filterPrinters:s,loadTags:o}=hl(),l=z([]),u=z(!1),c=z(0),d=z(1),p=z(20),h=z(void 0),g=z(void 0),v=z(!1),y=z(null),b=D(()=>s(t.printers)),E=[{title:"Active",value:"active"},{title:"Completed",value:"completed"}],w=[{title:"Status",key:"completed",sortable:!1,width:"120px"},{title:"Printer",key:"printerName",sortable:!1,width:"200px"},{title:"Cause",key:"cause",sortable:!1,width:"250px"},{title:"Parts Involved",key:"partsInvolved",sortable:!1,width:"200px"},{title:"Created",key:"createdAt",sortable:!1,width:"180px"},{title:"Created By",key:"createdBy",sortable:!1,width:"150px"},{title:"Completed",key:"completedAt",sortable:!1,width:"180px"},{title:"Completed By",key:"completedBy",sortable:!1,width:"150px"},{title:"Actions",key:"actions",sortable:!1,align:"end",width:"100px"}];async function C(){u.value=!0;try{const R=g.value==="completed"?!0:void 0,O=g.value==="active"?!1:R,L=await Za.listLogs({printerId:h.value,completed:O,page:d.value,pageSize:p.value});l.value=L.logs,c.value=L.total}catch(R){console.error("Failed to load maintenance logs:",R)}finally{u.value=!1}}const P=dN(()=>{d.value=1,C()},500);function _(R){d.value=R.page,p.value=R.itemsPerPage,C()}function A(R){y.value=R,v.value=!0}async function I(R){try{await Za.complete(R.id,{}),await C()}catch(O){console.error("Failed to complete log:",O)}}async function T(R){if(confirm("Are you sure you want to delete this maintenance log?"))try{await Za.deleteLog(R.id),await C()}catch(O){console.error("Failed to delete log:",O)}}function x(R){return R?n.floorOfPrinter(R)?.name||"No floor assigned":"Unknown"}return Nt(()=>{C(),o()}),(R,O)=>(N(),Z(ts,{fluid:"",class:"maintenance-logs-container"},{default:m(()=>[f(Ve,{class:"mb-4 mt-4",elevation:"1"},{default:m(()=>[f(st,{class:"d-flex align-center py-2"},{default:m(()=>[f(j,{class:"mr-2",color:"primary",size:"small"},{default:m(()=>[...O[7]||(O[7]=[k("search",-1)])]),_:1}),O[9]||(O[9]=S("span",{class:"text-subtitle-1"},"Search & Filters",-1)),f(ht),f(te,{color:"primary",onClick:C,loading:u.value,variant:"elevated",size:"small"},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...O[8]||(O[8]=[k("refresh",-1)])]),_:1})]),_:1},8,["loading"])]),_:1}),f(qe,{class:"py-3"},{default:m(()=>[f(ct,{dense:""},{default:m(()=>[f(Ae,{cols:"12",md:"4"},{default:m(()=>[f(CV,{modelValue:h.value,"onUpdate:modelValue":[O[0]||(O[0]=L=>h.value=L),ne(P)],items:b.value,"item-title":"name","item-value":"id",label:"Filter by printer","prepend-inner-icon":"print",variant:"outlined",density:"compact",clearable:"","hide-details":""},null,8,["modelValue","items","onUpdate:modelValue"])]),_:1}),f(Ae,{cols:"12",md:"4"},{default:m(()=>[f(Sr,{modelValue:g.value,"onUpdate:modelValue":[O[1]||(O[1]=L=>g.value=L),ne(P)],items:E,label:"Filter by status","prepend-inner-icon":"info",variant:"outlined",density:"compact",clearable:"","hide-details":""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),f(Ae,{cols:"12",md:"4"},{default:m(()=>[f(Uu,{modelValue:ne(a),"onUpdate:modelValue":[O[2]||(O[2]=L=>Tt(a)?a.value=L:null),ne(P)],label:"Filter by Type"},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1}),ne(r).length?(N(),Z(ct,{key:0,dense:"",class:"mt-2"},{default:m(()=>[f(Ae,{cols:"12"},{default:m(()=>[f(Bu,{modelValue:ne(i),"onUpdate:modelValue":[O[3]||(O[3]=L=>Tt(i)?i.value=L:null),ne(P)],tags:ne(r),label:"Filter by Tags"},null,8,["modelValue","tags","onUpdate:modelValue"])]),_:1})]),_:1})):se("",!0)]),_:1})]),_:1}),f(Ve,{elevation:"1"},{default:m(()=>[f(st,{class:"d-flex align-center py-2"},{default:m(()=>[f(j,{class:"mr-2",color:"primary",size:"small"},{default:m(()=>[...O[10]||(O[10]=[k("list_alt",-1)])]),_:1}),O[11]||(O[11]=S("span",{class:"text-subtitle-1"},"Maintenance Logs",-1)),f(ht),!u.value&&c.value>0?(N(),le("div",vSe,V((d.value-1)*p.value+1)+"-"+V(Math.min(d.value*p.value,c.value))+" of "+V(c.value),1)):se("",!0)]),_:1}),f(qe,{class:"pa-0"},{default:m(()=>[f(u3,{"items-per-page":p.value,"onUpdate:itemsPerPage":O[4]||(O[4]=L=>p.value=L),page:d.value,"onUpdate:page":O[5]||(O[5]=L=>d.value=L),headers:w,items:l.value,"items-length":c.value,loading:u.value,class:"maintenance-logs-table","loading-text":"Loading maintenance logs...","no-data-text":"No maintenance logs found","onUpdate:options":_},{"item.completed":m(({item:L})=>[f(He,{color:L.completed?"success":"warning",icon:L.completed?"check_circle":"build",size:"small",variant:"elevated"},{default:m(()=>[k(V(L.completed?"Completed":"Active"),1)]),_:2},1032,["color","icon"])]),"item.createdAt":m(({item:L})=>[S("div",ySe,[S("div",null,V(ne(yi)(L.createdAt)),1),S("div",bSe,V(ne(op)(L.createdAt)),1)])]),"item.completedAt":m(({item:L})=>[L.completedAt?(N(),le("div",SSe,[S("div",null,V(ne(yi)(L.completedAt)),1),S("div",wSe,V(ne(op)(L.completedAt)),1)])):(N(),le("span",ESe,"-"))]),"item.printerName":m(({item:L})=>[S("div",xSe,[f(Sn,{size:"24",class:"mr-2",color:"primary"},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...O[12]||(O[12]=[k("print",-1)])]),_:1})]),_:1}),S("div",null,[S("div",kSe,V(L.printerName||"Unknown Printer"),1),S("div",CSe,V(x(L.printerId)),1)])])]),"item.cause":m(({item:L})=>[L.metadata?.cause?(N(),le("div",_Se,V(L.metadata.cause),1)):(N(),le("span",TSe,"-"))]),"item.partsInvolved":m(({item:L})=>[L.metadata?.partsInvolved?.length?(N(),le("div",ISe,[(N(!0),le(De,null,Vt(L.metadata.partsInvolved.slice(0,3),(F,W)=>(N(),Z(He,{key:W,size:"x-small",color:"info",variant:"tonal"},{default:m(()=>[k(V(F),1)]),_:2},1024))),128)),L.metadata.partsInvolved.length>3?(N(),Z(He,{key:0,size:"x-small",color:"info",variant:"text"},{default:m(()=>[k(" +"+V(L.metadata.partsInvolved.length-3),1)]),_:2},1024)):se("",!0)])):(N(),le("span",PSe,"-"))]),"item.createdBy":m(({item:L})=>[S("div",ASe,[f(Sn,{size:"24",class:"mr-2",color:"secondary"},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...O[13]||(O[13]=[k("person",-1)])]),_:1})]),_:1}),S("div",RSe,V(L.createdBy),1)])]),"item.completedBy":m(({item:L})=>[L.completedBy?(N(),le("div",OSe,[f(Sn,{size:"24",class:"mr-2",color:"secondary"},{default:m(()=>[f(j,{size:"small"},{default:m(()=>[...O[14]||(O[14]=[k("person",-1)])]),_:1})]),_:1}),S("div",NSe,V(L.completedBy),1)])):(N(),le("span",DSe,"-"))]),"item.actions":m(({item:L})=>[f(li,null,{activator:m(({props:F})=>[f(te,ve({icon:"",size:"small",variant:"text"},F),{default:m(()=>[f(j,null,{default:m(()=>[...O[15]||(O[15]=[k("more_vert",-1)])]),_:1})]),_:1},16)]),default:m(()=>[f(hr,null,{default:m(()=>[f(ot,{onClick:F=>A(L)},{prepend:m(()=>[f(j,null,{default:m(()=>[...O[16]||(O[16]=[k("info",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...O[17]||(O[17]=[k("View Details",-1)])]),_:1})]),_:1},8,["onClick"]),L.completed?se("",!0):(N(),Z(ot,{key:0,onClick:F=>I(L)},{prepend:m(()=>[f(j,null,{default:m(()=>[...O[18]||(O[18]=[k("check_circle",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...O[19]||(O[19]=[k("Mark as Completed",-1)])]),_:1})]),_:1},8,["onClick"])),f(et),f(ot,{onClick:F=>T(L),class:"text-error"},{prepend:m(()=>[f(j,{color:"error"},{default:m(()=>[...O[20]||(O[20]=[k("delete",-1)])]),_:1})]),default:m(()=>[f(Rt,null,{default:m(()=>[...O[21]||(O[21]=[k("Delete Log",-1)])]),_:1})]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:1},8,["items-per-page","page","items","items-length","loading"])]),_:1})]),_:1}),f(gSe,{modelValue:v.value,"onUpdate:modelValue":O[6]||(O[6]=L=>v.value=L),log:y.value,onUpdated:C},null,8,["modelValue","log"])]),_:1}))}}),D4=En(LSe,[["__scopeId","data-v-adff7da7"]]),FSe=je({name:"MaintenanceLogsView",components:{MaintenanceLogs:D4}});function $Se(e,t,n,r,i,a){const s=D4;return N(),Z(ts,{fluid:"",class:"pa-0"},{default:m(()=>[f(s)]),_:1})}const MSe=En(FSe,[["render",$Se]]);class ef extends di{static async listFiles(){return this.get("/api/v2/file-storage")}static async getFileMetadata(t){const n=`/api/v2/file-storage/${t}`;return this.get(n)}static async deleteFile(t){const n=`/api/v2/file-storage/${t}`;return this.delete(n)}static async analyzeFile(t){const n=`/api/v2/file-storage/${t}/analyze`;return this.post(n,{})}static getThumbnailUrl(t,n=0){return`/api/v2/file-storage/${t}/thumbnail/${n}`}static async uploadFile(t){const n=new FormData;return n.append("file",t),(await this.postUpload("/api/v2/file-storage/upload",n,{headers:{"Content-Type":"multipart/form-data"}})).data}}const VSe={key:0,class:"mt-4"},BSe={class:"text-caption"},USe={class:"d-flex align-center"},jSe={class:"text-body-2 font-weight-medium"},zSe={class:"text-caption text-medium-emphasis"},HSe={key:1,class:"text-medium-emphasis"},WSe={key:1,class:"text-medium-emphasis"},GSe={key:0,class:"text-caption"},qSe={key:0},KSe={key:1},YSe={key:1,class:"text-medium-emphasis"},XSe={key:0,class:"text-caption"},JSe={key:1,class:"text-medium-emphasis"},QSe={key:0,class:"text-body-2"},ZSe={key:1,class:"text-medium-emphasis"},ewe={key:0,class:"text-body-2"},twe={key:1,class:"text-medium-emphasis"},nwe={key:1,class:"text-medium-emphasis"},rwe={class:"text-body-2"},iwe={class:"text-caption text-medium-emphasis"},swe={class:"mb-2"},awe={class:"mb-2"},owe={class:"mb-2"},lwe={class:"mb-2"},uwe={class:"mb-2"},cwe={class:"mb-2"},dwe={key:0},fwe={key:0,class:"mb-2"},pwe={key:1,class:"mb-2"},mwe={key:2,class:"mb-2"},hwe={key:3,class:"mb-2"},gwe={key:4,class:"mb-2"},vwe={key:1,class:"text-medium-emphasis"},ywe={class:"text-h6 mb-3"},bwe={class:"d-flex flex-wrap ga-2"},Swe={class:"mb-4"},wwe=je({__name:"FilesView",setup(e){const t=Xt(),n=vn(),r=z([]),i=z(!1),a=z(""),s=z(!1),o=z(null),l=z(!1),u=z(null),c=z([]),d=z(!1),p=z(!1),h=z(!1),g=z(0),v=z([]),y=z(null),b=z(new Set),E=[{title:"File Name",key:"fileName",sortable:!0},{title:"Type",key:"printerType",sortable:!1},{title:"Material",key:"material",sortable:!1},{title:"Temps",key:"temperatures",sortable:!1},{title:"Plates",key:"plates",sortable:!1},{title:"Model",key:"printerModel",sortable:!1},{title:"Print Time",key:"printTime",sortable:!1},{title:"Filament",key:"filament",sortable:!1},{title:"Thumbnails",key:"thumbnailCount",sortable:!1},{title:"Created",key:"createdAt",sortable:!0},{title:"Actions",key:"actions",sortable:!1,align:"end"}],w=D(()=>r.value.length),C=D(()=>n.printers.filter(q=>q.enabled)),P=D(()=>{if(!a.value)return r.value;const q=a.value.toLowerCase();return r.value.filter(U=>U.fileName.toLowerCase().includes(q)||U.fileHash.toLowerCase().includes(q)||U.fileStorageId.toLowerCase().includes(q))});Nt(async()=>{await _(),await n.loadPrinters()});const _=async()=>{i.value=!0;try{const q=await ef.listFiles();r.value=q.files}catch(q){console.error("Failed to load files:",q),t.error("Failed to load files")}finally{i.value=!1}},A=q=>{o.value=q,s.value=!0},I=async q=>{if(confirm(`Delete file "${q.fileName}"? This cannot be undone.`))try{await ef.deleteFile(q.fileStorageId),t.info("File deleted successfully"),await _()}catch(U){console.error("Failed to delete file:",U),t.error("Failed to delete file")}},T=async q=>{if(!b.value.has(q.fileStorageId)){b.value.add(q.fileStorageId);try{const U=await ef.analyzeFile(q.fileStorageId);t.info(`Analysis complete! Found ${U.thumbnailCount} thumbnail(s)`),await _()}catch(U){console.error("Failed to analyze file:",U),t.error("Failed to analyze file")}finally{b.value.delete(q.fileStorageId)}}},x=q=>{q.preventDefault()},R=q=>{q.preventDefault(),g.value++,g.value===1&&(h.value=!0)},O=q=>{q.preventDefault(),g.value--,g.value===0&&(h.value=!1)},L=async q=>{q.preventDefault(),g.value=0,h.value=!1;const U=Array.from(q.dataTransfer?.files||[]);await W(U)},F=async q=>{const U=q.target,M=Array.from(U.files||[]);await W(M),y.value&&(y.value.value="")},W=async q=>{if(q.length!==0){p.value=!0,v.value=q.map(U=>({fileName:U.name,percent:0}));for(let U=0;U<q.length;U++){const M=q[U];try{await ef.uploadFile(M),v.value[U].percent=100,t.info(`Uploaded ${M.name}`)}catch(K){console.error(`Failed to upload ${M.name}:`,K),v.value[U].error="Failed",v.value[U].percent=100,t.error(`Failed to upload ${M.name}`)}}p.value=!1,setTimeout(()=>{v.value=[],_()},2e3)}},H=q=>{u.value=q,c.value=[],l.value=!0},B=q=>{const U=c.value.indexOf(q);U>-1?c.value.splice(U,1):c.value.push(q)},$=async()=>{if(!u.value||c.value.length===0)return;d.value=!0;let q=0,U=0;try{for(const M of c.value)try{const K=await Jr.createFromFile(u.value.fileStorageId,M);await Ml.addToQueue(M,K.id),q++}catch(K){console.error(`Failed to queue to printer ${M}:`,K),U++}q>0&&t.info(`Queued file to ${q} printer(s)`),U>0&&t.error(`Failed to queue to ${U} printer(s)`),l.value=!1,u.value=null,c.value=[]}catch(M){console.error("Failed to queue file:",M),t.error("Failed to queue file")}finally{d.value=!1}},Y=(q,U=0)=>ef.getThumbnailUrl(q,U);return(q,U)=>(N(),Z(ts,{fluid:""},{default:m(()=>[f(Ve,{class:Oe(["mb-6 upload-drop-zone",{"drag-over":h.value}]),elevation:"2",onDragenter:on(R,["prevent"]),onDragover:on(x,["prevent"]),onDragleave:on(O,["prevent"]),onDrop:on(L,["prevent"])},{default:m(()=>[f(qe,{class:"text-center pa-6"},{default:m(()=>[f(j,{size:"64",color:"primary",class:"mb-4"},{default:m(()=>[...U[8]||(U[8]=[k("cloud_upload",-1)])]),_:1}),U[11]||(U[11]=S("h3",{class:"text-h6 mb-2"},"Upload Files",-1)),U[12]||(U[12]=S("p",{class:"text-body-2 text-medium-emphasis mb-4"}," Drag and drop files here or click to browse ",-1)),S("input",{ref_key:"fileInput",ref:y,type:"file",multiple:"",accept:".gcode,.3mf,.bgcode",style:{display:"none"},onChange:F},null,544),f(te,{color:"primary",variant:"elevated",onClick:U[0]||(U[0]=M=>y.value?.click()),loading:p.value},{default:m(()=>[f(j,{start:""},{default:m(()=>[...U[9]||(U[9]=[k("folder_open",-1)])]),_:1}),U[10]||(U[10]=k(" Select Files ",-1))]),_:1},8,["loading"]),v.value.length>0?(N(),le("div",VSe,[(N(!0),le(De,null,Vt(v.value,(M,K)=>(N(),Z(si,{key:K,"model-value":M.percent,color:M.error?"error":"primary",height:"25",class:"mb-2"},{default:m(()=>[S("div",BSe,V(M.fileName)+" - "+V(M.error||`${M.percent}%`),1)]),_:2},1032,["model-value","color"]))),128))])):se("",!0)]),_:1})]),_:1},8,["class"]),f(Ve,{elevation:"2"},{default:m(()=>[f(st,{class:"d-flex align-center pb-0"},{default:m(()=>[f(j,{class:"mr-3",color:"primary"},{default:m(()=>[...U[13]||(U[13]=[k("inventory_2",-1)])]),_:1}),U[16]||(U[16]=S("span",{class:"text-h6"},"File Storage",-1)),f(ht),w.value>0?(N(),Z(He,{key:0,variant:"tonal",size:"small",class:"mr-3"},{default:m(()=>[k(V(w.value)+" files ",1)]),_:1})):se("",!0),f(yt,{modelValue:a.value,"onUpdate:modelValue":U[1]||(U[1]=M=>a.value=M),"prepend-inner-icon":"search",label:"Search files",variant:"outlined",density:"compact","hide-details":"",clearable:"",class:"mr-4",style:{"max-width":"300px"}},null,8,["modelValue"]),f(te,{color:"primary",onClick:_,loading:i.value,variant:"elevated"},{default:m(()=>[f(j,{left:""},{default:m(()=>[...U[14]||(U[14]=[k("refresh",-1)])]),_:1}),U[15]||(U[15]=k(" Refresh ",-1))]),_:1},8,["loading"])]),_:1}),f(qe,null,{default:m(()=>[f(l3,{headers:E,items:P.value,loading:i.value,class:"files-table","loading-text":"Loading files...","no-data-text":"No files found","items-per-page":25},{"item.fileName":m(({item:M})=>[S("div",USe,[f(Sn,{size:"40",class:"mr-3",rounded:""},{default:m(()=>[M.thumbnailCount>0?(N(),Z(ai,{key:0,src:Y(M.fileStorageId),cover:""},{error:m(()=>[f(j,null,{default:m(()=>[...U[17]||(U[17]=[k("description",-1)])]),_:1})]),_:1},8,["src"])):(N(),Z(j,{key:1,color:"primary"},{default:m(()=>[...U[18]||(U[18]=[k("description",-1)])]),_:1}))]),_:2},1024),S("div",null,[S("div",jSe,V(M.metadata?._originalFileName||M.fileName),1),S("div",zSe,V(M.fileFormat.toUpperCase())+" • "+V(ne(ap)(M.fileSize)),1)])])]),"item.printerType":m(({item:M})=>[ne(YI)(M.metadata||{},M.fileFormat)?(N(),Z(Sn,{key:0,size:"32",rounded:"0"},{default:m(()=>[f(ai,{src:ne(YI)(M.metadata||{},M.fileFormat),contain:""},null,8,["src"])]),_:2},1024)):(N(),le("span",HSe,"-"))]),"item.material":m(({item:M})=>[M.metadata?.filamentType?(N(),Z(He,{key:0,size:"small",variant:"tonal",color:"orange"},{default:m(()=>[k(V(M.metadata.filamentType),1)]),_:2},1024)):(N(),le("span",WSe,"-"))]),"item.temperatures":m(({item:M})=>[M.metadata?.nozzleTemperature||M.metadata?.bedTemperature?(N(),le("div",GSe,[M.metadata.nozzleTemperature?(N(),le("div",qSe," 🔥 "+V(M.metadata.nozzleTemperature)+"°C ",1)):se("",!0),M.metadata.bedTemperature?(N(),le("div",KSe," 🛏️ "+V(M.metadata.bedTemperature)+"°C ",1)):se("",!0)])):(N(),le("span",YSe,"-"))]),"item.plates":m(({item:M})=>[f(He,{size:"small",variant:"tonal",color:"blue"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...U[19]||(U[19]=[k("layers",-1)])]),_:1}),k(" "+V(M.metadata?.totalPlates??1),1)]),_:2},1024)]),"item.printerModel":m(({item:M})=>[M.metadata?.printerModel?(N(),le("div",XSe,V(M.metadata.printerModel),1)):(N(),le("span",JSe,"-"))]),"item.printTime":m(({item:M})=>[M.metadata?.gcodePrintTimeSeconds?(N(),le("div",QSe,[f(He,{color:"info",size:"small",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...U[20]||(U[20]=[k("schedule",-1)])]),_:1}),k(" "+V(ne(ma)(M.metadata.gcodePrintTimeSeconds)),1)]),_:2},1024)])):(N(),le("span",ZSe,"-"))]),"item.filament":m(({item:M})=>[M.metadata?.filamentUsedGrams?(N(),le("div",ewe,[f(He,{color:"purple",size:"small",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...U[21]||(U[21]=[k("science",-1)])]),_:1}),k(" "+V(M.metadata.filamentUsedGrams.toFixed(1))+"g ",1)]),_:2},1024)])):(N(),le("span",twe,"-"))]),"item.thumbnailCount":m(({item:M})=>[M.thumbnailCount>0?(N(),Z(He,{key:0,size:"small",color:"success",variant:"tonal"},{default:m(()=>[f(j,{start:"",size:"small"},{default:m(()=>[...U[22]||(U[22]=[k("image",-1)])]),_:1}),k(" "+V(M.thumbnailCount),1)]),_:2},1024)):(N(),le("span",nwe,"None"))]),"item.createdAt":m(({item:M})=>[S("div",rwe,[S("div",null,V(ne(yi)(M.createdAt)),1),S("div",iwe,V(ne(op)(M.createdAt)),1)])]),"item.actions":m(({item:M})=>[f(te,{icon:"add_to_queue",size:"small",variant:"text",color:"primary",onClick:K=>H(M)},{default:m(()=>[f(j,null,{default:m(()=>[...U[23]||(U[23]=[k("add_to_queue",-1)])]),_:1}),f(sn,{activator:"parent",location:"top"},{default:m(()=>[...U[24]||(U[24]=[k(" Add to queue ",-1)])]),_:1})]),_:1},8,["onClick"]),f(te,{icon:"analytics",size:"small",variant:"text",color:"info",onClick:K=>T(M),loading:b.value.has(M.fileStorageId)},{default:m(()=>[f(j,null,{default:m(()=>[...U[25]||(U[25]=[k("analytics",-1)])]),_:1}),f(sn,{activator:"parent",location:"top"},{default:m(()=>[...U[26]||(U[26]=[k(" Trigger analysis ",-1)])]),_:1})]),_:1},8,["onClick","loading"]),f(te,{icon:"visibility",size:"small",variant:"text",color:"primary",onClick:K=>A(M)},{default:m(()=>[f(j,null,{default:m(()=>[...U[27]||(U[27]=[k("visibility",-1)])]),_:1}),f(sn,{activator:"parent",location:"top"},{default:m(()=>[...U[28]||(U[28]=[k(" View details ",-1)])]),_:1})]),_:1},8,["onClick"]),f(te,{icon:"delete",size:"small",variant:"text",color:"error",onClick:K=>I(M)},{default:m(()=>[f(j,null,{default:m(()=>[...U[29]||(U[29]=[k("delete",-1)])]),_:1}),f(sn,{activator:"parent",location:"top"},{default:m(()=>[...U[30]||(U[30]=[k(" Delete file ",-1)])]),_:1})]),_:1},8,["onClick"])]),_:1},8,["items","loading"])]),_:1})]),_:1}),f(Fr,{modelValue:s.value,"onUpdate:modelValue":U[4]||(U[4]=M=>s.value=M),"max-width":"800"},{default:m(()=>[o.value?(N(),Z(Ve,{key:0},{default:m(()=>[f(st,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...U[31]||(U[31]=[k("description",-1)])]),_:1}),U[32]||(U[32]=k(" File Details ",-1)),f(ht),f(te,{icon:"close",variant:"text",onClick:U[2]||(U[2]=M=>s.value=!1)})]),_:1}),f(qe,null,{default:m(()=>[f(ct,null,{default:m(()=>[f(Ae,{cols:"12",md:"6"},{default:m(()=>[U[41]||(U[41]=S("h3",{class:"text-h6 mb-3"},"File Information",-1)),S("div",swe,[U[33]||(U[33]=S("strong",null,"Name:",-1)),k(" "+V(o.value.metadata?._originalFileName||o.value.fileName),1)]),S("div",awe,[U[34]||(U[34]=S("strong",null,"Format:",-1)),k(" "+V(o.value.fileFormat.toUpperCase()),1)]),S("div",owe,[U[35]||(U[35]=S("strong",null,"Size:",-1)),k(" "+V(ne(ap)(o.value.fileSize)),1)]),S("div",lwe,[U[36]||(U[36]=S("strong",null,"Hash:",-1)),U[37]||(U[37]=k()),S("code",null,V(o.value.fileHash),1)]),S("div",uwe,[U[38]||(U[38]=S("strong",null,"Storage ID:",-1)),U[39]||(U[39]=k()),S("code",null,V(o.value.fileStorageId),1)]),S("div",cwe,[U[40]||(U[40]=S("strong",null,"Created:",-1)),k(" "+V(ne(yi)(o.value.createdAt)),1)])]),_:1}),f(Ae,{cols:"12",md:"6"},{default:m(()=>[U[47]||(U[47]=S("h3",{class:"text-h6 mb-3"},"Print Metadata",-1)),o.value.metadata?(N(),le("div",dwe,[o.value.metadata.gcodePrintTimeSeconds?(N(),le("div",fwe,[U[42]||(U[42]=S("strong",null,"Print Time:",-1)),k(" "+V(ne(ma)(o.value.metadata.gcodePrintTimeSeconds)),1)])):se("",!0),o.value.metadata.filamentUsedGrams?(N(),le("div",pwe,[U[43]||(U[43]=S("strong",null,"Filament:",-1)),k(" "+V(o.value.metadata.filamentUsedGrams.toFixed(1))+"g ",1)])):se("",!0),o.value.metadata.nozzleDiameterMm?(N(),le("div",mwe,[U[44]||(U[44]=S("strong",null,"Nozzle Diameter:",-1)),k(" "+V(o.value.metadata.nozzleDiameterMm)+"mm ",1)])):se("",!0),o.value.metadata.layerHeight?(N(),le("div",hwe,[U[45]||(U[45]=S("strong",null,"Layer Height:",-1)),k(" "+V(o.value.metadata.layerHeight)+"mm ",1)])):se("",!0),o.value.metadata.totalLayers?(N(),le("div",gwe,[U[46]||(U[46]=S("strong",null,"Total Layers:",-1)),k(" "+V(o.value.metadata.totalLayers),1)])):se("",!0)])):(N(),le("div",vwe," No metadata available "))]),_:1}),o.value.thumbnailCount>0?(N(),Z(Ae,{key:0,cols:"12"},{default:m(()=>[S("h3",ywe,"Thumbnails ("+V(o.value.thumbnailCount)+")",1),S("div",bwe,[(N(!0),le(De,null,Vt(o.value.thumbnailCount,M=>(N(),Z(ai,{key:M,src:Y(o.value.fileStorageId,M-1),width:"150",height:"150",cover:"",class:"rounded"},null,8,["src"]))),128))])]),_:1})):se("",!0)]),_:1})]),_:1}),f(Wt,null,{default:m(()=>[f(ht),f(te,{color:"primary",variant:"text",onClick:U[3]||(U[3]=M=>s.value=!1)},{default:m(()=>[...U[48]||(U[48]=[k(" Close ",-1)])]),_:1})]),_:1})]),_:1})):se("",!0)]),_:1},8,["modelValue"]),f(Fr,{modelValue:l.value,"onUpdate:modelValue":U[7]||(U[7]=M=>l.value=M),"max-width":"600"},{default:m(()=>[u.value?(N(),Z(Ve,{key:0},{default:m(()=>[f(st,{class:"d-flex align-center"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...U[49]||(U[49]=[k("add_to_queue",-1)])]),_:1}),U[50]||(U[50]=k(" Queue File to Printers ",-1)),f(ht),f(te,{icon:"close",variant:"text",onClick:U[5]||(U[5]=M=>l.value=!1)})]),_:1}),f(qe,null,{default:m(()=>[S("div",Swe,[U[51]||(U[51]=S("strong",null,"File:",-1)),k(" "+V(u.value.metadata?._originalFileName||u.value.fileName),1)]),f(kt,{type:"info",variant:"tonal",class:"mb-4"},{default:m(()=>[...U[52]||(U[52]=[k(" Select one or more printers to queue this file to ",-1)])]),_:1}),f(hr,null,{default:m(()=>[(N(!0),le(De,null,Vt(C.value,M=>(N(),Z(ot,{key:M.id,onClick:K=>B(M.id)},{prepend:m(()=>[f(Nn,{"model-value":c.value.includes(M.id),onClick:on(K=>B(M.id),["stop"])},null,8,["model-value","onClick"])]),default:m(()=>[f(Rt,null,{default:m(()=>[k(V(M.name),1)]),_:2},1024),f(Mu,null,{default:m(()=>[k(V(ne(us)(M.printerType)),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1}),C.value.length===0?(N(),Z(kt,{key:0,type:"warning",variant:"tonal"},{default:m(()=>[...U[53]||(U[53]=[k(" No printers available ",-1)])]),_:1})):se("",!0)]),_:1}),f(Wt,null,{default:m(()=>[f(ht),f(te,{color:"grey",variant:"text",onClick:U[6]||(U[6]=M=>l.value=!1)},{default:m(()=>[...U[54]||(U[54]=[k(" Cancel ",-1)])]),_:1}),f(te,{color:"primary",variant:"elevated",disabled:c.value.length===0,onClick:$,loading:d.value},{default:m(()=>[k(" Queue to "+V(c.value.length)+" Printer(s) ",1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1})):se("",!0)]),_:1},8,["modelValue"])]),_:1}))}}),Ewe=En(wwe,[["__scopeId","data-v-f96fe268"]]),xwe={class:"d-flex align-center mb-2"},kwe={class:"d-flex align-center mb-2"},Cwe={class:"d-flex align-center"},_we=je({__name:"ExperimentalSettings",setup(e){const t=z(!1),n=z(!1),r=z(!1),i=z(!1),a=z(!1),s=z(!1),o=z(!1),l=z(!1),u=z(!1);async function c(){const g=await _r.getSettings();t.value=g.server.experimentalMoonrakerSupport,n.value=g.server.experimentalPrusaLinkSupport,r.value=g.server.experimentalBambuSupport}Nt(async()=>{await c()});const d=async()=>{i.value=!0,o.value=!1;try{await _r.updateExperimentalMoonrakerSupport(t.value),await c(),setTimeout(()=>{i.value=!1,o.value=!0},250),setTimeout(()=>{o.value=!1},3e3)}catch(g){console.error("Failed to update Moonraker support:",g),t.value=!t.value,i.value=!1}},p=async()=>{a.value=!0,l.value=!1;try{await _r.updateExperimentalPrusaLinkSupport(n.value),await c(),setTimeout(()=>{a.value=!1,l.value=!0},250),setTimeout(()=>{l.value=!1},3e3)}catch(g){console.error("Failed to update PrusaLink support:",g),n.value=!n.value,a.value=!1}},h=async()=>{s.value=!0,u.value=!1;try{await _r.updateExperimentalBambuSupport(r.value),await c(),setTimeout(()=>{s.value=!1,u.value=!0},250),setTimeout(()=>{u.value=!1},3e3)}catch(g){console.error("Failed to update Bambu support:",g),r.value=!r.value,s.value=!1}};return(g,v)=>(N(),Z(Ve,null,{default:m(()=>[f(qe,null,{default:m(()=>[f(sr,{title:"Experimental Server Features",tooltip:"Moonraker support is currently in beta, use at your own risk.",usecols:!1},{default:m(()=>[S("div",xwe,[f(Nn,{modelValue:t.value,"onUpdate:modelValue":v[0]||(v[0]=y=>t.value=y),disabled:i.value,onChange:d,"hide-details":"",label:"Enable Experimental Moonraker Support"},null,8,["modelValue","disabled"]),i.value?(N(),Z(Bn,{key:0,indeterminate:"",size:"30",width:"4",class:"ml-2"})):se("",!0),o.value?(N(),Z(j,{key:1,color:"success",class:"ml-2"},{default:m(()=>[...v[3]||(v[3]=[k(" check_circle ",-1)])]),_:1})):se("",!0)]),t.value?(N(),Z(kt,{key:0,color:"warning",variant:"tonal",class:"mb-2"},{default:m(()=>[...v[4]||(v[4]=[k(" Disabling Moonraker support will disable all printers of type Moonraker. You need to re-enable them after re-enabling this feature. ",-1)])]),_:1})):se("",!0),S("div",kwe,[f(Nn,{modelValue:n.value,"onUpdate:modelValue":v[1]||(v[1]=y=>n.value=y),disabled:a.value,onChange:p,"hide-details":"",label:"Enable Experimental PrusaLink Support"},null,8,["modelValue","disabled"]),a.value?(N(),Z(Bn,{key:0,indeterminate:"",size:"30",width:"4",class:"ml-2"})):se("",!0),l.value?(N(),Z(j,{key:1,color:"success",class:"ml-2"},{default:m(()=>[...v[5]||(v[5]=[k(" check_circle ",-1)])]),_:1})):se("",!0)]),S("div",Cwe,[f(Nn,{modelValue:r.value,"onUpdate:modelValue":v[2]||(v[2]=y=>r.value=y),disabled:s.value,onChange:h,"hide-details":"",label:"Enable Experimental Bambu Support"},null,8,["modelValue","disabled"]),s.value?(N(),Z(Bn,{key:0,indeterminate:"",size:"30",width:"4",class:"ml-2"})):se("",!0),u.value?(N(),Z(j,{key:1,color:"success",class:"ml-2"},{default:m(()=>[...v[6]||(v[6]=[k(" check_circle ",-1)])]),_:1})):se("",!0)])]),_:1})]),_:1})]),_:1}))}}),Twe={class:"text-body-2"},Iwe={class:"mt-1 ml-2"},Pwe={class:"d-flex flex-column"},Awe={key:0,class:"d-flex align-center"},Rwe={key:1,class:"d-flex flex-column align-center"},Owe={key:2,class:"d-flex flex-column"},Nwe={class:"d-flex align-center mb-3"},Dwe={class:"d-flex gap-2"},Lwe=je({__name:"SlicerSettings",setup(e){const t=z(null),n=z(!0),r=z(!1),i=z(!1),a=z(!1),s=z(!1),o=z(!1),l=z(""),u=z(!1),c=z(!1),d=D(()=>t.value||""),p=D(()=>globalThis.location.origin);async function h(){n.value=!0;try{const P=await _r.getSlicerApiKey();t.value=P.slicerApiKey}catch(P){console.error("Failed to load slicer API key:",P)}finally{n.value=!1}}async function g(){r.value=!0;try{const P=await _r.regenerateSlicerApiKey();t.value=P.slicerApiKey,C("API key generated successfully")}catch(P){console.error("Failed to generate API key:",P)}finally{r.value=!1}}function v(){u.value=!0}async function y(){u.value=!1,r.value=!0;try{const P=await _r.regenerateSlicerApiKey();t.value=P.slicerApiKey,C("API key regenerated successfully")}catch(P){console.error("Failed to regenerate API key:",P)}finally{r.value=!1}}function b(){c.value=!0}async function E(){c.value=!1,i.value=!0;try{await _r.deleteSlicerApiKey(),t.value=null,C("API key deleted")}catch(P){console.error("Failed to delete API key:",P)}finally{i.value=!1}}async function w(){if(t.value)try{await navigator.clipboard.writeText(t.value),s.value=!0,setTimeout(()=>{s.value=!1},2e3)}catch(P){console.error("Failed to copy to clipboard:",P)}}function C(P){l.value=P,o.value=!0,setTimeout(()=>{o.value=!1},3e3)}return Nt(async()=>{await h()}),(P,_)=>(N(),Z(Ve,null,{default:m(()=>[f(qe,null,{default:m(()=>[f(sr,{title:"PrusaSlicer Integration",tooltip:"Configure API key authentication for slicer file uploads. This allows PrusaSlicer and other slicers to upload files directly to FDM Monster.",usecols:!1},{default:m(()=>[f(kt,{color:"info",variant:"tonal",class:"mb-4",density:"compact"},{default:m(()=>[S("div",Twe,[_[13]||(_[13]=S("strong",null,"Setup:",-1)),_[14]||(_[14]=k(" Configure PrusaSlicer → ",-1)),_[15]||(_[15]=S("strong",null,"Print Host",-1)),_[16]||(_[16]=k(" with: ",-1)),S("div",Iwe,[_[6]||(_[6]=k(" • Host Type: ",-1)),_[7]||(_[7]=S("strong",null,"OctoPrint",-1)),_[8]||(_[8]=S("br",null,null,-1)),_[9]||(_[9]=k(" • Hostname: ",-1)),S("strong",null,V(p.value),1),_[10]||(_[10]=S("br",null,null,-1)),_[11]||(_[11]=k(" • API Key: ",-1)),_[12]||(_[12]=S("em",null,"(copy from below)",-1))])])]),_:1}),S("div",Pwe,[_[22]||(_[22]=S("div",{class:"text-subtitle-2 mb-2"},"Slicer API Key",-1)),n.value?(N(),le("div",Awe,[f(Bn,{indeterminate:"",size:"24",width:"3",class:"mr-2"}),_[17]||(_[17]=S("span",null,"Loading...",-1))])):t.value?(N(),le("div",Owe,[S("div",Nwe,[f(yt,{modelValue:d.value,"onUpdate:modelValue":_[1]||(_[1]=A=>d.value=A),type:a.value?"text":"password",readonly:"",variant:"outlined",density:"compact","hide-details":"",style:{"font-family":"monospace","max-width":"400px"}},{"append-inner":m(()=>[f(te,{icon:"",variant:"text",size:"small",onClick:_[0]||(_[0]=A=>a.value=!a.value),title:a.value?"Hide":"Show"},{default:m(()=>[f(j,null,{default:m(()=>[k(V(a.value?"visibility_off":"visibility"),1)]),_:1})]),_:1},8,["title"])]),_:1},8,["modelValue","type"]),f(te,{icon:"",variant:"tonal",color:"primary",class:"ml-2",onClick:w,title:s.value?"Copied!":"Copy to clipboard"},{default:m(()=>[f(j,null,{default:m(()=>[k(V(s.value?"check":"content_copy"),1)]),_:1})]),_:1},8,["title"])]),S("div",Dwe,[f(te,{color:"primary",class:"mr-2",variant:"tonal",onClick:w,"prepend-icon":"content_copy"},{default:m(()=>[k(V(s.value?"Copied!":"Copy Key"),1)]),_:1}),f(te,{color:"warning",variant:"tonal",class:"mr-2",loading:r.value,onClick:v,"prepend-icon":"refresh"},{default:m(()=>[..._[20]||(_[20]=[k(" Regenerate Key ",-1)])]),_:1},8,["loading"]),f(te,{color:"error",variant:"tonal",loading:i.value,onClick:b,"prepend-icon":"delete"},{default:m(()=>[..._[21]||(_[21]=[k(" Delete Key ",-1)])]),_:1},8,["loading"])]),o.value?(N(),Z(kt,{key:0,color:"success",variant:"tonal",class:"mt-3"},{default:m(()=>[k(V(l.value),1)]),_:1})):se("",!0)])):(N(),le("div",Rwe,[f(kt,{color:"warning",variant:"tonal",class:"mb-4 text-center",density:"compact"},{default:m(()=>[..._[18]||(_[18]=[k(" No API key generated yet. ",-1)])]),_:1}),f(te,{color:"primary",variant:"elevated",size:"large",loading:r.value,onClick:g,"prepend-icon":"vpn_key",class:"px-8",style:{"min-width":"240px","max-width":"300px"}},{default:m(()=>[..._[19]||(_[19]=[k(" Generate API Key ",-1)])]),_:1},8,["loading"])]))])]),_:1})]),_:1}),f(Fr,{modelValue:u.value,"onUpdate:modelValue":_[3]||(_[3]=A=>u.value=A),"max-width":"450"},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,null,{default:m(()=>[..._[23]||(_[23]=[k("Regenerate API Key?",-1)])]),_:1}),f(qe,null,{default:m(()=>[..._[24]||(_[24]=[k(" This will invalidate the current API key. You will need to update the key in your slicer settings. ",-1)])]),_:1}),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:_[2]||(_[2]=A=>u.value=!1)},{default:m(()=>[..._[25]||(_[25]=[k("Cancel",-1)])]),_:1}),f(te,{color:"warning",onClick:y},{default:m(()=>[..._[26]||(_[26]=[k("Regenerate",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Fr,{modelValue:c.value,"onUpdate:modelValue":_[5]||(_[5]=A=>c.value=A),"max-width":"450"},{default:m(()=>[f(Ve,null,{default:m(()=>[f(st,null,{default:m(()=>[..._[27]||(_[27]=[k("Delete API Key?",-1)])]),_:1}),f(qe,null,{default:m(()=>[..._[28]||(_[28]=[k(" This will disable API key authentication for slicer uploads. Slicers will no longer be able to upload files using this key. ",-1)])]),_:1}),f(Wt,null,{default:m(()=>[f(ht),f(te,{variant:"text",onClick:_[4]||(_[4]=A=>c.value=!1)},{default:m(()=>[..._[29]||(_[29]=[k("Cancel",-1)])]),_:1}),f(te,{color:"error",onClick:E},{default:m(()=>[..._[30]||(_[30]=[k("Delete",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}))}}),Fwe={class:"d-flex align-center flex-wrap gap-2 mb-2"},$we=["onClick"],Mwe={class:"msg-time"},Vwe={class:"msg-event"},Bwe={class:"msg-preview"},Uwe={key:0,class:"no-messages"},jwe={class:"mt-2 grey--text"},zwe=je({__name:"DebugSocketSettings",setup(e){const t=hV(),n=zt(Ht.JsonViewerDialog),r=z(""),i=z(!0),a=z(null);Nt(()=>{t.enabled||t.enable()});function s(){t.enabled?(t.disable(),t.paused&&t.togglePause()):t.enable()}function o(){t.setFilter(r.value||"")}function l(d){return d.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3})}function u(d){try{const p=JSON.stringify(d);return p.length>100?p.substring(0,100)+"...":p}catch{return String(d)}}function c(d){n.openDialog({title:`${d.event} (${d.direction==="in"?"Received":"Sent"})`,data:d.data})}return Ne(()=>t.messages.length,async()=>{i.value&&a.value&&(await Ct(),a.value.scrollTop=a.value.scrollHeight)}),(d,p)=>(N(),Z(Ve,null,{default:m(()=>[f(qe,{class:"pa-2"},{default:m(()=>[S("div",Fwe,[f(te,{color:ne(t).enabled?"error":"primary",small:"",onClick:s},{default:m(()=>[f(j,{small:"",class:"mr-1"},{default:m(()=>[k(V(ne(t).enabled?"mdi:mdi-stop":"mdi:mdi-play"),1)]),_:1}),k(" "+V(ne(t).enabled?"Stop":"Start"),1)]),_:1},8,["color"]),f(te,{disabled:!ne(t).enabled,color:ne(t).paused?"warning":"default",small:"",onClick:p[0]||(p[0]=h=>ne(t).togglePause())},{default:m(()=>[f(j,{small:"",class:"mr-1"},{default:m(()=>[k(V(ne(t).paused?"play_arrow":"pause"),1)]),_:1}),k(" "+V(ne(t).paused?"Resume":"Pause"),1)]),_:1},8,["disabled","color"]),f(te,{small:"",color:"default",onClick:p[1]||(p[1]=h=>ne(t).clearMessages())},{default:m(()=>[f(j,{small:"",class:"mr-1"},{default:m(()=>[...p[4]||(p[4]=[k("delete",-1)])]),_:1}),p[5]||(p[5]=k(" Clear ",-1))]),_:1}),f(ht),f(He,{small:"",outlined:""},{default:m(()=>[k(V(ne(t).filteredMessages.length)+" / "+V(ne(t).messageCount)+" messages ",1)]),_:1}),f(yt,{modelValue:r.value,"onUpdate:modelValue":p[2]||(p[2]=h=>r.value=h),dense:"","hide-details":"",outlined:"",placeholder:"Filter...","prepend-inner-icon":"search",clearable:"",style:{"max-width":"200px"},onInput:o},null,8,["modelValue"]),f(Nn,{modelValue:i.value,"onUpdate:modelValue":p[3]||(p[3]=h=>i.value=h),dense:"","hide-details":"",label:"Auto-scroll",class:"mt-0 pt-0"},null,8,["modelValue"])]),S("div",{ref_key:"messagesContainer",ref:a,class:"messages-container"},[(N(!0),le(De,null,Vt(ne(t).filteredMessages,h=>(N(),le("div",{key:h.id,class:"message-row",onClick:g=>c(h)},[S("span",Mwe,V(l(h.timestamp)),1),f(He,{"x-small":"",color:h.direction==="in"?"blue":"green",class:"msg-direction"},{default:m(()=>[k(V(h.direction==="in"?"IN":"OUT"),1)]),_:2},1032,["color"]),S("span",Vwe,V(h.event),1),S("span",Bwe,V(u(h.data)),1)],8,$we))),128)),ne(t).filteredMessages.length===0?(N(),le("div",Uwe,[f(j,{large:"",color:"grey"},{default:m(()=>[...p[6]||(p[6]=[k("speaker_notes_off",-1)])]),_:1}),S("div",jwe,V(ne(t).enabled?"Waiting for messages...":"Click Start to begin capturing"),1)])):se("",!0)],512)]),_:1})]),_:1}))}}),Hwe=En(zwe,[["__scopeId","data-v-1928c92e"]]),Wwe="/img/DavidZwart.jpg",Gwe={class:"mt-4"},qwe={key:0},Kwe={key:1},Ywe={class:"d-flex align-center"},Xwe={class:"d-flex gap-2"},Jwe=je({__name:"AboutSettings",setup(e){const t=z(""),n=z(""),r=z(I4);return Nt(async()=>{const i=await jo.getVersion();t.value=i.version,n.value=i.monsterPi}),(i,a)=>(N(),Z(Ve,null,{default:m(()=>[f(st,null,{default:m(()=>[...a[0]||(a[0]=[k("About FDM Monster",-1)])]),_:1}),f(qe,null,{default:m(()=>[a[7]||(a[7]=S("p",null," FDM Monster is an open-source 3D printing farm management system created by David Zwart in 2021. ",-1)),S("p",Gwe,[a[1]||(a[1]=S("strong",null,"Server version:",-1)),k(" "+V(t.value),1),a[2]||(a[2]=S("br",null,null,-1)),a[3]||(a[3]=S("strong",null,"Client version:",-1)),k(" "+V(r.value),1),a[4]||(a[4]=S("br",null,null,-1)),n.value?(N(),le("strong",qwe,"MonsterPi version: "+V(n.value),1)):(N(),le("strong",Kwe,"No MonsterPi distro detected."))]),f(te,{class:"mt-3",variant:"outlined",to:"/settings/software-upgrade"},{default:m(()=>[f(j,null,{default:m(()=>[...a[5]||(a[5]=[k("mdi:mdi-upgrade",-1)])]),_:1}),a[6]||(a[6]=k(" Visit Upgrade Settings ",-1))]),_:1})]),_:1}),f(st,null,{default:m(()=>[...a[8]||(a[8]=[k("Documentation & Support",-1)])]),_:1}),f(qe,null,{default:m(()=>[f(te,{href:"https://docs.fdm-monster.net",target:"_blank",variant:"tonal",class:"mb-2"},{default:m(()=>[f(j,{class:"mr-2"},{default:m(()=>[...a[9]||(a[9]=[k("menu_book",-1)])]),_:1}),a[10]||(a[10]=k(" Documentation ",-1))]),_:1}),a[11]||(a[11]=S("br",null,null,-1)),f(ck,{class:"mb-2"}),a[12]||(a[12]=S("br",null,null,-1)),f(dk)]),_:1}),f(st,null,{default:m(()=>[...a[13]||(a[13]=[k("Author",-1)])]),_:1}),f(qe,null,{default:m(()=>[S("div",Ywe,[a[17]||(a[17]=S("img",{src:Wwe,width:"100",class:"mr-4",alt:"Creator David Zwart"},null,-1)),S("div",null,[a[16]||(a[16]=S("div",{class:"mb-2"},"David Zwart MSc.",-1)),S("div",Xwe,[f(te,{icon:"",size:"small",variant:"tonal",class:"mr-2",href:"https://www.linkedin.com/in/david-zwart-88514083/",target:"_blank"},{default:m(()=>[f(j,null,{default:m(()=>[...a[14]||(a[14]=[k("mdi:mdi-linkedin",-1)])]),_:1})]),_:1}),f(te,{icon:"",size:"small",variant:"tonal",href:"https://github.com/davidzwa",target:"_blank"},{default:m(()=>[f(j,null,{default:m(()=>[...a[15]||(a[15]=[k("mdi:mdi-github",-1)])]),_:1})]),_:1})])])])]),_:1})]),_:1}))}}),jn={requiresAuth:!0},s0={requiresAuth:!1},sC=qce({history:Cce("/"),routes:[{path:"/",name:pn.Home,meta:jn,component:eA},{path:"/dashboard",name:pn.Dashboard,meta:jn,component:eA},{path:"/printer-grid",name:"PrinterGrid",meta:jn,component:the},{path:"/first-time-setup",name:pn.FirstTimeSetup,meta:s0,component:M1e},{path:"/login",name:pn.Login,meta:s0,component:Jbe},{path:"/registration",name:pn.Registration,meta:s0,component:t1e},{path:"/printer-list",name:pn.PrintersView,meta:jn,component:Tge},{path:"/cameras",name:pn.CameraGridView,meta:jn,component:g1e},{path:"/settings",component:Pge,meta:jn,children:[{path:"",meta:jn,redirect:"/settings/floors"},{path:"account",meta:jn,component:V1e},{path:"server-protection",meta:jn,component:B1e},{path:"floors",meta:jn,component:Mbe},{path:"user-management",meta:jn,component:Bge},{path:"printer",meta:jn,component:Uge},{path:"emergency-commands",meta:jn,component:Vbe},{path:"software-upgrade",meta:jn,component:g0e},{path:"diagnostics",meta:jn,component:v0e},{path:"experimental",meta:jn,component:_we},{path:"slicer",meta:jn,component:Lwe},{path:"debug-socket",meta:jn,component:Hwe},{path:"about",meta:jn,component:Jwe}]},{path:"/jobs",name:pn.PrintJobs,meta:jn,component:tSe},{path:"/maintenance-logs",name:"MaintenanceLogs",meta:jn,component:MSe},{path:"/files",name:pn.Files,meta:jn,component:Ewe},{path:"/permission-denied",name:pn.PermissionDenied,meta:jn,component:qbe},{path:"/:pathMatch(.*)*",name:"NotFound",component:Ube}]});sC.beforeEach(async(e,t,n)=>{const r=Rs();return!e?.meta?.requiresAuth||r.loginRequired===!1?(console.debug(`No auth required on route ${e.fullPath}`),n()):(console.debug(`Auth required on route ${e.fullPath} (loginRequired=${r.loginRequired}, registration=${r.registration}, wizardState=${r.wizardState}, requiresAuth=${e?.meta?.requiresAuth})`),r.loadTokens(),!r.hasAuthToken&&!r.hasRefreshToken?(console.debug("Not logged in, redirecting to login page"),e.name===pn.Login?(console.debug("Already on login page, allowing navigation"),n()):n({path:"/login",query:{redirect:e.fullPath}})):n())});const IR=(e,t,n)=>{const r=vn(),i=uk(),a=Xt();if(t?.length){const s=t.length===1,o=t[0];e.ondrop=async l=>{l.preventDefault(),e.style.border=cv;const u=l.dataTransfer?.files;if(!u?.length)return;const c=Array.from(u);let d=[];if(s){const p=c.length===1?c[0].name:null;console.debug("Single printer upload mode",t.length,c.length,p),d=Pme(o,c,!0)}else{if(c.length>1)throw new Error("Cannot upload multiple files to multiple printers");console.debug("Multi printer upload mode",t.length,c.length);const p=c[0];d=xV(t,p,!0)}i.queueUploads(d),r.clearSelectedPrinters()};return}e.ondrop=async s=>{s.preventDefault(),e.style.border=cv,a.openInfoMessage({title:"No action performed",subtitle:"Please select one or more printers",warning:!0})}},cv="1px solid #2b2a27",Qwe="background-color 0.5s ease",PR="1px solid red";function Zwe(){return{mounted:(e,t,n)=>{e.style.border=cv,e.style.transition=Qwe,e.ondragenter=r=>{r.preventDefault(),e.style.border=PR},e.ondragover=r=>{r.preventDefault(),e.style.border=PR},e.ondragleave=r=>{r.preventDefault(),e.style.border=cv},IR(e,t.value?.printers,n.appContext)},beforeUpdate:(e,t,n)=>{IR(e,t.value?.printers,n.appContext)}}}const a0="none",eEe="2px dashed rgba(255, 255, 255, 0.4)",AR=(e,t,n)=>{const r=t?.printerSet,i=Xi();e.style.border=a0,e.ondrop=async a=>{if(e.style.border=a0,a.preventDefault(),!a.dataTransfer)return;const s=a.dataTransfer.getData("text"),o=JSON.parse(s);if(!Cme(o)){console.debug("Drop not recognized",o);return}const u=i.selectedFloor?.id;if(!u)throw new Error("Floor is not set");const c=o.printerId;if(!c)throw new Error("PrinterId was not provided");if(r&&r.id!==c){const d=r,p=i.selectedFloor?.printers.find(g=>g.printerId===d.id),h=i.selectedFloor?.printers.find(g=>g.printerId===c);p&&h&&await xs.addPrinterToFloor(u,{printerId:d.id,x:h.x,y:h.y})}await xs.addPrinterToFloor(u,{printerId:c,x:t.x,y:t.y})},e.ondragover=a=>{a?.dataTransfer&&(a.dataTransfer&&Array.from(a.dataTransfer.items).filter(s=>s.kind==="file").length||(e.style.border=eEe,a.preventDefault()))},e.ondragleave=a=>{e.style.border=a0,a.preventDefault()}};function tEe(){return{mounted:(e,t,n)=>{AR(e,t.value,n.appContext)},beforeUpdate:(e,t,n)=>{AR(e,t.value,n.appContext)}}}const nEe={collapse:"keyboard_arrow_up",complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"cancel",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sortAsc:"arrow_upward",sortDesc:"arrow_downward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove",calendar:"event",treeviewCollapse:"arrow_drop_down",treeviewExpand:"arrow_right",tableGroupCollapse:"chevron_down",tableGroupExpand:"chevron_right",eyeDropper:"colorize",upload:"cloud_upload",color:"palette",command:"keyboard_command_key",ctrl:"keyboard_control_key",shift:"shift",alt:"keyboard_option_key",space:"keyboard_space",enter:"keyboard_return",arrowup:"keyboard_arrow_up",arrowdown:"keyboard_arrow_down",arrowleft:"keyboard_arrow_left",arrowright:"keyboard_arrow_right",backspace:"backspace",play:"play",pause:"pause",fullscreen:"fullscreen",fullscreenExit:"fullscreen_exit",volumeHigh:"volume_high",volumeMedium:"volume_medium",volumeLow:"volume_low",volumeOff:"volume_variant_off"},rEe={component:e=>Ds(DQ,{...e,class:"material-icons"})},iEe=Ee({...gk()},"VStepperActions"),sEe=$e()({name:"VStepperVerticalActions",props:iEe(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:r}=t;function i(){n("click:prev")}function a(){n("click:next")}return Ue(()=>{const s=dw.filterProps(e);return f(dw,ve({class:"v-stepper-vertical-actions"},s,{"onClick:prev":i,"onClick:next":a}),r)}),{}}}),aEe=Ee({hideActions:Boolean,...d3(),...Rn(bx({expandIcon:"",collapseIcon:""}),["hideActions"])},"VStepperVerticalItem"),L4=$e()({name:"VStepperVerticalItem",props:aEe(),emits:{"click:next":()=>!0,"click:prev":()=>!0,"click:finish":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const i=z(),a=D(()=>isNaN(parseInt(e.value))?e.value:Number(e.value)),s=D(()=>i.value?.groupItem),o=D(()=>e.rules.every(b=>b()===!0)),l=D(()=>!e.disabled&&e.editable),u=D(()=>e.error||!o.value),c=D(()=>e.complete||e.rules.length>0&&o.value),d=D(()=>e.disabled?e.disabled:s.value?.isFirst.value?"prev":!1),p=D(()=>u.value?e.errorIcon:c.value?e.completeIcon:s.value?.isSelected.value&&e.editable?e.editIcon:e.icon),h=D(()=>({canEdit:l.value,hasError:u.value,hasCompleted:c.value,title:e.title,subtitle:e.subtitle,step:a.value})),g=D(()=>({...h.value,prev:y,next:v}));function v(){n("click:next"),!s.value?.isLast.value&&s.value.group.next()}function y(){n("click:prev"),s.value.group.prev()}return Ue(()=>{const b=(!s.value||s.value?.isSelected.value||c.value||l.value)&&!u.value&&!e.disabled,E=!e.hideActions||!!r.actions,w=Xc.filterProps(e);return f(Xc,ve({_as:"VStepperVerticalItem",ref:i},w,{class:["v-stepper-vertical-item",{"v-stepper-vertical-item--complete":c.value,"v-stepper-vertical-item--disabled":e.disabled,"v-stepper-vertical-item--editable":l.value,"v-stepper-vertical-item--error":u.value},e.class],readonly:!e.editable,style:e.style,color:"",hideActions:!1,value:a.value}),{title:()=>S(De,null,[f(Sn,{key:"stepper-avatar",class:"v-stepper-vertical-item__avatar",color:b?e.color:void 0,size:24,start:!0},{default:()=>[r.icon?.(h.value)??(p.value?f(j,{icon:p.value},null):a.value)]}),S("div",null,[S("div",{class:"v-stepper-vertical-item__title"},[r.title?.(h.value)??e.title]),S("div",{class:"v-stepper-vertical-item__subtitle"},[r.subtitle?.(h.value)??e.subtitle])])]),text:()=>S(De,null,[r.default?.(h.value)??e.text,E&&f(nn,{defaults:{VStepperVerticalActions:{disabled:d.value,finish:s.value?.isLast.value}}},{default:()=>[r.actions?.(g.value)??f(sEe,{"onClick:next":v,"onClick:prev":y},{prev:r.prev?()=>r.prev?.(g.value):void 0,next:r.next?()=>r.next?.(g.value):void 0})]})])})}),{}}}),oEe=Ee({prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"},...p3(),...Rn(m$({mandatory:"force",variant:"accordion"}),["static"])},"VStepperVertical"),lEe=$e()({name:"VStepperVertical",props:oEe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=z(),{color:i,eager:a,editable:s,prevText:o,nextText:l,hideActions:u}=_a(e),c=gt(e,"modelValue"),d=D(()=>e.items.map((p,h)=>{const g=er(p,e.itemTitle,p),v=er(p,e.itemValue,h+1),y=e.itemProps===!0?p:er(p,e.itemProps),b={title:g,value:v,...y};return{title:b.title,value:b.value,props:b,raw:p}}));return Er({VStepperVerticalItem:{color:i,eager:a,editable:s,hideActions:u,static:!0},VStepperVerticalActions:{color:i,nextText:l,prevText:o}}),Ue(()=>{const p=Jc.filterProps(e);return f(Jc,ve(p,{modelValue:c.value,"onUpdate:modelValue":h=>c.value=h,ref:r,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":e.mobile},e.class],style:e.style}),{...n,default:h=>{let{prev:g,next:v}=h;return S(De,null,[d.value.map(y=>{let{raw:b,...E}=y;return f(L4,E.props,{...n,default:n[`item.${E.value}`]})}),n.default?.({prev:g,next:v,step:c.value})])}})}),{}}}),uEe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Discord-Logo'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20126.644%2096'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%235865f2;}%3c/style%3e%3c/defs%3e%3cpath%20id='Discord-Symbol-Blurple'%20class='cls-1'%20d='M81.15,0c-1.2376,2.1973-2.3489,4.4704-3.3591,6.794-9.5975-1.4396-19.3718-1.4396-28.9945,0-.985-2.3236-2.1216-4.5967-3.3591-6.794-9.0166,1.5407-17.8059,4.2431-26.1405,8.0568C2.779,32.5304-1.6914,56.3725.5312,79.8863c9.6732,7.1476,20.5083,12.603,32.0505,16.0884,2.6014-3.4854,4.8998-7.1981,6.8698-11.0623-3.738-1.3891-7.3497-3.1318-10.8098-5.1523.9092-.6567,1.7932-1.3386,2.6519-1.9953,20.281,9.547,43.7696,9.547,64.0758,0,.8587.7072,1.7427,1.3891,2.6519,1.9953-3.4601,2.0457-7.0718,3.7632-10.835,5.1776,1.97,3.8642,4.2683,7.5769,6.8698,11.0623,11.5419-3.4854,22.3769-8.9156,32.0509-16.0631,2.626-27.2771-4.496-50.9172-18.817-71.8548C98.9811,4.2684,90.1918,1.5659,81.1752.0505l-.0252-.0505ZM42.2802,65.4144c-6.2383,0-11.4159-5.6575-11.4159-12.6535s4.9755-12.6788,11.3907-12.6788,11.5169,5.708,11.4159,12.6788c-.101,6.9708-5.026,12.6535-11.3907,12.6535ZM84.3576,65.4144c-6.2637,0-11.3907-5.6575-11.3907-12.6535s4.9755-12.6788,11.3907-12.6788,11.4917,5.708,11.3906,12.6788c-.101,6.9708-5.026,12.6535-11.3906,12.6535Z'/%3e%3c/svg%3e",cEe=yV({theme:{defaultTheme:"dark",themes:{dark:{dark:!0,colors:{primary:"#1eb6c3",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FFC107"}},light:{dark:!1,colors:{primary:"#1eb6c3",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FFC107"}}}},icons:{defaultSet:"md",aliases:{...nEe,discord:uEe},sets:{md:rEe,mdi:vV,custom:{component:e=>e.icon}}},components:{VStepperVertical:lEe,VStepperVerticalItem:L4}}),xo=ug(Bpe);console.log("[DEV: false][PROD: true]","2.2.3");bJ({app:xo,dsn:"https://0831d0eec221b85ee4ae69b8410fe31c@o4503975545733120.ingest.us.sentry.io/4510641487937536",integrations:[EJ({router:sC}),MX()],release:"2.2.3",environment:"production",enabled:!0,tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,sendDefaultPii:!1});xo.config.errorHandler=e=>{if(e instanceof aN){console.error(`An error was caught [${e.name}]:
100
+ ${e.message}
101
+ ${e.config?.url}
102
+ ${e.stack}`);let t="An error occurred",n=e.message;const r=e.response?.status;r===500?(t="Server Error",n="The server encountered an unexpected error. Please try again later."):r===404?(t="Resource Not Found",n="The requested resource could not be found."):r===403?(t="Access Denied",n="You do not have permission to access this resource."):r===401?(t="Authentication Required",n="Please log in to continue."):r&&r>=400&&r<500?(t="Request Error",n="There was a problem with your request. Please check and try again."):r&&r>=500?(t="Server Error",n="The server is experiencing difficulties. Please try again later."):(e.code==="NETWORK_ERROR"||e.code==="ECONNREFUSED")&&(t="Connection Error",n="Unable to connect to the server. Please check your connection."),Xt().openErrorMessage({title:t,subtitle:n,timeout:5e3});return}else e instanceof Error?(console.error(`An error was caught [${e.name}]:
103
+ ${e.message}
104
+ ${e.stack}`),Xt().openErrorMessage({title:"An error occurred",subtitle:e.message,timeout:5e3})):(console.error("Unknown error caught:",e),Xt().openErrorMessage({title:"An error occurred",subtitle:"An unexpected error occurred",timeout:5e3}));Ks(e)};xo.directive("drop-upload",Zwe());xo.directive("drop-printer-position",tEe());const F4=Cj();F4.use(kJ());xo.use(F4);xo.use(Mie);xo.use(cEe);xo.use(sC);xo.mount("#app");
105
+ //# sourceMappingURL=index-BAB7cJ3l.js.map