From 687dd1380a66cb18cdd8c1a6d22c3ab3944ebec2 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 26 Sep 2019 15:52:42 -0400 Subject: [PATCH] improve chunking; fix portal css; fix dependency update issues --- 404.html | 10 +-- build/2.css | 2 +- build/2.js | 2 +- build/3.js | 2 +- build/4.css | 2 +- build/4.js | 2 +- build/5.css | 2 +- build/5.js | 2 +- build/main.js | 2 +- build/vendor.js | 2 +- index.dev.html | 2 +- index.html | 9 ++- package-lock.json | 15 +++-- package.json | 2 +- src/{scss => components}/base.scss | 6 +- .../collection}/collection.scss | 2 +- src/components/collection/index.js | 2 +- src/components/collection/search/index.js | 14 ++-- src/components/entercode/EnterTheCode.js | 28 ++++---- src/components/entercode/PackSimulator.js | 2 +- src/components/entercode/index.js | 2 +- src/{scss => components/entercode}/packs.scss | 0 src/{scss => components/home}/home.scss | 2 + src/components/home/index.js | 2 +- src/components/index.js | 34 +++++----- src/components/portal/Category.js | 65 ++++++++++++++----- src/components/portal/index.js | 2 +- src/{scss => components/portal}/portal.scss | 27 ++++++++ src/css/legacy.css | 2 + webpack.config.babel.js | 11 ++-- 30 files changed, 163 insertions(+), 94 deletions(-) rename src/{scss => components}/base.scss (92%) rename src/{scss => components/collection}/collection.scss (99%) rename src/{scss => components/entercode}/packs.scss (100%) rename src/{scss => components/home}/home.scss (98%) rename src/{scss => components/portal}/portal.scss (91%) diff --git a/404.html b/404.html index ac8090b..1ac5441 100644 --- a/404.html +++ b/404.html @@ -17,19 +17,19 @@ // with Internet Explorer (it is currently > 512 bytes) // If you're creating a Project Pages site and NOT using a custom domain, - // then set segmentCount to 1 (enterprise users may need to set it to > 1). + // then set segCount to 1 (enterprise users may need to set it to > 1). // This way the code will only replace the route part of the path, and not // the real directory in which the app resides, for example: // https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes // https://username.github.io/repo-name/?p=/one/two&q=a=b~and~c=d#qwe - // Otherwise, leave segmentCount as 0. - var segmentCount = 0; + // Otherwise, leave segCount as 0. + var segCount = 0; var l = window.location; l.replace( l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') + - l.pathname.split('/').slice(0, 1 + segmentCount).join('/') + '/?p=/' + - l.pathname.slice(1).split('/').slice(segmentCount).join('/').replace(/&/g, '~and~') + + l.pathname.split('/').slice(0, 1 + segCount).join('/') + '/?p=/' + + l.pathname.slice(1).split('/').slice(segCount).join('/').replace(/&/g, '~and~') + (l.search ? '&q=' + l.search.slice(1).replace(/&/g, '~and~') : '') + l.hash ); diff --git a/build/2.css b/build/2.css index 2de57d2..9375578 100644 --- a/build/2.css +++ b/build/2.css @@ -1 +1 @@ -.icon14{height:14px;padding-bottom:2px}.icon16{height:16px}.icon20{height:20px}.icon24{height:24px}.bigger{font-size:14px}.name{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}.name .subname:before{content:"\a ";white-space:pre}.name .subname{font-size:13px;padding-bottom:4px;display:inherit}#player{text-align:center}@media only screen and (min-width:975px){.collection{margin-top:5px;margin-right:5px;margin-left:5px}.collection>.left{font-family:Roboto,Arial,sans-serif;float:left;width:30%}.collection>.right{font-family:Roboto,Arial,sans-serif;float:right;width:70%}}@media only screen and (min-width:975px){.collection #buttons{margin:0 0 2% 1%}.collection #buttons,.collection .button,.collection input[type=button],.collection input[type=text]{border-radius:5px;border-color:transparent;text-align:center;outline:none}.collection input[type=text]{margin-bottom:2px}.collection .centeredCheckBox,.collection input[type=text]{width:220px}.collection .text-entry{display:flex;justify-content:center;align-items:center}.collection .text-entry input:focus{outline:none}.collection .card{text-align:left;display:flex;border:1px solid #aeaeae}.collection .card .left,.collection .card .right,.collection .card .stats{padding-top:4px}.collection .card .bigger{text-align:center;font-weight:700}.collection .card .energy{display:flex;width:20px!important}.collection .card .left{vertical-align:text-top;float:left;width:210px;padding-left:4px}.collection .card .right{float:left;width:calc(100% - 322px);border-left:2px solid #aeaeae;padding-left:4px;padding-right:4px;padding-bottom:6px;white-space:pre-line}.collection .creature .right{width:calc(100% - 366px)}.collection .creature .stats{vertical-align:text-top;float:left;text-align:right;width:40px}.collection .SearchForm{padding-top:3px;font-family:Roboto,Arial,sans-serif}.collection .searchName{display:flex;justify-content:center;align-items:center;padding:2%;font-size:16pt}.collection .centeredCheckBox{margin:0 auto;text-align:left}.collection .centeredSpacing{display:flex;justify-content:space-between}.collection .setBox{width:80%;float:right}.collection #sets{width:80%}.collection .centeredButtons{display:flex;justify-content:center;align-items:center}.collection #search{width:25%;margin:2%;border-radius:5px;border-color:transparent;text-align:center}.collection .minMax{display:flex;justify-content:space-between;margin:0 auto;width:50%;text-align:right}.collection .brainwashed{border-radius:3px;background-color:#dcdddf;color:#000!important}.collection .chieftain,.collection .flavortext{font-style:italic}.collection .disciplines input{width:30px;height:14px;text-align:center;margin-top:2px}.collection .mull input{margin-left:0;margin-top:1px}.collection .Collapsible__contentInner input,.collection .mull input{vertical-align:middle}.collection .Collapsible__contentInner .centeredCheckBox{width:50%}.collection .mcbp input{width:24px;height:14px;padding:unset;text-align:center;margin-top:2px}.collection .tribes{width:96%;text-align:center}.collection .and,.collection .disciplines{text-align:center}.collection .and{vertical-align:text-bottom;width:15%;border-radius:5px;border-color:transparent;margin:2%}}.collection .card .icon14,.collection .card .icon16,.collection .card .icon20,.collection .card .icon24{vertical-align:middle}.collection .thumb{width:100px;height:98px}.collection .card .thumb{float:left}.collection .Collapsible{margin-bottom:5px;margin-top:5px;width:96%}.collection .Collapsible__trigger{background-color:#333;display:block;position:relative;padding-top:5px;padding-bottom:5px;text-indent:5px;font-weight:700;white-space:pre}.collection .Collapsible__trigger:hover{background-color:red}.collection .Collapsible__trigger:after{content:"^";position:absolute;right:10px;top:10px;display:block;transition:transform .4s}.collection .Collapsible__trigger.is-open:after{transform:rotate(180deg);right:5px;top:5px}.collection .Collapsible__trigger.is-disabled{opacity:.5;background-color:grey}.collection .Collapsible__contentInner{margin-top:5px}.collection .left{position:relative}.collection .card_img{position:absolute;width:100%;z-index:2;left:-11px}.collection .card_img .hidden{display:none;max-height:0}.collection .card_img img{max-width:250px;max-height:350px}.collection .entries{text-align:left;width:100%}.collection .entries input[type=button]{margin:0 0 2% 1%}.collection .list-nav-top{display:flex}.collection .extended .fullcard{max-width:250px;max-height:350px}.collection hr{width:96%;margin-inline-start:0}.collection .none{display:inline}.collection .none>span{top:-3px;position:relative}.collection label{user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-touch-callout:none;-o-user-select:none;-moz-user-select:none} \ No newline at end of file +.icon14{height:14px;padding-bottom:2px}.icon16{height:16px}.icon20{height:20px}.icon24{height:24px}.bigger{font-size:14px}.name{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}.name .subname:before{content:"\a ";white-space:pre}.name .subname{font-size:13px;padding-bottom:4px;display:inherit}@media only screen and (min-width:975px){.collection{margin-top:5px;margin-right:5px;margin-left:5px}.collection>.left{font-family:Roboto,Arial,sans-serif;float:left;width:30%}.collection>.right{font-family:Roboto,Arial,sans-serif;float:right;width:70%}}@media only screen and (min-width:975px){.collection #buttons{margin:0 0 2% 1%}.collection #buttons,.collection .button,.collection input[type=button],.collection input[type=text]{border-radius:5px;border-color:transparent;text-align:center;outline:none}.collection input[type=text]{margin-bottom:2px}.collection .centeredCheckBox,.collection input[type=text]{width:220px}.collection .text-entry{display:flex;justify-content:center;align-items:center}.collection .text-entry input:focus{outline:none}.collection .card{text-align:left;display:flex;border:1px solid #aeaeae}.collection .card .left,.collection .card .right,.collection .card .stats{padding-top:4px}.collection .card .bigger{text-align:center;font-weight:700}.collection .card .energy{display:flex;width:20px!important}.collection .card .left{vertical-align:text-top;float:left;width:210px;padding-left:4px}.collection .card .right{float:left;width:calc(100% - 322px);border-left:2px solid #aeaeae;padding-left:4px;padding-right:4px;padding-bottom:6px;white-space:pre-line}.collection .creature .right{width:calc(100% - 366px)}.collection .creature .stats{vertical-align:text-top;float:left;text-align:right;width:40px}.collection .SearchForm{padding-top:3px;font-family:Roboto,Arial,sans-serif}.collection .searchName{display:flex;justify-content:center;align-items:center;padding:2%;font-size:16pt}.collection .centeredCheckBox{margin:0 auto;text-align:left}.collection .centeredSpacing{display:flex;justify-content:space-between}.collection .setBox{width:80%;float:right}.collection #sets{width:80%}.collection .centeredButtons{display:flex;justify-content:center;align-items:center}.collection #search{width:25%;margin:2%;border-radius:5px;border-color:transparent;text-align:center}.collection .minMax{display:flex;justify-content:space-between;margin:0 auto;width:50%;text-align:right}.collection .brainwashed{border-radius:3px;background-color:#dcdddf;color:#000!important}.collection .chieftain,.collection .flavortext{font-style:italic}.collection .disciplines input{width:30px;height:14px;text-align:center;margin-top:2px}.collection .mull input{margin-left:0;margin-top:1px}.collection .Collapsible__contentInner input,.collection .mull input{vertical-align:middle}.collection .Collapsible__contentInner .centeredCheckBox{width:50%}.collection .mcbp input{width:24px;height:14px;padding:unset;text-align:center;margin-top:2px}.collection .tribes{width:96%;text-align:center}.collection .and,.collection .disciplines{text-align:center}.collection .and{vertical-align:text-bottom;width:15%;border-radius:5px;border-color:transparent;margin:2%}}.collection .card .icon14,.collection .card .icon16,.collection .card .icon20,.collection .card .icon24{vertical-align:middle}.collection .thumb{width:100px;height:98px}.collection .card .thumb{float:left}.collection .Collapsible{margin-bottom:5px;margin-top:5px;width:96%}.collection .Collapsible__trigger{background-color:#333;display:block;position:relative;padding-top:5px;padding-bottom:5px;text-indent:5px;font-weight:700;white-space:pre}.collection .Collapsible__trigger:hover{background-color:red}.collection .Collapsible__trigger:after{content:"^";position:absolute;right:10px;top:10px;display:block;transition:transform .4s}.collection .Collapsible__trigger.is-open:after{transform:rotate(180deg);right:5px;top:5px}.collection .Collapsible__trigger.is-disabled{opacity:.5;background-color:grey}.collection .Collapsible__contentInner{margin-top:5px}.collection .left{position:relative}.collection .card_img{position:absolute;width:100%;z-index:2;left:-11px}.collection .card_img .hidden{display:none;max-height:0}.collection .card_img img{max-width:250px;max-height:350px}.collection .entries{text-align:left;width:100%}.collection .entries input[type=button]{margin:0 0 2% 1%}.collection .list-nav-top{display:flex}.collection .extended .fullcard{max-width:250px;max-height:350px}.collection hr{width:96%;margin-inline-start:0}.collection .none{display:inline}.collection .none>span{top:-3px;position:relative}.collection label{user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-touch-callout:none;-o-user-select:none;-moz-user-select:none} \ No newline at end of file diff --git a/build/2.js b/build/2.js index 171e138..2b02ffc 100644 --- a/build/2.js +++ b/build/2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{387:function(e,t,a){},390:function(e,t,a){"use strict";a.r(t);var n,r,i,l,s,c,m,u,o,g,p=a(121),d=a.n(p),x=a(64),h=a.n(x),b=a(62),f=a.n(b),$=a(52),y=a.n($),E=a(118),v=a.n(E),w=a(119),k=a.n(w),N=a(165),C=a.n(N),q=a(120),I=a.n(q),O=a(39),_=a.n(O),R=(a(164),a(0)),j=a.n(R),B=a(70),M=a(6),A=a(84),L=a(34),P=Object(A.a)(function(e,t,a){return t})(n=Object(A.b)(n=function(e){function t(){return f()(this,t),v()(this,k()(t).apply(this,arguments))}return I()(t,e),y()(t,[{key:"render",value:function(){var e=this,t=this.props.card;return 0==this.props.ext?j.a.createElement("div",{className:"card attack"},j.a.createElement("img",{className:"thumb",src:B.a.base_image+(t.gsx$thumb||B.a.thumb_missing),onClick:function(){return e.props.setImage(t.gsx$image)}}),j.a.createElement("div",{className:"left"},j.a.createElement(L.k,{name:t.gsx$name}),j.a.createElement("br",null),j.a.createElement(L.m,{set:t.gsx$set,rarity:t.gsx$rarity}),j.a.createElement("br",null),j.a.createElement("span",null,j.a.createElement(L.b,null)," Attack - ",t.gsx$bp),j.a.createElement("br",null),j.a.createElement("div",null,j.a.createElement("span",{className:"bigger"},t.gsx$base)," | ",j.a.createElement(L.f,{element:"fire",value:t.gsx$fire}),t.gsx$fire," ",j.a.createElement(L.f,{element:"air",value:t.gsx$air}),t.gsx$air," ",j.a.createElement(L.f,{element:"earth",value:t.gsx$earth}),t.gsx$earth," ",j.a.createElement(L.f,{element:"water",value:t.gsx$water}),t.gsx$water)),j.a.createElement("br",null),j.a.createElement("div",{className:"right"},j.a.createElement(L.a,{ability:t.gsx$ability}),j.a.createElement(L.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),j.a.createElement("span",{className:"flavortext"},t.gsx$flavortext))):j.a.createElement("div",{className:"card attack"},j.a.createElement("img",{className:"fullcard",src:B.a.base_image+(t.gsx$image||B.a.card_back)}),j.a.createElement("div",{className:"right"},j.a.createElement(L.k,{name:t.gsx$name}),j.a.createElement("br",null),j.a.createElement(L.a,{ability:t.gsx$ability}),j.a.createElement(L.q,{data:{unique:t.gsx$unique,loyal:t.gsx$loyal,legendary:t.gsx$legendary}}),t.gsx$flavortext&&j.a.createElement(j.a.Fragment,null,j.a.createElement("span",{className:"flavortext"},t.gsx$flavortext),j.a.createElement("br",null)),j.a.createElement("span",null,"Art By: ",t.gsx$artist)))}}]),t}(j.a.Component))||n)||n,S=Object(A.a)(function(e,t,a){return t})(r=Object(A.b)(r=function(e){function t(){return f()(this,t),v()(this,k()(t).apply(this,arguments))}return I()(t,e),y()(t,[{key:"render",value:function(){var e=this,t=this.props.card;return 0==this.props.ext?j.a.createElement("div",{className:"card battlegear"},j.a.createElement("img",{className:"thumb",style:{float:"left"},src:B.a.base_image+(t.gsx$thumb||B.a.thumb_missing),onClick:function(){return e.props.setImage(t.gsx$image)}}),j.a.createElement("div",{className:"left"},j.a.createElement(L.k,{name:t.gsx$name}),j.a.createElement("br",null),j.a.createElement(L.m,{set:t.gsx$set,rarity:t.gsx$rarity}),j.a.createElement("br",null),j.a.createElement("span",null,j.a.createElement(L.c,null)," Battlegear",0=t.energy.min&&(l=l.find({gsx$energy:{$lte:t.energy.max}})),(0=t.mcbp.min&&(r=r.find({gsx$bp:{$lte:t.mcbp.max}}),l=l.find({gsx$mugicability:{$lte:t.mcbp.max}}),c=c.find({gsx$cost:{$lte:t.mcbp.max}})),(0=t.energy.min&&(l=l.find({gsx$energy:{$lte:t.energy.max}})),(0=t.mcbp.min&&(r=r.find({gsx$bp:{$lte:t.mcbp.max}}),l=l.find({gsx$mugicability:{$lte:t.mcbp.max}}),c=c.find({gsx$cost:{$lte:t.mcbp.max}})),(0div,.portal .entry .entry_content .entry_body .nocolumn>div{padding:8px}.portal .entry .entry_content .entry_body .column:nth-child(2){flex-grow:1;text-align:left;min-width:0;width:30%}.portal .entry .entry_content .entry_body .column:last-child{flex-grow:2;min-width:0;flex:60%;border-left:1px solid #fff}.portal .entry .entry_content .entry_body .ability{white-space:pre-line;word-wrap:break-all}.portal .entry .entry_content .entry_body div{white-space:pre-line}.portal .entry .entry_content::-webkit-scrollbar{width:1px}.portal .entry .cat_title{text-align:left;background-color:#1a1a1a;font-weight:700;font-size:16px;padding-top:1px;padding-left:4px}.portal .entry .entry_nav{background-color:#1a1a1a;overflow-x:scroll;overflow-y:hidden;white-space:nowrap}.portal .entry .entry_nav>div{display:inline-block}.portal .entry .entry_nav>div img{margin-right:3px;margin-left:3px}.portal .entry .modal{position:fixed;z-index:10;padding-top:50px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:rgba(0,0,0,.9)}.portal .entry .modal.hidden{display:none}.portal .entry .modal-content{margin:auto;display:block;max-height:calc(100vh - 100px);max-width:90vw}.portal .entry .caption{margin:auto;display:block;width:80%;max-width:700px;text-align:center;color:#ccc;padding:10px 0;height:150px}.portal .entry #caption,.portal .entry .modal-content{-webkit-animation-name:zoom;-webkit-animation-duration:.6s;animation-name:zoom;animation-duration:.6s}@-webkit-keyframes zoom{0%{-webkit-transform:scale(0)}to{-webkit-transform:scale(1)}}@keyframes zoom{0%{transform:scale(0)}to{transform:scale(1)}}.portal .entry .close{position:fixed;top:35px;right:35px;color:#f1f1f1;font-size:40px;font-weight:700;transition:.3s}.portal .entry .close:focus,.portal .entry .close:hover{color:#bbb;text-decoration:none;cursor:pointer} \ No newline at end of file +.icon14{height:14px;padding-bottom:2px}.icon16{height:16px}.icon20{height:20px}.icon24{height:24px}.bigger{font-size:14px}.name{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}.name .subname:before{content:"\a ";white-space:pre}.name .subname{font-size:13px;padding-bottom:4px;display:inherit}.portal .navbar h1{font-size:16px}.portal .navbar ul{list-style-type:none;margin:0;padding:0;overflow:hidden;background-color:#333}.portal .navbar li{float:left}.portal .navbar .dropbtn,.portal .navbar li a{display:inline-block;color:#fff;text-align:center;padding:14px 16px;text-decoration:none}.portal .navbar .dropdown:hover .dropbtn,.portal .navbar li a:hover{background-color:red}.portal .navbar li.dropdown{display:inline-block}.portal .navbar .dropdown-content{display:none;position:absolute;background-color:#333;min-width:140px;box-shadow:0 8px 16px 0 rgba(0,0,0,.2);z-index:1}.portal .navbar .dropdown-content a{color:#fff;padding:12px 16px;text-decoration:none;display:block;text-align:left}.portal .navbar .dropdown:hover .dropdown-content{display:block}.portal .magnifying-glass{cursor:pointer;transition:color .2s;z-index:1;vertical-align:middle;fill:currentColor;height:18px;min-width:18px;width:18px}.portal .search .results div{padding-bottom:10px}.portal .search .results a{font-size:16px;line-height:20px}.portal .entry{font-size:1.2em}.portal .entry .title{font-weight:700;font-size:16px}.portal .entry .left{float:left;width:100px}.portal .entry .right{float:right;width:86%}.portal .entry .left .title{text-align:left;padding-bottom:10px}.portal .entry .icon14,.portal .entry .icon16,.portal .entry .icon20,.portal .entry .icon24{vertical-align:middle}.portal .entry .entry_content{min-height:550px;height:calc(100vh - 300px);overflow-y:auto;width:100%;position:relative}.portal .entry .entry_content .entry_splash{padding-bottom:4px}.portal .entry .entry_content .entry_splash img{max-width:100%}.portal .entry .entry_content .entry_splash .arrow{position:absolute;color:#f1f1f1;font-size:40px;font-weight:700;width:100%;top:95%}.portal .entry .entry_content .entry_body{position:relative;max-width:100%;padding-bottom:4px;display:flex;flex-wrap:wrap}.portal .entry .entry_content .entry_body hr{margin:0}.portal .entry .entry_content .entry_body .title{min-width:100%}.portal .entry .entry_content .entry_body .title hr{margin-top:8px}.portal .entry .entry_content .entry_body .column>div,.portal .entry .entry_content .entry_body .nocolumn>div{padding:8px}.portal .entry .entry_content .entry_body .column:nth-child(2){flex-grow:1;text-align:left;min-width:0;width:30%}.portal .entry .entry_content .entry_body .column:last-child{flex-grow:2;min-width:0;flex:60%;border-left:1px solid #fff}.portal .entry .entry_content .entry_body .ability{white-space:pre-line;word-wrap:break-all}.portal .entry .entry_content .entry_body div{white-space:pre-line}.portal .entry .entry_content::-webkit-scrollbar{width:1px}.portal .entry .cat_title{text-align:left;background-color:#1a1a1a;font-weight:700;font-size:16px;padding-top:1px;padding-left:4px}.portal .entry .entry_nav{background-color:#1a1a1a;overflow-x:scroll;overflow-y:hidden;white-space:nowrap}.portal .entry .entry_nav>div{display:inline-block}.portal .entry .entry_nav>div img{margin-right:3px;margin-left:3px;height:100px}.portal .entry.base_path .cat_title,.portal .entry.base_path .entry_nav{background-color:inherit}.portal .entry.base_path .cat_title{padding-top:1em;padding-bottom:1em}.portal .entry.base_path .entry_nav{overflow-y:auto;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-content:space-between}.portal .entry.base_path .entry_nav>div{overflow-wrap:break-word;margin:3px;max-width:106px}.portal .entry .modal{position:fixed;z-index:10;padding-top:50px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:rgba(0,0,0,.9)}.portal .entry .modal.hidden{display:none}.portal .entry .modal-content{margin:auto;display:block;max-height:calc(100vh - 100px);max-width:90vw}.portal .entry .caption{margin:auto;display:block;width:80%;max-width:700px;text-align:center;color:#ccc;padding:10px 0;height:150px}.portal .entry #caption,.portal .entry .modal-content{-webkit-animation-name:zoom;-webkit-animation-duration:.6s;animation-name:zoom;animation-duration:.6s}@-webkit-keyframes zoom{0%{-webkit-transform:scale(0)}to{-webkit-transform:scale(1)}}@keyframes zoom{0%{transform:scale(0)}to{transform:scale(1)}}.portal .entry .close{position:fixed;top:35px;right:35px;color:#f1f1f1;font-size:40px;font-weight:700;transition:.3s}.portal .entry .close:focus,.portal .entry .close:hover{color:#bbb;text-decoration:none;cursor:pointer} \ No newline at end of file diff --git a/build/5.js b/build/5.js index d3806c1..dd9c54a 100644 --- a/build/5.js +++ b/build/5.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{386:function(e,t,a){},389:function(e,t,a){"use strict";a.r(t);var n,c,r,l,i,o,s,m,u,g,p,d,E,h,f,x=a(62),b=a.n(x),v=a(52),$=a.n(v),y=a(118),w=a.n(y),k=a(119),C=a.n(k),R=a(120),N=a.n(R),O=a(121),I=a.n(O),F=a(0),L=a.n(F),U=a(6),j=a(84),_=a(38),B=a(53),M=a(70),A=a(64),S=a.n(A),D=a(165),q=a.n(D),V=a(39),z=a.n(V),H=(a(164),n=function(e){function l(){var e,t;b()(this,l);for(var a=arguments.length,n=new Array(a),r=0;rt.gsx$name?1:-1}).map(function(e,t){var a=M.a.cards[r.type].findOne({gsx$name:e.gsx$name});return l(e,a,t)});return e?L.a.createElement("div",{className:"entry ".concat(this.type," base_path")},L.a.createElement("div",{className:"cat_title"},t),L.a.createElement("div",{className:"entry_nav"},n)):L.a.createElement("div",{className:"entry ".concat(this.type)},L.a.createElement("div",{className:"entry_content"},a),L.a.createElement("div",{className:"cat_title"},t),L.a.createElement("div",{className:"entry_nav"},n))}}]),a}(L.a.Component),d=z()(p.prototype,"loaded",[U.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=p))||g)||g;function K(e){var t=e.name.split(",");return L.a.createElement(L.a.Fragment,null,L.a.createElement("span",null,t[0]),1new Date(t)&&(l[a].clear(),l[a].insert(e),k.set("".concat(l.format,"_").concat(a),e[0].updated,{path:"/"})):k.set("".concat(l.format,"_").concat(a),e[0].updated,{path:"/"})}),e.abrupt("return",t());e.next=5;break;case 5:if("building"==this.building[a].get())return r=Object(N.l)(this.building[a],function(e){r(),t()}),e.abrupt("return",r);e.next=8;break;case 8:if("setup"!=this.building[a].get()){e.next=16;break}if(this.building[a].set("building"),0==this[a].data.length)return e.abrupt("return",this.getSpreadsheetData(this.api.urls[n][this.format],n,function(e){return l[a].insert(e),l.building[a].set("built"),t()}));e.next=14;break;case 14:return this.building[a].set("built"),e.abrupt("return",t());case 16:e.next=21;break;case 18:return this.building[a]=N.k.box("wait"),i=Object(N.l)(this.building[a],function(){return i(),l.setupType(a,t)}),e.abrupt("return",i);case 21:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"setupDB",value:function(e){var n=new B.a("chaotic_".concat(e,".db"),{autosave:!0,autoload:!0,autoloadCallback:function(){var a=this;["attacks","battlegear","creatures","locations","mugic"].forEach(function(e){var t=n.getCollection(e);null===t||0===t.data.length?(a[e]=n.addCollection(e),a.building[e]?a.building[e].set("setup"):a.building[e]=N.k.box("setup")):(a[e]=t,a.building[e]?a.building[e].set("built"):a.building[e]=N.k.box("built"))})}.bind(this),autosaveInterval:4e3,persistenceMethod:"localStorage"});this.db=n}}]),n}(),l=A()(a.prototype,"building",[N.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),A()(a.prototype,"setupType",[N.d],Object.getOwnPropertyDescriptor(a.prototype,"setupType"),a.prototype),A()(a.prototype,"setupDB",[N.d],Object.getOwnPropertyDescriptor(a.prototype,"setupDB"),a.prototype),a),C=(u=r=function(){function a(){b()(this,a),h()(this,"portal",c,this),h()(this,"cards",o,this),h()(this,"urls",s,this),this.instance=null,this.setupDB()}var t,n,r;return y()(a,[{key:"path",value:function(e){return a.path(e)}},{key:"base_image",get:function(){return"https://drive.google.com/uc?id="}},{key:"thumb_missing",get:function(){return"1JYjPzkv74IhzlHTyVh2niTDyui73HSfp"}},{key:"card_back",get:function(){return"1_MgWDPsPGf-gPBArn2v6ideJcqOPsSYC"}}],[{key:"getInstance",value:function(){return this.instance||(this.instance=new a),this.instance}},{key:"path",value:function(e){return a.base_url+e+a.data_format}}]),y()(a,[{key:"getSpreadsheet",value:(r=g()(p.a.mark(function e(t,a){return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:fetch(t).then(function(e){return e.json()}).then(function(e){return a(e.feed.entry)}).catch(function(e){return console.error("parsing failed",e),a(null)});case 1:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)})},{key:"setupDB",value:function(){try{var t={};i(361).forEach(function(e){t[e.gsx$type.$t]||(t[e.gsx$type.$t]={}),t[e.gsx$type.$t][e.gsx$subtype.$t]=a.path(e.gsx$url.$t)}),this.urls=t,this.portal=new M(this,"portal"),this.cards=new M(this,"cards")}catch(e){console.error("setting up database failed",e)}}},{key:"LoadDB",value:(n=g()(p.a.mark(function e(a){var n=this;return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){null!==n.urls&&null!==n.portal&&null!==n.cards?n.buildCollection(a).then(function(){e()}):e()}));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"buildCollection",value:(t=g()(p.a.mark(function e(t){var n=this;return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map(function(a){return new Promise(function(e,t){return"cards"in a?n.cards.setupType(a.cards,e):"portal"in a?n.portal.setupType(a.portal,e):(console.error("cards or portal"),t())})}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"purgeDB",value:function(){this.cards.purgeDB(),this.portal.purgeDB(),window.location.reload()}},{key:"tribes",get:function(){return["Danian","Generic","Mipedian","M'arrillian","OverWorld","UnderWorld"]}},{key:"sets",get:function(){return{DOP:"Dawn of Perim",ZOTH:"Zenith of the Hive",SS:"Silent Sands",MI:"Beyond the Doors",ROTO:"Rise of the Oligarch",TOTT:"Turn of the Tide",FUN:"Forged Unity",AU:"Alliance Unraveled",FAS:"Fire and Stone",SAS:"Storm and Sea",EE:"Elemental Emperors",BR:"Beyond Rare",LR:"League Rewards",OP1:"Organized Play 1",PROMO:"Promotional"}}}]),a}(),r.base_url="https://spreadsheets.google.com/feeds/list/",r.data_format="/od6/public/values?alt=json",n=u,c=A()(n.prototype,"portal",[N.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),o=A()(n.prototype,"cards",[N.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s=A()(n.prototype,"urls",[N.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),n);t.a=C.getInstance()}}); \ No newline at end of file +!function(o){function e(e){for(var t,a,n=e[0],r=e[1],i=e[2],l=0,c=[];lnew Date(t)&&(l[a].clear(),l[a].insert(e),k.set("".concat(l.format,"_").concat(a),e[0].updated,{path:"/"})):k.set("".concat(l.format,"_").concat(a),e[0].updated,{path:"/"})}),e.abrupt("return",t());e.next=5;break;case 5:if("building"==this.building[a].get())return r=Object(N.l)(this.building[a],function(e){r(),t()}),e.abrupt("return",r);e.next=8;break;case 8:if("setup"!=this.building[a].get()){e.next=16;break}if(this.building[a].set("building"),0==this[a].data.length)return e.abrupt("return",this.getSpreadsheetData(this.api.urls[n][this.format],n,function(e){return l[a].insert(e),l.building[a].set("built"),t()}));e.next=14;break;case 14:return this.building[a].set("built"),e.abrupt("return",t());case 16:e.next=21;break;case 18:return this.building[a]=N.k.box("wait"),i=Object(N.l)(this.building[a],function(){return i(),l.setupType(a,t)}),e.abrupt("return",i);case 21:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"setupDB",value:function(e){var n=new B.a("chaotic_".concat(e,".db"),{autosave:!0,autoload:!0,autoloadCallback:function(){var a=this;["attacks","battlegear","creatures","locations","mugic"].forEach(function(e){var t=n.getCollection(e);null===t||0===t.data.length?(a[e]=n.addCollection(e),a.building[e]?a.building[e].set("setup"):a.building[e]=N.k.box("setup")):(a[e]=t,a.building[e]?a.building[e].set("built"):a.building[e]=N.k.box("built"))})}.bind(this),autosaveInterval:4e3,persistenceMethod:"localStorage"});this.db=n}}]),n}(),l=A()(a.prototype,"building",[N.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),A()(a.prototype,"setupType",[N.d],Object.getOwnPropertyDescriptor(a.prototype,"setupType"),a.prototype),A()(a.prototype,"setupDB",[N.d],Object.getOwnPropertyDescriptor(a.prototype,"setupDB"),a.prototype),a),C=(u=r=function(){function a(){b()(this,a),h()(this,"portal",c,this),h()(this,"cards",o,this),h()(this,"urls",s,this),this.instance=null,this.setupDB()}var t,n,r;return y()(a,[{key:"path",value:function(e){return a.path(e)}},{key:"base_image",get:function(){return"https://drive.google.com/uc?id="}},{key:"thumb_missing",get:function(){return"1JYjPzkv74IhzlHTyVh2niTDyui73HSfp"}},{key:"card_back",get:function(){return"1_MgWDPsPGf-gPBArn2v6ideJcqOPsSYC"}}],[{key:"getInstance",value:function(){return this.instance||(this.instance=new a),this.instance}},{key:"path",value:function(e){return a.base_url+e+a.data_format}}]),y()(a,[{key:"getSpreadsheet",value:(r=g()(p.a.mark(function e(t,a){return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:fetch(t).then(function(e){return e.json()}).then(function(e){return a(e.feed.entry)}).catch(function(e){return console.error("parsing failed",e),a(null)});case 1:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)})},{key:"setupDB",value:function(){try{var t={};i(360).forEach(function(e){t[e.gsx$type.$t]||(t[e.gsx$type.$t]={}),t[e.gsx$type.$t][e.gsx$subtype.$t]=a.path(e.gsx$url.$t)}),this.urls=t,this.portal=new M(this,"portal"),this.cards=new M(this,"cards")}catch(e){console.error("setting up database failed",e)}}},{key:"LoadDB",value:(n=g()(p.a.mark(function e(a){var n=this;return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){null!==n.urls&&null!==n.portal&&null!==n.cards?n.buildCollection(a).then(function(){e()}):e()}));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"buildCollection",value:(t=g()(p.a.mark(function e(t){var n=this;return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map(function(a){return new Promise(function(e,t){return"cards"in a?n.cards.setupType(a.cards,e):"portal"in a?n.portal.setupType(a.portal,e):(console.error("cards or portal"),t())})}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"purgeDB",value:function(){this.cards.purgeDB(),this.portal.purgeDB(),window.location.reload()}},{key:"tribes",get:function(){return["Danian","Generic","Mipedian","M'arrillian","OverWorld","UnderWorld"]}},{key:"sets",get:function(){return{DOP:"Dawn of Perim",ZOTH:"Zenith of the Hive",SS:"Silent Sands",MI:"Beyond the Doors",ROTO:"Rise of the Oligarch",TOTT:"Turn of the Tide",FUN:"Forged Unity",AU:"Alliance Unraveled",FAS:"Fire and Stone",SAS:"Storm and Sea",EE:"Elemental Emperors",BR:"Beyond Rare",LR:"League Rewards",OP1:"Organized Play 1",PROMO:"Promotional"}}}]),a}(),r.base_url="https://spreadsheets.google.com/feeds/list/",r.data_format="/od6/public/values?alt=json",n=u,c=A()(n.prototype,"portal",[N.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),o=A()(n.prototype,"cards",[N.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s=A()(n.prototype,"urls",[N.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),n);t.a=C.getInstance()}}); \ No newline at end of file diff --git a/build/vendor.js b/build/vendor.js index 5252545..5297e2b 100644 --- a/build/vendor.js +++ b/build/vendor.js @@ -1,2 +1,2 @@ /*! For license information please see vendor.js.LICENSE */ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(t,e,n){"use strict";t.exports=n(352)},function(t,e,n){var v=n(2),y=n(9),m=n(18),g=n(14),b=n(23),w="prototype",x=function(t,e,n){var r,i,o,a,s=t&x.F,u=t&x.G,c=t&x.S,l=t&x.P,f=t&x.B,p=u?v:c?v[e]||(v[e]={}):(v[e]||{})[w],h=u?y:y[e]||(y[e]={}),d=h[w]||(h[w]={});for(r in u&&(n=e),n)o=((i=!s&&p&&void 0!==p[r])?p:n)[r],a=f&&i?b(o,v):l&&"function"==typeof o?b(Function.call,o):o,p&&g(p,r,o,t&x.U),h[r]!=o&&m(h,r,a),l&&d[r]!=o&&(d[r]=o)};v.core=y,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,t.exports=x},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,Ye,Qe){"use strict";(function(n,t){Qe.d(Ye,"a",function(){return k}),Qe.d(Ye,"b",function(){return Rt}),Qe.d(Ye,"c",function(){return Q}),Qe.d(Ye,"d",function(){return Ht}),Qe.d(Ye,"e",function(){return te}),Qe.d(Ye,"f",function(){return _}),Qe.d(Ye,"g",function(){return We}),Qe.d(Ye,"h",function(){return Oe}),Qe.d(Ye,"i",function(){return Pe}),Qe.d(Ye,"j",function(){return Be}),Qe.d(Ye,"k",function(){return K}),Qe.d(Ye,"l",function(){return se}),Qe.d(Ye,"m",function(){return Wt}),Qe.d(Ye,"n",function(){return wt});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0r&&(r=s.dependenciesState)}n.length=i,t.newObserving=null,o=e.length;for(;o--;){0===(s=e[o]).diffValue&&It(s,t),s.diffValue=0}for(;i--;){var s;1===(s=n[i]).diffValue&&(s.diffValue=0,At(s,t))}r!==ct.UP_TO_DATE&&(t.dependenciesState=r,t.onBecomeStale())}(t),r}function bt(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)It(e[n],t);t.dependenciesState=ct.NOT_TRACKING}function wt(t){var e=xt();try{return t()}finally{St(e)}}function xt(){var t=Ct.trackingDerivation;return Ct.trackingDerivation=null,t}function St(t){Ct.trackingDerivation=t}function kt(t){if(t.dependenciesState!==ct.UP_TO_DATE){t.dependenciesState=ct.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=ct.UP_TO_DATE}}var Ot,Et=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Tt=!0,_t=!1,Ct=(0<(Ot=Pt()).__mobxInstanceCount&&!Ot.__mobxGlobals&&(Tt=!1),Ot.__mobxGlobals&&Ot.__mobxGlobals.version!==(new Et).version&&(Tt=!1),Tt?Ot.__mobxGlobals?(Ot.__mobxInstanceCount+=1,Ot.__mobxGlobals.UNCHANGED||(Ot.__mobxGlobals.UNCHANGED={}),Ot.__mobxGlobals):(Ot.__mobxInstanceCount=1,Ot.__mobxGlobals=new Et):(setTimeout(function(){_t||h("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Et));function Pt(){return"undefined"!=typeof window?window:t}function At(t,e){t.observers.add(e),t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function It(t,e){t.observers.delete(e),0===t.observers.size&&Nt(t)}function Nt(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,Ct.pendingUnobservations.push(t))}function jt(){Ct.inBatch++}function Mt(){if(0==--Ct.inBatch){Bt();for(var t=Ct.pendingUnobservations,e=0;e",t):2===arguments.length&&"function"==typeof e?J(t,e):1===arguments.length&&"string"==typeof t?Kt(t):!0!==r?Kt(e).apply(null,arguments):void m(t,e,J(t.name||e,n.value,this))};function Gt(t,e,n){m(t,e,J(e,n.bind(t)))}function Jt(t,e){void 0===e&&(e=s);var n,r=e&&e.name||t.name||"Autorun@"+f();if(!e.scheduler&&!e.delay)n=new Rt(r,function(){this.track(a)},e.onError);else{var i=Yt(e),o=!1;n=new Rt(r,function(){o||(o=!0,i(function(){o=!1,n.isDisposed||n.track(a)}))},e.onError)}function a(){t(n)}return n.schedule(),n.getDisposer()}Ht.bound=function(t,e,n,r){return!0===r?(Gt(t,e,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Gt(this,e,n.value||n.initializer.call(this)),this[e]},set:qt}:{enumerable:!1,configurable:!0,set:function(t){Gt(this,e,t)},get:function(){}}};var Xt=function(t){return t()};function Yt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Xt}function Qt(t,e,n){return Zt("onBecomeUnobserved",t,e,n)}function Zt(t,e,n,r){var i="string"==typeof n?Ve(e,n):Ve(e),o="string"==typeof n?r:n,a=t+"Listeners";return i[a]?i[a].add(o):i[a]=new Set([o]),"function"!=typeof i[t]?h(!1):function(){var t=i[a];t&&(t.delete(o),0===t.size&&delete i[a])}}function te(t){var e=t.enforceActions,n=t.computedRequiresReaction,r=t.computedConfigurable,i=t.disableErrorBoundaries,o=t.reactionScheduler;if(!0===t.isolateGlobalState&&((Ct.pendingReactions.length||Ct.inBatch||Ct.isRunningReactions)&&h("isolateGlobalState should be called before MobX is running any reactions"),_t=!0,Tt&&(0==--Pt().__mobxInstanceCount&&(Pt().__mobxGlobals=void 0),Ct=new Et)),void 0!==e){var a=void 0;switch(e){case!0:case"observed":a=!0;break;case!1:case"never":a=!1;break;case"strict":case"always":a="strict";break;default:h("Invalid value for 'enforceActions': '"+e+"', expected 'never', 'always' or 'observed'")}Ct.enforceActions=a,Ct.allowStateChanges=!0!==a&&"strict"!==a}void 0!==n&&(Ct.computedRequiresReaction=!!n),void 0!==r&&(Ct.computedConfigurable=!!r),void 0!==i&&(!0===i&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),Ct.disableErrorBoundaries=!!i),o&&function(e){var n=zt;zt=function(t){return e(function(){return n(t)})}}(o)}function ee(t,e,n,r){var i=ne(r=U(r));return j(t),Fe(t,r.name,i.enhancer),e&&re(t,e,n,i),t}function ne(t){return t.defaultDecorator||(!1===t.deep?V:z)}function re(t,e,n,r){var i,o;jt();try{var a=w(e);try{for(var s=p(a),u=s.next();!u.done;u=s.next()){var c=u.value,l=Object.getOwnPropertyDescriptor(e,c);0;var f=(n&&c in n?n[c]:l.get?G:r)(t,c,l,!0);f&&Object.defineProperty(t,c,f)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}finally{Mt()}}function ie(t){var e={name:t.name};return t.observing&&0=e.length&&(e.length=n+1),e[n]=r,Mt()}else{jt();var o=n;try{for(var a in o)t(e,a,o[a])}finally{Mt()}}}(t,e,n),!0)},deleteProperty:function(t,e){return!!le(e)&&(ce(t).remove(e),!0)},ownKeys:function(t){return ce(t).keysAtom.reportObserved(),Reflect.ownKeys(t)},preventExtensions:function(t){return h("Dynamic observable objects cannot be frozen"),!1}};function pe(t){return void 0!==t.interceptors&&0"+i+""}var i=n(1),o=n(3),a=n(32),s=/"/g;t.exports=function(e,t){var n={};n[e]=t(r),i(i.P+i.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||3e?n.splice(e,n.length-e,r):n.push(r),l({action:"PUSH",location:r,index:e,entries:n})}})},replace:function(t,e){var n="REPLACE",r=M(t,e,f(),y.location);c.confirmTransitionTo(r,n,i,function(t){t&&(y.entries[y.index]=r,l({action:n,location:r}))})},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(t){var e=y.index+t;return 0<=e&&edocument.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l[c][s[n]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(i[c]=o(t),n=new i,i[c]=null,n[u]=t):n=l(),void 0===e?n:a(n,e)}},function(t,e,n){var r=n(126),i=n(89).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(17),i=n(13),o=n(88)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(7)("unscopables"),i=Array.prototype;null==i[r]&&n(18)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.childInteractiveProps=e.defaultTapTimeCutoff=e.queueTime=e.knownProps=e.knownRoleTags=e.nonBlurrableTags=e.statePropOptionKeys=e.stateProps=e.iStates=e.otherEvents=e.touchEvents=e.mouseEvents=e.passiveEventSupport=e.deviceHasMouse=e.deviceHasTouch=e.deviceType=void 0;var r=Object.assign||function(t){for(var e=1;e")}),g=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(n,t,e){var r=d(n),o=!p(function(){var t={};return t[r]=function(){return 7},7!=""[n](t)}),i=o?!p(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},"split"===n&&(e.constructor={},e.constructor[y]=function(){return e}),e[r](""),!t}):void 0;if(!o||!i||"replace"===n&&!m||"split"===n&&!g){var a=/./[r],s=e(h,r,""[n],function(t,e,n,r,i){return e.exec===v?o&&!i?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),u=s[0],c=s[1];l(String.prototype,n,u),f(RegExp.prototype,r,2==t?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)})}}},function(t,e,n){var p=n(23),h=n(139),d=n(102),v=n(4),y=n(8),m=n(104),g={},b={};(e=t.exports=function(t,e,n,r,i){var o,a,s,u,c=i?function(){return t}:m(t),l=p(n,r,e?2:1),f=0;if("function"!=typeof c)throw TypeError(t+" is not iterable!");if(d(c)){for(o=y(t.length);f>",a=a||r,null!=n[r])return c.apply(void 0,[n,r,i,o,a].concat(s));if(e){var t=null===n[r]?"null":"undefined";return new Error("The "+o+" `"+a+"` is marked as required in `"+i+"`, but its value is `"+t+"`.")}return null})}var e=t.bind(null,!1);return e.isRequired=t.bind(null,!0),e}function N(t){var e=a(t);return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function j(u,c){return I(function(i,o,a,t,s){return Object(f.n)(function(){if(u&&N(i[o])===c.toLowerCase())return null;var t;switch(c){case"Array":t=f.h;break;case"Object":t=f.j;break;case"Map":t=f.i;break;default:throw new Error("Unexpected mobxType: ".concat(c))}var e=i[o];if(t(e))return null;var n=function(t){var e=N(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}(e),r=u?" or javascript `"+c.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+n+"` supplied to `"+a+"`, expected `mobx.Observable"+c+"`"+r+".")})})}function M(c,l){return I(function(r,i,o,a,s){for(var t=arguments.length,u=new Array(5",i=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalInstance&&this._reactInternalInstance._debugID||this._reactInternalFiber&&this._reactInternalFiber._debugID;it(this,et,!1),it(this,nt,!1);var o=t.bind(this),a=!1,s=new f.b("".concat(r,"#").concat(i,".render()"),function(){if(!a&&(a=!0,"function"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e[J])){var t=!0;try{it(e,nt,!0),e[et]||c.Component.prototype.forceUpdate.call(e),t=!1}finally{it(e,nt,!1),t&&s.dispose()}}});return s.reactComponent=this,n[G]=s,(this.render=n).call(this)}.call(this,u)},n}var ht=pt(function(t){var e=t.children,n=t.inject,r=t.render,i=e||r;if(void 0===i)return null;if(!n)return i();console.warn(" is no longer supported. Please use inject on the enclosing component instead");var o=H(n)(i);return l.a.createElement(o,null)});ht.displayName="Observer";function dt(t,e,n,r,i){var o="children"===e?"render":"children";return"function"==typeof t[e]&&"function"==typeof t[o]?new Error("Invalid prop,do not use children and render in the same time in`"+n):"function"!=typeof t[e]&&"function"!=typeof t[o]?new Error("Invalid prop `"+i+"` of type `"+a(t[e])+"` supplied to `"+n+"`, expected `function`."):void 0}function vt(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function yt(n){this.setState(function(t){var e=this.constructor.getDerivedStateFromProps(n,t);return null!=e?e:null}.bind(this))}function mt(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}ht.propTypes={render:dt,children:dt};var gt={children:mt.__suppressDeprecationWarning=yt.__suppressDeprecationWarning=vt.__suppressDeprecationWarning=!0,key:!0,ref:!0},bt=function(){function r(t,e){var n;return p(this,r),(n=m(this,y(r).call(this,t,e))).state={},wt(t,n.state),n}return v(r,c["Component"]),h(r,[{key:"render",value:function(){return c.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var t={};return wt(this.context.mobxStores,t),wt(this.props,t),{mobxStores:t}}}],[{key:"getDerivedStateFromProps",value:function(t,e){if(!t)return null;if(!e)return t;if(Object.keys(t).filter(xt).length!==Object.keys(e).filter(xt).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!t.suppressChangedStoreWarning)for(var n in t)xt(n)&&e[n]!==t[n]&&console.warn("MobX Provider: Provided store '"+n+"' has changed. Please avoid replacing stores as the change might not propagate to all children");return t}}]),r}();function wt(t,e){if(t)for(var n in t)xt(n)&&(e[n]=t[n])}function xt(t){return!gt[t]&&"suppressChangedStoreWarning"!==t}bt.contextTypes={mobxStores:D},bt.childContextTypes={mobxStores:D.isRequired},function(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return;var n=null,r=null,i=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?i="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==i){var o=t.displayName||t.name,a="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+o+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=vt,e.componentWillReceiveProps=yt),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=mt;var s=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,t,e,r)}}}(bt);L("disposeOnUnmount");if(!c.Component)throw new Error("mobx-react requires React to be available");if(!f.m)throw new Error("mobx-react requires mobx to be available");"function"==typeof r.unstable_batchedUpdates&&Object(f.e)({reactionScheduler:r.unstable_batchedUpdates});if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":a(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var St={spy:f.m,extras:{getDebugName:f.g}},kt={renderReporter:tt,componentByNodeRegistry:Z,componentByNodeRegistery:Z,trackComponents:function(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");X=X||!0}};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(kt,St)}},,function(t,e,n){var r=n(5),i=n(2).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){e.f=n(7)},function(t,e,n){var r=n(71)("keys"),i=n(41);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,i){function o(t,e){if(r(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}var n=i(5),r=i(4);t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=i(23)(Function.call,i(26).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var o=n(5),a=n(91).set;t.exports=function(t,e,n){var r,i=e.constructor;return i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&o(r)&&a&&a(t,r),t}},function(t,e,n){"use strict";var i=n(25),o=n(32);t.exports=function(t){var e=String(o(this)),n="",r=i(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;0>>=1)&&(e+=e))1&r&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||22025.465794806718=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,i,o=n(76),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,c="lastIndex",l=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r[c]||0!==i[c]),f=void 0!==/()??/.exec("")[1];(l||f)&&(u=function(t){var e,n,r,i;return f&&(n=new RegExp("^"+this.source+"$(?!\\s)",o.call(this))),l&&(e=this[c]),r=a.call(this,t),l&&r&&(this[c]=this.global?r.index+r[0].length:e),f&&r&&1>1,l=23===e?P(2,-24)-P(2,-77):0,f=0,p=t<0||0===t&&1/t<0?1:0;for((t=C(t))!=t||t===T?(i=t!=t?1:0,r=u):(r=A(I(t)/N),t*(o=P(2,-r))<1&&(r--,o*=2),2<=(t+=1<=r+c?l/o:l*P(2,1-c))*o&&(r++,o/=2),u<=r+c?(i=0,r=u):1<=r+c?(i=(t*o-1)*P(2,e),r+=c):(i=t*P(2,c-1)*P(2,e),r=0));8<=e;a[f++]=255&i,i/=256,e-=8);for(r=r<>1,s=i-7,u=n-1,c=t[u--],l=127&c;for(c>>=7;0>=-s,s+=e;0>8&255]}function $(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function W(t){return L(t,52,8)}function q(t){return L(t,23,4)}function K(t,e,n){v(t[w],e,{get:function(){return this[n]}})}function H(t,e,n,r){var i=h(+n);if(i+e>t[F])throw E(x);var o=t[D]._b,a=i+t[R],s=o.slice(a,a+e);return r?s:s.reverse()}function G(t,e,n,r,i,o){var a=h(+n);if(a+e>t[F])throw E(x);for(var s=t[D]._b,u=a+t[R],c=r(+i),l=0;lQ;)(J=Y[Q++])in S||s(S,J,_[J]);o||(X.constructor=S)}var Z=new k(new S(2)),tt=k[w].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||u(k[w],{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else S=function(t){l(this,S,g);var e=h(t);this._b=y.call(new Array(e),0),this[F]=e},k=function(t,e,n){l(this,k,b),l(t,S,b);var r=t[F],i=f(e);if(i<0||r>24},getUint8:function(t){return H(this,1,t)[0]},getInt16:function(t,e){var n=H(this,2,t,e);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t,e){var n=H(this,2,t,e);return n[1]<<8|n[0]},getInt32:function(t,e){return z(H(this,4,t,e))},getUint32:function(t,e){return z(H(this,4,t,e))>>>0},getFloat32:function(t,e){return U(H(this,4,t,e),23,4)},getFloat64:function(t,e){return U(H(this,8,t,e),52,8)},setInt8:function(t,e){G(this,1,t,B,e)},setUint8:function(t,e){G(this,1,t,B,e)},setInt16:function(t,e,n){G(this,2,t,V,e,n)},setUint16:function(t,e,n){G(this,2,t,V,e,n)},setInt32:function(t,e,n){G(this,4,t,$,e,n)},setUint32:function(t,e,n){G(this,4,t,$,e,n)},setFloat32:function(t,e,n){G(this,4,t,q,e,n)},setFloat64:function(t,e,n){G(this,8,t,W,e,n)}});m(S,g),m(k,b),s(k[w],a.VIEW,!0),e[g]=S,e[b]=k},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(157)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notifyOfNext=function(t,e){var n=function t(e){s===Number.MAX_SAFE_INTEGER&&(s=0);s++;if(void 0===a[e][s])return s;return t(e)}(t);return a[t][n]=o[t].push({id:n,callback:e})-1,n},e.cancelNotifyOfNext=function(t,e){"undefined"!==a[t][e]&&(o[t][a[t][e]].callback=u,delete a[t][e])},e.notifyOfAll=function(t,e){t.forEach(function(t){r[t]=e})};var i=n(50),r={},o={},a={},s=0;var u=function(){};function c(t){r[t.type](t)}function l(e){if(0!==o[e.type].length){e.persist=u;var n=[],r={};o[e.type].forEach(function(t){"reNotifyOfNext"===t.callback(e)&&(r[t.id]=n.push(t)-1)}),o[e.type]=n,a[e.type]=r}}function f(t){c(t),l(t)}function p(t,e,n,r){o[e]=[],a[e]={},t.addEventListener(e,n,i.passiveEventSupport?{capture:r,passive:"click"!==e}:r)}if(i.deviceHasTouch&&(p(window,"click",c,!0),Object.keys(i.touchEvents).forEach(function(t){p(document,t,"touchstart"===t?f:c,!0)})),i.deviceHasMouse){Object.keys(i.mouseEvents).forEach(function(t){p(document,t,"mouseenter"===t?f:c,!("mouseenter"===t||"mouseleave"===t))}),p(document,"dragstart",l,!0),i.passiveEventSupport&&p(document,"scroll",l,!0),o.mutation=[],a.mutation={};var h=(0,i.dummyEvent)("mutation");(window.MutationObserver?new MutationObserver(l.bind(null,h)):{observe:function(){}}).observe(document,{childList:!0,attributes:!0,subtree:!0,characterData:!0})}["focus","blur"].forEach(function(t){p(window,t,l,!1)}),p(document,"keydown",c,!0)},function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}},function(t,e,n){var p=n(364);t.exports=a,t.exports.parse=r,t.exports.compile=function(t,e){return i(r(t,e))},t.exports.tokensToFunction=i,t.exports.tokensToRegExp=o;var O=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function r(t,e){for(var n,r,i=[],o=0,a=0,s="",u=e&&e.delimiter||"/";null!=(n=O.exec(t));){var c=n[0],l=n[1],f=n.index;if(s+=t.slice(a,f),a=f+c.length,l)s+=l[1];else{var p=t[a],h=n[2],d=n[3],v=n[4],y=n[5],m=n[6],g=n[7];s&&(i.push(s),s="");var b=null!=h&&null!=p&&p!==h,w="+"===m||"*"===m,x="?"===m||"*"===m,S=n[2]||u,k=v||y;i.push({name:d||o++,prefix:h||"",delimiter:S,optional:x,repeat:w,partial:b,asterisk:!!g,pattern:k?(r=k,r.replace(/([=!:$\/()])/g,"\\$1")):g?".*":"[^"+E(S)+"]+?"})}}return a=e.length)u=n(o,r);else if(Array.isArray(o))for(var c=0,l=o.length;c=e[0]&&t<=e[1])},$in:function(t,e){return-1!==e.indexOf(t)},$nin:function(t,e){return-1===e.indexOf(t)},$keyin:function(t,e){return t in e},$nkeyin:function(t,e){return!(t in e)},$definedin:function(t,e){return void 0!==e[t]},$undefinedin:function(t,e){return void 0===e[t]},$regex:function(t,e){return e.test(t)},$containsString:function(t,e){return"string"==typeof t&&-1!==t.indexOf(e)},$containsNone:function(t,e){return!T.$containsAny(t,e)},$containsAny:function(t,e){var n=r(t);return null!==n&&(Array.isArray(e)?e.some(n):n(e))},$contains:function(t,e){var n=r(t);return null!==n&&(Array.isArray(e)?e.every(n):n(e))},$elemMatch:function(t,r){return!!Array.isArray(t)&&t.some(function(n){return Object.keys(r).every(function(t){var e=r[t];return"object"==typeof e&&e||(e={$eq:e}),-1!==t.indexOf(".")?E(n,t.split("."),i,r[t]):i(n[t],e)})})},$type:function(t,e){var n=typeof t;return"object"===n&&(Array.isArray(t)?n="array":t instanceof Date&&(n="date")),"object"!=typeof e?n===e:i(n,e)},$finite:function(t,e){return e===isFinite(t)},$size:function(t,e){return!!Array.isArray(t)&&("object"!=typeof e?t.length===e:i(t.length,e))},$len:function(t,e){return"string"==typeof t&&("object"!=typeof e?t.length===e:i(t.length,e))},$where:function(t,e){return!0===e(t)},$not:function(t,e){return!i(t,e)},$and:function(t,e){for(var n=0,r=e.length;n>1,0===(r=n.apply(null,[e,t[i]])))return{found:!0,index:i};r<0?a=i:o=1+i}return{found:!1,index:a}}function A(n){return function(t,e){return P(t,e,n)}}function I(){}function N(t){this.field=t,this.keyMap={},this.lokiMap={}}function j(t){this.index={},this.field=t}return a.prototype.events={},a.prototype.asyncListeners=!1,a.prototype.on=function(t,e){var n=this;return Array.isArray(t)?t.forEach(function(t){n.on(t,e)}):(this.events[t]||(this.events[t]=[])).push(e),e},a.prototype.emit=function(t){var e=this,n=Array.prototype.slice.call(arguments,1);if(!t||!this.events[t])throw new Error("No event "+t+" defined");this.events[t].forEach(function(t){e.asyncListeners?setTimeout(function(){t.apply(e,n)},1):t.apply(e,n)})},a.prototype.addListener=a.prototype.on,a.prototype.removeListener=function(t,e){var n=this;if(Array.isArray(t))t.forEach(function(t){n.removeListener(t,e)});else if(this.events[t]){var r=this.events[t];r.splice(r.indexOf(e),1)}},((s.prototype=new a).constructor=s).prototype.getIndexedAdapter=function(){return F(359)},s.prototype.configureOptions=function(t,e){var n={fs:l,localStorage:f,memory:u};if(this.options={},this.persistenceMethod=null,this.persistenceAdapter=null,void 0!==t){if(this.options=t,this.options.hasOwnProperty("persistenceMethod")&&"function"==typeof n[t.persistenceMethod]&&(this.persistenceMethod=t.persistenceMethod,this.persistenceAdapter=new n[t.persistenceMethod]),this.options.hasOwnProperty("adapter")&&(this.persistenceMethod="adapter",this.persistenceAdapter=t.adapter,this.options.adapter=null),t.autoload&&e){var r=this;setTimeout(function(){r.loadDatabase(t,t.autoloadCallback)},1)}this.options.hasOwnProperty("autosaveInterval")&&(this.autosaveDisable(),this.autosaveInterval=parseInt(this.options.autosaveInterval,10)),this.options.hasOwnProperty("autosave")&&this.options.autosave&&(this.autosaveDisable(),this.autosave=!0,this.options.hasOwnProperty("autosaveCallback")?this.autosaveEnable(t,t.autosaveCallback):this.autosaveEnable()),this.options.hasOwnProperty("throttledSaves")&&(this.throttledSaves=this.options.throttledSaves)}this.options.hasOwnProperty("serializationMethod")||(this.options.serializationMethod="normal"),this.options.hasOwnProperty("destructureDelimiter")||(this.options.destructureDelimiter="$<\n"),null===this.persistenceAdapter&&(this.persistenceMethod={NODEJS:"fs",BROWSER:"localStorage",CORDOVA:"localStorage",MEMORY:"memory"}[this.ENV],this.persistenceMethod&&(this.persistenceAdapter=new n[this.persistenceMethod]))},s.prototype.copy=function(t){var e,n,r=new s(this.filename,{env:"NA"});if(t=t||{},r.loadJSONObject(this,{retainDirtyFlags:!0}),t.hasOwnProperty("removeNonSerializable")&&!0===t.removeNonSerializable)for(r.autosaveHandle=null,r.persistenceAdapter=null,e=r.collections.length,n=0;nr&&(u=!0):(i=JSON.parse(o[s]),n.collections[a].data.push(i)),o[s++]=null;return n},s.prototype.deserializeCollection=function(t,e){var n,r,i=[];for((e=e||{}).hasOwnProperty("partitioned")||(e.partitioned=!1),e.hasOwnProperty("delimited")||(e.delimited=!0),e.hasOwnProperty("delimiter")||(e.delimiter=this.options.destructureDelimiter),e.delimited?(i=t.split(e.delimiter)).pop():i=t,r=i.length,n=0;n=o&&(c=!0)),i>=this.options.pageSize&&(l=!0),l&&!c||(u+=this.options.delimiter,i+=a),c||l)return void this.adapter.saveDatabase(r,u,f)},l.prototype.loadDatabase=function(n,r){var i=this;this.fs.stat(n,function(t,e){!t&&e.isFile()?i.fs.readFile(n,{encoding:"utf8"},function(t,e){r(t?new Error(t):e)}):r(null)})},l.prototype.saveDatabase=function(e,t,n){var r=this,i=e+"~";this.fs.writeFile(i,t,function(t){t?n(new Error(t)):r.fs.rename(i,e,n)})},l.prototype.deleteDatabase=function(t,e){this.fs.unlink(t,function(t){t?e(new Error(t)):e()})},f.prototype.loadDatabase=function(t,e){o()?e(localStorage.getItem(t)):e(new Error("localStorage is not available"))},f.prototype.saveDatabase=function(t,e,n){o()?(localStorage.setItem(t,e),n(null)):n(new Error("localStorage is not available"))},f.prototype.deleteDatabase=function(t,e){o()?(localStorage.removeItem(t),e(null)):e(new Error("localStorage is not available"))},s.prototype.throttledSaveDrain=function(t,e){var n=this,r=(new Date).getTime();if(this.throttledSaves||t(!0),(e=e||{}).hasOwnProperty("recursiveWait")||(e.recursiveWait=!0),e.hasOwnProperty("recursiveWaitLimit")||(e.recursiveWaitLimit=!1),e.hasOwnProperty("recursiveWaitLimitDuration")||(e.recursiveWaitLimitDuration=2e3),e.hasOwnProperty("started")||(e.started=(new Date).getTime()),this.throttledSaves&&this.throttledSavePending){if(!e.recursiveWait)return void this.throttledCallbacks.push(t);this.throttledCallbacks.push(function(){return n.throttledSavePending?e.recursiveWaitLimit&&r-e.started>e.recursiveWaitLimitDuration?void t(!1):void n.throttledSaveDrain(t,e):void t(!0)})}else t(!0)},s.prototype.loadDatabaseInternal=function(n,t){var r=t||function(t,e){if(t)throw t},i=this;null!==this.persistenceAdapter?this.persistenceAdapter.loadDatabase(this.filename,function(t){if("string"==typeof t){var e=!1;try{i.loadJSON(t,n||{}),e=!0}catch(t){r(t)}e&&(r(null),i.emit("loaded","database "+i.filename+" loaded"))}else{if(!t)return r(null),void i.emit("loaded","empty database "+i.filename+" loaded");if(t instanceof Error)return void r(t);if("object"==typeof t)return i.loadJSONObject(t,n||{}),r(null),void i.emit("loaded","database "+i.filename+" loaded");r("unexpected adapter response : "+t)}}):r(new Error("persistenceAdapter not configured"))},s.prototype.loadDatabase=function(e,n){var r=this;this.throttledSaves?this.throttledSaveDrain(function(t){if(t)return r.throttledSavePending=!0,void r.loadDatabaseInternal(e,function(t){0===r.throttledCallbacks.length?r.throttledSavePending=!1:r.saveDatabase(),"function"==typeof n&&n(t)});"function"==typeof n&&n(new Error("Unable to pause save throttling long enough to read database"))},e):this.loadDatabaseInternal(e,n)},s.prototype.saveDatabaseInternal=function(t){var e=t||function(t){if(t)throw t},n=this;null!==this.persistenceAdapter?"reference"===this.persistenceAdapter.mode&&"function"==typeof this.persistenceAdapter.exportDatabase?this.persistenceAdapter.exportDatabase(this.filename,this.copy({removeNonSerializable:!0}),function(t){n.autosaveClearFlags(),e(t)}):(n.autosaveClearFlags(),this.persistenceAdapter.saveDatabase(this.filename,n.serialize(),function(t){e(t)})):e(new Error("persistenceAdapter not configured"))},s.prototype.save=s.prototype.saveDatabase=function(t){if(this.throttledSaves)if(this.throttledSavePending)this.throttledCallbacks.push(t);else{var n=this.throttledCallbacks;this.throttledCallbacks=[],n.unshift(t),this.throttledSavePending=!0;var r=this;this.saveDatabaseInternal(function(e){r.throttledSavePending=!1,n.forEach(function(t){"function"==typeof t&&setTimeout(function(){t(e)},1)}),0e[n]?1:t[n]>1;if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))throw new TypeError("Passed id is not an integer");for(;r[o]>1]p[o];o++)u++;l.values[i]-=u}return}t=t[0]}if(null===(c=this.getBinaryIndexPosition(t,e)))return null;if(l.values.splice(c,1),!0!==n)for(r=l.values.length,i=0;it&&l.values[i]--},m.prototype.calculateRangeStart=function(t,e,n,r){var i=this.data,o=this.binaryIndices[t].values,a=0,s=o.length-1,u=0;if(0===o.length)return-1;for(O.getIn(i[o[a]],t,r),O.getIn(i[o[s]],t,r);a>1,g.lt(O.getIn(i[o[u]],t,r),e,!1)?a=u+1:s=u;var c=a;return g.aeq(e,O.getIn(i[o[c]],t,r))?c:g.lt(e,O.getIn(i[o[c]],t,r),!1)?n?c:c-1:n?c+1:c},m.prototype.calculateRangeEnd=function(t,e,n){var r=this.data,i=this.binaryIndices[t].values,o=0,a=i.length-1,s=0;if(0===i.length)return-1;for(O.getIn(r[i[o]],t,n),O.getIn(r[i[a]],t,n);o>1,g.lt(e,O.getIn(r[i[s]],t,n),!1)?a=s:o=s+1;var u=a;return g.aeq(e,O.getIn(r[i[u]],t,n))?u:g.gt(e,O.getIn(r[i[u]],t,n),!1)?u+1:g.aeq(e,O.getIn(r[i[u-1]],t,n))?u-1:u},m.prototype.calculateRange=function(t,e,n){var r,i,o,a=this.data,s=this.binaryIndices[e].values,u=s.length-1;if(0===a.length)return[0,-1];var c=-1!==e.indexOf("."),l=O.getIn(a[s[0]],e,c),f=O.getIn(a[s[u]],e,c);switch(t){case"$eq":case"$aeq":case"$dteq":if(g.lt(n,l,!1)||g.gt(n,f,!1))return[0,-1];break;case"$gt":if(g.gt(n,f,!0))return[0,-1];if(g.gt(l,n,!1))return[0,u];break;case"$gte":if(g.gt(n,f,!1))return[0,-1];if(g.gt(l,n,!0))return[0,u];break;case"$lt":if(g.lt(n,l,!0))return[0,-1];if(g.lt(f,n,!1))return[0,u];break;case"$lte":if(g.lt(n,l,!1))return[0,-1];if(g.lt(f,n,!0))return[0,u];break;case"$between":return g.gt(n[0],f,!1)?[0,-1]:g.lt(n[1],l,!1)?[0,-1]:(r=this.calculateRangeStart(e,n[0],!1,c),o=this.calculateRangeEnd(e,n[1],c),r<0&&r++,uC(this.data[n],t,i)&&(e=C(this.data[n],t,i),o.index=this.data[n].$loki):(e=C(this.data[n],t,i),o.index=this.data[n].$loki);return o.value=e,o},m.prototype.extractNumerical=function(t){return this.extract(t).map(b).filter(Number).filter(function(t){return!isNaN(t)})},m.prototype.avg=function(t){return S(this.extractNumerical(t))},m.prototype.stdDev=function(t){return function(t){var n=S(t),e=S(t.map(function(t){var e=t-n;return e*e}));return Math.sqrt(e)}(this.extractNumerical(t))},m.prototype.mode=function(t){var e,n,r,i={},o=this.extract(t);for(n in o.forEach(function(t){i[t]?i[t]+=1:i[t]=1}),i)e?ei;)a(r,n=e[i++])&&(~u(o,n)||o.push(n));return o}},function(t,e,n){var a=n(11),s=n(4),u=n(43);t.exports=n(10)?Object.defineProperties:function(t,e){s(t);for(var n,r=u(e),i=r.length,o=0;o>>0||(a.test(n)?16:10))}:r},function(t,e,n){var r=n(2).parseFloat,i=n(55).trim;t.exports=1/r(n(92)+"-0")!=-1/0?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(31);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(5),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return-1e-8<(t=+t)&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(45),i=n(40),o=n(54),a={};n(18)(a,n(7)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var o=n(4);t.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&o(i.call(e)),t}}},function(t,e,n){var r=n(261);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var l=n(24),f=n(13),p=n(65),h=n(8);t.exports=function(t,e,n,r,i){l(e);var o=f(t),a=p(o),s=h(o.length),u=i?s-1:0,c=i?-1:1;if(n<2)for(;;){if(u in a){r=a[u],u+=c;break}if(u+=c,i?u<0:s<=u)throw TypeError("Reduce of empty array with no initial value")}for(;i?0<=u:ut;)e(r[t++]);l._c=[],l._n=!1,n&&!l._h&&F(l)})}}function o(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),i(e,!0))}var a,s,u,c,l=n(42),p=n(2),h=n(23),d=n(67),v=n(1),y=n(5),m=n(24),g=n(58),b=n(79),w=n(68),x=n(109).set,S=n(281)(),k=n(147),O=n(282),E=n(80),T=n(148),_="Promise",C=p.TypeError,P=p.process,A=P&&P.versions,I=A&&A.v8||"",N=p[_],j="process"==d(P),M=s=k.f,D=!!function(){try{var t=N.resolve(1),e=(t.constructor={})[n(7)("species")]=function(t){t(r,r)};return(j||"function"==typeof PromiseRejectionEvent)&&t.then(r)instanceof e&&0!==I.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(t){}}(),F=function(o){x.call(p,function(){var t,e,n,r=o._v,i=R(o);if(i&&(t=O(function(){j?P.emit("unhandledRejection",r,o):(e=p.onunhandledrejection)?e({promise:o,reason:r}):(n=p.console)&&n.error&&n.error("Unhandled promise rejection",r)}),o._h=j||R(o)?2:1),o._a=void 0,i&&t.e)throw t.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(e){x.call(p,function(){var t;j?P.emit("rejectionHandled",e):(t=p.onrejectionhandled)&&t({promise:e,reason:e._v})})},U=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw C("Promise can't be resolved itself");(n=f(t))?S(function(){var e={_w:r,_d:!1};try{n.call(t,h(U,e,1),h(o,e,1))}catch(t){o.call(e,t)}}):(r._v=t,r._s=1,i(r,!1))}catch(t){o.call({_w:r,_d:!1},t)}}};D||(N=function(t){g(this,N,_,"_h"),m(t),a.call(this);try{t(h(U,this,1),h(o,this,1))}catch(t){o.call(this,t)}},(a=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(59)(N.prototype,{then:function(t,e){var n=M(w(this,N));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=j?P.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&i(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),u=function(){var t=new a;this.promise=t,this.resolve=h(U,t,1),this.reject=h(o,t,1)},k.f=M=function(t){return t===N||t===c?new u(t):s(t)}),v(v.G+v.W+v.F*!D,{Promise:N}),n(54)(N,_),n(57)(_),c=n(9)[_],v(v.S+v.F*!D,_,{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),v(v.S+v.F*(l||!D),_,{resolve:function(t){return T(l&&this===c?N:this,t)}}),v(v.S+v.F*!(D&&n(75)(function(t){N.all(t).catch(r)})),_,{all:function(t){var a=this,e=M(a),s=e.resolve,u=e.reject,n=O(function(){var r=[],i=0,o=1;b(t,!1,function(t){var e=i++,n=!1;r.push(void 0),o++,a.resolve(t).then(function(t){n||(n=!0,r[e]=t,--o||s(r))},u)}),--o||s(r)});return n.e&&u(n.v),e.promise},race:function(t){var e=this,n=M(e),r=n.reject,i=O(function(){b(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e,n){"use strict";var i=n(24);function r(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=i(n),this.reject=i(r)}t.exports.f=function(t){return new r(t)}},function(t,e,n){var r=n(4),i=n(5),o=n(147);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";function a(t,e){var n,r=d(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n}var s=n(11).f,u=n(45),c=n(59),l=n(23),f=n(58),p=n(79),r=n(98),i=n(143),o=n(57),h=n(10),d=n(36).fastKey,v=n(49),y=h?"_s":"size";t.exports={getConstructor:function(t,o,n,r){var i=t(function(t,e){f(t,i,o,"_i"),t._t=o,t._i=u(null),t._f=void 0,t._l=void 0,t[y]=0,null!=e&&p(e,n,t[r],t)});return c(i.prototype,{clear:function(){for(var t=v(this,o),e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var e=v(this,o),n=a(e,t);if(n){var r=n.n,i=n.p;delete e._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),e._f==n&&(e._f=r),e._l==n&&(e._l=i),e[y]--}return!!n},forEach:function(t,e){v(this,o);for(var n,r=l(t,1u&&(c=c.slice(0,u)),r?c+i:i+c}},function(t,e,n){var u=n(10),c=n(43),l=n(19),f=n(66).f;t.exports=function(s){return function(t){for(var e,n=l(t),r=c(n),i=r.length,o=0,a=[];oi;)l(H,e=n[i++])||e==$||e==d||r.push(e);return r}function u(t){for(var e,n=t===J,r=L(n?G:_(t)),i=[],o=0;r.length>o;)!l(H,e=r[o++])||n&&!l(J,e)||i.push(H[e]);return i}var c=n(2),l=n(17),f=n(10),p=n(1),h=n(14),d=n(36).KEY,v=n(3),y=n(71),m=n(54),g=n(41),b=n(7),w=n(87),x=n(125),S=n(172),k=n(74),O=n(4),E=n(5),T=n(13),_=n(19),C=n(35),P=n(40),A=n(45),I=n(128),N=n(26),j=n(73),M=n(11),D=n(43),F=N.f,R=M.f,L=I.f,U=c.Symbol,z=c.JSON,B=z&&z.stringify,V="prototype",$=b("_hidden"),W=b("toPrimitive"),q={}.propertyIsEnumerable,K=y("symbol-registry"),H=y("symbols"),G=y("op-symbols"),J=Object[V],X="function"==typeof U&&!!j.f,Y=c.QObject,Q=!Y||!Y[V]||!Y[V].findChild,Z=f&&v(function(){return 7!=A(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=F(J,e);r&&delete J[e],R(t,e,n),r&&t!==J&&R(J,e,r)}:R,tt=X&&"symbol"==typeof U.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof U},et=function(t,e,n){return t===J&&et(G,e,n),O(t),e=C(e,!0),O(n),l(H,e)?(n.enumerable?(l(t,$)&&t[$][e]&&(t[$][e]=!1),n=A(n,{enumerable:P(0,!1)})):(l(t,$)||R(t,$,P(1,{})),t[$][e]=!0),Z(t,e,n)):R(t,e,n)};X||(h((U=function(t){if(this instanceof U)throw TypeError("Symbol is not a constructor!");var e=g(0rt;)b(nt[rt++]);for(var it=D(b.store),ot=0;it.length>ot;)x(it[ot++]);p(p.S+p.F*!X,"Symbol",{for:function(t){return l(K,t+="")?K[t]:K[t]=U(t)},keyFor:function(t){if(!tt(t))throw TypeError(t+" is not a symbol!");for(var e in K)if(K[e]===t)return e},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),p(p.S+p.F*!X,"Object",{create:function(t,e){return void 0===e?A(t):i(A(t),e)},defineProperty:et,defineProperties:i,getOwnPropertyDescriptor:a,getOwnPropertyNames:s,getOwnPropertySymbols:u});var at=v(function(){j.f(1)});p(p.S+p.F*at,"Object",{getOwnPropertySymbols:function(t){return j.f(T(t))}}),z&&p(p.S+p.F*(!X||v(function(){var t=U();return"[null]"!=B([t])||"{}"!=B({a:t})||"{}"!=B(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;ia;)o.call(t,r=i[a++])&&e.push(r);return e}},function(t,e,n){var r=n(1);r(r.S,"Object",{create:n(45)})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(10),"Object",{defineProperty:n(11).f})},function(t,e,n){var r=n(1);r(r.S+r.F*!n(10),"Object",{defineProperties:n(127)})},function(t,e,n){var r=n(19),i=n(26).f;n(27)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){var r=n(13),i=n(47);n(27)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(13),i=n(43);n(27)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){n(27)("getOwnPropertyNames",function(){return n(128).f})},function(t,e,n){var r=n(5),i=n(36).onFreeze;n(27)("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(t,e,n){var r=n(5),i=n(36).onFreeze;n(27)("seal",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(t,e,n){var r=n(5),i=n(36).onFreeze;n(27)("preventExtensions",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(t,e,n){var r=n(5);n(27)("isFrozen",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(t,e,n){var r=n(5);n(27)("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(t,e,n){var r=n(5);n(27)("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},function(t,e,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(129)})},function(t,e,n){var r=n(1);r(r.S,"Object",{is:n(130)})},function(t,e,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(91).set})},function(t,e,n){"use strict";var r=n(67),i={};i[n(7)("toStringTag")]="z",i+""!="[object z]"&&n(14)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(1);r(r.P,"Function",{bind:n(131)})},function(t,e,n){var r=n(11).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(10)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(5),i=n(47),o=n(7)("hasInstance"),a=Function.prototype;o in a||n(11).f(a,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(1),i=n(133);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){var r=n(1),i=n(134);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){"use strict";function r(t){var e=l(t,!1);if("string"==typeof e&&2S;S++)o(y,w=x[S])&&!o(v,w)&&p(v,w,f(y,w));(v.prototype=m).constructor=v,n(14)(i,d,v)}},function(t,e,n){"use strict";function c(t,e){for(var n=-1,r=e;++n<6;)r+=t*a[n],a[n]=r%1e7,r=o(r/1e7)}function l(t){for(var e=6,n=0;0<=--e;)n+=a[e],a[e]=o(n/t),n=n%t*1e7}function f(){for(var t=6,e="";0<=--t;)if(""!==e||0===t||0!==a[t]){var n=String(a[t]);e=""===e?n:e+d.call("0",7-n.length)+n}return e}var r=n(1),p=n(25),h=n(135),d=n(94),i=1..toFixed,o=Math.floor,a=[0,0,0,0,0,0],v="Number.toFixed: incorrect invocation!",y=function(t,e,n){return 0===e?n:e%2==1?y(t,e-1,n*t):y(t*t,e/2,n)};r(r.P+r.F*(!!i&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(3)(function(){i.call({})})),"Number",{toFixed:function(t){var e,n,r,i,o=h(this,v),a=p(t),s="",u="0";if(a<0||20>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(1),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(1),i=n(96);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(1);r(r.S,"Math",{fround:n(215)})},function(t,e,n){var o=n(95),r=Math.pow,a=r(2,-52),s=r(2,-23),u=r(2,127)*(2-s),c=r(2,-126);t.exports=Math.fround||function(t){var e,n,r=Math.abs(t),i=o(t);return r>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(1);r(r.S,"Math",{log1p:n(137)})},function(t,e,n){var r=n(1);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(1);r(r.S,"Math",{sign:n(95)})},function(t,e,n){var r=n(1),i=n(96),o=Math.exp;r(r.S+r.F*n(3)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(1),i=n(96),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(1);r(r.S,"Math",{trunc:function(t){return(0>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(1),a=n(19),s=n(8);r(r.S,"String",{raw:function(t){for(var e=a(t.raw),n=s(e.length),r=arguments.length,i=[],o=0;o=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(1),i=n(97)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(1),s=n(8),u=n(99),c="endsWith",l=""[c];r(r.P+r.F*n(101)(c),"String",{endsWith:function(t,e){var n=u(this,t,c),r=1m;)v(y[m++]);(f.constructor=c).prototype=f,n(14)(r,"RegExp",c)}n(57)("RegExp")},function(t,e,n){"use strict";n(145);function r(t){n(14)(RegExp.prototype,s,t,!0)}var i=n(4),o=n(76),a=n(10),s="toString",u=/./[s];n(3)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?r(function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)}):u.name!=s&&r(function(){return u.call(this)})},function(t,e,n){"use strict";var f=n(4),p=n(8),h=n(108),d=n(77);n(78)("match",1,function(r,i,c,l){return[function(t){var e=r(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,e):new RegExp(t)[i](String(e))},function(t){var e=l(c,t,this);if(e.done)return e.value;var n=f(t),r=String(this);if(!n.global)return d(n,r);for(var i,o=n.unicode,a=[],s=n.lastIndex=0;null!==(i=d(n,r));){var u=String(i[0]);""===(a[s]=u)&&(n.lastIndex=h(r,p(n.lastIndex),o)),s++}return 0===s?null:a}]})},function(t,e,n){"use strict";var O=n(4),r=n(13),E=n(8),T=n(25),_=n(108),C=n(77),P=Math.max,A=Math.min,p=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;n(78)("replace",2,function(i,o,x,S){return[function(t,e){var n=i(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n,e):x.call(String(n),t,e)},function(t,e){var n=S(x,t,this,e);if(n.done)return n.value;var r=O(t),i=String(this),o="function"==typeof e;o||(e=String(e));var a=r.global;if(a){var s=r.unicode;r.lastIndex=0}for(var u=[];;){var c=C(r,i);if(null===c)break;if(u.push(c),!a)break;""===String(c[0])&&(r.lastIndex=_(i,E(r.lastIndex),s))}for(var l,f="",p=0,h=0;h>>0,l=new RegExp(t.source,s+"g");(r=p.call(l,n))&&!(u<(i=l[v])&&(a.push(n.slice(u,r.index)),1=c));)l[v]===r.index&&l[v]++;return u===n[d]?!o&&l.test("")||a.push(""):a.push(n.slice(u)),a[d]>c?a.slice(0,c):a}:"0"[a](void 0,0)[d]?function(t,e){return void 0===t&&0===e?[]:y.call(this,t,e)}:y,[function(t,e){var n=i(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n,e):g.call(String(n),t,e)},function(t,e){var n=m(g,t,this,e,g!==y);if(n.done)return n.value;var r=b(t),i=String(this),o=w(r,RegExp),a=r.unicode,s=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(T?"y":"g"),u=new o(T?r:"^(?:"+r.source+")",s),c=void 0===e?E:e>>>0;if(0==c)return[];if(0===i.length)return null===k(u,i)?[i]:[];for(var l=0,f=0,p=[];f=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),i(i.S,"Reflect",{enumerate:function(t){return new r(t)}})},function(t,e,n){var a=n(26),s=n(47),u=n(17),r=n(1),c=n(5),l=n(4);r(r.S,"Reflect",{get:function t(e,n){var r,i,o=arguments.length<3?e:arguments[2];return l(e)===o?e[n]:(r=a.f(e,n))?u(r,"value")?r.value:void 0!==r.get?r.get.call(o):void 0:c(i=s(e))?t(i,n,o):void 0}})},function(t,e,n){var r=n(26),i=n(1),o=n(4);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(1),i=n(47),o=n(4);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(1),i=n(4),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(1);r(r.S,"Reflect",{ownKeys:n(152)})},function(t,e,n){var r=n(1),i=n(4),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var u=n(11),c=n(26),l=n(47),f=n(17),r=n(1),p=n(40),h=n(4),d=n(5);r(r.S,"Reflect",{set:function t(e,n,r){var i,o,a=arguments.length<4?e:arguments[3],s=c.f(h(e),n);if(!s){if(d(o=l(e)))return t(o,n,r,a);s=p(0)}if(f(s,"value")){if(!1===s.writable||!d(a))return!1;if(i=c.f(a,n)){if(i.get||i.set||!1===i.writable)return!1;i.value=r,u.f(a,n,i)}else u.f(a,n,p(0,r));return!0}return void 0!==s.set&&(s.set.call(a,r),!0)}})},function(t,e,n){var r=n(1),i=n(91);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(313),t.exports=n(9).Array.includes},function(t,e,n){"use strict";var r=n(1),i=n(72)(!0);r(r.P,"Array",{includes:function(t,e){return i(this,t,1s;)void 0!==(n=i(r,e=o[s++]))&&f(a,e,n);return a}})},function(t,e,n){n(330),t.exports=n(9).Object.values},function(t,e,n){var r=n(1),i=n(154)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){n(332),t.exports=n(9).Object.entries},function(t,e,n){var r=n(1),i=n(154)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){"use strict";n(146),n(334),t.exports=n(9).Promise.finally},function(t,e,n){"use strict";var r=n(1),i=n(9),o=n(2),a=n(68),s=n(148);r(r.P+r.R,"Promise",{finally:function(e){var n=a(this,i.Promise||o.Promise),t="function"==typeof e;return this.then(t?function(t){return s(n,e()).then(function(){return t})}:e,t?function(t){return s(n,e()).then(function(){throw t})}:e)}})},function(t,e,n){n(336),n(337),n(338),t.exports=n(9)},function(t,e,n){function r(i){return function(t,e){var n=2