/*! For license information please see app.js.LICENSE.txt */ (()=>{var e,t,n,r={8357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ae});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?c(b,--g):0,y--,10===v&&(y=1,h--),v}function x(){return v=g<_?c(b,g++):0,y++,10===v&&(y=1,h++),v}function L(){return c(b,g)}function S(){return g}function D(e,t){return d(b,e,t)}function Y(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){return h=y=1,_=f(b=e),g=0,[]}function j(e){return b="",e}function C(e){return s(D(g-1,Z(91===e?e+2:40===e?e+1:e)))}function P(e){for(;(v=L())&&v<33;)x();return Y(e)>2||Y(v)>3?"":" "}function O(e,t){for(;--t&&x()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return D(e,S()+(t<6&&32==L()&&32==x()))}function Z(e){for(;x();)switch(v){case e:return g;case 34:case 39:34!==e&&39!==e&&Z(v);break;case 40:41===e&&Z(e);break;case 92:x()}return g}function E(e,t){for(;x()&&e+v!==57&&(e+v!==84||47!==L()););return"/*"+D(t,g-1)+"*"+o(47===e?e:x())}function A(e){for(;!Y(L());)x();return D(e,g)}var R="-ms-",H="-moz-",N="-webkit-",z="comm",F="rule",I="decl",W="@keyframes";function $(e,t){for(var n="",r=p(e),a=0;a6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+H+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?V(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~u(e,"!important")&&10))){case 107:return l(e,":",":"+N)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(45===c(e,14)?"inline-":"")+"box$3$1"+N+"$2$3$1"+R+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return N+e+R+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+R+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+R+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return N+e+R+e+e}return e}function U(e){return j(q("",null,null,null,[""],e=T(e),0,[0],e))}function q(e,t,n,r,a,i,s,c,d){for(var p=0,h=0,y=s,_=0,g=0,v=0,b=1,M=1,w=1,D=0,Y="",T=a,j=i,Z=r,R=Y;M;)switch(v=D,D=x()){case 40:if(108!=v&&58==R.charCodeAt(y-1)){-1!=u(R+=l(C(D),"&","&\f"),"&\f")&&(w=-1);break}case 34:case 39:case 91:R+=C(D);break;case 9:case 10:case 13:case 32:R+=P(v);break;case 92:R+=O(S()-1,7);continue;case 47:switch(L()){case 42:case 47:m(J(E(x(),S()),t,n),d);break;default:R+="/"}break;case 123*b:c[p++]=f(R)*w;case 125*b:case 59:case 0:switch(D){case 0:case 125:M=0;case 59+h:g>0&&f(R)-y&&m(g>32?K(R+";",r,n,y-1):K(l(R," ","")+";",r,n,y-2),d);break;case 59:R+=";";default:if(m(Z=G(R,t,n,p,h,a,c,Y,T=[],j=[],y),i),123===D)if(0===h)q(R,t,Z,Z,T,i,y,c,j);else switch(_){case 100:case 109:case 115:q(e,Z,Z,r&&m(G(e,Z,Z,0,0,a,c,Y,a,T=[],y),j),a,j,y,c,r?T:j);break;default:q(R,Z,Z,Z,[""],j,0,c,j)}}p=h=g=0,b=w=1,Y=R="",y=s;break;case 58:y=1+f(R),g=v;default:if(b<1)if(123==D)--b;else if(125==D&&0==b++&&125==k())continue;switch(R+=o(D),D*b){case 38:w=h>0?1:(R+="\f",-1);break;case 44:c[p++]=(f(R)-1)*w,w=1;break;case 64:45===L()&&(R+=C(x())),_=L(),h=y=f(Y=R+=A(S())),D++;break;case 45:45===v&&2==f(R)&&(b=0)}}return i}function G(e,t,n,r,o,i,u,c,f,m,h){for(var y=o-1,_=0===o?i:[""],g=p(_),v=0,b=0,w=0;v0?_[k]+" "+x:l(x,/&\f/g,_[k])))&&(f[w++]=L);return M(e,t,n,0===o?F:c,f,m,h)}function J(e,t,n){return M(e,t,n,z,o(v),d(e,2,-2),0)}function K(e,t,n,r){return M(e,t,n,I,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,a=0;r=a,a=L(),38===r&&12===a&&(t[n]=1),!Y(a);)x();return D(e,g)},Q=function(e,t){return j(function(e,t){var n=-1,r=44;do{switch(Y(r)){case 0:38===r&&12===L()&&(t[n]=1),e[n]+=X(g-1,t,n);break;case 2:e[n]+=C(r);break;case 4:if(44===r){e[++n]=58===L()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=x());return e}(T(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(n))&&!r){ee.set(e,!0);for(var a=[],o=Q(t,a),i=n.props,s=0,l=0;s-1&&!e.return)switch(e.type){case I:e.return=V(e.value,e.length);break;case W:return $([w(e,{value:l(e.value,"@","@"+N)})],r);case F:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $([w(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return $([w(e,{props:[l(t,/:(plac\w+)/,":-webkit-input-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,R+"input-$1")]})],r)}return""}))}}];const ae=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||re;var o,i,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},2443:(e,t,n)=>{"use strict";n.d(t,{T:()=>s,w:()=>i});var r=n(7294),a=n(8357),o=(n(8137),n(7278),(0,r.createContext)("undefined"!=typeof HTMLElement?(0,a.Z)({key:"css"}):null));o.Provider;var i=function(e){return(0,r.forwardRef)((function(t,n){var a=(0,r.useContext)(o);return e(t,a,n)}))},s=(0,r.createContext)({})},917:(e,t,n)=>{"use strict";n.d(t,{F4:()=>c,xB:()=>l});var r=n(7294),a=(n(8357),n(2443)),o=(n(8679),n(444)),i=n(8137),s=n(7278),l=(0,a.w)((function(e,t){var n=e.styles,l=(0,i.O)([n],void 0,(0,r.useContext)(a.T)),u=(0,r.useRef)();return(0,s.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),u.current=[n,r],function(){n.flush()}}),[t]),(0,s.j)((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.My)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function u(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{O:()=>h});const r=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var o=n(5042),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)((function(e){return l(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===a[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a{"use strict";var r;n.d(t,{L:()=>i,j:()=>s});var a=n(7294),o=!!(r||(r=n.t(a,2))).useInsertionEffect&&(r||(r=n.t(a,2))).useInsertionEffect,i=o||function(e){return e()},s=o||a.useLayoutEffect},444:(e,t,n)=>{"use strict";n.d(t,{My:()=>o,fp:()=>r,hC:()=>a});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var a=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){a(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}}},1636:(e,t,n)=>{function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var a=r(n(2307)),o=n(7294),i=r(o),s=n(9680);function l(){return(l=Object.assign||function(e){for(var t=1;t"}(t);return t.props.children&&(n+=function(t){return"string"==typeof t.props.children?t.props.children:t.props.children.reduce((function(t,n){return t+e(n)}),"")}(t)),t.props.dangerouslySetInnerHTML&&(n+=t.props.dangerouslySetInnerHTML.__html),function(e){return["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(e.type)>-1}(t)||(n+=""),n}(function(e){return i.cloneElement(e,{inertia:void 0!==e.props["head-key"]?e.props["head-key"]:""})}(e))}(e)})),a&&!n.find((function(e){return e.startsWith(""+a+""),n)),null}d.displayName="InertiaHeadContext",f.displayName="Inertia";var m=["children","as","data","href","method","preserveScroll","preserveState","replace","only","headers","queryStringArrayFormat","onClick","onCancelToken","onBefore","onStart","onProgress","onFinish","onCancel","onSuccess","onError"],h=function(){},y=o.forwardRef((function(e,t){var n=e.children,r=e.as,a=void 0===r?"a":r,i=e.data,u=void 0===i?{}:i,c=e.href,d=e.method,f=void 0===d?"get":d,p=e.preserveScroll,y=void 0!==p&&p,_=e.preserveState,g=void 0===_?null:_,v=e.replace,b=void 0!==v&&v,M=e.only,w=void 0===M?[]:M,k=e.headers,x=void 0===k?{}:k,L=e.queryStringArrayFormat,S=void 0===L?"brackets":L,D=e.onClick,Y=void 0===D?h:D,T=e.onCancelToken,j=void 0===T?h:T,C=e.onBefore,P=void 0===C?h:C,O=e.onStart,Z=void 0===O?h:O,E=e.onProgress,A=void 0===E?h:E,R=e.onFinish,H=void 0===R?h:R,N=e.onCancel,z=void 0===N?h:N,F=e.onSuccess,I=void 0===F?h:F,W=e.onError,$=void 0===W?h:W,B=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,m),V=o.useCallback((function(e){Y(e),s.shouldIntercept(e)&&(e.preventDefault(),s.Inertia.visit(c,{data:u,method:f,preserveScroll:y,preserveState:null!=g?g:"get"!==f,replace:b,only:w,headers:x,onCancelToken:j,onBefore:P,onStart:Z,onProgress:A,onFinish:H,onCancel:z,onSuccess:I,onError:$}))}),[u,c,f,y,g,b,w,x,Y,j,P,Z,A,H,z,I,$]);a=a.toLowerCase(),f=f.toLowerCase();var U=s.mergeDataIntoQueryString(f,c||"",u,S);return c=U[0],u=U[1],"a"===a&&"get"!==f&&console.warn('Creating POST/PUT/PATCH/DELETE links is discouraged as it causes "Open Link in New Tab/Window" accessibility issues.\n\nPlease specify a more appropriate element using the "as" attribute. For example:\n\n...'),o.createElement(a,l({},B,"a"===a?{href:c}:{},{ref:t,onClick:V}),n)}));t.Fb=p,t.rU=y,t.yP=function(e){try{var t,n,r,a,i,s,l;n=void 0===(t=e.id)?"app":t,r=e.resolve,a=e.setup,i=e.title,s=e.page,l=e.render;var u="undefined"==typeof window,c=u?null:document.getElementById(n),d=s||JSON.parse(c.dataset.page),p=function(e){return Promise.resolve(r(e)).then((function(e){return e.default||e}))},m=[];return Promise.resolve(p(d.component).then((function(e){return a({el:c,App:f,props:{initialPage:d,initialComponent:e,resolveComponent:p,titleCallback:i,onHeadUpdate:u?function(e){return m=e}:null}})}))).then((function(e){return function(){if(u)return Promise.resolve(l(o.createElement("div",{id:n,"data-page":JSON.stringify(d)},e))).then((function(e){return{head:m,body:e}}))}()}))}catch(e){return Promise.reject(e)}},t.cI=function(){var e=[].slice.call(arguments),t=o.useRef(null),n="string"==typeof e[0]?e[0]:null,r=o.useState(("string"==typeof e[0]?e[1]:e[0])||{}),i=r[0],c=r[1],d=o.useRef(null),f=o.useRef(null),p=n?u(i,n+":data"):o.useState(i),m=p[0],h=p[1],y=n?u({},n+":errors"):o.useState({}),_=y[0],g=y[1],v=o.useState(!1),b=v[0],M=v[1],w=o.useState(!1),k=w[0],x=w[1],L=o.useState(null),S=L[0],D=L[1],Y=o.useState(!1),T=Y[0],j=Y[1],C=o.useState(!1),P=C[0],O=C[1],Z=function(e){return e};o.useEffect((function(){return t.current=!0,function(){t.current=!1}}),[]);var E=o.useCallback((function(e,n,r){void 0===r&&(r={});var a=l({},r,{onCancelToken:function(e){if(d.current=e,r.onCancelToken)return r.onCancelToken(e)},onBefore:function(e){if(j(!1),O(!1),clearTimeout(f.current),r.onBefore)return r.onBefore(e)},onStart:function(e){if(x(!0),r.onStart)return r.onStart(e)},onProgress:function(e){if(D(e),r.onProgress)return r.onProgress(e)},onSuccess:function(e){if(t.current&&(x(!1),D(null),g({}),M(!1),j(!0),O(!0),f.current=setTimeout((function(){t.current&&O(!1)}),2e3)),r.onSuccess)return r.onSuccess(e)},onError:function(e){if(t.current&&(x(!1),D(null),g(e),M(!0)),r.onError)return r.onError(e)},onCancel:function(){if(t.current&&(x(!1),D(null)),r.onCancel)return r.onCancel()},onFinish:function(){if(t.current&&(x(!1),D(null)),d.current=null,r.onFinish)return r.onFinish()}});"delete"===e?s.Inertia.delete(n,l({},a,{data:Z(m)})):s.Inertia[e](n,Z(m),a)}),[m,g]);return{data:m,setData:function(e,t){var n;h("string"==typeof e?l({},m,((n={})[e]=t,n)):"function"==typeof e?function(t){return e(t)}:e)},isDirty:!a(m,i),errors:_,hasErrors:b,processing:k,progress:S,wasSuccessful:T,recentlySuccessful:P,transform:function(e){Z=e},setDefaults:function(e,t){c(void 0===e?function(){return m}:function(n){var r;return l({},n,t?((r={})[e]=t,r):e)})},reset:function(){var e=[].slice.call(arguments);h(0===e.length?i:Object.keys(i).filter((function(t){return e.includes(t)})).reduce((function(e,t){return e[t]=i[t],e}),l({},m)))},setError:function(e,t){g((function(n){var r,a=l({},n,t?((r={})[e]=t,r):e);return M(Object.keys(a).length>0),a}))},clearErrors:function(){var e=[].slice.call(arguments);g((function(t){var n=Object.keys(t).reduce((function(n,r){var a;return l({},n,e.length>0&&!e.includes(r)?((a={})[r]=t[r],a):{})}),{});return M(Object.keys(n).length>0),n}))},submit:E,get:function(e,t){E("get",e,t)},post:function(e,t){E("post",e,t)},put:function(e,t){E("put",e,t)},patch:function(e,t){E("patch",e,t)},delete:function(e,t){E("delete",e,t)},cancel:function(){d.current&&d.current.cancel()}}},t.qt=function(){var e=o.useContext(c);if(!e)throw new Error("usePage must be used within the Inertia component");return e}},9680:(e,t,n)=>{function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var a=r(n(3945)),o=n(129),i=r(n(9996));function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&"back_forward"===window.performance.getEntriesByType("navigation")[0].type},n.handleBackForwardVisit=function(e){var t=this;window.history.state.version=e.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then((function(){t.restoreScrollPositions(),v(e)}))},n.locationVisit=function(e,t){try{window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify({preserveScroll:t})),window.location.href=e.href,y(window.location).href===y(e).href&&window.location.reload()}catch(e){return!1}},n.isLocationVisit=function(){try{return null!==window.sessionStorage.getItem("inertiaLocationVisit")}catch(e){return!1}},n.handleLocationVisit=function(e){var t,n,r,a,o=this,i=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),e.url+=window.location.hash,e.rememberedState=null!=(t=null==(n=window.history.state)?void 0:n.rememberedState)?t:{},e.scrollRegions=null!=(r=null==(a=window.history.state)?void 0:a.scrollRegions)?r:[],this.setPage(e,{preserveScroll:i.preserveScroll,preserveState:!0}).then((function(){i.preserveScroll&&o.restoreScrollPositions(),v(e)}))},n.isLocationVisitResponse=function(e){return e&&409===e.status&&e.headers["x-inertia-location"]},n.isInertiaResponse=function(e){return null==e?void 0:e.headers["x-inertia"]},n.createVisitId=function(){return this.visitId={},this.visitId},n.cancelVisit=function(e,t){var n=t.cancelled,r=void 0!==n&&n,a=t.interrupted,o=void 0!==a&&a;!e||e.completed||e.cancelled||e.interrupted||(e.cancelToken.cancel(),e.onCancel(),e.completed=!1,e.cancelled=r,e.interrupted=o,g(e),e.onFinish(e))},n.finishVisit=function(e){e.cancelled||e.interrupted||(e.completed=!0,e.cancelled=!1,e.interrupted=!1,g(e),e.onFinish(e))},n.resolvePreserveOption=function(e,t){return"function"==typeof e?e(t):"errors"===e?Object.keys(t.props.errors||{}).length>0:e},n.visit=function(e,n){var r=this,o=void 0===n?{}:n,i=o.method,l=void 0===i?t.Method.GET:i,c=o.data,f=void 0===c?{}:c,p=o.replace,g=void 0!==p&&p,v=o.preserveScroll,b=void 0!==v&&v,M=o.preserveState,w=void 0!==M&&M,k=o.only,x=void 0===k?[]:k,L=o.headers,S=void 0===L?{}:L,D=o.errorBag,Y=void 0===D?"":D,T=o.forceFormData,j=void 0!==T&&T,C=o.onCancelToken,P=void 0===C?function(){}:C,O=o.onBefore,Z=void 0===O?function(){}:O,E=o.onStart,A=void 0===E?function(){}:E,R=o.onProgress,H=void 0===R?function(){}:R,N=o.onFinish,z=void 0===N?function(){}:N,F=o.onCancel,I=void 0===F?function(){}:F,W=o.onSuccess,$=void 0===W?function(){}:W,B=o.onError,V=void 0===B?function(){}:B,U=o.queryStringArrayFormat,q=void 0===U?"brackets":U,G="string"==typeof e?m(e):e;if(!function e(t){return t instanceof File||t instanceof Blob||t instanceof FileList&&t.length>0||t instanceof FormData&&Array.from(t.values()).some((function(t){return e(t)}))||"object"==typeof t&&null!==t&&Object.values(t).some((function(t){return e(t)}))}(f)&&!j||f instanceof FormData||(f=d(f)),!(f instanceof FormData)){var J=h(l,G,f,q),K=J[1];G=m(J[0]),f=K}var X={url:G,method:l,data:f,replace:g,preserveScroll:b,preserveState:w,only:x,headers:S,errorBag:Y,forceFormData:j,queryStringArrayFormat:q,cancelled:!1,completed:!1,interrupted:!1};if(!1!==Z(X)&&function(e){return _("before",{cancelable:!0,detail:{visit:e}})}(X)){this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();var Q=this.createVisitId();this.activeVisit=s({},X,{onCancelToken:P,onBefore:Z,onStart:A,onProgress:H,onFinish:z,onCancel:I,onSuccess:$,onError:V,queryStringArrayFormat:q,cancelToken:a.CancelToken.source()}),P({cancel:function(){r.activeVisit&&r.cancelVisit(r.activeVisit,{cancelled:!0})}}),function(e){_("start",{detail:{visit:e}})}(X),A(X),a({method:l,url:y(G).href,data:l===t.Method.GET?{}:f,params:l===t.Method.GET?f:{},cancelToken:this.activeVisit.cancelToken.token,headers:s({},S,{Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},x.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":x.join(",")}:{},Y&&Y.length?{"X-Inertia-Error-Bag":Y}:{},this.page.version?{"X-Inertia-Version":this.page.version}:{}),onUploadProgress:function(e){f instanceof FormData&&(e.percentage=Math.round(e.loaded/e.total*100),function(e){_("progress",{detail:{progress:e}})}(e),H(e))}}).then((function(e){var t;if(!r.isInertiaResponse(e))return Promise.reject({response:e});var n=e.data;x.length&&n.component===r.page.component&&(n.props=s({},r.page.props,n.props)),b=r.resolvePreserveOption(b,n),(w=r.resolvePreserveOption(w,n))&&null!=(t=window.history.state)&&t.rememberedState&&n.component===r.page.component&&(n.rememberedState=window.history.state.rememberedState);var a=G,o=m(n.url);return a.hash&&!o.hash&&y(a).href===o.href&&(o.hash=a.hash,n.url=o.href),r.setPage(n,{visitId:Q,replace:g,preserveScroll:b,preserveState:w})})).then((function(){var e=r.page.props.errors||{};if(Object.keys(e).length>0){var t=Y?e[Y]?e[Y]:{}:e;return function(e){_("error",{detail:{errors:e}})}(t),V(t)}return _("success",{detail:{page:r.page}}),$(r.page)})).catch((function(e){if(r.isInertiaResponse(e.response))return r.setPage(e.response.data,{visitId:Q});if(r.isLocationVisitResponse(e.response)){var t=m(e.response.headers["x-inertia-location"]),n=G;n.hash&&!t.hash&&y(n).href===t.href&&(t.hash=n.hash),r.locationVisit(t,!0===b)}else{if(!e.response)return Promise.reject(e);_("invalid",{cancelable:!0,detail:{response:e.response}})&&u.show(e.response.data)}})).then((function(){r.activeVisit&&r.finishVisit(r.activeVisit)})).catch((function(e){if(!a.isCancel(e)){var t=_("exception",{cancelable:!0,detail:{exception:e}});if(r.activeVisit&&r.finishVisit(r.activeVisit),t)return Promise.reject(e)}}))}},n.setPage=function(e,t){var n=this,r=void 0===t?{}:t,a=r.visitId,o=void 0===a?this.createVisitId():a,i=r.replace,s=void 0!==i&&i,l=r.preserveScroll,u=void 0!==l&&l,c=r.preserveState,d=void 0!==c&&c;return Promise.resolve(this.resolveComponent(e.component)).then((function(t){o===n.visitId&&(e.scrollRegions=e.scrollRegions||[],e.rememberedState=e.rememberedState||{},(s=s||m(e.url).href===window.location.href)?n.replaceState(e):n.pushState(e),n.swapComponent({component:t,page:e,preserveState:d}).then((function(){u||n.resetScrollPositions(),s||v(e)})))}))},n.pushState=function(e){this.page=e,window.history.pushState(e,"",e.url)},n.replaceState=function(e){this.page=e,window.history.replaceState(e,"",e.url)},n.handlePopstateEvent=function(e){var t=this;if(null!==e.state){var n=e.state,r=this.createVisitId();Promise.resolve(this.resolveComponent(n.component)).then((function(e){r===t.visitId&&(t.page=n,t.swapComponent({component:e,page:n,preserveState:!1}).then((function(){t.restoreScrollPositions(),v(n)})))}))}else{var a=m(this.page.url);a.hash=window.location.hash,this.replaceState(s({},this.page,{url:a.href})),this.resetScrollPositions()}},n.get=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({},r,{method:t.Method.GET,data:n}))},n.reload=function(e){return void 0===e&&(e={}),this.visit(window.location.href,s({},e,{preserveScroll:!0,preserveState:!0}))},n.replace=function(e,t){var n;return void 0===t&&(t={}),console.warn("Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia."+(null!=(n=t.method)?n:"get")+"() instead."),this.visit(e,s({preserveState:!0},t,{replace:!0}))},n.post=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({preserveState:!0},r,{method:t.Method.POST,data:n}))},n.put=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({preserveState:!0},r,{method:t.Method.PUT,data:n}))},n.patch=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),this.visit(e,s({preserveState:!0},r,{method:t.Method.PATCH,data:n}))},n.delete=function(e,n){return void 0===n&&(n={}),this.visit(e,s({preserveState:!0},n,{method:t.Method.DELETE}))},n.remember=function(e,t){var n,r;void 0===t&&(t="default"),b||this.replaceState(s({},this.page,{rememberedState:s({},null==(n=this.page)?void 0:n.rememberedState,(r={},r[t]=e,r))}))},n.restore=function(e){var t,n;if(void 0===e&&(e="default"),!b)return null==(t=window.history.state)||null==(n=t.rememberedState)?void 0:n[e]},n.on=function(e,t){var n=function(e){var n=t(e);e.cancelable&&!e.defaultPrevented&&!1===n&&e.preventDefault()};return document.addEventListener("inertia:"+e,n),function(){return document.removeEventListener("inertia:"+e,n)}},e}(),w={buildDOMElement:function(e){var t=document.createElement("template");t.innerHTML=e;var n=t.content.firstChild;if(!e.startsWith("