You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

3 lines
32 KiB

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=12)}([function(t,e,n){"use strict";var r=n(2),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function s(t){return void 0===t}function u(t){return null!==t&&"object"==typeof t}function a(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function f(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:u,isPlainObject:a,isUndefined:s,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return u(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:f,merge:function t(){var e={};function n(n,r){a(e[r])&&a(n)?e[r]=t(e[r],n):a(n)?e[r]=t({},n):i(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)f(arguments[r],n);return e},extend:function(t,e,n){return f(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},,function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(0);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(o(e)+"="+o(t))})))})),i=s.join("&")}if(i){var u=t.indexOf("#");-1!==u&&(t=t.slice(0,u)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(0),o=n(21),i={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,a={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(u=n(6)),u),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){a.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){a.headers[t]=r.merge(i)})),t.exports=a}).call(this,n(20))},function(t,e,n){"use strict";var r=n(0),o=n(22),i=n(24),s=n(3),u=n(25),a=n(28),c=n(29),f=n(7);t.exports=function(t){return new Promise((function(e,n){var l=t.data,p=t.headers;r.isFormData(l)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var g=u(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),s(g,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};o(e,n,i),d=null}},d.onabort=function(){d&&(n(f("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(f("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(f(e,t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var b=(t.withCredentials||c(g))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;b&&(p[t.xsrfHeaderName]=b)}if("setRequestHeader"in d&&r.forEach(p,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:d.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),n(t),d=null)})),l||(l=null),d.send(l)}))}},function(t,e,n){"use strict";var r=n(23);t.exports=function(t,e,n,o,i){var s=new Error(t);return r(s,e,n,o,i)}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){e=e||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function a(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function c(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=a(void 0,t[o])):n[o]=a(t[o],e[o])}r.forEach(o,(function(t){r.isUndefined(e[t])||(n[t]=a(void 0,e[t]))})),r.forEach(i,c),r.forEach(s,(function(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=a(void 0,t[o])):n[o]=a(void 0,e[o])})),r.forEach(u,(function(r){r in e?n[r]=a(t[r],e[r]):r in t&&(n[r]=a(void 0,t[r]))}));var f=o.concat(i).concat(s).concat(u),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return r.forEach(l,c),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},,,function(t,e,n){n(13),t.exports=n(39)},function(t,e,n){window.axios=n(14),window.riot=n(33)},function(t,e,n){t.exports=n(15)},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(16),s=n(8);function u(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var a=u(n(5));a.Axios=i,a.create=function(t){return u(s(a.defaults,t))},a.Cancel=n(9),a.CancelToken=n(30),a.isCancel=n(4),a.all=function(t){return Promise.all(t)},a.spread=n(31),a.isAxiosError=n(32),t.exports=a,t.exports.default=a},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(17),s=n(18),u=n(8);function a(t){this.defaults=t,this.interceptors={request:new i,response:new i}}a.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=u(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},a.prototype.getUri=function(t){return t=u(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){a.prototype[t]=function(e,n){return this.request(u(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){a.prototype[t]=function(e,n,r){return this.request(u(r||{},{method:t,url:e,data:n}))}})),t.exports=a},function(t,e,n){"use strict";var r=n(0);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(0),o=n(19),i=n(4),s=n(5);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return u(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(u(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var a,c=[],f=!1,l=-1;function p(){f&&a&&(f=!1,a.length?c=a.concat(c):l=-1,c.length&&d())}function d(){if(!f){var t=u(p);f=!0;for(var e=c.length;e;){for(a=c,c=[];++l<e;)a&&a[l].run();l=-1,e=c.length}a=null,f=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new h(t,e)),1!==c.length||f||u(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(7);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.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}},t}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,s){var u=[];u.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),!0===s&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(26),o=n(27);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(0),o=["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"];t.exports=function(t){var e,n,i,s={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(s[e]&&o.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},function(t,e,n){"use strict";var r=n(0);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{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 t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(9);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},function(t,e,n){"use strict";function r(t){return t.replace(/-(\w)/g,(t,e)=>e.toUpperCase())}function o(t){Array.from(t).forEach(i)}n.r(e),n.d(e,"__",(function(){return It})),n.d(e,"component",(function(){return Lt})),n.d(e,"install",(function(){return Rt})),n.d(e,"mount",(function(){return Ut})),n.d(e,"pure",(function(){return Dt})),n.d(e,"register",(function(){return _t})),n.d(e,"uninstall",(function(){return Bt})),n.d(e,"unmount",(function(){return Pt})),n.d(e,"unregister",(function(){return Ct})),n.d(e,"version",(function(){return kt}));const i=t=>t&&t.parentNode&&t.parentNode.removeChild(t),s=(t,e)=>e&&e.parentNode&&e.parentNode.insertBefore(t,e);var u={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4};var a={ATTRIBUTE:0,EVENT:1,TEXT:2,VALUE:3};function c(t,e){return typeof t===e}function f(t){const e=t.ownerSVGElement;return!!e||null===e}function l(t){return!h(t.content)}function p(t){return c(t,"function")}function d(t){return!h(t)&&c(t,"object")}function h(t){return null==t}const m=Symbol("unmount"),g={nodes:[],mount(t,e){return this.update(t,e)},update(t,e){const{placeholder:n,nodes:r,childrenMap:o}=this,u=t===m?null:this.evaluate(t),a=u?Array.from(u):[],{newChildrenMap:c,batches:f,futureNodes:l}=(n.parentNode,function(t,e,n,r){const{condition:o,template:i,childrenMap:s,itemName:u,getKey:a,indexName:c,root:f,isTemplateTag:l}=r,p=new Map,d=[],h=[];return t.forEach((t,r)=>{const m=function(t,e){let{itemName:n,indexName:r,index:o,item:i}=e;t[n]=i,r&&(t[r]=o);return t}(Object.create(e),{itemName:u,indexName:c,index:r,item:t}),g=a?a(m):r,b=s.get(g);if(function(t,e){return!!t&&!1===Boolean(t(e))}(o,m))return;const v=b?b.template:i.clone(),y=b?v.el:f.cloneNode(),O=!b,E=l&&O?function(t){const e=t.dom.cloneNode(!0);return{avoidDOMInjection:!0,fragment:e,children:Array.from(e.childNodes)}}(v):{};if(O?d.push(()=>v.mount(y,m,n,E)):d.push(()=>v.update(m,n)),l){const t=E.children||v.children;h.push(...t)}else h.push(y);s.delete(g),p.set(g,{template:v,context:m,index:r})}),{newChildrenMap:p,batches:d,futureNodes:h}}(a,t,e,this));return((t,e,n,r,o)=>{const u=n.length;let a=e.length,c=u,f=0,l=0,p=null;for(;f<a||l<c;)if(a===f){const t=c<u?l?r(n[l-1],-0).nextSibling:r(n[c-l],0):o;for(;l<c;)s(r(n[l++],1),t)}else if(c===l)for(;f<a;)p&&p.has(e[f])||i(r(e[f],-1)),f++;else if(e[f]===n[l])f++,l++;else if(e[a-1]===n[c-1])a--,c--;else if(e[f]===n[c-1]&&n[l]===e[a-1]){const t=r(e[--a],-1).nextSibling;s(r(n[l++],1),r(e[f++],-1).nextSibling),s(r(n[--c],1),t),e[a]=n[c]}else{if(!p){p=new Map;let t=l;for(;t<c;)p.set(n[t],t++)}if(p.has(e[f])){const t=p.get(e[f]);if(l<t&&t<c){let o=f,i=1;for(;++o<a&&o<c&&p.get(e[o])===t+i;)i++;if(i>t-l){const o=r(e[f],0);for(;l<t;)s(r(n[l++],1),o)}else d=r(n[l++],1),(h=r(e[f++],-1))&&h.parentNode&&h.parentNode.replaceChild(d,h)}else f++}else i(r(e[f++],-1))}var d,h})(0,r,l,function(t,e){return(n,r)=>{if(r<0){const n=t.pop();if(n){const{template:t,context:r}=n;t.unmount(r,e,null)}}return n}}(Array.from(o.values()),e),n),f.forEach(t=>t()),this.childrenMap=c,this.nodes=l,this},unmount(t,e){return this.update(m,e),this}};const b={mount(t,e){return this.update(t,e)},update(t,e){const n=!!this.evaluate(t),r=!this.value&&n,o=this.value&&!n,i=()=>{const n=this.node.cloneNode();s(n,this.placeholder),this.template=this.template.clone(),this.template.mount(n,t,e)};switch(!0){case r:i();break;case o:this.unmount(t);break;default:n&&this.template.update(t,e)}return this.value=n,this},unmount(t,e){return this.template.unmount(t,e,!0),this}};function v(t){throw new Error(t)}function y(t){return t.reduce((t,e)=>{const{value:n,type:o}=e;switch(!0){case!e.name&&0===o:return Object.assign({},t,n);case 3===o:t.value=e.value;break;default:t[r(e.name)]=e.value}return t},{})}const O="undefined"==typeof Element?{}:Element.prototype,E=function(t){const e=new Map,n=n=>(e.has(n)||e.set(n,t.call(this,n)))&&e.get(n);return n.cache=e,n}(t=>O.hasOwnProperty(t));function T(t,e,n,r){let{name:o}=e;if(!o)return r&&function(t,e,n){const r=e?Object.keys(e):[];Object.keys(n).filter(t=>!r.includes(t)).forEach(e=>t.removeAttribute(e))}(t,n,r),void(n&&function(t,e){Object.entries(e).forEach(e=>{let[n,r]=e;return T(t,{name:n},r)})}(t,n));!E(o)&&(function(t){return c(t,"boolean")}(n)||d(n)||p(n))&&(t[o]=n),t[function(t){return h(t)||!1===t||""===t||d(t)||p(t)?"removeAttribute":"setAttribute"}(n)](o,function(t,e){return!0===e?t:e}(o,n))}const w=/^on/,x={handleEvent(t){this[t.type](t)}},N=new WeakMap;function j(t){return h(t)?"":t}const S=(t,e)=>{const n=t.childNodes[e];if(n.nodeType===Node.COMMENT_NODE){const e=document.createTextNode("");return t.replaceChild(e,n),e}return n};var A={0:T,1:function(t,e,n){let{name:r}=e;const o=r.replace(w,""),i=N.get(t)||(t=>{const e=Object.create(x);return N.set(t,e),e})(t),[s,u]=(t=>Array.isArray(t)?t:[t,!1])(n),a=i[o],c=s&&!a;a&&!s&&t.removeEventListener(o,i),c&&t.addEventListener(o,i,u),i[o]=s},2:function(t,e,n){t.data=j(n)},3:function(t,e,n){t.value=j(n)}};const M={mount(t){return this.value=this.evaluate(t),_(this,this.value),this},update(t){const e=this.evaluate(t);return this.value!==e&&(_(this,e),this.value=e),this},unmount(){return 1===this.type&&_(this,null),this}};function _(t,e){return A[t.type](t.node,t,e,t.value)}function C(t,e){return Object.assign({},M,e,{node:2===e.type?S(t,e.childNodeIndex):t})}const U=new Map,P=Symbol("riot-component"),R=new Set,B="mount",L="update",D="unmount",k=Symbol.for("pure"),I=Symbol("parent"),Y=Symbol("attributes"),q=Symbol("template");var K=Object.freeze({__proto__:null,COMPONENTS_IMPLEMENTATION_MAP:U,DOM_COMPONENT_INSTANCE_PROPERTY:P,PLUGINS_SET:R,IS_DIRECTIVE:"is",VALUE_ATTRIBUTE:"value",MOUNT_METHOD_KEY:B,UPDATE_METHOD_KEY:L,UNMOUNT_METHOD_KEY:D,SHOULD_UPDATE_KEY:"shouldUpdate",ON_BEFORE_MOUNT_KEY:"onBeforeMount",ON_MOUNTED_KEY:"onMounted",ON_BEFORE_UPDATE_KEY:"onBeforeUpdate",ON_UPDATED_KEY:"onUpdated",ON_BEFORE_UNMOUNT_KEY:"onBeforeUnmount",ON_UNMOUNTED_KEY:"onUnmounted",PROPS_KEY:"props",STATE_KEY:"state",SLOTS_KEY:"slots",ROOT_KEY:"root",IS_PURE_SYMBOL:k,PARENT_KEY_SYMBOL:I,ATTRIBUTES_KEY_SYMBOL:Y,TEMPLATE_KEY_SYMBOL:q});const z=(t,e)=>t[I]||e,F={attributes:[],getTemplateScope(t,e){return function(t,e,n){if(!t||!t.length)return n;const r=t.map(t=>Object.assign({},t,{value:t.evaluate(e)}));return Object.assign(Object.create(n||null),y(r))}(this.attributes,t,e)},mount(t,e){const n=!!t.slots&&t.slots.find(t=>{let{id:e}=t;return e===this.name}),{parentNode:r}=this.node,o=z(t,e);return this.template=n&&Q(n.html,n.bindings).createDOM(r),this.template&&(this.template.mount(this.node,this.getTemplateScope(t,o),o),this.template.children=Array.from(this.node.childNodes),function t(e){const n=e&&e.firstChild;if(!n)return;s(n,e),t(e)}(this.node)),i(this.node),this},update(t,e){if(this.template){const n=z(t,e);this.template.update(this.getTemplateScope(t,n),n)}return this},unmount(t,e,n){return this.template&&this.template.unmount(this.getTemplateScope(t,e),null,n),this}};function H(t){return t.reduce((t,e)=>{let{bindings:n}=e;return t.concat(n)},[])}const $={mount(t){return this.update(t)},update(t,e){const n=this.evaluate(t);return n===this.name?this.tag.update(t):(this.unmount(t,e,!0),this.name=n,this.tag=function(t,e,n){return void 0===e&&(e=[]),void 0===n&&(n=[]),t?t({slots:e,attributes:n}):Q(function(t){return t.reduce((t,e)=>t+e.html,"")}(e),[...H(e),{expressions:n.map(t=>Object.assign({type:0},t))}])}(this.getComponent(n),this.slots,this.attributes),this.tag.mount(this.node,t)),this},unmount(t,e,n){return this.tag&&this.tag.unmount(n),this}};var V={1:function(t,e){let{evaluate:n,template:r}=e;const o=document.createTextNode("");return s(o,t),i(t),Object.assign({},b,{node:t,evaluate:n,placeholder:o,template:r.createDOM(t)})},2:function(t,e){let{expressions:n}=e;return Object.assign({},(r=n.map(e=>C(t,e)),["mount","update","unmount"].reduce((t,e)=>Object.assign({},t,{[e]:t=>r.map(n=>n[e](t))&&o}),{})));var r,o},0:function(t,e){let{evaluate:n,condition:r,itemName:o,indexName:u,getKey:a,template:c}=e;const f=document.createTextNode(""),p=t.cloneNode();return s(f,t),i(t),Object.assign({},g,{childrenMap:new Map,node:t,root:p,condition:r,evaluate:n,isTemplateTag:l(p),template:c.createDOM(t),getKey:a,indexName:u,itemName:o,placeholder:f})},3:function(t,e){let{evaluate:n,getComponent:r,slots:o,attributes:i}=e;return Object.assign({},$,{node:t,evaluate:n,slots:o,attributes:i,getComponent:r})},4:function(t,e){let{name:n,attributes:r}=e;return Object.assign({},F,{attributes:r,node:t,name:n})}};function X(t,e){return t.map(t=>2===t.type?Object.assign({},t,{childNodeIndex:t.childNodeIndex+e}):t)}function G(t,e,n){const{selector:r,type:o,redundantAttribute:i,expressions:s}=e,u=r?t.querySelector(r):t;i&&u.removeAttribute(i);const a=s||[];return(V[o]||V[2])(u,Object.assign({},e,{expressions:n&&!r?X(a,n):a}))}function J(t,e){return f(t)?function(t,e){return e.ownerDocument.importNode((new window.DOMParser).parseFromString(`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,"application/xml").documentElement,!0)}(e,t):function(t,e){const n=l(e)?e:document.createElement("template");return n.innerHTML=t,n.content}(e,t)}function W(t,e){switch(!0){case f(t):!function t(e,n){e.firstChild&&(n.appendChild(e.firstChild),t(e,n))}(e,t);break;case l(t):t.parentNode.replaceChild(e,t);break;default:t.appendChild(e)}}const Z=Object.freeze({createDOM(t){return this.dom=this.dom||function(t,e){return e&&("string"==typeof e?J(t,e):e)}(t,this.html),this},mount(t,e,n,r){if(void 0===r&&(r={}),!t)throw new Error("Please provide DOM node to mount properly your template");this.el&&this.unmount(e);const{fragment:o,children:i,avoidDOMInjection:s}=r,{parentNode:u}=i?i[0]:t,a=l(t),c=a?Math.max(Array.from(u.childNodes).indexOf(t),0):null;return this.isTemplateTag=a,this.createDOM(t),this.dom&&(this.fragment=o||this.dom.cloneNode(!0)),this.el=this.isTemplateTag?u:t,this.children=this.isTemplateTag?i||Array.from(this.fragment.childNodes):null,!s&&this.fragment&&W(t,this.fragment),this.bindings=this.bindingsData.map(t=>G(this.el,t,c)),this.bindings.forEach(t=>t.mount(e,n)),this},update(t,e){return this.bindings.forEach(n=>n.update(t,e)),this},unmount(t,e,n){if(this.el){switch(this.bindings.forEach(r=>r.unmount(t,e,n)),!0){case this.children&&null!==n:o(this.children);break;case!0===n:i(this.el);break;case null!==n:o(this.el.childNodes)}this.el=null}return this},clone(){return Object.assign({},this,{el:null})}});function Q(t,e){return void 0===e&&(e=[]),Object.assign({},Z,{html:t,bindingsData:e})}var tt=Object.freeze({__proto__:null,template:Q,createBinding:G,createExpression:C,bindingTypes:u,expressionTypes:a});function et(){return this}function nt(t){return p(t)?t.prototype&&t.prototype.constructor?new t:t():t}function rt(t,e,n,r){return void 0===r&&(r={}),Object.defineProperty(t,e,Object.assign({value:n,enumerable:!1,writable:!1,configurable:!0},r)),t}function ot(t,e,n){return Object.entries(e).forEach(e=>{let[r,o]=e;rt(t,r,o,n)}),t}function it(t,e){return Object.entries(e).forEach(e=>{let[n,r]=e;t[n]||(t[n]=r)}),t}function st(t){return Array.isArray(t)?t:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&"number"==typeof t.length?Array.from(t):[t]}function ut(t,e){return st("string"==typeof t?(e||document).querySelectorAll(t):t)}const at=t=>1===t.length?t[0]:t;function ct(t,e,n){const r="object"==typeof e?e:{[e]:n},o=Object.keys(r);return st(t).forEach(t=>{o.forEach(e=>t.setAttribute(e,r[e]))}),t}function ft(t,e){return function(t,e,n){const r="string"==typeof e?[e]:e;return at(st(t).map(t=>at(r.map(e=>t[n](e)))))}(t,e,"getAttribute")}const lt=new Map,pt=()=>dt||(ct(dt=ut("style[riot]")[0]||document.createElement("style"),"type","text/css"),dt.parentNode||document.head.appendChild(dt),dt);var dt,ht={CSS_BY_NAME:lt,add(t,e){return lt.has(t)||(lt.set(t,e),this.inject()),this},inject(){return pt().innerHTML=[...lt.values()].join("\n"),this},remove(t){return lt.has(t)&&(lt.delete(t),this.inject()),this}};function mt(t){return ft(t,"is")||t.tagName.toLowerCase()}const gt=Object.freeze({$(t){return ut(t,this.root)[0]},$$(t){return ut(t,this.root)}}),bt=Object.freeze({[B]:et,[L]:et,[D]:et}),vt=Object.freeze({shouldUpdate:et,onBeforeMount:et,onMounted:et,onBeforeUpdate:et,onUpdated:et,onBeforeUnmount:et,onUnmounted:et}),yt=Object.assign({},bt,{clone:et,createDOM:et});function Ot(t,e){return void 0===e&&(e={}),Object.assign({},function(t){return Array.from(t.attributes).reduce((t,e)=>(t[r(e.name)]=e.value,t),{})}(t),nt(e))}const Et=(t,e)=>t[P]=e;function Tt(t){return[B,L,D].reduce((e,n)=>(e[n]=t(n),e),{})}function wt(t){let{css:e,template:n,exports:r,name:o}=t;const i=n?function(t,e){return t(Q,a,u,t=>e[t]||U.get(t))}(n,r?function(t){void 0===t&&(t={});return Object.entries(nt(t)).reduce((t,e)=>{let[n,r]=e;
/* Riot v5.1.1, @license MIT */
var o;return t[(o=n,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=wt(r),t},{})}(r.components):{}):yt;return t=>{let{slots:s,attributes:u,props:a}=t;if(r&&r[k])return function(t,e){let{slots:n,attributes:r,props:o,css:i,template:s}=e;s&&v("Pure components can not have html"),i&&v("Pure components do not have css");const u=it(t({slots:n,attributes:r,props:o}),bt);return Tt(t=>function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(t===B){const[t]=n;Et(t,u)}return u[t](...n),u})}(r,{slots:s,attributes:u,props:a,css:e,template:n});const c=nt(r)||{},f=xt({css:e,template:i,componentAPI:c,name:o})({slots:s,attributes:u,props:a});return{mount:(t,e,n)=>f.mount(t,n,e),update:(t,e)=>f.update(e,t),unmount:t=>f.unmount(t)}}}function xt(t){let{css:e,template:n,componentAPI:r,name:o}=t;return e&&o&&ht.add(o,e),function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(o=[...r,...o]).length<e.length?t(e,...o):e(...o)}}(jt)(ot(it(r,Object.assign({},vt,{state:{}})),Object.assign({slots:null,root:null},gt,{name:o,css:e,template:n})))}function Nt(t,e){return Object.assign({},t,nt(e))}function jt(t,e){let{slots:n,attributes:r,props:o}=e;return i=function(t){return[...R].reduce((t,e)=>e(t)||t,t)}(ot(Object.create(t),{mount(e,i,s){return void 0===i&&(i={}),this[Y]=function(t,e){void 0===e&&(e=[]);const n=e.map(e=>C(t,e)),r={};return Object.assign(r,Object.assign({expressions:n},Tt(t=>e=>(n.forEach(n=>n[t](e)),r))))}(e,r).mount(s),rt(this,"props",Object.freeze(Object.assign({},Ot(e,o),y(this[Y].expressions)))),this.state=Nt(this.state,i),this[q]=this.template.createDOM(e).clone(),Et(e,this),t.name&&function(t,e){mt(t)!==e&&ct(t,"is",e)}(e,t.name),rt(this,"root",e),rt(this,"slots",n),this.onBeforeMount(this.props,this.state),this[I]=s,this[q].mount(e,this,s),this.onMounted(this.props,this.state),this},update(t,e){void 0===t&&(t={}),e&&(this[I]=e,this[Y].update(e));const n=y(this[Y].expressions);if(!1!==this.shouldUpdate(n,this.props))return rt(this,"props",Object.freeze(Object.assign({},this.props,n))),this.state=Nt(this.state,t),this.onBeforeUpdate(this.props,this.state),this[q].update(this,this[I]),this.onUpdated(this.props,this.state),this},unmount(t){return this.onBeforeUnmount(this.props,this.state),this[Y].unmount(),this[q].unmount(this,this[I],null===t?null:!t),this.onUnmounted(this.props,this.state),this}})),Object.keys(t).filter(e=>p(t[e])).forEach(t=>{i[t]=i[t].bind(i)}),i;var i}const{DOM_COMPONENT_INSTANCE_PROPERTY:St,COMPONENTS_IMPLEMENTATION_MAP:At,PLUGINS_SET:Mt}=K;function _t(t,e){let{css:n,template:r,exports:o}=e;return At.has(t)&&v(`The component "${t}" was already registered`),At.set(t,wt({name:t,css:n,template:r,exports:o})),At}function Ct(t){return At.has(t)||v(`The component "${t}" was never registered`),At.delete(t),ht.remove(t),At}function Ut(t,e,n){return ut(t).map(t=>function(t,e,n){const r=n||mt(t);return U.has(r)||v(`The component named "${r}" was never registered`),U.get(r)({props:e}).mount(t)}(t,e,n))}function Pt(t,e){return ut(t).map(t=>(t[St]&&t[St].unmount(e),t))}function Rt(t){return p(t)||v("Plugins must be of type function"),Mt.has(t)&&v("This plugin was already installed"),Mt.add(t),Mt}function Bt(t){return Mt.has(t)||v("This plugin was never installed"),Mt.delete(t),Mt}function Lt(t){return function(e,n,r){let{slots:o,attributes:i,parentScope:s}=void 0===r?{}:r;return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((t,e)=>function(){return t(e(...arguments))})}(t=>t.mount(e,s),t=>t({props:n,slots:o,attributes:i}),wt)(t)}}function Dt(t){return p(t)||v('riot.pure accepts only arguments of type "function"'),t[k]=!0,t}const kt="v5.1.1",It={cssManager:ht,DOMBindings:tt,createComponent:wt,defineComponent:xt,globals:K}},,,,,,function(t,e){}]);