UNPKG

semantic-ui-riot

Version:
28 lines 148 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("riot")):"function"==typeof define&&define.amd?define(["riot"],t):"object"==typeof exports?exports.SemanticUiRiot=t(require("riot")):e.SemanticUiRiot=t(e.riot)}(window,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(t,n){t.exports=e},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return i}))},function(e,t,n){(function(t,n){ /*! * * Copyright 2009-2017 Kris Kowal under the terms of the MIT * license found at https://github.com/kriskowal/q/blob/v1/LICENSE * * With parts by Tyler Close * Copyright 2007-2009 Tyler Close under the terms of the MIT X license found * at http://www.opensource.org/licenses/mit-license.html * Forked at ref_send.js version: 2009-05-11 * * With parts by Mark Miller * Copyright (C) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ !function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var i,a=k(),r=function(){},o=function(){var e={task:void 0,next:null},i=e,a=!1,r=void 0,s=!1,u=[];function l(){for(var t,n;e.next;)t=(e=e.next).task,e.task=void 0,(n=e.domain)&&(e.domain=void 0,n.enter()),c(t,n);for(;u.length;)c(t=u.pop());a=!1}function c(e,t){try{e()}catch(e){if(s)throw t&&t.exit(),setTimeout(l,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(o=function(e){i=i.next={task:e,domain:s&&t.domain,next:null},a||(a=!0,r())},"object"==typeof t&&"[object process]"===t.toString()&&t.nextTick)s=!0,r=function(){t.nextTick(l)};else if("function"==typeof n)r="undefined"!=typeof window?n.bind(window,l):function(){n(l)};else if("undefined"!=typeof MessageChannel){var d=new MessageChannel;d.port1.onmessage=function(){r=p,d.port1.onmessage=l,l()};var p=function(){d.port2.postMessage(0)};r=function(){setTimeout(l,0),p()}}else r=function(){setTimeout(l,0)};return o.runAfter=function(e){u.push(e),a||(a=!0,r())},o}(),s=Function.call;function u(e){return function(){return s.apply(e,arguments)}}var l,c=u(Array.prototype.slice),d=u(Array.prototype.reduce||function(e,t){var n=0,i=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=i)throw new TypeError}for(;n<i;n++)n in this&&(t=e(t,this[n],n));return t}),p=u(Array.prototype.indexOf||function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1}),f=u(Array.prototype.map||function(e,t){var n=this,i=[];return d(n,(function(a,r,o){i.push(e.call(t,r,o,n))}),void 0),i}),m=Object.create||function(e){function t(){}return t.prototype=e,new t},h=Object.defineProperty||function(e,t,n){return e[t]=n.value,e},v=u(Object.prototype.hasOwnProperty),g=Object.keys||function(e){var t=[];for(var n in e)v(e,n)&&t.push(n);return t},b=u(Object.prototype.toString);function y(e){return"[object StopIteration]"===b(e)||e instanceof l}l="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e};function x(t,n){if(e&&n.stack&&"object"==typeof t&&null!==t&&t.stack){for(var i=[],a=n;a;a=a.source)a.stack&&(!t.__minimumStackCounter__||t.__minimumStackCounter__>a.stackCounter)&&(h(t,"__minimumStackCounter__",{value:a.stackCounter,configurable:!0}),i.unshift(a.stack));i.unshift(t.stack);var r=function(e){for(var t=e.split("\n"),n=[],i=0;i<t.length;++i){var a=t[i];!w(a)&&(-1===(r=a).indexOf("(module.js:")&&-1===r.indexOf("(node.js:"))&&a&&n.push(a)}var r;return n.join("\n")}(i.join("\nFrom previous event:\n"));h(t,"stack",{value:r,configurable:!0})}}function T(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var i=/.*@(.+):(\d+)$/.exec(e);return i?[i[1],Number(i[2])]:void 0}function w(e){var t=T(e);if(!t)return!1;var n=t[0],r=t[1];return n===i&&r>=a&&r<=K}function k(){if(e)try{throw new Error}catch(e){var t=e.stack.split("\n"),n=T(t[0].indexOf("@")>0?t[1]:t[2]);if(!n)return;return i=n[0],n[1]}}function E(e){return e instanceof U?e:j(e)?function(e){var t=I();return E.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):L(e)}E.resolve=E,E.nextTick=o,E.longStackSupport=!1;var A=1;function I(){var t,n=[],i=[],a=m(I.prototype),r=m(U.prototype);if(r.promiseDispatch=function(e,a,r){var o=c(arguments);n?(n.push(o),"when"===a&&r[1]&&i.push(r[1])):E.nextTick((function(){t.promiseDispatch.apply(t,o)}))},r.valueOf=function(){if(n)return r;var e=M(t);return R(e)&&(t=e),e},r.inspect=function(){return t?t.inspect():{state:"pending"}},E.longStackSupport&&e)try{throw new Error}catch(e){r.stack=e.stack.substring(e.stack.indexOf("\n")+1),r.stackCounter=A++}function o(a){t=a,E.longStackSupport&&e&&(r.source=a),d(n,(function(e,t){E.nextTick((function(){a.promiseDispatch.apply(a,t)}))}),void 0),n=void 0,i=void 0}return a.promise=r,a.resolve=function(e){t||o(E(e))},a.fulfill=function(e){t||o(L(e))},a.reject=function(e){t||o(Y(e))},a.notify=function(e){t||d(i,(function(t,n){E.nextTick((function(){n(e)}))}),void 0)},a}function C(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=I();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function N(e){return C((function(t,n){for(var i=0,a=e.length;i<a;i++)E(e[i]).then(t,n)}))}function U(e,t,n){void 0===t&&(t=function(e){return Y(new Error("Promise does not support operation: "+e))}),void 0===n&&(n=function(){return{state:"unknown"}});var i=m(U.prototype);if(i.promiseDispatch=function(n,a,r){var o;try{o=e[a]?e[a].apply(i,r):t.call(i,a,r)}catch(e){o=Y(e)}n&&n(o)},i.inspect=n,n){var a=n();"rejected"===a.state&&(i.exception=a.reason),i.valueOf=function(){var e=n();return"pending"===e.state||"rejected"===e.state?i:e.value}}return i}function B(e,t,n,i){return E(e).then(t,n,i)}function M(e){if(R(e)){var t=e.inspect();if("fulfilled"===t.state)return t.value}return e}function R(e){return e instanceof U}function j(e){return(t=e)===Object(t)&&"function"==typeof e.then;var t}"object"==typeof t&&t&&t.env&&t.env.Q_DEBUG&&(E.longStackSupport=!0),E.defer=I,I.prototype.makeNodeResolver=function(){var e=this;return function(t,n){t?e.reject(t):arguments.length>2?e.resolve(c(arguments,1)):e.resolve(n)}},E.Promise=C,E.promise=C,C.race=N,C.all=$,C.reject=Y,C.resolve=E,E.passByCopy=function(e){return e},U.prototype.passByCopy=function(){return this},E.join=function(e,t){return E(e).join(t)},U.prototype.join=function(e){return E([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},E.race=N,U.prototype.race=function(){return this.then(E.race)},E.makePromise=U,U.prototype.toString=function(){return"[object Promise]"},U.prototype.then=function(e,t,n){var i=this,a=I(),r=!1;return E.nextTick((function(){i.promiseDispatch((function(t){r||(r=!0,a.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return Y(e)}}(t)))}),"when",[function(e){r||(r=!0,a.resolve(function(e){if("function"==typeof t){x(e,i);try{return t(e)}catch(e){return Y(e)}}return Y(e)}(e)))}])})),i.promiseDispatch(void 0,"when",[void 0,function(e){var t,i=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(i=!0,!E.onerror)throw e;E.onerror(e)}i||a.notify(t)}]),a.promise},E.tap=function(e,t){return E(e).tap(t)},U.prototype.tap=function(e){return e=E(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},E.when=B,U.prototype.thenResolve=function(e){return this.then((function(){return e}))},E.thenResolve=function(e,t){return E(e).thenResolve(t)},U.prototype.thenReject=function(e){return this.then((function(){throw e}))},E.thenReject=function(e,t){return E(e).thenReject(t)},E.nearer=M,E.isPromise=R,E.isPromiseAlike=j,E.isPending=function(e){return R(e)&&"pending"===e.inspect().state},U.prototype.isPending=function(){return"pending"===this.inspect().state},E.isFulfilled=function(e){return!R(e)||"fulfilled"===e.inspect().state},U.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},E.isRejected=function(e){return R(e)&&"rejected"===e.inspect().state},U.prototype.isRejected=function(){return"rejected"===this.inspect().state};var D,S,V,P=[],O=[],F=[],_=!0;function z(){P.length=0,O.length=0,_||(_=!0)}function Y(e){var n=U({when:function(n){return n&&function(e){if(_){var n=p(O,e);-1!==n&&("object"==typeof t&&"function"==typeof t.emit&&E.nextTick.runAfter((function(){var i=p(F,e);-1!==i&&(t.emit("rejectionHandled",P[n],e),F.splice(i,1))})),O.splice(n,1),P.splice(n,1))}}(this),n?n(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,n){_&&("object"==typeof t&&"function"==typeof t.emit&&E.nextTick.runAfter((function(){-1!==p(O,e)&&(t.emit("unhandledRejection",n,e),F.push(e))})),O.push(e),n&&void 0!==n.stack?P.push(n.stack):P.push("(no stack) "+n))}(n,e),n}function L(e){return U({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return g(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function H(e,t,n){return E(e).spread(t,n)}function X(e,t,n){return E(e).dispatch(t,n)}function $(e){return B(e,(function(e){var t=0,n=I();return d(e,(function(i,a,r){var o;R(a)&&"fulfilled"===(o=a.inspect()).state?e[r]=o.value:(++t,B(a,(function(i){e[r]=i,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:r,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function W(e){if(0===e.length)return E.resolve();var t=E.defer(),n=0;return d(e,(function(i,a,r){var o=e[r];n++,B(o,(function(e){t.resolve(e)}),(function(e){if(0===--n){var i=e||new Error(""+e);i.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+i.message,t.reject(i)}}),(function(e){t.notify({index:r,value:e})}))}),void 0),t.promise}function q(e){return B(e,(function(e){return e=f(e,E),B($(f(e,(function(e){return B(e,r,r)}))),(function(){return e}))}))}E.resetUnhandledRejections=z,E.getUnhandledReasons=function(){return P.slice()},E.stopUnhandledRejectionTracking=function(){z(),_=!1},z(),E.reject=Y,E.fulfill=L,E.master=function(e){return U({isDef:function(){}},(function(t,n){return X(e,t,n)}),(function(){return E(e).inspect()}))},E.spread=H,U.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},E.async=function(e){return function(){function t(e,t){var r;if("undefined"==typeof StopIteration){try{r=n[e](t)}catch(e){return Y(e)}return r.done?E(r.value):B(r.value,i,a)}try{r=n[e](t)}catch(e){return y(e)?E(e.value):Y(e)}return B(r,i,a)}var n=e.apply(this,arguments),i=t.bind(t,"next"),a=t.bind(t,"throw");return i()}},E.spawn=function(e){E.done(E.async(e)())},E.return=function(e){throw new l(e)},E.promised=function(e){return function(){return H([this,$(arguments)],(function(t,n){return e.apply(t,n)}))}},E.dispatch=X,U.prototype.dispatch=function(e,t){var n=this,i=I();return E.nextTick((function(){n.promiseDispatch(i.resolve,e,t)})),i.promise},E.get=function(e,t){return E(e).dispatch("get",[t])},U.prototype.get=function(e){return this.dispatch("get",[e])},E.set=function(e,t,n){return E(e).dispatch("set",[t,n])},U.prototype.set=function(e,t){return this.dispatch("set",[e,t])},E.del=E.delete=function(e,t){return E(e).dispatch("delete",[t])},U.prototype.del=U.prototype.delete=function(e){return this.dispatch("delete",[e])},E.mapply=E.post=function(e,t,n){return E(e).dispatch("post",[t,n])},U.prototype.mapply=U.prototype.post=function(e,t){return this.dispatch("post",[e,t])},E.send=E.mcall=E.invoke=function(e,t){return E(e).dispatch("post",[t,c(arguments,2)])},U.prototype.send=U.prototype.mcall=U.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},E.fapply=function(e,t){return E(e).dispatch("apply",[void 0,t])},U.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},E.try=E.fcall=function(e){return E(e).dispatch("apply",[void 0,c(arguments,1)])},U.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},E.fbind=function(e){var t=E(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},U.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},E.keys=function(e){return E(e).dispatch("keys",[])},U.prototype.keys=function(){return this.dispatch("keys",[])},E.all=$,U.prototype.all=function(){return $(this)},E.any=W,U.prototype.any=function(){return W(this)},E.allResolved=(D=q,S="allResolved",V="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(S+" is deprecated, use "+V+" instead.",new Error("").stack),D.apply(D,arguments)}),U.prototype.allResolved=function(){return q(this)},E.allSettled=function(e){return E(e).allSettled()},U.prototype.allSettled=function(){return this.then((function(e){return $(f(e,(function(e){function t(){return e.inspect()}return(e=E(e)).then(t,t)})))}))},E.fail=E.catch=function(e,t){return E(e).then(void 0,t)},U.prototype.fail=U.prototype.catch=function(e){return this.then(void 0,e)},E.progress=function(e,t){return E(e).then(void 0,void 0,t)},U.prototype.progress=function(e){return this.then(void 0,void 0,e)},E.fin=E.finally=function(e,t){return E(e).finally(t)},U.prototype.fin=U.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=E(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},E.done=function(e,t,n,i){return E(e).done(t,n,i)},U.prototype.done=function(e,n,i){var a=function(e){E.nextTick((function(){if(x(e,r),!E.onerror)throw e;E.onerror(e)}))},r=e||n||i?this.then(e,n,i):this;"object"==typeof t&&t&&t.domain&&(a=t.domain.bind(a)),r.then(void 0,a)},E.timeout=function(e,t,n){return E(e).timeout(t,n)},U.prototype.timeout=function(e,t){var n=I(),i=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(i),n.resolve(e)}),(function(e){clearTimeout(i),n.reject(e)}),n.notify),n.promise},E.delay=function(e,t){return void 0===t&&(t=e,e=void 0),E(e).delay(t)},U.prototype.delay=function(e){return this.then((function(t){var n=I();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},E.nfapply=function(e,t){return E(e).nfapply(t)},U.prototype.nfapply=function(e){var t=I(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},E.nfcall=function(e){var t=c(arguments,1);return E(e).nfapply(t)},U.prototype.nfcall=function(){var e=c(arguments),t=I();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},E.nfbind=E.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),i=I();return n.push(i.makeNodeResolver()),E(e).fapply(n).fail(i.reject),i.promise}},U.prototype.nfbind=U.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),E.denodeify.apply(void 0,e)},E.nbind=function(e,t){var n=c(arguments,2);return function(){var i=n.concat(c(arguments)),a=I();function r(){return e.apply(t,arguments)}return i.push(a.makeNodeResolver()),E(r).fapply(i).fail(a.reject),a.promise}},U.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),E.nbind.apply(void 0,e)},E.nmapply=E.npost=function(e,t,n){return E(e).npost(t,n)},U.prototype.nmapply=U.prototype.npost=function(e,t){var n=c(t||[]),i=I();return n.push(i.makeNodeResolver()),this.dispatch("post",[e,n]).fail(i.reject),i.promise},E.nsend=E.nmcall=E.ninvoke=function(e,t){var n=c(arguments,2),i=I();return n.push(i.makeNodeResolver()),E(e).dispatch("post",[t,n]).fail(i.reject),i.promise},U.prototype.nsend=U.prototype.nmcall=U.prototype.ninvoke=function(e){var t=c(arguments,1),n=I();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},E.nodeify=function(e,t){return E(e).nodeify(t)},U.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){E.nextTick((function(){e(null,t)}))}),(function(t){E.nextTick((function(){e(t)}))}))},E.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var K=k();return E}))}).call(this,n(3),n(6).setImmediate)},function(e,t){var n,i,a=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var u,l=[],c=!1,d=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&f())}function f(){if(!c){var e=s(p);c=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||c||s(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){!function(t,n){const i=Object.defineProperties,a=Object.entries,r=(e,t)=>(n,i)=>(e.has(n)?e.get(n).add(i):e.set(n,(new Set).add(i)),t),o=(e,t)=>(n,i)=>("*"!==n||i?((e,t,n,i)=>{if(i){const t=e.get(n);t&&(t.delete(i),0===t.size&&e.delete(n))}else e.delete(n)})(e,0,n,i):e.clear(),t),s=(e,t)=>(e,n)=>t.on(e,(function i(...a){t.off(e,i),n.apply(t,a)})),u=(e,t)=>(n,...i)=>{const a=e.get(n);return a&&a.forEach(e=>e.apply(t,i)),e.get("*")&&"*"!==n&&t.trigger("*",n,...i),t};e.exports=function(e){const t=new Map;return i(e=e||{},a({on:r,off:o,one:s,trigger:u}).reduce((n,[i,a])=>(n[i]={value:a(t,e),enumerable:!1,writable:!1,configurable:!1},n),{})),e}}("undefined"!=typeof window&&window)},function(e,t,n){(function(e){var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new r(a.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(a.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(7),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(4))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var i,a,r,o,s,u=1,l={},c=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){m(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){m(e.data)},i=function(e){r.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(a=d.documentElement,i=function(e){var t=d.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):i=function(e){setTimeout(m,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&m(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(o+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return l[u]=a,i(u),u++},p.clearImmediate=f}function f(e){delete l[e]}function m(e){if(c)setTimeout(m,0,e);else{var t=l[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{f(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(4),n(3))},function(e,t,n){"use strict";n.r(t);var i=n(0),a=n(5),r=n.n(a),o=n(2),s=n.n(o);let u=0;var l={css:null,exports:{state:{active:!1},onMounted:function(e,t){this.su_id="su-accordion-"+u++,this.update(),this.obs.on(this.su_id+"-toggle-active",e=>{this.update({active:e})})},onClick:function(){this.obs.trigger(this.su_id+"-click",{id:this.su_id,active:this.state.active,label:this.props.title})}},template:function(e,t,n,i){return e('<div expr1="expr1"><i class="dropdown icon"></i> </div><div expr2="expr2"><slot expr3="expr3"></slot></div>',[{expressions:[{type:t.ATTRIBUTE,name:"id",evaluate:function(e){return e.su_id}}]},{redundantAttribute:"expr1",selector:"[expr1]",expressions:[{type:t.TEXT,childNodeIndex:1,evaluate:function(e){return[e.props.title].join("")}},{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["title ",e.state.active?"active":""].join("")}},{type:t.EVENT,name:"onclick",evaluate:function(e){return e.onClick}}]},{redundantAttribute:"expr2",selector:"[expr2]",expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["content active ",e.state.active?"open":"close"].join("")}}]},{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr3",selector:"[expr3]"}])},name:"su-accordion"};var c={css:'su-accordionset,[is="su-accordionset"]{ display: block; } su-accordionset.ui.accordion .title~.content:not(.ui).close,[is="su-accordionset"].ui.accordion .title~.content:not(.ui).close{ padding-top: 0; padding-bottom: 0; } su-accordionset .content.close *,[is="su-accordionset"] .content.close *{ line-height: 0 !important; opacity: 0 !important; visibility: hidden !important; padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; min-height: 0 !important; transition: all 300ms 0s linear !important; } su-accordionset .content.close .dropdown.icon,[is="su-accordionset"] .content.close .dropdown.icon{ height: 0 !important; transition: height 300ms 0s linear !important; } su-accordionset .content.open *,[is="su-accordionset"] .content.open *{ line-height: 1.4285; opacity: 1; visibility: visible; transition: all 300ms 0s linear !important; } su-accordionset .content.open .dropdown.icon,[is="su-accordionset"] .content.open .dropdown.icon{ height: 1.4285 !important; transition: height 300ms 0s linear !important; }',exports:{state:{},accordions:[],onBeforeMount:function(){this.accordions=[]},onMounted:function(){this.accordions=this.$$(":scope > su-accordion, :scope > .item > su-accordion");let e=!1;this.accordions.forEach(t=>{var n,i;i=t,(n=this).obs.on(i.id+"-click",e=>{const t=e.active;n.accordions.forEach(e=>{n.obs.trigger(e.id+"-toggle-active",!1)}),n.obs.trigger(e.id+"-toggle-active",!t),n.update(),n.dispatch("click",e)}),t.getAttribute("active")&&(e=!0,this.obs.trigger(t.id+"-toggle-active",!0))}),!e&&this.accordions.length&&this.obs.trigger(this.accordions[0].id+"-toggle-active",!0),this.update()}},template:function(e,t,n,i){return e('<slot expr0="expr0"></slot>',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["ui accordion ",e.props.class].join("")}}]},{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr0",selector:"[expr0]"}])},name:"su-accordionset"};var d={css:'su-alert .ui.dimmer,[is="su-alert"] .ui.dimmer{ z-index: 1020; } su-alert .ui.modal,[is="su-alert"] .ui.modal{ z-index: 1021; } su-alert .ui.message,[is="su-alert"] .ui.message{ background: none; box-shadow: none; } su-alert .ui.message .header+p,[is="su-alert"] .ui.message .header+p{ margin-top: 1em; }',exports:{state:{},modal:{closable:!1,buttons:[]},show:!1,button:{},onMounted:function(e,t){let n={};this.suDefaultOptions&&this.suDefaultOptions.alert&&this.suDefaultOptions.alert.button&&(n=this.suDefaultOptions.alert.button),n.default&&(this.button.default=!0),this.button.text=n.text||"Close",this.button.type=n.type||"",this.button.icon=n.icon||"",this.obs&&this.obs.on("su-alert-show",e=>{!function(e,t){const n={title:null,message:null,button:{text:null,default:null,type:null,icon:null}};"string"==typeof t?n.message=t:t&&(t.title&&(n.title=t.title),t.message&&(n.message=t.message),t.button&&(n.button=t.button));(function(e,t={}){e.title=t.title,e.messages=Array.isArray(t.message)?t.message:[t.message],function(e,t){const n={text:t.button.text||e.button.text,type:t.button.type||e.button.type,icon:t.button.icon||e.button.icon,action:"close",closable:!1};t.button.default?n.default=!0:null===t.button.default&&(n.default=e.button.default);e.modal.buttons.length=0,e.modal.buttons.push(n)}(e,t),e.show=!0,e.update()})(e,n),e.obs.on("callbackConfirm",()=>{e.obs.trigger("su-alert-close")})}(this,e)})},onClose:function(){this.show=!1,this.update(),this.obs.trigger("callbackConfirm")}},template:function(e,t,n,i){return e('<su-modal expr4="expr4" class="tiny"></su-modal>',[{type:n.TAG,getComponent:i,evaluate:function(e){return"su-modal"},slots:[{id:"default",html:'<div class="ui icon message"><i class="info circle icon"></i><div class="scrolling content"><div expr5="expr5" class="header"></div><p expr6="expr6"></p></div></div>',bindings:[{type:n.IF,evaluate:function(e){return e.title},redundantAttribute:"expr5",selector:"[expr5]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.title].join("")}}]}])},{type:n.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.message}}]}]),redundantAttribute:"expr6",selector:"[expr6]",itemName:"message",indexName:null,evaluate:function(e){return e.messages}}]}],attributes:[{type:t.ATTRIBUTE,name:"show",evaluate:function(e){return e.show}},{type:t.ATTRIBUTE,name:"modal",evaluate:function(e){return e.modal}},{type:t.EVENT,name:"onclose",evaluate:function(e){return e.onClose}}],redundantAttribute:"expr4",selector:"[expr4]"}])},name:"su-alert"};let p=0;function f(e){return!0===e||"checked"===e||"true"===e}var m={css:'su-checkbox.ui.checkbox label,[is="su-checkbox"].ui.checkbox label{ cursor: pointer; } su-checkbox.ui.read-only input[type="checkbox"],[is="su-checkbox"].ui.read-only input[type="checkbox"],su-checkbox.ui.disabled input[type="checkbox"],[is="su-checkbox"].ui.disabled input[type="checkbox"]{ cursor: default !important; }',exports:{state:{checked:!1,defaultChecked:!1,observable:null,lastChecked:!1,lastOptsChecked:!1},changed:!1,onBeforeUpdate:function(e,t){this.readOnly=this.root.classList.contains("read-only"),this.disabled=this.root.classList.contains("disabled"),this.changed=t.checked!==t.defaultChecked,t.lastOptsChecked!=f(e.checked)&&(t.checked=f(e.checked),t.lastOptsChecked=t.checked)},onMounted:function(e,t){this.su_id="su-checkbox-"+p++,this.obs.on(this.su_id+"-reset",()=>{var e;(e=this).update({checked:e.state.defaultChecked})}),t.checked=f(e.checked),t.lastChecked=t.checked,t.lastOptsChecked=t.checked,t.defaultChecked=t.checked,this.update()},onUpdated:function(e,t){t.lastChecked!=t.checked&&(t.lastChecked=t.checked,t.lastOptsChecked=f(e.checked))},onClick:function(){this.readOnly||this.disabled?event.preventDefault():(this.update({checked:!this.state.checked}),this.dispatch("click",this.checked),this.obs.trigger(this.props.suParentId+"-update"),this.obs&&this.root.getAttribute("name")&&this.obs.trigger(this.root.getAttribute("name")+"-click",this.props.value))}},template:function(e,t,n,i){return e('<input expr7="expr7" type="checkbox"/><label expr8="expr8"></label><label expr10="expr10"></label>',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return["ui checkbox ",e.props.class].join("")}},{type:t.ATTRIBUTE,name:"checked",evaluate:function(e){return e.state.checked}},{type:t.ATTRIBUTE,name:"changed",evaluate:function(e){return e.changed}},{type:t.ATTRIBUTE,name:"id",evaluate:function(e){return e.su_id}}]},{redundantAttribute:"expr7",selector:"[expr7]",expressions:[{type:t.ATTRIBUTE,name:"checked",evaluate:function(e){return e.state.checked}},{type:t.EVENT,name:"onclick",evaluate:function(e){return e.onClick}},{type:t.ATTRIBUTE,name:"disabled",evaluate:function(e){return e.disabled}},{type:t.ATTRIBUTE,name:"id",evaluate:function(e){return[e.su_id,"-input"].join("")}}]},{type:n.IF,evaluate:function(e){return!e.props.label},redundantAttribute:"expr8",selector:"[expr8]",template:e('<slot expr9="expr9"></slot>',[{expressions:[{type:t.ATTRIBUTE,name:"for",evaluate:function(e){return[e.su_id,"-input"].join("")}}]},{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr9",selector:"[expr9]"}])},{type:n.IF,evaluate:function(e){return e.props.label},redundantAttribute:"expr10",selector:"[expr10]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.props.label}},{type:t.ATTRIBUTE,name:"for",evaluate:function(e){return[e.su_id,"-input"].join("")}}]}])}])},name:"su-checkbox"};let h=0;function v(e,t){if(void 0===e.getAttribute("value")||void 0===t)return;e[Object.getOwnPropertySymbols(e).find(e=>"Symbol(riot-component)"===e.toString())].state.checked=t.some(t=>t==e.getAttribute("value"))}function g(e,t){e.setAttribute("name",t+"-checkbox")}function b(e){return void 0===e?e:Array.isArray(e)?e.toString():[e].toString()}var y={css:null,exports:{state:{value:"",lastValue:"",lastOptsValue:""},changed:!1,defaultValue:"",onMounted:function(e,t){this.su_id="su-checkbox-group-"+h++,this.obs.on(this.su_id+"-reset",()=>{var e;(e=this).update({value:e.defaultValue})}),t.value||(t.value=e.value),void 0===t.value||Array.isArray(t.value)||(t.value=t.value.toString().split(/\s+/).join("").split(",")),t.lastValue=t.value,t.lastOptsValue=t.value;let n=this.$$("su-checkbox");n.forEach(e=>{g(e,this.su_id),v(e)}),this.obs.on(this.su_id+"-checkbox-click",()=>{n=this.$$("su-checkbox"),this.update({value:n.filter(e=>e.getAttribute("checked")).map(e=>e.getAttribute("value"))}),this.update()}),this.defaultValue=t.value,this.update()},onBeforeUpdate:function(e,t){this.changed=t.value!==this.defaultValue,b(t.lastOptsValue)!=b(e.value)&&(t.value=e.value,t.lastOptsValue=e.value);let n=!1;b(t.lastValue)!=b(t.value)&&(t.lastValue=t.value,n=!0),void 0===t.value||Array.isArray(t.value)||(t.value=t.value.toString().split(/\s+/).join("").split(","));let i=this.$$("su-checkbox");i.forEach(e=>{g(e,this.su_id)}),n&&(i.forEach(e=>{v(e,t.value)}),this.viewValue=Array.isArray(t.value)?t.value.join(","):t.value,this.dispatch("change",t.value),this.obs.trigger(e.suParentId+"-update"))}},template:function(e,t,n,i){return e('<slot expr79="expr79"></slot>',[{expressions:[{type:t.ATTRIBUTE,name:"value",evaluate:function(e){return e.viewValue}},{type:t.ATTRIBUTE,name:"changed",evaluate:function(e){return e.changed}},{type:t.ATTRIBUTE,name:"id",evaluate:function(e){return e.su_id}}]},{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr79",selector:"[expr79]"}])},name:"su-checkbox-group"};var x={css:'su-confirm .ui.dimmer,[is="su-confirm"] .ui.dimmer{ z-index: 1010; } su-confirm .ui.modal,[is="su-confirm"] .ui.modal{ z-index: 1011; } su-confirm .ui.message,[is="su-confirm"] .ui.message{ background: none; box-shadow: none; }',exports:{state:{},modal:{closable:!1,buttons:[]},show:!1,reverse:!1,cancelButton:{action:"negativeAction"},okButton:{action:"positiveAction"},onMounted:function(e,t){let n={},i={};this.reverse=!1,this.suDefaultOptions&&this.suDefaultOptions.confirm&&(this.suDefaultOptions.confirm.reverse&&(this.reverse=this.suDefaultOptions.confirm.reverse),this.suDefaultOptions.confirm.buttons&&(this.suDefaultOptions.confirm.buttons.ok&&(n=this.suDefaultOptions.confirm.buttons.ok),this.suDefaultOptions.confirm.buttons.cancel&&(i=this.suDefaultOptions.confirm.buttons.cancel))),this.okButton.text=n.text||"OK",this.okButton.type=void 0!==n.type?n.type:"primary",this.okButton.icon=void 0!==n.icon?n.icon:"check",this.cancelButton.text=i.text||"Cancel",this.cancelButton.type=i.type||"",this.cancelButton.icon=i.icon||"",n.default?this.okButton.default=!0:i.default?this.cancelButton.default=!0:void 0===n.default&&void 0===n.default&&(this.okButton.default=!0),this.obs&&this.obs.on("su-confirm-show",e=>{!function(e,t){const n={title:null,message:null,reverse:null,buttons:{ok:{text:null,default:null,type:null,icon:null},cancel:{text:null,default:null,type:null,icon:null}}};"string"==typeof t?n.message=t:t&&(t.title&&(n.title=t.title),t.message&&(n.message=t.message),t.reverse&&(n.reverse=t.reverse),t.buttons&&(t.buttons.ok&&(n.buttons.ok=t.buttons.ok),t.buttons.cancel&&(n.buttons.cancel=t.buttons.cancel)));(function(e,t={}){e.title=t.title,e.messages=Array.isArray(t.message)?t.message:[t.message],function(e,t){const n={text:t.buttons.cancel.text||e.cancelButton.text,type:null!==t.buttons.cancel.type?t.buttons.cancel.type:e.cancelButton.type,icon:null!==t.buttons.cancel.icon?t.buttons.cancel.icon:e.cancelButton.icon,action:"cancel"},i={text:t.buttons.ok.text||e.okButton.text,type:null!==t.buttons.ok.type?t.buttons.ok.type:e.okButton.type,icon:null!==t.buttons.ok.icon?t.buttons.ok.icon:e.okButton.icon,action:"ok"};t.buttons.ok.default?i.default=!0:t.buttons.cancel.default?n.default=!0:null===t.buttons.ok.default&&null===t.buttons.cancel.default&&(i.default=e.okButton.default,n.default=e.cancelButton.default);e.modal.buttons.length=0,e.modal.buttons.push(t.reverse||e.reverse?i:n),e.modal.buttons.push(t.reverse||e.reverse?n:i)}(e,t),e.show=!0,e.update()})(e,n),e.obs.on("callbackConfirm",t=>{e.obs.trigger("su-confirm-close",t)})}(this,e)})},onOk:function(){this.show=!1,this.update(),this.obs.trigger("callbackConfirm",!0)},onCancel:function(){this.show=!1,this.update(),this.obs.trigger("callbackConfirm",!1)}},template:function(e,t,n,i){return e('<su-modal expr48="expr48" class="tiny"></su-modal>',[{type:n.TAG,getComponent:i,evaluate:function(e){return"su-modal"},slots:[{id:"default",html:'<div class="ui icon message"><i class="question circle outline icon"></i><div class="scrolling content"><div expr49="expr49" class="header"></div><p expr50="expr50"></p></div></div>',bindings:[{type:n.IF,evaluate:function(e){return e.title},redundantAttribute:"expr49",selector:"[expr49]",template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.title].join("")}}]}])},{type:n.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.messsage}}]}]),redundantAttribute:"expr50",selector:"[expr50]",itemName:"messsage",indexName:null,evaluate:function(e){return e.messages}}]}],attributes:[{type:t.ATTRIBUTE,name:"show",evaluate:function(e){return e.show}},{type:t.ATTRIBUTE,name:"modal",evaluate:function(e){return e.modal}},{type:t.EVENT,name:"onok",evaluate:function(e){return e.onOk}},{type:t.EVENT,name:"oncancel",evaluate:function(e){return e.onCancel}}],redundantAttribute:"expr48",selector:"[expr48]"}])},name:"su-confirm"};Math.pow(10,8);function T(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function w(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function k(e,t){var n;T(1,arguments);var i=w(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,r=N(e);if(r.date){var o=U(r.date,i);a=B(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var s,u=a.getTime(),l=0;if(r.time&&(l=R(r.time),isNaN(l)))return new Date(NaN);if(!r.timezone){var c=new Date(u+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return s=D(r.timezone),isNaN(s)?new Date(NaN):new Date(u+l+s)}var E={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},A=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,I=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,C=/^([+-])(\d{2})(?::?(\d{2}))?$/;function N(e){var t,n={},i=e.split(E.dateTimeDelimiter);if(i.length>2)return n;if(/:/.test(i[0])?t=i[0]:(n.date=i[0],t=i[1],E.timeZoneDelimiter.test(n.date)&&(n.date=e.split(E.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var a=E.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}function U(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};var a=i[1]?parseInt(i[1]):null,r=i[2]?parseInt(i[2]):null;return{year:null===r?a:100*r,restDateString:e.slice((i[1]||i[2]).length)}}function B(e,t){if(null===t)return new Date(NaN);var n=e.match(A);if(!n)return new Date(NaN);var i=!!n[4],a=M(n[1]),r=M(n[2])-1,o=M(n[3]),s=M(n[4]),u=M(n[5])-1;if(i)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,u)?function(e,t,n){var i=new Date(0);i.setUTCFullYear(e,0,4);var a=i.getUTCDay()||7,r=7*(t-1)+n+1-a;return i.setUTCDate(i.getUTCDate()+r),i}(t,s,u):new Date(NaN);var l=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(S[t]||(V(e)?29:28))}(t,r,o)&&function(e,t){return t>=1&&t<=(V(e)?366:365)}(t,a)?(l.setUTCFullYear(t,r,Math.max(a,o)),l):new Date(NaN)}function M(e){return e?parseInt(e):1}function R(e){var t=e.match(I);if(!t)return NaN;var n=j(t[1]),i=j(t[2]),a=j(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,a)?36e5*n+6e4*i+1e3*a:NaN}function j(e){return e&&parseFloat(e.replace(",","."))||0}function D(e){if("Z"===e)return 0;var t=e.match(C);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,a)?n*(36e5*i+6e4*a):NaN}var S=[31,null,31,30,31,30,31,31,30,31,30,31];function V(e){return e%400==0||e%4==0&&e%100!=0}var P=n(1);function O(e){T(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Object(P.a)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function F(e,t){T(2,arguments);var n=O(e).getTime(),i=w(t);return new Date(n+i)}function _(e){T(1,arguments);var t=O(e);return t.setHours(0,0,0,0),t}function z(e,t){T(2,arguments);var n=O(e),i=w(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var a=n.getDate(),r=new Date(n.getTime());r.setMonth(n.getMonth()+i+1,0);var o=r.getDate();return a>=o?r:(n.setFullYear(r.getFullYear(),r.getMonth(),a),n)}function Y(e){return T(1,arguments),e instanceof Date||"object"===Object(P.a)(e)&&"[object Date]"===Object.prototype.toString.call(e)}function L(e){if(T(1,arguments),!Y(e)&&"number"!=typeof e)return!1;var t=O(e);return!isNaN(Number(t))}function H(e,t){T(2,arguments);var n=w(t);return F(e,-n)}function X(e){T(1,arguments);var t=1,n=O(e),i=n.getUTCDay(),a=(i<t?7:0)+i-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function $(e){T(1,arguments);var t=O(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var a=X(i),r=new Date(0);r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0);var o=X(r);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function W(e){T(1,arguments);var t=$(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var i=X(n);return i}var q={};function K(){return q}function Q(e,t){var n,i,a,r,o,s,u,l;T(1,arguments);var c=K(),d=w(null!==(n=null!==(i=null!==(a=null!==(r=null==t?void 0:t.weekStartsOn)&&void 0!==r?r:null==t||null===(o=t.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:c.weekStartsOn)&&void 0!==i?i:null===(u=c.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=O(e),f=p.getUTCDay(),m=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function G(e,t){var n,i,a,r,o,s,u,l;T(1,arguments);var c=O(e),d=c.getUTCFullYear(),p=K(),f=w(null!==(n=null!==(i=null!==(a=null!==(r=null==t?void 0:t.firstWeekContainsDate)&&void 0!==r?r:null==t||null===(o=t.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==a?a:p.firstWeekContainsDate)&&void 0!==i?i:null===(u=p.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,f),m.setUTCHours(0,0,0,0);var h=Q(m,t),v=new Date(0);v.setUTCFullYear(d,0,f),v.setUTCHours(0,0,0,0);var g=Q(v,t);return c.getTime()>=h.getTime()?d+1:c.getTime()>=g.getTime()?d:d-1}function J(e,t){var n,i,a,r,o,s,u,l;T(1,arguments);var c=K(),d=w(null!==(n=null!==(i=null!==(a=null!==(r=null==t?void 0:t.firstWeekContainsDate)&&void 0!==r?r:null==t||null===(o=t.locale)||void 0===o||null===(s=o.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==a?a:c.firstWeekContainsDate)&&void 0!==i?i:null===(u=c.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),p=G(e,t),f=new Date(0);f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0);var m=Q(f,t);return m}function Z(e,t){for(var n=e<0?"-":"",i=Math.abs(e).toString();i.length<t;)i="0"+i;return n+i}var ee={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return Z("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Z(n+1,2)},d:function(e,t){return Z(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Z(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Z(e.getUTCHours(),t.length)},m:function(e,t){return Z(e.getUTCMinutes(),t.length)},s:function(e,t){return Z(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds();return Z(Math.floor(i*Math.pow(10,n-3)),t.length)}},te="midnight",ne="noon",ie="morning",ae="afternoon",re="evening",oe="night";function se(e,t){var n=e>0?"-":"+",i=Math.abs(e),a=Math.floor(i/60),r=i%60;if(0===r)return n+String(a);var o=t||"";return n+String(a)+o+Z(r,2)}function ue(e,t){return e%60==0?(e>0?"-":"+")+Z(Math.abs(e)/60,2):le(e,t)}function le(e,t){var n=t||"",i=e>0?"-":"+",a=Math.abs(e);return i+Z(Math.floor(a/60),2)+n+Z(a%60,2)}var ce={G:function(e,t,n){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var i=e.getUTCFullYear(),a=i>0?i:1-i;return n.ordinalNumber(a,{unit:"year"})}return ee.y(e,t)},Y:function(e,t,n,i){var a=G(e,i),r=a>0?a:1-a;return"YY"===t?Z(r%100,2):"Yo"===t?n.ordinalNumber(r,{unit:"year"}):Z(r,t.length)},R:function(e,t){return Z($(e),t.length)},u:function(e,t){return Z(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Z(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Z(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var i=e.getUTCMonth();switch(t){case"M":case"MM":return ee.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return Z(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var a=function(e,t){T(1,arguments);var n=O(e),i=Q(n,t).getTime()-J(n,t).getTime();return Math.round(i/6048e5)+1}(e,i);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):Z(a,t.length)},I:function(e,t,n){var i=function(e){T(1,arguments);var t=O(e),n=X(t).getTime()-W(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):Z(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):ee.d(e,t)},D:function(e,t,n){var i=function(e){T(1,arguments);var t=O(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime(),a=n-i;return Math.floor(a/864e5)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):Z(i,t.length)},E:function(e,t,n){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var a=e.getUTCDay(),r=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return Z(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var a=e.getUTCDay(),r=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return Z(r,t.length);case"co"