From d043c9856ef9338b971d1b48f75ed6cc3aa68546 Mon Sep 17 00:00:00 2001 From: nmccready Date: Tue, 27 Aug 2019 17:54:27 -0400 Subject: [PATCH] finalizing gulp tasks --- .../interfaces/_actions_.innerbaseactions.md | 4 +-- .../interfaces/_actions_.outerbaseactions.md | 4 +-- docs/api/interfaces/_index_.reactlib.md | 4 +-- docs/api/interfaces/_index_.store.md | 10 +++---- docs/api/interfaces/_index_.usestoreprops.md | 10 +++---- docs/api/modules/_actions_.md | 10 +++---- docs/api/modules/_index_.md | 28 +++++++++---------- docs/bundle.js | 2 +- gulpfile.ts | 20 ++++++------- package.json | 2 +- scripts/publishApiWebsite.sh | 14 ++++++++++ 11 files changed, 59 insertions(+), 49 deletions(-) create mode 100755 scripts/publishApiWebsite.sh diff --git a/docs/api/interfaces/_actions_.innerbaseactions.md b/docs/api/interfaces/_actions_.innerbaseactions.md index 7d1a5da..47eda00 100644 --- a/docs/api/interfaces/_actions_.innerbaseactions.md +++ b/docs/api/interfaces/_actions_.innerbaseactions.md @@ -25,7 +25,7 @@ • **setRef**: *function* -*Defined in [actions.ts:10](https://github.com/nmccready/use-global-hook/blob/6416474/src/actions.ts#L10)* +*Defined in [actions.ts:10](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/actions.ts#L10)* #### Type declaration: @@ -45,7 +45,7 @@ ___ • **setState**: *function* -*Defined in [actions.ts:9](https://github.com/nmccready/use-global-hook/blob/6416474/src/actions.ts#L9)* +*Defined in [actions.ts:9](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/actions.ts#L9)* #### Type declaration: diff --git a/docs/api/interfaces/_actions_.outerbaseactions.md b/docs/api/interfaces/_actions_.outerbaseactions.md index d617cf8..39774c1 100644 --- a/docs/api/interfaces/_actions_.outerbaseactions.md +++ b/docs/api/interfaces/_actions_.outerbaseactions.md @@ -25,7 +25,7 @@ • **setRef**: *function* -*Defined in [actions.ts:5](https://github.com/nmccready/use-global-hook/blob/6416474/src/actions.ts#L5)* +*Defined in [actions.ts:5](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/actions.ts#L5)* #### Type declaration: @@ -44,7 +44,7 @@ ___ • **setState**: *function* -*Defined in [actions.ts:4](https://github.com/nmccready/use-global-hook/blob/6416474/src/actions.ts#L4)* +*Defined in [actions.ts:4](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/actions.ts#L4)* #### Type declaration: diff --git a/docs/api/interfaces/_index_.reactlib.md b/docs/api/interfaces/_index_.reactlib.md index dcdd76c..d0ee5b8 100644 --- a/docs/api/interfaces/_index_.reactlib.md +++ b/docs/api/interfaces/_index_.reactlib.md @@ -21,7 +21,7 @@ • **useEffect**: *[UseEffect](../modules/_index_.md#useeffect)* -*Defined in [index.ts:7](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L7)* +*Defined in [index.ts:7](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L7)* ___ @@ -29,4 +29,4 @@ ___ • **useState**: *[UseState](../modules/_index_.md#usestate)* -*Defined in [index.ts:8](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L8)* \ No newline at end of file +*Defined in [index.ts:8](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L8)* \ No newline at end of file diff --git a/docs/api/interfaces/_index_.store.md b/docs/api/interfaces/_index_.store.md index 5e39db4..f1f3e48 100644 --- a/docs/api/interfaces/_index_.store.md +++ b/docs/api/interfaces/_index_.store.md @@ -30,7 +30,7 @@ • **actions**: *OuterA* -*Defined in [index.ts:47](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L47)* +*Defined in [index.ts:47](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L47)* ___ @@ -38,7 +38,7 @@ ___ • **listeners**: *Dispatch‹unknown›[]* -*Defined in [index.ts:49](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L49)* +*Defined in [index.ts:49](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L49)* ___ @@ -46,7 +46,7 @@ ___ • **setRef**: *[SetRefFn](../modules/_index_.md#setreffn)‹T›* -*Defined in [index.ts:46](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L46)* +*Defined in [index.ts:46](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L46)* ___ @@ -54,7 +54,7 @@ ___ • **setState**: *[SetStateFn](../modules/_index_.md#setstatefn)‹T›* -*Defined in [index.ts:45](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L45)* +*Defined in [index.ts:45](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L45)* ___ @@ -62,4 +62,4 @@ ___ • **state**: *T* -*Defined in [index.ts:48](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L48)* \ No newline at end of file +*Defined in [index.ts:48](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L48)* \ No newline at end of file diff --git a/docs/api/interfaces/_index_.usestoreprops.md b/docs/api/interfaces/_index_.usestoreprops.md index ef0e152..d12ca5a 100644 --- a/docs/api/interfaces/_index_.usestoreprops.md +++ b/docs/api/interfaces/_index_.usestoreprops.md @@ -34,7 +34,7 @@ • **React**: *[ReactLib](_index_.reactlib.md)* -*Defined in [index.ts:28](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L28)* +*Defined in [index.ts:28](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L28)* ___ @@ -42,7 +42,7 @@ ___ • **actions**? : *InnerA | [InnerBaseActions](_actions_.innerbaseactions.md)‹T›* -*Defined in [index.ts:30](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L30)* +*Defined in [index.ts:30](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L30)* ___ @@ -50,7 +50,7 @@ ___ • **hookWork**? : *function* -*Defined in [index.ts:32](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L32)* +*Defined in [index.ts:32](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L32)* #### Type declaration: @@ -62,7 +62,7 @@ ___ • **initialState**? : *T* -*Defined in [index.ts:29](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L29)* +*Defined in [index.ts:29](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L29)* ___ @@ -70,4 +70,4 @@ ___ • **initializer**? : *[Initializer](../modules/_index_.md#initializer)‹T, OuterA›* -*Defined in [index.ts:31](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L31)* \ No newline at end of file +*Defined in [index.ts:31](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L31)* \ No newline at end of file diff --git a/docs/api/modules/_actions_.md b/docs/api/modules/_actions_.md index c69be8c..184f014 100644 --- a/docs/api/modules/_actions_.md +++ b/docs/api/modules/_actions_.md @@ -26,7 +26,7 @@ ▸ **setRef**<**T**>(`store`: [Store](../interfaces/_index_.store.md)‹T, [OuterBaseActions](../interfaces/_actions_.outerbaseactions.md)‹T››, `newState`: T, `doDigest?`: boolean): *void* -*Defined in [actions.ts:21](https://github.com/nmccready/use-global-hook/blob/6416474/src/actions.ts#L21)* +*Defined in [actions.ts:21](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/actions.ts#L21)* **Type parameters:** @@ -48,7 +48,7 @@ ___ ▸ **setState**<**T**>(`store`: [Store](../interfaces/_index_.store.md)‹T, [OuterBaseActions](../interfaces/_actions_.outerbaseactions.md)‹T››, `newState`: T, `doDigest?`: boolean): *void* -*Defined in [actions.ts:13](https://github.com/nmccready/use-global-hook/blob/6416474/src/actions.ts#L13)* +*Defined in [actions.ts:13](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/actions.ts#L13)* **Type parameters:** @@ -70,16 +70,16 @@ Name | Type | ### ▪ **actions**: *object* -*Defined in [actions.ts:29](https://github.com/nmccready/use-global-hook/blob/6416474/src/actions.ts#L29)* +*Defined in [actions.ts:29](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/actions.ts#L29)* ### setRef • **setRef**: *[setRef]()* -*Defined in [actions.ts:29](https://github.com/nmccready/use-global-hook/blob/6416474/src/actions.ts#L29)* +*Defined in [actions.ts:29](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/actions.ts#L29)* ### setState • **setState**: *[setState]()* -*Defined in [actions.ts:29](https://github.com/nmccready/use-global-hook/blob/6416474/src/actions.ts#L29)* \ No newline at end of file +*Defined in [actions.ts:29](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/actions.ts#L29)* \ No newline at end of file diff --git a/docs/api/modules/_index_.md b/docs/api/modules/_index_.md index c62c313..b2f767b 100644 --- a/docs/api/modules/_index_.md +++ b/docs/api/modules/_index_.md @@ -38,7 +38,7 @@ Ƭ **AssociateActionsFn**: *function* -*Defined in [index.ts:18](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L18)* +*Defined in [index.ts:18](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L18)* #### Type declaration: @@ -63,7 +63,7 @@ ___ Ƭ **HookWork**: *function* -*Defined in [index.ts:74](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L74)* +*Defined in [index.ts:74](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L74)* #### Type declaration: @@ -75,7 +75,7 @@ ___ Ƭ **Initializer**: *function* -*Defined in [index.ts:20](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L20)* +*Defined in [index.ts:20](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L20)* #### Type declaration: @@ -93,7 +93,7 @@ ___ Ƭ **SetRefFn**: *function* -*Defined in [index.ts:14](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L14)* +*Defined in [index.ts:14](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L14)* #### Type declaration: @@ -112,7 +112,7 @@ ___ Ƭ **SetStateFn**: *function* -*Defined in [index.ts:12](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L12)* +*Defined in [index.ts:12](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L12)* #### Type declaration: @@ -132,7 +132,7 @@ ___ Ƭ **UseCustomFn**: *function* -*Defined in [index.ts:16](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L16)* +*Defined in [index.ts:16](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L16)* #### Type declaration: @@ -150,7 +150,7 @@ ___ Ƭ **UseEffect**: *function* -*Defined in [index.ts:4](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L4)* +*Defined in [index.ts:4](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L4)* #### Type declaration: @@ -169,7 +169,7 @@ ___ Ƭ **UseState**: *function* -*Defined in [index.ts:5](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L5)* +*Defined in [index.ts:5](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L5)* #### Type declaration: @@ -191,7 +191,7 @@ ___ Ƭ **UseStoreFn**: *function* -*Defined in [index.ts:35](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L35)* +*Defined in [index.ts:35](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L35)* #### Type declaration: @@ -221,7 +221,7 @@ Name | Type | ▸ **associateActions**<**T**, **InnerA**, **OuterA**>(`store`: [Store](../interfaces/_index_.store.md)‹T, OuterA›, `actions`: InnerA): *OuterA* -*Defined in [index.ts:110](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L110)* +*Defined in [index.ts:110](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L110)* **Type parameters:** @@ -246,7 +246,7 @@ ___ ▸ **setRef**<**T**, **A**>(`this`: [Store](../interfaces/_index_.store.md)‹T, A›, `newState`: T, `doDigest?`: boolean): *void* -*Defined in [index.ts:70](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L70)* +*Defined in [index.ts:70](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L70)* **Type parameters:** @@ -270,7 +270,7 @@ ___ ▸ **setState**<**T**, **A**>(`this`: [Store](../interfaces/_index_.store.md)‹T, A›, `newState`: T, `isRef?`: boolean, `doDigest`: boolean): *void* -*Defined in [index.ts:52](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L52)* +*Defined in [index.ts:52](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L52)* **Type parameters:** @@ -295,7 +295,7 @@ ___ ▸ **useCustom**<**T**, **A**, **WorkR**>(`this`: [Store](../interfaces/_index_.store.md)‹T, A›, `React`: [ReactLib](../interfaces/_index_.reactlib.md), `hookWork?`: [HookWork](_index_.md#hookwork)‹WorkR›): *[T, A]* -*Defined in [index.ts:76](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L76)* +*Defined in [index.ts:76](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L76)* **Type parameters:** @@ -321,7 +321,7 @@ ___ ▸ **useStore**<**T**, **InnerA**, **OuterA**, **WorkR**>(`__namedParameters`: object): *function* -*Defined in [index.ts:129](https://github.com/nmccready/use-global-hook/blob/6416474/src/index.ts#L129)* +*Defined in [index.ts:129](https://github.com/nmccready/use-global-hook/blob/5f1dd17/src/index.ts#L129)* **Type parameters:** diff --git a/docs/bundle.js b/docs/bundle.js index 6f1193e..615ac2b 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -9,7 +9,7 @@ object-assign (c) Sindre Sorhus @license MIT -*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var a={},n=0;n<10;n++)a["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(a).map(function(e){return a[e]}).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var n,o,u=i(e),s=1;s=0||Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}var u=a.Scope=r.default.createContext(null),s=function(e){var a=e.scope,n=o(e,["scope"]);return r.default.createElement(u.Provider,t({},n,{value:a}))};a.ScopeProvider=s,s.propTypes={scope:d.default.object.isRequired};var c=function(e){var a=e.defaultScope,n=void 0===a?{}:a,t=o(e,["defaultScope"]);return r.default.createElement(u.Consumer,null,function(e){return e?t.children(e):r.default.createElement(u.Provider,{value:n},r.default.createElement(u.Consumer,t))})};a.ScopeConsumer=c,c.propTypes={defaultScope:d.default.object};a.withScope=function(e){return function(a){var n=a.defaultScope,d=o(a,["defaultScope"]);return r.default.createElement(c,{defaultScope:n},function(a){return r.default.createElement(e,t({},d,{scope:a}))})}}},function(e,a){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,a){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,a,n){"use strict";var t=n(788),r=n(789),d=n(61),i=n(790),o=n(791),u=n(792);e.exports=function(e,a){var n,d,i={};a||(a={});for(d in l)n=a[d],i[d]=null==n?l[d]:n;(i.position.indent||i.position.start)&&(i.indent=i.position.indent||[],i.position=i.position.start);return function(e,a){var n,d,i,l,N,z,U,H,V,W,G,$,q,K,X,Y,Q,J,Z,ee=a.additional,ae=a.nonTerminated,ne=a.text,te=a.reference,re=a.warning,de=a.textContext,ie=a.referenceContext,oe=a.warningContext,ue=a.position,se=a.indent||[],ce=e.length,ge=0,le=-1,pe=ue.column||1,fe=ue.line||1,Re="",he=[];"string"==typeof ee&&(ee=ee.charCodeAt(0));Y=ye(),H=re?function(e,a){var n=ye();n.column+=a,n.offset+=a,re.call(oe,I[e],n,e)}:g,ge--,ce++;for(;++ge=55296&&me<=57343||me>1114111?(H(M,J),z=c(A)):z in r?(H(T,J),z=r[z]):(W="",L(z)&&H(T,J),z>65535&&(W+=c((z-=65536)>>>10|55296),z=56320|1023&z),z=W+c(z))):K!==_&&H(O,J)),z?(ve(),Y=ye(),ge=Z-1,pe+=Z-q+1,he.push(z),(Q=ye()).offset++,te&&te.call(ie,z,{start:Y,end:Q},e.slice(q-1,Z)),Y=Q):(l=e.slice(q-1,Z),Re+=l,pe+=l.length,ge=Z-1)}else 10===N&&(fe++,le++,pe=0),N==N?(Re+=c(N),pe++):ve();var me;return he.join("");function ye(){return{line:fe,column:pe,offset:ge+(ue.offset||0)}}function ve(){Re&&(he.push(Re),ne&&ne.call(de,Re,{start:Y,end:ye()}),Re="")}}(e,i)};var s={}.hasOwnProperty,c=String.fromCharCode,g=Function.prototype,l={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p=9,f=10,R=12,h=32,m=38,y=59,v=60,b=61,x=35,E=88,C=120,A=65533,_="named",w="hexadecimal",S="decimal",k={};k[w]=16,k[S]=10;var D={};D[_]=o,D[S]=d,D[w]=i;var F=1,j=2,P=3,O=4,B=5,T=6,M=7,I={};function L(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}I[F]="Named character references must be terminated by a semicolon",I[j]="Numeric character references must be terminated by a semicolon",I[P]="Named character references cannot be empty",I[O]="Numeric character references cannot be empty",I[B]="Named character references must be known",I[T]="Numeric character references cannot be disallowed",I[M]="Numeric character references cannot be outside the permissible Unicode range"},function(e,a,n){"use strict";e.exports=function(e){var a=String(e),n=a.length;for(;a.charAt(--n)===t;);return a.slice(0,n+1)};var t="\n"},function(e,a,n){"use strict";e.exports=function(e,a,n,t){var r,d,i,o,u,s,c=["pedantic","commonmark"],g=c.length,l=e.length,p=-1;for(;++p])/g,y=/([[}=:>])\s+/g,v=/(\{[^{]+?);(?=\})/g,b=/\s{2,}/g,x=/([^\(])(:+) */g,E=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,A=/([\s\S]*?);/g,_=/-self|flex-/g,w=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,D="-webkit-",F="-moz-",j="-ms-",P=59,O=125,B=123,T=40,M=41,I=91,L=93,N=10,z=13,U=9,H=64,V=32,W=38,G=45,$=95,q=42,K=44,X=58,Y=39,Q=34,J=47,Z=62,ee=43,ae=126,ne=0,te=12,re=11,de=107,ie=109,oe=115,ue=112,se=111,ce=105,ge=99,le=100,pe=112,fe=1,Re=1,he=0,me=1,ye=1,ve=1,be=0,xe=0,Ee=0,Ce=[],Ae=[],_e=0,we=null,Se=-2,ke=-1,De=0,Fe=1,je=2,Pe=3,Oe=0,Be=1,Te="",Me="",Ie="";function Le(e,a,r,d,i){for(var o,u,c=0,g=0,l=0,p=0,m=0,y=0,v=0,b=0,E=0,A=0,_=0,w=0,S=0,k=0,$=0,be=0,Ae=0,we=0,Se=0,ke=r.length,ze=ke-1,$e="",qe="",Ke="",Xe="",Ye="",Qe="";$0&&(qe=qe.replace(t,"")),qe.trim().length>0)){switch(v){case V:case U:case P:case z:case N:break;default:qe+=r.charAt($)}v=P}if(1===Ae)switch(v){case B:case O:case P:case Q:case Y:case T:case M:case K:Ae=0;case U:case z:case N:case V:break;default:for(Ae=0,Se=$,m=v,$--,v=P;Se0&&(++$,v=m);case B:Se=ke}}switch(v){case B:for(m=(qe=qe.trim()).charCodeAt(0),_=1,Se=++$;$0&&(qe=qe.replace(t,"")),y=qe.charCodeAt(1)){case le:case ie:case oe:case G:o=a;break;default:o=Ce}if(Se=(Ke=Le(a,o,Ke,y,i+1)).length,Ee>0&&0===Se&&(Se=qe.length),_e>0&&(o=Ne(Ce,qe,we),u=We(Pe,Ke,o,a,Re,fe,Se,y,i,d),qe=o.join(""),void 0!==u&&0===(Se=(Ke=u.trim()).length)&&(y=0,Ke="")),Se>0)switch(y){case oe:qe=qe.replace(C,Ve);case le:case ie:case G:Ke=qe+"{"+Ke+"}";break;case de:Ke=(qe=qe.replace(f,"$1 $2"+(Be>0?Te:"")))+"{"+Ke+"}",Ke=1===ye||2===ye&&He("@"+Ke,3)?"@"+D+Ke+"@"+Ke:"@"+Ke;break;default:Ke=qe+Ke,d===pe&&(Xe+=Ke,Ke="")}else Ke="";break;default:Ke=Le(a,Ne(a,qe,we),Ke,d,i+1)}Ye+=Ke,w=0,Ae=0,k=0,be=0,we=0,S=0,qe="",Ke="",v=r.charCodeAt(++$);break;case O:case P:if((Se=(qe=(be>0?qe.replace(t,""):qe).trim()).length)>1)switch(0===k&&((m=qe.charCodeAt(0))===G||m>96&&m<123)&&(Se=(qe=qe.replace(" ",":")).length),_e>0&&void 0!==(u=We(Fe,qe,a,e,Re,fe,Xe.length,d,i,d))&&0===(Se=(qe=u.trim()).length)&&(qe="\0\0"),m=qe.charCodeAt(0),y=qe.charCodeAt(1),m){case ne:break;case H:if(y===ce||y===ge){Qe+=qe+r.charAt($);break}default:if(qe.charCodeAt(Se-1)===X)break;Xe+=Ue(qe,m,y,qe.charCodeAt(2))}w=0,Ae=0,k=0,be=0,we=0,qe="",v=r.charCodeAt(++$)}}switch(v){case z:case N:if(g+p+l+c+xe===0)switch(A){case M:case Y:case Q:case H:case ae:case Z:case q:case ee:case J:case G:case X:case K:case P:case B:case O:break;default:k>0&&(Ae=1)}g===J?g=0:me+w===0&&d!==de&&qe.length>0&&(be=1,qe+="\0"),_e*Oe>0&&We(De,qe,a,e,Re,fe,Xe.length,d,i,d),fe=1,Re++;break;case P:case O:if(g+p+l+c===0){fe++;break}default:switch(fe++,$e=r.charAt($),v){case U:case V:if(p+c+g===0)switch(b){case K:case X:case U:case V:$e="";break;default:v!==V&&($e=" ")}break;case ne:$e="\\0";break;case te:$e="\\f";break;case re:$e="\\v";break;case W:p+g+c===0&&me>0&&(we=1,be=1,$e="\f"+$e);break;case 108:if(p+g+c+he===0&&k>0)switch($-k){case 2:b===ue&&r.charCodeAt($-3)===X&&(he=b);case 8:E===se&&(he=E)}break;case X:p+g+c===0&&(k=$);break;case K:g+l+p+c===0&&(be=1,$e+="\r");break;case Q:case Y:0===g&&(p=p===v?0:0===p?v:p);break;case I:p+g+l===0&&c++;break;case L:p+g+l===0&&c--;break;case M:p+g+c===0&&l--;break;case T:if(p+g+c===0){if(0===w)switch(2*b+3*E){case 533:break;default:_=0,w=1}l++}break;case H:g+l+p+c+k+S===0&&(S=1);break;case q:case J:if(p+c+l>0)break;switch(g){case 0:switch(2*v+3*r.charCodeAt($+1)){case 235:g=J;break;case 220:Se=$,g=q}break;case q:v===J&&b===q&&Se+2!==$&&(33===r.charCodeAt(Se+2)&&(Xe+=r.substring(Se,$+1)),$e="",g=0)}}if(0===g){if(me+p+c+S===0&&d!==de&&v!==P)switch(v){case K:case ae:case Z:case ee:case M:case T:if(0===w){switch(b){case U:case V:case N:case z:$e+="\0";break;default:$e="\0"+$e+(v===K?"":"\0")}be=1}else switch(v){case T:k+7===$&&108===b&&(k=0),w=++_;break;case M:0==(w=--_)&&(be=1,$e+="\0")}break;case U:case V:switch(b){case ne:case B:case O:case P:case K:case te:case U:case V:case N:case z:break;default:0===w&&(be=1,$e+="\0")}}qe+=$e,v!==V&&v!==U&&(A=v)}}E=b,b=v,$++}if(Se=Xe.length,Ee>0&&0===Se&&0===Ye.length&&0===a[0].length==0&&(d!==ie||1===a.length&&(me>0?Me:Ie)===a[0])&&(Se=a.join(",").length+2),Se>0){if(o=0===me&&d!==de?function(e){for(var a,n,r=0,d=e.length,i=Array(d);r1)){if(l=u.charCodeAt(u.length-1),p=n.charCodeAt(0),a="",0!==c)switch(l){case q:case ae:case Z:case ee:case V:case T:break;default:a=" "}switch(p){case W:n=a+Me;case ae:case Z:case ee:case V:case M:case T:break;case I:n=a+n+Me;break;case X:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(ve>0){n=a+n.substring(8,g-1);break}default:(c<1||o[c-1].length<1)&&(n=a+Me+n)}break;case K:a="";default:n=g>1&&n.indexOf(":")>0?a+n.replace(x,"$1"+Me+"$2"):a+n+Me}u+=n}i[r]=u.replace(t,"").trim()}return i}(a):a,_e>0&&void 0!==(u=We(je,Xe,o,e,Re,fe,Se,d,i,d))&&0===(Xe=u).length)return Qe+Xe+Ye;if(Xe=o.join(",")+"{"+Xe+"}",ye*he!=0){switch(2!==ye||He(Xe,2)||(he=0),he){case se:Xe=Xe.replace(h,":"+F+"$1")+Xe;break;case ue:Xe=Xe.replace(R,"::"+D+"input-$1")+Xe.replace(R,"::"+F+"$1")+Xe.replace(R,":"+j+"input-$1")+Xe}he=0}}return Qe+Xe+Ye}function Ne(e,a,n){var t=a.trim().split(c),r=t,d=t.length,i=e.length;switch(i){case 0:case 1:for(var o=0,u=0===i?"":e[0]+" ";o0&&me>0)return r.replace(l,"$1").replace(g,"$1"+Ie);break;default:return e.trim()+r.replace(g,"$1"+e.trim())}default:if(n*me>0&&r.indexOf("\f")>0)return r.replace(g,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+r}function Ue(e,a,n,t){var s,c=0,g=e+";",l=2*a+3*n+4*t;if(944===l)return function(e){var a=e.length,n=e.indexOf(":",9)+1,t=e.substring(0,n).trim(),r=e.substring(n,a-1).trim();switch(e.charCodeAt(9)*Be){case 0:break;case G:if(110!==e.charCodeAt(10))break;default:var d=r.split((r="",o)),i=0;for(n=0,a=d.length;iH&&g<90||g>96&&g<123||g===$||g===G&&s.charCodeAt(1)!==G))switch(isNaN(parseFloat(s))+(-1!==s.indexOf("("))){case 1:switch(s){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:s+=Te}}c[n++]=s}r+=(0===i?"":",")+c.join(" ")}}return r=t+r+";",1===ye||2===ye&&He(r,1)?D+r+r:r}(g);if(0===ye||2===ye&&!He(g,1))return g;switch(l){case 1015:return 97===g.charCodeAt(10)?D+g+g:g;case 951:return 116===g.charCodeAt(3)?D+g+g:g;case 963:return 110===g.charCodeAt(5)?D+g+g:g;case 1009:if(100!==g.charCodeAt(4))break;case 969:case 942:return D+g+g;case 978:return D+g+F+g+g;case 1019:case 983:return D+g+F+g+j+g+g;case 883:return g.charCodeAt(8)===G?D+g+g:g.indexOf("image-set(",11)>0?g.replace(k,"$1"+D+"$2")+g:g;case 932:if(g.charCodeAt(4)===G)switch(g.charCodeAt(5)){case 103:return D+"box-"+g.replace("-grow","")+D+g+j+g.replace("grow","positive")+g;case 115:return D+g+j+g.replace("shrink","negative")+g;case 98:return D+g+j+g.replace("basis","preferred-size")+g}return D+g+j+g+g;case 964:return D+g+j+"flex-"+g+g;case 1023:if(99!==g.charCodeAt(8))break;return s=g.substring(g.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),D+"box-pack"+s+D+g+j+"flex-pack"+s+g;case 1005:return d.test(g)?g.replace(r,":"+D)+g.replace(r,":"+F)+g:g;case 1e3:switch(c=(s=g.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(c)){case 226:s=g.replace(E,"tb");break;case 232:s=g.replace(E,"tb-rl");break;case 220:s=g.replace(E,"lr");break;default:return g}return D+g+j+s+g;case 1017:if(-1===g.indexOf("sticky",9))return g;case 975:switch(c=(g=e).length-10,l=(s=(33===g.charCodeAt(c)?g.substring(0,c):g).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(s.charCodeAt(8)<111)break;case 115:g=g.replace(s,D+s)+";"+g;break;case 207:case 102:g=g.replace(s,D+(l>102?"inline-":"")+"box")+";"+g.replace(s,D+s)+";"+g.replace(s,j+s+"box")+";"+g}return g+";";case 938:if(g.charCodeAt(5)===G)switch(g.charCodeAt(6)){case 105:return s=g.replace("-items",""),D+g+D+"box-"+s+j+"flex-"+s+g;case 115:return D+g+j+"flex-item-"+g.replace(_,"")+g;default:return D+g+j+"flex-line-pack"+g.replace("align-content","").replace(_,"")+g}break;case 973:case 989:if(g.charCodeAt(3)!==G||122===g.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Ue(e.replace("stretch","fill-available"),a,n,t).replace(":fill-available",":stretch"):g.replace(s,D+s)+g.replace(s,F+s.replace("fill-",""))+g;break;case 962:if(g=D+g+(102===g.charCodeAt(5)?j+g:"")+g,n+t===211&&105===g.charCodeAt(13)&&g.indexOf("transform",10)>0)return g.substring(0,g.indexOf(";",27)+1).replace(i,"$1"+D+"$2")+g}return g}function He(e,a){var n=e.indexOf(1===a?":":"{"),t=e.substring(0,3!==a?n:10),r=e.substring(n+1,e.length-1);return we(2!==a?t:t.replace(w,"$1"),r,a)}function Ve(e,a){var n=Ue(a,a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2));return n!==a+";"?n.replace(A," or ($1)").substring(4):"("+a+")"}function We(e,a,n,t,r,d,i,o,u,s){for(var c,g=0,l=a;g<_e;++g)switch(c=Ae[g].call(qe,e,l,n,t,r,d,i,o,u,s)){case void 0:case!1:case!0:case null:break;default:l=c}if(l!==a)return l}function Ge(e,a,n,t){for(var r=a+1;r0&&(Te=r.replace(p,d===I?"":"-")),d=1,1===me?Ie=r:Me=r;var i,o=[Ie];_e>0&&void 0!==(i=We(ke,n,o,o,Re,fe,0,0,0,0))&&"string"==typeof i&&(n=i);var u=Le(Ce,o,n,0,0);return _e>0&&void 0!==(i=We(Se,u,o,o,Re,fe,u.length,0,0,0))&&"string"!=typeof(u=i)&&(d=0),Te="",Ie="",Me="",he=0,Re=1,fe=1,be*d==0?u:u.replace(t,"").replace(m,"").replace(y,"$1").replace(v,"$1").replace(b," ")}return qe.use=function e(a){switch(a){case void 0:case null:_e=Ae.length=0;break;default:if("function"==typeof a)Ae[_e++]=a;else if("object"==typeof a)for(var n=0,t=a.length;ne.length)break e;if(!(v instanceof r)){c.lastIndex=0;var b=1;if(!(w=c.exec(v))&&p&&m!=d.length-1){if(c.lastIndex=y,!(w=c.exec(e)))break;for(var x=w.index+(l?w[1].length:0),E=w.index+w[0].length,C=m,A=y,_=d.length;C<_&&A=(A+=d[C].length)&&(++m,y=A);if(d[m]instanceof r||d[C-1].greedy)continue;b=C-m,v=e.slice(y,A),w.index-=y}if(w){l&&(f=w[1].length);E=(x=w.index+f)+(w=w[0].slice(f)).length;var w,S=v.slice(0,x),k=v.slice(E),D=[m,b];S&&D.push(S);var F=new r(o,g?t.tokenize(w,g):w,R,w,p);D.push(F),k&&D.push(k),Array.prototype.splice.apply(d,D)}}}}}return d},hooks:{all:{},add:function(e,a){var n=t.hooks.all;n[e]=n[e]||[],n[e].push(a)},run:function(e,a){var n=t.hooks.all[e];if(n&&n.length)for(var r,d=0;r=n[d++];)r(a)}}},r=t.Token=function(e,a,n,t,r){this.type=e,this.content=a,this.alias=n,this.length=0|(t||"").length,this.greedy=!!r};if(r.stringify=function(e,a,n){if("string"==typeof e)return e;if("Array"===t.util.type(e))return e.map(function(n){return r.stringify(n,a,e)}).join("");var d={type:e.type,content:r.stringify(e.content,a,n),tag:"span",classes:["token",e.type],attributes:{},language:a,parent:n};if("comment"==d.type&&(d.attributes.spellcheck="true"),e.alias){var i="Array"===t.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(d.classes,i)}t.hooks.run("wrap",d);var o=Object.keys(d.attributes).map(function(e){return e+'="'+(d.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+d.tag+' class="'+d.classes.join(" ")+'"'+(o?" "+o:"")+">"+d.content+""},!n.document)return n.addEventListener?(n.addEventListener("message",function(e){var a=JSON.parse(e.data),r=a.language,d=a.code,i=a.immediateClose;n.postMessage(t.highlight(d,t.languages[r],r)),i&&n.close()},!1),n.Prism):n.Prism;var d=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return d&&(t.filename=d.src,document.addEventListener&&!d.hasAttribute("data-manual")&&("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(t.highlightAll):window.setTimeout(t.highlightAll,16):document.addEventListener("DOMContentLoaded",t.highlightAll))),n.Prism}();e.exports&&(e.exports=t),void 0!==a&&(a.Prism=t)}).call(this,n(34))},function(e,a,n){var t=n(24),r=n(37),d=n(69)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),t(e,d)?e[d]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,a,n){e.exports=!n(18)&&!n(31)(function(){return 7!=Object.defineProperty(n(71)("div"),"a",{get:function(){return 7}}).a})},function(e,a,n){e.exports={default:n(192),__esModule:!0}},function(e,a,n){"use strict";a.__esModule=!0;var t=i(n(194)),r=i(n(204)),d="function"==typeof r.default&&"symbol"==typeof t.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function i(e){return e&&e.__esModule?e:{default:e}}a.default="function"==typeof r.default&&"symbol"===d(t.default)?function(e){return void 0===e?"undefined":d(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":d(e)}},function(e,a,n){"use strict";var t=n(38),r=n(15),d=n(106),i=n(25),o=n(43),u=n(197),s=n(52),c=n(101),g=n(9)("iterator"),l=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,a,n,f,R,h,m){u(n,a,f);var y,v,b,x=function(e){if(!l&&e in _)return _[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=a+" Iterator",C="values"==R,A=!1,_=e.prototype,w=_[g]||_["@@iterator"]||R&&_[R],S=w||x(R),k=R?C?x("entries"):S:void 0,D="Array"==a&&_.entries||w;if(D&&(b=c(D.call(new e)))!==Object.prototype&&b.next&&(s(b,E,!0),t||"function"==typeof b[g]||i(b,g,p)),C&&w&&"values"!==w.name&&(A=!0,S=function(){return w.call(this)}),t&&!m||!l&&!A&&_[g]||i(_,g,S),o[a]=S,o[E]=p,R)if(y={values:C?S:x("values"),keys:h?S:x("keys"),entries:k},m)for(v in y)v in _||d(_,v,y[v]);else r(r.P+r.F*(l||A),a,y);return y}},function(e,a,n){e.exports=n(25)},function(e,a,n){var t=n(24),r=n(32),d=n(199)(!1),i=n(69)("IE_PROTO");e.exports=function(e,a){var n,o=r(e),u=0,s=[];for(n in o)n!=i&&t(o,n)&&s.push(n);for(;a.length>u;)t(o,n=a[u++])&&(~d(s,n)||s.push(n));return s}},function(e,a,n){var t=n(44);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==t(e)?e.split(""):Object(e)}},function(e,a,n){var t=n(7).document;e.exports=t&&t.documentElement},function(e,a,n){n(201);for(var t=n(7),r=n(25),d=n(43),i=n(9)("toStringTag"),o="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;un;)a.push(arguments[n++]);return m[++h]=function(){o("function"==typeof e?e:Function(e),a)},t(h),h},p=function(e){delete m[e]},"process"==n(44)(g)?t=function(e){g.nextTick(i(y,e,1))}:R&&R.now?t=function(e){R.now(i(y,e,1))}:f?(d=(r=new f).port2,r.port1.onmessage=v,t=i(d.postMessage,d,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(t=function(e){c.postMessage(e+"","*")},c.addEventListener("message",v,!1)):t="onreadystatechange"in s("script")?function(e){u.appendChild(s("script")).onreadystatechange=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(i(y,e,1),0)}),e.exports={set:l,clear:p}},function(e,a){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,a,n){var t=n(17),r=n(22),d=n(81);e.exports=function(e,a){if(t(e),r(a)&&a.constructor===e)return a;var n=d.f(e);return(0,n.resolve)(a),n.promise}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Root=void 0;var t,r=n(3),d=(t=r)&&t.__esModule?t:{default:t};var i=a.Root=(0,d.default)({fontFamily:"sans"},"fontFamily",{"& *":{boxSizing:"border-box"}},"space","color");i.displayName="Root",a.default=i},function(e,a,n){"use strict";a.__esModule=!0,a.buttonStyle=a.colorStyle=a.textStyle=a.left=a.bottom=a.right=a.top=a.zIndex=a.position=a.backgroundRepeat=a.backgroundPosition=a.backgroundSize=a.backgroundImage=a.background=a.overflow=a.opacity=a.boxShadow=a.borderRadius=a.borderColor=a.borders=a.borderLeft=a.borderBottom=a.borderRight=a.borderTop=a.border=a.gridArea=a.gridTemplateAreas=a.gridTemplateRows=a.gridTemplateColumns=a.gridAutoRows=a.gridAutoColumns=a.gridAutoFlow=a.gridRow=a.gridColumn=a.gridRowGap=a.gridColumnGap=a.gridGap=a.order=a.alignSelf=a.justifySelf=a.flex=a.flexDirection=a.flexBasis=a.flexWrap=a.justifyContent=a.justifyItems=a.alignContent=a.alignItems=a.verticalAlign=a.ratio=a.ratioPadding=a.size=a.sizeHeight=a.sizeWidth=a.minHeight=a.maxHeight=a.height=a.minWidth=a.maxWidth=a.display=a.letterSpacing=a.fontStyle=a.fontWeight=a.lineHeight=a.textAlign=a.fontFamily=a.color=a.bgColor=a.textColor=a.fontSize=a.width=a.space=void 0;var t=Object.assign||function(e){for(var a=1;a1?(0,d.px)(e):100*e+"%"},s=(a.width=(0,d.style)({prop:"width",transformValue:u}),a.fontSize=(0,d.style)({prop:"fontSize",key:"fontSizes",transformValue:d.px,scale:[12,14,16,20,24,32,48,64,72]}),a.textColor=(0,d.style)({prop:"color",key:"colors"})),c=a.bgColor=(0,d.style)({prop:"bg",cssProperty:"backgroundColor",key:"colors"}),g=(a.color=(0,d.compose)(s,c),a.fontFamily=(0,d.style)({prop:"fontFamily",key:"fonts"}),a.textAlign=(0,d.style)({prop:"textAlign"}),a.lineHeight=(0,d.style)({prop:"lineHeight",key:"lineHeights"}),a.fontWeight=(0,d.style)({prop:"fontWeight",key:"fontWeights"}),a.fontStyle=(0,d.style)({prop:"fontStyle"}),a.letterSpacing=(0,d.style)({prop:"letterSpacing",key:"letterSpacings",transformValue:d.px}),a.display=(0,d.style)({prop:"display"}),a.maxWidth=(0,d.style)({prop:"maxWidth",key:"maxWidths",transformValue:d.px}),a.minWidth=(0,d.style)({prop:"minWidth",key:"minWidths",transformValue:d.px}),a.height=(0,d.style)({prop:"height",key:"heights",transformValue:d.px}),a.maxHeight=(0,d.style)({prop:"maxHeight",key:"maxHeights",transformValue:d.px}),a.minHeight=(0,d.style)({prop:"minHeight",key:"minHeights",transformValue:d.px}),a.sizeWidth=(0,d.style)({prop:"size",cssProperty:"width",transformValue:d.px})),l=a.sizeHeight=(0,d.style)({prop:"size",cssProperty:"height",transformValue:d.px}),p=(a.size=(0,d.compose)(l,g),a.ratioPadding=(0,d.style)({prop:"ratio",cssProperty:"paddingBottom",transformValue:function(e){return 100*e+"%"}}));(a.ratio=function(e){return e.ratio?t({height:0},p(e)):null}).propTypes=t({},p.propTypes);a.verticalAlign=(0,d.style)({prop:"verticalAlign"}),a.alignItems=(0,d.style)({prop:"alignItems"}),a.alignContent=(0,d.style)({prop:"alignContent"}),a.justifyItems=(0,d.style)({prop:"justifyItems"}),a.justifyContent=(0,d.style)({prop:"justifyContent"}),a.flexWrap=(0,d.style)({prop:"flexWrap"}),a.flexBasis=(0,d.style)({prop:"flexBasis",transformValue:u}),a.flexDirection=(0,d.style)({prop:"flexDirection"}),a.flex=(0,d.style)({prop:"flex"}),a.justifySelf=(0,d.style)({prop:"justifySelf"}),a.alignSelf=(0,d.style)({prop:"alignSelf"}),a.order=(0,d.style)({prop:"order"}),a.gridGap=(0,d.style)({prop:"gridGap",transformValue:d.px,key:"space"}),a.gridColumnGap=(0,d.style)({prop:"gridColumnGap",transformValue:d.px,key:"space"}),a.gridRowGap=(0,d.style)({prop:"gridRowGap",transformValue:d.px,key:"space"}),a.gridColumn=(0,d.style)({prop:"gridColumn"}),a.gridRow=(0,d.style)({prop:"gridRow"}),a.gridAutoFlow=(0,d.style)({prop:"gridAutoFlow"}),a.gridAutoColumns=(0,d.style)({prop:"gridAutoColumns"}),a.gridAutoRows=(0,d.style)({prop:"gridAutoRows"}),a.gridTemplateColumns=(0,d.style)({prop:"gridTemplateColumns"}),a.gridTemplateRows=(0,d.style)({prop:"gridTemplateRows"}),a.gridTemplateAreas=(0,d.style)({prop:"gridTemplateAreas"}),a.gridArea=(0,d.style)({prop:"gridArea"});var f=function(e){return(0,d.num)(e)&&e>0?e+"px solid":e},R=a.border=(0,d.style)({prop:"border",key:"borders",transformValue:f}),h=a.borderTop=(0,d.style)({prop:"borderTop",key:"borders",transformValue:f}),m=a.borderRight=(0,d.style)({prop:"borderRight",key:"borders",transformValue:f}),y=a.borderBottom=(0,d.style)({prop:"borderBottom",key:"borders",transformValue:f}),v=a.borderLeft=(0,d.style)({prop:"borderLeft",key:"borders",transformValue:f});a.borders=(0,d.compose)(R,h,m,y,v),a.borderColor=(0,d.style)({prop:"borderColor",key:"colors"}),a.borderRadius=(0,d.style)({prop:"borderRadius",key:"radii",transformValue:d.px}),a.boxShadow=(0,d.style)({prop:"boxShadow",key:"shadows"}),a.opacity=(0,d.style)({prop:"opacity"}),a.overflow=(0,d.style)({prop:"overflow"}),a.background=(0,d.style)({prop:"background"}),a.backgroundImage=(0,d.style)({prop:"backgroundImage"}),a.backgroundSize=(0,d.style)({prop:"backgroundSize"}),a.backgroundPosition=(0,d.style)({prop:"backgroundPosition"}),a.backgroundRepeat=(0,d.style)({prop:"backgroundRepeat"}),a.position=(0,d.style)({prop:"position"}),a.zIndex=(0,d.style)({prop:"zIndex"}),a.top=(0,d.style)({prop:"top",transformValue:d.px}),a.right=(0,d.style)({prop:"right",transformValue:d.px}),a.bottom=(0,d.style)({prop:"bottom",transformValue:d.px}),a.left=(0,d.style)({prop:"left",transformValue:d.px}),a.textStyle=(0,i.default)({prop:"textStyle",key:"textStyles"}),a.colorStyle=(0,i.default)({prop:"colors",key:"colorStyles"}),a.buttonStyle=(0,i.default)({key:"buttons"})},function(e,a,n){"use strict";a.__esModule=!0;var t=n(46);a.default=function(e){var a,n=e.key,r=e.prop,d=void 0===r?"variant":r,i=function(e){return(0,t.get)(e.theme,n,e[d])||null};return i.propTypes=((a={})[d]=t.propTypes.numberOrString,a),i}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ButtonTransparent=void 0;var t=d(n(3)),r=d(n(57));function d(e){return e&&e.__esModule?e:{default:e}}var i=a.ButtonTransparent=(0,t.default)({extend:r.default,bg:"transparent",color:"inherit"});i.displayName="ButtonTransparent",a.default=i},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Heading=void 0;var t=Object.assign||function(e){for(var a=1;a=0||Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}(a,["components"]);return r.default.createElement(c,null,function(a){return r.default.createElement(e,t({components:n||a},d))})}};var g=function(e){var a=e.components,n=e.children;return r.default.createElement(s,{value:a},n)};g.propTypes={components:i.default.object.isRequired,children:i.default.element.isRequired},a.default=g},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.code=a.link=void 0;var t=l(n(26)),r=l(n(54)),d=l(n(1)),i=n(20),o=l(n(321)),u=n(13),s=n(86),c=l(n(134)),g=l(n(168));function l(e){return e&&e.__esModule?e:{default:e}}var p=(0,i.withRouter)(function(e){var a=e.href,n=void 0===a?"":a,t=(e.match,e.location),o=e.children,u=e.className;(0,r.default)(e,["href","match","location","children","className"]);if(/^https?:\/\//.test(n)||/^#/.test(n))return d.default.createElement("a",{href:n,className:u,children:o});var s=function(e){return e.replace(/\.mdx?$/,"").replace(/\.jsx?$/,"")}(n,t.pathname);return d.default.createElement(i.Link,{to:s,className:u,children:o})});a.link=p;var f=function(e){var a=e.children,n=e.className,t=e.scope,i=((0,r.default)(e,["children","className","scope"]),n.replace(/^language\-/,"")),o=i.charAt(0),s=d.default.Children.toArray(a).join("\n");switch(o){case".":return d.default.createElement(c.default,{code:s,scope:t,mdx:i.includes(".mdx")});case"!":return d.default.createElement(g.default,{code:s,scope:t});default:return d.default.createElement(u.Pre,{p:3,mt:4,mb:4,bg:"gray",children:a})}};a.code=f;var R=(0,t.default)({MDXTag:s.MDXTag,components:{}},(0,o.default)({a:{is:p},code:{is:f},pre:{is:function(e){return e.children}}}));a.default=R},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=c(n(1)),r=n(175),d=n(87),i=n(13),o=n(56),u=c(n(33)),s=c(n(766));function c(e){return e&&e.__esModule?e:{default:e}}var g=function(e){return""+e+""},l=function(e){return s.default.sync(e,{skipExport:!0})},p=(0,u.default)(r.LivePreview)([],{padding:"16px",border:"1px solid",borderRadius:"2px 2px 0 0"},o.borderColor);p.defaultProps={borderColor:"gray"};var f=(0,u.default)(r.LiveEditor)([],{fontFamily:"Menlo, monospace",fontSize:"13px",margin:0,padding:"16px",overflow:"auto",borderRadius:"0 0 2px 2px","&:focus":{outline:"none",boxShadow:"inset 0 0 0 1px #6cf"}},o.color);f.defaultProps={bg:"gray"};var R=(0,u.default)(r.LiveError)([],{fontFamily:"Menlo, monospace",fontSize:"13px",padding:"8px",color:"white",backgroundColor:"red"});a.default=function(e){var a=e.code,n=e.scope,o=void 0===n?{}:n,u=e.render,s=e.mdx;return t.default.createElement(i.Box,{mb:4},t.default.createElement(d.ScopeConsumer,{defaultScope:o},function(e){return t.default.createElement(r.LiveProvider,{code:a,scope:e,mountStylesheet:!1,transformCode:s?l:g},"function"==typeof u?u({code:a,scope:e}):t.default.createElement(t.default.Fragment,null,t.default.createElement(p,null),t.default.createElement(f,null),t.default.createElement(R,null)))}))}},function(e,a,n){var t=n(743),r=n(748);e.exports=n(60)?function(e,a,n){return t.f(e,a,r(1,n))}:function(e,a,n){return e[a]=n,e}},function(e,a){var n={}.hasOwnProperty;e.exports=function(e,a){return n.call(e,a)}},function(e,a){var n=0,t=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+t).toString(36))}},function(e,a,n){var t=n(59),r=n(58),d=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,a){return d[e]||(d[e]=void 0!==a?a:{})})("versions",[]).push({version:t.version,mode:n(751)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,a,n){var t=n(140),r=n(141);e.exports=function(e){return t(r(e))}},function(e,a,n){var t=n(757);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==t(e)?e.split(""):Object(e)}},function(e,a){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,a){var n=Math.ceil,t=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?t:n)(e)}},function(e,a,n){"use strict";e.exports=function(e){var a="string"==typeof e?e.charCodeAt(0):e;return a>=97&&a<=122||a>=65&&a<=90}},function(e,a,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(796)}},function(e,a,n){"use strict";function t(e){if("string"==typeof e)return function(e){return function(a){return Boolean(a&&a.type===e)}}(e);if(null==e)return i;if("object"==typeof e)return("length"in e?d:r)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function r(e){return function(a){var n;for(n in e)if(a[n]!==e[n])return!1;return!0}}function d(e){var a=function(e){for(var a=[],n=e.length,r=-1;++r1&&(r=Math.floor(r/a)*a),i[r]=n,d=e.charAt(++n);return{indent:r,stops:i}};var t={" ":1,"\t":4}},function(e,a,n){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";a.openCloseTag=new RegExp("^(?:"+t+"|"+r+")"),a.tag=new RegExp("^(?:"+t+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)")},function(e,a,n){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},function(e,a,n){"use strict";e.exports=function(e,a){return e.indexOf("<",a)}},function(e,a,n){"use strict";e.exports=function(e,a){var n=e.indexOf("[",a),t=e.indexOf("![",a);if(-1===t)return n;return n"+e+""};a.default=function(e){var a=e.code,n=e.scope;return d.default.createElement(u.Box,{mb:4},d.default.createElement(o.ScopeConsumer,{defaultScope:n},function(e){return d.default.createElement(i.LiveProvider,{code:a,scope:e,mountStylesheet:!1,transformCode:s},d.default.createElement(i.LivePreview,null),d.default.createElement(i.LiveError,null))}))}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=s(n(36)),r=s(n(40)),d=s(n(41)),i=s(n(42)),o=s(n(45)),u=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function a(){var e,n,d,o;(0,r.default)(this,a);for(var u=arguments.length,s=Array(u),c=0;ca)return{line:n+1,column:a-d,char:n};d=i}throw new Error("Could not determine location of character")}function _(e,a){for(var n="";a--;)n+=e;return n}function w(e,a,n){void 0===n&&(n=1);var t=Math.max(a.line-5,0),r=a.line,d=String(r).length,i=e.split("\n").slice(t,r),o=i[i.length-1].slice(0,a.column).replace(/\t/g," ").length,u=i.map(function(e,a){return n=d,(r=String(a+t+1))+_(" ",n-r.length)+" : "+e.replace(/\t/g," ");var n,r}).join("\n");return u+="\n"+_(" ",d+3+o)+_("^",n)}"do if in for let new try var case else enum eval null this true void with await break catch class const false super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof".split(" ").forEach(function(e){return E[e]=!0}),C.prototype={addDeclaration:function(e,a){for(var n=0,t=b(e);n1&&(c=a(d),o.push(function(a,n,o){e.prependRight(r.start,(i?"":n+"var ")+c+" = "),e.overwrite(r.start,t=r.start+1,d),e.appendLeft(t,o),e.overwrite(r.start,t=r.start+1,(i?"":n+"var ")+c+" = "+d+o),e.move(r.start,t,a)})),P(e,a,n,r,c,i,o);break;case"ArrayPattern":if(e.remove(t,t=r.start),r.elements.filter(Boolean).length>1){var g=a(d);o.push(function(a,n,o){e.prependRight(r.start,(i?"":n+"var ")+g+" = "),e.overwrite(r.start,t=r.start+1,d,{contentOnly:!0}),e.appendLeft(t,o),e.move(r.start,t,a)}),r.elements.forEach(function(r,d){r&&("RestElement"===r.type?O(e,a,n,t,r.argument,g+".slice("+d+")",i,o):O(e,a,n,t,r,g+"["+d+"]",i,o),t=r.end)})}else{var l=k(r.elements,Boolean),p=r.elements[l];"RestElement"===p.type?O(e,a,n,t,p.argument,d+".slice("+l+")",i,o):O(e,a,n,t,p,d+"["+l+"]",i,o),t=p.end}e.remove(t,r.end);break;default:throw new Error("Unexpected node type in destructuring ("+r.type+")")}}var B=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.createScope=function(){var e=this;this.parentIsFunction=/Function/.test(this.parent.type),this.isFunctionBlock=this.parentIsFunction||"Root"===this.parent.type,this.scope=new C({block:!this.isFunctionBlock,parent:this.parent.findScope(!1),declare:function(a){return e.createdDeclarations.push(a)}}),this.parentIsFunction&&this.parent.params.forEach(function(a){e.scope.addDeclaration(a,"param")})},a.prototype.initialise=function(e){this.thisAlias=null,this.argumentsAlias=null,this.defaultParameters=[],this.createdDeclarations=[],this.scope||this.createScope(),this.body.forEach(function(a){return a.initialise(e)}),this.scope.consolidate()},a.prototype.findLexicalBoundary=function(){return"Program"===this.type?this:/^Function/.test(this.parent.type)?this:this.parent.findLexicalBoundary()},a.prototype.findScope=function(e){return e&&!this.isFunctionBlock?this.parent.findScope(e):this.scope},a.prototype.getArgumentsAlias=function(){return this.argumentsAlias||(this.argumentsAlias=this.scope.createIdentifier("arguments")),this.argumentsAlias},a.prototype.getArgumentsArrayAlias=function(){return this.argumentsArrayAlias||(this.argumentsArrayAlias=this.scope.createIdentifier("argsArray")),this.argumentsArrayAlias},a.prototype.getThisAlias=function(){return this.thisAlias||(this.thisAlias=this.scope.createIdentifier("this")),this.thisAlias},a.prototype.getIndentation=function(){if(void 0===this.indentation){for(var e=this.program.magicString.original,a=this.synthetic||!this.body.length,n=a?this.start:this.body[0].start;n&&"\n"!==e[n];)n-=1;for(this.indentation="";;){var t=e[n+=1];if(" "!==t&&"\t"!==t)break;this.indentation+=t}for(var r=this.program.magicString.getIndentString(),d=this.parent;d;)"constructor"!==d.kind||d.parent.parent.superClass||(this.indentation=this.indentation.replace(r,"")),d=d.parent;a&&(this.indentation+=r)}return this.indentation},a.prototype.transpile=function(a,n){var t,r,d=this,i=this.getIndentation(),o=[];if(this.argumentsAlias&&o.push(function(e,n,t){var r=n+"var "+d.argumentsAlias+" = arguments"+t;a.appendLeft(e,r)}),this.thisAlias&&o.push(function(e,n,t){var r=n+"var "+d.thisAlias+" = this"+t;a.appendLeft(e,r)}),this.argumentsArrayAlias&&o.push(function(e,n,t){var r=d.scope.createIdentifier("i"),o=n+"var "+r+" = arguments.length, "+d.argumentsArrayAlias+" = Array("+r+");\n"+i+"while ( "+r+"-- ) "+d.argumentsArrayAlias+"["+r+"] = arguments["+r+"]"+t;a.appendLeft(e,o)}),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,a,n,i,o):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],a,n,i,o),n.letConst&&this.isFunctionBlock&&this.transpileBlockScopedIdentifiers(a),e.prototype.transpile.call(this,a,n),this.createdDeclarations.length&&o.push(function(e,n,t){var r=n+"var "+d.createdDeclarations.join(", ")+t;a.appendLeft(e,r)}),this.synthetic)if("ArrowFunctionExpression"===this.parent.type){var u=this.body[0];o.length?(a.appendLeft(this.start,"{").prependRight(this.end,this.parent.getIndentation()+"}"),a.prependRight(u.start,"\n"+i+"return "),a.appendLeft(u.end,";\n")):n.arrow&&(a.prependRight(u.start,"{ return "),a.appendLeft(u.end,"; }"))}else o.length&&a.prependRight(this.start,"{").appendLeft(this.end,"}");r=this.body[0],t=r&&"ExpressionStatement"===r.type&&"Literal"===r.expression.type&&"use strict"===r.expression.value?this.body[0].end:this.synthetic||"Root"===this.parent.type?this.start:this.start+1;var s="\n"+i,c=";";o.forEach(function(e,a){a===o.length-1&&(c=";\n"),e(t,s,c)})},a.prototype.transpileParameters=function(e,a,n,t,r){var d=this;e.forEach(function(i){if("AssignmentPattern"===i.type&&"Identifier"===i.left.type)n.defaultParameter&&r.push(function(e,n,t){var r=n+"if ( "+i.left.name+" === void 0 ) "+i.left.name;a.prependRight(i.left.end,r).move(i.left.end,i.right.end,e).appendLeft(i.right.end,t)});else if("RestElement"===i.type)n.spreadRest&&r.push(function(n,r,o){var u=e[e.length-2];if(u)a.remove(u?u.end:i.start,i.end);else{for(var s=i.start,c=i.end;/\s/.test(a.original[s-1]);)s-=1;for(;/\s/.test(a.original[c]);)c+=1;a.remove(s,c)}var g=i.argument.name,l=d.scope.createIdentifier("len"),p=e.length-1;p?a.prependRight(n,r+"var "+g+" = [], "+l+" = arguments.length - "+p+";\n"+t+"while ( "+l+"-- > 0 ) "+g+"[ "+l+" ] = arguments[ "+l+" + "+p+" ]"+o):a.prependRight(n,r+"var "+g+" = [], "+l+" = arguments.length;\n"+t+"while ( "+l+"-- ) "+g+"[ "+l+" ] = arguments[ "+l+" ]"+o)});else if("Identifier"!==i.type&&n.parameterDestructuring){var o=d.scope.createIdentifier("ref");F(a,function(e){return d.scope.createIdentifier(e)},function(e){var a=e.name;return d.scope.resolveName(a)},i,o,!1,r),a.prependRight(i.start,o)}})},a.prototype.transpileBlockScopedIdentifiers=function(e){var a=this;Object.keys(this.scope.blockScopedDeclarations).forEach(function(n){for(var t=0,r=a.scope.blockScopedDeclarations[n];tthis.start?a.overwrite(this.start,o,s):a.prependRight(this.start,s)}else e.prototype.transpile.call(this,a,n);n.trailingFunctionCommas&&this.params.length&&!d&&z(a,this.params[this.params.length-1].end)},a.prototype.needsArguments=function(e){return e.spreadRest&&this.params.filter(function(e){return"RestElement"===e.type}).length>0},a}(v);function H(e,a){var n=a.findDeclaration(e.name);if(n&&"const"===n.kind)throw new S(e.name+" is read-only",e)}var V=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){if("Identifier"===this.left.type){var n=this.findScope(!1).findDeclaration(this.left.name),t=n&&n.node.ancestor(3);t&&"ForStatement"===t.type&&t.body.contains(this)&&(t.reassigned[this.left.name]=!0)}e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){"Identifier"===this.left.type&&H(this.left,this.findScope(!1)),"**="===this.operator&&n.exponentiation?this.transpileExponentiation(a,n):/Pattern/.test(this.left.type)&&n.destructuring&&this.transpileDestructuring(a),e.prototype.transpile.call(this,a,n)},a.prototype.transpileDestructuring=function(e){var a=this,n=this.findScope(!0),t=this.findScope(!1),r=n.createDeclaration("assign");e.appendRight(this.left.end,"("+r),e.appendLeft(this.right.end,", ");var d=[];F(e,function(e){return n.createDeclaration(e)},function(e){var a=t.resolveName(e.name);return H(e,t),a},this.left,r,!0,d);var i=", ";d.forEach(function(e,n){n===d.length-1&&(i=""),e(a.end,"",i)}),"ExpressionStatement"===this.unparenthesizedParent().type?e.prependRight(this.end,")"):e.appendRight(this.end,", "+r+")")},a.prototype.transpileExponentiation=function(e){for(var a,n=this.findScope(!1),t=this.left.end;"*"!==e.original[t];)t+=1;e.remove(t,t+2);var r=this.left.unparenthesize();if("Identifier"===r.type)a=n.resolveName(r.name);else if("MemberExpression"===r.type){var d,i,o=!1,u=!1,s=this.findNearest(/(?:Statement|Declaration)$/),c=s.getIndentation();"Identifier"===r.property.type?i=r.computed?n.resolveName(r.property.name):r.property.name:(i=n.createDeclaration("property"),u=!0),"Identifier"===r.object.type?d=n.resolveName(r.object.name):(d=n.createDeclaration("object"),o=!0),r.start===s.start?o&&u?(e.prependRight(s.start,d+" = "),e.overwrite(r.object.end,r.property.start,";\n"+c+i+" = "),e.overwrite(r.property.end,r.end,";\n"+c+d+"["+i+"]")):o?(e.prependRight(s.start,d+" = "),e.appendLeft(r.object.end,";\n"+c),e.appendLeft(r.object.end,d)):u&&(e.prependRight(r.property.start,i+" = "),e.appendLeft(r.property.end,";\n"+c),e.move(r.property.start,r.property.end,this.start),e.appendLeft(r.object.end,"["+i+"]"),e.remove(r.object.end,r.property.start),e.remove(r.property.end,r.end)):(o&&u?(e.prependRight(r.start,"( "+d+" = "),e.overwrite(r.object.end,r.property.start,", "+i+" = "),e.overwrite(r.property.end,r.end,", "+d+"["+i+"]")):o?(e.prependRight(r.start,"( "+d+" = "),e.appendLeft(r.object.end,", "+d)):u&&(e.prependRight(r.property.start,"( "+i+" = "),e.appendLeft(r.property.end,", "),e.move(r.property.start,r.property.end,r.start),e.overwrite(r.object.end,r.property.start,"["+i+"]"),e.remove(r.property.end,r.end)),u&&e.appendLeft(this.end," )")),a=d+(r.computed||u?"["+i+"]":"."+i)}e.prependRight(this.right.start,"Math.pow( "+a+", "),e.appendLeft(this.right.end," )")},a}(v),W=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){a.asyncAwait&&S.missingTransform("await","asyncAwait",this),e.prototype.initialise.call(this,a)},a}(v),G=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){"**"===this.operator&&n.exponentiation&&(a.prependRight(this.start,"Math.pow( "),a.overwrite(this.left.end,this.right.start,", "),a.appendLeft(this.end," )")),e.prototype.transpile.call(this,a,n)},a}(v),$=/(?:For(?:In|Of)?|While)Statement/,q=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(){var e=this.findNearest($),a=this.findNearest("SwitchCase");e&&(!a||e.depth>a.depth)&&(e.canBreak=!0,this.loop=e)},a.prototype.transpile=function(e){if(this.loop&&this.loop.shouldRewriteAsFunction){if(this.label)throw new S("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+5,"return 'break'")}},a}(v),K=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){if(a.spreadRest&&this.arguments.length>1)for(var n=this.findLexicalBoundary(),t=this.arguments.length;t--;){var r=this.arguments[t];"SpreadElement"===r.type&&T(r.argument)&&(this.argumentsArrayAlias=n.getArgumentsArrayAlias())}e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){if(n.spreadRest&&this.arguments.length&&M(a,this,this.arguments),n.spreadRest&&this.arguments.length){var t,r=!1,d=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===d.type&&(a.remove(d.start,d.argument.start),r=!0):r=L(a,this.arguments,d.start,this.argumentsArrayAlias),r){var i=null;if("Super"===this.callee.type?i=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(i=this.callee.object),i||"MemberExpression"!==this.callee.type)t="void 0";else if("Identifier"===this.callee.object.type)t=this.callee.object.name;else{t=this.findScope(!0).createDeclaration("ref");var o=this.callee.object;a.prependRight(o.start,"("+t+" = "),a.appendLeft(o.end,")")}a.appendLeft(this.callee.end,".apply"),i?(i.noCall=!0,this.arguments.length>1&&("SpreadElement"===d.type?I(d.argument)&&a.prependRight(d.start,"( "):a.prependRight(d.start,"[ "),a.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?a.prependRight(d.start,t+", "):("SpreadElement"===d.type?I(d.argument)?a.appendLeft(d.start,t+", ( "):a.appendLeft(d.start,t+", "):a.appendLeft(d.start,t+", [ "),a.appendLeft(this.arguments[this.arguments.length-1].end," )"))}}n.trailingFunctionCommas&&this.arguments.length&&z(a,this.arguments[this.arguments.length-1].end),e.prototype.transpile.call(this,a,n)},a}(v),X=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n,t,r){var d=this;if(n.classes){var i=this.parent.name,o=a.getIndentString(),u=this.getIndentation()+(t?o:""),s=u+o,c=k(this.body,function(e){return"constructor"===e.kind}),g=this.body[c],l="",p="";if(this.body.length?(a.remove(this.start,this.body[0].start),a.remove(this.body[this.body.length-1].end,this.end)):a.remove(this.start,this.end),g){g.value.body.isConstructorBody=!0;var f=this.body[c-1],R=this.body[c+1];c>0&&(a.remove(f.end,g.start),a.move(g.start,R?R.start:this.end-1,this.body[0].start)),t||a.appendLeft(g.end,";")}var h=!1!==this.program.options.namedFunctionExpressions,m=h||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var y="if ( "+r+" ) "+i+".__proto__ = "+r+";\n"+u+i+".prototype = Object.create( "+r+" && "+r+".prototype );\n"+u+i+".prototype.constructor = "+i+";";if(g)l+="\n\n"+u+y;else l+=(y="function "+i+" () {"+(r?"\n"+s+r+".apply(this, arguments);\n"+u+"}":"}")+(t?"":";")+(this.body.length?"\n\n"+u:"")+y)+"\n\n"+u}else if(!g){var v="function "+(m?i+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(v+=";"),this.body.length&&(v+="\n\n"+u),l+=v}var b,x,C=this.findScope(!1),A=[],_=[];if(this.body.forEach(function(e,t){if("get"!==e.kind&&"set"!==e.kind||!n.getterSetter||S.missingTransform("getters and setters","getterSetter",e),"constructor"!==e.kind){if(e.static){var r=" "==a.original[e.start+6]?7:6;a.remove(e.start,e.start+r)}var o,s="method"!==e.kind,g=e.key.name;(E[g]||e.value.body.scope.references[g])&&(g=C.createIdentifier(g));var l=!1;if(e.computed||"Literal"!==e.key.type||(l=!0,e.computed=!0),s){if(e.computed)throw new Error("Computed accessor properties are not currently supported");a.remove(e.start,e.key.start),e.static?(~_.indexOf(e.key.name)||_.push(e.key.name),x||(x=C.createIdentifier("staticAccessors")),o=""+x):(~A.indexOf(e.key.name)||A.push(e.key.name),b||(b=C.createIdentifier("prototypeAccessors")),o=""+b)}else o=e.static?""+i:i+".prototype";e.computed||(o+="."),(c>0&&t===c+1||0===t&&c===d.body.length-1)&&(o="\n\n"+u+o);var p=e.key.end;if(e.computed)if(l)a.prependRight(e.key.start,"["),a.appendLeft(e.key.end,"]");else{for(;"]"!==a.original[p];)p+=1;p+=1}var f=e.computed||s||!h?"":g+" ",R=(s?"."+e.kind:"")+" = "+(e.value.async?"async ":"")+"function"+(e.value.generator?"* ":" ")+f;a.remove(p,e.value.start),a.prependRight(e.value.start,R),a.appendLeft(e.end,";"),e.value.generator&&a.remove(e.start,e.key.start);var y=e.key.start;if(e.computed&&!l)for(;"["!=a.original[y];)--y;e.startthis.depth){this.shouldRewriteAsFunction=!0;for(var u=0,s=this.thisRefs;ua.depth&&(this.alias=a.getArgumentsAlias()),t&&t.body.contains(this)&&t.depth>a.depth&&(this.alias=a.getArgumentsAlias())}this.findScope(!1).addReference(this)}},a.prototype.transpile=function(e){this.alias&&e.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},a}(v),ue=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){("BlockStatement"!==this.consequent.type||"BlockStatement"===this.consequent.type&&this.consequent.synthetic)&&(a.appendLeft(this.consequent.start,"{ "),a.prependRight(this.consequent.end," }")),this.alternate&&"IfStatement"!==this.alternate.type&&("BlockStatement"!==this.alternate.type||"BlockStatement"===this.alternate.type&&this.alternate.synthetic)&&(a.appendLeft(this.alternate.start,"{ "),a.prependRight(this.alternate.end," }")),e.prototype.transpile.call(this,a,n)},a}(v),se=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){a.moduleImport&&S.missingTransform("dynamic import expressions","moduleImport",this),e.prototype.initialise.call(this,a)},a}(v),ce=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){a.moduleImport&&S.missingTransform("import","moduleImport",this),e.prototype.initialise.call(this,a)},a}(v),ge=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){this.findScope(!0).addDeclaration(this.local,"import"),e.prototype.initialise.call(this,a)},a}(v),le=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){this.findScope(!0).addDeclaration(this.local,"import"),e.prototype.initialise.call(this,a)},a}(v),pe=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){var t,r=this.name,d=r.start,i=r.name,o=this.value?this.value.start:this.name.end;a.overwrite(d,o,(/-/.test(t=i)?"'"+t+"'":t)+": "+(this.value?"":"true")),e.prototype.transpile.call(this,a,n)},a}(v);var fe=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(e){var a,n=!0,t=this.parent.children[this.parent.children.length-1];(t&&("JSXText"===(a=t).type&&!/\S/.test(a.value)&&/\n/.test(a.value))||this.parent.openingElement.attributes.length)&&(n=!1),e.overwrite(this.start,this.end,n?" )":")")},a}(v);var Re=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(e){var a,n=!0,t=this.parent.children[this.parent.children.length-1];t&&("JSXText"===(a=t).type&&!/\S/.test(a.value)&&/\n/.test(a.value))&&(n=!1),e.overwrite(this.start,this.end,n?" )":")")},a}(v);function he(e,a){return e=e.replace(/\u00a0/g," "),a&&/\n/.test(e)&&(e=e.replace(/\s+$/,"")),e=e.replace(/^\n\r?\s+/,"").replace(/\s*\n\r?\s*/gm," "),JSON.stringify(e)}var me=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){e.prototype.transpile.call(this,a,n);var t=this.children.filter(function(e){return"JSXText"!==e.type||(/\S/.test(e.raw)||!/\n/.test(e.raw))});if(t.length){var r,d=(this.openingElement||this.openingFragment).end;for(r=0;r0&&(c.start===d?a.prependRight(d,", "):a.overwrite(d,c.start,", ")),s&&"JSXSpreadAttribute"!==c.type){var g=this.attributes[i-1],l=this.attributes[i+1];g&&"JSXSpreadAttribute"!==g.type||a.prependRight(c.start,"{ "),l&&"JSXSpreadAttribute"!==l.type||a.appendLeft(c.end," }")}d=c.end}if(s)if(1===r)u=t?"',":",";else{if(!this.program.options.objectAssign)throw new S("Mixed JSX attributes ending in spread requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);u=t?"', "+this.program.options.objectAssign+"({},":", "+this.program.options.objectAssign+"({},",o=")"}else u=t?"', {":", {",o=" }";a.prependRight(this.name.end,u),o&&a.appendLeft(this.attributes[r-1].end,o)}else a.appendLeft(this.name.end,t?"', null":", null"),d=this.name.end;this.selfClosing?a.overwrite(d,this.end,this.attributes.length?")":" )"):a.remove(d,this.end)},a}(v),JSXOpeningFragment:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(e){e.overwrite(this.start,this.end,this.program.jsx+"( "+this.program.jsxFragment+", null")},a}(v),JSXSpreadAttribute:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){a.remove(this.start,this.argument.start),a.remove(this.argument.end,this.end),e.prototype.transpile.call(this,a,n)},a}(v),Literal:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(){"string"==typeof this.value&&this.program.indentExclusionElements.push(this)},a.prototype.transpile=function(e,a){if(a.numericLiteral&&this.raw.match(/^0[bo]/i)&&e.overwrite(this.start,this.end,String(this.value),{storeName:!0,contentOnly:!0}),this.regex){var n=this.regex,t=n.pattern,r=n.flags;a.stickyRegExp&&/y/.test(r)&&S.missingTransform("the regular expression sticky flag","stickyRegExp",this),a.unicodeRegExp&&/u/.test(r)&&e.overwrite(this.start,this.end,"/"+g()(t,r)+"/"+r.replace("u",""),{contentOnly:!0})}else"string"==typeof this.value&&this.value.match(ye)&&e.overwrite(this.start,this.end,this.raw.replace(ye,function(e){return"\u2028"==e?"\\u2028":"\\u2029"}),{contentOnly:!0})},a}(v),MemberExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){n.reservedProperties&&E[this.property.name]&&(a.overwrite(this.object.end,this.property.start,"['"),a.appendLeft(this.property.end,"']")),e.prototype.transpile.call(this,a,n)},a}(v),NewExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){if(a.spreadRest&&this.arguments.length)for(var n=this.findLexicalBoundary(),t=this.arguments.length;t--;){var r=this.arguments[t];if("SpreadElement"===r.type&&T(r.argument)){this.argumentsArrayAlias=n.getArgumentsArrayAlias();break}}e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){if(e.prototype.transpile.call(this,a,n),n.spreadRest&&this.arguments.length&&M(a,this,this.arguments),n.spreadRest&&this.arguments.length){var t=this.arguments[0];L(a,this.arguments,t.start,this.argumentsArrayAlias,!0)&&(a.prependRight(this.start+"new".length," (Function.prototype.bind.apply("),a.overwrite(this.callee.end,t.start,", [ null ].concat( "),a.appendLeft(this.end," ))"))}this.arguments.length&&z(a,this.arguments[this.arguments.length-1].end)},a}(v),ObjectExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){var t;e.prototype.transpile.call(this,a,n);for(var r=this.start+1,d=0,i=0,o=null,u=null,s=0;s0?(a.remove(c.start,g.properties[0].start),a.remove(g.properties[g.properties.length-1].end,c.end),(t=this.properties).splice.apply(t,[s,1].concat(g.properties)),s--):(a.remove(c.start,s===this.properties.length-1?c.end:this.properties[s+1].start),this.properties.splice(s,1),s--):(d+=1,null===o&&(o=s))}else c.computed&&n.computedProperty&&(i+=1,null===u&&(u=s))}if(!d||n.objectRestSpread||i&&n.computedProperty){if(d){if(!this.program.options.objectAssign)throw new S("Object spread operator requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);for(var l=this.properties.length;l--;){var p=this.properties[l];if("Property"===p.type&&!i){var f=this.properties[l-1],R=this.properties[l+1];f&&"Property"===f.type||a.prependRight(p.start,"{"),R&&"Property"===R.type||a.appendLeft(p.end,"}")}"SpreadElement"===p.type&&(a.remove(p.start,p.argument.start),a.remove(p.argument.end,p.end))}r=this.properties[0].start,i?"SpreadElement"===this.properties[0].type?(a.overwrite(this.start,r,this.program.options.objectAssign+"({}, "),a.remove(this.end-1,this.end),a.appendRight(this.end,")")):(a.prependLeft(this.start,this.program.options.objectAssign+"("),a.appendRight(this.end,")")):(a.overwrite(this.start,r,this.program.options.objectAssign+"({}, "),a.overwrite(this.properties[this.properties.length-1].end,this.end,")"))}}else d=0,o=null;if(i&&n.computedProperty){var h,m,y=this.getIndentation();"VariableDeclarator"===this.parent.type&&1===this.parent.parent.declarations.length&&"Identifier"===this.parent.id.type?(h=!0,m=this.parent.id.alias||this.parent.id.name):"AssignmentExpression"===this.parent.type&&"ExpressionStatement"===this.parent.parent.type&&"Identifier"===this.parent.left.type?(h=!0,m=this.parent.left.alias||this.parent.left.name):"AssignmentPattern"===this.parent.type&&"Identifier"===this.parent.left.type&&(h=!0,m=this.parent.left.alias||this.parent.left.name),d&&(h=!1),m=this.findScope(!1).resolveName(m);var v=r,b=this.end;h||(null===o||uj&&a.remove(j,w.value.start),a.prependLeft(j," = ")):a.overwrite(w.start,w.value.start,"["+a.slice(w.start,w.key.end)+"] = "),!w.method||!w.computed&&n.conciseMethodProperty||(w.value.generator&&a.remove(w.start,w.key.start),a.prependRight(w.value.start,"function"+(w.value.generator?"*":"")+" "))}else"SpreadElement"===w.type?m&&_>0&&(x||(x=this.properties[_-1]),a.appendLeft(x.end,", "+m+" )"),x=null,m=null):(!A&&d&&(a.prependRight(w.start,"{"),a.appendLeft(w.end,"}")),C=!0);if(A&&("SpreadElement"===w.type||w.computed)){var P=C?this.properties[this.properties.length-1].end:this.end-1;","==a.original[P]&&++P;var O=a.slice(P,b);a.prependLeft(k,O),a.remove(P,b),A=!1}var B=w.end;if(_this.nearestFunction.depth)&&(this.loop.canReturn=!0,this.shouldWrap=!0),this.argument&&this.argument.initialise(e)},a.prototype.transpile=function(e,a){var n=this.shouldWrap&&this.loop&&this.loop.shouldRewriteAsFunction;this.argument?(n&&e.prependRight(this.argument.start,"{ v: "),this.argument.transpile(e,a),n&&e.appendLeft(this.argument.end," }")):n&&e.appendLeft(this.start+6," {}")},a}(v),Super:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(e){if(e.classes){if(this.method=this.findNearest("MethodDefinition"),!this.method)throw new S("use of super outside class method",this);var a=this.findNearest("ClassBody").parent;if(this.superClassName=a.superClass&&(a.superClass.name||"superclass"),!this.superClassName)throw new S("super used in base class",this);if(this.isCalled="CallExpression"===this.parent.type&&this===this.parent.callee,"constructor"!==this.method.kind&&this.isCalled)throw new S("super() not allowed outside class constructor",this);if(this.isMember="MemberExpression"===this.parent.type,!this.isCalled&&!this.isMember)throw new S("Unexpected use of `super` (expected `super(...)` or `super.*`)",this)}if(e.arrow){var n=this.findLexicalBoundary(),t=this.findNearest("ArrowFunctionExpression"),r=this.findNearest($);t&&t.depth>n.depth&&(this.thisAlias=n.getThisAlias()),r&&r.body.contains(this)&&r.depth>n.depth&&(this.thisAlias=n.getThisAlias())}},a.prototype.transpile=function(e,a){if(a.classes){var n=this.isCalled||this.method.static?this.superClassName:this.superClassName+".prototype";e.overwrite(this.start,this.end,n,{storeName:!0,contentOnly:!0});var t=this.isCalled?this.parent:this.parent.parent;if(t&&"CallExpression"===t.type){this.noCall||e.appendLeft(t.callee.end,".call");var r=this.thisAlias||"this";t.arguments.length?e.appendLeft(t.arguments[0].start,r+", "):e.appendLeft(t.end-1,""+r)}}},a}(v),TaggedTemplateExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){a.templateString&&!a.dangerousTaggedTemplateString&&S.missingTransform("tagged template strings","templateString",this,"dangerousTaggedTemplateString"),e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){if(n.templateString&&n.dangerousTaggedTemplateString){var t=this.quasi.expressions.concat(this.quasi.quasis).sort(function(e,a){return e.start-a.start}),r=this.program.body.scope,d=this.quasi.quasis.map(function(e){return JSON.stringify(e.value.cooked)}).join(", "),i=this.program.templateLiteralQuasis[d];i||(i=r.createIdentifier("templateObject"),a.prependLeft(this.program.prependAt,"var "+i+" = Object.freeze(["+d+"]);\n"),this.program.templateLiteralQuasis[d]=i),a.overwrite(this.tag.end,t[0].start,"("+i);var o=t[0].start;t.forEach(function(e){"TemplateElement"===e.type?a.remove(o,e.end):a.overwrite(o,e.start,", "),o=e.end}),a.overwrite(o,this.end,")")}e.prototype.transpile.call(this,a,n)},a}(v),TemplateElement:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(){this.program.indentExclusionElements.push(this)},a}(v),TemplateLiteral:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){if(e.prototype.transpile.call(this,a,n),n.templateString&&"TaggedTemplateExpression"!==this.parent.type){var t=this.expressions.concat(this.quasis).sort(function(e,a){return e.start-a.start||e.end-a.end}).filter(function(e,a){return"TemplateElement"!==e.type||(!!e.value.raw||!a)});if(t.length>=3){var r=t[0],d=t[2];"TemplateElement"===r.type&&""===r.value.raw&&"TemplateElement"===d.type&&t.shift()}var i=!(1===this.quasis.length&&0===this.expressions.length||"TemplateLiteral"===this.parent.type||"AssignmentExpression"===this.parent.type||"AssignmentPattern"===this.parent.type||"VariableDeclarator"===this.parent.type||"BinaryExpression"===this.parent.type&&"+"===this.parent.operator);i&&a.appendRight(this.start,"(");var o=this.start;t.forEach(function(e,n){var t=0===n?i?"(":"":" + ";if("TemplateElement"===e.type)a.overwrite(o,e.end,t+JSON.stringify(e.value.cooked));else{var r="Identifier"!==e.type;r&&(t+="("),a.remove(o,e.start),t&&a.prependRight(e.start,t),r&&a.appendLeft(e.end,")")}o=e.end}),i&&a.appendLeft(o,")"),a.overwrite(o,this.end,"",{contentOnly:!0})}},a}(v),ThisExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(e){var a=this.findLexicalBoundary();if(e.letConst)for(var n=this.findNearest($);n&&n.depth>a.depth;)n.thisRefs.push(this),n=n.parent.findNearest($);if(e.arrow){var t=this.findNearest("ArrowFunctionExpression");t&&t.depth>a.depth&&(this.alias=a.getThisAlias())}},a.prototype.transpile=function(e){this.alias&&e.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},a}(v),UpdateExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){if("Identifier"===this.argument.type){var n=this.findScope(!1).findDeclaration(this.argument.name),t=n&&n.node.ancestor(3);t&&"ForStatement"===t.type&&t.body.contains(this)&&(t.reassigned[this.argument.name]=!0)}e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){"Identifier"===this.argument.type&&H(this.argument,this.findScope(!1)),e.prototype.transpile.call(this,a,n)},a}(v),VariableDeclaration:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(e){this.scope=this.findScope("var"===this.kind),this.declarations.forEach(function(a){return a.initialise(e)})},a.prototype.transpile=function(e,a){var n=this,t=this.getIndentation(),r=this.kind;if(a.letConst&&"var"!==r&&(r="var",e.overwrite(this.start,this.start+this.kind.length,r,{contentOnly:!0,storeName:!0})),a.destructuring&&"ForOfStatement"!==this.parent.type&&"ForInStatement"!==this.parent.type){var d,i=this.start;this.declarations.forEach(function(r,o){if(r.transpile(e,a),"Identifier"===r.id.type)o>0&&"Identifier"!==n.declarations[o-1].id.type&&e.overwrite(i,r.id.start,"var ");else{var u=$.test(n.parent.type);0===o?e.remove(i,r.id.start):e.overwrite(i,r.id.start,";\n"+t);var s="Identifier"===r.init.type&&!r.init.rewritten,c=s?r.init.alias||r.init.name:r.findScope(!0).createIdentifier("ref");i=r.start;var g=[];s?e.remove(r.id.end,r.end):g.push(function(a,n,t){e.prependRight(r.id.end,"var "+c),e.appendLeft(r.init.end,""+t),e.move(r.id.end,r.end,a)});var l=r.findScope(!1);F(e,function(e){return l.createIdentifier(e)},function(e){var a=e.name;return l.resolveName(a)},r.id,c,u,g);var p=u?"var ":"",f=u?", ":";\n"+t;g.forEach(function(e,a){o===n.declarations.length-1&&a===g.length-1&&(f=u?"":";"),e(r.start,0===a?p:"",f)})}i=r.end,d="Identifier"!==r.id.type}),d&&this.end>i&&e.overwrite(i,this.end,"",{contentOnly:!0})}else this.declarations.forEach(function(n){n.transpile(e,a)})},a}(v),VariableDeclarator:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){var n=this.parent.kind;"let"===n&&"ForStatement"===this.parent.parent.type&&(n="for.let"),this.parent.scope.addDeclaration(this.id,n),e.prototype.initialise.call(this,a)},a.prototype.transpile=function(e,a){if(!this.init&&a.letConst&&"var"!==this.parent.kind){var n=this.findNearest(/Function|^For(In|Of)?Statement|^(?:Do)?WhileStatement/);!n||/Function/.test(n.type)||this.isLeftDeclaratorOfLoop()||e.appendLeft(this.id.end," = (void 0)")}this.id&&this.id.transpile(e,a),this.init&&this.init.transpile(e,a)},a.prototype.isLeftDeclaratorOfLoop=function(){return this.parent&&"VariableDeclaration"===this.parent.type&&this.parent.parent&&("ForInStatement"===this.parent.parent.type||"ForOfStatement"===this.parent.parent.type)&&this.parent.parent.left&&this.parent.parent.left.declarations[0]===this},a}(v),WhileStatement:ae},be={Program:["body"],Literal:[]},xe={IfStatement:"consequent",ForStatement:"body",ForInStatement:"body",ForOfStatement:"body",WhileStatement:"body",DoWhileStatement:"body",ArrowFunctionExpression:"body"};function Ee(e,a,n,t){this.type="Root",this.jsx=t.jsx||"React.createElement",this.jsxFragment=t.jsxFragment||"React.Fragment",this.options=t,this.source=e,this.magicString=new l.a(e),this.ast=a,this.depth=0,function e(a,n){if(a)if("length"in a)for(var t=a.length;t--;)e(a[t],n);else if(!a.__wrapped){a.__wrapped=!0,be[a.type]||(be[a.type]=Object.keys(a).filter(function(e){return"object"==typeof a[e]}));var r=xe[a.type];if(r&&"BlockStatement"!==a[r].type){var d=a[r];a[r]={start:d.start,end:d.end,type:"BlockStatement",body:[d],synthetic:!0}}a.parent=n,a.program=n.program||n,a.depth=n.depth+1,a.keys=be[a.type],a.indentation=void 0;for(var i=0,o=be[a.type];i1&&void 0!==arguments[1]?arguments[1]:"jsx";return Object(t.highlight)(e,t.languages[a])},Be=/^((\t| )+)/gm,Te=/\t/g,Me=function(e){return e.replace(Be,function(e,a){return a.replace(Te," ")})},Ie=function(e){return e.replace("\n","
")},Le=function(e){return d()(e.replace(/
/gm,"\n").replace(/<\/?[^>]*>/gm,""))};function Ne(e,a){var n=window.getSelection();if(1==arguments.length){if(!n.rangeCount)return;var t={},r=(c=n.getRangeAt(0)).cloneRange();return r.selectNodeContents(e),r.setEnd(c.endContainer,c.endOffset),t.end=r.toString().length,r.setStart(c.startContainer,c.startOffset),t.start=t.end-r.toString().length,t.atStart=0===r.startOffset,t.commonAncestorContainer=r.commonAncestorContainer,t.endContainer=r.endContainer,t.startContainer=r.startContainer,t}for(var d,i,u=a.end&&a.end!==a.start,s=0,c=document.createRange(),g=o()(e).select(Node.TEXT_NODE).revisit(!1),l=a.start>e.textContent.length?e.textContent.length:a.start,p=a.end>e.textContent.length?e.textContent.length:a.end,f=a.atStart;d=g.next();){var R=s;if(s+=d.textContent.length,!i&&(f?s>l:s>=l)&&(i=!0,c.setStart(d,l-R),!u)){c.collapse(!0),ze(e,c);break}if(u&&s>=p){c.setEnd(d,p-R),ze(e,c);break}}}function ze(e,a){var n=window.getSelection();e.focus(),n.removeAllRanges(),n.addRange(a)}var Ue=function(e,a){var n=e.slice(0,a),t=n.lastIndexOf("\n")+1;return n.slice(t)},He=/^\s+/,Ve=function(e,a){var n=Ue(e,a).match(He);return null===n?"":n[0]||""},We=/^(\t| )* $/,Ge=function(e,a){var n=Ue(e,a);return We.test(n)?2:0},$e=function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")},qe=Object.assign||function(e){for(var a=1;a=0||Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n},Ye=function(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a},Qe=function(e){function a(){var n,t;$e(this,a);for(var r=arguments.length,d=Array(r),i=0;i0&&(t.undoStack=t.undoStack.slice(0,-t.undoOffset),t.undoOffset=0);var n=Date.now(),r={plain:e,selection:a};n-t.undoTimestamp<3e3?t.undoStack[t.undoStack.length-1]=r:(t.undoStack.push(r),t.undoStack.length>50&&t.undoStack.shift()),t.undoTimestamp=n}},t.updateContent=function(e){t.compositing||(t.setState({html:Oe(e,t.props.language)}),t.props.onChange&&t.props.onChange(e))},t.restoreStackState=function(e){var a=t.undoStack[t.undoStack.length-1-e],n=a.plain,r=a.selection;t.selection=r,t.undoOffset=e,t.updateContent(n)},t.undo=function(){var e=t.undoOffset+1;e>=t.undoStack.length||t.restoreStackState(e)},t.redo=function(){var e=t.undoOffset-1;e<0||t.restoreStackState(e)},t.onKeyDown=function(e){if(t.props.onKeyDown&&t.props.onKeyDown(e),9!==e.keyCode||t.props.ignoreTabKey)if(8===e.keyCode){var a=Ne(t.ref),n=a.start;if(n!==a.end)return;var r=Ge(t.getPlain(),n);if(r<=0)return;for(var d=0;d","<":"<",""":'"'}},function(e,a,n){var t=n(327),r=n(328);function d(e,a){if(!(this instanceof d))return new d(e,a);if(this.node=this.start=this.peeked=e,this.root=a,this.closingTag=!1,this._revisit=!0,this._selects=[],this._rejects=[],e&&this.higher(e))throw new Error("root must be a parent or ancestor to node")}function i(e,a){var n="nextSibling"==e;return function(r,d,i){r=this.compile(r),d=d&&d>0?d:1;for(var o=this.node,u=this.closingTag,s=this._revisit;o;){if(t(n,u)&&o[a])o=o[a],u=!n;else if(1==o.nodeType&&!o[a]&&t(n,u)){if(u=n,!s)continue}else if(o[e])o=o[e],u=!n;else if(o=o.parentNode,u=n,!s)continue;if(!o||this.higher(o,this.root))break;if(r(o)&&this.selects(o,i)&&this.rejects(o,i)){if(--d)continue;return i||(this.node=o),this.closingTag=u,o}}return null}}e.exports=d,d.prototype.reset=function(e){return this.node=e||this.start,this},d.prototype.revisit=function(e){return this._revisit=null==e||e,this},d.prototype.opening=function(){return 1==this.node.nodeType&&(this.closingTag=!1),this},d.prototype.atOpening=function(){return!this.closingTag},d.prototype.closing=function(){return 1==this.node.nodeType&&(this.closingTag=!0),this},d.prototype.atClosing=function(){return this.closingTag},d.prototype.next=i("nextSibling","firstChild"),d.prototype.previous=d.prototype.prev=i("previousSibling","lastChild"),d.prototype.select=function(e){return e=this.compile(e),this._selects.push(e),this},d.prototype.selects=function(e,a){var n=this._selects,t=n.length;if(!t)return!0;for(var r=0;r0?this.next(e,a,!0):this.prev(e,Math.abs(a),!0):this.node},d.prototype.use=function(e){return e(this),this}},function(e,a,n){"use strict";const t=n(329).generate,r=n(330).parse,d=n(0),i=n(331),o=n(334),u=n(336),s=n(337),c=d().addRange(0,1114111),g=d().addRange(0,65535),l=c.clone().remove(10,13,8232,8233),p=l.clone().intersection(g),f=(e,a,n)=>a?n?s.UNICODE_IGNORE_CASE.get(e):s.UNICODE.get(e):s.REGULAR.get(e),R=(e,a)=>{const t=a?`${e}/${a}`:`Binary_Property/${e}`;try{return n(338)(`./${t}.js`)}catch(n){throw new Error(`Failed to recognize value \`${a}\` for property `+`\`${e}\`.`)}},h=(e,a)=>{const n=e.split("="),t=n[0];let r;if(1==n.length)r=(e=>{try{const a="General_Category",n=o(a,e);return R(a,n)}catch(e){}const a=i(e);return R(a)})(t);else{const e=i(t),a=o(e,n[1]);r=R(e,a)}return a?c.clone().remove(r):r.clone()};d.prototype.iuAddRange=function(e,a){const n=this;do{const a=v(e);a&&n.add(a)}while(++e<=a);return n};const m=(e,a)=>{let n=r(a,E.useUnicodeFlag?"u":"");switch(n.type){case"characterClass":case"group":case"value":break;default:n=y(n,a)}Object.assign(e,n)},y=(e,a)=>({type:"group",behavior:"ignore",body:[e],raw:`(?:${a})`}),v=e=>u.get(e)||!1,b=(e,a)=>{delete e.name,e.matchIndex=a},x=(e,a,n)=>{switch(e.type){case"dot":m(e,((e,a)=>a?e?c:g:e?l:p)(E.unicode,E.dotAll).toString(a));break;case"characterClass":e=((e,a)=>{let n=d();for(const a of e.body)switch(a.type){case"value":if(n.add(a.codePoint),E.ignoreCase&&E.unicode&&!E.useUnicodeFlag){const e=v(a.codePoint);e&&n.add(e)}break;case"characterClassRange":const e=a.min.codePoint,t=a.max.codePoint;n.addRange(e,t),E.ignoreCase&&E.unicode&&!E.useUnicodeFlag&&n.iuAddRange(e,t);break;case"characterClassEscape":n.add(f(a.value,E.unicode,E.ignoreCase));break;case"unicodePropertyEscape":n.add(h(a.value,a.negative));break;default:throw new Error(`Unknown term type: ${a.type}`)}return e.negative&&(n=(E.unicode?c:g).clone().remove(n)),m(e,n.toString(a)),e})(e,a);break;case"unicodePropertyEscape":m(e,h(e.value,e.negative).toString(a));break;case"characterClassEscape":m(e,f(e.value,E.unicode,E.ignoreCase).toString(a));break;case"group":if(n.lastIndex++,e.name){const a=e.name.value;if(n.names[a])throw new Error(`Multiple groups with the same name (${a}) are not allowed.`);const t=n.lastIndex;delete e.name,n.names[a]=t,n.onNamedGroup&&n.onNamedGroup.call(null,a,t),n.unmatchedReferences[a]&&(n.unmatchedReferences[a].forEach(e=>{b(e,t)}),delete n.unmatchedReferences[a])}case"alternative":case"disjunction":case"quantifier":e.body=e.body.map(e=>x(e,a,n));break;case"value":const t=e.codePoint,r=d(t);if(E.ignoreCase&&E.unicode&&!E.useUnicodeFlag){const e=v(t);e&&r.add(e)}m(e,r.toString(a));break;case"reference":if(e.name){const a=e.name.value,t=n.names[a];if(t){b(e,t);break}n.unmatchedReferences[a]||(n.unmatchedReferences[a]=[]),n.unmatchedReferences[a].push(e)}break;case"anchor":case"empty":case"group":break;default:throw new Error(`Unknown term type: ${e.type}`)}return e},E={ignoreCase:!1,unicode:!1,dotAll:!1,useUnicodeFlag:!1};e.exports=(e,a,n)=>{const d={unicodePropertyEscape:n&&n.unicodePropertyEscape,namedGroups:n&&n.namedGroup,lookbehind:n&&n.lookbehind};E.ignoreCase=a&&a.includes("i"),E.unicode=a&&a.includes("u");const i=n&&n.dotAllFlag;E.dotAll=i&&a&&a.includes("s"),E.useUnicodeFlag=n&&n.useUnicodeFlag;const o={hasUnicodeFlag:E.useUnicodeFlag,bmpOnly:!E.unicode},u={onNamedGroup:n&&n.onNamedGroup,lastIndex:0,names:Object.create(null),unmatchedReferences:Object.create(null)},s=r(e,a,d);return x(s,o,u),(e=>{const a=Object.keys(e.unmatchedReferences);if(a.length>0)throw new Error(`Unknown group names: ${a}`)})(u),t(s)}},function(e,a,n){"use strict";(function(e){var t=n(182),r=function(e,a,n){this.start=e,this.end=a,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};r.prototype.appendLeft=function(e){this.outro+=e},r.prototype.appendRight=function(e){this.intro=this.intro+e},r.prototype.clone=function(){var e=new r(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},r.prototype.contains=function(e){return this.start=t.length)return"\t";var r=t.reduce(function(e,a){var n=/^ +/.exec(a)[0].length;return Math.min(n,e)},1/0);return new Array(r+1).join(" ")}function u(e,a){var n=e.split(/[\/\\]/),t=a.split(/[\/\\]/);for(n.pop();n[0]===t[0];)n.shift(),t.shift();if(n.length)for(var r=n.length;r--;)n[r]="..";return n.concat(t).join("/")}i.prototype.toString=function(){return JSON.stringify(this)},i.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+d(this.toString())};var s=Object.prototype.toString;function c(e){return"[object Object]"===s.call(e)}function g(e){for(var a=e.split("\n"),n=[],t=0,r=0;t>1;e=0&&r.push(t),this.rawSegments.push(r)}else this.pending&&this.rawSegments.push(this.pending);this.advance(a),this.pending=null},l.prototype.addUneditedChunk=function(e,a,n,t,r){for(var d=a.start,i=!0;d1){for(var n=0;n=e&&n<=a)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(a),this._split(n);var t=this.byStart[e],r=this.byEnd[a],d=t.previous,i=r.next,o=this.byStart[n];if(!o&&r===this.lastChunk)return this;var u=o?o.previous:this.lastChunk;return d&&(d.next=i),i&&(i.previous=d),u&&(u.next=t),o&&(o.previous=r),t.previous||(this.firstChunk=r.next),r.next||(this.lastChunk=t.previous,this.lastChunk.next=null),t.previous=u,r.next=o||null,u||(this.firstChunk=t),o||(this.lastChunk=r),this},R.prototype.overwrite=function(e,a,n,t){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;a<0;)a+=this.original.length;if(a>this.original.length)throw new Error("end is out of bounds");if(e===a)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(a),!0===t&&(f.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),f.storeName=!0),t={storeName:!0});var d=void 0!==t&&t.storeName,i=void 0!==t&&t.contentOnly;if(d){var o=this.original.slice(e,a);this.storedNames[o]=!0}var u=this.byStart[e],s=this.byEnd[a];if(u){if(a>u.end&&u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");if(u.edit(n,d,i),u!==s){for(var c=u.next;c!==s;)c.edit("",!1),c=c.next;c.edit("",!1)}}else{var g=new r(e,a,"").edit(n,d);s.next=g,g.previous=s}return this},R.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},R.prototype.prependLeft=function(e,a){if("string"!=typeof a)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(a):this.intro=a+this.intro,this},R.prototype.prependRight=function(e,a){if("string"!=typeof a)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(a):this.outro=a+this.outro,this},R.prototype.remove=function(e,a){for(;e<0;)e+=this.original.length;for(;a<0;)a+=this.original.length;if(e===a)return this;if(e<0||a>this.original.length)throw new Error("Character is out of bounds");if(e>a)throw new Error("end must be greater than start");this._split(e),this._split(a);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=a>n.end?this.byStart[n.end]:null;return this},R.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},R.prototype.lastLine=function(){var e=this.outro.lastIndexOf(p);if(-1!==e)return this.outro.substr(e+1);var a=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(-1!==(e=n.outro.lastIndexOf(p)))return n.outro.substr(e+1)+a;a=n.outro+a}if(n.content.length>0){if(-1!==(e=n.content.lastIndexOf(p)))return n.content.substr(e+1)+a;a=n.content+a}if(n.intro.length>0){if(-1!==(e=n.intro.lastIndexOf(p)))return n.intro.substr(e+1)+a;a=n.intro+a}}while(n=n.previous);return-1!==(e=this.intro.lastIndexOf(p))?this.intro.substr(e+1)+a:this.intro+a},R.prototype.slice=function(e,a){for(void 0===e&&(e=0),void 0===a&&(a=this.original.length);e<0;)e+=this.original.length;for(;a<0;)a+=this.original.length;for(var n="",t=this.firstChunk;t&&(t.start>e||t.end<=e);){if(t.start=a)return n;t=t.next}if(t&&t.edited&&t.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var r=t;t;){!t.intro||r===t&&t.start!==e||(n+=t.intro);var d=t.start=a;if(d&&t.edited&&t.end!==a)throw new Error("Cannot use replaced character "+a+" as slice end anchor.");var i=r===t?e-t.start:0,o=d?t.content.length+a-t.end:t.content.length;if(n+=t.content.slice(i,o),!t.outro||d&&t.end!==a||(n+=t.outro),d)break;t=t.next}return n},R.prototype.snip=function(e,a){var n=this.clone();return n.remove(0,e),n.remove(a,n.original.length),n},R.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var a=this.lastSearchedChunk,n=e>a.end;a;){if(a.contains(e))return this._splitChunk(a,e);a=n?this.byStart[a.end]:this.byEnd[a.start]}},R.prototype._splitChunk=function(e,a){if(e.edited&&e.content.length){var n=g(this.original)(a);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+e.original+'")')}var t=e.split(a);return this.byEnd[a]=e,this.byStart[a]=t,this.byEnd[t.end]=t,e===this.lastChunk&&(this.lastChunk=t),this.lastSearchedChunk=e,!0},R.prototype.toString=function(){for(var e=this.intro,a=this.firstChunk;a;)e+=a.toString(),a=a.next;return e+this.outro},R.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},R.prototype.length=function(){var e=this.firstChunk,a=0;do{a+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return a},R.prototype.trimLines=function(){return this.trim("[\\r\\n]")},R.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},R.prototype.trimEndAborted=function(e){var a=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(a,""),this.outro.length)return!0;var n=this.lastChunk;do{var t=n.end,r=n.trimEnd(a);if(n.end!==t&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.previous}while(n);return!1},R.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},R.prototype.trimStartAborted=function(e){var a=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(a,""),this.intro.length)return!0;var n=this.firstChunk;do{var t=n.end,r=n.trimStart(a);if(n.end!==t&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.next}while(n);return!1},R.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var h=Object.prototype.hasOwnProperty,m=function(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};m.prototype.addSource=function(e){if(e instanceof R)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!c(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(a){h.call(e,a)||(e[a]=e.content[a])}),void 0===e.separator&&(e.separator=this.separator),e.filename)if(h.call(this.uniqueSourceIndexByFilename,e.filename)){var a=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==a.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},m.prototype.append=function(e,a){return this.addSource({content:new R(e),separator:a&&a.separator||""}),this},m.prototype.clone=function(){var e=new m({intro:this.intro,separator:this.separator});return this.sources.forEach(function(a){e.addSource({filename:a.filename,content:a.content.clone(),separator:a.separator})}),e},m.prototype.generateDecodedMap=function(e){var a=this;void 0===e&&(e={});var n=[];this.sources.forEach(function(e){Object.keys(e.content.storedNames).forEach(function(e){~n.indexOf(e)||n.push(e)})});var t=new l(e.hires);return this.intro&&t.advance(this.intro),this.sources.forEach(function(e,r){r>0&&t.advance(a.separator);var d=e.filename?a.uniqueSourceIndexByFilename[e.filename]:-1,i=e.content,o=g(i.original);i.intro&&t.advance(i.intro),i.firstChunk.eachNext(function(a){var r=o(a.start);a.intro.length&&t.advance(a.intro),e.filename?a.edited?t.addEdit(d,a.content,r,a.storeName?n.indexOf(a.original):-1):t.addUneditedChunk(d,a,i.original,r,i.sourcemapLocations):t.advance(a.content),a.outro.length&&t.advance(a.outro)}),i.outro&&t.advance(i.outro)}),{file:e.file?e.file.split(/[\/\\]/).pop():null,sources:this.uniqueSources.map(function(a){return e.file?u(e.file,a.filename):a.filename}),sourcesContent:this.uniqueSources.map(function(a){return e.includeContent?a.content:null}),names:n,mappings:t.raw}},m.prototype.generateMap=function(e){return new i(this.generateDecodedMap(e))},m.prototype.getIndentString=function(){var e={};return this.sources.forEach(function(a){var n=a.content.indentStr;null!==n&&(e[n]||(e[n]=0),e[n]+=1)}),Object.keys(e).sort(function(a,n){return e[a]-e[n]})[0]||"\t"},m.prototype.indent=function(e){var a=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(function(t,r){var d=void 0!==t.separator?t.separator:a.separator,i=n||r>0&&/\r?\n$/.test(d);t.content.indent(e,{exclude:t.indentExclusionRanges,indentStart:i}),n="\n"===t.content.lastChar()}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,function(a,n){return n>0?e+a:a})),this},m.prototype.prepend=function(e){return this.intro=e+this.intro,this},m.prototype.toString=function(){var e=this,a=this.sources.map(function(a,n){var t=void 0!==a.separator?a.separator:e.separator;return(n>0?t:"")+a.content.toString()}).join("");return this.intro+a},m.prototype.isEmpty=function(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some(function(e){return!e.content.isEmpty()})},m.prototype.length=function(){return this.sources.reduce(function(e,a){return e+a.content.length()},this.intro.length)},m.prototype.trimLines=function(){return this.trim("[\\r\\n]")},m.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},m.prototype.trimStart=function(e){var a=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(a,""),!this.intro){var n,t=0;do{if(!(n=this.sources[t++]))break}while(!n.content.trimStartAborted(e))}return this},m.prototype.trimEnd=function(e){var a,n=new RegExp((e||"\\s")+"+$"),t=this.sources.length-1;do{if(!(a=this.sources[t--])){this.intro=this.intro.replace(n,"");break}}while(!a.content.trimEndAborted(e));return this},a.a=R}).call(this,n(736).Buffer)},function(e,a,n){"use strict";n.d(a,"a",function(){return i});for(var t={},r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=0;d0&&(d+=";"),0!==u.length){for(var s=0,c=[],g=0,l=u;g1&&(f+=o(p[1]-a)+o(p[2]-n)+o(p[3]-t),a=p[1],n=p[2],t=p[3]),5===p.length&&(f+=o(p[4]-r),r=p[4]),c.push(f)}d+=c.join(",")}}return d}function o(e){var a="";e=e<0?-e<<1|1:e<<1;do{var n=31&e;(e>>>=5)>0&&(n|=32),a+=r[n]}while(e>0);return a}},function(e,a,n){"use strict";const t=n(740),r=/^[\da-fA-F]+$/,d=/^\d+$/,i=n(66),o=i.tokTypes,u=i.TokContext,s=i.tokContexts,c=i.TokenType,g=i.isNewLine,l=i.isIdentifierStart,p=i.isIdentifierChar,f=new u("...",!0,!0),m={jsxName:new c("jsxName"),jsxText:new c("jsxText",{beforeExpr:!0}),jsxTagStart:new c("jsxTagStart"),jsxTagEnd:new c("jsxTagEnd")};function y(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?y(e.object)+"."+y(e.property):void 0:e}m.jsxTagStart.updateContext=function(){this.context.push(h),this.context.push(f),this.exprAllowed=!1},m.jsxTagEnd.updateContext=function(e){let a=this.context.pop();a===f&&e===o.slash||a===R?(this.context.pop(),this.exprAllowed=this.curContext()===h):this.exprAllowed=!0},e.exports=function(e){return e=e||{},function(a){return function(e,a){return class extends a{jsx_readToken(){let e="",a=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?60===n&&this.exprAllowed?(++this.pos,this.finishToken(m.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(a,this.pos),this.finishToken(m.jsxText,e));case 38:e+=this.input.slice(a,this.pos),e+=this.jsx_readEntity(),a=this.pos;break;default:g(n)?(e+=this.input.slice(a,this.pos),e+=this.jsx_readNewLine(!0),a=this.pos):++this.pos}}}jsx_readNewLine(e){let a,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,a=e?"\n":"\r\n"):a=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),a}jsx_readString(e){let a="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let t=this.input.charCodeAt(this.pos);if(t===e)break;38===t?(a+=this.input.slice(n,this.pos),a+=this.jsx_readEntity(),n=this.pos):g(t)?(a+=this.input.slice(n,this.pos),a+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return a+=this.input.slice(n,this.pos++),this.finishToken(o.string,a)}jsx_readEntity(){let e,a="",n=0,i=this.input[this.pos];"&"!==i&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos")}let i=r.name?"Element":"Fragment";return n["opening"+i]=r,n["closing"+i]=d,n.children=t,this.type===o.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+i)}jsx_parseText(e){let a=this.parseLiteral(e);return a.type="JSXText",a}jsx_parseElement(){let e=this.start,a=this.startLoc;return this.next(),this.jsx_parseElementAt(e,a)}parseExprAtom(e){return this.type===m.jsxText?this.jsx_parseText(this.value):this.type===m.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let a=this.curContext();if(a===h)return this.jsx_readToken();if(a===f||a===R){if(l(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(m.jsxTagEnd);if((34===e||39===e)&&a==f)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(m.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==o.braceL){var a=this.curContext();a==f?this.context.push(s.b_expr):a==h?this.context.push(s.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==o.slash||e!==m.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(R),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},a)}},e.exports.tokTypes=m},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.DynamicImportKey=void 0;var t=function(){function e(e,a){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:B;return g.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.map(function(){var e=(0,p.default)(g.default.mark(function e(a){var n,t,r,d,i,o,u,s,c,p=a.key,R=a.name,h=a.module,m=a.Component;return g.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n="index"===R,t=f.default.dirname(p).replace(/^\./,""),r=f.default.extname(p),i=d=t+(n?"/":"/"+R),!m.getInitialProps){e.next=11;break}return e.next=8,m.getInitialProps({path:d});case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0={};case 12:return o=e.t0,u=m.defaultProps,s=h.frontMatter||{},c=(0,l.default)({},s,o,u),d=c.path||d,t&&"index"===R&&(R=f.default.basename(t)),e.abrupt("return",{key:p,name:R,extname:r,href:i,path:d,dirname:t,exact:n,module:h,Component:m,props:c});case 19:case"end":return e.stop()}},e,void 0)}));return function(a){return e.apply(this,arguments)}}());case 2:return a=e.sent,e.next=5,c.default.all(a);case 5:return n=e.sent,t=n.filter(function(e){return!e.props.ignore}).filter(function(e){return!/404/.test(e.name)}),r=[].concat((0,s.default)(t)),r=(0,b.default)([].concat((0,s.default)(r)),function(e){return e.name}),r=(0,b.default)([].concat((0,s.default)(r)),function(e){return!e.exact}),(r=(0,b.default)([].concat((0,s.default)(r)),function(e){return e.dirname})).notfound=n.find(function(e){return/404/.test(e.name)}),e.abrupt("return",r);case 13:case"end":return e.stop()}},e,void 0)})),function(){return S.apply(this,arguments)}),N=(0,m.withRouter)(function(e){var a=e.render,n=(0,u.default)(e,["render"]),t=n.location.pathname,r=n.routes.find(function(e){return e.path===t||e.href===t})||{props:{}};return a((0,l.default)({},n,{route:r}))}),z=function(e){function a(){var e,n,d,o;(0,r.default)(this,a);for(var u=arguments.length,s=Array(u),c=0;c=s?e?"":void 0:(d=o.charCodeAt(u))<55296||d>56319||u+1===s||(i=o.charCodeAt(u+1))<56320||i>57343?e?o.charAt(u):d:e?o.slice(u,u+2):i-56320+(d-55296<<10)+65536}}},function(e,a,n){"use strict";var t=n(75),r=n(39),d=n(52),i={};n(25)(i,n(9)("iterator"),function(){return this}),e.exports=function(e,a,n){e.prototype=t(i,{next:r(1,n)}),d(e,a+" Iterator")}},function(e,a,n){var t=n(16),r=n(17),d=n(51);e.exports=n(18)?Object.defineProperties:function(e,a){r(e);for(var n,i=d(a),o=i.length,u=0;o>u;)t.f(e,n=i[u++],a[n]);return e}},function(e,a,n){var t=n(32),r=n(76),d=n(200);e.exports=function(e){return function(a,n,i){var o,u=t(a),s=r(u.length),c=d(i,s);if(e&&n!=n){for(;s>c;)if((o=u[c++])!=o)return!0}else for(;s>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,a,n){var t=n(74),r=Math.max,d=Math.min;e.exports=function(e,a){return(e=t(e))<0?r(e+a,0):d(e,a)}},function(e,a,n){"use strict";var t=n(202),r=n(203),d=n(43),i=n(32);e.exports=n(105)(Array,"Array",function(e,a){this._t=i(e),this._i=0,this._k=a},function(){var e=this._t,a=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==a?n:"values"==a?e[n]:[n,e[n]])},"values"),d.Arguments=d.Array,t("keys"),t("values"),t("entries")},function(e,a){e.exports=function(){}},function(e,a){e.exports=function(e,a){return{value:a,done:!!e}}},function(e,a,n){e.exports={default:n(205),__esModule:!0}},function(e,a,n){n(206),n(113),n(211),n(212),e.exports=n(5).Symbol},function(e,a,n){"use strict";var t=n(7),r=n(24),d=n(18),i=n(15),o=n(106),u=n(207).KEY,s=n(31),c=n(70),g=n(52),l=n(49),p=n(9),f=n(78),R=n(79),h=n(208),m=n(209),y=n(17),v=n(22),b=n(37),x=n(32),E=n(72),C=n(39),A=n(75),_=n(210),w=n(112),S=n(80),k=n(16),D=n(51),F=w.f,j=k.f,P=_.f,O=t.Symbol,B=t.JSON,T=B&&B.stringify,M=p("_hidden"),I=p("toPrimitive"),L={}.propertyIsEnumerable,N=c("symbol-registry"),z=c("symbols"),U=c("op-symbols"),H=Object.prototype,V="function"==typeof O&&!!S.f,W=t.QObject,G=!W||!W.prototype||!W.prototype.findChild,$=d&&s(function(){return 7!=A(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(e,a,n){var t=F(H,a);t&&delete H[a],j(e,a,n),t&&e!==H&&j(H,a,t)}:j,q=function(e){var a=z[e]=A(O.prototype);return a._k=e,a},K=V&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},X=function(e,a,n){return e===H&&X(U,a,n),y(e),a=E(a,!0),y(n),r(z,a)?(n.enumerable?(r(e,M)&&e[M][a]&&(e[M][a]=!1),n=A(n,{enumerable:C(0,!1)})):(r(e,M)||j(e,M,C(1,{})),e[M][a]=!0),$(e,a,n)):j(e,a,n)},Y=function(e,a){y(e);for(var n,t=h(a=x(a)),r=0,d=t.length;d>r;)X(e,n=t[r++],a[n]);return e},Q=function(e){var a=L.call(this,e=E(e,!0));return!(this===H&&r(z,e)&&!r(U,e))&&(!(a||!r(this,e)||!r(z,e)||r(this,M)&&this[M][e])||a)},J=function(e,a){if(e=x(e),a=E(a,!0),e!==H||!r(z,a)||r(U,a)){var n=F(e,a);return!n||!r(z,a)||r(e,M)&&e[M][a]||(n.enumerable=!0),n}},Z=function(e){for(var a,n=P(x(e)),t=[],d=0;n.length>d;)r(z,a=n[d++])||a==M||a==u||t.push(a);return t},ee=function(e){for(var a,n=e===H,t=P(n?U:x(e)),d=[],i=0;t.length>i;)!r(z,a=t[i++])||n&&!r(H,a)||d.push(z[a]);return d};V||(o((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=l(arguments.length>0?arguments[0]:void 0),a=function(n){this===H&&a.call(U,n),r(this,M)&&r(this[M],e)&&(this[M][e]=!1),$(this,e,C(1,n))};return d&&G&&$(H,e,{configurable:!0,set:a}),q(e)}).prototype,"toString",function(){return this._k}),w.f=J,k.f=X,n(111).f=_.f=Z,n(53).f=Q,S.f=ee,d&&!n(38)&&o(H,"propertyIsEnumerable",Q,!0),f.f=function(e){return q(p(e))}),i(i.G+i.W+i.F*!V,{Symbol:O});for(var ae="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;ae.length>ne;)p(ae[ne++]);for(var te=D(p.store),re=0;te.length>re;)R(te[re++]);i(i.S+i.F*!V,"Symbol",{for:function(e){return r(N,e+="")?N[e]:N[e]=O(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var a in N)if(N[a]===e)return a},useSetter:function(){G=!0},useSimple:function(){G=!1}}),i(i.S+i.F*!V,"Object",{create:function(e,a){return void 0===a?A(e):Y(A(e),a)},defineProperty:X,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var de=s(function(){S.f(1)});i(i.S+i.F*de,"Object",{getOwnPropertySymbols:function(e){return S.f(b(e))}}),B&&i(i.S+i.F*(!V||s(function(){var e=O();return"[null]"!=T([e])||"{}"!=T({a:e})||"{}"!=T(Object(e))})),"JSON",{stringify:function(e){for(var a,n,t=[e],r=1;arguments.length>r;)t.push(arguments[r++]);if(n=a=t[1],(v(a)||void 0!==e)&&!K(e))return m(a)||(a=function(e,a){if("function"==typeof n&&(a=n.call(this,e,a)),!K(a))return a}),t[1]=a,T.apply(B,t)}}),O.prototype[I]||n(25)(O.prototype,I,O.prototype.valueOf),g(O,"Symbol"),g(Math,"Math",!0),g(t.JSON,"JSON",!0)},function(e,a,n){var t=n(49)("meta"),r=n(22),d=n(24),i=n(16).f,o=0,u=Object.isExtensible||function(){return!0},s=!n(31)(function(){return u(Object.preventExtensions({}))}),c=function(e){i(e,t,{value:{i:"O"+ ++o,w:{}}})},g=e.exports={KEY:t,NEED:!1,fastKey:function(e,a){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!d(e,t)){if(!u(e))return"F";if(!a)return"E";c(e)}return e[t].i},getWeak:function(e,a){if(!d(e,t)){if(!u(e))return!0;if(!a)return!1;c(e)}return e[t].w},onFreeze:function(e){return s&&g.NEED&&u(e)&&!d(e,t)&&c(e),e}}},function(e,a,n){var t=n(51),r=n(80),d=n(53);e.exports=function(e){var a=t(e),n=r.f;if(n)for(var i,o=n(e),u=d.f,s=0;o.length>s;)u.call(e,i=o[s++])&&a.push(i);return a}},function(e,a,n){var t=n(44);e.exports=Array.isArray||function(e){return"Array"==t(e)}},function(e,a,n){var t=n(32),r=n(111).f,d={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==d.call(e)?function(e){try{return r(e)}catch(e){return i.slice()}}(e):r(t(e))}},function(e,a,n){n(79)("asyncIterator")},function(e,a,n){n(79)("observable")},function(e,a,n){e.exports={default:n(214),__esModule:!0}},function(e,a,n){n(215),e.exports=n(5).Object.setPrototypeOf},function(e,a,n){var t=n(15);t(t.S,"Object",{setPrototypeOf:n(216).set})},function(e,a,n){var t=n(22),r=n(17),d=function(e,a){if(r(e),!t(a)&&null!==a)throw TypeError(a+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,a,t){try{(t=n(30)(Function.call,n(112).f(Object.prototype,"__proto__").set,2))(e,[]),a=!(e instanceof Array)}catch(e){a=!0}return function(e,n){return d(e,n),a?e.__proto__=n:t(e,n),e}}({},!1):void 0),check:d}},function(e,a,n){e.exports={default:n(218),__esModule:!0}},function(e,a,n){n(219);var t=n(5).Object;e.exports=function(e,a){return t.create(e,a)}},function(e,a,n){var t=n(15);t(t.S,"Object",{create:n(75)})},function(e,a,n){"use strict";a.__esModule=!0;var t,r=n(221),d=(t=r)&&t.__esModule?t:{default:t};a.default=function(e){if(Array.isArray(e)){for(var a=0,n=Array(e.length);a1?arguments[1]:void 0,h=void 0!==R,m=0,y=c(l);if(h&&(R=t(R,f>2?arguments[2]:void 0,2)),null==y||p==Array&&o(y))for(n=new p(a=u(l.length));a>m;m++)s(n,m,h?R(l[m],m):l[m]);else for(g=y.call(l),n=new p;!(r=g.next()).done;m++)s(n,m,h?i(g,R,[r.value,m],!0):r.value);return n.length=m,n}})},function(e,a,n){"use strict";var t=n(16),r=n(39);e.exports=function(e,a,n){a in e?t.f(e,a,r(0,n)):e[a]=n}},function(e,a,n){n(113),n(73),n(110),n(226),n(234),n(235),e.exports=n(5).Promise},function(e,a,n){"use strict";var t,r,d,i,o=n(38),u=n(7),s=n(30),c=n(117),g=n(15),l=n(22),p=n(50),f=n(227),R=n(228),h=n(120),m=n(121).set,y=n(230)(),v=n(81),b=n(122),x=n(231),E=n(123),C=u.TypeError,A=u.process,_=A&&A.versions,w=_&&_.v8||"",S=u.Promise,k="process"==c(A),D=function(){},F=r=v.f,j=!!function(){try{var e=S.resolve(1),a=(e.constructor={})[n(9)("species")]=function(e){e(D,D)};return(k||"function"==typeof PromiseRejectionEvent)&&e.then(D)instanceof a&&0!==w.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(e){}}(),P=function(e){var a;return!(!l(e)||"function"!=typeof(a=e.then))&&a},O=function(e,a){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var t=e._v,r=1==e._s,d=0,i=function(a){var n,d,i,o=r?a.ok:a.fail,u=a.resolve,s=a.reject,c=a.domain;try{o?(r||(2==e._h&&M(e),e._h=1),!0===o?n=t:(c&&c.enter(),n=o(t),c&&(c.exit(),i=!0)),n===a.promise?s(C("Promise-chain cycle")):(d=P(n))?d.call(n,u,s):u(n)):s(t)}catch(e){c&&!i&&c.exit(),s(e)}};n.length>d;)i(n[d++]);e._c=[],e._n=!1,a&&!e._h&&B(e)})}},B=function(e){m.call(u,function(){var a,n,t,r=e._v,d=T(e);if(d&&(a=b(function(){k?A.emit("unhandledRejection",r,e):(n=u.onunhandledrejection)?n({promise:e,reason:r}):(t=u.console)&&t.error&&t.error("Unhandled promise rejection",r)}),e._h=k||T(e)?2:1),e._a=void 0,d&&a.e)throw a.v})},T=function(e){return 1!==e._h&&0===(e._a||e._c).length},M=function(e){m.call(u,function(){var a;k?A.emit("rejectionHandled",e):(a=u.onrejectionhandled)&&a({promise:e,reason:e._v})})},I=function(e){var a=this;a._d||(a._d=!0,(a=a._w||a)._v=e,a._s=2,a._a||(a._a=a._c.slice()),O(a,!0))},L=function(e){var a,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw C("Promise can't be resolved itself");(a=P(e))?y(function(){var t={_w:n,_d:!1};try{a.call(e,s(L,t,1),s(I,t,1))}catch(e){I.call(t,e)}}):(n._v=e,n._s=1,O(n,!1))}catch(e){I.call({_w:n,_d:!1},e)}}};j||(S=function(e){f(this,S,"Promise","_h"),p(e),t.call(this);try{e(s(L,this,1),s(I,this,1))}catch(e){I.call(this,e)}},(t=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(232)(S.prototype,{then:function(e,a){var n=F(h(this,S));return n.ok="function"!=typeof e||e,n.fail="function"==typeof a&&a,n.domain=k?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),d=function(){var e=new t;this.promise=e,this.resolve=s(L,e,1),this.reject=s(I,e,1)},v.f=F=function(e){return e===S||e===i?new d(e):r(e)}),g(g.G+g.W+g.F*!j,{Promise:S}),n(52)(S,"Promise"),n(233)("Promise"),i=n(5).Promise,g(g.S+g.F*!j,"Promise",{reject:function(e){var a=F(this);return(0,a.reject)(e),a.promise}}),g(g.S+g.F*(o||!j),"Promise",{resolve:function(e){return E(o&&this===i?S:this,e)}}),g(g.S+g.F*!(j&&n(118)(function(e){S.all(e).catch(D)})),"Promise",{all:function(e){var a=this,n=F(a),t=n.resolve,r=n.reject,d=b(function(){var n=[],d=0,i=1;R(e,!1,function(e){var o=d++,u=!1;n.push(void 0),i++,a.resolve(e).then(function(e){u||(u=!0,n[o]=e,--i||t(n))},r)}),--i||t(n)});return d.e&&r(d.v),n.promise},race:function(e){var a=this,n=F(a),t=n.reject,r=b(function(){R(e,!1,function(e){a.resolve(e).then(n.resolve,t)})});return r.e&&t(r.v),n.promise}})},function(e,a){e.exports=function(e,a,n,t){if(!(e instanceof a)||void 0!==t&&t in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,a,n){var t=n(30),r=n(114),d=n(115),i=n(17),o=n(76),u=n(116),s={},c={};(a=e.exports=function(e,a,n,g,l){var p,f,R,h,m=l?function(){return e}:u(e),y=t(n,g,a?2:1),v=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(d(m)){for(p=o(e.length);p>v;v++)if((h=a?y(i(f=e[v])[0],f[1]):y(e[v]))===s||h===c)return h}else for(R=m.call(e);!(f=R.next()).done;)if((h=r(R,y,f.value,a))===s||h===c)return h}).BREAK=s,a.RETURN=c},function(e,a){e.exports=function(e,a,n){var t=void 0===n;switch(a.length){case 0:return t?e():e.call(n);case 1:return t?e(a[0]):e.call(n,a[0]);case 2:return t?e(a[0],a[1]):e.call(n,a[0],a[1]);case 3:return t?e(a[0],a[1],a[2]):e.call(n,a[0],a[1],a[2]);case 4:return t?e(a[0],a[1],a[2],a[3]):e.call(n,a[0],a[1],a[2],a[3])}return e.apply(n,a)}},function(e,a,n){var t=n(7),r=n(121).set,d=t.MutationObserver||t.WebKitMutationObserver,i=t.process,o=t.Promise,u="process"==n(44)(i);e.exports=function(){var e,a,n,s=function(){var t,r;for(u&&(t=i.domain)&&t.exit();e;){r=e.fn,e=e.next;try{r()}catch(t){throw e?n():a=void 0,t}}a=void 0,t&&t.enter()};if(u)n=function(){i.nextTick(s)};else if(!d||t.navigator&&t.navigator.standalone)if(o&&o.resolve){var c=o.resolve(void 0);n=function(){c.then(s)}}else n=function(){r.call(t,s)};else{var g=!0,l=document.createTextNode("");new d(s).observe(l,{characterData:!0}),n=function(){l.data=g=!g}}return function(t){var r={fn:t,next:void 0};a&&(a.next=r),e||(e=r,n()),a=r}}},function(e,a,n){var t=n(7).navigator;e.exports=t&&t.userAgent||""},function(e,a,n){var t=n(25);e.exports=function(e,a,n){for(var r in a)n&&e[r]?e[r]=a[r]:t(e,r,a[r]);return e}},function(e,a,n){"use strict";var t=n(7),r=n(5),d=n(16),i=n(18),o=n(9)("species");e.exports=function(e){var a="function"==typeof r[e]?r[e]:t[e];i&&a&&!a[o]&&d.f(a,o,{configurable:!0,get:function(){return this}})}},function(e,a,n){"use strict";var t=n(15),r=n(5),d=n(7),i=n(120),o=n(123);t(t.P+t.R,"Promise",{finally:function(e){var a=i(this,r.Promise||d.Promise),n="function"==typeof e;return this.then(n?function(n){return o(a,e()).then(function(){return n})}:e,n?function(n){return o(a,e()).then(function(){throw n})}:e)}})},function(e,a,n){"use strict";var t=n(15),r=n(81),d=n(122);t(t.S,"Promise",{try:function(e){var a=r.f(this),n=d(e);return(n.e?a.reject:a.resolve)(n.v),a.promise}})},function(e,a,n){e.exports=n(237)},function(e,a,n){var t=function(){return this}()||Function("return this")(),r=t.regeneratorRuntime&&Object.getOwnPropertyNames(t).indexOf("regeneratorRuntime")>=0,d=r&&t.regeneratorRuntime;if(t.regeneratorRuntime=void 0,e.exports=n(238),r)t.regeneratorRuntime=d;else try{delete t.regeneratorRuntime}catch(e){t.regeneratorRuntime=void 0}},function(e,a){!function(a){"use strict";var n,t=Object.prototype,r=t.hasOwnProperty,d="function"==typeof Symbol?Symbol:{},i=d.iterator||"@@iterator",o=d.asyncIterator||"@@asyncIterator",u=d.toStringTag||"@@toStringTag",s="object"==typeof e,c=a.regeneratorRuntime;if(c)s&&(e.exports=c);else{(c=a.regeneratorRuntime=s?e.exports:{}).wrap=b;var g="suspendedStart",l="suspendedYield",p="executing",f="completed",R={},h={};h[i]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(j([])));y&&y!==t&&r.call(y,i)&&(h=y);var v=A.prototype=E.prototype=Object.create(h);C.prototype=v.constructor=A,A.constructor=C,A[u]=C.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var a="function"==typeof e&&e.constructor;return!!a&&(a===C||"GeneratorFunction"===(a.displayName||a.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(v),e},c.awrap=function(e){return{__await:e}},_(w.prototype),w.prototype[o]=function(){return this},c.AsyncIterator=w,c.async=function(e,a,n,t){var r=new w(b(e,a,n,t));return c.isGeneratorFunction(a)?r:r.next().then(function(e){return e.done?e.value:r.next()})},_(v),v[u]="Generator",v[i]=function(){return this},v.toString=function(){return"[object Generator]"},c.keys=function(e){var a=[];for(var n in e)a.push(n);return a.reverse(),function n(){for(;a.length;){var t=a.pop();if(t in e)return n.value=t,n.done=!1,n}return n.done=!0,n}},c.values=j,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(D),!e)for(var a in this)"t"===a.charAt(0)&&r.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=n)},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 a=this;function t(t,r){return o.type="throw",o.arg=e,a.next=t,r&&(a.method="next",a.arg=n),!!r}for(var d=this.tryEntries.length-1;d>=0;--d){var i=this.tryEntries[d],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--n){var t=this.tryEntries[n];if(t.tryLoc<=this.prev&&r.call(t,"finallyLoc")&&this.prev=0;--a){var n=this.tryEntries[a];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),R}},catch:function(e){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc===e){var t=n.completion;if("throw"===t.type){var r=t.arg;D(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,t){return this.delegate={iterator:j(e),resultName:a,nextLoc:t},"next"===this.method&&(this.arg=n),R}}}function b(e,a,n,t){var r=a&&a.prototype instanceof E?a:E,d=Object.create(r.prototype),i=new F(t||[]);return d._invoke=function(e,a,n){var t=g;return function(r,d){if(t===p)throw new Error("Generator is already running");if(t===f){if("throw"===r)throw d;return P()}for(n.method=r,n.arg=d;;){var i=n.delegate;if(i){var o=S(i,n);if(o){if(o===R)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(t===g)throw t=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);t=p;var u=x(e,a,n);if("normal"===u.type){if(t=n.done?f:l,u.arg===R)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(t=f,n.method="throw",n.arg=u.arg)}}}(e,n,i),d}function x(e,a,n){try{return{type:"normal",arg:e.call(a,n)}}catch(e){return{type:"throw",arg:e}}}function E(){}function C(){}function A(){}function _(e){["next","throw","return"].forEach(function(a){e[a]=function(e){return this._invoke(a,e)}})}function w(e){var a;this._invoke=function(n,t){function d(){return new Promise(function(a,d){!function a(n,t,d,i){var o=x(e[n],e,t);if("throw"!==o.type){var u=o.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?Promise.resolve(s.__await).then(function(e){a("next",e,d,i)},function(e){a("throw",e,d,i)}):Promise.resolve(s).then(function(e){u.value=e,d(u)},i)}i(o.arg)}(n,t,a,d)})}return a=a?a.then(d,d):d()}}function S(e,a){var t=e.iterator[a.method];if(t===n){if(a.delegate=null,"throw"===a.method){if(e.iterator.return&&(a.method="return",a.arg=n,S(e,a),"throw"===a.method))return R;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}var r=x(t,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,R;var d=r.arg;return d?d.done?(a[e.resultName]=d.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=n),a.delegate=null,R):d:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,R)}function k(e){var a={tryLoc:e[0]};1 in e&&(a.catchLoc=e[1]),2 in e&&(a.finallyLoc=e[2],a.afterLoc=e[3]),this.tryEntries.push(a)}function D(e){var a=e.completion||{};a.type="normal",delete a.arg,e.completion=a}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function j(e){if(e){var a=e[i];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var t=-1,d=function a(){for(;++tc;)for(var p,f=u(arguments[c++]),R=g?r(f).concat(g(f)):r(f),h=R.length,m=0;h>m;)p=R[m++],t&&!l.call(f,p)||(n[p]=f[p]);return n}:s},function(e,a,n){"use strict";a.__esModule=!0;var t,r=n(119),d=(t=r)&&t.__esModule?t:{default:t};a.default=function(e){return function(){var a=e.apply(this,arguments);return new d.default(function(e,n){return function t(r,i){try{var o=a[r](i),u=o.value}catch(e){return void n(e)}if(!o.done)return d.default.resolve(u).then(function(e){t("next",e)},function(e){t("throw",e)});e(u)}("next")})}}},function(e,a,n){"use strict"; +*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var a={},n=0;n<10;n++)a["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(a).map(function(e){return a[e]}).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var n,o,u=i(e),s=1;s=0||Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}var u=a.Scope=r.default.createContext(null),s=function(e){var a=e.scope,n=o(e,["scope"]);return r.default.createElement(u.Provider,t({},n,{value:a}))};a.ScopeProvider=s,s.propTypes={scope:d.default.object.isRequired};var c=function(e){var a=e.defaultScope,n=void 0===a?{}:a,t=o(e,["defaultScope"]);return r.default.createElement(u.Consumer,null,function(e){return e?t.children(e):r.default.createElement(u.Provider,{value:n},r.default.createElement(u.Consumer,t))})};a.ScopeConsumer=c,c.propTypes={defaultScope:d.default.object};a.withScope=function(e){return function(a){var n=a.defaultScope,d=o(a,["defaultScope"]);return r.default.createElement(c,{defaultScope:n},function(a){return r.default.createElement(e,t({},d,{scope:a}))})}}},function(e,a){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,a){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,a,n){"use strict";var t=n(788),r=n(789),d=n(61),i=n(790),o=n(791),u=n(792);e.exports=function(e,a){var n,d,i={};a||(a={});for(d in l)n=a[d],i[d]=null==n?l[d]:n;(i.position.indent||i.position.start)&&(i.indent=i.position.indent||[],i.position=i.position.start);return function(e,a){var n,d,i,l,N,z,U,H,V,W,G,$,q,K,X,Y,Q,J,Z,ee=a.additional,ae=a.nonTerminated,ne=a.text,te=a.reference,re=a.warning,de=a.textContext,ie=a.referenceContext,oe=a.warningContext,ue=a.position,se=a.indent||[],ce=e.length,ge=0,le=-1,pe=ue.column||1,fe=ue.line||1,Re="",he=[];"string"==typeof ee&&(ee=ee.charCodeAt(0));Y=ye(),H=re?function(e,a){var n=ye();n.column+=a,n.offset+=a,re.call(oe,I[e],n,e)}:g,ge--,ce++;for(;++ge=55296&&me<=57343||me>1114111?(H(M,J),z=c(A)):z in r?(H(T,J),z=r[z]):(W="",L(z)&&H(T,J),z>65535&&(W+=c((z-=65536)>>>10|55296),z=56320|1023&z),z=W+c(z))):K!==_&&H(O,J)),z?(ve(),Y=ye(),ge=Z-1,pe+=Z-q+1,he.push(z),(Q=ye()).offset++,te&&te.call(ie,z,{start:Y,end:Q},e.slice(q-1,Z)),Y=Q):(l=e.slice(q-1,Z),Re+=l,pe+=l.length,ge=Z-1)}else 10===N&&(fe++,le++,pe=0),N==N?(Re+=c(N),pe++):ve();var me;return he.join("");function ye(){return{line:fe,column:pe,offset:ge+(ue.offset||0)}}function ve(){Re&&(he.push(Re),ne&&ne.call(de,Re,{start:Y,end:ye()}),Re="")}}(e,i)};var s={}.hasOwnProperty,c=String.fromCharCode,g=Function.prototype,l={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p=9,f=10,R=12,h=32,m=38,y=59,v=60,b=61,x=35,E=88,C=120,A=65533,_="named",w="hexadecimal",S="decimal",k={};k[w]=16,k[S]=10;var D={};D[_]=o,D[S]=d,D[w]=i;var F=1,j=2,P=3,O=4,B=5,T=6,M=7,I={};function L(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}I[F]="Named character references must be terminated by a semicolon",I[j]="Numeric character references must be terminated by a semicolon",I[P]="Named character references cannot be empty",I[O]="Numeric character references cannot be empty",I[B]="Named character references must be known",I[T]="Numeric character references cannot be disallowed",I[M]="Numeric character references cannot be outside the permissible Unicode range"},function(e,a,n){"use strict";e.exports=function(e){var a=String(e),n=a.length;for(;a.charAt(--n)===t;);return a.slice(0,n+1)};var t="\n"},function(e,a,n){"use strict";e.exports=function(e,a,n,t){var r,d,i,o,u,s,c=["pedantic","commonmark"],g=c.length,l=e.length,p=-1;for(;++p])/g,y=/([[}=:>])\s+/g,v=/(\{[^{]+?);(?=\})/g,b=/\s{2,}/g,x=/([^\(])(:+) */g,E=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,A=/([\s\S]*?);/g,_=/-self|flex-/g,w=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,D="-webkit-",F="-moz-",j="-ms-",P=59,O=125,B=123,T=40,M=41,I=91,L=93,N=10,z=13,U=9,H=64,V=32,W=38,G=45,$=95,q=42,K=44,X=58,Y=39,Q=34,J=47,Z=62,ee=43,ae=126,ne=0,te=12,re=11,de=107,ie=109,oe=115,ue=112,se=111,ce=105,ge=99,le=100,pe=112,fe=1,Re=1,he=0,me=1,ye=1,ve=1,be=0,xe=0,Ee=0,Ce=[],Ae=[],_e=0,we=null,Se=-2,ke=-1,De=0,Fe=1,je=2,Pe=3,Oe=0,Be=1,Te="",Me="",Ie="";function Le(e,a,r,d,i){for(var o,u,c=0,g=0,l=0,p=0,m=0,y=0,v=0,b=0,E=0,A=0,_=0,w=0,S=0,k=0,$=0,be=0,Ae=0,we=0,Se=0,ke=r.length,ze=ke-1,$e="",qe="",Ke="",Xe="",Ye="",Qe="";$0&&(qe=qe.replace(t,"")),qe.trim().length>0)){switch(v){case V:case U:case P:case z:case N:break;default:qe+=r.charAt($)}v=P}if(1===Ae)switch(v){case B:case O:case P:case Q:case Y:case T:case M:case K:Ae=0;case U:case z:case N:case V:break;default:for(Ae=0,Se=$,m=v,$--,v=P;Se0&&(++$,v=m);case B:Se=ke}}switch(v){case B:for(m=(qe=qe.trim()).charCodeAt(0),_=1,Se=++$;$0&&(qe=qe.replace(t,"")),y=qe.charCodeAt(1)){case le:case ie:case oe:case G:o=a;break;default:o=Ce}if(Se=(Ke=Le(a,o,Ke,y,i+1)).length,Ee>0&&0===Se&&(Se=qe.length),_e>0&&(o=Ne(Ce,qe,we),u=We(Pe,Ke,o,a,Re,fe,Se,y,i,d),qe=o.join(""),void 0!==u&&0===(Se=(Ke=u.trim()).length)&&(y=0,Ke="")),Se>0)switch(y){case oe:qe=qe.replace(C,Ve);case le:case ie:case G:Ke=qe+"{"+Ke+"}";break;case de:Ke=(qe=qe.replace(f,"$1 $2"+(Be>0?Te:"")))+"{"+Ke+"}",Ke=1===ye||2===ye&&He("@"+Ke,3)?"@"+D+Ke+"@"+Ke:"@"+Ke;break;default:Ke=qe+Ke,d===pe&&(Xe+=Ke,Ke="")}else Ke="";break;default:Ke=Le(a,Ne(a,qe,we),Ke,d,i+1)}Ye+=Ke,w=0,Ae=0,k=0,be=0,we=0,S=0,qe="",Ke="",v=r.charCodeAt(++$);break;case O:case P:if((Se=(qe=(be>0?qe.replace(t,""):qe).trim()).length)>1)switch(0===k&&((m=qe.charCodeAt(0))===G||m>96&&m<123)&&(Se=(qe=qe.replace(" ",":")).length),_e>0&&void 0!==(u=We(Fe,qe,a,e,Re,fe,Xe.length,d,i,d))&&0===(Se=(qe=u.trim()).length)&&(qe="\0\0"),m=qe.charCodeAt(0),y=qe.charCodeAt(1),m){case ne:break;case H:if(y===ce||y===ge){Qe+=qe+r.charAt($);break}default:if(qe.charCodeAt(Se-1)===X)break;Xe+=Ue(qe,m,y,qe.charCodeAt(2))}w=0,Ae=0,k=0,be=0,we=0,qe="",v=r.charCodeAt(++$)}}switch(v){case z:case N:if(g+p+l+c+xe===0)switch(A){case M:case Y:case Q:case H:case ae:case Z:case q:case ee:case J:case G:case X:case K:case P:case B:case O:break;default:k>0&&(Ae=1)}g===J?g=0:me+w===0&&d!==de&&qe.length>0&&(be=1,qe+="\0"),_e*Oe>0&&We(De,qe,a,e,Re,fe,Xe.length,d,i,d),fe=1,Re++;break;case P:case O:if(g+p+l+c===0){fe++;break}default:switch(fe++,$e=r.charAt($),v){case U:case V:if(p+c+g===0)switch(b){case K:case X:case U:case V:$e="";break;default:v!==V&&($e=" ")}break;case ne:$e="\\0";break;case te:$e="\\f";break;case re:$e="\\v";break;case W:p+g+c===0&&me>0&&(we=1,be=1,$e="\f"+$e);break;case 108:if(p+g+c+he===0&&k>0)switch($-k){case 2:b===ue&&r.charCodeAt($-3)===X&&(he=b);case 8:E===se&&(he=E)}break;case X:p+g+c===0&&(k=$);break;case K:g+l+p+c===0&&(be=1,$e+="\r");break;case Q:case Y:0===g&&(p=p===v?0:0===p?v:p);break;case I:p+g+l===0&&c++;break;case L:p+g+l===0&&c--;break;case M:p+g+c===0&&l--;break;case T:if(p+g+c===0){if(0===w)switch(2*b+3*E){case 533:break;default:_=0,w=1}l++}break;case H:g+l+p+c+k+S===0&&(S=1);break;case q:case J:if(p+c+l>0)break;switch(g){case 0:switch(2*v+3*r.charCodeAt($+1)){case 235:g=J;break;case 220:Se=$,g=q}break;case q:v===J&&b===q&&Se+2!==$&&(33===r.charCodeAt(Se+2)&&(Xe+=r.substring(Se,$+1)),$e="",g=0)}}if(0===g){if(me+p+c+S===0&&d!==de&&v!==P)switch(v){case K:case ae:case Z:case ee:case M:case T:if(0===w){switch(b){case U:case V:case N:case z:$e+="\0";break;default:$e="\0"+$e+(v===K?"":"\0")}be=1}else switch(v){case T:k+7===$&&108===b&&(k=0),w=++_;break;case M:0==(w=--_)&&(be=1,$e+="\0")}break;case U:case V:switch(b){case ne:case B:case O:case P:case K:case te:case U:case V:case N:case z:break;default:0===w&&(be=1,$e+="\0")}}qe+=$e,v!==V&&v!==U&&(A=v)}}E=b,b=v,$++}if(Se=Xe.length,Ee>0&&0===Se&&0===Ye.length&&0===a[0].length==0&&(d!==ie||1===a.length&&(me>0?Me:Ie)===a[0])&&(Se=a.join(",").length+2),Se>0){if(o=0===me&&d!==de?function(e){for(var a,n,r=0,d=e.length,i=Array(d);r1)){if(l=u.charCodeAt(u.length-1),p=n.charCodeAt(0),a="",0!==c)switch(l){case q:case ae:case Z:case ee:case V:case T:break;default:a=" "}switch(p){case W:n=a+Me;case ae:case Z:case ee:case V:case M:case T:break;case I:n=a+n+Me;break;case X:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(ve>0){n=a+n.substring(8,g-1);break}default:(c<1||o[c-1].length<1)&&(n=a+Me+n)}break;case K:a="";default:n=g>1&&n.indexOf(":")>0?a+n.replace(x,"$1"+Me+"$2"):a+n+Me}u+=n}i[r]=u.replace(t,"").trim()}return i}(a):a,_e>0&&void 0!==(u=We(je,Xe,o,e,Re,fe,Se,d,i,d))&&0===(Xe=u).length)return Qe+Xe+Ye;if(Xe=o.join(",")+"{"+Xe+"}",ye*he!=0){switch(2!==ye||He(Xe,2)||(he=0),he){case se:Xe=Xe.replace(h,":"+F+"$1")+Xe;break;case ue:Xe=Xe.replace(R,"::"+D+"input-$1")+Xe.replace(R,"::"+F+"$1")+Xe.replace(R,":"+j+"input-$1")+Xe}he=0}}return Qe+Xe+Ye}function Ne(e,a,n){var t=a.trim().split(c),r=t,d=t.length,i=e.length;switch(i){case 0:case 1:for(var o=0,u=0===i?"":e[0]+" ";o0&&me>0)return r.replace(l,"$1").replace(g,"$1"+Ie);break;default:return e.trim()+r.replace(g,"$1"+e.trim())}default:if(n*me>0&&r.indexOf("\f")>0)return r.replace(g,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+r}function Ue(e,a,n,t){var s,c=0,g=e+";",l=2*a+3*n+4*t;if(944===l)return function(e){var a=e.length,n=e.indexOf(":",9)+1,t=e.substring(0,n).trim(),r=e.substring(n,a-1).trim();switch(e.charCodeAt(9)*Be){case 0:break;case G:if(110!==e.charCodeAt(10))break;default:var d=r.split((r="",o)),i=0;for(n=0,a=d.length;iH&&g<90||g>96&&g<123||g===$||g===G&&s.charCodeAt(1)!==G))switch(isNaN(parseFloat(s))+(-1!==s.indexOf("("))){case 1:switch(s){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:s+=Te}}c[n++]=s}r+=(0===i?"":",")+c.join(" ")}}return r=t+r+";",1===ye||2===ye&&He(r,1)?D+r+r:r}(g);if(0===ye||2===ye&&!He(g,1))return g;switch(l){case 1015:return 97===g.charCodeAt(10)?D+g+g:g;case 951:return 116===g.charCodeAt(3)?D+g+g:g;case 963:return 110===g.charCodeAt(5)?D+g+g:g;case 1009:if(100!==g.charCodeAt(4))break;case 969:case 942:return D+g+g;case 978:return D+g+F+g+g;case 1019:case 983:return D+g+F+g+j+g+g;case 883:return g.charCodeAt(8)===G?D+g+g:g.indexOf("image-set(",11)>0?g.replace(k,"$1"+D+"$2")+g:g;case 932:if(g.charCodeAt(4)===G)switch(g.charCodeAt(5)){case 103:return D+"box-"+g.replace("-grow","")+D+g+j+g.replace("grow","positive")+g;case 115:return D+g+j+g.replace("shrink","negative")+g;case 98:return D+g+j+g.replace("basis","preferred-size")+g}return D+g+j+g+g;case 964:return D+g+j+"flex-"+g+g;case 1023:if(99!==g.charCodeAt(8))break;return s=g.substring(g.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),D+"box-pack"+s+D+g+j+"flex-pack"+s+g;case 1005:return d.test(g)?g.replace(r,":"+D)+g.replace(r,":"+F)+g:g;case 1e3:switch(c=(s=g.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(c)){case 226:s=g.replace(E,"tb");break;case 232:s=g.replace(E,"tb-rl");break;case 220:s=g.replace(E,"lr");break;default:return g}return D+g+j+s+g;case 1017:if(-1===g.indexOf("sticky",9))return g;case 975:switch(c=(g=e).length-10,l=(s=(33===g.charCodeAt(c)?g.substring(0,c):g).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(s.charCodeAt(8)<111)break;case 115:g=g.replace(s,D+s)+";"+g;break;case 207:case 102:g=g.replace(s,D+(l>102?"inline-":"")+"box")+";"+g.replace(s,D+s)+";"+g.replace(s,j+s+"box")+";"+g}return g+";";case 938:if(g.charCodeAt(5)===G)switch(g.charCodeAt(6)){case 105:return s=g.replace("-items",""),D+g+D+"box-"+s+j+"flex-"+s+g;case 115:return D+g+j+"flex-item-"+g.replace(_,"")+g;default:return D+g+j+"flex-line-pack"+g.replace("align-content","").replace(_,"")+g}break;case 973:case 989:if(g.charCodeAt(3)!==G||122===g.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Ue(e.replace("stretch","fill-available"),a,n,t).replace(":fill-available",":stretch"):g.replace(s,D+s)+g.replace(s,F+s.replace("fill-",""))+g;break;case 962:if(g=D+g+(102===g.charCodeAt(5)?j+g:"")+g,n+t===211&&105===g.charCodeAt(13)&&g.indexOf("transform",10)>0)return g.substring(0,g.indexOf(";",27)+1).replace(i,"$1"+D+"$2")+g}return g}function He(e,a){var n=e.indexOf(1===a?":":"{"),t=e.substring(0,3!==a?n:10),r=e.substring(n+1,e.length-1);return we(2!==a?t:t.replace(w,"$1"),r,a)}function Ve(e,a){var n=Ue(a,a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2));return n!==a+";"?n.replace(A," or ($1)").substring(4):"("+a+")"}function We(e,a,n,t,r,d,i,o,u,s){for(var c,g=0,l=a;g<_e;++g)switch(c=Ae[g].call(qe,e,l,n,t,r,d,i,o,u,s)){case void 0:case!1:case!0:case null:break;default:l=c}if(l!==a)return l}function Ge(e,a,n,t){for(var r=a+1;r0&&(Te=r.replace(p,d===I?"":"-")),d=1,1===me?Ie=r:Me=r;var i,o=[Ie];_e>0&&void 0!==(i=We(ke,n,o,o,Re,fe,0,0,0,0))&&"string"==typeof i&&(n=i);var u=Le(Ce,o,n,0,0);return _e>0&&void 0!==(i=We(Se,u,o,o,Re,fe,u.length,0,0,0))&&"string"!=typeof(u=i)&&(d=0),Te="",Ie="",Me="",he=0,Re=1,fe=1,be*d==0?u:u.replace(t,"").replace(m,"").replace(y,"$1").replace(v,"$1").replace(b," ")}return qe.use=function e(a){switch(a){case void 0:case null:_e=Ae.length=0;break;default:if("function"==typeof a)Ae[_e++]=a;else if("object"==typeof a)for(var n=0,t=a.length;ne.length)break e;if(!(v instanceof r)){c.lastIndex=0;var b=1;if(!(w=c.exec(v))&&p&&m!=d.length-1){if(c.lastIndex=y,!(w=c.exec(e)))break;for(var x=w.index+(l?w[1].length:0),E=w.index+w[0].length,C=m,A=y,_=d.length;C<_&&A=(A+=d[C].length)&&(++m,y=A);if(d[m]instanceof r||d[C-1].greedy)continue;b=C-m,v=e.slice(y,A),w.index-=y}if(w){l&&(f=w[1].length);E=(x=w.index+f)+(w=w[0].slice(f)).length;var w,S=v.slice(0,x),k=v.slice(E),D=[m,b];S&&D.push(S);var F=new r(o,g?t.tokenize(w,g):w,R,w,p);D.push(F),k&&D.push(k),Array.prototype.splice.apply(d,D)}}}}}return d},hooks:{all:{},add:function(e,a){var n=t.hooks.all;n[e]=n[e]||[],n[e].push(a)},run:function(e,a){var n=t.hooks.all[e];if(n&&n.length)for(var r,d=0;r=n[d++];)r(a)}}},r=t.Token=function(e,a,n,t,r){this.type=e,this.content=a,this.alias=n,this.length=0|(t||"").length,this.greedy=!!r};if(r.stringify=function(e,a,n){if("string"==typeof e)return e;if("Array"===t.util.type(e))return e.map(function(n){return r.stringify(n,a,e)}).join("");var d={type:e.type,content:r.stringify(e.content,a,n),tag:"span",classes:["token",e.type],attributes:{},language:a,parent:n};if("comment"==d.type&&(d.attributes.spellcheck="true"),e.alias){var i="Array"===t.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(d.classes,i)}t.hooks.run("wrap",d);var o=Object.keys(d.attributes).map(function(e){return e+'="'+(d.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+d.tag+' class="'+d.classes.join(" ")+'"'+(o?" "+o:"")+">"+d.content+""},!n.document)return n.addEventListener?(n.addEventListener("message",function(e){var a=JSON.parse(e.data),r=a.language,d=a.code,i=a.immediateClose;n.postMessage(t.highlight(d,t.languages[r],r)),i&&n.close()},!1),n.Prism):n.Prism;var d=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return d&&(t.filename=d.src,document.addEventListener&&!d.hasAttribute("data-manual")&&("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(t.highlightAll):window.setTimeout(t.highlightAll,16):document.addEventListener("DOMContentLoaded",t.highlightAll))),n.Prism}();e.exports&&(e.exports=t),void 0!==a&&(a.Prism=t)}).call(this,n(34))},function(e,a,n){var t=n(24),r=n(37),d=n(69)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),t(e,d)?e[d]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,a,n){e.exports=!n(18)&&!n(31)(function(){return 7!=Object.defineProperty(n(71)("div"),"a",{get:function(){return 7}}).a})},function(e,a,n){e.exports={default:n(192),__esModule:!0}},function(e,a,n){"use strict";a.__esModule=!0;var t=i(n(194)),r=i(n(204)),d="function"==typeof r.default&&"symbol"==typeof t.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function i(e){return e&&e.__esModule?e:{default:e}}a.default="function"==typeof r.default&&"symbol"===d(t.default)?function(e){return void 0===e?"undefined":d(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":d(e)}},function(e,a,n){"use strict";var t=n(38),r=n(15),d=n(106),i=n(25),o=n(43),u=n(197),s=n(52),c=n(101),g=n(9)("iterator"),l=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,a,n,f,R,h,m){u(n,a,f);var y,v,b,x=function(e){if(!l&&e in _)return _[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=a+" Iterator",C="values"==R,A=!1,_=e.prototype,w=_[g]||_["@@iterator"]||R&&_[R],S=w||x(R),k=R?C?x("entries"):S:void 0,D="Array"==a&&_.entries||w;if(D&&(b=c(D.call(new e)))!==Object.prototype&&b.next&&(s(b,E,!0),t||"function"==typeof b[g]||i(b,g,p)),C&&w&&"values"!==w.name&&(A=!0,S=function(){return w.call(this)}),t&&!m||!l&&!A&&_[g]||i(_,g,S),o[a]=S,o[E]=p,R)if(y={values:C?S:x("values"),keys:h?S:x("keys"),entries:k},m)for(v in y)v in _||d(_,v,y[v]);else r(r.P+r.F*(l||A),a,y);return y}},function(e,a,n){e.exports=n(25)},function(e,a,n){var t=n(24),r=n(32),d=n(199)(!1),i=n(69)("IE_PROTO");e.exports=function(e,a){var n,o=r(e),u=0,s=[];for(n in o)n!=i&&t(o,n)&&s.push(n);for(;a.length>u;)t(o,n=a[u++])&&(~d(s,n)||s.push(n));return s}},function(e,a,n){var t=n(44);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==t(e)?e.split(""):Object(e)}},function(e,a,n){var t=n(7).document;e.exports=t&&t.documentElement},function(e,a,n){n(201);for(var t=n(7),r=n(25),d=n(43),i=n(9)("toStringTag"),o="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;un;)a.push(arguments[n++]);return m[++h]=function(){o("function"==typeof e?e:Function(e),a)},t(h),h},p=function(e){delete m[e]},"process"==n(44)(g)?t=function(e){g.nextTick(i(y,e,1))}:R&&R.now?t=function(e){R.now(i(y,e,1))}:f?(d=(r=new f).port2,r.port1.onmessage=v,t=i(d.postMessage,d,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(t=function(e){c.postMessage(e+"","*")},c.addEventListener("message",v,!1)):t="onreadystatechange"in s("script")?function(e){u.appendChild(s("script")).onreadystatechange=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(i(y,e,1),0)}),e.exports={set:l,clear:p}},function(e,a){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,a,n){var t=n(17),r=n(22),d=n(81);e.exports=function(e,a){if(t(e),r(a)&&a.constructor===e)return a;var n=d.f(e);return(0,n.resolve)(a),n.promise}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Root=void 0;var t,r=n(3),d=(t=r)&&t.__esModule?t:{default:t};var i=a.Root=(0,d.default)({fontFamily:"sans"},"fontFamily",{"& *":{boxSizing:"border-box"}},"space","color");i.displayName="Root",a.default=i},function(e,a,n){"use strict";a.__esModule=!0,a.buttonStyle=a.colorStyle=a.textStyle=a.left=a.bottom=a.right=a.top=a.zIndex=a.position=a.backgroundRepeat=a.backgroundPosition=a.backgroundSize=a.backgroundImage=a.background=a.overflow=a.opacity=a.boxShadow=a.borderRadius=a.borderColor=a.borders=a.borderLeft=a.borderBottom=a.borderRight=a.borderTop=a.border=a.gridArea=a.gridTemplateAreas=a.gridTemplateRows=a.gridTemplateColumns=a.gridAutoRows=a.gridAutoColumns=a.gridAutoFlow=a.gridRow=a.gridColumn=a.gridRowGap=a.gridColumnGap=a.gridGap=a.order=a.alignSelf=a.justifySelf=a.flex=a.flexDirection=a.flexBasis=a.flexWrap=a.justifyContent=a.justifyItems=a.alignContent=a.alignItems=a.verticalAlign=a.ratio=a.ratioPadding=a.size=a.sizeHeight=a.sizeWidth=a.minHeight=a.maxHeight=a.height=a.minWidth=a.maxWidth=a.display=a.letterSpacing=a.fontStyle=a.fontWeight=a.lineHeight=a.textAlign=a.fontFamily=a.color=a.bgColor=a.textColor=a.fontSize=a.width=a.space=void 0;var t=Object.assign||function(e){for(var a=1;a1?(0,d.px)(e):100*e+"%"},s=(a.width=(0,d.style)({prop:"width",transformValue:u}),a.fontSize=(0,d.style)({prop:"fontSize",key:"fontSizes",transformValue:d.px,scale:[12,14,16,20,24,32,48,64,72]}),a.textColor=(0,d.style)({prop:"color",key:"colors"})),c=a.bgColor=(0,d.style)({prop:"bg",cssProperty:"backgroundColor",key:"colors"}),g=(a.color=(0,d.compose)(s,c),a.fontFamily=(0,d.style)({prop:"fontFamily",key:"fonts"}),a.textAlign=(0,d.style)({prop:"textAlign"}),a.lineHeight=(0,d.style)({prop:"lineHeight",key:"lineHeights"}),a.fontWeight=(0,d.style)({prop:"fontWeight",key:"fontWeights"}),a.fontStyle=(0,d.style)({prop:"fontStyle"}),a.letterSpacing=(0,d.style)({prop:"letterSpacing",key:"letterSpacings",transformValue:d.px}),a.display=(0,d.style)({prop:"display"}),a.maxWidth=(0,d.style)({prop:"maxWidth",key:"maxWidths",transformValue:d.px}),a.minWidth=(0,d.style)({prop:"minWidth",key:"minWidths",transformValue:d.px}),a.height=(0,d.style)({prop:"height",key:"heights",transformValue:d.px}),a.maxHeight=(0,d.style)({prop:"maxHeight",key:"maxHeights",transformValue:d.px}),a.minHeight=(0,d.style)({prop:"minHeight",key:"minHeights",transformValue:d.px}),a.sizeWidth=(0,d.style)({prop:"size",cssProperty:"width",transformValue:d.px})),l=a.sizeHeight=(0,d.style)({prop:"size",cssProperty:"height",transformValue:d.px}),p=(a.size=(0,d.compose)(l,g),a.ratioPadding=(0,d.style)({prop:"ratio",cssProperty:"paddingBottom",transformValue:function(e){return 100*e+"%"}}));(a.ratio=function(e){return e.ratio?t({height:0},p(e)):null}).propTypes=t({},p.propTypes);a.verticalAlign=(0,d.style)({prop:"verticalAlign"}),a.alignItems=(0,d.style)({prop:"alignItems"}),a.alignContent=(0,d.style)({prop:"alignContent"}),a.justifyItems=(0,d.style)({prop:"justifyItems"}),a.justifyContent=(0,d.style)({prop:"justifyContent"}),a.flexWrap=(0,d.style)({prop:"flexWrap"}),a.flexBasis=(0,d.style)({prop:"flexBasis",transformValue:u}),a.flexDirection=(0,d.style)({prop:"flexDirection"}),a.flex=(0,d.style)({prop:"flex"}),a.justifySelf=(0,d.style)({prop:"justifySelf"}),a.alignSelf=(0,d.style)({prop:"alignSelf"}),a.order=(0,d.style)({prop:"order"}),a.gridGap=(0,d.style)({prop:"gridGap",transformValue:d.px,key:"space"}),a.gridColumnGap=(0,d.style)({prop:"gridColumnGap",transformValue:d.px,key:"space"}),a.gridRowGap=(0,d.style)({prop:"gridRowGap",transformValue:d.px,key:"space"}),a.gridColumn=(0,d.style)({prop:"gridColumn"}),a.gridRow=(0,d.style)({prop:"gridRow"}),a.gridAutoFlow=(0,d.style)({prop:"gridAutoFlow"}),a.gridAutoColumns=(0,d.style)({prop:"gridAutoColumns"}),a.gridAutoRows=(0,d.style)({prop:"gridAutoRows"}),a.gridTemplateColumns=(0,d.style)({prop:"gridTemplateColumns"}),a.gridTemplateRows=(0,d.style)({prop:"gridTemplateRows"}),a.gridTemplateAreas=(0,d.style)({prop:"gridTemplateAreas"}),a.gridArea=(0,d.style)({prop:"gridArea"});var f=function(e){return(0,d.num)(e)&&e>0?e+"px solid":e},R=a.border=(0,d.style)({prop:"border",key:"borders",transformValue:f}),h=a.borderTop=(0,d.style)({prop:"borderTop",key:"borders",transformValue:f}),m=a.borderRight=(0,d.style)({prop:"borderRight",key:"borders",transformValue:f}),y=a.borderBottom=(0,d.style)({prop:"borderBottom",key:"borders",transformValue:f}),v=a.borderLeft=(0,d.style)({prop:"borderLeft",key:"borders",transformValue:f});a.borders=(0,d.compose)(R,h,m,y,v),a.borderColor=(0,d.style)({prop:"borderColor",key:"colors"}),a.borderRadius=(0,d.style)({prop:"borderRadius",key:"radii",transformValue:d.px}),a.boxShadow=(0,d.style)({prop:"boxShadow",key:"shadows"}),a.opacity=(0,d.style)({prop:"opacity"}),a.overflow=(0,d.style)({prop:"overflow"}),a.background=(0,d.style)({prop:"background"}),a.backgroundImage=(0,d.style)({prop:"backgroundImage"}),a.backgroundSize=(0,d.style)({prop:"backgroundSize"}),a.backgroundPosition=(0,d.style)({prop:"backgroundPosition"}),a.backgroundRepeat=(0,d.style)({prop:"backgroundRepeat"}),a.position=(0,d.style)({prop:"position"}),a.zIndex=(0,d.style)({prop:"zIndex"}),a.top=(0,d.style)({prop:"top",transformValue:d.px}),a.right=(0,d.style)({prop:"right",transformValue:d.px}),a.bottom=(0,d.style)({prop:"bottom",transformValue:d.px}),a.left=(0,d.style)({prop:"left",transformValue:d.px}),a.textStyle=(0,i.default)({prop:"textStyle",key:"textStyles"}),a.colorStyle=(0,i.default)({prop:"colors",key:"colorStyles"}),a.buttonStyle=(0,i.default)({key:"buttons"})},function(e,a,n){"use strict";a.__esModule=!0;var t=n(46);a.default=function(e){var a,n=e.key,r=e.prop,d=void 0===r?"variant":r,i=function(e){return(0,t.get)(e.theme,n,e[d])||null};return i.propTypes=((a={})[d]=t.propTypes.numberOrString,a),i}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ButtonTransparent=void 0;var t=d(n(3)),r=d(n(57));function d(e){return e&&e.__esModule?e:{default:e}}var i=a.ButtonTransparent=(0,t.default)({extend:r.default,bg:"transparent",color:"inherit"});i.displayName="ButtonTransparent",a.default=i},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Heading=void 0;var t=Object.assign||function(e){for(var a=1;a=0||Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}(a,["components"]);return r.default.createElement(c,null,function(a){return r.default.createElement(e,t({components:n||a},d))})}};var g=function(e){var a=e.components,n=e.children;return r.default.createElement(s,{value:a},n)};g.propTypes={components:i.default.object.isRequired,children:i.default.element.isRequired},a.default=g},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.code=a.link=void 0;var t=l(n(26)),r=l(n(54)),d=l(n(1)),i=n(20),o=l(n(321)),u=n(13),s=n(86),c=l(n(134)),g=l(n(168));function l(e){return e&&e.__esModule?e:{default:e}}var p=(0,i.withRouter)(function(e){var a=e.href,n=void 0===a?"":a,t=(e.match,e.location),o=e.children,u=e.className;(0,r.default)(e,["href","match","location","children","className"]);if(/^https?:\/\//.test(n)||/^#/.test(n))return d.default.createElement("a",{href:n,className:u,children:o});var s=function(e){return e.replace(/\.mdx?$/,"").replace(/\.jsx?$/,"")}(n,t.pathname);return d.default.createElement(i.Link,{to:s,className:u,children:o})});a.link=p;var f=function(e){var a=e.children,n=e.className,t=e.scope,i=((0,r.default)(e,["children","className","scope"]),n.replace(/^language\-/,"")),o=i.charAt(0),s=d.default.Children.toArray(a).join("\n");switch(o){case".":return d.default.createElement(c.default,{code:s,scope:t,mdx:i.includes(".mdx")});case"!":return d.default.createElement(g.default,{code:s,scope:t});default:return d.default.createElement(u.Pre,{p:3,mt:4,mb:4,bg:"gray",children:a})}};a.code=f;var R=(0,t.default)({MDXTag:s.MDXTag,components:{}},(0,o.default)({a:{is:p},code:{is:f},pre:{is:function(e){return e.children}}}));a.default=R},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=c(n(1)),r=n(175),d=n(87),i=n(13),o=n(56),u=c(n(33)),s=c(n(766));function c(e){return e&&e.__esModule?e:{default:e}}var g=function(e){return""+e+""},l=function(e){return s.default.sync(e,{skipExport:!0})},p=(0,u.default)(r.LivePreview)([],{padding:"16px",border:"1px solid",borderRadius:"2px 2px 0 0"},o.borderColor);p.defaultProps={borderColor:"gray"};var f=(0,u.default)(r.LiveEditor)([],{fontFamily:"Menlo, monospace",fontSize:"13px",margin:0,padding:"16px",overflow:"auto",borderRadius:"0 0 2px 2px","&:focus":{outline:"none",boxShadow:"inset 0 0 0 1px #6cf"}},o.color);f.defaultProps={bg:"gray"};var R=(0,u.default)(r.LiveError)([],{fontFamily:"Menlo, monospace",fontSize:"13px",padding:"8px",color:"white",backgroundColor:"red"});a.default=function(e){var a=e.code,n=e.scope,o=void 0===n?{}:n,u=e.render,s=e.mdx;return t.default.createElement(i.Box,{mb:4},t.default.createElement(d.ScopeConsumer,{defaultScope:o},function(e){return t.default.createElement(r.LiveProvider,{code:a,scope:e,mountStylesheet:!1,transformCode:s?l:g},"function"==typeof u?u({code:a,scope:e}):t.default.createElement(t.default.Fragment,null,t.default.createElement(p,null),t.default.createElement(f,null),t.default.createElement(R,null)))}))}},function(e,a,n){var t=n(743),r=n(748);e.exports=n(60)?function(e,a,n){return t.f(e,a,r(1,n))}:function(e,a,n){return e[a]=n,e}},function(e,a){var n={}.hasOwnProperty;e.exports=function(e,a){return n.call(e,a)}},function(e,a){var n=0,t=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+t).toString(36))}},function(e,a,n){var t=n(59),r=n(58),d=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,a){return d[e]||(d[e]=void 0!==a?a:{})})("versions",[]).push({version:t.version,mode:n(751)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,a,n){var t=n(140),r=n(141);e.exports=function(e){return t(r(e))}},function(e,a,n){var t=n(757);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==t(e)?e.split(""):Object(e)}},function(e,a){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,a){var n=Math.ceil,t=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?t:n)(e)}},function(e,a,n){"use strict";e.exports=function(e){var a="string"==typeof e?e.charCodeAt(0):e;return a>=97&&a<=122||a>=65&&a<=90}},function(e,a,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(796)}},function(e,a,n){"use strict";function t(e){if("string"==typeof e)return function(e){return function(a){return Boolean(a&&a.type===e)}}(e);if(null==e)return i;if("object"==typeof e)return("length"in e?d:r)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function r(e){return function(a){var n;for(n in e)if(a[n]!==e[n])return!1;return!0}}function d(e){var a=function(e){for(var a=[],n=e.length,r=-1;++r1&&(r=Math.floor(r/a)*a),i[r]=n,d=e.charAt(++n);return{indent:r,stops:i}};var t={" ":1,"\t":4}},function(e,a,n){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";a.openCloseTag=new RegExp("^(?:"+t+"|"+r+")"),a.tag=new RegExp("^(?:"+t+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)")},function(e,a,n){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},function(e,a,n){"use strict";e.exports=function(e,a){return e.indexOf("<",a)}},function(e,a,n){"use strict";e.exports=function(e,a){var n=e.indexOf("[",a),t=e.indexOf("![",a);if(-1===t)return n;return n"+e+""};a.default=function(e){var a=e.code,n=e.scope;return d.default.createElement(u.Box,{mb:4},d.default.createElement(o.ScopeConsumer,{defaultScope:n},function(e){return d.default.createElement(i.LiveProvider,{code:a,scope:e,mountStylesheet:!1,transformCode:s},d.default.createElement(i.LivePreview,null),d.default.createElement(i.LiveError,null))}))}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=s(n(36)),r=s(n(40)),d=s(n(41)),i=s(n(42)),o=s(n(45)),u=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function a(){var e,n,d,o;(0,r.default)(this,a);for(var u=arguments.length,s=Array(u),c=0;ca)return{line:n+1,column:a-d,char:n};d=i}throw new Error("Could not determine location of character")}function _(e,a){for(var n="";a--;)n+=e;return n}function w(e,a,n){void 0===n&&(n=1);var t=Math.max(a.line-5,0),r=a.line,d=String(r).length,i=e.split("\n").slice(t,r),o=i[i.length-1].slice(0,a.column).replace(/\t/g," ").length,u=i.map(function(e,a){return n=d,(r=String(a+t+1))+_(" ",n-r.length)+" : "+e.replace(/\t/g," ");var n,r}).join("\n");return u+="\n"+_(" ",d+3+o)+_("^",n)}"do if in for let new try var case else enum eval null this true void with await break catch class const false super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof".split(" ").forEach(function(e){return E[e]=!0}),C.prototype={addDeclaration:function(e,a){for(var n=0,t=b(e);n1&&(c=a(d),o.push(function(a,n,o){e.prependRight(r.start,(i?"":n+"var ")+c+" = "),e.overwrite(r.start,t=r.start+1,d),e.appendLeft(t,o),e.overwrite(r.start,t=r.start+1,(i?"":n+"var ")+c+" = "+d+o),e.move(r.start,t,a)})),P(e,a,n,r,c,i,o);break;case"ArrayPattern":if(e.remove(t,t=r.start),r.elements.filter(Boolean).length>1){var g=a(d);o.push(function(a,n,o){e.prependRight(r.start,(i?"":n+"var ")+g+" = "),e.overwrite(r.start,t=r.start+1,d,{contentOnly:!0}),e.appendLeft(t,o),e.move(r.start,t,a)}),r.elements.forEach(function(r,d){r&&("RestElement"===r.type?O(e,a,n,t,r.argument,g+".slice("+d+")",i,o):O(e,a,n,t,r,g+"["+d+"]",i,o),t=r.end)})}else{var l=k(r.elements,Boolean),p=r.elements[l];"RestElement"===p.type?O(e,a,n,t,p.argument,d+".slice("+l+")",i,o):O(e,a,n,t,p,d+"["+l+"]",i,o),t=p.end}e.remove(t,r.end);break;default:throw new Error("Unexpected node type in destructuring ("+r.type+")")}}var B=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.createScope=function(){var e=this;this.parentIsFunction=/Function/.test(this.parent.type),this.isFunctionBlock=this.parentIsFunction||"Root"===this.parent.type,this.scope=new C({block:!this.isFunctionBlock,parent:this.parent.findScope(!1),declare:function(a){return e.createdDeclarations.push(a)}}),this.parentIsFunction&&this.parent.params.forEach(function(a){e.scope.addDeclaration(a,"param")})},a.prototype.initialise=function(e){this.thisAlias=null,this.argumentsAlias=null,this.defaultParameters=[],this.createdDeclarations=[],this.scope||this.createScope(),this.body.forEach(function(a){return a.initialise(e)}),this.scope.consolidate()},a.prototype.findLexicalBoundary=function(){return"Program"===this.type?this:/^Function/.test(this.parent.type)?this:this.parent.findLexicalBoundary()},a.prototype.findScope=function(e){return e&&!this.isFunctionBlock?this.parent.findScope(e):this.scope},a.prototype.getArgumentsAlias=function(){return this.argumentsAlias||(this.argumentsAlias=this.scope.createIdentifier("arguments")),this.argumentsAlias},a.prototype.getArgumentsArrayAlias=function(){return this.argumentsArrayAlias||(this.argumentsArrayAlias=this.scope.createIdentifier("argsArray")),this.argumentsArrayAlias},a.prototype.getThisAlias=function(){return this.thisAlias||(this.thisAlias=this.scope.createIdentifier("this")),this.thisAlias},a.prototype.getIndentation=function(){if(void 0===this.indentation){for(var e=this.program.magicString.original,a=this.synthetic||!this.body.length,n=a?this.start:this.body[0].start;n&&"\n"!==e[n];)n-=1;for(this.indentation="";;){var t=e[n+=1];if(" "!==t&&"\t"!==t)break;this.indentation+=t}for(var r=this.program.magicString.getIndentString(),d=this.parent;d;)"constructor"!==d.kind||d.parent.parent.superClass||(this.indentation=this.indentation.replace(r,"")),d=d.parent;a&&(this.indentation+=r)}return this.indentation},a.prototype.transpile=function(a,n){var t,r,d=this,i=this.getIndentation(),o=[];if(this.argumentsAlias&&o.push(function(e,n,t){var r=n+"var "+d.argumentsAlias+" = arguments"+t;a.appendLeft(e,r)}),this.thisAlias&&o.push(function(e,n,t){var r=n+"var "+d.thisAlias+" = this"+t;a.appendLeft(e,r)}),this.argumentsArrayAlias&&o.push(function(e,n,t){var r=d.scope.createIdentifier("i"),o=n+"var "+r+" = arguments.length, "+d.argumentsArrayAlias+" = Array("+r+");\n"+i+"while ( "+r+"-- ) "+d.argumentsArrayAlias+"["+r+"] = arguments["+r+"]"+t;a.appendLeft(e,o)}),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,a,n,i,o):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],a,n,i,o),n.letConst&&this.isFunctionBlock&&this.transpileBlockScopedIdentifiers(a),e.prototype.transpile.call(this,a,n),this.createdDeclarations.length&&o.push(function(e,n,t){var r=n+"var "+d.createdDeclarations.join(", ")+t;a.appendLeft(e,r)}),this.synthetic)if("ArrowFunctionExpression"===this.parent.type){var u=this.body[0];o.length?(a.appendLeft(this.start,"{").prependRight(this.end,this.parent.getIndentation()+"}"),a.prependRight(u.start,"\n"+i+"return "),a.appendLeft(u.end,";\n")):n.arrow&&(a.prependRight(u.start,"{ return "),a.appendLeft(u.end,"; }"))}else o.length&&a.prependRight(this.start,"{").appendLeft(this.end,"}");r=this.body[0],t=r&&"ExpressionStatement"===r.type&&"Literal"===r.expression.type&&"use strict"===r.expression.value?this.body[0].end:this.synthetic||"Root"===this.parent.type?this.start:this.start+1;var s="\n"+i,c=";";o.forEach(function(e,a){a===o.length-1&&(c=";\n"),e(t,s,c)})},a.prototype.transpileParameters=function(e,a,n,t,r){var d=this;e.forEach(function(i){if("AssignmentPattern"===i.type&&"Identifier"===i.left.type)n.defaultParameter&&r.push(function(e,n,t){var r=n+"if ( "+i.left.name+" === void 0 ) "+i.left.name;a.prependRight(i.left.end,r).move(i.left.end,i.right.end,e).appendLeft(i.right.end,t)});else if("RestElement"===i.type)n.spreadRest&&r.push(function(n,r,o){var u=e[e.length-2];if(u)a.remove(u?u.end:i.start,i.end);else{for(var s=i.start,c=i.end;/\s/.test(a.original[s-1]);)s-=1;for(;/\s/.test(a.original[c]);)c+=1;a.remove(s,c)}var g=i.argument.name,l=d.scope.createIdentifier("len"),p=e.length-1;p?a.prependRight(n,r+"var "+g+" = [], "+l+" = arguments.length - "+p+";\n"+t+"while ( "+l+"-- > 0 ) "+g+"[ "+l+" ] = arguments[ "+l+" + "+p+" ]"+o):a.prependRight(n,r+"var "+g+" = [], "+l+" = arguments.length;\n"+t+"while ( "+l+"-- ) "+g+"[ "+l+" ] = arguments[ "+l+" ]"+o)});else if("Identifier"!==i.type&&n.parameterDestructuring){var o=d.scope.createIdentifier("ref");F(a,function(e){return d.scope.createIdentifier(e)},function(e){var a=e.name;return d.scope.resolveName(a)},i,o,!1,r),a.prependRight(i.start,o)}})},a.prototype.transpileBlockScopedIdentifiers=function(e){var a=this;Object.keys(this.scope.blockScopedDeclarations).forEach(function(n){for(var t=0,r=a.scope.blockScopedDeclarations[n];tthis.start?a.overwrite(this.start,o,s):a.prependRight(this.start,s)}else e.prototype.transpile.call(this,a,n);n.trailingFunctionCommas&&this.params.length&&!d&&z(a,this.params[this.params.length-1].end)},a.prototype.needsArguments=function(e){return e.spreadRest&&this.params.filter(function(e){return"RestElement"===e.type}).length>0},a}(v);function H(e,a){var n=a.findDeclaration(e.name);if(n&&"const"===n.kind)throw new S(e.name+" is read-only",e)}var V=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){if("Identifier"===this.left.type){var n=this.findScope(!1).findDeclaration(this.left.name),t=n&&n.node.ancestor(3);t&&"ForStatement"===t.type&&t.body.contains(this)&&(t.reassigned[this.left.name]=!0)}e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){"Identifier"===this.left.type&&H(this.left,this.findScope(!1)),"**="===this.operator&&n.exponentiation?this.transpileExponentiation(a,n):/Pattern/.test(this.left.type)&&n.destructuring&&this.transpileDestructuring(a),e.prototype.transpile.call(this,a,n)},a.prototype.transpileDestructuring=function(e){var a=this,n=this.findScope(!0),t=this.findScope(!1),r=n.createDeclaration("assign");e.appendRight(this.left.end,"("+r),e.appendLeft(this.right.end,", ");var d=[];F(e,function(e){return n.createDeclaration(e)},function(e){var a=t.resolveName(e.name);return H(e,t),a},this.left,r,!0,d);var i=", ";d.forEach(function(e,n){n===d.length-1&&(i=""),e(a.end,"",i)}),"ExpressionStatement"===this.unparenthesizedParent().type?e.prependRight(this.end,")"):e.appendRight(this.end,", "+r+")")},a.prototype.transpileExponentiation=function(e){for(var a,n=this.findScope(!1),t=this.left.end;"*"!==e.original[t];)t+=1;e.remove(t,t+2);var r=this.left.unparenthesize();if("Identifier"===r.type)a=n.resolveName(r.name);else if("MemberExpression"===r.type){var d,i,o=!1,u=!1,s=this.findNearest(/(?:Statement|Declaration)$/),c=s.getIndentation();"Identifier"===r.property.type?i=r.computed?n.resolveName(r.property.name):r.property.name:(i=n.createDeclaration("property"),u=!0),"Identifier"===r.object.type?d=n.resolveName(r.object.name):(d=n.createDeclaration("object"),o=!0),r.start===s.start?o&&u?(e.prependRight(s.start,d+" = "),e.overwrite(r.object.end,r.property.start,";\n"+c+i+" = "),e.overwrite(r.property.end,r.end,";\n"+c+d+"["+i+"]")):o?(e.prependRight(s.start,d+" = "),e.appendLeft(r.object.end,";\n"+c),e.appendLeft(r.object.end,d)):u&&(e.prependRight(r.property.start,i+" = "),e.appendLeft(r.property.end,";\n"+c),e.move(r.property.start,r.property.end,this.start),e.appendLeft(r.object.end,"["+i+"]"),e.remove(r.object.end,r.property.start),e.remove(r.property.end,r.end)):(o&&u?(e.prependRight(r.start,"( "+d+" = "),e.overwrite(r.object.end,r.property.start,", "+i+" = "),e.overwrite(r.property.end,r.end,", "+d+"["+i+"]")):o?(e.prependRight(r.start,"( "+d+" = "),e.appendLeft(r.object.end,", "+d)):u&&(e.prependRight(r.property.start,"( "+i+" = "),e.appendLeft(r.property.end,", "),e.move(r.property.start,r.property.end,r.start),e.overwrite(r.object.end,r.property.start,"["+i+"]"),e.remove(r.property.end,r.end)),u&&e.appendLeft(this.end," )")),a=d+(r.computed||u?"["+i+"]":"."+i)}e.prependRight(this.right.start,"Math.pow( "+a+", "),e.appendLeft(this.right.end," )")},a}(v),W=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){a.asyncAwait&&S.missingTransform("await","asyncAwait",this),e.prototype.initialise.call(this,a)},a}(v),G=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){"**"===this.operator&&n.exponentiation&&(a.prependRight(this.start,"Math.pow( "),a.overwrite(this.left.end,this.right.start,", "),a.appendLeft(this.end," )")),e.prototype.transpile.call(this,a,n)},a}(v),$=/(?:For(?:In|Of)?|While)Statement/,q=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(){var e=this.findNearest($),a=this.findNearest("SwitchCase");e&&(!a||e.depth>a.depth)&&(e.canBreak=!0,this.loop=e)},a.prototype.transpile=function(e){if(this.loop&&this.loop.shouldRewriteAsFunction){if(this.label)throw new S("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+5,"return 'break'")}},a}(v),K=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){if(a.spreadRest&&this.arguments.length>1)for(var n=this.findLexicalBoundary(),t=this.arguments.length;t--;){var r=this.arguments[t];"SpreadElement"===r.type&&T(r.argument)&&(this.argumentsArrayAlias=n.getArgumentsArrayAlias())}e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){if(n.spreadRest&&this.arguments.length&&M(a,this,this.arguments),n.spreadRest&&this.arguments.length){var t,r=!1,d=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===d.type&&(a.remove(d.start,d.argument.start),r=!0):r=L(a,this.arguments,d.start,this.argumentsArrayAlias),r){var i=null;if("Super"===this.callee.type?i=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(i=this.callee.object),i||"MemberExpression"!==this.callee.type)t="void 0";else if("Identifier"===this.callee.object.type)t=this.callee.object.name;else{t=this.findScope(!0).createDeclaration("ref");var o=this.callee.object;a.prependRight(o.start,"("+t+" = "),a.appendLeft(o.end,")")}a.appendLeft(this.callee.end,".apply"),i?(i.noCall=!0,this.arguments.length>1&&("SpreadElement"===d.type?I(d.argument)&&a.prependRight(d.start,"( "):a.prependRight(d.start,"[ "),a.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?a.prependRight(d.start,t+", "):("SpreadElement"===d.type?I(d.argument)?a.appendLeft(d.start,t+", ( "):a.appendLeft(d.start,t+", "):a.appendLeft(d.start,t+", [ "),a.appendLeft(this.arguments[this.arguments.length-1].end," )"))}}n.trailingFunctionCommas&&this.arguments.length&&z(a,this.arguments[this.arguments.length-1].end),e.prototype.transpile.call(this,a,n)},a}(v),X=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n,t,r){var d=this;if(n.classes){var i=this.parent.name,o=a.getIndentString(),u=this.getIndentation()+(t?o:""),s=u+o,c=k(this.body,function(e){return"constructor"===e.kind}),g=this.body[c],l="",p="";if(this.body.length?(a.remove(this.start,this.body[0].start),a.remove(this.body[this.body.length-1].end,this.end)):a.remove(this.start,this.end),g){g.value.body.isConstructorBody=!0;var f=this.body[c-1],R=this.body[c+1];c>0&&(a.remove(f.end,g.start),a.move(g.start,R?R.start:this.end-1,this.body[0].start)),t||a.appendLeft(g.end,";")}var h=!1!==this.program.options.namedFunctionExpressions,m=h||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var y="if ( "+r+" ) "+i+".__proto__ = "+r+";\n"+u+i+".prototype = Object.create( "+r+" && "+r+".prototype );\n"+u+i+".prototype.constructor = "+i+";";if(g)l+="\n\n"+u+y;else l+=(y="function "+i+" () {"+(r?"\n"+s+r+".apply(this, arguments);\n"+u+"}":"}")+(t?"":";")+(this.body.length?"\n\n"+u:"")+y)+"\n\n"+u}else if(!g){var v="function "+(m?i+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(v+=";"),this.body.length&&(v+="\n\n"+u),l+=v}var b,x,C=this.findScope(!1),A=[],_=[];if(this.body.forEach(function(e,t){if("get"!==e.kind&&"set"!==e.kind||!n.getterSetter||S.missingTransform("getters and setters","getterSetter",e),"constructor"!==e.kind){if(e.static){var r=" "==a.original[e.start+6]?7:6;a.remove(e.start,e.start+r)}var o,s="method"!==e.kind,g=e.key.name;(E[g]||e.value.body.scope.references[g])&&(g=C.createIdentifier(g));var l=!1;if(e.computed||"Literal"!==e.key.type||(l=!0,e.computed=!0),s){if(e.computed)throw new Error("Computed accessor properties are not currently supported");a.remove(e.start,e.key.start),e.static?(~_.indexOf(e.key.name)||_.push(e.key.name),x||(x=C.createIdentifier("staticAccessors")),o=""+x):(~A.indexOf(e.key.name)||A.push(e.key.name),b||(b=C.createIdentifier("prototypeAccessors")),o=""+b)}else o=e.static?""+i:i+".prototype";e.computed||(o+="."),(c>0&&t===c+1||0===t&&c===d.body.length-1)&&(o="\n\n"+u+o);var p=e.key.end;if(e.computed)if(l)a.prependRight(e.key.start,"["),a.appendLeft(e.key.end,"]");else{for(;"]"!==a.original[p];)p+=1;p+=1}var f=e.computed||s||!h?"":g+" ",R=(s?"."+e.kind:"")+" = "+(e.value.async?"async ":"")+"function"+(e.value.generator?"* ":" ")+f;a.remove(p,e.value.start),a.prependRight(e.value.start,R),a.appendLeft(e.end,";"),e.value.generator&&a.remove(e.start,e.key.start);var y=e.key.start;if(e.computed&&!l)for(;"["!=a.original[y];)--y;e.startthis.depth){this.shouldRewriteAsFunction=!0;for(var u=0,s=this.thisRefs;ua.depth&&(this.alias=a.getArgumentsAlias()),t&&t.body.contains(this)&&t.depth>a.depth&&(this.alias=a.getArgumentsAlias())}this.findScope(!1).addReference(this)}},a.prototype.transpile=function(e){this.alias&&e.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},a}(v),ue=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){("BlockStatement"!==this.consequent.type||"BlockStatement"===this.consequent.type&&this.consequent.synthetic)&&(a.appendLeft(this.consequent.start,"{ "),a.prependRight(this.consequent.end," }")),this.alternate&&"IfStatement"!==this.alternate.type&&("BlockStatement"!==this.alternate.type||"BlockStatement"===this.alternate.type&&this.alternate.synthetic)&&(a.appendLeft(this.alternate.start,"{ "),a.prependRight(this.alternate.end," }")),e.prototype.transpile.call(this,a,n)},a}(v),se=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){a.moduleImport&&S.missingTransform("dynamic import expressions","moduleImport",this),e.prototype.initialise.call(this,a)},a}(v),ce=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){a.moduleImport&&S.missingTransform("import","moduleImport",this),e.prototype.initialise.call(this,a)},a}(v),ge=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){this.findScope(!0).addDeclaration(this.local,"import"),e.prototype.initialise.call(this,a)},a}(v),le=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){this.findScope(!0).addDeclaration(this.local,"import"),e.prototype.initialise.call(this,a)},a}(v),pe=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){var t,r=this.name,d=r.start,i=r.name,o=this.value?this.value.start:this.name.end;a.overwrite(d,o,(/-/.test(t=i)?"'"+t+"'":t)+": "+(this.value?"":"true")),e.prototype.transpile.call(this,a,n)},a}(v);var fe=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(e){var a,n=!0,t=this.parent.children[this.parent.children.length-1];(t&&("JSXText"===(a=t).type&&!/\S/.test(a.value)&&/\n/.test(a.value))||this.parent.openingElement.attributes.length)&&(n=!1),e.overwrite(this.start,this.end,n?" )":")")},a}(v);var Re=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(e){var a,n=!0,t=this.parent.children[this.parent.children.length-1];t&&("JSXText"===(a=t).type&&!/\S/.test(a.value)&&/\n/.test(a.value))&&(n=!1),e.overwrite(this.start,this.end,n?" )":")")},a}(v);function he(e,a){return e=e.replace(/\u00a0/g," "),a&&/\n/.test(e)&&(e=e.replace(/\s+$/,"")),e=e.replace(/^\n\r?\s+/,"").replace(/\s*\n\r?\s*/gm," "),JSON.stringify(e)}var me=function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){e.prototype.transpile.call(this,a,n);var t=this.children.filter(function(e){return"JSXText"!==e.type||(/\S/.test(e.raw)||!/\n/.test(e.raw))});if(t.length){var r,d=(this.openingElement||this.openingFragment).end;for(r=0;r0&&(c.start===d?a.prependRight(d,", "):a.overwrite(d,c.start,", ")),s&&"JSXSpreadAttribute"!==c.type){var g=this.attributes[i-1],l=this.attributes[i+1];g&&"JSXSpreadAttribute"!==g.type||a.prependRight(c.start,"{ "),l&&"JSXSpreadAttribute"!==l.type||a.appendLeft(c.end," }")}d=c.end}if(s)if(1===r)u=t?"',":",";else{if(!this.program.options.objectAssign)throw new S("Mixed JSX attributes ending in spread requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);u=t?"', "+this.program.options.objectAssign+"({},":", "+this.program.options.objectAssign+"({},",o=")"}else u=t?"', {":", {",o=" }";a.prependRight(this.name.end,u),o&&a.appendLeft(this.attributes[r-1].end,o)}else a.appendLeft(this.name.end,t?"', null":", null"),d=this.name.end;this.selfClosing?a.overwrite(d,this.end,this.attributes.length?")":" )"):a.remove(d,this.end)},a}(v),JSXOpeningFragment:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(e){e.overwrite(this.start,this.end,this.program.jsx+"( "+this.program.jsxFragment+", null")},a}(v),JSXSpreadAttribute:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){a.remove(this.start,this.argument.start),a.remove(this.argument.end,this.end),e.prototype.transpile.call(this,a,n)},a}(v),Literal:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(){"string"==typeof this.value&&this.program.indentExclusionElements.push(this)},a.prototype.transpile=function(e,a){if(a.numericLiteral&&this.raw.match(/^0[bo]/i)&&e.overwrite(this.start,this.end,String(this.value),{storeName:!0,contentOnly:!0}),this.regex){var n=this.regex,t=n.pattern,r=n.flags;a.stickyRegExp&&/y/.test(r)&&S.missingTransform("the regular expression sticky flag","stickyRegExp",this),a.unicodeRegExp&&/u/.test(r)&&e.overwrite(this.start,this.end,"/"+g()(t,r)+"/"+r.replace("u",""),{contentOnly:!0})}else"string"==typeof this.value&&this.value.match(ye)&&e.overwrite(this.start,this.end,this.raw.replace(ye,function(e){return"\u2028"==e?"\\u2028":"\\u2029"}),{contentOnly:!0})},a}(v),MemberExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){n.reservedProperties&&E[this.property.name]&&(a.overwrite(this.object.end,this.property.start,"['"),a.appendLeft(this.property.end,"']")),e.prototype.transpile.call(this,a,n)},a}(v),NewExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){if(a.spreadRest&&this.arguments.length)for(var n=this.findLexicalBoundary(),t=this.arguments.length;t--;){var r=this.arguments[t];if("SpreadElement"===r.type&&T(r.argument)){this.argumentsArrayAlias=n.getArgumentsArrayAlias();break}}e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){if(e.prototype.transpile.call(this,a,n),n.spreadRest&&this.arguments.length&&M(a,this,this.arguments),n.spreadRest&&this.arguments.length){var t=this.arguments[0];L(a,this.arguments,t.start,this.argumentsArrayAlias,!0)&&(a.prependRight(this.start+"new".length," (Function.prototype.bind.apply("),a.overwrite(this.callee.end,t.start,", [ null ].concat( "),a.appendLeft(this.end," ))"))}this.arguments.length&&z(a,this.arguments[this.arguments.length-1].end)},a}(v),ObjectExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){var t;e.prototype.transpile.call(this,a,n);for(var r=this.start+1,d=0,i=0,o=null,u=null,s=0;s0?(a.remove(c.start,g.properties[0].start),a.remove(g.properties[g.properties.length-1].end,c.end),(t=this.properties).splice.apply(t,[s,1].concat(g.properties)),s--):(a.remove(c.start,s===this.properties.length-1?c.end:this.properties[s+1].start),this.properties.splice(s,1),s--):(d+=1,null===o&&(o=s))}else c.computed&&n.computedProperty&&(i+=1,null===u&&(u=s))}if(!d||n.objectRestSpread||i&&n.computedProperty){if(d){if(!this.program.options.objectAssign)throw new S("Object spread operator requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);for(var l=this.properties.length;l--;){var p=this.properties[l];if("Property"===p.type&&!i){var f=this.properties[l-1],R=this.properties[l+1];f&&"Property"===f.type||a.prependRight(p.start,"{"),R&&"Property"===R.type||a.appendLeft(p.end,"}")}"SpreadElement"===p.type&&(a.remove(p.start,p.argument.start),a.remove(p.argument.end,p.end))}r=this.properties[0].start,i?"SpreadElement"===this.properties[0].type?(a.overwrite(this.start,r,this.program.options.objectAssign+"({}, "),a.remove(this.end-1,this.end),a.appendRight(this.end,")")):(a.prependLeft(this.start,this.program.options.objectAssign+"("),a.appendRight(this.end,")")):(a.overwrite(this.start,r,this.program.options.objectAssign+"({}, "),a.overwrite(this.properties[this.properties.length-1].end,this.end,")"))}}else d=0,o=null;if(i&&n.computedProperty){var h,m,y=this.getIndentation();"VariableDeclarator"===this.parent.type&&1===this.parent.parent.declarations.length&&"Identifier"===this.parent.id.type?(h=!0,m=this.parent.id.alias||this.parent.id.name):"AssignmentExpression"===this.parent.type&&"ExpressionStatement"===this.parent.parent.type&&"Identifier"===this.parent.left.type?(h=!0,m=this.parent.left.alias||this.parent.left.name):"AssignmentPattern"===this.parent.type&&"Identifier"===this.parent.left.type&&(h=!0,m=this.parent.left.alias||this.parent.left.name),d&&(h=!1),m=this.findScope(!1).resolveName(m);var v=r,b=this.end;h||(null===o||uj&&a.remove(j,w.value.start),a.prependLeft(j," = ")):a.overwrite(w.start,w.value.start,"["+a.slice(w.start,w.key.end)+"] = "),!w.method||!w.computed&&n.conciseMethodProperty||(w.value.generator&&a.remove(w.start,w.key.start),a.prependRight(w.value.start,"function"+(w.value.generator?"*":"")+" "))}else"SpreadElement"===w.type?m&&_>0&&(x||(x=this.properties[_-1]),a.appendLeft(x.end,", "+m+" )"),x=null,m=null):(!A&&d&&(a.prependRight(w.start,"{"),a.appendLeft(w.end,"}")),C=!0);if(A&&("SpreadElement"===w.type||w.computed)){var P=C?this.properties[this.properties.length-1].end:this.end-1;","==a.original[P]&&++P;var O=a.slice(P,b);a.prependLeft(k,O),a.remove(P,b),A=!1}var B=w.end;if(_this.nearestFunction.depth)&&(this.loop.canReturn=!0,this.shouldWrap=!0),this.argument&&this.argument.initialise(e)},a.prototype.transpile=function(e,a){var n=this.shouldWrap&&this.loop&&this.loop.shouldRewriteAsFunction;this.argument?(n&&e.prependRight(this.argument.start,"{ v: "),this.argument.transpile(e,a),n&&e.appendLeft(this.argument.end," }")):n&&e.appendLeft(this.start+6," {}")},a}(v),Super:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(e){if(e.classes){if(this.method=this.findNearest("MethodDefinition"),!this.method)throw new S("use of super outside class method",this);var a=this.findNearest("ClassBody").parent;if(this.superClassName=a.superClass&&(a.superClass.name||"superclass"),!this.superClassName)throw new S("super used in base class",this);if(this.isCalled="CallExpression"===this.parent.type&&this===this.parent.callee,"constructor"!==this.method.kind&&this.isCalled)throw new S("super() not allowed outside class constructor",this);if(this.isMember="MemberExpression"===this.parent.type,!this.isCalled&&!this.isMember)throw new S("Unexpected use of `super` (expected `super(...)` or `super.*`)",this)}if(e.arrow){var n=this.findLexicalBoundary(),t=this.findNearest("ArrowFunctionExpression"),r=this.findNearest($);t&&t.depth>n.depth&&(this.thisAlias=n.getThisAlias()),r&&r.body.contains(this)&&r.depth>n.depth&&(this.thisAlias=n.getThisAlias())}},a.prototype.transpile=function(e,a){if(a.classes){var n=this.isCalled||this.method.static?this.superClassName:this.superClassName+".prototype";e.overwrite(this.start,this.end,n,{storeName:!0,contentOnly:!0});var t=this.isCalled?this.parent:this.parent.parent;if(t&&"CallExpression"===t.type){this.noCall||e.appendLeft(t.callee.end,".call");var r=this.thisAlias||"this";t.arguments.length?e.appendLeft(t.arguments[0].start,r+", "):e.appendLeft(t.end-1,""+r)}}},a}(v),TaggedTemplateExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){a.templateString&&!a.dangerousTaggedTemplateString&&S.missingTransform("tagged template strings","templateString",this,"dangerousTaggedTemplateString"),e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){if(n.templateString&&n.dangerousTaggedTemplateString){var t=this.quasi.expressions.concat(this.quasi.quasis).sort(function(e,a){return e.start-a.start}),r=this.program.body.scope,d=this.quasi.quasis.map(function(e){return JSON.stringify(e.value.cooked)}).join(", "),i=this.program.templateLiteralQuasis[d];i||(i=r.createIdentifier("templateObject"),a.prependLeft(this.program.prependAt,"var "+i+" = Object.freeze(["+d+"]);\n"),this.program.templateLiteralQuasis[d]=i),a.overwrite(this.tag.end,t[0].start,"("+i);var o=t[0].start;t.forEach(function(e){"TemplateElement"===e.type?a.remove(o,e.end):a.overwrite(o,e.start,", "),o=e.end}),a.overwrite(o,this.end,")")}e.prototype.transpile.call(this,a,n)},a}(v),TemplateElement:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(){this.program.indentExclusionElements.push(this)},a}(v),TemplateLiteral:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.transpile=function(a,n){if(e.prototype.transpile.call(this,a,n),n.templateString&&"TaggedTemplateExpression"!==this.parent.type){var t=this.expressions.concat(this.quasis).sort(function(e,a){return e.start-a.start||e.end-a.end}).filter(function(e,a){return"TemplateElement"!==e.type||(!!e.value.raw||!a)});if(t.length>=3){var r=t[0],d=t[2];"TemplateElement"===r.type&&""===r.value.raw&&"TemplateElement"===d.type&&t.shift()}var i=!(1===this.quasis.length&&0===this.expressions.length||"TemplateLiteral"===this.parent.type||"AssignmentExpression"===this.parent.type||"AssignmentPattern"===this.parent.type||"VariableDeclarator"===this.parent.type||"BinaryExpression"===this.parent.type&&"+"===this.parent.operator);i&&a.appendRight(this.start,"(");var o=this.start;t.forEach(function(e,n){var t=0===n?i?"(":"":" + ";if("TemplateElement"===e.type)a.overwrite(o,e.end,t+JSON.stringify(e.value.cooked));else{var r="Identifier"!==e.type;r&&(t+="("),a.remove(o,e.start),t&&a.prependRight(e.start,t),r&&a.appendLeft(e.end,")")}o=e.end}),i&&a.appendLeft(o,")"),a.overwrite(o,this.end,"",{contentOnly:!0})}},a}(v),ThisExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(e){var a=this.findLexicalBoundary();if(e.letConst)for(var n=this.findNearest($);n&&n.depth>a.depth;)n.thisRefs.push(this),n=n.parent.findNearest($);if(e.arrow){var t=this.findNearest("ArrowFunctionExpression");t&&t.depth>a.depth&&(this.alias=a.getThisAlias())}},a.prototype.transpile=function(e){this.alias&&e.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},a}(v),UpdateExpression:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){if("Identifier"===this.argument.type){var n=this.findScope(!1).findDeclaration(this.argument.name),t=n&&n.node.ancestor(3);t&&"ForStatement"===t.type&&t.body.contains(this)&&(t.reassigned[this.argument.name]=!0)}e.prototype.initialise.call(this,a)},a.prototype.transpile=function(a,n){"Identifier"===this.argument.type&&H(this.argument,this.findScope(!1)),e.prototype.transpile.call(this,a,n)},a}(v),VariableDeclaration:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(e){this.scope=this.findScope("var"===this.kind),this.declarations.forEach(function(a){return a.initialise(e)})},a.prototype.transpile=function(e,a){var n=this,t=this.getIndentation(),r=this.kind;if(a.letConst&&"var"!==r&&(r="var",e.overwrite(this.start,this.start+this.kind.length,r,{contentOnly:!0,storeName:!0})),a.destructuring&&"ForOfStatement"!==this.parent.type&&"ForInStatement"!==this.parent.type){var d,i=this.start;this.declarations.forEach(function(r,o){if(r.transpile(e,a),"Identifier"===r.id.type)o>0&&"Identifier"!==n.declarations[o-1].id.type&&e.overwrite(i,r.id.start,"var ");else{var u=$.test(n.parent.type);0===o?e.remove(i,r.id.start):e.overwrite(i,r.id.start,";\n"+t);var s="Identifier"===r.init.type&&!r.init.rewritten,c=s?r.init.alias||r.init.name:r.findScope(!0).createIdentifier("ref");i=r.start;var g=[];s?e.remove(r.id.end,r.end):g.push(function(a,n,t){e.prependRight(r.id.end,"var "+c),e.appendLeft(r.init.end,""+t),e.move(r.id.end,r.end,a)});var l=r.findScope(!1);F(e,function(e){return l.createIdentifier(e)},function(e){var a=e.name;return l.resolveName(a)},r.id,c,u,g);var p=u?"var ":"",f=u?", ":";\n"+t;g.forEach(function(e,a){o===n.declarations.length-1&&a===g.length-1&&(f=u?"":";"),e(r.start,0===a?p:"",f)})}i=r.end,d="Identifier"!==r.id.type}),d&&this.end>i&&e.overwrite(i,this.end,"",{contentOnly:!0})}else this.declarations.forEach(function(n){n.transpile(e,a)})},a}(v),VariableDeclarator:function(e){function a(){e.apply(this,arguments)}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.initialise=function(a){var n=this.parent.kind;"let"===n&&"ForStatement"===this.parent.parent.type&&(n="for.let"),this.parent.scope.addDeclaration(this.id,n),e.prototype.initialise.call(this,a)},a.prototype.transpile=function(e,a){if(!this.init&&a.letConst&&"var"!==this.parent.kind){var n=this.findNearest(/Function|^For(In|Of)?Statement|^(?:Do)?WhileStatement/);!n||/Function/.test(n.type)||this.isLeftDeclaratorOfLoop()||e.appendLeft(this.id.end," = (void 0)")}this.id&&this.id.transpile(e,a),this.init&&this.init.transpile(e,a)},a.prototype.isLeftDeclaratorOfLoop=function(){return this.parent&&"VariableDeclaration"===this.parent.type&&this.parent.parent&&("ForInStatement"===this.parent.parent.type||"ForOfStatement"===this.parent.parent.type)&&this.parent.parent.left&&this.parent.parent.left.declarations[0]===this},a}(v),WhileStatement:ae},be={Program:["body"],Literal:[]},xe={IfStatement:"consequent",ForStatement:"body",ForInStatement:"body",ForOfStatement:"body",WhileStatement:"body",DoWhileStatement:"body",ArrowFunctionExpression:"body"};function Ee(e,a,n,t){this.type="Root",this.jsx=t.jsx||"React.createElement",this.jsxFragment=t.jsxFragment||"React.Fragment",this.options=t,this.source=e,this.magicString=new l.a(e),this.ast=a,this.depth=0,function e(a,n){if(a)if("length"in a)for(var t=a.length;t--;)e(a[t],n);else if(!a.__wrapped){a.__wrapped=!0,be[a.type]||(be[a.type]=Object.keys(a).filter(function(e){return"object"==typeof a[e]}));var r=xe[a.type];if(r&&"BlockStatement"!==a[r].type){var d=a[r];a[r]={start:d.start,end:d.end,type:"BlockStatement",body:[d],synthetic:!0}}a.parent=n,a.program=n.program||n,a.depth=n.depth+1,a.keys=be[a.type],a.indentation=void 0;for(var i=0,o=be[a.type];i1&&void 0!==arguments[1]?arguments[1]:"jsx";return Object(t.highlight)(e,t.languages[a])},Be=/^((\t| )+)/gm,Te=/\t/g,Me=function(e){return e.replace(Be,function(e,a){return a.replace(Te," ")})},Ie=function(e){return e.replace("\n","
")},Le=function(e){return d()(e.replace(/
/gm,"\n").replace(/<\/?[^>]*>/gm,""))};function Ne(e,a){var n=window.getSelection();if(1==arguments.length){if(!n.rangeCount)return;var t={},r=(c=n.getRangeAt(0)).cloneRange();return r.selectNodeContents(e),r.setEnd(c.endContainer,c.endOffset),t.end=r.toString().length,r.setStart(c.startContainer,c.startOffset),t.start=t.end-r.toString().length,t.atStart=0===r.startOffset,t.commonAncestorContainer=r.commonAncestorContainer,t.endContainer=r.endContainer,t.startContainer=r.startContainer,t}for(var d,i,u=a.end&&a.end!==a.start,s=0,c=document.createRange(),g=o()(e).select(Node.TEXT_NODE).revisit(!1),l=a.start>e.textContent.length?e.textContent.length:a.start,p=a.end>e.textContent.length?e.textContent.length:a.end,f=a.atStart;d=g.next();){var R=s;if(s+=d.textContent.length,!i&&(f?s>l:s>=l)&&(i=!0,c.setStart(d,l-R),!u)){c.collapse(!0),ze(e,c);break}if(u&&s>=p){c.setEnd(d,p-R),ze(e,c);break}}}function ze(e,a){var n=window.getSelection();e.focus(),n.removeAllRanges(),n.addRange(a)}var Ue=function(e,a){var n=e.slice(0,a),t=n.lastIndexOf("\n")+1;return n.slice(t)},He=/^\s+/,Ve=function(e,a){var n=Ue(e,a).match(He);return null===n?"":n[0]||""},We=/^(\t| )* $/,Ge=function(e,a){var n=Ue(e,a);return We.test(n)?2:0},$e=function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")},qe=Object.assign||function(e){for(var a=1;a=0||Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n},Ye=function(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a},Qe=function(e){function a(){var n,t;$e(this,a);for(var r=arguments.length,d=Array(r),i=0;i0&&(t.undoStack=t.undoStack.slice(0,-t.undoOffset),t.undoOffset=0);var n=Date.now(),r={plain:e,selection:a};n-t.undoTimestamp<3e3?t.undoStack[t.undoStack.length-1]=r:(t.undoStack.push(r),t.undoStack.length>50&&t.undoStack.shift()),t.undoTimestamp=n}},t.updateContent=function(e){t.compositing||(t.setState({html:Oe(e,t.props.language)}),t.props.onChange&&t.props.onChange(e))},t.restoreStackState=function(e){var a=t.undoStack[t.undoStack.length-1-e],n=a.plain,r=a.selection;t.selection=r,t.undoOffset=e,t.updateContent(n)},t.undo=function(){var e=t.undoOffset+1;e>=t.undoStack.length||t.restoreStackState(e)},t.redo=function(){var e=t.undoOffset-1;e<0||t.restoreStackState(e)},t.onKeyDown=function(e){if(t.props.onKeyDown&&t.props.onKeyDown(e),9!==e.keyCode||t.props.ignoreTabKey)if(8===e.keyCode){var a=Ne(t.ref),n=a.start;if(n!==a.end)return;var r=Ge(t.getPlain(),n);if(r<=0)return;for(var d=0;d","<":"<",""":'"'}},function(e,a,n){var t=n(327),r=n(328);function d(e,a){if(!(this instanceof d))return new d(e,a);if(this.node=this.start=this.peeked=e,this.root=a,this.closingTag=!1,this._revisit=!0,this._selects=[],this._rejects=[],e&&this.higher(e))throw new Error("root must be a parent or ancestor to node")}function i(e,a){var n="nextSibling"==e;return function(r,d,i){r=this.compile(r),d=d&&d>0?d:1;for(var o=this.node,u=this.closingTag,s=this._revisit;o;){if(t(n,u)&&o[a])o=o[a],u=!n;else if(1==o.nodeType&&!o[a]&&t(n,u)){if(u=n,!s)continue}else if(o[e])o=o[e],u=!n;else if(o=o.parentNode,u=n,!s)continue;if(!o||this.higher(o,this.root))break;if(r(o)&&this.selects(o,i)&&this.rejects(o,i)){if(--d)continue;return i||(this.node=o),this.closingTag=u,o}}return null}}e.exports=d,d.prototype.reset=function(e){return this.node=e||this.start,this},d.prototype.revisit=function(e){return this._revisit=null==e||e,this},d.prototype.opening=function(){return 1==this.node.nodeType&&(this.closingTag=!1),this},d.prototype.atOpening=function(){return!this.closingTag},d.prototype.closing=function(){return 1==this.node.nodeType&&(this.closingTag=!0),this},d.prototype.atClosing=function(){return this.closingTag},d.prototype.next=i("nextSibling","firstChild"),d.prototype.previous=d.prototype.prev=i("previousSibling","lastChild"),d.prototype.select=function(e){return e=this.compile(e),this._selects.push(e),this},d.prototype.selects=function(e,a){var n=this._selects,t=n.length;if(!t)return!0;for(var r=0;r0?this.next(e,a,!0):this.prev(e,Math.abs(a),!0):this.node},d.prototype.use=function(e){return e(this),this}},function(e,a,n){"use strict";const t=n(329).generate,r=n(330).parse,d=n(0),i=n(331),o=n(334),u=n(336),s=n(337),c=d().addRange(0,1114111),g=d().addRange(0,65535),l=c.clone().remove(10,13,8232,8233),p=l.clone().intersection(g),f=(e,a,n)=>a?n?s.UNICODE_IGNORE_CASE.get(e):s.UNICODE.get(e):s.REGULAR.get(e),R=(e,a)=>{const t=a?`${e}/${a}`:`Binary_Property/${e}`;try{return n(338)(`./${t}.js`)}catch(n){throw new Error(`Failed to recognize value \`${a}\` for property `+`\`${e}\`.`)}},h=(e,a)=>{const n=e.split("="),t=n[0];let r;if(1==n.length)r=(e=>{try{const a="General_Category",n=o(a,e);return R(a,n)}catch(e){}const a=i(e);return R(a)})(t);else{const e=i(t),a=o(e,n[1]);r=R(e,a)}return a?c.clone().remove(r):r.clone()};d.prototype.iuAddRange=function(e,a){const n=this;do{const a=v(e);a&&n.add(a)}while(++e<=a);return n};const m=(e,a)=>{let n=r(a,E.useUnicodeFlag?"u":"");switch(n.type){case"characterClass":case"group":case"value":break;default:n=y(n,a)}Object.assign(e,n)},y=(e,a)=>({type:"group",behavior:"ignore",body:[e],raw:`(?:${a})`}),v=e=>u.get(e)||!1,b=(e,a)=>{delete e.name,e.matchIndex=a},x=(e,a,n)=>{switch(e.type){case"dot":m(e,((e,a)=>a?e?c:g:e?l:p)(E.unicode,E.dotAll).toString(a));break;case"characterClass":e=((e,a)=>{let n=d();for(const a of e.body)switch(a.type){case"value":if(n.add(a.codePoint),E.ignoreCase&&E.unicode&&!E.useUnicodeFlag){const e=v(a.codePoint);e&&n.add(e)}break;case"characterClassRange":const e=a.min.codePoint,t=a.max.codePoint;n.addRange(e,t),E.ignoreCase&&E.unicode&&!E.useUnicodeFlag&&n.iuAddRange(e,t);break;case"characterClassEscape":n.add(f(a.value,E.unicode,E.ignoreCase));break;case"unicodePropertyEscape":n.add(h(a.value,a.negative));break;default:throw new Error(`Unknown term type: ${a.type}`)}return e.negative&&(n=(E.unicode?c:g).clone().remove(n)),m(e,n.toString(a)),e})(e,a);break;case"unicodePropertyEscape":m(e,h(e.value,e.negative).toString(a));break;case"characterClassEscape":m(e,f(e.value,E.unicode,E.ignoreCase).toString(a));break;case"group":if(n.lastIndex++,e.name){const a=e.name.value;if(n.names[a])throw new Error(`Multiple groups with the same name (${a}) are not allowed.`);const t=n.lastIndex;delete e.name,n.names[a]=t,n.onNamedGroup&&n.onNamedGroup.call(null,a,t),n.unmatchedReferences[a]&&(n.unmatchedReferences[a].forEach(e=>{b(e,t)}),delete n.unmatchedReferences[a])}case"alternative":case"disjunction":case"quantifier":e.body=e.body.map(e=>x(e,a,n));break;case"value":const t=e.codePoint,r=d(t);if(E.ignoreCase&&E.unicode&&!E.useUnicodeFlag){const e=v(t);e&&r.add(e)}m(e,r.toString(a));break;case"reference":if(e.name){const a=e.name.value,t=n.names[a];if(t){b(e,t);break}n.unmatchedReferences[a]||(n.unmatchedReferences[a]=[]),n.unmatchedReferences[a].push(e)}break;case"anchor":case"empty":case"group":break;default:throw new Error(`Unknown term type: ${e.type}`)}return e},E={ignoreCase:!1,unicode:!1,dotAll:!1,useUnicodeFlag:!1};e.exports=(e,a,n)=>{const d={unicodePropertyEscape:n&&n.unicodePropertyEscape,namedGroups:n&&n.namedGroup,lookbehind:n&&n.lookbehind};E.ignoreCase=a&&a.includes("i"),E.unicode=a&&a.includes("u");const i=n&&n.dotAllFlag;E.dotAll=i&&a&&a.includes("s"),E.useUnicodeFlag=n&&n.useUnicodeFlag;const o={hasUnicodeFlag:E.useUnicodeFlag,bmpOnly:!E.unicode},u={onNamedGroup:n&&n.onNamedGroup,lastIndex:0,names:Object.create(null),unmatchedReferences:Object.create(null)},s=r(e,a,d);return x(s,o,u),(e=>{const a=Object.keys(e.unmatchedReferences);if(a.length>0)throw new Error(`Unknown group names: ${a}`)})(u),t(s)}},function(e,a,n){"use strict";(function(e){var t=n(182),r=function(e,a,n){this.start=e,this.end=a,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};r.prototype.appendLeft=function(e){this.outro+=e},r.prototype.appendRight=function(e){this.intro=this.intro+e},r.prototype.clone=function(){var e=new r(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},r.prototype.contains=function(e){return this.start=t.length)return"\t";var r=t.reduce(function(e,a){var n=/^ +/.exec(a)[0].length;return Math.min(n,e)},1/0);return new Array(r+1).join(" ")}function u(e,a){var n=e.split(/[\/\\]/),t=a.split(/[\/\\]/);for(n.pop();n[0]===t[0];)n.shift(),t.shift();if(n.length)for(var r=n.length;r--;)n[r]="..";return n.concat(t).join("/")}i.prototype.toString=function(){return JSON.stringify(this)},i.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+d(this.toString())};var s=Object.prototype.toString;function c(e){return"[object Object]"===s.call(e)}function g(e){for(var a=e.split("\n"),n=[],t=0,r=0;t>1;e=0&&r.push(t),this.rawSegments.push(r)}else this.pending&&this.rawSegments.push(this.pending);this.advance(a),this.pending=null},l.prototype.addUneditedChunk=function(e,a,n,t,r){for(var d=a.start,i=!0;d1){for(var n=0;n=e&&n<=a)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(a),this._split(n);var t=this.byStart[e],r=this.byEnd[a],d=t.previous,i=r.next,o=this.byStart[n];if(!o&&r===this.lastChunk)return this;var u=o?o.previous:this.lastChunk;return d&&(d.next=i),i&&(i.previous=d),u&&(u.next=t),o&&(o.previous=r),t.previous||(this.firstChunk=r.next),r.next||(this.lastChunk=t.previous,this.lastChunk.next=null),t.previous=u,r.next=o||null,u||(this.firstChunk=t),o||(this.lastChunk=r),this},R.prototype.overwrite=function(e,a,n,t){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;a<0;)a+=this.original.length;if(a>this.original.length)throw new Error("end is out of bounds");if(e===a)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(a),!0===t&&(f.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),f.storeName=!0),t={storeName:!0});var d=void 0!==t&&t.storeName,i=void 0!==t&&t.contentOnly;if(d){var o=this.original.slice(e,a);this.storedNames[o]=!0}var u=this.byStart[e],s=this.byEnd[a];if(u){if(a>u.end&&u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");if(u.edit(n,d,i),u!==s){for(var c=u.next;c!==s;)c.edit("",!1),c=c.next;c.edit("",!1)}}else{var g=new r(e,a,"").edit(n,d);s.next=g,g.previous=s}return this},R.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},R.prototype.prependLeft=function(e,a){if("string"!=typeof a)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(a):this.intro=a+this.intro,this},R.prototype.prependRight=function(e,a){if("string"!=typeof a)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(a):this.outro=a+this.outro,this},R.prototype.remove=function(e,a){for(;e<0;)e+=this.original.length;for(;a<0;)a+=this.original.length;if(e===a)return this;if(e<0||a>this.original.length)throw new Error("Character is out of bounds");if(e>a)throw new Error("end must be greater than start");this._split(e),this._split(a);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=a>n.end?this.byStart[n.end]:null;return this},R.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},R.prototype.lastLine=function(){var e=this.outro.lastIndexOf(p);if(-1!==e)return this.outro.substr(e+1);var a=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(-1!==(e=n.outro.lastIndexOf(p)))return n.outro.substr(e+1)+a;a=n.outro+a}if(n.content.length>0){if(-1!==(e=n.content.lastIndexOf(p)))return n.content.substr(e+1)+a;a=n.content+a}if(n.intro.length>0){if(-1!==(e=n.intro.lastIndexOf(p)))return n.intro.substr(e+1)+a;a=n.intro+a}}while(n=n.previous);return-1!==(e=this.intro.lastIndexOf(p))?this.intro.substr(e+1)+a:this.intro+a},R.prototype.slice=function(e,a){for(void 0===e&&(e=0),void 0===a&&(a=this.original.length);e<0;)e+=this.original.length;for(;a<0;)a+=this.original.length;for(var n="",t=this.firstChunk;t&&(t.start>e||t.end<=e);){if(t.start=a)return n;t=t.next}if(t&&t.edited&&t.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var r=t;t;){!t.intro||r===t&&t.start!==e||(n+=t.intro);var d=t.start=a;if(d&&t.edited&&t.end!==a)throw new Error("Cannot use replaced character "+a+" as slice end anchor.");var i=r===t?e-t.start:0,o=d?t.content.length+a-t.end:t.content.length;if(n+=t.content.slice(i,o),!t.outro||d&&t.end!==a||(n+=t.outro),d)break;t=t.next}return n},R.prototype.snip=function(e,a){var n=this.clone();return n.remove(0,e),n.remove(a,n.original.length),n},R.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var a=this.lastSearchedChunk,n=e>a.end;a;){if(a.contains(e))return this._splitChunk(a,e);a=n?this.byStart[a.end]:this.byEnd[a.start]}},R.prototype._splitChunk=function(e,a){if(e.edited&&e.content.length){var n=g(this.original)(a);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+e.original+'")')}var t=e.split(a);return this.byEnd[a]=e,this.byStart[a]=t,this.byEnd[t.end]=t,e===this.lastChunk&&(this.lastChunk=t),this.lastSearchedChunk=e,!0},R.prototype.toString=function(){for(var e=this.intro,a=this.firstChunk;a;)e+=a.toString(),a=a.next;return e+this.outro},R.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},R.prototype.length=function(){var e=this.firstChunk,a=0;do{a+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return a},R.prototype.trimLines=function(){return this.trim("[\\r\\n]")},R.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},R.prototype.trimEndAborted=function(e){var a=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(a,""),this.outro.length)return!0;var n=this.lastChunk;do{var t=n.end,r=n.trimEnd(a);if(n.end!==t&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.previous}while(n);return!1},R.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},R.prototype.trimStartAborted=function(e){var a=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(a,""),this.intro.length)return!0;var n=this.firstChunk;do{var t=n.end,r=n.trimStart(a);if(n.end!==t&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.next}while(n);return!1},R.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var h=Object.prototype.hasOwnProperty,m=function(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};m.prototype.addSource=function(e){if(e instanceof R)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!c(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(a){h.call(e,a)||(e[a]=e.content[a])}),void 0===e.separator&&(e.separator=this.separator),e.filename)if(h.call(this.uniqueSourceIndexByFilename,e.filename)){var a=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==a.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},m.prototype.append=function(e,a){return this.addSource({content:new R(e),separator:a&&a.separator||""}),this},m.prototype.clone=function(){var e=new m({intro:this.intro,separator:this.separator});return this.sources.forEach(function(a){e.addSource({filename:a.filename,content:a.content.clone(),separator:a.separator})}),e},m.prototype.generateDecodedMap=function(e){var a=this;void 0===e&&(e={});var n=[];this.sources.forEach(function(e){Object.keys(e.content.storedNames).forEach(function(e){~n.indexOf(e)||n.push(e)})});var t=new l(e.hires);return this.intro&&t.advance(this.intro),this.sources.forEach(function(e,r){r>0&&t.advance(a.separator);var d=e.filename?a.uniqueSourceIndexByFilename[e.filename]:-1,i=e.content,o=g(i.original);i.intro&&t.advance(i.intro),i.firstChunk.eachNext(function(a){var r=o(a.start);a.intro.length&&t.advance(a.intro),e.filename?a.edited?t.addEdit(d,a.content,r,a.storeName?n.indexOf(a.original):-1):t.addUneditedChunk(d,a,i.original,r,i.sourcemapLocations):t.advance(a.content),a.outro.length&&t.advance(a.outro)}),i.outro&&t.advance(i.outro)}),{file:e.file?e.file.split(/[\/\\]/).pop():null,sources:this.uniqueSources.map(function(a){return e.file?u(e.file,a.filename):a.filename}),sourcesContent:this.uniqueSources.map(function(a){return e.includeContent?a.content:null}),names:n,mappings:t.raw}},m.prototype.generateMap=function(e){return new i(this.generateDecodedMap(e))},m.prototype.getIndentString=function(){var e={};return this.sources.forEach(function(a){var n=a.content.indentStr;null!==n&&(e[n]||(e[n]=0),e[n]+=1)}),Object.keys(e).sort(function(a,n){return e[a]-e[n]})[0]||"\t"},m.prototype.indent=function(e){var a=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(function(t,r){var d=void 0!==t.separator?t.separator:a.separator,i=n||r>0&&/\r?\n$/.test(d);t.content.indent(e,{exclude:t.indentExclusionRanges,indentStart:i}),n="\n"===t.content.lastChar()}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,function(a,n){return n>0?e+a:a})),this},m.prototype.prepend=function(e){return this.intro=e+this.intro,this},m.prototype.toString=function(){var e=this,a=this.sources.map(function(a,n){var t=void 0!==a.separator?a.separator:e.separator;return(n>0?t:"")+a.content.toString()}).join("");return this.intro+a},m.prototype.isEmpty=function(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some(function(e){return!e.content.isEmpty()})},m.prototype.length=function(){return this.sources.reduce(function(e,a){return e+a.content.length()},this.intro.length)},m.prototype.trimLines=function(){return this.trim("[\\r\\n]")},m.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},m.prototype.trimStart=function(e){var a=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(a,""),!this.intro){var n,t=0;do{if(!(n=this.sources[t++]))break}while(!n.content.trimStartAborted(e))}return this},m.prototype.trimEnd=function(e){var a,n=new RegExp((e||"\\s")+"+$"),t=this.sources.length-1;do{if(!(a=this.sources[t--])){this.intro=this.intro.replace(n,"");break}}while(!a.content.trimEndAborted(e));return this},a.a=R}).call(this,n(736).Buffer)},function(e,a,n){"use strict";n.d(a,"a",function(){return i});for(var t={},r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=0;d0&&(d+=";"),0!==u.length){for(var s=0,c=[],g=0,l=u;g1&&(f+=o(p[1]-a)+o(p[2]-n)+o(p[3]-t),a=p[1],n=p[2],t=p[3]),5===p.length&&(f+=o(p[4]-r),r=p[4]),c.push(f)}d+=c.join(",")}}return d}function o(e){var a="";e=e<0?-e<<1|1:e<<1;do{var n=31&e;(e>>>=5)>0&&(n|=32),a+=r[n]}while(e>0);return a}},function(e,a,n){"use strict";const t=n(740),r=/^[\da-fA-F]+$/,d=/^\d+$/,i=n(66),o=i.tokTypes,u=i.TokContext,s=i.tokContexts,c=i.TokenType,g=i.isNewLine,l=i.isIdentifierStart,p=i.isIdentifierChar,f=new u("...",!0,!0),m={jsxName:new c("jsxName"),jsxText:new c("jsxText",{beforeExpr:!0}),jsxTagStart:new c("jsxTagStart"),jsxTagEnd:new c("jsxTagEnd")};function y(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?y(e.object)+"."+y(e.property):void 0:e}m.jsxTagStart.updateContext=function(){this.context.push(h),this.context.push(f),this.exprAllowed=!1},m.jsxTagEnd.updateContext=function(e){let a=this.context.pop();a===f&&e===o.slash||a===R?(this.context.pop(),this.exprAllowed=this.curContext()===h):this.exprAllowed=!0},e.exports=function(e){return e=e||{},function(a){return function(e,a){return class extends a{jsx_readToken(){let e="",a=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?60===n&&this.exprAllowed?(++this.pos,this.finishToken(m.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(a,this.pos),this.finishToken(m.jsxText,e));case 38:e+=this.input.slice(a,this.pos),e+=this.jsx_readEntity(),a=this.pos;break;default:g(n)?(e+=this.input.slice(a,this.pos),e+=this.jsx_readNewLine(!0),a=this.pos):++this.pos}}}jsx_readNewLine(e){let a,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,a=e?"\n":"\r\n"):a=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),a}jsx_readString(e){let a="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let t=this.input.charCodeAt(this.pos);if(t===e)break;38===t?(a+=this.input.slice(n,this.pos),a+=this.jsx_readEntity(),n=this.pos):g(t)?(a+=this.input.slice(n,this.pos),a+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return a+=this.input.slice(n,this.pos++),this.finishToken(o.string,a)}jsx_readEntity(){let e,a="",n=0,i=this.input[this.pos];"&"!==i&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos")}let i=r.name?"Element":"Fragment";return n["opening"+i]=r,n["closing"+i]=d,n.children=t,this.type===o.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+i)}jsx_parseText(e){let a=this.parseLiteral(e);return a.type="JSXText",a}jsx_parseElement(){let e=this.start,a=this.startLoc;return this.next(),this.jsx_parseElementAt(e,a)}parseExprAtom(e){return this.type===m.jsxText?this.jsx_parseText(this.value):this.type===m.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let a=this.curContext();if(a===h)return this.jsx_readToken();if(a===f||a===R){if(l(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(m.jsxTagEnd);if((34===e||39===e)&&a==f)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(m.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==o.braceL){var a=this.curContext();a==f?this.context.push(s.b_expr):a==h?this.context.push(s.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==o.slash||e!==m.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(R),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},a)}},e.exports.tokTypes=m},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.DynamicImportKey=void 0;var t=function(){function e(e,a){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:B;return g.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.map(function(){var e=(0,p.default)(g.default.mark(function e(a){var n,t,r,d,i,o,u,s,c,p=a.key,R=a.name,h=a.module,m=a.Component;return g.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n="index"===R,t=f.default.dirname(p).replace(/^\./,""),r=f.default.extname(p),i=d=t+(n?"/":"/"+R),!m.getInitialProps){e.next=11;break}return e.next=8,m.getInitialProps({path:d});case 8:e.t0=e.sent,e.next=12;break;case 11:e.t0={};case 12:return o=e.t0,u=m.defaultProps,s=h.frontMatter||{},c=(0,l.default)({},s,o,u),d=c.path||d,t&&"index"===R&&(R=f.default.basename(t)),e.abrupt("return",{key:p,name:R,extname:r,href:i,path:d,dirname:t,exact:n,module:h,Component:m,props:c});case 19:case"end":return e.stop()}},e,void 0)}));return function(a){return e.apply(this,arguments)}}());case 2:return a=e.sent,e.next=5,c.default.all(a);case 5:return n=e.sent,t=n.filter(function(e){return!e.props.ignore}).filter(function(e){return!/404/.test(e.name)}),r=[].concat((0,s.default)(t)),r=(0,b.default)([].concat((0,s.default)(r)),function(e){return e.name}),r=(0,b.default)([].concat((0,s.default)(r)),function(e){return!e.exact}),(r=(0,b.default)([].concat((0,s.default)(r)),function(e){return e.dirname})).notfound=n.find(function(e){return/404/.test(e.name)}),e.abrupt("return",r);case 13:case"end":return e.stop()}},e,void 0)})),function(){return S.apply(this,arguments)}),N=(0,m.withRouter)(function(e){var a=e.render,n=(0,u.default)(e,["render"]),t=n.location.pathname,r=n.routes.find(function(e){return e.path===t||e.href===t})||{props:{}};return a((0,l.default)({},n,{route:r}))}),z=function(e){function a(){var e,n,d,o;(0,r.default)(this,a);for(var u=arguments.length,s=Array(u),c=0;c=s?e?"":void 0:(d=o.charCodeAt(u))<55296||d>56319||u+1===s||(i=o.charCodeAt(u+1))<56320||i>57343?e?o.charAt(u):d:e?o.slice(u,u+2):i-56320+(d-55296<<10)+65536}}},function(e,a,n){"use strict";var t=n(75),r=n(39),d=n(52),i={};n(25)(i,n(9)("iterator"),function(){return this}),e.exports=function(e,a,n){e.prototype=t(i,{next:r(1,n)}),d(e,a+" Iterator")}},function(e,a,n){var t=n(16),r=n(17),d=n(51);e.exports=n(18)?Object.defineProperties:function(e,a){r(e);for(var n,i=d(a),o=i.length,u=0;o>u;)t.f(e,n=i[u++],a[n]);return e}},function(e,a,n){var t=n(32),r=n(76),d=n(200);e.exports=function(e){return function(a,n,i){var o,u=t(a),s=r(u.length),c=d(i,s);if(e&&n!=n){for(;s>c;)if((o=u[c++])!=o)return!0}else for(;s>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,a,n){var t=n(74),r=Math.max,d=Math.min;e.exports=function(e,a){return(e=t(e))<0?r(e+a,0):d(e,a)}},function(e,a,n){"use strict";var t=n(202),r=n(203),d=n(43),i=n(32);e.exports=n(105)(Array,"Array",function(e,a){this._t=i(e),this._i=0,this._k=a},function(){var e=this._t,a=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==a?n:"values"==a?e[n]:[n,e[n]])},"values"),d.Arguments=d.Array,t("keys"),t("values"),t("entries")},function(e,a){e.exports=function(){}},function(e,a){e.exports=function(e,a){return{value:a,done:!!e}}},function(e,a,n){e.exports={default:n(205),__esModule:!0}},function(e,a,n){n(206),n(113),n(211),n(212),e.exports=n(5).Symbol},function(e,a,n){"use strict";var t=n(7),r=n(24),d=n(18),i=n(15),o=n(106),u=n(207).KEY,s=n(31),c=n(70),g=n(52),l=n(49),p=n(9),f=n(78),R=n(79),h=n(208),m=n(209),y=n(17),v=n(22),b=n(37),x=n(32),E=n(72),C=n(39),A=n(75),_=n(210),w=n(112),S=n(80),k=n(16),D=n(51),F=w.f,j=k.f,P=_.f,O=t.Symbol,B=t.JSON,T=B&&B.stringify,M=p("_hidden"),I=p("toPrimitive"),L={}.propertyIsEnumerable,N=c("symbol-registry"),z=c("symbols"),U=c("op-symbols"),H=Object.prototype,V="function"==typeof O&&!!S.f,W=t.QObject,G=!W||!W.prototype||!W.prototype.findChild,$=d&&s(function(){return 7!=A(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(e,a,n){var t=F(H,a);t&&delete H[a],j(e,a,n),t&&e!==H&&j(H,a,t)}:j,q=function(e){var a=z[e]=A(O.prototype);return a._k=e,a},K=V&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},X=function(e,a,n){return e===H&&X(U,a,n),y(e),a=E(a,!0),y(n),r(z,a)?(n.enumerable?(r(e,M)&&e[M][a]&&(e[M][a]=!1),n=A(n,{enumerable:C(0,!1)})):(r(e,M)||j(e,M,C(1,{})),e[M][a]=!0),$(e,a,n)):j(e,a,n)},Y=function(e,a){y(e);for(var n,t=h(a=x(a)),r=0,d=t.length;d>r;)X(e,n=t[r++],a[n]);return e},Q=function(e){var a=L.call(this,e=E(e,!0));return!(this===H&&r(z,e)&&!r(U,e))&&(!(a||!r(this,e)||!r(z,e)||r(this,M)&&this[M][e])||a)},J=function(e,a){if(e=x(e),a=E(a,!0),e!==H||!r(z,a)||r(U,a)){var n=F(e,a);return!n||!r(z,a)||r(e,M)&&e[M][a]||(n.enumerable=!0),n}},Z=function(e){for(var a,n=P(x(e)),t=[],d=0;n.length>d;)r(z,a=n[d++])||a==M||a==u||t.push(a);return t},ee=function(e){for(var a,n=e===H,t=P(n?U:x(e)),d=[],i=0;t.length>i;)!r(z,a=t[i++])||n&&!r(H,a)||d.push(z[a]);return d};V||(o((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=l(arguments.length>0?arguments[0]:void 0),a=function(n){this===H&&a.call(U,n),r(this,M)&&r(this[M],e)&&(this[M][e]=!1),$(this,e,C(1,n))};return d&&G&&$(H,e,{configurable:!0,set:a}),q(e)}).prototype,"toString",function(){return this._k}),w.f=J,k.f=X,n(111).f=_.f=Z,n(53).f=Q,S.f=ee,d&&!n(38)&&o(H,"propertyIsEnumerable",Q,!0),f.f=function(e){return q(p(e))}),i(i.G+i.W+i.F*!V,{Symbol:O});for(var ae="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;ae.length>ne;)p(ae[ne++]);for(var te=D(p.store),re=0;te.length>re;)R(te[re++]);i(i.S+i.F*!V,"Symbol",{for:function(e){return r(N,e+="")?N[e]:N[e]=O(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var a in N)if(N[a]===e)return a},useSetter:function(){G=!0},useSimple:function(){G=!1}}),i(i.S+i.F*!V,"Object",{create:function(e,a){return void 0===a?A(e):Y(A(e),a)},defineProperty:X,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var de=s(function(){S.f(1)});i(i.S+i.F*de,"Object",{getOwnPropertySymbols:function(e){return S.f(b(e))}}),B&&i(i.S+i.F*(!V||s(function(){var e=O();return"[null]"!=T([e])||"{}"!=T({a:e})||"{}"!=T(Object(e))})),"JSON",{stringify:function(e){for(var a,n,t=[e],r=1;arguments.length>r;)t.push(arguments[r++]);if(n=a=t[1],(v(a)||void 0!==e)&&!K(e))return m(a)||(a=function(e,a){if("function"==typeof n&&(a=n.call(this,e,a)),!K(a))return a}),t[1]=a,T.apply(B,t)}}),O.prototype[I]||n(25)(O.prototype,I,O.prototype.valueOf),g(O,"Symbol"),g(Math,"Math",!0),g(t.JSON,"JSON",!0)},function(e,a,n){var t=n(49)("meta"),r=n(22),d=n(24),i=n(16).f,o=0,u=Object.isExtensible||function(){return!0},s=!n(31)(function(){return u(Object.preventExtensions({}))}),c=function(e){i(e,t,{value:{i:"O"+ ++o,w:{}}})},g=e.exports={KEY:t,NEED:!1,fastKey:function(e,a){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!d(e,t)){if(!u(e))return"F";if(!a)return"E";c(e)}return e[t].i},getWeak:function(e,a){if(!d(e,t)){if(!u(e))return!0;if(!a)return!1;c(e)}return e[t].w},onFreeze:function(e){return s&&g.NEED&&u(e)&&!d(e,t)&&c(e),e}}},function(e,a,n){var t=n(51),r=n(80),d=n(53);e.exports=function(e){var a=t(e),n=r.f;if(n)for(var i,o=n(e),u=d.f,s=0;o.length>s;)u.call(e,i=o[s++])&&a.push(i);return a}},function(e,a,n){var t=n(44);e.exports=Array.isArray||function(e){return"Array"==t(e)}},function(e,a,n){var t=n(32),r=n(111).f,d={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==d.call(e)?function(e){try{return r(e)}catch(e){return i.slice()}}(e):r(t(e))}},function(e,a,n){n(79)("asyncIterator")},function(e,a,n){n(79)("observable")},function(e,a,n){e.exports={default:n(214),__esModule:!0}},function(e,a,n){n(215),e.exports=n(5).Object.setPrototypeOf},function(e,a,n){var t=n(15);t(t.S,"Object",{setPrototypeOf:n(216).set})},function(e,a,n){var t=n(22),r=n(17),d=function(e,a){if(r(e),!t(a)&&null!==a)throw TypeError(a+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,a,t){try{(t=n(30)(Function.call,n(112).f(Object.prototype,"__proto__").set,2))(e,[]),a=!(e instanceof Array)}catch(e){a=!0}return function(e,n){return d(e,n),a?e.__proto__=n:t(e,n),e}}({},!1):void 0),check:d}},function(e,a,n){e.exports={default:n(218),__esModule:!0}},function(e,a,n){n(219);var t=n(5).Object;e.exports=function(e,a){return t.create(e,a)}},function(e,a,n){var t=n(15);t(t.S,"Object",{create:n(75)})},function(e,a,n){"use strict";a.__esModule=!0;var t,r=n(221),d=(t=r)&&t.__esModule?t:{default:t};a.default=function(e){if(Array.isArray(e)){for(var a=0,n=Array(e.length);a1?arguments[1]:void 0,h=void 0!==R,m=0,y=c(l);if(h&&(R=t(R,f>2?arguments[2]:void 0,2)),null==y||p==Array&&o(y))for(n=new p(a=u(l.length));a>m;m++)s(n,m,h?R(l[m],m):l[m]);else for(g=y.call(l),n=new p;!(r=g.next()).done;m++)s(n,m,h?i(g,R,[r.value,m],!0):r.value);return n.length=m,n}})},function(e,a,n){"use strict";var t=n(16),r=n(39);e.exports=function(e,a,n){a in e?t.f(e,a,r(0,n)):e[a]=n}},function(e,a,n){n(113),n(73),n(110),n(226),n(234),n(235),e.exports=n(5).Promise},function(e,a,n){"use strict";var t,r,d,i,o=n(38),u=n(7),s=n(30),c=n(117),g=n(15),l=n(22),p=n(50),f=n(227),R=n(228),h=n(120),m=n(121).set,y=n(230)(),v=n(81),b=n(122),x=n(231),E=n(123),C=u.TypeError,A=u.process,_=A&&A.versions,w=_&&_.v8||"",S=u.Promise,k="process"==c(A),D=function(){},F=r=v.f,j=!!function(){try{var e=S.resolve(1),a=(e.constructor={})[n(9)("species")]=function(e){e(D,D)};return(k||"function"==typeof PromiseRejectionEvent)&&e.then(D)instanceof a&&0!==w.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(e){}}(),P=function(e){var a;return!(!l(e)||"function"!=typeof(a=e.then))&&a},O=function(e,a){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var t=e._v,r=1==e._s,d=0,i=function(a){var n,d,i,o=r?a.ok:a.fail,u=a.resolve,s=a.reject,c=a.domain;try{o?(r||(2==e._h&&M(e),e._h=1),!0===o?n=t:(c&&c.enter(),n=o(t),c&&(c.exit(),i=!0)),n===a.promise?s(C("Promise-chain cycle")):(d=P(n))?d.call(n,u,s):u(n)):s(t)}catch(e){c&&!i&&c.exit(),s(e)}};n.length>d;)i(n[d++]);e._c=[],e._n=!1,a&&!e._h&&B(e)})}},B=function(e){m.call(u,function(){var a,n,t,r=e._v,d=T(e);if(d&&(a=b(function(){k?A.emit("unhandledRejection",r,e):(n=u.onunhandledrejection)?n({promise:e,reason:r}):(t=u.console)&&t.error&&t.error("Unhandled promise rejection",r)}),e._h=k||T(e)?2:1),e._a=void 0,d&&a.e)throw a.v})},T=function(e){return 1!==e._h&&0===(e._a||e._c).length},M=function(e){m.call(u,function(){var a;k?A.emit("rejectionHandled",e):(a=u.onrejectionhandled)&&a({promise:e,reason:e._v})})},I=function(e){var a=this;a._d||(a._d=!0,(a=a._w||a)._v=e,a._s=2,a._a||(a._a=a._c.slice()),O(a,!0))},L=function(e){var a,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw C("Promise can't be resolved itself");(a=P(e))?y(function(){var t={_w:n,_d:!1};try{a.call(e,s(L,t,1),s(I,t,1))}catch(e){I.call(t,e)}}):(n._v=e,n._s=1,O(n,!1))}catch(e){I.call({_w:n,_d:!1},e)}}};j||(S=function(e){f(this,S,"Promise","_h"),p(e),t.call(this);try{e(s(L,this,1),s(I,this,1))}catch(e){I.call(this,e)}},(t=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(232)(S.prototype,{then:function(e,a){var n=F(h(this,S));return n.ok="function"!=typeof e||e,n.fail="function"==typeof a&&a,n.domain=k?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),d=function(){var e=new t;this.promise=e,this.resolve=s(L,e,1),this.reject=s(I,e,1)},v.f=F=function(e){return e===S||e===i?new d(e):r(e)}),g(g.G+g.W+g.F*!j,{Promise:S}),n(52)(S,"Promise"),n(233)("Promise"),i=n(5).Promise,g(g.S+g.F*!j,"Promise",{reject:function(e){var a=F(this);return(0,a.reject)(e),a.promise}}),g(g.S+g.F*(o||!j),"Promise",{resolve:function(e){return E(o&&this===i?S:this,e)}}),g(g.S+g.F*!(j&&n(118)(function(e){S.all(e).catch(D)})),"Promise",{all:function(e){var a=this,n=F(a),t=n.resolve,r=n.reject,d=b(function(){var n=[],d=0,i=1;R(e,!1,function(e){var o=d++,u=!1;n.push(void 0),i++,a.resolve(e).then(function(e){u||(u=!0,n[o]=e,--i||t(n))},r)}),--i||t(n)});return d.e&&r(d.v),n.promise},race:function(e){var a=this,n=F(a),t=n.reject,r=b(function(){R(e,!1,function(e){a.resolve(e).then(n.resolve,t)})});return r.e&&t(r.v),n.promise}})},function(e,a){e.exports=function(e,a,n,t){if(!(e instanceof a)||void 0!==t&&t in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,a,n){var t=n(30),r=n(114),d=n(115),i=n(17),o=n(76),u=n(116),s={},c={};(a=e.exports=function(e,a,n,g,l){var p,f,R,h,m=l?function(){return e}:u(e),y=t(n,g,a?2:1),v=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(d(m)){for(p=o(e.length);p>v;v++)if((h=a?y(i(f=e[v])[0],f[1]):y(e[v]))===s||h===c)return h}else for(R=m.call(e);!(f=R.next()).done;)if((h=r(R,y,f.value,a))===s||h===c)return h}).BREAK=s,a.RETURN=c},function(e,a){e.exports=function(e,a,n){var t=void 0===n;switch(a.length){case 0:return t?e():e.call(n);case 1:return t?e(a[0]):e.call(n,a[0]);case 2:return t?e(a[0],a[1]):e.call(n,a[0],a[1]);case 3:return t?e(a[0],a[1],a[2]):e.call(n,a[0],a[1],a[2]);case 4:return t?e(a[0],a[1],a[2],a[3]):e.call(n,a[0],a[1],a[2],a[3])}return e.apply(n,a)}},function(e,a,n){var t=n(7),r=n(121).set,d=t.MutationObserver||t.WebKitMutationObserver,i=t.process,o=t.Promise,u="process"==n(44)(i);e.exports=function(){var e,a,n,s=function(){var t,r;for(u&&(t=i.domain)&&t.exit();e;){r=e.fn,e=e.next;try{r()}catch(t){throw e?n():a=void 0,t}}a=void 0,t&&t.enter()};if(u)n=function(){i.nextTick(s)};else if(!d||t.navigator&&t.navigator.standalone)if(o&&o.resolve){var c=o.resolve(void 0);n=function(){c.then(s)}}else n=function(){r.call(t,s)};else{var g=!0,l=document.createTextNode("");new d(s).observe(l,{characterData:!0}),n=function(){l.data=g=!g}}return function(t){var r={fn:t,next:void 0};a&&(a.next=r),e||(e=r,n()),a=r}}},function(e,a,n){var t=n(7).navigator;e.exports=t&&t.userAgent||""},function(e,a,n){var t=n(25);e.exports=function(e,a,n){for(var r in a)n&&e[r]?e[r]=a[r]:t(e,r,a[r]);return e}},function(e,a,n){"use strict";var t=n(7),r=n(5),d=n(16),i=n(18),o=n(9)("species");e.exports=function(e){var a="function"==typeof r[e]?r[e]:t[e];i&&a&&!a[o]&&d.f(a,o,{configurable:!0,get:function(){return this}})}},function(e,a,n){"use strict";var t=n(15),r=n(5),d=n(7),i=n(120),o=n(123);t(t.P+t.R,"Promise",{finally:function(e){var a=i(this,r.Promise||d.Promise),n="function"==typeof e;return this.then(n?function(n){return o(a,e()).then(function(){return n})}:e,n?function(n){return o(a,e()).then(function(){throw n})}:e)}})},function(e,a,n){"use strict";var t=n(15),r=n(81),d=n(122);t(t.S,"Promise",{try:function(e){var a=r.f(this),n=d(e);return(n.e?a.reject:a.resolve)(n.v),a.promise}})},function(e,a,n){e.exports=n(237)},function(e,a,n){var t=function(){return this}()||Function("return this")(),r=t.regeneratorRuntime&&Object.getOwnPropertyNames(t).indexOf("regeneratorRuntime")>=0,d=r&&t.regeneratorRuntime;if(t.regeneratorRuntime=void 0,e.exports=n(238),r)t.regeneratorRuntime=d;else try{delete t.regeneratorRuntime}catch(e){t.regeneratorRuntime=void 0}},function(e,a){!function(a){"use strict";var n,t=Object.prototype,r=t.hasOwnProperty,d="function"==typeof Symbol?Symbol:{},i=d.iterator||"@@iterator",o=d.asyncIterator||"@@asyncIterator",u=d.toStringTag||"@@toStringTag",s="object"==typeof e,c=a.regeneratorRuntime;if(c)s&&(e.exports=c);else{(c=a.regeneratorRuntime=s?e.exports:{}).wrap=b;var g="suspendedStart",l="suspendedYield",p="executing",f="completed",R={},h={};h[i]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(j([])));y&&y!==t&&r.call(y,i)&&(h=y);var v=A.prototype=E.prototype=Object.create(h);C.prototype=v.constructor=A,A.constructor=C,A[u]=C.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var a="function"==typeof e&&e.constructor;return!!a&&(a===C||"GeneratorFunction"===(a.displayName||a.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(v),e},c.awrap=function(e){return{__await:e}},_(w.prototype),w.prototype[o]=function(){return this},c.AsyncIterator=w,c.async=function(e,a,n,t){var r=new w(b(e,a,n,t));return c.isGeneratorFunction(a)?r:r.next().then(function(e){return e.done?e.value:r.next()})},_(v),v[u]="Generator",v[i]=function(){return this},v.toString=function(){return"[object Generator]"},c.keys=function(e){var a=[];for(var n in e)a.push(n);return a.reverse(),function n(){for(;a.length;){var t=a.pop();if(t in e)return n.value=t,n.done=!1,n}return n.done=!0,n}},c.values=j,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(D),!e)for(var a in this)"t"===a.charAt(0)&&r.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=n)},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 a=this;function t(t,r){return o.type="throw",o.arg=e,a.next=t,r&&(a.method="next",a.arg=n),!!r}for(var d=this.tryEntries.length-1;d>=0;--d){var i=this.tryEntries[d],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--n){var t=this.tryEntries[n];if(t.tryLoc<=this.prev&&r.call(t,"finallyLoc")&&this.prev=0;--a){var n=this.tryEntries[a];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),R}},catch:function(e){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc===e){var t=n.completion;if("throw"===t.type){var r=t.arg;D(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,t){return this.delegate={iterator:j(e),resultName:a,nextLoc:t},"next"===this.method&&(this.arg=n),R}}}function b(e,a,n,t){var r=a&&a.prototype instanceof E?a:E,d=Object.create(r.prototype),i=new F(t||[]);return d._invoke=function(e,a,n){var t=g;return function(r,d){if(t===p)throw new Error("Generator is already running");if(t===f){if("throw"===r)throw d;return P()}for(n.method=r,n.arg=d;;){var i=n.delegate;if(i){var o=S(i,n);if(o){if(o===R)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(t===g)throw t=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);t=p;var u=x(e,a,n);if("normal"===u.type){if(t=n.done?f:l,u.arg===R)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(t=f,n.method="throw",n.arg=u.arg)}}}(e,n,i),d}function x(e,a,n){try{return{type:"normal",arg:e.call(a,n)}}catch(e){return{type:"throw",arg:e}}}function E(){}function C(){}function A(){}function _(e){["next","throw","return"].forEach(function(a){e[a]=function(e){return this._invoke(a,e)}})}function w(e){var a;this._invoke=function(n,t){function d(){return new Promise(function(a,d){!function a(n,t,d,i){var o=x(e[n],e,t);if("throw"!==o.type){var u=o.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?Promise.resolve(s.__await).then(function(e){a("next",e,d,i)},function(e){a("throw",e,d,i)}):Promise.resolve(s).then(function(e){u.value=e,d(u)},i)}i(o.arg)}(n,t,a,d)})}return a=a?a.then(d,d):d()}}function S(e,a){var t=e.iterator[a.method];if(t===n){if(a.delegate=null,"throw"===a.method){if(e.iterator.return&&(a.method="return",a.arg=n,S(e,a),"throw"===a.method))return R;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}var r=x(t,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,R;var d=r.arg;return d?d.done?(a[e.resultName]=d.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=n),a.delegate=null,R):d:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,R)}function k(e){var a={tryLoc:e[0]};1 in e&&(a.catchLoc=e[1]),2 in e&&(a.finallyLoc=e[2],a.afterLoc=e[3]),this.tryEntries.push(a)}function D(e){var a=e.completion||{};a.type="normal",delete a.arg,e.completion=a}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function j(e){if(e){var a=e[i];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var t=-1,d=function a(){for(;++tc;)for(var p,f=u(arguments[c++]),R=g?r(f).concat(g(f)):r(f),h=R.length,m=0;h>m;)p=R[m++],t&&!l.call(f,p)||(n[p]=f[p]);return n}:s},function(e,a,n){"use strict";a.__esModule=!0;var t,r=n(119),d=(t=r)&&t.__esModule?t:{default:t};a.default=function(e){return function(){var a=e.apply(this,arguments);return new d.default(function(e,n){return function t(r,i){try{var o=a[r](i),u=o.value}catch(e){return void n(e)}if(!o.done)return d.default.resolve(u).then(function(e){t("next",e)},function(e){t("throw",e)});e(u)}("next")})}}},function(e,a,n){"use strict"; /** @license React v16.9.0 * react.production.min.js * diff --git a/gulpfile.ts b/gulpfile.ts index 42ad21c..4fabd47 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -71,12 +71,12 @@ const publishMainWebsite = () => run('yarn website', { verbosity: 3 }).exec(); const publishApiWebsite = () => run('yarn publish:api:website', { verbosity: 3 }).exec(); -gulp.task('docs:website', gulp.series('docs:clean', setupWebsiteMarkdown, runDevWebsite)); +gulp.task('docs:website', gulp.series('docs:clean', setupWebsiteMarkdown)); gulp.task( 'docs:website:dev', - gulp.series('docs:website', () => { - gulp.watch(docsSource, gulp.series('docs:website')); + gulp.series('docs:website', runDevWebsite, () => { + gulp.watch(docsSource, gulp.series('docs:website', runDevWebsite)); }) ); @@ -93,14 +93,10 @@ gulp.task( gulp.task('default', gulp.series('clean', 'build')); gulp.task( - 'publish', - gulp.series( - 'default', - gulp.parallel( - 'build', - gulp.series('docs:api:website', publishApiWebsite), - 'docs:api:markdown', - gulp.series('docs:website', publishMainWebsite) - ) + 'publish:websites', + gulp.parallel( + gulp.series('docs:api:website', publishApiWebsite), + 'docs:api:markdown', + gulp.series('docs:website', publishMainWebsite) ) ); diff --git a/package.json b/package.json index fd69b63..ecd59cd 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "preversion": "yarn build", "website": "yarn x0 build docs/website", "website:dev": "yarn gulp docs:website:dev", - "publish:api:website": "cd ../use-global-hook-api-website/ && git push origin" + "publish:api:website": "scripts/publishApiWebsite.sh" }, "devDependencies": { "@compositor/logo": "^1.4.0", diff --git a/scripts/publishApiWebsite.sh b/scripts/publishApiWebsite.sh new file mode 100755 index 0000000..c4e54d7 --- /dev/null +++ b/scripts/publishApiWebsite.sh @@ -0,0 +1,14 @@ +#!/bin/sh +set -e +set -o pipefail + +FROM_VERSION=`jq -r .version package.json` +cd ../use-global-hook-api-website/ + +if [ -n "$(git status --porcelain)" ]; then + git commit -am "syncing with use-global-hook version: ${FROM_VERSION}" + git push origin +else + exit 0; +fi +