diff --git a/assets/index.66aade57.js b/assets/index.54239feb.js similarity index 94% rename from assets/index.66aade57.js rename to assets/index.54239feb.js index b78448e..30414f4 100644 --- a/assets/index.66aade57.js +++ b/assets/index.54239feb.js @@ -1,2 +1,2 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerpolicy&&(i.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?i.credentials="include":s.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function ue(e,t){return function(){return e.apply(t,arguments)}}const{toString:le}=Object.prototype,{getPrototypeOf:W}=Object,K=(e=>t=>{const n=le.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),S=e=>(e=e.toLowerCase(),t=>K(t)===e),k=e=>t=>typeof t===e,{isArray:D}=Array,z=k("undefined");function Fe(e){return e!==null&&!z(e)&&e.constructor!==null&&!z(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fe=S("ArrayBuffer");function _e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fe(e.buffer),t}const De=k("string"),P=k("function"),de=k("number"),he=e=>e!==null&&typeof e=="object",Be=e=>e===!0||e===!1,U=e=>{if(K(e)!=="object")return!1;const t=W(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Le=S("Date"),Ue=S("File"),je=S("Blob"),ke=S("FileList"),Ie=e=>he(e)&&P(e.pipe),Me=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||le.call(e)===t||P(e.toString)&&e.toString()===t)},He=S("URLSearchParams"),qe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),D(e))for(r=0,s=e.length;r{U(e[r])&&U(n)?e[r]=J(e[r],n):U(n)?e[r]=J({},n):D(n)?e[r]=n.slice():e[r]=n};for(let n=0,r=arguments.length;n(I(t,(s,i)=>{n&&P(s)?e[i]=ue(s,n):e[i]=s},{allOwnKeys:r}),e),Je=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ve=(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)},$e=(e,t,n,r)=>{let s,i,o;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=n!==!1&&W(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},We=(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},Ke=e=>{if(!e)return null;if(D(e))return e;let t=e.length;if(!de(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Xe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&W(Uint8Array)),Qe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Ye=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ge=S("HTMLFormElement"),Ze=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),G=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ve=S("RegExp"),pe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,(s,i)=>{t(s,i,e)!==!1&&(r[i]=s)}),Object.defineProperties(e,r)},et=e=>{pe(e,(t,n)=>{const r=e[n];if(!!P(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")})}})},tt=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return D(e)?r(e):r(String(e).split(t)),n},nt=()=>{},rt=(e,t)=>(e=+e,Number.isFinite(e)?e:t),a={isArray:D,isArrayBuffer:fe,isBuffer:Fe,isFormData:Me,isArrayBufferView:_e,isString:De,isNumber:de,isBoolean:Be,isObject:he,isPlainObject:U,isUndefined:z,isDate:Le,isFile:Ue,isBlob:je,isRegExp:ve,isFunction:P,isStream:Ie,isURLSearchParams:He,isTypedArray:Xe,isFileList:ke,forEach:I,merge:J,extend:ze,trim:qe,stripBOM:Je,inherits:Ve,toFlatObject:$e,kindOf:K,kindOfTest:S,endsWith:We,toArray:Ke,forEachEntry:Qe,matchAll:Ye,isHTMLForm:Ge,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:pe,freezeMethods:et,toObjectSet:tt,toCamelCase:Ze,noop:nt,toFiniteNumber:rt};function p(e,t,n,r,s){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),s&&(this.response=s)}a.inherits(p,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const me=p.prototype,Ee={};["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=>{Ee[e]={value:e}});Object.defineProperties(p,Ee);Object.defineProperty(me,"isAxiosError",{value:!0});p.from=(e,t,n,r,s,i)=>{const o=Object.create(me);return a.toFlatObject(e,o,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),p.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};var st=typeof self=="object"?self.FormData:window.FormData;function V(e){return a.isPlainObject(e)||a.isArray(e)}function ye(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,n){return e?e.concat(t).map(function(s,i){return s=ye(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function ot(e){return a.isArray(e)&&!e.some(V)}const it=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function at(e){return e&&a.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function M(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new(st||FormData),n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,T){return!a.isUndefined(T[m])});const r=n.metaTokens,s=n.visitor||d,i=n.dots,o=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&at(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function c(l){if(l===null)return"";if(a.isDate(l))return l.toISOString();if(!f&&a.isBlob(l))throw new p("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(l)||a.isTypedArray(l)?f&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function d(l,m,T){let R=l;if(l&&!T&&typeof l=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),l=JSON.stringify(l);else if(a.isArray(l)&&ot(l)||a.isFileList(l)||a.endsWith(m,"[]")&&(R=a.toArray(l)))return m=ye(m),R.forEach(function(L,Ce){!(a.isUndefined(L)||L===null)&&t.append(o===!0?Z([m],Ce,i):o===null?m:m+"[]",c(L))}),!1}return V(l)?!0:(t.append(Z(T,m,i),c(l)),!1)}const E=[],w=Object.assign(it,{defaultVisitor:d,convertValue:c,isVisitable:V});function h(l,m){if(!a.isUndefined(l)){if(E.indexOf(l)!==-1)throw Error("Circular reference detected in "+m.join("."));E.push(l),a.forEach(l,function(R,N){(!(a.isUndefined(R)||R===null)&&s.call(t,R,a.isString(N)?N.trim():N,m,w))===!0&&h(R,m?m.concat(N):[N])}),E.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return h(e),t}function v(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function X(e,t){this._pairs=[],e&&M(e,this,t)}const we=X.prototype;we.append=function(t,n){this._pairs.push([t,n])};we.toString=function(t){const n=t?function(r){return t.call(this,r,v)}:v;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function ct(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function be(e,t,n){if(!t)return e;const r=n&&n.encode||ct,s=n&&n.serialize;let i;if(s?i=s(t,n):i=a.isURLSearchParams(t)?t.toString():new X(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ee{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){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Re={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ut=typeof URLSearchParams<"u"?URLSearchParams:X,lt=FormData,ft=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),O={isBrowser:!0,classes:{URLSearchParams:ut,FormData:lt,Blob},isStandardBrowserEnv:ft,protocols:["http","https","file","blob","url","data"]};function dt(e,t){return M(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ht(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pt(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r=n.length;return o=!o&&a.isArray(s)?s.length:o,f?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!u):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=pt(s[o])),!u)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(ht(r),s,n,0)}),n}return null}function mt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new p("Request failed with status code "+n.status,[p.ERR_BAD_REQUEST,p.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Et=O.isStandardBrowserEnv?function(){return{write:function(n,r,s,i,o,u){const f=[];f.push(n+"="+encodeURIComponent(r)),a.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),a.isString(i)&&f.push("path="+i),a.isString(o)&&f.push("domain="+o),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function yt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Se(e,t){return e&&!yt(t)?wt(e,t):t}const bt=O.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(o){const u=a.isString(o)?s(o):o;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function B(e,t,n){p.call(this,e==null?"canceled":e,p.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(B,p,{__CANCEL__:!0});function Rt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const Ot=a.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"]),St=e=>{const t={};let n,r,s;return e&&e.split(` -`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Ot[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},te=Symbol("internals"),Ae=Symbol("defaults");function F(e){return e&&String(e).trim().toLowerCase()}function j(e){return e===!1||e==null?e:a.isArray(e)?e.map(j):String(e)}function At(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}function ne(e,t,n,r){if(a.isFunction(r))return r.call(this,t,n);if(!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Tt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xt(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}function C(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}function b(e,t){e&&this.set(e),this[Ae]=t||null}Object.assign(b.prototype,{set:function(e,t,n){const r=this;function s(i,o,u){const f=F(o);if(!f)throw new Error("header name must be a non-empty string");const c=C(r,f);c&&u!==!0&&(r[c]===!1||u===!1)||(r[c||o]=j(i))}return a.isPlainObject(e)?a.forEach(e,(i,o)=>{s(i,o,t)}):s(t,e,n),this},get:function(e,t){if(e=F(e),!e)return;const n=C(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return At(r);if(a.isFunction(t))return t.call(this,r,n);if(a.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=F(e),e){const n=C(this,e);return!!(n&&(!t||ne(this,this[n],n,t)))}return!1},delete:function(e,t){const n=this;let r=!1;function s(i){if(i=F(i),i){const o=C(n,i);o&&(!t||ne(n,n[o],o,t))&&(delete n[o],r=!0)}}return a.isArray(e)?e.forEach(s):s(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return a.forEach(this,(r,s)=>{const i=C(n,s);if(i){t[i]=j(r),delete t[s];return}const o=e?Tt(s):String(s).trim();o!==s&&delete t[s],t[o]=j(r),n[o]=!0}),this},toJSON:function(e){const t=Object.create(null);return a.forEach(Object.assign({},this[Ae]||null,this),(n,r)=>{n==null||n===!1||(t[r]=e&&a.isArray(n)?n.join(", "):n)}),t}});Object.assign(b,{from:function(e){return a.isString(e)?new this(St(e)):e instanceof this?e:new this(e)},accessor:function(e){const n=(this[te]=this[te]={accessors:{}}).accessors,r=this.prototype;function s(i){const o=F(i);n[o]||(xt(r,i),n[o]=!0)}return a.isArray(e)?e.forEach(s):s(e),this}});b.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);a.freezeMethods(b.prototype);a.freezeMethods(b);function Nt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(f){const c=Date.now(),d=r[i];o||(o=c),n[s]=f,r[s]=c;let E=i,w=0;for(;E!==s;)w+=n[E++],E=E%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o{const i=s.loaded,o=s.lengthComputable?s.total:void 0,u=i-n,f=r(u),c=i<=o;n=i;const d={loaded:i,total:o,progress:o?i/o:void 0,bytes:u,rate:f||void 0,estimated:f&&o&&c?(o-i)/f:void 0};d[t?"download":"upload"]=!0,e(d)}}function se(e){return new Promise(function(n,r){let s=e.data;const i=b.from(e.headers).normalize(),o=e.responseType;let u;function f(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}a.isFormData(s)&&O.isStandardBrowserEnv&&i.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+l))}const d=Se(e.baseURL,e.url);c.open(e.method.toUpperCase(),be(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function E(){if(!c)return;const h=b.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};mt(function(R){n(R),f()},function(R){r(R),f()},m),c=null}if("onloadend"in c?c.onloadend=E:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(E)},c.onabort=function(){!c||(r(new p("Request aborted",p.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new p("Network Error",p.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Re;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),r(new p(l,m.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,c)),c=null},O.isStandardBrowserEnv){const h=(e.withCredentials||bt(d))&&e.xsrfCookieName&&Et.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}s===void 0&&i.setContentType(null),"setRequestHeader"in c&&a.forEach(i.toJSON(),function(l,m){c.setRequestHeader(m,l)}),a.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",re(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",re(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=h=>{!c||(r(!h||h.type?new B(null,e,c):h),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const w=Rt(d);if(w&&O.protocols.indexOf(w)===-1){r(new p("Unsupported protocol "+w+":",p.ERR_BAD_REQUEST,e));return}c.send(s||null)})}const oe={http:se,xhr:se},ie={getAdapter:e=>{if(a.isString(e)){const t=oe[e];if(!e)throw Error(a.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!a.isFunction(e))throw new TypeError("adapter is not a function");return e},adapters:oe},Pt={"Content-Type":"application/x-www-form-urlencoded"};function gt(){let e;return typeof XMLHttpRequest<"u"?e=ie.getAdapter("xhr"):typeof process<"u"&&a.kindOf(process)==="process"&&(e=ie.getAdapter("http")),e}function Ct(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const g={transitional:Re,adapter:gt(),transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s&&s?JSON.stringify(Oe(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return dt(t,this.formSerializer).toString();if((u=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return M(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Ct(t)):t}],transformResponse:[function(t){const n=this.transitional||g.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?p.from(u,p.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(t){g.headers[t]={}});a.forEach(["post","put","patch"],function(t){g.headers[t]=a.merge(Pt)});function H(e,t){const n=this||g,r=t||n,s=b.from(r.headers);let i=r.data;return a.forEach(e,function(u){i=u.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Te(e){return!!(e&&e.__CANCEL__)}function q(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new B}function ae(e){return q(e),e.headers=b.from(e.headers),e.data=H.call(e,e.transformRequest),(e.adapter||g.adapter)(e).then(function(r){return q(e),r.data=H.call(e,e.transformResponse,r),r.headers=b.from(r.headers),r},function(r){return Te(r)||(q(e),r&&r.response&&(r.response.data=H.call(e,e.transformResponse,r.response),r.response.headers=b.from(r.response.headers))),Promise.reject(r)})}function _(e,t){t=t||{};const n={};function r(c,d){return a.isPlainObject(c)&&a.isPlainObject(d)?a.merge(c,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function s(c){if(a.isUndefined(t[c])){if(!a.isUndefined(e[c]))return r(void 0,e[c])}else return r(e[c],t[c])}function i(c){if(!a.isUndefined(t[c]))return r(void 0,t[c])}function o(c){if(a.isUndefined(t[c])){if(!a.isUndefined(e[c]))return r(void 0,e[c])}else return r(void 0,t[c])}function u(c){if(c in t)return r(e[c],t[c]);if(c in e)return r(void 0,e[c])}const f={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u};return a.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const E=f[d]||s,w=E(d);a.isUndefined(w)&&E!==u||(n[d]=w)}),n}const xe="1.1.3",Q={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Q[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ce={};Q.transitional=function(t,n,r){function s(i,o){return"[Axios v"+xe+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,u)=>{if(t===!1)throw new p(s(o," has been removed"+(n?" in "+n:"")),p.ERR_DEPRECATED);return n&&!ce[o]&&(ce[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,u):!0}};function Ft(e,t,n){if(typeof e!="object")throw new p("options must be an object",p.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const u=e[i],f=u===void 0||o(u,i,e);if(f!==!0)throw new p("option "+i+" must be "+f,p.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new p("Unknown option "+i,p.ERR_BAD_OPTION)}}const $={assertOptions:Ft,validators:Q},A=$.validators;class x{constructor(t){this.defaults=t,this.interceptors={request:new ee,response:new ee}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_(this.defaults,n);const{transitional:r,paramsSerializer:s}=n;r!==void 0&&$.assertOptions(r,{silentJSONParsing:A.transitional(A.boolean),forcedJSONParsing:A.transitional(A.boolean),clarifyTimeoutError:A.transitional(A.boolean)},!1),s!==void 0&&$.assertOptions(s,{encode:A.function,serialize:A.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();const i=n.headers&&a.merge(n.headers.common,n.headers[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],function(l){delete n.headers[l]}),n.headers=new b(n.headers,i);const o=[];let u=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(n)===!1||(u=u&&l.synchronous,o.unshift(l.fulfilled,l.rejected))});const f=[];this.interceptors.response.forEach(function(l){f.push(l.fulfilled,l.rejected)});let c,d=0,E;if(!u){const h=[ae.bind(this),void 0];for(h.unshift.apply(h,o),h.push.apply(h,f),E=h.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(u=>{r.subscribe(u),i=u}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,u){r.reason||(r.reason=new B(i,o,u),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)}static source(){let t;return{token:new Y(function(s){t=s}),cancel:t}}}function _t(e){return function(n){return e.apply(null,n)}}function Dt(e){return a.isObject(e)&&e.isAxiosError===!0}function Ne(e){const t=new x(e),n=ue(x.prototype.request,t);return a.extend(n,x.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ne(_(e,s))},n}const y=Ne(g);y.Axios=x;y.CanceledError=B;y.CancelToken=Y;y.isCancel=Te;y.VERSION=xe;y.toFormData=M;y.AxiosError=p;y.Cancel=y.CanceledError;y.all=function(t){return Promise.all(t)};y.spread=_t;y.isAxiosError=Dt;y.formToJSON=e=>Oe(a.isHTMLForm(e)?new FormData(e):e);const Pe=[7,0,2,3,12,13,14,6];function ge(e){y.get("/api/light_state.php?l="+Pe[e]).then(t=>{document.getElementById("btn-"+e).innerText=t.data==1?"Eteindre":"Allumer"})}window.setLightState=async e=>{await y.post("/api/set_light.php",{light:Pe[e]}),ge(e)};for(let e in[0,1,2])ge(e);y.get("/api/get_temp.php").then(e=>{document.getElementById("temp").innerHTML=e.data}); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerpolicy&&(i.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?i.credentials="include":s.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function ue(e,t){return function(){return e.apply(t,arguments)}}const{toString:le}=Object.prototype,{getPrototypeOf:W}=Object,K=(e=>t=>{const n=le.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),S=e=>(e=e.toLowerCase(),t=>K(t)===e),k=e=>t=>typeof t===e,{isArray:D}=Array,z=k("undefined");function Fe(e){return e!==null&&!z(e)&&e.constructor!==null&&!z(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fe=S("ArrayBuffer");function _e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fe(e.buffer),t}const De=k("string"),g=k("function"),de=k("number"),he=e=>e!==null&&typeof e=="object",Be=e=>e===!0||e===!1,U=e=>{if(K(e)!=="object")return!1;const t=W(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Le=S("Date"),Ue=S("File"),je=S("Blob"),ke=S("FileList"),Ie=e=>he(e)&&g(e.pipe),Me=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||le.call(e)===t||g(e.toString)&&e.toString()===t)},He=S("URLSearchParams"),qe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),D(e))for(r=0,s=e.length;r{U(e[r])&&U(n)?e[r]=J(e[r],n):U(n)?e[r]=J({},n):D(n)?e[r]=n.slice():e[r]=n};for(let n=0,r=arguments.length;n(I(t,(s,i)=>{n&&g(s)?e[i]=ue(s,n):e[i]=s},{allOwnKeys:r}),e),Je=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ve=(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)},$e=(e,t,n,r)=>{let s,i,o;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=n!==!1&&W(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},We=(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},Ke=e=>{if(!e)return null;if(D(e))return e;let t=e.length;if(!de(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Xe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&W(Uint8Array)),Qe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Ye=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ge=S("HTMLFormElement"),Ze=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),G=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ve=S("RegExp"),pe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,(s,i)=>{t(s,i,e)!==!1&&(r[i]=s)}),Object.defineProperties(e,r)},et=e=>{pe(e,(t,n)=>{const r=e[n];if(!!g(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")})}})},tt=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return D(e)?r(e):r(String(e).split(t)),n},nt=()=>{},rt=(e,t)=>(e=+e,Number.isFinite(e)?e:t),a={isArray:D,isArrayBuffer:fe,isBuffer:Fe,isFormData:Me,isArrayBufferView:_e,isString:De,isNumber:de,isBoolean:Be,isObject:he,isPlainObject:U,isUndefined:z,isDate:Le,isFile:Ue,isBlob:je,isRegExp:ve,isFunction:g,isStream:Ie,isURLSearchParams:He,isTypedArray:Xe,isFileList:ke,forEach:I,merge:J,extend:ze,trim:qe,stripBOM:Je,inherits:Ve,toFlatObject:$e,kindOf:K,kindOfTest:S,endsWith:We,toArray:Ke,forEachEntry:Qe,matchAll:Ye,isHTMLForm:Ge,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:pe,freezeMethods:et,toObjectSet:tt,toCamelCase:Ze,noop:nt,toFiniteNumber:rt};function p(e,t,n,r,s){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),s&&(this.response=s)}a.inherits(p,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const me=p.prototype,Ee={};["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=>{Ee[e]={value:e}});Object.defineProperties(p,Ee);Object.defineProperty(me,"isAxiosError",{value:!0});p.from=(e,t,n,r,s,i)=>{const o=Object.create(me);return a.toFlatObject(e,o,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),p.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};var st=typeof self=="object"?self.FormData:window.FormData;function V(e){return a.isPlainObject(e)||a.isArray(e)}function ye(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,n){return e?e.concat(t).map(function(s,i){return s=ye(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function ot(e){return a.isArray(e)&&!e.some(V)}const it=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function at(e){return e&&a.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function M(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new(st||FormData),n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,T){return!a.isUndefined(T[m])});const r=n.metaTokens,s=n.visitor||d,i=n.dots,o=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&at(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function c(l){if(l===null)return"";if(a.isDate(l))return l.toISOString();if(!f&&a.isBlob(l))throw new p("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(l)||a.isTypedArray(l)?f&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function d(l,m,T){let R=l;if(l&&!T&&typeof l=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),l=JSON.stringify(l);else if(a.isArray(l)&&ot(l)||a.isFileList(l)||a.endsWith(m,"[]")&&(R=a.toArray(l)))return m=ye(m),R.forEach(function(L,Ce){!(a.isUndefined(L)||L===null)&&t.append(o===!0?Z([m],Ce,i):o===null?m:m+"[]",c(L))}),!1}return V(l)?!0:(t.append(Z(T,m,i),c(l)),!1)}const E=[],w=Object.assign(it,{defaultVisitor:d,convertValue:c,isVisitable:V});function h(l,m){if(!a.isUndefined(l)){if(E.indexOf(l)!==-1)throw Error("Circular reference detected in "+m.join("."));E.push(l),a.forEach(l,function(R,N){(!(a.isUndefined(R)||R===null)&&s.call(t,R,a.isString(N)?N.trim():N,m,w))===!0&&h(R,m?m.concat(N):[N])}),E.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return h(e),t}function v(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function X(e,t){this._pairs=[],e&&M(e,this,t)}const we=X.prototype;we.append=function(t,n){this._pairs.push([t,n])};we.toString=function(t){const n=t?function(r){return t.call(this,r,v)}:v;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function ct(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function be(e,t,n){if(!t)return e;const r=n&&n.encode||ct,s=n&&n.serialize;let i;if(s?i=s(t,n):i=a.isURLSearchParams(t)?t.toString():new X(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ee{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){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Re={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ut=typeof URLSearchParams<"u"?URLSearchParams:X,lt=FormData,ft=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),O={isBrowser:!0,classes:{URLSearchParams:ut,FormData:lt,Blob},isStandardBrowserEnv:ft,protocols:["http","https","file","blob","url","data"]};function dt(e,t){return M(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ht(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pt(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r=n.length;return o=!o&&a.isArray(s)?s.length:o,f?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!u):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=pt(s[o])),!u)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(ht(r),s,n,0)}),n}return null}function mt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new p("Request failed with status code "+n.status,[p.ERR_BAD_REQUEST,p.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Et=O.isStandardBrowserEnv?function(){return{write:function(n,r,s,i,o,u){const f=[];f.push(n+"="+encodeURIComponent(r)),a.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),a.isString(i)&&f.push("path="+i),a.isString(o)&&f.push("domain="+o),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function yt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Se(e,t){return e&&!yt(t)?wt(e,t):t}const bt=O.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(o){const u=a.isString(o)?s(o):o;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function B(e,t,n){p.call(this,e==null?"canceled":e,p.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(B,p,{__CANCEL__:!0});function Rt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const Ot=a.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"]),St=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Ot[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},te=Symbol("internals"),Ae=Symbol("defaults");function F(e){return e&&String(e).trim().toLowerCase()}function j(e){return e===!1||e==null?e:a.isArray(e)?e.map(j):String(e)}function At(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}function ne(e,t,n,r){if(a.isFunction(r))return r.call(this,t,n);if(!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Tt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xt(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}function C(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}function b(e,t){e&&this.set(e),this[Ae]=t||null}Object.assign(b.prototype,{set:function(e,t,n){const r=this;function s(i,o,u){const f=F(o);if(!f)throw new Error("header name must be a non-empty string");const c=C(r,f);c&&u!==!0&&(r[c]===!1||u===!1)||(r[c||o]=j(i))}return a.isPlainObject(e)?a.forEach(e,(i,o)=>{s(i,o,t)}):s(t,e,n),this},get:function(e,t){if(e=F(e),!e)return;const n=C(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return At(r);if(a.isFunction(t))return t.call(this,r,n);if(a.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=F(e),e){const n=C(this,e);return!!(n&&(!t||ne(this,this[n],n,t)))}return!1},delete:function(e,t){const n=this;let r=!1;function s(i){if(i=F(i),i){const o=C(n,i);o&&(!t||ne(n,n[o],o,t))&&(delete n[o],r=!0)}}return a.isArray(e)?e.forEach(s):s(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return a.forEach(this,(r,s)=>{const i=C(n,s);if(i){t[i]=j(r),delete t[s];return}const o=e?Tt(s):String(s).trim();o!==s&&delete t[s],t[o]=j(r),n[o]=!0}),this},toJSON:function(e){const t=Object.create(null);return a.forEach(Object.assign({},this[Ae]||null,this),(n,r)=>{n==null||n===!1||(t[r]=e&&a.isArray(n)?n.join(", "):n)}),t}});Object.assign(b,{from:function(e){return a.isString(e)?new this(St(e)):e instanceof this?e:new this(e)},accessor:function(e){const n=(this[te]=this[te]={accessors:{}}).accessors,r=this.prototype;function s(i){const o=F(i);n[o]||(xt(r,i),n[o]=!0)}return a.isArray(e)?e.forEach(s):s(e),this}});b.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);a.freezeMethods(b.prototype);a.freezeMethods(b);function Nt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(f){const c=Date.now(),d=r[i];o||(o=c),n[s]=f,r[s]=c;let E=i,w=0;for(;E!==s;)w+=n[E++],E=E%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o{const i=s.loaded,o=s.lengthComputable?s.total:void 0,u=i-n,f=r(u),c=i<=o;n=i;const d={loaded:i,total:o,progress:o?i/o:void 0,bytes:u,rate:f||void 0,estimated:f&&o&&c?(o-i)/f:void 0};d[t?"download":"upload"]=!0,e(d)}}function se(e){return new Promise(function(n,r){let s=e.data;const i=b.from(e.headers).normalize(),o=e.responseType;let u;function f(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}a.isFormData(s)&&O.isStandardBrowserEnv&&i.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+l))}const d=Se(e.baseURL,e.url);c.open(e.method.toUpperCase(),be(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function E(){if(!c)return;const h=b.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};mt(function(R){n(R),f()},function(R){r(R),f()},m),c=null}if("onloadend"in c?c.onloadend=E:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(E)},c.onabort=function(){!c||(r(new p("Request aborted",p.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new p("Network Error",p.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Re;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),r(new p(l,m.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,c)),c=null},O.isStandardBrowserEnv){const h=(e.withCredentials||bt(d))&&e.xsrfCookieName&&Et.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}s===void 0&&i.setContentType(null),"setRequestHeader"in c&&a.forEach(i.toJSON(),function(l,m){c.setRequestHeader(m,l)}),a.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",re(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",re(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=h=>{!c||(r(!h||h.type?new B(null,e,c):h),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const w=Rt(d);if(w&&O.protocols.indexOf(w)===-1){r(new p("Unsupported protocol "+w+":",p.ERR_BAD_REQUEST,e));return}c.send(s||null)})}const oe={http:se,xhr:se},ie={getAdapter:e=>{if(a.isString(e)){const t=oe[e];if(!e)throw Error(a.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!a.isFunction(e))throw new TypeError("adapter is not a function");return e},adapters:oe},gt={"Content-Type":"application/x-www-form-urlencoded"};function Pt(){let e;return typeof XMLHttpRequest<"u"?e=ie.getAdapter("xhr"):typeof process<"u"&&a.kindOf(process)==="process"&&(e=ie.getAdapter("http")),e}function Ct(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const P={transitional:Re,adapter:Pt(),transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s&&s?JSON.stringify(Oe(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return dt(t,this.formSerializer).toString();if((u=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return M(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Ct(t)):t}],transformResponse:[function(t){const n=this.transitional||P.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?p.from(u,p.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(t){P.headers[t]={}});a.forEach(["post","put","patch"],function(t){P.headers[t]=a.merge(gt)});function H(e,t){const n=this||P,r=t||n,s=b.from(r.headers);let i=r.data;return a.forEach(e,function(u){i=u.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Te(e){return!!(e&&e.__CANCEL__)}function q(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new B}function ae(e){return q(e),e.headers=b.from(e.headers),e.data=H.call(e,e.transformRequest),(e.adapter||P.adapter)(e).then(function(r){return q(e),r.data=H.call(e,e.transformResponse,r),r.headers=b.from(r.headers),r},function(r){return Te(r)||(q(e),r&&r.response&&(r.response.data=H.call(e,e.transformResponse,r.response),r.response.headers=b.from(r.response.headers))),Promise.reject(r)})}function _(e,t){t=t||{};const n={};function r(c,d){return a.isPlainObject(c)&&a.isPlainObject(d)?a.merge(c,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function s(c){if(a.isUndefined(t[c])){if(!a.isUndefined(e[c]))return r(void 0,e[c])}else return r(e[c],t[c])}function i(c){if(!a.isUndefined(t[c]))return r(void 0,t[c])}function o(c){if(a.isUndefined(t[c])){if(!a.isUndefined(e[c]))return r(void 0,e[c])}else return r(void 0,t[c])}function u(c){if(c in t)return r(e[c],t[c]);if(c in e)return r(void 0,e[c])}const f={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u};return a.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const E=f[d]||s,w=E(d);a.isUndefined(w)&&E!==u||(n[d]=w)}),n}const xe="1.1.3",Q={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Q[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ce={};Q.transitional=function(t,n,r){function s(i,o){return"[Axios v"+xe+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,u)=>{if(t===!1)throw new p(s(o," has been removed"+(n?" in "+n:"")),p.ERR_DEPRECATED);return n&&!ce[o]&&(ce[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,u):!0}};function Ft(e,t,n){if(typeof e!="object")throw new p("options must be an object",p.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const u=e[i],f=u===void 0||o(u,i,e);if(f!==!0)throw new p("option "+i+" must be "+f,p.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new p("Unknown option "+i,p.ERR_BAD_OPTION)}}const $={assertOptions:Ft,validators:Q},A=$.validators;class x{constructor(t){this.defaults=t,this.interceptors={request:new ee,response:new ee}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_(this.defaults,n);const{transitional:r,paramsSerializer:s}=n;r!==void 0&&$.assertOptions(r,{silentJSONParsing:A.transitional(A.boolean),forcedJSONParsing:A.transitional(A.boolean),clarifyTimeoutError:A.transitional(A.boolean)},!1),s!==void 0&&$.assertOptions(s,{encode:A.function,serialize:A.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();const i=n.headers&&a.merge(n.headers.common,n.headers[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],function(l){delete n.headers[l]}),n.headers=new b(n.headers,i);const o=[];let u=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(n)===!1||(u=u&&l.synchronous,o.unshift(l.fulfilled,l.rejected))});const f=[];this.interceptors.response.forEach(function(l){f.push(l.fulfilled,l.rejected)});let c,d=0,E;if(!u){const h=[ae.bind(this),void 0];for(h.unshift.apply(h,o),h.push.apply(h,f),E=h.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(u=>{r.subscribe(u),i=u}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,u){r.reason||(r.reason=new B(i,o,u),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)}static source(){let t;return{token:new Y(function(s){t=s}),cancel:t}}}function _t(e){return function(n){return e.apply(null,n)}}function Dt(e){return a.isObject(e)&&e.isAxiosError===!0}function Ne(e){const t=new x(e),n=ue(x.prototype.request,t);return a.extend(n,x.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ne(_(e,s))},n}const y=Ne(P);y.Axios=x;y.CanceledError=B;y.CancelToken=Y;y.isCancel=Te;y.VERSION=xe;y.toFormData=M;y.AxiosError=p;y.Cancel=y.CanceledError;y.all=function(t){return Promise.all(t)};y.spread=_t;y.isAxiosError=Dt;y.formToJSON=e=>Oe(a.isHTMLForm(e)?new FormData(e):e);const ge=[7,0,2,3,12,13,14,6];function Pe(e){y.get("/api/get_light.php?l="+ge[e]).then(t=>{document.getElementById("btn-"+e).innerText=t.data==1?"Eteindre":"Allumer"})}window.setLightState=async e=>{await y.post("/api/set_light.php",{light:ge[e]}),Pe(e)};for(let e in[0,1,2])Pe(e);y.get("/api/get_temp.php").then(e=>{document.getElementById("temp").innerHTML=e.data}); diff --git a/index.html b/index.html index 0aca7cf..fb13b0b 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Domotique - +