-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path3.chunk.bf62e.js
1 lines (1 loc) · 52.8 KB
/
3.chunk.bf62e.js
1
webpackJsonp([3],{"/XIO":function(e,t,n){"use strict";function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=n("EBst"),s=(n.n(r),n("Id9n")),c=n("aQgv"),i=(n.n(c),n("LXEu")),l=n("sQ20"),h=n.n(l),u=(n("MXhL"),n("aeJw")),p=Object(r.h)("br",null),b=Object(r.h)("br",null),d=Object(r.h)(s.A,null),g=Object(r.h)("button",{title:"Copy url to clipboard",class:"button"},Object(r.h)(s.p,null)," Copy Url");t.a=function(e){function t(t){var n=a(this,e.call(this));return n.share=function(){navigator.share({title:n.state.title,text:n.state.text,url:n.state.url}).catch(function(){Object(i.b)("Unable to share :(, sorry...")})},n.handleCopy=function(){Object(i.c)("Copied "+n.state.url+" to cliboard")},n.handleMail=function(){var e=encodeURIComponent(n.state.text+"\n\n"+n.state.url);window.open("mailto:%20?subject="+n.state.title+"&body="+e)},n.handleTitleChange=function(e){n.setState({title:e.target.value})},n.handleTextChange=function(e){n.setState({text:e.target.value})},n.state={loading:!0},t.promise.then(function(e){n.setState({loading:!1,title:e.title,text:e.text,url:e.url})}),n}return o(t,e),t.prototype.componentWillMount=function(){},t.prototype.componentWillUnmount=function(){},t.prototype.render=function(){var e="undefined"!=typeof window&&void 0!==window.navigator.share;return Object(r.h)("div",{className:"sharing-panel "+(this.state.loading?"loading":"")},Object(r.h)("button",{onClick:this.props.onClose,class:"close"},"×"),this.state.loading?null:Object(r.h)("div",{class:"content"},Object(r.h)("input",{type:"text",spellcheck:"false",onInput:this.handleTitleChange,value:this.state.title}),p,Object(r.h)("textarea",{spellcheck:"false",onChange:this.handleTextChange},this.state.text),b,e?Object(r.h)("button",{class:"button",onClick:this.share},d," Share"):null,Object(r.h)(h.a,{text:this.state.url,onCopy:this.handleCopy},g),Object(r.h)(u.a,{url:this.state.url,text:this.state.title+"\n"+this.state.text})))},t}(r.Component)},"1bBt":function(){},"3N65":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimerId=t.saveTimerId=t.getDateAttribute=void 0;var n=function(e,t){return e.getAttribute?e.getAttribute(t):e.attr?e.attr(t):void 0};t.getDateAttribute=function(e){return n(e,"datetime")},t.saveTimerId=function(e,t){return e.setAttribute?e.setAttribute("timeago-tid",t):e.attr?e.attr("timeago-tid",t):void 0},t.getTimerId=function(e){return n(e,"timeago-tid")}},"57ox":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.render=t.cancel=void 0;var a=n("3N65"),o=n("BHPL"),r=n("A88M"),s={},c=function(e){clearTimeout(e),delete s[e]},i=function e(t,n,r,i){c((0,a.getTimerId)(t));var l=(0,o.diffSec)(n,i);t.innerHTML=(0,o.formatDiff)(l,r);var h=setTimeout(function(){e(t,n,r,i)},1e3*(0,o.nextInterval)(l),2147483647);s[h]=0,(0,a.saveTimerId)(t,h)};t.cancel=function(e){if(e)c((0,a.getTimerId)(e));else for(var t in s)c(t)},t.render=function(e,t,n){void 0===e.length&&(e=[e]);for(var o,s=0;s<e.length;s++){o=e[s];var c=(0,a.getDateAttribute)(o),l=(0,r.getLocale)(t);i(o,c,l,n)}return e}},"92I6":function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],a=0;a<e.rangeCount;a++)n.push(e.getRangeAt(a));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},A88M:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocale=t.register=void 0;var n="second_minute_hour_day_week_month_year".split("_"),a="秒_分钟_小时_天_周_个月_年".split("_"),o=function(e,t){if(0===t)return["刚刚","片刻后"];var n=a[parseInt(t/2)];return["".concat(e," ").concat(n,"前"),"".concat(e," ").concat(n,"后")]},r=function(e,t){if(0===t)return["just now","right now"];var a=n[parseInt(t/2)];return e>1&&(a+="s"),["".concat(e," ").concat(a," ago"),"in ".concat(e," ").concat(a)]},s={en_US:r,zh_CN:o};t.register=function(e,t){s[e]=t},t.getLocale=function(e){return s[e]||r}},BHPL:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextInterval=t.diffSec=t.formatDiff=t.toDate=t.toInt=void 0;var n=[60,60,24,7,365/7/12,12],a=function(e){return parseInt(e)};t.toInt=a;var o=function(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(a(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(e))};t.toDate=o,t.formatDiff=function(e,t){for(var o=0,r=e<0?1:0,s=e=Math.abs(e);e>=n[o]&&o<n.length;o++)e/=n[o];return e=a(e),o*=2,e>(0===o?9:1)&&(o+=1),t(e,o,s)[r].replace("%s",e)},t.diffSec=function(e,t){return((t=t?o(t):new Date)-o(e))/1e3},t.nextInterval=function(e){for(var t=1,a=0,o=Math.abs(e);e>=n[a]&&a<n.length;a++)e/=n[a],t*=n[a];return o%=t,o=o?t-o:t,Math.ceil(o)}},FEkH:function(){},JBOx:function(){},KAP3:function(){},LYl9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"format",{enumerable:!0,get:function(){return a.format}}),Object.defineProperty(t,"render",{enumerable:!0,get:function(){return o.render}}),Object.defineProperty(t,"cancel",{enumerable:!0,get:function(){return o.cancel}}),Object.defineProperty(t,"register",{enumerable:!0,get:function(){return r.register}}),t.version=void 0;var a=n("jU/v"),o=n("57ox"),r=n("A88M");t.version="4.0.0-beta.2"},Quol:function(e,t,n){"use strict";function a(e){return e.replace(/#{\s*key\s*}/g,(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C")}function o(e,t){var n,o,c,i,l,h,u=!1;t||(t={}),n=t.debug||!1;try{c=r(),i=document.createRange(),l=document.getSelection(),h=document.createElement("span"),h.textContent=e,h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",document.body.appendChild(h),i.selectNode(h),l.addRange(i);if(!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData("text",e),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=a("message"in t?t.message:s),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(i):l.removeAllRanges()),h&&document.body.removeChild(h),c()}return u}var r=n("92I6"),s="Copy to clipboard: #{key}, Enter";e.exports=o},S5bU:function(){},WEgJ:function(){},WPJJ:function(e,t,n){"use strict";function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=n("EBst"),s=(n.n(r),n("ybWk")),c=(n.n(s),n("Tc+Y")),i=n("4h3z"),l=(n("2Q6T"),n("Id9n")),h=(n("5Iuc"),n("tGR6")),u=Object(r.h)("span",null,"Game Speed"),p=Object(r.h)("span",null,"Difficulty:"),b=Object(r.h)("option",{value:"easy"},"Easy"),d=Object(r.h)("option",{value:"normal"},"Normal"),g=Object(r.h)("option",{value:"hard"},"Hard"),f=Object(r.h)("span",null,"General Aviation"),m=Object(r.h)("span",{class:"slider"}),O=Object(r.h)("span",null,"Enroute Traffic"),j=Object(r.h)("span",{class:"slider"}),v=Object(r.h)("span",null,Object(r.h)(l.g,null)," Hide appearance settings"),y=Object(r.h)("span",null,Object(r.h)(l.k,null)," Show appearance settings"," "),C=Object(r.h)("span",null,"Distance circle"),w=Object(r.h)("span",{class:"slider"}),_=Object(r.h)("span",null,"Route visualization"),k=Object(r.h)("span",{class:"slider"}),x=Object(r.h)("span",null,"Radar font size:"),S=Object(r.h)("span",null,"ILS indicator color:"),I=Object(r.h)("span",null,"Danger color:"),E=Object(r.h)("span",null,"Background color:"),N=Object(r.h)("span",null,"Foreground color:"),R=Object(r.h)("span",null,"Radar color:"),T=Object(r.h)("span",null,"Sid color:"),P=Object(r.h)("span",null,"Star color:"),A=Object(r.h)("span",null,"Inbound traffic color:"),M=Object(r.h)("span",null,"Enroute traffic color:"),U=Object(r.h)("span",null,"Outbound traffic color:"),D=Object(r.h)("span",null,"VFR traffic color:"),z=Object(r.h)("span",null,"Path color:"),L=Object(r.h)("span",null,"Climb color:"),q=Object(r.h)("span",null,"Descend color:"),B=Object(r.h)("span",null,"MSA color:"),G=Object(r.h)("span",null,Object(r.h)(l.g,null)," Hide advanced settings"),W=Object(r.h)("span",null,Object(r.h)(l.k,null)," Show advanced settings"," "),V=Object(r.h)("span",null,"Speech synthesis"),J=Object(r.h)("span",{class:"slider"}),F=Object(r.h)("span",null,"Speech synthesis voices"),H=Object(r.h)("span",null,"Pitch:"),Y=Object(r.h)("span",null,"Rate:"),X=Object(r.h)("span",null,"Spawn plane interval:"),Q=Object(r.h)("span",null,"Stop planes spawning"),K=Object(r.h)("span",{class:"slider"}),$=Object(r.h)("span",null,"Go-arounds"),Z=Object(r.h)("span",{class:"slider"}),ee=Object(r.h)("span",null,"Takeoff in order"),te=Object(r.h)("span",{class:"slider"}),ne=Object(r.h)("span",null,"Millibars"),ae=Object(r.h)("span",{class:"slider"}),oe=Object(r.h)("span",null,"Sids/Stars"),re=Object(r.h)("span",{class:"slider"}),se=Object(r.h)("span",null,"Text commands"),ce=Object(r.h)("span",{class:"slider"});t.a=function(e){function t(){var t=a(this,e.call(this));return t.handleSettingsStoreChange=function(){t.setState({})},t.handleNewPlaneIntervalChange=function(e){c.a.newPlaneInterval=+e.target.value,c.a.emit("change")},t.handleRadarFontSizeChange=function(e){c.a.radarFontsize=+e.target.value,c.a.emit("change")},t.handleSpeechVoiceChange=function(e){c.a.changeATCVoice(c.a.voices.find(function(t){return t.name===e.target.value})),c.a.emit("change")},t.handleSpeechSynthesisSettingChange=function(e){c.a.speechsynthesis=e.target.checked,c.a.emit("change")},t.handleSpeechRecognitionSettingChange=function(e){c.a.speechrecognition=e.target.checked,c.a.emit("change")},t.handleVoicesChange=function(){c.a.emit("change")},t.handlePitchChange=function(e){c.a.changePitch(+e.target.value),c.a.emit("change")},t.handleRateChange=function(e){c.a.changeRate(+e.target.value),c.a.emit("change")},t.handleSpeedChange=function(e){c.a.setSpeed(+e.target.value),c.a.emit("change")},t.handleDifficultyChange=function(e){switch(e.target.value){case"easy":c.a.startingInboundPlanes=1,c.a.startingOutboundPlanes=1,c.a.startingEnroutePlanes=0,c.a.newPlaneInterval=180;break;case"normal":c.a.startingInboundPlanes=3,c.a.startingOutboundPlanes=2,c.a.startingEnroutePlanes=1,c.a.newPlaneInterval=100;break;case"hard":c.a.startingInboundPlanes=4,c.a.startingOutboundPlanes=3,c.a.startingEnroutePlanes=0,c.a.newPlaneInterval=70}t.setState({difficulty:e.target.value})},t.handleToggleExpandClick=function(){t.setState({expanded:!t.state.expanded})},t.handleAppearanceExpanded=function(){t.setState({appearanceExpanded:!t.state.appearanceExpanded})},t.handleChange=function(e){return function(t){c.a[e]=t.target.value,c.a.emit("change")}},t.handleCheckboxChange=function(e){return function(){c.a[e]=!c.a[e],c.a.emit("change")}},t.clearCaches=function(){return new Promise(function(e,t){return Promise.resolve(Object(h.d)()).then(function(){try{return alert("Caches have been cleared. This does not affect your saves."),e()}catch(e){return t(e)}},t)})},t.state={difficulty:"normal",expanded:!1,appearanceExpanded:!1},t}return o(t,e),t.prototype.componentWillMount=function(){c.a.on("change",this.handleSettingsStoreChange),i.a.synth.addEventListener("voiceschanged",this.handleVoicesChange)},t.prototype.componentWillUnmount=function(){c.a.removeListener("change",this.handleSettingsStoreChange),i.a.synth.removeEventListener("voiceschanged",this.handleVoicesChange)},t.prototype.handleIlsPathColorChange=function(e){c.a.ilsPathColor=e.target.value,c.a.emit("change")},t.prototype.render=function(){var e=c.a.atcVoice;return Object(r.h)("div",{className:"settings"},u,Object(r.h)("div",{className:"range-slider mb"},Object(r.h)("input",{className:"range-slider__range",type:"range",min:"0.1",max:"10",step:"0.1",value:c.a.speed,onInput:this.handleSpeedChange}),Object(r.h)("span",{class:"range-slider__value"},c.a.speed,"x")),Object(r.h)("div",{className:"mb"},p,Object(r.h)("select",{value:this.state.difficulty,onInput:this.handleDifficultyChange},b,d,g)),Object(r.h)("div",{className:"mb SwitchInput"},f,Object(r.h)("label",{class:"switch"},Object(r.h)("input",{type:"checkbox",onInput:this.handleCheckboxChange("ga"),checked:c.a.ga}),m)),Object(r.h)("div",{className:"mb SwitchInput"},O,Object(r.h)("label",{class:"switch"},Object(r.h)("input",{type:"checkbox",onInput:this.handleCheckboxChange("enroute"),checked:c.a.enroute}),j)),Object(r.h)("button",{onClick:this.handleAppearanceExpanded},this.state.appearanceExpanded?v:y),Object(r.h)("div",{style:"border: 1px solid #1e606b; border-radius: 5px; padding: 5px;",className:this.state.appearanceExpanded?null:"hidden"},Object(r.h)("div",{className:"mb SwitchInput"},C,Object(r.h)("label",{class:"switch"},Object(r.h)("input",{type:"checkbox",onInput:this.handleCheckboxChange("distanceCircles"),checked:c.a.distanceCircles}),w)),Object(r.h)("div",{className:"takeoff-in-order mb SwitchInput"},_,Object(r.h)("label",{class:"switch"},Object(r.h)("input",{type:"checkbox",onInput:this.handleCheckboxChange("routeVisualization"),checked:c.a.routeVisualization}),k)),x,Object(r.h)("div",{className:"fontsize-setting range-slider mb"},Object(r.h)("input",{className:"range-slider__range",type:"range",min:"8",max:"30",step:"1",value:c.a.radarFontsize,onInput:this.handleRadarFontSizeChange}),Object(r.h)("span",{class:"range-slider__value"},c.a.radarFontsize," pixels")),Object(r.h)("div",{className:"mb ColorInput"},S,Object(r.h)("input",{type:"color",value:c.a.ilsPathColor,onInput:this.handleIlsPathColorChange})),Object(r.h)("div",{className:"mb ColorInput"},I,Object(r.h)("input",{type:"color",value:c.a.dangerColor,onInput:this.handleChange("dangerColor")})),Object(r.h)("div",{className:"mb ColorInput"},E,Object(r.h)("input",{type:"color",value:c.a.backgroundColor,onInput:this.handleChange("backgroundColor")})),Object(r.h)("div",{className:"mb ColorInput"},N,Object(r.h)("input",{type:"color",value:c.a.foregroundColor,onInput:this.handleChange("foregroundColor")})),Object(r.h)("div",{className:"mb ColorInput"},R,Object(r.h)("input",{type:"color",value:c.a.radarColor,onInput:this.handleChange("radarColor")})),Object(r.h)("div",{className:"mb ColorInput"},T,Object(r.h)("input",{type:"color",value:c.a.sidColor,onInput:this.handleChange("sidColor")})),Object(r.h)("div",{className:"mb ColorInput"},P,Object(r.h)("input",{type:"color",value:c.a.starColor,onInput:this.handleChange("starColor")})),Object(r.h)("div",{className:"mb ColorInput"},A,Object(r.h)("input",{type:"color",value:c.a.inboundTrafficColor,onInput:this.handleChange("inboundTrafficColor")})),Object(r.h)("div",{className:"mb ColorInput"},M,Object(r.h)("input",{type:"color",value:c.a.enrouteTrafficColor,onInput:this.handleChange("enrouteTrafficColor")})),Object(r.h)("div",{className:"mb ColorInput"},U,Object(r.h)("input",{type:"color",value:c.a.outboundTrafficColor,onInput:this.handleChange("outboundTrafficColor")})),Object(r.h)("div",{className:"mb ColorInput"},D,Object(r.h)("input",{type:"color",value:c.a.vfrTrafficColor,onInput:this.handleChange("vfrTrafficColor")})),Object(r.h)("div",{className:"mb ColorInput"},z,Object(r.h)("input",{type:"color",value:c.a.pathVisualizerColor,onInput:this.handleChange("pathVisualizerColor")})),Object(r.h)("div",{className:"mb ColorInput"},L,Object(r.h)("input",{type:"color",value:c.a.climbColor,onInput:this.handleChange("climbColor")})),Object(r.h)("div",{className:"mb ColorInput"},q,Object(r.h)("input",{type:"color",value:c.a.descendColor,onInput:this.handleChange("descendColor")})),Object(r.h)("div",{className:"mb ColorInput"},B,Object(r.h)("input",{type:"color",value:c.a.msaColor,onInput:this.handleChange("msaColor")}))),Object(r.h)("button",{onClick:this.handleToggleExpandClick},this.state.expanded?G:W),Object(r.h)("div",{style:"border: 1px solid #1e606b; border-radius: 5px; padding: 5px;",className:this.state.expanded?null:"hidden"},Object(r.h)("div",{className:"speechsynthesis-setting mb SwitchInput"},V,Object(r.h)("label",{class:"switch"},Object(r.h)("input",{type:"checkbox",onInput:this.handleCheckboxChange("speechsynthesis"),checked:c.a.speechsynthesis}),J)),Object(r.h)("div",{className:["speechsynthesis-voices-setting","mb",c.a.speechsynthesis?"show":"hidden"].join(" ")},F,Object(r.h)("select",{onInput:this.handleSpeechVoiceChange,value:e},c.a.voices.map(function(e){return Object(r.h)("option",{key:e.name,value:e.name},e.name," - ",e.lang)}))),H,Object(r.h)("div",{className:"speechsynthesis-pitch-setting range-slider mb"},Object(r.h)("input",{className:"range-slider__range",type:"range",min:"0.1",max:"2",step:"0.1",value:c.a.pitch,onInput:this.handlePitchChange}),Object(r.h)("span",{class:"range-slider__value"},c.a.pitch,"x")),Y,Object(r.h)("div",{className:"speechsynthesis-rate-setting range-slider mb"},Object(r.h)("input",{className:"range-slider__range",type:"range",min:"0.1",max:"2",step:"0.1",value:c.a.rate,onInput:this.handleRateChange}),Object(r.h)("span",{class:"range-slider__value"},c.a.rate,"x")),c.a.stopSpawn?null:Object(r.h)("div",null,X,Object(r.h)("div",{className:"range-slider mb"},Object(r.h)("input",{className:"range-slider__range",type:"range",min:"10",max:"400",step:"10",value:c.a.newPlaneInterval,onInput:this.handleNewPlaneIntervalChange}),Object(r.h)("span",{class:"range-slider__value"},c.a.newPlaneInterval," seconds"))),Object(r.h)("div",null,Object(r.h)("div",{className:"mb SwitchInput"},Q,Object(r.h)("label",{class:"switch"},Object(r.h)("input",{type:"checkbox",onInput:this.handleCheckboxChange("stopSpawn"),checked:c.a.stopSpawn}),K)),Object(r.h)("div",{className:"mb SwitchInput"},$,Object(r.h)("label",{class:"switch"},Object(r.h)("input",{type:"checkbox",onInput:this.handleCheckboxChange("goArounds"),checked:c.a.goArounds}),Z)),Object(r.h)("div",{className:"takeoff-in-order mb SwitchInput"},ee,Object(r.h)("label",{class:"switch"},Object(r.h)("input",{type:"checkbox",onInput:this.handleCheckboxChange("takeoffInOrder"),checked:c.a.takeoffInOrder}),te)),Object(r.h)("div",{className:"mb SwitchInput",title:"Use millibars instead of inches of mercury for the airport altimeter"},ne,Object(r.h)("label",{class:"switch"},Object(r.h)("input",{type:"checkbox",onInput:this.handleCheckboxChange("millibars"),checked:c.a.millibars}),ae)),Object(r.h)("div",{className:"mb SwitchInput"},oe,Object(r.h)("label",{class:"switch"},Object(r.h)("input",{type:"checkbox",onInput:this.handleCheckboxChange("sidsStars"),checked:c.a.sidsStars}),re)),Object(r.h)("div",{className:"mb SwitchInput"},se,Object(r.h)("label",{class:"switch"},Object(r.h)("input",{type:"checkbox",onInput:this.handleCheckboxChange("useTextCmd"),checked:c.a.useTextCmd}),ce)),Object(r.h)("div",{className:"mb"},Object(r.h)("button",{onClick:this.clearCaches,class:"button"},"Clear Caches")))))},t}(r.Component)},XcBC:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=n("AX2D"),h=a(l),u=n("Quol"),p=a(u);(t.CopyToClipboard=function(e){function t(){for(var e,n,a,o,s=arguments.length,c=Array(s),i=0;i<s;i++)c[i]=arguments[i];return n=a=r(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.onClick=function(e){var t=a.props,n=t.text,o=t.onCopy,r=t.children,s=t.options,c=h.default.Children.only(r),i=(0,p.default)(n,s);o&&o(n,i),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(e)},o=n,r(a,o)}return s(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=o(e,["text","onCopy","options","children"]),a=h.default.Children.only(t);return h.default.cloneElement(a,c({},n,{onClick:this.onClick}))}}]),t}(h.default.PureComponent)).defaultProps={onCopy:void 0,options:void 0}},aQgv:function(){},aeJw:function(e,t,n){"use strict";function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=n("EBst"),s=(n.n(r),n("KAP3")),c=(n.n(s),Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--facebook resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M18.77 7.46H14.5v-1.9c0-.9.6-1.1 1-1.1h3V.5h-4.33C10.24.5 9.5 3.44 9.5 5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on Facebook"))),i=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--twitter resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M23.44 4.83c-.8.37-1.5.38-2.22.02.93-.56.98-.96 1.32-2.02-.88.52-1.86.9-2.9 1.1-.82-.88-2-1.43-3.3-1.43-2.5 0-4.55 2.04-4.55 4.54 0 .36.03.7.1 1.04-3.77-.2-7.12-2-9.36-4.75-.4.67-.6 1.45-.6 2.3 0 1.56.8 2.95 2 3.77-.74-.03-1.44-.23-2.05-.57v.06c0 2.2 1.56 4.03 3.64 4.44-.67.2-1.37.2-2.06.08.58 1.8 2.26 3.12 4.25 3.16C5.78 18.1 3.37 18.74 1 18.46c2 1.3 4.4 2.04 6.97 2.04 8.35 0 12.92-6.92 12.92-12.93 0-.2 0-.4-.02-.6.9-.63 1.96-1.22 2.56-2.14z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on Twitter")),l=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--google resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M11.37 12.93c-.73-.52-1.4-1.27-1.4-1.5 0-.43.03-.63.98-1.37 1.23-.97 1.9-2.23 1.9-3.57 0-1.22-.36-2.3-1-3.05h.5c.1 0 .2-.04.28-.1l1.36-.98c.16-.12.23-.34.17-.54-.07-.2-.25-.33-.46-.33H7.6c-.66 0-1.34.12-2 .35-2.23.76-3.78 2.66-3.78 4.6 0 2.76 2.13 4.85 5 4.9-.07.23-.1.45-.1.66 0 .43.1.83.33 1.22h-.08c-2.72 0-5.17 1.34-6.1 3.32-.25.52-.37 1.04-.37 1.56 0 .5.13.98.38 1.44.6 1.04 1.84 1.86 3.55 2.28.87.23 1.82.34 2.8.34.88 0 1.7-.1 2.5-.34 2.4-.7 3.97-2.48 3.97-4.54 0-1.97-.63-3.15-2.33-4.35zm-7.7 4.5c0-1.42 1.8-2.68 3.9-2.68h.05c.45 0 .9.07 1.3.2l.42.28c.96.66 1.6 1.1 1.77 1.8.05.16.07.33.07.5 0 1.8-1.33 2.7-3.96 2.7-1.98 0-3.54-1.23-3.54-2.8zM5.54 3.9c.33-.38.75-.58 1.23-.58h.05c1.35.05 2.64 1.55 2.88 3.35.14 1.02-.08 1.97-.6 2.55-.32.37-.74.56-1.23.56h-.03c-1.32-.04-2.63-1.6-2.87-3.4-.13-1 .08-1.92.58-2.5zM23.5 9.5h-3v-3h-2v3h-3v2h3v3h2v-3h3"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on Google+")),h=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--tumblr resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M13.5.5v5h5v4h-5V15c0 5 3.5 4.4 6 2.8v4.4c-6.7 3.2-12 0-12-4.2V9.5h-3V6.7c1-.3 2.2-.7 3-1.3.5-.5 1-1.2 1.4-2 .3-.7.6-1.7.7-3h3.8z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on Tumblr")),u=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--email resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M22 4H2C.9 4 0 4.9 0 6v12c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.25 14.43l-3.5 2c-.08.05-.17.07-.25.07-.17 0-.34-.1-.43-.25-.14-.24-.06-.55.18-.68l3.5-2c.24-.14.55-.06.68.18.14.24.06.55-.18.68zm4.75.07c-.1 0-.2-.03-.27-.08l-8.5-5.5c-.23-.15-.3-.46-.15-.7.15-.22.46-.3.7-.14L12 13.4l8.23-5.32c.23-.15.54-.08.7.15.14.23.07.54-.16.7l-8.5 5.5c-.08.04-.17.07-.27.07zm8.93 1.75c-.1.16-.26.25-.43.25-.08 0-.17-.02-.25-.07l-3.5-2c-.24-.13-.32-.44-.18-.68s.44-.32.68-.18l3.5 2c.24.13.32.44.18.68z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share by E-Mail")),p=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--pinterest resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M12.14.5C5.86.5 2.7 5 2.7 8.75c0 2.27.86 4.3 2.7 5.05.3.12.57 0 .66-.33l.27-1.06c.1-.32.06-.44-.2-.73-.52-.62-.86-1.44-.86-2.6 0-3.33 2.5-6.32 6.5-6.32 3.55 0 5.5 2.17 5.5 5.07 0 3.8-1.7 7.02-4.2 7.02-1.37 0-2.4-1.14-2.07-2.54.4-1.68 1.16-3.48 1.16-4.7 0-1.07-.58-1.98-1.78-1.98-1.4 0-2.55 1.47-2.55 3.42 0 1.25.43 2.1.43 2.1l-1.7 7.2c-.5 2.13-.08 4.75-.04 5 .02.17.22.2.3.1.14-.18 1.82-2.26 2.4-4.33.16-.58.93-3.63.93-3.63.45.88 1.8 1.65 3.22 1.65 4.25 0 7.13-3.87 7.13-9.05C20.5 4.15 17.18.5 12.14.5z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on Pinterest")),b=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--linkedin resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M6.5 21.5h-5v-13h5v13zM4 6.5C2.5 6.5 1.5 5.3 1.5 4s1-2.4 2.5-2.4c1.6 0 2.5 1 2.6 2.5 0 1.4-1 2.5-2.6 2.5zm11.5 6c-1 0-2 1-2 2v7h-5v-13h5V10s1.6-1.5 4-1.5c3 0 5 2.2 5 6.3v6.7h-5v-7c0-1-1-2-2-2z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on LinkedIn")),d=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--reddit resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M24 11.5c0-1.65-1.35-3-3-3-.96 0-1.86.48-2.42 1.24-1.64-1-3.75-1.64-6.07-1.72.08-1.1.4-3.05 1.52-3.7.72-.4 1.73-.24 3 .5C17.2 6.3 18.46 7.5 20 7.5c1.65 0 3-1.35 3-3s-1.35-3-3-3c-1.38 0-2.54.94-2.88 2.22-1.43-.72-2.64-.8-3.6-.25-1.64.94-1.95 3.47-2 4.55-2.33.08-4.45.7-6.1 1.72C4.86 8.98 3.96 8.5 3 8.5c-1.65 0-3 1.35-3 3 0 1.32.84 2.44 2.05 2.84-.03.22-.05.44-.05.66 0 3.86 4.5 7 10 7s10-3.14 10-7c0-.22-.02-.44-.05-.66 1.2-.4 2.05-1.54 2.05-2.84zM2.3 13.37C1.5 13.07 1 12.35 1 11.5c0-1.1.9-2 2-2 .64 0 1.22.32 1.6.82-1.1.85-1.92 1.9-2.3 3.05zm3.7.13c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm9.8 4.8c-1.08.63-2.42.96-3.8.96-1.4 0-2.74-.34-3.8-.95-.24-.13-.32-.44-.2-.68.15-.24.46-.32.7-.18 1.83 1.06 4.76 1.06 6.6 0 .23-.13.53-.05.67.2.14.23.06.54-.18.67zm.2-2.8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm5.7-2.13c-.38-1.16-1.2-2.2-2.3-3.05.38-.5.97-.82 1.6-.82 1.1 0 2 .9 2 2 0 .84-.53 1.57-1.3 1.87z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on Reddit")),g=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--xing resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M10.2 9.7l-3-5.4C7.2 4 7 4 6.8 4h-5c-.3 0-.4 0-.5.2v.5L4 10 .4 16v.5c0 .2.2.3.4.3h5c.3 0 .4 0 .5-.2l4-6.6v-.5zM24 .2l-.5-.2H18s-.2 0-.3.3l-8 14v.4l5.2 9c0 .2 0 .3.3.3h5.4s.3 0 .4-.2c.2-.2.2-.4 0-.5l-5-8.8L24 .7V.2z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on XING")),f=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--whatsapp resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M20.1 3.9C17.9 1.7 15 .5 12 .5 5.8.5.7 5.6.7 11.9c0 2 .5 3.9 1.5 5.6L.6 23.4l6-1.6c1.6.9 3.5 1.3 5.4 1.3 6.3 0 11.4-5.1 11.4-11.4-.1-2.8-1.2-5.7-3.3-7.8zM12 21.4c-1.7 0-3.3-.5-4.8-1.3l-.4-.2-3.5 1 1-3.4L4 17c-1-1.5-1.4-3.2-1.4-5.1 0-5.2 4.2-9.4 9.4-9.4 2.5 0 4.9 1 6.7 2.8 1.8 1.8 2.8 4.2 2.8 6.7-.1 5.2-4.3 9.4-9.5 9.4zm5.1-7.1c-.3-.1-1.7-.9-1.9-1-.3-.1-.5-.1-.7.1-.2.3-.8 1-.9 1.1-.2.2-.3.2-.6.1s-1.2-.5-2.3-1.4c-.9-.8-1.4-1.7-1.6-2-.2-.3 0-.5.1-.6s.3-.3.4-.5c.2-.1.3-.3.4-.5.1-.2 0-.4 0-.5C10 9 9.3 7.6 9 7c-.1-.4-.4-.3-.5-.3h-.6s-.4.1-.7.3c-.3.3-1 1-1 2.4s1 2.8 1.1 3c.1.2 2 3.1 4.9 4.3.7.3 1.2.5 1.6.6.7.2 1.3.2 1.8.1.6-.1 1.7-.7 1.9-1.3.2-.7.2-1.2.2-1.3-.1-.3-.3-.4-.6-.5z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on WhatsApp")),m=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--hackernews resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 140 140"},Object(r.h)("path",{"fill-rule":"evenodd",d:"M60.94 82.314L17 0h20.08l25.85 52.093c.397.927.86 1.888 1.39 2.883.53.994.995 2.02 1.393 3.08.265.4.463.764.596 1.095.13.334.262.63.395.898.662 1.325 1.26 2.618 1.79 3.877.53 1.26.993 2.42 1.39 3.48 1.06-2.254 2.22-4.673 3.48-7.258 1.26-2.585 2.552-5.27 3.877-8.052L103.49 0h18.69L77.84 83.308v53.087h-16.9v-54.08z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on Hacker News")),O=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--vk resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M21.547 7h-3.29a.743.743 0 0 0-.655.392s-1.312 2.416-1.734 3.23C14.734 12.813 14 12.126 14 11.11V7.603A1.104 1.104 0 0 0 12.896 6.5h-2.474a1.982 1.982 0 0 0-1.75.813s1.255-.204 1.255 1.49c0 .42.022 1.626.04 2.64a.73.73 0 0 1-1.272.503 21.54 21.54 0 0 1-2.498-4.543.693.693 0 0 0-.63-.403h-2.99a.508.508 0 0 0-.48.685C3.005 10.175 6.918 18 11.38 18h1.878a.742.742 0 0 0 .742-.742v-1.135a.73.73 0 0 1 1.23-.53l2.247 2.112a1.09 1.09 0 0 0 .746.295h2.953c1.424 0 1.424-.988.647-1.753-.546-.538-2.518-2.617-2.518-2.617a1.02 1.02 0 0 1-.078-1.323c.637-.84 1.68-2.212 2.122-2.8.603-.804 1.697-2.507.197-2.507z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on VK")),j=Object(r.h)("div",{class:"resp-sharing-button resp-sharing-button--telegram resp-sharing-button--large"},Object(r.h)("div",{"aria-hidden":"true",class:"resp-sharing-button__icon resp-sharing-button__icon--solid"},Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{d:"M.707 8.475C.275 8.64 0 9.508 0 9.508s.284.867.718 1.03l5.09 1.897 1.986 6.38a1.102 1.102 0 0 0 1.75.527l2.96-2.41a.405.405 0 0 1 .494-.013l5.34 3.87a1.1 1.1 0 0 0 1.046.135 1.1 1.1 0 0 0 .682-.803l3.91-18.795A1.102 1.102 0 0 0 22.5.075L.706 8.475z"}))),Object(r.h)("span",{className:"resp-sharing-buton__text"},"Share on Telegram"));t.a=function(e){function t(){var t=a(this,e.call(this));return t.state={},t}return o(t,e),t.prototype.render=function(){return Object(r.h)("div",{className:"SocialButtons"},Object(r.h)("a",{class:"resp-sharing-button__link",href:"https://facebook.com/sharer/sharer.php?u="+encodeURIComponent(this.props.url),target:"_blank","aria-label":"Share on Facebook"},c),Object(r.h)("a",{class:"resp-sharing-button__link",href:"https://twitter.com/intent/tweet/?text="+encodeURIComponent(this.props.text)+"&url="+encodeURIComponent(this.props.url),target:"_blank","aria-label":"Share on Twitter"},i),Object(r.h)("a",{class:"resp-sharing-button__link",href:"https://plus.google.com/share?url="+encodeURIComponent(this.props.url),target:"_blank","aria-label":"Share on Google+"},l),Object(r.h)("a",{class:"resp-sharing-button__link",href:"https://www.tumblr.com/widgets/share/tool?posttype=link&title="+encodeURIComponent(this.props.text)+"&caption="+encodeURIComponent(this.props.text)+"&content="+encodeURIComponent(this.props.url)+"&canonicalUrl="+encodeURIComponent(this.props.url)+"&shareSource=tumblr_share_button",target:"_blank","aria-label":"Share on Tumblr"},h),Object(r.h)("a",{class:"resp-sharing-button__link",href:"mailto:%20?subject="+encodeURIComponent(this.props.text)+"&body="+encodeURIComponent(this.props.url),target:"_self","aria-label":"Share by E-Mail"},u),Object(r.h)("a",{class:"resp-sharing-button__link",href:"https://pinterest.com/pin/create/button/?url="+encodeURIComponent(this.props.url)+"&media="+encodeURIComponent(this.props.url)+"&description="+encodeURIComponent(this.props.text),target:"_blank","aria-label":"Share on Pinterest"},p),Object(r.h)("a",{class:"resp-sharing-button__link",href:"https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(this.props.url)+"&title="+encodeURIComponent(this.props.text)+"&summary="+encodeURIComponent(this.props.text)+"&source="+encodeURIComponent(this.props.url),target:"_blank","aria-label":"Share on LinkedIn"},b),Object(r.h)("a",{class:"resp-sharing-button__link",href:"https://reddit.com/submit/?url="+encodeURIComponent(this.props.url),target:"_blank","aria-label":"Share on Reddit"},d),Object(r.h)("a",{class:"resp-sharing-button__link",href:"https://www.xing.com/app/user?op=share;url="+encodeURIComponent(this.props.url)+";title="+encodeURIComponent(this.props.text),target:"_blank","aria-label":"Share on XING"},g),Object(r.h)("a",{class:"resp-sharing-button__link",href:"whatsapp://send?text="+encodeURIComponent(this.props.text)+"%20"+encodeURIComponent(this.props.url),target:"_blank","aria-label":"Share on WhatsApp"},f),Object(r.h)("a",{class:"resp-sharing-button__link",href:"https://news.ycombinator.com/submitlink?u="+encodeURIComponent(this.props.url)+"&t="+encodeURIComponent(this.props.text),target:"_blank","aria-label":"Share on Hacker News"},m),Object(r.h)("a",{class:"resp-sharing-button__link",href:"http://vk.com/share.php?title="+encodeURIComponent(this.props.text)+"&url="+encodeURIComponent(this.props.url),target:"_blank","aria-label":"Share on VK"},O),Object(r.h)("a",{class:"resp-sharing-button__link",href:"https://telegram.me/share/url?text="+encodeURIComponent(this.props.text)+"&url="+encodeURIComponent(this.props.url),target:"_blank","aria-label":"Share on Telegram"},j))},t}(r.Component)},"jU/v":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.format=void 0;var a=n("BHPL"),o=n("A88M");t.format=function(e,t,n){var r=(0,a.diffSec)(e,n);return(0,a.formatDiff)(r,(0,o.getLocale)(t))}},"lOy+":function(e,t,n){"use strict";function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var d=n("EBst"),g=(n("FEkH"),n("Id9n")),f=n("tbJf"),m=n("mKrv"),O=n("y+SO"),j=n("2Q6T"),v=n("WPJJ"),y=n("JkW7"),C=n("MXhL"),w=(n("aeJw"),n("5Iuc")),_=n("/XIO"),k=(n("S5bU"),n("WEgJ"),n("LYl9")),x=Object(d.h)("br",null),S=function(e){function t(){var t=a(this,e.call(this));return t.state={},t}return o(t,e),t.prototype.componentWillMount=function(){},t.prototype.componentWillUnmount=function(){},t.prototype.render=function(){return Object(d.h)("a",{target:"_blank",className:"AtomFeedItem",href:this.props.link},Object(d.h)("figure",{style:{backgroundImage:"url("+this.props.image+")"}}),Object(d.h)("h6",null,this.props.title),Object(d.h)("small",null,Object(k.format)(new Date(this.props.time))),Object(d.h)("p",null,this.props.content,x))},t}(d.Component),I=S,E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},N=function(e,t){return e.length>t?e.slice(0,t-3).trim()+"...":e},R=Object(d.h)("div",{class:"loader"}),T=function(e){function t(){r(this,t);var n=s(this,e.call(this));return n.parseAtomDocument=function(e){var t=Array.from(e.getElementsByTagName("entry")).map(function(e){return{title:e.getElementsByTagName("title")[0].textContent,time:e.getElementsByTagName("published")[0].textContent,content:N(e.getElementsByTagName("content")[0].textContent.replace(/<(?:.|\n)*?>/gm,"").replace(/[\s\r\n]+/gm," "),100),link:e.getElementsByTagName("link")[0].getAttribute("href"),id:e.getElementsByTagName("id")[0].textContent,image:e.getElementsByTagName("media:thumbnail")[0].getAttribute("url")}});n.setState({items:t,loaded:!0})},n.state={items:[],loaded:!1},n}return c(t,e),t.prototype.componentWillMount=function(){"undefined"!=typeof window&&fetch(this.props.url).then(function(e){return e.text()}).then(function(e){return(new DOMParser).parseFromString(e,"application/xml")}).then(this.parseAtomDocument)},t.prototype.componentWillUnmount=function(){},t.prototype.render=function(){return Object(d.h)("div",{className:"AtomFeed"},!this.state.loaded&&R||null,this.state.items.map(function(e){return Object(d.h)(I,E({},e,{key:e.id}))}))},t}(d.Component),P=T,A=(n("1bBt"),n("LXEu")),M=function(e){if("undefined"!=typeof window){for(var t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),a=window.atob(n),o=new Uint8Array(a.length),r=0;r<a.length;++r)o[r]=a.charCodeAt(r);return o}},U={NOT_READY:1,READY:2,LOADING:3,ERROR:5,REGISTERED:6,USER_REJECTED:7},D=Object(d.h)("div",null,"Whoops, something went wrong. *squawk 7700"),z=Object(d.h)("div",null,"Radio silence."),L=function(e){function t(){i(this,t);var n=l(this,e.call(this));return n.unsubscribe=function(){n.state.subscription.unsubscribe().then(function(){n.setState({status:U.USER_REJECTED})}).catch(function(){n.setState({status:U.ERROR})})},n.state={status:U.NOT_READY,cb:null},n}return h(t,e),t.prototype.componentWillMount=function(){var e=this;"undefined"!=typeof window&&navigator.serviceWorker.ready.then(function(t){t.pushManager.getSubscription().then(function(n){if(null!==n)return void e.setState({status:U.REGISTERED,subscription:n});e.setState({status:U.READY,cb:function(){e.setState({status:U.LOADING}),t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:M(w.a.publicVapidKey)}).then(function(t){fetch(w.a.subscriptionURL,{method:"POST",body:JSON.stringify(t),headers:{"content-type":"application/json"}}).then(function(e){return e.text()}).then(function(){e.setState({status:U.REGISTERED,subscription:t})}).catch(function(e){throw e})}).catch(function(e){throw e})}})}).catch(function(t){e.setState({status:U.ERROR}),Object(A.b)("Whoops... Something went wrong."),Object(C.f)(t)})}).catch(function(e){console.warn("serviceWorker.ready was rejected",e)})},t.prototype.componentWillUnmount=function(){},t.prototype.isVisible=function(){switch(this.state.status){case U.READY:case U.REGISTERED:case U.ERROR:case U.USER_REJECTED:case U.LOADING:return!0;case U.NOT_READY:return!1}},t.prototype.showButtons=function(){switch(this.state.status){case U.READY:case U.LOADING:return!0;case U.ERROR:case U.USER_REJECTED:case U.REGISTERED:case U.NOT_READY:return!1}},t.prototype.render=function(){var e=this,t=[this.isVisible()?"visible":"hidden"],n=this.state.status===U.LOADING;return Object(d.h)("div",{className:"PushNotifications",style:t.join(" ")},this.showButtons()&&Object(d.h)("div",null,"Do you want to receive notifications from ATC Manager 2?",Object(d.h)("button",{onClick:function(){return e.setState({status:U.USER_REJECTED})},disabled:n},"No, Leave me alone *squawks 7600*"),Object(d.h)("button",{onClick:this.state.cb,disabled:n},"Yes, acknowledge handover")),this.state.status===U.REGISTERED&&Object(d.h)("div",null,"We can read you five by five. We'll keep you up to date.",Object(d.h)("button",{onClick:this.unsubscribe},"Terminate radio contact")),this.state.status===U.ERROR&&D,this.state.status===U.USER_REJECTED&&z,Object.keys(this.state.status).filter(function(t){return U[t]===e.state.status}).join(""))},t}(d.Component),q=L,B=n("Tc+Y"),G=Object(d.h)("div",null,Object(d.h)("h1",null,"ATC Manager 2")),W=Object(d.h)("br",null),V=Object(d.h)("br",null),J=Object(d.h)("a",{title:"Android App",target:"_blank",href:"https://play.google.com/store/apps/details?id=com.EchoSierraStudio.ATCManager&hl=en_US"},"App"),F=Object(d.h)("div",{className:"panel"},Object(d.h)(f.a,null)),H=Object(d.h)("h2",{className:"mb"},"Start"),Y=Object(d.h)("span",{className:"mb"},"Airport:"),X=Object(d.h)("small",{class:"color-red"},"Airport does not support general aviation."),Q=Object(d.h)("small",{class:"color-red"},"Airport does not support commercial traffic."),K=Object(d.h)(v.a,null),$=Object(d.h)("br",null),Z=Object(d.h)(O.a,{href:"/editor/save-editor"},Object(d.h)("div",{class:"block-outer"},Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.y,null)),Object(d.h)("br",null),"Saves Editor"))),ee=Object(d.h)(O.a,{href:"/editor/airplane-editor"},Object(d.h)("div",{class:"block-outer"},Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.t,null)),Object(d.h)("br",null),"Airplanes Editor"))),te=Object(d.h)(O.a,{href:"/editor/operator-editor"},Object(d.h)("div",{class:"block-outer"},Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.c,null)),Object(d.h)("br",null),"Operator Editor"))),ne=Object(d.h)(O.a,{href:"/timelapse/overview"},Object(d.h)("div",{class:"block-outer"},Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.d,null)),Object(d.h)("br",null),"Timelapses"))),ae=Object(d.h)(O.a,{href:"/tutorials"},Object(d.h)("div",{class:"block-outer"},Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.n,null)),Object(d.h)("br",null),"Tutorials"))),oe=Object(d.h)("a",{href:"https://play.google.com/store/apps/details?id=com.EchoSierraStudio.ATCManager",target:"_blank"},Object(d.h)("div",{class:"block-outer"},Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.q,null)),Object(d.h)("br",null),"Mobile App (external)"))),re=Object(d.h)("a",{href:"https://esstudio.site",target:"_blank"},Object(d.h)("div",{class:"block-outer"},Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.B,null)),Object(d.h)("br",null),"Other Projects (external)"))),se=Object(d.h)("a",{href:"https://esstudio.site/contact",target:"_blank"},Object(d.h)("div",{class:"block-outer"},Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.i,null)),Object(d.h)("br",null),"Contact (external)"))),ce=Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.A,null)),Object(d.h)("br",null),"Share"),ie=Object(d.h)("a",{target:"_blank",href:"https://www.reddit.com/r/ATCManager2"},Object(d.h)("div",{class:"block-outer"},Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.x,null)),Object(d.h)("br",null),"Subreddit",Object(d.h)("br",null),"(external)"))),le=Object(d.h)("a",{href:"https://twitter.com/esstudio_site",target:"_blank"},Object(d.h)("div",{class:"block-outer"},Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.F,null)),Object(d.h)("br",null),"Twitter (external)"))),he=Object(d.h)("a",{href:"https://github.com/LesterGallagher/atc-manager-2",target:"_blank"},Object(d.h)("div",{class:"block-outer"},Object(d.h)("div",{class:"block-inner"},Object(d.h)("span",{className:"link-icon-wrapper"},Object(d.h)(g.l,null)),Object(d.h)("br",null),"Github (external)"))),ue=Object(d.h)("div",{className:"panel panel-feed notification"},Object(d.h)(q,null)),pe=Object(d.h)("div",{className:"panel-open-bg"}),be=function(e){function t(){u(this,t);var n=p(this,e.call(this));return n.reRender=function(){return n.setState({})},n.sharingDone=function(){return n.setState({sharing:!1})},n.share=function(){return n.setState({sharing:!0})},n.handleTutorialClick=function(){Object(O.c)("/tutorials/intro")},n.state={sharing:!1},n.handleMapSelectionChange=n.handleMapSelectionChange.bind(n),n.handleStartClick=n.handleStartClick.bind(n),n}return b(t,e),t.prototype.componentWillMount=function(){y.router.on("change",this.reRender)},t.prototype.componentWillUnmount=function(){y.router.removeListener("change",this.reRender)},t.prototype.handleMapSelectionChange=function(e){B.a.selectedMapId=e.target.value,B.a.emit("change"),this.setState({})},t.prototype.handleReturnToGame=function(){Object(O.c)("/game")},t.prototype.handleStartClick=function(){if(j.a.started){if(!confirm("Another game is already in progress. Make sure you have saved your progress. Do you want to continue?"))return;j.a.stop()}j.a.startMap(B.a.selectedMapId),Object(O.c)("/game")},t.prototype.render=function(){return console.log("settingsstore"+B.a.selectedMapId),Object(d.h)("div",{className:"home",style:"background-color: #194850"},Object(d.h)("div",{className:"abs-container"},j.a.started?Object(d.h)("button",{onClick:this.handleReturnToGame},"Return to Game"):null),Object(d.h)("div",{className:"panel"},G,Object(d.h)("div",{style:"padding: 30px 20px;"},w.a.description,W,V,"Check out the"," ",J," ","for mobile.")),F,Object(d.h)("div",{className:"panel"},H,Y,Object(d.h)("select",{className:"mb",onInput:this.handleMapSelectionChange},m.n.map(function(e){return Object(d.h)("option",{selected:e.id===B.a.selectedMapId,value:e.id},e.name)})),0===m.m[B.a.selectedMapId].ga?X:null,0===m.m[B.a.selectedMapId].commercial?Q:null,K,$,Object(d.h)("button",{onClick:this.handleStartClick},"Start"),Object(d.h)("button",{onClick:this.handleTutorialClick},"Tutorial")),Object(d.h)("div",{className:"panel panel-links",style:{padding:3}},Z,ee,te,ne,ae,oe,re,se,Object(d.h)("span",{className:"inline-block"},Object(d.h)("div",{class:"block-outer",onClick:this.share},ce)),ie,le,he),ue,Object(d.h)("div",{className:"panel panel-feed",style:{padding:3}},Object(d.h)(P,{url:w.a.feedUrl})),this.state.sharing?pe:null,this.state.sharing?Object(d.h)(_.a,{onClose:this.sharingDone,promise:Promise.resolve({title:"ATC Manager 2",text:w.a.description,url:w.a.url})}):null)},t}(d.Component);t.default=be},sQ20:function(e,t,n){"use strict";var a=n("XcBC"),o=a.CopyToClipboard;o.CopyToClipboard=o,e.exports=o},tbJf:function(e,t,n){"use strict";function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r,s,c=n("EBst"),i=(n.n(c),n("JBOx")),l=(n.n(i),n("tGR6")),h=n("y+SO"),u=n("2Q6T"),p=Object(c.h)("path",{d:"M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"}),b=Object(c.h)("path",{d:"M704 736v576q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-576q0-14 9-23t23-9h64q14 0 23 9t9 23zm256 0v576q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-576q0-14 9-23t23-9h64q14 0 23 9t9 23zm256 0v576q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-576q0-14 9-23t23-9h64q14 0 23 9t9 23zm128 724v-948h-896v948q0 22 7 40.5t14.5 27 10.5 8.5h832q3 0 10.5-8.5t14.5-27 7-40.5zm-672-1076h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"}),d=Object(c.h)("small",null,"Nothing...");t.a=(r=function(e){function t(){var t=a(this,e.call(this));s.call(t);var n=[],o=Object(l.b)();for(var r in o.games)o.games.hasOwnProperty(r)&&n.push({name:r,state:o.games[r]});return t.state={games:n},t}return o(t,e),t.prototype.componentWillMount=function(){},t.prototype.componentWillUnmount=function(){},t.prototype.render=function(){var e=this,t=this.state.games.map(function(t,n){return Object(c.h)("div",{"data-name":t.name,key:n,className:"save"},Object(c.h)("h5",{className:"save-name"},t.name),Object(c.h)("svg",{onClick:e.handleSavedGamesOpenListItemClick,"data-name":t.name,className:"save-img",viewBox:"0 0 1792 1792",xmlns:"http://www.w3.org/2000/svg"},p),Object(c.h)("svg",{"data-name":t.name,onClick:e.handleSavedGameOpenListItemTrash,className:"trash",viewBox:"0 0 1792 1792"},b))});return Object(c.h)("div",{className:"savedgamesopen"},"Saves:",Object(c.h)("div",{className:"savedgamesopen-list"},t.length>0?t:d))},t}(c.Component),s=function(){var e=this;this.handleSavedGamesOpenListItemClick=function(e){var t=e.currentTarget.getAttribute("data-name");if(u.a.started){if(!confirm("Another game is already playing. Make sure you have saved your progress. Do you want to continue?"))return;u.a.stop()}u.a.startLocalstorage(t),Object(h.c)("/game")},this.handleSavedGameOpenListItemTrash=function(t){var n=t.currentTarget.getAttribute("data-name"),a=Object(l.b)();if(confirm("Are you sure?")){delete a.games[n],Object(l.c)(a);var o=[];for(var r in a.games)a.games.hasOwnProperty(r)&&o.push({name:r,state:a.games[r]});e.setState({games:o})}}},r)},ybWk:function(){}});