pecis
Version:
Pecis makes JS easier
1 lines • 27.4 kB
JavaScript
/*! Pecis JavaScript Library | pecis.js.org */(()=>{var e={506:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},926:e=>{function t(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function u(e){t(a,o,i,u,c,"next",e)}function c(e){t(a,o,i,u,c,"throw",e)}u(void 0)}))}}},575:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},100:(e,t,n)=>{var r=n(489),o=n(67);function i(t,n,a){return o()?e.exports=i=Reflect.construct:e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},i.apply(null,arguments)}e.exports=i},913:e=>{function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},713:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},754:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},205:(e,t,n)=>{var r=n(489);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},430:e=>{e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},67:e=>{e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},585:(e,t,n)=>{var r=n(8),o=n(506);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},489:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},8:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},957:(e,t,n)=>{var r=n(754),o=n(489),i=n(430),a=n(100);function u(t){var n="function"==typeof Map?new Map:void 0;return e.exports=u=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},u(t)}e.exports=u},757:(e,t,n)=>{e.exports=n(666)},198:(e,t,n)=>{"use strict";var r=n(8),o=n.n(r),i=n(379),a=n.n(i),u=n(964),c={insert:"head",singleton:!1};a()(u.Z,c);u.Z.locals;const s="0.0.1";const l=function(){console.info("Pecis ".concat(s," is available"))};var f=n(575),h=n.n(f),d=n(205),p=n.n(d),y=n(585),v=n.n(y),m=n(754),g=n.n(m),b=n(957),w=n.n(b);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var k=function(e){p()(n,e);var t=E(n);function n(e){var r;return h()(this,n),(r=t.call(this,e)).name="PecisBasicError",r}return n}(w()(Error));const x={BaseError:k,ExtensionError:function(e){p()(n,e);var t=E(n);function n(e){var r;return h()(this,n),(r=t.call(this,e)).name="PecisExtensionError",r}return n}(k),MissingEnvironmentError:function(e){p()(n,e);var t=E(n);function n(e){var r;return h()(this,n),(r=t.call(this,e)).name="PecisMissingEnvironmentError",r}return n}(k),MissingParameterError:function(e){p()(n,e);var t=E(n);function n(e){var r;return h()(this,n),(r=t.call(this,e)).name="PecisMissingParameterError",r}return n}(k),MultipleElementError:function(e){p()(n,e);var t=E(n);function n(e){var r;return h()(this,n),(r=t.call(this,e)).name="PecisMultipleElementError",r}return n}(k)};var L=n(913),T=n.n(L),j=n(713),S=n.n(j),M=function(){function e(t,n){var r=this;h()(this,e),S()(this,"element",void 0),S()(this,"length",void 0),S()(this,"selector",void 0),this.element=t,this.length="length"in t?t.length:1,this.selector=n||null,this.forEach((function(e,t){r[t]=e}))}return T()(e,null,[{key:"create",value:function(t){return new e(t)}}]),T()(e,[{key:"isSingle",value:function(){return this.element instanceof HTMLElement}},{key:"item",value:function(e){return this[e]}},{key:"manageItem",value:function(t){return new e(this[t])}},{key:"first",value:function(){return this.manageItem(0)}},{key:"last",value:function(){return this.manageItem(this.length-1)}},{key:"splice",value:function(){}},{key:"forEach",value:function(e){var t=this;this.element instanceof HTMLElement||this.element instanceof HTMLDocument?e(this.element,0,this):this.element.forEach((function(n,r){e(n,r,t)}))}},{key:"html",value:function(e){return void 0===e?this.item(0).innerHTML:(this.forEach((function(t){t.innerHTML=e})),this)}},{key:"text",value:function(){return this.item(0).innerText}},{key:"value",value:function(e){if(void 0===e)return this.item(0).value||null;this.forEach((function(t){t.value=e}))}},{key:"val",value:function(e){return this.value(e)}},{key:"bind",value:function(e,t){this.forEach((function(n){return n.addEventListener(e,t)}))}},{key:"on",value:function(e,t){this.bind(e,t)}},{key:"class",value:function(){return this.item(0).classList}},{key:"addClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forEach((function(e){var n;return(n=e.classList).add.apply(n,t)})),this}},{key:"removeClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forEach((function(e){var n;return(n=e.classList).remove.apply(n,t)})),this}},{key:"clearClass",value:function(){return this.forEach((function(e){return e.className=""})),this}},{key:"hide",value:function(){return this.forEach((function(e){e.dataset.displayType=e.style.display,e.style.display="none"})),this}},{key:"display",value:function(e){return this.forEach((function(t){t.style.display=e})),this}},{key:"show",value:function(e){void 0===e?this.forEach((function(e){e.style.display=e.dataset.displayType||"initial",delete e.dataset.displayType})):this.display(e)}},{key:"toggle",value:function(){this.forEach((function(e){e.dataset.displayType?(e.dataset.displayType=e.style.display,e.style.display="none"):(e.style.display=e.dataset.displayType||"initial",delete e.dataset.displayType)}))}},{key:"toggleVisible",value:function(){this.toggle()}},{key:"delete",value:function(e){if(void 0===e)this.forEach((function(e){return e.parentElement.removeChild(e)}));else{var t=this.item(e);t.parentElement.removeChild(t)}}},{key:"del",value:function(e){this.delete(e)}},{key:"child",value:function(){return new e(this.item(0).childNodes)}},{key:"parent",value:function(){return new e(this.item(0).parentElement)}},{key:"next",value:function(){return new e(this.item(0).nextElementSibling)}},{key:"prev",value:function(){return new e(this.item(0).previousElementSibling)}},{key:"append",value:function(){var e;(e=this.element[0]).append.apply(e,arguments)}},{key:"add",value:function(){this.append.apply(this,arguments)}},{key:"toArray",value:function(){var e=[];return this.forEach((function(t){return e.push(t)})),e}},{key:"click",value:function(e){e?this.bind("click",e):this.forEach((function(e){return e.click()}))}},{key:"focus",value:function(e){e?this.bind("focus",e):this.forEach((function(e){return e.focus()}))}},{key:"mouseenter",value:function(e){this.bind("mouseenter",e)}},{key:"mouseleave",value:function(e){this.bind("mouseleave",e)}},{key:"mouseup",value:function(e){this.bind("mouseup",e)}},{key:"mousedown",value:function(e){this.bind("mousedown",e)}},{key:"mousemove",value:function(e){this.bind("mousemove",e)}},{key:"mouseover",value:function(e){this.bind("mouseover",e)}},{key:"mouseout",value:function(e){this.bind("mouseout",e)}},{key:"mousewheel",value:function(e){this.bind("mousewheel",e)}},{key:"drag",value:function(e){this.bind("drag",e)}},{key:"dragstart",value:function(e){this.bind("dragstart",e)}},{key:"dragend",value:function(e){this.bind("dragend",e)}},{key:"dragenter",value:function(e){this.bind("dragenter",e)}},{key:"dragexit",value:function(e){this.bind("dragexit",e)}},{key:"dragover",value:function(e){this.bind("dragover",e)}},{key:"dragleave",value:function(e){this.bind("dragleave",e)}},{key:"canplay",value:function(e){this.bind("canplay",e)}},{key:"canplaythrough",value:function(e){this.bind("canplaythrough",e)}},{key:"play",value:function(e){this.bind("play",e)}},{key:"playing",value:function(e){this.bind("playing",e)}},{key:"copy",value:function(e){this.bind("copy",e)}},{key:"beforecopy",value:function(e){this.bind("beforecopy",e)}},{key:"paste",value:function(e){this.bind("paste",e)}},{key:"beforepaste",value:function(e){this.bind("beforepaste",e)}},{key:"blur",value:function(e){this.bind("blur",e)}},{key:"load",value:function(e){this.bind("load",e)}},{key:"loadstart",value:function(e){this.bind("loadstart",e)}},{key:"loadeddata",value:function(e){this.bind("loadeddata",e)}},{key:"loadedmetadata",value:function(e){this.bind("loadedmetadata",e)}},{key:"focusin",value:function(e){this.bind("focusin",e)}},{key:"focusout",value:function(e){this.bind("focus",e)}},{key:"keydown",value:function(e){this.bind("keydown",e)}},{key:"keyup",value:function(e){this.bind("keyup",e)}},{key:"keypress",value:function(e){this.bind("keypress",e)}}]),e}(),O=function(){function e(t){h()(this,e),"object"===o()(t)&&(this.tabel=t)}return T()(e,[{key:"set",value:function(e){return Object.keys(e).forEach((function(t){e[t].forEach((function(n){this.tabel[t][n]=e[t][n]}))})),this}},{key:"get",value:function(){return this.tabel}},{key:"translate",value:function(e){document.querySelectorAll("pecis-trans").forEach((function(t){t.innerHTML=this.table[e][t.getAttribute("word")]}))}}]),e}();const P=function(e){return e.toUpperCase()},_=function(e){return e.toLowerCase()},C=function(e){return e.replace(/[ -]./g,(function(e){return e.replace(/[ -]/g,"").toUpperCase()}))},A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return new Array(t).fill(e).join(n)};const R=function(e,t){Object.keys(t).forEach((function(n){null==e||e.setAttribute(n,t[n])}))};function N(){return globalThis.document&&globalThis.Document&&document instanceof Document}function D(){throw new x.MissingEnvironmentError("Missing DOM Environment")}function F(){var e;(e=console).log.apply(e,arguments)}F.info=F,F.error=function(){var e;(e=console).error.apply(e,arguments)},F.warn=function(){var e;(e=console).error.apply(e,arguments)},F.clear=function(){console.clear()},F.table=function(e,t){console.table(e,t)},F.group=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;t?console.groupCollapsed(e):console.group(e),n&&(n(),console.groupEnd())},F.groupEnd=function(){console.groupEnd()},F.trace=function(){var e;(e=console).trace.apply(e,arguments)},F.assert=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).assert.apply(t,[e].concat(r))};const H=F;var I=n(757),U=n.n(I),q=n(926),G=n.n(q);function B(){return(B=G()(U().mark((function e(t){return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const J=function(e,t){return void 0===e&&void 0===t?Math.random():Math.floor(Math.random()*(~~t-~~e))+~~e};var Z,X,Y=_,z=P,V=C,K=A;function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}function W(e,t){N()&&customElements.define(e,t)}function $(){return"object"===("undefined"==typeof globalThis?"undefined":o()(globalThis))?globalThis:"object"===("undefined"==typeof window?"undefined":o()(window))&&window.window===window?window:"object"===(void 0===n.g?"undefined":o()(n.g))&&n.g.global===n.g?n.g:"object"===("undefined"==typeof self?"undefined":o()(self))&&self.self===self?self:void 0}!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((function(e){return W(e[0],e[1])}))}(["pecis-trans",function(e){p()(n,e);var t=Q(n);function n(){return h()(this,n),t.call(this)}return n}(w()(HTMLElement))]),l.version=s,l.pecis=l.version,l.global=$(),l._global=$(),l.BaseError=x.BaseError,l.ExtensionError=x.ExtensionError,l.MissingEnvironmentError=x.MissingEnvironmentError,l.MultipleElementError=x.MultipleElementError,l.MissingParameterError=x.MissingParameterError,l.TranslationTable=O,l.FIRST_ITEM=0,l.UA=(null===(Z=l.global)||void 0===Z||null===(X=Z.navigator)||void 0===X?void 0:X.userAgent)||null,l.sum=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]instanceof Array)return e(n[0]);var o=0;return n.forEach((function(e){o+=e})),o},l.ajax=function(e){console.warn("Use pecis.ajax is based on the XMLHttpRequest");var t=new XMLHttpRequest;e.success=e.success||function(){},e.preset&&e.preset(t),t.open(e.type,e.url,!0),t.send(e.data||null),t.responseType=e.response||"text",t.onreadystatechange=function(){4===t.readyState&&(200===t.status?e.success&&e.success(t.response):e.fail&&e.fail())}},l.addStyle=function(e){var t=document.createElement("style");return t.innerHTML=e,document.head.appendChild(t),t},l.classof=function(e){if(e&&e.constructor&&e.constructor.toString()){if(e.constructor.name)return e.constructor.name;var t,n=e.constructor.toString();if((t="["===n.charAt(0)?n.match(/\w+\s∗(\w+)/):n.match(/function\s*(\w+)/))&&2===t.length)return t[1]}},l.createElement=function(e,t){if(N()){var n=document.createElement(e);R(n,t);for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return n.append.apply(n,o),n}D()},l.ElementManager=M,l.sel=l.select=function(e,t){return"string"==typeof e?new M(void 0===t?document.querySelectorAll(e):document.querySelectorAll(e).item(t),e):new M(e)},l.slice=function(e,t,n){return e.slice(t,n||t)},l.setDefault=function(e){!function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];Object.defineProperties(e,t,{value:n,writable:r,configurable:o,enumerable:i})}(l,"DEFAULT_FUNC",e,!1,!1,!1)},l.sleep=function(e){return B.apply(this,arguments)},l.isNumeric=function(e){return!isNaN(e)},l.log=H,l.forEach=function(e,t){Object.keys(e).forEach((function(e,n,r){t(r[e],e,r)}))},l.fetch=globalThis.fetch,l.getSearchData=function(e){if(window.location){var t=e||location.search;return JSON.parse('{"'+decodeURIComponent(t.replace(/"/g,'\\"').replace(/[?]/g,"").replace(/=/g,'":"').replace(/&/g,'","'))+'"}')}throw x.PebMissingEnvironmentError("Missing environment window.location")},l.query=function(e){if(N())return document.querySelectorAll(e);D()},l.parse=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON.parse;t(e)},l.navigate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_self",n=document.createElement("a");n.href=e,n.target=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},l.noop=function(){},l.error=function(e,t){throw new(t||Error)(e)},l.upperCase=z,l.lowerCase=Y,l.camelCase=V,l.stringTimes=K,l.parseJson=JSON.parse,l.stringifyJson=JSON.stringify,l.now=Date.now,l.math=Math,l.insert=[].push.call,l.random=J,l.SearchParams=globalThis.URLSearchParams;const ee=l;e=n.hmd(e),"object"===o()(e)&&"object"===o()(e.exports)?e.exports=ee:"function"==typeof define&&n.amdO?define("peb",[],(function(){return pecis})):"object"===("undefined"==typeof window?"undefined":o()(window))&&window.window===window&&($().pecis=ee)},964:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(645),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"pecis-trans{display:inline;color:inherit;font-family:inherit;font-size:inherit;margin:0;padding:0}",""]);const i=o},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new M(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=T(a,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",y={};function v(){}function m(){}function g(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,E=w&&w(w(O([])));E&&E!==n&&r.call(E,i)&&(b=E);var k=g.prototype=v.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,a,u){var c=l(e[o],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function T(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function O(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:t,done:!0}}return m.prototype=k.constructor=g,g.constructor=m,m.displayName=c(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},x(L.prototype),L.prototype[a]=function(){return this},e.AsyncIterator=L,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new L(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),c(k,u,"Generator"),k[i]=function(){return this},k.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},379:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function u(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],s=n[c]||0,l="".concat(c," ").concat(s);n[c]=s+1;var f=u(l),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(h)):a.push({identifier:l,updater:v(h,t),references:1}),r.push(l)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function h(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,y=0;function v(e,t){var n,r,o;if(t.singleton){var i=y++;n=p||(p=s(t)),r=h.bind(null,n,i,!1),o=h.bind(null,n,i,!0)}else n=s(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=u(n[r]);a[o].references--}for(var i=c(e,t),s=0;s<n.length;s++){var l=u(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,n),o.loaded=!0,o.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(198)})();